@sakanano-moe/agenthelm 6.8.0 → 6.11.0-rc.2

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.
Files changed (90) hide show
  1. package/README.md +1 -1
  2. package/README.zh-CN.md +2 -0
  3. package/package.json +1 -1
  4. package/runtime/index.json +6 -6
  5. package/runtime/plugins/agent-pack/.codex-plugin/plugin.json +1 -1
  6. package/runtime/plugins/agent-pack/hooks/hooks.json +32 -0
  7. package/runtime/plugins/agent-pack/plugin.json +1 -1
  8. package/runtime/plugins/agent-pack/references/local-only.md +126 -0
  9. package/runtime/plugins/agent-pack/references/nudge.en.md +58 -0
  10. package/runtime/plugins/agent-pack/references/nudge.md +58 -0
  11. package/runtime/plugins/agent-pack/runtime/agent_pack_nudge.py +613 -0
  12. package/runtime/plugins/agent-pack/runtime/agenthelm.py +1271 -221
  13. package/runtime/plugins/agent-pack/runtime/agenthelm_runtime.py +114 -65
  14. package/runtime/plugins/agent-pack/runtime/i18n_agent_pack.py +78 -0
  15. package/runtime/plugins/agent-pack/runtime/local_only.py +1132 -0
  16. package/runtime/plugins/agent-pack/runtime/locale/en.json +569 -0
  17. package/runtime/plugins/agent-pack/runtime/mcp_server.py +25 -0
  18. package/runtime/plugins/agent-pack/runtime/nudge_text.py +127 -0
  19. package/runtime/plugins/agent-pack/runtime/user_settings.py +275 -0
  20. package/runtime/plugins/agent-pack/skills/agent-pack/SKILL.md +11 -1
  21. package/runtime/plugins/agents-init/.codex-plugin/plugin.json +1 -1
  22. package/runtime/plugins/agents-init/content.json +4 -4
  23. package/runtime/plugins/agents-init/plugin.json +1 -1
  24. package/runtime/plugins/agents-init/skills/agents-init/AGENT.template.md +141 -5
  25. package/runtime/plugins/agents-init/skills/agents-init/SKILL.md +41 -8
  26. package/runtime/plugins/agents-init/skills/agents-init/project.schema.json +408 -80
  27. package/runtime/plugins/agents-init/skills/agents-init/scripts/adopt.py +615 -0
  28. package/runtime/plugins/agents-init/skills/agents-init/scripts/baseline.py +221 -0
  29. package/runtime/plugins/agents-init/skills/agents-init/scripts/i18n_init.py +78 -0
  30. package/runtime/plugins/agents-init/skills/agents-init/scripts/init_project.py +748 -159
  31. package/runtime/plugins/agents-init/skills/agents-init/scripts/locale/en.json +289 -0
  32. package/runtime/plugins/agents-init/skills/agents-init/scripts/merge3.py +149 -0
  33. package/runtime/plugins/agents-init/skills/agents-init/scripts/regions.py +99 -0
  34. package/runtime/plugins/agents-init/skills/agents-init/scripts/scaffold.py +594 -90
  35. package/runtime/plugins/agents-init/skills/agents-init/skeleton.json +2 -0
  36. package/runtime/plugins/agents-init/skills/agents-init/skill.json +1 -1
  37. package/runtime/plugins/opinion-manager/.codex-plugin/plugin.json +1 -1
  38. package/runtime/plugins/opinion-manager/plugin.json +1 -1
  39. package/runtime/plugins/opinion-manager/references/inbox.en.md +48 -0
  40. package/runtime/plugins/opinion-manager/references/inbox.md +48 -0
  41. package/runtime/plugins/opinion-manager/runtime/context.py +31 -26
  42. package/runtime/plugins/opinion-manager/runtime/i18n_opinion.py +78 -0
  43. package/runtime/plugins/opinion-manager/runtime/inbox.py +398 -0
  44. package/runtime/plugins/opinion-manager/runtime/inbox_text.py +114 -0
  45. package/runtime/plugins/opinion-manager/runtime/lifecycle.py +45 -44
  46. package/runtime/plugins/opinion-manager/runtime/locale/en.json +193 -0
  47. package/runtime/plugins/opinion-manager/runtime/opinion_manager.py +55 -50
  48. package/runtime/plugins/opinion-manager/runtime/versioned.py +90 -85
  49. package/runtime/plugins/opinion-manager/skills/opinion-manager/SKILL.md +15 -2
  50. package/runtime/plugins/project-orchestrator/.codex-plugin/plugin.json +1 -1
  51. package/runtime/plugins/project-orchestrator/content.json +30 -3
  52. package/runtime/plugins/project-orchestrator/plugin.json +1 -1
  53. package/runtime/plugins/project-orchestrator/references/case-workspaces.md +9 -1
  54. package/runtime/plugins/project-orchestrator/references/case.schema.json +1 -0
  55. package/runtime/plugins/project-orchestrator/references/sop-interview.md +83 -0
  56. package/runtime/plugins/project-orchestrator/references/sop.md +156 -0
  57. package/runtime/plugins/project-orchestrator/runtime/assets.py +52 -57
  58. package/runtime/plugins/project-orchestrator/runtime/case.py +139 -80
  59. package/runtime/plugins/project-orchestrator/runtime/case_structure.py +71 -0
  60. package/runtime/plugins/project-orchestrator/runtime/case_workspace.py +47 -46
  61. package/runtime/plugins/project-orchestrator/runtime/i18n_orchestrator.py +78 -0
  62. package/runtime/plugins/project-orchestrator/runtime/locale/en.json +1450 -0
  63. package/runtime/plugins/project-orchestrator/runtime/memory.py +45 -45
  64. package/runtime/plugins/project-orchestrator/runtime/private_paths.py +119 -0
  65. package/runtime/plugins/project-orchestrator/runtime/project_base.py +37 -19
  66. package/runtime/plugins/project-orchestrator/runtime/project_cli.py +307 -195
  67. package/runtime/plugins/project-orchestrator/runtime/project_demo.py +130 -48
  68. package/runtime/plugins/project-orchestrator/runtime/project_maintain.py +328 -221
  69. package/runtime/plugins/project-orchestrator/runtime/project_menu.py +167 -89
  70. package/runtime/plugins/project-orchestrator/runtime/project_real.py +187 -105
  71. package/runtime/plugins/project-orchestrator/runtime/project_write.py +58 -55
  72. package/runtime/plugins/project-orchestrator/runtime/sop.py +1670 -0
  73. package/runtime/plugins/project-orchestrator/runtime/sop_structure.py +226 -0
  74. package/runtime/plugins/project-orchestrator/runtime/wf.py +74 -70
  75. package/runtime/plugins/project-orchestrator/skills/project-orchestrator/SKILL.md +22 -0
  76. package/runtime/plugins/project-orchestrator/sop-templates/blank/SOP.en.md +57 -0
  77. package/runtime/plugins/project-orchestrator/sop-templates/blank/SOP.md +57 -0
  78. package/runtime/plugins/project-orchestrator/sop-templates/knowledge-digest/SOP.en.md +77 -0
  79. package/runtime/plugins/project-orchestrator/sop-templates/knowledge-digest/SOP.md +77 -0
  80. package/runtime/plugins/project-orchestrator/sop-templates/knowledge-digest/templates/digest.en.md +11 -0
  81. package/runtime/plugins/project-orchestrator/sop-templates/knowledge-digest/templates/digest.md +11 -0
  82. package/runtime/plugins/project-orchestrator/sop-templates/video-to-transcript/SOP.en.md +87 -0
  83. package/runtime/plugins/project-orchestrator/sop-templates/video-to-transcript/SOP.md +87 -0
  84. package/runtime/plugins/project-orchestrator/sop-templates/weekly-review/SOP.en.md +75 -0
  85. package/runtime/plugins/project-orchestrator/sop-templates/weekly-review/SOP.md +75 -0
  86. package/runtime/plugins/project-orchestrator/sop-templates/weekly-review/templates/review.en.md +11 -0
  87. package/runtime/plugins/project-orchestrator/sop-templates/weekly-review/templates/review.md +12 -0
  88. package/runtime/plugins/project-orchestrator/templates/CASE.en.md +39 -0
  89. package/runtime/plugins/agents-init/skills/agents-init/scripts/test_init_project.py +0 -678
  90. package/runtime/plugins/agents-init/skills/agents-init/scripts/test_scaffold.py +0 -551
@@ -5,79 +5,275 @@
5
5
  "description": "由 project-orchestrator、agent-pack 与 opinion-manager 消费的可移植项目发现契约,位于 .agents/moe.sakanano.agent-pack/project.json。",
6
6
  "type": "object",
7
7
  "additionalProperties": false,
8
- "required": ["schema_version", "name", "profile", "runtime", "opinion", "capabilities", "work", "privacy"],
8
+ "required": [
9
+ "schema_version",
10
+ "name",
11
+ "profile",
12
+ "runtime",
13
+ "opinion",
14
+ "capabilities",
15
+ "work",
16
+ "privacy"
17
+ ],
9
18
  "properties": {
10
- "$schema": {"type": "string", "format": "uri-reference"},
11
- "schema_version": {"const": "1.0"},
12
- "initializer_version": {"type": "string", "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"},
13
- "name": {"type": "string", "minLength": 1},
19
+ "$schema": {
20
+ "type": "string",
21
+ "format": "uri-reference"
22
+ },
23
+ "schema_version": {
24
+ "const": "1.0"
25
+ },
26
+ "initializer_version": {
27
+ "type": "string",
28
+ "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
29
+ },
30
+ "name": {
31
+ "type": "string",
32
+ "minLength": 1
33
+ },
34
+ "language": {
35
+ "enum": [
36
+ "zh",
37
+ "en"
38
+ ],
39
+ "description": "项目文件语言:新建 Case 的小节名与默认文字、README 追加的使用说明用哪种语言写;缺省视为 zh(已有项目保持原样)。与命令行界面的语言(AGENTHELM_LANG)无关,随项目同步。"
40
+ },
14
41
  "profile": {
15
42
  "type": "object",
16
43
  "additionalProperties": true,
17
- "required": ["project_type", "vcs", "stack", "runtime", "agent_cli"],
44
+ "required": [
45
+ "project_type",
46
+ "vcs",
47
+ "stack",
48
+ "runtime",
49
+ "agent_cli"
50
+ ],
18
51
  "properties": {
19
- "project_type": {"$ref": "#/$defs/stringArray"},
20
- "vcs": {"type": "string", "minLength": 1},
21
- "stack": {"$ref": "#/$defs/stringArray"},
22
- "runtime": {"type": "string", "minLength": 1},
23
- "agent_cli": {"$ref": "#/$defs/stringArray"}
52
+ "project_type": {
53
+ "$ref": "#/$defs/stringArray"
54
+ },
55
+ "vcs": {
56
+ "type": "string",
57
+ "minLength": 1
58
+ },
59
+ "stack": {
60
+ "$ref": "#/$defs/stringArray"
61
+ },
62
+ "runtime": {
63
+ "type": "string",
64
+ "minLength": 1
65
+ },
66
+ "agent_cli": {
67
+ "$ref": "#/$defs/stringArray"
68
+ }
24
69
  }
25
70
  },
26
71
  "runtime": {
27
72
  "type": "object",
28
73
  "additionalProperties": true,
29
- "required": ["skill", "plugin", "capability_manager", "required", "commit_policy", "push_policy"],
74
+ "required": [
75
+ "skill",
76
+ "plugin",
77
+ "capability_manager",
78
+ "required",
79
+ "commit_policy",
80
+ "push_policy"
81
+ ],
30
82
  "properties": {
31
- "skill": {"const": "project-orchestrator"},
32
- "plugin": {"const": "project-orchestrator"},
33
- "capability_manager": {"const": "agent-pack"},
34
- "distribution": {"enum": ["marketplace", "bundled", "external"]},
35
- "required": {"type": "boolean"},
36
- "commit_policy": {"enum": ["explicit", "project-policy"]},
37
- "push_policy": {"enum": ["explicit", "project-policy"]},
38
- "source_repository": {"type": "string", "x-agenthelm-scope": "audit", "description": "审计记录:采用的来源仓库。运行时代码不读取,check 不比较,也不进脚手架指纹。"},
39
- "source_ref": {"type": "string", "x-agenthelm-scope": "audit", "description": "审计记录:采用的发布 tag。同上,仅作记录。"},
40
- "source_commit": {"type": "string", "x-agenthelm-scope": "audit", "description": "审计记录:采用的提交。同上,仅作记录。"},
41
- "plugin_version": {"type": "string", "x-agenthelm-scope": "audit", "description": "审计记录:采用时的 project-orchestrator 版本。同上,仅作记录。"},
42
- "capability_manager_version": {"type": "string", "x-agenthelm-scope": "audit", "description": "审计记录:采用时的 agent-pack 版本。同上,仅作记录。"}
83
+ "skill": {
84
+ "const": "project-orchestrator"
85
+ },
86
+ "plugin": {
87
+ "const": "project-orchestrator"
88
+ },
89
+ "capability_manager": {
90
+ "const": "agent-pack"
91
+ },
92
+ "distribution": {
93
+ "enum": [
94
+ "marketplace",
95
+ "bundled",
96
+ "external"
97
+ ]
98
+ },
99
+ "required": {
100
+ "type": "boolean"
101
+ },
102
+ "commit_policy": {
103
+ "enum": [
104
+ "explicit",
105
+ "project-policy"
106
+ ]
107
+ },
108
+ "push_policy": {
109
+ "enum": [
110
+ "explicit",
111
+ "project-policy"
112
+ ]
113
+ },
114
+ "source_repository": {
115
+ "type": "string",
116
+ "x-agenthelm-scope": "audit",
117
+ "description": "审计记录:采用的来源仓库。运行时代码不读取,check 不比较,也不进脚手架指纹。"
118
+ },
119
+ "source_ref": {
120
+ "type": "string",
121
+ "x-agenthelm-scope": "audit",
122
+ "description": "审计记录:采用的发布 tag。同上,仅作记录。"
123
+ },
124
+ "source_commit": {
125
+ "type": "string",
126
+ "x-agenthelm-scope": "audit",
127
+ "description": "审计记录:采用的提交。同上,仅作记录。"
128
+ },
129
+ "plugin_version": {
130
+ "type": "string",
131
+ "x-agenthelm-scope": "audit",
132
+ "description": "审计记录:采用时的 project-orchestrator 版本。同上,仅作记录。"
133
+ },
134
+ "capability_manager_version": {
135
+ "type": "string",
136
+ "x-agenthelm-scope": "audit",
137
+ "description": "审计记录:采用时的 agent-pack 版本。同上,仅作记录。"
138
+ }
43
139
  }
44
140
  },
45
141
  "opinion": {
46
142
  "type": "object",
47
143
  "additionalProperties": true,
48
- "required": ["provider", "project_overlay", "strict_mode"],
144
+ "required": [
145
+ "provider",
146
+ "project_overlay",
147
+ "strict_mode"
148
+ ],
49
149
  "properties": {
50
- "provider": {"type": ["string", "null"]},
51
- "project_overlay": {"type": ["string", "null"]},
52
- "strict_mode": {"enum": ["smart", "strict", "disabled"]},
53
- "loading_mode": {"enum": ["tiered", "full"]},
54
- "tool_version": {"type": "string", "x-agenthelm-scope": "audit", "description": "审计记录:生成该 Opinion 时的工具版本;不参与比较。"}
150
+ "provider": {
151
+ "type": [
152
+ "string",
153
+ "null"
154
+ ]
155
+ },
156
+ "project_overlay": {
157
+ "type": [
158
+ "string",
159
+ "null"
160
+ ]
161
+ },
162
+ "strict_mode": {
163
+ "enum": [
164
+ "smart",
165
+ "strict",
166
+ "disabled"
167
+ ]
168
+ },
169
+ "loading_mode": {
170
+ "enum": [
171
+ "tiered",
172
+ "full"
173
+ ]
174
+ },
175
+ "tool_version": {
176
+ "type": "string",
177
+ "x-agenthelm-scope": "audit",
178
+ "description": "审计记录:生成该 Opinion 时的工具版本;不参与比较。"
179
+ },
180
+ "nudge": {
181
+ "type": "object",
182
+ "additionalProperties": true,
183
+ "description": "项目层的提醒设置,由 agent-pack 的 nudge 读取(enabled、language、pending_threshold、stale_days、stop_prompt、keywords 等);用户配置优先于它。check 不比较此项。"
184
+ }
55
185
  }
56
186
  },
57
187
  "memory": {
58
188
  "type": "object",
59
189
  "additionalProperties": true,
60
- "required": ["provider"],
190
+ "required": [
191
+ "provider"
192
+ ],
61
193
  "properties": {
62
- "provider": {"enum": ["project-orchestrator", "project"]},
63
- "root": {"anyOf": [{"$ref": "#/$defs/relativePath"}, {"type": "null"}]},
64
- "index_command": {"type": ["string", "null"]},
65
- "check_command": {"type": ["string", "null"]},
66
- "policy": {"anyOf": [{"$ref": "#/$defs/relativePath"}, {"type": "null"}]}
194
+ "provider": {
195
+ "enum": [
196
+ "project-orchestrator",
197
+ "project"
198
+ ]
199
+ },
200
+ "root": {
201
+ "anyOf": [
202
+ {
203
+ "$ref": "#/$defs/relativePath"
204
+ },
205
+ {
206
+ "type": "null"
207
+ }
208
+ ]
209
+ },
210
+ "index_command": {
211
+ "type": [
212
+ "string",
213
+ "null"
214
+ ]
215
+ },
216
+ "check_command": {
217
+ "type": [
218
+ "string",
219
+ "null"
220
+ ]
221
+ },
222
+ "policy": {
223
+ "anyOf": [
224
+ {
225
+ "$ref": "#/$defs/relativePath"
226
+ },
227
+ {
228
+ "type": "null"
229
+ }
230
+ ]
231
+ }
232
+ }
233
+ },
234
+ "sop": {
235
+ "type": "object",
236
+ "additionalProperties": true,
237
+ "properties": {
238
+ "root": {"$ref": "#/$defs/relativePath"}
67
239
  }
68
240
  },
69
241
  "capabilities": {
70
242
  "type": "object",
71
243
  "additionalProperties": false,
72
- "required": ["plugin_roots", "plugin_dirs", "skill_roots", "mcp_sources", "destination_skill_root", "destination_mcp"],
244
+ "required": [
245
+ "plugin_roots",
246
+ "plugin_dirs",
247
+ "skill_roots",
248
+ "mcp_sources",
249
+ "destination_skill_root",
250
+ "destination_mcp"
251
+ ],
73
252
  "properties": {
74
- "plugin_roots": {"$ref": "#/$defs/pathArray"},
75
- "plugin_dirs": {"$ref": "#/$defs/pathArray"},
76
- "skill_roots": {"$ref": "#/$defs/pathArray"},
77
- "mcp_sources": {"$ref": "#/$defs/pathArray"},
78
- "native_mcp_sources": {"$ref": "#/$defs/pathArray"},
253
+ "plugin_roots": {
254
+ "$ref": "#/$defs/pathArray"
255
+ },
256
+ "plugin_dirs": {
257
+ "$ref": "#/$defs/pathArray"
258
+ },
259
+ "skill_roots": {
260
+ "$ref": "#/$defs/pathArray"
261
+ },
262
+ "mcp_sources": {
263
+ "$ref": "#/$defs/pathArray"
264
+ },
265
+ "native_mcp_sources": {
266
+ "$ref": "#/$defs/pathArray"
267
+ },
79
268
  "credential_env_file": {
80
- "anyOf": [{"$ref": "#/$defs/relativePath"}, {"type": "null"}]
269
+ "anyOf": [
270
+ {
271
+ "$ref": "#/$defs/relativePath"
272
+ },
273
+ {
274
+ "type": "null"
275
+ }
276
+ ]
81
277
  },
82
278
  "mcp_client_policy": {
83
279
  "type": "object",
@@ -85,72 +281,190 @@
85
281
  "type": "object",
86
282
  "additionalProperties": false,
87
283
  "properties": {
88
- "include": {"$ref": "#/$defs/stringArray"},
89
- "exclude": {"$ref": "#/$defs/stringArray"}
284
+ "include": {
285
+ "$ref": "#/$defs/stringArray"
286
+ },
287
+ "exclude": {
288
+ "$ref": "#/$defs/stringArray"
289
+ }
90
290
  },
91
- "not": {"required": ["include", "exclude"]}
291
+ "not": {
292
+ "required": [
293
+ "include",
294
+ "exclude"
295
+ ]
296
+ }
92
297
  }
93
298
  },
94
- "destination_skill_root": {"$ref": "#/$defs/relativePath"},
95
- "destination_mcp": {"$ref": "#/$defs/relativePath"}
299
+ "destination_skill_root": {
300
+ "$ref": "#/$defs/relativePath"
301
+ },
302
+ "destination_mcp": {
303
+ "$ref": "#/$defs/relativePath"
304
+ }
96
305
  }
97
306
  },
98
307
  "work": {
99
- "type": "object", "additionalProperties": true,
308
+ "type": "object",
309
+ "additionalProperties": true,
100
310
  "properties": {
101
- "mode": {"enum": ["case-workspace", "legacy"]},
102
- "task": {"type": ["object", "null"]},
103
- "legacy_task": {"type": ["object", "null"]},
311
+ "mode": {
312
+ "enum": [
313
+ "case-workspace",
314
+ "legacy"
315
+ ]
316
+ },
317
+ "task": {
318
+ "type": [
319
+ "object",
320
+ "null"
321
+ ]
322
+ },
323
+ "legacy_task": {
324
+ "type": [
325
+ "object",
326
+ "null"
327
+ ]
328
+ },
104
329
  "case": {
105
- "type": ["object", "null"], "additionalProperties": true,
330
+ "type": [
331
+ "object",
332
+ "null"
333
+ ],
334
+ "additionalProperties": true,
106
335
  "properties": {
107
- "root": {"$ref": "#/$defs/relativePath"},
108
- "artifact_mode": {"enum": ["case-local", "external-references"]},
109
- "command": {"type": ["array", "string"], "description": "项目自己的 Case 工具命令;声明后项目入口不绕过它写 Case。"},
336
+ "root": {
337
+ "$ref": "#/$defs/relativePath"
338
+ },
339
+ "artifact_mode": {
340
+ "enum": [
341
+ "case-local",
342
+ "external-references"
343
+ ]
344
+ },
345
+ "command": {
346
+ "type": [
347
+ "array",
348
+ "string"
349
+ ],
350
+ "description": "项目自己的 Case 工具命令;声明后项目入口不绕过它写 Case。"
351
+ },
352
+ "schema": {
353
+ "$ref": "#/$defs/relativePath",
354
+ "description": "项目自己的 Case 结构 schema 文件(相对项目根);project-orchestrator 创建与校验 Case 时读取,缺省用内置 schema。"
355
+ },
110
356
  "directory_naming": {
111
- "type": "object", "additionalProperties": true,
357
+ "type": "object",
358
+ "additionalProperties": true,
112
359
  "description": "Case 目录命名规则,check 据此检查目录名;缺省按 CASE-日期-序号-主题。fix case-naming 只给改名计划,不移动目录。",
113
360
  "properties": {
114
- "style": {"enum": ["case-id", "date-topic", "custom"]},
115
- "pattern": {"type": "string", "description": "匹配整个目录名的正则;style 为 custom 时必填。"}
361
+ "style": {
362
+ "enum": [
363
+ "case-id",
364
+ "date-topic",
365
+ "custom"
366
+ ]
367
+ },
368
+ "pattern": {
369
+ "type": "string",
370
+ "description": "匹配整个目录名的正则;style 为 custom 时必填。"
371
+ }
116
372
  }
117
373
  }
118
374
  }
119
375
  },
120
376
  "assets": {
121
- "type": ["object", "null"], "additionalProperties": true,
377
+ "type": [
378
+ "object",
379
+ "null"
380
+ ],
381
+ "additionalProperties": true,
122
382
  "properties": {
123
- "roots": {"$ref": "#/$defs/pathArray"}
383
+ "roots": {
384
+ "$ref": "#/$defs/pathArray"
385
+ }
124
386
  }
125
387
  }
126
388
  }
127
389
  },
128
390
  "entry": {
129
- "type": ["object", "null"],
391
+ "type": [
392
+ "object",
393
+ "null"
394
+ ],
130
395
  "additionalProperties": true,
131
396
  "description": "人用入口:不经过 AI Agent 打开项目菜单。缺省时仍可用 agenthelm project。",
132
397
  "properties": {
133
- "api": {"type": "integer", "minimum": 1, "description": "项目入口的接口版本;运行时不支持时启动器提示更新"},
134
- "launcher": {"type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$", "description": "根目录启动器的文件名"},
135
- "about": {"type": "string"},
136
- "guide": {"$ref": "#/$defs/relativePath"},
137
- "tools": {"$ref": "#/$defs/relativePath"},
398
+ "api": {
399
+ "type": "integer",
400
+ "minimum": 1,
401
+ "description": "项目入口的接口版本;运行时不支持时启动器提示更新"
402
+ },
403
+ "launcher": {
404
+ "type": "string",
405
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$",
406
+ "description": "根目录启动器的文件名"
407
+ },
408
+ "about": {
409
+ "type": "string"
410
+ },
411
+ "guide": {
412
+ "$ref": "#/$defs/relativePath"
413
+ },
414
+ "tools": {
415
+ "$ref": "#/$defs/relativePath"
416
+ },
138
417
  "where": {
139
418
  "type": "array",
140
- "items": {"type": "object", "required": ["label", "path"],
141
- "properties": {"label": {"type": "string"}, "path": {"type": "string"}}}
419
+ "items": {
420
+ "type": "object",
421
+ "required": [
422
+ "label",
423
+ "path"
424
+ ],
425
+ "properties": {
426
+ "label": {
427
+ "type": "string"
428
+ },
429
+ "path": {
430
+ "type": "string"
431
+ }
432
+ }
433
+ }
434
+ },
435
+ "start": {
436
+ "$ref": "#/$defs/stringArray"
142
437
  },
143
- "start": {"$ref": "#/$defs/stringArray"},
144
438
  "items": {
145
439
  "type": "object",
146
440
  "additionalProperties": true,
147
- "required": ["command"],
441
+ "required": [
442
+ "command"
443
+ ],
148
444
  "properties": {
149
- "command": {"type": "array", "minItems": 1, "items": {"type": "string", "minLength": 1}},
150
- "write": {"type": "boolean"},
445
+ "command": {
446
+ "type": "array",
447
+ "minItems": 1,
448
+ "items": {
449
+ "type": "string",
450
+ "minLength": 1
451
+ }
452
+ },
453
+ "write": {
454
+ "type": "boolean"
455
+ },
151
456
  "status_map": {
152
457
  "type": "object",
153
- "additionalProperties": {"enum": ["active", "waiting", "captured", "suspended", "done", "abandoned"]}
458
+ "additionalProperties": {
459
+ "enum": [
460
+ "active",
461
+ "waiting",
462
+ "captured",
463
+ "suspended",
464
+ "done",
465
+ "abandoned"
466
+ ]
467
+ }
154
468
  }
155
469
  }
156
470
  }
@@ -159,27 +473,41 @@
159
473
  "privacy": {
160
474
  "type": "object",
161
475
  "additionalProperties": true,
162
- "required": ["forbidden_default_reads", "generated_outputs"],
476
+ "required": [
477
+ "forbidden_default_reads",
478
+ "generated_outputs"
479
+ ],
163
480
  "properties": {
164
- "forbidden_default_reads": {"$ref": "#/$defs/pathArray"},
165
- "generated_outputs": {"$ref": "#/$defs/pathArray"}
481
+ "forbidden_default_reads": {
482
+ "$ref": "#/$defs/pathArray"
483
+ },
484
+ "generated_outputs": {
485
+ "$ref": "#/$defs/pathArray"
486
+ }
166
487
  }
167
488
  }
168
489
  },
169
490
  "$defs": {
170
491
  "stringArray": {
171
492
  "type": "array",
172
- "items": {"type": "string", "minLength": 1},
493
+ "items": {
494
+ "type": "string",
495
+ "minLength": 1
496
+ },
173
497
  "uniqueItems": true
174
498
  },
175
499
  "relativePath": {
176
500
  "type": "string",
177
501
  "minLength": 1,
178
- "not": {"pattern": "^(?:/|~|[A-Za-z]:[\\\\/])"}
502
+ "not": {
503
+ "pattern": "^(?:/|~|[A-Za-z]:[\\\\/])"
504
+ }
179
505
  },
180
506
  "pathArray": {
181
507
  "type": "array",
182
- "items": {"$ref": "#/$defs/relativePath"},
508
+ "items": {
509
+ "$ref": "#/$defs/relativePath"
510
+ },
183
511
  "uniqueItems": true
184
512
  }
185
513
  }