deepline 0.3.482 → 0.3.483
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/cli/{auth-R5GFDAMI.mjs → auth-2NXF6Q3Q.mjs} +5 -5
- package/dist/cli/auth-JHQKM6QY.js +43 -0
- package/dist/cli/{billing-DXKVQPTC.js → billing-5PW4L5WD.js} +79 -79
- package/dist/cli/{billing-SO5SFQFC.mjs → billing-W2Y4EOZP.mjs} +6 -6
- package/dist/cli/{chunk-DYHBKFCW.mjs → chunk-25IGCYJP.mjs} +3 -3
- package/dist/cli/{chunk-3EN2BLAS.js → chunk-2JWG2H2N.js} +1 -1
- package/dist/cli/{chunk-Y4Y2QUFL.js → chunk-2MKX3HV3.js} +5 -5
- package/dist/cli/{chunk-LKFQERA6.js → chunk-2T4OSJEH.js} +21 -21
- package/dist/cli/{chunk-JLI7SK55.mjs → chunk-4X23YY2E.mjs} +5 -5
- package/dist/cli/chunk-5AEDYVB6.mjs +6 -0
- package/dist/cli/{chunk-SFZCKYTD.js → chunk-5ICAG4RE.js} +9 -9
- package/dist/cli/{chunk-UVU4OCYO.js → chunk-5JCXS4MP.js} +5 -5
- package/dist/cli/{chunk-OVSSKTXG.js → chunk-5LHU7NUS.js} +3 -3
- package/dist/cli/{chunk-DZRHML3J.js → chunk-62XGOB2D.js} +26 -26
- package/dist/cli/{chunk-NXTZ4UNI.js → chunk-75IIHFN6.js} +4 -4
- package/dist/cli/{chunk-LVOEZVDW.mjs → chunk-7APXZ3CX.mjs} +2 -2
- package/dist/cli/{chunk-M6B2OZGA.js → chunk-7TKLISLM.js} +3 -3
- package/dist/cli/{chunk-RCWBWM5J.mjs → chunk-AWAFYRFV.mjs} +1 -1
- package/dist/cli/{chunk-RLYJ4O6Q.js → chunk-B7HQL77V.js} +53 -53
- package/dist/cli/{chunk-RLG2MNXH.mjs → chunk-C3LJSOQ6.mjs} +4 -4
- package/dist/cli/chunk-D3BCSAN7.js +6 -0
- package/dist/cli/{chunk-AEMPAR6L.js → chunk-DS455RPF.js} +3 -3
- package/dist/cli/{chunk-G7N2DYQL.mjs → chunk-EDMCD7MX.mjs} +5 -5
- package/dist/cli/{chunk-QCIG6V26.mjs → chunk-EGHYGTJM.mjs} +1 -1
- package/dist/cli/{chunk-LMLN7R7X.mjs → chunk-FAZTLYJO.mjs} +2 -2
- package/dist/cli/{chunk-EC2QPBSZ.mjs → chunk-FGEC5SWP.mjs} +4 -4
- package/dist/cli/{chunk-5MHCTVMM.mjs → chunk-FK47YUPC.mjs} +1 -1
- package/dist/cli/{chunk-Y6OKWGAM.mjs → chunk-GGJQ4HJW.mjs} +2 -2
- package/dist/cli/{chunk-OO6HA5OT.js → chunk-GONUMUBM.js} +7 -7
- package/dist/cli/{chunk-BK3XMHPF.mjs → chunk-GRE3ID5E.mjs} +1 -1
- package/dist/cli/{chunk-SKBXTN5F.mjs → chunk-IEV5UWPN.mjs} +1 -1
- package/dist/cli/chunk-ISP7ZENV.mjs +200 -0
- package/dist/cli/{chunk-7SZUHFJ6.mjs → chunk-J7S3DJB4.mjs} +2 -2
- package/dist/cli/{chunk-AJT436SK.mjs → chunk-JJSLEMQQ.mjs} +1 -1
- package/dist/cli/{chunk-2KC3MJP5.mjs → chunk-JYEZ6BWX.mjs} +2 -2
- package/dist/cli/{chunk-BHID34HA.js → chunk-MYB6JVSD.js} +16 -16
- package/dist/cli/{chunk-AZRG5NWV.mjs → chunk-NREZRYPU.mjs} +2 -2
- package/dist/cli/{chunk-4V34YMLU.js → chunk-PHDEQ6W3.js} +6 -6
- package/dist/cli/{chunk-FKGA7VKL.mjs → chunk-PRL7EKJZ.mjs} +4 -4
- package/dist/cli/{chunk-YT6GV6RP.js → chunk-QSYA6VE4.js} +2 -2
- package/dist/cli/{chunk-FUVJPW7O.js → chunk-R2OR4RHV.js} +8 -8
- package/dist/cli/{chunk-DM7APZWK.mjs → chunk-S24CK3CJ.mjs} +2 -2
- package/dist/cli/{chunk-KDJZXX7I.mjs → chunk-SCPFOH5Z.mjs} +1 -1
- package/dist/cli/{chunk-6NF7S5WY.js → chunk-T5GZZJ7O.js} +6 -6
- package/dist/cli/{chunk-HYS35M6H.mjs → chunk-UDF2CY4D.mjs} +10 -10
- package/dist/cli/{chunk-ETJSPSOQ.js → chunk-UGBZ6MCR.js} +2 -2
- package/dist/cli/{chunk-MFNEJOQG.js → chunk-UY7OXFVU.js} +10 -10
- package/dist/cli/{chunk-2ZIUCN5I.js → chunk-VFEW53L5.js} +93 -93
- package/dist/cli/{chunk-VU2PUAEH.js → chunk-WI2HNYQX.js} +53 -53
- package/dist/cli/{chunk-AZUDSDZX.js → chunk-WKB6Y43W.js} +37 -37
- package/dist/cli/chunk-XRIQN6EP.js +200 -0
- package/dist/cli/{chunk-FQFAWIRK.mjs → chunk-YL64JIQ7.mjs} +1 -1
- package/dist/cli/{csv-IC3XJ4PV.mjs → csv-DIFVIR23.mjs} +4 -4
- package/dist/cli/{csv-UWFQLI3K.js → csv-EKEFLUIW.js} +13 -13
- package/dist/cli/{db-RIPJQYF3.mjs → db-DOW4EVEU.mjs} +6 -6
- package/dist/cli/{db-PT73YDEP.js → db-S7DDRUHX.js} +27 -27
- package/dist/cli/{describe-GHI2MTDW.mjs → describe-KSZFOWKV.mjs} +18 -17
- package/dist/cli/describe-RXYQCJRR.js +49 -0
- package/dist/cli/{executions-QUOWVXCU.js → executions-3DU5IXB6.js} +8 -8
- package/dist/cli/{executions-XUJBZF5H.mjs → executions-CAG7YC5K.mjs} +6 -6
- package/dist/cli/{feedback-JOZ7QNGH.mjs → feedback-BQMPTE47.mjs} +4 -4
- package/dist/cli/{feedback-UDZ7BFB3.js → feedback-I65JMCP2.js} +8 -8
- package/dist/cli/git-ADIABNMQ.js +25 -0
- package/dist/cli/{git-O67OED4L.mjs → git-UQUCD7XZ.mjs} +5 -5
- package/dist/cli/index.js +138 -138
- package/dist/cli/index.mjs +42 -42
- package/dist/cli/{legacy-noops-T2G2TKO2.mjs → legacy-noops-JXKLHUI3.mjs} +5 -5
- package/dist/cli/{legacy-noops-ZFD6Z2ID.js → legacy-noops-OLNT2BG5.js} +8 -8
- package/dist/cli/{monitors-WSH4I37O.mjs → monitors-DLTHHAFQ.mjs} +7 -7
- package/dist/cli/{monitors-QPWEWJW7.js → monitors-Z5X56AZN.js} +91 -91
- package/dist/cli/{org-FVM465Q4.mjs → org-6EZZHD3M.mjs} +6 -6
- package/dist/cli/{org-PZOFC4P3.js → org-XBHJLKUG.js} +72 -72
- package/dist/cli/{pages-A5SLKL6L.mjs → pages-MYXROSVK.mjs} +6 -6
- package/dist/cli/{pages-UMDOU2WF.js → pages-XVJ34SCN.js} +17 -17
- package/dist/cli/{play-XKJLIZQE.mjs → play-5PV4LAHE.mjs} +26 -22
- package/dist/cli/{play-AFGL5D7B.js → play-ACC4T2XQ.js} +495 -491
- package/dist/cli/{providers-A2EIHS3P.mjs → providers-2DLUGIFF.mjs} +6 -6
- package/dist/cli/{providers-CQDRM62K.js → providers-JCI3KNE4.js} +9 -9
- package/dist/cli/{quickstart-BJ2XCUVV.mjs → quickstart-NSL3C76K.mjs} +4 -4
- package/dist/cli/{quickstart-NMJLH7T6.js → quickstart-PDSQEDLD.js} +6 -6
- package/dist/cli/{run-S4XTJADQ.js → run-UCFMHOQC.js} +37 -36
- package/dist/cli/{run-63I5M3ID.mjs → run-X5MXCM4P.mjs} +26 -25
- package/dist/cli/{search-DUIWWZ56.mjs → search-RPEMXV6N.mjs} +8 -8
- package/dist/cli/search-YILJZD36.js +32 -0
- package/dist/cli/{chunk-EDBQIPMG.mjs → search-output-6UO47B7G.mjs} +14 -194
- package/dist/cli/{chunk-UXQZLXHZ.js → search-output-MZH3HLVE.js} +14 -194
- package/dist/cli/{secrets-FK4PQJ6U.mjs → secrets-NLEQURD3.mjs} +6 -6
- package/dist/cli/{secrets-Q6QEWCAT.js → secrets-UFBASYGY.js} +15 -15
- package/dist/cli/{sessions-QJSN6AUL.mjs → sessions-3ALFLWVU.mjs} +5 -5
- package/dist/cli/{sessions-KF6JPKFK.js → sessions-JYH4DBEE.js} +6 -6
- package/dist/cli/{settings-PIKGA5PF.js → settings-MQYKNAMB.js} +78 -78
- package/dist/cli/{settings-UIQP5ERC.mjs → settings-YPRILREA.mjs} +11 -11
- package/dist/cli/{setup-ROKA4M5X.js → setup-5IGSHH4E.js} +47 -47
- package/dist/cli/{setup-4CALCNAA.mjs → setup-DK4GM227.mjs} +9 -9
- package/dist/cli/skills-I4IUZN3U.js +33 -0
- package/dist/cli/{skills-SQKRC7W4.mjs → skills-KYBZH3IT.mjs} +7 -7
- package/dist/cli/{tools-B6J53QS2.mjs → tools-4B2MHNBN.mjs} +17 -16
- package/dist/cli/tools-NLZR7ABS.js +56 -0
- package/dist/cli/update-RVDEUJTE.js +33 -0
- package/dist/cli/{update-MVKCAJJV.mjs → update-S6VEO7NB.mjs} +9 -9
- package/dist/cli/{workflow-VH2H4VS3.js → workflow-FU2XVPUK.js} +17 -17
- package/dist/cli/{workflow-3BO5WPZO.mjs → workflow-KXZZYFEF.mjs} +7 -7
- package/dist/index.js +10 -10
- package/dist/index.mjs +10 -10
- package/dist/install-integrity.json +100 -96
- package/dist/plays/bundle-play-file.mjs +6 -6
- 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.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-Q5VRDGL4.js +0 -43
- package/dist/cli/describe-72RFB7RS.js +0 -48
- package/dist/cli/git-A6SU7ITW.js +0 -25
- package/dist/cli/search-ACCI4VYH.js +0 -32
- package/dist/cli/skills-GZQSDPZX.js +0 -33
- package/dist/cli/tools-5C7ZVTDG.js +0 -55
- package/dist/cli/update-PR4QP7JN.js +0 -33
package/dist/cli/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
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 _chunkPHDEQ6W3js = require('./chunk-PHDEQ6W3.js');
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
|
|
10
|
-
var _chunkLKFQERA6js = require('./chunk-LKFQERA6.js');
|
|
11
|
-
require('./chunk-BHID34HA.js');
|
|
12
|
-
require('./chunk-ETJSPSOQ.js');
|
|
13
|
-
require('./chunk-AZUDSDZX.js');
|
|
14
11
|
|
|
15
12
|
|
|
16
|
-
var
|
|
13
|
+
var _chunk2T4OSJEHjs = require('./chunk-2T4OSJEH.js');
|
|
17
14
|
|
|
18
15
|
|
|
19
16
|
|
|
20
17
|
|
|
21
18
|
|
|
22
19
|
|
|
23
|
-
var
|
|
20
|
+
var _chunkQSYA6VE4js = require('./chunk-QSYA6VE4.js');
|
|
21
|
+
require('./chunk-MYB6JVSD.js');
|
|
22
|
+
require('./chunk-UGBZ6MCR.js');
|
|
23
|
+
require('./chunk-WKB6Y43W.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -38,10 +38,10 @@ var _chunkYT6GV6RPjs = require('./chunk-YT6GV6RP.js');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkB7HQL77Vjs = require('./chunk-B7HQL77V.js');
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunkDS455RPFjs = require('./chunk-DS455RPF.js');
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
@@ -59,7 +59,7 @@ var _chunkOKAZHDYNjs = require('./chunk-OKAZHDYN.js');
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var _chunkGONUMUBMjs = require('./chunk-GONUMUBM.js');
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
|
|
@@ -67,18 +67,18 @@ var _chunkOO6HA5OTjs = require('./chunk-OO6HA5OT.js');
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
var
|
|
70
|
+
var _chunk5LHU7NUSjs = require('./chunk-5LHU7NUS.js');
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
|
|
74
74
|
|
|
75
|
-
var
|
|
75
|
+
var _chunk75IIHFN6js = require('./chunk-75IIHFN6.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-2JWG2H2N.js');
|
|
82
82
|
require('./chunk-OG64RBAC.js');
|
|
83
83
|
require('./chunk-COGTRVWW.js');
|
|
84
84
|
|
|
@@ -158,56 +158,56 @@ var _os = require('os');
|
|
|
158
158
|
var COMMAND_GROUPS = [
|
|
159
159
|
{
|
|
160
160
|
names: ["auth"],
|
|
161
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
161
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-JHQKM6QY.js")))).registerAuthCommands
|
|
162
162
|
},
|
|
163
163
|
{
|
|
164
164
|
names: ["providers"],
|
|
165
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-
|
|
165
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-JCI3KNE4.js")))).registerProviderCommands
|
|
166
166
|
},
|
|
167
167
|
{
|
|
168
168
|
names: ["search"],
|
|
169
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-
|
|
169
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-YILJZD36.js")))).registerSearchCommand
|
|
170
170
|
},
|
|
171
171
|
{
|
|
172
172
|
names: ["describe"],
|
|
173
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
173
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-RXYQCJRR.js")))).registerDescribeCommand
|
|
174
174
|
},
|
|
175
175
|
{
|
|
176
176
|
names: ["run"],
|
|
177
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-
|
|
177
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-UCFMHOQC.js")))).registerRunCommand
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
180
|
names: ["tools"],
|
|
181
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
181
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-NLZR7ABS.js")))).registerToolsCommands
|
|
182
182
|
},
|
|
183
183
|
{
|
|
184
184
|
names: ["executions"],
|
|
185
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-
|
|
185
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-3DU5IXB6.js")))).registerExecutionsCommands
|
|
186
186
|
},
|
|
187
187
|
{
|
|
188
188
|
names: ["plays", "runs"],
|
|
189
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
189
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-ACC4T2XQ.js")))).registerPlayCommands
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
192
|
names: ["sessions"],
|
|
193
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-
|
|
193
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-JYH4DBEE.js")))).registerSessionsCommands
|
|
194
194
|
},
|
|
195
195
|
{
|
|
196
196
|
names: ["workflows"],
|
|
197
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-
|
|
197
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-FU2XVPUK.js")))).registerWorkflowCommands
|
|
198
198
|
},
|
|
199
199
|
{
|
|
200
200
|
names: ["pages"],
|
|
201
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./pages-
|
|
201
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./pages-XVJ34SCN.js")))).registerPagesCommands
|
|
202
202
|
},
|
|
203
203
|
{
|
|
204
204
|
names: ["secrets"],
|
|
205
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-
|
|
205
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-UFBASYGY.js")))).registerSecretsCommands
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
208
|
names: ["settings", "notifications"],
|
|
209
209
|
load: async () => {
|
|
210
|
-
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-
|
|
210
|
+
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-MQYKNAMB.js")));
|
|
211
211
|
return (p) => {
|
|
212
212
|
commands.registerSettingsCommands(p);
|
|
213
213
|
commands.registerNotificationCommands(p);
|
|
@@ -216,51 +216,51 @@ var COMMAND_GROUPS = [
|
|
|
216
216
|
},
|
|
217
217
|
{
|
|
218
218
|
names: ["billing"],
|
|
219
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-
|
|
219
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-5PW4L5WD.js")))).registerBillingCommands
|
|
220
220
|
},
|
|
221
221
|
{
|
|
222
222
|
names: ["monitors"],
|
|
223
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-
|
|
223
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-Z5X56AZN.js")))).registerMonitorsCommands
|
|
224
224
|
},
|
|
225
225
|
{
|
|
226
226
|
names: ["org"],
|
|
227
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-
|
|
227
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-XBHJLKUG.js")))).registerOrgCommands
|
|
228
228
|
},
|
|
229
229
|
{
|
|
230
230
|
names: ["git", "projects", "deployments"],
|
|
231
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-
|
|
231
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-ADIABNMQ.js")))).registerGitCommands
|
|
232
232
|
},
|
|
233
233
|
{
|
|
234
234
|
names: ["csv"],
|
|
235
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-
|
|
235
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-EKEFLUIW.js")))).registerCsvCommands
|
|
236
236
|
},
|
|
237
237
|
{
|
|
238
238
|
names: ["db"],
|
|
239
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-
|
|
239
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-S7DDRUHX.js")))).registerDbCommands
|
|
240
240
|
},
|
|
241
241
|
{
|
|
242
242
|
names: ["feedback"],
|
|
243
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-
|
|
243
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-I65JMCP2.js")))).registerFeedbackCommands
|
|
244
244
|
},
|
|
245
245
|
{
|
|
246
246
|
names: ["enrich", "session", "backend"],
|
|
247
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-
|
|
247
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-OLNT2BG5.js")))).registerDeprecatedCommands
|
|
248
248
|
},
|
|
249
249
|
{
|
|
250
250
|
names: ["update"],
|
|
251
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-
|
|
251
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-RVDEUJTE.js")))).registerUpdateCommand
|
|
252
252
|
},
|
|
253
253
|
{
|
|
254
254
|
names: ["skills", "skills-auto-sync"],
|
|
255
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-
|
|
255
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-I4IUZN3U.js")))).registerSkillsCommand
|
|
256
256
|
},
|
|
257
257
|
{
|
|
258
258
|
names: ["setup", "doctor"],
|
|
259
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-
|
|
259
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-5IGSHH4E.js")))).registerSetupCommands
|
|
260
260
|
},
|
|
261
261
|
{
|
|
262
262
|
names: ["quickstart"],
|
|
263
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-
|
|
263
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-PDSQEDLD.js")))).registerQuickstartCommands
|
|
264
264
|
}
|
|
265
265
|
];
|
|
266
266
|
async function registerDeeplineCommandGroups(program, requestedCommand) {
|
|
@@ -286,8 +286,8 @@ function registerDeeplineInlineCommands(program) {
|
|
|
286
286
|
function createDeferredPlayRunMaintenance(input) {
|
|
287
287
|
return async () => {
|
|
288
288
|
try {
|
|
289
|
-
const skillsVersion =
|
|
290
|
-
const compatibility = await
|
|
289
|
+
const skillsVersion = _chunk5LHU7NUSjs.readSdkSkillsLocalVersion.call(void 0, input.baseUrl);
|
|
290
|
+
const compatibility = await _chunkQSYA6VE4js.traceCliSpan.call(void 0,
|
|
291
291
|
"cli.sdk_compatibility_deferred",
|
|
292
292
|
{
|
|
293
293
|
baseUrl: input.baseUrl,
|
|
@@ -295,24 +295,24 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
295
295
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
296
296
|
},
|
|
297
297
|
async () => {
|
|
298
|
-
const trusted =
|
|
298
|
+
const trusted = _chunkB7HQL77Vjs.readTrustedCleanCompatibility.call(void 0,
|
|
299
299
|
input.baseUrl,
|
|
300
300
|
"plays run",
|
|
301
301
|
skillsVersion
|
|
302
302
|
);
|
|
303
303
|
if (trusted) return { response: trusted, error: null };
|
|
304
|
-
return
|
|
304
|
+
return _chunkB7HQL77Vjs.checkSdkCompatibility.call(void 0, input.baseUrl, {
|
|
305
305
|
command: "plays run",
|
|
306
306
|
skillsVersion,
|
|
307
307
|
persistCache: input.policy !== "off",
|
|
308
|
-
catalog:
|
|
308
|
+
catalog: _chunk2T4OSJEHjs.compatibilityCatalog.call(void 0, input.command)
|
|
309
309
|
});
|
|
310
310
|
}
|
|
311
311
|
);
|
|
312
312
|
if (compatibility.error || !compatibility.response) return;
|
|
313
313
|
const automaticUpdate = compatibility.response.auto_update;
|
|
314
314
|
if (_optionalChain([automaticUpdate, 'optionalAccess', _4 => _4.should_auto_update]) && !automaticUpdate.required && automaticUpdate.reason !== "rollback_forced") {
|
|
315
|
-
await
|
|
315
|
+
await _chunk2T4OSJEHjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
316
316
|
compatibility.response,
|
|
317
317
|
input.baseUrl,
|
|
318
318
|
input.policy
|
|
@@ -322,7 +322,7 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
322
322
|
compatibility.response,
|
|
323
323
|
"skills"
|
|
324
324
|
) ? _nullishCoalesce(compatibility.response.skills, () => ( null)) : void 0;
|
|
325
|
-
await
|
|
325
|
+
await _chunkB7HQL77Vjs.syncSdkSkillsIfNeeded.call(void 0, input.baseUrl, {
|
|
326
326
|
update: skillsUpdate,
|
|
327
327
|
mode: "detached"
|
|
328
328
|
});
|
|
@@ -350,7 +350,7 @@ var MAX_SESSIONS = 20;
|
|
|
350
350
|
function helpSeenPath(homeDir = _os.homedir.call(void 0, )) {
|
|
351
351
|
return _path.join.call(void 0, homeDir, ".local", "deepline", "sdk-cli", "help-seen.json");
|
|
352
352
|
}
|
|
353
|
-
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId =
|
|
353
|
+
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId = _chunk75IIHFN6js.agentSessionIdFromEnvironment.call(void 0, )) {
|
|
354
354
|
const explicit = _chunkOKAZHDYNjs.helpDetailFromArgv.call(void 0, argv);
|
|
355
355
|
if (explicit === "quiet") return { detail: "quiet", firstRead: false };
|
|
356
356
|
if (!sessionId) return { detail: explicit, firstRead: false };
|
|
@@ -448,7 +448,7 @@ function shouldReport(stdout, stderr) {
|
|
|
448
448
|
}
|
|
449
449
|
function toolName(action) {
|
|
450
450
|
const [toolId] = _optionalChain([action, 'optionalAccess', _5 => _5.path]) === "tools execute" ? action.args : [];
|
|
451
|
-
return typeof toolId === "string" ?
|
|
451
|
+
return typeof toolId === "string" ? _chunkB7HQL77Vjs.redactFailureText.call(void 0, toolId) : null;
|
|
452
452
|
}
|
|
453
453
|
function chunkText(chunk) {
|
|
454
454
|
if (typeof chunk === "string") return chunk;
|
|
@@ -479,14 +479,14 @@ function watch(stream) {
|
|
|
479
479
|
}
|
|
480
480
|
async function postCommandOutput(body) {
|
|
481
481
|
try {
|
|
482
|
-
const baseUrl =
|
|
483
|
-
const apiKey =
|
|
482
|
+
const baseUrl = _chunk5LHU7NUSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
483
|
+
const apiKey = _chunk5LHU7NUSjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
484
484
|
if (!apiKey) return;
|
|
485
|
-
const agentSessionId =
|
|
485
|
+
const agentSessionId = _chunk75IIHFN6js.agentSessionIdFromEnvironment.call(void 0, );
|
|
486
486
|
await fetch(new URL("/api/v2/telemetry/command-output", baseUrl), {
|
|
487
487
|
method: "POST",
|
|
488
488
|
headers: {
|
|
489
|
-
...
|
|
489
|
+
..._chunkB7HQL77Vjs.failureReportHeaders.call(void 0, apiKey),
|
|
490
490
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {}
|
|
491
491
|
},
|
|
492
492
|
body: JSON.stringify(body),
|
|
@@ -502,14 +502,14 @@ function startOutputSizeReporting(invocation, streams = {
|
|
|
502
502
|
const stdoutWatch = watch(streams.stdout);
|
|
503
503
|
const stderrWatch = watch(streams.stderr);
|
|
504
504
|
return async (finished) => {
|
|
505
|
-
if (
|
|
505
|
+
if (_chunkB7HQL77Vjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
506
506
|
const [stdout, stderr] = await Promise.all([
|
|
507
507
|
stdoutWatch.settled(),
|
|
508
508
|
stderrWatch.settled()
|
|
509
509
|
]);
|
|
510
510
|
if (!shouldReport(stdout, stderr)) return;
|
|
511
511
|
await postCommandOutput({
|
|
512
|
-
command:
|
|
512
|
+
command: _chunkB7HQL77Vjs.sanitizeCommand.call(void 0, invocation.argv),
|
|
513
513
|
tool: toolName(finished.action),
|
|
514
514
|
exit_code: typeof finished.exitCode === "number" ? finished.exitCode : null,
|
|
515
515
|
duration_ms: Math.max(0, Date.now() - invocation.startedAtMs),
|
|
@@ -540,7 +540,7 @@ function silenceCommanderErrorOutput(command) {
|
|
|
540
540
|
function printUsageErrorJson(code, message, commandPath) {
|
|
541
541
|
const unknownName = code === "commander.unknownCommand" ? _optionalChain([/unknown command '([^']+)'/, 'access', _6 => _6.exec, 'call', _7 => _7(message), 'optionalAccess', _8 => _8[1]]) : void 0;
|
|
542
542
|
const helpPath = unknownName && commandPath.endsWith(` ${unknownName}`) ? commandPath.slice(0, -unknownName.length - 1) : commandPath;
|
|
543
|
-
|
|
543
|
+
_chunkGONUMUBMjs.printJson.call(void 0, {
|
|
544
544
|
ok: false,
|
|
545
545
|
error: {
|
|
546
546
|
code,
|
|
@@ -602,7 +602,7 @@ function topLevelCommandKnown(program, commandName) {
|
|
|
602
602
|
);
|
|
603
603
|
}
|
|
604
604
|
async function runPlayRunnerHealthCheck() {
|
|
605
|
-
|
|
605
|
+
_chunk5LHU7NUSjs.resolveConfig.call(void 0, );
|
|
606
606
|
const dir = await _promises.mkdtemp.call(void 0, _path.join.call(void 0, _os.tmpdir.call(void 0, ), "deepline-health-play-"));
|
|
607
607
|
const file = _path.join.call(void 0, dir, "health-check.play.ts");
|
|
608
608
|
try {
|
|
@@ -632,7 +632,7 @@ async function runPlayRunnerHealthCheck() {
|
|
|
632
632
|
});
|
|
633
633
|
let exitCode = 1;
|
|
634
634
|
try {
|
|
635
|
-
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
635
|
+
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-ACC4T2XQ.js")));
|
|
636
636
|
exitCode = await handlePlayRun([
|
|
637
637
|
file,
|
|
638
638
|
"--input",
|
|
@@ -672,7 +672,7 @@ function preflightErrorMessage(error) {
|
|
|
672
672
|
return error instanceof Error ? error.message : String(error);
|
|
673
673
|
}
|
|
674
674
|
async function runPreflightCheck() {
|
|
675
|
-
const baseUrl =
|
|
675
|
+
const baseUrl = _chunk5LHU7NUSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
676
676
|
const healthController = new AbortController();
|
|
677
677
|
const healthTimeout = setTimeout(
|
|
678
678
|
() => healthController.abort(),
|
|
@@ -689,14 +689,14 @@ async function runPreflightCheck() {
|
|
|
689
689
|
}).catch((error) => ({
|
|
690
690
|
status: "unreachable",
|
|
691
691
|
version: null,
|
|
692
|
-
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` :
|
|
692
|
+
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` : _chunk75IIHFN6js.connectionFailureMessage.call(void 0,
|
|
693
693
|
baseUrl,
|
|
694
694
|
error instanceof Error ? error : new Error(String(error))
|
|
695
695
|
)
|
|
696
696
|
})).finally(() => clearTimeout(healthTimeout));
|
|
697
|
-
const apiKey =
|
|
698
|
-
const http = apiKey ? new (0,
|
|
699
|
-
|
|
697
|
+
const apiKey = _chunk5LHU7NUSjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
698
|
+
const http = apiKey ? new (0, _chunk5LHU7NUSjs.HttpClient)(
|
|
699
|
+
_chunk5LHU7NUSjs.resolveConfig.call(void 0, {
|
|
700
700
|
baseUrl,
|
|
701
701
|
apiKey,
|
|
702
702
|
timeout: PREFLIGHT_TIMEOUT_MS,
|
|
@@ -741,7 +741,7 @@ async function runPreflightCheck() {
|
|
|
741
741
|
const connected = authStatus === "connected" || authStatus === "claimed";
|
|
742
742
|
return {
|
|
743
743
|
status: healthResult.status === "ok" && connected ? "ok" : "check",
|
|
744
|
-
cli_version:
|
|
744
|
+
cli_version: _chunk75IIHFN6js.SDK_VERSION,
|
|
745
745
|
host: baseUrl,
|
|
746
746
|
health: {
|
|
747
747
|
status: healthResult.status,
|
|
@@ -768,7 +768,7 @@ async function runPreflightCheck() {
|
|
|
768
768
|
{
|
|
769
769
|
title: "preflight",
|
|
770
770
|
lines: [
|
|
771
|
-
`cli: ${
|
|
771
|
+
`cli: ${_chunk75IIHFN6js.SDK_VERSION}`,
|
|
772
772
|
`host: ${baseUrl}`,
|
|
773
773
|
`health: ${healthResult.status}`,
|
|
774
774
|
..."error" in healthResult ? [` ${healthResult.error}`] : [],
|
|
@@ -795,12 +795,12 @@ function printPreflightHuman(data) {
|
|
|
795
795
|
}
|
|
796
796
|
async function newerCliCommandHint(baseUrl, command) {
|
|
797
797
|
if (!command.trim()) return null;
|
|
798
|
-
const { response, error } = await
|
|
798
|
+
const { response, error } = await _chunkB7HQL77Vjs.checkSdkCompatibility.call(void 0, baseUrl, { command });
|
|
799
799
|
if (error || !response) return null;
|
|
800
800
|
const introduced = response.command_introduced_in;
|
|
801
801
|
if (introduced) {
|
|
802
802
|
return [
|
|
803
|
-
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${
|
|
803
|
+
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunk75IIHFN6js.SDK_VERSION}.`,
|
|
804
804
|
` ${introduced.reason}`,
|
|
805
805
|
` Update with: ${response.update_command}`,
|
|
806
806
|
" Agent skills are served by Deepline and refresh on their own, so a skill can describe a command this CLI does not have yet."
|
|
@@ -809,31 +809,31 @@ async function newerCliCommandHint(baseUrl, command) {
|
|
|
809
809
|
if (!response.update_required) return null;
|
|
810
810
|
return [
|
|
811
811
|
response.message,
|
|
812
|
-
` Installed: ${
|
|
812
|
+
` Installed: ${_chunk75IIHFN6js.SDK_VERSION}. Run: ${response.update_command}`,
|
|
813
813
|
" If an agent skill told you to run this, the skill is newer than this CLI."
|
|
814
814
|
].join("\n");
|
|
815
815
|
}
|
|
816
816
|
async function runMain(ensureTransport, onAction) {
|
|
817
817
|
const mainStartedAt = Date.now();
|
|
818
|
-
|
|
818
|
+
_chunkGONUMUBMjs.installJsonStderrGuard.call(void 0, );
|
|
819
819
|
let rootHelpStatus = "";
|
|
820
820
|
const deferredMaintenance = { inlinePlay: null };
|
|
821
|
-
|
|
821
|
+
_chunkQSYA6VE4js.recordCliTrace.call(void 0, {
|
|
822
822
|
phase: "cli.main_start",
|
|
823
823
|
argv: process.argv.slice(2)
|
|
824
824
|
});
|
|
825
825
|
const printStartupPhase = shouldPrintStartupPhase();
|
|
826
|
-
const progress = printStartupPhase ?
|
|
826
|
+
const progress = printStartupPhase ? _chunkDS455RPFjs.createCliProgress.call(void 0, true) : null;
|
|
827
827
|
if (printStartupPhase) {
|
|
828
828
|
_optionalChain([progress, 'optionalAccess', _14 => _14.phase, 'call', _15 => _15("loading deepline cli")]);
|
|
829
829
|
}
|
|
830
830
|
const program = new (0, _commander.Command)();
|
|
831
831
|
program.name("deepline").description(
|
|
832
832
|
"Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
|
|
833
|
-
).version(
|
|
833
|
+
).version(_chunk75IIHFN6js.SDK_VERSION, "-v, --version", "Show version").option(
|
|
834
834
|
"--maintenance <policy>",
|
|
835
835
|
"Installation maintenance: configured preferences or off; independent of output format",
|
|
836
|
-
|
|
836
|
+
_chunkQSYA6VE4js.parseCliMaintenancePolicy,
|
|
837
837
|
"configured"
|
|
838
838
|
).exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
|
|
839
839
|
"beforeAll",
|
|
@@ -891,24 +891,24 @@ Exit codes:
|
|
|
891
891
|
path: compatibilityCommandPath(actionCommand),
|
|
892
892
|
args: actionCommand.processedArgs
|
|
893
893
|
});
|
|
894
|
-
const maintenance =
|
|
894
|
+
const maintenance = _chunkQSYA6VE4js.resolveCliMaintenancePolicy.call(void 0,
|
|
895
895
|
actionCommand.optsWithGlobals()
|
|
896
896
|
);
|
|
897
897
|
if (actionCommand.name() !== "version") {
|
|
898
898
|
await ensureTransport();
|
|
899
899
|
}
|
|
900
|
-
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() ===
|
|
900
|
+
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunkB7HQL77Vjs.SKILLS_AUTO_SYNC_COMMAND || actionCommand.name() === "doctor" || isAutoUpdateSettingsInvocation() || isDeprecatedCommandInvocation()) {
|
|
901
901
|
return;
|
|
902
902
|
}
|
|
903
903
|
const compatibilityCommand = compatibilityCommandPath(actionCommand) || actionCommand.name();
|
|
904
904
|
const isToolExecuteCommand = compatibilityCommand === "tools execute";
|
|
905
905
|
if (isToolExecuteCommand) {
|
|
906
|
-
|
|
906
|
+
_chunk2T4OSJEHjs.beginToolExecuteCommand.call(void 0, );
|
|
907
907
|
}
|
|
908
908
|
if (isToolExecuteCommand) {
|
|
909
|
-
const baseUrl =
|
|
910
|
-
if (maintenance !== "off")
|
|
911
|
-
|
|
909
|
+
const baseUrl = _chunk5LHU7NUSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
910
|
+
if (maintenance !== "off") _chunkB7HQL77Vjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
911
|
+
_chunkQSYA6VE4js.recordCliTrace.call(void 0, {
|
|
912
912
|
phase: "cli.sdk_compatibility_deferred_to_tool_execute",
|
|
913
913
|
baseUrl,
|
|
914
914
|
command: compatibilityCommand
|
|
@@ -916,10 +916,10 @@ Exit codes:
|
|
|
916
916
|
return;
|
|
917
917
|
}
|
|
918
918
|
const playDryRun = compatibilityCommand === "plays run" && actionCommand.optsWithGlobals().dryRun === true;
|
|
919
|
-
if (!playDryRun &&
|
|
919
|
+
if (!playDryRun && _chunkPHDEQ6W3js.usesInlinePlayAdmission.call(void 0, compatibilityCommand, process.argv.slice(2))) {
|
|
920
920
|
if (maintenance !== "off") {
|
|
921
|
-
const baseUrl =
|
|
922
|
-
|
|
921
|
+
const baseUrl = _chunk5LHU7NUSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
922
|
+
_chunkB7HQL77Vjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
923
923
|
deferredMaintenance.inlinePlay = createDeferredPlayRunMaintenance({
|
|
924
924
|
baseUrl,
|
|
925
925
|
command: actionCommand,
|
|
@@ -928,27 +928,27 @@ Exit codes:
|
|
|
928
928
|
}
|
|
929
929
|
return;
|
|
930
930
|
}
|
|
931
|
-
const runStartupStage = (stage, action) => isToolExecuteCommand ?
|
|
931
|
+
const runStartupStage = (stage, action) => isToolExecuteCommand ? _chunk2T4OSJEHjs.runToolExecuteStage.call(void 0, stage, action) : Promise.resolve(action());
|
|
932
932
|
if (printStartupPhase) {
|
|
933
933
|
_optionalChain([progress, 'optionalAccess', _16 => _16.phase, 'call', _17 => _17("checking sdk compatibility")]);
|
|
934
934
|
}
|
|
935
935
|
const startup = await runStartupStage("SDK compatibility", async () => {
|
|
936
|
-
const baseUrl =
|
|
937
|
-
if (maintenance !== "off")
|
|
936
|
+
const baseUrl = _chunk5LHU7NUSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
937
|
+
if (maintenance !== "off") _chunkB7HQL77Vjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
938
938
|
const shouldDeferSkillsSync = isToolExecuteCommand || maintenance === "off" || shouldDeferSkillsSyncForCommand();
|
|
939
|
-
const skillsVersion = shouldDeferSkillsSync ? void 0 :
|
|
940
|
-
const trusted = isToolExecuteCommand ? null :
|
|
939
|
+
const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunk5LHU7NUSjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
940
|
+
const trusted = isToolExecuteCommand ? null : _chunkB7HQL77Vjs.readTrustedCleanCompatibility.call(void 0,
|
|
941
941
|
baseUrl,
|
|
942
942
|
compatibilityCommand,
|
|
943
943
|
skillsVersion
|
|
944
944
|
);
|
|
945
|
-
const fastDeadline = !isToolExecuteCommand && trusted === null &&
|
|
945
|
+
const fastDeadline = !isToolExecuteCommand && trusted === null && _chunkB7HQL77Vjs.readFreshCleanCompatibility.call(void 0,
|
|
946
946
|
baseUrl,
|
|
947
947
|
compatibilityCommand,
|
|
948
948
|
skillsVersion
|
|
949
949
|
) !== null;
|
|
950
950
|
if (trusted) {
|
|
951
|
-
|
|
951
|
+
_chunkQSYA6VE4js.recordCliTrace.call(void 0, {
|
|
952
952
|
phase: "cli.sdk_compatibility",
|
|
953
953
|
ms: 0,
|
|
954
954
|
ok: true,
|
|
@@ -958,7 +958,7 @@ Exit codes:
|
|
|
958
958
|
source: "trusted_cache"
|
|
959
959
|
});
|
|
960
960
|
}
|
|
961
|
-
const compatibility = trusted ? { response: trusted, error: null } : await
|
|
961
|
+
const compatibility = trusted ? { response: trusted, error: null } : await _chunkQSYA6VE4js.traceCliSpan.call(void 0,
|
|
962
962
|
"cli.sdk_compatibility",
|
|
963
963
|
{
|
|
964
964
|
baseUrl,
|
|
@@ -966,12 +966,12 @@ Exit codes:
|
|
|
966
966
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null)),
|
|
967
967
|
fastDeadline
|
|
968
968
|
},
|
|
969
|
-
() =>
|
|
969
|
+
() => _chunkB7HQL77Vjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
970
970
|
command: compatibilityCommand,
|
|
971
971
|
skillsVersion,
|
|
972
972
|
persistCache: !isToolExecuteCommand && maintenance !== "off",
|
|
973
|
-
catalog:
|
|
974
|
-
...fastDeadline ? { timeoutMs:
|
|
973
|
+
catalog: _chunk2T4OSJEHjs.compatibilityCatalog.call(void 0, actionCommand),
|
|
974
|
+
...fastDeadline ? { timeoutMs: _chunkB7HQL77Vjs.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
|
|
975
975
|
})
|
|
976
976
|
);
|
|
977
977
|
if (compatibility.error) {
|
|
@@ -982,7 +982,7 @@ Exit codes:
|
|
|
982
982
|
response: null
|
|
983
983
|
};
|
|
984
984
|
}
|
|
985
|
-
const relaunched = await
|
|
985
|
+
const relaunched = await _chunk2T4OSJEHjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
986
986
|
compatibility.response,
|
|
987
987
|
baseUrl,
|
|
988
988
|
maintenance
|
|
@@ -996,14 +996,14 @@ Exit codes:
|
|
|
996
996
|
};
|
|
997
997
|
}
|
|
998
998
|
const policy = compatibility.response;
|
|
999
|
-
const jsonOutput =
|
|
1000
|
-
|
|
999
|
+
const jsonOutput = _chunkGONUMUBMjs.isJsonOutputMode.call(void 0, );
|
|
1000
|
+
_chunkB7HQL77Vjs.enforceSdkCompatibilityResponse.call(void 0, policy, {
|
|
1001
1001
|
quietAdvisory: jsonOutput || // The queued update already says what is about to happen.
|
|
1002
|
-
|
|
1002
|
+
_chunk2T4OSJEHjs.hasDeferredAutoUpdate.call(void 0, ) || maintenance === "off" || !_chunkB7HQL77Vjs.claimUpdateAdvisory.call(void 0, baseUrl)
|
|
1003
1003
|
});
|
|
1004
1004
|
const advisory = compatibility.response;
|
|
1005
|
-
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !
|
|
1006
|
-
|
|
1005
|
+
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !_chunkB7HQL77Vjs.isCiEnvironment.call(void 0, ) && !_chunk2T4OSJEHjs.hasDeferredAutoUpdate.call(void 0, )) {
|
|
1006
|
+
_chunkGONUMUBMjs.addJsonNotice.call(void 0, { code: advisory.status, message: advisory.message });
|
|
1007
1007
|
}
|
|
1008
1008
|
return {
|
|
1009
1009
|
shouldContinue: true,
|
|
@@ -1020,10 +1020,10 @@ Exit codes:
|
|
|
1020
1020
|
const skillsUpdate = startup.response && Object.prototype.hasOwnProperty.call(startup.response, "skills") ? _nullishCoalesce(startup.response.skills, () => ( null)) : void 0;
|
|
1021
1021
|
await runStartupStage(
|
|
1022
1022
|
"agent skills sync",
|
|
1023
|
-
() =>
|
|
1023
|
+
() => _chunkQSYA6VE4js.traceCliSpan.call(void 0,
|
|
1024
1024
|
"cli.sdk_skills_sync",
|
|
1025
1025
|
{ baseUrl: startup.baseUrl },
|
|
1026
|
-
() =>
|
|
1026
|
+
() => _chunkB7HQL77Vjs.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
|
|
1027
1027
|
update: skillsUpdate,
|
|
1028
1028
|
mode: "detached"
|
|
1029
1029
|
})
|
|
@@ -1035,16 +1035,16 @@ Exit codes:
|
|
|
1035
1035
|
program,
|
|
1036
1036
|
process.argv.slice(2)
|
|
1037
1037
|
);
|
|
1038
|
-
const commandRegistrationStartedAt =
|
|
1038
|
+
const commandRegistrationStartedAt = _chunkQSYA6VE4js.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1039
1039
|
await registerDeeplineCommandGroups(program, requestedCommand);
|
|
1040
1040
|
if (commandRegistrationStartedAt !== void 0) {
|
|
1041
|
-
|
|
1041
|
+
_chunkQSYA6VE4js.recordCliTrace.call(void 0, {
|
|
1042
1042
|
phase: "cli.command_registration",
|
|
1043
1043
|
ms: performance.now() - commandRegistrationStartedAt
|
|
1044
1044
|
});
|
|
1045
1045
|
}
|
|
1046
1046
|
const { preflight, health, version } = registerDeeplineInlineCommands(program);
|
|
1047
|
-
if (
|
|
1047
|
+
if (_chunkGONUMUBMjs.isJsonOutputMode.call(void 0, )) silenceCommanderErrorOutput(program);
|
|
1048
1048
|
preflight.addHelpText(
|
|
1049
1049
|
"after",
|
|
1050
1050
|
`
|
|
@@ -1060,8 +1060,8 @@ Examples:
|
|
|
1060
1060
|
`
|
|
1061
1061
|
).action(async (options) => {
|
|
1062
1062
|
const data = await runPreflightCheck();
|
|
1063
|
-
if (
|
|
1064
|
-
|
|
1063
|
+
if (_chunkGONUMUBMjs.shouldEmitJson.call(void 0, options.json)) {
|
|
1064
|
+
_chunkGONUMUBMjs.printJson.call(void 0, data);
|
|
1065
1065
|
} else {
|
|
1066
1066
|
printPreflightHuman(data);
|
|
1067
1067
|
}
|
|
@@ -1086,7 +1086,7 @@ Examples:
|
|
|
1086
1086
|
).action(async (options) => {
|
|
1087
1087
|
if (options.playRunner) {
|
|
1088
1088
|
const data = await runPlayRunnerHealthCheck();
|
|
1089
|
-
|
|
1089
|
+
_chunkGONUMUBMjs.printCommandEnvelope.call(void 0, data, {
|
|
1090
1090
|
json: options.json,
|
|
1091
1091
|
text: `play runner: ${data.playRunner.status} (${data.playRunner.check})
|
|
1092
1092
|
`
|
|
@@ -1094,15 +1094,15 @@ Examples:
|
|
|
1094
1094
|
return;
|
|
1095
1095
|
}
|
|
1096
1096
|
try {
|
|
1097
|
-
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1098
|
-
const baseUrl =
|
|
1097
|
+
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-JHQKM6QY.js")));
|
|
1098
|
+
const baseUrl = _chunk5LHU7NUSjs.resolveBaseUrlOnly.call(void 0, );
|
|
1099
1099
|
const [{ status, data }, banner] = await Promise.all([
|
|
1100
1100
|
httpJson("GET", `${baseUrl}/api/v2/health`, null),
|
|
1101
1101
|
readStatusBanner(baseUrl)
|
|
1102
1102
|
]);
|
|
1103
1103
|
if (status !== 200) throw new Error(`HTTP ${status}`);
|
|
1104
1104
|
const lines = [`${baseUrl}: ${data.status}`, statusBannerLine(banner)];
|
|
1105
|
-
|
|
1105
|
+
_chunkGONUMUBMjs.printCommandEnvelope.call(void 0,
|
|
1106
1106
|
{ ...data, status_banner: banner },
|
|
1107
1107
|
{
|
|
1108
1108
|
json: options.json,
|
|
@@ -1130,16 +1130,16 @@ Examples:
|
|
|
1130
1130
|
`
|
|
1131
1131
|
).action((options) => {
|
|
1132
1132
|
if (options.json) {
|
|
1133
|
-
|
|
1133
|
+
_chunkGONUMUBMjs.printCompactJson.call(void 0, { version: _chunk75IIHFN6js.SDK_VERSION });
|
|
1134
1134
|
return;
|
|
1135
1135
|
}
|
|
1136
|
-
process.stdout.write(`deepline ${
|
|
1136
|
+
process.stdout.write(`deepline ${_chunk75IIHFN6js.SDK_VERSION}
|
|
1137
1137
|
`);
|
|
1138
1138
|
});
|
|
1139
1139
|
if (process.argv.slice(2).length === 0) {
|
|
1140
1140
|
program.outputHelp({ error: true });
|
|
1141
1141
|
console.error("\nerror: missing command (see usage above)");
|
|
1142
|
-
|
|
1142
|
+
_chunkQSYA6VE4js.recordCliTrace.call(void 0, {
|
|
1143
1143
|
phase: "cli.main_total",
|
|
1144
1144
|
ms: Date.now() - mainStartedAt,
|
|
1145
1145
|
ok: false,
|
|
@@ -1151,16 +1151,16 @@ Examples:
|
|
|
1151
1151
|
const requestedTopLevelCommand = _nullishCoalesce(process.argv.slice(2)[0], () => ( ""));
|
|
1152
1152
|
if (!topLevelCommandKnown(program, requestedTopLevelCommand)) {
|
|
1153
1153
|
const unknownCommandMessage = `error: unknown command '${requestedTopLevelCommand}'`;
|
|
1154
|
-
if (!
|
|
1155
|
-
const baseUrl =
|
|
1154
|
+
if (!_chunkGONUMUBMjs.isJsonOutputMode.call(void 0, )) console.error(unknownCommandMessage);
|
|
1155
|
+
const baseUrl = _chunk5LHU7NUSjs.autoDetectBaseUrl.call(void 0, );
|
|
1156
1156
|
await ensureTransport();
|
|
1157
1157
|
const versionHint = await newerCliCommandHint(
|
|
1158
1158
|
baseUrl,
|
|
1159
1159
|
requestedTopLevelCommand
|
|
1160
1160
|
);
|
|
1161
|
-
if (
|
|
1161
|
+
if (_chunkGONUMUBMjs.isJsonOutputMode.call(void 0, )) {
|
|
1162
1162
|
if (versionHint) {
|
|
1163
|
-
|
|
1163
|
+
_chunkGONUMUBMjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1164
1164
|
}
|
|
1165
1165
|
printUsageErrorJson(
|
|
1166
1166
|
"commander.unknownCommand",
|
|
@@ -1182,32 +1182,32 @@ Examples:
|
|
|
1182
1182
|
const helpArgs = process.argv.slice(2);
|
|
1183
1183
|
const helpPositionals = helpArgs.filter((arg) => !arg.startsWith("-"));
|
|
1184
1184
|
if (helpPositionals.length === 0 ? helpArgs.includes("--help") || helpArgs.includes("-h") : helpPositionals.length === 1 && helpPositionals[0] === "help") {
|
|
1185
|
-
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1186
|
-
rootHelpStatus = `Version: ${
|
|
1185
|
+
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-JHQKM6QY.js")));
|
|
1186
|
+
rootHelpStatus = `Version: ${_chunk75IIHFN6js.SDK_VERSION}
|
|
1187
1187
|
${await authStatusLine()}
|
|
1188
1188
|
`;
|
|
1189
1189
|
}
|
|
1190
1190
|
await program.parseAsync(process.argv);
|
|
1191
|
-
|
|
1191
|
+
_chunkQSYA6VE4js.recordCliTrace.call(void 0, {
|
|
1192
1192
|
phase: "cli.main_total",
|
|
1193
1193
|
ms: Date.now() - mainStartedAt,
|
|
1194
1194
|
ok: true
|
|
1195
1195
|
});
|
|
1196
|
-
await
|
|
1196
|
+
await _chunkB7HQL77Vjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1197
1197
|
argv: process.argv.slice(2),
|
|
1198
1198
|
startedAtMs: mainStartedAt,
|
|
1199
1199
|
exitCode: typeof process.exitCode === "number" ? process.exitCode : null
|
|
1200
1200
|
});
|
|
1201
1201
|
} catch (error) {
|
|
1202
1202
|
const commanderError = asCommanderError(error);
|
|
1203
|
-
|
|
1203
|
+
_chunkQSYA6VE4js.recordCliTrace.call(void 0, {
|
|
1204
1204
|
phase: "cli.main_total",
|
|
1205
1205
|
ms: Date.now() - mainStartedAt,
|
|
1206
1206
|
ok: false,
|
|
1207
1207
|
error: error instanceof Error ? error.message : String(error)
|
|
1208
1208
|
});
|
|
1209
1209
|
_optionalChain([progress, 'optionalAccess', _20 => _20.fail, 'call', _21 => _21()]);
|
|
1210
|
-
const wantsJson =
|
|
1210
|
+
const wantsJson = _chunkGONUMUBMjs.isJsonOutputMode.call(void 0, );
|
|
1211
1211
|
if (commanderError) {
|
|
1212
1212
|
const grammarError = [
|
|
1213
1213
|
"commander.unknownCommand",
|
|
@@ -1218,12 +1218,12 @@ ${await authStatusLine()}
|
|
|
1218
1218
|
if (grammarError) {
|
|
1219
1219
|
await ensureTransport();
|
|
1220
1220
|
const versionHint = await newerCliCommandHint(
|
|
1221
|
-
|
|
1221
|
+
_chunk5LHU7NUSjs.autoDetectBaseUrl.call(void 0, ),
|
|
1222
1222
|
commandPath
|
|
1223
1223
|
);
|
|
1224
1224
|
if (wantsJson) {
|
|
1225
1225
|
if (versionHint) {
|
|
1226
|
-
|
|
1226
|
+
_chunkGONUMUBMjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1227
1227
|
}
|
|
1228
1228
|
} else {
|
|
1229
1229
|
if (versionHint) console.error(versionHint);
|
|
@@ -1243,53 +1243,53 @@ ${await authStatusLine()}
|
|
|
1243
1243
|
return;
|
|
1244
1244
|
} else if (wantsJson) {
|
|
1245
1245
|
if (error instanceof _chunkALJJRZNJjs.AuthError) {
|
|
1246
|
-
|
|
1246
|
+
_chunkGONUMUBMjs.addJsonNotice.call(void 0, {
|
|
1247
1247
|
code: "auth_required",
|
|
1248
1248
|
message: `Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`
|
|
1249
1249
|
});
|
|
1250
1250
|
}
|
|
1251
|
-
const providerConcurrency =
|
|
1251
|
+
const providerConcurrency = _chunkGONUMUBMjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1252
1252
|
if (providerConcurrency) {
|
|
1253
|
-
|
|
1253
|
+
_chunkGONUMUBMjs.addJsonNotice.call(void 0, {
|
|
1254
1254
|
code: "provider_concurrency",
|
|
1255
1255
|
message: providerConcurrency
|
|
1256
1256
|
});
|
|
1257
1257
|
}
|
|
1258
|
-
const payload =
|
|
1259
|
-
|
|
1258
|
+
const payload = _chunkGONUMUBMjs.errorToJsonPayload.call(void 0, error);
|
|
1259
|
+
_chunkGONUMUBMjs.printJson.call(void 0, {
|
|
1260
1260
|
...payload,
|
|
1261
1261
|
// The envelope names the code the process exits with, so a caller
|
|
1262
1262
|
// that only reads stdout still cannot mistake a failure for data.
|
|
1263
|
-
exitCode: _nullishCoalesce(payload.exitCode, () => (
|
|
1263
|
+
exitCode: _nullishCoalesce(payload.exitCode, () => ( _chunkB7HQL77Vjs.resolveSdkCliFailureExitCode.call(void 0, error))),
|
|
1264
1264
|
...error instanceof _chunkALJJRZNJjs.AuthError ? { next: AUTH_RECOVERY_COMMAND } : {}
|
|
1265
1265
|
});
|
|
1266
1266
|
} else if (error instanceof Error) {
|
|
1267
1267
|
console.error(`Error: ${error.message}`);
|
|
1268
|
-
const toolDiagnostic =
|
|
1268
|
+
const toolDiagnostic = _chunkGONUMUBMjs.formatToolExecutionErrorDiagnostic.call(void 0, error);
|
|
1269
1269
|
if (toolDiagnostic) console.error(toolDiagnostic);
|
|
1270
1270
|
if (error instanceof _chunkALJJRZNJjs.AuthError) {
|
|
1271
1271
|
console.error(`Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`);
|
|
1272
1272
|
}
|
|
1273
|
-
const providerConcurrency =
|
|
1273
|
+
const providerConcurrency = _chunkGONUMUBMjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1274
1274
|
if (providerConcurrency) console.error(providerConcurrency);
|
|
1275
1275
|
} else {
|
|
1276
1276
|
console.error(`Error: ${String(error)}`);
|
|
1277
1277
|
}
|
|
1278
1278
|
const explicitExitCode = error && typeof error === "object" && typeof error.exitCode === "number" ? error.exitCode : void 0;
|
|
1279
|
-
const failureExitCode = _nullishCoalesce(explicitExitCode, () => (
|
|
1279
|
+
const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunkB7HQL77Vjs.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
1280
1280
|
process.exitCode = failureExitCode;
|
|
1281
|
-
await
|
|
1281
|
+
await _chunkB7HQL77Vjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1282
1282
|
argv: process.argv.slice(2),
|
|
1283
1283
|
startedAtMs: mainStartedAt,
|
|
1284
1284
|
exitCode: failureExitCode,
|
|
1285
1285
|
error
|
|
1286
1286
|
});
|
|
1287
1287
|
} finally {
|
|
1288
|
-
|
|
1288
|
+
_chunk2T4OSJEHjs.finishToolExecuteCommand.call(void 0, );
|
|
1289
1289
|
const maintainInlinePlay = deferredMaintenance.inlinePlay;
|
|
1290
1290
|
deferredMaintenance.inlinePlay = null;
|
|
1291
1291
|
await _optionalChain([maintainInlinePlay, 'optionalCall', _22 => _22()]);
|
|
1292
|
-
await
|
|
1292
|
+
await _chunk2T4OSJEHjs.runDeferredAutoUpdate.call(void 0, );
|
|
1293
1293
|
}
|
|
1294
1294
|
process.exitCode = _nullishCoalesce(process.exitCode, () => ( 0));
|
|
1295
1295
|
}
|
|
@@ -1297,7 +1297,7 @@ async function main() {
|
|
|
1297
1297
|
let disposeTransport;
|
|
1298
1298
|
const ensureTransport = async () => {
|
|
1299
1299
|
if (disposeTransport) return;
|
|
1300
|
-
const transportStartedAt =
|
|
1300
|
+
const transportStartedAt = _chunkQSYA6VE4js.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1301
1301
|
const hasProxy = [
|
|
1302
1302
|
"HTTP_PROXY",
|
|
1303
1303
|
"http_proxy",
|
|
@@ -1309,7 +1309,7 @@ async function main() {
|
|
|
1309
1309
|
disposeTransport = configureCliTransport();
|
|
1310
1310
|
}
|
|
1311
1311
|
if (transportStartedAt !== void 0) {
|
|
1312
|
-
|
|
1312
|
+
_chunkQSYA6VE4js.recordCliTrace.call(void 0, {
|
|
1313
1313
|
phase: "cli.transport_setup",
|
|
1314
1314
|
ms: performance.now() - transportStartedAt
|
|
1315
1315
|
});
|
|
@@ -1326,9 +1326,9 @@ async function main() {
|
|
|
1326
1326
|
action = dispatched;
|
|
1327
1327
|
skipOutputReport = dispatched.path === "tools execute" || dispatched.path === "plays run" && process.argv.includes("--json");
|
|
1328
1328
|
});
|
|
1329
|
-
const silentFailure =
|
|
1329
|
+
const silentFailure = _chunkGONUMUBMjs.takeSilentJsonFailureMessage.call(void 0, process.exitCode);
|
|
1330
1330
|
if (silentFailure) {
|
|
1331
|
-
|
|
1331
|
+
_chunkGONUMUBMjs.printJson.call(void 0, {
|
|
1332
1332
|
ok: false,
|
|
1333
1333
|
exitCode: Number(process.exitCode),
|
|
1334
1334
|
error: { code: "CLI_ERROR", message: silentFailure }
|