@unbrained/pm-cli 2026.10.15 → 2026.10.17
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/.agents/skills/pm-developer/references/COMMAND_PLAYBOOK.md +1 -1
- package/.claude-plugin/marketplace.json +1 -1
- package/AGENTS.md +1 -0
- package/CHANGELOG.md +20 -0
- package/dist/cli/extension-command-options.d.ts +3 -1
- package/dist/cli/extension-command-options.js +1 -1
- package/dist/cli/help-content.js +2 -2
- package/dist/cli/register-mutation.js +2 -2
- package/dist/cli/register-operations.js +1 -1
- package/dist/cli/register-structured-mutation.d.ts +0 -5
- package/dist/cli/register-structured-mutation.js +1 -1
- package/dist/cli/runtime/invocation-options.js +1 -1
- package/dist/cli-bundle/bundle-manifest.json +1 -1
- package/dist/cli-bundle/chunks/{chunk-7VHINXZP.js → chunk-3QKI3XNX.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-4PNPDT2N.js +236 -0
- package/dist/cli-bundle/chunks/{chunk-WBBW3WQX.js → chunk-6ZDKKOKM.js} +28 -28
- package/dist/cli-bundle/chunks/{chunk-LNKLQYBG.js → chunk-B5QVGCZX.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-52EZH2QQ.js → chunk-EA2CG7UM.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-HY7FQ7QX.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-NC3QVGDD.js → chunk-J4LPQCET.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-JGKTOBVB.js → chunk-JS3B2M4D.js} +4 -4
- package/dist/cli-bundle/chunks/chunk-O4YBC3OM.js +30 -0
- package/dist/cli-bundle/chunks/{chunk-N56CAQBU.js → chunk-OZCSXX4D.js} +52 -52
- package/dist/cli-bundle/chunks/chunk-VMCSTFSO.js +2 -0
- package/dist/cli-bundle/chunks/chunk-W3KZ22DW.js +2 -0
- package/dist/cli-bundle/chunks/{chunk-RJ5N44WY.js → chunk-X2ONXFBP.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-7OEGNA4X.js → chunk-X53HM753.js} +2 -2
- package/dist/cli-bundle/chunks/{register-list-query-FKKFQ66D.js → register-list-query-RU3QZSAQ.js} +2 -2
- package/dist/cli-bundle/chunks/register-mutation-EQYMT32A.js +20 -0
- package/dist/cli-bundle/chunks/{register-operations-GEQ2H7PS.js → register-operations-VXBGE4XI.js} +2 -2
- package/dist/cli-bundle/chunks/{register-setup-PSJTQBBO.js → register-setup-UUDEGFRO.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-TYLG5VEB.js → chunk-2IOHHNRT.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-PDYE7QDX.js → chunk-5JEFDEL3.js} +30 -30
- package/dist/cli-bundle/focused-chunks/{chunk-3RNUMVK4.js → chunk-AH6NX6GM.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-N6FUKTZS.js → chunk-E33QA7PK.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-4KQFMOM7.js → chunk-FTUZ3JF2.js} +5 -5
- package/dist/cli-bundle/focused-chunks/{chunk-5OO54BIV.js → chunk-JXR6UKFM.js} +3 -3
- package/dist/cli-bundle/focused-chunks/chunk-LDKX4KYJ.js +2 -0
- package/dist/cli-bundle/focused-chunks/{chunk-H3P77KVU.js → chunk-MBQF6HT6.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-5TBAVZDR.js → chunk-NZO7GOXD.js} +14 -14
- package/dist/cli-bundle/focused-chunks/{chunk-52I2SNKJ.js → chunk-PYC7BF6Z.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-THYQR3ON.js → chunk-QOSVJDOO.js} +59 -59
- package/dist/cli-bundle/focused-chunks/{chunk-FQKPOZKS.js → chunk-RBLSY6ML.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-Q4VNCTR2.js → chunk-RHTH5ILM.js} +2 -2
- package/dist/cli-bundle/focused-chunks/{chunk-5KRACGBK.js → chunk-SIGIGZCG.js} +3 -3
- package/dist/cli-bundle/focused-chunks/chunk-TRFVAWF2.js +26 -0
- package/dist/cli-bundle/focused-chunks/{chunk-KIIFVULU.js → chunk-UNTQE37U.js} +2 -2
- package/dist/cli-bundle/main.js +27 -27
- 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 +54 -54
- 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 +7 -7
- package/dist/core/extensions/extension-types.d.ts +15 -0
- package/dist/core/extensions/extension-types.js +1 -1
- package/dist/core/extensions/flag-value-types.d.ts +16 -0
- package/dist/core/extensions/flag-value-types.js +1 -1
- package/dist/core/extensions/registration-contracts.js +1 -1
- package/dist/core/item/item-format.js +3 -3
- package/dist/core/output/mutation-projection.d.ts +0 -21
- package/dist/core/output/mutation-projection.js +1 -1
- package/dist/core/schema/type-workflows.d.ts +1 -1
- package/dist/core/schema/type-workflows.js +1 -1
- package/dist/core/shared/text-normalization.d.ts +2 -0
- package/dist/core/shared/text-normalization.js +1 -1
- package/dist/core/store/item-mutation-precondition.d.ts +11 -0
- package/dist/core/store/item-mutation-precondition.js +2 -0
- package/dist/core/store/item-store.js +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/tool-definitions.js +1 -1
- package/dist/sdk/cli-contracts/agent-output-contracts.js +1 -1
- package/dist/sdk/cli-contracts/flag-contracts.js +1 -1
- package/dist/sdk/cli-contracts/flag-lexicon-contracts.js +1 -1
- package/dist/sdk/cli-contracts/registration-helpers.d.ts +1 -1
- package/dist/sdk/cli-contracts/registration-helpers.js +1 -1
- package/dist/sdk/cli-contracts/tool-schema.d.ts +2 -2
- package/dist/sdk/cli-contracts/tool-schema.js +1 -1
- package/dist/sdk/context-intent-contracts.js +1 -1
- package/dist/sdk/core.d.ts +2 -1
- package/dist/sdk/core.js +1 -1
- package/dist/sdk/generated/generated-error-code-catalog-part-1.js +1 -1
- package/dist/sdk/generated/generated-error-code-catalog-part-2.js +1 -1
- package/dist/sdk/guide-topics.js +1 -1
- package/dist/sdk/index.d.ts +2 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/item-transaction.d.ts +72 -9
- package/dist/sdk/item-transaction.js +1 -1
- package/dist/sdk/lifecycle/claim.d.ts +15 -1
- package/dist/sdk/lifecycle/claim.js +1 -1
- package/dist/sdk/lifecycle/close.d.ts +2 -8
- package/dist/sdk/lifecycle/close.js +1 -1
- package/dist/sdk/lifecycle/core-item-fields.d.ts +6 -0
- package/dist/sdk/lifecycle/core-item-fields.js +2 -0
- package/dist/sdk/lifecycle/mcp-actions.js +1 -1
- package/dist/sdk/lifecycle/mutation-option-validation.d.ts +2 -0
- package/dist/sdk/lifecycle/mutation-option-validation.js +2 -0
- package/dist/sdk/lifecycle/release-handoff.d.ts +12 -0
- package/dist/sdk/lifecycle/release-handoff.js +2 -0
- package/dist/sdk/lifecycle/structured-mutation-plan.d.ts +33 -0
- package/dist/sdk/lifecycle/structured-mutation-plan.js +2 -0
- package/dist/sdk/lifecycle/task-composition.d.ts +2 -2
- package/dist/sdk/lifecycle/task-composition.js +1 -1
- package/dist/sdk/lifecycle/update.d.ts +3 -11
- package/dist/sdk/lifecycle/update.js +1 -1
- package/dist/sdk/lifecycle/workflow-transition.d.ts +13 -0
- package/dist/sdk/lifecycle/workflow-transition.js +2 -0
- package/dist/sdk/lifecycle-policy.d.ts +12 -2
- package/dist/sdk/lifecycle-policy.js +1 -1
- package/dist/sdk/public-surface.json +1 -1
- package/dist/sdk/read-output-budget.js +1 -1
- package/dist/sdk/runtime-input.js +1 -1
- package/dist/sdk/runtime-primitives.d.ts +1 -1
- package/dist/sdk/runtime-primitives.js +1 -1
- package/dist/sdk/runtime.d.ts +8 -8
- package/dist/sdk/runtime.js +1 -1
- package/dist/sdk/structured-mutations.d.ts +52 -1
- package/dist/sdk/structured-mutations.js +1 -1
- package/dist/sdk/workspace-transaction.js +2 -2
- package/docs/AGENT_GUIDE.md +33 -4
- package/docs/CLOSE_EVIDENCE_RECOVERY.md +16 -7
- package/docs/COMMANDS.md +85 -10
- package/docs/ECOSYSTEM_PLANNING_REVIEW.md +5 -1
- package/docs/EXTENSIONS.md +1 -1
- package/docs/SDK.md +114 -2
- package/docs/TESTING.md +15 -0
- package/docs/generated/FLAG_LEXICON_BUDGETS.md +1 -1
- package/docs/generated/REFUSAL_CLOSURE_CENSUS.md +16 -3
- package/marketplace.json +1 -1
- package/package.json +2 -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-EMEEHV2Y.js +0 -2
- package/dist/cli-bundle/chunks/chunk-JSUJWIHQ.js +0 -30
- package/dist/cli-bundle/chunks/chunk-VIMQCFCK.js +0 -2
- package/dist/cli-bundle/chunks/chunk-X2H6UR26.js +0 -236
- package/dist/cli-bundle/chunks/register-mutation-EWMMVZJB.js +0 -20
- package/dist/cli-bundle/focused-chunks/chunk-HTA3TNC3.js +0 -26
- package/dist/cli-bundle/focused-chunks/chunk-JKBH7YGX.js +0 -2
- package/docs/ecosystem-review-2026-09-28.json +0 -1
|
@@ -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]="4853228f-bd17-5266-970b-10bd2f6941f9")}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}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 validation=await previewItemMutations({pmRoot,transactionId,author,mutations});printResult({...receipt,dry_run:!0,validation,mutation_count:mutations.length,mutations,references,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,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]="298624a5-da1b-53ca-aefb-19fbc3fa0401")}catch{}})();import{resolveSubcommandFlagContractsForCommand}from"../../sdk/cli-contracts.js";import{resolvePmCommandOperation}from"../../sdk/cli-contracts/command-aliases.js";import{PM_READ_OUTPUT_SURFACE_CONTRACTS,applyReadOutputIncludeModes,readOutputIncludeModeOptions,resolveReadOutputSurface}from"../../sdk/read-output-contracts.js";import{EXIT_CODE,PmCliError}from"../../sdk/runtime-primitives.js";import{extractProvidedOptionFlags}from"../argv-utils.js";import{normalizeExtensionCommandPath}from"../extension-command-help.js";import{coerceLooseCommandOptionsWithFlagDefinitions,collectLooseCommandOptionKeysForDefinitions,parseLooseCommandOptions,validateLooseCommandOptionsWithFlagDefinitions}from"../extension-command-options.js";import{getCommandPath,setResolvedGlobalOptions}from"../registration-helpers.js";const READ_OUTPUT_INVOCATION_PROVENANCE=Symbol.for("pm.readOutputInvocationProvenance");function copyReadOutputInvocationProvenance(source,target){const provenance=Reflect.get(source,READ_OUTPUT_INVOCATION_PROVENANCE);provenance!==void 0&&Reflect.set(target,READ_OUTPUT_INVOCATION_PROVENANCE,provenance)}function recordCliReadOutputInvocationProvenance(actionCommand,commandPath,commandOptions){const surface=resolveReadOutputSurface(commandPath,commandOptions);if(!surface)return;let rootCommand=actionCommand;for(;rootCommand.parent;)rootCommand=rootCommand.parent;const rawArgs=rootCommand.rawArgs,providedFlags=new Set(extractProvidedOptionFlags(rawArgs.slice(2))),contract=PM_READ_OUTPUT_SURFACE_CONTRACTS.find(candidate=>candidate.command===surface),explicitLegacyAliases=Object.values(contract?.dimensions??{}).flatMap(dimension=>dimension.legacy_aliases.flatMap(alias=>providedFlags.has(alias.flag)?[alias.flag]:[])),previous=Reflect.get(commandOptions,READ_OUTPUT_INVOCATION_PROVENANCE);Reflect.set(commandOptions,READ_OUTPUT_INVOCATION_PROVENANCE,{canonical_include_modes:previous?.canonical_include_modes??[],explicit_legacy_aliases:explicitLegacyAliases,cli_invocation_observed:!0}),copyReadOutputInvocationProvenance(commandOptions,actionCommand)}function collectCommandInvocationOptions(command){const allOptions=command.optsWithGlobals(),commandPath=getCommandPath(command);if(resolvePmCommandOperation(commandPath)===commandPath)return allOptions;const ownOptions=command.opts();for(let parent=command.parent;parent?.parent;parent=parent.parent)for(const option of parent.options){const key=option.attributeName(),suppliedOnParent=parent.getOptionValueSource(key)==="cli";if(suppliedOnParent&&!command.options.some(candidate=>candidate.long===option.long))throw new PmCliError(`Unknown option '${option.long}' for ${commandPath}`,EXIT_CODE.USAGE,{code:"unknown_option",flag:option.long,required:`Use options declared by pm ${commandPath} --help.`});if(suppliedOnParent&&command.getOptionValueSource(key)!=="cli"){const value=parent.getOptionValue(key);command.setOptionValueWithSource(key,value,"cli")}key in ownOptions?allOptions[key]=ownOptions[key]:delete allOptions[key]}return allOptions}function forwardReadOutputIncludeModes(actionCommand,commandPath,globalOptions,commandOptions){recordCliReadOutputInvocationProvenance(actionCommand,commandPath,commandOptions);const requested=globalOptions.outputInclude;if(requested===void 0)return;const{selectors,modes}=applyReadOutputIncludeModes(commandPath,requested,commandOptions);if(commandPath==="get"&&typeof commandOptions.fields=="string"&&actionCommand.setOptionValueWithSource("fields",commandOptions.fields,"cli"),modes.length===0)return;copyReadOutputInvocationProvenance(commandOptions,actionCommand);const modeOptions=readOutputIncludeModeOptions(commandPath);for(const mode of modes){const key=modeOptions.get(mode),value=commandOptions[key];actionCommand.setOptionValueWithSource(key,value,"cli")}const residual=selectors.length>0?selectors.join(","):void 0;residual===void 0?delete globalOptions.outputInclude:globalOptions.outputInclude=residual;for(let scope=actionCommand;scope;scope=scope.parent)scope.setOptionValueWithSource("outputInclude",residual,"cli");setResolvedGlobalOptions(actionCommand,globalOptions)}function extractCommandScopedOptions(command,commandArgs,extensionFlagDefinitions=[]){const scoped={...collectCommandInvocationOptions(command)};copyReadOutputInvocationProvenance(command,scoped),delete scoped.json,delete scoped.quiet,delete scoped.path,delete scoped.pmPath,delete scoped.noExtensions,delete scoped.extensions,delete scoped.profile,delete scoped.pager,delete scoped.changedFields,delete scoped.fullChangedFields,delete scoped.idOnly,delete scoped.lean,delete scoped.tokenAccounting,delete scoped.outputInclude,delete scoped.outputLimit,delete scoped.outputBudget,delete scoped.outputFormat,delete scoped.outputSession;const looseOptions=parseLooseCommandOptions(commandArgs);for(const[key,value]of Object.entries(looseOptions))scoped[key]===void 0&&(scoped[key]=value);if(extensionFlagDefinitions.length>0){const extensionOptionKeys=collectLooseCommandOptionKeysForDefinitions(extensionFlagDefinitions),coreFlagDefinitions=resolveSubcommandFlagContractsForCommand(getCommandPath(command)).map(contract=>({long:contract.flag,short:contract.short,aliases:contract.aliases})),optionsToValidate={...looseOptions};for(const key of extensionOptionKeys)scoped[key]!==void 0&&(optionsToValidate[key]=scoped[key]);validateLooseCommandOptionsWithFlagDefinitions(optionsToValidate,[...coreFlagDefinitions,...extensionFlagDefinitions],getCommandPath(command));const coerced=coerceLooseCommandOptionsWithFlagDefinitions(scoped,extensionFlagDefinitions,looseOptions,getCommandPath(command));return copyReadOutputInvocationProvenance(scoped,coerced),coerced}return scoped}function collectExtensionFlagDefinitionsForCommand(registrations,commandPath){const normalizedCommandPath=normalizeExtensionCommandPath(commandPath);return normalizedCommandPath.length===0?[]:registrations.flags.filter(entry=>resolvePmCommandOperation(normalizeExtensionCommandPath(entry.target_command))===resolvePmCommandOperation(normalizedCommandPath)).flatMap(entry=>entry.flags)}function collectExtensionFlagDefinitionsForInvocation(registrations,commandPath,commandArgs){const exact=collectExtensionFlagDefinitionsForCommand(registrations,commandPath),pathParts=[commandPath];let nestedMatch=[];for(const arg of commandArgs){if(arg.startsWith("-"))break;pathParts.push(arg);const nested=collectExtensionFlagDefinitionsForCommand(registrations,pathParts.join(" "));nested.length>0&&(nestedMatch=nested)}return nestedMatch.length>0?nestedMatch:exact}function dynamicCommandArguments(descriptor){return descriptor.arguments??[]}function formatDynamicCommandUsage(descriptor){const argumentSuffix=dynamicCommandArguments(descriptor).map(argument=>{const label=argument.variadic?`${argument.name}...`:argument.name;return argument.required?`<${label}>`:`[${label}]`}).join(" ");return`pm ${descriptor.command}${argumentSuffix?` ${argumentSuffix}`:""}`}function isImporterOrExporterCommandPath(registrations,commandPath){if(!registrations)return!1;const normalized=normalizeExtensionCommandPath(commandPath);return registrations.importers.some(entry=>normalizeExtensionCommandPath(`${entry.importer} import`)===normalized)||registrations.exporters.some(entry=>normalizeExtensionCommandPath(`${entry.exporter} export`)===normalized)}function validateDynamicExtensionCommandArgs(descriptor,args){const descriptorArguments=dynamicCommandArguments(descriptor),requiredCount=descriptorArguments.filter(argument=>argument.required).length,maxCount=descriptorArguments.some(argument=>argument.variadic)?Number.POSITIVE_INFINITY:descriptorArguments.length,failureHints=descriptor.failure_hints??[],hintSuffix=failureHints.length>0?` ${failureHints.join(" ")}`:"";if(args.length<requiredCount)throw new PmCliError(`Missing required argument for extension command '${descriptor.command}'. Usage: ${formatDynamicCommandUsage(descriptor)}${hintSuffix}`,EXIT_CODE.USAGE);if(args.length>maxCount){const extra=args.slice(maxCount).join(" ");throw new PmCliError(`Too many arguments for extension command '${descriptor.command}': ${extra}. Usage: ${formatDynamicCommandUsage(descriptor)}${hintSuffix}`,EXIT_CODE.USAGE)}}function formatDynamicOptionFlag(optionKey){return`--${optionKey.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/_/g,"-").toLowerCase()}`}function validateDynamicExtensionCommandOptions(descriptor,options,extensionFlagDefinitions){if(extensionFlagDefinitions.length>0){validateLooseCommandOptionsWithFlagDefinitions(options,extensionFlagDefinitions,descriptor.command);return}const unknownOptions=Object.keys(options).filter(key=>options[key]!==void 0).sort();if(unknownOptions.length!==0)throw new PmCliError(`Unknown option '${unknownOptions.map(formatDynamicOptionFlag).join(", ")}' for extension command '${descriptor.command}'. This command does not define extension flags.`,EXIT_CODE.USAGE)}function validateDynamicExtensionCommandInvocation(descriptor,args,options,extensionFlagDefinitions){descriptor&&(validateDynamicExtensionCommandArgs(descriptor,args),validateDynamicExtensionCommandOptions(descriptor,options,extensionFlagDefinitions))}export{collectExtensionFlagDefinitionsForCommand,collectExtensionFlagDefinitionsForInvocation,copyReadOutputInvocationProvenance,dynamicCommandArguments,extractCommandScopedOptions,forwardReadOutputIncludeModes,isImporterOrExporterCommandPath,recordCliReadOutputInvocationProvenance,validateDynamicExtensionCommandArgs,validateDynamicExtensionCommandInvocation};
|
|
2
2
|
//# sourceMappingURL=invocation-options.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"schema_version":1,"generation":"457f10cc6d2e73a3ab470e0e90de9e28fa7a2b88b2cbf1a5cc833caa20f28db1","files":[{"path":"chunks/chunk-52EZH2QQ.js","sha256":"beefa320624e472408419e39aac37f2733aae646c31fe3ac81c64d9a4bf8696a"},{"path":"chunks/chunk-52EZH2QQ.js.map","sha256":"6b34a8705de6f3da0cea90f67a38f66525bb3d9c19a79f0f7d8a47290729ee05"},{"path":"chunks/chunk-7OEGNA4X.js","sha256":"9ddd5af161b5d536d79625ac2b48ff2af5dac30d6e78a33394ec356039817bfd"},{"path":"chunks/chunk-7OEGNA4X.js.map","sha256":"08aa19363e9517ec37ce5ccc8468c9888442530995bb191ed73848356cc316e0"},{"path":"chunks/chunk-7VHINXZP.js","sha256":"571ca463b832224cf09af4e89d842f03111d452b8ad22d6f4cd31a0e1280748f"},{"path":"chunks/chunk-7VHINXZP.js.map","sha256":"6fd279b7be9c6be35b8c167ca9cf6f8347dab5eb241870f1e4f22ae9185bdd5d"},{"path":"chunks/chunk-DEZPZOQ7.js","sha256":"ef11ddab9ecc9533cac75ccc8ca41058a59382dfbe3262033fa21c7264d73b0d"},{"path":"chunks/chunk-DEZPZOQ7.js.map","sha256":"ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"},{"path":"chunks/chunk-EMEEHV2Y.js","sha256":"603b21d8b57be81329c61f17abba84c678446b95baf85a00336fa681774b8442"},{"path":"chunks/chunk-EMEEHV2Y.js.map","sha256":"391c61ecd76bc945b61ff34fb403562435f33bd38aab6e080cd3d1cd3196a8ee"},{"path":"chunks/chunk-JGKTOBVB.js","sha256":"7e25ca56944b5c49cb98e71b796c7538a4e03f8f524858c71c1efd05facbaa75"},{"path":"chunks/chunk-JGKTOBVB.js.map","sha256":"7b441b4ee9e472fc09e5d490bad32b1973e55838ed6d0fc75008f750d80d77b4"},{"path":"chunks/chunk-JSUJWIHQ.js","sha256":"111694ee3b95db7c868fffbd5fd0799b32ea5e6c627303da030b21cb7e7e8fde"},{"path":"chunks/chunk-JSUJWIHQ.js.map","sha256":"6d8a870478868ffa0ea492360d63d3987b4bd5bb746cc589bd49bec21ceba948"},{"path":"chunks/chunk-LNKLQYBG.js","sha256":"93eb45d3393ff6bb85f9a0ad6d729f3b62eae3152ca9e6673bb10b771d54c1a3"},{"path":"chunks/chunk-LNKLQYBG.js.map","sha256":"3ef6aaaab9d223b065b678a7eb29cc8fb1a241156372d5809b00812dd5a84afb"},{"path":"chunks/chunk-N56CAQBU.js","sha256":"6b1ef608b11b8876677a7845948dceeb86eb689c23d926b13700f00390a2830d"},{"path":"chunks/chunk-N56CAQBU.js.map","sha256":"d6f3942cd63156f75d17f3b61a65344b352b845203d612158cdb0535f1c83b5a"},{"path":"chunks/chunk-NC3QVGDD.js","sha256":"5d80cecd07b4075f71793130e8a92fd9cd132210bca8979fad100a0ccf24901b"},{"path":"chunks/chunk-NC3QVGDD.js.map","sha256":"f83f816ab354023c72bd82003209f6ba352c64f22e1817e1cbf8259369de2a99"},{"path":"chunks/chunk-RJ5N44WY.js","sha256":"8229b1b9f6f4f93cb51183fbcc319f751b124be4a0f0271f675d77bf0a655597"},{"path":"chunks/chunk-RJ5N44WY.js.map","sha256":"c43602cd3cf04ccecc1f5261ca311d9d66f8fe228f26b20a9837f63a5f5f2b09"},{"path":"chunks/chunk-SGFQQXFD.js","sha256":"27cfd4152f894bbd21c5d4f1d8ba40ea447d11983ec3b09a578d8bbc787522d7"},{"path":"chunks/chunk-SGFQQXFD.js.map","sha256":"ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"},{"path":"chunks/chunk-VIMQCFCK.js","sha256":"506d6dbb94a8047868b33d0b9c2e312d3b09f6ef2ef80bf256a63327a64c2c2d"},{"path":"chunks/chunk-VIMQCFCK.js.map","sha256":"e973479f265ccf8e2165e740433cabf2f2d91885c998ed1e064d82d149aec0fc"},{"path":"chunks/chunk-WBBW3WQX.js","sha256":"63260af7c88a07169d4759cf866953665c902d6716978622273fdc0c2eb9eb0d"},{"path":"chunks/chunk-WBBW3WQX.js.map","sha256":"2ed4322ef57a51879494721a7baabf97365dbe34d559ad685750fa48075873ef"},{"path":"chunks/chunk-X2H6UR26.js","sha256":"d1f9ea67e7728bb8c1f7cb7e2867b8f61b00032a3b0a7f10fe56eb4b5f2a9bc7"},{"path":"chunks/chunk-X2H6UR26.js.map","sha256":"0fa37ad29e716cc3437d98a311791ff93c7965feb002c8fdc1bede4a635e0fa3"},{"path":"chunks/register-list-query-FKKFQ66D.js","sha256":"d038def81332ba5e7907d5232e7b25d6b1979e63812835dd4bec838ec320f119"},{"path":"chunks/register-list-query-FKKFQ66D.js.map","sha256":"65a136693350e1f4c7e6d4e17958756d292205eb3b3306cd10fbf299f88e249e"},{"path":"chunks/register-mutation-EWMMVZJB.js","sha256":"392d412ad4c0400fbbd34f107e17d783ac2ea3ffac826d9efa4929c226d70bb7"},{"path":"chunks/register-mutation-EWMMVZJB.js.map","sha256":"78151d1799d481a4a7340eede44be1be0cc9016f4ab0067af114252b452ab09e"},{"path":"chunks/register-operations-GEQ2H7PS.js","sha256":"67055a04417859831b947a48ecf0a11cce3fd53633aef99ffe10d3e99ecb1932"},{"path":"chunks/register-operations-GEQ2H7PS.js.map","sha256":"0292106a7c257876ebe20dff857708ccaebcc4d3373923d0292416a55d2f5faa"},{"path":"chunks/register-setup-PSJTQBBO.js","sha256":"1885e296bcc7e7625a6daa9f81391945f6d2e89e75425645668b1757e8679964"},{"path":"chunks/register-setup-PSJTQBBO.js.map","sha256":"8d0b4b046e9171902d34fc24470baef90c50e8c9ea4a62fd2d698fb406cec70e"},{"path":"focused-chunks/chunk-3RNUMVK4.js","sha256":"119a22161d7d70675d61fa49d1ad5ced9754a8bbdebe8bc5ce32bbcad6491926"},{"path":"focused-chunks/chunk-3RNUMVK4.js.map","sha256":"d614b1676205d858c9d89bc26e452999660859dd694eef762b98b8d09ddd6ebe"},{"path":"focused-chunks/chunk-4KQFMOM7.js","sha256":"98cc6a75a50b7272c763d180207ff4d3a2c60028e99ec63e43760753651077a8"},{"path":"focused-chunks/chunk-4KQFMOM7.js.map","sha256":"d300be4b5554ce61f6bb5beee5c0ce89052d439c0a9dc6059f38fb21c17d7c74"},{"path":"focused-chunks/chunk-52I2SNKJ.js","sha256":"e05bf8f1e070c2242c9e845fc49a3b15911ee91c23013de610cb2380a86ec161"},{"path":"focused-chunks/chunk-52I2SNKJ.js.map","sha256":"ca6d9df86a31c8d49516b89faf611afbf38f418ff73228761c1a1d1469c79cef"},{"path":"focused-chunks/chunk-5KRACGBK.js","sha256":"834e323831363129abcfcd789191dd9e612e7138daaf2957ed421737c484e6e8"},{"path":"focused-chunks/chunk-5KRACGBK.js.map","sha256":"dff3ff9950a4f09ab39a4095eb75616c9222261021633610931bbbad00358f12"},{"path":"focused-chunks/chunk-5OO54BIV.js","sha256":"3d33df60e5709ee7e93942b3716afb1c00da3ad5e60d4ef7a6478ac43a266ead"},{"path":"focused-chunks/chunk-5OO54BIV.js.map","sha256":"cf3c4471397a749f321b438c79206f97bdff6878aa6478e5db0ea4ef220d9cd1"},{"path":"focused-chunks/chunk-5TBAVZDR.js","sha256":"c493666fdfbb396fef0d93196756369eedbee07656df7a81ee6445d3c234168e"},{"path":"focused-chunks/chunk-5TBAVZDR.js.map","sha256":"15b1fb602d8e57cb8ce118b55f2789f3c5d530fa01353d20fe489d463395cf6e"},{"path":"focused-chunks/chunk-FQKPOZKS.js","sha256":"c9be1358f924a0b39e5257e7ab59edd1d3df7930e83456fca822a41eb86512b5"},{"path":"focused-chunks/chunk-FQKPOZKS.js.map","sha256":"fe860b039561780930e399da5013c9b8e39dd90cb73a4e2f44562dd1b769409c"},{"path":"focused-chunks/chunk-H3P77KVU.js","sha256":"2da51a59d29ea6665b616c391f97a0c72f08a59c9bc39d7ecbcf59248891259b"},{"path":"focused-chunks/chunk-H3P77KVU.js.map","sha256":"65b53f8350b4414b0833e53095540b86114f14e5cbba0e9f19fa2233b708a071"},{"path":"focused-chunks/chunk-HTA3TNC3.js","sha256":"bad64bbfc12c69bcde44b502e0a71b4c52bb2f9ea89af1d0894057958a362f4e"},{"path":"focused-chunks/chunk-HTA3TNC3.js.map","sha256":"8cb7a19f542071b794d8fa72a197084f4d9e6fd8a81655861dddd3dcf18951d1"},{"path":"focused-chunks/chunk-JKBH7YGX.js","sha256":"15f8beaba9c99b88141d92a75d32ce5dc10ce0672d90e0c7b716f4f467681abb"},{"path":"focused-chunks/chunk-JKBH7YGX.js.map","sha256":"3ef741abd398f9fdbad0d41dfed08379d9eb1e76252f88c704f15ec3f28fcfeb"},{"path":"focused-chunks/chunk-KIIFVULU.js","sha256":"1212b43576ae29ac33cade970bca3bcdd8b0dcfb3b7b6bf86ec7dc80e56d5b7b"},{"path":"focused-chunks/chunk-KIIFVULU.js.map","sha256":"5c9cd60c3b5a6589afc40d0f2d21135b9970f2da2e5fb6e80b0924f3463f87cf"},{"path":"focused-chunks/chunk-N6FUKTZS.js","sha256":"1c1f454c26f22cabe0044011f9387e22c0ecfacaae993b24fd3ef0e3c27547ad"},{"path":"focused-chunks/chunk-N6FUKTZS.js.map","sha256":"5921f606b225ba4190883e651ea103a63d439da84555f992cda3e9b21e230f51"},{"path":"focused-chunks/chunk-PDYE7QDX.js","sha256":"cfaf2118dbe7cfb0d84b5e81baad5f693a791ba5e4c57fd3f852bb88de6e81e9"},{"path":"focused-chunks/chunk-PDYE7QDX.js.map","sha256":"41a65850703c03fec34ec8fadee5ddb7084296587c34f571fc8bb1793d27e58d"},{"path":"focused-chunks/chunk-Q4VNCTR2.js","sha256":"91e8cfa7049f46b89e9e3612a6631b200dea63a5325b2db8730b29fa9080152f"},{"path":"focused-chunks/chunk-Q4VNCTR2.js.map","sha256":"c44cb6d89bd61c40a4d7da9fa9be421c1f5e57a278b83639c0a78ed9b97f4265"},{"path":"focused-chunks/chunk-THYQR3ON.js","sha256":"12805a0b5986eae890486ba015ff819c14886dbda4e85be1886649209e6a1cec"},{"path":"focused-chunks/chunk-THYQR3ON.js.map","sha256":"ea2a69375192be29f87420ad858a1607fcb2271bf2a454223fb30703de127b15"},{"path":"focused-chunks/chunk-TYLG5VEB.js","sha256":"e8a0f41d77816930d51620982406a6741eedeccb81b6c4a884abde98d284a862"},{"path":"focused-chunks/chunk-TYLG5VEB.js.map","sha256":"b18ce126e128112da9d3e61c031b117dcf0c3f8740dd008785445992816e81ef"},{"path":"focused-chunks/chunk-YLVHHWHN.js","sha256":"aed33cc3c5024b75a909cf5c01ac1d0161d9f56cc87c9c7638662f82a4d94626"},{"path":"focused-chunks/chunk-YLVHHWHN.js.map","sha256":"2536922ae21f29b6d28033a35d9aba3d921ee26867d733ba0a76857c97366cd9"},{"path":"main.js","sha256":"8c06fdd369e5ebd338915488151b03a1d201f1d0f4f6a9afa57acb46e83234b7"},{"path":"main.js.map","sha256":"05b319be6e6c0317b5677bc169a203f340206a27825560297c6bba253a26d99a"},{"path":"sdk-authoring.js","sha256":"eb3edc261deb5d72ae38687a259fcc601fa564c095d0485f19d374d1e96c53c5"},{"path":"sdk-authoring.js.map","sha256":"250eb6359393501e749d3ae54b9d302f75e3ab6ba4f59a502842a33800f41750"},{"path":"sdk-contracts.js","sha256":"b197abcdde409384ba68c74f3fe4da5ae227d65d3e9a10372b3ce364c188a05d"},{"path":"sdk-contracts.js.map","sha256":"7c53eb461d48549ba35cf4487fc93af09e0c9b54708fda5ea93ea6445e21bdf0"},{"path":"sdk-core.js","sha256":"806506c82016a7c01b5bb6b74b90307509db09a60c7f46d18d1092689fa00105"},{"path":"sdk-core.js.map","sha256":"c662b789791269e664c01d3efa9c19bbd10b44f3911acce467c299dd68563039"},{"path":"sdk-governance.js","sha256":"2c589676948b0c4985daadf43daa58e5d8d95de8c6939c8ff5b508d8aa26c9ac"},{"path":"sdk-governance.js.map","sha256":"812e652e36552981e1f84683466d68c7fba93a58b7c615601afccf58fde920db"},{"path":"sdk-graph.js","sha256":"49ea40467cf18b025a7369050f890992bf27266895a85f10c9db77ccd6695746"},{"path":"sdk-graph.js.map","sha256":"05da677844e43fd80df4ea657bc3a0d960bde35860a077b2b22f117f2aee0a0a"},{"path":"sdk-merge.js","sha256":"d67e0d4323b58eb7623e46b90c8033985cf3009e61993ca19b75a079642b5500"},{"path":"sdk-merge.js.map","sha256":"a3c8ac344be44477267dfc049d849fd28ecfb892ee0b1ef1330a44677b6d5857"},{"path":"sdk-query.js","sha256":"d603aa1cffd18984aeed853d0bb569a18534abb6ca00bf18c6b7e41220e7a908"},{"path":"sdk-query.js.map","sha256":"52772ee7b4a20bd183d69a59518450ef025dbbe13e0cb8b56cb6826a729a36b1"},{"path":"sdk-runtime.js","sha256":"6219af8964a5f32dc5b0c463c732a3ad29ff6f0cff22ebaa661af04c20c34898"},{"path":"sdk-runtime.js.map","sha256":"ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"},{"path":"sdk-testing.js","sha256":"57099417e271f8bcdfc39b0f7609cdec402b6cba2c1dd3b7c7b7a86ca1bcc576"},{"path":"sdk-testing.js.map","sha256":"ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"},{"path":"sdk.js","sha256":"27f9c37ed42743bd0f2d2021aaa15d435cf866530f7f5c09355dd130e77f27bb"},{"path":"sdk.js.map","sha256":"1c8bfdae52f0c8a0cf43840c9359aca549a3abef08b325321122fbe100980369"}]}
|
|
1
|
+
{"schema_version":1,"generation":"2558b9ebc776eed70d4b6874d52997fe36bf83a381ed739f4f55517c5d1d79a6","files":[{"path":"chunks/chunk-3QKI3XNX.js","sha256":"9f0edc93a9c6f7bea60d59c9c0f7bb2006958ce18f606ef9a89df02474831dc4"},{"path":"chunks/chunk-3QKI3XNX.js.map","sha256":"6fd279b7be9c6be35b8c167ca9cf6f8347dab5eb241870f1e4f22ae9185bdd5d"},{"path":"chunks/chunk-4PNPDT2N.js","sha256":"8183c3b0da39f69d8ed6fb36a79c275381635de5579ac81273579b35f1e25793"},{"path":"chunks/chunk-4PNPDT2N.js.map","sha256":"6f6b051bce47c23243199d2b5b097b687153b47ab5fc513caf72fb31c20512dd"},{"path":"chunks/chunk-6ZDKKOKM.js","sha256":"67f753a5cfdfeb0dfb1f865685e4dec2568dd021451606556f5a380038e559e7"},{"path":"chunks/chunk-6ZDKKOKM.js.map","sha256":"1609e028a4097a5ef60f21abb33d33e662bb11d306638acc8b16c61ec1027884"},{"path":"chunks/chunk-B5QVGCZX.js","sha256":"7ff5d395718ad4aa9783c70941fdd72f2a3bf50528795fe9e411dfc2ae4d1ccb"},{"path":"chunks/chunk-B5QVGCZX.js.map","sha256":"3ef6aaaab9d223b065b678a7eb29cc8fb1a241156372d5809b00812dd5a84afb"},{"path":"chunks/chunk-DEZPZOQ7.js","sha256":"ef11ddab9ecc9533cac75ccc8ca41058a59382dfbe3262033fa21c7264d73b0d"},{"path":"chunks/chunk-DEZPZOQ7.js.map","sha256":"ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"},{"path":"chunks/chunk-EA2CG7UM.js","sha256":"fdaf98df48b21c29327fcc6f996ef4b36425c01d69baa07c0b25b669c0c98133"},{"path":"chunks/chunk-EA2CG7UM.js.map","sha256":"6b34a8705de6f3da0cea90f67a38f66525bb3d9c19a79f0f7d8a47290729ee05"},{"path":"chunks/chunk-HY7FQ7QX.js","sha256":"0aaa7490d13aba8f9b12c69204be46707525dfff2be5a8535edc4128ffb20196"},{"path":"chunks/chunk-HY7FQ7QX.js.map","sha256":"ea76751392e8442f8f24ed4ce8eb1dc849af02ad342231a05d0d1c25424236bf"},{"path":"chunks/chunk-J4LPQCET.js","sha256":"78a8023116f8b7e733bdbac9855dbde2bb6f78d63cb1667cc86f88a85e67229f"},{"path":"chunks/chunk-J4LPQCET.js.map","sha256":"f83f816ab354023c72bd82003209f6ba352c64f22e1817e1cbf8259369de2a99"},{"path":"chunks/chunk-JS3B2M4D.js","sha256":"4783e55251d064cb94fceb7fe8fbe3c3ceadc4eca29fec2bfd5db2f41674d41d"},{"path":"chunks/chunk-JS3B2M4D.js.map","sha256":"dc92340acbcb2a703a27e86cb4c84dd7ed381a654c7cc275cd791141308cc54b"},{"path":"chunks/chunk-O4YBC3OM.js","sha256":"34f52d924696d29238978643ca787238b1cb50ae61fc56b27670842f165297b5"},{"path":"chunks/chunk-O4YBC3OM.js.map","sha256":"c7e19c0aaa48ebc7f520673b3104c3f579bedb533c2721d38261873d3d90e7ef"},{"path":"chunks/chunk-OZCSXX4D.js","sha256":"f236bbbd769cd2479e6dba394c819291029e9c3902d77e5501745e358c1ebc9d"},{"path":"chunks/chunk-OZCSXX4D.js.map","sha256":"8c558d11f03a70951f344f7bb217e08402d5aa84bc5d5de396ba27ea5895ebe9"},{"path":"chunks/chunk-SGFQQXFD.js","sha256":"27cfd4152f894bbd21c5d4f1d8ba40ea447d11983ec3b09a578d8bbc787522d7"},{"path":"chunks/chunk-SGFQQXFD.js.map","sha256":"ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"},{"path":"chunks/chunk-VMCSTFSO.js","sha256":"e0c742dce496ed48fa6908d0d7a9deef524ec5716781ed937329fdc7fcabfa96"},{"path":"chunks/chunk-VMCSTFSO.js.map","sha256":"e61631fe2ec601a428f9111c9e9ba604419c75f7db5fdc6984cb0f0acef8d880"},{"path":"chunks/chunk-W3KZ22DW.js","sha256":"639f489486e806721f7717ce01929b6957cc77923f2c665e96b12a3e0c2e9691"},{"path":"chunks/chunk-W3KZ22DW.js.map","sha256":"cf3f9572b981d49095912d307890b123ad93c7ed5e4d65e009b9e6a5acd9f017"},{"path":"chunks/chunk-X2ONXFBP.js","sha256":"13376775792f242b05b7edac0ca8a95f0a42a9b56081d2e6cb880ff9d37022a1"},{"path":"chunks/chunk-X2ONXFBP.js.map","sha256":"c43602cd3cf04ccecc1f5261ca311d9d66f8fe228f26b20a9837f63a5f5f2b09"},{"path":"chunks/chunk-X53HM753.js","sha256":"8d1c380876b7e988d6279cb172eafa072c2e1efd10777800507c665b8cddecc3"},{"path":"chunks/chunk-X53HM753.js.map","sha256":"08aa19363e9517ec37ce5ccc8468c9888442530995bb191ed73848356cc316e0"},{"path":"chunks/register-list-query-RU3QZSAQ.js","sha256":"851461988c3880da99f014494d1f9568b88e6314b4c46dedbba6804dba2efefc"},{"path":"chunks/register-list-query-RU3QZSAQ.js.map","sha256":"65a136693350e1f4c7e6d4e17958756d292205eb3b3306cd10fbf299f88e249e"},{"path":"chunks/register-mutation-EQYMT32A.js","sha256":"cceac793f03c6c8421375ac19a5c8c1c1d5e8fa29498bf07cfeb1a18509a531c"},{"path":"chunks/register-mutation-EQYMT32A.js.map","sha256":"bdf41575783e281d1b7c2b93e12ba9903707f5042761f4acc0060dfca666401b"},{"path":"chunks/register-operations-VXBGE4XI.js","sha256":"b5e10ae262e80814ccdb6331ce7b70a61287b6081b2b77ea42b9d944ebfc38ed"},{"path":"chunks/register-operations-VXBGE4XI.js.map","sha256":"13fa73836eb50faab9f4a11b42f97dc716eac8aa22bcaa5eaca675c4b4a82c02"},{"path":"chunks/register-setup-UUDEGFRO.js","sha256":"b0b102ff7c6ec42182df919487251a87e2a8abf94b4f022339491d32608ed298"},{"path":"chunks/register-setup-UUDEGFRO.js.map","sha256":"8d0b4b046e9171902d34fc24470baef90c50e8c9ea4a62fd2d698fb406cec70e"},{"path":"focused-chunks/chunk-2IOHHNRT.js","sha256":"dd6be9dbc4c1ce3668625b9f683efa6c420264a403e913522a3f5d4303dbaf8e"},{"path":"focused-chunks/chunk-2IOHHNRT.js.map","sha256":"b18ce126e128112da9d3e61c031b117dcf0c3f8740dd008785445992816e81ef"},{"path":"focused-chunks/chunk-5JEFDEL3.js","sha256":"98dc4c21b3f13e7fa7322564b3511ae593e759f15e9b8443b2f08dd394feaa50"},{"path":"focused-chunks/chunk-5JEFDEL3.js.map","sha256":"a126c4a02234109912ee923aae7b780cb94912dbc1d443523c6d77ab0d0984ad"},{"path":"focused-chunks/chunk-AH6NX6GM.js","sha256":"32845686bcd0eed15f33ae5d627d75875824a513089b12dad5f0ffe8df5956f9"},{"path":"focused-chunks/chunk-AH6NX6GM.js.map","sha256":"d614b1676205d858c9d89bc26e452999660859dd694eef762b98b8d09ddd6ebe"},{"path":"focused-chunks/chunk-E33QA7PK.js","sha256":"c6fd1706fdee5f4cf8fb873d0b2ab11f39ecd3888ae1f1f9868b5ea97497be63"},{"path":"focused-chunks/chunk-E33QA7PK.js.map","sha256":"5921f606b225ba4190883e651ea103a63d439da84555f992cda3e9b21e230f51"},{"path":"focused-chunks/chunk-FTUZ3JF2.js","sha256":"a13e9a76fd6c7df148c39bad7f3d670afa347e4504ba3bc1e8a9f122fb94b7da"},{"path":"focused-chunks/chunk-FTUZ3JF2.js.map","sha256":"d300be4b5554ce61f6bb5beee5c0ce89052d439c0a9dc6059f38fb21c17d7c74"},{"path":"focused-chunks/chunk-JXR6UKFM.js","sha256":"4c775fcb2de00b1304638a9bcccf904acc314d6f89c873a48a38b1983c52e989"},{"path":"focused-chunks/chunk-JXR6UKFM.js.map","sha256":"8461c4b1a7c262475e7cb21252afe2177e2bba35e3b69ed5cf41bea0431ed2ee"},{"path":"focused-chunks/chunk-LDKX4KYJ.js","sha256":"a765939936dee1f2ecea4b92a8b416aeadfce9e671290179a185ca2684dda67d"},{"path":"focused-chunks/chunk-LDKX4KYJ.js.map","sha256":"3079c7e0418534cc84871582bde1660ba501ae3e2be9d0df27a88da620f8edc3"},{"path":"focused-chunks/chunk-MBQF6HT6.js","sha256":"4d353570f9bd2efeb30b64cd0529ef24c82fb5a64d5d5b0a353f62bf05f0815e"},{"path":"focused-chunks/chunk-MBQF6HT6.js.map","sha256":"e933d5c3e7cb2342c935900d6f106e86e34b08f13c8ad5be58d634bf71066cbd"},{"path":"focused-chunks/chunk-NZO7GOXD.js","sha256":"f43be45b32446a0975a8408f7b55ec87119e8fa319550ae456e01e09527d82bf"},{"path":"focused-chunks/chunk-NZO7GOXD.js.map","sha256":"25d61200402df98b7c8561cbd7670935a08177680c4854e203c95898e5d47d3d"},{"path":"focused-chunks/chunk-PYC7BF6Z.js","sha256":"90ad71af14d5fff0e6960b5bed610138bce709e2d0074236c0ea1ecf520c4fe2"},{"path":"focused-chunks/chunk-PYC7BF6Z.js.map","sha256":"ca6d9df86a31c8d49516b89faf611afbf38f418ff73228761c1a1d1469c79cef"},{"path":"focused-chunks/chunk-QOSVJDOO.js","sha256":"44bff772423cda454dd51d5ce6fc4d1852922ba8abdc4c7cc59998306ec29f13"},{"path":"focused-chunks/chunk-QOSVJDOO.js.map","sha256":"1804aa998c8f86f8c055a8df376f934b17eb5ac2303d78a6f63d8dafc4170c63"},{"path":"focused-chunks/chunk-RBLSY6ML.js","sha256":"8557710685004ac5da6281ebc19c85ff039722e6e85ad94d0d54b77c4defcae6"},{"path":"focused-chunks/chunk-RBLSY6ML.js.map","sha256":"fe860b039561780930e399da5013c9b8e39dd90cb73a4e2f44562dd1b769409c"},{"path":"focused-chunks/chunk-RHTH5ILM.js","sha256":"57fea015b632d29d65abfa0ca9face622d902a3e5467a0eafcfa10a156577cc5"},{"path":"focused-chunks/chunk-RHTH5ILM.js.map","sha256":"c44cb6d89bd61c40a4d7da9fa9be421c1f5e57a278b83639c0a78ed9b97f4265"},{"path":"focused-chunks/chunk-SIGIGZCG.js","sha256":"e129fa8cd36494e38b03a47a4ef4154471661e656d119a6de222393eccef1a7d"},{"path":"focused-chunks/chunk-SIGIGZCG.js.map","sha256":"80f6c87b0f5dc75681ed748b40ba004822e36fc904f28ba9d01bfa21c5880772"},{"path":"focused-chunks/chunk-TRFVAWF2.js","sha256":"9a8ff75be1ca0e8adfb5f1ca068d5296e0693762e7306b5b456ab2fe7a310ea6"},{"path":"focused-chunks/chunk-TRFVAWF2.js.map","sha256":"8eb4606b2ce72aa363d749796f8910fd760c1efa4d5f7575a06a87d78d791e17"},{"path":"focused-chunks/chunk-UNTQE37U.js","sha256":"65a1065db6703eeead0981ab64bd544e44c74b2e5c826f889714af25e4f33251"},{"path":"focused-chunks/chunk-UNTQE37U.js.map","sha256":"5c9cd60c3b5a6589afc40d0f2d21135b9970f2da2e5fb6e80b0924f3463f87cf"},{"path":"focused-chunks/chunk-YLVHHWHN.js","sha256":"aed33cc3c5024b75a909cf5c01ac1d0161d9f56cc87c9c7638662f82a4d94626"},{"path":"focused-chunks/chunk-YLVHHWHN.js.map","sha256":"2536922ae21f29b6d28033a35d9aba3d921ee26867d733ba0a76857c97366cd9"},{"path":"main.js","sha256":"c0a381218b97fb1885c67d3ccc6eeffda00ea9c3431aed97eef33f44bec8e849"},{"path":"main.js.map","sha256":"350b8995648e75720fe0abf29ace463ae98b218e114336cd9c110e037bd990a6"},{"path":"sdk-authoring.js","sha256":"3aff1a4c14c77472f70f5cbff243560f3c66e2e34fd8be93e955438501b08143"},{"path":"sdk-authoring.js.map","sha256":"250eb6359393501e749d3ae54b9d302f75e3ab6ba4f59a502842a33800f41750"},{"path":"sdk-contracts.js","sha256":"ad7813e42b1e44c6307409162e52b3de7e2144d14d40be9e9cfbd9e566ea06b2"},{"path":"sdk-contracts.js.map","sha256":"1c8f63d06b501147a39cb9abcd83bc56ce34c79b633a4bd01ad452f9a6ac66ed"},{"path":"sdk-core.js","sha256":"ed94083735dcc13d7132f672bb91267b3da7278d599f020b76beb27be261049c"},{"path":"sdk-core.js.map","sha256":"a2856ee37383c7035260ba74078d3b69c3e44807e551c60bb10e0a29cd26c1a7"},{"path":"sdk-governance.js","sha256":"7212bcd86d5bbcbe1014ff8a4278067758b377a3104837b2b70af3fe6cc5241b"},{"path":"sdk-governance.js.map","sha256":"812e652e36552981e1f84683466d68c7fba93a58b7c615601afccf58fde920db"},{"path":"sdk-graph.js","sha256":"8eefb5e6e3e65ba41b9c718fabde4cd8c4cef6cb0253274b3513150c5ddbda71"},{"path":"sdk-graph.js.map","sha256":"05da677844e43fd80df4ea657bc3a0d960bde35860a077b2b22f117f2aee0a0a"},{"path":"sdk-merge.js","sha256":"681675d151d13dabd20d04ca726daffe1097b24405f144e76d3e6d32399c5a1c"},{"path":"sdk-merge.js.map","sha256":"8b2bb9fa38fb1825590942aae5780b9fa1a2dfbc9faafa8c3a16ec13083f3090"},{"path":"sdk-query.js","sha256":"ec3d1b25a080530465a8c838e6db6be3f80215d1ce68ca43e54d628219ab6121"},{"path":"sdk-query.js.map","sha256":"52772ee7b4a20bd183d69a59518450ef025dbbe13e0cb8b56cb6826a729a36b1"},{"path":"sdk-runtime.js","sha256":"9f3f77261d1f9a0169fb37eea774496cafa1e13d99b23102aee18dd0d72226fc"},{"path":"sdk-runtime.js.map","sha256":"ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"},{"path":"sdk-testing.js","sha256":"6094fb9a08a43559348ea4014abbe844a053b05edabcd8adc2e4a78bf444483f"},{"path":"sdk-testing.js.map","sha256":"ed562b0bba7ee7214e56ac7f728054b3496bec4597c94a4eb7b4179e6f5cb1c9"},{"path":"sdk.js","sha256":"27f300867b2cb172e1ec9b724e70006cd35cf6e608cfb3c72f9b496efe5da43a"},{"path":"sdk.js.map","sha256":"e6dba8889b27dbb429ce84f3e3e4017a80f5bdf34cdb9de9c605ff7ca5ea7da8"}]}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{e as k,g as I,h as A,i as _,o as T,q as C}from"./chunk-
|
|
1
|
+
import{e as k,g as I,h as A,i as _,o as T,q as C}from"./chunk-JS3B2M4D.js";import{Eb as b,Fb as v,Gb as R}from"./chunk-X53HM753.js";import{Np as w,R as c,T as p,Uf as D,Xf as m,Yf as y,eo as H,sp as f,td as E,vp as g,wm as x,wp as a}from"./chunk-4PNPDT2N.js";(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]="631e56aa-4d7e-58b6-bbea-a0d320716b82")}catch{}})();(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]="0bcdd63c-5fd3-585d-a6c5-9393029ef864")}catch{}})();(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]="4dce4f19-071c-54a8-be0d-5975d9e3b34b")}catch{}})();(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]="f330a0c5-a967-5383-9c27-efa4a39e0f0d")}catch{}})();(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]="a178bd8b-fc53-5633-84d5-621b61930581")}catch{}})();function O(t,e){if(typeof t!="string")return;let o=Number.parseInt(t,10);if(!/^\d+$/.test(t.trim())||!Number.isSafeInteger(o))throw new p(`history-compact ${e} must be a non-negative integer.`,c.USAGE);return o}async function S(t,e,o){let r=f(o),n=Date.now(),i=await x(a(e,"ids")),l=i===void 0?void 0:H(i),d=O(e.allOver,"--all-over"),u=O(e.minEntries,"--min-entries");if(e.closed===!0&&e.allStreams===!0)throw new p("history-compact: --closed and --all-streams are mutually exclusive; pick one lifecycle scope.",c.USAGE);let s=e.closed===!0?"closed":e.allStreams===!0?"all-streams":void 0;if((l!==void 0||d!==void 0||s!==void 0)&&typeof e.before=="string")throw new p("history-compact: --before applies only in single-id mode (bulk mode always compacts full streams).",c.USAGE);if(I(t,{ids:l,allOver:d,scope:s}),t!==void 0&&u!==void 0)throw new p("history-compact: --min-entries applies only in bulk mode (single-id mode compacts the named stream).",c.USAGE);if(t===void 0){let h=await A({ids:l,scope:s,allOver:d,minEntries:u,dryRun:e.dryRun===!0,author:a(e,"author"),message:a(e,"message"),force:!!e.force},r);m(h,r),h.totals.items_errored>0&&(process.exitCode=c.GENERIC_FAILURE)}else{let h=await k(t,{before:a(e,"before"),dryRun:e.dryRun===!0,author:a(e,"author"),message:a(e,"message"),force:!!e.force},r);m(h,r)}r.profile&&y(`profile:command=history-compact took_ms=${Date.now()-n}`)}async function N(t,e,o,r){let n=f(r),i=Date.now(),l=await C(t,e,{author:a(o,"author"),message:a(o,"message"),force:!!o.force},n);await w(n,l),m(l,n),n.profile&&y(`profile:command=restore took_ms=${Date.now()-i}`)}async function B(t,e){let o=f(e),r=await T({verify:a(t,"verify"),output:a(t,"output"),hashAlgorithm:a(t,"hashAlgorithm")},o);"format"in r?(E(r),o.quiet||D(`${JSON.stringify(r,null,2)}
|
|
2
2
|
`)):m(r,o),"ok"in r&&!r.ok&&(process.exitCode=c.GENERIC_FAILURE)}function Z(t,e){t.command(e?"attest":"history-attest",{hidden:!e}).summary("Export or verify history proof.").option("--verify <file>","Compare retained streams with a detached JSON proof").option("--output <file>","Create a proof file and return a compact receipt").option("--hash-algorithm <name>","Bundle digest algorithm: sha256 (default) or sha512").description("Export exact-byte history commitments, or verify an independently retained proof without tracker writes.").action(B),t.command("restore",{hidden:!e}).summary("Restore a version.").argument("<id>","Item id").argument("<target>","Restore target timestamp or version number").option("--author <value>","Mutation author").option("--message <value>","History message").option("--force","Force ownership/lock override").description("Restore an item to an earlier timestamp or version.").action(N),t.command(e?"redact":"history-redact",{hidden:!e}).summary("Redact sensitive values.").argument("<id>","Item id").option("--literal <value>","Literal string to redact (repeatable)",g).option("--regex <value>","Regex pattern to redact (repeatable; accepts /pattern/flags or raw pattern)",g).option("--replacement <value>",'Replacement string (default: "[redacted]")').option("--dry-run","Preview redaction impact without writing item/history files").option("--author <value>","Mutation author").option("--message <value>","Audit history message for the redaction marker entry").option("--force","Force ownership/lock override").description("Redact sensitive literals/patterns from an item history stream and recompute hashes.").action(async(o,r,n)=>{let i=f(n),l=Date.now(),d=Array.isArray(r.literal)?r.literal:void 0,u=Array.isArray(r.regex)?r.regex:void 0,s=await _(o,{literal:d,regex:u,replacement:a(r,"replacement"),dryRun:r.dryRun===!0,author:a(r,"author"),message:a(r,"message"),force:!!r.force},i);s.changed&&!s.dry_run&&await w(i,s),m(s,i),i.profile&&y(`profile:command=history-redact took_ms=${Date.now()-l}`)}),t.command(e?"repair":"history-repair",{hidden:!e}).summary("Repair drift.").argument("[id]","Item id (omit with --all)").option("--salvage-tail","Recover invalid tail; requires verified prefix").option("--all","Scan every stream for drift and repair each drifted stream in one audited pass").option("--dry-run","Preview the re-anchor impact without writing the history file").option("--normalize-provenance","Remove invalid provenance; return aggregate-only evidence").option("--author <value>","Mutation author").option("--message <value>","Audit history message for the repair marker entry").option("--force","Force ownership/lock override").description("Re-anchor a drifted item history chain (recompute hashes, reconcile with the on-disk item) and record an audit marker. Use --all to repair every drifted stream.").action(async(o,r,n)=>{let i=f(n),l=Date.now(),d=r.all===!0;v(o,d);let u={dryRun:r.dryRun===!0,author:a(r,"author"),message:a(r,"message"),force:!!r.force,normalizeProvenance:r.normalizeProvenance===!0,salvageTail:r.salvageTail===!0};if(d){let s=await R(u,i);m(s,i),s.totals.failed>0&&(process.exitCode=c.GENERIC_FAILURE)}else{let s=await b(o,u,i);m(s,i)}i.profile&&y(`profile:command=history-repair took_ms=${Date.now()-l}`)}),t.command(e?"compact":"history-compact",{hidden:!e}).summary("Compact streams.").argument("[id]","Item id (omit when using a bulk selector)").option("--before <value>","Compact entries strictly before this version number or ISO timestamp (single-id mode only)").option("--ids <value>","Bulk IDs: comma/newline text, - stdin, or @path file").option("--all-over <n>","Bulk: compact every stream with more than N entries").option("--closed","Bulk: compact only closed (terminal) items' streams").option("--all-streams","Bulk: compact every history stream regardless of lifecycle state").option("--min-entries <n>","Bulk: skip streams with at most N entries (already compact; default 3)").option("--dry-run","Preview compaction impact without writing the history file").option("--author <value>","Mutation author").option("--message <value>","Audit history message for the compaction marker entry").option("--force","Force ownership/lock override").description("Compact item history streams into a synthetic baseline plus retained tail entries. Pass an item id for one stream, or a bulk selector (--ids/--all-over/--closed/--all-streams) to compact many.").action(S)}export{Z as a};
|
|
3
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
//# sourceMappingURL=chunk-3QKI3XNX.js.map
|