deepline 0.3.490 → 0.3.491
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/client-core.ts +6 -1
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +4 -1
- package/dist/cli/{auth-RL6LOZGC.mjs → auth-FXAC472Y.mjs} +5 -5
- package/dist/cli/auth-QIDL3YCW.js +43 -0
- package/dist/cli/{billing-LIDDSOSY.js → billing-PDOA3KZ3.js} +79 -79
- package/dist/cli/{billing-33THO76F.mjs → billing-UM4LE33K.mjs} +6 -6
- package/dist/cli/{chunk-QZPJWFGD.js → chunk-27MRSV6O.js} +26 -26
- package/dist/cli/{chunk-V47SUOAE.mjs → chunk-2MW6TGNZ.mjs} +4 -4
- package/dist/cli/{chunk-63TNO23X.js → chunk-3FMU6F6E.js} +10 -10
- package/dist/cli/{chunk-CB7IFKXN.mjs → chunk-3K4IAV7I.mjs} +2 -2
- package/dist/cli/{chunk-7W53Y4VH.mjs → chunk-3WRWPNHE.mjs} +5 -5
- package/dist/cli/{chunk-Y2KHSQEF.js → chunk-5KMGKG4B.js} +8 -8
- package/dist/cli/{chunk-A3D677RX.mjs → chunk-6PMM7VJN.mjs} +1 -1
- package/dist/cli/{chunk-LZ37B62K.js → chunk-6UARNRXT.js} +3 -3
- package/dist/cli/{chunk-EPQZ42PY.js → chunk-74H5OTRM.js} +1 -1
- package/dist/cli/{chunk-FPYESYBO.js → chunk-AEKJZJ4R.js} +4 -4
- package/dist/cli/{chunk-PVMN4OE2.js → chunk-B2TXKEED.js} +5 -5
- package/dist/cli/{chunk-E26477MJ.js → chunk-BCKIBVEJ.js} +7 -7
- package/dist/cli/{chunk-QWJZSPCV.mjs → chunk-CFPFTS3A.mjs} +10 -10
- package/dist/cli/{chunk-L7QSZAF6.js → chunk-CRBBGKRH.js} +9 -9
- package/dist/cli/{chunk-YPUDIEZX.js → chunk-DUFRH43S.js} +94 -94
- package/dist/cli/{chunk-CSSOP7XG.mjs → chunk-EPD7NSDJ.mjs} +1 -1
- package/dist/cli/{chunk-JTYKW3UL.mjs → chunk-H6UIS36S.mjs} +2 -2
- package/dist/cli/{chunk-UQXHBCHU.js → chunk-HNG2U3IG.js} +2 -2
- package/dist/cli/{chunk-JSYCPTG6.mjs → chunk-HSJK6EMU.mjs} +3 -3
- package/dist/cli/{chunk-XSGJKXMP.js → chunk-I64PYCTB.js} +2 -2
- package/dist/cli/{chunk-6TTPAGNX.js → chunk-IG3GSBBE.js} +122 -119
- package/dist/cli/{chunk-MEYQOZPF.mjs → chunk-IIO7UOVW.mjs} +5 -2
- package/dist/cli/{chunk-MDKAPUN2.mjs → chunk-KGJVDR4Q.mjs} +2 -2
- package/dist/cli/{chunk-LQIKW55V.mjs → chunk-LMG7O6XJ.mjs} +2 -2
- package/dist/cli/{chunk-MBQZMHE6.mjs → chunk-MAM6ZOVS.mjs} +4 -4
- package/dist/cli/{chunk-QC6QUFKY.js → chunk-MN6DCV63.js} +5 -5
- package/dist/cli/{chunk-Z7W6VJFN.mjs → chunk-NUOKAKZW.mjs} +1 -1
- package/dist/cli/{chunk-BL5Q5JY7.mjs → chunk-OLHWZM4A.mjs} +5 -5
- package/dist/cli/{chunk-TVZJ6XWM.mjs → chunk-ORKLMANE.mjs} +1 -1
- package/dist/cli/{chunk-PIENQTDE.mjs → chunk-OYJTLEB4.mjs} +1 -1
- package/dist/cli/{chunk-JC2M6XG2.mjs → chunk-PIPEPCRL.mjs} +1 -1
- package/dist/cli/{chunk-SGG3TERP.js → chunk-Q7G7CU4W.js} +3 -3
- package/dist/cli/{chunk-2HYJU4LJ.mjs → chunk-QBOE5LEH.mjs} +1 -1
- package/dist/cli/{chunk-FDYCUA7A.js → chunk-RFSXXDH7.js} +16 -16
- package/dist/cli/{chunk-NRM5OWH2.mjs → chunk-S4CYM4EC.mjs} +4 -4
- package/dist/cli/{chunk-HHGAY2A4.js → chunk-SJOHQ2WW.js} +53 -53
- package/dist/cli/{chunk-WNVZV6VK.js → chunk-SUMKWA53.js} +53 -53
- package/dist/cli/{chunk-B7MPY7WH.js → chunk-TH7JLR5D.js} +6 -6
- package/dist/cli/{chunk-UTKNSD6T.js → chunk-TMAS3WH3.js} +21 -21
- package/dist/cli/{chunk-27IBWHR5.mjs → chunk-VC3SH4QW.mjs} +4 -4
- package/dist/cli/{chunk-J5HMAZ34.mjs → chunk-WCWVXN3R.mjs} +2 -2
- package/dist/cli/{chunk-OFCP66VS.mjs → chunk-X75ONMDJ.mjs} +2 -2
- package/dist/cli/{chunk-TCBYQX5N.js → chunk-X7YOVJBC.js} +37 -37
- package/dist/cli/{chunk-3M5VPIRL.mjs → chunk-YV4DP6KQ.mjs} +2 -2
- package/dist/cli/{chunk-YYN2O43C.js → chunk-ZEZ3CZ3X.js} +3 -3
- package/dist/cli/{chunk-IFGBL3US.js → chunk-ZX2FXZJN.js} +7 -7
- package/dist/cli/{csv-PLJNQPLE.js → csv-IGPAPAES.js} +13 -13
- package/dist/cli/{csv-TELSH4ND.mjs → csv-RNMQHECI.mjs} +4 -4
- package/dist/cli/{db-QDJ6GWF5.js → db-32OXM3TO.js} +27 -27
- package/dist/cli/{db-GISAU665.mjs → db-CKMVVGXJ.mjs} +6 -6
- package/dist/cli/describe-67GMIEIO.js +50 -0
- package/dist/cli/{describe-F4K54VXB.mjs → describe-QR7I3VOF.mjs} +17 -17
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-VKUTKQNN.js → executions-PCZS7B2M.js} +8 -8
- package/dist/cli/{executions-3QE7MRBG.mjs → executions-S4M4JMCU.mjs} +6 -6
- package/dist/cli/{feedback-HH5AUYLA.js → feedback-6EGKPZ3U.js} +8 -8
- package/dist/cli/{feedback-JU7PJGDL.mjs → feedback-FGUJVCBS.mjs} +4 -4
- package/dist/cli/{git-ACXH7K7D.mjs → git-LR4ARG5H.mjs} +5 -5
- package/dist/cli/git-PIH5Z5LN.js +25 -0
- package/dist/cli/index.js +137 -137
- package/dist/cli/index.mjs +40 -40
- package/dist/cli/{legacy-noops-IOAZ3YJ2.mjs → legacy-noops-S37PJ7OJ.mjs} +5 -5
- package/dist/cli/{legacy-noops-NRPYJZOP.js → legacy-noops-VX4JEQR6.js} +8 -8
- package/dist/cli/{monitors-4SKMAAMR.js → monitors-ADASJI72.js} +91 -91
- package/dist/cli/{monitors-PMQUOIOI.mjs → monitors-H3AX6CZG.mjs} +7 -7
- package/dist/cli/{org-XNT3W6OU.mjs → org-D3F5LUDW.mjs} +6 -6
- package/dist/cli/{org-WJM7X6WB.js → org-ZRJ3C56J.js} +72 -72
- package/dist/cli/{pages-WXY4GGZG.js → pages-5TKO3644.js} +17 -17
- package/dist/cli/{pages-Y3JKBS4B.mjs → pages-PSHU366M.mjs} +6 -6
- package/dist/cli/{play-NPWWAQYK.mjs → play-AUDDK7XB.mjs} +19 -18
- package/dist/cli/{play-NKSRPIAV.js → play-VDAETQDI.js} +314 -313
- package/dist/cli/{providers-VNPJHXK5.js → providers-IURPWRWD.js} +9 -9
- package/dist/cli/{providers-CUIKFE6F.mjs → providers-X7YMZSKQ.mjs} +6 -6
- package/dist/cli/{quickstart-PJYPKFZI.mjs → quickstart-6AGWVFNX.mjs} +4 -4
- package/dist/cli/{quickstart-6OTS2HDR.js → quickstart-Y6GFXLDV.js} +6 -6
- package/dist/cli/{run-AGX3EUK4.mjs → run-TG7J45NS.mjs} +22 -22
- package/dist/cli/{run-2DLJBYFC.js → run-TQFGOXNT.js} +36 -36
- package/dist/cli/{search-DVIEJ2UQ.mjs → search-3G4J2GC6.mjs} +7 -7
- package/dist/cli/search-VC43NUY7.js +32 -0
- package/dist/cli/{search-output-PFLNDCA7.js → search-output-NPZICK5C.js} +6 -6
- package/dist/cli/{search-output-TXSIPSPS.mjs → search-output-ZGNHDCLL.mjs} +4 -4
- package/dist/cli/{secrets-OAGXFXEX.mjs → secrets-EAWJBRUD.mjs} +6 -6
- package/dist/cli/{secrets-O5OQTFVD.js → secrets-KTTHT4ZG.js} +15 -15
- package/dist/cli/{sessions-GBR5PGB6.mjs → sessions-D4Q3LCEQ.mjs} +5 -5
- package/dist/cli/{sessions-WT7P3F73.js → sessions-S4YVBPAW.js} +6 -6
- package/dist/cli/{settings-U7UNDUDB.js → settings-BAK3VOWW.js} +78 -78
- package/dist/cli/{settings-KGNBIFOU.mjs → settings-JUORW6NL.mjs} +11 -11
- package/dist/cli/{setup-PYWSU4YM.mjs → setup-AXFGCXJE.mjs} +9 -9
- package/dist/cli/{setup-4MZNDFKM.js → setup-NJPHTW32.js} +49 -49
- package/dist/cli/skills-4NQZISNK.js +36 -0
- package/dist/cli/{skills-7Y6OBM7Z.mjs → skills-SKJVDJEF.mjs} +7 -7
- package/dist/cli/{tools-O7L435CR.mjs → tools-63THJVJZ.mjs} +16 -16
- package/dist/cli/tools-BAHK33FQ.js +57 -0
- package/dist/cli/update-EMIGRGJ7.js +34 -0
- package/dist/cli/{update-SPHIBY5L.mjs → update-KSID5F74.mjs} +9 -9
- package/dist/cli/{workflow-GTDKPIEV.js → workflow-BLSMWBKW.js} +17 -17
- package/dist/cli/{workflow-ZRYO5J3K.mjs → workflow-C4B54X2Z.mjs} +7 -7
- package/dist/{client-BkbDHRIg.d.mts → client-B4R1scm2.d.mts} +1 -1
- package/dist/{client-D3hVHXjK.d.ts → client-CQgGFxAH.d.ts} +1 -1
- package/dist/{client-core-DUdVqO_m.d.ts → client-core-BUNjKBKq.d.ts} +6 -1
- package/dist/{client-core-BZoSMKcY.d.mts → client-core-DMvHWjub.d.mts} +6 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +102 -102
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- 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/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-AW34RGV5.js +0 -43
- package/dist/cli/describe-R6NVISAS.js +0 -50
- package/dist/cli/git-CXRU4CRW.js +0 -25
- package/dist/cli/search-Y7VFEFJJ.js +0 -32
- package/dist/cli/skills-BQC2323O.js +0 -36
- package/dist/cli/tools-732SZ4KV.js +0 -57
- package/dist/cli/update-PCYIUORM.js +0 -34
package/dist/cli/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkTH7JLR5Djs = require('./chunk-TH7JLR5D.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -10,17 +10,17 @@ var _chunkB7MPY7WHjs = require('./chunk-B7MPY7WH.js');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkTMAS3WH3js = require('./chunk-TMAS3WH3.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
21
|
-
require('./chunk-
|
|
22
|
-
require('./chunk-
|
|
23
|
-
require('./chunk-
|
|
20
|
+
var _chunkHNG2U3IGjs = require('./chunk-HNG2U3IG.js');
|
|
21
|
+
require('./chunk-RFSXXDH7.js');
|
|
22
|
+
require('./chunk-I64PYCTB.js');
|
|
23
|
+
require('./chunk-X7YOVJBC.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -38,10 +38,10 @@ require('./chunk-TCBYQX5N.js');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkSJOHQ2WWjs = require('./chunk-SJOHQ2WW.js');
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunkQ7G7CU4Wjs = require('./chunk-Q7G7CU4W.js');
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
@@ -59,7 +59,7 @@ var _chunkO3K22ZC7js = require('./chunk-O3K22ZC7.js');
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var _chunkBCKIBVEJjs = require('./chunk-BCKIBVEJ.js');
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
|
|
@@ -67,18 +67,18 @@ var _chunkE26477MJjs = require('./chunk-E26477MJ.js');
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
var
|
|
70
|
+
var _chunkZEZ3CZ3Xjs = require('./chunk-ZEZ3CZ3X.js');
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
|
|
74
74
|
|
|
75
|
-
var
|
|
75
|
+
var _chunkAEKJZJ4Rjs = require('./chunk-AEKJZJ4R.js');
|
|
76
76
|
|
|
77
77
|
|
|
78
78
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
79
79
|
require('./chunk-XNYIZMNQ.js');
|
|
80
80
|
require('./chunk-DIAWYWT5.js');
|
|
81
|
-
require('./chunk-
|
|
81
|
+
require('./chunk-74H5OTRM.js');
|
|
82
82
|
require('./chunk-OG64RBAC.js');
|
|
83
83
|
require('./chunk-4OLXMJ2L.js');
|
|
84
84
|
require('./chunk-COGTRVWW.js');
|
|
@@ -159,56 +159,56 @@ var _os = require('os');
|
|
|
159
159
|
var COMMAND_GROUPS = [
|
|
160
160
|
{
|
|
161
161
|
names: ["auth"],
|
|
162
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
162
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-QIDL3YCW.js")))).registerAuthCommands
|
|
163
163
|
},
|
|
164
164
|
{
|
|
165
165
|
names: ["providers"],
|
|
166
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-
|
|
166
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-IURPWRWD.js")))).registerProviderCommands
|
|
167
167
|
},
|
|
168
168
|
{
|
|
169
169
|
names: ["search"],
|
|
170
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-
|
|
170
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-VC43NUY7.js")))).registerSearchCommand
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
173
|
names: ["describe"],
|
|
174
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
174
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-67GMIEIO.js")))).registerDescribeCommand
|
|
175
175
|
},
|
|
176
176
|
{
|
|
177
177
|
names: ["run"],
|
|
178
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-
|
|
178
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-TQFGOXNT.js")))).registerRunCommand
|
|
179
179
|
},
|
|
180
180
|
{
|
|
181
181
|
names: ["tools"],
|
|
182
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
182
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-BAHK33FQ.js")))).registerToolsCommands
|
|
183
183
|
},
|
|
184
184
|
{
|
|
185
185
|
names: ["executions"],
|
|
186
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-
|
|
186
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-PCZS7B2M.js")))).registerExecutionsCommands
|
|
187
187
|
},
|
|
188
188
|
{
|
|
189
189
|
names: ["plays", "runs"],
|
|
190
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
190
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-VDAETQDI.js")))).registerPlayCommands
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
193
|
names: ["sessions"],
|
|
194
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-
|
|
194
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-S4YVBPAW.js")))).registerSessionsCommands
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
197
|
names: ["workflows"],
|
|
198
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-
|
|
198
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-BLSMWBKW.js")))).registerWorkflowCommands
|
|
199
199
|
},
|
|
200
200
|
{
|
|
201
201
|
names: ["pages"],
|
|
202
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./pages-
|
|
202
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./pages-5TKO3644.js")))).registerPagesCommands
|
|
203
203
|
},
|
|
204
204
|
{
|
|
205
205
|
names: ["secrets"],
|
|
206
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-
|
|
206
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-KTTHT4ZG.js")))).registerSecretsCommands
|
|
207
207
|
},
|
|
208
208
|
{
|
|
209
209
|
names: ["settings", "notifications"],
|
|
210
210
|
load: async () => {
|
|
211
|
-
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-
|
|
211
|
+
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-BAK3VOWW.js")));
|
|
212
212
|
return (p) => {
|
|
213
213
|
commands.registerSettingsCommands(p);
|
|
214
214
|
commands.registerNotificationCommands(p);
|
|
@@ -217,51 +217,51 @@ var COMMAND_GROUPS = [
|
|
|
217
217
|
},
|
|
218
218
|
{
|
|
219
219
|
names: ["billing"],
|
|
220
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-
|
|
220
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-PDOA3KZ3.js")))).registerBillingCommands
|
|
221
221
|
},
|
|
222
222
|
{
|
|
223
223
|
names: ["monitors"],
|
|
224
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-
|
|
224
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-ADASJI72.js")))).registerMonitorsCommands
|
|
225
225
|
},
|
|
226
226
|
{
|
|
227
227
|
names: ["org"],
|
|
228
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-
|
|
228
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-ZRJ3C56J.js")))).registerOrgCommands
|
|
229
229
|
},
|
|
230
230
|
{
|
|
231
231
|
names: ["git", "projects", "deployments"],
|
|
232
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-
|
|
232
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-PIH5Z5LN.js")))).registerGitCommands
|
|
233
233
|
},
|
|
234
234
|
{
|
|
235
235
|
names: ["csv"],
|
|
236
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-
|
|
236
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-IGPAPAES.js")))).registerCsvCommands
|
|
237
237
|
},
|
|
238
238
|
{
|
|
239
239
|
names: ["db"],
|
|
240
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-
|
|
240
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-32OXM3TO.js")))).registerDbCommands
|
|
241
241
|
},
|
|
242
242
|
{
|
|
243
243
|
names: ["feedback"],
|
|
244
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-
|
|
244
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-6EGKPZ3U.js")))).registerFeedbackCommands
|
|
245
245
|
},
|
|
246
246
|
{
|
|
247
247
|
names: ["enrich", "session", "backend"],
|
|
248
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-
|
|
248
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-VX4JEQR6.js")))).registerDeprecatedCommands
|
|
249
249
|
},
|
|
250
250
|
{
|
|
251
251
|
names: ["update"],
|
|
252
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-
|
|
252
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-EMIGRGJ7.js")))).registerUpdateCommand
|
|
253
253
|
},
|
|
254
254
|
{
|
|
255
255
|
names: ["skills", "skills-auto-sync"],
|
|
256
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-
|
|
256
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-4NQZISNK.js")))).registerSkillsCommand
|
|
257
257
|
},
|
|
258
258
|
{
|
|
259
259
|
names: ["setup", "doctor"],
|
|
260
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-
|
|
260
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-NJPHTW32.js")))).registerSetupCommands
|
|
261
261
|
},
|
|
262
262
|
{
|
|
263
263
|
names: ["quickstart"],
|
|
264
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-
|
|
264
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-Y6GFXLDV.js")))).registerQuickstartCommands
|
|
265
265
|
}
|
|
266
266
|
];
|
|
267
267
|
async function registerDeeplineCommandGroups(program, requestedCommand) {
|
|
@@ -287,8 +287,8 @@ function registerDeeplineInlineCommands(program) {
|
|
|
287
287
|
function createDeferredPlayRunMaintenance(input) {
|
|
288
288
|
return async () => {
|
|
289
289
|
try {
|
|
290
|
-
const skillsVersion =
|
|
291
|
-
const compatibility = await
|
|
290
|
+
const skillsVersion = _chunkZEZ3CZ3Xjs.readSdkSkillsLocalVersion.call(void 0, input.baseUrl);
|
|
291
|
+
const compatibility = await _chunkHNG2U3IGjs.traceCliSpan.call(void 0,
|
|
292
292
|
"cli.sdk_compatibility_deferred",
|
|
293
293
|
{
|
|
294
294
|
baseUrl: input.baseUrl,
|
|
@@ -296,24 +296,24 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
296
296
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
297
297
|
},
|
|
298
298
|
async () => {
|
|
299
|
-
const trusted =
|
|
299
|
+
const trusted = _chunkSJOHQ2WWjs.readTrustedCleanCompatibility.call(void 0,
|
|
300
300
|
input.baseUrl,
|
|
301
301
|
"plays run",
|
|
302
302
|
skillsVersion
|
|
303
303
|
);
|
|
304
304
|
if (trusted) return { response: trusted, error: null };
|
|
305
|
-
return
|
|
305
|
+
return _chunkSJOHQ2WWjs.checkSdkCompatibility.call(void 0, input.baseUrl, {
|
|
306
306
|
command: "plays run",
|
|
307
307
|
skillsVersion,
|
|
308
308
|
persistCache: input.policy !== "off",
|
|
309
|
-
catalog:
|
|
309
|
+
catalog: _chunkTMAS3WH3js.compatibilityCatalog.call(void 0, input.command)
|
|
310
310
|
});
|
|
311
311
|
}
|
|
312
312
|
);
|
|
313
313
|
if (compatibility.error || !compatibility.response) return;
|
|
314
314
|
const automaticUpdate = compatibility.response.auto_update;
|
|
315
315
|
if (_optionalChain([automaticUpdate, 'optionalAccess', _4 => _4.should_auto_update]) && !automaticUpdate.required && automaticUpdate.reason !== "rollback_forced") {
|
|
316
|
-
await
|
|
316
|
+
await _chunkTMAS3WH3js.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
317
317
|
compatibility.response,
|
|
318
318
|
input.baseUrl,
|
|
319
319
|
input.policy
|
|
@@ -323,7 +323,7 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
323
323
|
compatibility.response,
|
|
324
324
|
"skills"
|
|
325
325
|
) ? _nullishCoalesce(compatibility.response.skills, () => ( null)) : void 0;
|
|
326
|
-
await
|
|
326
|
+
await _chunkSJOHQ2WWjs.syncSdkSkillsIfNeeded.call(void 0, input.baseUrl, {
|
|
327
327
|
update: skillsUpdate,
|
|
328
328
|
mode: "detached"
|
|
329
329
|
});
|
|
@@ -351,7 +351,7 @@ var MAX_SESSIONS = 20;
|
|
|
351
351
|
function helpSeenPath(homeDir = _os.homedir.call(void 0, )) {
|
|
352
352
|
return _path.join.call(void 0, homeDir, ".local", "deepline", "sdk-cli", "help-seen.json");
|
|
353
353
|
}
|
|
354
|
-
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId =
|
|
354
|
+
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId = _chunkAEKJZJ4Rjs.agentSessionIdFromEnvironment.call(void 0, )) {
|
|
355
355
|
const explicit = _chunkO3K22ZC7js.helpDetailFromArgv.call(void 0, argv);
|
|
356
356
|
if (explicit === "quiet") return { detail: "quiet", firstRead: false };
|
|
357
357
|
if (!sessionId) return { detail: explicit, firstRead: false };
|
|
@@ -449,7 +449,7 @@ function shouldReport(stdout, stderr) {
|
|
|
449
449
|
}
|
|
450
450
|
function toolName(action) {
|
|
451
451
|
const [toolId] = _optionalChain([action, 'optionalAccess', _5 => _5.path]) === "tools execute" ? action.args : [];
|
|
452
|
-
return typeof toolId === "string" ?
|
|
452
|
+
return typeof toolId === "string" ? _chunkSJOHQ2WWjs.redactFailureText.call(void 0, toolId) : null;
|
|
453
453
|
}
|
|
454
454
|
function chunkText(chunk) {
|
|
455
455
|
if (typeof chunk === "string") return chunk;
|
|
@@ -480,14 +480,14 @@ function watch(stream) {
|
|
|
480
480
|
}
|
|
481
481
|
async function postCommandOutput(body) {
|
|
482
482
|
try {
|
|
483
|
-
const baseUrl =
|
|
484
|
-
const apiKey =
|
|
483
|
+
const baseUrl = _chunkZEZ3CZ3Xjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
484
|
+
const apiKey = _chunkZEZ3CZ3Xjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
485
485
|
if (!apiKey) return;
|
|
486
|
-
const agentSessionId =
|
|
486
|
+
const agentSessionId = _chunkAEKJZJ4Rjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
487
487
|
await fetch(new URL("/api/v2/telemetry/command-output", baseUrl), {
|
|
488
488
|
method: "POST",
|
|
489
489
|
headers: {
|
|
490
|
-
...
|
|
490
|
+
..._chunkSJOHQ2WWjs.failureReportHeaders.call(void 0, apiKey),
|
|
491
491
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {}
|
|
492
492
|
},
|
|
493
493
|
body: JSON.stringify(body),
|
|
@@ -503,14 +503,14 @@ function startOutputSizeReporting(invocation, streams = {
|
|
|
503
503
|
const stdoutWatch = watch(streams.stdout);
|
|
504
504
|
const stderrWatch = watch(streams.stderr);
|
|
505
505
|
return async (finished) => {
|
|
506
|
-
if (
|
|
506
|
+
if (_chunkSJOHQ2WWjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
507
507
|
const [stdout, stderr] = await Promise.all([
|
|
508
508
|
stdoutWatch.settled(),
|
|
509
509
|
stderrWatch.settled()
|
|
510
510
|
]);
|
|
511
511
|
if (!shouldReport(stdout, stderr)) return;
|
|
512
512
|
await postCommandOutput({
|
|
513
|
-
command:
|
|
513
|
+
command: _chunkSJOHQ2WWjs.sanitizeCommand.call(void 0, invocation.argv),
|
|
514
514
|
tool: toolName(finished.action),
|
|
515
515
|
exit_code: typeof finished.exitCode === "number" ? finished.exitCode : null,
|
|
516
516
|
duration_ms: Math.max(0, Date.now() - invocation.startedAtMs),
|
|
@@ -541,7 +541,7 @@ function silenceCommanderErrorOutput(command) {
|
|
|
541
541
|
function printUsageErrorJson(code, message, commandPath) {
|
|
542
542
|
const unknownName = code === "commander.unknownCommand" ? _optionalChain([/unknown command '([^']+)'/, 'access', _6 => _6.exec, 'call', _7 => _7(message), 'optionalAccess', _8 => _8[1]]) : void 0;
|
|
543
543
|
const helpPath = unknownName && commandPath.endsWith(` ${unknownName}`) ? commandPath.slice(0, -unknownName.length - 1) : commandPath;
|
|
544
|
-
|
|
544
|
+
_chunkBCKIBVEJjs.printJson.call(void 0, {
|
|
545
545
|
ok: false,
|
|
546
546
|
error: {
|
|
547
547
|
code,
|
|
@@ -603,7 +603,7 @@ function topLevelCommandKnown(program, commandName) {
|
|
|
603
603
|
);
|
|
604
604
|
}
|
|
605
605
|
async function runPlayRunnerHealthCheck() {
|
|
606
|
-
|
|
606
|
+
_chunkZEZ3CZ3Xjs.resolveConfig.call(void 0, );
|
|
607
607
|
const dir = await _promises.mkdtemp.call(void 0, _path.join.call(void 0, _os.tmpdir.call(void 0, ), "deepline-health-play-"));
|
|
608
608
|
const file = _path.join.call(void 0, dir, "health-check.play.ts");
|
|
609
609
|
try {
|
|
@@ -633,7 +633,7 @@ async function runPlayRunnerHealthCheck() {
|
|
|
633
633
|
});
|
|
634
634
|
let exitCode = 1;
|
|
635
635
|
try {
|
|
636
|
-
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
636
|
+
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-VDAETQDI.js")));
|
|
637
637
|
exitCode = await handlePlayRun([
|
|
638
638
|
file,
|
|
639
639
|
"--input",
|
|
@@ -673,7 +673,7 @@ function preflightErrorMessage(error) {
|
|
|
673
673
|
return error instanceof Error ? error.message : String(error);
|
|
674
674
|
}
|
|
675
675
|
async function runPreflightCheck() {
|
|
676
|
-
const baseUrl =
|
|
676
|
+
const baseUrl = _chunkZEZ3CZ3Xjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
677
677
|
const healthController = new AbortController();
|
|
678
678
|
const healthTimeout = setTimeout(
|
|
679
679
|
() => healthController.abort(),
|
|
@@ -690,14 +690,14 @@ async function runPreflightCheck() {
|
|
|
690
690
|
}).catch((error) => ({
|
|
691
691
|
status: "unreachable",
|
|
692
692
|
version: null,
|
|
693
|
-
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` :
|
|
693
|
+
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` : _chunkAEKJZJ4Rjs.connectionFailureMessage.call(void 0,
|
|
694
694
|
baseUrl,
|
|
695
695
|
error instanceof Error ? error : new Error(String(error))
|
|
696
696
|
)
|
|
697
697
|
})).finally(() => clearTimeout(healthTimeout));
|
|
698
|
-
const apiKey =
|
|
699
|
-
const http = apiKey ? new (0,
|
|
700
|
-
|
|
698
|
+
const apiKey = _chunkZEZ3CZ3Xjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
699
|
+
const http = apiKey ? new (0, _chunkZEZ3CZ3Xjs.HttpClient)(
|
|
700
|
+
_chunkZEZ3CZ3Xjs.resolveConfig.call(void 0, {
|
|
701
701
|
baseUrl,
|
|
702
702
|
apiKey,
|
|
703
703
|
timeout: PREFLIGHT_TIMEOUT_MS,
|
|
@@ -742,7 +742,7 @@ async function runPreflightCheck() {
|
|
|
742
742
|
const connected = authStatus === "connected" || authStatus === "claimed";
|
|
743
743
|
return {
|
|
744
744
|
status: healthResult.status === "ok" && connected ? "ok" : "check",
|
|
745
|
-
cli_version:
|
|
745
|
+
cli_version: _chunkAEKJZJ4Rjs.SDK_VERSION,
|
|
746
746
|
host: baseUrl,
|
|
747
747
|
health: {
|
|
748
748
|
status: healthResult.status,
|
|
@@ -769,7 +769,7 @@ async function runPreflightCheck() {
|
|
|
769
769
|
{
|
|
770
770
|
title: "preflight",
|
|
771
771
|
lines: [
|
|
772
|
-
`cli: ${
|
|
772
|
+
`cli: ${_chunkAEKJZJ4Rjs.SDK_VERSION}`,
|
|
773
773
|
`host: ${baseUrl}`,
|
|
774
774
|
`health: ${healthResult.status}`,
|
|
775
775
|
..."error" in healthResult ? [` ${healthResult.error}`] : [],
|
|
@@ -796,12 +796,12 @@ function printPreflightHuman(data) {
|
|
|
796
796
|
}
|
|
797
797
|
async function newerCliCommandHint(baseUrl, command) {
|
|
798
798
|
if (!command.trim()) return null;
|
|
799
|
-
const { response, error } = await
|
|
799
|
+
const { response, error } = await _chunkSJOHQ2WWjs.checkSdkCompatibility.call(void 0, baseUrl, { command });
|
|
800
800
|
if (error || !response) return null;
|
|
801
801
|
const introduced = response.command_introduced_in;
|
|
802
802
|
if (introduced) {
|
|
803
803
|
return [
|
|
804
|
-
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${
|
|
804
|
+
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunkAEKJZJ4Rjs.SDK_VERSION}.`,
|
|
805
805
|
` ${introduced.reason}`,
|
|
806
806
|
` Update with: ${response.update_command}`,
|
|
807
807
|
" Agent skills are served by Deepline and refresh on their own, so a skill can describe a command this CLI does not have yet."
|
|
@@ -810,32 +810,32 @@ async function newerCliCommandHint(baseUrl, command) {
|
|
|
810
810
|
if (!response.update_required) return null;
|
|
811
811
|
return [
|
|
812
812
|
response.message,
|
|
813
|
-
` Installed: ${
|
|
813
|
+
` Installed: ${_chunkAEKJZJ4Rjs.SDK_VERSION}. Run: ${response.update_command}`,
|
|
814
814
|
" If an agent skill told you to run this, the skill is newer than this CLI."
|
|
815
815
|
].join("\n");
|
|
816
816
|
}
|
|
817
817
|
async function runMain(ensureTransport, onAction) {
|
|
818
818
|
const mainStartedAt = Date.now();
|
|
819
|
-
|
|
819
|
+
_chunkBCKIBVEJjs.installJsonStderrGuard.call(void 0, );
|
|
820
820
|
let rootHelpStatus = "";
|
|
821
821
|
let commandFailed = false;
|
|
822
822
|
const deferredMaintenance = { inlinePlay: null };
|
|
823
|
-
|
|
823
|
+
_chunkHNG2U3IGjs.recordCliTrace.call(void 0, {
|
|
824
824
|
phase: "cli.main_start",
|
|
825
825
|
argv: process.argv.slice(2)
|
|
826
826
|
});
|
|
827
827
|
const printStartupPhase = shouldPrintStartupPhase();
|
|
828
|
-
const progress = printStartupPhase ?
|
|
828
|
+
const progress = printStartupPhase ? _chunkQ7G7CU4Wjs.createCliProgress.call(void 0, true) : null;
|
|
829
829
|
if (printStartupPhase) {
|
|
830
830
|
_optionalChain([progress, 'optionalAccess', _14 => _14.phase, 'call', _15 => _15("loading deepline cli")]);
|
|
831
831
|
}
|
|
832
832
|
const program = new (0, _commander.Command)();
|
|
833
833
|
program.name("deepline").description(
|
|
834
834
|
"Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
|
|
835
|
-
).version(
|
|
835
|
+
).version(_chunkAEKJZJ4Rjs.SDK_VERSION, "-v, --version", "Show version").option(
|
|
836
836
|
"--maintenance <policy>",
|
|
837
837
|
"Installation maintenance: configured preferences or off; independent of output format",
|
|
838
|
-
|
|
838
|
+
_chunkHNG2U3IGjs.parseCliMaintenancePolicy,
|
|
839
839
|
"configured"
|
|
840
840
|
).exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
|
|
841
841
|
"beforeAll",
|
|
@@ -893,24 +893,24 @@ Exit codes:
|
|
|
893
893
|
path: compatibilityCommandPath(actionCommand),
|
|
894
894
|
args: actionCommand.processedArgs
|
|
895
895
|
});
|
|
896
|
-
const maintenance =
|
|
896
|
+
const maintenance = _chunkHNG2U3IGjs.resolveCliMaintenancePolicy.call(void 0,
|
|
897
897
|
actionCommand.optsWithGlobals()
|
|
898
898
|
);
|
|
899
899
|
if (actionCommand.name() !== "version") {
|
|
900
900
|
await ensureTransport();
|
|
901
901
|
}
|
|
902
|
-
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() ===
|
|
902
|
+
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunkSJOHQ2WWjs.SKILLS_AUTO_SYNC_COMMAND || actionCommand.name() === "doctor" || isAutoUpdateSettingsInvocation() || isDeprecatedCommandInvocation()) {
|
|
903
903
|
return;
|
|
904
904
|
}
|
|
905
905
|
const compatibilityCommand = compatibilityCommandPath(actionCommand) || actionCommand.name();
|
|
906
906
|
const isToolExecuteCommand = compatibilityCommand === "tools execute";
|
|
907
907
|
if (isToolExecuteCommand) {
|
|
908
|
-
|
|
908
|
+
_chunkTMAS3WH3js.beginToolExecuteCommand.call(void 0, );
|
|
909
909
|
}
|
|
910
910
|
if (isToolExecuteCommand) {
|
|
911
|
-
const baseUrl =
|
|
912
|
-
if (maintenance !== "off")
|
|
913
|
-
|
|
911
|
+
const baseUrl = _chunkZEZ3CZ3Xjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
912
|
+
if (maintenance !== "off") _chunkSJOHQ2WWjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
913
|
+
_chunkHNG2U3IGjs.recordCliTrace.call(void 0, {
|
|
914
914
|
phase: "cli.sdk_compatibility_deferred_to_tool_execute",
|
|
915
915
|
baseUrl,
|
|
916
916
|
command: compatibilityCommand
|
|
@@ -918,9 +918,9 @@ Exit codes:
|
|
|
918
918
|
return;
|
|
919
919
|
}
|
|
920
920
|
const playDryRun = compatibilityCommand === "plays run" && actionCommand.optsWithGlobals().dryRun === true;
|
|
921
|
-
if (!playDryRun &&
|
|
921
|
+
if (!playDryRun && _chunkTH7JLR5Djs.usesInlinePlayAdmission.call(void 0, compatibilityCommand, process.argv.slice(2))) {
|
|
922
922
|
if (maintenance !== "off") {
|
|
923
|
-
const baseUrl =
|
|
923
|
+
const baseUrl = _chunkZEZ3CZ3Xjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
924
924
|
deferredMaintenance.inlinePlay = createDeferredPlayRunMaintenance({
|
|
925
925
|
baseUrl,
|
|
926
926
|
command: actionCommand,
|
|
@@ -929,27 +929,27 @@ Exit codes:
|
|
|
929
929
|
}
|
|
930
930
|
return;
|
|
931
931
|
}
|
|
932
|
-
const runStartupStage = (stage, action) => isToolExecuteCommand ?
|
|
932
|
+
const runStartupStage = (stage, action) => isToolExecuteCommand ? _chunkTMAS3WH3js.runToolExecuteStage.call(void 0, stage, action) : Promise.resolve(action());
|
|
933
933
|
if (printStartupPhase) {
|
|
934
934
|
_optionalChain([progress, 'optionalAccess', _16 => _16.phase, 'call', _17 => _17("checking sdk compatibility")]);
|
|
935
935
|
}
|
|
936
936
|
const startup = await runStartupStage("SDK compatibility", async () => {
|
|
937
|
-
const baseUrl =
|
|
938
|
-
if (maintenance !== "off")
|
|
937
|
+
const baseUrl = _chunkZEZ3CZ3Xjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
938
|
+
if (maintenance !== "off") _chunkSJOHQ2WWjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
939
939
|
const shouldDeferSkillsSync = isToolExecuteCommand || maintenance === "off" || shouldDeferSkillsSyncForCommand();
|
|
940
|
-
const skillsVersion = shouldDeferSkillsSync ? void 0 :
|
|
941
|
-
const trusted = isToolExecuteCommand ? null :
|
|
940
|
+
const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunkZEZ3CZ3Xjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
941
|
+
const trusted = isToolExecuteCommand ? null : _chunkSJOHQ2WWjs.readTrustedCleanCompatibility.call(void 0,
|
|
942
942
|
baseUrl,
|
|
943
943
|
compatibilityCommand,
|
|
944
944
|
skillsVersion
|
|
945
945
|
);
|
|
946
|
-
const fastDeadline = !isToolExecuteCommand && trusted === null &&
|
|
946
|
+
const fastDeadline = !isToolExecuteCommand && trusted === null && _chunkSJOHQ2WWjs.readFreshCleanCompatibility.call(void 0,
|
|
947
947
|
baseUrl,
|
|
948
948
|
compatibilityCommand,
|
|
949
949
|
skillsVersion
|
|
950
950
|
) !== null;
|
|
951
951
|
if (trusted) {
|
|
952
|
-
|
|
952
|
+
_chunkHNG2U3IGjs.recordCliTrace.call(void 0, {
|
|
953
953
|
phase: "cli.sdk_compatibility",
|
|
954
954
|
ms: 0,
|
|
955
955
|
ok: true,
|
|
@@ -959,7 +959,7 @@ Exit codes:
|
|
|
959
959
|
source: "trusted_cache"
|
|
960
960
|
});
|
|
961
961
|
}
|
|
962
|
-
const compatibility = trusted ? { response: trusted, error: null } : await
|
|
962
|
+
const compatibility = trusted ? { response: trusted, error: null } : await _chunkHNG2U3IGjs.traceCliSpan.call(void 0,
|
|
963
963
|
"cli.sdk_compatibility",
|
|
964
964
|
{
|
|
965
965
|
baseUrl,
|
|
@@ -967,12 +967,12 @@ Exit codes:
|
|
|
967
967
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null)),
|
|
968
968
|
fastDeadline
|
|
969
969
|
},
|
|
970
|
-
() =>
|
|
970
|
+
() => _chunkSJOHQ2WWjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
971
971
|
command: compatibilityCommand,
|
|
972
972
|
skillsVersion,
|
|
973
973
|
persistCache: !isToolExecuteCommand && maintenance !== "off",
|
|
974
|
-
catalog:
|
|
975
|
-
...fastDeadline ? { timeoutMs:
|
|
974
|
+
catalog: _chunkTMAS3WH3js.compatibilityCatalog.call(void 0, actionCommand),
|
|
975
|
+
...fastDeadline ? { timeoutMs: _chunkSJOHQ2WWjs.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
|
|
976
976
|
})
|
|
977
977
|
);
|
|
978
978
|
if (compatibility.error) {
|
|
@@ -983,7 +983,7 @@ Exit codes:
|
|
|
983
983
|
response: null
|
|
984
984
|
};
|
|
985
985
|
}
|
|
986
|
-
const relaunched = await
|
|
986
|
+
const relaunched = await _chunkTMAS3WH3js.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
987
987
|
compatibility.response,
|
|
988
988
|
baseUrl,
|
|
989
989
|
maintenance
|
|
@@ -997,14 +997,14 @@ Exit codes:
|
|
|
997
997
|
};
|
|
998
998
|
}
|
|
999
999
|
const policy = compatibility.response;
|
|
1000
|
-
const jsonOutput =
|
|
1001
|
-
|
|
1000
|
+
const jsonOutput = _chunkBCKIBVEJjs.isJsonOutputMode.call(void 0, );
|
|
1001
|
+
_chunkSJOHQ2WWjs.enforceSdkCompatibilityResponse.call(void 0, policy, {
|
|
1002
1002
|
quietAdvisory: jsonOutput || // The queued update already says what is about to happen.
|
|
1003
|
-
|
|
1003
|
+
_chunkTMAS3WH3js.hasDeferredAutoUpdate.call(void 0, ) || maintenance === "off" || !_chunkSJOHQ2WWjs.claimUpdateAdvisory.call(void 0, baseUrl)
|
|
1004
1004
|
});
|
|
1005
1005
|
const advisory = compatibility.response;
|
|
1006
|
-
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !
|
|
1007
|
-
|
|
1006
|
+
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !_chunkSJOHQ2WWjs.isCiEnvironment.call(void 0, ) && !_chunkTMAS3WH3js.hasDeferredAutoUpdate.call(void 0, )) {
|
|
1007
|
+
_chunkBCKIBVEJjs.addJsonNotice.call(void 0, { code: advisory.status, message: advisory.message });
|
|
1008
1008
|
}
|
|
1009
1009
|
return {
|
|
1010
1010
|
shouldContinue: true,
|
|
@@ -1021,10 +1021,10 @@ Exit codes:
|
|
|
1021
1021
|
const skillsUpdate = startup.response && Object.prototype.hasOwnProperty.call(startup.response, "skills") ? _nullishCoalesce(startup.response.skills, () => ( null)) : void 0;
|
|
1022
1022
|
await runStartupStage(
|
|
1023
1023
|
"agent skills sync",
|
|
1024
|
-
() =>
|
|
1024
|
+
() => _chunkHNG2U3IGjs.traceCliSpan.call(void 0,
|
|
1025
1025
|
"cli.sdk_skills_sync",
|
|
1026
1026
|
{ baseUrl: startup.baseUrl },
|
|
1027
|
-
() =>
|
|
1027
|
+
() => _chunkSJOHQ2WWjs.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
|
|
1028
1028
|
update: skillsUpdate,
|
|
1029
1029
|
mode: "detached"
|
|
1030
1030
|
})
|
|
@@ -1036,16 +1036,16 @@ Exit codes:
|
|
|
1036
1036
|
program,
|
|
1037
1037
|
process.argv.slice(2)
|
|
1038
1038
|
);
|
|
1039
|
-
const commandRegistrationStartedAt =
|
|
1039
|
+
const commandRegistrationStartedAt = _chunkHNG2U3IGjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1040
1040
|
await registerDeeplineCommandGroups(program, requestedCommand);
|
|
1041
1041
|
if (commandRegistrationStartedAt !== void 0) {
|
|
1042
|
-
|
|
1042
|
+
_chunkHNG2U3IGjs.recordCliTrace.call(void 0, {
|
|
1043
1043
|
phase: "cli.command_registration",
|
|
1044
1044
|
ms: performance.now() - commandRegistrationStartedAt
|
|
1045
1045
|
});
|
|
1046
1046
|
}
|
|
1047
1047
|
const { preflight, health, version } = registerDeeplineInlineCommands(program);
|
|
1048
|
-
if (
|
|
1048
|
+
if (_chunkBCKIBVEJjs.isJsonOutputMode.call(void 0, )) silenceCommanderErrorOutput(program);
|
|
1049
1049
|
preflight.addHelpText(
|
|
1050
1050
|
"after",
|
|
1051
1051
|
`
|
|
@@ -1061,8 +1061,8 @@ Examples:
|
|
|
1061
1061
|
`
|
|
1062
1062
|
).action(async (options) => {
|
|
1063
1063
|
const data = await runPreflightCheck();
|
|
1064
|
-
if (
|
|
1065
|
-
|
|
1064
|
+
if (_chunkBCKIBVEJjs.shouldEmitJson.call(void 0, options.json)) {
|
|
1065
|
+
_chunkBCKIBVEJjs.printJson.call(void 0, data);
|
|
1066
1066
|
} else {
|
|
1067
1067
|
printPreflightHuman(data);
|
|
1068
1068
|
}
|
|
@@ -1087,7 +1087,7 @@ Examples:
|
|
|
1087
1087
|
).action(async (options) => {
|
|
1088
1088
|
if (options.playRunner) {
|
|
1089
1089
|
const data = await runPlayRunnerHealthCheck();
|
|
1090
|
-
|
|
1090
|
+
_chunkBCKIBVEJjs.printCommandEnvelope.call(void 0, data, {
|
|
1091
1091
|
json: options.json,
|
|
1092
1092
|
text: `play runner: ${data.playRunner.status} (${data.playRunner.check})
|
|
1093
1093
|
`
|
|
@@ -1095,15 +1095,15 @@ Examples:
|
|
|
1095
1095
|
return;
|
|
1096
1096
|
}
|
|
1097
1097
|
try {
|
|
1098
|
-
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1099
|
-
const baseUrl =
|
|
1098
|
+
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-QIDL3YCW.js")));
|
|
1099
|
+
const baseUrl = _chunkZEZ3CZ3Xjs.resolveBaseUrlOnly.call(void 0, );
|
|
1100
1100
|
const [{ status, data }, banner] = await Promise.all([
|
|
1101
1101
|
httpJson("GET", `${baseUrl}/api/v2/health`, null),
|
|
1102
1102
|
readStatusBanner(baseUrl)
|
|
1103
1103
|
]);
|
|
1104
1104
|
if (status !== 200) throw new Error(`HTTP ${status}`);
|
|
1105
1105
|
const lines = [`${baseUrl}: ${data.status}`, statusBannerLine(banner)];
|
|
1106
|
-
|
|
1106
|
+
_chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
|
|
1107
1107
|
{ ...data, status_banner: banner },
|
|
1108
1108
|
{
|
|
1109
1109
|
json: options.json,
|
|
@@ -1131,16 +1131,16 @@ Examples:
|
|
|
1131
1131
|
`
|
|
1132
1132
|
).action((options) => {
|
|
1133
1133
|
if (options.json) {
|
|
1134
|
-
|
|
1134
|
+
_chunkBCKIBVEJjs.printCompactJson.call(void 0, { version: _chunkAEKJZJ4Rjs.SDK_VERSION });
|
|
1135
1135
|
return;
|
|
1136
1136
|
}
|
|
1137
|
-
process.stdout.write(`deepline ${
|
|
1137
|
+
process.stdout.write(`deepline ${_chunkAEKJZJ4Rjs.SDK_VERSION}
|
|
1138
1138
|
`);
|
|
1139
1139
|
});
|
|
1140
1140
|
if (process.argv.slice(2).length === 0) {
|
|
1141
1141
|
program.outputHelp({ error: true });
|
|
1142
1142
|
console.error("\nerror: missing command (see usage above)");
|
|
1143
|
-
|
|
1143
|
+
_chunkHNG2U3IGjs.recordCliTrace.call(void 0, {
|
|
1144
1144
|
phase: "cli.main_total",
|
|
1145
1145
|
ms: Date.now() - mainStartedAt,
|
|
1146
1146
|
ok: false,
|
|
@@ -1152,16 +1152,16 @@ Examples:
|
|
|
1152
1152
|
const requestedTopLevelCommand = _nullishCoalesce(process.argv.slice(2)[0], () => ( ""));
|
|
1153
1153
|
if (!topLevelCommandKnown(program, requestedTopLevelCommand)) {
|
|
1154
1154
|
const unknownCommandMessage = `error: unknown command '${requestedTopLevelCommand}'`;
|
|
1155
|
-
if (!
|
|
1156
|
-
const baseUrl =
|
|
1155
|
+
if (!_chunkBCKIBVEJjs.isJsonOutputMode.call(void 0, )) console.error(unknownCommandMessage);
|
|
1156
|
+
const baseUrl = _chunkZEZ3CZ3Xjs.autoDetectBaseUrl.call(void 0, );
|
|
1157
1157
|
await ensureTransport();
|
|
1158
1158
|
const versionHint = await newerCliCommandHint(
|
|
1159
1159
|
baseUrl,
|
|
1160
1160
|
requestedTopLevelCommand
|
|
1161
1161
|
);
|
|
1162
|
-
if (
|
|
1162
|
+
if (_chunkBCKIBVEJjs.isJsonOutputMode.call(void 0, )) {
|
|
1163
1163
|
if (versionHint) {
|
|
1164
|
-
|
|
1164
|
+
_chunkBCKIBVEJjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1165
1165
|
}
|
|
1166
1166
|
printUsageErrorJson(
|
|
1167
1167
|
"commander.unknownCommand",
|
|
@@ -1183,18 +1183,18 @@ Examples:
|
|
|
1183
1183
|
const helpArgs = process.argv.slice(2);
|
|
1184
1184
|
const helpPositionals = helpArgs.filter((arg) => !arg.startsWith("-"));
|
|
1185
1185
|
if (helpPositionals.length === 0 ? helpArgs.includes("--help") || helpArgs.includes("-h") : helpPositionals.length === 1 && helpPositionals[0] === "help") {
|
|
1186
|
-
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1187
|
-
rootHelpStatus = `Version: ${
|
|
1186
|
+
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-QIDL3YCW.js")));
|
|
1187
|
+
rootHelpStatus = `Version: ${_chunkAEKJZJ4Rjs.SDK_VERSION}
|
|
1188
1188
|
${await authStatusLine()}
|
|
1189
1189
|
`;
|
|
1190
1190
|
}
|
|
1191
1191
|
await program.parseAsync(process.argv);
|
|
1192
|
-
|
|
1192
|
+
_chunkHNG2U3IGjs.recordCliTrace.call(void 0, {
|
|
1193
1193
|
phase: "cli.main_total",
|
|
1194
1194
|
ms: Date.now() - mainStartedAt,
|
|
1195
1195
|
ok: true
|
|
1196
1196
|
});
|
|
1197
|
-
await
|
|
1197
|
+
await _chunkSJOHQ2WWjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1198
1198
|
argv: process.argv.slice(2),
|
|
1199
1199
|
startedAtMs: mainStartedAt,
|
|
1200
1200
|
exitCode: typeof process.exitCode === "number" ? process.exitCode : null
|
|
@@ -1202,14 +1202,14 @@ ${await authStatusLine()}
|
|
|
1202
1202
|
} catch (error) {
|
|
1203
1203
|
commandFailed = true;
|
|
1204
1204
|
const commanderError = asCommanderError(error);
|
|
1205
|
-
|
|
1205
|
+
_chunkHNG2U3IGjs.recordCliTrace.call(void 0, {
|
|
1206
1206
|
phase: "cli.main_total",
|
|
1207
1207
|
ms: Date.now() - mainStartedAt,
|
|
1208
1208
|
ok: false,
|
|
1209
1209
|
error: error instanceof Error ? error.message : String(error)
|
|
1210
1210
|
});
|
|
1211
1211
|
_optionalChain([progress, 'optionalAccess', _20 => _20.fail, 'call', _21 => _21()]);
|
|
1212
|
-
const wantsJson =
|
|
1212
|
+
const wantsJson = _chunkBCKIBVEJjs.isJsonOutputMode.call(void 0, );
|
|
1213
1213
|
if (commanderError) {
|
|
1214
1214
|
const grammarError = [
|
|
1215
1215
|
"commander.unknownCommand",
|
|
@@ -1220,12 +1220,12 @@ ${await authStatusLine()}
|
|
|
1220
1220
|
if (grammarError) {
|
|
1221
1221
|
await ensureTransport();
|
|
1222
1222
|
const versionHint = await newerCliCommandHint(
|
|
1223
|
-
|
|
1223
|
+
_chunkZEZ3CZ3Xjs.autoDetectBaseUrl.call(void 0, ),
|
|
1224
1224
|
commandPath
|
|
1225
1225
|
);
|
|
1226
1226
|
if (wantsJson) {
|
|
1227
1227
|
if (versionHint) {
|
|
1228
|
-
|
|
1228
|
+
_chunkBCKIBVEJjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1229
1229
|
}
|
|
1230
1230
|
} else {
|
|
1231
1231
|
if (versionHint) console.error(versionHint);
|
|
@@ -1245,55 +1245,55 @@ ${await authStatusLine()}
|
|
|
1245
1245
|
return;
|
|
1246
1246
|
} else if (wantsJson) {
|
|
1247
1247
|
if (error instanceof _chunkALJJRZNJjs.AuthError) {
|
|
1248
|
-
|
|
1248
|
+
_chunkBCKIBVEJjs.addJsonNotice.call(void 0, {
|
|
1249
1249
|
code: "auth_required",
|
|
1250
1250
|
message: `Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`
|
|
1251
1251
|
});
|
|
1252
1252
|
}
|
|
1253
|
-
const providerConcurrency =
|
|
1253
|
+
const providerConcurrency = _chunkBCKIBVEJjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1254
1254
|
if (providerConcurrency) {
|
|
1255
|
-
|
|
1255
|
+
_chunkBCKIBVEJjs.addJsonNotice.call(void 0, {
|
|
1256
1256
|
code: "provider_concurrency",
|
|
1257
1257
|
message: providerConcurrency
|
|
1258
1258
|
});
|
|
1259
1259
|
}
|
|
1260
|
-
const payload =
|
|
1261
|
-
|
|
1260
|
+
const payload = _chunkBCKIBVEJjs.errorToJsonPayload.call(void 0, error);
|
|
1261
|
+
_chunkBCKIBVEJjs.printJson.call(void 0, {
|
|
1262
1262
|
...payload,
|
|
1263
1263
|
// The envelope names the code the process exits with, so a caller
|
|
1264
1264
|
// that only reads stdout still cannot mistake a failure for data.
|
|
1265
|
-
exitCode: _nullishCoalesce(payload.exitCode, () => (
|
|
1265
|
+
exitCode: _nullishCoalesce(payload.exitCode, () => ( _chunkSJOHQ2WWjs.resolveSdkCliFailureExitCode.call(void 0, error))),
|
|
1266
1266
|
...error instanceof _chunkALJJRZNJjs.AuthError ? { next: AUTH_RECOVERY_COMMAND } : {}
|
|
1267
1267
|
});
|
|
1268
1268
|
} else if (error instanceof Error) {
|
|
1269
1269
|
console.error(`Error: ${error.message}`);
|
|
1270
|
-
const toolDiagnostic =
|
|
1270
|
+
const toolDiagnostic = _chunkBCKIBVEJjs.formatToolExecutionErrorDiagnostic.call(void 0, error);
|
|
1271
1271
|
if (toolDiagnostic) console.error(toolDiagnostic);
|
|
1272
1272
|
if (error instanceof _chunkALJJRZNJjs.AuthError) {
|
|
1273
1273
|
console.error(`Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`);
|
|
1274
1274
|
}
|
|
1275
|
-
const providerConcurrency =
|
|
1275
|
+
const providerConcurrency = _chunkBCKIBVEJjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1276
1276
|
if (providerConcurrency) console.error(providerConcurrency);
|
|
1277
1277
|
} else {
|
|
1278
1278
|
console.error(`Error: ${String(error)}`);
|
|
1279
1279
|
}
|
|
1280
1280
|
const explicitExitCode = error && typeof error === "object" && typeof error.exitCode === "number" ? error.exitCode : void 0;
|
|
1281
|
-
const failureExitCode = _nullishCoalesce(explicitExitCode, () => (
|
|
1281
|
+
const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunkSJOHQ2WWjs.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
1282
1282
|
process.exitCode = failureExitCode;
|
|
1283
|
-
await
|
|
1283
|
+
await _chunkSJOHQ2WWjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1284
1284
|
argv: process.argv.slice(2),
|
|
1285
1285
|
startedAtMs: mainStartedAt,
|
|
1286
1286
|
exitCode: failureExitCode,
|
|
1287
1287
|
error
|
|
1288
1288
|
});
|
|
1289
1289
|
} finally {
|
|
1290
|
-
|
|
1290
|
+
_chunkTMAS3WH3js.finishToolExecuteCommand.call(void 0, );
|
|
1291
1291
|
const maintainInlinePlay = deferredMaintenance.inlinePlay;
|
|
1292
1292
|
deferredMaintenance.inlinePlay = null;
|
|
1293
1293
|
if (commandFailed || typeof process.exitCode === "number" && process.exitCode !== 0) {
|
|
1294
1294
|
await _optionalChain([maintainInlinePlay, 'optionalCall', _22 => _22()]);
|
|
1295
1295
|
}
|
|
1296
|
-
await
|
|
1296
|
+
await _chunkTMAS3WH3js.runDeferredAutoUpdate.call(void 0, );
|
|
1297
1297
|
}
|
|
1298
1298
|
process.exitCode = _nullishCoalesce(process.exitCode, () => ( 0));
|
|
1299
1299
|
}
|
|
@@ -1301,7 +1301,7 @@ async function main() {
|
|
|
1301
1301
|
let disposeTransport;
|
|
1302
1302
|
const ensureTransport = async () => {
|
|
1303
1303
|
if (disposeTransport) return;
|
|
1304
|
-
const transportStartedAt =
|
|
1304
|
+
const transportStartedAt = _chunkHNG2U3IGjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1305
1305
|
const hasProxy = [
|
|
1306
1306
|
"HTTP_PROXY",
|
|
1307
1307
|
"http_proxy",
|
|
@@ -1313,7 +1313,7 @@ async function main() {
|
|
|
1313
1313
|
disposeTransport = configureCliTransport();
|
|
1314
1314
|
}
|
|
1315
1315
|
if (transportStartedAt !== void 0) {
|
|
1316
|
-
|
|
1316
|
+
_chunkHNG2U3IGjs.recordCliTrace.call(void 0, {
|
|
1317
1317
|
phase: "cli.transport_setup",
|
|
1318
1318
|
ms: performance.now() - transportStartedAt
|
|
1319
1319
|
});
|
|
@@ -1330,9 +1330,9 @@ async function main() {
|
|
|
1330
1330
|
action = dispatched;
|
|
1331
1331
|
skipOutputReport = dispatched.path === "tools execute" || dispatched.path === "plays run" && process.argv.includes("--json");
|
|
1332
1332
|
});
|
|
1333
|
-
const silentFailure =
|
|
1333
|
+
const silentFailure = _chunkBCKIBVEJjs.takeSilentJsonFailureMessage.call(void 0, process.exitCode);
|
|
1334
1334
|
if (silentFailure) {
|
|
1335
|
-
|
|
1335
|
+
_chunkBCKIBVEJjs.printJson.call(void 0, {
|
|
1336
1336
|
ok: false,
|
|
1337
1337
|
exitCode: Number(process.exitCode),
|
|
1338
1338
|
error: { code: "CLI_ERROR", message: silentFailure }
|