deepline 0.3.315 → 0.3.317

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 (134) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/sdk/src/runs/overview.ts +17 -10
  3. package/dist/bundling-sources/sdk/src/types.ts +6 -5
  4. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +64 -0
  5. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +217 -488
  6. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +15 -0
  7. package/dist/bundling-sources/shared_libs/play-runtime/execution-capabilities.ts +4 -1
  8. package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +13 -4
  9. package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +1 -0
  10. package/dist/bundling-sources/shared_libs/play-runtime/live-events.ts +31 -0
  11. package/dist/bundling-sources/shared_libs/play-runtime/map-execution-frame.ts +444 -51
  12. package/dist/bundling-sources/shared_libs/play-runtime/run-snapshot-stream.ts +22 -43
  13. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +4 -3
  14. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +136 -87
  15. package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +24 -6
  16. package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +56 -0
  17. package/dist/bundling-sources/shared_libs/play-runtime/runtime-sheet-errors.ts +94 -0
  18. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +2 -0
  19. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-shared.ts +5 -2
  20. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd.ts +20 -11
  21. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +18 -12
  22. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +396 -35
  23. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-dispatch-authority.ts +2 -0
  24. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +123 -19
  25. package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-storage-contract.ts +13 -0
  26. package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +2 -0
  27. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +3 -2
  28. package/dist/cli/auth-XPLGQ2KO.js +31 -0
  29. package/dist/cli/{auth-OVWOO5NP.mjs → auth-YAHBE5WU.mjs} +4 -4
  30. package/dist/cli/{billing-W3OXKWNE.mjs → billing-AY4OS7MR.mjs} +4 -4
  31. package/dist/cli/{billing-SRZL7UOH.js → billing-ORZDEMH2.js} +70 -70
  32. package/dist/cli/{chunk-OJP4FCCX.js → chunk-2FKXFTOF.js} +48 -48
  33. package/dist/cli/{chunk-OJ243ZA5.js → chunk-2HKPAZVJ.js} +1 -1
  34. package/dist/cli/{chunk-LOWURQMF.js → chunk-342BTES3.js} +50 -50
  35. package/dist/cli/{chunk-FGAK6FET.js → chunk-3NRNDPAE.js} +26 -26
  36. package/dist/cli/{chunk-GK67FYMS.mjs → chunk-5BLF3HDM.mjs} +5 -5
  37. package/dist/cli/{chunk-TZ5KUDPP.mjs → chunk-5OFRM64Y.mjs} +1 -1
  38. package/dist/cli/{chunk-US4S3E4Y.mjs → chunk-7PZFGB7L.mjs} +1 -1
  39. package/dist/cli/{chunk-YL42TF53.js → chunk-AMJYFPFK.js} +6 -6
  40. package/dist/cli/{chunk-PPONZ6IE.js → chunk-AW355CLN.js} +15 -15
  41. package/dist/cli/{chunk-TQK662WG.js → chunk-BGBYK2T3.js} +60 -60
  42. package/dist/cli/{chunk-TQ3F77AC.mjs → chunk-CGGM4CE6.mjs} +3 -3
  43. package/dist/cli/{chunk-FTJQO757.mjs → chunk-D5MHSO5T.mjs} +1 -1
  44. package/dist/cli/{chunk-Y42UERUY.js → chunk-DSTUP75H.js} +6 -6
  45. package/dist/cli/{chunk-HNKHMHJ7.mjs → chunk-FRK2AGSG.mjs} +1 -1
  46. package/dist/cli/{chunk-OUIIYFG3.mjs → chunk-GX3WO4M4.mjs} +2 -2
  47. package/dist/cli/{chunk-OYJCNCUW.js → chunk-GYOLWON6.js} +2 -2
  48. package/dist/cli/{chunk-N5V2SBB2.mjs → chunk-KP7W5NO6.mjs} +1 -1
  49. package/dist/cli/{chunk-L5TSFCJ6.mjs → chunk-KXOXXVYJ.mjs} +2 -2
  50. package/dist/cli/{chunk-B473QUQU.mjs → chunk-L6ERGROE.mjs} +4 -4
  51. package/dist/cli/{chunk-R3IFZDJL.mjs → chunk-LI6YPPBR.mjs} +2 -2
  52. package/dist/cli/{chunk-IGE7EJJY.mjs → chunk-NDFBAMVI.mjs} +19 -15
  53. package/dist/cli/{chunk-JF4O5OMH.mjs → chunk-OTI562P3.mjs} +1 -1
  54. package/dist/cli/{chunk-AO4IWPP7.mjs → chunk-PSHIZP3K.mjs} +17 -15
  55. package/dist/cli/{chunk-VYK23G2C.js → chunk-QFKVAUIQ.js} +239 -235
  56. package/dist/cli/{chunk-AZWQJAQF.mjs → chunk-QPKHOZI3.mjs} +1 -1
  57. package/dist/cli/{chunk-URVZGYGG.js → chunk-SUPQQYGY.js} +4 -4
  58. package/dist/cli/{chunk-C5WSTXUB.js → chunk-TJ2V2JA3.js} +537 -535
  59. package/dist/cli/{chunk-6BJACIVK.js → chunk-UGQHYOT4.js} +1 -1
  60. package/dist/cli/{chunk-IALPYID6.js → chunk-XSEMQ4II.js} +3 -3
  61. package/dist/cli/{chunk-SNFSO2AN.js → chunk-Z5NRL7A7.js} +6 -6
  62. package/dist/cli/{client-WQ3J5BSH.mjs → client-QNLVLW54.mjs} +3 -3
  63. package/dist/cli/client-ZW5VAHWD.js +20 -0
  64. package/dist/cli/{csv-36ARCBNQ.mjs → csv-AKZASZP6.mjs} +3 -3
  65. package/dist/cli/{csv-CENMEWDH.js → csv-PW6S3SMJ.js} +12 -12
  66. package/dist/cli/{db-JU7XLKQM.mjs → db-DNF53LDS.mjs} +4 -4
  67. package/dist/cli/{db-6DQZG6NB.js → db-FLDYET2D.js} +20 -20
  68. package/dist/cli/{describe-VUD4AFBY.js → describe-JDAEOCYQ.js} +17 -17
  69. package/dist/cli/{describe-34ALEEFO.mjs → describe-U6RGIFMA.mjs} +10 -10
  70. package/dist/cli/{executions-H2UXS6FP.js → executions-DASCB6LS.js} +6 -6
  71. package/dist/cli/{executions-H66BMN6N.mjs → executions-W6BBU2HN.mjs} +4 -4
  72. package/dist/cli/{feedback-Q7LXXLSH.mjs → feedback-BVWPDWZG.mjs} +3 -3
  73. package/dist/cli/{feedback-YSYFQSAB.js → feedback-N3MBCT4A.js} +6 -6
  74. package/dist/cli/{git-XV43NSWN.mjs → git-4GJOKOLU.mjs} +4 -4
  75. package/dist/cli/git-WVHH3QXQ.js +23 -0
  76. package/dist/cli/index.js +171 -98
  77. package/dist/cli/index.mjs +114 -41
  78. package/dist/cli/{legacy-noops-Z2DTZQN3.mjs → legacy-noops-5XMSV7WL.mjs} +4 -4
  79. package/dist/cli/{legacy-noops-RGDW6SCA.js → legacy-noops-D7C7ZVKK.js} +7 -7
  80. package/dist/cli/{monitors-I75KZ2BP.js → monitors-NYP4LG3K.js} +85 -85
  81. package/dist/cli/{monitors-OFQ56O4S.mjs → monitors-Y4RKWAS5.mjs} +4 -4
  82. package/dist/cli/{org-75AH6RIB.js → org-PYKQMP6F.js} +60 -60
  83. package/dist/cli/{org-ZYMCU6XO.mjs → org-XZ26CUCV.mjs} +4 -4
  84. package/dist/cli/play-BYZCR4PP.js +152 -0
  85. package/dist/cli/{play-BKXM76DV.mjs → play-FYHIYZ3W.mjs} +9 -9
  86. package/dist/cli/{providers-GWG2WFIY.mjs → providers-3UG7NK55.mjs} +4 -4
  87. package/dist/cli/{providers-Z77MM7ID.js → providers-QS5X236G.js} +7 -7
  88. package/dist/cli/{quickstart-I4RECIQC.js → quickstart-GMASUT7T.js} +5 -5
  89. package/dist/cli/{quickstart-BGVIV374.mjs → quickstart-PHHHHHWO.mjs} +3 -3
  90. package/dist/cli/search-52CC3OVI.js +26 -0
  91. package/dist/cli/{search-TIKBP3RE.mjs → search-AVGITJP4.mjs} +5 -5
  92. package/dist/cli/{secrets-SNGRI4KS.js → secrets-HY5E6F6G.js} +13 -13
  93. package/dist/cli/{secrets-YCHKLWKC.mjs → secrets-RBEZRQ6P.mjs} +4 -4
  94. package/dist/cli/{sessions-WXLADGDX.js → sessions-7CDLWLVV.js} +5 -5
  95. package/dist/cli/{sessions-IRDG6ZRX.mjs → sessions-ME5R5FTG.mjs} +4 -4
  96. package/dist/cli/{settings-KZALJDXW.mjs → settings-X4JQLBB6.mjs} +7 -7
  97. package/dist/cli/{settings-72J4BVF6.js → settings-ZCVJPOFP.js} +74 -74
  98. package/dist/cli/{setup-FFB3KLFD.js → setup-DROGU6MC.js} +41 -41
  99. package/dist/cli/{setup-4KCA7ESV.mjs → setup-NEILS2UF.mjs} +6 -6
  100. package/dist/cli/skills-KUV3WWW5.js +28 -0
  101. package/dist/cli/{skills-MQZPYUQ3.mjs → skills-PC57GDXZ.mjs} +4 -4
  102. package/dist/cli/{tools-M3WKRZ5T.mjs → tools-IFJUWQC5.mjs} +6 -6
  103. package/dist/cli/tools-NHDAOQPB.js +38 -0
  104. package/dist/cli/update-DRWQCVXJ.js +28 -0
  105. package/dist/cli/{update-QJMNYGNF.mjs → update-N4HSH2TJ.mjs} +6 -6
  106. package/dist/cli/{workflow-6T2EUFCN.mjs → workflow-2OZBTUU2.mjs} +5 -5
  107. package/dist/cli/{workflow-35UUOZ5E.js → workflow-LP4Z6RF5.js} +15 -15
  108. package/dist/{client-Dh_4Ph1R.d.ts → client-BV68GMPo.d.ts} +7 -6
  109. package/dist/{client-CvpZsBqt.d.mts → client-D9ACjiRC.d.mts} +7 -6
  110. package/dist/{compiler-manifest-wOKNiXpa.d.mts → compiler-manifest-BXcZ4P4W.d.mts} +2 -2
  111. package/dist/{compiler-manifest-wOKNiXpa.d.ts → compiler-manifest-BXcZ4P4W.d.ts} +2 -2
  112. package/dist/index.d.mts +4 -4
  113. package/dist/index.d.ts +4 -4
  114. package/dist/index.js +7 -7
  115. package/dist/index.mjs +4 -4
  116. package/dist/install-integrity.json +82 -82
  117. package/dist/plays/bundle-play-file.d.mts +2 -2
  118. package/dist/plays/bundle-play-file.d.ts +2 -2
  119. package/dist/plays/bundle-play-file.mjs +2 -2
  120. package/dist/plays/run-request.d.mts +2 -2
  121. package/dist/plays/run-request.d.ts +2 -2
  122. package/dist/release.d.mts +1 -1
  123. package/dist/release.d.ts +1 -1
  124. package/dist/release.js +2 -2
  125. package/dist/release.mjs +1 -1
  126. package/package.json +1 -1
  127. package/dist/cli/auth-P2TTZU36.js +0 -31
  128. package/dist/cli/client-CXFPFCIG.js +0 -20
  129. package/dist/cli/git-SYFCYIFP.js +0 -23
  130. package/dist/cli/play-OKXUWPMO.js +0 -152
  131. package/dist/cli/search-3KISUDDT.js +0 -26
  132. package/dist/cli/skills-XGOK4GRW.js +0 -28
  133. package/dist/cli/tools-LEAJ7EPW.js +0 -38
  134. package/dist/cli/update-ZN6LDUHS.js +0 -28
@@ -11,8 +11,8 @@ import {
11
11
  resolveUpdatePlan,
12
12
  runAutomaticUpdatePlan,
13
13
  shouldRunCliAutoUpdate
14
- } from "./chunk-B473QUQU.mjs";
15
- import "./chunk-TZ5KUDPP.mjs";
14
+ } from "./chunk-L6ERGROE.mjs";
15
+ import "./chunk-5OFRM64Y.mjs";
16
16
  import {
17
17
  SDK_COMPATIBILITY_FAST_DEADLINE_MS,
18
18
  SKILLS_AUTO_SYNC_COMMAND,
@@ -25,7 +25,7 @@ import {
25
25
  readTrustedCleanCompatibility,
26
26
  resolveSdkCliFailureExitCode,
27
27
  syncSdkSkillsIfNeeded
28
- } from "./chunk-L5TSFCJ6.mjs";
28
+ } from "./chunk-KXOXXVYJ.mjs";
29
29
  import {
30
30
  recordCliTrace,
31
31
  traceCliSpan
@@ -39,7 +39,7 @@ import {
39
39
  printJson,
40
40
  printJsonError,
41
41
  shouldEmitJson
42
- } from "./chunk-HNKHMHJ7.mjs";
42
+ } from "./chunk-FRK2AGSG.mjs";
43
43
  import {
44
44
  HttpClient,
45
45
  SDK_VERSION,
@@ -47,65 +47,116 @@ import {
47
47
  readSdkSkillsLocalVersion,
48
48
  resolveApiKeyForBaseUrl,
49
49
  resolveConfig
50
- } from "./chunk-AZWQJAQF.mjs";
50
+ } from "./chunk-QPKHOZI3.mjs";
51
51
  import "./chunk-DLIRSHV6.mjs";
52
- import "./chunk-JF4O5OMH.mjs";
52
+ import "./chunk-OTI562P3.mjs";
53
53
  import "./chunk-NXGCO4JB.mjs";
54
54
  import "./chunk-WZYKRD7T.mjs";
55
55
  import "./chunk-KRD6H754.mjs";
56
56
 
57
+ // src/cli/command-invocation.ts
58
+ import { Command, CommanderError } from "commander";
59
+ function parserPolicy(command, name) {
60
+ const value = Object.getOwnPropertyDescriptor(command, name)?.value;
61
+ if (typeof value !== "boolean")
62
+ throw new Error(`Commander parser policy ${name} is unavailable.`);
63
+ return value;
64
+ }
65
+ function inspectCliInvocation(program, argv) {
66
+ let commandPath = "";
67
+ const copy = (source, path) => {
68
+ const target = new Command(source.name()).aliases(source.aliases()).allowUnknownOption(parserPolicy(source, "_allowUnknownOption")).allowExcessArguments(parserPolicy(source, "_allowExcessArguments")).exitOverride().configureOutput({ writeOut: () => {
69
+ }, writeErr: () => {
70
+ } });
71
+ for (const option of source.options) target.addOption(option);
72
+ for (const argument of source.registeredArguments)
73
+ target.addArgument(argument);
74
+ target.hook("preSubcommand", (_parent, child) => {
75
+ commandPath = [...path, child.name()].join(" ");
76
+ });
77
+ if (source.commands.length === 0) {
78
+ target.action(() => {
79
+ commandPath = path.join(" ");
80
+ });
81
+ }
82
+ for (const child of source.commands) {
83
+ target.addCommand(copy(child, [...path, child.name()]));
84
+ }
85
+ return target;
86
+ };
87
+ const grammar = copy(program, []);
88
+ try {
89
+ grammar.parse([...argv], { from: "user" });
90
+ return { commandPath, problem: null };
91
+ } catch (error) {
92
+ if (!(error instanceof CommanderError)) throw error;
93
+ if (error.code === "commander.unknownCommand") {
94
+ const unknown = error.message.match(/unknown command '([^']+)'/);
95
+ if (unknown)
96
+ commandPath = [commandPath, unknown[1]].filter(Boolean).join(" ");
97
+ }
98
+ return {
99
+ commandPath,
100
+ problem: error.exitCode === 0 ? null : {
101
+ code: error.code,
102
+ message: error.message
103
+ }
104
+ };
105
+ }
106
+ }
107
+
57
108
  // src/cli/index.ts
58
109
  import { mkdtemp, rm, writeFile } from "fs/promises";
59
110
  import { join } from "path";
60
111
  import { tmpdir } from "os";
61
- import { Command } from "commander";
112
+ import { Command as Command2 } from "commander";
62
113
 
63
114
  // src/cli/command-registry.ts
64
115
  var COMMAND_GROUPS = [
65
116
  {
66
117
  names: ["auth"],
67
- load: async () => (await import("./auth-OVWOO5NP.mjs")).registerAuthCommands
118
+ load: async () => (await import("./auth-YAHBE5WU.mjs")).registerAuthCommands
68
119
  },
69
120
  {
70
121
  names: ["providers"],
71
- load: async () => (await import("./providers-GWG2WFIY.mjs")).registerProviderCommands
122
+ load: async () => (await import("./providers-3UG7NK55.mjs")).registerProviderCommands
72
123
  },
73
124
  {
74
125
  names: ["search"],
75
- load: async () => (await import("./search-TIKBP3RE.mjs")).registerSearchCommand
126
+ load: async () => (await import("./search-AVGITJP4.mjs")).registerSearchCommand
76
127
  },
77
128
  {
78
129
  names: ["describe"],
79
- load: async () => (await import("./describe-34ALEEFO.mjs")).registerDescribeCommand
130
+ load: async () => (await import("./describe-U6RGIFMA.mjs")).registerDescribeCommand
80
131
  },
81
132
  {
82
133
  names: ["tools"],
83
- load: async () => (await import("./tools-M3WKRZ5T.mjs")).registerToolsCommands
134
+ load: async () => (await import("./tools-IFJUWQC5.mjs")).registerToolsCommands
84
135
  },
85
136
  {
86
137
  names: ["executions"],
87
- load: async () => (await import("./executions-H66BMN6N.mjs")).registerExecutionsCommands
138
+ load: async () => (await import("./executions-W6BBU2HN.mjs")).registerExecutionsCommands
88
139
  },
89
140
  {
90
141
  names: ["plays", "runs"],
91
- load: async () => (await import("./play-BKXM76DV.mjs")).registerPlayCommands
142
+ load: async () => (await import("./play-FYHIYZ3W.mjs")).registerPlayCommands
92
143
  },
93
144
  {
94
145
  names: ["sessions"],
95
- load: async () => (await import("./sessions-IRDG6ZRX.mjs")).registerSessionsCommands
146
+ load: async () => (await import("./sessions-ME5R5FTG.mjs")).registerSessionsCommands
96
147
  },
97
148
  {
98
149
  names: ["workflows"],
99
- load: async () => (await import("./workflow-6T2EUFCN.mjs")).registerWorkflowCommands
150
+ load: async () => (await import("./workflow-2OZBTUU2.mjs")).registerWorkflowCommands
100
151
  },
101
152
  {
102
153
  names: ["secrets"],
103
- load: async () => (await import("./secrets-YCHKLWKC.mjs")).registerSecretsCommands
154
+ load: async () => (await import("./secrets-RBEZRQ6P.mjs")).registerSecretsCommands
104
155
  },
105
156
  {
106
157
  names: ["settings", "notifications"],
107
158
  load: async () => {
108
- const commands = await import("./settings-KZALJDXW.mjs");
159
+ const commands = await import("./settings-X4JQLBB6.mjs");
109
160
  return (p) => {
110
161
  commands.registerSettingsCommands(p);
111
162
  commands.registerNotificationCommands(p);
@@ -114,51 +165,51 @@ var COMMAND_GROUPS = [
114
165
  },
115
166
  {
116
167
  names: ["billing"],
117
- load: async () => (await import("./billing-W3OXKWNE.mjs")).registerBillingCommands
168
+ load: async () => (await import("./billing-AY4OS7MR.mjs")).registerBillingCommands
118
169
  },
119
170
  {
120
171
  names: ["monitors"],
121
- load: async () => (await import("./monitors-OFQ56O4S.mjs")).registerMonitorsCommands
172
+ load: async () => (await import("./monitors-Y4RKWAS5.mjs")).registerMonitorsCommands
122
173
  },
123
174
  {
124
175
  names: ["org"],
125
- load: async () => (await import("./org-ZYMCU6XO.mjs")).registerOrgCommands
176
+ load: async () => (await import("./org-XZ26CUCV.mjs")).registerOrgCommands
126
177
  },
127
178
  {
128
179
  names: ["git", "projects", "deployments"],
129
- load: async () => (await import("./git-XV43NSWN.mjs")).registerGitCommands
180
+ load: async () => (await import("./git-4GJOKOLU.mjs")).registerGitCommands
130
181
  },
131
182
  {
132
183
  names: ["csv"],
133
- load: async () => (await import("./csv-36ARCBNQ.mjs")).registerCsvCommands
184
+ load: async () => (await import("./csv-AKZASZP6.mjs")).registerCsvCommands
134
185
  },
135
186
  {
136
187
  names: ["db"],
137
- load: async () => (await import("./db-JU7XLKQM.mjs")).registerDbCommands
188
+ load: async () => (await import("./db-DNF53LDS.mjs")).registerDbCommands
138
189
  },
139
190
  {
140
191
  names: ["feedback"],
141
- load: async () => (await import("./feedback-Q7LXXLSH.mjs")).registerFeedbackCommands
192
+ load: async () => (await import("./feedback-BVWPDWZG.mjs")).registerFeedbackCommands
142
193
  },
143
194
  {
144
195
  names: ["enrich", "session", "backend"],
145
- load: async () => (await import("./legacy-noops-Z2DTZQN3.mjs")).registerDeprecatedCommands
196
+ load: async () => (await import("./legacy-noops-5XMSV7WL.mjs")).registerDeprecatedCommands
146
197
  },
147
198
  {
148
199
  names: ["update"],
149
- load: async () => (await import("./update-QJMNYGNF.mjs")).registerUpdateCommand
200
+ load: async () => (await import("./update-N4HSH2TJ.mjs")).registerUpdateCommand
150
201
  },
151
202
  {
152
203
  names: ["skills", "skills-auto-sync"],
153
- load: async () => (await import("./skills-MQZPYUQ3.mjs")).registerSkillsCommand
204
+ load: async () => (await import("./skills-PC57GDXZ.mjs")).registerSkillsCommand
154
205
  },
155
206
  {
156
207
  names: ["setup", "doctor"],
157
- load: async () => (await import("./setup-4KCA7ESV.mjs")).registerSetupCommands
208
+ load: async () => (await import("./setup-NEILS2UF.mjs")).registerSetupCommands
158
209
  },
159
210
  {
160
211
  names: ["quickstart"],
161
- load: async () => (await import("./quickstart-BGVIV374.mjs")).registerQuickstartCommands
212
+ load: async () => (await import("./quickstart-PHHHHHWO.mjs")).registerQuickstartCommands
162
213
  }
163
214
  ];
164
215
  async function registerDeeplineCommandGroups(program, requestedCommand) {
@@ -168,6 +219,15 @@ async function registerDeeplineCommandGroups(program, requestedCommand) {
168
219
  const registrars = await Promise.all(groups.map((group) => group.load()));
169
220
  for (const register of registrars) register(program);
170
221
  }
222
+ function registerDeeplineInlineCommands(program) {
223
+ const preflight = program.command("preflight").description("Run compact health, auth, and Deepline billing checks.").option("--json", "Force JSON output.");
224
+ const health = program.command("health").description("Check server health.").option("--json", "Force JSON output.").option(
225
+ "--play-runner",
226
+ "Run a tiny no-provider play to verify the full play execution plane."
227
+ );
228
+ const version = program.command("version").description("Show version.").option("--json", "Emit JSON output");
229
+ return { preflight, health, version };
230
+ }
171
231
 
172
232
  // src/cli/self-update.ts
173
233
  import { spawn } from "child_process";
@@ -461,7 +521,7 @@ async function runPlayRunnerHealthCheck() {
461
521
  });
462
522
  let exitCode = 1;
463
523
  try {
464
- const { handlePlayRun } = await import("./play-BKXM76DV.mjs");
524
+ const { handlePlayRun } = await import("./play-FYHIYZ3W.mjs");
465
525
  exitCode = await handlePlayRun([
466
526
  file,
467
527
  "--input",
@@ -645,7 +705,7 @@ async function runMain(ensureTransport) {
645
705
  if (printStartupPhase) {
646
706
  progress?.phase("loading deepline cli");
647
707
  }
648
- const program = new Command();
708
+ const program = new Command2();
649
709
  program.name("deepline").description(
650
710
  "Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
651
711
  ).version(SDK_VERSION, "-v, --version", "Show version").exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
@@ -796,7 +856,8 @@ Exit codes:
796
856
  program,
797
857
  !requestedCommand || requestedCommand === "help" || requestedCommand.startsWith("-") && !["-v", "--version"].includes(requestedCommand) ? void 0 : requestedCommand
798
858
  );
799
- program.command("preflight").description("Run compact health, auth, and Deepline billing checks.").option("--json", "Force JSON output.").addHelpText(
859
+ const { preflight, health, version } = registerDeeplineInlineCommands(program);
860
+ preflight.addHelpText(
800
861
  "after",
801
862
  `
802
863
  Notes:
@@ -815,10 +876,7 @@ Examples:
815
876
  printPreflightHuman(data);
816
877
  }
817
878
  });
818
- program.command("health").description("Check server health.").option("--json", "Force JSON output.").option(
819
- "--play-runner",
820
- "Run a tiny no-provider play to verify the full play execution plane."
821
- ).addHelpText(
879
+ health.addHelpText(
822
880
  "after",
823
881
  `
824
882
  Notes:
@@ -838,7 +896,7 @@ Examples:
838
896
  printJson(data2);
839
897
  return;
840
898
  }
841
- const { DeeplineClient } = await import("./client-WQ3J5BSH.mjs");
899
+ const { DeeplineClient } = await import("./client-QNLVLW54.mjs");
842
900
  const client = new DeeplineClient();
843
901
  const data = await client.health();
844
902
  printJson(data);
@@ -848,7 +906,7 @@ Examples:
848
906
  );
849
907
  }
850
908
  });
851
- program.command("version").description("Show version.").addHelpText(
909
+ version.addHelpText(
852
910
  "after",
853
911
  `
854
912
  Notes:
@@ -860,7 +918,7 @@ Examples:
860
918
  deepline version --json
861
919
  deepline --version
862
920
  `
863
- ).option("--json", "Emit JSON output").action((options) => {
921
+ ).action((options) => {
864
922
  if (options.json) {
865
923
  printCompactJson({ version: SDK_VERSION });
866
924
  return;
@@ -931,7 +989,22 @@ Examples:
931
989
  progress?.fail();
932
990
  const wantsJson = process.argv.includes("--json");
933
991
  if (commanderError) {
934
- if (commanderError.code === "commander.unknownCommand") {
992
+ if ([
993
+ "commander.unknownCommand",
994
+ "commander.unknownOption",
995
+ "commander.excessArguments"
996
+ ].includes(commanderError.code)) {
997
+ const invocation = inspectCliInvocation(program, process.argv.slice(2));
998
+ const commandPath = invocation.commandPath || requestedTopLevelCommand;
999
+ await ensureTransport();
1000
+ const versionHint = await newerCliCommandHint(
1001
+ autoDetectBaseUrl(),
1002
+ commandPath
1003
+ );
1004
+ if (versionHint) console.error(versionHint);
1005
+ console.error(
1006
+ `Check this installation's grammar: deepline ${commandPath} --help`
1007
+ );
935
1008
  }
936
1009
  process.exitCode = commanderError.code === "commander.unknownCommand" && !wantsJson ? 2 : commanderError.exitCode ?? 1;
937
1010
  return;
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  registerSessionSendRenderCommands
3
- } from "./chunk-FTJQO757.mjs";
3
+ } from "./chunk-D5MHSO5T.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-HNKHMHJ7.mjs";
10
- import "./chunk-AZWQJAQF.mjs";
9
+ } from "./chunk-FRK2AGSG.mjs";
10
+ import "./chunk-QPKHOZI3.mjs";
11
11
  import "./chunk-DLIRSHV6.mjs";
12
- import "./chunk-JF4O5OMH.mjs";
12
+ import "./chunk-OTI562P3.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 _chunkSNFSO2ANjs = require('./chunk-SNFSO2AN.js');
3
+ var _chunkZ5NRL7A7js = require('./chunk-Z5NRL7A7.js');
4
4
 
5
5
 
6
6
  var _chunk3XX5TEA4js = require('./chunk-3XX5TEA4.js');
7
7
 
8
8
 
9
- var _chunkY42UERUYjs = require('./chunk-Y42UERUY.js');
10
- require('./chunk-URVZGYGG.js');
9
+ var _chunkDSTUP75Hjs = require('./chunk-DSTUP75H.js');
10
+ require('./chunk-SUPQQYGY.js');
11
11
  require('./chunk-XNYIZMNQ.js');
12
- require('./chunk-6BJACIVK.js');
12
+ require('./chunk-UGQHYOT4.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
- _chunkY42UERUYjs.printCommandEnvelope.call(void 0, deprecatedCommandEnvelope(input), {
54
+ _chunkDSTUP75Hjs.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
- _chunkY42UERUYjs.printCommandEnvelope.call(void 0,
74
+ _chunkDSTUP75Hjs.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
- _chunkSNFSO2ANjs.registerSessionSendRenderCommands.call(void 0, session, "session");
117
+ _chunkZ5NRL7A7js.registerSessionSendRenderCommands.call(void 0, session, "session");
118
118
  for (const subcommand of SESSION_SUBCOMMANDS) {
119
119
  addDeprecatedSubcommand(
120
120
  session,