@pencil-agent/nano-pencil 1.11.37 → 1.11.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (547) hide show
  1. package/README.md +267 -267
  2. package/dist/builtin-extensions.js +35 -11
  3. package/dist/cli/args.js +140 -140
  4. package/dist/core/config/settings-manager.d.ts +6 -0
  5. package/dist/core/config/settings-manager.js +11 -0
  6. package/dist/core/export-html/CLAUDE.md +11 -11
  7. package/dist/core/export-html/template.css +971 -971
  8. package/dist/core/export-html/template.html +54 -54
  9. package/dist/core/export-html/template.js +1586 -1586
  10. package/dist/core/export-html/vendor/highlight.min.js +1212 -1212
  11. package/dist/core/export-html/vendor/marked.min.js +6 -6
  12. package/dist/core/i18n/messages.d.ts +4 -0
  13. package/dist/core/i18n/messages.js +17 -0
  14. package/dist/core/i18n/messages.zh.d.ts +4 -0
  15. package/dist/core/i18n/messages.zh.js +17 -0
  16. package/dist/core/mcp/figma-auth.js +20 -20
  17. package/dist/core/mcp/mcp-guidance.js +44 -44
  18. package/dist/core/messages.js +7 -7
  19. package/dist/core/package-manager.js +3 -1
  20. package/dist/core/prompt/system-prompt.js +103 -103
  21. package/dist/core/session/compaction/branch-summarization.js +30 -30
  22. package/dist/core/session/compaction/compaction.js +81 -81
  23. package/dist/core/session/compaction/utils.js +2 -2
  24. package/dist/core/sub-agent/index.d.ts +2 -0
  25. package/dist/core/sub-agent/index.js +1 -0
  26. package/dist/core/sub-agent/subprocess-backend.d.ts +36 -0
  27. package/dist/core/sub-agent/subprocess-backend.js +105 -0
  28. package/dist/core/sub-agent/subprocess-worker.d.ts +13 -0
  29. package/dist/core/sub-agent/subprocess-worker.js +41 -0
  30. package/dist/core/workspace/worktree-manager.d.ts +24 -2
  31. package/dist/core/workspace/worktree-manager.js +268 -25
  32. package/dist/extensions/defaults/CLAUDE.md +46 -29
  33. package/dist/extensions/defaults/grub/README.md +25 -0
  34. package/dist/extensions/defaults/grub/grub-controller.d.ts +32 -0
  35. package/dist/extensions/defaults/{loop/loop-controller.js → grub/grub-controller.js} +19 -19
  36. package/dist/extensions/defaults/grub/grub-parser.d.ts +10 -0
  37. package/dist/extensions/defaults/{loop/loop-parser.js → grub/grub-parser.js} +6 -6
  38. package/dist/extensions/defaults/grub/grub-types.d.ts +54 -0
  39. package/dist/extensions/defaults/grub/grub-types.js +2 -0
  40. package/dist/extensions/defaults/grub/index.d.ts +9 -0
  41. package/dist/extensions/defaults/grub/index.js +310 -0
  42. package/dist/extensions/defaults/interview/index.js +30 -30
  43. package/dist/extensions/defaults/link-world/internet-search/internet-search.md +65 -65
  44. package/dist/extensions/defaults/link-world/linkworld.md +313 -313
  45. package/dist/extensions/defaults/loop/README.md +49 -26
  46. package/dist/extensions/defaults/loop/index.d.ts +4 -4
  47. package/dist/extensions/defaults/loop/index.js +165 -346
  48. package/dist/extensions/defaults/loop/scheduler-controller.d.ts +13 -7
  49. package/dist/extensions/defaults/loop/scheduler-controller.js +84 -19
  50. package/dist/extensions/defaults/loop/scheduler-parser.d.ts +5 -5
  51. package/dist/extensions/defaults/loop/scheduler-parser.js +126 -49
  52. package/dist/extensions/defaults/loop/scheduler-types.d.ts +34 -9
  53. package/dist/extensions/defaults/loop/scheduler-types.js +3 -3
  54. package/dist/extensions/defaults/mcp/figma-design.md +68 -68
  55. package/dist/extensions/defaults/mcp/mcp-management.md +85 -85
  56. package/dist/extensions/defaults/presence/index.d.ts +3 -3
  57. package/dist/extensions/defaults/presence/index.js +479 -30
  58. package/dist/extensions/defaults/sal/README.md +65 -0
  59. package/dist/extensions/defaults/sal/anchors.d.ts +47 -0
  60. package/dist/extensions/defaults/sal/anchors.js +237 -0
  61. package/dist/extensions/defaults/sal/index.d.ts +11 -0
  62. package/dist/extensions/defaults/sal/index.js +292 -0
  63. package/dist/extensions/defaults/sal/terrain.d.ts +64 -0
  64. package/dist/extensions/defaults/sal/terrain.js +327 -0
  65. package/dist/extensions/defaults/sal/weights.d.ts +29 -0
  66. package/dist/extensions/defaults/sal/weights.js +49 -0
  67. package/dist/extensions/defaults/security-audit/README.md +289 -289
  68. package/dist/extensions/defaults/security-audit/engine/interceptor.js +26 -26
  69. package/dist/extensions/defaults/security-audit/engine/logger.js +63 -63
  70. package/dist/extensions/defaults/subagent/index.js +138 -66
  71. package/dist/extensions/defaults/subagent/subagent-parser.d.ts +11 -6
  72. package/dist/extensions/defaults/subagent/subagent-parser.js +69 -46
  73. package/dist/extensions/defaults/subagent/subagent-runner.d.ts +7 -0
  74. package/dist/extensions/defaults/subagent/subagent-runner.js +123 -19
  75. package/dist/extensions/defaults/subagent/subagent-types.d.ts +5 -0
  76. package/dist/extensions/defaults/team/CLAUDE.md +87 -0
  77. package/dist/extensions/defaults/team/TESTING.md +247 -0
  78. package/dist/extensions/defaults/team/index.d.ts +14 -4
  79. package/dist/extensions/defaults/team/index.js +342 -1036
  80. package/dist/extensions/defaults/team/team-mailbox.d.ts +47 -0
  81. package/dist/extensions/defaults/team/team-mailbox.js +65 -0
  82. package/dist/extensions/defaults/team/team-parser.d.ts +39 -19
  83. package/dist/extensions/defaults/team/team-parser.js +140 -43
  84. package/dist/extensions/defaults/team/team-permissions.d.ts +64 -0
  85. package/dist/extensions/defaults/team/team-permissions.js +117 -0
  86. package/dist/extensions/defaults/team/team-runtime.d.ts +118 -0
  87. package/dist/extensions/defaults/team/team-runtime.js +566 -0
  88. package/dist/extensions/defaults/team/team-state-store.d.ts +25 -0
  89. package/dist/extensions/defaults/team/team-state-store.js +78 -0
  90. package/dist/extensions/defaults/team/team-transcript.d.ts +32 -0
  91. package/dist/extensions/defaults/team/team-transcript.js +59 -0
  92. package/dist/extensions/defaults/team/team-types.d.ts +91 -51
  93. package/dist/extensions/defaults/team/team-types.js +6 -0
  94. package/dist/extensions/optional/CLAUDE.md +10 -10
  95. package/dist/extensions/optional/simplify/index.js +50 -50
  96. package/dist/main.js +34 -34
  97. package/dist/modes/acp/acp-mode.js +18 -4
  98. package/dist/modes/interactive/components/settings-selector.d.ts +2 -0
  99. package/dist/modes/interactive/components/settings-selector.js +12 -0
  100. package/dist/modes/interactive/interactive-mode.js +12 -0
  101. package/dist/modes/interactive/theme/dark.json +85 -85
  102. package/dist/modes/interactive/theme/light.json +84 -84
  103. package/dist/modes/interactive/theme/theme-schema.json +335 -335
  104. package/dist/modes/interactive/theme/warm.json +81 -81
  105. package/dist/nanopencil-defaults.js +21 -21
  106. package/dist/packages/mem-core/cli.js +18 -18
  107. package/dist/packages/mem-core/config.d.ts +2 -0
  108. package/dist/packages/mem-core/config.js +2 -0
  109. package/dist/packages/mem-core/engine.d.ts +8 -0
  110. package/dist/packages/mem-core/engine.js +66 -4
  111. package/dist/packages/mem-core/full-insights-html.js +268 -268
  112. package/dist/packages/mem-core/human-insights.js +49 -49
  113. package/dist/packages/mem-core/i18n.js +244 -244
  114. package/dist/packages/mem-core/insights-html.js +204 -204
  115. package/dist/packages/mem-core/procedural-v2.js +1 -0
  116. package/dist/packages/mem-core/src/config.d.ts +81 -0
  117. package/dist/packages/mem-core/src/config.js +84 -0
  118. package/dist/packages/mem-core/src/consolidate-v2.d.ts +15 -0
  119. package/dist/packages/mem-core/src/consolidate-v2.js +125 -0
  120. package/dist/packages/mem-core/src/consolidation.d.ts +12 -0
  121. package/dist/packages/mem-core/src/consolidation.js +182 -0
  122. package/dist/packages/mem-core/src/dedup.d.ts +18 -0
  123. package/dist/packages/mem-core/src/dedup.js +85 -0
  124. package/dist/packages/mem-core/src/embedding-index.d.ts +27 -0
  125. package/dist/packages/mem-core/src/embedding-index.js +111 -0
  126. package/dist/packages/mem-core/src/engine.d.ts +332 -0
  127. package/dist/packages/mem-core/src/engine.js +2641 -0
  128. package/dist/packages/mem-core/src/eviction.d.ts +14 -0
  129. package/dist/packages/mem-core/src/eviction.js +26 -0
  130. package/dist/packages/mem-core/src/extraction.d.ts +11 -0
  131. package/dist/packages/mem-core/src/extraction.js +188 -0
  132. package/dist/packages/mem-core/src/full-insights-html.d.ts +9 -0
  133. package/dist/packages/mem-core/src/full-insights-html.js +422 -0
  134. package/dist/packages/mem-core/src/full-insights.d.ts +22 -0
  135. package/dist/packages/mem-core/src/full-insights.js +310 -0
  136. package/dist/packages/mem-core/src/hash-embedding.d.ts +9 -0
  137. package/dist/packages/mem-core/src/hash-embedding.js +44 -0
  138. package/dist/packages/mem-core/src/human-insights.d.ts +28 -0
  139. package/dist/packages/mem-core/src/human-insights.js +260 -0
  140. package/dist/packages/mem-core/src/i18n.d.ts +64 -0
  141. package/dist/packages/mem-core/src/i18n.js +367 -0
  142. package/dist/packages/mem-core/src/index.d.ts +27 -0
  143. package/dist/packages/mem-core/src/index.js +21 -0
  144. package/dist/packages/mem-core/src/insights-html.d.ts +9 -0
  145. package/dist/packages/mem-core/src/insights-html.js +432 -0
  146. package/dist/packages/mem-core/src/linking.d.ts +22 -0
  147. package/dist/packages/mem-core/src/linking.js +192 -0
  148. package/dist/packages/mem-core/src/privacy.d.ts +17 -0
  149. package/dist/packages/mem-core/src/privacy.js +53 -0
  150. package/dist/packages/mem-core/src/procedural-v2.d.ts +9 -0
  151. package/dist/packages/mem-core/src/procedural-v2.js +123 -0
  152. package/dist/packages/mem-core/src/reconsolidate-v2.d.ts +19 -0
  153. package/dist/packages/mem-core/src/reconsolidate-v2.js +115 -0
  154. package/dist/packages/mem-core/src/scoring.d.ts +32 -0
  155. package/dist/packages/mem-core/src/scoring.js +108 -0
  156. package/dist/packages/mem-core/src/store-v2.d.ts +35 -0
  157. package/dist/packages/mem-core/src/store-v2.js +98 -0
  158. package/dist/packages/mem-core/src/store.d.ts +22 -0
  159. package/dist/packages/mem-core/src/store.js +107 -0
  160. package/dist/packages/mem-core/src/types-v2.d.ts +188 -0
  161. package/dist/packages/mem-core/src/types-v2.js +8 -0
  162. package/dist/packages/mem-core/src/types.d.ts +330 -0
  163. package/dist/packages/mem-core/src/types.js +8 -0
  164. package/dist/packages/mem-core/src/update.d.ts +31 -0
  165. package/dist/packages/mem-core/src/update.js +250 -0
  166. package/dist/packages/mem-core/types-v2.d.ts +5 -0
  167. package/dist/packages/soul-core/src/config.d.ts +26 -0
  168. package/dist/packages/soul-core/src/config.js +98 -0
  169. package/dist/packages/soul-core/src/evolution.d.ts +79 -0
  170. package/dist/packages/soul-core/src/evolution.js +252 -0
  171. package/dist/packages/soul-core/src/index.d.ts +19 -0
  172. package/dist/packages/soul-core/src/index.js +19 -0
  173. package/dist/packages/soul-core/src/injection.d.ts +41 -0
  174. package/dist/packages/soul-core/src/injection.js +295 -0
  175. package/dist/packages/soul-core/src/manager.d.ts +107 -0
  176. package/dist/packages/soul-core/src/manager.js +435 -0
  177. package/dist/packages/soul-core/src/store.d.ts +68 -0
  178. package/dist/packages/soul-core/src/store.js +229 -0
  179. package/dist/packages/soul-core/src/types.d.ts +323 -0
  180. package/dist/packages/soul-core/src/types.js +13 -0
  181. package/docs/ACP/345/215/217/350/256/256/351/233/206/346/210/220/345/274/200/345/217/221/346/226/207/346/241/243.md +851 -0
  182. package/docs/API/345/257/206/351/222/245/344/277/256/345/244/215/346/200/273/347/273/223.md +147 -147
  183. package/docs/API/345/257/206/351/222/245/345/221/275/344/273/244.md +66 -66
  184. package/docs/API/345/257/206/351/222/245/346/214/207/345/215/227.md +292 -292
  185. package/docs/ARK/347/274/226/347/240/201/350/256/241/345/210/222.md +51 -51
  186. package/docs/AgentTeam/351/207/215/346/236/204/346/226/271/346/241/210.md +446 -449
  187. package/docs/Insight /346/264/236/345/257/237/346/212/245/345/221/212.md" +352 -352
  188. package/docs/InterviewRegression.md +122 -122
  189. package/docs/MCP/345/277/253/351/200/237/345/217/202/350/200/203.md +113 -113
  190. package/docs/MCP/351/233/206/346/210/220/346/214/207/345/215/227.md +255 -255
  191. package/docs/Persona/345/210/207/346/215/242.md +97 -97
  192. package/docs/SAL/345/257/271/346/257/224/350/257/225/351/252/214/350/256/276/350/256/241.md +667 -0
  193. package/docs/SAL/347/273/223/346/236/204/351/224/232/347/202/271/345/256/232/344/275/215/346/226/271/346/241/210.md +851 -0
  194. package/docs/Simplify/346/211/251/345/261/225.md +277 -277
  195. package/docs/debug-logging.md +148 -148
  196. package/docs/mem-core/346/212/200/346/234/257/346/226/207/346/241/243.md +593 -0
  197. package/docs//345/206/205/347/275/256MCP/345/267/245/345/205/267.md +326 -326
  198. package/docs//345/215/203/345/270/206/347/274/226/347/240/201/350/256/241/345/210/222.md +52 -52
  199. package/docs//345/215/225/344/275/223/344/273/223/345/272/223/350/207/252/350/277/260.md +189 -189
  200. package/docs//345/215/225/344/275/223/344/273/223/345/272/223/350/277/201/347/247/273/346/214/207/345/215/227.md +232 -232
  201. package/docs//345/217/221/345/270/203/346/214/207/345/215/227.md +129 -129
  202. package/docs//345/217/230/346/233/264/346/200/273/347/273/223.md +138 -138
  203. package/docs//345/217/230/346/233/264/346/227/245/345/277/227.md +50 -50
  204. package/docs//345/267/245/345/205/267/347/256/241/347/220/206/345/231/250/344/274/230/345/214/226.md +208 -208
  205. package/docs//345/276/252/347/216/257/345/221/275/344/273/244/350/256/241/345/210/222.md +56 -56
  206. package/docs//346/226/207/346/241/243/344/270/255/345/277/203.md +130 -130
  207. package/docs//346/236/266/346/236/204/344/274/230/345/214/226.md +404 -404
  208. package/docs//346/236/266/346/236/204/346/274/224/350/277/233.md +228 -228
  209. package/docs//347/211/210/346/234/2542.md +198 -198
  210. package/docs//347/272/263/350/257/272/350/256/260/345/277/206/350/257/273/345/206/231.md +352 -352
  211. package/docs//347/273/223/346/236/204.md +339 -339
  212. package/docs//350/256/241/345/210/222.md +43 -43
  213. package/docs//350/256/244/347/237/245/345/234/260/345/233/276.md +47 -0
  214. package/docs//350/256/244/347/237/245/345/234/260/345/233/276/346/236/266/346/236/204/350/215/211/346/241/210.md +600 -0
  215. package/docs//350/256/260/345/277/206/347/263/273/347/273/237.md +236 -236
  216. package/docs//350/277/201/347/247/273/346/200/273/347/273/223.md +204 -204
  217. package/docs//351/207/215/346/236/204/344/273/273/345/212/241.md +181 -181
  218. package/docs//351/207/215/346/236/204/350/256/241/345/210/222.md +592 -592
  219. package/node_modules/@anthropic-ai/sdk/bin/cli +0 -0
  220. package/node_modules/@aws-sdk/types/package.json +0 -0
  221. package/node_modules/@isaacs/cliui/node_modules/wrap-ansi/index.js +0 -0
  222. package/node_modules/@pencil-agent/agent-core/README.md +412 -412
  223. package/node_modules/@pencil-agent/agent-core/dist/agent-loop.d.ts +0 -6
  224. package/node_modules/@pencil-agent/agent-core/dist/agent-loop.d.ts.map +1 -1
  225. package/node_modules/@pencil-agent/agent-core/dist/agent-loop.js +0 -6
  226. package/node_modules/@pencil-agent/agent-core/dist/agent-loop.js.map +1 -1
  227. package/node_modules/@pencil-agent/agent-core/dist/agent.d.ts +0 -6
  228. package/node_modules/@pencil-agent/agent-core/dist/agent.d.ts.map +1 -1
  229. package/node_modules/@pencil-agent/agent-core/dist/agent.js +0 -6
  230. package/node_modules/@pencil-agent/agent-core/dist/agent.js.map +1 -1
  231. package/node_modules/@pencil-agent/agent-core/dist/index.d.ts +0 -6
  232. package/node_modules/@pencil-agent/agent-core/dist/index.d.ts.map +1 -1
  233. package/node_modules/@pencil-agent/agent-core/dist/index.js +0 -6
  234. package/node_modules/@pencil-agent/agent-core/dist/index.js.map +1 -1
  235. package/node_modules/@pencil-agent/agent-core/dist/proxy.d.ts +0 -6
  236. package/node_modules/@pencil-agent/agent-core/dist/proxy.d.ts.map +1 -1
  237. package/node_modules/@pencil-agent/agent-core/dist/proxy.js +1 -7
  238. package/node_modules/@pencil-agent/agent-core/dist/proxy.js.map +1 -1
  239. package/node_modules/@pencil-agent/agent-core/dist/types.d.ts +0 -6
  240. package/node_modules/@pencil-agent/agent-core/dist/types.d.ts.map +1 -1
  241. package/node_modules/@pencil-agent/agent-core/dist/types.js +0 -6
  242. package/node_modules/@pencil-agent/agent-core/dist/types.js.map +1 -1
  243. package/node_modules/@pencil-agent/agent-core/package.json +7 -7
  244. package/node_modules/@pencil-agent/ai/README.md +1188 -1190
  245. package/node_modules/@pencil-agent/ai/dist/api-registry.d.ts +0 -6
  246. package/node_modules/@pencil-agent/ai/dist/api-registry.d.ts.map +1 -1
  247. package/node_modules/@pencil-agent/ai/dist/api-registry.js +0 -6
  248. package/node_modules/@pencil-agent/ai/dist/api-registry.js.map +1 -1
  249. package/node_modules/@pencil-agent/ai/dist/cli.js +13 -19
  250. package/node_modules/@pencil-agent/ai/dist/cli.js.map +1 -1
  251. package/node_modules/@pencil-agent/ai/dist/env-api-keys.d.ts.map +1 -1
  252. package/node_modules/@pencil-agent/ai/dist/env-api-keys.js +0 -6
  253. package/node_modules/@pencil-agent/ai/dist/env-api-keys.js.map +1 -1
  254. package/node_modules/@pencil-agent/ai/dist/index.d.ts +0 -6
  255. package/node_modules/@pencil-agent/ai/dist/index.d.ts.map +1 -1
  256. package/node_modules/@pencil-agent/ai/dist/index.js.map +1 -1
  257. package/node_modules/@pencil-agent/ai/dist/models.d.ts +0 -6
  258. package/node_modules/@pencil-agent/ai/dist/models.d.ts.map +1 -1
  259. package/node_modules/@pencil-agent/ai/dist/models.generated.d.ts +374 -1310
  260. package/node_modules/@pencil-agent/ai/dist/models.generated.d.ts.map +1 -1
  261. package/node_modules/@pencil-agent/ai/dist/models.generated.js +799 -1721
  262. package/node_modules/@pencil-agent/ai/dist/models.generated.js.map +1 -1
  263. package/node_modules/@pencil-agent/ai/dist/models.js +0 -6
  264. package/node_modules/@pencil-agent/ai/dist/models.js.map +1 -1
  265. package/node_modules/@pencil-agent/ai/dist/providers/amazon-bedrock.d.ts +0 -6
  266. package/node_modules/@pencil-agent/ai/dist/providers/amazon-bedrock.d.ts.map +1 -1
  267. package/node_modules/@pencil-agent/ai/dist/providers/amazon-bedrock.js +0 -6
  268. package/node_modules/@pencil-agent/ai/dist/providers/amazon-bedrock.js.map +1 -1
  269. package/node_modules/@pencil-agent/ai/dist/providers/anthropic.d.ts +0 -6
  270. package/node_modules/@pencil-agent/ai/dist/providers/anthropic.d.ts.map +1 -1
  271. package/node_modules/@pencil-agent/ai/dist/providers/anthropic.js +0 -6
  272. package/node_modules/@pencil-agent/ai/dist/providers/anthropic.js.map +1 -1
  273. package/node_modules/@pencil-agent/ai/dist/providers/azure-openai-responses.d.ts +0 -6
  274. package/node_modules/@pencil-agent/ai/dist/providers/azure-openai-responses.d.ts.map +1 -1
  275. package/node_modules/@pencil-agent/ai/dist/providers/azure-openai-responses.js +0 -6
  276. package/node_modules/@pencil-agent/ai/dist/providers/azure-openai-responses.js.map +1 -1
  277. package/node_modules/@pencil-agent/ai/dist/providers/github-copilot-headers.d.ts +0 -6
  278. package/node_modules/@pencil-agent/ai/dist/providers/github-copilot-headers.d.ts.map +1 -1
  279. package/node_modules/@pencil-agent/ai/dist/providers/github-copilot-headers.js +0 -6
  280. package/node_modules/@pencil-agent/ai/dist/providers/github-copilot-headers.js.map +1 -1
  281. package/node_modules/@pencil-agent/ai/dist/providers/google-gemini-cli.d.ts +0 -6
  282. package/node_modules/@pencil-agent/ai/dist/providers/google-gemini-cli.d.ts.map +1 -1
  283. package/node_modules/@pencil-agent/ai/dist/providers/google-gemini-cli.js +0 -6
  284. package/node_modules/@pencil-agent/ai/dist/providers/google-gemini-cli.js.map +1 -1
  285. package/node_modules/@pencil-agent/ai/dist/providers/google-shared.d.ts +0 -6
  286. package/node_modules/@pencil-agent/ai/dist/providers/google-shared.d.ts.map +1 -1
  287. package/node_modules/@pencil-agent/ai/dist/providers/google-shared.js +0 -6
  288. package/node_modules/@pencil-agent/ai/dist/providers/google-shared.js.map +1 -1
  289. package/node_modules/@pencil-agent/ai/dist/providers/google-vertex.d.ts +0 -6
  290. package/node_modules/@pencil-agent/ai/dist/providers/google-vertex.d.ts.map +1 -1
  291. package/node_modules/@pencil-agent/ai/dist/providers/google-vertex.js +0 -6
  292. package/node_modules/@pencil-agent/ai/dist/providers/google-vertex.js.map +1 -1
  293. package/node_modules/@pencil-agent/ai/dist/providers/google.d.ts +0 -6
  294. package/node_modules/@pencil-agent/ai/dist/providers/google.d.ts.map +1 -1
  295. package/node_modules/@pencil-agent/ai/dist/providers/google.js +0 -6
  296. package/node_modules/@pencil-agent/ai/dist/providers/google.js.map +1 -1
  297. package/node_modules/@pencil-agent/ai/dist/providers/openai-codex-responses.d.ts.map +1 -1
  298. package/node_modules/@pencil-agent/ai/dist/providers/openai-codex-responses.js +0 -6
  299. package/node_modules/@pencil-agent/ai/dist/providers/openai-codex-responses.js.map +1 -1
  300. package/node_modules/@pencil-agent/ai/dist/providers/openai-completions.d.ts +0 -6
  301. package/node_modules/@pencil-agent/ai/dist/providers/openai-completions.d.ts.map +1 -1
  302. package/node_modules/@pencil-agent/ai/dist/providers/openai-completions.js +14 -158
  303. package/node_modules/@pencil-agent/ai/dist/providers/openai-completions.js.map +1 -1
  304. package/node_modules/@pencil-agent/ai/dist/providers/openai-responses-shared.d.ts +0 -6
  305. package/node_modules/@pencil-agent/ai/dist/providers/openai-responses-shared.d.ts.map +1 -1
  306. package/node_modules/@pencil-agent/ai/dist/providers/openai-responses-shared.js +0 -6
  307. package/node_modules/@pencil-agent/ai/dist/providers/openai-responses-shared.js.map +1 -1
  308. package/node_modules/@pencil-agent/ai/dist/providers/openai-responses.d.ts +0 -6
  309. package/node_modules/@pencil-agent/ai/dist/providers/openai-responses.d.ts.map +1 -1
  310. package/node_modules/@pencil-agent/ai/dist/providers/openai-responses.js +0 -6
  311. package/node_modules/@pencil-agent/ai/dist/providers/openai-responses.js.map +1 -1
  312. package/node_modules/@pencil-agent/ai/dist/providers/register-builtins.d.ts +0 -6
  313. package/node_modules/@pencil-agent/ai/dist/providers/register-builtins.d.ts.map +1 -1
  314. package/node_modules/@pencil-agent/ai/dist/providers/register-builtins.js +0 -6
  315. package/node_modules/@pencil-agent/ai/dist/providers/register-builtins.js.map +1 -1
  316. package/node_modules/@pencil-agent/ai/dist/providers/simple-options.d.ts +0 -6
  317. package/node_modules/@pencil-agent/ai/dist/providers/simple-options.d.ts.map +1 -1
  318. package/node_modules/@pencil-agent/ai/dist/providers/simple-options.js +0 -6
  319. package/node_modules/@pencil-agent/ai/dist/providers/simple-options.js.map +1 -1
  320. package/node_modules/@pencil-agent/ai/dist/providers/transform-messages.d.ts +0 -6
  321. package/node_modules/@pencil-agent/ai/dist/providers/transform-messages.d.ts.map +1 -1
  322. package/node_modules/@pencil-agent/ai/dist/providers/transform-messages.js +0 -6
  323. package/node_modules/@pencil-agent/ai/dist/providers/transform-messages.js.map +1 -1
  324. package/node_modules/@pencil-agent/ai/dist/stream.d.ts +0 -6
  325. package/node_modules/@pencil-agent/ai/dist/stream.d.ts.map +1 -1
  326. package/node_modules/@pencil-agent/ai/dist/stream.js +0 -6
  327. package/node_modules/@pencil-agent/ai/dist/stream.js.map +1 -1
  328. package/node_modules/@pencil-agent/ai/dist/types.d.ts +0 -6
  329. package/node_modules/@pencil-agent/ai/dist/types.d.ts.map +1 -1
  330. package/node_modules/@pencil-agent/ai/dist/types.js +0 -6
  331. package/node_modules/@pencil-agent/ai/dist/types.js.map +1 -1
  332. package/node_modules/@pencil-agent/ai/dist/utils/event-stream.d.ts +0 -6
  333. package/node_modules/@pencil-agent/ai/dist/utils/event-stream.d.ts.map +1 -1
  334. package/node_modules/@pencil-agent/ai/dist/utils/event-stream.js +0 -6
  335. package/node_modules/@pencil-agent/ai/dist/utils/event-stream.js.map +1 -1
  336. package/node_modules/@pencil-agent/ai/dist/utils/http-proxy.d.ts +0 -13
  337. package/node_modules/@pencil-agent/ai/dist/utils/http-proxy.d.ts.map +1 -1
  338. package/node_modules/@pencil-agent/ai/dist/utils/http-proxy.js +0 -6
  339. package/node_modules/@pencil-agent/ai/dist/utils/http-proxy.js.map +1 -1
  340. package/node_modules/@pencil-agent/ai/dist/utils/json-parse.d.ts +0 -6
  341. package/node_modules/@pencil-agent/ai/dist/utils/json-parse.d.ts.map +1 -1
  342. package/node_modules/@pencil-agent/ai/dist/utils/json-parse.js +0 -6
  343. package/node_modules/@pencil-agent/ai/dist/utils/json-parse.js.map +1 -1
  344. package/node_modules/@pencil-agent/ai/dist/utils/oauth/anthropic.d.ts +0 -6
  345. package/node_modules/@pencil-agent/ai/dist/utils/oauth/anthropic.d.ts.map +1 -1
  346. package/node_modules/@pencil-agent/ai/dist/utils/oauth/anthropic.js +0 -6
  347. package/node_modules/@pencil-agent/ai/dist/utils/oauth/anthropic.js.map +1 -1
  348. package/node_modules/@pencil-agent/ai/dist/utils/oauth/github-copilot.d.ts +0 -6
  349. package/node_modules/@pencil-agent/ai/dist/utils/oauth/github-copilot.d.ts.map +1 -1
  350. package/node_modules/@pencil-agent/ai/dist/utils/oauth/github-copilot.js +0 -6
  351. package/node_modules/@pencil-agent/ai/dist/utils/oauth/github-copilot.js.map +1 -1
  352. package/node_modules/@pencil-agent/ai/dist/utils/oauth/google-antigravity.d.ts +0 -6
  353. package/node_modules/@pencil-agent/ai/dist/utils/oauth/google-antigravity.d.ts.map +1 -1
  354. package/node_modules/@pencil-agent/ai/dist/utils/oauth/google-antigravity.js +3 -9
  355. package/node_modules/@pencil-agent/ai/dist/utils/oauth/google-antigravity.js.map +1 -1
  356. package/node_modules/@pencil-agent/ai/dist/utils/oauth/google-gemini-cli.d.ts +0 -6
  357. package/node_modules/@pencil-agent/ai/dist/utils/oauth/google-gemini-cli.d.ts.map +1 -1
  358. package/node_modules/@pencil-agent/ai/dist/utils/oauth/google-gemini-cli.js +3 -9
  359. package/node_modules/@pencil-agent/ai/dist/utils/oauth/google-gemini-cli.js.map +1 -1
  360. package/node_modules/@pencil-agent/ai/dist/utils/oauth/index.d.ts +0 -6
  361. package/node_modules/@pencil-agent/ai/dist/utils/oauth/index.d.ts.map +1 -1
  362. package/node_modules/@pencil-agent/ai/dist/utils/oauth/index.js +0 -6
  363. package/node_modules/@pencil-agent/ai/dist/utils/oauth/index.js.map +1 -1
  364. package/node_modules/@pencil-agent/ai/dist/utils/oauth/openai-codex.d.ts +0 -6
  365. package/node_modules/@pencil-agent/ai/dist/utils/oauth/openai-codex.d.ts.map +1 -1
  366. package/node_modules/@pencil-agent/ai/dist/utils/oauth/openai-codex.js +10 -16
  367. package/node_modules/@pencil-agent/ai/dist/utils/oauth/openai-codex.js.map +1 -1
  368. package/node_modules/@pencil-agent/ai/dist/utils/oauth/pkce.d.ts +0 -6
  369. package/node_modules/@pencil-agent/ai/dist/utils/oauth/pkce.d.ts.map +1 -1
  370. package/node_modules/@pencil-agent/ai/dist/utils/oauth/pkce.js +0 -6
  371. package/node_modules/@pencil-agent/ai/dist/utils/oauth/pkce.js.map +1 -1
  372. package/node_modules/@pencil-agent/ai/dist/utils/oauth/types.d.ts +0 -6
  373. package/node_modules/@pencil-agent/ai/dist/utils/oauth/types.d.ts.map +1 -1
  374. package/node_modules/@pencil-agent/ai/dist/utils/oauth/types.js +0 -6
  375. package/node_modules/@pencil-agent/ai/dist/utils/oauth/types.js.map +1 -1
  376. package/node_modules/@pencil-agent/ai/dist/utils/overflow.d.ts +0 -6
  377. package/node_modules/@pencil-agent/ai/dist/utils/overflow.d.ts.map +1 -1
  378. package/node_modules/@pencil-agent/ai/dist/utils/overflow.js +0 -6
  379. package/node_modules/@pencil-agent/ai/dist/utils/overflow.js.map +1 -1
  380. package/node_modules/@pencil-agent/ai/dist/utils/sanitize-unicode.d.ts +0 -6
  381. package/node_modules/@pencil-agent/ai/dist/utils/sanitize-unicode.d.ts.map +1 -1
  382. package/node_modules/@pencil-agent/ai/dist/utils/sanitize-unicode.js +0 -6
  383. package/node_modules/@pencil-agent/ai/dist/utils/sanitize-unicode.js.map +1 -1
  384. package/node_modules/@pencil-agent/ai/dist/utils/typebox-helpers.d.ts +0 -6
  385. package/node_modules/@pencil-agent/ai/dist/utils/typebox-helpers.d.ts.map +1 -1
  386. package/node_modules/@pencil-agent/ai/dist/utils/typebox-helpers.js +0 -6
  387. package/node_modules/@pencil-agent/ai/dist/utils/typebox-helpers.js.map +1 -1
  388. package/node_modules/@pencil-agent/ai/dist/utils/validation.d.ts +0 -6
  389. package/node_modules/@pencil-agent/ai/dist/utils/validation.d.ts.map +1 -1
  390. package/node_modules/@pencil-agent/ai/dist/utils/validation.js +0 -6
  391. package/node_modules/@pencil-agent/ai/dist/utils/validation.js.map +1 -1
  392. package/node_modules/@pencil-agent/ai/package.json +65 -66
  393. package/node_modules/@pencil-agent/tui/README.md +761 -761
  394. package/node_modules/@pencil-agent/tui/dist/autocomplete.d.ts +0 -6
  395. package/node_modules/@pencil-agent/tui/dist/autocomplete.d.ts.map +1 -1
  396. package/node_modules/@pencil-agent/tui/dist/autocomplete.js +0 -6
  397. package/node_modules/@pencil-agent/tui/dist/autocomplete.js.map +1 -1
  398. package/node_modules/@pencil-agent/tui/dist/components/box.d.ts +0 -6
  399. package/node_modules/@pencil-agent/tui/dist/components/box.d.ts.map +1 -1
  400. package/node_modules/@pencil-agent/tui/dist/components/box.js +0 -6
  401. package/node_modules/@pencil-agent/tui/dist/components/box.js.map +1 -1
  402. package/node_modules/@pencil-agent/tui/dist/components/cancellable-loader.d.ts +0 -6
  403. package/node_modules/@pencil-agent/tui/dist/components/cancellable-loader.d.ts.map +1 -1
  404. package/node_modules/@pencil-agent/tui/dist/components/cancellable-loader.js +0 -6
  405. package/node_modules/@pencil-agent/tui/dist/components/cancellable-loader.js.map +1 -1
  406. package/node_modules/@pencil-agent/tui/dist/components/editor.d.ts +0 -6
  407. package/node_modules/@pencil-agent/tui/dist/components/editor.d.ts.map +1 -1
  408. package/node_modules/@pencil-agent/tui/dist/components/editor.js +1 -8
  409. package/node_modules/@pencil-agent/tui/dist/components/editor.js.map +1 -1
  410. package/node_modules/@pencil-agent/tui/dist/components/image.d.ts +0 -6
  411. package/node_modules/@pencil-agent/tui/dist/components/image.d.ts.map +1 -1
  412. package/node_modules/@pencil-agent/tui/dist/components/image.js +0 -6
  413. package/node_modules/@pencil-agent/tui/dist/components/image.js.map +1 -1
  414. package/node_modules/@pencil-agent/tui/dist/components/input.d.ts +0 -6
  415. package/node_modules/@pencil-agent/tui/dist/components/input.d.ts.map +1 -1
  416. package/node_modules/@pencil-agent/tui/dist/components/input.js +0 -6
  417. package/node_modules/@pencil-agent/tui/dist/components/input.js.map +1 -1
  418. package/node_modules/@pencil-agent/tui/dist/components/loader.d.ts +0 -6
  419. package/node_modules/@pencil-agent/tui/dist/components/loader.d.ts.map +1 -1
  420. package/node_modules/@pencil-agent/tui/dist/components/loader.js +0 -6
  421. package/node_modules/@pencil-agent/tui/dist/components/loader.js.map +1 -1
  422. package/node_modules/@pencil-agent/tui/dist/components/markdown.d.ts +0 -6
  423. package/node_modules/@pencil-agent/tui/dist/components/markdown.d.ts.map +1 -1
  424. package/node_modules/@pencil-agent/tui/dist/components/markdown.js +0 -6
  425. package/node_modules/@pencil-agent/tui/dist/components/markdown.js.map +1 -1
  426. package/node_modules/@pencil-agent/tui/dist/components/select-list.d.ts +0 -6
  427. package/node_modules/@pencil-agent/tui/dist/components/select-list.d.ts.map +1 -1
  428. package/node_modules/@pencil-agent/tui/dist/components/select-list.js +0 -6
  429. package/node_modules/@pencil-agent/tui/dist/components/select-list.js.map +1 -1
  430. package/node_modules/@pencil-agent/tui/dist/components/settings-list.d.ts +0 -6
  431. package/node_modules/@pencil-agent/tui/dist/components/settings-list.d.ts.map +1 -1
  432. package/node_modules/@pencil-agent/tui/dist/components/settings-list.js +0 -6
  433. package/node_modules/@pencil-agent/tui/dist/components/settings-list.js.map +1 -1
  434. package/node_modules/@pencil-agent/tui/dist/components/spacer.d.ts +0 -6
  435. package/node_modules/@pencil-agent/tui/dist/components/spacer.d.ts.map +1 -1
  436. package/node_modules/@pencil-agent/tui/dist/components/spacer.js +0 -6
  437. package/node_modules/@pencil-agent/tui/dist/components/spacer.js.map +1 -1
  438. package/node_modules/@pencil-agent/tui/dist/components/text.d.ts +0 -6
  439. package/node_modules/@pencil-agent/tui/dist/components/text.d.ts.map +1 -1
  440. package/node_modules/@pencil-agent/tui/dist/components/text.js +0 -6
  441. package/node_modules/@pencil-agent/tui/dist/components/text.js.map +1 -1
  442. package/node_modules/@pencil-agent/tui/dist/components/truncated-text.d.ts +0 -6
  443. package/node_modules/@pencil-agent/tui/dist/components/truncated-text.d.ts.map +1 -1
  444. package/node_modules/@pencil-agent/tui/dist/components/truncated-text.js +0 -6
  445. package/node_modules/@pencil-agent/tui/dist/components/truncated-text.js.map +1 -1
  446. package/node_modules/@pencil-agent/tui/dist/editor-component.d.ts +0 -6
  447. package/node_modules/@pencil-agent/tui/dist/editor-component.d.ts.map +1 -1
  448. package/node_modules/@pencil-agent/tui/dist/editor-component.js +0 -6
  449. package/node_modules/@pencil-agent/tui/dist/editor-component.js.map +1 -1
  450. package/node_modules/@pencil-agent/tui/dist/fuzzy.d.ts +0 -6
  451. package/node_modules/@pencil-agent/tui/dist/fuzzy.d.ts.map +1 -1
  452. package/node_modules/@pencil-agent/tui/dist/fuzzy.js +0 -6
  453. package/node_modules/@pencil-agent/tui/dist/fuzzy.js.map +1 -1
  454. package/node_modules/@pencil-agent/tui/dist/index.d.ts +0 -6
  455. package/node_modules/@pencil-agent/tui/dist/index.d.ts.map +1 -1
  456. package/node_modules/@pencil-agent/tui/dist/index.js +0 -6
  457. package/node_modules/@pencil-agent/tui/dist/index.js.map +1 -1
  458. package/node_modules/@pencil-agent/tui/dist/keybindings.d.ts +0 -6
  459. package/node_modules/@pencil-agent/tui/dist/keybindings.d.ts.map +1 -1
  460. package/node_modules/@pencil-agent/tui/dist/keybindings.js +0 -6
  461. package/node_modules/@pencil-agent/tui/dist/keybindings.js.map +1 -1
  462. package/node_modules/@pencil-agent/tui/dist/keys.d.ts +0 -6
  463. package/node_modules/@pencil-agent/tui/dist/keys.d.ts.map +1 -1
  464. package/node_modules/@pencil-agent/tui/dist/keys.js +0 -6
  465. package/node_modules/@pencil-agent/tui/dist/keys.js.map +1 -1
  466. package/node_modules/@pencil-agent/tui/dist/kill-ring.d.ts +0 -6
  467. package/node_modules/@pencil-agent/tui/dist/kill-ring.d.ts.map +1 -1
  468. package/node_modules/@pencil-agent/tui/dist/kill-ring.js +0 -6
  469. package/node_modules/@pencil-agent/tui/dist/kill-ring.js.map +1 -1
  470. package/node_modules/@pencil-agent/tui/dist/stdin-buffer.d.ts +0 -6
  471. package/node_modules/@pencil-agent/tui/dist/stdin-buffer.d.ts.map +1 -1
  472. package/node_modules/@pencil-agent/tui/dist/stdin-buffer.js +0 -6
  473. package/node_modules/@pencil-agent/tui/dist/stdin-buffer.js.map +1 -1
  474. package/node_modules/@pencil-agent/tui/dist/terminal-image.d.ts +0 -6
  475. package/node_modules/@pencil-agent/tui/dist/terminal-image.d.ts.map +1 -1
  476. package/node_modules/@pencil-agent/tui/dist/terminal-image.js.map +1 -1
  477. package/node_modules/@pencil-agent/tui/dist/terminal.d.ts +0 -6
  478. package/node_modules/@pencil-agent/tui/dist/terminal.d.ts.map +1 -1
  479. package/node_modules/@pencil-agent/tui/dist/terminal.js +0 -6
  480. package/node_modules/@pencil-agent/tui/dist/terminal.js.map +1 -1
  481. package/node_modules/@pencil-agent/tui/dist/tui.d.ts +0 -6
  482. package/node_modules/@pencil-agent/tui/dist/tui.d.ts.map +1 -1
  483. package/node_modules/@pencil-agent/tui/dist/tui.js +0 -6
  484. package/node_modules/@pencil-agent/tui/dist/tui.js.map +1 -1
  485. package/node_modules/@pencil-agent/tui/dist/undo-stack.d.ts +0 -6
  486. package/node_modules/@pencil-agent/tui/dist/undo-stack.d.ts.map +1 -1
  487. package/node_modules/@pencil-agent/tui/dist/undo-stack.js +0 -6
  488. package/node_modules/@pencil-agent/tui/dist/undo-stack.js.map +1 -1
  489. package/node_modules/@pencil-agent/tui/dist/utils.d.ts +0 -6
  490. package/node_modules/@pencil-agent/tui/dist/utils.d.ts.map +1 -1
  491. package/node_modules/@pencil-agent/tui/dist/utils.js +0 -6
  492. package/node_modules/@pencil-agent/tui/dist/utils.js.map +1 -1
  493. package/node_modules/@pencil-agent/tui/package.json +3 -3
  494. package/node_modules/color-convert/CHANGELOG.md +54 -0
  495. package/node_modules/escodegen/bin/escodegen.js +0 -0
  496. package/node_modules/escodegen/bin/esgenerate.js +0 -0
  497. package/node_modules/esprima/ChangeLog +235 -0
  498. package/node_modules/esprima/bin/esparse.js +0 -0
  499. package/node_modules/esprima/bin/esvalidate.js +0 -0
  500. package/node_modules/fast-xml-parser/src/cli/cli.js +0 -0
  501. package/node_modules/fast-xml-parser/src/v6/OptionsBuilder.js +0 -0
  502. package/node_modules/fast-xml-parser/src/v6/XMLParser.js +0 -0
  503. package/node_modules/koffi/doc/build.sh +0 -0
  504. package/node_modules/koffi/doc/develop.sh +0 -0
  505. package/node_modules/koffi/lib/native/base/crc_gen.py +0 -0
  506. package/node_modules/koffi/lib/native/base/mimetypes_gen.py +0 -0
  507. package/node_modules/koffi/lib/native/base/unicode_gen.py +0 -0
  508. package/node_modules/koffi/src/cnoke/cnoke.js +0 -0
  509. package/node_modules/koffi/vendor/node-addon-api/tools/conversion.js +0 -0
  510. package/node_modules/marked/bin/marked.js +0 -0
  511. package/node_modules/openai/bin/cli +0 -0
  512. package/node_modules/rimraf/dist/esm/bin.mjs +0 -0
  513. package/node_modules/rimraf/node_modules/glob/dist/esm/bin.mjs +0 -0
  514. package/node_modules/source-map/CHANGELOG.md +301 -0
  515. package/node_modules/which/CHANGELOG.md +166 -0
  516. package/node_modules/which/bin/node-which +0 -0
  517. package/node_modules/wrap-ansi-cjs/index.js +0 -0
  518. package/package.json +120 -118
  519. package/dist/extensions/defaults/loop/loop-controller.d.ts +0 -32
  520. package/dist/extensions/defaults/loop/loop-parser.d.ts +0 -10
  521. package/dist/extensions/defaults/loop/loop-types.d.ts +0 -54
  522. package/dist/extensions/defaults/loop/loop-types.js +0 -2
  523. package/dist/extensions/defaults/team/team-controller.d.ts +0 -24
  524. package/dist/extensions/defaults/team/team-controller.js +0 -98
  525. package/node_modules/@pencil-agent/ai/dist/config-path.d.ts +0 -2
  526. package/node_modules/@pencil-agent/ai/dist/config-path.d.ts.map +0 -1
  527. package/node_modules/@pencil-agent/ai/dist/config-path.js +0 -16
  528. package/node_modules/@pencil-agent/ai/dist/config-path.js.map +0 -1
  529. package/node_modules/@pencil-agent/ai/dist/debug-logger.d.ts +0 -95
  530. package/node_modules/@pencil-agent/ai/dist/debug-logger.d.ts.map +0 -1
  531. package/node_modules/@pencil-agent/ai/dist/debug-logger.js +0 -218
  532. package/node_modules/@pencil-agent/ai/dist/debug-logger.js.map +0 -1
  533. package/node_modules/@pencil-agent/ai/dist/utils/oauth/decode-credential.d.ts +0 -13
  534. package/node_modules/@pencil-agent/ai/dist/utils/oauth/decode-credential.d.ts.map +0 -1
  535. package/node_modules/@pencil-agent/ai/dist/utils/oauth/decode-credential.js +0 -26
  536. package/node_modules/@pencil-agent/ai/dist/utils/oauth/decode-credential.js.map +0 -1
  537. package/node_modules/ast-types/.DS_Store +0 -0
  538. package/node_modules/fast-uri/.DS_Store +0 -0
  539. package/node_modules/json-schema-traverse/.DS_Store +0 -0
  540. package/node_modules/koffi/.DS_Store +0 -0
  541. package/node_modules/netmask/.DS_Store +0 -0
  542. package/node_modules/openai/.DS_Store +0 -0
  543. package/node_modules/smart-buffer/.DS_Store +0 -0
  544. package/node_modules/socks/.DS_Store +0 -0
  545. package/node_modules/strnum/.DS_Store +0 -0
  546. package/node_modules/undici/.DS_Store +0 -0
  547. package/node_modules/zod-to-json-schema/.DS_Store +0 -0
package/README.md CHANGED
@@ -1,267 +1,267 @@
1
- <div align="center">
2
-
3
- <pre>
4
- .-~~~~~~~~~-._ _.-~~~~~~~~~-.
5
- __.' ~. .~ `.__
6
- .'// \./ \\`.
7
- .'// | \\`.
8
- .'// .-~""""""""""""""-._ | _,-""""""""""""""~-. \\`.
9
- .'//.-" `-. | .-' "-.\\`.
10
- .'//______.============-.. \ | / ..-============.______\\`.
11
- .'______________________________\|/______________________________`.
12
- </pre>
13
-
14
- <h1>✎ NanoPencil</h1>
15
-
16
- <p><strong>The AI Coding Agent That Remembers & Evolves</strong></p>
17
-
18
- <p>
19
- <a href="https://www.npmjs.com/package/@pencil-agent/nano-pencil">
20
- <img src="https://img.shields.io/npm/v/@pencil-agent/nano-pencil.svg?style=flat-square&color=cb3837" alt="npm version">
21
- </a>
22
- <a href="https://nodejs.org">
23
- <img src="https://img.shields.io/node/v/@pencil-agent/nano-pencil.svg?style=flat-square&color=339933" alt="Node.js">
24
- </a>
25
- <a href="https://www.npmjs.com/package/@pencil-agent/nano-pencil">
26
- <img src="https://img.shields.io/npm/dm/@pencil-agent/nano-pencil.svg?style=flat-square&color=cb3837" alt="Downloads">
27
- </a>
28
- <img src="https://img.shields.io/badge/TypeScript-5.0+-blue?style=flat-square&color=3178C6" alt="TypeScript">
29
- <img src="https://img.shields.io/badge/License-GPL--3.0-green?style=flat-square&color=brightgreen" alt="License">
30
- </p>
31
-
32
- <p>
33
- <a href="#-why-nanopencil">Why NanoPencil?</a> •
34
- <a href="#-features">Features</a> •
35
- <a href="#-quick-start">Quick Start</a> •
36
- <a href="#-documentation">Docs</a>
37
- </p>
38
-
39
- <p>
40
- <a href="./README.md"><img src="https://img.shields.io/badge/English-Active-blue?style=flat-square" alt="English"></a>
41
- <a href="./README_CN.md"><img src="https://img.shields.io/badge/中文-切换-orange?style=flat-square" alt="中文"></a>
42
- </p>
43
-
44
- </div>
45
-
46
- ---
47
-
48
- ## 🌟 Why NanoPencil?
49
-
50
- > **"The only AI coding assistant that truly learns from you"**
51
-
52
- NanoPencil isn't just another AI coding tool. It's a **terminal-native AI agent** with **persistent memory** and **evolving personality** — designed for developers who live in the terminal.
53
-
54
- ### What Makes It Different?
55
-
56
- | | Other Tools | NanoPencil |
57
- |---|---|---|
58
- | **Memory** | ❌ Starts fresh every session | ✅ Remembers your projects, preferences, and coding style |
59
- | **Personality** | ❌ Generic responses | ✅ Evolves a unique personality based on your interactions |
60
- | **Terminal Native** | ❌ GUI wrappers or plugins | ✅ Pure TUI built for terminal workflows |
61
- | **Model Freedom** | ❌ Vendor lock-in | ✅ 10+ providers, switch instantly |
62
- | **Offline Ready** | ❌ Cloud dependent | ✅ Local models via Ollama |
63
-
64
- ---
65
-
66
- ## ✨ Features
67
-
68
- ### 🧠 Persistent Memory (NanoMem)
69
- Your projects have context. So should your AI.
70
-
71
- - **Project Knowledge** — API endpoints, database schemas, architecture decisions
72
- - **Error Patterns** — Remembers bugs and their solutions
73
- - **User Preferences** — Coding style, naming conventions, framework choices
74
- - **Smart Retrieval** — Automatically recalls relevant context when needed
75
-
76
- ### 💫 AI Personality Evolution (NanoSoul)
77
- Your AI assistant develops its own character.
78
-
79
- - **Big Five Traits** — Openness, Conscientiousness, Extraversion, Agreeableness, Neuroticism
80
- - **Coding Style** — Verbosity, abstraction level, safety margins
81
- - **Domain Expertise** — Frontend, Backend, DevOps, AI/ML specializations
82
- - **Emotional States** — Confidence, curiosity, flow state
83
-
84
- > *After 50 sessions, your NanoPencil will code differently than anyone else's.*
85
-
86
- ### 🎨 Beautiful TUI
87
- A terminal interface that feels alive.
88
-
89
- - **Three Themes** — Dark, Light, and Warm (eye-friendly)
90
- - **Smooth Animations** — Breathing pencil loader
91
- - **Intuitive Navigation** — Vim-like keybindings, fuzzy search
92
- - **Real-time Streaming** — Watch the AI think in real-time
93
-
94
- ### 🔌 MCP Protocol Support
95
- Extend with the Model Context Protocol.
96
-
97
- Built-in tools include:
98
- - 📁 Filesystem operations
99
- - 🌐 HTTP requests (Fetch)
100
- - 🎭 Browser automation (Puppeteer)
101
- - 🗄️ Database queries (SQLite)
102
- - 🔧 Git operations
103
-
104
- ### 🌐 Multi-Model Support
105
- Use the best model for each task.
106
-
107
- - 🇨🇳 **Alibaba DashScope** — Qwen series (optimized for coding)
108
- - 🤖 **OpenAI** — GPT-4, GPT-3.5
109
- - 💬 **Anthropic** — Claude 3 Opus/Sonnet/Haiku
110
- - 🔍 **Google** — Gemini Pro/Ultra
111
- - 🏠 **Local** — Ollama (Qwen, Llama, Mistral, etc.)
112
-
113
- ---
114
-
115
- ## 🚀 Quick Start
116
-
117
- ### Installation
118
-
119
- ```bash
120
- npm install -g @pencil-agent/nano-pencil
121
- ```
122
-
123
- ### First Run
124
-
125
- ```bash
126
- nanopencil
127
- ```
128
-
129
- 1. **Select your model** — Choose from available providers
130
- 2. **Enter API key** — Securely stored in `~/.nanopencil/agent/auth.json`
131
- 3. **Start coding** — Just type what you want to build
132
-
133
- ### Example Session
134
-
135
- ```
136
- You: Create a JWT authentication middleware for Express
137
-
138
- AI: [Analyzing project structure...]
139
- [Creating auth.middleware.ts...]
140
- [Adding TypeScript types...]
141
- [Writing tests...]
142
-
143
- ✅ Done! Created:
144
- - src/middleware/auth.middleware.ts
145
- - src/types/auth.d.ts
146
- - tests/auth.middleware.test.ts
147
-
148
- Features:
149
- • JWT verification with RS256
150
- • Refresh token rotation
151
- • Role-based access control
152
- • Rate limiting integration
153
- ```
154
-
155
- ---
156
-
157
- ## 🎮 Usage
158
-
159
- ### Interactive Mode
160
-
161
- ```bash
162
- nanopencil # Start new session
163
- nanopencil -c # Continue last session
164
- nanopencil -r # Resume from history
165
- nanopencil -m qwen-max # Use specific model
166
- ```
167
-
168
- ### Print Mode (Scripts)
169
-
170
- ```bash
171
- # Single query
172
- nanopencil -p "Refactor this to use async/await"
173
-
174
- # Pipe input
175
- cat bug-report.md | nanopencil -p "Analyze this bug"
176
-
177
- # Chain commands
178
- nanopencil -p "Generate API" | nanopencil -p "Write tests for it"
179
- ```
180
-
181
- ### Slash Commands
182
-
183
- | Command | Description |
184
- |---------|-------------|
185
- | `/model` | Switch AI model |
186
- | `/thinking` | Adjust reasoning depth |
187
- | `/fork` | Branch conversation |
188
- | `/tree` | Browse session history |
189
- | `/memory` | View project memories |
190
- | `/soul` | Check AI personality |
191
- | `/settings` | Configure preferences |
192
- | `/export` | Save as HTML |
193
-
194
- ---
195
-
196
- ## 📊 Comparison
197
-
198
- | Feature | NanoPencil | Cursor | Claude Code | Aider |
199
- |---------|:----------:|:------:|:-----------:|:-----:|
200
- | Terminal Native | ✅ | ❌ | ✅ | ✅ |
201
- | Persistent Memory | ✅ | ❌ | ❌ | ❌ |
202
- | AI Personality | ✅ | ❌ | ❌ | ❌ |
203
- | Session Branching | ✅ | ✅ | ✅ | ❌ |
204
- | Multi-Model | ✅ | ✅ | ❌ | ✅ |
205
- | MCP Support | ✅ | ❌ | ✅ | ❌ |
206
- | Offline Mode | ✅ | ❌ | ❌ | ✅ |
207
- | Chinese Optimized | ✅ | ❌ | ❌ | ❌ |
208
-
209
- ---
210
-
211
- ## 🏗️ Architecture Philosophy
212
-
213
- NanoPencil is built on three pillars:
214
-
215
- ```
216
- ┌─────────────────────────────────────────┐
217
- │ 🧠 COGNITIVE LAYER │
218
- │ (Memory + Personality + Context) │
219
- ├─────────────────────────────────────────┤
220
- │ 🔧 TOOL LAYER │
221
- │ (File Ops + Bash + Search + MCP) │
222
- ├─────────────────────────────────────────┤
223
- │ 🎨 INTERFACE LAYER │
224
- │ (TUI + Themes + Keybindings) │
225
- └─────────────────────────────────────────┘
226
- ```
227
-
228
- **Design Principles:**
229
- - **Terminal First** — No Electron, no browser, pure terminal
230
- - **Privacy First** — Local storage, no telemetry, your data stays yours
231
- - **Extensible** — Plugin system for tools, themes, and behaviors
232
- - **Fast** — Sub-second startup, instant response
233
-
234
- ---
235
-
236
- ## 📚 Documentation
237
-
238
- - [Installation Guide](docs/INSTALL.md)
239
- - [Configuration](docs/CONFIG.md)
240
- - [Memory System](docs/记忆系统.md)
241
- - [MCP Guide](docs/MCP集成指南.md)
242
- - [Keybindings](docs/KEYBINDINGS.md)
243
- - [Extensions](docs/EXTENSIONS.md)
244
-
245
- ---
246
-
247
- ## 🌍 Community
248
-
249
- - 💬 [Discussions](https://github.com/pencil-agent/nano-pencil/discussions)
250
- - 🐛 [Issues](https://github.com/pencil-agent/nano-pencil/issues)
251
- - 📝 [Changelog](CHANGELOG.md)
252
-
253
- ---
254
-
255
- ## 📄 License
256
-
257
- MIT © [Pencil Agent](https://github.com/pencil-agent)
258
-
259
- ---
260
-
261
- <div align="center">
262
-
263
- **[⬆ Back to Top](#-nanopencil)**
264
-
265
- <sub>Built with ❤️ for terminal dwellers everywhere</sub>
266
-
267
- </div>
1
+ <div align="center">
2
+
3
+ <pre>
4
+ .-~~~~~~~~~-._ _.-~~~~~~~~~-.
5
+ __.' ~. .~ `.__
6
+ .'// \./ \\`.
7
+ .'// | \\`.
8
+ .'// .-~""""""""""""""-._ | _,-""""""""""""""~-. \\`.
9
+ .'//.-" `-. | .-' "-.\\`.
10
+ .'//______.============-.. \ | / ..-============.______\\`.
11
+ .'______________________________\|/______________________________`.
12
+ </pre>
13
+
14
+ <h1>✎ NanoPencil</h1>
15
+
16
+ <p><strong>The AI Coding Agent That Remembers & Evolves</strong></p>
17
+
18
+ <p>
19
+ <a href="https://www.npmjs.com/package/@pencil-agent/nano-pencil">
20
+ <img src="https://img.shields.io/npm/v/@pencil-agent/nano-pencil.svg?style=flat-square&color=cb3837" alt="npm version">
21
+ </a>
22
+ <a href="https://nodejs.org">
23
+ <img src="https://img.shields.io/node/v/@pencil-agent/nano-pencil.svg?style=flat-square&color=339933" alt="Node.js">
24
+ </a>
25
+ <a href="https://www.npmjs.com/package/@pencil-agent/nano-pencil">
26
+ <img src="https://img.shields.io/npm/dm/@pencil-agent/nano-pencil.svg?style=flat-square&color=cb3837" alt="Downloads">
27
+ </a>
28
+ <img src="https://img.shields.io/badge/TypeScript-5.0+-blue?style=flat-square&color=3178C6" alt="TypeScript">
29
+ <img src="https://img.shields.io/badge/License-GPL--3.0-green?style=flat-square&color=brightgreen" alt="License">
30
+ </p>
31
+
32
+ <p>
33
+ <a href="#-why-nanopencil">Why NanoPencil?</a> •
34
+ <a href="#-features">Features</a> •
35
+ <a href="#-quick-start">Quick Start</a> •
36
+ <a href="#-documentation">Docs</a>
37
+ </p>
38
+
39
+ <p>
40
+ <a href="./README.md"><img src="https://img.shields.io/badge/English-Active-blue?style=flat-square" alt="English"></a>
41
+ <a href="./README_CN.md"><img src="https://img.shields.io/badge/中文-切换-orange?style=flat-square" alt="中文"></a>
42
+ </p>
43
+
44
+ </div>
45
+
46
+ ---
47
+
48
+ ## 🌟 Why NanoPencil?
49
+
50
+ > **"The only AI coding assistant that truly learns from you"**
51
+
52
+ NanoPencil isn't just another AI coding tool. It's a **terminal-native AI agent** with **persistent memory** and **evolving personality** — designed for developers who live in the terminal.
53
+
54
+ ### What Makes It Different?
55
+
56
+ | | Other Tools | NanoPencil |
57
+ |---|---|---|
58
+ | **Memory** | ❌ Starts fresh every session | ✅ Remembers your projects, preferences, and coding style |
59
+ | **Personality** | ❌ Generic responses | ✅ Evolves a unique personality based on your interactions |
60
+ | **Terminal Native** | ❌ GUI wrappers or plugins | ✅ Pure TUI built for terminal workflows |
61
+ | **Model Freedom** | ❌ Vendor lock-in | ✅ 10+ providers, switch instantly |
62
+ | **Offline Ready** | ❌ Cloud dependent | ✅ Local models via Ollama |
63
+
64
+ ---
65
+
66
+ ## ✨ Features
67
+
68
+ ### 🧠 Persistent Memory (NanoMem)
69
+ Your projects have context. So should your AI.
70
+
71
+ - **Project Knowledge** — API endpoints, database schemas, architecture decisions
72
+ - **Error Patterns** — Remembers bugs and their solutions
73
+ - **User Preferences** — Coding style, naming conventions, framework choices
74
+ - **Smart Retrieval** — Automatically recalls relevant context when needed
75
+
76
+ ### 💫 AI Personality Evolution (NanoSoul)
77
+ Your AI assistant develops its own character.
78
+
79
+ - **Big Five Traits** — Openness, Conscientiousness, Extraversion, Agreeableness, Neuroticism
80
+ - **Coding Style** — Verbosity, abstraction level, safety margins
81
+ - **Domain Expertise** — Frontend, Backend, DevOps, AI/ML specializations
82
+ - **Emotional States** — Confidence, curiosity, flow state
83
+
84
+ > *After 50 sessions, your NanoPencil will code differently than anyone else's.*
85
+
86
+ ### 🎨 Beautiful TUI
87
+ A terminal interface that feels alive.
88
+
89
+ - **Three Themes** — Dark, Light, and Warm (eye-friendly)
90
+ - **Smooth Animations** — Breathing pencil loader
91
+ - **Intuitive Navigation** — Vim-like keybindings, fuzzy search
92
+ - **Real-time Streaming** — Watch the AI think in real-time
93
+
94
+ ### 🔌 MCP Protocol Support
95
+ Extend with the Model Context Protocol.
96
+
97
+ Built-in tools include:
98
+ - 📁 Filesystem operations
99
+ - 🌐 HTTP requests (Fetch)
100
+ - 🎭 Browser automation (Puppeteer)
101
+ - 🗄️ Database queries (SQLite)
102
+ - 🔧 Git operations
103
+
104
+ ### 🌐 Multi-Model Support
105
+ Use the best model for each task.
106
+
107
+ - 🇨🇳 **Alibaba DashScope** — Qwen series (optimized for coding)
108
+ - 🤖 **OpenAI** — GPT-4, GPT-3.5
109
+ - 💬 **Anthropic** — Claude 3 Opus/Sonnet/Haiku
110
+ - 🔍 **Google** — Gemini Pro/Ultra
111
+ - 🏠 **Local** — Ollama (Qwen, Llama, Mistral, etc.)
112
+
113
+ ---
114
+
115
+ ## 🚀 Quick Start
116
+
117
+ ### Installation
118
+
119
+ ```bash
120
+ npm install -g @pencil-agent/nano-pencil
121
+ ```
122
+
123
+ ### First Run
124
+
125
+ ```bash
126
+ nanopencil
127
+ ```
128
+
129
+ 1. **Select your model** — Choose from available providers
130
+ 2. **Enter API key** — Securely stored in `~/.nanopencil/agent/auth.json`
131
+ 3. **Start coding** — Just type what you want to build
132
+
133
+ ### Example Session
134
+
135
+ ```
136
+ You: Create a JWT authentication middleware for Express
137
+
138
+ AI: [Analyzing project structure...]
139
+ [Creating auth.middleware.ts...]
140
+ [Adding TypeScript types...]
141
+ [Writing tests...]
142
+
143
+ ✅ Done! Created:
144
+ - src/middleware/auth.middleware.ts
145
+ - src/types/auth.d.ts
146
+ - tests/auth.middleware.test.ts
147
+
148
+ Features:
149
+ • JWT verification with RS256
150
+ • Refresh token rotation
151
+ • Role-based access control
152
+ • Rate limiting integration
153
+ ```
154
+
155
+ ---
156
+
157
+ ## 🎮 Usage
158
+
159
+ ### Interactive Mode
160
+
161
+ ```bash
162
+ nanopencil # Start new session
163
+ nanopencil -c # Continue last session
164
+ nanopencil -r # Resume from history
165
+ nanopencil -m qwen-max # Use specific model
166
+ ```
167
+
168
+ ### Print Mode (Scripts)
169
+
170
+ ```bash
171
+ # Single query
172
+ nanopencil -p "Refactor this to use async/await"
173
+
174
+ # Pipe input
175
+ cat bug-report.md | nanopencil -p "Analyze this bug"
176
+
177
+ # Chain commands
178
+ nanopencil -p "Generate API" | nanopencil -p "Write tests for it"
179
+ ```
180
+
181
+ ### Slash Commands
182
+
183
+ | Command | Description |
184
+ |---------|-------------|
185
+ | `/model` | Switch AI model |
186
+ | `/thinking` | Adjust reasoning depth |
187
+ | `/fork` | Branch conversation |
188
+ | `/tree` | Browse session history |
189
+ | `/memory` | View project memories |
190
+ | `/soul` | Check AI personality |
191
+ | `/settings` | Configure preferences |
192
+ | `/export` | Save as HTML |
193
+
194
+ ---
195
+
196
+ ## 📊 Comparison
197
+
198
+ | Feature | NanoPencil | Cursor | Claude Code | Aider |
199
+ |---------|:----------:|:------:|:-----------:|:-----:|
200
+ | Terminal Native | ✅ | ❌ | ✅ | ✅ |
201
+ | Persistent Memory | ✅ | ❌ | ❌ | ❌ |
202
+ | AI Personality | ✅ | ❌ | ❌ | ❌ |
203
+ | Session Branching | ✅ | ✅ | ✅ | ❌ |
204
+ | Multi-Model | ✅ | ✅ | ❌ | ✅ |
205
+ | MCP Support | ✅ | ❌ | ✅ | ❌ |
206
+ | Offline Mode | ✅ | ❌ | ❌ | ✅ |
207
+ | Chinese Optimized | ✅ | ❌ | ❌ | ❌ |
208
+
209
+ ---
210
+
211
+ ## 🏗️ Architecture Philosophy
212
+
213
+ NanoPencil is built on three pillars:
214
+
215
+ ```
216
+ ┌─────────────────────────────────────────┐
217
+ │ 🧠 COGNITIVE LAYER │
218
+ │ (Memory + Personality + Context) │
219
+ ├─────────────────────────────────────────┤
220
+ │ 🔧 TOOL LAYER │
221
+ │ (File Ops + Bash + Search + MCP) │
222
+ ├─────────────────────────────────────────┤
223
+ │ 🎨 INTERFACE LAYER │
224
+ │ (TUI + Themes + Keybindings) │
225
+ └─────────────────────────────────────────┘
226
+ ```
227
+
228
+ **Design Principles:**
229
+ - **Terminal First** — No Electron, no browser, pure terminal
230
+ - **Privacy First** — Local storage, no telemetry, your data stays yours
231
+ - **Extensible** — Plugin system for tools, themes, and behaviors
232
+ - **Fast** — Sub-second startup, instant response
233
+
234
+ ---
235
+
236
+ ## 📚 Documentation
237
+
238
+ - [Installation Guide](docs/INSTALL.md)
239
+ - [Configuration](docs/CONFIG.md)
240
+ - [Memory System](docs/记忆系统.md)
241
+ - [MCP Guide](docs/MCP集成指南.md)
242
+ - [Keybindings](docs/KEYBINDINGS.md)
243
+ - [Extensions](docs/EXTENSIONS.md)
244
+
245
+ ---
246
+
247
+ ## 🌍 Community
248
+
249
+ - 💬 [Discussions](https://github.com/pencil-agent/nano-pencil/discussions)
250
+ - 🐛 [Issues](https://github.com/pencil-agent/nano-pencil/issues)
251
+ - 📝 [Changelog](CHANGELOG.md)
252
+
253
+ ---
254
+
255
+ ## 📄 License
256
+
257
+ MIT © [Pencil Agent](https://github.com/pencil-agent)
258
+
259
+ ---
260
+
261
+ <div align="center">
262
+
263
+ **[⬆ Back to Top](#-nanopencil)**
264
+
265
+ <sub>Built with ❤️ for terminal dwellers everywhere</sub>
266
+
267
+ </div>
@@ -19,8 +19,10 @@ const BUNDLED_SOUL_EXTENSION = join(__dirname, "extensions", "defaults", "soul",
19
19
  const BUNDLED_PRESENCE_EXTENSION = join(__dirname, "extensions", "defaults", "presence", "index.js");
20
20
  const BUNDLED_INTERVIEW_EXTENSION = join(__dirname, "extensions", "defaults", "interview", "index.js");
21
21
  const BUNDLED_LOOP_EXTENSION = join(__dirname, "extensions", "defaults", "loop", "index.js");
22
- const BUNDLED_TEAM_EXTENSION = join(__dirname, "extensions", "defaults", "team", "index.js");
22
+ const BUNDLED_SAL_EXTENSION = join(__dirname, "extensions", "defaults", "sal", "index.js");
23
+ const BUNDLED_GRUB_EXTENSION = join(__dirname, "extensions", "defaults", "grub", "index.js");
23
24
  const BUNDLED_SUBAGENT_EXTENSION = join(__dirname, "extensions", "defaults", "subagent", "index.js");
25
+ const BUNDLED_TEAM_EXTENSION = join(__dirname, "extensions", "defaults", "team", "index.js");
24
26
  const BUNDLED_MCP_EXTENSION = join(__dirname, "extensions", "defaults", "mcp", "index.js");
25
27
  const BUNDLED_EXPORT_HTML_EXTENSION = join(__dirname, "extensions", "optional", "export-html", "index.js");
26
28
  /** Find package root from current module location (containing package.json with nano-pencil related name) */
@@ -62,6 +64,19 @@ function findPackageRoot(startDir) {
62
64
  */
63
65
  export function getBuiltinExtensionPaths() {
64
66
  const paths = [];
67
+ // === SAL extension (Structural Anchor Localization, default-on) ===
68
+ // MUST load before NanoMem so SAL sets globalThis.__salAnchor
69
+ // before mem-core reads it during before_agent_start scoring.
70
+ // Pluggable: when --nosal is set, the extension is a runtime no-op.
71
+ // Deleting this directory + this block must leave the system fully functional.
72
+ if (existsSync(BUNDLED_SAL_EXTENSION)) {
73
+ paths.push(BUNDLED_SAL_EXTENSION);
74
+ }
75
+ else {
76
+ const salTs = join(__dirname, "extensions", "defaults", "sal", "index.ts");
77
+ if (existsSync(salTs))
78
+ paths.push(salTs);
79
+ }
65
80
  // === NanoMem extension ===
66
81
  // 1) Prefer extension bundled to dist/packages during build
67
82
  if (existsSync(BUNDLED_NANOMEM_EXTENSION_PACKAGES)) {
@@ -139,7 +154,16 @@ export function getBuiltinExtensionPaths() {
139
154
  if (existsSync(interviewTs))
140
155
  paths.push(interviewTs);
141
156
  }
142
- // === Loop extension (/grub autonomous task, /loop scheduler) ===
157
+ // === Grub extension (/grub autonomous iterative task) ===
158
+ if (existsSync(BUNDLED_GRUB_EXTENSION)) {
159
+ paths.push(BUNDLED_GRUB_EXTENSION);
160
+ }
161
+ else {
162
+ const grubTs = join(__dirname, "extensions", "defaults", "grub", "index.ts");
163
+ if (existsSync(grubTs))
164
+ paths.push(grubTs);
165
+ }
166
+ // === Loop extension (/loop recurring scheduler) ===
143
167
  if (existsSync(BUNDLED_LOOP_EXTENSION)) {
144
168
  paths.push(BUNDLED_LOOP_EXTENSION);
145
169
  }
@@ -149,15 +173,6 @@ export function getBuiltinExtensionPaths() {
149
173
  paths.push(loopTs);
150
174
  }
151
175
  // === MCP extension (MCP tool protocol adapter) ===
152
- // Built-in team extension
153
- if (existsSync(BUNDLED_TEAM_EXTENSION)) {
154
- paths.push(BUNDLED_TEAM_EXTENSION);
155
- }
156
- else {
157
- const teamTs = join(__dirname, "extensions", "defaults", "team", "index.ts");
158
- if (existsSync(teamTs))
159
- paths.push(teamTs);
160
- }
161
176
  // Built-in SubAgent extension
162
177
  if (existsSync(BUNDLED_SUBAGENT_EXTENSION)) {
163
178
  paths.push(BUNDLED_SUBAGENT_EXTENSION);
@@ -167,6 +182,15 @@ export function getBuiltinExtensionPaths() {
167
182
  if (existsSync(subagentTs))
168
183
  paths.push(subagentTs);
169
184
  }
185
+ // Built-in AgentTeam extension (Phase B - persistent teammates)
186
+ if (existsSync(BUNDLED_TEAM_EXTENSION)) {
187
+ paths.push(BUNDLED_TEAM_EXTENSION);
188
+ }
189
+ else {
190
+ const teamTs = join(__dirname, "extensions", "defaults", "team", "index.ts");
191
+ if (existsSync(teamTs))
192
+ paths.push(teamTs);
193
+ }
170
194
  // Built-in MCP extension
171
195
  if (existsSync(BUNDLED_MCP_EXTENSION)) {
172
196
  paths.push(BUNDLED_MCP_EXTENSION);