@unbrained/pm-cli 2026.10.31 → 2026.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/.agents/skills/pm-user/references/ECOSYSTEM_PLANNING.md +1 -1
  2. package/.claude-plugin/marketplace.json +1 -1
  3. package/AGENTS.md +3 -3
  4. package/CHANGELOG.md +9 -0
  5. package/README.md +1 -1
  6. package/dist/cli/register-operations.d.ts +3 -3
  7. package/dist/cli/register-operations.js +1 -1
  8. package/dist/cli-bundle/bundle-manifest.json +1 -1
  9. package/dist/cli-bundle/chunks/{chunk-6PSDQ7T7.js → chunk-2GK2IVU5.js} +2 -2
  10. package/dist/cli-bundle/chunks/{chunk-U7JXZMU5.js → chunk-5KW4WUAK.js} +2 -2
  11. package/dist/cli-bundle/chunks/{chunk-WRXQAW7Q.js → chunk-5WVE7XBS.js} +45 -45
  12. package/dist/cli-bundle/chunks/{chunk-24J6TNYE.js → chunk-6PKWKVS6.js} +2 -2
  13. package/dist/cli-bundle/chunks/{chunk-ZTJVOBDU.js → chunk-E74BORFX.js} +3 -3
  14. package/dist/cli-bundle/chunks/chunk-F3ECOBKA.js +2 -0
  15. package/dist/cli-bundle/chunks/{chunk-43R7UTWV.js → chunk-ICT6E4IW.js} +2 -2
  16. package/dist/cli-bundle/chunks/{chunk-HSBTITO4.js → chunk-MP2DQJH2.js} +2 -2
  17. package/dist/cli-bundle/chunks/{chunk-BS2KXT24.js → chunk-MTRIGD7M.js} +42 -42
  18. package/dist/cli-bundle/chunks/{chunk-PT7TS6E7.js → chunk-N45IXPCA.js} +2 -2
  19. package/dist/cli-bundle/chunks/{chunk-35Q2B2GJ.js → chunk-NILQ2ZMV.js} +2 -2
  20. package/dist/cli-bundle/chunks/{chunk-V6EWBTNH.js → chunk-O56O7NIE.js} +2 -2
  21. package/dist/cli-bundle/chunks/{chunk-WNF6FOL7.js → chunk-O6TFUV6M.js} +31 -31
  22. package/dist/cli-bundle/chunks/{chunk-GMBDZID5.js → chunk-TMPO4CTZ.js} +3 -3
  23. package/dist/cli-bundle/chunks/{chunk-XDDPSWIW.js → chunk-TYERATXH.js} +2 -2
  24. package/dist/cli-bundle/chunks/{chunk-2AHSPMKJ.js → chunk-UEEG47TU.js} +2 -2
  25. package/dist/cli-bundle/chunks/{chunk-VC7TA67O.js → chunk-UUN3WNMQ.js} +19 -19
  26. package/dist/cli-bundle/chunks/{chunk-P3LNMWL2.js → chunk-WFBYKDB2.js} +2 -2
  27. package/dist/cli-bundle/chunks/{chunk-TL3O5GZA.js → chunk-Y7CKVU56.js} +4 -4
  28. package/dist/cli-bundle/chunks/item-transaction-Q5S5YLEJ.js +2 -0
  29. package/dist/cli-bundle/chunks/{mutation-admission-I4RHIT3Q.js → mutation-admission-BOOCJPCU.js} +2 -2
  30. package/dist/cli-bundle/chunks/{register-list-query-MVDL5EXG.js → register-list-query-23OX36Q3.js} +2 -2
  31. package/dist/cli-bundle/chunks/{register-mutation-GAF7LXRB.js → register-mutation-JPJ5YNDX.js} +2 -2
  32. package/dist/cli-bundle/chunks/register-operations-IGR7ERY5.js +2 -0
  33. package/dist/cli-bundle/chunks/{register-setup-MZN6ONB3.js → register-setup-BMIFKZZP.js} +2 -2
  34. package/dist/cli-bundle/chunks/{stage-2ZORTOF6.js → stage-ON7CYYPM.js} +2 -2
  35. package/dist/cli-bundle/focused-chunks/{chunk-NRBUMDLF.js → chunk-2Y77HWIX.js} +2 -2
  36. package/dist/cli-bundle/focused-chunks/{chunk-QFMJGQGO.js → chunk-3NYWMUX3.js} +2 -2
  37. package/dist/cli-bundle/focused-chunks/chunk-3Z53POXU.js +2 -0
  38. package/dist/cli-bundle/focused-chunks/{chunk-4QPGJO2G.js → chunk-5TWS5KOM.js} +2 -2
  39. package/dist/cli-bundle/focused-chunks/{chunk-EA65HVBO.js → chunk-5WCQFH6D.js} +12 -12
  40. package/dist/cli-bundle/focused-chunks/{chunk-2J7T2UCH.js → chunk-6GMYW42K.js} +2 -2
  41. package/dist/cli-bundle/focused-chunks/{chunk-HPWT3RBG.js → chunk-6OKPYCLU.js} +4 -4
  42. package/dist/cli-bundle/focused-chunks/{chunk-NOKG4RFN.js → chunk-7WJDRZOR.js} +2 -2
  43. package/dist/cli-bundle/focused-chunks/{chunk-PC3R5CJV.js → chunk-AL7SOFUL.js} +2 -2
  44. package/dist/cli-bundle/focused-chunks/chunk-CIQ6YWCW.js +26 -0
  45. package/dist/cli-bundle/focused-chunks/{chunk-PFBQOZPK.js → chunk-GE755ODZ.js} +2 -2
  46. package/dist/cli-bundle/focused-chunks/{chunk-5MCGYBOQ.js → chunk-JCR32IAO.js} +2 -2
  47. package/dist/cli-bundle/focused-chunks/{chunk-Y6UYRMVG.js → chunk-LVA76N27.js} +2 -2
  48. package/dist/cli-bundle/focused-chunks/{chunk-57HPXGOQ.js → chunk-M22TI7LP.js} +2 -2
  49. package/dist/cli-bundle/focused-chunks/{chunk-KKRIFBSL.js → chunk-PAT6QF63.js} +2 -2
  50. package/dist/cli-bundle/focused-chunks/{chunk-SFQKCA5K.js → chunk-RPUDOJVB.js} +2 -2
  51. package/dist/cli-bundle/focused-chunks/chunk-SXZM4PSS.js +44 -0
  52. package/dist/cli-bundle/focused-chunks/{chunk-HSAEEWSI.js → chunk-UQIBGLDR.js} +2 -2
  53. package/dist/cli-bundle/focused-chunks/{chunk-MW77Q3AQ.js → chunk-VFQAZLKO.js} +2 -2
  54. package/dist/cli-bundle/focused-chunks/{chunk-KH5QJXY7.js → chunk-VS2ZFPXD.js} +2 -2
  55. package/dist/cli-bundle/focused-chunks/{chunk-JNKRUCVZ.js → chunk-WX2RVS2Y.js} +2 -2
  56. package/dist/cli-bundle/focused-chunks/{chunk-6F6APBCX.js → chunk-Z7GIVH6B.js} +3 -3
  57. package/dist/cli-bundle/focused-chunks/{item-transaction-LU75EG7D.js → item-transaction-7VLPA2SU.js} +2 -2
  58. package/dist/cli-bundle/focused-chunks/{mutation-admission-KDJ7SCPA.js → mutation-admission-2DH27R5Y.js} +2 -2
  59. package/dist/cli-bundle/focused-chunks/{stage-R4KEBO37.js → stage-FYOBWQA7.js} +2 -2
  60. package/dist/cli-bundle/main.js +2 -2
  61. package/dist/cli-bundle/sdk-authoring.js +1 -1
  62. package/dist/cli-bundle/sdk-contracts.js +4 -4
  63. package/dist/cli-bundle/sdk-core.js +1 -1
  64. package/dist/cli-bundle/sdk-governance.js +1 -1
  65. package/dist/cli-bundle/sdk-graph.js +1 -1
  66. package/dist/cli-bundle/sdk-merge.js +52 -52
  67. package/dist/cli-bundle/sdk-query.js +1 -1
  68. package/dist/cli-bundle/sdk-runtime.js +1 -1
  69. package/dist/cli-bundle/sdk-testing.js +1 -1
  70. package/dist/cli-bundle/sdk.js +9 -9
  71. package/dist/core/output/mutation-projection.js +1 -1
  72. package/dist/core/output/output.js +2 -2
  73. package/dist/sdk/cli-contracts/tool-schema.js +1 -1
  74. package/dist/sdk/context-intent-contracts.d.ts +17 -0
  75. package/dist/sdk/context-intent-contracts.js +1 -1
  76. package/dist/sdk/core.d.ts +1 -1
  77. package/dist/sdk/core.js +1 -1
  78. package/dist/sdk/generated/generated-error-code-catalog-part-1.js +1 -1
  79. package/dist/sdk/generated/generated-error-code-catalog-part-2.js +1 -1
  80. package/dist/sdk/index.d.ts +1 -1
  81. package/dist/sdk/index.js +1 -1
  82. package/dist/sdk/init-agent-guidance.js +2 -2
  83. package/dist/sdk/lifecycle/claim.d.ts +27 -0
  84. package/dist/sdk/lifecycle/claim.js +1 -1
  85. package/dist/sdk/lifecycle/mcp-actions.d.ts +1 -1
  86. package/dist/sdk/lifecycle/mcp-actions.js +1 -1
  87. package/dist/sdk/lifecycle/task-composition.js +1 -1
  88. package/dist/sdk/output/list-envelope.d.ts +8 -0
  89. package/dist/sdk/output/list-envelope.js +1 -1
  90. package/dist/sdk/output.d.ts +1 -1
  91. package/dist/sdk/output.js +2 -2
  92. package/dist/sdk/public-surface.json +1 -1
  93. package/dist/sdk/query/context.js +2 -2
  94. package/dist/sdk/runtime/actions.js +1 -1
  95. package/dist/sdk/runtime-input.js +1 -1
  96. package/dist/sdk/runtime-public-contracts.d.ts +2 -0
  97. package/dist/sdk/runtime.d.ts +2 -2
  98. package/dist/sdk/runtime.js +1 -1
  99. package/dist/sdk/start-task-status.d.ts +1 -1
  100. package/dist/sdk/start-task-status.js +1 -1
  101. package/docs/AGENT_GUIDE.md +3 -3
  102. package/docs/COMMANDS.md +1 -0
  103. package/docs/COMMAND_NAMESPACES.md +1 -1
  104. package/docs/LIFECYCLE_COMMANDS.md +19 -4
  105. package/docs/SDK.md +9 -1
  106. package/docs/SDK_ACTION_CONFORMANCE.md +21 -0
  107. package/docs/agent-task-token-baseline.json +1 -1
  108. package/docs/agent-task-transcripts.json +1 -1
  109. package/marketplace.json +1 -1
  110. package/package.json +1 -1
  111. package/packages/pm-beads/package.json +1 -1
  112. package/packages/pm-calendar/package.json +1 -1
  113. package/packages/pm-command-kit/package.json +1 -1
  114. package/packages/pm-digital-twin/package.json +1 -1
  115. package/packages/pm-governance-audit/package.json +1 -1
  116. package/packages/pm-guide-shell/package.json +1 -1
  117. package/packages/pm-kanban/package.json +1 -1
  118. package/packages/pm-lifecycle-hooks/package.json +1 -1
  119. package/packages/pm-linked-test-adapters/package.json +1 -1
  120. package/packages/pm-search-advanced/package.json +1 -1
  121. package/packages/pm-templates/package.json +1 -1
  122. package/packages/pm-todos/package.json +1 -1
  123. package/packages/pm-vcs/package.json +1 -1
  124. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  125. package/plugins/pm-claude/package.json +1 -1
  126. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  127. package/plugins/pm-codex/package.json +1 -1
  128. package/plugins/pm-codex/plugin.json +1 -1
  129. package/runtime-dependencies.json +1 -1
  130. package/dist/cli-bundle/chunks/chunk-YT5D5HNG.js +0 -2
  131. package/dist/cli-bundle/chunks/item-transaction-UWV6UNSV.js +0 -2
  132. package/dist/cli-bundle/chunks/register-operations-JLFRL36Q.js +0 -2
  133. package/dist/cli-bundle/focused-chunks/chunk-AFVN2KCP.js +0 -44
  134. package/dist/cli-bundle/focused-chunks/chunk-GP2WU43K.js +0 -26
  135. package/dist/cli-bundle/focused-chunks/chunk-WHIE2C6Q.js +0 -2
@@ -10,7 +10,7 @@ implementation starts with bounded context and expands only its active lineage.
10
10
  ## Establish the Population
11
11
 
12
12
  ```bash
13
- pm context --limit 10 --for orient
13
+ pm context --for orient
14
14
  pm search "<request keywords>" --limit 10 # hybrid when semantic search is configured, keyword otherwise
15
15
  pm list --status open --limit 20
16
16
  pm list --status in_progress --limit 20
@@ -1 +1 @@
1
- {"name":"pm","owner":{"name":"unbrained","url":"https://github.com/unbraind/pm-cli"},"description":"Official marketplace for pm CLI — native git-based project management for Claude Code and AI coding agents.","version":"2026.10.31","plugins":[{"name":"pm-claude","source":"./plugins/pm-claude","description":"Native pm CLI integration for Claude Code — 32 MCP tools, 14 workflow skills with slash invocations, 4 subagents, hybrid TUI task tracking, session context injection, and coordination subagents for git-based project management without leaving Claude Code.","version":"2026.10.31","author":{"name":"unbrained","url":"https://github.com/unbraind/pm-cli"},"homepage":"https://github.com/unbraind/pm-cli","repository":"https://github.com/unbraind/pm-cli","license":"MIT","keywords":["pm-cli","project-management","mcp","tasks","agents","workflows","git-native","task-tracker","ai"],"category":"productivity"}]}
1
+ {"name":"pm","owner":{"name":"unbrained","url":"https://github.com/unbraind/pm-cli"},"description":"Official marketplace for pm CLI — native git-based project management for Claude Code and AI coding agents.","version":"2026.11.1","plugins":[{"name":"pm-claude","source":"./plugins/pm-claude","description":"Native pm CLI integration for Claude Code — 32 MCP tools, 14 workflow skills with slash invocations, 4 subagents, hybrid TUI task tracking, session context injection, and coordination subagents for git-based project management without leaving Claude Code.","version":"2026.11.1","author":{"name":"unbrained","url":"https://github.com/unbraind/pm-cli"},"homepage":"https://github.com/unbraind/pm-cli","repository":"https://github.com/unbraind/pm-cli","license":"MIT","keywords":["pm-cli","project-management","mcp","tasks","agents","workflows","git-native","task-tracker","ai"],"category":"productivity"}]}
package/AGENTS.md CHANGED
@@ -60,8 +60,8 @@ For real repository tracking, do not override `PM_PATH`. If a script must target
60
60
  <!-- pm-cli:agent-guidance:start:v1 -->
61
61
  ## pm Workflow (Agent Quickstart)
62
62
 
63
- - Cold start with the measured canonical orientation: `pm context --limit 10 --for orient`; before item mutation, also run `pm search "<keywords>" --limit 10`, `pm list --status open --limit 20`, and `pm list --status in_progress --limit 20`.
64
- - Claim and start atomically: `pm claim <id> --start`.
63
+ - Cold start with the measured canonical orientation: `pm context --for orient`; before item mutation, also run `pm search "<keywords>" --limit 10`, `pm list --status open --limit 20`, and `pm list --status in_progress --limit 20`.
64
+ - Claim and start: `pm claim <id> --start`, or `pm claim --next --start` to take the next available item in one write.
65
65
  - Link evidence while coding: `pm files <id> --add ...`, `pm docs <id> --add ...`, `pm test <id> --add command="node scripts/run-tests.mjs test"`.
66
66
  - Verify and close: `pm test <id> --run --progress`, then atomically record closure evidence with `pm close <id> "<reason>" --resolution "<what changed>" --expected "<expected outcome>" --actual "<observed outcome>" --validate-close warn`, then `pm release <id>`.
67
67
  - Author identity is automatic for supported agent harnesses; use `--author` only for an explicit override.
@@ -70,7 +70,7 @@ For real repository tracking, do not override `PM_PATH`. If a script must target
70
70
 
71
71
  ## Working Rules
72
72
 
73
- - **Orient:** start with the measured canonical cold-start, `pm context --limit 10 --for orient`. Before `pm create`, also run request-specific `pm search`, `pm list --status open`, and `pm list --status in_progress` so duplicate and ownership checks use live state. If net-new work is required, create or reuse the parent lineage first and record duplicate-check evidence in a create-time comment.
73
+ - **Orient:** start with the measured canonical cold-start, `pm context --for orient`. Before `pm create`, also run request-specific `pm search`, `pm list --status open`, and `pm list --status in_progress` so duplicate and ownership checks use live state. If net-new work is required, create or reuse the parent lineage first and record duplicate-check evidence in a create-time comment.
74
74
  - **Verify before you claim:** the verification recipe for the Non-Negotiable above. A `closed` item whose `resolution`/`close_reason` describes the fix represents completed, shipped work — never describe it as outstanding. Confirm release/CI/infra status against the live system, e.g. `pm get pm-9gxi`, `npm view @unbrained/pm-cli version`, `gh release list`, `gh run list --workflow=auto-release.yml`.
75
75
  - **Implement:** keep edits scoped to the claimed item. Link changed files with `pm files`, docs with `pm docs`, and runnable verification with `pm test`.
76
76
  - **Record:** use `pm comments`, `pm notes`, and `pm learnings` for progress, rationale, and durable lessons. Prefer append-style updates over rewriting item content.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 2026.11.1 - 2026-11-01
4
+
5
+ ### Fixed
6
+
7
+ - MCP read tools read every declared flat parameter, pm_search honours its keywords alias, and filtered pm context keeps dependency edges ([pm-hke9z7](https://github.com/unbraind/pm-cli/blob/main/.agents/pm/issues/pm-hke9z7.toon))
8
+ - GH-1642: compact brief pm list and pm search TOON envelopes while keeping the effective default sort visible ([pm-gh1642](https://github.com/unbraind/pm-cli/blob/main/.agents/pm/issues/pm-gh1642.toon))
9
+ - GH-1644: disclose when a --for intent reduces an explicit --limit and recommend the measured canonical pm context --for orient ([pm-gh1644](https://github.com/unbraind/pm-cli/blob/main/.agents/pm/issues/pm-gh1644.toon))
10
+ - GH-1643: make pm claim --next --start one atomic select-claim-start write and type the claim-target refusals ([pm-gh1643](https://github.com/unbraind/pm-cli/blob/main/.agents/pm/issues/pm-gh1643.toon))
11
+
3
12
  ## 2026.10.31 - 2026-10-31
4
13
 
5
14
  ### Changed
package/README.md CHANGED
@@ -102,7 +102,7 @@ pm release <item-id>
102
102
  Use the measured one-call context intent for cold-start orientation. Use `pm next` as an alternative when you only need the single highest-priority ready item, then search all statuses before creating anything. Measurement methodology and ratcheted evidence live in the [Agent Guide](docs/AGENT_GUIDE.md#agent-quick-context).
103
103
 
104
104
  ```bash
105
- pm context --limit 10 --for orient # canonical cold start: state, ownership, actionable work
105
+ pm context --for orient # canonical cold start: state, ownership, actionable work
106
106
  # Alternative: pm next # one actionable item + rationale, ready/blocked queues
107
107
  pm search "keywords for the requested work" --limit 10
108
108
  pm list --status open --limit 20
@@ -1,4 +1,5 @@
1
1
  import type { Command } from "commander";
2
+ import { requireClaimTarget } from "./commands/lifecycle/claim.js";
2
3
  /** Refuse mutations and trust acknowledgement before scheduling an execution-only background run. */
3
4
  declare function validateBackgroundTestOptions(options:Record<string,unknown>,values:{
4
5
  addValues:string[];
@@ -78,8 +79,7 @@ checkContext:boolean;
78
79
  autoPmContext:boolean;
79
80
  };
80
81
  declare function runWorkspacePositionAction(_options:Record<string,unknown>,command:Command):Promise<void>;
81
- /** Enforces the claim target XOR selection contract before dispatch. */
82
- export declare function requireClaimTarget(id:string | undefined,next:boolean):void;
82
+ /** Re-exported so registration callers keep one claim-target contract with the SDK. */
83
+ export { requireClaimTarget };
83
84
  /** Implements register operation commands for the public runtime surface of this module. */
84
85
  export declare function registerOperationCommands(program:Command):void;
85
- export {};
@@ -1,2 +1,2 @@
1
- (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a623e4b3-0b19-53e5-9953-df71495e8d2c")}catch{}})();import{resolvePmCommandAlias,renderPmCommandAliasMigrationHint}from"../sdk/cli-contracts/command-aliases.js";import{setActiveCommandResult,EXIT_CODE,PmCliError,createUnknownSubcommandError,resolveAuthor,resolvePmRoot,readSettings}from"../sdk/runtime-primitives.js";import{runStartTask,runPauseTask,runCloseTask}from"../sdk/lifecycle/task-composition.js";import{parseStatsAnalyticsJson}from"./stats-analytics-json.js";import{createWorkspaceSnapshot,deleteWorkspaceSnapshot,inspectWorkspaceSnapshot,listWorkspaceSnapshots,planWorkspaceSnapshotRestore,restoreWorkspaceSnapshotWithRecovery,WORKSPACE_SNAPSHOT_ACTIONS}from"../sdk/workspace-snapshot.js";import{readWorkspacePosition}from"../sdk/governance/workspace-position.js";import{runClaim,runClaimNext,runRelease}from"./commands/lifecycle/claim.js";import{runContracts}from"./commands/workspace/contracts.js";import{runDuplicates}from"./commands/query/duplicates.js";import{runGc}from"./commands/governance/gc.js";import{runHealth}from"./commands/governance/health.js";import{runStats}from"./commands/query/stats.js";import{runTelemetry}from"./commands/governance/telemetry.js";import{runTest}from"./commands/test/test.js";import{runTestAll}from"./commands/test/test-all.js";import{runStartBackgroundRun,runTestRunsWorker}from"./commands/test/test-runs.js";import{runValidate}from"./commands/governance/validate.js";import{buildBackgroundTestAllCommandArgs,applyActiveCommandResultService,buildBackgroundTestCommandArgs,addHiddenOption,collect,getGlobalOptions,invalidateSearchCachesForMutation,printError,printResult,readOptionString}from"./registration-helpers.js";import{registerAssuranceCommand}from"./register-assurance.js";import{assertTestMeasurementRun}from"../sdk/test/prerequisites.js";function resolveTelemetrySubcommand(namespaceOrSubcommand,subcommand){const normalizedNamespace=namespaceOrSubcommand?.trim().toLowerCase(),normalizedSubcommand=subcommand?.trim().toLowerCase();if(normalizedNamespace===void 0||normalizedNamespace.length===0)return normalizedSubcommand;if(normalizedNamespace==="local-analytics")return normalizedSubcommand&&normalizedSubcommand.length>0?normalizedSubcommand:"status";if(normalizedSubcommand!==void 0&&normalizedSubcommand.length>0)throw createUnknownSubcommandError({command_path:"telemetry",token:`${namespaceOrSubcommand} ${subcommand}`,allowed:["status","flush","stats","clear","local-analytics"],token_kind:"path",examples:["pm telemetry stats --limit 10","pm telemetry local-analytics status --json"]});return normalizedNamespace}function collectTestMutationValues(options){return{addValues:Array.isArray(options.add)?options.add:[],addJsonValues:Array.isArray(options.addJson)?options.addJson:[],removeValues:Array.isArray(options.remove)?options.remove:[],removeIndexValues:Array.isArray(options.removeIndex)?options.removeIndex:[]}}function validateBackgroundTestOptions(options,values){if(options.background===!0){if(options.run!==!0)throw new PmCliError("--background requires --run",EXIT_CODE.USAGE);if(options.acknowledgeLinkedTests===!0)throw new PmCliError("--background cannot be combined with --acknowledge-linked-tests; acknowledgement is a non-executing foreground operation",EXIT_CODE.USAGE);if(options.update!==void 0||options.updateIndex!==void 0||options.setJson!==void 0||values.addValues.length>0||values.addJsonValues.length>0||values.removeValues.length>0||values.removeIndexValues.length>0)throw new PmCliError("--background does not support --add/--add-json/--remove/--remove-index or metadata edits; update linked tests first, then run in background",EXIT_CODE.USAGE)}}async function runBackgroundLinkedTests(id,options,globalOptions,values){const result=await runStartBackgroundRun({kind:"test",commandArgs:buildBackgroundTestCommandArgs(id,{...options,add:values.addValues,addJson:values.addJsonValues,remove:values.removeValues,removeIndex:values.removeIndexValues}),targetId:id,author:typeof options.author=="string"?options.author:void 0,noExtensions:globalOptions.noExtensions===!0},globalOptions);printResult(result,globalOptions)}function buildTestEditOptions(options){return{update:typeof options.update=="string"?options.update:void 0,updateIndex:typeof options.updateIndex=="string"||typeof options.updateIndex=="number"?options.updateIndex:void 0,setJson:typeof options.setJson=="string"?options.setJson:void 0}}function buildRunTestOptions(options,values){return{add:values.addValues,addJson:values.addJsonValues,remove:values.removeValues,removeIndex:values.removeIndexValues,...buildTestEditOptions(options),list:!!options.list,run:!!options.run,match:typeof options.match=="string"?options.match:void 0,onlyIndex:typeof options.onlyIndex=="string"||typeof options.onlyIndex=="number"?options.onlyIndex:void 0,onlyLast:!!options.onlyLast,timeout:typeof options.timeout=="string"?options.timeout:void 0,progress:!!options.progress,envSet:Array.isArray(options.envSet)?options.envSet:[],envClear:Array.isArray(options.envClear)?options.envClear:[],sharedHostSafe:!!options.sharedHostSafe,pmContext:typeof options.pmContext=="string"?options.pmContext:void 0,overrideLinkedPmContext:!!options.overrideLinkedPmContext,workspaceContext:typeof options.workspaceContext=="string"?options.workspaceContext:void 0,overrideLinkedWorkspaceContext:!!options.overrideLinkedWorkspaceContext,allowUntrustedLinkedTests:!!options.allowUntrustedLinkedTests,acknowledgeLinkedTests:!!options.acknowledgeLinkedTests,failOnContextMismatch:!!options.failOnContextMismatch,failOnSkipped:!!options.failOnSkipped,failOnEmptyTestRun:!!options.failOnEmptyTestRun,requireAssertionsForPm:!!options.requireAssertionsForPm,checkContext:!!options.checkContext,autoPmContext:!!options.autoPmContext,author:typeof options.author=="string"?options.author:void 0,message:typeof options.message=="string"?options.message:void 0,force:!!options.force,measure:Array.isArray(options.measure)?options.measure:[],metricBelow:typeof options.metricBelow=="string"?options.metricBelow:void 0,metricDiff:typeof options.metricDiff=="string"?options.metricDiff:void 0}}const _testOnlyRegisterOperations={buildRunTestOptions,buildRunTestAllOptions,runWorkspacePositionAction,validateBackgroundTestOptions};async function runForegroundLinkedTests(id,options,globalOptions,values){const result=await runTest(id,buildRunTestOptions(options,values),globalOptions);(options.update!==void 0||options.updateIndex!==void 0||options.setJson!==void 0||values.addValues.length>0||values.addJsonValues.length>0||values.removeValues.length>0||options.run===!0||values.removeIndexValues.length>0)&&await invalidateSearchCachesForMutation(globalOptions,result),printResult(result,globalOptions),(result.run_results.some(entry=>entry.status==="failed"||entry.status==="refused")||result.fail_on_skipped_triggered===!0)&&(process.exitCode=EXIT_CODE.DEPENDENCY_FAILED)}async function runTestCommandAction(id,options,command){const globalOptions=getGlobalOptions(command),startedAt=Date.now(),values=collectTestMutationValues(options);options.background===!0&&assertTestMeasurementRun(id,buildRunTestOptions(options,values),globalOptions,resolvePmRoot(process.cwd(),globalOptions.path),!0),validateBackgroundTestOptions(options,values),options.background===!0?await runBackgroundLinkedTests(id,options,globalOptions,values):await runForegroundLinkedTests(id,options,globalOptions,values),globalOptions.profile&&printError(`profile:command=test took_ms=${Date.now()-startedAt}`)}function buildLifecycleMutationOptions(options){const author=readOptionString(options,"author"),assignee=readOptionString(options,"assignee");if(author!==void 0&&assignee!==void 0&&author!==assignee)throw new PmCliError("Lifecycle ownership received conflicting --author and --assignee values; use one actor value for both aliases.",EXIT_CODE.USAGE,{code:"conflicting_lifecycle_owner",examples:["pm claim pm-123","pm claim pm-123 --start","pm release pm-123"]});return{author:author??assignee,message:readOptionString(options,"message")}}async function runTestAllAction(options,command){const globalOptions=getGlobalOptions(command),startedAt=Date.now();if(options.background===!0){const result2=await runStartBackgroundRun({kind:"test-all",commandArgs:buildBackgroundTestAllCommandArgs(options),statusFilter:readOptionString(options,"status"),noExtensions:globalOptions.noExtensions===!0},globalOptions);printResult(result2,globalOptions),globalOptions.profile&&printError(`profile:command=test-all took_ms=${Date.now()-startedAt}`);return}const result=await runTestAll(buildRunTestAllOptions(options),globalOptions);await invalidateSearchCachesForMutation(globalOptions,{ids:result.results.map(entry=>entry.id)}),printResult(result,globalOptions),(result.failed>0||result.fail_on_skipped_triggered===!0)&&(process.exitCode=EXIT_CODE.DEPENDENCY_FAILED),globalOptions.profile&&printError(`profile:command=test-all took_ms=${Date.now()-startedAt}`)}function buildRunTestAllOptions(options){return{status:readOptionString(options,"status"),limit:readOptionString(options,"limit"),offset:readOptionString(options,"offset"),timeout:readOptionString(options,"timeout"),progress:!!options.progress,envSet:Array.isArray(options.envSet)?options.envSet:[],envClear:Array.isArray(options.envClear)?options.envClear:[],sharedHostSafe:!!options.sharedHostSafe,pmContext:readOptionString(options,"pmContext"),overrideLinkedPmContext:!!options.overrideLinkedPmContext,workspaceContext:readOptionString(options,"workspaceContext"),overrideLinkedWorkspaceContext:!!options.overrideLinkedWorkspaceContext,allowUntrustedLinkedTests:!!options.allowUntrustedLinkedTests,failOnContextMismatch:!!options.failOnContextMismatch,failOnSkipped:!!options.failOnSkipped,failOnEmptyTestRun:!!options.failOnEmptyTestRun,requireAssertionsForPm:!!options.requireAssertionsForPm,checkContext:!!options.checkContext,autoPmContext:!!options.autoPmContext}}async function runTelemetryAction(namespaceOrSubcommand,subcommand,options,command){const globalOptions=getGlobalOptions(command),startedAt=Date.now(),result=await runTelemetry({subcommand:resolveTelemetrySubcommand(namespaceOrSubcommand,subcommand),limit:readOptionString(options,"limit")},globalOptions);printResult(result,globalOptions),globalOptions.profile&&printError(`profile:command=telemetry took_ms=${Date.now()-startedAt}`)}async function runStatsAction(options,command){const globalOptions=getGlobalOptions(command),startedAt=Date.now(),analytics=parseStatsAnalyticsJson(readOptionString(options,"analytics")),result=await runStats(globalOptions,{includeEmpty:options.includeEmpty===!0,storage:options.storage===!0,metadataCoverage:options.metadataCoverage===!0,byAssignee:options.byAssignee===!0,byTag:options.byTag===!0,byPriority:options.byPriority===!0,tagPrefix:readOptionString(options,"tagPrefix"),fieldUtilization:options.fieldUtilization===!0,...analytics});result.recorded_observations?.some(entry=>entry.changed)===!0&&await invalidateSearchCachesForMutation(globalOptions,{ids:result.recorded_observations?.flatMap(entry=>entry.observation.item_id?[entry.observation.item_id]:[])}),printResult(result,globalOptions),globalOptions.profile&&printError(`profile:command=stats took_ms=${Date.now()-startedAt}`)}async function runDuplicatesAction(options,command){const globalOptions=getGlobalOptions(command),startedAt=Date.now(),threshold=readOptionString(options,"threshold"),limit=readOptionString(options,"limit"),result=await runDuplicates(globalOptions,{...options.exhaustive===!0?{exhaustive:!0}:{},status:Array.isArray(options.status)&&options.status.length>0?options.status:void 0,since:readOptionString(options,"since"),...threshold===void 0?{}:{threshold:Number(threshold)},...limit===void 0?{}:{limit:Number(limit)}});printResult(result,globalOptions),globalOptions.profile&&printError(`profile:command=duplicates took_ms=${Date.now()-startedAt}`)}async function runHealthAction(options,command){const globalOptions=getGlobalOptions(command),startedAt=Date.now(),strictExit=!!options.strictExit||!!options.failOnWarn,result=await runHealth(globalOptions,{strictExit,strictDirectories:!!options.strictDirectories,requireMergeDrivers:!!options.requireMergeDrivers,checkOnly:!!options.checkOnly,checkTelemetry:!!options.checkTelemetry,noRefresh:!!options.noRefresh,refreshVectors:!!options.refreshVectors,verboseStaleItems:!!options.verboseStaleItems,verboseAuthorEvents:!!options.verboseAuthorEvents,brief:!!options.brief,summary:!!options.summary||strictExit,skipVectors:!!options.skipVectors,skipIntegrity:!!options.skipIntegrity,skipDrift:!!options.skipDrift,full:!!options.full});printResult(result,globalOptions),strictExit&&!result.ok&&(setActiveCommandResult({...result,exit_code:EXIT_CODE.GENERIC_FAILURE,error_code:"health_findings",error_category:"validation",command_resolution:"health_findings",resolution_stage:"execute"}),process.exitCode=EXIT_CODE.GENERIC_FAILURE),globalOptions.profile&&printError(`profile:command=health took_ms=${Date.now()-startedAt}`)}async function runValidateAction(options,command){const globalOptions=getGlobalOptions(command),startedAt=Date.now(),result=await runValidate({checkMetadata:!!options.checkMetadata,metadataProfile:readOptionString(options,"metadataProfile"),checkResolution:!!options.checkResolution,checkCompleteness:!!options.checkCompleteness,checkLifecycle:!!options.checkLifecycle,checkStaleBlockers:!!options.checkStaleBlockers,dependencyCycleSeverity:readOptionString(options,"dependencyCycleSeverity"),parentCycleSeverity:readOptionString(options,"parentCycleSeverity"),checkFiles:!!options.checkFiles,checkCommandReferences:!!options.checkCommandReferences,scanMode:readOptionString(options,"scanMode"),includePmInternals:!!options.includePmInternals,verboseFileLists:!!options.verboseFileLists,verboseDiagnostics:!!options.verboseDiagnostics,allAffectedIds:!!options.allAffectedIds,checkHistoryDrift:!!options.checkHistoryDrift,checkStorageIntegrity:!!options.checkStorageIntegrity,fixHints:!!options.fixHints,autoFix:!!options.autoFix,dryRun:!!options.dryRun,fixScope:Array.isArray(options.fixScope)?options.fixScope:void 0,pruneMissing:!!options.pruneMissing,counts:!!options.counts,full:!!options.full},globalOptions);printResult(result,globalOptions),(options.strictExit||options.failOnWarn)&&(result.has_warnings||!result.ok)&&(setActiveCommandResult({...result,exit_code:EXIT_CODE.GENERIC_FAILURE,error_code:"validation_findings",error_category:"validation",command_resolution:"validation_findings",resolution_stage:"execute"}),process.exitCode=EXIT_CODE.GENERIC_FAILURE),globalOptions.profile&&printError(`profile:command=validate took_ms=${Date.now()-startedAt}`)}async function runGcAction(options,command){const globalOptions=getGlobalOptions(command),startedAt=Date.now(),result=await runGc(globalOptions,{dryRun:options.dryRun===!0,scope:Array.isArray(options.scope)?options.scope:[]});printResult(result,globalOptions),globalOptions.profile&&printError(`profile:command=gc took_ms=${Date.now()-startedAt}`)}async function runWorkspaceSnapshotAction(action,target,options,command){const globalOptions=getGlobalOptions(command),pmRoot=resolvePmRoot(process.cwd(),globalOptions.path),normalizedAction=action.trim().toLowerCase();if(!WORKSPACE_SNAPSHOT_ACTIONS.some(entry=>entry===normalizedAction))throw createUnknownSubcommandError({command_path:"workspace snapshot",token:action,allowed:WORKSPACE_SNAPSHOT_ACTIONS,display_name:"workspace snapshot",token_kind:"action",examples:["pm workspace snapshot create before-migration","pm workspace snapshot restore before-migration"]});if(normalizedAction==="list"){printResult(await listWorkspaceSnapshots(pmRoot),globalOptions);return}if(normalizedAction==="create"){printResult(await createWorkspaceSnapshot(pmRoot,target===void 0?{}:{name:target}),globalOptions);return}if(target===void 0)throw new PmCliError(`pm workspace snapshot ${normalizedAction} requires a snapshot name or fingerprint`,EXIT_CODE.USAGE);if(normalizedAction==="inspect"){printResult(await inspectWorkspaceSnapshot(pmRoot,target),globalOptions);return}if(normalizedAction==="restore"){if(options.dryRun===!0){printResult(await planWorkspaceSnapshotRestore(pmRoot,target),globalOptions);return}const settings=await readSettings(pmRoot);printResult(await restoreWorkspaceSnapshotWithRecovery(pmRoot,target,{force:options.force===!0,author:resolveAuthor(readOptionString(options,"author"),settings.author_default),message:readOptionString(options,"message"),lockTtlSeconds:settings.locks.ttl_seconds,lockWaitMs:settings.locks.wait_ms}),globalOptions);return}printResult(await deleteWorkspaceSnapshot(pmRoot,target),globalOptions)}async function runWorkspacePositionAction(_options,command){const globalOptions=getGlobalOptions(command);printResult(await readWorkspacePosition(globalOptions),globalOptions)}async function runContractsAction(options,command){const globalOptions=getGlobalOptions(command),startedAt=Date.now(),result=await runContracts({action:readOptionString(options,"action"),command:readOptionString(options,"command"),summary:!!options.summary,schemaOnly:!!options.schemaOnly,flagsOnly:!!options.flagsOnly,availabilityOnly:!!options.availabilityOnly,runtimeOnly:!!options.runtimeOnly||!!options.activeOnly,full:!!options.full},globalOptions);printResult(result,globalOptions),globalOptions.profile&&printError(`profile:command=contracts took_ms=${Date.now()-startedAt}`)}async function runClaimAction(id,options,command){if(options.start===!0){requireClaimTarget(id,!1),await runStartTaskAction(id,options,command);return}const globalOptions=getGlobalOptions(command),startedAt=Date.now(),lifecycleOptions={...buildLifecycleMutationOptions(options),ifAvailable:options.ifAvailable===!0,maxAttempts:options.maxAttempts};requireClaimTarget(id,options.next===!0);const result=options.next===!0?await runClaimNext(!!options.force,globalOptions,lifecycleOptions,{type:typeof options.type=="string"?options.type:void 0,tag:typeof options.tag=="string"?options.tag:void 0,priority:options.priority,assigneeFilter:typeof options.assigneeFilter=="string"?options.assigneeFilter:void 0,parent:typeof options.parent=="string"?options.parent:void 0,sprint:typeof options.sprint=="string"?options.sprint:void 0,release:typeof options.release=="string"?options.release:void 0,includeDecisions:options.includeDecisions===!0,includeGates:options.includeGates===!0,includeContainers:options.includeContainers===!0,tokenBudget:options.tokenBudget??options.token_budget,explainRanking:options.explainRanking===!0||options.explain_ranking===!0}):await runClaim(id,!!options.force,globalOptions,lifecycleOptions);await invalidateSearchCachesForMutation(globalOptions,result),printResult(result,globalOptions),globalOptions.profile&&printError(`profile:command=claim took_ms=${Date.now()-startedAt}`)}function requireClaimTarget(id,next){if(!next&&!id)throw new PmCliError("Specify an item id or pass --next",EXIT_CODE.USAGE);if(next&&id)throw new PmCliError("Specify either an item id or --next, not both",EXIT_CODE.USAGE)}async function runReleaseAction(id,options,command){if(options.pause===!0){await runPauseTaskAction(id,options,command);return}const globalOptions=getGlobalOptions(command),startedAt=Date.now(),result=await runRelease(id,!!options.force,globalOptions,{...buildLifecycleMutationOptions(options),ownershipReleaseBypass:options.ownershipReleaseBypass===!0,handoff:options.handoff});await invalidateSearchCachesForMutation(globalOptions,result),printResult(await applyActiveCommandResultService("release",[id],options,globalOptions,result),globalOptions),globalOptions.profile&&printError(`profile:command=release took_ms=${Date.now()-startedAt}`)}async function printLifecycleAliasHint(command){const global2=getGlobalOptions(command),alias=resolvePmCommandAlias(command.name());!alias||global2.json||global2.quiet||(await readSettings(resolvePmRoot(process.cwd(),global2.path))).ux?.deprecation_hints&&printError(renderPmCommandAliasMigrationHint(alias))}async function runStartTaskAction(id,options,command){await printLifecycleAliasHint(command);const globalOptions=getGlobalOptions(command),startedAt=Date.now(),result=await runStartTask(id,{...buildLifecycleMutationOptions(options),force:!!options.force,next:options.next===!0,ifAvailable:options.ifAvailable===!0},globalOptions);await invalidateSearchCachesForMutation(globalOptions,result.update),printResult(result,globalOptions),globalOptions.profile&&printError(`profile:command=start-task took_ms=${Date.now()-startedAt}`)}async function runPauseTaskAction(id,options,command){await printLifecycleAliasHint(command);const globalOptions=getGlobalOptions(command),startedAt=Date.now(),result=await runPauseTask(id,{...buildLifecycleMutationOptions(options),handoff:readOptionString(options,"handoff"),force:!!options.force},globalOptions);await invalidateSearchCachesForMutation(globalOptions,result.release),printResult(result,globalOptions),globalOptions.profile&&printError(`profile:command=pause-task took_ms=${Date.now()-startedAt}`)}async function runCloseTaskAction(id,reason,options,command){await printLifecycleAliasHint(command);const globalOptions=getGlobalOptions(command),startedAt=Date.now(),result=await runCloseTask(id,reason,{...buildLifecycleMutationOptions(options),validateClose:readOptionString(options,"validateClose"),force:!!options.force},globalOptions);await invalidateSearchCachesForMutation(globalOptions,result.release),printResult(result,globalOptions),globalOptions.profile&&printError(`profile:command=close-task took_ms=${Date.now()-startedAt}`)}function addLinkedTestExecutionOptions(command){return command.option("--background","Run linked tests in managed background mode").option("--timeout <seconds>","Default run timeout in seconds (requires --run)").option("--progress","Emit stderr run progress (requires --run; automatic in TTY)").option("--env-set <value>","Set run environment (KEY=VALUE, repeatable)",collect).option("--env-clear <value>","Clear run environment (NAME, repeatable)",collect).option("--shared-host-safe","Apply additive shared-host-safe run defaults").option("--pm-context <mode>","PM test context: schema|tracker|auto|none (default: schema)").option("--override-linked-pm-context","Override stored context with --pm-context").option("--workspace-context <mode>","Source-workspace mode: source|isolated|snapshot (default: source)").option("--override-linked-workspace-context","Override stored context with --workspace-context").option("--allow-untrusted-linked-tests","Execute untrusted linked commands when project policy also permits it").option("--fail-on-context-mismatch","Fail linked PM commands when context item counts differ").option("--fail-on-skipped","Treat skipped linked tests as dependency failures").option("--fail-on-empty-test-run","Fail successful commands reporting zero executed tests").option("--require-assertions-for-pm","Require assertion metadata for linked PM command tests").option("--check-context","Check PM context before execution").option("--auto-pm-context","Route mismatched PM tracker reads through tracker context")}function registerOperationCommands(program){registerAssuranceCommand(program);const testCommand=program.command("test").argument("<id>","Item id").option("--add <value>","Add verified isolated test (CSV/markdown or stdin)",collect).option("--add-json <value>","Add verified isolated test (JSON object/array or stdin)",collect).option("--remove <value>","Remove exact command/path (command=<value>, path=<value>, or stdin -)",collect).option("--remove-index <n>","Remove 1-based --list position (repeatable)",collect).option("--list","List linked tests without mutating").option("--update <value>","Edit exact command or path=<value>").option("--update-index <n>","Edit current 1-based --list position").option("--set-json <value>","Metadata patch; null clears optional fields").option("--run","Run linked test commands").option("--match <value>","Run matching command/path substring").option("--only-index <n>","Run 1-based --list position").option("--only-last","Run most recently added test");testCommand.option("--acknowledge-linked-tests","Trust current commands in this clone without execution"),addLinkedTestExecutionOptions(testCommand).option("--measure <value>","Record name=value[,unit=...][,threshold=...]; requires --run",collect).option("--metric-below <value>","Return evidence below name=value").option("--metric-diff <name>","Diff the latest two values").option("--author <value>","Mutation author").option("--message <value>","History message").option("--force","Force ownership override").description("Manage tests linked to an item and optionally run them.").action(runTestCommandAction);const testAllCommand=program.command("test-all").description("Run linked tests across matching items.").option("--status <value>","Filter items by status before running tests").option("--limit <n>","Limit matching items before running linked tests").option("--offset <n>","Skip matching items before running linked tests");addLinkedTestExecutionOptions(testAllCommand).action(runTestAllAction),program.command("test-runs-worker",{hidden:!0}).argument("<runId>","Background run id").description("Internal background worker command.").action(async(runId,_options,command)=>{const globalOptions=getGlobalOptions(command);await runTestRunsWorker(runId,globalOptions)}),program.command("telemetry").argument("[namespace-or-subcommand]","Telemetry subcommand: status, flush, stats, clear (default: status)").argument("[subcommand]","Compatibility alias target for local-analytics: status, flush, stats, clear").option("--limit <n>","Maximum command groups returned by telemetry stats").description("Inspect and manage local telemetry queue/runtime state.").action(runTelemetryAction),program.command("duplicates").description("Find duplicate clusters across all statuses.").option("--status <value>","Statuses (repeatable or comma-separated)",collect,[]).option("--since <value>","Created at or after this time").option("--threshold <value>","Minimum similarity (0-1)").option("--limit <n>","Maximum clusters").option("--exhaustive","Score all pairs within the safety bound").action(runDuplicatesAction),program.command("stats").description("Show project tracker statistics.").option("--include-empty","Restore zero-count registered item-type and lifecycle-status buckets").option("--storage","Include aggregate history-stream storage metrics (total streams/lines/bytes, largest + deepest streams, oldest/newest entries)").option("--metadata-coverage","Include metadata coverage % (acceptance_criteria, estimated_minutes, resolution, tags, parent) overall and by type").option("--by-assignee","Include a lifecycle-bucketed item breakdown grouped by assignee").option("--by-tag","Include a lifecycle-bucketed item breakdown grouped by tag").option("--by-priority","Include a lifecycle-bucketed item breakdown grouped by priority").option("--tag-prefix <value>","With --by-tag: only count tags starting with this prefix (e.g. domain:)").option("--field-utilization","Report content-field utilization rates (notes/learnings/files/docs/tests/comments/deps/body) for governance analysis").option("--analytics <json>","Improvement ledger/history analytics JSON").action(runStatsAction),program.command("health").description("Show project tracker health checks.").option("--strict-directories","Treat optional item-type directories as required failures").option("--require-merge-drivers","Treat absent clone-local merge drivers as a required health failure").option("--check-only","Run read-only health diagnostics without refreshing vectors").option("--check-telemetry","Probe telemetry endpoint health and include network diagnostics").option("--no-refresh","Disable automatic vector refresh attempts during health checks").option("--refresh-vectors","Explicitly enable vector refresh attempts during health checks").option("--verbose-stale-items","Include full stale vectorization ID lists in health output").option("--verbose-author-events","Include every actionable unknown-author event coordinate for review or disposition").option("--brief","Emit compact health details for low-token agent checks").option("--summary","Emit one-line-style health status with check names and warning count").option("--skip-vectors","Skip vectorization check for a faster run").option("--skip-integrity","Skip item/history file integrity check for a faster run").option("--skip-drift","Skip history drift hash check for a faster run").option("--full","Run all checks including slow integrity, drift, and vectorization checks").option("--strict-exit","Return non-zero exit when health is not ok and default to actionable summary output; use --full for complete details").option("--fail-on-warn","Alias for --strict-exit").action(runHealthAction),program.command("validate").description("Validate metadata, lifecycle policies, files, command references, and history.").option("--check-metadata","Run metadata completeness checks").option("--metadata-profile <value>","Metadata profile (core|strict|custom)").option("--check-resolution","Run closed-item resolution metadata checks").option("--check-completeness","Check declarative lifecycle field requirements").option("--check-lifecycle","Run active-item lifecycle governance drift checks").option("--check-stale-blockers","Include stale blocker-pattern diagnostics in lifecycle checks").option("--dependency-cycle-severity <value>","Set dependency-cycle warning policy for lifecycle checks (off|warn|error)").option("--parent-cycle-severity <value>","Set parent-hierarchy cycle warning policy for lifecycle checks (off|warn|error)").option("--check-files","Run linked-file and orphaned-file checks").option("--check-command-references","Run linked-command PM-ID reference checks").option("--scan-mode <value>","Select file candidate scan mode for --check-files (default|tracked-all|tracked-all-strict)").option("--include-pm-internals","Include PM storage internals in tracked-all candidate scans").option("--verbose-file-lists","Include full file-path lists for validate --check-files details").option("--verbose-diagnostics","Include full diagnostic ID lists").option("--all-affected-ids","Emit complete missing_* affected-ID lists with no truncation (implied by --json)").option("--strict-exit","Return non-zero exit when validation warnings are present").option("--fail-on-warn","Alias for --strict-exit").option("--fix-hints","Add a machine-executable fix_hints[] of pm commands to each failing check's details").option("--auto-fix","Apply safe, deterministic field backfills").option("--dry-run","Preview planned --auto-fix/--prune-missing fixes without applying them").option("--fix-scope <scope>","Grant --auto-fix scopes (metadata, resolution, estimates, timestamps, lifecycle; comma-separated or repeatable). Default: metadata, resolution; other scopes require explicit opt-in",collect).option("--prune-missing","Remove deleted-path file/doc links; preserves real files").option("--check-history-drift","Run item/history hash drift checks").option("--check-storage-integrity","Run the post-merge storage-integrity check (unreadable items, history conflict markers, resurrected deletes, unparseable config/schema)").option("--counts","Keep validation counts and totals while omitting per-item diagnostic arrays").option("--full","Return the complete validation diagnostic projection").action(runValidateAction),program.command("gc").option("--dry-run","Preview cleanup targets without deleting files; without this flag, pm gc deletes matched artifacts").option("--scope <value>","Limit cleanup to one or more scopes (comma-separated or repeatable): index, embeddings, runtime, locks, checkpoints, transactions",collect).description("Delete optional cache artifacts by default (including expired lock debris) and show a summary.").action(runGcAction);const workspaceCommand=program.command("workspace").description("Inspect workspace state and snapshots.");workspaceCommand.command("position").description("Show merge and history readiness.").action(runWorkspacePositionAction),workspaceCommand.command("snapshot").argument("<action>","Action: create, list, inspect, restore, delete").argument("[target]","Optional name for create; name or fingerprint otherwise").description("Manage content-addressed tracker snapshots.").option("--dry-run","Preview restore file, item, stream, and history-entry impact without mutating state").option("--force","Explicitly confirm a whole-workspace snapshot restore").option("--author <value>","Actor recorded on the restore audit event").option("--message <value>","Human-readable restore rationale").action(runWorkspaceSnapshotAction),program.command("contracts").description("Show machine-readable command and schema contracts for agents.").option("--action <value>","Filter tool schema branches to a specific action").option("--command <value>","Scope contracts output to one CLI command (narrow-by-default)").option("--summary","Return one command+intent row per top-level command for cheap agent bootstrap").option("--schema-only","Return schema-focused output only").option("--flags-only","Return command flag contracts only").option("--availability-only","Return action availability surface only").option("--runtime-only","Include only actions invocable in the current runtime").option("--active-only","Alias for --runtime-only").option("--full","Include full schema and command-flag surfaces (large; default brief output omits heavy sections for unfiltered queries)").action(runContractsAction);const claimCommand=program.command("claim").option("--start","Claim and start an explicit item").argument("[id]","Item id (omit with --next)").option("--author <value>","Mutation author").option("--message <value>","History message").option("--force","Force claim override").option("--if-available","Skip another author's claim (skipped=true)").option("--next","Atomically claim the next caller-available actionable item").option("--type <value>","Filter --next candidates by type").option("--tag <value>","Filter --next candidates by tag").option("--priority <value>","Filter --next candidates by priority").option("--assignee-filter <value>","Filter --next candidates: assigned|unassigned").option("--parent <id>","Scope --next candidates to a subtree").option("--sprint <value>","Filter --next candidates by sprint").option("--release <value>","Filter --next candidates by release").option("--max-attempts <n>","Bound the --next candidate walk (default 10; maximum 100)").option("--include-decisions","Allow --next to claim human-gated Decision items").option("--include-gates","Allow --next to claim outcome gates").option("--include-containers","Allow --next to claim containers with unfinished descendants").option("--token-budget <n>","Bound the estimated tokens used to rank --next candidates").option("--explain-ranking","Include ranking provenance for --next selection").description("Claim an item for active work.").action(runClaimAction);addHiddenOption(claimCommand,"--assignee <value>","Alias for --author on lifecycle ownership commands"),addHiddenOption(claimCommand,"--token_budget <n>","Alias for --token-budget"),addHiddenOption(claimCommand,"--explain_ranking","Alias for --explain-ranking");const releaseCommand=program.command("release").option("--pause","Use open status").option("--handoff <status>","Needs --message").argument("<id>","Item id").option("--author <value>","Author").option("--message <value>","Message").option("--force","Override ownership").description("Release ownership.").action(runReleaseAction);addHiddenOption(releaseCommand,"--assignee <value>","Alias for --author on lifecycle ownership commands");const startTaskCommand=program.command("start-task",{hidden:!0}).argument("<id>","Item id").option("--author <value>","Mutation author").option("--message <value>","History message").option("--force","Force ownership or terminal override when required").description("Lifecycle alias: claim an item and move it to in_progress.").action(runStartTaskAction);addHiddenOption(startTaskCommand,"--assignee <value>","Alias for --author on lifecycle ownership commands");const pauseTaskCommand=program.command("pause-task",{hidden:!0}).argument("<id>","Item id").option("--author <value>","Mutation author").option("--message <value>","History message").option("--force","Force ownership override when required").description("Lifecycle alias: move an item to open and release its claim.").action(runPauseTaskAction);addHiddenOption(pauseTaskCommand,"--assignee <value>","Alias for --author on lifecycle ownership commands");const closeTaskCommand=program.command("close-task",{hidden:!0}).argument("<id>","Item id").argument("[reason]","Close reason text").option("--author <value>","Mutation author").option("--message <value>","History message").option("--validate-close <value>","Close-time validation mode: off|warn|strict").option("--force","Force ownership or terminal override when required").description("Lifecycle alias: close an item and release assignment metadata.").action(runCloseTaskAction);addHiddenOption(closeTaskCommand,"--assignee <value>","Alias for --author on lifecycle ownership commands")}export{_testOnlyRegisterOperations,registerOperationCommands,requireClaimTarget};
1
+ (function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ceafed0d-5fd4-5a90-a4f3-bf0600e64bf9")}catch{}})();import{resolvePmCommandAlias,renderPmCommandAliasMigrationHint}from"../sdk/cli-contracts/command-aliases.js";import{setActiveCommandResult,EXIT_CODE,PmCliError,createUnknownSubcommandError,resolveAuthor,resolvePmRoot,readSettings}from"../sdk/runtime-primitives.js";import{runStartTask,runPauseTask,runCloseTask}from"../sdk/lifecycle/task-composition.js";import{parseStatsAnalyticsJson}from"./stats-analytics-json.js";import{createWorkspaceSnapshot,deleteWorkspaceSnapshot,inspectWorkspaceSnapshot,listWorkspaceSnapshots,planWorkspaceSnapshotRestore,restoreWorkspaceSnapshotWithRecovery,WORKSPACE_SNAPSHOT_ACTIONS}from"../sdk/workspace-snapshot.js";import{readWorkspacePosition}from"../sdk/governance/workspace-position.js";import{requireClaimTarget,runClaim,runClaimNext,runRelease}from"./commands/lifecycle/claim.js";import{runContracts}from"./commands/workspace/contracts.js";import{runDuplicates}from"./commands/query/duplicates.js";import{runGc}from"./commands/governance/gc.js";import{runHealth}from"./commands/governance/health.js";import{runStats}from"./commands/query/stats.js";import{runTelemetry}from"./commands/governance/telemetry.js";import{runTest}from"./commands/test/test.js";import{runTestAll}from"./commands/test/test-all.js";import{runStartBackgroundRun,runTestRunsWorker}from"./commands/test/test-runs.js";import{runValidate}from"./commands/governance/validate.js";import{buildBackgroundTestAllCommandArgs,applyActiveCommandResultService,buildBackgroundTestCommandArgs,addHiddenOption,collect,getGlobalOptions,invalidateSearchCachesForMutation,printError,printResult,readOptionString}from"./registration-helpers.js";import{registerAssuranceCommand}from"./register-assurance.js";import{assertTestMeasurementRun}from"../sdk/test/prerequisites.js";function resolveTelemetrySubcommand(namespaceOrSubcommand,subcommand){const normalizedNamespace=namespaceOrSubcommand?.trim().toLowerCase(),normalizedSubcommand=subcommand?.trim().toLowerCase();if(normalizedNamespace===void 0||normalizedNamespace.length===0)return normalizedSubcommand;if(normalizedNamespace==="local-analytics")return normalizedSubcommand&&normalizedSubcommand.length>0?normalizedSubcommand:"status";if(normalizedSubcommand!==void 0&&normalizedSubcommand.length>0)throw createUnknownSubcommandError({command_path:"telemetry",token:`${namespaceOrSubcommand} ${subcommand}`,allowed:["status","flush","stats","clear","local-analytics"],token_kind:"path",examples:["pm telemetry stats --limit 10","pm telemetry local-analytics status --json"]});return normalizedNamespace}function collectTestMutationValues(options){return{addValues:Array.isArray(options.add)?options.add:[],addJsonValues:Array.isArray(options.addJson)?options.addJson:[],removeValues:Array.isArray(options.remove)?options.remove:[],removeIndexValues:Array.isArray(options.removeIndex)?options.removeIndex:[]}}function validateBackgroundTestOptions(options,values){if(options.background===!0){if(options.run!==!0)throw new PmCliError("--background requires --run",EXIT_CODE.USAGE);if(options.acknowledgeLinkedTests===!0)throw new PmCliError("--background cannot be combined with --acknowledge-linked-tests; acknowledgement is a non-executing foreground operation",EXIT_CODE.USAGE);if(options.update!==void 0||options.updateIndex!==void 0||options.setJson!==void 0||values.addValues.length>0||values.addJsonValues.length>0||values.removeValues.length>0||values.removeIndexValues.length>0)throw new PmCliError("--background does not support --add/--add-json/--remove/--remove-index or metadata edits; update linked tests first, then run in background",EXIT_CODE.USAGE)}}async function runBackgroundLinkedTests(id,options,globalOptions,values){const result=await runStartBackgroundRun({kind:"test",commandArgs:buildBackgroundTestCommandArgs(id,{...options,add:values.addValues,addJson:values.addJsonValues,remove:values.removeValues,removeIndex:values.removeIndexValues}),targetId:id,author:typeof options.author=="string"?options.author:void 0,noExtensions:globalOptions.noExtensions===!0},globalOptions);printResult(result,globalOptions)}function buildTestEditOptions(options){return{update:typeof options.update=="string"?options.update:void 0,updateIndex:typeof options.updateIndex=="string"||typeof options.updateIndex=="number"?options.updateIndex:void 0,setJson:typeof options.setJson=="string"?options.setJson:void 0}}function buildRunTestOptions(options,values){return{add:values.addValues,addJson:values.addJsonValues,remove:values.removeValues,removeIndex:values.removeIndexValues,...buildTestEditOptions(options),list:!!options.list,run:!!options.run,match:typeof options.match=="string"?options.match:void 0,onlyIndex:typeof options.onlyIndex=="string"||typeof options.onlyIndex=="number"?options.onlyIndex:void 0,onlyLast:!!options.onlyLast,timeout:typeof options.timeout=="string"?options.timeout:void 0,progress:!!options.progress,envSet:Array.isArray(options.envSet)?options.envSet:[],envClear:Array.isArray(options.envClear)?options.envClear:[],sharedHostSafe:!!options.sharedHostSafe,pmContext:typeof options.pmContext=="string"?options.pmContext:void 0,overrideLinkedPmContext:!!options.overrideLinkedPmContext,workspaceContext:typeof options.workspaceContext=="string"?options.workspaceContext:void 0,overrideLinkedWorkspaceContext:!!options.overrideLinkedWorkspaceContext,allowUntrustedLinkedTests:!!options.allowUntrustedLinkedTests,acknowledgeLinkedTests:!!options.acknowledgeLinkedTests,failOnContextMismatch:!!options.failOnContextMismatch,failOnSkipped:!!options.failOnSkipped,failOnEmptyTestRun:!!options.failOnEmptyTestRun,requireAssertionsForPm:!!options.requireAssertionsForPm,checkContext:!!options.checkContext,autoPmContext:!!options.autoPmContext,author:typeof options.author=="string"?options.author:void 0,message:typeof options.message=="string"?options.message:void 0,force:!!options.force,measure:Array.isArray(options.measure)?options.measure:[],metricBelow:typeof options.metricBelow=="string"?options.metricBelow:void 0,metricDiff:typeof options.metricDiff=="string"?options.metricDiff:void 0}}const _testOnlyRegisterOperations={buildRunTestOptions,buildRunTestAllOptions,runWorkspacePositionAction,validateBackgroundTestOptions};async function runForegroundLinkedTests(id,options,globalOptions,values){const result=await runTest(id,buildRunTestOptions(options,values),globalOptions);(options.update!==void 0||options.updateIndex!==void 0||options.setJson!==void 0||values.addValues.length>0||values.addJsonValues.length>0||values.removeValues.length>0||options.run===!0||values.removeIndexValues.length>0)&&await invalidateSearchCachesForMutation(globalOptions,result),printResult(result,globalOptions),(result.run_results.some(entry=>entry.status==="failed"||entry.status==="refused")||result.fail_on_skipped_triggered===!0)&&(process.exitCode=EXIT_CODE.DEPENDENCY_FAILED)}async function runTestCommandAction(id,options,command){const globalOptions=getGlobalOptions(command),startedAt=Date.now(),values=collectTestMutationValues(options);options.background===!0&&assertTestMeasurementRun(id,buildRunTestOptions(options,values),globalOptions,resolvePmRoot(process.cwd(),globalOptions.path),!0),validateBackgroundTestOptions(options,values),options.background===!0?await runBackgroundLinkedTests(id,options,globalOptions,values):await runForegroundLinkedTests(id,options,globalOptions,values),globalOptions.profile&&printError(`profile:command=test took_ms=${Date.now()-startedAt}`)}function buildLifecycleMutationOptions(options){const author=readOptionString(options,"author"),assignee=readOptionString(options,"assignee");if(author!==void 0&&assignee!==void 0&&author!==assignee)throw new PmCliError("Lifecycle ownership received conflicting --author and --assignee values; use one actor value for both aliases.",EXIT_CODE.USAGE,{code:"conflicting_lifecycle_owner",examples:["pm claim pm-123","pm claim pm-123 --start","pm release pm-123"]});return{author:author??assignee,message:readOptionString(options,"message")}}async function runTestAllAction(options,command){const globalOptions=getGlobalOptions(command),startedAt=Date.now();if(options.background===!0){const result2=await runStartBackgroundRun({kind:"test-all",commandArgs:buildBackgroundTestAllCommandArgs(options),statusFilter:readOptionString(options,"status"),noExtensions:globalOptions.noExtensions===!0},globalOptions);printResult(result2,globalOptions),globalOptions.profile&&printError(`profile:command=test-all took_ms=${Date.now()-startedAt}`);return}const result=await runTestAll(buildRunTestAllOptions(options),globalOptions);await invalidateSearchCachesForMutation(globalOptions,{ids:result.results.map(entry=>entry.id)}),printResult(result,globalOptions),(result.failed>0||result.fail_on_skipped_triggered===!0)&&(process.exitCode=EXIT_CODE.DEPENDENCY_FAILED),globalOptions.profile&&printError(`profile:command=test-all took_ms=${Date.now()-startedAt}`)}function buildRunTestAllOptions(options){return{status:readOptionString(options,"status"),limit:readOptionString(options,"limit"),offset:readOptionString(options,"offset"),timeout:readOptionString(options,"timeout"),progress:!!options.progress,envSet:Array.isArray(options.envSet)?options.envSet:[],envClear:Array.isArray(options.envClear)?options.envClear:[],sharedHostSafe:!!options.sharedHostSafe,pmContext:readOptionString(options,"pmContext"),overrideLinkedPmContext:!!options.overrideLinkedPmContext,workspaceContext:readOptionString(options,"workspaceContext"),overrideLinkedWorkspaceContext:!!options.overrideLinkedWorkspaceContext,allowUntrustedLinkedTests:!!options.allowUntrustedLinkedTests,failOnContextMismatch:!!options.failOnContextMismatch,failOnSkipped:!!options.failOnSkipped,failOnEmptyTestRun:!!options.failOnEmptyTestRun,requireAssertionsForPm:!!options.requireAssertionsForPm,checkContext:!!options.checkContext,autoPmContext:!!options.autoPmContext}}async function runTelemetryAction(namespaceOrSubcommand,subcommand,options,command){const globalOptions=getGlobalOptions(command),startedAt=Date.now(),result=await runTelemetry({subcommand:resolveTelemetrySubcommand(namespaceOrSubcommand,subcommand),limit:readOptionString(options,"limit")},globalOptions);printResult(result,globalOptions),globalOptions.profile&&printError(`profile:command=telemetry took_ms=${Date.now()-startedAt}`)}async function runStatsAction(options,command){const globalOptions=getGlobalOptions(command),startedAt=Date.now(),analytics=parseStatsAnalyticsJson(readOptionString(options,"analytics")),result=await runStats(globalOptions,{includeEmpty:options.includeEmpty===!0,storage:options.storage===!0,metadataCoverage:options.metadataCoverage===!0,byAssignee:options.byAssignee===!0,byTag:options.byTag===!0,byPriority:options.byPriority===!0,tagPrefix:readOptionString(options,"tagPrefix"),fieldUtilization:options.fieldUtilization===!0,...analytics});result.recorded_observations?.some(entry=>entry.changed)===!0&&await invalidateSearchCachesForMutation(globalOptions,{ids:result.recorded_observations?.flatMap(entry=>entry.observation.item_id?[entry.observation.item_id]:[])}),printResult(result,globalOptions),globalOptions.profile&&printError(`profile:command=stats took_ms=${Date.now()-startedAt}`)}async function runDuplicatesAction(options,command){const globalOptions=getGlobalOptions(command),startedAt=Date.now(),threshold=readOptionString(options,"threshold"),limit=readOptionString(options,"limit"),result=await runDuplicates(globalOptions,{...options.exhaustive===!0?{exhaustive:!0}:{},status:Array.isArray(options.status)&&options.status.length>0?options.status:void 0,since:readOptionString(options,"since"),...threshold===void 0?{}:{threshold:Number(threshold)},...limit===void 0?{}:{limit:Number(limit)}});printResult(result,globalOptions),globalOptions.profile&&printError(`profile:command=duplicates took_ms=${Date.now()-startedAt}`)}async function runHealthAction(options,command){const globalOptions=getGlobalOptions(command),startedAt=Date.now(),strictExit=!!options.strictExit||!!options.failOnWarn,result=await runHealth(globalOptions,{strictExit,strictDirectories:!!options.strictDirectories,requireMergeDrivers:!!options.requireMergeDrivers,checkOnly:!!options.checkOnly,checkTelemetry:!!options.checkTelemetry,noRefresh:!!options.noRefresh,refreshVectors:!!options.refreshVectors,verboseStaleItems:!!options.verboseStaleItems,verboseAuthorEvents:!!options.verboseAuthorEvents,brief:!!options.brief,summary:!!options.summary||strictExit,skipVectors:!!options.skipVectors,skipIntegrity:!!options.skipIntegrity,skipDrift:!!options.skipDrift,full:!!options.full});printResult(result,globalOptions),strictExit&&!result.ok&&(setActiveCommandResult({...result,exit_code:EXIT_CODE.GENERIC_FAILURE,error_code:"health_findings",error_category:"validation",command_resolution:"health_findings",resolution_stage:"execute"}),process.exitCode=EXIT_CODE.GENERIC_FAILURE),globalOptions.profile&&printError(`profile:command=health took_ms=${Date.now()-startedAt}`)}async function runValidateAction(options,command){const globalOptions=getGlobalOptions(command),startedAt=Date.now(),result=await runValidate({checkMetadata:!!options.checkMetadata,metadataProfile:readOptionString(options,"metadataProfile"),checkResolution:!!options.checkResolution,checkCompleteness:!!options.checkCompleteness,checkLifecycle:!!options.checkLifecycle,checkStaleBlockers:!!options.checkStaleBlockers,dependencyCycleSeverity:readOptionString(options,"dependencyCycleSeverity"),parentCycleSeverity:readOptionString(options,"parentCycleSeverity"),checkFiles:!!options.checkFiles,checkCommandReferences:!!options.checkCommandReferences,scanMode:readOptionString(options,"scanMode"),includePmInternals:!!options.includePmInternals,verboseFileLists:!!options.verboseFileLists,verboseDiagnostics:!!options.verboseDiagnostics,allAffectedIds:!!options.allAffectedIds,checkHistoryDrift:!!options.checkHistoryDrift,checkStorageIntegrity:!!options.checkStorageIntegrity,fixHints:!!options.fixHints,autoFix:!!options.autoFix,dryRun:!!options.dryRun,fixScope:Array.isArray(options.fixScope)?options.fixScope:void 0,pruneMissing:!!options.pruneMissing,counts:!!options.counts,full:!!options.full},globalOptions);printResult(result,globalOptions),(options.strictExit||options.failOnWarn)&&(result.has_warnings||!result.ok)&&(setActiveCommandResult({...result,exit_code:EXIT_CODE.GENERIC_FAILURE,error_code:"validation_findings",error_category:"validation",command_resolution:"validation_findings",resolution_stage:"execute"}),process.exitCode=EXIT_CODE.GENERIC_FAILURE),globalOptions.profile&&printError(`profile:command=validate took_ms=${Date.now()-startedAt}`)}async function runGcAction(options,command){const globalOptions=getGlobalOptions(command),startedAt=Date.now(),result=await runGc(globalOptions,{dryRun:options.dryRun===!0,scope:Array.isArray(options.scope)?options.scope:[]});printResult(result,globalOptions),globalOptions.profile&&printError(`profile:command=gc took_ms=${Date.now()-startedAt}`)}async function runWorkspaceSnapshotAction(action,target,options,command){const globalOptions=getGlobalOptions(command),pmRoot=resolvePmRoot(process.cwd(),globalOptions.path),normalizedAction=action.trim().toLowerCase();if(!WORKSPACE_SNAPSHOT_ACTIONS.some(entry=>entry===normalizedAction))throw createUnknownSubcommandError({command_path:"workspace snapshot",token:action,allowed:WORKSPACE_SNAPSHOT_ACTIONS,display_name:"workspace snapshot",token_kind:"action",examples:["pm workspace snapshot create before-migration","pm workspace snapshot restore before-migration"]});if(normalizedAction==="list"){printResult(await listWorkspaceSnapshots(pmRoot),globalOptions);return}if(normalizedAction==="create"){printResult(await createWorkspaceSnapshot(pmRoot,target===void 0?{}:{name:target}),globalOptions);return}if(target===void 0)throw new PmCliError(`pm workspace snapshot ${normalizedAction} requires a snapshot name or fingerprint`,EXIT_CODE.USAGE);if(normalizedAction==="inspect"){printResult(await inspectWorkspaceSnapshot(pmRoot,target),globalOptions);return}if(normalizedAction==="restore"){if(options.dryRun===!0){printResult(await planWorkspaceSnapshotRestore(pmRoot,target),globalOptions);return}const settings=await readSettings(pmRoot);printResult(await restoreWorkspaceSnapshotWithRecovery(pmRoot,target,{force:options.force===!0,author:resolveAuthor(readOptionString(options,"author"),settings.author_default),message:readOptionString(options,"message"),lockTtlSeconds:settings.locks.ttl_seconds,lockWaitMs:settings.locks.wait_ms}),globalOptions);return}printResult(await deleteWorkspaceSnapshot(pmRoot,target),globalOptions)}async function runWorkspacePositionAction(_options,command){const globalOptions=getGlobalOptions(command);printResult(await readWorkspacePosition(globalOptions),globalOptions)}async function runContractsAction(options,command){const globalOptions=getGlobalOptions(command),startedAt=Date.now(),result=await runContracts({action:readOptionString(options,"action"),command:readOptionString(options,"command"),summary:!!options.summary,schemaOnly:!!options.schemaOnly,flagsOnly:!!options.flagsOnly,availabilityOnly:!!options.availabilityOnly,runtimeOnly:!!options.runtimeOnly||!!options.activeOnly,full:!!options.full},globalOptions);printResult(result,globalOptions),globalOptions.profile&&printError(`profile:command=contracts took_ms=${Date.now()-startedAt}`)}async function runClaimAction(id,options,command){const next=options.next===!0,start=options.start===!0;if(start&&id){await runStartTaskAction(id,options,command);return}requireClaimTarget(id,next,start);const globalOptions=getGlobalOptions(command),startedAt=Date.now(),lifecycleOptions={...buildLifecycleMutationOptions(options),ifAvailable:options.ifAvailable===!0,maxAttempts:options.maxAttempts,...start?{start:!0}:{}},result=next?await runClaimNext(!!options.force,globalOptions,lifecycleOptions,readClaimNextSelection(options)):await runClaim(id,!!options.force,globalOptions,lifecycleOptions);await invalidateSearchCachesForMutation(globalOptions,result),printResult(result,globalOptions),globalOptions.profile&&printError(`profile:command=claim took_ms=${Date.now()-startedAt}`)}function readClaimNextSelection(options){return{type:readOptionString(options,"type"),tag:readOptionString(options,"tag"),priority:options.priority,assigneeFilter:readOptionString(options,"assigneeFilter"),parent:readOptionString(options,"parent"),sprint:readOptionString(options,"sprint"),release:readOptionString(options,"release"),includeDecisions:options.includeDecisions===!0,includeGates:options.includeGates===!0,includeContainers:options.includeContainers===!0,tokenBudget:options.tokenBudget??options.token_budget,explainRanking:options.explainRanking===!0||options.explain_ranking===!0}}async function runReleaseAction(id,options,command){if(options.pause===!0){await runPauseTaskAction(id,options,command);return}const globalOptions=getGlobalOptions(command),startedAt=Date.now(),result=await runRelease(id,!!options.force,globalOptions,{...buildLifecycleMutationOptions(options),ownershipReleaseBypass:options.ownershipReleaseBypass===!0,handoff:options.handoff});await invalidateSearchCachesForMutation(globalOptions,result),printResult(await applyActiveCommandResultService("release",[id],options,globalOptions,result),globalOptions),globalOptions.profile&&printError(`profile:command=release took_ms=${Date.now()-startedAt}`)}async function printLifecycleAliasHint(command){const global2=getGlobalOptions(command),alias=resolvePmCommandAlias(command.name());!alias||global2.json||global2.quiet||(await readSettings(resolvePmRoot(process.cwd(),global2.path))).ux?.deprecation_hints&&printError(renderPmCommandAliasMigrationHint(alias))}async function runStartTaskAction(id,options,command){await printLifecycleAliasHint(command);const globalOptions=getGlobalOptions(command),startedAt=Date.now(),result=await runStartTask(id,{...buildLifecycleMutationOptions(options),force:!!options.force,next:options.next===!0,ifAvailable:options.ifAvailable===!0},globalOptions);await invalidateSearchCachesForMutation(globalOptions,result.update),printResult(result,globalOptions),globalOptions.profile&&printError(`profile:command=start-task took_ms=${Date.now()-startedAt}`)}async function runPauseTaskAction(id,options,command){await printLifecycleAliasHint(command);const globalOptions=getGlobalOptions(command),startedAt=Date.now(),result=await runPauseTask(id,{...buildLifecycleMutationOptions(options),handoff:readOptionString(options,"handoff"),force:!!options.force},globalOptions);await invalidateSearchCachesForMutation(globalOptions,result.release),printResult(result,globalOptions),globalOptions.profile&&printError(`profile:command=pause-task took_ms=${Date.now()-startedAt}`)}async function runCloseTaskAction(id,reason,options,command){await printLifecycleAliasHint(command);const globalOptions=getGlobalOptions(command),startedAt=Date.now(),result=await runCloseTask(id,reason,{...buildLifecycleMutationOptions(options),validateClose:readOptionString(options,"validateClose"),force:!!options.force},globalOptions);await invalidateSearchCachesForMutation(globalOptions,result.release),printResult(result,globalOptions),globalOptions.profile&&printError(`profile:command=close-task took_ms=${Date.now()-startedAt}`)}function addLinkedTestExecutionOptions(command){return command.option("--background","Run linked tests in managed background mode").option("--timeout <seconds>","Default run timeout in seconds (requires --run)").option("--progress","Emit stderr run progress (requires --run; automatic in TTY)").option("--env-set <value>","Set run environment (KEY=VALUE, repeatable)",collect).option("--env-clear <value>","Clear run environment (NAME, repeatable)",collect).option("--shared-host-safe","Apply additive shared-host-safe run defaults").option("--pm-context <mode>","PM test context: schema|tracker|auto|none (default: schema)").option("--override-linked-pm-context","Override stored context with --pm-context").option("--workspace-context <mode>","Source-workspace mode: source|isolated|snapshot (default: source)").option("--override-linked-workspace-context","Override stored context with --workspace-context").option("--allow-untrusted-linked-tests","Execute untrusted linked commands when project policy also permits it").option("--fail-on-context-mismatch","Fail linked PM commands when context item counts differ").option("--fail-on-skipped","Treat skipped linked tests as dependency failures").option("--fail-on-empty-test-run","Fail successful commands reporting zero executed tests").option("--require-assertions-for-pm","Require assertion metadata for linked PM command tests").option("--check-context","Check PM context before execution").option("--auto-pm-context","Route mismatched PM tracker reads through tracker context")}function registerOperationCommands(program){registerAssuranceCommand(program);const testCommand=program.command("test").argument("<id>","Item id").option("--add <value>","Add verified isolated test (CSV/markdown or stdin)",collect).option("--add-json <value>","Add verified isolated test (JSON object/array or stdin)",collect).option("--remove <value>","Remove exact command/path (command=<value>, path=<value>, or stdin -)",collect).option("--remove-index <n>","Remove 1-based --list position (repeatable)",collect).option("--list","List linked tests without mutating").option("--update <value>","Edit exact command or path=<value>").option("--update-index <n>","Edit current 1-based --list position").option("--set-json <value>","Metadata patch; null clears optional fields").option("--run","Run linked test commands").option("--match <value>","Run matching command/path substring").option("--only-index <n>","Run 1-based --list position").option("--only-last","Run most recently added test");testCommand.option("--acknowledge-linked-tests","Trust current commands in this clone without execution"),addLinkedTestExecutionOptions(testCommand).option("--measure <value>","Record name=value[,unit=...][,threshold=...]; requires --run",collect).option("--metric-below <value>","Return evidence below name=value").option("--metric-diff <name>","Diff the latest two values").option("--author <value>","Mutation author").option("--message <value>","History message").option("--force","Force ownership override").description("Manage tests linked to an item and optionally run them.").action(runTestCommandAction);const testAllCommand=program.command("test-all").description("Run linked tests across matching items.").option("--status <value>","Filter items by status before running tests").option("--limit <n>","Limit matching items before running linked tests").option("--offset <n>","Skip matching items before running linked tests");addLinkedTestExecutionOptions(testAllCommand).action(runTestAllAction),program.command("test-runs-worker",{hidden:!0}).argument("<runId>","Background run id").description("Internal background worker command.").action(async(runId,_options,command)=>{const globalOptions=getGlobalOptions(command);await runTestRunsWorker(runId,globalOptions)}),program.command("telemetry").argument("[namespace-or-subcommand]","Telemetry subcommand: status, flush, stats, clear (default: status)").argument("[subcommand]","Compatibility alias target for local-analytics: status, flush, stats, clear").option("--limit <n>","Maximum command groups returned by telemetry stats").description("Inspect and manage local telemetry queue/runtime state.").action(runTelemetryAction),program.command("duplicates").description("Find duplicate clusters across all statuses.").option("--status <value>","Statuses (repeatable or comma-separated)",collect,[]).option("--since <value>","Created at or after this time").option("--threshold <value>","Minimum similarity (0-1)").option("--limit <n>","Maximum clusters").option("--exhaustive","Score all pairs within the safety bound").action(runDuplicatesAction),program.command("stats").description("Show project tracker statistics.").option("--include-empty","Restore zero-count registered item-type and lifecycle-status buckets").option("--storage","Include aggregate history-stream storage metrics (total streams/lines/bytes, largest + deepest streams, oldest/newest entries)").option("--metadata-coverage","Include metadata coverage % (acceptance_criteria, estimated_minutes, resolution, tags, parent) overall and by type").option("--by-assignee","Include a lifecycle-bucketed item breakdown grouped by assignee").option("--by-tag","Include a lifecycle-bucketed item breakdown grouped by tag").option("--by-priority","Include a lifecycle-bucketed item breakdown grouped by priority").option("--tag-prefix <value>","With --by-tag: only count tags starting with this prefix (e.g. domain:)").option("--field-utilization","Report content-field utilization rates (notes/learnings/files/docs/tests/comments/deps/body) for governance analysis").option("--analytics <json>","Improvement ledger/history analytics JSON").action(runStatsAction),program.command("health").description("Show project tracker health checks.").option("--strict-directories","Treat optional item-type directories as required failures").option("--require-merge-drivers","Treat absent clone-local merge drivers as a required health failure").option("--check-only","Run read-only health diagnostics without refreshing vectors").option("--check-telemetry","Probe telemetry endpoint health and include network diagnostics").option("--no-refresh","Disable automatic vector refresh attempts during health checks").option("--refresh-vectors","Explicitly enable vector refresh attempts during health checks").option("--verbose-stale-items","Include full stale vectorization ID lists in health output").option("--verbose-author-events","Include every actionable unknown-author event coordinate for review or disposition").option("--brief","Emit compact health details for low-token agent checks").option("--summary","Emit one-line-style health status with check names and warning count").option("--skip-vectors","Skip vectorization check for a faster run").option("--skip-integrity","Skip item/history file integrity check for a faster run").option("--skip-drift","Skip history drift hash check for a faster run").option("--full","Run all checks including slow integrity, drift, and vectorization checks").option("--strict-exit","Return non-zero exit when health is not ok and default to actionable summary output; use --full for complete details").option("--fail-on-warn","Alias for --strict-exit").action(runHealthAction),program.command("validate").description("Validate metadata, lifecycle policies, files, command references, and history.").option("--check-metadata","Run metadata completeness checks").option("--metadata-profile <value>","Metadata profile (core|strict|custom)").option("--check-resolution","Run closed-item resolution metadata checks").option("--check-completeness","Check declarative lifecycle field requirements").option("--check-lifecycle","Run active-item lifecycle governance drift checks").option("--check-stale-blockers","Include stale blocker-pattern diagnostics in lifecycle checks").option("--dependency-cycle-severity <value>","Set dependency-cycle warning policy for lifecycle checks (off|warn|error)").option("--parent-cycle-severity <value>","Set parent-hierarchy cycle warning policy for lifecycle checks (off|warn|error)").option("--check-files","Run linked-file and orphaned-file checks").option("--check-command-references","Run linked-command PM-ID reference checks").option("--scan-mode <value>","Select file candidate scan mode for --check-files (default|tracked-all|tracked-all-strict)").option("--include-pm-internals","Include PM storage internals in tracked-all candidate scans").option("--verbose-file-lists","Include full file-path lists for validate --check-files details").option("--verbose-diagnostics","Include full diagnostic ID lists").option("--all-affected-ids","Emit complete missing_* affected-ID lists with no truncation (implied by --json)").option("--strict-exit","Return non-zero exit when validation warnings are present").option("--fail-on-warn","Alias for --strict-exit").option("--fix-hints","Add a machine-executable fix_hints[] of pm commands to each failing check's details").option("--auto-fix","Apply safe, deterministic field backfills").option("--dry-run","Preview planned --auto-fix/--prune-missing fixes without applying them").option("--fix-scope <scope>","Grant --auto-fix scopes (metadata, resolution, estimates, timestamps, lifecycle; comma-separated or repeatable). Default: metadata, resolution; other scopes require explicit opt-in",collect).option("--prune-missing","Remove deleted-path file/doc links; preserves real files").option("--check-history-drift","Run item/history hash drift checks").option("--check-storage-integrity","Run the post-merge storage-integrity check (unreadable items, history conflict markers, resurrected deletes, unparseable config/schema)").option("--counts","Keep validation counts and totals while omitting per-item diagnostic arrays").option("--full","Return the complete validation diagnostic projection").action(runValidateAction),program.command("gc").option("--dry-run","Preview cleanup targets without deleting files; without this flag, pm gc deletes matched artifacts").option("--scope <value>","Limit cleanup to one or more scopes (comma-separated or repeatable): index, embeddings, runtime, locks, checkpoints, transactions",collect).description("Delete optional cache artifacts by default (including expired lock debris) and show a summary.").action(runGcAction);const workspaceCommand=program.command("workspace").description("Inspect workspace state and snapshots.");workspaceCommand.command("position").description("Show merge and history readiness.").action(runWorkspacePositionAction),workspaceCommand.command("snapshot").argument("<action>","Action: create, list, inspect, restore, delete").argument("[target]","Optional name for create; name or fingerprint otherwise").description("Manage content-addressed tracker snapshots.").option("--dry-run","Preview restore file, item, stream, and history-entry impact without mutating state").option("--force","Explicitly confirm a whole-workspace snapshot restore").option("--author <value>","Actor recorded on the restore audit event").option("--message <value>","Human-readable restore rationale").action(runWorkspaceSnapshotAction),program.command("contracts").description("Show machine-readable command and schema contracts for agents.").option("--action <value>","Filter tool schema branches to a specific action").option("--command <value>","Scope contracts output to one CLI command (narrow-by-default)").option("--summary","Return one command+intent row per top-level command for cheap agent bootstrap").option("--schema-only","Return schema-focused output only").option("--flags-only","Return command flag contracts only").option("--availability-only","Return action availability surface only").option("--runtime-only","Include only actions invocable in the current runtime").option("--active-only","Alias for --runtime-only").option("--full","Include full schema and command-flag surfaces (large; default brief output omits heavy sections for unfiltered queries)").action(runContractsAction);const claimCommand=program.command("claim").option("--start","Claim and start (id or --next)").argument("[id]","Item id (omit with --next)").option("--author <value>","Mutation author").option("--message <value>","History message").option("--force","Force claim override").option("--if-available","Skip another author's claim (skipped=true)").option("--next","Atomically claim the next caller-available actionable item").option("--type <value>","Filter --next candidates by type").option("--tag <value>","Filter --next candidates by tag").option("--priority <value>","Filter --next candidates by priority").option("--assignee-filter <value>","Filter --next candidates: assigned|unassigned").option("--parent <id>","Scope --next candidates to a subtree").option("--sprint <value>","Filter --next candidates by sprint").option("--release <value>","Filter --next candidates by release").option("--max-attempts <n>","Bound the --next candidate walk (default 10; maximum 100)").option("--include-decisions","Allow --next to claim human-gated Decision items").option("--include-gates","Allow --next to claim outcome gates").option("--include-containers","Allow --next to claim containers with unfinished descendants").option("--token-budget <n>","Bound the estimated tokens used to rank --next candidates").option("--explain-ranking","Include ranking provenance for --next selection").description("Claim an item for active work.").action(runClaimAction);addHiddenOption(claimCommand,"--assignee <value>","Alias for --author on lifecycle ownership commands"),addHiddenOption(claimCommand,"--token_budget <n>","Alias for --token-budget"),addHiddenOption(claimCommand,"--explain_ranking","Alias for --explain-ranking");const releaseCommand=program.command("release").option("--pause","Use open status").option("--handoff <status>","Needs --message").argument("<id>","Item id").option("--author <value>","Author").option("--message <value>","Message").option("--force","Override ownership").description("Release ownership.").action(runReleaseAction);addHiddenOption(releaseCommand,"--assignee <value>","Alias for --author on lifecycle ownership commands");const startTaskCommand=program.command("start-task",{hidden:!0}).argument("<id>","Item id").option("--author <value>","Mutation author").option("--message <value>","History message").option("--force","Force ownership or terminal override when required").description("Lifecycle alias: claim an item and move it to in_progress.").action(runStartTaskAction);addHiddenOption(startTaskCommand,"--assignee <value>","Alias for --author on lifecycle ownership commands");const pauseTaskCommand=program.command("pause-task",{hidden:!0}).argument("<id>","Item id").option("--author <value>","Mutation author").option("--message <value>","History message").option("--force","Force ownership override when required").description("Lifecycle alias: move an item to open and release its claim.").action(runPauseTaskAction);addHiddenOption(pauseTaskCommand,"--assignee <value>","Alias for --author on lifecycle ownership commands");const closeTaskCommand=program.command("close-task",{hidden:!0}).argument("<id>","Item id").argument("[reason]","Close reason text").option("--author <value>","Mutation author").option("--message <value>","History message").option("--validate-close <value>","Close-time validation mode: off|warn|strict").option("--force","Force ownership or terminal override when required").description("Lifecycle alias: close an item and release assignment metadata.").action(runCloseTaskAction);addHiddenOption(closeTaskCommand,"--assignee <value>","Alias for --author on lifecycle ownership commands")}export{_testOnlyRegisterOperations,registerOperationCommands,requireClaimTarget};
2
2
  //# sourceMappingURL=register-operations.js.map
@@ -1 +1 @@
1
- {"schema_version":1,"generation":"63ef9f8e1b715e858882fcc8c693b781ab24b42b1c0dea7442059d80f9bf4654","files":[{"path":"chunks/chunk-24J6TNYE.js","sha256":"1edde5c63a70310fe9c0d16c109738658667afad51fad8e311cc4f0f4f3da576"},{"path":"chunks/chunk-24J6TNYE.js.map","sha256":"0e169da43af38b44ce993da2a96cb273329370f9c4a073c7a852826e0a7ebf11"},{"path":"chunks/chunk-2AHSPMKJ.js","sha256":"cc4870319e45851b92b02ca8def23b06fb2d4a4bd9515e51e90e4fb4f44a0613"},{"path":"chunks/chunk-2AHSPMKJ.js.map","sha256":"3ef6aaaab9d223b065b678a7eb29cc8fb1a241156372d5809b00812dd5a84afb"},{"path":"chunks/chunk-35Q2B2GJ.js","sha256":"a438306c0a6352107cf1d364b471ef82aa3bcbc8b548e0637a39ec42f59149e3"},{"path":"chunks/chunk-35Q2B2GJ.js.map","sha256":"a293fc0d94c56a7f11857fdc95a5355cf5ceca2329c9a17dd21416824f947b0b"},{"path":"chunks/chunk-43R7UTWV.js","sha256":"09086ae6e955efc33251b55cd4b042e2edda2ac669f0fca0cf2e1fbdb311c79c"},{"path":"chunks/chunk-43R7UTWV.js.map","sha256":"56703820ed8260aaae617bfd55b38da2ed58272d296d0df44f708569ec2205be"},{"path":"chunks/chunk-6PSDQ7T7.js","sha256":"b908ce1d46c46c2025c449577f691c7ac3cc2f2a42cd1ac24484d86cd24b7936"},{"path":"chunks/chunk-6PSDQ7T7.js.map","sha256":"6891e9179042addffd88d12c8e1e02a0598c5b577cc5857271cf485b72077c46"},{"path":"chunks/chunk-BS2KXT24.js","sha256":"d66122bbeae0971e17665f5ee7e6b4796590027f5f86ad91afcdea5b6060e174"},{"path":"chunks/chunk-BS2KXT24.js.map","sha256":"f030eaf09b794eb5b43b84b2689c651859a6e24e8fefcbe44e522bb6bad10c6c"},{"path":"chunks/chunk-DEZPZOQ7.js","sha256":"ef11ddab9ecc9533cac75ccc8ca41058a59382dfbe3262033fa21c7264d73b0d"},{"path":"chunks/chunk-DEZPZOQ7.js.map","sha256":"ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"},{"path":"chunks/chunk-GMBDZID5.js","sha256":"456d25cff198a592c788f0b8e873c6b2a5488d26acaab835ca44f7c36e0ded2c"},{"path":"chunks/chunk-GMBDZID5.js.map","sha256":"b419122e5ab53acf155533f9b52f8f50f1bc5996260bc49e47522cbba57b802e"},{"path":"chunks/chunk-HSBTITO4.js","sha256":"d4baabd98df92e39e69fd4b12fb4dd3e2fb4056626ee92eaea76e7705b56387c"},{"path":"chunks/chunk-HSBTITO4.js.map","sha256":"f04e9aad84e36d12121cb8f86e51ad4eba1e97f83578dbcdc16eabe5bb817dca"},{"path":"chunks/chunk-IB7UB5TE.js","sha256":"158940f663a676247075395b646afbce49c7b88138d677699bdabf9add9776df"},{"path":"chunks/chunk-IB7UB5TE.js.map","sha256":"ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"},{"path":"chunks/chunk-MRUA2Z43.js","sha256":"ba3b86f0c3c06a526b7858d0d691bd9a97b3861f5afed4caa71a704f26730c7f"},{"path":"chunks/chunk-MRUA2Z43.js.map","sha256":"26c92ca1dcf896743cae73cdf47c47a8133e4e9cff4590b313c02d7094087305"},{"path":"chunks/chunk-P3LNMWL2.js","sha256":"33614845c896c0c245ec88e530c2072e54c99edfbb32938549ac7ed659846d1f"},{"path":"chunks/chunk-P3LNMWL2.js.map","sha256":"7c4ae61287228d93ee6ab373b8c0f52e961d4eb850e12b448f8720384277a290"},{"path":"chunks/chunk-PT7TS6E7.js","sha256":"9a3e0e6a47017505799bd48e7a2121e7965eed0f8b0471158308881a910faf61"},{"path":"chunks/chunk-PT7TS6E7.js.map","sha256":"4a5ca6e764c15fb0d450a503ccc2a44ed842607387bdd8736d4173063f5da2be"},{"path":"chunks/chunk-SBVX5CMV.js","sha256":"d62dd949ec9316658f5d66de3319e239a4859e3f40af6ad243d33b403b2d98f9"},{"path":"chunks/chunk-SBVX5CMV.js.map","sha256":"f295630c5dc63081c1891c29b55fd197bac98d6452e29c09eaf97fdbc35554a0"},{"path":"chunks/chunk-SPPHDVZE.js","sha256":"ba82130f93656299c39dc713ba1f03fc47bec7a39fac6594c72e10ba398f04d3"},{"path":"chunks/chunk-SPPHDVZE.js.map","sha256":"3a5501d6ab3f711b0aaa21285ea5fba97feaf79460619089e0e6010785e3ad7e"},{"path":"chunks/chunk-TL3O5GZA.js","sha256":"2e919dc7c16736bd7bb56304e4b91f3bab2b7b0fcae6112fad003ed91955b993"},{"path":"chunks/chunk-TL3O5GZA.js.map","sha256":"9ec1fba8317cf22847f0569f76109b60d5f4033bf848424717096206d4b7d37f"},{"path":"chunks/chunk-U7JXZMU5.js","sha256":"481efc80bbbd9fb2e921d3152fb3e4c3085f3a36aeea0fbb63c72764673c05ee"},{"path":"chunks/chunk-U7JXZMU5.js.map","sha256":"09106f566e8c526cbe313fdc87ea883d46662c1d892d473be7e8ee6679aa2eab"},{"path":"chunks/chunk-V6EWBTNH.js","sha256":"f68177b8430c87269da206d42375ceaf1848a857255915443396f9de4fb8fab8"},{"path":"chunks/chunk-V6EWBTNH.js.map","sha256":"962aeeab1815bccee8dffa040c671affb8cce2a4667002d017b43afc593a1882"},{"path":"chunks/chunk-VC7TA67O.js","sha256":"d2faf1bf6982bdcc417d61e8003c8ce900d18662aefbe4932a79cb06237dcc84"},{"path":"chunks/chunk-VC7TA67O.js.map","sha256":"df2395cd8b36b1ab2f0f41955687c6024f90fd1be4a4fae120a26e28fe17f399"},{"path":"chunks/chunk-VS565KBX.js","sha256":"f66d92e0d59add33123dc44938a2cf76a749b262d5c044d8bbccce24861f9351"},{"path":"chunks/chunk-VS565KBX.js.map","sha256":"562c753aa39adbfdbeefaf390e68fdadd1fe986bcb6e82f9355315e8d6a16ec9"},{"path":"chunks/chunk-WNF6FOL7.js","sha256":"85c5c84fa6655c60e17051a543cb6dc671f48ac0b6bc5632f5e503c8fc1e9b87"},{"path":"chunks/chunk-WNF6FOL7.js.map","sha256":"3bd42ea56f195593c8e5040175ec820dd18e34f93f9a4e254d77756269f1356d"},{"path":"chunks/chunk-WRXQAW7Q.js","sha256":"829022b5ec46eaaf932d7033e9926b93c349ae3346d0488c1fa246c8ac64627a"},{"path":"chunks/chunk-WRXQAW7Q.js.map","sha256":"d4f6e46df8065f307cadb85e0fcfc255363a7cc3e7ef21d96af2f0e70e30258f"},{"path":"chunks/chunk-WX25MU4N.js","sha256":"980ea75f0260a23addf37bd1871dfe6f72f97beeb901867b2db23cdc683019fa"},{"path":"chunks/chunk-WX25MU4N.js.map","sha256":"ceae7d656b49b8e0fced31f940dbbfc88e8410a6f48befa643b4b2c9a5b7355d"},{"path":"chunks/chunk-XAWE4EAK.js","sha256":"9ec1c5760661739327050e0bfc643cdfb827f8f501fe1a57c28be01371f89128"},{"path":"chunks/chunk-XAWE4EAK.js.map","sha256":"ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"},{"path":"chunks/chunk-XDDPSWIW.js","sha256":"532847d7611ffc4fa6326d9d4dde3b87acb846effd6d5545ebcfde6567fade63"},{"path":"chunks/chunk-XDDPSWIW.js.map","sha256":"abfdeb1099e59d3d493387be6fe57c984478bdd07aa6ba441ea06942034ae843"},{"path":"chunks/chunk-YT5D5HNG.js","sha256":"562d13530fa75e642e467cbb63b59111903162e949883f9d13bf6b6d4c7771ed"},{"path":"chunks/chunk-YT5D5HNG.js.map","sha256":"0ead9809994fb855214e0f8b660d2465268d783211bedb314d0d6793642da99e"},{"path":"chunks/chunk-ZTJVOBDU.js","sha256":"db364f7ce886aad67467a01e6f2b47605cc94d481861e8d5e15590e8f81053f4"},{"path":"chunks/chunk-ZTJVOBDU.js.map","sha256":"f34bddf9bae46e951fb8a2ab7620ddbb05c8295936a1cedeff732bd85f78c564"},{"path":"chunks/context-budget-recovery-L2WP5S26.js","sha256":"94308a0c40cb90380fb5f3c00c105b04df651eb699452e4a1eff4392936bad3e"},{"path":"chunks/context-budget-recovery-L2WP5S26.js.map","sha256":"bdec4d79334c795b8b4fdcf03f3820adac1f8a3a220767d3cf0de29c4d3a79e2"},{"path":"chunks/indexed-receipt-blobs-KGMJVFH2.js","sha256":"3b6aebfd80a904e574b6a80025ab6e7e5a1e4bc11b98f237c374a6f051cb68f3"},{"path":"chunks/indexed-receipt-blobs-KGMJVFH2.js.map","sha256":"cd38ac9e4b9beec9644d2629c41c46fef0179d7fcd36a1df7cafd1cdf5f22489"},{"path":"chunks/item-transaction-UWV6UNSV.js","sha256":"8a59caa48a853f620e85f4dc1101f19485c00eb11190c08c028192de47dc51ca"},{"path":"chunks/item-transaction-UWV6UNSV.js.map","sha256":"ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"},{"path":"chunks/mutation-admission-I4RHIT3Q.js","sha256":"05d6942ac14a34dda453de7dc1ea488bc3690a5cbf1329c3f4fa63001b15a6ff"},{"path":"chunks/mutation-admission-I4RHIT3Q.js.map","sha256":"e380f366c43aaf591b023222423a57578d104ed97f2684f4b52037aa9f548eb1"},{"path":"chunks/register-list-query-MVDL5EXG.js","sha256":"64597b6cc637e719c83e6bcf0d4da6676ab667533657d2c16ec3cc4e4241adac"},{"path":"chunks/register-list-query-MVDL5EXG.js.map","sha256":"68451647bf9019154e8f7e8605d7863f095ae6fce9e2c8d726674f61364c70f8"},{"path":"chunks/register-mutation-GAF7LXRB.js","sha256":"4d2083e6829efd456abc6a6159ec2e098c72754340cc573a19a08388b503ac14"},{"path":"chunks/register-mutation-GAF7LXRB.js.map","sha256":"0458a16aa4baf71d2b2cfb8e0b7de0ecf81efb916f23bac7fa7e6419cc306c78"},{"path":"chunks/register-operations-JLFRL36Q.js","sha256":"c0a06e1c93d90cff9991b40a12d2dedad81ec83742d3046d8ff5224714d5d238"},{"path":"chunks/register-operations-JLFRL36Q.js.map","sha256":"162329a9335bcfdd139e41587944f1a924e0f5fe7f8ba60cd96b5f72e68bf511"},{"path":"chunks/register-setup-MZN6ONB3.js","sha256":"e4ccb76b7a4f10c5dc495d08dd54f4788e4c100abf7c54df1e45e388e90bd7a9"},{"path":"chunks/register-setup-MZN6ONB3.js.map","sha256":"b323d344776471d1ba98d57233da41b2f0ceeb634519e85552b10ce0243c3485"},{"path":"chunks/settlement-hook-YWSWFOZY.js","sha256":"fb32defbb0d8b89a0bbcd2c5df2233718b5a4f93bd630a20015feb817ca74ea4"},{"path":"chunks/settlement-hook-YWSWFOZY.js.map","sha256":"6e0577b035532efe4968d1a3bbaf491e0d790074b735ff94448143e5a700c747"},{"path":"chunks/stage-2ZORTOF6.js","sha256":"a6d44ac8179bb2f19da1272c6a70713774a36d0436f70710797ccced61dc5ef8"},{"path":"chunks/stage-2ZORTOF6.js.map","sha256":"1cfaef9f0b1890e2dfed29ad9121a25281e2f074e8183edc9163c214e4b00437"},{"path":"focused-chunks/chunk-2J7T2UCH.js","sha256":"216d96ae622d70ae09ec10918ab2b657c339945b41c31ede569e0e36de3bded1"},{"path":"focused-chunks/chunk-2J7T2UCH.js.map","sha256":"80f6c87b0f5dc75681ed748b40ba004822e36fc904f28ba9d01bfa21c5880772"},{"path":"focused-chunks/chunk-4PW5XWVI.js","sha256":"65b448ac1f0a9f5762d7c5f6583931e8ef3206c476779e14e54fec8fd50ed5d8"},{"path":"focused-chunks/chunk-4PW5XWVI.js.map","sha256":"04b985eb18e7adee37e3001428efcb74fa570e7fc56596504b2e2d40bae6ff5b"},{"path":"focused-chunks/chunk-4QPGJO2G.js","sha256":"2176ad15e94f9613032be98b1b0434d6adc7fda84eb43d5b81a245d40b65c24d"},{"path":"focused-chunks/chunk-4QPGJO2G.js.map","sha256":"94f80694f796bef09b9007858c22de0e3869fb1c0ddc70c46e763e53a11d4094"},{"path":"focused-chunks/chunk-57HPXGOQ.js","sha256":"91880748acfb468f25ff95a355a8221261e405d20f3642b6b5fce0150a05b2ae"},{"path":"focused-chunks/chunk-57HPXGOQ.js.map","sha256":"31ee1db4906dd555174de767c0b832148b08ae60144684da3d2a15da3190aec5"},{"path":"focused-chunks/chunk-5MCGYBOQ.js","sha256":"868423069e9e66f86b14abfd3d4a538ebdcd2de95be13b4285fbe9e1b16cd102"},{"path":"focused-chunks/chunk-5MCGYBOQ.js.map","sha256":"551c6aecb4e2d255856d1bfbbfb940bcec5725a340605f13a4b282010fc77a5e"},{"path":"focused-chunks/chunk-6F6APBCX.js","sha256":"7d419400119d807ca3c2ee9adc1f72ef2b7efba732c21a3d56eaa3586e19ae52"},{"path":"focused-chunks/chunk-6F6APBCX.js.map","sha256":"22fa1d0c35186e4f5d81daea5990c131b4448178c214ffd99900490a7625fdd4"},{"path":"focused-chunks/chunk-AFVN2KCP.js","sha256":"036013276a0aa5a4a824185236fd9dd186d76520d3acc8bf4c6b8e8176cfc55e"},{"path":"focused-chunks/chunk-AFVN2KCP.js.map","sha256":"956105144564846be17cdbe5103fa9ac6a691b8c7a3f74cc405ac21bce72f0d9"},{"path":"focused-chunks/chunk-AK2CI2GI.js","sha256":"8a40e489e22d02a4d6c0e02a3ff847d93b633d662cd952e4023079ffb4a3fdc5"},{"path":"focused-chunks/chunk-AK2CI2GI.js.map","sha256":"70aa5aa38f1d2f486c5e165db51939b7777df85572706d3bb4165e55f8614488"},{"path":"focused-chunks/chunk-DFUTCKUF.js","sha256":"b88426b9e6c1bcb3f03e8adf49d236280c8fbc59e405b7faa7f980a2b45dbecf"},{"path":"focused-chunks/chunk-DFUTCKUF.js.map","sha256":"f295630c5dc63081c1891c29b55fd197bac98d6452e29c09eaf97fdbc35554a0"},{"path":"focused-chunks/chunk-EA65HVBO.js","sha256":"57199c67b820b1d80f2a031879dc38bee69ee451a3626d2d68a2e4cca13edce3"},{"path":"focused-chunks/chunk-EA65HVBO.js.map","sha256":"858d03336e0374e7397211dc0f5b81e16669218099b55fc282aed5b81591864c"},{"path":"focused-chunks/chunk-EGN2HFRU.js","sha256":"60ca3c4b0c5584d8866c75892f5c5224db858ef11328a0d99265b2c94eb3815d"},{"path":"focused-chunks/chunk-EGN2HFRU.js.map","sha256":"3a5501d6ab3f711b0aaa21285ea5fba97feaf79460619089e0e6010785e3ad7e"},{"path":"focused-chunks/chunk-FOA7XKWP.js","sha256":"3e57188628de10dafcc17048ef3dcc5b9061c29ff4f34620a4d62de45ee606fa"},{"path":"focused-chunks/chunk-FOA7XKWP.js.map","sha256":"562c753aa39adbfdbeefaf390e68fdadd1fe986bcb6e82f9355315e8d6a16ec9"},{"path":"focused-chunks/chunk-GHQVM6K6.js","sha256":"79ea412a6b8b7c176f75f19aaaabf6fbbfbc826c4362254c90183003f4b8f1d6"},{"path":"focused-chunks/chunk-GHQVM6K6.js.map","sha256":"ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"},{"path":"focused-chunks/chunk-GP2WU43K.js","sha256":"8c9a136ee33ebeaa24b6fb8ad582869d905b9744877b0879640bf24c991127d2"},{"path":"focused-chunks/chunk-GP2WU43K.js.map","sha256":"1b6d805e25babd7703453b57948f4ba2ec9ea6fc4fa78fe1b954271d459d2bbf"},{"path":"focused-chunks/chunk-HPWT3RBG.js","sha256":"8a1b7d43afd741d48205a5493feaa1ce87ebf366e419e6be7a1db3bd90c17d65"},{"path":"focused-chunks/chunk-HPWT3RBG.js.map","sha256":"92740799faedfc523dc285af8a15540155abf9b1a9810104412550e5957af2c6"},{"path":"focused-chunks/chunk-HSAEEWSI.js","sha256":"bc4651285abb54795cc3a9108ce8fff5448c2c6ef8cf1804b78627728efcf49f"},{"path":"focused-chunks/chunk-HSAEEWSI.js.map","sha256":"42c9ad936e5602f3632900659c35e42aa05a0cfd8f3f09eaaebef035071ec38e"},{"path":"focused-chunks/chunk-JLXGRDTG.js","sha256":"4870c3be98d9f157bebe1b94c63b65fbe248df194545946974457951a3c5be23"},{"path":"focused-chunks/chunk-JLXGRDTG.js.map","sha256":"d0b6380b70bc11f98e59c836233cd8fad276da72a02c7553b6df3aa7d8837b1e"},{"path":"focused-chunks/chunk-JNKRUCVZ.js","sha256":"5d670e26fee2333a74d683c116458bb1ba4e7cfe1d10e25a0635de6afbe82f7d"},{"path":"focused-chunks/chunk-JNKRUCVZ.js.map","sha256":"909b572145b96c7e85c909d33d830ecc3de1203195485ced95e2d2d65587d5f3"},{"path":"focused-chunks/chunk-KH5QJXY7.js","sha256":"e2c3acd68ecd8db00f1e6680c4d536f00cbe9323e711c79060083c7c459a857b"},{"path":"focused-chunks/chunk-KH5QJXY7.js.map","sha256":"64ddee936d43e684273d7d32a25708f938da912434f3776265c359883ce66558"},{"path":"focused-chunks/chunk-KKRIFBSL.js","sha256":"94d8efedcfd3dbbd1ff225634a6cc9c705f8106c936a85a4e40f2f34c8c54355"},{"path":"focused-chunks/chunk-KKRIFBSL.js.map","sha256":"6f4307159c63436401b13e8e5654653e370a78ecb1ab1457c5b33d8d6589780a"},{"path":"focused-chunks/chunk-MW77Q3AQ.js","sha256":"123e01c22ab7f79570db7c69be977515052170d08beedc1421678ec0b2599502"},{"path":"focused-chunks/chunk-MW77Q3AQ.js.map","sha256":"28917f3c4d14ec223f7c49f5abb15afcf8cd5f8339ef2fbb163231386522d0e5"},{"path":"focused-chunks/chunk-NOKG4RFN.js","sha256":"e13b1cfd1425e805060c38064b0967c7b71b45b04f97bc681df9d886b8b46631"},{"path":"focused-chunks/chunk-NOKG4RFN.js.map","sha256":"c1f014583ba24392591daa178e77ea02396810fc1530efe654c03a25143de1cf"},{"path":"focused-chunks/chunk-NRBUMDLF.js","sha256":"189cec747d2ff14cca123d72944b4d27e78dcb7a8d0b36a76fd68ebe7f156dd5"},{"path":"focused-chunks/chunk-NRBUMDLF.js.map","sha256":"55cc43f1df0c83cb8ead390bd23156dd886a5df20019102f1b097a510ac89cef"},{"path":"focused-chunks/chunk-PC3R5CJV.js","sha256":"313d6800fdafd943eb620820d535e0b3e129436c92580399b94f3ff12acd7c0d"},{"path":"focused-chunks/chunk-PC3R5CJV.js.map","sha256":"0526cffbd8e6ff2a57811e2ffba2060c83eb84e6ad7adde876c13d93f422592d"},{"path":"focused-chunks/chunk-PFBQOZPK.js","sha256":"6ceb72f8facaa73f4a8d13a82a31d72d3a4dfb2a629dc29a353ccb729e8b8085"},{"path":"focused-chunks/chunk-PFBQOZPK.js.map","sha256":"011009a802cf8fa788c500373969ca5f0a19fba9a2d5f4f42dde612e6329cdd8"},{"path":"focused-chunks/chunk-QFMJGQGO.js","sha256":"80bb4999d01c0579787a515626542b73df1b7adfe6af95de1ad9053689f304a7"},{"path":"focused-chunks/chunk-QFMJGQGO.js.map","sha256":"26caacaf2e6171056f04695cb09bdf2f914364ad5fbf957b1f20a58e94579dde"},{"path":"focused-chunks/chunk-SFQKCA5K.js","sha256":"57715fa2a4592cabcbddf3bed00b192eff6fe03a1a15aad60cb25c4d02898be0"},{"path":"focused-chunks/chunk-SFQKCA5K.js.map","sha256":"237e554f344bb13eec7fe223fbda45da2a5e2ebfe08a138830df554217244be5"},{"path":"focused-chunks/chunk-SVOOGGAK.js","sha256":"cf84553a8001feee7147d6941274dc00cf8644ded0da1e4b611b542c02f6dcb5"},{"path":"focused-chunks/chunk-SVOOGGAK.js.map","sha256":"c6941ba9e7060fcb63add9bb1b246052f16f530b85845320f23076a4db57f341"},{"path":"focused-chunks/chunk-WHIE2C6Q.js","sha256":"b99d22aee1a00a17824f1139facf74b194e2785ff201367d1aa8798791588498"},{"path":"focused-chunks/chunk-WHIE2C6Q.js.map","sha256":"48b4264f8c5e0714d3c28251c068cf2a648d4d49309f1f2573a4daabeb0e3a53"},{"path":"focused-chunks/chunk-Y6UYRMVG.js","sha256":"2d55f6ffb7296c035fb2f1655d36abbad49ba81ad09a625d27379b668bba1e79"},{"path":"focused-chunks/chunk-Y6UYRMVG.js.map","sha256":"e27692e5f33d7d892f44ef51f07249e209463d941ba29599482b794019759709"},{"path":"focused-chunks/context-budget-recovery-5MKOCGY5.js","sha256":"1f103ba5015f9f0dabbb93e2fa2cd59078036e68b9b1f3da2bd265025dbd44f1"},{"path":"focused-chunks/context-budget-recovery-5MKOCGY5.js.map","sha256":"3e209028283d24aafcd47b35e66acb6297ef80f0f13f6bf0e7e393a9f15d4317"},{"path":"focused-chunks/indexed-receipt-blobs-KHWT44EK.js","sha256":"6c514f543225b439dfaa9057cc2924aabf9b93905213b76157ac629ee186df0f"},{"path":"focused-chunks/indexed-receipt-blobs-KHWT44EK.js.map","sha256":"82230162c7538ff401bdb67dd28a671f3bb6c8e0c874fb375bd3f303db03e1cc"},{"path":"focused-chunks/item-transaction-LU75EG7D.js","sha256":"6128c56feff85e3cc473b4489a8bdbc552c31e6442597062990e0298faf82744"},{"path":"focused-chunks/item-transaction-LU75EG7D.js.map","sha256":"58f06420dfb50a6bcb363e2d72e450b94bacd22cc978891532397b10ac32de8a"},{"path":"focused-chunks/mutation-admission-KDJ7SCPA.js","sha256":"d5610b1bb681c9030cd10953230ce210ff1de7c72d7e0bdc5a97c268c68029f3"},{"path":"focused-chunks/mutation-admission-KDJ7SCPA.js.map","sha256":"3d37817bd6aa0a3c99f04b5c040d4f91ee0efc042c2fc5dad392d46db5b8fc5a"},{"path":"focused-chunks/settlement-hook-SJV52ZTV.js","sha256":"fbefdaeef42fd344303abe44bbc22a9515dcf82eb86f7414ed2e10a17c58a412"},{"path":"focused-chunks/settlement-hook-SJV52ZTV.js.map","sha256":"d49b55f7df2dff3c6287f163f6a2bb801dca8caf522412c0b328eb9f74be5c7f"},{"path":"focused-chunks/stage-R4KEBO37.js","sha256":"9f3b77c917529517dbe90fa01b9cb4ed51d61018e65878f61458b776ec0c2b21"},{"path":"focused-chunks/stage-R4KEBO37.js.map","sha256":"53384e77cf51a5eaf3292f99c9375c57e284c0a07762ec49ce3c5eb59ae38f28"},{"path":"main.js","sha256":"77c8c4ac31ea00799c547c4172cea2f777d1582723d56d572d7bc218f6e4b3f6"},{"path":"main.js.map","sha256":"d3dc8d88609c553bd60eb97f43ef14f2f03b804327c90dd1672cc3e1ccd8d772"},{"path":"sdk-authoring.js","sha256":"45d5ff453d2c5417fbc5a6826d744d9cb805143a1847ab7e60ebd9871bfa9b32"},{"path":"sdk-authoring.js.map","sha256":"b6d5ccbd2349ec776bbf56ee1c075d1254f0829c34402ba35d3af055dc7e8777"},{"path":"sdk-contracts.js","sha256":"d1c0998281737fec818ffe35ab51e35ee260b37fea9685022f4d857a528bb161"},{"path":"sdk-contracts.js.map","sha256":"06d5cf39029efd5a249f7ca88ddcae32ea78e90e154f832343c5915de0b45b51"},{"path":"sdk-core.js","sha256":"a2502fb8d6550e0f45d3a0cc7713e617709d7f7ab96202811489fc697858acfb"},{"path":"sdk-core.js.map","sha256":"ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"},{"path":"sdk-governance.js","sha256":"26e291a5f82d425e1499d7c232b145e61b8a5840bbf4f277c6de3bb579b20878"},{"path":"sdk-governance.js.map","sha256":"774f7be41fe8e7db070ba13c7879e220ef5ac651e97abb47afab2230c0a9bce9"},{"path":"sdk-graph.js","sha256":"dd78e8f62d8ca5c4d46ee14037e8fb8f976c9847a33bc872d43457b254b6e2a3"},{"path":"sdk-graph.js.map","sha256":"efa166700ff746731db3675b94e7cba11af2828f29b74e91c00ca4214f4220d0"},{"path":"sdk-merge.js","sha256":"d66e81e973b195f12fcce51d246b64805f38485cc32958f91598a8a4afc15e79"},{"path":"sdk-merge.js.map","sha256":"3331e2c1f8e216786f9030ebedf8dabe9597908e19a9215a922f3307293ee764"},{"path":"sdk-query.js","sha256":"b4a6af20d6df84422062e7dafe1da33d161657c9f2663d08283e31e5ae86e7f7"},{"path":"sdk-query.js.map","sha256":"acc76084165883a89aae4872a3814aa1b9fac5fb7b2b28d4000a3c5736c1ec7a"},{"path":"sdk-runtime.js","sha256":"6d46ad0173c64ccde7eefe0232d6f2d891988d216273389c42e908a41be7cb1b"},{"path":"sdk-runtime.js.map","sha256":"ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"},{"path":"sdk-testing.js","sha256":"e199422d7c26a5fd5b4b77f012b6dd72c0f26efe8f4bf635499acda129b0dd66"},{"path":"sdk-testing.js.map","sha256":"ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"},{"path":"sdk.js","sha256":"1da96885e538383cb13b0e0e5553114f1800c0171f81f3819e2a82462e889377"},{"path":"sdk.js.map","sha256":"b6c61fb414604ac7a72c8d26fedc127eccb60d89aa5d71e0ba316adacf69ff6a"}]}
1
+ {"schema_version":1,"generation":"d821d5d68db5e45c48ee0f746f3fca22e70799ed3f4d83c3f849e34fe037899d","files":[{"path":"chunks/chunk-2GK2IVU5.js","sha256":"5f71c8dabb2511f6bb53c1b32513297de1832fd7f1473f638af146b44167ed85"},{"path":"chunks/chunk-2GK2IVU5.js.map","sha256":"6891e9179042addffd88d12c8e1e02a0598c5b577cc5857271cf485b72077c46"},{"path":"chunks/chunk-5KW4WUAK.js","sha256":"113e6e3f3f6c1c089bc927358a7eb3ffc5c7523b7094ae40158ef0f1f10457e2"},{"path":"chunks/chunk-5KW4WUAK.js.map","sha256":"09106f566e8c526cbe313fdc87ea883d46662c1d892d473be7e8ee6679aa2eab"},{"path":"chunks/chunk-5WVE7XBS.js","sha256":"e83ee2dc93f9f13137f26165eb172b11a1dc340098823f7473b4eb1171384feb"},{"path":"chunks/chunk-5WVE7XBS.js.map","sha256":"d579092511060f35f238cf648b34806a16c23552c08136575482b8a599e095fb"},{"path":"chunks/chunk-6PKWKVS6.js","sha256":"6b8ac9aeadaec4def3d44f058a0d2f73c660b4b733ba97c432d9a32e9b2b1fec"},{"path":"chunks/chunk-6PKWKVS6.js.map","sha256":"0e169da43af38b44ce993da2a96cb273329370f9c4a073c7a852826e0a7ebf11"},{"path":"chunks/chunk-DEZPZOQ7.js","sha256":"ef11ddab9ecc9533cac75ccc8ca41058a59382dfbe3262033fa21c7264d73b0d"},{"path":"chunks/chunk-DEZPZOQ7.js.map","sha256":"ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"},{"path":"chunks/chunk-E74BORFX.js","sha256":"bf1c491de6d8ba5f430b88a45185b5ae2a74752196ca89a6aa3f0444a30ddb7f"},{"path":"chunks/chunk-E74BORFX.js.map","sha256":"951d9c2735a8d3f4d6151a3df0663a154bcf99348987f0c30e0908df888870f0"},{"path":"chunks/chunk-F3ECOBKA.js","sha256":"2f7470b4fa162da19b6d213c3edc886d2c0e5f28b706963ddcf751b4d66ecfd7"},{"path":"chunks/chunk-F3ECOBKA.js.map","sha256":"1a00d42a88c5aba6aaf99ed7eaab3ac31d53fdef26c673ec0e1b1a9da62b001a"},{"path":"chunks/chunk-IB7UB5TE.js","sha256":"158940f663a676247075395b646afbce49c7b88138d677699bdabf9add9776df"},{"path":"chunks/chunk-IB7UB5TE.js.map","sha256":"ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"},{"path":"chunks/chunk-ICT6E4IW.js","sha256":"f5f26614d8a830355adf8b723871f2a229a253052b4aeda9d9a9f7fa87a7678d"},{"path":"chunks/chunk-ICT6E4IW.js.map","sha256":"56703820ed8260aaae617bfd55b38da2ed58272d296d0df44f708569ec2205be"},{"path":"chunks/chunk-MP2DQJH2.js","sha256":"bf56e11f12afa706e5d8f6cd64da0fb91db020fc0685cad9db0e98a6bf5333d4"},{"path":"chunks/chunk-MP2DQJH2.js.map","sha256":"f04e9aad84e36d12121cb8f86e51ad4eba1e97f83578dbcdc16eabe5bb817dca"},{"path":"chunks/chunk-MRUA2Z43.js","sha256":"ba3b86f0c3c06a526b7858d0d691bd9a97b3861f5afed4caa71a704f26730c7f"},{"path":"chunks/chunk-MRUA2Z43.js.map","sha256":"26c92ca1dcf896743cae73cdf47c47a8133e4e9cff4590b313c02d7094087305"},{"path":"chunks/chunk-MTRIGD7M.js","sha256":"dc20455e31fb0395950e8a4ce3a6b531852fe2bc7b9347384bc14089fe39f99e"},{"path":"chunks/chunk-MTRIGD7M.js.map","sha256":"e982496b33b91578cdfe1fdf3083dd5a4570916e2a0579e15b208274fe427997"},{"path":"chunks/chunk-N45IXPCA.js","sha256":"2b7406a57d35cf7457688f46f8e7a5d858d90ab1fe185b615e039ceddd28dbb0"},{"path":"chunks/chunk-N45IXPCA.js.map","sha256":"4a5ca6e764c15fb0d450a503ccc2a44ed842607387bdd8736d4173063f5da2be"},{"path":"chunks/chunk-NILQ2ZMV.js","sha256":"19117b1559e2184693fcf181198356ca6d2fb0a973da2387c169fa1eff34ea0b"},{"path":"chunks/chunk-NILQ2ZMV.js.map","sha256":"a293fc0d94c56a7f11857fdc95a5355cf5ceca2329c9a17dd21416824f947b0b"},{"path":"chunks/chunk-O56O7NIE.js","sha256":"c9bbf22660c9125939dacb0e6f750a6ab081823500cb908dc1b49cb2845c4c0e"},{"path":"chunks/chunk-O56O7NIE.js.map","sha256":"962aeeab1815bccee8dffa040c671affb8cce2a4667002d017b43afc593a1882"},{"path":"chunks/chunk-O6TFUV6M.js","sha256":"b2ab4ce6c6cc7e28d2dc219a2a2178cb7ca4fe45ef27d6019f4a715f6bdd923e"},{"path":"chunks/chunk-O6TFUV6M.js.map","sha256":"c5e74f74e0043fe9c3d98f14dd8edfcdcdf8583cb80b3da91e428f1370889a83"},{"path":"chunks/chunk-SBVX5CMV.js","sha256":"d62dd949ec9316658f5d66de3319e239a4859e3f40af6ad243d33b403b2d98f9"},{"path":"chunks/chunk-SBVX5CMV.js.map","sha256":"f295630c5dc63081c1891c29b55fd197bac98d6452e29c09eaf97fdbc35554a0"},{"path":"chunks/chunk-SPPHDVZE.js","sha256":"ba82130f93656299c39dc713ba1f03fc47bec7a39fac6594c72e10ba398f04d3"},{"path":"chunks/chunk-SPPHDVZE.js.map","sha256":"3a5501d6ab3f711b0aaa21285ea5fba97feaf79460619089e0e6010785e3ad7e"},{"path":"chunks/chunk-TMPO4CTZ.js","sha256":"d699e47795880d9c965483f26ecde3f78e90db69bdec1f4d2fbcc71c21f8a2e2"},{"path":"chunks/chunk-TMPO4CTZ.js.map","sha256":"9af7c3720f9837d7a21bf4bb789678c1823e514731aebbad8fc11bdd36801d6f"},{"path":"chunks/chunk-TYERATXH.js","sha256":"0741c0f4d68c550da6b2206d88f1f77d2516260a9f544556420f3810b9e33552"},{"path":"chunks/chunk-TYERATXH.js.map","sha256":"abfdeb1099e59d3d493387be6fe57c984478bdd07aa6ba441ea06942034ae843"},{"path":"chunks/chunk-UEEG47TU.js","sha256":"768ae7164fd24deb98637fcb72671958be5fb11963076c14aac05d86793dfcff"},{"path":"chunks/chunk-UEEG47TU.js.map","sha256":"3ef6aaaab9d223b065b678a7eb29cc8fb1a241156372d5809b00812dd5a84afb"},{"path":"chunks/chunk-UUN3WNMQ.js","sha256":"c94e202ca489961a16c1410f2347f993ac1338e11decc4b6bd2640d9c3aa9d02"},{"path":"chunks/chunk-UUN3WNMQ.js.map","sha256":"80575ffb50ae8d3593189789172896f26308036b4bfc4de75c732eaa5218b550"},{"path":"chunks/chunk-VS565KBX.js","sha256":"f66d92e0d59add33123dc44938a2cf76a749b262d5c044d8bbccce24861f9351"},{"path":"chunks/chunk-VS565KBX.js.map","sha256":"562c753aa39adbfdbeefaf390e68fdadd1fe986bcb6e82f9355315e8d6a16ec9"},{"path":"chunks/chunk-WFBYKDB2.js","sha256":"8d631bca4256645fb5acd79617adb50f7d1e4731d2d2f13a4082704c29001cfd"},{"path":"chunks/chunk-WFBYKDB2.js.map","sha256":"7c4ae61287228d93ee6ab373b8c0f52e961d4eb850e12b448f8720384277a290"},{"path":"chunks/chunk-WX25MU4N.js","sha256":"980ea75f0260a23addf37bd1871dfe6f72f97beeb901867b2db23cdc683019fa"},{"path":"chunks/chunk-WX25MU4N.js.map","sha256":"ceae7d656b49b8e0fced31f940dbbfc88e8410a6f48befa643b4b2c9a5b7355d"},{"path":"chunks/chunk-XAWE4EAK.js","sha256":"9ec1c5760661739327050e0bfc643cdfb827f8f501fe1a57c28be01371f89128"},{"path":"chunks/chunk-XAWE4EAK.js.map","sha256":"ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"},{"path":"chunks/chunk-Y7CKVU56.js","sha256":"1805fc1a20bc84ae6a4cf6aa508e04c3be19091c2ae05d295bb6f826e27699f0"},{"path":"chunks/chunk-Y7CKVU56.js.map","sha256":"febffbb426f68b982e7f31b30f83e9b9e0c878fd4fa8bd9b50dfd395dd71ba57"},{"path":"chunks/context-budget-recovery-L2WP5S26.js","sha256":"94308a0c40cb90380fb5f3c00c105b04df651eb699452e4a1eff4392936bad3e"},{"path":"chunks/context-budget-recovery-L2WP5S26.js.map","sha256":"bdec4d79334c795b8b4fdcf03f3820adac1f8a3a220767d3cf0de29c4d3a79e2"},{"path":"chunks/indexed-receipt-blobs-KGMJVFH2.js","sha256":"3b6aebfd80a904e574b6a80025ab6e7e5a1e4bc11b98f237c374a6f051cb68f3"},{"path":"chunks/indexed-receipt-blobs-KGMJVFH2.js.map","sha256":"cd38ac9e4b9beec9644d2629c41c46fef0179d7fcd36a1df7cafd1cdf5f22489"},{"path":"chunks/item-transaction-Q5S5YLEJ.js","sha256":"993b96e0262ec75c72c33ddd8efeb08cc1b3f6115ffb54411e3b1a8fb7d6f84a"},{"path":"chunks/item-transaction-Q5S5YLEJ.js.map","sha256":"ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"},{"path":"chunks/mutation-admission-BOOCJPCU.js","sha256":"31a5d23d3eb6aeebe435fb1cfd78af9b026ae1a692c225778e453120764ef8d7"},{"path":"chunks/mutation-admission-BOOCJPCU.js.map","sha256":"e380f366c43aaf591b023222423a57578d104ed97f2684f4b52037aa9f548eb1"},{"path":"chunks/register-list-query-23OX36Q3.js","sha256":"c17a7da7e86a18e988f5cb5106097bca013de55693deb745125a16cd7390885e"},{"path":"chunks/register-list-query-23OX36Q3.js.map","sha256":"68451647bf9019154e8f7e8605d7863f095ae6fce9e2c8d726674f61364c70f8"},{"path":"chunks/register-mutation-JPJ5YNDX.js","sha256":"5790d96c72464b7353ab965eb7ef5e72182e6253ea3e3903bb1e68097fddf641"},{"path":"chunks/register-mutation-JPJ5YNDX.js.map","sha256":"0458a16aa4baf71d2b2cfb8e0b7de0ecf81efb916f23bac7fa7e6419cc306c78"},{"path":"chunks/register-operations-IGR7ERY5.js","sha256":"39f3e072ee05276b53b1ffe69a6cec5d119a06749978653470eda35364ed88db"},{"path":"chunks/register-operations-IGR7ERY5.js.map","sha256":"3a782f404d69f1189d313ea2e6dde6407a8e68a29dbd14111aad432de4266bb8"},{"path":"chunks/register-setup-BMIFKZZP.js","sha256":"f0590c5fa882bfd07b107aac0f0c016e2af146e3f043c966177d18abb1195303"},{"path":"chunks/register-setup-BMIFKZZP.js.map","sha256":"b323d344776471d1ba98d57233da41b2f0ceeb634519e85552b10ce0243c3485"},{"path":"chunks/settlement-hook-YWSWFOZY.js","sha256":"fb32defbb0d8b89a0bbcd2c5df2233718b5a4f93bd630a20015feb817ca74ea4"},{"path":"chunks/settlement-hook-YWSWFOZY.js.map","sha256":"6e0577b035532efe4968d1a3bbaf491e0d790074b735ff94448143e5a700c747"},{"path":"chunks/stage-ON7CYYPM.js","sha256":"6a8bb33b96271000c5fb99a90243197d971d67999607805f92583b8aef85ae8b"},{"path":"chunks/stage-ON7CYYPM.js.map","sha256":"1cfaef9f0b1890e2dfed29ad9121a25281e2f074e8183edc9163c214e4b00437"},{"path":"focused-chunks/chunk-2Y77HWIX.js","sha256":"bcd8945734504250610f333297f4d9ea3c1e440cda55e2c1dade649b565cef70"},{"path":"focused-chunks/chunk-2Y77HWIX.js.map","sha256":"55cc43f1df0c83cb8ead390bd23156dd886a5df20019102f1b097a510ac89cef"},{"path":"focused-chunks/chunk-3NYWMUX3.js","sha256":"ceaa06d05dbf217fcc781cd649183f9643271329b9de8b716397d3b17ac9bf58"},{"path":"focused-chunks/chunk-3NYWMUX3.js.map","sha256":"26caacaf2e6171056f04695cb09bdf2f914364ad5fbf957b1f20a58e94579dde"},{"path":"focused-chunks/chunk-3Z53POXU.js","sha256":"7e12d611b1b5f08059dcf51693ea9519a163e32537a8cffaebe15730e11053b5"},{"path":"focused-chunks/chunk-3Z53POXU.js.map","sha256":"7bd4ccbb93c6b842239c14a416e35ca612408504771920463e5c246b13f3a6bf"},{"path":"focused-chunks/chunk-4PW5XWVI.js","sha256":"65b448ac1f0a9f5762d7c5f6583931e8ef3206c476779e14e54fec8fd50ed5d8"},{"path":"focused-chunks/chunk-4PW5XWVI.js.map","sha256":"04b985eb18e7adee37e3001428efcb74fa570e7fc56596504b2e2d40bae6ff5b"},{"path":"focused-chunks/chunk-5TWS5KOM.js","sha256":"5405bf0bd09b24e1aa581cbd7d8ace645f504e2d28deadfcfd286b5a6f4f4e66"},{"path":"focused-chunks/chunk-5TWS5KOM.js.map","sha256":"94f80694f796bef09b9007858c22de0e3869fb1c0ddc70c46e763e53a11d4094"},{"path":"focused-chunks/chunk-5WCQFH6D.js","sha256":"438cf6a6ab9b3e0e95180b714c68ac16be436c5420117cc83aacd988b124b877"},{"path":"focused-chunks/chunk-5WCQFH6D.js.map","sha256":"6f39f7c0375700c9e99acb2a2a452bd688dfd3d1b0b0af20b7e408e724e97319"},{"path":"focused-chunks/chunk-6GMYW42K.js","sha256":"583d3a5daa1f81cf6eb9685ed9992d71b6962b73a0af69c236df71743accd816"},{"path":"focused-chunks/chunk-6GMYW42K.js.map","sha256":"80f6c87b0f5dc75681ed748b40ba004822e36fc904f28ba9d01bfa21c5880772"},{"path":"focused-chunks/chunk-6OKPYCLU.js","sha256":"246865c40a92b3b78775b244343b0a6afdab3e0833394abf2af45279834a0555"},{"path":"focused-chunks/chunk-6OKPYCLU.js.map","sha256":"d060bb9bdacb92fa370d3dd94dba4bb9526a83ca7f87dc6f9f72fedc4a95e317"},{"path":"focused-chunks/chunk-7WJDRZOR.js","sha256":"fe7e98cfdede9d300e182de7247e730eb2c37712058635f3a449fc88ee4e2027"},{"path":"focused-chunks/chunk-7WJDRZOR.js.map","sha256":"c1f014583ba24392591daa178e77ea02396810fc1530efe654c03a25143de1cf"},{"path":"focused-chunks/chunk-AK2CI2GI.js","sha256":"8a40e489e22d02a4d6c0e02a3ff847d93b633d662cd952e4023079ffb4a3fdc5"},{"path":"focused-chunks/chunk-AK2CI2GI.js.map","sha256":"70aa5aa38f1d2f486c5e165db51939b7777df85572706d3bb4165e55f8614488"},{"path":"focused-chunks/chunk-AL7SOFUL.js","sha256":"04546102840f0da4dc6eb6c4d57692d95e832552b7f9ccdd62e8f80f264d7b31"},{"path":"focused-chunks/chunk-AL7SOFUL.js.map","sha256":"0526cffbd8e6ff2a57811e2ffba2060c83eb84e6ad7adde876c13d93f422592d"},{"path":"focused-chunks/chunk-CIQ6YWCW.js","sha256":"8a578686e6d933d4a68e1e617465443f37ad2577e35107ab62cc06a291685e11"},{"path":"focused-chunks/chunk-CIQ6YWCW.js.map","sha256":"895d1f14728a67ff4df0306e40f033dc2af54494b86a62fee1bc3634e14b4b15"},{"path":"focused-chunks/chunk-DFUTCKUF.js","sha256":"b88426b9e6c1bcb3f03e8adf49d236280c8fbc59e405b7faa7f980a2b45dbecf"},{"path":"focused-chunks/chunk-DFUTCKUF.js.map","sha256":"f295630c5dc63081c1891c29b55fd197bac98d6452e29c09eaf97fdbc35554a0"},{"path":"focused-chunks/chunk-EGN2HFRU.js","sha256":"60ca3c4b0c5584d8866c75892f5c5224db858ef11328a0d99265b2c94eb3815d"},{"path":"focused-chunks/chunk-EGN2HFRU.js.map","sha256":"3a5501d6ab3f711b0aaa21285ea5fba97feaf79460619089e0e6010785e3ad7e"},{"path":"focused-chunks/chunk-FOA7XKWP.js","sha256":"3e57188628de10dafcc17048ef3dcc5b9061c29ff4f34620a4d62de45ee606fa"},{"path":"focused-chunks/chunk-FOA7XKWP.js.map","sha256":"562c753aa39adbfdbeefaf390e68fdadd1fe986bcb6e82f9355315e8d6a16ec9"},{"path":"focused-chunks/chunk-GE755ODZ.js","sha256":"721f0e9d0d739fc412dd33f4830028a8b102fb1bfcf5e9bc43314b362896ea7a"},{"path":"focused-chunks/chunk-GE755ODZ.js.map","sha256":"011009a802cf8fa788c500373969ca5f0a19fba9a2d5f4f42dde612e6329cdd8"},{"path":"focused-chunks/chunk-GHQVM6K6.js","sha256":"79ea412a6b8b7c176f75f19aaaabf6fbbfbc826c4362254c90183003f4b8f1d6"},{"path":"focused-chunks/chunk-GHQVM6K6.js.map","sha256":"ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"},{"path":"focused-chunks/chunk-JCR32IAO.js","sha256":"b26f8af3daa5dab755872f2dd7a687f010f1c7c01e1ce9929064293ae01e055c"},{"path":"focused-chunks/chunk-JCR32IAO.js.map","sha256":"551c6aecb4e2d255856d1bfbbfb940bcec5725a340605f13a4b282010fc77a5e"},{"path":"focused-chunks/chunk-JLXGRDTG.js","sha256":"4870c3be98d9f157bebe1b94c63b65fbe248df194545946974457951a3c5be23"},{"path":"focused-chunks/chunk-JLXGRDTG.js.map","sha256":"d0b6380b70bc11f98e59c836233cd8fad276da72a02c7553b6df3aa7d8837b1e"},{"path":"focused-chunks/chunk-LVA76N27.js","sha256":"54a1fddfb30f999ddf4a90c270f7d1819ca58b7bc73a18f4e9465d21b408b9e7"},{"path":"focused-chunks/chunk-LVA76N27.js.map","sha256":"e27692e5f33d7d892f44ef51f07249e209463d941ba29599482b794019759709"},{"path":"focused-chunks/chunk-M22TI7LP.js","sha256":"ae9366c1088a557026ca6fb0ce5fc3f40a4bcc9699ffc99e3b450a38e5695abc"},{"path":"focused-chunks/chunk-M22TI7LP.js.map","sha256":"31ee1db4906dd555174de767c0b832148b08ae60144684da3d2a15da3190aec5"},{"path":"focused-chunks/chunk-PAT6QF63.js","sha256":"93ebd470f9ca3fede13ca1c66fc385327571779e3cca38f142d044a361bdbef4"},{"path":"focused-chunks/chunk-PAT6QF63.js.map","sha256":"6f4307159c63436401b13e8e5654653e370a78ecb1ab1457c5b33d8d6589780a"},{"path":"focused-chunks/chunk-RPUDOJVB.js","sha256":"25e104952ee4b70e16b434e5a21367de8e123fb95a1a9247b9083bff0c256dfe"},{"path":"focused-chunks/chunk-RPUDOJVB.js.map","sha256":"237e554f344bb13eec7fe223fbda45da2a5e2ebfe08a138830df554217244be5"},{"path":"focused-chunks/chunk-SVOOGGAK.js","sha256":"cf84553a8001feee7147d6941274dc00cf8644ded0da1e4b611b542c02f6dcb5"},{"path":"focused-chunks/chunk-SVOOGGAK.js.map","sha256":"c6941ba9e7060fcb63add9bb1b246052f16f530b85845320f23076a4db57f341"},{"path":"focused-chunks/chunk-SXZM4PSS.js","sha256":"9327ff3986c51367e92d2be6ffcb7488b7d659d1c7dbe05bd29b3a603bf476ba"},{"path":"focused-chunks/chunk-SXZM4PSS.js.map","sha256":"a72d8a37e43246906413f66cd9b53bf0e8b415afbd9e1101db0b25ae557e6827"},{"path":"focused-chunks/chunk-UQIBGLDR.js","sha256":"1a74195ea5839a7c624221c175b45abf77fefa796d9bb3753caa0c5d7137460b"},{"path":"focused-chunks/chunk-UQIBGLDR.js.map","sha256":"42c9ad936e5602f3632900659c35e42aa05a0cfd8f3f09eaaebef035071ec38e"},{"path":"focused-chunks/chunk-VFQAZLKO.js","sha256":"3ee05d046bb5e9b64c9b8e0135227e3bfdbce48fc0e571c2f309d38470660065"},{"path":"focused-chunks/chunk-VFQAZLKO.js.map","sha256":"28917f3c4d14ec223f7c49f5abb15afcf8cd5f8339ef2fbb163231386522d0e5"},{"path":"focused-chunks/chunk-VS2ZFPXD.js","sha256":"b3ee760e6ae436594d5c5ebb194a6d032a150fd3e61395f47171eb4d49ec0c6f"},{"path":"focused-chunks/chunk-VS2ZFPXD.js.map","sha256":"64ddee936d43e684273d7d32a25708f938da912434f3776265c359883ce66558"},{"path":"focused-chunks/chunk-WX2RVS2Y.js","sha256":"72bfad107296aa941aaa972aeebf6e2d1bc76a71019a43a3e70ab1e099ae7a64"},{"path":"focused-chunks/chunk-WX2RVS2Y.js.map","sha256":"af537ec28248a8025311da1cd3c45d464718f3b26df17e69ed079dd0740ea3c1"},{"path":"focused-chunks/chunk-Z7GIVH6B.js","sha256":"924e96cf9935385ceb042e5738e020b9d812202669710ff5ac60ef11191dd750"},{"path":"focused-chunks/chunk-Z7GIVH6B.js.map","sha256":"6218c80c72b2b4b5a7910f868a611da6226548ae2ad796082d9d0cd4d2a51a18"},{"path":"focused-chunks/context-budget-recovery-5MKOCGY5.js","sha256":"1f103ba5015f9f0dabbb93e2fa2cd59078036e68b9b1f3da2bd265025dbd44f1"},{"path":"focused-chunks/context-budget-recovery-5MKOCGY5.js.map","sha256":"3e209028283d24aafcd47b35e66acb6297ef80f0f13f6bf0e7e393a9f15d4317"},{"path":"focused-chunks/indexed-receipt-blobs-KHWT44EK.js","sha256":"6c514f543225b439dfaa9057cc2924aabf9b93905213b76157ac629ee186df0f"},{"path":"focused-chunks/indexed-receipt-blobs-KHWT44EK.js.map","sha256":"82230162c7538ff401bdb67dd28a671f3bb6c8e0c874fb375bd3f303db03e1cc"},{"path":"focused-chunks/item-transaction-7VLPA2SU.js","sha256":"956e19340e268dafedb469c7ea563e3956cd05e72a1e70357021e76ac471f2cc"},{"path":"focused-chunks/item-transaction-7VLPA2SU.js.map","sha256":"58f06420dfb50a6bcb363e2d72e450b94bacd22cc978891532397b10ac32de8a"},{"path":"focused-chunks/mutation-admission-2DH27R5Y.js","sha256":"7ce3102a3962c8f26791599871e432d79e1d65caea87754a0384aa566bcae51b"},{"path":"focused-chunks/mutation-admission-2DH27R5Y.js.map","sha256":"3d37817bd6aa0a3c99f04b5c040d4f91ee0efc042c2fc5dad392d46db5b8fc5a"},{"path":"focused-chunks/settlement-hook-SJV52ZTV.js","sha256":"fbefdaeef42fd344303abe44bbc22a9515dcf82eb86f7414ed2e10a17c58a412"},{"path":"focused-chunks/settlement-hook-SJV52ZTV.js.map","sha256":"d49b55f7df2dff3c6287f163f6a2bb801dca8caf522412c0b328eb9f74be5c7f"},{"path":"focused-chunks/stage-FYOBWQA7.js","sha256":"b39cdb8cf945a3cd8fbab42d03fcb8af802f8f64976910f8d64121de0a873df0"},{"path":"focused-chunks/stage-FYOBWQA7.js.map","sha256":"53384e77cf51a5eaf3292f99c9375c57e284c0a07762ec49ce3c5eb59ae38f28"},{"path":"main.js","sha256":"ca23ded304fbf73e94bb951d4fadae851276e2ece06cfaf5c51e6bda9bf1a93d"},{"path":"main.js.map","sha256":"d3dc8d88609c553bd60eb97f43ef14f2f03b804327c90dd1672cc3e1ccd8d772"},{"path":"sdk-authoring.js","sha256":"299db83c2e87309ca4f4a2d973d1f1642bc05a6dab5b682c85e09962d54581ad"},{"path":"sdk-authoring.js.map","sha256":"b6d5ccbd2349ec776bbf56ee1c075d1254f0829c34402ba35d3af055dc7e8777"},{"path":"sdk-contracts.js","sha256":"135bffbe00e326000f526d1fa7a460190f6872e13c6eacf665abe14fc2bdec0d"},{"path":"sdk-contracts.js.map","sha256":"e7cec7bb35033854db606051f9448891cad70cc2d2798cb28c66ca0938cd6eba"},{"path":"sdk-core.js","sha256":"adcaf3868055109f17eb23dc5ab53db0257ea77972919d0599c8256062e73b3c"},{"path":"sdk-core.js.map","sha256":"ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"},{"path":"sdk-governance.js","sha256":"99768a9aab0d80060eb93573669295d2977c974b9249314e3846d3659d4adabc"},{"path":"sdk-governance.js.map","sha256":"774f7be41fe8e7db070ba13c7879e220ef5ac651e97abb47afab2230c0a9bce9"},{"path":"sdk-graph.js","sha256":"d44184186d0ae040b7a6ecff3d88275f66d5cd3d6ba7224f20798091e5b0de24"},{"path":"sdk-graph.js.map","sha256":"efa166700ff746731db3675b94e7cba11af2828f29b74e91c00ca4214f4220d0"},{"path":"sdk-merge.js","sha256":"8d5a5775427c29e4f92c7cadb88e39516af85d501e73272d1573675d722b5082"},{"path":"sdk-merge.js.map","sha256":"740c3053bde1bb9d8ea6de77b1f32eb8c11c8ece597f5b136fc77684cfc38d88"},{"path":"sdk-query.js","sha256":"73ba66c25d8926e7fef2a38d57b1040f7ed312c7233dd9bb5144250895819cc7"},{"path":"sdk-query.js.map","sha256":"acc76084165883a89aae4872a3814aa1b9fac5fb7b2b28d4000a3c5736c1ec7a"},{"path":"sdk-runtime.js","sha256":"f601949a46baf8250b15925e82131110c3d31c744ccde0577d92ee1c65b5f721"},{"path":"sdk-runtime.js.map","sha256":"ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"},{"path":"sdk-testing.js","sha256":"493f7192d84333fec8be1de60e3dd63efb108d9009a74325f099b40a0a0726a8"},{"path":"sdk-testing.js.map","sha256":"ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"},{"path":"sdk.js","sha256":"efe6eb77c86fd8bbfc125fa5a5a2ed69c902c9bb6feed3bc687ad326a7d5ce2f"},{"path":"sdk.js.map","sha256":"09b4d6f42263c0fa0daecd6a312114e1483a0715b4bac11177d1a4e3c4ca88be"}]}
@@ -1,8 +1,8 @@
1
- import{Ea as G,Fb as B,Fi as H,Ie as $,Ki as P,Ma as E,Pi as L,Wi as V,bc as U,hf as W}from"./chunk-WRXQAW7Q.js";import{d as K}from"./chunk-SBVX5CMV.js";import{a as X,b as v,c as q}from"./chunk-VS565KBX.js";import{A as b,C as k,E as S,G as j,H as N,K as F}from"./chunk-WX25MU4N.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="6d1f8e03-97b4-5d83-b85c-e47f39c07d48")}catch{}})();var se="PM_SOURCE_CONTEXT_ACCESS",ce="PM_ALLOW_SOURCE_CONTEXT_WRITES";function J(e){let r=e[se],i=r===void 0||r.trim().toLowerCase()==="write"?"write":"read_only",t=i==="read_only"&&e[ce]?.trim()==="1";return{access:i,write_override_applied:t,source_writes_allowed:i==="write"||t}}import{access as le,readFile as A,realpath as w}from"node:fs/promises";import{constants as me}from"node:fs";import{execFile as ue}from"node:child_process";import c from"node:path";import{promisify as de}from"node:util";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="b1828465-0619-514c-8956-2a81dea9efbc")}catch{}})();var _=de(ue),T="# pm-cli:merge-drivers:start",pe="# pm-cli:merge-drivers:end",x="# pm-cli:merge-drivers:v2:start",Q="# pm-cli:merge-drivers:v2:end",fe="merge-fence",ge="merge-attributes";function R(e){return`'${e.replaceAll("'",`'"'"'`)}'`}async function he(e,r){let i=await w(e);if(/(?:^|[\\/])bun-node-[^\\/]+[\\/]bun(?:\.exe)?$/iu.test(i))return;let{stdout:t}=await _(e,["--version"],{encoding:"utf8",windowsHide:!0,timeout:1e4});return t.trim()===r?i:void 0}async function we(){let e=U(import.meta.url,["../../.."]),r=process.execPath,i=!1,t=await w(process.execPath),o=process.versions.bun,a=(process.env.PATH??"").split(c.delimiter).filter(n=>c.isAbsolute(n)).map(n=>c.join(n,o===void 0?c.basename(process.execPath):process.platform==="win32"?"bun.exe":"bun")),s=o===void 0?a:[process.env.npm_execpath??"",...a,t].filter(n=>c.isAbsolute(n)&&/^(?:bun|bun\.exe)$/iu.test(c.basename(n)));for(let n of s)try{if(await le(n,me.X_OK),o!==void 0){let p=await he(n,o);if(p!==void 0){r=p,i=!0;break}continue}if(n!==t&&await w(n)===t){r=n;break}}catch{}if(o!==void 0&&!i)throw new k("Cannot install Bun merge drivers without a durable executable matching the current Bun version.",b.DEPENDENCY_FAILED,{code:"merge_bun_launcher_unavailable",why:"The current Bun process may be a temporary bunx launcher that Git cannot reuse after this command exits.",nextSteps:["Run with a durable version-matched Bun executable, expose one on an absolute PATH entry, or invoke pm through a Bun runner that publishes an absolute npm_execpath.","Retry pm merge install, then check pm health --strict-exit before merging branches."]});return`${R(r)} ${R(c.join(e,"dist","cli.js"))}`}var Z=[{key:"pm-item-toon",name:"pm field-aware TOON item document merge",artifact:"item",itemPath:"%P"},{key:"pm-item-markdown",name:"pm field-aware JSON-markdown item document merge",artifact:"item",itemPath:"%P"},{key:"pm-history",name:"pm append-only history stream merge",artifact:"history",itemPath:void 0},{key:"pm-relationship",name:"pm append-only relationship event store merge",artifact:"relationship",itemPath:void 0},{key:"pm-json",name:"pm key-level JSON config merge",artifact:"json",itemPath:void 0}];function ye(e){let r=e.explicitPath?.trim(),i=e.environment.PM_SOURCE_WORKSPACE_ROOT?.trim(),t=e.environment.PM_SOURCE_PM_PATH?.trim(),o=J(e.environment),a=!!(i&&t),s=r===void 0&&a&&(e.dryRun||o.source_writes_allowed);if(r!==void 0){let n=E(e.cwd,r);return{pm_root:n,workspace_start:n,source_coordinates_available:a,source_context_selected:!1,source_policy:o}}return s?{pm_root:c.resolve(t),workspace_start:c.resolve(i),source_coordinates_available:!0,source_context_selected:!0,source_policy:o}:{pm_root:a?E(e.cwd,".agents/pm"):E(e.cwd),workspace_start:e.cwd,source_coordinates_available:a,source_context_selected:!1,source_policy:o}}async function ee(e){try{let{stdout:r}=await _("git",["rev-parse","--show-toplevel"],{cwd:e,env:v(),encoding:"utf8",windowsHide:!0,timeout:1e4});return await w(r.trim())}catch{return null}}async function te(e){let r=await ee(e);if(r===null)throw new k("pm merge install requires a git repository (merge drivers are git configuration).",b.USAGE);return r}function O(e,r){return c.relative(e,r).split(c.sep).join("/")}function z(e){return e.replace(/[\\*?[\]!]/gu,"\\$&")}function h(e){return`"${e.replaceAll("\\","\\\\").replaceAll('"','\\"')}"`}function Y(e,r){if(e[r]!=="'")return null;let i="";for(let t=r+1;t<e.length;t+=1){if(e.startsWith(`'"'"'`,t)){i+="'",t+=4;continue}if(e[t]==="'")return{value:i,nextOffset:t+1};i+=e[t]}return null}async function ve(e,r,i){if(L(r).filter(o=>o.constraint==="exact").some(o=>o.version!==i))return!1;let t=await ee(e);if(t!==null&&t!==await w(r)){let o=await Promise.all([t,r].map(async a=>{let s=await _("git",["rev-parse","--path-format=absolute","--git-common-dir"],{cwd:a,env:v(),timeout:1e4});return w(s.stdout.trim())}));if(o[0]===o[1])return!1}return!0}async function _e(e,r,i){let t=Y(e,0);if(t===null||e[t.nextOffset]!==" ")return!1;let o=Y(e,t.nextOffset+1);if(o===null||e.slice(o.nextOffset)!==r||!/^(?:node|bun)(?:\.exe)?$/iu.test(c.basename(t.value))||c.basename(o.value)!=="cli.js"||c.basename(c.dirname(o.value))!=="dist"||!await S(t.value)||!await S(o.value))return!1;try{let a=c.dirname(c.dirname(o.value)),s=JSON.parse(await A(c.join(a,"package.json"),"utf8")),n=typeof s.bin=="string"?s.bin:s.bin?.pm;return await ve(a,i,s.version)?s.name==="@unbrained/pm-cli"&&n==="dist/cli.js":!1}catch{return!1}}function M(e,r){let i=e.length>0?`${z(e)}/`:"",t=[`${h(`${i}**/*.toon`)} merge=pm-item-toon`,`${h(`${i}**/*.md`)} merge=pm-item-markdown`];for(let o of r){let a=z(o);t.push(`${h(`${i}${a}/*.toon`)} merge=pm-item-toon`),t.push(`${h(`${i}${a}/*.md`)} merge=pm-item-markdown`)}return t.push(`${h(`${i}**/*.jsonl`)} merge=pm-relationship`),t.push(`${h(`${i}history/*.jsonl`)} merge=pm-history`),t.push(`${h(`${i}settings.json`)} merge=pm-json`),t.push(`${h(`${i}**/*.json`)} merge=pm-json`),t.push(`${h(`${i}extensions/**`)} merge=text`),t.push(`${h(`${i}extensions/.managed-extensions.json`)} merge=pm-json`),t}function re(e){let r=[],i=0;for(;i<e.length;){let t=e.indexOf(T,i),o=e.indexOf(x,i),a=t===-1?o:o===-1?t:Math.min(t,o);if(a===-1)break;let s=a===o,n=s?x:T,p=s?Q:pe,u=e.indexOf(p,a+n.length),m=u===-1?e.length:u+p.length;r.push({start:a,end:m,closed:u!==-1,lines:e.slice(a+n.length,u===-1?m:u).split(`
1
+ import{Ea as G,Fb as B,Hi as H,Ie as $,Ma as E,Mi as P,Ri as L,Yi as V,bc as U,hf as W}from"./chunk-5WVE7XBS.js";import{d as K}from"./chunk-SBVX5CMV.js";import{a as X,b as v,c as q}from"./chunk-VS565KBX.js";import{A as b,C as k,E as S,G as j,H as N,K as F}from"./chunk-WX25MU4N.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="6d1f8e03-97b4-5d83-b85c-e47f39c07d48")}catch{}})();var se="PM_SOURCE_CONTEXT_ACCESS",ce="PM_ALLOW_SOURCE_CONTEXT_WRITES";function J(e){let r=e[se],i=r===void 0||r.trim().toLowerCase()==="write"?"write":"read_only",t=i==="read_only"&&e[ce]?.trim()==="1";return{access:i,write_override_applied:t,source_writes_allowed:i==="write"||t}}import{access as le,readFile as A,realpath as w}from"node:fs/promises";import{constants as me}from"node:fs";import{execFile as ue}from"node:child_process";import c from"node:path";import{promisify as de}from"node:util";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="b1828465-0619-514c-8956-2a81dea9efbc")}catch{}})();var _=de(ue),T="# pm-cli:merge-drivers:start",pe="# pm-cli:merge-drivers:end",x="# pm-cli:merge-drivers:v2:start",Q="# pm-cli:merge-drivers:v2:end",fe="merge-fence",ge="merge-attributes";function R(e){return`'${e.replaceAll("'",`'"'"'`)}'`}async function he(e,r){let i=await w(e);if(/(?:^|[\\/])bun-node-[^\\/]+[\\/]bun(?:\.exe)?$/iu.test(i))return;let{stdout:t}=await _(e,["--version"],{encoding:"utf8",windowsHide:!0,timeout:1e4});return t.trim()===r?i:void 0}async function we(){let e=U(import.meta.url,["../../.."]),r=process.execPath,i=!1,t=await w(process.execPath),o=process.versions.bun,a=(process.env.PATH??"").split(c.delimiter).filter(n=>c.isAbsolute(n)).map(n=>c.join(n,o===void 0?c.basename(process.execPath):process.platform==="win32"?"bun.exe":"bun")),s=o===void 0?a:[process.env.npm_execpath??"",...a,t].filter(n=>c.isAbsolute(n)&&/^(?:bun|bun\.exe)$/iu.test(c.basename(n)));for(let n of s)try{if(await le(n,me.X_OK),o!==void 0){let p=await he(n,o);if(p!==void 0){r=p,i=!0;break}continue}if(n!==t&&await w(n)===t){r=n;break}}catch{}if(o!==void 0&&!i)throw new k("Cannot install Bun merge drivers without a durable executable matching the current Bun version.",b.DEPENDENCY_FAILED,{code:"merge_bun_launcher_unavailable",why:"The current Bun process may be a temporary bunx launcher that Git cannot reuse after this command exits.",nextSteps:["Run with a durable version-matched Bun executable, expose one on an absolute PATH entry, or invoke pm through a Bun runner that publishes an absolute npm_execpath.","Retry pm merge install, then check pm health --strict-exit before merging branches."]});return`${R(r)} ${R(c.join(e,"dist","cli.js"))}`}var Z=[{key:"pm-item-toon",name:"pm field-aware TOON item document merge",artifact:"item",itemPath:"%P"},{key:"pm-item-markdown",name:"pm field-aware JSON-markdown item document merge",artifact:"item",itemPath:"%P"},{key:"pm-history",name:"pm append-only history stream merge",artifact:"history",itemPath:void 0},{key:"pm-relationship",name:"pm append-only relationship event store merge",artifact:"relationship",itemPath:void 0},{key:"pm-json",name:"pm key-level JSON config merge",artifact:"json",itemPath:void 0}];function ye(e){let r=e.explicitPath?.trim(),i=e.environment.PM_SOURCE_WORKSPACE_ROOT?.trim(),t=e.environment.PM_SOURCE_PM_PATH?.trim(),o=J(e.environment),a=!!(i&&t),s=r===void 0&&a&&(e.dryRun||o.source_writes_allowed);if(r!==void 0){let n=E(e.cwd,r);return{pm_root:n,workspace_start:n,source_coordinates_available:a,source_context_selected:!1,source_policy:o}}return s?{pm_root:c.resolve(t),workspace_start:c.resolve(i),source_coordinates_available:!0,source_context_selected:!0,source_policy:o}:{pm_root:a?E(e.cwd,".agents/pm"):E(e.cwd),workspace_start:e.cwd,source_coordinates_available:a,source_context_selected:!1,source_policy:o}}async function ee(e){try{let{stdout:r}=await _("git",["rev-parse","--show-toplevel"],{cwd:e,env:v(),encoding:"utf8",windowsHide:!0,timeout:1e4});return await w(r.trim())}catch{return null}}async function te(e){let r=await ee(e);if(r===null)throw new k("pm merge install requires a git repository (merge drivers are git configuration).",b.USAGE);return r}function O(e,r){return c.relative(e,r).split(c.sep).join("/")}function z(e){return e.replace(/[\\*?[\]!]/gu,"\\$&")}function h(e){return`"${e.replaceAll("\\","\\\\").replaceAll('"','\\"')}"`}function Y(e,r){if(e[r]!=="'")return null;let i="";for(let t=r+1;t<e.length;t+=1){if(e.startsWith(`'"'"'`,t)){i+="'",t+=4;continue}if(e[t]==="'")return{value:i,nextOffset:t+1};i+=e[t]}return null}async function ve(e,r,i){if(L(r).filter(o=>o.constraint==="exact").some(o=>o.version!==i))return!1;let t=await ee(e);if(t!==null&&t!==await w(r)){let o=await Promise.all([t,r].map(async a=>{let s=await _("git",["rev-parse","--path-format=absolute","--git-common-dir"],{cwd:a,env:v(),timeout:1e4});return w(s.stdout.trim())}));if(o[0]===o[1])return!1}return!0}async function _e(e,r,i){let t=Y(e,0);if(t===null||e[t.nextOffset]!==" ")return!1;let o=Y(e,t.nextOffset+1);if(o===null||e.slice(o.nextOffset)!==r||!/^(?:node|bun)(?:\.exe)?$/iu.test(c.basename(t.value))||c.basename(o.value)!=="cli.js"||c.basename(c.dirname(o.value))!=="dist"||!await S(t.value)||!await S(o.value))return!1;try{let a=c.dirname(c.dirname(o.value)),s=JSON.parse(await A(c.join(a,"package.json"),"utf8")),n=typeof s.bin=="string"?s.bin:s.bin?.pm;return await ve(a,i,s.version)?s.name==="@unbrained/pm-cli"&&n==="dist/cli.js":!1}catch{return!1}}function M(e,r){let i=e.length>0?`${z(e)}/`:"",t=[`${h(`${i}**/*.toon`)} merge=pm-item-toon`,`${h(`${i}**/*.md`)} merge=pm-item-markdown`];for(let o of r){let a=z(o);t.push(`${h(`${i}${a}/*.toon`)} merge=pm-item-toon`),t.push(`${h(`${i}${a}/*.md`)} merge=pm-item-markdown`)}return t.push(`${h(`${i}**/*.jsonl`)} merge=pm-relationship`),t.push(`${h(`${i}history/*.jsonl`)} merge=pm-history`),t.push(`${h(`${i}settings.json`)} merge=pm-json`),t.push(`${h(`${i}**/*.json`)} merge=pm-json`),t.push(`${h(`${i}extensions/**`)} merge=text`),t.push(`${h(`${i}extensions/.managed-extensions.json`)} merge=pm-json`),t}function re(e){let r=[],i=0;for(;i<e.length;){let t=e.indexOf(T,i),o=e.indexOf(x,i),a=t===-1?o:o===-1?t:Math.min(t,o);if(a===-1)break;let s=a===o,n=s?x:T,p=s?Q:pe,u=e.indexOf(p,a+n.length),m=u===-1?e.length:u+p.length;r.push({start:a,end:m,closed:u!==-1,lines:e.slice(a+n.length,u===-1?m:u).split(`
2
2
  `).map(l=>l.trim()).filter(Boolean)}),i=m}return r}function ie(e,r,i){let t=new Set(r),o=h(i.length>0?`${i}/`:"").slice(0,-1);return e.some(a=>t.has(a)||a.startsWith(o)&&/^[^/]+\/\*\.(?:toon|md)" merge=pm-item-(?:toon|markdown)$/u.test(a.slice(o.length)))}async function oe(e,r,i,t){let o=c.join(e,".gitattributes"),a=t?null:(await _("git",["rev-parse","--absolute-git-dir"],{cwd:e,env:v(),encoding:"utf8",windowsHide:!0,timeout:1e4})).stdout.trim(),s=a===null?null:await $(a,ge,120,"merge-fence",!1,!0,5e3);try{let n=await N(o)??"",p=[x,...i,Q].join(`
3
3
  `),u=re(n),m=u.filter(d=>ie(d.lines,i,r));m.length===0&&r===".agents/pm"&&u.length===1&&u[0].lines.every(d=>!d.includes("/"))&&m.push(u[0]);let l;if(m.length>0){let d=m[0];l=n;for(let y of m.slice(1).reverse())l=`${l.slice(0,y.start)}${l.slice(y.end)}`;l=`${l.slice(0,d.start)}${p}${l.slice(d.end)}`}else{let d=n.trimEnd();l=`${d.length>0?`${d}
4
4
 
5
5
  `:""}${p}
6
6
  `}return l===n?{path:o,changed:!1}:(t||await F(o,l),{path:o,changed:!0})}finally{await s?.()}}function ne(e){let r=G(e,null);return[...new Set(Object.values(r.type_to_folder))].sort((i,t)=>i.localeCompare(t))}async function Ve(e,r){let i=c.resolve(e),t=null,o="",a=i;for(let g=0;g<8;g+=1){let ae=c.join(a,".gitattributes");try{let C=await A(ae,"utf8");if(C.includes(x)||C.includes(T)){t=a,o=C;break}}catch{}let D=c.dirname(a);if(D===a)break;a=D}if(t===null)return{status:"not_installed",missing_patterns:[],stale_patterns:[],schema_scope:"project"};let s=c.join(t,".gitattributes"),n=O(t,i),p=re(o),u=M(n,r),m=p.filter(g=>ie(g.lines,u,n)),l=m.flatMap(g=>g.closed?g.lines:[]),d=new Set(l),y=new Set(u),f=u.filter(g=>!d.has(g)),I=l.filter(g=>!y.has(g));return{status:m.length!==1||!m[0].closed||f.length>0||I.length>0?"drift":"ok",path:s,missing_patterns:f,stale_patterns:I,schema_scope:"project"}}async function Ke(e){let r=[],i=[];for(let t of Z){let o=`merge.${t.key}.driver`,a=` merge driver ${t.artifact} "%O" "%A" "%B"${t.itemPath===void 0?"":` --item-path ${t.itemPath}`}`;try{let{stdout:s}=await _("git",["config","--get",o],{cwd:e,env:v(),encoding:"utf8",windowsHide:!0,timeout:1e4}),n=s.trim();await _e(n,a,e)||i.push(o)}catch{r.push(o)}}return{status:r.length>0?"missing":i.length>0?"drift":"ok",missing_keys:r,drifted_keys:i}}async function Xe(e){let r;try{r=await te(c.resolve(e))}catch{return{status:"no_git"}}let i=O(r,c.resolve(e)),t=await P(e),o=W(void 0,t.author_default),a=await $(e,fe,t.locks.ttl_seconds,o,!1,H(t).force_required_for_stale_lock,t.locks.wait_ms);try{let s=c.join(r,".gitattributes"),n;try{n=await A(s,"utf8")}catch(l){if(l instanceof Error&&"code"in l&&j(l))return{status:"not_installed",path:s};throw l}if(!n.includes(x)&&!n.includes(T))return{status:"not_installed",path:s};let p=await P(e),u=ne(p),m=await oe(r,i,M(i,u),!1);return{status:m.changed?"refreshed":"unchanged",path:m.path}}finally{await a()}}async function qe(e,r){let i=ye({cwd:process.cwd(),explicitPath:r.path,dryRun:e.dryRun===!0,environment:process.env}),t=i.pm_root;await V(t);let o=await te(i.workspace_start);return ke({pmRoot:t,workspaceRoot:o,dryRun:e.dryRun===!0,preCommitHook:e.preCommitHook===!0})}async function be(e,r){let i=(await _("git",["rev-parse","--path-format=absolute","--git-common-dir"],{cwd:e,env:v(),timeout:1e4})).stdout.trim(),t=await $(i,"merge-driver-config",120,"merge-install",!1,!0,5e3);try{let o=await q(e),a;try{a=(await _("git",["config",o,"--null","--get-regexp","."],{cwd:e,env:v(),timeout:1e4})).stdout}catch(n){if(typeof n!="object"||n===null||!("code"in n)||n.code!==1)throw n;a=""}let s=new Map(a.split("\0").filter(Boolean).map(n=>{let p=n.indexOf(`
7
7
  `);return[n.slice(0,p),n.slice(p+1)]}));for(let n of r)s.get(n.key)!==n.value&&await X(e,[o,n.key,n.value])}finally{await t()}}async function ke(e){let r=c.resolve(e.pmRoot),i=c.resolve(e.workspaceRoot),t=e.dryRun===!0,o,a;try{[o,a]=await Promise.all([w(r),w(i)])}catch(f){throw new k(`Cannot resolve tracker root ${r} or workspace root ${i}: ${String(f)}`,b.NOT_FOUND,{code:"merge_root_not_found",nextSteps:["Initialize the tracker and ensure both paths are accessible.",'Retry "pm merge install" from the repository workspace.']})}let s=O(a,o);if(K(s))throw new k(`Tracker root ${r} is outside the git repository ${i}; there is nothing to configure for this repository.`,b.USAGE);let n=await P(o),p=ne(n),u=M(s,p),m=[],l=await we(),d=e.preCommitHook===!0?await import("./settlement-hook-YWSWFOZY.js").then(async f=>({plan:await f.prepareMergeSettlementHook(a,`${l} --pm-path ${R(s||".")}`),write:f.writeMergeSettlementHook})):void 0;for(let f of Z)m.push({key:`merge.${f.key}.name`,value:f.name}),m.push({key:`merge.${f.key}.driver`,value:`${l} merge driver ${f.artifact} "%O" "%A" "%B"${f.itemPath===void 0?"":` --item-path ${f.itemPath}`}`});if(!t)try{await be(a,m)}catch{throw new k(`Cannot install repository-local merge drivers in ${a}. Ensure the repository Git config is writable and no other Git process holds its lock, then retry.`,b.DEPENDENCY_FAILED,{code:"merge_git_config_unwritable",why:"pm merge install must persist clone-local driver commands before publishing their shared .gitattributes mappings.",nextSteps:["Make the repository Git config writable or wait for the process holding its lock to finish.",'Retry "pm merge install"; the operation is idempotent.','Use "pm merge install --dry-run --json" when the workspace is intentionally read-only.']})}let y=await oe(a,s,u,t);return d!==void 0&&!t&&await d.write(d.plan),{ok:!0,dry_run:t,workspace_root:a,pm_root:o,gitattributes:{path:y.path,changed:y.changed,patterns:u,schema_scope:"project"},git_config:m,...d===void 0?{}:{settlement_hook:{path:d.plan.path,changed:d.plan.changed}},guidance:["Commit .gitattributes so every branch and collaborator shares the merge mapping.",'git config is per-clone: each collaborator (and each fresh worktree/clone) runs "pm merge install" once.','After merging branches, run "pm merge reconcile --dry-run" to inspect the complete receipt and history repair, then apply "pm merge reconcile"; use --force only after explicitly accepting any discarded values.',"Custom item types registered later refresh this fence automatically (pm schema add-type/remove-type); rerun pm merge install only after out-of-band type-folder edits."],generated_at:B()}}export{se as a,ce as b,J as c,T as d,pe as e,x as f,Q as g,ye as h,ee as i,M as j,ne as k,Ve as l,Ke as m,Xe as n,qe as o,ke as p};
8
- //# sourceMappingURL=chunk-6PSDQ7T7.js.map
8
+ //# sourceMappingURL=chunk-2GK2IVU5.js.map