@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
|
@@ -1,5 +1,5 @@
|
|
|
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]="e4bc1071-3165-522e-b81f-8e280a88d93d")}catch(e){}}();
|
|
3
3
|
import {
|
|
4
4
|
isRemoteLinkedArtifactReference
|
|
5
5
|
} from "./chunk-IBMFIKVS.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
collectUnknownCapabilityGuidance,
|
|
25
25
|
readManagedExtensionState,
|
|
26
26
|
runInit
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-P5SUMCU5.js";
|
|
28
28
|
import {
|
|
29
29
|
collectStaleVectorizationIds
|
|
30
30
|
} from "./chunk-ROGZTCCB.js";
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
resolveProviderConfigSource,
|
|
49
49
|
resolveSettingsWithSemanticRuntimeDefaults,
|
|
50
50
|
resolveVectorStores
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-DBV5A7FT.js";
|
|
52
52
|
import {
|
|
53
53
|
ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,
|
|
54
54
|
ACTIVITY_FLAG_CONTRACTS,
|
|
@@ -141,7 +141,7 @@ import {
|
|
|
141
141
|
UPGRADE_FLAG_CONTRACTS,
|
|
142
142
|
VALIDATE_FLAG_CONTRACTS,
|
|
143
143
|
compactFlagAliasContracts
|
|
144
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-NBJCIAVV.js";
|
|
145
145
|
import {
|
|
146
146
|
LINKED_TEST_PM_CONTEXT_MODE_VALUES,
|
|
147
147
|
LINKED_TEST_PROTECTED_ENV_KEYS,
|
|
@@ -158,7 +158,7 @@ import {
|
|
|
158
158
|
parseLinkedTestRegexList,
|
|
159
159
|
parseLinkedTestStringList,
|
|
160
160
|
runCreate
|
|
161
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-ASSVI7FP.js";
|
|
162
162
|
import {
|
|
163
163
|
createStdinTokenResolver,
|
|
164
164
|
parseCsvKv,
|
|
@@ -828,6 +828,52 @@ var CANONICAL_COMMAND_ALIASES = [
|
|
|
828
828
|
var COMMAND_ALIAS_TO_CANONICAL = new Map(CANONICAL_COMMAND_ALIASES.flatMap((entry) => entry.aliases.map((alias) => [alias, entry.canonical])));
|
|
829
829
|
var COMMAND_NAMESPACE_DISPLAY_LIMIT = 10;
|
|
830
830
|
var COMMAND_NAMESPACE_FALLBACK_LIMIT = 20;
|
|
831
|
+
var COMMAND_INTENTS = /* @__PURE__ */ new Map([
|
|
832
|
+
["activity", "Read activity."],
|
|
833
|
+
["aggregate", "Group counts."],
|
|
834
|
+
["append", "Append body."],
|
|
835
|
+
["claim", "Claim work."],
|
|
836
|
+
["close", "Close work."],
|
|
837
|
+
["comments", "Manage comments."],
|
|
838
|
+
["completion", "Generate shell completions."],
|
|
839
|
+
["config", "Manage settings."],
|
|
840
|
+
["context", "Build context."],
|
|
841
|
+
["contracts", "Inspect contracts."],
|
|
842
|
+
["copy", "Copy work."],
|
|
843
|
+
["create", "Create work."],
|
|
844
|
+
["delete", "Delete work."],
|
|
845
|
+
["deps", "Manage deps."],
|
|
846
|
+
["docs", "Link docs."],
|
|
847
|
+
["files", "Link files."],
|
|
848
|
+
["focus", "Manage focus."],
|
|
849
|
+
["gc", "Clean caches."],
|
|
850
|
+
["get", "Read item."],
|
|
851
|
+
["guide", "Show user guides."],
|
|
852
|
+
["health", "Check health."],
|
|
853
|
+
["help", "Show help."],
|
|
854
|
+
["history", "Inspect history."],
|
|
855
|
+
["init", "Initialize workspace."],
|
|
856
|
+
["install", "Install packages."],
|
|
857
|
+
["learnings", "Manage learnings."],
|
|
858
|
+
["list", "List work."],
|
|
859
|
+
["next", "Pick next work."],
|
|
860
|
+
["notes", "Manage notes."],
|
|
861
|
+
["ops", "Run operations."],
|
|
862
|
+
["package", "Manage packages."],
|
|
863
|
+
["plan", "Manage plans."],
|
|
864
|
+
["profile", "Manage profiles."],
|
|
865
|
+
["reindex", "Refresh search index."],
|
|
866
|
+
["release", "Release claim."],
|
|
867
|
+
["restore", "Restore history."],
|
|
868
|
+
["schema", "Customize schema."],
|
|
869
|
+
["search", "Search work."],
|
|
870
|
+
["stats", "Show stats."],
|
|
871
|
+
["telemetry", "Manage telemetry."],
|
|
872
|
+
["test", "Run linked tests."],
|
|
873
|
+
["update", "Update work."],
|
|
874
|
+
["upgrade", "Upgrade packages."],
|
|
875
|
+
["validate", "Validate data."]
|
|
876
|
+
]);
|
|
831
877
|
var EXTENSION_LIFECYCLE_FLAG_CONTRACTS = [
|
|
832
878
|
["init", EXTENSION_INIT_FLAG_CONTRACTS],
|
|
833
879
|
["install", EXTENSION_INSTALL_FLAG_CONTRACTS],
|
|
@@ -1072,11 +1118,25 @@ function assignExtensionFlagBoolean(contract, key, enabled) {
|
|
|
1072
1118
|
contract[key] = true;
|
|
1073
1119
|
}
|
|
1074
1120
|
}
|
|
1121
|
+
function normalizeExtensionFlagName(value, kind) {
|
|
1122
|
+
if (value == null) {
|
|
1123
|
+
return null;
|
|
1124
|
+
}
|
|
1125
|
+
if (typeof value !== "string") {
|
|
1126
|
+
throw new TypeError("Expected string for extension flag name.");
|
|
1127
|
+
}
|
|
1128
|
+
const trimmed = value.trim();
|
|
1129
|
+
if (trimmed.length === 0) {
|
|
1130
|
+
return null;
|
|
1131
|
+
}
|
|
1132
|
+
if (kind === "long") {
|
|
1133
|
+
return trimmed.startsWith("--") && trimmed.length > 2 ? trimmed : null;
|
|
1134
|
+
}
|
|
1135
|
+
return trimmed.startsWith("-") && !trimmed.startsWith("--") && trimmed.length > 1 ? trimmed : null;
|
|
1136
|
+
}
|
|
1075
1137
|
function toExtensionFlagContract(definition) {
|
|
1076
|
-
const
|
|
1077
|
-
const
|
|
1078
|
-
const normalizedLong = longName && longName.startsWith("--") && longName.length > 2 ? longName : null;
|
|
1079
|
-
const normalizedShort = shortName && shortName.startsWith("-") && !shortName.startsWith("--") ? shortName : null;
|
|
1138
|
+
const normalizedLong = normalizeExtensionFlagName(definition.long, "long");
|
|
1139
|
+
const normalizedShort = normalizeExtensionFlagName(definition.short, "short");
|
|
1080
1140
|
const flag = normalizedLong ?? normalizedShort;
|
|
1081
1141
|
if (!flag) {
|
|
1082
1142
|
return null;
|
|
@@ -1702,6 +1762,7 @@ function attachCreateRequiredOptionContracts(schema, metadata) {
|
|
|
1702
1762
|
};
|
|
1703
1763
|
}
|
|
1704
1764
|
function resolveContractsSelection(options) {
|
|
1765
|
+
const summary = options.summary === true;
|
|
1705
1766
|
const schemaOnly = options.schemaOnly === true;
|
|
1706
1767
|
const flagsOnly = options.flagsOnly === true;
|
|
1707
1768
|
const availabilityOnly = options.availabilityOnly === true;
|
|
@@ -1709,10 +1770,11 @@ function resolveContractsSelection(options) {
|
|
|
1709
1770
|
const fullOutput = options.full === true;
|
|
1710
1771
|
const selectedAction = normalizeToken(options.action);
|
|
1711
1772
|
const selectedCommand = normalizeToken(options.command);
|
|
1712
|
-
const unfilteredDefaultBriefMode = !fullOutput && !schemaOnly && !flagsOnly && !availabilityOnly && !selectedAction && !selectedCommand;
|
|
1773
|
+
const unfilteredDefaultBriefMode = !summary && !fullOutput && !schemaOnly && !flagsOnly && !availabilityOnly && !selectedAction && !selectedCommand;
|
|
1713
1774
|
return {
|
|
1714
1775
|
selectedAction,
|
|
1715
1776
|
selectedCommand,
|
|
1777
|
+
summary,
|
|
1716
1778
|
schemaOnly,
|
|
1717
1779
|
flagsOnly,
|
|
1718
1780
|
availabilityOnly,
|
|
@@ -1725,12 +1787,13 @@ function resolveContractsSelection(options) {
|
|
|
1725
1787
|
}
|
|
1726
1788
|
function assertSingleContractsProjection(selection) {
|
|
1727
1789
|
const projectionFlagsEnabled = [
|
|
1790
|
+
selection.summary,
|
|
1728
1791
|
selection.schemaOnly,
|
|
1729
1792
|
selection.flagsOnly,
|
|
1730
1793
|
selection.availabilityOnly
|
|
1731
1794
|
].filter((value) => value).length;
|
|
1732
1795
|
if (projectionFlagsEnabled > 1) {
|
|
1733
|
-
throw new PmCliError("Choose only one projection flag: --schema-only, --flags-only, or --availability-only.", EXIT_CODE.USAGE);
|
|
1796
|
+
throw new PmCliError("Choose only one projection flag: --summary, --schema-only, --flags-only, or --availability-only.", EXIT_CODE.USAGE);
|
|
1734
1797
|
}
|
|
1735
1798
|
}
|
|
1736
1799
|
async function readContractsSettings(pmRoot) {
|
|
@@ -1934,6 +1997,33 @@ function resolveContractsCommands(selection, actionContext) {
|
|
|
1934
1997
|
function resolveOutputCommands(selection, commands) {
|
|
1935
1998
|
return selection.flagsOnly && selection.selectedCommand === void 0 && selection.selectedAction === void 0 ? compactCommandAliasSurface(commands) : commands;
|
|
1936
1999
|
}
|
|
2000
|
+
function summarizeCommandIntent(command) {
|
|
2001
|
+
const rootCommand = command.split(" ")[0];
|
|
2002
|
+
return COMMAND_INTENTS.get(command) ?? COMMAND_INTENTS.get(rootCommand) ?? "Inspect flags.";
|
|
2003
|
+
}
|
|
2004
|
+
function canonicalSummaryCommand(command) {
|
|
2005
|
+
const rootCommand = command.split(" ")[0];
|
|
2006
|
+
if (rootCommand.startsWith("list-")) {
|
|
2007
|
+
return "list";
|
|
2008
|
+
}
|
|
2009
|
+
if (rootCommand.startsWith("history-")) {
|
|
2010
|
+
return "history";
|
|
2011
|
+
}
|
|
2012
|
+
if (rootCommand === "ctx") {
|
|
2013
|
+
return "context";
|
|
2014
|
+
}
|
|
2015
|
+
if (rootCommand === "packages") {
|
|
2016
|
+
return "package";
|
|
2017
|
+
}
|
|
2018
|
+
return COMMAND_ALIAS_TO_CANONICAL.get(rootCommand) ?? rootCommand;
|
|
2019
|
+
}
|
|
2020
|
+
function buildCommandSummarySurface(commands) {
|
|
2021
|
+
const rootCommands = [...new Set(commands.map((command) => canonicalSummaryCommand(command)))].filter((command) => command.length > 0).sort((left, right) => left.localeCompare(right));
|
|
2022
|
+
return rootCommands.map((command) => ({
|
|
2023
|
+
command,
|
|
2024
|
+
intent: summarizeCommandIntent(command)
|
|
2025
|
+
}));
|
|
2026
|
+
}
|
|
1937
2027
|
function resolveExtensionCommandContracts(selection, runtime, outputCommands) {
|
|
1938
2028
|
if (selection.selectedCommand) {
|
|
1939
2029
|
return runtime.extensionContracts.filter((entry) => splitCommandPathAliases(entry.command).includes(selection.selectedCommand));
|
|
@@ -1957,14 +2047,15 @@ function createContractsResult(selection, schemaContext, actionContext, outputCo
|
|
|
1957
2047
|
selected: {
|
|
1958
2048
|
action: selection.selectedAction ?? null,
|
|
1959
2049
|
command: selection.selectedCommand ?? null,
|
|
2050
|
+
summary: selection.summary,
|
|
1960
2051
|
schema_only: selection.schemaOnly,
|
|
1961
2052
|
flags_only: selection.flagsOnly,
|
|
1962
2053
|
availability_only: selection.availabilityOnly,
|
|
1963
2054
|
runtime_only: selection.runtimeOnly,
|
|
1964
2055
|
command_scoped: selection.selectedCommand !== void 0
|
|
1965
2056
|
},
|
|
1966
|
-
commands: outputCommands,
|
|
1967
|
-
...!selection.flagsOnly ? {
|
|
2057
|
+
commands: selection.summary ? [] : outputCommands,
|
|
2058
|
+
...!selection.summary && !selection.flagsOnly ? {
|
|
1968
2059
|
actions: actionContext.actions,
|
|
1969
2060
|
action_availability: actionContext.actionAvailability
|
|
1970
2061
|
} : {}
|
|
@@ -2041,9 +2132,13 @@ async function runContracts(options, global) {
|
|
|
2041
2132
|
const schemaContext = resolveContractsSchemaContext(selection, runtime, actionContext);
|
|
2042
2133
|
const commands = resolveContractsCommands(selection, actionContext);
|
|
2043
2134
|
const outputCommands = resolveOutputCommands(selection, commands);
|
|
2135
|
+
const result = createContractsResult(selection, schemaContext, actionContext, outputCommands);
|
|
2136
|
+
if (selection.summary) {
|
|
2137
|
+
result.command_summaries = buildCommandSummarySurface(outputCommands);
|
|
2138
|
+
return result;
|
|
2139
|
+
}
|
|
2044
2140
|
const commandAliases = buildCommandAliasSurface(commands);
|
|
2045
2141
|
const extensionCommandContracts = resolveExtensionCommandContracts(selection, runtime, outputCommands);
|
|
2046
|
-
const result = createContractsResult(selection, schemaContext, actionContext, outputCommands);
|
|
2047
2142
|
if (!(selection.flagsOnly && !selection.fullOutput)) {
|
|
2048
2143
|
attachRuntimeContractsResult(result, runtime);
|
|
2049
2144
|
}
|
|
@@ -10064,7 +10159,7 @@ async function applyValidateFix(fix, global) {
|
|
|
10064
10159
|
case "set_estimate":
|
|
10065
10160
|
case "reparent":
|
|
10066
10161
|
case "unset_parent": {
|
|
10067
|
-
const { runUpdate } = await import("./update-
|
|
10162
|
+
const { runUpdate } = await import("./update-ZMYVXM77.js");
|
|
10068
10163
|
const updateOptions = { message: VALIDATE_AUTO_FIX_MESSAGE };
|
|
10069
10164
|
if (fix.kind === "set_resolution") {
|
|
10070
10165
|
updateOptions.resolution = fix.value;
|
|
@@ -10315,6 +10410,6 @@ export {
|
|
|
10315
10410
|
runTestRunsWorker,
|
|
10316
10411
|
runValidate
|
|
10317
10412
|
};
|
|
10318
|
-
//# sourceMappingURL=chunk-
|
|
10413
|
+
//# sourceMappingURL=chunk-BPYVKTZE.js.map
|
|
10319
10414
|
|
|
10320
|
-
//# debugId=
|
|
10415
|
+
//# debugId=e4bc1071-3165-522e-b81f-8e280a88d93d
|