@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
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
runTest,
|
|
26
26
|
runTestAll,
|
|
27
27
|
runValidate
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-NRYZ4QLH.js";
|
|
29
29
|
import {
|
|
30
30
|
runComments
|
|
31
31
|
} from "./chunk-EEJKHF7M.js";
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
runProfileLint,
|
|
47
47
|
runProfileList,
|
|
48
48
|
runProfileShow
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-KAJNWMBE.js";
|
|
50
50
|
import {
|
|
51
51
|
runNotes
|
|
52
52
|
} from "./chunk-QJZM5WO5.js";
|
|
@@ -55,22 +55,22 @@ import {
|
|
|
55
55
|
} from "./chunk-WVEMZZCR.js";
|
|
56
56
|
import {
|
|
57
57
|
runCloseMany
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-DQLP22K2.js";
|
|
59
59
|
import {
|
|
60
60
|
runUpdateMany
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-VCGHRLJU.js";
|
|
62
62
|
import {
|
|
63
63
|
runRestore
|
|
64
64
|
} from "./chunk-NGBWEYNY.js";
|
|
65
65
|
import {
|
|
66
66
|
runUpdate
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-CHSXGTWF.js";
|
|
68
68
|
import {
|
|
69
69
|
runClose
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-NSPSJWGL.js";
|
|
71
71
|
import {
|
|
72
72
|
runPlan
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-XXN2B2MJ.js";
|
|
74
74
|
import {
|
|
75
75
|
runHistoryCompact
|
|
76
76
|
} from "./chunk-UIHDZS6X.js";
|
|
@@ -80,12 +80,12 @@ import {
|
|
|
80
80
|
import {
|
|
81
81
|
runConfig,
|
|
82
82
|
runUpgrade
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-WDNPNW22.js";
|
|
84
84
|
import {
|
|
85
85
|
SCAFFOLD_CAPABILITIES,
|
|
86
86
|
runExtension,
|
|
87
87
|
runInit
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-YHKXNGLA.js";
|
|
89
89
|
import {
|
|
90
90
|
runSchemaAddField,
|
|
91
91
|
runSchemaAddStatus,
|
|
@@ -111,11 +111,11 @@ import {
|
|
|
111
111
|
runNext,
|
|
112
112
|
runSearch,
|
|
113
113
|
tokenizeAlphaNumeric
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-N4S7BV43.js";
|
|
115
115
|
import {
|
|
116
116
|
buildListQueryFilters,
|
|
117
117
|
runList
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-5RJ4LFD3.js";
|
|
119
119
|
import {
|
|
120
120
|
runHistory
|
|
121
121
|
} from "./chunk-LHDHS4Z6.js";
|
|
@@ -148,7 +148,7 @@ import {
|
|
|
148
148
|
resolveSettingsWithSemanticRuntimeDefaults,
|
|
149
149
|
resolveVectorStores,
|
|
150
150
|
writeVectorizationStatusLedger
|
|
151
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-ONADVBMD.js";
|
|
152
152
|
import {
|
|
153
153
|
ACTIVITY_FLAG_CONTRACTS,
|
|
154
154
|
AGGREGATE_FLAG_CONTRACTS,
|
|
@@ -181,10 +181,10 @@ import {
|
|
|
181
181
|
UPDATE_FLAG_CONTRACTS,
|
|
182
182
|
UPDATE_MANY_FLAG_CONTRACTS,
|
|
183
183
|
toCompletionFlagString
|
|
184
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-K4NMHZR3.js";
|
|
185
185
|
import {
|
|
186
186
|
runCreate
|
|
187
|
-
} from "./chunk-
|
|
187
|
+
} from "./chunk-K2OKKYSO.js";
|
|
188
188
|
import {
|
|
189
189
|
parseTags
|
|
190
190
|
} from "./chunk-CGDUIPJL.js";
|
|
@@ -1186,11 +1186,11 @@ function toExcerpt(content, maxLines, maxCharacters) {
|
|
|
1186
1186
|
async function renderGuideDocs(topic, depth, packageRoot) {
|
|
1187
1187
|
const includeContent = depth !== "brief";
|
|
1188
1188
|
const contentMode = includeContent ? depth === "deep" ? "full" : "excerpt" : "none";
|
|
1189
|
-
const
|
|
1189
|
+
const docs2 = [];
|
|
1190
1190
|
for (const doc of topic.docs) {
|
|
1191
1191
|
const absolutePath = path.resolve(packageRoot, doc.path);
|
|
1192
1192
|
if (!includeContent) {
|
|
1193
|
-
|
|
1193
|
+
docs2.push({
|
|
1194
1194
|
path: doc.path,
|
|
1195
1195
|
purpose: doc.purpose,
|
|
1196
1196
|
optional: doc.optional === true,
|
|
@@ -1206,7 +1206,7 @@ async function renderGuideDocs(topic, depth, packageRoot) {
|
|
|
1206
1206
|
const rawContent = await readFile(absolutePath, "utf8");
|
|
1207
1207
|
if (depth === "deep") {
|
|
1208
1208
|
const normalized = normalizeLineEndings(rawContent).trimEnd();
|
|
1209
|
-
|
|
1209
|
+
docs2.push({
|
|
1210
1210
|
path: doc.path,
|
|
1211
1211
|
purpose: doc.purpose,
|
|
1212
1212
|
optional: doc.optional === true,
|
|
@@ -1218,7 +1218,7 @@ async function renderGuideDocs(topic, depth, packageRoot) {
|
|
|
1218
1218
|
});
|
|
1219
1219
|
} else {
|
|
1220
1220
|
const excerpt = toExcerpt(rawContent, 120, 12e3);
|
|
1221
|
-
|
|
1221
|
+
docs2.push({
|
|
1222
1222
|
path: doc.path,
|
|
1223
1223
|
purpose: doc.purpose,
|
|
1224
1224
|
optional: doc.optional === true,
|
|
@@ -1232,7 +1232,7 @@ async function renderGuideDocs(topic, depth, packageRoot) {
|
|
|
1232
1232
|
} catch (error) {
|
|
1233
1233
|
const code = error?.code;
|
|
1234
1234
|
const missing = code === "ENOENT";
|
|
1235
|
-
|
|
1235
|
+
docs2.push({
|
|
1236
1236
|
path: doc.path,
|
|
1237
1237
|
purpose: doc.purpose,
|
|
1238
1238
|
optional: doc.optional === true,
|
|
@@ -1247,7 +1247,7 @@ async function renderGuideDocs(topic, depth, packageRoot) {
|
|
|
1247
1247
|
}
|
|
1248
1248
|
}
|
|
1249
1249
|
}
|
|
1250
|
-
return
|
|
1250
|
+
return docs2;
|
|
1251
1251
|
}
|
|
1252
1252
|
function buildGuideIndex(depth) {
|
|
1253
1253
|
const topics = listGuideTopics().map((topic) => ({
|
|
@@ -1290,15 +1290,15 @@ async function runGuide(options, global2) {
|
|
|
1290
1290
|
}
|
|
1291
1291
|
const topic = ensureGuideTopic(topicRaw);
|
|
1292
1292
|
const packageRoot = resolvePackageRoot();
|
|
1293
|
-
const
|
|
1294
|
-
const warnings =
|
|
1293
|
+
const docs2 = await renderGuideDocs(topic, depth, packageRoot);
|
|
1294
|
+
const warnings = docs2.filter((doc) => !doc.exists && !doc.optional).map((doc) => `Missing required guide document: ${doc.path}`);
|
|
1295
1295
|
return {
|
|
1296
1296
|
output_default: "toon",
|
|
1297
1297
|
mode: "topic",
|
|
1298
1298
|
depth,
|
|
1299
1299
|
requested_topic: topicRaw,
|
|
1300
1300
|
topic,
|
|
1301
|
-
docs,
|
|
1301
|
+
docs: docs2,
|
|
1302
1302
|
warnings
|
|
1303
1303
|
};
|
|
1304
1304
|
}
|
|
@@ -1378,7 +1378,7 @@ function renderGuideMarkdown(result) {
|
|
|
1378
1378
|
!(function() {
|
|
1379
1379
|
try {
|
|
1380
1380
|
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
1381
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
1381
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "470e1fde-dbda-54fe-b821-9175c37b1cd3");
|
|
1382
1382
|
} catch (e2) {
|
|
1383
1383
|
}
|
|
1384
1384
|
})();
|
|
@@ -2064,6 +2064,8 @@ _pm() {
|
|
|
2064
2064
|
'--priority[Filter by priority]:(0 1 2 3 4)' \\
|
|
2065
2065
|
'--deadline-before[Filter by deadline upper bound (ISO/date string or relative)]:date' \\
|
|
2066
2066
|
'--deadline-after[Filter by deadline lower bound (ISO/date string or relative)]:date' \\
|
|
2067
|
+
'--today[Filter to items updated since local midnight today]' \\
|
|
2068
|
+
'--recent[Filter to items updated in the last 7 days]' \\
|
|
2067
2069
|
'--updated-after[Filter by updated_at lower bound (ISO/relative)]:timestamp' \\
|
|
2068
2070
|
'--updated-before[Filter by updated_at upper bound (ISO/relative)]:timestamp' \\
|
|
2069
2071
|
'--created-after[Filter by created_at lower bound (ISO/relative)]:timestamp' \\
|
|
@@ -2566,6 +2568,7 @@ ${zshSearchRuntimeFieldFlags} '--json[Output JSON]' \\
|
|
|
2566
2568
|
_arguments \\
|
|
2567
2569
|
'--action[Filter schema by tool action]:action' \\
|
|
2568
2570
|
'--command[Scope output to one command (narrow-by-default)]:command' \\
|
|
2571
|
+
'--summary[Return compact command intent summary]' \\
|
|
2569
2572
|
'--schema-only[Return schema-only payload]' \\
|
|
2570
2573
|
'--flags-only[Return command flag contracts only]' \\
|
|
2571
2574
|
'--availability-only[Return action availability only]' \\
|
|
@@ -3041,6 +3044,8 @@ for list_cmd in ${listCmds}
|
|
|
3041
3044
|
complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l stream -d 'Emit line-delimited JSON rows (requires --json)'
|
|
3042
3045
|
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
|
|
3043
3046
|
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
|
|
3047
|
+
complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l today -d 'Filter to items updated since local midnight today'
|
|
3048
|
+
complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l recent -d 'Filter to items updated in the last 7 days'
|
|
3044
3049
|
complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l updated-after -d 'Filter by updated_at lower bound (ISO/relative)' -r
|
|
3045
3050
|
complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l updated-before -d 'Filter by updated_at upper bound (ISO/relative)' -r
|
|
3046
3051
|
complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l created-after -d 'Filter by created_at lower bound (ISO/relative)' -r
|
|
@@ -3535,6 +3540,7 @@ complete -c pm -n '__fish_seen_subcommand_from activity' -l full -d 'Show full a
|
|
|
3535
3540
|
complete -c pm -n '__fish_seen_subcommand_from activity' -l stream -d 'Emit line-delimited JSON rows'
|
|
3536
3541
|
complete -c pm -n '__fish_seen_subcommand_from contracts' -l action -d 'Filter schema by tool action' -r
|
|
3537
3542
|
complete -c pm -n '__fish_seen_subcommand_from contracts' -l command -d 'Scope output to one command (narrow-by-default)' -r
|
|
3543
|
+
complete -c pm -n '__fish_seen_subcommand_from contracts' -l summary -d 'Return compact command intent summary'
|
|
3538
3544
|
complete -c pm -n '__fish_seen_subcommand_from contracts' -l schema-only -d 'Return schema-only payload'
|
|
3539
3545
|
complete -c pm -n '__fish_seen_subcommand_from contracts' -l flags-only -d 'Return command flag contracts only'
|
|
3540
3546
|
complete -c pm -n '__fish_seen_subcommand_from contracts' -l availability-only -d 'Return action availability only'
|
|
@@ -4025,7 +4031,7 @@ function resolveCommentsAuditLimits(options) {
|
|
|
4025
4031
|
};
|
|
4026
4032
|
}
|
|
4027
4033
|
function toCommentsAuditEntry(item, latest) {
|
|
4028
|
-
const
|
|
4034
|
+
const comments2 = item.comments ?? [];
|
|
4029
4035
|
return {
|
|
4030
4036
|
id: item.id,
|
|
4031
4037
|
title: item.title,
|
|
@@ -4033,8 +4039,8 @@ function toCommentsAuditEntry(item, latest) {
|
|
|
4033
4039
|
status: item.status,
|
|
4034
4040
|
assignee: item.assignee ?? null,
|
|
4035
4041
|
updated_at: item.updated_at,
|
|
4036
|
-
comment_count:
|
|
4037
|
-
comments: latest === void 0 ?
|
|
4042
|
+
comment_count: comments2.length,
|
|
4043
|
+
comments: latest === void 0 ? comments2 : limitComments(comments2, latest)
|
|
4038
4044
|
};
|
|
4039
4045
|
}
|
|
4040
4046
|
function buildCommentsAuditFilters(options, status, limitItems, latest, fullHistory) {
|
|
@@ -4925,15 +4931,15 @@ function parseMode2(raw) {
|
|
|
4925
4931
|
}
|
|
4926
4932
|
throw new PmCliError("Reindex mode must be one of keyword|semantic|hybrid", EXIT_CODE.USAGE);
|
|
4927
4933
|
}
|
|
4928
|
-
async function loadDocumentCandidates(pmRoot, itemFormat, typeToFolder,
|
|
4934
|
+
async function loadDocumentCandidates(pmRoot, itemFormat, typeToFolder, schema2) {
|
|
4929
4935
|
const warnings = [];
|
|
4930
|
-
const candidates = await listAllDocumentCandidatesCached(pmRoot, itemFormat, typeToFolder, warnings,
|
|
4936
|
+
const candidates = await listAllDocumentCandidatesCached(pmRoot, itemFormat, typeToFolder, warnings, schema2);
|
|
4931
4937
|
return {
|
|
4932
4938
|
candidates,
|
|
4933
4939
|
warnings
|
|
4934
4940
|
};
|
|
4935
4941
|
}
|
|
4936
|
-
async function hydrateDocuments(pmRoot, candidates,
|
|
4942
|
+
async function hydrateDocuments(pmRoot, candidates, schema2, warnings, itemIds) {
|
|
4937
4943
|
const extensionFieldNames = collectRegisteredItemFieldNames(getActiveExtensionRegistrations());
|
|
4938
4944
|
const hydrated = [];
|
|
4939
4945
|
for (const candidate of candidates) {
|
|
@@ -4951,7 +4957,7 @@ async function hydrateDocuments(pmRoot, candidates, schema, warnings, itemIds) {
|
|
|
4951
4957
|
const raw = await fs.readFile(candidate.item_path, "utf8");
|
|
4952
4958
|
const parsed = parseItemDocument(raw, {
|
|
4953
4959
|
format: candidate.item_format,
|
|
4954
|
-
schema,
|
|
4960
|
+
schema: schema2,
|
|
4955
4961
|
extensionFieldNames,
|
|
4956
4962
|
onWarning: (warning) => warnings.push(warning)
|
|
4957
4963
|
});
|
|
@@ -5566,17 +5572,12 @@ async function runReindex(options, global2) {
|
|
|
5566
5572
|
!(function() {
|
|
5567
5573
|
try {
|
|
5568
5574
|
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5569
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5575
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "a1d2566f-bb81-5e21-aaab-f501f90657ed");
|
|
5570
5576
|
} catch (e2) {
|
|
5571
5577
|
}
|
|
5572
5578
|
})();
|
|
5573
|
-
function
|
|
5574
|
-
|
|
5575
|
-
return {
|
|
5576
|
-
...fullChangedFields === void 0 ? {} : { fullChangedFields },
|
|
5577
|
-
...idOnly === void 0 ? {} : { idOnly },
|
|
5578
|
-
options: runnerOptions
|
|
5579
|
-
};
|
|
5579
|
+
function splitFullClientMutationOptions(options) {
|
|
5580
|
+
return { fullChangedFields: true, options };
|
|
5580
5581
|
}
|
|
5581
5582
|
var PmClient = class {
|
|
5582
5583
|
defaults;
|
|
@@ -5642,83 +5643,279 @@ var PmClient = class {
|
|
|
5642
5643
|
stats(options = {}) {
|
|
5643
5644
|
return this.runTyped("stats", { options });
|
|
5644
5645
|
}
|
|
5646
|
+
/**
|
|
5647
|
+
* List, add, edit, or delete item comments.
|
|
5648
|
+
*/
|
|
5649
|
+
comments(id, options = {}) {
|
|
5650
|
+
return this.runTyped("comments", { id, options });
|
|
5651
|
+
}
|
|
5652
|
+
/**
|
|
5653
|
+
* List or append private item notes.
|
|
5654
|
+
*/
|
|
5655
|
+
notes(id, options = {}) {
|
|
5656
|
+
return this.runTyped("notes", { id, options });
|
|
5657
|
+
}
|
|
5658
|
+
/**
|
|
5659
|
+
* List or append durable item learnings.
|
|
5660
|
+
*/
|
|
5661
|
+
learnings(id, options = {}) {
|
|
5662
|
+
return this.runTyped("learnings", { id, options });
|
|
5663
|
+
}
|
|
5664
|
+
/**
|
|
5665
|
+
* Add, remove, clear, or list linked project files for an item.
|
|
5666
|
+
*/
|
|
5667
|
+
files(id, options = {}) {
|
|
5668
|
+
return this.runTyped("files", { id, options });
|
|
5669
|
+
}
|
|
5670
|
+
/**
|
|
5671
|
+
* Discover and optionally attach changed files for an item.
|
|
5672
|
+
*/
|
|
5673
|
+
filesDiscover(id, options = {}) {
|
|
5674
|
+
return this.runTyped("files-discover", { id, options });
|
|
5675
|
+
}
|
|
5676
|
+
/**
|
|
5677
|
+
* Add, remove, clear, or list linked documentation for an item.
|
|
5678
|
+
*/
|
|
5679
|
+
docs(id, options = {}) {
|
|
5680
|
+
return this.runTyped("docs", { id, options });
|
|
5681
|
+
}
|
|
5682
|
+
/**
|
|
5683
|
+
* Inspect item dependency relationships.
|
|
5684
|
+
*/
|
|
5685
|
+
deps(id, options = {}) {
|
|
5686
|
+
return this.runTyped("deps", { id, options });
|
|
5687
|
+
}
|
|
5688
|
+
/**
|
|
5689
|
+
* Append markdown/body text to an item through the mutation pipeline.
|
|
5690
|
+
*/
|
|
5691
|
+
append(id, body, options = {}) {
|
|
5692
|
+
return this.runTyped("append", { id, ...splitFullClientMutationOptions({ ...options, body }) });
|
|
5693
|
+
}
|
|
5694
|
+
/**
|
|
5695
|
+
* Initialize a workspace with the same semantics as `pm init`.
|
|
5696
|
+
*/
|
|
5697
|
+
init(prefix, options = {}) {
|
|
5698
|
+
return this.runTyped("init", { ...prefix === void 0 ? {} : { prefix }, options });
|
|
5699
|
+
}
|
|
5700
|
+
/**
|
|
5701
|
+
* Read or update project/global configuration.
|
|
5702
|
+
*/
|
|
5703
|
+
config(scope, configAction, key, value, options = {}) {
|
|
5704
|
+
return this.runTyped("config", {
|
|
5705
|
+
scope,
|
|
5706
|
+
configAction,
|
|
5707
|
+
...key === void 0 ? {} : { key },
|
|
5708
|
+
...value === void 0 ? {} : { value },
|
|
5709
|
+
options
|
|
5710
|
+
});
|
|
5711
|
+
}
|
|
5712
|
+
/**
|
|
5713
|
+
* Run the schema customization surface.
|
|
5714
|
+
*/
|
|
5715
|
+
schema(subcommand, options = {}) {
|
|
5716
|
+
return this.runTyped("schema", { options: { ...options, subcommand } });
|
|
5717
|
+
}
|
|
5718
|
+
/**
|
|
5719
|
+
* List built-in, custom, and extension-provided schema types/statuses.
|
|
5720
|
+
*/
|
|
5721
|
+
schemaList() {
|
|
5722
|
+
return this.runTyped("schema", { options: { subcommand: "list" } });
|
|
5723
|
+
}
|
|
5724
|
+
/**
|
|
5725
|
+
* Show a schema item type definition.
|
|
5726
|
+
*/
|
|
5727
|
+
schemaShow(name) {
|
|
5728
|
+
return this.runTyped("schema", { name, options: { subcommand: "show" } });
|
|
5729
|
+
}
|
|
5730
|
+
/**
|
|
5731
|
+
* Register or replace a custom item type.
|
|
5732
|
+
*/
|
|
5733
|
+
schemaAddType(name, options = {}) {
|
|
5734
|
+
return this.runTyped("schema", { name, options: { ...options, subcommand: "add-type" } });
|
|
5735
|
+
}
|
|
5736
|
+
/**
|
|
5737
|
+
* Remove a custom item type.
|
|
5738
|
+
*/
|
|
5739
|
+
schemaRemoveType(name, options = {}) {
|
|
5740
|
+
return this.runTyped("schema", { name, options: { ...options, subcommand: "remove-type" } });
|
|
5741
|
+
}
|
|
5742
|
+
/**
|
|
5743
|
+
* Register or replace a custom status.
|
|
5744
|
+
*/
|
|
5745
|
+
schemaAddStatus(name, options = {}) {
|
|
5746
|
+
return this.runTyped("schema", { name, options: { ...options, subcommand: "add-status" } });
|
|
5747
|
+
}
|
|
5748
|
+
/**
|
|
5749
|
+
* Remove a custom status.
|
|
5750
|
+
*/
|
|
5751
|
+
schemaRemoveStatus(name, options = {}) {
|
|
5752
|
+
return this.runTyped("schema", { name, options: { ...options, subcommand: "remove-status" } });
|
|
5753
|
+
}
|
|
5754
|
+
/**
|
|
5755
|
+
* Register or replace a runtime custom field.
|
|
5756
|
+
*/
|
|
5757
|
+
schemaAddField(name, options = {}) {
|
|
5758
|
+
return this.runTyped("schema", { name, options: { ...options, subcommand: "add-field" } });
|
|
5759
|
+
}
|
|
5760
|
+
/**
|
|
5761
|
+
* Remove a runtime custom field.
|
|
5762
|
+
*/
|
|
5763
|
+
schemaRemoveField(name, options = {}) {
|
|
5764
|
+
return this.runTyped("schema", { name, options: { ...options, subcommand: "remove-field" } });
|
|
5765
|
+
}
|
|
5766
|
+
/**
|
|
5767
|
+
* List runtime custom fields.
|
|
5768
|
+
*/
|
|
5769
|
+
schemaListFields() {
|
|
5770
|
+
return this.runTyped("schema", { options: { subcommand: "list-fields" } });
|
|
5771
|
+
}
|
|
5772
|
+
/**
|
|
5773
|
+
* Show one runtime custom field definition.
|
|
5774
|
+
*/
|
|
5775
|
+
schemaShowField(name) {
|
|
5776
|
+
return this.runTyped("schema", { name, options: { subcommand: "show-field" } });
|
|
5777
|
+
}
|
|
5778
|
+
/**
|
|
5779
|
+
* Apply a built-in type preset to the workspace schema.
|
|
5780
|
+
*/
|
|
5781
|
+
schemaApplyPreset(typePreset, options = {}) {
|
|
5782
|
+
return this.runTyped("schema", { typePreset, options: { ...options, subcommand: "apply-preset" } });
|
|
5783
|
+
}
|
|
5784
|
+
/**
|
|
5785
|
+
* Infer item types from the current tracker and optionally apply them.
|
|
5786
|
+
*/
|
|
5787
|
+
schemaInferTypes(options = {}) {
|
|
5788
|
+
return this.runTyped("schema", { options: { ...options, subcommand: "add-type", infer: true } });
|
|
5789
|
+
}
|
|
5790
|
+
/**
|
|
5791
|
+
* Show one runtime status definition.
|
|
5792
|
+
*/
|
|
5793
|
+
schemaShowStatus(name) {
|
|
5794
|
+
return this.runTyped("schema", { name, options: { subcommand: "show-status" } });
|
|
5795
|
+
}
|
|
5796
|
+
/**
|
|
5797
|
+
* Run the profile customization surface.
|
|
5798
|
+
*/
|
|
5799
|
+
profile(subcommand, options = {}) {
|
|
5800
|
+
return this.runTyped("profile", { options: { ...options, subcommand } });
|
|
5801
|
+
}
|
|
5802
|
+
/**
|
|
5803
|
+
* List available project profiles.
|
|
5804
|
+
*/
|
|
5805
|
+
profileList() {
|
|
5806
|
+
return this.runTyped("profile", { options: { subcommand: "list" } });
|
|
5807
|
+
}
|
|
5808
|
+
/**
|
|
5809
|
+
* Show a project profile.
|
|
5810
|
+
*/
|
|
5811
|
+
profileShow(name) {
|
|
5812
|
+
return this.runTyped("profile", { name, options: { subcommand: "show" } });
|
|
5813
|
+
}
|
|
5814
|
+
/**
|
|
5815
|
+
* Apply a project profile.
|
|
5816
|
+
*/
|
|
5817
|
+
profileApply(name, options = {}) {
|
|
5818
|
+
return this.runTyped("profile", { name, options: { ...options, subcommand: "apply" } });
|
|
5819
|
+
}
|
|
5820
|
+
/**
|
|
5821
|
+
* Lint a project profile.
|
|
5822
|
+
*/
|
|
5823
|
+
profileLint(name) {
|
|
5824
|
+
return this.runTyped("profile", { name, options: { subcommand: "lint" } });
|
|
5825
|
+
}
|
|
5826
|
+
/**
|
|
5827
|
+
* Run project validation checks.
|
|
5828
|
+
*/
|
|
5829
|
+
validate(options = {}) {
|
|
5830
|
+
return this.runTyped("validate", { options });
|
|
5831
|
+
}
|
|
5832
|
+
/**
|
|
5833
|
+
* Run project health checks.
|
|
5834
|
+
*/
|
|
5835
|
+
health(options = {}) {
|
|
5836
|
+
return this.runTyped("health", { options });
|
|
5837
|
+
}
|
|
5838
|
+
/**
|
|
5839
|
+
* Run tracker cache/runtime garbage collection.
|
|
5840
|
+
*/
|
|
5841
|
+
gc(options = {}) {
|
|
5842
|
+
return this.runTyped("gc", { options });
|
|
5843
|
+
}
|
|
5645
5844
|
/**
|
|
5646
5845
|
* Create an item using the same mutation path as `pm create`.
|
|
5647
5846
|
*/
|
|
5648
5847
|
create(options = {}) {
|
|
5649
|
-
return this.
|
|
5848
|
+
return this.runTyped("create", splitFullClientMutationOptions(options));
|
|
5650
5849
|
}
|
|
5651
5850
|
/**
|
|
5652
5851
|
* Update an item using the same mutation path as `pm update`.
|
|
5653
5852
|
*/
|
|
5654
5853
|
update(id, options = {}) {
|
|
5655
|
-
return this.
|
|
5854
|
+
return this.runTyped("update", { id, ...splitFullClientMutationOptions(options) });
|
|
5656
5855
|
}
|
|
5657
5856
|
/**
|
|
5658
5857
|
* Close an item using the same mutation path as `pm close`.
|
|
5659
5858
|
*/
|
|
5660
5859
|
close(id, reason, options = {}) {
|
|
5661
|
-
return this.
|
|
5860
|
+
return this.runTyped("close", { id, reason, ...splitFullClientMutationOptions(options) });
|
|
5662
5861
|
}
|
|
5663
5862
|
/**
|
|
5664
5863
|
* Claim an item using the same mutation path as `pm claim`.
|
|
5665
5864
|
*/
|
|
5666
5865
|
claim(id, options = {}) {
|
|
5667
|
-
return this.
|
|
5866
|
+
return this.runTyped("claim", { id, ...splitFullClientMutationOptions(options) });
|
|
5668
5867
|
}
|
|
5669
5868
|
/**
|
|
5670
5869
|
* Release an item's active claim using the same mutation path as `pm release`.
|
|
5671
5870
|
*/
|
|
5672
5871
|
release(id, options = {}) {
|
|
5673
|
-
return this.
|
|
5872
|
+
return this.runTyped("release", { id, ...splitFullClientMutationOptions(options) });
|
|
5674
5873
|
}
|
|
5675
5874
|
/**
|
|
5676
5875
|
* Copy an item using the same mutation path as `pm copy`.
|
|
5677
5876
|
*/
|
|
5678
5877
|
copy(id, options = {}) {
|
|
5679
|
-
return this.
|
|
5878
|
+
return this.runTyped("copy", { id, ...splitFullClientMutationOptions(options) });
|
|
5680
5879
|
}
|
|
5681
5880
|
/**
|
|
5682
5881
|
* Delete an item using the same mutation path as `pm delete`.
|
|
5683
5882
|
*/
|
|
5684
5883
|
delete(id, options = {}) {
|
|
5685
|
-
return this.
|
|
5884
|
+
return this.runTyped("delete", { id, ...splitFullClientMutationOptions(options) });
|
|
5686
5885
|
}
|
|
5687
5886
|
/**
|
|
5688
5887
|
* Restore an item to a history version or timestamp using `pm restore`.
|
|
5689
5888
|
*/
|
|
5690
5889
|
restore(id, target, options = {}) {
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
...fullChangedFields === void 0 ? {} : { fullChangedFields },
|
|
5694
|
-
...idOnly === void 0 ? {} : { idOnly },
|
|
5890
|
+
return this.runTyped("restore", {
|
|
5891
|
+
fullChangedFields: true,
|
|
5695
5892
|
id,
|
|
5696
|
-
options: { ...
|
|
5893
|
+
options: { ...options, target }
|
|
5697
5894
|
});
|
|
5698
5895
|
}
|
|
5699
5896
|
/**
|
|
5700
5897
|
* Set, clear, or read workspace focus using the same path as `pm focus`.
|
|
5701
5898
|
*/
|
|
5702
5899
|
focus(id, options = {}) {
|
|
5703
|
-
return this.
|
|
5900
|
+
return this.runTyped("focus", { ...id === void 0 ? {} : { id }, ...splitFullClientMutationOptions(options) });
|
|
5704
5901
|
}
|
|
5705
5902
|
/**
|
|
5706
5903
|
* Claim an item and transition it to the workspace in-progress status.
|
|
5707
5904
|
*/
|
|
5708
5905
|
startTask(id, options = {}) {
|
|
5709
|
-
return this.
|
|
5906
|
+
return this.runTyped("start-task", { id, ...splitFullClientMutationOptions(options) });
|
|
5710
5907
|
}
|
|
5711
5908
|
/**
|
|
5712
5909
|
* Move an item back to the workspace open status and release the claim.
|
|
5713
5910
|
*/
|
|
5714
5911
|
pauseTask(id, options = {}) {
|
|
5715
|
-
return this.
|
|
5912
|
+
return this.runTyped("pause-task", { id, ...splitFullClientMutationOptions(options) });
|
|
5716
5913
|
}
|
|
5717
5914
|
/**
|
|
5718
5915
|
* Close an item and release its active assignment.
|
|
5719
5916
|
*/
|
|
5720
5917
|
closeTask(id, reason, options = {}) {
|
|
5721
|
-
return this.
|
|
5918
|
+
return this.runTyped("close-task", { id, reason, ...splitFullClientMutationOptions(options) });
|
|
5722
5919
|
}
|
|
5723
5920
|
/**
|
|
5724
5921
|
* Run the extension lifecycle surface with the same result shape as `pm extension`.
|
|
@@ -5841,6 +6038,102 @@ function aggregate(options = {}, clientOptions = {}) {
|
|
|
5841
6038
|
function stats(options = {}, clientOptions = {}) {
|
|
5842
6039
|
return new PmClient(clientOptions).stats(options);
|
|
5843
6040
|
}
|
|
6041
|
+
function comments(id, options = {}, clientOptions = {}) {
|
|
6042
|
+
return new PmClient(clientOptions).comments(id, options);
|
|
6043
|
+
}
|
|
6044
|
+
function notes(id, options = {}, clientOptions = {}) {
|
|
6045
|
+
return new PmClient(clientOptions).notes(id, options);
|
|
6046
|
+
}
|
|
6047
|
+
function learnings(id, options = {}, clientOptions = {}) {
|
|
6048
|
+
return new PmClient(clientOptions).learnings(id, options);
|
|
6049
|
+
}
|
|
6050
|
+
function files(id, options = {}, clientOptions = {}) {
|
|
6051
|
+
return new PmClient(clientOptions).files(id, options);
|
|
6052
|
+
}
|
|
6053
|
+
function filesDiscover(id, options = {}, clientOptions = {}) {
|
|
6054
|
+
return new PmClient(clientOptions).filesDiscover(id, options);
|
|
6055
|
+
}
|
|
6056
|
+
function docs(id, options = {}, clientOptions = {}) {
|
|
6057
|
+
return new PmClient(clientOptions).docs(id, options);
|
|
6058
|
+
}
|
|
6059
|
+
function deps(id, options = {}, clientOptions = {}) {
|
|
6060
|
+
return new PmClient(clientOptions).deps(id, options);
|
|
6061
|
+
}
|
|
6062
|
+
function append(id, body, options = {}, clientOptions = {}) {
|
|
6063
|
+
return new PmClient(clientOptions).append(id, body, options);
|
|
6064
|
+
}
|
|
6065
|
+
function init(prefix, options = {}, clientOptions = {}) {
|
|
6066
|
+
return new PmClient(clientOptions).init(prefix, options);
|
|
6067
|
+
}
|
|
6068
|
+
function config(scope, configAction, key, value, options = {}, clientOptions = {}) {
|
|
6069
|
+
return new PmClient(clientOptions).config(scope, configAction, key, value, options);
|
|
6070
|
+
}
|
|
6071
|
+
function schema(subcommand, options = {}, clientOptions = {}) {
|
|
6072
|
+
return new PmClient(clientOptions).schema(subcommand, options);
|
|
6073
|
+
}
|
|
6074
|
+
function schemaList(clientOptions = {}) {
|
|
6075
|
+
return new PmClient(clientOptions).schemaList();
|
|
6076
|
+
}
|
|
6077
|
+
function schemaShow(name, clientOptions = {}) {
|
|
6078
|
+
return new PmClient(clientOptions).schemaShow(name);
|
|
6079
|
+
}
|
|
6080
|
+
function schemaAddType(name, options = {}, clientOptions = {}) {
|
|
6081
|
+
return new PmClient(clientOptions).schemaAddType(name, options);
|
|
6082
|
+
}
|
|
6083
|
+
function schemaRemoveType(name, options = {}, clientOptions = {}) {
|
|
6084
|
+
return new PmClient(clientOptions).schemaRemoveType(name, options);
|
|
6085
|
+
}
|
|
6086
|
+
function schemaAddStatus(name, options = {}, clientOptions = {}) {
|
|
6087
|
+
return new PmClient(clientOptions).schemaAddStatus(name, options);
|
|
6088
|
+
}
|
|
6089
|
+
function schemaRemoveStatus(name, options = {}, clientOptions = {}) {
|
|
6090
|
+
return new PmClient(clientOptions).schemaRemoveStatus(name, options);
|
|
6091
|
+
}
|
|
6092
|
+
function schemaAddField(name, options = {}, clientOptions = {}) {
|
|
6093
|
+
return new PmClient(clientOptions).schemaAddField(name, options);
|
|
6094
|
+
}
|
|
6095
|
+
function schemaRemoveField(name, options = {}, clientOptions = {}) {
|
|
6096
|
+
return new PmClient(clientOptions).schemaRemoveField(name, options);
|
|
6097
|
+
}
|
|
6098
|
+
function schemaListFields(clientOptions = {}) {
|
|
6099
|
+
return new PmClient(clientOptions).schemaListFields();
|
|
6100
|
+
}
|
|
6101
|
+
function schemaShowField(name, clientOptions = {}) {
|
|
6102
|
+
return new PmClient(clientOptions).schemaShowField(name);
|
|
6103
|
+
}
|
|
6104
|
+
function schemaApplyPreset(typePreset, options = {}, clientOptions = {}) {
|
|
6105
|
+
return new PmClient(clientOptions).schemaApplyPreset(typePreset, options);
|
|
6106
|
+
}
|
|
6107
|
+
function schemaInferTypes(options = {}, clientOptions = {}) {
|
|
6108
|
+
return new PmClient(clientOptions).schemaInferTypes(options);
|
|
6109
|
+
}
|
|
6110
|
+
function schemaShowStatus(name, clientOptions = {}) {
|
|
6111
|
+
return new PmClient(clientOptions).schemaShowStatus(name);
|
|
6112
|
+
}
|
|
6113
|
+
function profile(subcommand, options = {}, clientOptions = {}) {
|
|
6114
|
+
return new PmClient(clientOptions).profile(subcommand, options);
|
|
6115
|
+
}
|
|
6116
|
+
function profileList(clientOptions = {}) {
|
|
6117
|
+
return new PmClient(clientOptions).profileList();
|
|
6118
|
+
}
|
|
6119
|
+
function profileShow(name, clientOptions = {}) {
|
|
6120
|
+
return new PmClient(clientOptions).profileShow(name);
|
|
6121
|
+
}
|
|
6122
|
+
function profileApply(name, options = {}, clientOptions = {}) {
|
|
6123
|
+
return new PmClient(clientOptions).profileApply(name, options);
|
|
6124
|
+
}
|
|
6125
|
+
function profileLint(name, clientOptions = {}) {
|
|
6126
|
+
return new PmClient(clientOptions).profileLint(name);
|
|
6127
|
+
}
|
|
6128
|
+
function validate(options = {}, clientOptions = {}) {
|
|
6129
|
+
return new PmClient(clientOptions).validate(options);
|
|
6130
|
+
}
|
|
6131
|
+
function health(options = {}, clientOptions = {}) {
|
|
6132
|
+
return new PmClient(clientOptions).health(options);
|
|
6133
|
+
}
|
|
6134
|
+
function gc(options = {}, clientOptions = {}) {
|
|
6135
|
+
return new PmClient(clientOptions).gc(options);
|
|
6136
|
+
}
|
|
5844
6137
|
function create(options = {}, clientOptions = {}) {
|
|
5845
6138
|
return new PmClient(clientOptions).create(options);
|
|
5846
6139
|
}
|
|
@@ -6039,11 +6332,16 @@ var LIFECYCLE_AUTHOR_ALIAS_ACTIONS = /* @__PURE__ */ new Set([
|
|
|
6039
6332
|
function normalizeMcpOptionsArrays(options, action) {
|
|
6040
6333
|
const result = {};
|
|
6041
6334
|
const promoteAddRemove = action !== void 0 && ARRAY_ADD_REMOVE_ACTIONS.has(action);
|
|
6335
|
+
const preserveStandaloneNote = action === "files" || action === "files-discover" || action === "docs";
|
|
6042
6336
|
for (const [key, value] of Object.entries(options)) {
|
|
6043
6337
|
if (Array.isArray(value) && ARRAY_TO_CSV_FIELDS.has(key)) {
|
|
6044
6338
|
result[key] = value.join(",");
|
|
6045
6339
|
continue;
|
|
6046
6340
|
}
|
|
6341
|
+
if (key === "note" && preserveStandaloneNote) {
|
|
6342
|
+
result[key] = value;
|
|
6343
|
+
continue;
|
|
6344
|
+
}
|
|
6047
6345
|
if (typeof value === "string" && SCALAR_TO_ARRAY_FIELDS.has(key)) {
|
|
6048
6346
|
result[key] = [value];
|
|
6049
6347
|
continue;
|
|
@@ -6642,8 +6940,8 @@ function createMcpSchemaContext(ctx) {
|
|
|
6642
6940
|
aliases: aliasSource === void 0 ? void 0 : readStringArray(aliasSource)
|
|
6643
6941
|
};
|
|
6644
6942
|
}
|
|
6645
|
-
function runMcpSchemaReadOrRemoveAction(
|
|
6646
|
-
const { ctx, subcommand, name, author, force } =
|
|
6943
|
+
function runMcpSchemaReadOrRemoveAction(schema2) {
|
|
6944
|
+
const { ctx, subcommand, name, author, force } = schema2;
|
|
6647
6945
|
const simpleHandlers = {
|
|
6648
6946
|
list: () => runSchemaList(ctx.global),
|
|
6649
6947
|
show: () => runSchemaShow(name, ctx.global),
|
|
@@ -6658,8 +6956,8 @@ function runMcpSchemaReadOrRemoveAction(schema) {
|
|
|
6658
6956
|
const handler = getOwnHandler(simpleHandlers, subcommand);
|
|
6659
6957
|
return handler ? handler() : null;
|
|
6660
6958
|
}
|
|
6661
|
-
function runMcpSchemaAddFieldAction(
|
|
6662
|
-
const { ctx, name, author, force, aliases } =
|
|
6959
|
+
function runMcpSchemaAddFieldAction(schema2) {
|
|
6960
|
+
const { ctx, name, author, force, aliases } = schema2;
|
|
6663
6961
|
const commandsSource = ctx.args.commands ?? ctx.options.commands;
|
|
6664
6962
|
const requiredTypesSource = ctx.args.requiredTypes ?? ctx.options.requiredTypes;
|
|
6665
6963
|
return runSchemaAddField(name, {
|
|
@@ -6676,8 +6974,8 @@ function runMcpSchemaAddFieldAction(schema) {
|
|
|
6676
6974
|
force
|
|
6677
6975
|
}, ctx.global);
|
|
6678
6976
|
}
|
|
6679
|
-
function runMcpSchemaAddStatusAction(
|
|
6680
|
-
const { ctx, name, author, force, aliases } =
|
|
6977
|
+
function runMcpSchemaAddStatusAction(schema2) {
|
|
6978
|
+
const { ctx, name, author, force, aliases } = schema2;
|
|
6681
6979
|
const roleSource = ctx.args.role ?? ctx.options.role;
|
|
6682
6980
|
return runSchemaAddStatus(name, {
|
|
6683
6981
|
role: roleSource === void 0 ? void 0 : readStringArray(roleSource),
|
|
@@ -6688,8 +6986,8 @@ function runMcpSchemaAddStatusAction(schema) {
|
|
|
6688
6986
|
force
|
|
6689
6987
|
}, ctx.global);
|
|
6690
6988
|
}
|
|
6691
|
-
function runMcpSchemaAddTypeAction(
|
|
6692
|
-
const { ctx, name, author, force, aliases } =
|
|
6989
|
+
function runMcpSchemaAddTypeAction(schema2) {
|
|
6990
|
+
const { ctx, name, author, force, aliases } = schema2;
|
|
6693
6991
|
return runSchemaAddType(name, {
|
|
6694
6992
|
description: readString(ctx.args, "description") ?? readString(ctx.options, "description"),
|
|
6695
6993
|
defaultStatus: readString(ctx.args, "defaultStatus") ?? readString(ctx.args, "default_status") ?? readString(ctx.options, "defaultStatus") ?? readString(ctx.options, "default_status"),
|
|
@@ -6700,29 +6998,29 @@ function runMcpSchemaAddTypeAction(schema) {
|
|
|
6700
6998
|
}, ctx.global);
|
|
6701
6999
|
}
|
|
6702
7000
|
function runMcpSchemaAction(ctx) {
|
|
6703
|
-
const
|
|
6704
|
-
const simpleResult = runMcpSchemaReadOrRemoveAction(
|
|
7001
|
+
const schema2 = createMcpSchemaContext(ctx);
|
|
7002
|
+
const simpleResult = runMcpSchemaReadOrRemoveAction(schema2);
|
|
6705
7003
|
if (simpleResult !== null) {
|
|
6706
7004
|
return simpleResult;
|
|
6707
7005
|
}
|
|
6708
|
-
if (
|
|
6709
|
-
return runMcpSchemaAddFieldAction(
|
|
7006
|
+
if (schema2.subcommand === "add-field") {
|
|
7007
|
+
return runMcpSchemaAddFieldAction(schema2);
|
|
6710
7008
|
}
|
|
6711
|
-
if (
|
|
6712
|
-
return runMcpSchemaAddStatusAction(
|
|
7009
|
+
if (schema2.subcommand === "add-status") {
|
|
7010
|
+
return runMcpSchemaAddStatusAction(schema2);
|
|
6713
7011
|
}
|
|
6714
|
-
if (
|
|
7012
|
+
if (schema2.subcommand === "add-type") {
|
|
6715
7013
|
if (ctx.args.infer === true || ctx.options.infer === true) {
|
|
6716
7014
|
return runSchemaInferTypes({
|
|
6717
7015
|
minCount: parseMcpInteger(ctx.args.minCount ?? ctx.options.minCount, "schema infer minCount"),
|
|
6718
7016
|
apply: ctx.args.apply === true || ctx.options.apply === true,
|
|
6719
|
-
author:
|
|
6720
|
-
force:
|
|
7017
|
+
author: schema2.author,
|
|
7018
|
+
force: schema2.force
|
|
6721
7019
|
}, ctx.global);
|
|
6722
7020
|
}
|
|
6723
|
-
return runMcpSchemaAddTypeAction(
|
|
7021
|
+
return runMcpSchemaAddTypeAction(schema2);
|
|
6724
7022
|
}
|
|
6725
|
-
throw new PmCliError(`Unknown pm schema subcommand "${
|
|
7023
|
+
throw new PmCliError(`Unknown pm schema subcommand "${schema2.subcommand}". Allowed: add-type, remove-type, add-status, remove-status, add-field, remove-field, list-fields, show-field, apply-preset, list, show, show-status`, 64);
|
|
6726
7024
|
}
|
|
6727
7025
|
function runMcpProfileAction(ctx) {
|
|
6728
7026
|
const subcommand = readString(ctx.args, "subcommand") ?? readRequiredString(ctx.options, "subcommand");
|
|
@@ -6963,6 +7261,38 @@ export {
|
|
|
6963
7261
|
next,
|
|
6964
7262
|
aggregate,
|
|
6965
7263
|
stats,
|
|
7264
|
+
comments,
|
|
7265
|
+
notes,
|
|
7266
|
+
learnings,
|
|
7267
|
+
files,
|
|
7268
|
+
filesDiscover,
|
|
7269
|
+
docs,
|
|
7270
|
+
deps,
|
|
7271
|
+
append,
|
|
7272
|
+
init,
|
|
7273
|
+
config,
|
|
7274
|
+
schema,
|
|
7275
|
+
schemaList,
|
|
7276
|
+
schemaShow,
|
|
7277
|
+
schemaAddType,
|
|
7278
|
+
schemaRemoveType,
|
|
7279
|
+
schemaAddStatus,
|
|
7280
|
+
schemaRemoveStatus,
|
|
7281
|
+
schemaAddField,
|
|
7282
|
+
schemaRemoveField,
|
|
7283
|
+
schemaListFields,
|
|
7284
|
+
schemaShowField,
|
|
7285
|
+
schemaApplyPreset,
|
|
7286
|
+
schemaInferTypes,
|
|
7287
|
+
schemaShowStatus,
|
|
7288
|
+
profile,
|
|
7289
|
+
profileList,
|
|
7290
|
+
profileShow,
|
|
7291
|
+
profileApply,
|
|
7292
|
+
profileLint,
|
|
7293
|
+
validate,
|
|
7294
|
+
health,
|
|
7295
|
+
gc,
|
|
6966
7296
|
create,
|
|
6967
7297
|
update,
|
|
6968
7298
|
close,
|
|
@@ -6996,4 +7326,4 @@ export {
|
|
|
6996
7326
|
readRequiredString,
|
|
6997
7327
|
runAction
|
|
6998
7328
|
};
|
|
6999
|
-
//# sourceMappingURL=chunk-
|
|
7329
|
+
//# sourceMappingURL=chunk-CEX2DQXZ.js.map
|