deepline 0.3.553 → 0.3.555

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 (166) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/sdk/src/types.ts +8 -2
  3. package/dist/cli/auth-MRVTS74X.js +44 -0
  4. package/dist/cli/{auth-I3QAU4RV.mjs → auth-UFANBJW3.mjs} +5 -5
  5. package/dist/cli/{billing-YGFFVAIC.js → billing-BGIT2VYM.js} +102 -102
  6. package/dist/cli/{billing-3IC54OQQ.mjs → billing-S7MCXBND.mjs} +9 -9
  7. package/dist/cli/{chunk-HVI55MTK.js → chunk-3IKGZ4CG.js} +20 -10
  8. package/dist/cli/{chunk-LH5PZKER.mjs → chunk-57J3OOCR.mjs} +1 -1
  9. package/dist/cli/{chunk-55F6HNOY.mjs → chunk-5J6TKML2.mjs} +4 -4
  10. package/dist/cli/{chunk-LFOERUQY.mjs → chunk-66BQY77L.mjs} +1 -1
  11. package/dist/cli/{chunk-IMX7J4DU.js → chunk-6F5GNZQH.js} +5 -5
  12. package/dist/cli/{chunk-AGLR6QVN.js → chunk-6M2SDRWN.js} +4 -4
  13. package/dist/cli/{chunk-NDNHYONK.mjs → chunk-6R5Y7U52.mjs} +2 -2
  14. package/dist/cli/{chunk-2B5B5KAW.js → chunk-72VEVAIX.js} +53 -50
  15. package/dist/cli/{chunk-RMNOZKRI.mjs → chunk-732RWNDP.mjs} +3 -3
  16. package/dist/cli/{chunk-4BFTDNHU.mjs → chunk-7H753VC5.mjs} +1 -1
  17. package/dist/cli/{chunk-FM7LPUPA.js → chunk-7LM55DIN.js} +41 -41
  18. package/dist/cli/{chunk-QG6JIWUL.mjs → chunk-ASDVROA5.mjs} +5 -5
  19. package/dist/cli/{chunk-INEMTYMT.mjs → chunk-AUY53RLU.mjs} +7 -7
  20. package/dist/cli/{chunk-MLABYI4M.js → chunk-AYCC5JAS.js} +3 -3
  21. package/dist/cli/{chunk-Z7AOIHFE.mjs → chunk-BTKVXI3G.mjs} +7 -2
  22. package/dist/cli/chunk-BVXIGOBZ.js +32 -0
  23. package/dist/cli/{chunk-4SMCFQ23.mjs → chunk-DFL3UBW2.mjs} +1 -1
  24. package/dist/cli/{chunk-CACFJODG.js → chunk-DYWOBLYL.js} +8 -8
  25. package/dist/cli/{chunk-HEBO3XNZ.js → chunk-EG44APVW.js} +12 -12
  26. package/dist/cli/{chunk-IH6GDNKW.js → chunk-EN5NHCCQ.js} +17 -17
  27. package/dist/cli/{chunk-72V4PDH5.mjs → chunk-FO3U5YTL.mjs} +3 -3
  28. package/dist/cli/{chunk-DP64MD6U.mjs → chunk-HQK2NPXE.mjs} +1 -1
  29. package/dist/cli/{chunk-DZA7RFGL.mjs → chunk-I45RNMNZ.mjs} +13 -13
  30. package/dist/cli/{chunk-RTV4RF7N.js → chunk-IHWXC7UU.js} +26 -26
  31. package/dist/cli/{chunk-IUOGII7D.js → chunk-KSUI4YX5.js} +6 -6
  32. package/dist/cli/{chunk-3NTP2OSG.js → chunk-LU25WURE.js} +13 -13
  33. package/dist/cli/{chunk-TFEXSHPM.js → chunk-LY5MMXFF.js} +28 -14
  34. package/dist/cli/{chunk-HSJ6X2AQ.mjs → chunk-M2CW4UZV.mjs} +4 -4
  35. package/dist/cli/{chunk-LRDHPOZW.js → chunk-M5YBTQQX.js} +53 -53
  36. package/dist/cli/{chunk-7GEMELKI.js → chunk-MIXPZ4G7.js} +431 -330
  37. package/dist/cli/{chunk-Q6Z6N3A7.js → chunk-MOJ65E7L.js} +9 -9
  38. package/dist/cli/{chunk-AGICYWGN.mjs → chunk-N55EUVKV.mjs} +2 -2
  39. package/dist/cli/{chunk-CAEBJOYU.mjs → chunk-NFWZAQAU.mjs} +1 -1
  40. package/dist/cli/{chunk-4HYNMXXF.mjs → chunk-PC2FTUCP.mjs} +2 -2
  41. package/dist/cli/{chunk-GAVZ4EOD.mjs → chunk-PGPPZMXD.mjs} +1 -1
  42. package/dist/cli/{chunk-DP2VH7CO.js → chunk-QMDG7FKA.js} +14 -12
  43. package/dist/cli/{chunk-JLGP5XAJ.js → chunk-QZ2C5ARH.js} +5 -5
  44. package/dist/cli/{chunk-Z6XPSHKM.mjs → chunk-RL7ZI4ZG.mjs} +133 -32
  45. package/dist/cli/{chunk-TN4TY6TT.mjs → chunk-RO7SIWBG.mjs} +2 -2
  46. package/dist/cli/{chunk-XLIHTJVM.js → chunk-RWT6N2SU.js} +20 -20
  47. package/dist/cli/{chunk-BVDKFS2T.js → chunk-S2CNGS7O.js} +2 -2
  48. package/dist/cli/{chunk-SG3LUONJ.mjs → chunk-S65SZ74B.mjs} +5 -3
  49. package/dist/cli/{chunk-WOCHZCUJ.js → chunk-SE56PJ46.js} +2 -2
  50. package/dist/cli/{chunk-7YRJ5UC4.js → chunk-SF2LIUVO.js} +20 -20
  51. package/dist/cli/chunk-STXDSVQZ.mjs +32 -0
  52. package/dist/cli/{chunk-6NE3RRRY.js → chunk-T3QSHU6E.js} +1 -1
  53. package/dist/cli/{chunk-UVQJYV76.mjs → chunk-T4BFNFBL.mjs} +2 -2
  54. package/dist/cli/{chunk-YUA6HA6D.js → chunk-TFPKGTMD.js} +2 -2
  55. package/dist/cli/{chunk-UEVKMZLR.mjs → chunk-TGUQET3O.mjs} +14 -4
  56. package/dist/cli/{chunk-Y6SP3JMI.js → chunk-U6KGXTYS.js} +30 -30
  57. package/dist/cli/{chunk-QI5S5HWB.mjs → chunk-UUU5WUKM.mjs} +2 -2
  58. package/dist/cli/{chunk-A7DLBE5K.mjs → chunk-UYYOO7VT.mjs} +10 -7
  59. package/dist/cli/{chunk-45OAVGU6.mjs → chunk-W6K6WULS.mjs} +2 -2
  60. package/dist/cli/{chunk-74RES4DS.js → chunk-W7SPSF63.js} +5 -5
  61. package/dist/cli/{chunk-4747TPLV.js → chunk-WTQGJBHD.js} +3 -3
  62. package/dist/cli/{chunk-E7WZOX2A.mjs → chunk-XFZX6FNM.mjs} +20 -6
  63. package/dist/cli/{chunk-OTV2UUKW.mjs → chunk-XIHZUWIG.mjs} +1 -1
  64. package/dist/cli/{chunk-7O6J6A7P.js → chunk-YI4ADWTN.js} +7 -2
  65. package/dist/cli/{chunk-7SERLBNR.js → chunk-YXH5Q7OY.js} +20 -20
  66. package/dist/cli/{chunk-SBH4CKPN.js → chunk-Z2T7XTND.js} +10 -10
  67. package/dist/cli/{chunk-JJGWHITQ.mjs → chunk-Z3O5GCQM.mjs} +2 -2
  68. package/dist/cli/{chunk-AGIQDA2T.mjs → chunk-ZU6A4H6P.mjs} +2 -2
  69. package/dist/cli/command-docs.js +2 -2
  70. package/dist/cli/command-docs.mjs +1 -1
  71. package/dist/cli/concurrent-runs-help-CHBVPWYT.js +22 -0
  72. package/dist/cli/{concurrent-runs-help-DNV2X5AZ.mjs → concurrent-runs-help-I7ZLXZDD.mjs} +6 -6
  73. package/dist/cli/{csv-ZXZGHWOM.mjs → csv-K7FNSHIM.mjs} +4 -4
  74. package/dist/cli/{csv-SA6ELJY6.js → csv-Q2Y3KKK2.js} +13 -13
  75. package/dist/cli/{db-A54SP6AD.mjs → db-74RBHX6G.mjs} +7 -7
  76. package/dist/cli/{db-JHFEIQBU.js → db-E4XSIQDS.js} +29 -29
  77. package/dist/cli/describe-TUW35JSY.js +50 -0
  78. package/dist/cli/describe-UYB6WDHS.mjs +50 -0
  79. package/dist/cli/describe-core.d.mts +2 -2
  80. package/dist/cli/describe-core.d.ts +2 -2
  81. package/dist/cli/describe-core.js +5 -5
  82. package/dist/cli/describe-core.mjs +4 -4
  83. package/dist/cli/{executions-HL2M2DFU.mjs → executions-6LKXZRL4.mjs} +6 -6
  84. package/dist/cli/{executions-TLFZRHBJ.js → executions-LX6HJM72.js} +8 -8
  85. package/dist/cli/{feedback-5UEX5UZK.js → feedback-7D2JRVOM.js} +14 -14
  86. package/dist/cli/{feedback-QMBTNXVG.mjs → feedback-B2V64TYZ.mjs} +6 -6
  87. package/dist/cli/{git-LKGXVIVC.mjs → git-7KNCB2HN.mjs} +5 -5
  88. package/dist/cli/git-TH4M62KL.js +26 -0
  89. package/dist/cli/index.js +147 -147
  90. package/dist/cli/index.mjs +46 -46
  91. package/dist/cli/{integrations-6RUTLMN7.js → integrations-34UK7XET.js} +15 -15
  92. package/dist/cli/{integrations-FGGRVUJ7.mjs → integrations-J3RHOSAR.mjs} +7 -7
  93. package/dist/cli/{legacy-noops-J3Z7QRWZ.js → legacy-noops-HXJ6UMK7.js} +9 -9
  94. package/dist/cli/{legacy-noops-YIPRMVXZ.mjs → legacy-noops-WQUDES3K.mjs} +6 -6
  95. package/dist/cli/{mcp-6LWFP7RW.js → mcp-EZENPRPY.js} +24 -24
  96. package/dist/cli/{mcp-CHDYFO7F.mjs → mcp-JZPAPQYI.mjs} +4 -4
  97. package/dist/cli/{monitors-UGRY2BXI.mjs → monitors-GF2WEFF6.mjs} +7 -7
  98. package/dist/cli/{monitors-STM6A7OU.js → monitors-GS2P4OUK.js} +100 -100
  99. package/dist/cli/{org-ZOBSNSIB.js → org-V56HBHPB.js} +121 -121
  100. package/dist/cli/{org-3SYOUQCX.mjs → org-WJ2RO7ZE.mjs} +6 -6
  101. package/dist/cli/{outcomes-H4YYAT5X.js → outcomes-D6KXYKGW.js} +14 -14
  102. package/dist/cli/{outcomes-Z3P2JE67.mjs → outcomes-WP5WV54Y.mjs} +6 -6
  103. package/dist/cli/{play-SN5YWLS7.mjs → play-FHHCHNQH.mjs} +36 -24
  104. package/dist/cli/{play-SM4CW2GS.js → play-PXUVRS4K.js} +387 -375
  105. package/dist/cli/{providers-WZ4YBR5Y.mjs → providers-HJ77LN3M.mjs} +6 -6
  106. package/dist/cli/{providers-WZARYMCF.js → providers-TOXIJOY2.js} +9 -9
  107. package/dist/cli/{quickstart-PS4YHQJ6.js → quickstart-MDXLT5SR.js} +6 -6
  108. package/dist/cli/{quickstart-2575BNKA.mjs → quickstart-UEQHXEWP.mjs} +4 -4
  109. package/dist/cli/{run-FLZ6OTM7.js → run-2MXAEH6U.js} +55 -59
  110. package/dist/cli/{run-ZUHCZOJS.mjs → run-ZZ5ABZL7.mjs} +34 -38
  111. package/dist/cli/search-6DT2TGOU.js +32 -0
  112. package/dist/cli/{search-HLPPKQEO.mjs → search-AF4XVWC2.mjs} +7 -7
  113. package/dist/cli/{search-output-PDAXNOGP.mjs → search-output-3GFQJJGJ.mjs} +6 -6
  114. package/dist/cli/{search-output-RXJLU36B.js → search-output-LEKJVZSH.js} +9 -9
  115. package/dist/cli/{secrets-QJNG7G2Y.js → secrets-MR2FNFGD.js} +15 -15
  116. package/dist/cli/{secrets-CGELYQ3H.mjs → secrets-TLH3FKCT.mjs} +6 -6
  117. package/dist/cli/sessions-EJYLWV2M.js +23 -0
  118. package/dist/cli/{sessions-ELMWVR4M.mjs → sessions-LUL5P66K.mjs} +6 -6
  119. package/dist/cli/{settings-RR3LZXL7.mjs → settings-AWSRUTZR.mjs} +12 -12
  120. package/dist/cli/{settings-44I44P5F.js → settings-Z2HYUOL7.js} +85 -85
  121. package/dist/cli/{setup-KTEYOCJO.js → setup-FIMXN4IC.js} +51 -54
  122. package/dist/cli/{setup-KGWRWH4B.mjs → setup-PFPAJOUI.mjs} +11 -14
  123. package/dist/cli/skills-232RNG5G.js +37 -0
  124. package/dist/cli/{skills-FPRID2I5.mjs → skills-5DKSATY5.mjs} +7 -7
  125. package/dist/cli/{tools-PI4WMDLY.mjs → tools-BDNASCSH.mjs} +20 -20
  126. package/dist/cli/tools-P7FBJVJA.js +57 -0
  127. package/dist/cli/{update-VJOJAZ7B.mjs → update-CAFUZ5XT.mjs} +9 -9
  128. package/dist/cli/update-OC4UB2XE.js +37 -0
  129. package/dist/cli/{views-OVPSINZO.mjs → views-7PDXZUQA.mjs} +6 -6
  130. package/dist/cli/{views-NTUOLNQU.js → views-XJOBO6US.js} +21 -21
  131. package/dist/cli/{workflow-7OEFNXZC.mjs → workflow-2BMUGN7M.mjs} +7 -7
  132. package/dist/cli/{workflow-2UDYDM6F.js → workflow-KCPLU5R7.js} +17 -17
  133. package/dist/{client-B8f7RNF8.d.mts → client-1ogYQqUw.d.mts} +1 -1
  134. package/dist/{client-C5TgXmJQ.d.ts → client-BoayTB7p.d.ts} +1 -1
  135. package/dist/{client-core-SLLGBTht.d.mts → client-core-Ch8CXaX4.d.mts} +8 -2
  136. package/dist/{client-core-p0sOxnkl.d.ts → client-core-DySw9x_E.d.ts} +8 -2
  137. package/dist/index.d.mts +3 -3
  138. package/dist/index.d.ts +3 -3
  139. package/dist/index.js +9 -9
  140. package/dist/index.mjs +6 -6
  141. package/dist/install-integrity.json +126 -126
  142. package/dist/plays/play-description.d.mts +1 -1
  143. package/dist/plays/play-description.d.ts +1 -1
  144. package/dist/plays/run-request.d.mts +1 -1
  145. package/dist/plays/run-request.d.ts +1 -1
  146. package/dist/release.d.mts +1 -1
  147. package/dist/release.d.ts +1 -1
  148. package/dist/release.js +2 -2
  149. package/dist/release.mjs +1 -1
  150. package/dist/server.d.mts +2 -2
  151. package/dist/server.d.ts +2 -2
  152. package/dist/server.js +5 -5
  153. package/dist/server.mjs +3 -3
  154. package/package.json +1 -1
  155. package/dist/cli/auth-MQCN7WGZ.js +0 -44
  156. package/dist/cli/chunk-AID3OYVJ.js +0 -8
  157. package/dist/cli/chunk-OVDNJAJN.mjs +0 -8
  158. package/dist/cli/concurrent-runs-help-CFJH4KXV.js +0 -22
  159. package/dist/cli/describe-PHQ33AGS.mjs +0 -50
  160. package/dist/cli/describe-RHJ4XRFI.js +0 -50
  161. package/dist/cli/git-4JWOOHBG.js +0 -26
  162. package/dist/cli/search-JJWVHR3N.js +0 -32
  163. package/dist/cli/sessions-DHTBT2GN.js +0 -23
  164. package/dist/cli/skills-EPZPEXI2.js +0 -37
  165. package/dist/cli/tools-IGQQ5TML.js +0 -57
  166. package/dist/cli/update-4RNCVYGE.js +0 -37
@@ -11,20 +11,20 @@
11
11
 
12
12
 
13
13
 
14
- var _chunk2B5B5KAWjs = require('./chunk-2B5B5KAW.js');
14
+ var _chunk72VEVAIXjs = require('./chunk-72VEVAIX.js');
15
15
 
16
16
 
17
- var _chunkXLIHTJVMjs = require('./chunk-XLIHTJVM.js');
17
+ var _chunkRWT6N2SUjs = require('./chunk-RWT6N2SU.js');
18
18
 
19
19
 
20
20
 
21
21
 
22
22
 
23
- var _chunkMLABYI4Mjs = require('./chunk-MLABYI4M.js');
23
+ var _chunkAYCC5JASjs = require('./chunk-AYCC5JAS.js');
24
24
 
25
25
 
26
26
 
27
- var _chunkAGLR6QVNjs = require('./chunk-AGLR6QVN.js');
27
+ var _chunk6M2SDRWNjs = require('./chunk-6M2SDRWN.js');
28
28
 
29
29
 
30
30
  var _chunkRLX5ZFNXjs = require('./chunk-RLX5ZFNX.js');
@@ -145,7 +145,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
145
145
  return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
146
146
  }
147
147
  function resolveLocalRoot() {
148
- const target = _chunkMLABYI4Mjs.resolveProjectPinTarget.call(void 0, );
148
+ const target = _chunkAYCC5JASjs.resolveProjectPinTarget.call(void 0, );
149
149
  if (!target.ok) {
150
150
  throw new Error(
151
151
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
@@ -156,7 +156,7 @@ function resolveLocalRoot() {
156
156
  return target.dir;
157
157
  }
158
158
  function detectSkillsAgents(input) {
159
- const runtime = _nullishCoalesce(input.runtime, () => ( _chunkAGLR6QVNjs.detectAgentRuntime.call(void 0, )));
159
+ const runtime = _nullishCoalesce(input.runtime, () => ( _chunk6M2SDRWNjs.detectAgentRuntime.call(void 0, )));
160
160
  const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
161
161
  if (knownAgent) return [knownAgent];
162
162
  const roots = [
@@ -171,11 +171,11 @@ function detectSkillsAgents(input) {
171
171
  return detected.length > 0 ? detected : ["*"];
172
172
  }
173
173
  function skillsStatePathForScope(baseUrl, scope, root) {
174
- return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkMLABYI4Mjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
174
+ return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkAYCC5JASjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
175
175
  }
176
176
  function buildSkillsPlan(input) {
177
177
  const scopeArgs = input.scope === "global" ? ["--global"] : [];
178
- const legacyNames = [..._chunk2B5B5KAWjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
178
+ const legacyNames = [..._chunk72VEVAIXjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
179
179
  (a, b) => a.localeCompare(b)
180
180
  );
181
181
  return {
@@ -189,7 +189,7 @@ function buildSkillsPlan(input) {
189
189
  args: [
190
190
  "exec",
191
191
  "--yes",
192
- `--package=${_chunk2B5B5KAWjs.SKILLS_NPX_PACKAGE}`,
192
+ `--package=${_chunk72VEVAIXjs.SKILLS_NPX_PACKAGE}`,
193
193
  "--",
194
194
  "skills",
195
195
  "remove",
@@ -205,11 +205,11 @@ function buildSkillsPlan(input) {
205
205
  args: [
206
206
  "exec",
207
207
  "--yes",
208
- `--package=${_chunk2B5B5KAWjs.SKILLS_NPX_PACKAGE}`,
208
+ `--package=${_chunk72VEVAIXjs.SKILLS_NPX_PACKAGE}`,
209
209
  "--",
210
210
  "skills",
211
211
  "add",
212
- _chunk2B5B5KAWjs.skillsSourceUrl.call(void 0, input.baseUrl),
212
+ _chunk72VEVAIXjs.skillsSourceUrl.call(void 0, input.baseUrl),
213
213
  "--agent",
214
214
  ...input.agents,
215
215
  ...scopeArgs,
@@ -246,7 +246,7 @@ function readSkillsInstallState(path) {
246
246
  }
247
247
  function runProcess(command, args, cwd) {
248
248
  return new Promise((resolve, reject) => {
249
- const plan = _chunk2B5B5KAWjs.resolveShellSpawn.call(void 0,
249
+ const plan = _chunk72VEVAIXjs.resolveShellSpawn.call(void 0,
250
250
  command,
251
251
  args,
252
252
  process.platform,
@@ -269,7 +269,7 @@ function runProcess(command, args, cwd) {
269
269
  child.kill("SIGTERM");
270
270
  reject(
271
271
  new Error(
272
- `${_chunk2B5B5KAWjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
272
+ `${_chunk72VEVAIXjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
273
273
  )
274
274
  );
275
275
  }, SKILLS_PROCESS_TIMEOUT_MS);
@@ -280,7 +280,7 @@ function runProcess(command, args, cwd) {
280
280
  child.once("close", (code) => {
281
281
  clearTimeout(timeout);
282
282
  if (code && stderr.trim()) {
283
- process.stderr.write(`${_chunk2B5B5KAWjs.SKILLS_NPX_PACKAGE} exited ${code}.
283
+ process.stderr.write(`${_chunk72VEVAIXjs.SKILLS_NPX_PACKAGE} exited ${code}.
284
284
  `);
285
285
  }
286
286
  resolve(_nullishCoalesce(code, () => ( 1)));
@@ -288,7 +288,7 @@ function runProcess(command, args, cwd) {
288
288
  });
289
289
  }
290
290
  async function showSkills(options, name) {
291
- const baseUrl = _chunkMLABYI4Mjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
291
+ const baseUrl = _chunkAYCC5JASjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
292
292
  const url = name ? `${baseUrl}/.well-known/skills/${encodeURIComponent(name)}/SKILL.md` : `${baseUrl}/.well-known/skills/index.json`;
293
293
  try {
294
294
  const response = await fetch(url, {
@@ -301,7 +301,7 @@ async function showSkills(options, name) {
301
301
  }
302
302
  if (name) {
303
303
  const markdown = await response.text();
304
- _chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
304
+ _chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
305
305
  { ok: true, status: "completed", skill: { name, markdown } },
306
306
  { json: options.json, text: markdown }
307
307
  );
@@ -311,7 +311,7 @@ async function showSkills(options, name) {
311
311
  const skills = (_nullishCoalesce(index.skills, () => ( []))).filter(
312
312
  (skill) => skill.install_surface === "v1" && skill.name
313
313
  );
314
- _chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
314
+ _chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
315
315
  {
316
316
  ok: true,
317
317
  status: "completed",
@@ -328,7 +328,7 @@ Read one with: deepline skills show <name>
328
328
  );
329
329
  return 0;
330
330
  } catch (error) {
331
- _chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
331
+ _chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
332
332
  {
333
333
  ok: false,
334
334
  status: "failed",
@@ -351,7 +351,7 @@ async function runSkillsCommand(options, dependencies = {}) {
351
351
  scope = normalizeScope(options.scope);
352
352
  root = scope === "local" ? resolveLocalRoot() : null;
353
353
  } catch (error) {
354
- _chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
354
+ _chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
355
355
  {
356
356
  ok: false,
357
357
  status: "failed",
@@ -363,22 +363,22 @@ async function runSkillsCommand(options, dependencies = {}) {
363
363
  );
364
364
  return 2;
365
365
  }
366
- const baseUrl = _chunkMLABYI4Mjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
366
+ const baseUrl = _chunkAYCC5JASjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
367
367
  const catalog = {
368
- skillNames: [..._chunk2B5B5KAWjs.DEFAULT_SDK_SKILL_NAMES],
369
- version: _chunkAGLR6QVNjs.SDK_VERSION
368
+ skillNames: [..._chunk72VEVAIXjs.DEFAULT_SDK_SKILL_NAMES],
369
+ version: _chunk6M2SDRWNjs.SDK_VERSION
370
370
  };
371
371
  const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
372
372
  const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
373
373
  if (options.dryRun) {
374
- _chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
374
+ _chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
375
375
  { ok: true, status: "planned", dryRun: true, ...plan },
376
376
  { json: options.json }
377
377
  );
378
378
  return 0;
379
379
  }
380
- if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunk2B5B5KAWjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
381
- _chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
380
+ if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunk72VEVAIXjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
381
+ _chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
382
382
  {
383
383
  ok: true,
384
384
  status: "current",
@@ -410,10 +410,10 @@ async function runSkillsCommand(options, dependencies = {}) {
410
410
  }
411
411
  if (scope === "local" && root) {
412
412
  const managedNames = [
413
- .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunk2B5B5KAWjs.LEGACY_SKILL_NAMES_TO_REMOVE])
413
+ .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunk72VEVAIXjs.LEGACY_SKILL_NAMES_TO_REMOVE])
414
414
  ];
415
415
  const agentRoots = workspaceSkillRootsForAgents(plan.agents);
416
- _chunkMLABYI4Mjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
416
+ _chunkAYCC5JASjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
417
417
  ".deepline/",
418
418
  ...agentRoots.flatMap(
419
419
  (agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
@@ -422,7 +422,7 @@ async function runSkillsCommand(options, dependencies = {}) {
422
422
  }
423
423
  let lease;
424
424
  try {
425
- lease = scope === "global" ? await _chunk2B5B5KAWjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
425
+ lease = scope === "global" ? await _chunk72VEVAIXjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
426
426
  waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
427
427
  onWait: () => process.stderr.write(
428
428
  "Waiting for a background Deepline skills refresh to finish...\n"
@@ -430,8 +430,8 @@ async function runSkillsCommand(options, dependencies = {}) {
430
430
  }) : { release: () => {
431
431
  } };
432
432
  } catch (error) {
433
- if (!(error instanceof _chunk2B5B5KAWjs.SkillsStateUnavailableError)) throw error;
434
- _chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
433
+ if (!(error instanceof _chunk72VEVAIXjs.SkillsStateUnavailableError)) throw error;
434
+ _chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
435
435
  {
436
436
  ok: false,
437
437
  status: "failed",
@@ -447,7 +447,7 @@ async function runSkillsCommand(options, dependencies = {}) {
447
447
  return 5;
448
448
  }
449
449
  if (!lease) {
450
- _chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
450
+ _chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
451
451
  {
452
452
  ok: false,
453
453
  status: "failed",
@@ -456,7 +456,7 @@ async function runSkillsCommand(options, dependencies = {}) {
456
456
  scope,
457
457
  agents,
458
458
  message: "A background Deepline skills refresh is still running for these agents.",
459
- next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${_chunk2B5B5KAWjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
459
+ next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${_chunk72VEVAIXjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
460
460
  },
461
461
  { json: options.json }
462
462
  );
@@ -505,7 +505,7 @@ async function runSkillsInstallWithLease(input) {
505
505
  }
506
506
  }
507
507
  } catch (error) {
508
- _chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
508
+ _chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
509
509
  {
510
510
  ok: false,
511
511
  status: "failed",
@@ -521,7 +521,7 @@ async function runSkillsInstallWithLease(input) {
521
521
  return 5;
522
522
  }
523
523
  if (missing.length > 0) {
524
- _chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
524
+ _chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
525
525
  {
526
526
  ok: false,
527
527
  status: "failed",
@@ -561,7 +561,7 @@ async function runSkillsInstallWithLease(input) {
561
561
  {
562
562
  schemaVersion: 1,
563
563
  installedAt: (/* @__PURE__ */ new Date()).toISOString(),
564
- cliVersion: _chunkAGLR6QVNjs.SDK_VERSION,
564
+ cliVersion: _chunk6M2SDRWNjs.SDK_VERSION,
565
565
  scope,
566
566
  agents,
567
567
  skillsVersion: plan.version,
@@ -574,9 +574,9 @@ async function runSkillsInstallWithLease(input) {
574
574
  "utf8"
575
575
  );
576
576
  if (scope === "global") {
577
- _chunk2B5B5KAWjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
577
+ _chunk72VEVAIXjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
578
578
  }
579
- _chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
579
+ _chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
580
580
  {
581
581
  ok: true,
582
582
  status: "complete",
@@ -625,7 +625,7 @@ Examples:
625
625
  "after",
626
626
  `
627
627
  Notes:
628
- This command reinstalls current Deepline-managed skills using ${_chunk2B5B5KAWjs.SKILLS_NPX_PACKAGE},
628
+ This command reinstalls current Deepline-managed skills using ${_chunk72VEVAIXjs.SKILLS_NPX_PACKAGE},
629
629
  then removes legacy Deepline skill names. Local scope writes into the resolved
630
630
  persistent project.
631
631
 
@@ -637,13 +637,13 @@ Examples:
637
637
  ).action(async (options) => {
638
638
  process.exitCode = await runSkillsCommand(options);
639
639
  });
640
- program.command(_chunk2B5B5KAWjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
640
+ program.command(_chunk72VEVAIXjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
641
641
  "--claim <token>",
642
642
  "Owner token of the leases this child was started for."
643
643
  ).action(async (options) => {
644
644
  const claim = _optionalChain([options, 'access', _9 => _9.claim, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]);
645
645
  if (!claim) {
646
- _chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
646
+ _chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
647
647
  {
648
648
  ok: false,
649
649
  status: "failed",
@@ -656,7 +656,7 @@ Examples:
656
656
  process.exitCode = 2;
657
657
  return;
658
658
  }
659
- await _chunk2B5B5KAWjs.syncSdkSkillsIfNeeded.call(void 0, _chunkMLABYI4Mjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
659
+ await _chunk72VEVAIXjs.syncSdkSkillsIfNeeded.call(void 0, _chunkAYCC5JASjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
660
660
  mode: "inline",
661
661
  notices: "defer",
662
662
  claim
@@ -1,23 +1,23 @@
1
1
  import {
2
2
  npmSupportsAllowScripts,
3
3
  readNpmVersion
4
- } from "./chunk-4SMCFQ23.mjs";
4
+ } from "./chunk-DFL3UBW2.mjs";
5
5
  import {
6
6
  runSkillsCommand
7
- } from "./chunk-HSJ6X2AQ.mjs";
7
+ } from "./chunk-M2CW4UZV.mjs";
8
8
  import {
9
9
  resolveShellSpawn
10
- } from "./chunk-A7DLBE5K.mjs";
10
+ } from "./chunk-UYYOO7VT.mjs";
11
11
  import {
12
12
  printCommandEnvelope
13
- } from "./chunk-AGICYWGN.mjs";
13
+ } from "./chunk-N55EUVKV.mjs";
14
14
  import {
15
15
  DEFAULT_MAX_RETRIES,
16
16
  DEFAULT_TIMEOUT,
17
17
  TRANSIENT_HTTP_STATUSES,
18
18
  autoDetectBaseUrl,
19
19
  defaultRetryBackoffMs
20
- } from "./chunk-LFOERUQY.mjs";
20
+ } from "./chunk-66BQY77L.mjs";
21
21
 
22
22
  // src/cli/commands/update.ts
23
23
  import { spawn, spawnSync } from "child_process";
@@ -1,29 +1,29 @@
1
1
  import {
2
2
  seedToolListScript
3
- } from "./chunk-Z6XPSHKM.mjs";
3
+ } from "./chunk-RL7ZI4ZG.mjs";
4
4
  import {
5
5
  addDescribeOptions
6
- } from "./chunk-SG3LUONJ.mjs";
6
+ } from "./chunk-S65SZ74B.mjs";
7
7
  import {
8
8
  describeLookupsFor,
9
9
  describeName,
10
10
  findNamed
11
- } from "./chunk-4HYNMXXF.mjs";
11
+ } from "./chunk-PC2FTUCP.mjs";
12
12
  import {
13
13
  SCHEMA_LINE_LIMIT
14
- } from "./chunk-E7WZOX2A.mjs";
14
+ } from "./chunk-XFZX6FNM.mjs";
15
15
  import {
16
16
  DeeplineClient
17
- } from "./chunk-QI5S5HWB.mjs";
17
+ } from "./chunk-UUU5WUKM.mjs";
18
18
  import {
19
19
  failureReportHeaders,
20
20
  isFailureReportingDisabled,
21
21
  printCommandEnvelope
22
- } from "./chunk-AGICYWGN.mjs";
22
+ } from "./chunk-N55EUVKV.mjs";
23
23
  import {
24
24
  autoDetectBaseUrl,
25
25
  resolveApiKeyForBaseUrl
26
- } from "./chunk-LFOERUQY.mjs";
26
+ } from "./chunk-66BQY77L.mjs";
27
27
 
28
28
  // src/cli/commands/describe.ts
29
29
  import { writeFileSync } from "fs";
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkAGLR6QVNjs = require('./chunk-AGLR6QVN.js');
4
+ var _chunk6M2SDRWNjs = require('./chunk-6M2SDRWN.js');
5
5
 
6
6
 
7
7
  var _chunk6VLFQZK6js = require('./chunk-6VLFQZK6.js');
@@ -771,7 +771,7 @@ function readSkillsVersionFile(path) {
771
771
  }
772
772
  }
773
773
  function resolveAutoSyncSkillAgents() {
774
- switch (_chunkAGLR6QVNjs.detectAgentRuntime.call(void 0, )) {
774
+ switch (_chunk6M2SDRWNjs.detectAgentRuntime.call(void 0, )) {
775
775
  case "codex":
776
776
  return ["codex"];
777
777
  case "claude_code":
@@ -841,7 +841,7 @@ function writeSdkSkillsLocalVersion(baseUrl, version, agents) {
841
841
  }
842
842
 
843
843
  // src/http.ts
844
- var HttpClient2 = class extends _chunkAGLR6QVNjs.HttpClient {
844
+ var HttpClient2 = class extends _chunk6M2SDRWNjs.HttpClient {
845
845
  constructor(config) {
846
846
  super(config, readSdkSkillsLocalVersion);
847
847
  }
@@ -654,8 +654,9 @@ Output:
654
654
  error.retry says whether sending the same call again can succeed, and
655
655
  error.upstreamResponse holds a connected provider's status and body.
656
656
  Cost:
657
- What the tool or play charges. --max-credits caps a play run. Running an
658
- interrupted call again replays it without paying twice.
657
+ What the tool or play charges. --max-credits caps a play run's posted
658
+ charges; parallel calls in flight can end it somewhat over (plays run
659
+ --help). Running an interrupted call again replays it without paying twice.
659
660
  Next:
660
661
  Read the saved file. deepline runs get <id> shows the run again.
661
662
  `
@@ -1041,6 +1042,10 @@ Input:
1041
1042
  --input '{"email":"a@b.com"}' inline JSON object
1042
1043
  --input @input.json read the JSON object from a file
1043
1044
  -p email=a@b.com one key=value per -p, repeatable
1045
+ A -p value is text unless the tool's input schema types it as a boolean or
1046
+ number: -p only_verified_email=true sends true. Windows: cmd.exe has no
1047
+ single quotes and Windows PowerShell 5.1 strips the quotes inside JSON, so
1048
+ use --input "@input.json" there (PowerShell reads a bare @ as splatting).
1044
1049
  --payload is an alias of --input. There is no --payload-file flag; use
1045
1050
  @path. --out <file.csv> writes row-shaped output to a CSV file.
1046
1051
  --connection <name> selects an org authorization for supported
@@ -0,0 +1,32 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/cli/shell-quote.ts
2
+ function shellQuote(value) {
3
+ return `'${value.replace(/'/g, `'\\''`)}'`;
4
+ }
5
+ function shellArgument(value, platform = process.platform) {
6
+ if (platform !== "win32") return shellQuote(value);
7
+ if (/^[A-Za-z0-9_+:./\\-][A-Za-z0-9_+=:./\\-]*$/.test(value)) return value;
8
+ if (!/["\u201C\u201D\u201E$`!%\\\r\n]/.test(value)) return `"${value}"`;
9
+ return `'${value.replace(/['\u2018\u2019\u201A\u201B]/g, (quote) => quote + quote)}'`;
10
+ }
11
+ var EXAMPLE_INPUT_FILE = "input.json";
12
+ function exampleJsonInput(json, platform = process.platform) {
13
+ if (platform !== "win32") return { argument: `--input ${shellQuote(json)}` };
14
+ return {
15
+ argument: `--input-file ${EXAMPLE_INPUT_FILE}`,
16
+ file: { path: EXAMPLE_INPUT_FILE, contents: json }
17
+ };
18
+ }
19
+ function examplePlaceholderInput(platform = process.platform) {
20
+ return platform === "win32" ? `--input-file ${EXAMPLE_INPUT_FILE}` : `--input '{...}'`;
21
+ }
22
+ function exampleInputFileLine(file) {
23
+ return `Save this as ${file.path}: ${file.contents}`;
24
+ }
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+ exports.shellQuote = shellQuote; exports.shellArgument = shellArgument; exports.exampleJsonInput = exampleJsonInput; exports.examplePlaceholderInput = examplePlaceholderInput; exports.exampleInputFileLine = exampleInputFileLine;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveShellSpawn
3
- } from "./chunk-A7DLBE5K.mjs";
3
+ } from "./chunk-UYYOO7VT.mjs";
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  import { spawnSync } from "child_process";
@@ -37,7 +37,7 @@ var _chunkPMH4GLMDjs = require('./chunk-PMH4GLMD.js');
37
37
 
38
38
 
39
39
 
40
- var _chunkAGLR6QVNjs = require('./chunk-AGLR6QVN.js');
40
+ var _chunk6M2SDRWNjs = require('./chunk-6M2SDRWN.js');
41
41
 
42
42
 
43
43
  var _chunk6VLFQZK6js = require('./chunk-6VLFQZK6.js');
@@ -705,7 +705,7 @@ var ToolCalls = class {
705
705
  idempotencyKey,
706
706
  onResponse: (response2) => {
707
707
  lastResponse = null;
708
- atomicToolsSupported = response2.headers.get(_chunkAGLR6QVNjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
708
+ atomicToolsSupported = response2.headers.get(_chunk6M2SDRWNjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
709
709
  recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
710
710
  if (_optionalChain([options, 'optionalAccess', _33 => _33.onServerTiming])) {
711
711
  try {
@@ -1092,15 +1092,15 @@ function runtimeSelectionHeaders(runtime, env) {
1092
1092
  }
1093
1093
  const receivers = _optionalChain([env, 'access', _58 => _58.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _59 => _59.trim, 'call', _60 => _60()]);
1094
1094
  return {
1095
- [_chunkAGLR6QVNjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
1096
- ...receivers ? { [_chunkAGLR6QVNjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
1095
+ [_chunk6M2SDRWNjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
1096
+ ...receivers ? { [_chunk6M2SDRWNjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
1097
1097
  };
1098
1098
  }
1099
1099
  function playRunStartHeaders(runtime, env) {
1100
1100
  const headers = runtimeSelectionHeaders(runtime, env);
1101
1101
  const experimentSwitches = _optionalChain([env, 'access', _61 => _61.DEEPLINE_EXPERIMENT_SWITCHES, 'optionalAccess', _62 => _62.trim, 'call', _63 => _63()]);
1102
1102
  if (!experimentSwitches) return headers;
1103
- return { ...headers, [_chunkAGLR6QVNjs.EXPERIMENT_SWITCHES_HEADER]: experimentSwitches };
1103
+ return { ...headers, [_chunk6M2SDRWNjs.EXPERIMENT_SWITCHES_HEADER]: experimentSwitches };
1104
1104
  }
1105
1105
  function normalizeTestPolicyOverrides(value, source) {
1106
1106
  if (value && typeof value === "object" && !Array.isArray(value)) {
@@ -1170,7 +1170,7 @@ var PlayClient = class {
1170
1170
  return _chunkMJTVX4QKjs.startPlayRun.call(void 0,
1171
1171
  this.http,
1172
1172
  resolved.request,
1173
- _optionalChain([options, 'optionalAccess', _71 => _71.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkAGLR6QVNjs.SDK_API_MAJOR) } : headers,
1173
+ _optionalChain([options, 'optionalAccess', _71 => _71.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunk6M2SDRWNjs.SDK_API_MAJOR) } : headers,
1174
1174
  options
1175
1175
  );
1176
1176
  }
@@ -3411,7 +3411,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
3411
3411
  "RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
3412
3412
  );
3413
3413
  }
3414
- return { [_chunkAGLR6QVNjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
3414
+ return { [_chunk6M2SDRWNjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
3415
3415
  }
3416
3416
  function sleep(ms) {
3417
3417
  return new Promise((resolve) => setTimeout(resolve, ms));
@@ -4347,7 +4347,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
4347
4347
  );
4348
4348
  const headers = _optionalChain([options, 'optionalAccess', _200 => _200.cliAdmission]) ? {
4349
4349
  ...runtimeHeaders,
4350
- "X-Deepline-API-Major": String(_chunkAGLR6QVNjs.SDK_API_MAJOR)
4350
+ "X-Deepline-API-Major": String(_chunk6M2SDRWNjs.SDK_API_MAJOR)
4351
4351
  } : runtimeHeaders;
4352
4352
  const http = this.http;
4353
4353
  let submitted = false;
@@ -1,16 +1,16 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkJLGP5XAJjs = require('./chunk-JLGP5XAJ.js');
3
+ var _chunkQZ2C5ARHjs = require('./chunk-QZ2C5ARH.js');
4
4
 
5
5
 
6
- var _chunkXLIHTJVMjs = require('./chunk-XLIHTJVM.js');
6
+ var _chunkRWT6N2SUjs = require('./chunk-RWT6N2SU.js');
7
7
 
8
8
  // src/cli/commands/integration-commands.ts
9
9
  var _commander = require('commander');
10
10
  var _fs = require('fs');
11
11
  var _path = require('path');
12
12
  function printIntegrationResult(value, json, lines, nextCursor) {
13
- _chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
13
+ _chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
14
14
  {},
15
15
  {
16
16
  json: json || void 0,
@@ -26,7 +26,7 @@ function registerIntegrationBalanceCommand(parent, hidden = false) {
26
26
  return parent.command("balance <provider>", { hidden }).description(
27
27
  "Read a fresh balance using this org\u2019s own provider connection (LeadMagic)."
28
28
  ).option("--json", "Print the balance and observation timestamp as JSON").action(async (provider, options) => {
29
- const balance = await new (0, _chunkJLGP5XAJjs.DeeplineClient)().getIntegrationBalance(
29
+ const balance = await new (0, _chunkQZ2C5ARHjs.DeeplineClient)().getIntegrationBalance(
30
30
  provider
31
31
  );
32
32
  printIntegrationResult(balance, options.json, [
@@ -40,7 +40,7 @@ function registerWorkspaceConnectionListCommand(parent, name = "workspace-connec
40
40
  "List teammates\u2019 personal connections for this provider"
41
41
  ).option("--cursor <cursor>", "Read the next page of members").action(
42
42
  async (options) => {
43
- const client = new (0, _chunkJLGP5XAJjs.DeeplineClient)();
43
+ const client = new (0, _chunkQZ2C5ARHjs.DeeplineClient)();
44
44
  if (name === "list" && options.cursor && !options.members)
45
45
  throw new Error(
46
46
  "Use --cursor with --members to continue a member page."
@@ -82,7 +82,7 @@ function registerWorkspaceConnectionListCommand(parent, name = "workspace-connec
82
82
  }
83
83
  function registerLegacyHubSpotMembersCommand(parent, hidden = false) {
84
84
  return parent.command("hubspot-members", { hidden }).description("List personal HubSpot connection status for org members.").option("--cursor <cursor>", "Read the next roster page").option("--json", "Print the roster page as JSON").action(async (options) => {
85
- const page = await new (0, _chunkJLGP5XAJjs.DeeplineClient)().listPersonalHubSpotMembers(
85
+ const page = await new (0, _chunkQZ2C5ARHjs.DeeplineClient)().listPersonalHubSpotMembers(
86
86
  options.cursor
87
87
  );
88
88
  const rows = page.members.map((member) => {
@@ -108,7 +108,7 @@ function registerLegacyWorkspaceConnectionCommand(parent, hidden = false) {
108
108
  );
109
109
  if (options.autoName && (action !== "connect" || options.name !== void 0))
110
110
  throw new Error("Use --auto-name with connect and omit --name.");
111
- const client = new (0, _chunkJLGP5XAJjs.DeeplineClient)();
111
+ const client = new (0, _chunkQZ2C5ARHjs.DeeplineClient)();
112
112
  const { connections } = action === "connect" ? { connections: [] } : options.name ? await client.listWorkspaceConnectionInventory(provider) : await client.listWorkspaceIntegrationConnections();
113
113
  const row = connections.find(
114
114
  (connection) => connection.provider === provider && (!("type" in connection) || connection.type === "oauth") && (options.name === void 0 || "name" in connection && connection.name === options.name)
@@ -141,7 +141,7 @@ function registerLegacyCalendarDelegationCommand(parent, hidden = false) {
141
141
  "Print the proposed change without contacting Google or saving it"
142
142
  ).option("--json", "Print the result as JSON").action(
143
143
  async (action, options) => {
144
- const client = new (0, _chunkJLGP5XAJjs.DeeplineClient)();
144
+ const client = new (0, _chunkQZ2C5ARHjs.DeeplineClient)();
145
145
  if (action === "list") {
146
146
  const inventory = await client.listCalendarAvailabilityConnections();
147
147
  const approvals = _optionalChain([inventory, 'access', _3 => _3.approvals, 'optionalAccess', _4 => _4.length]) ? inventory.approvals.map(
@@ -291,7 +291,7 @@ function registerLegacyCalendarDelegationCommand(parent, hidden = false) {
291
291
  }
292
292
  function registerLegacyAvailabilityCalendarsCommand(parent, hidden = false) {
293
293
  return parent.command("availability-calendars", { hidden }).description("Calendar discovery compatibility command for the pilot.").option("--cursor <cursor>", "Legacy calendar page cursor").option("--json", "Print the response as JSON").action(async (options) => {
294
- const page = await new (0, _chunkJLGP5XAJjs.DeeplineClient)().listAvailabilityCalendars(
294
+ const page = await new (0, _chunkQZ2C5ARHjs.DeeplineClient)().listAvailabilityCalendars(
295
295
  options.cursor
296
296
  );
297
297
  printIntegrationResult(page, options.json, [
@@ -335,7 +335,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
335
335
  printSetupPlan({ provider, action: "connect_link" }, options.json);
336
336
  return;
337
337
  }
338
- const link = await new (0, _chunkJLGP5XAJjs.DeeplineClient)().getIntegrationConnectLink(
338
+ const link = await new (0, _chunkQZ2C5ARHjs.DeeplineClient)().getIntegrationConnectLink(
339
339
  provider
340
340
  );
341
341
  printIntegrationResult(link, options.json, [link.connect_url]);
@@ -362,7 +362,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
362
362
  );
363
363
  return;
364
364
  }
365
- const result2 = await new (0, _chunkJLGP5XAJjs.DeeplineClient)().startIntegrationOAuth(
365
+ const result2 = await new (0, _chunkQZ2C5ARHjs.DeeplineClient)().startIntegrationOAuth(
366
366
  provider,
367
367
  {
368
368
  ...options.preset !== void 0 ? { preset: options.preset } : {},
@@ -412,7 +412,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
412
412
  "--credentials-file must contain a nonempty JSON object of string credential values."
413
413
  );
414
414
  }
415
- const result = await new (0, _chunkJLGP5XAJjs.DeeplineClient)().setIntegrationCredentials(
415
+ const result = await new (0, _chunkQZ2C5ARHjs.DeeplineClient)().setIntegrationCredentials(
416
416
  provider,
417
417
  credentials,
418
418
  { expectedConnectionId: options.expectedConnectionId }