@unbrained/pm-cli 2026.7.8 → 2026.7.9
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 +7 -0
- package/README.md +1 -0
- package/dist/cli/commands/close.js +5 -2
- package/dist/cli/commands/close.js.map +1 -1
- package/dist/cli/commands/completion.js +8 -2
- package/dist/cli/commands/completion.js.map +1 -1
- package/dist/cli/commands/contracts.d.ts +11 -0
- package/dist/cli/commands/contracts.js +112 -15
- package/dist/cli/commands/contracts.js.map +1 -1
- package/dist/cli/commands/create.js +4 -2
- package/dist/cli/commands/create.js.map +1 -1
- package/dist/cli/commands/list.d.ts +4 -0
- package/dist/cli/commands/list.js +32 -3
- package/dist/cli/commands/list.js.map +1 -1
- package/dist/cli/commands/update.d.ts +32 -1
- package/dist/cli/commands/update.js +19 -2
- package/dist/cli/commands/update.js.map +1 -1
- package/dist/cli/register-list-query.js +4 -2
- package/dist/cli/register-list-query.js.map +1 -1
- package/dist/cli/register-operations.js +4 -2
- package/dist/cli/register-operations.js.map +1 -1
- package/dist/cli/registration-helpers.js +4 -2
- package/dist/cli/registration-helpers.js.map +1 -1
- package/dist/cli-bundle/chunks/{chunk-D63PEJTB.js → chunk-26MFLA7K.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-HI27UADG.js → chunk-2FKIIQMJ.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-RLHQ3G4M.js → chunk-5RJ4LFD3.js} +30 -3
- package/dist/cli-bundle/chunks/chunk-5RJ4LFD3.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-IYRG5AEC.js → chunk-5ZMZF53A.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-UVFJSKTF.js → chunk-63PZJCKO.js} +7 -4
- package/dist/cli-bundle/chunks/chunk-63PZJCKO.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-TUDAYIO7.js → chunk-ASSVI7FP.js} +5 -3
- package/dist/cli-bundle/chunks/{chunk-TUDAYIO7.js.map → chunk-ASSVI7FP.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-KMXVZ2P7.js → chunk-BPYVKTZE.js} +112 -17
- package/dist/cli-bundle/chunks/chunk-BPYVKTZE.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-3FRNNVWY.js → chunk-CEX2DQXZ.js} +405 -75
- package/dist/cli-bundle/chunks/chunk-CEX2DQXZ.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-DUBC6TI3.js → chunk-CHSXGTWF.js} +18 -4
- package/dist/cli-bundle/chunks/{chunk-DUBC6TI3.js.map → chunk-CHSXGTWF.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-G4FKP4ID.js → chunk-DBV5A7FT.js} +6 -4
- package/dist/cli-bundle/chunks/chunk-DBV5A7FT.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-YQEKE4FO.js → chunk-DQLP22K2.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-ZMOPZFVT.js → chunk-GZ365M6E.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-XPSGJ4IV.js → chunk-K2OKKYSO.js} +4 -2
- package/dist/cli-bundle/chunks/{chunk-XPSGJ4IV.js.map → chunk-K2OKKYSO.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-TR2C6V5T.js → chunk-K4NMHZR3.js} +90 -19
- package/dist/cli-bundle/chunks/chunk-K4NMHZR3.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-MYHFZNBO.js → chunk-KAJNWMBE.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-TU5P744I.js → chunk-MBLHA6LR.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-UCRYCT5M.js → chunk-MCZK7LY6.js} +19 -5
- package/dist/cli-bundle/chunks/{chunk-UCRYCT5M.js.map → chunk-MCZK7LY6.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-TTCJCKUJ.js → chunk-N4S7BV43.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-ML27MHNM.js → chunk-NBJCIAVV.js} +88 -17
- package/dist/cli-bundle/chunks/chunk-NBJCIAVV.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-ASMRSIDX.js → chunk-NRYZ4QLH.js} +111 -16
- package/dist/cli-bundle/chunks/chunk-NRYZ4QLH.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-RDJXIAJB.js → chunk-NSPSJWGL.js} +6 -3
- package/dist/cli-bundle/chunks/chunk-NSPSJWGL.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-PJPZTE7P.js → chunk-ONADVBMD.js} +5 -3
- package/dist/cli-bundle/chunks/chunk-ONADVBMD.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-GE44TQMC.js → chunk-P5SUMCU5.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-2RADY7IB.js → chunk-PPY3GXFK.js} +405 -75
- package/dist/cli-bundle/chunks/chunk-PPY3GXFK.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-YR5R4FMQ.js → chunk-S7J3GEHL.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-XN5BEN2B.js → chunk-TI7QSUFK.js} +31 -4
- package/dist/cli-bundle/chunks/chunk-TI7QSUFK.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-EYPIUFWJ.js → chunk-VCGHRLJU.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-P2WE5KCU.js → chunk-WDNPNW22.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-SN5X5GTU.js → chunk-XXN2B2MJ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-GQOKFX2G.js → chunk-Y2736PT5.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-FL625JJM.js → chunk-YHKXNGLA.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-YUCKM3MD.js → chunk-YPE5MFPJ.js} +2 -2
- package/dist/cli-bundle/chunks/{close-E3RLZSP2.js → close-5WY6QO5F.js} +2 -2
- package/dist/cli-bundle/chunks/{close-K6BFI3OX.js → close-TKTFRL7N.js} +2 -2
- package/dist/cli-bundle/chunks/{close-many-6NBL3PM4.js → close-many-HEPL66EG.js} +4 -4
- package/dist/cli-bundle/chunks/{close-many-X4YKS3RO.js → close-many-U2KLQ3NL.js} +4 -4
- package/dist/cli-bundle/chunks/{create-AMBMYP6F.js → create-KCQM6UYM.js} +2 -2
- package/dist/cli-bundle/chunks/{create-TRIBYORN.js → create-LD4SEUD6.js} +2 -2
- package/dist/cli-bundle/chunks/{plan-MK2QY3GA.js → plan-B42KBMX7.js} +3 -3
- package/dist/cli-bundle/chunks/{plan-CJPKFRBK.js → plan-LUR7C24X.js} +3 -3
- package/dist/cli-bundle/chunks/{profile-HTBFINKQ.js → profile-5F75MO5O.js} +3 -3
- package/dist/cli-bundle/chunks/{profile-AQNHXOYA.js → profile-JRDMDGT5.js} +3 -3
- package/dist/cli-bundle/chunks/{register-list-query-EEF33SUJ.js → register-list-query-GZYRZLQZ.js} +8 -8
- package/dist/cli-bundle/chunks/register-list-query-GZYRZLQZ.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-list-query-S4FBWIWN.js → register-list-query-W2W7RQJJ.js} +7 -7
- package/dist/cli-bundle/chunks/register-list-query-W2W7RQJJ.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-mutation-L5Q7AUDN.js → register-mutation-5UDT3WL3.js} +10 -10
- package/dist/cli-bundle/chunks/{register-mutation-QFLRBCI7.js → register-mutation-7DMOYDPC.js} +10 -10
- package/dist/cli-bundle/chunks/{register-operations-QDU43FCG.js → register-operations-NW43IUPE.js} +12 -11
- package/dist/cli-bundle/chunks/register-operations-NW43IUPE.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-operations-HDE4FVW4.js → register-operations-Y4E32W4D.js} +13 -12
- package/dist/cli-bundle/chunks/register-operations-Y4E32W4D.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-setup-EGMTAXDC.js → register-setup-3GVJ7XPE.js} +6 -6
- package/dist/cli-bundle/chunks/{register-setup-PNIO3L2P.js → register-setup-MPTTS52V.js} +6 -6
- package/dist/cli-bundle/chunks/{update-SDIRJGSY.js → update-76CRUMC7.js} +4 -4
- package/dist/cli-bundle/chunks/{update-MP4XLU56.js → update-ZMYVXM77.js} +4 -4
- package/dist/cli-bundle/chunks/{update-many-34AIU6W7.js → update-many-QYQRGNPU.js} +6 -6
- package/dist/cli-bundle/chunks/{update-many-JUPCNOKV.js → update-many-U4CEQWI4.js} +6 -6
- package/dist/cli-bundle/main.js +7 -7
- package/dist/cli-bundle/sdk-runtime.js +81 -17
- package/dist/cli-bundle/sdk.js +84 -20
- package/dist/cli-bundle/sdk.js.map +3 -3
- package/dist/sdk/cli-contracts/flag-contracts.js +5 -2
- package/dist/sdk/cli-contracts/flag-contracts.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-option-contracts.js +10 -5
- package/dist/sdk/cli-contracts/tool-option-contracts.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-parameter-tables.js +12 -4
- package/dist/sdk/cli-contracts/tool-parameter-tables.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-schema.d.ts +4 -0
- package/dist/sdk/cli-contracts/tool-schema.js +66 -11
- package/dist/sdk/cli-contracts/tool-schema.js.map +1 -1
- package/dist/sdk/index.d.ts +1 -1
- package/dist/sdk/index.js +3 -3
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/runtime.d.ts +340 -25
- package/dist/sdk/runtime.js +413 -25
- package/dist/sdk/runtime.js.map +1 -1
- package/docs/AGENT_GUIDE.md +3 -0
- package/docs/COMMANDS.md +10 -1
- package/docs/SDK.md +37 -0
- package/package.json +1 -1
- package/dist/cli-bundle/chunks/chunk-2RADY7IB.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-3FRNNVWY.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-ASMRSIDX.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-G4FKP4ID.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-KMXVZ2P7.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-ML27MHNM.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-PJPZTE7P.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-RDJXIAJB.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-RLHQ3G4M.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-TR2C6V5T.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-UVFJSKTF.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-XN5BEN2B.js.map +0 -1
- package/dist/cli-bundle/chunks/register-list-query-EEF33SUJ.js.map +0 -1
- package/dist/cli-bundle/chunks/register-list-query-S4FBWIWN.js.map +0 -7
- package/dist/cli-bundle/chunks/register-operations-HDE4FVW4.js.map +0 -1
- package/dist/cli-bundle/chunks/register-operations-QDU43FCG.js.map +0 -7
- /package/dist/cli-bundle/chunks/{chunk-D63PEJTB.js.map → chunk-26MFLA7K.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-HI27UADG.js.map → chunk-2FKIIQMJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-IYRG5AEC.js.map → chunk-5ZMZF53A.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YQEKE4FO.js.map → chunk-DQLP22K2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZMOPZFVT.js.map → chunk-GZ365M6E.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-MYHFZNBO.js.map → chunk-KAJNWMBE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TU5P744I.js.map → chunk-MBLHA6LR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TTCJCKUJ.js.map → chunk-N4S7BV43.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-GE44TQMC.js.map → chunk-P5SUMCU5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YR5R4FMQ.js.map → chunk-S7J3GEHL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-EYPIUFWJ.js.map → chunk-VCGHRLJU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-P2WE5KCU.js.map → chunk-WDNPNW22.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-SN5X5GTU.js.map → chunk-XXN2B2MJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-GQOKFX2G.js.map → chunk-Y2736PT5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FL625JJM.js.map → chunk-YHKXNGLA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YUCKM3MD.js.map → chunk-YPE5MFPJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-E3RLZSP2.js.map → close-5WY6QO5F.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-K6BFI3OX.js.map → close-TKTFRL7N.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-many-6NBL3PM4.js.map → close-many-HEPL66EG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-many-X4YKS3RO.js.map → close-many-U2KLQ3NL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-AMBMYP6F.js.map → create-KCQM6UYM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-TRIBYORN.js.map → create-LD4SEUD6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{plan-MK2QY3GA.js.map → plan-B42KBMX7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{plan-CJPKFRBK.js.map → plan-LUR7C24X.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{profile-HTBFINKQ.js.map → profile-5F75MO5O.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{profile-AQNHXOYA.js.map → profile-JRDMDGT5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-mutation-L5Q7AUDN.js.map → register-mutation-5UDT3WL3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-mutation-QFLRBCI7.js.map → register-mutation-7DMOYDPC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-setup-EGMTAXDC.js.map → register-setup-3GVJ7XPE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-setup-PNIO3L2P.js.map → register-setup-MPTTS52V.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-SDIRJGSY.js.map → update-76CRUMC7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-MP4XLU56.js.map → update-ZMYVXM77.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-many-34AIU6W7.js.map → update-many-QYQRGNPU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-many-JUPCNOKV.js.map → update-many-U4CEQWI4.js.map} +0 -0
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
collectUnknownCapabilityGuidance,
|
|
23
23
|
readManagedExtensionState,
|
|
24
24
|
runInit
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-YHKXNGLA.js";
|
|
26
26
|
import {
|
|
27
27
|
collectStaleVectorizationIds
|
|
28
28
|
} from "./chunk-VPLDQMW2.js";
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
resolveProviderConfigSource,
|
|
47
47
|
resolveSettingsWithSemanticRuntimeDefaults,
|
|
48
48
|
resolveVectorStores
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-ONADVBMD.js";
|
|
50
50
|
import {
|
|
51
51
|
ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,
|
|
52
52
|
ACTIVITY_FLAG_CONTRACTS,
|
|
@@ -139,7 +139,7 @@ import {
|
|
|
139
139
|
UPGRADE_FLAG_CONTRACTS,
|
|
140
140
|
VALIDATE_FLAG_CONTRACTS,
|
|
141
141
|
compactFlagAliasContracts
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-K4NMHZR3.js";
|
|
143
143
|
import {
|
|
144
144
|
LINKED_TEST_PM_CONTEXT_MODE_VALUES,
|
|
145
145
|
LINKED_TEST_PROTECTED_ENV_KEYS,
|
|
@@ -156,7 +156,7 @@ import {
|
|
|
156
156
|
parseLinkedTestRegexList,
|
|
157
157
|
parseLinkedTestStringList,
|
|
158
158
|
runCreate
|
|
159
|
-
} from "./chunk-
|
|
159
|
+
} from "./chunk-K2OKKYSO.js";
|
|
160
160
|
import {
|
|
161
161
|
createStdinTokenResolver,
|
|
162
162
|
parseCsvKv,
|
|
@@ -742,7 +742,7 @@ function buildMcpToolContracts() {
|
|
|
742
742
|
!(function() {
|
|
743
743
|
try {
|
|
744
744
|
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
745
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
745
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "1b0d78ea-6245-5c11-9a0a-2740289b0b1a");
|
|
746
746
|
} catch (e2) {
|
|
747
747
|
}
|
|
748
748
|
})();
|
|
@@ -854,6 +854,52 @@ var CANONICAL_COMMAND_ALIASES = [
|
|
|
854
854
|
var COMMAND_ALIAS_TO_CANONICAL = new Map(CANONICAL_COMMAND_ALIASES.flatMap((entry) => entry.aliases.map((alias) => [alias, entry.canonical])));
|
|
855
855
|
var COMMAND_NAMESPACE_DISPLAY_LIMIT = 10;
|
|
856
856
|
var COMMAND_NAMESPACE_FALLBACK_LIMIT = 20;
|
|
857
|
+
var COMMAND_INTENTS = /* @__PURE__ */ new Map([
|
|
858
|
+
["activity", "Read activity."],
|
|
859
|
+
["aggregate", "Group counts."],
|
|
860
|
+
["append", "Append body."],
|
|
861
|
+
["claim", "Claim work."],
|
|
862
|
+
["close", "Close work."],
|
|
863
|
+
["comments", "Manage comments."],
|
|
864
|
+
["completion", "Generate shell completions."],
|
|
865
|
+
["config", "Manage settings."],
|
|
866
|
+
["context", "Build context."],
|
|
867
|
+
["contracts", "Inspect contracts."],
|
|
868
|
+
["copy", "Copy work."],
|
|
869
|
+
["create", "Create work."],
|
|
870
|
+
["delete", "Delete work."],
|
|
871
|
+
["deps", "Manage deps."],
|
|
872
|
+
["docs", "Link docs."],
|
|
873
|
+
["files", "Link files."],
|
|
874
|
+
["focus", "Manage focus."],
|
|
875
|
+
["gc", "Clean caches."],
|
|
876
|
+
["get", "Read item."],
|
|
877
|
+
["guide", "Show user guides."],
|
|
878
|
+
["health", "Check health."],
|
|
879
|
+
["help", "Show help."],
|
|
880
|
+
["history", "Inspect history."],
|
|
881
|
+
["init", "Initialize workspace."],
|
|
882
|
+
["install", "Install packages."],
|
|
883
|
+
["learnings", "Manage learnings."],
|
|
884
|
+
["list", "List work."],
|
|
885
|
+
["next", "Pick next work."],
|
|
886
|
+
["notes", "Manage notes."],
|
|
887
|
+
["ops", "Run operations."],
|
|
888
|
+
["package", "Manage packages."],
|
|
889
|
+
["plan", "Manage plans."],
|
|
890
|
+
["profile", "Manage profiles."],
|
|
891
|
+
["reindex", "Refresh search index."],
|
|
892
|
+
["release", "Release claim."],
|
|
893
|
+
["restore", "Restore history."],
|
|
894
|
+
["schema", "Customize schema."],
|
|
895
|
+
["search", "Search work."],
|
|
896
|
+
["stats", "Show stats."],
|
|
897
|
+
["telemetry", "Manage telemetry."],
|
|
898
|
+
["test", "Run linked tests."],
|
|
899
|
+
["update", "Update work."],
|
|
900
|
+
["upgrade", "Upgrade packages."],
|
|
901
|
+
["validate", "Validate data."]
|
|
902
|
+
]);
|
|
857
903
|
var EXTENSION_LIFECYCLE_FLAG_CONTRACTS = [
|
|
858
904
|
["init", EXTENSION_INIT_FLAG_CONTRACTS],
|
|
859
905
|
["install", EXTENSION_INSTALL_FLAG_CONTRACTS],
|
|
@@ -1098,11 +1144,25 @@ function assignExtensionFlagBoolean(contract, key, enabled) {
|
|
|
1098
1144
|
contract[key] = true;
|
|
1099
1145
|
}
|
|
1100
1146
|
}
|
|
1147
|
+
function normalizeExtensionFlagName(value, kind) {
|
|
1148
|
+
if (value == null) {
|
|
1149
|
+
return null;
|
|
1150
|
+
}
|
|
1151
|
+
if (typeof value !== "string") {
|
|
1152
|
+
throw new TypeError("Expected string for extension flag name.");
|
|
1153
|
+
}
|
|
1154
|
+
const trimmed = value.trim();
|
|
1155
|
+
if (trimmed.length === 0) {
|
|
1156
|
+
return null;
|
|
1157
|
+
}
|
|
1158
|
+
if (kind === "long") {
|
|
1159
|
+
return trimmed.startsWith("--") && trimmed.length > 2 ? trimmed : null;
|
|
1160
|
+
}
|
|
1161
|
+
return trimmed.startsWith("-") && !trimmed.startsWith("--") && trimmed.length > 1 ? trimmed : null;
|
|
1162
|
+
}
|
|
1101
1163
|
function toExtensionFlagContract(definition) {
|
|
1102
|
-
const
|
|
1103
|
-
const
|
|
1104
|
-
const normalizedLong = longName && longName.startsWith("--") && longName.length > 2 ? longName : null;
|
|
1105
|
-
const normalizedShort = shortName && shortName.startsWith("-") && !shortName.startsWith("--") ? shortName : null;
|
|
1164
|
+
const normalizedLong = normalizeExtensionFlagName(definition.long, "long");
|
|
1165
|
+
const normalizedShort = normalizeExtensionFlagName(definition.short, "short");
|
|
1106
1166
|
const flag = normalizedLong ?? normalizedShort;
|
|
1107
1167
|
if (!flag) {
|
|
1108
1168
|
return null;
|
|
@@ -1728,6 +1788,7 @@ function attachCreateRequiredOptionContracts(schema, metadata) {
|
|
|
1728
1788
|
};
|
|
1729
1789
|
}
|
|
1730
1790
|
function resolveContractsSelection(options) {
|
|
1791
|
+
const summary = options.summary === true;
|
|
1731
1792
|
const schemaOnly = options.schemaOnly === true;
|
|
1732
1793
|
const flagsOnly = options.flagsOnly === true;
|
|
1733
1794
|
const availabilityOnly = options.availabilityOnly === true;
|
|
@@ -1735,10 +1796,11 @@ function resolveContractsSelection(options) {
|
|
|
1735
1796
|
const fullOutput = options.full === true;
|
|
1736
1797
|
const selectedAction = normalizeToken(options.action);
|
|
1737
1798
|
const selectedCommand = normalizeToken(options.command);
|
|
1738
|
-
const unfilteredDefaultBriefMode = !fullOutput && !schemaOnly && !flagsOnly && !availabilityOnly && !selectedAction && !selectedCommand;
|
|
1799
|
+
const unfilteredDefaultBriefMode = !summary && !fullOutput && !schemaOnly && !flagsOnly && !availabilityOnly && !selectedAction && !selectedCommand;
|
|
1739
1800
|
return {
|
|
1740
1801
|
selectedAction,
|
|
1741
1802
|
selectedCommand,
|
|
1803
|
+
summary,
|
|
1742
1804
|
schemaOnly,
|
|
1743
1805
|
flagsOnly,
|
|
1744
1806
|
availabilityOnly,
|
|
@@ -1751,12 +1813,13 @@ function resolveContractsSelection(options) {
|
|
|
1751
1813
|
}
|
|
1752
1814
|
function assertSingleContractsProjection(selection) {
|
|
1753
1815
|
const projectionFlagsEnabled = [
|
|
1816
|
+
selection.summary,
|
|
1754
1817
|
selection.schemaOnly,
|
|
1755
1818
|
selection.flagsOnly,
|
|
1756
1819
|
selection.availabilityOnly
|
|
1757
1820
|
].filter((value) => value).length;
|
|
1758
1821
|
if (projectionFlagsEnabled > 1) {
|
|
1759
|
-
throw new PmCliError("Choose only one projection flag: --schema-only, --flags-only, or --availability-only.", EXIT_CODE.USAGE);
|
|
1822
|
+
throw new PmCliError("Choose only one projection flag: --summary, --schema-only, --flags-only, or --availability-only.", EXIT_CODE.USAGE);
|
|
1760
1823
|
}
|
|
1761
1824
|
}
|
|
1762
1825
|
async function readContractsSettings(pmRoot) {
|
|
@@ -1960,6 +2023,33 @@ function resolveContractsCommands(selection, actionContext) {
|
|
|
1960
2023
|
function resolveOutputCommands(selection, commands) {
|
|
1961
2024
|
return selection.flagsOnly && selection.selectedCommand === void 0 && selection.selectedAction === void 0 ? compactCommandAliasSurface(commands) : commands;
|
|
1962
2025
|
}
|
|
2026
|
+
function summarizeCommandIntent(command) {
|
|
2027
|
+
const rootCommand = command.split(" ")[0];
|
|
2028
|
+
return COMMAND_INTENTS.get(command) ?? COMMAND_INTENTS.get(rootCommand) ?? "Inspect flags.";
|
|
2029
|
+
}
|
|
2030
|
+
function canonicalSummaryCommand(command) {
|
|
2031
|
+
const rootCommand = command.split(" ")[0];
|
|
2032
|
+
if (rootCommand.startsWith("list-")) {
|
|
2033
|
+
return "list";
|
|
2034
|
+
}
|
|
2035
|
+
if (rootCommand.startsWith("history-")) {
|
|
2036
|
+
return "history";
|
|
2037
|
+
}
|
|
2038
|
+
if (rootCommand === "ctx") {
|
|
2039
|
+
return "context";
|
|
2040
|
+
}
|
|
2041
|
+
if (rootCommand === "packages") {
|
|
2042
|
+
return "package";
|
|
2043
|
+
}
|
|
2044
|
+
return COMMAND_ALIAS_TO_CANONICAL.get(rootCommand) ?? rootCommand;
|
|
2045
|
+
}
|
|
2046
|
+
function buildCommandSummarySurface(commands) {
|
|
2047
|
+
const rootCommands = [...new Set(commands.map((command) => canonicalSummaryCommand(command)))].filter((command) => command.length > 0).sort((left, right) => left.localeCompare(right));
|
|
2048
|
+
return rootCommands.map((command) => ({
|
|
2049
|
+
command,
|
|
2050
|
+
intent: summarizeCommandIntent(command)
|
|
2051
|
+
}));
|
|
2052
|
+
}
|
|
1963
2053
|
function resolveExtensionCommandContracts(selection, runtime, outputCommands) {
|
|
1964
2054
|
if (selection.selectedCommand) {
|
|
1965
2055
|
return runtime.extensionContracts.filter((entry) => splitCommandPathAliases(entry.command).includes(selection.selectedCommand));
|
|
@@ -1983,14 +2073,15 @@ function createContractsResult(selection, schemaContext, actionContext, outputCo
|
|
|
1983
2073
|
selected: {
|
|
1984
2074
|
action: selection.selectedAction ?? null,
|
|
1985
2075
|
command: selection.selectedCommand ?? null,
|
|
2076
|
+
summary: selection.summary,
|
|
1986
2077
|
schema_only: selection.schemaOnly,
|
|
1987
2078
|
flags_only: selection.flagsOnly,
|
|
1988
2079
|
availability_only: selection.availabilityOnly,
|
|
1989
2080
|
runtime_only: selection.runtimeOnly,
|
|
1990
2081
|
command_scoped: selection.selectedCommand !== void 0
|
|
1991
2082
|
},
|
|
1992
|
-
commands: outputCommands,
|
|
1993
|
-
...!selection.flagsOnly ? {
|
|
2083
|
+
commands: selection.summary ? [] : outputCommands,
|
|
2084
|
+
...!selection.summary && !selection.flagsOnly ? {
|
|
1994
2085
|
actions: actionContext.actions,
|
|
1995
2086
|
action_availability: actionContext.actionAvailability
|
|
1996
2087
|
} : {}
|
|
@@ -2067,9 +2158,13 @@ async function runContracts(options, global2) {
|
|
|
2067
2158
|
const schemaContext = resolveContractsSchemaContext(selection, runtime, actionContext);
|
|
2068
2159
|
const commands = resolveContractsCommands(selection, actionContext);
|
|
2069
2160
|
const outputCommands = resolveOutputCommands(selection, commands);
|
|
2161
|
+
const result = createContractsResult(selection, schemaContext, actionContext, outputCommands);
|
|
2162
|
+
if (selection.summary) {
|
|
2163
|
+
result.command_summaries = buildCommandSummarySurface(outputCommands);
|
|
2164
|
+
return result;
|
|
2165
|
+
}
|
|
2070
2166
|
const commandAliases = buildCommandAliasSurface(commands);
|
|
2071
2167
|
const extensionCommandContracts = resolveExtensionCommandContracts(selection, runtime, outputCommands);
|
|
2072
|
-
const result = createContractsResult(selection, schemaContext, actionContext, outputCommands);
|
|
2073
2168
|
if (!(selection.flagsOnly && !selection.fullOutput)) {
|
|
2074
2169
|
attachRuntimeContractsResult(result, runtime);
|
|
2075
2170
|
}
|
|
@@ -10244,7 +10339,7 @@ async function applyValidateFix(fix, global2) {
|
|
|
10244
10339
|
case "set_estimate":
|
|
10245
10340
|
case "reparent":
|
|
10246
10341
|
case "unset_parent": {
|
|
10247
|
-
const { runUpdate } = await import("./update-
|
|
10342
|
+
const { runUpdate } = await import("./update-76CRUMC7.js");
|
|
10248
10343
|
const updateOptions = { message: VALIDATE_AUTO_FIX_MESSAGE };
|
|
10249
10344
|
if (fix.kind === "set_resolution") {
|
|
10250
10345
|
updateOptions.resolution = fix.value;
|
|
@@ -10495,4 +10590,4 @@ export {
|
|
|
10495
10590
|
runTestRunsWorker,
|
|
10496
10591
|
runValidate
|
|
10497
10592
|
};
|
|
10498
|
-
//# sourceMappingURL=chunk-
|
|
10593
|
+
//# sourceMappingURL=chunk-NRYZ4QLH.js.map
|