@unbrained/pm-cli 2026.10.19 → 2026.10.21
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.
- package/.claude-plugin/marketplace.json +1 -1
- package/CHANGELOG.md +58 -0
- package/dist/cli/error-guidance.d.ts +15 -0
- package/dist/cli/error-guidance.js +2 -2
- package/dist/cli/main.js +1 -1
- package/dist/cli/register-list-query.js +2 -2
- package/dist/cli/register-operations.js +1 -1
- package/dist/cli/register-structured-mutation.js +1 -1
- package/dist/cli-bundle/bundle-manifest.json +1 -1
- package/dist/cli-bundle/chunks/{chunk-4MJ6WBMA.js → chunk-2B5HAZFK.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-4D25HF3V.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-LBEMB3BW.js → chunk-4OYU5OXQ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-4XFVAXA4.js → chunk-5PZ7JNMI.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-C6SAXKBO.js +3 -0
- package/dist/cli-bundle/chunks/chunk-DIKQ2AL5.js +2 -0
- package/dist/cli-bundle/chunks/chunk-DIR3YEFD.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-O2ZRRLAP.js → chunk-DJQVNDXO.js} +3 -3
- package/dist/cli-bundle/chunks/chunk-DR6DUBTU.js +30 -0
- package/dist/cli-bundle/chunks/{chunk-5GZSX5HU.js → chunk-EMGMLKRV.js} +47 -47
- package/dist/cli-bundle/chunks/chunk-GWIGZDRS.js +3 -0
- package/dist/cli-bundle/chunks/chunk-IB7UB5TE.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-QG4LMU7A.js → chunk-KBSVPUFD.js} +46 -45
- package/dist/cli-bundle/chunks/{chunk-NX7Q4LGN.js → chunk-MOC5BJHW.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-MZZIAC6S.js +20 -0
- package/dist/cli-bundle/chunks/{chunk-DMFM5R4G.js → chunk-NNB65OOO.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-D3EDNAN7.js → chunk-QPV6UD55.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-6DS5CAN2.js → chunk-TMXWWOPJ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-H3XYP24A.js → chunk-V3XONSVC.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-V5GJTXYW.js +126 -0
- package/dist/cli-bundle/chunks/chunk-XAWE4EAK.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-XH7C3A5N.js → chunk-ZNKFMIVA.js} +6 -6
- package/dist/cli-bundle/chunks/context-budget-recovery-L2WP5S26.js +2 -0
- package/dist/cli-bundle/{focused-chunks/indexed-receipt-blobs-QW2VWWJE.js → chunks/indexed-receipt-blobs-65XXSPPR.js} +2 -2
- package/dist/cli-bundle/chunks/mutation-admission-FNWOVJLN.js +2 -0
- package/dist/cli-bundle/chunks/{register-list-query-WQUVDJIH.js → register-list-query-6PT5Y2EZ.js} +5 -5
- package/dist/cli-bundle/chunks/{register-mutation-IWIBQIO3.js → register-mutation-TAIQV46L.js} +4 -4
- package/dist/cli-bundle/chunks/register-operations-ONIRO22G.js +2 -0
- package/dist/cli-bundle/chunks/register-setup-OQMUZBJV.js +2 -0
- package/dist/cli-bundle/chunks/{settlement-hook-UNFMCKKQ.js → settlement-hook-UVFYSBMU.js} +2 -2
- package/dist/cli-bundle/chunks/stage-FCPVFO3B.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-32ZKLRWM.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-3TEIACFU.js → chunk-3LWH2RJC.js} +3 -3
- package/dist/cli-bundle/focused-chunks/{chunk-OV2WVLUR.js → chunk-44353U27.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-4HJVAUFX.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-SKYLOPU2.js → chunk-5IMM7GOF.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-JBJJW2WL.js → chunk-6QSZHRM7.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-7UD7XTOE.js +12 -0
- package/dist/cli-bundle/focused-chunks/{chunk-H6BVQ63U.js → chunk-CUWNNU4N.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-E2S42XCT.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-GHQVM6K6.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-GRSQGMRR.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-HYMYAGSY.js → chunk-HNCMYF2W.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-WZTEFFQI.js → chunk-IAGFXKMZ.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-JI3RXXRN.js +78 -0
- package/dist/cli-bundle/focused-chunks/chunk-JMZPZQHR.js +26 -0
- package/dist/cli-bundle/focused-chunks/{chunk-RLRMNFLF.js → chunk-KVYUQS6Y.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-O3M6YWVL.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-P5D7MHDS.js +20 -0
- package/dist/cli-bundle/focused-chunks/chunk-PDOWLRHC.js +8 -0
- package/dist/cli-bundle/focused-chunks/chunk-SVOOGGAK.js +2 -0
- package/dist/cli-bundle/focused-chunks/chunk-T27TLSEU.js +65 -0
- package/dist/cli-bundle/focused-chunks/{chunk-GWTV45SB.js → chunk-VD64TPXI.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-JDBO7SMR.js → chunk-VE6MTRH5.js} +2 -2
- package/dist/cli-bundle/focused-chunks/chunk-XE7P7N5X.js +8 -0
- package/dist/cli-bundle/focused-chunks/chunk-YIWDX6KO.js +91 -0
- package/dist/cli-bundle/focused-chunks/context-budget-recovery-5MKOCGY5.js +2 -0
- package/dist/cli-bundle/{chunks/indexed-receipt-blobs-BVSHK4WQ.js → focused-chunks/indexed-receipt-blobs-CRP6HAZY.js} +2 -2
- package/dist/cli-bundle/focused-chunks/mutation-admission-KM57KDDF.js +2 -0
- package/dist/cli-bundle/focused-chunks/{settlement-hook-X4FNHTOD.js → settlement-hook-MNCHFCAX.js} +2 -2
- package/dist/cli-bundle/focused-chunks/stage-UJYGWNZ7.js +2 -0
- package/dist/cli-bundle/main.js +21 -21
- package/dist/cli-bundle/sdk-authoring.js +1 -1
- package/dist/cli-bundle/sdk-contracts.js +2 -2
- package/dist/cli-bundle/sdk-core.js +23 -23
- package/dist/cli-bundle/sdk-governance.js +1 -1
- package/dist/cli-bundle/sdk-graph.js +1 -1
- package/dist/cli-bundle/sdk-merge.js +58 -57
- package/dist/cli-bundle/sdk-query.js +1 -1
- package/dist/cli-bundle/sdk-runtime.js +1 -1
- package/dist/cli-bundle/sdk-testing.js +1 -1
- package/dist/cli-bundle/sdk.js +8 -8
- package/dist/core/fs/fs-utils.d.ts +2 -2
- package/dist/core/fs/fs-utils.js +1 -1
- package/dist/core/history/event-index.js +2 -2
- package/dist/core/item/actionability.js +1 -1
- package/dist/core/lock/lock-gc.d.ts +12 -5
- package/dist/core/lock/lock-gc.js +1 -1
- package/dist/core/lock/lock-owner.d.ts +33 -0
- package/dist/core/lock/lock-owner.js +2 -0
- package/dist/core/lock/lock.d.ts +11 -22
- package/dist/core/lock/lock.js +4 -3
- package/dist/core/output/output.d.ts +7 -2
- package/dist/core/output/output.js +5 -5
- package/dist/core/shared/errors.d.ts +50 -0
- package/dist/core/shared/errors.js +1 -1
- package/dist/core/store/settings.js +2 -2
- package/dist/mcp/server.js +1 -1
- package/dist/sdk/cli-contracts/runtime-contracts.js +1 -1
- package/dist/sdk/core.d.ts +1 -1
- package/dist/sdk/core.js +1 -1
- package/dist/sdk/dependencies/context-budget-recovery.d.ts +21 -0
- package/dist/sdk/dependencies/context-budget-recovery.js +2 -0
- package/dist/sdk/dependencies.js +1 -1
- package/dist/sdk/errors.d.ts +4 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/extension-command-context.js +2 -2
- package/dist/sdk/generated/generated-error-code-catalog-part-1.js +1 -1
- package/dist/sdk/governance/assurance-action.js +1 -1
- package/dist/sdk/governance/assurance.js +1 -1
- package/dist/sdk/governance/health.js +2 -2
- package/dist/sdk/index.d.ts +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/item-transaction.d.ts +13 -0
- package/dist/sdk/item-transaction.js +1 -1
- package/dist/sdk/lifecycle/structured-mutation-plan.d.ts +14 -1
- package/dist/sdk/lifecycle/structured-mutation-plan.js +1 -1
- package/dist/sdk/output/list-envelope.d.ts +7 -0
- package/dist/sdk/output/list-envelope.js +2 -0
- package/dist/sdk/output.d.ts +1 -0
- package/dist/sdk/output.js +2 -2
- package/dist/sdk/pagination.d.ts +3 -3
- package/dist/sdk/pagination.js +1 -1
- package/dist/sdk/public-surface.json +1 -1
- package/dist/sdk/query/context.js +2 -2
- package/dist/sdk/query/list.d.ts +2 -0
- package/dist/sdk/query/list.js +1 -1
- package/dist/sdk/query/projection-contracts.d.ts +1 -1
- package/dist/sdk/query/projection-contracts.js +1 -1
- package/dist/sdk/relationship-context.d.ts +2 -0
- package/dist/sdk/relationship-context.js +1 -1
- package/dist/sdk/runtime/mutation-admission.d.ts +2 -0
- package/dist/sdk/runtime/mutation-admission.js +2 -0
- package/dist/sdk/runtime-input.d.ts +2 -0
- package/dist/sdk/runtime-input.js +1 -1
- package/dist/sdk/runtime.js +1 -1
- package/dist/sdk/structured-mutations.d.ts +2 -0
- package/dist/sdk/structured-mutations.js +1 -1
- package/dist/sdk/test/execution.d.ts +1 -0
- package/dist/sdk/test/execution.js +2 -2
- package/docs/AGENT_RUNTIME_PRIMITIVES.md +9 -0
- package/docs/ASSURANCE.md +17 -2
- package/docs/COMMANDS.md +31 -3
- package/docs/CONFIGURATION.md +29 -0
- package/docs/CONTEXT_RELEVANCE.md +15 -0
- package/docs/DEVELOPMENT_DEPENDENCY_SECURITY.md +26 -3
- package/docs/PR_REVIEW_LOOP.md +32 -12
- package/docs/SCRIPTING.md +10 -0
- package/docs/SDK.md +144 -0
- package/docs/TESTING.md +43 -1
- package/docs/agent-task-token-baseline.json +1 -1
- package/marketplace.json +1 -1
- package/package.json +1 -1
- package/packages/pm-beads/package.json +1 -1
- package/packages/pm-calendar/package.json +1 -1
- package/packages/pm-command-kit/package.json +1 -1
- package/packages/pm-digital-twin/package.json +1 -1
- package/packages/pm-governance-audit/package.json +1 -1
- package/packages/pm-guide-shell/package.json +1 -1
- package/packages/pm-kanban/package.json +1 -1
- package/packages/pm-lifecycle-hooks/package.json +1 -1
- package/packages/pm-linked-test-adapters/package.json +1 -1
- package/packages/pm-search-advanced/package.json +1 -1
- package/packages/pm-templates/package.json +1 -1
- package/packages/pm-todos/package.json +1 -1
- package/packages/pm-vcs/package.json +1 -1
- package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
- package/plugins/pm-claude/package.json +1 -1
- package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
- package/plugins/pm-codex/package.json +1 -1
- package/plugins/pm-codex/plugin.json +1 -1
- package/runtime-dependencies.json +1 -1
- package/dist/cli-bundle/chunks/chunk-4CXQSRSP.js +0 -126
- package/dist/cli-bundle/chunks/chunk-4ICKT4GH.js +0 -3
- package/dist/cli-bundle/chunks/chunk-OEJ3G7XT.js +0 -20
- package/dist/cli-bundle/chunks/chunk-QBNEZII5.js +0 -30
- package/dist/cli-bundle/chunks/chunk-QKAAZWGC.js +0 -3
- package/dist/cli-bundle/chunks/chunk-TK3G3GAP.js +0 -2
- package/dist/cli-bundle/chunks/register-operations-SUWOZNDU.js +0 -2
- package/dist/cli-bundle/chunks/register-setup-QGM5YJW7.js +0 -2
- package/dist/cli-bundle/chunks/stage-7DELI4Z5.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-2IEWB6MB.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-5YTOYBTZ.js +0 -65
- package/dist/cli-bundle/focused-chunks/chunk-BJMPRB7A.js +0 -91
- package/dist/cli-bundle/focused-chunks/chunk-ENZMATOY.js +0 -20
- package/dist/cli-bundle/focused-chunks/chunk-EOQ6W25I.js +0 -8
- package/dist/cli-bundle/focused-chunks/chunk-FEN7WOOP.js +0 -12
- package/dist/cli-bundle/focused-chunks/chunk-JCLC6HKT.js +0 -8
- package/dist/cli-bundle/focused-chunks/chunk-KLJN44VY.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-L4PL3GZR.js +0 -2
- package/dist/cli-bundle/focused-chunks/chunk-PXDR77TO.js +0 -78
- package/dist/cli-bundle/focused-chunks/chunk-Y54ONBEX.js +0 -25
- package/dist/cli-bundle/focused-chunks/stage-MZSVQYO4.js +0 -2
|
@@ -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]="
|
|
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]="6154c844-0615-5c2a-ac12-48cb73783d53")}catch{}})();import{readFile}from"node:fs/promises";import path from"node:path";import{createStdinTokenResolver,EXIT_CODE,PmCliError,readSettings,resolveAuthor,resolvePmRoot}from"../sdk/runtime-primitives.js";import{describeUnknownError}from"../sdk/error-runtime.js";import{planItemMutationDocument,previewItemMutationDocument}from"../sdk/lifecycle/structured-mutation-plan.js";import{buildItemCompletionMutations,commitItemCompletion,commitItemMutations,previewItemMutations}from"../sdk/item-transaction.js";import{runReopen}from"../sdk/lifecycle/reopen.js";import{parseAtomicMutationControls}from"../sdk/structured-mutations.js";import{collect,getGlobalOptions,invalidateSearchCachesForMutation,printResult}from"./registration-helpers.js";async function runItemReopenAction(id,reason,options,command){const globalOptions=getGlobalOptions(command),expectedResult=options.expectedResult??options.expected,result=await runReopen(id,reason,{status:typeof options.status=="string"?options.status:void 0,expectedResult:typeof expectedResult=="string"?expectedResult:void 0,author:typeof options.author=="string"?options.author:globalOptions.author,message:typeof options.message=="string"?options.message:void 0,force:options.force===!0},globalOptions);await invalidateSearchCachesForMutation(globalOptions,result),printResult(result,globalOptions)}async function readItemMutateInput(options,command){const from=typeof options.from=="string"?options.from.trim():"";if(from.length>0&&from!=="-"){if(command.getOptionValueSource("stdinJson")==="cli")throw new PmCliError("pm item mutate cannot combine --from <path> with explicit --stdin-json. Select one input source.",EXIT_CODE.USAGE);try{return await readFile(path.resolve(process.cwd(),from),"utf8")}catch(error){throw new PmCliError(`pm item mutate could not read --from ${from}: ${describeUnknownError(error)}`,EXIT_CODE.USAGE,{code:"mutation_document_unreadable",required:"Pass a readable JSON, JSON Lines, or envelope document path, or `-` for stdin.",why:"The whole document must be available before any tracker write begins."})}}return await createStdinTokenResolver().resolveValue("-","--stdin-json")??""}async function runItemMutateAction(options,command){const globalOptions=getGlobalOptions(command),input=await readItemMutateInput(options,command);if(input.trim().length===0)throw new PmCliError("pm item mutate requires a non-empty JSON batch on stdin or via --from <path>.",EXIT_CODE.USAGE);if(options.transactionId!==void 0&&(typeof options.transactionId!="string"||options.transactionId.trim().length===0))throw new PmCliError("pm item mutate requires --transaction-id <value> to be non-empty when provided.",EXIT_CODE.USAGE);const pmRoot=resolvePmRoot(process.cwd(),globalOptions.path),settings=await readSettings(pmRoot),plan=await planItemMutationDocument({pmRoot,input,settings,...typeof options.transactionId=="string"?{transactionId:options.transactionId}:{},...typeof options.upsertKey=="string"?{upsertKey:options.upsertKey}:{}}),{mutations,references,rows}=plan,transactionId=plan.transaction_id,receipt={transaction_id:transactionId,transaction_id_source:plan.transaction_id_source,...plan.upsert_key===void 0?{}:{upsert_key:plan.upsert_key}},controls=parseAtomicMutationControls(options),author=resolveAuthor(typeof options.author=="string"?options.author:globalOptions.author,settings.author_default);if(options.dryRun===!0){const preview=await previewItemMutationDocument({pmRoot,author,plan});printResult({...receipt,dry_run:!0,validation:preview.validation,mutation_count:mutations.length,mutations,references,rows:preview.rows},globalOptions);return}const result=await commitItemMutations({pmRoot,transactionId,author,mutations,...controls});printResult({...result,...receipt,mutation_count:mutations.length,references,rows},globalOptions)}function resolveCompletionReason(positionalReason,optionReason){return typeof positionalReason=="string"&&positionalReason.trim().length>0?positionalReason.trim():typeof optionReason=="string"?optionReason.trim():""}async function runItemCompleteAction(id,positionalReason,options,command){const globalOptions=getGlobalOptions(command),transactionId=typeof options.transactionId=="string"?options.transactionId.trim():"";if(transactionId.length===0)throw new PmCliError("pm item complete requires --transaction-id <value>.",EXIT_CODE.USAGE);const reason=resolveCompletionReason(positionalReason,options.reason);if(reason.length===0)throw new PmCliError("pm item complete requires a close reason.",EXIT_CODE.USAGE);const evidence=Object.fromEntries(["file","doc","test","comment","note","learning"].filter(key=>options[key]!==void 0).map(key=>[key,options[key]])),force=options.force===!0,{lockTtlSeconds,lockWaitMs}=parseAtomicMutationControls(options),closeOptions={...typeof options.resolution=="string"?{resolution:options.resolution}:{},...typeof options.expectedResult=="string"?{expectedResult:options.expectedResult}:{},...typeof options.actualResult=="string"?{actualResult:options.actualResult}:{},...typeof options.completedAt=="string"?{completedAt:options.completedAt}:{},...typeof options.validateClose=="string"?{validateClose:options.validateClose}:{},...force?{force:!0}:{}},completion={id,reason,...Object.keys(evidence).length===0?{}:{evidence},...Object.keys(closeOptions).length===0?{}:{closeOptions},...force?{releaseOptions:{force:!0}}:{}},pmRoot=resolvePmRoot(process.cwd(),globalOptions.path),author=resolveAuthor(typeof options.author=="string"?options.author:globalOptions.author,(await readSettings(pmRoot)).author_default);if(options.dryRun===!0){const mutations=buildItemCompletionMutations(completion),validation=await previewItemMutations({pmRoot,transactionId,author,mutations});printResult({transaction_id:transactionId,dry_run:!0,validation,mutation_count:mutations.length,mutations},globalOptions);return}const result=await commitItemCompletion({pmRoot,transactionId,author,...completion,lockTtlSeconds,lockWaitMs});printResult({...result,mutation_count:Object.keys(result.results).length},globalOptions)}function registerStructuredMutationCommands(program){const itemCommand=program.commands.find(command=>command.name()==="item")??program.command("item").description("Run item lifecycle operations.");itemCommand.command("reopen <id> <reason>").option("--status <value>","Active target status: open or in_progress").option("--expected-result <value>","Current active planning expectation; otherwise the receipt offers recovery").option("--expected <value>","Alias for --expected-result").option("--message <value>","Human-readable recurrence history message").option("--force","Override ownership or stale-lock conflicts").option("--author <value>","Mutation author").description("Reopen terminal work with recurrence evidence.").action(runItemReopenAction),itemCommand.command("mutate").option("--transaction-id <value>","Stable idempotency key used to resume an interrupted batch; derived from the document when omitted").option("--stdin-json","Read the JSON mutation array from stdin",!0).option("--from <path>","Read the JSON, JSON Lines, or envelope document from a file (- for stdin)").option("--upsert-key <field>","Update the existing item whose field matches instead of creating a duplicate").option("--dry-run","Validate and preview the batch without writing").option("--create-compensation <mode>","Created-item compensation policy: close or delete","close").option("--lock-ttl-seconds <n>","Workspace transaction lock lifetime in seconds").option("--lock-wait-ms <n>","Maximum time to wait for the workspace transaction lock").option("--author <value>","Mutation author").description("Apply SDK-backed mutations atomically.").action(runItemMutateAction),itemCommand.command("complete <id> [reason]").requiredOption("--transaction-id <value>","Stable idempotency key for the composed completion").option("--reason <value>","Close reason when omitted positionally").option("--file <value>","Linked file evidence",collect).option("--doc <value>","Linked documentation evidence",collect).option("--test <value>","Linked test evidence",collect).option("--comment <value>","Evidence comment",collect).option("--note <value>","Completion note",collect).option("--learning <value>","Durable completion learning",collect).option("--resolution <value>","Structured resolution evidence").option("--expected-result <value>","Expected result evidence").option("--actual-result <value>","Actual result evidence").option("--completed-at <value>","Actual completion time").option("--validate-close <mode>","Close validation: off, warn, or strict").option("--lock-ttl-seconds <n>","Workspace transaction lock lifetime in seconds").option("--lock-wait-ms <n>","Maximum time to wait for the workspace transaction lock").option("--dry-run","Validate and preview completion without writing").option("--force","Override lifecycle and ownership conflicts").option("--author <value>","Completion author").description("Close with evidence and release the claim.").action(runItemCompleteAction)}const structuredMutationTestOnly={runItemCompleteAction,runItemMutateAction,runItemReopenAction};export{registerStructuredMutationCommands,structuredMutationTestOnly};
|
|
2
2
|
//# sourceMappingURL=register-structured-mutation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"schema_version":1,"generation":"a8ccde45789ca95924270fff29c63e22437db0996d9958e02e13af5d0545d3d7","files":[{"path":"chunks/chunk-4CXQSRSP.js","sha256":"43e6aed79ab8d77c6f92441cdec8825b8ae7e5e5ead659573b7fdc9000065aba"},{"path":"chunks/chunk-4CXQSRSP.js.map","sha256":"b04ed6cdfab9deff268135437a9cff76ca7b4b85af13accfb3b8d5a2926c32a8"},{"path":"chunks/chunk-4ICKT4GH.js","sha256":"4088e1e1015cdbef40082ef701284666585124c09458ba807d71977279694017"},{"path":"chunks/chunk-4ICKT4GH.js.map","sha256":"6b34a8705de6f3da0cea90f67a38f66525bb3d9c19a79f0f7d8a47290729ee05"},{"path":"chunks/chunk-4MJ6WBMA.js","sha256":"f5d72054e5b2fe659874ea041b3bcdde4aedc0378cada9c8ae969e433bdb1ebf"},{"path":"chunks/chunk-4MJ6WBMA.js.map","sha256":"cf3f9572b981d49095912d307890b123ad93c7ed5e4d65e009b9e6a5acd9f017"},{"path":"chunks/chunk-4XFVAXA4.js","sha256":"1303f08a419c44bcad862a72ce13f361dccff975144cf8c77650470da1c121aa"},{"path":"chunks/chunk-4XFVAXA4.js.map","sha256":"ab7aabfa06b9555afa59faa68740fe21c89688945188e33a6eb8a0470cab1001"},{"path":"chunks/chunk-5GZSX5HU.js","sha256":"5f7720b908d634a73450d86082b17337ce50d94c67c8fa4452b33c321a2faab4"},{"path":"chunks/chunk-5GZSX5HU.js.map","sha256":"fac782d2ecdca4ac2c06c361ef8792942d44c8c8477c60b9067b362057932a32"},{"path":"chunks/chunk-6DS5CAN2.js","sha256":"9461b0bf55b22fe666c84319c1ea7522cbcbc4e4063a5189526c0f60de039db1"},{"path":"chunks/chunk-6DS5CAN2.js.map","sha256":"f16ff9e3c72bb0e377b3c28b6fdd79fac49b17e2737557e0ddb7b60045c5d9c9"},{"path":"chunks/chunk-D3EDNAN7.js","sha256":"f26ec3fcb62ca4b5dcf10d8fb44fc27c07d89c2ee724cd4596cea3b59c8d8ecf"},{"path":"chunks/chunk-D3EDNAN7.js.map","sha256":"3ef6aaaab9d223b065b678a7eb29cc8fb1a241156372d5809b00812dd5a84afb"},{"path":"chunks/chunk-DEZPZOQ7.js","sha256":"ef11ddab9ecc9533cac75ccc8ca41058a59382dfbe3262033fa21c7264d73b0d"},{"path":"chunks/chunk-DEZPZOQ7.js.map","sha256":"ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"},{"path":"chunks/chunk-DMFM5R4G.js","sha256":"5f7fc6e2f437cb6f252d8ae3f85155b80c83365c58a2fcdb2b2f83cf5cfc3392"},{"path":"chunks/chunk-DMFM5R4G.js.map","sha256":"b1de686258174f3762b6516c5f7175af1a95be536ae8200a18c0d70cf2a221c3"},{"path":"chunks/chunk-H3XYP24A.js","sha256":"e4e25183a4e520493660ed3d5845ce229d3a54e2068c0a7ed8ac815acc1f650c"},{"path":"chunks/chunk-H3XYP24A.js.map","sha256":"c0c6406faa13e213f264937cc15ac8d6074342db9e013b68f9865d2e63743966"},{"path":"chunks/chunk-LBEMB3BW.js","sha256":"aa385dd21c7794d43f0b5d53b8307a195830c73c049b293d78227f08ec7d0d70"},{"path":"chunks/chunk-LBEMB3BW.js.map","sha256":"c43e692b9b9c9b53dcfe6e499726fbbe3b0bcf7e6f2a7f1ae80a23e2f4ca28eb"},{"path":"chunks/chunk-NX7Q4LGN.js","sha256":"9f3ee967463bdcce1a3d8729b589b58563f855ea28f87095063914f00ed08d8f"},{"path":"chunks/chunk-NX7Q4LGN.js.map","sha256":"f47797d7414cfd1e177ff2699f808d393b6ddc5d38ef75b9eeacce7a2342a715"},{"path":"chunks/chunk-O2ZRRLAP.js","sha256":"2803e9c51f23c15bc3c5fa0728ff3deeef59ea4a6f021a6e03835e347fa8bc3f"},{"path":"chunks/chunk-O2ZRRLAP.js.map","sha256":"e1deca93065eca3833390b32617c32e505121ca2da8ff02fd2c6f63ee62848a1"},{"path":"chunks/chunk-OEJ3G7XT.js","sha256":"08a49cedb272c1d71e9fcd4e3193568ef46be90975b0551ca55fd7e6ed152502"},{"path":"chunks/chunk-OEJ3G7XT.js.map","sha256":"2ea5fdd17c3035f282e68c167943b935b049d64d50f3997035edec37daa2b76d"},{"path":"chunks/chunk-QBNEZII5.js","sha256":"2559ed4043217436df45d2fe180d1af1c28a169dc8ee01924ee6c8d5ab84ba6d"},{"path":"chunks/chunk-QBNEZII5.js.map","sha256":"bfa9a9e4d1a5df5ad8d5f0839850d37953a77309c61944f7c7e03b21b332f0ad"},{"path":"chunks/chunk-QG4LMU7A.js","sha256":"0f37af1dc9f9c0430dd844e2c655792c6d4ed89e3b31e7a56f534dd5782a3e76"},{"path":"chunks/chunk-QG4LMU7A.js.map","sha256":"6d2c56ba82a949a5f086d479a6fa1b790ce05f0d4d10518d502858665ca44813"},{"path":"chunks/chunk-QKAAZWGC.js","sha256":"2efb50ed097ddf597b031a91248f55f936ef3dbf109516ebd0ebfc10221d71a7"},{"path":"chunks/chunk-QKAAZWGC.js.map","sha256":"5feec1f38f663e2e28bcb7a88dfb07712100e9722ce1c7d494ed86b0538ebb7e"},{"path":"chunks/chunk-RUKSEZE7.js","sha256":"05eaf33deb0ed71f2979b8fe576bc019edca18774a54dece107eb75ec54f64cc"},{"path":"chunks/chunk-RUKSEZE7.js.map","sha256":"f570cccc63e03deaced83773e055aff40fd8b72aa9b561e46a8ac21eef65788a"},{"path":"chunks/chunk-SGFQQXFD.js","sha256":"27cfd4152f894bbd21c5d4f1d8ba40ea447d11983ec3b09a578d8bbc787522d7"},{"path":"chunks/chunk-SGFQQXFD.js.map","sha256":"ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"},{"path":"chunks/chunk-TK3G3GAP.js","sha256":"bb9f0097886789c5cf87b6fb2cf9a3605a0c11e2f01517641e54132ef279208d"},{"path":"chunks/chunk-TK3G3GAP.js.map","sha256":"0fc6dca35579903c58322864f28362041acc2b8815e0fa642896db2d29830826"},{"path":"chunks/chunk-VS565KBX.js","sha256":"f66d92e0d59add33123dc44938a2cf76a749b262d5c044d8bbccce24861f9351"},{"path":"chunks/chunk-VS565KBX.js.map","sha256":"562c753aa39adbfdbeefaf390e68fdadd1fe986bcb6e82f9355315e8d6a16ec9"},{"path":"chunks/chunk-XH7C3A5N.js","sha256":"04f8645091614258070f5ac4029388ac8d7dc40f736307681887fe1eae1988a4"},{"path":"chunks/chunk-XH7C3A5N.js.map","sha256":"10def42319546d19aee50bf5582097733570acd506a0d41fec3c5382b0b5ed51"},{"path":"chunks/indexed-receipt-blobs-BVSHK4WQ.js","sha256":"cb8f6b7a251f2ab6dea1ad6cd3df161b72cc36877b00566dd9b3fe8e44c92666"},{"path":"chunks/indexed-receipt-blobs-BVSHK4WQ.js.map","sha256":"57b273a9f6437bafaada297723cb222a607a701eb49aac2922e6b723f10fe0b4"},{"path":"chunks/register-list-query-WQUVDJIH.js","sha256":"563bfe646536a6fc11592ce2c6d60e1566aa8fad9e74112075ddbcb906b2bf74"},{"path":"chunks/register-list-query-WQUVDJIH.js.map","sha256":"ec4cc9b20924d1879e2059ec279958cb6407ec73665b0ead7003afdc61c51faa"},{"path":"chunks/register-mutation-IWIBQIO3.js","sha256":"785483a767263cf5bd82b4114a32161818ca8f9d68dfc0f808de1e440005864a"},{"path":"chunks/register-mutation-IWIBQIO3.js.map","sha256":"36fc04233d58159568eecd06c5e0c634e8945e1bdfe7940e452894cc68534265"},{"path":"chunks/register-operations-SUWOZNDU.js","sha256":"91affd78144132d2fcc49bb21fa1c163be7e3ae73344b248bf0aa573b91b5d84"},{"path":"chunks/register-operations-SUWOZNDU.js.map","sha256":"e05eb856d511c4fb1469b36a1ff3e3c171e2e4b173060011978ed19970ebdfc4"},{"path":"chunks/register-setup-QGM5YJW7.js","sha256":"2127b4df8184491d4d78005a5e6dbed2beccd8f68cf1847adc89906036279de8"},{"path":"chunks/register-setup-QGM5YJW7.js.map","sha256":"a5285e16fadf33ae53448c6b203474bb64444c55a730b41c2779e529bbf5066f"},{"path":"chunks/settlement-hook-UNFMCKKQ.js","sha256":"52659879aa9f6a347d4b5a8cbcaafa9efa2970b3b3c6212f49cc8132bcf98091"},{"path":"chunks/settlement-hook-UNFMCKKQ.js.map","sha256":"d49b55f7df2dff3c6287f163f6a2bb801dca8caf522412c0b328eb9f74be5c7f"},{"path":"chunks/stage-7DELI4Z5.js","sha256":"efcbbc63e21c420ef8ae77fff382d4548fa7e414d742d3b4107692b39eb0e911"},{"path":"chunks/stage-7DELI4Z5.js.map","sha256":"c85bfe202a302f000f5e7e5175b2eb9f2fc0b63805fac86f5b892354491c6a50"},{"path":"focused-chunks/chunk-2IEWB6MB.js","sha256":"4d3174b5bcf65cd91648c39535a61e779d7bedc2a1998b3d327a468b47aaa698"},{"path":"focused-chunks/chunk-2IEWB6MB.js.map","sha256":"d7d027db9a2a525da1067ed84b736b2312c6ca6d897a0830d74125c036e07f54"},{"path":"focused-chunks/chunk-3TEIACFU.js","sha256":"107f5df19948b446ea22d3bccef0b2b15510e1d9d267ff468de03ad7aa8b83da"},{"path":"focused-chunks/chunk-3TEIACFU.js.map","sha256":"503eb22e38b90a7a5928dbef40626a8dc5b86578e5ea0dd02bca276084523cc5"},{"path":"focused-chunks/chunk-5YTOYBTZ.js","sha256":"eebdcca9fe581558bd6482865100a74bd626e3d5e2e37c32966057cf7d1a4475"},{"path":"focused-chunks/chunk-5YTOYBTZ.js.map","sha256":"ee3a1c0e1e36f4b04548cc3b40e8f81f89871f4deee3bd6fef11261113c5532b"},{"path":"focused-chunks/chunk-AK2CI2GI.js","sha256":"8a40e489e22d02a4d6c0e02a3ff847d93b633d662cd952e4023079ffb4a3fdc5"},{"path":"focused-chunks/chunk-AK2CI2GI.js.map","sha256":"70aa5aa38f1d2f486c5e165db51939b7777df85572706d3bb4165e55f8614488"},{"path":"focused-chunks/chunk-BJMPRB7A.js","sha256":"cbcfe76319cbf5cdf9f30cfa84ba97ac5185925fc1e847927a994e6049693946"},{"path":"focused-chunks/chunk-BJMPRB7A.js.map","sha256":"a81cb85e078e8c7119294e49a2b66def3a1f4f644eae3fbcb9adc7b20d4e24b4"},{"path":"focused-chunks/chunk-ENZMATOY.js","sha256":"0c0546349d603a1489ef26abb9172daed8cbb35e1c25191ee79c96d16a4804d9"},{"path":"focused-chunks/chunk-ENZMATOY.js.map","sha256":"219f29506c47a40ec153380c70ccbabb320de10538f5d55f04d60ad9e966d248"},{"path":"focused-chunks/chunk-EOQ6W25I.js","sha256":"b10b5b7c5d50fe602f24d2d47eafd4e770c1766607aee6d8e955beaef8ced919"},{"path":"focused-chunks/chunk-EOQ6W25I.js.map","sha256":"c3f50921c38bd16d01a7b4657959eb30b372e5dc599c6f44338ddf9569f61978"},{"path":"focused-chunks/chunk-FEN7WOOP.js","sha256":"16793c6ddd28bafb010b51ffabcceb1318eb166334bd9bfc2032c5027ba2411b"},{"path":"focused-chunks/chunk-FEN7WOOP.js.map","sha256":"e02efec0cd69df71053566e35733013a60f5b6b96f436119417df566c4f726dd"},{"path":"focused-chunks/chunk-FOA7XKWP.js","sha256":"3e57188628de10dafcc17048ef3dcc5b9061c29ff4f34620a4d62de45ee606fa"},{"path":"focused-chunks/chunk-FOA7XKWP.js.map","sha256":"562c753aa39adbfdbeefaf390e68fdadd1fe986bcb6e82f9355315e8d6a16ec9"},{"path":"focused-chunks/chunk-GWTV45SB.js","sha256":"5869bac25bfcea4242ea4e5e10630c1ad879e2393eb3fab75cac8b2c91096297"},{"path":"focused-chunks/chunk-GWTV45SB.js.map","sha256":"0526cffbd8e6ff2a57811e2ffba2060c83eb84e6ad7adde876c13d93f422592d"},{"path":"focused-chunks/chunk-H6BVQ63U.js","sha256":"b29819494b1d2387e8a39b839390b98b90365977e471b9296b5fbdd938399bf3"},{"path":"focused-chunks/chunk-H6BVQ63U.js.map","sha256":"80f6c87b0f5dc75681ed748b40ba004822e36fc904f28ba9d01bfa21c5880772"},{"path":"focused-chunks/chunk-HYMYAGSY.js","sha256":"4ad4107cf6d0de8dfd4658e4cbf1a824dee6fdbc0207ab2efa2bca9530a398ad"},{"path":"focused-chunks/chunk-HYMYAGSY.js.map","sha256":"989983130a504bcf5fa92afa91c206969a2e015d35980123285d917b25553b41"},{"path":"focused-chunks/chunk-JBJJW2WL.js","sha256":"450e6b6db17942594b784676209bd89ec4c4725f76cb5c69df6f2158997491d0"},{"path":"focused-chunks/chunk-JBJJW2WL.js.map","sha256":"c43e692b9b9c9b53dcfe6e499726fbbe3b0bcf7e6f2a7f1ae80a23e2f4ca28eb"},{"path":"focused-chunks/chunk-JCLC6HKT.js","sha256":"fb0d2e5db1f5f8b28e11a45beca10d3c3424138efc9d828f32cd6bd7b7f71be8"},{"path":"focused-chunks/chunk-JCLC6HKT.js.map","sha256":"4dea27ea681de2f75e286db8604587d76a006bd3b5ca21ae377631bda605de2a"},{"path":"focused-chunks/chunk-JDBO7SMR.js","sha256":"ebff95e1ff5e83c6d7633c8059e154fe609d1a38b5708054477c48598cc34b57"},{"path":"focused-chunks/chunk-JDBO7SMR.js.map","sha256":"b18ce126e128112da9d3e61c031b117dcf0c3f8740dd008785445992816e81ef"},{"path":"focused-chunks/chunk-KLJN44VY.js","sha256":"cfa393cf0180cf1b1e3541fc4a0f12c9182514667a1e2f6e044fe67d541299b9"},{"path":"focused-chunks/chunk-KLJN44VY.js.map","sha256":"5c9cd60c3b5a6589afc40d0f2d21135b9970f2da2e5fb6e80b0924f3463f87cf"},{"path":"focused-chunks/chunk-L4PL3GZR.js","sha256":"96c1d0880056dfd54fdeadd1d92a2221f9c63df02604bb787ee5366a41b5ae83"},{"path":"focused-chunks/chunk-L4PL3GZR.js.map","sha256":"0f34796c38b9d17f8e3b4350deb4e851f776d51e3b8848c7bf28c92b2169822f"},{"path":"focused-chunks/chunk-OV2WVLUR.js","sha256":"66f71939c5e799ffe7e444ef2a8e1dc036f9df500ab8319382e9f883d250bcc4"},{"path":"focused-chunks/chunk-OV2WVLUR.js.map","sha256":"a01c35d2ca29041f79779dce1683ee95e0a61f40892da0b1187a6b9064cb99fd"},{"path":"focused-chunks/chunk-PXDR77TO.js","sha256":"9b1dd7dbf05cc58245009108b19d1331c2755dc9e18dc4dbe98527c1af76318e"},{"path":"focused-chunks/chunk-PXDR77TO.js.map","sha256":"96c221e4f37830de81bed322b38ef1332f51f6c5b7144dedccec60f8cb6cbc4b"},{"path":"focused-chunks/chunk-RLRMNFLF.js","sha256":"a8bfc85fbdca893dbb7e08561282c34e078995a72ab77555d568133ebdb68c54"},{"path":"focused-chunks/chunk-RLRMNFLF.js.map","sha256":"b01688b0ae93b0d2e231cfe69a319ab6d3c17ffb1303aeeef395754a6e6b4641"},{"path":"focused-chunks/chunk-SKYLOPU2.js","sha256":"04bbb61c16c413f3e9fe9e85598d4e5ca43847130771fe81a30a82ec0e5de654"},{"path":"focused-chunks/chunk-SKYLOPU2.js.map","sha256":"a84f647c998ffd901587ac3c9996a77a1ccb621e17f2206e75d13a922c7381f6"},{"path":"focused-chunks/chunk-VVRXF4JO.js","sha256":"36c83f33f8e49f9b51f4beaea1e2861c7303e6dab09fac5beee2b4e30960fed8"},{"path":"focused-chunks/chunk-VVRXF4JO.js.map","sha256":"f570cccc63e03deaced83773e055aff40fd8b72aa9b561e46a8ac21eef65788a"},{"path":"focused-chunks/chunk-WZTEFFQI.js","sha256":"92b8b97ac4ba0fa8b29e827be858dc0a2dfe239a83234d7a41f720310dc2f746"},{"path":"focused-chunks/chunk-WZTEFFQI.js.map","sha256":"496f84fbecf5ec6608965ea7dfac8f158a970252457b70d5b29468c8e7dd22fb"},{"path":"focused-chunks/chunk-Y54ONBEX.js","sha256":"86c538b49712d717ce85d8dc67850e6d453e9f06afc4a34be63a2f928529a5d6"},{"path":"focused-chunks/chunk-Y54ONBEX.js.map","sha256":"605404c1e98f4250df382234c73306841f80ac4e997fab95d1f85670764906f8"},{"path":"focused-chunks/chunk-YLVHHWHN.js","sha256":"aed33cc3c5024b75a909cf5c01ac1d0161d9f56cc87c9c7638662f82a4d94626"},{"path":"focused-chunks/chunk-YLVHHWHN.js.map","sha256":"2536922ae21f29b6d28033a35d9aba3d921ee26867d733ba0a76857c97366cd9"},{"path":"focused-chunks/indexed-receipt-blobs-QW2VWWJE.js","sha256":"d3deffba79daa2ee85e11feb14d8f284dc27815f940611f0b1a2535f97413fd1"},{"path":"focused-chunks/indexed-receipt-blobs-QW2VWWJE.js.map","sha256":"57b273a9f6437bafaada297723cb222a607a701eb49aac2922e6b723f10fe0b4"},{"path":"focused-chunks/settlement-hook-X4FNHTOD.js","sha256":"e091ddd24b8dd0c51cbe92ed2dd5e610f5d8ed302767373098c9473b140bde6a"},{"path":"focused-chunks/settlement-hook-X4FNHTOD.js.map","sha256":"d49b55f7df2dff3c6287f163f6a2bb801dca8caf522412c0b328eb9f74be5c7f"},{"path":"focused-chunks/stage-MZSVQYO4.js","sha256":"7d252047dbbe5e5caf413e538bbdc8fe9043247d87e9afda55c95932d45031c3"},{"path":"focused-chunks/stage-MZSVQYO4.js.map","sha256":"63c5f0d59a38090c49d0407289971b3dc31c32f563723a9ca83bd4b9ea984d2b"},{"path":"main.js","sha256":"847e145c7faafac2d264543a494cbe75b6e6ab5d2cf504438810853c469aa7cf"},{"path":"main.js.map","sha256":"23c4ac58a7732660a471f668cb54fb480969c240096b334efa20f4a496bfee6a"},{"path":"sdk-authoring.js","sha256":"d51c60f656333e248034f65895b6713b29d25105cd7251dc5c29213cb4397e2b"},{"path":"sdk-authoring.js.map","sha256":"d2340cb73fd756eb62d1fbb84e9044ec9d8e138deab90ec6c3dc5a09a1b8e1ef"},{"path":"sdk-contracts.js","sha256":"335227d4a747e4537b7dbc879b02ddae4b8b5a910da750413cbf95ce3e1fc1d9"},{"path":"sdk-contracts.js.map","sha256":"202812ad240e96e5999af8bc71ad97cf951bb35742232fbe3af6510499b8634c"},{"path":"sdk-core.js","sha256":"6b025d59a59f557fe6aac047431e6bc952aa847adf5984695fda5dc20f62504c"},{"path":"sdk-core.js.map","sha256":"33c819a25538f54fe85117912d690f5619e94bd5979f15627b009af54b1f53b6"},{"path":"sdk-governance.js","sha256":"6b5f362f95c419a58cde2e135adec223db1c69a12e7aabda75ab8f5f83408d1e"},{"path":"sdk-governance.js.map","sha256":"5b62c29524d9293c6bed60a260919699edcac569a873a11bac1c769980ac9d44"},{"path":"sdk-graph.js","sha256":"25d4eae3fec52e76f9c06a26e601e674d3cf31b8488454aadf4c1db4c1d44c95"},{"path":"sdk-graph.js.map","sha256":"c7c9c4fabb230e2050f66a5a6ca0c88bcb351f1ed96778542fbcc233e7839e15"},{"path":"sdk-merge.js","sha256":"9763c89f7a13ae897981fa32221cf8314dd1075fee5860eef1d58f1b30686c23"},{"path":"sdk-merge.js.map","sha256":"2a5f5e9a75f755d17ebd146c8b529e0555b731680fe588ea7dfc2a8803294020"},{"path":"sdk-query.js","sha256":"f3763e25b0ba6bff6da5db3db8529cf1a741fcdaa5bef0e1dd9d0c601f992805"},{"path":"sdk-query.js.map","sha256":"a52a6ab3a270cc44033d81c33d99f45803ed01daeef3bd3a779d446047370ccb"},{"path":"sdk-runtime.js","sha256":"95bd8ec8201f17735d75b3b1d72fcfa6e95e80711f5a803eb203aa6eb78d8dff"},{"path":"sdk-runtime.js.map","sha256":"ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"},{"path":"sdk-testing.js","sha256":"e88707a1ffae63e48848bd72c60bcde35ed8c577b453b1940326fe0f7cdfe194"},{"path":"sdk-testing.js.map","sha256":"ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"},{"path":"sdk.js","sha256":"a6b634af17d28dbd633b095e44b939a5c20949d8cb7755b8545d696915dadb90"},{"path":"sdk.js.map","sha256":"2cdf4e0e06e28003c4f7a7912042e26b1c337cfd096b2d3acb42a794a091aa3f"}]}
|
|
1
|
+
{"schema_version":1,"generation":"138de27fce5b63960bfe9d29e9f7c6763a740771523e1de58054f4cd874c7b7a","files":[{"path":"chunks/chunk-2B5HAZFK.js","sha256":"d7d5a6e1790320ac724d7dfa6f3b2ecdb496fb3b4677a90a49d60cb2a6d4987c"},{"path":"chunks/chunk-2B5HAZFK.js.map","sha256":"cf3f9572b981d49095912d307890b123ad93c7ed5e4d65e009b9e6a5acd9f017"},{"path":"chunks/chunk-4D25HF3V.js","sha256":"9104ab502758f12401a9bce2d0768f79a313ce457d02712f526cebde93c3a973"},{"path":"chunks/chunk-4D25HF3V.js.map","sha256":"ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"},{"path":"chunks/chunk-4OYU5OXQ.js","sha256":"904d5e1d5ea467eeeddeda6833e3f2ef96bba845397b3cd113c13164bb45b809"},{"path":"chunks/chunk-4OYU5OXQ.js.map","sha256":"c43e692b9b9c9b53dcfe6e499726fbbe3b0bcf7e6f2a7f1ae80a23e2f4ca28eb"},{"path":"chunks/chunk-5PZ7JNMI.js","sha256":"d3c11738cbf25a3a2c224369b70ab96203973e4fc48f50588729230f26a4785a"},{"path":"chunks/chunk-5PZ7JNMI.js.map","sha256":"ab7aabfa06b9555afa59faa68740fe21c89688945188e33a6eb8a0470cab1001"},{"path":"chunks/chunk-C6SAXKBO.js","sha256":"4fdb93d8cb75947a2bc25c6a77db413b877408da1eab24339cb46d7939698c3a"},{"path":"chunks/chunk-C6SAXKBO.js.map","sha256":"cf48b3dd50abd9c5056145ee034d578f463a1e6c1f483bb6c88c6ede4e6914b1"},{"path":"chunks/chunk-DEZPZOQ7.js","sha256":"ef11ddab9ecc9533cac75ccc8ca41058a59382dfbe3262033fa21c7264d73b0d"},{"path":"chunks/chunk-DEZPZOQ7.js.map","sha256":"ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"},{"path":"chunks/chunk-DIKQ2AL5.js","sha256":"651a3aacacb721e9f5245014d73c2a27f1df3e1933f53dfc9e8c5c15227cb9d8"},{"path":"chunks/chunk-DIKQ2AL5.js.map","sha256":"736590b46ca3c0f92263fe6639b48c329092de365d31ba2b28b7b0c9b8de592d"},{"path":"chunks/chunk-DIR3YEFD.js","sha256":"8143179c8aaf3b09ed0c382884feabec0fbd0c2545d9d041da92b543b9699ac6"},{"path":"chunks/chunk-DIR3YEFD.js.map","sha256":"ad55e986cc908af147dea30d6321ca1fb423ef307185c21e033e00c874903553"},{"path":"chunks/chunk-DJQVNDXO.js","sha256":"659d1a50ea3d6d5b2410b1f6ddfbe072a27647df5f038c3f5841fdaef91ff8c0"},{"path":"chunks/chunk-DJQVNDXO.js.map","sha256":"e1deca93065eca3833390b32617c32e505121ca2da8ff02fd2c6f63ee62848a1"},{"path":"chunks/chunk-DR6DUBTU.js","sha256":"bd7765be9b088c37e160d25f04b714f1482a762fa618c651f9b83e60a98f7d0b"},{"path":"chunks/chunk-DR6DUBTU.js.map","sha256":"ec93cb7ee06c74f9fb9eac2c7343e32c07ea79bec715133f7e7067594a982479"},{"path":"chunks/chunk-EMGMLKRV.js","sha256":"00eaaafa5386b520b9de3b249dccd4bcb246405ec1a16b2f59ddb5dbb071ef14"},{"path":"chunks/chunk-EMGMLKRV.js.map","sha256":"d81d160b000e86356be948dfdb64dd41456b0ed6a9644b2673bc17c8cc907f4e"},{"path":"chunks/chunk-GWIGZDRS.js","sha256":"ace416d706c3032788a779053da8eb07c111d4ac0292b1b1dc88a34c76e553b6"},{"path":"chunks/chunk-GWIGZDRS.js.map","sha256":"8145e162bbba3370c274e3de8354697e37defe3ce7dec6e64b39c384e400578c"},{"path":"chunks/chunk-IB7UB5TE.js","sha256":"158940f663a676247075395b646afbce49c7b88138d677699bdabf9add9776df"},{"path":"chunks/chunk-IB7UB5TE.js.map","sha256":"ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"},{"path":"chunks/chunk-KBSVPUFD.js","sha256":"2f5f3f8a19fc166536b42e75a837d5bacda5958e75cbc317c513e2b33f641147"},{"path":"chunks/chunk-KBSVPUFD.js.map","sha256":"4476b0f309bd35dab0c27ac8bcffccef65ec179594332bf9c74e44a7f312e2ae"},{"path":"chunks/chunk-MOC5BJHW.js","sha256":"5462808aff33813b1221324a1c87e3e4976b39ea95b67f737d3cdc04bc70df9d"},{"path":"chunks/chunk-MOC5BJHW.js.map","sha256":"f47797d7414cfd1e177ff2699f808d393b6ddc5d38ef75b9eeacce7a2342a715"},{"path":"chunks/chunk-MZZIAC6S.js","sha256":"573ca68c9d98daf802bb28f5dfd825e9197fca7a0bf667239d0565a5ce47e760"},{"path":"chunks/chunk-MZZIAC6S.js.map","sha256":"683043ebf72ff07170c22c5d3a1d2f007e99c89d934d422253de08b88038db27"},{"path":"chunks/chunk-NNB65OOO.js","sha256":"7c64f60bec6b156edebe9200c653c6baa08532caf05692c825895e20cea8544f"},{"path":"chunks/chunk-NNB65OOO.js.map","sha256":"b1de686258174f3762b6516c5f7175af1a95be536ae8200a18c0d70cf2a221c3"},{"path":"chunks/chunk-QPV6UD55.js","sha256":"b209c3aa53a315c16183e130e7d749776c7dc0b674ce325f40505218cce18484"},{"path":"chunks/chunk-QPV6UD55.js.map","sha256":"3ef6aaaab9d223b065b678a7eb29cc8fb1a241156372d5809b00812dd5a84afb"},{"path":"chunks/chunk-RUKSEZE7.js","sha256":"05eaf33deb0ed71f2979b8fe576bc019edca18774a54dece107eb75ec54f64cc"},{"path":"chunks/chunk-RUKSEZE7.js.map","sha256":"f570cccc63e03deaced83773e055aff40fd8b72aa9b561e46a8ac21eef65788a"},{"path":"chunks/chunk-SGFQQXFD.js","sha256":"27cfd4152f894bbd21c5d4f1d8ba40ea447d11983ec3b09a578d8bbc787522d7"},{"path":"chunks/chunk-SGFQQXFD.js.map","sha256":"ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"},{"path":"chunks/chunk-TMXWWOPJ.js","sha256":"b8839a5a9ef85f6e919e4c3ed34aa435084d95fd2d46e69328d379ed872e6eaa"},{"path":"chunks/chunk-TMXWWOPJ.js.map","sha256":"f16ff9e3c72bb0e377b3c28b6fdd79fac49b17e2737557e0ddb7b60045c5d9c9"},{"path":"chunks/chunk-V3XONSVC.js","sha256":"357fec79a09b9c422276fa2e6c63f376656610193a578032a88d16337f3a94dd"},{"path":"chunks/chunk-V3XONSVC.js.map","sha256":"c0c6406faa13e213f264937cc15ac8d6074342db9e013b68f9865d2e63743966"},{"path":"chunks/chunk-V5GJTXYW.js","sha256":"35413d5c13b7ccc53bd1700602a7765967a5846c78e3c2aa452b6f13fe9e17d0"},{"path":"chunks/chunk-V5GJTXYW.js.map","sha256":"4a8545a11909129d9a16b00478063ca7f8cd2d81ec138cdf71b60c842bfc88b8"},{"path":"chunks/chunk-VS565KBX.js","sha256":"f66d92e0d59add33123dc44938a2cf76a749b262d5c044d8bbccce24861f9351"},{"path":"chunks/chunk-VS565KBX.js.map","sha256":"562c753aa39adbfdbeefaf390e68fdadd1fe986bcb6e82f9355315e8d6a16ec9"},{"path":"chunks/chunk-XAWE4EAK.js","sha256":"9ec1c5760661739327050e0bfc643cdfb827f8f501fe1a57c28be01371f89128"},{"path":"chunks/chunk-XAWE4EAK.js.map","sha256":"ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"},{"path":"chunks/chunk-ZNKFMIVA.js","sha256":"6985a13c046fa59ffe3bf9ca459ae7b1100f443f2a460b6d902a5b1615238e69"},{"path":"chunks/chunk-ZNKFMIVA.js.map","sha256":"40bdb901f0963d8729007d1a351de4214f0b4160bfbdec901b9277d6681f6b06"},{"path":"chunks/context-budget-recovery-L2WP5S26.js","sha256":"94308a0c40cb90380fb5f3c00c105b04df651eb699452e4a1eff4392936bad3e"},{"path":"chunks/context-budget-recovery-L2WP5S26.js.map","sha256":"bdec4d79334c795b8b4fdcf03f3820adac1f8a3a220767d3cf0de29c4d3a79e2"},{"path":"chunks/indexed-receipt-blobs-65XXSPPR.js","sha256":"561cb72184ea23fdc961b7f04919db599d32f2d4b0ff6427844bd4428c98a18a"},{"path":"chunks/indexed-receipt-blobs-65XXSPPR.js.map","sha256":"fa7a302cba5728f051e525664dd0057853c99bbc332ce036dc6848dfc50b5b87"},{"path":"chunks/mutation-admission-FNWOVJLN.js","sha256":"53fcd16b931c3cc08bacb9b702fa7ddc1d04a9608b858a133d0b3f7ff0099fa0"},{"path":"chunks/mutation-admission-FNWOVJLN.js.map","sha256":"e380f366c43aaf591b023222423a57578d104ed97f2684f4b52037aa9f548eb1"},{"path":"chunks/register-list-query-6PT5Y2EZ.js","sha256":"eded7d507a933c90ce2c48468f200e374e19bf30844f028dadc5a0a2d50e7aee"},{"path":"chunks/register-list-query-6PT5Y2EZ.js.map","sha256":"355c53581868d1c78e782398ff4f358cc2f6927f42b7e09496d0f46d865dcd46"},{"path":"chunks/register-mutation-TAIQV46L.js","sha256":"31376adcb7e19c16cb3030847055cc2a2eb05253be66cda0b1f58fe807a7449c"},{"path":"chunks/register-mutation-TAIQV46L.js.map","sha256":"59ed423b837096f11c826cc52f8a0be47bf589d58319dae27bd9838967b99103"},{"path":"chunks/register-operations-ONIRO22G.js","sha256":"089d76ba6d876f3b2dde7833762533143dd05f334c3c1d571c0aab32956ca018"},{"path":"chunks/register-operations-ONIRO22G.js.map","sha256":"ee8d60d154ef59c68f6c1a5d1fe0233c228b9131e26994da513a81bc159cde46"},{"path":"chunks/register-setup-OQMUZBJV.js","sha256":"9d8fad130fd86dd1a3fdc39c07fb2c12aa5c4220af2f7ee722d4a70da5fb7e55"},{"path":"chunks/register-setup-OQMUZBJV.js.map","sha256":"a997b9a538bebe63d1907f52be989be38caa45c8f9e85507bc248daf7774da32"},{"path":"chunks/settlement-hook-UVFYSBMU.js","sha256":"e723842b82c263ddb859b8ace473ead0ba4b0b4c75d4ee16cea63f36fa2c026d"},{"path":"chunks/settlement-hook-UVFYSBMU.js.map","sha256":"6e0577b035532efe4968d1a3bbaf491e0d790074b735ff94448143e5a700c747"},{"path":"chunks/stage-FCPVFO3B.js","sha256":"b2e3e48d3da7b8de6d1b34573ded7763232998734f0d0fe7dccbd44606b69d73"},{"path":"chunks/stage-FCPVFO3B.js.map","sha256":"3d55c5a6c1ecd87184e08a2a05b3a046a5fb0b116c28488f5fb43c77965d04e2"},{"path":"focused-chunks/chunk-32ZKLRWM.js","sha256":"ea85b385d68244d6bbd72cd9892c001dcddf845da937dfe5e3c45018fd977f81"},{"path":"focused-chunks/chunk-32ZKLRWM.js.map","sha256":"97f293f64c221c58374cbb51af6365ea81b8c66c5e32cdf6d64a7609e7341270"},{"path":"focused-chunks/chunk-3LWH2RJC.js","sha256":"732d4db71635fe03c0e3d00db30443ae2a57911989bfeffae2b1e335e731d394"},{"path":"focused-chunks/chunk-3LWH2RJC.js.map","sha256":"df78c7f55be17a01a0a608e364218427a1ca1764034ed4ea439c8a9f69aa1838"},{"path":"focused-chunks/chunk-44353U27.js","sha256":"2d91d3298f45c8510544ccbf3fccd706ba5691ba59bc5994758316c508a17fdf"},{"path":"focused-chunks/chunk-44353U27.js.map","sha256":"a01c35d2ca29041f79779dce1683ee95e0a61f40892da0b1187a6b9064cb99fd"},{"path":"focused-chunks/chunk-4HJVAUFX.js","sha256":"aba9b6ba79813b4b74249973ecbda48cfc677ae03fb71511978885920ae7c831"},{"path":"focused-chunks/chunk-4HJVAUFX.js.map","sha256":"237e554f344bb13eec7fe223fbda45da2a5e2ebfe08a138830df554217244be5"},{"path":"focused-chunks/chunk-5IMM7GOF.js","sha256":"940d5b7a7e92dc2cea76e0b23f6e30529165cefaac547c15934b67a7e65e891e"},{"path":"focused-chunks/chunk-5IMM7GOF.js.map","sha256":"a84f647c998ffd901587ac3c9996a77a1ccb621e17f2206e75d13a922c7381f6"},{"path":"focused-chunks/chunk-6QSZHRM7.js","sha256":"184f5791b4d9bf6bed330df2e6eb94a0f085318f38abb5aa3da949fecfbdb746"},{"path":"focused-chunks/chunk-6QSZHRM7.js.map","sha256":"c43e692b9b9c9b53dcfe6e499726fbbe3b0bcf7e6f2a7f1ae80a23e2f4ca28eb"},{"path":"focused-chunks/chunk-7UD7XTOE.js","sha256":"aa50a7d8eafa75b87150a5839efe5a2e94fe8a4a377ef50d96c70a0222f72ca6"},{"path":"focused-chunks/chunk-7UD7XTOE.js.map","sha256":"235de65ddaeda4b1640f50824fae46c8580ca93e08cbe325bd038c21c70c83c8"},{"path":"focused-chunks/chunk-AK2CI2GI.js","sha256":"8a40e489e22d02a4d6c0e02a3ff847d93b633d662cd952e4023079ffb4a3fdc5"},{"path":"focused-chunks/chunk-AK2CI2GI.js.map","sha256":"70aa5aa38f1d2f486c5e165db51939b7777df85572706d3bb4165e55f8614488"},{"path":"focused-chunks/chunk-CUWNNU4N.js","sha256":"3b78df7e963b4a9b646ef41cdaf9baa8233c9433270b11f589e338286b475d32"},{"path":"focused-chunks/chunk-CUWNNU4N.js.map","sha256":"80f6c87b0f5dc75681ed748b40ba004822e36fc904f28ba9d01bfa21c5880772"},{"path":"focused-chunks/chunk-E2S42XCT.js","sha256":"1659230183701bda83e6efc6d5bb913ced1969babcca55893bfc6a731e185d36"},{"path":"focused-chunks/chunk-E2S42XCT.js.map","sha256":"adfb1a3c0adc7166d7804ddba12d65b2053ff6661b0fa350a42b50afd01896fe"},{"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-GRSQGMRR.js","sha256":"1c03f7395c7a9ac58aab4373f6a3177d07cfd250ac842d86fd1c729d7299f9e7"},{"path":"focused-chunks/chunk-GRSQGMRR.js.map","sha256":"3f9f09eb0e70e895888d21b0741c32a672152145c0eb9c290832071690d8e1ab"},{"path":"focused-chunks/chunk-HNCMYF2W.js","sha256":"a9009c3bc3a8e59f669e584ba0bb9de2ccc1c4a7ca498cab8fad5140bbce0d56"},{"path":"focused-chunks/chunk-HNCMYF2W.js.map","sha256":"989983130a504bcf5fa92afa91c206969a2e015d35980123285d917b25553b41"},{"path":"focused-chunks/chunk-IAGFXKMZ.js","sha256":"dbe3f9f565def5ebe2fa324a61a7adcdc3e8b0f5ed103c875d1ed20c2a77460d"},{"path":"focused-chunks/chunk-IAGFXKMZ.js.map","sha256":"496f84fbecf5ec6608965ea7dfac8f158a970252457b70d5b29468c8e7dd22fb"},{"path":"focused-chunks/chunk-JI3RXXRN.js","sha256":"17b8b21c55dc4d3f50cb18cc13a8f36e1659a06fdb1b174615dc6e1e248c8d44"},{"path":"focused-chunks/chunk-JI3RXXRN.js.map","sha256":"601b056996fa970ee501c3ef789392967b1b202331797f30f2cc7455be9fbd64"},{"path":"focused-chunks/chunk-JMZPZQHR.js","sha256":"984e8a22719adec95d8e9f118086f481daf6071604a562ea06218fc69cce2295"},{"path":"focused-chunks/chunk-JMZPZQHR.js.map","sha256":"fb5bc8ed645e1319e3b31e1584ac49d25f307e280b4488d95a4ba249bed9fcec"},{"path":"focused-chunks/chunk-KVYUQS6Y.js","sha256":"478efae4ea3532314c6208149d54ea2a310247d1274df959e0501451b6d5ca77"},{"path":"focused-chunks/chunk-KVYUQS6Y.js.map","sha256":"28917f3c4d14ec223f7c49f5abb15afcf8cd5f8339ef2fbb163231386522d0e5"},{"path":"focused-chunks/chunk-O3M6YWVL.js","sha256":"9ee8db62923e1eb065f6521051241c49ec8680593f2431df8f02d79984ed91bc"},{"path":"focused-chunks/chunk-O3M6YWVL.js.map","sha256":"3bee2f18be4a9205d5af12dc37e0841614df09788fb846d15d5e778ea69f6216"},{"path":"focused-chunks/chunk-P5D7MHDS.js","sha256":"0985b3f8a42cb1f7842b3b7334ebfdc4e5cfa4420d02ef9e624398770d19476f"},{"path":"focused-chunks/chunk-P5D7MHDS.js.map","sha256":"f5b85aaf61a19d8c4df060074837145fde1b311b443326bbaab13fbaaf9f2a3d"},{"path":"focused-chunks/chunk-PDOWLRHC.js","sha256":"d41891975c03428a903a4e57cf5204f6e9ea5014fd579ed9baa4af8b5973a97d"},{"path":"focused-chunks/chunk-PDOWLRHC.js.map","sha256":"55cc43f1df0c83cb8ead390bd23156dd886a5df20019102f1b097a510ac89cef"},{"path":"focused-chunks/chunk-SVOOGGAK.js","sha256":"cf84553a8001feee7147d6941274dc00cf8644ded0da1e4b611b542c02f6dcb5"},{"path":"focused-chunks/chunk-SVOOGGAK.js.map","sha256":"c6941ba9e7060fcb63add9bb1b246052f16f530b85845320f23076a4db57f341"},{"path":"focused-chunks/chunk-T27TLSEU.js","sha256":"f5033afb8586dc088f29ba54a9320aa2928aff0e4f4c23ee98769ac0a796e691"},{"path":"focused-chunks/chunk-T27TLSEU.js.map","sha256":"83f9a851e4e0f8881a4723bb70a5b52dae3fdc169a0125796878f43c0d758b71"},{"path":"focused-chunks/chunk-VD64TPXI.js","sha256":"70c8fcdd00b911c097d778ea29bf5a4d5261b956201358055eb6c4411d72ae11"},{"path":"focused-chunks/chunk-VD64TPXI.js.map","sha256":"0526cffbd8e6ff2a57811e2ffba2060c83eb84e6ad7adde876c13d93f422592d"},{"path":"focused-chunks/chunk-VE6MTRH5.js","sha256":"3209610720951d27bba92cfcd421456ba828feacfda844e76e43eedee8e3e55c"},{"path":"focused-chunks/chunk-VE6MTRH5.js.map","sha256":"2395ccf7d8cbbf8aca96ce53f8a546f38c994b60e91b7a18ef08a48497ba6c2d"},{"path":"focused-chunks/chunk-VVRXF4JO.js","sha256":"36c83f33f8e49f9b51f4beaea1e2861c7303e6dab09fac5beee2b4e30960fed8"},{"path":"focused-chunks/chunk-VVRXF4JO.js.map","sha256":"f570cccc63e03deaced83773e055aff40fd8b72aa9b561e46a8ac21eef65788a"},{"path":"focused-chunks/chunk-XE7P7N5X.js","sha256":"10690f630f5b7947ed4b5f60b03a74715f0ab4b9075ec5045c773e6de1870822"},{"path":"focused-chunks/chunk-XE7P7N5X.js.map","sha256":"5d6e9db57fa7e235d1339b25a16615376a7ed993800c7cd1127737d5cb27ac2b"},{"path":"focused-chunks/chunk-YIWDX6KO.js","sha256":"c5123ef9e6c89584c9fb415e3d20c840393f745ab0d98b4c360241f3251f606e"},{"path":"focused-chunks/chunk-YIWDX6KO.js.map","sha256":"e9dd3769e4f0dcc45eda23bacfea603ca5e50e8bf7408cc31a812d1c334d92b3"},{"path":"focused-chunks/chunk-YLVHHWHN.js","sha256":"aed33cc3c5024b75a909cf5c01ac1d0161d9f56cc87c9c7638662f82a4d94626"},{"path":"focused-chunks/chunk-YLVHHWHN.js.map","sha256":"2536922ae21f29b6d28033a35d9aba3d921ee26867d733ba0a76857c97366cd9"},{"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-CRP6HAZY.js","sha256":"8e4276bdc1e13995a46a1005930c336d6af721690587773a5f90dfc95dcb96c8"},{"path":"focused-chunks/indexed-receipt-blobs-CRP6HAZY.js.map","sha256":"57b273a9f6437bafaada297723cb222a607a701eb49aac2922e6b723f10fe0b4"},{"path":"focused-chunks/mutation-admission-KM57KDDF.js","sha256":"8aa6111e7f37308a1ec92d9477d7ab5398494a287c7b0d25cc9ffc8602f186ef"},{"path":"focused-chunks/mutation-admission-KM57KDDF.js.map","sha256":"3d37817bd6aa0a3c99f04b5c040d4f91ee0efc042c2fc5dad392d46db5b8fc5a"},{"path":"focused-chunks/settlement-hook-MNCHFCAX.js","sha256":"e99ca3cb1e37ff3cec263960f0a19465e8802a92d3d8f2fea310a6c1506f2120"},{"path":"focused-chunks/settlement-hook-MNCHFCAX.js.map","sha256":"d49b55f7df2dff3c6287f163f6a2bb801dca8caf522412c0b328eb9f74be5c7f"},{"path":"focused-chunks/stage-UJYGWNZ7.js","sha256":"52e2f111ae7ae4764d7fe862aff140ec6f1d221ec1cb00ea3d0a2dc187b1982d"},{"path":"focused-chunks/stage-UJYGWNZ7.js.map","sha256":"74fef5b0b3d933af5844f7986449410daf5d4d967be9f13be0ec44c6ebea9e6d"},{"path":"main.js","sha256":"310305082899d72216be0e451f1d8b0f8f680f5cea41668cb0451d659b9ae6f2"},{"path":"main.js.map","sha256":"acb76846a9d9dec7c1504b9f990c7b478644379058d3f364117cb2a63ef2de7b"},{"path":"sdk-authoring.js","sha256":"b2f35d2f1150d49aea78a6807cfdfd470e15ae8dced397d85cfe7e1425dca322"},{"path":"sdk-authoring.js.map","sha256":"d2340cb73fd756eb62d1fbb84e9044ec9d8e138deab90ec6c3dc5a09a1b8e1ef"},{"path":"sdk-contracts.js","sha256":"4b1ced64a3cc7babe6c5302ad2e2c6f7e4b6f2346bd5435c2c6e1eabfbbaebfb"},{"path":"sdk-contracts.js.map","sha256":"aa6105511a5f42a5701b01f087b3b362b76b0e20a437da77b6b109909673eda6"},{"path":"sdk-core.js","sha256":"05821023b855fbe8899743282853a9e9a92b3849ca4ffb9300ac92aea11d46d3"},{"path":"sdk-core.js.map","sha256":"fb9c57c819914b0536632ada497e449b3a586237aa562958323183c51599b5f6"},{"path":"sdk-governance.js","sha256":"81500056837a322659a1d162b8a7727002fe34527173b17d5c503ea942246ed6"},{"path":"sdk-governance.js.map","sha256":"13ae39ee088e18fc9ee1ac0932dbc5a46ccc66ad60d6ea53601c03fa289ac3c7"},{"path":"sdk-graph.js","sha256":"ec63f24f22b5f75ab07a38dd2d202871ad3f3819c4aee6a7726965ab0dcfed9b"},{"path":"sdk-graph.js.map","sha256":"efa166700ff746731db3675b94e7cba11af2828f29b74e91c00ca4214f4220d0"},{"path":"sdk-merge.js","sha256":"799c84f536d86c8ef8ed0ec4a29d9c4bb2de5d9a6b1ce65f8ecee138a59bea7c"},{"path":"sdk-merge.js.map","sha256":"757a2c5ccf14221a3a69850a558993579fc9e7489404bcf19707c37e67e6981e"},{"path":"sdk-query.js","sha256":"6e5d42939011968551840666f43a1b42d433ca182fb6b8d0a7071f7d4615fdc9"},{"path":"sdk-query.js.map","sha256":"80a07029b3537ab719f05f2fbff74106e13fe1a64d9594590514b8f77f4556e8"},{"path":"sdk-runtime.js","sha256":"38d2ebe09301845abe0576fb6aa7bf9b35ae52a2b70821eed67bcdc8942b2e86"},{"path":"sdk-runtime.js.map","sha256":"ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"},{"path":"sdk-testing.js","sha256":"86b0663c338ce5b82754d5faa2f011a7c343d240db54bfeae05b55e46e636d77"},{"path":"sdk-testing.js.map","sha256":"ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"},{"path":"sdk.js","sha256":"c2027b0e13059746b31d0a9f3f963c32f10c4c3e0ff019b501babfe66ea1d59e"},{"path":"sdk.js.map","sha256":"3d8a9acb8710d0918c41c73cdc4ea8951b2988373738a5b94db41dbce9386b70"}]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{A as o,C as r}from"./chunk-GWIGZDRS.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new n.Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="be9abae1-85ae-5a68-96bc-c738218ace5e")}catch{}})();function u(n){return n instanceof r||n instanceof Error?n.message:"Unknown failure"}function d(n){if(typeof n!="object"||n===null||!("exitCode"in n))return;let e=n.exitCode;return typeof e=="number"&&Number.isFinite(e)?e:void 0}function f(n){let e=Math.trunc(n);return e>o.SUCCESS?e:o.GENERIC_FAILURE}function s(n){return typeof n=="object"&&n!==null&&"code"in n&&typeof n.code=="string"&&n.code.startsWith("commander.")}function l(n,e){if(n instanceof Error)return n;let t=new Error(e),i=d(n);return i!==void 0&&(t.exitCode=f(i)),t}export{u as a,d as b,f as c,s as d,l as e};
|
|
2
|
+
//# sourceMappingURL=chunk-2B5HAZFK.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},d=new e.Error().stack;d&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[d]="e524f0ad-faad-5d89-b8f5-1283979919ad")}catch{}})();
|
|
2
|
+
//# sourceMappingURL=chunk-4D25HF3V.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{A as p,C as f,G as g}from"./chunk-GWIGZDRS.js";import{readFile as R,writeFile as I}from"node:fs/promises";import o from"node:path";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="1de99e25-e132-5071-833e-37361b4cc7e6")}catch{}})();var m="# pm-cli:runtime-cache:start",c="# pm-cli:runtime-cache:end",E=".agents/pm",_=["runtime/","search/","locks/","transactions/","checkpoints/"],T=["search/eval-queries.json"];async function h(t){try{return await t()}catch(e){throw e instanceof Error&&"code"in e&&typeof e.code=="string"&&["EACCES","EPERM","EROFS"].includes(e.code)?new f("The workspace .gitignore is not writable.",p.GENERIC_FAILURE,{code:"init_gitignore_unwritable",reason:e.code.toLowerCase(),required:"Grant the current user read and write access to the workspace .gitignore before initialization.",why:"pm init must publish its managed runtime-cache ignore fence without replacing unrelated entries.",nextSteps:["Grant read and write access to the workspace .gitignore and rerun pm init.","If the workspace is intentionally read-only, initialize pm in a writable workspace or clone."]}):e}}function w(t){return t.replaceAll("\\","/").replace(/^\.\/+/,"").replace(/\/+$/,"")}function G(t){let e=t.replaceAll("\\","/");return o.isAbsolute(t)||e===".."||e.startsWith("../")}function y(t=E){let e=w(t);return[m,..._.map(r=>r==="search/"?`${e}/${r}*`:`${e}/${r}`),...T.map(r=>`!${e}/${r}`),c].join(`
|
|
2
2
|
`)}async function v(t,e={}){let r=o.join(t,".gitignore"),s=E;if(e.pmRoot!==void 0){let i=w(o.relative(o.resolve(t),o.resolve(e.pmRoot)));if(G(i))return{path:r,changed:!1};i.length>0&&(s=i)}let n="";try{n=await h(()=>R(r,"utf8"))}catch(i){if(!(i instanceof Error&&"code"in i&&g(i)))throw i}let a=n.indexOf(m),l=n.indexOf(c),d=(a>=0&&l>=a?`${n.slice(0,a)}${n.slice(l+c.length)}`:n).trimEnd(),u=`${d.length>0?`${d}
|
|
3
3
|
|
|
4
4
|
`:""}${y(s)}
|
|
5
5
|
`;return u===n?{path:r,changed:!1}:(await h(()=>I(r,u,"utf8")),{path:r,changed:!0})}export{m as a,c as b,_ as c,G as d,y as e,v as f};
|
|
6
|
-
//# sourceMappingURL=chunk-
|
|
6
|
+
//# sourceMappingURL=chunk-4OYU5OXQ.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Sb as y}from"./chunk-4CXQSRSP.js";import{Bd as V,Db as v,Le as $,Me as R,Re as B,Ug as G,Vg as T,f as N,g as p,i as E,j as L,k as w,td as I,tf as z,ud as k,vd as D,wd as O,xb as M,xd as _,yb as F,yd as C}from"./chunk-QG4LMU7A.js";import{B as g,D as b}from"./chunk-QKAAZWGC.js";import{Command as se}from"commander";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="df7f766c-1121-5712-b562-423d2cda95ce")}catch{}})();function Ke(e){return new se().name("pm").description("Universal, flexible, extensible, agent-optimized project management CLI for any project or programming language.").version(e).showHelpAfterError(!1).allowExcessArguments(!1).allowUnknownOption(!1).configureOutput({writeOut:t=>{z(t)},writeErr:()=>{}}).option("--json","Output JSON instead of TOON; mutations emit a flat receipt with top-level id/status/changed_field_count while reads use documented entity or collection envelopes").option("--lean","Omit null and empty containers from JSON output").option("--token-accounting","Attach a bounded per-section token-cost receipt to command output").option("--output-include <fields>","Retain comma-separated fields or sections in read output").option("--output-limit <count>","Bound rows in read output").option("--output-budget <tokens|unbounded>","Bound estimated tokens in read output or explicitly disable the default ceiling").option("--output-format <toon|json>","Select the result encoding for reads and mutations").option("--output-session <state>","Carry a JSON session budget and served-item ledger across read calls").option("--output-cursor <cursor>","Resume continuation_kind=output_cursor").option("--output-row-contract","Include row selectors, encoding metadata, and read-output receipts").option("--quiet","Suppress stdout output").option("--no-changed-fields","Omit the changed_fields array from mutation output (keeps changed_field_count)").option("--full-changed-fields","Restore the legacy full mutation envelope and changed_fields array").option("--id-only","Print only id and status for single-item mutation output").option("--pm-path <dir>","Explicit tracker storage path for this command (preferred over --path)").option("--path <dir>","Backward-compatible alias for --pm-path; this is the tracker storage path, not a workspace cwd").option("--no-extensions","Disable extension loading").option("--no-pager","Disable pager integration for help and long output").option("--explain","Render extended rationale and examples in help output").option("--all","Reveal every public command and compatibility alias").option("--profile","Print deterministic timing diagnostics").option("--author <id>","Override mutation author for this invocation").exitOverride()}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8efedca0-725e-520f-ad06-825a0cccddaa")}catch{}})();var U=new Set(["append","claim","close","close-task","comments","copy","delete","deps","docs","files","focus","get","history","history-compact","history-redact","history-repair","learnings","notes","pause-task","release","restore","start-task","test","update"]),W=new Map([["files","discover"],["item","complete"]]),re=new Map([["append",1],["close",1],["close-task",1],["comments",1],["item complete",1],["learnings",1],["notes",1],["restore",1]]);function j(e){let t=p(e?.trim().toLowerCase()??"");return U.has(t)||W.has(t)}function ae(e,t,n){let o=U.has(n)?t+1:void 0,i=_(e.slice(t+1));if(i===void 0)return o;let r=t+1+i,a=`${n} ${e[r]}`,s=p(a);return s===a?n==="item"&&e[r]==="complete"?r+1:o:j(s)?P(e,r,s):void 0}function P(e,t,n){if(["history","context","ctx","update","close","item"].includes(n))return ae(e,t,n);let o=W.get(n);if(o===void 0)return t+1;let i=e[t+1]?.toLowerCase()===o;return t+(i?2:1)}function le(e){let t=new Map;for(let n of y(e))for(let o of[n.flag,n.short,...n.aliases??[]])o&&t.set(o,n);return t}function ce(e){let t=[];for(let n=0;n<e.length;n+=1){let o=e[n];if(o==="--")break;o==="--id"?(t.push({index:n,consumed:2,value:e[n+1]}),n+=1):o.startsWith("--id=")&&t.push({index:n,consumed:1,value:o.slice(5)})}return t}function ue(e,t,n){if(e.indexOf("=")>=0||t===void 0||t.startsWith("-"))return!1;let o=n.get(e);return o!==void 0&&o.value_type!=="boolean"}function de(e,t,n,o,i){let r=0;for(let a=t;a<e.length;a+=1){let s=e[a];if(s==="--")break;if(s==="--id"){a+=1;continue}if(!s.startsWith("--id=")){if(!s.startsWith("-")){if(a<o)return!0;r+=1;continue}ue(s,e[a+1],i)&&(a+=1)}}return r>(re.get(p(n))??0)}function q(e){let t=_(e),n=t===void 0?void 0:e[t]?.toLowerCase();if(n!=="context"&&n!=="ctx"&&!j(n))return{argv:[...e],changed:!1,conflict:!1};let o=P(e,t,n);if(o===void 0)return{argv:[...e],changed:!1,conflict:!1};let i=o>t+1?`${p(e.slice(t,o-1).join(" "))} ${e[o-1]}`:n,r=le(i),a=ce(e),s=a[0];if(!s||!s.value?.trim())return{argv:[...e],changed:!1,conflict:!1};if(a.length>1||de(e,o,i,s.index,r))return{argv:[...e],changed:!1,conflict:!0,itemId:s.value};let l=[...e.slice(0,s.index),...e.slice(s.index+s.consumed)],c=_(l),u=P(l,c,n);return l.splice(u,0,s.value),{argv:l,changed:!0,conflict:!1,itemId:s.value}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f05cec18-5e48-5151-8ada-577c9df5885d")}catch{}})();var fe=new Set(["--output-include","--output-limit","--output-budget","--output-format","--output-session","--output-cursor"]),pe=new Set(["toon","json"]);function me(e,t,n){let o=e[t];if(k.has(o))return n.booleanFlags.add(o),1;let i=o.indexOf("="),r=i>0?o.slice(0,i):o;if(!I.has(r))return 1;let a=i>0?o.slice(i+1):void 0,s=a===void 0&&O(r,e[t+1]),l=a??(s?e[t+1]:void 0);return r==="--author"?n.author=l??"":typeof l=="string"&&l.length>0&&(fe.has(r)?n.outputValues:n.pathValues).set(r,l),s?2:1}function he(e){let t={booleanFlags:new Set,outputValues:new Map,pathValues:new Map},n=0;for(;n<e.length&&e[n]!=="--";)n+=me(e,n,t);return{path:t.pathValues.get("--pm-path")??t.pathValues.get("--path"),noExtensions:t.booleanFlags.has("--no-extensions")||["history attest","history-attest"].includes(J(e)??""),noPager:t.booleanFlags.has("--no-pager"),json:t.booleanFlags.has("--json")?t.outputValues.get("--output-format")!=="toon":t.outputValues.get("--output-format")==="json",quiet:t.booleanFlags.has("--quiet"),lean:t.booleanFlags.has("--lean"),tokenAccounting:t.booleanFlags.has("--token-accounting"),...t.booleanFlags.has("--output-row-contract")?{outputRowContract:!0}:{},...t.outputValues.get("--output-include")===void 0?{}:{outputInclude:t.outputValues.get("--output-include")},...t.outputValues.get("--output-limit")===void 0?{}:{outputLimit:t.outputValues.get("--output-limit")},...t.outputValues.get("--output-budget")===void 0?{}:{outputBudget:t.outputValues.get("--output-budget")},...pe.has(t.outputValues.get("--output-format"))?{outputFormat:t.outputValues.get("--output-format")}:{},...t.outputValues.get("--output-session")===void 0?{}:{outputSession:t.outputValues.get("--output-session")},...t.outputValues.get("--output-cursor")===void 0?{}:{outputCursor:t.outputValues.get("--output-cursor")},...t.author===""?{authorMissingValue:!0}:t.author!==void 0?{author:t.author}:{}}}function X(e){let t=[],n=0;for(;n<e.length;){let o=e[n];if(o==="--")break;if(k.has(o)||o==="--profile"||o==="--id-only"||o==="--full-changed-fields"||o==="--explain"){n+=1;continue}if(I.has(o)){n+=O(o,e[n+1])?2:1;continue}if(D(o)){n+=1;continue}t.push(o),n+=1}return t}function ge(e){let t=X(e);if(t[0]?.trim().toLowerCase()==="help"){let o=[];for(let i=1;i<t.length;i+=1){let r=t[i];if(r.startsWith("-"))break;o.push(r.trim().toLowerCase())}return{requested:!0,commandPathTokens:o}}if(t.findIndex(o=>o==="--help"||o==="-h")<0)return{requested:!1,commandPathTokens:[]};let n=[];for(let o of t){if(o.startsWith("-"))break;n.push(o.trim().toLowerCase())}return{requested:!0,commandPathTokens:n}}function S(e){return _(e)}function be(e){return C(e)}function ye(e,t){return t.noPager?!0:process.stdout.isTTY===!0?!1:ge(e).requested}function lt(e){let t=["PAGER","MANPAGER","GIT_PAGER","LESS"],n=t.map(r=>process.env[r]),o=()=>{for(let[r,a]of t.entries()){let s=n[r];s===void 0?delete process.env[a]:process.env[a]=s}},i=he(e);return ye(e,i)&&(process.env.PAGER="cat",process.env.MANPAGER="cat",process.env.GIT_PAGER="cat",(typeof process.env.LESS!="string"||process.env.LESS.trim().length===0)&&(process.env.LESS="FRX")),o}var _e=new Set(["install","uninstall","explore","manage","doctor","adopt","adopt-all","activate","deactivate"]);function Ie(e){let t=S(e);if(t===void 0||e[t]!=="extension")return[...e];let n=e[t+1];if(!n||n.startsWith("-"))return[...e];if(!_e.has(n))return[...e];if(e.includes("--help")||e.includes("-h"))return[...e];let o=`--${n}`;return e.includes(o)?[...e]:[...e.slice(0,t+1),o,...e.slice(t+2)]}var we=new Set(["pm","pm-cli"]);function ve(e,t){let n=S(e);if(n===void 0)return e;let o=e[n];return we.has(o.trim().toLowerCase())?(t.push({from:o,to:[],reason:"executable_alias",confidence:"high"}),[...e.slice(0,n),...e.slice(n+1)]):e}function ke(e,t){let n=S(e);if(n!==void 0&&e[n]==="help"){let s=S(e.slice(n+1));n=s===void 0?void 0:n+1+s}if(n===void 0)return e;let o=e[n],i=L[o.trim().toLowerCase()];if(!i)return e;let r=i.split(" "),a=[...e.slice(0,n),...r,...e.slice(n+1)];return t.push({from:o,to:r,reason:"command_alias",confidence:"high"}),a}function x(e){return e.replace(/^--?/,"").replace(/_/g,"-").replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function K(e){return x(e).replace(/-/g,"")}function Y(e,t,n){let o=e.get(t);if(o===void 0){e.set(t,n);return}o!==n&&e.set(t,null)}function Ce(e){let t=[],n=o=>{typeof o=="string"&&o.startsWith("--")&&t.push(o)};n(e.flag);for(let o of e.aliases??[])n(o);return t}function Te(e,t){let n=t??y(e),o=new Map,i=new Map,r=new Map,a=new Set;for(let s of n){let l=Ce(s);if(l.length===0)continue;let c=`--${x(l[0])}`;for(let f of l)Y(o,x(f),c),Y(i,K(f),c);let u=K(c);r.has(c)||r.set(c,u),s.list===!0&&a.add(c)}return{canonicalByNormalized:o,canonicalByCompact:i,canonicalComparables:[...r.entries()].map(([s,l])=>({canonicalFlag:s,comparable:l})),listCanonicalFlags:a}}function Z(e,t){let n=x(e),o=t.canonicalByNormalized.get(n);if(typeof o=="string")return{flag:o,reason:"flag_alias",confidence:"high"};let i=n.replace(/-/g,""),r=t.canonicalByCompact.get(i);if(typeof r=="string")return{flag:r,reason:"flag_alias",confidence:"high"};let a=i.length>=8?2:1,s=Number.POSITIVE_INFINITY,l,c=!1;for(let u of t.canonicalComparables){let f=v(i,u.comparable,a);if(f!==null){if(f<s){s=f,l=u.canonicalFlag,c=!1;continue}f===s&&l!==u.canonicalFlag&&(c=!0)}}return!l||c||!Number.isFinite(s)||s<=0?null:{flag:l,reason:"flag_typo",confidence:s>=2?"medium":"high"}}function ct(e){let t=[`${e}s`];return e.endsWith("y")&&e.length>1&&t.push(`${e.slice(0,-1)}ies`),t}function Se(e,t=!1){if(t||e.includes("://"))return null;let n=e.match(/^([A-Za-z][A-Za-z0-9_-]{1,63})([:=])(.*)$/);if(!n)return null;let o=n[1],i=n[3];return i.length===0?null:{key:o,value:i}}function xe(e,t,n=!1){if(n||!e.startsWith("--"))return{tokens:[e]};let o=e.indexOf("="),i=o>=0?e.slice(0,o):e,r=o>=0?e.slice(o+1):void 0,a=Z(i,t);if(!a)return{tokens:[e]};let s=r===void 0?a.flag:`${a.flag}=${r}`;return s===e?{tokens:[e]}:{tokens:[s],event:{from:e,to:[s],reason:a.reason,confidence:a.confidence}}}function Ae(e){let t=new Set,n=!1;for(let o=0;o<e.length;o+=1){if(n){t.add(o),n=!1;continue}let i=e[o];n=i==="--path"||i==="--pm-path"}return t}function Ee(e){if(!e.startsWith("--"))return null;let t=e.indexOf("=");return t<0?{flag:e}:{flag:e.slice(0,t),inlineValue:e.slice(t+1)}}function Oe(e,t,n){n.push(e[t]);let o=e[t+1];return typeof o=="string"&&o!=="--"?(n.push(o),t+2):t+1}function Pe(e,t,n,o){if(n.inlineValue!==void 0)return{originalTokens:[e[t]],value:n.inlineValue,consumed:1};let i=[],r=t+1;for(;r<e.length&&e[r]!=="--"&&!e[r].startsWith("-")&&(i.length===0||o.has(n.flag));)i.push(e[r]),r+=1;let a=i.length===0?1:1+i.length;return{originalTokens:e.slice(t,t+a),value:i.length===0?void 0:i.join(","),consumed:a}}function Ne(e,t,n,o){let i=e.get(n);if(i){i.values.push(o.value),i.occurrences+=1;return}e.set(n,{outputIndex:t.length,originalTokens:o.originalTokens,values:[o.value],occurrences:1}),t.push(null)}function Le(e,t){let n=[],o=[];for(let[i,r]of e){if(!(r.occurrences>=2||t.has(i)&&r.originalTokens.length>2)){o.push({outputIndex:r.outputIndex,tokens:r.originalTokens});continue}let a=`${i}=${r.values.join(",")}`;o.push({outputIndex:r.outputIndex,tokens:[a]}),n.push({from:`${i} (x${r.occurrences})`,to:[a],reason:"list_merge",confidence:"high"})}return{events:n,splices:o}}function Me(e,t){t.sort((n,o)=>o.outputIndex-n.outputIndex);for(let n of t)e.splice(n.outputIndex,1,...n.tokens)}function Fe(e,t,n=new Set,o=new Set){if(t.size===0)return{argv:[...e],events:[]};let i=[],r=new Map,a=0;for(;a<e.length;){let c=e[a];if(c==="--"){i.push(...e.slice(a));break}if(n.has(c)){a=Oe(e,a,i);continue}let u=Ee(c);if(!u||!t.has(u.flag)){i.push(c),a+=1;continue}let f=Pe(e,a,u,o);if(f.value===void 0){i.push(c),a+=f.consumed;continue}Ne(r,i,u.flag,{originalTokens:f.originalTokens,value:f.value}),a+=f.consumed}let{events:s,splices:l}=Le(r,o);return Me(i,l),{argv:i,events:s}}var H=new Map([["--add",new Set(["command","cmd","path"])],["--remove",new Set(["command","path"])]]);function De(e,t){if(e!=="test"||t.length<2)return!1;let n=t[t.length-1],o=t[t.length-2],i=H.get(o);return i!==void 0&&i.has(n)}function Ve(e,t,n){if(t!=="test")return e;let o=[],i=0;for(;i<e.length;){let r=e[i];if(r==="--")return o.push(...e.slice(i)),o;let a=H.get(r),s=a?e[i+1]:void 0;if(!a||typeof s!="string"||!a.has(s)){o.push(r),i+=1;continue}let l=i+2;for(;l<e.length&&!e[l].startsWith("-");)l+=1;if(l-(i+2)!==1){o.push(r),i+=1;continue}let c=e[i+2],u=`${s}=${c}`;o.push(r,u),n.push({from:`${r} ${s} ${c}`,to:[r,u],reason:"bare_key_value",confidence:"high"}),i+=3}return o}function $e(e,t,n,o){let i=[],r=Ae(e);for(let a=0;a<e.length;a+=1){let s=e[a];if(s==="--"){i.push(...e.slice(a));break}let l=r.has(a),c=i[i.length-1];if(s.startsWith("--")){let h=xe(s,t,l);i.push(...h.tokens),h.event&&o.push(h.event);continue}let u=Se(s,l);if(!u||typeof c=="string"&&c.startsWith("-")&&!c.includes("=")||["search","comments","notes","learnings"].includes(n)||De(n,i)){i.push(s);continue}let f=Z(u.key,t);if(!f){i.push(s);continue}let m=u.value.startsWith("-")?[`${f.flag}=${u.value}`]:[f.flag,u.value];i.push(...m),o.push({from:s,to:m,reason:"bare_key_value",confidence:f.confidence})}return i}function Re(e){for(let t=0;t<e.length;t+=1){let n=e[t];if(n==="--")break;if(n==="--verify"){let o=e[t+1];if(o===void 0||o==="--")throw new b("history attest --verify requires a bundle file.",g.USAGE);e.splice(t,2,`--verify=${o}`)}else(I.has(n)||n==="--output"||n==="--hash-algorithm")&&(t+=1)}}function Be(e,t){if(!e.some(o=>o==="--help"||o==="-h"))return;let n=new Set(y(t).flatMap(o=>[o.flag,...o.aliases??[],...o.short===void 0?[]:[o.short]]));for(let o=0;o<e.length;o+=1){let i=e[o];if(i==="--")break;i!=="--help"&&i!=="-h"||n.has(e[o-1])&&!k.has(e[o-1])&&(e[o-1]=i)}}function ut(e){let t=[],n=ve(e,t),o=Ie(n);(o.length!==n.length||o.some((h,ie)=>h!==n[ie]))&&t.push({from:n.join(" "),to:[...o],reason:"legacy_extension_action",confidence:"high"});let i=ke(o,t),r=q(i);if(r.conflict)throw new b("Provide the item id either positionally or with --id, not both.",g.USAGE);r.changed&&t.push({from:`--id ${r.itemId}`,to:[r.itemId],reason:"item_id_alias",confidence:"high"});let a=be(r.argv),s=J(r.argv),l=p(s??a??""),c=Te(s??a),u=$e(r.argv,c,l,t),f=Ve(u,l,t),m=Fe(f,c.listCanonicalFlags,I,a==="create"?new Set(["--tags"]):new Set);for(let h of m.events)t.push(h);return Be(m.argv,s??a),s==="history attest"&&Re(m.argv),{argv:m.argv,commandName:a,trace:t}}function J(e){let t=X(e),n=t[0]?.trim().toLowerCase(),o=t[1]?.trim().toLowerCase(),i=N(t);return i?i.canonical:(n==="extension"||n==="package"||n==="packages")&&typeof o=="string"&&o.length>0&&!o.startsWith("-")?`${n} ${o}`:n}function dt(e){for(let t=0;t<e.length;t+=1){let n=e[t];if(n==="--")break;if(n==="--type"){let o=e[t+1];if(typeof o=="string"&&o.trim().length>0)return o.trim();continue}if(n.startsWith("--type=")){let o=n.slice(7).trim();if(o.length>0)return o}}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fb625cd9-f8a8-56cf-88ab-abef64051497")}catch{}})();function gt(e){if(e===void 0)return()=>{};let t=e.trim();if(t.length===0)throw new b("--author requires a non-empty value.",g.USAGE,{code:"missing_required_argument",nextSteps:["Pass an explicit author identifier with --author <id>."]});let n=G();T(t);let o=!1;return()=>{o||(o=!0,n===void 0?T(void 0):T(n))}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d0e60f7e-e0a8-5ef4-9af7-4a1f102ccb7d")}catch{}})();var d=Object.freeze({clock:"PM_CLOCK",tickMs:"PM_CLOCK_TICK_MS",seed:"PM_SEED"});function A(e,t,n,o){return new b(e,g.USAGE,{code:"invalid_reproducible_process_environment",reason:t,field:n,required:`${d.clock} and ${d.seed}; ${d.tickMs} is optional`,nextSteps:[`Set ${d.clock} to an ISO-8601 instant with Z or a numeric UTC offset and ${d.seed} to a non-empty reproducibility seed.`,`Optionally set ${d.tickMs} to a non-negative integer; it defaults to 1.`,"Unset all three variables to retain normal wall-clock and cryptographic-random behavior."],recovery:{recovery_mode:"compact",provided_fields:o,missing_required_fields:t==="incomplete"?[d.clock,d.seed].filter(i=>!o.includes(i)):void 0}})}function ze(e){let t=e[d.clock],n=e[d.tickMs],o=e[d.seed],i=[[d.clock,t],[d.tickMs,n],[d.seed,o]].filter(a=>a[1]!==void 0).map(([a])=>a);if(i.length===0)return;if(t===void 0||o===void 0)throw A("Reproducible process execution requires PM_CLOCK and PM_SEED together.","incomplete",t===void 0?d.clock:d.seed,i);if(o.trim().length===0)throw A(`${d.seed} must not be empty.`,"invalid_value",d.seed,i);if(!B(t))throw A(`${d.clock} must be a valid ISO-8601 instant with Z or a numeric UTC offset.`,"invalid_value",d.clock,i);let r=n===void 0?1:Number(n);if(n?.trim().length===0||!Number.isSafeInteger(r)||r<0)throw A(`${d.tickMs} must be a non-negative integer.`,"invalid_value",d.tickMs,i);return $({clock:t,seed:o,tickMs:r})}function Ge(e){let t=ze(e);return t===void 0?n=>n():R(t)}async function vt(e,t){return Ge(e)(t)}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7249e95a-4744-55b8-8b83-2d84f3e48805")}catch{}})();var Q=new Set([...Object.values(M),...F,"--full","--brief","--compact","--summary","--fields","--section","--token-budget"]),ee=new Set(["--full-changed-fields","--no-changed-fields","--id-only"]);function te(e){let t=e.split("=",1)[0].replaceAll("_","-");return Q.has(t)||t.length>=5&&[...Q].some(n=>n.startsWith(t))}function At(e,t){let n=e.split("=",1)[0].replaceAll("_","-");return te(n)?!ee.has(t):ee.has(n)?!te(t):!0}function ne(e){return e.trim().match(/--[a-z0-9][a-z0-9_-]*/i)?.[0]?.replaceAll("_","-").toLowerCase()}function Et(e){if(!(!Array.isArray(e)||e.length===0))return C(e)}function Ue(e,t){let n=ne(t);if(!n)return;let o=y(e).find(i=>i.flag===n||i.aliases?.includes(n));return o?o.value_type==="boolean"?null:`<${o.value_name??"value"}>`:"<value>"}function Ot(e,t,n){let o=[...e],i=o.indexOf("--"),r=i<0?o.length:i;for(let a of n){let s=ne(a);if(!s||o.slice(0,r).some(u=>u===s||u.startsWith(`${s}=`)))continue;let l=Ue(t,s),c=l?[s,l]:[s];o.splice(r,0,...c),r+=c.length}return o.length===e.length?void 0:V(o)}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="bd9a8d3b-bc6f-5309-a3fb-7e5f41ef9dab")}catch{}})();(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="12066389-daef-5fce-b7a6-0ecffa926d66")}catch{}})();function Vt(e,t){let n=e.trim().split(/\s+/u);if(!(n.length<2||t.includes(n.join(" "))))for(let o=1;o<n.length;o+=1){if(!t.includes(n.slice(0,o).join(" ")))return;let i=n.slice(o).join(" "),r=w(i),a=new Set(t.filter(s=>s===i||s.endsWith(` ${i}`)||s===r?.canonical).map(s=>w(s)?.canonical??s).filter(s=>t.includes(s)));if(a.size>0)return a.size===1?[...a][0]:void 0}}var We={add:["create","append"],fetch:["get"],inspect:["get","health"],log:["history","comments","notes"],ls:["list"],pause:["release"],read:["get"],remove:["delete"],rm:["delete"],show:["get"],start:["start-task"]};function oe(e,t){let n=e.trim().toLowerCase(),o=t.trim().toLowerCase();if(o.length===0)return Number.POSITIVE_INFINITY;let i=n.split(" "),r=We[o]?.indexOf(p(n));if(r!==void 0&&r>=0)return r;if(n===o)return 10;if(i.includes(o))return 11;if(i.some(l=>l.startsWith(o)))return 12;let a=o.length>=5?2:1,s=Number.POSITIVE_INFINITY;for(let l of i){let c=v(l,o,a);c!==null&&(s=Math.min(s,c))}return Number.isFinite(s)?20+s:n.includes(o)?30:Number.POSITIVE_INFINITY}function $t(e,t){return e.map(n=>({path:n,score:oe(n,t)})).filter(n=>Number.isFinite(n.score)).sort((n,o)=>n.score!==o.score?n.score-o.score:n.path===o.path?0:n.path<o.path?-1:1).map(n=>n.path)}function Rt(e,t,n){let o=new Set(t),i=E.filter(s=>s.lifecycle==="deprecated").slice().sort((s,l)=>l.alias.length-s.alias.length),r=[],a=e.flatMap(s=>{let l=i.find(u=>s===u.alias||s.startsWith(`${u.alias} `)),c=s;if(l){let u=s.slice(l.alias.length);if(!o.has(`${l.canonical}${u}`))return[];c=`${l.canonical_argv.join(" ")}${u}`}return n!==void 0&&oe(s,n)<10&&r.push(c),[c]});return[...new Set(r.length>0?r:a)]}export{Ke as a,j as b,q as c,he as d,X as e,ge as f,S as g,be as h,lt as i,Ie as j,ct as k,Fe as l,Ve as m,ut as n,dt as o,gt as p,d as q,ze as r,Ge as s,vt as t,te as u,At as v,Et as w,Ue as x,Ot as y,Vt as z,oe as A,$t as B,Rt as C};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{Sb as y}from"./chunk-V5GJTXYW.js";import{Cd as V,Db as v,Hf as z,Ne as $,Oe as R,Te as B,f as N,g as p,gh as G,hh as T,i as E,j as L,k as w,ud as I,vd as k,wd as D,xb as M,xd as O,yb as F,yd as _,zd as C}from"./chunk-KBSVPUFD.js";import{A as g,C as b}from"./chunk-GWIGZDRS.js";import{Command as se}from"commander";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="df7f766c-1121-5712-b562-423d2cda95ce")}catch{}})();function Ke(e){return new se().name("pm").description("Universal, flexible, extensible, agent-optimized project management CLI for any project or programming language.").version(e).showHelpAfterError(!1).allowExcessArguments(!1).allowUnknownOption(!1).configureOutput({writeOut:t=>{z(t)},writeErr:()=>{}}).option("--json","Output JSON instead of TOON; mutations emit a flat receipt with top-level id/status/changed_field_count while reads use documented entity or collection envelopes").option("--lean","Omit null and empty containers from JSON output").option("--token-accounting","Attach a bounded per-section token-cost receipt to command output").option("--output-include <fields>","Retain comma-separated fields or sections in read output").option("--output-limit <count>","Bound rows in read output").option("--output-budget <tokens|unbounded>","Bound estimated tokens in read output or explicitly disable the default ceiling").option("--output-format <toon|json>","Select the result encoding for reads and mutations").option("--output-session <state>","Carry a JSON session budget and served-item ledger across read calls").option("--output-cursor <cursor>","Resume continuation_kind=output_cursor").option("--output-row-contract","Include row selectors, encoding metadata, and read-output receipts").option("--quiet","Suppress stdout output").option("--no-changed-fields","Omit the changed_fields array from mutation output (keeps changed_field_count)").option("--full-changed-fields","Restore the legacy full mutation envelope and changed_fields array").option("--id-only","Print only id and status for single-item mutation output").option("--pm-path <dir>","Explicit tracker storage path for this command (preferred over --path)").option("--path <dir>","Backward-compatible alias for --pm-path; this is the tracker storage path, not a workspace cwd").option("--no-extensions","Disable extension loading").option("--no-pager","Disable pager integration for help and long output").option("--explain","Render extended rationale and examples in help output").option("--all","Reveal every public command and compatibility alias").option("--profile","Print deterministic timing diagnostics").option("--author <id>","Override mutation author for this invocation").exitOverride()}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8efedca0-725e-520f-ad06-825a0cccddaa")}catch{}})();var U=new Set(["append","claim","close","close-task","comments","copy","delete","deps","docs","files","focus","get","history","history-compact","history-redact","history-repair","learnings","notes","pause-task","release","restore","start-task","test","update"]),W=new Map([["files","discover"],["item","complete"]]),re=new Map([["append",1],["close",1],["close-task",1],["comments",1],["item complete",1],["learnings",1],["notes",1],["restore",1]]);function j(e){let t=p(e?.trim().toLowerCase()??"");return U.has(t)||W.has(t)}function ae(e,t,n){let o=U.has(n)?t+1:void 0,i=_(e.slice(t+1));if(i===void 0)return o;let r=t+1+i,a=`${n} ${e[r]}`,s=p(a);return s===a?n==="item"&&e[r]==="complete"?r+1:o:j(s)?P(e,r,s):void 0}function P(e,t,n){if(["history","context","ctx","update","close","item"].includes(n))return ae(e,t,n);let o=W.get(n);if(o===void 0)return t+1;let i=e[t+1]?.toLowerCase()===o;return t+(i?2:1)}function le(e){let t=new Map;for(let n of y(e))for(let o of[n.flag,n.short,...n.aliases??[]])o&&t.set(o,n);return t}function ce(e){let t=[];for(let n=0;n<e.length;n+=1){let o=e[n];if(o==="--")break;o==="--id"?(t.push({index:n,consumed:2,value:e[n+1]}),n+=1):o.startsWith("--id=")&&t.push({index:n,consumed:1,value:o.slice(5)})}return t}function ue(e,t,n){if(e.indexOf("=")>=0||t===void 0||t.startsWith("-"))return!1;let o=n.get(e);return o!==void 0&&o.value_type!=="boolean"}function de(e,t,n,o,i){let r=0;for(let a=t;a<e.length;a+=1){let s=e[a];if(s==="--")break;if(s==="--id"){a+=1;continue}if(!s.startsWith("--id=")){if(!s.startsWith("-")){if(a<o)return!0;r+=1;continue}ue(s,e[a+1],i)&&(a+=1)}}return r>(re.get(p(n))??0)}function q(e){let t=_(e),n=t===void 0?void 0:e[t]?.toLowerCase();if(n!=="context"&&n!=="ctx"&&!j(n))return{argv:[...e],changed:!1,conflict:!1};let o=P(e,t,n);if(o===void 0)return{argv:[...e],changed:!1,conflict:!1};let i=o>t+1?`${p(e.slice(t,o-1).join(" "))} ${e[o-1]}`:n,r=le(i),a=ce(e),s=a[0];if(!s||!s.value?.trim())return{argv:[...e],changed:!1,conflict:!1};if(a.length>1||de(e,o,i,s.index,r))return{argv:[...e],changed:!1,conflict:!0,itemId:s.value};let l=[...e.slice(0,s.index),...e.slice(s.index+s.consumed)],c=_(l),u=P(l,c,n);return l.splice(u,0,s.value),{argv:l,changed:!0,conflict:!1,itemId:s.value}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f05cec18-5e48-5151-8ada-577c9df5885d")}catch{}})();var fe=new Set(["--output-include","--output-limit","--output-budget","--output-format","--output-session","--output-cursor"]),pe=new Set(["toon","json"]);function me(e,t,n){let o=e[t];if(k.has(o))return n.booleanFlags.add(o),1;let i=o.indexOf("="),r=i>0?o.slice(0,i):o;if(!I.has(r))return 1;let a=i>0?o.slice(i+1):void 0,s=a===void 0&&O(r,e[t+1]),l=a??(s?e[t+1]:void 0);return r==="--author"?n.author=l??"":typeof l=="string"&&l.length>0&&(fe.has(r)?n.outputValues:n.pathValues).set(r,l),s?2:1}function he(e){let t={booleanFlags:new Set,outputValues:new Map,pathValues:new Map},n=0;for(;n<e.length&&e[n]!=="--";)n+=me(e,n,t);return{path:t.pathValues.get("--pm-path")??t.pathValues.get("--path"),noExtensions:t.booleanFlags.has("--no-extensions")||["history attest","history-attest"].includes(J(e)??""),noPager:t.booleanFlags.has("--no-pager"),json:t.booleanFlags.has("--json")?t.outputValues.get("--output-format")!=="toon":t.outputValues.get("--output-format")==="json",quiet:t.booleanFlags.has("--quiet"),lean:t.booleanFlags.has("--lean"),tokenAccounting:t.booleanFlags.has("--token-accounting"),...t.booleanFlags.has("--output-row-contract")?{outputRowContract:!0}:{},...t.outputValues.get("--output-include")===void 0?{}:{outputInclude:t.outputValues.get("--output-include")},...t.outputValues.get("--output-limit")===void 0?{}:{outputLimit:t.outputValues.get("--output-limit")},...t.outputValues.get("--output-budget")===void 0?{}:{outputBudget:t.outputValues.get("--output-budget")},...pe.has(t.outputValues.get("--output-format"))?{outputFormat:t.outputValues.get("--output-format")}:{},...t.outputValues.get("--output-session")===void 0?{}:{outputSession:t.outputValues.get("--output-session")},...t.outputValues.get("--output-cursor")===void 0?{}:{outputCursor:t.outputValues.get("--output-cursor")},...t.author===""?{authorMissingValue:!0}:t.author!==void 0?{author:t.author}:{}}}function X(e){let t=[],n=0;for(;n<e.length;){let o=e[n];if(o==="--")break;if(k.has(o)||o==="--profile"||o==="--id-only"||o==="--full-changed-fields"||o==="--explain"){n+=1;continue}if(I.has(o)){n+=O(o,e[n+1])?2:1;continue}if(D(o)){n+=1;continue}t.push(o),n+=1}return t}function ge(e){let t=X(e);if(t[0]?.trim().toLowerCase()==="help"){let o=[];for(let i=1;i<t.length;i+=1){let r=t[i];if(r.startsWith("-"))break;o.push(r.trim().toLowerCase())}return{requested:!0,commandPathTokens:o}}if(t.findIndex(o=>o==="--help"||o==="-h")<0)return{requested:!1,commandPathTokens:[]};let n=[];for(let o of t){if(o.startsWith("-"))break;n.push(o.trim().toLowerCase())}return{requested:!0,commandPathTokens:n}}function S(e){return _(e)}function be(e){return C(e)}function ye(e,t){return t.noPager?!0:process.stdout.isTTY===!0?!1:ge(e).requested}function lt(e){let t=["PAGER","MANPAGER","GIT_PAGER","LESS"],n=t.map(r=>process.env[r]),o=()=>{for(let[r,a]of t.entries()){let s=n[r];s===void 0?delete process.env[a]:process.env[a]=s}},i=he(e);return ye(e,i)&&(process.env.PAGER="cat",process.env.MANPAGER="cat",process.env.GIT_PAGER="cat",(typeof process.env.LESS!="string"||process.env.LESS.trim().length===0)&&(process.env.LESS="FRX")),o}var _e=new Set(["install","uninstall","explore","manage","doctor","adopt","adopt-all","activate","deactivate"]);function Ie(e){let t=S(e);if(t===void 0||e[t]!=="extension")return[...e];let n=e[t+1];if(!n||n.startsWith("-"))return[...e];if(!_e.has(n))return[...e];if(e.includes("--help")||e.includes("-h"))return[...e];let o=`--${n}`;return e.includes(o)?[...e]:[...e.slice(0,t+1),o,...e.slice(t+2)]}var we=new Set(["pm","pm-cli"]);function ve(e,t){let n=S(e);if(n===void 0)return e;let o=e[n];return we.has(o.trim().toLowerCase())?(t.push({from:o,to:[],reason:"executable_alias",confidence:"high"}),[...e.slice(0,n),...e.slice(n+1)]):e}function ke(e,t){let n=S(e);if(n!==void 0&&e[n]==="help"){let s=S(e.slice(n+1));n=s===void 0?void 0:n+1+s}if(n===void 0)return e;let o=e[n],i=L[o.trim().toLowerCase()];if(!i)return e;let r=i.split(" "),a=[...e.slice(0,n),...r,...e.slice(n+1)];return t.push({from:o,to:r,reason:"command_alias",confidence:"high"}),a}function x(e){return e.replace(/^--?/,"").replace(/_/g,"-").replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function K(e){return x(e).replace(/-/g,"")}function Y(e,t,n){let o=e.get(t);if(o===void 0){e.set(t,n);return}o!==n&&e.set(t,null)}function Ce(e){let t=[],n=o=>{typeof o=="string"&&o.startsWith("--")&&t.push(o)};n(e.flag);for(let o of e.aliases??[])n(o);return t}function Te(e,t){let n=t??y(e),o=new Map,i=new Map,r=new Map,a=new Set;for(let s of n){let l=Ce(s);if(l.length===0)continue;let c=`--${x(l[0])}`;for(let f of l)Y(o,x(f),c),Y(i,K(f),c);let u=K(c);r.has(c)||r.set(c,u),s.list===!0&&a.add(c)}return{canonicalByNormalized:o,canonicalByCompact:i,canonicalComparables:[...r.entries()].map(([s,l])=>({canonicalFlag:s,comparable:l})),listCanonicalFlags:a}}function Z(e,t){let n=x(e),o=t.canonicalByNormalized.get(n);if(typeof o=="string")return{flag:o,reason:"flag_alias",confidence:"high"};let i=n.replace(/-/g,""),r=t.canonicalByCompact.get(i);if(typeof r=="string")return{flag:r,reason:"flag_alias",confidence:"high"};let a=i.length>=8?2:1,s=Number.POSITIVE_INFINITY,l,c=!1;for(let u of t.canonicalComparables){let f=v(i,u.comparable,a);if(f!==null){if(f<s){s=f,l=u.canonicalFlag,c=!1;continue}f===s&&l!==u.canonicalFlag&&(c=!0)}}return!l||c||!Number.isFinite(s)||s<=0?null:{flag:l,reason:"flag_typo",confidence:s>=2?"medium":"high"}}function ct(e){let t=[`${e}s`];return e.endsWith("y")&&e.length>1&&t.push(`${e.slice(0,-1)}ies`),t}function Se(e,t=!1){if(t||e.includes("://"))return null;let n=e.match(/^([A-Za-z][A-Za-z0-9_-]{1,63})([:=])(.*)$/);if(!n)return null;let o=n[1],i=n[3];return i.length===0?null:{key:o,value:i}}function xe(e,t,n=!1){if(n||!e.startsWith("--"))return{tokens:[e]};let o=e.indexOf("="),i=o>=0?e.slice(0,o):e,r=o>=0?e.slice(o+1):void 0,a=Z(i,t);if(!a)return{tokens:[e]};let s=r===void 0?a.flag:`${a.flag}=${r}`;return s===e?{tokens:[e]}:{tokens:[s],event:{from:e,to:[s],reason:a.reason,confidence:a.confidence}}}function Ae(e){let t=new Set,n=!1;for(let o=0;o<e.length;o+=1){if(n){t.add(o),n=!1;continue}let i=e[o];n=i==="--path"||i==="--pm-path"}return t}function Ee(e){if(!e.startsWith("--"))return null;let t=e.indexOf("=");return t<0?{flag:e}:{flag:e.slice(0,t),inlineValue:e.slice(t+1)}}function Oe(e,t,n){n.push(e[t]);let o=e[t+1];return typeof o=="string"&&o!=="--"?(n.push(o),t+2):t+1}function Pe(e,t,n,o){if(n.inlineValue!==void 0)return{originalTokens:[e[t]],value:n.inlineValue,consumed:1};let i=[],r=t+1;for(;r<e.length&&e[r]!=="--"&&!e[r].startsWith("-")&&(i.length===0||o.has(n.flag));)i.push(e[r]),r+=1;let a=i.length===0?1:1+i.length;return{originalTokens:e.slice(t,t+a),value:i.length===0?void 0:i.join(","),consumed:a}}function Ne(e,t,n,o){let i=e.get(n);if(i){i.values.push(o.value),i.occurrences+=1;return}e.set(n,{outputIndex:t.length,originalTokens:o.originalTokens,values:[o.value],occurrences:1}),t.push(null)}function Le(e,t){let n=[],o=[];for(let[i,r]of e){if(!(r.occurrences>=2||t.has(i)&&r.originalTokens.length>2)){o.push({outputIndex:r.outputIndex,tokens:r.originalTokens});continue}let a=`${i}=${r.values.join(",")}`;o.push({outputIndex:r.outputIndex,tokens:[a]}),n.push({from:`${i} (x${r.occurrences})`,to:[a],reason:"list_merge",confidence:"high"})}return{events:n,splices:o}}function Me(e,t){t.sort((n,o)=>o.outputIndex-n.outputIndex);for(let n of t)e.splice(n.outputIndex,1,...n.tokens)}function Fe(e,t,n=new Set,o=new Set){if(t.size===0)return{argv:[...e],events:[]};let i=[],r=new Map,a=0;for(;a<e.length;){let c=e[a];if(c==="--"){i.push(...e.slice(a));break}if(n.has(c)){a=Oe(e,a,i);continue}let u=Ee(c);if(!u||!t.has(u.flag)){i.push(c),a+=1;continue}let f=Pe(e,a,u,o);if(f.value===void 0){i.push(c),a+=f.consumed;continue}Ne(r,i,u.flag,{originalTokens:f.originalTokens,value:f.value}),a+=f.consumed}let{events:s,splices:l}=Le(r,o);return Me(i,l),{argv:i,events:s}}var H=new Map([["--add",new Set(["command","cmd","path"])],["--remove",new Set(["command","path"])]]);function De(e,t){if(e!=="test"||t.length<2)return!1;let n=t[t.length-1],o=t[t.length-2],i=H.get(o);return i!==void 0&&i.has(n)}function Ve(e,t,n){if(t!=="test")return e;let o=[],i=0;for(;i<e.length;){let r=e[i];if(r==="--")return o.push(...e.slice(i)),o;let a=H.get(r),s=a?e[i+1]:void 0;if(!a||typeof s!="string"||!a.has(s)){o.push(r),i+=1;continue}let l=i+2;for(;l<e.length&&!e[l].startsWith("-");)l+=1;if(l-(i+2)!==1){o.push(r),i+=1;continue}let c=e[i+2],u=`${s}=${c}`;o.push(r,u),n.push({from:`${r} ${s} ${c}`,to:[r,u],reason:"bare_key_value",confidence:"high"}),i+=3}return o}function $e(e,t,n,o){let i=[],r=Ae(e);for(let a=0;a<e.length;a+=1){let s=e[a];if(s==="--"){i.push(...e.slice(a));break}let l=r.has(a),c=i[i.length-1];if(s.startsWith("--")){let h=xe(s,t,l);i.push(...h.tokens),h.event&&o.push(h.event);continue}let u=Se(s,l);if(!u||typeof c=="string"&&c.startsWith("-")&&!c.includes("=")||["search","comments","notes","learnings"].includes(n)||De(n,i)){i.push(s);continue}let f=Z(u.key,t);if(!f){i.push(s);continue}let m=u.value.startsWith("-")?[`${f.flag}=${u.value}`]:[f.flag,u.value];i.push(...m),o.push({from:s,to:m,reason:"bare_key_value",confidence:f.confidence})}return i}function Re(e){for(let t=0;t<e.length;t+=1){let n=e[t];if(n==="--")break;if(n==="--verify"){let o=e[t+1];if(o===void 0||o==="--")throw new b("history attest --verify requires a bundle file.",g.USAGE);e.splice(t,2,`--verify=${o}`)}else(I.has(n)||n==="--output"||n==="--hash-algorithm")&&(t+=1)}}function Be(e,t){if(!e.some(o=>o==="--help"||o==="-h"))return;let n=new Set(y(t).flatMap(o=>[o.flag,...o.aliases??[],...o.short===void 0?[]:[o.short]]));for(let o=0;o<e.length;o+=1){let i=e[o];if(i==="--")break;i!=="--help"&&i!=="-h"||n.has(e[o-1])&&!k.has(e[o-1])&&(e[o-1]=i)}}function ut(e){let t=[],n=ve(e,t),o=Ie(n);(o.length!==n.length||o.some((h,ie)=>h!==n[ie]))&&t.push({from:n.join(" "),to:[...o],reason:"legacy_extension_action",confidence:"high"});let i=ke(o,t),r=q(i);if(r.conflict)throw new b("Provide the item id either positionally or with --id, not both.",g.USAGE);r.changed&&t.push({from:`--id ${r.itemId}`,to:[r.itemId],reason:"item_id_alias",confidence:"high"});let a=be(r.argv),s=J(r.argv),l=p(s??a??""),c=Te(s??a),u=$e(r.argv,c,l,t),f=Ve(u,l,t),m=Fe(f,c.listCanonicalFlags,I,a==="create"?new Set(["--tags"]):new Set);for(let h of m.events)t.push(h);return Be(m.argv,s??a),s==="history attest"&&Re(m.argv),{argv:m.argv,commandName:a,trace:t}}function J(e){let t=X(e),n=t[0]?.trim().toLowerCase(),o=t[1]?.trim().toLowerCase(),i=N(t);return i?i.canonical:(n==="extension"||n==="package"||n==="packages")&&typeof o=="string"&&o.length>0&&!o.startsWith("-")?`${n} ${o}`:n}function dt(e){for(let t=0;t<e.length;t+=1){let n=e[t];if(n==="--")break;if(n==="--type"){let o=e[t+1];if(typeof o=="string"&&o.trim().length>0)return o.trim();continue}if(n.startsWith("--type=")){let o=n.slice(7).trim();if(o.length>0)return o}}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fb625cd9-f8a8-56cf-88ab-abef64051497")}catch{}})();function gt(e){if(e===void 0)return()=>{};let t=e.trim();if(t.length===0)throw new b("--author requires a non-empty value.",g.USAGE,{code:"missing_required_argument",nextSteps:["Pass an explicit author identifier with --author <id>."]});let n=G();T(t);let o=!1;return()=>{o||(o=!0,n===void 0?T(void 0):T(n))}}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d0e60f7e-e0a8-5ef4-9af7-4a1f102ccb7d")}catch{}})();var d=Object.freeze({clock:"PM_CLOCK",tickMs:"PM_CLOCK_TICK_MS",seed:"PM_SEED"});function A(e,t,n,o){return new b(e,g.USAGE,{code:"invalid_reproducible_process_environment",reason:t,field:n,required:`${d.clock} and ${d.seed}; ${d.tickMs} is optional`,nextSteps:[`Set ${d.clock} to an ISO-8601 instant with Z or a numeric UTC offset and ${d.seed} to a non-empty reproducibility seed.`,`Optionally set ${d.tickMs} to a non-negative integer; it defaults to 1.`,"Unset all three variables to retain normal wall-clock and cryptographic-random behavior."],recovery:{recovery_mode:"compact",provided_fields:o,missing_required_fields:t==="incomplete"?[d.clock,d.seed].filter(i=>!o.includes(i)):void 0}})}function ze(e){let t=e[d.clock],n=e[d.tickMs],o=e[d.seed],i=[[d.clock,t],[d.tickMs,n],[d.seed,o]].filter(a=>a[1]!==void 0).map(([a])=>a);if(i.length===0)return;if(t===void 0||o===void 0)throw A("Reproducible process execution requires PM_CLOCK and PM_SEED together.","incomplete",t===void 0?d.clock:d.seed,i);if(o.trim().length===0)throw A(`${d.seed} must not be empty.`,"invalid_value",d.seed,i);if(!B(t))throw A(`${d.clock} must be a valid ISO-8601 instant with Z or a numeric UTC offset.`,"invalid_value",d.clock,i);let r=n===void 0?1:Number(n);if(n?.trim().length===0||!Number.isSafeInteger(r)||r<0)throw A(`${d.tickMs} must be a non-negative integer.`,"invalid_value",d.tickMs,i);return $({clock:t,seed:o,tickMs:r})}function Ge(e){let t=ze(e);return t===void 0?n=>n():R(t)}async function vt(e,t){return Ge(e)(t)}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7249e95a-4744-55b8-8b83-2d84f3e48805")}catch{}})();var Q=new Set([...Object.values(M),...F,"--full","--brief","--compact","--summary","--fields","--section","--token-budget"]),ee=new Set(["--full-changed-fields","--no-changed-fields","--id-only"]);function te(e){let t=e.split("=",1)[0].replaceAll("_","-");return Q.has(t)||t.length>=5&&[...Q].some(n=>n.startsWith(t))}function At(e,t){let n=e.split("=",1)[0].replaceAll("_","-");return te(n)?!ee.has(t):ee.has(n)?!te(t):!0}function ne(e){return e.trim().match(/--[a-z0-9][a-z0-9_-]*/i)?.[0]?.replaceAll("_","-").toLowerCase()}function Et(e){if(!(!Array.isArray(e)||e.length===0))return C(e)}function Ue(e,t){let n=ne(t);if(!n)return;let o=y(e).find(i=>i.flag===n||i.aliases?.includes(n));return o?o.value_type==="boolean"?null:`<${o.value_name??"value"}>`:"<value>"}function Ot(e,t,n){let o=[...e],i=o.indexOf("--"),r=i<0?o.length:i;for(let a of n){let s=ne(a);if(!s||o.slice(0,r).some(u=>u===s||u.startsWith(`${s}=`)))continue;let l=Ue(t,s),c=l?[s,l]:[s];o.splice(r,0,...c),r+=c.length}return o.length===e.length?void 0:V(o)}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="bd9a8d3b-bc6f-5309-a3fb-7e5f41ef9dab")}catch{}})();(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="12066389-daef-5fce-b7a6-0ecffa926d66")}catch{}})();function Vt(e,t){let n=e.trim().split(/\s+/u);if(!(n.length<2||t.includes(n.join(" "))))for(let o=1;o<n.length;o+=1){if(!t.includes(n.slice(0,o).join(" ")))return;let i=n.slice(o).join(" "),r=w(i),a=new Set(t.filter(s=>s===i||s.endsWith(` ${i}`)||s===r?.canonical).map(s=>w(s)?.canonical??s).filter(s=>t.includes(s)));if(a.size>0)return a.size===1?[...a][0]:void 0}}var We={add:["create","append"],fetch:["get"],inspect:["get","health"],log:["history","comments","notes"],ls:["list"],pause:["release"],read:["get"],remove:["delete"],rm:["delete"],show:["get"],start:["start-task"]};function oe(e,t){let n=e.trim().toLowerCase(),o=t.trim().toLowerCase();if(o.length===0)return Number.POSITIVE_INFINITY;let i=n.split(" "),r=We[o]?.indexOf(p(n));if(r!==void 0&&r>=0)return r;if(n===o)return 10;if(i.includes(o))return 11;if(i.some(l=>l.startsWith(o)))return 12;let a=o.length>=5?2:1,s=Number.POSITIVE_INFINITY;for(let l of i){let c=v(l,o,a);c!==null&&(s=Math.min(s,c))}return Number.isFinite(s)?20+s:n.includes(o)?30:Number.POSITIVE_INFINITY}function $t(e,t){return e.map(n=>({path:n,score:oe(n,t)})).filter(n=>Number.isFinite(n.score)).sort((n,o)=>n.score!==o.score?n.score-o.score:n.path===o.path?0:n.path<o.path?-1:1).map(n=>n.path)}function Rt(e,t,n){let o=new Set(t),i=E.filter(s=>s.lifecycle==="deprecated").slice().sort((s,l)=>l.alias.length-s.alias.length),r=[],a=e.flatMap(s=>{let l=i.find(u=>s===u.alias||s.startsWith(`${u.alias} `)),c=s;if(l){let u=s.slice(l.alias.length);if(!o.has(`${l.canonical}${u}`))return[];c=`${l.canonical_argv.join(" ")}${u}`}return n!==void 0&&oe(s,n)<10&&r.push(c),[c]});return[...new Set(r.length>0?r:a)]}export{Ke as a,j as b,q as c,he as d,X as e,ge as f,S as g,be as h,lt as i,Ie as j,ct as k,Fe as l,Ve as m,ut as n,dt as o,gt as p,d as q,ze as r,Ge as s,vt as t,te as u,At as v,Et as w,Ue as x,Ot as y,Vt as z,oe as A,$t as B,Rt as C};
|
|
2
|
+
//# sourceMappingURL=chunk-5PZ7JNMI.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{Af as c,Bf as _,Df as f,Ff as p,lf as d}from"./chunk-KBSVPUFD.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]="8467eccc-684d-56cc-8b18-5f2e940abb42")}catch{}})();var m="not-a-declared-intent",i="not-a-declared-field";function g(){let e={get:["pm-domain"],search:["Domain query"]},r=[...new Set(d.map(({command:o})=>o))].map(o=>{let a=d.filter(n=>n.command===o),s=a[0],u=e[s.command]??[];return{probe_id:`${s.command}-invalid-intent`,command:s.command,flag:"--for",rejected_value:m,refusal_args:[s.command,...u,"--for",m],allowed_values:a.map(({intent:n})=>n).sort(),suggested_retry_args:[s.command,...u,"--for",s.intent],error_code:"unknown_context_intent"}}),t=_(),l=Object.keys(c).map(o=>({probe_id:`${o}-invalid-field`,command:o,flag:"--fields",rejected_value:i,refusal_args:[o,"--fields",i],allowed_values:t,suggested_retry_args:[o,"--fields","id,title,status"],error_code:"unknown_field_projection"}));return[...r,...l,{probe_id:"get-invalid-field",command:"get",flag:"--fields",rejected_value:i,refusal_args:["get","pm-domain","--fields",i],allowed_values:f(),suggested_retry_args:["get","pm-domain","--fields","id,title,status"],error_code:"unknown_field_projection"},{probe_id:"list-mutually-exclusive-projection",command:"list",flag:"--projection",rejected_value:"--brief+--full",refusal_args:["list","--brief","--full"],allowed_values:[],suggested_retry_args:["list","--brief"],error_code:"projection_options_mutually_exclusive",allowed_values_required:!1},{probe_id:"get-mutually-exclusive-projection",command:"get",flag:"--projection",rejected_value:"--full+--fields",refusal_args:["get","pm-domain","--full","--fields","id"],allowed_values:[],suggested_retry_args:["get","pm-domain","--full"],error_code:"projection_options_mutually_exclusive",allowed_values_required:!1},{probe_id:"search-mutually-exclusive-projection",command:"search",flag:"--projection",rejected_value:"--full+--fields",refusal_args:["search","Domain query","--full","--fields","id"],allowed_values:[],suggested_retry_args:["search","Domain query","--full"],error_code:"projection_options_mutually_exclusive",allowed_values_required:!1},{probe_id:"package-upgrade-mutually-exclusive-modes",command:"package upgrade",flag:"--cli-only/--packages-only",rejected_value:"--cli-only+--packages-only",refusal_args:["package","upgrade","--cli-only","--packages-only","--dry-run"],allowed_values:[],suggested_retry_args:["package","upgrade","--packages-only","--dry-run"],error_code:"package_upgrade_modes_mutually_exclusive",allowed_values_required:!1},{probe_id:"search-invalid-field",command:"search",flag:"--fields",rejected_value:i,refusal_args:["search","Domain query","--fields",i],allowed_values:p(),suggested_retry_args:["search","Domain query","--fields","id,title,status,score"],error_code:"unknown_field_projection"}].sort((o,a)=>o.probe_id.localeCompare(a.probe_id))}function v(e,r){let t=g().find(a=>a.command===e&&a.flag===r);if(!t)return"No stable core values are declared.";let l=t.allowed_values.filter(a=>!a.startsWith("item.")),o=r==="--fields"?" item.<field> aliases and configured runtime metadata fields are also accepted.":" Configured package and workspace intents may extend this domain.";return`Allowed core values: ${l.join("|")}.${o}`}(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]="6279da21-92a5-57fe-bc0e-15a02111ab41")}catch{}})();function y(e){return e.map((r,t)=>{if(typeof r!="object"||r===null||Array.isArray(r))throw new TypeError(`NDJSON row ${t} must be a non-null object.`);let l=JSON.stringify(r);if(l===void 0)throw new TypeError(`NDJSON row ${t} must serialize to a non-null object.`);let o=JSON.parse(l);if(typeof o!="object"||o===null||Array.isArray(o))throw new TypeError(`NDJSON row ${t} must serialize to a non-null object.`);return l}).join(`
|
|
2
|
+
`)}function x(e,r){if(r.count!==e.length)throw new TypeError(`NDJSON trailer count ${r.count} does not match ${e.length} ${e.length===1?"row":"rows"}.`);for(let[t,l]of e.entries())if(typeof l=="object"&&l!==null&&!Array.isArray(l)&&Reflect.get(l,"record_type")==="pm.stream.trailer")throw new TypeError(`NDJSON row ${t} uses reserved record_type pm.stream.trailer`);return y([...e,{...r,record_type:"pm.stream.trailer"}])}export{g as a,v as b,y as c,x as d};
|
|
3
|
+
//# sourceMappingURL=chunk-C6SAXKBO.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ge as R,Hc as O,Nf as C,Pf as k,wc as _,yc as A,zc as b}from"./chunk-V5GJTXYW.js";import{M as v}from"./chunk-KBSVPUFD.js";import{A as f,C as m}from"./chunk-GWIGZDRS.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="9e3f7593-561d-563f-bd60-8c5a320fe425")}catch{}})();var P=Symbol("pm.mcp-mutation-transport"),M=new Set(["activity","aggregate","context","contracts","deps","files-discover","files-lookup","get","graph","health","history","history-attest","list","next","search","stats","telemetry","validate"]);function y(e){return P in e}function h(e,t){return y(e)?_(t):A(e,t)}function ee(e,t,r=[]){let n=A(e,{...e,...t});for(let l of r)Reflect.deleteProperty(n,l);return n}function i(e,t){let r=e[t];return typeof r=="string"&&r.trim().length>0?r:void 0}function o(e,t){let r=e[t];return typeof r=="string"?r.trim().length>0?r:void 0:typeof r=="number"&&Number.isFinite(r)?String(r):void 0}function te(e,t){let r=e[t];return typeof r=="string"?r:typeof r=="number"&&Number.isFinite(r)?String(r):void 0}function c(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function re(e,t){if(typeof e=="number"){if(!Number.isInteger(e))throw new m(`${t} must be a finite integer.`,f.USAGE);return e}if(typeof e=="string"&&e.trim().length>0){let r=Number(e);if(!Number.isInteger(r))throw new m(`${t} must be a finite integer.`,f.USAGE);return r}}function ie(e,t){return typeof e.limit=="number"&&Number.isFinite(e.limit)?e.limit:typeof t.limit=="number"&&Number.isFinite(t.limit)?t.limit:i(e,"limit")??i(t,"limit")}function ne(e){let t=i(e,"outputFormat");return{json:!0,quiet:!0,author:i(e,"author"),path:i(e,"path"),noExtensions:e.noExtensions===!0||e.no_extensions===!0,noPager:!0,outputInclude:i(e,"outputInclude"),outputLimit:o(e,"outputLimit"),outputBudget:o(e,"outputBudget"),outputSession:i(e,"outputSession"),outputCursor:i(e,"outputCursor"),outputFormat:t==="json"||t==="toon"?t:void 0}}var x=new Set(["tags","blockedBy","blocked_by","skills","fields"]),N=new Set(["comment","note","learning","reminder","event","dep","depRemove","dep_remove","file","doc","test","unset","addGlob","add_glob","migrate","envSet","env_set","envClear","env_clear"]),L=new Set([...N].filter(e=>e!=="file")),D=new Set(["files","files-discover","docs","test","test-all"]),I=new Set(["comments","notes","learnings"]);function U(e,t){if(!(!I.has(e)||!Object.prototype.hasOwnProperty.call(t,"file")))throw new m(`MCP ${e} does not accept options.file. Pass annotation text in options.add instead.`,f.USAGE,{code:"mcp_annotation_file_unavailable",required:"Pass annotation text as JSON data; MCP annotation actions cannot read server-local files."})}var B=new Set(["claim","release","start-task","pause-task","close-task"]),j={"history-attest":["verify","output","hashAlgorithm"],list:["status","type","tag","priority","limit","offset"],search:["mode","status","type","tag","priority","limit"],create:["title","type","status","description","body","priority","tags","parent","createMode","create_mode","allowMissingParent","allowDuplicate"],update:["parent","allowMissingParent","completedAt"],copy:["allowDuplicate"],close:["duplicateOf","completedAt","releaseAssignment"],claim:["start","next","ifAvailable"],release:["pause","handoff"],comments:["ifAbsent"],notes:["ifAbsent"],learnings:["ifAbsent"],extension:["dryRun","offline"],package:["dryRun","offline"],install:["dryRun"],upgrade:["scope","dryRun","cliOnly","packagesOnly","repair","tag","packageName"],append:["body"]},z=["outputInclude","outputLimit","outputBudget","outputFormat","outputSession","outputCursor"];function w(e,t=""){let r={},n=D.has(t),l=t==="files"||t==="files-discover"||t==="docs",d=I.has(t)?L:N;for(let[a,u]of Object.entries(e)){if(Array.isArray(u)&&x.has(a)){r[a]=u.join(",");continue}if(a==="note"&&l){r[a]=u;continue}if(typeof u=="string"&&d.has(a)){r[a]=[u];continue}if(typeof u=="string"&&n&&(a==="add"||a==="remove")){r[a]=[u];continue}r[a]=u}return Object.assign(r,Object.fromEntries(Object.getOwnPropertySymbols(e).map(a=>[a,Reflect.get(e,a)]))),r}function G(e,t,r){let n=i(e,"author");return n!==void 0?n:r!==void 0&&B.has(r)?i(e,"assignee")??i(t,"assignee"):void 0}function Y(e,t){return t!==void 0&&e.author===void 0?{...e,author:t}:e}function oe(e,t){let r=c(e.options)?e.options:void 0,n=v(e.options),l={},d=s=>{n[s]!==void 0||e[s]===void 0||(l[s]=e[s])};for(let s of j[t??""]??[])d(s);for(let s of z)d(s);t!==void 0&&y(e)&&U(t,n);let a=w({...l,...n},t);if(t==="history-attest"&&y(e)&&(a.output!==void 0||typeof a.verify=="string"))throw new m("MCP history attest does not accept server-local proof paths. Export the returned JSON bundle and pass that JSON object as verify.",f.USAGE);let u=y(e)?e:r??e;return h(u,Y(a,G(e,a,t)))}function ae(e){if(e.addNote===void 0)return e;let t={...e};return t.note===void 0&&typeof t.addNote=="string"&&(t.note=t.addNote),delete t.addNote,t}function le(e){let t={...e};return t.discoveryNote!==void 0&&t.note===void 0&&typeof t.discoveryNote=="string"&&(t.note=t.discoveryNote),delete t.discover,delete t.discoveryNote,t}function K(e){let t=[],r=!0;for(let n of e.trim().toLowerCase()){if(n>="a"&&n<="z"||n>="0"&&n<="9"){t.push(n),r=!1;continue}r||(t.push("-"),r=!0)}return t.at(-1)==="-"&&t.pop(),t.join("")}function ue(e){return!M.has(K(e))}function se(e){return e.trim().toLowerCase().split(/\s+/).filter(Boolean).join(" ")}function V(e){return Array.isArray(e)?e.map(t=>String(t)).filter(t=>t.length>0):[]}function de(e,t){let r=new Set(["action","args","author","cwd","fullChangedFields","id","options","path","query","reason","target"]),n={};for(let[d,a]of Object.entries(e))r.has(d)||(n[d]=a);let l={...n,...t};return delete l.args,delete l.author,l}function ce(e,t){let r=h(t??{},{...t});return{changedFields:e.fullChangedFields===!0?"full":"compact",idOnly:e.idOnly===!0,runnerOptions:r}}function g(e){return{type:o(e,"filterType"),tag:o(e,"filterTag"),priority:o(e,"filterPriority"),deadlineBefore:o(e,"filterDeadlineBefore"),deadlineAfter:o(e,"filterDeadlineAfter"),updatedAfter:o(e,"filterUpdatedAfter"),updatedBefore:o(e,"filterUpdatedBefore"),createdAfter:o(e,"filterCreatedAfter"),createdBefore:o(e,"filterCreatedBefore"),ids:O(e.ids),assignee:o(e,"filterAssignee"),assigneeFilter:o(e,"filterAssigneeFilter")??o(e,"filterAssignee_filter"),parent:o(e,"filterParent"),sprint:o(e,"filterSprint"),release:o(e,"filterRelease"),limit:o(e,"limit"),offset:o(e,"offset")}}function S(e){if(typeof e=="string"&&e.trim().length>0)return e;if(Array.isArray(e))return V(e)}function p(e){if(typeof e=="number"&&Number.isFinite(e)||typeof e=="string"&&e.trim().length>0)return e}function fe(e){let t=S(e.kind),r=S(e.exemptIsolate),n=S(e.exemptIsolateType);return{...t===void 0?{}:{kind:t},maxDepth:p(e.maxDepth),limit:p(e.limit),after:i(e,"after"),direction:i(e,"direction"),maxPaths:p(e.maxPaths),sample:p(e.sample),...r===void 0?{}:{exemptIsolate:r},...n===void 0?{}:{exemptIsolateType:n},saveBaseline:e.saveBaseline===!0,rebuild:e.rebuild===!0,clear:e.clear===!0,summary:e.summary===!0,...e.full===!0?{full:!0}:{}}}function E(e){let t=k(e);return e.ids!==void 0&&(t.ids=O(e.ids)),t}function me(e){return{status:i(e,"filterStatus"),list:c(e.list)?E(e.list):g(e),reason:i(e,"reason"),resolution:i(e,"resolution"),expectedResult:i(e,"expectedResult")??i(e,"expected_result")??i(e,"expected"),actualResult:i(e,"actualResult")??i(e,"actual_result")??i(e,"actual"),validateClose:i(e,"validateClose")??i(e,"validate_close"),author:i(e,"author"),message:i(e,"message"),force:e.force===!0?!0:void 0,dryRun:e.dryRun===!0||e.dry_run===!0?!0:void 0,rollback:i(e,"rollback"),checkpoint:e.checkpoint===!1||e.noCheckpoint===!0||e.no_checkpoint===!0?!1:void 0}}var W=new Set(["filterStatus","filterType","filterTag","filterPriority","filterDeadlineBefore","filterDeadlineAfter","filterUpdatedAfter","filterUpdatedBefore","filterCreatedAfter","filterCreatedBefore","filterAssignee","filterAssigneeFilter","filterAssignee_filter","filterParent","filterSprint","filterRelease","ids","list","update","limit","offset","dryRun","dry_run","rollback","checkpoint","noCheckpoint","no_checkpoint"]);function T(e){let t={};for(let[r,n]of Object.entries(e))W.has(r)||(t[r]=n);return F(t)}function F(e){let t=w(e,"update-many");for(let r of R)for(let n of r.keys){let l=t[n];typeof l=="number"&&Number.isFinite(l)&&(t[n]=String(l))}return C(t)}function pe(e){if(c(e.list)||c(e.update)){let t=c(e.update)?e.update:T(e),r=h(e,F(t));return{status:o(e,"filterStatus"),list:c(e.list)?E(e.list):g(e),update:b(t,r),dryRun:e.dryRun===!0||e.dry_run===!0?!0:void 0,rollback:i(e,"rollback"),checkpoint:e.checkpoint===!1||e.noCheckpoint===!0||e.no_checkpoint===!0?!1:void 0}}return{status:o(e,"filterStatus"),list:g(e),update:h(e,T(e)),dryRun:e.dryRun===!0||e.dry_run===!0?!0:void 0,rollback:i(e,"rollback"),checkpoint:e.checkpoint===!1||e.noCheckpoint===!0||e.no_checkpoint===!0?!1:void 0}}export{y as a,ee as b,i as c,o as d,te as e,c as f,re as g,ie as h,ne as i,j,w as k,oe as l,ae as m,le as n,K as o,ue as p,se as q,V as r,de as s,ce as t,g as u,fe as v,me as w,F as x,pe as y};
|
|
2
|
+
//# sourceMappingURL=chunk-DIKQ2AL5.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as he}from"./chunk-2B5HAZFK.js";import{Rb as je,Sb as Fe,Ub as W,Xb as Pe,Ya as z,Zb as Ge,_b as xe,a as ye,uc as qe}from"./chunk-EMGMLKRV.js";import{ac as De}from"./chunk-DR6DUBTU.js";import{b as Oe,c as J}from"./chunk-V3XONSVC.js";import{Ce,Fe as Ne,L as Me,Ya as Re,cb as ke,g as Ie,i as O,r as Ae,wc as $e,yc as Ue}from"./chunk-V5GJTXYW.js";import{Db as me,Nc as fe,Oc as q,Og as Se,Pa as le,cg as we,eg as K,fg as ge,ig as ve,lg as _e,mg as E,mi as be,nh as L,og as Ee,pa as x,qi as Te,wi as M,ya as pe}from"./chunk-KBSVPUFD.js";import{A as u,C as c,G,I as ue,J as A,l as se,q as I,t as ce,y as de}from"./chunk-GWIGZDRS.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4175f7f5-a689-5d05-982a-f92e21bc83e7")}catch{}})();import Xe from"node:crypto";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="01728cbc-2037-50d2-8318-5f106714b8da")}catch{}})();var S=new Set(["id","title","description","type","status","priority","tags","body","deadline","estimated_minutes","acceptance_criteria","definition_of_ready","order","rank","assignee",...se,"affected_version","fixed_version","component","regression","customer_impact","close_reason","completed_at","dependencies","comments","notes","learnings","files","tests","docs","reminders","events","type_options"]);function R(e){if(e===void 0)return;let t=e.replace(/[A-Z]/gu,n=>`_${n.toLowerCase()}`);return S.has(t)?t:e}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6456f85b-e076-5048-9c21-03d477267259")}catch{}})();function k(e,t,n){let i=e?.estimatedMinutes;if(!(i===void 0||typeof i=="string"))throw new c(`Mutation ${n+1} ${t} option "estimatedMinutes" must be a string.`,u.USAGE,{code:"mutation_option_value_invalid",required:'Pass estimatedMinutes as a string, for example "45", in raw mutation options.',why:"Raw options use the create/update command option types; item documents accept numeric estimated_minutes instead.",nextSteps:["Quote the estimatedMinutes value or use an item document with numeric estimated_minutes, then retry the transaction."]})}(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7b430d12-7a5b-52c2-9a6b-e4c33a39da76")}catch{}})();var V=["op","id","reason","options","unique","match"],bt=[...V,"ref"],Ke=[...bt,"item"],Tt="mutate-",Le="row-",Je=["schema_version","mutations"],Ze="[a-z][a-z0-9._-]{0,63}",ze=new RegExp(`^${Ze}$`,"u"),Qe=new RegExp(`(^|,)id=@(${Ze})(?=,|$)`,"gu"),We=e=>e.slice(2).replaceAll(/-([a-z])/gu,(t,n)=>n.toUpperCase()),$=["item","linked","schedule","claim_state","children","omission_receipt","row_contract","context_intent"],et=new Set(["created_at","updated_at","closed_at","version","format_version","path","author","collection_counts","notes_count","tests_count"]),It=new Set([...et,"completed_at","id"]),tt={create:Ce.map(e=>e.target),update:Ne.map(e=>e.target),close:Re.map(e=>We(e.flag)).filter(e=>e!=="reason"),release:ke.map(e=>We(e.flag))};function nt(e){let t=Xe.createHash("sha256").update(e).digest("hex");return`${Tt}${t.slice(0,24)}`}function _i(e){let t={},n=e.createCompensation;if(n!==void 0){if(n!=="close"&&n!=="delete")throw new c("createCompensation must be close or delete.",u.USAGE);t.createCompensation=n}for(let i of["lockTtlSeconds","lockWaitMs"]){let r=e[i];if(r===void 0)continue;let o=typeof r=="number"||typeof r=="string"&&r.trim().length>0?Number(r):Number.NaN;if(!Number.isSafeInteger(o)||o<=0)throw new c(`${i} must be a positive safe integer.`,u.USAGE);t[i]=o}return t}function y(e){if(typeof e!="object"||e===null||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function U(e,t){let n=Math.max(1,Math.min(3,Math.floor(e.length/4)+1)),i;for(let r of t){let o=me(e,r,n);o!==null&&(i===void 0||o<i.distance)&&(i={key:r,distance:o})}return i?.key}function b(e,t,n){let i=U(t,n);return new c(i===void 0?`${e} does not recognize key "${t}". Allowed keys: ${n.join(", ")}.`:`${e} does not recognize key "${t}". Did you mean "${i}"?`,u.USAGE,{code:"stdin_json_unknown_key",required:`Use documented ${e} keys only.`,why:"Strict structured input prevents silent typos from creating incomplete or unintended mutations.",nextSteps:[i===void 0?`Remove or correct "${t}".`:`Replace "${t}" with "${i}".`]})}function H(e,t){try{return JSON.parse(e)}catch(n){let i=n instanceof Error?n.message:String(n);throw new c(`${t} must be valid JSON: ${i}`,u.USAGE,{code:"stdin_json_invalid",required:`Pipe one valid JSON ${t.toLowerCase()} into stdin.`,why:"Structured mutation input must parse deterministically before any tracker write begins."})}}function At(e,t){if(!y(e))throw new c(`Mutation ${t+1} must be an object.`,u.USAGE);for(let n of Object.keys(e))if(!V.includes(n))throw b(`mutation ${t+1}`,n,V);return e}function Mt(e,t,n,i){if(e===void 0)return;if(!y(e))throw new c(`Mutation ${n+1} options must be an object.`,u.USAGE);let r=[...tt[t],...ot(t,i)];for(let o of Object.keys(e))if(!r.includes(o))throw b(`mutation ${n+1} ${t} options`,o,r);return k(e,t,n),e}function Ve(e,t,n,i){if(e===void 0)return;let r=i==="unique"?"create":"update";if(t!==r)throw new c(`Mutation ${n+1} ${i} is only valid for ${r} operations.`,u.USAGE);let o=y(e)&&typeof e.key=="string"?e.key.trim():"";if(!y(e)||o.length===0||e.value===void 0||e.value===null)throw new c(`Mutation ${n+1} ${i} must be an object with a non-empty key and a value.`,u.USAGE);return{key:o,value:e.value}}function Ot(e,t,n){let i=At(e,t),{op:r,id:o,reason:a}=i;if(r!=="create"&&r!=="update"&&r!=="close"&&r!=="release")throw new c(`Mutation ${t+1} op must be create, update, close, or release.`,u.USAGE);let s=Mt(i.options,r,t,n),d=Ve(i.unique,r,t,"unique"),l=Ve(i.match,r,t,"match");if(typeof o!="string"||o.trim().length===0)throw new c(`Mutation ${t+1} requires a non-empty id.`,u.USAGE);let p=o.trim();if(r==="close"){if(typeof a!="string"||a.trim().length===0)throw new c(`Mutation ${t+1} close requires a non-empty reason.`,u.USAGE);return{op:r,id:p,reason:a.trim(),...s===void 0?{}:{options:s}}}if(r==="release")return{op:r,id:p,...s===void 0?{}:{options:s}};if(!y(s))throw new c(`Mutation ${t+1} ${r} requires an options object.`,u.USAGE);return{op:r,id:p,options:s,...d===void 0?{}:{unique:d},...l===void 0?{}:{match:l}}}function it(e,t={}){let n=H(e,"Mutation batch"),i=Array.isArray(n)?n:y(n)&&Array.isArray(n.mutations)?n.mutations:void 0;if(i===void 0||i.length===0)throw new c("Mutation batch must be a non-empty JSON array or an object with a non-empty mutations array.",u.USAGE);let r=t.runtimeFields??[];return i.map((o,a)=>{let s=Ot(o,a,r);return s.options!==void 0&&$e(s.options),s})}function Rt(e,t,n){let i=Xe.createHash("sha256").update(e).update("\0").update(t).digest("hex"),r=BigInt(`0x${i.slice(0,16)}`).toString(36).padStart(13,"0").slice(-12);return`${Ie(n)}${r}`}function Be(e,t){if(typeof e!="string"||!e.startsWith("@"))return e;let n=e.slice(1),i=t[n];if(i===void 0)throw new c(`Unknown mutation reference "${e}".`,u.USAGE);return i}function Ye(e,t){if(typeof e!="string")return e;let n=e.replace(Qe,(i,r,o)=>{let a=t[o];if(a===void 0)throw new c(`Unknown mutation reference "@${o}".`,u.USAGE);return`${r}id=${a}`});if(/(^|,)id=@/u.test(n))throw new c(`Malformed mutation reference in dependency "${e}".`,u.USAGE);return n}function kt(e){return typeof e!="string"?[]:e.startsWith("@")?[e.slice(1)]:[...e.matchAll(Qe)].map(t=>t[1]).filter(t=>t!==void 0)}function $t(e,t){let n=new Map;for(let[a,s]of e.entries()){let d=t[a];if(d===void 0)continue;let l=y(s.options)?s.options:{},p=Array.isArray(l.dep)?l.dep:l.dep===void 0?[]:[l.dep];n.set(d,[l.parent,l.blockedBy,...p].flatMap(kt))}let i=new Set,r=new Set,o=a=>{if(i.has(a))throw new c(`Mutation reference cycle includes "@${a}".`,u.USAGE);if(!r.has(a)){i.add(a);for(let s of n.get(a))n.has(s)&&o(s);i.delete(a),r.add(a)}};for(let a of n.keys())o(a)}function Ut(e){let t=e.split(/\r?\n/u).map((o,a)=>({line:o.trim(),number:a+1})).filter(o=>o.line.length>0);if(t.length<2)return null;let n=t.map(o=>{try{return{...o,ok:!0,value:JSON.parse(o.line)}}catch(a){return{...o,ok:!1,error:a}}}),i=n[0];if(!i.ok&&(i.line.startsWith("[")||i.line==="{"||n.at(-1).line==="}")||!n.some(o=>o.ok&&y(o.value)))return null;let r=[];for(let o of n){if(!o.ok)throw new c(`Mutation document line ${o.number} must be one valid JSON object: ${he(o.error)}`,u.USAGE,{code:"stdin_json_invalid",required:"Provide one JSON object per line (JSON Lines), a JSON array, or a {schema_version, mutations} document.",why:"Structured mutation input must parse deterministically before any tracker write begins."});if(!y(o.value))throw new c(`Mutation document line ${o.number} must be a JSON object.`,u.USAGE);r.push(o.value)}return r}function Ct(e){return Object.hasOwn(e,"mutations")||Object.hasOwn(e,"schema_version")}function Nt(e){let t;try{t=H(e,"Mutation document")}catch(n){let i=Ut(e);if(i===null)throw n;return{schema_version:1,mutations:i}}return Array.isArray(t)?{schema_version:1,mutations:t}:y(t)&&!Ct(t)?{schema_version:1,mutations:[t]}:t}function Dt(e,t){let n=Object.hasOwn(e,"op")?jt(e,t):Ft(e,t);if(n.op==="create"&&n.id===void 0&&y(n.item)&&n.item.id!==void 0){if(typeof n.item.id!="string")throw new c(`Mutation ${t+1} item id must be a string.`,u.USAGE);n.id=n.item.id}return n}function jt(e,t){for(let n of Object.keys(e))if(!Ke.includes(n))throw b(`mutation ${t+1}`,n,Ke);if(e.item!==void 0&&e.op!=="create")throw new c(`Mutation ${t+1} item documents are only valid for create operations.`,u.USAGE);if(e.item!==void 0&&e.options!==void 0)throw new c(`Mutation ${t+1} must declare either item or options, not both.`,u.USAGE);return{...e}}function Ft(e,t){let{ref:n,id:i,item:r,...o}=e,a=r!==void 0?r:o;if(r!==void 0&&Object.keys(o).length>0)throw new c(`Mutation ${t+1} must not mix item document keys with top-level fields.`,u.USAGE);if(!y(a))throw new c(`Mutation ${t+1} item document must be an object.`,u.USAGE);return{op:"create",...n===void 0?{}:{ref:n},...i===void 0?{}:{id:i},item:a}}function Pt(e){let t=Nt(e);if(!y(t))throw new c("Mutation document must be a JSON array or object.",u.USAGE);for(let n of Object.keys(t))if(!Je.includes(n))throw b("mutation document",n,Je);if(t.schema_version!==void 0&&t.schema_version!==1)throw new c("Mutation document schema_version must be 1.",u.USAGE);if(!Array.isArray(t.mutations)||t.mutations.length===0)throw new c("Mutation document requires a non-empty mutations array.",u.USAGE);return t.mutations.map((n,i)=>{if(!y(n))throw new c(`Mutation ${i+1} must be an object.`,u.USAGE);return Dt(n,i)})}function Gt(e,t,n){let i=new Set(Object.values(st(t,n,Object.create(null))));for(let r of t)r.op==="create"&&typeof r.id=="string"&&r.id.trim().length>0&&i.add(O(r.id,n.idPrefix));return{...e,existing:e.existing.filter(r=>!i.has(r.id))}}function xt(e){let t=new Set(e.map(n=>n.ref).filter(n=>typeof n=="string"));for(let[n,i]of e.entries()){if(i.op!=="create"||i.ref!==void 0||typeof i.id=="string"&&i.id.trim().length>0)continue;let r=`${Le}${n+1}`;if(t.has(r))throw new c(`Mutation ${n+1} receives the synthesized ref "${r}", but another row declares that ref. Rename it or give mutation ${n+1} its own ref; ${Le}<n> aliases are reserved for rows without one.`,u.USAGE);i.ref=r}}function rt(e,t,n){let i=en(JSON.stringify(e),t,{},n);return delete i.stdinJson,delete i.documentAnnotationSnapshot,i}function ot(e,t){return e!=="create"&&e!=="update"?[]:t.filter(n=>n.commands.includes(e)).map(n=>E(n))}function qt(e,t){for(let n of e)y(n.item)&&(n.options=rt(n.item,"create",t),delete n.item)}function at(e,t){return t.some(n=>n.metadata_key===e)?e:R(e)}function B(e,t,n){let i=t.replaceAll(/_([a-z])/gu,(a,s)=>s.toUpperCase());if(y(e.item)){if(e.item[t]!==void 0)return e.item[t];if(at(i,n)===t&&e.item[i]!==void 0)return e.item[i]}let r=y(e.options)?e.options:{},o=n.find(a=>a.metadata_key===t);return o!==void 0&&r[E(o)]!==void 0?r[E(o)]:r[t]!==void 0?r[t]:r[i]!==void 0?r[i]:(Array.isArray(r.field)?r.field:[]).map(String).find(a=>a.startsWith(`${t}=`))?.slice(t.length+1)}function Kt(e,t){return e<t?-1:+(e!==t)}function Y(e){return Array.isArray(e)?e.map(Y):y(e)?Object.fromEntries(Object.entries(e).sort(([t],[n])=>Kt(t,n)).map(([t,n])=>[t,Y(n)])):e}function v(e){return typeof e=="string"?e.trim():JSON.stringify(Y(e))}function Lt(e,t,n,i,r){let o=t.key.trim();if(o.length===0)throw new c("Upsert key must be a non-empty field name.",u.USAGE);let a=Jt(t.existing),s=new Map,d=new Set;for(let[l,p]of e.entries()){if(p.op!=="create")continue;let f=zt(p,o,l,s,i),w=Wt(a.get(f)??[],o,f);if(w===void 0){p.unique={key:o,value:B(p,o,i)};continue}let h=O(w,n);typeof p.ref=="string"&&(r[p.ref]=h),Vt(p,h,i,{key:o,value:B(p,o,i)}),d.add(l)}return d}function Jt(e){let t=new Map;for(let n of e){if(n.value===void 0||n.value===null)continue;let i=v(n.value);t.set(i,[...t.get(i)??[],n.id])}return t}function zt(e,t,n,i,r){let o=B(e,t,r);if(o==null||o==="")throw new c(`Mutation ${n+1} is missing the upsert key "${t}".`,u.USAGE,{code:"upsert_key_missing",required:`Every create record must carry a non-empty "${t}" value when --upsert-key ${t} is set.`,why:"Keyed upsert identifies existing items by that field; a record without it cannot be matched or safely created."});let a=v(o),s=i.get(a);if(s!==void 0)throw new c(`Mutations ${s+1} and ${n+1} share the upsert key value ${JSON.stringify(a)} for "${t}".`,u.USAGE,{code:"upsert_key_duplicate",required:"Each record must carry a distinct upsert key value within one batch.",why:"Two records with the same key would race for the same existing item."});return i.set(a,n),a}function Wt(e,t,n){if(e.length>1)throw new c(`Upsert key "${t}" value ${JSON.stringify(n)} matches ${e.length} existing items: ${e.join(", ")}.`,u.CONFLICT,{code:"upsert_key_ambiguous",required:"Resolve the duplicate existing items or choose a key that is unique per item.",why:"An ambiguous key cannot select one item to update without guessing."});return e[0]}function Vt(e,t,n,i){let r=new Set([...tt.update,...ot("update",n)]),o=y(e.item)?rt(e.item,"update",n):Object.fromEntries(Object.entries(e.options).filter(([a])=>r.has(a)));delete e.item,delete e.ref,e.op="update",e.id=t,e.options=o,e.match=i}function st(e,t,n){for(let[i,r]of e.entries())if(r.ref!==void 0){if(r.op!=="create")throw new c(`Mutation ${i+1} ref is only valid for create operations.`,u.USAGE);if(typeof r.ref!="string"||!ze.test(r.ref))throw new c(`Mutation ${i+1} ref must match ${ze.source}.`,u.USAGE);if(n[r.ref]!==void 0)throw new c(`Duplicate mutation ref "${r.ref}".`,u.USAGE);n[r.ref]=typeof r.id=="string"&&r.id.trim().length>0?O(r.id,t.idPrefix):Rt(t.transactionId,r.ref,t.idPrefix)}return n}function ct(e,t){let n=Pt(e);xt(n);let i=n.map(p=>typeof p.ref=="string"?p.ref:void 0),r=Object.create(null),o=t.upsert===void 0?new Set:Lt(n,Gt(t.upsert,n,t),t.idPrefix,t.runtimeFields??[],r);qt(n,t.runtimeFields??[]),st(n,t,r),$t(n,i);let a=n.map(p=>{let f={...p},w=typeof f.ref=="string"?f.ref:void 0;if(delete f.ref,w!==void 0?f.id=r[w]:f.id=Be(f.id,r),y(f.options)){let h={...f.options};for(let g of["parent","blockedBy"])h[g]!==void 0&&(h[g]=Be(h[g],r));Array.isArray(h.dep)?h.dep=h.dep.map(g=>Ye(g,r)):h.dep!==void 0&&(h.dep=Ye(h.dep,r)),f.options=h}return f}),s=it(JSON.stringify(a),{runtimeFields:t.runtimeFields??[]}),d=s.filter(p=>p.op==="create").map(p=>p.id);if(new Set(d).size!==d.length)throw new c("Duplicate resolved create id in mutation document.",u.USAGE);let l=s.map((p,f)=>{let w=i[f];return{index:f,...typeof w=="string"?{ref:w}:{},id:p.id,op:p.op,...o.has(f)?{upserted:!0}:{}}});return{schema_version:1,mutations:s,references:r,rows:l}}function Bt(e,t){return t.filter(n=>e[n]!==void 0&&e[n]!==null).map(n=>{let i=String(e[n]);return`${n}=${/[",\n\r\\]/u.test(i)?JSON.stringify(i):i}`}).join(",")}function Yt(e,t,n){if(e!==void 0){if(!Array.isArray(e)||!e.every(y))throw new c(`${n} must be an array of objects.`,u.USAGE);return e.map(i=>Bt(i,t))}}function Ht(e,t){return e==="tags"&&Array.isArray(t)&&t.every(n=>typeof n=="string")?JSON.stringify(t):typeof t=="number"||typeof t=="boolean"?String(t):t}function He(e,t,n=!1){for(let[i,r,o]of De){let a=t[i],s=Yt(n&&["comments","notes","learnings"].includes(i)&&Array.isArray(a)?a.filter(d=>!y(d)||d.created_at===void 0):a,o,i);s!==void 0&&s.length>0&&(e[r]=s)}}function Xt(e,t){for(let n of Object.keys(e)){if(t){if(!$.includes(n))throw b("item envelope",n,$);continue}if(!S.has(n)&&U(n,[...S])===void 0&&U(n,$)==="item")throw b("item envelope",n,$)}}function Zt(e){let t=Object.hasOwn(e,"item");Xt(e,t);let n=t?e.item:e;if(!y(n))throw new c("Item document item must be an object.",u.USAGE);return{item:n,...t&&y(e.linked)?{linked:e.linked}:{}}}function Qt(e,t,n,i,r,o){if((i==="update"?It:et).has(t))return;let a=r.find(s=>s.metadata_key===t&&s.commands.includes(i));if(a!==void 0){let s=Ee(o,a);e[E(a)]=s!==void 0?s:a.type==="array"||a.type==="object"?JSON.stringify(n):n;return}if(!S.has(t)){if(U(t,[...S])!==void 0)throw b("item document",t,[...S]);let s=Array.isArray(e.field)?e.field:[];s.push(`${t}=${typeof n=="string"?n:JSON.stringify(n)}`),e.field=s;return}["dependencies","comments","notes","learnings","files","tests","docs","reminders","events","type_options"].includes(t)||(e[t.replaceAll(/_([a-z])/gu,(s,d)=>d.toUpperCase())]=Ht(t,n))}function en(e,t,n={},i=[]){let r=H(e,"Item document");if(!y(r))throw new c("Item document must be a JSON object.",u.USAGE);let{item:o,linked:a}=Zt(r),s={};for(let[d,l]of Object.entries(o)){let p=at(d,i);p!==d&&Object.hasOwn(o,p)||Qt(s,p,l,t,i,n)}if(He(s,o,t==="update"),a!==void 0&&He(s,a),t==="update"){let d=Object.fromEntries(["comments","notes","learnings"].filter(l=>Object.hasOwn(o,l)).map(l=>[l,o[l].filter(p=>y(p)&&p.created_at!==void 0)]));Object.keys(d).length>0&&(s.documentAnnotationSnapshot=d)}return{...s,...Object.fromEntries(Object.entries(n).filter(([,d])=>d!==void 0)),...Array.isArray(s.field)&&Array.isArray(n.field)?{field:[...s.field,...n.field]}:{},stdinJson:void 0}}function Ei(e){return it(JSON.stringify(e))}import ee from"node:crypto";import{constants as X}from"node:fs";import{cp as tn,lstat as ut,mkdir as nn,mkdtemp as pt,open as rn,readdir as on,realpath as lt,rm as mt,stat as te,writeFile as ft}from"node:fs/promises";import{tmpdir as yt}from"node:os";import m from"node:path";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="89f9137d-876a-5aa7-8272-f83df5edf9e9")}catch{}})();async function ne(e,t){if(!Te(e))return{schema:K(t.schema),typeDefinitionsFromFile:[]};let n=await fn(e,t.schema);return{schema:n.schema,typeDefinitionsFromFile:n.type_definitions_from_file??[]}}async function ie(e,t,n,i){let r=x({...t,item_types:{...t.item_types,definitions:[...t.item_types?.definitions??[],...n.typeDefinitionsFromFile]}},q());return(await Me(e,t.item_format,r.type_to_folder,void 0,n.schema)).flatMap(o=>{let a=o[i];return a==null?[]:[{id:o.id,value:a}]})}function ht(e){let t=new Map,n=async i=>{let r=await M(e),o=await ne(e,r),a=new Map;for(let s of await ie(e,r,o,i)){let d=v(s.value);a.set(d,[...a.get(d)??[],s.id])}return a};return{lookup(i){let r=t.get(i)??n(i);return t.set(i,r),r},async recordCreate(i){for(let[r,o]of t){let a=i[r];if(a==null)continue;let s=await o,d=v(a);s.set(d,[...s.get(d)??[],String(i.id)])}},invalidate(){t.clear()}}}async function an(e,t){let n=v(t.value),i=(await e.lookup(t.key)).get(n)??[];if(i.length!==0)throw new c(`Upsert key "${t.key}" value ${JSON.stringify(n)} now matches existing item ${i.join(", ")}; the plan was resolved before it existed.`,u.CONFLICT,{code:"upsert_key_conflict",required:"Re-plan the document so the row updates the existing item instead of creating a duplicate.",why:"Keyed upsert is resolved before the writer lock, so every remaining create is re-checked under the lock; concurrent imports therefore cannot create two items for one key value.",nextSteps:["Re-run pm item mutate with the same document and --upsert-key; the re-plan turns the row into an update of the existing item.","Inspect the existing item first when its content should win over the document row."]})}function sn(e,t,n){let i=e.metadata[n.key],r=v(n.value);if(v(i)!==r)throw new c(`Item ${t} no longer carries upsert key "${n.key}" value ${JSON.stringify(r)}; the plan selected it before the key changed.`,u.CONFLICT,{code:"upsert_match_changed",required:"Re-plan the document so the row is resolved against the current key values.",why:"Keyed upsert selects its target before the writer lock, so the update re-reads the key under the lock instead of updating a mismatched item blindly.",nextSteps:["Re-run pm item mutate with the same document and --upsert-key; the re-plan creates or re-targets the row from the current key values."]})}function dt(e){if(e===null||typeof e!="object"||Array.isArray(e))return!1;let t=e;return typeof t.key=="string"&&t.key.trim().length>0&&t.value!==void 0&&t.value!==null}function j(e,t){let n={...e,...t};return e===void 0?n:Ue(e,n)}async function _(e,t){try{let n=(await z(t,{},{pmRoot:e})).item;return{id:n.id,closedAt:n.closed_at,updatedAt:n.updated_at,assignee:n.assignee,claimPrincipal:n.claim_principal}}catch(n){if(n instanceof c&&n.exitCode===u.NOT_FOUND)return;throw n}}function re(e,t){let n=e.id.replaceAll(/[^a-zA-Z0-9._-]/gu,"_"),i=ee.createHash("sha256").update(le(e)).digest("hex").slice(0,12);return`${t+1}-${e.op}-${n}-${i}`}function cn(e,t){let n=e.id.replaceAll(/[^a-zA-Z0-9._-]/gu,"_");return`${t+1}-${e.op}-${n}`}function T(e,t,n){return`bulk-item-transaction ${e} ${t} ${n}`}async function F(e,t,n,i){let r=await L(m.join(e,"history",`${t}.jsonl`),t),o=T(n,i,"apply"),a=T(n,i,"compensate");for(let s=r.length-1;s>=0;s-=1){let d=r[s].message;if(d===o)return!0;if(d===a)return!1}return!1}async function oe(e,t){let n=await _(e,t.id);if(n?.updatedAt===void 0)throw new c(`Bulk ${t.op} target ${t.id} does not exist or has no restorable version`,u.NOT_FOUND);return{target_updated_at:n.updatedAt}}async function P(e,t,n,i){let r=i!==null&&typeof i=="object"&&!Array.isArray(i)?i.target_updated_at:void 0;typeof r=="string"&&await _(e.pmRoot,t)!==void 0&&await xe(t,r,{force:!0,author:e.author,message:T(e.transactionId,n,"compensate")},{pmRoot:e.pmRoot})}function wt(e,t,n){return{id:n,async inspect(){let i=await _(e.pmRoot,t.id);if(i===void 0)return{state:"pending"};if(i.closedAt!==void 0){let r=await L(m.join(e.pmRoot,"history",`${i.id}.jsonl`),i.id),o=`Compensated: interrupted bulk transaction ${e.transactionId}`;if(r.filter(a=>a.op==="close").at(-1)?.patch.some(a=>a.op==="add"||a.op==="replace"?a.path==="/metadata/close_reason"&&a.value===o:!1)??!1)throw new c(`Created item ${i.id} remains closed by transaction compensation; explicitly reopen or reconcile it before retrying.`,u.CONFLICT,{code:"transaction_create_compensated",item_id:i.id,required:"Review the compensated item and explicitly reopen it before retrying the same document.",why:"This item's latest closure belongs to transaction compensation. Automatically reopening it could overwrite later lifecycle decisions.",nextSteps:[`Run pm item reopen ${i.id} "Retry compensated creation" after reviewing its history, then retry the transaction.`]})}return{state:"applied",result:{id:i.id,op:"create"}}},async apply(){t.unique!==void 0&&await an(e.uniqueIndex,t.unique);let i=await je(j(t.options,{author:e.author,id:t.id}),{pmRoot:e.pmRoot}),r=i.item;return e.onCreateWarnings?.(String(r.id),i.warnings),await e.uniqueIndex.recordCreate(r),{id:String(r.id),op:"create"}},async compensate(){let i=await _(e.pmRoot,t.id);if(i!==void 0){if(e.createCompensation==="delete"){await Ge(t.id,{force:!0,author:e.author,message:`Compensate interrupted bulk transaction ${e.transactionId}`},{pmRoot:e.pmRoot});return}i.closedAt===void 0&&await W(t.id,`Compensated: interrupted bulk transaction ${e.transactionId}`,{force:!0,author:e.author},{pmRoot:e.pmRoot})}}}}function dn(e,t,n){return{id:n,async inspect(){let i=await _(e.pmRoot,t.id);return i===void 0?{state:"pending"}:await F(e.pmRoot,i.id,e.transactionId,n)?{state:"applied",result:{id:i.id,op:"update"}}:{state:"pending"}},async prepareCompensation(){return oe(e.pmRoot,t)},async apply(){let i=()=>Fe(t.id,j(t.options,{author:e.author,message:T(e.transactionId,n,"apply")}),{pmRoot:e.pmRoot}),r=t.match,o=(r===void 0?await i():await Ae({pmRoot:e.pmRoot,id:String((await z(t.id,{},{pmRoot:e.pmRoot})).item.id),validate:a=>sn(a,t.id,r)},i)).item;return e.uniqueIndex.invalidate(),{id:String(o.id),op:"update"}},async compensate(i){await P(e,t.id,n,i)}}}function un(e,t,n){return{id:n,async inspect(){let i=await _(e.pmRoot,t.id);return i===void 0?{state:"pending"}:await F(e.pmRoot,i.id,e.transactionId,n)?{state:"applied",result:{id:i.id,op:"close"}}:i.closedAt===void 0?{state:"pending"}:{state:"applied",result:{id:i.id,op:"close"}}},async prepareCompensation(){return oe(e.pmRoot,t)},async apply(){let i=(await W(t.id,t.reason,j(t.options,{author:e.author,message:T(e.transactionId,n,"apply")}),{pmRoot:e.pmRoot})).item;return e.uniqueIndex.invalidate(),{id:String(i.id),op:"close"}},async compensate(i){await P(e,t.id,n,i)}}}function pn(e,t,n){return{id:n,async inspect(){let i=await _(e.pmRoot,t.id);return i===void 0?{state:"pending"}:await F(e.pmRoot,i.id,e.transactionId,n)?{state:"applied",result:{id:i.id,op:"release"}}:i.assignee!==void 0||i.claimPrincipal!==void 0?{state:"pending"}:{state:"applied",result:{id:i.id,op:"release"}}},async prepareCompensation(){return oe(e.pmRoot,t)},async apply(){let i=(await Pe(t.id,j(t.options,{author:e.author,message:T(e.transactionId,n,"apply")}),{pmRoot:e.pmRoot})).item;return e.uniqueIndex.invalidate(),{id:String(i.id),op:"release"}},async compensate(i){await P(e,t.id,n,i)}}}function gt(e,t,n){let i=re(t,n);switch(t.op){case"create":return wt(e,t,i);case"update":return dn(e,t,i);case"close":return un(e,t,i);case"release":return pn(e,t,i)}}function ln(e,t){if(e===null||typeof e!="object"||Array.isArray(e))throw new TypeError(`Bulk mutation ${t+1} must be an object`);if(!["create","update","close","release"].includes(e.op))throw new TypeError(`Bulk mutation ${t+1} op must be create, update, close, or release`);if(typeof e.id!="string"||e.id.trim().length===0)throw new TypeError(`Bulk mutation ${t+1} requires a non-empty id`);if(e.op==="close"&&(typeof e.reason!="string"||e.reason.trim().length===0))throw new TypeError(`Bulk close mutation ${t+1} requires a non-empty reason`);if(e.op==="create"&&e.unique!==void 0&&!dt(e.unique))throw new TypeError(`Bulk create mutation ${t+1} unique must be an object with a non-empty key and a value`);if(e.op==="update"&&e.match!==void 0&&!dt(e.match))throw new TypeError(`Bulk update mutation ${t+1} match must be an object with a non-empty key and a value`);k(e.options,e.op,t)}function vt(e){if(e.length===0)throw new TypeError("Bulk item transaction requires at least one mutation");let t=new Map;for(let[n,i]of e.entries()){if(ln(i,n),i.op!=="create"||i.unique===void 0)continue;let{key:r,value:o}=i.unique,a=t.get(r)??new Map,s=v(o),d=a.get(s);if(d!==void 0)throw new c(`Bulk create mutations ${d+1} and ${n+1} share the upsert key value ${JSON.stringify(s)} for "${r}".`,u.USAGE,{code:"upsert_key_duplicate",required:"Each create must carry a distinct unique key value within one batch.",why:"Direct SDK batches must preserve the same uniqueness invariant as planned document rows."});a.set(s,n),t.set(r,a)}}async function Z(e,t,n){try{return await n()}catch(i){throw i instanceof c?new c(i.message,i.exitCode,{...i.context,transaction_operation:{index:t,op:e.op,id:e.id}}):i}}function _t(e,t,n,i){let r=m.relative(e,t);return["locks","runtime","search"].includes(r.split(m.sep)[0])?i.some(o=>r===o||r.startsWith(`${o}${m.sep}`)||o.startsWith(`${r}${m.sep}`)):r===""||n===void 0||n.some(o=>r===o||r.startsWith(`${o}${m.sep}`)||o.startsWith(`${r}${m.sep}`))}async function N(e,t){let n=await ut(t);if(n.isSymbolicLink())await te(t);else if(n.isDirectory()||n.isFile())return n;throw A(m.relative(e,t))}async function mn(e,t){let n=await rn(t,X.O_RDONLY|X.O_NOFOLLOW|X.O_NONBLOCK);try{let i=await n.stat();if(!i.isFile())throw A(m.relative(e,t));let r=ee.createHash("sha256");if(i.size>0)for await(let o of n.createReadStream({highWaterMark:64*1024,end:i.size-1,autoClose:!1}))r.update(o);return r.digest()}finally{await n.close()}}async function Q(e,t,n){let i=ee.createHash("sha256");async function r(o){for(let a of(await on(o)).sort()){let s=m.join(o,a);_t(e,s,t,n)&&((await N(e,s)).isDirectory()?await r(s):(i.update(JSON.stringify(m.relative(e,s))),i.update(await mn(e,s))))}}return await r(e),i.digest("hex")}function C(){return new c("Tracker changed while preparing the transaction preview; retry against stable state.",u.CONFLICT,{code:"transaction_preview_snapshot_changed"})}async function ae(e){if(!G(e))return!1;let t=e.path;if(typeof t!="string")return!1;let n=m.resolve(t),i=n;for(;;)try{let r=await ut(i);return i!==n&&r.isDirectory()}catch(r){if(!G(r))return!1;let o=m.dirname(i);if(o===i)return!1;i=o}}async function D(e,t){let n=m.join(e,t);try{let i=e;for(let r of t.split(m.sep).slice(0,-1))i=m.join(i,r),await N(e,i);if(!(await N(e,n)).isFile())throw A(t);return await ue(n,A(t))}catch(i){if(await ae(i))return;throw i}}async function Et(e,t,n,i){let r=K(n);for(let[o,a]of Object.entries(r.files)){let s=m.relative(e,ge(e,a,we[o]));if(s===""||!m.resolve(e,s).startsWith(m.join(e,m.sep)))throw new c("Transaction preview requires schema files inside the selected tracker root; relocate the configured schema file before retrying.",u.USAGE,{code:"transaction_preview_external_schema",field:`schema.files.${o}`});r.files[o]=s;let d=await D(e,s);if(i?.set(s,d),d!==void 0){let l=m.join(t,s);await nn(m.dirname(l),{recursive:!0}),await ft(l,d)}}return ve(t,r)}async function fn(e,t){await te(e);let n=await pt(m.join(yt(),"pm-schema-plan-"));try{let i=await lt(e);return await Et(i,m.join(n,"configuration"),t)}catch(i){throw await ae(i)?C():i}finally{await mt(n,{recursive:!0,force:!0})}}async function yn(e,t,n){let i=new Map,r=await D(e,I);i.set(I,r);let o;try{o=JSON.parse(r??"null")}catch{o=null}let a=be(o),s=a.success?a.data:void 0,d=await Et(e,t,s?.schema,i),l=d.schema,p=m.relative(e,Se(e));i.set(p,await D(e,p));let f=x({...de,item_types:{definitions:[...s?.item_types?.definitions??[],...d.type_definitions_from_file??[]]}},n),w=pe(e)===e?[...ce.filter(Boolean),I,ye,"transactions",...f.folders,...i.keys()].map(g=>m.normalize(g)):void 0,h=s===void 0?void 0:JSON.stringify({...o,schema:{...s.schema,files:l.files}});return{configuration:i,ownedPaths:w,stagedSettings:h,registryFolders:f.folders}}async function hn(e,t,n){await te(e);try{let i=await lt(e),r=await yn(i,m.join(m.dirname(t),"configuration"),n),o=[...r.configuration.keys(),...r.registryFolders].map(l=>m.normalize(l)),a=await Q(i,r.ownedPaths,o);await tn(i,t,{recursive:!0,dereference:!1,filter:async l=>_t(i,l,r.ownedPaths,o)?(await N(i,l),!0):!1});let[s,d]=await Promise.all([Q(i,r.ownedPaths,o),Q(t,r.ownedPaths,o)]);if(a!==s||a!==d)throw C();for(let[l,p]of r.configuration)if(await D(t,l)!==p)throw C();r.stagedSettings!==void 0&&await ft(m.join(t,I),r.stagedSettings)}catch(i){throw await ae(i)?C():i}}async function St(e){let t=Oe(e),n=[...e.mutations];vt(n);let i=q(),r=await pt(m.join(yt(),"pm-transaction-preview-")),o=m.join(r,"tracker");try{await hn(t.pmRoot,o,i);let a=!1,s=[];return await qe({path:o,noExtensions:!0},async()=>{fe(i);let d={...t,pmRoot:o,createCompensation:"close",uniqueIndex:ht(o)},l=n.map((p,f)=>{let w=gt({...d,onCreateWarnings:(h,g)=>{g.length>0&&s.push({index:f,id:h,op:"create",warnings:g})}},p,f);return{...w,inspect:()=>Z(p,f,()=>w.inspect()),prepareCompensation:()=>Z(p,f,async()=>w.prepareCompensation?.()),apply:()=>Z(p,f,()=>w.apply())}});await J({...t,pmRoot:o,steps:l,onTransition:({transition:p})=>{p==="committed"&&(a=!0)}})}),{validated:a,state:a?"staged_snapshot":"replayed_committed_plan",warnings:s,unresolved_commit_constraints:["concurrent_tracker_changes","extension_mutation_guards_and_hooks"]}}finally{await mt(r,{recursive:!0,force:!0})}}async function wn(e){let t=[...e.mutations];vt(t);let n=e.createCompensation??"close";if(!["close","delete"].includes(n))throw new TypeError("Bulk item transaction createCompensation must be close or delete");let i={pmRoot:e.pmRoot,author:e.author,transactionId:e.transactionId,createCompensation:n,uniqueIndex:ht(e.pmRoot)},r=await J({pmRoot:e.pmRoot,transactionId:e.transactionId,author:e.author,steps:t.map((a,s)=>gt(i,a,s)),...e.lockTtlSeconds===void 0?{}:{lockTtlSeconds:e.lockTtlSeconds},...e.lockWaitMs===void 0?{}:{lockWaitMs:e.lockWaitMs},...e.onTransition===void 0?{}:{onTransition:e.onTransition}}),o={};for(let[a,s]of t.entries()){let d=re(s,a),l=r.results[d];o[cn(s,a)]=l}return{transactionId:r.transactionId,status:"committed",recovered:r.recovered,results:o}}function gn(e){let t=[];return e.evidence!==void 0&&Object.keys(e.evidence).length>0&&t.push({op:"update",id:e.id,options:e.evidence}),t.push({op:"close",id:e.id,reason:e.reason,...e.closeOptions===void 0?{}:{options:e.closeOptions}},{op:"release",id:e.id,...e.releaseOptions===void 0?{}:{options:e.releaseOptions}}),t}function Bi(e){return wn({pmRoot:e.pmRoot,transactionId:e.transactionId,author:e.author,mutations:gn(e),...e.lockTtlSeconds===void 0?{}:{lockTtlSeconds:e.lockTtlSeconds},...e.lockWaitMs===void 0?{}:{lockWaitMs:e.lockWaitMs},...e.onTransition===void 0?{}:{onTransition:e.onTransition}})}var Yi={buildCreateStep:wt,bulkHistoryMarker:T,compensateByRestore:P,deriveStepId:re,isUpdateMarkerApplied:F,readItemSnapshot:_};(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3041c268-69c8-58e5-8a68-eaaa3c0dbd3b")}catch{}})();async function rr(e){let{plan:t}=e,n=await St({pmRoot:e.pmRoot,author:e.author,transactionId:t.transaction_id,mutations:t.mutations}),i=new Map(n.warnings.map(o=>[o.index,o.warnings])),r=t.rows.map(o=>{let a={...o};delete a.warnings;let s=i.get(o.index);return s!==void 0&&(a.warnings=s),a});return{validation:n,rows:r}}async function or(e){let t=e.upsertKey?.trim();if(t!==void 0&&t.length===0)throw new c("Upsert key must be a non-empty field name.",u.USAGE);let n=e.settings??await M(e.pmRoot),i=e.transactionId?.trim()??"",r=i.length>0?i:nt(e.input),o=await ne(e.pmRoot,n),a=_e(o.schema).definitions,s=(a.find(l=>l.metadata_key===t)??a.find(l=>l.key===t||E(l)===t))?.metadata_key??R(t),d=s===void 0?void 0:{key:s,existing:await ie(e.pmRoot,n,o,s)};return{...ct(e.input,{transactionId:r,idPrefix:n.id_prefix,runtimeFields:a,...d===void 0?{}:{upsert:d}}),transaction_id:r,transaction_id_source:i.length>0?"explicit":"derived",...d===void 0?{}:{upsert_key:d.key}}}export{nt as a,_i as b,it as c,v as d,ct as e,en as f,Ei as g,ne as h,ie as i,fn as j,St as k,wn as l,gn as m,Bi as n,Yi as o,rr as p,or as q};
|
|
2
|
+
//# sourceMappingURL=chunk-DIR3YEFD.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{$e as $,Bi as V,Of as W,Re as U,lh as H,pa as G,ri as L,wi as P,xa as E,z as F}from"./chunk-KBSVPUFD.js";import{d as K}from"./chunk-4OYU5OXQ.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 B}from"./chunk-GWIGZDRS.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 ae="PM_SOURCE_CONTEXT_ACCESS",se="PM_ALLOW_SOURCE_CONTEXT_WRITES";function J(e){let r=e[ae],i=r===void 0||r.trim().toLowerCase()==="write"?"write":"read_only",t=i==="read_only"&&e[se]?.trim()==="1";return{access:i,write_override_applied:t,source_writes_allowed:i==="write"||t}}import{access as ce,readFile as A,realpath as w}from"node:fs/promises";import{constants as le}from"node:fs";import{execFile as me}from"node:child_process";import c from"node:path";import{promisify as ue}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]="da37bda1-1520-5db0-9dad-bb1acc556de8")}catch{}})();var _=ue(me),T="# pm-cli:merge-drivers:start",de="# pm-cli:merge-drivers:end",x="# pm-cli:merge-drivers:v2:start",Y="# pm-cli:merge-drivers:v2:end",pe="merge-fence",fe="merge-attributes";function R(e){return`'${e.replaceAll("'",`'"'"'`)}'`}async function ge(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 he(){let e=F(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 ce(n,le.X_OK),o!==void 0){let p=await ge(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 Q=[{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 we(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 Z(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 ee(e){let r=await Z(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).replaceAll("\\","/")}function h(e){return`"${e.replaceAll("\\","\\\\").replaceAll('"','\\"')}"`}function z(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 ye(e,r,i){if(V(r).filter(o=>o.constraint==="exact").some(o=>o.version!==i))return!1;let t=await Z(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 ve(e,r,i){let t=z(e,0);if(t===null||e[t.nextOffset]!==" ")return!1;let o=z(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 ye(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?`${e}/`:"",t=[`${h(`${i}**/*.toon`)} merge=pm-item-toon`,`${h(`${i}**/*.md`)} merge=pm-item-markdown`];for(let o of r)t.push(`${h(`${i}${o}/*.toon`)} merge=pm-item-toon`),t.push(`${h(`${i}${o}/*.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 te(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?Y:de,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 re(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 ie(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,fe,120,"merge-fence",!1,!0,5e3);try{let n=await N(o)??"",p=[x,...i,Y].join(`
|
|
3
3
|
`),u=te(n),m=u.filter(d=>re(d.lines,i,r));m.length===0&&r===".agents/pm"&&u.length===1&&u[0].lines.every(d=>!d.includes(".agents/pm/"))&&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 B(o,l),{path:o,changed:!0})}finally{await s?.()}}function oe(e){let r=G(e,null);return[...new Set(Object.values(r.type_to_folder))].sort((i,t)=>i.localeCompare(t))}async function Le(e,r){let i=c.resolve(e),t=null,o="",a=i;for(let g=0;g<8;g+=1){let ne=c.join(a,".gitattributes");try{let C=await A(ne,"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=te(o),u=M(n,r),m=p.filter(g=>re(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 Ve(e){let r=[],i=[];for(let t of Q){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 ve(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 Ke(e){let r;try{r=await ee(c.resolve(e))}catch{return{status:"no_git"}}let i=O(r,c.resolve(e)),t=await P(e),o=H(void 0,t.author_default),a=await $(e,pe,t.locks.ttl_seconds,o,!1,L(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=oe(p),m=await ie(r,i,M(i,u),!1);return{status:m.changed?"refreshed":"unchanged",path:m.path}}finally{await a()}}async function Xe(e,r){let i=we({cwd:process.cwd(),explicitPath:r.path,dryRun:e.dryRun===!0,environment:process.env}),t=i.pm_root;await W(t);let o=await ee(i.workspace_start);return be({pmRoot:t,workspaceRoot:o,dryRun:e.dryRun===!0,preCommitHook:e.preCommitHook===!0})}async function _e(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
|
-
`);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 be(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=oe(n),u=M(s,p),m=[],l=await he(),d=e.preCommitHook===!0?await import("./settlement-hook-
|
|
8
|
-
//# sourceMappingURL=chunk-
|
|
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 be(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=oe(n),u=M(s,p),m=[],l=await he(),d=e.preCommitHook===!0?await import("./settlement-hook-UVFYSBMU.js").then(async f=>({plan:await f.prepareMergeSettlementHook(a,`${l} --pm-path ${R(s||".")}`),write:f.writeMergeSettlementHook})):void 0;for(let f of Q)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 _e(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 ie(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:U()}}export{ae as a,se as b,J as c,T as d,de as e,x as f,Y as g,we as h,Z as i,M as j,oe as k,Le as l,Ve as m,Ke as n,Xe as o,be as p};
|
|
8
|
+
//# sourceMappingURL=chunk-DJQVNDXO.js.map
|