@tencent-ai/agent-harness 0.2.0-beta.1 → 0.2.0-beta.3
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 +44 -0
- package/README.md +1 -1
- package/cli/CHANGELOG.md +135 -0
- package/cli/dist-server/shared.cjs +455 -387
- package/cli/dist-server/types/node/acp/acp-protocol.d.ts +40 -12
- package/cli/dist-server/types/node/acp/usage-by-category-calculator.d.ts +21 -0
- package/cli/dist-server/types/node/bash-sandbox/bash-sandbox-protocol.d.ts +3 -0
- package/cli/dist-server/types/node/cli/cli-protocol.d.ts +3 -0
- package/cli/dist-server/types/node/cli/stream-json-protocol.d.ts +23 -2
- package/cli/dist-server/types/node/data-fs/index.d.ts +13 -1
- package/cli/dist-server/types/node/hooks/hook-protocol.d.ts +2 -2
- package/cli/dist-server/types/node/sensitive-content/sensitive-content-protocol.d.ts +7 -0
- package/cli/dist-server/types/node/server/boot.d.ts +7 -4
- package/{lib/components → cli/dist-server/types/node/server/formats}/acp/acp-error-model.d.ts +1 -1
- package/{lib/components → cli/dist-server/types/node/server/formats}/acp/acp-protocol.d.ts +2 -3
- package/cli/dist-server/types/node/server/formats/acp/index.d.ts +12 -0
- package/cli/dist-server/types/node/server/formats/acp/projection.d.ts +10 -0
- package/cli/dist-server/types/node/server/index.d.ts +1 -1
- package/cli/dist-server/types/node/server/sessions.d.ts +27 -2
- package/cli/dist-server/types/node/server/types.d.ts +65 -7
- package/cli/dist-server/types/node/settings/settings-protocol.d.ts +5 -0
- package/cli/dist-server/types/node/tools/tool-protocol.d.ts +128 -4
- package/cli/dist-server/types/vendor/cbc-core/node/agent/agent-protocol.d.ts +60 -2
- package/cli/dist-server/types/vendor/cbc-core/node/agent/agent-purpose-protocol.d.ts +8 -4
- package/cli/dist-server/types/vendor/cbc-core/node/agent/agent-purpose-scope.d.ts +46 -0
- package/cli/dist-server/types/vendor/cbc-core/node/agent/agent-service.d.ts +28 -3
- package/cli/dist-server/types/vendor/cbc-core/node/agent/index.d.ts +4 -0
- package/cli/dist-server/types/vendor/cbc-core/node/agent/interceptors/input-interceptors.d.ts +1 -6
- package/cli/dist-server/types/vendor/cbc-core/node/agent/model-call-failure.d.ts +9 -0
- package/cli/dist-server/types/vendor/cbc-core/node/agent/model-step-sequence.d.ts +11 -0
- package/cli/dist-server/types/vendor/cbc-core/node/agent/runner-factory.d.ts +56 -20
- package/cli/dist-server/types/vendor/cbc-core/node/agent/speaker-label.d.ts +44 -0
- package/cli/dist-server/types/vendor/cbc-core/node/agent/tool-call-loop-detector-service.d.ts +5 -4
- package/cli/dist-server/types/vendor/cbc-core/node/agent/tool-call-loop-guard-protocol.d.ts +1 -1
- package/cli/dist-server/types/vendor/cbc-core/node/agent/tool-call-loop-pattern.d.ts +16 -4
- package/cli/dist-server/types/vendor/cbc-core/node/context/compaction-lineage.d.ts +39 -0
- package/cli/dist-server/types/vendor/cbc-core/node/context/context-compact-summarizer.d.ts +2 -0
- package/cli/dist-server/types/vendor/cbc-core/node/context/context-protocol.d.ts +17 -0
- package/cli/dist-server/types/vendor/cbc-core/node/context/index.d.ts +1 -0
- package/cli/dist-server/types/vendor/cbc-core/node/context/pre-message-compact-strategy.d.ts +1 -2
- package/cli/dist-server/types/vendor/cbc-core/node/hooks/agent-trigger.d.ts +6 -22
- package/cli/dist-server/types/vendor/cbc-core/node/hooks/hook-protocol.d.ts +4 -1
- package/cli/dist-server/types/vendor/cbc-core/node/session/idle-queue-drain-service.d.ts +4 -56
- package/cli/dist-server/types/vendor/cbc-core/node/session/index.d.ts +4 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/interruption-service.d.ts +63 -9
- package/cli/dist-server/types/vendor/cbc-core/node/session/model-request-retry-phase.d.ts +16 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/model-response-interceptors.d.ts +33 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/recovery-budget.d.ts +55 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-hook-manager.d.ts +15 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-manager-host-protocol.d.ts +3 -2
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-manager.d.ts +17 -4
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-persistence-error.d.ts +43 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-protocol.d.ts +110 -9
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-run-state-machine-protocol.d.ts +15 -1
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-runtime-lifecycle.d.ts +5 -0
- package/cli/dist-server/types/vendor/cbc-core/node/session/session-store.d.ts +150 -4
- package/cli/dist-server/types/vendor/cbc-core/node/session/stream-timeout-retry-budget.d.ts +20 -1
- package/cli/dist-server/types/vendor/cbc-core/node/trace/turn-context.d.ts +28 -1
- package/cli/dist-server/types/vendor/cbc-core/node/utils/command-message-utils.d.ts +20 -0
- package/cli/dist-server/types/vendor/cbc-core/node/utils/history-utils.d.ts +27 -4
- package/cli/dist-server/types/vendor/cbc-core/node/utils/index.d.ts +1 -0
- package/cli/dist-server/types/vendor/cbc-core/node/utils/input-item-utils.d.ts +8 -0
- package/cli/dist-server/types/vendor/cbc-core/node/utils/message-utils.d.ts +12 -0
- package/cli/dist-server/types/vendor/cbc-core/node/utils/model-utils.d.ts +7 -0
- package/cli/dist-server/types/vendor/cbc-core/node/utils/queue-dispatch-utils.d.ts +24 -2
- package/cli/dist-server/types/vendor/cbc-core/node/utils/session-utils.d.ts +4 -1
- package/cli/dist-server/types/vendor/cbc-core/node/utils/string-retention-utils.d.ts +4 -0
- package/cli/dist-server/types/vendor/cbc-core/node/utils/token-utils.d.ts +3 -1
- package/cli/dist-server/types/vendor/cbc-shared/node/agent/openai-agents-types.d.ts +1 -0
- package/cli/dist-server/types/vendor/cbc-shared/node/checkpoint/checkpoint-types.d.ts +6 -0
- package/cli/dist-server/types/vendor/cbc-shared/node/hooks/hook-types.d.ts +7 -1
- package/cli/dist-server/types/vendor/cbc-shared/node/index.d.ts +2 -0
- package/cli/dist-server/types/vendor/cbc-shared/node/model/model-errors.d.ts +36 -4
- package/cli/dist-server/types/vendor/cbc-shared/node/tools/tool-names.d.ts +1 -0
- package/cli/dist-server/types/vendor/cbc-shared/node/utils/retry-backoff.d.ts +30 -0
- package/cli/dist-server/types/vendor/cbc-shared/node/utils/retry-policy.d.ts +26 -0
- package/cli/dist-server/types/workspace/agent-client-protocol/lib/common/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/agent-client-protocol/lib/common/sandbox-rule-context.d.ts +38 -0
- package/cli/dist-server/types/workspace/authentication/lib/common/account-scoped-external-link-authentication-provider.d.ts +5 -5
- package/cli/dist-server/types/workspace/authentication/lib/common/account-utils.d.ts +25 -0
- package/cli/dist-server/types/workspace/authentication/lib/common/authentication-manager.d.ts +8 -2
- package/cli/dist-server/types/workspace/authentication/lib/common/authentication-observation.d.ts +36 -0
- package/cli/dist-server/types/workspace/authentication/lib/common/authentication-protocol.d.ts +40 -2
- package/cli/dist-server/types/workspace/authentication/lib/common/external-link-authentication-provider.d.ts +21 -5
- package/cli/dist-server/types/workspace/authentication/lib/common/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/authentication/lib/common/wx-authentication-provider.d.ts +2 -2
- package/cli/dist-server/types/workspace/cbc-checkpoint/lib/node/checkpoint/checkpoint-protocol.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-checkpoint/lib/node/checkpoint/checkpoint-service.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/agent-protocol.d.ts +60 -2
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/agent-purpose-protocol.d.ts +8 -4
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/agent-purpose-scope.d.ts +46 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/agent-service.d.ts +28 -3
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/index.d.ts +4 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/interceptors/input-interceptors.d.ts +1 -6
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/model-call-failure.d.ts +9 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/model-step-sequence.d.ts +11 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/runner-factory.d.ts +56 -20
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/speaker-label.d.ts +44 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/tool-call-loop-detector-service.d.ts +5 -4
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/tool-call-loop-guard-protocol.d.ts +1 -1
- package/cli/dist-server/types/workspace/cbc-core/lib/node/agent/tool-call-loop-pattern.d.ts +16 -4
- package/cli/dist-server/types/workspace/cbc-core/lib/node/context/compaction-lineage.d.ts +39 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/context/context-compact-summarizer.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/context/context-protocol.d.ts +17 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/context/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/context/pre-message-compact-strategy.d.ts +1 -2
- package/cli/dist-server/types/workspace/cbc-core/lib/node/hooks/agent-trigger.d.ts +6 -22
- package/cli/dist-server/types/workspace/cbc-core/lib/node/hooks/hook-protocol.d.ts +4 -1
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/idle-queue-drain-service.d.ts +4 -56
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/index.d.ts +4 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/interruption-service.d.ts +63 -9
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/model-request-retry-phase.d.ts +16 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/model-response-interceptors.d.ts +33 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/recovery-budget.d.ts +55 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-hook-manager.d.ts +15 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-manager-host-protocol.d.ts +3 -2
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-manager.d.ts +17 -4
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-persistence-error.d.ts +43 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-protocol.d.ts +110 -9
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-run-state-machine-protocol.d.ts +15 -1
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-runtime-lifecycle.d.ts +5 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/session-store.d.ts +150 -4
- package/cli/dist-server/types/workspace/cbc-core/lib/node/session/stream-timeout-retry-budget.d.ts +20 -1
- package/cli/dist-server/types/workspace/cbc-core/lib/node/trace/turn-context.d.ts +28 -1
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/command-message-utils.d.ts +20 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/history-utils.d.ts +27 -4
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/index.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/input-item-utils.d.ts +8 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/message-utils.d.ts +12 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/model-utils.d.ts +7 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/queue-dispatch-utils.d.ts +24 -2
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/session-utils.d.ts +4 -1
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/string-retention-utils.d.ts +4 -0
- package/cli/dist-server/types/workspace/cbc-core/lib/node/utils/token-utils.d.ts +3 -1
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/agent/openai-agents-types.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/checkpoint/checkpoint-types.d.ts +6 -0
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/hooks/hook-types.d.ts +7 -1
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/index.d.ts +2 -0
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/model/model-errors.d.ts +36 -4
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/tools/tool-names.d.ts +1 -0
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/utils/retry-backoff.d.ts +30 -0
- package/cli/dist-server/types/workspace/cbc-shared/lib/node/utils/retry-policy.d.ts +26 -0
- package/cli/dist-server/types/workspace/cbc-workflow/lib/node/workflow/workflow-execution.d.ts +14 -1
- package/cli/dist-server/types/workspace/cbc-workflow/lib/node/workflow/workflow-manager.d.ts +7 -0
- package/cli/dist-server/types/workspace/cbc-worktree/lib/node/worktree/worktree-service.d.ts +5 -0
- package/cli/dist-server/types/workspace/cbc-worktree/lib/node/worktree/worktree-session.d.ts +3 -0
- package/cli/dist-server/types/workspace/core/lib/common/protocol.d.ts +8 -1
- package/cli/dist-server/types/workspace/product/lib/common/cloud-product-provider.d.ts +9 -0
- package/cli/dist-server/types/workspace/product/lib/common/index.d.ts +2 -0
- package/cli/dist-server/types/workspace/product/lib/common/pick-market-skill-id.d.ts +13 -0
- package/cli/dist-server/types/workspace/product/lib/common/tencent-docs-endpoint.d.ts +37 -0
- package/cli/dist-server/types/workspace/product/lib/common/tool-control-catalog.d.ts +2 -2
- package/cli/dist-server/types/workspace/product/lib/common/types/config.d.ts +12 -0
- package/cli/dist-server/types/workspace/product/lib/common/types/features.d.ts +63 -11
- package/cli/dist-server/types/workspace/product/lib/common/types/language-model.d.ts +66 -0
- package/cli/dist-server/types/workspace/product/lib/common/types/product.d.ts +22 -1
- package/cli/dist-server/types/workspace/sandbox-cli/lib/common/backup-policy.d.ts +10 -1
- package/cli/dist-server/types/workspace/sandbox-cli/lib/common/center-protocol.generated.d.ts +375 -4
- package/cli/dist-server/types/workspace/sandbox-cli/lib/common/file-policy.d.ts +5 -2
- package/cli/dist-server/types/workspace/sandbox-cli/lib/common/http-policy.d.ts +20 -0
- package/cli/dist-server/types/workspace/sandbox-cli/lib/common/rule-config.d.ts +10 -0
- package/cli/dist-server/types/workspace/sandbox-cli/lib/node/sandbox-center-client.d.ts +219 -0
- package/cli/dist-server/types/workspace/telemetry/lib/common/event/types/craft.d.ts +43 -3
- package/cli/package.json +1 -1
- package/cli/product.cloudhosted.json +4 -4
- package/cli/product.internal.json +268 -45
- package/cli/product.ioa.json +354 -161
- package/cli/product.json +338 -352
- package/cli/product.selfhosted.json +2 -2
- package/cli/vendor/shim/brokered-bin/7z +675 -0
- package/cli/vendor/shim/brokered-bin/7za +675 -0
- package/cli/vendor/shim/brokered-bin/7zz +675 -0
- package/cli/vendor/shim/brokered-bin/rar +675 -0
- package/cli/vendor/shim/brokered-bin/tar +675 -0
- package/cli/vendor/shim/brokered-bin/zip +187 -0
- package/docs/README.md +1 -0
- package/docs/in-process.md +42 -2
- package/docs/protocol.md +7 -1
- package/docs/server.md +2 -0
- package/lib/agent/v2.js +1 -1
- package/lib/application/services.d.ts +3 -1
- package/lib/application/services.js +1 -1
- package/lib/client/client.js +1 -1
- package/lib/client/mcp.d.ts +1 -1
- package/lib/client/mcp.js +1 -1
- package/lib/components/acp-mcp-transport.d.mts +84 -1
- package/lib/components/question-elicitation.d.mts +20 -1
- package/lib/components/sandbox-center.d.mts +2 -0
- package/lib/components/sandbox-center.mjs +1 -0
- package/lib/components/{acp/acp-prompt-input.d.ts → session/prompt-input.d.ts} +1 -1
- package/lib/components/session-config.d.mts +2 -0
- package/lib/components/session-config.mjs +1 -1
- package/lib/components/session-replay.d.mts +6 -7
- package/lib/components/session-replay.mjs +1 -1
- package/lib/effect-runtime/mcp-lifecycle.mjs +1 -1
- package/lib/harness/create-harness.js +1 -1
- package/lib/harness/runtime.js +1 -1
- package/lib/harness/types.d.ts +3 -0
- package/lib/integration/agent-integration.d.ts +5 -0
- package/lib/integration/executor-supervisor.js +1 -1
- package/lib/public.d.ts +1 -0
- package/lib/runtime/private-runtime-role.js +1 -1
- package/lib/runtime/sandbox-center.d.ts +21 -0
- package/lib/runtime/sandbox-center.js +1 -0
- package/lib/server/public.d.ts +1 -0
- package/lib/session/agent-backend.d.ts +5 -0
- package/lib/session/agent-backend.js +1 -1
- package/lib/session/config-defaults.d.ts +4 -0
- package/lib/session/config-defaults.js +1 -0
- package/lib/session/config-store.d.ts +1 -1
- package/lib/session/config-store.js +1 -1
- package/lib/session/local-fs.js +1 -1
- package/lib/session/replay.d.ts +2 -2
- package/lib/session/replay.js +1 -1
- package/lib/session/server-config.d.ts +11 -2
- package/lib/session/server-config.js +1 -1
- package/lib/session/server-events.d.ts +10 -8
- package/lib/session/server-events.js +1 -1
- package/lib/session/server-interactions.js +1 -1
- package/lib/session/server-mcp.js +1 -1
- package/package.json +27 -16
- package/lib/components/acp/acp-client-channel.d.ts +0 -36
- package/lib/components/acp/acp-mcp-transport.d.ts +0 -84
- package/lib/components/acp/acp-question-elicitation.d.ts +0 -20
- package/lib/session/local-options.d.ts +0 -50
- package/lib/session/local-options.js +0 -1
|
@@ -514,20 +514,12 @@ export declare enum ProductFeature {
|
|
|
514
514
|
/**
|
|
515
515
|
* 是否禁用积分入口(用户菜单「积分」项 + 设置页账户「积分」区块)
|
|
516
516
|
* 设置为 true 时,完全隐藏积分入口(不展示菜单项与账户面板积分区块)。
|
|
517
|
-
*
|
|
517
|
+
* 用于无积分体系的发行版(如私有化、云托管和 Custom 产品)。
|
|
518
518
|
* 注意与 ShowCreditsBalance 区分:ShowCreditsBalance 控制「是否展示积分数值」,
|
|
519
519
|
* 本 flag 控制「积分入口是否存在」。
|
|
520
520
|
* @default false(默认有积分入口)
|
|
521
521
|
*/
|
|
522
522
|
DisableCreditsEntry = "DisableCreditsEntry",
|
|
523
|
-
/**
|
|
524
|
-
* 是否禁用设置页「订阅和用量」入口
|
|
525
|
-
* 设置为 true 时隐藏该导航项,并禁止通过 Settings hash 直达该页面。
|
|
526
|
-
* 积分入口仍可保留;点击后回落到设置页「个人主页」。
|
|
527
|
-
* 用于海外版等保留积分体系、但不开放订阅管理页的发行版。
|
|
528
|
-
* @default false(默认显示)
|
|
529
|
-
*/
|
|
530
|
-
DisableSubscriptionUsageEntry = "DisableSubscriptionUsageEntry",
|
|
531
523
|
/**
|
|
532
524
|
* 是否禁用侧栏「邀请好友」入口
|
|
533
525
|
* 设置为 true 时隐藏入口及邀请积分弹窗。
|
|
@@ -911,6 +903,10 @@ export declare enum ProductFeature {
|
|
|
911
903
|
* 是否启用文生视频功能
|
|
912
904
|
*/
|
|
913
905
|
VideoGen = "VideoGen",
|
|
906
|
+
/**
|
|
907
|
+
* 是否启用录音文件识别(长音频转文本)功能
|
|
908
|
+
*/
|
|
909
|
+
AudioTranscribe = "AudioTranscribe",
|
|
914
910
|
/**
|
|
915
911
|
* 是否开启 Artifact(本地 HTML/Markdown → 上传 → 可分享公网链接)能力。
|
|
916
912
|
* issue #81031:ShareLink 工具更名为 Artifact 后的新规范 key;
|
|
@@ -1056,6 +1052,41 @@ export declare enum ProductFeature {
|
|
|
1056
1052
|
* @default false
|
|
1057
1053
|
*/
|
|
1058
1054
|
QuickQa = "QuickQa",
|
|
1055
|
+
/**
|
|
1056
|
+
* 首页「快速问答」入口开关。issue #124324
|
|
1057
|
+
*
|
|
1058
|
+
* 与 `QuickQa` **相互独立,不做 AND**:`QuickQa` 管能力本体(划词入口、推荐胶囊、
|
|
1059
|
+
* embed 空视图、会话内 mode 展示),本 key 只管首页那条新建链路 —— 场景 Tab
|
|
1060
|
+
* (设计创意之后的第 4 项)、`Meta/Ctrl+Shift+N`、首页输入框的 quick 模式项。
|
|
1061
|
+
*
|
|
1062
|
+
* ⚠️ **缺省值按账号算,不是固定布尔**:IOA 企业(`IOA_ENTERPRISE_IDS`)缺省开启,
|
|
1063
|
+
* 其余(个人账号 / 非 IOA 企业 / 未登录)缺省关闭。因此 **`product.json` 里故意
|
|
1064
|
+
* 不登记这个 key** —— 注入快照里一旦有 key 就走不到 `missingKeyEnabled`,写成全局
|
|
1065
|
+
* 布尔会把 IOA 判定整个压掉。远端 `v3/config` 显式下发时以远端为准。
|
|
1066
|
+
*
|
|
1067
|
+
* 实现见 `agent-ui` 的 `useHomeQuickAskEntryFeatureEnabled`。
|
|
1068
|
+
* @default IOA 为 true,其余为 false
|
|
1069
|
+
*/
|
|
1070
|
+
QuickAskEntry = "QuickAskEntry",
|
|
1071
|
+
/**
|
|
1072
|
+
* 侧栏一级入口收敛开关。issue #124324
|
|
1073
|
+
*
|
|
1074
|
+
* 启用后:宿主入口文案与图标从「更多」改为「发现」,下拉按分组补分割线;且对**没配置过
|
|
1075
|
+
* 自定义菜单**的用户,一级栏收到「新建任务 / 定时任务 / 资料库」+ 末位「发现」共 4 项,
|
|
1076
|
+
* 助理、项目、专家、运营自建菜单、其余 sidebar extension 默认下沉进「发现」。
|
|
1077
|
+
* 关闭后:一级栏与下拉维持收敛前的原样(入口不下沉、宿主入口仍叫「更多」、无分割线)。
|
|
1078
|
+
*
|
|
1079
|
+
* ⚠️ 两个粒度不同,见 `useSidebarPrimaryCollapse`:
|
|
1080
|
+
* 1. 「发现」外观与分割线**只看本 flag**,与用户有没有拖过菜单无关。
|
|
1081
|
+
* 2. **下沉**额外要求用户没配置过自定义菜单 —— 已存配置里的 id 会被
|
|
1082
|
+
* `restoreCustomMenuDialogValue` 按存档分区放回去,下沉对这些用户只能半生效,
|
|
1083
|
+
* 所以条目位置一律听用户的配置。
|
|
1084
|
+
*
|
|
1085
|
+
* 缺省值按账号算(IOA 开、其余关),因此 **`product.json` 故意不登记这个 key** —— 与
|
|
1086
|
+
* `QuickAskEntry` 同理,注入快照里一旦有 key 就走不到 `missingKeyEnabled`。
|
|
1087
|
+
* @default IOA 为 true,其余为 false
|
|
1088
|
+
*/
|
|
1089
|
+
SidebarPrimaryCollapse = "SidebarPrimaryCollapse",
|
|
1059
1090
|
/**
|
|
1060
1091
|
* 主任务新引擎的**远端灰度/紧急回滚**开关。
|
|
1061
1092
|
* - 远端缺 key → 解析为 true(不阻断);显式 false → 强制回退 MainContentCore
|
|
@@ -1128,7 +1159,7 @@ export declare enum ProductFeature {
|
|
|
1128
1159
|
*/
|
|
1129
1160
|
TencentDocsCloudSandboxBridge = "TencentDocsCloudSandboxBridge",
|
|
1130
1161
|
/**
|
|
1131
|
-
* 内置
|
|
1162
|
+
* 内置 workbuddy-pptx 插件首次 seed 时默认开启。
|
|
1132
1163
|
* 设置为 false 时跳过默认写入 enabledPlugins(kill-switch)。
|
|
1133
1164
|
* @default true
|
|
1134
1165
|
*/
|
|
@@ -1715,6 +1746,11 @@ export declare enum ProductFeature {
|
|
|
1715
1746
|
* @see Issue #96599
|
|
1716
1747
|
*/
|
|
1717
1748
|
ModelRateLimitCap = "ModelRateLimitCap",
|
|
1749
|
+
/**
|
|
1750
|
+
* 模型 Preview 试用期常驻 Banner 的结构化规则配置。
|
|
1751
|
+
* 配置位于 `productFeaturesConfig[ModelTrialBanner].banners`,缺失即关闭。
|
|
1752
|
+
*/
|
|
1753
|
+
ModelTrialBanner = "ModelTrialBanner",
|
|
1718
1754
|
/**
|
|
1719
1755
|
* Agent CLI 出站 A2A(Agent2Agent)能力总开关(issue #99451)。
|
|
1720
1756
|
*
|
|
@@ -1825,7 +1861,23 @@ export declare enum ProductFeature {
|
|
|
1825
1861
|
*
|
|
1826
1862
|
* @default true
|
|
1827
1863
|
*/
|
|
1828
|
-
TuringDeviceToken = "TuringDeviceToken"
|
|
1864
|
+
TuringDeviceToken = "TuringDeviceToken",
|
|
1865
|
+
/**
|
|
1866
|
+
* 统一资产管理总开关(#92015,对齐 feature/unified-asset-mgmt 分支)。
|
|
1867
|
+
* 打开即完整执法(拦截 / 执行 / 删除 / 付费),关闭时完全保持既有
|
|
1868
|
+
* Expert/Skill/Connector 行为。消费方为 `@genie/unified-asset` 的
|
|
1869
|
+
* `isUnifiedAssetEnabled`(CLI 侧 Skill Guard Hooks 与 server 侧门控共用)。
|
|
1870
|
+
* @default false
|
|
1871
|
+
*/
|
|
1872
|
+
UnifiedAsset = "UnifiedAsset",
|
|
1873
|
+
/**
|
|
1874
|
+
* 技能订阅门控(付费技能 pre-call 拦截)。
|
|
1875
|
+
* check 链路已 fail-close,门控默认生效(缺省开)是更安全方向。
|
|
1876
|
+
* 当前无云端开关设计,仅登记 key 预留口子——后续接灰度开关时经
|
|
1877
|
+
* productFeatures 下发(消费方 skill-subscription-gate.isEnabled)。
|
|
1878
|
+
* @default true
|
|
1879
|
+
*/
|
|
1880
|
+
SkillSubscriptionGate = "SkillSubscriptionGate"
|
|
1829
1881
|
}
|
|
1830
1882
|
/**
|
|
1831
1883
|
* 功能配置开关
|
|
@@ -32,6 +32,24 @@ export interface ModelContextWindow {
|
|
|
32
32
|
*/
|
|
33
33
|
defaultLength?: number;
|
|
34
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* 视频生成能力声明(VideoGen 使用)。
|
|
37
|
+
*
|
|
38
|
+
* 分辨率未声明时按通用缺省处理:支持 720P / 1080P,默认 1080P。
|
|
39
|
+
* 时长未声明时仅使用通用默认值,且不接受调用方指定时长。
|
|
40
|
+
*/
|
|
41
|
+
export interface ModelVideoGeneration {
|
|
42
|
+
/** 支持的分辨率档位,如 ['480P', '720P'] */
|
|
43
|
+
resolutions?: ReadonlyArray<string>;
|
|
44
|
+
/** 默认分辨率档位,如 '720P';应落在 resolutions 内 */
|
|
45
|
+
defaultResolution?: string;
|
|
46
|
+
/** 支持的最短视频时长(秒),如 4;与 maxSeconds 成对声明 */
|
|
47
|
+
minSeconds?: number;
|
|
48
|
+
/** 支持的最长视频时长(秒),如 30;与 minSeconds 成对声明 */
|
|
49
|
+
maxSeconds?: number;
|
|
50
|
+
/** 默认视频时长(秒),如 5;应落在 minSeconds 与 maxSeconds 之间 */
|
|
51
|
+
defaultSeconds?: number;
|
|
52
|
+
}
|
|
35
53
|
export interface ModelReasoning {
|
|
36
54
|
/**
|
|
37
55
|
* @deprecated 使用 {@link defaultEffort} 替代;保留仅为向后兼容旧 product config。
|
|
@@ -148,6 +166,52 @@ export interface ModelGroup {
|
|
|
148
166
|
readonly trailingActions?: readonly string[];
|
|
149
167
|
readonly order?: number;
|
|
150
168
|
}
|
|
169
|
+
/**
|
|
170
|
+
* 用户会员类型(Issue #87302),供 {@link ModelTier.requiredUserType} 引用。
|
|
171
|
+
*
|
|
172
|
+
* ⚠️ 这是 `@genie/agent-provider.UserType` 的镜像,字段必须保持一致。
|
|
173
|
+
* 不在此处直接 import `@genie/agent-provider`(product 是上层,会引入反向依赖),
|
|
174
|
+
* 与 {@link ModelPromotion} 同款处理。
|
|
175
|
+
*/
|
|
176
|
+
export type UserType = 'free' | 'standard' | 'youth' | 'advanced' | 'flagship';
|
|
177
|
+
/** 模型会员权益档位级别(Issue #87302):flagship > advanced > standard > trial。 */
|
|
178
|
+
export type ModelTierLevel = 'flagship' | 'advanced' | 'standard' | 'trial';
|
|
179
|
+
/** 档位徽章(Issue #87302),本期只下发文案,颜色由客户端按 tier 写死。 */
|
|
180
|
+
export interface ModelTierBadge {
|
|
181
|
+
readonly label: string;
|
|
182
|
+
}
|
|
183
|
+
/** 档位 hover 底部说明 + 升级 CTA(Issue #87302)。 */
|
|
184
|
+
export interface ModelTierHover {
|
|
185
|
+
readonly textZh?: string;
|
|
186
|
+
readonly textEn?: string;
|
|
187
|
+
readonly action?: {
|
|
188
|
+
readonly type: 'upgrade';
|
|
189
|
+
readonly labelZh?: string;
|
|
190
|
+
readonly labelEn?: string;
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* 模型会员权益档位展示配置(Issue #87302)。
|
|
195
|
+
*
|
|
196
|
+
* 由 product config 顶层 `modelTiers` 下发,按 `modelIds` 命中模型后附加到模型元数据的
|
|
197
|
+
* `tier` 上(多档位命中同一模型时按 `priority` 选主)。与 {@link ModelPromotion}(按时间
|
|
198
|
+
* 窗口生效的运营活动)语义不同:tier 表示「按会员等级的长期权益档位」。
|
|
199
|
+
*
|
|
200
|
+
* ⚠️ 此类型与 `@genie/agent-provider.ModelTier`、以及
|
|
201
|
+
* `packages/workbuddy-server/src/config/contract.ts` 引用的 canonical 定义互为镜像,
|
|
202
|
+
* 字段必须保持一致(同款处理见 {@link ModelPromotion})。任一处改动需同步其余各处。
|
|
203
|
+
*/
|
|
204
|
+
export interface ModelTier {
|
|
205
|
+
readonly id: string;
|
|
206
|
+
readonly tier: ModelTierLevel;
|
|
207
|
+
readonly enabled?: boolean;
|
|
208
|
+
readonly priority?: number;
|
|
209
|
+
readonly modelIds: readonly string[];
|
|
210
|
+
readonly badge?: ModelTierBadge;
|
|
211
|
+
readonly hover?: ModelTierHover;
|
|
212
|
+
readonly requiredUserType?: UserType;
|
|
213
|
+
readonly trackKey?: string;
|
|
214
|
+
}
|
|
151
215
|
/**
|
|
152
216
|
* 语言模型的定义接口,描述模型的基本属性和能力。
|
|
153
217
|
*/
|
|
@@ -206,6 +270,8 @@ export interface LanguageModel {
|
|
|
206
270
|
readonly reasoning?: ModelReasoning;
|
|
207
271
|
/** 上下文窗口预算配置(Issue #57413);maxInputTokens 仍表示物理上限。 */
|
|
208
272
|
readonly contextWindow?: ModelContextWindow;
|
|
273
|
+
/** 视频生成能力(VideoGen 使用):支持的分辨率档位与默认档位。 */
|
|
274
|
+
readonly videoGeneration?: ModelVideoGeneration;
|
|
209
275
|
/**
|
|
210
276
|
* effort 级别到上游字面量的映射表。来自模型目录,
|
|
211
277
|
* 由请求层在拼装 reasoning_effort 时按需翻译。
|
|
@@ -15,7 +15,7 @@ import { GalileoConfig } from './galileo.js';
|
|
|
15
15
|
import { Instruction } from './instruction.js';
|
|
16
16
|
import { IntegrationOverridesConfiguration } from './integrations.js';
|
|
17
17
|
import { KnowledgeBaseConfiguration } from './knowledge-base.js';
|
|
18
|
-
import { LanguageModel, ModelGroup, ModelPromotion, ModelRelatedModels } from './language-model.js';
|
|
18
|
+
import { LanguageModel, ModelGroup, ModelPromotion, ModelRelatedModels, ModelTier } from './language-model.js';
|
|
19
19
|
import { LinkConfiguration } from './links.js';
|
|
20
20
|
import { LogConfiguration } from './log.js';
|
|
21
21
|
import { LSPExtensionConfig } from './lsp.js';
|
|
@@ -290,6 +290,12 @@ export interface ProductConfiguration {
|
|
|
290
290
|
* `/v3/config` 顶层下发;前端按 `group.modelIds` 组装二级面板,不再按 id 前缀隐式筛选。
|
|
291
291
|
*/
|
|
292
292
|
modelGroups?: ModelGroup[];
|
|
293
|
+
/**
|
|
294
|
+
* 模型会员权益档位展示配置(Issue #87302)。顶层下发,按 `modelIds` 命中模型后附加
|
|
295
|
+
* 徽章 / hover 档位标签。白名单式返回(daemon config RPC)必须显式透传该字段,
|
|
296
|
+
* 否则 renderer 侧读不到、档位徽章不展示(回归见 Issue #126934)。
|
|
297
|
+
*/
|
|
298
|
+
modelTiers?: ModelTier[];
|
|
293
299
|
/**
|
|
294
300
|
* 默认关联模型配置
|
|
295
301
|
* 当模型自身没有配置 relatedModels 时,使用此默认配置作为兜底
|
|
@@ -394,6 +400,21 @@ export interface ProductConfiguration {
|
|
|
394
400
|
marketplaceVersionCheckIntervalMs?: number;
|
|
395
401
|
/** 内置插件配置,用于初始化时自动安装 */
|
|
396
402
|
builtInMarketPlugins?: BuiltInPluginConfig[];
|
|
403
|
+
/**
|
|
404
|
+
* 专享版/私有化插件变体映射(占位符渲染方案)。
|
|
405
|
+
*
|
|
406
|
+
* key 为 marketplace 内 plugin name,value 为同 marketplace 下变体目录名(与原插件
|
|
407
|
+
* source 目录同级)。**构建期**消费:`apps/workbuddy-desktop` 的
|
|
408
|
+
* `syncBundledRuntimeAssets()`(`scripts/exclusive-plugin-build-render.mjs`)在
|
|
409
|
+
* 拷贝 resources → dist 之后渲染变体内的 `${TENCENT_DOCS_DOMAIN}` 占位符为
|
|
410
|
+
* `privateHost.docHost ?? endpoint -docs 派生`(域名不可得时构建失败,不回填
|
|
411
|
+
* 默认域),再用变体内容覆盖原插件目录。运行时物化链零感知。
|
|
412
|
+
*
|
|
413
|
+
* 仅专享版/私有化打包配置写入(`build/patches/workbuddy-custom/product.json`,
|
|
414
|
+
* 私有化构建自动继承 base);旗舰版/C 端不写 → 字段 undefined → 构建期
|
|
415
|
+
* 零触发(fail-safe)。
|
|
416
|
+
*/
|
|
417
|
+
exclusivePluginVariants?: Record<string, string>;
|
|
397
418
|
/**
|
|
398
419
|
* 内置插件合并配置(通过 Unleash 远程下发)
|
|
399
420
|
* 与 product.json 和 /v3/config 的 builtInMarketPlugins 结果合并
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
export declare const FILE_BACKUP_DEFAULT_MAX_SIZE_MB = 3000;
|
|
2
2
|
export declare const FILE_BACKUP_MIN_SIZE_MB = 1000;
|
|
3
|
+
/**
|
|
4
|
+
* 备份总大小上限的最大允许值(MB)。
|
|
5
|
+
*
|
|
6
|
+
* Rust 侧(sandbox-center)使用 u32 反序列化 `fileBackupMaxSizeMB`,
|
|
7
|
+
* 超过 u32 上限(4294967295)会导致 serde 报错、整条 EnableModifyBackup
|
|
8
|
+
* 失败,进而使当轮文件备份静默关闭。1_000_000 MB ≈ 1 TB,远超实际需求
|
|
9
|
+
* 且安全落在 u32 范围内。
|
|
10
|
+
*/
|
|
11
|
+
export declare const FILE_BACKUP_MAX_SIZE_MB = 1000000;
|
|
3
12
|
export interface FileBackupConfig {
|
|
4
13
|
/** 是否启用文件备份 */
|
|
5
14
|
enabled?: boolean;
|
|
6
|
-
/** 备份总大小上限(MB
|
|
15
|
+
/** 备份总大小上限(MB),有效范围 [1000, 1000000] */
|
|
7
16
|
maxSizeMB?: number;
|
|
8
17
|
}
|
|
9
18
|
export declare const DEFAULT_MODIFY_BACKUP_EXCLUDED_DIRS: readonly ["~/.cache/", "~/.local/", "~/.npm/", "~/.pnpm-store/", "~/.cargo/", "~/.rustup/", "~/go/", "~/.gradle/", "~/.m2/", "~/.nuget/", "~/.bun/", "~/.deno/", "~/.npm-global/", "~/.pyenv/", "~/appdata/local/temp/", "~/appdata/local/npm-cache/", "~/appdata/local/pnpm/", "~/appdata/local/yarn/", "~/appdata/local/fnm_multishells/", "~/.yarn/", "~/.nvm/", "~/.fnm/", "~/appdata/local/pip/", "~/appdata/local/conda/", "~/appdata/local/uv/", "~/appdata/roaming/uv/", "~/.pyenv/", "~/.conda/", "~/miniconda3/", "~/miniforge3/", "~/appdata/local/go-build/", "~/appdata/roaming/go/", "~/.sdkman/", "~/.dotnet/", "~/appdata/local/nuget/", "~/.docker/", "~/.asdf/", "~/appdata/roaming/npm/", "~/appdata/local/microsoft/windowsapps/", "~/appdata/roaming/code/", "~/appdata/roaming/trae/", "~/appdata/roaming/microsoft/windows/powershell/", "~/appdata/local/microsoft/windows/powershell/", "~/appdata/roaming/microsoft/windows/recent/", "~/appdata/local/microsoft/windows/recent/", "C:\\openclaw\\openclaw\\", "~/Library/Caches/", "~/Library/Developer/Xcode/DerivedData/", "~/Library/Developer/CoreSimulator/Caches/", "~/.pub-cache/", "~/.ivy2/cache/", "~/.sbt/boot/", "~/.gem/specs/", "~/.cabal/packages/", "~/.cabal/store/", "~/.stack/pantry/", "~/appdata/local/pub/cache/", "~/appdata/local/pypa/virtualenv/", "**/node_modules/**", "**/.pnpm-store/**", "**/.venv/**", "**/.tox/**", "**/.nox/**", "**/__pycache__/**", "**/.pytest_cache/**", "**/.mypy_cache/**", "**/.ruff_cache/**", "**/.next/**", "**/.nuxt/**", "**/.svelte-kit/**", "**/.parcel-cache/**", "**/.turbo/**", "**/.vite/**", "**/.vite-temp/**", "**/.sass-cache/**", "**/.dart_tool/**", "**/.gradle/**", "**/.cxx/**", "**/.externalNativeBuild/**", "~/.codebuddy/debug/", "~/.codebuddy/statsig/", "~/.workbuddy/plugins/", "~/.workbuddy/skills-marketplace/", "~/.workbuddy/connectors/", "~/.workbuddy/connectors-marketplace/", "~/.workbuddy/binaries/", "~/appdata/local/codex/", "~/appdata/local/hermes/", "~/appdata/roaming/python/", "~/appdata/roaming/pip/", "~/appdata/roaming/npm-cache/", "~/appdata/roaming/nuget/", "~/appdata/local/pnpm-store/", "~/appdata/local/ms-playwright/", "~/appdata/local/google/chrome/", "~/appdata/local/google/chrome for testing/", "~/appdata/local/microsoft/windows/caches/", "~/appdata/local/microsoft/powershell/", "~/appdata/local/packages/", "C:\\Windows\\System32\\lxss\\", "**\\$RECYCLE.BIN\\**", "**\\.git\\**", "**\\.githooks\\**"];
|