deepline 0.3.458 → 0.3.459
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.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +0 -18
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +2 -0
- package/dist/cli/{auth-APD43NYT.mjs → auth-2RM2ZC6E.mjs} +4 -4
- package/dist/cli/auth-EAFWPDJG.js +40 -0
- package/dist/cli/{billing-TI4YOWAJ.js → billing-4BZABEOA.js} +73 -73
- package/dist/cli/{billing-QW4K272E.mjs → billing-FYF2GJ25.mjs} +4 -4
- package/dist/cli/{chunk-XI6AZJPO.js → chunk-2JSVKNLG.js} +3 -3
- package/dist/cli/{chunk-V6BEYE35.mjs → chunk-4EBJNT5C.mjs} +2 -2
- package/dist/cli/{chunk-W3OAT72T.js → chunk-5KC7RLJO.js} +6 -6
- package/dist/cli/{chunk-VYLWKTDQ.mjs → chunk-5WGW57KC.mjs} +3 -3
- package/dist/cli/{chunk-U5O5TZC2.mjs → chunk-7AGGDRNR.mjs} +1 -1
- package/dist/cli/{chunk-5KO62ZXQ.mjs → chunk-7DFM5YLL.mjs} +4 -4
- package/dist/cli/{chunk-7M6C4STX.js → chunk-ACCQ5OM7.js} +16 -16
- package/dist/cli/{chunk-4TWDW7PI.mjs → chunk-BIPMJKLI.mjs} +5 -5
- package/dist/cli/{chunk-K6IHE6R5.js → chunk-FBMVFOD7.js} +8 -8
- package/dist/cli/{chunk-JIDT3SCM.js → chunk-FFUQFRKZ.js} +20 -20
- package/dist/cli/{chunk-CF2GXP2O.js → chunk-FPPCTKV6.js} +2 -2
- package/dist/cli/{chunk-X3ZRKA3V.mjs → chunk-HU7JG4RL.mjs} +1 -1
- package/dist/cli/{chunk-AJQUFGTJ.js → chunk-HUVI6EBF.js} +1 -1
- package/dist/cli/{chunk-LJDJ5GPR.js → chunk-JOSOQJ5P.js} +51 -51
- package/dist/cli/{chunk-6FLTFNAY.js → chunk-KB4XJRQW.js} +8 -8
- package/dist/cli/{chunk-6UJJZWT2.mjs → chunk-KDDB5S6E.mjs} +3 -3
- package/dist/cli/{chunk-L27PA5GT.js → chunk-LGOI2BRX.js} +10 -10
- package/dist/cli/{chunk-OTN6GV74.mjs → chunk-LSJYTDEK.mjs} +1 -1
- package/dist/cli/{chunk-LZUXLXL3.mjs → chunk-MHMRLS7W.mjs} +3 -3
- package/dist/cli/{chunk-EMIR3EXE.mjs → chunk-MNNMPS6J.mjs} +1 -1
- package/dist/cli/{chunk-MNEN3RYE.mjs → chunk-NLRKZJZF.mjs} +2 -2
- package/dist/cli/{chunk-ZLL345RP.mjs → chunk-OD236M42.mjs} +2 -2
- package/dist/cli/{chunk-ECS3KXM7.mjs → chunk-OQW2YP3P.mjs} +1 -1
- package/dist/cli/{chunk-ECVZUWRR.js → chunk-OY4JQBJG.js} +2 -2
- package/dist/cli/{chunk-XBVZ35XJ.js → chunk-PI65FBEA.js} +81 -81
- package/dist/cli/{chunk-HJ5WE6S5.mjs → chunk-RLQDDJZZ.mjs} +1 -1
- package/dist/cli/{chunk-NDODDIEC.js → chunk-S5TTNBEZ.js} +35 -35
- package/dist/cli/{chunk-EO7WQN5X.mjs → chunk-SOUQUQQE.mjs} +8 -8
- package/dist/cli/{chunk-2A63IJ2J.js → chunk-U3VAYRUL.js} +6 -6
- package/dist/cli/{chunk-NXVHTBBS.js → chunk-UIKSAVAE.js} +26 -26
- package/dist/cli/{chunk-DHERSOIG.js → chunk-VLJXYDGZ.js} +4 -4
- package/dist/cli/{chunk-7MZQ64FI.mjs → chunk-Y35FCRLQ.mjs} +1 -1
- package/dist/cli/{chunk-AA2DMXBN.js → chunk-Z4YO4J4J.js} +50 -50
- package/dist/cli/{chunk-GFGBHE43.mjs → chunk-ZAJAGMXA.mjs} +2 -2
- package/dist/cli/{csv-NIKB3RQX.js → csv-LRIV3RXE.js} +12 -12
- package/dist/cli/{csv-VOX5XXBB.mjs → csv-SDVEU3O5.mjs} +3 -3
- package/dist/cli/{db-ZH2NUZ3F.js → db-JS4OEDNY.js} +25 -25
- package/dist/cli/{db-GETE5AIV.mjs → db-NHYULZTM.mjs} +4 -4
- package/dist/cli/{describe-LWGEU6IE.mjs → describe-H5F72Q3S.mjs} +13 -13
- package/dist/cli/{describe-JZ6QOTPY.js → describe-ZFKCZHOJ.js} +17 -17
- package/dist/cli/{executions-DUMCTK4E.mjs → executions-25YKX4K3.mjs} +4 -4
- package/dist/cli/{executions-CEVMJ4QY.js → executions-QPAKZTNQ.js} +6 -6
- package/dist/cli/{feedback-VI4N44TJ.js → feedback-O63Z5O2R.js} +7 -7
- package/dist/cli/{feedback-UEYC3V3O.mjs → feedback-Z3BES6L6.mjs} +3 -3
- package/dist/cli/git-KSRP3PNB.js +24 -0
- package/dist/cli/{git-BOMW65V5.mjs → git-V7S3IBLO.mjs} +4 -4
- package/dist/cli/index.js +132 -132
- package/dist/cli/index.mjs +37 -37
- package/dist/cli/{legacy-noops-33X26VLN.mjs → legacy-noops-VRT5WZ5I.mjs} +4 -4
- package/dist/cli/{legacy-noops-SWPSUKTD.js → legacy-noops-ZLLYEGQ6.js} +7 -7
- package/dist/cli/{monitors-465GCZ73.mjs → monitors-44KSWY3M.mjs} +5 -5
- package/dist/cli/{monitors-6HMDLDKU.js → monitors-T7FKIDDY.js} +89 -89
- package/dist/cli/{org-CAAOHGTM.mjs → org-BZE4CGIT.mjs} +4 -4
- package/dist/cli/{org-JFQ4QBHQ.js → org-KPPG2KY4.js} +66 -66
- package/dist/cli/{play-NJP6HIQD.mjs → play-CHTP4NKR.mjs} +11 -11
- package/dist/cli/{play-UKD4KR4K.js → play-M5P74N3E.js} +284 -284
- package/dist/cli/{providers-UVHTTSKV.mjs → providers-CGLPOOXA.mjs} +4 -4
- package/dist/cli/{providers-YTRBZARB.js → providers-L3PK7NHU.js} +7 -7
- package/dist/cli/{quickstart-3GXVHJRL.js → quickstart-LJ7HELWE.js} +5 -5
- package/dist/cli/{quickstart-CB3TQ5L2.mjs → quickstart-NWG35AKK.mjs} +3 -3
- package/dist/cli/{search-NXA6526R.mjs → search-723TVSNC.mjs} +5 -5
- package/dist/cli/search-PESQULBG.js +30 -0
- package/dist/cli/{secrets-JFJK2X2N.mjs → secrets-ONN3Z5Y6.mjs} +4 -4
- package/dist/cli/{secrets-E3Y6YDKR.js → secrets-SVSSLPWB.js} +13 -13
- package/dist/cli/{sessions-HAZJLQQL.mjs → sessions-3KAEYQ3U.mjs} +4 -4
- package/dist/cli/{sessions-NKLP6TVY.js → sessions-7LYPPYUY.js} +5 -5
- package/dist/cli/{settings-BSD4DW4O.mjs → settings-2CBJI7FY.mjs} +9 -9
- package/dist/cli/{settings-D4LEZOEW.js → settings-JGJZO7EX.js} +76 -76
- package/dist/cli/{setup-KMZ4EFDK.js → setup-AIAOO7R4.js} +43 -43
- package/dist/cli/{setup-QO64H6YO.mjs → setup-BJCBDH34.mjs} +8 -8
- package/dist/cli/{skills-YLAH2YNN.mjs → skills-7QSQPQXX.mjs} +6 -6
- package/dist/cli/skills-WECIGARR.js +30 -0
- package/dist/cli/tools-HTEMYXT2.js +45 -0
- package/dist/cli/{tools-KGQ76YQE.mjs → tools-I7LYXHDR.mjs} +13 -13
- package/dist/cli/update-J4LSPXHD.js +32 -0
- package/dist/cli/{update-JXUSVBH7.mjs → update-LKY5OJ56.mjs} +8 -8
- package/dist/cli/{workflow-NYWZWN5Z.mjs → workflow-DD32BU7Y.mjs} +5 -5
- package/dist/cli/{workflow-YTXY76FN.js → workflow-Y4HGE7MB.js} +15 -15
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +80 -80
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-4CBIXFOR.js +0 -40
- package/dist/cli/git-QISWQQM3.js +0 -24
- package/dist/cli/search-YM4ATHTV.js +0 -30
- package/dist/cli/skills-T5VTI2LZ.js +0 -30
- package/dist/cli/tools-M574OF4H.js +0 -45
- package/dist/cli/update-WNG5DNNO.js +0 -32
package/dist/cli/index.js
CHANGED
|
@@ -7,20 +7,20 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
10
|
+
var _chunkFFUQFRKZjs = require('./chunk-FFUQFRKZ.js');
|
|
11
|
+
require('./chunk-ACCQ5OM7.js');
|
|
12
|
+
require('./chunk-OY4JQBJG.js');
|
|
13
|
+
require('./chunk-S5TTNBEZ.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunk5KC7RLJOjs = require('./chunk-5KC7RLJO.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkFPPCTKV6js = require('./chunk-FPPCTKV6.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -38,10 +38,10 @@ var _chunkCF2GXP2Ojs = require('./chunk-CF2GXP2O.js');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkJOSOQJ5Pjs = require('./chunk-JOSOQJ5P.js');
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunk2JSVKNLGjs = require('./chunk-2JSVKNLG.js');
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
@@ -54,7 +54,7 @@ var _chunkXI6AZJPOjs = require('./chunk-XI6AZJPO.js');
|
|
|
54
54
|
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
var
|
|
57
|
+
var _chunkU3VAYRULjs = require('./chunk-U3VAYRUL.js');
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
@@ -64,13 +64,13 @@ var _chunk2A63IJ2Jjs = require('./chunk-2A63IJ2J.js');
|
|
|
64
64
|
|
|
65
65
|
|
|
66
66
|
|
|
67
|
-
var
|
|
67
|
+
var _chunkVLJXYDGZjs = require('./chunk-VLJXYDGZ.js');
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
71
71
|
require('./chunk-XNYIZMNQ.js');
|
|
72
72
|
require('./chunk-DIAWYWT5.js');
|
|
73
|
-
require('./chunk-
|
|
73
|
+
require('./chunk-HUVI6EBF.js');
|
|
74
74
|
require('./chunk-OG64RBAC.js');
|
|
75
75
|
|
|
76
76
|
|
|
@@ -140,48 +140,48 @@ var _os = require('os');
|
|
|
140
140
|
var COMMAND_GROUPS = [
|
|
141
141
|
{
|
|
142
142
|
names: ["auth"],
|
|
143
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
143
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-EAFWPDJG.js")))).registerAuthCommands
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
146
|
names: ["providers"],
|
|
147
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-
|
|
147
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-L3PK7NHU.js")))).registerProviderCommands
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
names: ["search"],
|
|
151
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-
|
|
151
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-PESQULBG.js")))).registerSearchCommand
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
154
|
names: ["describe"],
|
|
155
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
155
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-ZFKCZHOJ.js")))).registerDescribeCommand
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
158
|
names: ["tools"],
|
|
159
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
159
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-HTEMYXT2.js")))).registerToolsCommands
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
162
|
names: ["executions"],
|
|
163
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-
|
|
163
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-QPAKZTNQ.js")))).registerExecutionsCommands
|
|
164
164
|
},
|
|
165
165
|
{
|
|
166
166
|
names: ["plays", "runs"],
|
|
167
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
167
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-M5P74N3E.js")))).registerPlayCommands
|
|
168
168
|
},
|
|
169
169
|
{
|
|
170
170
|
names: ["sessions"],
|
|
171
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-
|
|
171
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-7LYPPYUY.js")))).registerSessionsCommands
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
174
|
names: ["workflows"],
|
|
175
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-
|
|
175
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-Y4HGE7MB.js")))).registerWorkflowCommands
|
|
176
176
|
},
|
|
177
177
|
{
|
|
178
178
|
names: ["secrets"],
|
|
179
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-
|
|
179
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-SVSSLPWB.js")))).registerSecretsCommands
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
182
|
names: ["settings", "notifications"],
|
|
183
183
|
load: async () => {
|
|
184
|
-
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-
|
|
184
|
+
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-JGJZO7EX.js")));
|
|
185
185
|
return (p) => {
|
|
186
186
|
commands.registerSettingsCommands(p);
|
|
187
187
|
commands.registerNotificationCommands(p);
|
|
@@ -190,51 +190,51 @@ var COMMAND_GROUPS = [
|
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
192
|
names: ["billing"],
|
|
193
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-
|
|
193
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-4BZABEOA.js")))).registerBillingCommands
|
|
194
194
|
},
|
|
195
195
|
{
|
|
196
196
|
names: ["monitors"],
|
|
197
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-
|
|
197
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-T7FKIDDY.js")))).registerMonitorsCommands
|
|
198
198
|
},
|
|
199
199
|
{
|
|
200
200
|
names: ["org"],
|
|
201
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-
|
|
201
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-KPPG2KY4.js")))).registerOrgCommands
|
|
202
202
|
},
|
|
203
203
|
{
|
|
204
204
|
names: ["git", "projects", "deployments"],
|
|
205
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-
|
|
205
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-KSRP3PNB.js")))).registerGitCommands
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
208
|
names: ["csv"],
|
|
209
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-
|
|
209
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-LRIV3RXE.js")))).registerCsvCommands
|
|
210
210
|
},
|
|
211
211
|
{
|
|
212
212
|
names: ["db"],
|
|
213
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-
|
|
213
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-JS4OEDNY.js")))).registerDbCommands
|
|
214
214
|
},
|
|
215
215
|
{
|
|
216
216
|
names: ["feedback"],
|
|
217
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-
|
|
217
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-O63Z5O2R.js")))).registerFeedbackCommands
|
|
218
218
|
},
|
|
219
219
|
{
|
|
220
220
|
names: ["enrich", "session", "backend"],
|
|
221
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-
|
|
221
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-ZLLYEGQ6.js")))).registerDeprecatedCommands
|
|
222
222
|
},
|
|
223
223
|
{
|
|
224
224
|
names: ["update"],
|
|
225
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-
|
|
225
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-J4LSPXHD.js")))).registerUpdateCommand
|
|
226
226
|
},
|
|
227
227
|
{
|
|
228
228
|
names: ["skills", "skills-auto-sync"],
|
|
229
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-
|
|
229
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-WECIGARR.js")))).registerSkillsCommand
|
|
230
230
|
},
|
|
231
231
|
{
|
|
232
232
|
names: ["setup", "doctor"],
|
|
233
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-
|
|
233
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-AIAOO7R4.js")))).registerSetupCommands
|
|
234
234
|
},
|
|
235
235
|
{
|
|
236
236
|
names: ["quickstart"],
|
|
237
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-
|
|
237
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-LJ7HELWE.js")))).registerQuickstartCommands
|
|
238
238
|
}
|
|
239
239
|
];
|
|
240
240
|
async function registerDeeplineCommandGroups(program, requestedCommand) {
|
|
@@ -260,25 +260,25 @@ function registerDeeplineInlineCommands(program) {
|
|
|
260
260
|
function createDeferredPlayRunMaintenance(input) {
|
|
261
261
|
return async () => {
|
|
262
262
|
try {
|
|
263
|
-
const skillsVersion =
|
|
264
|
-
const compatibility = await
|
|
263
|
+
const skillsVersion = _chunkVLJXYDGZjs.readSdkSkillsLocalVersion.call(void 0, input.baseUrl);
|
|
264
|
+
const compatibility = await _chunkFPPCTKV6js.traceCliSpan.call(void 0,
|
|
265
265
|
"cli.sdk_compatibility_deferred",
|
|
266
266
|
{
|
|
267
267
|
baseUrl: input.baseUrl,
|
|
268
268
|
command: "plays run",
|
|
269
269
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
270
270
|
},
|
|
271
|
-
() =>
|
|
271
|
+
() => _chunkJOSOQJ5Pjs.checkSdkCompatibility.call(void 0, input.baseUrl, {
|
|
272
272
|
command: "plays run",
|
|
273
273
|
skillsVersion,
|
|
274
274
|
persistCache: input.policy !== "off",
|
|
275
|
-
catalog:
|
|
275
|
+
catalog: _chunkFFUQFRKZjs.compatibilityCatalog.call(void 0, input.command)
|
|
276
276
|
})
|
|
277
277
|
);
|
|
278
278
|
if (compatibility.error || !compatibility.response) return;
|
|
279
279
|
const automaticUpdate = compatibility.response.auto_update;
|
|
280
280
|
if (_optionalChain([automaticUpdate, 'optionalAccess', _4 => _4.should_auto_update]) && !automaticUpdate.required && automaticUpdate.reason !== "rollback_forced") {
|
|
281
|
-
await
|
|
281
|
+
await _chunkFFUQFRKZjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
282
282
|
compatibility.response,
|
|
283
283
|
input.baseUrl,
|
|
284
284
|
input.policy
|
|
@@ -288,7 +288,7 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
288
288
|
compatibility.response,
|
|
289
289
|
"skills"
|
|
290
290
|
) ? _nullishCoalesce(compatibility.response.skills, () => ( null)) : void 0;
|
|
291
|
-
await
|
|
291
|
+
await _chunkJOSOQJ5Pjs.syncSdkSkillsIfNeeded.call(void 0, input.baseUrl, {
|
|
292
292
|
update: skillsUpdate,
|
|
293
293
|
mode: "detached"
|
|
294
294
|
});
|
|
@@ -316,7 +316,7 @@ var MAX_SESSIONS = 20;
|
|
|
316
316
|
function helpSeenPath(homeDir = _os.homedir.call(void 0, )) {
|
|
317
317
|
return _path.join.call(void 0, homeDir, ".local", "deepline", "sdk-cli", "help-seen.json");
|
|
318
318
|
}
|
|
319
|
-
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId =
|
|
319
|
+
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId = _chunkVLJXYDGZjs.agentSessionIdFromEnvironment.call(void 0, )) {
|
|
320
320
|
const explicit = _chunkNMJ4D2WOjs.helpDetailFromArgv.call(void 0, argv);
|
|
321
321
|
if (explicit === "quiet") return { detail: "quiet", firstRead: false };
|
|
322
322
|
if (!sessionId) return { detail: explicit, firstRead: false };
|
|
@@ -414,7 +414,7 @@ function shouldReport(stdout, stderr) {
|
|
|
414
414
|
}
|
|
415
415
|
function toolName(action) {
|
|
416
416
|
const [toolId] = _optionalChain([action, 'optionalAccess', _5 => _5.path]) === "tools execute" ? action.args : [];
|
|
417
|
-
return typeof toolId === "string" ?
|
|
417
|
+
return typeof toolId === "string" ? _chunkJOSOQJ5Pjs.redactFailureText.call(void 0, toolId) : null;
|
|
418
418
|
}
|
|
419
419
|
function chunkText(chunk) {
|
|
420
420
|
if (typeof chunk === "string") return chunk;
|
|
@@ -445,14 +445,14 @@ function watch(stream) {
|
|
|
445
445
|
}
|
|
446
446
|
async function postCommandOutput(body) {
|
|
447
447
|
try {
|
|
448
|
-
const baseUrl =
|
|
449
|
-
const apiKey =
|
|
448
|
+
const baseUrl = _chunkVLJXYDGZjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
449
|
+
const apiKey = _chunkVLJXYDGZjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
450
450
|
if (!apiKey) return;
|
|
451
|
-
const agentSessionId =
|
|
451
|
+
const agentSessionId = _chunkVLJXYDGZjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
452
452
|
await fetch(new URL("/api/v2/telemetry/command-output", baseUrl), {
|
|
453
453
|
method: "POST",
|
|
454
454
|
headers: {
|
|
455
|
-
...
|
|
455
|
+
..._chunkJOSOQJ5Pjs.failureReportHeaders.call(void 0, apiKey),
|
|
456
456
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {}
|
|
457
457
|
},
|
|
458
458
|
body: JSON.stringify(body),
|
|
@@ -468,14 +468,14 @@ function startOutputSizeReporting(invocation, streams = {
|
|
|
468
468
|
const stdoutWatch = watch(streams.stdout);
|
|
469
469
|
const stderrWatch = watch(streams.stderr);
|
|
470
470
|
return async (finished) => {
|
|
471
|
-
if (
|
|
471
|
+
if (_chunkJOSOQJ5Pjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
472
472
|
const [stdout, stderr] = await Promise.all([
|
|
473
473
|
stdoutWatch.settled(),
|
|
474
474
|
stderrWatch.settled()
|
|
475
475
|
]);
|
|
476
476
|
if (!shouldReport(stdout, stderr)) return;
|
|
477
477
|
await postCommandOutput({
|
|
478
|
-
command:
|
|
478
|
+
command: _chunkJOSOQJ5Pjs.sanitizeCommand.call(void 0, invocation.argv),
|
|
479
479
|
tool: toolName(finished.action),
|
|
480
480
|
exit_code: typeof finished.exitCode === "number" ? finished.exitCode : null,
|
|
481
481
|
duration_ms: Math.max(0, Date.now() - invocation.startedAtMs),
|
|
@@ -506,7 +506,7 @@ function silenceCommanderErrorOutput(command) {
|
|
|
506
506
|
function printUsageErrorJson(code, message, commandPath) {
|
|
507
507
|
const unknownName = code === "commander.unknownCommand" ? _optionalChain([/unknown command '([^']+)'/, 'access', _6 => _6.exec, 'call', _7 => _7(message), 'optionalAccess', _8 => _8[1]]) : void 0;
|
|
508
508
|
const helpPath = unknownName && commandPath.endsWith(` ${unknownName}`) ? commandPath.slice(0, -unknownName.length - 1) : commandPath;
|
|
509
|
-
|
|
509
|
+
_chunkU3VAYRULjs.printJson.call(void 0, {
|
|
510
510
|
ok: false,
|
|
511
511
|
error: {
|
|
512
512
|
code,
|
|
@@ -568,7 +568,7 @@ function topLevelCommandKnown(program, commandName) {
|
|
|
568
568
|
);
|
|
569
569
|
}
|
|
570
570
|
async function runPlayRunnerHealthCheck() {
|
|
571
|
-
|
|
571
|
+
_chunkVLJXYDGZjs.resolveConfig.call(void 0, );
|
|
572
572
|
const dir = await _promises.mkdtemp.call(void 0, _path.join.call(void 0, _os.tmpdir.call(void 0, ), "deepline-health-play-"));
|
|
573
573
|
const file = _path.join.call(void 0, dir, "health-check.play.ts");
|
|
574
574
|
try {
|
|
@@ -598,7 +598,7 @@ async function runPlayRunnerHealthCheck() {
|
|
|
598
598
|
});
|
|
599
599
|
let exitCode = 1;
|
|
600
600
|
try {
|
|
601
|
-
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
601
|
+
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-M5P74N3E.js")));
|
|
602
602
|
exitCode = await handlePlayRun([
|
|
603
603
|
file,
|
|
604
604
|
"--input",
|
|
@@ -638,7 +638,7 @@ function preflightErrorMessage(error) {
|
|
|
638
638
|
return error instanceof Error ? error.message : String(error);
|
|
639
639
|
}
|
|
640
640
|
async function runPreflightCheck() {
|
|
641
|
-
const baseUrl =
|
|
641
|
+
const baseUrl = _chunkVLJXYDGZjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
642
642
|
const healthController = new AbortController();
|
|
643
643
|
const healthTimeout = setTimeout(
|
|
644
644
|
() => healthController.abort(),
|
|
@@ -653,9 +653,9 @@ async function runPreflightCheck() {
|
|
|
653
653
|
version: pickString(payload, "version")
|
|
654
654
|
};
|
|
655
655
|
}).catch(() => ({ status: "unreachable", version: null })).finally(() => clearTimeout(healthTimeout));
|
|
656
|
-
const apiKey =
|
|
657
|
-
const http = apiKey ? new (0,
|
|
658
|
-
|
|
656
|
+
const apiKey = _chunkVLJXYDGZjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
657
|
+
const http = apiKey ? new (0, _chunkVLJXYDGZjs.HttpClient)(
|
|
658
|
+
_chunkVLJXYDGZjs.resolveConfig.call(void 0, {
|
|
659
659
|
baseUrl,
|
|
660
660
|
apiKey,
|
|
661
661
|
timeout: PREFLIGHT_TIMEOUT_MS,
|
|
@@ -700,7 +700,7 @@ async function runPreflightCheck() {
|
|
|
700
700
|
const connected = authStatus === "connected" || authStatus === "claimed";
|
|
701
701
|
return {
|
|
702
702
|
status: healthResult.status === "ok" && connected ? "ok" : "check",
|
|
703
|
-
cli_version:
|
|
703
|
+
cli_version: _chunkVLJXYDGZjs.SDK_VERSION,
|
|
704
704
|
host: baseUrl,
|
|
705
705
|
health: {
|
|
706
706
|
status: healthResult.status,
|
|
@@ -726,7 +726,7 @@ async function runPreflightCheck() {
|
|
|
726
726
|
{
|
|
727
727
|
title: "preflight",
|
|
728
728
|
lines: [
|
|
729
|
-
`cli: ${
|
|
729
|
+
`cli: ${_chunkVLJXYDGZjs.SDK_VERSION}`,
|
|
730
730
|
`host: ${baseUrl}`,
|
|
731
731
|
`health: ${healthResult.status}`,
|
|
732
732
|
`auth: ${authStatus}`,
|
|
@@ -751,12 +751,12 @@ function printPreflightHuman(data) {
|
|
|
751
751
|
}
|
|
752
752
|
async function newerCliCommandHint(baseUrl, command) {
|
|
753
753
|
if (!command.trim()) return null;
|
|
754
|
-
const { response, error } = await
|
|
754
|
+
const { response, error } = await _chunkJOSOQJ5Pjs.checkSdkCompatibility.call(void 0, baseUrl, { command });
|
|
755
755
|
if (error || !response) return null;
|
|
756
756
|
const introduced = response.command_introduced_in;
|
|
757
757
|
if (introduced) {
|
|
758
758
|
return [
|
|
759
|
-
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${
|
|
759
|
+
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunkVLJXYDGZjs.SDK_VERSION}.`,
|
|
760
760
|
` ${introduced.reason}`,
|
|
761
761
|
` Update with: ${response.update_command}`,
|
|
762
762
|
" Agent skills are served by Deepline and refresh on their own, so a skill can describe a command this CLI does not have yet."
|
|
@@ -765,31 +765,31 @@ async function newerCliCommandHint(baseUrl, command) {
|
|
|
765
765
|
if (!response.update_required) return null;
|
|
766
766
|
return [
|
|
767
767
|
response.message,
|
|
768
|
-
` Installed: ${
|
|
768
|
+
` Installed: ${_chunkVLJXYDGZjs.SDK_VERSION}. Run: ${response.update_command}`,
|
|
769
769
|
" If an agent skill told you to run this, the skill is newer than this CLI."
|
|
770
770
|
].join("\n");
|
|
771
771
|
}
|
|
772
772
|
async function runMain(ensureTransport, onAction) {
|
|
773
773
|
const mainStartedAt = Date.now();
|
|
774
|
-
|
|
774
|
+
_chunkU3VAYRULjs.installJsonStderrGuard.call(void 0, );
|
|
775
775
|
let rootHelpStatus = "";
|
|
776
776
|
const deferredMaintenance = { inlinePlay: null };
|
|
777
|
-
|
|
777
|
+
_chunkFPPCTKV6js.recordCliTrace.call(void 0, {
|
|
778
778
|
phase: "cli.main_start",
|
|
779
779
|
argv: process.argv.slice(2)
|
|
780
780
|
});
|
|
781
781
|
const printStartupPhase = shouldPrintStartupPhase();
|
|
782
|
-
const progress = printStartupPhase ?
|
|
782
|
+
const progress = printStartupPhase ? _chunk2JSVKNLGjs.createCliProgress.call(void 0, true) : null;
|
|
783
783
|
if (printStartupPhase) {
|
|
784
784
|
_optionalChain([progress, 'optionalAccess', _14 => _14.phase, 'call', _15 => _15("loading deepline cli")]);
|
|
785
785
|
}
|
|
786
786
|
const program = new (0, _commander.Command)();
|
|
787
787
|
program.name("deepline").description(
|
|
788
788
|
"Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
|
|
789
|
-
).version(
|
|
789
|
+
).version(_chunkVLJXYDGZjs.SDK_VERSION, "-v, --version", "Show version").option(
|
|
790
790
|
"--maintenance <policy>",
|
|
791
791
|
"Installation maintenance: configured preferences or off; independent of output format",
|
|
792
|
-
|
|
792
|
+
_chunkFPPCTKV6js.parseCliMaintenancePolicy,
|
|
793
793
|
"configured"
|
|
794
794
|
).exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
|
|
795
795
|
"beforeAll",
|
|
@@ -847,24 +847,24 @@ Exit codes:
|
|
|
847
847
|
path: compatibilityCommandPath(actionCommand),
|
|
848
848
|
args: actionCommand.processedArgs
|
|
849
849
|
});
|
|
850
|
-
const maintenance =
|
|
850
|
+
const maintenance = _chunkFPPCTKV6js.resolveCliMaintenancePolicy.call(void 0,
|
|
851
851
|
actionCommand.optsWithGlobals()
|
|
852
852
|
);
|
|
853
853
|
if (actionCommand.name() !== "version") {
|
|
854
854
|
await ensureTransport();
|
|
855
855
|
}
|
|
856
|
-
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() ===
|
|
856
|
+
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunkJOSOQJ5Pjs.SKILLS_AUTO_SYNC_COMMAND || actionCommand.name() === "doctor" || isAutoUpdateSettingsInvocation() || isDeprecatedCommandInvocation()) {
|
|
857
857
|
return;
|
|
858
858
|
}
|
|
859
859
|
const compatibilityCommand = compatibilityCommandPath(actionCommand) || actionCommand.name();
|
|
860
860
|
const isToolExecuteCommand = compatibilityCommand === "tools execute";
|
|
861
861
|
if (isToolExecuteCommand) {
|
|
862
|
-
|
|
862
|
+
_chunkFFUQFRKZjs.beginToolExecuteCommand.call(void 0, );
|
|
863
863
|
}
|
|
864
864
|
if (isToolExecuteCommand) {
|
|
865
|
-
const baseUrl =
|
|
866
|
-
if (maintenance !== "off")
|
|
867
|
-
|
|
865
|
+
const baseUrl = _chunkVLJXYDGZjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
866
|
+
if (maintenance !== "off") _chunkJOSOQJ5Pjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
867
|
+
_chunkFPPCTKV6js.recordCliTrace.call(void 0, {
|
|
868
868
|
phase: "cli.sdk_compatibility_deferred_to_tool_execute",
|
|
869
869
|
baseUrl,
|
|
870
870
|
command: compatibilityCommand
|
|
@@ -872,10 +872,10 @@ Exit codes:
|
|
|
872
872
|
return;
|
|
873
873
|
}
|
|
874
874
|
const playDryRun = compatibilityCommand === "plays run" && actionCommand.optsWithGlobals().dryRun === true;
|
|
875
|
-
if (!playDryRun &&
|
|
875
|
+
if (!playDryRun && _chunk5KC7RLJOjs.usesInlinePlayAdmission.call(void 0, compatibilityCommand, process.argv.slice(2))) {
|
|
876
876
|
if (maintenance !== "off") {
|
|
877
|
-
const baseUrl =
|
|
878
|
-
|
|
877
|
+
const baseUrl = _chunkVLJXYDGZjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
878
|
+
_chunkJOSOQJ5Pjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
879
879
|
deferredMaintenance.inlinePlay = createDeferredPlayRunMaintenance({
|
|
880
880
|
baseUrl,
|
|
881
881
|
command: actionCommand,
|
|
@@ -884,27 +884,27 @@ Exit codes:
|
|
|
884
884
|
}
|
|
885
885
|
return;
|
|
886
886
|
}
|
|
887
|
-
const runStartupStage = (stage, action) => isToolExecuteCommand ?
|
|
887
|
+
const runStartupStage = (stage, action) => isToolExecuteCommand ? _chunkFFUQFRKZjs.runToolExecuteStage.call(void 0, stage, action) : Promise.resolve(action());
|
|
888
888
|
if (printStartupPhase) {
|
|
889
889
|
_optionalChain([progress, 'optionalAccess', _16 => _16.phase, 'call', _17 => _17("checking sdk compatibility")]);
|
|
890
890
|
}
|
|
891
891
|
const startup = await runStartupStage("SDK compatibility", async () => {
|
|
892
|
-
const baseUrl =
|
|
893
|
-
if (maintenance !== "off")
|
|
892
|
+
const baseUrl = _chunkVLJXYDGZjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
893
|
+
if (maintenance !== "off") _chunkJOSOQJ5Pjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
894
894
|
const shouldDeferSkillsSync = isToolExecuteCommand || maintenance === "off" || shouldDeferSkillsSyncForCommand();
|
|
895
|
-
const skillsVersion = shouldDeferSkillsSync ? void 0 :
|
|
896
|
-
const trusted = isToolExecuteCommand ? null :
|
|
895
|
+
const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunkVLJXYDGZjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
896
|
+
const trusted = isToolExecuteCommand ? null : _chunkJOSOQJ5Pjs.readTrustedCleanCompatibility.call(void 0,
|
|
897
897
|
baseUrl,
|
|
898
898
|
compatibilityCommand,
|
|
899
899
|
skillsVersion
|
|
900
900
|
);
|
|
901
|
-
const fastDeadline = !isToolExecuteCommand && trusted === null &&
|
|
901
|
+
const fastDeadline = !isToolExecuteCommand && trusted === null && _chunkJOSOQJ5Pjs.readFreshCleanCompatibility.call(void 0,
|
|
902
902
|
baseUrl,
|
|
903
903
|
compatibilityCommand,
|
|
904
904
|
skillsVersion
|
|
905
905
|
) !== null;
|
|
906
906
|
if (trusted) {
|
|
907
|
-
|
|
907
|
+
_chunkFPPCTKV6js.recordCliTrace.call(void 0, {
|
|
908
908
|
phase: "cli.sdk_compatibility",
|
|
909
909
|
ms: 0,
|
|
910
910
|
ok: true,
|
|
@@ -914,7 +914,7 @@ Exit codes:
|
|
|
914
914
|
source: "trusted_cache"
|
|
915
915
|
});
|
|
916
916
|
}
|
|
917
|
-
const compatibility = trusted ? { response: trusted, error: null } : await
|
|
917
|
+
const compatibility = trusted ? { response: trusted, error: null } : await _chunkFPPCTKV6js.traceCliSpan.call(void 0,
|
|
918
918
|
"cli.sdk_compatibility",
|
|
919
919
|
{
|
|
920
920
|
baseUrl,
|
|
@@ -922,12 +922,12 @@ Exit codes:
|
|
|
922
922
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null)),
|
|
923
923
|
fastDeadline
|
|
924
924
|
},
|
|
925
|
-
() =>
|
|
925
|
+
() => _chunkJOSOQJ5Pjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
926
926
|
command: compatibilityCommand,
|
|
927
927
|
skillsVersion,
|
|
928
928
|
persistCache: !isToolExecuteCommand && maintenance !== "off",
|
|
929
|
-
catalog:
|
|
930
|
-
...fastDeadline ? { timeoutMs:
|
|
929
|
+
catalog: _chunkFFUQFRKZjs.compatibilityCatalog.call(void 0, actionCommand),
|
|
930
|
+
...fastDeadline ? { timeoutMs: _chunkJOSOQJ5Pjs.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
|
|
931
931
|
})
|
|
932
932
|
);
|
|
933
933
|
if (compatibility.error) {
|
|
@@ -938,7 +938,7 @@ Exit codes:
|
|
|
938
938
|
response: null
|
|
939
939
|
};
|
|
940
940
|
}
|
|
941
|
-
const relaunched = await
|
|
941
|
+
const relaunched = await _chunkFFUQFRKZjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
942
942
|
compatibility.response,
|
|
943
943
|
baseUrl,
|
|
944
944
|
maintenance
|
|
@@ -952,14 +952,14 @@ Exit codes:
|
|
|
952
952
|
};
|
|
953
953
|
}
|
|
954
954
|
const policy = compatibility.response;
|
|
955
|
-
const jsonOutput =
|
|
956
|
-
|
|
955
|
+
const jsonOutput = _chunkU3VAYRULjs.isJsonOutputMode.call(void 0, );
|
|
956
|
+
_chunkJOSOQJ5Pjs.enforceSdkCompatibilityResponse.call(void 0, policy, {
|
|
957
957
|
quietAdvisory: jsonOutput || // The queued update already says what is about to happen.
|
|
958
|
-
|
|
958
|
+
_chunkFFUQFRKZjs.hasDeferredAutoUpdate.call(void 0, ) || maintenance === "off" || !_chunkJOSOQJ5Pjs.claimUpdateAdvisory.call(void 0, baseUrl)
|
|
959
959
|
});
|
|
960
960
|
const advisory = compatibility.response;
|
|
961
|
-
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !
|
|
962
|
-
|
|
961
|
+
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !_chunkJOSOQJ5Pjs.isCiEnvironment.call(void 0, ) && !_chunkFFUQFRKZjs.hasDeferredAutoUpdate.call(void 0, )) {
|
|
962
|
+
_chunkU3VAYRULjs.addJsonNotice.call(void 0, { code: advisory.status, message: advisory.message });
|
|
963
963
|
}
|
|
964
964
|
return {
|
|
965
965
|
shouldContinue: true,
|
|
@@ -976,10 +976,10 @@ Exit codes:
|
|
|
976
976
|
const skillsUpdate = startup.response && Object.prototype.hasOwnProperty.call(startup.response, "skills") ? _nullishCoalesce(startup.response.skills, () => ( null)) : void 0;
|
|
977
977
|
await runStartupStage(
|
|
978
978
|
"agent skills sync",
|
|
979
|
-
() =>
|
|
979
|
+
() => _chunkFPPCTKV6js.traceCliSpan.call(void 0,
|
|
980
980
|
"cli.sdk_skills_sync",
|
|
981
981
|
{ baseUrl: startup.baseUrl },
|
|
982
|
-
() =>
|
|
982
|
+
() => _chunkJOSOQJ5Pjs.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
|
|
983
983
|
update: skillsUpdate,
|
|
984
984
|
mode: "detached"
|
|
985
985
|
})
|
|
@@ -988,19 +988,19 @@ Exit codes:
|
|
|
988
988
|
}
|
|
989
989
|
});
|
|
990
990
|
const requestedCommand = process.argv[2];
|
|
991
|
-
const commandRegistrationStartedAt =
|
|
991
|
+
const commandRegistrationStartedAt = _chunkFPPCTKV6js.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
992
992
|
await registerDeeplineCommandGroups(
|
|
993
993
|
program,
|
|
994
994
|
!requestedCommand || requestedCommand === "help" || requestedCommand.startsWith("-") && !["-v", "--version"].includes(requestedCommand) ? void 0 : requestedCommand
|
|
995
995
|
);
|
|
996
996
|
if (commandRegistrationStartedAt !== void 0) {
|
|
997
|
-
|
|
997
|
+
_chunkFPPCTKV6js.recordCliTrace.call(void 0, {
|
|
998
998
|
phase: "cli.command_registration",
|
|
999
999
|
ms: performance.now() - commandRegistrationStartedAt
|
|
1000
1000
|
});
|
|
1001
1001
|
}
|
|
1002
1002
|
const { preflight, health, version } = registerDeeplineInlineCommands(program);
|
|
1003
|
-
if (
|
|
1003
|
+
if (_chunkU3VAYRULjs.isJsonOutputMode.call(void 0, )) silenceCommanderErrorOutput(program);
|
|
1004
1004
|
preflight.addHelpText(
|
|
1005
1005
|
"after",
|
|
1006
1006
|
`
|
|
@@ -1015,8 +1015,8 @@ Examples:
|
|
|
1015
1015
|
`
|
|
1016
1016
|
).action(async (options) => {
|
|
1017
1017
|
const data = await runPreflightCheck();
|
|
1018
|
-
if (
|
|
1019
|
-
|
|
1018
|
+
if (_chunkU3VAYRULjs.shouldEmitJson.call(void 0, options.json)) {
|
|
1019
|
+
_chunkU3VAYRULjs.printJson.call(void 0, data);
|
|
1020
1020
|
} else {
|
|
1021
1021
|
printPreflightHuman(data);
|
|
1022
1022
|
}
|
|
@@ -1038,7 +1038,7 @@ Examples:
|
|
|
1038
1038
|
).action(async (options) => {
|
|
1039
1039
|
if (options.playRunner) {
|
|
1040
1040
|
const data = await runPlayRunnerHealthCheck();
|
|
1041
|
-
|
|
1041
|
+
_chunkU3VAYRULjs.printCommandEnvelope.call(void 0, data, {
|
|
1042
1042
|
json: options.json,
|
|
1043
1043
|
text: `play runner: ${data.playRunner.status} (${data.playRunner.check})
|
|
1044
1044
|
`
|
|
@@ -1046,15 +1046,15 @@ Examples:
|
|
|
1046
1046
|
return;
|
|
1047
1047
|
}
|
|
1048
1048
|
try {
|
|
1049
|
-
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1050
|
-
const baseUrl =
|
|
1049
|
+
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-EAFWPDJG.js")));
|
|
1050
|
+
const baseUrl = _chunkVLJXYDGZjs.resolveBaseUrlOnly.call(void 0, );
|
|
1051
1051
|
const [{ status, data }, banner] = await Promise.all([
|
|
1052
1052
|
httpJson("GET", `${baseUrl}/api/v2/health`, null),
|
|
1053
1053
|
readStatusBanner(baseUrl)
|
|
1054
1054
|
]);
|
|
1055
1055
|
if (status !== 200) throw new Error(`HTTP ${status}`);
|
|
1056
1056
|
const lines = [`${baseUrl}: ${data.status}`, statusBannerLine(banner)];
|
|
1057
|
-
|
|
1057
|
+
_chunkU3VAYRULjs.printCommandEnvelope.call(void 0,
|
|
1058
1058
|
{ ...data, status_banner: banner },
|
|
1059
1059
|
{
|
|
1060
1060
|
json: options.json,
|
|
@@ -1082,16 +1082,16 @@ Examples:
|
|
|
1082
1082
|
`
|
|
1083
1083
|
).action((options) => {
|
|
1084
1084
|
if (options.json) {
|
|
1085
|
-
|
|
1085
|
+
_chunkU3VAYRULjs.printCompactJson.call(void 0, { version: _chunkVLJXYDGZjs.SDK_VERSION });
|
|
1086
1086
|
return;
|
|
1087
1087
|
}
|
|
1088
|
-
process.stdout.write(`deepline ${
|
|
1088
|
+
process.stdout.write(`deepline ${_chunkVLJXYDGZjs.SDK_VERSION}
|
|
1089
1089
|
`);
|
|
1090
1090
|
});
|
|
1091
1091
|
if (process.argv.slice(2).length === 0) {
|
|
1092
1092
|
program.outputHelp({ error: true });
|
|
1093
1093
|
console.error("\nerror: missing command (see usage above)");
|
|
1094
|
-
|
|
1094
|
+
_chunkFPPCTKV6js.recordCliTrace.call(void 0, {
|
|
1095
1095
|
phase: "cli.main_total",
|
|
1096
1096
|
ms: Date.now() - mainStartedAt,
|
|
1097
1097
|
ok: false,
|
|
@@ -1103,16 +1103,16 @@ Examples:
|
|
|
1103
1103
|
const requestedTopLevelCommand = _nullishCoalesce(process.argv.slice(2)[0], () => ( ""));
|
|
1104
1104
|
if (!topLevelCommandKnown(program, requestedTopLevelCommand)) {
|
|
1105
1105
|
const unknownCommandMessage = `error: unknown command '${requestedTopLevelCommand}'`;
|
|
1106
|
-
if (!
|
|
1107
|
-
const baseUrl =
|
|
1106
|
+
if (!_chunkU3VAYRULjs.isJsonOutputMode.call(void 0, )) console.error(unknownCommandMessage);
|
|
1107
|
+
const baseUrl = _chunkVLJXYDGZjs.autoDetectBaseUrl.call(void 0, );
|
|
1108
1108
|
await ensureTransport();
|
|
1109
1109
|
const versionHint = await newerCliCommandHint(
|
|
1110
1110
|
baseUrl,
|
|
1111
1111
|
requestedTopLevelCommand
|
|
1112
1112
|
);
|
|
1113
|
-
if (
|
|
1113
|
+
if (_chunkU3VAYRULjs.isJsonOutputMode.call(void 0, )) {
|
|
1114
1114
|
if (versionHint) {
|
|
1115
|
-
|
|
1115
|
+
_chunkU3VAYRULjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1116
1116
|
}
|
|
1117
1117
|
printUsageErrorJson(
|
|
1118
1118
|
"commander.unknownCommand",
|
|
@@ -1134,32 +1134,32 @@ Examples:
|
|
|
1134
1134
|
const helpArgs = process.argv.slice(2);
|
|
1135
1135
|
const helpPositionals = helpArgs.filter((arg) => !arg.startsWith("-"));
|
|
1136
1136
|
if (helpPositionals.length === 0 ? helpArgs.includes("--help") || helpArgs.includes("-h") : helpPositionals.length === 1 && helpPositionals[0] === "help") {
|
|
1137
|
-
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1138
|
-
rootHelpStatus = `Version: ${
|
|
1137
|
+
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-EAFWPDJG.js")));
|
|
1138
|
+
rootHelpStatus = `Version: ${_chunkVLJXYDGZjs.SDK_VERSION}
|
|
1139
1139
|
${await authStatusLine()}
|
|
1140
1140
|
`;
|
|
1141
1141
|
}
|
|
1142
1142
|
await program.parseAsync(process.argv);
|
|
1143
|
-
|
|
1143
|
+
_chunkFPPCTKV6js.recordCliTrace.call(void 0, {
|
|
1144
1144
|
phase: "cli.main_total",
|
|
1145
1145
|
ms: Date.now() - mainStartedAt,
|
|
1146
1146
|
ok: true
|
|
1147
1147
|
});
|
|
1148
|
-
await
|
|
1148
|
+
await _chunkJOSOQJ5Pjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1149
1149
|
argv: process.argv.slice(2),
|
|
1150
1150
|
startedAtMs: mainStartedAt,
|
|
1151
1151
|
exitCode: typeof process.exitCode === "number" ? process.exitCode : null
|
|
1152
1152
|
});
|
|
1153
1153
|
} catch (error) {
|
|
1154
1154
|
const commanderError = asCommanderError(error);
|
|
1155
|
-
|
|
1155
|
+
_chunkFPPCTKV6js.recordCliTrace.call(void 0, {
|
|
1156
1156
|
phase: "cli.main_total",
|
|
1157
1157
|
ms: Date.now() - mainStartedAt,
|
|
1158
1158
|
ok: false,
|
|
1159
1159
|
error: error instanceof Error ? error.message : String(error)
|
|
1160
1160
|
});
|
|
1161
1161
|
_optionalChain([progress, 'optionalAccess', _20 => _20.fail, 'call', _21 => _21()]);
|
|
1162
|
-
const wantsJson =
|
|
1162
|
+
const wantsJson = _chunkU3VAYRULjs.isJsonOutputMode.call(void 0, );
|
|
1163
1163
|
if (commanderError) {
|
|
1164
1164
|
const grammarError = [
|
|
1165
1165
|
"commander.unknownCommand",
|
|
@@ -1170,12 +1170,12 @@ ${await authStatusLine()}
|
|
|
1170
1170
|
if (grammarError) {
|
|
1171
1171
|
await ensureTransport();
|
|
1172
1172
|
const versionHint = await newerCliCommandHint(
|
|
1173
|
-
|
|
1173
|
+
_chunkVLJXYDGZjs.autoDetectBaseUrl.call(void 0, ),
|
|
1174
1174
|
commandPath
|
|
1175
1175
|
);
|
|
1176
1176
|
if (wantsJson) {
|
|
1177
1177
|
if (versionHint) {
|
|
1178
|
-
|
|
1178
|
+
_chunkU3VAYRULjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1179
1179
|
}
|
|
1180
1180
|
} else {
|
|
1181
1181
|
if (versionHint) console.error(versionHint);
|
|
@@ -1195,49 +1195,49 @@ ${await authStatusLine()}
|
|
|
1195
1195
|
return;
|
|
1196
1196
|
} else if (wantsJson) {
|
|
1197
1197
|
if (error instanceof _chunkALJJRZNJjs.AuthError) {
|
|
1198
|
-
|
|
1198
|
+
_chunkU3VAYRULjs.addJsonNotice.call(void 0, {
|
|
1199
1199
|
code: "auth_required",
|
|
1200
1200
|
message: `Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`
|
|
1201
1201
|
});
|
|
1202
1202
|
}
|
|
1203
|
-
const providerConcurrency =
|
|
1203
|
+
const providerConcurrency = _chunkU3VAYRULjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1204
1204
|
if (providerConcurrency) {
|
|
1205
|
-
|
|
1205
|
+
_chunkU3VAYRULjs.addJsonNotice.call(void 0, {
|
|
1206
1206
|
code: "provider_concurrency",
|
|
1207
1207
|
message: providerConcurrency
|
|
1208
1208
|
});
|
|
1209
1209
|
}
|
|
1210
|
-
|
|
1211
|
-
...
|
|
1210
|
+
_chunkU3VAYRULjs.printJson.call(void 0, {
|
|
1211
|
+
..._chunkU3VAYRULjs.errorToJsonPayload.call(void 0, error),
|
|
1212
1212
|
...error instanceof _chunkALJJRZNJjs.AuthError ? { next: AUTH_RECOVERY_COMMAND } : {}
|
|
1213
1213
|
});
|
|
1214
1214
|
} else if (error instanceof Error) {
|
|
1215
1215
|
console.error(`Error: ${error.message}`);
|
|
1216
|
-
const toolDiagnostic =
|
|
1216
|
+
const toolDiagnostic = _chunkU3VAYRULjs.formatToolExecutionErrorDiagnostic.call(void 0, error);
|
|
1217
1217
|
if (toolDiagnostic) console.error(toolDiagnostic);
|
|
1218
1218
|
if (error instanceof _chunkALJJRZNJjs.AuthError) {
|
|
1219
1219
|
console.error(`Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`);
|
|
1220
1220
|
}
|
|
1221
|
-
const providerConcurrency =
|
|
1221
|
+
const providerConcurrency = _chunkU3VAYRULjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1222
1222
|
if (providerConcurrency) console.error(providerConcurrency);
|
|
1223
1223
|
} else {
|
|
1224
1224
|
console.error(`Error: ${String(error)}`);
|
|
1225
1225
|
}
|
|
1226
1226
|
const explicitExitCode = error && typeof error === "object" && typeof error.exitCode === "number" ? error.exitCode : void 0;
|
|
1227
|
-
const failureExitCode = _nullishCoalesce(explicitExitCode, () => (
|
|
1227
|
+
const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunkJOSOQJ5Pjs.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
1228
1228
|
process.exitCode = failureExitCode;
|
|
1229
|
-
await
|
|
1229
|
+
await _chunkJOSOQJ5Pjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1230
1230
|
argv: process.argv.slice(2),
|
|
1231
1231
|
startedAtMs: mainStartedAt,
|
|
1232
1232
|
exitCode: failureExitCode,
|
|
1233
1233
|
error
|
|
1234
1234
|
});
|
|
1235
1235
|
} finally {
|
|
1236
|
-
|
|
1236
|
+
_chunkFFUQFRKZjs.finishToolExecuteCommand.call(void 0, );
|
|
1237
1237
|
const maintainInlinePlay = deferredMaintenance.inlinePlay;
|
|
1238
1238
|
deferredMaintenance.inlinePlay = null;
|
|
1239
1239
|
await _optionalChain([maintainInlinePlay, 'optionalCall', _22 => _22()]);
|
|
1240
|
-
await
|
|
1240
|
+
await _chunkFFUQFRKZjs.runDeferredAutoUpdate.call(void 0, );
|
|
1241
1241
|
}
|
|
1242
1242
|
process.exitCode = _nullishCoalesce(process.exitCode, () => ( 0));
|
|
1243
1243
|
}
|
|
@@ -1245,7 +1245,7 @@ async function main() {
|
|
|
1245
1245
|
let disposeTransport;
|
|
1246
1246
|
const ensureTransport = async () => {
|
|
1247
1247
|
if (disposeTransport) return;
|
|
1248
|
-
const transportStartedAt =
|
|
1248
|
+
const transportStartedAt = _chunkFPPCTKV6js.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1249
1249
|
const hasProxy = [
|
|
1250
1250
|
"HTTP_PROXY",
|
|
1251
1251
|
"http_proxy",
|
|
@@ -1257,7 +1257,7 @@ async function main() {
|
|
|
1257
1257
|
disposeTransport = configureCliTransport();
|
|
1258
1258
|
}
|
|
1259
1259
|
if (transportStartedAt !== void 0) {
|
|
1260
|
-
|
|
1260
|
+
_chunkFPPCTKV6js.recordCliTrace.call(void 0, {
|
|
1261
1261
|
phase: "cli.transport_setup",
|
|
1262
1262
|
ms: performance.now() - transportStartedAt
|
|
1263
1263
|
});
|
|
@@ -1274,9 +1274,9 @@ async function main() {
|
|
|
1274
1274
|
action = dispatched;
|
|
1275
1275
|
skipOutputReport = dispatched.path === "tools execute" || dispatched.path === "plays run" && process.argv.includes("--json");
|
|
1276
1276
|
});
|
|
1277
|
-
const silentFailure =
|
|
1277
|
+
const silentFailure = _chunkU3VAYRULjs.takeSilentJsonFailureMessage.call(void 0, process.exitCode);
|
|
1278
1278
|
if (silentFailure) {
|
|
1279
|
-
|
|
1279
|
+
_chunkU3VAYRULjs.printJson.call(void 0, {
|
|
1280
1280
|
ok: false,
|
|
1281
1281
|
exitCode: Number(process.exitCode),
|
|
1282
1282
|
error: { code: "CLI_ERROR", message: silentFailure }
|