comisai 1.0.28 → 1.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node_modules/@comis/agent/dist/bootstrap/sections/tool-descriptions.js +62 -8
- package/node_modules/@comis/agent/dist/bootstrap/sections/tooling-sections.js +3 -1
- package/node_modules/@comis/agent/dist/bridge/pi-event-bridge.d.ts +7 -0
- package/node_modules/@comis/agent/dist/bridge/pi-event-bridge.js +26 -0
- package/node_modules/@comis/agent/dist/context-engine/signature-replay-scrubber.d.ts +21 -0
- package/node_modules/@comis/agent/dist/context-engine/signature-replay-scrubber.js +29 -9
- package/node_modules/@comis/agent/dist/context-engine/signature-surrogate-guard.d.ts +10 -2
- package/node_modules/@comis/agent/dist/context-engine/signature-surrogate-guard.js +15 -9
- package/node_modules/@comis/agent/dist/context-engine/thinking-block-cleaner.d.ts +17 -2
- package/node_modules/@comis/agent/dist/context-engine/thinking-block-cleaner.js +19 -8
- package/node_modules/@comis/agent/dist/executor/executor-prompt-runner.js +28 -0
- package/node_modules/@comis/agent/dist/executor/executor-response-filter.js +3 -0
- package/node_modules/@comis/agent/dist/executor/executor-tool-assembly.js +3 -1
- package/node_modules/@comis/agent/dist/executor/phase-filter.d.ts +20 -4
- package/node_modules/@comis/agent/dist/executor/phase-filter.js +62 -19
- package/node_modules/@comis/agent/dist/executor/pi-executor.js +6 -0
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/config-resolver.js +2 -3
- package/node_modules/@comis/agent/dist/executor/stream-wrappers/request-body-injector.js +2 -3
- package/node_modules/@comis/agent/dist/executor/ttl-guard.js +2 -3
- package/node_modules/@comis/agent/dist/index.d.ts +4 -2
- package/node_modules/@comis/agent/dist/index.js +3 -2
- package/node_modules/@comis/agent/dist/model/compaction-model-resolver.d.ts +41 -0
- package/node_modules/@comis/agent/dist/model/compaction-model-resolver.js +51 -0
- package/node_modules/@comis/agent/dist/model/model-registry-adapter.js +113 -26
- package/node_modules/@comis/agent/dist/model/model-scanner.d.ts +27 -0
- package/node_modules/@comis/agent/dist/model/model-scanner.js +64 -23
- package/node_modules/@comis/agent/dist/model/operation-model-defaults.d.ts +37 -15
- package/node_modules/@comis/agent/dist/model/operation-model-defaults.js +70 -25
- package/node_modules/@comis/agent/dist/model/operation-model-resolver.d.ts +2 -2
- package/node_modules/@comis/agent/dist/model/operation-model-resolver.js +12 -8
- package/node_modules/@comis/agent/dist/provider/capabilities.d.ts +21 -0
- package/node_modules/@comis/agent/dist/provider/capabilities.js +28 -0
- package/node_modules/@comis/agent/dist/session/orphaned-message-repair.js +61 -1
- package/node_modules/@comis/agent/dist/workspace/templates.js +1 -1
- package/node_modules/@comis/agent/package.json +1 -1
- package/node_modules/@comis/channels/dist/shared/channel-manager.d.ts +19 -1
- package/node_modules/@comis/channels/dist/shared/channel-manager.js +59 -3
- package/node_modules/@comis/channels/dist/shared/deliver-to-channel.d.ts +10 -0
- package/node_modules/@comis/channels/dist/shared/deliver-to-channel.js +25 -10
- package/node_modules/@comis/channels/dist/shared/execution-deliver.d.ts +1 -1
- package/node_modules/@comis/channels/dist/shared/execution-deliver.js +1 -1
- package/node_modules/@comis/channels/dist/shared/execution-pipeline.d.ts +8 -0
- package/node_modules/@comis/channels/dist/shared/inbound-pipeline.d.ts +8 -0
- package/node_modules/@comis/channels/dist/shared/inbound-route.d.ts +1 -1
- package/node_modules/@comis/channels/dist/shared/inbound-route.js +1 -0
- package/node_modules/@comis/channels/package.json +1 -1
- package/node_modules/@comis/cli/package.json +1 -1
- package/node_modules/@comis/core/dist/config/schema-agent.d.ts +15 -3
- package/node_modules/@comis/core/dist/config/schema-agent.js +6 -2
- package/node_modules/@comis/core/dist/config/schema-integrations.d.ts +4 -4
- package/node_modules/@comis/core/dist/config/schema-integrations.js +3 -3
- package/node_modules/@comis/core/dist/config/schema-models.d.ts +4 -2
- package/node_modules/@comis/core/dist/config/schema-models.js +4 -2
- package/node_modules/@comis/core/package.json +1 -1
- package/node_modules/@comis/daemon/dist/daemon.js +51 -8
- package/node_modules/@comis/daemon/dist/rpc/agent-handlers.js +40 -9
- package/node_modules/@comis/daemon/dist/rpc/builtin-provider-guard.d.ts +16 -0
- package/node_modules/@comis/daemon/dist/rpc/builtin-provider-guard.js +60 -0
- package/node_modules/@comis/daemon/dist/rpc/config-handlers.js +59 -0
- package/node_modules/@comis/daemon/dist/rpc/credential-resolver.d.ts +17 -0
- package/node_modules/@comis/daemon/dist/rpc/credential-resolver.js +99 -0
- package/node_modules/@comis/daemon/dist/rpc/message-handlers.d.ts +5 -0
- package/node_modules/@comis/daemon/dist/rpc/message-handlers.js +25 -4
- package/node_modules/@comis/daemon/dist/rpc/model-handlers.d.ts +4 -3
- package/node_modules/@comis/daemon/dist/rpc/model-handlers.js +21 -3
- package/node_modules/@comis/daemon/dist/rpc/provider-handlers.js +82 -6
- package/node_modules/@comis/daemon/dist/rpc/rpc-dispatch.d.ts +4 -0
- package/node_modules/@comis/daemon/dist/wiring/inbound-message-id-resolver.d.ts +48 -0
- package/node_modules/@comis/daemon/dist/wiring/inbound-message-id-resolver.js +58 -0
- package/node_modules/@comis/daemon/dist/wiring/setup-agents.d.ts +18 -6
- package/node_modules/@comis/daemon/dist/wiring/setup-agents.js +98 -46
- package/node_modules/@comis/daemon/dist/wiring/setup-channels.d.ts +13 -1
- package/node_modules/@comis/daemon/dist/wiring/setup-channels.js +2 -1
- package/node_modules/@comis/daemon/dist/wiring/setup-gateway-rpc.js +1 -1
- package/node_modules/@comis/daemon/package.json +2 -2
- package/node_modules/@comis/gateway/package.json +1 -1
- package/node_modules/@comis/infra/package.json +1 -1
- package/node_modules/@comis/memory/package.json +1 -1
- package/node_modules/@comis/scheduler/package.json +1 -1
- package/node_modules/@comis/shared/package.json +1 -1
- package/node_modules/@comis/skills/dist/bridge/mcp-tool-bridge.d.ts +1 -1
- package/node_modules/@comis/skills/dist/bridge/mcp-tool-bridge.js +1 -1
- package/node_modules/@comis/skills/dist/bridge/tool-audit.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/exec-tool.d.ts +12 -11
- package/node_modules/@comis/skills/dist/builtin/exec-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/file/apply-patch-tool.d.ts +3 -2
- package/node_modules/@comis/skills/dist/builtin/file/apply-patch-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/file-tools/edit-tool.d.ts +7 -6
- package/node_modules/@comis/skills/dist/builtin/file-tools/edit-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/file-tools/find-tool.d.ts +6 -5
- package/node_modules/@comis/skills/dist/builtin/file-tools/find-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/file-tools/grep-tool.d.ts +16 -15
- package/node_modules/@comis/skills/dist/builtin/file-tools/grep-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/file-tools/ls-tool.d.ts +4 -3
- package/node_modules/@comis/skills/dist/builtin/file-tools/ls-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/file-tools/notebook-edit-tool.d.ts +7 -6
- package/node_modules/@comis/skills/dist/builtin/file-tools/notebook-edit-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/file-tools/read-tool.d.ts +6 -5
- package/node_modules/@comis/skills/dist/builtin/file-tools/read-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/file-tools/write-tool.d.ts +5 -4
- package/node_modules/@comis/skills/dist/builtin/file-tools/write-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/admin-manage-factory.d.ts +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/agents-manage-tool.d.ts +28 -27
- package/node_modules/@comis/skills/dist/builtin/platform/agents-manage-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/background-tasks-tool.d.ts +4 -3
- package/node_modules/@comis/skills/dist/builtin/platform/background-tasks-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/browser-tool-schema.d.ts +67 -66
- package/node_modules/@comis/skills/dist/builtin/platform/browser-tool-schema.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/channels-manage-tool.d.ts +6 -5
- package/node_modules/@comis/skills/dist/builtin/platform/channels-manage-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/cron-tool.d.ts +20 -19
- package/node_modules/@comis/skills/dist/builtin/platform/cron-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/ctx-expand-tool.d.ts +4 -3
- package/node_modules/@comis/skills/dist/builtin/platform/ctx-expand-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/ctx-inspect-tool.d.ts +3 -2
- package/node_modules/@comis/skills/dist/builtin/platform/ctx-inspect-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/ctx-recall-tool.d.ts +6 -5
- package/node_modules/@comis/skills/dist/builtin/platform/ctx-recall-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/ctx-search-tool.d.ts +6 -5
- package/node_modules/@comis/skills/dist/builtin/platform/ctx-search-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/describe-video-tool.d.ts +4 -3
- package/node_modules/@comis/skills/dist/builtin/platform/describe-video-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/discord-action-tool.d.ts +2 -1
- package/node_modules/@comis/skills/dist/builtin/platform/discord-action-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/extract-document-tool.d.ts +4 -3
- package/node_modules/@comis/skills/dist/builtin/platform/extract-document-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/gateway-tool.d.ts +12 -11
- package/node_modules/@comis/skills/dist/builtin/platform/gateway-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/heartbeat-manage-tool.d.ts +23 -22
- package/node_modules/@comis/skills/dist/builtin/platform/heartbeat-manage-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/image-generate-tool.d.ts +4 -3
- package/node_modules/@comis/skills/dist/builtin/platform/image-generate-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/image-tool.d.ts +8 -7
- package/node_modules/@comis/skills/dist/builtin/platform/image-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/mcp-manage-tool.d.ts +9 -8
- package/node_modules/@comis/skills/dist/builtin/platform/mcp-manage-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/memory-get-tool.d.ts +5 -4
- package/node_modules/@comis/skills/dist/builtin/platform/memory-get-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/memory-manage-tool.d.ts +12 -11
- package/node_modules/@comis/skills/dist/builtin/platform/memory-manage-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/memory-search-tool.d.ts +4 -3
- package/node_modules/@comis/skills/dist/builtin/platform/memory-search-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/memory-store-tool.d.ts +4 -3
- package/node_modules/@comis/skills/dist/builtin/platform/memory-store-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/message-tool.d.ts +32 -31
- package/node_modules/@comis/skills/dist/builtin/platform/message-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/messaging-factory.d.ts +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/models-manage-tool.d.ts +4 -3
- package/node_modules/@comis/skills/dist/builtin/platform/models-manage-tool.js +11 -4
- package/node_modules/@comis/skills/dist/builtin/platform/notify-tool.d.ts +6 -5
- package/node_modules/@comis/skills/dist/builtin/platform/notify-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/obs-query-tool.d.ts +11 -10
- package/node_modules/@comis/skills/dist/builtin/platform/obs-query-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/pipeline-tool.d.ts +37 -36
- package/node_modules/@comis/skills/dist/builtin/platform/pipeline-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/platform-action-tool.d.ts +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/providers-manage-tool.d.ts +21 -20
- package/node_modules/@comis/skills/dist/builtin/platform/providers-manage-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/session-search-tool.d.ts +6 -5
- package/node_modules/@comis/skills/dist/builtin/platform/session-search-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/session-status-tool.d.ts +3 -2
- package/node_modules/@comis/skills/dist/builtin/platform/session-status-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/sessions-history-tool.d.ts +5 -4
- package/node_modules/@comis/skills/dist/builtin/platform/sessions-history-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/sessions-list-tool.d.ts +4 -3
- package/node_modules/@comis/skills/dist/builtin/platform/sessions-list-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/sessions-manage-tool.d.ts +5 -4
- package/node_modules/@comis/skills/dist/builtin/platform/sessions-manage-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/sessions-send-tool.d.ts +7 -6
- package/node_modules/@comis/skills/dist/builtin/platform/sessions-send-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/sessions-spawn-tool.d.ts +15 -14
- package/node_modules/@comis/skills/dist/builtin/platform/sessions-spawn-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/skills-manage-tool.d.ts +8 -7
- package/node_modules/@comis/skills/dist/builtin/platform/skills-manage-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/slack-action-tool.d.ts +2 -1
- package/node_modules/@comis/skills/dist/builtin/platform/slack-action-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/subagents-tool.d.ts +7 -6
- package/node_modules/@comis/skills/dist/builtin/platform/subagents-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/telegram-action-tool.d.ts +2 -1
- package/node_modules/@comis/skills/dist/builtin/platform/telegram-action-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/tokens-manage-tool.d.ts +5 -4
- package/node_modules/@comis/skills/dist/builtin/platform/tokens-manage-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/transcribe-audio-tool.d.ts +4 -3
- package/node_modules/@comis/skills/dist/builtin/platform/transcribe-audio-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/tts-tool.d.ts +6 -5
- package/node_modules/@comis/skills/dist/builtin/platform/tts-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/unified-context-tool.d.ts +13 -12
- package/node_modules/@comis/skills/dist/builtin/platform/unified-context-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/unified-memory-tool.d.ts +18 -17
- package/node_modules/@comis/skills/dist/builtin/platform/unified-memory-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/unified-session-tool.d.ts +11 -10
- package/node_modules/@comis/skills/dist/builtin/platform/unified-session-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/platform/whatsapp-action-tool.d.ts +2 -1
- package/node_modules/@comis/skills/dist/builtin/platform/whatsapp-action-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/process-tool.d.ts +6 -5
- package/node_modules/@comis/skills/dist/builtin/process-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/web-fetch-tool.d.ts +5 -4
- package/node_modules/@comis/skills/dist/builtin/web-fetch-tool.js +1 -1
- package/node_modules/@comis/skills/dist/builtin/web-search-tool.d.ts +9 -8
- package/node_modules/@comis/skills/dist/builtin/web-search-tool.js +1 -1
- package/node_modules/@comis/skills/package.json +1 -1
- package/node_modules/@comis/web/dist/assets/{agent-detail-DqL6Artv.js → agent-detail-71BSbSfD.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{agent-editor-CNM_h94Y.js → agent-editor-CTSDZhwT.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{agent-list-Dbh-xD_F.js → agent-list-BEhni2ea.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{billing-view-C1DmtyzK.js → billing-view-DVP1IvVs.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{channel-detail-CtCH22N1.js → channel-detail-N_YK74xC.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{channel-list-C7xXn-60.js → channel-list-DRk6ZJaF.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{chat-console-C51pjFwk.js → chat-console-Dm-GtSf9.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{config-editor-BLArYRB7.js → config-editor-CIferYX6.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{context-dag-browser-fuyMinNI.js → context-dag-browser-CL84rXXM.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{context-engine-Bngf2bH0.js → context-engine-B1HOTEZv.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{delivery-view-C80hucxX.js → delivery-view-Y6JKYVFw.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{diagnostics-view-Cl4VbHZ6.js → diagnostics-view-DWV1UQjz.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{ic-chat-message-ByFUoMm6.js → ic-chat-message-DfSERzzg.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{ic-connection-dot-C4nDHgY2.js → ic-connection-dot-CXyhlJup.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{ic-tool-call-Bh5kq-yY.js → ic-tool-call-DNmwTjek.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{index-BBkuC-EU.js → index-CBr0Tm9_.js} +2 -2
- package/node_modules/@comis/web/dist/assets/{mcp-management-DB-phOo7.js → mcp-management-BaH2-vox.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{media-config-CRqZ1ZUH.js → media-config-CZLshJoN.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{media-test-C9vE20Oy.js → media-test-C9NUWgo_.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{memory-inspector-CeqfnxMZ.js → memory-inspector-D_fmTcRN.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{message-center-Daup7Mof.js → message-center-BBFlNCZn.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{models-DLYnEU8E.js → models-BytGLm99.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{observe-view-BTSt_PO5.js → observe-view-VXtHqaqq.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{pipeline-builder-DknfzyLt.js → pipeline-builder-CfXczlfJ.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{pipeline-history-JnHZdeU_.js → pipeline-history-CPmXFnbe.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{pipeline-history-detail-Dg4knsEb.js → pipeline-history-detail-DcueTMs9.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{pipeline-list-AEnibjsp.js → pipeline-list-B-xG5WZh.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{pipeline-monitor-DG7RbIOO.js → pipeline-monitor-pnIOYaSY.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{scheduler-uL1fYKAT.js → scheduler-BtUIFHhA.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{security-C3DywRLH.js → security-C8mWRq2y.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{session-detail-BtqCNWXV.js → session-detail-DgdkO5ka.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{session-list-CJXWa2XT.js → session-list-DcylcfTn.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{setup-wizard-ywn7oJvu.js → setup-wizard-BP5yjsuL.js} +75 -39
- package/node_modules/@comis/web/dist/assets/{skills-DX0KYnWD.js → skills-DXt1bX8Z.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{subagents-B8p5YJEB.js → subagents-C7YbUHXY.js} +1 -1
- package/node_modules/@comis/web/dist/assets/{workspace-manager-CgzNIrw1.js → workspace-manager-DP6pW4wa.js} +1 -1
- package/node_modules/@comis/web/dist/index.html +1 -1
- package/node_modules/@comis/web/package.json +1 -1
- package/npm-shrinkwrap.json +6126 -0
- package/package.json +74 -74
|
@@ -6,30 +6,31 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @module
|
|
8
8
|
*/
|
|
9
|
+
import { Type } from "typebox";
|
|
9
10
|
/**
|
|
10
11
|
* Flattened act request schema. The `kind` discriminator determines which
|
|
11
12
|
* fields are relevant; runtime validates per-kind requirements.
|
|
12
13
|
*/
|
|
13
|
-
export declare const BrowserActSchema:
|
|
14
|
-
kind:
|
|
15
|
-
targetId:
|
|
16
|
-
ref:
|
|
17
|
-
doubleClick:
|
|
18
|
-
button:
|
|
19
|
-
modifiers:
|
|
20
|
-
text:
|
|
21
|
-
submit:
|
|
22
|
-
slowly:
|
|
23
|
-
key:
|
|
24
|
-
startRef:
|
|
25
|
-
endRef:
|
|
26
|
-
values:
|
|
27
|
-
fields:
|
|
28
|
-
width:
|
|
29
|
-
height:
|
|
30
|
-
timeMs:
|
|
31
|
-
textGone:
|
|
32
|
-
fn:
|
|
14
|
+
export declare const BrowserActSchema: Type.TObject<{
|
|
15
|
+
kind: Type.TUnion<Type.TLiteral<"type" | "fill" | "close" | "wait" | "click" | "press" | "hover" | "drag" | "select" | "resize" | "evaluate">[]>;
|
|
16
|
+
targetId: Type.TOptional<Type.TString>;
|
|
17
|
+
ref: Type.TOptional<Type.TString>;
|
|
18
|
+
doubleClick: Type.TOptional<Type.TBoolean>;
|
|
19
|
+
button: Type.TOptional<Type.TString>;
|
|
20
|
+
modifiers: Type.TOptional<Type.TArray<Type.TString>>;
|
|
21
|
+
text: Type.TOptional<Type.TString>;
|
|
22
|
+
submit: Type.TOptional<Type.TBoolean>;
|
|
23
|
+
slowly: Type.TOptional<Type.TBoolean>;
|
|
24
|
+
key: Type.TOptional<Type.TString>;
|
|
25
|
+
startRef: Type.TOptional<Type.TString>;
|
|
26
|
+
endRef: Type.TOptional<Type.TString>;
|
|
27
|
+
values: Type.TOptional<Type.TArray<Type.TString>>;
|
|
28
|
+
fields: Type.TOptional<Type.TArray<Type.TObject<{}>>>;
|
|
29
|
+
width: Type.TOptional<Type.TNumber>;
|
|
30
|
+
height: Type.TOptional<Type.TNumber>;
|
|
31
|
+
timeMs: Type.TOptional<Type.TNumber>;
|
|
32
|
+
textGone: Type.TOptional<Type.TString>;
|
|
33
|
+
fn: Type.TOptional<Type.TString>;
|
|
33
34
|
}>;
|
|
34
35
|
/**
|
|
35
36
|
* Browser tool parameter schema. Flattened object with `action` discriminator.
|
|
@@ -37,51 +38,51 @@ export declare const BrowserActSchema: import("@sinclair/typebox").TObject<{
|
|
|
37
38
|
* Uses a flat structure (not anyOf/oneOf) because Claude API on Vertex AI
|
|
38
39
|
* rejects nested anyOf schemas as invalid JSON Schema.
|
|
39
40
|
*/
|
|
40
|
-
export declare const BrowserToolSchema:
|
|
41
|
-
action:
|
|
42
|
-
profile:
|
|
43
|
-
targetUrl:
|
|
44
|
-
targetId:
|
|
45
|
-
limit:
|
|
46
|
-
maxChars:
|
|
47
|
-
mode:
|
|
48
|
-
snapshotFormat:
|
|
49
|
-
refs:
|
|
50
|
-
interactive:
|
|
51
|
-
compact:
|
|
52
|
-
depth:
|
|
53
|
-
selector:
|
|
54
|
-
frame:
|
|
55
|
-
labels:
|
|
56
|
-
fullPage:
|
|
57
|
-
ref:
|
|
58
|
-
element:
|
|
59
|
-
type:
|
|
60
|
-
level:
|
|
61
|
-
paths:
|
|
62
|
-
inputRef:
|
|
63
|
-
timeoutMs:
|
|
64
|
-
accept:
|
|
65
|
-
promptText:
|
|
66
|
-
request:
|
|
67
|
-
kind:
|
|
68
|
-
targetId:
|
|
69
|
-
ref:
|
|
70
|
-
doubleClick:
|
|
71
|
-
button:
|
|
72
|
-
modifiers:
|
|
73
|
-
text:
|
|
74
|
-
submit:
|
|
75
|
-
slowly:
|
|
76
|
-
key:
|
|
77
|
-
startRef:
|
|
78
|
-
endRef:
|
|
79
|
-
values:
|
|
80
|
-
fields:
|
|
81
|
-
width:
|
|
82
|
-
height:
|
|
83
|
-
timeMs:
|
|
84
|
-
textGone:
|
|
85
|
-
fn:
|
|
41
|
+
export declare const BrowserToolSchema: Type.TObject<{
|
|
42
|
+
action: Type.TUnion<Type.TLiteral<"navigate" | "status" | "pdf" | "start" | "close" | "open" | "stop" | "profiles" | "tabs" | "focus" | "snapshot" | "screenshot" | "console" | "upload" | "dialog" | "act">[]>;
|
|
43
|
+
profile: Type.TOptional<Type.TString>;
|
|
44
|
+
targetUrl: Type.TOptional<Type.TString>;
|
|
45
|
+
targetId: Type.TOptional<Type.TString>;
|
|
46
|
+
limit: Type.TOptional<Type.TNumber>;
|
|
47
|
+
maxChars: Type.TOptional<Type.TNumber>;
|
|
48
|
+
mode: Type.TOptional<Type.TUnion<Type.TLiteral<"efficient">[]>>;
|
|
49
|
+
snapshotFormat: Type.TOptional<Type.TUnion<Type.TLiteral<"aria" | "ai">[]>>;
|
|
50
|
+
refs: Type.TOptional<Type.TUnion<Type.TLiteral<"aria" | "role">[]>>;
|
|
51
|
+
interactive: Type.TOptional<Type.TBoolean>;
|
|
52
|
+
compact: Type.TOptional<Type.TBoolean>;
|
|
53
|
+
depth: Type.TOptional<Type.TNumber>;
|
|
54
|
+
selector: Type.TOptional<Type.TString>;
|
|
55
|
+
frame: Type.TOptional<Type.TString>;
|
|
56
|
+
labels: Type.TOptional<Type.TBoolean>;
|
|
57
|
+
fullPage: Type.TOptional<Type.TBoolean>;
|
|
58
|
+
ref: Type.TOptional<Type.TString>;
|
|
59
|
+
element: Type.TOptional<Type.TString>;
|
|
60
|
+
type: Type.TOptional<Type.TUnion<Type.TLiteral<"png" | "jpeg">[]>>;
|
|
61
|
+
level: Type.TOptional<Type.TString>;
|
|
62
|
+
paths: Type.TOptional<Type.TArray<Type.TString>>;
|
|
63
|
+
inputRef: Type.TOptional<Type.TString>;
|
|
64
|
+
timeoutMs: Type.TOptional<Type.TNumber>;
|
|
65
|
+
accept: Type.TOptional<Type.TBoolean>;
|
|
66
|
+
promptText: Type.TOptional<Type.TString>;
|
|
67
|
+
request: Type.TOptional<Type.TObject<{
|
|
68
|
+
kind: Type.TUnion<Type.TLiteral<"type" | "fill" | "close" | "wait" | "click" | "press" | "hover" | "drag" | "select" | "resize" | "evaluate">[]>;
|
|
69
|
+
targetId: Type.TOptional<Type.TString>;
|
|
70
|
+
ref: Type.TOptional<Type.TString>;
|
|
71
|
+
doubleClick: Type.TOptional<Type.TBoolean>;
|
|
72
|
+
button: Type.TOptional<Type.TString>;
|
|
73
|
+
modifiers: Type.TOptional<Type.TArray<Type.TString>>;
|
|
74
|
+
text: Type.TOptional<Type.TString>;
|
|
75
|
+
submit: Type.TOptional<Type.TBoolean>;
|
|
76
|
+
slowly: Type.TOptional<Type.TBoolean>;
|
|
77
|
+
key: Type.TOptional<Type.TString>;
|
|
78
|
+
startRef: Type.TOptional<Type.TString>;
|
|
79
|
+
endRef: Type.TOptional<Type.TString>;
|
|
80
|
+
values: Type.TOptional<Type.TArray<Type.TString>>;
|
|
81
|
+
fields: Type.TOptional<Type.TArray<Type.TObject<{}>>>;
|
|
82
|
+
width: Type.TOptional<Type.TNumber>;
|
|
83
|
+
height: Type.TOptional<Type.TNumber>;
|
|
84
|
+
timeMs: Type.TOptional<Type.TNumber>;
|
|
85
|
+
textGone: Type.TOptional<Type.TString>;
|
|
86
|
+
fn: Type.TOptional<Type.TString>;
|
|
86
87
|
}>>;
|
|
87
88
|
}>;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @module
|
|
9
9
|
*/
|
|
10
|
-
import { Type } from "
|
|
10
|
+
import { Type } from "typebox";
|
|
11
11
|
// ---------------------------------------------------------------------------
|
|
12
12
|
// Constants
|
|
13
13
|
// ---------------------------------------------------------------------------
|
|
@@ -9,13 +9,14 @@
|
|
|
9
9
|
* @module
|
|
10
10
|
*/
|
|
11
11
|
import type { AgentTool } from "@mariozechner/pi-agent-core";
|
|
12
|
+
import { Type } from "typebox";
|
|
12
13
|
import type { ApprovalGate } from "@comis/core";
|
|
13
14
|
import type { RpcCall } from "./cron-tool.js";
|
|
14
|
-
declare const ChannelsManageToolParams:
|
|
15
|
-
action:
|
|
16
|
-
channel_type:
|
|
17
|
-
setting:
|
|
18
|
-
enabled:
|
|
15
|
+
declare const ChannelsManageToolParams: Type.TObject<{
|
|
16
|
+
action: Type.TUnion<[Type.TLiteral<"list">, Type.TLiteral<"get">, Type.TLiteral<"enable">, Type.TLiteral<"disable">, Type.TLiteral<"restart">, Type.TLiteral<"configure">]>;
|
|
17
|
+
channel_type: Type.TOptional<Type.TString>;
|
|
18
|
+
setting: Type.TOptional<Type.TString>;
|
|
19
|
+
enabled: Type.TOptional<Type.TBoolean>;
|
|
19
20
|
}>;
|
|
20
21
|
/**
|
|
21
22
|
* Create a channel management tool with 6 actions.
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* @module
|
|
11
11
|
*/
|
|
12
|
-
import { Type } from "
|
|
12
|
+
import { Type } from "typebox";
|
|
13
13
|
import { tryGetContext } from "@comis/core";
|
|
14
14
|
import { readStringParam, readBooleanParam, throwToolError, } from "./tool-helpers.js";
|
|
15
15
|
import { createAdminManageTool } from "./admin-manage-factory.js";
|
|
@@ -8,31 +8,32 @@
|
|
|
8
8
|
* @module
|
|
9
9
|
*/
|
|
10
10
|
import type { AgentTool } from "@mariozechner/pi-agent-core";
|
|
11
|
+
import { Type } from "typebox";
|
|
11
12
|
/**
|
|
12
13
|
* RPC call function type used by all platform tools.
|
|
13
14
|
*
|
|
14
15
|
* Maps a namespaced method (e.g., "cron.add") to an in-process service call.
|
|
15
16
|
*/
|
|
16
17
|
export type RpcCall = (method: string, params: Record<string, unknown>) => Promise<unknown>;
|
|
17
|
-
declare const CronToolParams:
|
|
18
|
-
action:
|
|
19
|
-
name:
|
|
20
|
-
schedule_kind:
|
|
21
|
-
schedule_expr:
|
|
22
|
-
schedule_every_ms:
|
|
23
|
-
schedule_at:
|
|
24
|
-
timezone:
|
|
25
|
-
payload_kind:
|
|
26
|
-
payload_text:
|
|
27
|
-
session_strategy:
|
|
28
|
-
max_history_turns:
|
|
29
|
-
model:
|
|
30
|
-
job_name:
|
|
31
|
-
enabled:
|
|
32
|
-
limit:
|
|
33
|
-
mode:
|
|
34
|
-
source:
|
|
35
|
-
_confirmed:
|
|
18
|
+
declare const CronToolParams: Type.TObject<{
|
|
19
|
+
action: Type.TUnion<[Type.TLiteral<"add">, Type.TLiteral<"list">, Type.TLiteral<"update">, Type.TLiteral<"remove">, Type.TLiteral<"status">, Type.TLiteral<"runs">, Type.TLiteral<"run">, Type.TLiteral<"wake">]>;
|
|
20
|
+
name: Type.TOptional<Type.TString>;
|
|
21
|
+
schedule_kind: Type.TOptional<Type.TUnion<[Type.TLiteral<"cron">, Type.TLiteral<"every">, Type.TLiteral<"at">]>>;
|
|
22
|
+
schedule_expr: Type.TOptional<Type.TString>;
|
|
23
|
+
schedule_every_ms: Type.TOptional<Type.TInteger>;
|
|
24
|
+
schedule_at: Type.TOptional<Type.TString>;
|
|
25
|
+
timezone: Type.TOptional<Type.TString>;
|
|
26
|
+
payload_kind: Type.TOptional<Type.TUnion<[Type.TLiteral<"system_event">, Type.TLiteral<"agent_turn">]>>;
|
|
27
|
+
payload_text: Type.TOptional<Type.TString>;
|
|
28
|
+
session_strategy: Type.TOptional<Type.TUnion<[Type.TLiteral<"fresh">, Type.TLiteral<"rolling">, Type.TLiteral<"accumulate">]>>;
|
|
29
|
+
max_history_turns: Type.TOptional<Type.TInteger>;
|
|
30
|
+
model: Type.TOptional<Type.TString>;
|
|
31
|
+
job_name: Type.TOptional<Type.TString>;
|
|
32
|
+
enabled: Type.TOptional<Type.TBoolean>;
|
|
33
|
+
limit: Type.TOptional<Type.TInteger>;
|
|
34
|
+
mode: Type.TOptional<Type.TUnion<[Type.TLiteral<"force">, Type.TLiteral<"due">]>>;
|
|
35
|
+
source: Type.TOptional<Type.TString>;
|
|
36
|
+
_confirmed: Type.TOptional<Type.TBoolean>;
|
|
36
37
|
}>;
|
|
37
38
|
/**
|
|
38
39
|
* Create a cron scheduling tool with 8 actions.
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @module
|
|
10
10
|
*/
|
|
11
|
-
import { Type } from "
|
|
11
|
+
import { Type } from "typebox";
|
|
12
12
|
import { jsonResult, readEnumParam, readStringParam, readNumberParam, readBooleanParam, createActionGate, } from "./tool-helpers.js";
|
|
13
13
|
// ---------------------------------------------------------------------------
|
|
14
14
|
// Parameter schema
|
|
@@ -9,10 +9,11 @@
|
|
|
9
9
|
* @module
|
|
10
10
|
*/
|
|
11
11
|
import type { AgentTool } from "@mariozechner/pi-agent-core";
|
|
12
|
+
import { Type } from "typebox";
|
|
12
13
|
import type { RpcCall } from "./cron-tool.js";
|
|
13
|
-
declare const CtxExpandParams:
|
|
14
|
-
grant_id:
|
|
15
|
-
summary_id:
|
|
14
|
+
declare const CtxExpandParams: Type.TObject<{
|
|
15
|
+
grant_id: Type.TString;
|
|
16
|
+
summary_id: Type.TString;
|
|
16
17
|
}>;
|
|
17
18
|
/**
|
|
18
19
|
* Create a context expand tool that walks deeper into the context DAG.
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* @module
|
|
11
11
|
*/
|
|
12
|
-
import { Type } from "
|
|
12
|
+
import { Type } from "typebox";
|
|
13
13
|
import { jsonResult, readStringParam } from "./tool-helpers.js";
|
|
14
14
|
// -- Parameter Schema --------------------------------------------------------
|
|
15
15
|
const CtxExpandParams = Type.Object({
|
|
@@ -8,9 +8,10 @@
|
|
|
8
8
|
* @module
|
|
9
9
|
*/
|
|
10
10
|
import type { AgentTool } from "@mariozechner/pi-agent-core";
|
|
11
|
+
import { Type } from "typebox";
|
|
11
12
|
import type { RpcCall } from "./cron-tool.js";
|
|
12
|
-
declare const CtxInspectParams:
|
|
13
|
-
id:
|
|
13
|
+
declare const CtxInspectParams: Type.TObject<{
|
|
14
|
+
id: Type.TString;
|
|
14
15
|
}>;
|
|
15
16
|
/**
|
|
16
17
|
* Create a context inspect tool that retrieves full content from the DAG.
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @module
|
|
10
10
|
*/
|
|
11
|
-
import { Type } from "
|
|
11
|
+
import { Type } from "typebox";
|
|
12
12
|
import { jsonResult, readStringParam } from "./tool-helpers.js";
|
|
13
13
|
// -- Parameter Schema --------------------------------------------------------
|
|
14
14
|
const CtxInspectParams = Type.Object({
|
|
@@ -9,12 +9,13 @@
|
|
|
9
9
|
* @module
|
|
10
10
|
*/
|
|
11
11
|
import type { AgentTool } from "@mariozechner/pi-agent-core";
|
|
12
|
+
import { Type } from "typebox";
|
|
12
13
|
import type { RpcCall } from "./cron-tool.js";
|
|
13
|
-
declare const CtxRecallParams:
|
|
14
|
-
prompt:
|
|
15
|
-
query:
|
|
16
|
-
summary_ids:
|
|
17
|
-
max_tokens:
|
|
14
|
+
declare const CtxRecallParams: Type.TObject<{
|
|
15
|
+
prompt: Type.TString;
|
|
16
|
+
query: Type.TOptional<Type.TString>;
|
|
17
|
+
summary_ids: Type.TOptional<Type.TArray<Type.TString>>;
|
|
18
|
+
max_tokens: Type.TOptional<Type.TInteger>;
|
|
18
19
|
}>;
|
|
19
20
|
/**
|
|
20
21
|
* Create a context recall tool that spawns a bounded sub-agent for deep history recall.
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* @module
|
|
11
11
|
*/
|
|
12
|
-
import { Type } from "
|
|
12
|
+
import { Type } from "typebox";
|
|
13
13
|
import { jsonResult, readStringParam, readNumberParam } from "./tool-helpers.js";
|
|
14
14
|
// -- Parameter Schema --------------------------------------------------------
|
|
15
15
|
const CtxRecallParams = Type.Object({
|
|
@@ -9,12 +9,13 @@
|
|
|
9
9
|
* @module
|
|
10
10
|
*/
|
|
11
11
|
import type { AgentTool } from "@mariozechner/pi-agent-core";
|
|
12
|
+
import { Type } from "typebox";
|
|
12
13
|
import type { RpcCall } from "./cron-tool.js";
|
|
13
|
-
declare const CtxSearchParams:
|
|
14
|
-
query:
|
|
15
|
-
mode:
|
|
16
|
-
scope:
|
|
17
|
-
limit:
|
|
14
|
+
declare const CtxSearchParams: Type.TObject<{
|
|
15
|
+
query: Type.TString;
|
|
16
|
+
mode: Type.TOptional<Type.TString>;
|
|
17
|
+
scope: Type.TOptional<Type.TString>;
|
|
18
|
+
limit: Type.TOptional<Type.TInteger>;
|
|
18
19
|
}>;
|
|
19
20
|
/**
|
|
20
21
|
* Create a context search tool that finds content in the full DAG conversation history.
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* @module
|
|
11
11
|
*/
|
|
12
|
-
import { Type } from "
|
|
12
|
+
import { Type } from "typebox";
|
|
13
13
|
import { jsonResult, readStringParam, readNumberParam } from "./tool-helpers.js";
|
|
14
14
|
// -- Parameter Schema --------------------------------------------------------
|
|
15
15
|
const CtxSearchParams = Type.Object({
|
|
@@ -8,10 +8,11 @@
|
|
|
8
8
|
* @module
|
|
9
9
|
*/
|
|
10
10
|
import type { AgentTool } from "@mariozechner/pi-agent-core";
|
|
11
|
+
import { Type } from "typebox";
|
|
11
12
|
import type { RpcCall } from "./cron-tool.js";
|
|
12
|
-
declare const DescribeVideoToolParams:
|
|
13
|
-
attachment_url:
|
|
14
|
-
prompt:
|
|
13
|
+
declare const DescribeVideoToolParams: Type.TObject<{
|
|
14
|
+
attachment_url: Type.TString;
|
|
15
|
+
prompt: Type.TOptional<Type.TString>;
|
|
15
16
|
}>;
|
|
16
17
|
/**
|
|
17
18
|
* Create a video description tool that delegates to media.describe_video rpcCall.
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @module
|
|
10
10
|
*/
|
|
11
|
-
import { Type } from "
|
|
11
|
+
import { Type } from "typebox";
|
|
12
12
|
import { jsonResult, readStringParam } from "./tool-helpers.js";
|
|
13
13
|
// ── Parameter Schema ────────────────────────────────────────────────
|
|
14
14
|
const DescribeVideoToolParams = Type.Object({
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* @module
|
|
11
11
|
*/
|
|
12
|
+
import { Type } from "typebox";
|
|
12
13
|
import type { RpcCall } from "./cron-tool.js";
|
|
13
14
|
/** Minimal pino-compatible logger for structured tool logging. */
|
|
14
15
|
interface ToolLogger {
|
|
@@ -25,5 +26,5 @@ interface ToolLogger {
|
|
|
25
26
|
* @param logger - Optional structured logger for DEBUG-level operation logging
|
|
26
27
|
* @returns AgentTool implementing the Discord actions interface
|
|
27
28
|
*/
|
|
28
|
-
export declare function createDiscordActionTool(rpcCall: RpcCall, logger?: ToolLogger): import("@mariozechner/pi-agent-core").AgentTool<
|
|
29
|
+
export declare function createDiscordActionTool(rpcCall: RpcCall, logger?: ToolLogger): import("@mariozechner/pi-agent-core").AgentTool<Type.TSchema, any>;
|
|
29
30
|
export {};
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*
|
|
11
11
|
* @module
|
|
12
12
|
*/
|
|
13
|
-
import { Type } from "
|
|
13
|
+
import { Type } from "typebox";
|
|
14
14
|
import { createPlatformActionTool } from "./platform-action-tool.js";
|
|
15
15
|
// ---------------------------------------------------------------------------
|
|
16
16
|
// Parameter schema
|
|
@@ -8,10 +8,11 @@
|
|
|
8
8
|
* @module
|
|
9
9
|
*/
|
|
10
10
|
import type { AgentTool } from "@mariozechner/pi-agent-core";
|
|
11
|
+
import { Type } from "typebox";
|
|
11
12
|
import type { RpcCall } from "./cron-tool.js";
|
|
12
|
-
declare const ExtractDocumentToolParams:
|
|
13
|
-
attachment_url:
|
|
14
|
-
max_chars:
|
|
13
|
+
declare const ExtractDocumentToolParams: Type.TObject<{
|
|
14
|
+
attachment_url: Type.TString;
|
|
15
|
+
max_chars: Type.TOptional<Type.TNumber>;
|
|
15
16
|
}>;
|
|
16
17
|
/**
|
|
17
18
|
* Create a document extraction tool that delegates to media.extract_document rpcCall.
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @module
|
|
10
10
|
*/
|
|
11
|
-
import { Type } from "
|
|
11
|
+
import { Type } from "typebox";
|
|
12
12
|
import { jsonResult, readStringParam, readNumberParam } from "./tool-helpers.js";
|
|
13
13
|
// ── Parameter Schema ────────────────────────────────────────────────
|
|
14
14
|
const ExtractDocumentToolParams = Type.Object({
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* @module
|
|
10
10
|
*/
|
|
11
11
|
import type { AgentTool } from "@mariozechner/pi-agent-core";
|
|
12
|
+
import { Type } from "typebox";
|
|
12
13
|
import type { RpcCall } from "./cron-tool.js";
|
|
13
14
|
import type { ComisLogger } from "@comis/infra";
|
|
14
15
|
/**
|
|
@@ -21,17 +22,17 @@ import type { ComisLogger } from "@comis/infra";
|
|
|
21
22
|
*/
|
|
22
23
|
export declare const GATEWAY_ACTIONS: readonly ["read", "patch", "apply", "restart", "schema", "status", "history", "diff", "rollback", "env_set", "env_list"];
|
|
23
24
|
export type GatewayAction = typeof GATEWAY_ACTIONS[number];
|
|
24
|
-
declare const GatewayToolParams:
|
|
25
|
-
action:
|
|
26
|
-
section:
|
|
27
|
-
key:
|
|
28
|
-
value:
|
|
29
|
-
limit:
|
|
30
|
-
sha:
|
|
31
|
-
env_key:
|
|
32
|
-
env_value:
|
|
33
|
-
filter:
|
|
34
|
-
_confirmed:
|
|
25
|
+
declare const GatewayToolParams: Type.TObject<{
|
|
26
|
+
action: Type.TUnion<Type.TLiteral<"status" | "read" | "patch" | "diff" | "apply" | "restart" | "schema" | "history" | "rollback" | "env_set" | "env_list">[]>;
|
|
27
|
+
section: Type.TOptional<Type.TString>;
|
|
28
|
+
key: Type.TOptional<Type.TString>;
|
|
29
|
+
value: Type.TOptional<Type.TUnknown>;
|
|
30
|
+
limit: Type.TOptional<Type.TNumber>;
|
|
31
|
+
sha: Type.TOptional<Type.TString>;
|
|
32
|
+
env_key: Type.TOptional<Type.TString>;
|
|
33
|
+
env_value: Type.TOptional<Type.TString>;
|
|
34
|
+
filter: Type.TOptional<Type.TString>;
|
|
35
|
+
_confirmed: Type.TOptional<Type.TBoolean>;
|
|
35
36
|
}>;
|
|
36
37
|
/**
|
|
37
38
|
* Create a gateway control tool with 11 actions.
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* @module
|
|
11
11
|
*/
|
|
12
|
-
import { Type } from "
|
|
12
|
+
import { Type } from "typebox";
|
|
13
13
|
import { tryGetContext, isImmutableConfigPath, MUTABLE_CONFIG_OVERRIDES, matchesOverridePattern, getMutableOverridesForSection, getManagedSectionRedirect, formatRedirectHint, } from "@comis/core";
|
|
14
14
|
import { readStringParam, throwToolError, createActionGate, } from "./tool-helpers.js";
|
|
15
15
|
import { createMultiActionDispatchTool } from "./messaging-factory.js";
|
|
@@ -8,29 +8,30 @@
|
|
|
8
8
|
* @module
|
|
9
9
|
*/
|
|
10
10
|
import type { AgentTool } from "@mariozechner/pi-agent-core";
|
|
11
|
+
import { Type } from "typebox";
|
|
11
12
|
import type { RpcCall } from "./cron-tool.js";
|
|
12
|
-
declare const HeartbeatManageToolParams:
|
|
13
|
-
action:
|
|
14
|
-
agent_id:
|
|
15
|
-
enabled:
|
|
16
|
-
interval_ms:
|
|
17
|
-
prompt:
|
|
18
|
-
model:
|
|
19
|
-
target_channel_type:
|
|
20
|
-
target_channel_id:
|
|
21
|
-
target_chat_id:
|
|
22
|
-
target_is_dm:
|
|
23
|
-
light_context:
|
|
24
|
-
show_ok:
|
|
25
|
-
show_alerts:
|
|
26
|
-
allow_dm:
|
|
27
|
-
skip_heartbeat_only_delivery:
|
|
28
|
-
ack_max_chars:
|
|
29
|
-
response_prefix:
|
|
30
|
-
session:
|
|
31
|
-
alert_threshold:
|
|
32
|
-
alert_cooldown_ms:
|
|
33
|
-
stale_ms:
|
|
13
|
+
declare const HeartbeatManageToolParams: Type.TObject<{
|
|
14
|
+
action: Type.TUnion<[Type.TLiteral<"get">, Type.TLiteral<"update">, Type.TLiteral<"status">, Type.TLiteral<"trigger">]>;
|
|
15
|
+
agent_id: Type.TOptional<Type.TString>;
|
|
16
|
+
enabled: Type.TOptional<Type.TBoolean>;
|
|
17
|
+
interval_ms: Type.TOptional<Type.TInteger>;
|
|
18
|
+
prompt: Type.TOptional<Type.TString>;
|
|
19
|
+
model: Type.TOptional<Type.TString>;
|
|
20
|
+
target_channel_type: Type.TOptional<Type.TString>;
|
|
21
|
+
target_channel_id: Type.TOptional<Type.TString>;
|
|
22
|
+
target_chat_id: Type.TOptional<Type.TString>;
|
|
23
|
+
target_is_dm: Type.TOptional<Type.TBoolean>;
|
|
24
|
+
light_context: Type.TOptional<Type.TBoolean>;
|
|
25
|
+
show_ok: Type.TOptional<Type.TBoolean>;
|
|
26
|
+
show_alerts: Type.TOptional<Type.TBoolean>;
|
|
27
|
+
allow_dm: Type.TOptional<Type.TBoolean>;
|
|
28
|
+
skip_heartbeat_only_delivery: Type.TOptional<Type.TBoolean>;
|
|
29
|
+
ack_max_chars: Type.TOptional<Type.TInteger>;
|
|
30
|
+
response_prefix: Type.TOptional<Type.TString>;
|
|
31
|
+
session: Type.TOptional<Type.TString>;
|
|
32
|
+
alert_threshold: Type.TOptional<Type.TInteger>;
|
|
33
|
+
alert_cooldown_ms: Type.TOptional<Type.TInteger>;
|
|
34
|
+
stale_ms: Type.TOptional<Type.TInteger>;
|
|
34
35
|
}>;
|
|
35
36
|
export declare function createHeartbeatManageTool(rpcCall: RpcCall): AgentTool<typeof HeartbeatManageToolParams>;
|
|
36
37
|
export {};
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @module
|
|
10
10
|
*/
|
|
11
|
-
import { Type } from "
|
|
11
|
+
import { Type } from "typebox";
|
|
12
12
|
import { readStringParam } from "./tool-helpers.js";
|
|
13
13
|
import { createAdminManageTool } from "./admin-manage-factory.js";
|
|
14
14
|
// ---------------------------------------------------------------------------
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @module
|
|
10
10
|
*/
|
|
11
|
+
import { Type } from "typebox";
|
|
11
12
|
import type { RpcCall } from "./cron-tool.js";
|
|
12
13
|
/**
|
|
13
14
|
* Create the image_generate tool for text-to-image generation.
|
|
@@ -20,7 +21,7 @@ import type { RpcCall } from "./cron-tool.js";
|
|
|
20
21
|
* @param rpcCall - RPC call function for delegating to the daemon
|
|
21
22
|
* @returns AgentTool that dispatches to image.generate
|
|
22
23
|
*/
|
|
23
|
-
export declare function createImageGenerateTool(rpcCall: RpcCall): import("@mariozechner/pi-agent-core").AgentTool<
|
|
24
|
-
prompt:
|
|
25
|
-
size:
|
|
24
|
+
export declare function createImageGenerateTool(rpcCall: RpcCall): import("@mariozechner/pi-agent-core").AgentTool<Type.TObject<{
|
|
25
|
+
prompt: Type.TString;
|
|
26
|
+
size: Type.TOptional<Type.TString>;
|
|
26
27
|
}>, any>;
|