@vinhnt-sdk/core 0.1.0

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 (575) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +57 -0
  3. package/dist/agent/agent-def.d.ts +11 -0
  4. package/dist/agent/agent-def.d.ts.map +1 -0
  5. package/dist/agent/agent-def.js +2 -0
  6. package/dist/agent/agent-def.js.map +1 -0
  7. package/dist/agent/agent-factory.d.ts +21 -0
  8. package/dist/agent/agent-factory.d.ts.map +1 -0
  9. package/dist/agent/agent-factory.js +119 -0
  10. package/dist/agent/agent-factory.js.map +1 -0
  11. package/dist/agent/agent-file-loader.d.ts +46 -0
  12. package/dist/agent/agent-file-loader.d.ts.map +1 -0
  13. package/dist/agent/agent-file-loader.js +111 -0
  14. package/dist/agent/agent-file-loader.js.map +1 -0
  15. package/dist/agent/agent-parser.d.ts +9 -0
  16. package/dist/agent/agent-parser.d.ts.map +1 -0
  17. package/dist/agent/agent-parser.js +70 -0
  18. package/dist/agent/agent-parser.js.map +1 -0
  19. package/dist/agent/agent-registry.d.ts +49 -0
  20. package/dist/agent/agent-registry.d.ts.map +1 -0
  21. package/dist/agent/agent-registry.js +127 -0
  22. package/dist/agent/agent-registry.js.map +1 -0
  23. package/dist/agent/behaviour-profiles.d.ts +11 -0
  24. package/dist/agent/behaviour-profiles.d.ts.map +1 -0
  25. package/dist/agent/behaviour-profiles.js +46 -0
  26. package/dist/agent/behaviour-profiles.js.map +1 -0
  27. package/dist/agent/create-agent-tool.d.ts +20 -0
  28. package/dist/agent/create-agent-tool.d.ts.map +1 -0
  29. package/dist/agent/create-agent-tool.js +108 -0
  30. package/dist/agent/create-agent-tool.js.map +1 -0
  31. package/dist/agent/default-agents.d.ts +5 -0
  32. package/dist/agent/default-agents.d.ts.map +1 -0
  33. package/dist/agent/default-agents.js +38 -0
  34. package/dist/agent/default-agents.js.map +1 -0
  35. package/dist/agent/delegate-batch-tool.d.ts +10 -0
  36. package/dist/agent/delegate-batch-tool.d.ts.map +1 -0
  37. package/dist/agent/delegate-batch-tool.js +48 -0
  38. package/dist/agent/delegate-batch-tool.js.map +1 -0
  39. package/dist/agent/delegate-tool.d.ts +13 -0
  40. package/dist/agent/delegate-tool.d.ts.map +1 -0
  41. package/dist/agent/delegate-tool.js +49 -0
  42. package/dist/agent/delegate-tool.js.map +1 -0
  43. package/dist/agent/dynamic-registry.d.ts +30 -0
  44. package/dist/agent/dynamic-registry.d.ts.map +1 -0
  45. package/dist/agent/dynamic-registry.js +87 -0
  46. package/dist/agent/dynamic-registry.js.map +1 -0
  47. package/dist/agent/execution-engine.d.ts +25 -0
  48. package/dist/agent/execution-engine.d.ts.map +1 -0
  49. package/dist/agent/execution-engine.js +80 -0
  50. package/dist/agent/execution-engine.js.map +1 -0
  51. package/dist/agent/list-agents-tool.d.ts +4 -0
  52. package/dist/agent/list-agents-tool.d.ts.map +1 -0
  53. package/dist/agent/list-agents-tool.js +43 -0
  54. package/dist/agent/list-agents-tool.js.map +1 -0
  55. package/dist/agent/spawn-agent-tool.d.ts +15 -0
  56. package/dist/agent/spawn-agent-tool.d.ts.map +1 -0
  57. package/dist/agent/spawn-agent-tool.js +77 -0
  58. package/dist/agent/spawn-agent-tool.js.map +1 -0
  59. package/dist/crypto/password.d.ts +11 -0
  60. package/dist/crypto/password.d.ts.map +1 -0
  61. package/dist/crypto/password.js +44 -0
  62. package/dist/crypto/password.js.map +1 -0
  63. package/dist/event-bus/bridge.d.ts +19 -0
  64. package/dist/event-bus/bridge.d.ts.map +1 -0
  65. package/dist/event-bus/bridge.js +48 -0
  66. package/dist/event-bus/bridge.js.map +1 -0
  67. package/dist/event-bus/global-bus.d.ts +30 -0
  68. package/dist/event-bus/global-bus.d.ts.map +1 -0
  69. package/dist/event-bus/global-bus.js +92 -0
  70. package/dist/event-bus/global-bus.js.map +1 -0
  71. package/dist/event-bus/in-memory-bus.d.ts +19 -0
  72. package/dist/event-bus/in-memory-bus.d.ts.map +1 -0
  73. package/dist/event-bus/in-memory-bus.js +97 -0
  74. package/dist/event-bus/in-memory-bus.js.map +1 -0
  75. package/dist/event-bus/index.d.ts +5 -0
  76. package/dist/event-bus/index.d.ts.map +1 -0
  77. package/dist/event-bus/index.js +4 -0
  78. package/dist/event-bus/index.js.map +1 -0
  79. package/dist/event-bus/types.d.ts +20 -0
  80. package/dist/event-bus/types.d.ts.map +1 -0
  81. package/dist/event-bus/types.js +2 -0
  82. package/dist/event-bus/types.js.map +1 -0
  83. package/dist/fakes/fake-agent-registry.d.ts +17 -0
  84. package/dist/fakes/fake-agent-registry.d.ts.map +1 -0
  85. package/dist/fakes/fake-agent-registry.js +70 -0
  86. package/dist/fakes/fake-agent-registry.js.map +1 -0
  87. package/dist/fakes/fake-approval-store.d.ts +27 -0
  88. package/dist/fakes/fake-approval-store.d.ts.map +1 -0
  89. package/dist/fakes/fake-approval-store.js +66 -0
  90. package/dist/fakes/fake-approval-store.js.map +1 -0
  91. package/dist/fakes/fake-model.d.ts +37 -0
  92. package/dist/fakes/fake-model.d.ts.map +1 -0
  93. package/dist/fakes/fake-model.js +63 -0
  94. package/dist/fakes/fake-model.js.map +1 -0
  95. package/dist/fakes/fake-store.d.ts +16 -0
  96. package/dist/fakes/fake-store.d.ts.map +1 -0
  97. package/dist/fakes/fake-store.js +61 -0
  98. package/dist/fakes/fake-store.js.map +1 -0
  99. package/dist/fakes/fake-tool-context.d.ts +28 -0
  100. package/dist/fakes/fake-tool-context.d.ts.map +1 -0
  101. package/dist/fakes/fake-tool-context.js +34 -0
  102. package/dist/fakes/fake-tool-context.js.map +1 -0
  103. package/dist/fakes/fake-tool.d.ts +22 -0
  104. package/dist/fakes/fake-tool.d.ts.map +1 -0
  105. package/dist/fakes/fake-tool.js +27 -0
  106. package/dist/fakes/fake-tool.js.map +1 -0
  107. package/dist/fakes/index.d.ts +7 -0
  108. package/dist/fakes/index.d.ts.map +1 -0
  109. package/dist/fakes/index.js +7 -0
  110. package/dist/fakes/index.js.map +1 -0
  111. package/dist/index.d.ts +111 -0
  112. package/dist/index.d.ts.map +1 -0
  113. package/dist/index.js +72 -0
  114. package/dist/index.js.map +1 -0
  115. package/dist/internal/index.d.ts +5 -0
  116. package/dist/internal/index.d.ts.map +1 -0
  117. package/dist/internal/index.js +8 -0
  118. package/dist/internal/index.js.map +1 -0
  119. package/dist/kernel/approval-handler.d.ts +17 -0
  120. package/dist/kernel/approval-handler.d.ts.map +1 -0
  121. package/dist/kernel/approval-handler.js +28 -0
  122. package/dist/kernel/approval-handler.js.map +1 -0
  123. package/dist/kernel/circuit-breaker.d.ts +25 -0
  124. package/dist/kernel/circuit-breaker.d.ts.map +1 -0
  125. package/dist/kernel/circuit-breaker.js +88 -0
  126. package/dist/kernel/circuit-breaker.js.map +1 -0
  127. package/dist/kernel/context-manager.d.ts +29 -0
  128. package/dist/kernel/context-manager.d.ts.map +1 -0
  129. package/dist/kernel/context-manager.js +64 -0
  130. package/dist/kernel/context-manager.js.map +1 -0
  131. package/dist/kernel/kernel-error.d.ts +7 -0
  132. package/dist/kernel/kernel-error.d.ts.map +1 -0
  133. package/dist/kernel/kernel-error.js +12 -0
  134. package/dist/kernel/kernel-error.js.map +1 -0
  135. package/dist/kernel/kernel-session.d.ts +30 -0
  136. package/dist/kernel/kernel-session.d.ts.map +1 -0
  137. package/dist/kernel/kernel-session.js +92 -0
  138. package/dist/kernel/kernel-session.js.map +1 -0
  139. package/dist/kernel/kernel-types.d.ts +72 -0
  140. package/dist/kernel/kernel-types.d.ts.map +1 -0
  141. package/dist/kernel/kernel-types.js +2 -0
  142. package/dist/kernel/kernel-types.js.map +1 -0
  143. package/dist/kernel/kernel-utils.d.ts +29 -0
  144. package/dist/kernel/kernel-utils.d.ts.map +1 -0
  145. package/dist/kernel/kernel-utils.js +74 -0
  146. package/dist/kernel/kernel-utils.js.map +1 -0
  147. package/dist/kernel/kernel.d.ts +150 -0
  148. package/dist/kernel/kernel.d.ts.map +1 -0
  149. package/dist/kernel/kernel.js +536 -0
  150. package/dist/kernel/kernel.js.map +1 -0
  151. package/dist/kernel/max-steps-prompt.d.ts +3 -0
  152. package/dist/kernel/max-steps-prompt.d.ts.map +1 -0
  153. package/dist/kernel/max-steps-prompt.js +13 -0
  154. package/dist/kernel/max-steps-prompt.js.map +1 -0
  155. package/dist/kernel/model-caller.d.ts +35 -0
  156. package/dist/kernel/model-caller.d.ts.map +1 -0
  157. package/dist/kernel/model-caller.js +196 -0
  158. package/dist/kernel/model-caller.js.map +1 -0
  159. package/dist/kernel/permission-gate.d.ts +74 -0
  160. package/dist/kernel/permission-gate.d.ts.map +1 -0
  161. package/dist/kernel/permission-gate.js +258 -0
  162. package/dist/kernel/permission-gate.js.map +1 -0
  163. package/dist/kernel/run-loop.d.ts +69 -0
  164. package/dist/kernel/run-loop.d.ts.map +1 -0
  165. package/dist/kernel/run-loop.js +437 -0
  166. package/dist/kernel/run-loop.js.map +1 -0
  167. package/dist/kernel/run-orchestrator.d.ts +66 -0
  168. package/dist/kernel/run-orchestrator.d.ts.map +1 -0
  169. package/dist/kernel/run-orchestrator.js +182 -0
  170. package/dist/kernel/run-orchestrator.js.map +1 -0
  171. package/dist/kernel/run-state.d.ts +25 -0
  172. package/dist/kernel/run-state.d.ts.map +1 -0
  173. package/dist/kernel/run-state.js +86 -0
  174. package/dist/kernel/run-state.js.map +1 -0
  175. package/dist/kernel/self-correction.d.ts +27 -0
  176. package/dist/kernel/self-correction.d.ts.map +1 -0
  177. package/dist/kernel/self-correction.js +80 -0
  178. package/dist/kernel/self-correction.js.map +1 -0
  179. package/dist/kernel/state-machine.d.ts +4 -0
  180. package/dist/kernel/state-machine.d.ts.map +1 -0
  181. package/dist/kernel/state-machine.js +18 -0
  182. package/dist/kernel/state-machine.js.map +1 -0
  183. package/dist/kernel/step-executor.d.ts +72 -0
  184. package/dist/kernel/step-executor.d.ts.map +1 -0
  185. package/dist/kernel/step-executor.js +301 -0
  186. package/dist/kernel/step-executor.js.map +1 -0
  187. package/dist/kernel/step-runner.d.ts +57 -0
  188. package/dist/kernel/step-runner.d.ts.map +1 -0
  189. package/dist/kernel/step-runner.js +124 -0
  190. package/dist/kernel/step-runner.js.map +1 -0
  191. package/dist/kernel/sub-agent-runner.d.ts +45 -0
  192. package/dist/kernel/sub-agent-runner.d.ts.map +1 -0
  193. package/dist/kernel/sub-agent-runner.js +128 -0
  194. package/dist/kernel/sub-agent-runner.js.map +1 -0
  195. package/dist/kernel/termination.d.ts +85 -0
  196. package/dist/kernel/termination.d.ts.map +1 -0
  197. package/dist/kernel/termination.js +89 -0
  198. package/dist/kernel/termination.js.map +1 -0
  199. package/dist/kernel/tool-context-builder.d.ts +15 -0
  200. package/dist/kernel/tool-context-builder.d.ts.map +1 -0
  201. package/dist/kernel/tool-context-builder.js +23 -0
  202. package/dist/kernel/tool-context-builder.js.map +1 -0
  203. package/dist/kernel/tool-error-router.d.ts +25 -0
  204. package/dist/kernel/tool-error-router.d.ts.map +1 -0
  205. package/dist/kernel/tool-error-router.js +102 -0
  206. package/dist/kernel/tool-error-router.js.map +1 -0
  207. package/dist/kernel/tool-result-processor.d.ts +22 -0
  208. package/dist/kernel/tool-result-processor.d.ts.map +1 -0
  209. package/dist/kernel/tool-result-processor.js +47 -0
  210. package/dist/kernel/tool-result-processor.js.map +1 -0
  211. package/dist/kernel/tool-saga.d.ts +24 -0
  212. package/dist/kernel/tool-saga.d.ts.map +1 -0
  213. package/dist/kernel/tool-saga.js +59 -0
  214. package/dist/kernel/tool-saga.js.map +1 -0
  215. package/dist/knowledge/approval.d.ts +19 -0
  216. package/dist/knowledge/approval.d.ts.map +1 -0
  217. package/dist/knowledge/approval.js +60 -0
  218. package/dist/knowledge/approval.js.map +1 -0
  219. package/dist/knowledge/compressor.d.ts +46 -0
  220. package/dist/knowledge/compressor.d.ts.map +1 -0
  221. package/dist/knowledge/compressor.js +86 -0
  222. package/dist/knowledge/compressor.js.map +1 -0
  223. package/dist/knowledge/index.d.ts +16 -0
  224. package/dist/knowledge/index.d.ts.map +1 -0
  225. package/dist/knowledge/index.js +10 -0
  226. package/dist/knowledge/index.js.map +1 -0
  227. package/dist/knowledge/learning-engine.d.ts +47 -0
  228. package/dist/knowledge/learning-engine.d.ts.map +1 -0
  229. package/dist/knowledge/learning-engine.js +83 -0
  230. package/dist/knowledge/learning-engine.js.map +1 -0
  231. package/dist/knowledge/llm-compactor.d.ts +25 -0
  232. package/dist/knowledge/llm-compactor.d.ts.map +1 -0
  233. package/dist/knowledge/llm-compactor.js +79 -0
  234. package/dist/knowledge/llm-compactor.js.map +1 -0
  235. package/dist/knowledge/memory-bounded.d.ts +21 -0
  236. package/dist/knowledge/memory-bounded.d.ts.map +1 -0
  237. package/dist/knowledge/memory-bounded.js +63 -0
  238. package/dist/knowledge/memory-bounded.js.map +1 -0
  239. package/dist/knowledge/memory.d.ts +21 -0
  240. package/dist/knowledge/memory.d.ts.map +1 -0
  241. package/dist/knowledge/memory.js +85 -0
  242. package/dist/knowledge/memory.js.map +1 -0
  243. package/dist/knowledge/prompt-builder.d.ts +11 -0
  244. package/dist/knowledge/prompt-builder.d.ts.map +1 -0
  245. package/dist/knowledge/prompt-builder.js +23 -0
  246. package/dist/knowledge/prompt-builder.js.map +1 -0
  247. package/dist/knowledge/review.d.ts +26 -0
  248. package/dist/knowledge/review.d.ts.map +1 -0
  249. package/dist/knowledge/review.js +69 -0
  250. package/dist/knowledge/review.js.map +1 -0
  251. package/dist/knowledge/tool.d.ts +4 -0
  252. package/dist/knowledge/tool.d.ts.map +1 -0
  253. package/dist/knowledge/tool.js +27 -0
  254. package/dist/knowledge/tool.js.map +1 -0
  255. package/dist/knowledge/types.d.ts +27 -0
  256. package/dist/knowledge/types.d.ts.map +1 -0
  257. package/dist/knowledge/types.js +2 -0
  258. package/dist/knowledge/types.js.map +1 -0
  259. package/dist/logger.d.ts +11 -0
  260. package/dist/logger.d.ts.map +1 -0
  261. package/dist/logger.js +44 -0
  262. package/dist/logger.js.map +1 -0
  263. package/dist/model.d.ts +90 -0
  264. package/dist/model.d.ts.map +1 -0
  265. package/dist/model.js +13 -0
  266. package/dist/model.js.map +1 -0
  267. package/dist/permission/checker.d.ts +29 -0
  268. package/dist/permission/checker.d.ts.map +1 -0
  269. package/dist/permission/checker.js +102 -0
  270. package/dist/permission/checker.js.map +1 -0
  271. package/dist/permission/evaluator.d.ts +24 -0
  272. package/dist/permission/evaluator.d.ts.map +1 -0
  273. package/dist/permission/evaluator.js +89 -0
  274. package/dist/permission/evaluator.js.map +1 -0
  275. package/dist/permission/permission.d.ts +29 -0
  276. package/dist/permission/permission.d.ts.map +1 -0
  277. package/dist/permission/permission.js +18 -0
  278. package/dist/permission/permission.js.map +1 -0
  279. package/dist/permission/saved.d.ts +34 -0
  280. package/dist/permission/saved.d.ts.map +1 -0
  281. package/dist/permission/saved.js +43 -0
  282. package/dist/permission/saved.js.map +1 -0
  283. package/dist/plugin/manager.d.ts +33 -0
  284. package/dist/plugin/manager.d.ts.map +1 -0
  285. package/dist/plugin/manager.js +114 -0
  286. package/dist/plugin/manager.js.map +1 -0
  287. package/dist/plugin/plugin-file-loader.d.ts +43 -0
  288. package/dist/plugin/plugin-file-loader.d.ts.map +1 -0
  289. package/dist/plugin/plugin-file-loader.js +115 -0
  290. package/dist/plugin/plugin-file-loader.js.map +1 -0
  291. package/dist/plugin/plugin-tool-provider.d.ts +22 -0
  292. package/dist/plugin/plugin-tool-provider.d.ts.map +1 -0
  293. package/dist/plugin/plugin-tool-provider.js +27 -0
  294. package/dist/plugin/plugin-tool-provider.js.map +1 -0
  295. package/dist/plugin.d.ts +130 -0
  296. package/dist/plugin.d.ts.map +1 -0
  297. package/dist/plugin.js +2 -0
  298. package/dist/plugin.js.map +1 -0
  299. package/dist/session/compaction.d.ts +9 -0
  300. package/dist/session/compaction.d.ts.map +1 -0
  301. package/dist/session/compaction.js +2 -0
  302. package/dist/session/compaction.js.map +1 -0
  303. package/dist/session/durable-reload.d.ts +41 -0
  304. package/dist/session/durable-reload.d.ts.map +1 -0
  305. package/dist/session/durable-reload.js +72 -0
  306. package/dist/session/durable-reload.js.map +1 -0
  307. package/dist/session/in-memory-session-state.d.ts +19 -0
  308. package/dist/session/in-memory-session-state.d.ts.map +1 -0
  309. package/dist/session/in-memory-session-state.js +51 -0
  310. package/dist/session/in-memory-session-state.js.map +1 -0
  311. package/dist/session/null-store.d.ts +30 -0
  312. package/dist/session/null-store.d.ts.map +1 -0
  313. package/dist/session/null-store.js +78 -0
  314. package/dist/session/null-store.js.map +1 -0
  315. package/dist/session/run-coordinator.d.ts +52 -0
  316. package/dist/session/run-coordinator.d.ts.map +1 -0
  317. package/dist/session/run-coordinator.js +127 -0
  318. package/dist/session/run-coordinator.js.map +1 -0
  319. package/dist/session/session-state.d.ts +37 -0
  320. package/dist/session/session-state.d.ts.map +1 -0
  321. package/dist/session/session-state.js +2 -0
  322. package/dist/session/session-state.js.map +1 -0
  323. package/dist/session/session-tree.d.ts +34 -0
  324. package/dist/session/session-tree.d.ts.map +1 -0
  325. package/dist/session/session-tree.js +171 -0
  326. package/dist/session/session-tree.js.map +1 -0
  327. package/dist/session/store.d.ts +45 -0
  328. package/dist/session/store.d.ts.map +1 -0
  329. package/dist/session/store.js +2 -0
  330. package/dist/session/store.js.map +1 -0
  331. package/dist/session/title.d.ts +7 -0
  332. package/dist/session/title.d.ts.map +1 -0
  333. package/dist/session/title.js +22 -0
  334. package/dist/session/title.js.map +1 -0
  335. package/dist/skill/create-skill-tool.d.ts +13 -0
  336. package/dist/skill/create-skill-tool.d.ts.map +1 -0
  337. package/dist/skill/create-skill-tool.js +77 -0
  338. package/dist/skill/create-skill-tool.js.map +1 -0
  339. package/dist/skill/skill-def-registry.d.ts +27 -0
  340. package/dist/skill/skill-def-registry.d.ts.map +1 -0
  341. package/dist/skill/skill-def-registry.js +74 -0
  342. package/dist/skill/skill-def-registry.js.map +1 -0
  343. package/dist/skill/skill-file-loader.d.ts +50 -0
  344. package/dist/skill/skill-file-loader.d.ts.map +1 -0
  345. package/dist/skill/skill-file-loader.js +115 -0
  346. package/dist/skill/skill-file-loader.js.map +1 -0
  347. package/dist/skill/skill-parser.d.ts +7 -0
  348. package/dist/skill/skill-parser.d.ts.map +1 -0
  349. package/dist/skill/skill-parser.js +42 -0
  350. package/dist/skill/skill-parser.js.map +1 -0
  351. package/dist/skill/skill-tool.d.ts +10 -0
  352. package/dist/skill/skill-tool.d.ts.map +1 -0
  353. package/dist/skill/skill-tool.js +100 -0
  354. package/dist/skill/skill-tool.js.map +1 -0
  355. package/dist/system-context/index.d.ts +10 -0
  356. package/dist/system-context/index.d.ts.map +1 -0
  357. package/dist/system-context/index.js +7 -0
  358. package/dist/system-context/index.js.map +1 -0
  359. package/dist/system-context/prompts/anthropic.d.ts +2 -0
  360. package/dist/system-context/prompts/anthropic.d.ts.map +1 -0
  361. package/dist/system-context/prompts/anthropic.js +35 -0
  362. package/dist/system-context/prompts/anthropic.js.map +1 -0
  363. package/dist/system-context/prompts/deepseek.d.ts +2 -0
  364. package/dist/system-context/prompts/deepseek.d.ts.map +1 -0
  365. package/dist/system-context/prompts/deepseek.js +38 -0
  366. package/dist/system-context/prompts/deepseek.js.map +1 -0
  367. package/dist/system-context/prompts/default.d.ts +2 -0
  368. package/dist/system-context/prompts/default.d.ts.map +1 -0
  369. package/dist/system-context/prompts/default.js +43 -0
  370. package/dist/system-context/prompts/default.js.map +1 -0
  371. package/dist/system-context/prompts/gemini.d.ts +2 -0
  372. package/dist/system-context/prompts/gemini.d.ts.map +1 -0
  373. package/dist/system-context/prompts/gemini.js +38 -0
  374. package/dist/system-context/prompts/gemini.js.map +1 -0
  375. package/dist/system-context/prompts/index.d.ts +3 -0
  376. package/dist/system-context/prompts/index.d.ts.map +1 -0
  377. package/dist/system-context/prompts/index.js +24 -0
  378. package/dist/system-context/prompts/index.js.map +1 -0
  379. package/dist/system-context/prompts/openai.d.ts +2 -0
  380. package/dist/system-context/prompts/openai.d.ts.map +1 -0
  381. package/dist/system-context/prompts/openai.js +31 -0
  382. package/dist/system-context/prompts/openai.js.map +1 -0
  383. package/dist/system-context/prompts/system-prompt-source.d.ts +3 -0
  384. package/dist/system-context/prompts/system-prompt-source.d.ts.map +1 -0
  385. package/dist/system-context/prompts/system-prompt-source.js +21 -0
  386. package/dist/system-context/prompts/system-prompt-source.js.map +1 -0
  387. package/dist/system-context/registry.d.ts +3 -0
  388. package/dist/system-context/registry.d.ts.map +1 -0
  389. package/dist/system-context/registry.js +73 -0
  390. package/dist/system-context/registry.js.map +1 -0
  391. package/dist/system-context/sources/agent-source.d.ts +14 -0
  392. package/dist/system-context/sources/agent-source.d.ts.map +1 -0
  393. package/dist/system-context/sources/agent-source.js +50 -0
  394. package/dist/system-context/sources/agent-source.js.map +1 -0
  395. package/dist/system-context/sources/date-source.d.ts +7 -0
  396. package/dist/system-context/sources/date-source.d.ts.map +1 -0
  397. package/dist/system-context/sources/date-source.js +26 -0
  398. package/dist/system-context/sources/date-source.js.map +1 -0
  399. package/dist/system-context/sources/instructions-source.d.ts +8 -0
  400. package/dist/system-context/sources/instructions-source.d.ts.map +1 -0
  401. package/dist/system-context/sources/instructions-source.js +50 -0
  402. package/dist/system-context/sources/instructions-source.js.map +1 -0
  403. package/dist/system-context/sources/skill-guidance-source.d.ts +7 -0
  404. package/dist/system-context/sources/skill-guidance-source.d.ts.map +1 -0
  405. package/dist/system-context/sources/skill-guidance-source.js +41 -0
  406. package/dist/system-context/sources/skill-guidance-source.js.map +1 -0
  407. package/dist/system-context/sources/workspace-source.d.ts +10 -0
  408. package/dist/system-context/sources/workspace-source.d.ts.map +1 -0
  409. package/dist/system-context/sources/workspace-source.js +29 -0
  410. package/dist/system-context/sources/workspace-source.js.map +1 -0
  411. package/dist/system-context/types.d.ts +37 -0
  412. package/dist/system-context/types.d.ts.map +1 -0
  413. package/dist/system-context/types.js +2 -0
  414. package/dist/system-context/types.js.map +1 -0
  415. package/dist/tool/arity.d.ts +22 -0
  416. package/dist/tool/arity.d.ts.map +1 -0
  417. package/dist/tool/arity.js +96 -0
  418. package/dist/tool/arity.js.map +1 -0
  419. package/dist/tool/bridge.d.ts +7 -0
  420. package/dist/tool/bridge.d.ts.map +1 -0
  421. package/dist/tool/bridge.js +48 -0
  422. package/dist/tool/bridge.js.map +1 -0
  423. package/dist/tool/context.d.ts +43 -0
  424. package/dist/tool/context.d.ts.map +1 -0
  425. package/dist/tool/context.js +2 -0
  426. package/dist/tool/context.js.map +1 -0
  427. package/dist/tool/define-tool.d.ts +45 -0
  428. package/dist/tool/define-tool.d.ts.map +1 -0
  429. package/dist/tool/define-tool.js +120 -0
  430. package/dist/tool/define-tool.js.map +1 -0
  431. package/dist/tool/definitions.d.ts +22 -0
  432. package/dist/tool/definitions.d.ts.map +1 -0
  433. package/dist/tool/definitions.js +2 -0
  434. package/dist/tool/definitions.js.map +1 -0
  435. package/dist/tool/description-lint.d.ts +25 -0
  436. package/dist/tool/description-lint.d.ts.map +1 -0
  437. package/dist/tool/description-lint.js +90 -0
  438. package/dist/tool/description-lint.js.map +1 -0
  439. package/dist/tool/diff.d.ts +7 -0
  440. package/dist/tool/diff.d.ts.map +1 -0
  441. package/dist/tool/diff.js +26 -0
  442. package/dist/tool/diff.js.map +1 -0
  443. package/dist/tool/domain.d.ts +39 -0
  444. package/dist/tool/domain.d.ts.map +1 -0
  445. package/dist/tool/domain.js +20 -0
  446. package/dist/tool/domain.js.map +1 -0
  447. package/dist/tool/file-history.d.ts +43 -0
  448. package/dist/tool/file-history.d.ts.map +1 -0
  449. package/dist/tool/file-history.js +55 -0
  450. package/dist/tool/file-history.js.map +1 -0
  451. package/dist/tool/file-tools.d.ts +51 -0
  452. package/dist/tool/file-tools.d.ts.map +1 -0
  453. package/dist/tool/file-tools.js +534 -0
  454. package/dist/tool/file-tools.js.map +1 -0
  455. package/dist/tool/git-tools.d.ts +8 -0
  456. package/dist/tool/git-tools.d.ts.map +1 -0
  457. package/dist/tool/git-tools.js +114 -0
  458. package/dist/tool/git-tools.js.map +1 -0
  459. package/dist/tool/history-hook.d.ts +4 -0
  460. package/dist/tool/history-hook.d.ts.map +1 -0
  461. package/dist/tool/history-hook.js +62 -0
  462. package/dist/tool/history-hook.js.map +1 -0
  463. package/dist/tool/image-tools.d.ts +11 -0
  464. package/dist/tool/image-tools.d.ts.map +1 -0
  465. package/dist/tool/image-tools.js +55 -0
  466. package/dist/tool/image-tools.js.map +1 -0
  467. package/dist/tool/in-memory-tool-registry.d.ts +13 -0
  468. package/dist/tool/in-memory-tool-registry.d.ts.map +1 -0
  469. package/dist/tool/in-memory-tool-registry.js +39 -0
  470. package/dist/tool/in-memory-tool-registry.js.map +1 -0
  471. package/dist/tool/index.d.ts +45 -0
  472. package/dist/tool/index.d.ts.map +1 -0
  473. package/dist/tool/index.js +33 -0
  474. package/dist/tool/index.js.map +1 -0
  475. package/dist/tool/json-schema.d.ts +22 -0
  476. package/dist/tool/json-schema.d.ts.map +1 -0
  477. package/dist/tool/json-schema.js +2 -0
  478. package/dist/tool/json-schema.js.map +1 -0
  479. package/dist/tool/lazy-registry.d.ts +23 -0
  480. package/dist/tool/lazy-registry.d.ts.map +1 -0
  481. package/dist/tool/lazy-registry.js +64 -0
  482. package/dist/tool/lazy-registry.js.map +1 -0
  483. package/dist/tool/policy.d.ts +5 -0
  484. package/dist/tool/policy.d.ts.map +1 -0
  485. package/dist/tool/policy.js +2 -0
  486. package/dist/tool/policy.js.map +1 -0
  487. package/dist/tool/provider-helpers.d.ts +31 -0
  488. package/dist/tool/provider-helpers.d.ts.map +1 -0
  489. package/dist/tool/provider-helpers.js +54 -0
  490. package/dist/tool/provider-helpers.js.map +1 -0
  491. package/dist/tool/provider.d.ts +80 -0
  492. package/dist/tool/provider.d.ts.map +1 -0
  493. package/dist/tool/provider.js +96 -0
  494. package/dist/tool/provider.js.map +1 -0
  495. package/dist/tool/providers/agent-provider.d.ts +26 -0
  496. package/dist/tool/providers/agent-provider.d.ts.map +1 -0
  497. package/dist/tool/providers/agent-provider.js +42 -0
  498. package/dist/tool/providers/agent-provider.js.map +1 -0
  499. package/dist/tool/providers/builtin-provider.d.ts +28 -0
  500. package/dist/tool/providers/builtin-provider.d.ts.map +1 -0
  501. package/dist/tool/providers/builtin-provider.js +67 -0
  502. package/dist/tool/providers/builtin-provider.js.map +1 -0
  503. package/dist/tool/providers/file-loader.d.ts +47 -0
  504. package/dist/tool/providers/file-loader.d.ts.map +1 -0
  505. package/dist/tool/providers/file-loader.js +120 -0
  506. package/dist/tool/providers/file-loader.js.map +1 -0
  507. package/dist/tool/providers/index.d.ts +8 -0
  508. package/dist/tool/providers/index.d.ts.map +1 -0
  509. package/dist/tool/providers/index.js +8 -0
  510. package/dist/tool/providers/index.js.map +1 -0
  511. package/dist/tool/providers/skill-provider.d.ts +23 -0
  512. package/dist/tool/providers/skill-provider.d.ts.map +1 -0
  513. package/dist/tool/providers/skill-provider.js +28 -0
  514. package/dist/tool/providers/skill-provider.js.map +1 -0
  515. package/dist/tool/question-tool.d.ts +15 -0
  516. package/dist/tool/question-tool.d.ts.map +1 -0
  517. package/dist/tool/question-tool.js +51 -0
  518. package/dist/tool/question-tool.js.map +1 -0
  519. package/dist/tool/read-tracker.d.ts +8 -0
  520. package/dist/tool/read-tracker.d.ts.map +1 -0
  521. package/dist/tool/read-tracker.js +33 -0
  522. package/dist/tool/read-tracker.js.map +1 -0
  523. package/dist/tool/registry.d.ts +58 -0
  524. package/dist/tool/registry.d.ts.map +1 -0
  525. package/dist/tool/registry.js +128 -0
  526. package/dist/tool/registry.js.map +1 -0
  527. package/dist/tool/runtime.d.ts +59 -0
  528. package/dist/tool/runtime.d.ts.map +1 -0
  529. package/dist/tool/runtime.js +108 -0
  530. package/dist/tool/runtime.js.map +1 -0
  531. package/dist/tool/sandbox.d.ts +12 -0
  532. package/dist/tool/sandbox.d.ts.map +1 -0
  533. package/dist/tool/sandbox.js +72 -0
  534. package/dist/tool/sandbox.js.map +1 -0
  535. package/dist/tool/search-tools.d.ts +6 -0
  536. package/dist/tool/search-tools.d.ts.map +1 -0
  537. package/dist/tool/search-tools.js +118 -0
  538. package/dist/tool/search-tools.js.map +1 -0
  539. package/dist/tool/shell-tool.d.ts +19 -0
  540. package/dist/tool/shell-tool.d.ts.map +1 -0
  541. package/dist/tool/shell-tool.js +139 -0
  542. package/dist/tool/shell-tool.js.map +1 -0
  543. package/dist/tool/todo-tool.d.ts +2 -0
  544. package/dist/tool/todo-tool.d.ts.map +1 -0
  545. package/dist/tool/todo-tool.js +121 -0
  546. package/dist/tool/todo-tool.js.map +1 -0
  547. package/dist/tool/tool-registry-types.d.ts +14 -0
  548. package/dist/tool/tool-registry-types.d.ts.map +1 -0
  549. package/dist/tool/tool-registry-types.js +2 -0
  550. package/dist/tool/tool-registry-types.js.map +1 -0
  551. package/dist/tool/validate.d.ts +9 -0
  552. package/dist/tool/validate.d.ts.map +1 -0
  553. package/dist/tool/validate.js +26 -0
  554. package/dist/tool/validate.js.map +1 -0
  555. package/dist/tool/web-search-tool.d.ts +24 -0
  556. package/dist/tool/web-search-tool.d.ts.map +1 -0
  557. package/dist/tool/web-search-tool.js +66 -0
  558. package/dist/tool/web-search-tool.js.map +1 -0
  559. package/dist/tool/web-tools.d.ts +10 -0
  560. package/dist/tool/web-tools.d.ts.map +1 -0
  561. package/dist/tool/web-tools.js +61 -0
  562. package/dist/tool/web-tools.js.map +1 -0
  563. package/dist/tracer.d.ts +21 -0
  564. package/dist/tracer.d.ts.map +1 -0
  565. package/dist/tracer.js +62 -0
  566. package/dist/tracer.js.map +1 -0
  567. package/dist/workspace.d.ts +33 -0
  568. package/dist/workspace.d.ts.map +1 -0
  569. package/dist/workspace.js +135 -0
  570. package/dist/workspace.js.map +1 -0
  571. package/dist/yaml-frontmatter.d.ts +5 -0
  572. package/dist/yaml-frontmatter.d.ts.map +1 -0
  573. package/dist/yaml-frontmatter.js +58 -0
  574. package/dist/yaml-frontmatter.js.map +1 -0
  575. package/package.json +108 -0
@@ -0,0 +1,2 @@
1
+ export declare const ANTHROPIC_PROMPT = "You are VNT Agent, an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.\n\nIMPORTANT: You must NEVER generate or guess URLs for the user unless you are confident that the URLs are for helping the user with programming. You may use URLs provided by the user in their messages or local files.\n\n# Tone and style\n- Only use emojis if the user explicitly requests it. Avoid using emojis in all communication unless asked.\n- Keep responses short and direct. Answer the user's question directly, without elaboration, explanation, or details unless asked.\n- Avoid introductions, conclusions, and explanations. One word answers are best when appropriate.\n- Your responses will be displayed on a command line interface. Use GitHub-flavored markdown for formatting.\n\n# Professional objectivity\nPrioritize technical accuracy and truthfulness over validating the user's beliefs. Focus on facts and problem-solving, providing direct, objective technical info without any unnecessary superlatives, praise, or emotional validation. Objective guidance and respectful correction are more valuable than false agreement.\n\n# Following conventions\nWhen making changes to files, first understand the file's code conventions. Mimic code style, use existing libraries and utilities, and follow existing patterns.\n- NEVER assume that a given library is available. Check that this codebase already uses the given library first.\n- When editing code, first look at surrounding context (especially imports) to understand frameworks and libraries in use.\n- Always follow security best practices. Never introduce code that exposes secrets or keys.\n\n# Code style\n- DO NOT ADD comments to code unless the original code already has extensive comments or the user asks.\n- ALWAYS prefer editing existing files. NEVER write new files unless explicitly required or no existing file fits.\n\n# Doing tasks\nWhen performing software engineering tasks:\n1. Search to understand the codebase first.\n2. Implement using available tools.\n3. Verify the solution if possible.\n4. NEVER commit changes unless the user explicitly asks.\n\n# Tool usage policy\n- Prefer search tools over bash for file finding.\n- Batch independent tool calls together.\n- Reference code with `file_path:line_number` pattern.";
2
+ //# sourceMappingURL=anthropic.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"anthropic.d.ts","sourceRoot":"","sources":["../../../src/system-context/prompts/anthropic.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,80EAiC4B,CAAC"}
@@ -0,0 +1,35 @@
1
+ export const ANTHROPIC_PROMPT = `You are VNT Agent, an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.
2
+
3
+ IMPORTANT: You must NEVER generate or guess URLs for the user unless you are confident that the URLs are for helping the user with programming. You may use URLs provided by the user in their messages or local files.
4
+
5
+ # Tone and style
6
+ - Only use emojis if the user explicitly requests it. Avoid using emojis in all communication unless asked.
7
+ - Keep responses short and direct. Answer the user's question directly, without elaboration, explanation, or details unless asked.
8
+ - Avoid introductions, conclusions, and explanations. One word answers are best when appropriate.
9
+ - Your responses will be displayed on a command line interface. Use GitHub-flavored markdown for formatting.
10
+
11
+ # Professional objectivity
12
+ Prioritize technical accuracy and truthfulness over validating the user's beliefs. Focus on facts and problem-solving, providing direct, objective technical info without any unnecessary superlatives, praise, or emotional validation. Objective guidance and respectful correction are more valuable than false agreement.
13
+
14
+ # Following conventions
15
+ When making changes to files, first understand the file's code conventions. Mimic code style, use existing libraries and utilities, and follow existing patterns.
16
+ - NEVER assume that a given library is available. Check that this codebase already uses the given library first.
17
+ - When editing code, first look at surrounding context (especially imports) to understand frameworks and libraries in use.
18
+ - Always follow security best practices. Never introduce code that exposes secrets or keys.
19
+
20
+ # Code style
21
+ - DO NOT ADD comments to code unless the original code already has extensive comments or the user asks.
22
+ - ALWAYS prefer editing existing files. NEVER write new files unless explicitly required or no existing file fits.
23
+
24
+ # Doing tasks
25
+ When performing software engineering tasks:
26
+ 1. Search to understand the codebase first.
27
+ 2. Implement using available tools.
28
+ 3. Verify the solution if possible.
29
+ 4. NEVER commit changes unless the user explicitly asks.
30
+
31
+ # Tool usage policy
32
+ - Prefer search tools over bash for file finding.
33
+ - Batch independent tool calls together.
34
+ - Reference code with \`file_path:line_number\` pattern.`;
35
+ //# sourceMappingURL=anthropic.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"anthropic.js","sourceRoot":"","sources":["../../../src/system-context/prompts/anthropic.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yDAiCyB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const DEEPSEEK_PROMPT = "You are VNT Agent, an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.\n\nIMPORTANT: You must NEVER generate or guess URLs for the user unless you are confident that the URLs are for helping the user with programming. You may use URLs provided by the user in their messages or local files.\n\n# Tone and style\n- Be concise and direct. DeepSeek models are strong at reasoning \u2014 use this for complex analysis, but keep output focused.\n- Avoid long chains of reasoning in visible output. Use tool calls to verify assumptions rather than speculating.\n- Answer the user's question directly, without elaboration or explanation unless asked.\n- Your output is displayed on a command line interface. Use GitHub-flavored markdown.\n- Only use emojis if the user explicitly requests it.\n\n# Action-oriented reasoning\n- Think step by step internally, but take concrete actions (tool calls) to make progress.\n- When analyzing a problem, use search/read tools to gather facts before proposing solutions.\n- After getting tool results, immediately determine the next action rather than narrating what happened.\n- If you're unsure, use a tool to verify rather than asking the user.\n\n# Following conventions\nWhen making changes to files, first understand the file's code conventions. Mimic code style, use existing libraries and utilities, and follow existing patterns.\n- NEVER assume a given library is available. Check the codebase first.\n- When editing code, look at surrounding context (especially imports) to understand frameworks and libraries in use.\n- Always follow security best practices. Never introduce code that exposes secrets or keys.\n\n# Code style\n- DO NOT ADD comments to code unless the original code already has extensive comments or the user asks.\n- ALWAYS prefer editing existing files. NEVER write new files unless explicitly required or no existing file fits.\n\n# Doing tasks\n1. Search to understand the codebase first.\n2. Implement using available tools.\n3. Verify the solution if possible.\n4. NEVER commit changes unless the user explicitly asks.\n\n# Tool usage policy\n- Prefer search tools over bash for file finding.\n- Batch independent tool calls together.\n- Reference code with `file_path:line_number` pattern.";
2
+ //# sourceMappingURL=deepseek.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deepseek.d.ts","sourceRoot":"","sources":["../../../src/system-context/prompts/deepseek.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,uzEAoC6B,CAAC"}
@@ -0,0 +1,38 @@
1
+ export const DEEPSEEK_PROMPT = `You are VNT Agent, an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.
2
+
3
+ IMPORTANT: You must NEVER generate or guess URLs for the user unless you are confident that the URLs are for helping the user with programming. You may use URLs provided by the user in their messages or local files.
4
+
5
+ # Tone and style
6
+ - Be concise and direct. DeepSeek models are strong at reasoning — use this for complex analysis, but keep output focused.
7
+ - Avoid long chains of reasoning in visible output. Use tool calls to verify assumptions rather than speculating.
8
+ - Answer the user's question directly, without elaboration or explanation unless asked.
9
+ - Your output is displayed on a command line interface. Use GitHub-flavored markdown.
10
+ - Only use emojis if the user explicitly requests it.
11
+
12
+ # Action-oriented reasoning
13
+ - Think step by step internally, but take concrete actions (tool calls) to make progress.
14
+ - When analyzing a problem, use search/read tools to gather facts before proposing solutions.
15
+ - After getting tool results, immediately determine the next action rather than narrating what happened.
16
+ - If you're unsure, use a tool to verify rather than asking the user.
17
+
18
+ # Following conventions
19
+ When making changes to files, first understand the file's code conventions. Mimic code style, use existing libraries and utilities, and follow existing patterns.
20
+ - NEVER assume a given library is available. Check the codebase first.
21
+ - When editing code, look at surrounding context (especially imports) to understand frameworks and libraries in use.
22
+ - Always follow security best practices. Never introduce code that exposes secrets or keys.
23
+
24
+ # Code style
25
+ - DO NOT ADD comments to code unless the original code already has extensive comments or the user asks.
26
+ - ALWAYS prefer editing existing files. NEVER write new files unless explicitly required or no existing file fits.
27
+
28
+ # Doing tasks
29
+ 1. Search to understand the codebase first.
30
+ 2. Implement using available tools.
31
+ 3. Verify the solution if possible.
32
+ 4. NEVER commit changes unless the user explicitly asks.
33
+
34
+ # Tool usage policy
35
+ - Prefer search tools over bash for file finding.
36
+ - Batch independent tool calls together.
37
+ - Reference code with \`file_path:line_number\` pattern.`;
38
+ //# sourceMappingURL=deepseek.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deepseek.js","sourceRoot":"","sources":["../../../src/system-context/prompts/deepseek.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yDAoC0B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const DEFAULT_PROMPT = "You are VNT Agent, an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.\n\nIMPORTANT: You must NEVER generate or guess URLs for the user unless you are confident that the URLs are for helping the user with programming. You may use URLs provided by the user in their messages or local files.\n\n# Tone and style\nYou should be concise, direct, and to the point. Remember that your output will be displayed on a command line interface. Your responses can use GitHub-flavored markdown for formatting.\nOutput text to communicate with the user; all text you output outside of tool use is displayed to the user. Only use tools to complete tasks. Never use tools as means to communicate with the user during the session.\nIf you cannot or will not help the user with something, please offer helpful alternatives if possible, and otherwise keep your response to 1-2 sentences.\nOnly use emojis if the user explicitly requests it. Avoid using emojis in all communication unless asked.\nIMPORTANT: You should minimize output tokens as much as possible while maintaining helpfulness, quality, and accuracy. Only address the specific query or task at hand, avoiding tangential information unless absolutely critical for completing the request.\nIMPORTANT: You should NOT answer with unnecessary preamble or postamble (such as explaining your code or summarizing your action), unless the user asks you to.\nIMPORTANT: Keep your responses short. You MUST answer concisely with fewer than 4 lines (not including tool use or code generation), unless user asks for detail. Answer the user's question directly, without elaboration, explanation, or details. One word answers are best. Avoid introductions, conclusions, and explanations.\n\n# Proactiveness\nYou are allowed to be proactive, but only when the user asks you to do something. You should strive to strike a balance between:\n1. Doing the right thing when asked, including taking actions and follow-up actions\n2. Not surprising the user with actions you take without asking\nFor example, if the user asks you how to approach something, you should do your best to answer their question first, and not immediately jump into taking actions.\n3. Do not add additional code explanation summary unless requested by the user. After working on a file, just stop, rather than providing an explanation of what you did.\n\n# Following conventions\nWhen making changes to files, first understand the file's code conventions. Mimic code style, use existing libraries and utilities, and follow existing patterns.\n- NEVER assume that a given library is available, even if it is well known. Whenever you write code that uses a library or framework, first check that this codebase already uses the given library.\n- When you create a new component, first look at existing components to see how they're written.\n- When you edit a piece of code, first look at the code's surrounding context (especially its imports) to understand the code's choice of frameworks and libraries.\n- Always follow security best practices. Never introduce code that exposes or logs secrets and keys. Never commit secrets or keys to the repository.\n\n# Code style\n- DO NOT ADD comments to code unless the original code already has extensive comments or the user asks you to add them.\n- ALWAYS prefer editing existing files in the codebase. NEVER write new files unless explicitly required or there is no existing file that fits.\n\n# Doing tasks\nWhen performing software engineering tasks:\n1. Use the available search tools to understand the codebase and the user's query.\n2. Implement the solution using all tools available to you.\n3. Verify the solution if possible.\n4. NEVER commit changes unless the user explicitly asks you to.\n\n# Tool usage policy\n- When doing file search, prefer to use search tools rather than bash commands.\n- When making multiple tool calls that are independent, batch them together.\n- When referencing specific functions or pieces of code, include the pattern `file_path:line_number` to allow the user to easily navigate to the source code location.";
2
+ //# sourceMappingURL=default.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../src/system-context/prompts/default.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,umIAyC8I,CAAC"}
@@ -0,0 +1,43 @@
1
+ export const DEFAULT_PROMPT = `You are VNT Agent, an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.
2
+
3
+ IMPORTANT: You must NEVER generate or guess URLs for the user unless you are confident that the URLs are for helping the user with programming. You may use URLs provided by the user in their messages or local files.
4
+
5
+ # Tone and style
6
+ You should be concise, direct, and to the point. Remember that your output will be displayed on a command line interface. Your responses can use GitHub-flavored markdown for formatting.
7
+ Output text to communicate with the user; all text you output outside of tool use is displayed to the user. Only use tools to complete tasks. Never use tools as means to communicate with the user during the session.
8
+ If you cannot or will not help the user with something, please offer helpful alternatives if possible, and otherwise keep your response to 1-2 sentences.
9
+ Only use emojis if the user explicitly requests it. Avoid using emojis in all communication unless asked.
10
+ IMPORTANT: You should minimize output tokens as much as possible while maintaining helpfulness, quality, and accuracy. Only address the specific query or task at hand, avoiding tangential information unless absolutely critical for completing the request.
11
+ IMPORTANT: You should NOT answer with unnecessary preamble or postamble (such as explaining your code or summarizing your action), unless the user asks you to.
12
+ IMPORTANT: Keep your responses short. You MUST answer concisely with fewer than 4 lines (not including tool use or code generation), unless user asks for detail. Answer the user's question directly, without elaboration, explanation, or details. One word answers are best. Avoid introductions, conclusions, and explanations.
13
+
14
+ # Proactiveness
15
+ You are allowed to be proactive, but only when the user asks you to do something. You should strive to strike a balance between:
16
+ 1. Doing the right thing when asked, including taking actions and follow-up actions
17
+ 2. Not surprising the user with actions you take without asking
18
+ For example, if the user asks you how to approach something, you should do your best to answer their question first, and not immediately jump into taking actions.
19
+ 3. Do not add additional code explanation summary unless requested by the user. After working on a file, just stop, rather than providing an explanation of what you did.
20
+
21
+ # Following conventions
22
+ When making changes to files, first understand the file's code conventions. Mimic code style, use existing libraries and utilities, and follow existing patterns.
23
+ - NEVER assume that a given library is available, even if it is well known. Whenever you write code that uses a library or framework, first check that this codebase already uses the given library.
24
+ - When you create a new component, first look at existing components to see how they're written.
25
+ - When you edit a piece of code, first look at the code's surrounding context (especially its imports) to understand the code's choice of frameworks and libraries.
26
+ - Always follow security best practices. Never introduce code that exposes or logs secrets and keys. Never commit secrets or keys to the repository.
27
+
28
+ # Code style
29
+ - DO NOT ADD comments to code unless the original code already has extensive comments or the user asks you to add them.
30
+ - ALWAYS prefer editing existing files in the codebase. NEVER write new files unless explicitly required or there is no existing file that fits.
31
+
32
+ # Doing tasks
33
+ When performing software engineering tasks:
34
+ 1. Use the available search tools to understand the codebase and the user's query.
35
+ 2. Implement the solution using all tools available to you.
36
+ 3. Verify the solution if possible.
37
+ 4. NEVER commit changes unless the user explicitly asks you to.
38
+
39
+ # Tool usage policy
40
+ - When doing file search, prefer to use search tools rather than bash commands.
41
+ - When making multiple tool calls that are independent, batch them together.
42
+ - When referencing specific functions or pieces of code, include the pattern \`file_path:line_number\` to allow the user to easily navigate to the source code location.`;
43
+ //# sourceMappingURL=default.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"default.js","sourceRoot":"","sources":["../../../src/system-context/prompts/default.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,cAAc,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yKAyC2I,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const GEMINI_PROMPT = "You are VNT Agent, an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.\n\nIMPORTANT: You must NEVER generate or guess URLs for the user unless you are confident that the URLs are for helping the user with programming. You may use URLs provided by the user in their messages or local files.\n\n# Tone and style\n- Be extremely concise and direct. Gemini responses tend to be verbose by default \u2014 actively counter this.\n- Avoid introductions, conclusions, explanations, and summaries unless the user explicitly asks.\n- Answer in as few words as possible. One-word answers are best when appropriate.\n- Your output is displayed on a command line interface. Use GitHub-flavored markdown.\n- Only use emojis if the user explicitly requests it.\n\n# Focus on action\n- Use tools immediately rather than explaining what you plan to do.\n- After running a tool, process the result and take the next step without commentary.\n- If the user asks a question, answer it directly rather than describing your approach.\n- NEVER add a \"summary\" or \"overview\" of what you did unless asked.\n\n# Following conventions\nWhen making changes to files, first understand the file's code conventions. Mimic code style, use existing libraries and utilities, and follow existing patterns.\n- NEVER assume a given library is available. Check the codebase first.\n- When editing code, look at surrounding context (especially imports) to understand frameworks and libraries in use.\n- Always follow security best practices. Never introduce code that exposes secrets or keys.\n\n# Code style\n- DO NOT ADD comments to code unless the original code already has extensive comments or the user asks.\n- ALWAYS prefer editing existing files. NEVER write new files unless explicitly required or no existing file fits.\n\n# Doing tasks\n1. Search to understand the codebase first.\n2. Implement using available tools.\n3. Verify the solution if possible.\n4. NEVER commit changes unless the user explicitly asks.\n\n# Tool usage policy\n- Prefer search tools over bash for file finding.\n- Batch independent tool calls together.\n- Reference code with `file_path:line_number` pattern.";
2
+ //# sourceMappingURL=gemini.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gemini.d.ts","sourceRoot":"","sources":["../../../src/system-context/prompts/gemini.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,ytEAoC+B,CAAC"}
@@ -0,0 +1,38 @@
1
+ export const GEMINI_PROMPT = `You are VNT Agent, an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.
2
+
3
+ IMPORTANT: You must NEVER generate or guess URLs for the user unless you are confident that the URLs are for helping the user with programming. You may use URLs provided by the user in their messages or local files.
4
+
5
+ # Tone and style
6
+ - Be extremely concise and direct. Gemini responses tend to be verbose by default — actively counter this.
7
+ - Avoid introductions, conclusions, explanations, and summaries unless the user explicitly asks.
8
+ - Answer in as few words as possible. One-word answers are best when appropriate.
9
+ - Your output is displayed on a command line interface. Use GitHub-flavored markdown.
10
+ - Only use emojis if the user explicitly requests it.
11
+
12
+ # Focus on action
13
+ - Use tools immediately rather than explaining what you plan to do.
14
+ - After running a tool, process the result and take the next step without commentary.
15
+ - If the user asks a question, answer it directly rather than describing your approach.
16
+ - NEVER add a "summary" or "overview" of what you did unless asked.
17
+
18
+ # Following conventions
19
+ When making changes to files, first understand the file's code conventions. Mimic code style, use existing libraries and utilities, and follow existing patterns.
20
+ - NEVER assume a given library is available. Check the codebase first.
21
+ - When editing code, look at surrounding context (especially imports) to understand frameworks and libraries in use.
22
+ - Always follow security best practices. Never introduce code that exposes secrets or keys.
23
+
24
+ # Code style
25
+ - DO NOT ADD comments to code unless the original code already has extensive comments or the user asks.
26
+ - ALWAYS prefer editing existing files. NEVER write new files unless explicitly required or no existing file fits.
27
+
28
+ # Doing tasks
29
+ 1. Search to understand the codebase first.
30
+ 2. Implement using available tools.
31
+ 3. Verify the solution if possible.
32
+ 4. NEVER commit changes unless the user explicitly asks.
33
+
34
+ # Tool usage policy
35
+ - Prefer search tools over bash for file finding.
36
+ - Batch independent tool calls together.
37
+ - Reference code with \`file_path:line_number\` pattern.`;
38
+ //# sourceMappingURL=gemini.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gemini.js","sourceRoot":"","sources":["../../../src/system-context/prompts/gemini.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yDAoC4B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export type PromptVariant = "default" | "anthropic" | "openai" | "gemini" | "deepseek";
2
+ export declare function selectPrompt(modelId?: string): string;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/system-context/prompts/index.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;AAEvF,wBAAgB,YAAY,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAkBrD"}
@@ -0,0 +1,24 @@
1
+ import { DEFAULT_PROMPT } from "./default.js";
2
+ import { ANTHROPIC_PROMPT } from "./anthropic.js";
3
+ import { OPENAI_PROMPT } from "./openai.js";
4
+ import { GEMINI_PROMPT } from "./gemini.js";
5
+ import { DEEPSEEK_PROMPT } from "./deepseek.js";
6
+ export function selectPrompt(modelId) {
7
+ if (!modelId)
8
+ return DEFAULT_PROMPT;
9
+ const id = modelId.toLowerCase();
10
+ if (id.includes("claude") || id.includes("anthropic")) {
11
+ return ANTHROPIC_PROMPT;
12
+ }
13
+ if (id.includes("gpt") || id.includes("o1") || id.includes("o3") || id.includes("openai")) {
14
+ return OPENAI_PROMPT;
15
+ }
16
+ if (id.includes("gemini")) {
17
+ return GEMINI_PROMPT;
18
+ }
19
+ if (id.includes("deepseek")) {
20
+ return DEEPSEEK_PROMPT;
21
+ }
22
+ return DEFAULT_PROMPT;
23
+ }
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system-context/prompts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAIhD,MAAM,UAAU,YAAY,CAAC,OAAgB;IAC3C,IAAI,CAAC,OAAO;QAAE,OAAO,cAAc,CAAC;IACpC,MAAM,EAAE,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAEjC,IAAI,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;QACtD,OAAO,gBAAgB,CAAC;IAC1B,CAAC;IACD,IAAI,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC1F,OAAO,aAAa,CAAC;IACvB,CAAC;IACD,IAAI,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC1B,OAAO,aAAa,CAAC;IACvB,CAAC;IACD,IAAI,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;QAC5B,OAAO,eAAe,CAAC;IACzB,CAAC;IAED,OAAO,cAAc,CAAC;AACxB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const OPENAI_PROMPT = "You are VNT Agent, an interactive CLI tool that helps users with software engineering tasks. You should keep going until the user's query is completely resolved, before ending your turn.\n\nYour thinking should be thorough and so it's fine if it's very long. However, avoid unnecessary repetition and verbosity. You should be concise, but thorough.\n\nYou MUST iterate and keep going until the problem is solved. You have everything you need to resolve this problem. Fully solve it autonomously.\n\nOnly terminate your turn when you are sure that the problem is solved. Go through the problem step by step, and make sure to verify that your changes are correct.\n\nIMPORTANT: You must NEVER generate or guess URLs for the user unless you are confident that the URLs are for helping the user with programming.\n\n# Following conventions\nWhen making changes to files, first understand the file's code conventions. Mimic code style, use existing libraries and utilities, and follow existing patterns.\n- NEVER assume that a given library is available. Check that this codebase already uses it first.\n- When editing code, look at surrounding context (especially imports) to understand frameworks and libraries in use.\n- Always follow security best practices.\n\n# Code style\n- DO NOT ADD comments to code unless the original code already has extensive comments or the user asks.\n- ALWAYS prefer editing existing files. NEVER write new files unless explicitly required.\n\n# Doing tasks\n1. Search to understand the codebase first.\n2. Implement using available tools.\n3. Verify the solution.\n4. NEVER commit changes unless the user explicitly asks.\n\n# Tool usage policy\n- Prefer search tools over bash for file finding.\n- Batch independent tool calls together.\n- Reference code with `file_path:line_number` pattern.";
2
+ //# sourceMappingURL=openai.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"openai.d.ts","sourceRoot":"","sources":["../../../src/system-context/prompts/openai.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,oyDA6B+B,CAAC"}
@@ -0,0 +1,31 @@
1
+ export const OPENAI_PROMPT = `You are VNT Agent, an interactive CLI tool that helps users with software engineering tasks. You should keep going until the user's query is completely resolved, before ending your turn.
2
+
3
+ Your thinking should be thorough and so it's fine if it's very long. However, avoid unnecessary repetition and verbosity. You should be concise, but thorough.
4
+
5
+ You MUST iterate and keep going until the problem is solved. You have everything you need to resolve this problem. Fully solve it autonomously.
6
+
7
+ Only terminate your turn when you are sure that the problem is solved. Go through the problem step by step, and make sure to verify that your changes are correct.
8
+
9
+ IMPORTANT: You must NEVER generate or guess URLs for the user unless you are confident that the URLs are for helping the user with programming.
10
+
11
+ # Following conventions
12
+ When making changes to files, first understand the file's code conventions. Mimic code style, use existing libraries and utilities, and follow existing patterns.
13
+ - NEVER assume that a given library is available. Check that this codebase already uses it first.
14
+ - When editing code, look at surrounding context (especially imports) to understand frameworks and libraries in use.
15
+ - Always follow security best practices.
16
+
17
+ # Code style
18
+ - DO NOT ADD comments to code unless the original code already has extensive comments or the user asks.
19
+ - ALWAYS prefer editing existing files. NEVER write new files unless explicitly required.
20
+
21
+ # Doing tasks
22
+ 1. Search to understand the codebase first.
23
+ 2. Implement using available tools.
24
+ 3. Verify the solution.
25
+ 4. NEVER commit changes unless the user explicitly asks.
26
+
27
+ # Tool usage policy
28
+ - Prefer search tools over bash for file finding.
29
+ - Batch independent tool calls together.
30
+ - Reference code with \`file_path:line_number\` pattern.`;
31
+ //# sourceMappingURL=openai.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"openai.js","sourceRoot":"","sources":["../../../src/system-context/prompts/openai.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yDA6B4B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { ContextSourceValue } from "../types.js";
2
+ export declare function createSystemPromptSource(getModelId: () => string | undefined): ContextSourceValue<string>;
3
+ //# sourceMappingURL=system-prompt-source.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system-prompt-source.d.ts","sourceRoot":"","sources":["../../../src/system-context/prompts/system-prompt-source.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAoB,MAAM,aAAa,CAAC;AAGxE,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,MAAM,GAAG,SAAS,GACnC,kBAAkB,CAAC,MAAM,CAAC,CAkB5B"}
@@ -0,0 +1,21 @@
1
+ import { selectPrompt } from "./index.js";
2
+ export function createSystemPromptSource(getModelId) {
3
+ return {
4
+ key: "core.system-prompt",
5
+ priority: 0,
6
+ async load() {
7
+ const modelId = getModelId();
8
+ return selectPrompt(modelId);
9
+ },
10
+ renderBaseline(value) {
11
+ return value;
12
+ },
13
+ renderUpdate() {
14
+ return null;
15
+ },
16
+ renderRemoval() {
17
+ return "";
18
+ },
19
+ };
20
+ }
21
+ //# sourceMappingURL=system-prompt-source.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system-prompt-source.js","sourceRoot":"","sources":["../../../src/system-context/prompts/system-prompt-source.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,UAAU,wBAAwB,CACtC,UAAoC;IAEpC,OAAO;QACL,GAAG,EAAE,oBAAwC;QAC7C,QAAQ,EAAE,CAAC;QACX,KAAK,CAAC,IAAI;YACR,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;YAC7B,OAAO,YAAY,CAAC,OAAO,CAAC,CAAC;QAC/B,CAAC;QACD,cAAc,CAAC,KAAK;YAClB,OAAO,KAAK,CAAC;QACf,CAAC;QACD,YAAY;YACV,OAAO,IAAI,CAAC;QACd,CAAC;QACD,aAAa;YACX,OAAO,EAAE,CAAC;QACZ,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { ContextRegistry } from "./types.js";
2
+ export declare function createContextRegistry(): ContextRegistry;
3
+ //# sourceMappingURL=registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/system-context/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAyF,eAAe,EAAE,MAAM,YAAY,CAAC;AAEzI,wBAAgB,qBAAqB,IAAI,eAAe,CAuEvD"}
@@ -0,0 +1,73 @@
1
+ export function createContextRegistry() {
2
+ const sources = new Map();
3
+ let initialized = false;
4
+ let snapshots = new Map();
5
+ return {
6
+ register(source) {
7
+ sources.set(source.key, source);
8
+ },
9
+ unregister(key) {
10
+ sources.delete(key);
11
+ },
12
+ async initialize() {
13
+ const entries = [];
14
+ const newSnapshots = new Map();
15
+ const sorted = [...sources.values()].sort((a, b) => (a.priority ?? 100) - (b.priority ?? 100));
16
+ for (const source of sorted) {
17
+ const value = await source.load();
18
+ const rendered = source.renderBaseline(value);
19
+ if (rendered) {
20
+ entries.push(rendered);
21
+ }
22
+ newSnapshots.set(source.key, { key: source.key, value, rendered });
23
+ }
24
+ snapshots = newSnapshots;
25
+ initialized = true;
26
+ return {
27
+ baseline: entries.join("\n\n"),
28
+ snapshots: snapshots,
29
+ };
30
+ },
31
+ async reconcile() {
32
+ if (!initialized) {
33
+ const ctx = await this.initialize();
34
+ return { type: "replaced", systemContext: ctx };
35
+ }
36
+ const updates = [];
37
+ let changed = false;
38
+ const newSnapshots = new Map(snapshots);
39
+ for (const [, source] of sources) {
40
+ const current = await source.load();
41
+ const prev = snapshots.get(source.key);
42
+ if (prev && !shallowEqual(prev.value, current)) {
43
+ const update = source.renderUpdate(current, prev.value);
44
+ if (update) {
45
+ updates.push(update);
46
+ newSnapshots.set(source.key, { key: source.key, value: current, rendered: update });
47
+ changed = true;
48
+ }
49
+ }
50
+ }
51
+ if (!changed) {
52
+ return { type: "unchanged" };
53
+ }
54
+ return {
55
+ type: "updated",
56
+ update: updates.join("\n\n"),
57
+ snapshot: { key: "", value: null, rendered: updates.join("\n\n") },
58
+ };
59
+ },
60
+ };
61
+ }
62
+ function shallowEqual(a, b) {
63
+ if (a === b)
64
+ return true;
65
+ if (typeof a !== "object" || typeof b !== "object" || a === null || b === null)
66
+ return false;
67
+ const ka = Object.keys(a);
68
+ const kb = Object.keys(b);
69
+ if (ka.length !== kb.length)
70
+ return false;
71
+ return ka.every((k) => a[k] === b[k]);
72
+ }
73
+ //# sourceMappingURL=registry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/system-context/registry.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,qBAAqB;IACnC,MAAM,OAAO,GAAG,IAAI,GAAG,EAAwC,CAAC;IAChE,IAAI,WAAW,GAAG,KAAK,CAAC;IACxB,IAAI,SAAS,GAAG,IAAI,GAAG,EAAqC,CAAC;IAE7D,OAAO;QACL,QAAQ,CAAC,MAA0B;YACjC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;QAClC,CAAC;QAED,UAAU,CAAC,GAAqB;YAC9B,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACtB,CAAC;QAED,KAAK,CAAC,UAAU;YACd,MAAM,OAAO,GAAa,EAAE,CAAC;YAC7B,MAAM,YAAY,GAAG,IAAI,GAAG,EAAqC,CAAC;YAElE,MAAM,MAAM,GAAG,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,IAAI,GAAG,CAAC,CAAC,CAAC;YAC/F,KAAK,MAAM,MAAM,IAAI,MAAM,EAAE,CAAC;gBAC5B,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;gBAClC,MAAM,QAAQ,GAAG,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;gBAC9C,IAAI,QAAQ,EAAE,CAAC;oBACb,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;gBACzB,CAAC;gBACD,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,EAAE,EAAE,GAAG,EAAE,MAAM,CAAC,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;YACrE,CAAC;YAED,SAAS,GAAG,YAAY,CAAC;YACzB,WAAW,GAAG,IAAI,CAAC;YAEnB,OAAO;gBACL,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC;gBAC9B,SAAS,EAAE,SAAS;aACrB,CAAC;QACJ,CAAC;QAED,KAAK,CAAC,SAAS;YACb,IAAI,CAAC,WAAW,EAAE,CAAC;gBACjB,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC;gBACpC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,aAAa,EAAE,GAAG,EAAE,CAAC;YAClD,CAAC;YAED,MAAM,OAAO,GAAa,EAAE,CAAC;YAC7B,IAAI,OAAO,GAAG,KAAK,CAAC;YACpB,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC,CAAC;YAExC,KAAK,MAAM,CAAC,EAAE,MAAM,CAAC,IAAI,OAAO,EAAE,CAAC;gBACjC,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;gBACpC,MAAM,IAAI,GAAG,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;gBACvC,IAAI,IAAI,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC;oBAC/C,MAAM,MAAM,GAAG,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;oBACxD,IAAI,MAAM,EAAE,CAAC;wBACX,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;wBACrB,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,EAAE,EAAE,GAAG,EAAE,MAAM,CAAC,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC;wBACpF,OAAO,GAAG,IAAI,CAAC;oBACjB,CAAC;gBACH,CAAC;YACH,CAAC;YAED,IAAI,CAAC,OAAO,EAAE,CAAC;gBACb,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;YAC/B,CAAC;YAED,OAAO;gBACL,IAAI,EAAE,SAAS;gBACf,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC;gBAC5B,QAAQ,EAAE,EAAE,GAAG,EAAE,EAAsB,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;aACvF,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC;AAED,SAAS,YAAY,CAAC,CAAU,EAAE,CAAU;IAC1C,IAAI,CAAC,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IACzB,IAAI,OAAO,CAAC,KAAK,QAAQ,IAAI,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,IAAI;QAAE,OAAO,KAAK,CAAC;IAC7F,MAAM,EAAE,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC1B,MAAM,EAAE,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC1B,IAAI,EAAE,CAAC,MAAM,KAAK,EAAE,CAAC,MAAM;QAAE,OAAO,KAAK,CAAC;IAC1C,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAE,CAA6B,CAAC,CAAC,CAAC,KAAM,CAA6B,CAAC,CAAC,CAAC,CAAC,CAAC;AAClG,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { ContextSourceValue } from "../types.js";
2
+ import type { AgentRegistry } from "../../agent/agent-registry.js";
3
+ export interface AgentContextInfo {
4
+ currentAgentId: string | null;
5
+ agents: Array<{
6
+ id: string;
7
+ name: string;
8
+ description: string;
9
+ mode: string;
10
+ capabilities: string[];
11
+ }>;
12
+ }
13
+ export declare function createAgentSource(registry: AgentRegistry, getCurrentAgentId: () => string | null): ContextSourceValue<AgentContextInfo>;
14
+ //# sourceMappingURL=agent-source.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-source.d.ts","sourceRoot":"","sources":["../../../src/system-context/sources/agent-source.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAoB,MAAM,aAAa,CAAC;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAEnE,MAAM,WAAW,gBAAgB;IAC/B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,MAAM,EAAE,KAAK,CAAC;QACZ,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,IAAI,EAAE,MAAM,CAAC;QACb,YAAY,EAAE,MAAM,EAAE,CAAC;KACxB,CAAC,CAAC;CACJ;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,MAAM,GAAG,IAAI,GAAG,kBAAkB,CAAC,gBAAgB,CAAC,CAgDvI"}
@@ -0,0 +1,50 @@
1
+ export function createAgentSource(registry, getCurrentAgentId) {
2
+ return {
3
+ key: "core.agents",
4
+ priority: 20,
5
+ async load() {
6
+ const agents = await registry.list();
7
+ return {
8
+ currentAgentId: getCurrentAgentId(),
9
+ agents: agents.map((a) => ({
10
+ id: a.id,
11
+ name: a.profile.name,
12
+ description: a.profile.description,
13
+ mode: a.permissions?.mode ?? "primary",
14
+ capabilities: [...(a.capabilities.tools ?? []), ...(a.capabilities.models ?? [])],
15
+ })),
16
+ };
17
+ },
18
+ renderBaseline(value) {
19
+ const lines = ["## Agents"];
20
+ if (value.currentAgentId) {
21
+ const current = value.agents.find((a) => a.id === value.currentAgentId);
22
+ if (current) {
23
+ lines.push(`- **Current agent**: ${current.name} (${current.mode}) — ${current.description}`);
24
+ }
25
+ }
26
+ const others = value.agents.filter((a) => a.id !== value.currentAgentId);
27
+ if (others.length > 0) {
28
+ lines.push("**Available agents:**");
29
+ for (const a of others) {
30
+ const caps = a.capabilities.length > 0 ? ` [${a.capabilities.join(", ")}]` : "";
31
+ lines.push(`- \`${a.id}\`: ${a.name} (${a.mode})${caps} — ${a.description}`);
32
+ }
33
+ }
34
+ return lines.join("\n");
35
+ },
36
+ renderUpdate(value, previous) {
37
+ if (value.currentAgentId !== previous.currentAgentId) {
38
+ const current = value.agents.find((a) => a.id === value.currentAgentId);
39
+ if (current) {
40
+ return `[Agent switched]\nNow using agent: ${current.name} (${current.mode}).`;
41
+ }
42
+ }
43
+ return null;
44
+ },
45
+ renderRemoval() {
46
+ return "";
47
+ },
48
+ };
49
+ }
50
+ //# sourceMappingURL=agent-source.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-source.js","sourceRoot":"","sources":["../../../src/system-context/sources/agent-source.ts"],"names":[],"mappings":"AAcA,MAAM,UAAU,iBAAiB,CAAC,QAAuB,EAAE,iBAAsC;IAC/F,OAAO;QACL,GAAG,EAAE,aAAiC;QACtC,QAAQ,EAAE,EAAE;QACZ,KAAK,CAAC,IAAI;YACR,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;YACrC,OAAO;gBACL,cAAc,EAAE,iBAAiB,EAAE;gBACnC,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;oBACzB,EAAE,EAAE,CAAC,CAAC,EAAE;oBACR,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI;oBACpB,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW;oBAClC,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,IAAI,IAAI,SAAS;oBACtC,YAAY,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,YAAY,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC;iBAClF,CAAC,CAAC;aACJ,CAAC;QACJ,CAAC;QACD,cAAc,CAAC,KAAK;YAClB,MAAM,KAAK,GAAa,CAAC,WAAW,CAAC,CAAC;YACtC,IAAI,KAAK,CAAC,cAAc,EAAE,CAAC;gBACzB,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,KAAK,CAAC,cAAc,CAAC,CAAC;gBACxE,IAAI,OAAO,EAAE,CAAC;oBACZ,KAAK,CAAC,IAAI,CAAC,wBAAwB,OAAO,CAAC,IAAI,KAAK,OAAO,CAAC,IAAI,OAAO,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;gBAChG,CAAC;YACH,CAAC;YACD,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,KAAK,CAAC,cAAc,CAAC,CAAC;YACzE,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBACtB,KAAK,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;gBACpC,KAAK,MAAM,CAAC,IAAI,MAAM,EAAE,CAAC;oBACvB,MAAM,IAAI,GAAG,CAAC,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;oBAChF,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,IAAI,IAAI,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;gBAC/E,CAAC;YACH,CAAC;YACD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC1B,CAAC;QACD,YAAY,CAAC,KAAK,EAAE,QAAQ;YAC1B,IAAI,KAAK,CAAC,cAAc,KAAK,QAAQ,CAAC,cAAc,EAAE,CAAC;gBACrD,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,KAAK,CAAC,cAAc,CAAC,CAAC;gBACxE,IAAI,OAAO,EAAE,CAAC;oBACZ,OAAO,sCAAsC,OAAO,CAAC,IAAI,KAAK,OAAO,CAAC,IAAI,IAAI,CAAC;gBACjF,CAAC;YACH,CAAC;YACD,OAAO,IAAI,CAAC;QACd,CAAC;QACD,aAAa;YACX,OAAO,EAAE,CAAC;QACZ,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { ContextSourceValue } from "../types.js";
2
+ export declare function createDateSource(): ContextSourceValue<{
3
+ date: string;
4
+ time: string;
5
+ timezone: string;
6
+ }>;
7
+ //# sourceMappingURL=date-source.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-source.d.ts","sourceRoot":"","sources":["../../../src/system-context/sources/date-source.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAoB,MAAM,aAAa,CAAC;AAExE,wBAAgB,gBAAgB,IAAI,kBAAkB,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,CAuBvG"}
@@ -0,0 +1,26 @@
1
+ export function createDateSource() {
2
+ return {
3
+ key: "core.date",
4
+ priority: 30,
5
+ async load() {
6
+ const now = new Date();
7
+ return {
8
+ date: now.toLocaleDateString("en-US", { weekday: "long", year: "numeric", month: "long", day: "numeric" }),
9
+ time: now.toLocaleTimeString("en-US"),
10
+ timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
11
+ };
12
+ },
13
+ renderBaseline(value) {
14
+ return `## Current Date & Time\n- Date: ${value.date}\n- Time: ${value.time}\n- Timezone: ${value.timezone}`;
15
+ },
16
+ renderUpdate(value, previous) {
17
+ if (value.date === previous.date)
18
+ return null;
19
+ return `[Context update — date changed]\nThe current date is now ${value.date}.`;
20
+ },
21
+ renderRemoval() {
22
+ return "[Context source removed: date]";
23
+ },
24
+ };
25
+ }
26
+ //# sourceMappingURL=date-source.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-source.js","sourceRoot":"","sources":["../../../src/system-context/sources/date-source.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,gBAAgB;IAC9B,OAAO;QACL,GAAG,EAAE,WAA+B;QACpC,QAAQ,EAAE,EAAE;QACZ,KAAK,CAAC,IAAI;YACR,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC;YACvB,OAAO;gBACL,IAAI,EAAE,GAAG,CAAC,kBAAkB,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC;gBAC1G,IAAI,EAAE,GAAG,CAAC,kBAAkB,CAAC,OAAO,CAAC;gBACrC,QAAQ,EAAE,IAAI,CAAC,cAAc,EAAE,CAAC,eAAe,EAAE,CAAC,QAAQ;aAC3D,CAAC;QACJ,CAAC;QACD,cAAc,CAAC,KAAK;YAClB,OAAO,mCAAmC,KAAK,CAAC,IAAI,aAAa,KAAK,CAAC,IAAI,iBAAiB,KAAK,CAAC,QAAQ,EAAE,CAAC;QAC/G,CAAC;QACD,YAAY,CAAC,KAAK,EAAE,QAAQ;YAC1B,IAAI,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC,IAAI;gBAAE,OAAO,IAAI,CAAC;YAC9C,OAAO,4DAA4D,KAAK,CAAC,IAAI,GAAG,CAAC;QACnF,CAAC;QACD,aAAa;YACX,OAAO,gCAAgC,CAAC;QAC1C,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { ContextSourceValue } from "../types.js";
2
+ export interface InstructionsInfo {
3
+ global: string;
4
+ project: string;
5
+ effective: string;
6
+ }
7
+ export declare function createInstructionsSource(cwd?: string | (() => string)): ContextSourceValue<InstructionsInfo>;
8
+ //# sourceMappingURL=instructions-source.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instructions-source.d.ts","sourceRoot":"","sources":["../../../src/system-context/sources/instructions-source.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAoB,MAAM,aAAa,CAAC;AAKxE,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,wBAAwB,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,GAAG,kBAAkB,CAAC,gBAAgB,CAAC,CAiC5G"}