deepline 0.3.387 → 0.3.389

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 (90) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/cli/auth-AOM2LA73.js +39 -0
  3. package/dist/cli/{auth-CKRRMJQU.mjs → auth-DEASEYUJ.mjs} +4 -4
  4. package/dist/cli/{billing-CVBGUOM6.js → billing-QIWD5GYZ.js} +73 -73
  5. package/dist/cli/{billing-QXZB3SP4.mjs → billing-TUTB4H6F.mjs} +4 -4
  6. package/dist/cli/{chunk-4HFMNLCQ.mjs → chunk-2L6BBM7Z.mjs} +4 -4
  7. package/dist/cli/{chunk-DVVYOV2O.js → chunk-5VCRXKAU.js} +50 -50
  8. package/dist/cli/{chunk-MZBR5BX2.mjs → chunk-63ZXA57X.mjs} +3 -3
  9. package/dist/cli/{chunk-7AOECVD3.js → chunk-7IPMWJNZ.js} +226 -226
  10. package/dist/cli/{chunk-7F5HBT3S.mjs → chunk-7WQGDKNO.mjs} +1 -1
  11. package/dist/cli/{chunk-CPB7PL4B.js → chunk-ABLS54ZL.js} +61 -61
  12. package/dist/cli/{chunk-HMSWH2JW.mjs → chunk-B6BQ6EAR.mjs} +6 -6
  13. package/dist/cli/{chunk-MTGIBXYZ.mjs → chunk-CCIEPJSX.mjs} +2 -2
  14. package/dist/cli/{chunk-FUTYFVJR.js → chunk-CLOICRTK.js} +6 -6
  15. package/dist/cli/{chunk-GJGHN34W.js → chunk-CMWDXAQH.js} +26 -26
  16. package/dist/cli/{chunk-3W3AW37A.js → chunk-FZXZLFNC.js} +15 -15
  17. package/dist/cli/{chunk-UKBXVON4.js → chunk-FZZC3A7J.js} +8 -8
  18. package/dist/cli/{chunk-BXRWG6ZG.mjs → chunk-GB3KEA34.mjs} +1 -1
  19. package/dist/cli/{chunk-BEEH7ZAL.mjs → chunk-HHRQYYHK.mjs} +7 -6
  20. package/dist/cli/{chunk-CQ6B46NN.js → chunk-KWGB3RWA.js} +9 -9
  21. package/dist/cli/{chunk-EUFASY6H.mjs → chunk-M6BQYSV3.mjs} +1 -1
  22. package/dist/cli/{chunk-S7HRCOFT.js → chunk-MCWGQIDV.js} +50 -49
  23. package/dist/cli/{chunk-4KTBZLGR.mjs → chunk-MP7FWY76.mjs} +2 -2
  24. package/dist/cli/{chunk-CWZRBSMO.mjs → chunk-NBXJJBBT.mjs} +1 -1
  25. package/dist/cli/{chunk-NJRWEFAY.js → chunk-OWP6SI5W.js} +8 -8
  26. package/dist/cli/{chunk-EWKW7ADZ.mjs → chunk-PPKNOVMF.mjs} +2 -2
  27. package/dist/cli/{chunk-RKYFX5G5.mjs → chunk-RHAP7ZW5.mjs} +2 -2
  28. package/dist/cli/{chunk-7JETEXCL.js → chunk-RPGSXBS3.js} +1 -1
  29. package/dist/cli/{chunk-LA6WXHEG.js → chunk-WRLYF4DS.js} +2 -2
  30. package/dist/cli/{chunk-A5L54JX6.js → chunk-Z43SUQUL.js} +4 -4
  31. package/dist/cli/{chunk-LQUNC2VM.mjs → chunk-Z4ZB2CDV.mjs} +1 -1
  32. package/dist/cli/{csv-IBQSV2LF.js → csv-FYI4XWEA.js} +12 -12
  33. package/dist/cli/{csv-L3NMNEK2.mjs → csv-GQ5K6MDD.mjs} +3 -3
  34. package/dist/cli/{db-6OPCFP3J.mjs → db-DYXQOAWZ.mjs} +4 -4
  35. package/dist/cli/{db-AWKMYFXN.js → db-WYSI3J43.js} +29 -29
  36. package/dist/cli/{describe-IFJ34VUV.js → describe-T25AHZEJ.js} +18 -18
  37. package/dist/cli/{describe-NEHPRI33.mjs → describe-YIIUMAZF.mjs} +8 -8
  38. package/dist/cli/{executions-FLGLIGRM.js → executions-3D7KAJ2C.js} +6 -6
  39. package/dist/cli/{executions-LDZEOSBO.mjs → executions-RYFSOPMQ.mjs} +4 -4
  40. package/dist/cli/{feedback-PWFQTP4G.mjs → feedback-CIZXMDMJ.mjs} +3 -3
  41. package/dist/cli/{feedback-W3LOHQOV.js → feedback-I7FWPC7V.js} +7 -7
  42. package/dist/cli/{git-E3G5SPN7.mjs → git-JCURDXPQ.mjs} +4 -4
  43. package/dist/cli/git-MVMIPHQ6.js +23 -0
  44. package/dist/cli/index.js +117 -105
  45. package/dist/cli/index.mjs +52 -40
  46. package/dist/cli/{legacy-noops-43UAYJOG.mjs → legacy-noops-4BW4EZJG.mjs} +4 -4
  47. package/dist/cli/{legacy-noops-LLIS3SCA.js → legacy-noops-G6F5LNUM.js} +7 -7
  48. package/dist/cli/{monitors-IRTHA34J.js → monitors-43UXU5C3.js} +85 -85
  49. package/dist/cli/{monitors-VFSBTSHJ.mjs → monitors-LTKH5IWE.mjs} +4 -4
  50. package/dist/cli/{org-3Z5SRXPW.js → org-7MSUEPXL.js} +64 -64
  51. package/dist/cli/{org-C3BNJMYT.mjs → org-I3WHUV67.mjs} +4 -4
  52. package/dist/cli/{play-W5XTHGLT.mjs → play-HRZXSNXV.mjs} +7 -7
  53. package/dist/cli/play-R5TYLP5L.js +157 -0
  54. package/dist/cli/{providers-ANLUHMBV.mjs → providers-BY6JPMKP.mjs} +4 -4
  55. package/dist/cli/{providers-W3O4DRDG.js → providers-DWLWK5VX.js} +7 -7
  56. package/dist/cli/{quickstart-5G65T2IR.mjs → quickstart-E647CKUQ.mjs} +3 -3
  57. package/dist/cli/{quickstart-6JAZF3FG.js → quickstart-QO6GCK4U.js} +5 -5
  58. package/dist/cli/search-34AC6FC7.js +26 -0
  59. package/dist/cli/{search-XQRGKA3F.mjs → search-3WUQBHRV.mjs} +5 -5
  60. package/dist/cli/{secrets-PUWRCDTC.js → secrets-CPNHE5XI.js} +13 -13
  61. package/dist/cli/{secrets-DF3EL5RU.mjs → secrets-WTGMFFP7.mjs} +4 -4
  62. package/dist/cli/{sessions-OYFE2CUC.mjs → sessions-6Q5E7GSY.mjs} +4 -4
  63. package/dist/cli/{sessions-OTRBNAPA.js → sessions-UFGGEDZP.js} +5 -5
  64. package/dist/cli/{settings-R7H4JXVO.js → settings-NF5726RU.js} +74 -74
  65. package/dist/cli/{settings-JSB64G57.mjs → settings-QMEIKOUI.mjs} +7 -7
  66. package/dist/cli/{setup-PL4QRM4U.js → setup-J35MMJ7C.js} +41 -41
  67. package/dist/cli/{setup-AJD5R5TW.mjs → setup-ZOQOJMJ7.mjs} +6 -6
  68. package/dist/cli/{skills-YN2BR22T.mjs → skills-UFDKCSYR.mjs} +4 -4
  69. package/dist/cli/skills-WGYISRE5.js +28 -0
  70. package/dist/cli/{tools-ATIA3P4H.mjs → tools-3SU3EUQT.mjs} +6 -6
  71. package/dist/cli/tools-Q642ZZ2M.js +40 -0
  72. package/dist/cli/{update-CWAXNG5N.mjs → update-SXYX4PMC.mjs} +6 -6
  73. package/dist/cli/update-T5MNWAQC.js +28 -0
  74. package/dist/cli/{workflow-ENCTHGP4.mjs → workflow-2LINUMOP.mjs} +5 -5
  75. package/dist/cli/{workflow-O2CW5YKT.js → workflow-XAIEXDUI.js} +15 -15
  76. package/dist/index.js +6 -6
  77. package/dist/index.mjs +3 -3
  78. package/dist/install-integrity.json +72 -72
  79. package/dist/release.d.mts +1 -1
  80. package/dist/release.d.ts +1 -1
  81. package/dist/release.js +2 -2
  82. package/dist/release.mjs +1 -1
  83. package/package.json +1 -1
  84. package/dist/cli/auth-M65RW5ZI.js +0 -39
  85. package/dist/cli/git-UJJKVNZ5.js +0 -23
  86. package/dist/cli/play-4QE3H5KN.js +0 -157
  87. package/dist/cli/search-HIY4H3T3.js +0 -26
  88. package/dist/cli/skills-HJXJ2R6P.js +0 -28
  89. package/dist/cli/tools-Y3HQI53B.js +0 -40
  90. package/dist/cli/update-F6RQFNQ5.js +0 -28
package/dist/cli/index.js CHANGED
@@ -10,8 +10,8 @@ var _chunkQJBJZVG6js = require('./chunk-QJBJZVG6.js');
10
10
 
11
11
 
12
12
 
13
- var _chunk3W3AW37Ajs = require('./chunk-3W3AW37A.js');
14
- require('./chunk-LA6WXHEG.js');
13
+ var _chunkFZXZLFNCjs = require('./chunk-FZXZLFNC.js');
14
+ require('./chunk-WRLYF4DS.js');
15
15
 
16
16
 
17
17
 
@@ -27,7 +27,7 @@ require('./chunk-LA6WXHEG.js');
27
27
 
28
28
 
29
29
 
30
- var _chunkCPB7PL4Bjs = require('./chunk-CPB7PL4B.js');
30
+ var _chunkABLS54ZLjs = require('./chunk-ABLS54ZL.js');
31
31
 
32
32
 
33
33
 
@@ -42,7 +42,7 @@ var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
42
42
 
43
43
 
44
44
 
45
- var _chunkFUTYFVJRjs = require('./chunk-FUTYFVJR.js');
45
+ var _chunkCLOICRTKjs = require('./chunk-CLOICRTK.js');
46
46
 
47
47
 
48
48
 
@@ -53,10 +53,10 @@ var _chunkFUTYFVJRjs = require('./chunk-FUTYFVJR.js');
53
53
 
54
54
 
55
55
 
56
- var _chunkA5L54JX6js = require('./chunk-A5L54JX6.js');
56
+ var _chunkZ43SUQULjs = require('./chunk-Z43SUQUL.js');
57
57
  require('./chunk-XNYIZMNQ.js');
58
58
  require('./chunk-7P5AA3SN.js');
59
- require('./chunk-7JETEXCL.js');
59
+ require('./chunk-RPGSXBS3.js');
60
60
  require('./chunk-OG64RBAC.js');
61
61
 
62
62
 
@@ -126,48 +126,48 @@ var _os = require('os');
126
126
  var COMMAND_GROUPS = [
127
127
  {
128
128
  names: ["auth"],
129
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-M65RW5ZI.js")))).registerAuthCommands
129
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-AOM2LA73.js")))).registerAuthCommands
130
130
  },
131
131
  {
132
132
  names: ["providers"],
133
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-W3O4DRDG.js")))).registerProviderCommands
133
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-DWLWK5VX.js")))).registerProviderCommands
134
134
  },
135
135
  {
136
136
  names: ["search"],
137
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-HIY4H3T3.js")))).registerSearchCommand
137
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-34AC6FC7.js")))).registerSearchCommand
138
138
  },
139
139
  {
140
140
  names: ["describe"],
141
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-IFJ34VUV.js")))).registerDescribeCommand
141
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-T25AHZEJ.js")))).registerDescribeCommand
142
142
  },
143
143
  {
144
144
  names: ["tools"],
145
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-Y3HQI53B.js")))).registerToolsCommands
145
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-Q642ZZ2M.js")))).registerToolsCommands
146
146
  },
147
147
  {
148
148
  names: ["executions"],
149
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-FLGLIGRM.js")))).registerExecutionsCommands
149
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-3D7KAJ2C.js")))).registerExecutionsCommands
150
150
  },
151
151
  {
152
152
  names: ["plays", "runs"],
153
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-4QE3H5KN.js")))).registerPlayCommands
153
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-R5TYLP5L.js")))).registerPlayCommands
154
154
  },
155
155
  {
156
156
  names: ["sessions"],
157
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-OTRBNAPA.js")))).registerSessionsCommands
157
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-UFGGEDZP.js")))).registerSessionsCommands
158
158
  },
159
159
  {
160
160
  names: ["workflows"],
161
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-O2CW5YKT.js")))).registerWorkflowCommands
161
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-XAIEXDUI.js")))).registerWorkflowCommands
162
162
  },
163
163
  {
164
164
  names: ["secrets"],
165
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-PUWRCDTC.js")))).registerSecretsCommands
165
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-CPNHE5XI.js")))).registerSecretsCommands
166
166
  },
167
167
  {
168
168
  names: ["settings", "notifications"],
169
169
  load: async () => {
170
- const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-R7H4JXVO.js")));
170
+ const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-NF5726RU.js")));
171
171
  return (p) => {
172
172
  commands.registerSettingsCommands(p);
173
173
  commands.registerNotificationCommands(p);
@@ -176,51 +176,51 @@ var COMMAND_GROUPS = [
176
176
  },
177
177
  {
178
178
  names: ["billing"],
179
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-CVBGUOM6.js")))).registerBillingCommands
179
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-QIWD5GYZ.js")))).registerBillingCommands
180
180
  },
181
181
  {
182
182
  names: ["monitors"],
183
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-IRTHA34J.js")))).registerMonitorsCommands
183
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-43UXU5C3.js")))).registerMonitorsCommands
184
184
  },
185
185
  {
186
186
  names: ["org"],
187
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-3Z5SRXPW.js")))).registerOrgCommands
187
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-7MSUEPXL.js")))).registerOrgCommands
188
188
  },
189
189
  {
190
190
  names: ["git", "projects", "deployments"],
191
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-UJJKVNZ5.js")))).registerGitCommands
191
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-MVMIPHQ6.js")))).registerGitCommands
192
192
  },
193
193
  {
194
194
  names: ["csv"],
195
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-IBQSV2LF.js")))).registerCsvCommands
195
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-FYI4XWEA.js")))).registerCsvCommands
196
196
  },
197
197
  {
198
198
  names: ["db"],
199
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-AWKMYFXN.js")))).registerDbCommands
199
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-WYSI3J43.js")))).registerDbCommands
200
200
  },
201
201
  {
202
202
  names: ["feedback"],
203
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-W3LOHQOV.js")))).registerFeedbackCommands
203
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-I7FWPC7V.js")))).registerFeedbackCommands
204
204
  },
205
205
  {
206
206
  names: ["enrich", "session", "backend"],
207
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-LLIS3SCA.js")))).registerDeprecatedCommands
207
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-G6F5LNUM.js")))).registerDeprecatedCommands
208
208
  },
209
209
  {
210
210
  names: ["update"],
211
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-F6RQFNQ5.js")))).registerUpdateCommand
211
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-T5MNWAQC.js")))).registerUpdateCommand
212
212
  },
213
213
  {
214
214
  names: ["skills", "skills-auto-sync"],
215
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-HJXJ2R6P.js")))).registerSkillsCommand
215
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-WGYISRE5.js")))).registerSkillsCommand
216
216
  },
217
217
  {
218
218
  names: ["setup", "doctor"],
219
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-PL4QRM4U.js")))).registerSetupCommands
219
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-J35MMJ7C.js")))).registerSetupCommands
220
220
  },
221
221
  {
222
222
  names: ["quickstart"],
223
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-6JAZF3FG.js")))).registerQuickstartCommands
223
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-QO6GCK4U.js")))).registerQuickstartCommands
224
224
  }
225
225
  ];
226
226
  async function registerDeeplineCommandGroups(program, requestedCommand) {
@@ -257,7 +257,7 @@ var MAX_SESSIONS = 20;
257
257
  function helpSeenPath(homeDir = _os.homedir.call(void 0, )) {
258
258
  return _path.join.call(void 0, homeDir, ".local", "deepline", "sdk-cli", "help-seen.json");
259
259
  }
260
- function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId = _chunkA5L54JX6js.agentSessionIdFromEnvironment.call(void 0, )) {
260
+ function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId = _chunkZ43SUQULjs.agentSessionIdFromEnvironment.call(void 0, )) {
261
261
  const explicit = _chunkHXENYWVSjs.helpDetailFromArgv.call(void 0, argv);
262
262
  if (explicit === "quiet") return { detail: "quiet", firstRead: false };
263
263
  if (!sessionId) return { detail: explicit, firstRead: false };
@@ -339,7 +339,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
339
339
  async function reportAutoUpdateEvent(input) {
340
340
  let apiKey = "";
341
341
  try {
342
- apiKey = _chunkA5L54JX6js.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
342
+ apiKey = _chunkZ43SUQULjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
343
343
  } catch (e2) {
344
344
  return;
345
345
  }
@@ -355,15 +355,15 @@ async function reportAutoUpdateEvent(input) {
355
355
  headers: {
356
356
  Authorization: `Bearer ${apiKey}`,
357
357
  "Content-Type": "application/json",
358
- "User-Agent": `deepline-ts-sdk/${_chunkA5L54JX6js.SDK_VERSION}`,
358
+ "User-Agent": `deepline-ts-sdk/${_chunkZ43SUQULjs.SDK_VERSION}`,
359
359
  "X-Deepline-Client-Family": "sdk",
360
360
  "X-Deepline-CLI-Family": "sdk",
361
- "X-Deepline-CLI-Version": _chunkA5L54JX6js.SDK_VERSION,
362
- "X-Deepline-SDK-Version": _chunkA5L54JX6js.SDK_VERSION
361
+ "X-Deepline-CLI-Version": _chunkZ43SUQULjs.SDK_VERSION,
362
+ "X-Deepline-SDK-Version": _chunkZ43SUQULjs.SDK_VERSION
363
363
  },
364
364
  body: JSON.stringify({
365
365
  event: input.event,
366
- current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkA5L54JX6js.SDK_VERSION,
366
+ current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkZ43SUQULjs.SDK_VERSION,
367
367
  target_version: input.response.latest,
368
368
  reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
369
369
  command: _nullishCoalesce(input.response.command, () => ( null)),
@@ -382,7 +382,7 @@ function envTruthy(name) {
382
382
  return value === "1" || value === "true" || value === "yes";
383
383
  }
384
384
  function shouldSkipSelfUpdate(policy) {
385
- return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunk3W3AW37Ajs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkCPB7PL4Bjs.isCiEnvironment.call(void 0, );
385
+ return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkFZXZLFNCjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkABLS54ZLjs.isCiEnvironment.call(void 0, );
386
386
  }
387
387
  function parseSemver(version) {
388
388
  const trimmed = _optionalChain([version, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]);
@@ -412,7 +412,7 @@ function compareSemver(left, right) {
412
412
  }
413
413
  function isDowngradeAutoUpdateResponse(response) {
414
414
  const target = _optionalChain([response, 'optionalAccess', _19 => _19.latest, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()]);
415
- const current = _optionalChain([response, 'optionalAccess', _22 => _22.current, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkA5L54JX6js.SDK_VERSION;
415
+ const current = _optionalChain([response, 'optionalAccess', _22 => _22.current, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkZ43SUQULjs.SDK_VERSION;
416
416
  if (!target) return false;
417
417
  return compareSemver(target, current) < 0;
418
418
  }
@@ -451,7 +451,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
451
451
  }
452
452
  if (isDowngradeAutoUpdateResponse(response)) {
453
453
  const target = response.latest;
454
- const current = _optionalChain([response, 'access', _27 => _27.current, 'optionalAccess', _28 => _28.trim, 'call', _29 => _29()]) || _chunkA5L54JX6js.SDK_VERSION;
454
+ const current = _optionalChain([response, 'access', _27 => _27.current, 'optionalAccess', _28 => _28.trim, 'call', _29 => _29()]) || _chunkZ43SUQULjs.SDK_VERSION;
455
455
  process.stderr.write(
456
456
  `Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
457
457
  `
@@ -459,12 +459,12 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
459
459
  return false;
460
460
  }
461
461
  const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
462
- const plan = _chunk3W3AW37Ajs.resolveUpdatePlan.call(void 0, {
462
+ const plan = _chunkFZXZLFNCjs.resolveUpdatePlan.call(void 0, {
463
463
  packageSpec,
464
464
  requireVerifiedNpmOwnership: true,
465
465
  npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
466
466
  });
467
- if (!_chunk3W3AW37Ajs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
467
+ if (!_chunkFZXZLFNCjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
468
468
  return false;
469
469
  }
470
470
  const label = autoUpdate.reason === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : autoUpdate.reason === "deprecated" ? "is deprecated and will update automatically" : autoUpdate.required ? "requires an update" : "has an update available and will update automatically";
@@ -478,7 +478,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
478
478
  event: "started",
479
479
  installKind: plan.kind
480
480
  });
481
- const updateResult = await _chunk3W3AW37Ajs.runAutomaticUpdatePlan.call(void 0, plan);
481
+ const updateResult = await _chunkFZXZLFNCjs.runAutomaticUpdatePlan.call(void 0, plan);
482
482
  if (updateResult.status === "skipped_previous_failure") {
483
483
  void reportAutoUpdateEvent({
484
484
  baseUrl,
@@ -568,6 +568,10 @@ function streamOutput({
568
568
  function shouldReport(stdout, stderr) {
569
569
  return stdout.epipe || stderr.epipe || stdout.lines + stderr.lines > REPORT_MIN_LINES;
570
570
  }
571
+ function toolName(action) {
572
+ const [toolId] = _optionalChain([action, 'optionalAccess', _30 => _30.path]) === "tools execute" ? action.args : [];
573
+ return typeof toolId === "string" ? toolId : null;
574
+ }
571
575
  function chunkText(chunk) {
572
576
  if (typeof chunk === "string") return chunk;
573
577
  if (chunk instanceof Uint8Array) return Buffer.from(chunk).toString();
@@ -597,14 +601,14 @@ function watch(stream) {
597
601
  }
598
602
  async function postCommandOutput(body) {
599
603
  try {
600
- const baseUrl = _chunkA5L54JX6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
601
- const apiKey = _chunkA5L54JX6js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
604
+ const baseUrl = _chunkZ43SUQULjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
605
+ const apiKey = _chunkZ43SUQULjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
602
606
  if (!apiKey) return;
603
- const agentSessionId = _chunkA5L54JX6js.agentSessionIdFromEnvironment.call(void 0, );
607
+ const agentSessionId = _chunkZ43SUQULjs.agentSessionIdFromEnvironment.call(void 0, );
604
608
  await fetch(new URL("/api/v2/telemetry/command-output", baseUrl), {
605
609
  method: "POST",
606
610
  headers: {
607
- ..._chunkCPB7PL4Bjs.failureReportHeaders.call(void 0, apiKey),
611
+ ..._chunkABLS54ZLjs.failureReportHeaders.call(void 0, apiKey),
608
612
  ...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {}
609
613
  },
610
614
  body: JSON.stringify(body),
@@ -613,23 +617,24 @@ async function postCommandOutput(body) {
613
617
  } catch (e4) {
614
618
  }
615
619
  }
616
- function startOutputSizeReporting(command, streams = {
620
+ function startOutputSizeReporting(invocation, streams = {
617
621
  stdout: process.stdout,
618
622
  stderr: process.stderr
619
623
  }) {
620
624
  const stdoutWatch = watch(streams.stdout);
621
625
  const stderrWatch = watch(streams.stderr);
622
- return async (exitCode) => {
623
- if (_chunkCPB7PL4Bjs.isFailureReportingDisabled.call(void 0, )) return;
626
+ return async (finished) => {
627
+ if (_chunkABLS54ZLjs.isFailureReportingDisabled.call(void 0, )) return;
624
628
  const [stdout, stderr] = await Promise.all([
625
629
  stdoutWatch.settled(),
626
630
  stderrWatch.settled()
627
631
  ]);
628
632
  if (!shouldReport(stdout, stderr)) return;
629
633
  await postCommandOutput({
630
- command: _chunkCPB7PL4Bjs.sanitizeCommand.call(void 0, command.argv),
631
- exit_code: typeof exitCode === "number" ? exitCode : null,
632
- duration_ms: Math.max(0, Date.now() - command.startedAtMs),
634
+ command: _chunkABLS54ZLjs.sanitizeCommand.call(void 0, invocation.argv),
635
+ tool: toolName(finished.action),
636
+ exit_code: typeof finished.exitCode === "number" ? finished.exitCode : null,
637
+ duration_ms: Math.max(0, Date.now() - invocation.startedAtMs),
633
638
  stdout_chars: stdout.chars,
634
639
  stderr_chars: stderr.chars,
635
640
  stdout_lines: stdout.lines,
@@ -683,7 +688,7 @@ function isAutoUpdateSettingsInvocation() {
683
688
  function compatibilityCommandPath(command) {
684
689
  const names = [];
685
690
  let current = command;
686
- while (_optionalChain([current, 'optionalAccess', _30 => _30.parent])) {
691
+ while (_optionalChain([current, 'optionalAccess', _31 => _31.parent])) {
687
692
  const name = current.name();
688
693
  if (name) names.unshift(name);
689
694
  current = current.parent;
@@ -700,7 +705,7 @@ function topLevelCommandKnown(program, commandName) {
700
705
  );
701
706
  }
702
707
  async function runPlayRunnerHealthCheck() {
703
- _chunkA5L54JX6js.resolveConfig.call(void 0, );
708
+ _chunkZ43SUQULjs.resolveConfig.call(void 0, );
704
709
  const dir = await _promises.mkdtemp.call(void 0, _path.join.call(void 0, _os.tmpdir.call(void 0, ), "deepline-health-play-"));
705
710
  const file = _path.join.call(void 0, dir, "health-check.play.ts");
706
711
  try {
@@ -730,7 +735,7 @@ async function runPlayRunnerHealthCheck() {
730
735
  });
731
736
  let exitCode = 1;
732
737
  try {
733
- const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-4QE3H5KN.js")));
738
+ const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-R5TYLP5L.js")));
734
739
  exitCode = await handlePlayRun([
735
740
  file,
736
741
  "--input",
@@ -770,7 +775,7 @@ function preflightErrorMessage(error) {
770
775
  return error instanceof Error ? error.message : String(error);
771
776
  }
772
777
  async function runPreflightCheck() {
773
- const baseUrl = _chunkA5L54JX6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
778
+ const baseUrl = _chunkZ43SUQULjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
774
779
  const healthController = new AbortController();
775
780
  const healthTimeout = setTimeout(
776
781
  () => healthController.abort(),
@@ -785,9 +790,9 @@ async function runPreflightCheck() {
785
790
  version: pickString(payload, "version")
786
791
  };
787
792
  }).catch(() => ({ status: "unreachable", version: null })).finally(() => clearTimeout(healthTimeout));
788
- const apiKey = _chunkA5L54JX6js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
789
- const http = apiKey ? new (0, _chunkA5L54JX6js.HttpClient)(
790
- _chunkA5L54JX6js.resolveConfig.call(void 0, {
793
+ const apiKey = _chunkZ43SUQULjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
794
+ const http = apiKey ? new (0, _chunkZ43SUQULjs.HttpClient)(
795
+ _chunkZ43SUQULjs.resolveConfig.call(void 0, {
791
796
  baseUrl,
792
797
  apiKey,
793
798
  timeout: PREFLIGHT_TIMEOUT_MS,
@@ -832,7 +837,7 @@ async function runPreflightCheck() {
832
837
  const connected = authStatus === "connected" || authStatus === "claimed";
833
838
  return {
834
839
  status: healthResult.status === "ok" && connected ? "ok" : "check",
835
- cli_version: _chunkA5L54JX6js.SDK_VERSION,
840
+ cli_version: _chunkZ43SUQULjs.SDK_VERSION,
836
841
  host: baseUrl,
837
842
  health: {
838
843
  status: healthResult.status,
@@ -858,7 +863,7 @@ async function runPreflightCheck() {
858
863
  {
859
864
  title: "preflight",
860
865
  lines: [
861
- `cli: ${_chunkA5L54JX6js.SDK_VERSION}`,
866
+ `cli: ${_chunkZ43SUQULjs.SDK_VERSION}`,
862
867
  `host: ${baseUrl}`,
863
868
  `health: ${healthResult.status}`,
864
869
  `auth: ${authStatus}`,
@@ -872,8 +877,8 @@ async function runPreflightCheck() {
872
877
  }
873
878
  function printPreflightHuman(data) {
874
879
  const render = data.render;
875
- const lines = _optionalChain([render, 'optionalAccess', _31 => _31.sections, 'optionalAccess', _32 => _32.flatMap, 'call', _33 => _33((section) => _nullishCoalesce(section.lines, () => ( [])))]);
876
- if (_optionalChain([lines, 'optionalAccess', _34 => _34.length])) {
880
+ const lines = _optionalChain([render, 'optionalAccess', _32 => _32.sections, 'optionalAccess', _33 => _33.flatMap, 'call', _34 => _34((section) => _nullishCoalesce(section.lines, () => ( [])))]);
881
+ if (_optionalChain([lines, 'optionalAccess', _35 => _35.length])) {
877
882
  process.stdout.write(`${lines.join("\n")}
878
883
  `);
879
884
  return;
@@ -883,12 +888,12 @@ function printPreflightHuman(data) {
883
888
  }
884
889
  async function newerCliCommandHint(baseUrl, command) {
885
890
  if (!command.trim()) return null;
886
- const { response, error } = await _chunkCPB7PL4Bjs.checkSdkCompatibility.call(void 0, baseUrl, { command });
891
+ const { response, error } = await _chunkABLS54ZLjs.checkSdkCompatibility.call(void 0, baseUrl, { command });
887
892
  if (error || !response) return null;
888
893
  const introduced = response.command_introduced_in;
889
894
  if (introduced) {
890
895
  return [
891
- `\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunkA5L54JX6js.SDK_VERSION}.`,
896
+ `\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunkZ43SUQULjs.SDK_VERSION}.`,
892
897
  ` ${introduced.reason}`,
893
898
  ` Update with: ${response.update_command}`,
894
899
  " Agent skills are served by Deepline and refresh on their own, so a skill can describe a command this CLI does not have yet."
@@ -897,11 +902,11 @@ async function newerCliCommandHint(baseUrl, command) {
897
902
  if (!response.update_required) return null;
898
903
  return [
899
904
  response.message,
900
- ` Installed: ${_chunkA5L54JX6js.SDK_VERSION}. Run: ${response.update_command}`,
905
+ ` Installed: ${_chunkZ43SUQULjs.SDK_VERSION}. Run: ${response.update_command}`,
901
906
  " If an agent skill told you to run this, the skill is newer than this CLI."
902
907
  ].join("\n");
903
908
  }
904
- async function runMain(ensureTransport) {
909
+ async function runMain(ensureTransport, onAction) {
905
910
  const mainStartedAt = Date.now();
906
911
  let rootHelpStatus = "";
907
912
  _chunkAYHLUHE5js.recordCliTrace.call(void 0, {
@@ -911,12 +916,12 @@ async function runMain(ensureTransport) {
911
916
  const printStartupPhase = shouldPrintStartupPhase();
912
917
  const progress = printStartupPhase ? _chunkWJYPBHTEjs.createCliProgress.call(void 0, true) : null;
913
918
  if (printStartupPhase) {
914
- _optionalChain([progress, 'optionalAccess', _35 => _35.phase, 'call', _36 => _36("loading deepline cli")]);
919
+ _optionalChain([progress, 'optionalAccess', _36 => _36.phase, 'call', _37 => _37("loading deepline cli")]);
915
920
  }
916
921
  const program = new (0, _commander.Command)();
917
922
  program.name("deepline").description(
918
923
  "Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
919
- ).version(_chunkA5L54JX6js.SDK_VERSION, "-v, --version", "Show version").option(
924
+ ).version(_chunkZ43SUQULjs.SDK_VERSION, "-v, --version", "Show version").option(
920
925
  "--maintenance <policy>",
921
926
  "Installation maintenance: configured preferences or off; independent of output format",
922
927
  parseCliMaintenancePolicy,
@@ -966,13 +971,17 @@ Exit codes:
966
971
  return _chunkHXENYWVSjs.renderCommandExplanation.call(void 0, key, detail, { firstRead });
967
972
  });
968
973
  program.hook("preAction", async (_thisCommand, actionCommand) => {
974
+ onAction({
975
+ path: compatibilityCommandPath(actionCommand),
976
+ args: actionCommand.processedArgs
977
+ });
969
978
  const maintenance = resolveCliMaintenancePolicy(
970
979
  actionCommand.optsWithGlobals()
971
980
  );
972
981
  if (actionCommand.name() !== "version") {
973
982
  await ensureTransport();
974
983
  }
975
- if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunkCPB7PL4Bjs.SKILLS_AUTO_SYNC_COMMAND || actionCommand.name() === "doctor" || isAutoUpdateSettingsInvocation() || isDeprecatedCommandInvocation()) {
984
+ if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunkABLS54ZLjs.SKILLS_AUTO_SYNC_COMMAND || actionCommand.name() === "doctor" || isAutoUpdateSettingsInvocation() || isDeprecatedCommandInvocation()) {
976
985
  return;
977
986
  }
978
987
  const compatibilityCommand = compatibilityCommandPath(actionCommand) || actionCommand.name();
@@ -982,19 +991,19 @@ Exit codes:
982
991
  }
983
992
  const runStartupStage = (stage, action) => isToolExecuteCommand ? _chunkQJBJZVG6js.runToolExecuteStage.call(void 0, stage, action) : Promise.resolve(action());
984
993
  if (printStartupPhase) {
985
- _optionalChain([progress, 'optionalAccess', _37 => _37.phase, 'call', _38 => _38("checking sdk compatibility")]);
994
+ _optionalChain([progress, 'optionalAccess', _38 => _38.phase, 'call', _39 => _39("checking sdk compatibility")]);
986
995
  }
987
996
  const startup = await runStartupStage("SDK compatibility", async () => {
988
- const baseUrl = _chunkA5L54JX6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
989
- if (maintenance !== "off") _chunkCPB7PL4Bjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
997
+ const baseUrl = _chunkZ43SUQULjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
998
+ if (maintenance !== "off") _chunkABLS54ZLjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
990
999
  const shouldDeferSkillsSync = maintenance === "off" || shouldDeferSkillsSyncForCommand();
991
- const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunkA5L54JX6js.readSdkSkillsLocalVersion.call(void 0, baseUrl);
992
- const trusted = _chunkCPB7PL4Bjs.readTrustedCleanCompatibility.call(void 0,
1000
+ const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunkZ43SUQULjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1001
+ const trusted = _chunkABLS54ZLjs.readTrustedCleanCompatibility.call(void 0,
993
1002
  baseUrl,
994
1003
  compatibilityCommand,
995
1004
  skillsVersion
996
1005
  );
997
- const fastDeadline = trusted === null && _chunkCPB7PL4Bjs.readFreshCleanCompatibility.call(void 0,
1006
+ const fastDeadline = trusted === null && _chunkABLS54ZLjs.readFreshCleanCompatibility.call(void 0,
998
1007
  baseUrl,
999
1008
  compatibilityCommand,
1000
1009
  skillsVersion
@@ -1018,12 +1027,12 @@ Exit codes:
1018
1027
  skillsVersion: _nullishCoalesce(skillsVersion, () => ( null)),
1019
1028
  fastDeadline
1020
1029
  },
1021
- () => _chunkCPB7PL4Bjs.checkSdkCompatibility.call(void 0, baseUrl, {
1030
+ () => _chunkABLS54ZLjs.checkSdkCompatibility.call(void 0, baseUrl, {
1022
1031
  command: compatibilityCommand,
1023
1032
  skillsVersion,
1024
1033
  persistCache: maintenance !== "off",
1025
1034
  catalog: _chunkQJBJZVG6js.compatibilityCatalog.call(void 0, actionCommand),
1026
- ...fastDeadline ? { timeoutMs: _chunkCPB7PL4Bjs.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
1035
+ ...fastDeadline ? { timeoutMs: _chunkABLS54ZLjs.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
1027
1036
  })
1028
1037
  );
1029
1038
  if (compatibility.error) {
@@ -1047,7 +1056,7 @@ Exit codes:
1047
1056
  response: compatibility.response
1048
1057
  };
1049
1058
  }
1050
- _chunkCPB7PL4Bjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
1059
+ _chunkABLS54ZLjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
1051
1060
  quietAdvisory: process.argv.includes("--json")
1052
1061
  });
1053
1062
  return {
@@ -1059,7 +1068,7 @@ Exit codes:
1059
1068
  });
1060
1069
  if (!startup.shouldContinue) return;
1061
1070
  if (printStartupPhase) {
1062
- _optionalChain([progress, 'optionalAccess', _39 => _39.phase, 'call', _40 => _40("checking sdk skills")]);
1071
+ _optionalChain([progress, 'optionalAccess', _40 => _40.phase, 'call', _41 => _41("checking sdk skills")]);
1063
1072
  }
1064
1073
  if (!startup.shouldDeferSkillsSync) {
1065
1074
  const skillsUpdate = startup.response && Object.prototype.hasOwnProperty.call(startup.response, "skills") ? _nullishCoalesce(startup.response.skills, () => ( null)) : void 0;
@@ -1068,7 +1077,7 @@ Exit codes:
1068
1077
  () => _chunkAYHLUHE5js.traceCliSpan.call(void 0,
1069
1078
  "cli.sdk_skills_sync",
1070
1079
  { baseUrl: startup.baseUrl },
1071
- () => _chunkCPB7PL4Bjs.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
1080
+ () => _chunkABLS54ZLjs.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
1072
1081
  update: skillsUpdate,
1073
1082
  mode: "detached"
1074
1083
  })
@@ -1096,8 +1105,8 @@ Examples:
1096
1105
  `
1097
1106
  ).action(async (options) => {
1098
1107
  const data = await runPreflightCheck();
1099
- if (_chunkFUTYFVJRjs.shouldEmitJson.call(void 0, options.json)) {
1100
- _chunkFUTYFVJRjs.printJson.call(void 0, data);
1108
+ if (_chunkCLOICRTKjs.shouldEmitJson.call(void 0, options.json)) {
1109
+ _chunkCLOICRTKjs.printJson.call(void 0, data);
1101
1110
  } else {
1102
1111
  printPreflightHuman(data);
1103
1112
  }
@@ -1119,7 +1128,7 @@ Examples:
1119
1128
  ).action(async (options) => {
1120
1129
  if (options.playRunner) {
1121
1130
  const data = await runPlayRunnerHealthCheck();
1122
- _chunkFUTYFVJRjs.printCommandEnvelope.call(void 0, data, {
1131
+ _chunkCLOICRTKjs.printCommandEnvelope.call(void 0, data, {
1123
1132
  json: options.json,
1124
1133
  text: `play runner: ${data.playRunner.status} (${data.playRunner.check})
1125
1134
  `
@@ -1127,15 +1136,15 @@ Examples:
1127
1136
  return;
1128
1137
  }
1129
1138
  try {
1130
- const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-M65RW5ZI.js")));
1131
- const baseUrl = _chunkA5L54JX6js.resolveBaseUrlOnly.call(void 0, );
1139
+ const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-AOM2LA73.js")));
1140
+ const baseUrl = _chunkZ43SUQULjs.resolveBaseUrlOnly.call(void 0, );
1132
1141
  const [{ status, data }, banner] = await Promise.all([
1133
1142
  httpJson("GET", `${baseUrl}/api/v2/health`, null),
1134
1143
  readStatusBanner(baseUrl)
1135
1144
  ]);
1136
1145
  if (status !== 200) throw new Error(`HTTP ${status}`);
1137
1146
  const lines = [`${baseUrl}: ${data.status}`, statusBannerLine(banner)];
1138
- _chunkFUTYFVJRjs.printCommandEnvelope.call(void 0,
1147
+ _chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
1139
1148
  { ...data, status_banner: banner },
1140
1149
  {
1141
1150
  json: options.json,
@@ -1163,10 +1172,10 @@ Examples:
1163
1172
  `
1164
1173
  ).action((options) => {
1165
1174
  if (options.json) {
1166
- _chunkFUTYFVJRjs.printCompactJson.call(void 0, { version: _chunkA5L54JX6js.SDK_VERSION });
1175
+ _chunkCLOICRTKjs.printCompactJson.call(void 0, { version: _chunkZ43SUQULjs.SDK_VERSION });
1167
1176
  return;
1168
1177
  }
1169
- process.stdout.write(`deepline ${_chunkA5L54JX6js.SDK_VERSION}
1178
+ process.stdout.write(`deepline ${_chunkZ43SUQULjs.SDK_VERSION}
1170
1179
  `);
1171
1180
  });
1172
1181
  if (process.argv.slice(2).length === 0) {
@@ -1184,7 +1193,7 @@ Examples:
1184
1193
  const requestedTopLevelCommand = _nullishCoalesce(process.argv.slice(2)[0], () => ( ""));
1185
1194
  if (!topLevelCommandKnown(program, requestedTopLevelCommand)) {
1186
1195
  console.error(`error: unknown command '${requestedTopLevelCommand}'`);
1187
- const baseUrl = _chunkA5L54JX6js.autoDetectBaseUrl.call(void 0, );
1196
+ const baseUrl = _chunkZ43SUQULjs.autoDetectBaseUrl.call(void 0, );
1188
1197
  await ensureTransport();
1189
1198
  const versionHint = await newerCliCommandHint(
1190
1199
  baseUrl,
@@ -1202,8 +1211,8 @@ Examples:
1202
1211
  const helpArgs = process.argv.slice(2);
1203
1212
  const helpPositionals = helpArgs.filter((arg) => !arg.startsWith("-"));
1204
1213
  if (helpPositionals.length === 0 ? helpArgs.includes("--help") || helpArgs.includes("-h") : helpPositionals.length === 1 && helpPositionals[0] === "help") {
1205
- const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-M65RW5ZI.js")));
1206
- rootHelpStatus = `Version: ${_chunkA5L54JX6js.SDK_VERSION}
1214
+ const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-AOM2LA73.js")));
1215
+ rootHelpStatus = `Version: ${_chunkZ43SUQULjs.SDK_VERSION}
1207
1216
  ${await authStatusLine()}
1208
1217
  `;
1209
1218
  }
@@ -1213,7 +1222,7 @@ ${await authStatusLine()}
1213
1222
  ms: Date.now() - mainStartedAt,
1214
1223
  ok: true
1215
1224
  });
1216
- await _chunkCPB7PL4Bjs.maybeReportSdkCliFailure.call(void 0, {
1225
+ await _chunkABLS54ZLjs.maybeReportSdkCliFailure.call(void 0, {
1217
1226
  argv: process.argv.slice(2),
1218
1227
  startedAtMs: mainStartedAt,
1219
1228
  exitCode: typeof process.exitCode === "number" ? process.exitCode : null
@@ -1226,7 +1235,7 @@ ${await authStatusLine()}
1226
1235
  ok: false,
1227
1236
  error: error instanceof Error ? error.message : String(error)
1228
1237
  });
1229
- _optionalChain([progress, 'optionalAccess', _41 => _41.fail, 'call', _42 => _42()]);
1238
+ _optionalChain([progress, 'optionalAccess', _42 => _42.fail, 'call', _43 => _43()]);
1230
1239
  const wantsJson = process.argv.includes("--json");
1231
1240
  if (commanderError) {
1232
1241
  if ([
@@ -1238,7 +1247,7 @@ ${await authStatusLine()}
1238
1247
  const commandPath = invocation.commandPath || requestedTopLevelCommand;
1239
1248
  await ensureTransport();
1240
1249
  const versionHint = await newerCliCommandHint(
1241
- _chunkA5L54JX6js.autoDetectBaseUrl.call(void 0, ),
1250
+ _chunkZ43SUQULjs.autoDetectBaseUrl.call(void 0, ),
1242
1251
  commandPath
1243
1252
  );
1244
1253
  if (versionHint) console.error(versionHint);
@@ -1249,24 +1258,24 @@ ${await authStatusLine()}
1249
1258
  process.exitCode = commanderError.code === "commander.unknownCommand" && !wantsJson ? 2 : _nullishCoalesce(commanderError.exitCode, () => ( 1));
1250
1259
  return;
1251
1260
  } else if (wantsJson) {
1252
- _chunkFUTYFVJRjs.printJson.call(void 0, {
1253
- ..._chunkFUTYFVJRjs.errorToJsonPayload.call(void 0, error),
1254
- ...error instanceof _chunkA5L54JX6js.AuthError ? { next: AUTH_RECOVERY_COMMAND } : {}
1261
+ _chunkCLOICRTKjs.printJson.call(void 0, {
1262
+ ..._chunkCLOICRTKjs.errorToJsonPayload.call(void 0, error),
1263
+ ...error instanceof _chunkZ43SUQULjs.AuthError ? { next: AUTH_RECOVERY_COMMAND } : {}
1255
1264
  });
1256
1265
  } else if (error instanceof Error) {
1257
1266
  console.error(`Error: ${error.message}`);
1258
- if (error instanceof _chunkA5L54JX6js.AuthError) {
1267
+ if (error instanceof _chunkZ43SUQULjs.AuthError) {
1259
1268
  console.error(`Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`);
1260
1269
  }
1261
- const providerConcurrency = _chunkFUTYFVJRjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
1270
+ const providerConcurrency = _chunkCLOICRTKjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
1262
1271
  if (providerConcurrency) console.error(providerConcurrency);
1263
1272
  } else {
1264
1273
  console.error(`Error: ${String(error)}`);
1265
1274
  }
1266
1275
  const explicitExitCode = error && typeof error === "object" && typeof error.exitCode === "number" ? error.exitCode : void 0;
1267
- const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunkCPB7PL4Bjs.resolveSdkCliFailureExitCode.call(void 0, error)));
1276
+ const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunkABLS54ZLjs.resolveSdkCliFailureExitCode.call(void 0, error)));
1268
1277
  process.exitCode = failureExitCode;
1269
- await _chunkCPB7PL4Bjs.maybeReportSdkCliFailure.call(void 0, {
1278
+ await _chunkABLS54ZLjs.maybeReportSdkCliFailure.call(void 0, {
1270
1279
  argv: process.argv.slice(2),
1271
1280
  startedAtMs: mainStartedAt,
1272
1281
  exitCode: failureExitCode,
@@ -1286,7 +1295,7 @@ async function main() {
1286
1295
  "http_proxy",
1287
1296
  "HTTPS_PROXY",
1288
1297
  "https_proxy"
1289
- ].some((name) => _optionalChain([process, 'access', _43 => _43.env, 'access', _44 => _44[name], 'optionalAccess', _45 => _45.trim, 'call', _46 => _46()]));
1298
+ ].some((name) => _optionalChain([process, 'access', _44 => _44.env, 'access', _45 => _45[name], 'optionalAccess', _46 => _46.trim, 'call', _47 => _47()]));
1290
1299
  if (!process.versions.bun || hasProxy) {
1291
1300
  const { configureCliTransport } = await Promise.resolve().then(() => _interopRequireWildcard(require("./proxy-env-ZV2WZFAT.js")));
1292
1301
  disposeTransport = configureCliTransport();
@@ -1296,12 +1305,15 @@ async function main() {
1296
1305
  argv: process.argv.slice(2),
1297
1306
  startedAtMs: Date.now()
1298
1307
  });
1308
+ let action = null;
1299
1309
  try {
1300
- await runMain(ensureTransport);
1310
+ await runMain(ensureTransport, (dispatched) => {
1311
+ action = dispatched;
1312
+ });
1301
1313
  await ensureTransport();
1302
- await reportOutputSize(process.exitCode);
1314
+ await reportOutputSize({ exitCode: process.exitCode, action });
1303
1315
  } finally {
1304
- await _optionalChain([disposeTransport, 'optionalCall', _47 => _47()]);
1316
+ await _optionalChain([disposeTransport, 'optionalCall', _48 => _48()]);
1305
1317
  }
1306
1318
  }
1307
1319
  var DEV_CLI_AWAIT_MAIN = Symbol.for("@deepline/sdk/dev-cli-await-main");