@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.
Files changed (170) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +1 -0
  3. package/dist/cli/commands/close.js +5 -2
  4. package/dist/cli/commands/close.js.map +1 -1
  5. package/dist/cli/commands/completion.js +8 -2
  6. package/dist/cli/commands/completion.js.map +1 -1
  7. package/dist/cli/commands/contracts.d.ts +11 -0
  8. package/dist/cli/commands/contracts.js +112 -15
  9. package/dist/cli/commands/contracts.js.map +1 -1
  10. package/dist/cli/commands/create.js +4 -2
  11. package/dist/cli/commands/create.js.map +1 -1
  12. package/dist/cli/commands/list.d.ts +4 -0
  13. package/dist/cli/commands/list.js +32 -3
  14. package/dist/cli/commands/list.js.map +1 -1
  15. package/dist/cli/commands/update.d.ts +32 -1
  16. package/dist/cli/commands/update.js +19 -2
  17. package/dist/cli/commands/update.js.map +1 -1
  18. package/dist/cli/register-list-query.js +4 -2
  19. package/dist/cli/register-list-query.js.map +1 -1
  20. package/dist/cli/register-operations.js +4 -2
  21. package/dist/cli/register-operations.js.map +1 -1
  22. package/dist/cli/registration-helpers.js +4 -2
  23. package/dist/cli/registration-helpers.js.map +1 -1
  24. package/dist/cli-bundle/chunks/{chunk-D63PEJTB.js → chunk-26MFLA7K.js} +2 -2
  25. package/dist/cli-bundle/chunks/{chunk-HI27UADG.js → chunk-2FKIIQMJ.js} +3 -3
  26. package/dist/cli-bundle/chunks/{chunk-RLHQ3G4M.js → chunk-5RJ4LFD3.js} +30 -3
  27. package/dist/cli-bundle/chunks/chunk-5RJ4LFD3.js.map +7 -0
  28. package/dist/cli-bundle/chunks/{chunk-IYRG5AEC.js → chunk-5ZMZF53A.js} +3 -3
  29. package/dist/cli-bundle/chunks/{chunk-UVFJSKTF.js → chunk-63PZJCKO.js} +7 -4
  30. package/dist/cli-bundle/chunks/chunk-63PZJCKO.js.map +1 -0
  31. package/dist/cli-bundle/chunks/{chunk-TUDAYIO7.js → chunk-ASSVI7FP.js} +5 -3
  32. package/dist/cli-bundle/chunks/{chunk-TUDAYIO7.js.map → chunk-ASSVI7FP.js.map} +1 -1
  33. package/dist/cli-bundle/chunks/{chunk-KMXVZ2P7.js → chunk-BPYVKTZE.js} +112 -17
  34. package/dist/cli-bundle/chunks/chunk-BPYVKTZE.js.map +1 -0
  35. package/dist/cli-bundle/chunks/{chunk-3FRNNVWY.js → chunk-CEX2DQXZ.js} +405 -75
  36. package/dist/cli-bundle/chunks/chunk-CEX2DQXZ.js.map +7 -0
  37. package/dist/cli-bundle/chunks/{chunk-DUBC6TI3.js → chunk-CHSXGTWF.js} +18 -4
  38. package/dist/cli-bundle/chunks/{chunk-DUBC6TI3.js.map → chunk-CHSXGTWF.js.map} +2 -2
  39. package/dist/cli-bundle/chunks/{chunk-G4FKP4ID.js → chunk-DBV5A7FT.js} +6 -4
  40. package/dist/cli-bundle/chunks/chunk-DBV5A7FT.js.map +1 -0
  41. package/dist/cli-bundle/chunks/{chunk-YQEKE4FO.js → chunk-DQLP22K2.js} +3 -3
  42. package/dist/cli-bundle/chunks/{chunk-ZMOPZFVT.js → chunk-GZ365M6E.js} +2 -2
  43. package/dist/cli-bundle/chunks/{chunk-XPSGJ4IV.js → chunk-K2OKKYSO.js} +4 -2
  44. package/dist/cli-bundle/chunks/{chunk-XPSGJ4IV.js.map → chunk-K2OKKYSO.js.map} +2 -2
  45. package/dist/cli-bundle/chunks/{chunk-TR2C6V5T.js → chunk-K4NMHZR3.js} +90 -19
  46. package/dist/cli-bundle/chunks/chunk-K4NMHZR3.js.map +7 -0
  47. package/dist/cli-bundle/chunks/{chunk-MYHFZNBO.js → chunk-KAJNWMBE.js} +2 -2
  48. package/dist/cli-bundle/chunks/{chunk-TU5P744I.js → chunk-MBLHA6LR.js} +2 -2
  49. package/dist/cli-bundle/chunks/{chunk-UCRYCT5M.js → chunk-MCZK7LY6.js} +19 -5
  50. package/dist/cli-bundle/chunks/{chunk-UCRYCT5M.js.map → chunk-MCZK7LY6.js.map} +1 -1
  51. package/dist/cli-bundle/chunks/{chunk-TTCJCKUJ.js → chunk-N4S7BV43.js} +3 -3
  52. package/dist/cli-bundle/chunks/{chunk-ML27MHNM.js → chunk-NBJCIAVV.js} +88 -17
  53. package/dist/cli-bundle/chunks/chunk-NBJCIAVV.js.map +1 -0
  54. package/dist/cli-bundle/chunks/{chunk-ASMRSIDX.js → chunk-NRYZ4QLH.js} +111 -16
  55. package/dist/cli-bundle/chunks/chunk-NRYZ4QLH.js.map +7 -0
  56. package/dist/cli-bundle/chunks/{chunk-RDJXIAJB.js → chunk-NSPSJWGL.js} +6 -3
  57. package/dist/cli-bundle/chunks/chunk-NSPSJWGL.js.map +7 -0
  58. package/dist/cli-bundle/chunks/{chunk-PJPZTE7P.js → chunk-ONADVBMD.js} +5 -3
  59. package/dist/cli-bundle/chunks/chunk-ONADVBMD.js.map +7 -0
  60. package/dist/cli-bundle/chunks/{chunk-GE44TQMC.js → chunk-P5SUMCU5.js} +3 -3
  61. package/dist/cli-bundle/chunks/{chunk-2RADY7IB.js → chunk-PPY3GXFK.js} +405 -75
  62. package/dist/cli-bundle/chunks/chunk-PPY3GXFK.js.map +1 -0
  63. package/dist/cli-bundle/chunks/{chunk-YR5R4FMQ.js → chunk-S7J3GEHL.js} +4 -4
  64. package/dist/cli-bundle/chunks/{chunk-XN5BEN2B.js → chunk-TI7QSUFK.js} +31 -4
  65. package/dist/cli-bundle/chunks/chunk-TI7QSUFK.js.map +1 -0
  66. package/dist/cli-bundle/chunks/{chunk-EYPIUFWJ.js → chunk-VCGHRLJU.js} +4 -4
  67. package/dist/cli-bundle/chunks/{chunk-P2WE5KCU.js → chunk-WDNPNW22.js} +2 -2
  68. package/dist/cli-bundle/chunks/{chunk-SN5X5GTU.js → chunk-XXN2B2MJ.js} +2 -2
  69. package/dist/cli-bundle/chunks/{chunk-GQOKFX2G.js → chunk-Y2736PT5.js} +2 -2
  70. package/dist/cli-bundle/chunks/{chunk-FL625JJM.js → chunk-YHKXNGLA.js} +3 -3
  71. package/dist/cli-bundle/chunks/{chunk-YUCKM3MD.js → chunk-YPE5MFPJ.js} +2 -2
  72. package/dist/cli-bundle/chunks/{close-E3RLZSP2.js → close-5WY6QO5F.js} +2 -2
  73. package/dist/cli-bundle/chunks/{close-K6BFI3OX.js → close-TKTFRL7N.js} +2 -2
  74. package/dist/cli-bundle/chunks/{close-many-6NBL3PM4.js → close-many-HEPL66EG.js} +4 -4
  75. package/dist/cli-bundle/chunks/{close-many-X4YKS3RO.js → close-many-U2KLQ3NL.js} +4 -4
  76. package/dist/cli-bundle/chunks/{create-AMBMYP6F.js → create-KCQM6UYM.js} +2 -2
  77. package/dist/cli-bundle/chunks/{create-TRIBYORN.js → create-LD4SEUD6.js} +2 -2
  78. package/dist/cli-bundle/chunks/{plan-MK2QY3GA.js → plan-B42KBMX7.js} +3 -3
  79. package/dist/cli-bundle/chunks/{plan-CJPKFRBK.js → plan-LUR7C24X.js} +3 -3
  80. package/dist/cli-bundle/chunks/{profile-HTBFINKQ.js → profile-5F75MO5O.js} +3 -3
  81. package/dist/cli-bundle/chunks/{profile-AQNHXOYA.js → profile-JRDMDGT5.js} +3 -3
  82. package/dist/cli-bundle/chunks/{register-list-query-EEF33SUJ.js → register-list-query-GZYRZLQZ.js} +8 -8
  83. package/dist/cli-bundle/chunks/register-list-query-GZYRZLQZ.js.map +1 -0
  84. package/dist/cli-bundle/chunks/{register-list-query-S4FBWIWN.js → register-list-query-W2W7RQJJ.js} +7 -7
  85. package/dist/cli-bundle/chunks/register-list-query-W2W7RQJJ.js.map +7 -0
  86. package/dist/cli-bundle/chunks/{register-mutation-L5Q7AUDN.js → register-mutation-5UDT3WL3.js} +10 -10
  87. package/dist/cli-bundle/chunks/{register-mutation-QFLRBCI7.js → register-mutation-7DMOYDPC.js} +10 -10
  88. package/dist/cli-bundle/chunks/{register-operations-QDU43FCG.js → register-operations-NW43IUPE.js} +12 -11
  89. package/dist/cli-bundle/chunks/register-operations-NW43IUPE.js.map +7 -0
  90. package/dist/cli-bundle/chunks/{register-operations-HDE4FVW4.js → register-operations-Y4E32W4D.js} +13 -12
  91. package/dist/cli-bundle/chunks/register-operations-Y4E32W4D.js.map +1 -0
  92. package/dist/cli-bundle/chunks/{register-setup-EGMTAXDC.js → register-setup-3GVJ7XPE.js} +6 -6
  93. package/dist/cli-bundle/chunks/{register-setup-PNIO3L2P.js → register-setup-MPTTS52V.js} +6 -6
  94. package/dist/cli-bundle/chunks/{update-SDIRJGSY.js → update-76CRUMC7.js} +4 -4
  95. package/dist/cli-bundle/chunks/{update-MP4XLU56.js → update-ZMYVXM77.js} +4 -4
  96. package/dist/cli-bundle/chunks/{update-many-34AIU6W7.js → update-many-QYQRGNPU.js} +6 -6
  97. package/dist/cli-bundle/chunks/{update-many-JUPCNOKV.js → update-many-U4CEQWI4.js} +6 -6
  98. package/dist/cli-bundle/main.js +7 -7
  99. package/dist/cli-bundle/sdk-runtime.js +81 -17
  100. package/dist/cli-bundle/sdk.js +84 -20
  101. package/dist/cli-bundle/sdk.js.map +3 -3
  102. package/dist/sdk/cli-contracts/flag-contracts.js +5 -2
  103. package/dist/sdk/cli-contracts/flag-contracts.js.map +1 -1
  104. package/dist/sdk/cli-contracts/tool-option-contracts.js +10 -5
  105. package/dist/sdk/cli-contracts/tool-option-contracts.js.map +1 -1
  106. package/dist/sdk/cli-contracts/tool-parameter-tables.js +12 -4
  107. package/dist/sdk/cli-contracts/tool-parameter-tables.js.map +1 -1
  108. package/dist/sdk/cli-contracts/tool-schema.d.ts +4 -0
  109. package/dist/sdk/cli-contracts/tool-schema.js +66 -11
  110. package/dist/sdk/cli-contracts/tool-schema.js.map +1 -1
  111. package/dist/sdk/index.d.ts +1 -1
  112. package/dist/sdk/index.js +3 -3
  113. package/dist/sdk/index.js.map +1 -1
  114. package/dist/sdk/runtime.d.ts +340 -25
  115. package/dist/sdk/runtime.js +413 -25
  116. package/dist/sdk/runtime.js.map +1 -1
  117. package/docs/AGENT_GUIDE.md +3 -0
  118. package/docs/COMMANDS.md +10 -1
  119. package/docs/SDK.md +37 -0
  120. package/package.json +1 -1
  121. package/dist/cli-bundle/chunks/chunk-2RADY7IB.js.map +0 -1
  122. package/dist/cli-bundle/chunks/chunk-3FRNNVWY.js.map +0 -7
  123. package/dist/cli-bundle/chunks/chunk-ASMRSIDX.js.map +0 -7
  124. package/dist/cli-bundle/chunks/chunk-G4FKP4ID.js.map +0 -1
  125. package/dist/cli-bundle/chunks/chunk-KMXVZ2P7.js.map +0 -1
  126. package/dist/cli-bundle/chunks/chunk-ML27MHNM.js.map +0 -1
  127. package/dist/cli-bundle/chunks/chunk-PJPZTE7P.js.map +0 -7
  128. package/dist/cli-bundle/chunks/chunk-RDJXIAJB.js.map +0 -7
  129. package/dist/cli-bundle/chunks/chunk-RLHQ3G4M.js.map +0 -7
  130. package/dist/cli-bundle/chunks/chunk-TR2C6V5T.js.map +0 -7
  131. package/dist/cli-bundle/chunks/chunk-UVFJSKTF.js.map +0 -1
  132. package/dist/cli-bundle/chunks/chunk-XN5BEN2B.js.map +0 -1
  133. package/dist/cli-bundle/chunks/register-list-query-EEF33SUJ.js.map +0 -1
  134. package/dist/cli-bundle/chunks/register-list-query-S4FBWIWN.js.map +0 -7
  135. package/dist/cli-bundle/chunks/register-operations-HDE4FVW4.js.map +0 -1
  136. package/dist/cli-bundle/chunks/register-operations-QDU43FCG.js.map +0 -7
  137. /package/dist/cli-bundle/chunks/{chunk-D63PEJTB.js.map → chunk-26MFLA7K.js.map} +0 -0
  138. /package/dist/cli-bundle/chunks/{chunk-HI27UADG.js.map → chunk-2FKIIQMJ.js.map} +0 -0
  139. /package/dist/cli-bundle/chunks/{chunk-IYRG5AEC.js.map → chunk-5ZMZF53A.js.map} +0 -0
  140. /package/dist/cli-bundle/chunks/{chunk-YQEKE4FO.js.map → chunk-DQLP22K2.js.map} +0 -0
  141. /package/dist/cli-bundle/chunks/{chunk-ZMOPZFVT.js.map → chunk-GZ365M6E.js.map} +0 -0
  142. /package/dist/cli-bundle/chunks/{chunk-MYHFZNBO.js.map → chunk-KAJNWMBE.js.map} +0 -0
  143. /package/dist/cli-bundle/chunks/{chunk-TU5P744I.js.map → chunk-MBLHA6LR.js.map} +0 -0
  144. /package/dist/cli-bundle/chunks/{chunk-TTCJCKUJ.js.map → chunk-N4S7BV43.js.map} +0 -0
  145. /package/dist/cli-bundle/chunks/{chunk-GE44TQMC.js.map → chunk-P5SUMCU5.js.map} +0 -0
  146. /package/dist/cli-bundle/chunks/{chunk-YR5R4FMQ.js.map → chunk-S7J3GEHL.js.map} +0 -0
  147. /package/dist/cli-bundle/chunks/{chunk-EYPIUFWJ.js.map → chunk-VCGHRLJU.js.map} +0 -0
  148. /package/dist/cli-bundle/chunks/{chunk-P2WE5KCU.js.map → chunk-WDNPNW22.js.map} +0 -0
  149. /package/dist/cli-bundle/chunks/{chunk-SN5X5GTU.js.map → chunk-XXN2B2MJ.js.map} +0 -0
  150. /package/dist/cli-bundle/chunks/{chunk-GQOKFX2G.js.map → chunk-Y2736PT5.js.map} +0 -0
  151. /package/dist/cli-bundle/chunks/{chunk-FL625JJM.js.map → chunk-YHKXNGLA.js.map} +0 -0
  152. /package/dist/cli-bundle/chunks/{chunk-YUCKM3MD.js.map → chunk-YPE5MFPJ.js.map} +0 -0
  153. /package/dist/cli-bundle/chunks/{close-E3RLZSP2.js.map → close-5WY6QO5F.js.map} +0 -0
  154. /package/dist/cli-bundle/chunks/{close-K6BFI3OX.js.map → close-TKTFRL7N.js.map} +0 -0
  155. /package/dist/cli-bundle/chunks/{close-many-6NBL3PM4.js.map → close-many-HEPL66EG.js.map} +0 -0
  156. /package/dist/cli-bundle/chunks/{close-many-X4YKS3RO.js.map → close-many-U2KLQ3NL.js.map} +0 -0
  157. /package/dist/cli-bundle/chunks/{create-AMBMYP6F.js.map → create-KCQM6UYM.js.map} +0 -0
  158. /package/dist/cli-bundle/chunks/{create-TRIBYORN.js.map → create-LD4SEUD6.js.map} +0 -0
  159. /package/dist/cli-bundle/chunks/{plan-MK2QY3GA.js.map → plan-B42KBMX7.js.map} +0 -0
  160. /package/dist/cli-bundle/chunks/{plan-CJPKFRBK.js.map → plan-LUR7C24X.js.map} +0 -0
  161. /package/dist/cli-bundle/chunks/{profile-HTBFINKQ.js.map → profile-5F75MO5O.js.map} +0 -0
  162. /package/dist/cli-bundle/chunks/{profile-AQNHXOYA.js.map → profile-JRDMDGT5.js.map} +0 -0
  163. /package/dist/cli-bundle/chunks/{register-mutation-L5Q7AUDN.js.map → register-mutation-5UDT3WL3.js.map} +0 -0
  164. /package/dist/cli-bundle/chunks/{register-mutation-QFLRBCI7.js.map → register-mutation-7DMOYDPC.js.map} +0 -0
  165. /package/dist/cli-bundle/chunks/{register-setup-EGMTAXDC.js.map → register-setup-3GVJ7XPE.js.map} +0 -0
  166. /package/dist/cli-bundle/chunks/{register-setup-PNIO3L2P.js.map → register-setup-MPTTS52V.js.map} +0 -0
  167. /package/dist/cli-bundle/chunks/{update-SDIRJGSY.js.map → update-76CRUMC7.js.map} +0 -0
  168. /package/dist/cli-bundle/chunks/{update-MP4XLU56.js.map → update-ZMYVXM77.js.map} +0 -0
  169. /package/dist/cli-bundle/chunks/{update-many-34AIU6W7.js.map → update-many-QYQRGNPU.js.map} +0 -0
  170. /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]="172e4594-e82f-5ac4-add6-4f96b3b2890f")}catch(e){}}();
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]="8d7cc408-007b-599b-a0c1-42c938db1dca")}catch(e){}}();
3
3
  import {
4
4
  runFiles,
5
5
  runFilesDiscover
@@ -27,7 +27,7 @@ import {
27
27
  runTest,
28
28
  runTestAll,
29
29
  runValidate
30
- } from "./chunk-KMXVZ2P7.js";
30
+ } from "./chunk-BPYVKTZE.js";
31
31
  import {
32
32
  runComments
33
33
  } from "./chunk-LG4N6YOK.js";
@@ -48,7 +48,7 @@ import {
48
48
  runProfileLint,
49
49
  runProfileList,
50
50
  runProfileShow
51
- } from "./chunk-GQOKFX2G.js";
51
+ } from "./chunk-Y2736PT5.js";
52
52
  import {
53
53
  runNotes
54
54
  } from "./chunk-HZZ3AC27.js";
@@ -57,22 +57,22 @@ import {
57
57
  } from "./chunk-F5DDGY6R.js";
58
58
  import {
59
59
  runCloseMany
60
- } from "./chunk-IYRG5AEC.js";
60
+ } from "./chunk-5ZMZF53A.js";
61
61
  import {
62
62
  runUpdateMany
63
- } from "./chunk-YR5R4FMQ.js";
63
+ } from "./chunk-S7J3GEHL.js";
64
64
  import {
65
65
  runRestore
66
66
  } from "./chunk-PAWPLIWW.js";
67
67
  import {
68
68
  runUpdate
69
- } from "./chunk-UCRYCT5M.js";
69
+ } from "./chunk-MCZK7LY6.js";
70
70
  import {
71
71
  runClose
72
- } from "./chunk-UVFJSKTF.js";
72
+ } from "./chunk-63PZJCKO.js";
73
73
  import {
74
74
  runPlan
75
- } from "./chunk-YUCKM3MD.js";
75
+ } from "./chunk-YPE5MFPJ.js";
76
76
  import {
77
77
  runHistoryCompact
78
78
  } from "./chunk-4OCWJ2AP.js";
@@ -82,12 +82,12 @@ import {
82
82
  import {
83
83
  runConfig,
84
84
  runUpgrade
85
- } from "./chunk-D63PEJTB.js";
85
+ } from "./chunk-26MFLA7K.js";
86
86
  import {
87
87
  SCAFFOLD_CAPABILITIES,
88
88
  runExtension,
89
89
  runInit
90
- } from "./chunk-GE44TQMC.js";
90
+ } from "./chunk-P5SUMCU5.js";
91
91
  import {
92
92
  runSchemaAddField,
93
93
  runSchemaAddStatus,
@@ -113,11 +113,11 @@ import {
113
113
  runNext,
114
114
  runSearch,
115
115
  tokenizeAlphaNumeric
116
- } from "./chunk-HI27UADG.js";
116
+ } from "./chunk-2FKIIQMJ.js";
117
117
  import {
118
118
  buildListQueryFilters,
119
119
  runList
120
- } from "./chunk-XN5BEN2B.js";
120
+ } from "./chunk-TI7QSUFK.js";
121
121
  import {
122
122
  runHistory
123
123
  } from "./chunk-6WCXSC5V.js";
@@ -150,7 +150,7 @@ import {
150
150
  resolveSettingsWithSemanticRuntimeDefaults,
151
151
  resolveVectorStores,
152
152
  writeVectorizationStatusLedger
153
- } from "./chunk-G4FKP4ID.js";
153
+ } from "./chunk-DBV5A7FT.js";
154
154
  import {
155
155
  ACTIVITY_FLAG_CONTRACTS,
156
156
  AGGREGATE_FLAG_CONTRACTS,
@@ -183,10 +183,10 @@ import {
183
183
  UPDATE_FLAG_CONTRACTS,
184
184
  UPDATE_MANY_FLAG_CONTRACTS,
185
185
  toCompletionFlagString
186
- } from "./chunk-ML27MHNM.js";
186
+ } from "./chunk-NBJCIAVV.js";
187
187
  import {
188
188
  runCreate
189
- } from "./chunk-TUDAYIO7.js";
189
+ } from "./chunk-ASSVI7FP.js";
190
190
  import {
191
191
  parseTags
192
192
  } from "./chunk-3SHDAKMF.js";
@@ -1123,11 +1123,11 @@ function toExcerpt(content, maxLines, maxCharacters) {
1123
1123
  async function renderGuideDocs(topic, depth, packageRoot) {
1124
1124
  const includeContent = depth !== "brief";
1125
1125
  const contentMode = includeContent ? depth === "deep" ? "full" : "excerpt" : "none";
1126
- const docs = [];
1126
+ const docs2 = [];
1127
1127
  for (const doc of topic.docs) {
1128
1128
  const absolutePath = path.resolve(packageRoot, doc.path);
1129
1129
  if (!includeContent) {
1130
- docs.push({
1130
+ docs2.push({
1131
1131
  path: doc.path,
1132
1132
  purpose: doc.purpose,
1133
1133
  optional: doc.optional === true,
@@ -1143,7 +1143,7 @@ async function renderGuideDocs(topic, depth, packageRoot) {
1143
1143
  const rawContent = await readFile(absolutePath, "utf8");
1144
1144
  if (depth === "deep") {
1145
1145
  const normalized = normalizeLineEndings(rawContent).trimEnd();
1146
- docs.push({
1146
+ docs2.push({
1147
1147
  path: doc.path,
1148
1148
  purpose: doc.purpose,
1149
1149
  optional: doc.optional === true,
@@ -1155,7 +1155,7 @@ async function renderGuideDocs(topic, depth, packageRoot) {
1155
1155
  });
1156
1156
  } else {
1157
1157
  const excerpt = toExcerpt(rawContent, 120, 12e3);
1158
- docs.push({
1158
+ docs2.push({
1159
1159
  path: doc.path,
1160
1160
  purpose: doc.purpose,
1161
1161
  optional: doc.optional === true,
@@ -1169,7 +1169,7 @@ async function renderGuideDocs(topic, depth, packageRoot) {
1169
1169
  } catch (error) {
1170
1170
  const code = error?.code;
1171
1171
  const missing = code === "ENOENT";
1172
- docs.push({
1172
+ docs2.push({
1173
1173
  path: doc.path,
1174
1174
  purpose: doc.purpose,
1175
1175
  optional: doc.optional === true,
@@ -1184,7 +1184,7 @@ async function renderGuideDocs(topic, depth, packageRoot) {
1184
1184
  }
1185
1185
  }
1186
1186
  }
1187
- return docs;
1187
+ return docs2;
1188
1188
  }
1189
1189
  function buildGuideIndex(depth) {
1190
1190
  const topics = listGuideTopics().map((topic) => ({
@@ -1227,15 +1227,15 @@ async function runGuide(options, global) {
1227
1227
  }
1228
1228
  const topic = ensureGuideTopic(topicRaw);
1229
1229
  const packageRoot = resolvePackageRoot();
1230
- const docs = await renderGuideDocs(topic, depth, packageRoot);
1231
- const warnings = docs.filter((doc) => !doc.exists && !doc.optional).map((doc) => `Missing required guide document: ${doc.path}`);
1230
+ const docs2 = await renderGuideDocs(topic, depth, packageRoot);
1231
+ const warnings = docs2.filter((doc) => !doc.exists && !doc.optional).map((doc) => `Missing required guide document: ${doc.path}`);
1232
1232
  return {
1233
1233
  output_default: "toon",
1234
1234
  mode: "topic",
1235
1235
  depth,
1236
1236
  requested_topic: topicRaw,
1237
1237
  topic,
1238
- docs,
1238
+ docs: docs2,
1239
1239
  warnings
1240
1240
  };
1241
1241
  }
@@ -1994,6 +1994,8 @@ _pm() {
1994
1994
  '--priority[Filter by priority]:(0 1 2 3 4)' \\
1995
1995
  '--deadline-before[Filter by deadline upper bound (ISO/date string or relative)]:date' \\
1996
1996
  '--deadline-after[Filter by deadline lower bound (ISO/date string or relative)]:date' \\
1997
+ '--today[Filter to items updated since local midnight today]' \\
1998
+ '--recent[Filter to items updated in the last 7 days]' \\
1997
1999
  '--updated-after[Filter by updated_at lower bound (ISO/relative)]:timestamp' \\
1998
2000
  '--updated-before[Filter by updated_at upper bound (ISO/relative)]:timestamp' \\
1999
2001
  '--created-after[Filter by created_at lower bound (ISO/relative)]:timestamp' \\
@@ -2496,6 +2498,7 @@ ${zshSearchRuntimeFieldFlags} '--json[Output JSON]' \\
2496
2498
  _arguments \\
2497
2499
  '--action[Filter schema by tool action]:action' \\
2498
2500
  '--command[Scope output to one command (narrow-by-default)]:command' \\
2501
+ '--summary[Return compact command intent summary]' \\
2499
2502
  '--schema-only[Return schema-only payload]' \\
2500
2503
  '--flags-only[Return command flag contracts only]' \\
2501
2504
  '--availability-only[Return action availability only]' \\
@@ -2971,6 +2974,8 @@ for list_cmd in ${listCmds}
2971
2974
  complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l stream -d 'Emit line-delimited JSON rows (requires --json)'
2972
2975
  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
2973
2976
  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
2977
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l today -d 'Filter to items updated since local midnight today'
2978
+ complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l recent -d 'Filter to items updated in the last 7 days'
2974
2979
  complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l updated-after -d 'Filter by updated_at lower bound (ISO/relative)' -r
2975
2980
  complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l updated-before -d 'Filter by updated_at upper bound (ISO/relative)' -r
2976
2981
  complete -c pm -n "__fish_seen_subcommand_from $list_cmd" -l created-after -d 'Filter by created_at lower bound (ISO/relative)' -r
@@ -3465,6 +3470,7 @@ complete -c pm -n '__fish_seen_subcommand_from activity' -l full -d 'Show full a
3465
3470
  complete -c pm -n '__fish_seen_subcommand_from activity' -l stream -d 'Emit line-delimited JSON rows'
3466
3471
  complete -c pm -n '__fish_seen_subcommand_from contracts' -l action -d 'Filter schema by tool action' -r
3467
3472
  complete -c pm -n '__fish_seen_subcommand_from contracts' -l command -d 'Scope output to one command (narrow-by-default)' -r
3473
+ complete -c pm -n '__fish_seen_subcommand_from contracts' -l summary -d 'Return compact command intent summary'
3468
3474
  complete -c pm -n '__fish_seen_subcommand_from contracts' -l schema-only -d 'Return schema-only payload'
3469
3475
  complete -c pm -n '__fish_seen_subcommand_from contracts' -l flags-only -d 'Return command flag contracts only'
3470
3476
  complete -c pm -n '__fish_seen_subcommand_from contracts' -l availability-only -d 'Return action availability only'
@@ -3948,7 +3954,7 @@ function resolveCommentsAuditLimits(options) {
3948
3954
  };
3949
3955
  }
3950
3956
  function toCommentsAuditEntry(item, latest) {
3951
- const comments = item.comments ?? [];
3957
+ const comments2 = item.comments ?? [];
3952
3958
  return {
3953
3959
  id: item.id,
3954
3960
  title: item.title,
@@ -3956,8 +3962,8 @@ function toCommentsAuditEntry(item, latest) {
3956
3962
  status: item.status,
3957
3963
  assignee: item.assignee ?? null,
3958
3964
  updated_at: item.updated_at,
3959
- comment_count: comments.length,
3960
- comments: latest === void 0 ? comments : limitComments(comments, latest)
3965
+ comment_count: comments2.length,
3966
+ comments: latest === void 0 ? comments2 : limitComments(comments2, latest)
3961
3967
  };
3962
3968
  }
3963
3969
  function buildCommentsAuditFilters(options, status, limitItems, latest, fullHistory) {
@@ -4820,15 +4826,15 @@ function parseMode2(raw) {
4820
4826
  }
4821
4827
  throw new PmCliError("Reindex mode must be one of keyword|semantic|hybrid", EXIT_CODE.USAGE);
4822
4828
  }
4823
- async function loadDocumentCandidates(pmRoot, itemFormat, typeToFolder, schema) {
4829
+ async function loadDocumentCandidates(pmRoot, itemFormat, typeToFolder, schema2) {
4824
4830
  const warnings = [];
4825
- const candidates = await listAllDocumentCandidatesCached(pmRoot, itemFormat, typeToFolder, warnings, schema);
4831
+ const candidates = await listAllDocumentCandidatesCached(pmRoot, itemFormat, typeToFolder, warnings, schema2);
4826
4832
  return {
4827
4833
  candidates,
4828
4834
  warnings
4829
4835
  };
4830
4836
  }
4831
- async function hydrateDocuments(pmRoot, candidates, schema, warnings, itemIds) {
4837
+ async function hydrateDocuments(pmRoot, candidates, schema2, warnings, itemIds) {
4832
4838
  const extensionFieldNames = collectRegisteredItemFieldNames(getActiveExtensionRegistrations());
4833
4839
  const hydrated = [];
4834
4840
  for (const candidate of candidates) {
@@ -4846,7 +4852,7 @@ async function hydrateDocuments(pmRoot, candidates, schema, warnings, itemIds) {
4846
4852
  const raw = await fs.readFile(candidate.item_path, "utf8");
4847
4853
  const parsed = parseItemDocument(raw, {
4848
4854
  format: candidate.item_format,
4849
- schema,
4855
+ schema: schema2,
4850
4856
  extensionFieldNames,
4851
4857
  onWarning: (warning) => warnings.push(warning)
4852
4858
  });
@@ -5458,13 +5464,8 @@ async function runReindex(options, global) {
5458
5464
  }
5459
5465
 
5460
5466
  // dist/sdk/runtime.js
5461
- function splitClientMutationOptions(options) {
5462
- const { fullChangedFields, idOnly, ...runnerOptions } = options;
5463
- return {
5464
- ...fullChangedFields === void 0 ? {} : { fullChangedFields },
5465
- ...idOnly === void 0 ? {} : { idOnly },
5466
- options: runnerOptions
5467
- };
5467
+ function splitFullClientMutationOptions(options) {
5468
+ return { fullChangedFields: true, options };
5468
5469
  }
5469
5470
  var PmClient = class {
5470
5471
  defaults;
@@ -5530,83 +5531,279 @@ var PmClient = class {
5530
5531
  stats(options = {}) {
5531
5532
  return this.runTyped("stats", { options });
5532
5533
  }
5534
+ /**
5535
+ * List, add, edit, or delete item comments.
5536
+ */
5537
+ comments(id, options = {}) {
5538
+ return this.runTyped("comments", { id, options });
5539
+ }
5540
+ /**
5541
+ * List or append private item notes.
5542
+ */
5543
+ notes(id, options = {}) {
5544
+ return this.runTyped("notes", { id, options });
5545
+ }
5546
+ /**
5547
+ * List or append durable item learnings.
5548
+ */
5549
+ learnings(id, options = {}) {
5550
+ return this.runTyped("learnings", { id, options });
5551
+ }
5552
+ /**
5553
+ * Add, remove, clear, or list linked project files for an item.
5554
+ */
5555
+ files(id, options = {}) {
5556
+ return this.runTyped("files", { id, options });
5557
+ }
5558
+ /**
5559
+ * Discover and optionally attach changed files for an item.
5560
+ */
5561
+ filesDiscover(id, options = {}) {
5562
+ return this.runTyped("files-discover", { id, options });
5563
+ }
5564
+ /**
5565
+ * Add, remove, clear, or list linked documentation for an item.
5566
+ */
5567
+ docs(id, options = {}) {
5568
+ return this.runTyped("docs", { id, options });
5569
+ }
5570
+ /**
5571
+ * Inspect item dependency relationships.
5572
+ */
5573
+ deps(id, options = {}) {
5574
+ return this.runTyped("deps", { id, options });
5575
+ }
5576
+ /**
5577
+ * Append markdown/body text to an item through the mutation pipeline.
5578
+ */
5579
+ append(id, body, options = {}) {
5580
+ return this.runTyped("append", { id, ...splitFullClientMutationOptions({ ...options, body }) });
5581
+ }
5582
+ /**
5583
+ * Initialize a workspace with the same semantics as `pm init`.
5584
+ */
5585
+ init(prefix, options = {}) {
5586
+ return this.runTyped("init", { ...prefix === void 0 ? {} : { prefix }, options });
5587
+ }
5588
+ /**
5589
+ * Read or update project/global configuration.
5590
+ */
5591
+ config(scope, configAction, key, value, options = {}) {
5592
+ return this.runTyped("config", {
5593
+ scope,
5594
+ configAction,
5595
+ ...key === void 0 ? {} : { key },
5596
+ ...value === void 0 ? {} : { value },
5597
+ options
5598
+ });
5599
+ }
5600
+ /**
5601
+ * Run the schema customization surface.
5602
+ */
5603
+ schema(subcommand, options = {}) {
5604
+ return this.runTyped("schema", { options: { ...options, subcommand } });
5605
+ }
5606
+ /**
5607
+ * List built-in, custom, and extension-provided schema types/statuses.
5608
+ */
5609
+ schemaList() {
5610
+ return this.runTyped("schema", { options: { subcommand: "list" } });
5611
+ }
5612
+ /**
5613
+ * Show a schema item type definition.
5614
+ */
5615
+ schemaShow(name) {
5616
+ return this.runTyped("schema", { name, options: { subcommand: "show" } });
5617
+ }
5618
+ /**
5619
+ * Register or replace a custom item type.
5620
+ */
5621
+ schemaAddType(name, options = {}) {
5622
+ return this.runTyped("schema", { name, options: { ...options, subcommand: "add-type" } });
5623
+ }
5624
+ /**
5625
+ * Remove a custom item type.
5626
+ */
5627
+ schemaRemoveType(name, options = {}) {
5628
+ return this.runTyped("schema", { name, options: { ...options, subcommand: "remove-type" } });
5629
+ }
5630
+ /**
5631
+ * Register or replace a custom status.
5632
+ */
5633
+ schemaAddStatus(name, options = {}) {
5634
+ return this.runTyped("schema", { name, options: { ...options, subcommand: "add-status" } });
5635
+ }
5636
+ /**
5637
+ * Remove a custom status.
5638
+ */
5639
+ schemaRemoveStatus(name, options = {}) {
5640
+ return this.runTyped("schema", { name, options: { ...options, subcommand: "remove-status" } });
5641
+ }
5642
+ /**
5643
+ * Register or replace a runtime custom field.
5644
+ */
5645
+ schemaAddField(name, options = {}) {
5646
+ return this.runTyped("schema", { name, options: { ...options, subcommand: "add-field" } });
5647
+ }
5648
+ /**
5649
+ * Remove a runtime custom field.
5650
+ */
5651
+ schemaRemoveField(name, options = {}) {
5652
+ return this.runTyped("schema", { name, options: { ...options, subcommand: "remove-field" } });
5653
+ }
5654
+ /**
5655
+ * List runtime custom fields.
5656
+ */
5657
+ schemaListFields() {
5658
+ return this.runTyped("schema", { options: { subcommand: "list-fields" } });
5659
+ }
5660
+ /**
5661
+ * Show one runtime custom field definition.
5662
+ */
5663
+ schemaShowField(name) {
5664
+ return this.runTyped("schema", { name, options: { subcommand: "show-field" } });
5665
+ }
5666
+ /**
5667
+ * Apply a built-in type preset to the workspace schema.
5668
+ */
5669
+ schemaApplyPreset(typePreset, options = {}) {
5670
+ return this.runTyped("schema", { typePreset, options: { ...options, subcommand: "apply-preset" } });
5671
+ }
5672
+ /**
5673
+ * Infer item types from the current tracker and optionally apply them.
5674
+ */
5675
+ schemaInferTypes(options = {}) {
5676
+ return this.runTyped("schema", { options: { ...options, subcommand: "add-type", infer: true } });
5677
+ }
5678
+ /**
5679
+ * Show one runtime status definition.
5680
+ */
5681
+ schemaShowStatus(name) {
5682
+ return this.runTyped("schema", { name, options: { subcommand: "show-status" } });
5683
+ }
5684
+ /**
5685
+ * Run the profile customization surface.
5686
+ */
5687
+ profile(subcommand, options = {}) {
5688
+ return this.runTyped("profile", { options: { ...options, subcommand } });
5689
+ }
5690
+ /**
5691
+ * List available project profiles.
5692
+ */
5693
+ profileList() {
5694
+ return this.runTyped("profile", { options: { subcommand: "list" } });
5695
+ }
5696
+ /**
5697
+ * Show a project profile.
5698
+ */
5699
+ profileShow(name) {
5700
+ return this.runTyped("profile", { name, options: { subcommand: "show" } });
5701
+ }
5702
+ /**
5703
+ * Apply a project profile.
5704
+ */
5705
+ profileApply(name, options = {}) {
5706
+ return this.runTyped("profile", { name, options: { ...options, subcommand: "apply" } });
5707
+ }
5708
+ /**
5709
+ * Lint a project profile.
5710
+ */
5711
+ profileLint(name) {
5712
+ return this.runTyped("profile", { name, options: { subcommand: "lint" } });
5713
+ }
5714
+ /**
5715
+ * Run project validation checks.
5716
+ */
5717
+ validate(options = {}) {
5718
+ return this.runTyped("validate", { options });
5719
+ }
5720
+ /**
5721
+ * Run project health checks.
5722
+ */
5723
+ health(options = {}) {
5724
+ return this.runTyped("health", { options });
5725
+ }
5726
+ /**
5727
+ * Run tracker cache/runtime garbage collection.
5728
+ */
5729
+ gc(options = {}) {
5730
+ return this.runTyped("gc", { options });
5731
+ }
5533
5732
  /**
5534
5733
  * Create an item using the same mutation path as `pm create`.
5535
5734
  */
5536
5735
  create(options = {}) {
5537
- return this.run("create", splitClientMutationOptions(options));
5736
+ return this.runTyped("create", splitFullClientMutationOptions(options));
5538
5737
  }
5539
5738
  /**
5540
5739
  * Update an item using the same mutation path as `pm update`.
5541
5740
  */
5542
5741
  update(id, options = {}) {
5543
- return this.run("update", { id, ...splitClientMutationOptions(options) });
5742
+ return this.runTyped("update", { id, ...splitFullClientMutationOptions(options) });
5544
5743
  }
5545
5744
  /**
5546
5745
  * Close an item using the same mutation path as `pm close`.
5547
5746
  */
5548
5747
  close(id, reason, options = {}) {
5549
- return this.run("close", { id, reason, ...splitClientMutationOptions(options) });
5748
+ return this.runTyped("close", { id, reason, ...splitFullClientMutationOptions(options) });
5550
5749
  }
5551
5750
  /**
5552
5751
  * Claim an item using the same mutation path as `pm claim`.
5553
5752
  */
5554
5753
  claim(id, options = {}) {
5555
- return this.run("claim", { id, ...splitClientMutationOptions(options) });
5754
+ return this.runTyped("claim", { id, ...splitFullClientMutationOptions(options) });
5556
5755
  }
5557
5756
  /**
5558
5757
  * Release an item's active claim using the same mutation path as `pm release`.
5559
5758
  */
5560
5759
  release(id, options = {}) {
5561
- return this.run("release", { id, ...splitClientMutationOptions(options) });
5760
+ return this.runTyped("release", { id, ...splitFullClientMutationOptions(options) });
5562
5761
  }
5563
5762
  /**
5564
5763
  * Copy an item using the same mutation path as `pm copy`.
5565
5764
  */
5566
5765
  copy(id, options = {}) {
5567
- return this.run("copy", { id, ...splitClientMutationOptions(options) });
5766
+ return this.runTyped("copy", { id, ...splitFullClientMutationOptions(options) });
5568
5767
  }
5569
5768
  /**
5570
5769
  * Delete an item using the same mutation path as `pm delete`.
5571
5770
  */
5572
5771
  delete(id, options = {}) {
5573
- return this.run("delete", { id, ...splitClientMutationOptions(options) });
5772
+ return this.runTyped("delete", { id, ...splitFullClientMutationOptions(options) });
5574
5773
  }
5575
5774
  /**
5576
5775
  * Restore an item to a history version or timestamp using `pm restore`.
5577
5776
  */
5578
5777
  restore(id, target, options = {}) {
5579
- const { fullChangedFields, idOnly, ...runnerOptions } = options;
5580
- return this.run("restore", {
5581
- ...fullChangedFields === void 0 ? {} : { fullChangedFields },
5582
- ...idOnly === void 0 ? {} : { idOnly },
5778
+ return this.runTyped("restore", {
5779
+ fullChangedFields: true,
5583
5780
  id,
5584
- options: { ...runnerOptions, target }
5781
+ options: { ...options, target }
5585
5782
  });
5586
5783
  }
5587
5784
  /**
5588
5785
  * Set, clear, or read workspace focus using the same path as `pm focus`.
5589
5786
  */
5590
5787
  focus(id, options = {}) {
5591
- return this.run("focus", { ...id === void 0 ? {} : { id }, ...splitClientMutationOptions(options) });
5788
+ return this.runTyped("focus", { ...id === void 0 ? {} : { id }, ...splitFullClientMutationOptions(options) });
5592
5789
  }
5593
5790
  /**
5594
5791
  * Claim an item and transition it to the workspace in-progress status.
5595
5792
  */
5596
5793
  startTask(id, options = {}) {
5597
- return this.run("start-task", { id, ...splitClientMutationOptions(options) });
5794
+ return this.runTyped("start-task", { id, ...splitFullClientMutationOptions(options) });
5598
5795
  }
5599
5796
  /**
5600
5797
  * Move an item back to the workspace open status and release the claim.
5601
5798
  */
5602
5799
  pauseTask(id, options = {}) {
5603
- return this.run("pause-task", { id, ...splitClientMutationOptions(options) });
5800
+ return this.runTyped("pause-task", { id, ...splitFullClientMutationOptions(options) });
5604
5801
  }
5605
5802
  /**
5606
5803
  * Close an item and release its active assignment.
5607
5804
  */
5608
5805
  closeTask(id, reason, options = {}) {
5609
- return this.run("close-task", { id, reason, ...splitClientMutationOptions(options) });
5806
+ return this.runTyped("close-task", { id, reason, ...splitFullClientMutationOptions(options) });
5610
5807
  }
5611
5808
  /**
5612
5809
  * Run the extension lifecycle surface with the same result shape as `pm extension`.
@@ -5729,6 +5926,102 @@ function aggregate(options = {}, clientOptions = {}) {
5729
5926
  function stats(options = {}, clientOptions = {}) {
5730
5927
  return new PmClient(clientOptions).stats(options);
5731
5928
  }
5929
+ function comments(id, options = {}, clientOptions = {}) {
5930
+ return new PmClient(clientOptions).comments(id, options);
5931
+ }
5932
+ function notes(id, options = {}, clientOptions = {}) {
5933
+ return new PmClient(clientOptions).notes(id, options);
5934
+ }
5935
+ function learnings(id, options = {}, clientOptions = {}) {
5936
+ return new PmClient(clientOptions).learnings(id, options);
5937
+ }
5938
+ function files(id, options = {}, clientOptions = {}) {
5939
+ return new PmClient(clientOptions).files(id, options);
5940
+ }
5941
+ function filesDiscover(id, options = {}, clientOptions = {}) {
5942
+ return new PmClient(clientOptions).filesDiscover(id, options);
5943
+ }
5944
+ function docs(id, options = {}, clientOptions = {}) {
5945
+ return new PmClient(clientOptions).docs(id, options);
5946
+ }
5947
+ function deps(id, options = {}, clientOptions = {}) {
5948
+ return new PmClient(clientOptions).deps(id, options);
5949
+ }
5950
+ function append(id, body, options = {}, clientOptions = {}) {
5951
+ return new PmClient(clientOptions).append(id, body, options);
5952
+ }
5953
+ function init(prefix, options = {}, clientOptions = {}) {
5954
+ return new PmClient(clientOptions).init(prefix, options);
5955
+ }
5956
+ function config(scope, configAction, key, value, options = {}, clientOptions = {}) {
5957
+ return new PmClient(clientOptions).config(scope, configAction, key, value, options);
5958
+ }
5959
+ function schema(subcommand, options = {}, clientOptions = {}) {
5960
+ return new PmClient(clientOptions).schema(subcommand, options);
5961
+ }
5962
+ function schemaList(clientOptions = {}) {
5963
+ return new PmClient(clientOptions).schemaList();
5964
+ }
5965
+ function schemaShow(name, clientOptions = {}) {
5966
+ return new PmClient(clientOptions).schemaShow(name);
5967
+ }
5968
+ function schemaAddType(name, options = {}, clientOptions = {}) {
5969
+ return new PmClient(clientOptions).schemaAddType(name, options);
5970
+ }
5971
+ function schemaRemoveType(name, options = {}, clientOptions = {}) {
5972
+ return new PmClient(clientOptions).schemaRemoveType(name, options);
5973
+ }
5974
+ function schemaAddStatus(name, options = {}, clientOptions = {}) {
5975
+ return new PmClient(clientOptions).schemaAddStatus(name, options);
5976
+ }
5977
+ function schemaRemoveStatus(name, options = {}, clientOptions = {}) {
5978
+ return new PmClient(clientOptions).schemaRemoveStatus(name, options);
5979
+ }
5980
+ function schemaAddField(name, options = {}, clientOptions = {}) {
5981
+ return new PmClient(clientOptions).schemaAddField(name, options);
5982
+ }
5983
+ function schemaRemoveField(name, options = {}, clientOptions = {}) {
5984
+ return new PmClient(clientOptions).schemaRemoveField(name, options);
5985
+ }
5986
+ function schemaListFields(clientOptions = {}) {
5987
+ return new PmClient(clientOptions).schemaListFields();
5988
+ }
5989
+ function schemaShowField(name, clientOptions = {}) {
5990
+ return new PmClient(clientOptions).schemaShowField(name);
5991
+ }
5992
+ function schemaApplyPreset(typePreset, options = {}, clientOptions = {}) {
5993
+ return new PmClient(clientOptions).schemaApplyPreset(typePreset, options);
5994
+ }
5995
+ function schemaInferTypes(options = {}, clientOptions = {}) {
5996
+ return new PmClient(clientOptions).schemaInferTypes(options);
5997
+ }
5998
+ function schemaShowStatus(name, clientOptions = {}) {
5999
+ return new PmClient(clientOptions).schemaShowStatus(name);
6000
+ }
6001
+ function profile(subcommand, options = {}, clientOptions = {}) {
6002
+ return new PmClient(clientOptions).profile(subcommand, options);
6003
+ }
6004
+ function profileList(clientOptions = {}) {
6005
+ return new PmClient(clientOptions).profileList();
6006
+ }
6007
+ function profileShow(name, clientOptions = {}) {
6008
+ return new PmClient(clientOptions).profileShow(name);
6009
+ }
6010
+ function profileApply(name, options = {}, clientOptions = {}) {
6011
+ return new PmClient(clientOptions).profileApply(name, options);
6012
+ }
6013
+ function profileLint(name, clientOptions = {}) {
6014
+ return new PmClient(clientOptions).profileLint(name);
6015
+ }
6016
+ function validate(options = {}, clientOptions = {}) {
6017
+ return new PmClient(clientOptions).validate(options);
6018
+ }
6019
+ function health(options = {}, clientOptions = {}) {
6020
+ return new PmClient(clientOptions).health(options);
6021
+ }
6022
+ function gc(options = {}, clientOptions = {}) {
6023
+ return new PmClient(clientOptions).gc(options);
6024
+ }
5732
6025
  function create(options = {}, clientOptions = {}) {
5733
6026
  return new PmClient(clientOptions).create(options);
5734
6027
  }
@@ -5927,11 +6220,16 @@ var LIFECYCLE_AUTHOR_ALIAS_ACTIONS = /* @__PURE__ */ new Set([
5927
6220
  function normalizeMcpOptionsArrays(options, action) {
5928
6221
  const result = {};
5929
6222
  const promoteAddRemove = action !== void 0 && ARRAY_ADD_REMOVE_ACTIONS.has(action);
6223
+ const preserveStandaloneNote = action === "files" || action === "files-discover" || action === "docs";
5930
6224
  for (const [key, value] of Object.entries(options)) {
5931
6225
  if (Array.isArray(value) && ARRAY_TO_CSV_FIELDS.has(key)) {
5932
6226
  result[key] = value.join(",");
5933
6227
  continue;
5934
6228
  }
6229
+ if (key === "note" && preserveStandaloneNote) {
6230
+ result[key] = value;
6231
+ continue;
6232
+ }
5935
6233
  if (typeof value === "string" && SCALAR_TO_ARRAY_FIELDS.has(key)) {
5936
6234
  result[key] = [value];
5937
6235
  continue;
@@ -6530,8 +6828,8 @@ function createMcpSchemaContext(ctx) {
6530
6828
  aliases: aliasSource === void 0 ? void 0 : readStringArray(aliasSource)
6531
6829
  };
6532
6830
  }
6533
- function runMcpSchemaReadOrRemoveAction(schema) {
6534
- const { ctx, subcommand, name, author, force } = schema;
6831
+ function runMcpSchemaReadOrRemoveAction(schema2) {
6832
+ const { ctx, subcommand, name, author, force } = schema2;
6535
6833
  const simpleHandlers = {
6536
6834
  list: () => runSchemaList(ctx.global),
6537
6835
  show: () => runSchemaShow(name, ctx.global),
@@ -6546,8 +6844,8 @@ function runMcpSchemaReadOrRemoveAction(schema) {
6546
6844
  const handler = getOwnHandler(simpleHandlers, subcommand);
6547
6845
  return handler ? handler() : null;
6548
6846
  }
6549
- function runMcpSchemaAddFieldAction(schema) {
6550
- const { ctx, name, author, force, aliases } = schema;
6847
+ function runMcpSchemaAddFieldAction(schema2) {
6848
+ const { ctx, name, author, force, aliases } = schema2;
6551
6849
  const commandsSource = ctx.args.commands ?? ctx.options.commands;
6552
6850
  const requiredTypesSource = ctx.args.requiredTypes ?? ctx.options.requiredTypes;
6553
6851
  return runSchemaAddField(name, {
@@ -6564,8 +6862,8 @@ function runMcpSchemaAddFieldAction(schema) {
6564
6862
  force
6565
6863
  }, ctx.global);
6566
6864
  }
6567
- function runMcpSchemaAddStatusAction(schema) {
6568
- const { ctx, name, author, force, aliases } = schema;
6865
+ function runMcpSchemaAddStatusAction(schema2) {
6866
+ const { ctx, name, author, force, aliases } = schema2;
6569
6867
  const roleSource = ctx.args.role ?? ctx.options.role;
6570
6868
  return runSchemaAddStatus(name, {
6571
6869
  role: roleSource === void 0 ? void 0 : readStringArray(roleSource),
@@ -6576,8 +6874,8 @@ function runMcpSchemaAddStatusAction(schema) {
6576
6874
  force
6577
6875
  }, ctx.global);
6578
6876
  }
6579
- function runMcpSchemaAddTypeAction(schema) {
6580
- const { ctx, name, author, force, aliases } = schema;
6877
+ function runMcpSchemaAddTypeAction(schema2) {
6878
+ const { ctx, name, author, force, aliases } = schema2;
6581
6879
  return runSchemaAddType(name, {
6582
6880
  description: readString(ctx.args, "description") ?? readString(ctx.options, "description"),
6583
6881
  defaultStatus: readString(ctx.args, "defaultStatus") ?? readString(ctx.args, "default_status") ?? readString(ctx.options, "defaultStatus") ?? readString(ctx.options, "default_status"),
@@ -6588,29 +6886,29 @@ function runMcpSchemaAddTypeAction(schema) {
6588
6886
  }, ctx.global);
6589
6887
  }
6590
6888
  function runMcpSchemaAction(ctx) {
6591
- const schema = createMcpSchemaContext(ctx);
6592
- const simpleResult = runMcpSchemaReadOrRemoveAction(schema);
6889
+ const schema2 = createMcpSchemaContext(ctx);
6890
+ const simpleResult = runMcpSchemaReadOrRemoveAction(schema2);
6593
6891
  if (simpleResult !== null) {
6594
6892
  return simpleResult;
6595
6893
  }
6596
- if (schema.subcommand === "add-field") {
6597
- return runMcpSchemaAddFieldAction(schema);
6894
+ if (schema2.subcommand === "add-field") {
6895
+ return runMcpSchemaAddFieldAction(schema2);
6598
6896
  }
6599
- if (schema.subcommand === "add-status") {
6600
- return runMcpSchemaAddStatusAction(schema);
6897
+ if (schema2.subcommand === "add-status") {
6898
+ return runMcpSchemaAddStatusAction(schema2);
6601
6899
  }
6602
- if (schema.subcommand === "add-type") {
6900
+ if (schema2.subcommand === "add-type") {
6603
6901
  if (ctx.args.infer === true || ctx.options.infer === true) {
6604
6902
  return runSchemaInferTypes({
6605
6903
  minCount: parseMcpInteger(ctx.args.minCount ?? ctx.options.minCount, "schema infer minCount"),
6606
6904
  apply: ctx.args.apply === true || ctx.options.apply === true,
6607
- author: schema.author,
6608
- force: schema.force
6905
+ author: schema2.author,
6906
+ force: schema2.force
6609
6907
  }, ctx.global);
6610
6908
  }
6611
- return runMcpSchemaAddTypeAction(schema);
6909
+ return runMcpSchemaAddTypeAction(schema2);
6612
6910
  }
6613
- throw new PmCliError(`Unknown pm schema subcommand "${schema.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);
6911
+ 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);
6614
6912
  }
6615
6913
  function runMcpProfileAction(ctx) {
6616
6914
  const subcommand = readString(ctx.args, "subcommand") ?? readRequiredString(ctx.options, "subcommand");
@@ -6851,6 +7149,38 @@ export {
6851
7149
  next,
6852
7150
  aggregate,
6853
7151
  stats,
7152
+ comments,
7153
+ notes,
7154
+ learnings,
7155
+ files,
7156
+ filesDiscover,
7157
+ docs,
7158
+ deps,
7159
+ append,
7160
+ init,
7161
+ config,
7162
+ schema,
7163
+ schemaList,
7164
+ schemaShow,
7165
+ schemaAddType,
7166
+ schemaRemoveType,
7167
+ schemaAddStatus,
7168
+ schemaRemoveStatus,
7169
+ schemaAddField,
7170
+ schemaRemoveField,
7171
+ schemaListFields,
7172
+ schemaShowField,
7173
+ schemaApplyPreset,
7174
+ schemaInferTypes,
7175
+ schemaShowStatus,
7176
+ profile,
7177
+ profileList,
7178
+ profileShow,
7179
+ profileApply,
7180
+ profileLint,
7181
+ validate,
7182
+ health,
7183
+ gc,
6854
7184
  create,
6855
7185
  update,
6856
7186
  close,
@@ -6884,6 +7214,6 @@ export {
6884
7214
  readRequiredString,
6885
7215
  runAction
6886
7216
  };
6887
- //# sourceMappingURL=chunk-2RADY7IB.js.map
7217
+ //# sourceMappingURL=chunk-PPY3GXFK.js.map
6888
7218
 
6889
- //# debugId=172e4594-e82f-5ac4-add6-4f96b3b2890f
7219
+ //# debugId=8d7cc408-007b-599b-a0c1-42c938db1dca