@unbrained/pm-cli 2026.3.12 → 2026.5.1-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/pm/extensions/.managed-extensions.json +42 -0
- package/.agents/pm/extensions/beads/index.js +109 -0
- package/.agents/pm/extensions/beads/manifest.json +7 -0
- package/{dist/cli/commands/beads.js → .agents/pm/extensions/beads/runtime.js} +31 -21
- package/.agents/pm/extensions/beads/runtime.ts +702 -0
- package/.agents/pm/extensions/todos/index.js +126 -0
- package/.agents/pm/extensions/todos/manifest.json +7 -0
- package/{dist/extensions/builtins/todos/import-export.js → .agents/pm/extensions/todos/runtime.js} +39 -29
- package/.agents/pm/extensions/todos/runtime.ts +568 -0
- package/AGENTS.md +196 -92
- package/CHANGELOG.md +404 -0
- package/CODE_OF_CONDUCT.md +42 -0
- package/CONTRIBUTING.md +144 -0
- package/PRD.md +512 -164
- package/README.md +1053 -2
- package/SECURITY.md +51 -0
- package/dist/cli/commands/activity.d.ts +5 -0
- package/dist/cli/commands/activity.js +66 -3
- package/dist/cli/commands/activity.js.map +1 -1
- package/dist/cli/commands/aggregate.d.ts +54 -0
- package/dist/cli/commands/aggregate.js +181 -0
- package/dist/cli/commands/aggregate.js.map +1 -0
- package/dist/cli/commands/append.js +4 -1
- package/dist/cli/commands/append.js.map +1 -1
- package/dist/cli/commands/calendar.d.ts +109 -0
- package/dist/cli/commands/calendar.js +797 -0
- package/dist/cli/commands/calendar.js.map +1 -0
- package/dist/cli/commands/claim.d.ts +5 -1
- package/dist/cli/commands/claim.js +42 -21
- package/dist/cli/commands/claim.js.map +1 -1
- package/dist/cli/commands/close.d.ts +1 -0
- package/dist/cli/commands/close.js +54 -5
- package/dist/cli/commands/close.js.map +1 -1
- package/dist/cli/commands/comments-audit.d.ts +91 -0
- package/dist/cli/commands/comments-audit.js +195 -0
- package/dist/cli/commands/comments-audit.js.map +1 -0
- package/dist/cli/commands/comments.d.ts +1 -0
- package/dist/cli/commands/comments.js +70 -21
- package/dist/cli/commands/comments.js.map +1 -1
- package/dist/cli/commands/completion.d.ts +10 -4
- package/dist/cli/commands/completion.js +1184 -137
- package/dist/cli/commands/completion.js.map +1 -1
- package/dist/cli/commands/config.d.ts +35 -3
- package/dist/cli/commands/config.js +968 -13
- package/dist/cli/commands/config.js.map +1 -1
- package/dist/cli/commands/context.d.ts +86 -0
- package/dist/cli/commands/context.js +299 -0
- package/dist/cli/commands/context.js.map +1 -0
- package/dist/cli/commands/contracts.d.ts +78 -0
- package/dist/cli/commands/contracts.js +920 -0
- package/dist/cli/commands/contracts.js.map +1 -0
- package/dist/cli/commands/create.d.ts +48 -14
- package/dist/cli/commands/create.js +1331 -160
- package/dist/cli/commands/create.js.map +1 -1
- package/dist/cli/commands/dedupe-audit.d.ts +81 -0
- package/dist/cli/commands/dedupe-audit.js +330 -0
- package/dist/cli/commands/dedupe-audit.js.map +1 -0
- package/dist/cli/commands/deps.d.ts +52 -0
- package/dist/cli/commands/deps.js +204 -0
- package/dist/cli/commands/deps.js.map +1 -0
- package/dist/cli/commands/docs.d.ts +19 -0
- package/dist/cli/commands/docs.js +212 -13
- package/dist/cli/commands/docs.js.map +1 -1
- package/dist/cli/commands/extension.d.ts +122 -0
- package/dist/cli/commands/extension.js +1850 -0
- package/dist/cli/commands/extension.js.map +1 -0
- package/dist/cli/commands/files.d.ts +52 -1
- package/dist/cli/commands/files.js +455 -13
- package/dist/cli/commands/files.js.map +1 -1
- package/dist/cli/commands/gc.d.ts +11 -1
- package/dist/cli/commands/gc.js +89 -11
- package/dist/cli/commands/gc.js.map +1 -1
- package/dist/cli/commands/get.d.ts +13 -0
- package/dist/cli/commands/get.js +35 -3
- package/dist/cli/commands/get.js.map +1 -1
- package/dist/cli/commands/health.d.ts +10 -2
- package/dist/cli/commands/health.js +774 -23
- package/dist/cli/commands/health.js.map +1 -1
- package/dist/cli/commands/history.d.ts +20 -0
- package/dist/cli/commands/history.js +152 -6
- package/dist/cli/commands/history.js.map +1 -1
- package/dist/cli/commands/index.d.ts +16 -3
- package/dist/cli/commands/index.js +16 -3
- package/dist/cli/commands/index.js.map +1 -1
- package/dist/cli/commands/init.d.ts +7 -2
- package/dist/cli/commands/init.js +137 -5
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/learnings.d.ts +17 -0
- package/dist/cli/commands/learnings.js +129 -0
- package/dist/cli/commands/learnings.js.map +1 -0
- package/dist/cli/commands/list.d.ts +29 -1
- package/dist/cli/commands/list.js +289 -53
- package/dist/cli/commands/list.js.map +1 -1
- package/dist/cli/commands/normalize.d.ts +51 -0
- package/dist/cli/commands/normalize.js +298 -0
- package/dist/cli/commands/normalize.js.map +1 -0
- package/dist/cli/commands/notes.d.ts +17 -0
- package/dist/cli/commands/notes.js +129 -0
- package/dist/cli/commands/notes.js.map +1 -0
- package/dist/cli/commands/reindex.d.ts +1 -0
- package/dist/cli/commands/reindex.js +208 -32
- package/dist/cli/commands/reindex.js.map +1 -1
- package/dist/cli/commands/restore.js +164 -30
- package/dist/cli/commands/restore.js.map +1 -1
- package/dist/cli/commands/search.d.ts +14 -1
- package/dist/cli/commands/search.js +475 -81
- package/dist/cli/commands/search.js.map +1 -1
- package/dist/cli/commands/stats.js +26 -10
- package/dist/cli/commands/stats.js.map +1 -1
- package/dist/cli/commands/templates.d.ts +26 -0
- package/dist/cli/commands/templates.js +179 -0
- package/dist/cli/commands/templates.js.map +1 -0
- package/dist/cli/commands/test-all.d.ts +19 -1
- package/dist/cli/commands/test-all.js +161 -13
- package/dist/cli/commands/test-all.js.map +1 -1
- package/dist/cli/commands/test-runs.d.ts +63 -0
- package/dist/cli/commands/test-runs.js +179 -0
- package/dist/cli/commands/test-runs.js.map +1 -0
- package/dist/cli/commands/test.d.ts +75 -1
- package/dist/cli/commands/test.js +1360 -41
- package/dist/cli/commands/test.js.map +1 -1
- package/dist/cli/commands/update-many.d.ts +57 -0
- package/dist/cli/commands/update-many.js +631 -0
- package/dist/cli/commands/update-many.js.map +1 -0
- package/dist/cli/commands/update.d.ts +30 -0
- package/dist/cli/commands/update.js +1393 -84
- package/dist/cli/commands/update.js.map +1 -1
- package/dist/cli/commands/validate.d.ts +30 -0
- package/dist/cli/commands/validate.js +1151 -0
- package/dist/cli/commands/validate.js.map +1 -0
- package/dist/cli/error-guidance.d.ts +33 -0
- package/dist/cli/error-guidance.js +337 -0
- package/dist/cli/error-guidance.js.map +1 -0
- package/dist/cli/extension-command-options.d.ts +1 -0
- package/dist/cli/extension-command-options.js +92 -0
- package/dist/cli/extension-command-options.js.map +1 -1
- package/dist/cli/help-content.d.ts +20 -0
- package/dist/cli/help-content.js +543 -0
- package/dist/cli/help-content.js.map +1 -0
- package/dist/cli/main.js +3625 -445
- package/dist/cli/main.js.map +1 -1
- package/dist/core/extensions/index.d.ts +13 -1
- package/dist/core/extensions/index.js +108 -1
- package/dist/core/extensions/index.js.map +1 -1
- package/dist/core/extensions/item-fields.d.ts +2 -0
- package/dist/core/extensions/item-fields.js +79 -0
- package/dist/core/extensions/item-fields.js.map +1 -0
- package/dist/core/extensions/loader.d.ts +322 -9
- package/dist/core/extensions/loader.js +911 -20
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/extensions/runtime-registrations.d.ts +5 -0
- package/dist/core/extensions/runtime-registrations.js +51 -0
- package/dist/core/extensions/runtime-registrations.js.map +1 -0
- package/dist/core/history/history-stream-policy.d.ts +20 -0
- package/dist/core/history/history-stream-policy.js +53 -0
- package/dist/core/history/history-stream-policy.js.map +1 -0
- package/dist/core/history/history.js +90 -1
- package/dist/core/history/history.js.map +1 -1
- package/dist/core/item/id.js +4 -1
- package/dist/core/item/id.js.map +1 -1
- package/dist/core/item/index.d.ts +1 -0
- package/dist/core/item/index.js +1 -0
- package/dist/core/item/index.js.map +1 -1
- package/dist/core/item/item-format.d.ts +11 -5
- package/dist/core/item/item-format.js +507 -24
- package/dist/core/item/item-format.js.map +1 -1
- package/dist/core/item/parent-reference-policy.d.ts +6 -0
- package/dist/core/item/parent-reference-policy.js +32 -0
- package/dist/core/item/parent-reference-policy.js.map +1 -0
- package/dist/core/item/parse.d.ts +5 -0
- package/dist/core/item/parse.js +216 -19
- package/dist/core/item/parse.js.map +1 -1
- package/dist/core/item/sprint-release-format.d.ts +6 -0
- package/dist/core/item/sprint-release-format.js +33 -0
- package/dist/core/item/sprint-release-format.js.map +1 -0
- package/dist/core/item/status.d.ts +3 -0
- package/dist/core/item/status.js +24 -0
- package/dist/core/item/status.js.map +1 -0
- package/dist/core/item/type-registry.d.ts +37 -0
- package/dist/core/item/type-registry.js +706 -0
- package/dist/core/item/type-registry.js.map +1 -0
- package/dist/core/lock/lock.d.ts +1 -1
- package/dist/core/lock/lock.js +101 -12
- package/dist/core/lock/lock.js.map +1 -1
- package/dist/core/output/command-aware.d.ts +1 -0
- package/dist/core/output/command-aware.js +394 -0
- package/dist/core/output/command-aware.js.map +1 -0
- package/dist/core/output/output.d.ts +3 -0
- package/dist/core/output/output.js +124 -6
- package/dist/core/output/output.js.map +1 -1
- package/dist/core/schema/runtime-field-filters.d.ts +3 -0
- package/dist/core/schema/runtime-field-filters.js +39 -0
- package/dist/core/schema/runtime-field-filters.js.map +1 -0
- package/dist/core/schema/runtime-field-values.d.ts +8 -0
- package/dist/core/schema/runtime-field-values.js +154 -0
- package/dist/core/schema/runtime-field-values.js.map +1 -0
- package/dist/core/schema/runtime-schema.d.ts +68 -0
- package/dist/core/schema/runtime-schema.js +554 -0
- package/dist/core/schema/runtime-schema.js.map +1 -0
- package/dist/core/search/cache.d.ts +13 -1
- package/dist/core/search/cache.js +123 -14
- package/dist/core/search/cache.js.map +1 -1
- package/dist/core/search/semantic-defaults.d.ts +6 -0
- package/dist/core/search/semantic-defaults.js +120 -0
- package/dist/core/search/semantic-defaults.js.map +1 -0
- package/dist/core/search/vector-stores.js +3 -1
- package/dist/core/search/vector-stores.js.map +1 -1
- package/dist/core/shared/command-types.d.ts +2 -0
- package/dist/core/shared/conflict-markers.d.ts +7 -0
- package/dist/core/shared/conflict-markers.js +27 -0
- package/dist/core/shared/conflict-markers.js.map +1 -0
- package/dist/core/shared/constants.d.ts +15 -4
- package/dist/core/shared/constants.js +141 -1
- package/dist/core/shared/constants.js.map +1 -1
- package/dist/core/shared/errors.d.ts +10 -1
- package/dist/core/shared/errors.js +3 -1
- package/dist/core/shared/errors.js.map +1 -1
- package/dist/core/shared/text-normalization.d.ts +4 -0
- package/dist/core/shared/text-normalization.js +33 -0
- package/dist/core/shared/text-normalization.js.map +1 -0
- package/dist/core/shared/time.d.ts +1 -2
- package/dist/core/shared/time.js +98 -11
- package/dist/core/shared/time.js.map +1 -1
- package/dist/core/store/index.d.ts +1 -0
- package/dist/core/store/index.js +1 -0
- package/dist/core/store/index.js.map +1 -1
- package/dist/core/store/item-format-migration.d.ts +9 -0
- package/dist/core/store/item-format-migration.js +87 -0
- package/dist/core/store/item-format-migration.js.map +1 -0
- package/dist/core/store/item-store.d.ts +13 -4
- package/dist/core/store/item-store.js +238 -51
- package/dist/core/store/item-store.js.map +1 -1
- package/dist/core/store/paths.d.ts +21 -3
- package/dist/core/store/paths.js +59 -4
- package/dist/core/store/paths.js.map +1 -1
- package/dist/core/store/settings.d.ts +14 -1
- package/dist/core/store/settings.js +463 -7
- package/dist/core/store/settings.js.map +1 -1
- package/dist/core/telemetry/consent.d.ts +2 -0
- package/dist/core/telemetry/consent.js +79 -0
- package/dist/core/telemetry/consent.js.map +1 -0
- package/dist/core/telemetry/runtime.d.ts +38 -0
- package/dist/core/telemetry/runtime.js +733 -0
- package/dist/core/telemetry/runtime.js.map +1 -0
- package/dist/core/test/background-runs.d.ts +117 -0
- package/dist/core/test/background-runs.js +760 -0
- package/dist/core/test/background-runs.js.map +1 -0
- package/dist/core/test/item-test-run-tracking.d.ts +9 -0
- package/dist/core/test/item-test-run-tracking.js +50 -0
- package/dist/core/test/item-test-run-tracking.js.map +1 -0
- package/dist/sdk/cli-contracts.d.ts +92 -0
- package/dist/sdk/cli-contracts.js +2357 -0
- package/dist/sdk/cli-contracts.js.map +1 -0
- package/dist/sdk/index.d.ts +34 -0
- package/dist/sdk/index.js +23 -0
- package/dist/sdk/index.js.map +1 -0
- package/dist/types.d.ts +197 -3
- package/dist/types.js +48 -1
- package/dist/types.js.map +1 -1
- package/docs/ARCHITECTURE.md +368 -39
- package/docs/EXTENSIONS.md +454 -49
- package/docs/RELEASING.md +70 -19
- package/docs/SDK.md +123 -0
- package/docs/examples/starter-extension/README.md +48 -0
- package/docs/examples/starter-extension/index.js +191 -0
- package/docs/examples/starter-extension/manifest.json +17 -0
- package/docs/examples/starter-extension/package.json +10 -0
- package/package.json +41 -14
- package/.pi/extensions/pm-cli/index.ts +0 -778
- package/dist/cli/commands/beads.d.ts +0 -16
- package/dist/cli/commands/beads.js.map +0 -1
- package/dist/cli/commands/install.d.ts +0 -18
- package/dist/cli/commands/install.js +0 -87
- package/dist/cli/commands/install.js.map +0 -1
- package/dist/core/extensions/builtins.d.ts +0 -3
- package/dist/core/extensions/builtins.js +0 -47
- package/dist/core/extensions/builtins.js.map +0 -1
- package/dist/extensions/builtins/beads/index.d.ts +0 -8
- package/dist/extensions/builtins/beads/index.js +0 -33
- package/dist/extensions/builtins/beads/index.js.map +0 -1
- package/dist/extensions/builtins/todos/import-export.d.ts +0 -26
- package/dist/extensions/builtins/todos/import-export.js.map +0 -1
- package/dist/extensions/builtins/todos/index.d.ts +0 -8
- package/dist/extensions/builtins/todos/index.js +0 -38
- package/dist/extensions/builtins/todos/index.js.map +0 -1
|
@@ -1,52 +1,56 @@
|
|
|
1
1
|
import { EXIT_CODE } from "../../core/shared/constants.js";
|
|
2
2
|
import { PmCliError } from "../../core/shared/errors.js";
|
|
3
|
+
import { ACTIVITY_FLAG_CONTRACTS, APPEND_FLAG_CONTRACTS, CALENDAR_FLAG_CONTRACTS, COMPLETION_FLAG_CONTRACTS, CONTRACTS_FLAG_CONTRACTS, CONTEXT_FLAG_CONTRACTS, CREATE_FLAG_CONTRACTS, DEPS_FLAG_CONTRACTS, GLOBAL_FLAG_CONTRACTS, HEALTH_FLAG_CONTRACTS, INIT_FLAG_CONTRACTS, LIST_FILTER_FLAG_CONTRACTS, NORMALIZE_FLAG_CONTRACTS, PM_CORE_COMMAND_NAMES, SEARCH_FLAG_CONTRACTS, UPDATE_FLAG_CONTRACTS, UPDATE_MANY_FLAG_CONTRACTS, toCompletionFlagString, } from "../../sdk/cli-contracts.js";
|
|
4
|
+
import { BUILTIN_ITEM_TYPE_VALUES } from "../../types/index.js";
|
|
3
5
|
const VALID_SHELLS = ["bash", "zsh", "fish"];
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"completion",
|
|
40
|
-
"help",
|
|
41
|
-
];
|
|
42
|
-
const LIST_FLAGS = "--type --tag --priority --deadline-before --deadline-after --assignee --sprint --release --limit --json --quiet --path --no-extensions --profile --help";
|
|
43
|
-
const CREATE_FLAGS = "-t --title -d --description --type -s --status -p --priority --tags -b --body --deadline --estimate --estimated-minutes --acceptance-criteria --ac --author --message --assignee --parent --reviewer --risk --confidence --sprint --release --blocked-by --blocked-reason --unblock-note --reporter --severity --environment --repro-steps --resolution --expected-result --actual-result --affected-version --fixed-version --component --regression --customer-impact --definition-of-ready --order --rank --goal --objective --value --impact --outcome --why-now --dep --comment --note --learning --file --test --doc --json --quiet --path --no-extensions --profile --help";
|
|
44
|
-
const UPDATE_FLAGS = "-t --title -d --description -s --status -p --priority --type --tags --deadline --estimate --estimated-minutes --acceptance-criteria --ac --assignee --parent --reviewer --risk --confidence --sprint --release --blocked-by --blocked-reason --unblock-note --reporter --severity --environment --repro-steps --resolution --expected-result --actual-result --affected-version --fixed-version --component --regression --customer-impact --definition-of-ready --order --rank --goal --objective --value --impact --outcome --why-now --author --message --force --json --quiet --path --no-extensions --profile --help";
|
|
45
|
-
const SEARCH_FLAGS = "--mode --include-linked --limit --type --tag --priority --deadline-before --deadline-after --json --quiet --path --no-extensions --profile --help";
|
|
46
|
-
const MUTATION_FLAGS = "--author --message --force --json --quiet --path --no-extensions --profile --help";
|
|
47
|
-
const GLOBAL_FLAGS = "--json --quiet --path --no-extensions --profile --version --help";
|
|
48
|
-
export function generateBashScript() {
|
|
6
|
+
const DEFAULT_ITEM_TYPES = [...BUILTIN_ITEM_TYPE_VALUES];
|
|
7
|
+
const DEFAULT_STATUS_VALUES = ["draft", "open", "in_progress", "blocked", "closed", "canceled"];
|
|
8
|
+
const ALL_COMMANDS = [...PM_CORE_COMMAND_NAMES];
|
|
9
|
+
const LIST_FLAGS = toCompletionFlagString(LIST_FILTER_FLAG_CONTRACTS);
|
|
10
|
+
const APPEND_FLAGS = toCompletionFlagString(APPEND_FLAG_CONTRACTS);
|
|
11
|
+
const CREATE_FLAGS = toCompletionFlagString(CREATE_FLAG_CONTRACTS);
|
|
12
|
+
const UPDATE_FLAGS = toCompletionFlagString(UPDATE_FLAG_CONTRACTS);
|
|
13
|
+
const UPDATE_MANY_FLAGS = toCompletionFlagString(UPDATE_MANY_FLAG_CONTRACTS);
|
|
14
|
+
const NORMALIZE_FLAGS = toCompletionFlagString(NORMALIZE_FLAG_CONTRACTS);
|
|
15
|
+
const ACTIVITY_FLAGS = toCompletionFlagString(ACTIVITY_FLAG_CONTRACTS);
|
|
16
|
+
const CALENDAR_FLAGS = toCompletionFlagString(CALENDAR_FLAG_CONTRACTS);
|
|
17
|
+
const CONTEXT_FLAGS = toCompletionFlagString(CONTEXT_FLAG_CONTRACTS);
|
|
18
|
+
const DEPS_FLAGS = toCompletionFlagString(DEPS_FLAG_CONTRACTS);
|
|
19
|
+
const SEARCH_FLAGS = toCompletionFlagString(SEARCH_FLAG_CONTRACTS);
|
|
20
|
+
const HEALTH_FLAGS = toCompletionFlagString(HEALTH_FLAG_CONTRACTS);
|
|
21
|
+
const INIT_FLAGS = toCompletionFlagString(INIT_FLAG_CONTRACTS);
|
|
22
|
+
const CONTRACTS_FLAGS = toCompletionFlagString(CONTRACTS_FLAG_CONTRACTS);
|
|
23
|
+
const COMPLETION_FLAGS = toCompletionFlagString(COMPLETION_FLAG_CONTRACTS);
|
|
24
|
+
const COMPLETION_SHELL_CHOICES = `${COMPLETION_FLAGS} bash zsh fish`;
|
|
25
|
+
const MUTATION_FLAGS = "--author --message --force --json --quiet --path --no-extensions --no-pager --profile --help";
|
|
26
|
+
const CLOSE_MUTATION_FLAGS = "--author --message --validate-close --force --json --quiet --path --no-extensions --no-pager --profile --help";
|
|
27
|
+
const RELEASE_MUTATION_FLAGS = "--allow-audit-release --author --message --force --json --quiet --path --no-extensions --no-pager --profile --help";
|
|
28
|
+
const GLOBAL_FLAGS = GLOBAL_FLAG_CONTRACTS.flatMap((entry) => [entry.short, entry.flag])
|
|
29
|
+
.filter((value) => Boolean(value))
|
|
30
|
+
.join(" ");
|
|
31
|
+
function joinCompletionValues(values) {
|
|
32
|
+
return [...new Set(values.map((value) => value.trim()).filter((value) => value.length > 0))]
|
|
33
|
+
.sort((left, right) => left.localeCompare(right))
|
|
34
|
+
.join(" ");
|
|
35
|
+
}
|
|
36
|
+
function mergeFlagStrings(baseFlags, runtimeFlags) {
|
|
37
|
+
const merged = [...baseFlags.split(/\s+/u).filter((value) => value.length > 0), ...(runtimeFlags ?? [])];
|
|
38
|
+
return joinCompletionValues(merged);
|
|
39
|
+
}
|
|
40
|
+
export function generateBashScript(itemTypes = DEFAULT_ITEM_TYPES, tags = [], eagerTagExpansion = false, runtime = {}) {
|
|
49
41
|
const cmds = ALL_COMMANDS.join(" ");
|
|
42
|
+
const typeValues = itemTypes.join(" ");
|
|
43
|
+
const statusValues = joinCompletionValues(runtime.statuses ?? DEFAULT_STATUS_VALUES);
|
|
44
|
+
const tagValues = joinCompletionValues(tags);
|
|
45
|
+
const listFlags = mergeFlagStrings(LIST_FLAGS, runtime.command_flags?.list);
|
|
46
|
+
const createFlags = mergeFlagStrings(CREATE_FLAGS, runtime.command_flags?.create);
|
|
47
|
+
const updateFlags = mergeFlagStrings(UPDATE_FLAGS, runtime.command_flags?.update);
|
|
48
|
+
const updateManyFlags = mergeFlagStrings(UPDATE_MANY_FLAGS, runtime.command_flags?.["update-many"]);
|
|
49
|
+
const normalizeFlags = NORMALIZE_FLAGS;
|
|
50
|
+
const searchFlags = mergeFlagStrings(SEARCH_FLAGS, runtime.command_flags?.search);
|
|
51
|
+
const calendarFlags = mergeFlagStrings(CALENDAR_FLAGS, runtime.command_flags?.calendar);
|
|
52
|
+
const contextFlags = mergeFlagStrings(CONTEXT_FLAGS, runtime.command_flags?.context);
|
|
53
|
+
const useEagerTagExpansion = eagerTagExpansion || tags.length > 0;
|
|
50
54
|
// Note: "${...}" inside regular (non-template) strings are literal characters,
|
|
51
55
|
// not JS interpolation. Only backtick template literals interpolate ${...}.
|
|
52
56
|
const compgen = (flags) => `$(compgen -W "${flags}" -- "$cur")`;
|
|
@@ -67,56 +71,150 @@ export function generateBashScript() {
|
|
|
67
71
|
" return 0",
|
|
68
72
|
" fi",
|
|
69
73
|
"",
|
|
74
|
+
' if [[ "$prev" == "--type" ]]; then',
|
|
75
|
+
` COMPREPLY=(${compgen(typeValues)})`,
|
|
76
|
+
" return 0",
|
|
77
|
+
" fi",
|
|
78
|
+
"",
|
|
79
|
+
' if [[ "$prev" == "--status" ]]; then',
|
|
80
|
+
` COMPREPLY=(${compgen(statusValues)})`,
|
|
81
|
+
" return 0",
|
|
82
|
+
" fi",
|
|
83
|
+
"",
|
|
84
|
+
...(useEagerTagExpansion
|
|
85
|
+
? [
|
|
86
|
+
' if [[ "$prev" == "--tag" ]]; then',
|
|
87
|
+
` COMPREPLY=(${compgen(tagValues)})`,
|
|
88
|
+
" return 0",
|
|
89
|
+
" fi",
|
|
90
|
+
]
|
|
91
|
+
: [
|
|
92
|
+
' if [[ "$prev" == "--tag" ]]; then',
|
|
93
|
+
' local now ttl cache_ts tag_values',
|
|
94
|
+
' now="$(date +%s 2>/dev/null || echo 0)"',
|
|
95
|
+
' ttl="${PM_COMPLETION_TAG_TTL:-120}"',
|
|
96
|
+
' cache_ts="${PM_COMPLETION_TAG_CACHE_TS:-0}"',
|
|
97
|
+
' tag_values="${PM_COMPLETION_TAG_CACHE:-}"',
|
|
98
|
+
' if [[ -z "$tag_values" || "$now" -eq 0 || $((now - cache_ts)) -ge "$ttl" ]]; then',
|
|
99
|
+
' tag_values="$(pm completion-tags 2>/dev/null)"',
|
|
100
|
+
' PM_COMPLETION_TAG_CACHE="$tag_values"',
|
|
101
|
+
' PM_COMPLETION_TAG_CACHE_TS="$now"',
|
|
102
|
+
" fi",
|
|
103
|
+
' COMPREPLY=($(compgen -W "$tag_values" -- "$cur"))',
|
|
104
|
+
" return 0",
|
|
105
|
+
" fi",
|
|
106
|
+
]),
|
|
107
|
+
"",
|
|
70
108
|
' local cmd="${COMP_WORDS[1]}"',
|
|
71
109
|
"",
|
|
72
110
|
' case "$cmd" in',
|
|
73
111
|
" list|list-all|list-draft|list-open|list-in-progress|list-blocked|list-closed|list-canceled)",
|
|
74
|
-
` COMPREPLY=(${compgen(
|
|
112
|
+
` COMPREPLY=(${compgen(listFlags)})`,
|
|
113
|
+
" ;;",
|
|
114
|
+
" aggregate)",
|
|
115
|
+
` COMPREPLY=(${compgen("--group-by --count --include-unparented --status --type --tag --priority --deadline-before --deadline-after --assignee --assignee-filter --parent --sprint --release --json --quiet --path --no-extensions --no-pager --profile --help")})`,
|
|
116
|
+
" ;;",
|
|
117
|
+
" dedupe-audit)",
|
|
118
|
+
` COMPREPLY=(${compgen("--mode --limit --threshold --status --type --tag --priority --deadline-before --deadline-after --assignee --assignee-filter --parent --sprint --release --json --quiet --path --no-extensions --no-pager --profile --help")})`,
|
|
75
119
|
" ;;",
|
|
76
120
|
" create)",
|
|
77
|
-
` COMPREPLY=(${compgen(
|
|
121
|
+
` COMPREPLY=(${compgen(createFlags)})`,
|
|
78
122
|
" ;;",
|
|
79
123
|
" update)",
|
|
80
|
-
` COMPREPLY=(${compgen(
|
|
124
|
+
` COMPREPLY=(${compgen(updateFlags)})`,
|
|
125
|
+
" ;;",
|
|
126
|
+
" update-many)",
|
|
127
|
+
` COMPREPLY=(${compgen(updateManyFlags)})`,
|
|
128
|
+
" ;;",
|
|
129
|
+
" normalize)",
|
|
130
|
+
` COMPREPLY=(${compgen(normalizeFlags)})`,
|
|
131
|
+
" ;;",
|
|
132
|
+
" calendar|cal)",
|
|
133
|
+
` COMPREPLY=(${compgen(calendarFlags)})`,
|
|
134
|
+
" ;;",
|
|
135
|
+
" context|ctx)",
|
|
136
|
+
` COMPREPLY=(${compgen(contextFlags)})`,
|
|
81
137
|
" ;;",
|
|
82
138
|
" search)",
|
|
83
|
-
` COMPREPLY=(${compgen(
|
|
139
|
+
` COMPREPLY=(${compgen(searchFlags)})`,
|
|
84
140
|
" ;;",
|
|
85
141
|
" reindex)",
|
|
86
|
-
` COMPREPLY=(${compgen("--mode --json --quiet --path --no-extensions --profile --help")})`,
|
|
142
|
+
` COMPREPLY=(${compgen("--mode --progress --json --quiet --path --no-extensions --no-pager --profile --help")})`,
|
|
143
|
+
" ;;",
|
|
144
|
+
" init)",
|
|
145
|
+
` COMPREPLY=(${compgen(`${INIT_FLAGS} --json --quiet --path --no-extensions --no-pager --profile --help`)})`,
|
|
87
146
|
" ;;",
|
|
88
147
|
" config)",
|
|
89
|
-
` COMPREPLY=(${compgen("--criterion --json --quiet --path --no-extensions --profile --help")})`,
|
|
148
|
+
` COMPREPLY=(${compgen("--criterion --clear-criteria --format --policy --json --quiet --path --no-extensions --no-pager --profile --help")})`,
|
|
90
149
|
" ;;",
|
|
91
|
-
"
|
|
92
|
-
` COMPREPLY=(${compgen("
|
|
150
|
+
" extension)",
|
|
151
|
+
` COMPREPLY=(${compgen("init scaffold install uninstall explore manage doctor adopt adopt-all activate deactivate --init --scaffold --install --uninstall --explore --manage --doctor --adopt --adopt-all --activate --deactivate --project --local --global --gh --github --ref --detail --trace --runtime-probe --fix-managed-state --strict-exit --fail-on-warn --json --quiet --path --no-extensions --no-pager --profile --help")})`,
|
|
93
152
|
" ;;",
|
|
94
153
|
" comments)",
|
|
95
|
-
` COMPREPLY=(${compgen("--add --limit --json --quiet --path --no-extensions --profile --help")})`,
|
|
154
|
+
` COMPREPLY=(${compgen("--add --limit --author --message --allow-audit-comment --force --json --quiet --path --no-extensions --no-pager --profile --help")})`,
|
|
155
|
+
" ;;",
|
|
156
|
+
" comments-audit)",
|
|
157
|
+
` COMPREPLY=(${compgen("--status --type --tag --priority --parent --sprint --release --assignee --assignee-filter --limit-items --limit --full-history --latest --json --quiet --path --no-extensions --no-pager --profile --help")})`,
|
|
158
|
+
" ;;",
|
|
159
|
+
" notes)",
|
|
160
|
+
` COMPREPLY=(${compgen("--add --limit --author --message --allow-audit-note --allow-audit-comment --force --json --quiet --path --no-extensions --no-pager --profile --help")})`,
|
|
161
|
+
" ;;",
|
|
162
|
+
" learnings)",
|
|
163
|
+
` COMPREPLY=(${compgen("--add --limit --author --message --allow-audit-learning --allow-audit-comment --force --json --quiet --path --no-extensions --no-pager --profile --help")})`,
|
|
164
|
+
" ;;",
|
|
165
|
+
" files)",
|
|
166
|
+
` COMPREPLY=(${compgen("discover --add --add-glob --remove --migrate --list --apply --note --append-stable --validate-paths --audit --author --message --force --json --quiet --path --no-extensions --no-pager --profile --help")})`,
|
|
96
167
|
" ;;",
|
|
97
|
-
"
|
|
98
|
-
` COMPREPLY=(${compgen("--add --remove --json --quiet --path --no-extensions --profile --help")})`,
|
|
168
|
+
" docs)",
|
|
169
|
+
` COMPREPLY=(${compgen("--add --add-glob --remove --migrate --validate-paths --audit --author --message --force --json --quiet --path --no-extensions --no-pager --profile --help")})`,
|
|
170
|
+
" ;;",
|
|
171
|
+
" append)",
|
|
172
|
+
` COMPREPLY=(${compgen(APPEND_FLAGS)})`,
|
|
173
|
+
" ;;",
|
|
174
|
+
" deps)",
|
|
175
|
+
` COMPREPLY=(${compgen(DEPS_FLAGS)})`,
|
|
99
176
|
" ;;",
|
|
100
177
|
" test)",
|
|
101
|
-
` COMPREPLY=(${compgen("--add --remove --run --timeout --json --quiet --path --no-extensions --profile --help")})`,
|
|
178
|
+
` COMPREPLY=(${compgen("--add --remove --run --background --timeout --progress --env-set --env-clear --shared-host-safe --pm-context --override-linked-pm-context --fail-on-context-mismatch --fail-on-skipped --fail-on-empty-test-run --require-assertions-for-pm --check-context --auto-pm-context --author --message --force --json --quiet --path --no-extensions --no-pager --profile --help")})`,
|
|
102
179
|
" ;;",
|
|
103
180
|
" test-all)",
|
|
104
|
-
` COMPREPLY=(${compgen("--status --timeout --json --quiet --path --no-extensions --profile --help")})`,
|
|
181
|
+
` COMPREPLY=(${compgen("--status --limit --offset --background --timeout --progress --env-set --env-clear --shared-host-safe --pm-context --override-linked-pm-context --fail-on-context-mismatch --fail-on-skipped --fail-on-empty-test-run --require-assertions-for-pm --check-context --auto-pm-context --json --quiet --path --no-extensions --no-pager --profile --help")})`,
|
|
105
182
|
" ;;",
|
|
106
|
-
"
|
|
107
|
-
` COMPREPLY=(${compgen("--limit --json --quiet --path --no-extensions --profile --help")})`,
|
|
183
|
+
" test-runs)",
|
|
184
|
+
` COMPREPLY=(${compgen("list status logs stop resume --status --limit --stream --tail --force --author --json --quiet --path --no-extensions --no-pager --profile --help")})`,
|
|
108
185
|
" ;;",
|
|
109
|
-
"
|
|
110
|
-
` COMPREPLY=(${compgen(
|
|
186
|
+
" validate)",
|
|
187
|
+
` COMPREPLY=(${compgen("--check-metadata --metadata-profile --check-resolution --check-lifecycle --check-stale-blockers --dependency-cycle-severity --check-files --scan-mode --include-pm-internals --verbose-file-lists --strict-exit --fail-on-warn --check-history-drift --check-command-references --json --quiet --path --no-extensions --no-pager --profile --help")})`,
|
|
188
|
+
" ;;",
|
|
189
|
+
" health)",
|
|
190
|
+
` COMPREPLY=(${compgen(HEALTH_FLAGS)})`,
|
|
191
|
+
" ;;",
|
|
192
|
+
" history)",
|
|
193
|
+
` COMPREPLY=(${compgen("--limit --diff --verify --json --quiet --path --no-extensions --no-pager --profile --help")})`,
|
|
194
|
+
" ;;",
|
|
195
|
+
" activity)",
|
|
196
|
+
` COMPREPLY=(${compgen(ACTIVITY_FLAGS)})`,
|
|
111
197
|
" ;;",
|
|
112
|
-
"
|
|
113
|
-
` COMPREPLY=(${compgen(
|
|
198
|
+
" contracts)",
|
|
199
|
+
` COMPREPLY=(${compgen(CONTRACTS_FLAGS)})`,
|
|
114
200
|
" ;;",
|
|
115
|
-
"
|
|
116
|
-
` COMPREPLY=(${compgen("
|
|
201
|
+
" gc)",
|
|
202
|
+
` COMPREPLY=(${compgen("--dry-run --scope --json --quiet --path --no-extensions --no-pager --profile --help")})`,
|
|
203
|
+
" ;;",
|
|
204
|
+
" close|close-task)",
|
|
205
|
+
` COMPREPLY=(${compgen(CLOSE_MUTATION_FLAGS)})`,
|
|
206
|
+
" ;;",
|
|
207
|
+
" release)",
|
|
208
|
+
` COMPREPLY=(${compgen(RELEASE_MUTATION_FLAGS)})`,
|
|
209
|
+
" ;;",
|
|
210
|
+
" claim|delete|restore|start-task|pause-task)",
|
|
211
|
+
` COMPREPLY=(${compgen(MUTATION_FLAGS)})`,
|
|
117
212
|
" ;;",
|
|
118
213
|
" completion)",
|
|
119
|
-
` COMPREPLY=(${compgen(
|
|
214
|
+
` COMPREPLY=(${compgen(COMPLETION_SHELL_CHOICES)})`,
|
|
215
|
+
" ;;",
|
|
216
|
+
" templates)",
|
|
217
|
+
` COMPREPLY=(${compgen("save list show")})`,
|
|
120
218
|
" ;;",
|
|
121
219
|
" *)",
|
|
122
220
|
` COMPREPLY=(${compgen(GLOBAL_FLAGS)})`,
|
|
@@ -128,8 +226,29 @@ export function generateBashScript() {
|
|
|
128
226
|
"complete -F _pm_completion pm",
|
|
129
227
|
].join("\n");
|
|
130
228
|
}
|
|
131
|
-
export function generateZshScript() {
|
|
229
|
+
export function generateZshScript(itemTypes = DEFAULT_ITEM_TYPES, tags = [], eagerTagExpansion = false) {
|
|
132
230
|
const cmds = ALL_COMMANDS.map((c) => `'${c}'`).join(" ");
|
|
231
|
+
const typeChoices = itemTypes.join(" ");
|
|
232
|
+
const tagChoices = joinCompletionValues(tags);
|
|
233
|
+
const useEagerTagExpansion = eagerTagExpansion || tags.length > 0;
|
|
234
|
+
const zshTagChoices = useEagerTagExpansion ? tagChoices : '${(f)"$(_pm_tag_choices)"}';
|
|
235
|
+
const dynamicTagResolver = useEagerTagExpansion
|
|
236
|
+
? ""
|
|
237
|
+
: `
|
|
238
|
+
_pm_tag_choices() {
|
|
239
|
+
local now ttl cache_ts
|
|
240
|
+
now=\${EPOCHSECONDS:-0}
|
|
241
|
+
ttl=\${PM_COMPLETION_TAG_TTL:-120}
|
|
242
|
+
cache_ts=\${PM_COMPLETION_TAG_CACHE_TS:-0}
|
|
243
|
+
if [[ -n "\${PM_COMPLETION_TAG_CACHE:-}" && "$now" -ne 0 && $((now - cache_ts)) -lt "$ttl" ]]; then
|
|
244
|
+
print -r -- "$PM_COMPLETION_TAG_CACHE"
|
|
245
|
+
return
|
|
246
|
+
fi
|
|
247
|
+
PM_COMPLETION_TAG_CACHE="$(pm completion-tags 2>/dev/null)"
|
|
248
|
+
PM_COMPLETION_TAG_CACHE_TS="$now"
|
|
249
|
+
print -r -- "$PM_COMPLETION_TAG_CACHE"
|
|
250
|
+
}
|
|
251
|
+
`;
|
|
133
252
|
return `#compdef pm
|
|
134
253
|
# zsh completion for pm
|
|
135
254
|
# Source this file or add 'eval "$(pm completion zsh)"' to ~/.zshrc
|
|
@@ -139,7 +258,7 @@ _pm_commands() {
|
|
|
139
258
|
commands=(
|
|
140
259
|
'init:Initialize pm storage for the current workspace'
|
|
141
260
|
'config:Read or update pm settings'
|
|
142
|
-
'
|
|
261
|
+
'extension:Manage extension lifecycle operations'
|
|
143
262
|
'create:Create a new project management item'
|
|
144
263
|
'list:List active items with optional filters'
|
|
145
264
|
'list-all:List all items with optional filters'
|
|
@@ -149,6 +268,12 @@ _pm_commands() {
|
|
|
149
268
|
'list-blocked:List blocked items with optional filters'
|
|
150
269
|
'list-closed:List closed items with optional filters'
|
|
151
270
|
'list-canceled:List canceled items with optional filters'
|
|
271
|
+
'aggregate:Aggregate grouped item counts for governance queries'
|
|
272
|
+
'dedupe-audit:Audit potential duplicate items and emit merge suggestions'
|
|
273
|
+
'calendar:Show calendar views for deadlines and reminders'
|
|
274
|
+
'cal:Alias for calendar'
|
|
275
|
+
'context:Show a token-efficient project context snapshot'
|
|
276
|
+
'ctx:Alias for context'
|
|
152
277
|
'get:Show item details by ID'
|
|
153
278
|
'search:Search items with keyword, semantic, or hybrid modes'
|
|
154
279
|
'reindex:Rebuild search artifacts'
|
|
@@ -156,26 +281,38 @@ _pm_commands() {
|
|
|
156
281
|
'activity:Show recent activity across items'
|
|
157
282
|
'restore:Restore an item to an earlier state'
|
|
158
283
|
'update:Update item fields and metadata'
|
|
284
|
+
'update-many:Bulk-update matched items with dry-run and rollback checkpoints'
|
|
285
|
+
'normalize:Normalize lifecycle metadata with dry-run planning or apply mode'
|
|
159
286
|
'close:Close an item with a required reason'
|
|
160
287
|
'delete:Delete an item and record the change'
|
|
161
288
|
'append:Append text to an item body'
|
|
162
289
|
'comments:List or add comments for an item'
|
|
290
|
+
'comments-audit:Audit latest comments or full history across filtered items'
|
|
291
|
+
'notes:List or add notes for an item'
|
|
292
|
+
'learnings:List or add learnings for an item'
|
|
163
293
|
'files:Manage linked files'
|
|
164
294
|
'docs:Manage linked docs'
|
|
295
|
+
'deps:Show dependency relationships for an item'
|
|
165
296
|
'test:Manage linked tests and optionally run them'
|
|
166
297
|
'test-all:Run linked tests across matching items'
|
|
298
|
+
'test-runs:Manage background linked-test runs'
|
|
167
299
|
'stats:Show project tracker statistics'
|
|
168
300
|
'health:Show project tracker health checks'
|
|
301
|
+
'validate:Run standalone validation checks'
|
|
169
302
|
'gc:Clean optional cache artifacts'
|
|
303
|
+
'contracts:Show machine-readable command and schema contracts'
|
|
170
304
|
'claim:Claim an item for active work'
|
|
171
305
|
'release:Release the active claim for an item'
|
|
172
|
-
'
|
|
173
|
-
'
|
|
306
|
+
'start-task:Lifecycle alias to claim and set in_progress'
|
|
307
|
+
'pause-task:Lifecycle alias to reopen and release claim'
|
|
308
|
+
'close-task:Lifecycle alias to close and release claim'
|
|
309
|
+
'templates:Manage reusable create templates'
|
|
174
310
|
'completion:Generate shell completion'
|
|
175
311
|
'help:Display help for a command'
|
|
176
312
|
)
|
|
177
313
|
_describe 'command' commands
|
|
178
314
|
}
|
|
315
|
+
${dynamicTagResolver}
|
|
179
316
|
|
|
180
317
|
_pm() {
|
|
181
318
|
local context state line
|
|
@@ -184,6 +321,7 @@ _pm() {
|
|
|
184
321
|
'--quiet[Suppress stdout output]' \\
|
|
185
322
|
'--path[Override PM path for this command]:path:_files -/' \\
|
|
186
323
|
'--no-extensions[Disable extension loading]' \\
|
|
324
|
+
'--no-pager[Disable pager integration for help and long output]' \\
|
|
187
325
|
'--profile[Print deterministic timing diagnostics]' \\
|
|
188
326
|
'(-V --version)--version[Output the version number]' \\
|
|
189
327
|
'(-h --help)--help[Display help]' \\
|
|
@@ -195,34 +333,98 @@ _pm() {
|
|
|
195
333
|
case $line[1] in
|
|
196
334
|
list|list-all|list-draft|list-open|list-in-progress|list-blocked|list-closed|list-canceled)
|
|
197
335
|
_arguments \\
|
|
198
|
-
'--type[Filter by item type]:(
|
|
199
|
-
'--tag[Filter by tag]:
|
|
336
|
+
'--type[Filter by item type]:(${typeChoices})' \\
|
|
337
|
+
'--tag[Filter by tag]:(${zshTagChoices})' \\
|
|
200
338
|
'--priority[Filter by priority]:(0 1 2 3 4)' \\
|
|
201
|
-
'--deadline-before[Filter by deadline upper bound]:date' \\
|
|
202
|
-
'--deadline-after[Filter by deadline lower bound]:date' \\
|
|
203
|
-
'--assignee[Filter by assignee
|
|
339
|
+
'--deadline-before[Filter by deadline upper bound (ISO/date string or relative)]:date' \\
|
|
340
|
+
'--deadline-after[Filter by deadline lower bound (ISO/date string or relative)]:date' \\
|
|
341
|
+
'--assignee[Filter by assignee]:assignee' \\
|
|
342
|
+
'--assignee-filter[Filter assignee presence]:(assigned unassigned)' \\
|
|
204
343
|
'--sprint[Filter by sprint]:sprint' \\
|
|
205
344
|
'--release[Filter by release]:release' \\
|
|
206
345
|
'--limit[Limit returned item count]:number' \\
|
|
346
|
+
'--offset[Skip the first n matching rows before limit]:number' \\
|
|
347
|
+
'--include-body[Include item body in each returned list row]' \\
|
|
348
|
+
'--compact[Render compact list projection fields]' \\
|
|
349
|
+
'--fields[Render custom comma-separated list fields]:fields' \\
|
|
350
|
+
'--sort[Sort field]:(priority deadline updated_at created_at title parent)' \\
|
|
351
|
+
'--order[Sort order (requires --sort)]:(asc desc)' \\
|
|
352
|
+
'--stream[Emit line-delimited JSON rows (requires --json)]' \\
|
|
207
353
|
'--json[Output JSON]' \\
|
|
208
354
|
'--quiet[Suppress stdout]' \\
|
|
209
355
|
'--path[Override PM path]:path:_files -/'
|
|
210
356
|
;;
|
|
357
|
+
aggregate)
|
|
358
|
+
_arguments \\
|
|
359
|
+
'--group-by[Comma-separated group-by fields (supported: parent,type,priority,status,assignee,tags,sprint,release)]:fields' \\
|
|
360
|
+
'--count[Return grouped counts]' \\
|
|
361
|
+
'--include-unparented[Include unparented rows when grouping by parent]' \\
|
|
362
|
+
'--status[Filter by status]:(draft open in_progress blocked closed canceled)' \\
|
|
363
|
+
'--type[Filter by item type]:(${typeChoices})' \\
|
|
364
|
+
'--tag[Filter by tag]:(${zshTagChoices})' \\
|
|
365
|
+
'--priority[Filter by priority]:(0 1 2 3 4)' \\
|
|
366
|
+
'--deadline-before[Filter by deadline upper bound (ISO/date string or relative)]:date' \\
|
|
367
|
+
'--deadline-after[Filter by deadline lower bound (ISO/date string or relative)]:date' \\
|
|
368
|
+
'--assignee[Filter by assignee]:assignee' \\
|
|
369
|
+
'--assignee-filter[Filter assignee presence]:(assigned unassigned)' \\
|
|
370
|
+
'--parent[Filter by parent item ID]:parent_id' \\
|
|
371
|
+
'--sprint[Filter by sprint]:sprint' \\
|
|
372
|
+
'--release[Filter by release]:release' \\
|
|
373
|
+
'--json[Output JSON]' \\
|
|
374
|
+
'--quiet[Suppress stdout]'
|
|
375
|
+
;;
|
|
376
|
+
dedupe-audit)
|
|
377
|
+
_arguments \\
|
|
378
|
+
'--mode[Dedupe mode]:(title_exact title_fuzzy parent_scope)' \\
|
|
379
|
+
'--limit[Limit returned duplicate clusters]:number' \\
|
|
380
|
+
'--threshold[Fuzzy mode token similarity threshold between 0 and 1]:number' \\
|
|
381
|
+
'--status[Filter by status]:(draft open in_progress blocked closed canceled)' \\
|
|
382
|
+
'--type[Filter by item type]:(${typeChoices})' \\
|
|
383
|
+
'--tag[Filter by tag]:(${zshTagChoices})' \\
|
|
384
|
+
'--priority[Filter by priority]:(0 1 2 3 4)' \\
|
|
385
|
+
'--deadline-before[Filter by deadline upper bound (ISO/date string or relative)]:date' \\
|
|
386
|
+
'--deadline-after[Filter by deadline lower bound (ISO/date string or relative)]:date' \\
|
|
387
|
+
'--assignee[Filter by assignee]:assignee' \\
|
|
388
|
+
'--assignee-filter[Filter assignee presence]:(assigned unassigned)' \\
|
|
389
|
+
'--parent[Filter by parent item ID]:parent_id' \\
|
|
390
|
+
'--sprint[Filter by sprint]:sprint' \\
|
|
391
|
+
'--release[Filter by release]:release' \\
|
|
392
|
+
'--json[Output JSON]' \\
|
|
393
|
+
'--quiet[Suppress stdout]'
|
|
394
|
+
;;
|
|
211
395
|
create)
|
|
212
396
|
_arguments \\
|
|
213
397
|
'(-t --title)'{-t,--title}'[Item title]:title' \\
|
|
214
398
|
'(-d --description)'{-d,--description}'[Item description]:description' \\
|
|
215
|
-
'--type[Item type]:(
|
|
399
|
+
'--type[Item type]:(${typeChoices})' \\
|
|
400
|
+
'--create-mode[Create required-option policy mode]:(strict progressive)' \\
|
|
401
|
+
'--schedule-preset[Scheduling preset for Reminder/Meeting/Event]:(lightweight)' \\
|
|
216
402
|
'(-s --status)'{-s,--status}'[Item status]:(draft open in_progress blocked)' \\
|
|
217
403
|
'(-p --priority)'{-p,--priority}'[Priority (0-4)]:(0 1 2 3 4)' \\
|
|
218
404
|
'--tags[Comma-separated tags]:tags' \\
|
|
219
405
|
'(-b --body)'{-b,--body}'[Item body]:body' \\
|
|
220
|
-
'--deadline[Deadline (ISO or relative +1d/+2w)]:deadline' \\
|
|
406
|
+
'--deadline[Deadline (ISO/date string or relative +6h/+1d/+2w/+6m)]:deadline' \\
|
|
221
407
|
'--estimate[Estimated minutes]:minutes' \\
|
|
222
408
|
'--acceptance-criteria[Acceptance criteria]:criteria' \\
|
|
409
|
+
'--reminder[Reminder entry at=<iso|relative>,text=<text>]:reminder' \\
|
|
410
|
+
'--event[Event entry start=<iso|relative>,end=<iso|relative>,recur_*]:event' \\
|
|
411
|
+
'--type-option[Type option key=value or key=<name>,value=<value>]:type_option' \\
|
|
412
|
+
'--unset[Clear scalar metadata field by name]:field' \\
|
|
413
|
+
'--replace-deps[Atomically replace dependencies with provided --dep values]' \\
|
|
414
|
+
'--replace-tests[Atomically replace linked tests with provided --test values]' \\
|
|
415
|
+
'--clear-deps[Clear dependency entries]' \\
|
|
416
|
+
'--clear-comments[Clear comments]' \\
|
|
417
|
+
'--clear-notes[Clear notes]' \\
|
|
418
|
+
'--clear-learnings[Clear learnings]' \\
|
|
419
|
+
'--clear-files[Clear linked files]' \\
|
|
420
|
+
'--clear-tests[Clear linked tests]' \\
|
|
421
|
+
'--clear-docs[Clear linked docs]' \\
|
|
422
|
+
'--clear-reminders[Clear reminders]' \\
|
|
423
|
+
'--clear-events[Clear events]' \\
|
|
424
|
+
'--clear-type-options[Clear type options]' \\
|
|
223
425
|
'--author[Mutation author]:author' \\
|
|
224
426
|
'--message[History message]:message' \\
|
|
225
|
-
'--assignee[Assignee
|
|
427
|
+
'--assignee[Assignee]:assignee' \\
|
|
226
428
|
'--json[Output JSON]' \\
|
|
227
429
|
'--quiet[Suppress stdout]'
|
|
228
430
|
;;
|
|
@@ -230,23 +432,196 @@ _pm() {
|
|
|
230
432
|
_arguments \\
|
|
231
433
|
'(-t --title)'{-t,--title}'[Item title]:title' \\
|
|
232
434
|
'(-d --description)'{-d,--description}'[Item description]:description' \\
|
|
435
|
+
'(-b --body)'{-b,--body}'[Item body]:body' \\
|
|
233
436
|
'(-s --status)'{-s,--status}'[Item status]:(draft open in_progress blocked canceled)' \\
|
|
437
|
+
'--close-reason[Set close reason]:close_reason' \\
|
|
438
|
+
'(-p --priority)'{-p,--priority}'[Priority (0-4)]:(0 1 2 3 4)' \\
|
|
439
|
+
'--type[Item type]:(${typeChoices})' \\
|
|
440
|
+
'--tags[Comma-separated tags]:tags' \\
|
|
441
|
+
'--comment[Comment seed author=<value>,created_at=<iso|now>,text=<value>]:comment' \\
|
|
442
|
+
'--note[Note seed author=<value>,created_at=<iso|now>,text=<value>]:note' \\
|
|
443
|
+
'--learning[Learning seed author=<value>,created_at=<iso|now>,text=<value>]:learning' \\
|
|
444
|
+
'--file[Linked file path=<value>,scope=<project|global>,note=<text>]:file' \\
|
|
445
|
+
'--test[Linked test command=<value>,path=<value>,scope=<project|global>]:test' \\
|
|
446
|
+
'--doc[Linked doc path=<value>,scope=<project|global>,note=<text>]:doc' \\
|
|
447
|
+
'--reminder[Reminder entry at=<iso|relative>,text=<text>]:reminder' \\
|
|
448
|
+
'--event[Event entry start=<iso|relative>,end=<iso|relative>,recur_*]:event' \\
|
|
449
|
+
'--type-option[Type option key=value or key=<name>,value=<value>]:type_option' \\
|
|
450
|
+
'--unset[Clear scalar metadata field by name]:field' \\
|
|
451
|
+
'--clear-deps[Clear dependency entries]' \\
|
|
452
|
+
'--clear-comments[Clear comments]' \\
|
|
453
|
+
'--clear-notes[Clear notes]' \\
|
|
454
|
+
'--clear-learnings[Clear learnings]' \\
|
|
455
|
+
'--clear-files[Clear linked files]' \\
|
|
456
|
+
'--clear-tests[Clear linked tests]' \\
|
|
457
|
+
'--clear-docs[Clear linked docs]' \\
|
|
458
|
+
'--clear-reminders[Clear reminders]' \\
|
|
459
|
+
'--clear-events[Clear events]' \\
|
|
460
|
+
'--clear-type-options[Clear type options]' \\
|
|
461
|
+
'--allow-audit-update[Allow non-owner metadata-only audit updates without requiring --force]' \\
|
|
462
|
+
'--author[Mutation author]:author' \\
|
|
463
|
+
'--message[History message]:message' \\
|
|
464
|
+
'--force[Force override]' \\
|
|
465
|
+
'--json[Output JSON]' \\
|
|
466
|
+
'--quiet[Suppress stdout]'
|
|
467
|
+
;;
|
|
468
|
+
update-many)
|
|
469
|
+
_arguments \\
|
|
470
|
+
'--filter-status[Filter by status before applying updates]:(draft open in_progress blocked closed canceled)' \\
|
|
471
|
+
'--filter-type[Filter by type before applying updates]:(${typeChoices})' \\
|
|
472
|
+
'--filter-tag[Filter by tag before applying updates]:(${zshTagChoices})' \\
|
|
473
|
+
'--filter-priority[Filter by priority before applying updates]:(0 1 2 3 4)' \\
|
|
474
|
+
'--filter-deadline-before[Filter by deadline upper bound]:deadline' \\
|
|
475
|
+
'--filter-deadline-after[Filter by deadline lower bound]:deadline' \\
|
|
476
|
+
'--filter-assignee[Filter by assignee before applying updates]:assignee' \\
|
|
477
|
+
'--filter-assignee-filter[Filter assignee presence]:(assigned unassigned)' \\
|
|
478
|
+
'--filter-parent[Filter by parent item ID]:parent' \\
|
|
479
|
+
'--filter-sprint[Filter by sprint]:sprint' \\
|
|
480
|
+
'--filter-release[Filter by release]:release' \\
|
|
481
|
+
'--limit[Limit matched item count]:number' \\
|
|
482
|
+
'--offset[Skip first n matched rows]:number' \\
|
|
483
|
+
'--dry-run[Preview updates without mutating]' \\
|
|
484
|
+
'--rollback[Rollback checkpoint ID]:checkpoint_id' \\
|
|
485
|
+
'--no-checkpoint[Disable checkpoint creation during apply mode]' \\
|
|
486
|
+
'(-t --title)'{-t,--title}'[Item title]:title' \\
|
|
487
|
+
'(-d --description)'{-d,--description}'[Item description]:description' \\
|
|
488
|
+
'(-b --body)'{-b,--body}'[Item body]:body' \\
|
|
234
489
|
'(-p --priority)'{-p,--priority}'[Priority (0-4)]:(0 1 2 3 4)' \\
|
|
235
|
-
'--type[Item type]:(
|
|
490
|
+
'--type[Item type]:(${typeChoices})' \\
|
|
236
491
|
'--tags[Comma-separated tags]:tags' \\
|
|
492
|
+
'--deadline[Deadline (ISO/date string or relative +6h/+1d/+2w/+6m)]:deadline' \\
|
|
493
|
+
'--estimate[Estimated minutes]:minutes' \\
|
|
494
|
+
'--acceptance-criteria[Acceptance criteria]:criteria' \\
|
|
495
|
+
'--definition-of-ready[Definition of ready]:definition_of_ready' \\
|
|
496
|
+
'--order[Planning order/rank]:order' \\
|
|
497
|
+
'--goal[Goal identifier]:goal' \\
|
|
498
|
+
'--objective[Objective identifier]:objective' \\
|
|
499
|
+
'--value[Business value summary]:value' \\
|
|
500
|
+
'--impact[Business impact summary]:impact' \\
|
|
501
|
+
'--outcome[Expected outcome summary]:outcome' \\
|
|
502
|
+
'--why-now[Why-now rationale]:why_now' \\
|
|
503
|
+
'--reviewer[Reviewer]:reviewer' \\
|
|
504
|
+
'--risk[Risk level]:risk' \\
|
|
505
|
+
'--confidence[Confidence level]:confidence' \\
|
|
506
|
+
'--sprint[Sprint identifier]:sprint' \\
|
|
507
|
+
'--release[Release identifier]:release' \\
|
|
508
|
+
'--reporter[Issue reporter]:reporter' \\
|
|
509
|
+
'--severity[Issue severity]:severity' \\
|
|
510
|
+
'--environment[Issue environment context]:environment' \\
|
|
511
|
+
'--repro-steps[Issue reproduction steps]:repro_steps' \\
|
|
512
|
+
'--resolution[Issue resolution summary]:resolution' \\
|
|
513
|
+
'--expected-result[Issue expected behavior]:expected_result' \\
|
|
514
|
+
'--actual-result[Issue observed behavior]:actual_result' \\
|
|
515
|
+
'--affected-version[Affected version identifier]:affected_version' \\
|
|
516
|
+
'--fixed-version[Fixed version identifier]:fixed_version' \\
|
|
517
|
+
'--component[Issue component ownership]:component' \\
|
|
518
|
+
'--regression[Regression marker true|false|1|0]:regression' \\
|
|
519
|
+
'--customer-impact[Customer impact summary]:customer_impact' \\
|
|
520
|
+
'--dep[Dependency seed id=<id>,kind=<kind>,author=<author>,created_at=<timestamp>]:dep' \\
|
|
521
|
+
'--dep-remove[Dependency removal selector id=<id>,kind=<kind>,author=<author>,created_at=<timestamp>]:dep_remove' \\
|
|
522
|
+
'--replace-deps[Atomically replace dependencies with provided --dep values]' \\
|
|
523
|
+
'--replace-tests[Atomically replace linked tests with provided --test values]' \\
|
|
524
|
+
'--comment[Comment seed author=<value>,created_at=<iso|now>,text=<value>]:comment' \\
|
|
525
|
+
'--note[Note seed author=<value>,created_at=<iso|now>,text=<value>]:note' \\
|
|
526
|
+
'--learning[Learning seed author=<value>,created_at=<iso|now>,text=<value>]:learning' \\
|
|
527
|
+
'--file[Linked file path=<value>,scope=<project|global>,note=<text>]:file' \\
|
|
528
|
+
'--test[Linked test command=<value>,path=<value>,scope=<project|global>]:test' \\
|
|
529
|
+
'--doc[Linked doc path=<value>,scope=<project|global>,note=<text>]:doc' \\
|
|
530
|
+
'--reminder[Reminder entry at=<iso|relative>,text=<text>]:reminder' \\
|
|
531
|
+
'--event[Event entry start=<iso|relative>,end=<iso|relative>,recur_*]:event' \\
|
|
532
|
+
'--type-option[Type option key=value or key=<name>,value=<value>]:type_option' \\
|
|
533
|
+
'--unset[Clear scalar metadata field by name]:field' \\
|
|
534
|
+
'--clear-deps[Clear dependency entries]' \\
|
|
535
|
+
'--clear-comments[Clear comments]' \\
|
|
536
|
+
'--clear-notes[Clear notes]' \\
|
|
537
|
+
'--clear-learnings[Clear learnings]' \\
|
|
538
|
+
'--clear-files[Clear linked files]' \\
|
|
539
|
+
'--clear-tests[Clear linked tests]' \\
|
|
540
|
+
'--clear-docs[Clear linked docs]' \\
|
|
541
|
+
'--clear-reminders[Clear reminders]' \\
|
|
542
|
+
'--clear-events[Clear events]' \\
|
|
543
|
+
'--clear-type-options[Clear type options]' \\
|
|
544
|
+
'--allow-audit-update[Allow non-owner metadata-only audit updates without requiring --force]' \\
|
|
545
|
+
'--author[Mutation author]:author' \\
|
|
546
|
+
'--message[History message]:message' \\
|
|
547
|
+
'--force[Force override]' \\
|
|
548
|
+
'--json[Output JSON]' \\
|
|
549
|
+
'--quiet[Suppress stdout]'
|
|
550
|
+
;;
|
|
551
|
+
normalize)
|
|
552
|
+
_arguments \\
|
|
553
|
+
'--filter-status[Filter by status before planning or apply]:(draft open in_progress blocked closed canceled)' \\
|
|
554
|
+
'--filter-type[Filter by type before planning or apply]:(${typeChoices})' \\
|
|
555
|
+
'--filter-tag[Filter by tag before planning or apply]:(${zshTagChoices})' \\
|
|
556
|
+
'--filter-priority[Filter by priority before planning or apply]:(0 1 2 3 4)' \\
|
|
557
|
+
'--filter-deadline-before[Filter by deadline upper bound]:deadline' \\
|
|
558
|
+
'--filter-deadline-after[Filter by deadline lower bound]:deadline' \\
|
|
559
|
+
'--filter-assignee[Filter by assignee before planning or apply]:assignee' \\
|
|
560
|
+
'--filter-assignee-filter[Filter assignee presence]:(assigned unassigned)' \\
|
|
561
|
+
'--filter-parent[Filter by parent item ID]:parent' \\
|
|
562
|
+
'--filter-sprint[Filter by sprint]:sprint' \\
|
|
563
|
+
'--filter-release[Filter by release]:release' \\
|
|
564
|
+
'--limit[Limit matched item count]:number' \\
|
|
565
|
+
'--offset[Skip first n matched rows]:number' \\
|
|
566
|
+
'--dry-run[Preview normalize findings without mutating]' \\
|
|
567
|
+
'--apply[Apply normalize changes]' \\
|
|
568
|
+
'--allow-audit-update[Allow non-owner metadata-only audit updates without requiring --force]' \\
|
|
237
569
|
'--author[Mutation author]:author' \\
|
|
238
570
|
'--message[History message]:message' \\
|
|
239
571
|
'--force[Force override]' \\
|
|
240
572
|
'--json[Output JSON]' \\
|
|
241
573
|
'--quiet[Suppress stdout]'
|
|
242
574
|
;;
|
|
575
|
+
calendar|cal)
|
|
576
|
+
_arguments \\
|
|
577
|
+
'--view[Calendar view]:(agenda day week month)' \\
|
|
578
|
+
'--date[Anchor date/time (ISO/date string or relative)]:date' \\
|
|
579
|
+
'--from[Agenda lower bound (ISO/date string or relative)]:date' \\
|
|
580
|
+
'--to[Agenda upper bound (ISO/date string or relative)]:date' \\
|
|
581
|
+
'--past[Include past entries]' \\
|
|
582
|
+
'--full-period[Include full anchored day/week/month period]' \\
|
|
583
|
+
'--type[Filter by type]:(${typeChoices})' \\
|
|
584
|
+
'--tag[Filter by tag]:(${zshTagChoices})' \\
|
|
585
|
+
'--priority[Filter by priority]:(0 1 2 3 4)' \\
|
|
586
|
+
'--status[Filter by status]:(draft open in_progress blocked closed canceled)' \\
|
|
587
|
+
'--assignee[Filter by assignee]:assignee' \\
|
|
588
|
+
'--assignee-filter[Filter assignee presence]:(assigned unassigned)' \\
|
|
589
|
+
'--sprint[Filter by sprint]:sprint' \\
|
|
590
|
+
'--release[Filter by release]:release' \\
|
|
591
|
+
'--include[Include event sources]:(all deadlines reminders events)' \\
|
|
592
|
+
'--recurrence-lookahead-days[Bound open-ended recurrence lookahead]:days' \\
|
|
593
|
+
'--recurrence-lookback-days[Bound open-ended recurrence lookback]:days' \\
|
|
594
|
+
'--occurrence-limit[Cap occurrences per recurring event]:number' \\
|
|
595
|
+
'--limit[Limit returned events]:number' \\
|
|
596
|
+
'--format[Output override]:(markdown toon json)' \\
|
|
597
|
+
'--json[Output JSON]' \\
|
|
598
|
+
'--quiet[Suppress stdout]'
|
|
599
|
+
;;
|
|
600
|
+
context|ctx)
|
|
601
|
+
_arguments \\
|
|
602
|
+
'--date[Anchor date/time (ISO/date string or relative)]:date' \\
|
|
603
|
+
'--from[Agenda lower bound (ISO/date string or relative)]:date' \\
|
|
604
|
+
'--to[Agenda upper bound (ISO/date string or relative)]:date' \\
|
|
605
|
+
'--past[Include past entries in bounded windows]' \\
|
|
606
|
+
'--type[Filter by type]:(${typeChoices})' \\
|
|
607
|
+
'--tag[Filter by tag]:(${zshTagChoices})' \\
|
|
608
|
+
'--priority[Filter by priority]:(0 1 2 3 4)' \\
|
|
609
|
+
'--assignee[Filter by assignee]:assignee' \\
|
|
610
|
+
'--assignee-filter[Filter assignee presence]:(assigned unassigned)' \\
|
|
611
|
+
'--sprint[Filter by sprint]:sprint' \\
|
|
612
|
+
'--release[Filter by release]:release' \\
|
|
613
|
+
'--limit[Limit focus and agenda rows per section]:number' \\
|
|
614
|
+
'--format[Output override]:(markdown toon json)' \\
|
|
615
|
+
'--json[Output JSON]' \\
|
|
616
|
+
'--quiet[Suppress stdout]'
|
|
617
|
+
;;
|
|
243
618
|
search)
|
|
244
619
|
_arguments \\
|
|
245
620
|
'--mode[Search mode]:(keyword semantic hybrid)' \\
|
|
246
621
|
'--include-linked[Include linked content in scoring]' \\
|
|
247
622
|
'--limit[Max results]:number' \\
|
|
248
|
-
'--type[Filter by type]:(
|
|
249
|
-
'--tag[Filter by tag]:
|
|
623
|
+
'--type[Filter by type]:(${typeChoices})' \\
|
|
624
|
+
'--tag[Filter by tag]:(${zshTagChoices})' \\
|
|
250
625
|
'--priority[Filter by priority]:(0 1 2 3 4)' \\
|
|
251
626
|
'--json[Output JSON]' \\
|
|
252
627
|
'--quiet[Suppress stdout]'
|
|
@@ -254,42 +629,304 @@ _pm() {
|
|
|
254
629
|
reindex)
|
|
255
630
|
_arguments \\
|
|
256
631
|
'--mode[Reindex mode]:(keyword semantic hybrid)' \\
|
|
632
|
+
'--progress[Emit progress updates to stderr]' \\
|
|
257
633
|
'--json[Output JSON]' \\
|
|
258
634
|
'--quiet[Suppress stdout]'
|
|
259
635
|
;;
|
|
260
|
-
history
|
|
636
|
+
history)
|
|
261
637
|
_arguments \\
|
|
262
638
|
'--limit[Max entries]:number' \\
|
|
639
|
+
'--diff[Include changed-field patch summary]' \\
|
|
640
|
+
'--verify[Verify history hash chain and replay integrity]' \\
|
|
641
|
+
'--json[Output JSON]' \\
|
|
642
|
+
'--quiet[Suppress stdout]'
|
|
643
|
+
;;
|
|
644
|
+
activity)
|
|
645
|
+
_arguments \\
|
|
646
|
+
'--id[Filter by item ID]:id' \\
|
|
647
|
+
'--op[Filter by history operation]:op' \\
|
|
648
|
+
'--author[Filter by history author]:author' \\
|
|
649
|
+
'--from[Lower timestamp bound (ISO/date string or relative)]:date' \\
|
|
650
|
+
'--to[Upper timestamp bound (ISO/date string or relative)]:date' \\
|
|
651
|
+
'--limit[Max entries]:number' \\
|
|
652
|
+
'--stream[Emit line-delimited JSON rows]:mode' \\
|
|
653
|
+
'--json[Output JSON]' \\
|
|
654
|
+
'--quiet[Suppress stdout]'
|
|
655
|
+
;;
|
|
656
|
+
contracts)
|
|
657
|
+
_arguments \\
|
|
658
|
+
'--action[Filter schema by tool action]:action' \\
|
|
659
|
+
'--command[Scope output to one command (narrow-by-default)]:command' \\
|
|
660
|
+
'--schema-only[Return schema-only payload]' \\
|
|
661
|
+
'--flags-only[Return command flag contracts only]' \\
|
|
662
|
+
'--availability-only[Return action availability only]' \\
|
|
663
|
+
'--runtime-only[Include only actions invocable in the current runtime]' \\
|
|
664
|
+
'--active-only[Alias for --runtime-only]' \\
|
|
665
|
+
'--json[Output JSON]' \\
|
|
666
|
+
'--quiet[Suppress stdout]'
|
|
667
|
+
;;
|
|
668
|
+
gc)
|
|
669
|
+
_arguments \\
|
|
670
|
+
'--dry-run[Preview cleanup targets without deleting files]' \\
|
|
671
|
+
'--scope[Limit cleanup to one or more scopes]:scope' \\
|
|
672
|
+
'--json[Output JSON]' \\
|
|
673
|
+
'--quiet[Suppress stdout]'
|
|
674
|
+
;;
|
|
675
|
+
comments)
|
|
676
|
+
_arguments \\
|
|
677
|
+
'--add[Add one entry (plain text, text=<value>, markdown pairs, or - for stdin)]:text' \\
|
|
678
|
+
'--limit[Return only latest n entries]:number' \\
|
|
679
|
+
'--author[Entry author (falls back to PM_AUTHOR/settings)]:author' \\
|
|
680
|
+
'--message[History message]:message' \\
|
|
681
|
+
'--allow-audit-comment[Allow non-owner append-only comment audits without requiring --force]' \\
|
|
682
|
+
'--force[Force override]' \\
|
|
683
|
+
'--json[Output JSON]' \\
|
|
684
|
+
'--quiet[Suppress stdout]'
|
|
685
|
+
;;
|
|
686
|
+
notes)
|
|
687
|
+
_arguments \\
|
|
688
|
+
'--add[Add one entry (plain text, text=<value>, markdown pairs, or - for stdin)]:text' \\
|
|
689
|
+
'--limit[Return only latest n entries]:number' \\
|
|
690
|
+
'--author[Entry author (falls back to PM_AUTHOR/settings)]:author' \\
|
|
691
|
+
'--message[History message]:message' \\
|
|
692
|
+
'--allow-audit-note[Allow non-owner append-only note audits without requiring --force]' \\
|
|
693
|
+
'--allow-audit-comment[Backward-compatible alias for --allow-audit-note]' \\
|
|
694
|
+
'--force[Force override]' \\
|
|
695
|
+
'--json[Output JSON]' \\
|
|
696
|
+
'--quiet[Suppress stdout]'
|
|
697
|
+
;;
|
|
698
|
+
learnings)
|
|
699
|
+
_arguments \\
|
|
700
|
+
'--add[Add one entry (plain text, text=<value>, markdown pairs, or - for stdin)]:text' \\
|
|
701
|
+
'--limit[Return only latest n entries]:number' \\
|
|
702
|
+
'--author[Entry author (falls back to PM_AUTHOR/settings)]:author' \\
|
|
703
|
+
'--message[History message]:message' \\
|
|
704
|
+
'--allow-audit-learning[Allow non-owner append-only learning audits without requiring --force]' \\
|
|
705
|
+
'--allow-audit-comment[Backward-compatible alias for --allow-audit-learning]' \\
|
|
706
|
+
'--force[Force override]' \\
|
|
707
|
+
'--json[Output JSON]' \\
|
|
708
|
+
'--quiet[Suppress stdout]'
|
|
709
|
+
;;
|
|
710
|
+
deps)
|
|
711
|
+
_arguments \\
|
|
712
|
+
'--format[Output format]:(tree graph)' \\
|
|
713
|
+
'--max-depth[Maximum traversal depth (0 keeps root only)]:depth' \\
|
|
714
|
+
'--collapse[Collapse mode]:(none repeated)' \\
|
|
715
|
+
'--summary[Return counts only without tree/graph payload]' \\
|
|
716
|
+
'--json[Output JSON]' \\
|
|
717
|
+
'--quiet[Suppress stdout]'
|
|
718
|
+
;;
|
|
719
|
+
test)
|
|
720
|
+
_arguments \\
|
|
721
|
+
'--add[Add linked test entry]:entry' \\
|
|
722
|
+
'--remove[Remove linked test entry by command/path]:entry' \\
|
|
723
|
+
'--run[Run linked tests]' \\
|
|
724
|
+
'--background[Run linked tests in managed background mode]' \\
|
|
725
|
+
'--timeout[Default timeout seconds]:seconds' \\
|
|
726
|
+
'--progress[Emit linked-test progress to stderr]' \\
|
|
727
|
+
'--env-set[Set linked-test runtime environment values]:entry' \\
|
|
728
|
+
'--env-clear[Clear linked-test runtime environment values]:name' \\
|
|
729
|
+
'--shared-host-safe[Apply shared-host-safe runtime defaults]' \\
|
|
730
|
+
'--pm-context[PM linked-test context mode]:(schema tracker auto)' \\
|
|
731
|
+
'--override-linked-pm-context[Force run-level --pm-context over per-linked-test pm_context_mode metadata]' \\
|
|
732
|
+
'--fail-on-context-mismatch[Fail when context item counts mismatch]' \\
|
|
733
|
+
'--fail-on-skipped[Treat skipped linked tests as dependency failures]' \\
|
|
734
|
+
'--fail-on-empty-test-run[Treat empty linked-test selections as failures]' \\
|
|
735
|
+
'--require-assertions-for-pm[Require assertions for linked PM command tests]' \\
|
|
736
|
+
'--check-context[Preflight linked PM command context diagnostics before execution]' \\
|
|
737
|
+
'--auto-pm-context[Auto-remediate tracker-read context mismatches using tracker context]' \\
|
|
738
|
+
'--author[Mutation author]:author' \\
|
|
739
|
+
'--message[History message]:message' \\
|
|
740
|
+
'--force[Force override]' \\
|
|
263
741
|
'--json[Output JSON]' \\
|
|
264
742
|
'--quiet[Suppress stdout]'
|
|
265
743
|
;;
|
|
266
744
|
test-all)
|
|
267
745
|
_arguments \\
|
|
268
746
|
'--status[Filter by status]:(open in_progress)' \\
|
|
747
|
+
'--limit[Limit matching items before running linked tests]:number' \\
|
|
748
|
+
'--offset[Skip matching items before running linked tests]:number' \\
|
|
749
|
+
'--background[Run linked tests in managed background mode]' \\
|
|
269
750
|
'--timeout[Default timeout seconds]:seconds' \\
|
|
751
|
+
'--progress[Emit linked-test progress to stderr]' \\
|
|
752
|
+
'--env-set[Set linked-test runtime environment values]:entry' \\
|
|
753
|
+
'--env-clear[Clear linked-test runtime environment values]:name' \\
|
|
754
|
+
'--shared-host-safe[Apply shared-host-safe runtime defaults]' \\
|
|
755
|
+
'--pm-context[PM linked-test context mode]:(schema tracker auto)' \\
|
|
756
|
+
'--override-linked-pm-context[Force run-level --pm-context over per-linked-test pm_context_mode metadata]' \\
|
|
757
|
+
'--fail-on-context-mismatch[Fail when context item counts mismatch]' \\
|
|
758
|
+
'--fail-on-skipped[Treat skipped linked tests as dependency failures]' \\
|
|
759
|
+
'--fail-on-empty-test-run[Treat empty linked-test selections as failures]' \\
|
|
760
|
+
'--require-assertions-for-pm[Require assertions for linked PM command tests]' \\
|
|
761
|
+
'--check-context[Preflight linked PM command context diagnostics before execution]' \\
|
|
762
|
+
'--auto-pm-context[Auto-remediate tracker-read context mismatches using tracker context]' \\
|
|
763
|
+
'--json[Output JSON]' \\
|
|
764
|
+
'--quiet[Suppress stdout]'
|
|
765
|
+
;;
|
|
766
|
+
test-runs)
|
|
767
|
+
_arguments \\
|
|
768
|
+
'1:subcommand:(list status logs stop resume)' \\
|
|
769
|
+
'--status[Filter by background run status]:status:(queued running passed failed stopped canceled)' \\
|
|
770
|
+
'--limit[Limit returned runs]:number' \\
|
|
771
|
+
'--stream[Background log stream]:stream:(stdout stderr both)' \\
|
|
772
|
+
'--tail[Tail number of lines]:number' \\
|
|
773
|
+
'--force[Force stop with SIGKILL]' \\
|
|
774
|
+
'--author[Resume author]:author' \\
|
|
775
|
+
'--json[Output JSON]' \\
|
|
776
|
+
'--quiet[Suppress stdout]'
|
|
777
|
+
;;
|
|
778
|
+
init)
|
|
779
|
+
_arguments \\
|
|
780
|
+
'--preset[Governance preset for new setups]:preset:(minimal default strict)' \\
|
|
781
|
+
'--json[Output JSON]' \\
|
|
782
|
+
'--quiet[Suppress stdout]'
|
|
783
|
+
;;
|
|
784
|
+
init)
|
|
785
|
+
_arguments \\
|
|
786
|
+
'--preset[Governance preset for new setups]:preset:(minimal default strict)' \\
|
|
787
|
+
'--json[Output JSON]' \\
|
|
788
|
+
'--quiet[Suppress stdout]'
|
|
789
|
+
;;
|
|
790
|
+
config)
|
|
791
|
+
_arguments \\
|
|
792
|
+
'--criterion[Criteria value for definition-of-done metadata-required-fields or lifecycle pattern keys (repeatable for set)]:criterion' \\
|
|
793
|
+
'--clear-criteria[Clear config criteria-list key values]' \\
|
|
794
|
+
'--format[Item format for item-format key]:format:(toon json_markdown)' \\
|
|
795
|
+
'--policy[Policy value for supported policy keys]:policy' \\
|
|
796
|
+
'--json[Output JSON]' \\
|
|
797
|
+
'--quiet[Suppress stdout]'
|
|
798
|
+
;;
|
|
799
|
+
close)
|
|
800
|
+
_arguments \\
|
|
801
|
+
'--author[Mutation author]:author' \\
|
|
802
|
+
'--message[History message]:message' \\
|
|
803
|
+
'--validate-close[Validate closure metadata mode]:(off warn strict)' \\
|
|
804
|
+
'--force[Force override]' \\
|
|
805
|
+
'--json[Output JSON]' \\
|
|
806
|
+
'--quiet[Suppress stdout]'
|
|
807
|
+
;;
|
|
808
|
+
claim)
|
|
809
|
+
_arguments \\
|
|
810
|
+
'--author[Mutation author]:author' \\
|
|
811
|
+
'--message[History message]:message' \\
|
|
812
|
+
'--force[Force override]' \\
|
|
813
|
+
'--json[Output JSON]' \\
|
|
814
|
+
'--quiet[Suppress stdout]'
|
|
815
|
+
;;
|
|
816
|
+
release)
|
|
817
|
+
_arguments \\
|
|
818
|
+
'--author[Mutation author]:author' \\
|
|
819
|
+
'--message[History message]:message' \\
|
|
820
|
+
'--allow-audit-release[Allow non-owner release handoffs without requiring --force]' \\
|
|
821
|
+
'--force[Force override]' \\
|
|
822
|
+
'--json[Output JSON]' \\
|
|
823
|
+
'--quiet[Suppress stdout]'
|
|
824
|
+
;;
|
|
825
|
+
start-task|pause-task)
|
|
826
|
+
_arguments \\
|
|
827
|
+
'--author[Mutation author]:author' \\
|
|
828
|
+
'--message[History message]:message' \\
|
|
829
|
+
'--force[Force override]' \\
|
|
830
|
+
'--json[Output JSON]' \\
|
|
831
|
+
'--quiet[Suppress stdout]'
|
|
832
|
+
;;
|
|
833
|
+
close-task)
|
|
834
|
+
_arguments \\
|
|
835
|
+
'--author[Mutation author]:author' \\
|
|
836
|
+
'--message[History message]:message' \\
|
|
837
|
+
'--validate-close[Validate closure metadata mode]:(off warn strict)' \\
|
|
838
|
+
'--force[Force override]' \\
|
|
839
|
+
'--json[Output JSON]' \\
|
|
840
|
+
'--quiet[Suppress stdout]'
|
|
841
|
+
;;
|
|
842
|
+
validate)
|
|
843
|
+
_arguments \\
|
|
844
|
+
'--check-metadata[Run metadata completeness checks]' \\
|
|
845
|
+
'--metadata-profile[Select metadata validation profile for --check-metadata]:(core strict custom)' \\
|
|
846
|
+
'--check-resolution[Run closed-item resolution metadata checks]' \\
|
|
847
|
+
'--check-lifecycle[Run active-item lifecycle governance drift checks]' \\
|
|
848
|
+
'--check-stale-blockers[Include stale blocker-pattern diagnostics in lifecycle checks]' \\
|
|
849
|
+
'--dependency-cycle-severity[Set dependency-cycle warning policy for lifecycle checks]:(off warn error)' \\
|
|
850
|
+
'--check-files[Run linked-file and orphaned-file checks]' \\
|
|
851
|
+
'--scan-mode[Select file candidate scan mode for --check-files]:(default tracked-all tracked-all-strict)' \\
|
|
852
|
+
'--include-pm-internals[Include PM storage internals in tracked-all candidate scans]' \\
|
|
853
|
+
'--verbose-file-lists[Include full file-path lists for validate --check-files details]' \\
|
|
854
|
+
'--strict-exit[Return non-zero exit when validation warnings are present]' \\
|
|
855
|
+
'--fail-on-warn[Alias for --strict-exit]' \\
|
|
856
|
+
'--check-history-drift[Run item/history hash drift checks]' \\
|
|
857
|
+
'--check-command-references[Run linked-command PM-ID reference checks]' \\
|
|
858
|
+
'--json[Output JSON]' \\
|
|
859
|
+
'--quiet[Suppress stdout]'
|
|
860
|
+
;;
|
|
861
|
+
health)
|
|
862
|
+
_arguments \\
|
|
863
|
+
'--strict-directories[Treat optional item-type directories as required failures]' \\
|
|
864
|
+
'--check-only[Run read-only health diagnostics without refreshing vectors]' \\
|
|
865
|
+
'--no-refresh[Disable automatic vector refresh attempts during health checks]' \\
|
|
866
|
+
'--refresh-vectors[Explicitly enable vector refresh attempts during health checks]' \\
|
|
867
|
+
'--verbose-stale-items[Include full stale vectorization ID lists in health output]' \\
|
|
868
|
+
'--strict-exit[Return non-zero exit when health warnings are present]' \\
|
|
869
|
+
'--fail-on-warn[Alias for --strict-exit]' \\
|
|
270
870
|
'--json[Output JSON]' \\
|
|
271
871
|
'--quiet[Suppress stdout]'
|
|
272
872
|
;;
|
|
273
|
-
|
|
873
|
+
comments-audit)
|
|
274
874
|
_arguments \\
|
|
275
|
-
'--
|
|
276
|
-
'--
|
|
875
|
+
'--status[Filter by item status]:status:(draft open in_progress blocked closed canceled)' \\
|
|
876
|
+
'--type[Filter by item type]:(${typeChoices})' \\
|
|
877
|
+
'--tag[Filter by tag]:(${zshTagChoices})' \\
|
|
878
|
+
'--priority[Filter by priority]:(0 1 2 3 4)' \\
|
|
879
|
+
'--parent[Filter by parent item ID]:parent_id' \\
|
|
880
|
+
'--sprint[Filter by sprint]:sprint' \\
|
|
881
|
+
'--release[Filter by release]:release' \\
|
|
882
|
+
'--assignee[Filter by assignee]:assignee' \\
|
|
883
|
+
'--assignee-filter[Filter assignee presence]:(assigned unassigned)' \\
|
|
884
|
+
'--limit-items[Limit returned item count]:number' \\
|
|
885
|
+
'--limit[Alias for --limit-items]:number' \\
|
|
886
|
+
'--full-history[Export full comment history rows (cannot be combined with --latest)]' \\
|
|
887
|
+
'--latest[Return latest n comments per item (0 for summary-only rows)]:number' \\
|
|
888
|
+
'--json[Output JSON]' \\
|
|
889
|
+
'--quiet[Suppress stdout]'
|
|
890
|
+
;;
|
|
891
|
+
extension)
|
|
892
|
+
_arguments \\
|
|
893
|
+
'1:extension_action:(init scaffold install uninstall explore manage doctor adopt adopt-all activate deactivate)' \\
|
|
894
|
+
'--init[Generate a starter extension scaffold at target path]' \\
|
|
895
|
+
'--scaffold[Alias for --init]' \\
|
|
896
|
+
'--install[Install extension from local path or GitHub source]' \\
|
|
897
|
+
'--uninstall[Uninstall extension by name]' \\
|
|
898
|
+
'--explore[List discovered extensions for selected scope]' \\
|
|
899
|
+
'--manage[List managed extensions with update metadata]' \\
|
|
900
|
+
'--doctor[Run consolidated extension diagnostics (summary/deep)]' \\
|
|
901
|
+
'--adopt[Adopt an unmanaged extension into managed metadata]' \\
|
|
902
|
+
'--adopt-all[Adopt all unmanaged extensions into managed metadata]' \\
|
|
903
|
+
'--activate[Activate extension in selected scope settings]' \\
|
|
904
|
+
'--deactivate[Deactivate extension in selected scope settings]' \\
|
|
905
|
+
'--project[Use project extension scope (default)]' \\
|
|
906
|
+
'--local[Alias for --project]' \\
|
|
907
|
+
'--global[Use global extension scope]' \\
|
|
908
|
+
'--gh[Install from GitHub shorthand owner/repo/path]:github_spec' \\
|
|
909
|
+
'--github[Alias for --gh]:github_spec' \\
|
|
910
|
+
'--ref[Git ref/branch/tag for GitHub source]:git_ref' \\
|
|
911
|
+
'--detail[Detail mode for extension diagnostics]:detail_mode:(summary deep)' \\
|
|
912
|
+
'--trace[Include registration traces in doctor deep diagnostics]' \\
|
|
913
|
+
'--runtime-probe[Opt-in runtime activation probe for manage output]' \\
|
|
914
|
+
'--fix-managed-state[Adopt unmanaged extensions before diagnostics/update checks]' \\
|
|
915
|
+
'--strict-exit[Return non-zero exit when doctor warnings are present]' \\
|
|
916
|
+
'--fail-on-warn[Alias for --strict-exit (doctor)]' \\
|
|
277
917
|
'--json[Output JSON]' \\
|
|
278
918
|
'--quiet[Suppress stdout]' \\
|
|
279
|
-
'
|
|
919
|
+
'*:target_or_name:_files -/'
|
|
280
920
|
;;
|
|
281
921
|
completion)
|
|
282
|
-
_arguments
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
local -a beads_cmds
|
|
286
|
-
beads_cmds=('import:Import Beads JSONL records')
|
|
287
|
-
_describe 'beads command' beads_cmds
|
|
922
|
+
_arguments \\
|
|
923
|
+
'--eager-tags[Embed current tracker tags directly in script output]' \\
|
|
924
|
+
'1:shell:(bash zsh fish)'
|
|
288
925
|
;;
|
|
289
|
-
|
|
290
|
-
local -a
|
|
291
|
-
|
|
292
|
-
_describe '
|
|
926
|
+
templates)
|
|
927
|
+
local -a templates_cmds
|
|
928
|
+
templates_cmds=('save:Save or update a create template' 'list:List saved create templates' 'show:Show saved template details')
|
|
929
|
+
_describe 'templates command' templates_cmds
|
|
293
930
|
;;
|
|
294
931
|
esac
|
|
295
932
|
;;
|
|
@@ -298,17 +935,38 @@ _pm() {
|
|
|
298
935
|
|
|
299
936
|
compdef _pm pm`;
|
|
300
937
|
}
|
|
301
|
-
export function generateFishScript() {
|
|
302
|
-
const listCmds =
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
"
|
|
310
|
-
|
|
311
|
-
|
|
938
|
+
export function generateFishScript(itemTypes = DEFAULT_ITEM_TYPES, tags = [], eagerTagExpansion = false) {
|
|
939
|
+
const listCmds = ALL_COMMANDS.filter((command) => command === "list" || command.startsWith("list-")).join(" ");
|
|
940
|
+
const noSubcommandList = ALL_COMMANDS.join(" ");
|
|
941
|
+
const typeChoices = itemTypes.join(" ");
|
|
942
|
+
const tagChoices = joinCompletionValues(tags);
|
|
943
|
+
const useEagerTagExpansion = eagerTagExpansion || tags.length > 0;
|
|
944
|
+
const fishTagChoices = useEagerTagExpansion ? `'${tagChoices}'` : "'(__pm_tag_choices)'";
|
|
945
|
+
const dynamicTagResolver = useEagerTagExpansion
|
|
946
|
+
? ""
|
|
947
|
+
: `
|
|
948
|
+
function __pm_tag_choices
|
|
949
|
+
set -l now (date +%s ^/dev/null)
|
|
950
|
+
if test -z "$now"
|
|
951
|
+
set now 0
|
|
952
|
+
end
|
|
953
|
+
set -l ttl 120
|
|
954
|
+
if set -q PM_COMPLETION_TAG_TTL
|
|
955
|
+
set ttl $PM_COMPLETION_TAG_TTL
|
|
956
|
+
end
|
|
957
|
+
if set -q PM_COMPLETION_TAG_CACHE; and set -q PM_COMPLETION_TAG_CACHE_TS
|
|
958
|
+
set -l age (math "$now - $PM_COMPLETION_TAG_CACHE_TS")
|
|
959
|
+
if test $age -lt $ttl
|
|
960
|
+
printf '%s\n' $PM_COMPLETION_TAG_CACHE
|
|
961
|
+
return
|
|
962
|
+
end
|
|
963
|
+
end
|
|
964
|
+
set -l resolved (pm completion-tags ^/dev/null)
|
|
965
|
+
set -gx PM_COMPLETION_TAG_CACHE $resolved
|
|
966
|
+
set -gx PM_COMPLETION_TAG_CACHE_TS $now
|
|
967
|
+
printf '%s\n' $resolved
|
|
968
|
+
end
|
|
969
|
+
`;
|
|
312
970
|
return `# Fish shell completion for pm
|
|
313
971
|
# Save to ~/.config/fish/completions/pm.fish
|
|
314
972
|
# or run: pm completion fish > ~/.config/fish/completions/pm.fish
|
|
@@ -327,13 +985,14 @@ complete -c pm -s h -l help -d 'Display help'
|
|
|
327
985
|
|
|
328
986
|
# Helper: true when no subcommand has been given yet
|
|
329
987
|
function __pm_no_subcommand
|
|
330
|
-
not __fish_seen_subcommand_from
|
|
988
|
+
not __fish_seen_subcommand_from ${noSubcommandList}
|
|
331
989
|
end
|
|
990
|
+
${dynamicTagResolver}
|
|
332
991
|
|
|
333
992
|
# Subcommands
|
|
334
993
|
complete -c pm -n __pm_no_subcommand -a init -d 'Initialize pm storage for the current workspace'
|
|
335
994
|
complete -c pm -n __pm_no_subcommand -a config -d 'Read or update pm settings'
|
|
336
|
-
complete -c pm -n __pm_no_subcommand -a
|
|
995
|
+
complete -c pm -n __pm_no_subcommand -a extension -d 'Manage extension lifecycle operations'
|
|
337
996
|
complete -c pm -n __pm_no_subcommand -a create -d 'Create a new project management item'
|
|
338
997
|
complete -c pm -n __pm_no_subcommand -a list -d 'List active items with optional filters'
|
|
339
998
|
complete -c pm -n __pm_no_subcommand -a list-all -d 'List all items with optional filters'
|
|
@@ -343,6 +1002,12 @@ complete -c pm -n __pm_no_subcommand -a list-in-progress -d 'List in-progress it
|
|
|
343
1002
|
complete -c pm -n __pm_no_subcommand -a list-blocked -d 'List blocked items with optional filters'
|
|
344
1003
|
complete -c pm -n __pm_no_subcommand -a list-closed -d 'List closed items with optional filters'
|
|
345
1004
|
complete -c pm -n __pm_no_subcommand -a list-canceled -d 'List canceled items with optional filters'
|
|
1005
|
+
complete -c pm -n __pm_no_subcommand -a aggregate -d 'Aggregate grouped item counts for governance queries'
|
|
1006
|
+
complete -c pm -n __pm_no_subcommand -a dedupe-audit -d 'Audit potential duplicate items and emit merge suggestions'
|
|
1007
|
+
complete -c pm -n __pm_no_subcommand -a calendar -d 'Show deadline/reminder calendar views'
|
|
1008
|
+
complete -c pm -n __pm_no_subcommand -a cal -d 'Alias for calendar'
|
|
1009
|
+
complete -c pm -n __pm_no_subcommand -a context -d 'Show a token-efficient project context snapshot'
|
|
1010
|
+
complete -c pm -n __pm_no_subcommand -a ctx -d 'Alias for context'
|
|
346
1011
|
complete -c pm -n __pm_no_subcommand -a get -d 'Show item details by ID'
|
|
347
1012
|
complete -c pm -n __pm_no_subcommand -a search -d 'Search items with keyword, semantic, or hybrid modes'
|
|
348
1013
|
complete -c pm -n __pm_no_subcommand -a reindex -d 'Rebuild search artifacts'
|
|
@@ -350,101 +1015,483 @@ complete -c pm -n __pm_no_subcommand -a history -d 'Show item history entr
|
|
|
350
1015
|
complete -c pm -n __pm_no_subcommand -a activity -d 'Show recent activity across items'
|
|
351
1016
|
complete -c pm -n __pm_no_subcommand -a restore -d 'Restore an item to an earlier state'
|
|
352
1017
|
complete -c pm -n __pm_no_subcommand -a update -d 'Update item fields and metadata'
|
|
1018
|
+
complete -c pm -n __pm_no_subcommand -a update-many -d 'Bulk-update matched items with dry-run and rollback checkpoints'
|
|
1019
|
+
complete -c pm -n __pm_no_subcommand -a normalize -d 'Normalize lifecycle metadata with dry-run planning or apply mode'
|
|
353
1020
|
complete -c pm -n __pm_no_subcommand -a close -d 'Close an item with a required reason'
|
|
354
1021
|
complete -c pm -n __pm_no_subcommand -a delete -d 'Delete an item and record the change'
|
|
355
1022
|
complete -c pm -n __pm_no_subcommand -a append -d 'Append text to an item body'
|
|
356
1023
|
complete -c pm -n __pm_no_subcommand -a comments -d 'List or add comments for an item'
|
|
1024
|
+
complete -c pm -n __pm_no_subcommand -a comments-audit -d 'Audit latest comments or full history across filtered items'
|
|
1025
|
+
complete -c pm -n __pm_no_subcommand -a notes -d 'List or add notes for an item'
|
|
1026
|
+
complete -c pm -n __pm_no_subcommand -a learnings -d 'List or add learnings for an item'
|
|
357
1027
|
complete -c pm -n __pm_no_subcommand -a files -d 'Manage linked files'
|
|
358
1028
|
complete -c pm -n __pm_no_subcommand -a docs -d 'Manage linked docs'
|
|
1029
|
+
complete -c pm -n __pm_no_subcommand -a deps -d 'Show dependency relationships for an item'
|
|
359
1030
|
complete -c pm -n __pm_no_subcommand -a test -d 'Manage linked tests and optionally run them'
|
|
360
1031
|
complete -c pm -n __pm_no_subcommand -a test-all -d 'Run linked tests across matching items'
|
|
1032
|
+
complete -c pm -n __pm_no_subcommand -a test-runs -d 'Manage background linked-test runs'
|
|
361
1033
|
complete -c pm -n __pm_no_subcommand -a stats -d 'Show project tracker statistics'
|
|
362
1034
|
complete -c pm -n __pm_no_subcommand -a health -d 'Show project tracker health checks'
|
|
1035
|
+
complete -c pm -n __pm_no_subcommand -a validate -d 'Run standalone validation checks'
|
|
363
1036
|
complete -c pm -n __pm_no_subcommand -a gc -d 'Clean optional cache artifacts'
|
|
1037
|
+
complete -c pm -n __pm_no_subcommand -a contracts -d 'Show machine-readable command and schema contracts'
|
|
364
1038
|
complete -c pm -n __pm_no_subcommand -a claim -d 'Claim an item for active work'
|
|
365
1039
|
complete -c pm -n __pm_no_subcommand -a release -d 'Release the active claim for an item'
|
|
366
|
-
complete -c pm -n __pm_no_subcommand -a
|
|
367
|
-
complete -c pm -n __pm_no_subcommand -a
|
|
1040
|
+
complete -c pm -n __pm_no_subcommand -a start-task -d 'Lifecycle alias to claim and set in-progress'
|
|
1041
|
+
complete -c pm -n __pm_no_subcommand -a pause-task -d 'Lifecycle alias to reopen and release claim'
|
|
1042
|
+
complete -c pm -n __pm_no_subcommand -a close-task -d 'Lifecycle alias to close and release claim'
|
|
1043
|
+
complete -c pm -n __pm_no_subcommand -a templates -d 'Manage reusable create templates'
|
|
368
1044
|
complete -c pm -n __pm_no_subcommand -a completion -d 'Generate shell completion'
|
|
369
1045
|
|
|
370
1046
|
# list* flags
|
|
371
1047
|
for list_cmd in ${listCmds}
|
|
372
|
-
complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l type -d 'Filter by item type' -r -a '
|
|
373
|
-
complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l tag -d 'Filter by tag' -r
|
|
1048
|
+
complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l type -d 'Filter by item type' -r -a '${typeChoices}'
|
|
1049
|
+
complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l tag -d 'Filter by tag' -r -a ${fishTagChoices}
|
|
374
1050
|
complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l priority -d 'Filter by priority' -r -a '0 1 2 3 4'
|
|
375
|
-
complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l assignee -d 'Filter by assignee
|
|
1051
|
+
complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l assignee -d 'Filter by assignee' -r
|
|
1052
|
+
complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l assignee-filter -d 'Filter assignee presence' -r -a 'assigned unassigned'
|
|
376
1053
|
complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l sprint -d 'Filter by sprint' -r
|
|
377
1054
|
complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l release -d 'Filter by release' -r
|
|
378
1055
|
complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l limit -d 'Limit returned item count' -r
|
|
379
|
-
complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l
|
|
380
|
-
complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l
|
|
1056
|
+
complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l offset -d 'Skip the first n matching rows before limit' -r
|
|
1057
|
+
complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l include-body -d 'Include item body in each returned list row'
|
|
1058
|
+
complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l compact -d 'Render compact list projection fields'
|
|
1059
|
+
complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l fields -d 'Render custom comma-separated list fields' -r
|
|
1060
|
+
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'
|
|
1061
|
+
complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l order -d 'Sort order (requires --sort)' -r -a 'asc desc'
|
|
1062
|
+
complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l stream -d 'Emit line-delimited JSON rows (requires --json)'
|
|
1063
|
+
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
|
|
1064
|
+
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
|
|
381
1065
|
end
|
|
382
1066
|
|
|
1067
|
+
# aggregate flags
|
|
1068
|
+
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
|
|
1069
|
+
complete -c pm -n '__fish_seen_subcommand_from aggregate' -l count -d 'Return grouped counts'
|
|
1070
|
+
complete -c pm -n '__fish_seen_subcommand_from aggregate' -l include-unparented -d 'Include unparented rows when grouping by parent'
|
|
1071
|
+
complete -c pm -n '__fish_seen_subcommand_from aggregate' -l status -d 'Filter by status' -r -a 'draft open in_progress blocked closed canceled'
|
|
1072
|
+
complete -c pm -n '__fish_seen_subcommand_from aggregate' -l type -d 'Filter by item type' -r -a '${typeChoices}'
|
|
1073
|
+
complete -c pm -n '__fish_seen_subcommand_from aggregate' -l tag -d 'Filter by tag' -r -a ${fishTagChoices}
|
|
1074
|
+
complete -c pm -n '__fish_seen_subcommand_from aggregate' -l priority -d 'Filter by priority' -r -a '0 1 2 3 4'
|
|
1075
|
+
complete -c pm -n '__fish_seen_subcommand_from aggregate' -l deadline-before -d 'Filter by deadline upper bound (ISO/date string or relative)' -r
|
|
1076
|
+
complete -c pm -n '__fish_seen_subcommand_from aggregate' -l deadline-after -d 'Filter by deadline lower bound (ISO/date string or relative)' -r
|
|
1077
|
+
complete -c pm -n '__fish_seen_subcommand_from aggregate' -l assignee -d 'Filter by assignee' -r
|
|
1078
|
+
complete -c pm -n '__fish_seen_subcommand_from aggregate' -l assignee-filter -d 'Filter assignee presence' -r -a 'assigned unassigned'
|
|
1079
|
+
complete -c pm -n '__fish_seen_subcommand_from aggregate' -l parent -d 'Filter by parent item ID' -r
|
|
1080
|
+
complete -c pm -n '__fish_seen_subcommand_from aggregate' -l sprint -d 'Filter by sprint' -r
|
|
1081
|
+
complete -c pm -n '__fish_seen_subcommand_from aggregate' -l release -d 'Filter by release' -r
|
|
1082
|
+
|
|
1083
|
+
# dedupe-audit flags
|
|
1084
|
+
complete -c pm -n '__fish_seen_subcommand_from dedupe-audit' -l mode -d 'Dedupe mode' -r -a 'title_exact title_fuzzy parent_scope'
|
|
1085
|
+
complete -c pm -n '__fish_seen_subcommand_from dedupe-audit' -l limit -d 'Limit returned duplicate clusters' -r
|
|
1086
|
+
complete -c pm -n '__fish_seen_subcommand_from dedupe-audit' -l threshold -d 'Fuzzy mode token similarity threshold between 0 and 1' -r
|
|
1087
|
+
complete -c pm -n '__fish_seen_subcommand_from dedupe-audit' -l status -d 'Filter by status' -r -a 'draft open in_progress blocked closed canceled'
|
|
1088
|
+
complete -c pm -n '__fish_seen_subcommand_from dedupe-audit' -l type -d 'Filter by item type' -r -a '${typeChoices}'
|
|
1089
|
+
complete -c pm -n '__fish_seen_subcommand_from dedupe-audit' -l tag -d 'Filter by tag' -r -a ${fishTagChoices}
|
|
1090
|
+
complete -c pm -n '__fish_seen_subcommand_from dedupe-audit' -l priority -d 'Filter by priority' -r -a '0 1 2 3 4'
|
|
1091
|
+
complete -c pm -n '__fish_seen_subcommand_from dedupe-audit' -l deadline-before -d 'Filter by deadline upper bound (ISO/date string or relative)' -r
|
|
1092
|
+
complete -c pm -n '__fish_seen_subcommand_from dedupe-audit' -l deadline-after -d 'Filter by deadline lower bound (ISO/date string or relative)' -r
|
|
1093
|
+
complete -c pm -n '__fish_seen_subcommand_from dedupe-audit' -l assignee -d 'Filter by assignee' -r
|
|
1094
|
+
complete -c pm -n '__fish_seen_subcommand_from dedupe-audit' -l assignee-filter -d 'Filter assignee presence' -r -a 'assigned unassigned'
|
|
1095
|
+
complete -c pm -n '__fish_seen_subcommand_from dedupe-audit' -l parent -d 'Filter by parent item ID' -r
|
|
1096
|
+
complete -c pm -n '__fish_seen_subcommand_from dedupe-audit' -l sprint -d 'Filter by sprint' -r
|
|
1097
|
+
complete -c pm -n '__fish_seen_subcommand_from dedupe-audit' -l release -d 'Filter by release' -r
|
|
1098
|
+
|
|
383
1099
|
# create flags
|
|
384
1100
|
complete -c pm -n '__fish_seen_subcommand_from create' -s t -l title -d 'Item title' -r
|
|
385
1101
|
complete -c pm -n '__fish_seen_subcommand_from create' -s d -l description -d 'Item description' -r
|
|
386
|
-
complete -c pm -n '__fish_seen_subcommand_from create' -l type -d 'Item type' -r -a '
|
|
1102
|
+
complete -c pm -n '__fish_seen_subcommand_from create' -l type -d 'Item type' -r -a '${typeChoices}'
|
|
1103
|
+
complete -c pm -n '__fish_seen_subcommand_from create' -l create-mode -d 'Create required-option policy mode' -r -a 'strict progressive'
|
|
1104
|
+
complete -c pm -n '__fish_seen_subcommand_from create' -l schedule-preset -d 'Scheduling preset for Reminder/Meeting/Event' -r -a 'lightweight'
|
|
387
1105
|
complete -c pm -n '__fish_seen_subcommand_from create' -s s -l status -d 'Item status' -r -a 'draft open in_progress blocked'
|
|
388
1106
|
complete -c pm -n '__fish_seen_subcommand_from create' -s p -l priority -d 'Priority (0-4)' -r -a '0 1 2 3 4'
|
|
389
1107
|
complete -c pm -n '__fish_seen_subcommand_from create' -l tags -d 'Comma-separated tags' -r
|
|
390
1108
|
complete -c pm -n '__fish_seen_subcommand_from create' -s b -l body -d 'Item body' -r
|
|
391
|
-
complete -c pm -n '__fish_seen_subcommand_from create' -l deadline -d 'Deadline (ISO or relative +1d/+2w)' -r
|
|
1109
|
+
complete -c pm -n '__fish_seen_subcommand_from create' -l deadline -d 'Deadline (ISO/date string or relative +6h/+1d/+2w/+6m)' -r
|
|
392
1110
|
complete -c pm -n '__fish_seen_subcommand_from create' -l estimate -d 'Estimated minutes' -r
|
|
393
1111
|
complete -c pm -n '__fish_seen_subcommand_from create' -l acceptance-criteria -d 'Acceptance criteria' -r
|
|
1112
|
+
complete -c pm -n '__fish_seen_subcommand_from create' -l reminder -d 'Reminder entry at=<iso|relative>,text=<text>' -r
|
|
1113
|
+
complete -c pm -n '__fish_seen_subcommand_from create' -l event -d 'Event entry start=<iso|relative>,end=<iso|relative>,recur_*' -r
|
|
1114
|
+
complete -c pm -n '__fish_seen_subcommand_from create' -l type-option -d 'Type option key=value or key=<name>,value=<value>' -r
|
|
394
1115
|
complete -c pm -n '__fish_seen_subcommand_from create' -l author -d 'Mutation author' -r
|
|
395
1116
|
complete -c pm -n '__fish_seen_subcommand_from create' -l message -d 'History message' -r
|
|
396
|
-
complete -c pm -n '__fish_seen_subcommand_from create' -l assignee -d 'Assignee
|
|
1117
|
+
complete -c pm -n '__fish_seen_subcommand_from create' -l assignee -d 'Assignee' -r
|
|
1118
|
+
complete -c pm -n '__fish_seen_subcommand_from create' -l unset -d 'Clear scalar metadata field by name' -r
|
|
1119
|
+
complete -c pm -n '__fish_seen_subcommand_from create' -l clear-deps -d 'Clear dependency entries'
|
|
1120
|
+
complete -c pm -n '__fish_seen_subcommand_from create' -l clear-comments -d 'Clear comments'
|
|
1121
|
+
complete -c pm -n '__fish_seen_subcommand_from create' -l clear-notes -d 'Clear notes'
|
|
1122
|
+
complete -c pm -n '__fish_seen_subcommand_from create' -l clear-learnings -d 'Clear learnings'
|
|
1123
|
+
complete -c pm -n '__fish_seen_subcommand_from create' -l clear-files -d 'Clear linked files'
|
|
1124
|
+
complete -c pm -n '__fish_seen_subcommand_from create' -l clear-tests -d 'Clear linked tests'
|
|
1125
|
+
complete -c pm -n '__fish_seen_subcommand_from create' -l clear-docs -d 'Clear linked docs'
|
|
1126
|
+
complete -c pm -n '__fish_seen_subcommand_from create' -l clear-reminders -d 'Clear reminders'
|
|
1127
|
+
complete -c pm -n '__fish_seen_subcommand_from create' -l clear-events -d 'Clear events'
|
|
1128
|
+
complete -c pm -n '__fish_seen_subcommand_from create' -l clear-type-options -d 'Clear type options'
|
|
397
1129
|
|
|
398
1130
|
# update flags
|
|
399
1131
|
complete -c pm -n '__fish_seen_subcommand_from update' -s t -l title -d 'Item title' -r
|
|
400
1132
|
complete -c pm -n '__fish_seen_subcommand_from update' -s d -l description -d 'Item description' -r
|
|
1133
|
+
complete -c pm -n '__fish_seen_subcommand_from update' -s b -l body -d 'Item body' -r
|
|
401
1134
|
complete -c pm -n '__fish_seen_subcommand_from update' -s s -l status -d 'Item status' -r -a 'draft open in_progress blocked canceled'
|
|
1135
|
+
complete -c pm -n '__fish_seen_subcommand_from update' -l close-reason -d 'Set close reason' -r
|
|
402
1136
|
complete -c pm -n '__fish_seen_subcommand_from update' -s p -l priority -d 'Priority (0-4)' -r -a '0 1 2 3 4'
|
|
403
|
-
complete -c pm -n '__fish_seen_subcommand_from update' -l type -d 'Item type' -r -a '
|
|
1137
|
+
complete -c pm -n '__fish_seen_subcommand_from update' -l type -d 'Item type' -r -a '${typeChoices}'
|
|
1138
|
+
complete -c pm -n '__fish_seen_subcommand_from update' -l comment -d 'Comment seed author=<value>,created_at=<iso|now>,text=<value>' -r
|
|
1139
|
+
complete -c pm -n '__fish_seen_subcommand_from update' -l note -d 'Note seed author=<value>,created_at=<iso|now>,text=<value>' -r
|
|
1140
|
+
complete -c pm -n '__fish_seen_subcommand_from update' -l learning -d 'Learning seed author=<value>,created_at=<iso|now>,text=<value>' -r
|
|
1141
|
+
complete -c pm -n '__fish_seen_subcommand_from update' -l file -d 'Linked file path=<value>,scope=<project|global>,note=<text>' -r
|
|
1142
|
+
complete -c pm -n '__fish_seen_subcommand_from update' -l test -d 'Linked test command=<value>,path=<value>,scope=<project|global>' -r
|
|
1143
|
+
complete -c pm -n '__fish_seen_subcommand_from update' -l doc -d 'Linked doc path=<value>,scope=<project|global>,note=<text>' -r
|
|
1144
|
+
complete -c pm -n '__fish_seen_subcommand_from update' -l reminder -d 'Reminder entry at=<iso|relative>,text=<text>' -r
|
|
1145
|
+
complete -c pm -n '__fish_seen_subcommand_from update' -l event -d 'Event entry start=<iso|relative>,end=<iso|relative>,recur_*' -r
|
|
1146
|
+
complete -c pm -n '__fish_seen_subcommand_from update' -l type-option -d 'Type option key=value or key=<name>,value=<value>' -r
|
|
1147
|
+
complete -c pm -n '__fish_seen_subcommand_from update' -l unset -d 'Clear scalar metadata field by name' -r
|
|
1148
|
+
complete -c pm -n '__fish_seen_subcommand_from update' -l replace-deps -d 'Atomically replace dependencies with provided --dep values'
|
|
1149
|
+
complete -c pm -n '__fish_seen_subcommand_from update' -l replace-tests -d 'Atomically replace linked tests with provided --test values'
|
|
1150
|
+
complete -c pm -n '__fish_seen_subcommand_from update' -l clear-deps -d 'Clear dependency entries'
|
|
1151
|
+
complete -c pm -n '__fish_seen_subcommand_from update' -l clear-comments -d 'Clear comments'
|
|
1152
|
+
complete -c pm -n '__fish_seen_subcommand_from update' -l clear-notes -d 'Clear notes'
|
|
1153
|
+
complete -c pm -n '__fish_seen_subcommand_from update' -l clear-learnings -d 'Clear learnings'
|
|
1154
|
+
complete -c pm -n '__fish_seen_subcommand_from update' -l clear-files -d 'Clear linked files'
|
|
1155
|
+
complete -c pm -n '__fish_seen_subcommand_from update' -l clear-tests -d 'Clear linked tests'
|
|
1156
|
+
complete -c pm -n '__fish_seen_subcommand_from update' -l clear-docs -d 'Clear linked docs'
|
|
1157
|
+
complete -c pm -n '__fish_seen_subcommand_from update' -l clear-reminders -d 'Clear reminders'
|
|
1158
|
+
complete -c pm -n '__fish_seen_subcommand_from update' -l clear-events -d 'Clear events'
|
|
1159
|
+
complete -c pm -n '__fish_seen_subcommand_from update' -l clear-type-options -d 'Clear type options'
|
|
1160
|
+
complete -c pm -n '__fish_seen_subcommand_from update' -l allow-audit-update -d 'Allow non-owner metadata-only audit updates without requiring --force'
|
|
404
1161
|
complete -c pm -n '__fish_seen_subcommand_from update' -l author -d 'Mutation author' -r
|
|
405
1162
|
complete -c pm -n '__fish_seen_subcommand_from update' -l message -d 'History message' -r
|
|
406
1163
|
complete -c pm -n '__fish_seen_subcommand_from update' -l force -d 'Force override'
|
|
407
1164
|
|
|
1165
|
+
# update-many flags
|
|
1166
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l filter-status -d 'Filter by status before applying updates' -r -a 'draft open in_progress blocked closed canceled'
|
|
1167
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l filter-type -d 'Filter by type before applying updates' -r -a '${typeChoices}'
|
|
1168
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l filter-tag -d 'Filter by tag before applying updates' -r -a ${fishTagChoices}
|
|
1169
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l filter-priority -d 'Filter by priority before applying updates' -r -a '0 1 2 3 4'
|
|
1170
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l filter-deadline-before -d 'Filter by deadline upper bound' -r
|
|
1171
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l filter-deadline-after -d 'Filter by deadline lower bound' -r
|
|
1172
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l filter-assignee -d 'Filter by assignee before applying updates' -r
|
|
1173
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l filter-assignee-filter -d 'Filter assignee presence' -r -a 'assigned unassigned'
|
|
1174
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l filter-parent -d 'Filter by parent item ID' -r
|
|
1175
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l filter-sprint -d 'Filter by sprint before applying updates' -r
|
|
1176
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l filter-release -d 'Filter by release before applying updates' -r
|
|
1177
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l limit -d 'Limit matched item count' -r
|
|
1178
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l offset -d 'Skip first n matched rows' -r
|
|
1179
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l dry-run -d 'Preview updates without mutating'
|
|
1180
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l rollback -d 'Rollback checkpoint ID' -r
|
|
1181
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l no-checkpoint -d 'Disable checkpoint creation during apply mode'
|
|
1182
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -s t -l title -d 'Item title' -r
|
|
1183
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -s d -l description -d 'Item description' -r
|
|
1184
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -s b -l body -d 'Item body' -r
|
|
1185
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -s p -l priority -d 'Priority (0-4)' -r -a '0 1 2 3 4'
|
|
1186
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l type -d 'Item type' -r -a '${typeChoices}'
|
|
1187
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l tags -d 'Comma-separated tags' -r
|
|
1188
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l deadline -d 'Deadline (ISO/date string or relative)' -r
|
|
1189
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l estimate -d 'Estimated minutes' -r
|
|
1190
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l acceptance-criteria -d 'Acceptance criteria' -r
|
|
1191
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l definition-of-ready -d 'Definition of ready' -r
|
|
1192
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l order -d 'Planning order/rank' -r
|
|
1193
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l goal -d 'Goal identifier' -r
|
|
1194
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l objective -d 'Objective identifier' -r
|
|
1195
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l value -d 'Business value summary' -r
|
|
1196
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l impact -d 'Business impact summary' -r
|
|
1197
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l outcome -d 'Expected outcome summary' -r
|
|
1198
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l why-now -d 'Why-now rationale' -r
|
|
1199
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l reviewer -d 'Reviewer' -r
|
|
1200
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l risk -d 'Risk level' -r
|
|
1201
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l confidence -d 'Confidence level' -r
|
|
1202
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l sprint -d 'Sprint identifier' -r
|
|
1203
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l release -d 'Release identifier' -r
|
|
1204
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l reporter -d 'Issue reporter' -r
|
|
1205
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l severity -d 'Issue severity' -r
|
|
1206
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l environment -d 'Issue environment context' -r
|
|
1207
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l repro-steps -d 'Issue reproduction steps' -r
|
|
1208
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l resolution -d 'Issue resolution summary' -r
|
|
1209
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l expected-result -d 'Issue expected behavior' -r
|
|
1210
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l actual-result -d 'Issue observed behavior' -r
|
|
1211
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l affected-version -d 'Affected version identifier' -r
|
|
1212
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l fixed-version -d 'Fixed version identifier' -r
|
|
1213
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l component -d 'Issue component ownership' -r
|
|
1214
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l regression -d 'Regression marker true|false|1|0' -r
|
|
1215
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l customer-impact -d 'Customer impact summary' -r
|
|
1216
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l dep -d 'Dependency seed id=<id>,kind=<kind>,author=<author>,created_at=<timestamp>' -r
|
|
1217
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l dep-remove -d 'Dependency removal selector id=<id>,kind=<kind>,author=<author>,created_at=<timestamp>' -r
|
|
1218
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l replace-deps -d 'Atomically replace dependencies with provided --dep values'
|
|
1219
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l replace-tests -d 'Atomically replace linked tests with provided --test values'
|
|
1220
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l comment -d 'Comment seed author=<value>,created_at=<iso|now>,text=<value>' -r
|
|
1221
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l note -d 'Note seed author=<value>,created_at=<iso|now>,text=<value>' -r
|
|
1222
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l learning -d 'Learning seed author=<value>,created_at=<iso|now>,text=<value>' -r
|
|
1223
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l file -d 'Linked file path=<value>,scope=<project|global>,note=<text>' -r
|
|
1224
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l test -d 'Linked test command=<value>,path=<value>,scope=<project|global>' -r
|
|
1225
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l doc -d 'Linked doc path=<value>,scope=<project|global>,note=<text>' -r
|
|
1226
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l reminder -d 'Reminder entry at=<iso|relative>,text=<text>' -r
|
|
1227
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l event -d 'Event entry start=<iso|relative>,end=<iso|relative>,recur_*' -r
|
|
1228
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l type-option -d 'Type option key=value or key=<name>,value=<value>' -r
|
|
1229
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l unset -d 'Clear scalar metadata field by name' -r
|
|
1230
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l clear-deps -d 'Clear dependency entries'
|
|
1231
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l clear-comments -d 'Clear comments'
|
|
1232
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l clear-notes -d 'Clear notes'
|
|
1233
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l clear-learnings -d 'Clear learnings'
|
|
1234
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l clear-files -d 'Clear linked files'
|
|
1235
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l clear-tests -d 'Clear linked tests'
|
|
1236
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l clear-docs -d 'Clear linked docs'
|
|
1237
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l clear-reminders -d 'Clear reminders'
|
|
1238
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l clear-events -d 'Clear events'
|
|
1239
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l clear-type-options -d 'Clear type options'
|
|
1240
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l allow-audit-update -d 'Allow non-owner metadata-only audit updates without requiring --force'
|
|
1241
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l author -d 'Mutation author' -r
|
|
1242
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l message -d 'History message' -r
|
|
1243
|
+
complete -c pm -n '__fish_seen_subcommand_from update-many' -l force -d 'Force override'
|
|
1244
|
+
|
|
1245
|
+
# normalize flags
|
|
1246
|
+
complete -c pm -n '__fish_seen_subcommand_from normalize' -l filter-status -d 'Filter by status before planning or apply' -r -a 'draft open in_progress blocked closed canceled'
|
|
1247
|
+
complete -c pm -n '__fish_seen_subcommand_from normalize' -l filter-type -d 'Filter by type before planning or apply' -r -a '${typeChoices}'
|
|
1248
|
+
complete -c pm -n '__fish_seen_subcommand_from normalize' -l filter-tag -d 'Filter by tag before planning or apply' -r -a ${fishTagChoices}
|
|
1249
|
+
complete -c pm -n '__fish_seen_subcommand_from normalize' -l filter-priority -d 'Filter by priority before planning or apply' -r -a '0 1 2 3 4'
|
|
1250
|
+
complete -c pm -n '__fish_seen_subcommand_from normalize' -l filter-deadline-before -d 'Filter by deadline upper bound' -r
|
|
1251
|
+
complete -c pm -n '__fish_seen_subcommand_from normalize' -l filter-deadline-after -d 'Filter by deadline lower bound' -r
|
|
1252
|
+
complete -c pm -n '__fish_seen_subcommand_from normalize' -l filter-assignee -d 'Filter by assignee before planning or apply' -r
|
|
1253
|
+
complete -c pm -n '__fish_seen_subcommand_from normalize' -l filter-assignee-filter -d 'Filter assignee presence' -r -a 'assigned unassigned'
|
|
1254
|
+
complete -c pm -n '__fish_seen_subcommand_from normalize' -l filter-parent -d 'Filter by parent item ID' -r
|
|
1255
|
+
complete -c pm -n '__fish_seen_subcommand_from normalize' -l filter-sprint -d 'Filter by sprint before planning or apply' -r
|
|
1256
|
+
complete -c pm -n '__fish_seen_subcommand_from normalize' -l filter-release -d 'Filter by release before planning or apply' -r
|
|
1257
|
+
complete -c pm -n '__fish_seen_subcommand_from normalize' -l limit -d 'Limit matched item count' -r
|
|
1258
|
+
complete -c pm -n '__fish_seen_subcommand_from normalize' -l offset -d 'Skip first n matched rows' -r
|
|
1259
|
+
complete -c pm -n '__fish_seen_subcommand_from normalize' -l dry-run -d 'Preview normalize findings without mutating'
|
|
1260
|
+
complete -c pm -n '__fish_seen_subcommand_from normalize' -l apply -d 'Apply normalize changes'
|
|
1261
|
+
complete -c pm -n '__fish_seen_subcommand_from normalize' -l allow-audit-update -d 'Allow non-owner metadata-only audit updates without requiring --force'
|
|
1262
|
+
complete -c pm -n '__fish_seen_subcommand_from normalize' -l author -d 'Mutation author' -r
|
|
1263
|
+
complete -c pm -n '__fish_seen_subcommand_from normalize' -l message -d 'History message' -r
|
|
1264
|
+
complete -c pm -n '__fish_seen_subcommand_from normalize' -l force -d 'Force override'
|
|
1265
|
+
|
|
408
1266
|
# search flags
|
|
409
1267
|
complete -c pm -n '__fish_seen_subcommand_from search' -l mode -d 'Search mode' -r -a 'keyword semantic hybrid'
|
|
410
1268
|
complete -c pm -n '__fish_seen_subcommand_from search' -l include-linked -d 'Include linked content in scoring'
|
|
411
1269
|
complete -c pm -n '__fish_seen_subcommand_from search' -l limit -d 'Max results' -r
|
|
412
|
-
complete -c pm -n '__fish_seen_subcommand_from search' -l type -d 'Filter by type' -r -a '
|
|
413
|
-
complete -c pm -n '__fish_seen_subcommand_from search' -l tag -d 'Filter by tag' -r
|
|
1270
|
+
complete -c pm -n '__fish_seen_subcommand_from search' -l type -d 'Filter by type' -r -a '${typeChoices}'
|
|
1271
|
+
complete -c pm -n '__fish_seen_subcommand_from search' -l tag -d 'Filter by tag' -r -a ${fishTagChoices}
|
|
414
1272
|
complete -c pm -n '__fish_seen_subcommand_from search' -l priority -d 'Filter by priority' -r -a '0 1 2 3 4'
|
|
415
1273
|
|
|
1274
|
+
# calendar flags
|
|
1275
|
+
complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l view -d 'Calendar view' -r -a 'agenda day week month'
|
|
1276
|
+
complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l date -d 'Anchor date/time (ISO/date string or relative)' -r
|
|
1277
|
+
complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l from -d 'Agenda lower bound (ISO/date string or relative)' -r
|
|
1278
|
+
complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l to -d 'Agenda upper bound (ISO/date string or relative)' -r
|
|
1279
|
+
complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l past -d 'Include past entries'
|
|
1280
|
+
complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l full-period -d 'Include full anchored day/week/month period'
|
|
1281
|
+
complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l type -d 'Filter by type' -r -a '${typeChoices}'
|
|
1282
|
+
complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l tag -d 'Filter by tag' -r -a ${fishTagChoices}
|
|
1283
|
+
complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l priority -d 'Filter by priority' -r -a '0 1 2 3 4'
|
|
1284
|
+
complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l status -d 'Filter by status' -r -a 'draft open in_progress blocked closed canceled'
|
|
1285
|
+
complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l assignee -d 'Filter by assignee' -r
|
|
1286
|
+
complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l assignee-filter -d 'Filter assignee presence' -r -a 'assigned unassigned'
|
|
1287
|
+
complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l sprint -d 'Filter by sprint' -r
|
|
1288
|
+
complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l release -d 'Filter by release' -r
|
|
1289
|
+
complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l include -d 'Include event sources' -r -a 'all deadlines reminders events'
|
|
1290
|
+
complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l recurrence-lookahead-days -d 'Bound open-ended recurrence lookahead' -r
|
|
1291
|
+
complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l recurrence-lookback-days -d 'Bound open-ended recurrence lookback' -r
|
|
1292
|
+
complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l occurrence-limit -d 'Cap occurrences per recurring event' -r
|
|
1293
|
+
complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l limit -d 'Limit returned events' -r
|
|
1294
|
+
complete -c pm -n '__fish_seen_subcommand_from calendar cal' -l format -d 'Output override' -r -a 'markdown toon json'
|
|
1295
|
+
|
|
1296
|
+
# context flags
|
|
1297
|
+
complete -c pm -n '__fish_seen_subcommand_from context ctx' -l date -d 'Anchor date/time (ISO/date string or relative)' -r
|
|
1298
|
+
complete -c pm -n '__fish_seen_subcommand_from context ctx' -l from -d 'Agenda lower bound (ISO/date string or relative)' -r
|
|
1299
|
+
complete -c pm -n '__fish_seen_subcommand_from context ctx' -l to -d 'Agenda upper bound (ISO/date string or relative)' -r
|
|
1300
|
+
complete -c pm -n '__fish_seen_subcommand_from context ctx' -l past -d 'Include past entries in bounded windows'
|
|
1301
|
+
complete -c pm -n '__fish_seen_subcommand_from context ctx' -l type -d 'Filter by type' -r -a '${typeChoices}'
|
|
1302
|
+
complete -c pm -n '__fish_seen_subcommand_from context ctx' -l tag -d 'Filter by tag' -r -a ${fishTagChoices}
|
|
1303
|
+
complete -c pm -n '__fish_seen_subcommand_from context ctx' -l priority -d 'Filter by priority' -r -a '0 1 2 3 4'
|
|
1304
|
+
complete -c pm -n '__fish_seen_subcommand_from context ctx' -l assignee -d 'Filter by assignee' -r
|
|
1305
|
+
complete -c pm -n '__fish_seen_subcommand_from context ctx' -l assignee-filter -d 'Filter assignee presence' -r -a 'assigned unassigned'
|
|
1306
|
+
complete -c pm -n '__fish_seen_subcommand_from context ctx' -l sprint -d 'Filter by sprint' -r
|
|
1307
|
+
complete -c pm -n '__fish_seen_subcommand_from context ctx' -l release -d 'Filter by release' -r
|
|
1308
|
+
complete -c pm -n '__fish_seen_subcommand_from context ctx' -l limit -d 'Limit focus and agenda rows per section' -r
|
|
1309
|
+
complete -c pm -n '__fish_seen_subcommand_from context ctx' -l format -d 'Output override' -r -a 'markdown toon json'
|
|
1310
|
+
|
|
416
1311
|
# reindex flags
|
|
417
1312
|
complete -c pm -n '__fish_seen_subcommand_from reindex' -l mode -d 'Reindex mode' -r -a 'keyword semantic hybrid'
|
|
1313
|
+
complete -c pm -n '__fish_seen_subcommand_from reindex' -l progress -d 'Emit progress updates to stderr'
|
|
418
1314
|
|
|
419
1315
|
# history / activity flags
|
|
420
1316
|
complete -c pm -n '__fish_seen_subcommand_from history' -l limit -d 'Max history entries' -r
|
|
1317
|
+
complete -c pm -n '__fish_seen_subcommand_from history' -l diff -d 'Include changed-field patch summary'
|
|
1318
|
+
complete -c pm -n '__fish_seen_subcommand_from history' -l verify -d 'Verify history hash chain and replay integrity'
|
|
1319
|
+
complete -c pm -n '__fish_seen_subcommand_from activity' -l id -d 'Filter by item ID' -r
|
|
1320
|
+
complete -c pm -n '__fish_seen_subcommand_from activity' -l op -d 'Filter by history operation' -r
|
|
1321
|
+
complete -c pm -n '__fish_seen_subcommand_from activity' -l author -d 'Filter by history author' -r
|
|
1322
|
+
complete -c pm -n '__fish_seen_subcommand_from activity' -l from -d 'Lower timestamp bound (ISO/date string or relative)' -r
|
|
1323
|
+
complete -c pm -n '__fish_seen_subcommand_from activity' -l to -d 'Upper timestamp bound (ISO/date string or relative)' -r
|
|
421
1324
|
complete -c pm -n '__fish_seen_subcommand_from activity' -l limit -d 'Max activity entries' -r
|
|
1325
|
+
complete -c pm -n '__fish_seen_subcommand_from activity' -l stream -d 'Emit line-delimited JSON rows'
|
|
1326
|
+
complete -c pm -n '__fish_seen_subcommand_from contracts' -l action -d 'Filter schema by tool action' -r
|
|
1327
|
+
complete -c pm -n '__fish_seen_subcommand_from contracts' -l command -d 'Scope output to one command (narrow-by-default)' -r
|
|
1328
|
+
complete -c pm -n '__fish_seen_subcommand_from contracts' -l schema-only -d 'Return schema-only payload'
|
|
1329
|
+
complete -c pm -n '__fish_seen_subcommand_from contracts' -l flags-only -d 'Return command flag contracts only'
|
|
1330
|
+
complete -c pm -n '__fish_seen_subcommand_from contracts' -l availability-only -d 'Return action availability only'
|
|
1331
|
+
complete -c pm -n '__fish_seen_subcommand_from contracts' -l runtime-only -d 'Include only actions invocable in the current runtime'
|
|
1332
|
+
complete -c pm -n '__fish_seen_subcommand_from contracts' -l active-only -d 'Alias for --runtime-only'
|
|
1333
|
+
complete -c pm -n '__fish_seen_subcommand_from deps' -l format -d 'Output format' -r -a 'tree graph'
|
|
1334
|
+
complete -c pm -n '__fish_seen_subcommand_from deps' -l max-depth -d 'Maximum traversal depth (0 keeps root only)' -r
|
|
1335
|
+
complete -c pm -n '__fish_seen_subcommand_from deps' -l collapse -d 'Collapse mode' -r -a 'none repeated'
|
|
1336
|
+
complete -c pm -n '__fish_seen_subcommand_from deps' -l summary -d 'Return counts only without tree/graph payload'
|
|
1337
|
+
|
|
1338
|
+
# comments / notes / learnings flags
|
|
1339
|
+
complete -c pm -n '__fish_seen_subcommand_from comments notes learnings' -l add -d 'Add one entry (text=<value> or plain text)' -r
|
|
1340
|
+
complete -c pm -n '__fish_seen_subcommand_from comments notes learnings' -l limit -d 'Return only latest n entries' -r
|
|
1341
|
+
complete -c pm -n '__fish_seen_subcommand_from comments notes learnings' -l author -d 'Entry author' -r
|
|
1342
|
+
complete -c pm -n '__fish_seen_subcommand_from comments notes learnings' -l message -d 'History message' -r
|
|
1343
|
+
complete -c pm -n '__fish_seen_subcommand_from comments notes learnings' -l allow-audit-comment -d 'Allow non-owner append-only comment audits (legacy alias for notes/learnings)'
|
|
1344
|
+
complete -c pm -n '__fish_seen_subcommand_from notes' -l allow-audit-note -d 'Allow non-owner append-only note audits without requiring --force'
|
|
1345
|
+
complete -c pm -n '__fish_seen_subcommand_from learnings' -l allow-audit-learning -d 'Allow non-owner append-only learning audits without requiring --force'
|
|
1346
|
+
complete -c pm -n '__fish_seen_subcommand_from comments notes learnings' -l force -d 'Force override'
|
|
1347
|
+
|
|
1348
|
+
# test flags
|
|
1349
|
+
complete -c pm -n '__fish_seen_subcommand_from test' -l add -d 'Add linked test entry' -r
|
|
1350
|
+
complete -c pm -n '__fish_seen_subcommand_from test' -l remove -d 'Remove linked test entry' -r
|
|
1351
|
+
complete -c pm -n '__fish_seen_subcommand_from test' -l run -d 'Run linked tests'
|
|
1352
|
+
complete -c pm -n '__fish_seen_subcommand_from test' -l background -d 'Run linked tests in managed background mode'
|
|
1353
|
+
complete -c pm -n '__fish_seen_subcommand_from test' -l timeout -d 'Default timeout seconds' -r
|
|
1354
|
+
complete -c pm -n '__fish_seen_subcommand_from test' -l progress -d 'Emit linked-test progress to stderr'
|
|
1355
|
+
complete -c pm -n '__fish_seen_subcommand_from test' -l env-set -d 'Set linked-test runtime environment values' -r
|
|
1356
|
+
complete -c pm -n '__fish_seen_subcommand_from test' -l env-clear -d 'Clear linked-test runtime environment values' -r
|
|
1357
|
+
complete -c pm -n '__fish_seen_subcommand_from test' -l shared-host-safe -d 'Apply shared-host-safe runtime defaults'
|
|
1358
|
+
complete -c pm -n '__fish_seen_subcommand_from test' -l pm-context -d 'PM linked-test context mode' -r -a 'schema tracker auto'
|
|
1359
|
+
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'
|
|
1360
|
+
complete -c pm -n '__fish_seen_subcommand_from test' -l fail-on-context-mismatch -d 'Fail when context item counts mismatch'
|
|
1361
|
+
complete -c pm -n '__fish_seen_subcommand_from test' -l fail-on-skipped -d 'Treat skipped linked tests as dependency failures'
|
|
1362
|
+
complete -c pm -n '__fish_seen_subcommand_from test' -l fail-on-empty-test-run -d 'Treat empty linked-test selections as failures'
|
|
1363
|
+
complete -c pm -n '__fish_seen_subcommand_from test' -l require-assertions-for-pm -d 'Require assertions for linked PM command tests'
|
|
1364
|
+
complete -c pm -n '__fish_seen_subcommand_from test' -l check-context -d 'Preflight linked PM command context diagnostics before execution'
|
|
1365
|
+
complete -c pm -n '__fish_seen_subcommand_from test' -l auto-pm-context -d 'Auto-remediate tracker-read context mismatches using tracker context'
|
|
1366
|
+
complete -c pm -n '__fish_seen_subcommand_from test' -l author -d 'Mutation author' -r
|
|
1367
|
+
complete -c pm -n '__fish_seen_subcommand_from test' -l message -d 'History message' -r
|
|
1368
|
+
complete -c pm -n '__fish_seen_subcommand_from test' -l force -d 'Force override'
|
|
422
1369
|
|
|
423
1370
|
# test-all flags
|
|
424
1371
|
complete -c pm -n '__fish_seen_subcommand_from test-all' -l status -d 'Filter by status' -r -a 'open in_progress'
|
|
1372
|
+
complete -c pm -n '__fish_seen_subcommand_from test-all' -l limit -d 'Limit matching items before running linked tests' -r
|
|
1373
|
+
complete -c pm -n '__fish_seen_subcommand_from test-all' -l offset -d 'Skip matching items before running linked tests' -r
|
|
1374
|
+
complete -c pm -n '__fish_seen_subcommand_from test-all' -l background -d 'Run linked tests in managed background mode'
|
|
425
1375
|
complete -c pm -n '__fish_seen_subcommand_from test-all' -l timeout -d 'Default timeout seconds' -r
|
|
1376
|
+
complete -c pm -n '__fish_seen_subcommand_from test-all' -l progress -d 'Emit linked-test progress to stderr'
|
|
1377
|
+
complete -c pm -n '__fish_seen_subcommand_from test-all' -l env-set -d 'Set linked-test runtime environment values' -r
|
|
1378
|
+
complete -c pm -n '__fish_seen_subcommand_from test-all' -l env-clear -d 'Clear linked-test runtime environment values' -r
|
|
1379
|
+
complete -c pm -n '__fish_seen_subcommand_from test-all' -l shared-host-safe -d 'Apply shared-host-safe runtime defaults'
|
|
1380
|
+
complete -c pm -n '__fish_seen_subcommand_from test-all' -l pm-context -d 'PM linked-test context mode' -r -a 'schema tracker auto'
|
|
1381
|
+
complete -c pm -n '__fish_seen_subcommand_from test-all' -l override-linked-pm-context -d 'Force run-level --pm-context over per-linked-test metadata'
|
|
1382
|
+
complete -c pm -n '__fish_seen_subcommand_from test-all' -l fail-on-context-mismatch -d 'Fail when context item counts mismatch'
|
|
1383
|
+
complete -c pm -n '__fish_seen_subcommand_from test-all' -l fail-on-skipped -d 'Treat skipped linked tests as dependency failures'
|
|
1384
|
+
complete -c pm -n '__fish_seen_subcommand_from test-all' -l fail-on-empty-test-run -d 'Treat empty linked-test selections as failures'
|
|
1385
|
+
complete -c pm -n '__fish_seen_subcommand_from test-all' -l require-assertions-for-pm -d 'Require assertions for linked PM command tests'
|
|
1386
|
+
complete -c pm -n '__fish_seen_subcommand_from test-all' -l check-context -d 'Preflight linked PM command context diagnostics before execution'
|
|
1387
|
+
complete -c pm -n '__fish_seen_subcommand_from test-all' -l auto-pm-context -d 'Auto-remediate tracker-read context mismatches using tracker context'
|
|
1388
|
+
|
|
1389
|
+
# test-runs flags
|
|
1390
|
+
complete -c pm -n '__fish_seen_subcommand_from test-runs' -a 'list status logs stop resume' -d 'test-runs subcommand'
|
|
1391
|
+
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'
|
|
1392
|
+
complete -c pm -n '__fish_seen_subcommand_from test-runs' -l limit -d 'Limit returned runs' -r
|
|
1393
|
+
complete -c pm -n '__fish_seen_subcommand_from test-runs' -l stream -d 'Background log stream selector' -r -a 'stdout stderr both'
|
|
1394
|
+
complete -c pm -n '__fish_seen_subcommand_from test-runs' -l tail -d 'Tail number of lines from logs' -r
|
|
1395
|
+
complete -c pm -n '__fish_seen_subcommand_from test-runs' -l force -d 'Force-stop run with SIGKILL'
|
|
1396
|
+
complete -c pm -n '__fish_seen_subcommand_from test-runs' -l author -d 'Resume author' -r
|
|
1397
|
+
|
|
1398
|
+
# gc flags
|
|
1399
|
+
complete -c pm -n '__fish_seen_subcommand_from gc' -l dry-run -d 'Preview cleanup targets without deleting files'
|
|
1400
|
+
complete -c pm -n '__fish_seen_subcommand_from gc' -l scope -d 'Limit cleanup to index/embeddings/runtime scopes' -r
|
|
1401
|
+
|
|
1402
|
+
# append flags
|
|
1403
|
+
complete -c pm -n '__fish_seen_subcommand_from append' -s b -l body -d 'Item body' -r
|
|
1404
|
+
complete -c pm -n '__fish_seen_subcommand_from append' -l author -d 'Mutation author' -r
|
|
1405
|
+
complete -c pm -n '__fish_seen_subcommand_from append' -l message -d 'History message' -r
|
|
1406
|
+
complete -c pm -n '__fish_seen_subcommand_from append' -l force -d 'Force override'
|
|
1407
|
+
|
|
1408
|
+
# close flags
|
|
1409
|
+
complete -c pm -n '__fish_seen_subcommand_from claim release start-task pause-task close close-task' -l author -d 'Mutation author' -r
|
|
1410
|
+
complete -c pm -n '__fish_seen_subcommand_from claim release start-task pause-task close close-task' -l message -d 'History message' -r
|
|
1411
|
+
complete -c pm -n '__fish_seen_subcommand_from claim release start-task pause-task close close-task' -l force -d 'Force override'
|
|
1412
|
+
complete -c pm -n '__fish_seen_subcommand_from close close-task' -l validate-close -d 'Validate closure metadata mode' -r -a 'off warn strict'
|
|
1413
|
+
complete -c pm -n '__fish_seen_subcommand_from release' -l allow-audit-release -d 'Allow non-owner release handoffs without requiring --force'
|
|
1414
|
+
|
|
1415
|
+
# validate flags
|
|
1416
|
+
complete -c pm -n '__fish_seen_subcommand_from validate' -l check-metadata -d 'Run metadata completeness checks'
|
|
1417
|
+
complete -c pm -n '__fish_seen_subcommand_from validate' -l metadata-profile -d 'Select metadata validation profile for --check-metadata' -r -a 'core strict custom'
|
|
1418
|
+
complete -c pm -n '__fish_seen_subcommand_from validate' -l check-resolution -d 'Run closed-item resolution metadata checks'
|
|
1419
|
+
complete -c pm -n '__fish_seen_subcommand_from validate' -l check-lifecycle -d 'Run active-item lifecycle governance drift checks'
|
|
1420
|
+
complete -c pm -n '__fish_seen_subcommand_from validate' -l check-stale-blockers -d 'Include stale blocker-pattern diagnostics in lifecycle checks'
|
|
1421
|
+
complete -c pm -n '__fish_seen_subcommand_from validate' -l dependency-cycle-severity -d 'Set dependency-cycle warning policy for lifecycle checks' -r -a 'off warn error'
|
|
1422
|
+
complete -c pm -n '__fish_seen_subcommand_from validate' -l check-files -d 'Run linked-file and orphaned-file checks'
|
|
1423
|
+
complete -c pm -n '__fish_seen_subcommand_from validate' -l scan-mode -d 'Select file candidate scan mode for --check-files' -r -a 'default tracked-all tracked-all-strict'
|
|
1424
|
+
complete -c pm -n '__fish_seen_subcommand_from validate' -l include-pm-internals -d 'Include PM storage internals in tracked-all candidate scans'
|
|
1425
|
+
complete -c pm -n '__fish_seen_subcommand_from validate' -l verbose-file-lists -d 'Include full file-path lists for validate --check-files details'
|
|
1426
|
+
complete -c pm -n '__fish_seen_subcommand_from validate' -l strict-exit -d 'Return non-zero exit when validation warnings are present'
|
|
1427
|
+
complete -c pm -n '__fish_seen_subcommand_from validate' -l fail-on-warn -d 'Alias for --strict-exit'
|
|
1428
|
+
complete -c pm -n '__fish_seen_subcommand_from validate' -l check-history-drift -d 'Run item/history hash drift checks'
|
|
1429
|
+
complete -c pm -n '__fish_seen_subcommand_from validate' -l check-command-references -d 'Run linked-command PM-ID reference checks'
|
|
1430
|
+
complete -c pm -n '__fish_seen_subcommand_from init' -l preset -d 'Governance preset for new setups' -r -a 'minimal default strict'
|
|
1431
|
+
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
|
|
1432
|
+
complete -c pm -n '__fish_seen_subcommand_from config' -l clear-criteria -d 'Clear config criteria-list key values'
|
|
1433
|
+
complete -c pm -n '__fish_seen_subcommand_from config' -l format -d 'Item format for item-format key' -r -a 'toon json_markdown'
|
|
1434
|
+
complete -c pm -n '__fish_seen_subcommand_from config' -l policy -d 'Policy value for supported policy keys' -r
|
|
1435
|
+
complete -c pm -n '__fish_seen_subcommand_from health' -l strict-directories -d 'Treat optional item-type directories as required failures'
|
|
1436
|
+
complete -c pm -n '__fish_seen_subcommand_from health' -l check-only -d 'Run read-only health diagnostics without refreshing vectors'
|
|
1437
|
+
complete -c pm -n '__fish_seen_subcommand_from health' -l no-refresh -d 'Disable automatic vector refresh attempts during health checks'
|
|
1438
|
+
complete -c pm -n '__fish_seen_subcommand_from health' -l refresh-vectors -d 'Explicitly enable vector refresh attempts during health checks'
|
|
1439
|
+
complete -c pm -n '__fish_seen_subcommand_from health' -l verbose-stale-items -d 'Include full stale vectorization ID lists in health output'
|
|
1440
|
+
complete -c pm -n '__fish_seen_subcommand_from health' -l strict-exit -d 'Return non-zero exit when health warnings are present'
|
|
1441
|
+
complete -c pm -n '__fish_seen_subcommand_from health' -l fail-on-warn -d 'Alias for --strict-exit'
|
|
1442
|
+
complete -c pm -n '__fish_seen_subcommand_from comments-audit' -l status -d 'Filter by item status' -r -a 'draft open in_progress blocked closed canceled'
|
|
1443
|
+
complete -c pm -n '__fish_seen_subcommand_from comments-audit' -l type -d 'Filter by item type' -r -a '${typeChoices}'
|
|
1444
|
+
complete -c pm -n '__fish_seen_subcommand_from comments-audit' -l tag -d 'Filter by tag' -r -a ${fishTagChoices}
|
|
1445
|
+
complete -c pm -n '__fish_seen_subcommand_from comments-audit' -l priority -d 'Filter by priority' -r -a '0 1 2 3 4'
|
|
1446
|
+
complete -c pm -n '__fish_seen_subcommand_from comments-audit' -l parent -d 'Filter by parent item ID' -r
|
|
1447
|
+
complete -c pm -n '__fish_seen_subcommand_from comments-audit' -l sprint -d 'Filter by sprint' -r
|
|
1448
|
+
complete -c pm -n '__fish_seen_subcommand_from comments-audit' -l release -d 'Filter by release' -r
|
|
1449
|
+
complete -c pm -n '__fish_seen_subcommand_from comments-audit' -l assignee -d 'Filter by assignee' -r
|
|
1450
|
+
complete -c pm -n '__fish_seen_subcommand_from comments-audit' -l assignee-filter -d 'Filter assignee presence' -r -a 'assigned unassigned'
|
|
1451
|
+
complete -c pm -n '__fish_seen_subcommand_from comments-audit' -l limit-items -d 'Limit returned item count' -r
|
|
1452
|
+
complete -c pm -n '__fish_seen_subcommand_from comments-audit' -l limit -d 'Alias for --limit-items' -r
|
|
1453
|
+
complete -c pm -n '__fish_seen_subcommand_from comments-audit' -l full-history -d 'Export full comment history rows (cannot be combined with --latest)'
|
|
1454
|
+
complete -c pm -n '__fish_seen_subcommand_from comments-audit' -l latest -d 'Return latest n comments per item (0 for summary-only rows)' -r
|
|
426
1455
|
|
|
427
1456
|
# completion shell argument
|
|
1457
|
+
complete -c pm -n '__fish_seen_subcommand_from completion' -l eager-tags -d 'Embed current tracker tags directly in script output'
|
|
428
1458
|
complete -c pm -n '__fish_seen_subcommand_from completion' -a 'bash zsh fish' -d 'Shell type'
|
|
429
1459
|
|
|
430
|
-
#
|
|
431
|
-
complete -c pm -n '__fish_seen_subcommand_from
|
|
432
|
-
complete -c pm -n '__fish_seen_subcommand_from install' -l project -d 'Install into current project .pi/extensions'
|
|
433
|
-
complete -c pm -n '__fish_seen_subcommand_from install' -l global -d 'Install into PI_CODING_AGENT_DIR or ~/.pi/agent'
|
|
434
|
-
|
|
435
|
-
# beads subcommands
|
|
436
|
-
complete -c pm -n '__fish_seen_subcommand_from beads' -a import -d 'Import Beads JSONL records'
|
|
1460
|
+
# templates subcommands
|
|
1461
|
+
complete -c pm -n '__fish_seen_subcommand_from templates' -a 'save list show' -d 'Templates command'
|
|
437
1462
|
|
|
438
|
-
#
|
|
439
|
-
complete -c pm -n '__fish_seen_subcommand_from
|
|
440
|
-
complete -c pm -n '__fish_seen_subcommand_from
|
|
1463
|
+
# extension lifecycle flags
|
|
1464
|
+
complete -c pm -n '__fish_seen_subcommand_from extension' -a 'init scaffold install uninstall explore manage doctor adopt adopt-all activate deactivate' -d 'Extension action subcommand'
|
|
1465
|
+
complete -c pm -n '__fish_seen_subcommand_from extension' -l init -d 'Generate starter extension scaffold'
|
|
1466
|
+
complete -c pm -n '__fish_seen_subcommand_from extension' -l scaffold -d 'Alias for --init'
|
|
1467
|
+
complete -c pm -n '__fish_seen_subcommand_from extension' -l install -d 'Install extension from local path or GitHub source'
|
|
1468
|
+
complete -c pm -n '__fish_seen_subcommand_from extension' -l uninstall -d 'Uninstall extension by name'
|
|
1469
|
+
complete -c pm -n '__fish_seen_subcommand_from extension' -l explore -d 'List discovered extensions for selected scope'
|
|
1470
|
+
complete -c pm -n '__fish_seen_subcommand_from extension' -l manage -d 'List managed extensions with update metadata'
|
|
1471
|
+
complete -c pm -n '__fish_seen_subcommand_from extension' -l doctor -d 'Run consolidated extension diagnostics'
|
|
1472
|
+
complete -c pm -n '__fish_seen_subcommand_from extension' -l adopt -d 'Adopt an unmanaged extension into managed metadata'
|
|
1473
|
+
complete -c pm -n '__fish_seen_subcommand_from extension' -l adopt-all -d 'Adopt all unmanaged extensions into managed metadata'
|
|
1474
|
+
complete -c pm -n '__fish_seen_subcommand_from extension' -l activate -d 'Activate extension in selected scope settings'
|
|
1475
|
+
complete -c pm -n '__fish_seen_subcommand_from extension' -l deactivate -d 'Deactivate extension in selected scope settings'
|
|
1476
|
+
complete -c pm -n '__fish_seen_subcommand_from extension' -l project -d 'Use project extension scope'
|
|
1477
|
+
complete -c pm -n '__fish_seen_subcommand_from extension' -l local -d 'Alias for --project'
|
|
1478
|
+
complete -c pm -n '__fish_seen_subcommand_from extension' -l global -d 'Use global extension scope'
|
|
1479
|
+
complete -c pm -n '__fish_seen_subcommand_from extension' -l gh -d 'GitHub shorthand owner/repo/path' -r
|
|
1480
|
+
complete -c pm -n '__fish_seen_subcommand_from extension' -l github -d 'Alias for --gh' -r
|
|
1481
|
+
complete -c pm -n '__fish_seen_subcommand_from extension' -l ref -d 'Git ref/branch/tag for GitHub source' -r
|
|
1482
|
+
complete -c pm -n '__fish_seen_subcommand_from extension' -l detail -d 'Detail mode for extension diagnostics' -r -a 'summary deep'
|
|
1483
|
+
complete -c pm -n '__fish_seen_subcommand_from extension' -l trace -d 'Include registration traces in doctor deep diagnostics'
|
|
1484
|
+
complete -c pm -n '__fish_seen_subcommand_from extension' -l runtime-probe -d 'Opt-in runtime activation probe for manage output'
|
|
1485
|
+
complete -c pm -n '__fish_seen_subcommand_from extension' -l fix-managed-state -d 'Adopt unmanaged extensions before diagnostics/update checks'
|
|
1486
|
+
complete -c pm -n '__fish_seen_subcommand_from extension' -l strict-exit -d 'Return non-zero exit when doctor warnings are present'
|
|
1487
|
+
complete -c pm -n '__fish_seen_subcommand_from extension' -l fail-on-warn -d 'Alias for --strict-exit (doctor)'`;
|
|
441
1488
|
}
|
|
442
1489
|
const SETUP_HINTS = {
|
|
443
1490
|
bash: 'Add to ~/.bashrc or ~/.bash_profile: eval "$(pm completion bash)"',
|
|
444
1491
|
zsh: 'Add to ~/.zshrc: eval "$(pm completion zsh)"',
|
|
445
1492
|
fish: "Run: pm completion fish > ~/.config/fish/completions/pm.fish",
|
|
446
1493
|
};
|
|
447
|
-
export function runCompletion(shell) {
|
|
1494
|
+
export function runCompletion(shell, itemTypes = DEFAULT_ITEM_TYPES, tags = [], eagerTagExpansion = false, runtime = {}) {
|
|
448
1495
|
const normalized = shell.trim().toLowerCase();
|
|
449
1496
|
if (!VALID_SHELLS.includes(normalized)) {
|
|
450
1497
|
throw new PmCliError(`Unknown shell: "${shell}". Supported shells: ${VALID_SHELLS.join(", ")}.`, EXIT_CODE.USAGE);
|
|
@@ -452,13 +1499,13 @@ export function runCompletion(shell) {
|
|
|
452
1499
|
const validShell = normalized;
|
|
453
1500
|
let script;
|
|
454
1501
|
if (validShell === "bash") {
|
|
455
|
-
script = generateBashScript();
|
|
1502
|
+
script = generateBashScript(itemTypes, tags, eagerTagExpansion, runtime);
|
|
456
1503
|
}
|
|
457
1504
|
else if (validShell === "zsh") {
|
|
458
|
-
script = generateZshScript();
|
|
1505
|
+
script = generateZshScript(itemTypes, tags, eagerTagExpansion);
|
|
459
1506
|
}
|
|
460
1507
|
else {
|
|
461
|
-
script = generateFishScript();
|
|
1508
|
+
script = generateFishScript(itemTypes, tags, eagerTagExpansion);
|
|
462
1509
|
}
|
|
463
1510
|
return {
|
|
464
1511
|
shell: validShell,
|