@tencent-ai/agent-sdk 0.3.263-dev.90f0e98.202609190050 → 0.3.263
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/cli/dist/codebuddy-headless.js +1 -1
- package/cli/dist/codebuddy-lite-wb.mjs +1 -1
- package/cli/dist-server/codebuddy.js +1 -1
- package/cli/dist-server/types/node/references/index.d.ts +2 -0
- package/cli/dist-server/types/node/settings/settings-controller.d.ts +23 -0
- package/cli/dist-server/types/node/settings/settings-validate-middleware.d.ts +9 -0
- package/cli/dist-server/types/node/utils/compress-path.source.d.ts +59 -0
- package/cli/package.json +2 -3
- package/cli/product.cloudhosted.json +2 -2
- package/cli/product.internal.json +2 -2
- package/cli/product.ioa.json +2 -2
- package/cli/product.json +2 -2
- package/cli/product.selfhosted.json +2 -2
- package/package.json +2 -3
- package/cli/dist-server/types/node/a2a/a2a-artifact-download-service.d.ts +0 -51
- package/cli/dist-server/types/node/a2a/a2a-context-store.d.ts +0 -100
- package/cli/dist-server/types/node/a2a/a2a-remote-cancel.d.ts +0 -111
- package/cli/dist-server/types/node/acp/usage-by-category-calculator.d.ts +0 -45
- package/cli/dist-server/types/node/acp/usage-by-category-char-weight.d.ts +0 -9
- package/cli/dist-server/types/node/acp/usage-by-category-distribute.d.ts +0 -6
- package/cli/dist-server/types/node/acp/usage-by-category-tools-split.d.ts +0 -11
- package/cli/dist-server/types/node/agent/agent-config-cli-fields.d.ts +0 -57
- package/cli/dist-server/types/node/agent/agent-controller.d.ts +0 -127
- package/cli/dist-server/types/node/agent/agent-display.d.ts +0 -77
- package/cli/dist-server/types/node/agent/agent-runtime-adapter.d.ts +0 -69
- package/cli/dist-server/types/node/agent/custom-agent-identity.d.ts +0 -54
- package/cli/dist-server/types/node/agent/custom-agent-manager.d.ts +0 -43
- package/cli/dist-server/types/node/agent/custom-agent-path-registry.d.ts +0 -19
- package/cli/dist-server/types/node/agent/insights-data-agent-run-interceptor.d.ts +0 -67
- package/cli/dist-server/types/node/agent/interceptor-name-registry.d.ts +0 -4
- package/cli/dist-server/types/node/agent/interceptors/channel-event-interceptor.d.ts +0 -44
- package/cli/dist-server/types/node/agent/interceptors/command-interceptors.d.ts +0 -71
- package/cli/dist-server/types/node/agent/interceptors/deep-research-pending-interceptor.d.ts +0 -30
- package/cli/dist-server/types/node/agent/interceptors/env-interceptor.d.ts +0 -7
- package/cli/dist-server/types/node/agent/interceptors/file-interceptors.d.ts +0 -38
- package/cli/dist-server/types/node/agent/interceptors/image-interceptors.d.ts +0 -47
- package/cli/dist-server/types/node/agent/interceptors/index.d.ts +0 -15
- package/cli/dist-server/types/node/agent/interceptors/initial-prompt-interceptor.d.ts +0 -29
- package/cli/dist-server/types/node/agent/interceptors/model-interceptors.d.ts +0 -43
- package/cli/dist-server/types/node/agent/interceptors/sandbox-interceptor.d.ts +0 -68
- package/cli/dist-server/types/node/agent/interceptors/sensitive-user-input-interceptor.d.ts +0 -7
- package/cli/dist-server/types/node/agent/interceptors/system-reminder-interceptor.d.ts +0 -76
- package/cli/dist-server/types/node/agent/interceptors/team-resume-intent-interceptor.d.ts +0 -31
- package/cli/dist-server/types/node/agent/interceptors/telemetry-interceptors.d.ts +0 -43
- package/cli/dist-server/types/node/agent/interceptors/ultracode-effort-reminder-interceptor.d.ts +0 -21
- package/cli/dist-server/types/node/agent/interceptors/ultracode-keyword-interceptor.d.ts +0 -34
- package/cli/dist-server/types/node/agent/main-agent-acp-handler.d.ts +0 -203
- package/cli/dist-server/types/node/agent/main-agent-policy.d.ts +0 -33
- package/cli/dist-server/types/node/agent/memory-context-interceptor.d.ts +0 -84
- package/cli/dist-server/types/node/agent/stream-json-init-interceptor.d.ts +0 -9
- package/cli/dist-server/types/node/agent/subagent-limits.d.ts +0 -75
- package/cli/dist-server/types/node/agent/team-context-interceptor.d.ts +0 -42
- package/cli/dist-server/types/node/agent/team-resume-intent.d.ts +0 -20
- package/cli/dist-server/types/node/agent/teammate-failure-interceptor.d.ts +0 -67
- package/cli/dist-server/types/node/agent-home/agent-home-acp-forward.d.ts +0 -11
- package/cli/dist-server/types/node/agent-home/agent-home-agent-create.d.ts +0 -31
- package/cli/dist-server/types/node/agent-home/agent-home-audit.d.ts +0 -54
- package/cli/dist-server/types/node/agent-home/agent-home-channel-context.d.ts +0 -44
- package/cli/dist-server/types/node/agent-home/agent-home-channel-create.d.ts +0 -73
- package/cli/dist-server/types/node/agent-home/agent-home-channel-events.d.ts +0 -8
- package/cli/dist-server/types/node/agent-home/agent-home-channel-lookup.d.ts +0 -30
- package/cli/dist-server/types/node/agent-home/agent-home-channel-speech.d.ts +0 -72
- package/cli/dist-server/types/node/agent-home/agent-home-channel-task-events.d.ts +0 -45
- package/cli/dist-server/types/node/agent-home/agent-home-channel-task-order.d.ts +0 -25
- package/cli/dist-server/types/node/agent-home/agent-home-channel-tasks.d.ts +0 -156
- package/cli/dist-server/types/node/agent-home/agent-home-channel-wake-guard.d.ts +0 -35
- package/cli/dist-server/types/node/agent-home/agent-home-channel-wake.d.ts +0 -102
- package/cli/dist-server/types/node/agent-home/agent-home-colleague-job.d.ts +0 -37
- package/cli/dist-server/types/node/agent-home/agent-home-colleague-memory.d.ts +0 -52
- package/cli/dist-server/types/node/agent-home/agent-home-deliver.d.ts +0 -76
- package/cli/dist-server/types/node/agent-home/agent-home-directory-lock.d.ts +0 -22
- package/cli/dist-server/types/node/agent-home/agent-home-errors.d.ts +0 -17
- package/cli/dist-server/types/node/agent-home/agent-home-inbox.d.ts +0 -101
- package/cli/dist-server/types/node/agent-home/agent-home-main-session.d.ts +0 -33
- package/cli/dist-server/types/node/agent-home/agent-home-recipients.d.ts +0 -38
- package/cli/dist-server/types/node/agent-home/agent-home-room-context-interceptor.d.ts +0 -30
- package/cli/dist-server/types/node/agent-home/agent-home-runtime-arm-state.d.ts +0 -14
- package/cli/dist-server/types/node/agent-home/agent-home-runtime.d.ts +0 -87
- package/cli/dist-server/types/node/agent-home/agent-home-settings.d.ts +0 -39
- package/cli/dist-server/types/node/agent-home/agent-home-tool-gate.d.ts +0 -53
- package/cli/dist-server/types/node/agent-home/channel-wake-service.d.ts +0 -69
- package/cli/dist-server/types/node/agent-task/categorize-failure.d.ts +0 -65
- package/cli/dist-server/types/node/agent-team/shutdown-coordinator.d.ts +0 -98
- package/cli/dist-server/types/node/agent-team/team-runtime-adopter.d.ts +0 -13
- package/cli/dist-server/types/node/agent-team/team-runtime-manifest.d.ts +0 -66
- package/cli/dist-server/types/node/agent-team/team-runtime-status.d.ts +0 -34
- package/cli/dist-server/types/node/agent-view/agent-view-actions.d.ts +0 -205
- package/cli/dist-server/types/node/agent-view/job-reclaim-gate.d.ts +0 -13
- package/cli/dist-server/types/node/ask/index.d.ts +0 -3
- package/cli/dist-server/types/node/bash-sandbox/index.d.ts +0 -4
- package/cli/dist-server/types/node/code-ratio/cli-git-commit-watcher.d.ts +0 -159
- package/cli/dist-server/types/node/code-ratio/cli-svn-commit-watcher.d.ts +0 -111
- package/cli/dist-server/types/node/code-ratio/code-ratio-reporting-service.d.ts +0 -90
- package/cli/dist-server/types/node/code-ratio/fs-file-reader.d.ts +0 -26
- package/cli/dist-server/types/node/code-ratio/index.d.ts +0 -5
- package/cli/dist-server/types/node/code-ratio/repo-discovery.d.ts +0 -32
- package/cli/dist-server/types/node/code-ratio/vcs-repo-resolver.d.ts +0 -51
- package/cli/dist-server/types/node/control-signal/stdout-writer.d.ts +0 -99
- package/cli/dist-server/types/node/elicitation/elicitation-service.d.ts +0 -100
- package/cli/dist-server/types/node/hooks/admin-trusted.d.ts +0 -41
- package/cli/dist-server/types/node/http/api-galileo-metrics.d.ts +0 -19
- package/cli/dist-server/types/node/http/classify-network-error.d.ts +0 -21
- package/cli/dist-server/types/node/http/custom-header-http-interceptor.d.ts +0 -14
- package/cli/dist-server/types/node/http/fetch-proxy.d.ts +0 -22
- package/cli/dist-server/types/node/http/http-proxy-interceptor.d.ts +0 -74
- package/cli/dist-server/types/node/http/index.d.ts +0 -6
- package/cli/dist-server/types/node/http/workbuddy-config-dir.d.ts +0 -17
- package/cli/dist-server/types/node/lsp/index.d.ts +0 -6
- package/cli/dist-server/types/node/lsp/lsp-client.d.ts +0 -104
- package/cli/dist-server/types/node/lsp/lsp-exit-registry.d.ts +0 -16
- package/cli/dist-server/types/node/lsp/lsp-manager.d.ts +0 -91
- package/cli/dist-server/types/node/lsp/lsp-protocol.d.ts +0 -245
- package/cli/dist-server/types/node/model/effort-capabilities.d.ts +0 -64
- package/cli/dist-server/types/node/model/passthrough-header-policy.d.ts +0 -25
- package/cli/dist-server/types/node/multitask/completion-bus.d.ts +0 -36
- package/cli/dist-server/types/node/multitask/coordinator-acp-bridge.d.ts +0 -41
- package/cli/dist-server/types/node/multitask/coordinator-interceptor.d.ts +0 -7
- package/cli/dist-server/types/node/multitask/coordinator-tool-policy.d.ts +0 -18
- package/cli/dist-server/types/node/multitask/delegation-planner.d.ts +0 -6
- package/cli/dist-server/types/node/multitask/entry-guard.d.ts +0 -12
- package/cli/dist-server/types/node/multitask/host-api.d.ts +0 -63
- package/cli/dist-server/types/node/multitask/inspect-self-tool.d.ts +0 -18
- package/cli/dist-server/types/node/multitask/multitask-log.d.ts +0 -2
- package/cli/dist-server/types/node/multitask/multitask-metrics.d.ts +0 -2
- package/cli/dist-server/types/node/multitask/planner-runtime.d.ts +0 -7
- package/cli/dist-server/types/node/multitask/sandbox-reveal.d.ts +0 -35
- package/cli/dist-server/types/node/multitask/self-model.d.ts +0 -7
- package/cli/dist-server/types/node/multitask/slash-entry.d.ts +0 -14
- package/cli/dist-server/types/node/multitask/spawn-detached.d.ts +0 -9
- package/cli/dist-server/types/node/multitask/subagent-alias.d.ts +0 -5
- package/cli/dist-server/types/node/multitask/surface-reminder.d.ts +0 -5
- package/cli/dist-server/types/node/multitask/types.d.ts +0 -123
- package/cli/dist-server/types/node/multitask/wakeup-gate.d.ts +0 -21
- package/cli/dist-server/types/node/navigation/index.d.ts +0 -2
- package/cli/dist-server/types/node/runtime/add-dir-middleware.d.ts +0 -13
- package/cli/dist-server/types/node/runtime/external-uri-opener.d.ts +0 -8
- package/cli/dist-server/types/node/runtime/file-local-storage.d.ts +0 -17
- package/cli/dist-server/types/node/runtime/workspace-folder-manager.d.ts +0 -45
- package/cli/dist-server/types/node/runtime/workspace.d.ts +0 -5
- package/cli/dist-server/types/node/sandbox-cli/network-block-records.d.ts +0 -18
- package/cli/dist-server/types/node/shortcut/shortcut-protocol.d.ts +0 -41
- package/cli/dist-server/types/node/stats/index.d.ts +0 -5
- package/cli/dist-server/types/node/tools/a2a-cancel-task-tool.d.ts +0 -55
- package/cli/dist-server/types/node/tools/a2a-get-agent-card-tool.d.ts +0 -59
- package/cli/dist-server/types/node/tools/a2a-get-task-tool.d.ts +0 -316
- package/cli/dist-server/types/node/tools/a2a-poll-retry.d.ts +0 -46
- package/cli/dist-server/types/node/tools/a2a-send-message-tool.d.ts +0 -138
- package/cli/dist-server/types/node/tools/a2a-tool-guards.d.ts +0 -48
- package/cli/dist-server/types/node/tools/agent-tool.d.ts +0 -154
- package/cli/dist-server/types/node/tools/artifact-common.d.ts +0 -80
- package/cli/dist-server/types/node/tools/artifact-control-tool.d.ts +0 -103
- package/cli/dist-server/types/node/tools/artifact-tool.d.ts +0 -109
- package/cli/dist-server/types/node/tools/ask-user-for-structured-input-tool.d.ts +0 -127
- package/cli/dist-server/types/node/tools/ask-user-question-tool.d.ts +0 -237
- package/cli/dist-server/types/node/tools/ask-user-question-validation.d.ts +0 -22
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-critique-client.d.ts +0 -51
- package/cli/dist-server/types/node/tools/auto-mode/auto-mode-strategy.d.ts +0 -21
- package/cli/dist-server/types/node/tools/auto-mode/index.d.ts +0 -15
- package/cli/dist-server/types/node/tools/background-output-files.d.ts +0 -39
- package/cli/dist-server/types/node/tools/background-output-tail-poller.d.ts +0 -60
- package/cli/dist-server/types/node/tools/bash-output-tool.d.ts +0 -34
- package/cli/dist-server/types/node/tools/bash-sandbox-approval-requester.d.ts +0 -48
- package/cli/dist-server/types/node/tools/bash-security-windows.d.ts +0 -34
- package/cli/dist-server/types/node/tools/bash-tool.d.ts +0 -204
- package/cli/dist-server/types/node/tools/channel-tasks-tool.d.ts +0 -174
- package/cli/dist-server/types/node/tools/computer-use-capabilities.d.ts +0 -23
- package/cli/dist-server/types/node/tools/computer-use-executor.d.ts +0 -130
- package/cli/dist-server/types/node/tools/computer-use-tool.d.ts +0 -86
- package/cli/dist-server/types/node/tools/create-channel-tool.d.ts +0 -82
- package/cli/dist-server/types/node/tools/create-colleague-tool.d.ts +0 -64
- package/cli/dist-server/types/node/tools/create-mode-write-guard.d.ts +0 -3
- package/cli/dist-server/types/node/tools/cron-create-tool.d.ts +0 -41
- package/cli/dist-server/types/node/tools/cron-delete-tool.d.ts +0 -28
- package/cli/dist-server/types/node/tools/cron-list-tool.d.ts +0 -27
- package/cli/dist-server/types/node/tools/defer-execute-tool.d.ts +0 -260
- package/cli/dist-server/types/node/tools/delegate-tool.d.ts +0 -71
- package/cli/dist-server/types/node/tools/edit-tool.d.ts +0 -78
- package/cli/dist-server/types/node/tools/enter-planmode-tool.d.ts +0 -29
- package/cli/dist-server/types/node/tools/enter-worktree-tool.d.ts +0 -59
- package/cli/dist-server/types/node/tools/exit-planmode-tool.d.ts +0 -86
- package/cli/dist-server/types/node/tools/file-action-report-utils.d.ts +0 -35
- package/cli/dist-server/types/node/tools/glob-tool.d.ts +0 -102
- package/cli/dist-server/types/node/tools/grep-tool.d.ts +0 -141
- package/cli/dist-server/types/node/tools/image-edit-tool.d.ts +0 -94
- package/cli/dist-server/types/node/tools/image-gen-tool.d.ts +0 -107
- package/cli/dist-server/types/node/tools/kill-shell-tool.d.ts +0 -27
- package/cli/dist-server/types/node/tools/leave-worktree-tool.d.ts +0 -54
- package/cli/dist-server/types/node/tools/list-colleagues-tool.d.ts +0 -35
- package/cli/dist-server/types/node/tools/list-mcp-resources-tool.d.ts +0 -58
- package/cli/dist-server/types/node/tools/lsp-tool.d.ts +0 -68
- package/cli/dist-server/types/node/tools/main-agent-meta-tools.d.ts +0 -107
- package/cli/dist-server/types/node/tools/malicious-block-guidance.d.ts +0 -11
- package/cli/dist-server/types/node/tools/memory-tool.d.ts +0 -33
- package/cli/dist-server/types/node/tools/message-colleague-tool.d.ts +0 -79
- package/cli/dist-server/types/node/tools/monitor-tool.d.ts +0 -216
- package/cli/dist-server/types/node/tools/monitor-ws-network-policy.d.ts +0 -64
- package/cli/dist-server/types/node/tools/monitor-ws-source.d.ts +0 -72
- package/cli/dist-server/types/node/tools/multi-edit-tool.d.ts +0 -104
- package/cli/dist-server/types/node/tools/notebook-edit-tool.d.ts +0 -75
- package/cli/dist-server/types/node/tools/notebook-read-tool.d.ts +0 -55
- package/cli/dist-server/types/node/tools/notebook-write-tool.d.ts +0 -7
- package/cli/dist-server/types/node/tools/powershell-clm-types.d.ts +0 -30
- package/cli/dist-server/types/node/tools/powershell-command-semantics.d.ts +0 -23
- package/cli/dist-server/types/node/tools/powershell-dangerous-cmdlets.d.ts +0 -72
- package/cli/dist-server/types/node/tools/powershell-destructive-warning.d.ts +0 -12
- package/cli/dist-server/types/node/tools/powershell-detection.d.ts +0 -51
- package/cli/dist-server/types/node/tools/powershell-git-safety.d.ts +0 -60
- package/cli/dist-server/types/node/tools/powershell-pty-utils.d.ts +0 -13
- package/cli/dist-server/types/node/tools/powershell-security.d.ts +0 -93
- package/cli/dist-server/types/node/tools/powershell-tool.d.ts +0 -174
- package/cli/dist-server/types/node/tools/product-interaction-tools.d.ts +0 -23
- package/cli/dist-server/types/node/tools/push-notification-tool.d.ts +0 -55
- package/cli/dist-server/types/node/tools/read-mcp-resource-tool.d.ts +0 -71
- package/cli/dist-server/types/node/tools/read-state-guard.d.ts +0 -22
- package/cli/dist-server/types/node/tools/read-tool.d.ts +0 -71
- package/cli/dist-server/types/node/tools/repl/index.d.ts +0 -10
- package/cli/dist-server/types/node/tools/repl/repl-bridge-broker.d.ts +0 -109
- package/cli/dist-server/types/node/tools/repl/repl-bridge-host.d.ts +0 -29
- package/cli/dist-server/types/node/tools/repl/repl-catalog-protocol.d.ts +0 -136
- package/cli/dist-server/types/node/tools/repl/repl-catalog-render.d.ts +0 -56
- package/cli/dist-server/types/node/tools/repl/repl-catalog-source.d.ts +0 -117
- package/cli/dist-server/types/node/tools/repl/repl-import-rewrite.d.ts +0 -17
- package/cli/dist-server/types/node/tools/repl/repl-nested-interaction.d.ts +0 -32
- package/cli/dist-server/types/node/tools/repl/repl-sandbox-result.d.ts +0 -111
- package/cli/dist-server/types/node/tools/repl/repl-tool.d.ts +0 -128
- package/cli/dist-server/types/node/tools/repl/repl-worker-manager.d.ts +0 -95
- package/cli/dist-server/types/node/tools/repl/repl-worker-source.d.ts +0 -16
- package/cli/dist-server/types/node/tools/repl/repl-worker-source.generated.d.ts +0 -2
- package/cli/dist-server/types/node/tools/report-findings-tool.d.ts +0 -97
- package/cli/dist-server/types/node/tools/running-background-tasks.d.ts +0 -26
- package/cli/dist-server/types/node/tools/sandbox-approval-helpers.d.ts +0 -19
- package/cli/dist-server/types/node/tools/sandbox-intercept-message.d.ts +0 -22
- package/cli/dist-server/types/node/tools/sandbox-network-intercept-message.d.ts +0 -25
- package/cli/dist-server/types/node/tools/sandbox-permission-file-tool.d.ts +0 -14
- package/cli/dist-server/types/node/tools/sandbox-program-blacklist-message.d.ts +0 -9
- package/cli/dist-server/types/node/tools/send-message-tool.d.ts +0 -116
- package/cli/dist-server/types/node/tools/send-user-message-attachments.d.ts +0 -22
- package/cli/dist-server/types/node/tools/send-user-message-tool.d.ts +0 -60
- package/cli/dist-server/types/node/tools/shell-stream-pusher.d.ts +0 -25
- package/cli/dist-server/types/node/tools/skill-manage-tool.d.ts +0 -77
- package/cli/dist-server/types/node/tools/skill-tool.d.ts +0 -129
- package/cli/dist-server/types/node/tools/slash-command-tool.d.ts +0 -45
- package/cli/dist-server/types/node/tools/speak-in-channel-tool.d.ts +0 -178
- package/cli/dist-server/types/node/tools/structured-output-tool.d.ts +0 -43
- package/cli/dist-server/types/node/tools/task-create-tool.d.ts +0 -72
- package/cli/dist-server/types/node/tools/task-get-tool.d.ts +0 -31
- package/cli/dist-server/types/node/tools/task-list-tool.d.ts +0 -21
- package/cli/dist-server/types/node/tools/task-output-tool.d.ts +0 -127
- package/cli/dist-server/types/node/tools/task-stop-tool.d.ts +0 -61
- package/cli/dist-server/types/node/tools/task-update-tool.d.ts +0 -79
- package/cli/dist-server/types/node/tools/team-delete-tool.d.ts +0 -38
- package/cli/dist-server/types/node/tools/todo-write-tool.d.ts +0 -117
- package/cli/dist-server/types/node/tools/tool-permission-strategy.d.ts +0 -83
- package/cli/dist-server/types/node/tools/tool-search-tool.d.ts +0 -113
- package/cli/dist-server/types/node/tools/video-gen-tool.d.ts +0 -82
- package/cli/dist-server/types/node/tools/wait-for-mcp-servers-tool.d.ts +0 -79
- package/cli/dist-server/types/node/tools/web-fetch-tool.d.ts +0 -164
- package/cli/dist-server/types/node/tools/web-search-tool.d.ts +0 -79
- package/cli/dist-server/types/node/tools/webfetch-resource-kind.d.ts +0 -25
- package/cli/dist-server/types/node/tools/wechat-reply-tool.d.ts +0 -43
- package/cli/dist-server/types/node/tools/wecom-reply-tool.d.ts +0 -65
- package/cli/dist-server/types/node/tools/workflow-tool.d.ts +0 -100
- package/cli/dist-server/types/node/tools/write-tool.d.ts +0 -74
- package/cli/dist-server/types/node/utils/stdio-persistence.d.ts +0 -39
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { RunContext } from '@openai/agents';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
import { Session } from '../../vendor/cbc-core/node/index.js';
|
|
4
|
-
import { BaseTool } from './base-tool';
|
|
5
|
-
import { Tool } from './tool-protocol';
|
|
6
|
-
import { ToolNames } from '../../vendor/cbc-shared/node/index.js';
|
|
7
|
-
declare const KillShellParameters: z.ZodObject<{
|
|
8
|
-
shell_id: z.ZodString;
|
|
9
|
-
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
shell_id: string;
|
|
11
|
-
}, {
|
|
12
|
-
shell_id: string;
|
|
13
|
-
}>;
|
|
14
|
-
export declare class KillShellTool extends BaseTool implements Tool {
|
|
15
|
-
name: ToolNames;
|
|
16
|
-
aliases: string[];
|
|
17
|
-
parameters: z.ZodObject<{
|
|
18
|
-
shell_id: z.ZodString;
|
|
19
|
-
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
shell_id: string;
|
|
21
|
-
}, {
|
|
22
|
-
shell_id: string;
|
|
23
|
-
}>;
|
|
24
|
-
execute(input: z.infer<typeof KillShellParameters>, context: RunContext<Session>): Promise<any>;
|
|
25
|
-
private formatDuration;
|
|
26
|
-
}
|
|
27
|
-
export {};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* LeaveWorktree Agent Tool
|
|
3
|
-
*
|
|
4
|
-
* 允许 Agent 在会话中离开当前 worktree 并切换回原始工作目录。
|
|
5
|
-
* 与 EnterWorktree 对称,确保 worktree 生命周期完整闭环。
|
|
6
|
-
*
|
|
7
|
-
* 没有这个 Tool,Agent 完成工作后只能用 Bash 自行组装 git 命令清理 worktree,
|
|
8
|
-
* 会导致会话状态、工作目录、分支等清理不干净。
|
|
9
|
-
*/
|
|
10
|
-
import { z } from 'zod';
|
|
11
|
-
import { BaseTool } from './base-tool';
|
|
12
|
-
import { Tool, ToolResult } from './tool-protocol';
|
|
13
|
-
import { ToolNames } from '../../vendor/cbc-shared/node/index.js';
|
|
14
|
-
/**
|
|
15
|
-
* LeaveWorktree 工具参数 schema
|
|
16
|
-
*/
|
|
17
|
-
declare const LeaveWorktreeParameters: z.ZodObject<{
|
|
18
|
-
action: z.ZodOptional<z.ZodEnum<["keep", "remove"]>>;
|
|
19
|
-
force: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
-
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
action?: "keep" | "remove" | undefined;
|
|
22
|
-
force?: boolean | undefined;
|
|
23
|
-
}, {
|
|
24
|
-
action?: "keep" | "remove" | undefined;
|
|
25
|
-
force?: boolean | undefined;
|
|
26
|
-
}>;
|
|
27
|
-
type LeaveWorktreeInput = z.infer<typeof LeaveWorktreeParameters>;
|
|
28
|
-
export declare class LeaveWorktreeTool extends BaseTool implements Tool {
|
|
29
|
-
name: ToolNames;
|
|
30
|
-
description: string;
|
|
31
|
-
aliases: string[];
|
|
32
|
-
parameters: z.ZodObject<{
|
|
33
|
-
action: z.ZodOptional<z.ZodEnum<["keep", "remove"]>>;
|
|
34
|
-
force: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
-
}, "strip", z.ZodTypeAny, {
|
|
36
|
-
action?: "keep" | "remove" | undefined;
|
|
37
|
-
force?: boolean | undefined;
|
|
38
|
-
}, {
|
|
39
|
-
action?: "keep" | "remove" | undefined;
|
|
40
|
-
force?: boolean | undefined;
|
|
41
|
-
}>;
|
|
42
|
-
private worktreeSessionManager;
|
|
43
|
-
private worktreeChangeDetector?;
|
|
44
|
-
/**
|
|
45
|
-
* 权限:始终需要用户确认
|
|
46
|
-
* 原因:会改变进程工作目录,影响后续所有操作
|
|
47
|
-
*/
|
|
48
|
-
needsApproval: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* 执行离开 worktree
|
|
51
|
-
*/
|
|
52
|
-
execute(input: LeaveWorktreeInput): Promise<ToolResult>;
|
|
53
|
-
}
|
|
54
|
-
export {};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ListColleagues —— Agent Home 通讯录:现有同事 + 频道,都带 id。
|
|
3
|
-
*
|
|
4
|
-
* 为什么必须有它:CreateChannel 要 `memberAgentIds`(id),ChannelTasks / SpeakInChannel
|
|
5
|
-
* 要 `channel`(id),而注入的组队提示为了省 token 会把名册截断(`(+N more)`)——
|
|
6
|
-
* 模型拿不到后面的 id,就只能猜、把已有同事重复建一遍,或者干脆卡住问用户。
|
|
7
|
-
* 一次调用把「有谁、在哪几个频道、谁是 lead」给全。
|
|
8
|
-
*
|
|
9
|
-
* 只读:走 channelsForSelf(和工具口径一致),不拿目录锁。
|
|
10
|
-
*/
|
|
11
|
-
import type { Session } from '../../vendor/cbc-core/node/index.js';
|
|
12
|
-
import type { RunContext } from '../../vendor/cbc-shared/node/index.js';
|
|
13
|
-
import { Logger } from '@genie/telemetry';
|
|
14
|
-
import { z } from 'zod';
|
|
15
|
-
import { SettingsManager } from '../settings/settings-protocol';
|
|
16
|
-
import { BaseTool } from './base-tool';
|
|
17
|
-
import { Tool, ToolCallArgumentRenderer, ToolNames, ToolResult } from './tool-protocol';
|
|
18
|
-
export declare class ListColleaguesTool extends BaseTool implements Tool {
|
|
19
|
-
protected readonly logger: Logger;
|
|
20
|
-
protected readonly settingsManager?: SettingsManager;
|
|
21
|
-
name: ToolNames;
|
|
22
|
-
description: string;
|
|
23
|
-
needsApproval: boolean;
|
|
24
|
-
shouldShowInToolSearch: () => boolean;
|
|
25
|
-
parameters: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
26
|
-
argumentRenderer: ToolCallArgumentRenderer;
|
|
27
|
-
toAutoClassifierInput(_input: unknown): string;
|
|
28
|
-
isEnabled: (args?: {
|
|
29
|
-
runContext?: RunContext<Session>;
|
|
30
|
-
agent?: {
|
|
31
|
-
name?: string;
|
|
32
|
-
};
|
|
33
|
-
}) => Promise<boolean>;
|
|
34
|
-
execute(_input: unknown, context?: RunContext<Session>): Promise<ToolResult>;
|
|
35
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { Logger } from '@celljs/core';
|
|
2
|
-
import { Session } from '../../vendor/cbc-core/node/index.js';
|
|
3
|
-
import { RunContext, ToolNames } from '../../vendor/cbc-shared/node/index.js';
|
|
4
|
-
import { z } from 'zod';
|
|
5
|
-
import { McpResourceCatalogService } from '../mcp/mcp-resource-catalog-protocol';
|
|
6
|
-
import { BaseTool } from './base-tool';
|
|
7
|
-
import { Tool, ToolCallArgumentRenderer, ToolResult } from './tool-protocol';
|
|
8
|
-
declare const ListMcpResourcesParameters: z.ZodObject<{
|
|
9
|
-
server: z.ZodOptional<z.ZodString>;
|
|
10
|
-
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
server?: string | undefined;
|
|
12
|
-
}, {
|
|
13
|
-
server?: string | undefined;
|
|
14
|
-
}>;
|
|
15
|
-
type ListMcpResourcesInput = z.infer<typeof ListMcpResourcesParameters>;
|
|
16
|
-
/**
|
|
17
|
-
* ListMcpResources — list all resources/templates exposed by connected MCP
|
|
18
|
-
* servers.
|
|
19
|
-
*
|
|
20
|
-
* Pairs with `ReadMcpResource`. The two-tool split (vs. the previous single
|
|
21
|
-
* `FetchMcpResource` that baked the resource catalog into its description)
|
|
22
|
-
* keeps the system prompt small even when an MCP server exposes many
|
|
23
|
-
* resources, and matches the upstream Claude Code naming convention
|
|
24
|
-
* (ListMcpResourcesTool / ReadMcpResourceTool). Issue #40458.
|
|
25
|
-
*/
|
|
26
|
-
export declare class ListMcpResourcesTool extends BaseTool implements Tool {
|
|
27
|
-
protected readonly catalogService: McpResourceCatalogService;
|
|
28
|
-
protected readonly logger: Logger;
|
|
29
|
-
name: ToolNames;
|
|
30
|
-
description: string;
|
|
31
|
-
parameters: z.ZodObject<{
|
|
32
|
-
server: z.ZodOptional<z.ZodString>;
|
|
33
|
-
}, "strip", z.ZodTypeAny, {
|
|
34
|
-
server?: string | undefined;
|
|
35
|
-
}, {
|
|
36
|
-
server?: string | undefined;
|
|
37
|
-
}>;
|
|
38
|
-
argumentRenderer: ToolCallArgumentRenderer;
|
|
39
|
-
/** Read-only — no approval needed. */
|
|
40
|
-
needsApproval: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Enable the tool when a connected server declares the `resources`
|
|
43
|
-
* capability, rather than when a live listing happens to return rows.
|
|
44
|
-
*
|
|
45
|
-
* Issue #102572: the old gate counted actual resources, so an 8s
|
|
46
|
-
* `resources/list` timeout on one slow server (企查查 connector) collapsed
|
|
47
|
-
* the count to zero and removed this tool — and ReadMcpResource with it —
|
|
48
|
-
* from the model's tool list mid-session, restoring it on the next turn.
|
|
49
|
-
* Observed gaps between a successful and a failing listing ranged from
|
|
50
|
-
* milliseconds to four hours, so no cache window can paper over it. The
|
|
51
|
-
* capability is captured during `initialize` and read from memory, so it
|
|
52
|
-
* cannot time out and stays stable for the life of the connection.
|
|
53
|
-
*/
|
|
54
|
-
isEnabled: () => Promise<boolean>;
|
|
55
|
-
execute(input: ListMcpResourcesInput, _context: RunContext<Session>): Promise<ToolResult>;
|
|
56
|
-
}
|
|
57
|
-
export { ListMcpResourcesParameters };
|
|
58
|
-
export type { ListMcpResourcesInput };
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* LSP Tool - 与 LSP 服务器交互以获取代码智能功能
|
|
3
|
-
*/
|
|
4
|
-
import { Session } from '../../vendor/cbc-core/node/index.js';
|
|
5
|
-
import { RunContext, ToolNames } from '../../vendor/cbc-shared/node/index.js';
|
|
6
|
-
import { Workspace } from '@genie/runtime';
|
|
7
|
-
import { Logger } from '@genie/telemetry';
|
|
8
|
-
import { z } from 'zod';
|
|
9
|
-
import { LSPManager } from '../lsp';
|
|
10
|
-
import { BaseTool } from './base-tool';
|
|
11
|
-
import { Tool, ToolResult } from './tool-protocol';
|
|
12
|
-
declare const LspParameters: z.ZodObject<{
|
|
13
|
-
operation: z.ZodEnum<["goToDefinition", "findReferences", "hover", "documentSymbol", "workspaceSymbol", "goToImplementation", "prepareCallHierarchy", "incomingCalls", "outgoingCalls"]>;
|
|
14
|
-
filePath: z.ZodString;
|
|
15
|
-
line: z.ZodNumber;
|
|
16
|
-
character: z.ZodNumber;
|
|
17
|
-
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
operation: "documentSymbol" | "findReferences" | "goToDefinition" | "goToImplementation" | "hover" | "incomingCalls" | "outgoingCalls" | "prepareCallHierarchy" | "workspaceSymbol";
|
|
19
|
-
filePath: string;
|
|
20
|
-
line: number;
|
|
21
|
-
character: number;
|
|
22
|
-
}, {
|
|
23
|
-
operation: "documentSymbol" | "findReferences" | "goToDefinition" | "goToImplementation" | "hover" | "incomingCalls" | "outgoingCalls" | "prepareCallHierarchy" | "workspaceSymbol";
|
|
24
|
-
filePath: string;
|
|
25
|
-
line: number;
|
|
26
|
-
character: number;
|
|
27
|
-
}>;
|
|
28
|
-
export declare class LspTool extends BaseTool implements Tool {
|
|
29
|
-
protected readonly logger: Logger;
|
|
30
|
-
protected readonly workspace: Workspace;
|
|
31
|
-
protected readonly lspManager: LSPManager;
|
|
32
|
-
name: ToolNames;
|
|
33
|
-
aliases: string[];
|
|
34
|
-
description: string;
|
|
35
|
-
parameters: z.ZodObject<{
|
|
36
|
-
operation: z.ZodEnum<["goToDefinition", "findReferences", "hover", "documentSymbol", "workspaceSymbol", "goToImplementation", "prepareCallHierarchy", "incomingCalls", "outgoingCalls"]>;
|
|
37
|
-
filePath: z.ZodString;
|
|
38
|
-
line: z.ZodNumber;
|
|
39
|
-
character: z.ZodNumber;
|
|
40
|
-
}, "strip", z.ZodTypeAny, {
|
|
41
|
-
operation: "documentSymbol" | "findReferences" | "goToDefinition" | "goToImplementation" | "hover" | "incomingCalls" | "outgoingCalls" | "prepareCallHierarchy" | "workspaceSymbol";
|
|
42
|
-
filePath: string;
|
|
43
|
-
line: number;
|
|
44
|
-
character: number;
|
|
45
|
-
}, {
|
|
46
|
-
operation: "documentSymbol" | "findReferences" | "goToDefinition" | "goToImplementation" | "hover" | "incomingCalls" | "outgoingCalls" | "prepareCallHierarchy" | "workspaceSymbol";
|
|
47
|
-
filePath: string;
|
|
48
|
-
line: number;
|
|
49
|
-
character: number;
|
|
50
|
-
}>;
|
|
51
|
-
private readonly MAX_RESULTS;
|
|
52
|
-
execute(input: z.infer<typeof LspParameters>, context: RunContext<Session>): Promise<ToolResult>;
|
|
53
|
-
/**
|
|
54
|
-
* 执行 LSP 操作
|
|
55
|
-
*/
|
|
56
|
-
private performOperation;
|
|
57
|
-
private goToDefinition;
|
|
58
|
-
private findReferences;
|
|
59
|
-
private hover;
|
|
60
|
-
private documentSymbol;
|
|
61
|
-
private workspaceSymbol;
|
|
62
|
-
private goToImplementation;
|
|
63
|
-
private prepareCallHierarchy;
|
|
64
|
-
private callHierarchy;
|
|
65
|
-
private formatSymbols;
|
|
66
|
-
private getSymbolKindName;
|
|
67
|
-
}
|
|
68
|
-
export {};
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import type { RunContext } from '@openai/agents';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
import { AgentManager } from '../../vendor/cbc-core/node/index.js';
|
|
4
|
-
import { AgentTaskManager } from '../agent-task/agent-task-protocol';
|
|
5
|
-
import { GoalService } from '@genie/cbc-goal';
|
|
6
|
-
import { InterruptionService, Session } from '../../vendor/cbc-core/node/index.js';
|
|
7
|
-
import { BaseTool } from './base-tool';
|
|
8
|
-
import { Tool, ToolResult } from './tool-protocol';
|
|
9
|
-
import { ToolNames } from '../../vendor/cbc-shared/node/index.js';
|
|
10
|
-
declare const ListAgentsParameters: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
11
|
-
export declare class ListAgentsTool extends BaseTool implements Tool {
|
|
12
|
-
protected readonly agentManager: AgentManager;
|
|
13
|
-
name: ToolNames;
|
|
14
|
-
description: string;
|
|
15
|
-
parameters: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
16
|
-
needsApproval: boolean;
|
|
17
|
-
execute(_input: z.infer<typeof ListAgentsParameters>, context?: RunContext<Session>): Promise<ToolResult>;
|
|
18
|
-
}
|
|
19
|
-
declare const InterruptAgentParameters: z.ZodObject<{
|
|
20
|
-
sessionId: z.ZodString;
|
|
21
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
22
|
-
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
sessionId: string;
|
|
24
|
-
reason?: string | undefined;
|
|
25
|
-
}, {
|
|
26
|
-
sessionId: string;
|
|
27
|
-
reason?: string | undefined;
|
|
28
|
-
}>;
|
|
29
|
-
export declare class InterruptAgentTool extends BaseTool implements Tool {
|
|
30
|
-
/**
|
|
31
|
-
* 必须走 AgentTaskManager(与 TaskStop 同一条路)取消**活跃**任务。
|
|
32
|
-
*
|
|
33
|
-
* 不要用 `sessionManager.get(id)` 拿目标再 abort —— SessionStore 无活跃缓存,
|
|
34
|
-
* get() 从磁盘反序列化出一个**全新** Session(sessionFactory 无条件 new
|
|
35
|
-
* AbortController),abort 打在废弃副本上,对真正在跑的 run 是空操作;
|
|
36
|
-
* `cancelAllForSession(子会话id)` 也查不到以主会话 id 为键的审批队列。
|
|
37
|
-
* AgentTask.cancel() 持有活的 subAgentSession 引用,abort 才真正生效。
|
|
38
|
-
*/
|
|
39
|
-
protected readonly agentTaskManager: AgentTaskManager;
|
|
40
|
-
protected readonly interruptionService: InterruptionService;
|
|
41
|
-
name: ToolNames;
|
|
42
|
-
description: string;
|
|
43
|
-
parameters: z.ZodObject<{
|
|
44
|
-
sessionId: z.ZodString;
|
|
45
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
46
|
-
}, "strip", z.ZodTypeAny, {
|
|
47
|
-
sessionId: string;
|
|
48
|
-
reason?: string | undefined;
|
|
49
|
-
}, {
|
|
50
|
-
sessionId: string;
|
|
51
|
-
reason?: string | undefined;
|
|
52
|
-
}>;
|
|
53
|
-
needsApproval: boolean;
|
|
54
|
-
execute(input: z.infer<typeof InterruptAgentParameters>, context?: RunContext<Session>): Promise<ToolResult>;
|
|
55
|
-
/** 当前会话所属树的主会话 id;解析失败回退自身 id(顶层会话本来就是自身)。 */
|
|
56
|
-
private currentMainSessionId;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* `GoalService.set` 已是「设定/替换」语义(有目标时先注销再设,见 goal-protocol),
|
|
60
|
-
* 所以 CreateGoal / UpdateGoal 共用同一个 schema 与同一条执行路径,只是名字不同 ——
|
|
61
|
-
* 保留两个名字是为了让模型无论选哪个都能成功,而不是两套行为。
|
|
62
|
-
*/
|
|
63
|
-
declare const GoalConditionParameters: z.ZodObject<{
|
|
64
|
-
condition: z.ZodString;
|
|
65
|
-
}, "strip", z.ZodTypeAny, {
|
|
66
|
-
condition: string;
|
|
67
|
-
}, {
|
|
68
|
-
condition: string;
|
|
69
|
-
}>;
|
|
70
|
-
export declare class CreateGoalTool extends BaseTool implements Tool {
|
|
71
|
-
protected readonly goalService: GoalService;
|
|
72
|
-
name: ToolNames;
|
|
73
|
-
description: string;
|
|
74
|
-
parameters: z.ZodObject<{
|
|
75
|
-
condition: z.ZodString;
|
|
76
|
-
}, "strip", z.ZodTypeAny, {
|
|
77
|
-
condition: string;
|
|
78
|
-
}, {
|
|
79
|
-
condition: string;
|
|
80
|
-
}>;
|
|
81
|
-
needsApproval: boolean;
|
|
82
|
-
execute(input: z.infer<typeof GoalConditionParameters>, context?: RunContext<Session>): Promise<ToolResult>;
|
|
83
|
-
}
|
|
84
|
-
declare const GetGoalParameters: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
85
|
-
export declare class GetGoalTool extends BaseTool implements Tool {
|
|
86
|
-
protected readonly goalService: GoalService;
|
|
87
|
-
name: ToolNames;
|
|
88
|
-
description: string;
|
|
89
|
-
parameters: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
90
|
-
needsApproval: boolean;
|
|
91
|
-
execute(_input: z.infer<typeof GetGoalParameters>, context?: RunContext<Session>): Promise<ToolResult>;
|
|
92
|
-
}
|
|
93
|
-
export declare class UpdateGoalTool extends BaseTool implements Tool {
|
|
94
|
-
protected readonly goalService: GoalService;
|
|
95
|
-
name: ToolNames;
|
|
96
|
-
description: string;
|
|
97
|
-
parameters: z.ZodObject<{
|
|
98
|
-
condition: z.ZodString;
|
|
99
|
-
}, "strip", z.ZodTypeAny, {
|
|
100
|
-
condition: string;
|
|
101
|
-
}, {
|
|
102
|
-
condition: string;
|
|
103
|
-
}>;
|
|
104
|
-
needsApproval: boolean;
|
|
105
|
-
execute(input: z.infer<typeof GoalConditionParameters>, context?: RunContext<Session>): Promise<ToolResult>;
|
|
106
|
-
}
|
|
107
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 恶意网站命中后给模型的两句引导语,沙箱拦截与 WebFetch 拦截共用。
|
|
3
|
-
*
|
|
4
|
-
* 必须显式禁止换工具重试:否则模型会很自然地改用 Bash curl 再试一次,虽然沙箱侧
|
|
5
|
-
* 会再拦一次,但那已经违背需求「命中后不得换命令或工具重试」。
|
|
6
|
-
*
|
|
7
|
-
* 两条路径的渲染格式不同(沙箱按行输出、WebFetch 拼成一句),所以只共用句子本身,
|
|
8
|
-
* 不共用拼装逻辑。
|
|
9
|
-
*/
|
|
10
|
-
export declare const MALICIOUS_BLOCK_NO_RETRY_HINT = "Do NOT retry this request with another command, tool, protocol, or workaround.";
|
|
11
|
-
export declare const MALICIOUS_BLOCK_WHITELIST_HINT = "If access is required, ask the user to add the domain to the whitelist in Settings \u2192 Security Center \u2192 Network Security.";
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { RunContext } from '@openai/agents';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
import { MemoryManager } from '../memory';
|
|
4
|
-
import { BaseTool } from './base-tool';
|
|
5
|
-
import { Tool, ToolResult } from './tool-protocol';
|
|
6
|
-
import { ToolNames } from '../../vendor/cbc-shared/node/index.js';
|
|
7
|
-
declare const MemoryParameters: z.ZodObject<{
|
|
8
|
-
fact: z.ZodString;
|
|
9
|
-
scope: z.ZodEnum<["user", "project", "project_local"]>;
|
|
10
|
-
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
fact: string;
|
|
12
|
-
scope: "project" | "project_local" | "user";
|
|
13
|
-
}, {
|
|
14
|
-
fact: string;
|
|
15
|
-
scope: "project" | "project_local" | "user";
|
|
16
|
-
}>;
|
|
17
|
-
export declare class MemoryTool extends BaseTool implements Tool {
|
|
18
|
-
protected readonly memoryManager: MemoryManager;
|
|
19
|
-
name: ToolNames;
|
|
20
|
-
description: string;
|
|
21
|
-
parameters: z.ZodObject<{
|
|
22
|
-
fact: z.ZodString;
|
|
23
|
-
scope: z.ZodEnum<["user", "project", "project_local"]>;
|
|
24
|
-
}, "strip", z.ZodTypeAny, {
|
|
25
|
-
fact: string;
|
|
26
|
-
scope: "project" | "project_local" | "user";
|
|
27
|
-
}, {
|
|
28
|
-
fact: string;
|
|
29
|
-
scope: "project" | "project_local" | "user";
|
|
30
|
-
}>;
|
|
31
|
-
execute(input: z.infer<typeof MemoryParameters>, context?: RunContext): Promise<ToolResult>;
|
|
32
|
-
}
|
|
33
|
-
export {};
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import type { Session } from '../../vendor/cbc-core/node/index.js';
|
|
2
|
-
import { type RunContext, ToolNames } from '../../vendor/cbc-shared/node/index.js';
|
|
3
|
-
import { Logger } from '@genie/telemetry';
|
|
4
|
-
import { z } from 'zod';
|
|
5
|
-
import { SettingsManager } from '../settings/settings-protocol';
|
|
6
|
-
import { BaseTool } from './base-tool';
|
|
7
|
-
import { Tool, ToolCallArgumentRenderer, ToolResult } from './tool-protocol';
|
|
8
|
-
/**
|
|
9
|
-
* MessageColleague —— Agent Home 的 1:1(通讯录可达即能发)。
|
|
10
|
-
*
|
|
11
|
-
* 目标是"某个人"(上游 SendToAgent 的语义),不是"某个房间成员":
|
|
12
|
-
* 同事发到他的 job 收件箱(死了就拉起);主 Agent(委托人)发到主会话邮箱
|
|
13
|
-
* (落盘,主会话 idle 时注入)。频道群对话走 SpeakInChannel,不是这个工具。
|
|
14
|
-
* 和 Agent Teams 的 SendMessage 无关。
|
|
15
|
-
*/
|
|
16
|
-
export declare class MessageColleagueTool extends BaseTool implements Tool {
|
|
17
|
-
protected readonly logger: Logger;
|
|
18
|
-
protected readonly settingsManager?: SettingsManager;
|
|
19
|
-
name: ToolNames;
|
|
20
|
-
description: string;
|
|
21
|
-
needsApproval: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* 通讯录里没人(且不是自己)时,它既不在工具列表里,也不出现在 ToolSearch 的
|
|
24
|
-
* "Available deferred tools" 描述里,模型不会知道有这么个东西。
|
|
25
|
-
*/
|
|
26
|
-
shouldShowInToolSearch: () => boolean;
|
|
27
|
-
parameters: z.ZodObject<{
|
|
28
|
-
action: z.ZodOptional<z.ZodEnum<["list", "send", "incoming"]>>;
|
|
29
|
-
recipient: z.ZodOptional<z.ZodString>;
|
|
30
|
-
content: z.ZodOptional<z.ZodString>;
|
|
31
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
32
|
-
from: z.ZodOptional<z.ZodString>;
|
|
33
|
-
text: z.ZodOptional<z.ZodString>;
|
|
34
|
-
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
action?: "incoming" | "list" | "send" | undefined;
|
|
36
|
-
recipient?: string | undefined;
|
|
37
|
-
content?: string | undefined;
|
|
38
|
-
summary?: string | undefined;
|
|
39
|
-
from?: string | undefined;
|
|
40
|
-
text?: string | undefined;
|
|
41
|
-
}, {
|
|
42
|
-
action?: "incoming" | "list" | "send" | undefined;
|
|
43
|
-
recipient?: string | undefined;
|
|
44
|
-
content?: string | undefined;
|
|
45
|
-
summary?: string | undefined;
|
|
46
|
-
from?: string | undefined;
|
|
47
|
-
text?: string | undefined;
|
|
48
|
-
}>;
|
|
49
|
-
argumentRenderer: ToolCallArgumentRenderer;
|
|
50
|
-
/**
|
|
51
|
-
* 房间 ACL 已经挡住了能联系谁;问候同事不必再走 auto 分类器,
|
|
52
|
-
* 否则模型已经决定发了,UI 还会再问一次确认。
|
|
53
|
-
*/
|
|
54
|
-
toAutoClassifierInput(_input: unknown): string;
|
|
55
|
-
private cachedTargets?;
|
|
56
|
-
private cachedAt;
|
|
57
|
-
/** 通讯录里还有别人 → 工具出现。主 Agent 也算(同事要能回报它)。 */
|
|
58
|
-
private hasReachableTarget;
|
|
59
|
-
private targets;
|
|
60
|
-
/**
|
|
61
|
-
* 极简没有组队 / 互感知:工具不出现。其他人走通讯录(有人就能发)。
|
|
62
|
-
*/
|
|
63
|
-
isEnabled: (args?: {
|
|
64
|
-
runContext?: RunContext<Session>;
|
|
65
|
-
agent?: {
|
|
66
|
-
name?: string;
|
|
67
|
-
};
|
|
68
|
-
}) => Promise<boolean>;
|
|
69
|
-
/** 每个成员此刻在干嘛:读的是和侧栏同一份 Run 状态,不另开数据源。 */
|
|
70
|
-
private describeContact;
|
|
71
|
-
execute(input: {
|
|
72
|
-
action?: string;
|
|
73
|
-
recipient?: string;
|
|
74
|
-
content?: string;
|
|
75
|
-
summary?: string;
|
|
76
|
-
from?: string;
|
|
77
|
-
text?: string;
|
|
78
|
-
}, context?: RunContext<Session>): Promise<ToolResult>;
|
|
79
|
-
}
|