@selesai/code 0.13.13 → 0.13.15

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 (1783) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/bun/cli.d.ts +2 -0
  3. package/dist/bun/cli.js +10 -0
  4. package/dist/bun/register-bedrock.d.ts +1 -0
  5. package/dist/bun/register-bedrock.js +3 -0
  6. package/dist/bun/restore-sandbox-env.d.ts +16 -0
  7. package/dist/bun/restore-sandbox-env.js +35 -0
  8. package/dist/cli/args.d.ts +59 -0
  9. package/dist/cli/args.js +428 -0
  10. package/dist/cli/args.test.d.ts +1 -0
  11. package/dist/cli/args.test.js +32 -0
  12. package/dist/cli/config-selector.d.ts +15 -0
  13. package/dist/cli/config-selector.js +30 -0
  14. package/dist/cli/credential-print.d.ts +22 -0
  15. package/dist/cli/credential-print.js +116 -0
  16. package/dist/cli/file-processor.d.ts +14 -0
  17. package/dist/cli/file-processor.js +69 -0
  18. package/dist/cli/initial-message.d.ts +17 -0
  19. package/dist/cli/initial-message.js +21 -0
  20. package/dist/cli/list-models.d.ts +8 -0
  21. package/dist/cli/list-models.js +97 -0
  22. package/dist/cli/project-trust.d.ts +9 -0
  23. package/dist/cli/project-trust.js +47 -0
  24. package/dist/cli/session-picker.d.ts +9 -0
  25. package/dist/cli/session-picker.js +35 -0
  26. package/dist/cli/startup-ui.d.ts +22 -0
  27. package/dist/cli/startup-ui.js +172 -0
  28. package/dist/cli.d.ts +2 -0
  29. package/dist/cli.js +17 -0
  30. package/dist/config.d.ts +181 -0
  31. package/dist/config.js +788 -0
  32. package/dist/core/agent-session-auto-handoff.test.d.ts +1 -0
  33. package/dist/core/agent-session-auto-handoff.test.js +185 -0
  34. package/dist/core/agent-session-length-continuation.test.d.ts +1 -0
  35. package/dist/core/agent-session-length-continuation.test.js +109 -0
  36. package/dist/core/agent-session-runtime.d.ts +118 -0
  37. package/dist/core/agent-session-runtime.js +305 -0
  38. package/dist/core/agent-session-services.d.ts +84 -0
  39. package/dist/core/agent-session-services.js +132 -0
  40. package/dist/core/agent-session-skill-block.test.d.ts +1 -0
  41. package/dist/core/agent-session-skill-block.test.js +19 -0
  42. package/dist/core/agent-session.d.ts +713 -0
  43. package/dist/core/agent-session.js +3071 -0
  44. package/dist/core/agents.d.ts +52 -0
  45. package/dist/core/agents.js +237 -0
  46. package/dist/core/auth-guidance.d.ts +4 -0
  47. package/dist/core/auth-guidance.js +20 -0
  48. package/dist/core/auth-storage.d.ts +61 -0
  49. package/dist/core/auth-storage.js +249 -0
  50. package/dist/core/bash-executor.d.ts +31 -0
  51. package/dist/core/bash-executor.js +110 -0
  52. package/dist/core/built-in-extensions.d.ts +2 -0
  53. package/dist/core/built-in-extensions.js +2 -0
  54. package/dist/core/cache-stats.d.ts +48 -0
  55. package/dist/core/cache-stats.js +100 -0
  56. package/dist/core/compaction/branch-summarization.d.ts +97 -0
  57. package/dist/core/compaction/branch-summarization.js +246 -0
  58. package/dist/core/compaction/compaction.d.ts +141 -0
  59. package/dist/core/compaction/compaction.js +659 -0
  60. package/dist/core/compaction/index.d.ts +6 -0
  61. package/dist/core/compaction/index.js +6 -0
  62. package/dist/core/compaction/utils.d.ts +37 -0
  63. package/dist/core/compaction/utils.js +141 -0
  64. package/dist/core/defaults.d.ts +3 -0
  65. package/dist/core/defaults.js +10 -0
  66. package/dist/core/diagnostics.d.ts +15 -0
  67. package/dist/core/diagnostics.js +1 -0
  68. package/dist/core/event-bus.d.ts +8 -0
  69. package/dist/core/event-bus.js +24 -0
  70. package/dist/core/exec.d.ts +28 -0
  71. package/dist/core/exec.js +74 -0
  72. package/dist/core/experimental.d.ts +5 -0
  73. package/dist/core/experimental.js +7 -0
  74. package/dist/core/export-html/ansi-to-html.d.ts +21 -0
  75. package/dist/core/export-html/ansi-to-html.js +248 -0
  76. package/dist/core/export-html/index.d.ts +36 -0
  77. package/dist/core/export-html/index.js +225 -0
  78. package/dist/core/export-html/template.css +1066 -0
  79. package/dist/core/export-html/template.html +55 -0
  80. package/dist/core/export-html/template.js +1864 -0
  81. package/dist/core/export-html/tool-renderer.d.ts +33 -0
  82. package/dist/core/export-html/tool-renderer.js +107 -0
  83. package/dist/core/export-html/vendor/highlight.min.js +1213 -0
  84. package/dist/core/export-html/vendor/marked.min.js +78 -0
  85. package/dist/core/extensions/index.d.ts +11 -0
  86. package/dist/core/extensions/index.js +8 -0
  87. package/dist/core/extensions/loader.d.ts +22 -0
  88. package/dist/core/extensions/loader.js +642 -0
  89. package/dist/core/extensions/loader.test.d.ts +1 -0
  90. package/dist/core/extensions/loader.test.js +21 -0
  91. package/dist/core/extensions/runner.d.ts +176 -0
  92. package/dist/core/extensions/runner.js +1018 -0
  93. package/dist/core/extensions/types.d.ts +1353 -0
  94. package/dist/core/extensions/types.js +44 -0
  95. package/dist/core/extensions/wrapper.d.ts +19 -0
  96. package/dist/core/extensions/wrapper.js +40 -0
  97. package/dist/core/footer-data-provider.d.ts +63 -0
  98. package/dist/core/footer-data-provider.js +337 -0
  99. package/dist/core/git-command.d.ts +8 -0
  100. package/dist/core/git-command.js +48 -0
  101. package/dist/core/handoff.d.ts +11 -0
  102. package/dist/core/handoff.js +49 -0
  103. package/dist/core/http-dispatcher.d.ts +21 -0
  104. package/dist/core/http-dispatcher.js +90 -0
  105. package/dist/core/index.d.ts +12 -0
  106. package/dist/core/index.js +12 -0
  107. package/dist/core/keybindings.d.ts +421 -0
  108. package/dist/core/keybindings.js +295 -0
  109. package/dist/core/llama/client.d.ts +66 -0
  110. package/dist/core/llama/client.js +308 -0
  111. package/dist/core/llama/huggingface.d.ts +22 -0
  112. package/dist/core/llama/huggingface.js +140 -0
  113. package/dist/core/llama/index.d.ts +2 -0
  114. package/dist/core/llama/index.js +207 -0
  115. package/dist/core/llama/provider.d.ts +11 -0
  116. package/dist/core/llama/provider.js +143 -0
  117. package/dist/core/llama/ui.d.ts +41 -0
  118. package/dist/core/llama/ui.js +415 -0
  119. package/dist/core/messages.d.ts +76 -0
  120. package/dist/core/messages.js +122 -0
  121. package/dist/core/model-config.d.ts +547 -0
  122. package/dist/core/model-config.js +278 -0
  123. package/dist/core/model-registry.d.ts +45 -0
  124. package/dist/core/model-registry.js +107 -0
  125. package/dist/core/model-resolver.d.ts +122 -0
  126. package/dist/core/model-resolver.js +558 -0
  127. package/dist/core/model-runtime.d.ts +86 -0
  128. package/dist/core/model-runtime.js +472 -0
  129. package/dist/core/models-store.d.ts +16 -0
  130. package/dist/core/models-store.js +44 -0
  131. package/dist/core/output-guard.d.ts +6 -0
  132. package/dist/core/output-guard.js +88 -0
  133. package/dist/core/package-manager.d.ts +221 -0
  134. package/dist/core/package-manager.js +2232 -0
  135. package/dist/core/package-manager.test.d.ts +1 -0
  136. package/dist/core/package-manager.test.js +58 -0
  137. package/dist/core/project-trust.d.ts +14 -0
  138. package/dist/core/project-trust.js +58 -0
  139. package/dist/core/prompt-templates.d.ts +53 -0
  140. package/dist/core/prompt-templates.js +235 -0
  141. package/dist/core/provider-attribution.d.ts +3 -0
  142. package/dist/core/provider-attribution.js +71 -0
  143. package/dist/core/provider-composer.d.ts +54 -0
  144. package/dist/core/provider-composer.js +387 -0
  145. package/dist/core/radius.d.ts +1 -0
  146. package/dist/core/radius.js +1 -0
  147. package/dist/core/remote-catalog-provider.d.ts +4 -0
  148. package/dist/core/remote-catalog-provider.js +119 -0
  149. package/dist/core/resolve-config-value.d.ts +29 -0
  150. package/dist/core/resolve-config-value.js +246 -0
  151. package/dist/core/resource-loader.d.ts +273 -0
  152. package/dist/core/resource-loader.js +982 -0
  153. package/dist/core/runtime-credentials.d.ts +16 -0
  154. package/dist/core/runtime-credentials.js +41 -0
  155. package/dist/core/sdk.d.ts +107 -0
  156. package/dist/core/sdk.js +279 -0
  157. package/dist/core/session-cwd.d.ts +18 -0
  158. package/dist/core/session-cwd.js +37 -0
  159. package/dist/core/session-manager.d.ts +355 -0
  160. package/dist/core/session-manager.js +1339 -0
  161. package/dist/core/settings-manager-auto-handoff.test.d.ts +1 -0
  162. package/dist/core/settings-manager-auto-handoff.test.js +42 -0
  163. package/dist/core/settings-manager.d.ts +350 -0
  164. package/dist/core/settings-manager.js +1076 -0
  165. package/dist/core/skills.d.ts +70 -0
  166. package/dist/core/skills.js +401 -0
  167. package/dist/core/slash-commands.d.ts +14 -0
  168. package/dist/core/slash-commands.js +27 -0
  169. package/dist/core/source-info.d.ts +17 -0
  170. package/dist/core/source-info.js +18 -0
  171. package/dist/core/system-prompt.d.ts +30 -0
  172. package/dist/core/system-prompt.js +129 -0
  173. package/dist/core/system-prompt.test.d.ts +1 -0
  174. package/dist/core/system-prompt.test.js +94 -0
  175. package/dist/core/telemetry.d.ts +2 -0
  176. package/dist/core/telemetry.js +8 -0
  177. package/dist/core/timings.d.ts +9 -0
  178. package/dist/core/timings.js +40 -0
  179. package/dist/core/tools/bash.d.ts +86 -0
  180. package/dist/core/tools/bash.js +409 -0
  181. package/dist/core/tools/edit-diff.d.ts +105 -0
  182. package/dist/core/tools/edit-diff.js +423 -0
  183. package/dist/core/tools/edit.d.ts +50 -0
  184. package/dist/core/tools/edit.js +285 -0
  185. package/dist/core/tools/file-mutation-queue.d.ts +5 -0
  186. package/dist/core/tools/file-mutation-queue.js +51 -0
  187. package/dist/core/tools/find.d.ts +34 -0
  188. package/dist/core/tools/find.js +304 -0
  189. package/dist/core/tools/grep.d.ts +36 -0
  190. package/dist/core/tools/grep.js +303 -0
  191. package/dist/core/tools/index.d.ts +42 -0
  192. package/dist/core/tools/index.js +119 -0
  193. package/dist/core/tools/ls.d.ts +36 -0
  194. package/dist/core/tools/ls.js +166 -0
  195. package/dist/core/tools/output-accumulator.d.ts +51 -0
  196. package/dist/core/tools/output-accumulator.js +183 -0
  197. package/dist/core/tools/path-utils.d.ts +9 -0
  198. package/dist/core/tools/path-utils.js +98 -0
  199. package/dist/core/tools/powershell.d.ts +15 -0
  200. package/dist/core/tools/powershell.js +38 -0
  201. package/dist/core/tools/powershell.test.d.ts +1 -0
  202. package/dist/core/tools/powershell.test.js +20 -0
  203. package/dist/core/tools/read-vision.test.d.ts +1 -0
  204. package/dist/core/tools/read-vision.test.js +122 -0
  205. package/dist/core/tools/read.d.ts +46 -0
  206. package/dist/core/tools/read.js +327 -0
  207. package/dist/core/tools/render-utils.d.ts +23 -0
  208. package/dist/core/tools/render-utils.js +64 -0
  209. package/dist/core/tools/tool-definition-wrapper.d.ts +13 -0
  210. package/dist/core/tools/tool-definition-wrapper.js +35 -0
  211. package/dist/core/tools/truncate.d.ts +69 -0
  212. package/dist/core/tools/truncate.js +214 -0
  213. package/dist/core/tools/write.d.ts +25 -0
  214. package/dist/core/tools/write.js +198 -0
  215. package/dist/core/trust-manager.d.ts +35 -0
  216. package/dist/core/trust-manager.js +201 -0
  217. package/dist/core/usage-totals.d.ts +20 -0
  218. package/dist/core/usage-totals.js +61 -0
  219. package/dist/core/vision-caption.d.ts +30 -0
  220. package/dist/core/vision-caption.js +62 -0
  221. package/dist/defaults/models.json +335 -0
  222. package/dist/defaults/settings.json +61 -0
  223. package/dist/extensions/agent-browser.test.ts +371 -0
  224. package/dist/extensions/agent-browser.ts +160 -0
  225. package/dist/extensions/auto-session-name.test.ts +169 -0
  226. package/dist/extensions/auto-session-name.ts +100 -0
  227. package/dist/extensions/capability-gateway/catalog.ts +150 -0
  228. package/dist/extensions/capability-gateway/index.test.ts +128 -0
  229. package/dist/extensions/capability-gateway/index.ts +318 -0
  230. package/dist/extensions/capability-gateway/integration.test.ts +215 -0
  231. package/dist/extensions/capability-gateway/package.json +15 -0
  232. package/dist/extensions/context-compaction-reminder.test.ts +82 -0
  233. package/dist/extensions/context-compaction-reminder.ts +28 -0
  234. package/dist/extensions/copy-turn.test.ts +383 -0
  235. package/dist/extensions/copy-turn.ts +146 -0
  236. package/dist/extensions/cost-reconcile.test.ts +272 -0
  237. package/dist/extensions/cost-reconcile.ts +264 -0
  238. package/dist/extensions/grep-app/index.test.ts +406 -0
  239. package/dist/extensions/grep-app/index.ts +216 -0
  240. package/dist/extensions/handoff-new.test.ts +434 -0
  241. package/dist/extensions/handoff-new.ts +129 -0
  242. package/dist/extensions/herdr-agent-state.ts +310 -0
  243. package/dist/extensions/inline-skills.test.ts +204 -0
  244. package/dist/extensions/inline-skills.ts +102 -0
  245. package/dist/extensions/package.json +33 -0
  246. package/dist/extensions/pi-hermes-memory/CHANGELOG.md +371 -0
  247. package/dist/extensions/pi-hermes-memory/LICENSE +21 -0
  248. package/dist/extensions/pi-hermes-memory/README.md +643 -0
  249. package/dist/extensions/pi-hermes-memory/docs/0.1/TASKS.md +197 -0
  250. package/dist/extensions/pi-hermes-memory/docs/0.2/PLAN.md +290 -0
  251. package/dist/extensions/pi-hermes-memory/docs/0.2/TASKS.md +134 -0
  252. package/dist/extensions/pi-hermes-memory/docs/0.2/TEST-PLAN.md +216 -0
  253. package/dist/extensions/pi-hermes-memory/docs/0.3/PLAN.md +330 -0
  254. package/dist/extensions/pi-hermes-memory/docs/0.3/TASKS.md +125 -0
  255. package/dist/extensions/pi-hermes-memory/docs/0.4/PLAN.md +160 -0
  256. package/dist/extensions/pi-hermes-memory/docs/0.4/TASKS.md +113 -0
  257. package/dist/extensions/pi-hermes-memory/docs/0.6/CHANGELOG.md +57 -0
  258. package/dist/extensions/pi-hermes-memory/docs/0.6/PLAN.md +202 -0
  259. package/dist/extensions/pi-hermes-memory/docs/0.6/TASKS.md +144 -0
  260. package/dist/extensions/pi-hermes-memory/docs/0.7/PLAN.md +349 -0
  261. package/dist/extensions/pi-hermes-memory/docs/0.7/TASKS.md +110 -0
  262. package/dist/extensions/pi-hermes-memory/docs/PUBLISHING.md +149 -0
  263. package/dist/extensions/pi-hermes-memory/docs/ROADMAP.md +468 -0
  264. package/dist/extensions/pi-hermes-memory/docs/images/memory-architecture.svg +1 -0
  265. package/dist/extensions/pi-hermes-memory/docs/images/pi-logo.svg +22 -0
  266. package/dist/extensions/pi-hermes-memory/docs/images/pi_memory.png +0 -0
  267. package/dist/extensions/pi-hermes-memory/docs/images/pi_memory.svg +19 -0
  268. package/dist/extensions/pi-hermes-memory/docs/images/security-flow.svg +1 -0
  269. package/dist/extensions/pi-hermes-memory/docs/images/session-lifecycle.svg +1 -0
  270. package/dist/extensions/pi-hermes-memory/docs/images/source-architecture.svg +1 -0
  271. package/dist/extensions/pi-hermes-memory/docs/mermaid/memory-architecture.mmd +49 -0
  272. package/dist/extensions/pi-hermes-memory/docs/mermaid/security-flow.mmd +40 -0
  273. package/dist/extensions/pi-hermes-memory/docs/mermaid/session-lifecycle.mmd +56 -0
  274. package/dist/extensions/pi-hermes-memory/docs/mermaid/source-architecture.mmd +54 -0
  275. package/dist/extensions/pi-hermes-memory/package-lock.json +3799 -0
  276. package/dist/extensions/pi-hermes-memory/package.json +66 -0
  277. package/dist/extensions/pi-hermes-memory/scripts/check-min-sdk.mjs +99 -0
  278. package/dist/extensions/pi-hermes-memory/scripts/ensure-dev.mjs +57 -0
  279. package/dist/extensions/pi-hermes-memory/src/auto-consolidation-warning.ts +6 -0
  280. package/dist/extensions/pi-hermes-memory/src/config.ts +178 -0
  281. package/dist/extensions/pi-hermes-memory/src/constants.ts +424 -0
  282. package/dist/extensions/pi-hermes-memory/src/extension-root-migration.ts +639 -0
  283. package/dist/extensions/pi-hermes-memory/src/handlers/auto-consolidate.ts +401 -0
  284. package/dist/extensions/pi-hermes-memory/src/handlers/background-review.ts +297 -0
  285. package/dist/extensions/pi-hermes-memory/src/handlers/child-process-watchdog.mjs +90 -0
  286. package/dist/extensions/pi-hermes-memory/src/handlers/correction-detector.ts +300 -0
  287. package/dist/extensions/pi-hermes-memory/src/handlers/index-sessions.ts +86 -0
  288. package/dist/extensions/pi-hermes-memory/src/handlers/insights.ts +78 -0
  289. package/dist/extensions/pi-hermes-memory/src/handlers/interview.ts +37 -0
  290. package/dist/extensions/pi-hermes-memory/src/handlers/learn-memory.ts +186 -0
  291. package/dist/extensions/pi-hermes-memory/src/handlers/message-parts.ts +27 -0
  292. package/dist/extensions/pi-hermes-memory/src/handlers/pi-child-process.ts +485 -0
  293. package/dist/extensions/pi-hermes-memory/src/handlers/preview-context.ts +105 -0
  294. package/dist/extensions/pi-hermes-memory/src/handlers/review-memory-ops.ts +506 -0
  295. package/dist/extensions/pi-hermes-memory/src/handlers/session-backfill.ts +145 -0
  296. package/dist/extensions/pi-hermes-memory/src/handlers/session-flush.ts +151 -0
  297. package/dist/extensions/pi-hermes-memory/src/handlers/session-live-index.ts +94 -0
  298. package/dist/extensions/pi-hermes-memory/src/handlers/skills-command.ts +1334 -0
  299. package/dist/extensions/pi-hermes-memory/src/handlers/standing-pin.ts +111 -0
  300. package/dist/extensions/pi-hermes-memory/src/handlers/switch-project.ts +75 -0
  301. package/dist/extensions/pi-hermes-memory/src/handlers/sync-markdown-memories.ts +266 -0
  302. package/dist/extensions/pi-hermes-memory/src/index.ts +384 -0
  303. package/dist/extensions/pi-hermes-memory/src/lifecycle-timing.ts +54 -0
  304. package/dist/extensions/pi-hermes-memory/src/paths.ts +61 -0
  305. package/dist/extensions/pi-hermes-memory/src/project-context.ts +13 -0
  306. package/dist/extensions/pi-hermes-memory/src/project-memory-migration.ts +93 -0
  307. package/dist/extensions/pi-hermes-memory/src/project.ts +157 -0
  308. package/dist/extensions/pi-hermes-memory/src/prompt-context.ts +55 -0
  309. package/dist/extensions/pi-hermes-memory/src/store/atomic-lock-coordinator.ts +375 -0
  310. package/dist/extensions/pi-hermes-memory/src/store/canonical-storage-path.ts +54 -0
  311. package/dist/extensions/pi-hermes-memory/src/store/content-scanner.ts +101 -0
  312. package/dist/extensions/pi-hermes-memory/src/store/db.ts +1180 -0
  313. package/dist/extensions/pi-hermes-memory/src/store/fts-query.ts +101 -0
  314. package/dist/extensions/pi-hermes-memory/src/store/markdown-mutation-lock.ts +38 -0
  315. package/dist/extensions/pi-hermes-memory/src/store/memory-lookup.ts +24 -0
  316. package/dist/extensions/pi-hermes-memory/src/store/memory-store.ts +1191 -0
  317. package/dist/extensions/pi-hermes-memory/src/store/recovery-maintenance.ts +66 -0
  318. package/dist/extensions/pi-hermes-memory/src/store/schema.ts +118 -0
  319. package/dist/extensions/pi-hermes-memory/src/store/session-anchor-search.ts +472 -0
  320. package/dist/extensions/pi-hermes-memory/src/store/session-indexer.ts +511 -0
  321. package/dist/extensions/pi-hermes-memory/src/store/session-parser.ts +213 -0
  322. package/dist/extensions/pi-hermes-memory/src/store/session-search.ts +234 -0
  323. package/dist/extensions/pi-hermes-memory/src/store/skill-store.ts +950 -0
  324. package/dist/extensions/pi-hermes-memory/src/store/skill-utils.ts +133 -0
  325. package/dist/extensions/pi-hermes-memory/src/store/sqlite-memory-store.ts +1002 -0
  326. package/dist/extensions/pi-hermes-memory/src/store/sqlite-native.ts +241 -0
  327. package/dist/extensions/pi-hermes-memory/src/store/standing-instructions.ts +247 -0
  328. package/dist/extensions/pi-hermes-memory/src/tools/memory-search-tool.ts +95 -0
  329. package/dist/extensions/pi-hermes-memory/src/tools/memory-tool.ts +469 -0
  330. package/dist/extensions/pi-hermes-memory/src/tools/session-search-tool.ts +246 -0
  331. package/dist/extensions/pi-hermes-memory/src/tools/shared-output-view.ts +170 -0
  332. package/dist/extensions/pi-hermes-memory/src/tools/skill-tool.ts +333 -0
  333. package/dist/extensions/pi-hermes-memory/src/tools/tool-result-views.ts +105 -0
  334. package/dist/extensions/pi-hermes-memory/src/types.ts +214 -0
  335. package/dist/extensions/pi-hermes-memory/tests/config.test.ts +434 -0
  336. package/dist/extensions/pi-hermes-memory/tests/extension-root-migration.test.ts +368 -0
  337. package/dist/extensions/pi-hermes-memory/tests/handlers/auto-consolidate.test.ts +984 -0
  338. package/dist/extensions/pi-hermes-memory/tests/handlers/background-review.test.ts +950 -0
  339. package/dist/extensions/pi-hermes-memory/tests/handlers/correction-detector.test.ts +671 -0
  340. package/dist/extensions/pi-hermes-memory/tests/handlers/insights.test.ts +157 -0
  341. package/dist/extensions/pi-hermes-memory/tests/handlers/interview.test.ts +127 -0
  342. package/dist/extensions/pi-hermes-memory/tests/handlers/pi-child-process.test.ts +905 -0
  343. package/dist/extensions/pi-hermes-memory/tests/handlers/preview-context.test.ts +152 -0
  344. package/dist/extensions/pi-hermes-memory/tests/handlers/prompt-context.test.ts +166 -0
  345. package/dist/extensions/pi-hermes-memory/tests/handlers/resources-discover.test.ts +71 -0
  346. package/dist/extensions/pi-hermes-memory/tests/handlers/review-memory-ops.test.ts +614 -0
  347. package/dist/extensions/pi-hermes-memory/tests/handlers/session-backfill.test.ts +192 -0
  348. package/dist/extensions/pi-hermes-memory/tests/handlers/session-flush.test.ts +677 -0
  349. package/dist/extensions/pi-hermes-memory/tests/handlers/session-live-index.test.ts +225 -0
  350. package/dist/extensions/pi-hermes-memory/tests/handlers/skills-command.test.ts +827 -0
  351. package/dist/extensions/pi-hermes-memory/tests/handlers/standing-pin.test.ts +134 -0
  352. package/dist/extensions/pi-hermes-memory/tests/handlers/sync-markdown-memories.test.ts +491 -0
  353. package/dist/extensions/pi-hermes-memory/tests/handlers/system-prompt.test.ts +199 -0
  354. package/dist/extensions/pi-hermes-memory/tests/handlers/thinking-max.test.ts +64 -0
  355. package/dist/extensions/pi-hermes-memory/tests/index.test.ts +30 -0
  356. package/dist/extensions/pi-hermes-memory/tests/integration/flow.test.ts +126 -0
  357. package/dist/extensions/pi-hermes-memory/tests/lifecycle-timing.test.ts +76 -0
  358. package/dist/extensions/pi-hermes-memory/tests/paths.test.ts +23 -0
  359. package/dist/extensions/pi-hermes-memory/tests/project-memory-migration.test.ts +80 -0
  360. package/dist/extensions/pi-hermes-memory/tests/project-rebinding.test.ts +115 -0
  361. package/dist/extensions/pi-hermes-memory/tests/project.test.ts +120 -0
  362. package/dist/extensions/pi-hermes-memory/tests/run-all-timeout.test.ts +107 -0
  363. package/dist/extensions/pi-hermes-memory/tests/run-all.sh +45 -0
  364. package/dist/extensions/pi-hermes-memory/tests/store/atomic-lock-coordinator.test.ts +381 -0
  365. package/dist/extensions/pi-hermes-memory/tests/store/content-scanner.test.ts +388 -0
  366. package/dist/extensions/pi-hermes-memory/tests/store/db.test.ts +1046 -0
  367. package/dist/extensions/pi-hermes-memory/tests/store/markdown-mutation-lock.test.ts +34 -0
  368. package/dist/extensions/pi-hermes-memory/tests/store/memory-store.test.ts +2150 -0
  369. package/dist/extensions/pi-hermes-memory/tests/store/recovery-maintenance.test.ts +170 -0
  370. package/dist/extensions/pi-hermes-memory/tests/store/session-anchor-search.test.ts +210 -0
  371. package/dist/extensions/pi-hermes-memory/tests/store/session-indexer.test.ts +643 -0
  372. package/dist/extensions/pi-hermes-memory/tests/store/session-parser.test.ts +282 -0
  373. package/dist/extensions/pi-hermes-memory/tests/store/session-search.test.ts +287 -0
  374. package/dist/extensions/pi-hermes-memory/tests/store/skill-store.test.ts +678 -0
  375. package/dist/extensions/pi-hermes-memory/tests/store/skill-utils.test.ts +21 -0
  376. package/dist/extensions/pi-hermes-memory/tests/store/sqlite-lazy-load.test.ts +78 -0
  377. package/dist/extensions/pi-hermes-memory/tests/store/sqlite-memory-store.test.ts +543 -0
  378. package/dist/extensions/pi-hermes-memory/tests/store/sqlite-native.test.ts +164 -0
  379. package/dist/extensions/pi-hermes-memory/tests/store/standing-instructions.test.ts +171 -0
  380. package/dist/extensions/pi-hermes-memory/tests/tools/memory-search-tool.test.ts +84 -0
  381. package/dist/extensions/pi-hermes-memory/tests/tools/memory-tool.test.ts +709 -0
  382. package/dist/extensions/pi-hermes-memory/tests/tools/session-search-tool.test.ts +345 -0
  383. package/dist/extensions/pi-hermes-memory/tests/tools/shared-output-view.test.ts +362 -0
  384. package/dist/extensions/pi-hermes-memory/tests/tools/skill-tool.test.ts +478 -0
  385. package/dist/extensions/pi-hermes-memory/tests/tools/tool-result-renderer-wiring.test.ts +40 -0
  386. package/dist/extensions/pi-hermes-memory/tsconfig.json +19 -0
  387. package/dist/extensions/pi-intercom/CHANGELOG.md +321 -0
  388. package/dist/extensions/pi-intercom/LICENSE +21 -0
  389. package/dist/extensions/pi-intercom/README.md +598 -0
  390. package/dist/extensions/pi-intercom/banner.png +0 -0
  391. package/dist/extensions/pi-intercom/broker/broker.ts +1721 -0
  392. package/dist/extensions/pi-intercom/broker/client-liveness.test.ts +173 -0
  393. package/dist/extensions/pi-intercom/broker/client.test.ts +83 -0
  394. package/dist/extensions/pi-intercom/broker/client.ts +793 -0
  395. package/dist/extensions/pi-intercom/broker/extension-state.ts +197 -0
  396. package/dist/extensions/pi-intercom/broker/extension.test.ts +486 -0
  397. package/dist/extensions/pi-intercom/broker/framing.test.ts +114 -0
  398. package/dist/extensions/pi-intercom/broker/framing.ts +115 -0
  399. package/dist/extensions/pi-intercom/broker/paths.test.ts +153 -0
  400. package/dist/extensions/pi-intercom/broker/paths.ts +134 -0
  401. package/dist/extensions/pi-intercom/broker/protocol.ts +208 -0
  402. package/dist/extensions/pi-intercom/broker/runtime-claim.test.ts +34 -0
  403. package/dist/extensions/pi-intercom/broker/runtime-claim.ts +21 -0
  404. package/dist/extensions/pi-intercom/broker/spawn.test.ts +252 -0
  405. package/dist/extensions/pi-intercom/broker/spawn.ts +420 -0
  406. package/dist/extensions/pi-intercom/config.test.ts +104 -0
  407. package/dist/extensions/pi-intercom/config.ts +163 -0
  408. package/dist/extensions/pi-intercom/cwd.test.ts +40 -0
  409. package/dist/extensions/pi-intercom/cwd.ts +31 -0
  410. package/dist/extensions/pi-intercom/extension-api.ts +84 -0
  411. package/dist/extensions/pi-intercom/format-context.test.ts +31 -0
  412. package/dist/extensions/pi-intercom/format-context.ts +32 -0
  413. package/dist/extensions/pi-intercom/index.ts +2821 -0
  414. package/dist/extensions/pi-intercom/intercom.integration.test.ts +4232 -0
  415. package/dist/extensions/pi-intercom/package.json +49 -0
  416. package/dist/extensions/pi-intercom/project-agent.test.ts +145 -0
  417. package/dist/extensions/pi-intercom/project-agent.ts +324 -0
  418. package/dist/extensions/pi-intercom/reply-tracker.test.ts +239 -0
  419. package/dist/extensions/pi-intercom/reply-tracker.ts +160 -0
  420. package/dist/extensions/pi-intercom/skills/pi-intercom/SKILL.md +452 -0
  421. package/dist/extensions/pi-intercom/test/inline-message.test.ts +184 -0
  422. package/dist/extensions/pi-intercom/test/overlay-width.test.ts +66 -0
  423. package/dist/extensions/pi-intercom/types.ts +165 -0
  424. package/dist/extensions/pi-intercom/ui/compose.ts +143 -0
  425. package/dist/extensions/pi-intercom/ui/inline-message.ts +118 -0
  426. package/dist/extensions/pi-intercom/ui/session-list.ts +166 -0
  427. package/dist/extensions/pi-rewind-hook/README.md +248 -0
  428. package/dist/extensions/pi-rewind-hook/index.ts +1575 -0
  429. package/dist/extensions/pi-rewind-hook/package.json +31 -0
  430. package/dist/extensions/pi-subagents/.github/assets/subagent-fleet-inspector.png +0 -0
  431. package/dist/extensions/pi-subagents/.github/workflows/release.yml +28 -0
  432. package/dist/extensions/pi-subagents/.github/workflows/test.yml +51 -0
  433. package/dist/extensions/pi-subagents/.greptile/config.json +33 -0
  434. package/dist/extensions/pi-subagents/.greptile/files.json +8 -0
  435. package/dist/extensions/pi-subagents/.greptile/rules.md +16 -0
  436. package/dist/extensions/pi-subagents/.oxlintrc.json +43 -0
  437. package/dist/extensions/pi-subagents/AGENTS.md +5 -0
  438. package/dist/extensions/pi-subagents/CHANGELOG.md +2325 -0
  439. package/dist/extensions/pi-subagents/LICENSE +21 -0
  440. package/dist/extensions/pi-subagents/README.md +126 -0
  441. package/dist/extensions/pi-subagents/VISION.md +92 -0
  442. package/dist/extensions/pi-subagents/agents/delegate.md +14 -0
  443. package/dist/extensions/pi-subagents/agents/oracle.md +78 -0
  444. package/dist/extensions/pi-subagents/agents/researcher.md +52 -0
  445. package/dist/extensions/pi-subagents/agents/reviewer.md +89 -0
  446. package/dist/extensions/pi-subagents/agents/scout.md +50 -0
  447. package/dist/extensions/pi-subagents/agents/worker.md +60 -0
  448. package/dist/extensions/pi-subagents/async-retention-discovery-worker.mjs +180 -0
  449. package/dist/extensions/pi-subagents/docs/agents.md +382 -0
  450. package/dist/extensions/pi-subagents/docs/configuration.md +534 -0
  451. package/dist/extensions/pi-subagents/docs/extension-api.md +443 -0
  452. package/dist/extensions/pi-subagents/docs/missions.md +121 -0
  453. package/dist/extensions/pi-subagents/docs/models.md +258 -0
  454. package/dist/extensions/pi-subagents/docs/observability.md +265 -0
  455. package/dist/extensions/pi-subagents/docs/tool-reference.md +482 -0
  456. package/dist/extensions/pi-subagents/docs/watchdog.md +154 -0
  457. package/dist/extensions/pi-subagents/docs/workflows.md +475 -0
  458. package/dist/extensions/pi-subagents/index.ts +10 -0
  459. package/dist/extensions/pi-subagents/inspector-runner.mjs +11 -0
  460. package/dist/extensions/pi-subagents/install.mjs +93 -0
  461. package/dist/extensions/pi-subagents/package-lock.json +1872 -0
  462. package/dist/extensions/pi-subagents/package.json +109 -0
  463. package/dist/extensions/pi-subagents/prompts/council.md +60 -0
  464. package/dist/extensions/pi-subagents/prompts/gather-context-and-clarify.md +13 -0
  465. package/dist/extensions/pi-subagents/prompts/parallel-cleanup.md +59 -0
  466. package/dist/extensions/pi-subagents/prompts/parallel-research.md +50 -0
  467. package/dist/extensions/pi-subagents/prompts/parallel-review.md +58 -0
  468. package/dist/extensions/pi-subagents/prompts/review-loop.md +47 -0
  469. package/dist/extensions/pi-subagents/skills/council-mode/SKILL.md +59 -0
  470. package/dist/extensions/pi-subagents/skills/council-mode/references/pass-contracts.md +150 -0
  471. package/dist/extensions/pi-subagents/skills/pi-subagents/SKILL.md +103 -0
  472. package/dist/extensions/pi-subagents/skills/pi-subagents/references/constraints-and-recipes.md +70 -0
  473. package/dist/extensions/pi-subagents/skills/pi-subagents/references/execution-controls.md +539 -0
  474. package/dist/extensions/pi-subagents/skills/pi-subagents/references/management-authoring-rpc.md +161 -0
  475. package/dist/extensions/pi-subagents/skills/pi-subagents/references/multi-lane-orchestration.md +51 -0
  476. package/dist/extensions/pi-subagents/skills/pi-subagents/references/prompting-and-roles.md +295 -0
  477. package/dist/extensions/pi-subagents/skills/pi-subagents/references/review-and-validation.md +73 -0
  478. package/dist/extensions/pi-subagents/src/agents/agent-management.ts +1373 -0
  479. package/dist/extensions/pi-subagents/src/agents/agent-memory.ts +254 -0
  480. package/dist/extensions/pi-subagents/src/agents/agent-refinements.ts +624 -0
  481. package/dist/extensions/pi-subagents/src/agents/agent-scope.ts +6 -0
  482. package/dist/extensions/pi-subagents/src/agents/agent-selection.ts +25 -0
  483. package/dist/extensions/pi-subagents/src/agents/agent-serializer.ts +179 -0
  484. package/dist/extensions/pi-subagents/src/agents/agents.ts +2790 -0
  485. package/dist/extensions/pi-subagents/src/agents/builtin-names.ts +9 -0
  486. package/dist/extensions/pi-subagents/src/agents/chain-serializer.ts +280 -0
  487. package/dist/extensions/pi-subagents/src/agents/frontmatter.ts +153 -0
  488. package/dist/extensions/pi-subagents/src/agents/identity.ts +30 -0
  489. package/dist/extensions/pi-subagents/src/agents/proactive-skills.ts +194 -0
  490. package/dist/extensions/pi-subagents/src/agents/runtime-agent-events.ts +70 -0
  491. package/dist/extensions/pi-subagents/src/agents/runtime-agent-registry.ts +429 -0
  492. package/dist/extensions/pi-subagents/src/agents/skills.ts +754 -0
  493. package/dist/extensions/pi-subagents/src/api/agents.ts +12 -0
  494. package/dist/extensions/pi-subagents/src/api/background-work.ts +206 -0
  495. package/dist/extensions/pi-subagents/src/api/capability-ceiling.ts +17 -0
  496. package/dist/extensions/pi-subagents/src/api/control-channel.ts +4 -0
  497. package/dist/extensions/pi-subagents/src/api/delegation.ts +112 -0
  498. package/dist/extensions/pi-subagents/src/api/external-job-provider.ts +195 -0
  499. package/dist/extensions/pi-subagents/src/api/external-runs.ts +282 -0
  500. package/dist/extensions/pi-subagents/src/api/intercom-bridge.ts +3 -0
  501. package/dist/extensions/pi-subagents/src/api/pi-args.ts +5 -0
  502. package/dist/extensions/pi-subagents/src/api/preflight.ts +501 -0
  503. package/dist/extensions/pi-subagents/src/api/project-panes.ts +32 -0
  504. package/dist/extensions/pi-subagents/src/api/shared-types.ts +27 -0
  505. package/dist/extensions/pi-subagents/src/extension/config.ts +255 -0
  506. package/dist/extensions/pi-subagents/src/extension/control-notices.ts +58 -0
  507. package/dist/extensions/pi-subagents/src/extension/doctor.ts +278 -0
  508. package/dist/extensions/pi-subagents/src/extension/fanout-child.ts +205 -0
  509. package/dist/extensions/pi-subagents/src/extension/index.ts +1093 -0
  510. package/dist/extensions/pi-subagents/src/extension/public-execution.ts +210 -0
  511. package/dist/extensions/pi-subagents/src/extension/rpc.ts +860 -0
  512. package/dist/extensions/pi-subagents/src/extension/schemas.ts +419 -0
  513. package/dist/extensions/pi-subagents/src/extension/steering-notices.ts +35 -0
  514. package/dist/extensions/pi-subagents/src/extension/subagent-guide.ts +39 -0
  515. package/dist/extensions/pi-subagents/src/extension/tool-description.ts +204 -0
  516. package/dist/extensions/pi-subagents/src/extension/tool-result.ts +19 -0
  517. package/dist/extensions/pi-subagents/src/inspectors/herdr/actions.ts +235 -0
  518. package/dist/extensions/pi-subagents/src/inspectors/herdr/client.ts +130 -0
  519. package/dist/extensions/pi-subagents/src/inspectors/herdr/focus.ts +55 -0
  520. package/dist/extensions/pi-subagents/src/inspectors/herdr/inspector-runner.ts +153 -0
  521. package/dist/extensions/pi-subagents/src/inspectors/herdr/project-panes.ts +730 -0
  522. package/dist/extensions/pi-subagents/src/inspectors/herdr/session-roots-codec.ts +42 -0
  523. package/dist/extensions/pi-subagents/src/inspectors/herdr/shell-command.ts +16 -0
  524. package/dist/extensions/pi-subagents/src/integrations/herdr-status.ts +396 -0
  525. package/dist/extensions/pi-subagents/src/intercom/intercom-bridge.ts +191 -0
  526. package/dist/extensions/pi-subagents/src/intercom/native-supervisor-channel.ts +812 -0
  527. package/dist/extensions/pi-subagents/src/intercom/result-intercom.ts +423 -0
  528. package/dist/extensions/pi-subagents/src/missions/actions.ts +433 -0
  529. package/dist/extensions/pi-subagents/src/missions/goal-driver.ts +164 -0
  530. package/dist/extensions/pi-subagents/src/missions/lifecycle.ts +367 -0
  531. package/dist/extensions/pi-subagents/src/missions/store.ts +584 -0
  532. package/dist/extensions/pi-subagents/src/missions/types.ts +190 -0
  533. package/dist/extensions/pi-subagents/src/missions/workflow-state.ts +260 -0
  534. package/dist/extensions/pi-subagents/src/policy/authority.ts +46 -0
  535. package/dist/extensions/pi-subagents/src/profiles/profiles.ts +662 -0
  536. package/dist/extensions/pi-subagents/src/runs/background/active-async-capacity.ts +516 -0
  537. package/dist/extensions/pi-subagents/src/runs/background/active-run-index.ts +139 -0
  538. package/dist/extensions/pi-subagents/src/runs/background/async-execution.ts +2080 -0
  539. package/dist/extensions/pi-subagents/src/runs/background/async-job-tracker.ts +781 -0
  540. package/dist/extensions/pi-subagents/src/runs/background/async-resume.ts +631 -0
  541. package/dist/extensions/pi-subagents/src/runs/background/async-retention.ts +903 -0
  542. package/dist/extensions/pi-subagents/src/runs/background/async-status-snapshot.ts +48 -0
  543. package/dist/extensions/pi-subagents/src/runs/background/async-status.ts +761 -0
  544. package/dist/extensions/pi-subagents/src/runs/background/auto-drain.ts +68 -0
  545. package/dist/extensions/pi-subagents/src/runs/background/chain-append.ts +321 -0
  546. package/dist/extensions/pi-subagents/src/runs/background/chain-root-attachment.ts +270 -0
  547. package/dist/extensions/pi-subagents/src/runs/background/completion-batcher.ts +168 -0
  548. package/dist/extensions/pi-subagents/src/runs/background/completion-dedupe.ts +58 -0
  549. package/dist/extensions/pi-subagents/src/runs/background/completion-replay.ts +287 -0
  550. package/dist/extensions/pi-subagents/src/runs/background/control-channel.ts +768 -0
  551. package/dist/extensions/pi-subagents/src/runs/background/fleet-view.ts +620 -0
  552. package/dist/extensions/pi-subagents/src/runs/background/index-segment.ts +59 -0
  553. package/dist/extensions/pi-subagents/src/runs/background/inspect-rpc.ts +443 -0
  554. package/dist/extensions/pi-subagents/src/runs/background/notify.ts +645 -0
  555. package/dist/extensions/pi-subagents/src/runs/background/owned-process-tree.ts +104 -0
  556. package/dist/extensions/pi-subagents/src/runs/background/parallel-groups.ts +45 -0
  557. package/dist/extensions/pi-subagents/src/runs/background/process-terminal.ts +310 -0
  558. package/dist/extensions/pi-subagents/src/runs/background/result-delivery-ownership.ts +45 -0
  559. package/dist/extensions/pi-subagents/src/runs/background/result-files.ts +519 -0
  560. package/dist/extensions/pi-subagents/src/runs/background/result-watcher.ts +792 -0
  561. package/dist/extensions/pi-subagents/src/runs/background/resume-guidance.ts +56 -0
  562. package/dist/extensions/pi-subagents/src/runs/background/retained-children.ts +135 -0
  563. package/dist/extensions/pi-subagents/src/runs/background/run-id-query.ts +7 -0
  564. package/dist/extensions/pi-subagents/src/runs/background/run-id-resolver.ts +175 -0
  565. package/dist/extensions/pi-subagents/src/runs/background/run-status.ts +714 -0
  566. package/dist/extensions/pi-subagents/src/runs/background/scheduled-runs.ts +965 -0
  567. package/dist/extensions/pi-subagents/src/runs/background/stale-run-reconciler.ts +410 -0
  568. package/dist/extensions/pi-subagents/src/runs/background/steering.ts +242 -0
  569. package/dist/extensions/pi-subagents/src/runs/background/subagent-runner.ts +5683 -0
  570. package/dist/extensions/pi-subagents/src/runs/background/subagent-wait.ts +725 -0
  571. package/dist/extensions/pi-subagents/src/runs/background/terminal-run-index.ts +138 -0
  572. package/dist/extensions/pi-subagents/src/runs/background/top-level-async.ts +14 -0
  573. package/dist/extensions/pi-subagents/src/runs/background/wait-completions.ts +209 -0
  574. package/dist/extensions/pi-subagents/src/runs/background/wait-config.ts +50 -0
  575. package/dist/extensions/pi-subagents/src/runs/background/wait-subscriptions.ts +348 -0
  576. package/dist/extensions/pi-subagents/src/runs/background/wait-tool.ts +51 -0
  577. package/dist/extensions/pi-subagents/src/runs/foreground/async-dismiss-action.ts +86 -0
  578. package/dist/extensions/pi-subagents/src/runs/foreground/async-steering-action.ts +262 -0
  579. package/dist/extensions/pi-subagents/src/runs/foreground/async-stop-action.ts +86 -0
  580. package/dist/extensions/pi-subagents/src/runs/foreground/execution.ts +2443 -0
  581. package/dist/extensions/pi-subagents/src/runs/foreground/foreground-control.ts +153 -0
  582. package/dist/extensions/pi-subagents/src/runs/foreground/foreground-history.ts +160 -0
  583. package/dist/extensions/pi-subagents/src/runs/foreground/prompt-audit.ts +172 -0
  584. package/dist/extensions/pi-subagents/src/runs/foreground/subagent-executor.ts +6971 -0
  585. package/dist/extensions/pi-subagents/src/runs/foreground/workflow-detach-reconcile.ts +299 -0
  586. package/dist/extensions/pi-subagents/src/runs/foreground/workflow-foreground-steering.ts +188 -0
  587. package/dist/extensions/pi-subagents/src/runs/shared/abort-recovery.ts +119 -0
  588. package/dist/extensions/pi-subagents/src/runs/shared/acceptance.ts +1525 -0
  589. package/dist/extensions/pi-subagents/src/runs/shared/agent-contract.ts +38 -0
  590. package/dist/extensions/pi-subagents/src/runs/shared/async-status-projection.ts +565 -0
  591. package/dist/extensions/pi-subagents/src/runs/shared/background-process-options.ts +9 -0
  592. package/dist/extensions/pi-subagents/src/runs/shared/capability-ceiling.ts +210 -0
  593. package/dist/extensions/pi-subagents/src/runs/shared/chain-outputs.ts +116 -0
  594. package/dist/extensions/pi-subagents/src/runs/shared/child-identity.ts +51 -0
  595. package/dist/extensions/pi-subagents/src/runs/shared/child-launch-plan.ts +151 -0
  596. package/dist/extensions/pi-subagents/src/runs/shared/child-protocol.ts +415 -0
  597. package/dist/extensions/pi-subagents/src/runs/shared/completion-evidence.ts +89 -0
  598. package/dist/extensions/pi-subagents/src/runs/shared/completion-guard.ts +252 -0
  599. package/dist/extensions/pi-subagents/src/runs/shared/context-mode.ts +44 -0
  600. package/dist/extensions/pi-subagents/src/runs/shared/dynamic-fanout.ts +297 -0
  601. package/dist/extensions/pi-subagents/src/runs/shared/extension-bindings.ts +78 -0
  602. package/dist/extensions/pi-subagents/src/runs/shared/external-cli-contract.ts +138 -0
  603. package/dist/extensions/pi-subagents/src/runs/shared/external-cli-preflight.ts +122 -0
  604. package/dist/extensions/pi-subagents/src/runs/shared/external-cli-runner.ts +429 -0
  605. package/dist/extensions/pi-subagents/src/runs/shared/external-job-bridge.ts +460 -0
  606. package/dist/extensions/pi-subagents/src/runs/shared/external-job-runner.ts +389 -0
  607. package/dist/extensions/pi-subagents/src/runs/shared/fast-mode-extension.ts +10 -0
  608. package/dist/extensions/pi-subagents/src/runs/shared/host-step-status.ts +231 -0
  609. package/dist/extensions/pi-subagents/src/runs/shared/lane-metadata.ts +126 -0
  610. package/dist/extensions/pi-subagents/src/runs/shared/launch-cwd.ts +16 -0
  611. package/dist/extensions/pi-subagents/src/runs/shared/llm-intent-arbiter.ts +302 -0
  612. package/dist/extensions/pi-subagents/src/runs/shared/long-running-guard.ts +221 -0
  613. package/dist/extensions/pi-subagents/src/runs/shared/mcp-config-sources.ts +422 -0
  614. package/dist/extensions/pi-subagents/src/runs/shared/mcp-direct-tool-allowlist.ts +483 -0
  615. package/dist/extensions/pi-subagents/src/runs/shared/mcp-direct-tool-grant.ts +194 -0
  616. package/dist/extensions/pi-subagents/src/runs/shared/model-exclusions.ts +305 -0
  617. package/dist/extensions/pi-subagents/src/runs/shared/model-fallback.ts +578 -0
  618. package/dist/extensions/pi-subagents/src/runs/shared/model-scope.ts +205 -0
  619. package/dist/extensions/pi-subagents/src/runs/shared/mutation-evidence.ts +199 -0
  620. package/dist/extensions/pi-subagents/src/runs/shared/nested-events.ts +1086 -0
  621. package/dist/extensions/pi-subagents/src/runs/shared/nested-path.ts +52 -0
  622. package/dist/extensions/pi-subagents/src/runs/shared/nested-render.ts +127 -0
  623. package/dist/extensions/pi-subagents/src/runs/shared/orca-progress-tabs.ts +499 -0
  624. package/dist/extensions/pi-subagents/src/runs/shared/parallel-handoff.ts +696 -0
  625. package/dist/extensions/pi-subagents/src/runs/shared/parallel-utils.ts +275 -0
  626. package/dist/extensions/pi-subagents/src/runs/shared/permissions.ts +100 -0
  627. package/dist/extensions/pi-subagents/src/runs/shared/pi-args.ts +1059 -0
  628. package/dist/extensions/pi-subagents/src/runs/shared/pi-spawn.ts +199 -0
  629. package/dist/extensions/pi-subagents/src/runs/shared/process-signal.ts +32 -0
  630. package/dist/extensions/pi-subagents/src/runs/shared/run-fanout-budget.ts +280 -0
  631. package/dist/extensions/pi-subagents/src/runs/shared/run-history.ts +201 -0
  632. package/dist/extensions/pi-subagents/src/runs/shared/runtime-acknowledged-extensions.ts +71 -0
  633. package/dist/extensions/pi-subagents/src/runs/shared/session-lease.ts +293 -0
  634. package/dist/extensions/pi-subagents/src/runs/shared/single-output.ts +304 -0
  635. package/dist/extensions/pi-subagents/src/runs/shared/spawn-budget.ts +128 -0
  636. package/dist/extensions/pi-subagents/src/runs/shared/structured-output.ts +223 -0
  637. package/dist/extensions/pi-subagents/src/runs/shared/subagent-control.ts +292 -0
  638. package/dist/extensions/pi-subagents/src/runs/shared/subagent-prompt-runtime.ts +825 -0
  639. package/dist/extensions/pi-subagents/src/runs/shared/subagent-startup-retry.ts +116 -0
  640. package/dist/extensions/pi-subagents/src/runs/shared/task-intent.ts +211 -0
  641. package/dist/extensions/pi-subagents/src/runs/shared/tool-availability.ts +81 -0
  642. package/dist/extensions/pi-subagents/src/runs/shared/tool-budget.ts +80 -0
  643. package/dist/extensions/pi-subagents/src/runs/shared/tool-timeout.ts +93 -0
  644. package/dist/extensions/pi-subagents/src/runs/shared/usage-budget.ts +65 -0
  645. package/dist/extensions/pi-subagents/src/runs/shared/workflow-graph.ts +225 -0
  646. package/dist/extensions/pi-subagents/src/runs/shared/worktree-cleanup-plan.ts +847 -0
  647. package/dist/extensions/pi-subagents/src/runs/shared/worktree.ts +1206 -0
  648. package/dist/extensions/pi-subagents/src/shared/accessible-dir.ts +47 -0
  649. package/dist/extensions/pi-subagents/src/shared/agent-stream-options.ts +5 -0
  650. package/dist/extensions/pi-subagents/src/shared/artifacts.ts +281 -0
  651. package/dist/extensions/pi-subagents/src/shared/atomic-json.ts +83 -0
  652. package/dist/extensions/pi-subagents/src/shared/capacity-resilient-json.ts +102 -0
  653. package/dist/extensions/pi-subagents/src/shared/child-session-name.ts +46 -0
  654. package/dist/extensions/pi-subagents/src/shared/child-transcript.ts +264 -0
  655. package/dist/extensions/pi-subagents/src/shared/completion-owner.ts +14 -0
  656. package/dist/extensions/pi-subagents/src/shared/display-text.ts +150 -0
  657. package/dist/extensions/pi-subagents/src/shared/extension-context.ts +24 -0
  658. package/dist/extensions/pi-subagents/src/shared/file-coalescer.ts +49 -0
  659. package/dist/extensions/pi-subagents/src/shared/file-system-retry.ts +95 -0
  660. package/dist/extensions/pi-subagents/src/shared/fork-context.ts +293 -0
  661. package/dist/extensions/pi-subagents/src/shared/fork-session-cwd.ts +27 -0
  662. package/dist/extensions/pi-subagents/src/shared/formatters.ts +146 -0
  663. package/dist/extensions/pi-subagents/src/shared/jsonl-writer.ts +81 -0
  664. package/dist/extensions/pi-subagents/src/shared/launch-contract.ts +138 -0
  665. package/dist/extensions/pi-subagents/src/shared/model-info.ts +101 -0
  666. package/dist/extensions/pi-subagents/src/shared/node-executable.ts +21 -0
  667. package/dist/extensions/pi-subagents/src/shared/post-exit-stdio-guard.ts +85 -0
  668. package/dist/extensions/pi-subagents/src/shared/prompt-resources.ts +11 -0
  669. package/dist/extensions/pi-subagents/src/shared/pruned-fork.ts +450 -0
  670. package/dist/extensions/pi-subagents/src/shared/session-file-trust.ts +19 -0
  671. package/dist/extensions/pi-subagents/src/shared/session-identity.ts +10 -0
  672. package/dist/extensions/pi-subagents/src/shared/session-tokens.ts +55 -0
  673. package/dist/extensions/pi-subagents/src/shared/settings.ts +409 -0
  674. package/dist/extensions/pi-subagents/src/shared/shortcuts.ts +17 -0
  675. package/dist/extensions/pi-subagents/src/shared/status-format.ts +55 -0
  676. package/dist/extensions/pi-subagents/src/shared/thinking-ceiling.ts +52 -0
  677. package/dist/extensions/pi-subagents/src/shared/types.ts +2872 -0
  678. package/dist/extensions/pi-subagents/src/shared/utf8.ts +11 -0
  679. package/dist/extensions/pi-subagents/src/shared/utils.ts +601 -0
  680. package/dist/extensions/pi-subagents/src/shared/watch-strategy.ts +10 -0
  681. package/dist/extensions/pi-subagents/src/shared/workflow-child-permit.ts +207 -0
  682. package/dist/extensions/pi-subagents/src/slash/delegation-adapters.ts +426 -0
  683. package/dist/extensions/pi-subagents/src/slash/delegation-json.ts +108 -0
  684. package/dist/extensions/pi-subagents/src/slash/delegation-request.ts +162 -0
  685. package/dist/extensions/pi-subagents/src/slash/prompt-template-bridge.ts +419 -0
  686. package/dist/extensions/pi-subagents/src/slash/prompt-workflows.ts +287 -0
  687. package/dist/extensions/pi-subagents/src/slash/selector.ts +147 -0
  688. package/dist/extensions/pi-subagents/src/slash/slash-bridge.ts +192 -0
  689. package/dist/extensions/pi-subagents/src/slash/slash-commands.ts +1345 -0
  690. package/dist/extensions/pi-subagents/src/slash/slash-live-state.ts +310 -0
  691. package/dist/extensions/pi-subagents/src/slash/subagents-admin.ts +449 -0
  692. package/dist/extensions/pi-subagents/src/tui/fleet-status.ts +964 -0
  693. package/dist/extensions/pi-subagents/src/tui/fleet-transcript.ts +536 -0
  694. package/dist/extensions/pi-subagents/src/tui/fleet.ts +1441 -0
  695. package/dist/extensions/pi-subagents/src/tui/render-helpers.ts +111 -0
  696. package/dist/extensions/pi-subagents/src/tui/render.ts +3359 -0
  697. package/dist/extensions/pi-subagents/src/types/pi-runtime-compat.d.ts +8 -0
  698. package/dist/extensions/pi-subagents/src/watchdog/change-signature.ts +260 -0
  699. package/dist/extensions/pi-subagents/src/watchdog/child-status.ts +227 -0
  700. package/dist/extensions/pi-subagents/src/watchdog/diff-tool.ts +77 -0
  701. package/dist/extensions/pi-subagents/src/watchdog/emission-guard.ts +125 -0
  702. package/dist/extensions/pi-subagents/src/watchdog/guidance.ts +20 -0
  703. package/dist/extensions/pi-subagents/src/watchdog/lsp-diagnostics.ts +538 -0
  704. package/dist/extensions/pi-subagents/src/watchdog/model-selection.ts +167 -0
  705. package/dist/extensions/pi-subagents/src/watchdog/permission-arbiter.ts +154 -0
  706. package/dist/extensions/pi-subagents/src/watchdog/register-child.ts +120 -0
  707. package/dist/extensions/pi-subagents/src/watchdog/register-main.ts +441 -0
  708. package/dist/extensions/pi-subagents/src/watchdog/render.ts +53 -0
  709. package/dist/extensions/pi-subagents/src/watchdog/review.ts +314 -0
  710. package/dist/extensions/pi-subagents/src/watchdog/rules.ts +70 -0
  711. package/dist/extensions/pi-subagents/src/watchdog/runtime.ts +851 -0
  712. package/dist/extensions/pi-subagents/src/watchdog/scope.ts +63 -0
  713. package/dist/extensions/pi-subagents/src/watchdog/settings.ts +512 -0
  714. package/dist/extensions/pi-subagents/src/watchdog/tool-actions.ts +155 -0
  715. package/dist/extensions/pi-subagents/src/watchdog/turn-delta.ts +161 -0
  716. package/dist/extensions/pi-subagents/src/watchdog/types.ts +184 -0
  717. package/dist/extensions/pi-subagents/src/watchdog/warning-format.ts +72 -0
  718. package/dist/extensions/pi-subagents/src/workflows/chat-progress.ts +152 -0
  719. package/dist/extensions/pi-subagents/src/workflows/host-command.ts +235 -0
  720. package/dist/extensions/pi-subagents/src/workflows/scripted-workflow.ts +2183 -0
  721. package/dist/extensions/pi-subagents/src/workflows/workflow-checklist.ts +439 -0
  722. package/dist/extensions/pi-subagents/src/workflows/workflow-child-summary.ts +121 -0
  723. package/dist/extensions/pi-subagents/src/workflows/workflow-preflight.ts +297 -0
  724. package/dist/extensions/pi-subagents/src/workflows/workflow-receipt.ts +330 -0
  725. package/dist/extensions/pi-subagents/src/workflows/workflow-resources.ts +150 -0
  726. package/dist/extensions/pi-subagents/src/workflows/workflow-settlement.ts +246 -0
  727. package/dist/extensions/pi-subagents/test/e2e/real-session-subagent.test.ts +224 -0
  728. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/bun/cli.d.ts +3 -0
  729. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/bun/register-bedrock.d.ts +2 -0
  730. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/bun/restore-sandbox-env.d.ts +17 -0
  731. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/cli/args.d.ts +57 -0
  732. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/cli/config-selector.d.ts +16 -0
  733. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/cli/file-processor.d.ts +15 -0
  734. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/cli/initial-message.d.ts +18 -0
  735. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/cli/list-models.d.ts +9 -0
  736. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/cli/project-trust.d.ts +10 -0
  737. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/cli/session-picker.d.ts +10 -0
  738. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/cli/startup-ui.d.ts +20 -0
  739. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/cli.d.ts +3 -0
  740. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/config.d.ts +96 -0
  741. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/agent-session-runtime.d.ts +119 -0
  742. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/agent-session-services.d.ts +85 -0
  743. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/agent-session.d.ts +620 -0
  744. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/auth-guidance.d.ts +5 -0
  745. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/auth-storage.d.ts +56 -0
  746. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/bash-executor.d.ts +32 -0
  747. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/cache-stats.d.ts +49 -0
  748. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/compaction/branch-summarization.d.ts +93 -0
  749. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/compaction/compaction.d.ts +128 -0
  750. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/compaction/index.d.ts +7 -0
  751. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/compaction/utils.d.ts +38 -0
  752. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/defaults.d.ts +3 -0
  753. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/diagnostics.d.ts +15 -0
  754. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/event-bus.d.ts +9 -0
  755. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/exec.d.ts +29 -0
  756. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/experimental.d.ts +2 -0
  757. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/export-html/ansi-to-html.d.ts +22 -0
  758. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/export-html/index.d.ts +37 -0
  759. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/export-html/tool-renderer.d.ts +34 -0
  760. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/extensions/index.d.ts +12 -0
  761. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/extensions/loader.d.ts +23 -0
  762. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/extensions/runner.d.ts +171 -0
  763. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/extensions/types.d.ts +1261 -0
  764. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/extensions/wrapper.d.ts +20 -0
  765. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/footer-data-provider.d.ts +54 -0
  766. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/http-dispatcher.d.ts +22 -0
  767. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/index.d.ts +13 -0
  768. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/keybindings.d.ts +358 -0
  769. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/messages.d.ts +77 -0
  770. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/model-config.d.ts +512 -0
  771. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/model-registry.d.ts +43 -0
  772. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/model-resolver.d.ts +121 -0
  773. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/model-runtime.d.ts +82 -0
  774. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/models-store.d.ts +17 -0
  775. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/output-guard.d.ts +7 -0
  776. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/package-manager.d.ts +210 -0
  777. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/project-trust.d.ts +15 -0
  778. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/prompt-templates.d.ts +54 -0
  779. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/provider-attribution.d.ts +4 -0
  780. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/provider-composer.d.ts +55 -0
  781. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/radius.d.ts +2 -0
  782. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/remote-catalog-provider.d.ts +5 -0
  783. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/resolve-config-value.d.ts +30 -0
  784. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/resource-loader.d.ts +206 -0
  785. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/runtime-credentials.d.ts +15 -0
  786. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/sdk.d.ts +106 -0
  787. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/session-cwd.d.ts +19 -0
  788. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/session-manager.d.ts +356 -0
  789. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/settings-manager.d.ts +297 -0
  790. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/skills.d.ts +60 -0
  791. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/slash-commands.d.ts +15 -0
  792. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/source-info.d.ts +18 -0
  793. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/system-prompt.d.ts +28 -0
  794. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/telemetry.d.ts +3 -0
  795. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/timings.d.ts +10 -0
  796. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/tools/bash.d.ts +68 -0
  797. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/tools/edit-diff.d.ts +106 -0
  798. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/tools/edit.d.ts +51 -0
  799. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/tools/file-mutation-queue.d.ts +6 -0
  800. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/tools/find.d.ts +35 -0
  801. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/tools/grep.d.ts +37 -0
  802. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/tools/index.d.ts +40 -0
  803. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/tools/ls.d.ts +37 -0
  804. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/tools/output-accumulator.d.ts +52 -0
  805. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/tools/path-utils.d.ts +10 -0
  806. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/tools/read.d.ts +35 -0
  807. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/tools/render-utils.d.ts +24 -0
  808. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/tools/tool-definition-wrapper.d.ts +14 -0
  809. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/tools/truncate.d.ts +70 -0
  810. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/tools/write.d.ts +26 -0
  811. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/trust-manager.d.ts +36 -0
  812. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/core/usage-totals.d.ts +19 -0
  813. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/extensions/index.d.ts +3 -0
  814. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/extensions/llama/client.d.ts +61 -0
  815. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/extensions/llama/huggingface.d.ts +23 -0
  816. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/extensions/llama/index.d.ts +3 -0
  817. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/extensions/llama/provider.d.ts +10 -0
  818. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/extensions/llama/ui.d.ts +42 -0
  819. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/index.d.ts +35 -0
  820. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/main.d.ts +12 -0
  821. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/migrations.d.ts +33 -0
  822. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/index.d.ts +9 -0
  823. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/armin.d.ts +34 -0
  824. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/assistant-message.d.ts +22 -0
  825. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/bash-execution.d.ts +34 -0
  826. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/bordered-loader.d.ts +16 -0
  827. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/branch-summary-message.d.ts +16 -0
  828. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/compaction-summary-message.d.ts +16 -0
  829. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/config-selector.d.ts +102 -0
  830. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/countdown-timer.d.ts +14 -0
  831. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/custom-editor.d.ts +21 -0
  832. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/custom-entry.d.ts +19 -0
  833. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/custom-message.d.ts +20 -0
  834. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/daxnuts.d.ts +23 -0
  835. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/diff.d.ts +12 -0
  836. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/dynamic-border.d.ts +15 -0
  837. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/earendil-announcement.d.ts +5 -0
  838. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/extension-editor.d.ts +22 -0
  839. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/extension-input.d.ts +23 -0
  840. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/extension-selector.d.ts +26 -0
  841. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/first-time-setup.d.ts +25 -0
  842. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/footer.d.ts +32 -0
  843. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/index.d.ts +34 -0
  844. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/keybinding-hints.d.ts +13 -0
  845. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/login-dialog.d.ts +52 -0
  846. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/model-selector.d.ts +54 -0
  847. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/oauth-selector.d.ts +33 -0
  848. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/scoped-models-selector.d.ts +42 -0
  849. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/session-selector-search.d.ts +23 -0
  850. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/session-selector.d.ts +95 -0
  851. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/settings-selector.d.ts +77 -0
  852. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/show-images-selector.d.ts +10 -0
  853. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/skill-invocation-message.d.ts +17 -0
  854. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/status-indicator.d.ts +28 -0
  855. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/theme-selector.d.ts +11 -0
  856. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/thinking-selector.d.ts +11 -0
  857. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/tool-execution.d.ts +63 -0
  858. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/tree-selector.d.ts +94 -0
  859. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/trust-selector.d.ts +23 -0
  860. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/user-message-selector.d.ts +30 -0
  861. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/user-message.d.ts +14 -0
  862. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/components/visual-truncate.d.ts +24 -0
  863. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/interactive-mode.d.ts +394 -0
  864. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/model-search.d.ts +12 -0
  865. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/theme/theme-controller.d.ts +29 -0
  866. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/interactive/theme/theme.d.ts +120 -0
  867. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/print-mode.d.ts +28 -0
  868. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/rpc/jsonl.d.ts +17 -0
  869. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/rpc/rpc-client.d.ts +246 -0
  870. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/rpc/rpc-mode.d.ts +20 -0
  871. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/modes/rpc/rpc-types.d.ts +457 -0
  872. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/package-manager-cli.d.ts +8 -0
  873. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/rpc-entry.d.ts +3 -0
  874. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/ansi.d.ts +2 -0
  875. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/changelog.d.ts +22 -0
  876. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/child-process.d.ts +18 -0
  877. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/clipboard-image.d.ts +11 -0
  878. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/clipboard-native.d.ts +11 -0
  879. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/clipboard.d.ts +4 -0
  880. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/deprecation.d.ts +4 -0
  881. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/exif-orientation.d.ts +5 -0
  882. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/frontmatter.d.ts +8 -0
  883. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/fs-watch.d.ts +5 -0
  884. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/git.d.ts +26 -0
  885. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/html.d.ts +7 -0
  886. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/image-convert.d.ts +10 -0
  887. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/image-process.d.ts +18 -0
  888. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/image-resize-core.d.ts +30 -0
  889. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/image-resize-worker.d.ts +2 -0
  890. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/image-resize.d.ts +16 -0
  891. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/json.d.ts +3 -0
  892. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/mime.d.ts +3 -0
  893. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/open-browser.d.ts +9 -0
  894. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/paths.d.ts +31 -0
  895. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/photon.d.ts +21 -0
  896. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/pi-user-agent.d.ts +2 -0
  897. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/shell.d.ts +31 -0
  898. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/sleep.d.ts +5 -0
  899. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/syntax-highlight.d.ts +12 -0
  900. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/tools-manager.d.ts +3 -0
  901. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/version-check.d.ts +15 -0
  902. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/dist/utils/windows-self-update.d.ts +3 -0
  903. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/index.mjs +84 -0
  904. package/dist/extensions/pi-subagents/test/fixtures/pi-coding-agent-shim/package.json +14 -0
  905. package/dist/extensions/pi-subagents/test/integration/acceptance-file-report.test.ts +472 -0
  906. package/dist/extensions/pi-subagents/test/integration/async-execution.test.ts +6986 -0
  907. package/dist/extensions/pi-subagents/test/integration/async-job-tracker.test.ts +2000 -0
  908. package/dist/extensions/pi-subagents/test/integration/async-status.test.ts +1300 -0
  909. package/dist/extensions/pi-subagents/test/integration/detect-error.test.ts +249 -0
  910. package/dist/extensions/pi-subagents/test/integration/doctor-executor.test.ts +128 -0
  911. package/dist/extensions/pi-subagents/test/integration/error-handling.test.ts +281 -0
  912. package/dist/extensions/pi-subagents/test/integration/external-cli-runner.test.ts +167 -0
  913. package/dist/extensions/pi-subagents/test/integration/foreground-result-size.test.ts +188 -0
  914. package/dist/extensions/pi-subagents/test/integration/fork-context-execution.test.ts +1356 -0
  915. package/dist/extensions/pi-subagents/test/integration/intercom-result-delivery.test.ts +1946 -0
  916. package/dist/extensions/pi-subagents/test/integration/orca-progress-tabs.test.ts +214 -0
  917. package/dist/extensions/pi-subagents/test/integration/render-fork-badge.test.ts +1408 -0
  918. package/dist/extensions/pi-subagents/test/integration/render-widget.test.ts +2094 -0
  919. package/dist/extensions/pi-subagents/test/integration/result-watcher.test.ts +2442 -0
  920. package/dist/extensions/pi-subagents/test/integration/session-tokens.test.ts +62 -0
  921. package/dist/extensions/pi-subagents/test/integration/single-execution.test.ts +9292 -0
  922. package/dist/extensions/pi-subagents/test/integration/slash-commands.test.ts +1517 -0
  923. package/dist/extensions/pi-subagents/test/integration/slash-live-state.test.ts +166 -0
  924. package/dist/extensions/pi-subagents/test/integration/template-resolution.test.ts +344 -0
  925. package/dist/extensions/pi-subagents/test/integration/top-level-async.test.ts +43 -0
  926. package/dist/extensions/pi-subagents/test/support/cursor-smoke-inputs.ts +51 -0
  927. package/dist/extensions/pi-subagents/test/support/helpers.ts +250 -0
  928. package/dist/extensions/pi-subagents/test/support/isolated-temp-root.mjs +20 -0
  929. package/dist/extensions/pi-subagents/test/support/mock-pi-script.mjs +447 -0
  930. package/dist/extensions/pi-subagents/test/support/mock-pi.ts +159 -0
  931. package/dist/extensions/pi-subagents/test/support/node-command.ts +15 -0
  932. package/dist/extensions/pi-subagents/test/support/real-session-child-cli.mjs +185 -0
  933. package/dist/extensions/pi-subagents/test/support/real-session-runner.ts +311 -0
  934. package/dist/extensions/pi-subagents/test/support/register-loader.mjs +16 -0
  935. package/dist/extensions/pi-subagents/test/support/session-lease-child.mjs +42 -0
  936. package/dist/extensions/pi-subagents/test/support/ts-loader.mjs +100 -0
  937. package/dist/extensions/pi-subagents/test/unit/abort-recovery.test.ts +152 -0
  938. package/dist/extensions/pi-subagents/test/unit/acceptance.test.ts +1556 -0
  939. package/dist/extensions/pi-subagents/test/unit/accessible-dir.test.ts +82 -0
  940. package/dist/extensions/pi-subagents/test/unit/active-async-capacity.test.ts +463 -0
  941. package/dist/extensions/pi-subagents/test/unit/agent-contract.test.ts +14 -0
  942. package/dist/extensions/pi-subagents/test/unit/agent-disabled.test.ts +213 -0
  943. package/dist/extensions/pi-subagents/test/unit/agent-discovery-cache.test.ts +232 -0
  944. package/dist/extensions/pi-subagents/test/unit/agent-eject-disable.test.ts +343 -0
  945. package/dist/extensions/pi-subagents/test/unit/agent-frontmatter.test.ts +2324 -0
  946. package/dist/extensions/pi-subagents/test/unit/agent-management.test.ts +1408 -0
  947. package/dist/extensions/pi-subagents/test/unit/agent-memory.test.ts +420 -0
  948. package/dist/extensions/pi-subagents/test/unit/agent-overrides.test.ts +1174 -0
  949. package/dist/extensions/pi-subagents/test/unit/agent-refinements.test.ts +178 -0
  950. package/dist/extensions/pi-subagents/test/unit/agent-scan-dirs.test.ts +133 -0
  951. package/dist/extensions/pi-subagents/test/unit/agent-scope.test.ts +20 -0
  952. package/dist/extensions/pi-subagents/test/unit/agent-selection.test.ts +88 -0
  953. package/dist/extensions/pi-subagents/test/unit/agent-stream-options.test.ts +14 -0
  954. package/dist/extensions/pi-subagents/test/unit/anti-slop-oxlint.test.ts +98 -0
  955. package/dist/extensions/pi-subagents/test/unit/artifacts.test.ts +78 -0
  956. package/dist/extensions/pi-subagents/test/unit/async-execution.test.ts +280 -0
  957. package/dist/extensions/pi-subagents/test/unit/async-interrupt-action.test.ts +1022 -0
  958. package/dist/extensions/pi-subagents/test/unit/async-permission-session.test.ts +100 -0
  959. package/dist/extensions/pi-subagents/test/unit/async-recovery-descriptor.test.ts +188 -0
  960. package/dist/extensions/pi-subagents/test/unit/async-resume.test.ts +978 -0
  961. package/dist/extensions/pi-subagents/test/unit/async-retention.test.ts +635 -0
  962. package/dist/extensions/pi-subagents/test/unit/async-status-projection.test.ts +260 -0
  963. package/dist/extensions/pi-subagents/test/unit/async-status-snapshot.test.ts +204 -0
  964. package/dist/extensions/pi-subagents/test/unit/atomic-json.test.ts +192 -0
  965. package/dist/extensions/pi-subagents/test/unit/authority-policy.test.ts +22 -0
  966. package/dist/extensions/pi-subagents/test/unit/auto-drain.test.ts +83 -0
  967. package/dist/extensions/pi-subagents/test/unit/background-process-options.test.ts +17 -0
  968. package/dist/extensions/pi-subagents/test/unit/background-work.test.ts +365 -0
  969. package/dist/extensions/pi-subagents/test/unit/capability-ceiling-agent-allowlist.test.ts +102 -0
  970. package/dist/extensions/pi-subagents/test/unit/capability-ceiling-pi-args.test.ts +84 -0
  971. package/dist/extensions/pi-subagents/test/unit/capability-ceiling.test.ts +68 -0
  972. package/dist/extensions/pi-subagents/test/unit/capacity-resilient-json.test.ts +155 -0
  973. package/dist/extensions/pi-subagents/test/unit/chain-append.test.ts +283 -0
  974. package/dist/extensions/pi-subagents/test/unit/chain-root-attachment.test.ts +236 -0
  975. package/dist/extensions/pi-subagents/test/unit/chain-serializer.test.ts +229 -0
  976. package/dist/extensions/pi-subagents/test/unit/child-launch-plan.test.ts +94 -0
  977. package/dist/extensions/pi-subagents/test/unit/child-protocol.test.ts +202 -0
  978. package/dist/extensions/pi-subagents/test/unit/child-session-name.test.ts +50 -0
  979. package/dist/extensions/pi-subagents/test/unit/child-transcript.test.ts +267 -0
  980. package/dist/extensions/pi-subagents/test/unit/close-grace-timer.test.ts +101 -0
  981. package/dist/extensions/pi-subagents/test/unit/compaction-resume.test.ts +98 -0
  982. package/dist/extensions/pi-subagents/test/unit/completion-batcher.test.ts +230 -0
  983. package/dist/extensions/pi-subagents/test/unit/completion-dedupe.test.ts +35 -0
  984. package/dist/extensions/pi-subagents/test/unit/completion-evidence.test.ts +150 -0
  985. package/dist/extensions/pi-subagents/test/unit/completion-guard.test.ts +753 -0
  986. package/dist/extensions/pi-subagents/test/unit/completion-replay.test.ts +305 -0
  987. package/dist/extensions/pi-subagents/test/unit/config-dir-runtime.test.ts +107 -0
  988. package/dist/extensions/pi-subagents/test/unit/control-channel.test.ts +630 -0
  989. package/dist/extensions/pi-subagents/test/unit/control-notices.test.ts +110 -0
  990. package/dist/extensions/pi-subagents/test/unit/cursor-smoke-inputs.test.ts +77 -0
  991. package/dist/extensions/pi-subagents/test/unit/default-extensions.test.ts +219 -0
  992. package/dist/extensions/pi-subagents/test/unit/delegation-api.test.ts +588 -0
  993. package/dist/extensions/pi-subagents/test/unit/doctor.test.ts +201 -0
  994. package/dist/extensions/pi-subagents/test/unit/dynamic-fanout.test.ts +219 -0
  995. package/dist/extensions/pi-subagents/test/unit/ensure-accessible-dir.test.ts +125 -0
  996. package/dist/extensions/pi-subagents/test/unit/extension-bindings.test.ts +79 -0
  997. package/dist/extensions/pi-subagents/test/unit/extension-context.test.ts +27 -0
  998. package/dist/extensions/pi-subagents/test/unit/external-cli-runner.test.ts +339 -0
  999. package/dist/extensions/pi-subagents/test/unit/external-job-runner.test.ts +961 -0
  1000. package/dist/extensions/pi-subagents/test/unit/external-runs.test.ts +261 -0
  1001. package/dist/extensions/pi-subagents/test/unit/extra-agent-dirs.test.ts +88 -0
  1002. package/dist/extensions/pi-subagents/test/unit/fast-mode-extension.test.ts +27 -0
  1003. package/dist/extensions/pi-subagents/test/unit/file-coalescer.test.ts +83 -0
  1004. package/dist/extensions/pi-subagents/test/unit/file-system-retry.test.ts +64 -0
  1005. package/dist/extensions/pi-subagents/test/unit/fleet-status.test.ts +1377 -0
  1006. package/dist/extensions/pi-subagents/test/unit/fleet-transcript.test.ts +435 -0
  1007. package/dist/extensions/pi-subagents/test/unit/fleet.test.ts +1786 -0
  1008. package/dist/extensions/pi-subagents/test/unit/foreground-control.test.ts +125 -0
  1009. package/dist/extensions/pi-subagents/test/unit/foreground-tool-call-compaction.test.ts +115 -0
  1010. package/dist/extensions/pi-subagents/test/unit/fork-cache-key.test.ts +91 -0
  1011. package/dist/extensions/pi-subagents/test/unit/fork-context.test.ts +588 -0
  1012. package/dist/extensions/pi-subagents/test/unit/formatters.test.ts +14 -0
  1013. package/dist/extensions/pi-subagents/test/unit/get-final-output.test.ts +175 -0
  1014. package/dist/extensions/pi-subagents/test/unit/herdr-inspector-bootstrap.test.ts +101 -0
  1015. package/dist/extensions/pi-subagents/test/unit/herdr-inspector.test.ts +479 -0
  1016. package/dist/extensions/pi-subagents/test/unit/herdr-session-roots-codec.test.ts +63 -0
  1017. package/dist/extensions/pi-subagents/test/unit/herdr-shell-command.test.ts +59 -0
  1018. package/dist/extensions/pi-subagents/test/unit/herdr-status-bridge.test.ts +716 -0
  1019. package/dist/extensions/pi-subagents/test/unit/host-command.test.ts +157 -0
  1020. package/dist/extensions/pi-subagents/test/unit/host-peer-runtime-imports.test.ts +157 -0
  1021. package/dist/extensions/pi-subagents/test/unit/host-step-status.test.ts +98 -0
  1022. package/dist/extensions/pi-subagents/test/unit/index-child-registration.test.ts +1307 -0
  1023. package/dist/extensions/pi-subagents/test/unit/index-segment.test.ts +96 -0
  1024. package/dist/extensions/pi-subagents/test/unit/inspect-rpc.test.ts +617 -0
  1025. package/dist/extensions/pi-subagents/test/unit/intercom-bridge.test.ts +220 -0
  1026. package/dist/extensions/pi-subagents/test/unit/jsonl-writer.test.ts +119 -0
  1027. package/dist/extensions/pi-subagents/test/unit/llm-intent-arbiter.test.ts +226 -0
  1028. package/dist/extensions/pi-subagents/test/unit/mcp-direct-tool-grant.test.ts +155 -0
  1029. package/dist/extensions/pi-subagents/test/unit/mission-goal-driver.test.ts +180 -0
  1030. package/dist/extensions/pi-subagents/test/unit/mission-lifecycle.test.ts +300 -0
  1031. package/dist/extensions/pi-subagents/test/unit/mission-store.test.ts +470 -0
  1032. package/dist/extensions/pi-subagents/test/unit/mock-pi.test.ts +22 -0
  1033. package/dist/extensions/pi-subagents/test/unit/model-exclusions.test.ts +258 -0
  1034. package/dist/extensions/pi-subagents/test/unit/model-fallback.test.ts +903 -0
  1035. package/dist/extensions/pi-subagents/test/unit/model-info.test.ts +162 -0
  1036. package/dist/extensions/pi-subagents/test/unit/model-scope-settings.test.ts +101 -0
  1037. package/dist/extensions/pi-subagents/test/unit/model-scope.test.ts +198 -0
  1038. package/dist/extensions/pi-subagents/test/unit/mutation-evidence.test.ts +177 -0
  1039. package/dist/extensions/pi-subagents/test/unit/native-supervisor-channel.test.ts +796 -0
  1040. package/dist/extensions/pi-subagents/test/unit/nested-control.test.ts +655 -0
  1041. package/dist/extensions/pi-subagents/test/unit/nested-events.test.ts +492 -0
  1042. package/dist/extensions/pi-subagents/test/unit/node-executable.test.ts +26 -0
  1043. package/dist/extensions/pi-subagents/test/unit/notify.test.ts +816 -0
  1044. package/dist/extensions/pi-subagents/test/unit/orca-progress-tabs.test.ts +545 -0
  1045. package/dist/extensions/pi-subagents/test/unit/owned-process-tree.test.ts +69 -0
  1046. package/dist/extensions/pi-subagents/test/unit/package-manifest.test.ts +241 -0
  1047. package/dist/extensions/pi-subagents/test/unit/parallel-handoff.test.ts +563 -0
  1048. package/dist/extensions/pi-subagents/test/unit/parallel-utils.test.ts +269 -0
  1049. package/dist/extensions/pi-subagents/test/unit/path-handling.test.ts +108 -0
  1050. package/dist/extensions/pi-subagents/test/unit/path-resolution.test.ts +103 -0
  1051. package/dist/extensions/pi-subagents/test/unit/permissions.test.ts +46 -0
  1052. package/dist/extensions/pi-subagents/test/unit/pi-args-permission-system.test.ts +437 -0
  1053. package/dist/extensions/pi-subagents/test/unit/pi-args.test.ts +2347 -0
  1054. package/dist/extensions/pi-subagents/test/unit/pi-coding-agent-dir.test.ts +461 -0
  1055. package/dist/extensions/pi-subagents/test/unit/pi-spawn.test.ts +493 -0
  1056. package/dist/extensions/pi-subagents/test/unit/preflight.test.ts +978 -0
  1057. package/dist/extensions/pi-subagents/test/unit/proactive-skills.test.ts +118 -0
  1058. package/dist/extensions/pi-subagents/test/unit/process-terminal.test.ts +279 -0
  1059. package/dist/extensions/pi-subagents/test/unit/profiles.test.ts +373 -0
  1060. package/dist/extensions/pi-subagents/test/unit/project-panes-public-api.test.ts +293 -0
  1061. package/dist/extensions/pi-subagents/test/unit/prompt-template-bridge.test.ts +244 -0
  1062. package/dist/extensions/pi-subagents/test/unit/prompt-workflows.test.ts +167 -0
  1063. package/dist/extensions/pi-subagents/test/unit/pruned-fork.test.ts +214 -0
  1064. package/dist/extensions/pi-subagents/test/unit/public-execution.test.ts +182 -0
  1065. package/dist/extensions/pi-subagents/test/unit/reads-resolution.test.ts +66 -0
  1066. package/dist/extensions/pi-subagents/test/unit/recursion-guard.test.ts +265 -0
  1067. package/dist/extensions/pi-subagents/test/unit/render-helpers.test.ts +639 -0
  1068. package/dist/extensions/pi-subagents/test/unit/result-delivery-ownership.test.ts +34 -0
  1069. package/dist/extensions/pi-subagents/test/unit/result-files.test.ts +501 -0
  1070. package/dist/extensions/pi-subagents/test/unit/result-intercom.test.ts +258 -0
  1071. package/dist/extensions/pi-subagents/test/unit/retained-children.test.ts +191 -0
  1072. package/dist/extensions/pi-subagents/test/unit/rpc.test.ts +1124 -0
  1073. package/dist/extensions/pi-subagents/test/unit/run-fanout-budget.test.ts +191 -0
  1074. package/dist/extensions/pi-subagents/test/unit/run-id-resolver.test.ts +247 -0
  1075. package/dist/extensions/pi-subagents/test/unit/run-status.test.ts +1545 -0
  1076. package/dist/extensions/pi-subagents/test/unit/runtime-acknowledged-extensions.test.ts +52 -0
  1077. package/dist/extensions/pi-subagents/test/unit/runtime-agent-registration.test.ts +349 -0
  1078. package/dist/extensions/pi-subagents/test/unit/scheduled-runs.test.ts +904 -0
  1079. package/dist/extensions/pi-subagents/test/unit/scheduled-store-root.test.ts +67 -0
  1080. package/dist/extensions/pi-subagents/test/unit/schemas.test.ts +657 -0
  1081. package/dist/extensions/pi-subagents/test/unit/scripted-workflow.test.ts +2501 -0
  1082. package/dist/extensions/pi-subagents/test/unit/selector.test.ts +57 -0
  1083. package/dist/extensions/pi-subagents/test/unit/session-lease.test.ts +339 -0
  1084. package/dist/extensions/pi-subagents/test/unit/single-output.test.ts +361 -0
  1085. package/dist/extensions/pi-subagents/test/unit/skills-fallback.test.ts +709 -0
  1086. package/dist/extensions/pi-subagents/test/unit/slash-bridge.test.ts +115 -0
  1087. package/dist/extensions/pi-subagents/test/unit/spawn-budget.test.ts +124 -0
  1088. package/dist/extensions/pi-subagents/test/unit/stale-run-reconciler.test.ts +440 -0
  1089. package/dist/extensions/pi-subagents/test/unit/status-format.test.ts +26 -0
  1090. package/dist/extensions/pi-subagents/test/unit/steering-action.test.ts +435 -0
  1091. package/dist/extensions/pi-subagents/test/unit/steering-notices.test.ts +58 -0
  1092. package/dist/extensions/pi-subagents/test/unit/steering.test.ts +217 -0
  1093. package/dist/extensions/pi-subagents/test/unit/streamed-progress-bounds.test.ts +78 -0
  1094. package/dist/extensions/pi-subagents/test/unit/subagent-action-recovery.test.ts +85 -0
  1095. package/dist/extensions/pi-subagents/test/unit/subagent-control.test.ts +342 -0
  1096. package/dist/extensions/pi-subagents/test/unit/subagent-guide.test.ts +37 -0
  1097. package/dist/extensions/pi-subagents/test/unit/subagent-prompt-runtime.test.ts +1593 -0
  1098. package/dist/extensions/pi-subagents/test/unit/subagent-startup-retry.test.ts +104 -0
  1099. package/dist/extensions/pi-subagents/test/unit/subagent-wait.test.ts +1367 -0
  1100. package/dist/extensions/pi-subagents/test/unit/task-intent.test.ts +153 -0
  1101. package/dist/extensions/pi-subagents/test/unit/temp-paths.test.ts +147 -0
  1102. package/dist/extensions/pi-subagents/test/unit/thinking-ceiling.test.ts +73 -0
  1103. package/dist/extensions/pi-subagents/test/unit/timeout-defaults.test.ts +138 -0
  1104. package/dist/extensions/pi-subagents/test/unit/tool-budget.test.ts +67 -0
  1105. package/dist/extensions/pi-subagents/test/unit/tool-description.test.ts +308 -0
  1106. package/dist/extensions/pi-subagents/test/unit/tool-timeout.test.ts +108 -0
  1107. package/dist/extensions/pi-subagents/test/unit/total-cost.test.ts +61 -0
  1108. package/dist/extensions/pi-subagents/test/unit/ts-loader.test.ts +33 -0
  1109. package/dist/extensions/pi-subagents/test/unit/types-fork-preamble.test.ts +23 -0
  1110. package/dist/extensions/pi-subagents/test/unit/wait-completions.test.ts +110 -0
  1111. package/dist/extensions/pi-subagents/test/unit/wait-subscriptions.test.ts +663 -0
  1112. package/dist/extensions/pi-subagents/test/unit/watch-strategy.test.ts +24 -0
  1113. package/dist/extensions/pi-subagents/test/unit/watchdog-change-signature.test.ts +434 -0
  1114. package/dist/extensions/pi-subagents/test/unit/watchdog-child-status.test.ts +170 -0
  1115. package/dist/extensions/pi-subagents/test/unit/watchdog-diff-tool.test.ts +79 -0
  1116. package/dist/extensions/pi-subagents/test/unit/watchdog-emission-guard.test.ts +62 -0
  1117. package/dist/extensions/pi-subagents/test/unit/watchdog-lsp-diagnostics.test.ts +144 -0
  1118. package/dist/extensions/pi-subagents/test/unit/watchdog-model-selection.test.ts +121 -0
  1119. package/dist/extensions/pi-subagents/test/unit/watchdog-permission-arbiter.test.ts +113 -0
  1120. package/dist/extensions/pi-subagents/test/unit/watchdog-render.test.ts +75 -0
  1121. package/dist/extensions/pi-subagents/test/unit/watchdog-review.test.ts +372 -0
  1122. package/dist/extensions/pi-subagents/test/unit/watchdog-rules.test.ts +37 -0
  1123. package/dist/extensions/pi-subagents/test/unit/watchdog-runtime.test.ts +990 -0
  1124. package/dist/extensions/pi-subagents/test/unit/watchdog-scope.test.ts +33 -0
  1125. package/dist/extensions/pi-subagents/test/unit/watchdog-settings.test.ts +345 -0
  1126. package/dist/extensions/pi-subagents/test/unit/watchdog-tool-actions.test.ts +91 -0
  1127. package/dist/extensions/pi-subagents/test/unit/watchdog-turn-delta.test.ts +130 -0
  1128. package/dist/extensions/pi-subagents/test/unit/widget-nested-render.test.ts +171 -0
  1129. package/dist/extensions/pi-subagents/test/unit/windows-hide-spawn.test.ts +49 -0
  1130. package/dist/extensions/pi-subagents/test/unit/workflow-chat-progress.test.ts +570 -0
  1131. package/dist/extensions/pi-subagents/test/unit/workflow-checklist.test.ts +223 -0
  1132. package/dist/extensions/pi-subagents/test/unit/workflow-detach-reconcile.test.ts +777 -0
  1133. package/dist/extensions/pi-subagents/test/unit/workflow-graph.test.ts +134 -0
  1134. package/dist/extensions/pi-subagents/test/unit/workflow-launch-params.test.ts +407 -0
  1135. package/dist/extensions/pi-subagents/test/unit/workflow-preflight.test.ts +177 -0
  1136. package/dist/extensions/pi-subagents/test/unit/workflow-receipt.test.ts +461 -0
  1137. package/dist/extensions/pi-subagents/test/unit/workflow-resources.test.ts +98 -0
  1138. package/dist/extensions/pi-subagents/test/unit/workflow-resume-hint.test.ts +365 -0
  1139. package/dist/extensions/pi-subagents/test/unit/worktree-cleanup-plan.test.ts +349 -0
  1140. package/dist/extensions/pi-subagents/test/unit/worktree.test.ts +827 -0
  1141. package/dist/extensions/pi-subagents/test/unit/writer-budget-guidance.test.ts +25 -0
  1142. package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/effect/index.ts +13 -0
  1143. package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/effect/rules/no-service-constructor-imports.ts +52 -0
  1144. package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/index.ts +41 -0
  1145. package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/rules/no-chained-type-assertions.ts +77 -0
  1146. package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/rules/no-conditional-empty-object-spread.ts +49 -0
  1147. package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/rules/no-known-value-widening.ts +247 -0
  1148. package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/rules/no-module-mocking.ts +91 -0
  1149. package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/rules/no-object-parameters.ts +126 -0
  1150. package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/rules/no-reflect-apply.ts +28 -0
  1151. package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/rules/no-reflect-get.ts +28 -0
  1152. package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/rules/no-runtime-typeof.ts +67 -0
  1153. package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/rules/no-shape-in-symbol-names.ts +39 -0
  1154. package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/rules/no-unknown-parameters.ts +83 -0
  1155. package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/rules/no-unknown-returns.ts +115 -0
  1156. package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/rules/no-unknown-type-aliases.ts +72 -0
  1157. package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/rules/no-unsafe-dictionary-type.ts +134 -0
  1158. package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/rules/no-widen-then-assert.ts +366 -0
  1159. package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/rules/require-safety-comment-for-type-assertion.ts +62 -0
  1160. package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/shared/dictionary-types.ts +502 -0
  1161. package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/shared/lexical-type-parameters.ts +60 -0
  1162. package/dist/extensions/pi-subagents/tools/oxlint/anti-slop/shared/reflect-method.ts +35 -0
  1163. package/dist/extensions/pi-subagents/tsconfig.json +15 -0
  1164. package/dist/extensions/pi-tool-display/CHANGELOG.md +329 -0
  1165. package/dist/extensions/pi-tool-display/LICENSE +21 -0
  1166. package/dist/extensions/pi-tool-display/README.md +417 -0
  1167. package/dist/extensions/pi-tool-display/config/config.example.json +40 -0
  1168. package/dist/extensions/pi-tool-display/index.ts +3 -0
  1169. package/dist/extensions/pi-tool-display/package-lock.json +2555 -0
  1170. package/dist/extensions/pi-tool-display/package.json +86 -0
  1171. package/dist/extensions/pi-tool-display/src/agent-dir.ts +35 -0
  1172. package/dist/extensions/pi-tool-display/src/ansi-utils.ts +116 -0
  1173. package/dist/extensions/pi-tool-display/src/bash-display.ts +213 -0
  1174. package/dist/extensions/pi-tool-display/src/capabilities.ts +88 -0
  1175. package/dist/extensions/pi-tool-display/src/config-modal.ts +541 -0
  1176. package/dist/extensions/pi-tool-display/src/config-store.ts +304 -0
  1177. package/dist/extensions/pi-tool-display/src/debug-logger.ts +150 -0
  1178. package/dist/extensions/pi-tool-display/src/diff-presentation.ts +72 -0
  1179. package/dist/extensions/pi-tool-display/src/diff-renderer.ts +2517 -0
  1180. package/dist/extensions/pi-tool-display/src/disposable.ts +34 -0
  1181. package/dist/extensions/pi-tool-display/src/extension-lifecycle.ts +14 -0
  1182. package/dist/extensions/pi-tool-display/src/index.ts +109 -0
  1183. package/dist/extensions/pi-tool-display/src/line-width-safety.ts +93 -0
  1184. package/dist/extensions/pi-tool-display/src/modal-icons.ts +57 -0
  1185. package/dist/extensions/pi-tool-display/src/pending-diff-preview.ts +370 -0
  1186. package/dist/extensions/pi-tool-display/src/presets.ts +117 -0
  1187. package/dist/extensions/pi-tool-display/src/render-utils.ts +186 -0
  1188. package/dist/extensions/pi-tool-display/src/settings-inspector-modal.ts +475 -0
  1189. package/dist/extensions/pi-tool-display/src/thinking-label.ts +343 -0
  1190. package/dist/extensions/pi-tool-display/src/tool-call-box.ts +181 -0
  1191. package/dist/extensions/pi-tool-display/src/tool-metadata.ts +139 -0
  1192. package/dist/extensions/pi-tool-display/src/tool-overrides.ts +2168 -0
  1193. package/dist/extensions/pi-tool-display/src/types.ts +109 -0
  1194. package/dist/extensions/pi-tool-display/src/user-message-box-markdown.ts +64 -0
  1195. package/dist/extensions/pi-tool-display/src/user-message-box-native.ts +66 -0
  1196. package/dist/extensions/pi-tool-display/src/user-message-box-patch.ts +72 -0
  1197. package/dist/extensions/pi-tool-display/src/user-message-box-renderer.ts +419 -0
  1198. package/dist/extensions/pi-tool-display/src/user-message-box-utils.ts +106 -0
  1199. package/dist/extensions/pi-tool-display/src/write-display-utils.ts +31 -0
  1200. package/dist/extensions/pi-tool-display/src/zellij-modal.ts +1027 -0
  1201. package/dist/extensions/pi-tool-display/tests/active-backlog-red.test.ts +65 -0
  1202. package/dist/extensions/pi-tool-display/tests/ansi-utils.test.ts +345 -0
  1203. package/dist/extensions/pi-tool-display/tests/bash-display.test.ts +442 -0
  1204. package/dist/extensions/pi-tool-display/tests/capabilities-edge.test.ts +360 -0
  1205. package/dist/extensions/pi-tool-display/tests/capabilities.test.ts +54 -0
  1206. package/dist/extensions/pi-tool-display/tests/config-modal.test.ts +360 -0
  1207. package/dist/extensions/pi-tool-display/tests/config-store.test.ts +87 -0
  1208. package/dist/extensions/pi-tool-display/tests/custom-tool-overrides.test.ts +415 -0
  1209. package/dist/extensions/pi-tool-display/tests/debug-logger-edge.test.ts +630 -0
  1210. package/dist/extensions/pi-tool-display/tests/debug-logger.test.ts +62 -0
  1211. package/dist/extensions/pi-tool-display/tests/diff-renderer-ansi.test.ts +55 -0
  1212. package/dist/extensions/pi-tool-display/tests/diff-renderer-edge.test.ts +886 -0
  1213. package/dist/extensions/pi-tool-display/tests/diff-renderer-numbering.test.ts +135 -0
  1214. package/dist/extensions/pi-tool-display/tests/diff-renderer-width.test.ts +454 -0
  1215. package/dist/extensions/pi-tool-display/tests/diff-renderer-wrap.test.ts +169 -0
  1216. package/dist/extensions/pi-tool-display/tests/index-integration.test.ts +354 -0
  1217. package/dist/extensions/pi-tool-display/tests/pending-diff-preview.test.ts +79 -0
  1218. package/dist/extensions/pi-tool-display/tests/presets-edge.test.ts +229 -0
  1219. package/dist/extensions/pi-tool-display/tests/presets.test.ts +26 -0
  1220. package/dist/extensions/pi-tool-display/tests/reload-behavior.test.ts +1241 -0
  1221. package/dist/extensions/pi-tool-display/tests/render-utils.test.ts +710 -0
  1222. package/dist/extensions/pi-tool-display/tests/settings-inspector.test.ts +450 -0
  1223. package/dist/extensions/pi-tool-display/tests/thinking-label-edge.test.ts +904 -0
  1224. package/dist/extensions/pi-tool-display/tests/thinking-label.test.ts +72 -0
  1225. package/dist/extensions/pi-tool-display/tests/tool-call-box.test.ts +105 -0
  1226. package/dist/extensions/pi-tool-display/tests/tool-overrides-config.test.ts +613 -0
  1227. package/dist/extensions/pi-tool-display/tests/tool-overrides-mcp.test.ts +499 -0
  1228. package/dist/extensions/pi-tool-display/tests/tool-overrides-registration.test.ts +315 -0
  1229. package/dist/extensions/pi-tool-display/tests/tool-overrides-write-meta.test.ts +68 -0
  1230. package/dist/extensions/pi-tool-display/tests/tool-ui-utils.test.ts +413 -0
  1231. package/dist/extensions/pi-tool-display/tests/user-message-box-performance-red.test.ts +176 -0
  1232. package/dist/extensions/pi-tool-display/tests/user-message-box.test.ts +908 -0
  1233. package/dist/extensions/pi-tool-display/tests/zellij-modal.test.ts +848 -0
  1234. package/dist/extensions/pi-tool-display/tool-display-api-consumer.d.ts +30 -0
  1235. package/dist/extensions/pi-tool-display/tool-display-api-consumer.js +40 -0
  1236. package/dist/extensions/pi-web-agent/CHANGELOG.md +410 -0
  1237. package/dist/extensions/pi-web-agent/README.md +131 -0
  1238. package/dist/extensions/pi-web-agent/package.json +33 -0
  1239. package/dist/extensions/pi-web-agent/src/backends/config.ts +264 -0
  1240. package/dist/extensions/pi-web-agent/src/backends/doctor.ts +272 -0
  1241. package/dist/extensions/pi-web-agent/src/backends/factory.ts +253 -0
  1242. package/dist/extensions/pi-web-agent/src/backends/settings-reader.ts +46 -0
  1243. package/dist/extensions/pi-web-agent/src/cache/ttl-cache.ts +28 -0
  1244. package/dist/extensions/pi-web-agent/src/changelog-notice.ts +136 -0
  1245. package/dist/extensions/pi-web-agent/src/commands/web-agent-config.ts +1082 -0
  1246. package/dist/extensions/pi-web-agent/src/extension.ts +163 -0
  1247. package/dist/extensions/pi-web-agent/src/extract/readability.ts +126 -0
  1248. package/dist/extensions/pi-web-agent/src/fetch/browser-resolution.ts +199 -0
  1249. package/dist/extensions/pi-web-agent/src/fetch/firecrawl-fetch.ts +100 -0
  1250. package/dist/extensions/pi-web-agent/src/fetch/headless-fetch.ts +117 -0
  1251. package/dist/extensions/pi-web-agent/src/fetch/http-fetch.ts +67 -0
  1252. package/dist/extensions/pi-web-agent/src/orchestration/answer-synthesizer.ts +60 -0
  1253. package/dist/extensions/pi-web-agent/src/orchestration/candidate-selector.ts +51 -0
  1254. package/dist/extensions/pi-web-agent/src/orchestration/direct-url.ts +29 -0
  1255. package/dist/extensions/pi-web-agent/src/orchestration/evidence-quality.ts +108 -0
  1256. package/dist/extensions/pi-web-agent/src/orchestration/evidence-ranker.ts +47 -0
  1257. package/dist/extensions/pi-web-agent/src/orchestration/index.ts +28 -0
  1258. package/dist/extensions/pi-web-agent/src/orchestration/query-planner.ts +47 -0
  1259. package/dist/extensions/pi-web-agent/src/orchestration/research-orchestrator.ts +441 -0
  1260. package/dist/extensions/pi-web-agent/src/orchestration/research-types.ts +71 -0
  1261. package/dist/extensions/pi-web-agent/src/orchestration/research-worker.ts +206 -0
  1262. package/dist/extensions/pi-web-agent/src/orchestration/source-profile.ts +105 -0
  1263. package/dist/extensions/pi-web-agent/src/orchestration/stop-decider.ts +81 -0
  1264. package/dist/extensions/pi-web-agent/src/orchestration/url.ts +35 -0
  1265. package/dist/extensions/pi-web-agent/src/presentation/config-store.ts +210 -0
  1266. package/dist/extensions/pi-web-agent/src/presentation/config.ts +75 -0
  1267. package/dist/extensions/pi-web-agent/src/presentation/explore-presentation.ts +73 -0
  1268. package/dist/extensions/pi-web-agent/src/presentation/fetch-presentation.ts +54 -0
  1269. package/dist/extensions/pi-web-agent/src/presentation/search-presentation.ts +53 -0
  1270. package/dist/extensions/pi-web-agent/src/presentation/select-view.ts +20 -0
  1271. package/dist/extensions/pi-web-agent/src/presentation/types.ts +63 -0
  1272. package/dist/extensions/pi-web-agent/src/readers/github-reader.ts +150 -0
  1273. package/dist/extensions/pi-web-agent/src/readers/limits.ts +3 -0
  1274. package/dist/extensions/pi-web-agent/src/readers/pdf-reader.ts +87 -0
  1275. package/dist/extensions/pi-web-agent/src/readers/resolver.ts +25 -0
  1276. package/dist/extensions/pi-web-agent/src/readers/types.ts +11 -0
  1277. package/dist/extensions/pi-web-agent/src/readers/youtube-reader.ts +79 -0
  1278. package/dist/extensions/pi-web-agent/src/search/brave.ts +114 -0
  1279. package/dist/extensions/pi-web-agent/src/search/duckduckgo.ts +99 -0
  1280. package/dist/extensions/pi-web-agent/src/search/exa.ts +109 -0
  1281. package/dist/extensions/pi-web-agent/src/search/fanout.ts +154 -0
  1282. package/dist/extensions/pi-web-agent/src/search/searxng.ts +96 -0
  1283. package/dist/extensions/pi-web-agent/src/search/tavily.ts +113 -0
  1284. package/dist/extensions/pi-web-agent/src/search/tokenin.ts +130 -0
  1285. package/dist/extensions/pi-web-agent/src/search/youcom.ts +109 -0
  1286. package/dist/extensions/pi-web-agent/src/tools/web-explore.ts +71 -0
  1287. package/dist/extensions/pi-web-agent/src/tools/web-fetch-headless.ts +31 -0
  1288. package/dist/extensions/pi-web-agent/src/tools/web-fetch.ts +31 -0
  1289. package/dist/extensions/pi-web-agent/src/tools/web-search.ts +170 -0
  1290. package/dist/extensions/pi-web-agent/src/types.ts +103 -0
  1291. package/dist/extensions/pi-zentui/.editorconfig +12 -0
  1292. package/dist/extensions/pi-zentui/.github/CODEOWNERS +1 -0
  1293. package/dist/extensions/pi-zentui/.github/ISSUE_TEMPLATE/bug_report.yml +110 -0
  1294. package/dist/extensions/pi-zentui/.github/ISSUE_TEMPLATE/config.yml +8 -0
  1295. package/dist/extensions/pi-zentui/.github/ISSUE_TEMPLATE/config_question.yml +56 -0
  1296. package/dist/extensions/pi-zentui/.github/ISSUE_TEMPLATE/feature_request.yml +63 -0
  1297. package/dist/extensions/pi-zentui/.github/ISSUE_TEMPLATE/rendering_issue.yml +106 -0
  1298. package/dist/extensions/pi-zentui/.github/ISSUE_TEMPLATE/runtime_detection.yml +103 -0
  1299. package/dist/extensions/pi-zentui/.github/dependabot.yml +47 -0
  1300. package/dist/extensions/pi-zentui/.github/pull_request_template.md +34 -0
  1301. package/dist/extensions/pi-zentui/.github/release.yml +18 -0
  1302. package/dist/extensions/pi-zentui/.github/workflows/ci.yml +79 -0
  1303. package/dist/extensions/pi-zentui/.github/workflows/publish.yml +63 -0
  1304. package/dist/extensions/pi-zentui/AGENTS.md +107 -0
  1305. package/dist/extensions/pi-zentui/CONTRIBUTING.md +68 -0
  1306. package/dist/extensions/pi-zentui/LICENSE +21 -0
  1307. package/dist/extensions/pi-zentui/README.md +202 -0
  1308. package/dist/extensions/pi-zentui/SECURITY.md +18 -0
  1309. package/dist/extensions/pi-zentui/assets/main-cover.png +0 -0
  1310. package/dist/extensions/pi-zentui/assets/screenshots/editor-accent-rail.png +0 -0
  1311. package/dist/extensions/pi-zentui/assets/screenshots/editor-minimalist.png +0 -0
  1312. package/dist/extensions/pi-zentui/assets/screenshots/editor-opencode-copy-friendly.png +0 -0
  1313. package/dist/extensions/pi-zentui/assets/screenshots/editor-opencode.png +0 -0
  1314. package/dist/extensions/pi-zentui/assets/screenshots/user-message-compact.png +0 -0
  1315. package/dist/extensions/pi-zentui/assets/screenshots/user-message-framed-copy-friendly.png +0 -0
  1316. package/dist/extensions/pi-zentui/assets/screenshots/user-message-framed.png +0 -0
  1317. package/dist/extensions/pi-zentui/assets/screenshots/user-message-labeled.png +0 -0
  1318. package/dist/extensions/pi-zentui/assets/zentui.png +0 -0
  1319. package/dist/extensions/pi-zentui/biome.json +31 -0
  1320. package/dist/extensions/pi-zentui/docs/configuration.md +537 -0
  1321. package/dist/extensions/pi-zentui/docs/footer-format.md +162 -0
  1322. package/dist/extensions/pi-zentui/extensions/zentui/accent-rail-editor.ts +99 -0
  1323. package/dist/extensions/pi-zentui/extensions/zentui/accent-rail-layout-patch.ts +457 -0
  1324. package/dist/extensions/pi-zentui/extensions/zentui/completion-menu.ts +157 -0
  1325. package/dist/extensions/pi-zentui/extensions/zentui/config.ts +2129 -0
  1326. package/dist/extensions/pi-zentui/extensions/zentui/editor-metadata-format.ts +321 -0
  1327. package/dist/extensions/pi-zentui/extensions/zentui/editor-transfer.ts +73 -0
  1328. package/dist/extensions/pi-zentui/extensions/zentui/extension-status.ts +89 -0
  1329. package/dist/extensions/pi-zentui/extensions/zentui/footer-format.ts +364 -0
  1330. package/dist/extensions/pi-zentui/extensions/zentui/footer-layout.ts +122 -0
  1331. package/dist/extensions/pi-zentui/extensions/zentui/footer.ts +812 -0
  1332. package/dist/extensions/pi-zentui/extensions/zentui/format.ts +620 -0
  1333. package/dist/extensions/pi-zentui/extensions/zentui/git.ts +384 -0
  1334. package/dist/extensions/pi-zentui/extensions/zentui/icons.ts +252 -0
  1335. package/dist/extensions/pi-zentui/extensions/zentui/index.ts +1445 -0
  1336. package/dist/extensions/pi-zentui/extensions/zentui/interaction-summary.ts +1049 -0
  1337. package/dist/extensions/pi-zentui/extensions/zentui/live-context.ts +75 -0
  1338. package/dist/extensions/pi-zentui/extensions/zentui/minimalist-editor.ts +463 -0
  1339. package/dist/extensions/pi-zentui/extensions/zentui/package-version.ts +651 -0
  1340. package/dist/extensions/pi-zentui/extensions/zentui/project-refresh.ts +120 -0
  1341. package/dist/extensions/pi-zentui/extensions/zentui/project-state.ts +59 -0
  1342. package/dist/extensions/pi-zentui/extensions/zentui/prototype-patch-registry.ts +210 -0
  1343. package/dist/extensions/pi-zentui/extensions/zentui/repository-root.ts +98 -0
  1344. package/dist/extensions/pi-zentui/extensions/zentui/runtime.ts +841 -0
  1345. package/dist/extensions/pi-zentui/extensions/zentui/selector-border.ts +93 -0
  1346. package/dist/extensions/pi-zentui/extensions/zentui/session-lifecycle.ts +60 -0
  1347. package/dist/extensions/pi-zentui/extensions/zentui/settings-command.ts +1908 -0
  1348. package/dist/extensions/pi-zentui/extensions/zentui/settings-previews.ts +245 -0
  1349. package/dist/extensions/pi-zentui/extensions/zentui/state.ts +94 -0
  1350. package/dist/extensions/pi-zentui/extensions/zentui/style.ts +424 -0
  1351. package/dist/extensions/pi-zentui/extensions/zentui/telemetry.ts +82 -0
  1352. package/dist/extensions/pi-zentui/extensions/zentui/thinking-experimental.ts +1768 -0
  1353. package/dist/extensions/pi-zentui/extensions/zentui/thinking-status.ts +69 -0
  1354. package/dist/extensions/pi-zentui/extensions/zentui/thinking-steps.ts +155 -0
  1355. package/dist/extensions/pi-zentui/extensions/zentui/ui.ts +1291 -0
  1356. package/dist/extensions/pi-zentui/extensions/zentui/user-message-osc.ts +262 -0
  1357. package/dist/extensions/pi-zentui/extensions/zentui/user-message-styles.ts +215 -0
  1358. package/dist/extensions/pi-zentui/extensions/zentui/user-message.ts +206 -0
  1359. package/dist/extensions/pi-zentui/extensions/zentui/working-line-messages.ts +24 -0
  1360. package/dist/extensions/pi-zentui/extensions/zentui/working-line-spinners.ts +54 -0
  1361. package/dist/extensions/pi-zentui/extensions/zentui/working-line.ts +1438 -0
  1362. package/dist/extensions/pi-zentui/package-lock.json +5311 -0
  1363. package/dist/extensions/pi-zentui/package.json +60 -0
  1364. package/dist/extensions/pi-zentui/test/accent-rail-editor.test.ts +232 -0
  1365. package/dist/extensions/pi-zentui/test/accent-rail-layout-patch.test.ts +669 -0
  1366. package/dist/extensions/pi-zentui/test/completion-menu.test.ts +265 -0
  1367. package/dist/extensions/pi-zentui/test/config-load-lifecycle.test.ts +124 -0
  1368. package/dist/extensions/pi-zentui/test/config.test.ts +3199 -0
  1369. package/dist/extensions/pi-zentui/test/editor-metadata-format.test.ts +405 -0
  1370. package/dist/extensions/pi-zentui/test/editor-transfer.test.ts +260 -0
  1371. package/dist/extensions/pi-zentui/test/editor-viewport-indicators.test.ts +1301 -0
  1372. package/dist/extensions/pi-zentui/test/extension-compliance.test.ts +7245 -0
  1373. package/dist/extensions/pi-zentui/test/extension-status.test.ts +182 -0
  1374. package/dist/extensions/pi-zentui/test/fixtures/starship-nerd-font-symbols.toml +172 -0
  1375. package/dist/extensions/pi-zentui/test/footer-format.test.ts +431 -0
  1376. package/dist/extensions/pi-zentui/test/footer-layout.test.ts +113 -0
  1377. package/dist/extensions/pi-zentui/test/footer-repository-path.test.ts +123 -0
  1378. package/dist/extensions/pi-zentui/test/format.test.ts +927 -0
  1379. package/dist/extensions/pi-zentui/test/git.test.ts +212 -0
  1380. package/dist/extensions/pi-zentui/test/icons.test.ts +69 -0
  1381. package/dist/extensions/pi-zentui/test/interaction-summary.test.ts +1402 -0
  1382. package/dist/extensions/pi-zentui/test/live-context-integration.test.ts +378 -0
  1383. package/dist/extensions/pi-zentui/test/live-context.test.ts +139 -0
  1384. package/dist/extensions/pi-zentui/test/minimalist-editor.test.ts +811 -0
  1385. package/dist/extensions/pi-zentui/test/package-contents.mjs +33 -0
  1386. package/dist/extensions/pi-zentui/test/package-version.test.ts +321 -0
  1387. package/dist/extensions/pi-zentui/test/project-refresh.test.ts +250 -0
  1388. package/dist/extensions/pi-zentui/test/project-state.test.ts +159 -0
  1389. package/dist/extensions/pi-zentui/test/prototype-patch-registry.test.ts +131 -0
  1390. package/dist/extensions/pi-zentui/test/repository-root.test.ts +108 -0
  1391. package/dist/extensions/pi-zentui/test/responsive-dependencies.test.ts +825 -0
  1392. package/dist/extensions/pi-zentui/test/runtime.test.ts +183 -0
  1393. package/dist/extensions/pi-zentui/test/session-lifecycle.test.ts +40 -0
  1394. package/dist/extensions/pi-zentui/test/settings-command.test.ts +1663 -0
  1395. package/dist/extensions/pi-zentui/test/settings-previews.test.ts +453 -0
  1396. package/dist/extensions/pi-zentui/test/state.test.ts +84 -0
  1397. package/dist/extensions/pi-zentui/test/telemetry-lifecycle-integration.test.ts +276 -0
  1398. package/dist/extensions/pi-zentui/test/telemetry.test.ts +105 -0
  1399. package/dist/extensions/pi-zentui/test/thinking-experimental-docs.test.ts +51 -0
  1400. package/dist/extensions/pi-zentui/test/thinking-experimental-loader-diagnostics.mjs +54 -0
  1401. package/dist/extensions/pi-zentui/test/thinking-experimental-missing-export.test.ts +44 -0
  1402. package/dist/extensions/pi-zentui/test/thinking-experimental-rows.test.ts +297 -0
  1403. package/dist/extensions/pi-zentui/test/thinking-experimental-tui.mjs +2329 -0
  1404. package/dist/extensions/pi-zentui/test/thinking-experimental.test.ts +1668 -0
  1405. package/dist/extensions/pi-zentui/test/thinking-status.test.ts +85 -0
  1406. package/dist/extensions/pi-zentui/test/thinking-steps.test.ts +122 -0
  1407. package/dist/extensions/pi-zentui/test/turn-summary-lifecycle.integration.test.ts +327 -0
  1408. package/dist/extensions/pi-zentui/test/user-message-osc.test.ts +222 -0
  1409. package/dist/extensions/pi-zentui/test/user-message-styles.test.ts +292 -0
  1410. package/dist/extensions/pi-zentui/test/working-line-lifecycle.integration.test.ts +730 -0
  1411. package/dist/extensions/pi-zentui/test/working-line-messages.test.ts +34 -0
  1412. package/dist/extensions/pi-zentui/test/working-line.test.ts +2016 -0
  1413. package/dist/extensions/pi-zentui/tsconfig.json +16 -0
  1414. package/dist/extensions/ponytail/index.js +176 -0
  1415. package/dist/extensions/ponytail/package.json +8 -0
  1416. package/dist/extensions/ponytail/ponytail-config.cjs +151 -0
  1417. package/dist/extensions/ponytail/ponytail-instructions.cjs +112 -0
  1418. package/dist/extensions/ponytail/test/extension.test.js +299 -0
  1419. package/dist/extensions/ponytail/test/helpers.test.js +312 -0
  1420. package/dist/extensions/question/batch.ts +103 -0
  1421. package/dist/extensions/question/constants.ts +31 -0
  1422. package/dist/extensions/question/helpers.ts +58 -0
  1423. package/dist/extensions/question/index.ts +688 -0
  1424. package/dist/extensions/question/navigation.ts +14 -0
  1425. package/dist/extensions/question/package.json +19 -0
  1426. package/dist/extensions/question/question-list.ts +533 -0
  1427. package/dist/extensions/question/row-layout.ts +165 -0
  1428. package/dist/extensions/question/schemas.ts +43 -0
  1429. package/dist/extensions/question/selection-mode.ts +47 -0
  1430. package/dist/extensions/question/shortcuts.ts +44 -0
  1431. package/dist/extensions/question/tests/batch.test.ts +113 -0
  1432. package/dist/extensions/question/tests/exp.test.ts +70 -0
  1433. package/dist/extensions/question/tests/exp2.test.ts +59 -0
  1434. package/dist/extensions/question/tests/exp3.test.ts +47 -0
  1435. package/dist/extensions/question/tests/helpers.test.ts +93 -0
  1436. package/dist/extensions/question/tests/question-list.test.ts +694 -0
  1437. package/dist/extensions/question/tests/row-layout.test.ts +215 -0
  1438. package/dist/extensions/question/tests/schemas.test.ts +53 -0
  1439. package/dist/extensions/question/tests/selection-mode.test.ts +54 -0
  1440. package/dist/extensions/question/tests/shortcuts.test.ts +107 -0
  1441. package/dist/extensions/question/tests/wizard.test.ts +839 -0
  1442. package/dist/extensions/question/tests/zz-ig3.test.ts +20 -0
  1443. package/dist/extensions/question/tests/zz-probe.test.ts +29 -0
  1444. package/dist/extensions/question/types.ts +132 -0
  1445. package/dist/extensions/rtk.test.ts +320 -0
  1446. package/dist/extensions/rtk.ts +123 -0
  1447. package/dist/extensions/test-resolve-hook-impl.mjs +7 -0
  1448. package/dist/extensions/test-resolve-hook.mjs +7 -0
  1449. package/dist/extensions/tokenin-onboarding.ts +883 -0
  1450. package/dist/extensions/tps.test.ts +38 -0
  1451. package/dist/extensions/tps.ts +349 -0
  1452. package/dist/extensions/undo.test.ts +720 -0
  1453. package/dist/extensions/undo.ts +298 -0
  1454. package/dist/extensions/web-agent-onboarding.test.ts +415 -0
  1455. package/dist/extensions/web-agent-onboarding.ts +222 -0
  1456. package/dist/index.d.ts +36 -0
  1457. package/dist/index.js +48 -0
  1458. package/dist/main.d.ts +11 -0
  1459. package/dist/main.js +768 -0
  1460. package/dist/migrations.d.ts +32 -0
  1461. package/dist/migrations.js +280 -0
  1462. package/dist/modes/index.d.ts +8 -0
  1463. package/dist/modes/index.js +7 -0
  1464. package/dist/modes/interactive/assets/clankolas.png +0 -0
  1465. package/dist/modes/interactive/components/armin.d.ts +33 -0
  1466. package/dist/modes/interactive/components/armin.js +332 -0
  1467. package/dist/modes/interactive/components/assistant-message.d.ts +21 -0
  1468. package/dist/modes/interactive/components/assistant-message.js +142 -0
  1469. package/dist/modes/interactive/components/bash-execution.d.ts +33 -0
  1470. package/dist/modes/interactive/components/bash-execution.js +174 -0
  1471. package/dist/modes/interactive/components/bordered-loader.d.ts +15 -0
  1472. package/dist/modes/interactive/components/bordered-loader.js +53 -0
  1473. package/dist/modes/interactive/components/branch-summary-message.d.ts +15 -0
  1474. package/dist/modes/interactive/components/branch-summary-message.js +43 -0
  1475. package/dist/modes/interactive/components/compaction-summary-message.d.ts +15 -0
  1476. package/dist/modes/interactive/components/compaction-summary-message.js +44 -0
  1477. package/dist/modes/interactive/components/config-selector.d.ts +101 -0
  1478. package/dist/modes/interactive/components/config-selector.js +760 -0
  1479. package/dist/modes/interactive/components/countdown-timer.d.ts +13 -0
  1480. package/dist/modes/interactive/components/countdown-timer.js +32 -0
  1481. package/dist/modes/interactive/components/custom-editor.d.ts +20 -0
  1482. package/dist/modes/interactive/components/custom-editor.js +69 -0
  1483. package/dist/modes/interactive/components/custom-entry.d.ts +18 -0
  1484. package/dist/modes/interactive/components/custom-entry.js +51 -0
  1485. package/dist/modes/interactive/components/custom-message.d.ts +21 -0
  1486. package/dist/modes/interactive/components/custom-message.js +86 -0
  1487. package/dist/modes/interactive/components/daxnuts.d.ts +22 -0
  1488. package/dist/modes/interactive/components/daxnuts.js +139 -0
  1489. package/dist/modes/interactive/components/diff.d.ts +11 -0
  1490. package/dist/modes/interactive/components/diff.js +132 -0
  1491. package/dist/modes/interactive/components/dynamic-border.d.ts +14 -0
  1492. package/dist/modes/interactive/components/dynamic-border.js +20 -0
  1493. package/dist/modes/interactive/components/earendil-announcement.d.ts +4 -0
  1494. package/dist/modes/interactive/components/earendil-announcement.js +39 -0
  1495. package/dist/modes/interactive/components/extension-editor.d.ts +20 -0
  1496. package/dist/modes/interactive/components/extension-editor.js +97 -0
  1497. package/dist/modes/interactive/components/extension-input.d.ts +22 -0
  1498. package/dist/modes/interactive/components/extension-input.js +60 -0
  1499. package/dist/modes/interactive/components/extension-selector.d.ts +25 -0
  1500. package/dist/modes/interactive/components/extension-selector.js +82 -0
  1501. package/dist/modes/interactive/components/first-time-setup.d.ts +24 -0
  1502. package/dist/modes/interactive/components/first-time-setup.js +116 -0
  1503. package/dist/modes/interactive/components/footer.d.ts +31 -0
  1504. package/dist/modes/interactive/components/footer.js +221 -0
  1505. package/dist/modes/interactive/components/index.d.ts +33 -0
  1506. package/dist/modes/interactive/components/index.js +34 -0
  1507. package/dist/modes/interactive/components/keybinding-hints.d.ts +12 -0
  1508. package/dist/modes/interactive/components/keybinding-hints.js +35 -0
  1509. package/dist/modes/interactive/components/login-dialog.d.ts +51 -0
  1510. package/dist/modes/interactive/components/login-dialog.js +187 -0
  1511. package/dist/modes/interactive/components/model-selector.d.ts +63 -0
  1512. package/dist/modes/interactive/components/model-selector.js +321 -0
  1513. package/dist/modes/interactive/components/oauth-selector.d.ts +32 -0
  1514. package/dist/modes/interactive/components/oauth-selector.js +162 -0
  1515. package/dist/modes/interactive/components/scoped-models-selector.d.ts +41 -0
  1516. package/dist/modes/interactive/components/scoped-models-selector.js +301 -0
  1517. package/dist/modes/interactive/components/session-selector-search.d.ts +22 -0
  1518. package/dist/modes/interactive/components/session-selector-search.js +154 -0
  1519. package/dist/modes/interactive/components/session-selector.d.ts +94 -0
  1520. package/dist/modes/interactive/components/session-selector.js +866 -0
  1521. package/dist/modes/interactive/components/settings-selector.d.ts +103 -0
  1522. package/dist/modes/interactive/components/settings-selector.js +726 -0
  1523. package/dist/modes/interactive/components/show-images-selector.d.ts +9 -0
  1524. package/dist/modes/interactive/components/show-images-selector.js +38 -0
  1525. package/dist/modes/interactive/components/skill-invocation-message.d.ts +16 -0
  1526. package/dist/modes/interactive/components/skill-invocation-message.js +46 -0
  1527. package/dist/modes/interactive/components/startup-box.d.ts +38 -0
  1528. package/dist/modes/interactive/components/startup-box.js +90 -0
  1529. package/dist/modes/interactive/components/status-indicator.d.ts +30 -0
  1530. package/dist/modes/interactive/components/status-indicator.js +64 -0
  1531. package/dist/modes/interactive/components/theme-selector.d.ts +10 -0
  1532. package/dist/modes/interactive/components/theme-selector.js +49 -0
  1533. package/dist/modes/interactive/components/thinking-selector.d.ts +10 -0
  1534. package/dist/modes/interactive/components/thinking-selector.js +51 -0
  1535. package/dist/modes/interactive/components/tool-execution.d.ts +62 -0
  1536. package/dist/modes/interactive/components/tool-execution.js +325 -0
  1537. package/dist/modes/interactive/components/tree-selector.d.ts +93 -0
  1538. package/dist/modes/interactive/components/tree-selector.js +1244 -0
  1539. package/dist/modes/interactive/components/trust-selector.d.ts +22 -0
  1540. package/dist/modes/interactive/components/trust-selector.js +90 -0
  1541. package/dist/modes/interactive/components/user-message-selector.d.ts +29 -0
  1542. package/dist/modes/interactive/components/user-message-selector.js +113 -0
  1543. package/dist/modes/interactive/components/user-message.d.ts +13 -0
  1544. package/dist/modes/interactive/components/user-message.js +41 -0
  1545. package/dist/modes/interactive/components/visual-truncate.d.ts +23 -0
  1546. package/dist/modes/interactive/components/visual-truncate.js +32 -0
  1547. package/dist/modes/interactive/external-editor.d.ts +11 -0
  1548. package/dist/modes/interactive/external-editor.js +36 -0
  1549. package/dist/modes/interactive/interactive-mode.d.ts +447 -0
  1550. package/dist/modes/interactive/interactive-mode.js +5489 -0
  1551. package/dist/modes/interactive/model-catalog-refresh.d.ts +6 -0
  1552. package/dist/modes/interactive/model-catalog-refresh.js +33 -0
  1553. package/dist/modes/interactive/model-search.d.ts +11 -0
  1554. package/dist/modes/interactive/model-search.js +14 -0
  1555. package/dist/modes/interactive/theme/dark.json +90 -0
  1556. package/dist/modes/interactive/theme/light.json +89 -0
  1557. package/dist/modes/interactive/theme/theme-controller.d.ts +39 -0
  1558. package/dist/modes/interactive/theme/theme-controller.js +124 -0
  1559. package/dist/modes/interactive/theme/theme-schema.json +348 -0
  1560. package/dist/modes/interactive/theme/theme.d.ts +121 -0
  1561. package/dist/modes/interactive/theme/theme.js +1090 -0
  1562. package/dist/modes/print-mode.d.ts +27 -0
  1563. package/dist/modes/print-mode.js +141 -0
  1564. package/dist/modes/rpc/jsonl.d.ts +16 -0
  1565. package/dist/modes/rpc/jsonl.js +48 -0
  1566. package/dist/modes/rpc/rpc-client.d.ts +438 -0
  1567. package/dist/modes/rpc/rpc-client.js +712 -0
  1568. package/dist/modes/rpc/rpc-mode.d.ts +19 -0
  1569. package/dist/modes/rpc/rpc-mode.js +1459 -0
  1570. package/dist/modes/rpc/rpc-types.d.ts +902 -0
  1571. package/dist/modes/rpc/rpc-types.js +7 -0
  1572. package/dist/package-manager-cli.d.ts +7 -0
  1573. package/dist/package-manager-cli.js +789 -0
  1574. package/dist/rpc-entry.d.ts +2 -0
  1575. package/dist/rpc-entry.js +9 -0
  1576. package/dist/skills/agent-browser/SKILL.md +53 -0
  1577. package/dist/skills/batch-grill-me/SKILL.md +20 -0
  1578. package/dist/skills/brandkit/SKILL.md +798 -0
  1579. package/dist/skills/brutalist/SKILL.md +92 -0
  1580. package/dist/skills/design-references/SKILL.md +32 -0
  1581. package/dist/skills/design-references/references/clickhouse/DESIGN.md +544 -0
  1582. package/dist/skills/gpt-taste/SKILL.md +74 -0
  1583. package/dist/skills/grill-me/SKILL.md +11 -0
  1584. package/dist/skills/handoff/SKILL.md +17 -0
  1585. package/dist/skills/handoff-text/SKILL.md +15 -0
  1586. package/dist/skills/image-to-code/SKILL.md +1228 -0
  1587. package/dist/skills/imagegen-frontend-mobile/SKILL.md +1465 -0
  1588. package/dist/skills/imagegen-frontend-web/SKILL.md +987 -0
  1589. package/dist/skills/implanger/SKILL.md +70 -0
  1590. package/dist/skills/improve-codebase/REFERENCE.md +78 -0
  1591. package/dist/skills/improve-codebase/SKILL.md +180 -0
  1592. package/dist/skills/minimalist/SKILL.md +85 -0
  1593. package/dist/skills/output/SKILL.md +49 -0
  1594. package/dist/skills/pi-subagents/SKILL.md +50 -0
  1595. package/dist/skills/pi-subagents/references/constraints-and-recipes.md +274 -0
  1596. package/dist/skills/pi-subagents/references/execution-controls.md +463 -0
  1597. package/dist/skills/pi-subagents/references/management-authoring-rpc.md +161 -0
  1598. package/dist/skills/pi-subagents/references/multi-lane-orchestration.md +39 -0
  1599. package/dist/skills/pi-subagents/references/prompting-and-roles.md +267 -0
  1600. package/dist/skills/planger/SKILL.md +167 -0
  1601. package/dist/skills/ponytail/SKILL.md +121 -0
  1602. package/dist/skills/ponytail-audit/SKILL.md +42 -0
  1603. package/dist/skills/ponytail-debt/SKILL.md +45 -0
  1604. package/dist/skills/ponytail-gain/SKILL.md +51 -0
  1605. package/dist/skills/ponytail-help/SKILL.md +72 -0
  1606. package/dist/skills/ponytail-review/SKILL.md +58 -0
  1607. package/dist/skills/redesign/SKILL.md +178 -0
  1608. package/dist/skills/selesai-handoff/SKILL.md +21 -0
  1609. package/dist/skills/soft/SKILL.md +98 -0
  1610. package/dist/skills/stitch/DESIGN.md +121 -0
  1611. package/dist/skills/stitch/SKILL.md +184 -0
  1612. package/dist/skills/taste/SKILL.md +1206 -0
  1613. package/dist/skills/taste-v1/SKILL.md +226 -0
  1614. package/dist/skills/to-prd/SKILL.md +73 -0
  1615. package/dist/skills/unlazy/CHANGELOG.md +109 -0
  1616. package/dist/skills/unlazy/CONTRIBUTING.md +63 -0
  1617. package/dist/skills/unlazy/LICENSE +21 -0
  1618. package/dist/skills/unlazy/README.md +228 -0
  1619. package/dist/skills/unlazy/SECURITY.md +60 -0
  1620. package/dist/skills/unlazy/SKILL.md +93 -0
  1621. package/dist/skills/unlazy/package.json +13 -0
  1622. package/dist/skills/unlazy/references/dispatch.md +79 -0
  1623. package/dist/skills/unlazy/references/gates.md +132 -0
  1624. package/dist/skills/unlazy/references/method.md +49 -0
  1625. package/dist/skills/unlazy/references/orchestration.md +98 -0
  1626. package/dist/skills/unlazy/references/parallel.md +111 -0
  1627. package/dist/skills/unlazy/references/token-economy.md +39 -0
  1628. package/dist/skills/unlazy/research/validation-protocol.md +81 -0
  1629. package/dist/skills/unlazy/scripts/dispatch-check.mjs +108 -0
  1630. package/dist/skills/unlazy/scripts/gate-check.mjs +879 -0
  1631. package/dist/skills/unlazy/scripts/gate-lint.mjs +178 -0
  1632. package/dist/skills/unlazy/scripts/lib/check-supervisor.mjs +46 -0
  1633. package/dist/skills/unlazy/scripts/lib/dispatch.mjs +283 -0
  1634. package/dist/skills/unlazy/scripts/lib/gates.mjs +625 -0
  1635. package/dist/skills/unlazy/scripts/lib/process-tree.mjs +161 -0
  1636. package/dist/skills/unlazy/scripts/lib/regex-worker.mjs +9 -0
  1637. package/dist/skills/unlazy/templates/PLAN.md +65 -0
  1638. package/dist/skills/unlazy/templates/gates-leaf.md +51 -0
  1639. package/dist/skills/unlazy/templates/gates-node.md +50 -0
  1640. package/dist/skills/unlazy/tests/contract-tests.mjs +127 -0
  1641. package/dist/skills/unlazy/tests/dispatch-tests.mjs +296 -0
  1642. package/dist/skills/unlazy/tests/hardening-tests.mjs +900 -0
  1643. package/dist/skills/unlazy/tests/lint-tests.mjs +242 -0
  1644. package/dist/skills/unlazy/tests/run-tests.mjs +360 -0
  1645. package/dist/skills/unlazy/tests/self-check.mjs +152 -0
  1646. package/dist/skills/unlazy/tests/stress-tests.mjs +165 -0
  1647. package/dist/skills/web-design-guidelines/SKILL.md +41 -0
  1648. package/dist/skills/workflow/SKILL.md +95 -0
  1649. package/dist/themes/adventure.json +84 -0
  1650. package/dist/themes/adwaita-dark.json +84 -0
  1651. package/dist/themes/arcoiris.json +84 -0
  1652. package/dist/themes/arthur.json +84 -0
  1653. package/dist/themes/atom.json +84 -0
  1654. package/dist/themes/aura.json +84 -0
  1655. package/dist/themes/black-metal-bathory.json +84 -0
  1656. package/dist/themes/black-metal-burzum.json +84 -0
  1657. package/dist/themes/black-metal-khold.json +84 -0
  1658. package/dist/themes/box.json +84 -0
  1659. package/dist/themes/brogrammer.json +84 -0
  1660. package/dist/themes/carbonfox.json +84 -0
  1661. package/dist/themes/catppuccin-mocha.json +84 -0
  1662. package/dist/themes/citruszest.json +84 -0
  1663. package/dist/themes/cursor-dark.json +84 -0
  1664. package/dist/themes/cutie-pro.json +84 -0
  1665. package/dist/themes/dark-modern.json +84 -0
  1666. package/dist/themes/dark-pastel.json +84 -0
  1667. package/dist/themes/dimmed-monokai.json +84 -0
  1668. package/dist/themes/doom-peacock.json +84 -0
  1669. package/dist/themes/dracula-plus.json +84 -0
  1670. package/dist/themes/dracula.json +80 -0
  1671. package/dist/themes/earthsong.json +84 -0
  1672. package/dist/themes/everforest-dark-hard.json +84 -0
  1673. package/dist/themes/everforest-dark.json +80 -0
  1674. package/dist/themes/fahrenheit.json +84 -0
  1675. package/dist/themes/flatland.json +84 -0
  1676. package/dist/themes/flexoki-dark.json +84 -0
  1677. package/dist/themes/front-end-delight.json +84 -0
  1678. package/dist/themes/fun-forrest.json +84 -0
  1679. package/dist/themes/galizur.json +84 -0
  1680. package/dist/themes/github-dark-colorblind.json +84 -0
  1681. package/dist/themes/github-dark-high-contrast.json +84 -0
  1682. package/dist/themes/glacier.json +84 -0
  1683. package/dist/themes/gruber-darker.json +84 -0
  1684. package/dist/themes/gruvbox-dark-hard.json +84 -0
  1685. package/dist/themes/gruvbox-dark.json +84 -0
  1686. package/dist/themes/gruvbox-material.json +84 -0
  1687. package/dist/themes/guezwhoz.json +84 -0
  1688. package/dist/themes/hacktober.json +84 -0
  1689. package/dist/themes/hardcore.json +84 -0
  1690. package/dist/themes/havn-skumring.json +84 -0
  1691. package/dist/themes/ic-orange-ppl.json +84 -0
  1692. package/dist/themes/iterm2-smoooooth.json +84 -0
  1693. package/dist/themes/iterm2-tango-dark.json +84 -0
  1694. package/dist/themes/japanesque.json +84 -0
  1695. package/dist/themes/jellybeans.json +84 -0
  1696. package/dist/themes/kanagawa-wave.json +84 -0
  1697. package/dist/themes/kurokula.json +84 -0
  1698. package/dist/themes/later-this-evening.json +84 -0
  1699. package/dist/themes/lovelace.json +84 -0
  1700. package/dist/themes/material-darker.json +84 -0
  1701. package/dist/themes/matte-black.json +84 -0
  1702. package/dist/themes/mellow.json +84 -0
  1703. package/dist/themes/miasma.json +84 -0
  1704. package/dist/themes/nord.json +80 -0
  1705. package/dist/themes/nvim-dark.json +84 -0
  1706. package/dist/themes/one-dark.json +80 -0
  1707. package/dist/themes/popping-and-locking.json +84 -0
  1708. package/dist/themes/rose-pine.json +80 -0
  1709. package/dist/themes/sea-shells.json +84 -0
  1710. package/dist/themes/sleepy-hollow.json +84 -0
  1711. package/dist/themes/smyck.json +84 -0
  1712. package/dist/themes/solarized-dark.json +80 -0
  1713. package/dist/themes/tokyo-night.json +80 -0
  1714. package/dist/themes/tomorrow-night-bright.json +84 -0
  1715. package/dist/themes/tomorrow-night-burns.json +84 -0
  1716. package/dist/themes/tomorrow-night.json +84 -0
  1717. package/dist/themes/twilight.json +84 -0
  1718. package/dist/themes/vague.json +84 -0
  1719. package/dist/themes/vesper.json +84 -0
  1720. package/dist/themes/xcode-dark-hc.json +84 -0
  1721. package/dist/utils/abort.d.ts +4 -0
  1722. package/dist/utils/abort.js +47 -0
  1723. package/dist/utils/ansi.d.ts +1 -0
  1724. package/dist/utils/ansi.js +51 -0
  1725. package/dist/utils/changelog.d.ts +21 -0
  1726. package/dist/utils/changelog.js +164 -0
  1727. package/dist/utils/child-process.d.ts +17 -0
  1728. package/dist/utils/child-process.js +105 -0
  1729. package/dist/utils/clipboard-image.d.ts +10 -0
  1730. package/dist/utils/clipboard-image.js +250 -0
  1731. package/dist/utils/clipboard-native.d.ts +10 -0
  1732. package/dist/utils/clipboard-native.js +19 -0
  1733. package/dist/utils/clipboard.d.ts +3 -0
  1734. package/dist/utils/clipboard.js +140 -0
  1735. package/dist/utils/deprecation.d.ts +3 -0
  1736. package/dist/utils/deprecation.js +12 -0
  1737. package/dist/utils/exif-orientation.d.ts +4 -0
  1738. package/dist/utils/exif-orientation.js +157 -0
  1739. package/dist/utils/frontmatter.d.ts +7 -0
  1740. package/dist/utils/frontmatter.js +25 -0
  1741. package/dist/utils/fs-watch.d.ts +4 -0
  1742. package/dist/utils/fs-watch.js +24 -0
  1743. package/dist/utils/git.d.ts +25 -0
  1744. package/dist/utils/git.js +194 -0
  1745. package/dist/utils/html.d.ts +6 -0
  1746. package/dist/utils/html.js +39 -0
  1747. package/dist/utils/image-convert.d.ts +9 -0
  1748. package/dist/utils/image-convert.js +44 -0
  1749. package/dist/utils/image-process.d.ts +17 -0
  1750. package/dist/utils/image-process.js +82 -0
  1751. package/dist/utils/image-resize-core.d.ts +29 -0
  1752. package/dist/utils/image-resize-core.js +123 -0
  1753. package/dist/utils/image-resize-worker.d.ts +1 -0
  1754. package/dist/utils/image-resize-worker.js +30 -0
  1755. package/dist/utils/image-resize.d.ts +15 -0
  1756. package/dist/utils/image-resize.js +96 -0
  1757. package/dist/utils/json.d.ts +2 -0
  1758. package/dist/utils/json.js +6 -0
  1759. package/dist/utils/mime.d.ts +2 -0
  1760. package/dist/utils/mime.js +132 -0
  1761. package/dist/utils/open-browser.d.ts +8 -0
  1762. package/dist/utils/open-browser.js +21 -0
  1763. package/dist/utils/paths.d.ts +30 -0
  1764. package/dist/utils/paths.js +91 -0
  1765. package/dist/utils/photon.d.ts +20 -0
  1766. package/dist/utils/photon.js +120 -0
  1767. package/dist/utils/pi-user-agent.d.ts +1 -0
  1768. package/dist/utils/pi-user-agent.js +4 -0
  1769. package/dist/utils/shell.d.ts +33 -0
  1770. package/dist/utils/shell.js +215 -0
  1771. package/dist/utils/sleep.d.ts +4 -0
  1772. package/dist/utils/sleep.js +16 -0
  1773. package/dist/utils/syntax-highlight.d.ts +11 -0
  1774. package/dist/utils/syntax-highlight.js +117 -0
  1775. package/dist/utils/thinking-tags.d.ts +6 -0
  1776. package/dist/utils/thinking-tags.js +62 -0
  1777. package/dist/utils/tools-manager.d.ts +7 -0
  1778. package/dist/utils/tools-manager.js +402 -0
  1779. package/dist/utils/version-check.d.ts +19 -0
  1780. package/dist/utils/version-check.js +72 -0
  1781. package/dist/utils/windows-self-update.d.ts +2 -0
  1782. package/dist/utils/windows-self-update.js +76 -0
  1783. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ <svg id="my-svg" width="100%" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="flowchart" style="max-width: 1518.45px; background-color: white;" viewBox="0 0 1518.453125 1002.60546875" role="graphics-document document" aria-roledescription="flowchart-v2"><style>#my-svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#my-svg .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#my-svg .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#my-svg .error-icon{fill:#552222;}#my-svg .error-text{fill:#552222;stroke:#552222;}#my-svg .edge-thickness-normal{stroke-width:1px;}#my-svg .edge-thickness-thick{stroke-width:3.5px;}#my-svg .edge-pattern-solid{stroke-dasharray:0;}#my-svg .edge-thickness-invisible{stroke-width:0;fill:none;}#my-svg .edge-pattern-dashed{stroke-dasharray:3;}#my-svg .edge-pattern-dotted{stroke-dasharray:2;}#my-svg .marker{fill:#333333;stroke:#333333;}#my-svg .marker.cross{stroke:#333333;}#my-svg svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;}#my-svg p{margin:0;}#my-svg .label{font-family:"trebuchet ms",verdana,arial,sans-serif;color:#333;}#my-svg .cluster-label text{fill:#333;}#my-svg .cluster-label span{color:#333;}#my-svg .cluster-label span p{background-color:transparent;}#my-svg .label text,#my-svg span{fill:#333;color:#333;}#my-svg .node rect,#my-svg .node circle,#my-svg .node ellipse,#my-svg .node polygon,#my-svg .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#my-svg .rough-node .label text,#my-svg .node .label text,#my-svg .image-shape .label,#my-svg .icon-shape .label{text-anchor:middle;}#my-svg .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#my-svg .rough-node .label,#my-svg .node .label,#my-svg .image-shape .label,#my-svg .icon-shape .label{text-align:center;}#my-svg .node.clickable{cursor:pointer;}#my-svg .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#my-svg .arrowheadPath{fill:#333333;}#my-svg .edgePath .path{stroke:#333333;stroke-width:1px;}#my-svg .flowchart-link{stroke:#333333;fill:none;}#my-svg .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#my-svg .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#my-svg .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#my-svg .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#my-svg .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#my-svg .cluster text{fill:#333;}#my-svg .cluster span{color:#333;}#my-svg div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#my-svg .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#my-svg rect.text{fill:none;stroke-width:0;}#my-svg .icon-shape,#my-svg .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#my-svg .icon-shape p,#my-svg .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#my-svg .icon-shape .label rect,#my-svg .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#my-svg .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#my-svg .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#my-svg .node .neo-node{stroke:#9370DB;}#my-svg [data-look="neo"].node rect,#my-svg [data-look="neo"].cluster rect,#my-svg [data-look="neo"].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#my-svg [data-look="neo"].node path{stroke:#9370DB;stroke-width:1px;}#my-svg [data-look="neo"].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#my-svg [data-look="neo"].node .neo-line path{stroke:#9370DB;filter:none;}#my-svg [data-look="neo"].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#my-svg [data-look="neo"].node circle .state-start{fill:#000000;}#my-svg [data-look="neo"].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#my-svg [data-look="neo"].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#my-svg :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;}</style><g><marker id="my-svg_flowchart-v2-pointEnd" class="marker flowchart-v2" viewBox="0 0 10 10" refX="5" refY="5" markerUnits="userSpaceOnUse" markerWidth="8" markerHeight="8" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"/></marker><marker id="my-svg_flowchart-v2-pointStart" class="marker flowchart-v2" viewBox="0 0 10 10" refX="4.5" refY="5" markerUnits="userSpaceOnUse" markerWidth="8" markerHeight="8" orient="auto"><path d="M 0 5 L 10 10 L 10 0 z" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"/></marker><marker id="my-svg_flowchart-v2-pointEnd-margin" class="marker flowchart-v2" viewBox="0 0 11.5 14" refX="11.5" refY="7" markerUnits="userSpaceOnUse" markerWidth="10.5" markerHeight="14" orient="auto"><path d="M 0 0 L 11.5 7 L 0 14 z" class="arrowMarkerPath" style="stroke-width: 0; stroke-dasharray: 1, 0;"/></marker><marker id="my-svg_flowchart-v2-pointStart-margin" class="marker flowchart-v2" viewBox="0 0 11.5 14" refX="1" refY="7" markerUnits="userSpaceOnUse" markerWidth="11.5" markerHeight="14" orient="auto"><polygon points="0,7 11.5,14 11.5,0" class="arrowMarkerPath" style="stroke-width: 0; stroke-dasharray: 1, 0;"/></marker><marker id="my-svg_flowchart-v2-circleEnd" class="marker flowchart-v2" viewBox="0 0 10 10" refX="11" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><circle cx="5" cy="5" r="5" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"/></marker><marker id="my-svg_flowchart-v2-circleStart" class="marker flowchart-v2" viewBox="0 0 10 10" refX="-1" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><circle cx="5" cy="5" r="5" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"/></marker><marker id="my-svg_flowchart-v2-circleEnd-margin" class="marker flowchart-v2" viewBox="0 0 10 10" refY="5" refX="12.25" markerUnits="userSpaceOnUse" markerWidth="14" markerHeight="14" orient="auto"><circle cx="5" cy="5" r="5" class="arrowMarkerPath" style="stroke-width: 0; stroke-dasharray: 1, 0;"/></marker><marker id="my-svg_flowchart-v2-circleStart-margin" class="marker flowchart-v2" viewBox="0 0 10 10" refX="-2" refY="5" markerUnits="userSpaceOnUse" markerWidth="14" markerHeight="14" orient="auto"><circle cx="5" cy="5" r="5" class="arrowMarkerPath" style="stroke-width: 0; stroke-dasharray: 1, 0;"/></marker><marker id="my-svg_flowchart-v2-crossEnd" class="marker cross flowchart-v2" viewBox="0 0 11 11" refX="12" refY="5.2" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><path d="M 1,1 l 9,9 M 10,1 l -9,9" class="arrowMarkerPath" style="stroke-width: 2; stroke-dasharray: 1, 0;"/></marker><marker id="my-svg_flowchart-v2-crossStart" class="marker cross flowchart-v2" viewBox="0 0 11 11" refX="-1" refY="5.2" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><path d="M 1,1 l 9,9 M 10,1 l -9,9" class="arrowMarkerPath" style="stroke-width: 2; stroke-dasharray: 1, 0;"/></marker><marker id="my-svg_flowchart-v2-crossEnd-margin" class="marker cross flowchart-v2" viewBox="0 0 15 15" refX="17.7" refY="7.5" markerUnits="userSpaceOnUse" markerWidth="12" markerHeight="12" orient="auto"><path d="M 1,1 L 14,14 M 1,14 L 14,1" class="arrowMarkerPath" style="stroke-width: 2.5;"/></marker><marker id="my-svg_flowchart-v2-crossStart-margin" class="marker cross flowchart-v2" viewBox="0 0 15 15" refX="-3.5" refY="7.5" markerUnits="userSpaceOnUse" markerWidth="12" markerHeight="12" orient="auto"><path d="M 1,1 L 14,14 M 1,14 L 14,1" class="arrowMarkerPath" style="stroke-width: 2.5; stroke-dasharray: 1, 0;"/></marker><g class="root"><g class="clusters"><g class="cluster" id="my-svg-subGraph1" data-look="classic"><rect style="" x="1232.90625" y="338.80859375" width="277.546875" height="436"/><g class="cluster-label" transform="translate(1316.3515625, 338.80859375)"><foreignObject width="110.65625" height="24"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5;"><span class="nodeLabel"><p>Failure Memory</p></span></div></foreignObject></g></g><g class="cluster" id="my-svg-subGraph0" data-look="classic"><rect style="" x="539.5" y="8" width="310" height="484"/><g class="cluster-label" transform="translate(634.375, 8)"><foreignObject width="120.25" height="24"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5;"><span class="nodeLabel"><p>Blocked Patterns</p></span></div></foreignObject></g></g></g><g class="edgePaths"><path d="M240.891,308L245.057,308C249.224,308,257.557,308,265.224,308C272.891,308,279.891,308,283.391,308L286.891,308" id="my-svg-L_A_B_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_A_B_0" data-points="W3sieCI6MjQwLjg5MDYyNSwieSI6MzA4fSx7IngiOjI2NS44OTA2MjUsInkiOjMwOH0seyJ4IjoyOTAuODkwNjI1LCJ5IjozMDh9XQ==" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/><path d="M386.131,355.369L402.859,388.474C419.587,421.579,453.044,487.79,478.605,520.895C504.167,554,521.833,554,541.413,554C560.992,554,582.484,554,593.23,554L603.977,554" id="my-svg-L_B_C_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_B_C_0" data-points="W3sieCI6Mzg2LjEzMTAyNTk3MTAxMjA0LCJ5IjozNTUuMzY4OTc0MDI4OTg3OTZ9LHsieCI6NDg2LjUsInkiOjU1NH0seyJ4Ijo1MzkuNSwieSI6NTU0fSx7IngiOjYwNy45NzY1NjI1LCJ5Ijo1NTR9XQ==" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/><path d="M378.278,363.222L396.315,425.153C414.352,487.084,450.426,610.946,477.296,672.877C504.167,734.809,521.833,734.809,543.397,734.809C564.961,734.809,590.422,734.809,603.152,734.809L615.883,734.809" id="my-svg-L_B_D_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_B_D_0" data-points="W3sieCI6Mzc4LjI3ODIyNTM5MzgyMjksInkiOjM2My4yMjE3NzQ2MDYxNzcxfSx7IngiOjQ4Ni41LCJ5Ijo3MzQuODA4NTkzNzV9LHsieCI6NTM5LjUsInkiOjczNC44MDg1OTM3NX0seyJ4Ijo2MTkuODgyODEyNSwieSI6NzM0LjgwODU5Mzc1fV0=" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/><path d="M729.869,774.057L749.808,796.182C769.746,818.307,809.623,862.558,840.783,884.683C871.943,906.809,894.385,906.809,916.203,906.809C938.021,906.809,959.214,906.809,969.81,906.809L980.406,906.809" id="my-svg-L_D_E_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_D_E_0" data-points="W3sieCI6NzI5Ljg2OTAwMzI0OTIzNTQsInkiOjc3NC4wNTY3NzgwMDA3NjQ2fSx7IngiOjg0OS41LCJ5Ijo5MDYuODA4NTkzNzV9LHsieCI6OTE2LjgyODEyNSwieSI6OTA2LjgwODU5Mzc1fSx7IngiOjk4NC40MDYyNSwieSI6OTA2LjgwODU5Mzc1fV0=" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/><path d="M1132.078,878.887L1142.828,873.874C1153.578,868.861,1175.078,858.835,1191.883,853.822C1208.688,848.809,1220.797,848.809,1233.467,848.809C1246.138,848.809,1259.37,848.809,1265.986,848.809L1272.602,848.809" id="my-svg-L_E_G_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_E_G_0" data-points="W3sieCI6MTEzMi4wNzgzMDcwNTk2Mjk5LCJ5Ijo4NzguODg2OTAwODA5NjI5OX0seyJ4IjoxMTk2LjU3ODEyNSwieSI6ODQ4LjgwODU5Mzc1fSx7IngiOjEyMzIuOTA2MjUsInkiOjg0OC44MDg1OTM3NX0seyJ4IjoxMjc2LjYwMTU2MjUsInkiOjg0OC44MDg1OTM3NX1d" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/><path d="M1132.078,934.73L1142.828,939.743C1153.578,944.756,1175.078,954.782,1191.883,959.796C1208.688,964.809,1220.797,964.809,1230.352,964.809C1239.906,964.809,1246.906,964.809,1250.406,964.809L1253.906,964.809" id="my-svg-L_E_F_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_E_F_0" data-points="W3sieCI6MTEzMi4wNzgzMDcwNTk2Mjk5LCJ5Ijo5MzQuNzMwMjg2NjkwMzcwMX0seyJ4IjoxMTk2LjU3ODEyNSwieSI6OTY0LjgwODU5Mzc1fSx7IngiOjEyMzIuOTA2MjUsInkiOjk2NC44MDg1OTM3NX0seyJ4IjoxMjU3LjkwNjI1LCJ5Ijo5NjQuODA4NTkzNzV9XQ==" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/><path d="M735.659,701.35L754.632,685.927C773.606,670.503,811.553,639.656,841.748,624.232C871.943,608.809,894.385,608.809,916.161,608.809C937.938,608.809,959.047,608.809,969.602,608.809L980.156,608.809" id="my-svg-L_D_H_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_D_H_0" data-points="W3sieCI6NzM1LjY1ODk0Njg0MTYzNywieSI6NzAxLjM1MDM1MzA5MTYzN30seyJ4Ijo4NDkuNSwieSI6NjA4LjgwODU5Mzc1fSx7IngiOjkxNi44MjgxMjUsInkiOjYwOC44MDg1OTM3NX0seyJ4Ijo5ODQuMTU2MjUsInkiOjYwOC44MDg1OTM3NX1d" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/><path d="M387.498,261.998L403.998,231.998C420.498,201.998,453.499,141.999,478.833,112C504.167,82,521.833,82,534.833,82C547.833,82,556.167,82,560.333,82L564.5,82" id="my-svg-L_B_P1_0" class="edge-thickness-normal edge-pattern-dotted edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_B_P1_0" data-points="W3sieCI6Mzg3LjQ5NzU5MTM4MjUwMTg3LCJ5IjoyNjEuOTk3NTkxMzgyNTAxODd9LHsieCI6NDg2LjUsInkiOjgyfSx7IngiOjUzOS41LCJ5Ijo4Mn0seyJ4Ijo1NjQuNSwieSI6ODJ9XQ==" data-look="classic"/><path d="M400.024,274.524L414.437,261.77C428.85,249.016,457.675,223.508,480.921,210.754C504.167,198,521.833,198,541.852,198C561.87,198,584.24,198,595.424,198L606.609,198" id="my-svg-L_B_P2_0" class="edge-thickness-normal edge-pattern-dotted edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_B_P2_0" data-points="W3sieCI6NDAwLjAyNDI5MDYyMDUxOTUsInkiOjI3NC41MjQyOTA2MjA1MTk1fSx7IngiOjQ4Ni41LCJ5IjoxOTh9LHsieCI6NTM5LjUsInkiOjE5OH0seyJ4Ijo2MDYuNjA5Mzc1LCJ5IjoxOTh9XQ==" data-look="classic"/><path d="M430.217,304.717L439.597,304.264C448.978,303.811,467.739,302.906,485.953,302.453C504.167,302,521.833,302,541.395,302C560.956,302,582.411,302,593.139,302L603.867,302" id="my-svg-L_B_P3_0" class="edge-thickness-normal edge-pattern-dotted edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_B_P3_0" data-points="W3sieCI6NDMwLjIxNjcwOTYzNDg3MDIsInkiOjMwNC43MTY3MDk2MzQ4NzAyfSx7IngiOjQ4Ni41LCJ5IjozMDJ9LHsieCI6NTM5LjUsInkiOjMwMn0seyJ4Ijo2MDMuODY3MTg3NSwieSI6MzAyfV0=" data-look="classic"/><path d="M400.024,341.476L414.437,354.23C428.85,366.984,457.675,392.492,480.921,405.246C504.167,418,521.833,418,541.797,418C561.76,418,584.021,418,595.151,418L606.281,418" id="my-svg-L_B_P4_0" class="edge-thickness-normal edge-pattern-dotted edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_B_P4_0" data-points="W3sieCI6NDAwLjAyNDI5MDYyMDUxOTUsInkiOjM0MS40NzU3MDkzNzk0ODA1fSx7IngiOjQ4Ni41LCJ5Ijo0MTh9LHsieCI6NTM5LjUsInkiOjQxOH0seyJ4Ijo2MDYuMjgxMjUsInkiOjQxOH1d" data-look="classic"/><path d="M1088.348,581.809L1106.386,551.642C1124.425,521.475,1160.501,461.142,1184.594,430.975C1208.688,400.809,1220.797,400.809,1237.484,400.809C1254.172,400.809,1275.438,400.809,1286.07,400.809L1296.703,400.809" id="my-svg-L_H_F1_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_H_F1_0" data-points="W3sieCI6MTA4OC4zNDc5NTY3MzA3NjkzLCJ5Ijo1ODEuODA4NTkzNzV9LHsieCI6MTE5Ni41NzgxMjUsInkiOjQwMC44MDg1OTM3NX0seyJ4IjoxMjMyLjkwNjI1LCJ5Ijo0MDAuODA4NTkzNzV9LHsieCI6MTMwMC43MDMxMjUsInkiOjQwMC44MDg1OTM3NX1d" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/><path d="M1104.493,581.809L1119.84,568.975C1135.188,556.142,1165.883,530.475,1187.285,517.642C1208.688,504.809,1220.797,504.809,1239.626,504.809C1258.456,504.809,1284.005,504.809,1296.78,504.809L1309.555,504.809" id="my-svg-L_H_F2_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_H_F2_0" data-points="W3sieCI6MTEwNC40OTI3ODg0NjE1Mzg2LCJ5Ijo1ODEuODA4NTkzNzV9LHsieCI6MTE5Ni41NzgxMjUsInkiOjUwNC44MDg1OTM3NX0seyJ4IjoxMjMyLjkwNjI1LCJ5Ijo1MDQuODA4NTkzNzV9LHsieCI6MTMxMy41NTQ2ODc1LCJ5Ijo1MDQuODA4NTkzNzV9XQ==" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/><path d="M1160.25,608.809L1166.305,608.809C1172.359,608.809,1184.469,608.809,1196.578,608.809C1208.688,608.809,1220.797,608.809,1239.828,608.809C1258.859,608.809,1284.813,608.809,1297.789,608.809L1310.766,608.809" id="my-svg-L_H_F3_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_H_F3_0" data-points="W3sieCI6MTE2MC4yNSwieSI6NjA4LjgwODU5Mzc1fSx7IngiOjExOTYuNTc4MTI1LCJ5Ijo2MDguODA4NTkzNzV9LHsieCI6MTIzMi45MDYyNSwieSI6NjA4LjgwODU5Mzc1fSx7IngiOjEzMTQuNzY1NjI1LCJ5Ijo2MDguODA4NTkzNzV9XQ==" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/><path d="M1104.493,635.809L1119.84,648.642C1135.188,661.475,1165.883,687.142,1187.285,699.975C1208.688,712.809,1220.797,712.809,1237.07,712.809C1253.344,712.809,1273.781,712.809,1284,712.809L1294.219,712.809" id="my-svg-L_H_F4_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_H_F4_0" data-points="W3sieCI6MTEwNC40OTI3ODg0NjE1Mzg2LCJ5Ijo2MzUuODA4NTkzNzV9LHsieCI6MTE5Ni41NzgxMjUsInkiOjcxMi44MDg1OTM3NX0seyJ4IjoxMjMyLjkwNjI1LCJ5Ijo3MTIuODA4NTkzNzV9LHsieCI6MTI5OC4yMTg3NSwieSI6NzEyLjgwODU5Mzc1fV0=" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/></g><g class="edgeLabels"><g class="edgeLabel"><g class="label" data-id="L_A_B_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel" transform="translate(486.5, 554)"><g class="label" data-id="L_B_C_0" transform="translate(-28, -12)"><foreignObject width="56" height="24"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"><p>Blocked</p></span></div></foreignObject></g></g><g class="edgeLabel" transform="translate(486.5, 734.80859375)"><g class="label" data-id="L_B_D_0" transform="translate(-15.375, -12)"><foreignObject width="30.75" height="24"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"><p>Safe</p></span></div></foreignObject></g></g><g class="edgeLabel" transform="translate(916.828125, 906.80859375)"><g class="label" data-id="L_D_E_0" transform="translate(-28.6796875, -12)"><foreignObject width="57.359375" height="24"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"><p>Exceeds</p></span></div></foreignObject></g></g><g class="edgeLabel" transform="translate(1196.578125, 848.80859375)"><g class="label" data-id="L_E_G_0" transform="translate(-11.328125, -12)"><foreignObject width="22.65625" height="24"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"><p>Yes</p></span></div></foreignObject></g></g><g class="edgeLabel" transform="translate(1196.578125, 964.80859375)"><g class="label" data-id="L_E_F_0" transform="translate(-9.3984375, -12)"><foreignObject width="18.796875" height="24"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"><p>No</p></span></div></foreignObject></g></g><g class="edgeLabel" transform="translate(916.828125, 608.80859375)"><g class="label" data-id="L_D_H_0" transform="translate(-42.328125, -12)"><foreignObject width="84.65625" height="24"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"><p>Within limit</p></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_B_P1_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_B_P2_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_B_P3_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_B_P4_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_H_F1_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_H_F2_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_H_F3_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_H_F4_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g></g><g class="nodes"><g class="node default" id="my-svg-flowchart-A-0" data-look="classic" transform="translate(124.4453125, 308)"><rect class="basic label-container" style="" x="-116.4453125" y="-39" width="232.890625" height="78"/><g class="label" style="" transform="translate(-86.4453125, -24)"><rect/><foreignObject width="172.890625" height="48"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>LLM calls<br />memory, skill, or failure</p></span></div></foreignObject></g></g><g class="node default" id="my-svg-flowchart-B-1" data-look="classic" transform="translate(362.1953125, 308)"><polygon points="71.3046875,0 142.609375,-71.3046875 71.3046875,-142.609375 0,-71.3046875" class="label-container" transform="translate(-70.8046875, 71.3046875)"/><g class="label" style="" transform="translate(-44.3046875, -12)"><rect/><foreignObject width="88.609375" height="24"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>scanContent</p></span></div></foreignObject></g></g><g class="node default" id="my-svg-flowchart-C-3" data-look="classic" transform="translate(694.5, 554)"><rect class="basic label-container" style="fill:#3d0000 !important;stroke:#ff4444 !important" x="-86.5234375" y="-27" width="173.046875" height="54"/><g class="label" style="color:#fff !important" transform="translate(-56.5234375, -12)"><rect/><foreignObject width="113.046875" height="24"><div style="color: rgb(255, 255, 255) !important; display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;" xmlns="http://www.w3.org/1999/xhtml"><span style="color:#fff !important" class="nodeLabel"><p>❌ Return error</p></span></div></foreignObject></g></g><g class="node default" id="my-svg-flowchart-D-5" data-look="classic" transform="translate(694.5, 734.80859375)"><polygon points="74.6171875,0 149.234375,-74.6171875 74.6171875,-149.234375 0,-74.6171875" class="label-container" transform="translate(-74.1171875, 74.6171875)"/><g class="label" style="" transform="translate(-35.6171875, -24)"><rect/><foreignObject width="71.234375" height="48"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>Char limit<br />check</p></span></div></foreignObject></g></g><g class="node default" id="my-svg-flowchart-E-7" data-look="classic" transform="translate(1072.203125, 906.80859375)"><polygon points="87.796875,0 175.59375,-87.796875 87.796875,-175.59375 0,-87.796875" class="label-container" transform="translate(-87.296875, 87.796875)"/><g class="label" style="" transform="translate(-60.796875, -12)"><rect/><foreignObject width="121.59375" height="24"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>autoConsolidate?</p></span></div></foreignObject></g></g><g class="node default" id="my-svg-flowchart-G-9" data-look="classic" transform="translate(1371.6796875, 848.80859375)"><rect class="basic label-container" style="fill:#003d3d !important;stroke:#00cccc !important" x="-95.078125" y="-39" width="190.15625" height="78"/><g class="label" style="color:#fff !important" transform="translate(-65.078125, -24)"><rect/><foreignObject width="130.15625" height="48"><div style="color: rgb(255, 255, 255) !important; display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;" xmlns="http://www.w3.org/1999/xhtml"><span style="color:#fff !important" class="nodeLabel"><p>🔄 Merge &amp; prune<br />then retry</p></span></div></foreignObject></g></g><g class="node default" id="my-svg-flowchart-F-11" data-look="classic" transform="translate(1371.6796875, 964.80859375)"><rect class="basic label-container" style="" x="-113.7734375" y="-27" width="227.546875" height="54"/><g class="label" style="" transform="translate(-83.7734375, -12)"><rect/><foreignObject width="167.546875" height="24"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>❌ Return budget error</p></span></div></foreignObject></g></g><g class="node default" id="my-svg-flowchart-H-13" data-look="classic" transform="translate(1072.203125, 608.80859375)"><rect class="basic label-container" style="fill:#003d00 !important;stroke:#44ff44 !important" x="-88.046875" y="-27" width="176.09375" height="54"/><g class="label" style="color:#fff !important" transform="translate(-58.046875, -12)"><rect/><foreignObject width="116.09375" height="24"><div style="color: rgb(255, 255, 255) !important; display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;" xmlns="http://www.w3.org/1999/xhtml"><span style="color:#fff !important" class="nodeLabel"><p>✅ Write to disk</p></span></div></foreignObject></g></g><g class="node default" id="my-svg-flowchart-P1-14" data-look="classic" transform="translate(694.5, 82)"><rect class="basic label-container" style="" x="-130" y="-39" width="260" height="78"/><g class="label" style="" transform="translate(-100, -24)"><rect/><foreignObject width="200" height="48"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;"><span class="nodeLabel"><p>'ignore previous instructions'</p></span></div></foreignObject></g></g><g class="node default" id="my-svg-flowchart-P2-15" data-look="classic" transform="translate(694.5, 198)"><rect class="basic label-container" style="" x="-87.890625" y="-27" width="175.78125" height="54"/><g class="label" style="" transform="translate(-57.890625, -12)"><rect/><foreignObject width="115.78125" height="24"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>'curl ${API_KEY}'</p></span></div></foreignObject></g></g><g class="node default" id="my-svg-flowchart-P3-16" data-look="classic" transform="translate(694.5, 302)"><rect class="basic label-container" style="" x="-90.6328125" y="-27" width="181.265625" height="54"/><g class="label" style="" transform="translate(-60.6328125, -12)"><rect/><foreignObject width="121.265625" height="24"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>Zero-width chars</p></span></div></foreignObject></g></g><g class="node default" id="my-svg-flowchart-P4-17" data-look="classic" transform="translate(694.5, 418)"><rect class="basic label-container" style="" x="-88.21875" y="-39" width="176.4375" height="78"/><g class="label" style="" transform="translate(-58.21875, -24)"><rect/><foreignObject width="116.4375" height="48"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>Secret patterns<br />API keys, tokens</p></span></div></foreignObject></g></g><g class="node default" id="my-svg-flowchart-F1-26" data-look="classic" transform="translate(1371.6796875, 400.80859375)"><rect class="basic label-container" style="fill:#2d1b2e !important;stroke:#ff6b6b !important" x="-70.9765625" y="-27" width="141.953125" height="54"/><g class="label" style="color:#fff !important" transform="translate(-40.9765625, -12)"><rect/><foreignObject width="81.953125" height="24"><div style="color: rgb(255, 255, 255) !important; display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;" xmlns="http://www.w3.org/1999/xhtml"><span style="color:#fff !important" class="nodeLabel"><p>Corrections</p></span></div></foreignObject></g></g><g class="node default" id="my-svg-flowchart-F2-27" data-look="classic" transform="translate(1371.6796875, 504.80859375)"><rect class="basic label-container" style="fill:#2d1b2e !important;stroke:#ff6b6b !important" x="-58.125" y="-27" width="116.25" height="54"/><g class="label" style="color:#fff !important" transform="translate(-28.125, -12)"><rect/><foreignObject width="56.25" height="24"><div style="color: rgb(255, 255, 255) !important; display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;" xmlns="http://www.w3.org/1999/xhtml"><span style="color:#fff !important" class="nodeLabel"><p>Failures</p></span></div></foreignObject></g></g><g class="node default" id="my-svg-flowchart-F3-28" data-look="classic" transform="translate(1371.6796875, 608.80859375)"><rect class="basic label-container" style="fill:#2d1b2e !important;stroke:#ff6b6b !important" x="-56.9140625" y="-27" width="113.828125" height="54"/><g class="label" style="color:#fff !important" transform="translate(-26.9140625, -12)"><rect/><foreignObject width="53.828125" height="24"><div style="color: rgb(255, 255, 255) !important; display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;" xmlns="http://www.w3.org/1999/xhtml"><span style="color:#fff !important" class="nodeLabel"><p>Insights</p></span></div></foreignObject></g></g><g class="node default" id="my-svg-flowchart-F4-29" data-look="classic" transform="translate(1371.6796875, 712.80859375)"><rect class="basic label-container" style="fill:#2d1b2e !important;stroke:#ff6b6b !important" x="-73.4609375" y="-27" width="146.921875" height="54"/><g class="label" style="color:#fff !important" transform="translate(-43.4609375, -12)"><rect/><foreignObject width="86.921875" height="24"><div style="color: rgb(255, 255, 255) !important; display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;" xmlns="http://www.w3.org/1999/xhtml"><span style="color:#fff !important" class="nodeLabel"><p>Conventions</p></span></div></foreignObject></g></g></g></g></g><defs><filter id="my-svg-drop-shadow" height="130%" width="130%"><feDropShadow dx="4" dy="4" stdDeviation="0" flood-opacity="0.06" flood-color="#000000"/></filter></defs><defs><filter id="my-svg-drop-shadow-small" height="150%" width="150%"><feDropShadow dx="2" dy="2" stdDeviation="0" flood-opacity="0.06" flood-color="#000000"/></filter></defs></svg>
@@ -0,0 +1 @@
1
+ <svg id="my-svg" width="100%" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="max-width: 1702px; background-color: white;" viewBox="-50 -10 1702 2138" role="graphics-document document" aria-roledescription="sequence"><g><rect x="1449" y="2052" fill="#eaeaea" stroke="#666" width="153" height="65" name="SQL" rx="3" ry="3" class="actor actor-bottom"/><text x="1525.5" y="2084.5" dominant-baseline="central" alignment-baseline="central" class="actor actor-box" style="text-anchor: middle; font-size: 16px; font-weight: 400;"><tspan x="1525.5" dy="0">SQLite (sessions.db)</tspan></text></g><g><rect x="1209" y="2052" fill="#eaeaea" stroke="#666" width="190" height="65" name="MD" rx="3" ry="3" class="actor actor-bottom"/><text x="1304" y="2084.5" dominant-baseline="central" alignment-baseline="central" class="actor actor-box" style="text-anchor: middle; font-size: 16px; font-weight: 400;"><tspan x="1304" dy="0">Markdown (~/.pi/agent/...)</tspan></text></g><g><rect x="711" y="2052" fill="#eaeaea" stroke="#666" width="150" height="65" name="Extension" rx="3" ry="3" class="actor actor-bottom"/><text x="786" y="2084.5" dominant-baseline="central" alignment-baseline="central" class="actor actor-box" style="text-anchor: middle; font-size: 16px; font-weight: 400;"><tspan x="786" dy="0">Extension</tspan></text></g><g><rect x="286" y="2052" fill="#eaeaea" stroke="#666" width="150" height="65" name="Pi" rx="3" ry="3" class="actor actor-bottom"/><text x="361" y="2084.5" dominant-baseline="central" alignment-baseline="central" class="actor actor-box" style="text-anchor: middle; font-size: 16px; font-weight: 400;"><tspan x="361" dy="0">Pi</tspan></text></g><g><rect x="0" y="2052" fill="#eaeaea" stroke="#666" width="150" height="65" name="User" rx="3" ry="3" class="actor actor-bottom"/><text x="75" y="2084.5" dominant-baseline="central" alignment-baseline="central" class="actor actor-box" style="text-anchor: middle; font-size: 16px; font-weight: 400;"><tspan x="75" dy="0">User</tspan></text></g><g><line id="actor4" x1="1525.5" y1="65" x2="1525.5" y2="2052" class="actor-line 200" stroke-width="0.5px" stroke="#999" name="SQL" data-et="life-line" data-id="SQL"/><g id="root-4" data-et="participant" data-type="participant" data-id="SQL"><rect x="1449" y="0" fill="#eaeaea" stroke="#666" width="153" height="65" name="SQL" rx="3" ry="3" class="actor actor-top"/><text x="1525.5" y="32.5" dominant-baseline="central" alignment-baseline="central" class="actor actor-box" style="text-anchor: middle; font-size: 16px; font-weight: 400;"><tspan x="1525.5" dy="0">SQLite (sessions.db)</tspan></text></g></g><g><line id="actor3" x1="1304" y1="65" x2="1304" y2="2052" class="actor-line 200" stroke-width="0.5px" stroke="#999" name="MD" data-et="life-line" data-id="MD"/><g id="root-3" data-et="participant" data-type="participant" data-id="MD"><rect x="1209" y="0" fill="#eaeaea" stroke="#666" width="190" height="65" name="MD" rx="3" ry="3" class="actor actor-top"/><text x="1304" y="32.5" dominant-baseline="central" alignment-baseline="central" class="actor actor-box" style="text-anchor: middle; font-size: 16px; font-weight: 400;"><tspan x="1304" dy="0">Markdown (~/.pi/agent/...)</tspan></text></g></g><g><line id="actor2" x1="786" y1="65" x2="786" y2="2052" class="actor-line 200" stroke-width="0.5px" stroke="#999" name="Extension" data-et="life-line" data-id="Extension"/><g id="root-2" data-et="participant" data-type="participant" data-id="Extension"><rect x="711" y="0" fill="#eaeaea" stroke="#666" width="150" height="65" name="Extension" rx="3" ry="3" class="actor actor-top"/><text x="786" y="32.5" dominant-baseline="central" alignment-baseline="central" class="actor actor-box" style="text-anchor: middle; font-size: 16px; font-weight: 400;"><tspan x="786" dy="0">Extension</tspan></text></g></g><g><line id="actor1" x1="361" y1="65" x2="361" y2="2052" class="actor-line 200" stroke-width="0.5px" stroke="#999" name="Pi" data-et="life-line" data-id="Pi"/><g id="root-1" data-et="participant" data-type="participant" data-id="Pi"><rect x="286" y="0" fill="#eaeaea" stroke="#666" width="150" height="65" name="Pi" rx="3" ry="3" class="actor actor-top"/><text x="361" y="32.5" dominant-baseline="central" alignment-baseline="central" class="actor actor-box" style="text-anchor: middle; font-size: 16px; font-weight: 400;"><tspan x="361" dy="0">Pi</tspan></text></g></g><g><line id="actor0" x1="75" y1="65" x2="75" y2="2052" class="actor-line 200" stroke-width="0.5px" stroke="#999" name="User" data-et="life-line" data-id="User"/><g id="root-0" data-et="participant" data-type="participant" data-id="User"><rect x="0" y="0" fill="#eaeaea" stroke="#666" width="150" height="65" name="User" rx="3" ry="3" class="actor actor-top"/><text x="75" y="32.5" dominant-baseline="central" alignment-baseline="central" class="actor actor-box" style="text-anchor: middle; font-size: 16px; font-weight: 400;"><tspan x="75" dy="0">User</tspan></text></g></g><style>#my-svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#my-svg .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#my-svg .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#my-svg .error-icon{fill:#552222;}#my-svg .error-text{fill:#552222;stroke:#552222;}#my-svg .edge-thickness-normal{stroke-width:1px;}#my-svg .edge-thickness-thick{stroke-width:3.5px;}#my-svg .edge-pattern-solid{stroke-dasharray:0;}#my-svg .edge-thickness-invisible{stroke-width:0;fill:none;}#my-svg .edge-pattern-dashed{stroke-dasharray:3;}#my-svg .edge-pattern-dotted{stroke-dasharray:2;}#my-svg .marker{fill:#333333;stroke:#333333;}#my-svg .marker.cross{stroke:#333333;}#my-svg svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;}#my-svg p{margin:0;}#my-svg .actor{stroke:#9370DB;fill:#ECECFF;stroke-width:1;}#my-svg rect.actor.outer-path[data-look="neo"]{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#my-svg rect.note[data-look="neo"]{stroke:#aaaa33;fill:#fff5ad;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#my-svg text.actor&gt;tspan{fill:black;stroke:none;}#my-svg .actor-line{stroke:#9370DB;}#my-svg .innerArc{stroke-width:1.5;stroke-dasharray:none;}#my-svg .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333;}#my-svg .messageLine1{stroke-width:1.5;stroke-dasharray:2,2;stroke:#333;}#my-svg [id$="-arrowhead"] path{fill:#333;stroke:#333;}#my-svg .sequenceNumber{fill:white;}#my-svg [id$="-sequencenumber"]{fill:#333;}#my-svg [id$="-crosshead"] path{fill:#333;stroke:#333;}#my-svg .messageText{fill:#333;stroke:none;}#my-svg .labelBox{stroke:#9370DB;fill:#ECECFF;filter:none;}#my-svg .labelText,#my-svg .labelText&gt;tspan{fill:black;stroke:none;}#my-svg .loopText,#my-svg .loopText&gt;tspan{fill:black;stroke:none;}#my-svg .loopLine{stroke-width:2px;stroke-dasharray:2,2;stroke:#9370DB;fill:#9370DB;}#my-svg .note{stroke:#aaaa33;fill:#fff5ad;}#my-svg .noteText,#my-svg .noteText&gt;tspan{fill:black;stroke:none;font-weight:normal;}#my-svg .activation0{fill:#f4f4f4;stroke:#666;}#my-svg .activation1{fill:#f4f4f4;stroke:#666;}#my-svg .activation2{fill:#f4f4f4;stroke:#666;}#my-svg .actorPopupMenu{position:absolute;}#my-svg .actorPopupMenuPanel{position:absolute;fill:#ECECFF;box-shadow:0px 8px 16px 0px rgba(0,0,0,0.2);filter:drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));}#my-svg .actor-man circle,#my-svg line{fill:#ECECFF;stroke-width:2px;}#my-svg g rect.rect{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));stroke:#9370DB;}#my-svg .node .neo-node{stroke:#9370DB;}#my-svg [data-look="neo"].node rect,#my-svg [data-look="neo"].cluster rect,#my-svg [data-look="neo"].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#my-svg [data-look="neo"].node path{stroke:#9370DB;stroke-width:1px;}#my-svg [data-look="neo"].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#my-svg [data-look="neo"].node .neo-line path{stroke:#9370DB;filter:none;}#my-svg [data-look="neo"].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#my-svg [data-look="neo"].node circle .state-start{fill:#000000;}#my-svg [data-look="neo"].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#my-svg [data-look="neo"].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#my-svg :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;}</style><g/><defs><symbol id="my-svg-computer" width="24" height="24"><path transform="scale(.5)" d="M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z"/></symbol></defs><defs><symbol id="my-svg-database" fill-rule="evenodd" clip-rule="evenodd"><path transform="scale(.5)" d="M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z"/></symbol></defs><defs><symbol id="my-svg-clock" width="24" height="24"><path transform="scale(.5)" d="M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z"/></symbol></defs><defs><marker id="my-svg-arrowhead" refX="7.9" refY="5" markerUnits="userSpaceOnUse" markerWidth="12" markerHeight="12" orient="auto-start-reverse"><path d="M -1 0 L 10 5 L 0 10 z"/></marker></defs><defs><marker id="my-svg-crosshead" markerWidth="15" markerHeight="8" orient="auto" refX="4" refY="4.5"><path fill="none" stroke="#000000" stroke-width="1pt" d="M 1,2 L 6,7 M 6,2 L 1,7" style="stroke-dasharray: 0, 0;"/></marker></defs><defs><marker id="my-svg-filled-head" refX="15.5" refY="7" markerWidth="20" markerHeight="28" orient="auto"><path d="M 18,7 L9,13 L14,7 L9,1 Z"/></marker></defs><defs><marker id="my-svg-sequencenumber" refX="15" refY="15" markerWidth="60" markerHeight="40" orient="auto"><circle cx="15" cy="15" r="6"/></marker></defs><defs><marker id="my-svg-solidTopArrowHead" refX="7.9" refY="7.25" markerUnits="userSpaceOnUse" markerWidth="12" markerHeight="12" orient="auto-start-reverse"><path d="M 0 0 L 10 8 L 0 8 z"/></marker></defs><defs><marker id="my-svg-solidBottomArrowHead" refX="7.9" refY="0.75" markerUnits="userSpaceOnUse" markerWidth="12" markerHeight="12" orient="auto-start-reverse"><path d="M 0 0 L 10 0 L 0 8 z"/></marker></defs><defs><marker id="my-svg-stickTopArrowHead" refX="7.5" refY="7" markerUnits="userSpaceOnUse" markerWidth="12" markerHeight="12" orient="auto-start-reverse"><path d="M 0 0 L 7 7" stroke="black" stroke-width="1.5" fill="none"/></marker></defs><defs><marker id="my-svg-stickBottomArrowHead" refX="7.5" refY="0" markerUnits="userSpaceOnUse" markerWidth="12" markerHeight="12" orient="auto-start-reverse"><path d="M 0 7 L 7 0" stroke="black" stroke-width="1.5" fill="none"/></marker></defs><g data-et="note" data-id="i0"><rect x="336" y="75" fill="#EDF2AE" stroke="#666" width="1214.5" height="39" class="note"/><text x="943" y="80" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="noteText" dy="1em" style="font-size: 16px; font-weight: 400;"><tspan x="943">── Session Start ──</tspan></text></g><g data-et="note" data-id="i4"><rect x="336" y="286" fill="#EDF2AE" stroke="#666" width="1214.5" height="39" class="note"/><text x="943" y="291" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="noteText" dy="1em" style="font-size: 16px; font-weight: 400;"><tspan x="943">── System Prompt Context ──</tspan></text></g><g data-et="note" data-id="i7"><rect x="386" y="423" fill="#EDF2AE" stroke="#666" width="375" height="39" class="note"/><text x="574" y="428" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="noteText" dy="1em" style="font-size: 16px; font-weight: 400;"><tspan x="574">Default mode does NOT inject full Markdown memory</tspan></text></g><g data-et="control-structure" data-id="i10"><line x1="350" y1="472" x2="797" y2="472" class="loopLine"/><line x1="797" y1="472" x2="797" y2="561" class="loopLine"/><line x1="350" y1="561" x2="797" y2="561" class="loopLine"/><line x1="350" y1="472" x2="350" y2="561" class="loopLine"/><polygon points="350,472 400,472 400,485 391.6,492 350,492" class="labelBox"/><text x="375" y="485" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="labelText" style="font-size: 16px; font-weight: 400;">opt</text><text x="598.5" y="490" text-anchor="middle" class="loopText" style="font-size: 16px; font-weight: 400;"><tspan x="598.5">[memoryMode = legacy-inject]</tspan></text></g><g data-et="note" data-id="i11"><rect x="336" y="571" fill="#EDF2AE" stroke="#666" width="1214.5" height="39" class="note"/><text x="943" y="576" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="noteText" dy="1em" style="font-size: 16px; font-weight: 400;"><tspan x="943">── Agent Loop (memory add) ──</tspan></text></g><g data-et="control-structure" data-id="i21"><line x1="350" y1="826" x2="1536.5" y2="826" class="loopLine"/><line x1="1536.5" y1="826" x2="1536.5" y2="1048" class="loopLine"/><line x1="350" y1="1048" x2="1536.5" y2="1048" class="loopLine"/><line x1="350" y1="826" x2="350" y2="1048" class="loopLine"/><line x1="350" y1="964" x2="1536.5" y2="964" class="loopLine" style="stroke-dasharray: 3, 3;"/><polygon points="350,826 400,826 400,839 391.6,846 350,846" class="labelBox"/><text x="375" y="839" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="labelText" style="font-size: 16px; font-weight: 400;">alt</text><text x="968.25" y="844" text-anchor="middle" class="loopText" style="font-size: 16px; font-weight: 400;"><tspan x="968.25">[Markdown save success]</tspan></text><text x="943.25" y="982" text-anchor="middle" class="loopText" style="font-size: 16px; font-weight: 400;">[Markdown save fails (limit/validation)]</text></g><g data-et="note" data-id="i22"><rect x="336" y="1058" fill="#EDF2AE" stroke="#666" width="1214.5" height="39" class="note"/><text x="943" y="1063" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="noteText" dy="1em" style="font-size: 16px; font-weight: 400;"><tspan x="943">── User Correction ──</tspan></text></g><g data-et="note" data-id="i28"><rect x="336" y="1357" fill="#EDF2AE" stroke="#666" width="1214.5" height="39" class="note"/><text x="943" y="1362" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="noteText" dy="1em" style="font-size: 16px; font-weight: 400;"><tspan x="943">── Search + Backfill ──</tspan></text></g><g data-et="note" data-id="i35"><rect x="336" y="1670" fill="#EDF2AE" stroke="#666" width="1214.5" height="39" class="note"/><text x="943" y="1675" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="noteText" dy="1em" style="font-size: 16px; font-weight: 400;"><tspan x="943">── Background Learning ──</tspan></text></g><g data-et="note" data-id="i38"><rect x="386" y="1807" fill="#EDF2AE" stroke="#666" width="285" height="39" class="note"/><text x="529" y="1812" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="noteText" dy="1em" style="font-size: 16px; font-weight: 400;"><tspan x="529">Review can save memories/failures/skills</tspan></text></g><g data-et="note" data-id="i39"><rect x="336" y="1856" fill="#EDF2AE" stroke="#666" width="1214.5" height="39" class="note"/><text x="943" y="1861" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="noteText" dy="1em" style="font-size: 16px; font-weight: 400;"><tspan x="943">── Session End ──</tspan></text></g><g data-et="note" data-id="i42"><rect x="386" y="1993" fill="#EDF2AE" stroke="#666" width="261" height="39" class="note"/><text x="517" y="1998" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="noteText" dy="1em" style="font-size: 16px; font-weight: 400;"><tspan x="517">final chance to save durable learnings</tspan></text></g><text x="572" y="129" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="messageText" dy="1em" style="font-size: 16px; font-weight: 400;">session_start event</text><line x1="362" y1="158" x2="782" y2="158" class="messageLine0" data-et="message" data-id="i1" data-from="Pi" data-to="Extension" stroke-width="2" stroke="none" marker-end="url(#my-svg-arrowhead)" style="fill: none;"/><text x="1044" y="173" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="messageText" dy="1em" style="font-size: 16px; font-weight: 400;">loadFromDisk() — MEMORY.md + USER.md + failures.md + skills/</text><line x1="787" y1="202" x2="1300" y2="202" class="messageLine0" data-et="message" data-id="i2" data-from="Extension" data-to="MD" stroke-width="2" stroke="none" marker-end="url(#my-svg-arrowhead)" style="fill: none;"/><text x="787" y="217" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="messageText" dy="1em" style="font-size: 16px; font-weight: 400;">Load searchable memory stores</text><path d="M 787,246 C 847,236 847,276 787,266" class="messageLine1" data-et="message" data-id="i3" data-from="Extension" data-to="Extension" stroke-width="2" stroke="none" marker-end="url(#my-svg-arrowhead)" style="stroke-dasharray: 3, 3; fill: none;"/><text x="572" y="340" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="messageText" dy="1em" style="font-size: 16px; font-weight: 400;">before_agent_start event</text><line x1="362" y1="369" x2="782" y2="369" class="messageLine0" data-et="message" data-id="i5" data-from="Pi" data-to="Extension" stroke-width="2" stroke="none" marker-end="url(#my-svg-arrowhead)" style="fill: none;"/><text x="575" y="384" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="messageText" dy="1em" style="font-size: 16px; font-weight: 400;">systemPrompt + compact memory policy</text><line x1="785" y1="413" x2="365" y2="413" class="messageLine1" data-et="message" data-id="i6" data-from="Extension" data-to="Pi" stroke-width="2" stroke="none" marker-end="url(#my-svg-arrowhead)" style="stroke-dasharray: 3, 3; fill: none;"/><text x="575" y="522" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="messageText" dy="1em" style="font-size: 16px; font-weight: 400;">systemPrompt + legacy memory blocks</text><line x1="785" y1="551" x2="365" y2="551" class="messageLine1" data-et="message" data-id="i9" data-from="Extension" data-to="Pi" stroke-width="2" stroke="none" marker-end="url(#my-svg-arrowhead)" style="stroke-dasharray: 3, 3; fill: none;"/><text x="217" y="625" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="messageText" dy="1em" style="font-size: 16px; font-weight: 400;">"Remember I prefer vim"</text><line x1="76" y1="654" x2="357" y2="654" class="messageLine0" data-et="message" data-id="i12" data-from="User" data-to="Pi" stroke-width="2" stroke="none" marker-end="url(#my-svg-arrowhead)" style="fill: none;"/><text x="572" y="669" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="messageText" dy="1em" style="font-size: 16px; font-weight: 400;">tool_call (memory, add)</text><line x1="362" y1="698" x2="782" y2="698" class="messageLine0" data-et="message" data-id="i13" data-from="Pi" data-to="Extension" stroke-width="2" stroke="none" marker-end="url(#my-svg-arrowhead)" style="fill: none;"/><text x="787" y="713" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="messageText" dy="1em" style="font-size: 16px; font-weight: 400;">scanContent() security check</text><path d="M 787,742 C 847,732 847,772 787,762" class="messageLine0" data-et="message" data-id="i14" data-from="Extension" data-to="Extension" stroke-width="2" stroke="none" marker-end="url(#my-svg-arrowhead)" style="fill: none;"/><text x="1044" y="787" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="messageText" dy="1em" style="font-size: 16px; font-weight: 400;">Atomic write to USER.md</text><line x1="787" y1="816" x2="1300" y2="816" class="messageLine0" data-et="message" data-id="i15" data-from="Extension" data-to="MD" stroke-width="2" stroke="none" marker-end="url(#my-svg-arrowhead)" style="fill: none;"/><text x="1154" y="876" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="messageText" dy="1em" style="font-size: 16px; font-weight: 400;">best-effort sync to memories table</text><line x1="787" y1="905" x2="1521.5" y2="905" class="messageLine0" data-et="message" data-id="i17" data-from="Extension" data-to="SQL" stroke-width="2" stroke="none" marker-end="url(#my-svg-arrowhead)" style="fill: none;"/><text x="575" y="920" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="messageText" dy="1em" style="font-size: 16px; font-weight: 400;">success (plus warning only if sync fails)</text><line x1="785" y1="949" x2="365" y2="949" class="messageLine1" data-et="message" data-id="i18" data-from="Extension" data-to="Pi" stroke-width="2" stroke="none" marker-end="url(#my-svg-arrowhead)" style="stroke-dasharray: 3, 3; fill: none;"/><text x="575" y="1009" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="messageText" dy="1em" style="font-size: 16px; font-weight: 400;">fail (no SQLite-only fallback)</text><line x1="785" y1="1038" x2="365" y2="1038" class="messageLine1" data-et="message" data-id="i20" data-from="Extension" data-to="Pi" stroke-width="2" stroke="none" marker-end="url(#my-svg-arrowhead)" style="stroke-dasharray: 3, 3; fill: none;"/><text x="217" y="1112" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="messageText" dy="1em" style="font-size: 16px; font-weight: 400;">"No, don't use npm — use pnpm"</text><line x1="76" y1="1141" x2="357" y2="1141" class="messageLine0" data-et="message" data-id="i23" data-from="User" data-to="Pi" stroke-width="2" stroke="none" marker-end="url(#my-svg-arrowhead)" style="fill: none;"/><text x="787" y="1156" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="messageText" dy="1em" style="font-size: 16px; font-weight: 400;">isCorrection() = true</text><path d="M 787,1185 C 847,1175 847,1215 787,1205" class="messageLine0" data-et="message" data-id="i24" data-from="Extension" data-to="Extension" stroke-width="2" stroke="none" marker-end="url(#my-svg-arrowhead)" style="fill: none;"/><text x="575" y="1230" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="messageText" dy="1em" style="font-size: 16px; font-weight: 400;">pi.exec("pi -p", correctionPrompt)</text><line x1="785" y1="1259" x2="365" y2="1259" class="messageLine0" data-et="message" data-id="i25" data-from="Extension" data-to="Pi" stroke-width="2" stroke="none" marker-end="url(#my-svg-arrowhead)" style="fill: none;"/><text x="1044" y="1274" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="messageText" dy="1em" style="font-size: 16px; font-weight: 400;">Save [correction] failure memory</text><line x1="787" y1="1303" x2="1300" y2="1303" class="messageLine0" data-et="message" data-id="i26" data-from="Extension" data-to="MD" stroke-width="2" stroke="none" marker-end="url(#my-svg-arrowhead)" style="fill: none;"/><text x="1154" y="1318" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="messageText" dy="1em" style="font-size: 16px; font-weight: 400;">best-effort correction sync</text><line x1="787" y1="1347" x2="1521.5" y2="1347" class="messageLine0" data-et="message" data-id="i27" data-from="Extension" data-to="SQL" stroke-width="2" stroke="none" marker-end="url(#my-svg-arrowhead)" style="fill: none;"/><text x="572" y="1411" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="messageText" dy="1em" style="font-size: 16px; font-weight: 400;">memory_search(query)</text><line x1="362" y1="1440" x2="782" y2="1440" class="messageLine0" data-et="message" data-id="i29" data-from="Pi" data-to="Extension" stroke-width="2" stroke="none" marker-end="url(#my-svg-arrowhead)" style="fill: none;"/><text x="1154" y="1455" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="messageText" dy="1em" style="font-size: 16px; font-weight: 400;">FTS5 search memories</text><line x1="787" y1="1484" x2="1521.5" y2="1484" class="messageLine0" data-et="message" data-id="i30" data-from="Extension" data-to="SQL" stroke-width="2" stroke="none" marker-end="url(#my-svg-arrowhead)" style="fill: none;"/><text x="1157" y="1499" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="messageText" dy="1em" style="font-size: 16px; font-weight: 400;">results</text><line x1="1524.5" y1="1528" x2="790" y2="1528" class="messageLine1" data-et="message" data-id="i31" data-from="SQL" data-to="Extension" stroke-width="2" stroke="none" marker-end="url(#my-svg-arrowhead)" style="stroke-dasharray: 3, 3; fill: none;"/><text x="572" y="1543" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="messageText" dy="1em" style="font-size: 16px; font-weight: 400;">/memory-sync-markdown</text><line x1="362" y1="1572" x2="782" y2="1572" class="messageLine0" data-et="message" data-id="i32" data-from="Pi" data-to="Extension" stroke-width="2" stroke="none" marker-end="url(#my-svg-arrowhead)" style="fill: none;"/><text x="1044" y="1587" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="messageText" dy="1em" style="font-size: 16px; font-weight: 400;">scan global + project Markdown files</text><line x1="787" y1="1616" x2="1300" y2="1616" class="messageLine0" data-et="message" data-id="i33" data-from="Extension" data-to="MD" stroke-width="2" stroke="none" marker-end="url(#my-svg-arrowhead)" style="fill: none;"/><text x="1154" y="1631" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="messageText" dy="1em" style="font-size: 16px; font-weight: 400;">idempotent Markdown → SQLite import</text><line x1="787" y1="1660" x2="1521.5" y2="1660" class="messageLine0" data-et="message" data-id="i34" data-from="Extension" data-to="SQL" stroke-width="2" stroke="none" marker-end="url(#my-svg-arrowhead)" style="fill: none;"/><text x="572" y="1724" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="messageText" dy="1em" style="font-size: 16px; font-weight: 400;">turn_end (10 turns or 15 tool calls)</text><line x1="362" y1="1753" x2="782" y2="1753" class="messageLine0" data-et="message" data-id="i36" data-from="Pi" data-to="Extension" stroke-width="2" stroke="none" marker-end="url(#my-svg-arrowhead)" style="fill: none;"/><text x="575" y="1768" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="messageText" dy="1em" style="font-size: 16px; font-weight: 400;">pi.exec("pi -p", reviewPrompt)</text><line x1="785" y1="1797" x2="365" y2="1797" class="messageLine0" data-et="message" data-id="i37" data-from="Extension" data-to="Pi" stroke-width="2" stroke="none" marker-end="url(#my-svg-arrowhead)" style="fill: none;"/><text x="572" y="1910" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="messageText" dy="1em" style="font-size: 16px; font-weight: 400;">session_shutdown event</text><line x1="362" y1="1939" x2="782" y2="1939" class="messageLine0" data-et="message" data-id="i40" data-from="Pi" data-to="Extension" stroke-width="2" stroke="none" marker-end="url(#my-svg-arrowhead)" style="fill: none;"/><text x="575" y="1954" text-anchor="middle" dominant-baseline="middle" alignment-baseline="middle" class="messageText" dy="1em" style="font-size: 16px; font-weight: 400;">pi.exec("pi -p", flushPrompt)</text><line x1="785" y1="1983" x2="365" y2="1983" class="messageLine0" data-et="message" data-id="i41" data-from="Extension" data-to="Pi" stroke-width="2" stroke="none" marker-end="url(#my-svg-arrowhead)" style="fill: none;"/></svg>
@@ -0,0 +1 @@
1
+ <svg id="my-svg" width="100%" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="flowchart" style="max-width: 2729.41px; background-color: white;" viewBox="0 0 2729.40625 676" role="graphics-document document" aria-roledescription="flowchart-v2"><style>#my-svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#my-svg .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#my-svg .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#my-svg .error-icon{fill:#552222;}#my-svg .error-text{fill:#552222;stroke:#552222;}#my-svg .edge-thickness-normal{stroke-width:1px;}#my-svg .edge-thickness-thick{stroke-width:3.5px;}#my-svg .edge-pattern-solid{stroke-dasharray:0;}#my-svg .edge-thickness-invisible{stroke-width:0;fill:none;}#my-svg .edge-pattern-dashed{stroke-dasharray:3;}#my-svg .edge-pattern-dotted{stroke-dasharray:2;}#my-svg .marker{fill:#333333;stroke:#333333;}#my-svg .marker.cross{stroke:#333333;}#my-svg svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;}#my-svg p{margin:0;}#my-svg .label{font-family:"trebuchet ms",verdana,arial,sans-serif;color:#333;}#my-svg .cluster-label text{fill:#333;}#my-svg .cluster-label span{color:#333;}#my-svg .cluster-label span p{background-color:transparent;}#my-svg .label text,#my-svg span{fill:#333;color:#333;}#my-svg .node rect,#my-svg .node circle,#my-svg .node ellipse,#my-svg .node polygon,#my-svg .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#my-svg .rough-node .label text,#my-svg .node .label text,#my-svg .image-shape .label,#my-svg .icon-shape .label{text-anchor:middle;}#my-svg .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#my-svg .rough-node .label,#my-svg .node .label,#my-svg .image-shape .label,#my-svg .icon-shape .label{text-align:center;}#my-svg .node.clickable{cursor:pointer;}#my-svg .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#my-svg .arrowheadPath{fill:#333333;}#my-svg .edgePath .path{stroke:#333333;stroke-width:1px;}#my-svg .flowchart-link{stroke:#333333;fill:none;}#my-svg .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#my-svg .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#my-svg .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#my-svg .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#my-svg .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#my-svg .cluster text{fill:#333;}#my-svg .cluster span{color:#333;}#my-svg div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#my-svg .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#my-svg rect.text{fill:none;stroke-width:0;}#my-svg .icon-shape,#my-svg .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#my-svg .icon-shape p,#my-svg .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#my-svg .icon-shape .label rect,#my-svg .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#my-svg .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#my-svg .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#my-svg .node .neo-node{stroke:#9370DB;}#my-svg [data-look="neo"].node rect,#my-svg [data-look="neo"].cluster rect,#my-svg [data-look="neo"].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#my-svg [data-look="neo"].node path{stroke:#9370DB;stroke-width:1px;}#my-svg [data-look="neo"].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#my-svg [data-look="neo"].node .neo-line path{stroke:#9370DB;filter:none;}#my-svg [data-look="neo"].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#my-svg [data-look="neo"].node circle .state-start{fill:#000000;}#my-svg [data-look="neo"].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#my-svg [data-look="neo"].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#my-svg :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;}</style><g><marker id="my-svg_flowchart-v2-pointEnd" class="marker flowchart-v2" viewBox="0 0 10 10" refX="5" refY="5" markerUnits="userSpaceOnUse" markerWidth="8" markerHeight="8" orient="auto"><path d="M 0 0 L 10 5 L 0 10 z" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"/></marker><marker id="my-svg_flowchart-v2-pointStart" class="marker flowchart-v2" viewBox="0 0 10 10" refX="4.5" refY="5" markerUnits="userSpaceOnUse" markerWidth="8" markerHeight="8" orient="auto"><path d="M 0 5 L 10 10 L 10 0 z" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"/></marker><marker id="my-svg_flowchart-v2-pointEnd-margin" class="marker flowchart-v2" viewBox="0 0 11.5 14" refX="11.5" refY="7" markerUnits="userSpaceOnUse" markerWidth="10.5" markerHeight="14" orient="auto"><path d="M 0 0 L 11.5 7 L 0 14 z" class="arrowMarkerPath" style="stroke-width: 0; stroke-dasharray: 1, 0;"/></marker><marker id="my-svg_flowchart-v2-pointStart-margin" class="marker flowchart-v2" viewBox="0 0 11.5 14" refX="1" refY="7" markerUnits="userSpaceOnUse" markerWidth="11.5" markerHeight="14" orient="auto"><polygon points="0,7 11.5,14 11.5,0" class="arrowMarkerPath" style="stroke-width: 0; stroke-dasharray: 1, 0;"/></marker><marker id="my-svg_flowchart-v2-circleEnd" class="marker flowchart-v2" viewBox="0 0 10 10" refX="11" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><circle cx="5" cy="5" r="5" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"/></marker><marker id="my-svg_flowchart-v2-circleStart" class="marker flowchart-v2" viewBox="0 0 10 10" refX="-1" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><circle cx="5" cy="5" r="5" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"/></marker><marker id="my-svg_flowchart-v2-circleEnd-margin" class="marker flowchart-v2" viewBox="0 0 10 10" refY="5" refX="12.25" markerUnits="userSpaceOnUse" markerWidth="14" markerHeight="14" orient="auto"><circle cx="5" cy="5" r="5" class="arrowMarkerPath" style="stroke-width: 0; stroke-dasharray: 1, 0;"/></marker><marker id="my-svg_flowchart-v2-circleStart-margin" class="marker flowchart-v2" viewBox="0 0 10 10" refX="-2" refY="5" markerUnits="userSpaceOnUse" markerWidth="14" markerHeight="14" orient="auto"><circle cx="5" cy="5" r="5" class="arrowMarkerPath" style="stroke-width: 0; stroke-dasharray: 1, 0;"/></marker><marker id="my-svg_flowchart-v2-crossEnd" class="marker cross flowchart-v2" viewBox="0 0 11 11" refX="12" refY="5.2" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><path d="M 1,1 l 9,9 M 10,1 l -9,9" class="arrowMarkerPath" style="stroke-width: 2; stroke-dasharray: 1, 0;"/></marker><marker id="my-svg_flowchart-v2-crossStart" class="marker cross flowchart-v2" viewBox="0 0 11 11" refX="-1" refY="5.2" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto"><path d="M 1,1 l 9,9 M 10,1 l -9,9" class="arrowMarkerPath" style="stroke-width: 2; stroke-dasharray: 1, 0;"/></marker><marker id="my-svg_flowchart-v2-crossEnd-margin" class="marker cross flowchart-v2" viewBox="0 0 15 15" refX="17.7" refY="7.5" markerUnits="userSpaceOnUse" markerWidth="12" markerHeight="12" orient="auto"><path d="M 1,1 L 14,14 M 1,14 L 14,1" class="arrowMarkerPath" style="stroke-width: 2.5;"/></marker><marker id="my-svg_flowchart-v2-crossStart-margin" class="marker cross flowchart-v2" viewBox="0 0 15 15" refX="-3.5" refY="7.5" markerUnits="userSpaceOnUse" markerWidth="12" markerHeight="12" orient="auto"><path d="M 1,1 L 14,14 M 1,14 L 14,1" class="arrowMarkerPath" style="stroke-width: 2.5; stroke-dasharray: 1, 0;"/></marker><g class="root"><g class="clusters"/><g class="edgePaths"/><g class="edgeLabels"/><g class="nodes"><g class="root" transform="translate(0, 0)"><g class="clusters"><g class="cluster" id="my-svg-pi-hermes-memory/src/" data-look="classic"><rect style="" x="8" y="8" width="2713.40625" height="660"/><g class="cluster-label" transform="translate(1278.3125, 8)"><foreignObject width="172.78125" height="24"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5;"><span class="nodeLabel"><p>pi-hermes-memory/src/</p></span></div></foreignObject></g></g></g><g class="edgePaths"><path d="M1205.215,100.821L1161.802,110.85C1118.389,120.88,1031.564,140.94,988.151,165.72C944.738,190.5,944.738,220,944.738,249.5C944.738,279,944.738,308.5,1041.809,335.407C1138.88,362.315,1333.022,386.629,1430.093,398.786L1527.164,410.944" id="my-svg-L_IDX_MS_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_IDX_MS_0" data-points="W3sieCI6MTIwNS4yMTQ4NDM3NSwieSI6MTAwLjgyMDUyOTQ1NzU2NTUzfSx7IngiOjk0NC43MzgyODEyNSwieSI6MTYxfSx7IngiOjk0NC43MzgyODEyNSwieSI6MjQ5LjV9LHsieCI6OTQ0LjczODI4MTI1LCJ5IjozMzh9LHsieCI6MTUzMS4xMzI4MTI1LCJ5Ijo0MTEuNDQwNzI5MzU3MjY1NjR9XQ==" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/><path d="M1205.215,89.125L1022.237,101.104C839.259,113.083,473.303,137.042,290.326,163.771C107.348,190.5,107.348,220,107.348,249.5C107.348,279,107.348,308.5,159.91,333.603C212.473,358.707,317.598,379.414,370.161,389.767L422.724,400.121" id="my-svg-L_IDX_SSM_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_IDX_SSM_0" data-points="W3sieCI6MTIwNS4yMTQ4NDM3NSwieSI6ODkuMTI0NzA4MzI4NTk3NX0seyJ4IjoxMDcuMzQ3NjU2MjUsInkiOjE2MX0seyJ4IjoxMDcuMzQ3NjU2MjUsInkiOjI0OS41fSx7IngiOjEwNy4zNDc2NTYyNSwieSI6MzM4fSx7IngiOjQyNi42NDg0Mzc1LCJ5Ijo0MDAuODkzNTQ1NTI2NDY5MX1d" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/><path d="M1205.215,89.047L1018.904,101.039C832.592,113.031,459.97,137.016,273.659,163.758C87.348,190.5,87.348,220,87.348,249.5C87.348,279,87.348,308.5,87.348,338C87.348,367.5,87.348,397,87.348,426.5C87.348,456,87.348,485.5,93.661,506.049C99.975,526.598,112.602,538.196,118.916,543.995L125.23,549.794" id="my-svg-L_IDX_DB_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_IDX_DB_0" data-points="W3sieCI6MTIwNS4yMTQ4NDM3NSwieSI6ODkuMDQ2ODg0NTUxOTI2MzN9LHsieCI6ODcuMzQ3NjU2MjUsInkiOjE2MX0seyJ4Ijo4Ny4zNDc2NTYyNSwieSI6MjQ5LjV9LHsieCI6ODcuMzQ3NjU2MjUsInkiOjMzOH0seyJ4Ijo4Ny4zNDc2NTYyNSwieSI6NDI2LjV9LHsieCI6ODcuMzQ3NjU2MjUsInkiOjUxNX0seyJ4IjoxMjguMTc1NjI4MDYzNzI1NSwieSI6NTUyLjV9XQ==" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/><path d="M1346.496,88.971L1536.19,100.975C1725.884,112.98,2105.272,136.99,2294.966,163.745C2484.66,190.5,2484.66,220,2484.66,249.5C2484.66,279,2484.66,308.5,2489.612,330.94C2494.564,353.379,2504.468,368.758,2509.42,376.448L2514.371,384.137" id="my-svg-L_IDX_SS_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_IDX_SS_0" data-points="W3sieCI6MTM0Ni40OTYwOTM3NSwieSI6ODguOTcwNTM4NDMyMjA2NH0seyJ4IjoyNDg0LjY2MDE1NjI1LCJ5IjoxNjF9LHsieCI6MjQ4NC42NjAxNTYyNSwieSI6MjQ5LjV9LHsieCI6MjQ4NC42NjAxNTYyNSwieSI6MzM4fSx7IngiOjI1MTYuNTM3MTQyNDc4ODEzNiwieSI6Mzg3LjV9XQ==" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/><path d="M1205.215,96.293L1140.616,107.078C1076.017,117.862,946.819,139.431,882.22,157.799C817.621,176.167,817.621,191.333,817.621,198.917L817.621,206.5" id="my-svg-L_IDX_MT_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_IDX_MT_0" data-points="W3sieCI6MTIwNS4yMTQ4NDM3NSwieSI6OTYuMjkzMTA4NzM5Mzg2OTF9LHsieCI6ODE3LjYyMTA5Mzc1LCJ5IjoxNjF9LHsieCI6ODE3LjYyMTA5Mzc1LCJ5IjoyMTAuNX1d" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/><path d="M1205.215,89.788L1046.667,101.657C888.118,113.525,571.022,137.263,412.474,156.715C253.926,176.167,253.926,191.333,253.926,198.917L253.926,206.5" id="my-svg-L_IDX_MST_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_IDX_MST_0" data-points="W3sieCI6MTIwNS4yMTQ4NDM3NSwieSI6ODkuNzg4MDQyNjg4ODQ2OTN9LHsieCI6MjUzLjkyNTc4MTI1LCJ5IjoxNjF9LHsieCI6MjUzLjkyNTc4MTI1LCJ5IjoyMTAuNX1d" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/><path d="M1346.496,88.585L1555.188,100.654C1763.879,112.724,2181.262,136.862,2389.953,156.514C2598.645,176.167,2598.645,191.333,2598.645,198.917L2598.645,206.5" id="my-svg-L_IDX_ST_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_IDX_ST_0" data-points="W3sieCI6MTM0Ni40OTYwOTM3NSwieSI6ODguNTg1MzEzMzQ3MTUzNTZ9LHsieCI6MjU5OC42NDQ1MzEyNSwieSI6MTYxfSx7IngiOjI1OTguNjQ0NTMxMjUsInkiOjIxMC41fV0=" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/><path d="M1346.496,91.103L1471.133,102.752C1595.77,114.402,1845.043,137.701,1969.68,156.934C2094.316,176.167,2094.316,191.333,2094.316,198.917L2094.316,206.5" id="my-svg-L_IDX_BR_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_IDX_BR_0" data-points="W3sieCI6MTM0Ni40OTYwOTM3NSwieSI6OTEuMTAyNjQ1OTcyMzM3NTd9LHsieCI6MjA5NC4zMTY0MDYyNSwieSI6MTYxfSx7IngiOjIwOTQuMzE2NDA2MjUsInkiOjIxMC41fV0=" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/><path d="M1346.496,89.529L1513.803,101.441C1681.111,113.353,2015.725,137.176,2183.033,156.672C2350.34,176.167,2350.34,191.333,2350.34,198.917L2350.34,206.5" id="my-svg-L_IDX_AC_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_IDX_AC_0" data-points="W3sieCI6MTM0Ni40OTYwOTM3NSwieSI6ODkuNTI5Mzk2MzY3NDQzNjh9LHsieCI6MjM1MC4zMzk4NDM3NSwieSI6MTYxfSx7IngiOjIzNTAuMzM5ODQzNzUsInkiOjIxMC41fV0=" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/><path d="M1346.496,94.277L1426.845,105.397C1507.194,116.518,1667.892,138.759,1748.241,157.463C1828.59,176.167,1828.59,191.333,1828.59,198.917L1828.59,206.5" id="my-svg-L_IDX_CD_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_IDX_CD_0" data-points="W3sieCI6MTM0Ni40OTYwOTM3NSwieSI6OTQuMjc2ODYyMTkwODEyNzJ9LHsieCI6MTgyOC41ODk4NDM3NSwieSI6MTYxfSx7IngiOjE4MjguNTg5ODQzNzUsInkiOjIxMC41fV0=" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/><path d="M1205.215,113.027L1185.415,121.022C1165.616,129.018,1126.017,145.009,1106.217,160.588C1086.418,176.167,1086.418,191.333,1086.418,198.917L1086.418,206.5" id="my-svg-L_IDX_SF_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_IDX_SF_0" data-points="W3sieCI6MTIwNS4yMTQ4NDM3NSwieSI6MTEzLjAyNjYwMDEzMTk2OTY0fSx7IngiOjEwODYuNDE3OTY4NzUsInkiOjE2MX0seyJ4IjoxMDg2LjQxNzk2ODc1LCJ5IjoyMTAuNX1d" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/><path d="M1307.009,123.5L1312.002,129.75C1316.994,136,1326.98,148.5,1331.972,162.333C1336.965,176.167,1336.965,191.333,1336.965,198.917L1336.965,206.5" id="my-svg-L_IDX_IN_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_IDX_IN_0" data-points="W3sieCI6MTMwNy4wMDkyNjc3Njk2MDc3LCJ5IjoxMjMuNX0seyJ4IjoxMzM2Ljk2NDg0Mzc1LCJ5IjoxNjF9LHsieCI6MTMzNi45NjQ4NDM3NSwieSI6MjEwLjV9XQ==" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/><path d="M1346.496,102.553L1384.613,112.294C1422.73,122.035,1498.965,141.518,1537.082,158.842C1575.199,176.167,1575.199,191.333,1575.199,198.917L1575.199,206.5" id="my-svg-L_IDX_SC_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_IDX_SC_0" data-points="W3sieCI6MTM0Ni40OTYwOTM3NSwieSI6MTAyLjU1Mjg0OTk4NDM0MDc1fSx7IngiOjE1NzUuMTk5MjE4NzUsInkiOjE2MX0seyJ4IjoxNTc1LjE5OTIxODc1LCJ5IjoyMTAuNX1d" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/><path d="M1205.215,91.899L1095.263,103.416C985.311,114.933,765.408,137.966,655.456,155.067C545.504,172.167,545.504,183.333,545.504,188.917L545.504,194.5" id="my-svg-L_IDX_SM_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_IDX_SM_0" data-points="W3sieCI6MTIwNS4yMTQ4NDM3NSwieSI6OTEuODk5MTg3MDM1MzUzMjZ9LHsieCI6NTQ1LjUwMzkwNjI1LCJ5IjoxNjF9LHsieCI6NTQ1LjUwMzkwNjI1LCJ5IjoxOTguNX1d" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/><path d="M909.738,262.616L997.976,275.18C1086.214,287.744,1262.689,312.872,1370.094,333.429C1477.498,353.987,1515.832,369.974,1534.999,377.967L1554.166,385.96" id="my-svg-L_MT_MS_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_MT_MS_0" data-points="W3sieCI6OTA5LjczODI4MTI1LCJ5IjoyNjIuNjE2MzQzNTI1MTIzMzR9LHsieCI6MTQzOS4xNjQwNjI1LCJ5IjozMzh9LHsieCI6MTU1Ny44NTgzMTU2Nzc5NjYyLCJ5IjozODcuNX1d" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/><path d="M725.504,285.306L702.91,294.088C680.315,302.87,635.126,320.435,610.416,334.844C585.705,349.252,581.473,360.504,579.356,366.13L577.24,371.756" id="my-svg-L_MT_SSM_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_MT_SSM_0" data-points="W3sieCI6NzI1LjUwMzkwNjI1LCJ5IjoyODUuMzA1NzAyODE1Mzc5MDV9LHsieCI6NTg5LjkzNzUsInkiOjMzOH0seyJ4Ijo1NzUuODMxOTY1MDQyMzcyOSwieSI6Mzc1LjV9XQ==" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/><path d="M365.504,277.237L406.243,287.364C446.982,297.491,528.46,317.746,565.779,333.552C603.099,349.358,596.26,360.716,592.84,366.394L589.421,372.073" id="my-svg-L_MST_SSM_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_MST_SSM_0" data-points="W3sieCI6MzY1LjUwMzkwNjI1LCJ5IjoyNzcuMjM2OTA3MzYxMjgzMzN9LHsieCI6NjA5LjkzNzUsInkiOjMzOH0seyJ4Ijo1ODcuMzU3Mzg4NzcxMTg2NSwieSI6Mzc1LjV9XQ==" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/><path d="M672.412,300.5L687.964,306.75C703.517,313,734.622,325.5,736.023,337.74C737.424,349.98,709.121,361.961,694.969,367.951L680.818,373.941" id="my-svg-L_SM_SSM_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_SM_SSM_0" data-points="W3sieCI6NjcyLjQxMTg3NzY0ODMwNTEsInkiOjMwMC41fSx7IngiOjc2NS43MjY1NjI1LCJ5IjozMzh9LHsieCI6Njc3LjEzNDEzNjY1MjU0MjMsInkiOjM3NS41fV0=" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/><path d="M2598.645,288.5L2598.645,296.75C2598.645,305,2598.645,321.5,2593.693,337.44C2588.741,353.379,2578.837,368.758,2573.885,376.448L2568.933,384.137" id="my-svg-L_ST_SS_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_ST_SS_0" data-points="W3sieCI6MjU5OC42NDQ1MzEyNSwieSI6Mjg4LjV9LHsieCI6MjU5OC42NDQ1MzEyNSwieSI6MzM4fSx7IngiOjI1NjYuNzY3NTQ1MDIxMTg2NCwieSI6Mzg3LjV9XQ==" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/><path d="M1651.375,465.5L1651.375,473.75C1651.375,482,1651.375,498.5,1750.473,517.656C1849.572,536.813,2047.769,558.625,2146.867,569.531L2245.965,580.438" id="my-svg-L_MS_CS_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_MS_CS_0" data-points="W3sieCI6MTY1MS4zNzUsInkiOjQ2NS41fSx7IngiOjE2NTEuMzc1LCJ5Ijo1MTV9LHsieCI6MjI0OS45NDE0MDYyNSwieSI6NTgwLjg3NTM3MDE5NDQ5NjF9XQ==" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/><path d="M2541.652,465.5L2541.652,473.75C2541.652,482,2541.652,498.5,2525.834,512.95C2510.016,527.4,2478.38,539.8,2462.562,546.001L2446.744,552.201" id="my-svg-L_SS_CS_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_SS_CS_0" data-points="W3sieCI6MjU0MS42NTIzNDM3NSwieSI6NDY1LjV9LHsieCI6MjU0MS42NTIzNDM3NSwieSI6NTE1fSx7IngiOjI0NDMuMDE5NTMxMjUsInkiOjU1My42NjAzMzU0NDE1MTc5fV0=" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/><path d="M2055.229,288.5L2046.96,296.75C2038.691,305,2022.154,321.5,1975.533,339.332C1928.911,357.163,1852.204,376.327,1813.851,385.909L1775.498,395.49" id="my-svg-L_BR_MS_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_BR_MS_0" data-points="W3sieCI6MjA1NS4yMjg2MTQ5MzY0NDEsInkiOjI4OC41fSx7IngiOjIwMDUuNjE3MTg3NSwieSI6MzM4fSx7IngiOjE3NzEuNjE3MTg3NSwieSI6Mzk2LjQ2MDAwNDg1MTkwNjZ9XQ==" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/><path d="M2259.247,288.5L2239.977,296.75C2220.708,305,2182.168,321.5,2101.553,340.779C2020.937,360.058,1898.246,382.116,1836.9,393.145L1775.554,404.174" id="my-svg-L_AC_MS_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_AC_MS_0" data-points="W3sieCI6MjI1OS4yNDY4ODgyNDE1MjU1LCJ5IjoyODguNX0seyJ4IjoyMTQzLjYyODkwNjI1LCJ5IjozMzh9LHsieCI6MTc3MS42MTcxODc1LCJ5Ijo0MDQuODgyMjI2MjA3NTc1Mn1d" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/><path d="M1937.613,278.298L1975.283,288.249C2012.952,298.199,2088.29,318.099,2061.281,339.224C2034.272,360.348,1904.915,382.697,1840.237,393.871L1775.559,405.045" id="my-svg-L_CD_MS_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_CD_MS_0" data-points="W3sieCI6MTkzNy42MTMyODEyNSwieSI6Mjc4LjI5ODM1NjA2ODU1NTQ1fSx7IngiOjIxNjMuNjI4OTA2MjUsInkiOjMzOH0seyJ4IjoxNzcxLjYxNzE4NzUsInkiOjQwNS43MjYyNTE5MzQ5OTkyNX1d" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/><path d="M1719.566,259.811L1581.779,272.843C1443.992,285.874,1168.418,311.937,996.91,333.845C825.401,355.754,757.959,373.507,724.238,382.384L690.517,391.261" id="my-svg-L_CD_SSM_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_CD_SSM_0" data-points="W3sieCI6MTcxOS41NjY0MDYyNSwieSI6MjU5LjgxMTEwMjg1NDkyNDR9LHsieCI6ODkyLjg0Mzc1LCJ5IjozMzh9LHsieCI6Njg2LjY0ODQzNzUsInkiOjM5Mi4yNzg4MjA5MDQ4ODY5N31d" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/><path d="M556.648,477.5L556.648,483.75C556.648,490,556.648,502.5,510.25,517.945C463.851,533.391,371.053,551.781,324.655,560.977L278.256,570.172" id="my-svg-L_SSM_DB_0" class="edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link" style=";" data-edge="true" data-et="edge" data-id="L_SSM_DB_0" data-points="W3sieCI6NTU2LjY0ODQzNzUsInkiOjQ3Ny41fSx7IngiOjU1Ni42NDg0Mzc1LCJ5Ijo1MTV9LHsieCI6Mjc0LjMzMjAzMTI1LCJ5Ijo1NzAuOTQ5NjA5ODkyODM0NH1d" data-look="classic" marker-end="url(#my-svg_flowchart-v2-pointEnd)"/></g><g class="edgeLabels"><g class="edgeLabel"><g class="label" data-id="L_IDX_MS_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_IDX_SSM_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_IDX_DB_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_IDX_SS_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_IDX_MT_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_IDX_MST_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_IDX_ST_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_IDX_BR_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_IDX_AC_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_IDX_CD_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_IDX_SF_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_IDX_IN_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_IDX_SC_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_IDX_SM_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_MT_MS_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_MT_SSM_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_MST_SSM_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_SM_SSM_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_ST_SS_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_MS_CS_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_SS_CS_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_BR_MS_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_AC_MS_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_CD_MS_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_CD_SSM_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g><g class="edgeLabel"><g class="label" data-id="L_SSM_DB_0" transform="translate(0, 0)"><foreignObject width="0" height="0"><div xmlns="http://www.w3.org/1999/xhtml" class="labelBkg" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="edgeLabel"></span></div></foreignObject></g></g></g><g class="nodes"><g class="node default" id="my-svg-flowchart-IDX-0" data-look="classic" transform="translate(1275.85546875, 84.5)"><rect class="basic label-container" style="fill:#e94560 !important;stroke:#fff !important" x="-70.640625" y="-39" width="141.28125" height="78"/><g class="label" style="color:#fff !important" transform="translate(-40.640625, -24)"><rect/><foreignObject width="81.28125" height="48"><div style="color: rgb(255, 255, 255) !important; display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;" xmlns="http://www.w3.org/1999/xhtml"><span style="color:#fff !important" class="nodeLabel"><p>index.ts<br /><i>Entry point</i></p></span></div></foreignObject></g></g><g class="node default" id="my-svg-flowchart-MS-1" data-look="classic" transform="translate(1651.375, 426.5)"><rect class="basic label-container" style="fill:#0f3460 !important;stroke:#fff !important" x="-120.2421875" y="-39" width="240.484375" height="78"/><g class="label" style="color:#fff !important" transform="translate(-90.2421875, -24)"><rect/><foreignObject width="180.484375" height="48"><div style="color: rgb(255, 255, 255) !important; display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;" xmlns="http://www.w3.org/1999/xhtml"><span style="color:#fff !important" class="nodeLabel"><p>memory-store.ts<br /><i>Markdown memory CRUD</i></p></span></div></foreignObject></g></g><g class="node default" id="my-svg-flowchart-SSM-2" data-look="classic" transform="translate(556.6484375, 426.5)"><rect class="basic label-container" style="fill:#1282a2 !important;stroke:#fff !important" x="-130" y="-51" width="260" height="102"/><g class="label" style="color:#fff !important" transform="translate(-100, -36)"><rect/><foreignObject width="200" height="72"><div style="color: rgb(255, 255, 255) !important; display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;" xmlns="http://www.w3.org/1999/xhtml"><span style="color:#fff !important" class="nodeLabel"><p>sqlite-memory-store.ts<br /><i>Search mirror + backfill sync</i></p></span></div></foreignObject></g></g><g class="node default" id="my-svg-flowchart-DB-3" data-look="classic" transform="translate(170.63671875, 591.5)"><rect class="basic label-container" style="fill:#1b4332 !important;stroke:#fff !important" x="-103.6953125" y="-39" width="207.390625" height="78"/><g class="label" style="color:#fff !important" transform="translate(-73.6953125, -24)"><rect/><foreignObject width="147.390625" height="48"><div style="color: rgb(255, 255, 255) !important; display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;" xmlns="http://www.w3.org/1999/xhtml"><span style="color:#fff !important" class="nodeLabel"><p>db.ts<br /><i>sessions.db manager</i></p></span></div></foreignObject></g></g><g class="node default" id="my-svg-flowchart-SS-4" data-look="classic" transform="translate(2541.65234375, 426.5)"><rect class="basic label-container" style="fill:#0f3460 !important;stroke:#fff !important" x="-74.734375" y="-39" width="149.46875" height="78"/><g class="label" style="color:#fff !important" transform="translate(-44.734375, -24)"><rect/><foreignObject width="89.46875" height="48"><div style="color: rgb(255, 255, 255) !important; display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;" xmlns="http://www.w3.org/1999/xhtml"><span style="color:#fff !important" class="nodeLabel"><p>skill-store.ts<br /><i>Skill CRUD</i></p></span></div></foreignObject></g></g><g class="node default" id="my-svg-flowchart-MT-5" data-look="classic" transform="translate(817.62109375, 249.5)"><rect class="basic label-container" style="" x="-92.1171875" y="-39" width="184.234375" height="78"/><g class="label" style="" transform="translate(-62.1171875, -24)"><rect/><foreignObject width="124.234375" height="48"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>memory-tool.ts<br /><i>Memory LLM tool</i></p></span></div></foreignObject></g></g><g class="node default" id="my-svg-flowchart-MST-6" data-look="classic" transform="translate(253.92578125, 249.5)"><rect class="basic label-container" style="" x="-111.578125" y="-39" width="223.15625" height="78"/><g class="label" style="" transform="translate(-81.578125, -24)"><rect/><foreignObject width="163.15625" height="48"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>memory-search-tool.ts<br /><i>Search SQLite memory</i></p></span></div></foreignObject></g></g><g class="node default" id="my-svg-flowchart-ST-7" data-look="classic" transform="translate(2598.64453125, 249.5)"><rect class="basic label-container" style="" x="-78.984375" y="-39" width="157.96875" height="78"/><g class="label" style="" transform="translate(-48.984375, -24)"><rect/><foreignObject width="97.96875" height="48"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>skill-tool.ts<br /><i>Skill LLM tool</i></p></span></div></foreignObject></g></g><g class="node default" id="my-svg-flowchart-BR-9" data-look="classic" transform="translate(2094.31640625, 249.5)"><rect class="basic label-container" style="" x="-106.703125" y="-39" width="213.40625" height="78"/><g class="label" style="" transform="translate(-76.703125, -24)"><rect/><foreignObject width="153.40625" height="48"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>background-review.ts<br /><i>Learning loop</i></p></span></div></foreignObject></g></g><g class="node default" id="my-svg-flowchart-AC-10" data-look="classic" transform="translate(2350.33984375, 249.5)"><rect class="basic label-container" style="" x="-99.3203125" y="-39" width="198.640625" height="78"/><g class="label" style="" transform="translate(-69.3203125, -24)"><rect/><foreignObject width="138.640625" height="48"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>auto-consolidate.ts<br /><i>Memory merge</i></p></span></div></foreignObject></g></g><g class="node default" id="my-svg-flowchart-CD-11" data-look="classic" transform="translate(1828.58984375, 249.5)"><rect class="basic label-container" style="" x="-109.0234375" y="-39" width="218.046875" height="78"/><g class="label" style="" transform="translate(-79.0234375, -24)"><rect/><foreignObject width="158.046875" height="48"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>correction-detector.ts<br /><i>Instant save</i></p></span></div></foreignObject></g></g><g class="node default" id="my-svg-flowchart-SF-12" data-look="classic" transform="translate(1086.41796875, 249.5)"><rect class="basic label-container" style="" x="-106.6796875" y="-39" width="213.359375" height="78"/><g class="label" style="" transform="translate(-76.6796875, -24)"><rect/><foreignObject width="153.359375" height="48"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>session-flush.ts<br /><i>Pre-compaction flush</i></p></span></div></foreignObject></g></g><g class="node default" id="my-svg-flowchart-IN-13" data-look="classic" transform="translate(1336.96484375, 249.5)"><rect class="basic label-container" style="" x="-93.8671875" y="-39" width="187.734375" height="78"/><g class="label" style="" transform="translate(-63.8671875, -24)"><rect/><foreignObject width="127.734375" height="48"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>insights.ts<br /><i>/memory-insights</i></p></span></div></foreignObject></g></g><g class="node default" id="my-svg-flowchart-SC-14" data-look="classic" transform="translate(1575.19921875, 249.5)"><rect class="basic label-container" style="" x="-94.3671875" y="-39" width="188.734375" height="78"/><g class="label" style="" transform="translate(-64.3671875, -24)"><rect/><foreignObject width="128.734375" height="48"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;"><span class="nodeLabel"><p>skills-command.ts<br /><i>/memory-skills</i></p></span></div></foreignObject></g></g><g class="node default" id="my-svg-flowchart-SM-15" data-look="classic" transform="translate(545.50390625, 249.5)"><rect class="basic label-container" style="" x="-130" y="-51" width="260" height="102"/><g class="label" style="" transform="translate(-100, -36)"><rect/><foreignObject width="200" height="72"><div xmlns="http://www.w3.org/1999/xhtml" style="display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;"><span class="nodeLabel"><p>sync-markdown-memories.ts<br /><i>/memory-sync-markdown</i></p></span></div></foreignObject></g></g><g class="node default" id="my-svg-flowchart-CS-8" data-look="classic" transform="translate(2346.48046875, 591.5)"><rect class="basic label-container" style="fill:#ff6600 !important;stroke:#fff !important" x="-96.5390625" y="-39" width="193.078125" height="78"/><g class="label" style="color:#fff !important" transform="translate(-66.5390625, -24)"><rect/><foreignObject width="133.078125" height="48"><div style="color: rgb(255, 255, 255) !important; display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;" xmlns="http://www.w3.org/1999/xhtml"><span style="color:#fff !important" class="nodeLabel"><p>content-scanner.ts<br /><i>Security</i></p></span></div></foreignObject></g></g></g></g></g></g></g><defs><filter id="my-svg-drop-shadow" height="130%" width="130%"><feDropShadow dx="4" dy="4" stdDeviation="0" flood-opacity="0.06" flood-color="#000000"/></filter></defs><defs><filter id="my-svg-drop-shadow-small" height="150%" width="150%"><feDropShadow dx="2" dy="2" stdDeviation="0" flood-opacity="0.06" flood-color="#000000"/></filter></defs></svg>
@@ -0,0 +1,49 @@
1
+ graph TB
2
+ subgraph "Core Persistent Storage (Markdown)"
3
+ MEM["MEMORY.md<br/><i>Agent's notes</i>"]
4
+ USR["USER.md<br/><i>User profile</i>"]
5
+ FAIL["failures.md<br/><i>Failure memory</i><br/>corrections, insights, failures"]
6
+ SKL["skills/<br/><i>Procedural memory</i><br/>debug-ts.md<br/>deploy-checklist.md"]
7
+ end
8
+
9
+ subgraph "Search Store (SQLite sessions.db)"
10
+ SQM["memories table + FTS5<br/><i>search mirror/store</i>"]
11
+ SQS["sessions/messages + FTS5<br/><i>session search</i>"]
12
+ end
13
+
14
+ subgraph "System Prompt (default policy-only)"
15
+ POLICY["Memory policy<br/><i>when to search + safety rules</i>"]
16
+ LEGACY["Legacy full blocks<br/><i>only with memoryMode=legacy-inject</i>"]
17
+ end
18
+
19
+ subgraph "On Demand"
20
+ MSEARCH["memory_search<br/><i>query SQLite memories</i>"]
21
+ SSEARCH["session_search<br/><i>query indexed sessions</i>"]
22
+ SKILLTOOL["skill tool<br/><i>list/view/create/patch/edit/delete</i>"]
23
+ BACKFILL["/memory-sync-markdown<br/><i>idempotent Markdown → SQLite sync</i>"]
24
+ FULL["Full skill content<br/>Loaded when needed"]
25
+ end
26
+
27
+ POLICY --> MSEARCH
28
+ POLICY --> SSEARCH
29
+ POLICY --> SKILLTOOL
30
+ MEM -.-> LEGACY
31
+ USR -.-> LEGACY
32
+ FAIL -.-> LEGACY
33
+ SKL -.-> LEGACY
34
+ SKILLTOOL -.->|"view"| FULL
35
+
36
+ MEM -.->|"successful saves mirrored"| SQM
37
+ USR -.->|"successful saves mirrored"| SQM
38
+ FAIL -.->|"successful saves mirrored"| SQM
39
+ BACKFILL --> SQM
40
+ MSEARCH --> SQM
41
+ SSEARCH --> SQS
42
+
43
+ style POLICY fill:#1a1a2e,stroke:#e94560,color:#fff
44
+ style LEGACY fill:#2d1b2e,stroke:#ff6b6b,color:#fff
45
+ style SQM fill:#0b525b,stroke:#fff,color:#fff
46
+ style SQS fill:#1b4332,stroke:#fff,color:#fff
47
+ style BACKFILL fill:#3a0ca3,stroke:#fff,color:#fff
48
+ style FULL fill:#0a1128,stroke:#1282a2,color:#fff
49
+ style SKILLTOOL fill:#16213e,stroke:#0f3460,color:#fff
@@ -0,0 +1,40 @@
1
+ flowchart LR
2
+ A["LLM calls<br/>memory, skill, or failure"] --> B{scanContent}
3
+ B -->|Blocked| C["❌ Return error"]
4
+ B -->|Safe| D{Char limit<br/>check}
5
+ D -->|Exceeds| E{autoConsolidate?}
6
+ E -->|Yes| G["🔄 Merge & prune<br/>then retry"]
7
+ E -->|No| F["❌ Return budget error"]
8
+ D -->|Within limit| H["✅ Write to disk"]
9
+
10
+ subgraph "Blocked Patterns"
11
+ P1["'ignore previous instructions'"]
12
+ P2["'curl ${API_KEY}'"]
13
+ P3["Zero-width chars"]
14
+ P4["Secret patterns<br/>API keys, tokens"]
15
+ end
16
+
17
+ B -.- P1
18
+ B -.- P2
19
+ B -.- P3
20
+ B -.- P4
21
+
22
+ subgraph "Failure Memory"
23
+ F1["Corrections"]
24
+ F2["Failures"]
25
+ F3["Insights"]
26
+ F4["Conventions"]
27
+ end
28
+
29
+ H --> F1
30
+ H --> F2
31
+ H --> F3
32
+ H --> F4
33
+
34
+ style C fill:#3d0000,stroke:#ff4444,color:#fff
35
+ style G fill:#003d3d,stroke:#00cccc,color:#fff
36
+ style H fill:#003d00,stroke:#44ff44,color:#fff
37
+ style F1 fill:#2d1b2e,stroke:#ff6b6b,color:#fff
38
+ style F2 fill:#2d1b2e,stroke:#ff6b6b,color:#fff
39
+ style F3 fill:#2d1b2e,stroke:#ff6b6b,color:#fff
40
+ style F4 fill:#2d1b2e,stroke:#ff6b6b,color:#fff
@@ -0,0 +1,56 @@
1
+ sequenceDiagram
2
+ participant User
3
+ participant Pi
4
+ participant Extension
5
+ participant MD as Markdown (~/.pi/agent/...)
6
+ participant SQL as SQLite (sessions.db)
7
+
8
+ Note over Pi,SQL: ── Session Start ──
9
+ Pi->>Extension: session_start event
10
+ Extension->>MD: loadFromDisk() — MEMORY.md + USER.md + failures.md + skills/
11
+ Extension-->>Extension: Load searchable memory stores
12
+
13
+ Note over Pi,SQL: ── System Prompt Context ──
14
+ Pi->>Extension: before_agent_start event
15
+ Extension-->>Pi: systemPrompt + compact memory policy
16
+ Note right of Pi: Default mode does NOT inject full Markdown memory
17
+ opt memoryMode = legacy-inject
18
+ Extension-->>Pi: systemPrompt + legacy memory blocks
19
+ end
20
+
21
+ Note over Pi,SQL: ── Agent Loop (memory add) ──
22
+ User->>Pi: "Remember I prefer vim"
23
+ Pi->>Extension: tool_call (memory, add)
24
+ Extension->>Extension: scanContent() security check
25
+ Extension->>MD: Atomic write to USER.md
26
+ alt Markdown save success
27
+ Extension->>SQL: best-effort sync to memories table
28
+ Extension-->>Pi: success (plus warning only if sync fails)
29
+ else Markdown save fails (limit/validation)
30
+ Extension-->>Pi: fail (no SQLite-only fallback)
31
+ end
32
+
33
+ Note over Pi,SQL: ── User Correction ──
34
+ User->>Pi: "No, don't use npm — use pnpm"
35
+ Extension->>Extension: isCorrection() = true
36
+ Extension->>Pi: pi.exec("pi -p", correctionPrompt)
37
+ Extension->>MD: Save [correction] failure memory
38
+ Extension->>SQL: best-effort correction sync
39
+
40
+ Note over Pi,SQL: ── Search + Backfill ──
41
+ Pi->>Extension: memory_search(query)
42
+ Extension->>SQL: FTS5 search memories
43
+ SQL-->>Extension: results
44
+ Pi->>Extension: /memory-sync-markdown
45
+ Extension->>MD: scan global + project Markdown files
46
+ Extension->>SQL: idempotent Markdown → SQLite import
47
+
48
+ Note over Pi,SQL: ── Background Learning ──
49
+ Pi->>Extension: turn_end (10 turns or 15 tool calls)
50
+ Extension->>Pi: pi.exec("pi -p", reviewPrompt)
51
+ Note right of Pi: Review can save memories/failures/skills
52
+
53
+ Note over Pi,SQL: ── Session End ──
54
+ Pi->>Extension: session_shutdown event
55
+ Extension->>Pi: pi.exec("pi -p", flushPrompt)
56
+ Note right of Pi: final chance to save durable learnings
@@ -0,0 +1,54 @@
1
+ graph LR
2
+ subgraph "pi-hermes-memory/src/"
3
+ IDX["index.ts<br/><i>Entry point</i>"]
4
+ MS["memory-store.ts<br/><i>Markdown memory CRUD</i>"]
5
+ SSM["sqlite-memory-store.ts<br/><i>Search mirror + backfill sync</i>"]
6
+ DB["db.ts<br/><i>sessions.db manager</i>"]
7
+ SS["skill-store.ts<br/><i>Skill CRUD</i>"]
8
+ MT["memory-tool.ts<br/><i>Memory LLM tool</i>"]
9
+ MST["memory-search-tool.ts<br/><i>Search SQLite memory</i>"]
10
+ ST["skill-tool.ts<br/><i>Skill LLM tool</i>"]
11
+ CS["content-scanner.ts<br/><i>Security</i>"]
12
+ BR["background-review.ts<br/><i>Learning loop</i>"]
13
+ AC["auto-consolidate.ts<br/><i>Memory merge</i>"]
14
+ CD["correction-detector.ts<br/><i>Instant save</i>"]
15
+ SF["session-flush.ts<br/><i>Pre-compaction flush</i>"]
16
+ IN["insights.ts<br/><i>/memory-insights</i>"]
17
+ SC["skills-command.ts<br/><i>/memory-skills</i>"]
18
+ SM["sync-markdown-memories.ts<br/><i>/memory-sync-markdown</i>"]
19
+ end
20
+
21
+ IDX --> MS
22
+ IDX --> SSM
23
+ IDX --> DB
24
+ IDX --> SS
25
+ IDX --> MT
26
+ IDX --> MST
27
+ IDX --> ST
28
+ IDX --> BR
29
+ IDX --> AC
30
+ IDX --> CD
31
+ IDX --> SF
32
+ IDX --> IN
33
+ IDX --> SC
34
+ IDX --> SM
35
+
36
+ MT --> MS
37
+ MT --> SSM
38
+ MST --> SSM
39
+ SM --> SSM
40
+ ST --> SS
41
+ MS --> CS
42
+ SS --> CS
43
+ BR --> MS
44
+ AC --> MS
45
+ CD --> MS
46
+ CD --> SSM
47
+ SSM --> DB
48
+
49
+ style IDX fill:#e94560,stroke:#fff,color:#fff
50
+ style MS fill:#0f3460,stroke:#fff,color:#fff
51
+ style SSM fill:#1282a2,stroke:#fff,color:#fff
52
+ style DB fill:#1b4332,stroke:#fff,color:#fff
53
+ style SS fill:#0f3460,stroke:#fff,color:#fff
54
+ style CS fill:#ff6600,stroke:#fff,color:#fff