deepline 0.3.327 → 0.3.329

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 (123) hide show
  1. package/dist/bundling-sources/sdk/src/index.ts +1 -0
  2. package/dist/bundling-sources/sdk/src/play.ts +55 -45
  3. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  4. package/dist/bundling-sources/sdk/src/types.ts +16 -0
  5. package/dist/bundling-sources/shared_libs/observability/queue-health.ts +9 -0
  6. package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
  7. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +31 -15
  8. package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-semantics.ts +22 -4
  9. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +29 -11
  10. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +145 -19
  11. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +37 -10
  12. package/dist/bundling-sources/shared_libs/plays/dataset.ts +3 -0
  13. package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +59 -10
  14. package/dist/bundling-sources/shared_libs/security/secret-redaction.ts +4 -0
  15. package/dist/cli/{auth-EBBDOKNV.mjs → auth-MFFVOITR.mjs} +4 -4
  16. package/dist/cli/auth-W2MQM6GQ.js +31 -0
  17. package/dist/cli/{billing-IM2QUFX4.mjs → billing-LRBHWLIQ.mjs} +30 -16
  18. package/dist/cli/{billing-6AAB7WPJ.js → billing-V4Y4OVQ7.js} +96 -82
  19. package/dist/cli/{chunk-D6GD5AVN.mjs → chunk-3RZJ3GEG.mjs} +135 -5
  20. package/dist/cli/{chunk-MOP6D7Z5.js → chunk-4FLEXYUC.js} +141 -11
  21. package/dist/cli/{chunk-DSDX6EUW.js → chunk-75ZOTF3K.js} +15 -15
  22. package/dist/cli/{chunk-ZOFARJWH.mjs → chunk-7T6DX5RK.mjs} +21 -14
  23. package/dist/cli/{chunk-3MXRNPBN.js → chunk-AD23W4S5.js} +1 -1
  24. package/dist/cli/{chunk-F45425TB.mjs → chunk-EROOAI5G.mjs} +1 -1
  25. package/dist/cli/{chunk-REP2MYBI.mjs → chunk-ERU2OR6F.mjs} +2 -2
  26. package/dist/cli/{chunk-YIY74KUF.mjs → chunk-EV4QJE4J.mjs} +1 -1
  27. package/dist/cli/{chunk-CCRQ2VGJ.mjs → chunk-FK7PW6BP.mjs} +1 -1
  28. package/dist/cli/{chunk-2HKPAZVJ.js → chunk-FKKNYKDY.js} +14 -3
  29. package/dist/cli/{chunk-G5774EFF.mjs → chunk-GCNER3HV.mjs} +1 -1
  30. package/dist/cli/{chunk-4ZARCCPT.js → chunk-GY2EEO2Y.js} +9 -9
  31. package/dist/cli/{chunk-HOWQKN6J.mjs → chunk-HI7TAWFS.mjs} +79 -26
  32. package/dist/cli/{chunk-RSEVBSFE.mjs → chunk-HVPRQGF4.mjs} +1 -1
  33. package/dist/cli/{chunk-CISKBOXD.js → chunk-J2E5R2VH.js} +60 -60
  34. package/dist/cli/{chunk-7RCJDAJX.js → chunk-KHZQFFOQ.js} +2 -2
  35. package/dist/cli/{chunk-DVV4FPS7.mjs → chunk-MFQQINUY.mjs} +2 -2
  36. package/dist/cli/{chunk-DCAU6PND.mjs → chunk-MO2XSC5I.mjs} +4 -4
  37. package/dist/cli/{chunk-KP7W5NO6.mjs → chunk-NTVTZAVZ.mjs} +13 -2
  38. package/dist/cli/{chunk-HZZJR2GV.js → chunk-OUTIWGKY.js} +26 -26
  39. package/dist/cli/{chunk-QZAP5VOS.mjs → chunk-OZGU7P2S.mjs} +1 -1
  40. package/dist/cli/{chunk-A5SKM3GL.mjs → chunk-SJV5MTOJ.mjs} +1 -1
  41. package/dist/cli/{chunk-UROXKPND.js → chunk-U2N4CYT7.js} +6 -6
  42. package/dist/cli/{chunk-4TO56P22.js → chunk-U4CTHVN7.js} +255 -248
  43. package/dist/cli/{chunk-AGH6YP2T.js → chunk-UQV5M6HN.js} +3 -3
  44. package/dist/cli/{chunk-DM3SHV6U.js → chunk-VDIHLKGG.js} +4 -4
  45. package/dist/cli/{chunk-77RAV5XX.js → chunk-VLDLJZ75.js} +48 -48
  46. package/dist/cli/{chunk-NWIJLTRL.js → chunk-XRYKLK56.js} +119 -66
  47. package/dist/cli/{chunk-3ITDKXNC.mjs → chunk-YNSCELIJ.mjs} +2 -2
  48. package/dist/cli/{chunk-TAGHNT5P.js → chunk-ZXGUYTIT.js} +6 -6
  49. package/dist/cli/client-5AIFBLKQ.js +20 -0
  50. package/dist/cli/{client-JCMSACT4.mjs → client-BNLD775D.mjs} +3 -3
  51. package/dist/cli/{csv-NPMWVM5D.mjs → csv-7MVQECWG.mjs} +3 -3
  52. package/dist/cli/{csv-OILKDKUX.js → csv-ZT6ZRQ3Z.js} +12 -12
  53. package/dist/cli/{db-AZUAOWPQ.mjs → db-ABLWLMX5.mjs} +4 -4
  54. package/dist/cli/{db-MNDRYYEX.js → db-C4BMZXJK.js} +29 -29
  55. package/dist/cli/{describe-KJWOHMKC.mjs → describe-XWOWAR32.mjs} +10 -10
  56. package/dist/cli/{describe-QENLDLM2.js → describe-YALVN4WH.js} +17 -17
  57. package/dist/cli/{executions-QZNQWF6F.mjs → executions-7IZVKQ3O.mjs} +4 -4
  58. package/dist/cli/{executions-P36UHBPG.js → executions-U4TNRP26.js} +6 -6
  59. package/dist/cli/{feedback-RQ6HSZSG.mjs → feedback-GO5XPEKY.mjs} +3 -3
  60. package/dist/cli/{feedback-K4UGTLFD.js → feedback-NWMRT5W4.js} +6 -6
  61. package/dist/cli/{git-PBRMCBMI.mjs → git-R53WS4WA.mjs} +4 -4
  62. package/dist/cli/git-YWRLAOBY.js +23 -0
  63. package/dist/cli/index.js +95 -80
  64. package/dist/cli/index.mjs +54 -39
  65. package/dist/cli/{legacy-noops-G7GWJ5UC.mjs → legacy-noops-6QAZW7WJ.mjs} +4 -4
  66. package/dist/cli/{legacy-noops-X74FM35Q.js → legacy-noops-NJWM53DE.js} +7 -7
  67. package/dist/cli/{monitors-VKURX3YM.js → monitors-2I2MYAPS.js} +85 -85
  68. package/dist/cli/{monitors-KL2MCR57.mjs → monitors-2N4BRU5M.mjs} +4 -4
  69. package/dist/cli/{org-DT53KTNW.mjs → org-D3RHK2Q7.mjs} +4 -4
  70. package/dist/cli/{org-ZYXJDC44.js → org-XVNAE2JV.js} +60 -60
  71. package/dist/cli/{play-WIJGQYTB.mjs → play-L7MYJZ65.mjs} +9 -9
  72. package/dist/cli/play-OYRHI7G3.js +153 -0
  73. package/dist/cli/{providers-GRTW4TXX.js → providers-5BTDAZHN.js} +7 -7
  74. package/dist/cli/{providers-GYGKGS2J.mjs → providers-YM4E7WZD.mjs} +4 -4
  75. package/dist/cli/{quickstart-WB26543C.js → quickstart-5A3FHAH3.js} +5 -5
  76. package/dist/cli/{quickstart-XF3M2M2S.mjs → quickstart-ARPLJOLH.mjs} +3 -3
  77. package/dist/cli/{search-ANJLTOF2.mjs → search-KKJEVV27.mjs} +5 -5
  78. package/dist/cli/search-VE3O3ZEM.js +26 -0
  79. package/dist/cli/{secrets-D6UR5CTW.mjs → secrets-DGRJ4DO5.mjs} +4 -4
  80. package/dist/cli/{secrets-5KBUGMTK.js → secrets-DVPVCSZD.js} +13 -13
  81. package/dist/cli/{sessions-S7N4JEWK.mjs → sessions-56EHXLZD.mjs} +4 -4
  82. package/dist/cli/{sessions-46PXFULL.js → sessions-VG4ATQ5Y.js} +5 -5
  83. package/dist/cli/{settings-V6U3SRTH.mjs → settings-4U5XG7QI.mjs} +7 -7
  84. package/dist/cli/{settings-KMNBITSU.js → settings-BLOTIW2G.js} +74 -74
  85. package/dist/cli/{setup-4K5FY6AU.js → setup-L7AMAXCH.js} +41 -41
  86. package/dist/cli/{setup-OGITSLTN.mjs → setup-RHJAHPOR.mjs} +6 -6
  87. package/dist/cli/skills-QB4OQGGP.js +28 -0
  88. package/dist/cli/{skills-AXWAYPBY.mjs → skills-VU55YFCI.mjs} +4 -4
  89. package/dist/cli/tools-2CPFYNK7.js +40 -0
  90. package/dist/cli/{tools-LJCY6B23.mjs → tools-JS3YIDOH.mjs} +7 -6
  91. package/dist/cli/{update-DDR5XIUB.mjs → update-EHI5QUXM.mjs} +6 -6
  92. package/dist/cli/update-WXP24GU5.js +28 -0
  93. package/dist/cli/{workflow-PRNCVANQ.mjs → workflow-BITLTLRF.mjs} +5 -5
  94. package/dist/cli/{workflow-7CTCDWL3.js → workflow-NE4SYRAT.js} +15 -15
  95. package/dist/{client-wiWPZhnI.d.mts → client-D5XOQKsA.d.mts} +20 -1
  96. package/dist/{client-DHq8dJ56.d.ts → client-l-IoLh8Z.d.ts} +20 -1
  97. package/dist/{compiler-manifest-9TkZ_ykI.d.mts → compiler-manifest-82q4jtfQ.d.mts} +44 -17
  98. package/dist/{compiler-manifest-9TkZ_ykI.d.ts → compiler-manifest-82q4jtfQ.d.ts} +44 -17
  99. package/dist/{index-B-5_Xhud.d.mts → index-BPbW2XHF.d.mts} +1 -1
  100. package/dist/{index-ykksoEyR.d.ts → index-k0rquHIm.d.ts} +1 -1
  101. package/dist/index.d.mts +14 -8
  102. package/dist/index.d.ts +14 -8
  103. package/dist/index.js +194 -69
  104. package/dist/index.mjs +162 -37
  105. package/dist/install-integrity.json +84 -84
  106. package/dist/plays/bundle-play-file.d.mts +3 -3
  107. package/dist/plays/bundle-play-file.d.ts +3 -3
  108. package/dist/plays/bundle-play-file.mjs +2 -2
  109. package/dist/plays/run-request.d.mts +2 -2
  110. package/dist/plays/run-request.d.ts +2 -2
  111. package/dist/release.d.mts +1 -1
  112. package/dist/release.d.ts +1 -1
  113. package/dist/release.js +2 -2
  114. package/dist/release.mjs +1 -1
  115. package/package.json +2 -1
  116. package/dist/cli/auth-67YOPQ6M.js +0 -31
  117. package/dist/cli/client-7LZCG4VD.js +0 -20
  118. package/dist/cli/git-RPFH3NJ2.js +0 -23
  119. package/dist/cli/play-BUQV47E2.js +0 -153
  120. package/dist/cli/search-CR2GZLCM.js +0 -26
  121. package/dist/cli/skills-4FP2MZKL.js +0 -28
  122. package/dist/cli/tools-7YZPH6WC.js +0 -39
  123. package/dist/cli/update-3VUOW6AP.js +0 -28
@@ -10,8 +10,8 @@ import {
10
10
  resolveUpdatePlan,
11
11
  runAutomaticUpdatePlan,
12
12
  shouldRunCliAutoUpdate
13
- } from "./chunk-DCAU6PND.mjs";
14
- import "./chunk-RSEVBSFE.mjs";
13
+ } from "./chunk-MO2XSC5I.mjs";
14
+ import "./chunk-HVPRQGF4.mjs";
15
15
  import {
16
16
  SDK_COMPATIBILITY_FAST_DEADLINE_MS,
17
17
  SKILLS_AUTO_SYNC_COMMAND,
@@ -24,7 +24,7 @@ import {
24
24
  readTrustedCleanCompatibility,
25
25
  resolveSdkCliFailureExitCode,
26
26
  syncSdkSkillsIfNeeded
27
- } from "./chunk-3ITDKXNC.mjs";
27
+ } from "./chunk-YNSCELIJ.mjs";
28
28
  import {
29
29
  recordCliTrace,
30
30
  traceCliSpan
@@ -33,22 +33,23 @@ import {
33
33
  createCliProgress
34
34
  } from "./chunk-GAMFK2ZP.mjs";
35
35
  import {
36
+ errorToJsonPayload,
36
37
  formatProviderConcurrencyDiagnostic,
37
38
  printCompactJson,
38
39
  printJson,
39
- printJsonError,
40
40
  shouldEmitJson
41
- } from "./chunk-F45425TB.mjs";
41
+ } from "./chunk-EROOAI5G.mjs";
42
42
  import {
43
+ AuthError,
43
44
  HttpClient,
44
45
  SDK_VERSION,
45
46
  autoDetectBaseUrl,
46
47
  readSdkSkillsLocalVersion,
47
48
  resolveApiKeyForBaseUrl,
48
49
  resolveConfig
49
- } from "./chunk-CCRQ2VGJ.mjs";
50
+ } from "./chunk-FK7PW6BP.mjs";
50
51
  import "./chunk-DLIRSHV6.mjs";
51
- import "./chunk-G5774EFF.mjs";
52
+ import "./chunk-GCNER3HV.mjs";
52
53
  import "./chunk-NXGCO4JB.mjs";
53
54
  import "./chunk-WZYKRD7T.mjs";
54
55
  import "./chunk-KRD6H754.mjs";
@@ -114,48 +115,48 @@ import { Command as Command2 } from "commander";
114
115
  var COMMAND_GROUPS = [
115
116
  {
116
117
  names: ["auth"],
117
- load: async () => (await import("./auth-EBBDOKNV.mjs")).registerAuthCommands
118
+ load: async () => (await import("./auth-MFFVOITR.mjs")).registerAuthCommands
118
119
  },
119
120
  {
120
121
  names: ["providers"],
121
- load: async () => (await import("./providers-GYGKGS2J.mjs")).registerProviderCommands
122
+ load: async () => (await import("./providers-YM4E7WZD.mjs")).registerProviderCommands
122
123
  },
123
124
  {
124
125
  names: ["search"],
125
- load: async () => (await import("./search-ANJLTOF2.mjs")).registerSearchCommand
126
+ load: async () => (await import("./search-KKJEVV27.mjs")).registerSearchCommand
126
127
  },
127
128
  {
128
129
  names: ["describe"],
129
- load: async () => (await import("./describe-KJWOHMKC.mjs")).registerDescribeCommand
130
+ load: async () => (await import("./describe-XWOWAR32.mjs")).registerDescribeCommand
130
131
  },
131
132
  {
132
133
  names: ["tools"],
133
- load: async () => (await import("./tools-LJCY6B23.mjs")).registerToolsCommands
134
+ load: async () => (await import("./tools-JS3YIDOH.mjs")).registerToolsCommands
134
135
  },
135
136
  {
136
137
  names: ["executions"],
137
- load: async () => (await import("./executions-QZNQWF6F.mjs")).registerExecutionsCommands
138
+ load: async () => (await import("./executions-7IZVKQ3O.mjs")).registerExecutionsCommands
138
139
  },
139
140
  {
140
141
  names: ["plays", "runs"],
141
- load: async () => (await import("./play-WIJGQYTB.mjs")).registerPlayCommands
142
+ load: async () => (await import("./play-L7MYJZ65.mjs")).registerPlayCommands
142
143
  },
143
144
  {
144
145
  names: ["sessions"],
145
- load: async () => (await import("./sessions-S7N4JEWK.mjs")).registerSessionsCommands
146
+ load: async () => (await import("./sessions-56EHXLZD.mjs")).registerSessionsCommands
146
147
  },
147
148
  {
148
149
  names: ["workflows"],
149
- load: async () => (await import("./workflow-PRNCVANQ.mjs")).registerWorkflowCommands
150
+ load: async () => (await import("./workflow-BITLTLRF.mjs")).registerWorkflowCommands
150
151
  },
151
152
  {
152
153
  names: ["secrets"],
153
- load: async () => (await import("./secrets-D6UR5CTW.mjs")).registerSecretsCommands
154
+ load: async () => (await import("./secrets-DGRJ4DO5.mjs")).registerSecretsCommands
154
155
  },
155
156
  {
156
157
  names: ["settings", "notifications"],
157
158
  load: async () => {
158
- const commands = await import("./settings-V6U3SRTH.mjs");
159
+ const commands = await import("./settings-4U5XG7QI.mjs");
159
160
  return (p) => {
160
161
  commands.registerSettingsCommands(p);
161
162
  commands.registerNotificationCommands(p);
@@ -164,51 +165,51 @@ var COMMAND_GROUPS = [
164
165
  },
165
166
  {
166
167
  names: ["billing"],
167
- load: async () => (await import("./billing-IM2QUFX4.mjs")).registerBillingCommands
168
+ load: async () => (await import("./billing-LRBHWLIQ.mjs")).registerBillingCommands
168
169
  },
169
170
  {
170
171
  names: ["monitors"],
171
- load: async () => (await import("./monitors-KL2MCR57.mjs")).registerMonitorsCommands
172
+ load: async () => (await import("./monitors-2N4BRU5M.mjs")).registerMonitorsCommands
172
173
  },
173
174
  {
174
175
  names: ["org"],
175
- load: async () => (await import("./org-DT53KTNW.mjs")).registerOrgCommands
176
+ load: async () => (await import("./org-D3RHK2Q7.mjs")).registerOrgCommands
176
177
  },
177
178
  {
178
179
  names: ["git", "projects", "deployments"],
179
- load: async () => (await import("./git-PBRMCBMI.mjs")).registerGitCommands
180
+ load: async () => (await import("./git-R53WS4WA.mjs")).registerGitCommands
180
181
  },
181
182
  {
182
183
  names: ["csv"],
183
- load: async () => (await import("./csv-NPMWVM5D.mjs")).registerCsvCommands
184
+ load: async () => (await import("./csv-7MVQECWG.mjs")).registerCsvCommands
184
185
  },
185
186
  {
186
187
  names: ["db"],
187
- load: async () => (await import("./db-AZUAOWPQ.mjs")).registerDbCommands
188
+ load: async () => (await import("./db-ABLWLMX5.mjs")).registerDbCommands
188
189
  },
189
190
  {
190
191
  names: ["feedback"],
191
- load: async () => (await import("./feedback-RQ6HSZSG.mjs")).registerFeedbackCommands
192
+ load: async () => (await import("./feedback-GO5XPEKY.mjs")).registerFeedbackCommands
192
193
  },
193
194
  {
194
195
  names: ["enrich", "session", "backend"],
195
- load: async () => (await import("./legacy-noops-G7GWJ5UC.mjs")).registerDeprecatedCommands
196
+ load: async () => (await import("./legacy-noops-6QAZW7WJ.mjs")).registerDeprecatedCommands
196
197
  },
197
198
  {
198
199
  names: ["update"],
199
- load: async () => (await import("./update-DDR5XIUB.mjs")).registerUpdateCommand
200
+ load: async () => (await import("./update-EHI5QUXM.mjs")).registerUpdateCommand
200
201
  },
201
202
  {
202
203
  names: ["skills", "skills-auto-sync"],
203
- load: async () => (await import("./skills-AXWAYPBY.mjs")).registerSkillsCommand
204
+ load: async () => (await import("./skills-VU55YFCI.mjs")).registerSkillsCommand
204
205
  },
205
206
  {
206
207
  names: ["setup", "doctor"],
207
- load: async () => (await import("./setup-OGITSLTN.mjs")).registerSetupCommands
208
+ load: async () => (await import("./setup-RHJAHPOR.mjs")).registerSetupCommands
208
209
  },
209
210
  {
210
211
  names: ["quickstart"],
211
- load: async () => (await import("./quickstart-XF3M2M2S.mjs")).registerQuickstartCommands
212
+ load: async () => (await import("./quickstart-ARPLJOLH.mjs")).registerQuickstartCommands
212
213
  }
213
214
  ];
214
215
  async function registerDeeplineCommandGroups(program, requestedCommand) {
@@ -219,7 +220,9 @@ async function registerDeeplineCommandGroups(program, requestedCommand) {
219
220
  for (const register of registrars) register(program);
220
221
  }
221
222
  function registerDeeplineInlineCommands(program) {
222
- const preflight = program.command("preflight").description("Run compact health, auth, and Deepline billing checks.").option("--json", "Force JSON output.");
223
+ const preflight = program.command("preflight").description(
224
+ "Run compact CLI version, health, auth, and Deepline billing checks."
225
+ ).option("--json", "Force JSON output.");
223
226
  const health = program.command("health").description("Check server health.").option("--json", "Force JSON output.").option(
224
227
  "--play-runner",
225
228
  "Run a tiny no-provider play to verify the full play execution plane."
@@ -445,6 +448,7 @@ function resolveCliMaintenancePolicy(input) {
445
448
 
446
449
  // src/cli/index.ts
447
450
  var PREFLIGHT_TIMEOUT_MS = 3e3;
451
+ var AUTH_RECOVERY_COMMAND = "deepline auth register --wait auto";
448
452
  function asCommanderError(error) {
449
453
  if (!(error instanceof Error) || !("code" in error)) {
450
454
  return null;
@@ -532,7 +536,7 @@ async function runPlayRunnerHealthCheck() {
532
536
  });
533
537
  let exitCode = 1;
534
538
  try {
535
- const { handlePlayRun } = await import("./play-WIJGQYTB.mjs");
539
+ const { handlePlayRun } = await import("./play-L7MYJZ65.mjs");
536
540
  exitCode = await handlePlayRun([
537
541
  file,
538
542
  "--input",
@@ -631,8 +635,10 @@ async function runPreflightCheck() {
631
635
  const billingRecord = billing;
632
636
  const balanceDisplay = pickString(billing, "balance_display", "balanceDisplay") ?? `${String(billingRecord.balance ?? 0)} Deepline Credits`;
633
637
  const balanceStatus = pickString(billing, "balance_status", "balanceStatus") ?? "unknown";
638
+ const connected = authStatus === "connected" || authStatus === "claimed";
634
639
  return {
635
- status: healthResult.status === "ok" && (authStatus === "connected" || authStatus === "claimed") ? "ok" : "check",
640
+ status: healthResult.status === "ok" && connected ? "ok" : "check",
641
+ cli_version: SDK_VERSION,
636
642
  host: baseUrl,
637
643
  health: {
638
644
  status: healthResult.status,
@@ -640,7 +646,7 @@ async function runPreflightCheck() {
640
646
  },
641
647
  auth: {
642
648
  status: authStatus,
643
- connected: authStatus === "connected" || authStatus === "claimed",
649
+ connected,
644
650
  org_id: pickString(auth, "org_id", "orgId"),
645
651
  org_name: pickString(auth, "org_name", "orgName"),
646
652
  rate_limit_tier: pickString(auth, "rate_limit_tier", "rateLimitTier"),
@@ -658,10 +664,12 @@ async function runPreflightCheck() {
658
664
  {
659
665
  title: "preflight",
660
666
  lines: [
667
+ `cli: ${SDK_VERSION}`,
661
668
  `host: ${baseUrl}`,
662
669
  `health: ${healthResult.status}`,
663
670
  `auth: ${authStatus}`,
664
- `billing: ${balanceDisplay} (${balanceStatus})`
671
+ `billing: ${balanceDisplay} (${balanceStatus})`,
672
+ ...connected ? [] : [`next: ${AUTH_RECOVERY_COMMAND}`]
665
673
  ]
666
674
  }
667
675
  ]
@@ -879,8 +887,9 @@ Exit codes:
879
887
  "after",
880
888
  `
881
889
  Notes:
882
- Read-only setup check for the configured Deepline host. Shows server health,
883
- auth connection, and customer-visible Deepline balance in one compact command.
890
+ Read-only setup check for the configured Deepline host. Shows the CLI version,
891
+ server health, auth connection, and customer-visible Deepline balance in one
892
+ compact command. When auth is missing it prints the command that connects it.
884
893
 
885
894
  Examples:
886
895
  deepline preflight
@@ -914,7 +923,7 @@ Examples:
914
923
  printJson(data2);
915
924
  return;
916
925
  }
917
- const { DeeplineClient } = await import("./client-JCMSACT4.mjs");
926
+ const { DeeplineClient } = await import("./client-BNLD775D.mjs");
918
927
  const client = new DeeplineClient();
919
928
  const data = await client.health();
920
929
  printJson(data);
@@ -1027,9 +1036,15 @@ Examples:
1027
1036
  process.exitCode = commanderError.code === "commander.unknownCommand" && !wantsJson ? 2 : commanderError.exitCode ?? 1;
1028
1037
  return;
1029
1038
  } else if (wantsJson) {
1030
- printJsonError(error);
1039
+ printJson({
1040
+ ...errorToJsonPayload(error),
1041
+ ...error instanceof AuthError ? { next: AUTH_RECOVERY_COMMAND } : {}
1042
+ });
1031
1043
  } else if (error instanceof Error) {
1032
1044
  console.error(`Error: ${error.message}`);
1045
+ if (error instanceof AuthError) {
1046
+ console.error(`Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`);
1047
+ }
1033
1048
  const providerConcurrency = formatProviderConcurrencyDiagnostic(error);
1034
1049
  if (providerConcurrency) console.error(providerConcurrency);
1035
1050
  } else {
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  registerSessionSendRenderCommands
3
- } from "./chunk-A5SKM3GL.mjs";
3
+ } from "./chunk-SJV5MTOJ.mjs";
4
4
  import {
5
5
  ENRICH_COMMAND_DEPRECATION_MESSAGE
6
6
  } from "./chunk-ITOFSXIU.mjs";
7
7
  import {
8
8
  printCommandEnvelope
9
- } from "./chunk-F45425TB.mjs";
10
- import "./chunk-CCRQ2VGJ.mjs";
9
+ } from "./chunk-EROOAI5G.mjs";
10
+ import "./chunk-FK7PW6BP.mjs";
11
11
  import "./chunk-DLIRSHV6.mjs";
12
- import "./chunk-G5774EFF.mjs";
12
+ import "./chunk-GCNER3HV.mjs";
13
13
  import "./chunk-NXGCO4JB.mjs";
14
14
  import "./chunk-WZYKRD7T.mjs";
15
15
  import "./chunk-KRD6H754.mjs";
@@ -1,15 +1,15 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkTAGHNT5Pjs = require('./chunk-TAGHNT5P.js');
3
+ var _chunkZXGUYTITjs = require('./chunk-ZXGUYTIT.js');
4
4
 
5
5
 
6
6
  var _chunk3XX5TEA4js = require('./chunk-3XX5TEA4.js');
7
7
 
8
8
 
9
- var _chunkUROXKPNDjs = require('./chunk-UROXKPND.js');
10
- require('./chunk-DM3SHV6U.js');
9
+ var _chunkU2N4CYT7js = require('./chunk-U2N4CYT7.js');
10
+ require('./chunk-VDIHLKGG.js');
11
11
  require('./chunk-XNYIZMNQ.js');
12
- require('./chunk-3MXRNPBN.js');
12
+ require('./chunk-AD23W4S5.js');
13
13
  require('./chunk-7P5AA3SN.js');
14
14
  require('./chunk-OG64RBAC.js');
15
15
  require('./chunk-COGTRVWW.js');
@@ -51,7 +51,7 @@ function deprecatedCommandEnvelope(input) {
51
51
  };
52
52
  }
53
53
  function printDeprecatedCommand(input) {
54
- _chunkUROXKPNDjs.printCommandEnvelope.call(void 0, deprecatedCommandEnvelope(input), {
54
+ _chunkU2N4CYT7js.printCommandEnvelope.call(void 0, deprecatedCommandEnvelope(input), {
55
55
  json: input.options.json
56
56
  });
57
57
  process.exitCode = 2;
@@ -71,7 +71,7 @@ function registerDeprecatedCommands(program) {
71
71
  program.command("enrich", { hidden: true }).description("Deprecated CSV enrichment command.").allowUnknownOption(true).allowExcessArguments(true).option("--json", "Emit JSON output").argument("[args...]").addHelpText("after", `
72
72
  ${_chunk3XX5TEA4js.ENRICH_COMMAND_DEPRECATION_MESSAGE}
73
73
  `).action((_args, options) => {
74
- _chunkUROXKPNDjs.printCommandEnvelope.call(void 0,
74
+ _chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
75
75
  {
76
76
  ok: false,
77
77
  command: "deepline enrich",
@@ -114,7 +114,7 @@ Examples:
114
114
  options
115
115
  });
116
116
  });
117
- _chunkTAGHNT5Pjs.registerSessionSendRenderCommands.call(void 0, session, "session");
117
+ _chunkZXGUYTITjs.registerSessionSendRenderCommands.call(void 0, session, "session");
118
118
  for (const subcommand of SESSION_SUBCOMMANDS) {
119
119
  addDeprecatedSubcommand(
120
120
  session,