@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,396 @@
1
+ /**
2
+ * Role: Pure, zero-I/O cross-host project reconciliation and read-only envelope
3
+ * builders for Slice B (`ls projects --with-git` and `merge-projects`).
4
+ * Excludes filesystem reading, git process execution, and CLI formatting.
5
+ */
6
+ import { canonicalizeGitRemote, DEFAULT_ENVELOPE_STALE_AFTER_SECONDS, maxIso, MERGED_PROJECTS_SCHEMA, } from "@cchistory/domain";
7
+ /**
8
+ * Normalize a project workspace path or display name into a lowercase directory
9
+ * fallback key for non-Git projects (or Git repos without an origin remote).
10
+ */
11
+ export function normalizeDirectoryFallbackKey(workspacePath, repoRoot, displayName) {
12
+ const candidate = workspacePath?.trim() || repoRoot?.trim() || displayName?.trim() || "unknown";
13
+ const normalized = candidate.replace(/\\/gu, "/").replace(/\/+$/u, "");
14
+ const segments = normalized.split("/").filter(Boolean);
15
+ const leaf = segments.at(-1) ?? normalized;
16
+ return leaf.trim().toLowerCase() || "unknown";
17
+ }
18
+ export function mergeHostProjectSnapshots(inputs, options = {}) {
19
+ const generatedAt = options.nowIso ?? new Date().toISOString();
20
+ const hostSet = new Set();
21
+ const groups = new Map();
22
+ const warnings = [];
23
+ for (const snapshot of inputs) {
24
+ const hostId = snapshot.host_id.trim();
25
+ if (!hostId)
26
+ continue;
27
+ hostSet.add(hostId);
28
+ const label = snapshot.source_file ? `${hostId} (${snapshot.source_file})` : hostId;
29
+ if (snapshot.host_id_inferred_from_filename) {
30
+ warnings.push(`Snapshot ${snapshot.source_file ?? hostId} had no host_id; inferred "${hostId}" from filename (pass --host-id when exporting).`);
31
+ }
32
+ if (snapshot.truncated === true ||
33
+ (typeof snapshot.total_projects === "number" && snapshot.total_projects > snapshot.projects.length)) {
34
+ const totalLabel = typeof snapshot.total_projects === "number"
35
+ ? `${snapshot.projects.length}/${snapshot.total_projects}`
36
+ : `${snapshot.projects.length}/?`;
37
+ warnings.push(`Snapshot for ${label} is truncated (${totalLabel} projects); re-export with --all for complete reconciliation.`);
38
+ }
39
+ if (snapshot.projects.length > 0 && snapshot.projects.every((entry) => !entry.git)) {
40
+ warnings.push(`Snapshot for ${label} has no Git metadata (re-export with --with-git); Git sync status is unknown and matching fell back to directory names.`);
41
+ }
42
+ for (const entry of snapshot.projects) {
43
+ const canonicalRemote = canonicalizeGitRemote(entry.git?.repo_remote) ??
44
+ canonicalizeGitRemote(entry.repo_remote) ??
45
+ null;
46
+ const matchKind = canonicalRemote ? "repo_remote" : "directory_fallback";
47
+ const matchKey = canonicalRemote
48
+ ? `remote:${canonicalRemote}`
49
+ : `dir:${normalizeDirectoryFallbackKey(entry.primary_workspace_path, entry.repo_root, entry.display_name)}`;
50
+ let group = groups.get(matchKey);
51
+ if (!group) {
52
+ group = {
53
+ matchKey,
54
+ matchKind,
55
+ repoRemote: canonicalRemote,
56
+ displayNameCandidates: [],
57
+ byHost: new Map(),
58
+ };
59
+ groups.set(matchKey, group);
60
+ }
61
+ const displayName = entry.display_name?.trim();
62
+ if (displayName)
63
+ group.displayNameCandidates.push(displayName);
64
+ const nextHostState = toHostState(hostId, entry, canonicalRemote);
65
+ const existing = group.byHost.get(hostId);
66
+ group.byHost.set(hostId, existing ? combineHostStates(existing, nextHostState) : nextHostState);
67
+ }
68
+ }
69
+ const projects = [...groups.values()]
70
+ .map((group) => finalizeMergedProject(group))
71
+ .sort(compareMergedProjects);
72
+ const hosts = [...hostSet].sort((a, b) => a.localeCompare(b));
73
+ const summary = {
74
+ host_count: hosts.length,
75
+ project_count: projects.length,
76
+ repo_remote_matched_count: projects.filter((p) => p.match_kind === "repo_remote").length,
77
+ directory_fallback_count: projects.filter((p) => p.match_kind === "directory_fallback").length,
78
+ multi_host_project_count: projects.filter((p) => p.host_count >= 2).length,
79
+ diverged_project_count: projects.filter((p) => p.branch_diverged || p.commit_diverged).length,
80
+ dirty_project_count: projects.filter((p) => p.dirty_hosts.length > 0).length,
81
+ unpushed_project_count: projects.filter((p) => p.unpushed_hosts.length > 0).length,
82
+ behind_project_count: projects.filter((p) => p.behind_hosts.length > 0).length,
83
+ no_upstream_project_count: projects.filter((p) => (p.no_upstream_hosts?.length ?? 0) > 0).length,
84
+ git_not_collected_project_count: projects.filter((p) => p.sync_state === "git_not_collected").length,
85
+ };
86
+ return {
87
+ schema: MERGED_PROJECTS_SCHEMA,
88
+ kind: "merged_projects",
89
+ generated_at: generatedAt,
90
+ hosts,
91
+ ...(warnings.length > 0 ? { warnings } : {}),
92
+ summary,
93
+ projects,
94
+ };
95
+ }
96
+ export function buildMergedProjectsEnvelope(report, options) {
97
+ const hasWarnings = (report.warnings?.length ?? 0) > 0;
98
+ return {
99
+ schema_version: 1,
100
+ domain: "projects",
101
+ owner: "cchistory-lite",
102
+ host_id: options.hostId,
103
+ generated_at: report.generated_at,
104
+ stale_after_seconds: options.staleAfterSeconds ?? DEFAULT_ENVELOPE_STALE_AFTER_SECONDS,
105
+ status: hasWarnings ? "partial" : "ok",
106
+ error: null,
107
+ summary: report.summary,
108
+ delta: null,
109
+ items: report.projects,
110
+ };
111
+ }
112
+ export function buildProjectsEnvelope(projects, options) {
113
+ const totalProjectCount = options.totalProjectCount ?? projects.length;
114
+ const truncated = totalProjectCount > projects.length;
115
+ const gitInspected = options.gitInspected ?? projects.some((p) => p.git !== undefined && p.git !== null);
116
+ let gitOk = 0;
117
+ let gitDirty = 0;
118
+ let gitUnpushed = 0;
119
+ let gitBehind = 0;
120
+ let gitError = 0;
121
+ if (gitInspected) {
122
+ for (const project of projects) {
123
+ const git = project.git;
124
+ if (!git)
125
+ continue;
126
+ if (git.status === "ok") {
127
+ gitOk += 1;
128
+ if ((git.dirty_files ?? 0) > 0)
129
+ gitDirty += 1;
130
+ if ((git.ahead ?? 0) > 0)
131
+ gitUnpushed += 1;
132
+ if ((git.behind ?? 0) > 0)
133
+ gitBehind += 1;
134
+ }
135
+ else if (git.status === "timeout" || git.status === "error") {
136
+ gitError += 1;
137
+ }
138
+ }
139
+ }
140
+ let status = "ok";
141
+ if (truncated || gitError > 0 || (options.readStatus && options.readStatus.status !== "no_known_gaps")) {
142
+ status = "partial";
143
+ }
144
+ return {
145
+ schema_version: 1,
146
+ domain: "projects",
147
+ owner: "cchistory-lite",
148
+ host_id: options.hostId,
149
+ generated_at: options.generatedAt,
150
+ stale_after_seconds: options.staleAfterSeconds ?? DEFAULT_ENVELOPE_STALE_AFTER_SECONDS,
151
+ status,
152
+ error: null,
153
+ summary: {
154
+ project_count: projects.length,
155
+ total_project_count: totalProjectCount,
156
+ truncated,
157
+ git_inspected: gitInspected,
158
+ git_ok_count: gitInspected ? gitOk : null,
159
+ git_dirty_count: gitInspected ? gitDirty : null,
160
+ git_unpushed_count: gitInspected ? gitUnpushed : null,
161
+ git_behind_count: gitInspected ? gitBehind : null,
162
+ git_error_count: gitInspected ? gitError : null,
163
+ },
164
+ delta: null,
165
+ items: [...projects],
166
+ };
167
+ }
168
+ function toHostState(hostId, entry, canonicalRemote) {
169
+ const git = entry.git ?? undefined;
170
+ return {
171
+ host_id: hostId,
172
+ project_id: entry.project_id ?? null,
173
+ workspace_path: entry.primary_workspace_path ?? null,
174
+ repo_root: git?.repo_root ?? entry.repo_root ?? null,
175
+ repo_remote: canonicalRemote,
176
+ git_status: git?.status ?? "unavailable",
177
+ branch: git?.branch ?? null,
178
+ detached: Boolean(git?.detached),
179
+ head_sha: git?.head_sha ?? null,
180
+ head_committed_at: git?.head_committed_at ?? null,
181
+ dirty_files: git?.dirty_files ?? null,
182
+ ahead: git?.ahead ?? null,
183
+ behind: git?.behind ?? null,
184
+ upstream: git?.upstream ?? null,
185
+ session_count: entry.session_count ?? 0,
186
+ turn_count: entry.turn_count ?? 0,
187
+ last_activity_at: entry.last_activity_at ?? null,
188
+ source_platforms: uniqueSorted(entry.source_platforms ?? []),
189
+ };
190
+ }
191
+ function combineHostStates(left, right) {
192
+ const preferRightGit = shouldPreferGitState(left, right);
193
+ const gitSource = preferRightGit ? right : left;
194
+ return {
195
+ host_id: left.host_id,
196
+ project_id: left.project_id ?? right.project_id,
197
+ workspace_path: left.workspace_path ?? right.workspace_path,
198
+ repo_root: gitSource.repo_root ?? left.repo_root ?? right.repo_root,
199
+ repo_remote: gitSource.repo_remote ?? left.repo_remote ?? right.repo_remote,
200
+ git_status: gitSource.git_status,
201
+ branch: gitSource.branch,
202
+ detached: gitSource.detached,
203
+ head_sha: gitSource.head_sha,
204
+ head_committed_at: gitSource.head_committed_at,
205
+ dirty_files: gitSource.dirty_files,
206
+ ahead: gitSource.ahead,
207
+ behind: gitSource.behind,
208
+ upstream: gitSource.upstream,
209
+ session_count: left.session_count + right.session_count,
210
+ turn_count: left.turn_count + right.turn_count,
211
+ last_activity_at: maxIso(left.last_activity_at ?? undefined, right.last_activity_at ?? undefined) ?? null,
212
+ source_platforms: uniqueSorted([...left.source_platforms, ...right.source_platforms]),
213
+ };
214
+ }
215
+ function shouldPreferGitState(left, right) {
216
+ if (left.git_status !== "ok" && right.git_status === "ok")
217
+ return true;
218
+ if (left.git_status === "ok" && right.git_status !== "ok")
219
+ return false;
220
+ return compareIsoDesc(right.head_committed_at, left.head_committed_at) < 0;
221
+ }
222
+ function finalizeMergedProject(group) {
223
+ const hosts = [...group.byHost.values()].sort((a, b) => a.host_id.localeCompare(b.host_id));
224
+ const hostIds = hosts.map((h) => h.host_id);
225
+ let latestCommitHost = null;
226
+ let latestCommitHosts = [];
227
+ let latestCommitAt = null;
228
+ let latestActivityHost = null;
229
+ let latestActivityAt = null;
230
+ const branches = new Set();
231
+ const shas = new Set();
232
+ const dirtyHosts = [];
233
+ const unpushedHosts = [];
234
+ const behindHosts = [];
235
+ const noUpstreamHosts = [];
236
+ let totalSessions = 0;
237
+ let totalTurns = 0;
238
+ let hasAnyGitOk = false;
239
+ let hasAnyInspectedGit = false;
240
+ for (const host of hosts) {
241
+ totalSessions += host.session_count;
242
+ totalTurns += host.turn_count;
243
+ if (host.git_status !== "unavailable")
244
+ hasAnyInspectedGit = true;
245
+ if (host.git_status === "ok") {
246
+ hasAnyGitOk = true;
247
+ if (host.branch)
248
+ branches.add(host.branch);
249
+ if (host.head_sha)
250
+ shas.add(host.head_sha);
251
+ if ((host.dirty_files ?? 0) > 0)
252
+ dirtyHosts.push(host.host_id);
253
+ if ((host.ahead ?? 0) > 0)
254
+ unpushedHosts.push(host.host_id);
255
+ if ((host.behind ?? 0) > 0)
256
+ behindHosts.push(host.host_id);
257
+ if (!host.upstream && host.branch && !host.detached)
258
+ noUpstreamHosts.push(host.host_id);
259
+ }
260
+ if (host.head_committed_at) {
261
+ if (isNewerIso(host.head_committed_at, latestCommitAt)) {
262
+ latestCommitAt = host.head_committed_at;
263
+ latestCommitHost = host.host_id;
264
+ latestCommitHosts = [host.host_id];
265
+ }
266
+ else if (latestCommitAt && isSameInstant(host.head_committed_at, latestCommitAt)) {
267
+ latestCommitHosts.push(host.host_id);
268
+ }
269
+ }
270
+ if (host.last_activity_at && isNewerIso(host.last_activity_at, latestActivityAt)) {
271
+ latestActivityAt = host.last_activity_at;
272
+ latestActivityHost = host.host_id;
273
+ }
274
+ }
275
+ const branchDiverged = branches.size >= 2;
276
+ const commitDiverged = shas.size >= 2;
277
+ const aheadBehindState = unpushedHosts.length > 0 && behindHosts.length > 0
278
+ ? "ahead_behind"
279
+ : unpushedHosts.length > 0
280
+ ? "unpushed"
281
+ : behindHosts.length > 0
282
+ ? "behind"
283
+ : null;
284
+ let syncState;
285
+ if (!hasAnyGitOk) {
286
+ syncState = hasAnyInspectedGit ? "non_git" : "git_not_collected";
287
+ }
288
+ else if (hosts.length === 1) {
289
+ if (dirtyHosts.length > 0)
290
+ syncState = "dirty";
291
+ else if (aheadBehindState)
292
+ syncState = aheadBehindState;
293
+ else
294
+ syncState = "single_host";
295
+ }
296
+ else if (branchDiverged || commitDiverged) {
297
+ syncState = "diverged";
298
+ }
299
+ else if (dirtyHosts.length > 0) {
300
+ syncState = "dirty";
301
+ }
302
+ else if (aheadBehindState) {
303
+ syncState = aheadBehindState;
304
+ }
305
+ else {
306
+ syncState = "aligned";
307
+ }
308
+ const displayName = pickDisplayName(group);
309
+ return {
310
+ match_key: group.matchKey,
311
+ match_kind: group.matchKind,
312
+ display_name: displayName,
313
+ repo_remote: group.repoRemote,
314
+ host_ids: hostIds,
315
+ host_count: hosts.length,
316
+ sync_state: syncState,
317
+ latest_commit_host: latestCommitHost,
318
+ ...(latestCommitHosts.length > 0 ? { latest_commit_hosts: latestCommitHosts } : {}),
319
+ latest_commit_at: latestCommitAt,
320
+ latest_activity_host: latestActivityHost,
321
+ latest_activity_at: latestActivityAt,
322
+ branch_diverged: branchDiverged,
323
+ commit_diverged: commitDiverged,
324
+ dirty_hosts: dirtyHosts,
325
+ unpushed_hosts: unpushedHosts,
326
+ behind_hosts: behindHosts,
327
+ ...(noUpstreamHosts.length > 0 ? { no_upstream_hosts: noUpstreamHosts } : {}),
328
+ total_session_count: totalSessions,
329
+ total_turn_count: totalTurns,
330
+ hosts,
331
+ };
332
+ }
333
+ function pickDisplayName(group) {
334
+ if (group.repoRemote) {
335
+ const repoLeaf = group.repoRemote.split("/").filter(Boolean).at(-1);
336
+ if (repoLeaf)
337
+ return repoLeaf;
338
+ }
339
+ const counts = new Map();
340
+ for (const name of group.displayNameCandidates) {
341
+ counts.set(name, (counts.get(name) ?? 0) + 1);
342
+ }
343
+ let best;
344
+ let bestCount = -1;
345
+ for (const [name, count] of counts.entries()) {
346
+ if (count > bestCount || (count === bestCount && best && name.localeCompare(best) < 0)) {
347
+ best = name;
348
+ bestCount = count;
349
+ }
350
+ }
351
+ return best ?? group.matchKey;
352
+ }
353
+ function compareMergedProjects(left, right) {
354
+ const activityDiff = compareIsoDesc(left.latest_activity_at, right.latest_activity_at);
355
+ if (activityDiff !== 0)
356
+ return activityDiff;
357
+ const commitDiff = compareIsoDesc(left.latest_commit_at, right.latest_commit_at);
358
+ if (commitDiff !== 0)
359
+ return commitDiff;
360
+ return left.display_name.localeCompare(right.display_name) || left.match_key.localeCompare(right.match_key);
361
+ }
362
+ function isNewerIso(candidate, current) {
363
+ if (!current)
364
+ return true;
365
+ const candMs = Date.parse(candidate);
366
+ const currMs = Date.parse(current);
367
+ if (Number.isFinite(candMs) && Number.isFinite(currMs)) {
368
+ return candMs > currMs;
369
+ }
370
+ return candidate > current;
371
+ }
372
+ function isSameInstant(left, right) {
373
+ const leftMs = Date.parse(left);
374
+ const rightMs = Date.parse(right);
375
+ if (Number.isFinite(leftMs) && Number.isFinite(rightMs))
376
+ return leftMs === rightMs;
377
+ return left === right;
378
+ }
379
+ function compareIsoDesc(left, right) {
380
+ if (left === right)
381
+ return 0;
382
+ if (!left)
383
+ return 1;
384
+ if (!right)
385
+ return -1;
386
+ const leftMs = Date.parse(left);
387
+ const rightMs = Date.parse(right);
388
+ if (Number.isFinite(leftMs) && Number.isFinite(rightMs)) {
389
+ return rightMs - leftMs;
390
+ }
391
+ return right.localeCompare(left);
392
+ }
393
+ function uniqueSorted(values) {
394
+ return [...new Set(values.map((v) => v.trim()).filter(Boolean))].sort((a, b) => a.localeCompare(b));
395
+ }
396
+ //# sourceMappingURL=project-merge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project-merge.js","sourceRoot":"","sources":["../src/project-merge.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,qBAAqB,EACrB,oCAAoC,EACpC,MAAM,EACN,sBAAsB,GAavB,MAAM,mBAAmB,CAAC;AA4B3B;;;GAGG;AACH,MAAM,UAAU,6BAA6B,CAC3C,aAAwC,EACxC,QAAmC,EACnC,WAA+B;IAE/B,MAAM,SAAS,GAAG,aAAa,EAAE,IAAI,EAAE,IAAI,QAAQ,EAAE,IAAI,EAAE,IAAI,WAAW,EAAE,IAAI,EAAE,IAAI,SAAS,CAAC;IAChG,MAAM,UAAU,GAAG,SAAS,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IACvE,MAAM,QAAQ,GAAG,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACvD,MAAM,IAAI,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,UAAU,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M,KAAK,OAAO,CAAC;IACnF,OAAO,IAAI,KAAK,KAAK,CAAC;AACxB,CAAC;AAED,SAAS,cAAc,CAAC,IAAmB,EAAE,KAAoB;IAC/D,IAAI,IAAI,KAAK,KAAK;QAAE,OAAO,CAAC,CAAC;IAC7B,IAAI,CAAC,IAAI;QAAE,OAAO,CAAC,CAAC;IACpB,IAAI,CAAC,KAAK;QAAE,OAAO,CAAC,CAAC,CAAC;IACtB,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAChC,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAClC,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;QACxD,OAAO,OAAO,GAAG,MAAM,CAAC;IAC1B,CAAC;IACD,OAAO,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AACnC,CAAC;AAED,SAAS,YAAY,CAAC,MAAyB;IAC7C,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;AACtG,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Role: Unit tests for pure zero-I/O cross-host project reconciliation and
3
+ * projects v1 envelope builders.
4
+ * Excludes local Git process execution (tested in source-adapters and lite-cli).
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=project-merge.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project-merge.test.d.ts","sourceRoot":"","sources":["../src/project-merge.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}