@caupulican/pi-adaptative 0.81.37 → 0.81.39

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/CHANGELOG.md +91 -0
  2. package/README.md +1 -1
  3. package/dist/bundled-resources/extensions/tmux-agent-manager/README.md +18 -1
  4. package/dist/bundled-resources/extensions/tmux-agent-manager/dispatch-grant.d.ts +131 -0
  5. package/dist/bundled-resources/extensions/tmux-agent-manager/dispatch-grant.d.ts.map +1 -0
  6. package/dist/bundled-resources/extensions/tmux-agent-manager/dispatch-grant.js +196 -0
  7. package/dist/bundled-resources/extensions/tmux-agent-manager/dispatch-grant.js.map +1 -0
  8. package/dist/bundled-resources/extensions/tmux-agent-manager/dispatch-grant.ts +308 -0
  9. package/dist/bundled-resources/extensions/tmux-agent-manager/index.d.ts +22 -2
  10. package/dist/bundled-resources/extensions/tmux-agent-manager/index.d.ts.map +1 -1
  11. package/dist/bundled-resources/extensions/tmux-agent-manager/index.js +585 -24
  12. package/dist/bundled-resources/extensions/tmux-agent-manager/index.js.map +1 -1
  13. package/dist/bundled-resources/extensions/tmux-agent-manager/index.ts +749 -27
  14. package/dist/bundled-resources/runtimes/pi-shell-engine/commands/__init__.py +43 -0
  15. package/dist/bundled-resources/runtimes/pi-shell-engine/commands/fs.py +270 -0
  16. package/dist/bundled-resources/runtimes/pi-shell-engine/commands/search.py +252 -0
  17. package/dist/bundled-resources/runtimes/pi-shell-engine/commands/strings.py +399 -0
  18. package/dist/bundled-resources/runtimes/pi-shell-engine/commands/text.py +575 -0
  19. package/dist/bundled-resources/runtimes/pi-shell-engine/context.py +52 -0
  20. package/dist/bundled-resources/runtimes/pi-shell-engine/errors.py +49 -0
  21. package/dist/bundled-resources/runtimes/pi-shell-engine/exec.py +734 -0
  22. package/dist/bundled-resources/runtimes/pi-shell-engine/expand.py +238 -0
  23. package/dist/bundled-resources/runtimes/pi-shell-engine/main.py +132 -0
  24. package/dist/bundled-resources/runtimes/pi-shell-engine/nodes.py +116 -0
  25. package/dist/bundled-resources/runtimes/pi-shell-engine/parser.py +287 -0
  26. package/dist/bundled-resources/runtimes/pi-shell-engine/proc.py +137 -0
  27. package/dist/bundled-resources/runtimes/pi-shell-engine/state.py +100 -0
  28. package/dist/bundled-resources/runtimes/pi-shell-engine/tokens.py +579 -0
  29. package/dist/bundled-resources/skills/tool-call-repair/SKILL.md +19 -9
  30. package/dist/bundled-resources/skills/tool-call-repair/references/failure-grammar.md +22 -5
  31. package/dist/bundled-resources/skills/tool-call-repair/references/repair-catalogue.md +5 -5
  32. package/dist/bundled-resources/skills/tool-call-repair/references/text-protocol-grammar.md +28 -7
  33. package/dist/cli/args.d.ts +3 -0
  34. package/dist/cli/args.d.ts.map +1 -1
  35. package/dist/cli/args.js +15 -0
  36. package/dist/cli/args.js.map +1 -1
  37. package/dist/core/agent-paths.d.ts +49 -0
  38. package/dist/core/agent-paths.d.ts.map +1 -0
  39. package/dist/core/agent-paths.js +107 -0
  40. package/dist/core/agent-paths.js.map +1 -0
  41. package/dist/core/agent-session-services.d.ts.map +1 -1
  42. package/dist/core/agent-session-services.js +3 -3
  43. package/dist/core/agent-session-services.js.map +1 -1
  44. package/dist/core/agent-session.d.ts +234 -17
  45. package/dist/core/agent-session.d.ts.map +1 -1
  46. package/dist/core/agent-session.js +484 -62
  47. package/dist/core/agent-session.js.map +1 -1
  48. package/dist/core/autonomy/contracts.d.ts +9 -0
  49. package/dist/core/autonomy/contracts.d.ts.map +1 -1
  50. package/dist/core/autonomy/contracts.js.map +1 -1
  51. package/dist/core/autonomy/lane-tracker.d.ts +10 -1
  52. package/dist/core/autonomy/lane-tracker.d.ts.map +1 -1
  53. package/dist/core/autonomy/lane-tracker.js +5 -1
  54. package/dist/core/autonomy/lane-tracker.js.map +1 -1
  55. package/dist/core/background-lane-controller.d.ts +122 -6
  56. package/dist/core/background-lane-controller.d.ts.map +1 -1
  57. package/dist/core/background-lane-controller.js +447 -90
  58. package/dist/core/background-lane-controller.js.map +1 -1
  59. package/dist/core/bash-execution-controller.d.ts +4 -0
  60. package/dist/core/bash-execution-controller.d.ts.map +1 -1
  61. package/dist/core/bash-execution-controller.js +7 -1
  62. package/dist/core/bash-execution-controller.js.map +1 -1
  63. package/dist/core/compaction-support.d.ts +13 -3
  64. package/dist/core/compaction-support.d.ts.map +1 -1
  65. package/dist/core/compaction-support.js +43 -7
  66. package/dist/core/compaction-support.js.map +1 -1
  67. package/dist/core/context/context-audit.d.ts +33 -1
  68. package/dist/core/context/context-audit.d.ts.map +1 -1
  69. package/dist/core/context/context-audit.js +31 -5
  70. package/dist/core/context/context-audit.js.map +1 -1
  71. package/dist/core/context/sqlite-runtime-index.d.ts.map +1 -1
  72. package/dist/core/context/sqlite-runtime-index.js +13 -7
  73. package/dist/core/context/sqlite-runtime-index.js.map +1 -1
  74. package/dist/core/context-gc.d.ts.map +1 -1
  75. package/dist/core/context-gc.js +16 -1
  76. package/dist/core/context-gc.js.map +1 -1
  77. package/dist/core/context-pipeline.d.ts +26 -4
  78. package/dist/core/context-pipeline.d.ts.map +1 -1
  79. package/dist/core/context-pipeline.js +137 -14
  80. package/dist/core/context-pipeline.js.map +1 -1
  81. package/dist/core/cost-guard.d.ts +19 -3
  82. package/dist/core/cost-guard.d.ts.map +1 -1
  83. package/dist/core/cost-guard.js +18 -3
  84. package/dist/core/cost-guard.js.map +1 -1
  85. package/dist/core/delegation/session-worker-result.d.ts +34 -4
  86. package/dist/core/delegation/session-worker-result.d.ts.map +1 -1
  87. package/dist/core/delegation/session-worker-result.js +64 -4
  88. package/dist/core/delegation/session-worker-result.js.map +1 -1
  89. package/dist/core/delegation/worker-actions.d.ts.map +1 -1
  90. package/dist/core/delegation/worker-actions.js +1 -1
  91. package/dist/core/delegation/worker-actions.js.map +1 -1
  92. package/dist/core/delegation/worker-result.d.ts +42 -1
  93. package/dist/core/delegation/worker-result.d.ts.map +1 -1
  94. package/dist/core/delegation/worker-result.js +68 -0
  95. package/dist/core/delegation/worker-result.js.map +1 -1
  96. package/dist/core/extensions/loader.d.ts.map +1 -1
  97. package/dist/core/extensions/loader.js +23 -7
  98. package/dist/core/extensions/loader.js.map +1 -1
  99. package/dist/core/extensions/runner.d.ts.map +1 -1
  100. package/dist/core/extensions/runner.js +1 -0
  101. package/dist/core/extensions/runner.js.map +1 -1
  102. package/dist/core/extensions/types.d.ts +51 -0
  103. package/dist/core/extensions/types.d.ts.map +1 -1
  104. package/dist/core/extensions/types.js.map +1 -1
  105. package/dist/core/goal-loop-controller.d.ts +17 -1
  106. package/dist/core/goal-loop-controller.d.ts.map +1 -1
  107. package/dist/core/goal-loop-controller.js +79 -11
  108. package/dist/core/goal-loop-controller.js.map +1 -1
  109. package/dist/core/goals/goal-continuation-controller.d.ts +48 -2
  110. package/dist/core/goals/goal-continuation-controller.d.ts.map +1 -1
  111. package/dist/core/goals/goal-continuation-controller.js +77 -0
  112. package/dist/core/goals/goal-continuation-controller.js.map +1 -1
  113. package/dist/core/goals/goal-continuation-defaults.d.ts +39 -0
  114. package/dist/core/goals/goal-continuation-defaults.d.ts.map +1 -1
  115. package/dist/core/goals/goal-continuation-defaults.js +42 -0
  116. package/dist/core/goals/goal-continuation-defaults.js.map +1 -1
  117. package/dist/core/goals/goal-continuation-prompt.d.ts +4 -0
  118. package/dist/core/goals/goal-continuation-prompt.d.ts.map +1 -1
  119. package/dist/core/goals/goal-continuation-prompt.js +51 -10
  120. package/dist/core/goals/goal-continuation-prompt.js.map +1 -1
  121. package/dist/core/goals/goal-runtime-snapshot.d.ts +101 -2
  122. package/dist/core/goals/goal-runtime-snapshot.d.ts.map +1 -1
  123. package/dist/core/goals/goal-runtime-snapshot.js +87 -4
  124. package/dist/core/goals/goal-runtime-snapshot.js.map +1 -1
  125. package/dist/core/goals/goal-state.d.ts +89 -1
  126. package/dist/core/goals/goal-state.d.ts.map +1 -1
  127. package/dist/core/goals/goal-state.js +71 -5
  128. package/dist/core/goals/goal-state.js.map +1 -1
  129. package/dist/core/goals/goal-tool-core.d.ts +56 -2
  130. package/dist/core/goals/goal-tool-core.d.ts.map +1 -1
  131. package/dist/core/goals/goal-tool-core.js +111 -5
  132. package/dist/core/goals/goal-tool-core.js.map +1 -1
  133. package/dist/core/goals/session-goal-state.d.ts +11 -2
  134. package/dist/core/goals/session-goal-state.d.ts.map +1 -1
  135. package/dist/core/goals/session-goal-state.js +32 -17
  136. package/dist/core/goals/session-goal-state.js.map +1 -1
  137. package/dist/core/keybindings.d.ts +10 -0
  138. package/dist/core/keybindings.d.ts.map +1 -1
  139. package/dist/core/keybindings.js +10 -2
  140. package/dist/core/keybindings.js.map +1 -1
  141. package/dist/core/learning/observation-store.d.ts +12 -3
  142. package/dist/core/learning/observation-store.d.ts.map +1 -1
  143. package/dist/core/learning/observation-store.js +30 -15
  144. package/dist/core/learning/observation-store.js.map +1 -1
  145. package/dist/core/learning/skill-curator.d.ts +5 -1
  146. package/dist/core/learning/skill-curator.d.ts.map +1 -1
  147. package/dist/core/learning/skill-curator.js +21 -19
  148. package/dist/core/learning/skill-curator.js.map +1 -1
  149. package/dist/core/local-runtime-controller.d.ts +65 -3
  150. package/dist/core/local-runtime-controller.d.ts.map +1 -1
  151. package/dist/core/local-runtime-controller.js +186 -26
  152. package/dist/core/local-runtime-controller.js.map +1 -1
  153. package/dist/core/memory/providers/file-store.d.ts +1 -1
  154. package/dist/core/memory/providers/file-store.d.ts.map +1 -1
  155. package/dist/core/memory/providers/file-store.js +6 -6
  156. package/dist/core/memory/providers/file-store.js.map +1 -1
  157. package/dist/core/model-capability.d.ts +34 -0
  158. package/dist/core/model-capability.d.ts.map +1 -1
  159. package/dist/core/model-capability.js +42 -1
  160. package/dist/core/model-capability.js.map +1 -1
  161. package/dist/core/model-router/tool-escalation.d.ts +15 -0
  162. package/dist/core/model-router/tool-escalation.d.ts.map +1 -1
  163. package/dist/core/model-router/tool-escalation.js +23 -1
  164. package/dist/core/model-router/tool-escalation.js.map +1 -1
  165. package/dist/core/model-router-controller.d.ts +34 -7
  166. package/dist/core/model-router-controller.d.ts.map +1 -1
  167. package/dist/core/model-router-controller.js +95 -16
  168. package/dist/core/model-router-controller.js.map +1 -1
  169. package/dist/core/models/adaptation-store.d.ts +7 -0
  170. package/dist/core/models/adaptation-store.d.ts.map +1 -1
  171. package/dist/core/models/adaptation-store.js +47 -11
  172. package/dist/core/models/adaptation-store.js.map +1 -1
  173. package/dist/core/models/default-model-suggestions.d.ts.map +1 -1
  174. package/dist/core/models/default-model-suggestions.js +17 -0
  175. package/dist/core/models/default-model-suggestions.js.map +1 -1
  176. package/dist/core/models/fitness-store.d.ts +3 -0
  177. package/dist/core/models/fitness-store.d.ts.map +1 -1
  178. package/dist/core/models/fitness-store.js +11 -2
  179. package/dist/core/models/fitness-store.js.map +1 -1
  180. package/dist/core/models/llamacpp-runtime.d.ts +180 -0
  181. package/dist/core/models/llamacpp-runtime.d.ts.map +1 -0
  182. package/dist/core/models/llamacpp-runtime.js +475 -0
  183. package/dist/core/models/llamacpp-runtime.js.map +1 -0
  184. package/dist/core/models/local-registration.d.ts +40 -0
  185. package/dist/core/models/local-registration.d.ts.map +1 -1
  186. package/dist/core/models/local-registration.js +94 -5
  187. package/dist/core/models/local-registration.js.map +1 -1
  188. package/dist/core/models/local-runtime.d.ts.map +1 -1
  189. package/dist/core/models/local-runtime.js +9 -7
  190. package/dist/core/models/local-runtime.js.map +1 -1
  191. package/dist/core/models/model-ref.d.ts +7 -0
  192. package/dist/core/models/model-ref.d.ts.map +1 -1
  193. package/dist/core/models/model-ref.js +26 -0
  194. package/dist/core/models/model-ref.js.map +1 -1
  195. package/dist/core/models/needle-runtime.d.ts +257 -0
  196. package/dist/core/models/needle-runtime.d.ts.map +1 -0
  197. package/dist/core/models/needle-runtime.js +519 -0
  198. package/dist/core/models/needle-runtime.js.map +1 -0
  199. package/dist/core/models/prism-llamacpp-lifecycle.d.ts +89 -0
  200. package/dist/core/models/prism-llamacpp-lifecycle.d.ts.map +1 -0
  201. package/dist/core/models/prism-llamacpp-lifecycle.js +121 -0
  202. package/dist/core/models/prism-llamacpp-lifecycle.js.map +1 -0
  203. package/dist/core/package-manager.d.ts.map +1 -1
  204. package/dist/core/package-manager.js +11 -10
  205. package/dist/core/package-manager.js.map +1 -1
  206. package/dist/core/process-matrix/codes.d.ts +72 -0
  207. package/dist/core/process-matrix/codes.d.ts.map +1 -0
  208. package/dist/core/process-matrix/codes.js +15 -0
  209. package/dist/core/process-matrix/codes.js.map +1 -0
  210. package/dist/core/process-matrix/runtime.d.ts +63 -0
  211. package/dist/core/process-matrix/runtime.d.ts.map +1 -0
  212. package/dist/core/process-matrix/runtime.js +310 -0
  213. package/dist/core/process-matrix/runtime.js.map +1 -0
  214. package/dist/core/process-matrix/store.d.ts +22 -0
  215. package/dist/core/process-matrix/store.d.ts.map +1 -0
  216. package/dist/core/process-matrix/store.js +80 -0
  217. package/dist/core/process-matrix/store.js.map +1 -0
  218. package/dist/core/process-matrix/supervisor.d.ts +72 -0
  219. package/dist/core/process-matrix/supervisor.d.ts.map +1 -0
  220. package/dist/core/process-matrix/supervisor.js +130 -0
  221. package/dist/core/process-matrix/supervisor.js.map +1 -0
  222. package/dist/core/profile-registry.d.ts +7 -0
  223. package/dist/core/profile-registry.d.ts.map +1 -1
  224. package/dist/core/profile-registry.js +20 -0
  225. package/dist/core/profile-registry.js.map +1 -1
  226. package/dist/core/python-runtime.d.ts.map +1 -1
  227. package/dist/core/python-runtime.js +3 -3
  228. package/dist/core/python-runtime.js.map +1 -1
  229. package/dist/core/reflection-controller.d.ts +29 -5
  230. package/dist/core/reflection-controller.d.ts.map +1 -1
  231. package/dist/core/reflection-controller.js +215 -126
  232. package/dist/core/reflection-controller.js.map +1 -1
  233. package/dist/core/reload-blockers.d.ts +36 -0
  234. package/dist/core/reload-blockers.d.ts.map +1 -1
  235. package/dist/core/reload-blockers.js +44 -0
  236. package/dist/core/reload-blockers.js.map +1 -1
  237. package/dist/core/resource-loader.d.ts.map +1 -1
  238. package/dist/core/resource-loader.js +8 -7
  239. package/dist/core/resource-loader.js.map +1 -1
  240. package/dist/core/runtime-builder.d.ts +58 -5
  241. package/dist/core/runtime-builder.d.ts.map +1 -1
  242. package/dist/core/runtime-builder.js +209 -25
  243. package/dist/core/runtime-builder.js.map +1 -1
  244. package/dist/core/scout-controller.d.ts +6 -0
  245. package/dist/core/scout-controller.d.ts.map +1 -1
  246. package/dist/core/scout-controller.js +66 -52
  247. package/dist/core/scout-controller.js.map +1 -1
  248. package/dist/core/sdk.d.ts.map +1 -1
  249. package/dist/core/sdk.js +3 -3
  250. package/dist/core/sdk.js.map +1 -1
  251. package/dist/core/session-role.d.ts +31 -0
  252. package/dist/core/session-role.d.ts.map +1 -0
  253. package/dist/core/session-role.js +52 -0
  254. package/dist/core/session-role.js.map +1 -0
  255. package/dist/core/settings-manager.d.ts +42 -3
  256. package/dist/core/settings-manager.d.ts.map +1 -1
  257. package/dist/core/settings-manager.js +94 -60
  258. package/dist/core/settings-manager.js.map +1 -1
  259. package/dist/core/system-prompt-builder.d.ts +12 -0
  260. package/dist/core/system-prompt-builder.d.ts.map +1 -1
  261. package/dist/core/system-prompt-builder.js +6 -0
  262. package/dist/core/system-prompt-builder.js.map +1 -1
  263. package/dist/core/system-prompt.d.ts +14 -1
  264. package/dist/core/system-prompt.d.ts.map +1 -1
  265. package/dist/core/system-prompt.js +20 -3
  266. package/dist/core/system-prompt.js.map +1 -1
  267. package/dist/core/tasks/session-task-state.d.ts +11 -2
  268. package/dist/core/tasks/session-task-state.d.ts.map +1 -1
  269. package/dist/core/tasks/session-task-state.js +27 -11
  270. package/dist/core/tasks/session-task-state.js.map +1 -1
  271. package/dist/core/tasks/task-contract-monitor.d.ts +45 -0
  272. package/dist/core/tasks/task-contract-monitor.d.ts.map +1 -0
  273. package/dist/core/tasks/task-contract-monitor.js +56 -0
  274. package/dist/core/tasks/task-contract-monitor.js.map +1 -0
  275. package/dist/core/tasks/task-state.d.ts +8 -0
  276. package/dist/core/tasks/task-state.d.ts.map +1 -1
  277. package/dist/core/tasks/task-state.js +28 -1
  278. package/dist/core/tasks/task-state.js.map +1 -1
  279. package/dist/core/tool-gate-controller.d.ts.map +1 -1
  280. package/dist/core/tool-gate-controller.js +5 -0
  281. package/dist/core/tool-gate-controller.js.map +1 -1
  282. package/dist/core/tool-recovery-log-records.d.ts +7 -0
  283. package/dist/core/tool-recovery-log-records.d.ts.map +1 -1
  284. package/dist/core/tool-recovery-log-records.js +14 -6
  285. package/dist/core/tool-recovery-log-records.js.map +1 -1
  286. package/dist/core/tool-selection/promotion.d.ts +54 -0
  287. package/dist/core/tool-selection/promotion.d.ts.map +1 -0
  288. package/dist/core/tool-selection/promotion.js +81 -0
  289. package/dist/core/tool-selection/promotion.js.map +1 -0
  290. package/dist/core/tool-selection/tool-performance-store.d.ts +37 -0
  291. package/dist/core/tool-selection/tool-performance-store.d.ts.map +1 -1
  292. package/dist/core/tool-selection/tool-performance-store.js +87 -3
  293. package/dist/core/tool-selection/tool-performance-store.js.map +1 -1
  294. package/dist/core/tool-selection/tool-selection-controller.d.ts +45 -0
  295. package/dist/core/tool-selection/tool-selection-controller.d.ts.map +1 -1
  296. package/dist/core/tool-selection/tool-selection-controller.js +96 -0
  297. package/dist/core/tool-selection/tool-selection-controller.js.map +1 -1
  298. package/dist/core/tools/bash.d.ts +18 -0
  299. package/dist/core/tools/bash.d.ts.map +1 -1
  300. package/dist/core/tools/bash.js +97 -18
  301. package/dist/core/tools/bash.js.map +1 -1
  302. package/dist/core/tools/delegate-status.d.ts +14 -0
  303. package/dist/core/tools/delegate-status.d.ts.map +1 -1
  304. package/dist/core/tools/delegate-status.js +82 -7
  305. package/dist/core/tools/delegate-status.js.map +1 -1
  306. package/dist/core/tools/delegate.d.ts.map +1 -1
  307. package/dist/core/tools/delegate.js +25 -8
  308. package/dist/core/tools/delegate.js.map +1 -1
  309. package/dist/core/tools/find.d.ts.map +1 -1
  310. package/dist/core/tools/find.js +52 -44
  311. package/dist/core/tools/find.js.map +1 -1
  312. package/dist/core/tools/goal.d.ts +94 -3
  313. package/dist/core/tools/goal.d.ts.map +1 -1
  314. package/dist/core/tools/goal.js +165 -15
  315. package/dist/core/tools/goal.js.map +1 -1
  316. package/dist/core/tools/grep.d.ts.map +1 -1
  317. package/dist/core/tools/grep.js +5 -4
  318. package/dist/core/tools/grep.js.map +1 -1
  319. package/dist/core/tools/model-fitness.d.ts +7 -0
  320. package/dist/core/tools/model-fitness.d.ts.map +1 -1
  321. package/dist/core/tools/model-fitness.js +2 -2
  322. package/dist/core/tools/model-fitness.js.map +1 -1
  323. package/dist/core/tools/render-utils.d.ts.map +1 -1
  324. package/dist/core/tools/render-utils.js +1 -1
  325. package/dist/core/tools/render-utils.js.map +1 -1
  326. package/dist/core/tools/shell-contract-router.d.ts +6 -1
  327. package/dist/core/tools/shell-contract-router.d.ts.map +1 -1
  328. package/dist/core/tools/shell-contract-router.js +69 -13
  329. package/dist/core/tools/shell-contract-router.js.map +1 -1
  330. package/dist/core/tools/shell-session.d.ts +89 -0
  331. package/dist/core/tools/shell-session.d.ts.map +1 -0
  332. package/dist/core/tools/shell-session.js +432 -0
  333. package/dist/core/tools/shell-session.js.map +1 -0
  334. package/dist/core/tools/task-steps.d.ts +4 -0
  335. package/dist/core/tools/task-steps.d.ts.map +1 -1
  336. package/dist/core/tools/task-steps.js +63 -8
  337. package/dist/core/tools/task-steps.js.map +1 -1
  338. package/dist/core/tools/tmux-dispatch.d.ts +86 -0
  339. package/dist/core/tools/tmux-dispatch.d.ts.map +1 -0
  340. package/dist/core/tools/tmux-dispatch.js +91 -0
  341. package/dist/core/tools/tmux-dispatch.js.map +1 -0
  342. package/dist/core/tools/windows-shell-engine.d.ts +42 -0
  343. package/dist/core/tools/windows-shell-engine.d.ts.map +1 -0
  344. package/dist/core/tools/windows-shell-engine.js +153 -0
  345. package/dist/core/tools/windows-shell-engine.js.map +1 -0
  346. package/dist/core/tools/windows-shell-state.d.ts +40 -0
  347. package/dist/core/tools/windows-shell-state.d.ts.map +1 -0
  348. package/dist/core/tools/windows-shell-state.js +59 -0
  349. package/dist/core/tools/windows-shell-state.js.map +1 -0
  350. package/dist/core/tools/worktree-sync.d.ts +24 -0
  351. package/dist/core/tools/worktree-sync.d.ts.map +1 -0
  352. package/dist/core/tools/worktree-sync.js +338 -0
  353. package/dist/core/tools/worktree-sync.js.map +1 -0
  354. package/dist/core/trust-manager.d.ts +4 -1
  355. package/dist/core/trust-manager.d.ts.map +1 -1
  356. package/dist/core/trust-manager.js +20 -2
  357. package/dist/core/trust-manager.js.map +1 -1
  358. package/dist/core/util/atomic-file.d.ts +55 -0
  359. package/dist/core/util/atomic-file.d.ts.map +1 -0
  360. package/dist/core/util/atomic-file.js +255 -0
  361. package/dist/core/util/atomic-file.js.map +1 -0
  362. package/dist/core/util/minimatch-cache.d.ts +33 -0
  363. package/dist/core/util/minimatch-cache.d.ts.map +1 -0
  364. package/dist/core/util/minimatch-cache.js +0 -0
  365. package/dist/core/util/minimatch-cache.js.map +1 -0
  366. package/dist/core/worktree-sync/codes.d.ts +227 -0
  367. package/dist/core/worktree-sync/codes.d.ts.map +1 -0
  368. package/dist/core/worktree-sync/codes.js +14 -0
  369. package/dist/core/worktree-sync/codes.js.map +1 -0
  370. package/dist/core/worktree-sync/git-engine.d.ts +156 -0
  371. package/dist/core/worktree-sync/git-engine.d.ts.map +1 -0
  372. package/dist/core/worktree-sync/git-engine.js +1191 -0
  373. package/dist/core/worktree-sync/git-engine.js.map +1 -0
  374. package/dist/core/worktree-sync/lane-gate.d.ts +75 -0
  375. package/dist/core/worktree-sync/lane-gate.d.ts.map +1 -0
  376. package/dist/core/worktree-sync/lane-gate.js +360 -0
  377. package/dist/core/worktree-sync/lane-gate.js.map +1 -0
  378. package/dist/core/worktree-sync/runtime.d.ts +47 -0
  379. package/dist/core/worktree-sync/runtime.d.ts.map +1 -0
  380. package/dist/core/worktree-sync/runtime.js +96 -0
  381. package/dist/core/worktree-sync/runtime.js.map +1 -0
  382. package/dist/core/worktree-sync/store.d.ts +69 -0
  383. package/dist/core/worktree-sync/store.d.ts.map +1 -0
  384. package/dist/core/worktree-sync/store.js +247 -0
  385. package/dist/core/worktree-sync/store.js.map +1 -0
  386. package/dist/core/worktree-sync/watcher.d.ts +29 -0
  387. package/dist/core/worktree-sync/watcher.d.ts.map +1 -0
  388. package/dist/core/worktree-sync/watcher.js +93 -0
  389. package/dist/core/worktree-sync/watcher.js.map +1 -0
  390. package/dist/main.d.ts.map +1 -1
  391. package/dist/main.js +94 -0
  392. package/dist/main.js.map +1 -1
  393. package/dist/migrations.d.ts +9 -0
  394. package/dist/migrations.d.ts.map +1 -1
  395. package/dist/migrations.js +38 -0
  396. package/dist/migrations.js.map +1 -1
  397. package/dist/modes/interactive/auto-learn-controller.d.ts +16 -1
  398. package/dist/modes/interactive/auto-learn-controller.d.ts.map +1 -1
  399. package/dist/modes/interactive/auto-learn-controller.js +50 -8
  400. package/dist/modes/interactive/auto-learn-controller.js.map +1 -1
  401. package/dist/modes/interactive/components/profile-resource-editor.d.ts.map +1 -1
  402. package/dist/modes/interactive/components/profile-resource-editor.js +23 -1
  403. package/dist/modes/interactive/components/profile-resource-editor.js.map +1 -1
  404. package/dist/modes/interactive/interactive-mode.d.ts +1 -0
  405. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  406. package/dist/modes/interactive/interactive-mode.js +4 -0
  407. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  408. package/dist/modes/interactive/local-model-commands.d.ts +43 -0
  409. package/dist/modes/interactive/local-model-commands.d.ts.map +1 -1
  410. package/dist/modes/interactive/local-model-commands.js +290 -3
  411. package/dist/modes/interactive/local-model-commands.js.map +1 -1
  412. package/dist/modes/interactive/session-flow-commands.d.ts.map +1 -1
  413. package/dist/modes/interactive/session-flow-commands.js +24 -4
  414. package/dist/modes/interactive/session-flow-commands.js.map +1 -1
  415. package/dist/utils/fs-watch.d.ts +11 -0
  416. package/dist/utils/fs-watch.d.ts.map +1 -1
  417. package/dist/utils/fs-watch.js +20 -2
  418. package/dist/utils/fs-watch.js.map +1 -1
  419. package/dist/utils/highlight-js-languages.d.ts +4 -0
  420. package/dist/utils/highlight-js-languages.d.ts.map +1 -0
  421. package/dist/utils/highlight-js-languages.js +573 -0
  422. package/dist/utils/highlight-js-languages.js.map +1 -0
  423. package/dist/utils/shell.d.ts +7 -1
  424. package/dist/utils/shell.d.ts.map +1 -1
  425. package/dist/utils/shell.js +39 -9
  426. package/dist/utils/shell.js.map +1 -1
  427. package/dist/utils/syntax-highlight.d.ts.map +1 -1
  428. package/dist/utils/syntax-highlight.js +53 -5
  429. package/dist/utils/syntax-highlight.js.map +1 -1
  430. package/dist/utils/tools-manager.d.ts.map +1 -1
  431. package/dist/utils/tools-manager.js +112 -1
  432. package/dist/utils/tools-manager.js.map +1 -1
  433. package/docs/development.md +2 -0
  434. package/docs/packages.md +1 -1
  435. package/docs/process-matrix.md +120 -0
  436. package/docs/settings.md +5 -2
  437. package/docs/tmux-agent-manager.md +85 -2
  438. package/docs/windows.md +52 -3
  439. package/docs/work-directory.md +29 -0
  440. package/docs/worktree-sync.md +250 -0
  441. package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
  442. package/examples/extensions/custom-provider-anthropic/package.json +1 -1
  443. package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  444. package/examples/extensions/sandbox/package-lock.json +2 -2
  445. package/examples/extensions/sandbox/package.json +1 -1
  446. package/examples/extensions/with-deps/package-lock.json +2 -2
  447. package/examples/extensions/with-deps/package.json +1 -1
  448. package/npm-shrinkwrap.json +12 -12
  449. package/package.json +10 -4
  450. package/docs/integration-sweep-builder-blueprint-2026-07-09.md +0 -365
  451. package/docs/integration-sweep-resume-2026-07-09.md +0 -407
@@ -1,407 +0,0 @@
1
- # Integration Sweep Resume Note — 2026-07-09
2
-
3
- Status: paused by user after a second work slice; implementation is intentionally uncommitted and
4
- ready to resume. The latest slice has not yet been re-tested.
5
-
6
- ## Scope
7
-
8
- Synchronize and simplify these host subsystems while prioritizing foreground performance and
9
- accuracy:
10
-
11
- - toolkit store and deterministic toolkit routing;
12
- - shared tool repair and isolated child loops;
13
- - local-model lifecycle, routing, residency, and background lanes;
14
- - memory and file-backed tool-output artifacts;
15
- - worker/subagent contracts and accounting;
16
- - generic external memory-provider compatibility.
17
-
18
- Do not modify Pi extensions. In particular, no files under
19
- `/home/caudev/__pi/agent/extensions` were changed. Graphify was inspected only as an external
20
- consumer of the host's generic tool and context-memory-provider contracts.
21
-
22
- ## Design decisions
23
-
24
- 1. Foreground first: optional local curation/background work must not compete with a local user
25
- turn.
26
- 2. One model-call gateway: foreground, routed, and isolated calls must share managed-local
27
- readiness, repair telemetry, timeout behavior, and accounting.
28
- 3. Reuse a configured healthy Ollama server when it exposes the requested model. Server/store
29
- ownership is not a capability boundary.
30
- 4. Residency admission must not synchronously cold-load Ollama with an empty generation. The real
31
- adaptive stream owns cold load and prefill timing.
32
- 5. Preserve exact oversized tool output in retrievable artifacts; send bounded previews to models.
33
- 6. Use compact structured model-to-model contracts. Do not use Unicode/Braille as compression;
34
- measure tokenizer cost instead.
35
- 7. Future automatic tool selection should use constrained expected utility, not another free-form
36
- judge:
37
-
38
- `utility = success_probability * value - latency_cost - token_cost - risk_cost - context_cost`
39
-
40
- Hard capability/path/profile gates run first; ambiguous rankings return a shortlist or defer to
41
- the foreground model.
42
-
43
- ## Implemented in the working tree
44
-
45
- ### Local model reliability and performance
46
-
47
- - `ReflectionController.runIsolatedCompletion` now calls a shared managed-local readiness gate, so
48
- research, workers, route judges, curation, reflex interpretation, fitness probes, and other
49
- isolated calls no longer bypass local runtime startup.
50
- - Manual/default local foreground models now receive readiness handling even when the model router
51
- is disabled.
52
- - A healthy configured Ollama server is reused when `/api/tags` contains the requested model,
53
- regardless of whether its store is Pi-owned, user-owned, or externally managed.
54
- - Ollama detection now carries the live server's model list in `LocalRuntimeStatus`, so the initial
55
- readiness pass uses one `/api/tags` request instead of detecting and listing separately.
56
- - A running server missing the requested model fails visibly instead of being used incorrectly.
57
- - Runtime residency adapters are collected into one session-wide view instead of constructing an
58
- arbiter that sees only the current runtime.
59
- - Residency supports admission/eviction without loading the model. The local controller uses this
60
- mode to avoid a blocking empty `/api/generate` with a 60-second timeout before the real request.
61
- - Already-resident models no longer receive redundant activation calls from the arbiter.
62
- - Local curator draining is deferred while both the foreground and curator models are managed-local,
63
- preventing a fire-and-forget curator from taking a single-parallel Ollama slot before the user
64
- request.
65
- - A focused local-priority regression test was added but has not yet been run.
66
-
67
- ### Tool repair
68
-
69
- - Isolated child tool loops now forward `onToolArgumentValidation` and
70
- `onToolValidationEscalation`, so their deterministic repairs and repeated validation failures use
71
- the same telemetry/adaptation path as foreground calls.
72
-
73
- ### Toolkit output artifacts
74
-
75
- - `run_toolkit_script` now stores exact oversized stdout/stderr in the session artifact store and
76
- returns an 8 KiB/400-line bounded preview plus an `artifact_retrieve` handle.
77
- - Exit status and failure text remain in the preview; toolkit output is marked non-reproducible.
78
-
79
- ## Live diagnosis captured
80
-
81
- - The active Pi config is under `~/.pi/agent`.
82
- - Its Ollama provider targets `http://localhost:11434/v1` and registers local qwen/MiniCPM models.
83
- - The model router was disabled at inspection time, but local cheap/executor models remained
84
- configured.
85
- - No Ollama server was running during inspection and no Linux Ollama binary was found in PATH or the
86
- Pi runtime directory.
87
- - Another local configuration under `~/__pi/agent` targets a manually served Windows/WSL endpoint.
88
- - The prior host policy rejected non-Pi-owned running stores and synchronously preloaded models;
89
- these were concrete causes of manual-server performance being better and local use failing.
90
-
91
- ## Focused validation completed
92
-
93
- From `packages/coding-agent`:
94
-
95
- ```bash
96
- node ../../node_modules/vitest/dist/cli.js --run \
97
- test/run-toolkit-script.test.ts \
98
- test/isolated-child-loop.test.ts \
99
- test/agent-session-local-runtime.test.ts \
100
- test/runtime-arbiter.test.ts \
101
- test/brain-curator.test.ts \
102
- test/context-pipeline-token-budget.test.ts
103
- ```
104
-
105
- Result: 6 files passed, 65 tests passed.
106
-
107
- Earlier focused run also passed the existing local runtime and isolated child tests after the
108
- readiness changes.
109
-
110
- `npm run check` has not been run yet because the user paused the sweep before final validation.
111
-
112
- Important: after that 65-test green run, the second slice changed `LocalRuntimeStatus` to include
113
- `serverModels` and added `context-pipeline-local-priority.test.ts`. Those latest changes have not yet
114
- been compiled or tested.
115
-
116
- ## Files changed by this sweep
117
-
118
- - `packages/coding-agent/src/core/agent-session.ts`
119
- - `packages/coding-agent/src/core/context-pipeline.ts`
120
- - `packages/coding-agent/src/core/local-runtime-controller.ts`
121
- - `packages/coding-agent/src/core/models/runtime-arbiter.ts`
122
- - `packages/coding-agent/src/core/reflection-controller.ts`
123
- - `packages/coding-agent/src/core/runtime-builder.ts`
124
- - `packages/coding-agent/src/core/tools/run-toolkit-script.ts`
125
- - `packages/coding-agent/test/agent-session-local-runtime.test.ts`
126
- - `packages/coding-agent/test/context-pipeline-token-budget.test.ts`
127
- - `packages/coding-agent/test/context-pipeline-local-priority.test.ts`
128
- - `packages/coding-agent/test/isolated-child-loop.test.ts`
129
- - `packages/coding-agent/test/run-toolkit-script.test.ts`
130
- - `packages/coding-agent/test/runtime-arbiter.test.ts`
131
- - this resume note.
132
-
133
- `packages/coding-agent/docs/bug-ledger.md` was already modified before this sweep and was not edited
134
- as part of this work.
135
-
136
- ## Remaining work: exact execution plan
137
-
138
- ### 1. Stabilize the latest local-runtime changes
139
-
140
- Files:
141
-
142
- - `src/core/models/local-runtime.ts`
143
- - `src/core/local-runtime-controller.ts`
144
- - `src/core/models/runtime-arbiter.ts`
145
- - `test/agent-session-local-runtime.test.ts`
146
- - `test/runtime-arbiter.test.ts`
147
-
148
- How:
149
-
150
- 1. Compile/run the focused tests first. `LocalRuntimeStatus.serverModels` is newly required, so faux
151
- status literals in other tests may need `serverModels: []`.
152
- 2. Check that one cold readiness pass performs:
153
- - one `/api/tags` request for reachability plus requested-model presence;
154
- - one `/api/ps` request for residency accounting;
155
- - no empty `/api/generate` preload;
156
- - then the real OpenAI-compatible stream, whose adaptive local connect bound owns cold load and
157
- prefill.
158
- 3. Keep `_confirmedUp` as the steady-state fast path: subsequent successful turns should perform no
159
- readiness HTTP requests until a matching local assistant error invalidates the key.
160
- 4. Verify a manually managed server is accepted only when it exposes the exact requested model or
161
- the bare/`:latest` equivalent. A reachable server without the model must return
162
- `model_missing_on_server`, not proceed and fail later.
163
- 5. Review session-wide residency adapter identities for multiple Ollama URLs and Transformers
164
- models. They must not collide.
165
-
166
- Expected:
167
-
168
- - Manually started Ollama keeps its own binary, GPU/backend configuration, model store, and warm
169
- cache.
170
- - Pi starts its managed server only when the configured endpoint is down and a usable binary exists.
171
- - No duplicate server is started against an already reachable configured endpoint.
172
- - Local route, manual model, judge, research, worker, curation, reflex, and fitness calls all pass
173
- through readiness.
174
- - Foreground failure remains visible and router fallback remains bounded/explicit.
175
-
176
- Acceptance tests:
177
-
178
- ```bash
179
- cd packages/coding-agent
180
- node ../../node_modules/vitest/dist/cli.js --run \
181
- test/agent-session-local-runtime.test.ts \
182
- test/runtime-arbiter.test.ts \
183
- test/model-perf-profile.test.ts \
184
- test/isolated-child-loop.test.ts
185
- ```
186
-
187
- ### 2. Finish foreground-priority behavior
188
-
189
- Files:
190
-
191
- - `src/core/context-pipeline.ts`
192
- - `test/context-pipeline-local-priority.test.ts`
193
- - optionally `test/brain-curator.test.ts` if a session-level regression is clearer.
194
-
195
- How:
196
-
197
- 1. Run the newly added local-priority test and correct type/faux-dependency issues.
198
- 2. Keep queued curator work intact when both foreground and curator are managed-local.
199
- 3. Add a second assertion or test proving the same queued job can drain later when the foreground is
200
- a cloud model or no local foreground is active. Do not drop or mark the job completed on defer.
201
- 4. Keep the visible reason code `curation_deferred_for_local_foreground` in diagnostics.
202
-
203
- Expected:
204
-
205
- - Optional curation never takes a single-parallel local server slot before a user request.
206
- - Deferral loses no work; curation can run on a later non-competing turn.
207
- - Cloud foreground plus local curator remains allowed unless profiling later shows host CPU pressure.
208
-
209
- ### 3. Complete toolkit/artifact integration
210
-
211
- Files:
212
-
213
- - `src/core/tools/run-toolkit-script.ts`
214
- - `src/core/runtime-builder.ts`
215
- - `test/run-toolkit-script.test.ts`
216
-
217
- How:
218
-
219
- 1. Re-run the artifact regression.
220
- 2. Confirm the active-tool companion rule always activates `artifact_retrieve` when
221
- `run_toolkit_script` can emit an artifact. The current runtime only auto-adds the companion for
222
- `grep`/`find`; either extend that condition to toolkit or suppress the artifact store when the
223
- retrieval tool is not active. Never emit an unresolvable handle.
224
- 3. Keep the preview bounded at 8 KiB/400 lines unless measurement supports a smaller cap.
225
- 4. Preserve exit code, timeout state, first failure text, stdout/stderr labels, and exact full output
226
- in the artifact.
227
- 5. Verify context-GC reference release recognizes toolkit `details.artifactId` exactly as it does for
228
- grep/find.
229
-
230
- Expected:
231
-
232
- - Small script output stays directly readable.
233
- - Large output never bloats prompt context and is never lost.
234
- - Every emitted artifact handle is resolvable in the same active tool surface.
235
- - Failed scripts remain unmistakably failed even when output is packed.
236
-
237
- ### 4. Tool-selection policy: observe first
238
-
239
- Do not add an orphan policy module. Integrate only when its inputs and output have live owners.
240
-
241
- Suggested files:
242
-
243
- - new `src/core/tool-selection/expected-utility.ts` for pure math;
244
- - new `src/core/tool-selection/tool-performance-store.ts` for bounded host/model/tool statistics;
245
- - `src/core/tool-gate-controller.ts` for execution outcomes/timing;
246
- - `src/core/system-prompt-builder.ts` or a dedicated pre-turn controller for a compact recommendation;
247
- - focused tests under `test/tool-selection-*.test.ts`.
248
-
249
- How:
250
-
251
- 1. Candidate generation uses only active, profile-allowed, capability-compatible tools.
252
- 2. Hard gates run before scoring: denied tool/path/capability never becomes a candidate.
253
- 3. Maintain per `(host, model ref, intent class, tool)` bounded statistics:
254
- - Beta posterior `alpha/beta` for success probability;
255
- - latency EWMA and bounded deviation;
256
- - prompt/output-token EWMA where observable;
257
- - repair/bounce/failure counts;
258
- - last-used timestamp and sample count.
259
- 4. Score candidates with normalized units:
260
-
261
- `U(t) = Psuccess(t) * value(t) - λL*latency(t) - λT*tokens(t) - λR*risk(t) - λC*context(t)`
262
-
263
- 5. Include `no_tool` as a real candidate with zero cost and an intent-dependent value.
264
- 6. Recommend a tool only when:
265
- - best utility is positive;
266
- - best-minus-runner-up exceeds a configured margin;
267
- - minimum evidence exists, or the match is deterministic name/alias/schema intent.
268
- 7. Compute normalized entropy over candidate probabilities. High entropy produces a shortlist; it
269
- never executes automatically.
270
- 8. First production slice is observe-only: persist/redact rankings and compare recommendation to the
271
- model's actual choice. Do not hide tools or execute on the model's behalf.
272
- 9. Promote to a concise prompt hint only after offline replay shows higher first-tool success and no
273
- increase in unsafe/wrong-tool calls.
274
-
275
- Expected:
276
-
277
- - Exact toolkit/name hits remain deterministic and model-call-free.
278
- - Repeated host/model workflows improve from observed outcomes.
279
- - Ambiguity remains conservative.
280
- - The selector reduces wrong first tools, retries, latency, and context cost without becoming another
281
- prompt-heavy router.
282
-
283
- Acceptance metrics:
284
-
285
- - first-tool success rate;
286
- - wrong-tool/refusal rate;
287
- - p50/p95 time to first useful tool result;
288
- - tool-related input/output tokens;
289
- - repair and validation-bounce rate;
290
- - shortlist/abstention calibration;
291
- - no regression in capability/path gate enforcement.
292
-
293
- ### 5. Worker semantics
294
-
295
- Files:
296
-
297
- - `src/core/delegation/worker-runner.ts`
298
- - `src/core/background-lane-controller.ts`
299
- - `src/core/delegation/worker-result.ts`
300
- - worker delegation tests.
301
-
302
- Current fact: direct write/edit tools and structured actions may mutate inside the capability
303
- envelope before `validateWorkerResult` returns `parent_review_required`.
304
-
305
- How:
306
-
307
- 1. Do not silently remove the intentional write lane.
308
- 2. Choose and document one explicit contract:
309
- - review-after-apply: envelope authorization permits mutation; parent reviews/validates afterward;
310
- - staged apply: worker returns structured actions/patches, parent gate accepts, then runner applies.
311
- 3. If staged apply is selected, direct write/edit tools must also target a staging layer; otherwise
312
- only structured actions are truly staged.
313
- 4. Preserve symlink-aware path enforcement, changed-file accounting on partial failure, blockers, and
314
- spawned usage under either contract.
315
-
316
- Expected:
317
-
318
- - User and parent can tell whether review is pre- or post-mutation.
319
- - A blocked/out-of-scope action never mutates.
320
- - Partial mutations never look like clean success.
321
-
322
- ### 6. External memory and Graphify compatibility
323
-
324
- Host files only. Do not modify Pi extensions.
325
-
326
- How:
327
-
328
- 1. Verify extension registration/reload keeps both `registerMemoryProvider` and
329
- `registerContextMemoryProvider` contributions across atomic reloads.
330
- 2. Add/retain host tests using faux graph-capable context providers (`graph: true`) rather than
331
- importing private Graphify code.
332
- 3. Confirm generic graph results are budgeted, source-labeled, wrapped as untrusted evidence, and
333
- included only when the long-term-memory demand gate opens.
334
- 4. Confirm dynamic provider GC markers join context-GC markers without brand-specific host logic.
335
-
336
- Expected:
337
-
338
- - The host is fully ready for Graphify or any graph provider through public contracts.
339
- - Private providers remain optional and can disappear/reload without breaking the session.
340
- - No private brand or path becomes a package dependency.
341
-
342
- ### 7. Documentation and final validation
343
-
344
- Update these stale planning snapshots after behavior is final:
345
-
346
- - `docs/model-router-rework.md`
347
- - `docs/model-router-rework/current-state.md`
348
- - `docs/model-router-rework/local-model-lifecycle-design.md`
349
- - `docs/context-management-rework/tool-output-artifacts.md`
350
- - this note: change status to completed and record final test/check results.
351
-
352
- Document:
353
-
354
- - three-tier router and judge are implemented;
355
- - autonomy/delegation/research directories exist;
356
- - managed-local readiness covers every call path;
357
- - configured manual Ollama servers are preferred when valid;
358
- - residency admission is non-blocking;
359
- - local foreground has priority over optional local sidecars;
360
- - artifact coverage is grep/find/toolkit, plus any additional tools actually completed;
361
- - worker mutation semantics exactly as implemented.
362
-
363
- Final commands:
364
-
365
- ```bash
366
- cd /home/caudev/GitHub/mine/pi-adaptative
367
- git status --short
368
-
369
- cd packages/coding-agent
370
- node ../../node_modules/vitest/dist/cli.js --run \
371
- test/agent-session-local-runtime.test.ts \
372
- test/runtime-arbiter.test.ts \
373
- test/model-perf-profile.test.ts \
374
- test/isolated-child-loop.test.ts \
375
- test/context-pipeline-local-priority.test.ts \
376
- test/context-pipeline-token-budget.test.ts \
377
- test/brain-curator.test.ts \
378
- test/run-toolkit-script.test.ts
379
-
380
- cd /home/caudev/GitHub/mine/pi-adaptative
381
- npm run check
382
- ```
383
-
384
- Fix every error, warning, and info from `npm run check`. Do not use `tail`. Do not run `npm test` or
385
- `npm run build` unless requested. Do not commit unless requested.
386
-
387
- ## Resume command
388
-
389
- Start at the repository root and inspect only; do not discard other-session changes:
390
-
391
- ```bash
392
- git status --short
393
- git diff -- \
394
- packages/coding-agent/src/core/agent-session.ts \
395
- packages/coding-agent/src/core/context-pipeline.ts \
396
- packages/coding-agent/src/core/local-runtime-controller.ts \
397
- packages/coding-agent/src/core/models/runtime-arbiter.ts \
398
- packages/coding-agent/src/core/reflection-controller.ts \
399
- packages/coding-agent/src/core/runtime-builder.ts \
400
- packages/coding-agent/src/core/tools/run-toolkit-script.ts \
401
- packages/coding-agent/test/agent-session-local-runtime.test.ts \
402
- packages/coding-agent/test/context-pipeline-token-budget.test.ts \
403
- packages/coding-agent/test/context-pipeline-local-priority.test.ts \
404
- packages/coding-agent/test/isolated-child-loop.test.ts \
405
- packages/coding-agent/test/run-toolkit-script.test.ts \
406
- packages/coding-agent/test/runtime-arbiter.test.ts
407
- ```