evolcore 0.0.43-test.0 → 0.0.43-test.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 (172) hide show
  1. package/CHANGELOG.md +31 -2
  2. package/README.md +22 -0
  3. package/dist/agents/claude-runner.js +26 -2
  4. package/dist/agents/codex/app-server-client.js +12 -0
  5. package/dist/agents/codex-runner.js +49 -8
  6. package/dist/agents/ecagent-runner.js +26 -9
  7. package/dist/agents/gemini-runner.js +15 -12
  8. package/dist/agents/tool-time-context.js +55 -0
  9. package/dist/aun/aid/client.js +1 -1
  10. package/dist/aun/menu/client.js +1 -1
  11. package/dist/aun/model-headers.js +17 -0
  12. package/dist/aun/msg/p2p.js +3 -0
  13. package/dist/channels/aun.js +484 -43
  14. package/dist/channels/builtin-plugins.js +16 -11
  15. package/dist/channels/dingtalk.js +83 -31
  16. package/dist/channels/feishu.js +29 -13
  17. package/dist/channels/qqbot.js +32 -11
  18. package/dist/channels/wechat.js +13 -3
  19. package/dist/channels/wecom.js +67 -27
  20. package/dist/cli/agent-command.js +3 -86
  21. package/dist/cli/agent-create.js +22 -6
  22. package/dist/cli/agent.js +1 -79
  23. package/dist/cli/aun-commands.js +1 -0
  24. package/dist/cli/config.js +1 -1
  25. package/dist/cli/daemon-commands.js +47 -2
  26. package/dist/cli/data-command.js +9 -1
  27. package/dist/cli/debug-mode.js +1 -1
  28. package/dist/cli/diag.js +1 -1
  29. package/dist/cli/directory.js +77 -64
  30. package/dist/cli/getmeta-command.js +1 -1
  31. package/dist/cli/index.js +79 -22
  32. package/dist/cli/init.js +1 -23
  33. package/dist/cli/link-rules.js +1 -1
  34. package/dist/cli/managed-command-guard.js +0 -1
  35. package/dist/cli/pa-workspace-command.js +36 -2
  36. package/dist/cli/peer.js +1 -1
  37. package/dist/cli/restart-monitor.js +17 -3
  38. package/dist/cli/role.js +1 -1
  39. package/dist/cli/session-command.js +1 -1
  40. package/dist/cli/stats.js +2 -2
  41. package/dist/cli/thread-command.js +1 -1
  42. package/dist/cli/watch-msg.js +1 -1
  43. package/dist/config/access-policy.js +1 -0
  44. package/dist/config/config-field-policy.js +2 -2
  45. package/dist/config/config-manager.js +7 -0
  46. package/dist/config/role-schema.js +4 -3
  47. package/dist/config/role-service.js +3 -3
  48. package/dist/config-store.js +75 -4
  49. package/dist/core/agent-ipc-registration.js +16 -59
  50. package/dist/core/agent-runtime.js +2 -1
  51. package/dist/core/auth/authorization-audit.js +52 -14
  52. package/dist/core/auth/operation-authorizer.js +0 -11
  53. package/dist/core/auth/operation-catalog.js +0 -18
  54. package/dist/core/channel-loader.js +152 -16
  55. package/dist/core/command/agent-control.js +2 -1
  56. package/dist/core/command/cli-intent-parser.js +0 -8
  57. package/dist/core/command/command-handler.js +17 -46
  58. package/dist/core/command/connect-menu.js +7 -3
  59. package/dist/core/command/menu-catalog.js +3 -2
  60. package/dist/core/command/menu-handler.js +51 -8
  61. package/dist/core/command/menu-protocol.js +20 -0
  62. package/dist/core/command/slash-handler.js +101 -40
  63. package/dist/core/daemon-file-cache.js +3 -3
  64. package/dist/core/evolagent-registry.js +5 -4
  65. package/dist/core/evolagent.js +5 -8
  66. package/dist/core/handoff/argv-parse.js +115 -0
  67. package/dist/core/handoff/ipc-registration.js +1 -1
  68. package/dist/core/ipc-registration.js +19 -2
  69. package/dist/core/memory/consolidation.js +8 -1
  70. package/dist/core/memory/relation-sweep.js +20 -8
  71. package/dist/core/message/aun-ipc-sender.js +28 -1
  72. package/dist/core/message/contact-admission.js +548 -0
  73. package/dist/core/message/im-renderer.js +69 -10
  74. package/dist/core/message/message-admission.js +28 -3
  75. package/dist/core/message/message-bridge.js +46 -5
  76. package/dist/core/message/message-utils.js +0 -5
  77. package/dist/core/message/peer-mode.js +44 -10
  78. package/dist/core/message/response-engine.js +268 -69
  79. package/dist/core/message/retry-scheduler.js +4 -0
  80. package/dist/core/permission/ec-command-parser.js +1 -28
  81. package/dist/core/permission/readonly-shell-query.js +34 -8
  82. package/dist/core/permission/tool-policy.js +50 -5
  83. package/dist/core/role/runtime-policy.js +14 -2
  84. package/dist/core/session/session-manager.js +9 -1
  85. package/dist/core/soul.js +66 -0
  86. package/dist/core/system-session/memory.js +2 -2
  87. package/dist/directory/contact-admission-paths.js +9 -0
  88. package/dist/directory/owner-directory-admission.js +128 -29
  89. package/dist/directory/owner-directory-cache.js +364 -50
  90. package/dist/directory/owner-directory-identity.js +60 -0
  91. package/dist/directory/owner-directory-markdown.js +120 -47
  92. package/dist/directory/owner-directory-policy.js +108 -0
  93. package/dist/directory/owner-directory-query-operation.js +219 -32
  94. package/dist/directory/owner-directory-remarks.js +29 -2
  95. package/dist/directory/owner-directory-search.js +50 -18
  96. package/dist/directory/owner-directory-store.js +150 -30
  97. package/dist/eck/kit-renderer.js +12 -5
  98. package/dist/eck/manifest-engine.js +55 -6
  99. package/dist/eck/message-renderer.js +5 -2
  100. package/dist/eck/paactive-context.js +45 -0
  101. package/dist/ecweb/basic-settings-service.js +2 -2
  102. package/dist/ecweb/message-context-service.js +24 -16
  103. package/dist/index.js +9 -5
  104. package/dist/ipc.js +1 -1
  105. package/dist/paths.js +26 -0
  106. package/dist/response-system/config-resolver.js +1 -1
  107. package/dist/response-system/engines/v1/index.js +4 -1
  108. package/dist/response-system/engines/v1/paactive-flow.js +18 -0
  109. package/dist/response-system/modes/single-session/index.js +7 -2
  110. package/dist/trigger/scheduler.js +3 -5
  111. package/dist/trigger/validation.js +4 -0
  112. package/dist/utils/error-utils.js +5 -2
  113. package/dist/utils/logger.js +13 -4
  114. package/dist/utils/npm-ops.js +2 -2
  115. package/dist/utils/windows-autostart.js +1 -1
  116. package/ecagent/dist/agent-loop.js +43 -1
  117. package/kits/docs/INDEX.md +1 -0
  118. package/kits/docs/context-assembly.md +21 -6
  119. package/kits/docs/eck_templates/INDEX.template.md +1 -2
  120. package/kits/docs/evolcore/INDEX.md +1 -1
  121. package/kits/docs/evolcore/agent-create.md +5 -5
  122. package/kits/docs/evolcore/agent.md +4 -9
  123. package/kits/docs/evolcore/directory.md +137 -0
  124. package/kits/docs/evolcore/menu-protocol.md +55 -0
  125. package/kits/docs/evolcore/response.md +7 -1
  126. package/kits/docs/evolcore/tool-authorization.md +1 -1
  127. package/kits/docs/evolcore/trigger.md +4 -0
  128. package/kits/docs/prompt-loading-architecture.md +6 -2
  129. package/kits/eck_manifest.auxiliary.json +1 -0
  130. package/kits/eck_manifest.json +57 -4
  131. package/kits/eck_manifest.memory.json +67 -3
  132. package/kits/eck_manifest.paactive.json +528 -0
  133. package/kits/eck_message_manifest.paactive.json +233 -0
  134. package/kits/rules/01-overview.md +2 -2
  135. package/kits/rules/03-identity.md +10 -9
  136. package/kits/rules/05-venue.md +2 -4
  137. package/kits/rules/06-channel.md +1 -1
  138. package/kits/schemas/_meta.json +31 -3
  139. package/kits/schemas/agent-config.schema.18.json +5 -0
  140. package/kits/schemas/agent-config.schema.19.json +924 -0
  141. package/kits/schemas/relation-config.schema.12.json +289 -0
  142. package/kits/schemas/role-config.schema.2.json +215 -0
  143. package/kits/skills/ec-skill/scripts/cli.mjs +3 -2
  144. package/kits/skills/ec-trigger/SKILL.md +4 -4
  145. package/kits/skills/personal-assistant/SKILL.md +109 -53
  146. package/kits/skills/personal-assistant/references/02-bootstrap.md +73 -30
  147. package/kits/skills/personal-assistant/scripts/clean.mjs +35 -18
  148. package/kits/skills/personal-assistant/scripts/init.mjs +41 -2
  149. package/kits/skills/personal-assistant/scripts/lib/persona.mjs +185 -0
  150. package/kits/skills/personal-assistant/scripts/migrate.mjs +55 -4
  151. package/kits/skills/personal-assistant/scripts/pa.mjs +173 -0
  152. package/kits/skills/personal-assistant/scripts/uninstall.mjs +130 -0
  153. package/kits/skills/personal-assistant/templates/persona-section.md +3 -3
  154. package/kits/templates/message-fragments/handoff-request-to-target.md +1 -1
  155. package/kits/templates/message-fragments/paactive/item.md +3 -0
  156. package/kits/templates/soul/00-GUIDE.md +61 -0
  157. package/kits/templates/soul/01-identity.md +5 -0
  158. package/kits/templates/soul/02-persona.md +11 -0
  159. package/kits/templates/soul/03-duties.md +5 -0
  160. package/kits/templates/soul/04-working-style.md +5 -0
  161. package/kits/templates/system-fragments/bootstrap.md +7 -7
  162. package/kits/templates/system-fragments/commands.md +3 -2
  163. package/kits/templates/system-fragments/directory-contacts.md +9 -0
  164. package/kits/templates/system-fragments/memory.md +1 -1
  165. package/kits/templates/system-fragments/paactive/channel.md +25 -0
  166. package/kits/templates/system-fragments/paactive/reply.md +25 -0
  167. package/kits/templates/system-fragments/paactive/session.md +32 -0
  168. package/kits/templates/system-fragments/personal-assistant.md +65 -0
  169. package/package.json +4 -3
  170. package/dist/cli/handoff-command.js +0 -353
  171. package/dist/directory/owner-directory-remark-operation.js +0 -147
  172. package/kits/docs/evolcore/self-summary.md +0 -29
@@ -0,0 +1,528 @@
1
+ {
2
+ "$schema_version": 1,
3
+ "sections": [
4
+ {
5
+ "id": "rules",
6
+ "type": "directory",
7
+ "path": "$KITS_RULES",
8
+ "order": 10,
9
+ "needsInjection": false,
10
+ "when": {
11
+ "var": "lifecycle",
12
+ "eq": "active"
13
+ },
14
+ "description": "ECK 核心规则(自动加载)"
15
+ },
16
+ {
17
+ "id": "bootstrap-guide",
18
+ "type": "file",
19
+ "file": "$KITS_FRAGMENTS/bootstrap.md",
20
+ "order": 15,
21
+ "needsInjection": true,
22
+ "when": {
23
+ "var": "lifecycle",
24
+ "eq": "bootstrapping"
25
+ },
26
+ "description": "Bootstrap 阶段专属引导提示词"
27
+ },
28
+ {
29
+ "id": "identity-layer",
30
+ "type": "file",
31
+ "file": "$KITS_FRAGMENTS/identity.md",
32
+ "order": 20,
33
+ "needsInjection": true,
34
+ "when": {
35
+ "and": [
36
+ {
37
+ "var": "chatType",
38
+ "neq": null
39
+ },
40
+ {
41
+ "var": "lifecycle",
42
+ "eq": "active"
43
+ }
44
+ ]
45
+ },
46
+ "description": "身份层:我是谁"
47
+ },
48
+ {
49
+ "id": "skills-builtin",
50
+ "type": "file",
51
+ "file": "$AGENT_DIR/skills/.index-builtin.md",
52
+ "order": 20.5,
53
+ "needsInjection": false,
54
+ "optional": true,
55
+ "when": {
56
+ "var": "lifecycle",
57
+ "eq": "active"
58
+ },
59
+ "description": "内置技能索引"
60
+ },
61
+ {
62
+ "id": "skills-local",
63
+ "type": "file",
64
+ "file": "$AGENT_DIR/skills/.index-local.md",
65
+ "order": 20.6,
66
+ "needsInjection": false,
67
+ "optional": true,
68
+ "when": {
69
+ "var": "lifecycle",
70
+ "eq": "active"
71
+ },
72
+ "description": "本机技能索引"
73
+ },
74
+ {
75
+ "id": "persona",
76
+ "type": "file",
77
+ "file": "$PERSONAL_DIR/persona.md",
78
+ "order": 21,
79
+ "needsInjection": false,
80
+ "when": {
81
+ "and": [
82
+ {
83
+ "var": "chatType",
84
+ "neq": null
85
+ },
86
+ {
87
+ "var": "lifecycle",
88
+ "eq": "active"
89
+ }
90
+ ]
91
+ },
92
+ "description": "人格档案(persona.md)"
93
+ },
94
+ {
95
+ "id": "peer-self-intro",
96
+ "type": "file",
97
+ "file": "$RELATIONS_DIR/{{peerKey}}/self-intro.md",
98
+ "order": 28,
99
+ "needsInjection": false,
100
+ "optional": true,
101
+ "when": {
102
+ "and": [
103
+ {
104
+ "var": "peerKey",
105
+ "neq": null
106
+ },
107
+ {
108
+ "var": "lifecycle",
109
+ "eq": "active"
110
+ }
111
+ ]
112
+ },
113
+ "description": "本端向该对端的自我介绍流水"
114
+ },
115
+ {
116
+ "id": "owner-directory",
117
+ "type": "file",
118
+ "file": "$AGENT_DIR/directory/directory.md",
119
+ "order": 29,
120
+ "needsInjection": false,
121
+ "optional": true,
122
+ "when": {
123
+ "and": [
124
+ {
125
+ "var": "hasOwnerDirectory",
126
+ "eq": true
127
+ },
128
+ {
129
+ "var": "lifecycle",
130
+ "eq": "active"
131
+ }
132
+ ]
133
+ },
134
+ "description": "Owner 名录:Owner、个人助理、内部联系人、外部联系人与加入的群"
135
+ },
136
+ {
137
+ "id": "relation-layer",
138
+ "type": "file",
139
+ "file": "$KITS_FRAGMENTS/relation.md",
140
+ "order": 30,
141
+ "needsInjection": true,
142
+ "when": {
143
+ "and": [
144
+ {
145
+ "var": "chatType",
146
+ "in": [
147
+ "private",
148
+ "group"
149
+ ]
150
+ },
151
+ {
152
+ "var": "lifecycle",
153
+ "eq": "active"
154
+ }
155
+ ]
156
+ },
157
+ "description": "关系层:跟我聊天的是谁"
158
+ },
159
+ {
160
+ "id": "memory",
161
+ "type": "file",
162
+ "file": "$KITS_FRAGMENTS/memory.md",
163
+ "order": 35,
164
+ "needsInjection": true,
165
+ "when": {
166
+ "and": [
167
+ {
168
+ "var": "lifecycle",
169
+ "eq": "active"
170
+ },
171
+ {
172
+ "var": "memoryEnableRelation",
173
+ "neq": false
174
+ }
175
+ ]
176
+ },
177
+ "description": "记忆系统:何时写、怎么写、怎么召回"
178
+ },
179
+ {
180
+ "id": "agent-memory",
181
+ "type": "file",
182
+ "file": "$PERSONAL_DIR/memory/MEMORY.md",
183
+ "order": 36,
184
+ "needsInjection": false,
185
+ "when": {
186
+ "and": [
187
+ {
188
+ "var": "lifecycle",
189
+ "eq": "active"
190
+ },
191
+ {
192
+ "var": "memoryEnableAgent",
193
+ "neq": false
194
+ }
195
+ ]
196
+ },
197
+ "description": "agent 作用域记忆索引(consolidated)"
198
+ },
199
+ {
200
+ "id": "owner-memory",
201
+ "type": "file",
202
+ "file": "$EVOLCORE_HOME/memory/owner/{{ownerAid}}/MEMORY.md",
203
+ "order": 37,
204
+ "needsInjection": false,
205
+ "when": {
206
+ "and": [
207
+ {
208
+ "var": "ownerAid",
209
+ "neq": null
210
+ },
211
+ {
212
+ "var": "lifecycle",
213
+ "eq": "active"
214
+ },
215
+ {
216
+ "var": "memoryEnableOwner",
217
+ "neq": false
218
+ }
219
+ ]
220
+ },
221
+ "description": "owner 作用域记忆索引(consolidated,跨主机)"
222
+ },
223
+ {
224
+ "id": "relation-memory",
225
+ "type": "file",
226
+ "file": "$RELATIONS_DIR/{{peerKey}}/memory/MEMORY.md",
227
+ "order": 38,
228
+ "needsInjection": false,
229
+ "when": {
230
+ "and": [
231
+ {
232
+ "var": "peerKey",
233
+ "neq": null
234
+ },
235
+ {
236
+ "var": "lifecycle",
237
+ "eq": "active"
238
+ }
239
+ ]
240
+ },
241
+ "description": "relation 作用域记忆索引(consolidated,针对当前对端)"
242
+ },
243
+ {
244
+ "id": "venue-fragment",
245
+ "type": "file",
246
+ "file": "$KITS_FRAGMENTS/venue.md",
247
+ "order": 40,
248
+ "needsInjection": true,
249
+ "when": {
250
+ "and": [
251
+ {
252
+ "var": "chatType",
253
+ "neq": null
254
+ },
255
+ {
256
+ "var": "lifecycle",
257
+ "eq": "active"
258
+ }
259
+ ]
260
+ },
261
+ "description": "环境层模板(基础参数)"
262
+ },
263
+ {
264
+ "id": "venue-chattype",
265
+ "type": "file",
266
+ "file": "$KITS_DOCS/venues/{{chatType}}.md",
267
+ "order": 41,
268
+ "needsInjection": false,
269
+ "when": {
270
+ "and": [
271
+ {
272
+ "var": "chatType",
273
+ "neq": null
274
+ },
275
+ {
276
+ "var": "lifecycle",
277
+ "eq": "active"
278
+ }
279
+ ]
280
+ },
281
+ "description": "场景通用文档(private/group)"
282
+ },
283
+ {
284
+ "id": "venue-channel-chattype",
285
+ "type": "file",
286
+ "file": "$KITS_DOCS/venues/{{channel}}-{{chatType}}.md",
287
+ "order": 42,
288
+ "needsInjection": false,
289
+ "when": {
290
+ "and": [
291
+ {
292
+ "var": "chatType",
293
+ "neq": null
294
+ },
295
+ {
296
+ "var": "lifecycle",
297
+ "eq": "active"
298
+ }
299
+ ]
300
+ },
301
+ "description": "渠道+场景文档(如 feishu-group)"
302
+ },
303
+ {
304
+ "id": "group-history",
305
+ "type": "file",
306
+ "file": "$KITS_FRAGMENTS/group-history.md",
307
+ "order": 42.5,
308
+ "needsInjection": true,
309
+ "when": {
310
+ "and": [
311
+ {
312
+ "var": "channel",
313
+ "eq": "aun"
314
+ },
315
+ {
316
+ "var": "chatType",
317
+ "eq": "group"
318
+ },
319
+ {
320
+ "var": "groupHistoryAvailable",
321
+ "eq": true
322
+ },
323
+ {
324
+ "var": "lifecycle",
325
+ "eq": "active"
326
+ }
327
+ ]
328
+ },
329
+ "description": "AUN 群聊的本地只读历史查询指引"
330
+ },
331
+ {
332
+ "id": "relation-group-rules",
333
+ "type": "file",
334
+ "file": "$RELATIONS_DIR/{{peerKey}}/rules.md",
335
+ "order": 43.2,
336
+ "needsInjection": false,
337
+ "when": {
338
+ "and": [
339
+ {
340
+ "var": "groupRulesPath",
341
+ "neq": null
342
+ },
343
+ {
344
+ "var": "lifecycle",
345
+ "eq": "active"
346
+ }
347
+ ]
348
+ },
349
+ "description": "群资源空间同步的群规则"
350
+ },
351
+ {
352
+ "id": "venue-client",
353
+ "type": "file",
354
+ "file": "$KITS_DOCS/venues/client-{{clientType}}.md",
355
+ "order": 44,
356
+ "needsInjection": false,
357
+ "when": {
358
+ "and": [
359
+ {
360
+ "var": "clientType",
361
+ "neq": null
362
+ },
363
+ {
364
+ "var": "lifecycle",
365
+ "eq": "active"
366
+ }
367
+ ]
368
+ },
369
+ "description": "客户端环境文档"
370
+ },
371
+ {
372
+ "id": "thread",
373
+ "type": "file",
374
+ "file": "$KITS_FRAGMENTS/thread.md",
375
+ "order": 46,
376
+ "needsInjection": false,
377
+ "when": {
378
+ "and": [
379
+ {
380
+ "var": "chatType",
381
+ "in": [
382
+ "private",
383
+ "group"
384
+ ]
385
+ },
386
+ {
387
+ "var": "lifecycle",
388
+ "eq": "active"
389
+ }
390
+ ]
391
+ },
392
+ "description": "话题系统:话题列表/历史、跨话题发送、命名、摘要与状态"
393
+ },
394
+ {
395
+ "id": "reply-contract",
396
+ "type": "file",
397
+ "file": "$KITS_FRAGMENTS/paactive/reply.md",
398
+ "order": 49,
399
+ "needsInjection": true,
400
+ "when": {
401
+ "and": [
402
+ {
403
+ "var": "channel",
404
+ "neq": null
405
+ },
406
+ {
407
+ "var": "lifecycle",
408
+ "in": [
409
+ "active",
410
+ "bootstrapping"
411
+ ]
412
+ }
413
+ ]
414
+ },
415
+ "description": "共用回复规则:当前模式、目标及托管发送边界"
416
+ },
417
+ {
418
+ "id": "channel-layer",
419
+ "type": "file",
420
+ "file": "$KITS_FRAGMENTS/paactive/channel.md",
421
+ "order": 50,
422
+ "needsInjection": true,
423
+ "when": {
424
+ "and": [
425
+ {
426
+ "var": "channel",
427
+ "neq": null
428
+ },
429
+ {
430
+ "var": "lifecycle",
431
+ "eq": "active"
432
+ }
433
+ ]
434
+ },
435
+ "description": "渠道层:通信渠道及能力"
436
+ },
437
+ {
438
+ "id": "commands",
439
+ "type": "file",
440
+ "file": "$KITS_FRAGMENTS/commands.md",
441
+ "order": 55,
442
+ "needsInjection": true,
443
+ "when": {
444
+ "and": [
445
+ {
446
+ "var": "channel",
447
+ "neq": null
448
+ },
449
+ {
450
+ "var": "lifecycle",
451
+ "eq": "active"
452
+ }
453
+ ]
454
+ },
455
+ "description": "命令集能力卡:按场景列出可用命令集及文档路径"
456
+ },
457
+ {
458
+ "id": "session",
459
+ "type": "file",
460
+ "file": "$KITS_FRAGMENTS/paactive/session.md",
461
+ "order": 60,
462
+ "needsInjection": true,
463
+ "when": {
464
+ "var": "lifecycle",
465
+ "eq": "active"
466
+ },
467
+ "description": "会话层:当前会话实例状态"
468
+ },
469
+ {
470
+ "id": "baseagent",
471
+ "type": "file",
472
+ "file": "$KITS_FRAGMENTS/baseagent.md",
473
+ "order": 70,
474
+ "needsInjection": true,
475
+ "when": {
476
+ "and": [
477
+ {
478
+ "var": "baseAgent",
479
+ "neq": null
480
+ },
481
+ {
482
+ "var": "lifecycle",
483
+ "eq": "active"
484
+ }
485
+ ]
486
+ },
487
+ "description": "Base Agent 特定配置"
488
+ },
489
+ {
490
+ "id": "bash-description",
491
+ "type": "file",
492
+ "file": "$KITS_FRAGMENTS/bash-description.md",
493
+ "order": 75,
494
+ "needsInjection": true,
495
+ "when": {
496
+ "and": [
497
+ {
498
+ "var": "baseAgent",
499
+ "in": [
500
+ "claude",
501
+ "ecagent"
502
+ ]
503
+ },
504
+ {
505
+ "var": "lifecycle",
506
+ "in": [
507
+ "active",
508
+ "bootstrapping"
509
+ ]
510
+ }
511
+ ]
512
+ },
513
+ "description": "Bash 调用 description 格式:目标描述 + 风险等级标记"
514
+ },
515
+ {
516
+ "id": "managed-runtime-notice",
517
+ "type": "file",
518
+ "file": "$KITS_FRAGMENTS/managed-runtime.md",
519
+ "order": 80,
520
+ "needsInjection": true,
521
+ "when": {
522
+ "var": "lifecycle",
523
+ "eq": "active"
524
+ },
525
+ "description": "托管运行时提示:上下文已就绪,勿重复读取"
526
+ }
527
+ ]
528
+ }