@unbrained/pm-cli 2026.9.19 → 2026.9.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.
Files changed (149) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/CHANGELOG.md +954 -924
  3. package/dist/cli/main.d.ts +10 -76
  4. package/dist/cli/main.js +1 -2
  5. package/dist/cli/register-operations.js +1 -1
  6. package/dist/cli/runtime/activation.d.ts +51 -0
  7. package/dist/cli/runtime/activation.js +2 -0
  8. package/dist/cli/runtime/invocation-options.d.ts +41 -0
  9. package/dist/cli/runtime/invocation-options.js +2 -0
  10. package/dist/cli/runtime/selection.d.ts +29 -0
  11. package/dist/cli/runtime/selection.js +2 -0
  12. package/dist/cli/runtime/telemetry-outcome.d.ts +20 -0
  13. package/dist/cli/runtime/telemetry-outcome.js +2 -0
  14. package/dist/cli-bundle/bundle-manifest.json +150 -150
  15. package/dist/cli-bundle/chunks/{chunk-QA4GUEKJ.js → chunk-2QLXN6HZ.js} +46 -46
  16. package/dist/cli-bundle/chunks/chunk-2UNYUB4A.js +2 -0
  17. package/dist/cli-bundle/chunks/chunk-4SI67A2F.js +8 -0
  18. package/dist/cli-bundle/chunks/chunk-7YUYLYJQ.js +6 -0
  19. package/dist/cli-bundle/chunks/{chunk-7CN53F4S.js → chunk-FBWAECBI.js} +3 -3
  20. package/dist/cli-bundle/chunks/chunk-GRHSNUQO.js +20 -0
  21. package/dist/cli-bundle/chunks/chunk-HAFSMFJK.js +3 -0
  22. package/dist/cli-bundle/chunks/chunk-JBJUOOJI.js +238 -0
  23. package/dist/cli-bundle/chunks/chunk-K7RWRJLT.js +29 -0
  24. package/dist/cli-bundle/chunks/chunk-NHRB3L5T.js +2 -0
  25. package/dist/cli-bundle/chunks/{chunk-CCLWCESZ.js → chunk-QZTS23BV.js} +2 -2
  26. package/dist/cli-bundle/chunks/{chunk-K4VAU4HU.js → chunk-SDLBF4PY.js} +1252 -1252
  27. package/dist/cli-bundle/chunks/{register-list-query-RMZNHSII.js → register-list-query-5V43MYPN.js} +6 -6
  28. package/dist/cli-bundle/chunks/{register-mutation-HJGSGX3H.js → register-mutation-DXES37MA.js} +4 -4
  29. package/dist/cli-bundle/chunks/register-operations-LJU5H2CU.js +2 -0
  30. package/dist/cli-bundle/chunks/register-setup-HJUNGYBB.js +2 -0
  31. package/dist/cli-bundle/focused-chunks/chunk-3XPBKIV6.js +12 -0
  32. package/dist/cli-bundle/focused-chunks/{chunk-7Y7PAC56.js → chunk-5BLRMUMK.js} +2 -2
  33. package/dist/cli-bundle/focused-chunks/{chunk-5SZ4JSPZ.js → chunk-6MNKQKT6.js} +2 -2
  34. package/dist/cli-bundle/focused-chunks/{chunk-IKPR4VVN.js → chunk-DPBTIFW7.js} +2 -2
  35. package/dist/cli-bundle/focused-chunks/{chunk-J3GN4SQT.js → chunk-DRNXMOSV.js} +2 -2
  36. package/dist/cli-bundle/focused-chunks/{chunk-P4BA7OX7.js → chunk-FXAZPSU6.js} +7 -7
  37. package/dist/cli-bundle/focused-chunks/{chunk-ARK4FIO4.js → chunk-HYPK5OPA.js} +2 -2
  38. package/dist/cli-bundle/focused-chunks/{chunk-I4WDON3K.js → chunk-IA5CCSBB.js} +2 -2
  39. package/dist/cli-bundle/focused-chunks/{chunk-CJ4QA4RW.js → chunk-ISEOBALS.js} +2 -2
  40. package/dist/cli-bundle/focused-chunks/{chunk-ZI2YBJFH.js → chunk-K5ZCBC6Y.js} +3 -3
  41. package/dist/cli-bundle/focused-chunks/{chunk-V3YMNAO7.js → chunk-L6L4XCLY.js} +2 -2
  42. package/dist/cli-bundle/focused-chunks/{chunk-TDHVROGL.js → chunk-N6KI3LWF.js} +2 -2
  43. package/dist/cli-bundle/focused-chunks/chunk-PC6ZZVNP.js +20 -0
  44. package/dist/cli-bundle/focused-chunks/chunk-RQL5WLNZ.js +30 -0
  45. package/dist/cli-bundle/focused-chunks/{chunk-ZDBKYZFE.js → chunk-U2SB2BMM.js} +2 -2
  46. package/dist/cli-bundle/focused-chunks/{chunk-YDFEWXXZ.js → chunk-UIS5FVHH.js} +53 -53
  47. package/dist/cli-bundle/main.js +26 -27
  48. package/dist/cli-bundle/sdk-authoring.js +1 -1
  49. package/dist/cli-bundle/sdk-contracts.js +1 -1
  50. package/dist/cli-bundle/sdk-core.js +39 -39
  51. package/dist/cli-bundle/sdk-governance.js +1 -1
  52. package/dist/cli-bundle/sdk-graph.js +1 -1
  53. package/dist/cli-bundle/sdk-merge.js +42 -42
  54. package/dist/cli-bundle/sdk-query.js +1 -1
  55. package/dist/cli-bundle/sdk-runtime.js +1 -1
  56. package/dist/cli-bundle/sdk-testing.js +1 -1
  57. package/dist/cli-bundle/sdk.js +8 -8
  58. package/dist/core/diagnostics/remediation.js +1 -1
  59. package/dist/core/extensions/extension-types.d.ts +2 -2
  60. package/dist/core/extensions/loader.d.ts +9 -15
  61. package/dist/core/extensions/loader.js +1 -1
  62. package/dist/core/extensions/manifest-parser.d.ts +5 -0
  63. package/dist/core/extensions/manifest-parser.js +2 -0
  64. package/dist/core/extensions/registration-contracts.d.ts +34 -0
  65. package/dist/core/extensions/registration-contracts.js +2 -0
  66. package/dist/core/governance/issue-codes.d.ts +10 -1
  67. package/dist/core/governance/issue-codes.js +1 -1
  68. package/dist/core/validate/fix-planning.d.ts +3 -3
  69. package/dist/core/validate/fix-planning.js +1 -1
  70. package/dist/sdk/agent/refusal-reachability.d.ts +1 -1
  71. package/dist/sdk/completion/bash.d.ts +3 -0
  72. package/dist/sdk/completion/bash.js +2 -0
  73. package/dist/sdk/completion/fish.d.ts +3 -0
  74. package/dist/sdk/completion/fish.js +1054 -0
  75. package/dist/sdk/completion/shared.d.ts +103 -0
  76. package/dist/sdk/completion/shared.js +2 -0
  77. package/dist/sdk/completion/zsh.d.ts +3 -0
  78. package/dist/sdk/completion/zsh.js +1109 -0
  79. package/dist/sdk/completion.d.ts +5 -30
  80. package/dist/sdk/completion.js +1 -2160
  81. package/dist/sdk/generated/generated-error-code-catalog-part-2.js +1 -1
  82. package/dist/sdk/governance/closure-timestamps.d.ts +32 -0
  83. package/dist/sdk/governance/closure-timestamps.js +2 -0
  84. package/dist/sdk/governance/validate-normalization.d.ts +2 -0
  85. package/dist/sdk/governance/validate-normalization.js +1 -1
  86. package/dist/sdk/governance/validate.js +1 -1
  87. package/dist/sdk/governance.d.ts +1 -0
  88. package/dist/sdk/governance.js +1 -1
  89. package/dist/sdk/public-surface.json +1 -1
  90. package/dist/sdk/query/search/corpus.d.ts +27 -0
  91. package/dist/sdk/query/search/corpus.js +2 -0
  92. package/dist/sdk/query/search/filters.d.ts +27 -0
  93. package/dist/sdk/query/search/filters.js +2 -0
  94. package/dist/sdk/query/search/input.d.ts +28 -0
  95. package/dist/sdk/query/search/input.js +2 -0
  96. package/dist/sdk/query/search/lexical.d.ts +34 -0
  97. package/dist/sdk/query/search/lexical.js +2 -0
  98. package/dist/sdk/query/search/response.d.ts +34 -0
  99. package/dist/sdk/query/search/response.js +2 -0
  100. package/dist/sdk/query/search/semantic.d.ts +229 -0
  101. package/dist/sdk/query/search/semantic.js +3 -0
  102. package/dist/sdk/query/search/types.d.ts +123 -0
  103. package/dist/sdk/query/search/types.js +2 -0
  104. package/dist/sdk/query/search.d.ts +13 -364
  105. package/dist/sdk/query/search.js +1 -2
  106. package/dist/sdk/runtime/actions.d.ts +4 -0
  107. package/dist/sdk/runtime/actions.js +2 -0
  108. package/dist/sdk/runtime/context.d.ts +38 -0
  109. package/dist/sdk/runtime/context.js +2 -0
  110. package/dist/sdk/runtime/schema.d.ts +4 -0
  111. package/dist/sdk/runtime/schema.js +2 -0
  112. package/dist/sdk/runtime.d.ts +90 -95
  113. package/dist/sdk/runtime.js +1 -1
  114. package/docs/ARCHITECTURE.md +68 -0
  115. package/docs/HISTORY_GOVERNANCE_REPAIR.md +66 -0
  116. package/docs/README.md +2 -0
  117. package/docs/VALIDATION_PORTABILITY.md +82 -0
  118. package/docs/generated/REFUSAL_CLOSURE_CENSUS.md +4 -3
  119. package/marketplace.json +2 -2
  120. package/package.json +6 -6
  121. package/packages/pm-beads/package.json +1 -1
  122. package/packages/pm-calendar/package.json +1 -1
  123. package/packages/pm-command-kit/package.json +1 -1
  124. package/packages/pm-digital-twin/package.json +1 -1
  125. package/packages/pm-governance-audit/package.json +1 -1
  126. package/packages/pm-guide-shell/extensions/guide-shell/runtime.ts +23 -17
  127. package/packages/pm-guide-shell/package.json +1 -1
  128. package/packages/pm-kanban/package.json +1 -1
  129. package/packages/pm-lifecycle-hooks/package.json +1 -1
  130. package/packages/pm-linked-test-adapters/package.json +1 -1
  131. package/packages/pm-search-advanced/package.json +1 -1
  132. package/packages/pm-templates/package.json +1 -1
  133. package/packages/pm-todos/package.json +1 -1
  134. package/packages/pm-vcs/package.json +1 -1
  135. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  136. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  137. package/dist/cli-bundle/chunks/chunk-AACGU5IA.js +0 -3
  138. package/dist/cli-bundle/chunks/chunk-J7NP7QLW.js +0 -6
  139. package/dist/cli-bundle/chunks/chunk-KHN4NMKT.js +0 -238
  140. package/dist/cli-bundle/chunks/chunk-KYG2QKNY.js +0 -29
  141. package/dist/cli-bundle/chunks/chunk-OQS2Y6VN.js +0 -2
  142. package/dist/cli-bundle/chunks/chunk-QTHR3LXF.js +0 -20
  143. package/dist/cli-bundle/chunks/chunk-RVMDPIGD.js +0 -2
  144. package/dist/cli-bundle/chunks/chunk-WASMH647.js +0 -8
  145. package/dist/cli-bundle/chunks/register-operations-LBEMFUMM.js +0 -2
  146. package/dist/cli-bundle/chunks/register-setup-MU557JAA.js +0 -2
  147. package/dist/cli-bundle/focused-chunks/chunk-I32L3FWW.js +0 -12
  148. package/dist/cli-bundle/focused-chunks/chunk-OOZHQFBF.js +0 -20
  149. package/dist/cli-bundle/focused-chunks/chunk-QL4MO5M2.js +0 -30
@@ -1,2161 +1,2 @@
1
- !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="6fd6ac84-b8ce-5b8c-8dc5-c94783671f12")}catch(e2){}})();import{PM_COMMAND_DESTINATION_CONTRACTS}from"./cli-contracts/grammar-contracts.js";import{WORKFLOW_POLICY_ACTIONS}from"./cli-contracts/enum-contracts.js";import{EXIT_CODE,PmCliError}from"./runtime-primitives.js";import{listPmCommandsForTier,resolvePmCommandVisibilityTier}from"./agent-capability-contracts.js";import{SCAFFOLD_CAPABILITIES}from"./extension/scaffold.js";import{AGGREGATE_FLAG_CONTRACTS,APPEND_FLAG_CONTRACTS,CALENDAR_FLAG_CONTRACTS,CLOSE_MANY_FLAG_CONTRACTS,COMPLETION_FLAG_CONTRACTS,CONTRACTS_FLAG_CONTRACTS,CONTEXT_FLAG_CONTRACTS,COPY_FLAG_CONTRACTS,FOCUS_FLAG_CONTRACTS,MEET_FLAG_CONTRACTS,REMIND_FLAG_CONTRACTS,CREATE_FLAG_CONTRACTS,DEPS_FLAG_CONTRACTS,DUPLICATES_FLAG_CONTRACTS,EXTENSION_FLAG_CONTRACTS,GRAPH_FLAG_CONTRACTS,GET_FLAG_CONTRACTS,GUIDE_FLAG_CONTRACTS,GLOBAL_FLAG_CONTRACTS,HEALTH_FLAG_CONTRACTS,HISTORY_AUTHOR_ACKNOWLEDGE_FLAG_CONTRACTS,HISTORY_FLAG_CONTRACTS,INIT_FLAG_CONTRACTS,LIST_FILTER_FLAG_CONTRACTS,NEXT_FLAG_CONTRACTS,PM_COMMAND_ALIAS_CONTRACTS,resolvePmCommandOperation,PM_NAMESPACED_COMMAND_ALIASES,resolveSubcommandFlagContractsForCommand,PACKAGE_FLAG_CONTRACTS,PLAN_FLAG_CONTRACTS,SEARCH_FLAG_CONTRACTS,STATS_FLAG_CONTRACTS,EVENTS_FLAG_CONTRACTS,UPDATE_FLAG_CONTRACTS,UPDATE_MANY_FLAG_CONTRACTS,UPGRADE_FLAG_CONTRACTS,toCompletionFlagString}from"./cli-contracts.js";import{BUILTIN_ITEM_TYPE_VALUES,STATUS_VALUES}from"../types/index.js";import{listGuideTopicIds}from"./guide-topics.js";import{enrichCliFlagInvocationContracts}from"./flag-invocation-contracts.js";import{GLOBAL_VALUE_CONSUMING_FLAGS}from"./cli-contracts/bootstrap-command-scanner.js";const VALID_SHELLS=["bash","zsh","fish"];const DEFAULT_ITEM_TYPES=[...BUILTIN_ITEM_TYPE_VALUES];const DEFAULT_STATUS_VALUES=[...STATUS_VALUES];const HIDDEN_COMMAND_ALIASES=new Set(PM_COMMAND_ALIAS_CONTRACTS.filter(contract=>contract.hidden).map(contract=>contract.alias));const ALL_COMMANDS=listPmCommandsForTier("full").filter(command=>!command.includes(" ")&&!HIDDEN_COMMAND_ALIASES.has(command));const LIST_FLAGS=toCompletionFlagString(LIST_FILTER_FLAG_CONTRACTS);const AGGREGATE_FLAGS=toCompletionFlagString(AGGREGATE_FLAG_CONTRACTS);const APPEND_FLAGS=toCompletionFlagString(APPEND_FLAG_CONTRACTS);const COPY_FLAGS=toCompletionFlagString(COPY_FLAG_CONTRACTS);const RESTORE_INVOCATIONS=enrichCliFlagInvocationContracts("restore",resolveSubcommandFlagContractsForCommand("restore"));const ATTEST_INVOCATIONS=enrichCliFlagInvocationContracts("history-attest",resolveSubcommandFlagContractsForCommand("history-attest"));const FOCUS_FLAGS=toCompletionFlagString(FOCUS_FLAG_CONTRACTS);const MEET_FLAGS=toCompletionFlagString(MEET_FLAG_CONTRACTS);const REMIND_FLAGS=toCompletionFlagString(REMIND_FLAG_CONTRACTS);const CREATE_FLAGS=toCompletionFlagString(CREATE_FLAG_CONTRACTS);const GET_FLAGS=toCompletionFlagString(GET_FLAG_CONTRACTS);const UPDATE_FLAGS=toCompletionFlagString(UPDATE_FLAG_CONTRACTS);const UPDATE_MANY_FLAGS=toCompletionFlagString(UPDATE_MANY_FLAG_CONTRACTS);const CLOSE_MANY_FLAGS=toCompletionFlagString(CLOSE_MANY_FLAG_CONTRACTS);const NAMESPACE_NOUNS=[...new Set(PM_NAMESPACED_COMMAND_ALIASES.map(entry=>entry.canonical_argv[0]))];const NAMESPACE_PREFIXES=[...new Set(PM_NAMESPACED_COMMAND_ALIASES.flatMap(entry=>entry.canonical_argv.slice(0,-1).map((_,index)=>entry.canonical_argv.slice(0,index+1).join(" "))))];const PACKAGE_NAMESPACE_OPERATIONS=new Set(PM_COMMAND_DESTINATION_CONTRACTS.filter(entry=>entry.disposition==="package_owned").map(entry=>resolvePmCommandOperation(entry.command)));const HISTORY_COMPLETION_ALIASES=PM_NAMESPACED_COMMAND_ALIASES.filter(entry=>entry.canonical_argv[0]==="history");const HISTORY_LEAVES=HISTORY_COMPLETION_ALIASES.map(entry=>entry.canonical_argv[1]).join(" ");function completionNamespaceLeaves(runtime){const available=new Set((runtime.namespace_commands??[]).map(resolvePmCommandOperation));const aliases=PM_NAMESPACED_COMMAND_ALIASES.filter(entry=>resolvePmCommandVisibilityTier(entry.canonical)!=="internal"&&(!PACKAGE_NAMESPACE_OPERATIONS.has(entry.alias)||available.has(entry.alias)));return Object.fromEntries(NAMESPACE_PREFIXES.map(prefix=>[prefix,[...new Set(aliases.filter(entry=>entry.canonical.startsWith(`${prefix} `)).map(entry=>entry.canonical_argv[prefix.split(" ").length]))].join(" ")]))}const HISTORY_OPERATION_FLAGS=HISTORY_COMPLETION_ALIASES.map(entry=>({...entry,flags:toCompletionFlagString(resolveSubcommandFlagContractsForCommand(entry.alias))}));const HISTORY_FLAGS=toCompletionFlagString(HISTORY_FLAG_CONTRACTS);const HISTORY_AUTHOR_ACKNOWLEDGE_FLAGS=toCompletionFlagString(HISTORY_AUTHOR_ACKNOWLEDGE_FLAG_CONTRACTS,false);const EVENTS_FLAGS=toCompletionFlagString(EVENTS_FLAG_CONTRACTS);const CALENDAR_FLAGS=toCompletionFlagString(CALENDAR_FLAG_CONTRACTS);const CONTEXT_FLAGS=toCompletionFlagString(CONTEXT_FLAG_CONTRACTS);const NEXT_FLAGS=toCompletionFlagString(NEXT_FLAG_CONTRACTS);const DEPS_FLAGS=toCompletionFlagString(DEPS_FLAG_CONTRACTS);const DUPLICATES_FLAGS=toCompletionFlagString(DUPLICATES_FLAG_CONTRACTS);const GRAPH_FLAGS=toCompletionFlagString(GRAPH_FLAG_CONTRACTS);const GUIDE_FLAGS=toCompletionFlagString(GUIDE_FLAG_CONTRACTS);const SEARCH_FLAGS=toCompletionFlagString(SEARCH_FLAG_CONTRACTS);const STATS_FLAGS=toCompletionFlagString(STATS_FLAG_CONTRACTS);const HEALTH_FLAGS=toCompletionFlagString(HEALTH_FLAG_CONTRACTS);const INIT_FLAGS=toCompletionFlagString(INIT_FLAG_CONTRACTS);const CONTRACTS_FLAGS=toCompletionFlagString(CONTRACTS_FLAG_CONTRACTS);const PLAN_FLAGS=toCompletionFlagString(PLAN_FLAG_CONTRACTS);const SCHEMA_SUBCOMMAND_CHOICES=`${WORKFLOW_POLICY_ACTIONS.join(" ")} list show show-status add-type remove-type add-status remove-status add-field remove-field list-fields show-field apply-preset rename-type rename-field remap-status`;const PLAN_SUBCOMMANDS_LIST="create show add-step update-step complete-step block-step reorder-step remove-step link unlink decision discovery validation resume approve materialize";const COMPLETION_FLAGS=toCompletionFlagString(COMPLETION_FLAG_CONTRACTS);const COMPLETION_SHELL_CHOICES=`${COMPLETION_FLAGS} bash zsh fish`;const GUIDE_TOPIC_CHOICES=joinCompletionValues(listGuideTopicIds());const EXTENSION_LIFECYCLE_ACTIONS="init scaffold install uninstall explore manage describe reload doctor catalog adopt adopt-all activate deactivate migrate";const PACKAGE_LIFECYCLE_ACTIONS=`${EXTENSION_LIFECYCLE_ACTIONS} upgrade`;const EXTENSION_LIFECYCLE_FLAGS=toCompletionFlagString(EXTENSION_FLAG_CONTRACTS);const PACKAGE_LIFECYCLE_FLAGS=toCompletionFlagString(PACKAGE_FLAG_CONTRACTS);const UPGRADE_FLAGS=toCompletionFlagString(UPGRADE_FLAG_CONTRACTS);const MUTATION_FLAGS="--author --message --force --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help";const DELETE_MUTATION_FLAGS="--dry-run --author --message --force --json --quiet --no-changed-fields --id-only --pm-path --path --no-extensions --no-pager --profile --help";const CLOSE_MUTATION_FLAGS=toCompletionFlagString(resolveSubcommandFlagContractsForCommand("close"));const CLOSE_TASK_MUTATION_FLAGS=toCompletionFlagString(resolveSubcommandFlagContractsForCommand("close-task"));const RELEASE_MUTATION_FLAGS=toCompletionFlagString(resolveSubcommandFlagContractsForCommand("release"));const CLAIM_MUTATION_FLAGS=toCompletionFlagString(resolveSubcommandFlagContractsForCommand("claim"));const COMMAND_COMPLETION_DESCRIPTIONS=[["init","Initialize pm storage for the current workspace"],["config","Read or update pm settings"],["package","Manage package lifecycle operations"],["packages","Alias for package"],["create","Create a new project management item"],["item","Manage item evidence, links, tests, and duplication"],["copy","Copy an existing item to a new ID"],["focus","Set/clear/show the session focused parent for new items"],["list","List active items with optional filters"],["aggregate","Aggregate grouped item counts and numeric stats for governance queries"],["duplicates","Find bounded duplicate clusters across lifecycle statuses"],["guide","Browse local progressive-disclosure guides"],["calendar","Show calendar views for deadlines and reminders"],["cal","Alias for calendar"],["context","Show a token-efficient project context snapshot"],["ctx","Alias for context"],["get","Show item details by ID"],["next","Recommend the next actionable (unblocked, ready) work item"],["search","Search items with keyword, semantic, or hybrid modes"],["reindex","Rebuild search artifacts"],["history","Show item history entries"],["history-compact","Compact history streams into a synthetic baseline + retained tail"],["history-redact","Redact sensitive literals/patterns and recompute history hashes"],["history-repair","Re-anchor a drifted history chain so pm health/validate report ok"],["schema","Manage custom item types and statuses in .agents/pm/schema/*.json"],["profile","List, show, apply, and lint project profiles (archetype schema/config/template/package bundles)"],["plan","Agent-optimized Plan item workflow (create/show/add-step/update-step/complete-step/link/approve/materialize)"],["activity","Show recent activity across items"],["restore","Restore an item to an earlier state"],["update","Update item fields and metadata"],["update-many","Bulk-update matched items with dry-run and rollback checkpoints"],["close","Close an item (reason requirement follows governance settings)"],["close-many","Bulk-close matched items with an optional shared reason and rollback checkpoint"],["delete","Delete an item and record the change"],["append","Append text to an item body"],["comments","List or add comments for an item"],["notes","List or add notes for an item"],["learnings","List or add learnings for an item"],["files","Manage linked files"],["docs","Manage linked docs"],["deps","Show dependency relationships for an item"],["graph","Bounded graph traversal, analytics, and governance-audit queries"],["test","Manage linked tests and optionally run them"],["test-all","Run linked tests across matching items"],["test-runs","Manage background linked-test runs"],["stats","Show project tracker statistics"],["health","Show project tracker health checks"],["validate","Run standalone validation checks"],["gc","Clean optional cache artifacts"],["contracts","Show machine-readable command and schema contracts"],["claim","Claim an item for active work"],["release","Release the active claim for an item"],["start-task","Lifecycle alias to claim and set in_progress"],["pause-task","Lifecycle alias to reopen and release claim"],["close-task","Lifecycle alias to close and release claim"],["meet","Shortcut to create a Meeting with scheduling defaults"],["event","Shortcut to create an Event with scheduling defaults"],["remind","Shortcut to create a Reminder from a point in time"],["templates","Manage reusable create templates"],["completion","Generate shell completion"],["help","Display help for a command"]];const FISH_COMMAND_DESCRIPTION_OVERRIDES=new Map([["calendar","Show deadline/reminder calendar views"],["schema","Inspect and manage runtime schema"],["profile","List, show, apply, and lint project profiles (archetype bundles)"],["plan","Agent-optimized Plan workflow (create/show/add-step/update-step/complete-step/link/approve/materialize)"],["start-task","Lifecycle alias to claim and set in-progress"]]);const GLOBAL_FLAGS=GLOBAL_FLAG_CONTRACTS.flatMap(entry=>[entry.short,entry.flag,...entry.aliases??[]]).filter(value=>Boolean(value)).join(" ");const GLOBAL_COMPLETION_VALUE_PATTERNS=[...GLOBAL_VALUE_CONSUMING_FLAGS].join("|");const GLOBAL_COMPLETION_INLINE_PATTERNS=[...GLOBAL_VALUE_CONSUMING_FLAGS].map(flag=>`${flag}=*`).join("|");const GLOBAL_COMPLETION_SWITCH_PATTERNS=[...GLOBAL_FLAGS.split(" ").filter(flag=>!GLOBAL_VALUE_CONSUMING_FLAGS.has(flag)),"-h","-V"].join("|");function joinCompletionValues(values){return[...new Set(values.map(value=>value.trim()).filter(value=>value.length>0))].sort((left,right)=>left.localeCompare(right)).join(" ")}function joinCompletionValuesInOrder(values){return[...new Set(values.map(value=>value.trim()).filter(value=>value.length>0))].join(" ")}function shellDoubleQuote(value){return value.replaceAll("\\","\\\\").replaceAll('"','\\"').replaceAll("$","\\$").replaceAll("`","\\`")}function completionTypeValues(itemTypes,runtime){return joinCompletionValuesInOrder(itemTypes.length>0?itemTypes:runtime.item_types??DEFAULT_ITEM_TYPES)}function completionStatusValues(runtime){return joinCompletionValues(runtime.statuses??DEFAULT_STATUS_VALUES)}function mergeFlagStrings(baseFlags,runtimeFlags){const merged=[...baseFlags.split(/\s+/u).filter(value=>value.length>0),...runtimeFlags??[]];return joinCompletionValues(merged)}function normalizeRuntimeCompletionFlags(runtimeFlags){const normalized=(runtimeFlags??[]).map(value=>value.trim()).filter(value=>value.startsWith("--")&&value.length>2).map(value=>`--${value.slice(2).replaceAll("_","-")}`);return[...new Set(normalized)].sort((left,right)=>left.localeCompare(right))}function renderZshRuntimeFieldFlagSpecs(runtimeFlags){const normalized=normalizeRuntimeCompletionFlags(runtimeFlags);if(normalized.length===0){return""}return`${normalized.map(flag=>` '${flag}[Runtime schema field flag]:value' \\`).join("\n")}
2
- `}function renderZshArgumentSpecs(specs,options={}){const trailingContinuation=options.trailingContinuation??true;const lastSpecIndex=specs.length-1;return specs.map((spec,index)=>` ${spec}${trailingContinuation||index!==lastSpecIndex?" \\":""}`).join("\n")}function renderZshCommandDescriptions(){return[...COMMAND_COMPLETION_DESCRIPTIONS,["ops","Workspace maintenance and diagnostics"]].filter(([command])=>!HIDDEN_COMMAND_ALIASES.has(command)).map(([command,description])=>` '${command}:${description}'`).join("\n")}function renderFishCommandDescriptions(){return[...COMMAND_COMPLETION_DESCRIPTIONS,["ops","Workspace maintenance and diagnostics"]].filter(([command])=>command!=="help"&&!HIDDEN_COMMAND_ALIASES.has(command)).map(([command,description])=>{const fishDescription=FISH_COMMAND_DESCRIPTION_OVERRIDES.get(command)??description;return`complete -c pm -n __pm_no_subcommand -a ${command.padEnd(16)} -d '${fishDescription}'`}).join("\n")}function renderZshPresenceFilterSpecs(options){const missingSpecs=["reviewer-missing[Select only items missing reviewer]","risk-missing[Select only items missing risk]","confidence-missing[Select only items missing confidence]","sprint-missing[Select only items missing sprint]","release-missing[Select only items missing release]"];const contentMissingAliasSpecs=options.includeContentMissingAliases===true?["files-missing[Alias for --no-files]","docs-missing[Alias for --no-docs]"]:[];const pairedSpecs=[["has-notes[Select only items that have notes]","no-notes[Select only items with no notes]"],["has-learnings[Select only items that have learnings]","no-learnings[Select only items with no learnings]"],["has-files[Select only items that have linked files]","no-files[Select only items with no linked files]"],["has-docs[Select only items that have linked docs]","no-docs[Select only items with no linked docs]"],["has-tests[Select only items that have linked tests]","no-tests[Select only items with no linked tests]"],["has-comments[Select only items that have comments]","no-comments[Select only items with no comments]"],["has-deps[Select only items that have dependencies]","no-deps[Select only items with no dependencies]"],["has-body[Select only items with non-empty body]","empty-body[Select only items with empty body]"],["has-linked-command[Select only items that have a linked command]","no-linked-command[Select only items with no linked command]"]];return renderZshArgumentSpecs([...[...missingSpecs,...contentMissingAliasSpecs].map(spec=>`'--${options.missingPrefix}${spec}'`),...pairedSpecs.flatMap(([positive,negative])=>[`'--${options.pairedPrefix}${positive}'`,`'--${options.pairedPrefix}${negative}'`])])}const ZSH_MUTATION_COLLECTION_ARGUMENT_SPECS=["'--comment[Comment seed author=<value>,created_at=<iso|now>,text=<value>]:comment'","'--note[Note seed author=<value>,created_at=<iso|now>,text=<value>]:note'","'--learning[Learning seed author=<value>,created_at=<iso|now>,text=<value>]:learning'","'--file[Linked file path=<value>,scope=<project|global>,note=<text>]:file'","'--test[Linked test command=<value>,path=<value>,scope=<project|global>]:test'","'--doc[Linked doc path=<value>,scope=<project|global>,note=<text>]:doc'","'--reminder[Reminder entry at=<iso|relative>|date=<iso|relative>,text=<text>|title=<text>]:reminder'","'--event[Event entry start=<iso|relative>,end=<iso|relative>,recur_*]:event'","'--type-option[Type option key=value or key=<name>,value=<value>]:type_option'","'--unset[Clear scalar metadata field by name]:field'","'--replace-files[Atomically replace linked files with provided --file values]'","'--replace-docs[Atomically replace linked docs with provided --doc values]'","'--clear-deps[Clear dependency entries]'","'--clear-comments[Clear comments]'","'--clear-notes[Clear notes]'","'--clear-learnings[Clear learnings]'","'--clear-files[Clear linked files]'","'--clear-tests[Clear linked tests]'","'--clear-docs[Clear linked docs]'","'--clear-reminders[Clear reminders]'","'--clear-events[Clear events]'","'--clear-type-options[Clear type options]'"];function renderZshScheduleItemSpecs(kind){const leadingSpecs=kind==="reminder"?["'--at[Reminder time (default +1d)]:at'","'--text[Reminder text (defaults to title)]:text'"]:["'--start[Start time (ISO, now, or relative)]:start'","'--duration[Duration from start (default 1h)]:duration'","'--end[End time (overrides --duration)]:end'","'--location[Location]:location'","'--timezone[IANA timezone]:timezone'","'--all-day[Mark as an all-day event]'"];return renderZshArgumentSpecs([...leadingSpecs,"'--parent[Parent item id]:parent'","'--allow-missing-parent[Permit a parent id that does not exist yet]'","'--tags[Comma-separated tags]:tags'","'(-p --priority)'{-p,--priority}'[Priority (0-4)]:(0 1 2 3 4)'","'(-b --body)'{-b,--body}'[Item body]:body'","'(-d --description)'{-d,--description}'[Short description]:description'","'--author[Mutation author]:author'","'--message[History message]:message'","'--json[Output JSON]'","'--quiet[Suppress stdout]'"],{trailingContinuation:false})}function renderZshBulkSelectionFilterSpecs(action,statusChoices,typeChoices,tagChoices){return renderZshArgumentSpecs([`'--filter-status[Filter by status before ${action}]:(${statusChoices})'`,`'--filter-type[Filter by type before ${action}]:(${typeChoices})'`,`'--filter-tag[Filter by tag before ${action}]:(${tagChoices})'`,`'--filter-priority[Filter by priority before ${action}]:(0 1 2 3 4)'`,"'--filter-deadline-before[Filter by deadline upper bound]:deadline'","'--filter-deadline-after[Filter by deadline lower bound]:deadline'","'--filter-updated-after[Filter by updated_at lower bound (ISO/relative)]:timestamp'","'--filter-updated-before[Filter by updated_at upper bound (ISO/relative)]:timestamp'","'--filter-created-after[Filter by created_at lower bound (ISO/relative)]:timestamp'","'--filter-created-before[Filter by created_at upper bound (ISO/relative)]:timestamp'",`'--filter-assignee[Filter by assignee before ${action}]:assignee'`,"'--filter-assignee-filter[Filter assignee presence]:(assigned unassigned)'","'--filter-parent[Filter by parent item ID]:parent'","'--filter-sprint[Filter by sprint]:sprint'","'--filter-release[Filter by release]:release'"])}function renderFishRuntimeFieldFlagSpecs(commands,runtimeFlags){const normalizedFlags=normalizeRuntimeCompletionFlags(runtimeFlags).map(flag=>flag.slice(2));if(commands.length===0||normalizedFlags.length===0){return""}const lines=[];for(const command of commands){const predicate=NAMESPACE_NOUNS.includes(command)||PM_NAMESPACED_COMMAND_ALIASES.some(entry=>entry.alias===command)?"__pm_history_operation":"__fish_seen_subcommand_from";for(const flag of normalizedFlags){lines.push(`complete -c pm -n '${predicate} ${command}' -l ${flag} -d 'Runtime schema field flag' -r`)}}return`${lines.join("\n")}
3
- `}function renderBashDynamicChoiceResolver(kind,command,fallback){const envKind=kind.toUpperCase();const cacheVar=`PM_COMPLETION_${envKind}_CACHE`;const cacheTsVar=`PM_COMPLETION_${envKind}_CACHE_TS`;const ttlVar=`PM_COMPLETION_${envKind}_TTL`;const escapedFallback=shellDoubleQuote(fallback);return[`_pm_completion_${kind}_choices() {`," local now ttl cache_ts resolved",' now="$(date +%s 2>/dev/null || echo 0)"',` ttl="\${${ttlVar}:-120}"`,` cache_ts="\${${cacheTsVar}:-0}"`,` if [[ -n "\${${cacheVar}:-}" && "$now" -ne 0 && $((now - cache_ts)) -lt "$ttl" ]]; then`,` printf '%s\\n' "$${cacheVar}"`," return 0"," fi",` resolved="$(pm ${command} 2>/dev/null)"`,' if [[ -z "$resolved" ]]; then',` resolved="${escapedFallback}"`," fi",` ${cacheVar}="$resolved"`,` ${cacheTsVar}="$now"`,` printf '%s\\n' "$${cacheVar}"`,"}"]}function renderZshDynamicChoiceResolver(kind,command,fallback){const envKind=kind.toUpperCase();const cacheVar=`PM_COMPLETION_${envKind}_CACHE`;const cacheTsVar=`PM_COMPLETION_${envKind}_CACHE_TS`;const ttlVar=`PM_COMPLETION_${envKind}_TTL`;const escapedFallback=shellDoubleQuote(fallback);return`
4
- _pm_${kind}_choices() {
5
- local now ttl cache_ts resolved
6
- now=\${EPOCHSECONDS:-0}
7
- ttl=\${${ttlVar}:-120}
8
- cache_ts=\${${cacheTsVar}:-0}
9
- if [[ -n "\${${cacheVar}:-}" && "$now" -ne 0 && $((now - cache_ts)) -lt "$ttl" ]]; then
10
- print -r -- "$${cacheVar}"
11
- return
12
- fi
13
- resolved="$(pm ${command} 2>/dev/null)"
14
- if [[ -z "$resolved" ]]; then
15
- resolved="${escapedFallback}"
16
- fi
17
- ${cacheVar}="$resolved"
18
- ${cacheTsVar}="$now"
19
- print -r -- "$${cacheVar}"
20
- }
21
- `}function renderFishDynamicChoiceResolver(kind,command,fallback){const envKind=kind.toUpperCase();const escapedFallback=fallback.replaceAll("'","\\'");return`
22
- function __pm_${kind}_choices
23
- set -l now (date +%s ^/dev/null)
24
- if test -z "$now"
25
- set now 0
26
- end
27
- set -l ttl 120
28
- if set -q PM_COMPLETION_${envKind}_TTL
29
- set ttl $PM_COMPLETION_${envKind}_TTL
30
- end
31
- if set -q PM_COMPLETION_${envKind}_CACHE; and set -q PM_COMPLETION_${envKind}_CACHE_TS
32
- set -l age (math "$now - $PM_COMPLETION_${envKind}_CACHE_TS")
33
- if test $age -lt $ttl
34
- printf '%s\\n' $PM_COMPLETION_${envKind}_CACHE
35
- return
36
- end
37
- end
38
- set -l resolved (pm ${command} ^/dev/null)
39
- if test (count $resolved) -eq 0
40
- set resolved '${escapedFallback}'
41
- end
42
- set -gx PM_COMPLETION_${envKind}_CACHE $resolved
43
- set -gx PM_COMPLETION_${envKind}_CACHE_TS $now
44
- printf '%s\\n' $resolved
45
- end
46
- `}function generateBashScript(itemTypes=[],tags=[],eagerTagExpansion=false,runtime={}){const namespaceLeaves=completionNamespaceLeaves(runtime);const cmds=ALL_COMMANDS.join(" ");const useDynamicTypeExpansion=itemTypes.length===0;const typeValues=completionTypeValues(itemTypes,runtime);const statusValues=completionStatusValues(runtime);const tagValues=joinCompletionValues(tags);const listFlags=mergeFlagStrings(LIST_FLAGS,runtime.command_flags?.list);const createFlags=mergeFlagStrings(CREATE_FLAGS,runtime.command_flags?.create);const updateFlags=mergeFlagStrings(UPDATE_FLAGS,runtime.command_flags?.update);const updateManyFlags=mergeFlagStrings(UPDATE_MANY_FLAGS,runtime.command_flags?.["update-many"]);const searchFlags=mergeFlagStrings(SEARCH_FLAGS,runtime.command_flags?.search);const calendarFlags=mergeFlagStrings(CALENDAR_FLAGS,runtime.command_flags?.calendar);const contextFlags=mergeFlagStrings(CONTEXT_FLAGS,runtime.command_flags?.context);const useEagerTagExpansion=eagerTagExpansion||tags.length>0;const compgen=flags=>`$(compgen -W "${flags}" -- "$cur")`;return["# bash completion for pm",`# Source this file or add 'eval "$(pm completion bash)"' to ~/.bashrc`,"",...useDynamicTypeExpansion?[...renderBashDynamicChoiceResolver("type","completion-types",typeValues),""]:[],...renderBashDynamicChoiceResolver("status","completion-statuses",statusValues),"","_pm_completion() {"," local cur prev words cword"," _init_completion 2>/dev/null || {",' cur="${COMP_WORDS[COMP_CWORD]}"',' prev="${COMP_WORDS[COMP_CWORD-1]}"'," cword=$COMP_CWORD"," }",""," if [[ $cword -eq 1 ]]; then",` COMPREPLY=(${compgen(cmds)})`," return 0"," fi","",' if [[ "$prev" == "--type" ]]; then',useDynamicTypeExpansion?' COMPREPLY=($(compgen -W "$(_pm_completion_type_choices)" -- "$cur"))':` COMPREPLY=(${compgen(typeValues)})`," return 0"," fi","",' if [[ "$prev" == "--status" ]]; then',' COMPREPLY=($(compgen -W "$(_pm_completion_status_choices)" -- "$cur"))'," return 0"," fi","",...useEagerTagExpansion?[' if [[ ( "$prev" == "--tag" || "$prev" == "--tags" ) && ! ( ( "${COMP_WORDS[1]}" == "package" || "${COMP_WORDS[1]}" == "packages" ) && "${COMP_WORDS[2]}" == "upgrade" ) ]]; then',` COMPREPLY=(${compgen(tagValues)})`," return 0"," fi"]:[' if [[ ( "$prev" == "--tag" || "$prev" == "--tags" ) && ! ( ( "${COMP_WORDS[1]}" == "package" || "${COMP_WORDS[1]}" == "packages" ) && "${COMP_WORDS[2]}" == "upgrade" ) ]]; then'," local now ttl cache_ts tag_values",' now="$(date +%s 2>/dev/null || echo 0)"',' ttl="${PM_COMPLETION_TAG_TTL:-120}"',' cache_ts="${PM_COMPLETION_TAG_CACHE_TS:-0}"',' tag_values="${PM_COMPLETION_TAG_CACHE:-}"',' if [[ -z "$tag_values" || "$now" -eq 0 || $((now - cache_ts)) -ge "$ttl" ]]; then',' tag_values="$(pm completion-tags 2>/dev/null)"',' PM_COMPLETION_TAG_CACHE="$tag_values"',' PM_COMPLETION_TAG_CACHE_TS="$now"'," fi",' COMPREPLY=($(compgen -W "$tag_values" -- "$cur"))'," return 0"," fi"],"",' if [[ "$prev" == "--tag" && ( ( "${COMP_WORDS[1]}" == "package" || "${COMP_WORDS[1]}" == "packages" ) && "${COMP_WORDS[2]}" == "upgrade" ) ]]; then'," COMPREPLY=()"," return 0"," fi","",' local cmd="" command_path="" word_index=1 word'," while (( word_index < cword )); do",' word="${COMP_WORDS[word_index]}"',' case "${word//_/-}" in',` ${GLOBAL_COMPLETION_VALUE_PATTERNS}) (( word_index += 2 )); continue ;;`,` ${GLOBAL_COMPLETION_INLINE_PATTERNS}|${GLOBAL_COMPLETION_SWITCH_PATTERNS}) (( word_index++ )); continue ;;`," --) break ;;"," esac",' if [[ -z "$cmd" ]]; then',' cmd="$word"',' [[ "$cmd" == "ctx" ]] && cmd="context"',' command_path="$cmd"',` case "$cmd" in ${NAMESPACE_NOUNS.join("|")}) ;; *) break ;; esac`," else",' case "$command_path $word" in',...PM_NAMESPACED_COMMAND_ALIASES.map(entry=>` "${entry.canonical}") cmd="${entry.alias}"; command_path="${entry.canonical}" ;;`)," *) break ;;"," esac",` case "$command_path" in ${NAMESPACE_PREFIXES.map(prefix=>`"${prefix}"`).join("|")}) ;; *) (( word_index++ )); break ;; esac`," fi"," (( word_index++ ))"," done",' case "$cmd" in',...HISTORY_OPERATION_FLAGS.flatMap(entry=>[` ${entry.alias})`,` COMPREPLY=(${compgen(entry.flags)})`," return 0"," ;;"])," list)",` COMPREPLY=(${compgen(listFlags)})`," ;;"," aggregate)",` COMPREPLY=(${compgen(AGGREGATE_FLAGS)})`," ;;"," duplicates)",` COMPREPLY=(${compgen(DUPLICATES_FLAGS)})`," ;;"," create)",` COMPREPLY=(${compgen(createFlags)})`," ;;"," copy)",` COMPREPLY=(${compgen(COPY_FLAGS)})`," ;;"," focus)",` COMPREPLY=(${compgen(FOCUS_FLAGS)})`," ;;"," update)",` COMPREPLY=(${compgen(updateFlags)})`," if [[ $word_index -eq $cword ]]; then",` COMPREPLY+=(${compgen(namespaceLeaves.update)})`," fi"," ;;"," update-many)",` COMPREPLY=(${compgen(updateManyFlags)})`," ;;"," calendar|cal)",` COMPREPLY=(${compgen(calendarFlags)})`," ;;"," context|ctx)",` COMPREPLY=(${compgen(contextFlags)})`," if [[ $word_index -eq $cword ]]; then",` COMPREPLY+=(${compgen(namespaceLeaves.context)})`," fi"," ;;"," ops)",` COMPREPLY=(${compgen(`${GLOBAL_FLAGS} ${namespaceLeaves.ops}`)})`," ;;"," next)",` COMPREPLY=(${compgen(NEXT_FLAGS)})`," ;;"," guide)",` COMPREPLY=(${compgen(`${GUIDE_FLAGS} ${GUIDE_TOPIC_CHOICES}`)})`," ;;"," search)",` COMPREPLY=(${compgen(searchFlags)})`," ;;"," reindex)",` COMPREPLY=(${compgen("--mode --progress --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help")})`," ;;"," init)",` COMPREPLY=(${compgen(`${INIT_FLAGS} --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help`)})`," ;;"," config)",` COMPREPLY=(${compgen("--criterion --clear-criteria --format --policy --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help")})`," ;;"," extension)",` COMPREPLY=(${compgen(`${EXTENSION_LIFECYCLE_ACTIONS} ${EXTENSION_LIFECYCLE_FLAGS}`)})`," ;;"," package|packages)",` COMPREPLY=(${compgen(`${PACKAGE_LIFECYCLE_ACTIONS} ${PACKAGE_LIFECYCLE_FLAGS} ${UPGRADE_FLAGS}`)})`," ;;"," comments)",` COMPREPLY=(${compgen("--add --body --stdin --file --edit --delete --limit --full-history --if-absent --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help")})`," ;;"," notes)",` COMPREPLY=(${compgen("--add --add-json --stdin --file --edit --delete --limit --since --event-type --include-meta --full-history --if-absent --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help")})`," ;;"," learnings)",` COMPREPLY=(${compgen("--add --stdin --file --edit --delete --limit --full-history --if-absent --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help")})`," ;;"," files)",` COMPREPLY=(${compgen("discover lookup --add --add-glob --remove --migrate --list --apply --note --append-stable --validate-paths --scope --limit --offset --no-truncate --strict-read --explain --lines --decision-depth --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help")})`," ;;"," docs)",` COMPREPLY=(${compgen("--add --add-glob --remove --migrate --note --validate-paths --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help")})`," ;;"," append)",` COMPREPLY=(${compgen(APPEND_FLAGS)})`," ;;"," deps)",` COMPREPLY=(${compgen(DEPS_FLAGS)})`," ;;"," graph)",` COMPREPLY=(${compgen(`ancestors descendants predecessors successors paths impact analyze audit communities redundancy dominators slack centrality articulation plan index ${GRAPH_FLAGS}`)})`," ;;"," test)",` COMPREPLY=(${compgen("--add --add-json --remove --remove-index --list --run --match --only-index --only-last --background --timeout --progress --env-set --env-clear --shared-host-safe --pm-context --override-linked-pm-context --fail-on-context-mismatch --fail-on-skipped --fail-on-empty-test-run --require-assertions-for-pm --check-context --auto-pm-context --author --message --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help")})`," ;;"," test-all)",` COMPREPLY=(${compgen("--status --limit --offset --background --timeout --progress --env-set --env-clear --shared-host-safe --pm-context --override-linked-pm-context --fail-on-context-mismatch --fail-on-skipped --fail-on-empty-test-run --require-assertions-for-pm --check-context --auto-pm-context --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help")})`," ;;"," test-runs)",` COMPREPLY=(${compgen("list status logs stop resume --status --limit --stream --tail --force --author --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help")})`," ;;"," validate)",` COMPREPLY=(${compgen("--check-completeness --check-metadata --metadata-profile --check-resolution --check-lifecycle --check-stale-blockers --dependency-cycle-severity --parent-cycle-severity --check-files --scan-mode --include-pm-internals --verbose-file-lists --verbose-diagnostics --all-affected-ids --strict-exit --fail-on-warn --fix-hints --auto-fix --dry-run --fix-scope --prune-missing --check-history-drift --check-command-references --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help")})`," ;;"," health)",` COMPREPLY=(${compgen(HEALTH_FLAGS)})`," ;;"," history)"," if [[ $word_index -eq $cword ]]; then",` COMPREPLY=(${compgen(`${HISTORY_FLAGS} ${HISTORY_LEAVES}`)})`," else",` COMPREPLY=(${compgen(HISTORY_FLAGS)})`," fi"," ;;"," events)",` COMPREPLY=(${compgen(EVENTS_FLAGS)})`," ;;"," history-author-acknowledge)",` COMPREPLY=(${compgen(`${HISTORY_AUTHOR_ACKNOWLEDGE_FLAGS} --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help`)})`," ;;"," get)",` COMPREPLY=(${compgen(GET_FLAGS)})`," ;;"," schema)",' if [[ "$prev" == "policy-mode" ]]; then',` COMPREPLY=(${compgen("advise refuse")})`," return"," fi",` COMPREPLY=(${compgen(`${SCHEMA_SUBCOMMAND_CHOICES} --definition --policy --message --description --default-status --folder --alias --role --order --type --commands --cli-flag --required --required-on-create --no-allow-unset --required-types --infer --min-count --apply --to --migration-id --dry-run --author --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help`)})`," ;;"," profile)",` COMPREPLY=(${compgen("list show apply lint agile ops research --dry-run --author --force --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help")})`," ;;"," plan)",` COMPREPLY=(${compgen(`${PLAN_SUBCOMMANDS_LIST} ${PLAN_FLAGS}`)})`," ;;"," contracts)",` COMPREPLY=(${compgen(CONTRACTS_FLAGS)})`," ;;"," gc)",` COMPREPLY=(${compgen("--dry-run --scope --json --quiet --no-changed-fields --pm-path --path --no-extensions --no-pager --profile --help")})`," ;;"," stats)",` COMPREPLY=(${compgen(STATS_FLAGS)})`," ;;"," close-task)",` COMPREPLY=(${compgen(CLOSE_TASK_MUTATION_FLAGS)})`," ;;"," close)",` COMPREPLY=(${compgen(CLOSE_MUTATION_FLAGS)})`,' if [[ "$cmd" == "close" && $word_index -eq $cword ]]; then',` COMPREPLY+=(${compgen(namespaceLeaves.close)})`," fi"," ;;"," close-many)",` COMPREPLY=(${compgen(CLOSE_MANY_FLAGS)})`," ;;"," release)",` COMPREPLY=(${compgen(RELEASE_MUTATION_FLAGS)})`," ;;"," delete)",` COMPREPLY=(${compgen(DELETE_MUTATION_FLAGS)})`," ;;"," claim)",` COMPREPLY=(${compgen(CLAIM_MUTATION_FLAGS)})`," ;;"," start-task|pause-task)",` COMPREPLY=(${compgen(MUTATION_FLAGS)})`," ;;"," meet|event)",` COMPREPLY=(${compgen(MEET_FLAGS)})`," ;;"," remind)",` COMPREPLY=(${compgen(REMIND_FLAGS)})`," ;;"," completion)",` COMPREPLY=(${compgen(COMPLETION_SHELL_CHOICES)})`," ;;"," templates)",` COMPREPLY=(${compgen("save list show")})`," ;;"," *)",` COMPREPLY=(${compgen(GLOBAL_FLAGS)})`," ;;"," esac"," if [[ $word_index -eq $cword ]]; then",' case "$command_path" in',...Object.entries(namespaceLeaves).filter(([prefix])=>["item","workspace","search"].includes(prefix.split(" ")[0])).map(([prefix,leaves])=>` "${prefix}") COMPREPLY+=(${compgen(leaves)}) ;;`)," esac"," fi",' if [[ "$cmd" == "comments" || "$cmd" == "notes" || "$cmd" == "learnings" ]]; then',` COMPREPLY+=(${compgen("--text")})`," fi"," return 0","}","","complete -F _pm_completion pm"].join("\n")}function generateZshScript(itemTypes=[],tags=[],eagerTagExpansion=false,runtime={}){const namespaceLeaves=completionNamespaceLeaves(runtime);const useDynamicTypeExpansion=itemTypes.length===0;const typeFallbackChoices=completionTypeValues(itemTypes,runtime);const statusFallbackChoices=completionStatusValues(runtime);const typeChoices=useDynamicTypeExpansion?'${(f)"$(_pm_type_choices)"}':typeFallbackChoices;const statusChoices='${(f)"$(_pm_status_choices)"}';const guideTopicChoices=GUIDE_TOPIC_CHOICES;const tagChoices=joinCompletionValues(tags);const useEagerTagExpansion=eagerTagExpansion||tags.length>0;const zshTagChoices=useEagerTagExpansion?tagChoices:'${(f)"$(_pm_tag_choices)"}';const zshListRuntimeFieldFlags=renderZshRuntimeFieldFlagSpecs(runtime.command_flags?.list);const zshCreateRuntimeFieldFlags=renderZshRuntimeFieldFlagSpecs(runtime.command_flags?.create);const zshSearchRuntimeFieldFlags=renderZshRuntimeFieldFlagSpecs(runtime.command_flags?.search);const zshCalendarRuntimeFieldFlags=renderZshRuntimeFieldFlagSpecs(runtime.command_flags?.calendar);const zshContextRuntimeFieldFlags=renderZshRuntimeFieldFlagSpecs(runtime.command_flags?.context);const zshPresenceFilterFlags=renderZshPresenceFilterSpecs({missingPrefix:"filter-",pairedPrefix:"",includeContentMissingAliases:true});const zshBulkPresenceFilterFlags=renderZshPresenceFilterSpecs({missingPrefix:"filter-",pairedPrefix:"filter-"});const zshMutationCollectionFlags=renderZshArgumentSpecs(ZSH_MUTATION_COLLECTION_ARGUMENT_SPECS);const dynamicTagResolver=useEagerTagExpansion?"":`
47
- _pm_tag_choices() {
48
- local now ttl cache_ts
49
- now=\${EPOCHSECONDS:-0}
50
- ttl=\${PM_COMPLETION_TAG_TTL:-120}
51
- cache_ts=\${PM_COMPLETION_TAG_CACHE_TS:-0}
52
- if [[ -n "\${PM_COMPLETION_TAG_CACHE:-}" && "$now" -ne 0 && $((now - cache_ts)) -lt "$ttl" ]]; then
53
- print -r -- "$PM_COMPLETION_TAG_CACHE"
54
- return
55
- fi
56
- PM_COMPLETION_TAG_CACHE="$(pm completion-tags 2>/dev/null)"
57
- PM_COMPLETION_TAG_CACHE_TS="$now"
58
- print -r -- "$PM_COMPLETION_TAG_CACHE"
59
- }
60
- `;return`#compdef pm
61
- # zsh completion for pm
62
- # Source this file or add 'eval "$(pm completion zsh)"' to ~/.zshrc
63
-
64
- _pm_commands() {
65
- local -a commands
66
- commands=(
67
- ${renderZshCommandDescriptions()}
68
- )
69
- _describe 'command' commands
70
- }
71
- ${dynamicTagResolver}
72
- ${useDynamicTypeExpansion?renderZshDynamicChoiceResolver("type","completion-types",typeFallbackChoices):""}
73
- ${renderZshDynamicChoiceResolver("status","completion-statuses",statusFallbackChoices)}
74
-
75
- _pm() {
76
- local context state line
77
- local -a words=("$words[@]")
78
- local CURRENT=$CURRENT
79
- local word_index=2 namespace_noun="" operation_path="" operation_index=0 word
80
- while (( word_index < CURRENT )); do
81
- word="$words[word_index]"
82
- case "\${word//_/-}" in
83
- ${GLOBAL_COMPLETION_VALUE_PATTERNS}) (( word_index += 2 )); continue ;;
84
- ${GLOBAL_COMPLETION_INLINE_PATTERNS}|${GLOBAL_COMPLETION_SWITCH_PATTERNS}) (( word_index++ )); continue ;;
85
- --) break ;;
86
- esac
87
- if [[ -z "$namespace_noun" ]]; then
88
- [[ "$word" == "ctx" ]] && word="context"
89
- case "$word" in ${NAMESPACE_NOUNS.join("|")}) ;; *) break ;; esac
90
- namespace_noun="$word"
91
- else
92
- case "$namespace_noun $word" in
93
- ${PM_NAMESPACED_COMMAND_ALIASES.map(entry=>` "${entry.canonical}") namespace_noun="${entry.canonical}"; operation_path="$namespace_noun"; operation_index=$word_index ;;`).join("\n")}
94
- *) break ;;
95
- esac
96
- fi
97
- (( word_index++ ))
98
- done
99
- if [[ -n "$namespace_noun" ]] && (( word_index == CURRENT )) && [[ "$words[CURRENT]" != -* ]]; then
100
- local -a history_commands
101
- case "$namespace_noun" in
102
- ${Object.entries(namespaceLeaves).map(([noun,leaves])=>` "${noun}") history_commands=(${leaves}) ;;`).join("\n")}
103
- esac
104
- if (( \${#history_commands} > 0 )); then
105
- _describe 'command operation' history_commands
106
- return
107
- fi
108
- fi
109
- if (( operation_index > 0 )); then
110
- case "$operation_path" in
111
- ${PM_NAMESPACED_COMMAND_ALIASES.map(entry=>` "${entry.canonical}") words=("$words[1]" "${entry.alias}" "\${words[@]:$operation_index}"); (( CURRENT -= operation_index - 2 )) ;;`).join("\n")}
112
- esac
113
- fi
114
- _arguments -C \\
115
- '--json[Output JSON instead of TOON]' \\
116
- '--all[Reveal every public command and compatibility alias]' \\
117
- '--quiet[Suppress stdout output]' \\
118
- '--output-include[Retain comma-separated read fields or sections]:selectors' \\
119
- '--output-limit[Set the universal read row ceiling]:limit' \\
120
- '--output-budget[Set the universal estimated-token ceiling]:tokens' \\
121
- '--output-format[Select the universal read encoding]:(toon json)' \\
122
- '--output-session[Carry cross-call read budget and served-item state]:state' \\
123
- '--output-row-contract[Include row schema metadata in read output]' \\
124
- '--no-changed-fields[Omit changed_fields array from mutation output]' \\
125
- '--pm-path[Explicit tracker storage path for this command]:path:_files -/' \\
126
- '--path[Compatibility alias for --pm-path]:path:_files -/' \\
127
- '--no-extensions[Disable extension loading]' \\
128
- '--no-pager[Disable pager integration for help and long output]' \\
129
- '--profile[Print deterministic timing diagnostics]' \\
130
- '(-V --version)--version[Output the version number]' \\
131
- '(-h --help)--help[Display help]' \\
132
- '1: :_pm_commands' \\
133
- '*:: :->args' && return 0
134
-
135
- case $state in
136
- args)
137
- case $line[1] in
138
- list)
139
- _arguments \\
140
- '*--status[Filter by status; repeatable, comma-separated, or all]:(${statusChoices})' \\
141
- '--all[Include every lifecycle status]' \\
142
- '--type[Filter by item type]:(${typeChoices})' \\
143
- '--tag[Filter by tag]:(${zshTagChoices})' \\
144
- '--tags[Alias for --tag]:(${zshTagChoices})' \\
145
- '--priority[Filter by priority]:(0 1 2 3 4)' \\
146
- '--deadline-before[Filter by deadline upper bound (ISO/date string or relative)]:date' \\
147
- '--deadline-after[Filter by deadline lower bound (ISO/date string or relative)]:date' \\
148
- '--today[Filter to items updated since local midnight today]' \\
149
- '--recent[Filter to items updated in the last 7 days]' \\
150
- '--updated-after[Filter by updated_at lower bound (ISO/relative)]:timestamp' \\
151
- '--updated-before[Filter by updated_at upper bound (ISO/relative)]:timestamp' \\
152
- '--created-after[Filter by created_at lower bound (ISO/relative)]:timestamp' \\
153
- '--created-before[Filter by created_at upper bound (ISO/relative)]:timestamp' \\
154
- '--assignee[Filter by assignee]:assignee' \\
155
- '--assignee-filter[Filter assignee presence]:(assigned unassigned)' \\
156
- '--sprint[Filter by sprint]:sprint' \\
157
- '--release[Filter by release]:release' \\
158
- ${zshPresenceFilterFlags}
159
- '--limit[Limit returned item count]:number' \\
160
- '--offset[Skip the first n matching rows before limit]:number' \\
161
- '--no-truncate[Return every matched row, overriding --limit]' \\
162
- '--include-body[Include item body in each returned list row]' \\
163
- '--compact[Render compact list projection fields]' \\
164
- '--fields[Render custom comma-separated list fields]:fields' \\
165
- '--tree[Render hierarchical subtree output rooted at --parent or top-level parents]' \\
166
- '--tree-depth[Cap recursion depth for --tree (0 = root only)]:number' \\
167
- '--sort[Sort field]:(priority deadline updated_at created_at title parent)' \\
168
- '--order[Sort order (requires --sort)]:(asc desc)' \\
169
- '--stream[Emit line-delimited JSON rows (requires --json)]' \\
170
- ${zshListRuntimeFieldFlags} '--json[Output JSON]' \\
171
- '--quiet[Suppress stdout]' \\
172
- '--pm-path[Explicit tracker storage path]:path:_files -/' \\
173
- '--path[Compatibility alias for --pm-path]:path:_files -/'
174
- ;;
175
- aggregate)
176
- _arguments \\
177
- '--group-by[Comma-separated group-by fields (supported: parent,type,priority,status,assignee,tags,sprint,release)]:fields' \\
178
- '--count[Return grouped counts]' \\
179
- '--completion[Add open/in_progress/closed/other counts and completion percentage]' \\
180
- '--sum[Numeric field to sum per group]:field' \\
181
- '--avg[Numeric field to average per group]:field' \\
182
- '--include-unparented[Include unparented rows when grouping by parent]' \\
183
- '--status[Filter by status]:(${statusChoices})' \\
184
- '--type[Filter by item type]:(${typeChoices})' \\
185
- '--tag[Filter by tag]:(${zshTagChoices})' \\
186
- '--priority[Filter by priority]:(0 1 2 3 4)' \\
187
- '--deadline-before[Filter by deadline upper bound (ISO/date string or relative)]:date' \\
188
- '--deadline-after[Filter by deadline lower bound (ISO/date string or relative)]:date' \\
189
- '--assignee[Filter by assignee]:assignee' \\
190
- '--assignee-filter[Filter assignee presence]:(assigned unassigned)' \\
191
- '--parent[Filter by parent item ID]:parent_id' \\
192
- '--sprint[Filter by sprint]:sprint' \\
193
- '--release[Filter by release]:release' \\
194
- '--json[Output JSON]' \\
195
- '--quiet[Suppress stdout]'
196
- ;;
197
- duplicates)
198
- _arguments \\
199
- '*--status[Include lifecycle status (repeatable)]:(${statusChoices})' \\
200
- '--since[Only inspect items created at or after this ISO timestamp]:timestamp' \\
201
- '--threshold[Minimum similarity score from zero through one]:number' \\
202
- '--limit[Maximum duplicate clusters]:number'
203
- ;;
204
- create)
205
- _arguments \\
206
- '(-t --title)'{-t,--title}'[Item title]:title' \\
207
- '(-d --description)'{-d,--description}'[Item description]:description' \\
208
- '--type[Item type]:(${typeChoices})' \\
209
- '--create-mode[Create required-option policy mode]:(strict progressive)' \\
210
- '--schedule-preset[Scheduling preset for Reminder/Meeting/Event]:(lightweight)' \\
211
- '(-s --status)'{-s,--status}'[Item status]:(${statusChoices})' \\
212
- '(-p --priority)'{-p,--priority}'[Priority (0-4)]:(0 1 2 3 4)' \\
213
- '--tags[Comma-separated tags]:tags' \\
214
- '--add-tags[Add tags additively without replacing existing]:tags' \\
215
- '(-b --body)'{-b,--body}'[Item body]:body' \\
216
- '--body-file[Load the item body from a file]:body_file:_files' \\
217
- '--deadline[Deadline (ISO/date string or relative +6h/+1d/+2w/+6m)]:deadline' \\
218
- '--estimate[Estimated minutes]:minutes' \\
219
- '--acceptance-criteria[Acceptance criteria]:criteria' \\
220
- '--reminder[Reminder entry at=<iso|relative>|date=<iso|relative>,text=<text>|title=<text>]:reminder' \\
221
- '--event[Event entry start=<iso|relative>,end=<iso|relative>,recur_*]:event' \\
222
- '--type-option[Type option key=value or key=<name>,value=<value>]:type_option' \\
223
- '--unset[Clear scalar metadata field by name]:field' \\
224
- '--replace-deps[Atomically replace dependencies with provided --dep values]' \\
225
- '--replace-tests[Atomically replace linked tests with provided --test values]' \\
226
- '--clear-deps[Clear dependency entries]' \\
227
- '--clear-comments[Clear comments]' \\
228
- '--clear-notes[Clear notes]' \\
229
- '--clear-learnings[Clear learnings]' \\
230
- '--clear-files[Clear linked files]' \\
231
- '--clear-tests[Clear linked tests]' \\
232
- '--clear-docs[Clear linked docs]' \\
233
- '--clear-reminders[Clear reminders]' \\
234
- '--clear-events[Clear events]' \\
235
- '--clear-type-options[Clear type options]' \\
236
- '--author[Mutation author]:author' \\
237
- '--message[History message]:message' \\
238
- '--assignee[Assignee]:assignee' \\
239
- ${zshCreateRuntimeFieldFlags} '--json[Output JSON]' \\
240
- '--quiet[Suppress stdout]'
241
- ;;
242
- copy)
243
- _arguments \\
244
- '--title[Override copied title]:title' \\
245
- '--author[Mutation author]:author' \\
246
- '--message[History message]:message' \\
247
- '--force[Force ownership override]' \\
248
- '--json[Output JSON]' \\
249
- '--quiet[Suppress stdout]'
250
- ;;
251
- focus)
252
- _arguments \\
253
- '--clear[Clear the focused item]' \\
254
- '--json[Output JSON]' \\
255
- '--quiet[Suppress stdout]'
256
- ;;
257
- meet|event)
258
- _arguments \\
259
- ${renderZshScheduleItemSpecs("event")}
260
- ;;
261
- remind)
262
- _arguments \\
263
- ${renderZshScheduleItemSpecs("reminder")}
264
- ;;
265
- update)
266
- _arguments \\
267
- '(-t --title)'{-t,--title}'[Item title]:title' \\
268
- '(-d --description)'{-d,--description}'[Item description]:description' \\
269
- '(-b --body)'{-b,--body}'[Item body]:body' \\
270
- '--body-file[Load the item body from a file]:body_file:_files' \\
271
- '(-s --status)'{-s,--status}'[Item status]:(${statusChoices})' \\
272
- '--close-reason[Set close reason]:close_reason' \\
273
- '(-p --priority)'{-p,--priority}'[Priority (0-4)]:(0 1 2 3 4)' \\
274
- '--type[Item type]:(${typeChoices})' \\
275
- '--tags[Comma-separated tags]:tags' \\
276
- '--add-tags[Add tags additively without replacing existing]:tags' \\
277
- '--remove-tags[Remove tags from the existing list]:tags' \\
278
- '--add-ac[Add one acceptance criterion without replacing existing]:criteria' \\
279
- '--remove-ac[Remove one acceptance criterion by exact text]:criteria' \\
280
- '--expected[Short alias for --expected-result]:expected_result' \\
281
- '--actual[Short alias for --actual-result]:actual_result' \\
282
- ${zshMutationCollectionFlags}
283
- '--author[Mutation author]:author' \\
284
- '--message[History message]:message' \\
285
- '--force[Force override]' \\
286
- '--json[Output JSON]' \\
287
- '--quiet[Suppress stdout]'
288
- ;;
289
- update-many)
290
- _arguments \\
291
- ${renderZshBulkSelectionFilterSpecs("applying updates",statusChoices,typeChoices,zshTagChoices)}
292
- '--filter-ac-missing[Select only items missing acceptance_criteria]' \\
293
- '--filter-estimates-missing[Select only items missing estimated_minutes]' \\
294
- '--filter-resolution-missing[Select only terminal items missing resolution]' \\
295
- '--filter-metadata-missing[Select only items missing any tracked metadata]' \\
296
- ${zshBulkPresenceFilterFlags}
297
- '--ids[Explicit comma-separated ID allowlist]:ids' \\
298
- '--limit[Limit matched item count]:number' \\
299
- '--offset[Skip first n matched rows]:number' \\
300
- '--dry-run[Preview updates without mutating]' \\
301
- '--rollback[Rollback checkpoint ID]:checkpoint_id' \\
302
- '--no-checkpoint[Disable checkpoint creation during apply mode]' \\
303
- '(-t --title)'{-t,--title}'[Item title]:title' \\
304
- '(-d --description)'{-d,--description}'[Item description]:description' \\
305
- '(-b --body)'{-b,--body}'[Item body]:body' \\
306
- '(-p --priority)'{-p,--priority}'[Priority (0-4)]:(0 1 2 3 4)' \\
307
- '--type[Item type]:(${typeChoices})' \\
308
- '--tags[Comma-separated tags]:tags' \\
309
- '--add-tags[Add tags additively without replacing existing]:tags' \\
310
- '--remove-tags[Remove tags from the existing list]:tags' \\
311
- '--deadline[Deadline (ISO/date string or relative +6h/+1d/+2w/+6m)]:deadline' \\
312
- '--estimate[Estimated minutes]:minutes' \\
313
- '--acceptance-criteria[Acceptance criteria]:criteria' \\
314
- '--add-ac[Add one acceptance criterion without replacing existing]:criteria' \\
315
- '--remove-ac[Remove one acceptance criterion by exact text]:criteria' \\
316
- '--definition-of-ready[Definition of ready]:definition_of_ready' \\
317
- '--order[Planning order/rank]:order' \\
318
- '--goal[Goal identifier]:goal' \\
319
- '--objective[Objective identifier]:objective' \\
320
- '--value[Business value summary]:value' \\
321
- '--impact[Business impact summary]:impact' \\
322
- '--outcome[Expected outcome summary]:outcome' \\
323
- '--why-now[Why-now rationale]:why_now' \\
324
- '--reviewer[Reviewer]:reviewer' \\
325
- '--risk[Risk level]:risk' \\
326
- '--confidence[Confidence level]:confidence' \\
327
- '--sprint[Sprint identifier]:sprint' \\
328
- '--release[Release identifier]:release' \\
329
- '--reporter[Issue reporter]:reporter' \\
330
- '--severity[Issue severity]:severity' \\
331
- '--environment[Issue environment context]:environment' \\
332
- '--repro-steps[Issue reproduction steps]:repro_steps' \\
333
- '--resolution[Issue resolution summary]:resolution' \\
334
- '--expected-result[Issue expected behavior]:expected_result' \\
335
- '--actual-result[Issue observed behavior]:actual_result' \\
336
- '--expected[Short alias for --expected-result]:expected_result' \\
337
- '--actual[Short alias for --actual-result]:actual_result' \\
338
- '--affected-version[Affected version identifier]:affected_version' \\
339
- '--fixed-version[Fixed version identifier]:fixed_version' \\
340
- '--component[Issue component ownership]:component' \\
341
- '--regression[Regression marker true|false|1|0]:regression' \\
342
- '--customer-impact[Customer impact summary]:customer_impact' \\
343
- '--dep[Dependency seed id=<id>,kind=<kind>,author=<author>,created_at=<timestamp>]:dep' \\
344
- '--dep-remove[Dependency removal selector id=<id>,kind=<kind>,author=<author>,created_at=<timestamp>]:dep_remove' \\
345
- '--replace-deps[Atomically replace dependencies with provided --dep values]' \\
346
- '--replace-tests[Atomically replace linked tests with provided --test values]' \\
347
- ${zshMutationCollectionFlags}
348
- '--author[Mutation author]:author' \\
349
- '--message[History message]:message' \\
350
- '--force[Force override]' \\
351
- '--json[Output JSON]' \\
352
- '--quiet[Suppress stdout]'
353
- ;;
354
- close-many)
355
- _arguments \\
356
- ${renderZshBulkSelectionFilterSpecs("closing",statusChoices,typeChoices,zshTagChoices)}
357
- ${zshBulkPresenceFilterFlags}
358
- '--ids[Explicit comma-separated ID allowlist]:ids' \\
359
- '--limit[Limit matched item count]:number' \\
360
- '--offset[Skip first n matched rows]:number' \\
361
- '--reason[Optional shared close reason applied to every matched item]:reason' \\
362
- '--resolution[Shared closure resolution]:resolution' \\
363
- '--expected-result[Shared expected-result note]:expected_result' \\
364
- '--actual-result[Shared actual-result note]:actual_result' \\
365
- '--expected[Short alias for --expected-result]:expected_result' \\
366
- '--actual[Short alias for --actual-result]:actual_result' \\
367
- '--validate-close[Validate closure metadata per item]:(off warn strict)' \\
368
- '--author[Mutation author]:author' \\
369
- '--message[History message]:message' \\
370
- '--force[Re-close terminal matches and override ownership]' \\
371
- '--dry-run[Preview matched items without mutating]' \\
372
- '--rollback[Rollback checkpoint ID]:checkpoint_id' \\
373
- '--no-checkpoint[Disable checkpoint creation during apply mode]' \\
374
- '--json[Output JSON]' \\
375
- '--quiet[Suppress stdout]'
376
- ;;
377
- calendar|cal)
378
- _arguments \\
379
- '--view[Calendar view]:(agenda day week month)' \\
380
- '--date[Anchor date/time (ISO/date string or relative)]:date' \\
381
- '--from[Agenda lower bound (ISO/date string or relative)]:date' \\
382
- '--to[Agenda upper bound (ISO/date string or relative)]:date' \\
383
- '--past[Include past entries]' \\
384
- '--full-period[Include full anchored day/week/month period]' \\
385
- '--type[Filter by type]:(${typeChoices})' \\
386
- '--tag[Filter by tag]:(${zshTagChoices})' \\
387
- '--priority[Filter by priority]:(0 1 2 3 4)' \\
388
- '--status[Filter by status]:(${statusChoices})' \\
389
- '--assignee[Filter by assignee]:assignee' \\
390
- '--assignee-filter[Filter assignee presence]:(assigned unassigned)' \\
391
- '--sprint[Filter by sprint]:sprint' \\
392
- '--release[Filter by release]:release' \\
393
- ${zshCalendarRuntimeFieldFlags} '--include[Include event sources]:(all deadlines reminders events scheduled)' \\
394
- '--recurrence-lookahead-days[Bound open-ended recurrence lookahead]:days' \\
395
- '--recurrence-lookback-days[Bound open-ended recurrence lookback]:days' \\
396
- '--occurrence-limit[Cap occurrences per recurring event]:number' \\
397
- '--limit[Limit returned events]:number' \\
398
- '--format[Output override]:(markdown toon json)' \\
399
- '--json[Output JSON]' \\
400
- '--quiet[Suppress stdout]'
401
- ;;
402
- context|ctx)
403
- _arguments \\
404
- '--date[Anchor date/time (ISO/date string or relative)]:date' \\
405
- '--from[Agenda lower bound (ISO/date string or relative)]:date' \\
406
- '--to[Agenda upper bound (ISO/date string or relative)]:date' \\
407
- '--past[Include past entries in bounded windows]' \\
408
- '--type[Filter by type]:(${typeChoices})' \\
409
- '--tag[Filter by tag]:(${zshTagChoices})' \\
410
- '--priority[Filter by priority]:(0 1 2 3 4)' \\
411
- '--assignee[Filter by assignee]:assignee' \\
412
- '--assignee-filter[Filter assignee presence]:(assigned unassigned)' \\
413
- '--sprint[Filter by sprint]:sprint' \\
414
- '--release[Filter by release]:release' \\
415
- '--parent[Scope snapshot to one item subtree]:id' \\
416
- '--limit[Limit focus and agenda rows per section]:number' \\
417
- '--depth[Context depth]:(brief standard deep full)' \\
418
- '--format[Output override]:(markdown toon json)' \\
419
- ${zshContextRuntimeFieldFlags} '--json[Output JSON]' \\
420
- '--quiet[Suppress stdout]'
421
- ;;
422
- next)
423
- _arguments \\
424
- '--type[Filter candidates by type]:(${typeChoices})' \\
425
- '--tag[Filter candidates by tag]:(${zshTagChoices})' \\
426
- '--priority[Filter candidates by priority]:(0 1 2 3 4)' \\
427
- '--assignee[Filter candidates by assignee]:assignee' \\
428
- '--assignee-filter[Filter assignee presence]:(assigned unassigned)' \\
429
- '--sprint[Filter candidates by sprint]:sprint' \\
430
- '--release[Filter candidates by release]:release' \\
431
- '--parent[Scope to one item subtree]:id' \\
432
- '--limit[Limit ready rows]:number' \\
433
- '--blocked-limit[Limit blocked rows]:number' \\
434
- '--ready-only[Omit the blocked companion list]' \\
435
- '--format[Output override]:(markdown toon json)' \\
436
- '--json[Output JSON]' \\
437
- '--quiet[Suppress stdout]'
438
- ;;
439
- guide)
440
- _arguments \\
441
- '1:topic:(${guideTopicChoices})' \\
442
- '--list[Show guide topic index]' \\
443
- '--format[Output override]:(markdown toon json)' \\
444
- '--depth[Guide detail depth]:(brief standard deep)' \\
445
- '--json[Output JSON]' \\
446
- '--quiet[Suppress stdout]'
447
- ;;
448
- search)
449
- _arguments \\
450
- '--mode[Search mode]:(keyword semantic hybrid)' \\
451
- '--match-mode[Token match mode]:(and or exact)' \\
452
- '--min-score[Per-query minimum score threshold]:number' \\
453
- '--count[Return only the match count]' \\
454
- '--include-linked[Include linked content in scoring]' \\
455
- '--highlight[Emit per-field matched-text snippets on each hit]' \\
456
- '--limit[Max results]:number' \\
457
- '--status[Filter by status (open/closed/canceled, csv)]:(${statusChoices})' \\
458
- '--type[Filter by type]:(${typeChoices})' \\
459
- '--tag[Filter by tag]:(${zshTagChoices})' \\
460
- '--tags[Alias for --tag]:(${zshTagChoices})' \\
461
- '--priority[Filter by priority]:(0 1 2 3 4)' \\
462
- '--updated-after[Filter by updated_at lower bound]:value' \\
463
- '--updated-before[Filter by updated_at upper bound]:value' \\
464
- '--created-after[Filter by created_at lower bound]:value' \\
465
- '--created-before[Filter by created_at upper bound]:value' \\
466
- '--assignee[Filter by assignee]:value' \\
467
- '--sprint[Filter by sprint]:value' \\
468
- '--release[Filter by release]:value' \\
469
- '--parent[Filter by parent item ID]:value' \\
470
- ${zshPresenceFilterFlags}
471
- ${zshSearchRuntimeFieldFlags} '--json[Output JSON]' \\
472
- '--quiet[Suppress stdout]'
473
- ;;
474
- reindex)
475
- _arguments \\
476
- '--mode[Reindex mode]:(keyword semantic hybrid)' \\
477
- '--progress[Emit progress updates to stderr]' \\
478
- '--json[Output JSON]' \\
479
- '--quiet[Suppress stdout]'
480
- ;;
481
- history)
482
- _arguments \\
483
- '--limit[Max entries]:number' \\
484
- '--compact[Condensed history projection]' \\
485
- '--full[Show full history entries]' \\
486
- '--provenance[Patch-free identity and agent provenance projection]' \\
487
- '--provenance-summary[Include bounded provenance completeness counts]' \\
488
- '*--harness[Filter by recorded or vocabulary-resolved harness]:harness' \\
489
- '*--agent-instance[Filter by privacy-safe agent instance]:instance' \\
490
- '*--provenance-filter[Filter by exact declared provenance value]:dimension=value' \\
491
- '--diff[Include per-entry field-level before/after value diffs]' \\
492
- '--field[With --diff, show only entries that changed this field]:field' \\
493
- '--verify[Verify history hash chain and replay integrity]' \\
494
- '--json[Output JSON]' \\
495
- '--quiet[Suppress stdout]'
496
- ;;
497
- events)
498
- _arguments \\
499
- '--since[Resume after a cursor or from an ISO timestamp]:cursor_or_timestamp' \\
500
- '*--type[Filter by mutation operation]:operation' \\
501
- '*--author[Filter by mutation author]:author' \\
502
- '*--item[Filter by item or workspace stream]:item' \\
503
- '--limit[Maximum events, up to 1000]:number' \\
504
- '--full[Include complete authoritative history entries]' \\
505
- '--provenance[Include patch-free identity and agent provenance]' \\
506
- '--provenance-summary[Include bounded provenance completeness counts]' \\
507
- '*--harness[Filter by recorded or vocabulary-resolved harness]:harness' \\
508
- '*--agent-instance[Filter by privacy-safe agent instance]:instance' \\
509
- '*--provenance-filter[Filter by exact declared provenance value]:dimension=value' \\
510
- '--follow[Continue emitting committed events]' \\
511
- '--interval-ms[Empty-read delay while following]:milliseconds' \\
512
- '--json[Output JSON]' \\
513
- '--quiet[Suppress stdout]'
514
- ;;
515
- history-attest)
516
- _arguments \\
517
- ${renderZshArgumentSpecs(ATTEST_INVOCATIONS.map(flag=>`'${flag.flag}[${flag.description}]${flag.takes_value?":value":""}'`),{trailingContinuation:false})}
518
- ;;
519
- history-compact)
520
- _arguments \\
521
- '--id[Item ID (alternative to positional ID)]:id' \\
522
- '--before[Compact entries strictly before this version number or ISO timestamp]:before' \\
523
- '--ids[Bulk: compact an explicit comma-separated list of item ids]:ids' \\
524
- '--all-over[Bulk: compact every stream with more than N entries]:all-over' \\
525
- '--closed[Bulk: compact only closed (terminal) items streams]' \\
526
- '--all-streams[Bulk: compact every history stream regardless of lifecycle state]' \\
527
- '--min-entries[Bulk: skip streams with at most N entries]:min-entries' \\
528
- '--dry-run[Preview compaction impact without writing the history file]' \\
529
- '--author[Mutation author]:author' \\
530
- '--message[Audit history message]:message' \\
531
- '--force[Force ownership/lock override]' \\
532
- '--json[Output JSON]' \\
533
- '--quiet[Suppress stdout]'
534
- ;;
535
- history-author-acknowledge)
536
- _arguments \\
537
- '*--event[Actionable unknown-author event]:item_and_line' \\
538
- '--all-actionable[Select every currently actionable event]' \\
539
- '--dry-run[Preview a deterministic source-bound plan]' \\
540
- '--plan-fingerprint[Apply the exact dry-run plan]:sha256' \\
541
- '--limit[Maximum coordinate rows returned in the plan]:number' \\
542
- '--attributed-author[Principal attributed by maintainer review]:author' \\
543
- '--reviewer[Reviewer recording the disposition]:reviewer' \\
544
- '--reason[Evidence-backed review rationale]:reason' \\
545
- '--json[Output JSON]' \\
546
- '--quiet[Suppress stdout]'
547
- ;;
548
- get)
549
- _arguments \\
550
- '--depth[Detail depth]:(brief standard deep full)' \\
551
- '--full[Explicit full item read]' \\
552
- '--fields[Render custom comma-separated item fields]:fields' \\
553
- '--tree[Include descendant subtree in result payload]' \\
554
- '--tree-depth[Cap subtree depth for --tree (0 = root only)]:number' \\
555
- '--json[Output JSON]' \\
556
- '--quiet[Suppress stdout]'
557
- ;;
558
- history-redact)
559
- _arguments \\
560
- '--id[Item ID (alternative to positional ID)]:id' \\
561
- '--literal[Literal string matcher to redact from history/item payloads]:literal' \\
562
- '--regex[Regex matcher to redact (/pattern/flags or raw pattern)]:regex' \\
563
- '--replacement[Replacement text (defaults to [redacted])]:replacement' \\
564
- '--dry-run[Preview redaction impact without writing files]' \\
565
- '--author[Mutation author]:author' \\
566
- '--message[Audit history message]:message' \\
567
- '--force[Force ownership/lock override]' \\
568
- '--json[Output JSON]' \\
569
- '--quiet[Suppress stdout]'
570
- ;;
571
- history-repair)
572
- _arguments \\
573
- '--id[Item ID (alternative to positional ID)]:id' \\
574
- '--salvage-tail[Recover an invalid suffix after a verified prefix]' \\
575
- '--normalize-provenance[Remove invalid provenance with aggregate evidence]' \\
576
- '--all[Repair every drifted stream in one audited pass]' \\
577
- '--dry-run[Preview the re-anchor impact without writing the history file]' \\
578
- '--author[Mutation author]:author' \\
579
- '--message[Audit history message]:message' \\
580
- '--force[Force ownership/lock override]' \\
581
- '--json[Output JSON]' \\
582
- '--quiet[Suppress stdout]'
583
- ;;
584
- schema)
585
- if [[ "\${words[CURRENT-1]}" == policy-mode ]]; then
586
- compadd advise refuse
587
- return
588
- fi
589
- _arguments \\
590
- '1:subcommand:(${SCHEMA_SUBCOMMAND_CHOICES})' \\
591
- '--definition[Policy definition or proposed fields JSON]:json' \\
592
- '--policy[Approval policy id]:id' \\
593
- '--message[History rationale]:text' \\
594
- '--dry-run[Preview schema changes]' \\
595
- '--description[Human description for the custom item type, status, or field]:text' \\
596
- '--default-status[Default status hint for the custom item type]:status' \\
597
- '--folder[Storage folder for items of this custom type]:dir' \\
598
- '--alias[Alias for the custom type, status, or field flag (repeatable)]:name' \\
599
- '--role[Lifecycle role for a custom status (repeatable)]:role' \\
600
- '--order[Display/sort order for a custom status]:n' \\
601
- '--type[Value type for a custom field]:type:(string number boolean string_array array object)' \\
602
- '--commands[Commands a custom field is wired onto (repeatable)]:commands' \\
603
- '--cli-flag[Override the auto-derived CLI flag for a custom field]:flag' \\
604
- '--required[Mark a custom field as always required]' \\
605
- '--required-on-create[Mark a custom field as required at create time]' \\
606
- '--no-allow-unset[Disallow clearing a custom field via --unset]' \\
607
- '--required-types[Restrict a custom field requirement to specific item types (repeatable)]:types' \\
608
- '--infer[Infer item types from title-prefix conventions (add-type)]' \\
609
- '--min-count[Minimum items sharing a prefix for --infer]:n' \\
610
- '--apply[Register inferred types (with --infer)]' \\
611
- '--author[Mutation author]:author' \\
612
- '--force[Force ownership/lock override]' \\
613
- '--json[Output JSON]' \\
614
- '--quiet[Suppress stdout]'
615
- ;;
616
- profile)
617
- _arguments \\
618
- '1:subcommand:(list show apply lint)' \\
619
- '2:name:(agile ops research)' \\
620
- '--dry-run[Preview the apply diff without writing any files]' \\
621
- '--author[Mutation author]:author' \\
622
- '--force[Force ownership/lock override]' \\
623
- '--json[Output JSON]' \\
624
- '--quiet[Suppress stdout]'
625
- ;;
626
- plan)
627
- _arguments \\
628
- '1:subcommand:(create show add-step update-step complete-step block-step reorder-step remove-step link unlink decision discovery validation resume approve materialize)' \\
629
- '--title[Plan title]:title' \\
630
- '--scope[Plan scope statement]:scope' \\
631
- '--harness[Plan harness provenance]:harness:(codex claude-code cursor generic)' \\
632
- '--mode[Plan mode]:mode:(draft research review approved executing paused completed superseded)' \\
633
- '--resume-context[Resume context summary]:text' \\
634
- '--step-title[Step title]:title' \\
635
- '*--step[Step title (repeatable on create)]:title' \\
636
- '--step-status[Step status]:status:(pending in_progress completed blocked skipped superseded)' \\
637
- '--step-evidence[Step evidence]:text' \\
638
- '--depends-on[Pm item id step depends on]:id' \\
639
- '--link[Pm item id to link]:id' \\
640
- '--link-kind[Link kind]:kind:(related blocks blocked_by depends_on discovered_from implements verifies supersedes)' \\
641
- '--depth[Show depth]:depth:(brief standard deep)' \\
642
- '--steps[Step ids/orders for materialize]:steps' \\
643
- '--materialize-type[Item type for materialized steps]:type' \\
644
- '--allow-multiple-active[Allow multiple in_progress steps]' \\
645
- '--promote-to-item-dep[Also add link as top-level item dependency]' \\
646
- '--author[Mutation author]:author' \\
647
- '--message[Mutation message]:message' \\
648
- '--force[Force ownership override]' \\
649
- '--json[Output JSON]' \\
650
- '--quiet[Suppress stdout]'
651
- ;;
652
- activity)
653
- _arguments \\
654
- '--id[Filter by item ID]:id' \\
655
- '--op[Filter by history operation]:op' \\
656
- '--author[Filter by history author]:author' \\
657
- '--from[Lower timestamp bound (ISO/date string or relative)]:date' \\
658
- '--to[Upper timestamp bound (ISO/date string or relative)]:date' \\
659
- '--limit[Max entries]:number' \\
660
- '--unbounded[Return every matching activity entry]' \\
661
- '--compact[Condensed activity projection]' \\
662
- '--raw[Emit raw compact per-event activity output]' \\
663
- '--full[Show full activity entries]' \\
664
- '--provenance[Patch-free identity and agent provenance projection]' \\
665
- '--provenance-summary[Include bounded provenance completeness counts]' \\
666
- '*--harness[Filter by recorded or vocabulary-resolved harness]:harness' \\
667
- '*--agent-instance[Filter by privacy-safe agent instance]:instance' \\
668
- '*--provenance-filter[Filter by exact declared provenance value]:dimension=value' \\
669
- '--stream[Emit line-delimited JSON rows (requires --json)]::mode:(rows ndjson jsonl)' \\
670
- '--json[Output JSON]' \\
671
- '--quiet[Suppress stdout]'
672
- ;;
673
- contracts)
674
- _arguments \\
675
- '--action[Filter schema by tool action]:action' \\
676
- '--command[Scope output to one command (narrow-by-default)]:command' \\
677
- '--summary[Return compact command intent summary]' \\
678
- '--schema-only[Return schema-only payload]' \\
679
- '--flags-only[Return command flag contracts only]' \\
680
- '--availability-only[Return action availability only]' \\
681
- '--runtime-only[Include only actions invocable in the current runtime]' \\
682
- '--active-only[Alias for --runtime-only]' \\
683
- '--full[Include complete command and schema contract details]' \\
684
- '--json[Output JSON]' \\
685
- '--quiet[Suppress stdout]'
686
- ;;
687
- gc)
688
- _arguments \\
689
- '--dry-run[Preview cleanup targets without deleting files]' \\
690
- '--scope[Limit cleanup to one or more scopes: index, embeddings, runtime, locks, checkpoints, transactions]:scope' \\
691
- '--json[Output JSON]' \\
692
- '--quiet[Suppress stdout]'
693
- ;;
694
- stats)
695
- _arguments \\
696
- '--include-empty[Include registered zero-count type and status buckets]' \\
697
- '--storage[Include aggregate history-stream storage metrics]' \\
698
- '--metadata-coverage[Include metadata coverage percentages overall and by type]' \\
699
- '--field-utilization[Include content-field utilization rates across all items]' \\
700
- '--by-assignee[Lifecycle-bucketed breakdown grouped by assignee]' \\
701
- '--by-tag[Lifecycle-bucketed breakdown grouped by tag]' \\
702
- '--by-priority[Lifecycle-bucketed breakdown grouped by priority]' \\
703
- '--tag-prefix[With --by-tag: only count tags with this prefix]:prefix' \\
704
- '--json[Output JSON]' \\
705
- '--quiet[Suppress stdout]'
706
- ;;
707
- comments)
708
- _arguments \\
709
- '--add[Add one entry (plain text, text=<value>, markdown pairs, or - for stdin)]:text' \\
710
- '--text[Alias for --add]:text' \\
711
- '--stdin[Read comment text from stdin (supports multiline markdown)]' \\
712
- '--file[Read comment text from file (supports multiline markdown)]:path' \\
713
- '--edit[Replace the comment at 1-based index (text from positional/--add/--stdin/--file)]:index' \\
714
- '--delete[Delete the comment at 1-based index]:index' \\
715
- '--limit[Return only latest n entries]:number' \\
716
- '--full-history[Return complete post-mutation history]' \\
717
- '--if-absent[Append only when the resolved author and text are absent]' \\
718
- '--author[Entry author (falls back to PM_AUTHOR/settings)]:author' \\
719
- '--message[History message]:message' \\
720
- '--force[Force override]' \\
721
- '--json[Output JSON]' \\
722
- '--quiet[Suppress stdout]'
723
- ;;
724
- notes)
725
- _arguments \\
726
- '--add[Add one entry (plain text, text=<value>, markdown pairs, or - for stdin)]:text' \\
727
- '--text[Alias for --add]:text' \\
728
- '--add-json[Append one validated JSON context event]:json' \\
729
- '--stdin[Read entry text from stdin]' \\
730
- '--file[Read entry text from file]:path' \\
731
- '--edit[Replace the entry at a 1-based index]:index' \\
732
- '--delete[Delete the entry at a 1-based index]:index' \\
733
- '--limit[Return only latest n entries]:number' \\
734
- '--since[Return structured events at or after an ISO timestamp]:timestamp' \\
735
- '--event-type[Return structured events with this top-level type]:event_type' \\
736
- '--include-meta[Include result counts and truncation metadata]' \\
737
- '--full-history[Return complete post-mutation history]' \\
738
- '--if-absent[Append only when the resolved author and text are absent]' \\
739
- '--author[Entry author (falls back to PM_AUTHOR/settings)]:author' \\
740
- '--message[History message]:message' \\
741
- '--force[Force override]' \\
742
- '--json[Output JSON]' \\
743
- '--quiet[Suppress stdout]'
744
- ;;
745
- learnings)
746
- _arguments \\
747
- '--add[Add one entry (plain text, text=<value>, markdown pairs, or - for stdin)]:text' \\
748
- '--text[Alias for --add]:text' \\
749
- '--stdin[Read entry text from stdin]' \\
750
- '--file[Read entry text from file]:path' \\
751
- '--edit[Replace the entry at a 1-based index]:index' \\
752
- '--delete[Delete the entry at a 1-based index]:index' \\
753
- '--limit[Return only latest n entries]:number' \\
754
- '--full-history[Return complete post-mutation history]' \\
755
- '--if-absent[Append only when the resolved author and text are absent]' \\
756
- '--author[Entry author (falls back to PM_AUTHOR/settings)]:author' \\
757
- '--message[History message]:message' \\
758
- '--force[Force override]' \\
759
- '--json[Output JSON]' \\
760
- '--quiet[Suppress stdout]'
761
- ;;
762
- files)
763
- _arguments \\
764
- '1:subcommand:(discover lookup)' \\
765
- '--add[Add a linked file]:file' \\
766
- '--add-glob[Add linked files matching a glob]:glob' \\
767
- '--remove[Remove a linked file]:file' \\
768
- '--migrate[Migrate linked-file metadata]' \\
769
- '--list[List linked files]' \\
770
- '--apply[Apply discovered linked files]' \\
771
- '--note[Linked-file note]:note' \\
772
- '--append-stable[Preserve stable append ordering]' \\
773
- '--validate-paths[Validate linked-file paths]' \\
774
- '--scope[Filter lookup by evidence scope]:(project global)' \\
775
- '--limit[Maximum lookup matches]:number' \\
776
- '--offset[Skip the first lookup matches]:number' \\
777
- '--no-truncate[Return every lookup match]' \\
778
- '--strict-read[Require authoritative source reads]' \\
779
- '--explain[Include ranked source-to-work rationale]' \\
780
- '--lines[Attribute an inclusive source line range]:start_end' \\
781
- '--decision-depth[Maximum governing-decision relationship depth]:number' \\
782
- '--author[Mutation author]:author' \\
783
- '--message[History message]:message' \\
784
- '--force[Force override]' \\
785
- '--json[Output JSON]' \\
786
- '--quiet[Suppress stdout]'
787
- ;;
788
- deps)
789
- _arguments \\
790
- '--format[Output format]:(tree graph context)' \\
791
- '--max-depth[Maximum traversal depth (0 keeps root only)]:depth' \\
792
- '--collapse[Collapse mode]:(none repeated)' \\
793
- '--summary[Return counts only without tree/graph payload]' \\
794
- '--node-limit[Maximum nodes in context output]:number' \\
795
- '--edge-limit[Maximum edges in context output]:number' \\
796
- '--token-budget[Maximum estimated tokens in context output]:number' \\
797
- '--cursor[Continue an equivalent context query]:cursor' \\
798
- '--direction[Context traversal direction]:(outgoing incoming both)' \\
799
- '--kind[Restrict context traversal to relationship kinds]:kind' \\
800
- '--json[Output JSON]' \\
801
- '--quiet[Suppress stdout]'
802
- ;;
803
- graph)
804
- _arguments \\
805
- '1:subcommand:(ancestors descendants predecessors successors paths impact analyze audit communities redundancy dominators slack centrality articulation plan index)' \\
806
- '--kind[Restrict traversal to registered relationship kinds]:kind' \\
807
- '--max-depth[Maximum traversal depth]:depth' \\
808
- '--limit[Maximum returned rows per bounded collection]:number' \\
809
- '--after[Resume a traversal after this node id]:id' \\
810
- '--direction[Edge orientation for paths/impact]:(outgoing incoming both)' \\
811
- '--max-paths[Maximum enumerated paths]:number' \\
812
- '--sample[Maximum evidence sample entries per audit finding]:number' \\
813
- '--exempt-isolate[Item ids treated as explicitly valid isolates]:id' \\
814
- '--exempt-isolate-type[Item types whose active isolates are policy-valid]:type' \\
815
- '--save-baseline[Persist the audit census as the comparison baseline]' \\
816
- '--rebuild[Rebuild and warm the durable graph index]' \\
817
- '--clear[Delete the durable graph index]' \\
818
- '--summary[Return counts-first envelopes without row collections]' \\
819
- '--json[Output JSON]' \\
820
- '--quiet[Suppress stdout]'
821
- ;;
822
- test)
823
- _arguments \\
824
- '--add[Add linked test entry]:entry' \\
825
- '--add-json[Add linked test entry from JSON object/array]:json' \\
826
- '--remove[Remove linked test entry by command/path]:entry' \\
827
- '--remove-index[Remove linked test entry by 1-based index]:index' \\
828
- '--list[List linked tests without mutating]' \\
829
- '--run[Run linked tests]' \\
830
- '--match[Run linked tests whose command/path contains substring]:substring' \\
831
- '--only-index[Run one linked test by 1-based index]:number' \\
832
- '--only-last[Run the most recently added linked test]' \\
833
- '--background[Run linked tests in managed background mode]' \\
834
- '--timeout[Default timeout seconds]:seconds' \\
835
- '--progress[Emit linked-test progress to stderr]' \\
836
- '--env-set[Set linked-test runtime environment values]:entry' \\
837
- '--env-clear[Clear linked-test runtime environment values]:name' \\
838
- '--shared-host-safe[Apply shared-host-safe runtime defaults]' \\
839
- '--pm-context[PM linked-test context mode]:(schema tracker auto)' \\
840
- '--override-linked-pm-context[Force run-level --pm-context over per-linked-test pm_context_mode metadata]' \\
841
- '--fail-on-context-mismatch[Fail when context item counts mismatch]' \\
842
- '--fail-on-skipped[Treat skipped linked tests as dependency failures]' \\
843
- '--fail-on-empty-test-run[Treat empty linked-test selections as failures]' \\
844
- '--require-assertions-for-pm[Require assertions for linked PM command tests]' \\
845
- '--check-context[Preflight linked PM command context diagnostics before execution]' \\
846
- '--auto-pm-context[Auto-remediate tracker-read context mismatches using tracker context]' \\
847
- '--author[Mutation author]:author' \\
848
- '--message[History message]:message' \\
849
- '--force[Force override]' \\
850
- '--json[Output JSON]' \\
851
- '--quiet[Suppress stdout]'
852
- ;;
853
- test-all)
854
- _arguments \\
855
- '--status[Filter by status]:(open in_progress)' \\
856
- '--limit[Limit matching items before running linked tests]:number' \\
857
- '--offset[Skip matching items before running linked tests]:number' \\
858
- '--background[Run linked tests in managed background mode]' \\
859
- '--timeout[Default timeout seconds]:seconds' \\
860
- '--progress[Emit linked-test progress to stderr]' \\
861
- '--env-set[Set linked-test runtime environment values]:entry' \\
862
- '--env-clear[Clear linked-test runtime environment values]:name' \\
863
- '--shared-host-safe[Apply shared-host-safe runtime defaults]' \\
864
- '--pm-context[PM linked-test context mode]:(schema tracker auto)' \\
865
- '--override-linked-pm-context[Force run-level --pm-context over per-linked-test pm_context_mode metadata]' \\
866
- '--fail-on-context-mismatch[Fail when context item counts mismatch]' \\
867
- '--fail-on-skipped[Treat skipped linked tests as dependency failures]' \\
868
- '--fail-on-empty-test-run[Treat empty linked-test selections as failures]' \\
869
- '--require-assertions-for-pm[Require assertions for linked PM command tests]' \\
870
- '--check-context[Preflight linked PM command context diagnostics before execution]' \\
871
- '--auto-pm-context[Auto-remediate tracker-read context mismatches using tracker context]' \\
872
- '--json[Output JSON]' \\
873
- '--quiet[Suppress stdout]'
874
- ;;
875
- test-runs)
876
- _arguments \\
877
- '1:subcommand:(list status logs stop resume)' \\
878
- '--status[Filter by background run status]:status:(queued running passed failed stopped canceled)' \\
879
- '--limit[Limit returned runs]:number' \\
880
- '--stream[Background log stream]:stream:(stdout stderr both)' \\
881
- '--tail[Tail number of lines]:number' \\
882
- '--force[Force stop with SIGKILL]' \\
883
- '--author[Resume author]:author' \\
884
- '--json[Output JSON]' \\
885
- '--quiet[Suppress stdout]'
886
- ;;
887
- init)
888
- _arguments \\
889
- '(1)--id-prefix[Set the item ID prefix]:prefix' \\
890
- '(1)--prefix[Alias for --id-prefix]:prefix' \\
891
- '1:optional id prefix or tracker path' \\
892
- '--preset[Governance preset for new setups]:preset:(minimal default strict)' \\
893
- '--defaults[Use non-interactive setup defaults]' \\
894
- '-y[Alias for --defaults]' \\
895
- '--yes[Alias for --defaults]' \\
896
- '--author[Set the default mutation author for this project]:author' \\
897
- '--agent-guidance[Agent guidance mode]:mode:(ask add skip status)' \\
898
- '--type-preset[Register domain item types]:type-preset:(agile ops research)' \\
899
- '--with-packages[Install bundled first-party packages during initialization]' \\
900
- '--verbose[Include the full resolved settings tree in init output]' \\
901
- '--json[Output JSON]' \\
902
- '--quiet[Suppress stdout]'
903
- ;;
904
- config)
905
- _arguments \\
906
- '--criterion[Criteria value for definition-of-done metadata-required-fields or lifecycle pattern keys (repeatable for set)]:criterion' \\
907
- '--clear-criteria[Clear config criteria-list key values]' \\
908
- '--format[Item format for item-format key]:format:(toon)' \\
909
- '--policy[Policy value for supported policy keys]:policy' \\
910
- '--json[Output JSON]' \\
911
- '--quiet[Suppress stdout]'
912
- ;;
913
- close)
914
- _arguments \\
915
- '--release-assignment[Close and release assignment]' \\
916
- '--reason[Closure reason]:reason' \\
917
- '--close-reason[Alias for --reason]:close_reason' \\
918
- '--author[Mutation author]:author' \\
919
- '--message[History message]:message' \\
920
- '--validate-close[Validate closure metadata mode]:(off warn strict)' \\
921
- '--resolution[Closure resolution summary]:resolution' \\
922
- '--expected-result[Expected behavior note]:expected_result' \\
923
- '--actual-result[Observed behavior note]:actual_result' \\
924
- '--expected[Short alias for --expected-result]:expected_result' \\
925
- '--actual[Short alias for --actual-result]:actual_result' \\
926
- '--force[Force override]' \\
927
- '--json[Output JSON]' \\
928
- '--quiet[Suppress stdout]'
929
- ;;
930
- claim)
931
- _arguments \\
932
- '--start[Claim and start work]' \\
933
- '--author[Mutation author]:author' \\
934
- '--message[History message]:message' \\
935
- '--force[Force override]' \\
936
- '--if-available[Skip work held by another author]' \\
937
- '--next[Atomically claim the next actionable item]' \\
938
- '--type[Filter --next candidates by type]:(${typeChoices})' \\
939
- '--tag[Filter --next candidates by tag]:(${zshTagChoices})' \\
940
- '--priority[Filter --next candidates by priority]:(0 1 2 3 4)' \\
941
- '--assignee-filter[Filter --next candidates by ownership]:assignee_filter:(assigned unassigned)' \\
942
- '--parent[Scope --next candidates to a subtree]:parent' \\
943
- '--sprint[Filter --next candidates by sprint]:sprint' \\
944
- '--release[Filter --next candidates by release]:release' \\
945
- '--max-attempts[Bound the --next candidate walk]:max_attempts' \\
946
- '--include-decisions[Allow human-gated Decision candidates]' \\
947
- '--token-budget[Bound ranked candidate tokens]:token_budget' \\
948
- '--explain-ranking[Include ranking provenance]' \\
949
- '--json[Output JSON]' \\
950
- '--quiet[Suppress stdout]'
951
- ;;
952
- release)
953
- _arguments \\
954
- '--pause[Return to open and release ownership]' \\
955
- '--author[Mutation author]:author' \\
956
- '--message[History message]:message' \\
957
- '--force[Force override]' \\
958
- '--json[Output JSON]' \\
959
- '--quiet[Suppress stdout]'
960
- ;;
961
- delete)
962
- _arguments \\
963
- '--dry-run[Preview the item file that would be deleted without mutating]' \\
964
- '--author[Mutation author]:author' \\
965
- '--message[History message]:message' \\
966
- '--force[Force override]' \\
967
- '--json[Output JSON]' \\
968
- '--quiet[Suppress stdout]'
969
- ;;
970
- restore)
971
- _arguments \\
972
- ${renderZshArgumentSpecs(RESTORE_INVOCATIONS.map(flag=>`'${flag.flag}[${flag.description}]${flag.takes_value?":value":""}'`),{trailingContinuation:false})}
973
- ;;
974
- start-task|pause-task)
975
- _arguments \\
976
- '--author[Mutation author]:author' \\
977
- '--message[History message]:message' \\
978
- '--force[Force override]' \\
979
- '--json[Output JSON]' \\
980
- '--quiet[Suppress stdout]'
981
- ;;
982
- close-task)
983
- _arguments \\
984
- '--author[Mutation author]:author' \\
985
- '--message[History message]:message' \\
986
- '--validate-close[Validate closure metadata mode]:(off warn strict)' \\
987
- '--force[Force override]' \\
988
- '--json[Output JSON]' \\
989
- '--quiet[Suppress stdout]'
990
- ;;
991
- validate)
992
- _arguments \\
993
- '--check-completeness[Check declarative required fields]' \\
994
- '--check-metadata[Run metadata completeness checks]' \\
995
- '--metadata-profile[Select metadata validation profile for --check-metadata]:(core strict custom)' \\
996
- '--check-resolution[Run closed-item resolution metadata checks]' \\
997
- '--check-lifecycle[Run active-item lifecycle governance drift checks]' \\
998
- '--check-stale-blockers[Include stale blocker-pattern diagnostics in lifecycle checks]' \\
999
- '--dependency-cycle-severity[Set dependency-cycle warning policy for lifecycle checks]:(off warn error)' \\
1000
- '--parent-cycle-severity[Set parent-hierarchy cycle warning policy for lifecycle checks]:(off warn error)' \\
1001
- '--check-files[Run linked-file and orphaned-file checks]' \\
1002
- '--scan-mode[Select file candidate scan mode for --check-files]:(default tracked-all tracked-all-strict)' \\
1003
- '--include-pm-internals[Include PM storage internals in tracked-all candidate scans]' \\
1004
- '--verbose-file-lists[Include full file-path lists for validate --check-files details]' \\
1005
- '--verbose-diagnostics[Include full validate diagnostic ID lists instead of compact summaries]' \\
1006
- '--all-affected-ids[Emit complete missing_* affected-ID lists with no truncation (implied by --json)]' \\
1007
- '--strict-exit[Return non-zero exit when validation warnings are present]' \\
1008
- '--fail-on-warn[Alias for --strict-exit]' \\
1009
- '--fix-hints[Add a machine-executable fix_hints[] of pm commands to each failing check]' \\
1010
- '--auto-fix[Apply the safe, deterministic subset of fix-hint remediations automatically]' \\
1011
- '--dry-run[Preview planned --auto-fix/--prune-missing fixes without applying them]' \\
1012
- '--fix-scope[Grant --auto-fix scopes (estimates/lifecycle must be named explicitly)]:(metadata resolution estimates lifecycle)' \\
1013
- '--prune-missing[Remove stale linked-file/doc links classified as deleted]' \\
1014
- '--check-history-drift[Run item/history hash drift checks]' \\
1015
- '--check-command-references[Run linked-command PM-ID reference checks]' \\
1016
- '--json[Output JSON]' \\
1017
- '--quiet[Suppress stdout]'
1018
- ;;
1019
- health)
1020
- _arguments \\
1021
- '--strict-directories[Treat optional item-type directories as required failures]' \\
1022
- '--check-only[Run read-only health diagnostics without refreshing vectors]' \\
1023
- '--no-refresh[Disable automatic vector refresh attempts during health checks]' \\
1024
- '--refresh-vectors[Explicitly enable vector refresh attempts during health checks]' \\
1025
- '--verbose-stale-items[Include full stale vectorization ID lists in health output]' \\
1026
- '--verbose-author-events[Include complete actionable unknown-author coordinates]' \\
1027
- '--brief[Emit compact health details for low-token agent checks]' \\
1028
- '--summary[Emit one-line-style health status with check names and warning count]' \\
1029
- '--strict-exit[Return non-zero exit when health warnings are present]' \\
1030
- '--fail-on-warn[Alias for --strict-exit]' \\
1031
- '--json[Output JSON]' \\
1032
- '--quiet[Suppress stdout]'
1033
- ;;
1034
- extension)
1035
- _arguments \\
1036
- '1:extension_action:(${EXTENSION_LIFECYCLE_ACTIONS})' \\
1037
- '--init[Generate a starter extension scaffold at target path]' \\
1038
- '--scaffold[Alias for --init]' \\
1039
- '--capability[Capability the init scaffold targets]:capability:(${SCAFFOLD_CAPABILITIES.join(" ")})' \\
1040
- '--install[Install extension from local path or GitHub source]' \\
1041
- '--uninstall[Uninstall extension by name]' \\
1042
- '--explore[List discovered extensions for selected scope]' \\
1043
- '--manage[List managed extensions with update metadata]' \\
1044
- '--describe[Map every surface a loaded extension registers]' \\
1045
- '--markdown[Render describe output as a Markdown reference document]' \\
1046
- '--output[Write describe Markdown to a file]:path:_files' \\
1047
- '--reload[Reload extensions with cache-busted module imports]' \\
1048
- '--watch[Enable watch mode with --reload]' \\
1049
- '--doctor[Run consolidated extension diagnostics (summary/deep)]' \\
1050
- '--catalog[List bundled first-party package catalog entries]' \\
1051
- '--adopt[Adopt an unmanaged extension into managed metadata]' \\
1052
- '--adopt-all[Adopt all unmanaged extensions into managed metadata]' \\
1053
- '--activate[Activate extension in selected scope settings]' \\
1054
- '--deactivate[Deactivate extension in selected scope settings]' \\
1055
- '--project[Use project extension scope (default)]' \\
1056
- '--local[Alias for --project]' \\
1057
- '--global[Use global extension scope]' \\
1058
- '--gh[Install from GitHub shorthand owner/repo/path]:github_spec' \\
1059
- '--github[Alias for --gh]:github_spec' \\
1060
- '--ref[Git ref/branch/tag for GitHub source]:git_ref' \\
1061
- '--detail[Detail mode for extension diagnostics]:detail_mode:(summary deep)' \\
1062
- '--trace[Include registration traces in doctor deep diagnostics]' \\
1063
- '--runtime-probe[Opt-in runtime activation probe for manage output]' \\
1064
- '--fix-managed-state[Adopt unmanaged extensions before diagnostics/update checks]' \\
1065
- '--isolated[Run doctor against project-scope extensions only]' \\
1066
- '--ignore-global[Alias for --isolated]' \\
1067
- '--strict-exit[Return non-zero exit when doctor warnings are present]' \\
1068
- '--fail-on-warn[Alias for --strict-exit (doctor)]' \\
1069
- '--json[Output JSON]' \\
1070
- '--quiet[Suppress stdout]' \\
1071
- '*:target_or_name:_files -/'
1072
- ;;
1073
- package|packages)
1074
- _arguments \\
1075
- '1:package_action:(${PACKAGE_LIFECYCLE_ACTIONS})' \\
1076
- '--init[Generate a starter package scaffold at target path]' \\
1077
- '--scaffold[Alias for --init]' \\
1078
- '--capability[Capability the init scaffold targets]:capability:(${SCAFFOLD_CAPABILITIES.join(" ")})' \\
1079
- '--declarative[Generate a composeExtension blueprint starter]' \\
1080
- '--install[Install package from local path, GitHub source, npm source, or bundled alias]' \\
1081
- '--uninstall[Uninstall package by name]' \\
1082
- '--explore[List discovered packages for selected scope]' \\
1083
- '--manage[List managed packages with update metadata]' \\
1084
- '--describe[Map every surface a loaded package registers]' \\
1085
- '--markdown[Render describe output as a Markdown reference document]' \\
1086
- '--output[Write describe Markdown to a file]:path:_files' \\
1087
- '--reload[Reload packages with cache-busted module imports]' \\
1088
- '--watch[Enable watch mode with --reload]' \\
1089
- '--doctor[Run consolidated package diagnostics (summary/deep)]' \\
1090
- '--catalog[List bundled first-party package catalog entries]' \\
1091
- '--adopt[Adopt an unmanaged package into managed metadata]' \\
1092
- '--adopt-all[Adopt all unmanaged packages into managed metadata]' \\
1093
- '--activate[Activate package in selected scope settings]' \\
1094
- '--deactivate[Deactivate package in selected scope settings]' \\
1095
- '--project[Use project package scope (default)]' \\
1096
- '--local[Alias for --project]' \\
1097
- '--global[Use global package scope]' \\
1098
- '--gh[Install from GitHub shorthand owner/repo/path]:github_spec' \\
1099
- '--github[Alias for --gh]:github_spec' \\
1100
- '--ref[Git ref/branch/tag for GitHub source]:git_ref' \\
1101
- '--detail[Detail mode for package diagnostics]:detail_mode:(summary deep)' \\
1102
- '--trace[Include registration traces in doctor deep diagnostics]' \\
1103
- '--runtime-probe[Opt-in runtime activation probe for manage output]' \\
1104
- '--fix-managed-state[Adopt unmanaged packages before diagnostics/update checks]' \\
1105
- '--isolated[Run doctor against project-scope packages only]' \\
1106
- '--ignore-global[Alias for --isolated]' \\
1107
- '--strict-exit[Return non-zero exit when doctor warnings are present]' \\
1108
- '--fail-on-warn[Alias for --strict-exit (doctor)]' \\
1109
- '--dry-run[Plan upgrades without mutating]' \\
1110
- '--cli-only[Upgrade only the pm CLI/SDK npm package]' \\
1111
- '--packages-only[Upgrade only managed pm packages]' \\
1112
- '--repair[Force npm global reinstall for the CLI/SDK]' \\
1113
- '--tag[npm version or dist-tag for upgrades]:tag' \\
1114
- '--package-name[Override the CLI package name]:package_name' \\
1115
- '--json[Output JSON]' \\
1116
- '--quiet[Suppress stdout]' \\
1117
- '*:target_or_name:_files -/'
1118
- ;;
1119
- completion)
1120
- _arguments \\
1121
- '--eager-tags[Embed current tracker tags directly in script output]' \\
1122
- '1:shell:(bash zsh fish)'
1123
- ;;
1124
- templates)
1125
- local -a templates_cmds
1126
- templates_cmds=('save:Save or update a create template' 'list:List saved create templates' 'show:Show saved template details')
1127
- _describe 'templates command' templates_cmds
1128
- ;;
1129
- esac
1130
- ;;
1131
- esac
1132
- }
1133
-
1134
- compdef _pm pm`}function generateFishScript(itemTypes=[],tags=[],eagerTagExpansion=false,runtime={}){const namespaceLeaves=completionNamespaceLeaves(runtime);const listCommandNames=ALL_COMMANDS.filter(command=>command==="list"||command.startsWith("list-"));const listCmds=listCommandNames.join(" ");const noSubcommandList=ALL_COMMANDS.join(" ");const useDynamicTypeExpansion=itemTypes.length===0;const typeFallbackChoices=completionTypeValues(itemTypes,runtime);const statusFallbackChoices=completionStatusValues(runtime);const typeChoices=useDynamicTypeExpansion?"(__pm_type_choices)":typeFallbackChoices;const statusChoices="(__pm_status_choices)";const guideTopicChoices=GUIDE_TOPIC_CHOICES;const tagChoices=joinCompletionValues(tags);const useEagerTagExpansion=eagerTagExpansion||tags.length>0;const fishTagChoices=useEagerTagExpansion?`'${tagChoices}'`:"'(__pm_tag_choices)'";const fishListRuntimeFieldFlags=renderFishRuntimeFieldFlagSpecs(listCommandNames,runtime.command_flags?.list);const fishCreateRuntimeFieldFlags=renderFishRuntimeFieldFlagSpecs(["create"],runtime.command_flags?.create);const fishUpdateRuntimeFieldFlags=renderFishRuntimeFieldFlagSpecs(["update"],runtime.command_flags?.update);const fishUpdateManyRuntimeFieldFlags=renderFishRuntimeFieldFlagSpecs(["update-many"],runtime.command_flags?.["update-many"]);const fishSearchRuntimeFieldFlags=renderFishRuntimeFieldFlagSpecs(["search"],runtime.command_flags?.search);const fishCalendarRuntimeFieldFlags=renderFishRuntimeFieldFlagSpecs(["calendar","cal"],runtime.command_flags?.calendar);const fishContextRuntimeFieldFlags=renderFishRuntimeFieldFlagSpecs(["context"],runtime.command_flags?.context);const dynamicTagResolver=useEagerTagExpansion?"":`
1135
- function __pm_tag_choices
1136
- set -l now (date +%s ^/dev/null)
1137
- if test -z "$now"
1138
- set now 0
1139
- end
1140
- set -l ttl 120
1141
- if set -q PM_COMPLETION_TAG_TTL
1142
- set ttl $PM_COMPLETION_TAG_TTL
1143
- end
1144
- if set -q PM_COMPLETION_TAG_CACHE; and set -q PM_COMPLETION_TAG_CACHE_TS
1145
- set -l age (math "$now - $PM_COMPLETION_TAG_CACHE_TS")
1146
- if test $age -lt $ttl
1147
- printf '%s
1148
- ' $PM_COMPLETION_TAG_CACHE
1149
- return
1150
- end
1151
- end
1152
- set -l resolved (pm completion-tags ^/dev/null)
1153
- set -gx PM_COMPLETION_TAG_CACHE $resolved
1154
- set -gx PM_COMPLETION_TAG_CACHE_TS $now
1155
- printf '%s
1156
- ' $resolved
1157
- end
1158
- `;return`# Fish shell completion for pm
1159
- # Save to ~/.config/fish/completions/pm.fish
1160
- # or run: pm completion fish > ~/.config/fish/completions/pm.fish
1161
-
1162
- # Disable file completion by default
1163
- complete -c pm -f
1164
-
1165
- # Global flags (available for all subcommands)
1166
- complete -c pm -l json -d 'Output JSON instead of TOON'
1167
- complete -c pm -l all -d 'Reveal every public command and compatibility alias'
1168
- complete -c pm -l quiet -d 'Suppress stdout output'
1169
- complete -c pm -l output-include -d 'Retain comma-separated read fields or sections' -r
1170
- complete -c pm -l output-limit -d 'Set the universal read row ceiling' -r
1171
- complete -c pm -l output-budget -d 'Set the universal estimated-token ceiling' -r
1172
- complete -c pm -l output-format -d 'Select the universal read encoding' -r -a 'toon json'
1173
- complete -c pm -l output-session -d 'Carry cross-call read budget and served-item state' -r
1174
- complete -c pm -l output-row-contract -d 'Include row schema metadata in read output'
1175
- complete -c pm -l no-changed-fields -d 'Omit changed_fields array from mutation output'
1176
- complete -c pm -l id-only -d 'Print only id and status for single-item mutation output'
1177
- complete -c pm -l pm-path -d 'Explicit tracker storage path for this command' -r
1178
- complete -c pm -l path -d 'Override PM path for this command' -r
1179
- complete -c pm -l no-extensions -d 'Disable extension loading'
1180
- complete -c pm -l profile -d 'Print deterministic timing diagnostics'
1181
- complete -c pm -s V -l version -d 'Output the version number'
1182
- complete -c pm -s h -l help -d 'Display help'
1183
-
1184
- # Helper: true when no subcommand has been given yet
1185
- function __pm_no_subcommand
1186
- not __fish_seen_subcommand_from ${noSubcommandList}
1187
- end
1188
- ${dynamicTagResolver}
1189
- ${useDynamicTypeExpansion?renderFishDynamicChoiceResolver("type","completion-types",typeFallbackChoices):""}
1190
- ${renderFishDynamicChoiceResolver("status","completion-statuses",statusFallbackChoices)}
1191
-
1192
- # Subcommands
1193
- ${renderFishCommandDescriptions()}
1194
-
1195
- # list* flags
1196
- for list_cmd in ${listCmds}
1197
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l status -d 'Filter by status' -r -a '${statusChoices}'
1198
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l all -d 'Include every lifecycle status'
1199
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l type -d 'Filter by item type' -r -a '${typeChoices}'
1200
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l tag -d 'Filter by tag' -r -a ${fishTagChoices}
1201
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l tags -d 'Alias for --tag' -r -a ${fishTagChoices}
1202
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l priority -d 'Filter by priority' -r -a '0 1 2 3 4'
1203
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l assignee -d 'Filter by assignee' -r
1204
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l assignee-filter -d 'Filter assignee presence' -r -a 'assigned unassigned'
1205
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l sprint -d 'Filter by sprint' -r
1206
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l release -d 'Filter by release' -r
1207
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l limit -d 'Limit returned item count' -r
1208
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l offset -d 'Skip the first n matching rows before limit' -r
1209
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l no-truncate -d 'Return every matched row, overriding --limit'
1210
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l include-body -d 'Include item body in each returned list row'
1211
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l compact -d 'Render compact list projection fields'
1212
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l fields -d 'Render custom comma-separated list fields' -r
1213
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l tree -d 'Render hierarchical subtree output rooted at --parent or top-level parents'
1214
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l tree-depth -d 'Cap recursion depth for --tree (0 = root only)' -r
1215
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l sort -d 'Sort field' -r -a 'priority deadline updated_at created_at title parent'
1216
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l order -d 'Sort order (requires --sort)' -r -a 'asc desc'
1217
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l stream -d 'Emit line-delimited JSON rows (requires --json)'
1218
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l deadline-before -d 'Filter by deadline upper bound (ISO/date string or relative)' -r
1219
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l deadline-after -d 'Filter by deadline lower bound (ISO/date string or relative)' -r
1220
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l today -d 'Filter to items updated since local midnight today'
1221
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l recent -d 'Filter to items updated in the last 7 days'
1222
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l updated-after -d 'Filter by updated_at lower bound (ISO/relative)' -r
1223
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l updated-before -d 'Filter by updated_at upper bound (ISO/relative)' -r
1224
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l created-after -d 'Filter by created_at lower bound (ISO/relative)' -r
1225
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l created-before -d 'Filter by created_at upper bound (ISO/relative)' -r
1226
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l filter-reviewer-missing -d 'Select only items missing reviewer'
1227
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l filter-risk-missing -d 'Select only items missing risk'
1228
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l filter-confidence-missing -d 'Select only items missing confidence'
1229
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l filter-sprint-missing -d 'Select only items missing sprint'
1230
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l filter-release-missing -d 'Select only items missing release'
1231
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l has-notes -d 'Select only items that have notes'
1232
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l no-notes -d 'Select only items with no notes'
1233
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l has-learnings -d 'Select only items that have learnings'
1234
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l no-learnings -d 'Select only items with no learnings'
1235
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l has-files -d 'Select only items that have linked files'
1236
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l no-files -d 'Select only items with no linked files'
1237
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l filter-files-missing -d 'Alias for --no-files'
1238
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l has-docs -d 'Select only items that have linked docs'
1239
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l no-docs -d 'Select only items with no linked docs'
1240
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l filter-docs-missing -d 'Alias for --no-docs'
1241
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l has-tests -d 'Select only items that have linked tests'
1242
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l no-tests -d 'Select only items with no linked tests'
1243
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l has-comments -d 'Select only items that have comments'
1244
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l no-comments -d 'Select only items with no comments'
1245
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l has-deps -d 'Select only items that have dependencies'
1246
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l no-deps -d 'Select only items with no dependencies'
1247
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l has-body -d 'Select only items with non-empty body'
1248
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l empty-body -d 'Select only items with empty body'
1249
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l has-linked-command -d 'Select only items that have a linked command'
1250
- complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l no-linked-command -d 'Select only items with no linked command'
1251
- end
1252
- ${fishListRuntimeFieldFlags}
1253
-
1254
- # aggregate flags
1255
- complete -c pm -n '__fish_seen_subcommand_from aggregate' -l group-by -d 'Comma-separated group-by fields (supported: parent,type,priority,status,assignee,tags,sprint,release)' -r
1256
- complete -c pm -n '__fish_seen_subcommand_from aggregate' -l count -d 'Return grouped counts'
1257
- complete -c pm -n '__fish_seen_subcommand_from aggregate' -l completion -d 'Add completion counts and percentage per group'
1258
- complete -c pm -n '__fish_seen_subcommand_from aggregate' -l sum -d 'Numeric field to sum per group' -r
1259
- complete -c pm -n '__fish_seen_subcommand_from aggregate' -l avg -d 'Numeric field to average per group' -r
1260
- complete -c pm -n '__fish_seen_subcommand_from aggregate' -l include-unparented -d 'Include unparented rows when grouping by parent'
1261
- complete -c pm -n '__fish_seen_subcommand_from aggregate' -l status -d 'Filter by status' -r -a '${statusChoices}'
1262
- complete -c pm -n '__fish_seen_subcommand_from aggregate' -l type -d 'Filter by item type' -r -a '${typeChoices}'
1263
- complete -c pm -n '__fish_seen_subcommand_from aggregate' -l tag -d 'Filter by tag' -r -a ${fishTagChoices}
1264
- complete -c pm -n '__fish_seen_subcommand_from aggregate' -l priority -d 'Filter by priority' -r -a '0 1 2 3 4'
1265
- complete -c pm -n '__fish_seen_subcommand_from aggregate' -l deadline-before -d 'Filter by deadline upper bound (ISO/date string or relative)' -r
1266
- complete -c pm -n '__fish_seen_subcommand_from aggregate' -l deadline-after -d 'Filter by deadline lower bound (ISO/date string or relative)' -r
1267
- complete -c pm -n '__fish_seen_subcommand_from aggregate' -l assignee -d 'Filter by assignee' -r
1268
- complete -c pm -n '__fish_seen_subcommand_from aggregate' -l assignee-filter -d 'Filter assignee presence' -r -a 'assigned unassigned'
1269
- complete -c pm -n '__fish_seen_subcommand_from aggregate' -l parent -d 'Filter by parent item ID' -r
1270
- complete -c pm -n '__fish_seen_subcommand_from aggregate' -l sprint -d 'Filter by sprint' -r
1271
- complete -c pm -n '__fish_seen_subcommand_from aggregate' -l release -d 'Filter by release' -r
1272
-
1273
-
1274
- # create flags
1275
- complete -c pm -n '__fish_seen_subcommand_from create' -s t -l title -d 'Item title' -r
1276
- complete -c pm -n '__fish_seen_subcommand_from create' -s d -l description -d 'Item description' -r
1277
- complete -c pm -n '__fish_seen_subcommand_from create' -l type -d 'Item type' -r -a '${typeChoices}'
1278
- complete -c pm -n '__fish_seen_subcommand_from create' -l create-mode -d 'Create required-option policy mode' -r -a 'strict progressive'
1279
- complete -c pm -n '__fish_seen_subcommand_from create' -l schedule-preset -d 'Scheduling preset for Reminder/Meeting/Event' -r -a 'lightweight'
1280
- complete -c pm -n '__fish_seen_subcommand_from create' -s s -l status -d 'Item status' -r -a '${statusChoices}'
1281
- complete -c pm -n '__fish_seen_subcommand_from create' -s p -l priority -d 'Priority (0-4)' -r -a '0 1 2 3 4'
1282
- complete -c pm -n '__fish_seen_subcommand_from create' -l tags -d 'Comma-separated tags' -r
1283
- complete -c pm -n '__fish_seen_subcommand_from create' -l add-tags -d 'Add tags additively without replacing existing' -r
1284
- complete -c pm -n '__fish_seen_subcommand_from create' -s b -l body -d 'Item body' -r
1285
- complete -c pm -n '__fish_seen_subcommand_from create' -l body-file -d 'Load the item body from a file' -r -F
1286
- complete -c pm -n '__fish_seen_subcommand_from create' -l deadline -d 'Deadline (ISO/date string or relative +6h/+1d/+2w/+6m)' -r
1287
- complete -c pm -n '__fish_seen_subcommand_from create' -l estimate -d 'Estimated minutes' -r
1288
- complete -c pm -n '__fish_seen_subcommand_from create' -l acceptance-criteria -d 'Acceptance criteria' -r
1289
- complete -c pm -n '__fish_seen_subcommand_from create' -l reminder -d 'Reminder entry at=<iso|relative>|date=<iso|relative>,text=<text>|title=<text>' -r
1290
- complete -c pm -n '__fish_seen_subcommand_from create' -l event -d 'Event entry start=<iso|relative>,end=<iso|relative>,recur_*' -r
1291
- complete -c pm -n '__fish_seen_subcommand_from create' -l type-option -d 'Type option key=value or key=<name>,value=<value>' -r
1292
- complete -c pm -n '__fish_seen_subcommand_from create' -l author -d 'Mutation author' -r
1293
- complete -c pm -n '__fish_seen_subcommand_from create' -l message -d 'History message' -r
1294
- complete -c pm -n '__fish_seen_subcommand_from create' -l assignee -d 'Assignee' -r
1295
- complete -c pm -n '__fish_seen_subcommand_from create' -l unset -d 'Clear scalar metadata field by name' -r
1296
- complete -c pm -n '__fish_seen_subcommand_from create' -l clear-deps -d 'Clear dependency entries'
1297
- complete -c pm -n '__fish_seen_subcommand_from create' -l clear-comments -d 'Clear comments'
1298
- complete -c pm -n '__fish_seen_subcommand_from create' -l clear-notes -d 'Clear notes'
1299
- complete -c pm -n '__fish_seen_subcommand_from create' -l clear-learnings -d 'Clear learnings'
1300
- complete -c pm -n '__fish_seen_subcommand_from create' -l clear-files -d 'Clear linked files'
1301
- complete -c pm -n '__fish_seen_subcommand_from create' -l clear-tests -d 'Clear linked tests'
1302
- complete -c pm -n '__fish_seen_subcommand_from create' -l clear-docs -d 'Clear linked docs'
1303
- complete -c pm -n '__fish_seen_subcommand_from create' -l clear-reminders -d 'Clear reminders'
1304
- complete -c pm -n '__fish_seen_subcommand_from create' -l clear-events -d 'Clear events'
1305
- complete -c pm -n '__fish_seen_subcommand_from create' -l clear-type-options -d 'Clear type options'
1306
- ${fishCreateRuntimeFieldFlags}
1307
-
1308
- # copy flags
1309
- complete -c pm -n '__fish_seen_subcommand_from copy' -l title -d 'Override copied title' -r
1310
- complete -c pm -n '__fish_seen_subcommand_from copy' -l author -d 'Mutation author' -r
1311
- complete -c pm -n '__fish_seen_subcommand_from copy' -l message -d 'History message' -r
1312
- complete -c pm -n '__fish_seen_subcommand_from copy' -l force -d 'Force ownership override'
1313
-
1314
- # focus flags
1315
- complete -c pm -n '__pm_history_operation focus' -l clear -d 'Clear the focused item'
1316
-
1317
- # update flags
1318
- complete -c pm -n '__pm_history_operation update' -s t -l title -d 'Item title' -r
1319
- complete -c pm -n '__pm_history_operation update' -s d -l description -d 'Item description' -r
1320
- complete -c pm -n '__pm_history_operation update' -s b -l body -d 'Item body' -r
1321
- complete -c pm -n '__pm_history_operation update' -l body-file -d 'Load the item body from a file' -r -F
1322
- complete -c pm -n '__pm_history_operation update' -s s -l status -d 'Item status' -r -a '${statusChoices}'
1323
- complete -c pm -n '__pm_history_operation update' -l close-reason -d 'Set close reason' -r
1324
- complete -c pm -n '__pm_history_operation update' -s p -l priority -d 'Priority (0-4)' -r -a '0 1 2 3 4'
1325
- complete -c pm -n '__pm_history_operation update' -l type -d 'Item type' -r -a '${typeChoices}'
1326
- complete -c pm -n '__pm_history_operation update' -l add-tags -d 'Add tags additively without replacing existing' -r
1327
- complete -c pm -n '__pm_history_operation update' -l remove-tags -d 'Remove tags from the existing list' -r
1328
- complete -c pm -n '__pm_history_operation update' -l add-ac -d 'Add one acceptance criterion without replacing existing' -r
1329
- complete -c pm -n '__pm_history_operation update' -l remove-ac -d 'Remove one acceptance criterion by exact text' -r
1330
- complete -c pm -n '__pm_history_operation update' -l expected -d 'Short alias for --expected-result' -r
1331
- complete -c pm -n '__pm_history_operation update' -l actual -d 'Short alias for --actual-result' -r
1332
- complete -c pm -n '__pm_history_operation update' -l comment -d 'Comment seed author=<value>,created_at=<iso|now>,text=<value>' -r
1333
- complete -c pm -n '__pm_history_operation update' -l note -d 'Note seed author=<value>,created_at=<iso|now>,text=<value>' -r
1334
- complete -c pm -n '__pm_history_operation update' -l learning -d 'Learning seed author=<value>,created_at=<iso|now>,text=<value>' -r
1335
- complete -c pm -n '__pm_history_operation update' -l file -d 'Linked file path=<value>,scope=<project|global>,note=<text>' -r
1336
- complete -c pm -n '__pm_history_operation update' -l test -d 'Linked test command=<value>,path=<value>,scope=<project|global>' -r
1337
- complete -c pm -n '__pm_history_operation update' -l doc -d 'Linked doc path=<value>,scope=<project|global>,note=<text>' -r
1338
- complete -c pm -n '__pm_history_operation update' -l reminder -d 'Reminder entry at=<iso|relative>|date=<iso|relative>,text=<text>|title=<text>' -r
1339
- complete -c pm -n '__pm_history_operation update' -l event -d 'Event entry start=<iso|relative>,end=<iso|relative>,recur_*' -r
1340
- complete -c pm -n '__pm_history_operation update' -l type-option -d 'Type option key=value or key=<name>,value=<value>' -r
1341
- complete -c pm -n '__pm_history_operation update' -l unset -d 'Clear scalar metadata field by name' -r
1342
- complete -c pm -n '__pm_history_operation update' -l replace-deps -d 'Atomically replace dependencies with provided --dep values'
1343
- complete -c pm -n '__pm_history_operation update' -l replace-tests -d 'Atomically replace linked tests with provided --test values'
1344
- complete -c pm -n '__pm_history_operation update' -l replace-files -d 'Atomically replace linked files with provided --file values'
1345
- complete -c pm -n '__pm_history_operation update' -l replace-docs -d 'Atomically replace linked docs with provided --doc values'
1346
- complete -c pm -n '__pm_history_operation update' -l clear-deps -d 'Clear dependency entries'
1347
- complete -c pm -n '__pm_history_operation update' -l clear-comments -d 'Clear comments'
1348
- complete -c pm -n '__pm_history_operation update' -l clear-notes -d 'Clear notes'
1349
- complete -c pm -n '__pm_history_operation update' -l clear-learnings -d 'Clear learnings'
1350
- complete -c pm -n '__pm_history_operation update' -l clear-files -d 'Clear linked files'
1351
- complete -c pm -n '__pm_history_operation update' -l clear-tests -d 'Clear linked tests'
1352
- complete -c pm -n '__pm_history_operation update' -l clear-docs -d 'Clear linked docs'
1353
- complete -c pm -n '__pm_history_operation update' -l clear-reminders -d 'Clear reminders'
1354
- complete -c pm -n '__pm_history_operation update' -l clear-events -d 'Clear events'
1355
- complete -c pm -n '__pm_history_operation update' -l clear-type-options -d 'Clear type options'
1356
- complete -c pm -n '__pm_history_operation update' -l author -d 'Mutation author' -r
1357
- complete -c pm -n '__pm_history_operation update' -l message -d 'History message' -r
1358
- complete -c pm -n '__pm_history_operation update' -l force -d 'Force override'
1359
- ${fishUpdateRuntimeFieldFlags}
1360
-
1361
- # update-many flags
1362
- complete -c pm -n '__pm_history_operation update-many' -l filter-status -d 'Filter by status before applying updates' -r -a '${statusChoices}'
1363
- complete -c pm -n '__pm_history_operation update-many' -l filter-type -d 'Filter by type before applying updates' -r -a '${typeChoices}'
1364
- complete -c pm -n '__pm_history_operation update-many' -l filter-tag -d 'Filter by tag before applying updates' -r -a ${fishTagChoices}
1365
- complete -c pm -n '__pm_history_operation update-many' -l filter-priority -d 'Filter by priority before applying updates' -r -a '0 1 2 3 4'
1366
- complete -c pm -n '__pm_history_operation update-many' -l filter-deadline-before -d 'Filter by deadline upper bound' -r
1367
- complete -c pm -n '__pm_history_operation update-many' -l filter-deadline-after -d 'Filter by deadline lower bound' -r
1368
- complete -c pm -n '__pm_history_operation update-many' -l filter-updated-after -d 'Filter by updated_at lower bound (ISO/relative)' -r
1369
- complete -c pm -n '__pm_history_operation update-many' -l filter-updated-before -d 'Filter by updated_at upper bound (ISO/relative)' -r
1370
- complete -c pm -n '__pm_history_operation update-many' -l filter-created-after -d 'Filter by created_at lower bound (ISO/relative)' -r
1371
- complete -c pm -n '__pm_history_operation update-many' -l filter-created-before -d 'Filter by created_at upper bound (ISO/relative)' -r
1372
- complete -c pm -n '__pm_history_operation update-many' -l filter-assignee -d 'Filter by assignee before applying updates' -r
1373
- complete -c pm -n '__pm_history_operation update-many' -l filter-assignee-filter -d 'Filter assignee presence' -r -a 'assigned unassigned'
1374
- complete -c pm -n '__pm_history_operation update-many' -l filter-parent -d 'Filter by parent item ID' -r
1375
- complete -c pm -n '__pm_history_operation update-many' -l filter-sprint -d 'Filter by sprint before applying updates' -r
1376
- complete -c pm -n '__pm_history_operation update-many' -l filter-release -d 'Filter by release before applying updates' -r
1377
- complete -c pm -n '__pm_history_operation update-many' -l filter-ac-missing -d 'Select only items missing acceptance_criteria'
1378
- complete -c pm -n '__pm_history_operation update-many' -l filter-estimates-missing -d 'Select only items missing estimated_minutes'
1379
- complete -c pm -n '__pm_history_operation update-many' -l filter-resolution-missing -d 'Select only terminal items missing resolution'
1380
- complete -c pm -n '__pm_history_operation update-many' -l filter-metadata-missing -d 'Select only items missing any tracked metadata'
1381
- complete -c pm -n '__pm_history_operation update-many' -l filter-reviewer-missing -d 'Select only items missing reviewer'
1382
- complete -c pm -n '__pm_history_operation update-many' -l filter-risk-missing -d 'Select only items missing risk'
1383
- complete -c pm -n '__pm_history_operation update-many' -l filter-confidence-missing -d 'Select only items missing confidence'
1384
- complete -c pm -n '__pm_history_operation update-many' -l filter-sprint-missing -d 'Select only items missing sprint'
1385
- complete -c pm -n '__pm_history_operation update-many' -l filter-release-missing -d 'Select only items missing release'
1386
- complete -c pm -n '__pm_history_operation update-many' -l filter-has-notes -d 'Select only items that have notes'
1387
- complete -c pm -n '__pm_history_operation update-many' -l filter-no-notes -d 'Select only items with no notes'
1388
- complete -c pm -n '__pm_history_operation update-many' -l filter-has-learnings -d 'Select only items that have learnings'
1389
- complete -c pm -n '__pm_history_operation update-many' -l filter-no-learnings -d 'Select only items with no learnings'
1390
- complete -c pm -n '__pm_history_operation update-many' -l filter-has-files -d 'Select only items that have linked files'
1391
- complete -c pm -n '__pm_history_operation update-many' -l filter-no-files -d 'Select only items with no linked files'
1392
- complete -c pm -n '__pm_history_operation update-many' -l filter-has-docs -d 'Select only items that have linked docs'
1393
- complete -c pm -n '__pm_history_operation update-many' -l filter-no-docs -d 'Select only items with no linked docs'
1394
- complete -c pm -n '__pm_history_operation update-many' -l filter-has-tests -d 'Select only items that have linked tests'
1395
- complete -c pm -n '__pm_history_operation update-many' -l filter-no-tests -d 'Select only items with no linked tests'
1396
- complete -c pm -n '__pm_history_operation update-many' -l filter-has-comments -d 'Select only items that have comments'
1397
- complete -c pm -n '__pm_history_operation update-many' -l filter-no-comments -d 'Select only items with no comments'
1398
- complete -c pm -n '__pm_history_operation update-many' -l filter-has-deps -d 'Select only items that have dependencies'
1399
- complete -c pm -n '__pm_history_operation update-many' -l filter-no-deps -d 'Select only items with no dependencies'
1400
- complete -c pm -n '__pm_history_operation update-many' -l filter-has-body -d 'Select only items with non-empty body'
1401
- complete -c pm -n '__pm_history_operation update-many' -l filter-empty-body -d 'Select only items with empty body'
1402
- complete -c pm -n '__pm_history_operation update-many' -l filter-has-linked-command -d 'Select only items that have a linked command'
1403
- complete -c pm -n '__pm_history_operation update-many' -l filter-no-linked-command -d 'Select only items with no linked command'
1404
- complete -c pm -n '__pm_history_operation update-many' -l ids -d 'Explicit comma-separated ID allowlist' -r
1405
- complete -c pm -n '__pm_history_operation update-many' -l limit -d 'Limit matched item count' -r
1406
- complete -c pm -n '__pm_history_operation update-many' -l offset -d 'Skip first n matched rows' -r
1407
- complete -c pm -n '__pm_history_operation update-many' -l dry-run -d 'Preview updates without mutating'
1408
- complete -c pm -n '__pm_history_operation update-many' -l rollback -d 'Rollback checkpoint ID' -r
1409
- complete -c pm -n '__pm_history_operation update-many' -l no-checkpoint -d 'Disable checkpoint creation during apply mode'
1410
- complete -c pm -n '__pm_history_operation update-many' -s t -l title -d 'Item title' -r
1411
- complete -c pm -n '__pm_history_operation update-many' -s d -l description -d 'Item description' -r
1412
- complete -c pm -n '__pm_history_operation update-many' -s b -l body -d 'Item body' -r
1413
- complete -c pm -n '__pm_history_operation update-many' -s p -l priority -d 'Priority (0-4)' -r -a '0 1 2 3 4'
1414
- complete -c pm -n '__pm_history_operation update-many' -l type -d 'Item type' -r -a '${typeChoices}'
1415
- complete -c pm -n '__pm_history_operation update-many' -l tags -d 'Comma-separated tags' -r
1416
- complete -c pm -n '__pm_history_operation update-many' -l add-tags -d 'Add tags additively without replacing existing' -r
1417
- complete -c pm -n '__pm_history_operation update-many' -l remove-tags -d 'Remove tags from the existing list' -r
1418
- complete -c pm -n '__pm_history_operation update-many' -l deadline -d 'Deadline (ISO/date string or relative)' -r
1419
- complete -c pm -n '__pm_history_operation update-many' -l estimate -d 'Estimated minutes' -r
1420
- complete -c pm -n '__pm_history_operation update-many' -l acceptance-criteria -d 'Acceptance criteria' -r
1421
- complete -c pm -n '__pm_history_operation update-many' -l add-ac -d 'Add one acceptance criterion without replacing existing' -r
1422
- complete -c pm -n '__pm_history_operation update-many' -l remove-ac -d 'Remove one acceptance criterion by exact text' -r
1423
- complete -c pm -n '__pm_history_operation update-many' -l definition-of-ready -d 'Definition of ready' -r
1424
- complete -c pm -n '__pm_history_operation update-many' -l order -d 'Planning order/rank' -r
1425
- complete -c pm -n '__pm_history_operation update-many' -l goal -d 'Goal identifier' -r
1426
- complete -c pm -n '__pm_history_operation update-many' -l objective -d 'Objective identifier' -r
1427
- complete -c pm -n '__pm_history_operation update-many' -l value -d 'Business value summary' -r
1428
- complete -c pm -n '__pm_history_operation update-many' -l impact -d 'Business impact summary' -r
1429
- complete -c pm -n '__pm_history_operation update-many' -l outcome -d 'Expected outcome summary' -r
1430
- complete -c pm -n '__pm_history_operation update-many' -l why-now -d 'Why-now rationale' -r
1431
- complete -c pm -n '__pm_history_operation update-many' -l reviewer -d 'Reviewer' -r
1432
- complete -c pm -n '__pm_history_operation update-many' -l risk -d 'Risk level' -r
1433
- complete -c pm -n '__pm_history_operation update-many' -l confidence -d 'Confidence level' -r
1434
- complete -c pm -n '__pm_history_operation update-many' -l sprint -d 'Sprint identifier' -r
1435
- complete -c pm -n '__pm_history_operation update-many' -l release -d 'Release identifier' -r
1436
- complete -c pm -n '__pm_history_operation update-many' -l reporter -d 'Issue reporter' -r
1437
- complete -c pm -n '__pm_history_operation update-many' -l severity -d 'Issue severity' -r
1438
- complete -c pm -n '__pm_history_operation update-many' -l environment -d 'Issue environment context' -r
1439
- complete -c pm -n '__pm_history_operation update-many' -l repro-steps -d 'Issue reproduction steps' -r
1440
- complete -c pm -n '__pm_history_operation update-many' -l resolution -d 'Issue resolution summary' -r
1441
- complete -c pm -n '__pm_history_operation update-many' -l expected-result -d 'Issue expected behavior' -r
1442
- complete -c pm -n '__pm_history_operation update-many' -l actual-result -d 'Issue observed behavior' -r
1443
- complete -c pm -n '__pm_history_operation update-many' -l expected -d 'Short alias for --expected-result' -r
1444
- complete -c pm -n '__pm_history_operation update-many' -l actual -d 'Short alias for --actual-result' -r
1445
- complete -c pm -n '__pm_history_operation update-many' -l affected-version -d 'Affected version identifier' -r
1446
- complete -c pm -n '__pm_history_operation update-many' -l fixed-version -d 'Fixed version identifier' -r
1447
- complete -c pm -n '__pm_history_operation update-many' -l component -d 'Issue component ownership' -r
1448
- complete -c pm -n '__pm_history_operation update-many' -l regression -d 'Regression marker true|false|1|0' -r
1449
- complete -c pm -n '__pm_history_operation update-many' -l customer-impact -d 'Customer impact summary' -r
1450
- complete -c pm -n '__pm_history_operation update-many' -l dep -d 'Dependency seed id=<id>,kind=<kind>,author=<author>,created_at=<timestamp>' -r
1451
- complete -c pm -n '__pm_history_operation update-many' -l dep-remove -d 'Dependency removal selector id=<id>,kind=<kind>,author=<author>,created_at=<timestamp>' -r
1452
- complete -c pm -n '__pm_history_operation update-many' -l replace-deps -d 'Atomically replace dependencies with provided --dep values'
1453
- complete -c pm -n '__pm_history_operation update-many' -l replace-tests -d 'Atomically replace linked tests with provided --test values'
1454
- complete -c pm -n '__pm_history_operation update-many' -l replace-files -d 'Atomically replace linked files with provided --file values'
1455
- complete -c pm -n '__pm_history_operation update-many' -l replace-docs -d 'Atomically replace linked docs with provided --doc values'
1456
- complete -c pm -n '__pm_history_operation update-many' -l comment -d 'Comment seed author=<value>,created_at=<iso|now>,text=<value>' -r
1457
- complete -c pm -n '__pm_history_operation update-many' -l note -d 'Note seed author=<value>,created_at=<iso|now>,text=<value>' -r
1458
- complete -c pm -n '__pm_history_operation update-many' -l learning -d 'Learning seed author=<value>,created_at=<iso|now>,text=<value>' -r
1459
- complete -c pm -n '__pm_history_operation update-many' -l file -d 'Linked file path=<value>,scope=<project|global>,note=<text>' -r
1460
- complete -c pm -n '__pm_history_operation update-many' -l test -d 'Linked test command=<value>,path=<value>,scope=<project|global>' -r
1461
- complete -c pm -n '__pm_history_operation update-many' -l doc -d 'Linked doc path=<value>,scope=<project|global>,note=<text>' -r
1462
- complete -c pm -n '__pm_history_operation update-many' -l reminder -d 'Reminder entry at=<iso|relative>|date=<iso|relative>,text=<text>|title=<text>' -r
1463
- complete -c pm -n '__pm_history_operation update-many' -l event -d 'Event entry start=<iso|relative>,end=<iso|relative>,recur_*' -r
1464
- complete -c pm -n '__pm_history_operation update-many' -l type-option -d 'Type option key=value or key=<name>,value=<value>' -r
1465
- complete -c pm -n '__pm_history_operation update-many' -l unset -d 'Clear scalar metadata field by name' -r
1466
- complete -c pm -n '__pm_history_operation update-many' -l clear-deps -d 'Clear dependency entries'
1467
- complete -c pm -n '__pm_history_operation update-many' -l clear-comments -d 'Clear comments'
1468
- complete -c pm -n '__pm_history_operation update-many' -l clear-notes -d 'Clear notes'
1469
- complete -c pm -n '__pm_history_operation update-many' -l clear-learnings -d 'Clear learnings'
1470
- complete -c pm -n '__pm_history_operation update-many' -l clear-files -d 'Clear linked files'
1471
- complete -c pm -n '__pm_history_operation update-many' -l clear-tests -d 'Clear linked tests'
1472
- complete -c pm -n '__pm_history_operation update-many' -l clear-docs -d 'Clear linked docs'
1473
- complete -c pm -n '__pm_history_operation update-many' -l clear-reminders -d 'Clear reminders'
1474
- complete -c pm -n '__pm_history_operation update-many' -l clear-events -d 'Clear events'
1475
- complete -c pm -n '__pm_history_operation update-many' -l clear-type-options -d 'Clear type options'
1476
- complete -c pm -n '__pm_history_operation update-many' -l author -d 'Mutation author' -r
1477
- complete -c pm -n '__pm_history_operation update-many' -l message -d 'History message' -r
1478
- complete -c pm -n '__pm_history_operation update-many' -l force -d 'Force override'
1479
- ${fishUpdateManyRuntimeFieldFlags}
1480
-
1481
- # files flags
1482
- complete -c pm -n '__fish_seen_subcommand_from files' -a 'discover lookup' -d 'Linked-file subcommand'
1483
- complete -c pm -n '__fish_seen_subcommand_from files' -l add -d 'Add a linked file' -r
1484
- complete -c pm -n '__fish_seen_subcommand_from files' -l add-glob -d 'Add linked files matching a glob' -r
1485
- complete -c pm -n '__fish_seen_subcommand_from files' -l remove -d 'Remove a linked file' -r
1486
- complete -c pm -n '__fish_seen_subcommand_from files' -l migrate -d 'Migrate linked-file metadata'
1487
- complete -c pm -n '__fish_seen_subcommand_from files' -l list -d 'List linked files'
1488
- complete -c pm -n '__fish_seen_subcommand_from files' -l apply -d 'Apply discovered linked files'
1489
- complete -c pm -n '__fish_seen_subcommand_from files' -l note -d 'Linked-file note' -r
1490
- complete -c pm -n '__fish_seen_subcommand_from files' -l append-stable -d 'Preserve stable append ordering'
1491
- complete -c pm -n '__fish_seen_subcommand_from files' -l validate-paths -d 'Validate linked-file paths'
1492
- complete -c pm -n '__fish_seen_subcommand_from files' -l scope -d 'Filter lookup by evidence scope' -r -a 'project global'
1493
- complete -c pm -n '__fish_seen_subcommand_from files' -l limit -d 'Maximum lookup matches' -r
1494
- complete -c pm -n '__fish_seen_subcommand_from files' -l offset -d 'Skip the first lookup matches' -r
1495
- complete -c pm -n '__fish_seen_subcommand_from files' -l no-truncate -d 'Return every lookup match'
1496
- complete -c pm -n '__fish_seen_subcommand_from files' -l strict-read -d 'Require authoritative source reads'
1497
- complete -c pm -n '__fish_seen_subcommand_from files' -l explain -d 'Include ranked source-to-work rationale'
1498
- complete -c pm -n '__fish_seen_subcommand_from files' -l lines -d 'Attribute an inclusive source line range' -r
1499
- complete -c pm -n '__fish_seen_subcommand_from files' -l decision-depth -d 'Maximum governing-decision relationship depth' -r
1500
-
1501
-
1502
- # search flags
1503
- complete -c pm -n '__fish_seen_subcommand_from search' -l mode -d 'Search mode' -r -a 'keyword semantic hybrid'
1504
- complete -c pm -n '__fish_seen_subcommand_from search' -l match-mode -d 'Token match mode' -r -a 'and or exact'
1505
- complete -c pm -n '__fish_seen_subcommand_from search' -l min-score -d 'Per-query minimum score threshold' -r
1506
- complete -c pm -n '__fish_seen_subcommand_from search' -l count -d 'Return only the match count'
1507
- complete -c pm -n '__fish_seen_subcommand_from search' -l include-linked -d 'Include linked content in scoring'
1508
- complete -c pm -n '__fish_seen_subcommand_from search' -l highlight -d 'Emit per-field matched-text snippets on each hit'
1509
- complete -c pm -n '__fish_seen_subcommand_from search' -l limit -d 'Max results' -r
1510
- complete -c pm -n '__fish_seen_subcommand_from search' -l status -d 'Filter by status (open/closed/canceled, csv)' -r -a '${statusChoices}'
1511
- complete -c pm -n '__fish_seen_subcommand_from search' -l type -d 'Filter by type' -r -a '${typeChoices}'
1512
- complete -c pm -n '__fish_seen_subcommand_from search' -l tag -d 'Filter by tag' -r -a ${fishTagChoices}
1513
- complete -c pm -n '__fish_seen_subcommand_from search' -l tags -d 'Alias for --tag' -r -a ${fishTagChoices}
1514
- complete -c pm -n '__fish_seen_subcommand_from search' -l priority -d 'Filter by priority' -r -a '0 1 2 3 4'
1515
- complete -c pm -n '__fish_seen_subcommand_from search' -l updated-after -d 'Filter by updated_at lower bound' -r
1516
- complete -c pm -n '__fish_seen_subcommand_from search' -l updated-before -d 'Filter by updated_at upper bound' -r
1517
- complete -c pm -n '__fish_seen_subcommand_from search' -l created-after -d 'Filter by created_at lower bound' -r
1518
- complete -c pm -n '__fish_seen_subcommand_from search' -l created-before -d 'Filter by created_at upper bound' -r
1519
- complete -c pm -n '__fish_seen_subcommand_from search' -l assignee -d 'Filter by assignee' -r
1520
- complete -c pm -n '__fish_seen_subcommand_from search' -l sprint -d 'Filter by sprint' -r
1521
- complete -c pm -n '__fish_seen_subcommand_from search' -l release -d 'Filter by release' -r
1522
- complete -c pm -n '__fish_seen_subcommand_from search' -l parent -d 'Filter by parent item ID' -r
1523
- complete -c pm -n '__fish_seen_subcommand_from search' -l filter-reviewer-missing -d 'Select only items missing reviewer'
1524
- complete -c pm -n '__fish_seen_subcommand_from search' -l filter-risk-missing -d 'Select only items missing risk'
1525
- complete -c pm -n '__fish_seen_subcommand_from search' -l filter-confidence-missing -d 'Select only items missing confidence'
1526
- complete -c pm -n '__fish_seen_subcommand_from search' -l filter-sprint-missing -d 'Select only items missing sprint'
1527
- complete -c pm -n '__fish_seen_subcommand_from search' -l filter-release-missing -d 'Select only items missing release'
1528
- complete -c pm -n '__fish_seen_subcommand_from search' -l has-notes -d 'Select only items that have notes'
1529
- complete -c pm -n '__fish_seen_subcommand_from search' -l no-notes -d 'Select only items with no notes'
1530
- complete -c pm -n '__fish_seen_subcommand_from search' -l has-learnings -d 'Select only items that have learnings'
1531
- complete -c pm -n '__fish_seen_subcommand_from search' -l no-learnings -d 'Select only items with no learnings'
1532
- complete -c pm -n '__fish_seen_subcommand_from search' -l has-files -d 'Select only items that have linked files'
1533
- complete -c pm -n '__fish_seen_subcommand_from search' -l no-files -d 'Select only items with no linked files'
1534
- complete -c pm -n '__fish_seen_subcommand_from search' -l filter-files-missing -d 'Alias for --no-files'
1535
- complete -c pm -n '__fish_seen_subcommand_from search' -l has-docs -d 'Select only items that have linked docs'
1536
- complete -c pm -n '__fish_seen_subcommand_from search' -l no-docs -d 'Select only items with no linked docs'
1537
- complete -c pm -n '__fish_seen_subcommand_from search' -l filter-docs-missing -d 'Alias for --no-docs'
1538
- complete -c pm -n '__fish_seen_subcommand_from search' -l has-tests -d 'Select only items that have linked tests'
1539
- complete -c pm -n '__fish_seen_subcommand_from search' -l no-tests -d 'Select only items with no linked tests'
1540
- complete -c pm -n '__fish_seen_subcommand_from search' -l has-comments -d 'Select only items that have comments'
1541
- complete -c pm -n '__fish_seen_subcommand_from search' -l no-comments -d 'Select only items with no comments'
1542
- complete -c pm -n '__fish_seen_subcommand_from search' -l has-deps -d 'Select only items that have dependencies'
1543
- complete -c pm -n '__fish_seen_subcommand_from search' -l no-deps -d 'Select only items with no dependencies'
1544
- complete -c pm -n '__fish_seen_subcommand_from search' -l has-body -d 'Select only items with non-empty body'
1545
- complete -c pm -n '__fish_seen_subcommand_from search' -l empty-body -d 'Select only items with empty body'
1546
- complete -c pm -n '__fish_seen_subcommand_from search' -l has-linked-command -d 'Select only items that have a linked command'
1547
- complete -c pm -n '__fish_seen_subcommand_from search' -l no-linked-command -d 'Select only items with no linked command'
1548
- ${fishSearchRuntimeFieldFlags}
1549
-
1550
- # calendar flags
1551
- complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l view -d 'Calendar view' -r -a 'agenda day week month'
1552
- complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l date -d 'Anchor date/time (ISO/date string or relative)' -r
1553
- complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l from -d 'Agenda lower bound (ISO/date string or relative)' -r
1554
- complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l to -d 'Agenda upper bound (ISO/date string or relative)' -r
1555
- complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l past -d 'Include past entries'
1556
- complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l full-period -d 'Include full anchored day/week/month period'
1557
- complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l type -d 'Filter by type' -r -a '${typeChoices}'
1558
- complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l tag -d 'Filter by tag' -r -a ${fishTagChoices}
1559
- complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l priority -d 'Filter by priority' -r -a '0 1 2 3 4'
1560
- complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l status -d 'Filter by status' -r -a '${statusChoices}'
1561
- complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l assignee -d 'Filter by assignee' -r
1562
- complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l assignee-filter -d 'Filter assignee presence' -r -a 'assigned unassigned'
1563
- complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l sprint -d 'Filter by sprint' -r
1564
- complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l release -d 'Filter by release' -r
1565
- complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l include -d 'Include event sources' -r -a 'all deadlines reminders events scheduled'
1566
- complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l recurrence-lookahead-days -d 'Bound open-ended recurrence lookahead' -r
1567
- complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l recurrence-lookback-days -d 'Bound open-ended recurrence lookback' -r
1568
- complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l occurrence-limit -d 'Cap occurrences per recurring event' -r
1569
- complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l limit -d 'Limit returned events' -r
1570
- complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l format -d 'Output override' -r -a 'markdown toon json'
1571
- ${fishCalendarRuntimeFieldFlags}
1572
-
1573
- # context flags
1574
- complete -c pm -n '__pm_history_operation context' -l date -d 'Anchor date/time (ISO/date string or relative)' -r
1575
- complete -c pm -n '__pm_history_operation context' -l from -d 'Agenda lower bound (ISO/date string or relative)' -r
1576
- complete -c pm -n '__pm_history_operation context' -l to -d 'Agenda upper bound (ISO/date string or relative)' -r
1577
- complete -c pm -n '__pm_history_operation context' -l past -d 'Include past entries in bounded windows'
1578
- complete -c pm -n '__pm_history_operation context' -l type -d 'Filter by type' -r -a '${typeChoices}'
1579
- complete -c pm -n '__pm_history_operation context' -l tag -d 'Filter by tag' -r -a ${fishTagChoices}
1580
- complete -c pm -n '__pm_history_operation context' -l priority -d 'Filter by priority' -r -a '0 1 2 3 4'
1581
- complete -c pm -n '__pm_history_operation context' -l assignee -d 'Filter by assignee' -r
1582
- complete -c pm -n '__pm_history_operation context' -l assignee-filter -d 'Filter assignee presence' -r -a 'assigned unassigned'
1583
- complete -c pm -n '__pm_history_operation context' -l sprint -d 'Filter by sprint' -r
1584
- complete -c pm -n '__pm_history_operation context' -l release -d 'Filter by release' -r
1585
- complete -c pm -n '__pm_history_operation context' -l parent -d 'Scope snapshot to one item subtree' -r
1586
- complete -c pm -n '__pm_history_operation context' -l limit -d 'Limit focus and agenda rows per section' -r
1587
- complete -c pm -n '__pm_history_operation context' -l depth -d 'Context depth' -r -a 'brief standard deep full'
1588
- complete -c pm -n '__pm_history_operation context' -l format -d 'Output override' -r -a 'markdown toon json'
1589
- ${fishContextRuntimeFieldFlags}
1590
-
1591
- # next flags
1592
- complete -c pm -n '__pm_history_operation next' -l type -d 'Filter candidates by type' -r -a '${typeChoices}'
1593
- complete -c pm -n '__pm_history_operation next' -l tag -d 'Filter candidates by tag' -r -a ${fishTagChoices}
1594
- complete -c pm -n '__pm_history_operation next' -l priority -d 'Filter candidates by priority' -r -a '0 1 2 3 4'
1595
- complete -c pm -n '__pm_history_operation next' -l assignee -d 'Filter candidates by assignee' -r
1596
- complete -c pm -n '__pm_history_operation next' -l assignee-filter -d 'Filter assignee presence' -r -a 'assigned unassigned'
1597
- complete -c pm -n '__pm_history_operation next' -l sprint -d 'Filter candidates by sprint' -r
1598
- complete -c pm -n '__pm_history_operation next' -l release -d 'Filter candidates by release' -r
1599
- complete -c pm -n '__pm_history_operation next' -l parent -d 'Scope to one item subtree' -r
1600
- complete -c pm -n '__pm_history_operation next' -l limit -d 'Limit ready rows' -r
1601
- complete -c pm -n '__pm_history_operation next' -l blocked-limit -d 'Limit blocked rows' -r
1602
- complete -c pm -n '__pm_history_operation next' -l ready-only -d 'Omit the blocked companion list'
1603
- complete -c pm -n '__pm_history_operation next' -l format -d 'Output override' -r -a 'markdown toon json'
1604
-
1605
- # guide flags
1606
- complete -c pm -n '__fish_seen_subcommand_from guide' -l list -d 'Show guide topic index'
1607
- complete -c pm -n '__fish_seen_subcommand_from guide' -l format -d 'Output override' -r -a 'markdown toon json'
1608
- complete -c pm -n '__fish_seen_subcommand_from guide' -l depth -d 'Guide detail depth' -r -a 'brief standard deep'
1609
- complete -c pm -n '__fish_seen_subcommand_from guide' -a '${guideTopicChoices}' -d 'Guide topic'
1610
-
1611
- # reindex flags
1612
- complete -c pm -n '__pm_history_operation reindex' -l mode -d 'Reindex mode' -r -a 'keyword semantic hybrid'
1613
- complete -c pm -n '__pm_history_operation reindex' -l progress -d 'Emit progress updates to stderr'
1614
-
1615
- # get flags
1616
- complete -c pm -n '__fish_seen_subcommand_from get' -l depth -d 'Detail depth' -r -a 'brief standard deep full'
1617
- complete -c pm -n '__fish_seen_subcommand_from get' -l full -d 'Explicit full item read'
1618
- complete -c pm -n '__fish_seen_subcommand_from get' -l fields -d 'Render custom comma-separated item fields' -r
1619
- complete -c pm -n '__fish_seen_subcommand_from get' -l tree -d 'Include descendant subtree in result payload'
1620
- complete -c pm -n '__fish_seen_subcommand_from get' -l tree-depth -d 'Cap subtree depth for --tree (0 = root only)' -r
1621
-
1622
- # Read the first command positions after consuming recognized global options.
1623
- function __pm_history_tokens
1624
- set -l tokens (commandline -opc)
1625
- set -l skip_value 0
1626
- set -l positions 0
1627
- set -l command_path
1628
- for token in $tokens[2..-1]
1629
- if test $skip_value -eq 1
1630
- set skip_value 0
1631
- continue
1632
- end
1633
- switch (string replace -a _ - -- "$token")
1634
- case ${GLOBAL_COMPLETION_VALUE_PATTERNS.replaceAll("|"," ")}
1635
- set skip_value 1
1636
- continue
1637
- case ${GLOBAL_COMPLETION_INLINE_PATTERNS.split("|").map(pattern=>`'${pattern}'`).join(" ")} ${GLOBAL_COMPLETION_SWITCH_PATTERNS.replaceAll("|"," ")}
1638
- continue
1639
- case --
1640
- printf '%s\\n' --
1641
- return
1642
- end
1643
- if test $positions -eq 0; and test "$token" = ctx
1644
- set token context
1645
- end
1646
- printf '%s\\n' "$token"
1647
- set positions (math $positions + 1)
1648
- set -a command_path "$token"
1649
- if not contains -- (string join ' ' -- $command_path) ${NAMESPACE_PREFIXES.map(prefix=>`'${prefix}'`).join(" ")}
1650
- return
1651
- end
1652
- end
1653
- if test $skip_value -eq 1
1654
- printf '%s\\n' --value
1655
- end
1656
- end
1657
-
1658
- # Match only the command positions, keeping item history separate from maintenance.
1659
- function __pm_history_operation
1660
- set -l tokens (__pm_history_tokens)
1661
- switch (string join ' ' -- $tokens)
1662
- ${[...PM_NAMESPACED_COMMAND_ALIASES].sort((left,right)=>right.canonical_argv.length-left.canonical_argv.length).map(entry=>` case '${entry.canonical}' '${entry.canonical} *'
1663
- contains -- '${entry.alias}' $argv
1664
- return`).join("\n")}
1665
- end
1666
- contains -- "$tokens[1]" $argv
1667
- end
1668
- ${Object.entries(namespaceLeaves).map(([noun,leaves])=>`complete -c pm -n 'test (string join " " -- (__pm_history_tokens)) = "${noun}"' -a '${leaves}' -d '${noun} operation'`).join("\n")}
1669
- ${RESTORE_INVOCATIONS.map(flag=>`complete -c pm -n '__pm_history_operation restore restore' -l ${flag.flag.slice(2)}${flag.takes_value?" -r":""}`).join("\n")}
1670
-
1671
- ${ATTEST_INVOCATIONS.map(flag=>`complete -c pm -n '__pm_history_operation history-attest' -l ${flag.flag.slice(2)}${flag.takes_value?" -r":""}`).join("\n")}
1672
-
1673
- # history / activity flags
1674
- complete -c pm -n '__pm_history_operation history' -l limit -d 'Max history entries' -r
1675
- complete -c pm -n '__pm_history_operation history' -l compact -d 'Condensed history projection'
1676
- complete -c pm -n '__pm_history_operation history' -l full -d 'Show full history entries'
1677
- complete -c pm -n '__pm_history_operation history' -l provenance -d 'Patch-free identity and agent provenance projection'
1678
- complete -c pm -n '__pm_history_operation history' -l provenance-summary -d 'Include bounded provenance completeness counts'
1679
- complete -c pm -n '__pm_history_operation history' -l harness -d 'Filter by recorded or vocabulary-resolved harness' -r
1680
- complete -c pm -n '__pm_history_operation history' -l agent-instance -d 'Filter by privacy-safe agent instance' -r
1681
- complete -c pm -n '__pm_history_operation history' -l provenance-filter -d 'Filter by exact declared provenance value' -r
1682
- complete -c pm -n '__pm_history_operation history' -l diff -d 'Include per-entry field-level before/after value diffs'
1683
- complete -c pm -n '__pm_history_operation history' -l field -d 'With --diff, show only entries that changed this field' -r
1684
- complete -c pm -n '__pm_history_operation history' -l verify -d 'Verify history hash chain and replay integrity'
1685
- complete -c pm -n '__pm_history_operation events' -l since -d 'Resume after a cursor or from an ISO timestamp' -r
1686
- complete -c pm -n '__pm_history_operation events' -l type -d 'Filter by mutation operation' -r
1687
- complete -c pm -n '__pm_history_operation events' -l author -d 'Filter by mutation author' -r
1688
- complete -c pm -n '__pm_history_operation events' -l item -d 'Filter by item or workspace stream' -r
1689
- complete -c pm -n '__pm_history_operation events' -l limit -d 'Maximum events, up to 1000' -r
1690
- complete -c pm -n '__pm_history_operation events' -l full -d 'Include complete authoritative history entries'
1691
- complete -c pm -n '__pm_history_operation events' -l provenance -d 'Include patch-free identity and agent provenance'
1692
- complete -c pm -n '__pm_history_operation events' -l provenance-summary -d 'Include bounded provenance completeness counts'
1693
- complete -c pm -n '__pm_history_operation events' -l harness -d 'Filter by recorded or vocabulary-resolved harness' -r
1694
- complete -c pm -n '__pm_history_operation events' -l agent-instance -d 'Filter by privacy-safe agent instance' -r
1695
- complete -c pm -n '__pm_history_operation events' -l provenance-filter -d 'Filter by exact declared provenance value' -r
1696
- complete -c pm -n '__pm_history_operation events' -l follow -d 'Continue emitting committed events'
1697
- complete -c pm -n '__pm_history_operation events' -l interval-ms -d 'Empty-read delay while following' -r
1698
- complete -c pm -n '__pm_history_operation history-compact compact' -l before -d 'Compact entries strictly before this version number or ISO timestamp' -r
1699
- complete -c pm -n '__pm_history_operation history-compact compact' -l id -d 'Item ID (alternative to positional ID)' -r
1700
- complete -c pm -n '__pm_history_operation history-compact compact' -l ids -d 'Bulk: compact an explicit comma-separated list of item ids' -r
1701
- complete -c pm -n '__pm_history_operation history-compact compact' -l all-over -d 'Bulk: compact every stream with more than N entries' -r
1702
- complete -c pm -n '__pm_history_operation history-compact compact' -l closed -d 'Bulk: compact only closed (terminal) items streams'
1703
- complete -c pm -n '__pm_history_operation history-compact compact' -l all-streams -d 'Bulk: compact every history stream regardless of lifecycle state'
1704
- complete -c pm -n '__pm_history_operation history-compact compact' -l min-entries -d 'Bulk: skip streams with at most N entries' -r
1705
- complete -c pm -n '__pm_history_operation history-compact compact' -l dry-run -d 'Preview compaction impact without writing the history file'
1706
- complete -c pm -n '__pm_history_operation history-compact compact' -l author -d 'Mutation author' -r
1707
- complete -c pm -n '__pm_history_operation history-compact compact' -l message -d 'Audit history message' -r
1708
- complete -c pm -n '__pm_history_operation history-compact compact' -l force -d 'Force ownership/lock override'
1709
- complete -c pm -n '__fish_seen_subcommand_from history-author-acknowledge' -l event -d 'Actionable unknown-author event' -r
1710
- complete -c pm -n '__fish_seen_subcommand_from history-author-acknowledge' -l all-actionable -d 'Select every currently actionable event'
1711
- complete -c pm -n '__fish_seen_subcommand_from history-author-acknowledge' -l dry-run -d 'Preview a deterministic source-bound plan'
1712
- complete -c pm -n '__fish_seen_subcommand_from history-author-acknowledge' -l plan-fingerprint -d 'Apply the exact dry-run plan' -r
1713
- complete -c pm -n '__fish_seen_subcommand_from history-author-acknowledge' -l limit -d 'Maximum coordinate rows returned in the plan' -r
1714
- complete -c pm -n '__fish_seen_subcommand_from history-author-acknowledge' -l attributed-author -d 'Principal attributed by maintainer review' -r
1715
- complete -c pm -n '__fish_seen_subcommand_from history-author-acknowledge' -l reviewer -d 'Reviewer recording the disposition' -r
1716
- complete -c pm -n '__fish_seen_subcommand_from history-author-acknowledge' -l reason -d 'Evidence-backed review rationale' -r
1717
- complete -c pm -n '__pm_history_operation history-redact redact' -l literal -d 'Literal string matcher to redact from history/item payloads' -r
1718
- complete -c pm -n '__pm_history_operation history-redact redact' -l id -d 'Item ID (alternative to positional ID)' -r
1719
- complete -c pm -n '__pm_history_operation history-redact redact' -l regex -d 'Regex matcher to redact (/pattern/flags or raw pattern)' -r
1720
- complete -c pm -n '__pm_history_operation history-redact redact' -l replacement -d 'Replacement text (defaults to [redacted])' -r
1721
- complete -c pm -n '__pm_history_operation history-redact redact' -l dry-run -d 'Preview redaction impact without writing files'
1722
- complete -c pm -n '__pm_history_operation history-redact redact' -l author -d 'Mutation author' -r
1723
- complete -c pm -n '__pm_history_operation history-redact redact' -l message -d 'Audit history message' -r
1724
- complete -c pm -n '__pm_history_operation history-redact redact' -l force -d 'Force ownership/lock override'
1725
- complete -c pm -n '__pm_history_operation history-repair repair' -l salvage-tail -d 'Recover an invalid suffix after a verified prefix'
1726
- complete -c pm -n '__pm_history_operation history-repair repair' -l id -d 'Item ID (alternative to positional ID)' -r
1727
- complete -c pm -n '__pm_history_operation history-repair repair' -l normalize-provenance -d 'Remove invalid provenance with aggregate evidence'
1728
- complete -c pm -n '__pm_history_operation history-repair repair' -l all -d 'Repair every drifted stream in one audited pass'
1729
- complete -c pm -n '__pm_history_operation history-repair repair' -l dry-run -d 'Preview the re-anchor impact without writing the history file'
1730
- complete -c pm -n '__pm_history_operation history-repair repair' -l author -d 'Mutation author' -r
1731
- complete -c pm -n '__pm_history_operation history-repair repair' -l message -d 'Audit history message' -r
1732
- complete -c pm -n '__pm_history_operation history-repair repair' -l force -d 'Force ownership/lock override'
1733
- complete -c pm -n '__fish_seen_subcommand_from schema' -a '${SCHEMA_SUBCOMMAND_CHOICES}' -d 'Schema subcommand'
1734
- complete -c pm -n '__fish_seen_subcommand_from schema; and __fish_seen_subcommand_from policy-mode' -a 'advise refuse' -d 'Policy enforcement'
1735
- complete -c pm -n '__fish_seen_subcommand_from schema' -l definition -d 'Policy definition or proposed fields JSON' -r
1736
- complete -c pm -n '__fish_seen_subcommand_from schema' -l policy -d 'Approval policy id' -r
1737
- complete -c pm -n '__fish_seen_subcommand_from schema' -l message -d 'History rationale' -r
1738
- complete -c pm -n '__fish_seen_subcommand_from schema' -l dry-run -d 'Preview schema changes'
1739
- complete -c pm -n '__fish_seen_subcommand_from schema' -l description -d 'Human description for the custom item type, status, or field' -r
1740
- complete -c pm -n '__fish_seen_subcommand_from schema' -l default-status -d 'Default status hint for the custom item type' -r
1741
- complete -c pm -n '__fish_seen_subcommand_from schema' -l folder -d 'Storage folder for items of this custom type' -r
1742
- complete -c pm -n '__fish_seen_subcommand_from schema' -l alias -d 'Alias for the custom type, status, or field flag (repeatable)' -r
1743
- complete -c pm -n '__fish_seen_subcommand_from schema' -l role -d 'Lifecycle role for a custom status (repeatable)' -r
1744
- complete -c pm -n '__fish_seen_subcommand_from schema' -l order -d 'Display/sort order for a custom status' -r
1745
- complete -c pm -n '__fish_seen_subcommand_from schema' -l type -d 'Value type for a custom field' -r -a 'string number boolean string_array array object'
1746
- complete -c pm -n '__fish_seen_subcommand_from schema' -l commands -d 'Commands a custom field is wired onto (repeatable)' -r
1747
- complete -c pm -n '__fish_seen_subcommand_from schema' -l cli-flag -d 'Override the auto-derived CLI flag for a custom field' -r
1748
- complete -c pm -n '__fish_seen_subcommand_from schema' -l required -d 'Mark a custom field as always required'
1749
- complete -c pm -n '__fish_seen_subcommand_from schema' -l required-on-create -d 'Mark a custom field as required at create time'
1750
- complete -c pm -n '__fish_seen_subcommand_from schema' -l no-allow-unset -d 'Disallow clearing a custom field via --unset'
1751
- complete -c pm -n '__fish_seen_subcommand_from schema' -l required-types -d 'Restrict a custom field requirement to specific item types (repeatable)' -r
1752
- complete -c pm -n '__fish_seen_subcommand_from schema' -l infer -d 'Infer item types from title-prefix conventions (add-type)'
1753
- complete -c pm -n '__fish_seen_subcommand_from schema' -l min-count -d 'Minimum items sharing a prefix for --infer' -r
1754
- complete -c pm -n '__fish_seen_subcommand_from schema' -l apply -d 'Register inferred types (with --infer)'
1755
- complete -c pm -n '__fish_seen_subcommand_from schema' -l author -d 'Mutation author' -r
1756
- complete -c pm -n '__fish_seen_subcommand_from schema' -l force -d 'Force ownership/lock override'
1757
- complete -c pm -n '__fish_seen_subcommand_from profile' -a 'list show apply lint' -d 'Profile subcommand'
1758
- complete -c pm -n '__fish_seen_subcommand_from profile' -a 'agile ops research' -d 'Profile name'
1759
- complete -c pm -n '__fish_seen_subcommand_from profile' -l dry-run -d 'Preview the apply diff without writing any files'
1760
- complete -c pm -n '__fish_seen_subcommand_from profile' -l author -d 'Mutation author' -r
1761
- complete -c pm -n '__fish_seen_subcommand_from profile' -l force -d 'Force ownership/lock override'
1762
- complete -c pm -n '__fish_seen_subcommand_from plan' -a 'create show add-step update-step complete-step block-step reorder-step remove-step link unlink decision discovery validation resume approve materialize' -d 'Plan subcommand'
1763
- complete -c pm -n '__fish_seen_subcommand_from plan' -l title -d 'Plan title' -r
1764
- complete -c pm -n '__fish_seen_subcommand_from plan' -l scope -d 'Plan scope statement' -r
1765
- complete -c pm -n '__fish_seen_subcommand_from plan' -l harness -d 'Plan harness provenance' -r -a 'codex claude-code cursor generic'
1766
- complete -c pm -n '__fish_seen_subcommand_from plan' -l mode -d 'Plan mode' -r -a 'draft research review approved executing paused completed superseded'
1767
- complete -c pm -n '__fish_seen_subcommand_from plan' -l resume-context -d 'Resume context summary' -r
1768
- complete -c pm -n '__fish_seen_subcommand_from plan' -l step-title -d 'Step title' -r
1769
- complete -c pm -n '__fish_seen_subcommand_from plan' -l step -d 'Step title (repeatable on create)' -r
1770
- complete -c pm -n '__fish_seen_subcommand_from plan' -l step-status -d 'Step status' -r -a 'pending in_progress completed blocked skipped superseded'
1771
- complete -c pm -n '__fish_seen_subcommand_from plan' -l step-evidence -d 'Step evidence' -r
1772
- complete -c pm -n '__fish_seen_subcommand_from plan' -l depends-on -d 'Pm item id step depends on' -r
1773
- complete -c pm -n '__fish_seen_subcommand_from plan' -l link -d 'Pm item id to link' -r
1774
- complete -c pm -n '__fish_seen_subcommand_from plan' -l link-kind -d 'Link kind' -r -a 'related blocks blocked_by depends_on discovered_from implements verifies supersedes'
1775
- complete -c pm -n '__fish_seen_subcommand_from plan' -l depth -d 'Show depth' -r -a 'brief standard deep'
1776
- complete -c pm -n '__fish_seen_subcommand_from plan' -l steps -d 'Step ids/orders for materialize' -r
1777
- complete -c pm -n '__fish_seen_subcommand_from plan' -l materialize-type -d 'Item type for materialized steps' -r
1778
- complete -c pm -n '__fish_seen_subcommand_from plan' -l allow-multiple-active -d 'Allow multiple in_progress steps'
1779
- complete -c pm -n '__fish_seen_subcommand_from plan' -l promote-to-item-dep -d 'Also add link as item dependency'
1780
- complete -c pm -n '__fish_seen_subcommand_from plan' -l author -d 'Mutation author' -r
1781
- complete -c pm -n '__fish_seen_subcommand_from plan' -l message -d 'Mutation message' -r
1782
- complete -c pm -n '__fish_seen_subcommand_from plan' -l force -d 'Force ownership override'
1783
- complete -c pm -n '__pm_history_operation activity activity' -l id -d 'Filter by item ID' -r
1784
- complete -c pm -n '__pm_history_operation activity activity' -l op -d 'Filter by history operation' -r
1785
- complete -c pm -n '__pm_history_operation activity activity' -l author -d 'Filter by history author' -r
1786
- complete -c pm -n '__pm_history_operation activity activity' -l from -d 'Lower timestamp bound (ISO/date string or relative)' -r
1787
- complete -c pm -n '__pm_history_operation activity activity' -l to -d 'Upper timestamp bound (ISO/date string or relative)' -r
1788
- complete -c pm -n '__pm_history_operation activity activity' -l limit -d 'Max activity entries' -r
1789
- complete -c pm -n '__pm_history_operation activity activity' -l unbounded -d 'Return every matching activity entry'
1790
- complete -c pm -n '__pm_history_operation activity activity' -l compact -d 'Condensed activity projection'
1791
- complete -c pm -n '__pm_history_operation activity activity' -l raw -d 'Emit raw compact per-event activity output'
1792
- complete -c pm -n '__pm_history_operation activity activity' -l full -d 'Show full activity entries'
1793
- complete -c pm -n '__pm_history_operation activity activity' -l provenance -d 'Patch-free identity and agent provenance projection'
1794
- complete -c pm -n '__pm_history_operation activity activity' -l provenance-summary -d 'Include bounded provenance completeness counts'
1795
- complete -c pm -n '__pm_history_operation activity activity' -l harness -d 'Filter by recorded or vocabulary-resolved harness' -r
1796
- complete -c pm -n '__pm_history_operation activity activity' -l agent-instance -d 'Filter by privacy-safe agent instance' -r
1797
- complete -c pm -n '__pm_history_operation activity activity' -l provenance-filter -d 'Filter by exact declared provenance value' -r
1798
- complete -c pm -n '__pm_history_operation activity activity' -l stream -d 'Emit line-delimited JSON rows (requires --json)'
1799
- complete -c pm -n '__fish_seen_subcommand_from contracts' -l action -d 'Filter schema by tool action' -r
1800
- complete -c pm -n '__fish_seen_subcommand_from contracts' -l command -d 'Scope output to one command (narrow-by-default)' -r
1801
- complete -c pm -n '__fish_seen_subcommand_from contracts' -l summary -d 'Return compact command intent summary'
1802
- complete -c pm -n '__fish_seen_subcommand_from contracts' -l schema-only -d 'Return schema-only payload'
1803
- complete -c pm -n '__fish_seen_subcommand_from contracts' -l flags-only -d 'Return command flag contracts only'
1804
- complete -c pm -n '__fish_seen_subcommand_from contracts' -l availability-only -d 'Return action availability only'
1805
- complete -c pm -n '__fish_seen_subcommand_from contracts' -l runtime-only -d 'Include only actions invocable in the current runtime'
1806
- complete -c pm -n '__fish_seen_subcommand_from contracts' -l active-only -d 'Alias for --runtime-only'
1807
- complete -c pm -n '__fish_seen_subcommand_from contracts' -l full -d 'Include complete command and schema contract details'
1808
- complete -c pm -n '__fish_seen_subcommand_from deps' -l format -d 'Output format' -r -a 'tree graph context'
1809
- complete -c pm -n '__fish_seen_subcommand_from deps' -l max-depth -d 'Maximum traversal depth (0 keeps root only)' -r
1810
- complete -c pm -n '__fish_seen_subcommand_from deps' -l collapse -d 'Collapse mode' -r -a 'none repeated'
1811
- complete -c pm -n '__fish_seen_subcommand_from deps' -l summary -d 'Return counts only without tree/graph payload'
1812
- complete -c pm -n '__fish_seen_subcommand_from deps' -l node-limit -d 'Maximum nodes in context output' -r
1813
- complete -c pm -n '__fish_seen_subcommand_from deps' -l edge-limit -d 'Maximum edges in context output' -r
1814
- complete -c pm -n '__fish_seen_subcommand_from deps' -l token-budget -d 'Maximum estimated tokens in context output' -r
1815
- complete -c pm -n '__fish_seen_subcommand_from deps' -l cursor -d 'Continue an equivalent context query' -r
1816
- complete -c pm -n '__fish_seen_subcommand_from deps' -l direction -d 'Context traversal direction' -r -a 'outgoing incoming both'
1817
- complete -c pm -n '__fish_seen_subcommand_from deps' -l kind -d 'Restrict context traversal to relationship kinds' -r
1818
- complete -c pm -n '__fish_seen_subcommand_from graph' -a 'ancestors descendants predecessors successors paths impact analyze audit communities redundancy dominators slack centrality articulation plan index' -d 'Graph query'
1819
- complete -c pm -n '__fish_seen_subcommand_from graph' -l kind -d 'Restrict traversal to registered relationship kinds' -r
1820
- complete -c pm -n '__fish_seen_subcommand_from graph' -l max-depth -d 'Maximum traversal depth' -r
1821
- complete -c pm -n '__fish_seen_subcommand_from graph' -l limit -d 'Maximum returned rows per bounded collection' -r
1822
- complete -c pm -n '__fish_seen_subcommand_from graph' -l after -d 'Resume a traversal after this node id' -r
1823
- complete -c pm -n '__fish_seen_subcommand_from graph' -l direction -d 'Edge orientation for paths/impact' -r -a 'outgoing incoming both'
1824
- complete -c pm -n '__fish_seen_subcommand_from graph' -l max-paths -d 'Maximum enumerated paths' -r
1825
- complete -c pm -n '__fish_seen_subcommand_from graph' -l sample -d 'Maximum evidence sample entries per audit finding' -r
1826
- complete -c pm -n '__fish_seen_subcommand_from graph' -l exempt-isolate -d 'Item ids treated as explicitly valid isolates' -r
1827
- complete -c pm -n '__fish_seen_subcommand_from graph' -l exempt-isolate-type -d 'Item types whose active isolates are policy-valid' -r
1828
- complete -c pm -n '__fish_seen_subcommand_from graph' -l save-baseline -d 'Persist the audit census as the comparison baseline'
1829
- complete -c pm -n '__fish_seen_subcommand_from graph' -l rebuild -d 'Rebuild and warm the durable graph index'
1830
- complete -c pm -n '__fish_seen_subcommand_from graph' -l clear -d 'Delete the durable graph index'
1831
- complete -c pm -n '__fish_seen_subcommand_from graph' -l summary -d 'Return counts-first envelopes without row collections'
1832
-
1833
- # comments / notes / learnings flags
1834
- complete -c pm -n '__fish_seen_subcommand_from comments notes learnings' -l add -d 'Add one entry (text=<value> or plain text)' -r
1835
- complete -c pm -n '__fish_seen_subcommand_from comments notes learnings' -l text -d 'Alias for --add' -r
1836
- complete -c pm -n '__fish_seen_subcommand_from notes' -l add-json -d 'Append one validated JSON context event' -r
1837
- complete -c pm -n '__fish_seen_subcommand_from notes' -l since -d 'Return structured events at or after an ISO timestamp' -r
1838
- complete -c pm -n '__fish_seen_subcommand_from notes' -l event-type -d 'Return structured events with this top-level type' -r
1839
- complete -c pm -n '__fish_seen_subcommand_from notes' -l include-meta -d 'Include result counts and truncation metadata'
1840
- complete -c pm -n '__fish_seen_subcommand_from comments' -l stdin -d 'Read comment text from stdin (supports multiline markdown)'
1841
- complete -c pm -n '__fish_seen_subcommand_from comments' -l file -d 'Read comment text from file (supports multiline markdown)' -r
1842
- complete -c pm -n '__fish_seen_subcommand_from comments' -l edit -d 'Replace the comment at 1-based index (text from positional/--add/--stdin/--file)' -r
1843
- complete -c pm -n '__fish_seen_subcommand_from comments' -l delete -d 'Delete the comment at 1-based index' -r
1844
- complete -c pm -n '__fish_seen_subcommand_from comments notes learnings' -l if-absent -d 'Append only when the resolved author and text are absent'
1845
- complete -c pm -n '__fish_seen_subcommand_from notes' -l stdin -d 'Read entry text from stdin'
1846
- complete -c pm -n '__fish_seen_subcommand_from notes' -l file -d 'Read entry text from file' -r
1847
- complete -c pm -n '__fish_seen_subcommand_from notes' -l edit -d 'Replace the entry at a 1-based index' -r
1848
- complete -c pm -n '__fish_seen_subcommand_from notes' -l delete -d 'Delete the entry at a 1-based index' -r
1849
- complete -c pm -n '__fish_seen_subcommand_from comments notes learnings' -l limit -d 'Return only latest n entries' -r
1850
- complete -c pm -n '__fish_seen_subcommand_from comments notes learnings' -l full-history -d 'Return complete post-mutation history'
1851
- complete -c pm -n '__fish_seen_subcommand_from comments notes learnings' -l author -d 'Entry author' -r
1852
- complete -c pm -n '__fish_seen_subcommand_from comments notes learnings' -l message -d 'History message' -r
1853
- complete -c pm -n '__fish_seen_subcommand_from comments notes learnings' -l force -d 'Force override'
1854
-
1855
- # test flags
1856
- complete -c pm -n '__fish_seen_subcommand_from test' -l add -d 'Add linked test entry' -r
1857
- complete -c pm -n '__fish_seen_subcommand_from test' -l add-json -d 'Add linked test entry from JSON object/array' -r
1858
- complete -c pm -n '__fish_seen_subcommand_from test' -l remove -d 'Remove linked test entry' -r
1859
- complete -c pm -n '__fish_seen_subcommand_from test' -l remove-index -d 'Remove linked test entry by 1-based index' -r
1860
- complete -c pm -n '__fish_seen_subcommand_from test' -l list -d 'List linked tests without mutating'
1861
- complete -c pm -n '__fish_seen_subcommand_from test' -l run -d 'Run linked tests'
1862
- complete -c pm -n '__fish_seen_subcommand_from test' -l match -d 'Run linked tests whose command/path contains substring' -r
1863
- complete -c pm -n '__fish_seen_subcommand_from test' -l only-index -d 'Run one linked test by 1-based index' -r
1864
- complete -c pm -n '__fish_seen_subcommand_from test' -l only-last -d 'Run the most recently added linked test'
1865
- complete -c pm -n '__fish_seen_subcommand_from test' -l background -d 'Run linked tests in managed background mode'
1866
- complete -c pm -n '__fish_seen_subcommand_from test' -l timeout -d 'Default timeout seconds' -r
1867
- complete -c pm -n '__fish_seen_subcommand_from test' -l progress -d 'Emit linked-test progress to stderr'
1868
- complete -c pm -n '__fish_seen_subcommand_from test' -l env-set -d 'Set linked-test runtime environment values' -r
1869
- complete -c pm -n '__fish_seen_subcommand_from test' -l env-clear -d 'Clear linked-test runtime environment values' -r
1870
- complete -c pm -n '__fish_seen_subcommand_from test' -l shared-host-safe -d 'Apply shared-host-safe runtime defaults'
1871
- complete -c pm -n '__fish_seen_subcommand_from test' -l pm-context -d 'PM linked-test context mode' -r -a 'schema tracker auto'
1872
- complete -c pm -n '__fish_seen_subcommand_from test' -l override-linked-pm-context -d 'Force run-level --pm-context over per-linked-test metadata'
1873
- complete -c pm -n '__fish_seen_subcommand_from test' -l fail-on-context-mismatch -d 'Fail when context item counts mismatch'
1874
- complete -c pm -n '__fish_seen_subcommand_from test' -l fail-on-skipped -d 'Treat skipped linked tests as dependency failures'
1875
- complete -c pm -n '__fish_seen_subcommand_from test' -l fail-on-empty-test-run -d 'Treat empty linked-test selections as failures'
1876
- complete -c pm -n '__fish_seen_subcommand_from test' -l require-assertions-for-pm -d 'Require assertions for linked PM command tests'
1877
- complete -c pm -n '__fish_seen_subcommand_from test' -l check-context -d 'Preflight linked PM command context diagnostics before execution'
1878
- complete -c pm -n '__fish_seen_subcommand_from test' -l auto-pm-context -d 'Auto-remediate tracker-read context mismatches using tracker context'
1879
- complete -c pm -n '__fish_seen_subcommand_from test' -l author -d 'Mutation author' -r
1880
- complete -c pm -n '__fish_seen_subcommand_from test' -l message -d 'History message' -r
1881
- complete -c pm -n '__fish_seen_subcommand_from test' -l force -d 'Force override'
1882
-
1883
- # test-all flags
1884
- complete -c pm -n '__pm_history_operation test-all' -l status -d 'Filter by status' -r -a 'open in_progress'
1885
- complete -c pm -n '__pm_history_operation test-all' -l limit -d 'Limit matching items before running linked tests' -r
1886
- complete -c pm -n '__pm_history_operation test-all' -l offset -d 'Skip matching items before running linked tests' -r
1887
- complete -c pm -n '__pm_history_operation test-all' -l background -d 'Run linked tests in managed background mode'
1888
- complete -c pm -n '__pm_history_operation test-all' -l timeout -d 'Default timeout seconds' -r
1889
- complete -c pm -n '__pm_history_operation test-all' -l progress -d 'Emit linked-test progress to stderr'
1890
- complete -c pm -n '__pm_history_operation test-all' -l env-set -d 'Set linked-test runtime environment values' -r
1891
- complete -c pm -n '__pm_history_operation test-all' -l env-clear -d 'Clear linked-test runtime environment values' -r
1892
- complete -c pm -n '__pm_history_operation test-all' -l shared-host-safe -d 'Apply shared-host-safe runtime defaults'
1893
- complete -c pm -n '__pm_history_operation test-all' -l pm-context -d 'PM linked-test context mode' -r -a 'schema tracker auto'
1894
- complete -c pm -n '__pm_history_operation test-all' -l override-linked-pm-context -d 'Force run-level --pm-context over per-linked-test metadata'
1895
- complete -c pm -n '__pm_history_operation test-all' -l fail-on-context-mismatch -d 'Fail when context item counts mismatch'
1896
- complete -c pm -n '__pm_history_operation test-all' -l fail-on-skipped -d 'Treat skipped linked tests as dependency failures'
1897
- complete -c pm -n '__pm_history_operation test-all' -l fail-on-empty-test-run -d 'Treat empty linked-test selections as failures'
1898
- complete -c pm -n '__pm_history_operation test-all' -l require-assertions-for-pm -d 'Require assertions for linked PM command tests'
1899
- complete -c pm -n '__pm_history_operation test-all' -l check-context -d 'Preflight linked PM command context diagnostics before execution'
1900
- complete -c pm -n '__pm_history_operation test-all' -l auto-pm-context -d 'Auto-remediate tracker-read context mismatches using tracker context'
1901
-
1902
- # test-runs flags
1903
- complete -c pm -n '__fish_seen_subcommand_from test-runs' -a 'list status logs stop resume' -d 'test-runs subcommand'
1904
- complete -c pm -n '__fish_seen_subcommand_from test-runs' -l status -d 'Filter background runs by status' -r -a 'queued running passed failed stopped canceled'
1905
- complete -c pm -n '__fish_seen_subcommand_from test-runs' -l limit -d 'Limit returned runs' -r
1906
- complete -c pm -n '__fish_seen_subcommand_from test-runs' -l stream -d 'Background log stream selector' -r -a 'stdout stderr both'
1907
- complete -c pm -n '__fish_seen_subcommand_from test-runs' -l tail -d 'Tail number of lines from logs' -r
1908
- complete -c pm -n '__fish_seen_subcommand_from test-runs' -l force -d 'Force-stop run with SIGKILL'
1909
- complete -c pm -n '__fish_seen_subcommand_from test-runs' -l author -d 'Resume author' -r
1910
-
1911
- # gc flags
1912
- complete -c pm -n '__pm_history_operation gc' -l dry-run -d 'Preview cleanup targets without deleting files'
1913
- complete -c pm -n '__pm_history_operation gc' -l scope -d 'Limit cleanup to index/embeddings/runtime/locks scopes' -r
1914
-
1915
- # stats flags
1916
- complete -c pm -n '__pm_history_operation stats' -l include-empty -d 'Include registered zero-count type and status buckets'
1917
- complete -c pm -n '__pm_history_operation stats' -l storage -d 'Include aggregate history-stream storage metrics'
1918
- complete -c pm -n '__pm_history_operation stats' -l metadata-coverage -d 'Include metadata coverage percentages overall and by type'
1919
- complete -c pm -n '__pm_history_operation stats' -l field-utilization -d 'Include content-field utilization rates across all items'
1920
- complete -c pm -n '__pm_history_operation stats' -l by-assignee -d 'Lifecycle-bucketed breakdown grouped by assignee'
1921
- complete -c pm -n '__pm_history_operation stats' -l by-tag -d 'Lifecycle-bucketed breakdown grouped by tag'
1922
- complete -c pm -n '__pm_history_operation stats' -l by-priority -d 'Lifecycle-bucketed breakdown grouped by priority'
1923
- complete -c pm -n '__pm_history_operation stats' -l tag-prefix -d 'With --by-tag: only count tags with this prefix' -r
1924
- complete -c pm -n '__pm_history_operation stats' -l analytics -d 'Improvement ledger/history analytics JSON' -r
1925
-
1926
- # append flags
1927
- complete -c pm -n '__fish_seen_subcommand_from append' -s b -l body -d 'Item body' -r
1928
- complete -c pm -n '__fish_seen_subcommand_from append' -l author -d 'Mutation author' -r
1929
- complete -c pm -n '__fish_seen_subcommand_from append' -l message -d 'History message' -r
1930
- complete -c pm -n '__fish_seen_subcommand_from append' -l force -d 'Force override'
1931
-
1932
- # close flags
1933
- complete -c pm -n '__pm_history_operation close' -l release-assignment -d 'Close and release assignment'
1934
- complete -c pm -n '__pm_history_operation release' -l pause -d 'Return to open and release ownership'
1935
- complete -c pm -n '__pm_history_operation claim' -l start -d 'Claim and start work'
1936
- complete -c pm -n '__pm_history_operation claim release start-task pause-task close close-task delete' -l author -d 'Mutation author' -r
1937
- complete -c pm -n '__pm_history_operation claim release start-task pause-task close close-task delete' -l message -d 'History message' -r
1938
- complete -c pm -n '__pm_history_operation claim release start-task pause-task close close-task delete' -l force -d 'Force override'
1939
- complete -c pm -n '__fish_seen_subcommand_from claim' -l if-available -d 'Skip work held by another author'
1940
- complete -c pm -n '__fish_seen_subcommand_from claim' -l next -d 'Atomically claim the next actionable item'
1941
- complete -c pm -n '__fish_seen_subcommand_from claim' -l token-budget -d 'Bound ranked candidate tokens' -r
1942
- complete -c pm -n '__fish_seen_subcommand_from claim' -l explain-ranking -d 'Include ranking provenance'
1943
- complete -c pm -n '__pm_history_operation close close-task' -l validate-close -d 'Validate closure metadata mode' -r -a 'off warn strict'
1944
- complete -c pm -n '__pm_history_operation close' -l reason -d 'Closure reason' -r
1945
- complete -c pm -n '__pm_history_operation close' -l close-reason -d 'Alias for --reason' -r
1946
- complete -c pm -n '__pm_history_operation close' -l resolution -d 'Closure resolution summary' -r
1947
- complete -c pm -n '__pm_history_operation close' -l expected-result -d 'Expected behavior note' -r
1948
- complete -c pm -n '__pm_history_operation close' -l actual-result -d 'Observed behavior note' -r
1949
- complete -c pm -n '__pm_history_operation close' -l expected -d 'Short alias for --expected-result' -r
1950
- complete -c pm -n '__pm_history_operation close' -l actual -d 'Short alias for --actual-result' -r
1951
- complete -c pm -n '__pm_history_operation delete' -l dry-run -d 'Preview the item file that would be deleted without mutating'
1952
-
1953
- # scheduling shortcut flags (meet/event/remind)
1954
- complete -c pm -n '__fish_seen_subcommand_from meet event' -l start -d 'Start time (ISO, now, or relative)' -r
1955
- complete -c pm -n '__fish_seen_subcommand_from meet event' -l duration -d 'Duration from start (default 1h)' -r
1956
- complete -c pm -n '__fish_seen_subcommand_from meet event' -l end -d 'End time (overrides --duration)' -r
1957
- complete -c pm -n '__fish_seen_subcommand_from meet event' -l location -d 'Location' -r
1958
- complete -c pm -n '__fish_seen_subcommand_from meet event' -l timezone -d 'IANA timezone' -r
1959
- complete -c pm -n '__fish_seen_subcommand_from meet event' -l all-day -d 'Mark as an all-day event'
1960
- complete -c pm -n '__fish_seen_subcommand_from remind' -l at -d 'Reminder time (default +1d)' -r
1961
- complete -c pm -n '__fish_seen_subcommand_from remind' -l text -d 'Reminder text (defaults to title)' -r
1962
- complete -c pm -n '__fish_seen_subcommand_from meet event remind' -l parent -d 'Parent item id' -r
1963
- complete -c pm -n '__fish_seen_subcommand_from meet event remind' -l allow-missing-parent -d 'Permit a parent id that does not exist yet'
1964
- complete -c pm -n '__fish_seen_subcommand_from meet event remind' -l tags -d 'Comma-separated tags' -r
1965
- complete -c pm -n '__fish_seen_subcommand_from meet event remind' -l priority -d 'Priority (0-4)' -r -a '0 1 2 3 4'
1966
- complete -c pm -n '__fish_seen_subcommand_from meet event remind' -l body -d 'Item body' -r
1967
- complete -c pm -n '__fish_seen_subcommand_from meet event remind' -l description -d 'Short description' -r
1968
- complete -c pm -n '__fish_seen_subcommand_from meet event remind' -l author -d 'Mutation author' -r
1969
- complete -c pm -n '__fish_seen_subcommand_from meet event remind' -l message -d 'History message' -r
1970
-
1971
- # close-many flags
1972
- complete -c pm -n '__pm_history_operation close-many' -l filter-status -d 'Filter by status before closing' -r -a '${statusChoices}'
1973
- complete -c pm -n '__pm_history_operation close-many' -l filter-type -d 'Filter by type before closing' -r -a '${typeChoices}'
1974
- complete -c pm -n '__pm_history_operation close-many' -l filter-tag -d 'Filter by tag before closing' -r -a ${fishTagChoices}
1975
- complete -c pm -n '__pm_history_operation close-many' -l filter-priority -d 'Filter by priority before closing' -r -a '0 1 2 3 4'
1976
- complete -c pm -n '__pm_history_operation close-many' -l filter-deadline-before -d 'Filter by deadline upper bound' -r
1977
- complete -c pm -n '__pm_history_operation close-many' -l filter-deadline-after -d 'Filter by deadline lower bound' -r
1978
- complete -c pm -n '__pm_history_operation close-many' -l filter-updated-after -d 'Filter by updated_at lower bound (ISO/relative)' -r
1979
- complete -c pm -n '__pm_history_operation close-many' -l filter-updated-before -d 'Filter by updated_at upper bound (ISO/relative)' -r
1980
- complete -c pm -n '__pm_history_operation close-many' -l filter-created-after -d 'Filter by created_at lower bound (ISO/relative)' -r
1981
- complete -c pm -n '__pm_history_operation close-many' -l filter-created-before -d 'Filter by created_at upper bound (ISO/relative)' -r
1982
- complete -c pm -n '__pm_history_operation close-many' -l filter-assignee -d 'Filter by assignee before closing' -r
1983
- complete -c pm -n '__pm_history_operation close-many' -l filter-assignee-filter -d 'Filter assignee presence' -r -a 'assigned unassigned'
1984
- complete -c pm -n '__pm_history_operation close-many' -l filter-parent -d 'Filter by parent item ID' -r
1985
- complete -c pm -n '__pm_history_operation close-many' -l filter-sprint -d 'Filter by sprint before closing' -r
1986
- complete -c pm -n '__pm_history_operation close-many' -l filter-release -d 'Filter by release before closing' -r
1987
- complete -c pm -n '__pm_history_operation close-many' -l filter-reviewer-missing -d 'Select only items missing reviewer'
1988
- complete -c pm -n '__pm_history_operation close-many' -l filter-risk-missing -d 'Select only items missing risk'
1989
- complete -c pm -n '__pm_history_operation close-many' -l filter-confidence-missing -d 'Select only items missing confidence'
1990
- complete -c pm -n '__pm_history_operation close-many' -l filter-sprint-missing -d 'Select only items missing sprint'
1991
- complete -c pm -n '__pm_history_operation close-many' -l filter-release-missing -d 'Select only items missing release'
1992
- complete -c pm -n '__pm_history_operation close-many' -l filter-has-notes -d 'Select only items that have notes'
1993
- complete -c pm -n '__pm_history_operation close-many' -l filter-no-notes -d 'Select only items with no notes'
1994
- complete -c pm -n '__pm_history_operation close-many' -l filter-has-learnings -d 'Select only items that have learnings'
1995
- complete -c pm -n '__pm_history_operation close-many' -l filter-no-learnings -d 'Select only items with no learnings'
1996
- complete -c pm -n '__pm_history_operation close-many' -l filter-has-files -d 'Select only items that have linked files'
1997
- complete -c pm -n '__pm_history_operation close-many' -l filter-no-files -d 'Select only items with no linked files'
1998
- complete -c pm -n '__pm_history_operation close-many' -l filter-has-docs -d 'Select only items that have linked docs'
1999
- complete -c pm -n '__pm_history_operation close-many' -l filter-no-docs -d 'Select only items with no linked docs'
2000
- complete -c pm -n '__pm_history_operation close-many' -l filter-has-tests -d 'Select only items that have linked tests'
2001
- complete -c pm -n '__pm_history_operation close-many' -l filter-no-tests -d 'Select only items with no linked tests'
2002
- complete -c pm -n '__pm_history_operation close-many' -l filter-has-comments -d 'Select only items that have comments'
2003
- complete -c pm -n '__pm_history_operation close-many' -l filter-no-comments -d 'Select only items with no comments'
2004
- complete -c pm -n '__pm_history_operation close-many' -l filter-has-deps -d 'Select only items that have dependencies'
2005
- complete -c pm -n '__pm_history_operation close-many' -l filter-no-deps -d 'Select only items with no dependencies'
2006
- complete -c pm -n '__pm_history_operation close-many' -l filter-has-body -d 'Select only items with non-empty body'
2007
- complete -c pm -n '__pm_history_operation close-many' -l filter-empty-body -d 'Select only items with empty body'
2008
- complete -c pm -n '__pm_history_operation close-many' -l filter-has-linked-command -d 'Select only items that have a linked command'
2009
- complete -c pm -n '__pm_history_operation close-many' -l filter-no-linked-command -d 'Select only items with no linked command'
2010
- complete -c pm -n '__pm_history_operation close-many' -l ids -d 'Explicit comma-separated ID allowlist' -r
2011
- complete -c pm -n '__pm_history_operation close-many' -l limit -d 'Limit matched item count' -r
2012
- complete -c pm -n '__pm_history_operation close-many' -l offset -d 'Skip first n matched rows' -r
2013
- complete -c pm -n '__pm_history_operation close-many' -l reason -d 'Optional shared close reason applied to every matched item' -r
2014
- complete -c pm -n '__pm_history_operation close-many' -l resolution -d 'Shared closure resolution' -r
2015
- complete -c pm -n '__pm_history_operation close-many' -l expected-result -d 'Shared expected-result note' -r
2016
- complete -c pm -n '__pm_history_operation close-many' -l actual-result -d 'Shared actual-result note' -r
2017
- complete -c pm -n '__pm_history_operation close-many' -l expected -d 'Short alias for --expected-result' -r
2018
- complete -c pm -n '__pm_history_operation close-many' -l actual -d 'Short alias for --actual-result' -r
2019
- complete -c pm -n '__pm_history_operation close-many' -l validate-close -d 'Validate closure metadata per item' -r -a 'off warn strict'
2020
- complete -c pm -n '__pm_history_operation close-many' -l author -d 'Mutation author' -r
2021
- complete -c pm -n '__pm_history_operation close-many' -l message -d 'History message' -r
2022
- complete -c pm -n '__pm_history_operation close-many' -l force -d 'Re-close terminal matches and override ownership'
2023
- complete -c pm -n '__pm_history_operation close-many' -l dry-run -d 'Preview matched items without mutating'
2024
- complete -c pm -n '__pm_history_operation close-many' -l rollback -d 'Rollback checkpoint ID' -r
2025
- complete -c pm -n '__pm_history_operation close-many' -l no-checkpoint -d 'Disable checkpoint creation during apply mode'
2026
-
2027
- # validate flags
2028
- complete -c pm -n '__pm_history_operation validate' -l check-completeness -d 'Check declarative required fields'
2029
- complete -c pm -n '__pm_history_operation validate' -l check-metadata -d 'Run metadata completeness checks'
2030
- complete -c pm -n '__pm_history_operation validate' -l metadata-profile -d 'Select metadata validation profile for --check-metadata' -r -a 'core strict custom'
2031
- complete -c pm -n '__pm_history_operation validate' -l check-resolution -d 'Run closed-item resolution metadata checks'
2032
- complete -c pm -n '__pm_history_operation validate' -l check-lifecycle -d 'Run active-item lifecycle governance drift checks'
2033
- complete -c pm -n '__pm_history_operation validate' -l check-stale-blockers -d 'Include stale blocker-pattern diagnostics in lifecycle checks'
2034
- complete -c pm -n '__pm_history_operation validate' -l dependency-cycle-severity -d 'Set dependency-cycle warning policy for lifecycle checks' -r -a 'off warn error'
2035
- complete -c pm -n '__pm_history_operation validate' -l parent-cycle-severity -d 'Set parent-hierarchy cycle warning policy for lifecycle checks' -r -a 'off warn error'
2036
- complete -c pm -n '__pm_history_operation validate' -l check-files -d 'Run linked-file and orphaned-file checks'
2037
- complete -c pm -n '__pm_history_operation validate' -l scan-mode -d 'Select file candidate scan mode for --check-files' -r -a 'default tracked-all tracked-all-strict'
2038
- complete -c pm -n '__pm_history_operation validate' -l include-pm-internals -d 'Include PM storage internals in tracked-all candidate scans'
2039
- complete -c pm -n '__pm_history_operation validate' -l verbose-file-lists -d 'Include full file-path lists for validate --check-files details'
2040
- complete -c pm -n '__pm_history_operation validate' -l verbose-diagnostics -d 'Include full validate diagnostic ID lists instead of compact summaries'
2041
- complete -c pm -n '__pm_history_operation validate' -l all-affected-ids -d 'Emit complete missing_* affected-ID lists with no truncation (implied by --json)'
2042
- complete -c pm -n '__pm_history_operation validate' -l strict-exit -d 'Return non-zero exit when validation warnings are present'
2043
- complete -c pm -n '__pm_history_operation validate' -l fail-on-warn -d 'Alias for --strict-exit'
2044
- complete -c pm -n '__pm_history_operation validate' -l fix-hints -d 'Add a machine-executable fix_hints[] of pm commands to each failing check'
2045
- complete -c pm -n '__pm_history_operation validate' -l auto-fix -d 'Apply the safe, deterministic subset of fix-hint remediations automatically'
2046
- complete -c pm -n '__pm_history_operation validate' -l dry-run -d 'Preview planned --auto-fix/--prune-missing fixes without applying them'
2047
- complete -c pm -n '__pm_history_operation validate' -l fix-scope -d 'Grant --auto-fix scopes (estimates/lifecycle must be named explicitly)' -r -a 'metadata resolution estimates lifecycle'
2048
- complete -c pm -n '__pm_history_operation validate' -l prune-missing -d 'Remove stale linked-file/doc links classified as deleted'
2049
- complete -c pm -n '__pm_history_operation validate' -l check-history-drift -d 'Run item/history hash drift checks'
2050
- complete -c pm -n '__pm_history_operation validate' -l check-command-references -d 'Run linked-command PM-ID reference checks'
2051
- complete -c pm -n '__fish_seen_subcommand_from init' -l preset -d 'Governance preset for new setups' -r -a 'minimal default strict'
2052
- complete -c pm -n '__fish_seen_subcommand_from init' -l id-prefix -d 'Set the item ID prefix' -r
2053
- complete -c pm -n '__fish_seen_subcommand_from init' -l prefix -d 'Alias for --id-prefix' -r
2054
- complete -c pm -n '__fish_seen_subcommand_from init' -l defaults -d 'Use non-interactive setup defaults'
2055
- complete -c pm -n '__fish_seen_subcommand_from init' -s y -l yes -d 'Alias for --defaults'
2056
- complete -c pm -n '__fish_seen_subcommand_from init' -l author -d 'Set the default mutation author for this project' -r
2057
- complete -c pm -n '__fish_seen_subcommand_from init' -l agent-guidance -d 'Agent guidance mode' -r -a 'ask add skip status'
2058
- complete -c pm -n '__fish_seen_subcommand_from init' -l type-preset -d 'Register domain item types' -r -a 'agile ops research'
2059
- complete -c pm -n '__fish_seen_subcommand_from init' -l with-packages -d 'Install bundled first-party packages during initialization'
2060
- complete -c pm -n '__fish_seen_subcommand_from init' -l verbose -d 'Include the full resolved settings tree in init output'
2061
- complete -c pm -n '__fish_seen_subcommand_from config' -l criterion -d 'Criteria value for definition-of-done metadata-required-fields or lifecycle pattern keys (repeatable for set)' -r
2062
- complete -c pm -n '__fish_seen_subcommand_from config' -l clear-criteria -d 'Clear config criteria-list key values'
2063
- complete -c pm -n '__fish_seen_subcommand_from config' -l format -d 'Item format for item-format key' -r -a 'toon'
2064
- complete -c pm -n '__fish_seen_subcommand_from config' -l policy -d 'Policy value for supported policy keys' -r
2065
- complete -c pm -n '__pm_history_operation health' -l strict-directories -d 'Treat optional item-type directories as required failures'
2066
- complete -c pm -n '__pm_history_operation health' -l check-only -d 'Run read-only health diagnostics without refreshing vectors'
2067
- complete -c pm -n '__pm_history_operation health' -l no-refresh -d 'Disable automatic vector refresh attempts during health checks'
2068
- complete -c pm -n '__pm_history_operation health' -l refresh-vectors -d 'Explicitly enable vector refresh attempts during health checks'
2069
- complete -c pm -n '__pm_history_operation health' -l verbose-stale-items -d 'Include full stale vectorization ID lists in health output'
2070
- complete -c pm -n '__pm_history_operation health' -l verbose-author-events -d 'Include complete actionable unknown-author coordinates'
2071
- complete -c pm -n '__pm_history_operation health' -l brief -d 'Emit compact health details for low-token agent checks'
2072
- complete -c pm -n '__pm_history_operation health' -l summary -d 'Emit one-line-style health status with check names and warning count'
2073
- complete -c pm -n '__pm_history_operation health' -l strict-exit -d 'Return non-zero exit when health warnings are present'
2074
- complete -c pm -n '__pm_history_operation health' -l fail-on-warn -d 'Alias for --strict-exit'
2075
-
2076
- # completion shell argument
2077
- complete -c pm -n '__fish_seen_subcommand_from completion' -l eager-tags -d 'Embed current tracker tags directly in script output'
2078
- complete -c pm -n '__fish_seen_subcommand_from completion' -a 'bash zsh fish' -d 'Shell type'
2079
-
2080
- # templates subcommands
2081
- complete -c pm -n '__fish_seen_subcommand_from templates' -a 'save list show' -d 'Templates command'
2082
-
2083
- # extension lifecycle flags
2084
- complete -c pm -n '__fish_seen_subcommand_from extension' -a '${EXTENSION_LIFECYCLE_ACTIONS}' -d 'Extension action subcommand'
2085
- complete -c pm -n '__fish_seen_subcommand_from extension' -l init -d 'Generate starter extension scaffold'
2086
- complete -c pm -n '__fish_seen_subcommand_from extension' -l scaffold -d 'Alias for --init'
2087
- complete -c pm -n '__fish_seen_subcommand_from extension' -l capability -d 'Capability the init scaffold targets' -r -a '${SCAFFOLD_CAPABILITIES.join(" ")}'
2088
- complete -c pm -n '__fish_seen_subcommand_from extension' -l install -d 'Install extension from local path or GitHub source'
2089
- complete -c pm -n '__fish_seen_subcommand_from extension' -l uninstall -d 'Uninstall extension by name'
2090
- complete -c pm -n '__fish_seen_subcommand_from extension' -l explore -d 'List discovered extensions for selected scope'
2091
- complete -c pm -n '__fish_seen_subcommand_from extension' -l manage -d 'List managed extensions with update metadata'
2092
- complete -c pm -n '__fish_seen_subcommand_from extension' -l describe -d 'Map every surface a loaded extension registers'
2093
- complete -c pm -n '__fish_seen_subcommand_from extension' -l markdown -d 'Render describe output as a Markdown reference document'
2094
- complete -c pm -n '__fish_seen_subcommand_from extension' -l output -d 'Write describe Markdown to a file' -r
2095
- complete -c pm -n '__fish_seen_subcommand_from extension' -l reload -d 'Reload extensions with cache-busted module imports'
2096
- complete -c pm -n '__fish_seen_subcommand_from extension' -l watch -d 'Enable watch mode with --reload'
2097
- complete -c pm -n '__fish_seen_subcommand_from extension' -l doctor -d 'Run consolidated extension diagnostics'
2098
- complete -c pm -n '__fish_seen_subcommand_from extension' -l catalog -d 'List bundled first-party package catalog entries'
2099
- complete -c pm -n '__fish_seen_subcommand_from extension' -l adopt -d 'Adopt an unmanaged extension into managed metadata'
2100
- complete -c pm -n '__fish_seen_subcommand_from extension' -l adopt-all -d 'Adopt all unmanaged extensions into managed metadata'
2101
- complete -c pm -n '__fish_seen_subcommand_from extension' -l activate -d 'Activate extension in selected scope settings'
2102
- complete -c pm -n '__fish_seen_subcommand_from extension' -l deactivate -d 'Deactivate extension in selected scope settings'
2103
- complete -c pm -n '__fish_seen_subcommand_from extension' -l project -d 'Use project extension scope'
2104
- complete -c pm -n '__fish_seen_subcommand_from extension' -l local -d 'Alias for --project'
2105
- complete -c pm -n '__fish_seen_subcommand_from extension' -l global -d 'Use global extension scope'
2106
- complete -c pm -n '__fish_seen_subcommand_from extension' -l gh -d 'GitHub shorthand owner/repo/path' -r
2107
- complete -c pm -n '__fish_seen_subcommand_from extension' -l github -d 'Alias for --gh' -r
2108
- complete -c pm -n '__fish_seen_subcommand_from extension' -l ref -d 'Git ref/branch/tag for GitHub source' -r
2109
- complete -c pm -n '__fish_seen_subcommand_from extension' -l detail -d 'Detail mode for extension diagnostics' -r -a 'summary deep'
2110
- complete -c pm -n '__fish_seen_subcommand_from extension' -l trace -d 'Include registration traces in doctor deep diagnostics'
2111
- complete -c pm -n '__fish_seen_subcommand_from extension' -l runtime-probe -d 'Opt-in runtime activation probe for manage output'
2112
- complete -c pm -n '__fish_seen_subcommand_from extension' -l fix-managed-state -d 'Adopt unmanaged extensions before diagnostics/update checks'
2113
- complete -c pm -n '__fish_seen_subcommand_from extension' -l isolated -d 'Run doctor against project-scope extensions only'
2114
- complete -c pm -n '__fish_seen_subcommand_from extension' -l ignore-global -d 'Alias for --isolated'
2115
- complete -c pm -n '__fish_seen_subcommand_from extension' -l strict-exit -d 'Return non-zero exit when doctor warnings are present'
2116
- complete -c pm -n '__fish_seen_subcommand_from extension' -l fail-on-warn -d 'Alias for --strict-exit (doctor)'
2117
-
2118
- # package lifecycle flags
2119
- for package_cmd in package packages
2120
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -a '${PACKAGE_LIFECYCLE_ACTIONS}' -d 'Package action subcommand'
2121
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l init -d 'Generate starter package scaffold'
2122
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l scaffold -d 'Alias for --init'
2123
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l capability -d 'Capability the init scaffold targets' -r -a '${SCAFFOLD_CAPABILITIES.join(" ")}'
2124
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l declarative -d 'Generate a composeExtension blueprint starter'
2125
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l install -d 'Install package from local path, GitHub source, npm source, or bundled alias'
2126
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l uninstall -d 'Uninstall package by name'
2127
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l explore -d 'List discovered packages for selected scope'
2128
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l manage -d 'List managed packages with update metadata'
2129
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l describe -d 'Map every surface a loaded package registers'
2130
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l markdown -d 'Render describe output as a Markdown reference document'
2131
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l output -d 'Write describe Markdown to a file' -r
2132
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l reload -d 'Reload packages with cache-busted module imports'
2133
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l watch -d 'Enable watch mode with --reload'
2134
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l doctor -d 'Run consolidated package diagnostics'
2135
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l catalog -d 'List bundled first-party package catalog entries'
2136
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l adopt -d 'Adopt an unmanaged package into managed metadata'
2137
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l adopt-all -d 'Adopt all unmanaged packages into managed metadata'
2138
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l activate -d 'Activate package in selected scope settings'
2139
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l deactivate -d 'Deactivate package in selected scope settings'
2140
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l project -d 'Use project package scope'
2141
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l local -d 'Alias for --project'
2142
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l global -d 'Use global package scope'
2143
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l gh -d 'GitHub shorthand owner/repo/path' -r
2144
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l github -d 'Alias for --gh' -r
2145
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l ref -d 'Git ref/branch/tag for GitHub source' -r
2146
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l detail -d 'Detail mode for package diagnostics' -r -a 'summary deep'
2147
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l trace -d 'Include registration traces in doctor deep diagnostics'
2148
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l runtime-probe -d 'Opt-in runtime activation probe for manage output'
2149
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l fix-managed-state -d 'Adopt unmanaged packages before diagnostics/update checks'
2150
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l isolated -d 'Run doctor against project-scope packages only'
2151
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l ignore-global -d 'Alias for --isolated'
2152
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l strict-exit -d 'Return non-zero exit when doctor warnings are present'
2153
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l fail-on-warn -d 'Alias for --strict-exit (doctor)'
2154
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l dry-run -d 'Plan upgrades without mutating'
2155
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l cli-only -d 'Upgrade only the pm CLI/SDK npm package'
2156
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l packages-only -d 'Upgrade only managed pm packages'
2157
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l repair -d 'Force npm global reinstall for the CLI/SDK'
2158
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l tag -d 'npm version or dist-tag for upgrades' -r
2159
- complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l package-name -d 'Override the CLI package name' -r
2160
- end`}const SETUP_HINTS={bash:'Add to ~/.bashrc or ~/.bash_profile: eval "$(pm completion bash)"',zsh:'Add to ~/.zshrc: eval "$(pm completion zsh)"',fish:"Run: pm completion fish > ~/.config/fish/completions/pm.fish"};function runCompletion(shell,itemTypes=[],tags=[],eagerTagExpansion=false,runtime={}){const normalized=shell.trim().toLowerCase();if(!VALID_SHELLS.includes(normalized)){throw new PmCliError(`Unknown shell: "${shell}". Supported shells: ${VALID_SHELLS.join(", ")}.`,EXIT_CODE.USAGE)}const validShell=normalized;let script;if(validShell==="bash"){script=generateBashScript(itemTypes,tags,eagerTagExpansion,runtime)}else if(validShell==="zsh"){script=generateZshScript(itemTypes,tags,eagerTagExpansion,runtime)}else{script=generateFishScript(itemTypes,tags,eagerTagExpansion,runtime)}return{shell:validShell,script,setup_hint:SETUP_HINTS[validShell]}}export{generateBashScript,generateFishScript,generateZshScript,runCompletion};
1
+ !(function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c1fb3981-3bae-5f63-861a-ee689a9ffd36")}catch(e2){}})();import{generateBashScript}from"./completion/bash.js";import{generateFishScript}from"./completion/fish.js";import{generateZshScript}from"./completion/zsh.js";import{EXIT_CODE,PmCliError}from"./runtime-primitives.js";const VALID_SHELLS=["bash","zsh","fish"];const SETUP_HINTS={bash:'Add to ~/.bashrc or ~/.bash_profile: eval "$(pm completion bash)"',zsh:'Add to ~/.zshrc: eval "$(pm completion zsh)"',fish:"Run: pm completion fish > ~/.config/fish/completions/pm.fish"};function runCompletion(shell,itemTypes=[],tags=[],eagerTagExpansion=false,runtime={}){const normalized=shell.trim().toLowerCase();if(!VALID_SHELLS.includes(normalized)){throw new PmCliError(`Unknown shell: "${shell}". Supported shells: ${VALID_SHELLS.join(", ")}.`,EXIT_CODE.USAGE)}const validShell=normalized;let script;if(validShell==="bash"){script=generateBashScript(itemTypes,tags,eagerTagExpansion,runtime)}else if(validShell==="zsh"){script=generateZshScript(itemTypes,tags,eagerTagExpansion,runtime)}else{script=generateFishScript(itemTypes,tags,eagerTagExpansion,runtime)}return{shell:validShell,script,setup_hint:SETUP_HINTS[validShell]}}import{generateBashScript as generateBashScript2}from"./completion/bash.js";import{generateFishScript as generateFishScript2}from"./completion/fish.js";import{generateZshScript as generateZshScript2}from"./completion/zsh.js";export{generateBashScript2 as generateBashScript,generateFishScript2 as generateFishScript,generateZshScript2 as generateZshScript,runCompletion};
2161
2
  //# sourceMappingURL=completion.js.map