@unbrained/pm-cli 2026.5.24 → 2026.5.28
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/CHANGELOG.md +953 -522
- package/README.md +2 -10
- package/dist/cli/bootstrap-args.d.ts +18 -1
- package/dist/cli/bootstrap-args.js +143 -3
- package/dist/cli/bootstrap-args.js.map +1 -1
- package/dist/cli/commander-usage.js +134 -11
- package/dist/cli/commander-usage.js.map +1 -1
- package/dist/cli/commands/append.js +4 -3
- package/dist/cli/commands/append.js.map +1 -1
- package/dist/cli/commands/claim.js +5 -4
- package/dist/cli/commands/claim.js.map +1 -1
- package/dist/cli/commands/close.d.ts +3 -0
- package/dist/cli/commands/close.js +26 -3
- package/dist/cli/commands/close.js.map +1 -1
- package/dist/cli/commands/completion.d.ts +2 -2
- package/dist/cli/commands/completion.js +109 -56
- package/dist/cli/commands/completion.js.map +1 -1
- package/dist/cli/commands/config.d.ts +1 -1
- package/dist/cli/commands/config.js +82 -4
- package/dist/cli/commands/config.js.map +1 -1
- package/dist/cli/commands/create.js +7 -272
- package/dist/cli/commands/create.js.map +1 -1
- package/dist/cli/commands/delete.js +4 -3
- package/dist/cli/commands/delete.js.map +1 -1
- package/dist/cli/commands/docs.d.ts +1 -12
- package/dist/cli/commands/docs.js +8 -312
- package/dist/cli/commands/docs.js.map +1 -1
- package/dist/cli/commands/extension/bundled-catalog.d.ts +14 -0
- package/dist/cli/commands/extension/bundled-catalog.js +268 -0
- package/dist/cli/commands/extension/bundled-catalog.js.map +1 -0
- package/dist/cli/commands/extension/doctor.d.ts +31 -0
- package/dist/cli/commands/extension/doctor.js +345 -0
- package/dist/cli/commands/extension/doctor.js.map +1 -0
- package/dist/cli/commands/extension/install-sources.d.ts +37 -0
- package/dist/cli/commands/extension/install-sources.js +384 -0
- package/dist/cli/commands/extension/install-sources.js.map +1 -0
- package/dist/cli/commands/extension/managed-state.d.ts +48 -0
- package/dist/cli/commands/extension/managed-state.js +172 -0
- package/dist/cli/commands/extension/managed-state.js.map +1 -0
- package/dist/cli/commands/extension/scaffold.d.ts +14 -0
- package/dist/cli/commands/extension/scaffold.js +202 -0
- package/dist/cli/commands/extension/scaffold.js.map +1 -0
- package/dist/cli/commands/extension/shared.d.ts +14 -0
- package/dist/cli/commands/extension/shared.js +106 -0
- package/dist/cli/commands/extension/shared.js.map +1 -0
- package/dist/cli/commands/extension.d.ts +36 -68
- package/dist/cli/commands/extension.js +143 -1422
- package/dist/cli/commands/extension.js.map +1 -1
- package/dist/cli/commands/files.d.ts +1 -12
- package/dist/cli/commands/files.js +11 -308
- package/dist/cli/commands/files.js.map +1 -1
- package/dist/cli/commands/get.js +4 -3
- package/dist/cli/commands/get.js.map +1 -1
- package/dist/cli/commands/health.js +17 -3
- package/dist/cli/commands/health.js.map +1 -1
- package/dist/cli/commands/history-redact.js +23 -18
- package/dist/cli/commands/history-redact.js.map +1 -1
- package/dist/cli/commands/history-repair.js +24 -18
- package/dist/cli/commands/history-repair.js.map +1 -1
- package/dist/cli/commands/legacy-none-tokens.d.ts +3 -0
- package/dist/cli/commands/legacy-none-tokens.js +39 -0
- package/dist/cli/commands/legacy-none-tokens.js.map +1 -0
- package/dist/cli/commands/linked-artifacts.d.ts +96 -0
- package/dist/cli/commands/linked-artifacts.js +335 -0
- package/dist/cli/commands/linked-artifacts.js.map +1 -0
- package/dist/cli/commands/linked-test-parsers.d.ts +28 -0
- package/dist/cli/commands/linked-test-parsers.js +192 -0
- package/dist/cli/commands/linked-test-parsers.js.map +1 -0
- package/dist/cli/commands/list.js +19 -5
- package/dist/cli/commands/list.js.map +1 -1
- package/dist/cli/commands/normalize.js +4 -3
- package/dist/cli/commands/normalize.js.map +1 -1
- package/dist/cli/commands/plan.d.ts +5 -0
- package/dist/cli/commands/plan.js +56 -8
- package/dist/cli/commands/plan.js.map +1 -1
- package/dist/cli/commands/recurrence-parsers.d.ts +26 -0
- package/dist/cli/commands/recurrence-parsers.js +98 -0
- package/dist/cli/commands/recurrence-parsers.js.map +1 -0
- package/dist/cli/commands/restore.js +19 -8
- package/dist/cli/commands/restore.js.map +1 -1
- package/dist/cli/commands/search.js +5 -8
- package/dist/cli/commands/search.js.map +1 -1
- package/dist/cli/commands/test/linked-command-detection.d.ts +37 -0
- package/dist/cli/commands/test/linked-command-detection.js +200 -0
- package/dist/cli/commands/test/linked-command-detection.js.map +1 -0
- package/dist/cli/commands/test.d.ts +1 -2
- package/dist/cli/commands/test.js +8 -350
- package/dist/cli/commands/test.js.map +1 -1
- package/dist/cli/commands/update-many.js +4 -3
- package/dist/cli/commands/update-many.js.map +1 -1
- package/dist/cli/commands/update.js +83 -356
- package/dist/cli/commands/update.js.map +1 -1
- package/dist/cli/commands/validate.js +32 -12
- package/dist/cli/commands/validate.js.map +1 -1
- package/dist/cli/error-guidance.d.ts +1 -0
- package/dist/cli/error-guidance.js +6 -2
- package/dist/cli/error-guidance.js.map +1 -1
- package/dist/cli/main.d.ts +11 -0
- package/dist/cli/main.js +76 -28
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/register-list-query.d.ts +4 -1
- package/dist/cli/register-list-query.js +242 -203
- package/dist/cli/register-list-query.js.map +1 -1
- package/dist/cli/register-mutation.js +73 -11
- package/dist/cli/register-mutation.js.map +1 -1
- package/dist/cli/register-operations.js +3 -3
- package/dist/cli/register-operations.js.map +1 -1
- package/dist/cli/register-setup.js +12 -7
- package/dist/cli/register-setup.js.map +1 -1
- package/dist/cli/registration-helpers.js +3 -2
- package/dist/cli/registration-helpers.js.map +1 -1
- package/dist/cli.js +4 -3
- package/dist/cli.js.map +1 -1
- package/dist/core/config/positional-value.d.ts +44 -0
- package/dist/core/config/positional-value.js +109 -0
- package/dist/core/config/positional-value.js.map +1 -0
- package/dist/core/extensions/extension-capability-aliases.d.ts +14 -0
- package/dist/core/extensions/extension-capability-aliases.js +159 -0
- package/dist/core/extensions/extension-capability-aliases.js.map +1 -0
- package/dist/core/extensions/extension-hook-runtime.d.ts +13 -0
- package/dist/core/extensions/extension-hook-runtime.js +414 -0
- package/dist/core/extensions/extension-hook-runtime.js.map +1 -0
- package/dist/core/extensions/extension-policy.d.ts +69 -0
- package/dist/core/extensions/extension-policy.js +481 -0
- package/dist/core/extensions/extension-policy.js.map +1 -0
- package/dist/core/extensions/extension-registries.d.ts +8 -0
- package/dist/core/extensions/extension-registries.js +52 -0
- package/dist/core/extensions/extension-registries.js.map +1 -0
- package/dist/core/extensions/extension-runtime-helpers.d.ts +6 -0
- package/dist/core/extensions/extension-runtime-helpers.js +29 -0
- package/dist/core/extensions/extension-runtime-helpers.js.map +1 -0
- package/dist/core/extensions/extension-types.d.ts +13 -39
- package/dist/core/extensions/extension-types.js +34 -2
- package/dist/core/extensions/extension-types.js.map +1 -1
- package/dist/core/extensions/index.d.ts +7 -0
- package/dist/core/extensions/index.js +11 -2
- package/dist/core/extensions/index.js.map +1 -1
- package/dist/core/extensions/loader.d.ts +4 -22
- package/dist/core/extensions/loader.js +22 -1139
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/history/drift-scan.d.ts +11 -0
- package/dist/core/history/drift-scan.js +114 -32
- package/dist/core/history/drift-scan.js.map +1 -1
- package/dist/core/history/history-rewrite.d.ts +43 -0
- package/dist/core/history/history-rewrite.js +48 -0
- package/dist/core/history/history-rewrite.js.map +1 -0
- package/dist/core/history/history.js +5 -4
- package/dist/core/history/history.js.map +1 -1
- package/dist/core/history/replay.js +4 -3
- package/dist/core/history/replay.js.map +1 -1
- package/dist/core/item/item-record.d.ts +19 -0
- package/dist/core/item/item-record.js +24 -0
- package/dist/core/item/item-record.js.map +1 -0
- package/dist/core/output/mutation-projection.d.ts +31 -0
- package/dist/core/output/mutation-projection.js +103 -0
- package/dist/core/output/mutation-projection.js.map +1 -0
- package/dist/core/output/output.d.ts +2 -0
- package/dist/core/output/output.js +5 -3
- package/dist/core/output/output.js.map +1 -1
- package/dist/core/schema/runtime-schema.js +8 -38
- package/dist/core/schema/runtime-schema.js.map +1 -1
- package/dist/core/search/vector-stores.js +46 -9
- package/dist/core/search/vector-stores.js.map +1 -1
- package/dist/core/sentry/helpers.d.ts +1 -1
- package/dist/core/sentry/helpers.js +20 -3
- package/dist/core/sentry/helpers.js.map +1 -1
- package/dist/core/shared/command-types.d.ts +1 -0
- package/dist/core/shared/command-types.js +2 -2
- package/dist/core/shared/command-types.js.map +1 -1
- package/dist/core/shared/constants.d.ts +10 -1
- package/dist/core/shared/constants.js +56 -58
- package/dist/core/shared/constants.js.map +1 -1
- package/dist/core/shared/levenshtein.js +23 -7
- package/dist/core/shared/levenshtein.js.map +1 -1
- package/dist/core/shared/primitives.d.ts +23 -0
- package/dist/core/shared/primitives.js +39 -2
- package/dist/core/shared/primitives.js.map +1 -1
- package/dist/core/store/front-matter-cache.d.ts +16 -2
- package/dist/core/store/front-matter-cache.js +99 -33
- package/dist/core/store/front-matter-cache.js.map +1 -1
- package/dist/core/store/item-store.js +8 -73
- package/dist/core/store/item-store.js.map +1 -1
- package/dist/mcp/server.js +76 -28
- package/dist/mcp/server.js.map +1 -1
- package/dist/sdk/cli-contracts/enum-contracts.d.ts +20 -0
- package/dist/sdk/cli-contracts/enum-contracts.js +156 -0
- package/dist/sdk/cli-contracts/enum-contracts.js.map +1 -0
- package/dist/sdk/cli-contracts/tool-option-contracts.d.ts +14 -0
- package/dist/sdk/cli-contracts/tool-option-contracts.js +243 -0
- package/dist/sdk/cli-contracts/tool-option-contracts.js.map +1 -0
- package/dist/sdk/cli-contracts/tool-parameter-tables.d.ts +11 -0
- package/dist/sdk/cli-contracts/tool-parameter-tables.js +901 -0
- package/dist/sdk/cli-contracts/tool-parameter-tables.js.map +1 -0
- package/dist/sdk/cli-contracts.d.ts +11 -33
- package/dist/sdk/cli-contracts.js +30 -1356
- package/dist/sdk/cli-contracts.js.map +1 -1
- package/dist/sdk/package-import-adapters.d.ts +74 -0
- package/dist/sdk/package-import-adapters.js +186 -0
- package/dist/sdk/package-import-adapters.js.map +1 -0
- package/dist/sdk/package-runtime-options.d.ts +26 -0
- package/dist/sdk/package-runtime-options.js +71 -0
- package/dist/sdk/package-runtime-options.js.map +1 -0
- package/dist/sdk/runtime.d.ts +2 -0
- package/dist/sdk/runtime.js +4 -2
- package/dist/sdk/runtime.js.map +1 -1
- package/docs/AGENT_GUIDE.md +6 -10
- package/docs/CLAUDE_CODE_PLUGIN.md +5 -28
- package/docs/CODEX_PLUGIN.md +5 -5
- package/docs/COMMANDS.md +19 -3
- package/docs/CONFIGURATION.md +15 -0
- package/docs/EXTENSIONS.md +4 -63
- package/docs/RELEASING.md +4 -4
- package/marketplace.json +7 -3
- package/package.json +9 -6
- package/packages/pm-beads/extensions/beads/index.js +2 -49
- package/packages/pm-beads/extensions/beads/index.ts +2 -54
- package/packages/pm-beads/extensions/beads/runtime-loader.js +86 -0
- package/packages/pm-beads/extensions/beads/runtime-loader.ts +88 -0
- package/packages/pm-beads/extensions/beads/runtime.js +26 -115
- package/packages/pm-beads/extensions/beads/runtime.ts +33 -132
- package/packages/pm-calendar/extensions/calendar/index.js +47 -2
- package/packages/pm-calendar/extensions/calendar/index.ts +52 -2
- package/packages/pm-calendar/extensions/calendar/runtime.js +1 -0
- package/packages/pm-calendar/extensions/calendar/runtime.ts +1 -0
- package/packages/pm-governance-audit/extensions/governance-audit/runtime.js +14 -41
- package/packages/pm-governance-audit/extensions/governance-audit/runtime.ts +25 -41
- package/packages/pm-guide-shell/extensions/guide-shell/runtime.js +10 -50
- package/packages/pm-guide-shell/extensions/guide-shell/runtime.ts +17 -50
- package/packages/pm-linked-test-adapters/extensions/linked-test-adapters/runtime.js +8 -40
- package/packages/pm-linked-test-adapters/extensions/linked-test-adapters/runtime.ts +10 -40
- package/packages/pm-search-advanced/extensions/search-advanced/index.js +1 -1
- package/packages/pm-search-advanced/extensions/search-advanced/runtime.js +4 -37
- package/packages/pm-search-advanced/extensions/search-advanced/runtime.ts +6 -37
- package/packages/pm-todos/extensions/todos/index.js +3 -50
- package/packages/pm-todos/extensions/todos/index.ts +3 -55
- package/packages/pm-todos/extensions/todos/runtime-loader.js +86 -0
- package/packages/pm-todos/extensions/todos/runtime-loader.ts +88 -0
- package/packages/pm-todos/extensions/todos/runtime.js +24 -117
- package/packages/pm-todos/extensions/todos/runtime.ts +32 -129
- package/plugins/pm-claude/README.md +2 -2
- package/plugins/pm-claude/commands/pm-planner.md +1 -15
- package/plugins/pm-claude/scripts/pm-mcp-server.mjs +5 -2
- package/plugins/pm-claude/skills/pm-planner/SKILL.md +3 -21
- package/plugins/pm-codex/scripts/pm-mcp-server.mjs +15 -6
- package/plugins/pm-codex/skills/pm-native/SKILL.md +1 -13
- package/PRD.md +0 -1734
|
@@ -61,5 +61,5 @@ export interface ConfigResult {
|
|
|
61
61
|
changed: boolean;
|
|
62
62
|
warnings?: string[];
|
|
63
63
|
}
|
|
64
|
-
export declare function runConfig(scopeValue: string, actionValue: string, keyValue: string | undefined, options: ConfigCommandOptions, global: GlobalOptions): Promise<ConfigResult>;
|
|
64
|
+
export declare function runConfig(scopeValue: string, actionValue: string, keyValue: string | undefined, options: ConfigCommandOptions, global: GlobalOptions, valueValue?: string): Promise<ConfigResult>;
|
|
65
65
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="5de8e394-f1b2-56ce-9de4-d33ee76eaaa9")}catch(e){}}();
|
|
3
3
|
import { pathExists } from "../../core/fs/fs-utils.js";
|
|
4
|
+
import { resolveConfigPositionalValue } from "../../core/config/positional-value.js";
|
|
4
5
|
import { getActiveExtensionRegistrations } from "../../core/extensions/index.js";
|
|
5
6
|
import { normalizeParentReferencePolicy } from "../../core/item/parent-reference-policy.js";
|
|
6
7
|
import { normalizeSprintReleaseFormatPolicy } from "../../core/item/sprint-release-format.js";
|
|
@@ -99,6 +100,10 @@ const CONFIG_KEY_ALIASES = {
|
|
|
99
100
|
telemetry_tracking: ["telemetry-tracking", "telemetry_tracking"],
|
|
100
101
|
context: ["context"],
|
|
101
102
|
};
|
|
103
|
+
// Canonical kebab-case forms (first alias entry per key). Used for the invalid-key
|
|
104
|
+
// hint so agents see ~21 keys instead of all ~45 kebab+snake variants; snake_case
|
|
105
|
+
// forms stay fully accepted as input via CONFIG_KEY_VALUES/normalizeKey.
|
|
106
|
+
const CANONICAL_CONFIG_KEYS = Object.keys(CONFIG_KEY_ALIASES).map((candidate) => CONFIG_KEY_ALIASES[candidate][0]);
|
|
102
107
|
const CONFIG_KEY_SUMMARIES = {
|
|
103
108
|
definition_of_done: "Definition of Done criteria list.",
|
|
104
109
|
item_format: "Default item file format.",
|
|
@@ -213,7 +218,7 @@ function normalizeKey(value) {
|
|
|
213
218
|
}
|
|
214
219
|
return "definition_of_done";
|
|
215
220
|
}
|
|
216
|
-
throw new PmCliError(`Invalid config key "${value}". Supported: ${
|
|
221
|
+
throw new PmCliError(`Invalid config key "${value}". Supported: ${CANONICAL_CONFIG_KEYS.join(", ")} (underscore variants also accepted)`, EXIT_CODE.USAGE);
|
|
217
222
|
}
|
|
218
223
|
function normalizeCriteria(values, clearCriteria) {
|
|
219
224
|
const normalized = [...new Set((values ?? []).map((value) => value.trim()).filter((value) => value.length > 0))].sort((left, right) => left.localeCompare(right));
|
|
@@ -304,6 +309,36 @@ function normalizeGovernanceForceRequiredForStaleLockPolicy(value) {
|
|
|
304
309
|
}
|
|
305
310
|
throw new PmCliError("Config set governance-force-required-for-stale-lock requires --policy with one of: enabled, disabled", EXIT_CODE.USAGE);
|
|
306
311
|
}
|
|
312
|
+
function normalizePolicyForConflict(key, value) {
|
|
313
|
+
switch (key) {
|
|
314
|
+
case "history_missing_stream_policy":
|
|
315
|
+
return normalizeHistoryMissingStreamPolicy(value);
|
|
316
|
+
case "sprint_release_format_policy":
|
|
317
|
+
return normalizeSprintReleaseFormatPolicy(value);
|
|
318
|
+
case "parent_reference_policy":
|
|
319
|
+
case "governance_parent_reference_policy":
|
|
320
|
+
return normalizeParentReferencePolicy(value);
|
|
321
|
+
case "metadata_validation_profile":
|
|
322
|
+
case "governance_metadata_validation_profile":
|
|
323
|
+
return normalizeValidateMetadataProfile(value);
|
|
324
|
+
case "governance_preset":
|
|
325
|
+
return normalizeGovernancePreset(value);
|
|
326
|
+
case "governance_ownership_enforcement":
|
|
327
|
+
return normalizeGovernanceOwnershipEnforcement(value);
|
|
328
|
+
case "governance_create_mode_default":
|
|
329
|
+
return normalizeGovernanceCreateModeDefault(value);
|
|
330
|
+
case "governance_close_validation_default":
|
|
331
|
+
return normalizeGovernanceCloseValidationDefault(value);
|
|
332
|
+
case "governance_force_required_for_stale_lock":
|
|
333
|
+
return normalizeGovernanceForceRequiredForStaleLockPolicy(value);
|
|
334
|
+
case "test_result_tracking":
|
|
335
|
+
return normalizeTestResultTrackingPolicy(value);
|
|
336
|
+
case "telemetry_tracking":
|
|
337
|
+
return normalizeTelemetryTrackingPolicy(value);
|
|
338
|
+
default:
|
|
339
|
+
return value.trim().toLowerCase().replaceAll("-", "_");
|
|
340
|
+
}
|
|
341
|
+
}
|
|
307
342
|
const METADATA_REQUIRED_FIELD_ALIAS_MAP = {
|
|
308
343
|
author: "author",
|
|
309
344
|
acceptance_criteria: "acceptance_criteria",
|
|
@@ -542,10 +577,53 @@ async function applyContextConfig(settings, options, target, scope, warnings) {
|
|
|
542
577
|
changed,
|
|
543
578
|
}, warnings);
|
|
544
579
|
}
|
|
545
|
-
|
|
580
|
+
/**
|
|
581
|
+
* Route an intuitive `pm config set <key> <value>` positional value onto the typed
|
|
582
|
+
* flag it belongs to (--format/--policy/--criterion), applying enabled/disabled
|
|
583
|
+
* synonyms. Returns the (possibly augmented) options. The typed-flag forms keep
|
|
584
|
+
* working exactly as before: a positional value is only injected when its flag was
|
|
585
|
+
* not already supplied, and a conflicting explicit flag is a clear error.
|
|
586
|
+
*/
|
|
587
|
+
function applyPositionalValue(action, keyValue, normalizedKey, valueValue, options) {
|
|
588
|
+
if (valueValue === undefined) {
|
|
589
|
+
return options;
|
|
590
|
+
}
|
|
591
|
+
if (action !== "set") {
|
|
592
|
+
throw new PmCliError(`Config action "${action}" does not accept a positional value. Only "set" takes <value>.`, EXIT_CODE.USAGE);
|
|
593
|
+
}
|
|
594
|
+
if (typeof keyValue !== "string" || keyValue.trim().length === 0) {
|
|
595
|
+
throw new PmCliError('Config action "set" requires <key> before a positional <value>.', EXIT_CODE.USAGE);
|
|
596
|
+
}
|
|
597
|
+
const routed = resolveConfigPositionalValue(normalizedKey ?? keyValue, valueValue);
|
|
598
|
+
if (!routed.routable) {
|
|
599
|
+
throw new PmCliError(routed.reason, EXIT_CODE.USAGE);
|
|
600
|
+
}
|
|
601
|
+
if (routed.flag === "criterion") {
|
|
602
|
+
if (options.criterion !== undefined && options.criterion.length > 0) {
|
|
603
|
+
throw new PmCliError(`Config set ${keyValue} received both positional value "${valueValue}" and --criterion. Pass criteria via --criterion only when supplying more than one value.`, EXIT_CODE.USAGE);
|
|
604
|
+
}
|
|
605
|
+
return { ...options, criterion: routed.values };
|
|
606
|
+
}
|
|
607
|
+
if (routed.flag === "format") {
|
|
608
|
+
if (options.format !== undefined &&
|
|
609
|
+
normalizeItemFormat(options.format) !== normalizeItemFormat(routed.value)) {
|
|
610
|
+
throw new PmCliError(`Config set ${keyValue} received both positional value "${valueValue}" and --format "${options.format}". Pass only one.`, EXIT_CODE.USAGE);
|
|
611
|
+
}
|
|
612
|
+
return { ...options, format: routed.value };
|
|
613
|
+
}
|
|
614
|
+
// policy flag (--policy)
|
|
615
|
+
if (options.policy !== undefined &&
|
|
616
|
+
normalizePolicyForConflict(normalizedKey, options.policy) !==
|
|
617
|
+
normalizePolicyForConflict(normalizedKey, routed.value)) {
|
|
618
|
+
throw new PmCliError(`Config set ${keyValue} received both positional value "${valueValue}" and --policy "${options.policy}". Pass only one.`, EXIT_CODE.USAGE);
|
|
619
|
+
}
|
|
620
|
+
return { ...options, policy: routed.value };
|
|
621
|
+
}
|
|
622
|
+
export async function runConfig(scopeValue, actionValue, keyValue, options, global, valueValue) {
|
|
546
623
|
const scope = normalizeScope(scopeValue);
|
|
547
624
|
const action = normalizeAction(actionValue);
|
|
548
625
|
const key = normalizeKeyForAction(action, keyValue);
|
|
626
|
+
options = applyPositionalValue(action, keyValue, key, valueValue, options);
|
|
549
627
|
const target = await resolveSettingsTarget(scope, global);
|
|
550
628
|
const { settings, metadata, warnings: settingsReadWarnings } = await readSettingsWithMetadata(target.pmRoot);
|
|
551
629
|
const warnings = normalizeWarnings(settingsReadWarnings);
|
|
@@ -1146,4 +1224,4 @@ export async function runConfig(scopeValue, actionValue, keyValue, options, glob
|
|
|
1146
1224
|
}, warnings);
|
|
1147
1225
|
}
|
|
1148
1226
|
//# sourceMappingURL=config.js.map
|
|
1149
|
-
//# debugId=
|
|
1227
|
+
//# debugId=5de8e394-f1b2-56ce-9de4-d33ee76eaaa9
|