comisai 1.0.27 → 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-gate.js +21 -3
- 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/dist/telegram/message-mapper.d.ts +18 -1
- package/node_modules/@comis/channels/dist/telegram/message-mapper.js +95 -1
- package/node_modules/@comis/channels/dist/telegram/telegram-adapter.js +7 -1
- 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 +74 -9
- 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/restart-continuation.d.ts +10 -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
|
@@ -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>;
|
|
@@ -8,14 +8,15 @@
|
|
|
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 ImageToolParams:
|
|
13
|
-
action:
|
|
14
|
-
source_type:
|
|
15
|
-
source:
|
|
16
|
-
prompt:
|
|
17
|
-
mime_type:
|
|
18
|
-
attachment_url:
|
|
13
|
+
declare const ImageToolParams: Type.TObject<{
|
|
14
|
+
action: Type.TLiteral<"analyze">;
|
|
15
|
+
source_type: Type.TOptional<Type.TUnion<[Type.TLiteral<"file">, Type.TLiteral<"url">, Type.TLiteral<"base64">]>>;
|
|
16
|
+
source: Type.TOptional<Type.TString>;
|
|
17
|
+
prompt: Type.TOptional<Type.TString>;
|
|
18
|
+
mime_type: Type.TOptional<Type.TString>;
|
|
19
|
+
attachment_url: Type.TOptional<Type.TString>;
|
|
19
20
|
}>;
|
|
20
21
|
/**
|
|
21
22
|
* Create an image analysis tool that delegates to image.analyze 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 ImageToolParams = Type.Object({
|
|
@@ -8,16 +8,17 @@
|
|
|
8
8
|
* @module
|
|
9
9
|
*/
|
|
10
10
|
import type { AgentTool } from "@mariozechner/pi-agent-core";
|
|
11
|
+
import { Type } from "typebox";
|
|
11
12
|
import type { ApprovalGate } from "@comis/core";
|
|
12
13
|
import type { RpcCall } from "./cron-tool.js";
|
|
13
|
-
declare const McpManageToolParams:
|
|
14
|
-
action:
|
|
15
|
-
name:
|
|
16
|
-
transport:
|
|
17
|
-
command:
|
|
18
|
-
args:
|
|
19
|
-
url:
|
|
20
|
-
headers:
|
|
14
|
+
declare const McpManageToolParams: Type.TObject<{
|
|
15
|
+
action: Type.TUnion<[Type.TLiteral<"list">, Type.TLiteral<"status">, Type.TLiteral<"connect">, Type.TLiteral<"disconnect">, Type.TLiteral<"reconnect">]>;
|
|
16
|
+
name: Type.TOptional<Type.TString>;
|
|
17
|
+
transport: Type.TOptional<Type.TString>;
|
|
18
|
+
command: Type.TOptional<Type.TString>;
|
|
19
|
+
args: Type.TOptional<Type.TArray<Type.TString>>;
|
|
20
|
+
url: Type.TOptional<Type.TString>;
|
|
21
|
+
headers: Type.TOptional<Type.TRecord<"^.*$", Type.TString>>;
|
|
21
22
|
}>;
|
|
22
23
|
export declare function createMcpManageTool(rpcCall: RpcCall, approvalGate?: ApprovalGate): AgentTool<typeof McpManageToolParams>;
|
|
23
24
|
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,11 +8,12 @@
|
|
|
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 "./memory-search-tool.js";
|
|
12
|
-
declare const MemoryGetParams:
|
|
13
|
-
path:
|
|
14
|
-
start_line:
|
|
15
|
-
end_line:
|
|
13
|
+
declare const MemoryGetParams: Type.TObject<{
|
|
14
|
+
path: Type.TString;
|
|
15
|
+
start_line: Type.TOptional<Type.TInteger>;
|
|
16
|
+
end_line: Type.TOptional<Type.TInteger>;
|
|
16
17
|
}>;
|
|
17
18
|
/**
|
|
18
19
|
* Create a memory get tool that reads specific memory file sections.
|
|
@@ -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 MemoryGetParams = Type.Object({
|
|
@@ -9,19 +9,20 @@
|
|
|
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 MemoryManageToolParams:
|
|
15
|
-
action:
|
|
16
|
-
tenant_id:
|
|
17
|
-
agent_id:
|
|
18
|
-
ids:
|
|
19
|
-
offset:
|
|
20
|
-
limit:
|
|
21
|
-
sort:
|
|
22
|
-
memory_type:
|
|
23
|
-
trust_level:
|
|
24
|
-
tags:
|
|
15
|
+
declare const MemoryManageToolParams: Type.TObject<{
|
|
16
|
+
action: Type.TUnion<[Type.TLiteral<"stats">, Type.TLiteral<"browse">, Type.TLiteral<"delete">, Type.TLiteral<"flush">, Type.TLiteral<"export">]>;
|
|
17
|
+
tenant_id: Type.TOptional<Type.TString>;
|
|
18
|
+
agent_id: Type.TOptional<Type.TString>;
|
|
19
|
+
ids: Type.TOptional<Type.TArray<Type.TString>>;
|
|
20
|
+
offset: Type.TOptional<Type.TInteger>;
|
|
21
|
+
limit: Type.TOptional<Type.TInteger>;
|
|
22
|
+
sort: Type.TOptional<Type.TUnion<[Type.TLiteral<"newest">, Type.TLiteral<"oldest">]>>;
|
|
23
|
+
memory_type: Type.TOptional<Type.TString>;
|
|
24
|
+
trust_level: Type.TOptional<Type.TString>;
|
|
25
|
+
tags: Type.TOptional<Type.TArray<Type.TString>>;
|
|
25
26
|
}>;
|
|
26
27
|
/**
|
|
27
28
|
* Create a memory management tool with 5 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 { jsonResult, throwToolError, readEnumParam, createTrustGuard, } from "./tool-helpers.js";
|
|
15
15
|
// ---------------------------------------------------------------------------
|
|
@@ -7,11 +7,12 @@
|
|
|
7
7
|
* @module
|
|
8
8
|
*/
|
|
9
9
|
import type { AgentTool } from "@mariozechner/pi-agent-core";
|
|
10
|
+
import { Type } from "typebox";
|
|
10
11
|
/** RPC call function type for daemon communication. */
|
|
11
12
|
export type RpcCall = (method: string, params: Record<string, unknown>) => Promise<unknown>;
|
|
12
|
-
declare const MemorySearchParams:
|
|
13
|
-
query:
|
|
14
|
-
limit:
|
|
13
|
+
declare const MemorySearchParams: Type.TObject<{
|
|
14
|
+
query: Type.TString;
|
|
15
|
+
limit: Type.TOptional<Type.TInteger>;
|
|
15
16
|
}>;
|
|
16
17
|
/**
|
|
17
18
|
* Create a memory search tool that finds relevant memories semantically.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @module
|
|
9
9
|
*/
|
|
10
|
-
import { Type } from "
|
|
10
|
+
import { Type } from "typebox";
|
|
11
11
|
import { jsonResult, readStringParam, readNumberParam } from "./tool-helpers.js";
|
|
12
12
|
// ── Parameter Schema ────────────────────────────────────────────────
|
|
13
13
|
const MemorySearchParams = Type.Object({
|
|
@@ -7,10 +7,11 @@
|
|
|
7
7
|
* @module
|
|
8
8
|
*/
|
|
9
9
|
import type { AgentTool } from "@mariozechner/pi-agent-core";
|
|
10
|
+
import { Type } from "typebox";
|
|
10
11
|
import type { RpcCall } from "./memory-search-tool.js";
|
|
11
|
-
declare const MemoryStoreParams:
|
|
12
|
-
content:
|
|
13
|
-
tags:
|
|
12
|
+
declare const MemoryStoreParams: Type.TObject<{
|
|
13
|
+
content: Type.TString;
|
|
14
|
+
tags: Type.TOptional<Type.TArray<Type.TString>>;
|
|
14
15
|
}>;
|
|
15
16
|
/**
|
|
16
17
|
* Create a memory store tool that persists information for future recall.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @module
|
|
9
9
|
*/
|
|
10
|
-
import { Type } from "
|
|
10
|
+
import { Type } from "typebox";
|
|
11
11
|
import { jsonResult, readStringParam } from "./tool-helpers.js";
|
|
12
12
|
// ── Secret detection ────────────────────────────────────────────────
|
|
13
13
|
/** Patterns that suggest content contains an API key or secret. */
|
|
@@ -9,41 +9,42 @@
|
|
|
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 MessageToolParams:
|
|
14
|
-
action:
|
|
15
|
-
channel_type:
|
|
16
|
-
channel_id:
|
|
17
|
-
text:
|
|
18
|
-
message_id:
|
|
19
|
-
emoji:
|
|
20
|
-
limit:
|
|
21
|
-
before:
|
|
22
|
-
attachment_url:
|
|
23
|
-
attachment_type:
|
|
24
|
-
mime_type:
|
|
25
|
-
file_name:
|
|
26
|
-
caption:
|
|
27
|
-
buttons:
|
|
28
|
-
text:
|
|
29
|
-
callback_data:
|
|
30
|
-
url:
|
|
31
|
-
style:
|
|
14
|
+
declare const MessageToolParams: Type.TObject<{
|
|
15
|
+
action: Type.TUnion<[Type.TLiteral<"send">, Type.TLiteral<"reply">, Type.TLiteral<"react">, Type.TLiteral<"edit">, Type.TLiteral<"delete">, Type.TLiteral<"fetch">, Type.TLiteral<"attach">]>;
|
|
16
|
+
channel_type: Type.TString;
|
|
17
|
+
channel_id: Type.TString;
|
|
18
|
+
text: Type.TOptional<Type.TString>;
|
|
19
|
+
message_id: Type.TOptional<Type.TString>;
|
|
20
|
+
emoji: Type.TOptional<Type.TString>;
|
|
21
|
+
limit: Type.TOptional<Type.TInteger>;
|
|
22
|
+
before: Type.TOptional<Type.TString>;
|
|
23
|
+
attachment_url: Type.TOptional<Type.TString>;
|
|
24
|
+
attachment_type: Type.TOptional<Type.TUnion<[Type.TLiteral<"image">, Type.TLiteral<"file">, Type.TLiteral<"audio">, Type.TLiteral<"video">]>>;
|
|
25
|
+
mime_type: Type.TOptional<Type.TString>;
|
|
26
|
+
file_name: Type.TOptional<Type.TString>;
|
|
27
|
+
caption: Type.TOptional<Type.TString>;
|
|
28
|
+
buttons: Type.TOptional<Type.TArray<Type.TArray<Type.TObject<{
|
|
29
|
+
text: Type.TString;
|
|
30
|
+
callback_data: Type.TOptional<Type.TString>;
|
|
31
|
+
url: Type.TOptional<Type.TString>;
|
|
32
|
+
style: Type.TOptional<Type.TUnion<[Type.TLiteral<"primary">, Type.TLiteral<"secondary">, Type.TLiteral<"danger">, Type.TLiteral<"link">]>>;
|
|
32
33
|
}>>>>;
|
|
33
|
-
cards:
|
|
34
|
-
title:
|
|
35
|
-
description:
|
|
36
|
-
image_url:
|
|
37
|
-
color:
|
|
38
|
-
fields:
|
|
39
|
-
name:
|
|
40
|
-
value:
|
|
41
|
-
inline:
|
|
34
|
+
cards: Type.TOptional<Type.TArray<Type.TObject<{
|
|
35
|
+
title: Type.TOptional<Type.TString>;
|
|
36
|
+
description: Type.TOptional<Type.TString>;
|
|
37
|
+
image_url: Type.TOptional<Type.TString>;
|
|
38
|
+
color: Type.TOptional<Type.TInteger>;
|
|
39
|
+
fields: Type.TOptional<Type.TArray<Type.TObject<{
|
|
40
|
+
name: Type.TString;
|
|
41
|
+
value: Type.TString;
|
|
42
|
+
inline: Type.TOptional<Type.TBoolean>;
|
|
42
43
|
}>>>;
|
|
43
44
|
}>>>;
|
|
44
|
-
effects:
|
|
45
|
-
thread_reply:
|
|
46
|
-
_confirmed:
|
|
45
|
+
effects: Type.TOptional<Type.TArray<Type.TUnion<[Type.TLiteral<"spoiler">, Type.TLiteral<"silent">]>>>;
|
|
46
|
+
thread_reply: Type.TOptional<Type.TBoolean>;
|
|
47
|
+
_confirmed: Type.TOptional<Type.TBoolean>;
|
|
47
48
|
}>;
|
|
48
49
|
export declare function createMessageTool(rpcCall: RpcCall): AgentTool<typeof MessageToolParams>;
|
|
49
50
|
export {};
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* @module
|
|
11
11
|
*/
|
|
12
|
-
import { Type } from "
|
|
12
|
+
import { Type } from "typebox";
|
|
13
13
|
import { readStringParam, readNumberParam, throwToolError, createActionGate, } from "./tool-helpers.js";
|
|
14
14
|
import { createMultiActionDispatchTool } from "./messaging-factory.js";
|
|
15
15
|
// ---------------------------------------------------------------------------
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* @module
|
|
11
11
|
*/
|
|
12
12
|
import type { AgentTool, AgentToolResult } from "@mariozechner/pi-agent-core";
|
|
13
|
-
import type { TSchema } from "
|
|
13
|
+
import type { TSchema } from "typebox";
|
|
14
14
|
import type { RpcCall } from "./cron-tool.js";
|
|
15
15
|
/**
|
|
16
16
|
* Configuration for a simple single-RPC-method tool.
|
|
@@ -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 ModelsManageToolParams:
|
|
14
|
-
action:
|
|
15
|
-
provider:
|
|
14
|
+
declare const ModelsManageToolParams: Type.TObject<{
|
|
15
|
+
action: Type.TUnion<[Type.TLiteral<"list">, Type.TLiteral<"test">, Type.TLiteral<"list_providers">]>;
|
|
16
|
+
provider: Type.TOptional<Type.TString>;
|
|
16
17
|
}>;
|
|
17
18
|
/**
|
|
18
19
|
* Create a model management tool with 2 actions.
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* @module
|
|
11
11
|
*/
|
|
12
|
-
import { Type } from "
|
|
12
|
+
import { Type } from "typebox";
|
|
13
13
|
import { readStringParam } from "./tool-helpers.js";
|
|
14
14
|
import { createAdminManageTool } from "./admin-manage-factory.js";
|
|
15
15
|
// ---------------------------------------------------------------------------
|
|
@@ -19,13 +19,14 @@ const ModelsManageToolParams = Type.Object({
|
|
|
19
19
|
action: Type.Union([
|
|
20
20
|
Type.Literal("list"),
|
|
21
21
|
Type.Literal("test"),
|
|
22
|
-
|
|
22
|
+
Type.Literal("list_providers"),
|
|
23
|
+
], { description: "Model management action. Valid values: list (query model catalog), test (check provider availability), list_providers (live native pi-ai catalog provider list for self-discovery)" }),
|
|
23
24
|
provider: Type.Optional(Type.String({
|
|
24
|
-
description: "Provider name to filter results (optional for list, required for test). " +
|
|
25
|
+
description: "Provider name to filter results (optional for list, required for test, ignored for list_providers). " +
|
|
25
26
|
"Examples: anthropic, openai, google, groq.",
|
|
26
27
|
})),
|
|
27
28
|
});
|
|
28
|
-
const VALID_ACTIONS = ["list", "test"];
|
|
29
|
+
const VALID_ACTIONS = ["list", "test", "list_providers"];
|
|
29
30
|
// ---------------------------------------------------------------------------
|
|
30
31
|
// Factory
|
|
31
32
|
// ---------------------------------------------------------------------------
|
|
@@ -71,6 +72,12 @@ export function createModelsManageTool(rpcCall) {
|
|
|
71
72
|
const provider = readStringParam(p, "provider");
|
|
72
73
|
return rpcCall("models.test", { provider, _trustLevel: ctx.trustLevel });
|
|
73
74
|
},
|
|
75
|
+
// Layer 1F (260430-vwt): live native-catalog provider list for
|
|
76
|
+
// agent self-discovery. Pairs with the tool-guide pointer so the
|
|
77
|
+
// agent can confirm which names auto-promote in providers.create.
|
|
78
|
+
async list_providers(_p, rpcCall, ctx) {
|
|
79
|
+
return rpcCall("models.list_providers", { _trustLevel: ctx.trustLevel });
|
|
80
|
+
},
|
|
74
81
|
},
|
|
75
82
|
}, rpcCall);
|
|
76
83
|
}
|
|
@@ -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 notify_user tool for proactive notification delivery.
|
|
@@ -20,9 +21,9 @@ 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 notification.send
|
|
22
23
|
*/
|
|
23
|
-
export declare function createNotifyTool(rpcCall: RpcCall): import("@mariozechner/pi-agent-core").AgentTool<
|
|
24
|
-
message:
|
|
25
|
-
priority:
|
|
26
|
-
channel_type:
|
|
27
|
-
channel_id:
|
|
24
|
+
export declare function createNotifyTool(rpcCall: RpcCall): import("@mariozechner/pi-agent-core").AgentTool<Type.TObject<{
|
|
25
|
+
message: Type.TString;
|
|
26
|
+
priority: Type.TOptional<Type.TUnion<[Type.TLiteral<"low">, Type.TLiteral<"normal">, Type.TLiteral<"high">, Type.TLiteral<"critical">]>>;
|
|
27
|
+
channel_type: Type.TOptional<Type.TString>;
|
|
28
|
+
channel_id: Type.TOptional<Type.TString>;
|
|
28
29
|
}>, any>;
|