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
|
@@ -164,12 +164,24 @@ export declare function setupAgents(deps: {
|
|
|
164
164
|
backgroundNotifyFn?: import("@comis/agent").NotifyFn;
|
|
165
165
|
}): Promise<AgentsResult>;
|
|
166
166
|
/**
|
|
167
|
-
* Resolve "default" model/provider placeholders to
|
|
168
|
-
* Called once per agent at daemon startup so executors always
|
|
169
|
-
*
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
*
|
|
167
|
+
* Resolve "default" model/provider placeholders to concrete values from the
|
|
168
|
+
* pi-ai catalog. Called once per agent at daemon startup so executors always
|
|
169
|
+
* receive concrete values.
|
|
170
|
+
*
|
|
171
|
+
* Resolution sources, in priority order:
|
|
172
|
+
* 1. Per-agent explicit value (agentConfig.model / .provider not "default")
|
|
173
|
+
* 2. YAML models.defaultModel / models.defaultProvider (operator override)
|
|
174
|
+
* 3. Catalog heuristic for provider: most-populated native pi-ai provider
|
|
175
|
+
* (e.g. openrouter at 249 models > anthropic at 23). Single source of
|
|
176
|
+
* truth — no env var, no hardcoded FALLBACK_PROVIDER. If users want
|
|
177
|
+
* a specific default, they set models.defaultProvider in YAML.
|
|
178
|
+
* 4. Catalog heuristic for model: resolveOperationDefaults(provider).mid
|
|
179
|
+
* (mid-tier cost), falling back to getModels(provider)[0].id.
|
|
180
|
+
*
|
|
181
|
+
* Throws when the pi-ai catalog is empty (zero providers / zero models for
|
|
182
|
+
* the resolved provider) — the caller is asking for a default and we can't
|
|
183
|
+
* synthesize one. Operators can recover by setting models.defaultProvider /
|
|
184
|
+
* models.defaultModel explicitly.
|
|
173
185
|
*/
|
|
174
186
|
export declare function resolveAgentModel(agentConfig: {
|
|
175
187
|
model: string;
|
|
@@ -12,7 +12,8 @@ import { createHmac } from "node:crypto";
|
|
|
12
12
|
import { homedir } from "node:os";
|
|
13
13
|
import { existsSync, mkdirSync } from "node:fs";
|
|
14
14
|
import { isAbsolute, resolve } from "node:path";
|
|
15
|
-
import {
|
|
15
|
+
import { getModels, getProviders } from "@mariozechner/pi-ai";
|
|
16
|
+
import { createCircuitBreaker, createBudgetGuard, createCostTracker, createStepCounter, createSessionLifecycle, ensureWorkspace, resolveWorkspaceDir, createPiExecutor, createComisSessionManager, cleanupStaleLocks, createAuthStorageAdapter, createModelRegistryAdapter, registerCustomProviders, createProviderHealthMonitor, createLastKnownModelTracker, createAuthProfileManager, createAuthRotationAdapter, setSanitizeLogger, setToolNormalizationLogger, resolveOperationDefaults, resolveCompactionModel, LEAN_TOOL_DESCRIPTIONS, resolveDescription, } from "@comis/agent";
|
|
16
17
|
import { agentToolsToToolDefinitions, createSkillRegistry, createRuntimeEligibilityContext, TOOL_PROFILES, } from "@comis/skills";
|
|
17
18
|
// ---------------------------------------------------------------------------
|
|
18
19
|
// Single-agent setup (extracted for hot-add reuse)
|
|
@@ -28,7 +29,14 @@ export async function setupSingleAgent(agentId, rawAgentConfig, deps) {
|
|
|
28
29
|
// Validate agent config with Zod before any runtime setup
|
|
29
30
|
const agentConfig = PerAgentConfigSchema.parse(rawAgentConfig);
|
|
30
31
|
const { container, memoryAdapter, agentLogger, resolvedAgentDir } = deps;
|
|
31
|
-
// Resolve "default" model/provider to global defaults (MODELS-DEFAULT)
|
|
32
|
+
// Resolve "default" model/provider to global defaults (MODELS-DEFAULT).
|
|
33
|
+
// Resolution sources, in priority order:
|
|
34
|
+
// 1. Per-agent explicit value (agentConfig.model / .provider)
|
|
35
|
+
// 2. modelsConfig.defaultModel / .defaultProvider (YAML models.* section)
|
|
36
|
+
// 3. Pi-ai catalog: most-populated native provider (heuristic), mid-tier
|
|
37
|
+
// cost model from resolveOperationDefaults
|
|
38
|
+
// Surfaces resolution source at INFO once per agent so operators can see
|
|
39
|
+
// which model got picked without having to read the resolver source.
|
|
32
40
|
const modelsConfig = container.config.models;
|
|
33
41
|
const resolved = resolveAgentModel(agentConfig, modelsConfig);
|
|
34
42
|
const effectiveConfig = { ...agentConfig, model: resolved.model, provider: resolved.provider };
|
|
@@ -37,8 +45,34 @@ export async function setupSingleAgent(agentId, rawAgentConfig, deps) {
|
|
|
37
45
|
// see the resolved model/provider instead of the placeholder "default".
|
|
38
46
|
container.config.agents[agentId] = effectiveConfig;
|
|
39
47
|
if (agentConfig.model !== resolved.model || agentConfig.provider !== resolved.provider) {
|
|
40
|
-
|
|
41
|
-
|
|
48
|
+
const source = modelsConfig.defaultModel || modelsConfig.defaultProvider
|
|
49
|
+
? "explicit_yaml"
|
|
50
|
+
: "catalog_heuristic";
|
|
51
|
+
agentLogger.info({
|
|
52
|
+
agentId,
|
|
53
|
+
originalModel: agentConfig.model,
|
|
54
|
+
resolvedModel: resolved.model,
|
|
55
|
+
originalProvider: agentConfig.provider,
|
|
56
|
+
resolvedProvider: resolved.provider,
|
|
57
|
+
source,
|
|
58
|
+
}, "Resolved default model/provider for agent");
|
|
59
|
+
}
|
|
60
|
+
// Resolve contextEngine.compactionModel if it was left at the empty-string
|
|
61
|
+
// schema default. The resolved value is informational — actual compaction
|
|
62
|
+
// routing flows through resolveOperationModel(operationType: "compaction")
|
|
63
|
+
// at execute-time. Logging at INFO once per agent at startup gives
|
|
64
|
+
// operators a visible record of which model would back background ops.
|
|
65
|
+
const ceCompactionRaw = effectiveConfig.contextEngine?.compactionModel ?? "";
|
|
66
|
+
if (ceCompactionRaw.length === 0) {
|
|
67
|
+
const resolvedCompaction = resolveCompactionModel(ceCompactionRaw, resolved.provider);
|
|
68
|
+
if (resolvedCompaction.length > 0) {
|
|
69
|
+
agentLogger.info({
|
|
70
|
+
agentId,
|
|
71
|
+
primaryProvider: resolved.provider,
|
|
72
|
+
resolvedCompactionModel: resolvedCompaction,
|
|
73
|
+
source: "catalog_heuristic",
|
|
74
|
+
}, "Resolved compactionModel from pi-ai catalog");
|
|
75
|
+
}
|
|
42
76
|
}
|
|
43
77
|
// Each agent gets a dedicated workspace folder:
|
|
44
78
|
// default agent -> ~/.comis/workspace
|
|
@@ -423,50 +457,68 @@ export async function setupAgents(deps) {
|
|
|
423
457
|
// Helpers
|
|
424
458
|
// ---------------------------------------------------------------------------
|
|
425
459
|
/**
|
|
426
|
-
*
|
|
427
|
-
*
|
|
428
|
-
*
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
groq: "openai/gpt-oss-120b",
|
|
445
|
-
cerebras: "zai-glm-4.6",
|
|
446
|
-
zai: "glm-4.6",
|
|
447
|
-
mistral: "devstral-medium-latest",
|
|
448
|
-
minimax: "MiniMax-M2.7",
|
|
449
|
-
"minimax-cn": "MiniMax-M2.7",
|
|
450
|
-
huggingface: "moonshotai/Kimi-K2.5",
|
|
451
|
-
opencode: "claude-opus-4-6",
|
|
452
|
-
"kimi-coding": "kimi-k2-thinking",
|
|
453
|
-
};
|
|
454
|
-
const FALLBACK_PROVIDER = "anthropic";
|
|
455
|
-
/**
|
|
456
|
-
* Resolve "default" model/provider placeholders to global defaults.
|
|
457
|
-
* Called once per agent at daemon startup so executors always receive concrete values.
|
|
458
|
-
* Resolution order for model:
|
|
459
|
-
* 1. modelsConfig.defaultModel (from YAML models.defaultModel)
|
|
460
|
-
* 2. DEFAULT_MODEL_PER_PROVIDER[resolvedProvider]
|
|
461
|
-
* 3. DEFAULT_MODEL_PER_PROVIDER["anthropic"] (ultimate fallback)
|
|
460
|
+
* Resolve "default" model/provider placeholders to concrete values from the
|
|
461
|
+
* pi-ai catalog. Called once per agent at daemon startup so executors always
|
|
462
|
+
* receive concrete values.
|
|
463
|
+
*
|
|
464
|
+
* Resolution sources, in priority order:
|
|
465
|
+
* 1. Per-agent explicit value (agentConfig.model / .provider not "default")
|
|
466
|
+
* 2. YAML models.defaultModel / models.defaultProvider (operator override)
|
|
467
|
+
* 3. Catalog heuristic for provider: most-populated native pi-ai provider
|
|
468
|
+
* (e.g. openrouter at 249 models > anthropic at 23). Single source of
|
|
469
|
+
* truth — no env var, no hardcoded FALLBACK_PROVIDER. If users want
|
|
470
|
+
* a specific default, they set models.defaultProvider in YAML.
|
|
471
|
+
* 4. Catalog heuristic for model: resolveOperationDefaults(provider).mid
|
|
472
|
+
* (mid-tier cost), falling back to getModels(provider)[0].id.
|
|
473
|
+
*
|
|
474
|
+
* Throws when the pi-ai catalog is empty (zero providers / zero models for
|
|
475
|
+
* the resolved provider) — the caller is asking for a default and we can't
|
|
476
|
+
* synthesize one. Operators can recover by setting models.defaultProvider /
|
|
477
|
+
* models.defaultModel explicitly.
|
|
462
478
|
*/
|
|
463
479
|
export function resolveAgentModel(agentConfig, modelsConfig) {
|
|
464
|
-
const
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
480
|
+
const providerIsDefault = agentConfig.provider.toLowerCase() === "default";
|
|
481
|
+
const modelIsDefault = agentConfig.model.toLowerCase() === "default";
|
|
482
|
+
// Step 1: resolve provider
|
|
483
|
+
let provider;
|
|
484
|
+
if (!providerIsDefault) {
|
|
485
|
+
provider = agentConfig.provider;
|
|
486
|
+
}
|
|
487
|
+
else if (modelsConfig.defaultProvider) {
|
|
488
|
+
provider = modelsConfig.defaultProvider;
|
|
489
|
+
}
|
|
490
|
+
else {
|
|
491
|
+
// Catalog heuristic: most-populated native provider wins.
|
|
492
|
+
const allProviders = getProviders();
|
|
493
|
+
if (allProviders.length === 0) {
|
|
494
|
+
throw new Error("Pi-ai catalog returned zero providers. " +
|
|
495
|
+
"Install or upgrade @mariozechner/pi-ai, or set models.defaultProvider explicitly.");
|
|
496
|
+
}
|
|
497
|
+
provider = allProviders
|
|
498
|
+
.map((p) => ({ p, n: getModels(p).length }))
|
|
499
|
+
.sort((a, b) => b.n - a.n)[0].p;
|
|
500
|
+
}
|
|
501
|
+
// Step 2: resolve model
|
|
502
|
+
let model;
|
|
503
|
+
if (!modelIsDefault) {
|
|
504
|
+
model = agentConfig.model;
|
|
505
|
+
}
|
|
506
|
+
else if (modelsConfig.defaultModel) {
|
|
507
|
+
model = modelsConfig.defaultModel;
|
|
508
|
+
}
|
|
509
|
+
else {
|
|
510
|
+
// Catalog read: prefer mid-tier from resolveOperationDefaults
|
|
511
|
+
// (catalog-derived, cost-aware), fall back to first model id when
|
|
512
|
+
// resolveOperationDefaults returns {} (custom YAML providers).
|
|
513
|
+
const tier = resolveOperationDefaults(provider);
|
|
514
|
+
const firstId = getModels(provider)[0]?.id;
|
|
515
|
+
const candidate = tier.mid ?? firstId;
|
|
516
|
+
if (!candidate) {
|
|
517
|
+
throw new Error(`No models found for provider "${provider}" in pi-ai catalog. ` +
|
|
518
|
+
"Set models.defaultModel explicitly or upgrade @mariozechner/pi-ai.");
|
|
519
|
+
}
|
|
520
|
+
model = candidate;
|
|
521
|
+
}
|
|
470
522
|
return { model, provider };
|
|
471
523
|
}
|
|
472
524
|
/**
|
|
@@ -36,6 +36,11 @@ export interface ChannelsResult {
|
|
|
36
36
|
approvalNotifier?: ApprovalNotifier;
|
|
37
37
|
/** Full plugin objects keyed by channel type for capabilities RPC */
|
|
38
38
|
channelPlugins: Map<string, ChannelPluginPort>;
|
|
39
|
+
/** Per-channel capability info (notably `replyToMetaKey` — the metadata
|
|
40
|
+
* field carrying the platform-native message id). Used by the inbound
|
|
41
|
+
* UUID resolver so message.delete/edit/react can translate daemon UUIDs
|
|
42
|
+
* back to native ids before calling the channel adapter. */
|
|
43
|
+
channelCapabilities: Map<string, import("./setup-channels-adapters.js").ChannelCapabilityInfo>;
|
|
39
44
|
/** The command queue instance for parent session TTL extension during graph execution. */
|
|
40
45
|
commandQueue?: CommandQueue;
|
|
41
46
|
}
|
|
@@ -106,7 +111,14 @@ export interface ChannelsDeps {
|
|
|
106
111
|
rpcCall?: RpcCall;
|
|
107
112
|
/** Optional callback for task extraction after successful agent execution (gated by config.scheduler.tasks.enabled). */
|
|
108
113
|
onTaskExtraction?: (conversationText: string, sessionKey: string, agentId: string) => Promise<void>;
|
|
109
|
-
/**
|
|
114
|
+
/**
|
|
115
|
+
* Optional callback fired BEFORE each inbound message is dispatched to the
|
|
116
|
+
* executor. Used by the restart continuation tracker so the session is
|
|
117
|
+
* visible in tracker state before any tool call could trigger SIGUSR2.
|
|
118
|
+
* Bypassed for early-return paths (no-adapter, graph-report intercept).
|
|
119
|
+
*/
|
|
120
|
+
onMessageReceived?: (msg: NormalizedMessage, channelType: string) => void;
|
|
121
|
+
/** Optional callback fired AFTER each successful inbound message processing. Used by post-processing state (e.g. notification session activity recording). */
|
|
110
122
|
onMessageProcessed?: (msg: NormalizedMessage, channelType: string) => void;
|
|
111
123
|
/** Optional approval gate for /approve and /deny chat commands in inbound pipeline (APPR-CHAT). */
|
|
112
124
|
approvalGate?: import("@comis/core").ApprovalGate;
|
|
@@ -486,6 +486,7 @@ export async function setupChannels(deps) {
|
|
|
486
486
|
} : undefined,
|
|
487
487
|
// Task extraction callback (gated by config.scheduler.tasks.enabled)
|
|
488
488
|
onTaskExtraction: deps.onTaskExtraction,
|
|
489
|
+
onMessageReceived: deps.onMessageReceived,
|
|
489
490
|
onMessageProcessed: deps.onMessageProcessed,
|
|
490
491
|
// Graph report button callback intercept: deliver full report as .md file attachment
|
|
491
492
|
onGraphReportRequest: async (graphId, _channelType, channelId, adapter, threadId) => {
|
|
@@ -755,5 +756,5 @@ export async function setupChannels(deps) {
|
|
|
755
756
|
const resolveAttachmentByUrl = async (url) => {
|
|
756
757
|
return resolveAttachment({ url, type: "file" });
|
|
757
758
|
};
|
|
758
|
-
return { adaptersByType, channelManager, compositeResolver, resolveAttachment: resolveAttachmentByUrl, lifecycleReactors, approvalNotifier, channelPlugins, commandQueue };
|
|
759
|
+
return { adaptersByType, channelManager, compositeResolver, resolveAttachment: resolveAttachmentByUrl, lifecycleReactors, approvalNotifier, channelPlugins, channelCapabilities, commandQueue };
|
|
759
760
|
}
|
|
@@ -153,7 +153,7 @@ export function registerRpcMethods(deps) {
|
|
|
153
153
|
// -------------------------------------------------------------------------
|
|
154
154
|
// Model management admin methods
|
|
155
155
|
// -------------------------------------------------------------------------
|
|
156
|
-
registerRpcPassthrough(dynamicRouter, rpcCall, ["models.list", "models.test"], "admin");
|
|
156
|
+
registerRpcPassthrough(dynamicRouter, rpcCall, ["models.list", "models.list_providers", "models.test"], "admin");
|
|
157
157
|
// -------------------------------------------------------------------------
|
|
158
158
|
// Token management admin methods
|
|
159
159
|
// -------------------------------------------------------------------------
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comis/daemon",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.30",
|
|
5
5
|
"author": "Moshe Anconina",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "Background daemon and orchestrator for the Comis platform",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
"test": "vitest run"
|
|
46
46
|
},
|
|
47
47
|
"optionalDependencies": {
|
|
48
|
-
"sd-notify": "
|
|
48
|
+
"sd-notify": "2.8.0"
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* @module
|
|
13
13
|
*/
|
|
14
14
|
import type { AgentTool } from "@mariozechner/pi-agent-core";
|
|
15
|
-
import { type TSchema } from "
|
|
15
|
+
import { type TSchema } from "typebox";
|
|
16
16
|
import { type ToolSourceProfile } from "../builtin/tool-source-profiles.js";
|
|
17
17
|
import type { McpToolDefinition, McpClientManager } from "../integrations/mcp-client.js";
|
|
18
18
|
/** Minimal pino-compatible logger for MCP bridge diagnostic logging. */
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*
|
|
13
13
|
* @module
|
|
14
14
|
*/
|
|
15
|
-
import { Type } from "
|
|
15
|
+
import { Type } from "typebox";
|
|
16
16
|
import { registerToolMetadata } from "@comis/core";
|
|
17
17
|
import { resolveSourceProfile } from "../builtin/tool-source-profiles.js";
|
|
18
18
|
import { sanitizeMcpToolResult } from "../integrations/mcp-result-sanitizer.js";
|
|
@@ -68,7 +68,7 @@ export function wrapWithAudit(tool, eventBus, agentId) {
|
|
|
68
68
|
traceId: ctx?.traceId,
|
|
69
69
|
agentId,
|
|
70
70
|
sessionKey: ctx?.sessionKey,
|
|
71
|
-
params,
|
|
71
|
+
params: params,
|
|
72
72
|
...(errorMessage !== undefined && { errorMessage }),
|
|
73
73
|
...(errorKind !== undefined && { errorKind }),
|
|
74
74
|
});
|
|
@@ -21,21 +21,22 @@
|
|
|
21
21
|
* @module
|
|
22
22
|
*/
|
|
23
23
|
import type { AgentTool } from "@mariozechner/pi-agent-core";
|
|
24
|
+
import { Type } from "typebox";
|
|
24
25
|
import type { SecretManager } from "@comis/core";
|
|
25
26
|
import type { ExecSandboxConfig } from "./sandbox/types.js";
|
|
26
27
|
import type { ProcessRegistry } from "./process-registry.js";
|
|
27
28
|
import type { TypedEventBus } from "@comis/core";
|
|
28
|
-
declare const ExecParams:
|
|
29
|
-
command:
|
|
30
|
-
cwd:
|
|
31
|
-
timeoutMs:
|
|
32
|
-
env:
|
|
33
|
-
background:
|
|
34
|
-
input:
|
|
35
|
-
autoBackgroundMs:
|
|
36
|
-
description:
|
|
37
|
-
pty:
|
|
38
|
-
secretRefs:
|
|
29
|
+
declare const ExecParams: Type.TObject<{
|
|
30
|
+
command: Type.TString;
|
|
31
|
+
cwd: Type.TOptional<Type.TString>;
|
|
32
|
+
timeoutMs: Type.TOptional<Type.TInteger>;
|
|
33
|
+
env: Type.TOptional<Type.TRecord<"^.*$", Type.TString>>;
|
|
34
|
+
background: Type.TOptional<Type.TBoolean>;
|
|
35
|
+
input: Type.TOptional<Type.TString>;
|
|
36
|
+
autoBackgroundMs: Type.TOptional<Type.TInteger>;
|
|
37
|
+
description: Type.TOptional<Type.TString>;
|
|
38
|
+
pty: Type.TOptional<Type.TBoolean>;
|
|
39
|
+
secretRefs: Type.TOptional<Type.TArray<Type.TString>>;
|
|
39
40
|
}>;
|
|
40
41
|
/** Minimal pino-compatible logger for structured tool logging. */
|
|
41
42
|
interface ToolLogger {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
*
|
|
22
22
|
* @module
|
|
23
23
|
*/
|
|
24
|
-
import { Type } from "
|
|
24
|
+
import { Type } from "typebox";
|
|
25
25
|
import { spawn } from "node:child_process";
|
|
26
26
|
import { createWriteStream, mkdirSync, writeFileSync, copyFileSync, statSync } from "node:fs";
|
|
27
27
|
import { tmpdir } from "node:os";
|
|
@@ -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 LazyPaths, type SafePathLogger } from "./safe-path-wrapper.js";
|
|
12
|
-
declare const ApplyPatchParams:
|
|
13
|
-
patch:
|
|
13
|
+
declare const ApplyPatchParams: Type.TObject<{
|
|
14
|
+
patch: Type.TString;
|
|
14
15
|
}>;
|
|
15
16
|
export declare function createApplyPatchTool(workspacePath: string, sharedPaths?: LazyPaths, logger?: SafePathLogger): AgentTool<typeof ApplyPatchParams>;
|
|
16
17
|
export {};
|
|
@@ -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 { FileStateTracker } from "../file/file-state-tracker.js";
|
|
13
14
|
import { type LazyPaths } from "../file/safe-path-wrapper.js";
|
|
14
15
|
/** Minimal pino-compatible logger interface (skills does not import @comis/infra). */
|
|
@@ -16,12 +17,12 @@ interface ToolLogger {
|
|
|
16
17
|
warn(obj: Record<string, unknown>, msg: string): void;
|
|
17
18
|
debug(obj: Record<string, unknown>, msg: string): void;
|
|
18
19
|
}
|
|
19
|
-
declare const EditParams:
|
|
20
|
-
path:
|
|
21
|
-
edits:
|
|
22
|
-
oldText:
|
|
23
|
-
newText:
|
|
24
|
-
replaceAll:
|
|
20
|
+
declare const EditParams: Type.TObject<{
|
|
21
|
+
path: Type.TString;
|
|
22
|
+
edits: Type.TArray<Type.TObject<{
|
|
23
|
+
oldText: Type.TString;
|
|
24
|
+
newText: Type.TString;
|
|
25
|
+
replaceAll: Type.TOptional<Type.TBoolean>;
|
|
25
26
|
}>>;
|
|
26
27
|
}>;
|
|
27
28
|
/**
|
|
@@ -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 LazyPaths } from "../file/safe-path-wrapper.js";
|
|
12
13
|
/** Minimal pino-compatible logger interface (skills does not import @comis/infra). */
|
|
13
14
|
interface ToolLogger {
|
|
14
15
|
debug?(msg: string, ...args: unknown[]): void;
|
|
15
16
|
}
|
|
16
|
-
declare const FindParams:
|
|
17
|
-
pattern:
|
|
18
|
-
path:
|
|
19
|
-
limit:
|
|
20
|
-
include_hidden:
|
|
17
|
+
declare const FindParams: Type.TObject<{
|
|
18
|
+
pattern: Type.TString;
|
|
19
|
+
path: Type.TOptional<Type.TString>;
|
|
20
|
+
limit: Type.TOptional<Type.TInteger>;
|
|
21
|
+
include_hidden: Type.TOptional<Type.TBoolean>;
|
|
21
22
|
}>;
|
|
22
23
|
/**
|
|
23
24
|
* Create the native find tool.
|
|
@@ -8,26 +8,27 @@
|
|
|
8
8
|
* @module
|
|
9
9
|
*/
|
|
10
10
|
import type { AgentTool } from "@mariozechner/pi-agent-core";
|
|
11
|
+
import { Type } from "typebox";
|
|
11
12
|
import { type LazyPaths } from "../file/safe-path-wrapper.js";
|
|
12
13
|
/** Minimal pino-compatible logger interface (skills does not import @comis/infra). */
|
|
13
14
|
interface ToolLogger {
|
|
14
15
|
debug?(msg: string, ...args: unknown[]): void;
|
|
15
16
|
}
|
|
16
|
-
declare const GrepParams:
|
|
17
|
-
pattern:
|
|
18
|
-
path:
|
|
19
|
-
output_mode:
|
|
20
|
-
glob:
|
|
21
|
-
type:
|
|
22
|
-
"-A":
|
|
23
|
-
"-B":
|
|
24
|
-
"-C":
|
|
25
|
-
"-n":
|
|
26
|
-
"-i":
|
|
27
|
-
multiline:
|
|
28
|
-
literal:
|
|
29
|
-
head_limit:
|
|
30
|
-
offset:
|
|
17
|
+
declare const GrepParams: Type.TObject<{
|
|
18
|
+
pattern: Type.TString;
|
|
19
|
+
path: Type.TOptional<Type.TString>;
|
|
20
|
+
output_mode: Type.TOptional<Type.TUnion<[Type.TLiteral<"content">, Type.TLiteral<"files_with_matches">, Type.TLiteral<"count">]>>;
|
|
21
|
+
glob: Type.TOptional<Type.TString>;
|
|
22
|
+
type: Type.TOptional<Type.TString>;
|
|
23
|
+
"-A": Type.TOptional<Type.TInteger>;
|
|
24
|
+
"-B": Type.TOptional<Type.TInteger>;
|
|
25
|
+
"-C": Type.TOptional<Type.TInteger>;
|
|
26
|
+
"-n": Type.TOptional<Type.TBoolean>;
|
|
27
|
+
"-i": Type.TOptional<Type.TBoolean>;
|
|
28
|
+
multiline: Type.TOptional<Type.TBoolean>;
|
|
29
|
+
literal: Type.TOptional<Type.TBoolean>;
|
|
30
|
+
head_limit: Type.TOptional<Type.TInteger>;
|
|
31
|
+
offset: Type.TOptional<Type.TInteger>;
|
|
31
32
|
}>;
|
|
32
33
|
/**
|
|
33
34
|
* Create the native grep tool.
|
|
@@ -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 LazyPaths } from "../file/safe-path-wrapper.js";
|
|
12
13
|
/** Minimal pino-compatible logger interface (skills does not import @comis/infra). */
|
|
13
14
|
interface ToolLogger {
|
|
14
15
|
debug?(msg: string, ...args: unknown[]): void;
|
|
15
16
|
}
|
|
16
|
-
declare const LsParams:
|
|
17
|
-
path:
|
|
18
|
-
limit:
|
|
17
|
+
declare const LsParams: Type.TObject<{
|
|
18
|
+
path: Type.TString;
|
|
19
|
+
limit: Type.TOptional<Type.TInteger>;
|
|
19
20
|
}>;
|
|
20
21
|
/**
|
|
21
22
|
* Create the native ls tool.
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @module
|
|
10
10
|
*/
|
|
11
|
-
import { Type } from "
|
|
11
|
+
import { Type } from "typebox";
|
|
12
12
|
import * as fsp from "node:fs/promises";
|
|
13
13
|
import { safePath, PathTraversalError } from "@comis/core";
|
|
14
14
|
import { resolvePaths } from "../file/safe-path-wrapper.js";
|
|
@@ -8,17 +8,18 @@
|
|
|
8
8
|
* @module
|
|
9
9
|
*/
|
|
10
10
|
import type { AgentTool } from "@mariozechner/pi-agent-core";
|
|
11
|
+
import { Type } from "typebox";
|
|
11
12
|
import type { FileStateTracker } from "../file/file-state-tracker.js";
|
|
12
13
|
interface ToolLogger {
|
|
13
14
|
warn(obj: Record<string, unknown>, msg: string): void;
|
|
14
15
|
debug(obj: Record<string, unknown>, msg: string): void;
|
|
15
16
|
}
|
|
16
|
-
declare const NotebookEditParams:
|
|
17
|
-
path:
|
|
18
|
-
cell_id:
|
|
19
|
-
new_source:
|
|
20
|
-
cell_type:
|
|
21
|
-
edit_mode:
|
|
17
|
+
declare const NotebookEditParams: Type.TObject<{
|
|
18
|
+
path: Type.TString;
|
|
19
|
+
cell_id: Type.TOptional<Type.TString>;
|
|
20
|
+
new_source: Type.TOptional<Type.TString>;
|
|
21
|
+
cell_type: Type.TOptional<Type.TUnion<[Type.TLiteral<"code">, Type.TLiteral<"markdown">, Type.TLiteral<"raw">]>>;
|
|
22
|
+
edit_mode: Type.TOptional<Type.TUnion<[Type.TLiteral<"replace">, Type.TLiteral<"insert">, Type.TLiteral<"delete">]>>;
|
|
22
23
|
}>;
|
|
23
24
|
/**
|
|
24
25
|
* Create a notebook edit tool for cell-level Jupyter notebook operations.
|