@unbrained/pm-cli 2026.10.14 → 2026.10.15

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 (692) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/CHANGELOG.md +54 -2
  3. package/dist/cli/after-command-context-usage.d.ts +7 -7
  4. package/dist/cli/argv-utils.d.ts +4 -4
  5. package/dist/cli/bundle-integrity.d.ts +16 -16
  6. package/dist/cli/command-namespaces.d.ts +1 -1
  7. package/dist/cli/commander-usage.d.ts +34 -34
  8. package/dist/cli/commands/governance/validate.d.ts +1 -1
  9. package/dist/cli/commands/history/history-compact.d.ts +1 -1
  10. package/dist/cli/commands/history/history-redact.d.ts +1 -1
  11. package/dist/cli/commands/history/history-repair.d.ts +1 -1
  12. package/dist/cli/commands/history/restore.d.ts +1 -1
  13. package/dist/cli/commands/lifecycle/close.d.ts +1 -1
  14. package/dist/cli/commands/lifecycle/copy.d.ts +1 -1
  15. package/dist/cli/commands/lifecycle/delete.d.ts +1 -1
  16. package/dist/cli/commands/lifecycle/focus.d.ts +1 -1
  17. package/dist/cli/commands/query/get.d.ts +1 -1
  18. package/dist/cli/commands/workspace/merge.d.ts +1 -1
  19. package/dist/cli/commands/workspace/schema.d.ts +1 -1
  20. package/dist/cli/context-intent-invocation.d.ts +1 -1
  21. package/dist/cli/description-stdin.d.ts +1 -1
  22. package/dist/cli/error-guidance.d.ts +119 -119
  23. package/dist/cli/extension-command-help.d.ts +64 -64
  24. package/dist/cli/extension-command-help.js +2 -2
  25. package/dist/cli/extension-command-options.d.ts +16 -16
  26. package/dist/cli/extension-recovery.d.ts +13 -13
  27. package/dist/cli/help-content.d.ts +22 -22
  28. package/dist/cli/help-content.js +2 -2
  29. package/dist/cli/help-json-payload.d.ts +45 -45
  30. package/dist/cli/invocation-profile.d.ts +5 -5
  31. package/dist/cli/main.d.ts +217 -217
  32. package/dist/cli/migration-gates.d.ts +24 -24
  33. package/dist/cli/option-values.d.ts +1 -1
  34. package/dist/cli/public.d.ts +1 -1
  35. package/dist/cli/register-annotations.d.ts +2 -2
  36. package/dist/cli/register-assurance.d.ts +1 -1
  37. package/dist/cli/register-files-lookup.d.ts +1 -1
  38. package/dist/cli/register-history-activity.d.ts +1 -1
  39. package/dist/cli/register-history-author.d.ts +1 -1
  40. package/dist/cli/register-history-maintenance.d.ts +1 -1
  41. package/dist/cli/register-list-query.d.ts +7 -7
  42. package/dist/cli/register-list-query.js +3 -3
  43. package/dist/cli/register-mutation-options.d.ts +1 -1
  44. package/dist/cli/register-mutation.d.ts +4 -4
  45. package/dist/cli/register-operations.d.ts +75 -75
  46. package/dist/cli/register-setup.d.ts +4 -4
  47. package/dist/cli/register-structured-mutation.d.ts +8 -8
  48. package/dist/cli/runtime/activation.d.ts +23 -23
  49. package/dist/cli/runtime/invocation-options.d.ts +12 -12
  50. package/dist/cli/runtime/projection-retry.d.ts +1 -1
  51. package/dist/cli/runtime/selection.d.ts +16 -16
  52. package/dist/cli/runtime/telemetry-outcome.d.ts +11 -11
  53. package/dist/cli/runtime-compatibility-boundary.d.ts +7 -7
  54. package/dist/cli/schema/registration.d.ts +1 -1
  55. package/dist/cli/schema-registration-helpers.d.ts +2 -2
  56. package/dist/cli/stats-analytics-json.d.ts +1 -1
  57. package/dist/cli-bundle/bundle-manifest.json +1 -1
  58. package/dist/cli-bundle/chunks/{chunk-5LU6PWA4.js → chunk-52EZH2QQ.js} +2 -2
  59. package/dist/cli-bundle/chunks/chunk-7OEGNA4X.js +20 -0
  60. package/dist/cli-bundle/chunks/{chunk-LKESCZEN.js → chunk-7VHINXZP.js} +2 -2
  61. package/dist/cli-bundle/chunks/chunk-EMEEHV2Y.js +2 -0
  62. package/dist/cli-bundle/chunks/chunk-JGKTOBVB.js +6 -0
  63. package/dist/cli-bundle/chunks/{chunk-PP3BVMFL.js → chunk-JSUJWIHQ.js} +30 -30
  64. package/dist/cli-bundle/chunks/{chunk-MAT4AP7P.js → chunk-LNKLQYBG.js} +2 -2
  65. package/dist/cli-bundle/chunks/{chunk-LE4IEHDG.js → chunk-N56CAQBU.js} +63 -64
  66. package/dist/cli-bundle/chunks/{chunk-3S5SEMEB.js → chunk-NC3QVGDD.js} +2 -2
  67. package/dist/cli-bundle/chunks/{chunk-2UKKO45F.js → chunk-RJ5N44WY.js} +2 -2
  68. package/dist/cli-bundle/chunks/{chunk-LOSRTNNP.js → chunk-VIMQCFCK.js} +2 -2
  69. package/dist/cli-bundle/chunks/{chunk-JTF6VMXH.js → chunk-WBBW3WQX.js} +4 -4
  70. package/dist/cli-bundle/chunks/chunk-X2H6UR26.js +236 -0
  71. package/dist/cli-bundle/chunks/{register-list-query-GBLTOQQL.js → register-list-query-FKKFQ66D.js} +7 -7
  72. package/dist/cli-bundle/chunks/{register-mutation-TNRHNK4N.js → register-mutation-EWMMVZJB.js} +2 -2
  73. package/dist/cli-bundle/chunks/{register-operations-J3WXP3MA.js → register-operations-GEQ2H7PS.js} +2 -2
  74. package/dist/cli-bundle/chunks/{register-setup-HLSKKU4V.js → register-setup-PSJTQBBO.js} +2 -2
  75. package/dist/cli-bundle/focused-chunks/{chunk-4UA7KY4V.js → chunk-3RNUMVK4.js} +2 -2
  76. package/dist/cli-bundle/focused-chunks/{chunk-BUAGNTLG.js → chunk-4KQFMOM7.js} +6 -6
  77. package/dist/cli-bundle/focused-chunks/{chunk-QIU4Y3AB.js → chunk-52I2SNKJ.js} +2 -2
  78. package/dist/cli-bundle/focused-chunks/{chunk-Y5A4XOSK.js → chunk-5KRACGBK.js} +2 -2
  79. package/dist/cli-bundle/focused-chunks/{chunk-HNRI2KBT.js → chunk-5OO54BIV.js} +2 -2
  80. package/dist/cli-bundle/focused-chunks/{chunk-LKWDWER4.js → chunk-5TBAVZDR.js} +14 -14
  81. package/dist/cli-bundle/focused-chunks/{chunk-RHQCQTZA.js → chunk-FQKPOZKS.js} +2 -2
  82. package/dist/cli-bundle/focused-chunks/{chunk-IGBSAHCA.js → chunk-H3P77KVU.js} +2 -2
  83. package/dist/cli-bundle/focused-chunks/chunk-HTA3TNC3.js +26 -0
  84. package/dist/cli-bundle/focused-chunks/{chunk-23ACMPGB.js → chunk-JKBH7YGX.js} +2 -2
  85. package/dist/cli-bundle/focused-chunks/{chunk-AULVKHYX.js → chunk-KIIFVULU.js} +2 -2
  86. package/dist/cli-bundle/focused-chunks/{chunk-ESOW6PH4.js → chunk-N6FUKTZS.js} +2 -2
  87. package/dist/cli-bundle/focused-chunks/chunk-PDYE7QDX.js +166 -0
  88. package/dist/cli-bundle/focused-chunks/{chunk-KSMQEB3V.js → chunk-Q4VNCTR2.js} +2 -2
  89. package/dist/cli-bundle/focused-chunks/{chunk-YJNKISEI.js → chunk-THYQR3ON.js} +61 -62
  90. package/dist/cli-bundle/focused-chunks/{chunk-ELQNEJDA.js → chunk-TYLG5VEB.js} +2 -2
  91. package/dist/cli-bundle/main.js +26 -26
  92. package/dist/cli-bundle/sdk-authoring.js +1 -1
  93. package/dist/cli-bundle/sdk-contracts.js +2 -2
  94. package/dist/cli-bundle/sdk-core.js +22 -22
  95. package/dist/cli-bundle/sdk-governance.js +1 -1
  96. package/dist/cli-bundle/sdk-graph.js +1 -1
  97. package/dist/cli-bundle/sdk-merge.js +51 -51
  98. package/dist/cli-bundle/sdk-query.js +1 -1
  99. package/dist/cli-bundle/sdk-runtime.js +1 -1
  100. package/dist/cli-bundle/sdk-testing.js +1 -1
  101. package/dist/cli-bundle/sdk.js +7 -7
  102. package/dist/cli.d.ts +9 -9
  103. package/dist/core/checkpoint/checkpoint-gc.d.ts +17 -17
  104. package/dist/core/checkpoint/mutation-checkpoint.d.ts +26 -26
  105. package/dist/core/config/nested-settings.d.ts +20 -20
  106. package/dist/core/config/positional-value.d.ts +9 -9
  107. package/dist/core/diagnostics/remediation.d.ts +7 -7
  108. package/dist/core/extensions/activation-summary-markdown.d.ts +4 -4
  109. package/dist/core/extensions/activation-summary.d.ts +30 -30
  110. package/dist/core/extensions/activation-transaction.d.ts +9 -9
  111. package/dist/core/extensions/capability-usage.d.ts +25 -25
  112. package/dist/core/extensions/command-hook-context.d.ts +15 -15
  113. package/dist/core/extensions/command-metadata-contract.d.ts +1 -1
  114. package/dist/core/extensions/command-visibility-tier.d.ts +1 -1
  115. package/dist/core/extensions/contribution-inventory.d.ts +24 -24
  116. package/dist/core/extensions/exporter-output-contract.d.ts +4 -4
  117. package/dist/core/extensions/extension-candidate.d.ts +14 -14
  118. package/dist/core/extensions/extension-capability-aliases.d.ts +14 -14
  119. package/dist/core/extensions/extension-hook-runtime.d.ts +14 -14
  120. package/dist/core/extensions/extension-policy.d.ts +62 -62
  121. package/dist/core/extensions/extension-registries.d.ts +8 -8
  122. package/dist/core/extensions/extension-runtime-helpers.d.ts +5 -5
  123. package/dist/core/extensions/extension-types.d.ts +702 -702
  124. package/dist/core/extensions/flag-definition-validation.d.ts +11 -11
  125. package/dist/core/extensions/flag-value-types.d.ts +16 -4
  126. package/dist/core/extensions/flag-value-types.js +1 -1
  127. package/dist/core/extensions/index.d.ts +34 -34
  128. package/dist/core/extensions/item-field-types.d.ts +3 -3
  129. package/dist/core/extensions/item-fields.d.ts +6 -6
  130. package/dist/core/extensions/loader.d.ts +66 -66
  131. package/dist/core/extensions/manifest-parser.d.ts +1 -1
  132. package/dist/core/extensions/manifest-schema.d.ts +13 -13
  133. package/dist/core/extensions/module-graph-snapshot.d.ts +5 -5
  134. package/dist/core/extensions/preflight-ownership.d.ts +3 -3
  135. package/dist/core/extensions/read-output-contract.d.ts +2 -2
  136. package/dist/core/extensions/registration-contracts.d.ts +12 -12
  137. package/dist/core/extensions/registration-validation.d.ts +6 -6
  138. package/dist/core/extensions/registration-values.d.ts +19 -19
  139. package/dist/core/extensions/reserved-host-flags.d.ts +5 -5
  140. package/dist/core/extensions/runtime-registrations.d.ts +6 -6
  141. package/dist/core/extensions/service-ownership.d.ts +1 -1
  142. package/dist/core/extensions/version-compat.d.ts +9 -9
  143. package/dist/core/fs/atomic-create.d.ts +1 -1
  144. package/dist/core/fs/fs-utils.d.ts +12 -12
  145. package/dist/core/fs/host-environment-errors.d.ts +10 -10
  146. package/dist/core/fs/path-utils.d.ts +1 -1
  147. package/dist/core/governance/content-fields.d.ts +25 -25
  148. package/dist/core/governance/issue-codes.d.ts +16 -16
  149. package/dist/core/governance/metadata-coverage.d.ts +64 -64
  150. package/dist/core/history/digest.d.ts +5 -5
  151. package/dist/core/history/drift-cache.d.ts +2 -2
  152. package/dist/core/history/drift-scan.d.ts +18 -18
  153. package/dist/core/history/event-classification.d.ts +4 -4
  154. package/dist/core/history/event-index.d.ts +33 -33
  155. package/dist/core/history/history-compact-bulk.d.ts +12 -12
  156. package/dist/core/history/history-diff.d.ts +15 -15
  157. package/dist/core/history/history-rewrite.d.ts +43 -43
  158. package/dist/core/history/history-storage-stats.d.ts +20 -20
  159. package/dist/core/history/history-stream-policy.d.ts +12 -12
  160. package/dist/core/history/history.d.ts +45 -45
  161. package/dist/core/history/identity.d.ts +4 -4
  162. package/dist/core/history/operation-contract.d.ts +17 -17
  163. package/dist/core/history/projection.d.ts +16 -16
  164. package/dist/core/history/read.d.ts +4 -4
  165. package/dist/core/history/replay.d.ts +47 -47
  166. package/dist/core/history/tombstone.d.ts +1 -1
  167. package/dist/core/history/version-address.d.ts +2 -2
  168. package/dist/core/history/workspace-history.d.ts +72 -72
  169. package/dist/core/io/body-file.d.ts +2 -2
  170. package/dist/core/io/bulk-ids-input.d.ts +7 -7
  171. package/dist/core/item/actionability.d.ts +30 -30
  172. package/dist/core/item/dependency-reference.d.ts +2 -2
  173. package/dist/core/item/id.d.ts +9 -9
  174. package/dist/core/item/item-format-version.d.ts +17 -15
  175. package/dist/core/item/item-format-version.js +1 -1
  176. package/dist/core/item/item-format.d.ts +54 -54
  177. package/dist/core/item/item-record.d.ts +1 -1
  178. package/dist/core/item/item-type-definition.d.ts +11 -11
  179. package/dist/core/item/parent-reference-policy.d.ts +6 -6
  180. package/dist/core/item/parse.d.ts +37 -37
  181. package/dist/core/item/plan-lifecycle.d.ts +4 -4
  182. package/dist/core/item/priority.d.ts +3 -3
  183. package/dist/core/item/sprint-release-format.d.ts +4 -4
  184. package/dist/core/item/status-filter.d.ts +5 -5
  185. package/dist/core/item/status.d.ts +3 -3
  186. package/dist/core/item/toon-decode.d.ts +10 -10
  187. package/dist/core/item/type-registry.d.ts +35 -35
  188. package/dist/core/item/type-synonyms.d.ts +2 -2
  189. package/dist/core/lock/lock-gc.d.ts +28 -28
  190. package/dist/core/lock/lock.d.ts +53 -53
  191. package/dist/core/output/mutation-projection.d.ts +4 -4
  192. package/dist/core/output/output-control.d.ts +4 -4
  193. package/dist/core/output/output.d.ts +30 -30
  194. package/dist/core/output/query-summary.d.ts +5 -5
  195. package/dist/core/output/tabular.d.ts +3 -3
  196. package/dist/core/packages/manifest.d.ts +30 -30
  197. package/dist/core/packages/root.d.ts +4 -4
  198. package/dist/core/policy/workflow-policy-schema.d.ts +291 -291
  199. package/dist/core/policy/workflow-policy-store.d.ts +15 -15
  200. package/dist/core/policy/workflow-policy.d.ts +56 -56
  201. package/dist/core/profile/profile-describe.d.ts +22 -22
  202. package/dist/core/profile/profile-lint.d.ts +13 -13
  203. package/dist/core/profile/profile-plan.d.ts +45 -45
  204. package/dist/core/profile/profile-presets.d.ts +36 -36
  205. package/dist/core/reproducibility/context.d.ts +9 -9
  206. package/dist/core/schema/fields-file.d.ts +35 -35
  207. package/dist/core/schema/item-types-file.d.ts +29 -29
  208. package/dist/core/schema/runtime-field-filters.d.ts +3 -3
  209. package/dist/core/schema/runtime-field-values.d.ts +7 -7
  210. package/dist/core/schema/runtime-schema.d.ts +59 -59
  211. package/dist/core/schema/status-defs-file.d.ts +29 -29
  212. package/dist/core/schema/status-token.d.ts +1 -1
  213. package/dist/core/schema/type-inference.d.ts +10 -10
  214. package/dist/core/schema/type-presets.d.ts +5 -5
  215. package/dist/core/schema/type-workflows.d.ts +14 -14
  216. package/dist/core/search/background-refresh.d.ts +12 -12
  217. package/dist/core/search/bm25.d.ts +16 -16
  218. package/dist/core/search/cache.d.ts +34 -34
  219. package/dist/core/search/corpus.d.ts +17 -17
  220. package/dist/core/search/embedding-batches.d.ts +25 -25
  221. package/dist/core/search/eval-thresholds.d.ts +4 -4
  222. package/dist/core/search/eval.d.ts +40 -40
  223. package/dist/core/search/http-client.d.ts +24 -24
  224. package/dist/core/search/providers.d.ts +30 -30
  225. package/dist/core/search/relevance.d.ts +17 -17
  226. package/dist/core/search/semantic-defaults.d.ts +5 -5
  227. package/dist/core/search/staleness.d.ts +3 -3
  228. package/dist/core/search/vector-stores.d.ts +51 -51
  229. package/dist/core/search/vectorization-metadata.d.ts +9 -9
  230. package/dist/core/sentry/helpers.d.ts +27 -27
  231. package/dist/core/sentry/instrument.d.ts +51 -51
  232. package/dist/core/sentry/instrument.js +1 -1
  233. package/dist/core/sentry/sensitive-assignments.d.ts +9 -0
  234. package/dist/core/sentry/sensitive-assignments.js +2 -0
  235. package/dist/core/session/session-state.d.ts +37 -37
  236. package/dist/core/shared/agent-session-context.d.ts +14 -14
  237. package/dist/core/shared/author.d.ts +89 -89
  238. package/dist/core/shared/command-line.d.ts +3 -3
  239. package/dist/core/shared/command-types.d.ts +20 -20
  240. package/dist/core/shared/conflict-markers.d.ts +5 -5
  241. package/dist/core/shared/constants.d.ts +30 -30
  242. package/dist/core/shared/errors.d.ts +100 -100
  243. package/dist/core/shared/html-entity-decode.d.ts +2 -2
  244. package/dist/core/shared/item-metadata-contract.d.ts +2 -2
  245. package/dist/core/shared/lazy-module.d.ts +1 -1
  246. package/dist/core/shared/levenshtein.d.ts +1 -1
  247. package/dist/core/shared/memo.d.ts +1 -1
  248. package/dist/core/shared/numeric-parsers.d.ts +1 -1
  249. package/dist/core/shared/option-alias-visibility.d.ts +3 -3
  250. package/dist/core/shared/primitives.d.ts +13 -13
  251. package/dist/core/shared/secret-rules.d.ts +92 -92
  252. package/dist/core/shared/serial-queue.d.ts +6 -6
  253. package/dist/core/shared/serialization.d.ts +4 -4
  254. package/dist/core/shared/split-comma-list.d.ts +4 -4
  255. package/dist/core/shared/text-normalization.d.ts +3 -3
  256. package/dist/core/shared/time.d.ts +27 -27
  257. package/dist/core/store/item-format-migration.d.ts +7 -7
  258. package/dist/core/store/item-metadata-cache.d.ts +30 -30
  259. package/dist/core/store/item-metadata-query-index.d.ts +66 -66
  260. package/dist/core/store/item-metadata-read-work.d.ts +6 -6
  261. package/dist/core/store/item-store.d.ts +123 -123
  262. package/dist/core/store/item-store.js +1 -1
  263. package/dist/core/store/paths.d.ts +27 -27
  264. package/dist/core/store/settings-concurrency.d.ts +1 -1
  265. package/dist/core/store/settings-read-cache.d.ts +11 -11
  266. package/dist/core/store/settings-validator.d.ts +117 -117
  267. package/dist/core/store/settings.d.ts +84 -84
  268. package/dist/core/store/sqlite-runtime.d.ts +2 -2
  269. package/dist/core/store/tracker-preflight.d.ts +3 -3
  270. package/dist/core/telemetry/consent.d.ts +1 -1
  271. package/dist/core/telemetry/observability.d.ts +16 -16
  272. package/dist/core/telemetry/policy.d.ts +7 -7
  273. package/dist/core/telemetry/read-sampling.d.ts +1 -1
  274. package/dist/core/telemetry/runtime.d.ts +275 -275
  275. package/dist/core/test/background-runs.d.ts +123 -123
  276. package/dist/core/test/item-test-run-tracking.d.ts +10 -10
  277. package/dist/core/test/run-selectors.d.ts +12 -12
  278. package/dist/core/validate/estimate-defaults.d.ts +3 -3
  279. package/dist/core/validate/fix-planning.d.ts +36 -36
  280. package/dist/core/validate/linked-artifact-reference.d.ts +1 -1
  281. package/dist/core/validate/missing-by-type.d.ts +3 -3
  282. package/dist/core/validate/missing-link-owners.d.ts +17 -17
  283. package/dist/core/validate/stale-file-classification.d.ts +6 -6
  284. package/dist/mcp/http-server.d.ts +26 -26
  285. package/dist/mcp/legacy-adapter.d.ts +18 -18
  286. package/dist/mcp/runtime-capabilities.d.ts +18 -18
  287. package/dist/mcp/server.d.ts +73 -73
  288. package/dist/mcp/tool-definitions.d.ts +27 -27
  289. package/dist/sdk/actionability.d.ts +1 -1
  290. package/dist/sdk/agent/closed-domain-contracts.d.ts +11 -11
  291. package/dist/sdk/agent/command-recovery.d.ts +5 -5
  292. package/dist/sdk/agent/command-suggestions.d.ts +4 -4
  293. package/dist/sdk/agent/create-option-policy.d.ts +2 -2
  294. package/dist/sdk/agent/identity-config.d.ts +18 -18
  295. package/dist/sdk/agent/item-addressing.d.ts +6 -6
  296. package/dist/sdk/agent/refusal-closure-census.d.ts +26 -26
  297. package/dist/sdk/agent/refusal-closure.d.ts +22 -22
  298. package/dist/sdk/agent/refusal-corpus-contracts.d.ts +26 -26
  299. package/dist/sdk/agent/refusal-reachability.d.ts +65 -65
  300. package/dist/sdk/agent/subcommand-recovery.d.ts +20 -20
  301. package/dist/sdk/agent/task-transcript-contracts.d.ts +18 -18
  302. package/dist/sdk/agent/tracker-preflight-contracts.d.ts +21 -21
  303. package/dist/sdk/agent-capability-contracts.d.ts +41 -41
  304. package/dist/sdk/agent-session-context.d.ts +1 -1
  305. package/dist/sdk/annotations.d.ts +74 -74
  306. package/dist/sdk/author-attribution.d.ts +47 -47
  307. package/dist/sdk/authoring.d.ts +9 -9
  308. package/dist/sdk/cli-bootstrap.d.ts +65 -65
  309. package/dist/sdk/cli-contracts/agent-output-contracts.d.ts +56 -56
  310. package/dist/sdk/cli-contracts/bootstrap-command-scanner.d.ts +6 -6
  311. package/dist/sdk/cli-contracts/command-aliases.d.ts +19 -19
  312. package/dist/sdk/cli-contracts/command-exit-contracts.d.ts +66 -66
  313. package/dist/sdk/cli-contracts/commander-mutation-options.d.ts +7 -7
  314. package/dist/sdk/cli-contracts/commander-types.d.ts +18 -18
  315. package/dist/sdk/cli-contracts/completeness.d.ts +14 -14
  316. package/dist/sdk/cli-contracts/enum-contracts.d.ts +28 -28
  317. package/dist/sdk/cli-contracts/flag-contracts.d.ts +114 -112
  318. package/dist/sdk/cli-contracts/flag-contracts.js +1 -1
  319. package/dist/sdk/cli-contracts/flag-lexicon-contracts.d.ts +27 -27
  320. package/dist/sdk/cli-contracts/grammar-contracts.d.ts +61 -61
  321. package/dist/sdk/cli-contracts/registration-helpers.d.ts +56 -56
  322. package/dist/sdk/cli-contracts/runtime-contracts.d.ts +250 -250
  323. package/dist/sdk/cli-contracts/runtime-contracts.js +1 -1
  324. package/dist/sdk/cli-contracts/schemas/assurance-definition.d.ts +678 -678
  325. package/dist/sdk/cli-contracts/string-lists.d.ts +1 -1
  326. package/dist/sdk/cli-contracts/tool-option-contracts.d.ts +564 -564
  327. package/dist/sdk/cli-contracts/tool-parameter-tables.d.ts +13 -13
  328. package/dist/sdk/cli-contracts/tool-schema.d.ts +54 -54
  329. package/dist/sdk/cli-contracts/typed-action-inputs.d.ts +20 -20
  330. package/dist/sdk/cli-contracts.d.ts +15 -15
  331. package/dist/sdk/cli-program.d.ts +1 -1
  332. package/dist/sdk/cli-program.js +1 -1
  333. package/dist/sdk/command-line.d.ts +3 -3
  334. package/dist/sdk/comments.d.ts +24 -24
  335. package/dist/sdk/compile-cache.d.ts +4 -4
  336. package/dist/sdk/completion/bash.d.ts +1 -1
  337. package/dist/sdk/completion/fish.d.ts +1 -1
  338. package/dist/sdk/completion/shared.d.ts +74 -74
  339. package/dist/sdk/completion/zsh.d.ts +1 -1
  340. package/dist/sdk/completion.d.ts +3 -3
  341. package/dist/sdk/compose.d.ts +94 -94
  342. package/dist/sdk/config.d.ts +105 -105
  343. package/dist/sdk/context/recency.d.ts +1 -1
  344. package/dist/sdk/context/semantic-session-attribution.d.ts +23 -23
  345. package/dist/sdk/context/usage-egress.d.ts +1 -1
  346. package/dist/sdk/context/usage-ledger.d.ts +18 -18
  347. package/dist/sdk/context-intent-contracts.d.ts +37 -37
  348. package/dist/sdk/context-intent-runtime.d.ts +10 -10
  349. package/dist/sdk/context-packing.d.ts +44 -44
  350. package/dist/sdk/context-relevance.d.ts +110 -110
  351. package/dist/sdk/context-signal-store.d.ts +52 -52
  352. package/dist/sdk/context-usage.d.ts +78 -78
  353. package/dist/sdk/contracts.d.ts +2 -1
  354. package/dist/sdk/contracts.js +1 -1
  355. package/dist/sdk/core-governance.d.ts +5 -5
  356. package/dist/sdk/core.d.ts +8 -8
  357. package/dist/sdk/corpus-shape.d.ts +60 -60
  358. package/dist/sdk/define.d.ts +36 -36
  359. package/dist/sdk/dependencies.d.ts +70 -70
  360. package/dist/sdk/dependency-flag-validation.d.ts +17 -17
  361. package/dist/sdk/dependency-provenance.d.ts +22 -22
  362. package/dist/sdk/docs.d.ts +17 -17
  363. package/dist/sdk/duplicates.d.ts +14 -14
  364. package/dist/sdk/environment/agent-environment.d.ts +118 -118
  365. package/dist/sdk/environment/host-environment-errors.d.ts +1 -1
  366. package/dist/sdk/environment/project-runtime-compatibility.d.ts +42 -40
  367. package/dist/sdk/environment/project-runtime-compatibility.js +2 -2
  368. package/dist/sdk/environment/source-context.d.ts +4 -4
  369. package/dist/sdk/environment/tracker-preflight.d.ts +1 -1
  370. package/dist/sdk/error-code-catalog.d.ts +33 -33
  371. package/dist/sdk/error-runtime.d.ts +5 -5
  372. package/dist/sdk/errors.d.ts +17 -17
  373. package/dist/sdk/eval.d.ts +27 -27
  374. package/dist/sdk/extension/author-manifest.d.ts +9 -9
  375. package/dist/sdk/extension/bundled-catalog.d.ts +18 -18
  376. package/dist/sdk/extension/concurrency.d.ts +1 -1
  377. package/dist/sdk/extension/copy-scope.d.ts +1 -1
  378. package/dist/sdk/extension/custom-field-collisions.d.ts +1 -1
  379. package/dist/sdk/extension/describe.d.ts +21 -21
  380. package/dist/sdk/extension/doctor.d.ts +46 -46
  381. package/dist/sdk/extension/install-plan.d.ts +32 -32
  382. package/dist/sdk/extension/install-receipts.d.ts +4 -4
  383. package/dist/sdk/extension/install-runtime.d.ts +12 -12
  384. package/dist/sdk/extension/install-snapshot.d.ts +10 -10
  385. package/dist/sdk/extension/install-sources.d.ts +106 -106
  386. package/dist/sdk/extension/managed-state.d.ts +42 -42
  387. package/dist/sdk/extension/managed-update-status.d.ts +1 -1
  388. package/dist/sdk/extension/migrations.d.ts +48 -48
  389. package/dist/sdk/extension/output-ownership.d.ts +19 -19
  390. package/dist/sdk/extension/runtime-summary.d.ts +7 -7
  391. package/dist/sdk/extension/scaffold.d.ts +15 -15
  392. package/dist/sdk/extension/shared.d.ts +16 -16
  393. package/dist/sdk/extension/source-resolution.d.ts +16 -16
  394. package/dist/sdk/extension/static-inventory.d.ts +23 -23
  395. package/dist/sdk/extension/update-check.d.ts +9 -9
  396. package/dist/sdk/extension-command-context.d.ts +1 -1
  397. package/dist/sdk/extension-contracts.d.ts +10 -10
  398. package/dist/sdk/extension.d.ts +221 -221
  399. package/dist/sdk/files.d.ts +101 -101
  400. package/dist/sdk/flag-invocation-contracts.d.ts +25 -25
  401. package/dist/sdk/flag-invocation-contracts.js +1 -1
  402. package/dist/sdk/generated/generated-error-code-catalog-part-1.d.ts +1 -1
  403. package/dist/sdk/generated/generated-error-code-catalog-part-2.d.ts +1 -1
  404. package/dist/sdk/generated/generated-error-code-catalog-part-2.js +1 -1
  405. package/dist/sdk/generated-error-code-catalog.d.ts +1 -1
  406. package/dist/sdk/governance/artifact-ledgers.d.ts +19 -19
  407. package/dist/sdk/governance/assurance-action-contracts.d.ts +1 -1
  408. package/dist/sdk/governance/assurance-action.d.ts +46 -46
  409. package/dist/sdk/governance/assurance-mutation-error.d.ts +20 -20
  410. package/dist/sdk/governance/assurance-presets.d.ts +25 -25
  411. package/dist/sdk/governance/assurance-runtime.d.ts +10 -10
  412. package/dist/sdk/governance/assurance.d.ts +204 -204
  413. package/dist/sdk/governance/boundary-fixtures.d.ts +32 -32
  414. package/dist/sdk/governance/closure-timestamps.d.ts +10 -10
  415. package/dist/sdk/governance/coverage-assurance.d.ts +7 -7
  416. package/dist/sdk/governance/defect-recurrence-coverage.d.ts +40 -40
  417. package/dist/sdk/governance/defect-recurrence-graph.d.ts +11 -11
  418. package/dist/sdk/governance/defect-recurrence-signals.d.ts +1 -1
  419. package/dist/sdk/governance/defect-recurrence.d.ts +97 -97
  420. package/dist/sdk/governance/extension-host-version.d.ts +9 -9
  421. package/dist/sdk/governance/gc.d.ts +26 -26
  422. package/dist/sdk/governance/health-merge-evidence.d.ts +8 -8
  423. package/dist/sdk/governance/health.d.ts +172 -172
  424. package/dist/sdk/governance/health.js +1 -1
  425. package/dist/sdk/governance/hierarchy-validation.d.ts +16 -16
  426. package/dist/sdk/governance/linked-file-report.d.ts +15 -15
  427. package/dist/sdk/governance/merge-receipt-history.d.ts +24 -24
  428. package/dist/sdk/governance/provenance-health.d.ts +35 -35
  429. package/dist/sdk/governance/reindex.d.ts +102 -102
  430. package/dist/sdk/governance/reliability.d.ts +29 -29
  431. package/dist/sdk/governance/stale-work.d.ts +13 -13
  432. package/dist/sdk/governance/status-role-diagnostics.d.ts +8 -8
  433. package/dist/sdk/governance/storage-integrity.d.ts +28 -28
  434. package/dist/sdk/governance/tracked-runtime-cache.d.ts +7 -7
  435. package/dist/sdk/governance/upgrade.d.ts +77 -77
  436. package/dist/sdk/governance/validate-history-drift.d.ts +3 -3
  437. package/dist/sdk/governance/validate-item-reader.d.ts +9 -9
  438. package/dist/sdk/governance/validate-normalization.d.ts +4 -4
  439. package/dist/sdk/governance/validate.d.ts +176 -176
  440. package/dist/sdk/governance/validate.js +1 -1
  441. package/dist/sdk/governance/workflow-completeness.d.ts +15 -15
  442. package/dist/sdk/governance/workflow-policy.d.ts +18 -18
  443. package/dist/sdk/governance/workspace-position.d.ts +40 -40
  444. package/dist/sdk/governance.d.ts +2 -2
  445. package/dist/sdk/graph/adapter.d.ts +45 -45
  446. package/dist/sdk/graph/analytics.d.ts +36 -36
  447. package/dist/sdk/graph/assembly.d.ts +51 -51
  448. package/dist/sdk/graph/cache.d.ts +19 -19
  449. package/dist/sdk/graph/cardinality-integrity.d.ts +4 -4
  450. package/dist/sdk/graph/centrality.d.ts +20 -20
  451. package/dist/sdk/graph/conformance.d.ts +21 -21
  452. package/dist/sdk/graph/deadline-scheduling.d.ts +30 -30
  453. package/dist/sdk/graph/durable-cache.d.ts +22 -22
  454. package/dist/sdk/graph/governance-contracts.d.ts +1 -1
  455. package/dist/sdk/graph/governance.d.ts +92 -92
  456. package/dist/sdk/graph/hierarchy-integrity.d.ts +32 -32
  457. package/dist/sdk/graph/index.d.ts +15 -15
  458. package/dist/sdk/graph/lifecycle-coverage.d.ts +12 -12
  459. package/dist/sdk/graph/mutation-advisory.d.ts +15 -15
  460. package/dist/sdk/graph/query-contracts.d.ts +6 -6
  461. package/dist/sdk/graph/remediation.d.ts +15 -15
  462. package/dist/sdk/graph/run.d.ts +203 -203
  463. package/dist/sdk/graph/scheduling.d.ts +21 -21
  464. package/dist/sdk/graph/traversal.d.ts +18 -18
  465. package/dist/sdk/graph/workspace-relationship-kind-registry.d.ts +1 -1
  466. package/dist/sdk/guide-topics.d.ts +19 -19
  467. package/dist/sdk/guide.d.ts +43 -43
  468. package/dist/sdk/history/attestation-command.d.ts +8 -8
  469. package/dist/sdk/history/attestation-contract.d.ts +43 -43
  470. package/dist/sdk/history/attestation-scan.d.ts +4 -4
  471. package/dist/sdk/history/attestation.d.ts +4 -4
  472. package/dist/sdk/history/maintenance.d.ts +25 -25
  473. package/dist/sdk/history/salvage.d.ts +19 -19
  474. package/dist/sdk/history/subject.d.ts +8 -8
  475. package/dist/sdk/history-analytics.d.ts +64 -64
  476. package/dist/sdk/history-compact.d.ts +67 -67
  477. package/dist/sdk/history-mcp.d.ts +7 -7
  478. package/dist/sdk/history-provenance.d.ts +40 -40
  479. package/dist/sdk/history-read.d.ts +24 -24
  480. package/dist/sdk/history-redact.d.ts +68 -68
  481. package/dist/sdk/history-repair.d.ts +92 -92
  482. package/dist/sdk/improvement-ledger-validation.d.ts +1 -1
  483. package/dist/sdk/improvement-ledger.d.ts +62 -62
  484. package/dist/sdk/index.d.ts +69 -69
  485. package/dist/sdk/init-agent-guidance.d.ts +68 -68
  486. package/dist/sdk/init.d.ts +117 -117
  487. package/dist/sdk/invocation-author.d.ts +1 -1
  488. package/dist/sdk/item-children.d.ts +15 -15
  489. package/dist/sdk/item-metadata-index.d.ts +2 -2
  490. package/dist/sdk/item-schedule.d.ts +9 -9
  491. package/dist/sdk/item-transaction.d.ts +73 -73
  492. package/dist/sdk/learnings.d.ts +23 -23
  493. package/dist/sdk/lifecycle/append.d.ts +8 -8
  494. package/dist/sdk/lifecycle/claim.d.ts +38 -38
  495. package/dist/sdk/lifecycle/close-many.d.ts +71 -71
  496. package/dist/sdk/lifecycle/close.d.ts +18 -18
  497. package/dist/sdk/lifecycle/copy.d.ts +10 -10
  498. package/dist/sdk/lifecycle/core-field-recovery.d.ts +1 -1
  499. package/dist/sdk/lifecycle/create.d.ts +88 -88
  500. package/dist/sdk/lifecycle/delete.d.ts +15 -15
  501. package/dist/sdk/lifecycle/event-validation-messages.d.ts +1 -1
  502. package/dist/sdk/lifecycle/focus.d.ts +6 -6
  503. package/dist/sdk/lifecycle/hierarchy-mutation-lock.d.ts +6 -6
  504. package/dist/sdk/lifecycle/legacy-none-tokens.d.ts +35 -35
  505. package/dist/sdk/lifecycle/lifecycle-transitions.d.ts +3 -3
  506. package/dist/sdk/lifecycle/mcp-actions.d.ts +10 -10
  507. package/dist/sdk/lifecycle/metadata-normalizers.d.ts +4 -4
  508. package/dist/sdk/lifecycle/mutation-command-options.d.ts +58 -58
  509. package/dist/sdk/lifecycle/mutation-facet-contracts.d.ts +1 -1
  510. package/dist/sdk/lifecycle/plan-mutation-receipt.d.ts +24 -24
  511. package/dist/sdk/lifecycle/plan.d.ts +127 -127
  512. package/dist/sdk/lifecycle/recurrence-parsers.d.ts +5 -5
  513. package/dist/sdk/lifecycle/reopen.d.ts +15 -15
  514. package/dist/sdk/lifecycle/repeatable-metadata-parsers.d.ts +7 -7
  515. package/dist/sdk/lifecycle/restore.d.ts +34 -34
  516. package/dist/sdk/lifecycle/restore.js +1 -1
  517. package/dist/sdk/lifecycle/shared-unset-fields.d.ts +20 -20
  518. package/dist/sdk/lifecycle/task-composition.d.ts +7 -7
  519. package/dist/sdk/lifecycle/update-many.d.ts +61 -61
  520. package/dist/sdk/lifecycle/update.d.ts +120 -120
  521. package/dist/sdk/lifecycle-completion.d.ts +14 -14
  522. package/dist/sdk/lifecycle-policy.d.ts +31 -31
  523. package/dist/sdk/linked-artifacts.d.ts +58 -58
  524. package/dist/sdk/mcp/apps.d.ts +28 -28
  525. package/dist/sdk/mcp/authorization.d.ts +66 -66
  526. package/dist/sdk/mcp/discovery.d.ts +67 -67
  527. package/dist/sdk/mcp/interactions.d.ts +49 -49
  528. package/dist/sdk/mcp/protocol.d.ts +63 -63
  529. package/dist/sdk/mcp/skills.d.ts +62 -62
  530. package/dist/sdk/mcp/subscriptions.d.ts +26 -26
  531. package/dist/sdk/mcp/tasks.d.ts +51 -51
  532. package/dist/sdk/mcp/transport.d.ts +17 -17
  533. package/dist/sdk/merge/abandoned-receipts.d.ts +8 -8
  534. package/dist/sdk/merge/driver.d.ts +38 -38
  535. package/dist/sdk/merge/index.d.ts +5 -5
  536. package/dist/sdk/merge/install.d.ts +48 -48
  537. package/dist/sdk/merge/receipt-file-boundary.d.ts +6 -6
  538. package/dist/sdk/merge/receipt-operation.d.ts +6 -6
  539. package/dist/sdk/merge/receipt-schema.d.ts +11 -11
  540. package/dist/sdk/merge/receipts.d.ts +111 -111
  541. package/dist/sdk/merge/reconcile.d.ts +20 -20
  542. package/dist/sdk/merge/three-way.d.ts +50 -50
  543. package/dist/sdk/merge/three-way.js +2 -2
  544. package/dist/sdk/merge/worktree-config.d.ts +3 -3
  545. package/dist/sdk/mutation-events.d.ts +62 -62
  546. package/dist/sdk/mutation-guard.d.ts +134 -134
  547. package/dist/sdk/notes.d.ts +28 -28
  548. package/dist/sdk/output/table-rows.d.ts +6 -6
  549. package/dist/sdk/output-contracts.d.ts +26 -26
  550. package/dist/sdk/output-projection.d.ts +108 -108
  551. package/dist/sdk/output-token-accounting.d.ts +18 -18
  552. package/dist/sdk/output.d.ts +18 -18
  553. package/dist/sdk/ownership-source.d.ts +1 -1
  554. package/dist/sdk/package-import-adapters.d.ts +51 -51
  555. package/dist/sdk/package-migrations.d.ts +3 -3
  556. package/dist/sdk/package-runtime-options.d.ts +3 -3
  557. package/dist/sdk/pagination.d.ts +28 -28
  558. package/dist/sdk/pagination.js +1 -1
  559. package/dist/sdk/profile.d.ts +72 -72
  560. package/dist/sdk/provenance.d.ts +37 -37
  561. package/dist/sdk/public-surface.json +1 -1
  562. package/dist/sdk/query/activity.d.ts +84 -84
  563. package/dist/sdk/query/aggregate.d.ts +109 -109
  564. package/dist/sdk/query/calendar.d.ts +95 -95
  565. package/dist/sdk/query/complete-list.d.ts +35 -35
  566. package/dist/sdk/query/context.d.ts +300 -300
  567. package/dist/sdk/query/duplicate-candidates.d.ts +3 -3
  568. package/dist/sdk/query/get.d.ts +54 -54
  569. package/dist/sdk/query/history.d.ts +38 -38
  570. package/dist/sdk/query/item-filter-options.d.ts +41 -41
  571. package/dist/sdk/query/light-metadata.d.ts +1 -1
  572. package/dist/sdk/query/list-filter-shared.d.ts +4 -4
  573. package/dist/sdk/query/list.d.ts +167 -167
  574. package/dist/sdk/query/list.js +1 -1
  575. package/dist/sdk/query/multi-value-filters.d.ts +6 -6
  576. package/dist/sdk/query/next-ready-budget.d.ts +8 -8
  577. package/dist/sdk/query/next.d.ts +94 -94
  578. package/dist/sdk/query/parsers.d.ts +3 -3
  579. package/dist/sdk/query/projection-contracts.d.ts +18 -18
  580. package/dist/sdk/query/search/corpus.d.ts +15 -15
  581. package/dist/sdk/query/search/filters.d.ts +15 -15
  582. package/dist/sdk/query/search/input.d.ts +8 -8
  583. package/dist/sdk/query/search/lexical.d.ts +10 -10
  584. package/dist/sdk/query/search/response.d.ts +22 -22
  585. package/dist/sdk/query/search/semantic.d.ts +133 -133
  586. package/dist/sdk/query/search/types.d.ts +65 -65
  587. package/dist/sdk/query/search-contracts.d.ts +53 -53
  588. package/dist/sdk/query/search-pagination.d.ts +21 -21
  589. package/dist/sdk/query/search-rendering.d.ts +30 -30
  590. package/dist/sdk/query/search.d.ts +60 -60
  591. package/dist/sdk/query/workspace-contracts.d.ts +2 -2
  592. package/dist/sdk/query.d.ts +6 -6
  593. package/dist/sdk/read-output/continuation.d.ts +11 -11
  594. package/dist/sdk/read-output/extension.d.ts +3 -3
  595. package/dist/sdk/read-output/options.d.ts +7 -7
  596. package/dist/sdk/read-output/provenance.d.ts +6 -6
  597. package/dist/sdk/read-output-budget.d.ts +11 -11
  598. package/dist/sdk/read-output-contracts.d.ts +112 -112
  599. package/dist/sdk/read-output-contracts.js +1 -1
  600. package/dist/sdk/read-output-rows.d.ts +15 -15
  601. package/dist/sdk/read-output-session.d.ts +29 -29
  602. package/dist/sdk/relationship-analytics.d.ts +46 -46
  603. package/dist/sdk/relationship-context.d.ts +48 -48
  604. package/dist/sdk/relationship-history.d.ts +59 -59
  605. package/dist/sdk/relationship-kinds/contract.d.ts +18 -18
  606. package/dist/sdk/relationship-migration.d.ts +14 -14
  607. package/dist/sdk/relationships.d.ts +46 -46
  608. package/dist/sdk/reproducibility/process.d.ts +9 -9
  609. package/dist/sdk/runtime/actions.d.ts +1 -1
  610. package/dist/sdk/runtime/context.d.ts +15 -15
  611. package/dist/sdk/runtime/schema-preview.d.ts +1 -1
  612. package/dist/sdk/runtime/schema.d.ts +1 -1
  613. package/dist/sdk/runtime-action-aliases.d.ts +3 -3
  614. package/dist/sdk/runtime-extended-actions.d.ts +9 -9
  615. package/dist/sdk/runtime-input.d.ts +29 -29
  616. package/dist/sdk/runtime-primitives.d.ts +53 -53
  617. package/dist/sdk/runtime-primitives.js +1 -1
  618. package/dist/sdk/runtime-public-contracts.d.ts +46 -46
  619. package/dist/sdk/runtime-stats-options.d.ts +1 -1
  620. package/dist/sdk/runtime.d.ts +374 -374
  621. package/dist/sdk/scheduling-shortcuts.d.ts +19 -19
  622. package/dist/sdk/schema-migration.d.ts +79 -79
  623. package/dist/sdk/schema.d.ts +224 -224
  624. package/dist/sdk/search-refresh-worker.d.ts +1 -1
  625. package/dist/sdk/similarity-scoring.d.ts +10 -10
  626. package/dist/sdk/similarity.d.ts +73 -73
  627. package/dist/sdk/start-task-status.d.ts +1 -1
  628. package/dist/sdk/stats.d.ts +72 -72
  629. package/dist/sdk/structured-mutations.d.ts +13 -13
  630. package/dist/sdk/telemetry-flush.d.ts +1 -1
  631. package/dist/sdk/telemetry.d.ts +32 -32
  632. package/dist/sdk/templates.d.ts +35 -35
  633. package/dist/sdk/test/batch.d.ts +50 -50
  634. package/dist/sdk/test/command-args.d.ts +2 -2
  635. package/dist/sdk/test/entry.d.ts +4 -4
  636. package/dist/sdk/test/execution-receipts.d.ts +5 -5
  637. package/dist/sdk/test/execution.d.ts +247 -247
  638. package/dist/sdk/test/json-path.d.ts +4 -4
  639. package/dist/sdk/test/linked-command-detection.d.ts +36 -36
  640. package/dist/sdk/test/measurements.d.ts +10 -10
  641. package/dist/sdk/test/parsers.d.ts +18 -18
  642. package/dist/sdk/test/prerequisites.d.ts +3 -3
  643. package/dist/sdk/test/runs.d.ts +43 -43
  644. package/dist/sdk/test/trust.d.ts +15 -15
  645. package/dist/sdk/test/update.d.ts +23 -23
  646. package/dist/sdk/test/workspace-snapshot.d.ts +1 -1
  647. package/dist/sdk/testing.d.ts +248 -248
  648. package/dist/sdk/traceability/runtime-files-lookup.d.ts +1 -1
  649. package/dist/sdk/traceability/source-traceability.d.ts +50 -50
  650. package/dist/sdk/workspace-contracts-cache.d.ts +2 -2
  651. package/dist/sdk/workspace-contracts.d.ts +20 -20
  652. package/dist/sdk/workspace-memory.d.ts +42 -42
  653. package/dist/sdk/workspace-recipe.d.ts +9 -9
  654. package/dist/sdk/workspace-snapshot.d.ts +60 -60
  655. package/dist/sdk/workspace-transaction-gc.d.ts +17 -17
  656. package/dist/sdk/workspace-transaction.d.ts +26 -26
  657. package/dist/sdk/workspace.d.ts +9 -9
  658. package/dist/types.d.ts +540 -540
  659. package/docs/COMMANDS.md +11 -2
  660. package/docs/EXTENSION_AUTHOR_CONTRACTS.md +18 -4
  661. package/docs/LINKED_TEST_EDITS.md +15 -0
  662. package/docs/RELEASING.md +2 -0
  663. package/docs/TESTING.md +21 -1
  664. package/docs/generated/REFUSAL_CLOSURE_CENSUS.md +4 -3
  665. package/marketplace.json +1 -1
  666. package/package.json +3 -1
  667. package/packages/pm-beads/package.json +1 -1
  668. package/packages/pm-calendar/package.json +1 -1
  669. package/packages/pm-command-kit/package.json +1 -1
  670. package/packages/pm-digital-twin/package.json +1 -1
  671. package/packages/pm-governance-audit/package.json +1 -1
  672. package/packages/pm-guide-shell/package.json +1 -1
  673. package/packages/pm-kanban/package.json +1 -1
  674. package/packages/pm-lifecycle-hooks/package.json +1 -1
  675. package/packages/pm-linked-test-adapters/package.json +1 -1
  676. package/packages/pm-search-advanced/package.json +1 -1
  677. package/packages/pm-templates/package.json +1 -1
  678. package/packages/pm-todos/package.json +1 -1
  679. package/packages/pm-vcs/package.json +1 -1
  680. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  681. package/plugins/pm-claude/package.json +1 -1
  682. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  683. package/plugins/pm-codex/package.json +1 -1
  684. package/plugins/pm-codex/plugin.json +1 -1
  685. package/runtime-dependencies.json +1 -1
  686. package/scripts/finalize-build.mjs +9 -3
  687. package/dist/cli-bundle/chunks/chunk-66BZVFIK.js +0 -6
  688. package/dist/cli-bundle/chunks/chunk-IDEHMKYZ.js +0 -235
  689. package/dist/cli-bundle/chunks/chunk-UNQZGMJL.js +0 -20
  690. package/dist/cli-bundle/chunks/chunk-YXRAYL7H.js +0 -2
  691. package/dist/cli-bundle/focused-chunks/chunk-JDVZF75H.js +0 -165
  692. package/dist/cli-bundle/focused-chunks/chunk-WIXZF5SS.js +0 -26
@@ -3,114 +3,114 @@
3
3
  *
4
4
  * Implements extension runtime contracts and governance for Extension Types.
5
5
  */
6
- import type { ExtensionPolicyOverrideSettings, ExtensionPolicySettings, ItemDocument, ItemMetadata, ItemStatus, PmSettings } from "../../types/index.js";
6
+ import type { ExtensionPolicyOverrideSettings,ExtensionPolicySettings,ItemDocument,ItemMetadata,ItemStatus,PmSettings } from "../../types/index.js";
7
7
  import type { GlobalOptions } from "../shared/command-types.js";
8
- import type { ProjectProfileDefinition, ProjectProfileRegistrationInput } from "../profile/profile-presets.js";
9
- import type { RelationshipEdge, RelationshipGraph, RelationshipKindDefinition, RelationshipQueryOptions } from "../../sdk/relationships.js";
8
+ import type { ProjectProfileDefinition,ProjectProfileRegistrationInput } from "../profile/profile-presets.js";
9
+ import type { RelationshipEdge,RelationshipGraph,RelationshipKindDefinition,RelationshipQueryOptions } from "../../sdk/relationships.js";
10
10
  import type { RelationshipImpactAnalysis } from "../../sdk/relationship-analytics.js";
11
11
  import type { PmClient } from "../../sdk/runtime.js";
12
12
  import type { GetItemAtResult } from "../../sdk/history-read.js";
13
- import type { RelationshipEvent, RelationshipEventInput, RelationshipEventStore } from "../../sdk/relationship-history.js";
14
- import type { CommitWorkspaceTransactionOptions, WorkspaceTransactionCommitResult } from "../../sdk/workspace-transaction.js";
13
+ import type { RelationshipEvent,RelationshipEventInput,RelationshipEventStore } from "../../sdk/relationship-history.js";
14
+ import type { CommitWorkspaceTransactionOptions,WorkspaceTransactionCommitResult } from "../../sdk/workspace-transaction.js";
15
15
  import type { KnownItemFieldType } from "./item-field-types.js";
16
16
  import type { ExtensionCommandCapabilityFamily } from "./command-metadata-contract.js";
17
17
  export type { ExtensionCommandCapabilityFamily } from "./command-metadata-contract.js";
18
18
  /** Public contract for known extension capabilities, shared by SDK and presentation-layer consumers. */
19
- export declare const KNOWN_EXTENSION_CAPABILITIES: readonly ["commands", "renderers", "hooks", "schema", "importers", "search", "parser", "preflight", "services"];
19
+ export declare const KNOWN_EXTENSION_CAPABILITIES:readonly ["commands","renderers","hooks","schema","importers","search","parser","preflight","services"];
20
20
  /** Restricts extension capability values accepted by command, SDK, and storage contracts. */
21
21
  export type ExtensionCapability = (typeof KNOWN_EXTENSION_CAPABILITIES)[number];
22
22
  /** Public contract for extension capability contract version, shared by SDK and presentation-layer consumers. */
23
23
  export declare const EXTENSION_CAPABILITY_CONTRACT_VERSION = 2;
24
24
  /** Public contract for extension capability legacy aliases, shared by SDK and presentation-layer consumers. */
25
- export declare const EXTENSION_CAPABILITY_LEGACY_ALIASES: Readonly<Record<string, ExtensionCapability>>;
25
+ export declare const EXTENSION_CAPABILITY_LEGACY_ALIASES:Readonly<Record<string,ExtensionCapability>>;
26
26
  /** Public contract for extension capability contract, shared by SDK and presentation-layer consumers. */
27
- export declare const EXTENSION_CAPABILITY_CONTRACT: Readonly<{
28
- version: 2;
29
- capabilities: ("search" | "schema" | "commands" | "importers" | "renderers" | "hooks" | "parser" | "preflight" | "services")[];
30
- legacy_aliases: {
31
- [x: string]: "search" | "schema" | "commands" | "importers" | "renderers" | "hooks" | "parser" | "preflight" | "services";
27
+ export declare const EXTENSION_CAPABILITY_CONTRACT:Readonly<{
28
+ version:2;
29
+ capabilities:("search" | "schema" | "commands" | "importers" | "renderers" | "hooks" | "parser" | "preflight" | "services")[];
30
+ legacy_aliases:{
31
+ [x:string]:"search" | "schema" | "commands" | "importers" | "renderers" | "hooks" | "parser" | "preflight" | "services";
32
32
  };
33
33
  }>;
34
34
  /** Public contract for known extension policy modes, shared by SDK and presentation-layer consumers. */
35
- export declare const KNOWN_EXTENSION_POLICY_MODES: readonly ["off", "warn", "enforce"];
35
+ export declare const KNOWN_EXTENSION_POLICY_MODES:readonly ["off","warn","enforce"];
36
36
  /** Restricts extension policy mode values accepted by command, SDK, and storage contracts. */
37
37
  export type ExtensionPolicyMode = (typeof KNOWN_EXTENSION_POLICY_MODES)[number];
38
38
  /** Public contract for known extension trust modes, shared by SDK and presentation-layer consumers. */
39
- export declare const KNOWN_EXTENSION_TRUST_MODES: readonly ["off", "warn", "enforce"];
39
+ export declare const KNOWN_EXTENSION_TRUST_MODES:readonly ["off","warn","enforce"];
40
40
  /** Restricts extension trust mode values accepted by command, SDK, and storage contracts. */
41
41
  export type ExtensionTrustMode = (typeof KNOWN_EXTENSION_TRUST_MODES)[number];
42
42
  /** Public contract for known extension sandbox profiles, shared by SDK and presentation-layer consumers. */
43
- export declare const KNOWN_EXTENSION_SANDBOX_PROFILES: readonly ["none", "restricted", "strict"];
43
+ export declare const KNOWN_EXTENSION_SANDBOX_PROFILES:readonly ["none","restricted","strict"];
44
44
  /** Restricts extension sandbox profile values accepted by command, SDK, and storage contracts. */
45
45
  export type ExtensionSandboxProfile = (typeof KNOWN_EXTENSION_SANDBOX_PROFILES)[number];
46
46
  /** Public contract for known pm max version exceeded modes, shared by SDK and presentation-layer consumers. */
47
- export declare const KNOWN_PM_MAX_VERSION_EXCEEDED_MODES: readonly ["block", "warn"];
47
+ export declare const KNOWN_PM_MAX_VERSION_EXCEEDED_MODES:readonly ["block","warn"];
48
48
  /** How a `pm_max_version` violation is handled for an extension layer. */
49
49
  export type PmMaxVersionExceededMode = (typeof KNOWN_PM_MAX_VERSION_EXCEEDED_MODES)[number];
50
50
  /** Optional per-layer override map for `extensions.policy.pm_max_version_exceeded_mode`. */
51
51
  export interface PmMaxVersionExceededModeByLayer {
52
52
  /** Value that configures or reports global for this contract. */
53
- global?: PmMaxVersionExceededMode;
53
+ global?:PmMaxVersionExceededMode;
54
54
  /** Value that configures or reports project for this contract. */
55
- project?: PmMaxVersionExceededMode;
55
+ project?:PmMaxVersionExceededMode;
56
56
  }
57
57
  /** Settings value for `extensions.policy.pm_max_version_exceeded_mode`: either a single mode applied to both layers, or a per-layer override map. Unset (and any unset layer key) defaults to `"block"`. */
58
58
  export type PmMaxVersionExceededModeSetting = PmMaxVersionExceededMode | PmMaxVersionExceededModeByLayer;
59
59
  /** Public contract for known extension policy surfaces, shared by SDK and presentation-layer consumers. */
60
- export declare const KNOWN_EXTENSION_POLICY_SURFACES: readonly ["commands.override", "commands.handler", "hooks.beforecommand", "hooks.beforemutation", "hooks.aftercommand", "hooks.onwrite", "hooks.onread", "hooks.onindex", "schema.flags", "schema.itemfields", "schema.itemtypes", "schema.relationshipkinds", "schema.migrations", "schema.profiles", "parser.override", "preflight.override", "services.override", "renderers.override", "importers.importer", "importers.exporter", "search.provider", "search.vectorstore", "services.assuranceprovider"];
60
+ export declare const KNOWN_EXTENSION_POLICY_SURFACES:readonly ["commands.override","commands.handler","hooks.beforecommand","hooks.beforemutation","hooks.aftercommand","hooks.onwrite","hooks.onread","hooks.onindex","schema.flags","schema.itemfields","schema.itemtypes","schema.relationshipkinds","schema.migrations","schema.profiles","parser.override","preflight.override","services.override","renderers.override","importers.importer","importers.exporter","search.provider","search.vectorstore","services.assuranceprovider"];
61
61
  /** Restricts extension policy surface values accepted by command, SDK, and storage contracts. */
62
62
  export type ExtensionPolicySurface = (typeof KNOWN_EXTENSION_POLICY_SURFACES)[number];
63
63
  /** Public contract for known extension service names, shared by SDK and presentation-layer consumers. */
64
- export declare const KNOWN_EXTENSION_SERVICE_NAMES: readonly ["output_format", "error_format", "help_format", "lock_acquire", "lock_release", "history_append", "item_store_write", "item_store_delete", "context_relevance", "command_result"];
64
+ export declare const KNOWN_EXTENSION_SERVICE_NAMES:readonly ["output_format","error_format","help_format","lock_acquire","lock_release","history_append","item_store_write","item_store_delete","context_relevance","command_result"];
65
65
  /** Restricts extension service name values accepted by command, SDK, and storage contracts. */
66
66
  export type ExtensionServiceName = (typeof KNOWN_EXTENSION_SERVICE_NAMES)[number];
67
67
  /** Documents the extension provenance metadata payload exchanged by command, SDK, and package integrations. */
68
68
  export interface ExtensionProvenanceMetadata {
69
69
  /** Value that configures or reports source for this contract. */
70
- source?: string;
70
+ source?:string;
71
71
  /** Value that configures or reports signature for this contract. */
72
- signature?: string;
72
+ signature?:string;
73
73
  /** Value that configures or reports attestation for this contract. */
74
- attestation?: string;
74
+ attestation?:string;
75
75
  /** Value that configures or reports verified for this contract. */
76
- verified?: boolean;
76
+ verified?:boolean;
77
77
  }
78
78
  /** Documents the extension runtime permission declaration payload exchanged by command, SDK, and package integrations. */
79
79
  export interface ExtensionRuntimePermissionDeclaration {
80
80
  /** Value that configures or reports fs read for this contract. */
81
- fs_read?: boolean;
81
+ fs_read?:boolean;
82
82
  /** Value that configures or reports fs write for this contract. */
83
- fs_write?: boolean;
83
+ fs_write?:boolean;
84
84
  /** Value that configures or reports network for this contract. */
85
- network?: boolean;
85
+ network?:boolean;
86
86
  /** Value that configures or reports env read for this contract. */
87
- env_read?: boolean;
87
+ env_read?:boolean;
88
88
  /** Value that configures or reports env write for this contract. */
89
- env_write?: boolean;
89
+ env_write?:boolean;
90
90
  /** Value that configures or reports process spawn for this contract. */
91
- process_spawn?: boolean;
91
+ process_spawn?:boolean;
92
92
  }
93
93
  /** Documents the extension activation metadata payload exchanged by command, SDK, and package integrations. */
94
94
  export interface ExtensionActivationMetadata {
95
95
  /** Value that configures or reports commands for this contract. */
96
- commands?: string[];
96
+ commands?:string[];
97
97
  }
98
98
  /** Restricts extension policy override values accepted by command, SDK, and storage contracts. */
99
99
  export type ExtensionPolicyOverride = ExtensionPolicyOverrideSettings;
100
100
  /** Extension governance policy as read from / serialized to settings. Extends the stored settings shape with `pm_max_version_exceeded_mode` (pm-k5e8), which relaxes the default-BLOCK on `pm_max_version` violations to warn-only — globally or per extension layer. */
101
101
  export type ExtensionGovernancePolicy = ExtensionPolicySettings & {
102
- pm_max_version_exceeded_mode?: PmMaxVersionExceededModeSetting;
102
+ pm_max_version_exceeded_mode?:PmMaxVersionExceededModeSetting;
103
103
  };
104
104
  /** Documents the extension manifest engines payload exchanged by command, SDK, and package integrations. */
105
105
  export interface ExtensionManifestEngines {
106
106
  /** Value that configures or reports pm for this contract. */
107
- pm?: string;
107
+ pm?:string;
108
108
  /** Value that configures or reports node for this contract. */
109
- node?: string;
110
- [engine: string]: string | undefined;
109
+ node?:string;
110
+ [engine:string]:string | undefined;
111
111
  }
112
112
  /** Implements create default extension governance policy for the public runtime surface of this module. */
113
- export declare function createDefaultExtensionGovernancePolicy(): ExtensionGovernancePolicy;
113
+ export declare function createDefaultExtensionGovernancePolicy():ExtensionGovernancePolicy;
114
114
  /** Restricts extension layer values accepted by command, SDK, and storage contracts. */
115
115
  export type ExtensionLayer = "global" | "project";
116
116
  /** Restricts extension status values accepted by command, SDK, and storage contracts. */
@@ -118,509 +118,509 @@ export type ExtensionStatus = "ok" | "warn";
118
118
  /** Static, serializable inventory of extension registrations available without importing its module. */
119
119
  export interface ExtensionContributionInventory {
120
120
  /** Inventory schema version for forward-compatible persisted snapshots. */
121
- schema_version: 1;
121
+ schema_version:1;
122
122
  /** Declared command paths. */
123
- commands?: string[];
123
+ commands?:string[];
124
124
  /** Built-in command override targets. */
125
- command_overrides?: string[];
125
+ command_overrides?:string[];
126
126
  /** Command paths backed by extension handlers. */
127
- command_handlers?: string[];
127
+ command_handlers?:string[];
128
128
  /** Lifecycle hook phases contributed by the extension. */
129
- hooks?: string[];
129
+ hooks?:string[];
130
130
  /** Command paths receiving extension flags. */
131
- flag_commands?: string[];
131
+ flag_commands?:string[];
132
132
  /** Declared custom item types. */
133
- item_types?: string[];
133
+ item_types?:string[];
134
134
  /** Declared custom item fields. */
135
- item_fields?: string[];
135
+ item_fields?:string[];
136
136
  /** Declared relationship kinds. */
137
- relationship_kinds?: string[];
137
+ relationship_kinds?:string[];
138
138
  /** Declared schema migration identifiers. */
139
- migrations?: string[];
139
+ migrations?:string[];
140
140
  /** Declared project profile names. */
141
- profiles?: string[];
141
+ profiles?:string[];
142
142
  /** Declared importer names. */
143
- importers?: string[];
143
+ importers?:string[];
144
144
  /** Declared exporter names. */
145
- exporters?: string[];
145
+ exporters?:string[];
146
146
  /** Declared search-provider names. */
147
- search_providers?: string[];
147
+ search_providers?:string[];
148
148
  /** Declared vector-store adapter names. */
149
- vector_store_adapters?: string[];
149
+ vector_store_adapters?:string[];
150
150
  /** Declared assurance measurement-provider ids. */
151
- assurance_providers?: string[];
151
+ assurance_providers?:string[];
152
152
  /** Parser override command targets. */
153
- parser_overrides?: string[];
153
+ parser_overrides?:string[];
154
154
  /** Service override targets. */
155
- service_overrides?: string[];
155
+ service_overrides?:string[];
156
156
  /** Renderer formats contributed by the extension. */
157
- renderer_overrides?: string[];
157
+ renderer_overrides?:string[];
158
158
  /** Optional command ownership for renderer contributions. */
159
- renderer_ownership?: Array<{
159
+ renderer_ownership?:Array<{
160
160
  /** Output format owned by this renderer. */
161
- format: OutputRendererFormat;
161
+ format:OutputRendererFormat;
162
162
  /** Command paths on which the renderer may run. */
163
- commands: string[];
163
+ commands:string[];
164
164
  /** Whether runtime result discrimination can select the renderer. */
165
- result_discriminator: boolean;
165
+ result_discriminator:boolean;
166
166
  }>;
167
167
  /** Number of preflight overrides in the package. */
168
- preflight_overrides?: number;
168
+ preflight_overrides?:number;
169
169
  /** Optional command ownership for each preflight override. Empty commands mean global ownership. */
170
- preflight_ownership?: Array<{
170
+ preflight_ownership?:Array<{
171
171
  /** Command paths on which the override may run. */
172
- commands: string[];
172
+ commands:string[];
173
173
  }>;
174
174
  }
175
175
  /** Documents the extension manifest payload exchanged by command, SDK, and package integrations. */
176
176
  export interface ExtensionManifest {
177
177
  /** Value that configures or reports name for this contract. */
178
- name: string;
178
+ name:string;
179
179
  /** Value that configures or reports version for this contract. */
180
- version: string;
180
+ version:string;
181
181
  /** Value that configures or reports entry for this contract. */
182
- entry: string;
182
+ entry:string;
183
183
  /** Value that configures or reports priority for this contract. */
184
- priority: number;
184
+ priority:number;
185
185
  /** Value that configures or reports capabilities for this contract. */
186
- capabilities: string[];
186
+ capabilities:string[];
187
187
  /** Value that configures or reports manifest version for this contract. */
188
- manifest_version?: number;
188
+ manifest_version?:number;
189
189
  /** Value that configures or reports pm min version for this contract. */
190
- pm_min_version?: string;
190
+ pm_min_version?:string;
191
191
  /** Value that configures or reports pm max version for this contract. */
192
- pm_max_version?: string;
192
+ pm_max_version?:string;
193
193
  /** Value that configures or reports engines for this contract. */
194
- engines?: ExtensionManifestEngines;
194
+ engines?:ExtensionManifestEngines;
195
195
  /** Value that configures or reports trusted for this contract. */
196
- trusted?: boolean;
196
+ trusted?:boolean;
197
197
  /** Value that configures or reports provenance for this contract. */
198
- provenance?: ExtensionProvenanceMetadata;
198
+ provenance?:ExtensionProvenanceMetadata;
199
199
  /** Value that configures or reports sandbox profile for this contract. */
200
- sandbox_profile?: ExtensionSandboxProfile;
200
+ sandbox_profile?:ExtensionSandboxProfile;
201
201
  /** Value that configures or reports permissions for this contract. */
202
- permissions?: ExtensionRuntimePermissionDeclaration;
202
+ permissions?:ExtensionRuntimePermissionDeclaration;
203
203
  /** Value that configures or reports activation for this contract. */
204
- activation?: ExtensionActivationMetadata;
204
+ activation?:ExtensionActivationMetadata;
205
205
  /** Static contribution inventory used by discovery before module import. */
206
- contributions?: ExtensionContributionInventory;
206
+ contributions?:ExtensionContributionInventory;
207
207
  /** Value that configures or reports legacy capability aliases for this contract. */
208
- legacy_capability_aliases?: LegacyExtensionCapabilityAliasMapping[];
208
+ legacy_capability_aliases?:LegacyExtensionCapabilityAliasMapping[];
209
209
  }
210
210
  /** Documents the extension diagnostic payload exchanged by command, SDK, and package integrations. */
211
211
  export interface ExtensionDiagnostic {
212
212
  /** Value that configures or reports layer for this contract. */
213
- layer: ExtensionLayer;
213
+ layer:ExtensionLayer;
214
214
  /** Value that configures or reports directory for this contract. */
215
- directory: string;
215
+ directory:string;
216
216
  /** Filesystem path used for manifest resolution. */
217
- manifest_path: string;
217
+ manifest_path:string;
218
218
  /** Value that configures or reports name for this contract. */
219
- name: string | null;
219
+ name:string | null;
220
220
  /** Value that configures or reports version for this contract. */
221
- version: string | null;
221
+ version:string | null;
222
222
  /** Value that configures or reports entry for this contract. */
223
- entry: string | null;
223
+ entry:string | null;
224
224
  /** Value that configures or reports priority for this contract. */
225
- priority: number | null;
225
+ priority:number | null;
226
226
  /** Filesystem path used for entry resolution. */
227
- entry_path: string | null;
227
+ entry_path:string | null;
228
228
  /** Whether enabled applies to this operation. */
229
- enabled: boolean | null;
229
+ enabled:boolean | null;
230
230
  /** Lifecycle state reported for status. */
231
- status: ExtensionStatus;
231
+ status:ExtensionStatus;
232
232
  }
233
233
  /** Documents the effective extension payload exchanged by command, SDK, and package integrations. */
234
234
  export interface EffectiveExtension {
235
235
  /** Value that configures or reports layer for this contract. */
236
- layer: ExtensionLayer;
236
+ layer:ExtensionLayer;
237
237
  /** Value that configures or reports directory for this contract. */
238
- directory: string;
238
+ directory:string;
239
239
  /** Filesystem path used for manifest resolution. */
240
- manifest_path: string;
240
+ manifest_path:string;
241
241
  /** Value that configures or reports name for this contract. */
242
- name: string;
242
+ name:string;
243
243
  /** Value that configures or reports source package for this contract. */
244
- source_package?: string;
244
+ source_package?:string;
245
245
  /** Install-source identities that can resolve this extension through package lifecycle commands. */
246
- source_aliases?: string[];
246
+ source_aliases?:string[];
247
247
  /** Value that configures or reports version for this contract. */
248
- version: string;
248
+ version:string;
249
249
  /** Value that configures or reports entry for this contract. */
250
- entry: string;
250
+ entry:string;
251
251
  /** Value that configures or reports priority for this contract. */
252
- priority: number;
252
+ priority:number;
253
253
  /** Filesystem path used for entry resolution. */
254
- entry_path: string;
254
+ entry_path:string;
255
255
  /** Value that configures or reports manifest version for this contract. */
256
- manifest_version?: number;
256
+ manifest_version?:number;
257
257
  /** Value that configures or reports pm min version for this contract. */
258
- pm_min_version?: string;
258
+ pm_min_version?:string;
259
259
  /** Value that configures or reports pm max version for this contract. */
260
- pm_max_version?: string;
260
+ pm_max_version?:string;
261
261
  /** Value that configures or reports engines for this contract. */
262
- engines?: ExtensionManifestEngines;
262
+ engines?:ExtensionManifestEngines;
263
263
  /** Value that configures or reports trusted for this contract. */
264
- trusted?: boolean;
264
+ trusted?:boolean;
265
265
  /** Value that configures or reports provenance for this contract. */
266
- provenance?: ExtensionProvenanceMetadata;
266
+ provenance?:ExtensionProvenanceMetadata;
267
267
  /** Value that configures or reports sandbox profile for this contract. */
268
- sandbox_profile?: ExtensionSandboxProfile;
268
+ sandbox_profile?:ExtensionSandboxProfile;
269
269
  /** Value that configures or reports permissions for this contract. */
270
- permissions?: ExtensionRuntimePermissionDeclaration;
270
+ permissions?:ExtensionRuntimePermissionDeclaration;
271
271
  /** Value that configures or reports capabilities for this contract. */
272
- capabilities?: string[];
272
+ capabilities?:string[];
273
273
  /** Value that configures or reports activation for this contract. */
274
- activation?: ExtensionActivationMetadata;
274
+ activation?:ExtensionActivationMetadata;
275
275
  /** Static contribution inventory resolved from the manifest or install snapshot. */
276
- contributions?: ExtensionContributionInventory;
276
+ contributions?:ExtensionContributionInventory;
277
277
  }
278
278
  /** Documents the extension discovery result payload exchanged by command, SDK, and package integrations. */
279
279
  export interface ExtensionDiscoveryResult {
280
280
  /** Value that configures or reports disabled by flag for this contract. */
281
- disabled_by_flag: boolean;
281
+ disabled_by_flag:boolean;
282
282
  /** Value that configures or reports roots for this contract. */
283
- roots: {
284
- global: string;
285
- project: string;
283
+ roots:{
284
+ global:string;
285
+ project:string;
286
286
  };
287
287
  /** Value that configures or reports configured enabled for this contract. */
288
- configured_enabled: string[];
288
+ configured_enabled:string[];
289
289
  /** Value that configures or reports configured disabled for this contract. */
290
- configured_disabled: string[];
290
+ configured_disabled:string[];
291
291
  /** Value that configures or reports discovered for this contract. */
292
- discovered: ExtensionDiagnostic[];
292
+ discovered:ExtensionDiagnostic[];
293
293
  /** Value that configures or reports effective for this contract. */
294
- effective: EffectiveExtension[];
294
+ effective:EffectiveExtension[];
295
295
  /** Value that configures or reports warnings for this contract. */
296
- warnings: string[];
296
+ warnings:string[];
297
297
  /** Value that configures or reports policy for this contract. */
298
- policy: ExtensionGovernancePolicy;
298
+ policy:ExtensionGovernancePolicy;
299
299
  }
300
300
  /** Documents the loaded extension payload exchanged by command, SDK, and package integrations. */
301
301
  export interface LoadedExtension extends EffectiveExtension {
302
302
  /** Value that configures or reports module for this contract. */
303
- module: unknown;
303
+ module:unknown;
304
304
  }
305
305
  /** Documents the failed extension load payload exchanged by command, SDK, and package integrations. */
306
306
  export interface FailedExtensionLoad {
307
307
  /** Value that configures or reports layer for this contract. */
308
- layer: ExtensionLayer;
308
+ layer:ExtensionLayer;
309
309
  /** Value that configures or reports name for this contract. */
310
- name: string;
310
+ name:string;
311
311
  /** Filesystem path used for entry resolution. */
312
- entry_path: string;
312
+ entry_path:string;
313
313
  /** Value that configures or reports error for this contract. */
314
- error: string;
314
+ error:string;
315
315
  }
316
316
  /** Documents the extension load result payload exchanged by command, SDK, and package integrations. */
317
317
  export interface ExtensionLoadResult extends ExtensionDiscoveryResult {
318
318
  /** Value that configures or reports loaded for this contract. */
319
- loaded: LoadedExtension[];
319
+ loaded:LoadedExtension[];
320
320
  /** Value that configures or reports failed for this contract. */
321
- failed: FailedExtensionLoad[];
321
+ failed:FailedExtensionLoad[];
322
322
  }
323
323
  /** Documents the before command hook context payload exchanged by command, SDK, and package integrations. */
324
324
  export interface BeforeCommandHookContext {
325
325
  /** Value that configures or reports command for this contract. */
326
- command: string;
326
+ command:string;
327
327
  /** Value that configures or reports args for this contract. */
328
- args: string[];
328
+ args:string[];
329
329
  /** Value that configures or reports options for this contract. */
330
- options?: Record<string, unknown>;
330
+ options?:Record<string,unknown>;
331
331
  /** Value that configures or reports global for this contract. */
332
- global?: GlobalOptions;
332
+ global?:GlobalOptions;
333
333
  /** Value that configures or reports pm root for this contract. */
334
- pm_root: string;
334
+ pm_root:string;
335
335
  }
336
336
  /** Documents the after command hook context payload exchanged by command, SDK, and package integrations. */
337
337
  export interface AfterCommandHookContext extends BeforeCommandHookContext {
338
338
  /** Whether the operation completed without a blocking failure. */
339
- ok: boolean;
339
+ ok:boolean;
340
340
  /** Value that configures or reports error for this contract. */
341
- error?: string;
341
+ error?:string;
342
342
  /** Value that configures or reports result for this contract. */
343
- result?: unknown;
343
+ result?:unknown;
344
344
  /** Value that configures or reports affected for this contract. */
345
- affected?: AfterCommandAffectedItem[];
345
+ affected?:AfterCommandAffectedItem[];
346
346
  }
347
347
  /** Documents the after command affected item payload exchanged by command, SDK, and package integrations. */
348
348
  export interface AfterCommandAffectedItem {
349
349
  /** Stable identifier used to reference this record across commands and storage. */
350
- id: string;
350
+ id:string;
351
351
  /** Value that configures or reports op for this contract. */
352
- op?: string;
352
+ op?:string;
353
353
  /** Schema type that determines the shape and validation rules for this value. */
354
- item_type?: string;
354
+ item_type?:string;
355
355
  /** Status id the item held before this mutation. */
356
- previous_status?: ItemStatus;
356
+ previous_status?:ItemStatus;
357
357
  /** Lifecycle state reported for status. */
358
- status?: ItemStatus;
358
+ status?:ItemStatus;
359
359
  /** Value that configures or reports previous for this contract. */
360
- previous?: Partial<ItemMetadata>;
360
+ previous?:Partial<ItemMetadata>;
361
361
  /** Value that configures or reports current for this contract. */
362
- current?: Partial<ItemMetadata>;
362
+ current?:Partial<ItemMetadata>;
363
363
  /** Value that configures or reports changed fields for this contract. */
364
- changed_fields?: string[];
364
+ changed_fields?:string[];
365
365
  }
366
366
  /** Documents the on write hook context payload exchanged by command, SDK, and package integrations. */
367
367
  export interface OnWriteHookContext {
368
368
  /** Filesystem path used for path resolution. */
369
- path: string;
369
+ path:string;
370
370
  /** Value that configures or reports scope for this contract. */
371
- scope: "project" | "global";
371
+ scope:"project" | "global";
372
372
  /** Value that configures or reports op for this contract. */
373
- op: string;
373
+ op:string;
374
374
  /** Value that configures or reports item id for this contract. */
375
- item_id?: string;
375
+ item_id?:string;
376
376
  /** Schema type that determines the shape and validation rules for this value. */
377
- item_type?: string;
377
+ item_type?:string;
378
378
  /** Value that configures or reports before for this contract. */
379
- before?: ItemDocument;
379
+ before?:ItemDocument;
380
380
  /** Value that configures or reports after for this contract. */
381
- after?: ItemDocument;
381
+ after?:ItemDocument;
382
382
  /** Value that configures or reports changed fields for this contract. */
383
- changed_fields?: string[];
383
+ changed_fields?:string[];
384
384
  }
385
385
  /** Read-only tracker services available while an extension evaluates a proposed mutation. */
386
386
  export interface ExtensionMutationGuardSdk {
387
387
  /** Read one item from the guard's host-bound tracker, or return null when it is absent. */
388
- get(id: string): Promise<{
389
- item: ItemMetadata;
390
- body: string;
388
+ get(id:string):Promise<{
389
+ item:ItemMetadata;
390
+ body:string;
391
391
  } | null>;
392
392
  /** List item metadata from the guard's host-bound tracker. */
393
- list(): Promise<ItemMetadata[]>;
393
+ list():Promise<ItemMetadata[]>;
394
394
  }
395
395
  /** Proposed item transition supplied before either the item or history artifact is persisted. */
396
396
  export interface BeforeMutationHookContext {
397
397
  /** Tracker root owning the transaction. */
398
- pm_root: string;
398
+ pm_root:string;
399
399
  /** Stable mutation operation name such as create, update, close, delete, or restore. */
400
- operation: string;
400
+ operation:string;
401
401
  /** Canonical item state before the mutation, or null for create. */
402
- before: ItemDocument | null;
402
+ before:ItemDocument | null;
403
403
  /** Canonical proposed state after the mutation, or null for delete. */
404
- after: ItemDocument | null;
404
+ after:ItemDocument | null;
405
405
  /** Canonical fields the transaction proposes to change. */
406
- changed_fields: readonly string[];
406
+ changed_fields:readonly string[];
407
407
  /** Host-bound read-only SDK services. */
408
- sdk: ExtensionMutationGuardSdk;
408
+ sdk:ExtensionMutationGuardSdk;
409
409
  }
410
410
  /** Stable decision returned by a transactional extension mutation guard. */
411
411
  export type BeforeMutationHookDecision = {
412
- allow: true;
412
+ allow:true;
413
413
  } | {
414
- allow: false;
415
- code: string;
416
- message?: string;
417
- remediation: string;
414
+ allow:false;
415
+ code:string;
416
+ message?:string;
417
+ remediation:string;
418
418
  };
419
419
  /** A fail-closed hook evaluated inside the item lock before persistence. */
420
- export type BeforeMutationHook = (context: BeforeMutationHookContext) => Promise<BeforeMutationHookDecision | void> | BeforeMutationHookDecision | void;
420
+ export type BeforeMutationHook = (context:BeforeMutationHookContext) => Promise<BeforeMutationHookDecision | void> | BeforeMutationHookDecision | void;
421
421
  /** Documents the on read hook context payload exchanged by command, SDK, and package integrations. */
422
422
  export interface OnReadHookContext {
423
423
  /** Filesystem path used for path resolution. */
424
- path: string;
424
+ path:string;
425
425
  /** Value that configures or reports scope for this contract. */
426
- scope: "project" | "global";
426
+ scope:"project" | "global";
427
427
  }
428
428
  /** Documents the on index hook context payload exchanged by command, SDK, and package integrations. */
429
429
  export interface OnIndexHookContext {
430
430
  /** Value that configures or reports mode for this contract. */
431
- mode: string;
431
+ mode:string;
432
432
  /** Value that configures or reports total items for this contract. */
433
- total_items?: number;
433
+ total_items?:number;
434
434
  }
435
435
  /** Restricts before command hook values accepted by command, SDK, and storage contracts. */
436
- export type BeforeCommandHook = (context: BeforeCommandHookContext) => Promise<void> | void;
436
+ export type BeforeCommandHook = (context:BeforeCommandHookContext) => Promise<void> | void;
437
437
  /** Restricts after command hook values accepted by command, SDK, and storage contracts. */
438
- export type AfterCommandHook = (context: AfterCommandHookContext) => Promise<void> | void;
438
+ export type AfterCommandHook = (context:AfterCommandHookContext) => Promise<void> | void;
439
439
  /** Restricts on write hook values accepted by command, SDK, and storage contracts. */
440
- export type OnWriteHook = (context: OnWriteHookContext) => Promise<void> | void;
440
+ export type OnWriteHook = (context:OnWriteHookContext) => Promise<void> | void;
441
441
  /** Restricts on read hook values accepted by command, SDK, and storage contracts. */
442
- export type OnReadHook = (context: OnReadHookContext) => Promise<void> | void;
442
+ export type OnReadHook = (context:OnReadHookContext) => Promise<void> | void;
443
443
  /** Restricts on index hook values accepted by command, SDK, and storage contracts. */
444
- export type OnIndexHook = (context: OnIndexHookContext) => Promise<void> | void;
444
+ export type OnIndexHook = (context:OnIndexHookContext) => Promise<void> | void;
445
445
  /** Restricts output renderer format values accepted by command, SDK, and storage contracts. */
446
446
  export type OutputRendererFormat = "toon" | "json";
447
447
  /** Restricts command override values accepted by command, SDK, and storage contracts. */
448
- export type CommandOverride = (context: CommandOverrideContext) => unknown;
448
+ export type CommandOverride = (context:CommandOverrideContext) => unknown;
449
449
  /** Restricts renderer override values accepted by command, SDK, and storage contracts. */
450
- export type RendererOverride = (context: RendererOverrideContext) => string | null | undefined;
450
+ export type RendererOverride = (context:RendererOverrideContext) => string | null | undefined;
451
451
  /** Host-enforced ownership metadata that limits where a renderer override may run. */
452
452
  export interface RendererOverrideOwnership {
453
453
  /** Normalized command paths this renderer owns. An unrelated command never reaches the callback. */
454
- commands?: string[];
454
+ commands?:string[];
455
455
  /** Optional result predicate evaluated before the renderer callback. A false result preserves native rendering. */
456
- resultDiscriminator?: (result: unknown) => boolean;
456
+ resultDiscriminator?:(result:unknown) => boolean;
457
457
  }
458
458
  /** Declarative renderer definition combining a callback with host-enforced ownership. */
459
459
  export interface ScopedRendererOverrideDefinition extends RendererOverrideOwnership {
460
460
  /** Renderer callback invoked only after every declared ownership predicate matches. */
461
- run: RendererOverride;
461
+ run:RendererOverride;
462
462
  }
463
463
  /** Restricts command handler values accepted by command, SDK, and storage contracts. */
464
- export type CommandHandler = (context: CommandHandlerContext) => unknown;
464
+ export type CommandHandler = (context:CommandHandlerContext) => unknown;
465
465
  /** Restricts parser override values accepted by command, SDK, and storage contracts. */
466
- export type ParserOverride = (context: ParserOverrideContext) => ParserOverrideDelta | Promise<ParserOverrideDelta>;
466
+ export type ParserOverride = (context:ParserOverrideContext) => ParserOverrideDelta | Promise<ParserOverrideDelta>;
467
467
  /** Restricts preflight override values accepted by command, SDK, and storage contracts. */
468
- export type PreflightOverride = (context: PreflightOverrideContext) => PreflightOverrideDelta | Promise<PreflightOverrideDelta>;
468
+ export type PreflightOverride = (context:PreflightOverrideContext) => PreflightOverrideDelta | Promise<PreflightOverrideDelta>;
469
469
  /** Static ownership declaration used to select and diagnose preflight overrides. */
470
470
  export interface PreflightOverrideOwnership {
471
471
  /** Normalized command paths on which this preflight override may run. */
472
- commands?: string[];
472
+ commands?:string[];
473
473
  }
474
474
  /** Declarative preflight override paired with statically inspectable ownership. */
475
475
  export interface ScopedPreflightOverrideDefinition extends PreflightOverrideOwnership {
476
476
  /** Preflight handler invoked only for a declared command, or globally when unscoped. */
477
- run: PreflightOverride;
477
+ run:PreflightOverride;
478
478
  }
479
479
  /** Explicitly claims or declines one service payload without relying on object identity. */
480
480
  export type ServiceOverrideDecision = {
481
- handled: true;
482
- result: unknown;
481
+ handled:true;
482
+ result:unknown;
483
483
  } | {
484
- handled: false;
484
+ handled:false;
485
485
  };
486
486
  /** Restricts service override values accepted by command, SDK, and storage contracts. */
487
- export type ServiceOverride = (context: ServiceOverrideContext) => unknown | ServiceOverrideDecision;
487
+ export type ServiceOverride = (context:ServiceOverrideContext) => unknown | ServiceOverrideDecision;
488
488
  /** Host-enforced ownership metadata for a service override. */
489
489
  export interface ServiceOverrideOwnership {
490
490
  /** Declare that the callback may only decline. Any handled result is ignored and diagnosed by the host. */
491
- passThrough?: boolean;
491
+ passThrough?:boolean;
492
492
  }
493
493
  /** Documents the registered extension hook payload exchanged by command, SDK, and package integrations. */
494
494
  export interface RegisteredExtensionHook<THook> {
495
495
  /** Value that configures or reports layer for this contract. */
496
- layer: ExtensionLayer;
496
+ layer:ExtensionLayer;
497
497
  /** Value that configures or reports name for this contract. */
498
- name: string;
498
+ name:string;
499
499
  /** Value that configures or reports run for this contract. */
500
- run: THook;
500
+ run:THook;
501
501
  }
502
502
  /** Documents the extension hook registry payload exchanged by command, SDK, and package integrations. */
503
503
  export interface ExtensionHookRegistry {
504
504
  /** Value that configures or reports before command for this contract. */
505
- beforeCommand: Array<RegisteredExtensionHook<BeforeCommandHook>>;
505
+ beforeCommand:Array<RegisteredExtensionHook<BeforeCommandHook>>;
506
506
  /** Transactional guards fired before item and history persistence. */
507
- beforeMutation: Array<RegisteredExtensionHook<BeforeMutationHook>>;
507
+ beforeMutation:Array<RegisteredExtensionHook<BeforeMutationHook>>;
508
508
  /** Value that configures or reports after command for this contract. */
509
- afterCommand: Array<RegisteredExtensionHook<AfterCommandHook>>;
509
+ afterCommand:Array<RegisteredExtensionHook<AfterCommandHook>>;
510
510
  /** Value that configures or reports on write for this contract. */
511
- onWrite: Array<RegisteredExtensionHook<OnWriteHook>>;
511
+ onWrite:Array<RegisteredExtensionHook<OnWriteHook>>;
512
512
  /** Value that configures or reports on read for this contract. */
513
- onRead: Array<RegisteredExtensionHook<OnReadHook>>;
513
+ onRead:Array<RegisteredExtensionHook<OnReadHook>>;
514
514
  /** Value that configures or reports on index for this contract. */
515
- onIndex: Array<RegisteredExtensionHook<OnIndexHook>>;
515
+ onIndex:Array<RegisteredExtensionHook<OnIndexHook>>;
516
516
  }
517
517
  /** Portable workspace coordinates supplied to every extension runtime surface. */
518
518
  export interface PortableWorkspaceContext {
519
519
  /** Immutable source workspace root, distinct from a sandboxed tracker root. */
520
- source_workspace_root?: string;
520
+ source_workspace_root?:string;
521
521
  /** Source VCS repository root when one can be resolved. */
522
- repo_root?: string;
522
+ repo_root?:string;
523
523
  /** POSIX tracker path relative to the source workspace when contained there. */
524
- pm_root_rel?: string;
524
+ pm_root_rel?:string;
525
525
  }
526
526
  /** Documents the command override context payload exchanged by command, SDK, and package integrations. */
527
527
  export interface CommandOverrideContext extends PortableWorkspaceContext {
528
528
  /** Value that configures or reports command for this contract. */
529
- command: string;
529
+ command:string;
530
530
  /** Value that configures or reports args for this contract. */
531
- args: string[];
531
+ args:string[];
532
532
  /** Value that configures or reports options for this contract. */
533
- options?: Record<string, unknown>;
533
+ options?:Record<string,unknown>;
534
534
  /** Value that configures or reports global for this contract. */
535
- global?: GlobalOptions;
535
+ global?:GlobalOptions;
536
536
  /** Value that configures or reports pm root for this contract. */
537
- pm_root: string;
537
+ pm_root:string;
538
538
  /** Value that configures or reports result for this contract. */
539
- result: unknown;
539
+ result:unknown;
540
540
  }
541
541
  /** Documents the renderer override context payload exchanged by command, SDK, and package integrations. */
542
542
  export interface RendererOverrideContext extends Partial<PortableWorkspaceContext> {
543
543
  /** Value that configures or reports format for this contract. */
544
- format: OutputRendererFormat;
544
+ format:OutputRendererFormat;
545
545
  /** Value that configures or reports command for this contract. */
546
- command?: string;
546
+ command?:string;
547
547
  /** Value that configures or reports args for this contract. */
548
- args?: string[];
548
+ args?:string[];
549
549
  /** Value that configures or reports options for this contract. */
550
- options?: Record<string, unknown>;
550
+ options?:Record<string,unknown>;
551
551
  /** Value that configures or reports global for this contract. */
552
- global?: GlobalOptions;
552
+ global?:GlobalOptions;
553
553
  /** Value that configures or reports pm root for this contract. */
554
- pm_root?: string;
554
+ pm_root?:string;
555
555
  /** Value that configures or reports result for this contract. */
556
- result: unknown;
556
+ result:unknown;
557
557
  }
558
558
  /** Documents the command handler context payload exchanged by command, SDK, and package integrations. */
559
559
  export interface CommandHandlerContext extends PortableWorkspaceContext {
560
560
  /** Value that configures or reports command for this contract. */
561
- command: string;
561
+ command:string;
562
562
  /** Value that configures or reports args for this contract. */
563
- args: string[];
563
+ args:string[];
564
564
  /** Value that configures or reports options for this contract. */
565
- options: Record<string, unknown>;
565
+ options:Record<string,unknown>;
566
566
  /** Value that configures or reports global for this contract. */
567
- global: GlobalOptions;
567
+ global:GlobalOptions;
568
568
  /** Value that configures or reports pm root for this contract. */
569
- pm_root: string;
569
+ pm_root:string;
570
570
  /** Host-bound SDK runtime that avoids package-resolution and private-import coupling. */
571
- sdk?: ExtensionCommandSdk;
571
+ sdk?:ExtensionCommandSdk;
572
572
  }
573
573
  /** Runtime SDK services injected into every extension command invocation. */
574
574
  export interface ExtensionCommandSdk {
575
575
  /** Tracker-bound client using the invocation author and workspace. */
576
- client: PmClient;
576
+ client:PmClient;
577
577
  /** Classify a host-native or structurally compatible missing-item error. */
578
- isItemNotFoundError(error: unknown): boolean;
578
+ isItemNotFoundError(error:unknown):boolean;
579
579
  /** Reconstruct one item at a history version or timestamp. */
580
- getItemAt(id: string, target: string): Promise<GetItemAtResult>;
580
+ getItemAt(id:string,target:string):Promise<GetItemAtResult>;
581
581
  /** Open a durable event store with package-contributed relationship semantics. */
582
- openRelationshipEventStore(options: {
583
- nodes: Iterable<string>;
584
- definitions: readonly RelationshipKindDefinition[];
585
- relativePath?: string;
586
- }): Promise<RelationshipEventStore>;
582
+ openRelationshipEventStore(options:{
583
+ nodes:Iterable<string>;
584
+ definitions:readonly RelationshipKindDefinition[];
585
+ relativePath?:string;
586
+ }):Promise<RelationshipEventStore>;
587
587
  /** Materialize a validated in-memory graph without resolving the SDK package at runtime. */
588
- createRelationshipGraph(options: {
589
- nodes: Iterable<string>;
590
- edges: Iterable<RelationshipEdge>;
591
- definitions: readonly RelationshipKindDefinition[];
592
- }): RelationshipGraph;
588
+ createRelationshipGraph(options:{
589
+ nodes:Iterable<string>;
590
+ edges:Iterable<RelationshipEdge>;
591
+ definitions:readonly RelationshipKindDefinition[];
592
+ }):RelationshipGraph;
593
593
  /** Compute bounded exact impact through the host-owned relationship runtime. */
594
- analyzeRelationshipImpact(graph: RelationshipGraph, root: string, options?: RelationshipQueryOptions): RelationshipImpactAnalysis;
594
+ analyzeRelationshipImpact(graph:RelationshipGraph,root:string,options?:RelationshipQueryOptions):RelationshipImpactAnalysis;
595
595
  /** Validate an immutable relationship event batch without persisting it. */
596
- validateRelationshipEvents(options: {
597
- nodes: Iterable<string>;
598
- definitions: readonly RelationshipKindDefinition[];
599
- events: readonly RelationshipEventInput[];
600
- }): RelationshipEvent[];
596
+ validateRelationshipEvents(options:{
597
+ nodes:Iterable<string>;
598
+ definitions:readonly RelationshipKindDefinition[];
599
+ events:readonly RelationshipEventInput[];
600
+ }):RelationshipEvent[];
601
601
  /** Commit idempotent item and relationship mutations under one durable journal. */
602
- commitWorkspaceTransaction(options: Omit<CommitWorkspaceTransactionOptions, "pmRoot">): Promise<WorkspaceTransactionCommitResult>;
602
+ commitWorkspaceTransaction(options:Omit<CommitWorkspaceTransactionOptions,"pmRoot">):Promise<WorkspaceTransactionCommitResult>;
603
603
  /** Mutate governed project settings under the host's workspace audit lock. */
604
- mutateWorkspaceSettings(options: {
604
+ mutateWorkspaceSettings(options:{
605
605
  /** Stable identity for replay-safe retries of this invocation. */
606
- operationId: string;
606
+ operationId:string;
607
607
  /** Compute a preview without changing settings or workspace history. */
608
- dryRun?: boolean;
608
+ dryRun?:boolean;
609
609
  /** Include the canonical inline settings tree; omit by default to bound receipts. */
610
- includePreview?: boolean;
610
+ includePreview?:boolean;
611
611
  /** Replace these dot-delimited inline object subtrees, removing omitted raw keys while preserving all other source fields. */
612
- replaceSubtrees?: readonly string[];
612
+ replaceSubtrees?:readonly string[];
613
613
  /** Derive the complete next settings tree from normalized inline settings at lock time. */
614
- mutate: (current: PmSettings) => PmSettings | Promise<PmSettings>;
615
- }): Promise<{
614
+ mutate:(current:PmSettings) => PmSettings | Promise<PmSettings>;
615
+ }):Promise<{
616
616
  /** Whether the locked settings bytes would change, or did change on apply. */
617
- changed: boolean;
617
+ changed:boolean;
618
618
  /** Whether persistence was suppressed for this invocation. */
619
- dry_run: boolean;
619
+ dry_run:boolean;
620
620
  /** Whether the operation was already committed and the callback was skipped. */
621
- replayed: boolean;
621
+ replayed:boolean;
622
622
  /** Settings resolved from the exact persisted bytes, before optional file-backed schema overlays. Absent on replay. */
623
- preview?: PmSettings;
623
+ preview?:PmSettings;
624
624
  }>;
625
625
  }
626
626
  /** Documents the parser override context payload exchanged by command, SDK, and package integrations. */
@@ -628,102 +628,102 @@ export type ParserOverrideContext = CommandHandlerContext;
628
628
  /** Documents the parser override delta payload exchanged by command, SDK, and package integrations. */
629
629
  export interface ParserOverrideDelta {
630
630
  /** Value that configures or reports args for this contract. */
631
- args?: string[];
631
+ args?:string[];
632
632
  /** Value that configures or reports options for this contract. */
633
- options?: Record<string, unknown>;
633
+ options?:Record<string,unknown>;
634
634
  /** Value that configures or reports global for this contract. */
635
- global?: GlobalOptions;
635
+ global?:GlobalOptions;
636
636
  }
637
637
  /** Documents the preflight override context payload exchanged by command, SDK, and package integrations. */
638
638
  export interface PreflightOverrideContext extends CommandHandlerContext {
639
639
  /** Value that configures or reports decision for this contract. */
640
- decision: PreflightRuntimeDecision;
640
+ decision:PreflightRuntimeDecision;
641
641
  }
642
642
  /** Documents the preflight runtime decision payload exchanged by command, SDK, and package integrations. */
643
643
  export interface PreflightRuntimeDecision {
644
644
  /** Value that configures or reports enforce item format gate for this contract. */
645
- enforce_item_format_gate: boolean;
645
+ enforce_item_format_gate:boolean;
646
646
  /** Executes the preflight item format sync operation through the package runtime. */
647
- run_preflight_item_format_sync: boolean;
647
+ run_preflight_item_format_sync:boolean;
648
648
  /** Executes the extension migrations operation through the package runtime. */
649
- run_extension_migrations: boolean;
649
+ run_extension_migrations:boolean;
650
650
  /** Value that configures or reports enforce mandatory migration gate for this contract. */
651
- enforce_mandatory_migration_gate: boolean;
651
+ enforce_mandatory_migration_gate:boolean;
652
652
  }
653
653
  /** Documents the preflight override delta payload exchanged by command, SDK, and package integrations. */
654
654
  export interface PreflightOverrideDelta extends ParserOverrideDelta {
655
655
  /** Value that configures or reports enforce item format gate for this contract. */
656
- enforce_item_format_gate?: boolean;
656
+ enforce_item_format_gate?:boolean;
657
657
  /** Executes the preflight item format sync operation through the package runtime. */
658
- run_preflight_item_format_sync?: boolean;
658
+ run_preflight_item_format_sync?:boolean;
659
659
  /** Executes the extension migrations operation through the package runtime. */
660
- run_extension_migrations?: boolean;
660
+ run_extension_migrations?:boolean;
661
661
  /** Value that configures or reports enforce mandatory migration gate for this contract. */
662
- enforce_mandatory_migration_gate?: boolean;
662
+ enforce_mandatory_migration_gate?:boolean;
663
663
  }
664
664
  /** Documents the service override context payload exchanged by command, SDK, and package integrations. */
665
665
  export interface ServiceOverrideContext extends Partial<PortableWorkspaceContext> {
666
666
  /** Value that configures or reports service for this contract. */
667
- service: ExtensionServiceName;
667
+ service:ExtensionServiceName;
668
668
  /** Value that configures or reports command for this contract. */
669
- command?: string;
669
+ command?:string;
670
670
  /** Value that configures or reports args for this contract. */
671
- args?: string[];
671
+ args?:string[];
672
672
  /** Value that configures or reports options for this contract. */
673
- options?: Record<string, unknown>;
673
+ options?:Record<string,unknown>;
674
674
  /** Value that configures or reports global for this contract. */
675
- global?: GlobalOptions;
675
+ global?:GlobalOptions;
676
676
  /** Value that configures or reports pm root for this contract. */
677
- pm_root?: string;
677
+ pm_root?:string;
678
678
  /** Value that configures or reports payload for this contract. */
679
- payload: unknown;
679
+ payload:unknown;
680
680
  }
681
681
  /** Documents the extension command argument definition payload exchanged by command, SDK, and package integrations. */
682
682
  export interface ExtensionCommandArgumentDefinition {
683
683
  /** Value that configures or reports name for this contract. */
684
- name: string;
684
+ name:string;
685
685
  /** Value that configures or reports required for this contract. */
686
- required?: boolean;
686
+ required?:boolean;
687
687
  /** Value that configures or reports variadic for this contract. */
688
- variadic?: boolean;
688
+ variadic?:boolean;
689
689
  /** Value that configures or reports description for this contract. */
690
- description?: string;
690
+ description?:string;
691
691
  }
692
692
  /** Documents the command definition payload exchanged by command, SDK, and package integrations. */
693
693
  export interface CommandDefinition {
694
694
  /** Opt a read-only handler into host projection, row bounds, budgets and continuation. */
695
- read_output?: ExtensionCommandReadOutput;
695
+ read_output?:ExtensionCommandReadOutput;
696
696
  /** Value that configures or reports name for this contract. */
697
- name: string;
697
+ name:string;
698
698
  /** Value that configures or reports run for this contract. */
699
- run?: CommandHandler;
699
+ run?:CommandHandler;
700
700
  /**
701
701
  * @deprecated Use `run` instead. This alias remains for backward compatibility.
702
702
  */
703
- handler?: CommandHandler;
703
+ handler?:CommandHandler;
704
704
  /** Value that configures or reports action for this contract. */
705
- action?: string;
705
+ action?:string;
706
706
  /** Value that configures or reports description for this contract. */
707
- description?: string;
707
+ description?:string;
708
708
  /** Value that configures or reports intent for this contract. */
709
- intent?: string;
709
+ intent?:string;
710
710
  /** Value that configures or reports examples for this contract. */
711
- examples?: string[];
711
+ examples?:string[];
712
712
  /** Value that configures or reports failure hints for this contract. */
713
- failure_hints?: string[];
713
+ failure_hints?:string[];
714
714
  /** Value that configures or reports arguments for this contract. */
715
- arguments?: ExtensionCommandArgumentDefinition[];
715
+ arguments?:ExtensionCommandArgumentDefinition[];
716
716
  /** Value that configures or reports flags for this contract. */
717
- flags?: FlagDefinition[];
717
+ flags?:FlagDefinition[];
718
718
  /** Minimum agent surface tier that should advertise this command. */
719
- tier?: "core" | "standard" | "full" | "internal";
719
+ tier?:"core" | "standard" | "full" | "internal";
720
720
  /** Capability family used by generated agent routing surfaces. */
721
- family?: ExtensionCommandCapabilityFamily;
721
+ family?:ExtensionCommandCapabilityFamily;
722
722
  }
723
723
  /** Structured rows a read-only extension command returns for host output shaping. */
724
724
  export interface ExtensionCommandReadOutput {
725
725
  /** Dot-delimited array or object-map paths; an empty list declares a singleton result. */
726
- row_keys: readonly string[];
726
+ row_keys:readonly string[];
727
727
  }
728
728
  /**
729
729
  * Optional command-definition metadata for first-class importer/exporter
@@ -739,19 +739,19 @@ row_keys: readonly string[];
739
739
  */
740
740
  export interface ImportExportRegistrationOptions {
741
741
  /** Value that configures or reports action for this contract. */
742
- action?: string;
742
+ action?:string;
743
743
  /** Value that configures or reports description for this contract. */
744
- description?: string;
744
+ description?:string;
745
745
  /** Value that configures or reports intent for this contract. */
746
- intent?: string;
746
+ intent?:string;
747
747
  /** Value that configures or reports examples for this contract. */
748
- examples?: string[];
748
+ examples?:string[];
749
749
  /** Value that configures or reports failure hints for this contract. */
750
- failure_hints?: string[];
750
+ failure_hints?:string[];
751
751
  /** Value that configures or reports arguments for this contract. */
752
- arguments?: ExtensionCommandArgumentDefinition[];
752
+ arguments?:ExtensionCommandArgumentDefinition[];
753
753
  /** Value that configures or reports flags for this contract. */
754
- flags?: FlagDefinition[];
754
+ flags?:FlagDefinition[];
755
755
  }
756
756
  /**
757
757
  * Declares where an exporter writes its artifact and whether the host may
@@ -759,653 +759,653 @@ flags?: FlagDefinition[];
759
759
  */
760
760
  export type ExporterArtifactOutputContract = {
761
761
  /** Stdout exclusively carries artifact bytes. */
762
- channel: "stdout";
762
+ channel:"stdout";
763
763
  /** Stdout artifacts cannot opt back into host rendering. */
764
- receipt?: "suppress";
764
+ receipt?:"suppress";
765
765
  /** Optional IANA media type describing the emitted artifact. */
766
- media_type?: string;
766
+ media_type?:string;
767
767
  } | {
768
768
  /** The exporter writes its artifact to a file. */
769
- channel: "file";
769
+ channel:"file";
770
770
  /** File exporters may render or suppress their bounded receipt. */
771
- receipt?: "suppress" | "render";
771
+ receipt?:"suppress" | "render";
772
772
  /** Optional IANA media type describing the emitted artifact. */
773
- media_type?: string;
773
+ media_type?:string;
774
774
  };
775
775
  /** Exporter command metadata plus its optional artifact-delivery contract. */
776
776
  export interface ExporterRegistrationOptions extends ImportExportRegistrationOptions {
777
777
  /** Declaration for artifact bytes and the host receipt. */
778
- output?: ExporterArtifactOutputContract;
778
+ output?:ExporterArtifactOutputContract;
779
779
  }
780
780
  /** Fully normalized exporter artifact contract stored in inventories. */
781
781
  export interface RegisteredExporterArtifactOutputContract {
782
782
  /** Destination carrying the artifact bytes. */
783
- channel: "stdout" | "file";
783
+ channel:"stdout" | "file";
784
784
  /** Explicit host receipt policy after normalization. */
785
- receipt: "suppress" | "render";
785
+ receipt:"suppress" | "render";
786
786
  /** Optional IANA media type describing the emitted artifact. */
787
- media_type?: string;
787
+ media_type?:string;
788
788
  }
789
789
  /** Restricts flag value type values accepted by command, SDK, and storage contracts. */
790
790
  export type FlagValueType = "string" | "number" | "boolean";
791
791
  /** Documents the flag definition payload exchanged by command, SDK, and package integrations. */
792
792
  export interface FlagDefinition {
793
793
  /** Value that configures or reports long for this contract. */
794
- long?: string;
794
+ long?:string;
795
795
  /** Value that configures or reports short for this contract. */
796
- short?: string;
796
+ short?:string;
797
797
  /** Value that configures or reports value name for this contract. */
798
- value_name?: string;
798
+ value_name?:string;
799
799
  /** Value that configures or reports description for this contract. */
800
- description?: string;
800
+ description?:string;
801
801
  /** Value that configures or reports required for this contract. */
802
- required?: boolean;
802
+ required?:boolean;
803
803
  /** Whether enabled applies to this operation. */
804
- enabled?: boolean;
804
+ enabled?:boolean;
805
805
  /** Value that configures or reports visible for this contract. */
806
- visible?: boolean;
806
+ visible?:boolean;
807
807
  /** Canonical flag value type. Prefer this field; it is the one runtime contracts and help output read first. */
808
- value_type?: FlagValueType;
808
+ value_type?:FlagValueType;
809
809
  /**
810
810
  * @deprecated Use `value_type`. Retained for backward compatibility: when
811
811
  * both are present `value_type` wins, and `type` resolves only when
812
812
  * `value_type` is absent (`value_type ?? type`).
813
813
  */
814
- type?: FlagValueType;
814
+ type?:FlagValueType;
815
815
  /** When true, a repeated comma-list flag accumulates values across repeats — parity with core list flags such as `--tags` — instead of the last value winning. Mirrors the core `CliFlagContract.list` field so extension-registered list flags coalesce through the same bootstrap path. */
816
- list?: boolean;
816
+ list?:boolean;
817
817
  /** Package-author-friendly alias for ordered list accumulation. Unlike CSV-friendly `list`, commas inside one repeated occurrence remain atomic. Normalized with `list: true` for host registration and contracts. */
818
- repeatable?: boolean;
818
+ repeatable?:boolean;
819
819
  /** Default value applied when the flag is omitted. Surfaced to runtime contracts and help output. A `list` flag may default to an array of scalars (e.g. `["a", "b"]`); the array is flattened/coerced like any list value. */
820
- default?: string | number | boolean | Array<string | number | boolean>;
820
+ default?:string | number | boolean | Array<string | number | boolean>;
821
821
  }
822
822
  /** Documents the schema field definition payload exchanged by command, SDK, and package integrations. */
823
823
  export interface SchemaFieldDefinition {
824
824
  /** Value that configures or reports name for this contract. */
825
- name: string;
825
+ name:string;
826
826
  /** Canonical persisted field type shared with `pm schema add-field`. */
827
- type: KnownItemFieldType;
827
+ type:KnownItemFieldType;
828
828
  /** Value that configures or reports optional for this contract. */
829
- optional?: boolean;
829
+ optional?:boolean;
830
830
  /** Default metadata value applied when the field is absent. */
831
- default?: unknown;
831
+ default?:unknown;
832
832
  /** Optional allow-list of accepted metadata values. */
833
- values?: unknown[];
833
+ values?:unknown[];
834
834
  }
835
835
  /** Documents the schema item type command option policy definition payload exchanged by command, SDK, and package integrations. */
836
836
  export interface SchemaItemTypeCommandOptionPolicyDefinition {
837
837
  /** Value that configures or reports command for this contract. */
838
- command: string;
838
+ command:string;
839
839
  /** Value that configures or reports option for this contract. */
840
- option: string;
840
+ option:string;
841
841
  /** Whether enabled applies to this operation. */
842
- enabled?: boolean;
842
+ enabled?:boolean;
843
843
  /** Value that configures or reports required for this contract. */
844
- required?: boolean;
844
+ required?:boolean;
845
845
  /** Value that configures or reports visible for this contract. */
846
- visible?: boolean;
846
+ visible?:boolean;
847
847
  }
848
848
  /** Documents the schema item type option definition payload exchanged by command, SDK, and package integrations. */
849
849
  export interface SchemaItemTypeOptionDefinition {
850
850
  /** Value that configures or reports key for this contract. */
851
- key: string;
851
+ key:string;
852
852
  /** Value that configures or reports values for this contract. */
853
- values?: string[];
853
+ values?:string[];
854
854
  /** Value that configures or reports required for this contract. */
855
- required?: boolean;
855
+ required?:boolean;
856
856
  /** Value that configures or reports aliases for this contract. */
857
- aliases?: string[];
857
+ aliases?:string[];
858
858
  }
859
859
  /** Documents the schema item type definition payload exchanged by command, SDK, and package integrations. */
860
860
  export interface SchemaItemTypeDefinition {
861
861
  /** Value that configures or reports name for this contract. */
862
- name: string;
862
+ name:string;
863
863
  /** Value that configures or reports folder for this contract. */
864
- folder?: string;
864
+ folder?:string;
865
865
  /** Value that configures or reports aliases for this contract. */
866
- aliases?: string[];
866
+ aliases?:string[];
867
867
  /** Human-readable description of the contributed item type. */
868
- description?: string;
868
+ description?:string;
869
869
  /** Initial status assigned when the contributed item type is created. */
870
- default_status?: string;
870
+ default_status?:string;
871
871
  /** Dispatch role inherited by next, context, and automatic claims. Gates track outcomes; human roles require decisions. */
872
- execution_role?: "agent" | "human" | "gate";
872
+ execution_role?:"agent" | "human" | "gate";
873
873
  /** Value that configures or reports required create fields for this contract. */
874
- required_create_fields?: string[];
874
+ required_create_fields?:string[];
875
875
  /** Value that configures or reports required create repeatables for this contract. */
876
- required_create_repeatables?: string[];
876
+ required_create_repeatables?:string[];
877
877
  /** Value that configures or reports command option policies for this contract. */
878
- command_option_policies?: SchemaItemTypeCommandOptionPolicyDefinition[];
878
+ command_option_policies?:SchemaItemTypeCommandOptionPolicyDefinition[];
879
879
  /** Value that configures or reports options for this contract. */
880
- options?: SchemaItemTypeOptionDefinition[];
881
- [key: string]: unknown;
880
+ options?:SchemaItemTypeOptionDefinition[];
881
+ [key:string]:unknown;
882
882
  }
883
883
  /** Documents the schema migration run context payload exchanged by command, SDK, and package integrations. */
884
884
  export interface SchemaMigrationRunContext {
885
885
  /** Stable identifier used to reference this record across commands and storage. */
886
- id: string;
886
+ id:string;
887
887
  /** Value that configures or reports command for this contract. */
888
- command: "migration";
888
+ command:"migration";
889
889
  /** Value that configures or reports layer for this contract. */
890
- layer: ExtensionLayer;
890
+ layer:ExtensionLayer;
891
891
  /** Value that configures or reports extension for this contract. */
892
- extension: string;
892
+ extension:string;
893
893
  /** Value that configures or reports pm root for this contract. */
894
- pm_root: string;
894
+ pm_root:string;
895
895
  /** Lifecycle state reported for status. */
896
- status: string;
896
+ status:string;
897
897
  }
898
898
  /** Restricts schema migration runner values accepted by command, SDK, and storage contracts. */
899
- export type SchemaMigrationRunner = (context: SchemaMigrationRunContext) => unknown | Promise<unknown>;
899
+ export type SchemaMigrationRunner = (context:SchemaMigrationRunContext) => unknown | Promise<unknown>;
900
900
  /** Documents the schema migration definition payload exchanged by command, SDK, and package integrations. */
901
901
  export interface SchemaMigrationDefinition {
902
902
  /** Stable identifier used to reference this record across commands and storage. */
903
- id?: string;
903
+ id?:string;
904
904
  /** Value that configures or reports description for this contract. */
905
- description?: string;
905
+ description?:string;
906
906
  /** Lifecycle state reported for status. */
907
- status?: string;
907
+ status?:string;
908
908
  /** Value that configures or reports mandatory for this contract. */
909
- mandatory?: boolean;
909
+ mandatory?:boolean;
910
910
  /** Value that configures or reports run for this contract. */
911
- run?: SchemaMigrationRunner;
912
- [key: string]: unknown;
911
+ run?:SchemaMigrationRunner;
912
+ [key:string]:unknown;
913
913
  }
914
914
  /** Documents the import export context payload exchanged by command, SDK, and package integrations. */
915
915
  export interface ImportExportContext extends PortableWorkspaceContext {
916
916
  /** Value that configures or reports registration for this contract. */
917
- registration: string;
917
+ registration:string;
918
918
  /** Value that configures or reports action for this contract. */
919
- action: "import" | "export";
919
+ action:"import" | "export";
920
920
  /** Value that configures or reports command for this contract. */
921
- command: string;
921
+ command:string;
922
922
  /** Value that configures or reports args for this contract. */
923
- args: string[];
923
+ args:string[];
924
924
  /** Value that configures or reports options for this contract. */
925
- options: Record<string, unknown>;
925
+ options:Record<string,unknown>;
926
926
  /** Value that configures or reports global for this contract. */
927
- global: GlobalOptions;
927
+ global:GlobalOptions;
928
928
  /** Value that configures or reports pm root for this contract. */
929
- pm_root: string;
929
+ pm_root:string;
930
930
  /** Host-bound SDK runtime for composing PM actions without spawning the CLI. */
931
- sdk?: ExtensionCommandSdk;
931
+ sdk?:ExtensionCommandSdk;
932
932
  }
933
933
  /** Restricts importer values accepted by command, SDK, and storage contracts. */
934
- export type Importer = (context: ImportExportContext) => unknown | Promise<unknown>;
934
+ export type Importer = (context:ImportExportContext) => unknown | Promise<unknown>;
935
935
  /** Restricts exporter values accepted by command, SDK, and storage contracts. */
936
- export type Exporter = (context: ImportExportContext) => unknown | Promise<unknown>;
936
+ export type Exporter = (context:ImportExportContext) => unknown | Promise<unknown>;
937
937
  /** Restricts extension search mode values accepted by command, SDK, and storage contracts. */
938
938
  export type ExtensionSearchMode = "keyword" | "semantic" | "hybrid";
939
939
  /** Documents the search provider query context payload exchanged by command, SDK, and package integrations. */
940
940
  export interface SearchProviderQueryContext {
941
941
  /** Value that configures or reports query for this contract. */
942
- query: string;
942
+ query:string;
943
943
  /** Value that configures or reports mode for this contract. */
944
- mode: ExtensionSearchMode;
944
+ mode:ExtensionSearchMode;
945
945
  /** Value that configures or reports tokens for this contract. */
946
- tokens: string[];
946
+ tokens:string[];
947
947
  /** Value that configures or reports options for this contract. */
948
- options: Record<string, unknown>;
948
+ options:Record<string,unknown>;
949
949
  /** Value that configures or reports settings for this contract. */
950
- settings: PmSettings;
950
+ settings:PmSettings;
951
951
  /** Value that configures or reports documents for this contract. */
952
- documents: ItemDocument[];
953
- [key: string]: unknown;
952
+ documents:ItemDocument[];
953
+ [key:string]:unknown;
954
954
  }
955
955
  /** Documents the search provider hit payload exchanged by command, SDK, and package integrations. */
956
956
  export interface SearchProviderHit {
957
957
  /** Stable identifier used to reference this record across commands and storage. */
958
- id: string;
958
+ id:string;
959
959
  /** Value that configures or reports score for this contract. */
960
- score: number;
960
+ score:number;
961
961
  /** Value that configures or reports matched fields for this contract. */
962
- matched_fields?: string[];
963
- [key: string]: unknown;
962
+ matched_fields?:string[];
963
+ [key:string]:unknown;
964
964
  }
965
965
  /** Restricts search provider query result values accepted by command, SDK, and storage contracts. */
966
966
  export type SearchProviderQueryResult = SearchProviderHit[] | {
967
- hits?: SearchProviderHit[];
967
+ hits?:SearchProviderHit[];
968
968
  };
969
969
  /** Documents the search provider query expansion context payload exchanged by command, SDK, and package integrations. */
970
970
  export interface SearchProviderQueryExpansionContext {
971
971
  /** Value that configures or reports query for this contract. */
972
- query: string;
972
+ query:string;
973
973
  /** Value that configures or reports mode for this contract. */
974
- mode: Exclude<ExtensionSearchMode, "keyword">;
974
+ mode:Exclude<ExtensionSearchMode,"keyword">;
975
975
  /** Value that configures or reports settings for this contract. */
976
- settings: PmSettings;
977
- [key: string]: unknown;
976
+ settings:PmSettings;
977
+ [key:string]:unknown;
978
978
  }
979
979
  /** Restricts search provider query expansion result values accepted by command, SDK, and storage contracts. */
980
980
  export type SearchProviderQueryExpansionResult = string[] | {
981
- queries?: string[];
981
+ queries?:string[];
982
982
  };
983
983
  /** Documents the search provider rerank candidate payload exchanged by command, SDK, and package integrations. */
984
984
  export interface SearchProviderRerankCandidate {
985
985
  /** Stable identifier used to reference this record across commands and storage. */
986
- id: string;
986
+ id:string;
987
987
  /** Value that configures or reports text for this contract. */
988
- text: string;
988
+ text:string;
989
989
  /** Value that configures or reports score for this contract. */
990
- score: number;
990
+ score:number;
991
991
  }
992
992
  /** Documents the search provider rerank hit payload exchanged by command, SDK, and package integrations. */
993
993
  export interface SearchProviderRerankHit {
994
994
  /** Stable identifier used to reference this record across commands and storage. */
995
- id: string;
995
+ id:string;
996
996
  /** Value that configures or reports score for this contract. */
997
- score: number;
997
+ score:number;
998
998
  }
999
999
  /** Restricts search provider rerank result values accepted by command, SDK, and storage contracts. */
1000
1000
  export type SearchProviderRerankResult = SearchProviderRerankHit[] | {
1001
- hits?: SearchProviderRerankHit[];
1001
+ hits?:SearchProviderRerankHit[];
1002
1002
  };
1003
1003
  /** Documents the search provider rerank context payload exchanged by command, SDK, and package integrations. */
1004
1004
  export interface SearchProviderRerankContext {
1005
1005
  /** Value that configures or reports query for this contract. */
1006
- query: string;
1006
+ query:string;
1007
1007
  /** Value that configures or reports mode for this contract. */
1008
- mode: "hybrid";
1008
+ mode:"hybrid";
1009
1009
  /** Value that configures or reports model for this contract. */
1010
- model: string;
1010
+ model:string;
1011
1011
  /** Value that configures or reports top k for this contract. */
1012
- top_k: number;
1012
+ top_k:number;
1013
1013
  /** Value that configures or reports settings for this contract. */
1014
- settings: PmSettings;
1014
+ settings:PmSettings;
1015
1015
  /** Value that configures or reports candidates for this contract. */
1016
- candidates: SearchProviderRerankCandidate[];
1017
- [key: string]: unknown;
1016
+ candidates:SearchProviderRerankCandidate[];
1017
+ [key:string]:unknown;
1018
1018
  }
1019
1019
  /** Documents the search provider embed batch context payload exchanged by command, SDK, and package integrations. */
1020
1020
  export interface SearchProviderEmbedBatchContext {
1021
1021
  /** Value that configures or reports inputs for this contract. */
1022
- inputs: string[];
1022
+ inputs:string[];
1023
1023
  /** Value that configures or reports settings for this contract. */
1024
- settings: PmSettings;
1024
+ settings:PmSettings;
1025
1025
  /** Value that configures or reports model for this contract. */
1026
- model: string;
1027
- [key: string]: unknown;
1026
+ model:string;
1027
+ [key:string]:unknown;
1028
1028
  }
1029
1029
  /** Documents the search provider embed context payload exchanged by command, SDK, and package integrations. */
1030
1030
  export interface SearchProviderEmbedContext {
1031
1031
  /** Value that configures or reports input for this contract. */
1032
- input: string;
1032
+ input:string;
1033
1033
  /** Value that configures or reports settings for this contract. */
1034
- settings: PmSettings;
1034
+ settings:PmSettings;
1035
1035
  /** Value that configures or reports model for this contract. */
1036
- model: string;
1037
- [key: string]: unknown;
1036
+ model:string;
1037
+ [key:string]:unknown;
1038
1038
  }
1039
1039
  /** Documents the search provider definition payload exchanged by command, SDK, and package integrations. */
1040
1040
  export interface SearchProviderDefinition {
1041
1041
  /** Value that configures or reports name for this contract. */
1042
- name: string;
1042
+ name:string;
1043
1043
  /** Value that configures or reports query for this contract. */
1044
- query?: (context: SearchProviderQueryContext) => SearchProviderQueryResult | Promise<SearchProviderQueryResult>;
1044
+ query?:(context:SearchProviderQueryContext) => SearchProviderQueryResult | Promise<SearchProviderQueryResult>;
1045
1045
  /** Value that configures or reports query expansion for this contract. */
1046
- queryExpansion?: (context: SearchProviderQueryExpansionContext) => SearchProviderQueryExpansionResult | Promise<SearchProviderQueryExpansionResult>;
1046
+ queryExpansion?:(context:SearchProviderQueryExpansionContext) => SearchProviderQueryExpansionResult | Promise<SearchProviderQueryExpansionResult>;
1047
1047
  /** Value that configures or reports query expansion for this contract. */
1048
- query_expansion?: (context: SearchProviderQueryExpansionContext) => SearchProviderQueryExpansionResult | Promise<SearchProviderQueryExpansionResult>;
1048
+ query_expansion?:(context:SearchProviderQueryExpansionContext) => SearchProviderQueryExpansionResult | Promise<SearchProviderQueryExpansionResult>;
1049
1049
  /** Value that configures or reports rerank for this contract. */
1050
- rerank?: (context: SearchProviderRerankContext) => SearchProviderRerankResult | Promise<SearchProviderRerankResult>;
1050
+ rerank?:(context:SearchProviderRerankContext) => SearchProviderRerankResult | Promise<SearchProviderRerankResult>;
1051
1051
  /** Value that configures or reports embed batch for this contract. */
1052
- embedBatch?: (context: SearchProviderEmbedBatchContext) => number[][] | Promise<number[][]>;
1052
+ embedBatch?:(context:SearchProviderEmbedBatchContext) => number[][] | Promise<number[][]>;
1053
1053
  /** Value that configures or reports embed batch for this contract. */
1054
- embed_batch?: (context: SearchProviderEmbedBatchContext) => number[][] | Promise<number[][]>;
1054
+ embed_batch?:(context:SearchProviderEmbedBatchContext) => number[][] | Promise<number[][]>;
1055
1055
  /** Value that configures or reports embed for this contract. */
1056
- embed?: (context: SearchProviderEmbedContext) => number[] | Promise<number[]>;
1057
- [key: string]: unknown;
1056
+ embed?:(context:SearchProviderEmbedContext) => number[] | Promise<number[]>;
1057
+ [key:string]:unknown;
1058
1058
  }
1059
1059
  /** Documents the vector store query hit payload exchanged by command, SDK, and package integrations. */
1060
1060
  export interface VectorStoreQueryHit {
1061
1061
  /** Stable identifier used to reference this record across commands and storage. */
1062
- id: string;
1062
+ id:string;
1063
1063
  /** Value that configures or reports score for this contract. */
1064
- score: number;
1064
+ score:number;
1065
1065
  /** Value that configures or reports payload for this contract. */
1066
- payload?: Record<string, unknown>;
1067
- [key: string]: unknown;
1066
+ payload?:Record<string,unknown>;
1067
+ [key:string]:unknown;
1068
1068
  }
1069
1069
  /** Documents the vector store query context payload exchanged by command, SDK, and package integrations. */
1070
1070
  export interface VectorStoreQueryContext {
1071
1071
  /** Value that configures or reports vector for this contract. */
1072
- vector: number[];
1072
+ vector:number[];
1073
1073
  /** Value that configures or reports limit for this contract. */
1074
- limit: number;
1074
+ limit:number;
1075
1075
  /** Value that configures or reports settings for this contract. */
1076
- settings: PmSettings;
1077
- [key: string]: unknown;
1076
+ settings:PmSettings;
1077
+ [key:string]:unknown;
1078
1078
  }
1079
1079
  /** Documents the vector store upsert point payload exchanged by command, SDK, and package integrations. */
1080
1080
  export interface VectorStoreUpsertPoint {
1081
1081
  /** Stable identifier used to reference this record across commands and storage. */
1082
- id: string;
1082
+ id:string;
1083
1083
  /** Value that configures or reports vector for this contract. */
1084
- vector: number[];
1084
+ vector:number[];
1085
1085
  /** Value that configures or reports payload for this contract. */
1086
- payload?: Record<string, unknown>;
1087
- [key: string]: unknown;
1086
+ payload?:Record<string,unknown>;
1087
+ [key:string]:unknown;
1088
1088
  }
1089
1089
  /** Documents the vector store upsert context payload exchanged by command, SDK, and package integrations. */
1090
1090
  export interface VectorStoreUpsertContext {
1091
1091
  /** Value that configures or reports points for this contract. */
1092
- points: VectorStoreUpsertPoint[];
1092
+ points:VectorStoreUpsertPoint[];
1093
1093
  /** Value that configures or reports settings for this contract. */
1094
- settings: PmSettings;
1095
- [key: string]: unknown;
1094
+ settings:PmSettings;
1095
+ [key:string]:unknown;
1096
1096
  }
1097
1097
  /** Documents the vector store delete context payload exchanged by command, SDK, and package integrations. */
1098
1098
  export interface VectorStoreDeleteContext {
1099
1099
  /** Value that configures or reports ids for this contract. */
1100
- ids: string[];
1100
+ ids:string[];
1101
1101
  /** Value that configures or reports settings for this contract. */
1102
- settings: PmSettings;
1103
- [key: string]: unknown;
1102
+ settings:PmSettings;
1103
+ [key:string]:unknown;
1104
1104
  }
1105
1105
  /** Documents the vector store adapter definition payload exchanged by command, SDK, and package integrations. */
1106
1106
  export interface VectorStoreAdapterDefinition {
1107
1107
  /** Value that configures or reports name for this contract. */
1108
- name: string;
1108
+ name:string;
1109
1109
  /** Value that configures or reports query for this contract. */
1110
- query?: (context: VectorStoreQueryContext) => VectorStoreQueryHit[] | Promise<VectorStoreQueryHit[]>;
1110
+ query?:(context:VectorStoreQueryContext) => VectorStoreQueryHit[] | Promise<VectorStoreQueryHit[]>;
1111
1111
  /** Value that configures or reports upsert for this contract. */
1112
- upsert?: (context: VectorStoreUpsertContext) => unknown | Promise<unknown>;
1112
+ upsert?:(context:VectorStoreUpsertContext) => unknown | Promise<unknown>;
1113
1113
  /** Value that configures or reports delete for this contract. */
1114
- delete?: (context: VectorStoreDeleteContext) => unknown | Promise<unknown>;
1115
- [key: string]: unknown;
1114
+ delete?:(context:VectorStoreDeleteContext) => unknown | Promise<unknown>;
1115
+ [key:string]:unknown;
1116
1116
  }
1117
1117
  /** Cost classes let lifecycle gates reject expensive provider work before invoking it. */
1118
1118
  export type AssuranceMeasurementProviderCostClass = "low" | "medium" | "high";
1119
1119
  /** JSON-compatible parameter contract for one provider measurement key. */
1120
1120
  export interface AssuranceMeasurementProviderParameterDefinition {
1121
1121
  /** Parameter value kind. */
1122
- type: "string" | "number" | "boolean";
1122
+ type:"string" | "number" | "boolean";
1123
1123
  /** Whether callers must supply the parameter. */
1124
- required?: boolean;
1124
+ required?:boolean;
1125
1125
  /** Human-readable parameter intent. */
1126
- description?: string;
1126
+ description?:string;
1127
1127
  }
1128
1128
  /** Serializable schema for one measurement key owned by a provider. */
1129
1129
  export interface AssuranceMeasurementProviderKeyDefinition {
1130
1130
  /** Value kind returned by the resolver. */
1131
- value_type: "number" | "string_set";
1131
+ value_type:"number" | "string_set";
1132
1132
  /** Human-readable metric intent. */
1133
- description?: string;
1133
+ description?:string;
1134
1134
  /** Accepted provider parameters. Unknown parameters are rejected. */
1135
- parameters?: Record<string, AssuranceMeasurementProviderParameterDefinition>;
1135
+ parameters?:Record<string,AssuranceMeasurementProviderParameterDefinition>;
1136
1136
  }
1137
1137
  /** Runtime request supplied to an extension-owned assurance provider. */
1138
1138
  export interface AssuranceMeasurementProviderContext extends PortableWorkspaceContext {
1139
1139
  /** Provider id selected by the measurement declaration. */
1140
- provider: string;
1140
+ provider:string;
1141
1141
  /** Provider-owned metric key. */
1142
- key: string;
1142
+ key:string;
1143
1143
  /** Validated provider parameters. */
1144
- parameters: Record<string, string | number | boolean | null>;
1144
+ parameters:Record<string,string | number | boolean | null>;
1145
1145
  /** Gate trigger that authorized this invocation. */
1146
- trigger: string;
1146
+ trigger:string;
1147
1147
  /** Tracker root bound to the active command or SDK request. */
1148
- pm_root: string;
1148
+ pm_root:string;
1149
1149
  }
1150
1150
  /** Result returned by an extension-owned assurance provider. */
1151
1151
  export interface AssuranceMeasurementProviderResult {
1152
1152
  /** Finite numeric value or deterministic labelled set. */
1153
- value: number | string[];
1153
+ value:number | string[];
1154
1154
  /** Population denominator represented by the metric. */
1155
- population_size: number;
1155
+ population_size:number;
1156
1156
  /** Abstract compute units charged by the provider. */
1157
- cost: number;
1157
+ cost:number;
1158
1158
  /** Optional stable contributor ids or labels. */
1159
- contributors?: string[];
1159
+ contributors?:string[];
1160
1160
  }
1161
1161
  /** Extension registration for an open assurance measurement vocabulary. */
1162
1162
  export interface AssuranceMeasurementProviderDefinition {
1163
1163
  /** Stable provider id used by measurement declarations and gate allow-lists. */
1164
- id: string;
1164
+ id:string;
1165
1165
  /** Serializable metric-key schema. */
1166
- keys: Record<string, AssuranceMeasurementProviderKeyDefinition>;
1166
+ keys:Record<string,AssuranceMeasurementProviderKeyDefinition>;
1167
1167
  /** Coarse execution cost used by trigger policy before invocation. */
1168
- cost_class: AssuranceMeasurementProviderCostClass;
1168
+ cost_class:AssuranceMeasurementProviderCostClass;
1169
1169
  /** Whether the resolver can access the network. */
1170
- network: boolean;
1170
+ network:boolean;
1171
1171
  /** Maximum host wait for one resolver call. */
1172
- timeout_ms?: number;
1172
+ timeout_ms?:number;
1173
1173
  /** Resolve one declared key. */
1174
- resolve(context: AssuranceMeasurementProviderContext): AssuranceMeasurementProviderResult | Promise<AssuranceMeasurementProviderResult>;
1174
+ resolve(context:AssuranceMeasurementProviderContext):AssuranceMeasurementProviderResult | Promise<AssuranceMeasurementProviderResult>;
1175
1175
  }
1176
1176
  /** Documents the registered extension command override payload exchanged by command, SDK, and package integrations. */
1177
1177
  export interface RegisteredExtensionCommandOverride {
1178
1178
  /** Value that configures or reports layer for this contract. */
1179
- layer: ExtensionLayer;
1179
+ layer:ExtensionLayer;
1180
1180
  /** Value that configures or reports name for this contract. */
1181
- name: string;
1181
+ name:string;
1182
1182
  /** Value that configures or reports command for this contract. */
1183
- command: string;
1183
+ command:string;
1184
1184
  /** Value that configures or reports run for this contract. */
1185
- run: CommandOverride;
1185
+ run:CommandOverride;
1186
1186
  }
1187
1187
  /** Documents the registered extension command handler payload exchanged by command, SDK, and package integrations. */
1188
1188
  export interface RegisteredExtensionCommandHandler {
1189
1189
  /** Value that configures or reports layer for this contract. */
1190
- layer: ExtensionLayer;
1190
+ layer:ExtensionLayer;
1191
1191
  /** Value that configures or reports name for this contract. */
1192
- name: string;
1192
+ name:string;
1193
1193
  /** Value that configures or reports command for this contract. */
1194
- command: string;
1194
+ command:string;
1195
1195
  /** Value that configures or reports run for this contract. */
1196
- run: CommandHandler;
1196
+ run:CommandHandler;
1197
1197
  }
1198
1198
  /** Documents the registered extension parser override payload exchanged by command, SDK, and package integrations. */
1199
1199
  export interface RegisteredExtensionParserOverride {
1200
1200
  /** Value that configures or reports layer for this contract. */
1201
- layer: ExtensionLayer;
1201
+ layer:ExtensionLayer;
1202
1202
  /** Value that configures or reports name for this contract. */
1203
- name: string;
1203
+ name:string;
1204
1204
  /** Value that configures or reports command for this contract. */
1205
- command: string;
1205
+ command:string;
1206
1206
  /** Value that configures or reports run for this contract. */
1207
- run: ParserOverride;
1207
+ run:ParserOverride;
1208
1208
  }
1209
1209
  /** Documents the registered extension preflight override payload exchanged by command, SDK, and package integrations. */
1210
1210
  export interface RegisteredExtensionPreflightOverride {
1211
1211
  /** Value that configures or reports layer for this contract. */
1212
- layer: ExtensionLayer;
1212
+ layer:ExtensionLayer;
1213
1213
  /** Value that configures or reports name for this contract. */
1214
- name: string;
1214
+ name:string;
1215
1215
  /** Value that configures or reports run for this contract. */
1216
- run: PreflightOverride;
1216
+ run:PreflightOverride;
1217
1217
  /** Normalized command paths owned by this preflight override. */
1218
- commands?: string[];
1218
+ commands?:string[];
1219
1219
  }
1220
1220
  /** Documents the registered extension service override payload exchanged by command, SDK, and package integrations. */
1221
1221
  export interface RegisteredExtensionServiceOverride {
1222
1222
  /** Value that configures or reports layer for this contract. */
1223
- layer: ExtensionLayer;
1223
+ layer:ExtensionLayer;
1224
1224
  /** Value that configures or reports name for this contract. */
1225
- name: string;
1225
+ name:string;
1226
1226
  /** Value that configures or reports service for this contract. */
1227
- service: ExtensionServiceName;
1227
+ service:ExtensionServiceName;
1228
1228
  /** Value that configures or reports run for this contract. */
1229
- run: ServiceOverride;
1229
+ run:ServiceOverride;
1230
1230
  /** Whether the host forbids this callback from handling the service payload. */
1231
- passThrough?: boolean;
1231
+ passThrough?:boolean;
1232
1232
  }
1233
1233
  /** Documents the registered extension renderer override payload exchanged by command, SDK, and package integrations. */
1234
1234
  export interface RegisteredExtensionRendererOverride {
1235
1235
  /** Value that configures or reports layer for this contract. */
1236
- layer: ExtensionLayer;
1236
+ layer:ExtensionLayer;
1237
1237
  /** Value that configures or reports name for this contract. */
1238
- name: string;
1238
+ name:string;
1239
1239
  /** Value that configures or reports format for this contract. */
1240
- format: OutputRendererFormat;
1240
+ format:OutputRendererFormat;
1241
1241
  /** Value that configures or reports run for this contract. */
1242
- run: RendererOverride;
1242
+ run:RendererOverride;
1243
1243
  /** Normalized command paths owned by this renderer. */
1244
- commands?: string[];
1244
+ commands?:string[];
1245
1245
  /** Optional result predicate enforced by the host before invoking the renderer. */
1246
- resultDiscriminator?: (result: unknown) => boolean;
1246
+ resultDiscriminator?:(result:unknown) => boolean;
1247
1247
  }
1248
1248
  /** Documents the extension command registry payload exchanged by command, SDK, and package integrations. */
1249
1249
  export interface ExtensionCommandRegistry {
1250
1250
  /** Value that configures or reports overrides for this contract. */
1251
- overrides: RegisteredExtensionCommandOverride[];
1251
+ overrides:RegisteredExtensionCommandOverride[];
1252
1252
  /** Value that configures or reports handlers for this contract. */
1253
- handlers: RegisteredExtensionCommandHandler[];
1253
+ handlers:RegisteredExtensionCommandHandler[];
1254
1254
  }
1255
1255
  /** Documents the extension parser registry payload exchanged by command, SDK, and package integrations. */
1256
1256
  export interface ExtensionParserRegistry {
1257
1257
  /** Value that configures or reports overrides for this contract. */
1258
- overrides: RegisteredExtensionParserOverride[];
1258
+ overrides:RegisteredExtensionParserOverride[];
1259
1259
  }
1260
1260
  /** Documents the extension preflight registry payload exchanged by command, SDK, and package integrations. */
1261
1261
  export interface ExtensionPreflightRegistry {
1262
1262
  /** Value that configures or reports overrides for this contract. */
1263
- overrides: RegisteredExtensionPreflightOverride[];
1263
+ overrides:RegisteredExtensionPreflightOverride[];
1264
1264
  }
1265
1265
  /** Documents the extension service registry payload exchanged by command, SDK, and package integrations. */
1266
1266
  export interface ExtensionServiceRegistry {
1267
1267
  /** Value that configures or reports overrides for this contract. */
1268
- overrides: RegisteredExtensionServiceOverride[];
1268
+ overrides:RegisteredExtensionServiceOverride[];
1269
1269
  }
1270
1270
  /** Documents the extension renderer registry payload exchanged by command, SDK, and package integrations. */
1271
1271
  export interface ExtensionRendererRegistry {
1272
1272
  /** Value that configures or reports overrides for this contract. */
1273
- overrides: RegisteredExtensionRendererOverride[];
1273
+ overrides:RegisteredExtensionRendererOverride[];
1274
1274
  }
1275
1275
  /** Documents the registered extension flag definitions payload exchanged by command, SDK, and package integrations. */
1276
1276
  export interface RegisteredExtensionFlagDefinitions {
1277
1277
  /** Value that configures or reports layer for this contract. */
1278
- layer: ExtensionLayer;
1278
+ layer:ExtensionLayer;
1279
1279
  /** Value that configures or reports name for this contract. */
1280
- name: string;
1280
+ name:string;
1281
1281
  /** Value that configures or reports target command for this contract. */
1282
- target_command: string;
1282
+ target_command:string;
1283
1283
  /** Value that configures or reports flags for this contract. */
1284
- flags: FlagDefinition[];
1284
+ flags:FlagDefinition[];
1285
1285
  }
1286
1286
  /** Documents the registered extension command definition payload exchanged by command, SDK, and package integrations. */
1287
1287
  export interface RegisteredExtensionCommandDefinition {
1288
1288
  /** Validated read-only output declaration, snapshotted during activation. */
1289
- read_output?: ExtensionCommandReadOutput;
1289
+ read_output?:ExtensionCommandReadOutput;
1290
1290
  /** Value that configures or reports layer for this contract. */
1291
- layer: ExtensionLayer;
1291
+ layer:ExtensionLayer;
1292
1292
  /** Value that configures or reports name for this contract. */
1293
- name: string;
1293
+ name:string;
1294
1294
  /** Value that configures or reports source package for this contract. */
1295
- source_package?: string;
1295
+ source_package?:string;
1296
1296
  /** Value that configures or reports command for this contract. */
1297
- command: string;
1297
+ command:string;
1298
1298
  /** Value that configures or reports action for this contract. */
1299
- action: string;
1299
+ action:string;
1300
1300
  /** Value that configures or reports description for this contract. */
1301
- description?: string;
1301
+ description?:string;
1302
1302
  /** Value that configures or reports intent for this contract. */
1303
- intent?: string;
1303
+ intent?:string;
1304
1304
  /** Value that configures or reports examples for this contract. */
1305
- examples: string[];
1305
+ examples:string[];
1306
1306
  /** Value that configures or reports failure hints for this contract. */
1307
- failure_hints: string[];
1307
+ failure_hints:string[];
1308
1308
  /** Value that configures or reports arguments for this contract. */
1309
- arguments: ExtensionCommandArgumentDefinition[];
1309
+ arguments:ExtensionCommandArgumentDefinition[];
1310
1310
  /** Minimum agent surface tier that should advertise this command. */
1311
- tier?: "core" | "standard" | "full" | "internal";
1311
+ tier?:"core" | "standard" | "full" | "internal";
1312
1312
  /** Capability family used by generated agent routing surfaces. */
1313
- family?: ExtensionCommandCapabilityFamily;
1313
+ family?:ExtensionCommandCapabilityFamily;
1314
1314
  }
1315
1315
  /** Documents the registered extension schema field definitions payload exchanged by command, SDK, and package integrations. */
1316
1316
  export interface RegisteredExtensionSchemaFieldDefinitions {
1317
1317
  /** Value that configures or reports layer for this contract. */
1318
- layer: ExtensionLayer;
1318
+ layer:ExtensionLayer;
1319
1319
  /** Value that configures or reports name for this contract. */
1320
- name: string;
1320
+ name:string;
1321
1321
  /** Value that configures or reports fields for this contract. */
1322
- fields: SchemaFieldDefinition[];
1322
+ fields:SchemaFieldDefinition[];
1323
1323
  }
1324
1324
  /** Documents the registered extension schema item type definitions payload exchanged by command, SDK, and package integrations. */
1325
1325
  export interface RegisteredExtensionSchemaItemTypeDefinitions {
1326
1326
  /** Value that configures or reports layer for this contract. */
1327
- layer: ExtensionLayer;
1327
+ layer:ExtensionLayer;
1328
1328
  /** Value that configures or reports name for this contract. */
1329
- name: string;
1329
+ name:string;
1330
1330
  /** Value that configures or reports types for this contract. */
1331
- types: SchemaItemTypeDefinition[];
1331
+ types:SchemaItemTypeDefinition[];
1332
1332
  }
1333
1333
  /** Relationship ontology definitions contributed by one active extension. */
1334
1334
  export interface RegisteredExtensionRelationshipKindDefinitions {
1335
1335
  /** Extension layer that owns these definitions. */
1336
- layer: ExtensionLayer;
1336
+ layer:ExtensionLayer;
1337
1337
  /** Extension name that owns these definitions. */
1338
- name: string;
1338
+ name:string;
1339
1339
  /** Validated immutable relationship-kind definitions. */
1340
- definitions: RelationshipKindDefinition[];
1340
+ definitions:RelationshipKindDefinition[];
1341
1341
  }
1342
1342
  /** Documents the registered extension schema migration definition payload exchanged by command, SDK, and package integrations. */
1343
1343
  export interface RegisteredExtensionSchemaMigrationDefinition {
1344
1344
  /** Value that configures or reports layer for this contract. */
1345
- layer: ExtensionLayer;
1345
+ layer:ExtensionLayer;
1346
1346
  /** Value that configures or reports name for this contract. */
1347
- name: string;
1347
+ name:string;
1348
1348
  /** Value that configures or reports definition for this contract. */
1349
- definition: SchemaMigrationDefinition;
1349
+ definition:SchemaMigrationDefinition;
1350
1350
  /** Value that configures or reports runtime definition for this contract. */
1351
- runtime_definition: SchemaMigrationDefinition;
1351
+ runtime_definition:SchemaMigrationDefinition;
1352
1352
  }
1353
1353
  /** Documents the registered extension importer payload exchanged by command, SDK, and package integrations. */
1354
1354
  export interface RegisteredExtensionImporter {
1355
1355
  /** Value that configures or reports layer for this contract. */
1356
- layer: ExtensionLayer;
1356
+ layer:ExtensionLayer;
1357
1357
  /** Value that configures or reports name for this contract. */
1358
- name: string;
1358
+ name:string;
1359
1359
  /** Value that configures or reports importer for this contract. */
1360
- importer: string;
1360
+ importer:string;
1361
1361
  }
1362
1362
  /** Documents the registered extension exporter payload exchanged by command, SDK, and package integrations. */
1363
1363
  export interface RegisteredExtensionExporter {
1364
1364
  /** Value that configures or reports layer for this contract. */
1365
- layer: ExtensionLayer;
1365
+ layer:ExtensionLayer;
1366
1366
  /** Value that configures or reports name for this contract. */
1367
- name: string;
1367
+ name:string;
1368
1368
  /** Value that configures or reports exporter for this contract. */
1369
- exporter: string;
1369
+ exporter:string;
1370
1370
  /** Declared artifact channel and normalized receipt policy. */
1371
- output?: RegisteredExporterArtifactOutputContract;
1371
+ output?:RegisteredExporterArtifactOutputContract;
1372
1372
  }
1373
1373
  /** Documents the registered extension search provider payload exchanged by command, SDK, and package integrations. */
1374
1374
  export interface RegisteredExtensionSearchProvider {
1375
1375
  /** Value that configures or reports layer for this contract. */
1376
- layer: ExtensionLayer;
1376
+ layer:ExtensionLayer;
1377
1377
  /** Value that configures or reports name for this contract. */
1378
- name: string;
1378
+ name:string;
1379
1379
  /** Value that configures or reports definition for this contract. */
1380
- definition: SearchProviderDefinition;
1380
+ definition:SearchProviderDefinition;
1381
1381
  /** Value that configures or reports runtime definition for this contract. */
1382
- runtime_definition: SearchProviderDefinition;
1382
+ runtime_definition:SearchProviderDefinition;
1383
1383
  }
1384
1384
  /** Documents the registered extension vector store adapter payload exchanged by command, SDK, and package integrations. */
1385
1385
  export interface RegisteredExtensionVectorStoreAdapter {
1386
1386
  /** Value that configures or reports layer for this contract. */
1387
- layer: ExtensionLayer;
1387
+ layer:ExtensionLayer;
1388
1388
  /** Value that configures or reports name for this contract. */
1389
- name: string;
1389
+ name:string;
1390
1390
  /** Value that configures or reports definition for this contract. */
1391
- definition: VectorStoreAdapterDefinition;
1391
+ definition:VectorStoreAdapterDefinition;
1392
1392
  /** Value that configures or reports runtime definition for this contract. */
1393
- runtime_definition: VectorStoreAdapterDefinition;
1393
+ runtime_definition:VectorStoreAdapterDefinition;
1394
1394
  }
1395
1395
  /** One validated assurance measurement provider registered by an active extension. */
1396
1396
  export interface RegisteredExtensionAssuranceMeasurementProvider {
1397
1397
  /** Extension layer owning the provider. */
1398
- layer: ExtensionLayer;
1398
+ layer:ExtensionLayer;
1399
1399
  /** Extension name owning the provider. */
1400
- name: string;
1400
+ name:string;
1401
1401
  /** Whether the owning manifest grants network access. */
1402
- network_permission: boolean;
1402
+ network_permission:boolean;
1403
1403
  /** Serializable definition used by doctor, inventory, and policy surfaces. */
1404
- definition: Omit<AssuranceMeasurementProviderDefinition, "resolve"> & {
1405
- resolve: "[Function]";
1404
+ definition:Omit<AssuranceMeasurementProviderDefinition,"resolve"> & {
1405
+ resolve:"[Function]";
1406
1406
  };
1407
1407
  /** Runtime definition containing the executable resolver. */
1408
- runtime_definition: AssuranceMeasurementProviderDefinition;
1408
+ runtime_definition:AssuranceMeasurementProviderDefinition;
1409
1409
  }
1410
1410
  /**
1411
1411
  * Documents a project profile contributed by an extension via
@@ -1420,382 +1420,382 @@ runtime_definition: AssuranceMeasurementProviderDefinition;
1420
1420
  */
1421
1421
  export interface RegisteredExtensionProjectProfile {
1422
1422
  /** Value that configures or reports layer for this contract. */
1423
- layer: ExtensionLayer;
1423
+ layer:ExtensionLayer;
1424
1424
  /** Value that configures or reports name for this contract. */
1425
- name: string;
1425
+ name:string;
1426
1426
  /** Value that configures or reports profile for this contract. */
1427
- profile: ProjectProfileDefinition;
1427
+ profile:ProjectProfileDefinition;
1428
1428
  }
1429
1429
  /** Documents the extension registration registry payload exchanged by command, SDK, and package integrations. */
1430
1430
  export interface ExtensionRegistrationRegistry {
1431
1431
  /** Value that configures or reports commands for this contract. */
1432
- commands: RegisteredExtensionCommandDefinition[];
1432
+ commands:RegisteredExtensionCommandDefinition[];
1433
1433
  /** Value that configures or reports flags for this contract. */
1434
- flags: RegisteredExtensionFlagDefinitions[];
1434
+ flags:RegisteredExtensionFlagDefinitions[];
1435
1435
  /** Value that configures or reports item fields for this contract. */
1436
- item_fields: RegisteredExtensionSchemaFieldDefinitions[];
1436
+ item_fields:RegisteredExtensionSchemaFieldDefinitions[];
1437
1437
  /** Value that configures or reports item types for this contract. */
1438
- item_types: RegisteredExtensionSchemaItemTypeDefinitions[];
1438
+ item_types:RegisteredExtensionSchemaItemTypeDefinitions[];
1439
1439
  /** Value that configures application-defined relationship semantics. */
1440
- relationship_kinds: RegisteredExtensionRelationshipKindDefinitions[];
1440
+ relationship_kinds:RegisteredExtensionRelationshipKindDefinitions[];
1441
1441
  /** Value that configures or reports migrations for this contract. */
1442
- migrations: RegisteredExtensionSchemaMigrationDefinition[];
1442
+ migrations:RegisteredExtensionSchemaMigrationDefinition[];
1443
1443
  /** Value that configures or reports profiles for this contract. */
1444
- profiles: RegisteredExtensionProjectProfile[];
1444
+ profiles:RegisteredExtensionProjectProfile[];
1445
1445
  /** Value that configures or reports importers for this contract. */
1446
- importers: RegisteredExtensionImporter[];
1446
+ importers:RegisteredExtensionImporter[];
1447
1447
  /** Value that configures or reports exporters for this contract. */
1448
- exporters: RegisteredExtensionExporter[];
1448
+ exporters:RegisteredExtensionExporter[];
1449
1449
  /** Value that configures or reports search providers for this contract. */
1450
- search_providers: RegisteredExtensionSearchProvider[];
1450
+ search_providers:RegisteredExtensionSearchProvider[];
1451
1451
  /** Value that configures or reports vector store adapters for this contract. */
1452
- vector_store_adapters: RegisteredExtensionVectorStoreAdapter[];
1452
+ vector_store_adapters:RegisteredExtensionVectorStoreAdapter[];
1453
1453
  /** Extension-owned assurance measurement providers. */
1454
- assurance_providers: RegisteredExtensionAssuranceMeasurementProvider[];
1454
+ assurance_providers:RegisteredExtensionAssuranceMeasurementProvider[];
1455
1455
  }
1456
1456
  /** Documents the extension registration counts payload exchanged by command, SDK, and package integrations. */
1457
1457
  export interface ExtensionRegistrationCounts {
1458
1458
  /** Value that configures or reports commands for this contract. */
1459
- commands: number;
1459
+ commands:number;
1460
1460
  /** Value that configures or reports flags for this contract. */
1461
- flags: number;
1461
+ flags:number;
1462
1462
  /** Value that configures or reports item fields for this contract. */
1463
- item_fields: number;
1463
+ item_fields:number;
1464
1464
  /** Value that configures or reports item types for this contract. */
1465
- item_types: number;
1465
+ item_types:number;
1466
1466
  /** Number of application-defined relationship kinds. */
1467
- relationship_kinds?: number;
1467
+ relationship_kinds?:number;
1468
1468
  /** Value that configures or reports migrations for this contract. */
1469
- migrations: number;
1469
+ migrations:number;
1470
1470
  /** Value that configures or reports profiles for this contract. */
1471
- profiles: number;
1471
+ profiles:number;
1472
1472
  /** Value that configures or reports importers for this contract. */
1473
- importers: number;
1473
+ importers:number;
1474
1474
  /** Value that configures or reports exporters for this contract. */
1475
- exporters: number;
1475
+ exporters:number;
1476
1476
  /** Value that configures or reports search providers for this contract. */
1477
- search_providers: number;
1477
+ search_providers:number;
1478
1478
  /** Value that configures or reports vector store adapters for this contract. */
1479
- vector_store_adapters: number;
1479
+ vector_store_adapters:number;
1480
1480
  /** Number of registered assurance measurement providers. */
1481
- assurance_providers?: number;
1481
+ assurance_providers?:number;
1482
1482
  }
1483
1483
  /** Read-only identity an extension's `activate(api)` receives about itself, so authors can emit self-identifying logs, gate on their own version, and build better error messages without re-reading the on-disk manifest or duplicating metadata in-module. Exposed as `api.extension`. */
1484
1484
  export interface ExtensionSelfIdentity {
1485
1485
  /** Value that configures or reports name for this contract. */
1486
- readonly name: string;
1486
+ readonly name:string;
1487
1487
  /** Value that configures or reports layer for this contract. */
1488
- readonly layer: ExtensionLayer;
1488
+ readonly layer:ExtensionLayer;
1489
1489
  /** Value that configures or reports version for this contract. */
1490
- readonly version: string;
1490
+ readonly version:string;
1491
1491
  /** Value that configures or reports capabilities for this contract. */
1492
- readonly capabilities: readonly ExtensionCapability[];
1492
+ readonly capabilities:readonly ExtensionCapability[];
1493
1493
  /** Value that configures or reports pm min version for this contract. */
1494
- readonly pm_min_version?: string;
1494
+ readonly pm_min_version?:string;
1495
1495
  /** Value that configures or reports pm max version for this contract. */
1496
- readonly pm_max_version?: string;
1496
+ readonly pm_max_version?:string;
1497
1497
  /** Value that configures or reports source package for this contract. */
1498
- readonly source_package?: string;
1498
+ readonly source_package?:string;
1499
1499
  }
1500
1500
  /** Documents the extension api payload exchanged by command, SDK, and package integrations. */
1501
1501
  export interface ExtensionApi {
1502
1502
  /** Read-only identity of the extension this `api` was created for. */
1503
- readonly extension: ExtensionSelfIdentity;
1503
+ readonly extension:ExtensionSelfIdentity;
1504
1504
  /** Value that configures or reports register command for this contract. */
1505
- registerCommand(command: string, override: CommandOverride): void;
1505
+ registerCommand(command:string,override:CommandOverride):void;
1506
1506
  /** Value that configures or reports register command for this contract. */
1507
- registerCommand(definition: CommandDefinition): void;
1507
+ registerCommand(definition:CommandDefinition):void;
1508
1508
  /** Value that configures or reports register parser for this contract. */
1509
- registerParser(command: string, override: ParserOverride): void;
1509
+ registerParser(command:string,override:ParserOverride):void;
1510
1510
  /** Value that configures or reports register preflight for this contract. */
1511
- registerPreflight(override: PreflightOverride | ScopedPreflightOverrideDefinition): void;
1511
+ registerPreflight(override:PreflightOverride | ScopedPreflightOverrideDefinition):void;
1512
1512
  /** Value that configures or reports register service for this contract. */
1513
- registerService(service: ExtensionServiceName, override: ServiceOverride, ownership?: ServiceOverrideOwnership): void;
1513
+ registerService(service:ExtensionServiceName,override:ServiceOverride,ownership?:ServiceOverrideOwnership):void;
1514
1514
  /** Value that configures or reports register flags for this contract. */
1515
- registerFlags(targetCommand: string, flags: FlagDefinition[]): void;
1515
+ registerFlags(targetCommand:string,flags:FlagDefinition[]):void;
1516
1516
  /** Value that configures or reports register item fields for this contract. */
1517
- registerItemFields(fields: SchemaFieldDefinition[]): void;
1517
+ registerItemFields(fields:SchemaFieldDefinition[]):void;
1518
1518
  /** Value that configures or reports register item types for this contract. */
1519
- registerItemTypes(types: SchemaItemTypeDefinition[]): void;
1519
+ registerItemTypes(types:SchemaItemTypeDefinition[]):void;
1520
1520
  /** Register versioned relationship semantics consumed by every graph surface. */
1521
- registerRelationshipKinds(definitions: RelationshipKindDefinition[]): void;
1521
+ registerRelationshipKinds(definitions:RelationshipKindDefinition[]):void;
1522
1522
  /** Value that configures or reports register migration for this contract. */
1523
- registerMigration(definition: SchemaMigrationDefinition): void;
1523
+ registerMigration(definition:SchemaMigrationDefinition):void;
1524
1524
  /** Value that configures or reports register profile for this contract. */
1525
- registerProfile(profile: ProjectProfileRegistrationInput): void;
1525
+ registerProfile(profile:ProjectProfileRegistrationInput):void;
1526
1526
  /** Value that configures or reports register renderer for this contract. */
1527
- registerRenderer(format: OutputRendererFormat, renderer: RendererOverride, ownership?: RendererOverrideOwnership): void;
1527
+ registerRenderer(format:OutputRendererFormat,renderer:RendererOverride,ownership?:RendererOverrideOwnership):void;
1528
1528
  /** Value that configures or reports register importer for this contract. */
1529
- registerImporter(name: string, importer: Importer, options?: ImportExportRegistrationOptions): void;
1529
+ registerImporter(name:string,importer:Importer,options?:ImportExportRegistrationOptions):void;
1530
1530
  /** Value that configures or reports register exporter for this contract. */
1531
- registerExporter(name: string, exporter: Exporter, options?: ExporterRegistrationOptions): void;
1531
+ registerExporter(name:string,exporter:Exporter,options?:ExporterRegistrationOptions):void;
1532
1532
  /** Value that configures or reports register search provider for this contract. */
1533
- registerSearchProvider(provider: SearchProviderDefinition): void;
1533
+ registerSearchProvider(provider:SearchProviderDefinition):void;
1534
1534
  /** Value that configures or reports register vector store adapter for this contract. */
1535
- registerVectorStoreAdapter(adapter: VectorStoreAdapterDefinition): void;
1535
+ registerVectorStoreAdapter(adapter:VectorStoreAdapterDefinition):void;
1536
1536
  /** Register an assurance measurement provider through the services capability. */
1537
- registerAssuranceMeasurementProvider(provider: AssuranceMeasurementProviderDefinition): void;
1537
+ registerAssuranceMeasurementProvider(provider:AssuranceMeasurementProviderDefinition):void;
1538
1538
  /** Value that configures or reports hooks for this contract. */
1539
- hooks: {
1540
- beforeCommand(hook: BeforeCommandHook): void;
1541
- beforeMutation(hook: BeforeMutationHook): void;
1542
- afterCommand(hook: AfterCommandHook): void;
1543
- onWrite(hook: OnWriteHook): void;
1544
- onRead(hook: OnReadHook): void;
1545
- onIndex(hook: OnIndexHook): void;
1539
+ hooks:{
1540
+ beforeCommand(hook:BeforeCommandHook):void;
1541
+ beforeMutation(hook:BeforeMutationHook):void;
1542
+ afterCommand(hook:AfterCommandHook):void;
1543
+ onWrite(hook:OnWriteHook):void;
1544
+ onRead(hook:OnReadHook):void;
1545
+ onIndex(hook:OnIndexHook):void;
1546
1546
  };
1547
1547
  }
1548
1548
  /** Documents the failed extension activation payload exchanged by command, SDK, and package integrations. */
1549
1549
  export interface FailedExtensionActivation {
1550
1550
  /** Value that configures or reports layer for this contract. */
1551
- layer: ExtensionLayer;
1551
+ layer:ExtensionLayer;
1552
1552
  /** Value that configures or reports name for this contract. */
1553
- name: string;
1553
+ name:string;
1554
1554
  /** Filesystem path used for entry resolution. */
1555
- entry_path: string;
1555
+ entry_path:string;
1556
1556
  /** Value that configures or reports error for this contract. */
1557
- error: string;
1557
+ error:string;
1558
1558
  /** Value that configures or reports trace for this contract. */
1559
- trace?: ExtensionActivationFailureTrace;
1559
+ trace?:ExtensionActivationFailureTrace;
1560
1560
  }
1561
1561
  /** Documents the extension activation failure trace payload exchanged by command, SDK, and package integrations. */
1562
1562
  export interface ExtensionActivationFailureTrace {
1563
1563
  /** Value that configures or reports method for this contract. */
1564
- method: string;
1564
+ method:string;
1565
1565
  /** `-1` means the failure happened before a numbered registration was accepted. */
1566
- registration_index: number;
1566
+ registration_index:number;
1567
1567
  /** Value that configures or reports command for this contract. */
1568
- command?: string;
1568
+ command?:string;
1569
1569
  /** Value that configures or reports capability for this contract. */
1570
- capability?: ExtensionCapability;
1570
+ capability?:ExtensionCapability;
1571
1571
  /** Value that configures or reports missing capability for this contract. */
1572
- missing_capability?: ExtensionCapability;
1572
+ missing_capability?:ExtensionCapability;
1573
1573
  /** Value that configures or reports expected schema for this contract. */
1574
- expected_schema: string;
1574
+ expected_schema:string;
1575
1575
  /** Value that configures or reports received for this contract. */
1576
- received?: unknown;
1576
+ received?:unknown;
1577
1577
  /** Value that configures or reports hint for this contract. */
1578
- hint?: string;
1578
+ hint?:string;
1579
1579
  }
1580
1580
  /** Documents the extension activation result payload exchanged by command, SDK, and package integrations. */
1581
1581
  export interface ExtensionActivationResult {
1582
1582
  /** Value that configures or reports hooks for this contract. */
1583
- hooks: ExtensionHookRegistry;
1583
+ hooks:ExtensionHookRegistry;
1584
1584
  /** Value that configures or reports commands for this contract. */
1585
- commands: ExtensionCommandRegistry;
1585
+ commands:ExtensionCommandRegistry;
1586
1586
  /** Value that configures or reports parsers for this contract. */
1587
- parsers: ExtensionParserRegistry;
1587
+ parsers:ExtensionParserRegistry;
1588
1588
  /** Value that configures or reports preflight for this contract. */
1589
- preflight: ExtensionPreflightRegistry;
1589
+ preflight:ExtensionPreflightRegistry;
1590
1590
  /** Value that configures or reports services for this contract. */
1591
- services: ExtensionServiceRegistry;
1591
+ services:ExtensionServiceRegistry;
1592
1592
  /** Value that configures or reports renderers for this contract. */
1593
- renderers: ExtensionRendererRegistry;
1593
+ renderers:ExtensionRendererRegistry;
1594
1594
  /** Value that configures or reports registrations for this contract. */
1595
- registrations: ExtensionRegistrationRegistry;
1595
+ registrations:ExtensionRegistrationRegistry;
1596
1596
  /** Value that configures or reports failed for this contract. */
1597
- failed: FailedExtensionActivation[];
1597
+ failed:FailedExtensionActivation[];
1598
1598
  /** Value that configures or reports warnings for this contract. */
1599
- warnings: string[];
1599
+ warnings:string[];
1600
1600
  /** Value that configures or reports hook counts for this contract. */
1601
- hook_counts: {
1602
- before_command: number;
1603
- before_mutation: number;
1604
- after_command: number;
1605
- on_write: number;
1606
- on_read: number;
1607
- on_index: number;
1601
+ hook_counts:{
1602
+ before_command:number;
1603
+ before_mutation:number;
1604
+ after_command:number;
1605
+ on_write:number;
1606
+ on_read:number;
1607
+ on_index:number;
1608
1608
  };
1609
1609
  /** Number of command override entries represented by this result. */
1610
- command_override_count: number;
1610
+ command_override_count:number;
1611
1611
  /** Number of command handler entries represented by this result. */
1612
- command_handler_count: number;
1612
+ command_handler_count:number;
1613
1613
  /** Number of parser override entries represented by this result. */
1614
- parser_override_count: number;
1614
+ parser_override_count:number;
1615
1615
  /** Number of preflight override entries represented by this result. */
1616
- preflight_override_count: number;
1616
+ preflight_override_count:number;
1617
1617
  /** Number of service override entries represented by this result. */
1618
- service_override_count: number;
1618
+ service_override_count:number;
1619
1619
  /** Number of renderer override entries represented by this result. */
1620
- renderer_override_count: number;
1620
+ renderer_override_count:number;
1621
1621
  /** Value that configures or reports registration counts for this contract. */
1622
- registration_counts: ExtensionRegistrationCounts;
1622
+ registration_counts:ExtensionRegistrationCounts;
1623
1623
  }
1624
1624
  /** Documents the extension candidate payload exchanged by command, SDK, and package integrations. */
1625
1625
  export interface ExtensionCandidate {
1626
1626
  /** Value that configures or reports layer for this contract. */
1627
- layer: ExtensionLayer;
1627
+ layer:ExtensionLayer;
1628
1628
  /** Value that configures or reports directory for this contract. */
1629
- directory: string;
1629
+ directory:string;
1630
1630
  /** Filesystem path used for manifest resolution. */
1631
- manifest_path: string;
1631
+ manifest_path:string;
1632
1632
  /** Filesystem path used for entry resolution. */
1633
- entry_path: string;
1633
+ entry_path:string;
1634
1634
  /** Declarative package manifest consumed by the extension loader. */
1635
- manifest: ExtensionManifest;
1635
+ manifest:ExtensionManifest;
1636
1636
  /** Value that configures or reports source package for this contract. */
1637
- source_package?: string;
1637
+ source_package?:string;
1638
1638
  /** Install-source identities that can resolve this extension through package lifecycle commands. */
1639
- source_aliases?: string[];
1639
+ source_aliases?:string[];
1640
1640
  /** Persisted contribution inventory resolved without importing the module. */
1641
- contributions?: ExtensionContributionInventory;
1641
+ contributions?:ExtensionContributionInventory;
1642
1642
  }
1643
1643
  /** Documents the extension layer scan result payload exchanged by command, SDK, and package integrations. */
1644
1644
  export interface ExtensionLayerScanResult {
1645
1645
  /** Value that configures or reports diagnostics for this contract. */
1646
- diagnostics: ExtensionDiagnostic[];
1646
+ diagnostics:ExtensionDiagnostic[];
1647
1647
  /** Value that configures or reports warnings for this contract. */
1648
- warnings: string[];
1648
+ warnings:string[];
1649
1649
  /** Value that configures or reports candidates for this contract. */
1650
- candidates: ExtensionCandidate[];
1650
+ candidates:ExtensionCandidate[];
1651
1651
  }
1652
1652
  /** Documents the scanned extension directory payload exchanged by command, SDK, and package integrations. */
1653
1653
  export interface ScannedExtensionDirectory {
1654
1654
  /** Value that configures or reports diagnostic for this contract. */
1655
- diagnostic: ExtensionDiagnostic;
1655
+ diagnostic:ExtensionDiagnostic;
1656
1656
  /** Value that configures or reports warnings for this contract. */
1657
- warnings: string[];
1657
+ warnings:string[];
1658
1658
  /** Value that configures or reports candidate for this contract. */
1659
- candidate: ExtensionCandidate | null;
1659
+ candidate:ExtensionCandidate | null;
1660
1660
  }
1661
1661
  /** Documents the legacy extension capability alias mapping payload exchanged by command, SDK, and package integrations. */
1662
1662
  export interface LegacyExtensionCapabilityAliasMapping {
1663
1663
  /** Value that configures or reports alias for this contract. */
1664
- alias: string;
1664
+ alias:string;
1665
1665
  /** Value that configures or reports target for this contract. */
1666
- target: ExtensionCapability;
1666
+ target:ExtensionCapability;
1667
1667
  }
1668
1668
  /** Documents the discover extensions options payload exchanged by command, SDK, and package integrations. */
1669
1669
  export interface DiscoverExtensionsOptions {
1670
1670
  /** Value that configures or reports pm root for this contract. */
1671
- pmRoot: string;
1671
+ pmRoot:string;
1672
1672
  /** Value that configures or reports settings for this contract. */
1673
- settings: PmSettings;
1673
+ settings:PmSettings;
1674
1674
  /** Value that configures or reports cwd for this contract. */
1675
- cwd?: string;
1675
+ cwd?:string;
1676
1676
  /** Value that configures or reports no extensions for this contract. */
1677
- noExtensions?: boolean;
1677
+ noExtensions?:boolean;
1678
1678
  /** Value that configures or reports ignore global extensions for this contract. */
1679
- ignoreGlobalExtensions?: boolean;
1679
+ ignoreGlobalExtensions?:boolean;
1680
1680
  /** Value that configures or reports reload token for this contract. */
1681
- reload_token?: string;
1681
+ reload_token?:string;
1682
1682
  /** Value that configures or reports cache bust for this contract. */
1683
- cache_bust?: boolean;
1683
+ cache_bust?:boolean;
1684
1684
  /** Optional import-stage filter. Discovery still reports the full effective set, but `loadExtensions` imports only entries accepted by this predicate. */
1685
- extensionFilter?: (extension: EffectiveExtension) => boolean;
1685
+ extensionFilter?:(extension:EffectiveExtension) => boolean;
1686
1686
  /** Optional temporary root where each extension is copied before import, giving reinstall verification a fresh absolute module graph rather than cache-busting only the entry module URL. The caller owns cleanup after activation completes. */
1687
- module_graph_snapshot_root?: string;
1687
+ module_graph_snapshot_root?:string;
1688
1688
  }
1689
1689
  /** Documents the activatable extension payload exchanged by command, SDK, and package integrations. */
1690
1690
  export interface ActivatableExtension {
1691
1691
  /** Registers this package's commands, actions, and runtime hooks with the host. */
1692
- activate: (api: ExtensionApi) => void | Promise<void>;
1692
+ activate:(api:ExtensionApi) => void | Promise<void>;
1693
1693
  /** Optional teardown lifecycle hook, analogous to VS Code's `deactivate` export. Invoked when the host tears the extension down — on long-running MCP-server reload between requests, or via the `deactivateExtensions` primitive — so an extension can close connections, clear timers, and release buffers it opened during `activate`. */
1694
- deactivate?: () => void | Promise<void>;
1694
+ deactivate?:() => void | Promise<void>;
1695
1695
  }
1696
1696
  /** Documents the extension deactivation failure payload exchanged by command, SDK, and package integrations. */
1697
1697
  export interface ExtensionDeactivationFailure {
1698
1698
  /** Value that configures or reports layer for this contract. */
1699
- layer: ExtensionLayer;
1699
+ layer:ExtensionLayer;
1700
1700
  /** Value that configures or reports name for this contract. */
1701
- name: string;
1701
+ name:string;
1702
1702
  /** Value that configures or reports error for this contract. */
1703
- error: string;
1703
+ error:string;
1704
1704
  }
1705
1705
  /** Documents the extension deactivation options payload exchanged by command, SDK, and package integrations. */
1706
1706
  export interface ExtensionDeactivationOptions {
1707
1707
  /** Maximum time to wait for each extension's `deactivate` hook. Defaults to 5000ms so a hanging teardown cannot block host shutdown or reload. Set to 0 or Infinity only when the host intentionally wants to wait indefinitely. */
1708
- deactivate_timeout_ms?: number;
1708
+ deactivate_timeout_ms?:number;
1709
1709
  }
1710
1710
  /** Documents the extension deactivation result payload exchanged by command, SDK, and package integrations. */
1711
1711
  export interface ExtensionDeactivationResult {
1712
1712
  /** Count of loaded extensions whose `deactivate` hook ran without throwing. */
1713
- deactivated: number;
1713
+ deactivated:number;
1714
1714
  /** Value that configures or reports warnings for this contract. */
1715
- warnings: string[];
1715
+ warnings:string[];
1716
1716
  /** Value that configures or reports failed for this contract. */
1717
- failed: ExtensionDeactivationFailure[];
1717
+ failed:ExtensionDeactivationFailure[];
1718
1718
  }
1719
1719
  /** Documents the service override result payload exchanged by command, SDK, and package integrations. */
1720
1720
  export interface ServiceOverrideResult {
1721
1721
  /** Value that configures or reports handled for this contract. */
1722
- handled: boolean;
1722
+ handled:boolean;
1723
1723
  /** Value that configures or reports result for this contract. */
1724
- result: unknown;
1724
+ result:unknown;
1725
1725
  /** Value that configures or reports warnings for this contract. */
1726
- warnings: string[];
1726
+ warnings:string[];
1727
1727
  }
1728
1728
  /** Documents the command override result payload exchanged by command, SDK, and package integrations. */
1729
1729
  export interface CommandOverrideResult {
1730
1730
  /** Value that configures or reports overridden for this contract. */
1731
- overridden: boolean;
1731
+ overridden:boolean;
1732
1732
  /** Value that configures or reports result for this contract. */
1733
- result: unknown;
1733
+ result:unknown;
1734
1734
  /** Value that configures or reports warnings for this contract. */
1735
- warnings: string[];
1735
+ warnings:string[];
1736
1736
  }
1737
1737
  /** Documents the command handler result payload exchanged by command, SDK, and package integrations. */
1738
1738
  export interface CommandHandlerResult {
1739
1739
  /** Value that configures or reports handled for this contract. */
1740
- handled: boolean;
1740
+ handled:boolean;
1741
1741
  /** Value that configures or reports result for this contract. */
1742
- result: unknown;
1742
+ result:unknown;
1743
1743
  /** Value that configures or reports warnings for this contract. */
1744
- warnings: string[];
1744
+ warnings:string[];
1745
1745
  /** Human-readable, single-line, length-bounded message describing why an extension command handler failed. Surfaced to the user/CI so the real cause (e.g. "Changelog is out of date: CHANGELOG.md") is visible instead of only the opaque `extension_command_handler_failed` warning code. */
1746
- errorMessage?: string;
1746
+ errorMessage?:string;
1747
1747
  /** Validated non-zero process status requested by a structured handler result. */
1748
- exitCode?: number;
1748
+ exitCode?:number;
1749
1749
  /** Stable extension-provided error code preserved for structured recovery. */
1750
- errorCode?: string;
1750
+ errorCode?:string;
1751
1751
  /** Actionable extension-provided recovery text preserved by the host. */
1752
- remediation?: string;
1752
+ remediation?:string;
1753
1753
  }
1754
1754
  /** Documents the parser override result payload exchanged by command, SDK, and package integrations. */
1755
1755
  export interface ParserOverrideResult {
1756
1756
  /** Value that configures or reports overridden for this contract. */
1757
- overridden: boolean;
1757
+ overridden:boolean;
1758
1758
  /** Value that configures or reports context for this contract. */
1759
- context: CommandHandlerContext;
1759
+ context:CommandHandlerContext;
1760
1760
  /** Value that configures or reports warnings for this contract. */
1761
- warnings: string[];
1761
+ warnings:string[];
1762
1762
  }
1763
1763
  /** Documents the preflight override result payload exchanged by command, SDK, and package integrations. */
1764
1764
  export interface PreflightOverrideResult {
1765
1765
  /** Value that configures or reports overridden for this contract. */
1766
- overridden: boolean;
1766
+ overridden:boolean;
1767
1767
  /** Value that configures or reports context for this contract. */
1768
- context: CommandHandlerContext;
1768
+ context:CommandHandlerContext;
1769
1769
  /** Value that configures or reports decision for this contract. */
1770
- decision: PreflightRuntimeDecision;
1770
+ decision:PreflightRuntimeDecision;
1771
1771
  /** Value that configures or reports warnings for this contract. */
1772
- warnings: string[];
1772
+ warnings:string[];
1773
1773
  }
1774
1774
  /** Documents the renderer override result payload exchanged by command, SDK, and package integrations. */
1775
1775
  export interface RendererOverrideResult {
1776
1776
  /** Value that configures or reports overridden for this contract. */
1777
- overridden: boolean;
1777
+ overridden:boolean;
1778
1778
  /** Value that configures or reports rendered for this contract. */
1779
- rendered: string | null;
1779
+ rendered:string | null;
1780
1780
  /** Value that configures or reports warnings for this contract. */
1781
- warnings: string[];
1781
+ warnings:string[];
1782
1782
  }
1783
1783
  /** Documents the unknown extension capability warning details payload exchanged by command, SDK, and package integrations. */
1784
1784
  export interface UnknownExtensionCapabilityWarningDetails {
1785
1785
  /** Value that configures or reports layer for this contract. */
1786
- layer: ExtensionLayer;
1786
+ layer:ExtensionLayer;
1787
1787
  /** Value that configures or reports name for this contract. */
1788
- name: string;
1788
+ name:string;
1789
1789
  /** Value that configures or reports capability for this contract. */
1790
- capability: string;
1790
+ capability:string;
1791
1791
  /** Value that configures or reports allowed capabilities for this contract. */
1792
- allowed_capabilities: string[];
1792
+ allowed_capabilities:string[];
1793
1793
  /** Value that configures or reports capability contract version for this contract. */
1794
- capability_contract_version: number;
1794
+ capability_contract_version:number;
1795
1795
  /** Value that configures or reports suggested capability for this contract. */
1796
- suggested_capability?: string;
1796
+ suggested_capability?:string;
1797
1797
  /** Value that configures or reports suggestion source for this contract. */
1798
- suggestion_source?: "legacy_alias" | "nearest_match";
1798
+ suggestion_source?:"legacy_alias" | "nearest_match";
1799
1799
  /** Value that configures or reports legacy alias target for this contract. */
1800
- legacy_alias_target?: string;
1800
+ legacy_alias_target?:string;
1801
1801
  }