feat(platform): complete the Gelios external data loop
This commit is contained in:
@@ -37,10 +37,10 @@ try {
|
||||
|
||||
const search = await rpc(baseUrl, TOKEN, 3, 'tools/call', {
|
||||
name: 'ontology_search',
|
||||
arguments: { query: 'трайк', limit: 10 },
|
||||
arguments: { query: 'юнит гелиос', limit: 10 },
|
||||
})
|
||||
assert.equal(search.result.isError, undefined)
|
||||
assert.equal(search.result.structuredContent.query, 'трайк')
|
||||
assert.equal(search.result.structuredContent.query, 'юнит гелиос')
|
||||
assert.equal(search.result.structuredContent.results.some((item) => item.entity?.id === 'gelios.unit'), true)
|
||||
|
||||
const entity = await rpc(baseUrl, TOKEN, 4, 'tools/call', {
|
||||
@@ -50,6 +50,16 @@ try {
|
||||
assert.equal(entity.result.structuredContent.entity.id, 'gelios.integration')
|
||||
assert.equal(JSON.stringify(entity.result.structuredContent).includes('/Users/'), false)
|
||||
|
||||
const signalState = await rpc(baseUrl, TOKEN, 41, 'tools/call', {
|
||||
name: 'ontology_get_entity',
|
||||
arguments: { entityId: 'gelios.signal_state' },
|
||||
})
|
||||
assert.equal(signalState.result.structuredContent.entity.valueContract.field, 'signal_state')
|
||||
assert.deepEqual(
|
||||
signalState.result.structuredContent.entity.valueContract.values.map((item) => item.value),
|
||||
['active', 'inactive'],
|
||||
)
|
||||
|
||||
const guardrails = await rpc(baseUrl, TOKEN, 5, 'tools/call', {
|
||||
name: 'ontology_get_guardrails',
|
||||
arguments: { entityId: 'gelios.command_dispatch' },
|
||||
@@ -70,6 +80,7 @@ try {
|
||||
'mcp_initialize',
|
||||
'read_only_tool_catalog',
|
||||
'gelios_alias_resolution',
|
||||
'gelios_value_contract_visible',
|
||||
'gelios_command_guardrail_visible',
|
||||
'evidence_paths_not_exposed',
|
||||
'internal_bearer_required',
|
||||
|
||||
Reference in New Issue
Block a user