@productbrain/cli 0.1.0-beta.5 → 0.1.0-beta.5060

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 (1496) hide show
  1. package/README.md +100 -30
  2. package/dist/__tests__/adapters.test.d.ts +2 -0
  3. package/dist/__tests__/adapters.test.d.ts.map +1 -0
  4. package/dist/__tests__/adapters.test.js +470 -0
  5. package/dist/__tests__/adapters.test.js.map +1 -0
  6. package/dist/__tests__/adminConfig.test.d.ts +18 -0
  7. package/dist/__tests__/adminConfig.test.d.ts.map +1 -0
  8. package/dist/__tests__/adminConfig.test.js +221 -0
  9. package/dist/__tests__/adminConfig.test.js.map +1 -0
  10. package/dist/__tests__/audit.test.d.ts +2 -0
  11. package/dist/__tests__/audit.test.d.ts.map +1 -0
  12. package/dist/__tests__/audit.test.js +415 -0
  13. package/dist/__tests__/audit.test.js.map +1 -0
  14. package/dist/__tests__/authority-domains-queue.test.d.ts +2 -0
  15. package/dist/__tests__/authority-domains-queue.test.d.ts.map +1 -0
  16. package/dist/__tests__/authority-domains-queue.test.js +169 -0
  17. package/dist/__tests__/authority-domains-queue.test.js.map +1 -0
  18. package/dist/__tests__/authority-domains.test.d.ts +2 -0
  19. package/dist/__tests__/authority-domains.test.d.ts.map +1 -0
  20. package/dist/__tests__/authority-domains.test.js +48 -0
  21. package/dist/__tests__/authority-domains.test.js.map +1 -0
  22. package/dist/__tests__/batch-transformations.test.d.ts +2 -0
  23. package/dist/__tests__/batch-transformations.test.d.ts.map +1 -0
  24. package/dist/__tests__/batch-transformations.test.js +263 -0
  25. package/dist/__tests__/batch-transformations.test.js.map +1 -0
  26. package/dist/__tests__/canonicalRefs.vocab.test.d.ts +2 -0
  27. package/dist/__tests__/canonicalRefs.vocab.test.d.ts.map +1 -0
  28. package/dist/__tests__/canonicalRefs.vocab.test.js +251 -0
  29. package/dist/__tests__/canonicalRefs.vocab.test.js.map +1 -0
  30. package/dist/__tests__/capture-receipt-coaching.test.d.ts +2 -0
  31. package/dist/__tests__/capture-receipt-coaching.test.d.ts.map +1 -0
  32. package/dist/__tests__/capture-receipt-coaching.test.js +89 -0
  33. package/dist/__tests__/capture-receipt-coaching.test.js.map +1 -0
  34. package/dist/__tests__/capture-receipt-domain.test.d.ts +2 -0
  35. package/dist/__tests__/capture-receipt-domain.test.d.ts.map +1 -0
  36. package/dist/__tests__/capture-receipt-domain.test.js +29 -0
  37. package/dist/__tests__/capture-receipt-domain.test.js.map +1 -0
  38. package/dist/__tests__/capture.test.d.ts +2 -0
  39. package/dist/__tests__/capture.test.d.ts.map +1 -0
  40. package/dist/__tests__/capture.test.js +1198 -0
  41. package/dist/__tests__/capture.test.js.map +1 -0
  42. package/dist/__tests__/coaching-mirror-drift.test.d.ts +2 -0
  43. package/dist/__tests__/coaching-mirror-drift.test.d.ts.map +1 -0
  44. package/dist/__tests__/coaching-mirror-drift.test.js +47 -0
  45. package/dist/__tests__/coaching-mirror-drift.test.js.map +1 -0
  46. package/dist/__tests__/codex-prep-parity.test.d.ts +2 -0
  47. package/dist/__tests__/codex-prep-parity.test.d.ts.map +1 -0
  48. package/dist/__tests__/codex-prep-parity.test.js +107 -0
  49. package/dist/__tests__/codex-prep-parity.test.js.map +1 -0
  50. package/dist/__tests__/collection-registry-seed-drift.test.d.ts +2 -0
  51. package/dist/__tests__/collection-registry-seed-drift.test.d.ts.map +1 -0
  52. package/dist/__tests__/collection-registry-seed-drift.test.js +68 -0
  53. package/dist/__tests__/collection-registry-seed-drift.test.js.map +1 -0
  54. package/dist/__tests__/config-prod-fallthrough.test.d.ts +2 -0
  55. package/dist/__tests__/config-prod-fallthrough.test.d.ts.map +1 -0
  56. package/dist/__tests__/config-prod-fallthrough.test.js +93 -0
  57. package/dist/__tests__/config-prod-fallthrough.test.js.map +1 -0
  58. package/dist/__tests__/config.test.d.ts +8 -0
  59. package/dist/__tests__/config.test.d.ts.map +1 -0
  60. package/dist/__tests__/config.test.js +993 -0
  61. package/dist/__tests__/config.test.js.map +1 -0
  62. package/dist/__tests__/constants.test.d.ts +2 -0
  63. package/dist/__tests__/constants.test.d.ts.map +1 -0
  64. package/dist/__tests__/constants.test.js +146 -0
  65. package/dist/__tests__/constants.test.js.map +1 -0
  66. package/dist/__tests__/constellation.test.d.ts +2 -0
  67. package/dist/__tests__/constellation.test.d.ts.map +1 -0
  68. package/dist/__tests__/constellation.test.js +254 -0
  69. package/dist/__tests__/constellation.test.js.map +1 -0
  70. package/dist/__tests__/context-strategy.test.d.ts +2 -0
  71. package/dist/__tests__/context-strategy.test.d.ts.map +1 -0
  72. package/dist/__tests__/context-strategy.test.js +79 -0
  73. package/dist/__tests__/context-strategy.test.js.map +1 -0
  74. package/dist/__tests__/conversation.test.d.ts +2 -0
  75. package/dist/__tests__/conversation.test.d.ts.map +1 -0
  76. package/dist/__tests__/conversation.test.js +113 -0
  77. package/dist/__tests__/conversation.test.js.map +1 -0
  78. package/dist/__tests__/entry-formatter.test.d.ts +2 -0
  79. package/dist/__tests__/entry-formatter.test.d.ts.map +1 -0
  80. package/dist/__tests__/entry-formatter.test.js +82 -0
  81. package/dist/__tests__/entry-formatter.test.js.map +1 -0
  82. package/dist/__tests__/entryArchive.test.d.ts +2 -0
  83. package/dist/__tests__/entryArchive.test.d.ts.map +1 -0
  84. package/dist/__tests__/entryArchive.test.js +35 -0
  85. package/dist/__tests__/entryArchive.test.js.map +1 -0
  86. package/dist/__tests__/envelope-contract.test.d.ts +15 -0
  87. package/dist/__tests__/envelope-contract.test.d.ts.map +1 -0
  88. package/dist/__tests__/envelope-contract.test.js +154 -0
  89. package/dist/__tests__/envelope-contract.test.js.map +1 -0
  90. package/dist/__tests__/errors.test.d.ts +2 -0
  91. package/dist/__tests__/errors.test.d.ts.map +1 -0
  92. package/dist/__tests__/errors.test.js +143 -0
  93. package/dist/__tests__/errors.test.js.map +1 -0
  94. package/dist/__tests__/experiment.test.d.ts +6 -0
  95. package/dist/__tests__/experiment.test.d.ts.map +1 -0
  96. package/dist/__tests__/experiment.test.js +69 -0
  97. package/dist/__tests__/experiment.test.js.map +1 -0
  98. package/dist/__tests__/fields.test.d.ts +2 -0
  99. package/dist/__tests__/fields.test.d.ts.map +1 -0
  100. package/dist/__tests__/fields.test.js +238 -0
  101. package/dist/__tests__/fields.test.js.map +1 -0
  102. package/dist/__tests__/gateway-dry-run-timeout.test.d.ts +2 -0
  103. package/dist/__tests__/gateway-dry-run-timeout.test.d.ts.map +1 -0
  104. package/dist/__tests__/gateway-dry-run-timeout.test.js +70 -0
  105. package/dist/__tests__/gateway-dry-run-timeout.test.js.map +1 -0
  106. package/dist/__tests__/gateway-timeout-body-phase.test.d.ts +2 -0
  107. package/dist/__tests__/gateway-timeout-body-phase.test.d.ts.map +1 -0
  108. package/dist/__tests__/gateway-timeout-body-phase.test.js +121 -0
  109. package/dist/__tests__/gateway-timeout-body-phase.test.js.map +1 -0
  110. package/dist/__tests__/glossary.test.d.ts +2 -0
  111. package/dist/__tests__/glossary.test.d.ts.map +1 -0
  112. package/dist/__tests__/glossary.test.js +32 -0
  113. package/dist/__tests__/glossary.test.js.map +1 -0
  114. package/dist/__tests__/handshake-augment.test.d.ts +2 -0
  115. package/dist/__tests__/handshake-augment.test.d.ts.map +1 -0
  116. package/dist/__tests__/handshake-augment.test.js +424 -0
  117. package/dist/__tests__/handshake-augment.test.js.map +1 -0
  118. package/dist/__tests__/handshake-dormancy.test.d.ts +2 -0
  119. package/dist/__tests__/handshake-dormancy.test.d.ts.map +1 -0
  120. package/dist/__tests__/handshake-dormancy.test.js +207 -0
  121. package/dist/__tests__/handshake-dormancy.test.js.map +1 -0
  122. package/dist/__tests__/handshake-formatter.test.d.ts +2 -0
  123. package/dist/__tests__/handshake-formatter.test.d.ts.map +1 -0
  124. package/dist/__tests__/handshake-formatter.test.js +67 -0
  125. package/dist/__tests__/handshake-formatter.test.js.map +1 -0
  126. package/dist/__tests__/handshake-preview.test.d.ts +2 -0
  127. package/dist/__tests__/handshake-preview.test.d.ts.map +1 -0
  128. package/dist/__tests__/handshake-preview.test.js +950 -0
  129. package/dist/__tests__/handshake-preview.test.js.map +1 -0
  130. package/dist/__tests__/handshake.e2e.test.d.ts +2 -0
  131. package/dist/__tests__/handshake.e2e.test.d.ts.map +1 -0
  132. package/dist/__tests__/handshake.e2e.test.js +1255 -0
  133. package/dist/__tests__/handshake.e2e.test.js.map +1 -0
  134. package/dist/__tests__/handshake.test.d.ts +2 -0
  135. package/dist/__tests__/handshake.test.d.ts.map +1 -0
  136. package/dist/__tests__/handshake.test.js +981 -0
  137. package/dist/__tests__/handshake.test.js.map +1 -0
  138. package/dist/__tests__/health-gap-kinds-drift.test.d.ts +2 -0
  139. package/dist/__tests__/health-gap-kinds-drift.test.d.ts.map +1 -0
  140. package/dist/__tests__/health-gap-kinds-drift.test.js +41 -0
  141. package/dist/__tests__/health-gap-kinds-drift.test.js.map +1 -0
  142. package/dist/__tests__/hook-intents.test.d.ts +2 -0
  143. package/dist/__tests__/hook-intents.test.d.ts.map +1 -0
  144. package/dist/__tests__/hook-intents.test.js +184 -0
  145. package/dist/__tests__/hook-intents.test.js.map +1 -0
  146. package/dist/__tests__/ingest.test.js +119 -12
  147. package/dist/__tests__/ingest.test.js.map +1 -1
  148. package/dist/__tests__/init.test.d.ts +7 -0
  149. package/dist/__tests__/init.test.d.ts.map +1 -0
  150. package/dist/__tests__/init.test.js +183 -0
  151. package/dist/__tests__/init.test.js.map +1 -0
  152. package/dist/__tests__/kernel-value-sets-drift.test.d.ts +2 -0
  153. package/dist/__tests__/kernel-value-sets-drift.test.d.ts.map +1 -0
  154. package/dist/__tests__/kernel-value-sets-drift.test.js +46 -0
  155. package/dist/__tests__/kernel-value-sets-drift.test.js.map +1 -0
  156. package/dist/__tests__/kernel-value-sets-generator.test.d.ts +2 -0
  157. package/dist/__tests__/kernel-value-sets-generator.test.d.ts.map +1 -0
  158. package/dist/__tests__/kernel-value-sets-generator.test.js +108 -0
  159. package/dist/__tests__/kernel-value-sets-generator.test.js.map +1 -0
  160. package/dist/__tests__/login.test.d.ts +2 -0
  161. package/dist/__tests__/login.test.d.ts.map +1 -0
  162. package/dist/__tests__/login.test.js +167 -0
  163. package/dist/__tests__/login.test.js.map +1 -0
  164. package/dist/__tests__/manifest.test.d.ts +6 -0
  165. package/dist/__tests__/manifest.test.d.ts.map +1 -0
  166. package/dist/__tests__/manifest.test.js +255 -0
  167. package/dist/__tests__/manifest.test.js.map +1 -0
  168. package/dist/__tests__/method-publish-coherency.test.d.ts +9 -0
  169. package/dist/__tests__/method-publish-coherency.test.d.ts.map +1 -0
  170. package/dist/__tests__/method-publish-coherency.test.js +71 -0
  171. package/dist/__tests__/method-publish-coherency.test.js.map +1 -0
  172. package/dist/__tests__/method-registry.integration.test.d.ts +6 -0
  173. package/dist/__tests__/method-registry.integration.test.d.ts.map +1 -0
  174. package/dist/__tests__/method-registry.integration.test.js +17 -0
  175. package/dist/__tests__/method-registry.integration.test.js.map +1 -0
  176. package/dist/__tests__/method-registry.test.d.ts +12 -0
  177. package/dist/__tests__/method-registry.test.d.ts.map +1 -0
  178. package/dist/__tests__/method-registry.test.js +86 -0
  179. package/dist/__tests__/method-registry.test.js.map +1 -0
  180. package/dist/__tests__/missingPin.test.d.ts +11 -0
  181. package/dist/__tests__/missingPin.test.d.ts.map +1 -0
  182. package/dist/__tests__/missingPin.test.js +233 -0
  183. package/dist/__tests__/missingPin.test.js.map +1 -0
  184. package/dist/__tests__/notice-marker.test.d.ts +2 -0
  185. package/dist/__tests__/notice-marker.test.d.ts.map +1 -0
  186. package/dist/__tests__/notice-marker.test.js +176 -0
  187. package/dist/__tests__/notice-marker.test.js.map +1 -0
  188. package/dist/__tests__/onboarding-path-b.test.d.ts +2 -0
  189. package/dist/__tests__/onboarding-path-b.test.d.ts.map +1 -0
  190. package/dist/__tests__/onboarding-path-b.test.js +46 -0
  191. package/dist/__tests__/onboarding-path-b.test.js.map +1 -0
  192. package/dist/__tests__/onboarding.test.d.ts +6 -0
  193. package/dist/__tests__/onboarding.test.d.ts.map +1 -0
  194. package/dist/__tests__/onboarding.test.js +347 -0
  195. package/dist/__tests__/onboarding.test.js.map +1 -0
  196. package/dist/__tests__/orient.test.d.ts +2 -0
  197. package/dist/__tests__/orient.test.d.ts.map +1 -0
  198. package/dist/__tests__/orient.test.js +633 -0
  199. package/dist/__tests__/orient.test.js.map +1 -0
  200. package/dist/__tests__/perimeter.test.d.ts +2 -0
  201. package/dist/__tests__/perimeter.test.d.ts.map +1 -0
  202. package/dist/__tests__/perimeter.test.js +165 -0
  203. package/dist/__tests__/perimeter.test.js.map +1 -0
  204. package/dist/__tests__/personal-layer.test.d.ts +11 -0
  205. package/dist/__tests__/personal-layer.test.d.ts.map +1 -0
  206. package/dist/__tests__/personal-layer.test.js +268 -0
  207. package/dist/__tests__/personal-layer.test.js.map +1 -0
  208. package/dist/__tests__/preview-key-refresh.test.d.ts +2 -0
  209. package/dist/__tests__/preview-key-refresh.test.d.ts.map +1 -0
  210. package/dist/__tests__/preview-key-refresh.test.js +126 -0
  211. package/dist/__tests__/preview-key-refresh.test.js.map +1 -0
  212. package/dist/__tests__/profiles.test.d.ts +2 -0
  213. package/dist/__tests__/profiles.test.d.ts.map +1 -0
  214. package/dist/__tests__/profiles.test.js +449 -0
  215. package/dist/__tests__/profiles.test.js.map +1 -0
  216. package/dist/__tests__/promote-batch.test.d.ts +2 -0
  217. package/dist/__tests__/promote-batch.test.d.ts.map +1 -0
  218. package/dist/__tests__/promote-batch.test.js +185 -0
  219. package/dist/__tests__/promote-batch.test.js.map +1 -0
  220. package/dist/__tests__/promote.test.d.ts +2 -0
  221. package/dist/__tests__/promote.test.d.ts.map +1 -0
  222. package/dist/__tests__/promote.test.js +430 -0
  223. package/dist/__tests__/promote.test.js.map +1 -0
  224. package/dist/__tests__/prompts.test.d.ts +6 -0
  225. package/dist/__tests__/prompts.test.d.ts.map +1 -0
  226. package/dist/__tests__/prompts.test.js +146 -0
  227. package/dist/__tests__/prompts.test.js.map +1 -0
  228. package/dist/__tests__/proof-run.test.d.ts +2 -0
  229. package/dist/__tests__/proof-run.test.d.ts.map +1 -0
  230. package/dist/__tests__/proof-run.test.js +255 -0
  231. package/dist/__tests__/proof-run.test.js.map +1 -0
  232. package/dist/__tests__/proposals.test.d.ts +2 -0
  233. package/dist/__tests__/proposals.test.d.ts.map +1 -0
  234. package/dist/__tests__/proposals.test.js +167 -0
  235. package/dist/__tests__/proposals.test.js.map +1 -0
  236. package/dist/__tests__/rate-limit-resilience.test.d.ts +7 -0
  237. package/dist/__tests__/rate-limit-resilience.test.d.ts.map +1 -0
  238. package/dist/__tests__/rate-limit-resilience.test.js +209 -0
  239. package/dist/__tests__/rate-limit-resilience.test.js.map +1 -0
  240. package/dist/__tests__/relate.test.d.ts +2 -0
  241. package/dist/__tests__/relate.test.d.ts.map +1 -0
  242. package/dist/__tests__/relate.test.js +235 -0
  243. package/dist/__tests__/relate.test.js.map +1 -0
  244. package/dist/__tests__/repo-detect.test.d.ts +2 -0
  245. package/dist/__tests__/repo-detect.test.d.ts.map +1 -0
  246. package/dist/__tests__/repo-detect.test.js +215 -0
  247. package/dist/__tests__/repo-detect.test.js.map +1 -0
  248. package/dist/__tests__/reportedProfile.test.d.ts +2 -0
  249. package/dist/__tests__/reportedProfile.test.d.ts.map +1 -0
  250. package/dist/__tests__/reportedProfile.test.js +104 -0
  251. package/dist/__tests__/reportedProfile.test.js.map +1 -0
  252. package/dist/__tests__/restore.test.d.ts +2 -0
  253. package/dist/__tests__/restore.test.d.ts.map +1 -0
  254. package/dist/__tests__/restore.test.js +85 -0
  255. package/dist/__tests__/restore.test.js.map +1 -0
  256. package/dist/__tests__/route-latency-budget.test.d.ts +2 -0
  257. package/dist/__tests__/route-latency-budget.test.d.ts.map +1 -0
  258. package/dist/__tests__/route-latency-budget.test.js +103 -0
  259. package/dist/__tests__/route-latency-budget.test.js.map +1 -0
  260. package/dist/__tests__/runner.test.d.ts +2 -0
  261. package/dist/__tests__/runner.test.d.ts.map +1 -0
  262. package/dist/__tests__/runner.test.js +219 -0
  263. package/dist/__tests__/runner.test.js.map +1 -0
  264. package/dist/__tests__/session-close-loop.test.d.ts +2 -0
  265. package/dist/__tests__/session-close-loop.test.d.ts.map +1 -0
  266. package/dist/__tests__/session-close-loop.test.js +231 -0
  267. package/dist/__tests__/session-close-loop.test.js.map +1 -0
  268. package/dist/__tests__/session-label.test.d.ts +2 -0
  269. package/dist/__tests__/session-label.test.d.ts.map +1 -0
  270. package/dist/__tests__/session-label.test.js +46 -0
  271. package/dist/__tests__/session-label.test.js.map +1 -0
  272. package/dist/__tests__/session-list-show.test.d.ts +2 -0
  273. package/dist/__tests__/session-list-show.test.d.ts.map +1 -0
  274. package/dist/__tests__/session-list-show.test.js +174 -0
  275. package/dist/__tests__/session-list-show.test.js.map +1 -0
  276. package/dist/__tests__/session-reset.test.d.ts +2 -0
  277. package/dist/__tests__/session-reset.test.d.ts.map +1 -0
  278. package/dist/__tests__/session-reset.test.js +138 -0
  279. package/dist/__tests__/session-reset.test.js.map +1 -0
  280. package/dist/__tests__/session-resume-backstop.test.d.ts +2 -0
  281. package/dist/__tests__/session-resume-backstop.test.d.ts.map +1 -0
  282. package/dist/__tests__/session-resume-backstop.test.js +99 -0
  283. package/dist/__tests__/session-resume-backstop.test.js.map +1 -0
  284. package/dist/__tests__/session-start-key-refresh.test.d.ts +2 -0
  285. package/dist/__tests__/session-start-key-refresh.test.d.ts.map +1 -0
  286. package/dist/__tests__/session-start-key-refresh.test.js +183 -0
  287. package/dist/__tests__/session-start-key-refresh.test.js.map +1 -0
  288. package/dist/__tests__/session-state-machine.test.d.ts +2 -0
  289. package/dist/__tests__/session-state-machine.test.d.ts.map +1 -0
  290. package/dist/__tests__/session-state-machine.test.js +379 -0
  291. package/dist/__tests__/session-state-machine.test.js.map +1 -0
  292. package/dist/__tests__/session-switch.test.d.ts +2 -0
  293. package/dist/__tests__/session-switch.test.d.ts.map +1 -0
  294. package/dist/__tests__/session-switch.test.js +160 -0
  295. package/dist/__tests__/session-switch.test.js.map +1 -0
  296. package/dist/__tests__/session-touch.test.d.ts +2 -0
  297. package/dist/__tests__/session-touch.test.d.ts.map +1 -0
  298. package/dist/__tests__/session-touch.test.js +139 -0
  299. package/dist/__tests__/session-touch.test.js.map +1 -0
  300. package/dist/__tests__/session.test.d.ts +2 -0
  301. package/dist/__tests__/session.test.d.ts.map +1 -0
  302. package/dist/__tests__/session.test.js +46 -0
  303. package/dist/__tests__/session.test.js.map +1 -0
  304. package/dist/__tests__/setup-ingest.test.d.ts +2 -0
  305. package/dist/__tests__/setup-ingest.test.d.ts.map +1 -0
  306. package/dist/__tests__/setup-ingest.test.js +71 -0
  307. package/dist/__tests__/setup-ingest.test.js.map +1 -0
  308. package/dist/__tests__/setup-resolver.test.d.ts +14 -0
  309. package/dist/__tests__/setup-resolver.test.d.ts.map +1 -0
  310. package/dist/__tests__/setup-resolver.test.js +228 -0
  311. package/dist/__tests__/setup-resolver.test.js.map +1 -0
  312. package/dist/__tests__/setupShFallbackWarning.test.d.ts +2 -0
  313. package/dist/__tests__/setupShFallbackWarning.test.d.ts.map +1 -0
  314. package/dist/__tests__/setupShFallbackWarning.test.js +15 -0
  315. package/dist/__tests__/setupShFallbackWarning.test.js.map +1 -0
  316. package/dist/__tests__/skill-vocabulary.test.d.ts +21 -0
  317. package/dist/__tests__/skill-vocabulary.test.d.ts.map +1 -0
  318. package/dist/__tests__/skill-vocabulary.test.js +192 -0
  319. package/dist/__tests__/skill-vocabulary.test.js.map +1 -0
  320. package/dist/__tests__/spinner-labels.test.d.ts +2 -0
  321. package/dist/__tests__/spinner-labels.test.d.ts.map +1 -0
  322. package/dist/__tests__/spinner-labels.test.js +23 -0
  323. package/dist/__tests__/spinner-labels.test.js.map +1 -0
  324. package/dist/__tests__/state.test.d.ts +6 -0
  325. package/dist/__tests__/state.test.d.ts.map +1 -0
  326. package/dist/__tests__/state.test.js +117 -0
  327. package/dist/__tests__/state.test.js.map +1 -0
  328. package/dist/__tests__/strip.test.d.ts +2 -0
  329. package/dist/__tests__/strip.test.d.ts.map +1 -0
  330. package/dist/__tests__/strip.test.js +164 -0
  331. package/dist/__tests__/strip.test.js.map +1 -0
  332. package/dist/__tests__/surface-profiles.test.d.ts +2 -0
  333. package/dist/__tests__/surface-profiles.test.d.ts.map +1 -0
  334. package/dist/__tests__/surface-profiles.test.js +233 -0
  335. package/dist/__tests__/surface-profiles.test.js.map +1 -0
  336. package/dist/__tests__/surfaces.test.d.ts +2 -0
  337. package/dist/__tests__/surfaces.test.d.ts.map +1 -0
  338. package/dist/__tests__/surfaces.test.js +46 -0
  339. package/dist/__tests__/surfaces.test.js.map +1 -0
  340. package/dist/__tests__/update-check.test.d.ts +2 -0
  341. package/dist/__tests__/update-check.test.d.ts.map +1 -0
  342. package/dist/__tests__/update-check.test.js +215 -0
  343. package/dist/__tests__/update-check.test.js.map +1 -0
  344. package/dist/__tests__/update.test.d.ts +2 -0
  345. package/dist/__tests__/update.test.d.ts.map +1 -0
  346. package/dist/__tests__/update.test.js +469 -0
  347. package/dist/__tests__/update.test.js.map +1 -0
  348. package/dist/__tests__/upgrade-runner.test.d.ts +2 -0
  349. package/dist/__tests__/upgrade-runner.test.d.ts.map +1 -0
  350. package/dist/__tests__/upgrade-runner.test.js +54 -0
  351. package/dist/__tests__/upgrade-runner.test.js.map +1 -0
  352. package/dist/__tests__/upgrade.test.d.ts +2 -0
  353. package/dist/__tests__/upgrade.test.d.ts.map +1 -0
  354. package/dist/__tests__/upgrade.test.js +56 -0
  355. package/dist/__tests__/upgrade.test.js.map +1 -0
  356. package/dist/__tests__/verify-formatter.test.d.ts +2 -0
  357. package/dist/__tests__/verify-formatter.test.d.ts.map +1 -0
  358. package/dist/__tests__/verify-formatter.test.js +85 -0
  359. package/dist/__tests__/verify-formatter.test.js.map +1 -0
  360. package/dist/__tests__/vocabulary-leak.test.d.ts +39 -0
  361. package/dist/__tests__/vocabulary-leak.test.d.ts.map +1 -0
  362. package/dist/__tests__/vocabulary-leak.test.js +539 -0
  363. package/dist/__tests__/vocabulary-leak.test.js.map +1 -0
  364. package/dist/__tests__/workspace.test.d.ts +2 -0
  365. package/dist/__tests__/workspace.test.d.ts.map +1 -0
  366. package/dist/__tests__/workspace.test.js +328 -0
  367. package/dist/__tests__/workspace.test.js.map +1 -0
  368. package/dist/__tests__/workspaceNotice.test.d.ts +2 -0
  369. package/dist/__tests__/workspaceNotice.test.d.ts.map +1 -0
  370. package/dist/__tests__/workspaceNotice.test.js +369 -0
  371. package/dist/__tests__/workspaceNotice.test.js.map +1 -0
  372. package/dist/commands/__tests__/connect-handoff.test.d.ts +11 -0
  373. package/dist/commands/__tests__/connect-handoff.test.d.ts.map +1 -0
  374. package/dist/commands/__tests__/connect-handoff.test.js +111 -0
  375. package/dist/commands/__tests__/connect-handoff.test.js.map +1 -0
  376. package/dist/commands/__tests__/quality.test.d.ts +2 -0
  377. package/dist/commands/__tests__/quality.test.d.ts.map +1 -0
  378. package/dist/commands/__tests__/quality.test.js +156 -0
  379. package/dist/commands/__tests__/quality.test.js.map +1 -0
  380. package/dist/commands/__tests__/rework.test.d.ts +2 -0
  381. package/dist/commands/__tests__/rework.test.d.ts.map +1 -0
  382. package/dist/commands/__tests__/rework.test.js +149 -0
  383. package/dist/commands/__tests__/rework.test.js.map +1 -0
  384. package/dist/commands/__tests__/setup-detect-surfaces.test.d.ts +15 -0
  385. package/dist/commands/__tests__/setup-detect-surfaces.test.d.ts.map +1 -0
  386. package/dist/commands/__tests__/setup-detect-surfaces.test.js +149 -0
  387. package/dist/commands/__tests__/setup-detect-surfaces.test.js.map +1 -0
  388. package/dist/commands/__tests__/setup-state.test.d.ts +2 -0
  389. package/dist/commands/__tests__/setup-state.test.d.ts.map +1 -0
  390. package/dist/commands/__tests__/setup-state.test.js +194 -0
  391. package/dist/commands/__tests__/setup-state.test.js.map +1 -0
  392. package/dist/commands/accept-policy.d.ts +10 -0
  393. package/dist/commands/accept-policy.d.ts.map +1 -0
  394. package/dist/commands/accept-policy.js +107 -0
  395. package/dist/commands/accept-policy.js.map +1 -0
  396. package/dist/commands/accept.d.ts +18 -0
  397. package/dist/commands/accept.d.ts.map +1 -0
  398. package/dist/commands/accept.js +76 -0
  399. package/dist/commands/accept.js.map +1 -0
  400. package/dist/commands/admin/cockpit.d.ts +91 -0
  401. package/dist/commands/admin/cockpit.d.ts.map +1 -0
  402. package/dist/commands/admin/cockpit.js +617 -0
  403. package/dist/commands/admin/cockpit.js.map +1 -0
  404. package/dist/commands/admin/index.d.ts +70 -0
  405. package/dist/commands/admin/index.d.ts.map +1 -0
  406. package/dist/commands/admin/index.js +365 -0
  407. package/dist/commands/admin/index.js.map +1 -0
  408. package/dist/commands/admin/index.test.d.ts +2 -0
  409. package/dist/commands/admin/index.test.d.ts.map +1 -0
  410. package/dist/commands/admin/index.test.js +68 -0
  411. package/dist/commands/admin/index.test.js.map +1 -0
  412. package/dist/commands/admin/inspect.d.ts +30 -0
  413. package/dist/commands/admin/inspect.d.ts.map +1 -0
  414. package/dist/commands/admin/inspect.js +555 -0
  415. package/dist/commands/admin/inspect.js.map +1 -0
  416. package/dist/commands/admin/inspect.test.d.ts +7 -0
  417. package/dist/commands/admin/inspect.test.d.ts.map +1 -0
  418. package/dist/commands/admin/inspect.test.js +90 -0
  419. package/dist/commands/admin/inspect.test.js.map +1 -0
  420. package/dist/commands/admin/manage.d.ts +8 -0
  421. package/dist/commands/admin/manage.d.ts.map +1 -0
  422. package/dist/commands/admin/manage.js +260 -0
  423. package/dist/commands/admin/manage.js.map +1 -0
  424. package/dist/commands/admin/manage.test.d.ts +16 -0
  425. package/dist/commands/admin/manage.test.d.ts.map +1 -0
  426. package/dist/commands/admin/manage.test.js +159 -0
  427. package/dist/commands/admin/manage.test.js.map +1 -0
  428. package/dist/commands/admin/probe.d.ts +48 -0
  429. package/dist/commands/admin/probe.d.ts.map +1 -0
  430. package/dist/commands/admin/probe.js +191 -0
  431. package/dist/commands/admin/probe.js.map +1 -0
  432. package/dist/commands/admin/probe.test.d.ts +2 -0
  433. package/dist/commands/admin/probe.test.d.ts.map +1 -0
  434. package/dist/commands/admin/probe.test.js +146 -0
  435. package/dist/commands/admin/probe.test.js.map +1 -0
  436. package/dist/commands/admin/run.d.ts +43 -0
  437. package/dist/commands/admin/run.d.ts.map +1 -0
  438. package/dist/commands/admin/run.js +78 -0
  439. package/dist/commands/admin/run.js.map +1 -0
  440. package/dist/commands/admin/run.test.d.ts +18 -0
  441. package/dist/commands/admin/run.test.d.ts.map +1 -0
  442. package/dist/commands/admin/run.test.js +168 -0
  443. package/dist/commands/admin/run.test.js.map +1 -0
  444. package/dist/commands/admin/seed.d.ts +75 -0
  445. package/dist/commands/admin/seed.d.ts.map +1 -0
  446. package/dist/commands/admin/seed.js +947 -0
  447. package/dist/commands/admin/seed.js.map +1 -0
  448. package/dist/commands/admin/seed.test.d.ts +11 -0
  449. package/dist/commands/admin/seed.test.d.ts.map +1 -0
  450. package/dist/commands/admin/seed.test.js +147 -0
  451. package/dist/commands/admin/seed.test.js.map +1 -0
  452. package/dist/commands/admin/seedRegistryEntries.generated.d.ts +14 -0
  453. package/dist/commands/admin/seedRegistryEntries.generated.d.ts.map +1 -0
  454. package/dist/commands/admin/seedRegistryEntries.generated.js +153 -0
  455. package/dist/commands/admin/seedRegistryEntries.generated.js.map +1 -0
  456. package/dist/commands/admin/seedRegistryEntries.test.d.ts +13 -0
  457. package/dist/commands/admin/seedRegistryEntries.test.d.ts.map +1 -0
  458. package/dist/commands/admin/seedRegistryEntries.test.js +91 -0
  459. package/dist/commands/admin/seedRegistryEntries.test.js.map +1 -0
  460. package/dist/commands/audit.d.ts +25 -0
  461. package/dist/commands/audit.d.ts.map +1 -0
  462. package/dist/commands/audit.js +223 -0
  463. package/dist/commands/audit.js.map +1 -0
  464. package/dist/commands/authority-domains.d.ts +157 -0
  465. package/dist/commands/authority-domains.d.ts.map +1 -0
  466. package/dist/commands/authority-domains.js +387 -0
  467. package/dist/commands/authority-domains.js.map +1 -0
  468. package/dist/commands/brand-pack.d.ts +2 -0
  469. package/dist/commands/brand-pack.d.ts.map +1 -0
  470. package/dist/commands/brand-pack.js +25 -0
  471. package/dist/commands/brand-pack.js.map +1 -0
  472. package/dist/commands/brief.d.ts +28 -0
  473. package/dist/commands/brief.d.ts.map +1 -0
  474. package/dist/commands/brief.js +79 -0
  475. package/dist/commands/brief.js.map +1 -0
  476. package/dist/commands/capture.d.ts +38 -0
  477. package/dist/commands/capture.d.ts.map +1 -0
  478. package/dist/commands/capture.js +402 -0
  479. package/dist/commands/capture.js.map +1 -0
  480. package/dist/commands/chain-walk.d.ts +14 -0
  481. package/dist/commands/chain-walk.d.ts.map +1 -0
  482. package/dist/commands/chain-walk.js +38 -0
  483. package/dist/commands/chain-walk.js.map +1 -0
  484. package/dist/commands/changes.d.ts +11 -0
  485. package/dist/commands/changes.d.ts.map +1 -0
  486. package/dist/commands/changes.js +46 -0
  487. package/dist/commands/changes.js.map +1 -0
  488. package/dist/commands/codex-prep.d.ts +23 -0
  489. package/dist/commands/codex-prep.d.ts.map +1 -0
  490. package/dist/commands/codex-prep.js +56 -0
  491. package/dist/commands/codex-prep.js.map +1 -0
  492. package/dist/commands/collections.d.ts +22 -0
  493. package/dist/commands/collections.d.ts.map +1 -0
  494. package/dist/commands/collections.js +77 -0
  495. package/dist/commands/collections.js.map +1 -0
  496. package/dist/commands/conflicts.d.ts +40 -0
  497. package/dist/commands/conflicts.d.ts.map +1 -0
  498. package/dist/commands/conflicts.js +267 -0
  499. package/dist/commands/conflicts.js.map +1 -0
  500. package/dist/commands/conflicts.test.d.ts +2 -0
  501. package/dist/commands/conflicts.test.d.ts.map +1 -0
  502. package/dist/commands/conflicts.test.js +219 -0
  503. package/dist/commands/conflicts.test.js.map +1 -0
  504. package/dist/commands/connect-config.test.d.ts +2 -0
  505. package/dist/commands/connect-config.test.d.ts.map +1 -0
  506. package/dist/commands/connect-config.test.js +44 -0
  507. package/dist/commands/connect-config.test.js.map +1 -0
  508. package/dist/commands/connect-context.d.ts +45 -0
  509. package/dist/commands/connect-context.d.ts.map +1 -0
  510. package/dist/commands/connect-context.js +83 -0
  511. package/dist/commands/connect-context.js.map +1 -0
  512. package/dist/commands/connect-context.test.d.ts +2 -0
  513. package/dist/commands/connect-context.test.d.ts.map +1 -0
  514. package/dist/commands/connect-context.test.js +158 -0
  515. package/dist/commands/connect-context.test.js.map +1 -0
  516. package/dist/commands/connect-handoff.d.ts +51 -0
  517. package/dist/commands/connect-handoff.d.ts.map +1 -0
  518. package/dist/commands/connect-handoff.js +70 -0
  519. package/dist/commands/connect-handoff.js.map +1 -0
  520. package/dist/commands/connect-integration.test.d.ts +7 -0
  521. package/dist/commands/connect-integration.test.d.ts.map +1 -0
  522. package/dist/commands/connect-integration.test.js +223 -0
  523. package/dist/commands/connect-integration.test.js.map +1 -0
  524. package/dist/commands/connect-legacy-migration.test.d.ts +2 -0
  525. package/dist/commands/connect-legacy-migration.test.d.ts.map +1 -0
  526. package/dist/commands/connect-legacy-migration.test.js +109 -0
  527. package/dist/commands/connect-legacy-migration.test.js.map +1 -0
  528. package/dist/commands/connect-screens.d.ts +33 -0
  529. package/dist/commands/connect-screens.d.ts.map +1 -0
  530. package/dist/commands/connect-screens.js +124 -0
  531. package/dist/commands/connect-screens.js.map +1 -0
  532. package/dist/commands/connect.d.ts +42 -0
  533. package/dist/commands/connect.d.ts.map +1 -0
  534. package/dist/commands/connect.js +416 -0
  535. package/dist/commands/connect.js.map +1 -0
  536. package/dist/commands/connect.test.d.ts +6 -0
  537. package/dist/commands/connect.test.d.ts.map +1 -0
  538. package/dist/commands/connect.test.js +571 -0
  539. package/dist/commands/connect.test.js.map +1 -0
  540. package/dist/commands/constellation.d.ts +11 -0
  541. package/dist/commands/constellation.d.ts.map +1 -0
  542. package/dist/commands/constellation.js +33 -0
  543. package/dist/commands/constellation.js.map +1 -0
  544. package/dist/commands/context.d.ts +2 -1
  545. package/dist/commands/context.d.ts.map +1 -1
  546. package/dist/commands/context.js +21 -10
  547. package/dist/commands/context.js.map +1 -1
  548. package/dist/commands/cross-cut.d.ts +11 -0
  549. package/dist/commands/cross-cut.d.ts.map +1 -0
  550. package/dist/commands/cross-cut.js +23 -0
  551. package/dist/commands/cross-cut.js.map +1 -0
  552. package/dist/commands/direction.d.ts +10 -0
  553. package/dist/commands/direction.d.ts.map +1 -0
  554. package/dist/commands/direction.js +79 -0
  555. package/dist/commands/direction.js.map +1 -0
  556. package/dist/commands/doctor.d.ts +18 -0
  557. package/dist/commands/doctor.d.ts.map +1 -0
  558. package/dist/commands/doctor.js +367 -0
  559. package/dist/commands/doctor.js.map +1 -0
  560. package/dist/commands/doctor.test.d.ts +8 -0
  561. package/dist/commands/doctor.test.d.ts.map +1 -0
  562. package/dist/commands/doctor.test.js +657 -0
  563. package/dist/commands/doctor.test.js.map +1 -0
  564. package/dist/commands/entryArchive.d.ts +8 -0
  565. package/dist/commands/entryArchive.d.ts.map +1 -0
  566. package/dist/commands/entryArchive.js +37 -0
  567. package/dist/commands/entryArchive.js.map +1 -0
  568. package/dist/commands/feedback.d.ts +36 -0
  569. package/dist/commands/feedback.d.ts.map +1 -0
  570. package/dist/commands/feedback.js +193 -0
  571. package/dist/commands/feedback.js.map +1 -0
  572. package/dist/commands/feedback.test.d.ts +2 -0
  573. package/dist/commands/feedback.test.d.ts.map +1 -0
  574. package/dist/commands/feedback.test.js +125 -0
  575. package/dist/commands/feedback.test.js.map +1 -0
  576. package/dist/commands/fields.d.ts +9 -0
  577. package/dist/commands/fields.d.ts.map +1 -0
  578. package/dist/commands/fields.js +30 -0
  579. package/dist/commands/fields.js.map +1 -0
  580. package/dist/commands/files.d.ts +26 -0
  581. package/dist/commands/files.d.ts.map +1 -0
  582. package/dist/commands/files.js +160 -0
  583. package/dist/commands/files.js.map +1 -0
  584. package/dist/commands/files.test.d.ts +2 -0
  585. package/dist/commands/files.test.d.ts.map +1 -0
  586. package/dist/commands/files.test.js +278 -0
  587. package/dist/commands/files.test.js.map +1 -0
  588. package/dist/commands/get.d.ts +8 -1
  589. package/dist/commands/get.d.ts.map +1 -1
  590. package/dist/commands/get.js +61 -8
  591. package/dist/commands/get.js.map +1 -1
  592. package/dist/commands/handshake.d.ts +249 -0
  593. package/dist/commands/handshake.d.ts.map +1 -0
  594. package/dist/commands/handshake.js +2661 -0
  595. package/dist/commands/handshake.js.map +1 -0
  596. package/dist/commands/ingest.d.ts +8 -2
  597. package/dist/commands/ingest.d.ts.map +1 -1
  598. package/dist/commands/ingest.js +160 -28
  599. package/dist/commands/ingest.js.map +1 -1
  600. package/dist/commands/init.d.ts +14 -0
  601. package/dist/commands/init.d.ts.map +1 -0
  602. package/dist/commands/init.js +120 -0
  603. package/dist/commands/init.js.map +1 -0
  604. package/dist/commands/login.d.ts +4 -0
  605. package/dist/commands/login.d.ts.map +1 -1
  606. package/dist/commands/login.js +101 -38
  607. package/dist/commands/login.js.map +1 -1
  608. package/dist/commands/method.d.ts +99 -0
  609. package/dist/commands/method.d.ts.map +1 -0
  610. package/dist/commands/method.js +804 -0
  611. package/dist/commands/method.js.map +1 -0
  612. package/dist/commands/migrate-setup.d.ts +18 -0
  613. package/dist/commands/migrate-setup.d.ts.map +1 -0
  614. package/dist/commands/migrate-setup.js +148 -0
  615. package/dist/commands/migrate-setup.js.map +1 -0
  616. package/dist/commands/organisation.d.ts +41 -0
  617. package/dist/commands/organisation.d.ts.map +1 -0
  618. package/dist/commands/organisation.js +353 -0
  619. package/dist/commands/organisation.js.map +1 -0
  620. package/dist/commands/organisation.test.d.ts +2 -0
  621. package/dist/commands/organisation.test.d.ts.map +1 -0
  622. package/dist/commands/organisation.test.js +233 -0
  623. package/dist/commands/organisation.test.js.map +1 -0
  624. package/dist/commands/organisationHierarchy.d.ts +8 -0
  625. package/dist/commands/organisationHierarchy.d.ts.map +1 -0
  626. package/dist/commands/organisationHierarchy.js +67 -0
  627. package/dist/commands/organisationHierarchy.js.map +1 -0
  628. package/dist/commands/organisationHierarchy.test.d.ts +2 -0
  629. package/dist/commands/organisationHierarchy.test.d.ts.map +1 -0
  630. package/dist/commands/organisationHierarchy.test.js +55 -0
  631. package/dist/commands/organisationHierarchy.test.js.map +1 -0
  632. package/dist/commands/organisationWrite.d.ts +18 -0
  633. package/dist/commands/organisationWrite.d.ts.map +1 -0
  634. package/dist/commands/organisationWrite.js +50 -0
  635. package/dist/commands/organisationWrite.js.map +1 -0
  636. package/dist/commands/orient.d.ts +235 -3
  637. package/dist/commands/orient.d.ts.map +1 -1
  638. package/dist/commands/orient.js +242 -10
  639. package/dist/commands/orient.js.map +1 -1
  640. package/dist/commands/profile.d.ts +34 -0
  641. package/dist/commands/profile.d.ts.map +1 -0
  642. package/dist/commands/profile.js +178 -0
  643. package/dist/commands/profile.js.map +1 -0
  644. package/dist/commands/promote.d.ts +23 -0
  645. package/dist/commands/promote.d.ts.map +1 -0
  646. package/dist/commands/promote.js +276 -0
  647. package/dist/commands/promote.js.map +1 -0
  648. package/dist/commands/proof-run.d.ts +51 -0
  649. package/dist/commands/proof-run.d.ts.map +1 -0
  650. package/dist/commands/proof-run.js +209 -0
  651. package/dist/commands/proof-run.js.map +1 -0
  652. package/dist/commands/proposals.d.ts +9 -0
  653. package/dist/commands/proposals.d.ts.map +1 -0
  654. package/dist/commands/proposals.js +24 -0
  655. package/dist/commands/proposals.js.map +1 -0
  656. package/dist/commands/quality.d.ts +16 -0
  657. package/dist/commands/quality.d.ts.map +1 -0
  658. package/dist/commands/quality.js +29 -0
  659. package/dist/commands/quality.js.map +1 -0
  660. package/dist/commands/questions.d.ts +33 -0
  661. package/dist/commands/questions.d.ts.map +1 -0
  662. package/dist/commands/questions.js +300 -0
  663. package/dist/commands/questions.js.map +1 -0
  664. package/dist/commands/questions.test.d.ts +2 -0
  665. package/dist/commands/questions.test.d.ts.map +1 -0
  666. package/dist/commands/questions.test.js +175 -0
  667. package/dist/commands/questions.test.js.map +1 -0
  668. package/dist/commands/reject.d.ts +14 -0
  669. package/dist/commands/reject.d.ts.map +1 -0
  670. package/dist/commands/reject.js +44 -0
  671. package/dist/commands/reject.js.map +1 -0
  672. package/dist/commands/relate.d.ts +17 -0
  673. package/dist/commands/relate.d.ts.map +1 -0
  674. package/dist/commands/relate.js +159 -0
  675. package/dist/commands/relate.js.map +1 -0
  676. package/dist/commands/restore.d.ts +2 -0
  677. package/dist/commands/restore.d.ts.map +1 -0
  678. package/dist/commands/restore.js +83 -0
  679. package/dist/commands/restore.js.map +1 -0
  680. package/dist/commands/rework.d.ts +24 -0
  681. package/dist/commands/rework.d.ts.map +1 -0
  682. package/dist/commands/rework.js +97 -0
  683. package/dist/commands/rework.js.map +1 -0
  684. package/dist/commands/scoreboard.d.ts +28 -0
  685. package/dist/commands/scoreboard.d.ts.map +1 -0
  686. package/dist/commands/scoreboard.js +40 -0
  687. package/dist/commands/scoreboard.js.map +1 -0
  688. package/dist/commands/search.d.ts +1 -0
  689. package/dist/commands/search.d.ts.map +1 -1
  690. package/dist/commands/search.js +6 -4
  691. package/dist/commands/search.js.map +1 -1
  692. package/dist/commands/session.d.ts +72 -0
  693. package/dist/commands/session.d.ts.map +1 -0
  694. package/dist/commands/session.js +579 -0
  695. package/dist/commands/session.js.map +1 -0
  696. package/dist/commands/setup-audit.d.ts +59 -0
  697. package/dist/commands/setup-audit.d.ts.map +1 -0
  698. package/dist/commands/setup-audit.js +250 -0
  699. package/dist/commands/setup-audit.js.map +1 -0
  700. package/dist/commands/setup-detect-surfaces.d.ts +38 -0
  701. package/dist/commands/setup-detect-surfaces.d.ts.map +1 -0
  702. package/dist/commands/setup-detect-surfaces.js +76 -0
  703. package/dist/commands/setup-detect-surfaces.js.map +1 -0
  704. package/dist/commands/setup-ingest.d.ts +17 -0
  705. package/dist/commands/setup-ingest.d.ts.map +1 -0
  706. package/dist/commands/setup-ingest.js +174 -0
  707. package/dist/commands/setup-ingest.js.map +1 -0
  708. package/dist/commands/setup-resolver.d.ts +58 -0
  709. package/dist/commands/setup-resolver.d.ts.map +1 -0
  710. package/dist/commands/setup-resolver.js +150 -0
  711. package/dist/commands/setup-resolver.js.map +1 -0
  712. package/dist/commands/setup-state.d.ts +42 -0
  713. package/dist/commands/setup-state.d.ts.map +1 -0
  714. package/dist/commands/setup-state.js +93 -0
  715. package/dist/commands/setup-state.js.map +1 -0
  716. package/dist/commands/setup.d.ts +23 -0
  717. package/dist/commands/setup.d.ts.map +1 -0
  718. package/dist/commands/setup.js +69 -0
  719. package/dist/commands/setup.js.map +1 -0
  720. package/dist/commands/shape.d.ts +16 -0
  721. package/dist/commands/shape.d.ts.map +1 -0
  722. package/dist/commands/shape.js +149 -0
  723. package/dist/commands/shape.js.map +1 -0
  724. package/dist/commands/shape.test.d.ts +2 -0
  725. package/dist/commands/shape.test.d.ts.map +1 -0
  726. package/dist/commands/shape.test.js +148 -0
  727. package/dist/commands/shape.test.js.map +1 -0
  728. package/dist/commands/status.d.ts +7 -0
  729. package/dist/commands/status.d.ts.map +1 -0
  730. package/dist/commands/status.js +102 -0
  731. package/dist/commands/status.js.map +1 -0
  732. package/dist/commands/status.test.d.ts +2 -0
  733. package/dist/commands/status.test.d.ts.map +1 -0
  734. package/dist/commands/status.test.js +75 -0
  735. package/dist/commands/status.test.js.map +1 -0
  736. package/dist/commands/update.d.ts +37 -0
  737. package/dist/commands/update.d.ts.map +1 -0
  738. package/dist/commands/update.js +235 -0
  739. package/dist/commands/update.js.map +1 -0
  740. package/dist/commands/upgrade.d.ts +5 -0
  741. package/dist/commands/upgrade.d.ts.map +1 -0
  742. package/dist/commands/upgrade.js +110 -0
  743. package/dist/commands/upgrade.js.map +1 -0
  744. package/dist/commands/usage.d.ts +40 -0
  745. package/dist/commands/usage.d.ts.map +1 -0
  746. package/dist/commands/usage.js +214 -0
  747. package/dist/commands/usage.js.map +1 -0
  748. package/dist/commands/verify.d.ts +13 -0
  749. package/dist/commands/verify.d.ts.map +1 -0
  750. package/dist/commands/verify.js +55 -0
  751. package/dist/commands/verify.js.map +1 -0
  752. package/dist/commands/welcome.d.ts +21 -0
  753. package/dist/commands/welcome.d.ts.map +1 -0
  754. package/dist/commands/welcome.js +53 -0
  755. package/dist/commands/welcome.js.map +1 -0
  756. package/dist/commands/whoami.d.ts +13 -0
  757. package/dist/commands/whoami.d.ts.map +1 -0
  758. package/dist/commands/whoami.js +79 -0
  759. package/dist/commands/whoami.js.map +1 -0
  760. package/dist/commands/whoami.test.d.ts +2 -0
  761. package/dist/commands/whoami.test.d.ts.map +1 -0
  762. package/dist/commands/whoami.test.js +72 -0
  763. package/dist/commands/whoami.test.js.map +1 -0
  764. package/dist/commands/workspace.d.ts +115 -0
  765. package/dist/commands/workspace.d.ts.map +1 -0
  766. package/dist/commands/workspace.js +263 -0
  767. package/dist/commands/workspace.js.map +1 -0
  768. package/dist/formatters/__tests__/orient-possibleConflict.test.d.ts +2 -0
  769. package/dist/formatters/__tests__/orient-possibleConflict.test.d.ts.map +1 -0
  770. package/dist/formatters/__tests__/orient-possibleConflict.test.js +68 -0
  771. package/dist/formatters/__tests__/orient-possibleConflict.test.js.map +1 -0
  772. package/dist/formatters/__tests__/orient-provenance.test.d.ts +7 -0
  773. package/dist/formatters/__tests__/orient-provenance.test.d.ts.map +1 -0
  774. package/dist/formatters/__tests__/orient-provenance.test.js +548 -0
  775. package/dist/formatters/__tests__/orient-provenance.test.js.map +1 -0
  776. package/dist/formatters/__tests__/session-list-show.test.d.ts +2 -0
  777. package/dist/formatters/__tests__/session-list-show.test.d.ts.map +1 -0
  778. package/dist/formatters/__tests__/session-list-show.test.js +159 -0
  779. package/dist/formatters/__tests__/session-list-show.test.js.map +1 -0
  780. package/dist/formatters/__tests__/session.test.d.ts +2 -0
  781. package/dist/formatters/__tests__/session.test.d.ts.map +1 -0
  782. package/dist/formatters/__tests__/session.test.js +206 -0
  783. package/dist/formatters/__tests__/session.test.js.map +1 -0
  784. package/dist/formatters/audit.d.ts +52 -0
  785. package/dist/formatters/audit.d.ts.map +1 -0
  786. package/dist/formatters/audit.js +81 -0
  787. package/dist/formatters/audit.js.map +1 -0
  788. package/dist/formatters/brief.d.ts +113 -0
  789. package/dist/formatters/brief.d.ts.map +1 -0
  790. package/dist/formatters/brief.js +179 -0
  791. package/dist/formatters/brief.js.map +1 -0
  792. package/dist/formatters/capture.d.ts +56 -0
  793. package/dist/formatters/capture.d.ts.map +1 -0
  794. package/dist/formatters/capture.js +88 -0
  795. package/dist/formatters/capture.js.map +1 -0
  796. package/dist/formatters/chain-walk.d.ts +33 -0
  797. package/dist/formatters/chain-walk.d.ts.map +1 -0
  798. package/dist/formatters/chain-walk.js +54 -0
  799. package/dist/formatters/chain-walk.js.map +1 -0
  800. package/dist/formatters/changes.d.ts +25 -0
  801. package/dist/formatters/changes.d.ts.map +1 -0
  802. package/dist/formatters/changes.js +60 -0
  803. package/dist/formatters/changes.js.map +1 -0
  804. package/dist/formatters/coaching.d.ts +55 -0
  805. package/dist/formatters/coaching.d.ts.map +1 -0
  806. package/dist/formatters/coaching.js +46 -0
  807. package/dist/formatters/coaching.js.map +1 -0
  808. package/dist/formatters/collections.d.ts +40 -0
  809. package/dist/formatters/collections.d.ts.map +1 -0
  810. package/dist/formatters/collections.js +93 -0
  811. package/dist/formatters/collections.js.map +1 -0
  812. package/dist/formatters/conflicts.d.ts +69 -0
  813. package/dist/formatters/conflicts.d.ts.map +1 -0
  814. package/dist/formatters/conflicts.js +87 -0
  815. package/dist/formatters/conflicts.js.map +1 -0
  816. package/dist/formatters/conflicts.test.d.ts +2 -0
  817. package/dist/formatters/conflicts.test.d.ts.map +1 -0
  818. package/dist/formatters/conflicts.test.js +136 -0
  819. package/dist/formatters/conflicts.test.js.map +1 -0
  820. package/dist/formatters/constellation.d.ts +34 -0
  821. package/dist/formatters/constellation.d.ts.map +1 -0
  822. package/dist/formatters/constellation.js +38 -0
  823. package/dist/formatters/constellation.js.map +1 -0
  824. package/dist/formatters/context.d.ts +1 -1
  825. package/dist/formatters/context.d.ts.map +1 -1
  826. package/dist/formatters/context.js.map +1 -1
  827. package/dist/formatters/cross-cut.d.ts +21 -0
  828. package/dist/formatters/cross-cut.d.ts.map +1 -0
  829. package/dist/formatters/cross-cut.js +32 -0
  830. package/dist/formatters/cross-cut.js.map +1 -0
  831. package/dist/formatters/direction.d.ts +48 -0
  832. package/dist/formatters/direction.d.ts.map +1 -0
  833. package/dist/formatters/direction.js +75 -0
  834. package/dist/formatters/direction.js.map +1 -0
  835. package/dist/formatters/direction.test.d.ts +2 -0
  836. package/dist/formatters/direction.test.d.ts.map +1 -0
  837. package/dist/formatters/direction.test.js +70 -0
  838. package/dist/formatters/direction.test.js.map +1 -0
  839. package/dist/formatters/entry.d.ts +55 -4
  840. package/dist/formatters/entry.d.ts.map +1 -1
  841. package/dist/formatters/entry.js +91 -12
  842. package/dist/formatters/entry.js.map +1 -1
  843. package/dist/formatters/feedback.d.ts +56 -0
  844. package/dist/formatters/feedback.d.ts.map +1 -0
  845. package/dist/formatters/feedback.js +89 -0
  846. package/dist/formatters/feedback.js.map +1 -0
  847. package/dist/formatters/feedback.test.d.ts +2 -0
  848. package/dist/formatters/feedback.test.d.ts.map +1 -0
  849. package/dist/formatters/feedback.test.js +112 -0
  850. package/dist/formatters/feedback.test.js.map +1 -0
  851. package/dist/formatters/fields.d.ts +32 -0
  852. package/dist/formatters/fields.d.ts.map +1 -0
  853. package/dist/formatters/fields.js +49 -0
  854. package/dist/formatters/fields.js.map +1 -0
  855. package/dist/formatters/handshake.d.ts +63 -0
  856. package/dist/formatters/handshake.d.ts.map +1 -0
  857. package/dist/formatters/handshake.js +199 -0
  858. package/dist/formatters/handshake.js.map +1 -0
  859. package/dist/formatters/orient.coherencyCheckTag.test.d.ts +2 -0
  860. package/dist/formatters/orient.coherencyCheckTag.test.d.ts.map +1 -0
  861. package/dist/formatters/orient.coherencyCheckTag.test.js +22 -0
  862. package/dist/formatters/orient.coherencyCheckTag.test.js.map +1 -0
  863. package/dist/formatters/orient.d.ts +349 -9
  864. package/dist/formatters/orient.d.ts.map +1 -1
  865. package/dist/formatters/orient.js +393 -45
  866. package/dist/formatters/orient.js.map +1 -1
  867. package/dist/formatters/orient.rcrtMiss.test.d.ts +2 -0
  868. package/dist/formatters/orient.rcrtMiss.test.d.ts.map +1 -0
  869. package/dist/formatters/orient.rcrtMiss.test.js +146 -0
  870. package/dist/formatters/orient.rcrtMiss.test.js.map +1 -0
  871. package/dist/formatters/orient.rituals.test.d.ts +2 -0
  872. package/dist/formatters/orient.rituals.test.d.ts.map +1 -0
  873. package/dist/formatters/orient.rituals.test.js +70 -0
  874. package/dist/formatters/orient.rituals.test.js.map +1 -0
  875. package/dist/formatters/orient.shapeAdvisorySummary.test.d.ts +2 -0
  876. package/dist/formatters/orient.shapeAdvisorySummary.test.d.ts.map +1 -0
  877. package/dist/formatters/orient.shapeAdvisorySummary.test.js +62 -0
  878. package/dist/formatters/orient.shapeAdvisorySummary.test.js.map +1 -0
  879. package/dist/formatters/orientDegradation.d.ts +21 -0
  880. package/dist/formatters/orientDegradation.d.ts.map +1 -0
  881. package/dist/formatters/orientDegradation.js +33 -0
  882. package/dist/formatters/orientDegradation.js.map +1 -0
  883. package/dist/formatters/orientDirection.d.ts +77 -0
  884. package/dist/formatters/orientDirection.d.ts.map +1 -0
  885. package/dist/formatters/orientDirection.js +94 -0
  886. package/dist/formatters/orientDirection.js.map +1 -0
  887. package/dist/formatters/orientDirection.test.d.ts +2 -0
  888. package/dist/formatters/orientDirection.test.d.ts.map +1 -0
  889. package/dist/formatters/orientDirection.test.js +193 -0
  890. package/dist/formatters/orientDirection.test.js.map +1 -0
  891. package/dist/formatters/orientRetrievalMiss.d.ts +30 -0
  892. package/dist/formatters/orientRetrievalMiss.d.ts.map +1 -0
  893. package/dist/formatters/orientRetrievalMiss.js +24 -0
  894. package/dist/formatters/orientRetrievalMiss.js.map +1 -0
  895. package/dist/formatters/promote.d.ts +79 -0
  896. package/dist/formatters/promote.d.ts.map +1 -0
  897. package/dist/formatters/promote.js +79 -0
  898. package/dist/formatters/promote.js.map +1 -0
  899. package/dist/formatters/proposals.d.ts +45 -0
  900. package/dist/formatters/proposals.d.ts.map +1 -0
  901. package/dist/formatters/proposals.js +62 -0
  902. package/dist/formatters/proposals.js.map +1 -0
  903. package/dist/formatters/questions.d.ts +100 -0
  904. package/dist/formatters/questions.d.ts.map +1 -0
  905. package/dist/formatters/questions.js +146 -0
  906. package/dist/formatters/questions.js.map +1 -0
  907. package/dist/formatters/questions.test.d.ts +2 -0
  908. package/dist/formatters/questions.test.d.ts.map +1 -0
  909. package/dist/formatters/questions.test.js +184 -0
  910. package/dist/formatters/questions.test.js.map +1 -0
  911. package/dist/formatters/relate.d.ts +27 -0
  912. package/dist/formatters/relate.d.ts.map +1 -0
  913. package/dist/formatters/relate.js +25 -0
  914. package/dist/formatters/relate.js.map +1 -0
  915. package/dist/formatters/relate.test.d.ts +2 -0
  916. package/dist/formatters/relate.test.d.ts.map +1 -0
  917. package/dist/formatters/relate.test.js +81 -0
  918. package/dist/formatters/relate.test.js.map +1 -0
  919. package/dist/formatters/scoreboard.d.ts +11 -0
  920. package/dist/formatters/scoreboard.d.ts.map +1 -0
  921. package/dist/formatters/scoreboard.js +164 -0
  922. package/dist/formatters/scoreboard.js.map +1 -0
  923. package/dist/formatters/scoreboard.test.d.ts +2 -0
  924. package/dist/formatters/scoreboard.test.d.ts.map +1 -0
  925. package/dist/formatters/scoreboard.test.js +303 -0
  926. package/dist/formatters/scoreboard.test.js.map +1 -0
  927. package/dist/formatters/search.d.ts +0 -4
  928. package/dist/formatters/search.d.ts.map +1 -1
  929. package/dist/formatters/search.js +20 -1
  930. package/dist/formatters/search.js.map +1 -1
  931. package/dist/formatters/search.test.d.ts +2 -0
  932. package/dist/formatters/search.test.d.ts.map +1 -0
  933. package/dist/formatters/search.test.js +46 -0
  934. package/dist/formatters/search.test.js.map +1 -0
  935. package/dist/formatters/session-feedback.test.d.ts +2 -0
  936. package/dist/formatters/session-feedback.test.d.ts.map +1 -0
  937. package/dist/formatters/session-feedback.test.js +61 -0
  938. package/dist/formatters/session-feedback.test.js.map +1 -0
  939. package/dist/formatters/session.d.ts +129 -0
  940. package/dist/formatters/session.d.ts.map +1 -0
  941. package/dist/formatters/session.js +356 -0
  942. package/dist/formatters/session.js.map +1 -0
  943. package/dist/formatters/shape.d.ts +54 -0
  944. package/dist/formatters/shape.d.ts.map +1 -0
  945. package/dist/formatters/shape.js +97 -0
  946. package/dist/formatters/shape.js.map +1 -0
  947. package/dist/formatters/shape.test.d.ts +2 -0
  948. package/dist/formatters/shape.test.d.ts.map +1 -0
  949. package/dist/formatters/shape.test.js +80 -0
  950. package/dist/formatters/shape.test.js.map +1 -0
  951. package/dist/formatters/spineCheck.d.ts +76 -0
  952. package/dist/formatters/spineCheck.d.ts.map +1 -0
  953. package/dist/formatters/spineCheck.js +111 -0
  954. package/dist/formatters/spineCheck.js.map +1 -0
  955. package/dist/formatters/update.d.ts +20 -0
  956. package/dist/formatters/update.d.ts.map +1 -0
  957. package/dist/formatters/update.js +49 -0
  958. package/dist/formatters/update.js.map +1 -0
  959. package/dist/formatters/verify.d.ts +19 -0
  960. package/dist/formatters/verify.d.ts.map +1 -0
  961. package/dist/formatters/verify.js +29 -0
  962. package/dist/formatters/verify.js.map +1 -0
  963. package/dist/generated/healthGapKinds.generated.d.ts +12 -0
  964. package/dist/generated/healthGapKinds.generated.d.ts.map +1 -0
  965. package/dist/generated/healthGapKinds.generated.js +24 -0
  966. package/dist/generated/healthGapKinds.generated.js.map +1 -0
  967. package/dist/generated/relationTypes.generated.d.ts +12 -0
  968. package/dist/generated/relationTypes.generated.d.ts.map +1 -0
  969. package/dist/generated/relationTypes.generated.js +11 -0
  970. package/dist/generated/relationTypes.generated.js.map +1 -0
  971. package/dist/generated/routeLatencyBudget.generated.d.ts +55 -0
  972. package/dist/generated/routeLatencyBudget.generated.d.ts.map +1 -0
  973. package/dist/generated/routeLatencyBudget.generated.js +348 -0
  974. package/dist/generated/routeLatencyBudget.generated.js.map +1 -0
  975. package/dist/generated/sourceSurfaces.generated.d.ts +12 -0
  976. package/dist/generated/sourceSurfaces.generated.d.ts.map +1 -0
  977. package/dist/generated/sourceSurfaces.generated.js +11 -0
  978. package/dist/generated/sourceSurfaces.generated.js.map +1 -0
  979. package/dist/generators/adapters.d.ts +77 -0
  980. package/dist/generators/adapters.d.ts.map +1 -0
  981. package/dist/generators/adapters.js +350 -0
  982. package/dist/generators/adapters.js.map +1 -0
  983. package/dist/generators/adapters.test.d.ts +2 -0
  984. package/dist/generators/adapters.test.d.ts.map +1 -0
  985. package/dist/generators/adapters.test.js +27 -0
  986. package/dist/generators/adapters.test.js.map +1 -0
  987. package/dist/generators/archetypes.d.ts +52 -0
  988. package/dist/generators/archetypes.d.ts.map +1 -0
  989. package/dist/generators/archetypes.js +190 -0
  990. package/dist/generators/archetypes.js.map +1 -0
  991. package/dist/generators/archetypes.test.d.ts +2 -0
  992. package/dist/generators/archetypes.test.d.ts.map +1 -0
  993. package/dist/generators/archetypes.test.js +272 -0
  994. package/dist/generators/archetypes.test.js.map +1 -0
  995. package/dist/generators/boundary-manifest.d.ts +29 -0
  996. package/dist/generators/boundary-manifest.d.ts.map +1 -0
  997. package/dist/generators/boundary-manifest.js +183 -0
  998. package/dist/generators/boundary-manifest.js.map +1 -0
  999. package/dist/generators/boundary-manifest.real-file.test.d.ts +2 -0
  1000. package/dist/generators/boundary-manifest.real-file.test.d.ts.map +1 -0
  1001. package/dist/generators/boundary-manifest.real-file.test.js +70 -0
  1002. package/dist/generators/boundary-manifest.real-file.test.js.map +1 -0
  1003. package/dist/generators/boundary-manifest.test.d.ts +2 -0
  1004. package/dist/generators/boundary-manifest.test.d.ts.map +1 -0
  1005. package/dist/generators/boundary-manifest.test.js +91 -0
  1006. package/dist/generators/boundary-manifest.test.js.map +1 -0
  1007. package/dist/generators/briefing-md.d.ts +8 -0
  1008. package/dist/generators/briefing-md.d.ts.map +1 -0
  1009. package/dist/generators/briefing-md.js +51 -0
  1010. package/dist/generators/briefing-md.js.map +1 -0
  1011. package/dist/generators/chain-classifier-kernel-client-drift.test.d.ts +2 -0
  1012. package/dist/generators/chain-classifier-kernel-client-drift.test.d.ts.map +1 -0
  1013. package/dist/generators/chain-classifier-kernel-client-drift.test.js +41 -0
  1014. package/dist/generators/chain-classifier-kernel-client-drift.test.js.map +1 -0
  1015. package/dist/generators/chain-classifier.d.ts +102 -0
  1016. package/dist/generators/chain-classifier.d.ts.map +1 -0
  1017. package/dist/generators/chain-classifier.js +52 -0
  1018. package/dist/generators/chain-classifier.js.map +1 -0
  1019. package/dist/generators/chain-rules.d.ts +42 -0
  1020. package/dist/generators/chain-rules.d.ts.map +1 -0
  1021. package/dist/generators/chain-rules.js +256 -0
  1022. package/dist/generators/chain-rules.js.map +1 -0
  1023. package/dist/generators/chain-rules.test.d.ts +2 -0
  1024. package/dist/generators/chain-rules.test.d.ts.map +1 -0
  1025. package/dist/generators/chain-rules.test.js +448 -0
  1026. package/dist/generators/chain-rules.test.js.map +1 -0
  1027. package/dist/generators/context-md.d.ts +8 -0
  1028. package/dist/generators/context-md.d.ts.map +1 -0
  1029. package/dist/generators/context-md.js +134 -0
  1030. package/dist/generators/context-md.js.map +1 -0
  1031. package/dist/generators/handshake-diff.d.ts +67 -0
  1032. package/dist/generators/handshake-diff.d.ts.map +1 -0
  1033. package/dist/generators/handshake-diff.js +183 -0
  1034. package/dist/generators/handshake-diff.js.map +1 -0
  1035. package/dist/generators/handshake-diff.test.d.ts +2 -0
  1036. package/dist/generators/handshake-diff.test.d.ts.map +1 -0
  1037. package/dist/generators/handshake-diff.test.js +264 -0
  1038. package/dist/generators/handshake-diff.test.js.map +1 -0
  1039. package/dist/generators/manifest.d.ts +115 -0
  1040. package/dist/generators/manifest.d.ts.map +1 -0
  1041. package/dist/generators/manifest.js +277 -0
  1042. package/dist/generators/manifest.js.map +1 -0
  1043. package/dist/generators/portable-knowledge.d.ts +165 -0
  1044. package/dist/generators/portable-knowledge.d.ts.map +1 -0
  1045. package/dist/generators/portable-knowledge.js +599 -0
  1046. package/dist/generators/portable-knowledge.js.map +1 -0
  1047. package/dist/generators/portable-knowledge.test.d.ts +2 -0
  1048. package/dist/generators/portable-knowledge.test.d.ts.map +1 -0
  1049. package/dist/generators/portable-knowledge.test.js +970 -0
  1050. package/dist/generators/portable-knowledge.test.js.map +1 -0
  1051. package/dist/generators/region-projections.d.ts +18 -0
  1052. package/dist/generators/region-projections.d.ts.map +1 -0
  1053. package/dist/generators/region-projections.js +49 -0
  1054. package/dist/generators/region-projections.js.map +1 -0
  1055. package/dist/generators/region-projections.test.d.ts +2 -0
  1056. package/dist/generators/region-projections.test.d.ts.map +1 -0
  1057. package/dist/generators/region-projections.test.js +63 -0
  1058. package/dist/generators/region-projections.test.js.map +1 -0
  1059. package/dist/generators/region.d.ts +24 -0
  1060. package/dist/generators/region.d.ts.map +1 -0
  1061. package/dist/generators/region.js +87 -0
  1062. package/dist/generators/region.js.map +1 -0
  1063. package/dist/generators/region.test.d.ts +2 -0
  1064. package/dist/generators/region.test.d.ts.map +1 -0
  1065. package/dist/generators/region.test.js +126 -0
  1066. package/dist/generators/region.test.js.map +1 -0
  1067. package/dist/generators/surface-profiles.d.ts +48 -0
  1068. package/dist/generators/surface-profiles.d.ts.map +1 -0
  1069. package/dist/generators/surface-profiles.js +98 -0
  1070. package/dist/generators/surface-profiles.js.map +1 -0
  1071. package/dist/index.d.ts +0 -4
  1072. package/dist/index.d.ts.map +1 -1
  1073. package/dist/index.js +874 -39
  1074. package/dist/index.js.map +1 -1
  1075. package/dist/lib/__tests__/legalRelationTypes.test.d.ts +2 -0
  1076. package/dist/lib/__tests__/legalRelationTypes.test.d.ts.map +1 -0
  1077. package/dist/lib/__tests__/legalRelationTypes.test.js +98 -0
  1078. package/dist/lib/__tests__/legalRelationTypes.test.js.map +1 -0
  1079. package/dist/lib/__tests__/parseFields.test.d.ts +2 -0
  1080. package/dist/lib/__tests__/parseFields.test.d.ts.map +1 -0
  1081. package/dist/lib/__tests__/parseFields.test.js +40 -0
  1082. package/dist/lib/__tests__/parseFields.test.js.map +1 -0
  1083. package/dist/lib/activation.d.ts +28 -0
  1084. package/dist/lib/activation.d.ts.map +1 -0
  1085. package/dist/lib/activation.js +61 -0
  1086. package/dist/lib/activation.js.map +1 -0
  1087. package/dist/lib/activation.test.d.ts +6 -0
  1088. package/dist/lib/activation.test.d.ts.map +1 -0
  1089. package/dist/lib/activation.test.js +121 -0
  1090. package/dist/lib/activation.test.js.map +1 -0
  1091. package/dist/lib/adminConfig.d.ts +48 -0
  1092. package/dist/lib/adminConfig.d.ts.map +1 -0
  1093. package/dist/lib/adminConfig.js +130 -0
  1094. package/dist/lib/adminConfig.js.map +1 -0
  1095. package/dist/lib/canonicalRefs.d.ts +160 -0
  1096. package/dist/lib/canonicalRefs.d.ts.map +1 -0
  1097. package/dist/lib/canonicalRefs.js +169 -0
  1098. package/dist/lib/canonicalRefs.js.map +1 -0
  1099. package/dist/lib/captureGrounding.d.ts +53 -0
  1100. package/dist/lib/captureGrounding.d.ts.map +1 -0
  1101. package/dist/lib/captureGrounding.js +108 -0
  1102. package/dist/lib/captureGrounding.js.map +1 -0
  1103. package/dist/lib/client.d.ts +86 -1
  1104. package/dist/lib/client.d.ts.map +1 -1
  1105. package/dist/lib/client.js +413 -13
  1106. package/dist/lib/client.js.map +1 -1
  1107. package/dist/lib/collectionRegistry.d.ts +61 -0
  1108. package/dist/lib/collectionRegistry.d.ts.map +1 -0
  1109. package/dist/lib/collectionRegistry.js +128 -0
  1110. package/dist/lib/collectionRegistry.js.map +1 -0
  1111. package/dist/lib/commanderOptions.d.ts +8 -0
  1112. package/dist/lib/commanderOptions.d.ts.map +1 -0
  1113. package/dist/lib/commanderOptions.js +10 -0
  1114. package/dist/lib/commanderOptions.js.map +1 -0
  1115. package/dist/lib/compose-wrapup-view.d.ts +48 -0
  1116. package/dist/lib/compose-wrapup-view.d.ts.map +1 -0
  1117. package/dist/lib/compose-wrapup-view.js +37 -0
  1118. package/dist/lib/compose-wrapup-view.js.map +1 -0
  1119. package/dist/lib/config.d.ts +132 -4
  1120. package/dist/lib/config.d.ts.map +1 -1
  1121. package/dist/lib/config.js +421 -42
  1122. package/dist/lib/config.js.map +1 -1
  1123. package/dist/lib/configResult.d.ts +80 -0
  1124. package/dist/lib/configResult.d.ts.map +1 -0
  1125. package/dist/lib/configResult.js +176 -0
  1126. package/dist/lib/configResult.js.map +1 -0
  1127. package/dist/lib/connectKeyLabel.d.ts +9 -0
  1128. package/dist/lib/connectKeyLabel.d.ts.map +1 -0
  1129. package/dist/lib/connectKeyLabel.js +12 -0
  1130. package/dist/lib/connectKeyLabel.js.map +1 -0
  1131. package/dist/lib/constants.d.ts +46 -0
  1132. package/dist/lib/constants.d.ts.map +1 -0
  1133. package/dist/lib/constants.js +83 -0
  1134. package/dist/lib/constants.js.map +1 -0
  1135. package/dist/lib/conversation-engine.d.ts +45 -0
  1136. package/dist/lib/conversation-engine.d.ts.map +1 -0
  1137. package/dist/lib/conversation-engine.js +112 -0
  1138. package/dist/lib/conversation-engine.js.map +1 -0
  1139. package/dist/lib/conversation-phases.d.ts +59 -0
  1140. package/dist/lib/conversation-phases.d.ts.map +1 -0
  1141. package/dist/lib/conversation-phases.js +11 -0
  1142. package/dist/lib/conversation-phases.js.map +1 -0
  1143. package/dist/lib/conversation-signals.d.ts +30 -0
  1144. package/dist/lib/conversation-signals.d.ts.map +1 -0
  1145. package/dist/lib/conversation-signals.js +64 -0
  1146. package/dist/lib/conversation-signals.js.map +1 -0
  1147. package/dist/lib/conversation.d.ts +36 -0
  1148. package/dist/lib/conversation.d.ts.map +1 -0
  1149. package/dist/lib/conversation.js +66 -0
  1150. package/dist/lib/conversation.js.map +1 -0
  1151. package/dist/lib/createEntryResult.d.ts +34 -0
  1152. package/dist/lib/createEntryResult.d.ts.map +1 -0
  1153. package/dist/lib/createEntryResult.js +12 -0
  1154. package/dist/lib/createEntryResult.js.map +1 -0
  1155. package/dist/lib/deployment.d.ts +23 -0
  1156. package/dist/lib/deployment.d.ts.map +1 -0
  1157. package/dist/lib/deployment.js +78 -0
  1158. package/dist/lib/deployment.js.map +1 -0
  1159. package/dist/lib/deployment.test.d.ts +5 -0
  1160. package/dist/lib/deployment.test.d.ts.map +1 -0
  1161. package/dist/lib/deployment.test.js +54 -0
  1162. package/dist/lib/deployment.test.js.map +1 -0
  1163. package/dist/lib/errors.d.ts +125 -0
  1164. package/dist/lib/errors.d.ts.map +1 -0
  1165. package/dist/lib/errors.js +134 -0
  1166. package/dist/lib/errors.js.map +1 -0
  1167. package/dist/lib/experiment.d.ts +18 -0
  1168. package/dist/lib/experiment.d.ts.map +1 -0
  1169. package/dist/lib/experiment.js +28 -0
  1170. package/dist/lib/experiment.js.map +1 -0
  1171. package/dist/lib/format.d.ts +10 -0
  1172. package/dist/lib/format.d.ts.map +1 -0
  1173. package/dist/lib/format.js +27 -0
  1174. package/dist/lib/format.js.map +1 -0
  1175. package/dist/lib/frontmatter.d.ts +55 -0
  1176. package/dist/lib/frontmatter.d.ts.map +1 -0
  1177. package/dist/lib/frontmatter.js +92 -0
  1178. package/dist/lib/frontmatter.js.map +1 -0
  1179. package/dist/lib/frontmatter.test.d.ts +15 -0
  1180. package/dist/lib/frontmatter.test.d.ts.map +1 -0
  1181. package/dist/lib/frontmatter.test.js +98 -0
  1182. package/dist/lib/frontmatter.test.js.map +1 -0
  1183. package/dist/lib/gatewayTimeout.d.ts +88 -0
  1184. package/dist/lib/gatewayTimeout.d.ts.map +1 -0
  1185. package/dist/lib/gatewayTimeout.js +118 -0
  1186. package/dist/lib/gatewayTimeout.js.map +1 -0
  1187. package/dist/lib/gitEnvLeakKeysParity.test.d.ts +2 -0
  1188. package/dist/lib/gitEnvLeakKeysParity.test.d.ts.map +1 -0
  1189. package/dist/lib/gitEnvLeakKeysParity.test.js +73 -0
  1190. package/dist/lib/gitEnvLeakKeysParity.test.js.map +1 -0
  1191. package/dist/lib/glossary.d.ts +19 -0
  1192. package/dist/lib/glossary.d.ts.map +1 -0
  1193. package/dist/lib/glossary.js +53 -0
  1194. package/dist/lib/glossary.js.map +1 -0
  1195. package/dist/lib/hook-intents.d.ts +51 -0
  1196. package/dist/lib/hook-intents.d.ts.map +1 -0
  1197. package/dist/lib/hook-intents.js +85 -0
  1198. package/dist/lib/hook-intents.js.map +1 -0
  1199. package/dist/lib/inferSourceDate.d.ts +12 -0
  1200. package/dist/lib/inferSourceDate.d.ts.map +1 -0
  1201. package/dist/lib/inferSourceDate.js +44 -0
  1202. package/dist/lib/inferSourceDate.js.map +1 -0
  1203. package/dist/lib/kernelEnvelope.d.ts +31 -0
  1204. package/dist/lib/kernelEnvelope.d.ts.map +1 -0
  1205. package/dist/lib/kernelEnvelope.js +52 -0
  1206. package/dist/lib/kernelEnvelope.js.map +1 -0
  1207. package/dist/lib/legalRelationTypes.d.ts +25 -0
  1208. package/dist/lib/legalRelationTypes.d.ts.map +1 -0
  1209. package/dist/lib/legalRelationTypes.js +94 -0
  1210. package/dist/lib/legalRelationTypes.js.map +1 -0
  1211. package/dist/lib/localBinding.d.ts +61 -0
  1212. package/dist/lib/localBinding.d.ts.map +1 -0
  1213. package/dist/lib/localBinding.js +155 -0
  1214. package/dist/lib/localBinding.js.map +1 -0
  1215. package/dist/lib/method-registry.d.ts +37 -0
  1216. package/dist/lib/method-registry.d.ts.map +1 -0
  1217. package/dist/lib/method-registry.js +41 -0
  1218. package/dist/lib/method-registry.js.map +1 -0
  1219. package/dist/lib/normalizeMaterializedFilename.d.ts +28 -0
  1220. package/dist/lib/normalizeMaterializedFilename.d.ts.map +1 -0
  1221. package/dist/lib/normalizeMaterializedFilename.js +56 -0
  1222. package/dist/lib/normalizeMaterializedFilename.js.map +1 -0
  1223. package/dist/lib/normalizeMaterializedFilename.test.d.ts +16 -0
  1224. package/dist/lib/normalizeMaterializedFilename.test.d.ts.map +1 -0
  1225. package/dist/lib/normalizeMaterializedFilename.test.js +90 -0
  1226. package/dist/lib/normalizeMaterializedFilename.test.js.map +1 -0
  1227. package/dist/lib/notice-marker.d.ts +3 -0
  1228. package/dist/lib/notice-marker.d.ts.map +1 -0
  1229. package/dist/lib/notice-marker.js +223 -0
  1230. package/dist/lib/notice-marker.js.map +1 -0
  1231. package/dist/lib/onboarding-path-b.d.ts +10 -0
  1232. package/dist/lib/onboarding-path-b.d.ts.map +1 -0
  1233. package/dist/lib/onboarding-path-b.js +243 -0
  1234. package/dist/lib/onboarding-path-b.js.map +1 -0
  1235. package/dist/lib/onboarding-shared.d.ts +81 -0
  1236. package/dist/lib/onboarding-shared.d.ts.map +1 -0
  1237. package/dist/lib/onboarding-shared.js +175 -0
  1238. package/dist/lib/onboarding-shared.js.map +1 -0
  1239. package/dist/lib/onboarding-topics.d.ts +27 -0
  1240. package/dist/lib/onboarding-topics.d.ts.map +1 -0
  1241. package/dist/lib/onboarding-topics.js +57 -0
  1242. package/dist/lib/onboarding-topics.js.map +1 -0
  1243. package/dist/lib/onboarding.d.ts +17 -0
  1244. package/dist/lib/onboarding.d.ts.map +1 -0
  1245. package/dist/lib/onboarding.js +358 -0
  1246. package/dist/lib/onboarding.js.map +1 -0
  1247. package/dist/lib/parseFields.d.ts +19 -0
  1248. package/dist/lib/parseFields.d.ts.map +1 -0
  1249. package/dist/lib/parseFields.js +49 -0
  1250. package/dist/lib/parseFields.js.map +1 -0
  1251. package/dist/lib/previewBanner.d.ts +9 -0
  1252. package/dist/lib/previewBanner.d.ts.map +1 -0
  1253. package/dist/lib/previewBanner.js +37 -0
  1254. package/dist/lib/previewBanner.js.map +1 -0
  1255. package/dist/lib/productbrain-files.d.ts +94 -0
  1256. package/dist/lib/productbrain-files.d.ts.map +1 -0
  1257. package/dist/lib/productbrain-files.js +214 -0
  1258. package/dist/lib/productbrain-files.js.map +1 -0
  1259. package/dist/lib/productbrain-files.test.d.ts +2 -0
  1260. package/dist/lib/productbrain-files.test.d.ts.map +1 -0
  1261. package/dist/lib/productbrain-files.test.js +293 -0
  1262. package/dist/lib/productbrain-files.test.js.map +1 -0
  1263. package/dist/lib/profiles.d.ts +87 -0
  1264. package/dist/lib/profiles.d.ts.map +1 -0
  1265. package/dist/lib/profiles.js +239 -0
  1266. package/dist/lib/profiles.js.map +1 -0
  1267. package/dist/lib/projectConfig.d.ts +81 -0
  1268. package/dist/lib/projectConfig.d.ts.map +1 -0
  1269. package/dist/lib/projectConfig.js +157 -0
  1270. package/dist/lib/projectConfig.js.map +1 -0
  1271. package/dist/lib/prompts.d.ts +65 -0
  1272. package/dist/lib/prompts.d.ts.map +1 -0
  1273. package/dist/lib/prompts.js +132 -0
  1274. package/dist/lib/prompts.js.map +1 -0
  1275. package/dist/lib/rate-limit.d.ts +38 -0
  1276. package/dist/lib/rate-limit.d.ts.map +1 -0
  1277. package/dist/lib/rate-limit.js +83 -0
  1278. package/dist/lib/rate-limit.js.map +1 -0
  1279. package/dist/lib/repo-detect.d.ts +33 -0
  1280. package/dist/lib/repo-detect.d.ts.map +1 -0
  1281. package/dist/lib/repo-detect.js +83 -0
  1282. package/dist/lib/repo-detect.js.map +1 -0
  1283. package/dist/lib/reportedProfile.d.ts +17 -0
  1284. package/dist/lib/reportedProfile.d.ts.map +1 -0
  1285. package/dist/lib/reportedProfile.js +24 -0
  1286. package/dist/lib/reportedProfile.js.map +1 -0
  1287. package/dist/lib/runner.d.ts +41 -0
  1288. package/dist/lib/runner.d.ts.map +1 -0
  1289. package/dist/lib/runner.js +102 -0
  1290. package/dist/lib/runner.js.map +1 -0
  1291. package/dist/lib/session.d.ts +98 -0
  1292. package/dist/lib/session.d.ts.map +1 -0
  1293. package/dist/lib/session.js +306 -0
  1294. package/dist/lib/session.js.map +1 -0
  1295. package/dist/lib/sessionNotices.d.ts +57 -0
  1296. package/dist/lib/sessionNotices.d.ts.map +1 -0
  1297. package/dist/lib/sessionNotices.js +128 -0
  1298. package/dist/lib/sessionNotices.js.map +1 -0
  1299. package/dist/lib/sessionNotices.test.d.ts +2 -0
  1300. package/dist/lib/sessionNotices.test.d.ts.map +1 -0
  1301. package/dist/lib/sessionNotices.test.js +48 -0
  1302. package/dist/lib/sessionNotices.test.js.map +1 -0
  1303. package/dist/lib/spinner.d.ts +27 -0
  1304. package/dist/lib/spinner.d.ts.map +1 -0
  1305. package/dist/lib/spinner.js +76 -0
  1306. package/dist/lib/spinner.js.map +1 -0
  1307. package/dist/lib/spinner.test.d.ts +2 -0
  1308. package/dist/lib/spinner.test.d.ts.map +1 -0
  1309. package/dist/lib/spinner.test.js +39 -0
  1310. package/dist/lib/spinner.test.js.map +1 -0
  1311. package/dist/lib/startup-resolution-signals.d.ts +34 -0
  1312. package/dist/lib/startup-resolution-signals.d.ts.map +1 -0
  1313. package/dist/lib/startup-resolution-signals.js +116 -0
  1314. package/dist/lib/startup-resolution-signals.js.map +1 -0
  1315. package/dist/lib/startup-resolution-signals.test.d.ts +2 -0
  1316. package/dist/lib/startup-resolution-signals.test.d.ts.map +1 -0
  1317. package/dist/lib/startup-resolution-signals.test.js +113 -0
  1318. package/dist/lib/startup-resolution-signals.test.js.map +1 -0
  1319. package/dist/lib/startup-signals.d.ts +12 -0
  1320. package/dist/lib/startup-signals.d.ts.map +1 -0
  1321. package/dist/lib/startup-signals.js +172 -0
  1322. package/dist/lib/startup-signals.js.map +1 -0
  1323. package/dist/lib/startup-signals.test.d.ts +2 -0
  1324. package/dist/lib/startup-signals.test.d.ts.map +1 -0
  1325. package/dist/lib/startup-signals.test.js +165 -0
  1326. package/dist/lib/startup-signals.test.js.map +1 -0
  1327. package/dist/lib/state.d.ts +58 -0
  1328. package/dist/lib/state.d.ts.map +1 -0
  1329. package/dist/lib/state.js +95 -0
  1330. package/dist/lib/state.js.map +1 -0
  1331. package/dist/lib/strip.d.ts +20 -0
  1332. package/dist/lib/strip.d.ts.map +1 -0
  1333. package/dist/lib/strip.js +63 -0
  1334. package/dist/lib/strip.js.map +1 -0
  1335. package/dist/lib/style.d.ts +96 -0
  1336. package/dist/lib/style.d.ts.map +1 -0
  1337. package/dist/lib/style.js +174 -0
  1338. package/dist/lib/style.js.map +1 -0
  1339. package/dist/lib/style.test.d.ts +7 -0
  1340. package/dist/lib/style.test.d.ts.map +1 -0
  1341. package/dist/lib/style.test.js +263 -0
  1342. package/dist/lib/style.test.js.map +1 -0
  1343. package/dist/lib/telemetry.d.ts +15 -0
  1344. package/dist/lib/telemetry.d.ts.map +1 -0
  1345. package/dist/lib/telemetry.js +47 -0
  1346. package/dist/lib/telemetry.js.map +1 -0
  1347. package/dist/lib/tokenConstants.d.ts +19 -0
  1348. package/dist/lib/tokenConstants.d.ts.map +1 -0
  1349. package/dist/lib/tokenConstants.js +19 -0
  1350. package/dist/lib/tokenConstants.js.map +1 -0
  1351. package/dist/lib/update-check.d.ts +56 -0
  1352. package/dist/lib/update-check.d.ts.map +1 -0
  1353. package/dist/lib/update-check.js +296 -0
  1354. package/dist/lib/update-check.js.map +1 -0
  1355. package/dist/lib/upgrade-runner.d.ts +22 -0
  1356. package/dist/lib/upgrade-runner.d.ts.map +1 -0
  1357. package/dist/lib/upgrade-runner.js +110 -0
  1358. package/dist/lib/upgrade-runner.js.map +1 -0
  1359. package/dist/lib/wizard-surfaces.d.ts +47 -0
  1360. package/dist/lib/wizard-surfaces.d.ts.map +1 -0
  1361. package/dist/lib/wizard-surfaces.js +176 -0
  1362. package/dist/lib/wizard-surfaces.js.map +1 -0
  1363. package/dist/lib/wizard-surfaces.test.d.ts +2 -0
  1364. package/dist/lib/wizard-surfaces.test.d.ts.map +1 -0
  1365. package/dist/lib/wizard-surfaces.test.js +127 -0
  1366. package/dist/lib/wizard-surfaces.test.js.map +1 -0
  1367. package/dist/lib/wizard-trust.d.ts +31 -0
  1368. package/dist/lib/wizard-trust.d.ts.map +1 -0
  1369. package/dist/lib/wizard-trust.js +66 -0
  1370. package/dist/lib/wizard-trust.js.map +1 -0
  1371. package/dist/lib/wizard-trust.test.d.ts +2 -0
  1372. package/dist/lib/wizard-trust.test.d.ts.map +1 -0
  1373. package/dist/lib/wizard-trust.test.js +32 -0
  1374. package/dist/lib/wizard-trust.test.js.map +1 -0
  1375. package/dist/lib/workspace-probe.d.ts +19 -0
  1376. package/dist/lib/workspace-probe.d.ts.map +1 -0
  1377. package/dist/lib/workspace-probe.js +27 -0
  1378. package/dist/lib/workspace-probe.js.map +1 -0
  1379. package/dist/lib/workspaceNotice.d.ts +76 -0
  1380. package/dist/lib/workspaceNotice.d.ts.map +1 -0
  1381. package/dist/lib/workspaceNotice.js +95 -0
  1382. package/dist/lib/workspaceNotice.js.map +1 -0
  1383. package/dist/lib/workspaceVocabCache.d.ts +60 -0
  1384. package/dist/lib/workspaceVocabCache.d.ts.map +1 -0
  1385. package/dist/lib/workspaceVocabCache.js +98 -0
  1386. package/dist/lib/workspaceVocabCache.js.map +1 -0
  1387. package/dist/registerEntryCommands.d.ts +17 -0
  1388. package/dist/registerEntryCommands.d.ts.map +1 -0
  1389. package/dist/registerEntryCommands.js +83 -0
  1390. package/dist/registerEntryCommands.js.map +1 -0
  1391. package/dist/registerProposalCommands.d.ts +13 -0
  1392. package/dist/registerProposalCommands.d.ts.map +1 -0
  1393. package/dist/registerProposalCommands.js +76 -0
  1394. package/dist/registerProposalCommands.js.map +1 -0
  1395. package/dist/scoreboard/diagnose.d.ts +226 -0
  1396. package/dist/scoreboard/diagnose.d.ts.map +1 -0
  1397. package/dist/scoreboard/diagnose.js +344 -0
  1398. package/dist/scoreboard/diagnose.js.map +1 -0
  1399. package/dist/scoreboard/diagnose.test.d.ts +15 -0
  1400. package/dist/scoreboard/diagnose.test.d.ts.map +1 -0
  1401. package/dist/scoreboard/diagnose.test.js +355 -0
  1402. package/dist/scoreboard/diagnose.test.js.map +1 -0
  1403. package/dist/scoreboard/floors.d.ts +47 -0
  1404. package/dist/scoreboard/floors.d.ts.map +1 -0
  1405. package/dist/scoreboard/floors.js +33 -0
  1406. package/dist/scoreboard/floors.js.map +1 -0
  1407. package/dist/scoreboard/localDrift.d.ts +23 -0
  1408. package/dist/scoreboard/localDrift.d.ts.map +1 -0
  1409. package/dist/scoreboard/localDrift.js +111 -0
  1410. package/dist/scoreboard/localDrift.js.map +1 -0
  1411. package/dist/scoreboard/localDrift.test.d.ts +9 -0
  1412. package/dist/scoreboard/localDrift.test.d.ts.map +1 -0
  1413. package/dist/scoreboard/localDrift.test.js +82 -0
  1414. package/dist/scoreboard/localDrift.test.js.map +1 -0
  1415. package/dist/setup/__tests__/coach-traces.test.d.ts +2 -0
  1416. package/dist/setup/__tests__/coach-traces.test.d.ts.map +1 -0
  1417. package/dist/setup/__tests__/coach-traces.test.js +189 -0
  1418. package/dist/setup/__tests__/coach-traces.test.js.map +1 -0
  1419. package/dist/setup/__tests__/setup-commands.test.d.ts +2 -0
  1420. package/dist/setup/__tests__/setup-commands.test.d.ts.map +1 -0
  1421. package/dist/setup/__tests__/setup-commands.test.js +177 -0
  1422. package/dist/setup/__tests__/setup-commands.test.js.map +1 -0
  1423. package/dist/setup/__tests__/state-machine.test.d.ts +2 -0
  1424. package/dist/setup/__tests__/state-machine.test.d.ts.map +1 -0
  1425. package/dist/setup/__tests__/state-machine.test.js +341 -0
  1426. package/dist/setup/__tests__/state-machine.test.js.map +1 -0
  1427. package/dist/setup/detect-surfaces.d.ts +21 -0
  1428. package/dist/setup/detect-surfaces.d.ts.map +1 -0
  1429. package/dist/setup/detect-surfaces.js +39 -0
  1430. package/dist/setup/detect-surfaces.js.map +1 -0
  1431. package/dist/setup/manifest-writer.d.ts +17 -0
  1432. package/dist/setup/manifest-writer.d.ts.map +1 -0
  1433. package/dist/setup/manifest-writer.js +153 -0
  1434. package/dist/setup/manifest-writer.js.map +1 -0
  1435. package/dist/setup/perimeter.d.ts +72 -0
  1436. package/dist/setup/perimeter.d.ts.map +1 -0
  1437. package/dist/setup/perimeter.js +128 -0
  1438. package/dist/setup/perimeter.js.map +1 -0
  1439. package/dist/setup/state-machine.d.ts +67 -0
  1440. package/dist/setup/state-machine.d.ts.map +1 -0
  1441. package/dist/setup/state-machine.js +124 -0
  1442. package/dist/setup/state-machine.js.map +1 -0
  1443. package/dist/surfaces/__tests__/adapter.test.d.ts +2 -0
  1444. package/dist/surfaces/__tests__/adapter.test.d.ts.map +1 -0
  1445. package/dist/surfaces/__tests__/adapter.test.js +90 -0
  1446. package/dist/surfaces/__tests__/adapter.test.js.map +1 -0
  1447. package/dist/surfaces/__tests__/pb-setup-passthrough.test.d.ts +2 -0
  1448. package/dist/surfaces/__tests__/pb-setup-passthrough.test.d.ts.map +1 -0
  1449. package/dist/surfaces/__tests__/pb-setup-passthrough.test.js +132 -0
  1450. package/dist/surfaces/__tests__/pb-setup-passthrough.test.js.map +1 -0
  1451. package/dist/surfaces/__tests__/telemetry.test.d.ts +2 -0
  1452. package/dist/surfaces/__tests__/telemetry.test.d.ts.map +1 -0
  1453. package/dist/surfaces/__tests__/telemetry.test.js +55 -0
  1454. package/dist/surfaces/__tests__/telemetry.test.js.map +1 -0
  1455. package/dist/surfaces/adapter.d.ts +70 -0
  1456. package/dist/surfaces/adapter.d.ts.map +1 -0
  1457. package/dist/surfaces/adapter.js +2 -0
  1458. package/dist/surfaces/adapter.js.map +1 -0
  1459. package/dist/surfaces/adapters/claude.d.ts +3 -0
  1460. package/dist/surfaces/adapters/claude.d.ts.map +1 -0
  1461. package/dist/surfaces/adapters/claude.js +67 -0
  1462. package/dist/surfaces/adapters/claude.js.map +1 -0
  1463. package/dist/surfaces/adapters/codex.d.ts +3 -0
  1464. package/dist/surfaces/adapters/codex.d.ts.map +1 -0
  1465. package/dist/surfaces/adapters/codex.js +61 -0
  1466. package/dist/surfaces/adapters/codex.js.map +1 -0
  1467. package/dist/surfaces/adapters/copilot.d.ts +3 -0
  1468. package/dist/surfaces/adapters/copilot.d.ts.map +1 -0
  1469. package/dist/surfaces/adapters/copilot.js +59 -0
  1470. package/dist/surfaces/adapters/copilot.js.map +1 -0
  1471. package/dist/surfaces/adapters/cursor.d.ts +3 -0
  1472. package/dist/surfaces/adapters/cursor.d.ts.map +1 -0
  1473. package/dist/surfaces/adapters/cursor.js +78 -0
  1474. package/dist/surfaces/adapters/cursor.js.map +1 -0
  1475. package/dist/surfaces/registry.d.ts +76 -0
  1476. package/dist/surfaces/registry.d.ts.map +1 -0
  1477. package/dist/surfaces/registry.js +117 -0
  1478. package/dist/surfaces/registry.js.map +1 -0
  1479. package/dist/surfaces/telemetry.d.ts +17 -0
  1480. package/dist/surfaces/telemetry.d.ts.map +1 -0
  1481. package/dist/surfaces/telemetry.js +31 -0
  1482. package/dist/surfaces/telemetry.js.map +1 -0
  1483. package/package.json +18 -5
  1484. package/templates/archetypes/boundary.md +23 -0
  1485. package/templates/archetypes/constraint.md +23 -0
  1486. package/templates/archetypes/convention.md +23 -0
  1487. package/templates/archetypes/policy.md +23 -0
  1488. package/templates/archetypes/quality-gate.md +23 -0
  1489. package/templates/archetypes/workflow.md +23 -0
  1490. package/templates/general/code-integrity.md +11 -0
  1491. package/templates/general/getting-started.md +12 -0
  1492. package/templates/method-registry.json +16 -0
  1493. package/templates/node-ts/code-integrity.md +13 -0
  1494. package/templates/node-ts/testing.md +12 -0
  1495. package/templates/python/code-integrity.md +13 -0
  1496. package/templates/python/testing.md +12 -0
package/dist/index.js CHANGED
@@ -1,19 +1,154 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * Product Brain CLI — read-only Chain knowledge in the terminal.
4
- * BET-108 Slice 0: pb orient
3
+ * Product Brain CLI — Chain knowledge + write-back in the terminal. Read: BET-108.
4
+ * Write: pb session + pb capture (TEN-27, INS-80). BET-181 Slice 0: global --json / --pretty flags for agent-native output (DEC-299).
5
5
  */
6
- import { Command } from 'commander';
6
+ import { readFileSync } from 'node:fs';
7
+ import { dirname, join } from 'node:path';
8
+ import { fileURLToPath } from 'node:url';
9
+ import { Command, CommanderError } from 'commander';
10
+ const __dirname = dirname(fileURLToPath(import.meta.url));
11
+ const cliPackageVersion = JSON.parse(readFileSync(join(__dirname, '..', 'package.json'), 'utf8'));
12
+ import { setOutputMode, setQuietMode, isJsonMode } from './lib/runner.js';
13
+ import { CLIError, ErrorCode } from './lib/errors.js';
14
+ import { collectRepeatableOption } from './lib/commanderOptions.js';
7
15
  import { runContext } from './commands/context.js';
8
- import { runGet } from './commands/get.js';
16
+ import { runGet, runGetMany } from './commands/get.js';
17
+ import { runScoreboard } from './commands/scoreboard.js';
18
+ import { runReworkReport } from './commands/rework.js';
19
+ import { runConnect } from './commands/connect.js';
9
20
  import { runLogin } from './commands/login.js';
21
+ import { runSetup } from './commands/setup.js';
22
+ import { runSetupDetectSurfaces, formatDetectSurfacesSummary } from './commands/setup-detect-surfaces.js';
23
+ import { runSetupState } from './commands/setup-state.js';
24
+ import { runSetupAudit } from './commands/setup-audit.js';
10
25
  import { runOrient } from './commands/orient.js';
11
26
  import { runSearch } from './commands/search.js';
27
+ import { runHandshake, runHandshakeInit } from './commands/handshake.js';
28
+ import { runSessionStart, runSessionClose, runSessionId, runSessionReset, runSessionList, runSessionShow } from './commands/session.js';
29
+ import { runCapture } from './commands/capture.js';
30
+ import { runUpdate } from './commands/update.js';
31
+ import { runRestore } from './commands/restore.js';
32
+ import { runIngest } from './commands/ingest.js';
33
+ import { runFields } from './commands/fields.js';
34
+ import { runConstellation } from './commands/constellation.js';
35
+ import { registerEntryCommands, registerRelateCommands } from './registerEntryCommands.js';
36
+ import { runBrandPack } from './commands/brand-pack.js';
37
+ import { runAudit } from './commands/audit.js';
38
+ import { registerProposalCommands } from './registerProposalCommands.js';
39
+ import { runChanges } from './commands/changes.js';
40
+ import { runChainWalk } from './commands/chain-walk.js';
41
+ import { runCrossCut } from './commands/cross-cut.js';
42
+ import { runBrief, runCompoundBrief, isCompoundType } from './commands/brief.js';
43
+ import { runVerify } from './commands/verify.js';
44
+ import { runCodexPrep } from './commands/codex-prep.js';
45
+ import { runCollectionsList, runCollectionsGet, runCollectionsAudit, runCollectionsExport } from './commands/collections.js';
46
+ import { runWorkspaceVerify, runWorkspaceRepair, runDefinitionsDiff } from './commands/workspace.js';
47
+ import { runAuthorityDomainsActivateCutover, runAuthorityDomainsAdd, runAuthorityDomainsDeactivateCutover, runAuthorityDomainsBenchmark, runAuthorityDomainsDiscardPending, runAuthorityDomainsPropose, runAuthorityDomainsQueueTag, runAuthorityDomainsRatify, runAuthorityDomainsReadiness, runAuthorityDomainsRecordSample, runAuthorityDomainsReject, runAuthorityDomainsReview, runAuthorityDomainsPrincipleDistribution, } from './commands/authority-domains.js';
48
+ import { runDoctor } from './commands/doctor.js';
49
+ import { runWhoami } from './commands/whoami.js';
50
+ import { runFiles } from './commands/files.js';
51
+ import { runUpgrade } from './commands/upgrade.js';
52
+ import { runProfileList, runProfileCreate, runProfileUse, runProfileDelete } from './commands/profile.js';
53
+ import { runInit } from './commands/init.js';
54
+ import { runStatus } from './commands/status.js';
55
+ import { runMethodList, runMethodShow, runMethodDiff, runMethodPublish } from './commands/method.js';
56
+ import { createAdminCommand } from './commands/admin/index.js';
57
+ import { createFeedbackCommand } from './commands/feedback.js';
58
+ import { createConflictsCommand } from './commands/conflicts.js';
59
+ import { createShapeCommand } from './commands/shape.js';
60
+ import { createQuestionCommand } from './commands/questions.js';
61
+ import { createDirectionCommand } from './commands/direction.js';
62
+ import { createOrganisationCommand } from './commands/organisation.js';
63
+ import { createAcceptPolicyCommand } from './commands/accept-policy.js'; // WP-661 S3
64
+ import { runUsage } from './commands/usage.js';
65
+ import { runProofRun } from './commands/proof-run.js';
66
+ import { runQualitySpineCheck } from './commands/quality.js';
67
+ import { GLOSSARY, formatGlossary } from './lib/glossary.js';
68
+ import { API_KEY_PREFIX } from './lib/tokenConstants.js';
69
+ import { heading } from './lib/style.js';
70
+ import { printPreviewBanner } from './lib/previewBanner.js';
71
+ import { checkForUpdate } from './lib/update-check.js';
72
+ import { UPGRADE_COMMAND } from './lib/constants.js';
12
73
  const program = new Command();
74
+ /**
75
+ * Global error handler — single exit point for all CLI errors. CLIError: format with code +
76
+ * category + guidance. CommanderError: re-throw for --help / --version (exitCode 0), format
77
+ * others. Regular Error: wrap as INTERNAL.
78
+ */
79
+ function handleError(err) {
80
+ // Commander help/version exits with code 0 — let them through
81
+ if (err instanceof CommanderError && err.exitCode === 0) {
82
+ process.exit(0);
83
+ }
84
+ const json = isJsonMode();
85
+ if (err instanceof CLIError) {
86
+ if (json) {
87
+ process.stderr.write(JSON.stringify(err.toJSON()) + '\n');
88
+ }
89
+ else {
90
+ process.stderr.write(err.message + '\n');
91
+ if (err.guidance) {
92
+ process.stderr.write(err.guidance + '\n');
93
+ }
94
+ }
95
+ process.exit(1);
96
+ }
97
+ // CommanderError (bad usage, missing args, etc.)
98
+ if (err instanceof CommanderError) {
99
+ const cliErr = new CLIError(err.message, {
100
+ code: ErrorCode.VALIDATION_FAILED,
101
+ category: 'validation',
102
+ });
103
+ if (json) {
104
+ process.stderr.write(JSON.stringify(cliErr.toJSON()) + '\n');
105
+ }
106
+ else {
107
+ process.stderr.write(err.message + '\n');
108
+ }
109
+ process.exit(err.exitCode);
110
+ }
111
+ // Unknown / unstructured errors
112
+ const message = err instanceof Error ? err.message : String(err);
113
+ if (json) {
114
+ process.stderr.write(JSON.stringify({ error: message, code: 'INTERNAL', category: 'internal' }) + '\n');
115
+ }
116
+ else {
117
+ process.stderr.write(message + '\n');
118
+ }
119
+ process.exit(1);
120
+ }
13
121
  program
14
122
  .name('pb')
15
- .description('Product Brain — read-only CLI for Chain knowledge')
16
- .version('0.1.0');
123
+ .description('Product Brain — Chain knowledge + write-back CLI')
124
+ .version(cliPackageVersion.version)
125
+ // Global output mode flags (DEC-299, BET-181)
126
+ .option('--json', 'Output machine-readable JSON (overrides TTY auto-detection)')
127
+ .option('--pretty', 'Force human-readable output even when piped')
128
+ .option('-q, --quiet', 'Suppress non-essential output (banners, hints, progress)')
129
+ .exitOverride(); // Throw CommanderError instead of calling process.exit directly
130
+ // Apply global output mode BEFORE subcommand actions run. Commander preAction hook signature: (hookedCommand = root program, actionCommand = the subcommand actually invoked).
131
+ program.hook('preAction', (_hookedCommand, actionCommand) => {
132
+ const globalOpts = program.opts();
133
+ if (globalOpts.json) {
134
+ setOutputMode('json');
135
+ }
136
+ else if (globalOpts.pretty) {
137
+ setOutputMode('pretty');
138
+ }
139
+ // else: 'auto' (default) — TTY detection handles it
140
+ if (globalOpts.quiet) {
141
+ setQuietMode(true);
142
+ }
143
+ // Ambient update notification — non-blocking, suppressed in JSON mode (WP-322 S1)
144
+ checkForUpdate(cliPackageVersion.version);
145
+ // PREVIEW banner — writes to stderr so it's always visible even in --json/--quiet mode. Advisory line added for top-level Chain-write commands: real learnings belong in the real Chain.
146
+ printPreviewBanner(actionCommand);
147
+ });
148
+ // Default action — status dashboard when `pb` is invoked with no command. `pb --help` still works because Commander intercepts --help before the action runs.
149
+ program.action(async () => {
150
+ await runStatus({ args: program.args, version: cliPackageVersion.version });
151
+ });
17
152
  program
18
153
  .command('get <entry-id>')
19
154
  .description('Display full entry by ID (data, relations, last 10 history events)')
@@ -22,29 +157,120 @@ program
22
157
  program.commands.find((c) => c.name() === 'get')?.help();
23
158
  return;
24
159
  }
25
- try {
26
- await runGet({ entryId: entryId.trim() });
27
- }
28
- catch (err) {
29
- console.error(err instanceof Error ? err.message : String(err));
30
- process.exit(1);
31
- }
160
+ await runGet({ entryId: entryId.trim() });
161
+ });
162
+ program
163
+ .command('scoreboard')
164
+ .description('Flywheel scoreboard M1-M5 metrics + diagnosis layer (agent-primary; --json for structured consumption)')
165
+ .option('-t, --task <task>', 'Task context for the ranking-agreement (M2) + truth-state (M1) read')
166
+ .action(async (opts) => {
167
+ await runScoreboard({ ...(opts.task ? { task: opts.task } : {}) });
168
+ });
169
+ const qualityCmd = program
170
+ .command('quality')
171
+ .description('Quality-check surfaces');
172
+ qualityCmd
173
+ .command('spine-check')
174
+ .description('Check purpose+vision+strategy structural completeness + refusal heuristic; --story runs the on-demand one-story LLM judgment')
175
+ .option('--story', 'Also run the on-demand one-story judgment (never scheduled; result labelled [unvalidated])')
176
+ .action(async (opts) => { await runQualitySpineCheck({ story: opts.story }); });
177
+ const reworkCmd = program
178
+ .command('rework')
179
+ .description('Report observed rework signals (WP-487 / FEAT-1373 — fills the M4 rework meter)');
180
+ reworkCmd
181
+ .command('report <entry-id>')
182
+ .description('Report a rework event attributed to a previously served governance entry (agent-native checkpoint; requires an active session)')
183
+ .requiredOption('--classification <kind>', 'revision | ci_review_correction | user_override')
184
+ .option('--via <kind>', 'How this was observed: followup_commit | ci_rerun | manual', 'manual')
185
+ .option('--attributable', 'Flag: this ci_review_correction is attributed to a missing/violated served decision')
186
+ .option('--task <text>', 'Task context this rework relates to (truncated server-side, never raw diff/comment text)')
187
+ .option('--conversation <id>', 'Explicit conversation override, matching `pb session start --conversation <id>` — use when the shell has no PB_CONVERSATION_ID set')
188
+ .action(async (entryId, opts) => {
189
+ await runReworkReport({
190
+ entryId,
191
+ classification: opts.classification,
192
+ reportedVia: opts.via,
193
+ attributable: opts.attributable,
194
+ task: opts.task,
195
+ conversation: opts.conversation,
196
+ });
197
+ });
198
+ program
199
+ .command('get-many <entry-ids...>')
200
+ .description('Fetch multiple entries in parallel (space-separated IDs)')
201
+ .action(async (entryIds) => {
202
+ await runGetMany({ entryIds: entryIds.map((id) => id.trim()).filter(Boolean) });
32
203
  });
33
204
  program
34
205
  .command('context <entry-id>')
35
- .description('Gather and display constellation context (pipe-friendly markdown when stdout is not a TTY)')
206
+ .description('Gather and display constellation context (pipe-friendly: JSON when piped, human text in terminal)')
36
207
  .action(async (entryId) => {
37
208
  if (!entryId?.trim()) {
38
209
  program.commands.find((c) => c.name() === 'context')?.help();
39
210
  return;
40
211
  }
41
- try {
42
- await runContext({ entryId: entryId.trim() });
212
+ await runContext({ entryId: entryId.trim() });
213
+ });
214
+ program
215
+ .command('changes')
216
+ .description('Detect entries modified and relations created since a given time (BET-239)')
217
+ .requiredOption('--since <duration>', 'Time window: 1h, 6h, 1d, 7d, 30d')
218
+ .action(async (opts) => {
219
+ await runChanges({ since: opts.since });
220
+ });
221
+ program
222
+ .command('walk <entry-id>')
223
+ .description('Directed deep traversal along one relation type to depth 4 (BET-239)')
224
+ .option('-d, --depth <n>', 'Traversal depth 1-4 (default 2)', '2')
225
+ .option('--direction <dir>', 'Traversal direction: outgoing or incoming (default outgoing)', 'outgoing')
226
+ .option('-t, --type <relation-type>', 'Filter by relation type (e.g. depends_on, informs, governs)')
227
+ .action(async (entryId, opts) => {
228
+ const depth = parseInt(opts.depth, 10);
229
+ if (isNaN(depth) || depth < 1 || depth > 4) {
230
+ throw new CLIError('--depth must be between 1 and 4.', {
231
+ code: ErrorCode.VALIDATION_FAILED,
232
+ category: 'validation',
233
+ });
234
+ }
235
+ await runChainWalk({
236
+ entryId: entryId.trim(),
237
+ depth,
238
+ direction: opts.direction,
239
+ type: opts.type,
240
+ });
241
+ });
242
+ program
243
+ .command('cross-cut')
244
+ .description('Structural aggregation — all relations of a given type grouped by source collection (BET-239)')
245
+ .requiredOption('--type <relation-type>', 'Relation type to scan (e.g. part_of, informs, governs)')
246
+ .action(async (opts) => {
247
+ await runCrossCut({ type: opts.type });
248
+ });
249
+ program
250
+ .command('brief [type]')
251
+ .description('Brief intelligence queries (BET-239).\n' +
252
+ ' pb brief --skill <name> Incremental delta for a skill (E4)\n' +
253
+ ' pb brief steering Compound: changes + structure + delta + readiness (E6)\n' +
254
+ ' pb brief confidence Compound: changes + active work packages + tensions (E6)\n' +
255
+ ' pb brief delta [--since] Compound: changes + relations since timestamp (E6)')
256
+ .option('--skill <name>', 'Skill name for incremental brief (e.g. preflight, shaping, review)')
257
+ .option('--since-last', 'Compare against last brief run (incremental mode)')
258
+ .option('--since <timestamp>', 'ISO 8601 timestamp for delta type (e.g. 2026-03-24T00:00:00Z)')
259
+ .action(async (type, opts) => {
260
+ // If positional arg is a compound type, route to compound brief
261
+ if (type && isCompoundType(type)) {
262
+ await runCompoundBrief({ type, since: opts.since });
263
+ return;
43
264
  }
44
- catch (err) {
45
- console.error(err instanceof Error ? err.message : String(err));
46
- process.exit(1);
265
+ // Otherwise, require --skill for incremental brief
266
+ if (!opts.skill) {
267
+ throw new CLIError('Usage:\n' +
268
+ ' pb brief --skill <name> Incremental delta\n' +
269
+ ' pb brief steering Compound steering brief\n' +
270
+ ' pb brief confidence Compound confidence pass\n' +
271
+ ' pb brief delta Compound delta sync', { code: ErrorCode.VALIDATION_FAILED, category: 'validation' });
47
272
  }
273
+ await runBrief({ skill: opts.skill, sinceLast: opts.sinceLast });
48
274
  });
49
275
  program
50
276
  .command('search [query...]')
@@ -55,38 +281,647 @@ program
55
281
  program.commands.find((c) => c.name() === 'search')?.help();
56
282
  return;
57
283
  }
58
- try {
59
- await runSearch({ query });
60
- }
61
- catch (err) {
62
- console.error(err instanceof Error ? err.message : String(err));
63
- process.exit(1);
64
- }
284
+ await runSearch({ query });
65
285
  });
66
286
  program
67
287
  .command('orient')
68
- .description('Print workspace stage and all orient sections (strategic context, bets, governance, tensions, etc.)')
69
- .option('-b, --brief', 'Compact view: stage, counts, top bets, tensions, planned work')
288
+ .description('Print workspace stage and all orient sections (strategic context, work packages, governance, tensions, etc.)')
289
+ .option('-b, --brief', 'Compact view: stage, counts, top work packages, tensions, planned work')
290
+ .option('-t, --task <task>', 'Task description for task-shaped governance and context')
291
+ .option('-s, --scope <domain>', 'Domain scope for governance filtering. Forwarded to the workspace model for validation and custom domain resolution.')
292
+ .option('--full', 'Full depth orient (tier=full). Use for thorough context loading.')
293
+ .action(async (opts) => {
294
+ await runOrient({ brief: opts.brief, task: opts.task?.trim() || undefined, scope: opts.scope?.trim() || undefined, full: opts.full });
295
+ });
296
+ program
297
+ .command('handshake')
298
+ .description('Generate context files for AI developer tools (AGENTS.md, .codex/skills/, CLAUDE.md, .cursor/rules/, .github/copilot-instructions.md)')
299
+ .option('--force', 'Overwrite adapter files even if they exist without auto-generated marker')
300
+ .option('--apply', 'Write files (default: preview only)')
301
+ .option('--dry-run', 'Show what would be generated without writing files (alias for preview)')
302
+ .option('--init', 'Set up Claude Code integration: team hooks + personal trust level')
303
+ .option('--level <level>', 'With --init: trust level (guide|work|silent|full-trust). Without --init: content tier (beginner|intermediate|expert)')
304
+ .option('--generate', 'Fetch governance entries from the Chain and merge generated rules (BET-286)')
305
+ .option('--surfaces <list>', 'Comma-separated surfaces to write (cursor,claude,copilot,codex)')
306
+ .option('--no-prompt', 'Headless mode: refuse on tampered projection files (WP-421 S3, doneWhen #17). Always implied when stdout is not a TTY.')
307
+ .option('--lenient', 'WP-439 S4: continue past setup-asset body fetch failures with a warning (legacy behaviour). By default, body fetch failures are hard errors; run `pb setup-audit --repair` to fix orphaned rows.')
70
308
  .action(async (opts) => {
71
- try {
72
- await runOrient({ brief: opts.brief });
309
+ if (opts.init) {
310
+ await runHandshakeInit({ level: opts.level, dryRun: opts.dryRun });
311
+ return;
73
312
  }
74
- catch (err) {
75
- console.error(err instanceof Error ? err.message : String(err));
76
- process.exit(1);
313
+ // Commander turns `--no-prompt` into `prompt: false`. We invert so HandshakeOptions sees noPrompt=true.
314
+ const noPrompt = opts.prompt === false;
315
+ // Attribute the bare-handshake invocation so its context.served row is separable from
316
+ // session-start ('session-start') / session-close ('session-close') / manual orient rows.
317
+ // Without this, the kernel used to coerce the absent path to 'manual-orient', polluting the
318
+ // proof slice that isolates manual `pb orient --task` rows (the 'handshake' union member was otherwise never emitted).
319
+ await runHandshake({ force: opts.force, apply: opts.apply, dryRun: opts.dryRun, level: opts.level, generate: opts.generate, surfaces: opts.surfaces?.split(','), noPrompt, lenient: opts.lenient, invocationPath: 'handshake' });
320
+ });
321
+ program
322
+ .command('codex-prep <task...>')
323
+ .description('Generate task-specific governance context for Codex (.codex/task-context.md)')
324
+ .option('--dry-run', 'Print to stdout instead of writing file')
325
+ .option('--full', 'Full depth orient (tier=full). Use for thorough context loading.')
326
+ .action(async (taskParts, opts) => {
327
+ const task = taskParts.join(' ').trim();
328
+ if (!task) {
329
+ program.commands.find((c) => c.name() === 'codex-prep')?.help();
330
+ return;
77
331
  }
332
+ await runCodexPrep({ task, dryRun: opts.dryRun, full: opts.full });
333
+ });
334
+ program
335
+ .command('init')
336
+ .description('Detect setup state and guide you through configuration (WP-303)')
337
+ .action(async () => {
338
+ await runInit();
339
+ });
340
+ program
341
+ .command('connect <token>')
342
+ .description('Redeem an onboarding token and save your API key locally (FEAT-958). Uses CONVEX_SITE_URL if set, otherwise the production gateway. Override with --gateway or PB_CONNECT_GATEWAY_URL. In a non-interactive shell (e.g. CI), pass --yes to confirm the workspace, optionally with --name to label the key.')
343
+ .option('--gateway <url>', 'Override redeem gateway (default: CONVEX_SITE_URL or production). Use when token came from a different Convex deployment.')
344
+ .option('--name <label>', 'Optional label for this API key in workspace settings. Skips the key-label prompt when set.')
345
+ .option('-y, --yes', 'Skip the interactive workspace confirmation. Required to connect in a non-interactive shell (e.g. CI).')
346
+ .action(async (token, opts) => {
347
+ if (!token?.trim()) {
348
+ program.commands.find((c) => c.name() === 'connect')?.help();
349
+ return;
350
+ }
351
+ await runConnect(token.trim(), { gateway: opts.gateway, name: opts.name, assumeYes: opts.yes });
78
352
  });
79
353
  program
80
354
  .command('login')
81
355
  .description('Save your API key to ~/.config/productbrain/.env (works from any directory)')
82
356
  .action(async () => {
83
- try {
84
- await runLogin();
357
+ await runLogin();
358
+ });
359
+ program
360
+ .command('doctor')
361
+ .description('Check CLI configuration and connectivity')
362
+ .option('--fix', 'Auto-repair common configuration issues')
363
+ .option('--dry-run', 'Preview what --fix would do without changing anything')
364
+ .action(async (opts) => {
365
+ await runDoctor({ fix: opts.fix, dryRun: opts.dryRun });
366
+ });
367
+ program
368
+ .command('whoami')
369
+ .alias('status')
370
+ .description('Show the active profile + workspace (fast; no session required).')
371
+ .action(async () => {
372
+ await runWhoami();
373
+ });
374
+ program
375
+ .command('files')
376
+ .description('Show which .productbrain files are pb-owned vs committed, and what writes each.')
377
+ .option('--fix', 'Add any exposed pb-owned files to .gitignore (idempotent)')
378
+ .option('--dry-run', 'With --fix: preview the .gitignore lines without writing')
379
+ .action(async (opts) => {
380
+ await runFiles({ fix: opts.fix, dryRun: opts.dryRun });
381
+ });
382
+ program
383
+ .command('setup')
384
+ .description('Canonical pb-setup entry (DEC-995): detect surfaces, read state, emit JSON for the skill body.')
385
+ .action(async () => {
386
+ await runSetup();
387
+ });
388
+ program
389
+ .command('setup-detect-surfaces')
390
+ .description('Detect local surface markers and union-merge into manifest.surfaces (STD-235 forward-only)')
391
+ .action(async () => {
392
+ const result = await runSetupDetectSurfaces();
393
+ if (process.stdout.isTTY) {
394
+ process.stdout.write(formatDetectSurfacesSummary(result) + '\n');
85
395
  }
86
- catch (err) {
87
- console.error(err instanceof Error ? err.message : String(err));
88
- process.exit(1);
396
+ else {
397
+ process.stderr.write(formatDetectSurfacesSummary(result) + '\n');
89
398
  }
90
399
  });
91
- program.parse();
400
+ program
401
+ .command('setup-state')
402
+ .description('Emit compact JSON of getPbSetupState (machine-readable, used by the pb-setup skill body)')
403
+ .action(async () => {
404
+ await runSetupState();
405
+ });
406
+ // WP-439 S2: setup-asset orphan audit. Read-only diagnostic; exits 1 if any setup_asset row has a broken body wiring (will fail at handshake). WP-439 S3: --repair attempts to restore class III/II orphans from STARTER_* constants. Class I (inline-only) and IV (hash drift) are NOT touched.
407
+ program
408
+ .command('setup-audit')
409
+ .description('Audit setup_asset rows for orphaned bodies (WP-439 S2/S3). Exits 1 if any orphan or repair-failure.')
410
+ .option('--json', 'Emit machine-readable JSON (overrides pretty output for this command)')
411
+ .option('--repair', 'Attempt to restore class III/II orphans from STARTER_* constants (WP-439 S3)')
412
+ .action(async (opts) => {
413
+ await runSetupAudit({ json: opts.json, repair: opts.repair });
414
+ });
415
+ // --- Write commands (require active session) ---
416
+ const sessionCmd = program
417
+ .command('session')
418
+ .description('Manage write sessions (DEC-9: sessions required before write access)');
419
+ sessionCmd
420
+ .command('start')
421
+ .description('Start a tracked write session (opens session, refreshes context)')
422
+ .option('--json', 'Output machine-readable JSON (deprecated: use global --json flag)')
423
+ .option('--conversation <id>', 'Explicit conversation identity override (WP-479 E2) — takes priority over env-detected channels. Pair with PB_CONVERSATION_ID=<id> so later bare pb commands (orient, capture) attribute to the same conversation — they resolve identity from env only')
424
+ .action(async (opts) => {
425
+ await runSessionStart({ json: opts.json, conversation: opts.conversation });
426
+ });
427
+ sessionCmd
428
+ .command('id')
429
+ .description('Print current session ID to stdout (machine-readable, TEN-707)')
430
+ .action(() => {
431
+ runSessionId();
432
+ });
433
+ sessionCmd
434
+ .command('close')
435
+ .description('Close the active session (wrapup, refresh context)')
436
+ .option('--force', 'Clear local session state even if server close fails')
437
+ .action(async (opts) => {
438
+ await runSessionClose({ force: opts.force });
439
+ });
440
+ // WP-479 E4: traceback + quota observability.
441
+ sessionCmd
442
+ .command('list')
443
+ .description('List active sessions (with quota gauge) + recent non-active ones (WP-479 E4)')
444
+ .action(async () => {
445
+ await runSessionList();
446
+ });
447
+ sessionCmd
448
+ .command('show <id-or-conversation>')
449
+ .description('Show a conversation\'s full session lineage + governance serves (WP-479 E4)')
450
+ .action(async (idOrConversation) => {
451
+ await runSessionShow(idOrConversation);
452
+ });
453
+ // TEN-2189 / WP-456 E2: hard-reset worktree-local session state (no resume marker) + clear the PREVIEW_MODE marker. Recovery path for a session stranded on the wrong workspace after a pb:preview/pb:real binding flip.
454
+ sessionCmd
455
+ .command('reset')
456
+ .description('Hard-reset local session state (discard session.json + clear PREVIEW_MODE)')
457
+ .option('--force', 'Skip the confirmation prompt when an active session is present')
458
+ .action(async (opts) => {
459
+ await runSessionReset({ force: opts.force });
460
+ });
461
+ program
462
+ .command('capture [text...]')
463
+ .description('Capture knowledge to the Chain (requires active session)')
464
+ .option('-n, --name <name>', 'Entry name (defaults to capture text)')
465
+ .option('-d, --description <desc>', 'Entry description (defaults to capture text)')
466
+ .option('-c, --collection <slug>', 'Explicit collection (skip auto-classification)')
467
+ .option('-f, --field <key=value>', 'Set a data field (repeatable; e.g. rationale="...")', (val, prev) => [...prev, val], [])
468
+ .option('-l, --link <entry-id>', 'Link new entry to an existing entry (TEN-705)')
469
+ .option('-t, --link-type <relation-type>', 'Relation type for --link — REQUIRED when --link is used (WP-688 S4): no default, the door refuses and lists the source entry\'s legal verbs if omitted')
470
+ .option('--source-ref <ref>', 'Source reference URI (BET-240 E2: e.g. "meeting-2026-03-28.md")')
471
+ .option('--source-excerpt <text>', 'Verbatim source excerpt (BET-240 E2)')
472
+ .option('--draft', 'Force the entry to draft regardless of workspace governance mode — opt-in override, keeps it draft even in Open mode (TEN-2226 / WP-456 E1)')
473
+ .option('--json', 'Output machine-readable JSON (deprecated: use global --json flag)')
474
+ .option('--suggest-only', 'Show grounding preview (possible duplicates, related entries) without creating entry (WP-319)')
475
+ .option('--strict', 'Prompt y/N before capturing when a possible duplicate is detected (WP-319)')
476
+ .option('--owner-team <entry-id>', 'Existing Team entry ID to create AS OWNER of (WP-513 rung 2; pair with --owner-role)')
477
+ .option('--owner-role <entry-id>', 'Existing Role entry ID to create AS OWNER of (WP-513 rung 2; pair with --owner-team)')
478
+ .option('--entry-type <canonical-key>', 'Explicit canonical type for the new entry (e.g. objective, key_result) — bypasses classification; -t/--link-type is the --link relation type (WP-684 TASK-77)')
479
+ .action(async (textParts = [], opts) => {
480
+ const text = textParts.join(' ').trim();
481
+ if (!text && !opts.name) {
482
+ program.commands.find((c) => c.name() === 'capture')?.help();
483
+ return;
484
+ }
485
+ await runCapture({
486
+ text: text || opts.name || '', name: opts.name, description: opts.description, collection: opts.collection,
487
+ field: opts.field, link: opts.link, linkType: opts.linkType, sourceRef: opts.sourceRef, sourceExcerpt: opts.sourceExcerpt,
488
+ draft: opts.draft, json: opts.json, suggestOnly: opts.suggestOnly, strict: opts.strict,
489
+ ownerTeam: opts.ownerTeam, ownerRole: opts.ownerRole, entryType: opts.entryType,
490
+ });
491
+ });
492
+ // --- Update command (TEN-703) ---
493
+ program
494
+ .command('update <entry-id>')
495
+ .description('Update fields on an existing Chain entry (requires active session)')
496
+ .option('-f, --field <key=value>', 'Set a data field (repeatable)', (val, prev) => [...prev, val], [])
497
+ .option('--name <name>', 'Update entry name')
498
+ .option('--status <status>', 'Update entry status (draft | active | deprecated | archived)')
499
+ .option('--workflow-status <status>', 'Set workflow status (server-validated)')
500
+ .option('--type <canonical-key>', 'Reclassify a DRAFT entry to another canonical type (immutable once committed — supersede instead)')
501
+ .option('--note <text>', 'Change note for history')
502
+ .option('--override-reason <text>', 'Typed override (≥12 chars) clearing a steering coherency block — recorded with author attribution (WP-465)')
503
+ .option('--acknowledge <response>', 'Respond to a coherency challenge: linked | accepted-fix | diverged (WP-465)')
504
+ .option('--ack-entry <entry-id>', 'Authorizing entry for --acknowledge linked / accepted-fix')
505
+ .option('--ack-reason <text>', 'Divergence rationale (≥12 chars) for --acknowledge diverged')
506
+ // Commander camelCases every flag to exactly the UpdateOptions key it feeds, so the options
507
+ // object spreads straight through. The previous hand-written 1:1 mapping had to be edited twice
508
+ // per new flag (once here, once in the type) and silently dropped anything you forgot.
509
+ .action(async (entryId, opts) => {
510
+ await runUpdate({ entryId, ...opts });
511
+ });
512
+ // --- Restore command (WP-514 review round 2, P1) ---
513
+ program
514
+ .command('restore <entry-id>')
515
+ .description('Restore an archived Chain entry to draft (requires active session + rung-3 authority coverage)')
516
+ .action(async (entryId) => { await runRestore(entryId); });
517
+ // --- Entry noun-scoped commands (DEC-1574, WP-640 S4) — registerEntryCommands.ts ---
518
+ registerEntryCommands(program);
519
+ // --- Promote command (Wave 2 CLI Polish) ---
520
+ program
521
+ .command('verify <entry-id>')
522
+ .description('Mark an entry as verified (BET-240: source fidelity trust signal)')
523
+ .action(async (entryId) => {
524
+ if (!entryId?.trim()) {
525
+ program.commands.find((c) => c.name() === 'verify')?.help();
526
+ return;
527
+ }
528
+ await runVerify({ entryId: entryId.trim() });
529
+ });
530
+ // `pb promote` retirement (DEC-1578) — registerProposalCommands.ts
531
+ registerProposalCommands(program);
532
+ // --- Relate / Unrelate commands (TEN-704) — registerEntryCommands.ts (WP-688 S2a: moved off
533
+ // this shrink-only file to fund the --dry-run flag) ---
534
+ registerRelateCommands(program);
535
+ // --- Ingest command (BET-81) ---
536
+ program
537
+ .command('ingest <pattern>')
538
+ .description('Bulk ingest documents to Chain as drafts')
539
+ .option('--dry-run', 'Stage entries without auto-committing. Shows summary only.')
540
+ .option('--resume', 'Skip files whose sourceRef is already committed in staging.')
541
+ .option('--concurrency <n>', 'Process up to N files in parallel (default 1, max 5).', '1')
542
+ .action(async (pattern, opts) => {
543
+ const concurrency = parseInt(opts.concurrency ?? '1', 10);
544
+ if (Number.isNaN(concurrency) || concurrency < 1) {
545
+ throw new CLIError('--concurrency must be a positive integer.', {
546
+ code: ErrorCode.VALIDATION_FAILED,
547
+ category: 'validation',
548
+ });
549
+ }
550
+ await runIngest({
551
+ pattern,
552
+ dryRun: opts.dryRun,
553
+ resume: opts.resume,
554
+ concurrency,
555
+ });
556
+ });
557
+ // --- migrate:setup command (WP-345 S0b) ---
558
+ program
559
+ .command('migrate:setup')
560
+ .description('Migrate .productbrain/skills|rules|hooks/*.md into the DB setup-assets collection (WP-345)')
561
+ .option('--dry-run', 'Show what would be migrated without writing to DB.')
562
+ .option('--cwd <path>', 'Override working directory (default: process.cwd())')
563
+ .action(async (opts) => {
564
+ const { runMigrateSetup } = await import('./commands/migrate-setup.js');
565
+ await runMigrateSetup({ dryRun: opts.dryRun, cwd: opts.cwd });
566
+ });
567
+ // --- setup:ingest command (WP-345 S3) ---
568
+ program
569
+ .command('setup:ingest <path>')
570
+ .description('Push a single .productbrain skill/rule/hook file to the DB setup-assets SSOT (WP-345)')
571
+ .option('--dry-run', 'Show what would be ingested without writing to DB.')
572
+ .option('--json', 'Output machine-readable JSON (deprecated: use global --json flag)')
573
+ .action(async (filePath, opts) => {
574
+ if (!filePath?.trim()) {
575
+ program.commands.find((c) => c.name() === 'setup:ingest')?.help();
576
+ return;
577
+ }
578
+ const { runSetupIngest } = await import('./commands/setup-ingest.js');
579
+ await runSetupIngest(filePath.trim(), { dryRun: opts.dryRun });
580
+ });
581
+ // --- Fields command (BET-181 Slice 2) ---
582
+ program
583
+ .command('fields <collection>')
584
+ .description('List all field definitions for a collection (schema discovery for agents)')
585
+ .action(async (collection) => {
586
+ if (!collection?.trim()) {
587
+ program.commands.find((c) => c.name() === 'fields')?.help();
588
+ return;
589
+ }
590
+ await runFields({ collectionSlug: collection.trim() });
591
+ });
592
+ // --- Constellation command (BET-181 Slice 3) ---
593
+ program
594
+ .command('constellation <entry-id>')
595
+ .description('Compound view: entry + all related entries grouped by relation type (agent-native)')
596
+ .action(async (entryId) => {
597
+ if (!entryId?.trim()) {
598
+ program.commands.find((c) => c.name() === 'constellation')?.help();
599
+ return;
600
+ }
601
+ await runConstellation({ entryId: entryId.trim() });
602
+ });
603
+ // --- Audit command (BET-182 Slice 2) ---
604
+ program
605
+ .command('audit <entry-ids...>')
606
+ .description('Run hygiene audit on work package(s) — 13 gates (shaping) / 18 gates (handoff), exit code reflects verdict')
607
+ .option('--phase <phase>', 'Override phase detection (shaping | handoff)')
608
+ .option('--gate <name>', 'Run only specified gate(s) (repeatable)', (val, prev) => [...prev, val], [])
609
+ .option('--fix', 'Auto-execute exact fixes via pb update, rerun once')
610
+ .option('--verbose', 'Show all gates including PASS detail')
611
+ .action(async (entryIds, opts) => {
612
+ await runAudit({
613
+ entryIds: entryIds.map((id) => id.trim()).filter(Boolean),
614
+ phase: opts.phase,
615
+ gate: opts.gate,
616
+ fix: opts.fix,
617
+ verbose: opts.verbose,
618
+ });
619
+ });
620
+ program
621
+ .command('brand-pack')
622
+ .description('Internal marketing: structured community copy via OpenRouter (requires OPENROUTER_API_KEY). Forwards args to scripts/brand-pack.mjs')
623
+ .allowUnknownOption(true)
624
+ .allowExcessArguments(true)
625
+ .action(() => {
626
+ runBrandPack(process.argv);
627
+ });
628
+ // --- Collections command (BET-280 Slice 1) ---
629
+ const collectionsCmd = program
630
+ .command('collections')
631
+ .description('Inspect and audit workspace collection registry (BET-280)');
632
+ collectionsCmd
633
+ .command('list')
634
+ .description('List all collections — slug, name, field count, icon')
635
+ .action(async () => {
636
+ await runCollectionsList();
637
+ });
638
+ collectionsCmd
639
+ .command('get <slug>')
640
+ .description('Show full detail for a collection by slug')
641
+ .action(async (slug) => {
642
+ if (!slug?.trim()) {
643
+ program.commands.find((c) => c.name() === 'collections')?.help();
644
+ return;
645
+ }
646
+ await runCollectionsGet({ slug: slug.trim() });
647
+ });
648
+ collectionsCmd
649
+ .command('audit')
650
+ .description('Collection health report — classification, icon, displayHint coverage, schema gaps')
651
+ .action(async () => {
652
+ await runCollectionsAudit();
653
+ });
654
+ collectionsCmd
655
+ .command('export')
656
+ .description('Export all system_collection_definitions with full classification metadata (admin only)')
657
+ .action(async () => {
658
+ await runCollectionsExport();
659
+ });
660
+ // --- Workspace operator commands (WP-305 Slice 4) ---
661
+ const workspaceCmd = program
662
+ .command('workspace')
663
+ .description('Operator commands for workspace health and repair (WP-305)');
664
+ workspaceCmd
665
+ .command('verify')
666
+ .description('Check workspace health — seeds, collections, glossary (admin only)')
667
+ .action(async () => {
668
+ await runWorkspaceVerify();
669
+ });
670
+ workspaceCmd
671
+ .command('repair')
672
+ .description('Backfill missing seeds for the active workspace (admin only)')
673
+ .action(async () => {
674
+ await runWorkspaceRepair();
675
+ });
676
+ const authorityDomainsCmd = program
677
+ .command('authority-domains')
678
+ .description('Operator commands for WP-354 authority-domain readiness and evidence');
679
+ authorityDomainsCmd
680
+ .command('add <slug>')
681
+ .description('Create an authority domain for this workspace')
682
+ .option('--description <description>', 'Authority-domain description')
683
+ .option('--alias <alias>', 'Alias/keyword for this domain (repeatable)', collectRepeatableOption)
684
+ .option('--path-glob <glob>', 'Changed-path glob for this domain (repeatable)', collectRepeatableOption)
685
+ .action(async (slug, opts) => {
686
+ await runAuthorityDomainsAdd(slug, opts);
687
+ });
688
+ authorityDomainsCmd
689
+ .command('propose')
690
+ .description('Generate authority-domain tag proposals')
691
+ .option('--dry-run', 'Preview without writing staging proposals')
692
+ .option('--limit <n>', 'Maximum governance entries to classify')
693
+ .option('--mock', 'Use deterministic mock classifier')
694
+ .action(async (opts) => {
695
+ await runAuthorityDomainsPropose(opts);
696
+ });
697
+ authorityDomainsCmd
698
+ .command('review')
699
+ .description('List authority-domain tag proposals')
700
+ .option('--status <status>', 'pending, committed, rejected, or skipped', 'pending')
701
+ .option('--limit <n>', 'Maximum proposals to list')
702
+ .option('--sample <n>', 'Return a stable proposal sample')
703
+ .option('--stratified', 'Stratify sample across proposed domain and source collection')
704
+ .action(async (opts) => {
705
+ await runAuthorityDomainsReview(opts);
706
+ });
707
+ const authorityDomainsSampleCmd = authorityDomainsCmd
708
+ .command('sample')
709
+ .description('Manage human-reviewed authority-domain proposal samples');
710
+ authorityDomainsSampleCmd
711
+ .command('record')
712
+ .description('Record human-reviewed sample accuracy for authority-domain proposals')
713
+ .requiredOption('--sample-id <id>', 'Stable sample identifier from the review packet')
714
+ .option('--run-id <id>', 'Proposal run identifier')
715
+ .requiredOption('--approved <n>', 'Count of sampled proposals approved as-is')
716
+ .requiredOption('--rejected <n>', 'Count of sampled proposals rejected')
717
+ .requiredOption('--corrected <n>', 'Count of sampled proposals corrected to another domain')
718
+ .action(async (opts) => {
719
+ await runAuthorityDomainsRecordSample(opts);
720
+ });
721
+ authorityDomainsCmd
722
+ .command('ratify <proposal-id>')
723
+ .description('Ratify an authority-domain tag proposal')
724
+ .option('--note <note>', 'Review note')
725
+ .action(async (proposalId, opts) => {
726
+ await runAuthorityDomainsRatify(proposalId, opts);
727
+ });
728
+ authorityDomainsCmd
729
+ .command('queue-tag')
730
+ .description('Queue a known-correct authority-domain tag proposal')
731
+ .requiredOption('--entry <entryId>', 'Entry ID to tag, e.g. DEC-1244')
732
+ .requiredOption('--domain <domainSlug>', 'Authority-domain slug, e.g. product-design/ux')
733
+ .option('--note <note>', 'Known-correct evidence note')
734
+ .option('--ratify', 'Immediately ratify using the generated confirmation string')
735
+ .action(async (opts) => {
736
+ await runAuthorityDomainsQueueTag(opts);
737
+ });
738
+ authorityDomainsCmd
739
+ .command('reject <proposal-id>')
740
+ .description('Reject an authority-domain tag proposal')
741
+ .option('--reason <reason>', 'Rejection reason')
742
+ .action(async (proposalId, opts) => {
743
+ await runAuthorityDomainsReject(proposalId, opts);
744
+ });
745
+ authorityDomainsCmd
746
+ .command('discard-pending')
747
+ .description('Reject all pending authority-domain tag proposals after a failed batch diagnosis')
748
+ .option('--reason <reason>', 'Discard reason')
749
+ .action(async (opts) => {
750
+ await runAuthorityDomainsDiscardPending(opts);
751
+ });
752
+ authorityDomainsCmd
753
+ .command('readiness')
754
+ .description('Show WP-354 authority-domain readiness, evidence gap, and next action')
755
+ .action(async () => {
756
+ await runAuthorityDomainsReadiness();
757
+ });
758
+ authorityDomainsCmd
759
+ .command('benchmark')
760
+ .description('Run and persist the WP-354 authority-domain benchmark')
761
+ .action(async () => {
762
+ await runAuthorityDomainsBenchmark();
763
+ });
764
+ authorityDomainsCmd
765
+ .command('activate-cutover')
766
+ .description('Activate graph retrieval after WP-354 evidence gates pass')
767
+ .option('--force-pre-production', 'Bypass the permanently-locked valueProof gate (requires --dec-id, DEC-864)')
768
+ .option('--dec-id <decId>', 'Chain DEC ID authorizing the bypass')
769
+ .action(async (opts) => {
770
+ await runAuthorityDomainsActivateCutover({ forcePreProduction: opts.forcePreProduction, decId: opts.decId });
771
+ });
772
+ authorityDomainsCmd
773
+ .command('deactivate-cutover')
774
+ .description('Deactivate the active WP-354 authorityDomain cutover for this workspace (DEC-864 rollback).')
775
+ .option('--clerk-user-id <clerkUserId>', 'Override the Clerk user ID for audit trail')
776
+ .action(async (opts) => {
777
+ await runAuthorityDomainsDeactivateCutover({ clerkUserId: opts.clerkUserId });
778
+ });
779
+ authorityDomainsCmd
780
+ .command('principle-distribution')
781
+ .description('Pre-merge gate: check governance category match rate for principles entries')
782
+ .action(async () => {
783
+ await runAuthorityDomainsPrincipleDistribution();
784
+ });
785
+ // --- Definitions diff command (WP-305 Slice 4) ---
786
+ const definitionsCmd = program
787
+ .command('definitions')
788
+ .description('Inspect and compare workspace definitions (WP-305)');
789
+ definitionsCmd
790
+ .command('diff [file]')
791
+ .description('Compare local dev-system-collections.json against server definitions (admin only)')
792
+ .action(async (file) => {
793
+ await runDefinitionsDiff({ file });
794
+ });
795
+ // --- Method commands (WP-329 S1: method visibility) ---
796
+ const methodCmd = program
797
+ .command('method')
798
+ .description('Inspect published methods (skills + rules) and their per-surface adapter status (WP-329)');
799
+ methodCmd
800
+ .command('ls')
801
+ .description('List all methods with version, published status, and adapter presence')
802
+ .action(async () => {
803
+ await runMethodList();
804
+ });
805
+ methodCmd
806
+ .command('show <name>')
807
+ .description('Show details for one method: frontmatter, Chain entry, and per-adapter fork status')
808
+ .action(async (name) => {
809
+ if (!name?.trim()) {
810
+ program.commands.find((c) => c.name() === 'method')?.help();
811
+ return;
812
+ }
813
+ await runMethodShow({ name: name.trim() });
814
+ });
815
+ methodCmd
816
+ .command('diff <name>')
817
+ .description('Show diff between local .productbrain/ source and last-published Chain version (WP-329 S2)')
818
+ .action(async (name) => {
819
+ if (!name?.trim()) {
820
+ program.commands.find((c) => c.name() === 'method')?.help();
821
+ return;
822
+ }
823
+ await runMethodDiff({ name: name.trim() });
824
+ });
825
+ methodCmd
826
+ .command('publish <name>')
827
+ .description('Publish a local .productbrain/ method (skill or rule) to the Chain methods collection (WP-329 S3)')
828
+ .option('--force', 'Publish even when local body matches the last-published version (override D4 no-op guard)')
829
+ .action(async (name, opts) => {
830
+ if (!name?.trim()) {
831
+ program.commands.find((c) => c.name() === 'method')?.help();
832
+ return;
833
+ }
834
+ await runMethodPublish({ name: name.trim(), force: opts.force });
835
+ });
836
+ // --- Profile commands (WP-302 Slice 2) ---
837
+ const profileCmd = program
838
+ .command('profile')
839
+ .description('Manage workspace profiles (WP-302: multi-workspace support)');
840
+ profileCmd
841
+ .command('list')
842
+ .description('List all profiles, mark active one')
843
+ .action(async () => {
844
+ await runProfileList();
845
+ });
846
+ profileCmd
847
+ .command('create <name>')
848
+ .description('Create a new profile with an API key')
849
+ .requiredOption('--api-key <key>', `API key (${API_KEY_PREFIX}...)`)
850
+ .option('--url <url>', 'Convex site URL (defaults to production)')
851
+ .action(async (name, opts) => {
852
+ await runProfileCreate({ name, apiKey: opts.apiKey, url: opts.url });
853
+ });
854
+ profileCmd
855
+ .command('use <name>')
856
+ .description('Switch profile: reconciles the repo pin + global by default. --local = repo pin only; --global = global only.')
857
+ .option('--local', 'Write the profile pin only to .productbrain/config.local.json (repo-local, gitignored)')
858
+ .option('--global', 'Switch only the global active profile (does not change a locally-pinned repo)')
859
+ .action(async (name, opts) => {
860
+ await runProfileUse({ name, local: opts.local, global: opts.global });
861
+ });
862
+ profileCmd
863
+ .command('delete <name>')
864
+ .description('Delete a profile (cannot delete active or last profile)')
865
+ .action(async (name) => {
866
+ await runProfileDelete({ name });
867
+ });
868
+ program
869
+ .command('use <name>')
870
+ .description('Switch the active workspace profile (alias for `pb profile use`).')
871
+ .option('--local', 'Write the profile pin only to .productbrain/config.local.json (repo-local, gitignored)')
872
+ .option('--global', 'Switch only the global active profile (does not change a locally-pinned repo)')
873
+ .action(async (name, opts) => {
874
+ await runProfileUse({ name, local: opts.local, global: opts.global });
875
+ });
876
+ // --- Glossary command (WP-302 Slice 4) ---
877
+ program
878
+ .command('glossary')
879
+ .description('Show key Product Brain CLI terms and definitions')
880
+ .action(() => {
881
+ if (isJsonMode()) {
882
+ process.stdout.write(JSON.stringify(GLOSSARY) + '\n');
883
+ return;
884
+ }
885
+ const lines = [
886
+ '',
887
+ heading('Glossary'),
888
+ '',
889
+ formatGlossary(),
890
+ '',
891
+ ];
892
+ process.stdout.write(lines.join('\n') + '\n');
893
+ });
894
+ // --- Usage command (WP-322 S4, FEAT-1011) ---
895
+ program
896
+ .command('usage')
897
+ .description('Session and activity dashboard — 4-tab Ink TUI (WP-322)')
898
+ .option('--json', 'Output machine-readable JSON (sessions, entries30d, activity array)')
899
+ .action(async (opts) => {
900
+ await runUsage({ json: opts.json });
901
+ });
902
+ // --- Proof-run command (WP-459: admin-proof bridge dogfood) ---
903
+ program
904
+ .command('proof-run <proof-name>')
905
+ .description('Run an admin-only proof against the seeded preview via the proof bridge (WP-459)')
906
+ .action(async (proofName) => {
907
+ await runProofRun({ proofName: proofName.trim() });
908
+ });
909
+ // --- Admin command group (WP-312 S2, FEAT-969) ---
910
+ program.addCommand(createAdminCommand());
911
+ program.addCommand(createFeedbackCommand());
912
+ program.addCommand(createConflictsCommand());
913
+ program.addCommand(createShapeCommand());
914
+ program.addCommand(createQuestionCommand());
915
+ program.addCommand(createDirectionCommand());
916
+ program.addCommand(createOrganisationCommand());
917
+ program.addCommand(createAcceptPolicyCommand());
918
+ // --- Upgrade command (WP-322 S1: ambient update notification) ---
919
+ program
920
+ .command('upgrade')
921
+ .description(`Upgrade pb CLI to the latest beta (${UPGRADE_COMMAND})`)
922
+ .action(async () => {
923
+ await runUpgrade({ currentVersion: cliPackageVersion.version });
924
+ });
925
+ // Parse with global error handler — all uncaught errors route through handleError
926
+ program.parseAsync(process.argv).catch(handleError);
92
927
  //# sourceMappingURL=index.js.map