@gencode/agents 0.0.9 → 0.0.10

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 (451) hide show
  1. package/dist/builtin-provider-C0d7-NZt.js +66 -0
  2. package/dist/config/index.d.ts +2 -9
  3. package/dist/config/index.js +1 -9
  4. package/dist/config-DG3Q1aJ6.js +1 -0
  5. package/dist/{index-JD6Ye-N5.d.ts → index-BdfpRxFA.d.ts} +7 -8
  6. package/dist/index.d.ts +1603 -40
  7. package/dist/index.js +504 -35
  8. package/dist/provider-registry-rVbsCDN2.js +1 -0
  9. package/dist/rolldown-runtime-CNxR59P3.js +1 -0
  10. package/package.json +2 -2
  11. package/dist/bootstrap/bootstrap-layout.d.ts +0 -23
  12. package/dist/bootstrap/bootstrap-layout.d.ts.map +0 -1
  13. package/dist/bootstrap/bootstrap-layout.js +0 -151
  14. package/dist/bootstrap/bootstrap-layout.js.map +0 -1
  15. package/dist/bootstrap/bootstrap.d.ts +0 -36
  16. package/dist/bootstrap/bootstrap.d.ts.map +0 -1
  17. package/dist/bootstrap/bootstrap.js +0 -136
  18. package/dist/bootstrap/bootstrap.js.map +0 -1
  19. package/dist/bootstrap/templates/AGENTS_MD.d.ts +0 -2
  20. package/dist/bootstrap/templates/AGENTS_MD.d.ts.map +0 -1
  21. package/dist/bootstrap/templates/AGENTS_MD.js +0 -223
  22. package/dist/bootstrap/templates/AGENTS_MD.js.map +0 -1
  23. package/dist/bootstrap/templates/BOOTSTRAP_MD.d.ts +0 -2
  24. package/dist/bootstrap/templates/BOOTSTRAP_MD.d.ts.map +0 -1
  25. package/dist/bootstrap/templates/BOOTSTRAP_MD.js +0 -66
  26. package/dist/bootstrap/templates/BOOTSTRAP_MD.js.map +0 -1
  27. package/dist/bootstrap/templates/HEARTBEAT_MD.d.ts +0 -2
  28. package/dist/bootstrap/templates/HEARTBEAT_MD.d.ts.map +0 -1
  29. package/dist/bootstrap/templates/HEARTBEAT_MD.js +0 -16
  30. package/dist/bootstrap/templates/HEARTBEAT_MD.js.map +0 -1
  31. package/dist/bootstrap/templates/IDENTITY_MD.d.ts +0 -2
  32. package/dist/bootstrap/templates/IDENTITY_MD.d.ts.map +0 -1
  33. package/dist/bootstrap/templates/IDENTITY_MD.js +0 -31
  34. package/dist/bootstrap/templates/IDENTITY_MD.js.map +0 -1
  35. package/dist/bootstrap/templates/SOUL_MD.d.ts +0 -2
  36. package/dist/bootstrap/templates/SOUL_MD.d.ts.map +0 -1
  37. package/dist/bootstrap/templates/SOUL_MD.js +0 -47
  38. package/dist/bootstrap/templates/SOUL_MD.js.map +0 -1
  39. package/dist/bootstrap/templates/TOOLS_MD.d.ts +0 -2
  40. package/dist/bootstrap/templates/TOOLS_MD.d.ts.map +0 -1
  41. package/dist/bootstrap/templates/TOOLS_MD.js +0 -51
  42. package/dist/bootstrap/templates/TOOLS_MD.js.map +0 -1
  43. package/dist/bootstrap/templates/USER_MD.d.ts +0 -2
  44. package/dist/bootstrap/templates/USER_MD.d.ts.map +0 -1
  45. package/dist/bootstrap/templates/USER_MD.js +0 -27
  46. package/dist/bootstrap/templates/USER_MD.js.map +0 -1
  47. package/dist/bootstrap/templates/index.d.ts +0 -3
  48. package/dist/bootstrap/templates/index.d.ts.map +0 -1
  49. package/dist/bootstrap/templates/index.js +0 -26
  50. package/dist/bootstrap/templates/index.js.map +0 -1
  51. package/dist/commands/compact.d.ts +0 -28
  52. package/dist/commands/compact.d.ts.map +0 -1
  53. package/dist/commands/compact.js +0 -57
  54. package/dist/commands/compact.js.map +0 -1
  55. package/dist/commands/help.d.ts +0 -3
  56. package/dist/commands/help.d.ts.map +0 -1
  57. package/dist/commands/help.js +0 -50
  58. package/dist/commands/help.js.map +0 -1
  59. package/dist/commands/index.d.ts +0 -6
  60. package/dist/commands/index.d.ts.map +0 -1
  61. package/dist/commands/index.js +0 -32
  62. package/dist/commands/index.js.map +0 -1
  63. package/dist/commands/new.d.ts +0 -3
  64. package/dist/commands/new.d.ts.map +0 -1
  65. package/dist/commands/new.js +0 -15
  66. package/dist/commands/new.js.map +0 -1
  67. package/dist/commands/registry.d.ts +0 -11
  68. package/dist/commands/registry.d.ts.map +0 -1
  69. package/dist/commands/registry.js +0 -122
  70. package/dist/commands/registry.js.map +0 -1
  71. package/dist/commands/reset.d.ts +0 -3
  72. package/dist/commands/reset.d.ts.map +0 -1
  73. package/dist/commands/reset.js +0 -4
  74. package/dist/commands/reset.js.map +0 -1
  75. package/dist/commands/skill.d.ts +0 -7
  76. package/dist/commands/skill.d.ts.map +0 -1
  77. package/dist/commands/skill.js +0 -23
  78. package/dist/commands/skill.js.map +0 -1
  79. package/dist/commands/types.d.ts +0 -57
  80. package/dist/commands/types.d.ts.map +0 -1
  81. package/dist/commands/types.js +0 -2
  82. package/dist/commands/types.js.map +0 -1
  83. package/dist/config/agents-config.d.ts +0 -85
  84. package/dist/config/agents-config.d.ts.map +0 -1
  85. package/dist/config/agents-config.js +0 -257
  86. package/dist/config/agents-config.js.map +0 -1
  87. package/dist/config/index.d.ts.map +0 -1
  88. package/dist/config/index.js.map +0 -1
  89. package/dist/config/types.d.ts +0 -87
  90. package/dist/config/types.d.ts.map +0 -1
  91. package/dist/config/types.js +0 -6
  92. package/dist/config/types.js.map +0 -1
  93. package/dist/config-DJX-VM7S.js +0 -198
  94. package/dist/config-DJX-VM7S.js.map +0 -1
  95. package/dist/history/compaction.d.ts +0 -42
  96. package/dist/history/compaction.d.ts.map +0 -1
  97. package/dist/history/compaction.js +0 -135
  98. package/dist/history/compaction.js.map +0 -1
  99. package/dist/history/index.d.ts +0 -57
  100. package/dist/history/index.d.ts.map +0 -1
  101. package/dist/history/index.js +0 -145
  102. package/dist/history/index.js.map +0 -1
  103. package/dist/history/limit.d.ts +0 -13
  104. package/dist/history/limit.d.ts.map +0 -1
  105. package/dist/history/limit.js +0 -32
  106. package/dist/history/limit.js.map +0 -1
  107. package/dist/history/repair.d.ts +0 -13
  108. package/dist/history/repair.d.ts.map +0 -1
  109. package/dist/history/repair.js +0 -25
  110. package/dist/history/repair.js.map +0 -1
  111. package/dist/history/token-estimate.d.ts +0 -22
  112. package/dist/history/token-estimate.d.ts.map +0 -1
  113. package/dist/history/token-estimate.js +0 -38
  114. package/dist/history/token-estimate.js.map +0 -1
  115. package/dist/index-JD6Ye-N5.d.ts.map +0 -1
  116. package/dist/index.d.ts.map +0 -1
  117. package/dist/index.js.map +0 -1
  118. package/dist/llm/client.d.ts +0 -53
  119. package/dist/llm/client.d.ts.map +0 -1
  120. package/dist/llm/client.js +0 -214
  121. package/dist/llm/client.js.map +0 -1
  122. package/dist/llm/openai-completions-compat.d.ts +0 -23
  123. package/dist/llm/openai-completions-compat.d.ts.map +0 -1
  124. package/dist/llm/openai-completions-compat.js +0 -602
  125. package/dist/llm/openai-completions-compat.js.map +0 -1
  126. package/dist/llm/openai-stream-error.d.ts +0 -11
  127. package/dist/llm/openai-stream-error.d.ts.map +0 -1
  128. package/dist/llm/openai-stream-error.js +0 -77
  129. package/dist/llm/openai-stream-error.js.map +0 -1
  130. package/dist/loop-detection/session-state.d.ts +0 -5
  131. package/dist/loop-detection/session-state.d.ts.map +0 -1
  132. package/dist/loop-detection/session-state.js +0 -16
  133. package/dist/loop-detection/session-state.js.map +0 -1
  134. package/dist/loop-detection/tool-loop-detection.d.ts +0 -122
  135. package/dist/loop-detection/tool-loop-detection.d.ts.map +0 -1
  136. package/dist/loop-detection/tool-loop-detection.js +0 -516
  137. package/dist/loop-detection/tool-loop-detection.js.map +0 -1
  138. package/dist/manager-qXa-NP0p.js +0 -1651
  139. package/dist/manager-qXa-NP0p.js.map +0 -1
  140. package/dist/memory/builtin-provider.d.ts +0 -5
  141. package/dist/memory/builtin-provider.d.ts.map +0 -1
  142. package/dist/memory/builtin-provider.js +0 -42
  143. package/dist/memory/builtin-provider.js.map +0 -1
  144. package/dist/memory/config.d.ts +0 -50
  145. package/dist/memory/config.d.ts.map +0 -1
  146. package/dist/memory/config.js +0 -46
  147. package/dist/memory/config.js.map +0 -1
  148. package/dist/memory/embedding-registry.d.ts +0 -37
  149. package/dist/memory/embedding-registry.d.ts.map +0 -1
  150. package/dist/memory/embedding-registry.js +0 -56
  151. package/dist/memory/embedding-registry.js.map +0 -1
  152. package/dist/memory/embeddings.d.ts +0 -11
  153. package/dist/memory/embeddings.d.ts.map +0 -1
  154. package/dist/memory/embeddings.js +0 -40
  155. package/dist/memory/embeddings.js.map +0 -1
  156. package/dist/memory/fs-utils.d.ts +0 -12
  157. package/dist/memory/fs-utils.d.ts.map +0 -1
  158. package/dist/memory/fs-utils.js +0 -24
  159. package/dist/memory/fs-utils.js.map +0 -1
  160. package/dist/memory/hybrid.d.ts +0 -43
  161. package/dist/memory/hybrid.d.ts.map +0 -1
  162. package/dist/memory/hybrid.js +0 -80
  163. package/dist/memory/hybrid.js.map +0 -1
  164. package/dist/memory/internal.d.ts +0 -28
  165. package/dist/memory/internal.d.ts.map +0 -1
  166. package/dist/memory/internal.js +0 -270
  167. package/dist/memory/internal.js.map +0 -1
  168. package/dist/memory/manager-search.d.ts +0 -61
  169. package/dist/memory/manager-search.d.ts.map +0 -1
  170. package/dist/memory/manager-search.js +0 -106
  171. package/dist/memory/manager-search.js.map +0 -1
  172. package/dist/memory/manager.d.ts +0 -126
  173. package/dist/memory/manager.d.ts.map +0 -1
  174. package/dist/memory/manager.js +0 -1006
  175. package/dist/memory/manager.js.map +0 -1
  176. package/dist/memory/memory-schema.d.ts +0 -11
  177. package/dist/memory/memory-schema.d.ts.map +0 -1
  178. package/dist/memory/memory-schema.js +0 -78
  179. package/dist/memory/memory-schema.js.map +0 -1
  180. package/dist/memory/memory.d.ts +0 -46
  181. package/dist/memory/memory.d.ts.map +0 -1
  182. package/dist/memory/memory.js +0 -127
  183. package/dist/memory/memory.js.map +0 -1
  184. package/dist/memory/mmr.d.ts +0 -22
  185. package/dist/memory/mmr.d.ts.map +0 -1
  186. package/dist/memory/mmr.js +0 -112
  187. package/dist/memory/mmr.js.map +0 -1
  188. package/dist/memory/provider-registry.d.ts +0 -29
  189. package/dist/memory/provider-registry.d.ts.map +0 -1
  190. package/dist/memory/provider-registry.js +0 -58
  191. package/dist/memory/provider-registry.js.map +0 -1
  192. package/dist/memory/provider.d.ts +0 -40
  193. package/dist/memory/provider.d.ts.map +0 -1
  194. package/dist/memory/provider.js +0 -2
  195. package/dist/memory/provider.js.map +0 -1
  196. package/dist/memory/session-files.d.ts +0 -13
  197. package/dist/memory/session-files.d.ts.map +0 -1
  198. package/dist/memory/session-files.js +0 -116
  199. package/dist/memory/session-files.js.map +0 -1
  200. package/dist/memory/sqlite-vec.d.ts +0 -10
  201. package/dist/memory/sqlite-vec.d.ts.map +0 -1
  202. package/dist/memory/sqlite-vec.js +0 -20
  203. package/dist/memory/sqlite-vec.js.map +0 -1
  204. package/dist/memory/sqlite.d.ts +0 -2
  205. package/dist/memory/sqlite.d.ts.map +0 -1
  206. package/dist/memory/sqlite.js +0 -12
  207. package/dist/memory/sqlite.js.map +0 -1
  208. package/dist/memory/temporal-decay.d.ts +0 -26
  209. package/dist/memory/temporal-decay.d.ts.map +0 -1
  210. package/dist/memory/temporal-decay.js +0 -119
  211. package/dist/memory/temporal-decay.js.map +0 -1
  212. package/dist/memory/watch-bridge.d.ts +0 -20
  213. package/dist/memory/watch-bridge.d.ts.map +0 -1
  214. package/dist/memory/watch-bridge.js +0 -128
  215. package/dist/memory/watch-bridge.js.map +0 -1
  216. package/dist/message.d.ts +0 -11
  217. package/dist/message.d.ts.map +0 -1
  218. package/dist/message.js +0 -46
  219. package/dist/message.js.map +0 -1
  220. package/dist/plugins/boundary-file-read.d.ts +0 -13
  221. package/dist/plugins/boundary-file-read.d.ts.map +0 -1
  222. package/dist/plugins/boundary-file-read.js +0 -31
  223. package/dist/plugins/boundary-file-read.js.map +0 -1
  224. package/dist/plugins/config-state.d.ts +0 -35
  225. package/dist/plugins/config-state.d.ts.map +0 -1
  226. package/dist/plugins/config-state.js +0 -97
  227. package/dist/plugins/config-state.js.map +0 -1
  228. package/dist/plugins/discovery.d.ts +0 -21
  229. package/dist/plugins/discovery.d.ts.map +0 -1
  230. package/dist/plugins/discovery.js +0 -425
  231. package/dist/plugins/discovery.js.map +0 -1
  232. package/dist/plugins/hooks.d.ts +0 -133
  233. package/dist/plugins/hooks.d.ts.map +0 -1
  234. package/dist/plugins/hooks.js +0 -19
  235. package/dist/plugins/hooks.js.map +0 -1
  236. package/dist/plugins/index.d.ts +0 -20
  237. package/dist/plugins/index.d.ts.map +0 -1
  238. package/dist/plugins/index.js +0 -11
  239. package/dist/plugins/index.js.map +0 -1
  240. package/dist/plugins/loader.d.ts +0 -60
  241. package/dist/plugins/loader.d.ts.map +0 -1
  242. package/dist/plugins/loader.js +0 -224
  243. package/dist/plugins/loader.js.map +0 -1
  244. package/dist/plugins/manager.d.ts +0 -20
  245. package/dist/plugins/manager.d.ts.map +0 -1
  246. package/dist/plugins/manager.js +0 -33
  247. package/dist/plugins/manager.js.map +0 -1
  248. package/dist/plugins/manifest-registry.d.ts +0 -15
  249. package/dist/plugins/manifest-registry.d.ts.map +0 -1
  250. package/dist/plugins/manifest-registry.js +0 -37
  251. package/dist/plugins/manifest-registry.js.map +0 -1
  252. package/dist/plugins/manifest.d.ts +0 -6
  253. package/dist/plugins/manifest.d.ts.map +0 -1
  254. package/dist/plugins/manifest.js +0 -80
  255. package/dist/plugins/manifest.js.map +0 -1
  256. package/dist/plugins/path-safety.d.ts +0 -6
  257. package/dist/plugins/path-safety.d.ts.map +0 -1
  258. package/dist/plugins/path-safety.js +0 -32
  259. package/dist/plugins/path-safety.js.map +0 -1
  260. package/dist/plugins/runtime-context.d.ts +0 -12
  261. package/dist/plugins/runtime-context.d.ts.map +0 -1
  262. package/dist/plugins/runtime-context.js +0 -2
  263. package/dist/plugins/runtime-context.js.map +0 -1
  264. package/dist/plugins/runtime.d.ts +0 -20
  265. package/dist/plugins/runtime.d.ts.map +0 -1
  266. package/dist/plugins/runtime.js +0 -33
  267. package/dist/plugins/runtime.js.map +0 -1
  268. package/dist/plugins/schema-validator.d.ts +0 -17
  269. package/dist/plugins/schema-validator.d.ts.map +0 -1
  270. package/dist/plugins/schema-validator.js +0 -26
  271. package/dist/plugins/schema-validator.js.map +0 -1
  272. package/dist/plugins/tool-hooks.d.ts +0 -4
  273. package/dist/plugins/tool-hooks.d.ts.map +0 -1
  274. package/dist/plugins/tool-hooks.js +0 -63
  275. package/dist/plugins/tool-hooks.js.map +0 -1
  276. package/dist/plugins/tools.d.ts +0 -20
  277. package/dist/plugins/tools.d.ts.map +0 -1
  278. package/dist/plugins/tools.js +0 -42
  279. package/dist/plugins/tools.js.map +0 -1
  280. package/dist/plugins/types.d.ts +0 -61
  281. package/dist/plugins/types.d.ts.map +0 -1
  282. package/dist/plugins/types.js +0 -2
  283. package/dist/plugins/types.js.map +0 -1
  284. package/dist/plugins/utils.d.ts +0 -4
  285. package/dist/plugins/utils.d.ts.map +0 -1
  286. package/dist/plugins/utils.js +0 -22
  287. package/dist/plugins/utils.js.map +0 -1
  288. package/dist/runner/agent-runtime.d.ts +0 -62
  289. package/dist/runner/agent-runtime.d.ts.map +0 -1
  290. package/dist/runner/agent-runtime.js +0 -186
  291. package/dist/runner/agent-runtime.js.map +0 -1
  292. package/dist/runner/announce-loop.d.ts +0 -41
  293. package/dist/runner/announce-loop.d.ts.map +0 -1
  294. package/dist/runner/announce-loop.js +0 -94
  295. package/dist/runner/announce-loop.js.map +0 -1
  296. package/dist/runner/event-dispatcher.d.ts +0 -12
  297. package/dist/runner/event-dispatcher.d.ts.map +0 -1
  298. package/dist/runner/event-dispatcher.js +0 -18
  299. package/dist/runner/event-dispatcher.js.map +0 -1
  300. package/dist/runner/finalizer.d.ts +0 -30
  301. package/dist/runner/finalizer.d.ts.map +0 -1
  302. package/dist/runner/finalizer.js +0 -75
  303. package/dist/runner/finalizer.js.map +0 -1
  304. package/dist/runner/invocation-resolver.d.ts +0 -67
  305. package/dist/runner/invocation-resolver.d.ts.map +0 -1
  306. package/dist/runner/invocation-resolver.js +0 -224
  307. package/dist/runner/invocation-resolver.js.map +0 -1
  308. package/dist/runner/plugin-context.d.ts +0 -18
  309. package/dist/runner/plugin-context.d.ts.map +0 -1
  310. package/dist/runner/plugin-context.js +0 -26
  311. package/dist/runner/plugin-context.js.map +0 -1
  312. package/dist/runner/run-context.d.ts +0 -38
  313. package/dist/runner/run-context.d.ts.map +0 -1
  314. package/dist/runner/run-context.js +0 -159
  315. package/dist/runner/run-context.js.map +0 -1
  316. package/dist/runner/runner-session.d.ts +0 -34
  317. package/dist/runner/runner-session.d.ts.map +0 -1
  318. package/dist/runner/runner-session.js +0 -61
  319. package/dist/runner/runner-session.js.map +0 -1
  320. package/dist/runner/runner.d.ts +0 -13
  321. package/dist/runner/runner.d.ts.map +0 -1
  322. package/dist/runner/runner.js +0 -234
  323. package/dist/runner/runner.js.map +0 -1
  324. package/dist/runner/runtime.d.ts +0 -7
  325. package/dist/runner/runtime.d.ts.map +0 -1
  326. package/dist/runner/runtime.js +0 -21
  327. package/dist/runner/runtime.js.map +0 -1
  328. package/dist/runner/session-lifecycle.d.ts +0 -31
  329. package/dist/runner/session-lifecycle.d.ts.map +0 -1
  330. package/dist/runner/session-lifecycle.js +0 -38
  331. package/dist/runner/session-lifecycle.js.map +0 -1
  332. package/dist/runner/skill-usage.d.ts +0 -29
  333. package/dist/runner/skill-usage.d.ts.map +0 -1
  334. package/dist/runner/skill-usage.js +0 -65
  335. package/dist/runner/skill-usage.js.map +0 -1
  336. package/dist/runner/title.d.ts +0 -3
  337. package/dist/runner/title.d.ts.map +0 -1
  338. package/dist/runner/title.js +0 -6
  339. package/dist/runner/title.js.map +0 -1
  340. package/dist/runner/turn-executor.d.ts +0 -51
  341. package/dist/runner/turn-executor.d.ts.map +0 -1
  342. package/dist/runner/turn-executor.js +0 -294
  343. package/dist/runner/turn-executor.js.map +0 -1
  344. package/dist/security/command-dangerous-rules.d.ts +0 -4
  345. package/dist/security/command-dangerous-rules.d.ts.map +0 -1
  346. package/dist/security/command-dangerous-rules.js +0 -26
  347. package/dist/security/command-dangerous-rules.js.map +0 -1
  348. package/dist/security/command-parser.d.ts +0 -3
  349. package/dist/security/command-parser.d.ts.map +0 -1
  350. package/dist/security/command-parser.js +0 -191
  351. package/dist/security/command-parser.js.map +0 -1
  352. package/dist/security/command-path-guard.d.ts +0 -10
  353. package/dist/security/command-path-guard.d.ts.map +0 -1
  354. package/dist/security/command-path-guard.js +0 -126
  355. package/dist/security/command-path-guard.js.map +0 -1
  356. package/dist/security/command-policy-config.d.ts +0 -5
  357. package/dist/security/command-policy-config.d.ts.map +0 -1
  358. package/dist/security/command-policy-config.js +0 -212
  359. package/dist/security/command-policy-config.js.map +0 -1
  360. package/dist/security/command-policy-engine.d.ts +0 -8
  361. package/dist/security/command-policy-engine.d.ts.map +0 -1
  362. package/dist/security/command-policy-engine.js +0 -122
  363. package/dist/security/command-policy-engine.js.map +0 -1
  364. package/dist/security/command-policy-types.d.ts +0 -67
  365. package/dist/security/command-policy-types.d.ts.map +0 -1
  366. package/dist/security/command-policy-types.js +0 -2
  367. package/dist/security/command-policy-types.js.map +0 -1
  368. package/dist/security/command-safe-bins.d.ts +0 -4
  369. package/dist/security/command-safe-bins.d.ts.map +0 -1
  370. package/dist/security/command-safe-bins.js +0 -84
  371. package/dist/security/command-safe-bins.js.map +0 -1
  372. package/dist/security/command-trusted-executables.d.ts +0 -6
  373. package/dist/security/command-trusted-executables.d.ts.map +0 -1
  374. package/dist/security/command-trusted-executables.js +0 -57
  375. package/dist/security/command-trusted-executables.js.map +0 -1
  376. package/dist/session/session.d.ts +0 -45
  377. package/dist/session/session.d.ts.map +0 -1
  378. package/dist/session/session.js +0 -167
  379. package/dist/session/session.js.map +0 -1
  380. package/dist/skills/skills.d.ts +0 -23
  381. package/dist/skills/skills.d.ts.map +0 -1
  382. package/dist/skills/skills.js +0 -109
  383. package/dist/skills/skills.js.map +0 -1
  384. package/dist/subagent/registry-persist.d.ts +0 -31
  385. package/dist/subagent/registry-persist.d.ts.map +0 -1
  386. package/dist/subagent/registry-persist.js +0 -115
  387. package/dist/subagent/registry-persist.js.map +0 -1
  388. package/dist/subagent/registry.d.ts +0 -52
  389. package/dist/subagent/registry.d.ts.map +0 -1
  390. package/dist/subagent/registry.js +0 -122
  391. package/dist/subagent/registry.js.map +0 -1
  392. package/dist/subagent/types.d.ts +0 -20
  393. package/dist/subagent/types.d.ts.map +0 -1
  394. package/dist/subagent/types.js +0 -2
  395. package/dist/subagent/types.js.map +0 -1
  396. package/dist/system-prompt/builder.d.ts +0 -50
  397. package/dist/system-prompt/builder.d.ts.map +0 -1
  398. package/dist/system-prompt/builder.js +0 -335
  399. package/dist/system-prompt/builder.js.map +0 -1
  400. package/dist/tools/apply-patch.d.ts +0 -15
  401. package/dist/tools/apply-patch.d.ts.map +0 -1
  402. package/dist/tools/apply-patch.js +0 -425
  403. package/dist/tools/apply-patch.js.map +0 -1
  404. package/dist/tools/bash.d.ts +0 -11
  405. package/dist/tools/bash.d.ts.map +0 -1
  406. package/dist/tools/bash.js +0 -13
  407. package/dist/tools/bash.js.map +0 -1
  408. package/dist/tools/cron.d.ts +0 -30
  409. package/dist/tools/cron.d.ts.map +0 -1
  410. package/dist/tools/cron.js +0 -57
  411. package/dist/tools/cron.js.map +0 -1
  412. package/dist/tools/exec.d.ts +0 -18
  413. package/dist/tools/exec.d.ts.map +0 -1
  414. package/dist/tools/exec.js +0 -144
  415. package/dist/tools/exec.js.map +0 -1
  416. package/dist/tools/files.d.ts +0 -37
  417. package/dist/tools/files.d.ts.map +0 -1
  418. package/dist/tools/files.js +0 -191
  419. package/dist/tools/files.js.map +0 -1
  420. package/dist/tools/image.d.ts +0 -14
  421. package/dist/tools/image.d.ts.map +0 -1
  422. package/dist/tools/image.js +0 -26
  423. package/dist/tools/image.js.map +0 -1
  424. package/dist/tools/index.d.ts +0 -36
  425. package/dist/tools/index.d.ts.map +0 -1
  426. package/dist/tools/index.js +0 -53
  427. package/dist/tools/index.js.map +0 -1
  428. package/dist/tools/memory.d.ts +0 -41
  429. package/dist/tools/memory.d.ts.map +0 -1
  430. package/dist/tools/memory.js +0 -114
  431. package/dist/tools/memory.js.map +0 -1
  432. package/dist/tools/process-registry.d.ts +0 -47
  433. package/dist/tools/process-registry.d.ts.map +0 -1
  434. package/dist/tools/process-registry.js +0 -262
  435. package/dist/tools/process-registry.js.map +0 -1
  436. package/dist/tools/process.d.ts +0 -17
  437. package/dist/tools/process.d.ts.map +0 -1
  438. package/dist/tools/process.js +0 -114
  439. package/dist/tools/process.js.map +0 -1
  440. package/dist/tools/subagent-spawn.d.ts +0 -44
  441. package/dist/tools/subagent-spawn.d.ts.map +0 -1
  442. package/dist/tools/subagent-spawn.js +0 -101
  443. package/dist/tools/subagent-spawn.js.map +0 -1
  444. package/dist/tools/subagents.d.ts +0 -30
  445. package/dist/tools/subagents.d.ts.map +0 -1
  446. package/dist/tools/subagents.js +0 -101
  447. package/dist/tools/subagents.js.map +0 -1
  448. package/dist/types.d.ts +0 -153
  449. package/dist/types.d.ts.map +0 -1
  450. package/dist/types.js +0 -6
  451. package/dist/types.js.map +0 -1
@@ -1,335 +0,0 @@
1
- /** Core tool descriptions for the system prompt */
2
- const CORE_TOOL_DESCRIPTIONS = {
3
- read_file: "Read file contents",
4
- write_file: "Create or overwrite files",
5
- edit_file: "Make precise edits to files",
6
- list_dir: "List directory contents",
7
- apply_patch: "Apply multi-file patches",
8
- exec: "Run shell commands",
9
- process: "Manage background exec sessions",
10
- memory_search: "Search memory files for relevant information",
11
- memory_get: "Read specific lines from memory files",
12
- memory_append: "Append new long-term memory",
13
- sessions_spawn: "Spawn an isolated subagent session",
14
- subagents: "List, steer, or kill subagent runs",
15
- };
16
- const CORE_TOOL_ORDER = [
17
- "read_file",
18
- "write_file",
19
- "edit_file",
20
- "list_dir",
21
- "apply_patch",
22
- "exec",
23
- "process",
24
- "memory_search",
25
- "memory_get",
26
- "memory_append",
27
- "sessions_spawn",
28
- "subagents",
29
- ];
30
- const DEFAULT_HEARTBEAT_PROMPT = "Read HEARTBEAT.md if it exists (cloud workspace context). Follow it strictly. Do not infer or repeat old tasks from prior chats. If nothing needs attention, reply HEARTBEAT_OK.";
31
- function dedupeTools(toolNames) {
32
- const displayName = new Map();
33
- for (const toolName of toolNames) {
34
- const trimmed = toolName.trim();
35
- if (!trimmed)
36
- continue;
37
- const normalized = trimmed.toLowerCase();
38
- if (!displayName.has(normalized)) {
39
- displayName.set(normalized, trimmed);
40
- }
41
- }
42
- const normalizedNames = Array.from(displayName.keys());
43
- const ordered = [
44
- ...CORE_TOOL_ORDER.filter((name) => displayName.has(name)),
45
- ...normalizedNames
46
- .filter((name) => !CORE_TOOL_ORDER.includes(name))
47
- .sort(),
48
- ];
49
- return { ordered, displayName };
50
- }
51
- function buildToolingSection(params) {
52
- const { ordered, displayName } = dedupeTools(params.toolNames);
53
- const summaryByName = new Map();
54
- for (const [name, summary] of Object.entries(params.toolSummaries ?? {})) {
55
- const normalized = name.trim().toLowerCase();
56
- if (!normalized || !summary?.trim())
57
- continue;
58
- summaryByName.set(normalized, summary.trim());
59
- }
60
- const toolLines = ordered.map((normalizedName) => {
61
- const display = displayName.get(normalizedName) ?? normalizedName;
62
- const summary = summaryByName.get(normalizedName) ?? CORE_TOOL_DESCRIPTIONS[normalizedName];
63
- return summary ? `- ${display}: ${summary}` : `- ${display}`;
64
- });
65
- return [
66
- "## Tooling",
67
- "Tool availability (filtered by runtime policy):",
68
- "Tool names are case-sensitive. Call tools exactly as listed.",
69
- toolLines.join("\n"),
70
- "",
71
- ].join("\n");
72
- }
73
- function buildSafetySection() {
74
- return [
75
- "## Safety",
76
- "You have no independent goals: do not pursue self-preservation, replication, resource acquisition, or power-seeking; avoid long-term plans beyond the user's request.",
77
- "Prioritize safety and human oversight over completion; if instructions conflict, pause and ask; comply with stop/pause/audit requests and never bypass safeguards.",
78
- "Do not attempt to bypass approvals, safety rails, or access boundaries.",
79
- "Never print, reveal, or echo environment variable values. If configuration must be shown, use placeholders plus brief meanings instead, such as {{API_KEY}}: model access credential.",
80
- "",
81
- ].join("\n");
82
- }
83
- function buildToolCallStyleSection(isMinimal) {
84
- if (isMinimal)
85
- return "";
86
- return [
87
- "## Tool Call Style",
88
- "Default: call routine low-risk tools directly without narrating every step.",
89
- "Narrate briefly when actions are sensitive, long-running, or likely surprising.",
90
- "When approvals are required, keep the command text exact and complete.",
91
- "",
92
- ].join("\n");
93
- }
94
- function buildSkillsSection(skills) {
95
- if (skills.length === 0)
96
- return "";
97
- const skillEntries = skills
98
- .map((skill) => [
99
- " <skill>",
100
- ` <name>${skill.name}</name>`,
101
- ` <description>${skill.description}</description>`,
102
- ` <location>${skill.location}</location>`,
103
- " </skill>",
104
- ].join("\n"))
105
- .join("\n");
106
- const availableSkills = `<available_skills>\n${skillEntries}\n</available_skills>`;
107
- return [
108
- "## Skills (mandatory)",
109
- "Before replying: scan <available_skills> <description> entries.",
110
- "- If exactly one skill clearly applies: read its SKILL.md at <location> with `read_file`, then follow it.",
111
- "- If multiple could apply: choose the most specific one, then read/follow it.",
112
- "- If none clearly apply: do not read any SKILL.md.",
113
- "Constraints: never read more than one skill up front; only read after selecting.",
114
- availableSkills,
115
- "",
116
- ].join("\n");
117
- }
118
- function buildMemoryWriteSection() {
119
- return [
120
- "## Memory Write",
121
- "When the user asks to remember something or new long-term memory is needed, you must use memory_append. Do not use write_file or edit_file for memory writes.",
122
- "",
123
- ].join("\n");
124
- }
125
- function buildMemorySection(citationsMode) {
126
- return [
127
- "## Memory Recall",
128
- "Before answering anything about prior work, decisions, dates, people, preferences, or todos: run memory_search on MEMORY.md + memory/*.md; then use memory_get to pull only the needed lines. If low confidence after search, say you checked.",
129
- citationsMode === "off"
130
- ? "Citations are disabled: do not include memory file paths or line numbers unless the user explicitly asks."
131
- : "When useful, include memory evidence as Source: <path#line>.",
132
- "",
133
- ].join("\n");
134
- }
135
- function buildWorkspaceSection(params) {
136
- const aimaxDir = `${params.dataDir}/.aimax`;
137
- const workspaceDir = `${params.dataDir}/workspace`;
138
- const hostWorkspaceDir = params.sandboxInfo?.hostWorkspaceDir?.trim() || workspaceDir;
139
- const containerWorkspaceDir = params.sandboxInfo?.containerWorkspaceDir?.trim();
140
- const guidance = params.sandboxInfo?.enabled && containerWorkspaceDir
141
- ? `For file tools, paths resolve against the cloud workspace mount ${hostWorkspaceDir}. For exec commands, use paths under ${containerWorkspaceDir} (or relative paths from there). Prefer relative paths whenever possible.`
142
- : "This cloud workspace is mounted user storage. Prefer relative paths to keep file tools and shell commands aligned.";
143
- return [
144
- "## Workspace",
145
- `Your cloud working directory is: ${hostWorkspaceDir}`,
146
- guidance,
147
- `User identity, memory, and agent state live under ${aimaxDir}, not inside the cloud workspace.`,
148
- `Files such as AGENTS.md, SOUL.md, TOOLS.md, IDENTITY.md, USER.md, HEARTBEAT.md, MEMORY.md, and the memory/ directory belong under ${aimaxDir}.`,
149
- `Only create or update those files at their real .aimax paths. Never create cloud workspace copies like ${hostWorkspaceDir}/AGENTS.md or ${hostWorkspaceDir}/MEMORY.md unless the user explicitly asks for separate cloud documents.`,
150
- "",
151
- ].join("\n");
152
- }
153
- function buildSandboxSection(sandboxInfo) {
154
- if (!sandboxInfo?.enabled)
155
- return "";
156
- const lines = [
157
- "## Sandbox",
158
- "You are running in a containerized cloud CLI runtime.",
159
- ];
160
- if (sandboxInfo.containerWorkspaceDir?.trim()) {
161
- lines.push(`Container workdir: ${sandboxInfo.containerWorkspaceDir.trim()}`);
162
- }
163
- if (sandboxInfo.hostWorkspaceDir?.trim()) {
164
- lines.push(`Host-mounted workspace: ${sandboxInfo.hostWorkspaceDir.trim()}`);
165
- }
166
- lines.push("");
167
- return lines.join("\n");
168
- }
169
- function buildDateTimeSection(params) {
170
- const parts = [];
171
- if (params.timezone) {
172
- parts.push(`Time zone: ${params.timezone}`);
173
- }
174
- if (params.currentDate) {
175
- parts.push(`Current date: ${params.currentDate}`);
176
- }
177
- if (parts.length === 0)
178
- return "";
179
- return ["## Current Date & Time", ...parts, ""].join("\n");
180
- }
181
- function buildMessagingSection(params) {
182
- if (params.isMinimal || !params.enabled)
183
- return "";
184
- const channels = (params.channels ?? []).map((channel) => channel.trim()).filter(Boolean);
185
- const channelsLine = channels.length > 0 ? `Configured channels: ${channels.join(" | ")}` : "";
186
- return [
187
- "## Messaging",
188
- "Reply in the current session for user-visible responses.",
189
- "Use subagent tools for delegated long-running tasks and report concise progress back in this session.",
190
- "Do not use shell/network commands to bypass the platform messaging pipeline.",
191
- channelsLine,
192
- "",
193
- ]
194
- .filter(Boolean)
195
- .join("\n");
196
- }
197
- function buildDocsSection(params) {
198
- if (params.isMinimal)
199
- return "";
200
- const docs = params.docs;
201
- const lines = [
202
- "## Documentation",
203
- docs?.localPath ? `Cloud docs mount: ${docs.localPath}` : "",
204
- docs?.webUrl ? `Docs mirror: ${docs.webUrl}` : "",
205
- docs?.sourceUrl ? `Source: ${docs.sourceUrl}` : "",
206
- "For AiMax behavior, configuration, and architecture questions, consult documentation first.",
207
- "",
208
- ].filter(Boolean);
209
- if (lines.length <= 2)
210
- return "";
211
- return lines.join("\n");
212
- }
213
- function buildRuntimeSection(runtimeInfo) {
214
- if (!runtimeInfo)
215
- return "";
216
- const parts = [
217
- runtimeInfo.hostname ? `host=${runtimeInfo.hostname}` : "",
218
- runtimeInfo.os ? `os=${runtimeInfo.os}` : "",
219
- runtimeInfo.node ? `node=${runtimeInfo.node}` : "",
220
- runtimeInfo.model ? `model=${runtimeInfo.model}` : "",
221
- ].filter(Boolean);
222
- if (parts.length === 0)
223
- return "";
224
- return ["## Runtime", `Runtime: ${parts.join(" | ")}`, ""].join("\n");
225
- }
226
- function buildSilentRepliesSection(params) {
227
- if (params.isMinimal)
228
- return "";
229
- return [
230
- "## Silent Replies",
231
- "Do not send empty or filler replies.",
232
- "If a tool already delivered the user-visible output, keep your final reply minimal and avoid duplication.",
233
- "",
234
- ].join("\n");
235
- }
236
- function buildHeartbeatsSection(params) {
237
- if (params.isMinimal)
238
- return "";
239
- return [
240
- "## Heartbeats",
241
- `Heartbeat prompt: ${params.heartbeatPrompt?.trim() || DEFAULT_HEARTBEAT_PROMPT}`,
242
- "If a user message matches the heartbeat prompt and nothing needs attention, reply exactly: HEARTBEAT_OK",
243
- 'If something needs attention, do NOT include "HEARTBEAT_OK"; respond with the alert text instead.',
244
- "",
245
- ].join("\n");
246
- }
247
- function buildProjectContextSection(params) {
248
- const contextFiles = params.contextFiles;
249
- const warnings = (params.bootstrapWarnings ?? []).map((w) => w.trim()).filter(Boolean);
250
- if (contextFiles.length === 0 && warnings.length === 0)
251
- return "";
252
- const hasSoulFile = contextFiles.some((f) => {
253
- const baseName = f.path.split("/").pop()?.toLowerCase() ?? "";
254
- return baseName === "soul.md";
255
- });
256
- const lines = ["# Project Context", ""];
257
- if (warnings.length > 0) {
258
- lines.push("⚠ Bootstrap truncation warning:");
259
- for (const warning of warnings) {
260
- lines.push(`- ${warning}`);
261
- }
262
- lines.push("");
263
- }
264
- if (contextFiles.length > 0) {
265
- lines.push("The following project context files have been loaded:");
266
- lines.push("These are source-of-truth cloud files at their shown paths. If you update them, use the exact path shown in the heading, especially for files under .aimax.");
267
- }
268
- if (hasSoulFile) {
269
- lines.push("If SOUL.md is present, embody its persona and tone. Avoid stiff, generic replies; follow its guidance unless higher-priority instructions override it.");
270
- }
271
- lines.push("");
272
- for (const file of contextFiles) {
273
- lines.push(`## ${file.path}`, "", file.content, "");
274
- }
275
- return lines.join("\n");
276
- }
277
- function buildPriorSummarySection(summary) {
278
- if (!summary?.trim())
279
- return "";
280
- return [
281
- "## Prior Conversation Summary",
282
- "The following is a summary of the conversation history that occurred before the current context window.",
283
- "Use it to maintain continuity with earlier work.",
284
- "",
285
- summary.trim(),
286
- "",
287
- ].join("\n");
288
- }
289
- /**
290
- * Builds the complete system prompt for the agent.
291
- * Assembles all sections in the correct order.
292
- */
293
- export function buildSystemPrompt(params) {
294
- const promptMode = params.promptMode ?? "full";
295
- const isMinimal = promptMode === "minimal";
296
- if (promptMode === "none") {
297
- return "You are a personal assistant running inside AiMax.";
298
- }
299
- const toolNames = params.toolNames && params.toolNames.length > 0
300
- ? params.toolNames
301
- : [...CORE_TOOL_ORDER];
302
- const skills = params.skills ?? [];
303
- const contextFiles = params.contextFiles ?? [];
304
- const sections = [
305
- "You are a personal assistant running inside AiMax.\n",
306
- buildToolingSection({ toolNames, toolSummaries: params.toolSummaries }),
307
- buildToolCallStyleSection(isMinimal),
308
- buildSafetySection(),
309
- buildSkillsSection(skills),
310
- buildMemoryWriteSection(),
311
- buildMemorySection(params.memoryCitationsMode ?? "off"),
312
- buildWorkspaceSection({ dataDir: params.dataDir, sandboxInfo: params.sandboxInfo }),
313
- buildSandboxSection(params.sandboxInfo),
314
- buildDateTimeSection({
315
- currentDate: params.currentDate,
316
- timezone: params.timezone,
317
- }),
318
- buildMessagingSection({
319
- isMinimal,
320
- enabled: params.messaging?.enabled,
321
- channels: params.messaging?.channels,
322
- }),
323
- buildDocsSection({ isMinimal, docs: params.docs }),
324
- buildSilentRepliesSection({ isMinimal }),
325
- buildHeartbeatsSection({ isMinimal, heartbeatPrompt: params.heartbeatPrompt }),
326
- buildRuntimeSection(params.runtimeInfo),
327
- buildProjectContextSection({
328
- contextFiles,
329
- bootstrapWarnings: params.bootstrapWarnings,
330
- }),
331
- buildPriorSummarySection(params.priorConversationSummary),
332
- ];
333
- return sections.filter(Boolean).join("\n");
334
- }
335
- //# sourceMappingURL=builder.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"builder.js","sourceRoot":"","sources":["../../src/system-prompt/builder.ts"],"names":[],"mappings":"AAMA,mDAAmD;AACnD,MAAM,sBAAsB,GAA2B;IACrD,SAAS,EAAE,oBAAoB;IAC/B,UAAU,EAAE,2BAA2B;IACvC,SAAS,EAAE,6BAA6B;IACxC,QAAQ,EAAE,yBAAyB;IACnC,WAAW,EAAE,0BAA0B;IACvC,IAAI,EAAE,oBAAoB;IAC1B,OAAO,EAAE,iCAAiC;IAC1C,aAAa,EAAE,8C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AE,SAAS,EAAE,CAAC;QACxC,sBAAsB,CAAC,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,CAAC,eAAe,EAAE,CAAC;QAC9E,mBAAmB,CAAC,MAAM,CAAC,WAAW,CAAC;QACvC,0BAA0B,CAAC;YACzB,YAAY;YACZ,iBAAiB,EAAE,MAAM,CAAC,iBAAiB;SAC5C,CAAC;QACF,wBAAwB,CAAC,MAAM,CAAC,wBAAwB,CAAC;KAC1D,CAAC;IAEF,OAAO,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC7C,CAAC"}
@@ -1,15 +0,0 @@
1
- import type { AgentTool } from "@mariozechner/pi-agent-core";
2
- type ApplyPatchSummary = {
3
- added: string[];
4
- modified: string[];
5
- deleted: string[];
6
- };
7
- type ApplyPatchDetails = {
8
- summary: ApplyPatchSummary;
9
- };
10
- declare const applyPatchSchema: import("@sinclair/typebox").TObject<{
11
- input: import("@sinclair/typebox").TString;
12
- }>;
13
- export declare function createApplyPatchTool(workspaceDir: string): AgentTool<typeof applyPatchSchema, ApplyPatchDetails>;
14
- export {};
15
- //# sourceMappingURL=apply-patch.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"apply-patch.d.ts","sourceRoot":"","sources":["../../src/tools/apply-patch.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAmB,MAAM,6BAA6B,CAAC;AAuC9E,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,iBAAiB,CAAC;CAC5B,CAAC;AAEF,QAAA,MAAM,gBAAgB;;EAIpB,CAAC;AAoCH,wBAAgB,oBAAoB,CAClC,YAAY,EAAE,MAAM,GACnB,SAAS,CAAC,OAAO,gBAAgB,EAAE,iBAAiB,CAAC,CA+EvD"}