@cchistory/lite 0.8.3 → 0.9.1

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 (297) hide show
  1. package/INSTALL.md +1 -1
  2. package/apps/lite-cli/dist/agent-contract.d.ts.map +1 -1
  3. package/apps/lite-cli/dist/agent-contract.js +41 -2
  4. package/apps/lite-cli/dist/agent-contract.js.map +1 -1
  5. package/apps/lite-cli/dist/help.js +5 -5
  6. package/apps/lite-cli/dist/index.d.ts.map +1 -1
  7. package/apps/lite-cli/dist/index.js +148 -17
  8. package/apps/lite-cli/dist/index.js.map +1 -1
  9. package/apps/lite-cli/dist/index.test.js +114 -95
  10. package/apps/lite-cli/dist/index.test.js.map +1 -1
  11. package/apps/lite-cli/dist/inventory-and-git.test.d.ts +7 -0
  12. package/apps/lite-cli/dist/inventory-and-git.test.d.ts.map +1 -0
  13. package/apps/lite-cli/dist/inventory-and-git.test.js +776 -0
  14. package/apps/lite-cli/dist/inventory-and-git.test.js.map +1 -0
  15. package/apps/lite-cli/dist/inventory-command.d.ts +30 -0
  16. package/apps/lite-cli/dist/inventory-command.d.ts.map +1 -0
  17. package/apps/lite-cli/dist/inventory-command.js +265 -0
  18. package/apps/lite-cli/dist/inventory-command.js.map +1 -0
  19. package/apps/lite-cli/dist/json-v2.d.ts +2 -2
  20. package/apps/lite-cli/dist/json-v2.d.ts.map +1 -1
  21. package/apps/lite-cli/dist/json-v2.js +9 -3
  22. package/apps/lite-cli/dist/json-v2.js.map +1 -1
  23. package/apps/lite-cli/dist/project-git-command.d.ts +28 -0
  24. package/apps/lite-cli/dist/project-git-command.d.ts.map +1 -0
  25. package/apps/lite-cli/dist/project-git-command.js +288 -0
  26. package/apps/lite-cli/dist/project-git-command.js.map +1 -0
  27. package/apps/lite-cli/dist/startup-render.d.ts +10 -0
  28. package/apps/lite-cli/dist/startup-render.d.ts.map +1 -0
  29. package/apps/lite-cli/dist/startup-render.js +335 -0
  30. package/apps/lite-cli/dist/startup-render.js.map +1 -0
  31. package/apps/lite-cli/dist/version.d.ts +1 -1
  32. package/apps/lite-cli/dist/version.js +1 -1
  33. package/apps/lite-tui/dist/render.d.ts +1 -1
  34. package/apps/lite-tui/dist/version.d.ts +1 -1
  35. package/apps/lite-tui/dist/version.js +1 -1
  36. package/docs/guide/for-agents.md +14 -0
  37. package/docs/guide/lite.md +53 -2
  38. package/node_modules/@cchistory/canonical/dist/agent-inventory.d.ts +25 -0
  39. package/node_modules/@cchistory/canonical/dist/agent-inventory.d.ts.map +1 -0
  40. package/node_modules/@cchistory/canonical/dist/agent-inventory.js +345 -0
  41. package/node_modules/@cchistory/canonical/dist/agent-inventory.js.map +1 -0
  42. package/node_modules/@cchistory/canonical/dist/agent-inventory.test.d.ts +7 -0
  43. package/node_modules/@cchistory/canonical/dist/agent-inventory.test.d.ts.map +1 -0
  44. package/node_modules/@cchistory/canonical/dist/agent-inventory.test.js +231 -0
  45. package/node_modules/@cchistory/canonical/dist/agent-inventory.test.js.map +1 -0
  46. package/node_modules/@cchistory/canonical/dist/directory-scope.d.ts.map +1 -1
  47. package/node_modules/@cchistory/canonical/dist/directory-scope.js +4 -1
  48. package/node_modules/@cchistory/canonical/dist/directory-scope.js.map +1 -1
  49. package/node_modules/@cchistory/canonical/dist/index.d.ts +2 -0
  50. package/node_modules/@cchistory/canonical/dist/index.d.ts.map +1 -1
  51. package/node_modules/@cchistory/canonical/dist/index.js +2 -0
  52. package/node_modules/@cchistory/canonical/dist/index.js.map +1 -1
  53. package/node_modules/@cchistory/canonical/dist/project-merge.d.ts +42 -0
  54. package/node_modules/@cchistory/canonical/dist/project-merge.d.ts.map +1 -0
  55. package/node_modules/@cchistory/canonical/dist/project-merge.js +396 -0
  56. package/node_modules/@cchistory/canonical/dist/project-merge.js.map +1 -0
  57. package/node_modules/@cchistory/canonical/dist/project-merge.test.d.ts +7 -0
  58. package/node_modules/@cchistory/canonical/dist/project-merge.test.d.ts.map +1 -0
  59. package/node_modules/@cchistory/canonical/dist/project-merge.test.js +319 -0
  60. package/node_modules/@cchistory/canonical/dist/project-merge.test.js.map +1 -0
  61. package/node_modules/@cchistory/canonical/dist/query.js +1 -1
  62. package/node_modules/@cchistory/canonical/dist/query.js.map +1 -1
  63. package/node_modules/@cchistory/canonical/dist/session-interpreter.d.ts.map +1 -1
  64. package/node_modules/@cchistory/canonical/dist/session-interpreter.js +38 -0
  65. package/node_modules/@cchistory/canonical/dist/session-interpreter.js.map +1 -1
  66. package/node_modules/@cchistory/canonical/dist/tool-call-summary.d.ts.map +1 -1
  67. package/node_modules/@cchistory/canonical/dist/tool-call-summary.js +18 -2
  68. package/node_modules/@cchistory/canonical/dist/tool-call-summary.js.map +1 -1
  69. package/node_modules/@cchistory/canonical/dist/usage-anomalies.d.ts.map +1 -1
  70. package/node_modules/@cchistory/canonical/dist/usage-anomalies.js +2 -0
  71. package/node_modules/@cchistory/canonical/dist/usage-anomalies.js.map +1 -1
  72. package/node_modules/@cchistory/canonical/dist/usage-call-evaluation.d.ts.map +1 -1
  73. package/node_modules/@cchistory/canonical/dist/usage-call-evaluation.js +4 -1
  74. package/node_modules/@cchistory/canonical/dist/usage-call-evaluation.js.map +1 -1
  75. package/node_modules/@cchistory/canonical/dist/usage-trace.d.ts.map +1 -1
  76. package/node_modules/@cchistory/canonical/dist/usage-trace.js +3 -1
  77. package/node_modules/@cchistory/canonical/dist/usage-trace.js.map +1 -1
  78. package/node_modules/@cchistory/canonical/dist/usage-trace.test.js +73 -0
  79. package/node_modules/@cchistory/canonical/dist/usage-trace.test.js.map +1 -1
  80. package/node_modules/@cchistory/canonical/dist/usage.d.ts +1 -0
  81. package/node_modules/@cchistory/canonical/dist/usage.d.ts.map +1 -1
  82. package/node_modules/@cchistory/canonical/dist/usage.js +23 -17
  83. package/node_modules/@cchistory/canonical/dist/usage.js.map +1 -1
  84. package/node_modules/@cchistory/canonical/package.json +1 -1
  85. package/node_modules/@cchistory/domain/dist/agent-inventory.d.ts +146 -0
  86. package/node_modules/@cchistory/domain/dist/agent-inventory.d.ts.map +1 -0
  87. package/node_modules/@cchistory/domain/dist/agent-inventory.js +9 -0
  88. package/node_modules/@cchistory/domain/dist/agent-inventory.js.map +1 -0
  89. package/node_modules/@cchistory/domain/dist/agent-startup.d.ts +362 -0
  90. package/node_modules/@cchistory/domain/dist/agent-startup.d.ts.map +1 -0
  91. package/node_modules/@cchistory/domain/dist/agent-startup.js +8 -0
  92. package/node_modules/@cchistory/domain/dist/agent-startup.js.map +1 -0
  93. package/node_modules/@cchistory/domain/dist/index.d.ts +8 -1
  94. package/node_modules/@cchistory/domain/dist/index.d.ts.map +1 -1
  95. package/node_modules/@cchistory/domain/dist/index.js +3 -0
  96. package/node_modules/@cchistory/domain/dist/index.js.map +1 -1
  97. package/node_modules/@cchistory/domain/dist/index.test.js +27 -1
  98. package/node_modules/@cchistory/domain/dist/index.test.js.map +1 -1
  99. package/node_modules/@cchistory/domain/dist/project-git.d.ts +121 -0
  100. package/node_modules/@cchistory/domain/dist/project-git.d.ts.map +1 -0
  101. package/node_modules/@cchistory/domain/dist/project-git.js +93 -0
  102. package/node_modules/@cchistory/domain/dist/project-git.js.map +1 -0
  103. package/node_modules/@cchistory/domain/dist/token-evidence.d.ts.map +1 -1
  104. package/node_modules/@cchistory/domain/dist/token-evidence.js +3 -1
  105. package/node_modules/@cchistory/domain/dist/token-evidence.js.map +1 -1
  106. package/node_modules/@cchistory/domain/package.json +1 -1
  107. package/node_modules/@cchistory/live-runtime/dist/index.d.ts +4 -1
  108. package/node_modules/@cchistory/live-runtime/dist/index.d.ts.map +1 -1
  109. package/node_modules/@cchistory/live-runtime/dist/index.js +3 -1
  110. package/node_modules/@cchistory/live-runtime/dist/index.js.map +1 -1
  111. package/node_modules/@cchistory/live-runtime/dist/index.test.js +266 -38
  112. package/node_modules/@cchistory/live-runtime/dist/index.test.js.map +1 -1
  113. package/node_modules/@cchistory/live-runtime/dist/inventory-and-git.d.ts +35 -0
  114. package/node_modules/@cchistory/live-runtime/dist/inventory-and-git.d.ts.map +1 -0
  115. package/node_modules/@cchistory/live-runtime/dist/inventory-and-git.js +68 -0
  116. package/node_modules/@cchistory/live-runtime/dist/inventory-and-git.js.map +1 -0
  117. package/node_modules/@cchistory/live-runtime/package.json +1 -1
  118. package/node_modules/@cchistory/source-adapters/dist/core/conversation-seeds.d.ts +3 -0
  119. package/node_modules/@cchistory/source-adapters/dist/core/conversation-seeds.d.ts.map +1 -1
  120. package/node_modules/@cchistory/source-adapters/dist/core/conversation-seeds.js.map +1 -1
  121. package/node_modules/@cchistory/source-adapters/dist/core/discovery.d.ts.map +1 -1
  122. package/node_modules/@cchistory/source-adapters/dist/core/discovery.js +60 -4
  123. package/node_modules/@cchistory/source-adapters/dist/core/discovery.js.map +1 -1
  124. package/node_modules/@cchistory/source-adapters/dist/core/git-project.d.ts +9 -0
  125. package/node_modules/@cchistory/source-adapters/dist/core/git-project.d.ts.map +1 -1
  126. package/node_modules/@cchistory/source-adapters/dist/core/git-project.js +130 -7
  127. package/node_modules/@cchistory/source-adapters/dist/core/git-project.js.map +1 -1
  128. package/node_modules/@cchistory/source-adapters/dist/core/parser.d.ts +1 -1
  129. package/node_modules/@cchistory/source-adapters/dist/core/parser.d.ts.map +1 -1
  130. package/node_modules/@cchistory/source-adapters/dist/core/parser.js +198 -1
  131. package/node_modules/@cchistory/source-adapters/dist/core/parser.js.map +1 -1
  132. package/node_modules/@cchistory/source-adapters/dist/core/probe.d.ts.map +1 -1
  133. package/node_modules/@cchistory/source-adapters/dist/core/probe.js +85 -5
  134. package/node_modules/@cchistory/source-adapters/dist/core/probe.js.map +1 -1
  135. package/node_modules/@cchistory/source-adapters/dist/core/registry.test.js +17 -1
  136. package/node_modules/@cchistory/source-adapters/dist/core/registry.test.js.map +1 -1
  137. package/node_modules/@cchistory/source-adapters/dist/core/session-grouping.d.ts.map +1 -1
  138. package/node_modules/@cchistory/source-adapters/dist/core/session-grouping.js +44 -0
  139. package/node_modules/@cchistory/source-adapters/dist/core/session-grouping.js.map +1 -1
  140. package/node_modules/@cchistory/source-adapters/dist/core/source-identity.d.ts.map +1 -1
  141. package/node_modules/@cchistory/source-adapters/dist/core/source-identity.js +12 -0
  142. package/node_modules/@cchistory/source-adapters/dist/core/source-identity.js.map +1 -1
  143. package/node_modules/@cchistory/source-adapters/dist/index.d.ts +5 -0
  144. package/node_modules/@cchistory/source-adapters/dist/index.d.ts.map +1 -1
  145. package/node_modules/@cchistory/source-adapters/dist/index.js +5 -0
  146. package/node_modules/@cchistory/source-adapters/dist/index.js.map +1 -1
  147. package/node_modules/@cchistory/source-adapters/dist/index.test.d.ts +6 -0
  148. package/node_modules/@cchistory/source-adapters/dist/index.test.d.ts.map +1 -1
  149. package/node_modules/@cchistory/source-adapters/dist/index.test.js +6 -0
  150. package/node_modules/@cchistory/source-adapters/dist/index.test.js.map +1 -1
  151. package/node_modules/@cchistory/source-adapters/dist/inventory/agent-config-reader.d.ts +14 -0
  152. package/node_modules/@cchistory/source-adapters/dist/inventory/agent-config-reader.d.ts.map +1 -0
  153. package/node_modules/@cchistory/source-adapters/dist/inventory/agent-config-reader.js +397 -0
  154. package/node_modules/@cchistory/source-adapters/dist/inventory/agent-config-reader.js.map +1 -0
  155. package/node_modules/@cchistory/source-adapters/dist/inventory/agent-config-reader.test.d.ts +6 -0
  156. package/node_modules/@cchistory/source-adapters/dist/inventory/agent-config-reader.test.d.ts.map +1 -0
  157. package/node_modules/@cchistory/source-adapters/dist/inventory/agent-config-reader.test.js +106 -0
  158. package/node_modules/@cchistory/source-adapters/dist/inventory/agent-config-reader.test.js.map +1 -0
  159. package/node_modules/@cchistory/source-adapters/dist/inventory/config-io.d.ts +42 -0
  160. package/node_modules/@cchistory/source-adapters/dist/inventory/config-io.d.ts.map +1 -0
  161. package/node_modules/@cchistory/source-adapters/dist/inventory/config-io.js +368 -0
  162. package/node_modules/@cchistory/source-adapters/dist/inventory/config-io.js.map +1 -0
  163. package/node_modules/@cchistory/source-adapters/dist/inventory/redaction.d.ts +22 -0
  164. package/node_modules/@cchistory/source-adapters/dist/inventory/redaction.d.ts.map +1 -0
  165. package/node_modules/@cchistory/source-adapters/dist/inventory/redaction.js +195 -0
  166. package/node_modules/@cchistory/source-adapters/dist/inventory/redaction.js.map +1 -0
  167. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/antigravity-helpers.d.ts +23 -0
  168. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/antigravity-helpers.d.ts.map +1 -0
  169. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/antigravity-helpers.js +147 -0
  170. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/antigravity-helpers.js.map +1 -0
  171. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/antigravity.d.ts +11 -0
  172. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/antigravity.d.ts.map +1 -0
  173. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/antigravity.js +339 -0
  174. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/antigravity.js.map +1 -0
  175. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/claude-code-helpers.d.ts +70 -0
  176. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/claude-code-helpers.d.ts.map +1 -0
  177. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/claude-code-helpers.js +257 -0
  178. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/claude-code-helpers.js.map +1 -0
  179. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/claude-code.d.ts +11 -0
  180. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/claude-code.d.ts.map +1 -0
  181. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/claude-code.js +321 -0
  182. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/claude-code.js.map +1 -0
  183. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/codex.d.ts +12 -0
  184. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/codex.d.ts.map +1 -0
  185. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/codex.js +363 -0
  186. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/codex.js.map +1 -0
  187. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/deepseek-harness.d.ts +20 -0
  188. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/deepseek-harness.d.ts.map +1 -0
  189. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/deepseek-harness.js +408 -0
  190. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/deepseek-harness.js.map +1 -0
  191. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/index.d.ts +24 -0
  192. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/index.d.ts.map +1 -0
  193. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/index.js +225 -0
  194. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/index.js.map +1 -0
  195. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/opencode.d.ts +12 -0
  196. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/opencode.d.ts.map +1 -0
  197. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/opencode.js +372 -0
  198. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/opencode.js.map +1 -0
  199. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/shared.d.ts +62 -0
  200. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/shared.d.ts.map +1 -0
  201. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/shared.js +428 -0
  202. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/shared.js.map +1 -0
  203. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/startup.test.d.ts +7 -0
  204. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/startup.test.d.ts.map +1 -0
  205. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/startup.test.js +399 -0
  206. package/node_modules/@cchistory/source-adapters/dist/inventory/startup/startup.test.js.map +1 -0
  207. package/node_modules/@cchistory/source-adapters/dist/inventory/toml.d.ts +16 -0
  208. package/node_modules/@cchistory/source-adapters/dist/inventory/toml.d.ts.map +1 -0
  209. package/node_modules/@cchistory/source-adapters/dist/inventory/toml.js +478 -0
  210. package/node_modules/@cchistory/source-adapters/dist/inventory/toml.js.map +1 -0
  211. package/node_modules/@cchistory/source-adapters/dist/platforms/cursor-agent.test.js +2 -0
  212. package/node_modules/@cchistory/source-adapters/dist/platforms/cursor-agent.test.js.map +1 -1
  213. package/node_modules/@cchistory/source-adapters/dist/platforms/deepseek-harness/reader.d.ts +28 -0
  214. package/node_modules/@cchistory/source-adapters/dist/platforms/deepseek-harness/reader.d.ts.map +1 -0
  215. package/node_modules/@cchistory/source-adapters/dist/platforms/deepseek-harness/reader.js +443 -0
  216. package/node_modules/@cchistory/source-adapters/dist/platforms/deepseek-harness/reader.js.map +1 -0
  217. package/node_modules/@cchistory/source-adapters/dist/platforms/deepseek-harness/runtime.d.ts +4 -0
  218. package/node_modules/@cchistory/source-adapters/dist/platforms/deepseek-harness/runtime.d.ts.map +1 -0
  219. package/node_modules/@cchistory/source-adapters/dist/platforms/deepseek-harness/runtime.js +370 -0
  220. package/node_modules/@cchistory/source-adapters/dist/platforms/deepseek-harness/runtime.js.map +1 -0
  221. package/node_modules/@cchistory/source-adapters/dist/platforms/deepseek-harness.d.ts +3 -0
  222. package/node_modules/@cchistory/source-adapters/dist/platforms/deepseek-harness.d.ts.map +1 -0
  223. package/node_modules/@cchistory/source-adapters/dist/platforms/deepseek-harness.js +78 -0
  224. package/node_modules/@cchistory/source-adapters/dist/platforms/deepseek-harness.js.map +1 -0
  225. package/node_modules/@cchistory/source-adapters/dist/platforms/deepseek-harness.test.d.ts +2 -0
  226. package/node_modules/@cchistory/source-adapters/dist/platforms/deepseek-harness.test.d.ts.map +1 -0
  227. package/node_modules/@cchistory/source-adapters/dist/platforms/deepseek-harness.test.js +313 -0
  228. package/node_modules/@cchistory/source-adapters/dist/platforms/deepseek-harness.test.js.map +1 -0
  229. package/node_modules/@cchistory/source-adapters/dist/platforms/generic/runtime.d.ts.map +1 -1
  230. package/node_modules/@cchistory/source-adapters/dist/platforms/generic/runtime.js +14 -0
  231. package/node_modules/@cchistory/source-adapters/dist/platforms/generic/runtime.js.map +1 -1
  232. package/node_modules/@cchistory/source-adapters/dist/platforms/hermes/runtime.d.ts +4 -0
  233. package/node_modules/@cchistory/source-adapters/dist/platforms/hermes/runtime.d.ts.map +1 -0
  234. package/node_modules/@cchistory/source-adapters/dist/platforms/hermes/runtime.js +306 -0
  235. package/node_modules/@cchistory/source-adapters/dist/platforms/hermes/runtime.js.map +1 -0
  236. package/node_modules/@cchistory/source-adapters/dist/platforms/hermes/sqlite.d.ts +8 -0
  237. package/node_modules/@cchistory/source-adapters/dist/platforms/hermes/sqlite.d.ts.map +1 -0
  238. package/node_modules/@cchistory/source-adapters/dist/platforms/hermes/sqlite.js +499 -0
  239. package/node_modules/@cchistory/source-adapters/dist/platforms/hermes/sqlite.js.map +1 -0
  240. package/node_modules/@cchistory/source-adapters/dist/platforms/hermes.d.ts +9 -0
  241. package/node_modules/@cchistory/source-adapters/dist/platforms/hermes.d.ts.map +1 -0
  242. package/node_modules/@cchistory/source-adapters/dist/platforms/hermes.js +53 -0
  243. package/node_modules/@cchistory/source-adapters/dist/platforms/hermes.js.map +1 -0
  244. package/node_modules/@cchistory/source-adapters/dist/platforms/hermes.test.d.ts +2 -0
  245. package/node_modules/@cchistory/source-adapters/dist/platforms/hermes.test.d.ts.map +1 -0
  246. package/node_modules/@cchistory/source-adapters/dist/platforms/hermes.test.js +314 -0
  247. package/node_modules/@cchistory/source-adapters/dist/platforms/hermes.test.js.map +1 -0
  248. package/node_modules/@cchistory/source-adapters/dist/platforms/oh-my-pi.d.ts +9 -0
  249. package/node_modules/@cchistory/source-adapters/dist/platforms/oh-my-pi.d.ts.map +1 -0
  250. package/node_modules/@cchistory/source-adapters/dist/platforms/oh-my-pi.js +84 -0
  251. package/node_modules/@cchistory/source-adapters/dist/platforms/oh-my-pi.js.map +1 -0
  252. package/node_modules/@cchistory/source-adapters/dist/platforms/opencode/sqlite-records.d.ts +50 -0
  253. package/node_modules/@cchistory/source-adapters/dist/platforms/opencode/sqlite-records.d.ts.map +1 -0
  254. package/node_modules/@cchistory/source-adapters/dist/platforms/opencode/sqlite-records.js +291 -0
  255. package/node_modules/@cchistory/source-adapters/dist/platforms/opencode/sqlite-records.js.map +1 -0
  256. package/node_modules/@cchistory/source-adapters/dist/platforms/opencode/sqlite.d.ts +8 -0
  257. package/node_modules/@cchistory/source-adapters/dist/platforms/opencode/sqlite.d.ts.map +1 -0
  258. package/node_modules/@cchistory/source-adapters/dist/platforms/opencode/sqlite.js +321 -0
  259. package/node_modules/@cchistory/source-adapters/dist/platforms/opencode/sqlite.js.map +1 -0
  260. package/node_modules/@cchistory/source-adapters/dist/platforms/opencode-sqlite.test.d.ts +2 -0
  261. package/node_modules/@cchistory/source-adapters/dist/platforms/opencode-sqlite.test.d.ts.map +1 -0
  262. package/node_modules/@cchistory/source-adapters/dist/platforms/opencode-sqlite.test.js +245 -0
  263. package/node_modules/@cchistory/source-adapters/dist/platforms/opencode-sqlite.test.js.map +1 -0
  264. package/node_modules/@cchistory/source-adapters/dist/platforms/opencode.d.ts.map +1 -1
  265. package/node_modules/@cchistory/source-adapters/dist/platforms/opencode.js +30 -7
  266. package/node_modules/@cchistory/source-adapters/dist/platforms/opencode.js.map +1 -1
  267. package/node_modules/@cchistory/source-adapters/dist/platforms/pi-family/reader.d.ts +44 -0
  268. package/node_modules/@cchistory/source-adapters/dist/platforms/pi-family/reader.d.ts.map +1 -0
  269. package/node_modules/@cchistory/source-adapters/dist/platforms/pi-family/reader.js +533 -0
  270. package/node_modules/@cchistory/source-adapters/dist/platforms/pi-family/reader.js.map +1 -0
  271. package/node_modules/@cchistory/source-adapters/dist/platforms/pi-family/runtime.d.ts +4 -0
  272. package/node_modules/@cchistory/source-adapters/dist/platforms/pi-family/runtime.d.ts.map +1 -0
  273. package/node_modules/@cchistory/source-adapters/dist/platforms/pi-family/runtime.js +375 -0
  274. package/node_modules/@cchistory/source-adapters/dist/platforms/pi-family/runtime.js.map +1 -0
  275. package/node_modules/@cchistory/source-adapters/dist/platforms/pi-family.test.d.ts +2 -0
  276. package/node_modules/@cchistory/source-adapters/dist/platforms/pi-family.test.d.ts.map +1 -0
  277. package/node_modules/@cchistory/source-adapters/dist/platforms/pi-family.test.js +346 -0
  278. package/node_modules/@cchistory/source-adapters/dist/platforms/pi-family.test.js.map +1 -0
  279. package/node_modules/@cchistory/source-adapters/dist/platforms/pi.d.ts +8 -0
  280. package/node_modules/@cchistory/source-adapters/dist/platforms/pi.d.ts.map +1 -0
  281. package/node_modules/@cchistory/source-adapters/dist/platforms/pi.js +60 -0
  282. package/node_modules/@cchistory/source-adapters/dist/platforms/pi.js.map +1 -0
  283. package/node_modules/@cchistory/source-adapters/dist/platforms/registry.d.ts.map +1 -1
  284. package/node_modules/@cchistory/source-adapters/dist/platforms/registry.js +8 -0
  285. package/node_modules/@cchistory/source-adapters/dist/platforms/registry.js.map +1 -1
  286. package/node_modules/@cchistory/source-adapters/dist/platforms/types.d.ts +3 -1
  287. package/node_modules/@cchistory/source-adapters/dist/platforms/types.d.ts.map +1 -1
  288. package/node_modules/@cchistory/source-adapters/dist/platforms/types.js +5 -1
  289. package/node_modules/@cchistory/source-adapters/dist/platforms/types.js.map +1 -1
  290. package/node_modules/@cchistory/source-adapters/package.json +1 -1
  291. package/package.json +5 -5
  292. package/schemas/cchistory-lite-agent-v1.schema.json +3 -1
  293. package/schemas/cchistory-lite-envelope-v1.schema.json +33 -0
  294. package/schemas/cchistory-lite-inventory-v1.schema.json +94 -0
  295. package/schemas/cchistory-lite-merged-projects-v1.schema.json +44 -0
  296. package/schemas/cchistory-lite-v2.schema.json +22 -1
  297. package/skills/using-cchistory-lite/SKILL.md +17 -0
@@ -0,0 +1,399 @@
1
+ /**
2
+ * Role: Unit tests for the 5 per-tool native pre-launch startup resolvers
3
+ * (Claude Code, Codex, Google Antigravity, OpenCode, DeepSeek Harness) plus
4
+ * basic/unsupported tier reporting and secret-exclusion invariants.
5
+ */
6
+ import assert from "node:assert/strict";
7
+ import { execFile as execFileCallback } from "node:child_process";
8
+ import fs from "node:fs/promises";
9
+ import os from "node:os";
10
+ import path from "node:path";
11
+ import test from "node:test";
12
+ import { promisify } from "node:util";
13
+ import { resolveAgentStartupContexts } from "./index.js";
14
+ const execFile = promisify(execFileCallback);
15
+ async function initTempGitRepo(dir) {
16
+ await fs.mkdir(dir, { recursive: true });
17
+ await execFile("git", ["init", "-q"], { cwd: dir });
18
+ }
19
+ test("Claude Code native startup resolver handles @imports, cycles, rules paths, plugins, and 4-tier MCP", async () => {
20
+ const tmp = await fs.mkdtemp(path.join(os.tmpdir(), "cchistory-startup-claude-"));
21
+ try {
22
+ const home = path.join(tmp, "home");
23
+ const repo = path.join(tmp, "repo");
24
+ const appDir = path.join(repo, "packages", "app");
25
+ const pluginInstall = path.join(tmp, "plugin-cache", "demo-kit");
26
+ await initTempGitRepo(repo);
27
+ await fs.mkdir(path.join(home, ".claude", "plugins"), { recursive: true });
28
+ await fs.mkdir(path.join(home, ".claude", "rules"), { recursive: true });
29
+ await fs.mkdir(path.join(repo, "docs"), { recursive: true });
30
+ await fs.mkdir(path.join(appDir, ".claude", "rules"), { recursive: true });
31
+ await fs.mkdir(path.join(pluginInstall, ".claude-plugin"), { recursive: true });
32
+ await fs.mkdir(path.join(pluginInstall, "skills", "plug-skill"), { recursive: true });
33
+ await fs.mkdir(path.join(pluginInstall, "agents"), { recursive: true });
34
+ await fs.mkdir(path.join(pluginInstall, "hooks"), { recursive: true });
35
+ await fs.writeFile(path.join(home, ".claude", "CLAUDE.md"), "# User instructions\n", "utf8");
36
+ await fs.writeFile(path.join(repo, "CLAUDE.md"), [
37
+ "# Repo guide",
38
+ "@docs/arch.md",
39
+ "@docs/missing.md",
40
+ "```md",
41
+ "@docs/ignored-in-fence.md",
42
+ "```",
43
+ ].join("\n"), "utf8");
44
+ await fs.writeFile(path.join(repo, "docs", "arch.md"), "# Arch\n@./sub.md\n@../CLAUDE.md\n", "utf8");
45
+ await fs.writeFile(path.join(repo, "docs", "sub.md"), "# Nested sub\n", "utf8");
46
+ await fs.writeFile(path.join(appDir, "CLAUDE.local.md"), "# Local overrides\n", "utf8");
47
+ await fs.writeFile(path.join(appDir, ".claude", "rules", "always.md"), "# Always rule\n", "utf8");
48
+ await fs.writeFile(path.join(appDir, ".claude", "rules", "ts-only.md"), "---\npaths:\n - \"src/**/*.ts\"\n---\n# TS rule\n", "utf8");
49
+ await fs.writeFile(path.join(home, ".claude", "settings.json"), JSON.stringify({
50
+ model: "claude-sonnet-4",
51
+ permissions: { defaultMode: "default", allow: ["Read(*)"] },
52
+ enabledPlugins: { "demo-kit@local": true },
53
+ hooks: {
54
+ PreToolUse: [{ matcher: "Bash", hooks: [{ command: "guard --token=claudeHookSecret123" }] }],
55
+ },
56
+ }), "utf8");
57
+ await fs.writeFile(path.join(appDir, ".claude", "settings.local.json"), JSON.stringify({
58
+ model: "claude-opus-4",
59
+ disabledMcpjsonServers: ["blocked_proj_mcp"],
60
+ }), "utf8");
61
+ await fs.writeFile(path.join(home, ".claude", "plugins", "installed_plugins.json"), JSON.stringify({
62
+ plugins: { "demo-kit@local": [{ installPath: pluginInstall, version: "1.2.0" }] },
63
+ }), "utf8");
64
+ await fs.writeFile(path.join(pluginInstall, ".claude-plugin", "plugin.json"), JSON.stringify({ name: "demo-kit" }), "utf8");
65
+ await fs.writeFile(path.join(pluginInstall, "skills", "plug-skill", "SKILL.md"), "---\nname: plug-skill\ndescription: From plugin\n---\n", "utf8");
66
+ await fs.writeFile(path.join(pluginInstall, "agents", "plug-agent.md"), "---\nname: plug-agent\nmodel: haiku\n---\n", "utf8");
67
+ await fs.writeFile(path.join(pluginInstall, ".mcp.json"), JSON.stringify({
68
+ mcpServers: {
69
+ plugin_mcp: { command: "npx", args: ["-y", "demo-mcp"], env: { API_KEY: "pluginSecretVal" } },
70
+ shared_srv: { command: "from-plugin" },
71
+ },
72
+ }), "utf8");
73
+ await fs.writeFile(path.join(pluginInstall, "hooks", "hooks.json"), JSON.stringify({ hooks: { SessionStart: [{ hooks: [{ command: "echo hi" }] }] } }), "utf8");
74
+ await fs.writeFile(path.join(home, ".claude.json"), JSON.stringify({
75
+ mcpServers: { shared_srv: { command: "from-user" } },
76
+ projects: {
77
+ [appDir]: {
78
+ mcpServers: { shared_srv: { command: "from-local" } },
79
+ },
80
+ },
81
+ }), "utf8");
82
+ await fs.writeFile(path.join(appDir, ".mcp.json"), JSON.stringify({
83
+ mcpServers: {
84
+ shared_srv: { command: "from-project" },
85
+ blocked_proj_mcp: { command: "blocked-cmd" },
86
+ },
87
+ }), "utf8");
88
+ const [res] = await resolveAgentStartupContexts({
89
+ homeDir: home,
90
+ projectDir: appDir,
91
+ agentRefs: ["claude_code"],
92
+ });
93
+ assert.ok(res && res.resolution_tier === "native" && res.native.client === "claude_code");
94
+ const serialized = JSON.stringify(res);
95
+ assert.equal(serialized.includes("claudeHookSecret123"), false);
96
+ assert.equal(serialized.includes("pluginSecretVal"), false);
97
+ const ctx = res.native;
98
+ assert.equal(ctx.settings_cascade.effective_model, "claude-opus-4");
99
+ assert.equal(ctx.claude_md_chain.length, 3);
100
+ const repoMd = ctx.claude_md_chain.find((e) => e.layer === "ancestor");
101
+ assert.equal(repoMd.imports.some((i) => i.raw_ref === "docs/arch.md" && i.exists && i.depth === 1), true);
102
+ assert.equal(repoMd.imports.some((i) => i.raw_ref === "./sub.md" && i.exists && i.depth === 2), true);
103
+ assert.equal(repoMd.imports.some((i) => i.raw_ref === "../CLAUDE.md" && i.cycle === true), true);
104
+ assert.equal(repoMd.imports.some((i) => i.raw_ref === "docs/missing.md" && i.exists === false), true);
105
+ assert.equal(repoMd.imports.some((i) => i.raw_ref === "docs/ignored-in-fence.md"), false);
106
+ assert.equal(ctx.startup_footprint.always_rule_count, 1);
107
+ assert.equal(ctx.startup_footprint.path_scoped_rule_count, 1);
108
+ assert.deepEqual(ctx.rules.find((r) => r.name === "ts-only")?.paths, ["src/**/*.ts"]);
109
+ const sharedStates = ctx.mcp_servers.filter((m) => m.server_id === "shared_srv");
110
+ assert.equal(sharedStates.find((m) => m.precedence_layer === "local")?.status, "effective");
111
+ assert.equal(sharedStates.find((m) => m.precedence_layer === "project")?.status, "shadowed");
112
+ assert.equal(sharedStates.find((m) => m.precedence_layer === "user")?.status, "shadowed");
113
+ assert.equal(sharedStates.find((m) => m.precedence_layer === "plugin")?.status, "shadowed");
114
+ assert.equal(ctx.mcp_servers.find((m) => m.server_id === "blocked_proj_mcp")?.disabled_reason, "disabledMcpjsonServers");
115
+ assert.equal(ctx.mcp_servers.find((m) => m.server_id === "plugin_mcp")?.status, "effective");
116
+ assert.equal(ctx.mcp_servers.find((m) => m.server_id === "plugin_mcp")?.from_plugin, "demo-kit@local");
117
+ assert.equal(ctx.skills.some((s) => s.name === "plug-skill" && s.scope === "plugin"), true);
118
+ assert.equal(ctx.subagents.some((a) => a.name === "plug-agent" && a.model === "haiku"), true);
119
+ assert.equal(ctx.hooks.length, 2);
120
+ }
121
+ finally {
122
+ await fs.rm(tmp, { recursive: true, force: true });
123
+ }
124
+ });
125
+ test("Codex native startup resolver enforces AGENTS.override.md shadowing, byte budget, and trust_level gate", async () => {
126
+ const tmp = await fs.mkdtemp(path.join(os.tmpdir(), "cchistory-startup-codex-"));
127
+ try {
128
+ const home = path.join(tmp, "home");
129
+ const codexHome = path.join(home, ".codex");
130
+ const repo = path.join(tmp, "repo");
131
+ const sub = path.join(repo, "sub");
132
+ const deep = path.join(sub, "deep");
133
+ await initTempGitRepo(repo);
134
+ await fs.mkdir(codexHome, { recursive: true });
135
+ await fs.mkdir(path.join(repo, ".codex"), { recursive: true });
136
+ await fs.mkdir(deep, { recursive: true });
137
+ await fs.writeFile(path.join(repo, "AGENTS.md"), "shadowed root agents\n", "utf8");
138
+ await fs.writeFile(path.join(repo, "AGENTS.override.md"), "A".repeat(70), "utf8");
139
+ await fs.writeFile(path.join(sub, "TEAM.md"), "B".repeat(80), "utf8");
140
+ await fs.writeFile(path.join(deep, "AGENTS.md"), "C".repeat(40), "utf8");
141
+ const baseGlobalToml = [
142
+ 'model = "gpt-5-global"',
143
+ "project_doc_max_bytes = 120",
144
+ 'project_doc_fallback_filenames = ["TEAM.md"]',
145
+ "",
146
+ "[profiles.fast]",
147
+ 'model = "gpt-5-mini"',
148
+ "",
149
+ "[mcp_servers.global_srv]",
150
+ 'command = "global-mcp"',
151
+ ].join("\n");
152
+ await fs.writeFile(path.join(codexHome, "config.toml"), baseGlobalToml, "utf8");
153
+ await fs.writeFile(path.join(repo, ".codex", "config.toml"), ['model = "gpt-5-project"', "[mcp_servers.proj_srv]", 'command = "proj-mcp"'].join("\n"), "utf8");
154
+ // 1. Untrusted project: `.codex/config.toml` must be trust-gated
155
+ const [untrustedRes] = await resolveAgentStartupContexts({
156
+ homeDir: home,
157
+ projectDir: deep,
158
+ env: { CODEX_HOME: codexHome },
159
+ agentRefs: ["codex"],
160
+ });
161
+ assert.ok(untrustedRes && untrustedRes.native.client === "codex");
162
+ const untrusted = untrustedRes.native;
163
+ assert.equal(untrusted.config_cascade.project_config_trusted, false);
164
+ assert.equal(untrusted.config_cascade.effective_model, "gpt-5-global");
165
+ assert.equal(untrusted.mcp_servers.find((m) => m.server_id === "proj_srv")?.status, "trust_gated");
166
+ assert.deepEqual(untrusted.config_cascade.profiles, ["fast"]);
167
+ const rootShadowed = untrusted.instruction_chain.find((i) => i.path === path.join(repo, "AGENTS.md"));
168
+ const rootOverride = untrusted.instruction_chain.find((i) => i.path === path.join(repo, "AGENTS.override.md"));
169
+ const subFallback = untrusted.instruction_chain.find((i) => i.path === path.join(sub, "TEAM.md"));
170
+ const deepExhausted = untrusted.instruction_chain.find((i) => i.path === path.join(deep, "AGENTS.md"));
171
+ assert.equal(rootShadowed?.status, "shadowed");
172
+ assert.equal(rootOverride?.status, "effective");
173
+ assert.equal(rootOverride?.included_bytes, 70);
174
+ assert.equal(subFallback?.status, "truncated");
175
+ assert.equal(subFallback?.included_bytes, 50);
176
+ assert.equal(subFallback?.dropped_bytes, 30);
177
+ assert.equal(deepExhausted?.status, "budget_exhausted");
178
+ assert.equal(deepExhausted?.included_bytes, 0);
179
+ assert.equal(untrusted.startup_footprint.loaded_bytes, 120);
180
+ assert.equal(untrusted.startup_footprint.truncated_file_count, 1);
181
+ assert.equal(untrusted.startup_footprint.budget_exhausted_file_count, 1);
182
+ // 2. Trusted project: `.codex/config.toml` becomes effective
183
+ await fs.writeFile(path.join(codexHome, "config.toml"), `${baseGlobalToml}\n\n[projects."${repo}"]\ntrust_level = "trusted"\n`, "utf8");
184
+ const [trustedRes] = await resolveAgentStartupContexts({
185
+ homeDir: home,
186
+ projectDir: deep,
187
+ env: { CODEX_HOME: codexHome },
188
+ agentRefs: ["codex"],
189
+ });
190
+ const trusted = trustedRes.native;
191
+ assert.equal(trusted.config_cascade.project_config_trusted, true);
192
+ assert.equal(trusted.config_cascade.effective_model, "gpt-5-project");
193
+ assert.equal(trusted.mcp_servers.find((m) => m.server_id === "proj_srv")?.status, "effective");
194
+ }
195
+ finally {
196
+ await fs.rm(tmp, { recursive: true, force: true });
197
+ }
198
+ });
199
+ test("Google Antigravity native startup resolver enforces 24KB cap, 20k-token budget demotion, manifests, and plugin config.json override", async () => {
200
+ const tmp = await fs.mkdtemp(path.join(os.tmpdir(), "cchistory-startup-agy-"));
201
+ try {
202
+ const home = path.join(tmp, "home");
203
+ const repo = path.join(tmp, "repo");
204
+ const sharedSkills = path.join(tmp, "shared-skills");
205
+ await initTempGitRepo(repo);
206
+ await fs.mkdir(path.join(home, ".gemini", "antigravity"), { recursive: true });
207
+ await fs.mkdir(path.join(repo, ".agents", "rules"), { recursive: true });
208
+ await fs.mkdir(path.join(repo, ".agents", "plugins", "plug-a", "rules"), { recursive: true });
209
+ await fs.mkdir(path.join(repo, ".agents", "plugins", "plug-a", "skills", "bundle-skill"), { recursive: true });
210
+ await fs.mkdir(path.join(sharedSkills, "keep-me"), { recursive: true });
211
+ await fs.mkdir(path.join(sharedSkills, "drop-me"), { recursive: true });
212
+ // Create 4 large rules (> 24 KB each -> capped at 24 KB = 6000 tok each -> 4th demoted past 20,000 tok budget)
213
+ for (const idx of [1, 2, 3, 4]) {
214
+ await fs.writeFile(path.join(repo, ".agents", "rules", `0${idx}-big.md`), `# Rule ${idx}\n${"x".repeat(25_000)}`, "utf8");
215
+ }
216
+ await fs.writeFile(path.join(repo, ".agents", "rules", "spec.md"), "# Spec\n", "utf8");
217
+ await fs.writeFile(path.join(repo, ".agents", "rules", "05-glob.md"), "---\ntrigger: glob\nglobs:\n - \"**/*.ts\"\n---\nSee @[Spec](./spec.md)\n", "utf8");
218
+ // skills.json with exclude filter
219
+ await fs.writeFile(path.join(sharedSkills, "keep-me", "SKILL.md"), "---\nname: keep-me\n---\n", "utf8");
220
+ await fs.writeFile(path.join(sharedSkills, "drop-me", "SKILL.md"), "---\nname: drop-me\n---\n", "utf8");
221
+ await fs.writeFile(path.join(repo, ".agents", "skills.json"), JSON.stringify({ entries: [{ path: sharedSkills, exclude: ["drop-me"] }] }), "utf8");
222
+ // Plugin disabled in plugin.json, re-enabled in config.json (config.json wins)
223
+ await fs.writeFile(path.join(repo, ".agents", "plugins", "plug-a", "plugin.json"), JSON.stringify({ name: "Plug A", disabled: true }), "utf8");
224
+ await fs.writeFile(path.join(repo, ".agents", "plugins", "plug-a", "skills", "bundle-skill", "SKILL.md"), "---\nname: bundle-skill\n---\n", "utf8");
225
+ await fs.writeFile(path.join(repo, ".agents", "plugins", "plug-a", "mcp_config.json"), JSON.stringify({
226
+ mcpServers: {
227
+ plug_srv: {
228
+ url: "https://user:agySecretPass@srv-local:8080/mcp?token=agyQuerySecret",
229
+ headers: { Authorization: "Bearer agyHeaderSecret" },
230
+ },
231
+ },
232
+ }), "utf8");
233
+ await fs.writeFile(path.join(home, ".gemini", "antigravity", "config.json"), JSON.stringify({ plugins: { "plug-a": { enabled: true } } }), "utf8");
234
+ const [res] = await resolveAgentStartupContexts({
235
+ homeDir: home,
236
+ projectDir: repo,
237
+ agentRefs: ["antigravity"],
238
+ });
239
+ assert.ok(res && res.native.client === "antigravity");
240
+ const serialized = JSON.stringify(res);
241
+ for (const secret of ["agySecretPass", "agyQuerySecret", "agyHeaderSecret"]) {
242
+ assert.equal(serialized.includes(secret), false, `Antigravity secret leaked: ${secret}`);
243
+ }
244
+ const ctx = res.native;
245
+ assert.equal(ctx.startup_footprint.truncated_rule_count, 4);
246
+ assert.equal(ctx.startup_footprint.demoted_rule_count >= 1, true);
247
+ const globRule = ctx.rules.find((r) => r.name === "05-glob.md");
248
+ assert.equal(globRule.trigger, "glob");
249
+ assert.equal(globRule.budget_status, "on_demand");
250
+ assert.equal(globRule.includes[0]?.label, "Spec");
251
+ assert.equal(globRule.includes[0]?.exists, true);
252
+ const plug = ctx.plugins.find((p) => p.dir_name === "plug-a");
253
+ assert.equal(plug.enabled, true);
254
+ assert.equal(plug.enabled_source, "config_json");
255
+ assert.deepEqual(plug.bundled_skills, ["bundle-skill"]);
256
+ assert.deepEqual(plug.bundled_mcp_servers, ["plug_srv"]);
257
+ assert.equal(ctx.skills.some((s) => s.name === "keep-me"), true);
258
+ assert.equal(ctx.skills.some((s) => s.name === "drop-me"), false);
259
+ }
260
+ finally {
261
+ await fs.rm(tmp, { recursive: true, force: true });
262
+ }
263
+ });
264
+ test("OpenCode native startup resolver handles JSONC cascade, CLAUDE.md fallback toggle, and v1/v2 MCP", async () => {
265
+ const tmp = await fs.mkdtemp(path.join(os.tmpdir(), "cchistory-startup-oc-"));
266
+ try {
267
+ const home = path.join(tmp, "home");
268
+ const repo = path.join(tmp, "repo");
269
+ await initTempGitRepo(repo);
270
+ await fs.mkdir(path.join(home, ".config", "opencode"), { recursive: true });
271
+ await fs.mkdir(path.join(repo, ".opencode"), { recursive: true });
272
+ await fs.writeFile(path.join(home, ".config", "opencode", "opencode.jsonc"), `{\n // global comment\n "model": "anthropic/claude-sonnet",\n "mcp": { "legacy_srv": { "type": "local", "command": ["npx", "legacy"], } },\n}`, "utf8");
273
+ await fs.writeFile(path.join(repo, ".opencode", "opencode.jsonc"), `{\n "model": "openai/gpt-5",\n "mcp": { "servers": { "v2_srv": { "type": "remote", "url": "https://oc-local:3000/mcp?key=ocSecret" } } },\n}`, "utf8");
274
+ await fs.writeFile(path.join(repo, "CLAUDE.md"), "# Fallback Claude instructions\n", "utf8");
275
+ const [enabledRes] = await resolveAgentStartupContexts({
276
+ homeDir: home,
277
+ projectDir: repo,
278
+ env: {},
279
+ agentRefs: ["opencode"],
280
+ });
281
+ assert.equal(JSON.stringify(enabledRes).includes("ocSecret"), false);
282
+ const enabledCtx = enabledRes.native;
283
+ assert.equal(enabledCtx.config_cascade.effective_model, "openai/gpt-5");
284
+ assert.equal(enabledCtx.instructions.some((i) => i.source === "claude_md_fallback"), true);
285
+ assert.equal(enabledCtx.mcp_servers.some((m) => m.server_id === "legacy_srv" && m.status === "effective"), true);
286
+ assert.equal(enabledCtx.mcp_servers.some((m) => m.server_id === "v2_srv" && m.status === "effective"), true);
287
+ const [disabledRes] = await resolveAgentStartupContexts({
288
+ homeDir: home,
289
+ projectDir: repo,
290
+ env: { OPENCODE_DISABLE_CLAUDE_CODE: "1" },
291
+ agentRefs: ["opencode"],
292
+ });
293
+ const disabledCtx = disabledRes.native;
294
+ assert.equal(disabledCtx.config_cascade.claude_md_fallback_disabled, true);
295
+ assert.equal(disabledCtx.instructions.some((i) => i.source === "claude_md_fallback"), false);
296
+ }
297
+ finally {
298
+ await fs.rm(tmp, { recursive: true, force: true });
299
+ }
300
+ });
301
+ test("DeepSeek Harness native startup resolver parses Cordis YAML MCP, never reads .credentials.yaml, and handles unsupported tiers", async () => {
302
+ const tmp = await fs.mkdtemp(path.join(os.tmpdir(), "cchistory-startup-dsh-"));
303
+ try {
304
+ const home = path.join(tmp, "home");
305
+ const dshHome = path.join(home, ".dsh");
306
+ const repo = path.join(tmp, "repo");
307
+ const canary = "CANARY_DSH_CREDENTIAL_NEVER_READ_999";
308
+ await initTempGitRepo(repo);
309
+ await fs.mkdir(path.join(dshHome, "profiles", "default"), { recursive: true });
310
+ await fs.writeFile(path.join(dshHome, ".credentials.yaml"), `deepseek_api_key: "${canary}"\n`, "utf8");
311
+ await fs.writeFile(path.join(dshHome, "profiles", "default", "cordis.yml"), [
312
+ "plugins:",
313
+ " '@deepseek-ai/dsh-mcp-client:kb':",
314
+ " serverName: kb_search",
315
+ " transport: stdio",
316
+ " command: npx",
317
+ " args:",
318
+ " - -y",
319
+ " - '@demo/kb-mcp'",
320
+ " - --token=dshCliSecret",
321
+ " env:",
322
+ " KB_API_KEY: dshEnvSecretValue",
323
+ " '~@deepseek-ai/dsh-mcp-client:legacy':",
324
+ " serverName: legacy_disabled",
325
+ " url: https://dsh-local:8080/sse?token=dshUrlSecret",
326
+ ].join("\n"), "utf8");
327
+ await fs.writeFile(path.join(repo, "AGENTS.md"), "# DSH Project Agents\n", "utf8");
328
+ const results = await resolveAgentStartupContexts({
329
+ homeDir: home,
330
+ projectDir: repo,
331
+ env: { DSH_HOME: dshHome },
332
+ agentRefs: ["dsh", "gemini", "lobechat", "nonexistent_tool"],
333
+ });
334
+ const serialized = JSON.stringify(results);
335
+ for (const secret of [canary, "dshCliSecret", "dshEnvSecretValue", "dshUrlSecret"]) {
336
+ assert.equal(serialized.includes(secret), false, `DSH secret leaked: ${secret}`);
337
+ }
338
+ const dshRes = results.find((r) => r.client === "deepseek_harness");
339
+ assert.equal(dshRes.resolution_tier, "native");
340
+ assert.equal(dshRes.files_read.some((f) => f.path.endsWith(".credentials.yaml")), false);
341
+ const dshCtx = dshRes.native;
342
+ assert.equal(dshCtx.credentials_file_present, true);
343
+ assert.equal(dshCtx.profiles.length, 1);
344
+ assert.equal(dshCtx.cordis_layers.length, 1);
345
+ const kb = dshCtx.mcp_servers.find((m) => m.server_id === "kb_search");
346
+ assert.equal(kb.status, "effective");
347
+ assert.deepEqual(kb.env_keys, ["KB_API_KEY"]);
348
+ const legacy = dshCtx.mcp_servers.find((m) => m.server_id === "legacy_disabled");
349
+ assert.equal(legacy.status, "disabled");
350
+ assert.equal(legacy.disabled_reason, "cordis_disabled_prefix");
351
+ assert.equal(results.find((r) => r.client === "gemini")?.resolution_tier, "basic");
352
+ const lobe = results.find((r) => r.client === "lobechat");
353
+ assert.equal(lobe.resolution_tier, "unsupported");
354
+ assert.equal(lobe.diagnostics.length, 0);
355
+ const unknown = results.find((r) => r.client === "nonexistent_tool");
356
+ assert.equal(unknown.resolution_tier, "unsupported");
357
+ assert.equal(unknown.diagnostics[0]?.code, "unknown_agent_ref");
358
+ assert.equal(unknown.diagnostics[0]?.client, "nonexistent_tool");
359
+ }
360
+ finally {
361
+ await fs.rm(tmp, { recursive: true, force: true });
362
+ }
363
+ });
364
+ test("Monorepo subdir resolves OpenCode root-relative instructions (including missing) and Claude Code root rules/.mcp.json", async () => {
365
+ const tmp = await fs.mkdtemp(path.join(os.tmpdir(), "cchistory-startup-subdir-"));
366
+ try {
367
+ const home = path.join(tmp, "home");
368
+ const repo = path.join(tmp, "repo");
369
+ const subApp = path.join(repo, "packages", "app");
370
+ await initTempGitRepo(repo);
371
+ await fs.mkdir(home, { recursive: true });
372
+ await fs.mkdir(path.join(repo, "docs"), { recursive: true });
373
+ await fs.mkdir(path.join(repo, ".claude", "rules"), { recursive: true });
374
+ await fs.mkdir(path.join(repo, ".dsh"), { recursive: true });
375
+ await fs.mkdir(subApp, { recursive: true });
376
+ await fs.writeFile(path.join(repo, "docs", "extra.md"), "# Extra guide\n", "utf8");
377
+ await fs.writeFile(path.join(repo, "opencode.jsonc"), JSON.stringify({ instructions: ["docs/extra.md", "docs/missing-guide.md"] }), "utf8");
378
+ await fs.writeFile(path.join(repo, ".claude", "rules", "root-rule.md"), "# Root rule\n", "utf8");
379
+ await fs.writeFile(path.join(repo, ".mcp.json"), JSON.stringify({ mcpServers: { root_mcp: { command: "echo", args: ["ok"] } } }), "utf8");
380
+ await fs.writeFile(path.join(repo, ".dsh", "cordis.yml"), "plugins:\n '@deepseek-ai/dsh-mcp-client:proj':\n serverName: proj_dsh_srv\n command: dsh-mcp\n", "utf8");
381
+ const results = await resolveAgentStartupContexts({
382
+ homeDir: home,
383
+ projectDir: subApp,
384
+ agentRefs: ["opencode", "claude_code", "deepseek_harness"],
385
+ });
386
+ const oc = results.find((r) => r.client === "opencode").native;
387
+ assert.equal(oc.instructions.some((i) => i.source === "config_instructions" && i.path.endsWith(path.join("docs", "extra.md")) && i.exists !== false), true);
388
+ assert.equal(oc.instructions.some((i) => i.source === "config_instructions" && i.path.endsWith(path.join("docs", "missing-guide.md")) && i.exists === false), true);
389
+ const cc = results.find((r) => r.client === "claude_code").native;
390
+ assert.equal(cc.rules.some((r) => r.name === "root-rule"), true);
391
+ assert.equal(cc.mcp_servers.some((m) => m.server_id === "root_mcp" && m.status === "effective"), true);
392
+ const dsh = results.find((r) => r.client === "deepseek_harness").native;
393
+ assert.equal(dsh.cordis_layers.some((l) => l.layer === "project_dsh"), true);
394
+ }
395
+ finally {
396
+ await fs.rm(tmp, { recursive: true, force: true });
397
+ }
398
+ });
399
+ //# sourceMappingURL=startup.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"startup.test.js","sourceRoot":"","sources":["../../../src/inventory/startup/startup.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,QAAQ,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAQtC,OAAO,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAC;AAEzD,MAAM,QAAQ,GAAG,S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AAC,CAAC,CAAC,MAAM,KAAK,aAAa,CAAE,CAAC,MAAkC,CAAC;QAC/F,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,WAAW,CAAC,EAAE,IAAI,CAAC,CAAC;QACjE,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,KAAK,UAAU,IAAI,CAAC,CAAC,MAAM,KAAK,WAAW,CAAC,EAAE,IAAI,CAAC,CAAC;QAEvG,MAAM,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,kBAAkB,CAAE,CAAC,MAAuC,CAAC;QAC1G,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,aAAa,CAAC,EAAE,IAAI,CAAC,CAAC;IAC/E,CAAC;YAAS,CAAC;QACT,MAAM,EAAE,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IACrD,CAAC;AACH,CAAC,CAAC,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Role: Focused, zero-dependency, read-only TOML parser for local agent configuration
3
+ * files (Codex, Grok CLI, DeepSeek Harness). Supports tables, quoted keys, array of
4
+ * tables, inline tables, strings, arrays, numbers, booleans, and comments.
5
+ * Excludes TOML serialization, file I/O, and agent-specific schema interpretation.
6
+ */
7
+ export type TomlValue = string | number | boolean | TomlValue[] | TomlTable;
8
+ export interface TomlTable {
9
+ [key: string]: TomlValue;
10
+ }
11
+ export declare class TomlParseError extends Error {
12
+ readonly line: number;
13
+ constructor(message: string, line: number);
14
+ }
15
+ export declare function parseToml(source: string): TomlTable;
16
+ //# sourceMappingURL=toml.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toml.d.ts","sourceRoot":"","sources":["../../src/inventory/toml.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,EAAE,GAAG,SAAS,CAAC;AAC5E,MAAM,WAAW,SAAS;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B;AAED,qBAAa,cAAe,SAAQ,KAAK;IACvC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;gBAEV,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;CAK1C;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAqDnD"}