evolcore 0.0.41-test.0 → 0.0.41-test.1
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 +49 -0
- package/dist/agents/baseagent-availability.js +1 -1
- package/dist/agents/baseagent.js +20 -43
- package/dist/agents/claude-runner.js +177 -92
- package/dist/agents/codex-runner.js +84 -28
- package/dist/agents/ecagent-runner.js +1 -1
- package/dist/agents/gemini-runner.js +1 -1
- package/dist/aun/group/fs-download.js +39 -0
- package/dist/aun/group/identity.js +36 -21
- package/dist/aun/group/operations.js +5 -0
- package/dist/aun/msg/managed-operation.js +68 -7
- package/dist/aun/msg/p2p.js +5 -0
- package/dist/aun/service-proxy.js +36 -12
- package/dist/channels/aun.js +334 -20
- package/dist/channels/daemon.js +15 -1
- package/dist/cli/aun-commands.js +4 -20
- package/dist/cli/daemon-commands.js +678 -697
- package/dist/cli/fs-command.js +64 -2
- package/dist/cli/index.js +48 -4
- package/dist/cli/managed-command-guard.js +4 -0
- package/dist/cli/model.js +40 -40
- package/dist/cli/proxy-command.js +92 -0
- package/dist/cli/role.js +85 -0
- package/dist/config/access-policy.js +7 -2
- package/dist/config/boot-log.js +38 -1
- package/dist/config/config-field-policy.js +5 -32
- package/dist/config/config-manager.js +46 -39
- package/dist/config/config-operation-service.js +5 -19
- package/dist/config/contact-book-store.js +47 -21
- package/dist/config/contact-book.js +18 -12
- package/dist/config/contact-operation-service.js +3 -4
- package/dist/config/contact-request-service.js +11 -0
- package/dist/config/daemon-services.js +11 -0
- package/dist/config/gateway-config.js +88 -594
- package/dist/config/peer-role-resolver.js +13 -11
- package/dist/config/providers-config.js +12 -7
- package/dist/config/providers-import.js +3 -21
- package/dist/config/resolved-config-op.js +3 -0
- package/dist/config/role-command-service.js +166 -0
- package/dist/config/role-request-service.js +193 -0
- package/dist/config/schema-migration.js +686 -25
- package/dist/config-store.js +79 -3
- package/dist/contracts/ecweb-instance.js +41 -0
- package/dist/contracts/ecweb-service-protocol.js +3 -1
- package/dist/core/agent-runtime.js +1 -1
- package/dist/core/auth/agent-delegation.js +2 -1
- package/dist/core/auth/auth-gateway.js +1 -1
- package/dist/core/auth/authorization-audit.js +17 -6
- package/dist/core/auth/delegation-authorization.js +3 -1
- package/dist/core/auth/operation-authorizer.js +15 -0
- package/dist/core/auth/operation-catalog.js +31 -6
- package/dist/core/command/agent-control.js +3 -7
- package/dist/core/command/agent-storage-menu.js +5 -3
- package/dist/core/command/cli-intent-parser.js +2 -1
- package/dist/core/command/command-handler.js +48 -99
- package/dist/core/command/connect-menu.js +11 -3
- package/dist/core/command/data-root-resolver.js +5 -4
- package/dist/core/command/memory-slash.js +16 -8
- package/dist/core/command/menu-catalog.js +5 -6
- package/dist/core/command/menu-handler.js +49 -62
- package/dist/core/command/role-menu.js +147 -30
- package/dist/core/command/slash-handler.js +123 -254
- package/dist/core/daemon-control.js +8 -14
- package/dist/core/evolagent-registry.js +4 -4
- package/dist/core/evolagent.js +2 -2
- package/dist/core/inference/text-inference.js +31 -40
- package/dist/core/ipc-registration.js +6 -2
- package/dist/core/memory/consolidation-context.js +51 -5
- package/dist/core/memory/consolidation-ops-records.js +1 -1
- package/dist/core/memory/consolidation-trigger.js +189 -189
- package/dist/core/memory/consolidation.js +316 -29
- package/dist/core/memory/forget-log.js +96 -0
- package/dist/core/memory/index-manager.js +27 -5
- package/dist/core/memory/memory-admin.js +45 -5
- package/dist/core/memory/memory-writer.js +163 -18
- package/dist/core/memory/relation-idle-monitor.js +119 -58
- package/dist/core/memory/relation-sweep.js +44 -39
- package/dist/core/message/aun-ipc-sender.js +8 -2
- package/dist/core/message/im-renderer.js +7 -4
- package/dist/core/message/message-admission.js +89 -4
- package/dist/core/message/message-bridge.js +31 -18
- package/dist/core/message/response-engine.js +77 -8
- package/dist/core/model/catalog-service.js +4 -2
- package/dist/core/model/config-scope.js +24 -64
- package/dist/core/model/field-scope.js +1 -1
- package/dist/core/model/model-catalog.js +30 -41
- package/dist/core/model/model-diagnostics.js +4 -3
- package/dist/core/model/model-fallback.js +10 -7
- package/dist/core/model/model-permission.js +3 -2
- package/dist/core/ownership/owner-resolver.js +23 -21
- package/dist/core/permission/ec-command-parser.js +30 -2
- package/dist/core/permission/sandbox-runtime.js +18 -1
- package/dist/core/permission/tool-policy.js +14 -3
- package/dist/core/relation/peer-identity.js +64 -1
- package/dist/core/role/runtime-policy.js +72 -13
- package/dist/core/session/session-capsule.js +1 -1
- package/dist/core/session/session-idle-monitor.js +1 -1
- package/dist/core/session/session-manager.js +20 -0
- package/dist/core/session/session-renew.js +3 -3
- package/dist/core/skill/index-generator.js +15 -5
- package/dist/core/system-session/memory.js +6 -1
- package/dist/core/thread/thread-service.js +19 -6
- package/dist/directory/owner-directory-admission.js +95 -0
- package/dist/directory/owner-directory-authorization.js +309 -0
- package/dist/directory/owner-directory-cache.js +635 -0
- package/dist/eck/kit-renderer.js +2 -2
- package/dist/ecweb/basic-settings-service.js +33 -40
- package/dist/ecweb/message-context-service.js +110 -0
- package/dist/index.js +76 -14
- package/dist/ipc.js +170 -12
- package/dist/paths.js +4 -0
- package/dist/proxy/command.js +122 -0
- package/dist/proxy/ipc-service.js +68 -0
- package/dist/proxy/manager.js +485 -0
- package/dist/proxy/service-supervisor.js +603 -0
- package/dist/response-system/engines/v1/proactive-flow.js +16 -6
- package/dist/utils/cross-platform.js +14 -0
- package/dist/utils/ecweb-supervisor.js +258 -83
- package/dist/utils/error-utils.js +2 -2
- package/dist/utils/logger.js +24 -5
- package/dist/utils/package-version-info.js +4 -2
- package/kits/docs/channels/aun.md +9 -0
- package/kits/docs/evolcore/agent.md +1 -1
- package/kits/docs/evolcore/config.md +17 -6
- package/kits/docs/evolcore/contact.md +3 -0
- package/kits/docs/evolcore/fs.md +11 -0
- package/kits/docs/evolcore/memory-architecture.md +2 -2
- package/kits/docs/evolcore/memory-consolidation.md +32 -8
- package/kits/docs/evolcore/memory.md +1 -1
- package/kits/docs/evolcore/menu-protocol.md +4 -0
- package/kits/docs/evolcore/model.md +23 -20
- package/kits/docs/evolcore/msg.md +4 -7
- package/kits/migrations/migrate-contact-book-v2.mjs +30 -11
- package/kits/schemas/_meta.json +37 -4
- package/kits/schemas/agent-config.schema.13.json +8 -3
- package/kits/schemas/agent-config.schema.16.json +891 -0
- package/kits/schemas/daemon.schema.9.json +366 -0
- package/kits/schemas/defaults.schema.5.json +406 -127
- package/kits/schemas/relation-config.schema.11.json +260 -0
- package/kits/schemas/role-config.schema.1.json +7 -7
- package/kits/skills/.switches.json +3 -7
- package/kits/skills/ec-service-proxy/SKILL.md +118 -0
- package/kits/skills/ec-trigger/SKILL.md +13 -5
- package/kits/skills/personal-assistant/SKILL.md +176 -0
- package/kits/skills/personal-assistant/references/01-workspace-spec.md +333 -0
- package/kits/skills/personal-assistant/references/02-bootstrap.md +205 -0
- package/kits/skills/personal-assistant/references/03-data-flow-and-gaps.md +177 -0
- package/kits/skills/personal-assistant/references/04-frontend-contract.md +439 -0
- package/kits/skills/personal-assistant/references/05-directory-reference.md +292 -0
- package/kits/skills/personal-assistant/references/06-render-config.md +350 -0
- package/kits/skills/personal-assistant/schema/workspace.schema.json +85 -0
- package/kits/skills/personal-assistant/schema/workspace.v1.json +66 -0
- package/kits/skills/personal-assistant/scripts/archive.mjs +154 -0
- package/kits/skills/personal-assistant/scripts/check.mjs +114 -0
- package/kits/skills/personal-assistant/scripts/index-rebuild.mjs +252 -0
- package/kits/skills/personal-assistant/scripts/ingest.mjs +344 -0
- package/kits/skills/personal-assistant/scripts/init.mjs +270 -0
- package/kits/skills/personal-assistant/scripts/lib/apply.mjs +92 -0
- package/kits/skills/personal-assistant/scripts/lib/schema.mjs +96 -0
- package/kits/skills/personal-assistant/scripts/lib/time.mjs +28 -0
- package/kits/skills/personal-assistant/scripts/migrate.mjs +172 -0
- package/kits/skills/personal-assistant/scripts/search.mjs +172 -0
- package/kits/skills/personal-assistant/scripts/verify.mjs +196 -0
- package/kits/skills/personal-assistant/templates/INDEX.md.tpl +24 -0
- package/kits/skills/personal-assistant/templates/README.md.tpl +108 -0
- package/kits/skills/personal-assistant/triggers/ingest-daily.json +23 -0
- package/kits/skills/personal-assistant/triggers/memory-consolidate.json +23 -0
- package/kits/skills/personal-assistant/triggers/report-daily.json +23 -0
- package/kits/skills/personal-assistant/triggers/report-weekly.json +23 -0
- package/kits/templates/memory-consolidation/forget.md +19 -6
- package/kits/templates/memory-consolidation/notes.md +1 -1
- package/kits/templates/memory-consolidation/profile.md +2 -2
- package/kits/templates/memory-consolidation/promote.md +20 -3
- package/kits/templates/roles/member.json +8 -1
- package/kits/templates/system-fragments/baseagent.md +2 -2
- package/kits/templates/system-fragments/memory.md +4 -4
- package/package.json +6 -2
|
@@ -2,122 +2,33 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
3
|
"$id": "defaults.schema.5.json",
|
|
4
4
|
"title": "DefaultsConfig v5 (agents/defaults.json)",
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "全局默认配置。作为覆盖链最低层,提供 active_baseagent、各 Base Agent 的模型/服务商/推理强度/降级链及 runner 默认参数,以及按用途的 Services 默认;Agent 可逐字段覆盖。Provider 凭证只存放在 providers.json。",
|
|
6
6
|
"x-logical-name": "defaults",
|
|
7
7
|
"x-scope": "defaults",
|
|
8
8
|
"type": "object",
|
|
9
9
|
"additionalProperties": false,
|
|
10
10
|
"properties": {
|
|
11
|
-
"$schema_version": {
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"x-merge": "
|
|
16
|
-
"properties": {
|
|
17
|
-
"default": { "type": "string", "description": "全局默认模型" },
|
|
18
|
-
"allowed": {
|
|
19
|
-
"type": "array",
|
|
20
|
-
"items": { "type": "string" },
|
|
21
|
-
"description": "全局模型白名单"
|
|
22
|
-
}
|
|
23
|
-
}
|
|
11
|
+
"$schema_version": {
|
|
12
|
+
"type": "number",
|
|
13
|
+
"const": 5,
|
|
14
|
+
"default": 5,
|
|
15
|
+
"x-merge": "scalar"
|
|
24
16
|
},
|
|
25
17
|
"active_baseagent": {
|
|
26
18
|
"type": "string",
|
|
27
19
|
"description": "当前活跃的 base agent(claude/codex/gemini/ecagent)。",
|
|
28
20
|
"x-merge": "scalar"
|
|
29
21
|
},
|
|
30
|
-
"baseagents": {
|
|
31
|
-
"type": "object",
|
|
32
|
-
"description": "各 base agent 配置(model/effort/apiKey/baseUrl 等),以及仅 defaults 可定义的备用模型链。codex.enableRequestUserInput 为布尔值,默认 true,仅控制 Default 模式阻塞式提问;异步问题自动接入卡片。",
|
|
33
|
-
"x-merge": "dict",
|
|
34
|
-
"additionalProperties": {
|
|
35
|
-
"type": "object",
|
|
36
|
-
"additionalProperties": true,
|
|
37
|
-
"properties": {
|
|
38
|
-
"provider": { "type": "string", "minLength": 1, "pattern": "^[A-Za-z0-9_-]+$" },
|
|
39
|
-
"providerServiceType": { "type": "string", "minLength": 1, "pattern": "^[A-Za-z0-9_-]+$" },
|
|
40
|
-
"fallbackModels": {
|
|
41
|
-
"not": {},
|
|
42
|
-
"description": "已废除;请改用 fallback。"
|
|
43
|
-
},
|
|
44
|
-
"headers": {
|
|
45
|
-
"type": "object",
|
|
46
|
-
"propertyNames": { "pattern": "^[!#$%&'*+.^_`|~0-9A-Za-z-]+$" },
|
|
47
|
-
"additionalProperties": { "type": "string", "pattern": "^[^\\u0000\\r\\n]*$" }
|
|
48
|
-
},
|
|
49
|
-
"queryParams": {
|
|
50
|
-
"type": "object",
|
|
51
|
-
"propertyNames": { "minLength": 1 },
|
|
52
|
-
"additionalProperties": { "type": "string" }
|
|
53
|
-
},
|
|
54
|
-
"auxiliaryModel": {
|
|
55
|
-
"type": "string",
|
|
56
|
-
"minLength": 1,
|
|
57
|
-
"description": "Session Renew 语义连续性判断使用的 direct 辅助模型。"
|
|
58
|
-
},
|
|
59
|
-
"auxiliaryEffort": {
|
|
60
|
-
"type": "string",
|
|
61
|
-
"enum": ["low", "medium", "high", "xhigh", "max"],
|
|
62
|
-
"description": "Session Renew 辅助模型的可选推理强度。"
|
|
63
|
-
},
|
|
64
|
-
"fallback": {
|
|
65
|
-
"type": "array",
|
|
66
|
-
"maxItems": 3,
|
|
67
|
-
"description": "同 serviceType 的有序备用模型链;Provider 可与主模型不同。",
|
|
68
|
-
"items": {
|
|
69
|
-
"type": "object",
|
|
70
|
-
"additionalProperties": false,
|
|
71
|
-
"required": ["model"],
|
|
72
|
-
"properties": {
|
|
73
|
-
"provider": { "type": "string", "minLength": 1, "pattern": "^[A-Za-z0-9_-]+$" },
|
|
74
|
-
"model": { "type": "string", "minLength": 1 },
|
|
75
|
-
"effort": { "type": "string", "minLength": 1 }
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
"dependencies": {
|
|
81
|
-
"auxiliaryEffort": ["auxiliaryModel"]
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
"Services": {
|
|
86
|
-
"type": "object",
|
|
87
|
-
"description": "按用途选择 provider、模型和推理强度;服务类型名称可扩展。",
|
|
88
|
-
"x-merge": "dict",
|
|
89
|
-
"propertyNames": { "pattern": "^[A-Za-z0-9_-]+$" },
|
|
90
|
-
"additionalProperties": {
|
|
91
|
-
"type": "object",
|
|
92
|
-
"additionalProperties": false,
|
|
93
|
-
"properties": {
|
|
94
|
-
"provider": { "type": "string", "minLength": 1 },
|
|
95
|
-
"model": { "type": "string", "minLength": 1 },
|
|
96
|
-
"effort": { "type": "string", "minLength": 1 },
|
|
97
|
-
"fallback": {
|
|
98
|
-
"type": "array",
|
|
99
|
-
"maxItems": 3,
|
|
100
|
-
"items": {
|
|
101
|
-
"type": "object",
|
|
102
|
-
"additionalProperties": false,
|
|
103
|
-
"required": ["model"],
|
|
104
|
-
"properties": {
|
|
105
|
-
"provider": { "type": "string", "minLength": 1, "pattern": "^[A-Za-z0-9_-]+$" },
|
|
106
|
-
"model": { "type": "string", "minLength": 1 },
|
|
107
|
-
"effort": { "type": "string", "minLength": 1 }
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
22
|
"projects": {
|
|
115
23
|
"type": "object",
|
|
116
24
|
"description": "项目路径配置",
|
|
117
25
|
"x-merge": "dict",
|
|
118
26
|
"additionalProperties": false,
|
|
119
27
|
"properties": {
|
|
120
|
-
"defaultPath": {
|
|
28
|
+
"defaultPath": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "全局默认项目路径"
|
|
31
|
+
}
|
|
121
32
|
}
|
|
122
33
|
},
|
|
123
34
|
"aun": {
|
|
@@ -125,36 +36,23 @@
|
|
|
125
36
|
"description": "全局 AUN 配置",
|
|
126
37
|
"x-merge": "dict",
|
|
127
38
|
"properties": {
|
|
128
|
-
"keystorePath": {
|
|
129
|
-
|
|
39
|
+
"keystorePath": {
|
|
40
|
+
"type": "string"
|
|
41
|
+
},
|
|
42
|
+
"gatewayUrl": {
|
|
43
|
+
"not": {},
|
|
44
|
+
"description": "已移除;网关由 fastaun 缓存和 AID discovery 决定"
|
|
45
|
+
},
|
|
130
46
|
"defaultEncrypt": {
|
|
131
47
|
"not": {},
|
|
132
48
|
"description": "不支持在 Agent defaults 配置;请使用 daemon.json.aun.defaultEncrypt"
|
|
133
49
|
}
|
|
134
50
|
}
|
|
135
51
|
},
|
|
136
|
-
"
|
|
137
|
-
"type": "
|
|
138
|
-
"
|
|
139
|
-
"x-merge": "dict",
|
|
140
|
-
"additionalProperties": false,
|
|
141
|
-
"properties": {
|
|
142
|
-
"model": { "type": "string", "minLength": 1 },
|
|
143
|
-
"base_url": { "type": "string", "minLength": 1 },
|
|
144
|
-
"apikey": { "type": "string", "minLength": 1 },
|
|
145
|
-
"headers": {
|
|
146
|
-
"type": "object",
|
|
147
|
-
"propertyNames": { "pattern": "^[!#$%&'*+.^_`|~0-9A-Za-z-]+$" },
|
|
148
|
-
"additionalProperties": { "type": "string", "pattern": "^[^\\u0000\\r\\n]*$" }
|
|
149
|
-
},
|
|
150
|
-
"queryParams": {
|
|
151
|
-
"type": "object",
|
|
152
|
-
"propertyNames": { "minLength": 1 },
|
|
153
|
-
"additionalProperties": { "type": "string" }
|
|
154
|
-
}
|
|
155
|
-
}
|
|
52
|
+
"responseMode": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"x-merge": "scalar"
|
|
156
55
|
},
|
|
157
|
-
"responseMode": { "type": "string", "x-merge": "scalar" },
|
|
158
56
|
"responseModeParams": {
|
|
159
57
|
"type": "object",
|
|
160
58
|
"x-merge": "dict",
|
|
@@ -167,17 +65,398 @@
|
|
|
167
65
|
"x-merge": "scalar",
|
|
168
66
|
"description": "群聊 auto 注意力分类的静默等待窗口,单位为毫秒;默认 3000"
|
|
169
67
|
},
|
|
170
|
-
"config": {
|
|
68
|
+
"config": {
|
|
69
|
+
"type": "object",
|
|
70
|
+
"x-merge": "dict"
|
|
71
|
+
},
|
|
171
72
|
"session_renew": {
|
|
172
73
|
"type": "object",
|
|
173
74
|
"description": "会话超时后的续接判定策略,默认关闭",
|
|
174
75
|
"x-merge": "dict",
|
|
175
76
|
"additionalProperties": false,
|
|
176
77
|
"properties": {
|
|
177
|
-
"enabled": {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
78
|
+
"enabled": {
|
|
79
|
+
"type": "boolean",
|
|
80
|
+
"default": false,
|
|
81
|
+
"description": "是否启用超时后的会话连续性判定"
|
|
82
|
+
},
|
|
83
|
+
"after_hours": {
|
|
84
|
+
"type": "number",
|
|
85
|
+
"exclusiveMinimum": 0,
|
|
86
|
+
"default": 24,
|
|
87
|
+
"description": "距最后一条有效对话超过该小时数才触发判定"
|
|
88
|
+
},
|
|
89
|
+
"fallback_action": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"enum": [
|
|
92
|
+
"continue",
|
|
93
|
+
"new"
|
|
94
|
+
],
|
|
95
|
+
"default": "continue",
|
|
96
|
+
"description": "无法判定时的兜底动作",
|
|
97
|
+
"x-enumDescriptions": {
|
|
98
|
+
"continue": "继续沿用当前会话",
|
|
99
|
+
"new": "开启新会话"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"new_probability_threshold": {
|
|
103
|
+
"type": "number",
|
|
104
|
+
"minimum": 0,
|
|
105
|
+
"maximum": 1,
|
|
106
|
+
"default": 0.85,
|
|
107
|
+
"description": "noul 达到该概率后开启新会话"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"baseagents": {
|
|
112
|
+
"type": "object",
|
|
113
|
+
"x-merge": "dict",
|
|
114
|
+
"description": "按 base agent 配置模型选择(模型 / 服务商 / 推理强度 / 降级链)与运行参数;连接地址与密钥在 providers.json。",
|
|
115
|
+
"propertyNames": {
|
|
116
|
+
"enum": [
|
|
117
|
+
"claude",
|
|
118
|
+
"codex",
|
|
119
|
+
"gemini",
|
|
120
|
+
"ecagent"
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
"additionalProperties": false,
|
|
124
|
+
"properties": {
|
|
125
|
+
"claude": {
|
|
126
|
+
"type": "object",
|
|
127
|
+
"additionalProperties": false,
|
|
128
|
+
"properties": {
|
|
129
|
+
"model": {
|
|
130
|
+
"type": "string",
|
|
131
|
+
"minLength": 1,
|
|
132
|
+
"description": "该 base agent 使用的模型。"
|
|
133
|
+
},
|
|
134
|
+
"provider": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"minLength": 1,
|
|
137
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
138
|
+
"description": "providers.json 中的服务商 id;缺省用 base agent 自带网关。"
|
|
139
|
+
},
|
|
140
|
+
"effort": {
|
|
141
|
+
"type": "string",
|
|
142
|
+
"enum": [
|
|
143
|
+
"low",
|
|
144
|
+
"medium",
|
|
145
|
+
"high",
|
|
146
|
+
"xhigh",
|
|
147
|
+
"max"
|
|
148
|
+
],
|
|
149
|
+
"description": "推理强度。"
|
|
150
|
+
},
|
|
151
|
+
"fallback": {
|
|
152
|
+
"type": "array",
|
|
153
|
+
"maxItems": 3,
|
|
154
|
+
"description": "同 provider 服务类型的降级链;provider 与 effort 可省略以继承主选择。",
|
|
155
|
+
"items": {
|
|
156
|
+
"type": "object",
|
|
157
|
+
"additionalProperties": false,
|
|
158
|
+
"required": [
|
|
159
|
+
"model"
|
|
160
|
+
],
|
|
161
|
+
"properties": {
|
|
162
|
+
"provider": {
|
|
163
|
+
"type": "string",
|
|
164
|
+
"minLength": 1,
|
|
165
|
+
"pattern": "^[A-Za-z0-9_-]+$"
|
|
166
|
+
},
|
|
167
|
+
"model": {
|
|
168
|
+
"type": "string",
|
|
169
|
+
"minLength": 1
|
|
170
|
+
},
|
|
171
|
+
"effort": {
|
|
172
|
+
"type": "string",
|
|
173
|
+
"enum": [
|
|
174
|
+
"low",
|
|
175
|
+
"medium",
|
|
176
|
+
"high",
|
|
177
|
+
"xhigh",
|
|
178
|
+
"max"
|
|
179
|
+
]
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"agentProgressSummaries": {
|
|
185
|
+
"type": "boolean",
|
|
186
|
+
"description": "打开 SDK 进度摘要(默认 true)。"
|
|
187
|
+
},
|
|
188
|
+
"excludeDynamicSections": {
|
|
189
|
+
"type": "boolean",
|
|
190
|
+
"description": "系统提示词去掉动态段以稳定提示缓存(默认 false)。"
|
|
191
|
+
},
|
|
192
|
+
"useSettingSources": {
|
|
193
|
+
"type": "boolean",
|
|
194
|
+
"description": "读取 project/user 两级 settings(默认 true;fullaccess 强制不读)。"
|
|
195
|
+
},
|
|
196
|
+
"pathToClaudeCodeExecutable": {
|
|
197
|
+
"type": "string",
|
|
198
|
+
"minLength": 1,
|
|
199
|
+
"description": "自定义 Claude Code 可执行文件路径。"
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"codex": {
|
|
204
|
+
"type": "object",
|
|
205
|
+
"additionalProperties": false,
|
|
206
|
+
"properties": {
|
|
207
|
+
"model": {
|
|
208
|
+
"type": "string",
|
|
209
|
+
"minLength": 1,
|
|
210
|
+
"description": "该 base agent 使用的模型。"
|
|
211
|
+
},
|
|
212
|
+
"provider": {
|
|
213
|
+
"type": "string",
|
|
214
|
+
"minLength": 1,
|
|
215
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
216
|
+
"description": "providers.json 中的服务商 id;缺省用 base agent 自带网关。"
|
|
217
|
+
},
|
|
218
|
+
"effort": {
|
|
219
|
+
"type": "string",
|
|
220
|
+
"enum": [
|
|
221
|
+
"low",
|
|
222
|
+
"medium",
|
|
223
|
+
"high",
|
|
224
|
+
"xhigh",
|
|
225
|
+
"max"
|
|
226
|
+
],
|
|
227
|
+
"description": "推理强度。"
|
|
228
|
+
},
|
|
229
|
+
"fallback": {
|
|
230
|
+
"type": "array",
|
|
231
|
+
"maxItems": 3,
|
|
232
|
+
"description": "同 provider 服务类型的降级链;provider 与 effort 可省略以继承主选择。",
|
|
233
|
+
"items": {
|
|
234
|
+
"type": "object",
|
|
235
|
+
"additionalProperties": false,
|
|
236
|
+
"required": [
|
|
237
|
+
"model"
|
|
238
|
+
],
|
|
239
|
+
"properties": {
|
|
240
|
+
"provider": {
|
|
241
|
+
"type": "string",
|
|
242
|
+
"minLength": 1,
|
|
243
|
+
"pattern": "^[A-Za-z0-9_-]+$"
|
|
244
|
+
},
|
|
245
|
+
"model": {
|
|
246
|
+
"type": "string",
|
|
247
|
+
"minLength": 1
|
|
248
|
+
},
|
|
249
|
+
"effort": {
|
|
250
|
+
"type": "string",
|
|
251
|
+
"enum": [
|
|
252
|
+
"low",
|
|
253
|
+
"medium",
|
|
254
|
+
"high",
|
|
255
|
+
"xhigh",
|
|
256
|
+
"max"
|
|
257
|
+
]
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
"enableRequestUserInput": {
|
|
263
|
+
"type": "boolean",
|
|
264
|
+
"description": "Default 模式允许阻塞式 request_user_input(默认 true);不影响异步问题与审批。"
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
"gemini": {
|
|
269
|
+
"type": "object",
|
|
270
|
+
"additionalProperties": false,
|
|
271
|
+
"properties": {
|
|
272
|
+
"model": {
|
|
273
|
+
"type": "string",
|
|
274
|
+
"minLength": 1,
|
|
275
|
+
"description": "该 base agent 使用的模型。"
|
|
276
|
+
},
|
|
277
|
+
"provider": {
|
|
278
|
+
"type": "string",
|
|
279
|
+
"minLength": 1,
|
|
280
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
281
|
+
"description": "providers.json 中的服务商 id;缺省用 base agent 自带网关。"
|
|
282
|
+
},
|
|
283
|
+
"effort": {
|
|
284
|
+
"type": "string",
|
|
285
|
+
"enum": [
|
|
286
|
+
"low",
|
|
287
|
+
"medium",
|
|
288
|
+
"high",
|
|
289
|
+
"xhigh",
|
|
290
|
+
"max"
|
|
291
|
+
],
|
|
292
|
+
"description": "推理强度。"
|
|
293
|
+
},
|
|
294
|
+
"fallback": {
|
|
295
|
+
"type": "array",
|
|
296
|
+
"maxItems": 3,
|
|
297
|
+
"description": "同 provider 服务类型的降级链;provider 与 effort 可省略以继承主选择。",
|
|
298
|
+
"items": {
|
|
299
|
+
"type": "object",
|
|
300
|
+
"additionalProperties": false,
|
|
301
|
+
"required": [
|
|
302
|
+
"model"
|
|
303
|
+
],
|
|
304
|
+
"properties": {
|
|
305
|
+
"provider": {
|
|
306
|
+
"type": "string",
|
|
307
|
+
"minLength": 1,
|
|
308
|
+
"pattern": "^[A-Za-z0-9_-]+$"
|
|
309
|
+
},
|
|
310
|
+
"model": {
|
|
311
|
+
"type": "string",
|
|
312
|
+
"minLength": 1
|
|
313
|
+
},
|
|
314
|
+
"effort": {
|
|
315
|
+
"type": "string",
|
|
316
|
+
"enum": [
|
|
317
|
+
"low",
|
|
318
|
+
"medium",
|
|
319
|
+
"high",
|
|
320
|
+
"xhigh",
|
|
321
|
+
"max"
|
|
322
|
+
]
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
"cliPath": {
|
|
328
|
+
"type": "string",
|
|
329
|
+
"minLength": 1,
|
|
330
|
+
"description": "Gemini CLI 可执行文件路径;缺省自动探测。"
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
"ecagent": {
|
|
335
|
+
"type": "object",
|
|
336
|
+
"additionalProperties": false,
|
|
337
|
+
"properties": {
|
|
338
|
+
"model": {
|
|
339
|
+
"type": "string",
|
|
340
|
+
"minLength": 1,
|
|
341
|
+
"description": "该 base agent 使用的模型。"
|
|
342
|
+
},
|
|
343
|
+
"provider": {
|
|
344
|
+
"type": "string",
|
|
345
|
+
"minLength": 1,
|
|
346
|
+
"pattern": "^[A-Za-z0-9_-]+$",
|
|
347
|
+
"description": "providers.json 中的服务商 id;缺省用 base agent 自带网关。"
|
|
348
|
+
},
|
|
349
|
+
"effort": {
|
|
350
|
+
"type": "string",
|
|
351
|
+
"enum": [
|
|
352
|
+
"low",
|
|
353
|
+
"medium",
|
|
354
|
+
"high",
|
|
355
|
+
"xhigh",
|
|
356
|
+
"max"
|
|
357
|
+
],
|
|
358
|
+
"description": "推理强度。"
|
|
359
|
+
},
|
|
360
|
+
"fallback": {
|
|
361
|
+
"type": "array",
|
|
362
|
+
"maxItems": 3,
|
|
363
|
+
"description": "同 provider 服务类型的降级链;provider 与 effort 可省略以继承主选择。",
|
|
364
|
+
"items": {
|
|
365
|
+
"type": "object",
|
|
366
|
+
"additionalProperties": false,
|
|
367
|
+
"required": [
|
|
368
|
+
"model"
|
|
369
|
+
],
|
|
370
|
+
"properties": {
|
|
371
|
+
"provider": {
|
|
372
|
+
"type": "string",
|
|
373
|
+
"minLength": 1,
|
|
374
|
+
"pattern": "^[A-Za-z0-9_-]+$"
|
|
375
|
+
},
|
|
376
|
+
"model": {
|
|
377
|
+
"type": "string",
|
|
378
|
+
"minLength": 1
|
|
379
|
+
},
|
|
380
|
+
"effort": {
|
|
381
|
+
"type": "string",
|
|
382
|
+
"enum": [
|
|
383
|
+
"low",
|
|
384
|
+
"medium",
|
|
385
|
+
"high",
|
|
386
|
+
"xhigh",
|
|
387
|
+
"max"
|
|
388
|
+
]
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
"timeoutMs": {
|
|
394
|
+
"type": "number",
|
|
395
|
+
"minimum": 1,
|
|
396
|
+
"description": "单次网关请求超时毫秒(默认 120000)。"
|
|
397
|
+
},
|
|
398
|
+
"maxRetries": {
|
|
399
|
+
"type": "number",
|
|
400
|
+
"minimum": 0,
|
|
401
|
+
"description": "失败重试次数(默认 2;总尝试 = 重试 + 1)。"
|
|
402
|
+
},
|
|
403
|
+
"maxRetryDelayMs": {
|
|
404
|
+
"type": "number",
|
|
405
|
+
"minimum": 0,
|
|
406
|
+
"description": "重试退避上限毫秒(默认 4000)。"
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
"Services": {
|
|
413
|
+
"type": "object",
|
|
414
|
+
"description": "按用途选择 provider、模型、推理强度和降级链;用途名可扩展(如 decision)。",
|
|
415
|
+
"x-merge": "dict",
|
|
416
|
+
"propertyNames": {
|
|
417
|
+
"pattern": "^[A-Za-z0-9_-]+$"
|
|
418
|
+
},
|
|
419
|
+
"additionalProperties": {
|
|
420
|
+
"type": "object",
|
|
421
|
+
"additionalProperties": false,
|
|
422
|
+
"properties": {
|
|
423
|
+
"provider": {
|
|
424
|
+
"type": "string",
|
|
425
|
+
"minLength": 1
|
|
426
|
+
},
|
|
427
|
+
"model": {
|
|
428
|
+
"type": "string",
|
|
429
|
+
"minLength": 1
|
|
430
|
+
},
|
|
431
|
+
"effort": {
|
|
432
|
+
"type": "string",
|
|
433
|
+
"minLength": 1
|
|
434
|
+
},
|
|
435
|
+
"fallback": {
|
|
436
|
+
"type": "array",
|
|
437
|
+
"maxItems": 3,
|
|
438
|
+
"items": {
|
|
439
|
+
"type": "object",
|
|
440
|
+
"additionalProperties": false,
|
|
441
|
+
"required": ["model"],
|
|
442
|
+
"properties": {
|
|
443
|
+
"provider": {
|
|
444
|
+
"type": "string",
|
|
445
|
+
"minLength": 1,
|
|
446
|
+
"pattern": "^[A-Za-z0-9_-]+$"
|
|
447
|
+
},
|
|
448
|
+
"model": {
|
|
449
|
+
"type": "string",
|
|
450
|
+
"minLength": 1
|
|
451
|
+
},
|
|
452
|
+
"effort": {
|
|
453
|
+
"type": "string",
|
|
454
|
+
"minLength": 1
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
}
|
|
181
460
|
}
|
|
182
461
|
}
|
|
183
462
|
}
|