@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
@@ -0,0 +1,1054 @@
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]="30266073-c2de-54c4-bdf7-8cf9d4cfb36b")}catch(e2){}})();import{PM_NAMESPACED_COMMAND_ALIASES}from"../cli-contracts.js";import{SCAFFOLD_CAPABILITIES}from"../extension/scaffold.js";import{ALL_COMMANDS,ATTEST_INVOCATIONS,COMMAND_COMPLETION_DESCRIPTIONS,EXTENSION_LIFECYCLE_ACTIONS,GLOBAL_COMPLETION_INLINE_PATTERNS,GLOBAL_COMPLETION_SWITCH_PATTERNS,GLOBAL_COMPLETION_VALUE_PATTERNS,GUIDE_TOPIC_CHOICES,HIDDEN_COMMAND_ALIASES,NAMESPACE_NOUNS,NAMESPACE_PREFIXES,PACKAGE_LIFECYCLE_ACTIONS,RESTORE_INVOCATIONS,SCHEMA_SUBCOMMAND_CHOICES,completionNamespaceLeaves,completionStatusValues,completionTypeValues,joinCompletionValues,normalizeRuntimeCompletionFlags}from"./shared.js";function escapeFishSource(value){return value.replaceAll("\\","\\\\").replaceAll("'","\\'")}function escapeFishChoices(value){return escapeFishSource(value.replace(/([^a-zA-Z0-9_:./\s-])/gu,"\\$1"))}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"]]);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 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 '${escapeFishSource(flag)}' -d 'Runtime schema field flag' -r`)}}return`${lines.join("\n")}
2
+ `}function renderFishDynamicChoiceResolver(kind,command,fallback){const envKind=kind.toUpperCase();const escapedFallback=escapeFishSource(fallback);return`
3
+ function __pm_${kind}_choices
4
+ set -l now (date +%s 2>/dev/null)
5
+ if test -z "$now"
6
+ set now 0
7
+ end
8
+ set -l ttl 120
9
+ if set -q PM_COMPLETION_${envKind}_TTL
10
+ set ttl $PM_COMPLETION_${envKind}_TTL
11
+ end
12
+ if set -q PM_COMPLETION_${envKind}_CACHE; and set -q PM_COMPLETION_${envKind}_CACHE_TS
13
+ set -l age (math "$now - $PM_COMPLETION_${envKind}_CACHE_TS")
14
+ if test $age -lt $ttl
15
+ printf '%s\\n' $PM_COMPLETION_${envKind}_CACHE
16
+ return
17
+ end
18
+ end
19
+ set -l resolved (pm ${command} 2>/dev/null)
20
+ if test (count $resolved) -eq 0
21
+ set resolved '${escapedFallback}'
22
+ end
23
+ set -gx PM_COMPLETION_${envKind}_CACHE $resolved
24
+ set -gx PM_COMPLETION_${envKind}_CACHE_TS $now
25
+ printf '%s\\n' $resolved
26
+ end
27
+ `}function renderFishDynamicTagResolver(useEagerTagExpansion){return useEagerTagExpansion?"":`
28
+ function __pm_tag_choices
29
+ set -l now (date +%s 2>/dev/null)
30
+ if test -z "$now"
31
+ set now 0
32
+ end
33
+ set -l ttl 120
34
+ if set -q PM_COMPLETION_TAG_TTL
35
+ set ttl $PM_COMPLETION_TAG_TTL
36
+ end
37
+ if set -q PM_COMPLETION_TAG_CACHE; and set -q PM_COMPLETION_TAG_CACHE_TS
38
+ set -l age (math "$now - $PM_COMPLETION_TAG_CACHE_TS")
39
+ if test $age -lt $ttl
40
+ printf '%s
41
+ ' $PM_COMPLETION_TAG_CACHE
42
+ return
43
+ end
44
+ end
45
+ set -l resolved (pm completion-tags 2>/dev/null)
46
+ set -gx PM_COMPLETION_TAG_CACHE $resolved
47
+ set -gx PM_COMPLETION_TAG_CACHE_TS $now
48
+ printf '%s
49
+ ' $resolved
50
+ end
51
+ `}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)":escapeFishChoices(typeFallbackChoices);const statusChoices="(__pm_status_choices)";const guideTopicChoices=GUIDE_TOPIC_CHOICES;const tagChoices=joinCompletionValues(tags);const useEagerTagExpansion=eagerTagExpansion||tags.length>0;const fishTagChoices=useEagerTagExpansion?`'${escapeFishChoices(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);return`# Fish shell completion for pm
52
+ # Save to ~/.config/fish/completions/pm.fish
53
+ # or run: pm completion fish > ~/.config/fish/completions/pm.fish
54
+
55
+ # Disable file completion by default
56
+ complete -c pm -f
57
+
58
+ # Global flags (available for all subcommands)
59
+ complete -c pm -l json -d 'Output JSON instead of TOON'
60
+ complete -c pm -l all -d 'Reveal every public command and compatibility alias'
61
+ complete -c pm -l quiet -d 'Suppress stdout output'
62
+ complete -c pm -l output-include -d 'Retain comma-separated read fields or sections' -r
63
+ complete -c pm -l output-limit -d 'Set the universal read row ceiling' -r
64
+ complete -c pm -l output-budget -d 'Set the universal estimated-token ceiling' -r
65
+ complete -c pm -l output-format -d 'Select the universal read encoding' -r -a 'toon json'
66
+ complete -c pm -l output-session -d 'Carry cross-call read budget and served-item state' -r
67
+ complete -c pm -l output-row-contract -d 'Include row schema metadata in read output'
68
+ complete -c pm -l no-changed-fields -d 'Omit changed_fields array from mutation output'
69
+ complete -c pm -l id-only -d 'Print only id and status for single-item mutation output'
70
+ complete -c pm -l pm-path -d 'Explicit tracker storage path for this command' -r
71
+ complete -c pm -l path -d 'Override PM path for this command' -r
72
+ complete -c pm -l no-extensions -d 'Disable extension loading'
73
+ complete -c pm -l profile -d 'Print deterministic timing diagnostics'
74
+ complete -c pm -s V -l version -d 'Output the version number'
75
+ complete -c pm -s h -l help -d 'Display help'
76
+
77
+ # Helper: true when no subcommand has been given yet
78
+ function __pm_no_subcommand
79
+ not __fish_seen_subcommand_from ${noSubcommandList}
80
+ end
81
+ ${renderFishDynamicTagResolver(useEagerTagExpansion)}
82
+ ${useDynamicTypeExpansion?renderFishDynamicChoiceResolver("type","completion-types",typeFallbackChoices):""}
83
+ ${renderFishDynamicChoiceResolver("status","completion-statuses",statusFallbackChoices)}
84
+
85
+ # Subcommands
86
+ ${renderFishCommandDescriptions()}
87
+
88
+ # list* flags
89
+ for list_cmd in ${listCmds}
90
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l status -d 'Filter by status' -r -a '${statusChoices}'
91
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l all -d 'Include every lifecycle status'
92
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l type -d 'Filter by item type' -r -a '${typeChoices}'
93
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l tag -d 'Filter by tag' -r -a ${fishTagChoices}
94
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l tags -d 'Alias for --tag' -r -a ${fishTagChoices}
95
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l priority -d 'Filter by priority' -r -a '0 1 2 3 4'
96
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l assignee -d 'Filter by assignee' -r
97
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l assignee-filter -d 'Filter assignee presence' -r -a 'assigned unassigned'
98
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l sprint -d 'Filter by sprint' -r
99
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l release -d 'Filter by release' -r
100
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l limit -d 'Limit returned item count' -r
101
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l offset -d 'Skip the first n matching rows before limit' -r
102
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l no-truncate -d 'Return every matched row, overriding --limit'
103
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l include-body -d 'Include item body in each returned list row'
104
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l compact -d 'Render compact list projection fields'
105
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l fields -d 'Render custom comma-separated list fields' -r
106
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l tree -d 'Render hierarchical subtree output rooted at --parent or top-level parents'
107
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l tree-depth -d 'Cap recursion depth for --tree (0 = root only)' -r
108
+ 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'
109
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l order -d 'Sort order (requires --sort)' -r -a 'asc desc'
110
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l stream -d 'Emit line-delimited JSON rows (requires --json)'
111
+ 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
112
+ 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
113
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l today -d 'Filter to items updated since local midnight today'
114
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l recent -d 'Filter to items updated in the last 7 days'
115
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l updated-after -d 'Filter by updated_at lower bound (ISO/relative)' -r
116
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l updated-before -d 'Filter by updated_at upper bound (ISO/relative)' -r
117
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l created-after -d 'Filter by created_at lower bound (ISO/relative)' -r
118
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l created-before -d 'Filter by created_at upper bound (ISO/relative)' -r
119
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l filter-reviewer-missing -d 'Select only items missing reviewer'
120
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l filter-risk-missing -d 'Select only items missing risk'
121
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l filter-confidence-missing -d 'Select only items missing confidence'
122
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l filter-sprint-missing -d 'Select only items missing sprint'
123
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l filter-release-missing -d 'Select only items missing release'
124
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l has-notes -d 'Select only items that have notes'
125
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l no-notes -d 'Select only items with no notes'
126
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l has-learnings -d 'Select only items that have learnings'
127
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l no-learnings -d 'Select only items with no learnings'
128
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l has-files -d 'Select only items that have linked files'
129
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l no-files -d 'Select only items with no linked files'
130
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l filter-files-missing -d 'Alias for --no-files'
131
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l has-docs -d 'Select only items that have linked docs'
132
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l no-docs -d 'Select only items with no linked docs'
133
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l filter-docs-missing -d 'Alias for --no-docs'
134
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l has-tests -d 'Select only items that have linked tests'
135
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l no-tests -d 'Select only items with no linked tests'
136
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l has-comments -d 'Select only items that have comments'
137
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l no-comments -d 'Select only items with no comments'
138
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l has-deps -d 'Select only items that have dependencies'
139
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l no-deps -d 'Select only items with no dependencies'
140
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l has-body -d 'Select only items with non-empty body'
141
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l empty-body -d 'Select only items with empty body'
142
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l has-linked-command -d 'Select only items that have a linked command'
143
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l no-linked-command -d 'Select only items with no linked command'
144
+ end
145
+ ${fishListRuntimeFieldFlags}
146
+
147
+ # aggregate flags
148
+ 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
149
+ complete -c pm -n '__fish_seen_subcommand_from aggregate' -l count -d 'Return grouped counts'
150
+ complete -c pm -n '__fish_seen_subcommand_from aggregate' -l completion -d 'Add completion counts and percentage per group'
151
+ complete -c pm -n '__fish_seen_subcommand_from aggregate' -l sum -d 'Numeric field to sum per group' -r
152
+ complete -c pm -n '__fish_seen_subcommand_from aggregate' -l avg -d 'Numeric field to average per group' -r
153
+ complete -c pm -n '__fish_seen_subcommand_from aggregate' -l include-unparented -d 'Include unparented rows when grouping by parent'
154
+ complete -c pm -n '__fish_seen_subcommand_from aggregate' -l status -d 'Filter by status' -r -a '${statusChoices}'
155
+ complete -c pm -n '__fish_seen_subcommand_from aggregate' -l type -d 'Filter by item type' -r -a '${typeChoices}'
156
+ complete -c pm -n '__fish_seen_subcommand_from aggregate' -l tag -d 'Filter by tag' -r -a ${fishTagChoices}
157
+ complete -c pm -n '__fish_seen_subcommand_from aggregate' -l priority -d 'Filter by priority' -r -a '0 1 2 3 4'
158
+ complete -c pm -n '__fish_seen_subcommand_from aggregate' -l deadline-before -d 'Filter by deadline upper bound (ISO/date string or relative)' -r
159
+ complete -c pm -n '__fish_seen_subcommand_from aggregate' -l deadline-after -d 'Filter by deadline lower bound (ISO/date string or relative)' -r
160
+ complete -c pm -n '__fish_seen_subcommand_from aggregate' -l assignee -d 'Filter by assignee' -r
161
+ complete -c pm -n '__fish_seen_subcommand_from aggregate' -l assignee-filter -d 'Filter assignee presence' -r -a 'assigned unassigned'
162
+ complete -c pm -n '__fish_seen_subcommand_from aggregate' -l parent -d 'Filter by parent item ID' -r
163
+ complete -c pm -n '__fish_seen_subcommand_from aggregate' -l sprint -d 'Filter by sprint' -r
164
+ complete -c pm -n '__fish_seen_subcommand_from aggregate' -l release -d 'Filter by release' -r
165
+
166
+
167
+ # create flags
168
+ complete -c pm -n '__fish_seen_subcommand_from create' -s t -l title -d 'Item title' -r
169
+ complete -c pm -n '__fish_seen_subcommand_from create' -s d -l description -d 'Item description' -r
170
+ complete -c pm -n '__fish_seen_subcommand_from create' -l type -d 'Item type' -r -a '${typeChoices}'
171
+ complete -c pm -n '__fish_seen_subcommand_from create' -l create-mode -d 'Create required-option policy mode' -r -a 'strict progressive'
172
+ complete -c pm -n '__fish_seen_subcommand_from create' -l schedule-preset -d 'Scheduling preset for Reminder/Meeting/Event' -r -a 'lightweight'
173
+ complete -c pm -n '__fish_seen_subcommand_from create' -s s -l status -d 'Item status' -r -a '${statusChoices}'
174
+ complete -c pm -n '__fish_seen_subcommand_from create' -s p -l priority -d 'Priority (0-4)' -r -a '0 1 2 3 4'
175
+ complete -c pm -n '__fish_seen_subcommand_from create' -l tags -d 'Comma-separated tags' -r
176
+ complete -c pm -n '__fish_seen_subcommand_from create' -l add-tags -d 'Add tags additively without replacing existing' -r
177
+ complete -c pm -n '__fish_seen_subcommand_from create' -s b -l body -d 'Item body' -r
178
+ complete -c pm -n '__fish_seen_subcommand_from create' -l body-file -d 'Load the item body from a file' -r -F
179
+ complete -c pm -n '__fish_seen_subcommand_from create' -l deadline -d 'Deadline (ISO/date string or relative +6h/+1d/+2w/+6m)' -r
180
+ complete -c pm -n '__fish_seen_subcommand_from create' -l estimate -d 'Estimated minutes' -r
181
+ complete -c pm -n '__fish_seen_subcommand_from create' -l acceptance-criteria -d 'Acceptance criteria' -r
182
+ 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
183
+ complete -c pm -n '__fish_seen_subcommand_from create' -l event -d 'Event entry start=<iso|relative>,end=<iso|relative>,recur_*' -r
184
+ complete -c pm -n '__fish_seen_subcommand_from create' -l type-option -d 'Type option key=value or key=<name>,value=<value>' -r
185
+ complete -c pm -n '__fish_seen_subcommand_from create' -l author -d 'Mutation author' -r
186
+ complete -c pm -n '__fish_seen_subcommand_from create' -l message -d 'History message' -r
187
+ complete -c pm -n '__fish_seen_subcommand_from create' -l assignee -d 'Assignee' -r
188
+ complete -c pm -n '__fish_seen_subcommand_from create' -l unset -d 'Clear scalar metadata field by name' -r
189
+ complete -c pm -n '__fish_seen_subcommand_from create' -l clear-deps -d 'Clear dependency entries'
190
+ complete -c pm -n '__fish_seen_subcommand_from create' -l clear-comments -d 'Clear comments'
191
+ complete -c pm -n '__fish_seen_subcommand_from create' -l clear-notes -d 'Clear notes'
192
+ complete -c pm -n '__fish_seen_subcommand_from create' -l clear-learnings -d 'Clear learnings'
193
+ complete -c pm -n '__fish_seen_subcommand_from create' -l clear-files -d 'Clear linked files'
194
+ complete -c pm -n '__fish_seen_subcommand_from create' -l clear-tests -d 'Clear linked tests'
195
+ complete -c pm -n '__fish_seen_subcommand_from create' -l clear-docs -d 'Clear linked docs'
196
+ complete -c pm -n '__fish_seen_subcommand_from create' -l clear-reminders -d 'Clear reminders'
197
+ complete -c pm -n '__fish_seen_subcommand_from create' -l clear-events -d 'Clear events'
198
+ complete -c pm -n '__fish_seen_subcommand_from create' -l clear-type-options -d 'Clear type options'
199
+ ${fishCreateRuntimeFieldFlags}
200
+
201
+ # copy flags
202
+ complete -c pm -n '__fish_seen_subcommand_from copy' -l title -d 'Override copied title' -r
203
+ complete -c pm -n '__fish_seen_subcommand_from copy' -l author -d 'Mutation author' -r
204
+ complete -c pm -n '__fish_seen_subcommand_from copy' -l message -d 'History message' -r
205
+ complete -c pm -n '__fish_seen_subcommand_from copy' -l force -d 'Force ownership override'
206
+
207
+ # focus flags
208
+ complete -c pm -n '__pm_history_operation focus' -l clear -d 'Clear the focused item'
209
+
210
+ # update flags
211
+ complete -c pm -n '__pm_history_operation update' -s t -l title -d 'Item title' -r
212
+ complete -c pm -n '__pm_history_operation update' -s d -l description -d 'Item description' -r
213
+ complete -c pm -n '__pm_history_operation update' -s b -l body -d 'Item body' -r
214
+ complete -c pm -n '__pm_history_operation update' -l body-file -d 'Load the item body from a file' -r -F
215
+ complete -c pm -n '__pm_history_operation update' -s s -l status -d 'Item status' -r -a '${statusChoices}'
216
+ complete -c pm -n '__pm_history_operation update' -l close-reason -d 'Set close reason' -r
217
+ complete -c pm -n '__pm_history_operation update' -s p -l priority -d 'Priority (0-4)' -r -a '0 1 2 3 4'
218
+ complete -c pm -n '__pm_history_operation update' -l type -d 'Item type' -r -a '${typeChoices}'
219
+ complete -c pm -n '__pm_history_operation update' -l add-tags -d 'Add tags additively without replacing existing' -r
220
+ complete -c pm -n '__pm_history_operation update' -l remove-tags -d 'Remove tags from the existing list' -r
221
+ complete -c pm -n '__pm_history_operation update' -l add-ac -d 'Add one acceptance criterion without replacing existing' -r
222
+ complete -c pm -n '__pm_history_operation update' -l remove-ac -d 'Remove one acceptance criterion by exact text' -r
223
+ complete -c pm -n '__pm_history_operation update' -l expected -d 'Short alias for --expected-result' -r
224
+ complete -c pm -n '__pm_history_operation update' -l actual -d 'Short alias for --actual-result' -r
225
+ complete -c pm -n '__pm_history_operation update' -l comment -d 'Comment seed author=<value>,created_at=<iso|now>,text=<value>' -r
226
+ complete -c pm -n '__pm_history_operation update' -l note -d 'Note seed author=<value>,created_at=<iso|now>,text=<value>' -r
227
+ complete -c pm -n '__pm_history_operation update' -l learning -d 'Learning seed author=<value>,created_at=<iso|now>,text=<value>' -r
228
+ complete -c pm -n '__pm_history_operation update' -l file -d 'Linked file path=<value>,scope=<project|global>,note=<text>' -r
229
+ complete -c pm -n '__pm_history_operation update' -l test -d 'Linked test command=<value>,path=<value>,scope=<project|global>' -r
230
+ complete -c pm -n '__pm_history_operation update' -l doc -d 'Linked doc path=<value>,scope=<project|global>,note=<text>' -r
231
+ complete -c pm -n '__pm_history_operation update' -l reminder -d 'Reminder entry at=<iso|relative>|date=<iso|relative>,text=<text>|title=<text>' -r
232
+ complete -c pm -n '__pm_history_operation update' -l event -d 'Event entry start=<iso|relative>,end=<iso|relative>,recur_*' -r
233
+ complete -c pm -n '__pm_history_operation update' -l type-option -d 'Type option key=value or key=<name>,value=<value>' -r
234
+ complete -c pm -n '__pm_history_operation update' -l unset -d 'Clear scalar metadata field by name' -r
235
+ complete -c pm -n '__pm_history_operation update' -l replace-deps -d 'Atomically replace dependencies with provided --dep values'
236
+ complete -c pm -n '__pm_history_operation update' -l replace-tests -d 'Atomically replace linked tests with provided --test values'
237
+ complete -c pm -n '__pm_history_operation update' -l replace-files -d 'Atomically replace linked files with provided --file values'
238
+ complete -c pm -n '__pm_history_operation update' -l replace-docs -d 'Atomically replace linked docs with provided --doc values'
239
+ complete -c pm -n '__pm_history_operation update' -l clear-deps -d 'Clear dependency entries'
240
+ complete -c pm -n '__pm_history_operation update' -l clear-comments -d 'Clear comments'
241
+ complete -c pm -n '__pm_history_operation update' -l clear-notes -d 'Clear notes'
242
+ complete -c pm -n '__pm_history_operation update' -l clear-learnings -d 'Clear learnings'
243
+ complete -c pm -n '__pm_history_operation update' -l clear-files -d 'Clear linked files'
244
+ complete -c pm -n '__pm_history_operation update' -l clear-tests -d 'Clear linked tests'
245
+ complete -c pm -n '__pm_history_operation update' -l clear-docs -d 'Clear linked docs'
246
+ complete -c pm -n '__pm_history_operation update' -l clear-reminders -d 'Clear reminders'
247
+ complete -c pm -n '__pm_history_operation update' -l clear-events -d 'Clear events'
248
+ complete -c pm -n '__pm_history_operation update' -l clear-type-options -d 'Clear type options'
249
+ complete -c pm -n '__pm_history_operation update' -l author -d 'Mutation author' -r
250
+ complete -c pm -n '__pm_history_operation update' -l message -d 'History message' -r
251
+ complete -c pm -n '__pm_history_operation update' -l force -d 'Force override'
252
+ ${fishUpdateRuntimeFieldFlags}
253
+
254
+ # update-many flags
255
+ complete -c pm -n '__pm_history_operation update-many' -l filter-status -d 'Filter by status before applying updates' -r -a '${statusChoices}'
256
+ complete -c pm -n '__pm_history_operation update-many' -l filter-type -d 'Filter by type before applying updates' -r -a '${typeChoices}'
257
+ complete -c pm -n '__pm_history_operation update-many' -l filter-tag -d 'Filter by tag before applying updates' -r -a ${fishTagChoices}
258
+ 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'
259
+ complete -c pm -n '__pm_history_operation update-many' -l filter-deadline-before -d 'Filter by deadline upper bound' -r
260
+ complete -c pm -n '__pm_history_operation update-many' -l filter-deadline-after -d 'Filter by deadline lower bound' -r
261
+ complete -c pm -n '__pm_history_operation update-many' -l filter-updated-after -d 'Filter by updated_at lower bound (ISO/relative)' -r
262
+ complete -c pm -n '__pm_history_operation update-many' -l filter-updated-before -d 'Filter by updated_at upper bound (ISO/relative)' -r
263
+ complete -c pm -n '__pm_history_operation update-many' -l filter-created-after -d 'Filter by created_at lower bound (ISO/relative)' -r
264
+ complete -c pm -n '__pm_history_operation update-many' -l filter-created-before -d 'Filter by created_at upper bound (ISO/relative)' -r
265
+ complete -c pm -n '__pm_history_operation update-many' -l filter-assignee -d 'Filter by assignee before applying updates' -r
266
+ complete -c pm -n '__pm_history_operation update-many' -l filter-assignee-filter -d 'Filter assignee presence' -r -a 'assigned unassigned'
267
+ complete -c pm -n '__pm_history_operation update-many' -l filter-parent -d 'Filter by parent item ID' -r
268
+ complete -c pm -n '__pm_history_operation update-many' -l filter-sprint -d 'Filter by sprint before applying updates' -r
269
+ complete -c pm -n '__pm_history_operation update-many' -l filter-release -d 'Filter by release before applying updates' -r
270
+ complete -c pm -n '__pm_history_operation update-many' -l filter-ac-missing -d 'Select only items missing acceptance_criteria'
271
+ complete -c pm -n '__pm_history_operation update-many' -l filter-estimates-missing -d 'Select only items missing estimated_minutes'
272
+ complete -c pm -n '__pm_history_operation update-many' -l filter-resolution-missing -d 'Select only terminal items missing resolution'
273
+ complete -c pm -n '__pm_history_operation update-many' -l filter-metadata-missing -d 'Select only items missing any tracked metadata'
274
+ complete -c pm -n '__pm_history_operation update-many' -l filter-reviewer-missing -d 'Select only items missing reviewer'
275
+ complete -c pm -n '__pm_history_operation update-many' -l filter-risk-missing -d 'Select only items missing risk'
276
+ complete -c pm -n '__pm_history_operation update-many' -l filter-confidence-missing -d 'Select only items missing confidence'
277
+ complete -c pm -n '__pm_history_operation update-many' -l filter-sprint-missing -d 'Select only items missing sprint'
278
+ complete -c pm -n '__pm_history_operation update-many' -l filter-release-missing -d 'Select only items missing release'
279
+ complete -c pm -n '__pm_history_operation update-many' -l filter-has-notes -d 'Select only items that have notes'
280
+ complete -c pm -n '__pm_history_operation update-many' -l filter-no-notes -d 'Select only items with no notes'
281
+ complete -c pm -n '__pm_history_operation update-many' -l filter-has-learnings -d 'Select only items that have learnings'
282
+ complete -c pm -n '__pm_history_operation update-many' -l filter-no-learnings -d 'Select only items with no learnings'
283
+ complete -c pm -n '__pm_history_operation update-many' -l filter-has-files -d 'Select only items that have linked files'
284
+ complete -c pm -n '__pm_history_operation update-many' -l filter-no-files -d 'Select only items with no linked files'
285
+ complete -c pm -n '__pm_history_operation update-many' -l filter-has-docs -d 'Select only items that have linked docs'
286
+ complete -c pm -n '__pm_history_operation update-many' -l filter-no-docs -d 'Select only items with no linked docs'
287
+ complete -c pm -n '__pm_history_operation update-many' -l filter-has-tests -d 'Select only items that have linked tests'
288
+ complete -c pm -n '__pm_history_operation update-many' -l filter-no-tests -d 'Select only items with no linked tests'
289
+ complete -c pm -n '__pm_history_operation update-many' -l filter-has-comments -d 'Select only items that have comments'
290
+ complete -c pm -n '__pm_history_operation update-many' -l filter-no-comments -d 'Select only items with no comments'
291
+ complete -c pm -n '__pm_history_operation update-many' -l filter-has-deps -d 'Select only items that have dependencies'
292
+ complete -c pm -n '__pm_history_operation update-many' -l filter-no-deps -d 'Select only items with no dependencies'
293
+ complete -c pm -n '__pm_history_operation update-many' -l filter-has-body -d 'Select only items with non-empty body'
294
+ complete -c pm -n '__pm_history_operation update-many' -l filter-empty-body -d 'Select only items with empty body'
295
+ complete -c pm -n '__pm_history_operation update-many' -l filter-has-linked-command -d 'Select only items that have a linked command'
296
+ complete -c pm -n '__pm_history_operation update-many' -l filter-no-linked-command -d 'Select only items with no linked command'
297
+ complete -c pm -n '__pm_history_operation update-many' -l ids -d 'Explicit comma-separated ID allowlist' -r
298
+ complete -c pm -n '__pm_history_operation update-many' -l limit -d 'Limit matched item count' -r
299
+ complete -c pm -n '__pm_history_operation update-many' -l offset -d 'Skip first n matched rows' -r
300
+ complete -c pm -n '__pm_history_operation update-many' -l dry-run -d 'Preview updates without mutating'
301
+ complete -c pm -n '__pm_history_operation update-many' -l rollback -d 'Rollback checkpoint ID' -r
302
+ complete -c pm -n '__pm_history_operation update-many' -l no-checkpoint -d 'Disable checkpoint creation during apply mode'
303
+ complete -c pm -n '__pm_history_operation update-many' -s t -l title -d 'Item title' -r
304
+ complete -c pm -n '__pm_history_operation update-many' -s d -l description -d 'Item description' -r
305
+ complete -c pm -n '__pm_history_operation update-many' -s b -l body -d 'Item body' -r
306
+ complete -c pm -n '__pm_history_operation update-many' -s p -l priority -d 'Priority (0-4)' -r -a '0 1 2 3 4'
307
+ complete -c pm -n '__pm_history_operation update-many' -l type -d 'Item type' -r -a '${typeChoices}'
308
+ complete -c pm -n '__pm_history_operation update-many' -l tags -d 'Comma-separated tags' -r
309
+ complete -c pm -n '__pm_history_operation update-many' -l add-tags -d 'Add tags additively without replacing existing' -r
310
+ complete -c pm -n '__pm_history_operation update-many' -l remove-tags -d 'Remove tags from the existing list' -r
311
+ complete -c pm -n '__pm_history_operation update-many' -l deadline -d 'Deadline (ISO/date string or relative)' -r
312
+ complete -c pm -n '__pm_history_operation update-many' -l estimate -d 'Estimated minutes' -r
313
+ complete -c pm -n '__pm_history_operation update-many' -l acceptance-criteria -d 'Acceptance criteria' -r
314
+ complete -c pm -n '__pm_history_operation update-many' -l add-ac -d 'Add one acceptance criterion without replacing existing' -r
315
+ complete -c pm -n '__pm_history_operation update-many' -l remove-ac -d 'Remove one acceptance criterion by exact text' -r
316
+ complete -c pm -n '__pm_history_operation update-many' -l definition-of-ready -d 'Definition of ready' -r
317
+ complete -c pm -n '__pm_history_operation update-many' -l order -d 'Planning order/rank' -r
318
+ complete -c pm -n '__pm_history_operation update-many' -l goal -d 'Goal identifier' -r
319
+ complete -c pm -n '__pm_history_operation update-many' -l objective -d 'Objective identifier' -r
320
+ complete -c pm -n '__pm_history_operation update-many' -l value -d 'Business value summary' -r
321
+ complete -c pm -n '__pm_history_operation update-many' -l impact -d 'Business impact summary' -r
322
+ complete -c pm -n '__pm_history_operation update-many' -l outcome -d 'Expected outcome summary' -r
323
+ complete -c pm -n '__pm_history_operation update-many' -l why-now -d 'Why-now rationale' -r
324
+ complete -c pm -n '__pm_history_operation update-many' -l reviewer -d 'Reviewer' -r
325
+ complete -c pm -n '__pm_history_operation update-many' -l risk -d 'Risk level' -r
326
+ complete -c pm -n '__pm_history_operation update-many' -l confidence -d 'Confidence level' -r
327
+ complete -c pm -n '__pm_history_operation update-many' -l sprint -d 'Sprint identifier' -r
328
+ complete -c pm -n '__pm_history_operation update-many' -l release -d 'Release identifier' -r
329
+ complete -c pm -n '__pm_history_operation update-many' -l reporter -d 'Issue reporter' -r
330
+ complete -c pm -n '__pm_history_operation update-many' -l severity -d 'Issue severity' -r
331
+ complete -c pm -n '__pm_history_operation update-many' -l environment -d 'Issue environment context' -r
332
+ complete -c pm -n '__pm_history_operation update-many' -l repro-steps -d 'Issue reproduction steps' -r
333
+ complete -c pm -n '__pm_history_operation update-many' -l resolution -d 'Issue resolution summary' -r
334
+ complete -c pm -n '__pm_history_operation update-many' -l expected-result -d 'Issue expected behavior' -r
335
+ complete -c pm -n '__pm_history_operation update-many' -l actual-result -d 'Issue observed behavior' -r
336
+ complete -c pm -n '__pm_history_operation update-many' -l expected -d 'Short alias for --expected-result' -r
337
+ complete -c pm -n '__pm_history_operation update-many' -l actual -d 'Short alias for --actual-result' -r
338
+ complete -c pm -n '__pm_history_operation update-many' -l affected-version -d 'Affected version identifier' -r
339
+ complete -c pm -n '__pm_history_operation update-many' -l fixed-version -d 'Fixed version identifier' -r
340
+ complete -c pm -n '__pm_history_operation update-many' -l component -d 'Issue component ownership' -r
341
+ complete -c pm -n '__pm_history_operation update-many' -l regression -d 'Regression marker true|false|1|0' -r
342
+ complete -c pm -n '__pm_history_operation update-many' -l customer-impact -d 'Customer impact summary' -r
343
+ complete -c pm -n '__pm_history_operation update-many' -l dep -d 'Dependency seed id=<id>,kind=<kind>,author=<author>,created_at=<timestamp>' -r
344
+ 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
345
+ complete -c pm -n '__pm_history_operation update-many' -l replace-deps -d 'Atomically replace dependencies with provided --dep values'
346
+ complete -c pm -n '__pm_history_operation update-many' -l replace-tests -d 'Atomically replace linked tests with provided --test values'
347
+ complete -c pm -n '__pm_history_operation update-many' -l replace-files -d 'Atomically replace linked files with provided --file values'
348
+ complete -c pm -n '__pm_history_operation update-many' -l replace-docs -d 'Atomically replace linked docs with provided --doc values'
349
+ complete -c pm -n '__pm_history_operation update-many' -l comment -d 'Comment seed author=<value>,created_at=<iso|now>,text=<value>' -r
350
+ complete -c pm -n '__pm_history_operation update-many' -l note -d 'Note seed author=<value>,created_at=<iso|now>,text=<value>' -r
351
+ complete -c pm -n '__pm_history_operation update-many' -l learning -d 'Learning seed author=<value>,created_at=<iso|now>,text=<value>' -r
352
+ complete -c pm -n '__pm_history_operation update-many' -l file -d 'Linked file path=<value>,scope=<project|global>,note=<text>' -r
353
+ complete -c pm -n '__pm_history_operation update-many' -l test -d 'Linked test command=<value>,path=<value>,scope=<project|global>' -r
354
+ complete -c pm -n '__pm_history_operation update-many' -l doc -d 'Linked doc path=<value>,scope=<project|global>,note=<text>' -r
355
+ 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
356
+ complete -c pm -n '__pm_history_operation update-many' -l event -d 'Event entry start=<iso|relative>,end=<iso|relative>,recur_*' -r
357
+ complete -c pm -n '__pm_history_operation update-many' -l type-option -d 'Type option key=value or key=<name>,value=<value>' -r
358
+ complete -c pm -n '__pm_history_operation update-many' -l unset -d 'Clear scalar metadata field by name' -r
359
+ complete -c pm -n '__pm_history_operation update-many' -l clear-deps -d 'Clear dependency entries'
360
+ complete -c pm -n '__pm_history_operation update-many' -l clear-comments -d 'Clear comments'
361
+ complete -c pm -n '__pm_history_operation update-many' -l clear-notes -d 'Clear notes'
362
+ complete -c pm -n '__pm_history_operation update-many' -l clear-learnings -d 'Clear learnings'
363
+ complete -c pm -n '__pm_history_operation update-many' -l clear-files -d 'Clear linked files'
364
+ complete -c pm -n '__pm_history_operation update-many' -l clear-tests -d 'Clear linked tests'
365
+ complete -c pm -n '__pm_history_operation update-many' -l clear-docs -d 'Clear linked docs'
366
+ complete -c pm -n '__pm_history_operation update-many' -l clear-reminders -d 'Clear reminders'
367
+ complete -c pm -n '__pm_history_operation update-many' -l clear-events -d 'Clear events'
368
+ complete -c pm -n '__pm_history_operation update-many' -l clear-type-options -d 'Clear type options'
369
+ complete -c pm -n '__pm_history_operation update-many' -l author -d 'Mutation author' -r
370
+ complete -c pm -n '__pm_history_operation update-many' -l message -d 'History message' -r
371
+ complete -c pm -n '__pm_history_operation update-many' -l force -d 'Force override'
372
+ ${fishUpdateManyRuntimeFieldFlags}
373
+
374
+ # files flags
375
+ complete -c pm -n '__fish_seen_subcommand_from files' -a 'discover lookup' -d 'Linked-file subcommand'
376
+ complete -c pm -n '__fish_seen_subcommand_from files' -l add -d 'Add a linked file' -r
377
+ complete -c pm -n '__fish_seen_subcommand_from files' -l add-glob -d 'Add linked files matching a glob' -r
378
+ complete -c pm -n '__fish_seen_subcommand_from files' -l remove -d 'Remove a linked file' -r
379
+ complete -c pm -n '__fish_seen_subcommand_from files' -l migrate -d 'Migrate linked-file metadata'
380
+ complete -c pm -n '__fish_seen_subcommand_from files' -l list -d 'List linked files'
381
+ complete -c pm -n '__fish_seen_subcommand_from files' -l apply -d 'Apply discovered linked files'
382
+ complete -c pm -n '__fish_seen_subcommand_from files' -l note -d 'Linked-file note' -r
383
+ complete -c pm -n '__fish_seen_subcommand_from files' -l append-stable -d 'Preserve stable append ordering'
384
+ complete -c pm -n '__fish_seen_subcommand_from files' -l validate-paths -d 'Validate linked-file paths'
385
+ complete -c pm -n '__fish_seen_subcommand_from files' -l scope -d 'Filter lookup by evidence scope' -r -a 'project global'
386
+ complete -c pm -n '__fish_seen_subcommand_from files' -l limit -d 'Maximum lookup matches' -r
387
+ complete -c pm -n '__fish_seen_subcommand_from files' -l offset -d 'Skip the first lookup matches' -r
388
+ complete -c pm -n '__fish_seen_subcommand_from files' -l no-truncate -d 'Return every lookup match'
389
+ complete -c pm -n '__fish_seen_subcommand_from files' -l strict-read -d 'Require authoritative source reads'
390
+ complete -c pm -n '__fish_seen_subcommand_from files' -l explain -d 'Include ranked source-to-work rationale'
391
+ complete -c pm -n '__fish_seen_subcommand_from files' -l lines -d 'Attribute an inclusive source line range' -r
392
+ complete -c pm -n '__fish_seen_subcommand_from files' -l decision-depth -d 'Maximum governing-decision relationship depth' -r
393
+
394
+
395
+ # search flags
396
+ complete -c pm -n '__fish_seen_subcommand_from search' -l mode -d 'Search mode' -r -a 'keyword semantic hybrid'
397
+ complete -c pm -n '__fish_seen_subcommand_from search' -l match-mode -d 'Token match mode' -r -a 'and or exact'
398
+ complete -c pm -n '__fish_seen_subcommand_from search' -l min-score -d 'Per-query minimum score threshold' -r
399
+ complete -c pm -n '__fish_seen_subcommand_from search' -l count -d 'Return only the match count'
400
+ complete -c pm -n '__fish_seen_subcommand_from search' -l include-linked -d 'Include linked content in scoring'
401
+ complete -c pm -n '__fish_seen_subcommand_from search' -l highlight -d 'Emit per-field matched-text snippets on each hit'
402
+ complete -c pm -n '__fish_seen_subcommand_from search' -l limit -d 'Max results' -r
403
+ complete -c pm -n '__fish_seen_subcommand_from search' -l status -d 'Filter by status (open/closed/canceled, csv)' -r -a '${statusChoices}'
404
+ complete -c pm -n '__fish_seen_subcommand_from search' -l type -d 'Filter by type' -r -a '${typeChoices}'
405
+ complete -c pm -n '__fish_seen_subcommand_from search' -l tag -d 'Filter by tag' -r -a ${fishTagChoices}
406
+ complete -c pm -n '__fish_seen_subcommand_from search' -l tags -d 'Alias for --tag' -r -a ${fishTagChoices}
407
+ complete -c pm -n '__fish_seen_subcommand_from search' -l priority -d 'Filter by priority' -r -a '0 1 2 3 4'
408
+ complete -c pm -n '__fish_seen_subcommand_from search' -l updated-after -d 'Filter by updated_at lower bound' -r
409
+ complete -c pm -n '__fish_seen_subcommand_from search' -l updated-before -d 'Filter by updated_at upper bound' -r
410
+ complete -c pm -n '__fish_seen_subcommand_from search' -l created-after -d 'Filter by created_at lower bound' -r
411
+ complete -c pm -n '__fish_seen_subcommand_from search' -l created-before -d 'Filter by created_at upper bound' -r
412
+ complete -c pm -n '__fish_seen_subcommand_from search' -l assignee -d 'Filter by assignee' -r
413
+ complete -c pm -n '__fish_seen_subcommand_from search' -l sprint -d 'Filter by sprint' -r
414
+ complete -c pm -n '__fish_seen_subcommand_from search' -l release -d 'Filter by release' -r
415
+ complete -c pm -n '__fish_seen_subcommand_from search' -l parent -d 'Filter by parent item ID' -r
416
+ complete -c pm -n '__fish_seen_subcommand_from search' -l filter-reviewer-missing -d 'Select only items missing reviewer'
417
+ complete -c pm -n '__fish_seen_subcommand_from search' -l filter-risk-missing -d 'Select only items missing risk'
418
+ complete -c pm -n '__fish_seen_subcommand_from search' -l filter-confidence-missing -d 'Select only items missing confidence'
419
+ complete -c pm -n '__fish_seen_subcommand_from search' -l filter-sprint-missing -d 'Select only items missing sprint'
420
+ complete -c pm -n '__fish_seen_subcommand_from search' -l filter-release-missing -d 'Select only items missing release'
421
+ complete -c pm -n '__fish_seen_subcommand_from search' -l has-notes -d 'Select only items that have notes'
422
+ complete -c pm -n '__fish_seen_subcommand_from search' -l no-notes -d 'Select only items with no notes'
423
+ complete -c pm -n '__fish_seen_subcommand_from search' -l has-learnings -d 'Select only items that have learnings'
424
+ complete -c pm -n '__fish_seen_subcommand_from search' -l no-learnings -d 'Select only items with no learnings'
425
+ complete -c pm -n '__fish_seen_subcommand_from search' -l has-files -d 'Select only items that have linked files'
426
+ complete -c pm -n '__fish_seen_subcommand_from search' -l no-files -d 'Select only items with no linked files'
427
+ complete -c pm -n '__fish_seen_subcommand_from search' -l filter-files-missing -d 'Alias for --no-files'
428
+ complete -c pm -n '__fish_seen_subcommand_from search' -l has-docs -d 'Select only items that have linked docs'
429
+ complete -c pm -n '__fish_seen_subcommand_from search' -l no-docs -d 'Select only items with no linked docs'
430
+ complete -c pm -n '__fish_seen_subcommand_from search' -l filter-docs-missing -d 'Alias for --no-docs'
431
+ complete -c pm -n '__fish_seen_subcommand_from search' -l has-tests -d 'Select only items that have linked tests'
432
+ complete -c pm -n '__fish_seen_subcommand_from search' -l no-tests -d 'Select only items with no linked tests'
433
+ complete -c pm -n '__fish_seen_subcommand_from search' -l has-comments -d 'Select only items that have comments'
434
+ complete -c pm -n '__fish_seen_subcommand_from search' -l no-comments -d 'Select only items with no comments'
435
+ complete -c pm -n '__fish_seen_subcommand_from search' -l has-deps -d 'Select only items that have dependencies'
436
+ complete -c pm -n '__fish_seen_subcommand_from search' -l no-deps -d 'Select only items with no dependencies'
437
+ complete -c pm -n '__fish_seen_subcommand_from search' -l has-body -d 'Select only items with non-empty body'
438
+ complete -c pm -n '__fish_seen_subcommand_from search' -l empty-body -d 'Select only items with empty body'
439
+ complete -c pm -n '__fish_seen_subcommand_from search' -l has-linked-command -d 'Select only items that have a linked command'
440
+ complete -c pm -n '__fish_seen_subcommand_from search' -l no-linked-command -d 'Select only items with no linked command'
441
+ ${fishSearchRuntimeFieldFlags}
442
+
443
+ # calendar flags
444
+ complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l view -d 'Calendar view' -r -a 'agenda day week month'
445
+ complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l date -d 'Anchor date/time (ISO/date string or relative)' -r
446
+ complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l from -d 'Agenda lower bound (ISO/date string or relative)' -r
447
+ complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l to -d 'Agenda upper bound (ISO/date string or relative)' -r
448
+ complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l past -d 'Include past entries'
449
+ complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l full-period -d 'Include full anchored day/week/month period'
450
+ complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l type -d 'Filter by type' -r -a '${typeChoices}'
451
+ complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l tag -d 'Filter by tag' -r -a ${fishTagChoices}
452
+ complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l priority -d 'Filter by priority' -r -a '0 1 2 3 4'
453
+ complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l status -d 'Filter by status' -r -a '${statusChoices}'
454
+ complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l assignee -d 'Filter by assignee' -r
455
+ complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l assignee-filter -d 'Filter assignee presence' -r -a 'assigned unassigned'
456
+ complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l sprint -d 'Filter by sprint' -r
457
+ complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l release -d 'Filter by release' -r
458
+ complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l include -d 'Include event sources' -r -a 'all deadlines reminders events scheduled'
459
+ complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l recurrence-lookahead-days -d 'Bound open-ended recurrence lookahead' -r
460
+ complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l recurrence-lookback-days -d 'Bound open-ended recurrence lookback' -r
461
+ complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l occurrence-limit -d 'Cap occurrences per recurring event' -r
462
+ complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l limit -d 'Limit returned events' -r
463
+ complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l format -d 'Output override' -r -a 'markdown toon json'
464
+ ${fishCalendarRuntimeFieldFlags}
465
+
466
+ # context flags
467
+ complete -c pm -n '__pm_history_operation context' -l date -d 'Anchor date/time (ISO/date string or relative)' -r
468
+ complete -c pm -n '__pm_history_operation context' -l from -d 'Agenda lower bound (ISO/date string or relative)' -r
469
+ complete -c pm -n '__pm_history_operation context' -l to -d 'Agenda upper bound (ISO/date string or relative)' -r
470
+ complete -c pm -n '__pm_history_operation context' -l past -d 'Include past entries in bounded windows'
471
+ complete -c pm -n '__pm_history_operation context' -l type -d 'Filter by type' -r -a '${typeChoices}'
472
+ complete -c pm -n '__pm_history_operation context' -l tag -d 'Filter by tag' -r -a ${fishTagChoices}
473
+ complete -c pm -n '__pm_history_operation context' -l priority -d 'Filter by priority' -r -a '0 1 2 3 4'
474
+ complete -c pm -n '__pm_history_operation context' -l assignee -d 'Filter by assignee' -r
475
+ complete -c pm -n '__pm_history_operation context' -l assignee-filter -d 'Filter assignee presence' -r -a 'assigned unassigned'
476
+ complete -c pm -n '__pm_history_operation context' -l sprint -d 'Filter by sprint' -r
477
+ complete -c pm -n '__pm_history_operation context' -l release -d 'Filter by release' -r
478
+ complete -c pm -n '__pm_history_operation context' -l parent -d 'Scope snapshot to one item subtree' -r
479
+ complete -c pm -n '__pm_history_operation context' -l limit -d 'Limit focus and agenda rows per section' -r
480
+ complete -c pm -n '__pm_history_operation context' -l depth -d 'Context depth' -r -a 'brief standard deep full'
481
+ complete -c pm -n '__pm_history_operation context' -l format -d 'Output override' -r -a 'markdown toon json'
482
+ ${fishContextRuntimeFieldFlags}
483
+
484
+ # next flags
485
+ complete -c pm -n '__pm_history_operation next' -l type -d 'Filter candidates by type' -r -a '${typeChoices}'
486
+ complete -c pm -n '__pm_history_operation next' -l tag -d 'Filter candidates by tag' -r -a ${fishTagChoices}
487
+ complete -c pm -n '__pm_history_operation next' -l priority -d 'Filter candidates by priority' -r -a '0 1 2 3 4'
488
+ complete -c pm -n '__pm_history_operation next' -l assignee -d 'Filter candidates by assignee' -r
489
+ complete -c pm -n '__pm_history_operation next' -l assignee-filter -d 'Filter assignee presence' -r -a 'assigned unassigned'
490
+ complete -c pm -n '__pm_history_operation next' -l sprint -d 'Filter candidates by sprint' -r
491
+ complete -c pm -n '__pm_history_operation next' -l release -d 'Filter candidates by release' -r
492
+ complete -c pm -n '__pm_history_operation next' -l parent -d 'Scope to one item subtree' -r
493
+ complete -c pm -n '__pm_history_operation next' -l limit -d 'Limit ready rows' -r
494
+ complete -c pm -n '__pm_history_operation next' -l blocked-limit -d 'Limit blocked rows' -r
495
+ complete -c pm -n '__pm_history_operation next' -l ready-only -d 'Omit the blocked companion list'
496
+ complete -c pm -n '__pm_history_operation next' -l format -d 'Output override' -r -a 'markdown toon json'
497
+
498
+ # guide flags
499
+ complete -c pm -n '__fish_seen_subcommand_from guide' -l list -d 'Show guide topic index'
500
+ complete -c pm -n '__fish_seen_subcommand_from guide' -l format -d 'Output override' -r -a 'markdown toon json'
501
+ complete -c pm -n '__fish_seen_subcommand_from guide' -l depth -d 'Guide detail depth' -r -a 'brief standard deep'
502
+ complete -c pm -n '__fish_seen_subcommand_from guide' -a '${guideTopicChoices}' -d 'Guide topic'
503
+
504
+ # reindex flags
505
+ complete -c pm -n '__pm_history_operation reindex' -l mode -d 'Reindex mode' -r -a 'keyword semantic hybrid'
506
+ complete -c pm -n '__pm_history_operation reindex' -l progress -d 'Emit progress updates to stderr'
507
+
508
+ # get flags
509
+ complete -c pm -n '__fish_seen_subcommand_from get' -l depth -d 'Detail depth' -r -a 'brief standard deep full'
510
+ complete -c pm -n '__fish_seen_subcommand_from get' -l full -d 'Explicit full item read'
511
+ complete -c pm -n '__fish_seen_subcommand_from get' -l fields -d 'Render custom comma-separated item fields' -r
512
+ complete -c pm -n '__fish_seen_subcommand_from get' -l tree -d 'Include descendant subtree in result payload'
513
+ complete -c pm -n '__fish_seen_subcommand_from get' -l tree-depth -d 'Cap subtree depth for --tree (0 = root only)' -r
514
+
515
+ # Read the first command positions after consuming recognized global options.
516
+ function __pm_history_tokens
517
+ set -l tokens (commandline -opc)
518
+ set -l skip_value 0
519
+ set -l positions 0
520
+ set -l command_path
521
+ for token in $tokens[2..-1]
522
+ if test $skip_value -eq 1
523
+ set skip_value 0
524
+ continue
525
+ end
526
+ switch (string replace -a _ - -- "$token")
527
+ case ${GLOBAL_COMPLETION_VALUE_PATTERNS.replaceAll("|"," ")}
528
+ set skip_value 1
529
+ continue
530
+ case ${GLOBAL_COMPLETION_INLINE_PATTERNS.split("|").map(pattern=>`'${pattern}'`).join(" ")} ${GLOBAL_COMPLETION_SWITCH_PATTERNS.replaceAll("|"," ")}
531
+ continue
532
+ case --
533
+ printf '%s\\n' --
534
+ return
535
+ end
536
+ if test $positions -eq 0; and test "$token" = ctx
537
+ set token context
538
+ end
539
+ printf '%s\\n' "$token"
540
+ set positions (math $positions + 1)
541
+ set -a command_path "$token"
542
+ if not contains -- (string join ' ' -- $command_path) ${NAMESPACE_PREFIXES.map(prefix=>`'${prefix}'`).join(" ")}
543
+ return
544
+ end
545
+ end
546
+ if test $skip_value -eq 1
547
+ printf '%s\\n' --value
548
+ end
549
+ end
550
+
551
+ # Match only the command positions, keeping item history separate from maintenance.
552
+ function __pm_history_operation
553
+ set -l tokens (__pm_history_tokens)
554
+ switch (string join ' ' -- $tokens)
555
+ ${[...PM_NAMESPACED_COMMAND_ALIASES].sort((left,right)=>right.canonical_argv.length-left.canonical_argv.length).map(entry=>` case '${entry.canonical}' '${entry.canonical} *'
556
+ contains -- '${entry.alias}' $argv
557
+ return`).join("\n")}
558
+ end
559
+ contains -- "$tokens[1]" $argv
560
+ end
561
+ ${Object.entries(namespaceLeaves).map(([noun,leaves])=>`complete -c pm -n 'test (string join " " -- (__pm_history_tokens)) = "${noun}"' -a '${leaves}' -d '${noun} operation'`).join("\n")}
562
+ ${RESTORE_INVOCATIONS.map(flag=>`complete -c pm -n '__pm_history_operation restore restore' -l ${flag.flag.slice(2)}${flag.takes_value?" -r":""}`).join("\n")}
563
+
564
+ ${ATTEST_INVOCATIONS.map(flag=>`complete -c pm -n '__pm_history_operation history-attest' -l ${flag.flag.slice(2)}${flag.takes_value?" -r":""}`).join("\n")}
565
+
566
+ # history / activity flags
567
+ complete -c pm -n '__pm_history_operation history' -l limit -d 'Max history entries' -r
568
+ complete -c pm -n '__pm_history_operation history' -l compact -d 'Condensed history projection'
569
+ complete -c pm -n '__pm_history_operation history' -l full -d 'Show full history entries'
570
+ complete -c pm -n '__pm_history_operation history' -l provenance -d 'Patch-free identity and agent provenance projection'
571
+ complete -c pm -n '__pm_history_operation history' -l provenance-summary -d 'Include bounded provenance completeness counts'
572
+ complete -c pm -n '__pm_history_operation history' -l harness -d 'Filter by recorded or vocabulary-resolved harness' -r
573
+ complete -c pm -n '__pm_history_operation history' -l agent-instance -d 'Filter by privacy-safe agent instance' -r
574
+ complete -c pm -n '__pm_history_operation history' -l provenance-filter -d 'Filter by exact declared provenance value' -r
575
+ complete -c pm -n '__pm_history_operation history' -l diff -d 'Include per-entry field-level before/after value diffs'
576
+ complete -c pm -n '__pm_history_operation history' -l field -d 'With --diff, show only entries that changed this field' -r
577
+ complete -c pm -n '__pm_history_operation history' -l verify -d 'Verify history hash chain and replay integrity'
578
+ complete -c pm -n '__pm_history_operation events' -l since -d 'Resume after a cursor or from an ISO timestamp' -r
579
+ complete -c pm -n '__pm_history_operation events' -l type -d 'Filter by mutation operation' -r
580
+ complete -c pm -n '__pm_history_operation events' -l author -d 'Filter by mutation author' -r
581
+ complete -c pm -n '__pm_history_operation events' -l item -d 'Filter by item or workspace stream' -r
582
+ complete -c pm -n '__pm_history_operation events' -l limit -d 'Maximum events, up to 1000' -r
583
+ complete -c pm -n '__pm_history_operation events' -l full -d 'Include complete authoritative history entries'
584
+ complete -c pm -n '__pm_history_operation events' -l provenance -d 'Include patch-free identity and agent provenance'
585
+ complete -c pm -n '__pm_history_operation events' -l provenance-summary -d 'Include bounded provenance completeness counts'
586
+ complete -c pm -n '__pm_history_operation events' -l harness -d 'Filter by recorded or vocabulary-resolved harness' -r
587
+ complete -c pm -n '__pm_history_operation events' -l agent-instance -d 'Filter by privacy-safe agent instance' -r
588
+ complete -c pm -n '__pm_history_operation events' -l provenance-filter -d 'Filter by exact declared provenance value' -r
589
+ complete -c pm -n '__pm_history_operation events' -l follow -d 'Continue emitting committed events'
590
+ complete -c pm -n '__pm_history_operation events' -l interval-ms -d 'Empty-read delay while following' -r
591
+ complete -c pm -n '__pm_history_operation history-compact compact' -l before -d 'Compact entries strictly before this version number or ISO timestamp' -r
592
+ complete -c pm -n '__pm_history_operation history-compact compact' -l id -d 'Item ID (alternative to positional ID)' -r
593
+ complete -c pm -n '__pm_history_operation history-compact compact' -l ids -d 'Bulk: compact an explicit comma-separated list of item ids' -r
594
+ complete -c pm -n '__pm_history_operation history-compact compact' -l all-over -d 'Bulk: compact every stream with more than N entries' -r
595
+ complete -c pm -n '__pm_history_operation history-compact compact' -l closed -d 'Bulk: compact only closed (terminal) items streams'
596
+ complete -c pm -n '__pm_history_operation history-compact compact' -l all-streams -d 'Bulk: compact every history stream regardless of lifecycle state'
597
+ complete -c pm -n '__pm_history_operation history-compact compact' -l min-entries -d 'Bulk: skip streams with at most N entries' -r
598
+ complete -c pm -n '__pm_history_operation history-compact compact' -l dry-run -d 'Preview compaction impact without writing the history file'
599
+ complete -c pm -n '__pm_history_operation history-compact compact' -l author -d 'Mutation author' -r
600
+ complete -c pm -n '__pm_history_operation history-compact compact' -l message -d 'Audit history message' -r
601
+ complete -c pm -n '__pm_history_operation history-compact compact' -l force -d 'Force ownership/lock override'
602
+ complete -c pm -n '__fish_seen_subcommand_from history-author-acknowledge' -l event -d 'Actionable unknown-author event' -r
603
+ complete -c pm -n '__fish_seen_subcommand_from history-author-acknowledge' -l all-actionable -d 'Select every currently actionable event'
604
+ complete -c pm -n '__fish_seen_subcommand_from history-author-acknowledge' -l dry-run -d 'Preview a deterministic source-bound plan'
605
+ complete -c pm -n '__fish_seen_subcommand_from history-author-acknowledge' -l plan-fingerprint -d 'Apply the exact dry-run plan' -r
606
+ complete -c pm -n '__fish_seen_subcommand_from history-author-acknowledge' -l limit -d 'Maximum coordinate rows returned in the plan' -r
607
+ complete -c pm -n '__fish_seen_subcommand_from history-author-acknowledge' -l attributed-author -d 'Principal attributed by maintainer review' -r
608
+ complete -c pm -n '__fish_seen_subcommand_from history-author-acknowledge' -l reviewer -d 'Reviewer recording the disposition' -r
609
+ complete -c pm -n '__fish_seen_subcommand_from history-author-acknowledge' -l reason -d 'Evidence-backed review rationale' -r
610
+ complete -c pm -n '__pm_history_operation history-redact redact' -l literal -d 'Literal string matcher to redact from history/item payloads' -r
611
+ complete -c pm -n '__pm_history_operation history-redact redact' -l id -d 'Item ID (alternative to positional ID)' -r
612
+ complete -c pm -n '__pm_history_operation history-redact redact' -l regex -d 'Regex matcher to redact (/pattern/flags or raw pattern)' -r
613
+ complete -c pm -n '__pm_history_operation history-redact redact' -l replacement -d 'Replacement text (defaults to [redacted])' -r
614
+ complete -c pm -n '__pm_history_operation history-redact redact' -l dry-run -d 'Preview redaction impact without writing files'
615
+ complete -c pm -n '__pm_history_operation history-redact redact' -l author -d 'Mutation author' -r
616
+ complete -c pm -n '__pm_history_operation history-redact redact' -l message -d 'Audit history message' -r
617
+ complete -c pm -n '__pm_history_operation history-redact redact' -l force -d 'Force ownership/lock override'
618
+ complete -c pm -n '__pm_history_operation history-repair repair' -l salvage-tail -d 'Recover an invalid suffix after a verified prefix'
619
+ complete -c pm -n '__pm_history_operation history-repair repair' -l id -d 'Item ID (alternative to positional ID)' -r
620
+ complete -c pm -n '__pm_history_operation history-repair repair' -l normalize-provenance -d 'Remove invalid provenance with aggregate evidence'
621
+ complete -c pm -n '__pm_history_operation history-repair repair' -l all -d 'Repair every drifted stream in one audited pass'
622
+ complete -c pm -n '__pm_history_operation history-repair repair' -l dry-run -d 'Preview the re-anchor impact without writing the history file'
623
+ complete -c pm -n '__pm_history_operation history-repair repair' -l author -d 'Mutation author' -r
624
+ complete -c pm -n '__pm_history_operation history-repair repair' -l message -d 'Audit history message' -r
625
+ complete -c pm -n '__pm_history_operation history-repair repair' -l force -d 'Force ownership/lock override'
626
+ complete -c pm -n '__fish_seen_subcommand_from schema' -a '${SCHEMA_SUBCOMMAND_CHOICES}' -d 'Schema subcommand'
627
+ complete -c pm -n '__fish_seen_subcommand_from schema; and __fish_seen_subcommand_from policy-mode' -a 'advise refuse' -d 'Policy enforcement'
628
+ complete -c pm -n '__fish_seen_subcommand_from schema' -l definition -d 'Policy definition or proposed fields JSON' -r
629
+ complete -c pm -n '__fish_seen_subcommand_from schema' -l policy -d 'Approval policy id' -r
630
+ complete -c pm -n '__fish_seen_subcommand_from schema' -l message -d 'History rationale' -r
631
+ complete -c pm -n '__fish_seen_subcommand_from schema' -l dry-run -d 'Preview schema changes'
632
+ complete -c pm -n '__fish_seen_subcommand_from schema' -l description -d 'Human description for the custom item type, status, or field' -r
633
+ complete -c pm -n '__fish_seen_subcommand_from schema' -l default-status -d 'Default status hint for the custom item type' -r
634
+ complete -c pm -n '__fish_seen_subcommand_from schema' -l folder -d 'Storage folder for items of this custom type' -r
635
+ complete -c pm -n '__fish_seen_subcommand_from schema' -l alias -d 'Alias for the custom type, status, or field flag (repeatable)' -r
636
+ complete -c pm -n '__fish_seen_subcommand_from schema' -l role -d 'Lifecycle role for a custom status (repeatable)' -r
637
+ complete -c pm -n '__fish_seen_subcommand_from schema' -l order -d 'Display/sort order for a custom status' -r
638
+ 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'
639
+ complete -c pm -n '__fish_seen_subcommand_from schema' -l commands -d 'Commands a custom field is wired onto (repeatable)' -r
640
+ complete -c pm -n '__fish_seen_subcommand_from schema' -l cli-flag -d 'Override the auto-derived CLI flag for a custom field' -r
641
+ complete -c pm -n '__fish_seen_subcommand_from schema' -l required -d 'Mark a custom field as always required'
642
+ complete -c pm -n '__fish_seen_subcommand_from schema' -l required-on-create -d 'Mark a custom field as required at create time'
643
+ complete -c pm -n '__fish_seen_subcommand_from schema' -l no-allow-unset -d 'Disallow clearing a custom field via --unset'
644
+ complete -c pm -n '__fish_seen_subcommand_from schema' -l required-types -d 'Restrict a custom field requirement to specific item types (repeatable)' -r
645
+ complete -c pm -n '__fish_seen_subcommand_from schema' -l infer -d 'Infer item types from title-prefix conventions (add-type)'
646
+ complete -c pm -n '__fish_seen_subcommand_from schema' -l min-count -d 'Minimum items sharing a prefix for --infer' -r
647
+ complete -c pm -n '__fish_seen_subcommand_from schema' -l apply -d 'Register inferred types (with --infer)'
648
+ complete -c pm -n '__fish_seen_subcommand_from schema' -l author -d 'Mutation author' -r
649
+ complete -c pm -n '__fish_seen_subcommand_from schema' -l force -d 'Force ownership/lock override'
650
+ complete -c pm -n '__fish_seen_subcommand_from profile' -a 'list show apply lint' -d 'Profile subcommand'
651
+ complete -c pm -n '__fish_seen_subcommand_from profile' -a 'agile ops research' -d 'Profile name'
652
+ complete -c pm -n '__fish_seen_subcommand_from profile' -l dry-run -d 'Preview the apply diff without writing any files'
653
+ complete -c pm -n '__fish_seen_subcommand_from profile' -l author -d 'Mutation author' -r
654
+ complete -c pm -n '__fish_seen_subcommand_from profile' -l force -d 'Force ownership/lock override'
655
+ 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'
656
+ complete -c pm -n '__fish_seen_subcommand_from plan' -l title -d 'Plan title' -r
657
+ complete -c pm -n '__fish_seen_subcommand_from plan' -l scope -d 'Plan scope statement' -r
658
+ complete -c pm -n '__fish_seen_subcommand_from plan' -l harness -d 'Plan harness provenance' -r -a 'codex claude-code cursor generic'
659
+ complete -c pm -n '__fish_seen_subcommand_from plan' -l mode -d 'Plan mode' -r -a 'draft research review approved executing paused completed superseded'
660
+ complete -c pm -n '__fish_seen_subcommand_from plan' -l resume-context -d 'Resume context summary' -r
661
+ complete -c pm -n '__fish_seen_subcommand_from plan' -l step-title -d 'Step title' -r
662
+ complete -c pm -n '__fish_seen_subcommand_from plan' -l step -d 'Step title (repeatable on create)' -r
663
+ complete -c pm -n '__fish_seen_subcommand_from plan' -l step-status -d 'Step status' -r -a 'pending in_progress completed blocked skipped superseded'
664
+ complete -c pm -n '__fish_seen_subcommand_from plan' -l step-evidence -d 'Step evidence' -r
665
+ complete -c pm -n '__fish_seen_subcommand_from plan' -l depends-on -d 'Pm item id step depends on' -r
666
+ complete -c pm -n '__fish_seen_subcommand_from plan' -l link -d 'Pm item id to link' -r
667
+ 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'
668
+ complete -c pm -n '__fish_seen_subcommand_from plan' -l depth -d 'Show depth' -r -a 'brief standard deep'
669
+ complete -c pm -n '__fish_seen_subcommand_from plan' -l steps -d 'Step ids/orders for materialize' -r
670
+ complete -c pm -n '__fish_seen_subcommand_from plan' -l materialize-type -d 'Item type for materialized steps' -r
671
+ complete -c pm -n '__fish_seen_subcommand_from plan' -l allow-multiple-active -d 'Allow multiple in_progress steps'
672
+ complete -c pm -n '__fish_seen_subcommand_from plan' -l promote-to-item-dep -d 'Also add link as item dependency'
673
+ complete -c pm -n '__fish_seen_subcommand_from plan' -l author -d 'Mutation author' -r
674
+ complete -c pm -n '__fish_seen_subcommand_from plan' -l message -d 'Mutation message' -r
675
+ complete -c pm -n '__fish_seen_subcommand_from plan' -l force -d 'Force ownership override'
676
+ complete -c pm -n '__pm_history_operation activity activity' -l id -d 'Filter by item ID' -r
677
+ complete -c pm -n '__pm_history_operation activity activity' -l op -d 'Filter by history operation' -r
678
+ complete -c pm -n '__pm_history_operation activity activity' -l author -d 'Filter by history author' -r
679
+ complete -c pm -n '__pm_history_operation activity activity' -l from -d 'Lower timestamp bound (ISO/date string or relative)' -r
680
+ complete -c pm -n '__pm_history_operation activity activity' -l to -d 'Upper timestamp bound (ISO/date string or relative)' -r
681
+ complete -c pm -n '__pm_history_operation activity activity' -l limit -d 'Max activity entries' -r
682
+ complete -c pm -n '__pm_history_operation activity activity' -l unbounded -d 'Return every matching activity entry'
683
+ complete -c pm -n '__pm_history_operation activity activity' -l compact -d 'Condensed activity projection'
684
+ complete -c pm -n '__pm_history_operation activity activity' -l raw -d 'Emit raw compact per-event activity output'
685
+ complete -c pm -n '__pm_history_operation activity activity' -l full -d 'Show full activity entries'
686
+ complete -c pm -n '__pm_history_operation activity activity' -l provenance -d 'Patch-free identity and agent provenance projection'
687
+ complete -c pm -n '__pm_history_operation activity activity' -l provenance-summary -d 'Include bounded provenance completeness counts'
688
+ complete -c pm -n '__pm_history_operation activity activity' -l harness -d 'Filter by recorded or vocabulary-resolved harness' -r
689
+ complete -c pm -n '__pm_history_operation activity activity' -l agent-instance -d 'Filter by privacy-safe agent instance' -r
690
+ complete -c pm -n '__pm_history_operation activity activity' -l provenance-filter -d 'Filter by exact declared provenance value' -r
691
+ complete -c pm -n '__pm_history_operation activity activity' -l stream -d 'Emit line-delimited JSON rows (requires --json)'
692
+ complete -c pm -n '__fish_seen_subcommand_from contracts' -l action -d 'Filter schema by tool action' -r
693
+ complete -c pm -n '__fish_seen_subcommand_from contracts' -l command -d 'Scope output to one command (narrow-by-default)' -r
694
+ complete -c pm -n '__fish_seen_subcommand_from contracts' -l summary -d 'Return compact command intent summary'
695
+ complete -c pm -n '__fish_seen_subcommand_from contracts' -l schema-only -d 'Return schema-only payload'
696
+ complete -c pm -n '__fish_seen_subcommand_from contracts' -l flags-only -d 'Return command flag contracts only'
697
+ complete -c pm -n '__fish_seen_subcommand_from contracts' -l availability-only -d 'Return action availability only'
698
+ complete -c pm -n '__fish_seen_subcommand_from contracts' -l runtime-only -d 'Include only actions invocable in the current runtime'
699
+ complete -c pm -n '__fish_seen_subcommand_from contracts' -l active-only -d 'Alias for --runtime-only'
700
+ complete -c pm -n '__fish_seen_subcommand_from contracts' -l full -d 'Include complete command and schema contract details'
701
+ complete -c pm -n '__fish_seen_subcommand_from deps' -l format -d 'Output format' -r -a 'tree graph context'
702
+ complete -c pm -n '__fish_seen_subcommand_from deps' -l max-depth -d 'Maximum traversal depth (0 keeps root only)' -r
703
+ complete -c pm -n '__fish_seen_subcommand_from deps' -l collapse -d 'Collapse mode' -r -a 'none repeated'
704
+ complete -c pm -n '__fish_seen_subcommand_from deps' -l summary -d 'Return counts only without tree/graph payload'
705
+ complete -c pm -n '__fish_seen_subcommand_from deps' -l node-limit -d 'Maximum nodes in context output' -r
706
+ complete -c pm -n '__fish_seen_subcommand_from deps' -l edge-limit -d 'Maximum edges in context output' -r
707
+ complete -c pm -n '__fish_seen_subcommand_from deps' -l token-budget -d 'Maximum estimated tokens in context output' -r
708
+ complete -c pm -n '__fish_seen_subcommand_from deps' -l cursor -d 'Continue an equivalent context query' -r
709
+ complete -c pm -n '__fish_seen_subcommand_from deps' -l direction -d 'Context traversal direction' -r -a 'outgoing incoming both'
710
+ complete -c pm -n '__fish_seen_subcommand_from deps' -l kind -d 'Restrict context traversal to relationship kinds' -r
711
+ 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'
712
+ complete -c pm -n '__fish_seen_subcommand_from graph' -l kind -d 'Restrict traversal to registered relationship kinds' -r
713
+ complete -c pm -n '__fish_seen_subcommand_from graph' -l max-depth -d 'Maximum traversal depth' -r
714
+ complete -c pm -n '__fish_seen_subcommand_from graph' -l limit -d 'Maximum returned rows per bounded collection' -r
715
+ complete -c pm -n '__fish_seen_subcommand_from graph' -l after -d 'Resume a traversal after this node id' -r
716
+ complete -c pm -n '__fish_seen_subcommand_from graph' -l direction -d 'Edge orientation for paths/impact' -r -a 'outgoing incoming both'
717
+ complete -c pm -n '__fish_seen_subcommand_from graph' -l max-paths -d 'Maximum enumerated paths' -r
718
+ complete -c pm -n '__fish_seen_subcommand_from graph' -l sample -d 'Maximum evidence sample entries per audit finding' -r
719
+ complete -c pm -n '__fish_seen_subcommand_from graph' -l exempt-isolate -d 'Item ids treated as explicitly valid isolates' -r
720
+ complete -c pm -n '__fish_seen_subcommand_from graph' -l exempt-isolate-type -d 'Item types whose active isolates are policy-valid' -r
721
+ complete -c pm -n '__fish_seen_subcommand_from graph' -l save-baseline -d 'Persist the audit census as the comparison baseline'
722
+ complete -c pm -n '__fish_seen_subcommand_from graph' -l rebuild -d 'Rebuild and warm the durable graph index'
723
+ complete -c pm -n '__fish_seen_subcommand_from graph' -l clear -d 'Delete the durable graph index'
724
+ complete -c pm -n '__fish_seen_subcommand_from graph' -l summary -d 'Return counts-first envelopes without row collections'
725
+
726
+ # comments / notes / learnings flags
727
+ complete -c pm -n '__fish_seen_subcommand_from comments notes learnings' -l add -d 'Add one entry (text=<value> or plain text)' -r
728
+ complete -c pm -n '__fish_seen_subcommand_from comments notes learnings' -l text -d 'Alias for --add' -r
729
+ complete -c pm -n '__fish_seen_subcommand_from notes' -l add-json -d 'Append one validated JSON context event' -r
730
+ complete -c pm -n '__fish_seen_subcommand_from notes' -l since -d 'Return structured events at or after an ISO timestamp' -r
731
+ complete -c pm -n '__fish_seen_subcommand_from notes' -l event-type -d 'Return structured events with this top-level type' -r
732
+ complete -c pm -n '__fish_seen_subcommand_from notes' -l include-meta -d 'Include result counts and truncation metadata'
733
+ complete -c pm -n '__fish_seen_subcommand_from comments' -l stdin -d 'Read comment text from stdin (supports multiline markdown)'
734
+ complete -c pm -n '__fish_seen_subcommand_from comments' -l file -d 'Read comment text from file (supports multiline markdown)' -r
735
+ 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
736
+ complete -c pm -n '__fish_seen_subcommand_from comments' -l delete -d 'Delete the comment at 1-based index' -r
737
+ 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'
738
+ complete -c pm -n '__fish_seen_subcommand_from notes' -l stdin -d 'Read entry text from stdin'
739
+ complete -c pm -n '__fish_seen_subcommand_from notes' -l file -d 'Read entry text from file' -r
740
+ complete -c pm -n '__fish_seen_subcommand_from notes' -l edit -d 'Replace the entry at a 1-based index' -r
741
+ complete -c pm -n '__fish_seen_subcommand_from notes' -l delete -d 'Delete the entry at a 1-based index' -r
742
+ complete -c pm -n '__fish_seen_subcommand_from comments notes learnings' -l limit -d 'Return only latest n entries' -r
743
+ complete -c pm -n '__fish_seen_subcommand_from comments notes learnings' -l full-history -d 'Return complete post-mutation history'
744
+ complete -c pm -n '__fish_seen_subcommand_from comments notes learnings' -l author -d 'Entry author' -r
745
+ complete -c pm -n '__fish_seen_subcommand_from comments notes learnings' -l message -d 'History message' -r
746
+ complete -c pm -n '__fish_seen_subcommand_from comments notes learnings' -l force -d 'Force override'
747
+
748
+ # test flags
749
+ complete -c pm -n '__fish_seen_subcommand_from test' -l add -d 'Add linked test entry' -r
750
+ complete -c pm -n '__fish_seen_subcommand_from test' -l add-json -d 'Add linked test entry from JSON object/array' -r
751
+ complete -c pm -n '__fish_seen_subcommand_from test' -l remove -d 'Remove linked test entry' -r
752
+ complete -c pm -n '__fish_seen_subcommand_from test' -l remove-index -d 'Remove linked test entry by 1-based index' -r
753
+ complete -c pm -n '__fish_seen_subcommand_from test' -l list -d 'List linked tests without mutating'
754
+ complete -c pm -n '__fish_seen_subcommand_from test' -l run -d 'Run linked tests'
755
+ complete -c pm -n '__fish_seen_subcommand_from test' -l match -d 'Run linked tests whose command/path contains substring' -r
756
+ complete -c pm -n '__fish_seen_subcommand_from test' -l only-index -d 'Run one linked test by 1-based index' -r
757
+ complete -c pm -n '__fish_seen_subcommand_from test' -l only-last -d 'Run the most recently added linked test'
758
+ complete -c pm -n '__fish_seen_subcommand_from test' -l background -d 'Run linked tests in managed background mode'
759
+ complete -c pm -n '__fish_seen_subcommand_from test' -l timeout -d 'Default timeout seconds' -r
760
+ complete -c pm -n '__fish_seen_subcommand_from test' -l progress -d 'Emit linked-test progress to stderr'
761
+ complete -c pm -n '__fish_seen_subcommand_from test' -l env-set -d 'Set linked-test runtime environment values' -r
762
+ complete -c pm -n '__fish_seen_subcommand_from test' -l env-clear -d 'Clear linked-test runtime environment values' -r
763
+ complete -c pm -n '__fish_seen_subcommand_from test' -l shared-host-safe -d 'Apply shared-host-safe runtime defaults'
764
+ complete -c pm -n '__fish_seen_subcommand_from test' -l pm-context -d 'PM linked-test context mode' -r -a 'schema tracker auto'
765
+ 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'
766
+ complete -c pm -n '__fish_seen_subcommand_from test' -l fail-on-context-mismatch -d 'Fail when context item counts mismatch'
767
+ complete -c pm -n '__fish_seen_subcommand_from test' -l fail-on-skipped -d 'Treat skipped linked tests as dependency failures'
768
+ complete -c pm -n '__fish_seen_subcommand_from test' -l fail-on-empty-test-run -d 'Treat empty linked-test selections as failures'
769
+ complete -c pm -n '__fish_seen_subcommand_from test' -l require-assertions-for-pm -d 'Require assertions for linked PM command tests'
770
+ complete -c pm -n '__fish_seen_subcommand_from test' -l check-context -d 'Preflight linked PM command context diagnostics before execution'
771
+ complete -c pm -n '__fish_seen_subcommand_from test' -l auto-pm-context -d 'Auto-remediate tracker-read context mismatches using tracker context'
772
+ complete -c pm -n '__fish_seen_subcommand_from test' -l author -d 'Mutation author' -r
773
+ complete -c pm -n '__fish_seen_subcommand_from test' -l message -d 'History message' -r
774
+ complete -c pm -n '__fish_seen_subcommand_from test' -l force -d 'Force override'
775
+
776
+ # test-all flags
777
+ complete -c pm -n '__pm_history_operation test-all' -l status -d 'Filter by status' -r -a 'open in_progress'
778
+ complete -c pm -n '__pm_history_operation test-all' -l limit -d 'Limit matching items before running linked tests' -r
779
+ complete -c pm -n '__pm_history_operation test-all' -l offset -d 'Skip matching items before running linked tests' -r
780
+ complete -c pm -n '__pm_history_operation test-all' -l background -d 'Run linked tests in managed background mode'
781
+ complete -c pm -n '__pm_history_operation test-all' -l timeout -d 'Default timeout seconds' -r
782
+ complete -c pm -n '__pm_history_operation test-all' -l progress -d 'Emit linked-test progress to stderr'
783
+ complete -c pm -n '__pm_history_operation test-all' -l env-set -d 'Set linked-test runtime environment values' -r
784
+ complete -c pm -n '__pm_history_operation test-all' -l env-clear -d 'Clear linked-test runtime environment values' -r
785
+ complete -c pm -n '__pm_history_operation test-all' -l shared-host-safe -d 'Apply shared-host-safe runtime defaults'
786
+ complete -c pm -n '__pm_history_operation test-all' -l pm-context -d 'PM linked-test context mode' -r -a 'schema tracker auto'
787
+ 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'
788
+ complete -c pm -n '__pm_history_operation test-all' -l fail-on-context-mismatch -d 'Fail when context item counts mismatch'
789
+ complete -c pm -n '__pm_history_operation test-all' -l fail-on-skipped -d 'Treat skipped linked tests as dependency failures'
790
+ complete -c pm -n '__pm_history_operation test-all' -l fail-on-empty-test-run -d 'Treat empty linked-test selections as failures'
791
+ complete -c pm -n '__pm_history_operation test-all' -l require-assertions-for-pm -d 'Require assertions for linked PM command tests'
792
+ complete -c pm -n '__pm_history_operation test-all' -l check-context -d 'Preflight linked PM command context diagnostics before execution'
793
+ complete -c pm -n '__pm_history_operation test-all' -l auto-pm-context -d 'Auto-remediate tracker-read context mismatches using tracker context'
794
+
795
+ # test-runs flags
796
+ complete -c pm -n '__fish_seen_subcommand_from test-runs' -a 'list status logs stop resume' -d 'test-runs subcommand'
797
+ 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'
798
+ complete -c pm -n '__fish_seen_subcommand_from test-runs' -l limit -d 'Limit returned runs' -r
799
+ complete -c pm -n '__fish_seen_subcommand_from test-runs' -l stream -d 'Background log stream selector' -r -a 'stdout stderr both'
800
+ complete -c pm -n '__fish_seen_subcommand_from test-runs' -l tail -d 'Tail number of lines from logs' -r
801
+ complete -c pm -n '__fish_seen_subcommand_from test-runs' -l force -d 'Force-stop run with SIGKILL'
802
+ complete -c pm -n '__fish_seen_subcommand_from test-runs' -l author -d 'Resume author' -r
803
+
804
+ # gc flags
805
+ complete -c pm -n '__pm_history_operation gc' -l dry-run -d 'Preview cleanup targets without deleting files'
806
+ complete -c pm -n '__pm_history_operation gc' -l scope -d 'Limit cleanup to index/embeddings/runtime/locks scopes' -r
807
+
808
+ # stats flags
809
+ complete -c pm -n '__pm_history_operation stats' -l include-empty -d 'Include registered zero-count type and status buckets'
810
+ complete -c pm -n '__pm_history_operation stats' -l storage -d 'Include aggregate history-stream storage metrics'
811
+ complete -c pm -n '__pm_history_operation stats' -l metadata-coverage -d 'Include metadata coverage percentages overall and by type'
812
+ complete -c pm -n '__pm_history_operation stats' -l field-utilization -d 'Include content-field utilization rates across all items'
813
+ complete -c pm -n '__pm_history_operation stats' -l by-assignee -d 'Lifecycle-bucketed breakdown grouped by assignee'
814
+ complete -c pm -n '__pm_history_operation stats' -l by-tag -d 'Lifecycle-bucketed breakdown grouped by tag'
815
+ complete -c pm -n '__pm_history_operation stats' -l by-priority -d 'Lifecycle-bucketed breakdown grouped by priority'
816
+ complete -c pm -n '__pm_history_operation stats' -l tag-prefix -d 'With --by-tag: only count tags with this prefix' -r
817
+ complete -c pm -n '__pm_history_operation stats' -l analytics -d 'Improvement ledger/history analytics JSON' -r
818
+
819
+ # append flags
820
+ complete -c pm -n '__fish_seen_subcommand_from append' -s b -l body -d 'Item body' -r
821
+ complete -c pm -n '__fish_seen_subcommand_from append' -l author -d 'Mutation author' -r
822
+ complete -c pm -n '__fish_seen_subcommand_from append' -l message -d 'History message' -r
823
+ complete -c pm -n '__fish_seen_subcommand_from append' -l force -d 'Force override'
824
+
825
+ # close flags
826
+ complete -c pm -n '__pm_history_operation close' -l release-assignment -d 'Close and release assignment'
827
+ complete -c pm -n '__pm_history_operation release' -l pause -d 'Return to open and release ownership'
828
+ complete -c pm -n '__pm_history_operation claim' -l start -d 'Claim and start work'
829
+ complete -c pm -n '__pm_history_operation claim release start-task pause-task close close-task delete' -l author -d 'Mutation author' -r
830
+ complete -c pm -n '__pm_history_operation claim release start-task pause-task close close-task delete' -l message -d 'History message' -r
831
+ complete -c pm -n '__pm_history_operation claim release start-task pause-task close close-task delete' -l force -d 'Force override'
832
+ complete -c pm -n '__fish_seen_subcommand_from claim' -l if-available -d 'Skip work held by another author'
833
+ complete -c pm -n '__fish_seen_subcommand_from claim' -l next -d 'Atomically claim the next actionable item'
834
+ complete -c pm -n '__fish_seen_subcommand_from claim' -l token-budget -d 'Bound ranked candidate tokens' -r
835
+ complete -c pm -n '__fish_seen_subcommand_from claim' -l explain-ranking -d 'Include ranking provenance'
836
+ complete -c pm -n '__pm_history_operation close close-task' -l validate-close -d 'Validate closure metadata mode' -r -a 'off warn strict'
837
+ complete -c pm -n '__pm_history_operation close' -l reason -d 'Closure reason' -r
838
+ complete -c pm -n '__pm_history_operation close' -l close-reason -d 'Alias for --reason' -r
839
+ complete -c pm -n '__pm_history_operation close' -l resolution -d 'Closure resolution summary' -r
840
+ complete -c pm -n '__pm_history_operation close' -l expected-result -d 'Expected behavior note' -r
841
+ complete -c pm -n '__pm_history_operation close' -l actual-result -d 'Observed behavior note' -r
842
+ complete -c pm -n '__pm_history_operation close' -l expected -d 'Short alias for --expected-result' -r
843
+ complete -c pm -n '__pm_history_operation close' -l actual -d 'Short alias for --actual-result' -r
844
+ complete -c pm -n '__pm_history_operation delete' -l dry-run -d 'Preview the item file that would be deleted without mutating'
845
+
846
+ # scheduling shortcut flags (meet/event/remind)
847
+ complete -c pm -n '__fish_seen_subcommand_from meet event' -l start -d 'Start time (ISO, now, or relative)' -r
848
+ complete -c pm -n '__fish_seen_subcommand_from meet event' -l duration -d 'Duration from start (default 1h)' -r
849
+ complete -c pm -n '__fish_seen_subcommand_from meet event' -l end -d 'End time (overrides --duration)' -r
850
+ complete -c pm -n '__fish_seen_subcommand_from meet event' -l location -d 'Location' -r
851
+ complete -c pm -n '__fish_seen_subcommand_from meet event' -l timezone -d 'IANA timezone' -r
852
+ complete -c pm -n '__fish_seen_subcommand_from meet event' -l all-day -d 'Mark as an all-day event'
853
+ complete -c pm -n '__fish_seen_subcommand_from remind' -l at -d 'Reminder time (default +1d)' -r
854
+ complete -c pm -n '__fish_seen_subcommand_from remind' -l text -d 'Reminder text (defaults to title)' -r
855
+ complete -c pm -n '__fish_seen_subcommand_from meet event remind' -l parent -d 'Parent item id' -r
856
+ 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'
857
+ complete -c pm -n '__fish_seen_subcommand_from meet event remind' -l tags -d 'Comma-separated tags' -r
858
+ complete -c pm -n '__fish_seen_subcommand_from meet event remind' -l priority -d 'Priority (0-4)' -r -a '0 1 2 3 4'
859
+ complete -c pm -n '__fish_seen_subcommand_from meet event remind' -l body -d 'Item body' -r
860
+ complete -c pm -n '__fish_seen_subcommand_from meet event remind' -l description -d 'Short description' -r
861
+ complete -c pm -n '__fish_seen_subcommand_from meet event remind' -l author -d 'Mutation author' -r
862
+ complete -c pm -n '__fish_seen_subcommand_from meet event remind' -l message -d 'History message' -r
863
+
864
+ # close-many flags
865
+ complete -c pm -n '__pm_history_operation close-many' -l filter-status -d 'Filter by status before closing' -r -a '${statusChoices}'
866
+ complete -c pm -n '__pm_history_operation close-many' -l filter-type -d 'Filter by type before closing' -r -a '${typeChoices}'
867
+ complete -c pm -n '__pm_history_operation close-many' -l filter-tag -d 'Filter by tag before closing' -r -a ${fishTagChoices}
868
+ 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'
869
+ complete -c pm -n '__pm_history_operation close-many' -l filter-deadline-before -d 'Filter by deadline upper bound' -r
870
+ complete -c pm -n '__pm_history_operation close-many' -l filter-deadline-after -d 'Filter by deadline lower bound' -r
871
+ complete -c pm -n '__pm_history_operation close-many' -l filter-updated-after -d 'Filter by updated_at lower bound (ISO/relative)' -r
872
+ complete -c pm -n '__pm_history_operation close-many' -l filter-updated-before -d 'Filter by updated_at upper bound (ISO/relative)' -r
873
+ complete -c pm -n '__pm_history_operation close-many' -l filter-created-after -d 'Filter by created_at lower bound (ISO/relative)' -r
874
+ complete -c pm -n '__pm_history_operation close-many' -l filter-created-before -d 'Filter by created_at upper bound (ISO/relative)' -r
875
+ complete -c pm -n '__pm_history_operation close-many' -l filter-assignee -d 'Filter by assignee before closing' -r
876
+ complete -c pm -n '__pm_history_operation close-many' -l filter-assignee-filter -d 'Filter assignee presence' -r -a 'assigned unassigned'
877
+ complete -c pm -n '__pm_history_operation close-many' -l filter-parent -d 'Filter by parent item ID' -r
878
+ complete -c pm -n '__pm_history_operation close-many' -l filter-sprint -d 'Filter by sprint before closing' -r
879
+ complete -c pm -n '__pm_history_operation close-many' -l filter-release -d 'Filter by release before closing' -r
880
+ complete -c pm -n '__pm_history_operation close-many' -l filter-reviewer-missing -d 'Select only items missing reviewer'
881
+ complete -c pm -n '__pm_history_operation close-many' -l filter-risk-missing -d 'Select only items missing risk'
882
+ complete -c pm -n '__pm_history_operation close-many' -l filter-confidence-missing -d 'Select only items missing confidence'
883
+ complete -c pm -n '__pm_history_operation close-many' -l filter-sprint-missing -d 'Select only items missing sprint'
884
+ complete -c pm -n '__pm_history_operation close-many' -l filter-release-missing -d 'Select only items missing release'
885
+ complete -c pm -n '__pm_history_operation close-many' -l filter-has-notes -d 'Select only items that have notes'
886
+ complete -c pm -n '__pm_history_operation close-many' -l filter-no-notes -d 'Select only items with no notes'
887
+ complete -c pm -n '__pm_history_operation close-many' -l filter-has-learnings -d 'Select only items that have learnings'
888
+ complete -c pm -n '__pm_history_operation close-many' -l filter-no-learnings -d 'Select only items with no learnings'
889
+ complete -c pm -n '__pm_history_operation close-many' -l filter-has-files -d 'Select only items that have linked files'
890
+ complete -c pm -n '__pm_history_operation close-many' -l filter-no-files -d 'Select only items with no linked files'
891
+ complete -c pm -n '__pm_history_operation close-many' -l filter-has-docs -d 'Select only items that have linked docs'
892
+ complete -c pm -n '__pm_history_operation close-many' -l filter-no-docs -d 'Select only items with no linked docs'
893
+ complete -c pm -n '__pm_history_operation close-many' -l filter-has-tests -d 'Select only items that have linked tests'
894
+ complete -c pm -n '__pm_history_operation close-many' -l filter-no-tests -d 'Select only items with no linked tests'
895
+ complete -c pm -n '__pm_history_operation close-many' -l filter-has-comments -d 'Select only items that have comments'
896
+ complete -c pm -n '__pm_history_operation close-many' -l filter-no-comments -d 'Select only items with no comments'
897
+ complete -c pm -n '__pm_history_operation close-many' -l filter-has-deps -d 'Select only items that have dependencies'
898
+ complete -c pm -n '__pm_history_operation close-many' -l filter-no-deps -d 'Select only items with no dependencies'
899
+ complete -c pm -n '__pm_history_operation close-many' -l filter-has-body -d 'Select only items with non-empty body'
900
+ complete -c pm -n '__pm_history_operation close-many' -l filter-empty-body -d 'Select only items with empty body'
901
+ complete -c pm -n '__pm_history_operation close-many' -l filter-has-linked-command -d 'Select only items that have a linked command'
902
+ complete -c pm -n '__pm_history_operation close-many' -l filter-no-linked-command -d 'Select only items with no linked command'
903
+ complete -c pm -n '__pm_history_operation close-many' -l ids -d 'Explicit comma-separated ID allowlist' -r
904
+ complete -c pm -n '__pm_history_operation close-many' -l limit -d 'Limit matched item count' -r
905
+ complete -c pm -n '__pm_history_operation close-many' -l offset -d 'Skip first n matched rows' -r
906
+ complete -c pm -n '__pm_history_operation close-many' -l reason -d 'Optional shared close reason applied to every matched item' -r
907
+ complete -c pm -n '__pm_history_operation close-many' -l resolution -d 'Shared closure resolution' -r
908
+ complete -c pm -n '__pm_history_operation close-many' -l expected-result -d 'Shared expected-result note' -r
909
+ complete -c pm -n '__pm_history_operation close-many' -l actual-result -d 'Shared actual-result note' -r
910
+ complete -c pm -n '__pm_history_operation close-many' -l expected -d 'Short alias for --expected-result' -r
911
+ complete -c pm -n '__pm_history_operation close-many' -l actual -d 'Short alias for --actual-result' -r
912
+ complete -c pm -n '__pm_history_operation close-many' -l validate-close -d 'Validate closure metadata per item' -r -a 'off warn strict'
913
+ complete -c pm -n '__pm_history_operation close-many' -l author -d 'Mutation author' -r
914
+ complete -c pm -n '__pm_history_operation close-many' -l message -d 'History message' -r
915
+ complete -c pm -n '__pm_history_operation close-many' -l force -d 'Re-close terminal matches and override ownership'
916
+ complete -c pm -n '__pm_history_operation close-many' -l dry-run -d 'Preview matched items without mutating'
917
+ complete -c pm -n '__pm_history_operation close-many' -l rollback -d 'Rollback checkpoint ID' -r
918
+ complete -c pm -n '__pm_history_operation close-many' -l no-checkpoint -d 'Disable checkpoint creation during apply mode'
919
+
920
+ # validate flags
921
+ complete -c pm -n '__pm_history_operation validate' -l check-completeness -d 'Check declarative required fields'
922
+ complete -c pm -n '__pm_history_operation validate' -l check-metadata -d 'Run metadata completeness checks'
923
+ complete -c pm -n '__pm_history_operation validate' -l metadata-profile -d 'Select metadata validation profile for --check-metadata' -r -a 'core strict custom'
924
+ complete -c pm -n '__pm_history_operation validate' -l check-resolution -d 'Run closed-item resolution metadata checks'
925
+ complete -c pm -n '__pm_history_operation validate' -l check-lifecycle -d 'Run active-item lifecycle governance drift checks'
926
+ complete -c pm -n '__pm_history_operation validate' -l check-stale-blockers -d 'Include stale blocker-pattern diagnostics in lifecycle checks'
927
+ 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'
928
+ 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'
929
+ complete -c pm -n '__pm_history_operation validate' -l check-files -d 'Run linked-file and orphaned-file checks'
930
+ 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'
931
+ complete -c pm -n '__pm_history_operation validate' -l include-pm-internals -d 'Include PM storage internals in tracked-all candidate scans'
932
+ complete -c pm -n '__pm_history_operation validate' -l verbose-file-lists -d 'Include full file-path lists for validate --check-files details'
933
+ complete -c pm -n '__pm_history_operation validate' -l verbose-diagnostics -d 'Include full validate diagnostic ID lists instead of compact summaries'
934
+ 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)'
935
+ complete -c pm -n '__pm_history_operation validate' -l strict-exit -d 'Return non-zero exit when validation warnings are present'
936
+ complete -c pm -n '__pm_history_operation validate' -l fail-on-warn -d 'Alias for --strict-exit'
937
+ 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'
938
+ complete -c pm -n '__pm_history_operation validate' -l auto-fix -d 'Apply the safe, deterministic subset of fix-hint remediations automatically'
939
+ complete -c pm -n '__pm_history_operation validate' -l dry-run -d 'Preview planned --auto-fix/--prune-missing fixes without applying them'
940
+ complete -c pm -n '__pm_history_operation validate' -l fix-scope -d 'Grant --auto-fix scopes (estimates/timestamps/lifecycle require opt-in)' -r -a 'metadata resolution estimates timestamps lifecycle'
941
+ complete -c pm -n '__pm_history_operation validate' -l prune-missing -d 'Remove stale linked-file/doc links classified as deleted'
942
+ complete -c pm -n '__pm_history_operation validate' -l check-history-drift -d 'Run item/history hash drift checks'
943
+ complete -c pm -n '__pm_history_operation validate' -l check-command-references -d 'Run linked-command PM-ID reference checks'
944
+ complete -c pm -n '__fish_seen_subcommand_from init' -l preset -d 'Governance preset for new setups' -r -a 'minimal default strict'
945
+ complete -c pm -n '__fish_seen_subcommand_from init' -l id-prefix -d 'Set the item ID prefix' -r
946
+ complete -c pm -n '__fish_seen_subcommand_from init' -l prefix -d 'Alias for --id-prefix' -r
947
+ complete -c pm -n '__fish_seen_subcommand_from init' -l defaults -d 'Use non-interactive setup defaults'
948
+ complete -c pm -n '__fish_seen_subcommand_from init' -s y -l yes -d 'Alias for --defaults'
949
+ complete -c pm -n '__fish_seen_subcommand_from init' -l author -d 'Set the default mutation author for this project' -r
950
+ complete -c pm -n '__fish_seen_subcommand_from init' -l agent-guidance -d 'Agent guidance mode' -r -a 'ask add skip status'
951
+ complete -c pm -n '__fish_seen_subcommand_from init' -l type-preset -d 'Register domain item types' -r -a 'agile ops research'
952
+ complete -c pm -n '__fish_seen_subcommand_from init' -l with-packages -d 'Install bundled first-party packages during initialization'
953
+ complete -c pm -n '__fish_seen_subcommand_from init' -l verbose -d 'Include the full resolved settings tree in init output'
954
+ 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
955
+ complete -c pm -n '__fish_seen_subcommand_from config' -l clear-criteria -d 'Clear config criteria-list key values'
956
+ complete -c pm -n '__fish_seen_subcommand_from config' -l format -d 'Item format for item-format key' -r -a 'toon'
957
+ complete -c pm -n '__fish_seen_subcommand_from config' -l policy -d 'Policy value for supported policy keys' -r
958
+ complete -c pm -n '__pm_history_operation health' -l strict-directories -d 'Treat optional item-type directories as required failures'
959
+ complete -c pm -n '__pm_history_operation health' -l check-only -d 'Run read-only health diagnostics without refreshing vectors'
960
+ complete -c pm -n '__pm_history_operation health' -l no-refresh -d 'Disable automatic vector refresh attempts during health checks'
961
+ complete -c pm -n '__pm_history_operation health' -l refresh-vectors -d 'Explicitly enable vector refresh attempts during health checks'
962
+ complete -c pm -n '__pm_history_operation health' -l verbose-stale-items -d 'Include full stale vectorization ID lists in health output'
963
+ complete -c pm -n '__pm_history_operation health' -l verbose-author-events -d 'Include complete actionable unknown-author coordinates'
964
+ complete -c pm -n '__pm_history_operation health' -l brief -d 'Emit compact health details for low-token agent checks'
965
+ complete -c pm -n '__pm_history_operation health' -l summary -d 'Emit one-line-style health status with check names and warning count'
966
+ complete -c pm -n '__pm_history_operation health' -l strict-exit -d 'Return non-zero exit when health warnings are present'
967
+ complete -c pm -n '__pm_history_operation health' -l fail-on-warn -d 'Alias for --strict-exit'
968
+
969
+ # completion shell argument
970
+ complete -c pm -n '__fish_seen_subcommand_from completion' -l eager-tags -d 'Embed current tracker tags directly in script output'
971
+ complete -c pm -n '__fish_seen_subcommand_from completion' -a 'bash zsh fish' -d 'Shell type'
972
+
973
+ # templates subcommands
974
+ complete -c pm -n '__fish_seen_subcommand_from templates' -a 'save list show' -d 'Templates command'
975
+
976
+ # extension lifecycle flags
977
+ complete -c pm -n '__fish_seen_subcommand_from extension' -a '${EXTENSION_LIFECYCLE_ACTIONS}' -d 'Extension action subcommand'
978
+ complete -c pm -n '__fish_seen_subcommand_from extension' -l init -d 'Generate starter extension scaffold'
979
+ complete -c pm -n '__fish_seen_subcommand_from extension' -l scaffold -d 'Alias for --init'
980
+ complete -c pm -n '__fish_seen_subcommand_from extension' -l capability -d 'Capability the init scaffold targets' -r -a '${SCAFFOLD_CAPABILITIES.join(" ")}'
981
+ complete -c pm -n '__fish_seen_subcommand_from extension' -l install -d 'Install extension from local path or GitHub source'
982
+ complete -c pm -n '__fish_seen_subcommand_from extension' -l uninstall -d 'Uninstall extension by name'
983
+ complete -c pm -n '__fish_seen_subcommand_from extension' -l explore -d 'List discovered extensions for selected scope'
984
+ complete -c pm -n '__fish_seen_subcommand_from extension' -l manage -d 'List managed extensions with update metadata'
985
+ complete -c pm -n '__fish_seen_subcommand_from extension' -l describe -d 'Map every surface a loaded extension registers'
986
+ complete -c pm -n '__fish_seen_subcommand_from extension' -l markdown -d 'Render describe output as a Markdown reference document'
987
+ complete -c pm -n '__fish_seen_subcommand_from extension' -l output -d 'Write describe Markdown to a file' -r
988
+ complete -c pm -n '__fish_seen_subcommand_from extension' -l reload -d 'Reload extensions with cache-busted module imports'
989
+ complete -c pm -n '__fish_seen_subcommand_from extension' -l watch -d 'Enable watch mode with --reload'
990
+ complete -c pm -n '__fish_seen_subcommand_from extension' -l doctor -d 'Run consolidated extension diagnostics'
991
+ complete -c pm -n '__fish_seen_subcommand_from extension' -l catalog -d 'List bundled first-party package catalog entries'
992
+ complete -c pm -n '__fish_seen_subcommand_from extension' -l adopt -d 'Adopt an unmanaged extension into managed metadata'
993
+ complete -c pm -n '__fish_seen_subcommand_from extension' -l adopt-all -d 'Adopt all unmanaged extensions into managed metadata'
994
+ complete -c pm -n '__fish_seen_subcommand_from extension' -l activate -d 'Activate extension in selected scope settings'
995
+ complete -c pm -n '__fish_seen_subcommand_from extension' -l deactivate -d 'Deactivate extension in selected scope settings'
996
+ complete -c pm -n '__fish_seen_subcommand_from extension' -l project -d 'Use project extension scope'
997
+ complete -c pm -n '__fish_seen_subcommand_from extension' -l local -d 'Alias for --project'
998
+ complete -c pm -n '__fish_seen_subcommand_from extension' -l global -d 'Use global extension scope'
999
+ complete -c pm -n '__fish_seen_subcommand_from extension' -l gh -d 'GitHub shorthand owner/repo/path' -r
1000
+ complete -c pm -n '__fish_seen_subcommand_from extension' -l github -d 'Alias for --gh' -r
1001
+ complete -c pm -n '__fish_seen_subcommand_from extension' -l ref -d 'Git ref/branch/tag for GitHub source' -r
1002
+ complete -c pm -n '__fish_seen_subcommand_from extension' -l detail -d 'Detail mode for extension diagnostics' -r -a 'summary deep'
1003
+ complete -c pm -n '__fish_seen_subcommand_from extension' -l trace -d 'Include registration traces in doctor deep diagnostics'
1004
+ complete -c pm -n '__fish_seen_subcommand_from extension' -l runtime-probe -d 'Opt-in runtime activation probe for manage output'
1005
+ complete -c pm -n '__fish_seen_subcommand_from extension' -l fix-managed-state -d 'Adopt unmanaged extensions before diagnostics/update checks'
1006
+ complete -c pm -n '__fish_seen_subcommand_from extension' -l isolated -d 'Run doctor against project-scope extensions only'
1007
+ complete -c pm -n '__fish_seen_subcommand_from extension' -l ignore-global -d 'Alias for --isolated'
1008
+ complete -c pm -n '__fish_seen_subcommand_from extension' -l strict-exit -d 'Return non-zero exit when doctor warnings are present'
1009
+ complete -c pm -n '__fish_seen_subcommand_from extension' -l fail-on-warn -d 'Alias for --strict-exit (doctor)'
1010
+
1011
+ # package lifecycle flags
1012
+ for package_cmd in package packages
1013
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -a '${PACKAGE_LIFECYCLE_ACTIONS}' -d 'Package action subcommand'
1014
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l init -d 'Generate starter package scaffold'
1015
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l scaffold -d 'Alias for --init'
1016
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l capability -d 'Capability the init scaffold targets' -r -a '${SCAFFOLD_CAPABILITIES.join(" ")}'
1017
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l declarative -d 'Generate a composeExtension blueprint starter'
1018
+ 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'
1019
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l uninstall -d 'Uninstall package by name'
1020
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l explore -d 'List discovered packages for selected scope'
1021
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l manage -d 'List managed packages with update metadata'
1022
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l describe -d 'Map every surface a loaded package registers'
1023
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l markdown -d 'Render describe output as a Markdown reference document'
1024
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l output -d 'Write describe Markdown to a file' -r
1025
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l reload -d 'Reload packages with cache-busted module imports'
1026
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l watch -d 'Enable watch mode with --reload'
1027
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l doctor -d 'Run consolidated package diagnostics'
1028
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l catalog -d 'List bundled first-party package catalog entries'
1029
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l adopt -d 'Adopt an unmanaged package into managed metadata'
1030
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l adopt-all -d 'Adopt all unmanaged packages into managed metadata'
1031
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l activate -d 'Activate package in selected scope settings'
1032
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l deactivate -d 'Deactivate package in selected scope settings'
1033
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l project -d 'Use project package scope'
1034
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l local -d 'Alias for --project'
1035
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l global -d 'Use global package scope'
1036
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l gh -d 'GitHub shorthand owner/repo/path' -r
1037
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l github -d 'Alias for --gh' -r
1038
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l ref -d 'Git ref/branch/tag for GitHub source' -r
1039
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l detail -d 'Detail mode for package diagnostics' -r -a 'summary deep'
1040
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l trace -d 'Include registration traces in doctor deep diagnostics'
1041
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l runtime-probe -d 'Opt-in runtime activation probe for manage output'
1042
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l fix-managed-state -d 'Adopt unmanaged packages before diagnostics/update checks'
1043
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l isolated -d 'Run doctor against project-scope packages only'
1044
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l ignore-global -d 'Alias for --isolated'
1045
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l strict-exit -d 'Return non-zero exit when doctor warnings are present'
1046
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l fail-on-warn -d 'Alias for --strict-exit (doctor)'
1047
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l dry-run -d 'Plan upgrades without mutating'
1048
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l cli-only -d 'Upgrade only the pm CLI/SDK npm package'
1049
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l packages-only -d 'Upgrade only managed pm packages'
1050
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l repair -d 'Force npm global reinstall for the CLI/SDK'
1051
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l tag -d 'npm version or dist-tag for upgrades' -r
1052
+ complete -c pm -n "__fish_seen_subcommand_from $package_cmd" -l package-name -d 'Override the CLI package name' -r
1053
+ end`}export{generateFishScript};
1054
+ //# sourceMappingURL=fish.js.map