@graychennpm/codebridge 0.0.0-stage → 0.1.0
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/CHANGELOG.md +14 -0
- package/LICENSE +21 -0
- package/README.md +217 -2
- package/README.zh-CN.md +222 -0
- package/apps/web/public/brand/agent-logo-carbon.svg +1 -0
- package/apps/web/public/brand/agent-logo.svg +1 -0
- package/docs/zh-CN/npm-release.md +77 -0
- package/node_modules/@codebridge/agent-registry/dist/index.d.ts +32 -0
- package/node_modules/@codebridge/agent-registry/dist/index.js +177 -0
- package/node_modules/@codebridge/agent-registry/dist/setup.d.ts +9 -0
- package/node_modules/@codebridge/agent-registry/dist/setup.js +115 -0
- package/node_modules/@codebridge/agent-registry/package.json +17 -0
- package/node_modules/@codebridge/backends/dist/acp/acp-active-session.d.ts +12 -0
- package/node_modules/@codebridge/backends/dist/acp/acp-active-session.js +57 -0
- package/node_modules/@codebridge/backends/dist/acp/acp-claude-activity.d.ts +9 -0
- package/node_modules/@codebridge/backends/dist/acp/acp-claude-activity.js +49 -0
- package/node_modules/@codebridge/backends/dist/acp/acp-config-options.d.ts +46 -0
- package/node_modules/@codebridge/backends/dist/acp/acp-config-options.js +220 -0
- package/node_modules/@codebridge/backends/dist/acp/acp-doctor.d.ts +3 -0
- package/node_modules/@codebridge/backends/dist/acp/acp-doctor.js +18 -0
- package/node_modules/@codebridge/backends/dist/acp/acp-event-mapper.d.ts +5 -0
- package/node_modules/@codebridge/backends/dist/acp/acp-event-mapper.js +136 -0
- package/node_modules/@codebridge/backends/dist/acp/acp-kill.d.ts +10 -0
- package/node_modules/@codebridge/backends/dist/acp/acp-kill.js +24 -0
- package/node_modules/@codebridge/backends/dist/acp/acp-race.d.ts +6 -0
- package/node_modules/@codebridge/backends/dist/acp/acp-race.js +29 -0
- package/node_modules/@codebridge/backends/dist/acp/acp-session-list.d.ts +32 -0
- package/node_modules/@codebridge/backends/dist/acp/acp-session-list.js +218 -0
- package/node_modules/@codebridge/backends/dist/acp/acp-session-pool.d.ts +85 -0
- package/node_modules/@codebridge/backends/dist/acp/acp-session-pool.js +165 -0
- package/node_modules/@codebridge/backends/dist/acp/acp-session-runner.d.ts +78 -0
- package/node_modules/@codebridge/backends/dist/acp/acp-session-runner.js +550 -0
- package/node_modules/@codebridge/backends/dist/acp/acp-spawn-profiles.d.ts +9 -0
- package/node_modules/@codebridge/backends/dist/acp/acp-spawn-profiles.js +28 -0
- package/node_modules/@codebridge/backends/dist/acp/headless-client.d.ts +19 -0
- package/node_modules/@codebridge/backends/dist/acp/headless-client.js +47 -0
- package/node_modules/@codebridge/backends/dist/acp/index.d.ts +9 -0
- package/node_modules/@codebridge/backends/dist/acp/index.js +9 -0
- package/node_modules/@codebridge/backends/dist/agent-setup.d.ts +60 -0
- package/node_modules/@codebridge/backends/dist/agent-setup.js +504 -0
- package/node_modules/@codebridge/backends/dist/attachment-prompt.d.ts +8 -0
- package/node_modules/@codebridge/backends/dist/attachment-prompt.js +28 -0
- package/node_modules/@codebridge/backends/dist/auth-error-hints.d.ts +8 -0
- package/node_modules/@codebridge/backends/dist/auth-error-hints.js +33 -0
- package/node_modules/@codebridge/backends/dist/codex-skill-commands.d.ts +3 -0
- package/node_modules/@codebridge/backends/dist/codex-skill-commands.js +88 -0
- package/node_modules/@codebridge/backends/dist/index.d.ts +18 -0
- package/node_modules/@codebridge/backends/dist/index.js +34 -0
- package/node_modules/@codebridge/backends/dist/pi-providers.d.ts +45 -0
- package/node_modules/@codebridge/backends/dist/pi-providers.js +148 -0
- package/node_modules/@codebridge/backends/dist/pi-session-runner.d.ts +85 -0
- package/node_modules/@codebridge/backends/dist/pi-session-runner.js +460 -0
- package/node_modules/@codebridge/backends/dist/provider-connection.d.ts +17 -0
- package/node_modules/@codebridge/backends/dist/provider-connection.js +99 -0
- package/node_modules/@codebridge/backends/dist/session-discovery.d.ts +23 -0
- package/node_modules/@codebridge/backends/dist/session-discovery.js +340 -0
- package/node_modules/@codebridge/backends/dist/skill-control-plane.d.ts +147 -0
- package/node_modules/@codebridge/backends/dist/skill-control-plane.js +832 -0
- package/node_modules/@codebridge/backends/package.json +22 -0
- package/node_modules/@codebridge/bridge/dist/alert-notification-rules.d.ts +14 -0
- package/node_modules/@codebridge/bridge/dist/alert-notification-rules.js +37 -0
- package/node_modules/@codebridge/bridge/dist/channel-config.d.ts +4 -0
- package/node_modules/@codebridge/bridge/dist/channel-config.js +9 -0
- package/node_modules/@codebridge/bridge/dist/channel-ingress.d.ts +5 -0
- package/node_modules/@codebridge/bridge/dist/channel-ingress.js +403 -0
- package/node_modules/@codebridge/bridge/dist/cli.d.ts +3 -0
- package/node_modules/@codebridge/bridge/dist/cli.js +581 -0
- package/node_modules/@codebridge/bridge/dist/deployment.d.ts +46 -0
- package/node_modules/@codebridge/bridge/dist/deployment.js +174 -0
- package/node_modules/@codebridge/bridge/dist/event-loop-lag.d.ts +19 -0
- package/node_modules/@codebridge/bridge/dist/event-loop-lag.js +33 -0
- package/node_modules/@codebridge/bridge/dist/feishu-alert-monitor.d.ts +70 -0
- package/node_modules/@codebridge/bridge/dist/feishu-alert-monitor.js +591 -0
- package/node_modules/@codebridge/bridge/dist/init-wizard.d.ts +52 -0
- package/node_modules/@codebridge/bridge/dist/init-wizard.js +571 -0
- package/node_modules/@codebridge/bridge/dist/mcp-api.d.ts +4 -0
- package/node_modules/@codebridge/bridge/dist/mcp-api.js +100 -0
- package/node_modules/@codebridge/bridge/dist/outbound-api.d.ts +31 -0
- package/node_modules/@codebridge/bridge/dist/outbound-api.js +184 -0
- package/node_modules/@codebridge/bridge/dist/outbound-publishers.d.ts +54 -0
- package/node_modules/@codebridge/bridge/dist/outbound-publishers.js +213 -0
- package/node_modules/@codebridge/bridge/dist/project-api.d.ts +4 -0
- package/node_modules/@codebridge/bridge/dist/project-api.js +161 -0
- package/node_modules/@codebridge/bridge/dist/secrets-command.d.ts +13 -0
- package/node_modules/@codebridge/bridge/dist/secrets-command.js +34 -0
- package/node_modules/@codebridge/bridge/dist/session-api.d.ts +26 -0
- package/node_modules/@codebridge/bridge/dist/session-api.js +1378 -0
- package/node_modules/@codebridge/bridge/dist/session-history-import.d.ts +24 -0
- package/node_modules/@codebridge/bridge/dist/session-history-import.js +82 -0
- package/node_modules/@codebridge/bridge/dist/session-runtime-api.d.ts +19 -0
- package/node_modules/@codebridge/bridge/dist/session-runtime-api.js +453 -0
- package/node_modules/@codebridge/bridge/dist/session-runtime-migration.d.ts +21 -0
- package/node_modules/@codebridge/bridge/dist/session-runtime-migration.js +43 -0
- package/node_modules/@codebridge/bridge/dist/session-runtime-types.d.ts +85 -0
- package/node_modules/@codebridge/bridge/dist/session-runtime-types.js +98 -0
- package/node_modules/@codebridge/bridge/dist/skill-api.d.ts +28 -0
- package/node_modules/@codebridge/bridge/dist/skill-api.js +129 -0
- package/node_modules/@codebridge/bridge/dist/startup-surfaces.d.ts +15 -0
- package/node_modules/@codebridge/bridge/dist/startup-surfaces.js +13 -0
- package/node_modules/@codebridge/bridge/dist/web-frontend.d.ts +8 -0
- package/node_modules/@codebridge/bridge/dist/web-frontend.js +76 -0
- package/node_modules/@codebridge/bridge/dist/work-item-api.d.ts +6 -0
- package/node_modules/@codebridge/bridge/dist/work-item-api.js +414 -0
- package/node_modules/@codebridge/bridge/package.json +28 -0
- package/node_modules/@codebridge/channel-feishu/dist/alert-reactions.d.ts +6 -0
- package/node_modules/@codebridge/channel-feishu/dist/alert-reactions.js +58 -0
- package/node_modules/@codebridge/channel-feishu/dist/alert-types.d.ts +35 -0
- package/node_modules/@codebridge/channel-feishu/dist/alert-types.js +2 -0
- package/node_modules/@codebridge/channel-feishu/dist/bridge.d.ts +130 -0
- package/node_modules/@codebridge/channel-feishu/dist/bridge.js +1231 -0
- package/node_modules/@codebridge/channel-feishu/dist/cardkit-writer.d.ts +48 -0
- package/node_modules/@codebridge/channel-feishu/dist/cardkit-writer.js +153 -0
- package/node_modules/@codebridge/channel-feishu/dist/chain-topics.d.ts +20 -0
- package/node_modules/@codebridge/channel-feishu/dist/chain-topics.js +35 -0
- package/node_modules/@codebridge/channel-feishu/dist/coalescing-card-writer.d.ts +12 -0
- package/node_modules/@codebridge/channel-feishu/dist/coalescing-card-writer.js +53 -0
- package/node_modules/@codebridge/channel-feishu/dist/delivery-reconciler.d.ts +19 -0
- package/node_modules/@codebridge/channel-feishu/dist/delivery-reconciler.js +53 -0
- package/node_modules/@codebridge/channel-feishu/dist/durable-markdown-card.d.ts +19 -0
- package/node_modules/@codebridge/channel-feishu/dist/durable-markdown-card.js +77 -0
- package/node_modules/@codebridge/channel-feishu/dist/feishu-extra-events.d.ts +27 -0
- package/node_modules/@codebridge/channel-feishu/dist/feishu-extra-events.js +24 -0
- package/node_modules/@codebridge/channel-feishu/dist/feishu-http.d.ts +4 -0
- package/node_modules/@codebridge/channel-feishu/dist/feishu-http.js +25 -0
- package/node_modules/@codebridge/channel-feishu/dist/feishu-inbound-context.d.ts +13 -0
- package/node_modules/@codebridge/channel-feishu/dist/feishu-inbound-context.js +45 -0
- package/node_modules/@codebridge/channel-feishu/dist/feishu-inbound-media.d.ts +22 -0
- package/node_modules/@codebridge/channel-feishu/dist/feishu-inbound-media.js +273 -0
- package/node_modules/@codebridge/channel-feishu/dist/feishu-mention-gate.d.ts +13 -0
- package/node_modules/@codebridge/channel-feishu/dist/feishu-mention-gate.js +22 -0
- package/node_modules/@codebridge/channel-feishu/dist/feishu-outbound-file.d.ts +12 -0
- package/node_modules/@codebridge/channel-feishu/dist/feishu-outbound-file.js +38 -0
- package/node_modules/@codebridge/channel-feishu/dist/feishu-quoted-message.d.ts +30 -0
- package/node_modules/@codebridge/channel-feishu/dist/feishu-quoted-message.js +183 -0
- package/node_modules/@codebridge/channel-feishu/dist/index.d.ts +7 -0
- package/node_modules/@codebridge/channel-feishu/dist/index.js +3 -0
- package/node_modules/@codebridge/channel-feishu/dist/redacting-logger.d.ts +17 -0
- package/node_modules/@codebridge/channel-feishu/dist/redacting-logger.js +41 -0
- package/node_modules/@codebridge/channel-feishu/dist/run-status.d.ts +39 -0
- package/node_modules/@codebridge/channel-feishu/dist/run-status.js +166 -0
- package/node_modules/@codebridge/channel-feishu/dist/session-watcher.d.ts +98 -0
- package/node_modules/@codebridge/channel-feishu/dist/session-watcher.js +655 -0
- package/node_modules/@codebridge/channel-feishu/package.json +19 -0
- package/node_modules/@codebridge/channel-telegram/dist/coalescing-message-writer.d.ts +14 -0
- package/node_modules/@codebridge/channel-telegram/dist/coalescing-message-writer.js +56 -0
- package/node_modules/@codebridge/channel-telegram/dist/index.d.ts +3 -0
- package/node_modules/@codebridge/channel-telegram/dist/index.js +3 -0
- package/node_modules/@codebridge/channel-telegram/dist/telegram-api.d.ts +62 -0
- package/node_modules/@codebridge/channel-telegram/dist/telegram-api.js +72 -0
- package/node_modules/@codebridge/channel-telegram/dist/telegram-bridge.d.ts +64 -0
- package/node_modules/@codebridge/channel-telegram/dist/telegram-bridge.js +469 -0
- package/node_modules/@codebridge/channel-telegram/dist/telegram-session-watcher.d.ts +41 -0
- package/node_modules/@codebridge/channel-telegram/dist/telegram-session-watcher.js +184 -0
- package/node_modules/@codebridge/channel-telegram/package.json +18 -0
- package/node_modules/@codebridge/core/dist/config-schema.d.ts +1195 -0
- package/node_modules/@codebridge/core/dist/config-schema.js +293 -0
- package/node_modules/@codebridge/core/dist/config-store.d.ts +48 -0
- package/node_modules/@codebridge/core/dist/config-store.js +207 -0
- package/node_modules/@codebridge/core/dist/index.d.ts +11 -0
- package/node_modules/@codebridge/core/dist/index.js +10 -0
- package/node_modules/@codebridge/core/dist/json-file-store.d.ts +16 -0
- package/node_modules/@codebridge/core/dist/json-file-store.js +46 -0
- package/node_modules/@codebridge/core/dist/mcp-types.d.ts +7 -0
- package/node_modules/@codebridge/core/dist/mcp-types.js +2 -0
- package/node_modules/@codebridge/core/dist/mentions.d.ts +36 -0
- package/node_modules/@codebridge/core/dist/mentions.js +138 -0
- package/node_modules/@codebridge/core/dist/secret-migration.d.ts +14 -0
- package/node_modules/@codebridge/core/dist/secret-migration.js +55 -0
- package/node_modules/@codebridge/core/dist/secret-refs.d.ts +34 -0
- package/node_modules/@codebridge/core/dist/secret-refs.js +142 -0
- package/node_modules/@codebridge/core/dist/session-event-wire.d.ts +17 -0
- package/node_modules/@codebridge/core/dist/session-event-wire.js +28 -0
- package/node_modules/@codebridge/core/dist/types.d.ts +363 -0
- package/node_modules/@codebridge/core/dist/types.js +22 -0
- package/node_modules/@codebridge/core/dist/workspace-key.d.ts +11 -0
- package/node_modules/@codebridge/core/dist/workspace-key.js +25 -0
- package/node_modules/@codebridge/core/package.json +22 -0
- package/node_modules/@codebridge/mcp-runtime/dist/.tsbuildinfo +1 -0
- package/node_modules/@codebridge/mcp-runtime/dist/index.d.ts +92 -0
- package/node_modules/@codebridge/mcp-runtime/dist/index.js +377 -0
- package/node_modules/@codebridge/mcp-runtime/package.json +19 -0
- package/node_modules/@codebridge/policy/dist/capability-runtime.d.ts +123 -0
- package/node_modules/@codebridge/policy/dist/capability-runtime.js +195 -0
- package/node_modules/@codebridge/policy/dist/demo-capabilities.d.ts +4 -0
- package/node_modules/@codebridge/policy/dist/demo-capabilities.js +134 -0
- package/node_modules/@codebridge/policy/dist/equity-capabilities.d.ts +8 -0
- package/node_modules/@codebridge/policy/dist/equity-capabilities.js +35 -0
- package/node_modules/@codebridge/policy/dist/index.d.ts +107 -0
- package/node_modules/@codebridge/policy/dist/index.js +317 -0
- package/node_modules/@codebridge/policy/package.json +17 -0
- package/node_modules/@codebridge/project-catalog/dist/index.d.ts +145 -0
- package/node_modules/@codebridge/project-catalog/dist/index.js +699 -0
- package/node_modules/@codebridge/project-catalog/package.json +18 -0
- package/node_modules/@codebridge/router/dist/channel-stream-projector.d.ts +19 -0
- package/node_modules/@codebridge/router/dist/channel-stream-projector.js +68 -0
- package/node_modules/@codebridge/router/dist/command-help.d.ts +14 -0
- package/node_modules/@codebridge/router/dist/command-help.js +151 -0
- package/node_modules/@codebridge/router/dist/feishu-stream-presenter.d.ts +18 -0
- package/node_modules/@codebridge/router/dist/feishu-stream-presenter.js +193 -0
- package/node_modules/@codebridge/router/dist/index.d.ts +9 -0
- package/node_modules/@codebridge/router/dist/index.js +9 -0
- package/node_modules/@codebridge/router/dist/model-effort.d.ts +5 -0
- package/node_modules/@codebridge/router/dist/model-effort.js +33 -0
- package/node_modules/@codebridge/router/dist/orchestrator.d.ts +56 -0
- package/node_modules/@codebridge/router/dist/orchestrator.js +290 -0
- package/node_modules/@codebridge/router/dist/session-list-format.d.ts +19 -0
- package/node_modules/@codebridge/router/dist/session-list-format.js +97 -0
- package/node_modules/@codebridge/router/dist/session-rotation.d.ts +9 -0
- package/node_modules/@codebridge/router/dist/session-rotation.js +31 -0
- package/node_modules/@codebridge/router/dist/session-router.d.ts +59 -0
- package/node_modules/@codebridge/router/dist/session-router.js +182 -0
- package/node_modules/@codebridge/router/dist/slash-commands.d.ts +78 -0
- package/node_modules/@codebridge/router/dist/slash-commands.js +874 -0
- package/node_modules/@codebridge/router/package.json +18 -0
- package/node_modules/@codebridge/run-executor/dist/agent-event-aggregator.d.ts +18 -0
- package/node_modules/@codebridge/run-executor/dist/agent-event-aggregator.js +88 -0
- package/node_modules/@codebridge/run-executor/dist/index.d.ts +55 -0
- package/node_modules/@codebridge/run-executor/dist/index.js +754 -0
- package/node_modules/@codebridge/run-executor/dist/run-heartbeat.d.ts +14 -0
- package/node_modules/@codebridge/run-executor/dist/run-heartbeat.js +24 -0
- package/node_modules/@codebridge/run-executor/package.json +20 -0
- package/node_modules/@codebridge/runner-client/dist/index.d.ts +142 -0
- package/node_modules/@codebridge/runner-client/dist/index.js +439 -0
- package/node_modules/@codebridge/runner-client/package.json +18 -0
- package/node_modules/@codebridge/runner-host/dist/cli.d.ts +3 -0
- package/node_modules/@codebridge/runner-host/dist/cli.js +58 -0
- package/node_modules/@codebridge/runner-host/dist/codex-session-ownership.d.ts +13 -0
- package/node_modules/@codebridge/runner-host/dist/codex-session-ownership.js +79 -0
- package/node_modules/@codebridge/runner-host/dist/deployment-mcp-server.d.ts +10 -0
- package/node_modules/@codebridge/runner-host/dist/deployment-mcp-server.js +54 -0
- package/node_modules/@codebridge/runner-host/dist/fcb-script.d.ts +3 -0
- package/node_modules/@codebridge/runner-host/dist/fcb-script.js +99 -0
- package/node_modules/@codebridge/runner-host/dist/index.d.ts +3 -0
- package/node_modules/@codebridge/runner-host/dist/index.js +2 -0
- package/node_modules/@codebridge/runner-host/dist/materialize-attachments.d.ts +4 -0
- package/node_modules/@codebridge/runner-host/dist/materialize-attachments.js +62 -0
- package/node_modules/@codebridge/runner-host/dist/server.d.ts +150 -0
- package/node_modules/@codebridge/runner-host/dist/server.js +1295 -0
- package/node_modules/@codebridge/runner-host/dist/session-lease.d.ts +12 -0
- package/node_modules/@codebridge/runner-host/dist/session-lease.js +146 -0
- package/node_modules/@codebridge/runner-host/package.json +26 -0
- package/node_modules/@codebridge/session-catalog/dist/index.d.ts +124 -0
- package/node_modules/@codebridge/session-catalog/dist/index.js +411 -0
- package/node_modules/@codebridge/session-catalog/package.json +17 -0
- package/node_modules/@codebridge/session-coordinator/dist/coordinator.d.ts +111 -0
- package/node_modules/@codebridge/session-coordinator/dist/coordinator.js +364 -0
- package/node_modules/@codebridge/session-coordinator/dist/index.d.ts +5 -0
- package/node_modules/@codebridge/session-coordinator/dist/index.js +5 -0
- package/node_modules/@codebridge/session-coordinator/dist/lease.d.ts +14 -0
- package/node_modules/@codebridge/session-coordinator/dist/lease.js +26 -0
- package/node_modules/@codebridge/session-coordinator/dist/queued-claim.d.ts +20 -0
- package/node_modules/@codebridge/session-coordinator/dist/queued-claim.js +45 -0
- package/node_modules/@codebridge/session-coordinator/dist/recovery.d.ts +31 -0
- package/node_modules/@codebridge/session-coordinator/dist/recovery.js +114 -0
- package/node_modules/@codebridge/session-coordinator/package.json +17 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/node_modules/@codebridge/web/dist/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/node_modules/@codebridge/web/dist/assets/abnfDiagram-N423BO3Z-C-JdFv0U.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/arc-DsNROjzU.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/architecture-TIHT7OUA-ZEBHG2JZ.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/architectureDiagram-T3A2C74G-OsrxcwPM.js +36 -0
- package/node_modules/@codebridge/web/dist/assets/array-BifhSqXX.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/blockDiagram-VBNYF7ZC-DRgfNeNW.js +132 -0
- package/node_modules/@codebridge/web/dist/assets/c4Diagram-5PPSVZJV-BtOGKTh8.js +10 -0
- package/node_modules/@codebridge/web/dist/assets/channel-MhXyjxUS.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/chunk-2GRJ4B5K-Dy1gJ7sY.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/chunk-2Q5K7J3B-C1jixKkw.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/chunk-4I5QYGJK-1pOLR_SG.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/chunk-5RXB4S5H-CP43rgsO.js +231 -0
- package/node_modules/@codebridge/web/dist/assets/chunk-5VM5RSS4-ZNzvKenW.js +15 -0
- package/node_modules/@codebridge/web/dist/assets/chunk-6Q2QTUOP-Bi3Xrp6W.js +88 -0
- package/node_modules/@codebridge/web/dist/assets/chunk-7BUUIJ7U-Bb538aSH.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/chunk-7Z6QIM7H-CILAW2Nk.js +10 -0
- package/node_modules/@codebridge/web/dist/assets/chunk-GF5L2VYU-CAp09yhq.js +206 -0
- package/node_modules/@codebridge/web/dist/assets/chunk-I66GZJ75-B_rJXmNu.js +128 -0
- package/node_modules/@codebridge/web/dist/assets/chunk-JQJVKLGR-OVeOJFCx.js +156 -0
- package/node_modules/@codebridge/web/dist/assets/chunk-JWPE2WC7-DVXcaiue.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/chunk-KBJHAD2P-uaupp0k5.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/chunk-KEIR6QF5-BICK3FdT.js +161 -0
- package/node_modules/@codebridge/web/dist/assets/chunk-NSK5VX7P-fIHF5wwn.js +2 -0
- package/node_modules/@codebridge/web/dist/assets/chunk-QR6OTTB3-DxkJuF2b.js +62 -0
- package/node_modules/@codebridge/web/dist/assets/chunk-RYQCIY6F-CC5j3u-X.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/chunk-UBXNYLIW-DB35O-6R.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/chunk-W5SLKNZC-bkRBsbq-.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/chunk-WRU74C26-DwvEoD-1.js +70 -0
- package/node_modules/@codebridge/web/dist/assets/chunk-XXDRQBXY-DRyYA-HY.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/classDiagram-JCYQIIEL-B8r7z8ii.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/classDiagram-v2-OCEON4UE-B8r7z8ii.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/cose-bilkent-JH36ORCC-CLkwlrX7.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/cynefin-VYW2F7L2-C3_Llw02.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/cynefinDiagram-MW4NZA55-D5v7UnJy.js +62 -0
- package/node_modules/@codebridge/web/dist/assets/cytoscape.esm-B-NFISlW.js +321 -0
- package/node_modules/@codebridge/web/dist/assets/dagre-Buvkdvvj.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/dagre-VZM6K2ZE-Cr0IibwW.js +4 -0
- package/node_modules/@codebridge/web/dist/assets/defaultLocale-BFoDCU3G.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/diagram-7IWD3JNH-CpQXDIzA.js +30 -0
- package/node_modules/@codebridge/web/dist/assets/diagram-B4RE2ZJO-VaOkH0Ya.js +3 -0
- package/node_modules/@codebridge/web/dist/assets/diagram-LBJQPF4R-D0iXyNks.js +24 -0
- package/node_modules/@codebridge/web/dist/assets/diagram-Q27KOJAE-CtqYk01P.js +24 -0
- package/node_modules/@codebridge/web/dist/assets/diagram-UB23O5K3-CFnd3H1_.js +41 -0
- package/node_modules/@codebridge/web/dist/assets/dist-D2L7nRdk.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/ebnfDiagram-BXEA7PRR-B0GIbJYt.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/erDiagram-JOGREHBK-BApaLGVA.js +85 -0
- package/node_modules/@codebridge/web/dist/assets/eventmodeling-45OFAUF4-DqGGjcld.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/flowDiagram-UKHOOZJN-I_qlizLH.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/ganttDiagram-PKOTCBZU-B-QZ-J82.js +292 -0
- package/node_modules/@codebridge/web/dist/assets/gitGraph-TEB2WS4Q-DK2SJ2Ne.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/gitGraphDiagram-DS77QQ5N-B6Z-pu0D.js +106 -0
- package/node_modules/@codebridge/web/dist/assets/graphlib-DS17s2tU.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/index-8BzpyygS.js +559 -0
- package/node_modules/@codebridge/web/dist/assets/index-Bzaz89LE.css +1 -0
- package/node_modules/@codebridge/web/dist/assets/info-DKCQHKI2-CGWxt_Py.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/infoDiagram-6WML65LV-77XjrPZs.js +2 -0
- package/node_modules/@codebridge/web/dist/assets/init-C-OQMol4.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/ishikawaDiagram-WSZJBQD7-P1bZAz2x.js +70 -0
- package/node_modules/@codebridge/web/dist/assets/journeyDiagram-NVQOT4AX-C4rwMcBY.js +139 -0
- package/node_modules/@codebridge/web/dist/assets/kanban-definition-27J2QSJJ-mtw4a9bc.js +89 -0
- package/node_modules/@codebridge/web/dist/assets/line-DP4RkYqm.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/linear-DMg3PPio.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/map-BaFkSB1l.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/mermaid-parser.core-HY84kHw1.js +7 -0
- package/node_modules/@codebridge/web/dist/assets/mermaid.core-DdgCdsnM.js +42 -0
- package/node_modules/@codebridge/web/dist/assets/mindmap-definition-FAOFIHXS-Cw1EnbhZ.js +96 -0
- package/node_modules/@codebridge/web/dist/assets/ordinal-BDEzSJ7C.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/packet-7NZHBO7P-CEbrbJH3.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/path-fybaL0A-.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/pegDiagram-VL7TDLO6-CEc1Gedb.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/pie-RZYD4A2V-DPXVs-IW.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/pieDiagram-7S7Q4E2Y-hoQeGMFH.js +39 -0
- package/node_modules/@codebridge/web/dist/assets/quadrantDiagram-CIZ2JOQS-C-Nmxx0f.js +7 -0
- package/node_modules/@codebridge/web/dist/assets/radar-I7S5WNFK-BVd3X3Pd.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/railroad-3IZDKUUU-CxLxzr_v.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/railroad-abnf-AHOZXSZD-MA1zPI84.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/railroad-ebnf-EBAXGLYW-Bqug_umD.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/railroad-peg-LSFZ7HO6-DRcRFwpq.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/railroadDiagram-AXF67PYL-B007ZkL9.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/requirementDiagram-LRYGKXZP-LrTCcEi5.js +84 -0
- package/node_modules/@codebridge/web/dist/assets/rough.esm-Dy-Kn_BL.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/sankeyDiagram-W5VNT64P-Ch4mzHck.js +40 -0
- package/node_modules/@codebridge/web/dist/assets/sequenceDiagram-SI44F4Z6-CHg4OzLX.js +162 -0
- package/node_modules/@codebridge/web/dist/assets/sizeCapture-X5ZJPWSS-B0uUizjq.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/src-BrO6_odD.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/stateDiagram-OKZ733FA-7cVkr5nR.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/stateDiagram-v2-UEYNNEHI-CTy_mAXb.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/swimlanes-SLNWSIFB-BwSVF5qy.js +2 -0
- package/node_modules/@codebridge/web/dist/assets/swimlanesDiagram-ULZ7WXOC-BBQnfZ1j.js +8 -0
- package/node_modules/@codebridge/web/dist/assets/timeline-definition-Z64GVDOM-BaHEkVDV.js +120 -0
- package/node_modules/@codebridge/web/dist/assets/treeView-QDETBFTQ-CF0kLN62.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/treemap-6X3UGDF4-BB8A8uux.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/vennDiagram-T6HMQDX7-BFK12Iro.js +34 -0
- package/node_modules/@codebridge/web/dist/assets/wardley-OPB4EBWU-C_3y61zk.js +1 -0
- package/node_modules/@codebridge/web/dist/assets/wardleyDiagram-T6FBY63Y-W2oGu4WK.js +78 -0
- package/node_modules/@codebridge/web/dist/assets/xychartDiagram-ELKLHX3M-BiVRnbvz.js +7 -0
- package/node_modules/@codebridge/web/dist/brand/agent-logo-carbon.svg +1 -0
- package/node_modules/@codebridge/web/dist/brand/agent-logo.svg +1 -0
- package/node_modules/@codebridge/web/dist/brand/agnet-logo-carbon.svg +1 -0
- package/node_modules/@codebridge/web/dist/brand/agnet-logo.svg +1 -0
- package/node_modules/@codebridge/web/dist/brand/agnet-mark-carbon.svg +1 -0
- package/node_modules/@codebridge/web/dist/brand/agnet-mark.svg +1 -0
- package/node_modules/@codebridge/web/dist/fonts/CommitMono-400-Regular.otf +0 -0
- package/node_modules/@codebridge/web/dist/fonts/CommitMono-700-Regular.otf +0 -0
- package/node_modules/@codebridge/web/dist/fonts/CommitMono-OFL.txt +21 -0
- package/node_modules/@codebridge/web/dist/fonts/DepartureMono-OFL.txt +21 -0
- package/node_modules/@codebridge/web/dist/fonts/DepartureMono-Regular.woff2 +0 -0
- package/node_modules/@codebridge/web/dist/index.html +25 -0
- package/node_modules/@codebridge/web/package.json +7 -0
- package/node_modules/@codebridge/work-items/dist/index.d.ts +371 -0
- package/node_modules/@codebridge/work-items/dist/index.js +1784 -0
- package/node_modules/@codebridge/work-items/dist/session-projector.d.ts +4 -0
- package/node_modules/@codebridge/work-items/dist/session-projector.js +506 -0
- package/node_modules/@codebridge/work-items/dist/session-runtime.d.ts +274 -0
- package/node_modules/@codebridge/work-items/dist/session-runtime.js +1103 -0
- package/node_modules/@codebridge/work-items/dist/session-schema.d.ts +9 -0
- package/node_modules/@codebridge/work-items/dist/session-schema.js +292 -0
- package/node_modules/@codebridge/work-items/package.json +20 -0
- package/package.json +75 -4
|
@@ -0,0 +1,1195 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Single source of truth for the npm ACP adapter package versions used as spawn defaults. */
|
|
3
|
+
export declare const ACP_CLAUDE_AGENT_ACP_VERSION = "0.81.1";
|
|
4
|
+
export declare const ACP_CODEX_ACP_VERSION = "1.13.1";
|
|
5
|
+
export declare const PolicyScenarioSchema: z.ZodObject<{
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
chats: z.ZodArray<z.ZodString, "many">;
|
|
8
|
+
requireMention: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
name: string;
|
|
12
|
+
chats: string[];
|
|
13
|
+
requireMention?: boolean | undefined;
|
|
14
|
+
enabled?: boolean | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
name: string;
|
|
17
|
+
chats: string[];
|
|
18
|
+
requireMention?: boolean | undefined;
|
|
19
|
+
enabled?: boolean | undefined;
|
|
20
|
+
}>;
|
|
21
|
+
export declare const FeishuPolicySchema: z.ZodObject<{
|
|
22
|
+
requireMention: z.ZodDefault<z.ZodBoolean>;
|
|
23
|
+
dmMode: z.ZodDefault<z.ZodEnum<["open", "disabled", "allowlist", "pair"]>>;
|
|
24
|
+
dmAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
25
|
+
groupAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
26
|
+
respondToMentionAll: z.ZodDefault<z.ZodBoolean>;
|
|
27
|
+
scenarios: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
28
|
+
name: z.ZodString;
|
|
29
|
+
chats: z.ZodArray<z.ZodString, "many">;
|
|
30
|
+
requireMention: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
name: string;
|
|
34
|
+
chats: string[];
|
|
35
|
+
requireMention?: boolean | undefined;
|
|
36
|
+
enabled?: boolean | undefined;
|
|
37
|
+
}, {
|
|
38
|
+
name: string;
|
|
39
|
+
chats: string[];
|
|
40
|
+
requireMention?: boolean | undefined;
|
|
41
|
+
enabled?: boolean | undefined;
|
|
42
|
+
}>, "many">>;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
requireMention: boolean;
|
|
45
|
+
dmMode: "open" | "disabled" | "allowlist" | "pair";
|
|
46
|
+
respondToMentionAll: boolean;
|
|
47
|
+
dmAllowlist?: string[] | undefined;
|
|
48
|
+
groupAllowlist?: string[] | undefined;
|
|
49
|
+
scenarios?: {
|
|
50
|
+
name: string;
|
|
51
|
+
chats: string[];
|
|
52
|
+
requireMention?: boolean | undefined;
|
|
53
|
+
enabled?: boolean | undefined;
|
|
54
|
+
}[] | undefined;
|
|
55
|
+
}, {
|
|
56
|
+
requireMention?: boolean | undefined;
|
|
57
|
+
dmMode?: "open" | "disabled" | "allowlist" | "pair" | undefined;
|
|
58
|
+
dmAllowlist?: string[] | undefined;
|
|
59
|
+
groupAllowlist?: string[] | undefined;
|
|
60
|
+
respondToMentionAll?: boolean | undefined;
|
|
61
|
+
scenarios?: {
|
|
62
|
+
name: string;
|
|
63
|
+
chats: string[];
|
|
64
|
+
requireMention?: boolean | undefined;
|
|
65
|
+
enabled?: boolean | undefined;
|
|
66
|
+
}[] | undefined;
|
|
67
|
+
}>;
|
|
68
|
+
/** Web Rail / 飞书 `/backend` 共用的五家 Agent,不再扩张。 */
|
|
69
|
+
export declare const SUPPORTED_AGENT_IDS: readonly ["cursor", "claude", "codex", "pi", "opencode"];
|
|
70
|
+
export type SupportedAgentId = (typeof SUPPORTED_AGENT_IDS)[number];
|
|
71
|
+
export declare const BackendProfileSchema: z.ZodObject<{
|
|
72
|
+
type: z.ZodEnum<["cursor-cli", "claude-code", "codex", "generic-spawn", "pi-sdk"]>;
|
|
73
|
+
transport: z.ZodOptional<z.ZodLiteral<"acp">>;
|
|
74
|
+
acpCommand: z.ZodOptional<z.ZodString>;
|
|
75
|
+
acpArgs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
76
|
+
model: z.ZodOptional<z.ZodString>;
|
|
77
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
78
|
+
/** true 时,若适配器未 advertise 想要的 model,本轮直接失败而非静默用适配器默认;默认 false */
|
|
79
|
+
strictModel: z.ZodOptional<z.ZodBoolean>;
|
|
80
|
+
/** Claude ACP mode 的兼容默认值,默认 bypassPermissions 避免 dontAsk 拒绝 Bash */
|
|
81
|
+
claudePermissionMode: z.ZodOptional<z.ZodEnum<["acceptEdits", "auto", "bypassPermissions", "default", "dontAsk", "plan"]>>;
|
|
82
|
+
}, "strip", z.ZodTypeAny, {
|
|
83
|
+
type: "codex" | "cursor-cli" | "claude-code" | "generic-spawn" | "pi-sdk";
|
|
84
|
+
transport?: "acp" | undefined;
|
|
85
|
+
acpCommand?: string | undefined;
|
|
86
|
+
acpArgs?: string[] | undefined;
|
|
87
|
+
model?: string | undefined;
|
|
88
|
+
effort?: string | undefined;
|
|
89
|
+
strictModel?: boolean | undefined;
|
|
90
|
+
claudePermissionMode?: "acceptEdits" | "auto" | "bypassPermissions" | "default" | "dontAsk" | "plan" | undefined;
|
|
91
|
+
}, {
|
|
92
|
+
type: "codex" | "cursor-cli" | "claude-code" | "generic-spawn" | "pi-sdk";
|
|
93
|
+
transport?: "acp" | undefined;
|
|
94
|
+
acpCommand?: string | undefined;
|
|
95
|
+
acpArgs?: string[] | undefined;
|
|
96
|
+
model?: string | undefined;
|
|
97
|
+
effort?: string | undefined;
|
|
98
|
+
strictModel?: boolean | undefined;
|
|
99
|
+
claudePermissionMode?: "acceptEdits" | "auto" | "bypassPermissions" | "default" | "dontAsk" | "plan" | undefined;
|
|
100
|
+
}>;
|
|
101
|
+
export declare const DEFAULT_BACKEND_PROFILES: Record<SupportedAgentId, z.infer<typeof BackendProfileSchema>>;
|
|
102
|
+
export declare const AccessConfigSchema: z.ZodObject<{
|
|
103
|
+
allowedUsers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
104
|
+
allowedChats: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
105
|
+
admins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
106
|
+
}, "strip", z.ZodTypeAny, {
|
|
107
|
+
allowedUsers?: string[] | undefined;
|
|
108
|
+
allowedChats?: string[] | undefined;
|
|
109
|
+
admins?: string[] | undefined;
|
|
110
|
+
}, {
|
|
111
|
+
allowedUsers?: string[] | undefined;
|
|
112
|
+
allowedChats?: string[] | undefined;
|
|
113
|
+
admins?: string[] | undefined;
|
|
114
|
+
}>;
|
|
115
|
+
export declare const WorkspacesConfigSchema: z.ZodObject<{
|
|
116
|
+
root: z.ZodOptional<z.ZodString>;
|
|
117
|
+
default: z.ZodOptional<z.ZodString>;
|
|
118
|
+
named: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
119
|
+
}, "strip", z.ZodTypeAny, {
|
|
120
|
+
default?: string | undefined;
|
|
121
|
+
root?: string | undefined;
|
|
122
|
+
named?: Record<string, string> | undefined;
|
|
123
|
+
}, {
|
|
124
|
+
default?: string | undefined;
|
|
125
|
+
root?: string | undefined;
|
|
126
|
+
named?: Record<string, string> | undefined;
|
|
127
|
+
}>;
|
|
128
|
+
export declare const ProjectCatalogConfigSchema: z.ZodObject<{
|
|
129
|
+
repositoryPath: z.ZodString;
|
|
130
|
+
baseRef: z.ZodDefault<z.ZodString>;
|
|
131
|
+
catalogPath: z.ZodDefault<z.ZodString>;
|
|
132
|
+
}, "strip", z.ZodTypeAny, {
|
|
133
|
+
repositoryPath: string;
|
|
134
|
+
baseRef: string;
|
|
135
|
+
catalogPath: string;
|
|
136
|
+
}, {
|
|
137
|
+
repositoryPath: string;
|
|
138
|
+
baseRef?: string | undefined;
|
|
139
|
+
catalogPath?: string | undefined;
|
|
140
|
+
}>;
|
|
141
|
+
export declare const McpServerConfigSchema: z.ZodDiscriminatedUnion<"transport", [z.ZodObject<{
|
|
142
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
143
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
144
|
+
transport: z.ZodLiteral<"stdio">;
|
|
145
|
+
command: z.ZodString;
|
|
146
|
+
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
147
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
148
|
+
}, "strip", z.ZodTypeAny, {
|
|
149
|
+
enabled: boolean;
|
|
150
|
+
transport: "stdio";
|
|
151
|
+
command: string;
|
|
152
|
+
args?: string[] | undefined;
|
|
153
|
+
env?: string[] | undefined;
|
|
154
|
+
revision?: string | undefined;
|
|
155
|
+
}, {
|
|
156
|
+
transport: "stdio";
|
|
157
|
+
command: string;
|
|
158
|
+
enabled?: boolean | undefined;
|
|
159
|
+
args?: string[] | undefined;
|
|
160
|
+
env?: string[] | undefined;
|
|
161
|
+
revision?: string | undefined;
|
|
162
|
+
}>, z.ZodObject<{
|
|
163
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
164
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
165
|
+
transport: z.ZodLiteral<"http">;
|
|
166
|
+
url: z.ZodString;
|
|
167
|
+
}, "strip", z.ZodTypeAny, {
|
|
168
|
+
enabled: boolean;
|
|
169
|
+
transport: "http";
|
|
170
|
+
url: string;
|
|
171
|
+
revision?: string | undefined;
|
|
172
|
+
}, {
|
|
173
|
+
transport: "http";
|
|
174
|
+
url: string;
|
|
175
|
+
enabled?: boolean | undefined;
|
|
176
|
+
revision?: string | undefined;
|
|
177
|
+
}>]>;
|
|
178
|
+
export declare const SessionAutoRotateConfigSchema: z.ZodObject<{
|
|
179
|
+
/** Default on: a chat should not resume one provider session forever. */
|
|
180
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
181
|
+
/** Start a fresh session when the last one has been idle this long; 0 disables. Default 12. */
|
|
182
|
+
idleHours: z.ZodOptional<z.ZodNumber>;
|
|
183
|
+
/** Start a fresh session once the last reported context use reaches this share of the window. Default 0.5. */
|
|
184
|
+
maxContextRatio: z.ZodOptional<z.ZodNumber>;
|
|
185
|
+
}, "strip", z.ZodTypeAny, {
|
|
186
|
+
enabled?: boolean | undefined;
|
|
187
|
+
idleHours?: number | undefined;
|
|
188
|
+
maxContextRatio?: number | undefined;
|
|
189
|
+
}, {
|
|
190
|
+
enabled?: boolean | undefined;
|
|
191
|
+
idleHours?: number | undefined;
|
|
192
|
+
maxContextRatio?: number | undefined;
|
|
193
|
+
}>;
|
|
194
|
+
export declare const SessionRuntimeConfigSchema: z.ZodObject<{
|
|
195
|
+
maxQueuedTurns: z.ZodDefault<z.ZodNumber>;
|
|
196
|
+
autoRotate: z.ZodOptional<z.ZodObject<{
|
|
197
|
+
/** Default on: a chat should not resume one provider session forever. */
|
|
198
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
199
|
+
/** Start a fresh session when the last one has been idle this long; 0 disables. Default 12. */
|
|
200
|
+
idleHours: z.ZodOptional<z.ZodNumber>;
|
|
201
|
+
/** Start a fresh session once the last reported context use reaches this share of the window. Default 0.5. */
|
|
202
|
+
maxContextRatio: z.ZodOptional<z.ZodNumber>;
|
|
203
|
+
}, "strip", z.ZodTypeAny, {
|
|
204
|
+
enabled?: boolean | undefined;
|
|
205
|
+
idleHours?: number | undefined;
|
|
206
|
+
maxContextRatio?: number | undefined;
|
|
207
|
+
}, {
|
|
208
|
+
enabled?: boolean | undefined;
|
|
209
|
+
idleHours?: number | undefined;
|
|
210
|
+
maxContextRatio?: number | undefined;
|
|
211
|
+
}>>;
|
|
212
|
+
}, "strip", z.ZodTypeAny, {
|
|
213
|
+
maxQueuedTurns: number;
|
|
214
|
+
autoRotate?: {
|
|
215
|
+
enabled?: boolean | undefined;
|
|
216
|
+
idleHours?: number | undefined;
|
|
217
|
+
maxContextRatio?: number | undefined;
|
|
218
|
+
} | undefined;
|
|
219
|
+
}, {
|
|
220
|
+
maxQueuedTurns?: number | undefined;
|
|
221
|
+
autoRotate?: {
|
|
222
|
+
enabled?: boolean | undefined;
|
|
223
|
+
idleHours?: number | undefined;
|
|
224
|
+
maxContextRatio?: number | undefined;
|
|
225
|
+
} | undefined;
|
|
226
|
+
}>;
|
|
227
|
+
export declare const OrchestrationConfigSchema: z.ZodObject<{
|
|
228
|
+
projectCatalog: z.ZodOptional<z.ZodObject<{
|
|
229
|
+
repositoryPath: z.ZodString;
|
|
230
|
+
baseRef: z.ZodDefault<z.ZodString>;
|
|
231
|
+
catalogPath: z.ZodDefault<z.ZodString>;
|
|
232
|
+
}, "strip", z.ZodTypeAny, {
|
|
233
|
+
repositoryPath: string;
|
|
234
|
+
baseRef: string;
|
|
235
|
+
catalogPath: string;
|
|
236
|
+
}, {
|
|
237
|
+
repositoryPath: string;
|
|
238
|
+
baseRef?: string | undefined;
|
|
239
|
+
catalogPath?: string | undefined;
|
|
240
|
+
}>>;
|
|
241
|
+
mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"transport", [z.ZodObject<{
|
|
242
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
243
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
244
|
+
transport: z.ZodLiteral<"stdio">;
|
|
245
|
+
command: z.ZodString;
|
|
246
|
+
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
247
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
248
|
+
}, "strip", z.ZodTypeAny, {
|
|
249
|
+
enabled: boolean;
|
|
250
|
+
transport: "stdio";
|
|
251
|
+
command: string;
|
|
252
|
+
args?: string[] | undefined;
|
|
253
|
+
env?: string[] | undefined;
|
|
254
|
+
revision?: string | undefined;
|
|
255
|
+
}, {
|
|
256
|
+
transport: "stdio";
|
|
257
|
+
command: string;
|
|
258
|
+
enabled?: boolean | undefined;
|
|
259
|
+
args?: string[] | undefined;
|
|
260
|
+
env?: string[] | undefined;
|
|
261
|
+
revision?: string | undefined;
|
|
262
|
+
}>, z.ZodObject<{
|
|
263
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
264
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
265
|
+
transport: z.ZodLiteral<"http">;
|
|
266
|
+
url: z.ZodString;
|
|
267
|
+
}, "strip", z.ZodTypeAny, {
|
|
268
|
+
enabled: boolean;
|
|
269
|
+
transport: "http";
|
|
270
|
+
url: string;
|
|
271
|
+
revision?: string | undefined;
|
|
272
|
+
}, {
|
|
273
|
+
transport: "http";
|
|
274
|
+
url: string;
|
|
275
|
+
enabled?: boolean | undefined;
|
|
276
|
+
revision?: string | undefined;
|
|
277
|
+
}>]>>>;
|
|
278
|
+
session: z.ZodOptional<z.ZodObject<{
|
|
279
|
+
maxQueuedTurns: z.ZodDefault<z.ZodNumber>;
|
|
280
|
+
autoRotate: z.ZodOptional<z.ZodObject<{
|
|
281
|
+
/** Default on: a chat should not resume one provider session forever. */
|
|
282
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
283
|
+
/** Start a fresh session when the last one has been idle this long; 0 disables. Default 12. */
|
|
284
|
+
idleHours: z.ZodOptional<z.ZodNumber>;
|
|
285
|
+
/** Start a fresh session once the last reported context use reaches this share of the window. Default 0.5. */
|
|
286
|
+
maxContextRatio: z.ZodOptional<z.ZodNumber>;
|
|
287
|
+
}, "strip", z.ZodTypeAny, {
|
|
288
|
+
enabled?: boolean | undefined;
|
|
289
|
+
idleHours?: number | undefined;
|
|
290
|
+
maxContextRatio?: number | undefined;
|
|
291
|
+
}, {
|
|
292
|
+
enabled?: boolean | undefined;
|
|
293
|
+
idleHours?: number | undefined;
|
|
294
|
+
maxContextRatio?: number | undefined;
|
|
295
|
+
}>>;
|
|
296
|
+
}, "strip", z.ZodTypeAny, {
|
|
297
|
+
maxQueuedTurns: number;
|
|
298
|
+
autoRotate?: {
|
|
299
|
+
enabled?: boolean | undefined;
|
|
300
|
+
idleHours?: number | undefined;
|
|
301
|
+
maxContextRatio?: number | undefined;
|
|
302
|
+
} | undefined;
|
|
303
|
+
}, {
|
|
304
|
+
maxQueuedTurns?: number | undefined;
|
|
305
|
+
autoRotate?: {
|
|
306
|
+
enabled?: boolean | undefined;
|
|
307
|
+
idleHours?: number | undefined;
|
|
308
|
+
maxContextRatio?: number | undefined;
|
|
309
|
+
} | undefined;
|
|
310
|
+
}>>;
|
|
311
|
+
}, "strip", z.ZodTypeAny, {
|
|
312
|
+
projectCatalog?: {
|
|
313
|
+
repositoryPath: string;
|
|
314
|
+
baseRef: string;
|
|
315
|
+
catalogPath: string;
|
|
316
|
+
} | undefined;
|
|
317
|
+
mcpServers?: Record<string, {
|
|
318
|
+
enabled: boolean;
|
|
319
|
+
transport: "stdio";
|
|
320
|
+
command: string;
|
|
321
|
+
args?: string[] | undefined;
|
|
322
|
+
env?: string[] | undefined;
|
|
323
|
+
revision?: string | undefined;
|
|
324
|
+
} | {
|
|
325
|
+
enabled: boolean;
|
|
326
|
+
transport: "http";
|
|
327
|
+
url: string;
|
|
328
|
+
revision?: string | undefined;
|
|
329
|
+
}> | undefined;
|
|
330
|
+
session?: {
|
|
331
|
+
maxQueuedTurns: number;
|
|
332
|
+
autoRotate?: {
|
|
333
|
+
enabled?: boolean | undefined;
|
|
334
|
+
idleHours?: number | undefined;
|
|
335
|
+
maxContextRatio?: number | undefined;
|
|
336
|
+
} | undefined;
|
|
337
|
+
} | undefined;
|
|
338
|
+
}, {
|
|
339
|
+
projectCatalog?: {
|
|
340
|
+
repositoryPath: string;
|
|
341
|
+
baseRef?: string | undefined;
|
|
342
|
+
catalogPath?: string | undefined;
|
|
343
|
+
} | undefined;
|
|
344
|
+
mcpServers?: Record<string, {
|
|
345
|
+
transport: "stdio";
|
|
346
|
+
command: string;
|
|
347
|
+
enabled?: boolean | undefined;
|
|
348
|
+
args?: string[] | undefined;
|
|
349
|
+
env?: string[] | undefined;
|
|
350
|
+
revision?: string | undefined;
|
|
351
|
+
} | {
|
|
352
|
+
transport: "http";
|
|
353
|
+
url: string;
|
|
354
|
+
enabled?: boolean | undefined;
|
|
355
|
+
revision?: string | undefined;
|
|
356
|
+
}> | undefined;
|
|
357
|
+
session?: {
|
|
358
|
+
maxQueuedTurns?: number | undefined;
|
|
359
|
+
autoRotate?: {
|
|
360
|
+
enabled?: boolean | undefined;
|
|
361
|
+
idleHours?: number | undefined;
|
|
362
|
+
maxContextRatio?: number | undefined;
|
|
363
|
+
} | undefined;
|
|
364
|
+
} | undefined;
|
|
365
|
+
}>;
|
|
366
|
+
export declare const ConfigSchema: z.ZodObject<{
|
|
367
|
+
feishu: z.ZodObject<{
|
|
368
|
+
domain: z.ZodDefault<z.ZodString>;
|
|
369
|
+
appId: z.ZodString;
|
|
370
|
+
appSecret: z.ZodString;
|
|
371
|
+
policy: z.ZodOptional<z.ZodObject<{
|
|
372
|
+
requireMention: z.ZodDefault<z.ZodBoolean>;
|
|
373
|
+
dmMode: z.ZodDefault<z.ZodEnum<["open", "disabled", "allowlist", "pair"]>>;
|
|
374
|
+
dmAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
375
|
+
groupAllowlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
376
|
+
respondToMentionAll: z.ZodDefault<z.ZodBoolean>;
|
|
377
|
+
scenarios: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
378
|
+
name: z.ZodString;
|
|
379
|
+
chats: z.ZodArray<z.ZodString, "many">;
|
|
380
|
+
requireMention: z.ZodOptional<z.ZodBoolean>;
|
|
381
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
382
|
+
}, "strip", z.ZodTypeAny, {
|
|
383
|
+
name: string;
|
|
384
|
+
chats: string[];
|
|
385
|
+
requireMention?: boolean | undefined;
|
|
386
|
+
enabled?: boolean | undefined;
|
|
387
|
+
}, {
|
|
388
|
+
name: string;
|
|
389
|
+
chats: string[];
|
|
390
|
+
requireMention?: boolean | undefined;
|
|
391
|
+
enabled?: boolean | undefined;
|
|
392
|
+
}>, "many">>;
|
|
393
|
+
}, "strip", z.ZodTypeAny, {
|
|
394
|
+
requireMention: boolean;
|
|
395
|
+
dmMode: "open" | "disabled" | "allowlist" | "pair";
|
|
396
|
+
respondToMentionAll: boolean;
|
|
397
|
+
dmAllowlist?: string[] | undefined;
|
|
398
|
+
groupAllowlist?: string[] | undefined;
|
|
399
|
+
scenarios?: {
|
|
400
|
+
name: string;
|
|
401
|
+
chats: string[];
|
|
402
|
+
requireMention?: boolean | undefined;
|
|
403
|
+
enabled?: boolean | undefined;
|
|
404
|
+
}[] | undefined;
|
|
405
|
+
}, {
|
|
406
|
+
requireMention?: boolean | undefined;
|
|
407
|
+
dmMode?: "open" | "disabled" | "allowlist" | "pair" | undefined;
|
|
408
|
+
dmAllowlist?: string[] | undefined;
|
|
409
|
+
groupAllowlist?: string[] | undefined;
|
|
410
|
+
respondToMentionAll?: boolean | undefined;
|
|
411
|
+
scenarios?: {
|
|
412
|
+
name: string;
|
|
413
|
+
chats: string[];
|
|
414
|
+
requireMention?: boolean | undefined;
|
|
415
|
+
enabled?: boolean | undefined;
|
|
416
|
+
}[] | undefined;
|
|
417
|
+
}>>;
|
|
418
|
+
alertMonitor: z.ZodOptional<z.ZodObject<{
|
|
419
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
420
|
+
pollIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
421
|
+
lookbackMs: z.ZodDefault<z.ZodNumber>;
|
|
422
|
+
dedupWindowMs: z.ZodDefault<z.ZodNumber>;
|
|
423
|
+
maxConcurrent: z.ZodDefault<z.ZodNumber>;
|
|
424
|
+
/** Terminal incidents older than this leave the state file and stop shaping their thread. */
|
|
425
|
+
incidentRetentionMs: z.ZodDefault<z.ZodNumber>;
|
|
426
|
+
statusReactions: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
427
|
+
investigating: z.ZodString;
|
|
428
|
+
waiting: z.ZodString;
|
|
429
|
+
resolved: z.ZodString;
|
|
430
|
+
no_action: z.ZodString;
|
|
431
|
+
blocked: z.ZodString;
|
|
432
|
+
}, "strip", z.ZodTypeAny, {
|
|
433
|
+
investigating: string;
|
|
434
|
+
waiting: string;
|
|
435
|
+
resolved: string;
|
|
436
|
+
no_action: string;
|
|
437
|
+
blocked: string;
|
|
438
|
+
}, {
|
|
439
|
+
investigating: string;
|
|
440
|
+
waiting: string;
|
|
441
|
+
resolved: string;
|
|
442
|
+
no_action: string;
|
|
443
|
+
blocked: string;
|
|
444
|
+
}>, {
|
|
445
|
+
investigating: string;
|
|
446
|
+
waiting: string;
|
|
447
|
+
resolved: string;
|
|
448
|
+
no_action: string;
|
|
449
|
+
blocked: string;
|
|
450
|
+
}, {
|
|
451
|
+
investigating: string;
|
|
452
|
+
waiting: string;
|
|
453
|
+
resolved: string;
|
|
454
|
+
no_action: string;
|
|
455
|
+
blocked: string;
|
|
456
|
+
}>>;
|
|
457
|
+
groups: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
458
|
+
chatId: z.ZodString;
|
|
459
|
+
senderAppIds: z.ZodArray<z.ZodString, "many">;
|
|
460
|
+
/** Deprecated alias for a single approver; kept so existing configs load. */
|
|
461
|
+
ownerOpenId: z.ZodOptional<z.ZodString>;
|
|
462
|
+
/** People who can authorize write actions. Anyone in the group can chat, close or reopen. */
|
|
463
|
+
approverOpenIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
464
|
+
runbookPath: z.ZodOptional<z.ZodString>;
|
|
465
|
+
}, "strip", z.ZodTypeAny, {
|
|
466
|
+
chatId: string;
|
|
467
|
+
senderAppIds: string[];
|
|
468
|
+
ownerOpenId?: string | undefined;
|
|
469
|
+
approverOpenIds?: string[] | undefined;
|
|
470
|
+
runbookPath?: string | undefined;
|
|
471
|
+
}, {
|
|
472
|
+
chatId: string;
|
|
473
|
+
senderAppIds: string[];
|
|
474
|
+
ownerOpenId?: string | undefined;
|
|
475
|
+
approverOpenIds?: string[] | undefined;
|
|
476
|
+
runbookPath?: string | undefined;
|
|
477
|
+
}>, {
|
|
478
|
+
chatId: string;
|
|
479
|
+
senderAppIds: string[];
|
|
480
|
+
ownerOpenId?: string | undefined;
|
|
481
|
+
approverOpenIds?: string[] | undefined;
|
|
482
|
+
runbookPath?: string | undefined;
|
|
483
|
+
}, {
|
|
484
|
+
chatId: string;
|
|
485
|
+
senderAppIds: string[];
|
|
486
|
+
ownerOpenId?: string | undefined;
|
|
487
|
+
approverOpenIds?: string[] | undefined;
|
|
488
|
+
runbookPath?: string | undefined;
|
|
489
|
+
}>, "many">, {
|
|
490
|
+
chatId: string;
|
|
491
|
+
senderAppIds: string[];
|
|
492
|
+
ownerOpenId?: string | undefined;
|
|
493
|
+
approverOpenIds?: string[] | undefined;
|
|
494
|
+
runbookPath?: string | undefined;
|
|
495
|
+
}[], {
|
|
496
|
+
chatId: string;
|
|
497
|
+
senderAppIds: string[];
|
|
498
|
+
ownerOpenId?: string | undefined;
|
|
499
|
+
approverOpenIds?: string[] | undefined;
|
|
500
|
+
runbookPath?: string | undefined;
|
|
501
|
+
}[]>;
|
|
502
|
+
}, "strip", z.ZodTypeAny, {
|
|
503
|
+
pollIntervalMs: number;
|
|
504
|
+
lookbackMs: number;
|
|
505
|
+
dedupWindowMs: number;
|
|
506
|
+
maxConcurrent: number;
|
|
507
|
+
incidentRetentionMs: number;
|
|
508
|
+
groups: {
|
|
509
|
+
chatId: string;
|
|
510
|
+
senderAppIds: string[];
|
|
511
|
+
ownerOpenId?: string | undefined;
|
|
512
|
+
approverOpenIds?: string[] | undefined;
|
|
513
|
+
runbookPath?: string | undefined;
|
|
514
|
+
}[];
|
|
515
|
+
enabled?: boolean | undefined;
|
|
516
|
+
statusReactions?: {
|
|
517
|
+
investigating: string;
|
|
518
|
+
waiting: string;
|
|
519
|
+
resolved: string;
|
|
520
|
+
no_action: string;
|
|
521
|
+
blocked: string;
|
|
522
|
+
} | undefined;
|
|
523
|
+
}, {
|
|
524
|
+
groups: {
|
|
525
|
+
chatId: string;
|
|
526
|
+
senderAppIds: string[];
|
|
527
|
+
ownerOpenId?: string | undefined;
|
|
528
|
+
approverOpenIds?: string[] | undefined;
|
|
529
|
+
runbookPath?: string | undefined;
|
|
530
|
+
}[];
|
|
531
|
+
enabled?: boolean | undefined;
|
|
532
|
+
pollIntervalMs?: number | undefined;
|
|
533
|
+
lookbackMs?: number | undefined;
|
|
534
|
+
dedupWindowMs?: number | undefined;
|
|
535
|
+
maxConcurrent?: number | undefined;
|
|
536
|
+
incidentRetentionMs?: number | undefined;
|
|
537
|
+
statusReactions?: {
|
|
538
|
+
investigating: string;
|
|
539
|
+
waiting: string;
|
|
540
|
+
resolved: string;
|
|
541
|
+
no_action: string;
|
|
542
|
+
blocked: string;
|
|
543
|
+
} | undefined;
|
|
544
|
+
}>>;
|
|
545
|
+
}, "strip", z.ZodTypeAny, {
|
|
546
|
+
domain: string;
|
|
547
|
+
appId: string;
|
|
548
|
+
appSecret: string;
|
|
549
|
+
policy?: {
|
|
550
|
+
requireMention: boolean;
|
|
551
|
+
dmMode: "open" | "disabled" | "allowlist" | "pair";
|
|
552
|
+
respondToMentionAll: boolean;
|
|
553
|
+
dmAllowlist?: string[] | undefined;
|
|
554
|
+
groupAllowlist?: string[] | undefined;
|
|
555
|
+
scenarios?: {
|
|
556
|
+
name: string;
|
|
557
|
+
chats: string[];
|
|
558
|
+
requireMention?: boolean | undefined;
|
|
559
|
+
enabled?: boolean | undefined;
|
|
560
|
+
}[] | undefined;
|
|
561
|
+
} | undefined;
|
|
562
|
+
alertMonitor?: {
|
|
563
|
+
pollIntervalMs: number;
|
|
564
|
+
lookbackMs: number;
|
|
565
|
+
dedupWindowMs: number;
|
|
566
|
+
maxConcurrent: number;
|
|
567
|
+
incidentRetentionMs: number;
|
|
568
|
+
groups: {
|
|
569
|
+
chatId: string;
|
|
570
|
+
senderAppIds: string[];
|
|
571
|
+
ownerOpenId?: string | undefined;
|
|
572
|
+
approverOpenIds?: string[] | undefined;
|
|
573
|
+
runbookPath?: string | undefined;
|
|
574
|
+
}[];
|
|
575
|
+
enabled?: boolean | undefined;
|
|
576
|
+
statusReactions?: {
|
|
577
|
+
investigating: string;
|
|
578
|
+
waiting: string;
|
|
579
|
+
resolved: string;
|
|
580
|
+
no_action: string;
|
|
581
|
+
blocked: string;
|
|
582
|
+
} | undefined;
|
|
583
|
+
} | undefined;
|
|
584
|
+
}, {
|
|
585
|
+
appId: string;
|
|
586
|
+
appSecret: string;
|
|
587
|
+
domain?: string | undefined;
|
|
588
|
+
policy?: {
|
|
589
|
+
requireMention?: boolean | undefined;
|
|
590
|
+
dmMode?: "open" | "disabled" | "allowlist" | "pair" | undefined;
|
|
591
|
+
dmAllowlist?: string[] | undefined;
|
|
592
|
+
groupAllowlist?: string[] | undefined;
|
|
593
|
+
respondToMentionAll?: boolean | undefined;
|
|
594
|
+
scenarios?: {
|
|
595
|
+
name: string;
|
|
596
|
+
chats: string[];
|
|
597
|
+
requireMention?: boolean | undefined;
|
|
598
|
+
enabled?: boolean | undefined;
|
|
599
|
+
}[] | undefined;
|
|
600
|
+
} | undefined;
|
|
601
|
+
alertMonitor?: {
|
|
602
|
+
groups: {
|
|
603
|
+
chatId: string;
|
|
604
|
+
senderAppIds: string[];
|
|
605
|
+
ownerOpenId?: string | undefined;
|
|
606
|
+
approverOpenIds?: string[] | undefined;
|
|
607
|
+
runbookPath?: string | undefined;
|
|
608
|
+
}[];
|
|
609
|
+
enabled?: boolean | undefined;
|
|
610
|
+
pollIntervalMs?: number | undefined;
|
|
611
|
+
lookbackMs?: number | undefined;
|
|
612
|
+
dedupWindowMs?: number | undefined;
|
|
613
|
+
maxConcurrent?: number | undefined;
|
|
614
|
+
incidentRetentionMs?: number | undefined;
|
|
615
|
+
statusReactions?: {
|
|
616
|
+
investigating: string;
|
|
617
|
+
waiting: string;
|
|
618
|
+
resolved: string;
|
|
619
|
+
no_action: string;
|
|
620
|
+
blocked: string;
|
|
621
|
+
} | undefined;
|
|
622
|
+
} | undefined;
|
|
623
|
+
}>;
|
|
624
|
+
telegram: z.ZodOptional<z.ZodObject<{
|
|
625
|
+
botToken: z.ZodString;
|
|
626
|
+
allowedUsers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
627
|
+
allowedChats: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
628
|
+
pollingTimeoutSec: z.ZodDefault<z.ZodNumber>;
|
|
629
|
+
}, "strip", z.ZodTypeAny, {
|
|
630
|
+
botToken: string;
|
|
631
|
+
pollingTimeoutSec: number;
|
|
632
|
+
allowedUsers?: string[] | undefined;
|
|
633
|
+
allowedChats?: string[] | undefined;
|
|
634
|
+
}, {
|
|
635
|
+
botToken: string;
|
|
636
|
+
allowedUsers?: string[] | undefined;
|
|
637
|
+
allowedChats?: string[] | undefined;
|
|
638
|
+
pollingTimeoutSec?: number | undefined;
|
|
639
|
+
}>>;
|
|
640
|
+
runner: z.ZodObject<{
|
|
641
|
+
url: z.ZodDefault<z.ZodString>;
|
|
642
|
+
token: z.ZodString;
|
|
643
|
+
}, "strip", z.ZodTypeAny, {
|
|
644
|
+
url: string;
|
|
645
|
+
token: string;
|
|
646
|
+
}, {
|
|
647
|
+
token: string;
|
|
648
|
+
url?: string | undefined;
|
|
649
|
+
}>;
|
|
650
|
+
web: z.ZodDefault<z.ZodObject<{
|
|
651
|
+
/** The Web surface is opt-in; channels and Core API remain independent. */
|
|
652
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
653
|
+
/** Optional absolute path to the built React application. */
|
|
654
|
+
staticDirectory: z.ZodOptional<z.ZodString>;
|
|
655
|
+
}, "strip", z.ZodTypeAny, {
|
|
656
|
+
enabled: boolean;
|
|
657
|
+
staticDirectory?: string | undefined;
|
|
658
|
+
}, {
|
|
659
|
+
enabled?: boolean | undefined;
|
|
660
|
+
staticDirectory?: string | undefined;
|
|
661
|
+
}>>;
|
|
662
|
+
defaultAgent: z.ZodOptional<z.ZodString>;
|
|
663
|
+
defaultBackend: z.ZodDefault<z.ZodEnum<["cursor", "claude", "codex", "pi", "opencode"]>>;
|
|
664
|
+
backends: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
665
|
+
type: z.ZodEnum<["cursor-cli", "claude-code", "codex", "generic-spawn", "pi-sdk"]>;
|
|
666
|
+
transport: z.ZodOptional<z.ZodLiteral<"acp">>;
|
|
667
|
+
acpCommand: z.ZodOptional<z.ZodString>;
|
|
668
|
+
acpArgs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
669
|
+
model: z.ZodOptional<z.ZodString>;
|
|
670
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
671
|
+
/** true 时,若适配器未 advertise 想要的 model,本轮直接失败而非静默用适配器默认;默认 false */
|
|
672
|
+
strictModel: z.ZodOptional<z.ZodBoolean>;
|
|
673
|
+
/** Claude ACP mode 的兼容默认值,默认 bypassPermissions 避免 dontAsk 拒绝 Bash */
|
|
674
|
+
claudePermissionMode: z.ZodOptional<z.ZodEnum<["acceptEdits", "auto", "bypassPermissions", "default", "dontAsk", "plan"]>>;
|
|
675
|
+
}, "strip", z.ZodTypeAny, {
|
|
676
|
+
type: "codex" | "cursor-cli" | "claude-code" | "generic-spawn" | "pi-sdk";
|
|
677
|
+
transport?: "acp" | undefined;
|
|
678
|
+
acpCommand?: string | undefined;
|
|
679
|
+
acpArgs?: string[] | undefined;
|
|
680
|
+
model?: string | undefined;
|
|
681
|
+
effort?: string | undefined;
|
|
682
|
+
strictModel?: boolean | undefined;
|
|
683
|
+
claudePermissionMode?: "acceptEdits" | "auto" | "bypassPermissions" | "default" | "dontAsk" | "plan" | undefined;
|
|
684
|
+
}, {
|
|
685
|
+
type: "codex" | "cursor-cli" | "claude-code" | "generic-spawn" | "pi-sdk";
|
|
686
|
+
transport?: "acp" | undefined;
|
|
687
|
+
acpCommand?: string | undefined;
|
|
688
|
+
acpArgs?: string[] | undefined;
|
|
689
|
+
model?: string | undefined;
|
|
690
|
+
effort?: string | undefined;
|
|
691
|
+
strictModel?: boolean | undefined;
|
|
692
|
+
claudePermissionMode?: "acceptEdits" | "auto" | "bypassPermissions" | "default" | "dontAsk" | "plan" | undefined;
|
|
693
|
+
}>>, Record<string, {
|
|
694
|
+
type: "codex" | "cursor-cli" | "claude-code" | "generic-spawn" | "pi-sdk";
|
|
695
|
+
transport?: "acp" | undefined;
|
|
696
|
+
acpCommand?: string | undefined;
|
|
697
|
+
acpArgs?: string[] | undefined;
|
|
698
|
+
model?: string | undefined;
|
|
699
|
+
effort?: string | undefined;
|
|
700
|
+
strictModel?: boolean | undefined;
|
|
701
|
+
claudePermissionMode?: "acceptEdits" | "auto" | "bypassPermissions" | "default" | "dontAsk" | "plan" | undefined;
|
|
702
|
+
}>, Record<string, {
|
|
703
|
+
type: "codex" | "cursor-cli" | "claude-code" | "generic-spawn" | "pi-sdk";
|
|
704
|
+
transport?: "acp" | undefined;
|
|
705
|
+
acpCommand?: string | undefined;
|
|
706
|
+
acpArgs?: string[] | undefined;
|
|
707
|
+
model?: string | undefined;
|
|
708
|
+
effort?: string | undefined;
|
|
709
|
+
strictModel?: boolean | undefined;
|
|
710
|
+
claudePermissionMode?: "acceptEdits" | "auto" | "bypassPermissions" | "default" | "dontAsk" | "plan" | undefined;
|
|
711
|
+
}>>;
|
|
712
|
+
access: z.ZodOptional<z.ZodObject<{
|
|
713
|
+
allowedUsers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
714
|
+
allowedChats: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
715
|
+
admins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
716
|
+
}, "strip", z.ZodTypeAny, {
|
|
717
|
+
allowedUsers?: string[] | undefined;
|
|
718
|
+
allowedChats?: string[] | undefined;
|
|
719
|
+
admins?: string[] | undefined;
|
|
720
|
+
}, {
|
|
721
|
+
allowedUsers?: string[] | undefined;
|
|
722
|
+
allowedChats?: string[] | undefined;
|
|
723
|
+
admins?: string[] | undefined;
|
|
724
|
+
}>>;
|
|
725
|
+
workspaces: z.ZodOptional<z.ZodObject<{
|
|
726
|
+
root: z.ZodOptional<z.ZodString>;
|
|
727
|
+
default: z.ZodOptional<z.ZodString>;
|
|
728
|
+
named: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
729
|
+
}, "strip", z.ZodTypeAny, {
|
|
730
|
+
default?: string | undefined;
|
|
731
|
+
root?: string | undefined;
|
|
732
|
+
named?: Record<string, string> | undefined;
|
|
733
|
+
}, {
|
|
734
|
+
default?: string | undefined;
|
|
735
|
+
root?: string | undefined;
|
|
736
|
+
named?: Record<string, string> | undefined;
|
|
737
|
+
}>>;
|
|
738
|
+
orchestration: z.ZodOptional<z.ZodObject<{
|
|
739
|
+
projectCatalog: z.ZodOptional<z.ZodObject<{
|
|
740
|
+
repositoryPath: z.ZodString;
|
|
741
|
+
baseRef: z.ZodDefault<z.ZodString>;
|
|
742
|
+
catalogPath: z.ZodDefault<z.ZodString>;
|
|
743
|
+
}, "strip", z.ZodTypeAny, {
|
|
744
|
+
repositoryPath: string;
|
|
745
|
+
baseRef: string;
|
|
746
|
+
catalogPath: string;
|
|
747
|
+
}, {
|
|
748
|
+
repositoryPath: string;
|
|
749
|
+
baseRef?: string | undefined;
|
|
750
|
+
catalogPath?: string | undefined;
|
|
751
|
+
}>>;
|
|
752
|
+
mcpServers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"transport", [z.ZodObject<{
|
|
753
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
754
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
755
|
+
transport: z.ZodLiteral<"stdio">;
|
|
756
|
+
command: z.ZodString;
|
|
757
|
+
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
758
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
759
|
+
}, "strip", z.ZodTypeAny, {
|
|
760
|
+
enabled: boolean;
|
|
761
|
+
transport: "stdio";
|
|
762
|
+
command: string;
|
|
763
|
+
args?: string[] | undefined;
|
|
764
|
+
env?: string[] | undefined;
|
|
765
|
+
revision?: string | undefined;
|
|
766
|
+
}, {
|
|
767
|
+
transport: "stdio";
|
|
768
|
+
command: string;
|
|
769
|
+
enabled?: boolean | undefined;
|
|
770
|
+
args?: string[] | undefined;
|
|
771
|
+
env?: string[] | undefined;
|
|
772
|
+
revision?: string | undefined;
|
|
773
|
+
}>, z.ZodObject<{
|
|
774
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
775
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
776
|
+
transport: z.ZodLiteral<"http">;
|
|
777
|
+
url: z.ZodString;
|
|
778
|
+
}, "strip", z.ZodTypeAny, {
|
|
779
|
+
enabled: boolean;
|
|
780
|
+
transport: "http";
|
|
781
|
+
url: string;
|
|
782
|
+
revision?: string | undefined;
|
|
783
|
+
}, {
|
|
784
|
+
transport: "http";
|
|
785
|
+
url: string;
|
|
786
|
+
enabled?: boolean | undefined;
|
|
787
|
+
revision?: string | undefined;
|
|
788
|
+
}>]>>>;
|
|
789
|
+
session: z.ZodOptional<z.ZodObject<{
|
|
790
|
+
maxQueuedTurns: z.ZodDefault<z.ZodNumber>;
|
|
791
|
+
autoRotate: z.ZodOptional<z.ZodObject<{
|
|
792
|
+
/** Default on: a chat should not resume one provider session forever. */
|
|
793
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
794
|
+
/** Start a fresh session when the last one has been idle this long; 0 disables. Default 12. */
|
|
795
|
+
idleHours: z.ZodOptional<z.ZodNumber>;
|
|
796
|
+
/** Start a fresh session once the last reported context use reaches this share of the window. Default 0.5. */
|
|
797
|
+
maxContextRatio: z.ZodOptional<z.ZodNumber>;
|
|
798
|
+
}, "strip", z.ZodTypeAny, {
|
|
799
|
+
enabled?: boolean | undefined;
|
|
800
|
+
idleHours?: number | undefined;
|
|
801
|
+
maxContextRatio?: number | undefined;
|
|
802
|
+
}, {
|
|
803
|
+
enabled?: boolean | undefined;
|
|
804
|
+
idleHours?: number | undefined;
|
|
805
|
+
maxContextRatio?: number | undefined;
|
|
806
|
+
}>>;
|
|
807
|
+
}, "strip", z.ZodTypeAny, {
|
|
808
|
+
maxQueuedTurns: number;
|
|
809
|
+
autoRotate?: {
|
|
810
|
+
enabled?: boolean | undefined;
|
|
811
|
+
idleHours?: number | undefined;
|
|
812
|
+
maxContextRatio?: number | undefined;
|
|
813
|
+
} | undefined;
|
|
814
|
+
}, {
|
|
815
|
+
maxQueuedTurns?: number | undefined;
|
|
816
|
+
autoRotate?: {
|
|
817
|
+
enabled?: boolean | undefined;
|
|
818
|
+
idleHours?: number | undefined;
|
|
819
|
+
maxContextRatio?: number | undefined;
|
|
820
|
+
} | undefined;
|
|
821
|
+
}>>;
|
|
822
|
+
}, "strip", z.ZodTypeAny, {
|
|
823
|
+
projectCatalog?: {
|
|
824
|
+
repositoryPath: string;
|
|
825
|
+
baseRef: string;
|
|
826
|
+
catalogPath: string;
|
|
827
|
+
} | undefined;
|
|
828
|
+
mcpServers?: Record<string, {
|
|
829
|
+
enabled: boolean;
|
|
830
|
+
transport: "stdio";
|
|
831
|
+
command: string;
|
|
832
|
+
args?: string[] | undefined;
|
|
833
|
+
env?: string[] | undefined;
|
|
834
|
+
revision?: string | undefined;
|
|
835
|
+
} | {
|
|
836
|
+
enabled: boolean;
|
|
837
|
+
transport: "http";
|
|
838
|
+
url: string;
|
|
839
|
+
revision?: string | undefined;
|
|
840
|
+
}> | undefined;
|
|
841
|
+
session?: {
|
|
842
|
+
maxQueuedTurns: number;
|
|
843
|
+
autoRotate?: {
|
|
844
|
+
enabled?: boolean | undefined;
|
|
845
|
+
idleHours?: number | undefined;
|
|
846
|
+
maxContextRatio?: number | undefined;
|
|
847
|
+
} | undefined;
|
|
848
|
+
} | undefined;
|
|
849
|
+
}, {
|
|
850
|
+
projectCatalog?: {
|
|
851
|
+
repositoryPath: string;
|
|
852
|
+
baseRef?: string | undefined;
|
|
853
|
+
catalogPath?: string | undefined;
|
|
854
|
+
} | undefined;
|
|
855
|
+
mcpServers?: Record<string, {
|
|
856
|
+
transport: "stdio";
|
|
857
|
+
command: string;
|
|
858
|
+
enabled?: boolean | undefined;
|
|
859
|
+
args?: string[] | undefined;
|
|
860
|
+
env?: string[] | undefined;
|
|
861
|
+
revision?: string | undefined;
|
|
862
|
+
} | {
|
|
863
|
+
transport: "http";
|
|
864
|
+
url: string;
|
|
865
|
+
enabled?: boolean | undefined;
|
|
866
|
+
revision?: string | undefined;
|
|
867
|
+
}> | undefined;
|
|
868
|
+
session?: {
|
|
869
|
+
maxQueuedTurns?: number | undefined;
|
|
870
|
+
autoRotate?: {
|
|
871
|
+
enabled?: boolean | undefined;
|
|
872
|
+
idleHours?: number | undefined;
|
|
873
|
+
maxContextRatio?: number | undefined;
|
|
874
|
+
} | undefined;
|
|
875
|
+
} | undefined;
|
|
876
|
+
}>>;
|
|
877
|
+
runnerHost: z.ZodOptional<z.ZodObject<{
|
|
878
|
+
listen: z.ZodDefault<z.ZodString>;
|
|
879
|
+
maxConcurrentRuns: z.ZodDefault<z.ZodNumber>;
|
|
880
|
+
/** auto_allow=全放行;prompt_deny=一律拒绝;prompt_feishu=在飞书里等 /approve /deny(超时拒绝) */
|
|
881
|
+
acpPermissionPolicy: z.ZodDefault<z.ZodEnum<["auto_allow", "prompt_deny", "prompt_feishu"]>>;
|
|
882
|
+
/** 一轮无结束信号的总超时(ms);长任务可运行 6 小时,和停滞检测分开 */
|
|
883
|
+
acpPromptTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
884
|
+
/** 从发 prompt 起完全无任何输出的超时(ms) */
|
|
885
|
+
acpNoOutputTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
886
|
+
/** 已有输出后无新事件的 stall 超时(ms),到点判 fatal(疑似工具卡死) */
|
|
887
|
+
acpStallTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
888
|
+
/** 主轮 stop 后续读后台子 agent 输出(drain)总开关 */
|
|
889
|
+
acpDrainBackgroundWork: z.ZodDefault<z.ZodBoolean>;
|
|
890
|
+
/** drain probe 短窗:主轮 stop 后这么久无真实后台活动则判无后台(ms) */
|
|
891
|
+
acpPostStopProbeMs: z.ZodDefault<z.ZodNumber>;
|
|
892
|
+
/** drain quiet 长窗:确认有后台后这么久无新活动视为后台结束(ms) */
|
|
893
|
+
acpPostStopQuietMs: z.ZodDefault<z.ZodNumber>;
|
|
894
|
+
/** drain 独立硬上限:后台跑这么久仍未结束则停止跟踪(ms) */
|
|
895
|
+
acpPostStopMaxMs: z.ZodDefault<z.ZodNumber>;
|
|
896
|
+
/** 长驻会话池总开关:同会话消息复用适配器进程,省每轮 2-4s 冷启动 */
|
|
897
|
+
acpSessionPool: z.ZodDefault<z.ZodBoolean>;
|
|
898
|
+
/** 池内空闲会话进程的回收时限(ms) */
|
|
899
|
+
acpSessionIdleMs: z.ZodDefault<z.ZodNumber>;
|
|
900
|
+
/** 池内最多保留多少个空闲会话进程 */
|
|
901
|
+
acpSessionPoolMax: z.ZodDefault<z.ZodNumber>;
|
|
902
|
+
}, "strip", z.ZodTypeAny, {
|
|
903
|
+
listen: string;
|
|
904
|
+
maxConcurrentRuns: number;
|
|
905
|
+
acpPermissionPolicy: "auto_allow" | "prompt_deny" | "prompt_feishu";
|
|
906
|
+
acpPromptTimeoutMs: number;
|
|
907
|
+
acpNoOutputTimeoutMs: number;
|
|
908
|
+
acpStallTimeoutMs: number;
|
|
909
|
+
acpDrainBackgroundWork: boolean;
|
|
910
|
+
acpPostStopProbeMs: number;
|
|
911
|
+
acpPostStopQuietMs: number;
|
|
912
|
+
acpPostStopMaxMs: number;
|
|
913
|
+
acpSessionPool: boolean;
|
|
914
|
+
acpSessionIdleMs: number;
|
|
915
|
+
acpSessionPoolMax: number;
|
|
916
|
+
}, {
|
|
917
|
+
listen?: string | undefined;
|
|
918
|
+
maxConcurrentRuns?: number | undefined;
|
|
919
|
+
acpPermissionPolicy?: "auto_allow" | "prompt_deny" | "prompt_feishu" | undefined;
|
|
920
|
+
acpPromptTimeoutMs?: number | undefined;
|
|
921
|
+
acpNoOutputTimeoutMs?: number | undefined;
|
|
922
|
+
acpStallTimeoutMs?: number | undefined;
|
|
923
|
+
acpDrainBackgroundWork?: boolean | undefined;
|
|
924
|
+
acpPostStopProbeMs?: number | undefined;
|
|
925
|
+
acpPostStopQuietMs?: number | undefined;
|
|
926
|
+
acpPostStopMaxMs?: number | undefined;
|
|
927
|
+
acpSessionPool?: boolean | undefined;
|
|
928
|
+
acpSessionIdleMs?: number | undefined;
|
|
929
|
+
acpSessionPoolMax?: number | undefined;
|
|
930
|
+
}>>;
|
|
931
|
+
/** Bridge 本地出站 API(供 Agent 内的 fcb 命令把文件/消息发回飞书) */
|
|
932
|
+
bridge: z.ZodOptional<z.ZodObject<{
|
|
933
|
+
apiPort: z.ZodDefault<z.ZodNumber>;
|
|
934
|
+
}, "strip", z.ZodTypeAny, {
|
|
935
|
+
apiPort: number;
|
|
936
|
+
}, {
|
|
937
|
+
apiPort?: number | undefined;
|
|
938
|
+
}>>;
|
|
939
|
+
}, "strip", z.ZodTypeAny, {
|
|
940
|
+
feishu: {
|
|
941
|
+
domain: string;
|
|
942
|
+
appId: string;
|
|
943
|
+
appSecret: string;
|
|
944
|
+
policy?: {
|
|
945
|
+
requireMention: boolean;
|
|
946
|
+
dmMode: "open" | "disabled" | "allowlist" | "pair";
|
|
947
|
+
respondToMentionAll: boolean;
|
|
948
|
+
dmAllowlist?: string[] | undefined;
|
|
949
|
+
groupAllowlist?: string[] | undefined;
|
|
950
|
+
scenarios?: {
|
|
951
|
+
name: string;
|
|
952
|
+
chats: string[];
|
|
953
|
+
requireMention?: boolean | undefined;
|
|
954
|
+
enabled?: boolean | undefined;
|
|
955
|
+
}[] | undefined;
|
|
956
|
+
} | undefined;
|
|
957
|
+
alertMonitor?: {
|
|
958
|
+
pollIntervalMs: number;
|
|
959
|
+
lookbackMs: number;
|
|
960
|
+
dedupWindowMs: number;
|
|
961
|
+
maxConcurrent: number;
|
|
962
|
+
incidentRetentionMs: number;
|
|
963
|
+
groups: {
|
|
964
|
+
chatId: string;
|
|
965
|
+
senderAppIds: string[];
|
|
966
|
+
ownerOpenId?: string | undefined;
|
|
967
|
+
approverOpenIds?: string[] | undefined;
|
|
968
|
+
runbookPath?: string | undefined;
|
|
969
|
+
}[];
|
|
970
|
+
enabled?: boolean | undefined;
|
|
971
|
+
statusReactions?: {
|
|
972
|
+
investigating: string;
|
|
973
|
+
waiting: string;
|
|
974
|
+
resolved: string;
|
|
975
|
+
no_action: string;
|
|
976
|
+
blocked: string;
|
|
977
|
+
} | undefined;
|
|
978
|
+
} | undefined;
|
|
979
|
+
};
|
|
980
|
+
runner: {
|
|
981
|
+
url: string;
|
|
982
|
+
token: string;
|
|
983
|
+
};
|
|
984
|
+
web: {
|
|
985
|
+
enabled: boolean;
|
|
986
|
+
staticDirectory?: string | undefined;
|
|
987
|
+
};
|
|
988
|
+
defaultBackend: "cursor" | "claude" | "codex" | "pi" | "opencode";
|
|
989
|
+
backends: Record<string, {
|
|
990
|
+
type: "codex" | "cursor-cli" | "claude-code" | "generic-spawn" | "pi-sdk";
|
|
991
|
+
transport?: "acp" | undefined;
|
|
992
|
+
acpCommand?: string | undefined;
|
|
993
|
+
acpArgs?: string[] | undefined;
|
|
994
|
+
model?: string | undefined;
|
|
995
|
+
effort?: string | undefined;
|
|
996
|
+
strictModel?: boolean | undefined;
|
|
997
|
+
claudePermissionMode?: "acceptEdits" | "auto" | "bypassPermissions" | "default" | "dontAsk" | "plan" | undefined;
|
|
998
|
+
}>;
|
|
999
|
+
telegram?: {
|
|
1000
|
+
botToken: string;
|
|
1001
|
+
pollingTimeoutSec: number;
|
|
1002
|
+
allowedUsers?: string[] | undefined;
|
|
1003
|
+
allowedChats?: string[] | undefined;
|
|
1004
|
+
} | undefined;
|
|
1005
|
+
defaultAgent?: string | undefined;
|
|
1006
|
+
access?: {
|
|
1007
|
+
allowedUsers?: string[] | undefined;
|
|
1008
|
+
allowedChats?: string[] | undefined;
|
|
1009
|
+
admins?: string[] | undefined;
|
|
1010
|
+
} | undefined;
|
|
1011
|
+
workspaces?: {
|
|
1012
|
+
default?: string | undefined;
|
|
1013
|
+
root?: string | undefined;
|
|
1014
|
+
named?: Record<string, string> | undefined;
|
|
1015
|
+
} | undefined;
|
|
1016
|
+
orchestration?: {
|
|
1017
|
+
projectCatalog?: {
|
|
1018
|
+
repositoryPath: string;
|
|
1019
|
+
baseRef: string;
|
|
1020
|
+
catalogPath: string;
|
|
1021
|
+
} | undefined;
|
|
1022
|
+
mcpServers?: Record<string, {
|
|
1023
|
+
enabled: boolean;
|
|
1024
|
+
transport: "stdio";
|
|
1025
|
+
command: string;
|
|
1026
|
+
args?: string[] | undefined;
|
|
1027
|
+
env?: string[] | undefined;
|
|
1028
|
+
revision?: string | undefined;
|
|
1029
|
+
} | {
|
|
1030
|
+
enabled: boolean;
|
|
1031
|
+
transport: "http";
|
|
1032
|
+
url: string;
|
|
1033
|
+
revision?: string | undefined;
|
|
1034
|
+
}> | undefined;
|
|
1035
|
+
session?: {
|
|
1036
|
+
maxQueuedTurns: number;
|
|
1037
|
+
autoRotate?: {
|
|
1038
|
+
enabled?: boolean | undefined;
|
|
1039
|
+
idleHours?: number | undefined;
|
|
1040
|
+
maxContextRatio?: number | undefined;
|
|
1041
|
+
} | undefined;
|
|
1042
|
+
} | undefined;
|
|
1043
|
+
} | undefined;
|
|
1044
|
+
runnerHost?: {
|
|
1045
|
+
listen: string;
|
|
1046
|
+
maxConcurrentRuns: number;
|
|
1047
|
+
acpPermissionPolicy: "auto_allow" | "prompt_deny" | "prompt_feishu";
|
|
1048
|
+
acpPromptTimeoutMs: number;
|
|
1049
|
+
acpNoOutputTimeoutMs: number;
|
|
1050
|
+
acpStallTimeoutMs: number;
|
|
1051
|
+
acpDrainBackgroundWork: boolean;
|
|
1052
|
+
acpPostStopProbeMs: number;
|
|
1053
|
+
acpPostStopQuietMs: number;
|
|
1054
|
+
acpPostStopMaxMs: number;
|
|
1055
|
+
acpSessionPool: boolean;
|
|
1056
|
+
acpSessionIdleMs: number;
|
|
1057
|
+
acpSessionPoolMax: number;
|
|
1058
|
+
} | undefined;
|
|
1059
|
+
bridge?: {
|
|
1060
|
+
apiPort: number;
|
|
1061
|
+
} | undefined;
|
|
1062
|
+
}, {
|
|
1063
|
+
feishu: {
|
|
1064
|
+
appId: string;
|
|
1065
|
+
appSecret: string;
|
|
1066
|
+
domain?: string | undefined;
|
|
1067
|
+
policy?: {
|
|
1068
|
+
requireMention?: boolean | undefined;
|
|
1069
|
+
dmMode?: "open" | "disabled" | "allowlist" | "pair" | undefined;
|
|
1070
|
+
dmAllowlist?: string[] | undefined;
|
|
1071
|
+
groupAllowlist?: string[] | undefined;
|
|
1072
|
+
respondToMentionAll?: boolean | undefined;
|
|
1073
|
+
scenarios?: {
|
|
1074
|
+
name: string;
|
|
1075
|
+
chats: string[];
|
|
1076
|
+
requireMention?: boolean | undefined;
|
|
1077
|
+
enabled?: boolean | undefined;
|
|
1078
|
+
}[] | undefined;
|
|
1079
|
+
} | undefined;
|
|
1080
|
+
alertMonitor?: {
|
|
1081
|
+
groups: {
|
|
1082
|
+
chatId: string;
|
|
1083
|
+
senderAppIds: string[];
|
|
1084
|
+
ownerOpenId?: string | undefined;
|
|
1085
|
+
approverOpenIds?: string[] | undefined;
|
|
1086
|
+
runbookPath?: string | undefined;
|
|
1087
|
+
}[];
|
|
1088
|
+
enabled?: boolean | undefined;
|
|
1089
|
+
pollIntervalMs?: number | undefined;
|
|
1090
|
+
lookbackMs?: number | undefined;
|
|
1091
|
+
dedupWindowMs?: number | undefined;
|
|
1092
|
+
maxConcurrent?: number | undefined;
|
|
1093
|
+
incidentRetentionMs?: number | undefined;
|
|
1094
|
+
statusReactions?: {
|
|
1095
|
+
investigating: string;
|
|
1096
|
+
waiting: string;
|
|
1097
|
+
resolved: string;
|
|
1098
|
+
no_action: string;
|
|
1099
|
+
blocked: string;
|
|
1100
|
+
} | undefined;
|
|
1101
|
+
} | undefined;
|
|
1102
|
+
};
|
|
1103
|
+
runner: {
|
|
1104
|
+
token: string;
|
|
1105
|
+
url?: string | undefined;
|
|
1106
|
+
};
|
|
1107
|
+
backends: Record<string, {
|
|
1108
|
+
type: "codex" | "cursor-cli" | "claude-code" | "generic-spawn" | "pi-sdk";
|
|
1109
|
+
transport?: "acp" | undefined;
|
|
1110
|
+
acpCommand?: string | undefined;
|
|
1111
|
+
acpArgs?: string[] | undefined;
|
|
1112
|
+
model?: string | undefined;
|
|
1113
|
+
effort?: string | undefined;
|
|
1114
|
+
strictModel?: boolean | undefined;
|
|
1115
|
+
claudePermissionMode?: "acceptEdits" | "auto" | "bypassPermissions" | "default" | "dontAsk" | "plan" | undefined;
|
|
1116
|
+
}>;
|
|
1117
|
+
telegram?: {
|
|
1118
|
+
botToken: string;
|
|
1119
|
+
allowedUsers?: string[] | undefined;
|
|
1120
|
+
allowedChats?: string[] | undefined;
|
|
1121
|
+
pollingTimeoutSec?: number | undefined;
|
|
1122
|
+
} | undefined;
|
|
1123
|
+
web?: {
|
|
1124
|
+
enabled?: boolean | undefined;
|
|
1125
|
+
staticDirectory?: string | undefined;
|
|
1126
|
+
} | undefined;
|
|
1127
|
+
defaultAgent?: string | undefined;
|
|
1128
|
+
defaultBackend?: "cursor" | "claude" | "codex" | "pi" | "opencode" | undefined;
|
|
1129
|
+
access?: {
|
|
1130
|
+
allowedUsers?: string[] | undefined;
|
|
1131
|
+
allowedChats?: string[] | undefined;
|
|
1132
|
+
admins?: string[] | undefined;
|
|
1133
|
+
} | undefined;
|
|
1134
|
+
workspaces?: {
|
|
1135
|
+
default?: string | undefined;
|
|
1136
|
+
root?: string | undefined;
|
|
1137
|
+
named?: Record<string, string> | undefined;
|
|
1138
|
+
} | undefined;
|
|
1139
|
+
orchestration?: {
|
|
1140
|
+
projectCatalog?: {
|
|
1141
|
+
repositoryPath: string;
|
|
1142
|
+
baseRef?: string | undefined;
|
|
1143
|
+
catalogPath?: string | undefined;
|
|
1144
|
+
} | undefined;
|
|
1145
|
+
mcpServers?: Record<string, {
|
|
1146
|
+
transport: "stdio";
|
|
1147
|
+
command: string;
|
|
1148
|
+
enabled?: boolean | undefined;
|
|
1149
|
+
args?: string[] | undefined;
|
|
1150
|
+
env?: string[] | undefined;
|
|
1151
|
+
revision?: string | undefined;
|
|
1152
|
+
} | {
|
|
1153
|
+
transport: "http";
|
|
1154
|
+
url: string;
|
|
1155
|
+
enabled?: boolean | undefined;
|
|
1156
|
+
revision?: string | undefined;
|
|
1157
|
+
}> | undefined;
|
|
1158
|
+
session?: {
|
|
1159
|
+
maxQueuedTurns?: number | undefined;
|
|
1160
|
+
autoRotate?: {
|
|
1161
|
+
enabled?: boolean | undefined;
|
|
1162
|
+
idleHours?: number | undefined;
|
|
1163
|
+
maxContextRatio?: number | undefined;
|
|
1164
|
+
} | undefined;
|
|
1165
|
+
} | undefined;
|
|
1166
|
+
} | undefined;
|
|
1167
|
+
runnerHost?: {
|
|
1168
|
+
listen?: string | undefined;
|
|
1169
|
+
maxConcurrentRuns?: number | undefined;
|
|
1170
|
+
acpPermissionPolicy?: "auto_allow" | "prompt_deny" | "prompt_feishu" | undefined;
|
|
1171
|
+
acpPromptTimeoutMs?: number | undefined;
|
|
1172
|
+
acpNoOutputTimeoutMs?: number | undefined;
|
|
1173
|
+
acpStallTimeoutMs?: number | undefined;
|
|
1174
|
+
acpDrainBackgroundWork?: boolean | undefined;
|
|
1175
|
+
acpPostStopProbeMs?: number | undefined;
|
|
1176
|
+
acpPostStopQuietMs?: number | undefined;
|
|
1177
|
+
acpPostStopMaxMs?: number | undefined;
|
|
1178
|
+
acpSessionPool?: boolean | undefined;
|
|
1179
|
+
acpSessionIdleMs?: number | undefined;
|
|
1180
|
+
acpSessionPoolMax?: number | undefined;
|
|
1181
|
+
} | undefined;
|
|
1182
|
+
bridge?: {
|
|
1183
|
+
apiPort?: number | undefined;
|
|
1184
|
+
} | undefined;
|
|
1185
|
+
}>;
|
|
1186
|
+
export type AppConfig = z.infer<typeof ConfigSchema>;
|
|
1187
|
+
export type SessionAutoRotateConfig = z.infer<typeof SessionAutoRotateConfigSchema>;
|
|
1188
|
+
export type FeishuPolicy = z.infer<typeof FeishuPolicySchema>;
|
|
1189
|
+
/** Web 设置页的 defaultAgent 优先;没有再回退到 defaultBackend。 */
|
|
1190
|
+
export declare function resolveDefaultAgentId(config: Pick<AppConfig, "defaultAgent" | "defaultBackend" | "backends">): string;
|
|
1191
|
+
export declare function isSupportedAgentId(id: string): id is SupportedAgentId;
|
|
1192
|
+
export declare function defaultConfig(): AppConfig;
|
|
1193
|
+
/** Resolve effective requireMention for a chat (scenarios override global). */
|
|
1194
|
+
export declare function resolveRequireMention(policy: FeishuPolicy | undefined, chatId: string): boolean;
|
|
1195
|
+
//# sourceMappingURL=config-schema.d.ts.map
|