@dirgha/code 1.2.1 → 1.4.2

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 (1565) hide show
  1. package/.changeset/README.md +23 -0
  2. package/.changeset/config.json +11 -0
  3. package/.changeset/sprint-1.3.0.md +5 -0
  4. package/CHANGELOG.md +135 -0
  5. package/CLA.md +104 -0
  6. package/CODE_OF_CONDUCT.md +50 -0
  7. package/CONTRIBUTING.md +81 -0
  8. package/CREDITS.md +46 -0
  9. package/LICENSING.md +105 -0
  10. package/README.md +71 -626
  11. package/SECURITY.md +61 -0
  12. package/SUPPORT.md +53 -0
  13. package/assets/audio/dirgha-ambient-150s.m4a +0 -0
  14. package/assets/logo/dirgha-mark-amber.svg +8 -0
  15. package/assets/logo/dirgha-mark-cream.svg +8 -0
  16. package/assets/logo/dirgha-wordmark-cream.svg +5 -0
  17. package/assets/logo/dirgha-wordmark-ink.svg +5 -0
  18. package/changelog/1.4.0-promo.mp4 +0 -0
  19. package/changelog/1.4.0.md +89 -0
  20. package/changelog/1.4.1-promo.mp4 +0 -0
  21. package/changelog/README.md +73 -0
  22. package/dist/agent/capabilities.d.ts +1 -0
  23. package/dist/agent/capabilities.js +21 -0
  24. package/dist/agent/collaboration/consensus.d.ts +77 -0
  25. package/dist/agent/collaboration/consensus.js +279 -0
  26. package/dist/agent/collaboration/index.d.ts +7 -0
  27. package/dist/agent/collaboration/index.js +7 -0
  28. package/dist/agent/collaboration/message-bus.d.ts +48 -0
  29. package/dist/agent/collaboration/message-bus.js +219 -0
  30. package/dist/agent/collaboration/shared-context.d.ts +67 -0
  31. package/dist/agent/collaboration/shared-context.js +217 -0
  32. package/dist/agent/collaboration/types.d.ts +95 -0
  33. package/dist/agent/collaboration/types.js +6 -0
  34. package/dist/agent/commands/chat.d.ts +21 -0
  35. package/dist/agent/commands/chat.js +55 -0
  36. package/dist/agent/compaction-tiers.d.ts +10 -0
  37. package/dist/agent/compaction-tiers.js +70 -0
  38. package/dist/agent/compaction.d.ts +16 -0
  39. package/dist/agent/compaction.js +129 -0
  40. package/dist/agent/context-optimizer.d.ts +2 -0
  41. package/dist/agent/context-optimizer.js +30 -0
  42. package/dist/agent/context.d.ts +14 -0
  43. package/dist/agent/context.js +241 -0
  44. package/dist/agent/error-classifier.d.ts +10 -0
  45. package/dist/agent/error-classifier.js +67 -0
  46. package/dist/agent/event-emit.d.ts +6 -0
  47. package/dist/agent/event-emit.js +98 -0
  48. package/dist/agent/executor.d.ts +9 -0
  49. package/dist/agent/executor.js +44 -0
  50. package/dist/agent/gateway.d.ts +11 -0
  51. package/dist/agent/gateway.js +11 -0
  52. package/dist/agent/index.d.ts +7 -0
  53. package/dist/agent/index.js +58 -0
  54. package/dist/agent/injector.d.ts +35 -0
  55. package/dist/agent/injector.js +57 -0
  56. package/dist/agent/loop-detector.d.ts +18 -0
  57. package/dist/agent/loop-detector.js +91 -0
  58. package/dist/agent/loop.d.ts +22 -0
  59. package/dist/agent/loop.js +348 -0
  60. package/dist/agent/memory-sync.d.ts +5 -0
  61. package/dist/agent/memory-sync.js +17 -0
  62. package/dist/agent/model-fallback.d.ts +23 -0
  63. package/dist/agent/model-fallback.js +112 -0
  64. package/dist/agent/moim.d.ts +5 -0
  65. package/dist/agent/moim.js +29 -0
  66. package/dist/agent/orchestration/agent-pool.d.ts +59 -0
  67. package/dist/agent/orchestration/agent-pool.js +165 -0
  68. package/dist/agent/orchestration/circuit-breaker.d.ts +121 -0
  69. package/dist/agent/orchestration/circuit-breaker.js +298 -0
  70. package/dist/agent/orchestration/coordinator.d.ts +17 -0
  71. package/dist/agent/orchestration/coordinator.js +150 -0
  72. package/dist/agent/orchestration/dag-runner.d.ts +18 -0
  73. package/dist/agent/orchestration/dag-runner.js +172 -0
  74. package/dist/agent/orchestration/dag.d.ts +33 -0
  75. package/dist/agent/orchestration/dag.js +209 -0
  76. package/dist/agent/orchestration/decomposer.d.ts +19 -0
  77. package/dist/agent/orchestration/decomposer.js +65 -0
  78. package/dist/agent/orchestration/observability.d.ts +117 -0
  79. package/dist/agent/orchestration/observability.js +244 -0
  80. package/dist/agent/orchestration/parallel.d.ts +8 -0
  81. package/dist/agent/orchestration/parallel.js +191 -0
  82. package/dist/agent/orchestration/pool-cleanup.d.ts +16 -0
  83. package/dist/agent/orchestration/pool-cleanup.js +21 -0
  84. package/dist/agent/orchestration/pool-queue.d.ts +23 -0
  85. package/dist/agent/orchestration/pool-queue.js +62 -0
  86. package/dist/agent/orchestration/pool-scaler.d.ts +22 -0
  87. package/dist/agent/orchestration/pool-scaler.js +53 -0
  88. package/dist/agent/orchestration/researcher.d.ts +28 -0
  89. package/dist/agent/orchestration/researcher.js +78 -0
  90. package/dist/agent/orchestration/retry.d.ts +14 -0
  91. package/dist/agent/orchestration/retry.js +107 -0
  92. package/dist/agent/orchestration/scheduler.d.ts +24 -0
  93. package/dist/agent/orchestration/scheduler.js +66 -0
  94. package/dist/agent/orchestration/shared-memory.d.ts +31 -0
  95. package/dist/agent/orchestration/shared-memory.js +57 -0
  96. package/dist/agent/orchestration/structured.d.ts +63 -0
  97. package/dist/agent/orchestration/structured.js +152 -0
  98. package/dist/agent/orchestration/task-queue.d.ts +32 -0
  99. package/dist/agent/orchestration/task-queue.js +105 -0
  100. package/dist/agent/orchestration/types.d.ts +139 -0
  101. package/dist/agent/orchestration/types.js +7 -0
  102. package/dist/agent/output.d.ts +31 -0
  103. package/dist/agent/output.js +108 -0
  104. package/dist/agent/parser.d.ts +5 -0
  105. package/dist/agent/parser.js +74 -0
  106. package/dist/agent/pending-messages.d.ts +33 -0
  107. package/dist/agent/pending-messages.js +57 -0
  108. package/dist/agent/project.d.ts +2 -0
  109. package/dist/agent/project.js +19 -0
  110. package/dist/agent/reflection.d.ts +36 -0
  111. package/dist/agent/reflection.js +93 -0
  112. package/dist/agent/rerank-engine.d.ts +18 -0
  113. package/dist/agent/rerank-engine.js +52 -0
  114. package/dist/agent/routing.d.ts +10 -0
  115. package/dist/agent/routing.js +95 -0
  116. package/dist/agent/secrets.d.ts +6 -0
  117. package/dist/agent/secrets.js +84 -0
  118. package/dist/agent/skill-registry.d.ts +37 -0
  119. package/dist/agent/skill-registry.js +113 -0
  120. package/dist/agent/spawn/index.d.ts +8 -0
  121. package/dist/agent/spawn/index.js +5 -0
  122. package/dist/agent/spawn/lifecycle.d.ts +9 -0
  123. package/dist/agent/spawn/lifecycle.js +92 -0
  124. package/dist/agent/spawn/messaging.d.ts +6 -0
  125. package/dist/agent/spawn/messaging.js +36 -0
  126. package/dist/agent/spawn/state.d.ts +7 -0
  127. package/dist/agent/spawn/state.js +57 -0
  128. package/dist/agent/spawn/types.d.ts +55 -0
  129. package/dist/agent/spawn/types.js +5 -0
  130. package/dist/agent/spawn/utils.d.ts +14 -0
  131. package/dist/agent/spawn/utils.js +72 -0
  132. package/dist/agent/spawn-agent.d.ts +47 -0
  133. package/dist/agent/spawn-agent.js +114 -0
  134. package/dist/agent/structured-output.d.ts +15 -0
  135. package/dist/agent/structured-output.js +66 -0
  136. package/dist/agent/tool-execution.d.ts +18 -0
  137. package/dist/agent/tool-execution.js +242 -0
  138. package/dist/agent/tools.d.ts +6 -0
  139. package/dist/agent/tools.js +7 -0
  140. package/dist/agent/types.d.ts +62 -0
  141. package/dist/agent/types.js +6 -0
  142. package/dist/agents/consensus.d.ts +14 -0
  143. package/dist/agents/consensus.js +34 -0
  144. package/dist/agents/delegate.d.ts +18 -0
  145. package/dist/agents/delegate.js +32 -0
  146. package/dist/agents/ensemble.d.ts +18 -0
  147. package/dist/agents/ensemble.js +33 -0
  148. package/dist/agents/orchestrate.d.ts +12 -0
  149. package/dist/agents/orchestrate.js +32 -0
  150. package/dist/agents/types.d.ts +29 -0
  151. package/dist/agents/types.js +2 -0
  152. package/dist/analytics/export.d.ts +11 -0
  153. package/dist/analytics/export.js +58 -0
  154. package/dist/analytics/insights.d.ts +27 -0
  155. package/dist/analytics/insights.js +33 -0
  156. package/dist/api/knowledge.d.ts +38 -0
  157. package/dist/api/knowledge.js +65 -0
  158. package/dist/billing/db.d.ts +11 -0
  159. package/dist/billing/db.js +88 -0
  160. package/dist/billing/index.d.ts +10 -0
  161. package/dist/billing/index.js +12 -0
  162. package/dist/billing/meter.d.ts +11 -0
  163. package/dist/billing/meter.js +46 -0
  164. package/dist/billing/middleware.d.ts +28 -0
  165. package/dist/billing/middleware.js +103 -0
  166. package/dist/billing/pricing.d.ts +6 -0
  167. package/dist/billing/pricing.js +48 -0
  168. package/dist/billing/quota.d.ts +24 -0
  169. package/dist/billing/quota.js +105 -0
  170. package/dist/billing/ratelimit-fixed.d.ts +16 -0
  171. package/dist/billing/ratelimit-fixed.js +112 -0
  172. package/dist/billing/ratelimit.d.ts +7 -0
  173. package/dist/billing/ratelimit.js +58 -0
  174. package/dist/billing/tokenizer-v2.d.ts +76 -0
  175. package/dist/billing/tokenizer-v2.js +263 -0
  176. package/dist/billing/tokenizer.d.ts +9 -0
  177. package/dist/billing/tokenizer.js +46 -0
  178. package/dist/billing/types.d.ts +60 -0
  179. package/dist/billing/types.js +17 -0
  180. package/dist/browser/accessibility.d.ts +6 -0
  181. package/dist/browser/accessibility.js +47 -0
  182. package/dist/browser/commands.d.ts +5 -0
  183. package/dist/browser/commands.js +82 -0
  184. package/dist/browser/ipc-client.d.ts +26 -0
  185. package/dist/browser/ipc-client.js +60 -0
  186. package/dist/browser/launcher.d.ts +13 -0
  187. package/dist/browser/launcher.js +78 -0
  188. package/dist/browser/navigation.d.ts +12 -0
  189. package/dist/browser/navigation.js +28 -0
  190. package/dist/browser/snapshot.d.ts +7 -0
  191. package/dist/browser/snapshot.js +18 -0
  192. package/dist/browser/types.d.ts +28 -0
  193. package/dist/browser/types.js +2 -0
  194. package/dist/checkpoint/create.d.ts +2 -0
  195. package/dist/checkpoint/create.js +44 -0
  196. package/dist/checkpoint/git.d.ts +8 -0
  197. package/dist/checkpoint/git.js +45 -0
  198. package/dist/checkpoint/restore.d.ts +5 -0
  199. package/dist/checkpoint/restore.js +18 -0
  200. package/dist/checkpoint/store.d.ts +9 -0
  201. package/dist/checkpoint/store.js +40 -0
  202. package/dist/checkpoint/types.d.ts +23 -0
  203. package/dist/checkpoint/types.js +2 -0
  204. package/dist/commands/agent-swarm.d.ts +7 -0
  205. package/dist/commands/agent-swarm.js +223 -0
  206. package/dist/commands/analytics.d.ts +5 -0
  207. package/dist/commands/analytics.js +20 -0
  208. package/dist/commands/ask.d.ts +12 -0
  209. package/dist/commands/ask.js +99 -0
  210. package/dist/commands/audit.d.ts +5 -0
  211. package/dist/commands/audit.js +78 -0
  212. package/dist/commands/auth.d.ts +1 -0
  213. package/dist/commands/auth.js +126 -0
  214. package/dist/commands/autocomplete.d.ts +10 -0
  215. package/dist/commands/autocomplete.js +89 -0
  216. package/dist/commands/bounties.d.ts +2 -0
  217. package/dist/commands/bounties.js +107 -0
  218. package/dist/commands/browser-cmd.d.ts +7 -0
  219. package/dist/commands/browser-cmd.js +101 -0
  220. package/dist/commands/browser-integration.d.ts +15 -0
  221. package/dist/commands/browser-integration.js +58 -0
  222. package/dist/commands/btw.d.ts +7 -0
  223. package/dist/commands/btw.js +62 -0
  224. package/dist/commands/bucky.d.ts +19 -0
  225. package/dist/commands/bucky.js +328 -0
  226. package/dist/commands/bug-hunter.d.ts +6 -0
  227. package/dist/commands/bug-hunter.js +55 -0
  228. package/dist/commands/capture.d.ts +10 -0
  229. package/dist/commands/capture.js +167 -0
  230. package/dist/commands/chat.d.ts +4 -0
  231. package/dist/commands/chat.js +107 -0
  232. package/dist/commands/checkpoint.d.ts +6 -0
  233. package/dist/commands/checkpoint.js +83 -0
  234. package/dist/commands/coming-soon.d.ts +2 -0
  235. package/dist/commands/coming-soon.js +50 -0
  236. package/dist/commands/compact.d.ts +5 -0
  237. package/dist/commands/compact.js +38 -0
  238. package/dist/commands/connect.d.ts +7 -0
  239. package/dist/commands/connect.js +155 -0
  240. package/dist/commands/curate/embeddings.d.ts +7 -0
  241. package/dist/commands/curate/embeddings.js +38 -0
  242. package/dist/commands/curate/files.d.ts +4 -0
  243. package/dist/commands/curate/files.js +28 -0
  244. package/dist/commands/curate/project.d.ts +1 -0
  245. package/dist/commands/curate/project.js +20 -0
  246. package/dist/commands/curate/schema.d.ts +1 -0
  247. package/dist/commands/curate/schema.js +30 -0
  248. package/dist/commands/curate/types.d.ts +26 -0
  249. package/dist/commands/curate/types.js +6 -0
  250. package/dist/commands/curate/vss-integration.d.ts +1 -0
  251. package/dist/commands/curate/vss-integration.js +19 -0
  252. package/dist/commands/curate.d.ts +9 -0
  253. package/dist/commands/curate.js +50 -0
  254. package/dist/commands/dao.d.ts +8 -0
  255. package/dist/commands/dao.js +290 -0
  256. package/dist/commands/data-query.d.ts +7 -0
  257. package/dist/commands/data-query.js +55 -0
  258. package/dist/commands/doctor.d.ts +2 -0
  259. package/dist/commands/doctor.js +145 -0
  260. package/dist/commands/ensemble.d.ts +7 -0
  261. package/dist/commands/ensemble.js +88 -0
  262. package/dist/commands/error-recovery.d.ts +10 -0
  263. package/dist/commands/error-recovery.js +50 -0
  264. package/dist/commands/export-session.d.ts +7 -0
  265. package/dist/commands/export-session.js +70 -0
  266. package/dist/commands/import-session.d.ts +7 -0
  267. package/dist/commands/import-session.js +49 -0
  268. package/dist/commands/index.d.ts +62 -0
  269. package/dist/commands/index.js +76 -0
  270. package/dist/commands/init.d.ts +5 -0
  271. package/dist/commands/init.js +101 -0
  272. package/dist/commands/jobs.d.ts +2 -0
  273. package/dist/commands/jobs.js +108 -0
  274. package/dist/commands/join-mesh.d.ts +5 -0
  275. package/dist/commands/join-mesh.js +97 -0
  276. package/dist/commands/knowledge.d.ts +19 -0
  277. package/dist/commands/knowledge.js +218 -0
  278. package/dist/commands/local.d.ts +2 -0
  279. package/dist/commands/local.js +77 -0
  280. package/dist/commands/login.d.ts +10 -0
  281. package/dist/commands/login.js +160 -0
  282. package/dist/commands/logout.d.ts +2 -0
  283. package/dist/commands/logout.js +12 -0
  284. package/dist/commands/make.d.ts +2 -0
  285. package/dist/commands/make.js +69 -0
  286. package/dist/commands/mcp.d.ts +7 -0
  287. package/dist/commands/mcp.js +202 -0
  288. package/dist/commands/mesh/add-member.d.ts +2 -0
  289. package/dist/commands/mesh/add-member.js +23 -0
  290. package/dist/commands/mesh/ask.d.ts +2 -0
  291. package/dist/commands/mesh/ask.js +60 -0
  292. package/dist/commands/mesh/billing.d.ts +1 -0
  293. package/dist/commands/mesh/billing.js +16 -0
  294. package/dist/commands/mesh/consensus.d.ts +1 -0
  295. package/dist/commands/mesh/consensus.js +17 -0
  296. package/dist/commands/mesh/context.d.ts +4 -0
  297. package/dist/commands/mesh/context.js +11 -0
  298. package/dist/commands/mesh/index.d.ts +4 -0
  299. package/dist/commands/mesh/index.js +64 -0
  300. package/dist/commands/mesh/join.d.ts +2 -0
  301. package/dist/commands/mesh/join.js +38 -0
  302. package/dist/commands/mesh/leave.d.ts +1 -0
  303. package/dist/commands/mesh/leave.js +14 -0
  304. package/dist/commands/mesh/quota.d.ts +1 -0
  305. package/dist/commands/mesh/quota.js +31 -0
  306. package/dist/commands/mesh/status.d.ts +1 -0
  307. package/dist/commands/mesh/status.js +48 -0
  308. package/dist/commands/mesh/types.d.ts +36 -0
  309. package/dist/commands/mesh/types.js +2 -0
  310. package/dist/commands/mesh.d.ts +6 -0
  311. package/dist/commands/mesh.js +258 -0
  312. package/dist/commands/models.d.ts +1 -0
  313. package/dist/commands/models.js +194 -0
  314. package/dist/commands/pay.d.ts +7 -0
  315. package/dist/commands/pay.js +305 -0
  316. package/dist/commands/profile.d.ts +2 -0
  317. package/dist/commands/profile.js +99 -0
  318. package/dist/commands/progress.d.ts +23 -0
  319. package/dist/commands/progress.js +93 -0
  320. package/dist/commands/prune.d.ts +2 -0
  321. package/dist/commands/prune.js +64 -0
  322. package/dist/commands/query.d.ts +9 -0
  323. package/dist/commands/query.js +135 -0
  324. package/dist/commands/recall-cmd.d.ts +7 -0
  325. package/dist/commands/recall-cmd.js +65 -0
  326. package/dist/commands/remember-cmd.d.ts +7 -0
  327. package/dist/commands/remember-cmd.js +40 -0
  328. package/dist/commands/research.d.ts +5 -0
  329. package/dist/commands/research.js +40 -0
  330. package/dist/commands/sandbox-connect.d.ts +2 -0
  331. package/dist/commands/sandbox-connect.js +171 -0
  332. package/dist/commands/scan/arniko.d.ts +1 -0
  333. package/dist/commands/scan/arniko.js +79 -0
  334. package/dist/commands/scan/deps.d.ts +21 -0
  335. package/dist/commands/scan/deps.js +56 -0
  336. package/dist/commands/scan/index.d.ts +7 -0
  337. package/dist/commands/scan/index.js +97 -0
  338. package/dist/commands/scan/output.d.ts +2 -0
  339. package/dist/commands/scan/output.js +42 -0
  340. package/dist/commands/scan/types.d.ts +21 -0
  341. package/dist/commands/scan/types.js +2 -0
  342. package/dist/commands/scan/utils.d.ts +5 -0
  343. package/dist/commands/scan/utils.js +101 -0
  344. package/dist/commands/scan.d.ts +7 -0
  345. package/dist/commands/scan.js +327 -0
  346. package/dist/commands/scratchpad.d.ts +8 -0
  347. package/dist/commands/scratchpad.js +82 -0
  348. package/dist/commands/session.d.ts +3 -0
  349. package/dist/commands/session.js +70 -0
  350. package/dist/commands/setup-local.d.ts +2 -0
  351. package/dist/commands/setup-local.js +137 -0
  352. package/dist/commands/setup.d.ts +1 -0
  353. package/dist/commands/setup.js +230 -0
  354. package/dist/commands/smart-exec.d.ts +2 -0
  355. package/dist/commands/smart-exec.js +217 -0
  356. package/dist/commands/sprint.d.ts +9 -0
  357. package/dist/commands/sprint.js +321 -0
  358. package/dist/commands/stats.d.ts +1 -0
  359. package/dist/commands/stats.js +163 -0
  360. package/dist/commands/status.d.ts +1 -0
  361. package/dist/commands/status.js +97 -0
  362. package/dist/commands/support.d.ts +5 -0
  363. package/dist/commands/support.js +43 -0
  364. package/dist/commands/sync.d.ts +7 -0
  365. package/dist/commands/sync.js +130 -0
  366. package/dist/commands/unified-memory/context.d.ts +5 -0
  367. package/dist/commands/unified-memory/context.js +33 -0
  368. package/dist/commands/unified-memory/index.d.ts +12 -0
  369. package/dist/commands/unified-memory/index.js +23 -0
  370. package/dist/commands/unified-memory/recall.d.ts +5 -0
  371. package/dist/commands/unified-memory/recall.js +50 -0
  372. package/dist/commands/unified-memory/remember.d.ts +5 -0
  373. package/dist/commands/unified-memory/remember.js +49 -0
  374. package/dist/commands/unified-memory/session.d.ts +5 -0
  375. package/dist/commands/unified-memory/session.js +64 -0
  376. package/dist/commands/unified-memory/stats.d.ts +5 -0
  377. package/dist/commands/unified-memory/stats.js +29 -0
  378. package/dist/commands/update.d.ts +7 -0
  379. package/dist/commands/update.js +45 -0
  380. package/dist/commands/voice-entry.d.ts +8 -0
  381. package/dist/commands/voice-entry.js +120 -0
  382. package/dist/commands/yolo.d.ts +8 -0
  383. package/dist/commands/yolo.js +88 -0
  384. package/dist/compaction/index.d.ts +15 -0
  385. package/dist/compaction/index.js +21 -0
  386. package/dist/compaction/protect.d.ts +8 -0
  387. package/dist/compaction/protect.js +15 -0
  388. package/dist/compaction/prune.d.ts +5 -0
  389. package/dist/compaction/prune.js +19 -0
  390. package/dist/compaction/summarize.d.ts +6 -0
  391. package/dist/compaction/summarize.js +27 -0
  392. package/dist/compaction/types.d.ts +27 -0
  393. package/dist/compaction/types.js +2 -0
  394. package/dist/compaction/update.d.ts +6 -0
  395. package/dist/compaction/update.js +18 -0
  396. package/dist/config/execution.d.ts +22 -0
  397. package/dist/config/execution.js +59 -0
  398. package/dist/config/rate-limits.d.ts +15 -0
  399. package/dist/config/rate-limits.js +34 -0
  400. package/dist/context/jit.d.ts +16 -0
  401. package/dist/context/jit.js +120 -0
  402. package/dist/context/todos.d.ts +7 -0
  403. package/dist/context/todos.js +21 -0
  404. package/dist/cron/runner.d.ts +16 -0
  405. package/dist/cron/runner.js +57 -0
  406. package/dist/cron/store.d.ts +19 -0
  407. package/dist/cron/store.js +91 -0
  408. package/dist/dirgha.mjs +2 -2
  409. package/dist/embeddings/gateway.d.ts +9 -0
  410. package/dist/embeddings/gateway.js +55 -0
  411. package/dist/embeddings/math.d.ts +17 -0
  412. package/dist/embeddings/math.js +33 -0
  413. package/dist/embeddings/ollama.d.ts +10 -0
  414. package/dist/embeddings/ollama.js +74 -0
  415. package/dist/embeddings/provider.d.ts +28 -0
  416. package/dist/embeddings/provider.js +73 -0
  417. package/dist/embeddings/vss.d.ts +22 -0
  418. package/dist/embeddings/vss.js +102 -0
  419. package/dist/errors/tokenLimit.d.ts +15 -0
  420. package/dist/errors/tokenLimit.js +93 -0
  421. package/dist/extensions/manager.d.ts +6 -0
  422. package/dist/extensions/manager.js +62 -0
  423. package/dist/extensions/rpc.d.ts +10 -0
  424. package/dist/extensions/rpc.js +90 -0
  425. package/dist/extensions/types.d.ts +24 -0
  426. package/dist/extensions/types.js +5 -0
  427. package/dist/fleet/apply-back.d.ts +11 -0
  428. package/dist/fleet/apply-back.js +82 -0
  429. package/dist/fleet/commands.d.ts +2 -0
  430. package/dist/fleet/commands.js +227 -0
  431. package/dist/fleet/decompose.d.ts +7 -0
  432. package/dist/fleet/decompose.js +80 -0
  433. package/dist/fleet/events.d.ts +24 -0
  434. package/dist/fleet/events.js +35 -0
  435. package/dist/fleet/runtime.d.ts +9 -0
  436. package/dist/fleet/runtime.js +131 -0
  437. package/dist/fleet/tripleshot.d.ts +9 -0
  438. package/dist/fleet/tripleshot.js +114 -0
  439. package/dist/fleet/types.d.ts +60 -0
  440. package/dist/fleet/types.js +11 -0
  441. package/dist/fleet/worktree.d.ts +17 -0
  442. package/dist/fleet/worktree.js +80 -0
  443. package/dist/gateway/acp/adapter.d.ts +46 -0
  444. package/dist/gateway/acp/adapter.js +181 -0
  445. package/dist/gateway/acp/index.d.ts +6 -0
  446. package/dist/gateway/acp/index.js +6 -0
  447. package/dist/gateway/acp/registry.d.ts +51 -0
  448. package/dist/gateway/acp/registry.js +171 -0
  449. package/dist/gateway/acp/types.d.ts +123 -0
  450. package/dist/gateway/acp/types.js +7 -0
  451. package/dist/gateway/index.d.ts +5 -0
  452. package/dist/gateway/index.js +6 -0
  453. package/dist/gateway/orchestrator.d.ts +8 -0
  454. package/dist/gateway/orchestrator.js +37 -0
  455. package/dist/gateway/router.d.ts +34 -0
  456. package/dist/gateway/router.js +123 -0
  457. package/dist/gateway/telegram.d.ts +13 -0
  458. package/dist/gateway/telegram.js +35 -0
  459. package/dist/gateway/types.d.ts +15 -0
  460. package/dist/gateway/types.js +2 -0
  461. package/dist/git/rotation.d.ts +8 -0
  462. package/dist/git/rotation.js +36 -0
  463. package/dist/hub/commands.d.ts +15 -0
  464. package/dist/hub/commands.js +189 -0
  465. package/dist/hub/index.d.ts +8 -0
  466. package/dist/hub/index.js +9 -0
  467. package/dist/hub/installer.d.ts +7 -0
  468. package/dist/hub/installer.js +148 -0
  469. package/dist/hub/registry.d.ts +9 -0
  470. package/dist/hub/registry.js +81 -0
  471. package/dist/hub/registry.json +82 -0
  472. package/dist/hub/types.d.ts +73 -0
  473. package/dist/hub/types.js +6 -0
  474. package/dist/index-agent.d.ts +1 -0
  475. package/dist/index-agent.js +17 -0
  476. package/dist/index.d.ts +2 -0
  477. package/dist/index.js +442 -0
  478. package/dist/knowledge/compiler.d.ts +11 -0
  479. package/dist/knowledge/compiler.js +100 -0
  480. package/dist/knowledge/git-sync.d.ts +6 -0
  481. package/dist/knowledge/git-sync.js +81 -0
  482. package/dist/knowledge/linter.d.ts +9 -0
  483. package/dist/knowledge/linter.js +136 -0
  484. package/dist/knowledge/raw.d.ts +20 -0
  485. package/dist/knowledge/raw.js +87 -0
  486. package/dist/knowledge/wiki.d.ts +26 -0
  487. package/dist/knowledge/wiki.js +127 -0
  488. package/dist/llm/cache.d.ts +16 -0
  489. package/dist/llm/cache.js +25 -0
  490. package/dist/llm/costs.d.ts +18 -0
  491. package/dist/llm/costs.js +30 -0
  492. package/dist/llm/ensemble.d.ts +5 -0
  493. package/dist/llm/ensemble.js +40 -0
  494. package/dist/llm/local.d.ts +23 -0
  495. package/dist/llm/local.js +78 -0
  496. package/dist/llm/router.d.ts +7 -0
  497. package/dist/llm/router.js +68 -0
  498. package/dist/llm/types.d.ts +18 -0
  499. package/dist/llm/types.js +2 -0
  500. package/dist/mcp/client.d.ts +25 -0
  501. package/dist/mcp/client.js +115 -0
  502. package/dist/mcp/commands.d.ts +5 -0
  503. package/dist/mcp/commands.js +30 -0
  504. package/dist/mcp/index.d.ts +7 -0
  505. package/dist/mcp/index.js +6 -0
  506. package/dist/mcp/manager.d.ts +17 -0
  507. package/dist/mcp/manager.js +67 -0
  508. package/dist/mcp/marketplace.d.ts +42 -0
  509. package/dist/mcp/marketplace.js +188 -0
  510. package/dist/mcp/resources.d.ts +6 -0
  511. package/dist/mcp/resources.js +26 -0
  512. package/dist/mcp/server.d.ts +84 -0
  513. package/dist/mcp/server.js +288 -0
  514. package/dist/mcp/transport.d.ts +10 -0
  515. package/dist/mcp/transport.js +30 -0
  516. package/dist/memory/builtin.d.ts +17 -0
  517. package/dist/memory/builtin.js +43 -0
  518. package/dist/memory/gepa-integration.d.ts +49 -0
  519. package/dist/memory/gepa-integration.js +271 -0
  520. package/dist/memory/graph.d.ts +19 -0
  521. package/dist/memory/graph.js +44 -0
  522. package/dist/memory/holographic.d.ts +11 -0
  523. package/dist/memory/holographic.js +192 -0
  524. package/dist/memory/manager.d.ts +36 -0
  525. package/dist/memory/manager.js +152 -0
  526. package/dist/memory/provider.d.ts +29 -0
  527. package/dist/memory/provider.js +9 -0
  528. package/dist/memory/unified.d.ts +19 -0
  529. package/dist/memory/unified.js +91 -0
  530. package/dist/mesh/ConsensusEngine.d.ts +85 -0
  531. package/dist/mesh/ConsensusEngine.js +187 -0
  532. package/dist/mesh/LightningBilling.d.ts +124 -0
  533. package/dist/mesh/LightningBilling.js +284 -0
  534. package/dist/mesh/MeshNode.d.ts +82 -0
  535. package/dist/mesh/MeshNode.js +401 -0
  536. package/dist/mesh/TeamResourcePool.d.ts +93 -0
  537. package/dist/mesh/TeamResourcePool.js +277 -0
  538. package/dist/mesh/agent-payments.d.ts +25 -0
  539. package/dist/mesh/agent-payments.js +79 -0
  540. package/dist/mesh/capabilities.d.ts +25 -0
  541. package/dist/mesh/capabilities.js +44 -0
  542. package/dist/mesh/config.d.ts +37 -0
  543. package/dist/mesh/config.js +38 -0
  544. package/dist/mesh/index.d.ts +13 -0
  545. package/dist/mesh/index.js +11 -0
  546. package/dist/mesh/reputation.d.ts +21 -0
  547. package/dist/mesh/reputation.js +51 -0
  548. package/dist/mesh/revenue-split.d.ts +20 -0
  549. package/dist/mesh/revenue-split.js +52 -0
  550. package/dist/mesh/validation.d.ts +5 -0
  551. package/dist/mesh/validation.js +31 -0
  552. package/dist/models/credential-pool.d.ts +37 -0
  553. package/dist/models/credential-pool.js +165 -0
  554. package/dist/models/index.d.ts +10 -0
  555. package/dist/models/index.js +13 -0
  556. package/dist/models/manager.d.ts +34 -0
  557. package/dist/models/manager.js +197 -0
  558. package/dist/models/registry.d.ts +27 -0
  559. package/dist/models/registry.js +359 -0
  560. package/dist/models/types.d.ts +119 -0
  561. package/dist/models/types.js +5 -0
  562. package/dist/multimodal/attachments.d.ts +13 -0
  563. package/dist/multimodal/attachments.js +99 -0
  564. package/dist/multimodal/index.d.ts +6 -0
  565. package/dist/multimodal/index.js +3 -0
  566. package/dist/multimodal/slash.d.ts +9 -0
  567. package/dist/multimodal/slash.js +111 -0
  568. package/dist/multimodal/types.d.ts +30 -0
  569. package/dist/multimodal/types.js +5 -0
  570. package/dist/permission/approval.d.ts +18 -0
  571. package/dist/permission/approval.js +86 -0
  572. package/dist/permission/confirmation.d.ts +33 -0
  573. package/dist/permission/confirmation.js +130 -0
  574. package/dist/permission/judge.d.ts +25 -0
  575. package/dist/permission/judge.js +162 -0
  576. package/dist/permission/store.d.ts +12 -0
  577. package/dist/permission/store.js +50 -0
  578. package/dist/platform/sync.d.ts +17 -0
  579. package/dist/platform/sync.js +38 -0
  580. package/dist/project-session/commands.d.ts +5 -0
  581. package/dist/project-session/commands.js +220 -0
  582. package/dist/project-session/context.d.ts +21 -0
  583. package/dist/project-session/context.js +145 -0
  584. package/dist/project-session/index.d.ts +8 -0
  585. package/dist/project-session/index.js +8 -0
  586. package/dist/project-session/project.d.ts +15 -0
  587. package/dist/project-session/project.js +107 -0
  588. package/dist/project-session/session.d.ts +14 -0
  589. package/dist/project-session/session.js +124 -0
  590. package/dist/project-session/types.d.ts +85 -0
  591. package/dist/project-session/types.js +6 -0
  592. package/dist/providers/anthropic.d.ts +4 -0
  593. package/dist/providers/anthropic.js +94 -0
  594. package/dist/providers/circuit-breaker.d.ts +30 -0
  595. package/dist/providers/circuit-breaker.js +109 -0
  596. package/dist/providers/cohere.d.ts +2 -0
  597. package/dist/providers/cohere.js +49 -0
  598. package/dist/providers/deepinfra.d.ts +32 -0
  599. package/dist/providers/deepinfra.js +44 -0
  600. package/dist/providers/detection.d.ts +21 -0
  601. package/dist/providers/detection.js +88 -0
  602. package/dist/providers/dirgha.d.ts +3 -0
  603. package/dist/providers/dirgha.js +26 -0
  604. package/dist/providers/dispatch.d.ts +28 -0
  605. package/dist/providers/dispatch.js +262 -0
  606. package/dist/providers/fireworks.d.ts +2 -0
  607. package/dist/providers/fireworks.js +109 -0
  608. package/dist/providers/gateway.d.ts +2 -0
  609. package/dist/providers/gateway.js +80 -0
  610. package/dist/providers/gemini.d.ts +3 -0
  611. package/dist/providers/gemini.js +103 -0
  612. package/dist/providers/groq.d.ts +2 -0
  613. package/dist/providers/groq.js +39 -0
  614. package/dist/providers/http.d.ts +27 -0
  615. package/dist/providers/http.js +245 -0
  616. package/dist/providers/index.d.ts +16 -0
  617. package/dist/providers/index.js +18 -0
  618. package/dist/providers/messages.d.ts +21 -0
  619. package/dist/providers/messages.js +116 -0
  620. package/dist/providers/mistral.d.ts +2 -0
  621. package/dist/providers/mistral.js +39 -0
  622. package/dist/providers/normalise.d.ts +5 -0
  623. package/dist/providers/normalise.js +29 -0
  624. package/dist/providers/nvidia.d.ts +2 -0
  625. package/dist/providers/nvidia.js +62 -0
  626. package/dist/providers/openai.d.ts +3 -0
  627. package/dist/providers/openai.js +20 -0
  628. package/dist/providers/openrouter.d.ts +2 -0
  629. package/dist/providers/openrouter.js +54 -0
  630. package/dist/providers/perplexity.d.ts +34 -0
  631. package/dist/providers/perplexity.js +66 -0
  632. package/dist/providers/rate-limit.d.ts +31 -0
  633. package/dist/providers/rate-limit.js +101 -0
  634. package/dist/providers/togetherai.d.ts +32 -0
  635. package/dist/providers/togetherai.js +44 -0
  636. package/dist/providers/tools-format.d.ts +2437 -0
  637. package/dist/providers/tools-format.js +15 -0
  638. package/dist/providers/types.d.ts +29 -0
  639. package/dist/providers/types.js +2 -0
  640. package/dist/providers/unified-rate-limiter.d.ts +116 -0
  641. package/dist/providers/unified-rate-limiter.js +385 -0
  642. package/dist/providers/vercel.d.ts +32 -0
  643. package/dist/providers/vercel.js +44 -0
  644. package/dist/providers/xai.d.ts +2 -0
  645. package/dist/providers/xai.js +39 -0
  646. package/dist/realtime/hub.d.ts +42 -0
  647. package/dist/realtime/hub.js +147 -0
  648. package/dist/repl/escape-recovery.d.ts +75 -0
  649. package/dist/repl/escape-recovery.js +236 -0
  650. package/dist/repl/index.d.ts +2 -0
  651. package/dist/repl/index.js +226 -0
  652. package/dist/repl/input.d.ts +12 -0
  653. package/dist/repl/input.js +345 -0
  654. package/dist/repl/renderer.d.ts +23 -0
  655. package/dist/repl/renderer.js +232 -0
  656. package/dist/repl/slash/account.d.ts +2 -0
  657. package/dist/repl/slash/account.js +70 -0
  658. package/dist/repl/slash/agent-discovery.d.ts +15 -0
  659. package/dist/repl/slash/agent-discovery.js +227 -0
  660. package/dist/repl/slash/config.d.ts +2 -0
  661. package/dist/repl/slash/config.js +223 -0
  662. package/dist/repl/slash/consensus.d.ts +14 -0
  663. package/dist/repl/slash/consensus.js +173 -0
  664. package/dist/repl/slash/context.d.ts +3 -0
  665. package/dist/repl/slash/context.js +188 -0
  666. package/dist/repl/slash/cron.d.ts +2 -0
  667. package/dist/repl/slash/cron.js +83 -0
  668. package/dist/repl/slash/dev.d.ts +5 -0
  669. package/dist/repl/slash/dev.js +240 -0
  670. package/dist/repl/slash/fs.d.ts +10 -0
  671. package/dist/repl/slash/fs.js +105 -0
  672. package/dist/repl/slash/git-ext.d.ts +2 -0
  673. package/dist/repl/slash/git-ext.js +95 -0
  674. package/dist/repl/slash/git.d.ts +3 -0
  675. package/dist/repl/slash/git.js +167 -0
  676. package/dist/repl/slash/hermes.d.ts +2 -0
  677. package/dist/repl/slash/hermes.js +180 -0
  678. package/dist/repl/slash/index.d.ts +28 -0
  679. package/dist/repl/slash/index.js +160 -0
  680. package/dist/repl/slash/knowledge.d.ts +8 -0
  681. package/dist/repl/slash/knowledge.js +287 -0
  682. package/dist/repl/slash/local.d.ts +5 -0
  683. package/dist/repl/slash/local.js +24 -0
  684. package/dist/repl/slash/mcp.d.ts +2 -0
  685. package/dist/repl/slash/mcp.js +63 -0
  686. package/dist/repl/slash/memory.d.ts +2 -0
  687. package/dist/repl/slash/memory.js +232 -0
  688. package/dist/repl/slash/net.d.ts +11 -0
  689. package/dist/repl/slash/net.js +83 -0
  690. package/dist/repl/slash/orchestration.d.ts +2 -0
  691. package/dist/repl/slash/orchestration.js +61 -0
  692. package/dist/repl/slash/safety.d.ts +2 -0
  693. package/dist/repl/slash/safety.js +131 -0
  694. package/dist/repl/slash/screen.d.ts +2 -0
  695. package/dist/repl/slash/screen.js +202 -0
  696. package/dist/repl/slash/search.d.ts +2 -0
  697. package/dist/repl/slash/search.js +211 -0
  698. package/dist/repl/slash/security.d.ts +2 -0
  699. package/dist/repl/slash/security.js +102 -0
  700. package/dist/repl/slash/session.d.ts +2 -0
  701. package/dist/repl/slash/session.js +498 -0
  702. package/dist/repl/slash/shortcuts.d.ts +2 -0
  703. package/dist/repl/slash/shortcuts.js +180 -0
  704. package/dist/repl/slash/side.d.ts +9 -0
  705. package/dist/repl/slash/side.js +27 -0
  706. package/dist/repl/slash/sprint.d.ts +2 -0
  707. package/dist/repl/slash/sprint.js +189 -0
  708. package/dist/repl/slash/team.d.ts +15 -0
  709. package/dist/repl/slash/team.js +235 -0
  710. package/dist/repl/slash/theme.d.ts +10 -0
  711. package/dist/repl/slash/theme.js +112 -0
  712. package/dist/repl/slash/types.d.ts +30 -0
  713. package/dist/repl/slash/types.js +2 -0
  714. package/dist/repl/slash/verbose.d.ts +18 -0
  715. package/dist/repl/slash/verbose.js +38 -0
  716. package/dist/repl/slash/verify.d.ts +10 -0
  717. package/dist/repl/slash/verify.js +171 -0
  718. package/dist/repl/slash/voice.d.ts +5 -0
  719. package/dist/repl/slash/voice.js +72 -0
  720. package/dist/repl/slash-git.d.ts +2 -0
  721. package/dist/repl/slash-git.js +132 -0
  722. package/dist/repl/slash-workflow.d.ts +2 -0
  723. package/dist/repl/slash-workflow.js +108 -0
  724. package/dist/repl/themes.d.ts +24 -0
  725. package/dist/repl/themes.js +253 -0
  726. package/dist/runtime/host-tools.d.ts +63 -0
  727. package/dist/runtime/host-tools.js +204 -0
  728. package/dist/runtime/index.d.ts +25 -0
  729. package/dist/runtime/index.js +19 -0
  730. package/dist/runtime/isolate.d.ts +88 -0
  731. package/dist/runtime/isolate.js +277 -0
  732. package/dist/runtime/mount.d.ts +105 -0
  733. package/dist/runtime/mount.js +458 -0
  734. package/dist/runtime/multiplayer.d.ts +128 -0
  735. package/dist/runtime/multiplayer.js +285 -0
  736. package/dist/runtime/network-control.d.ts +65 -0
  737. package/dist/runtime/network-control.js +195 -0
  738. package/dist/runtime/transcript.d.ts +128 -0
  739. package/dist/runtime/transcript.js +252 -0
  740. package/dist/runtime/wasm-commands.d.ts +27 -0
  741. package/dist/runtime/wasm-commands.js +156 -0
  742. package/dist/security/capabilityTokens.d.ts +44 -0
  743. package/dist/security/capabilityTokens.js +122 -0
  744. package/dist/security/csrf.d.ts +53 -0
  745. package/dist/security/csrf.js +181 -0
  746. package/dist/security/index.d.ts +6 -0
  747. package/dist/security/index.js +6 -0
  748. package/dist/security/rules.d.ts +12 -0
  749. package/dist/security/rules.js +212 -0
  750. package/dist/security/safeShell.d.ts +19 -0
  751. package/dist/security/safeShell.js +82 -0
  752. package/dist/security/scanner.d.ts +22 -0
  753. package/dist/security/scanner.js +190 -0
  754. package/dist/security/types.d.ts +53 -0
  755. package/dist/security/types.js +6 -0
  756. package/dist/services/UnifiedAgentClient.d.ts +75 -0
  757. package/dist/services/UnifiedAgentClient.js +180 -0
  758. package/dist/services/memory/feature-flag.d.ts +38 -0
  759. package/dist/services/memory/feature-flag.js +95 -0
  760. package/dist/services/memory/gepa-wrapper.d.ts +38 -0
  761. package/dist/services/memory/gepa-wrapper.js +177 -0
  762. package/dist/session/caps.d.ts +9 -0
  763. package/dist/session/caps.js +46 -0
  764. package/dist/session/checkpoint.d.ts +4 -0
  765. package/dist/session/checkpoint.js +91 -0
  766. package/dist/session/commands/delete.d.ts +2 -0
  767. package/dist/session/commands/delete.js +22 -0
  768. package/dist/session/commands/index.d.ts +7 -0
  769. package/dist/session/commands/index.js +8 -0
  770. package/dist/session/commands/list.d.ts +2 -0
  771. package/dist/session/commands/list.js +39 -0
  772. package/dist/session/commands/load.d.ts +2 -0
  773. package/dist/session/commands/load.js +35 -0
  774. package/dist/session/commands/save.d.ts +2 -0
  775. package/dist/session/commands/save.js +19 -0
  776. package/dist/session/db.d.ts +21 -0
  777. package/dist/session/db.js +289 -0
  778. package/dist/session/memory.d.ts +6 -0
  779. package/dist/session/memory.js +67 -0
  780. package/dist/session/persistence.d.ts +35 -0
  781. package/dist/session/persistence.js +166 -0
  782. package/dist/setup/hardwareDetect.d.ts +10 -0
  783. package/dist/setup/hardwareDetect.js +61 -0
  784. package/dist/setup/localAIPrompt.d.ts +1 -0
  785. package/dist/setup/localAIPrompt.js +84 -0
  786. package/dist/setup/modelCurator.d.ts +20 -0
  787. package/dist/setup/modelCurator.js +171 -0
  788. package/dist/skills/generator.d.ts +7 -0
  789. package/dist/skills/generator.js +76 -0
  790. package/dist/skills/index.d.ts +71 -0
  791. package/dist/skills/index.js +365 -0
  792. package/dist/skills/registry.d.ts +37 -0
  793. package/dist/skills/registry.js +120 -0
  794. package/dist/sprint/compressor.d.ts +9 -0
  795. package/dist/sprint/compressor.js +95 -0
  796. package/dist/sprint/critic.d.ts +12 -0
  797. package/dist/sprint/critic.js +44 -0
  798. package/dist/sprint/escalation.d.ts +12 -0
  799. package/dist/sprint/escalation.js +116 -0
  800. package/dist/sprint/executor.d.ts +13 -0
  801. package/dist/sprint/executor.js +231 -0
  802. package/dist/sprint/journal.d.ts +28 -0
  803. package/dist/sprint/journal.js +270 -0
  804. package/dist/sprint/manifest.d.ts +5 -0
  805. package/dist/sprint/manifest.js +183 -0
  806. package/dist/sprint/types.d.ts +96 -0
  807. package/dist/sprint/types.js +5 -0
  808. package/dist/sprint/verifier.d.ts +2 -0
  809. package/dist/sprint/verifier.js +152 -0
  810. package/dist/sprint/watchdog.d.ts +6 -0
  811. package/dist/sprint/watchdog.js +144 -0
  812. package/dist/swarm/agents/VerificationQuorum.d.ts +22 -0
  813. package/dist/swarm/agents/VerificationQuorum.js +146 -0
  814. package/dist/swarm/agents/WorkerAgent.d.ts +42 -0
  815. package/dist/swarm/agents/WorkerAgent.js +130 -0
  816. package/dist/swarm/collaboration/AgentGit.d.ts +39 -0
  817. package/dist/swarm/collaboration/AgentGit.js +102 -0
  818. package/dist/swarm/collaboration/CRDT.d.ts +28 -0
  819. package/dist/swarm/collaboration/CRDT.js +116 -0
  820. package/dist/swarm/commands.d.ts +5 -0
  821. package/dist/swarm/commands.js +144 -0
  822. package/dist/swarm/governance/CostOptimizer.d.ts +40 -0
  823. package/dist/swarm/governance/CostOptimizer.js +162 -0
  824. package/dist/swarm/index.d.ts +15 -0
  825. package/dist/swarm/index.js +16 -0
  826. package/dist/swarm/orchestration/ColonyManager.d.ts +45 -0
  827. package/dist/swarm/orchestration/ColonyManager.js +166 -0
  828. package/dist/swarm/runtime/ModelPool.d.ts +37 -0
  829. package/dist/swarm/runtime/ModelPool.js +162 -0
  830. package/dist/swarm/templates/SalesforceDomains.d.ts +25 -0
  831. package/dist/swarm/templates/SalesforceDomains.js +340 -0
  832. package/dist/swarm/testing/MacroTestFramework.d.ts +25 -0
  833. package/dist/swarm/testing/MacroTestFramework.js +109 -0
  834. package/dist/swarm/testing/MicroTestFramework.d.ts +23 -0
  835. package/dist/swarm/testing/MicroTestFramework.js +128 -0
  836. package/dist/swarm/types.d.ts +227 -0
  837. package/dist/swarm/types.js +5 -0
  838. package/dist/sync/engine.d.ts +17 -0
  839. package/dist/sync/engine.js +107 -0
  840. package/dist/sync/knowledge.d.ts +30 -0
  841. package/dist/sync/knowledge.js +155 -0
  842. package/dist/sync/schema.d.ts +1 -0
  843. package/dist/sync/schema.js +13 -0
  844. package/dist/sync/session.d.ts +24 -0
  845. package/dist/sync/session.js +70 -0
  846. package/dist/sync/types.d.ts +32 -0
  847. package/dist/sync/types.js +2 -0
  848. package/dist/sync/wiki-git.d.ts +17 -0
  849. package/dist/sync/wiki-git.js +80 -0
  850. package/dist/task/queue.d.ts +36 -0
  851. package/dist/task/queue.js +97 -0
  852. package/dist/tools/browser/agent.d.ts +12 -0
  853. package/dist/tools/browser/agent.js +119 -0
  854. package/dist/tools/browser/legacy.d.ts +5 -0
  855. package/dist/tools/browser/legacy.js +66 -0
  856. package/dist/tools/browser/utils.d.ts +5 -0
  857. package/dist/tools/browser/utils.js +27 -0
  858. package/dist/tools/browser/vision.d.ts +2 -0
  859. package/dist/tools/browser/vision.js +154 -0
  860. package/dist/tools/browser.d.ts +7 -0
  861. package/dist/tools/browser.js +100 -0
  862. package/dist/tools/defs.d.ts +2575 -0
  863. package/dist/tools/defs.js +129 -0
  864. package/dist/tools/deploy.d.ts +17 -0
  865. package/dist/tools/deploy.js +94 -0
  866. package/dist/tools/diff-util.d.ts +8 -0
  867. package/dist/tools/diff-util.js +100 -0
  868. package/dist/tools/file.d.ts +11 -0
  869. package/dist/tools/file.js +297 -0
  870. package/dist/tools/git.d.ts +11 -0
  871. package/dist/tools/git.js +139 -0
  872. package/dist/tools/index.d.ts +4 -0
  873. package/dist/tools/index.js +172 -0
  874. package/dist/tools/memory-graph.d.ts +21 -0
  875. package/dist/tools/memory-graph.js +72 -0
  876. package/dist/tools/memory.d.ts +5 -0
  877. package/dist/tools/memory.js +55 -0
  878. package/dist/tools/patch.d.ts +2 -0
  879. package/dist/tools/patch.js +103 -0
  880. package/dist/tools/repo.d.ts +2 -0
  881. package/dist/tools/repo.js +203 -0
  882. package/dist/tools/sandbox.d.ts +7 -0
  883. package/dist/tools/sandbox.js +101 -0
  884. package/dist/tools/search.d.ts +11 -0
  885. package/dist/tools/search.js +217 -0
  886. package/dist/tools/session-search.d.ts +2 -0
  887. package/dist/tools/session-search.js +31 -0
  888. package/dist/tools/shell-guards.spec.d.ts +1 -0
  889. package/dist/tools/shell-guards.spec.js +95 -0
  890. package/dist/tools/shell.d.ts +3 -0
  891. package/dist/tools/shell.js +241 -0
  892. package/dist/tools/symbol-graph.d.ts +2 -0
  893. package/dist/tools/symbol-graph.js +166 -0
  894. package/dist/tui/App.d.ts +5 -0
  895. package/dist/tui/App.js +670 -0
  896. package/dist/tui/TaskQueue.d.ts +68 -0
  897. package/dist/tui/TaskQueue.js +178 -0
  898. package/dist/tui/TaskQueueClass.d.ts +18 -0
  899. package/dist/tui/TaskQueueClass.js +83 -0
  900. package/dist/tui/TaskQueueTypes.d.ts +20 -0
  901. package/dist/tui/TaskQueueTypes.js +2 -0
  902. package/dist/tui/colors.d.ts +6 -0
  903. package/dist/tui/colors.js +48 -0
  904. package/dist/tui/commands.d.ts +14 -0
  905. package/dist/tui/commands.js +109 -0
  906. package/dist/tui/components/ActivitySummary.d.ts +8 -0
  907. package/dist/tui/components/ActivitySummary.js +59 -0
  908. package/dist/tui/components/CodeEditBox.d.ts +42 -0
  909. package/dist/tui/components/CodeEditBox.js +187 -0
  910. package/dist/tui/components/CompletedMsg.d.ts +4 -0
  911. package/dist/tui/components/CompletedMsg.js +40 -0
  912. package/dist/tui/components/CompletedSystemMsg.d.ts +3 -0
  913. package/dist/tui/components/CompletedSystemMsg.js +16 -0
  914. package/dist/tui/components/CompletedToolGroup.d.ts +9 -0
  915. package/dist/tui/components/CompletedToolGroup.js +47 -0
  916. package/dist/tui/components/DiffLineItem.d.ts +1 -0
  917. package/dist/tui/components/DiffLineItem.js +14 -0
  918. package/dist/tui/components/DiffView.d.ts +2 -0
  919. package/dist/tui/components/DiffView.js +34 -0
  920. package/dist/tui/components/ErrorMsg.d.ts +3 -0
  921. package/dist/tui/components/ErrorMsg.js +24 -0
  922. package/dist/tui/components/FileComplete.d.ts +8 -0
  923. package/dist/tui/components/FileComplete.js +18 -0
  924. package/dist/tui/components/FleetPanel.d.ts +1 -0
  925. package/dist/tui/components/FleetPanel.js +80 -0
  926. package/dist/tui/components/HelpOverlay.d.ts +5 -0
  927. package/dist/tui/components/HelpOverlay.js +88 -0
  928. package/dist/tui/components/HistorySearch.d.ts +7 -0
  929. package/dist/tui/components/HistorySearch.js +60 -0
  930. package/dist/tui/components/InputBox.d.ts +17 -0
  931. package/dist/tui/components/InputBox.js +57 -0
  932. package/dist/tui/components/InputHooks.d.ts +12 -0
  933. package/dist/tui/components/InputHooks.js +214 -0
  934. package/dist/tui/components/JitterFreeRenderer.d.ts +51 -0
  935. package/dist/tui/components/JitterFreeRenderer.js +289 -0
  936. package/dist/tui/components/KeysPicker.d.ts +1 -0
  937. package/dist/tui/components/KeysPicker.js +54 -0
  938. package/dist/tui/components/LiveThinkingNode.d.ts +1 -0
  939. package/dist/tui/components/LiveThinkingNode.js +8 -0
  940. package/dist/tui/components/LiveView.d.ts +1 -0
  941. package/dist/tui/components/LiveView.js +34 -0
  942. package/dist/tui/components/LocalModelRow.d.ts +1 -0
  943. package/dist/tui/components/LocalModelRow.js +9 -0
  944. package/dist/tui/components/ModelPicker.d.ts +1 -0
  945. package/dist/tui/components/ModelPicker.js +41 -0
  946. package/dist/tui/components/ModelRow.d.ts +1 -0
  947. package/dist/tui/components/ModelRow.js +8 -0
  948. package/dist/tui/components/ScrollLogic.d.ts +11 -0
  949. package/dist/tui/components/ScrollLogic.js +38 -0
  950. package/dist/tui/components/ScrollView.d.ts +7 -0
  951. package/dist/tui/components/ScrollView.js +45 -0
  952. package/dist/tui/components/SessionPicker.d.ts +14 -0
  953. package/dist/tui/components/SessionPicker.js +37 -0
  954. package/dist/tui/components/SlashHint.d.ts +3 -0
  955. package/dist/tui/components/SlashHint.js +16 -0
  956. package/dist/tui/components/SprintHelpers.d.ts +3 -0
  957. package/dist/tui/components/SprintHelpers.js +15 -0
  958. package/dist/tui/components/SprintStatus.d.ts +2 -0
  959. package/dist/tui/components/SprintStatus.js +31 -0
  960. package/dist/tui/components/SprintTaskRow.d.ts +1 -0
  961. package/dist/tui/components/SprintTaskRow.js +8 -0
  962. package/dist/tui/components/StatusBar.d.ts +16 -0
  963. package/dist/tui/components/StatusBar.js +29 -0
  964. package/dist/tui/components/__demos__/CodeEditDemo.d.ts +8 -0
  965. package/dist/tui/components/__demos__/CodeEditDemo.js +85 -0
  966. package/dist/tui/components/code-edit/CodeEditBox.d.ts +7 -0
  967. package/dist/tui/components/code-edit/CodeEditBox.js +16 -0
  968. package/dist/tui/components/code-edit/components/EditBadge.d.ts +10 -0
  969. package/dist/tui/components/code-edit/components/EditBadge.js +14 -0
  970. package/dist/tui/components/code-edit/components/EditItem.d.ts +7 -0
  971. package/dist/tui/components/code-edit/components/EditItem.js +20 -0
  972. package/dist/tui/components/code-edit/components/SyntaxHighlighter.d.ts +11 -0
  973. package/dist/tui/components/code-edit/components/SyntaxHighlighter.js +43 -0
  974. package/dist/tui/components/code-edit/index.d.ts +17 -0
  975. package/dist/tui/components/code-edit/index.js +29 -0
  976. package/dist/tui/components/code-edit/patterns/index.d.ts +6 -0
  977. package/dist/tui/components/code-edit/patterns/index.js +38 -0
  978. package/dist/tui/components/code-edit/patterns/javascript.d.ts +5 -0
  979. package/dist/tui/components/code-edit/patterns/javascript.js +17 -0
  980. package/dist/tui/components/code-edit/patterns/python.d.ts +5 -0
  981. package/dist/tui/components/code-edit/patterns/python.js +14 -0
  982. package/dist/tui/components/code-edit/patterns/typescript.d.ts +5 -0
  983. package/dist/tui/components/code-edit/patterns/typescript.js +20 -0
  984. package/dist/tui/components/code-edit/types.d.ts +32 -0
  985. package/dist/tui/components/code-edit/types.js +5 -0
  986. package/dist/tui/components/code-edit/utils.d.ts +8 -0
  987. package/dist/tui/components/code-edit/utils.js +35 -0
  988. package/dist/tui/components/jitter-free/FrameController.d.ts +13 -0
  989. package/dist/tui/components/jitter-free/FrameController.js +44 -0
  990. package/dist/tui/components/jitter-free/JitterFreeRenderer.d.ts +7 -0
  991. package/dist/tui/components/jitter-free/JitterFreeRenderer.js +22 -0
  992. package/dist/tui/components/jitter-free/SmoothSpinner.d.ts +7 -0
  993. package/dist/tui/components/jitter-free/SmoothSpinner.js +23 -0
  994. package/dist/tui/components/jitter-free/StableCursor.d.ts +7 -0
  995. package/dist/tui/components/jitter-free/StableCursor.js +15 -0
  996. package/dist/tui/components/jitter-free/StableScroll.d.ts +7 -0
  997. package/dist/tui/components/jitter-free/StableScroll.js +27 -0
  998. package/dist/tui/components/jitter-free/config.d.ts +7 -0
  999. package/dist/tui/components/jitter-free/config.js +8 -0
  1000. package/dist/tui/components/jitter-free/hooks/index.d.ts +6 -0
  1001. package/dist/tui/components/jitter-free/hooks/index.js +7 -0
  1002. package/dist/tui/components/jitter-free/hooks/useDebounceRender.d.ts +9 -0
  1003. package/dist/tui/components/jitter-free/hooks/useDebounceRender.js +33 -0
  1004. package/dist/tui/components/jitter-free/hooks/useDoubleBuffer.d.ts +10 -0
  1005. package/dist/tui/components/jitter-free/hooks/useDoubleBuffer.js +24 -0
  1006. package/dist/tui/components/jitter-free/hooks/useScrollBuffer.d.ts +9 -0
  1007. package/dist/tui/components/jitter-free/hooks/useScrollBuffer.js +25 -0
  1008. package/dist/tui/components/jitter-free/index.d.ts +12 -0
  1009. package/dist/tui/components/jitter-free/index.js +17 -0
  1010. package/dist/tui/components/jitter-free/types.d.ts +26 -0
  1011. package/dist/tui/components/jitter-free/types.js +5 -0
  1012. package/dist/tui/components/jitter-free/utils.d.ts +15 -0
  1013. package/dist/tui/components/jitter-free/utils.js +46 -0
  1014. package/dist/tui/components/stream/StreamContainer.d.ts +6 -0
  1015. package/dist/tui/components/stream/StreamContainer.js +75 -0
  1016. package/dist/tui/components/stream/ThinkingStream.d.ts +13 -0
  1017. package/dist/tui/components/stream/ThinkingStream.js +21 -0
  1018. package/dist/tui/components/stream/ToolCallArgs.d.ts +3 -0
  1019. package/dist/tui/components/stream/ToolCallArgs.js +7 -0
  1020. package/dist/tui/components/stream/ToolCallBox.d.ts +13 -0
  1021. package/dist/tui/components/stream/ToolCallBox.js +13 -0
  1022. package/dist/tui/components/stream/ToolItem.d.ts +1 -0
  1023. package/dist/tui/components/stream/ToolItem.js +59 -0
  1024. package/dist/tui/components/stream/index.d.ts +9 -0
  1025. package/dist/tui/components/stream/index.js +8 -0
  1026. package/dist/tui/components/stream/types.d.ts +20 -0
  1027. package/dist/tui/components/stream/types.js +2 -0
  1028. package/dist/tui/components/useKeyInput.d.ts +6 -0
  1029. package/dist/tui/components/useKeyInput.js +28 -0
  1030. package/dist/tui/constants.d.ts +7 -0
  1031. package/dist/tui/constants.js +7 -0
  1032. package/dist/tui/helpers/grapheme.d.ts +27 -0
  1033. package/dist/tui/helpers/grapheme.js +116 -0
  1034. package/dist/tui/helpers.d.ts +7 -0
  1035. package/dist/tui/helpers.js +43 -0
  1036. package/dist/tui/index.d.ts +5 -0
  1037. package/dist/tui/index.js +70 -0
  1038. package/dist/tui/input/index.d.ts +5 -0
  1039. package/dist/tui/input/index.js +2 -0
  1040. package/dist/tui/keybindings.d.ts +10 -0
  1041. package/dist/tui/keybindings.js +94 -0
  1042. package/dist/tui/logo.d.ts +1 -0
  1043. package/dist/tui/logo.js +57 -0
  1044. package/dist/tui/markdown.d.ts +6 -0
  1045. package/dist/tui/markdown.js +27 -0
  1046. package/dist/tui/models.d.ts +142 -0
  1047. package/dist/tui/models.js +47 -0
  1048. package/dist/tui/polyfill.d.ts +3 -0
  1049. package/dist/tui/polyfill.js +20 -0
  1050. package/dist/tui/startup-cta.d.ts +18 -0
  1051. package/dist/tui/startup-cta.js +123 -0
  1052. package/dist/tui/syntax-languages.d.ts +4 -0
  1053. package/dist/tui/syntax-languages.js +42 -0
  1054. package/dist/tui/syntax-tokenizer.d.ts +7 -0
  1055. package/dist/tui/syntax-tokenizer.js +137 -0
  1056. package/dist/tui/syntax.d.ts +2 -0
  1057. package/dist/tui/syntax.js +27 -0
  1058. package/dist/tui/system.d.ts +5 -0
  1059. package/dist/tui/system.js +29 -0
  1060. package/dist/tui/themes.d.ts +19 -0
  1061. package/dist/tui/themes.js +75 -0
  1062. package/dist/tui/tui-types.d.ts +28 -0
  1063. package/dist/tui/tui-types.js +2 -0
  1064. package/dist/tui/useAppProcessor.d.ts +5 -0
  1065. package/dist/tui/useAppProcessor.js +63 -0
  1066. package/dist/tui/useAppSession.d.ts +26 -0
  1067. package/dist/tui/useAppSession.js +57 -0
  1068. package/dist/tui/useAppTaskQueue.d.ts +13 -0
  1069. package/dist/tui/useAppTaskQueue.js +26 -0
  1070. package/dist/tui/useStreamThrottle.d.ts +11 -0
  1071. package/dist/tui/useStreamThrottle.js +39 -0
  1072. package/dist/types.d.ts +182 -0
  1073. package/dist/types.js +13 -0
  1074. package/dist/utils/auth.d.ts +5 -0
  1075. package/dist/utils/auth.js +46 -0
  1076. package/dist/utils/config.d.ts +9 -0
  1077. package/dist/utils/config.js +100 -0
  1078. package/dist/utils/context.d.ts +4 -0
  1079. package/dist/utils/context.js +142 -0
  1080. package/dist/utils/credentials.d.ts +23 -0
  1081. package/dist/utils/credentials.js +69 -0
  1082. package/dist/utils/execution-controller.d.ts +45 -0
  1083. package/dist/utils/execution-controller.js +228 -0
  1084. package/dist/utils/experimental.d.ts +16 -0
  1085. package/dist/utils/experimental.js +23 -0
  1086. package/dist/utils/features.d.ts +18 -0
  1087. package/dist/utils/features.js +38 -0
  1088. package/dist/utils/health-monitor.d.ts +49 -0
  1089. package/dist/utils/health-monitor.js +159 -0
  1090. package/dist/utils/id.d.ts +19 -0
  1091. package/dist/utils/id.js +42 -0
  1092. package/dist/utils/index.d.ts +10 -0
  1093. package/dist/utils/index.js +13 -0
  1094. package/dist/utils/keys.d.ts +12 -0
  1095. package/dist/utils/keys.js +50 -0
  1096. package/dist/utils/logger.d.ts +12 -0
  1097. package/dist/utils/logger.js +89 -0
  1098. package/dist/utils/metrics.d.ts +12 -0
  1099. package/dist/utils/metrics.js +36 -0
  1100. package/dist/utils/paste-handler.d.ts +26 -0
  1101. package/dist/utils/paste-handler.js +140 -0
  1102. package/dist/utils/profile.d.ts +16 -0
  1103. package/dist/utils/profile.js +68 -0
  1104. package/dist/utils/project-tracker.d.ts +8 -0
  1105. package/dist/utils/project-tracker.js +66 -0
  1106. package/dist/utils/safe-exec.d.ts +20 -0
  1107. package/dist/utils/safe-exec.js +32 -0
  1108. package/dist/utils/security-boundary.d.ts +53 -0
  1109. package/dist/utils/security-boundary.js +145 -0
  1110. package/dist/utils/session-cache.d.ts +29 -0
  1111. package/dist/utils/session-cache.js +112 -0
  1112. package/dist/utils/soul.d.ts +4 -0
  1113. package/dist/utils/soul.js +104 -0
  1114. package/dist/utils/sqlite-future.d.ts +35 -0
  1115. package/dist/utils/sqlite-future.js +66 -0
  1116. package/dist/utils/sqlite.d.ts +35 -0
  1117. package/dist/utils/sqlite.js +65 -0
  1118. package/dist/utils/startup-profiler.d.ts +26 -0
  1119. package/dist/utils/startup-profiler.js +61 -0
  1120. package/dist/utils/state.d.ts +9 -0
  1121. package/dist/utils/state.js +29 -0
  1122. package/dist/utils/sum.d.ts +6 -0
  1123. package/dist/utils/sum.js +11 -0
  1124. package/dist/utils/token-counter.d.ts +18 -0
  1125. package/dist/utils/token-counter.js +84 -0
  1126. package/dist/utils/unified-memory.d.ts +80 -0
  1127. package/dist/utils/unified-memory.js +171 -0
  1128. package/dist/utils/update-verify.d.ts +7 -0
  1129. package/dist/utils/update-verify.js +64 -0
  1130. package/dist/voice/browser-extension.d.ts +37 -0
  1131. package/dist/voice/browser-extension.js +97 -0
  1132. package/dist/voice/commands.d.ts +5 -0
  1133. package/dist/voice/commands.js +65 -0
  1134. package/dist/voice/desktop.d.ts +42 -0
  1135. package/dist/voice/desktop.js +254 -0
  1136. package/dist/voice/index.d.ts +16 -0
  1137. package/dist/voice/index.js +123 -0
  1138. package/dist/voice/mobile-bridge.d.ts +12 -0
  1139. package/dist/voice/mobile-bridge.js +139 -0
  1140. package/dist/voice/personal-plex.d.ts +61 -0
  1141. package/dist/voice/personal-plex.js +280 -0
  1142. package/dist/voice/plex.d.ts +19 -0
  1143. package/dist/voice/plex.js +55 -0
  1144. package/dist/voice/recorder.d.ts +10 -0
  1145. package/dist/voice/recorder.js +43 -0
  1146. package/dist/voice/shortcuts.d.ts +16 -0
  1147. package/dist/voice/shortcuts.js +31 -0
  1148. package/dist/voice/transcribe.d.ts +3 -0
  1149. package/dist/voice/transcribe.js +36 -0
  1150. package/dist/voice/tts.d.ts +35 -0
  1151. package/dist/voice/tts.js +190 -0
  1152. package/dist/voice/types.d.ts +25 -0
  1153. package/dist/voice/types.js +2 -0
  1154. package/dist/workspace/store.d.ts +48 -0
  1155. package/dist/workspace/store.js +106 -0
  1156. package/dist_v2/audit/writer.d.ts +23 -0
  1157. package/dist_v2/audit/writer.js +34 -0
  1158. package/dist_v2/auth/keypool.d.ts +62 -0
  1159. package/dist_v2/auth/keypool.js +211 -0
  1160. package/dist_v2/auth/keystore.d.ts +20 -0
  1161. package/dist_v2/auth/keystore.js +45 -0
  1162. package/dist_v2/auth/providers.d.ts +35 -0
  1163. package/dist_v2/auth/providers.js +66 -0
  1164. package/dist_v2/cli/config.d.ts +51 -0
  1165. package/dist_v2/cli/flags.js +2 -0
  1166. package/dist_v2/cli/interactive.js +65 -7
  1167. package/dist_v2/cli/main.js +331 -13
  1168. package/dist_v2/cli/setup.js +2 -2
  1169. package/dist_v2/cli/slash/fleet.d.ts +5 -3
  1170. package/dist_v2/cli/slash/fleet.js +40 -13
  1171. package/dist_v2/cli/subcommands/ask.js +3 -1
  1172. package/dist_v2/cli/subcommands/audit-codebase.d.ts +18 -0
  1173. package/dist_v2/cli/subcommands/audit-codebase.js +148 -0
  1174. package/dist_v2/cli/subcommands/audit.js +36 -11
  1175. package/dist_v2/cli/subcommands/chat.js +3 -1
  1176. package/dist_v2/cli/subcommands/cost.d.ts +15 -0
  1177. package/dist_v2/cli/subcommands/cost.js +143 -0
  1178. package/dist_v2/cli/subcommands/index.js +20 -0
  1179. package/dist_v2/cli/subcommands/kb.d.ts +19 -0
  1180. package/dist_v2/cli/subcommands/kb.js +151 -0
  1181. package/dist_v2/cli/subcommands/keys.js +117 -26
  1182. package/dist_v2/cli/subcommands/ledger.d.ts +9 -0
  1183. package/dist_v2/cli/subcommands/ledger.js +130 -0
  1184. package/dist_v2/cli/subcommands/login.d.ts +9 -4
  1185. package/dist_v2/cli/subcommands/login.js +92 -5
  1186. package/dist_v2/cli/subcommands/memory.d.ts +10 -0
  1187. package/dist_v2/cli/subcommands/memory.js +140 -0
  1188. package/dist_v2/cli/subcommands/models.js +80 -3
  1189. package/dist_v2/cli/subcommands/resume.d.ts +11 -0
  1190. package/dist_v2/cli/subcommands/resume.js +138 -0
  1191. package/dist_v2/cli/subcommands/skills.d.ts +14 -0
  1192. package/dist_v2/cli/subcommands/skills.js +207 -0
  1193. package/dist_v2/cli/subcommands/undo.d.ts +17 -0
  1194. package/dist_v2/cli/subcommands/undo.js +144 -0
  1195. package/dist_v2/cli/subcommands/update.d.ts +42 -0
  1196. package/dist_v2/cli/subcommands/update.js +228 -0
  1197. package/dist_v2/cli/subcommands/verify.d.ts +21 -0
  1198. package/dist_v2/cli/subcommands/verify.js +126 -0
  1199. package/dist_v2/context/compaction.d.ts +22 -0
  1200. package/dist_v2/context/compaction.js +38 -0
  1201. package/dist_v2/context/default-soul.md +36 -0
  1202. package/dist_v2/context/git-state.d.ts +23 -0
  1203. package/dist_v2/context/git-state.js +71 -0
  1204. package/dist_v2/context/ledger.d.ts +58 -0
  1205. package/dist_v2/context/ledger.js +178 -0
  1206. package/dist_v2/context/mode-enforcement.d.ts +32 -0
  1207. package/dist_v2/context/mode-enforcement.js +96 -0
  1208. package/dist_v2/context/mode.d.ts +1 -1
  1209. package/dist_v2/context/mode.js +5 -1
  1210. package/dist_v2/context/primer.d.ts +45 -0
  1211. package/dist_v2/context/primer.js +81 -0
  1212. package/dist_v2/context/soul.d.ts +31 -0
  1213. package/dist_v2/context/soul.js +63 -0
  1214. package/dist_v2/extensions/api.d.ts +65 -0
  1215. package/dist_v2/extensions/api.js +126 -0
  1216. package/dist_v2/fleet/cli-command.js +56 -6
  1217. package/dist_v2/fleet/runner.js +18 -4
  1218. package/dist_v2/fleet/types.d.ts +4 -0
  1219. package/dist_v2/hooks/config-bridge.d.ts +22 -0
  1220. package/dist_v2/hooks/config-bridge.js +117 -0
  1221. package/dist_v2/intelligence/models-refresh.d.ts +52 -0
  1222. package/dist_v2/intelligence/models-refresh.js +82 -0
  1223. package/dist_v2/intelligence/prices.d.ts +46 -0
  1224. package/dist_v2/intelligence/prices.js +241 -3
  1225. package/dist_v2/kernel/agent-loop.js +10 -0
  1226. package/dist_v2/mcp/client.d.ts +5 -1
  1227. package/dist_v2/mcp/client.js +34 -4
  1228. package/dist_v2/mcp/loader.d.ts +36 -0
  1229. package/dist_v2/mcp/loader.js +51 -0
  1230. package/dist_v2/mcp/transport.d.ts +44 -0
  1231. package/dist_v2/mcp/transport.js +120 -0
  1232. package/dist_v2/providers/define-openai-compat.d.ts +53 -0
  1233. package/dist_v2/providers/define-openai-compat.js +69 -0
  1234. package/dist_v2/providers/dispatch.js +22 -20
  1235. package/dist_v2/providers/nvidia.js +4 -3
  1236. package/dist_v2/providers/openai-compat.js +49 -2
  1237. package/dist_v2/providers/openrouter.js +7 -2
  1238. package/dist_v2/providers/presets.d.ts +30 -0
  1239. package/dist_v2/providers/presets.js +80 -0
  1240. package/dist_v2/providers/rate-limiter.d.ts +50 -0
  1241. package/dist_v2/providers/rate-limiter.js +93 -0
  1242. package/dist_v2/security/skill-scanner.d.ts +43 -0
  1243. package/dist_v2/security/skill-scanner.js +144 -0
  1244. package/dist_v2/skills/loader.js +50 -5
  1245. package/dist_v2/tools/git.js +8 -0
  1246. package/dist_v2/tui/ink/App.js +143 -13
  1247. package/dist_v2/tui/ink/components/ModelPicker.js +7 -1
  1248. package/dist_v2/tui/ink/components/StatusBar.d.ts +8 -0
  1249. package/dist_v2/tui/ink/components/StatusBar.js +20 -1
  1250. package/dist_v2/tui/theme-loader.d.ts +29 -0
  1251. package/dist_v2/tui/theme-loader.js +67 -0
  1252. package/docs/ARCHITECTURE.md +163 -0
  1253. package/docs/ROADMAP.md +52 -0
  1254. package/docs/agents/arniko-plugin-spec.md +123 -0
  1255. package/docs/agents/files-and-search.md +87 -0
  1256. package/docs/agents/skill-security.md +127 -0
  1257. package/docs/architecture/001-dependency-pinning.md +37 -0
  1258. package/docs/architecture/002-mesh-security.md +36 -0
  1259. package/docs/architecture/003-file-size-limits.md +37 -0
  1260. package/docs/architecture/004-trust-levels.md +40 -0
  1261. package/docs/audits/HY3-AUDIT-2026-04-25.md +47 -0
  1262. package/docs/memory/architecture-efficiency.md +114 -0
  1263. package/docs/memory/km-architecture.md +116 -0
  1264. package/extensions/vscode/README.md +67 -0
  1265. package/extensions/vscode/package.json +105 -0
  1266. package/package.json +61 -94
  1267. package/promo/assets/audio/dirgha-ambient-150s.m4a +0 -0
  1268. package/promo/hyperframes.json +9 -0
  1269. package/promo/index.html +363 -0
  1270. package/promo/meta.json +5 -0
  1271. package/scripts/gen-skill-md.mjs +97 -0
  1272. package/scripts/preview-logos.mjs +113 -0
  1273. package/scripts/qa-app/aliases_test.mjs +70 -0
  1274. package/scripts/qa-app/audit_test.mjs +71 -0
  1275. package/scripts/qa-app/browser_test.mjs +60 -0
  1276. package/scripts/qa-app/cancel_offline_test.mjs +151 -0
  1277. package/scripts/qa-app/cancel_test.mjs +112 -0
  1278. package/scripts/qa-app/checkpoint_test.mjs +87 -0
  1279. package/scripts/qa-app/compaction_test.mjs +112 -0
  1280. package/scripts/qa-app/cost_test.mjs +72 -0
  1281. package/scripts/qa-app/error_classifier_test.mjs +81 -0
  1282. package/scripts/qa-app/extensions_test.mjs +148 -0
  1283. package/scripts/qa-app/git_state_test.mjs +89 -0
  1284. package/scripts/qa-app/hooks_test.mjs +105 -0
  1285. package/scripts/qa-app/ink_smoke.py +151 -0
  1286. package/scripts/qa-app/ink_unit_test.mjs +176 -0
  1287. package/scripts/qa-app/kb_test.mjs +85 -0
  1288. package/scripts/qa-app/kernel_hooks_test.mjs +178 -0
  1289. package/scripts/qa-app/keypool_test.mjs +105 -0
  1290. package/scripts/qa-app/keys_test.mjs +73 -0
  1291. package/scripts/qa-app/ledger_search_test.mjs +74 -0
  1292. package/scripts/qa-app/ledger_test.mjs +73 -0
  1293. package/scripts/qa-app/login_byok_test.mjs +84 -0
  1294. package/scripts/qa-app/mcp_oauth_test.mjs +109 -0
  1295. package/scripts/qa-app/mcp_test.mjs +129 -0
  1296. package/scripts/qa-app/mode_enforcement_test.mjs +88 -0
  1297. package/scripts/qa-app/models_refresh_test.mjs +155 -0
  1298. package/scripts/qa-app/nim_stream_test.mjs +132 -0
  1299. package/scripts/qa-app/output/admin-secrets.json +17 -0
  1300. package/scripts/qa-app/output/admin-secrets.png +0 -0
  1301. package/scripts/qa-app/output/agents.json +17 -0
  1302. package/scripts/qa-app/output/agents.png +0 -0
  1303. package/scripts/qa-app/output/build.json +17 -0
  1304. package/scripts/qa-app/output/build.png +0 -0
  1305. package/scripts/qa-app/output/chat.json +17 -0
  1306. package/scripts/qa-app/output/chat.png +0 -0
  1307. package/scripts/qa-app/output/deploy.json +17 -0
  1308. package/scripts/qa-app/output/deploy.png +0 -0
  1309. package/scripts/qa-app/output/home.json +20 -0
  1310. package/scripts/qa-app/output/home.png +0 -0
  1311. package/scripts/qa-app/output/media.json +17 -0
  1312. package/scripts/qa-app/output/media.png +0 -0
  1313. package/scripts/qa-app/output/memory.json +17 -0
  1314. package/scripts/qa-app/output/memory.png +0 -0
  1315. package/scripts/qa-app/output/models.json +17 -0
  1316. package/scripts/qa-app/output/models.png +0 -0
  1317. package/scripts/qa-app/output/report.json +240 -0
  1318. package/scripts/qa-app/output/report.md +307 -0
  1319. package/scripts/qa-app/output/research.json +17 -0
  1320. package/scripts/qa-app/output/research.png +0 -0
  1321. package/scripts/qa-app/output/security.json +17 -0
  1322. package/scripts/qa-app/output/security.png +0 -0
  1323. package/scripts/qa-app/output/settings.json +17 -0
  1324. package/scripts/qa-app/output/settings.png +0 -0
  1325. package/scripts/qa-app/output/skills.json +17 -0
  1326. package/scripts/qa-app/output/skills.png +0 -0
  1327. package/scripts/qa-app/output/store.json +17 -0
  1328. package/scripts/qa-app/output/store.png +0 -0
  1329. package/scripts/qa-app/primer_test.mjs +71 -0
  1330. package/scripts/qa-app/provider_matrix.mjs +176 -0
  1331. package/scripts/qa-app/qa.py +271 -0
  1332. package/scripts/qa-app/rate_limit_test.mjs +127 -0
  1333. package/scripts/qa-app/registry_test.mjs +57 -0
  1334. package/scripts/qa-app/rescore.py +87 -0
  1335. package/scripts/qa-app/routes.json +20 -0
  1336. package/scripts/qa-app/run-all.mjs +158 -0
  1337. package/scripts/qa-app/session_test.mjs +81 -0
  1338. package/scripts/qa-app/skill_scanner_test.mjs +156 -0
  1339. package/scripts/qa-app/skills_install_test.mjs +100 -0
  1340. package/scripts/qa-app/skills_test.mjs +98 -0
  1341. package/scripts/qa-app/slash_audit.mjs +97 -0
  1342. package/scripts/qa-app/soul_test.mjs +79 -0
  1343. package/scripts/qa-app/task_tool_test.mjs +148 -0
  1344. package/scripts/qa-app/themes_test.mjs +56 -0
  1345. package/scripts/qa-app/tmux_debug.sh +37 -0
  1346. package/scripts/qa-app/tmux_minimal.sh +66 -0
  1347. package/scripts/qa-app/tmux_smoke.sh +119 -0
  1348. package/scripts/qa-app/tokrate_test.mjs +108 -0
  1349. package/scripts/qa-app/tool_registry_test.mjs +118 -0
  1350. package/scripts/qa-app/tools_smoke.mjs +90 -0
  1351. package/scripts/qa-app/transport_test.mjs +88 -0
  1352. package/scripts/qa-app/undo_test.mjs +136 -0
  1353. package/scripts/qa-app/update_test.mjs +94 -0
  1354. package/scripts/test-browser-integration.sh +162 -0
  1355. package/scripts/verify-deps.sh +19 -0
  1356. package/src_v2/README.md +43 -0
  1357. package/src_v2/acp/index.ts +1 -0
  1358. package/src_v2/acp/server.ts +162 -0
  1359. package/src_v2/audit/writer.ts +43 -0
  1360. package/src_v2/auth/keypool.ts +216 -0
  1361. package/src_v2/auth/keystore.ts +43 -0
  1362. package/src_v2/auth/providers.ts +83 -0
  1363. package/src_v2/cli/auth-cmd.ts +78 -0
  1364. package/src_v2/cli/config.ts +130 -0
  1365. package/src_v2/cli/flags.ts +75 -0
  1366. package/src_v2/cli/flows/full-cycle.ts +72 -0
  1367. package/src_v2/cli/flows/index.ts +2 -0
  1368. package/src_v2/cli/flows/tarball.ts +55 -0
  1369. package/src_v2/cli/index.ts +4 -0
  1370. package/src_v2/cli/interactive.ts +307 -0
  1371. package/src_v2/cli/main.ts +486 -0
  1372. package/src_v2/cli/models-cmd.ts +62 -0
  1373. package/src_v2/cli/setup.ts +143 -0
  1374. package/src_v2/cli/slash/account.ts +62 -0
  1375. package/src_v2/cli/slash/clear.ts +17 -0
  1376. package/src_v2/cli/slash/compact.ts +15 -0
  1377. package/src_v2/cli/slash/config.ts +53 -0
  1378. package/src_v2/cli/slash/exit.ts +18 -0
  1379. package/src_v2/cli/slash/fleet.ts +52 -0
  1380. package/src_v2/cli/slash/help.ts +35 -0
  1381. package/src_v2/cli/slash/history.ts +41 -0
  1382. package/src_v2/cli/slash/index.ts +79 -0
  1383. package/src_v2/cli/slash/init.ts +62 -0
  1384. package/src_v2/cli/slash/keys.ts +102 -0
  1385. package/src_v2/cli/slash/login.ts +55 -0
  1386. package/src_v2/cli/slash/memory.ts +102 -0
  1387. package/src_v2/cli/slash/mode.ts +32 -0
  1388. package/src_v2/cli/slash/models.ts +79 -0
  1389. package/src_v2/cli/slash/resume.ts +26 -0
  1390. package/src_v2/cli/slash/session.ts +73 -0
  1391. package/src_v2/cli/slash/setup.ts +48 -0
  1392. package/src_v2/cli/slash/status.ts +38 -0
  1393. package/src_v2/cli/slash/theme.ts +54 -0
  1394. package/src_v2/cli/slash/types.ts +16 -0
  1395. package/src_v2/cli/slash/upgrade.ts +73 -0
  1396. package/src_v2/cli/slash.ts +128 -0
  1397. package/src_v2/cli/subcommands/ask.ts +83 -0
  1398. package/src_v2/cli/subcommands/audit-codebase.ts +161 -0
  1399. package/src_v2/cli/subcommands/audit.ts +152 -0
  1400. package/src_v2/cli/subcommands/chat.ts +72 -0
  1401. package/src_v2/cli/subcommands/compact.ts +110 -0
  1402. package/src_v2/cli/subcommands/cost.ts +157 -0
  1403. package/src_v2/cli/subcommands/doctor.ts +121 -0
  1404. package/src_v2/cli/subcommands/export-session.ts +63 -0
  1405. package/src_v2/cli/subcommands/import-session.ts +87 -0
  1406. package/src_v2/cli/subcommands/index.ts +99 -0
  1407. package/src_v2/cli/subcommands/init.ts +78 -0
  1408. package/src_v2/cli/subcommands/kb.ts +151 -0
  1409. package/src_v2/cli/subcommands/keys.ts +197 -0
  1410. package/src_v2/cli/subcommands/ledger.ts +118 -0
  1411. package/src_v2/cli/subcommands/login.ts +149 -0
  1412. package/src_v2/cli/subcommands/logout.ts +24 -0
  1413. package/src_v2/cli/subcommands/memory.ts +124 -0
  1414. package/src_v2/cli/subcommands/models.ts +210 -0
  1415. package/src_v2/cli/subcommands/resume.ts +142 -0
  1416. package/src_v2/cli/subcommands/setup.ts +111 -0
  1417. package/src_v2/cli/subcommands/skills.ts +190 -0
  1418. package/src_v2/cli/subcommands/stats.ts +151 -0
  1419. package/src_v2/cli/subcommands/status.ts +101 -0
  1420. package/src_v2/cli/subcommands/undo.ts +139 -0
  1421. package/src_v2/cli/subcommands/update.ts +219 -0
  1422. package/src_v2/cli/subcommands/verify.ts +147 -0
  1423. package/src_v2/cli/submit-paper.ts +94 -0
  1424. package/src_v2/context/_fts.ts +251 -0
  1425. package/src_v2/context/branch.ts +86 -0
  1426. package/src_v2/context/compaction.ts +199 -0
  1427. package/src_v2/context/default-soul.md +36 -0
  1428. package/src_v2/context/git-state.ts +78 -0
  1429. package/src_v2/context/index.ts +5 -0
  1430. package/src_v2/context/knowledge.ts +181 -0
  1431. package/src_v2/context/ledger.ts +197 -0
  1432. package/src_v2/context/memory.ts +337 -0
  1433. package/src_v2/context/mode-enforcement.ts +87 -0
  1434. package/src_v2/context/mode.ts +97 -0
  1435. package/src_v2/context/primer.ts +88 -0
  1436. package/src_v2/context/session.ts +115 -0
  1437. package/src_v2/context/soul.ts +72 -0
  1438. package/src_v2/daemon/index.ts +2 -0
  1439. package/src_v2/daemon/protocol.ts +62 -0
  1440. package/src_v2/daemon/server.ts +228 -0
  1441. package/src_v2/eval/index.ts +5 -0
  1442. package/src_v2/eval/regression.ts +116 -0
  1443. package/src_v2/eval/reporter.ts +35 -0
  1444. package/src_v2/eval/swe-bench.ts +32 -0
  1445. package/src_v2/eval/terminal-bench.ts +27 -0
  1446. package/src_v2/eval/types.ts +31 -0
  1447. package/src_v2/extensions/api.ts +144 -0
  1448. package/src_v2/fleet/apply-back.ts +210 -0
  1449. package/src_v2/fleet/cli-command.ts +423 -0
  1450. package/src_v2/fleet/index.ts +37 -0
  1451. package/src_v2/fleet/runner.ts +412 -0
  1452. package/src_v2/fleet/tripleshot.ts +282 -0
  1453. package/src_v2/fleet/types.ts +210 -0
  1454. package/src_v2/fleet/worktree.ts +189 -0
  1455. package/src_v2/hooks/config-bridge.ts +116 -0
  1456. package/src_v2/hooks/index.ts +1 -0
  1457. package/src_v2/hooks/registry.ts +57 -0
  1458. package/src_v2/index.ts +51 -0
  1459. package/src_v2/integrations/arniko-client.ts +108 -0
  1460. package/src_v2/integrations/auth.ts +90 -0
  1461. package/src_v2/integrations/billing.ts +184 -0
  1462. package/src_v2/integrations/bucky-client.ts +93 -0
  1463. package/src_v2/integrations/deploy-client.ts +113 -0
  1464. package/src_v2/integrations/device-auth.ts +224 -0
  1465. package/src_v2/integrations/entitlements.ts +80 -0
  1466. package/src_v2/integrations/http.ts +111 -0
  1467. package/src_v2/integrations/index.ts +17 -0
  1468. package/src_v2/intelligence/cost.ts +80 -0
  1469. package/src_v2/intelligence/error-classifier.ts +76 -0
  1470. package/src_v2/intelligence/index.ts +5 -0
  1471. package/src_v2/intelligence/models-refresh.ts +105 -0
  1472. package/src_v2/intelligence/prices.ts +292 -0
  1473. package/src_v2/intelligence/smart-router.ts +75 -0
  1474. package/src_v2/intelligence/telemetry.ts +50 -0
  1475. package/src_v2/kernel/agent-loop.ts +207 -0
  1476. package/src_v2/kernel/event-stream.ts +122 -0
  1477. package/src_v2/kernel/index.ts +4 -0
  1478. package/src_v2/kernel/message.ts +130 -0
  1479. package/src_v2/kernel/types.ts +175 -0
  1480. package/src_v2/mcp/client.ts +132 -0
  1481. package/src_v2/mcp/index.ts +3 -0
  1482. package/src_v2/mcp/loader.ts +76 -0
  1483. package/src_v2/mcp/tool-bridge.ts +42 -0
  1484. package/src_v2/mcp/transport.ts +217 -0
  1485. package/src_v2/parity/index.ts +3 -0
  1486. package/src_v2/parity/mock-openai-compat.ts +49 -0
  1487. package/src_v2/parity/runner.ts +95 -0
  1488. package/src_v2/parity/scenarios.ts +85 -0
  1489. package/src_v2/providers/anthropic.ts +196 -0
  1490. package/src_v2/providers/define-openai-compat.ts +107 -0
  1491. package/src_v2/providers/dispatch.ts +65 -0
  1492. package/src_v2/providers/fireworks.ts +51 -0
  1493. package/src_v2/providers/gemini.ts +184 -0
  1494. package/src_v2/providers/http.ts +201 -0
  1495. package/src_v2/providers/iface.ts +31 -0
  1496. package/src_v2/providers/index.ts +63 -0
  1497. package/src_v2/providers/nvidia.ts +170 -0
  1498. package/src_v2/providers/ollama.ts +45 -0
  1499. package/src_v2/providers/openai-compat.ts +313 -0
  1500. package/src_v2/providers/openai.ts +124 -0
  1501. package/src_v2/providers/openrouter.ts +83 -0
  1502. package/src_v2/providers/presets.ts +90 -0
  1503. package/src_v2/providers/rate-limiter.ts +103 -0
  1504. package/src_v2/safety/approval-bus.ts +65 -0
  1505. package/src_v2/safety/audit-log.ts +100 -0
  1506. package/src_v2/safety/index.ts +4 -0
  1507. package/src_v2/safety/policy.ts +150 -0
  1508. package/src_v2/safety/sandbox/bwrap.ts +51 -0
  1509. package/src_v2/safety/sandbox/iface.ts +33 -0
  1510. package/src_v2/safety/sandbox/index.ts +7 -0
  1511. package/src_v2/safety/sandbox/landlock.ts +29 -0
  1512. package/src_v2/safety/sandbox/noop.ts +60 -0
  1513. package/src_v2/safety/sandbox/seatbelt.ts +53 -0
  1514. package/src_v2/safety/sandbox/select.ts +37 -0
  1515. package/src_v2/safety/sandbox/windows.ts +26 -0
  1516. package/src_v2/security/skill-scanner.ts +167 -0
  1517. package/src_v2/skills/index.ts +3 -0
  1518. package/src_v2/skills/loader.ts +150 -0
  1519. package/src_v2/skills/matcher.ts +66 -0
  1520. package/src_v2/skills/runtime.ts +47 -0
  1521. package/src_v2/subagents/delegator.ts +116 -0
  1522. package/src_v2/subagents/index.ts +2 -0
  1523. package/src_v2/subagents/pool.ts +41 -0
  1524. package/src_v2/tools/browser.ts +249 -0
  1525. package/src_v2/tools/checkpoint.ts +278 -0
  1526. package/src_v2/tools/cron.ts +191 -0
  1527. package/src_v2/tools/diff.ts +109 -0
  1528. package/src_v2/tools/exec.ts +62 -0
  1529. package/src_v2/tools/fs-edit.ts +96 -0
  1530. package/src_v2/tools/fs-ls.ts +64 -0
  1531. package/src_v2/tools/fs-read.ts +70 -0
  1532. package/src_v2/tools/fs-write.ts +57 -0
  1533. package/src_v2/tools/git.ts +78 -0
  1534. package/src_v2/tools/index.ts +56 -0
  1535. package/src_v2/tools/multimodal.ts +492 -0
  1536. package/src_v2/tools/permission.ts +56 -0
  1537. package/src_v2/tools/registry.ts +97 -0
  1538. package/src_v2/tools/search-glob.ts +97 -0
  1539. package/src_v2/tools/search-grep.ts +116 -0
  1540. package/src_v2/tools/shell.ts +97 -0
  1541. package/src_v2/tools/task.ts +49 -0
  1542. package/src_v2/tui/approval.ts +57 -0
  1543. package/src_v2/tui/index.ts +4 -0
  1544. package/src_v2/tui/ink/App.tsx +439 -0
  1545. package/src_v2/tui/ink/components/AtFileComplete.tsx +183 -0
  1546. package/src_v2/tui/ink/components/HelpOverlay.tsx +181 -0
  1547. package/src_v2/tui/ink/components/InputBox.tsx +199 -0
  1548. package/src_v2/tui/ink/components/Logo.tsx +77 -0
  1549. package/src_v2/tui/ink/components/ModelPicker.tsx +148 -0
  1550. package/src_v2/tui/ink/components/PasteCollapse.tsx +98 -0
  1551. package/src_v2/tui/ink/components/StatusBar.tsx +98 -0
  1552. package/src_v2/tui/ink/components/StreamingText.tsx +30 -0
  1553. package/src_v2/tui/ink/components/ThinkingBlock.tsx +39 -0
  1554. package/src_v2/tui/ink/components/ToolBox.tsx +95 -0
  1555. package/src_v2/tui/ink/components/vim-bindings.ts +150 -0
  1556. package/src_v2/tui/ink/index.ts +69 -0
  1557. package/src_v2/tui/ink/use-event-projection.ts +161 -0
  1558. package/src_v2/tui/ink/use-overlays.ts +69 -0
  1559. package/src_v2/tui/renderer.ts +112 -0
  1560. package/src_v2/tui/status-bar.ts +25 -0
  1561. package/src_v2/tui/theme-loader.ts +68 -0
  1562. package/src_v2/tui/theme.ts +81 -0
  1563. package/src_v2/utils/json-repair.ts +47 -0
  1564. package/tsconfig.tsbuildinfo +1 -0
  1565. package/tsconfig.v2.json +27 -0
@@ -0,0 +1,23 @@
1
+ # Changesets
2
+
3
+ Versioning + CHANGELOG entries for `@dirgha/code` are produced via [changesets](https://github.com/changesets/changesets).
4
+
5
+ ## Quick reference
6
+
7
+ ```bash
8
+ # Author a changeset (interactive)
9
+ npx changeset
10
+
11
+ # Apply pending changesets: bump versions + write CHANGELOG entries
12
+ npx changeset version
13
+
14
+ # Publish to npm (after review + commit)
15
+ npx changeset publish
16
+ ```
17
+
18
+ ## Convention
19
+
20
+ - Every PR that affects the published package adds a changeset under `.changeset/<random-name>.md`.
21
+ - The changeset frontmatter is `@dirgha/code: minor|patch|major` plus a one-line summary.
22
+ - Entries are flushed into `CHANGELOG.md` on the next `changeset version` run.
23
+ - Hand-written CHANGELOG edits stay above the auto-generated section.
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json",
3
+ "changelog": "@changesets/cli/changelog",
4
+ "commit": false,
5
+ "fixed": [],
6
+ "linked": [],
7
+ "access": "public",
8
+ "baseBranch": "main",
9
+ "updateInternalDependencies": "patch",
10
+ "ignore": []
11
+ }
@@ -0,0 +1,5 @@
1
+ ---
2
+ "@dirgha/code": minor
3
+ ---
4
+
5
+ Soul, multi-key BYOK pool, dirgha update, dirgha models refresh, TS extensions API, dirgha undo, ledger ranked search, MCP OAuth bearer rotation, StatusBar tok/s, dirgha cost, ask mode, 34 model aliases, git_state injection, compaction telemetry, audit-codebase one-liner. Real bugs fixed: NIM delta.reasoning streaming, mid-session failover, BYOK env hydration, login flag passthrough, task tool wiring, ErrorClassifier wiring, skills install URL flag-injection rejection.
package/CHANGELOG.md ADDED
@@ -0,0 +1,135 @@
1
+ # Dirgha CLI — Changelog
2
+
3
+ ## 1.4.0 — 2026-04-25
4
+
5
+ ### Added
6
+
7
+ - **Soul.** Short Markdown persona shipped at `~/.dirgha/soul.md` (override) or the default that ships with the package. Defines tone, boundaries, end-of-turn norms. 4 KB cap.
8
+ - **Multi-key BYOK pool** with priority + LRU + cooldown + atomic file lock. 17 known providers (anthropic, openai, gemini, openrouter, nvidia, fireworks, deepseek, groq, cerebras, together, deepinfra, mistral, xai, perplexity, cohere, kimi, zai). `dirgha keys pool {add,list,remove,clear}`.
9
+ - **`dirgha login --provider=<id> [--key=…]`** interactive BYOK flow with hidden prompt fallback. Mode 0600.
10
+ - **`dirgha update --check / --self / --packages [--yes]`** — npm registry probing, prompt-gated upgrade, audit-logged.
11
+ - **`dirgha models refresh`** — parallel `/v1/models` fetch across configured providers, 24 h cache. Live: 499 models in <1 s.
12
+ - **TypeScript / ESM extensions API** — `~/.dirgha/extensions/<name>/index.mjs` exports a default function that calls `api.registerTool / registerSlash / registerSubcommand / on(event)`. Isolated load failures.
13
+ - **`dirgha undo [N]`** rolls back N user-turns from the most-recent session with a `.bak` snapshot. `--list / --json / --session=<id>` flags.
14
+ - **TF-IDF cosine search over the JSONL ledger** — `dirgha ledger search` defaults to ranked, `--exact` falls back to substring.
15
+ - **MCP HTTP transport** with async `bearerProvider` for OAuth token rotation per request.
16
+ - **StatusBar live tok/s readout** in green when busy ≥ 250 ms with non-zero output.
17
+ - **`dirgha cost {today,day,week,all}`** — reads the audit log, folds USD via the price registry.
18
+ - **`ask` mode** (read-only Q&A) — kernel-hook gate blocks every write tool. Cyan `[ASK]` badge.
19
+ - **34 model aliases** — `kimi`, `opus`, `sonnet`, `haiku`, `gemini`, `flash`, `deepseek`, `llama`, `ling`, `hy3`, … resolved before routing in main + resume + ask + chat + verify + fleet.
20
+ - **Workspace `git_state` injection** — branch + dirty + last 5 commits + staged diff (capped 4 KB) wired into the system prompt for interactive sessions.
21
+ - **Compaction telemetry** — `[compacted] X → Y tokens (-Z%)` banner + `kind:compaction` audit entry.
22
+ - `docs/ARCHITECTURE.md` + `docs/ROADMAP.md` + `docs/audits/HY3-AUDIT-2026-04-25.md`.
23
+
24
+ ### Fixed
25
+
26
+ - **NIM streaming** silently dropped content on `deepseek-v4-flash` because the parser only recognised `delta.reasoning_content`, not `delta.reasoning`. Both keys are now accepted.
27
+ - **NIM + OR per-call timeouts** were 60 s / 120 s — too tight for multi-turn reasoning models. Bumped to 300 s.
28
+ - **Mid-session failover** previously triggered only on turn 0 errors. It now resumes from `result.messages` with `maxTurns − turnCount` budget remaining.
29
+ - **`dirgha keys set <ENV>` never reached providers** because the keystore wasn't hydrated into `process.env` at startup. Fixed; shell env still wins.
30
+ - **Login subcommand flags swallowed** by the top-level parser. Now passed through verbatim.
31
+ - **`task` tool was implemented but never registered** with the runtime tool registry. Wired in main.ts via SubagentDelegator.
32
+ - **ErrorClassifier was implemented but never instantiated.** Now wired into runAgentLoop in all three entry points.
33
+ - **`skills install <url>` flag injection** — defensively reject URLs starting with `-`.
34
+ - **Test paths hardcoded** to absolute prefixes — now portable via `import.meta.url`.
35
+
36
+ ### Test floor
37
+
38
+ `npm run test:cli:offline` — **38 / 38 green in 16 s**. New suites this release: keypool (19/19), soul (17/17), update (23/23), models-refresh (24/24), extensions (29/29), nim-stream (10/10).
39
+
40
+ ### Dogfood evidence
41
+
42
+ The 1.4.0 features were built using `dirgha -m hy3` as the implementation worker. The promo video at `changelog/1.4.1-promo.mp4` was authored from a brief and rendered by hyperframes.
43
+
44
+ ## 0.2.0-beta.1 (2026-04-24) — new core + NVIDIA streaming fix
45
+
46
+ Second-generation CLI core under `src_v2/`, shipped as the `dirgha-v2` binary alongside the existing `dirgha` binary so users can switch on demand during the beta.
47
+
48
+ ### Added (v2 core)
49
+
50
+ - Layered architecture with strict bottom-up dependency direction.
51
+ - Kernel: agent loop (ReAct + plan-execute hybrid), typed event stream, message assembly.
52
+ - Providers: unified interface + one canonical HTTP helper + adapters for NVIDIA NIM, OpenRouter (including the free-tier Ling 2.6 1T code workhorse), OpenAI, Anthropic (native Messages API), Google Gemini, Ollama, and a deprecated Fireworks shim.
53
+ - Tools: typed registry with per-model sanitisation, permission seam, diff engine, eight built-in tools (fs_read / fs_write / fs_edit / fs_ls / shell / search_grep / search_glob / git).
54
+ - Context: file-backed memory store, append-only JSONL sessions, automatic compaction via the summariser model, session branching.
55
+ - Extensions: skill loader (project / user / npm), MCP stdio client, subagent delegator + pool (with `task` tool), lifecycle hook registry.
56
+ - Surfaces: streaming terminal renderer, readline-based interactive REPL with slash commands, JSON-RPC daemon protocol + server, ACP adapter for IDE embedding.
57
+ - Safety: declarative policy engine, approval bus with pluggable subscribers, sandbox adapters for Seatbelt / Landlock (fallback) / bubblewrap / Windows / noop, hash-chained audit log.
58
+ - Intelligence: smart router (cheap vs. strong), provider-agnostic error classifier with recovery hints, cost tracker with per-session budgets, opt-in telemetry.
59
+ - Parity harness with scripted streaming / tool-call / unicode scenarios and a pluggable mock SSE server.
60
+ - Eval harness scaffold (internal regression runner, SWE-Bench / Terminal-Bench stubs, reporter).
61
+ - Integration clients: device-code auth flow, full Bucky surface (≈19 endpoints), Arniko security scanner with bootstrap helper, Dirgha Deploy projects + deployments + tarball upload + SSE log stream, entitlements check.
62
+ - Full-cycle composition flow (`plan → security scan → register → deploy → logs`).
63
+
64
+ ### Fixed
65
+
66
+ - **NVIDIA NIM streaming stutter** (structural).
67
+ Root cause: prior implementation sent `Content-Type: application/json` alongside `Accept: application/json`, breaking NIM's SSE content negotiation and producing truncated chunks. The v2 provider layer owns all HTTP headers in a single module; `Accept: text/event-stream` for streaming responses, `Content-Type: application/json` only when a request body is present, and the `extraHeaders` escape hatch explicitly rejects `accept` and `content-type` overrides. The class of bug cannot recur.
68
+
69
+ ### Policy
70
+
71
+ - No source file, comment, identifier, or string literal in the v2 tree references any competing coding-agent CLI by name. Design documentation under `docs/dirgha-code/2026-04-23/` is the sole place competitor architectures are discussed, and those documents are internal reference material only.
72
+
73
+ ## 0.1.0 (2026-04-20) — first public release
74
+
75
+ **Initial ship.** All surface stable; 27 slash command modules active, 85 user-facing slash commands, universal `--json` output, parallel multi-agent fleet.
76
+
77
+ ### Added
78
+
79
+ - **Fleet** — parallel multi-agent in isolated git worktrees (`src/fleet/`)
80
+ - `dirgha fleet launch <goal>` — decomposes goal, spawns N agents in parallel worktrees
81
+ - `dirgha fleet triple <goal>` — 3 variants (conservative/balanced/bold) + judge picks winner
82
+ - `dirgha fleet merge <agent-id>` — transient-commit 3-way apply-back (maw pattern)
83
+ - `dirgha fleet list` / `dirgha fleet cleanup`
84
+ - FleetPanel TUI live dashboard
85
+ - **Hub** — CLI-Anything plugin system (`dirgha hub search|install|list|remove|info|categories`)
86
+ - **Universal `--json`** — every command supports both `dirgha --json <cmd>` and `<cmd> --json`; output envelope is `{data, text, exitCode, command, timestamp, meta: {durationMs}}`
87
+ - **`/side <prompt>`** — Codex-style ephemeral sub-agent fork; doesn't pollute main history
88
+ - **Modal `/help`** — searchable overlay (type to filter, ↑↓ scroll, q/Esc close)
89
+ - **Spinner + elapsed time** on in-flight tool cells
90
+ - **Inline paste-collapse** — long pastes render as `[paste: N lines]` with first-line preview
91
+ - **Paste-burst detector** — Windows/terminal-safe; rapid `\n`-bursts coalesce instead of early-submitting
92
+ - **Fleet indicator** in status bar — `fleet × N` when ≥2 tools run in parallel
93
+ - **Auto-generated SKILL.md** on every `npm run build` (57 commands documented)
94
+ - **`__dump_spec`** — machine-readable commander introspection for tooling
95
+
96
+ ### Fixed
97
+
98
+ - Tool calls piling up as "running…" — `onToolResult` now wired to agent loop
99
+ - StreamContainer event order — tools + text now interleave chronologically
100
+ - User prompt text-tearing on long pastes — width-constrained Boxes
101
+ - `dirgha hub --help` launched TUI instead of showing help (missing from SUBCOMMANDS)
102
+ - `dirgha ask` 500 — gateway URL was `/api/chat/completions` (broken) → `/api/cli/completions`
103
+ - NVIDIA BYOK model routing — added fallback chains for `minimaxai/minimax-m2.7` → `minimax-m2` → OpenRouter free tier
104
+ - Status bar `holo` phantom text removed
105
+ - Duplicate "⏳ queued" indicators
106
+ - User prompt disappearing on submit — now echoes immediately
107
+
108
+ ### Removed
109
+
110
+ - 11 broken slash commands disabled (depended on missing `ctx.print` / `ctx.stream.markdown`): `/drop`, `/undo`, `/what`, `/screen`, `/scan`, `/secrets`, and all `/voice*`, `/net*`, `/fs*`, `/team*`, `/consensus*`, `/agent-*` families. Modules kept for future fix. See `docs/TUI_PARITY_ROADMAP.md`.
111
+ - 4 failing/cron GitHub Actions workflows (cost burn)
112
+
113
+ ### Infrastructure
114
+
115
+ - Auto-SKILL.md regen as `postbuild` step
116
+ - `scripts/gen-skill-md.mjs` introspects commander at runtime
117
+ - `src/agent/output.ts` — shared `emit()` / `writeRaw()` / `installJsonCaptureIfEnabled()` for CLI-Anything JSON compliance
118
+
119
+ ### Known issues
120
+
121
+ - NVIDIA NIM sometimes returns transient 502 — now handled by fallback chains
122
+ - Quota shows exceeded on local `dirgha status` (dev env) — honest reporting, not a bug
123
+ - TUI needs a real TTY — can't run in CI non-interactive mode (use `dirgha ask` for headless)
124
+
125
+ ### Under the hood — standard terminology lock-in
126
+
127
+ Adopted industry-standard terms from the multi-agent workspace ecosystem audit (multica, ccpm, claudio, genie, devteam, citadel, maw, agent-worktree):
128
+
129
+ | Term | Meaning |
130
+ |---|---|
131
+ | **worktree** | Isolation unit (git worktree) |
132
+ | **fleet** | Parallel agents on one goal |
133
+ | **subtask** | Parallelizable stream within a fleet |
134
+ | **runtime** | Compute environment (local / worktree / SSH — future) |
135
+ | **skill** | Reusable capability bundle (CLI-Anything) |
package/CLA.md ADDED
@@ -0,0 +1,104 @@
1
+ # Dirgha AI Contributor License Agreement
2
+
3
+ Version 1.0 · Effective 2026-04-18
4
+
5
+ Thank you for your interest in contributing to Dirgha Code. This Contributor
6
+ License Agreement ("**CLA**") governs the terms under which you contribute
7
+ code, documentation, or other materials ("**Contributions**") to any project
8
+ owned or maintained by Dirgha LLC, a U.S. limited liability company
9
+ ("**Dirgha**", "**we**", or "**us**").
10
+
11
+ You ("**You**" or the "**Contributor**") agree to the following terms for any
12
+ present or future Contribution submitted to a Dirgha project.
13
+
14
+ ## 1. Definitions
15
+
16
+ "**Contribution**" means any original work of authorship — including any
17
+ modifications or additions to existing work — that You intentionally submit
18
+ to Dirgha for inclusion in, or documentation of, any Dirgha project. For
19
+ clarity, "submitted" includes opening a pull request, posting a patch on an
20
+ issue, or any other communication sent to Dirgha or its maintainers for the
21
+ purpose of including the work in a Dirgha project.
22
+
23
+ ## 2. Copyright Assignment
24
+
25
+ You hereby assign to Dirgha, and Dirgha hereby accepts, all right, title, and
26
+ interest in and to the copyright in each Contribution worldwide. To the
27
+ maximum extent permitted by applicable law, this assignment includes all
28
+ rights of paternity, integrity, disclosure, and withdrawal and any other
29
+ rights that may be known as "moral rights."
30
+
31
+ If any such assignment is not permitted under applicable law, You grant
32
+ Dirgha a perpetual, worldwide, royalty-free, fully-paid-up, transferable,
33
+ sublicensable, irrevocable, exclusive license to use, reproduce, prepare
34
+ derivative works of, publicly display, publicly perform, sublicense, and
35
+ distribute each Contribution in any form, medium, and relicensing terms
36
+ (including proprietary relicensing), with no obligation to account to You.
37
+
38
+ ## 3. Patent License
39
+
40
+ You grant to Dirgha and to recipients of software distributed by Dirgha a
41
+ perpetual, worldwide, non-exclusive, royalty-free, irrevocable (except as
42
+ stated in this section) patent license to make, have made, use, offer to
43
+ sell, sell, import, and otherwise transfer Your Contribution, where such
44
+ license applies only to those patent claims licensable by You that are
45
+ necessarily infringed by Your Contribution alone or by combination of Your
46
+ Contribution with the project to which it was submitted.
47
+
48
+ ## 4. Representations
49
+
50
+ You represent that:
51
+
52
+ 1. Each of Your Contributions is Your original creation, or You have
53
+ sufficient rights to grant the rights conveyed by this CLA;
54
+
55
+ 2. Each of Your Contributions does not violate any third-party rights,
56
+ including intellectual-property, privacy, or publicity rights;
57
+
58
+ 3. If Your employer has rights to intellectual property You create that
59
+ includes Your Contributions, You have received permission from that
60
+ employer to make the Contributions on behalf of that employer, or that
61
+ employer has waived such rights for the Contributions;
62
+
63
+ 4. You will notify Dirgha of any facts or circumstances of which You become
64
+ aware that would make the above representations inaccurate.
65
+
66
+ ## 5. No Obligation
67
+
68
+ You understand that the decision to include any Contribution in any Dirgha
69
+ project is entirely at Dirgha's discretion, and this CLA does not obligate
70
+ Dirgha to use Your Contributions.
71
+
72
+ ## 6. Support and Warranty
73
+
74
+ You are not expected to provide support for Your Contributions, except to
75
+ the extent You desire. You provide Your Contributions on an "AS IS" basis,
76
+ without warranties or conditions of any kind, either express or implied.
77
+
78
+ ## 7. Public Record
79
+
80
+ Information about Your Contributions may be maintained indefinitely and
81
+ disclosed publicly, including Your name and a record that You signed this
82
+ CLA.
83
+
84
+ ## 8. Governing Law
85
+
86
+ This CLA is governed by the laws of the State of Delaware, United States,
87
+ without regard to its conflict-of-laws principles.
88
+
89
+ ## 9. Signing the CLA
90
+
91
+ You sign this CLA by adding your name and GitHub username to
92
+ `CONTRIBUTORS.md` in the project root, or by including the following text in
93
+ the description of any pull request You open:
94
+
95
+ > I have read and agree to the Dirgha AI Contributor License Agreement at
96
+ > CLA.md, and I submit this Contribution under those terms.
97
+
98
+ By signing, You are making this CLA on behalf of yourself and, if submitting
99
+ on behalf of a company or other entity, on behalf of that entity with
100
+ authority to bind it.
101
+
102
+ ---
103
+
104
+ Questions about this CLA? Email legal@dirgha.ai.
@@ -0,0 +1,50 @@
1
+ # Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in the Dirgha Code project a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Standards
10
+
11
+ Examples of behavior that contributes to a positive environment:
12
+
13
+ - Using welcoming and inclusive language.
14
+ - Respecting differing viewpoints and experiences.
15
+ - Giving and gracefully accepting constructive feedback.
16
+ - Accepting responsibility and apologizing to those affected by our mistakes, then learning from the experience.
17
+ - Focusing on what is best for the community and the project.
18
+
19
+ Examples of unacceptable behavior:
20
+
21
+ - Harassment, insulting or derogatory comments, personal or political attacks.
22
+ - Public or private harassment.
23
+ - Publishing others' private information without explicit permission.
24
+ - Sustained disruption of discussions, issues, or pull requests.
25
+ - Other conduct which could reasonably be considered inappropriate in a professional setting.
26
+
27
+ ## Scope
28
+
29
+ This Code of Conduct applies within all project spaces — the repository, issues, pull requests, discussions, community chat, and any public event representing the project. It also applies when an individual is officially representing the project in public spaces.
30
+
31
+ ## Enforcement
32
+
33
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the maintainers at **`conduct@dirgha.ai`**. All complaints will be reviewed and investigated promptly and fairly.
34
+
35
+ Maintainers who do not follow or enforce this Code in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
36
+
37
+ ## Enforcement Guidelines
38
+
39
+ Maintainers will follow these Community Impact Guidelines in determining consequences:
40
+
41
+ 1. **Correction** — a private written warning with clarification around the violation.
42
+ 2. **Warning** — a public warning with consequences for continued behavior.
43
+ 3. **Temporary ban** — a temporary ban from any interaction or public communication with the community.
44
+ 4. **Permanent ban** — a permanent ban for a pattern of violations, or a single egregious violation.
45
+
46
+ ## Attribution
47
+
48
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at https://www.contributor-covenant.org/version/2/1/code_of_conduct.html.
49
+
50
+ [homepage]: https://www.contributor-covenant.org
@@ -0,0 +1,81 @@
1
+ # Contributing to Dirgha Code
2
+
3
+ Thanks for wanting to help make Dirgha Code better. Here's what you need
4
+ to know before you open a PR.
5
+
6
+ ## Before your first PR
7
+
8
+ 1. **Read the [CLA](CLA.md).** Every contributor signs it. Contributions are
9
+ assigned to Dirgha LLC so we can keep the project coherent and
10
+ relicensable as the product grows. This is standard for a commercial
11
+ open-source project. If you're contributing for a company, make sure
12
+ you have authority to sign on its behalf.
13
+
14
+ 2. **Sign the CLA.** Open your PR with this line in the description:
15
+
16
+ > I have read and agree to the Dirgha AI Contributor License Agreement
17
+ > at CLA.md, and I submit this Contribution under those terms.
18
+
19
+ That's it — no external forms, no DocuSign. We'll record your name in
20
+ `CONTRIBUTORS.md` on merge.
21
+
22
+ 3. **Read the [LICENSE](LICENSE).** Dirgha Code is released under the
23
+ Functional Source License 1.1 (MIT Future License). Your contributions
24
+ inherit that license and will convert to MIT two years after the
25
+ release they ship in.
26
+
27
+ ## How to contribute
28
+
29
+ ### Bugs and feature requests
30
+
31
+ Open an issue. Include:
32
+ - What you expected
33
+ - What actually happened
34
+ - Reproduction steps, OS, Node version, Dirgha version (`dirgha --version`)
35
+ - Relevant output from `DIRGHA_DEBUG=1 dirgha ...` if it's a runtime bug
36
+
37
+ ### Pull requests
38
+
39
+ - Branch from `main`
40
+ - Keep changes focused — one PR per concern
41
+ - Run `npm test` before pushing
42
+ - Run `npm run lint` (`tsc --noEmit`) — the build must type-check
43
+ - Include a short description of what the change does and why
44
+ - Reference the issue number if there is one (`Fixes #123`)
45
+
46
+ ### Code style
47
+
48
+ - TypeScript strict mode
49
+ - No new dependencies without justification in the PR description
50
+ - No emoji in code unless explicitly requested
51
+ - Comments explain **why**, not **what** — well-named code documents itself
52
+ - Don't add error handling for scenarios that can't happen
53
+ - Default to fewer abstractions, not more
54
+
55
+ ## Scope — what belongs here
56
+
57
+ **Belongs in `@dirgha/code`:**
58
+ - Terminal UI improvements
59
+ - LLM provider integrations (new providers, streaming, tool calling)
60
+ - Agent-mode headless command surface
61
+ - CLI-Hub plugin infrastructure
62
+ - Tools (read/write/edit/search/bash/etc.)
63
+ - Performance, reliability, stability
64
+
65
+ **Does not belong here:**
66
+ - Billing, quota enforcement, user management — those live in the Dirgha
67
+ Gateway (not open source)
68
+ - Web/mobile UI — separate repos
69
+ - Model weights — those are upstream at the provider
70
+
71
+ ## Releases
72
+
73
+ Maintainers handle publishing. We follow semantic versioning loosely pre-1.0,
74
+ strictly thereafter.
75
+
76
+ ## Questions
77
+
78
+ - Issues: https://github.com/dirghaai/dirgha-code/issues
79
+ - Email: team@dirgha.ai
80
+
81
+ Made with care in Delhi · Patan · everywhere.
package/CREDITS.md ADDED
@@ -0,0 +1,46 @@
1
+ # Credits
2
+
3
+ Dirgha Code is built on the shoulders of giants.
4
+
5
+ ## Direct inspirations
6
+
7
+ - **[CLI-Anything](https://github.com/HKUDS/CLI-Anything)** (HKU Data Science) — the `SKILL.md` manifest and universal `--json` contract that shaped Dirgha's agent-native story.
8
+ - **[Hermes Agent](https://github.com/nousresearch/hermes-agent)** (Nous Research) — modal overlay UX, paste-collapse, `/verbose` cycle.
9
+ - **[OpenAI Codex CLI](https://github.com/openai/codex)** — paste-burst detector, shimmer on in-flight cells, tool-output cap with transcript escape.
10
+ - **[OpenCode (sst fork)](https://github.com/sst/opencode)** — chronological stream-render pattern, two-row input box. (The earlier `opencode-ai/opencode` is archived; `sst/opencode` is the active fork.)
11
+ - **[Claude Code](https://claude.com/claude-code)** (Anthropic) — behavioural reference for what an agent TUI can feel like.
12
+
13
+ ## Multi-agent + worktree patterns
14
+
15
+ - **[agent-worktree](https://github.com/nekocode/agent-worktree)** — snap-mode lifecycle (`create → run → prompt → merge`).
16
+ - **[multica](https://github.com/multica-ai/multica)** — Runtime abstraction (Local / Worktree / SSH).
17
+ - **[coder/mux](https://github.com/coder/mux)** — three-runtime selector UI, opportunistic compaction.
18
+ - **[ccpm](https://github.com/automazeio/ccpm)** — stream decomposition + GitHub Issues as durable state.
19
+ - **[claudio](https://github.com/Iron-Ham/claudio)** — TripleShot + adversarial judge.
20
+ - **[genie](https://github.com/automagik-dev/genie)** — `/brainstorm → /wish → /work → /review` lifecycle.
21
+ - **[maw](https://github.com/boxabirds/maw)** — transient-commit 3-way apply-back.
22
+ - **[citadel](https://github.com/SethGammon/Citadel)** — four-tier intent router, fleet campaign resume.
23
+ - **[devteam](https://github.com/agent-era/devteam)** — Ink TUI with diff-review + comment reinjection.
24
+
25
+ ## Stack
26
+
27
+ Dirgha Code runs on top of:
28
+
29
+ - **[commander](https://github.com/tj/commander.js)** — CLI argument parsing
30
+ - **[Ink](https://github.com/vadimdemedes/ink)** + **[React](https://react.dev)** — terminal UI
31
+ - **[better-sqlite3](https://github.com/WiseLibs/better-sqlite3)** — session persistence
32
+ - **[esbuild](https://esbuild.github.io)** — single-bundle distribution
33
+
34
+ ## The name
35
+
36
+ The project aims to be durable software — built once, owned forever, forkable,
37
+ sovereign.
38
+
39
+ ## Thanks
40
+
41
+ Every open-source maintainer whose library Dirgha Code depends on. Every
42
+ person who reported a bug or suggested a better word. Every engineer who
43
+ has ever shared their tool-call rendering trick in a Twitter thread.
44
+
45
+ Want to be listed here for a meaningful contribution? See
46
+ [CONTRIBUTING.md](./CONTRIBUTING.md).
package/LICENSING.md ADDED
@@ -0,0 +1,105 @@
1
+ # Why Dirgha Code is FSL, not MIT
2
+
3
+ Short version: we're bootstrapped, not VC-funded. FSL lets us share the source with the community while keeping Dirgha LLC alive long enough to keep shipping.
4
+
5
+ If you just want to know what you can do: skip to [What you can do with the code](#what-you-can-do-with-the-code). Everything you'd reasonably want to do with an open-source tool is allowed.
6
+
7
+ ---
8
+
9
+ ## The honest trade-off
10
+
11
+ Every license is a trade-off between three things: how freely the source flows, how much the authors can capture of the value they create, and how much a well-funded third party can capture the same value without giving back.
12
+
13
+ Pure MIT sits at one end: maximum flow, zero capture for the authors, maximum capture for anyone who hosts it as a service. Proprietary sits at the other: zero flow, full capture for the authors, zero contribution back.
14
+
15
+ MIT is the right answer for a lot of projects. It's the wrong answer for a terminal-native AI agent in 2026. Here's why.
16
+
17
+ ## Why not MIT
18
+
19
+ We want every developer to be able to:
20
+
21
+ - Read the source, audit it, compile it themselves.
22
+ - Run it on their own machine with their own API keys.
23
+ - Fork it, modify it, use it inside their company, study how it works.
24
+ - Contribute fixes and new features back.
25
+
26
+ MIT allows all of that. But MIT also allows:
27
+
28
+ - A well-funded cloud provider to wrap the CLI into a managed service, spend $100M on marketing, and sell it back to the same developers we're trying to help — without contributing a line of code, without employing the maintainers, without keeping the project going when it stops being fashionable.
29
+
30
+ Dirgha LLC is bootstrapped. No venture capital, no runway to subsidize a fight against Big Cloud. If a hyperscaler decides to take an MIT Dirgha and rehost it, we have no path to sustain the work. The code survives; the project does not.
31
+
32
+ The post-open-source conversation of the last few years (Sentry, HashiCorp, Elastic, MongoDB, Redis, Cal.com, Plausible) has been the industry working out a middle ground: source stays visible, competitive re-hosting gets a time delay, everything else stays permissive.
33
+
34
+ FSL is that middle ground.
35
+
36
+ ## What FSL-1.1-MIT actually is
37
+
38
+ The [Functional Source License][fsl] was designed by Sentry for exactly this situation. The simplest possible summary:
39
+
40
+ - You can use the code for **any purpose**, including commercial use, except **hosting a competing commercial product** that substitutes for ours.
41
+ - After **two years**, that restriction expires and the code becomes MIT. Every release eventually turns into permanent, unrestricted open source.
42
+
43
+ That's it. It's roughly four paragraphs of legal text.
44
+
45
+ The `-MIT` suffix means the conversion target is MIT (rather than Apache 2.0). We picked MIT because it's the simplest permissive license and the one most contributors recognize.
46
+
47
+ [fsl]: https://fsl.software
48
+
49
+ ## What you can do with the code
50
+
51
+ Everything you'd reasonably want to do:
52
+
53
+ | You want to… | Allowed under FSL-1.1-MIT today? | Allowed under MIT once converted? |
54
+ |---|---|---|
55
+ | Install it from npm, use it personally | Yes | Yes |
56
+ | Use it at your company on your team's machines | Yes | Yes |
57
+ | Use it inside a product you sell, as a dev-time tool | Yes | Yes |
58
+ | Read the source, study, audit, compile yourself | Yes | Yes |
59
+ | Fork it, modify it, keep it for yourself or your team | Yes | Yes |
60
+ | Open a pull request against our repo | Yes | Yes |
61
+ | Redistribute a modified fork under a different name | Yes | Yes |
62
+ | Package it for Homebrew, apt, Nix | Yes | Yes |
63
+ | Teach with it, write books about it, include it in a course | Yes | Yes |
64
+ | Run a commercial hosted service that competes with api.dirgha.ai | **Not for 2 years after each release** | Yes once converted |
65
+
66
+ The one restriction in the "not for 2 years" row is narrow on purpose. If you're wondering whether your use is allowed: it almost certainly is. If you're not sure, email `legal@dirgha.ai` and we'll give you a plain answer.
67
+
68
+ ## What FSL protects
69
+
70
+ - **Maintainer time.** Someone has to keep the releases rolling, review PRs, cut new versions, handle security incidents. FSL keeps that work fundable.
71
+ - **Product quality.** When the same team owns both the open CLI and the hosted platform, they care about the developer experience of both. When those split, the CLI stops getting attention.
72
+ - **Trust.** Brand and trademark protections (see `NOTICE.md`) mean "Dirgha" keeps meaning one thing. Forks are allowed and encouraged — under a different name.
73
+
74
+ ## What stays Dirgha LLC proprietary
75
+
76
+ FSL covers the CLI source in this repository. Other pieces of the Dirgha stack are **not** in this repository and are not FSL:
77
+
78
+ - `api.dirgha.ai` — the hosted gateway (auth, credits, cross-provider failover for subscription users).
79
+ - The hosted platform (`dirgha.ai`, the dashboard, billing).
80
+ - Proprietary models and fine-tuning data, where they exist.
81
+ - The `Dirgha` name, logo, and product family (trademarks of Dirgha LLC).
82
+
83
+ The CLI can talk to the hosted platform, but the CLI itself runs entirely on your machine with your own keys if you prefer. That's the "Sovereign by default. Bring-your-own-key." promise in the README.
84
+
85
+ ## What about contributions?
86
+
87
+ Contributions to the CLI repo are welcomed under the project's DCO + CLA. The CLA assigns copyright in your contribution to Dirgha LLC while granting you a perpetual license back to your own work. This is how we can keep the license coherent across thousands of contributions without orphan-rights problems. Several large projects use the same pattern — see `CONTRIBUTING.md` for the full text and signing flow.
88
+
89
+ ## Will Dirgha ever be fully MIT?
90
+
91
+ - Each individual release converts to MIT two years after publication, automatically, per FSL's terms.
92
+ - If Dirgha LLC winds down or is acquired, we commit to either (a) accelerating the conversion of unreleased changes to MIT, or (b) transferring stewardship to a foundation or the contributor community. This isn't a legal guarantee — you don't need to trust us, because FSL's two-year conversion is already irrevocable.
93
+
94
+ ## Further reading
95
+
96
+ - [Functional Source License — official site][fsl]
97
+ - [Sentry: Introducing the FSL](https://blog.sentry.io/introducing-functional-source-license-freedom-without-free-riders/)
98
+ - [Cal.com: Why we chose AGPL + enterprise](https://cal.com/blog/cal-com-is-now-open-source) (similar reasoning, different license)
99
+ - [Our LICENSE](LICENSE) and [NOTICE.md](NOTICE.md) for the file-by-file breakdown.
100
+
101
+ ## If this feels wrong
102
+
103
+ If you believe a specific use is blocked and shouldn't be, open a discussion. If you think the license itself is a mistake, we'd rather hear it than lose you silently. The trade-off is real; reasonable people can land on different answers.
104
+
105
+ Email `legal@dirgha.ai` or open a Discussion tagged `licensing`.