deepline 0.3.489 → 0.3.490
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/direct-admission-deadline.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +10 -0
- package/dist/cli/auth-AW34RGV5.js +43 -0
- package/dist/cli/{auth-5RIU6GT7.mjs → auth-RL6LOZGC.mjs} +5 -5
- package/dist/cli/{billing-T4TMPRFS.mjs → billing-33THO76F.mjs} +6 -6
- package/dist/cli/{billing-T5MAGF25.js → billing-LIDDSOSY.js} +79 -79
- package/dist/cli/{chunk-Y3SG26KP.mjs → chunk-27IBWHR5.mjs} +4 -4
- package/dist/cli/{chunk-35N4S2E6.mjs → chunk-2HYJU4LJ.mjs} +1 -1
- package/dist/cli/{chunk-QXWE6PHI.mjs → chunk-3M5VPIRL.mjs} +2 -2
- package/dist/cli/{chunk-IAYSWZDJ.js → chunk-4IP5MLWU.js} +1 -1
- package/dist/cli/{chunk-6V7KVRR5.js → chunk-4OLXMJ2L.js} +13 -2
- package/dist/cli/{chunk-FL7NHJTS.js → chunk-63TNO23X.js} +15 -15
- package/dist/cli/{chunk-5DEJ3TLB.js → chunk-6TTPAGNX.js} +7 -7
- package/dist/cli/{chunk-LMUOUIBV.mjs → chunk-7W53Y4VH.mjs} +5 -5
- package/dist/cli/{chunk-WRJ6MEY5.mjs → chunk-A3D677RX.mjs} +1 -1
- package/dist/cli/{chunk-6FMP5XRF.js → chunk-B7MPY7WH.js} +6 -6
- package/dist/cli/{chunk-ZICPJKMP.mjs → chunk-BL5Q5JY7.mjs} +5 -5
- package/dist/cli/{chunk-TMQ3PCSY.mjs → chunk-CB7IFKXN.mjs} +2 -2
- package/dist/cli/{chunk-J7EENGKJ.mjs → chunk-CGDUFVNE.mjs} +2 -2
- package/dist/cli/{chunk-H66YVVT7.mjs → chunk-CSSOP7XG.mjs} +2 -2
- package/dist/cli/{chunk-JVHOS3K3.mjs → chunk-DEJIN4DF.mjs} +1 -1
- package/dist/cli/{chunk-RI2PLVD4.js → chunk-E26477MJ.js} +7 -7
- package/dist/cli/{chunk-UYZNRLDE.js → chunk-EPQZ42PY.js} +1 -1
- package/dist/cli/{chunk-FFDWL5N2.js → chunk-FDYCUA7A.js} +16 -16
- package/dist/cli/{chunk-K2RUSHZ7.js → chunk-FPYESYBO.js} +4 -4
- package/dist/cli/{chunk-INW22YP7.mjs → chunk-FTXIJTV2.mjs} +3 -5
- package/dist/cli/{chunk-UI67QLIR.js → chunk-HHGAY2A4.js} +53 -53
- package/dist/cli/{chunk-CSBMKHTV.js → chunk-HHTVRICE.js} +17 -17
- package/dist/cli/{chunk-LM5UIDFA.js → chunk-IFGBL3US.js} +7 -7
- package/dist/cli/{chunk-OTQ2CO6M.mjs → chunk-J5HMAZ34.mjs} +2 -2
- package/dist/cli/{chunk-2QUROYZU.mjs → chunk-JC2M6XG2.mjs} +1 -1
- package/dist/cli/{chunk-L2GMFNAO.mjs → chunk-JSYCPTG6.mjs} +3 -3
- package/dist/cli/{chunk-G7POOFBJ.mjs → chunk-JTYKW3UL.mjs} +2 -2
- package/dist/cli/{chunk-S4F2R2LO.js → chunk-L7QSZAF6.js} +9 -9
- package/dist/cli/{chunk-3S5VBG6Z.mjs → chunk-LQIKW55V.mjs} +2 -2
- package/dist/cli/{chunk-GW6HV7Z7.js → chunk-LZ37B62K.js} +7 -7
- package/dist/cli/{chunk-RACN23LT.mjs → chunk-MBQZMHE6.mjs} +18 -4
- package/dist/cli/{chunk-QJ4FWKUU.mjs → chunk-MDKAPUN2.mjs} +2 -2
- package/dist/cli/{chunk-C55LNEUF.mjs → chunk-MEYQOZPF.mjs} +1 -1
- package/dist/cli/{chunk-DHAJSTSH.mjs → chunk-NRM5OWH2.mjs} +6 -6
- package/dist/cli/{chunk-YEX3VNAY.mjs → chunk-OFCP66VS.mjs} +2 -2
- package/dist/cli/{chunk-4GWEZPZR.mjs → chunk-PIENQTDE.mjs} +1 -1
- package/dist/cli/{chunk-F3TDT57M.js → chunk-PVMN4OE2.js} +5 -5
- package/dist/cli/{chunk-VP65YKOA.js → chunk-QC6QUFKY.js} +5 -5
- package/dist/cli/{chunk-S5PMBDY6.mjs → chunk-QWJZSPCV.mjs} +12 -12
- package/dist/cli/{chunk-SZHNIKTR.js → chunk-QZPJWFGD.js} +26 -26
- package/dist/cli/{chunk-FNKSRKTA.js → chunk-SGG3TERP.js} +3 -3
- package/dist/cli/{chunk-4EFD6R2V.js → chunk-TCBYQX5N.js} +52 -38
- package/dist/cli/{chunk-Q2EIZKVX.mjs → chunk-TKLDKIJU.mjs} +12 -1
- package/dist/cli/{chunk-6PHHQDM6.mjs → chunk-TVZJ6XWM.mjs} +1 -1
- package/dist/cli/{chunk-YSB44HZB.js → chunk-UQXHBCHU.js} +2 -2
- package/dist/cli/{chunk-DY7T6VNT.js → chunk-UTKNSD6T.js} +21 -21
- package/dist/cli/{chunk-NBHCEVWY.mjs → chunk-V47SUOAE.mjs} +4 -4
- package/dist/cli/{chunk-I4NWMPT3.js → chunk-WNVZV6VK.js} +53 -53
- package/dist/cli/{chunk-R23HZ6AV.js → chunk-XSGJKXMP.js} +2 -2
- package/dist/cli/{chunk-WIKIF67Q.js → chunk-Y2KHSQEF.js} +8 -8
- package/dist/cli/{chunk-LOX3BISD.js → chunk-YNWET57Z.js} +9 -11
- package/dist/cli/{chunk-FH7ZABHW.js → chunk-YPUDIEZX.js} +261 -261
- package/dist/cli/{chunk-UZ7VPOTA.js → chunk-YYN2O43C.js} +3 -3
- package/dist/cli/{chunk-7R243PYK.mjs → chunk-Z7W6VJFN.mjs} +1 -1
- package/dist/cli/{csv-XTKN255I.js → csv-PLJNQPLE.js} +13 -13
- package/dist/cli/{csv-WAD54M7T.mjs → csv-TELSH4ND.mjs} +4 -4
- package/dist/cli/{db-2ELZMJFC.mjs → db-GISAU665.mjs} +6 -6
- package/dist/cli/{db-TTS6Y4FI.js → db-QDJ6GWF5.js} +27 -27
- package/dist/cli/{describe-Z7GWMGKU.mjs → describe-F4K54VXB.mjs} +21 -20
- package/dist/cli/describe-R6NVISAS.js +50 -0
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-2TQH54AB.mjs → executions-3QE7MRBG.mjs} +6 -6
- package/dist/cli/{executions-WUBVVJXN.js → executions-VKUTKQNN.js} +8 -8
- package/dist/cli/{feedback-6KAY4LE6.js → feedback-HH5AUYLA.js} +8 -8
- package/dist/cli/{feedback-QI75ZVF2.mjs → feedback-JU7PJGDL.mjs} +4 -4
- package/dist/cli/getting-started.d.mts +17 -2
- package/dist/cli/getting-started.d.ts +17 -2
- package/dist/cli/getting-started.js +8 -2
- package/dist/cli/getting-started.mjs +9 -3
- package/dist/cli/{git-3PI2SXVS.mjs → git-ACXH7K7D.mjs} +5 -5
- package/dist/cli/git-CXRU4CRW.js +25 -0
- package/dist/cli/index.js +138 -137
- package/dist/cli/index.mjs +41 -40
- package/dist/cli/{legacy-noops-SIDE3HLT.mjs → legacy-noops-IOAZ3YJ2.mjs} +5 -5
- package/dist/cli/{legacy-noops-BNEVRTQT.js → legacy-noops-NRPYJZOP.js} +8 -8
- package/dist/cli/{monitors-WRWVVXUZ.js → monitors-4SKMAAMR.js} +91 -91
- package/dist/cli/{monitors-BYQ5V5MX.mjs → monitors-PMQUOIOI.mjs} +7 -7
- package/dist/cli/{org-KWCSSJ3Y.js → org-WJM7X6WB.js} +72 -72
- package/dist/cli/{org-OZNDX3G2.mjs → org-XNT3W6OU.mjs} +6 -6
- package/dist/cli/{pages-OQVOMVF5.js → pages-WXY4GGZG.js} +17 -17
- package/dist/cli/{pages-DXU3TNND.mjs → pages-Y3JKBS4B.mjs} +6 -6
- package/dist/cli/{play-6D7U66KO.js → play-NKSRPIAV.js} +321 -321
- package/dist/cli/{play-ZFG4HDDX.mjs → play-NPWWAQYK.mjs} +18 -18
- package/dist/cli/{providers-4RRQIK3Q.mjs → providers-CUIKFE6F.mjs} +6 -6
- package/dist/cli/{providers-H7R3Z5HS.js → providers-VNPJHXK5.js} +9 -9
- package/dist/cli/{quickstart-FQ5E5G6O.js → quickstart-6OTS2HDR.js} +13 -13
- package/dist/cli/{quickstart-TFKRPMCH.mjs → quickstart-PJYPKFZI.mjs} +5 -5
- package/dist/cli/{run-QRDJTXKB.js → run-2DLJBYFC.js} +41 -40
- package/dist/cli/{run-GRCGGUUM.mjs → run-AGX3EUK4.mjs} +26 -25
- package/dist/cli/{search-OEVSDE3U.mjs → search-DVIEJ2UQ.mjs} +7 -7
- package/dist/cli/search-Y7VFEFJJ.js +32 -0
- package/dist/cli/{search-output-F6KBWKT2.js → search-output-PFLNDCA7.js} +6 -6
- package/dist/cli/{search-output-VK5ZDVKL.mjs → search-output-TXSIPSPS.mjs} +4 -4
- package/dist/cli/{secrets-KKAAZENS.js → secrets-O5OQTFVD.js} +15 -15
- package/dist/cli/{secrets-DCRVVQV2.mjs → secrets-OAGXFXEX.mjs} +6 -6
- package/dist/cli/{sessions-XVBIXCXU.mjs → sessions-GBR5PGB6.mjs} +5 -5
- package/dist/cli/{sessions-FDHENJVG.js → sessions-WT7P3F73.js} +6 -6
- package/dist/cli/{settings-OBVR52US.mjs → settings-KGNBIFOU.mjs} +12 -11
- package/dist/cli/{settings-36HMWFAP.js → settings-U7UNDUDB.js} +79 -78
- package/dist/cli/{setup-M6OWOPMB.js → setup-4MZNDFKM.js} +60 -55
- package/dist/cli/{setup-KFYQZYP3.mjs → setup-PYWSU4YM.mjs} +17 -12
- package/dist/cli/{skills-AZDPA6IQ.mjs → skills-7Y6OBM7Z.mjs} +10 -7
- package/dist/cli/skills-BQC2323O.js +36 -0
- package/dist/cli/tools-732SZ4KV.js +57 -0
- package/dist/cli/{tools-F6XEUK7H.mjs → tools-O7L435CR.mjs} +19 -18
- package/dist/cli/update-PCYIUORM.js +34 -0
- package/dist/cli/{update-QMGJRICE.mjs → update-SPHIBY5L.mjs} +10 -9
- package/dist/cli/{workflow-M4YPUASM.js → workflow-GTDKPIEV.js} +17 -17
- package/dist/cli/{workflow-L5WNCAPB.mjs → workflow-ZRYO5J3K.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +106 -106
- 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-PSIS3XA6.js +0 -43
- package/dist/cli/describe-2V7H5LJP.js +0 -49
- package/dist/cli/git-DCADFTQ6.js +0 -25
- package/dist/cli/search-2FB7WQUS.js +0 -32
- package/dist/cli/skills-URCPOKZZ.js +0 -33
- package/dist/cli/tools-4G5J5NQP.js +0 -56
- package/dist/cli/update-UWVL2OYA.js +0 -33
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 _chunkB7MPY7WHjs = require('./chunk-B7MPY7WH.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -10,17 +10,17 @@ var _chunk6FMP5XRFjs = require('./chunk-6FMP5XRF.js');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkUTKNSD6Tjs = require('./chunk-UTKNSD6T.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 _chunkUQXHBCHUjs = require('./chunk-UQXHBCHU.js');
|
|
21
|
+
require('./chunk-FDYCUA7A.js');
|
|
22
|
+
require('./chunk-XSGJKXMP.js');
|
|
23
|
+
require('./chunk-TCBYQX5N.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -38,10 +38,10 @@ require('./chunk-4EFD6R2V.js');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkHHGAY2A4js = require('./chunk-HHGAY2A4.js');
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunkSGG3TERPjs = require('./chunk-SGG3TERP.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 _chunkE26477MJjs = require('./chunk-E26477MJ.js');
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
|
|
@@ -67,19 +67,20 @@ var _chunkRI2PLVD4js = require('./chunk-RI2PLVD4.js');
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
var
|
|
70
|
+
var _chunkYYN2O43Cjs = require('./chunk-YYN2O43C.js');
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
|
|
74
74
|
|
|
75
|
-
var
|
|
75
|
+
var _chunkFPYESYBOjs = require('./chunk-FPYESYBO.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-EPQZ42PY.js');
|
|
82
82
|
require('./chunk-OG64RBAC.js');
|
|
83
|
+
require('./chunk-4OLXMJ2L.js');
|
|
83
84
|
require('./chunk-COGTRVWW.js');
|
|
84
85
|
|
|
85
86
|
// src/cli/command-invocation.ts
|
|
@@ -158,56 +159,56 @@ var _os = require('os');
|
|
|
158
159
|
var COMMAND_GROUPS = [
|
|
159
160
|
{
|
|
160
161
|
names: ["auth"],
|
|
161
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
162
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-AW34RGV5.js")))).registerAuthCommands
|
|
162
163
|
},
|
|
163
164
|
{
|
|
164
165
|
names: ["providers"],
|
|
165
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-
|
|
166
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-VNPJHXK5.js")))).registerProviderCommands
|
|
166
167
|
},
|
|
167
168
|
{
|
|
168
169
|
names: ["search"],
|
|
169
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-
|
|
170
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-Y7VFEFJJ.js")))).registerSearchCommand
|
|
170
171
|
},
|
|
171
172
|
{
|
|
172
173
|
names: ["describe"],
|
|
173
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
174
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-R6NVISAS.js")))).registerDescribeCommand
|
|
174
175
|
},
|
|
175
176
|
{
|
|
176
177
|
names: ["run"],
|
|
177
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-
|
|
178
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-2DLJBYFC.js")))).registerRunCommand
|
|
178
179
|
},
|
|
179
180
|
{
|
|
180
181
|
names: ["tools"],
|
|
181
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
182
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-732SZ4KV.js")))).registerToolsCommands
|
|
182
183
|
},
|
|
183
184
|
{
|
|
184
185
|
names: ["executions"],
|
|
185
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-
|
|
186
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-VKUTKQNN.js")))).registerExecutionsCommands
|
|
186
187
|
},
|
|
187
188
|
{
|
|
188
189
|
names: ["plays", "runs"],
|
|
189
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
190
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-NKSRPIAV.js")))).registerPlayCommands
|
|
190
191
|
},
|
|
191
192
|
{
|
|
192
193
|
names: ["sessions"],
|
|
193
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-
|
|
194
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-WT7P3F73.js")))).registerSessionsCommands
|
|
194
195
|
},
|
|
195
196
|
{
|
|
196
197
|
names: ["workflows"],
|
|
197
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-
|
|
198
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-GTDKPIEV.js")))).registerWorkflowCommands
|
|
198
199
|
},
|
|
199
200
|
{
|
|
200
201
|
names: ["pages"],
|
|
201
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./pages-
|
|
202
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./pages-WXY4GGZG.js")))).registerPagesCommands
|
|
202
203
|
},
|
|
203
204
|
{
|
|
204
205
|
names: ["secrets"],
|
|
205
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-
|
|
206
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-O5OQTFVD.js")))).registerSecretsCommands
|
|
206
207
|
},
|
|
207
208
|
{
|
|
208
209
|
names: ["settings", "notifications"],
|
|
209
210
|
load: async () => {
|
|
210
|
-
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-
|
|
211
|
+
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-U7UNDUDB.js")));
|
|
211
212
|
return (p) => {
|
|
212
213
|
commands.registerSettingsCommands(p);
|
|
213
214
|
commands.registerNotificationCommands(p);
|
|
@@ -216,51 +217,51 @@ var COMMAND_GROUPS = [
|
|
|
216
217
|
},
|
|
217
218
|
{
|
|
218
219
|
names: ["billing"],
|
|
219
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-
|
|
220
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-LIDDSOSY.js")))).registerBillingCommands
|
|
220
221
|
},
|
|
221
222
|
{
|
|
222
223
|
names: ["monitors"],
|
|
223
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-
|
|
224
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-4SKMAAMR.js")))).registerMonitorsCommands
|
|
224
225
|
},
|
|
225
226
|
{
|
|
226
227
|
names: ["org"],
|
|
227
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-
|
|
228
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-WJM7X6WB.js")))).registerOrgCommands
|
|
228
229
|
},
|
|
229
230
|
{
|
|
230
231
|
names: ["git", "projects", "deployments"],
|
|
231
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-
|
|
232
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-CXRU4CRW.js")))).registerGitCommands
|
|
232
233
|
},
|
|
233
234
|
{
|
|
234
235
|
names: ["csv"],
|
|
235
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-
|
|
236
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-PLJNQPLE.js")))).registerCsvCommands
|
|
236
237
|
},
|
|
237
238
|
{
|
|
238
239
|
names: ["db"],
|
|
239
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-
|
|
240
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-QDJ6GWF5.js")))).registerDbCommands
|
|
240
241
|
},
|
|
241
242
|
{
|
|
242
243
|
names: ["feedback"],
|
|
243
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-
|
|
244
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-HH5AUYLA.js")))).registerFeedbackCommands
|
|
244
245
|
},
|
|
245
246
|
{
|
|
246
247
|
names: ["enrich", "session", "backend"],
|
|
247
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-
|
|
248
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-NRPYJZOP.js")))).registerDeprecatedCommands
|
|
248
249
|
},
|
|
249
250
|
{
|
|
250
251
|
names: ["update"],
|
|
251
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-
|
|
252
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-PCYIUORM.js")))).registerUpdateCommand
|
|
252
253
|
},
|
|
253
254
|
{
|
|
254
255
|
names: ["skills", "skills-auto-sync"],
|
|
255
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-
|
|
256
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-BQC2323O.js")))).registerSkillsCommand
|
|
256
257
|
},
|
|
257
258
|
{
|
|
258
259
|
names: ["setup", "doctor"],
|
|
259
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-
|
|
260
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-4MZNDFKM.js")))).registerSetupCommands
|
|
260
261
|
},
|
|
261
262
|
{
|
|
262
263
|
names: ["quickstart"],
|
|
263
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-
|
|
264
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-6OTS2HDR.js")))).registerQuickstartCommands
|
|
264
265
|
}
|
|
265
266
|
];
|
|
266
267
|
async function registerDeeplineCommandGroups(program, requestedCommand) {
|
|
@@ -286,8 +287,8 @@ function registerDeeplineInlineCommands(program) {
|
|
|
286
287
|
function createDeferredPlayRunMaintenance(input) {
|
|
287
288
|
return async () => {
|
|
288
289
|
try {
|
|
289
|
-
const skillsVersion =
|
|
290
|
-
const compatibility = await
|
|
290
|
+
const skillsVersion = _chunkYYN2O43Cjs.readSdkSkillsLocalVersion.call(void 0, input.baseUrl);
|
|
291
|
+
const compatibility = await _chunkUQXHBCHUjs.traceCliSpan.call(void 0,
|
|
291
292
|
"cli.sdk_compatibility_deferred",
|
|
292
293
|
{
|
|
293
294
|
baseUrl: input.baseUrl,
|
|
@@ -295,24 +296,24 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
295
296
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
296
297
|
},
|
|
297
298
|
async () => {
|
|
298
|
-
const trusted =
|
|
299
|
+
const trusted = _chunkHHGAY2A4js.readTrustedCleanCompatibility.call(void 0,
|
|
299
300
|
input.baseUrl,
|
|
300
301
|
"plays run",
|
|
301
302
|
skillsVersion
|
|
302
303
|
);
|
|
303
304
|
if (trusted) return { response: trusted, error: null };
|
|
304
|
-
return
|
|
305
|
+
return _chunkHHGAY2A4js.checkSdkCompatibility.call(void 0, input.baseUrl, {
|
|
305
306
|
command: "plays run",
|
|
306
307
|
skillsVersion,
|
|
307
308
|
persistCache: input.policy !== "off",
|
|
308
|
-
catalog:
|
|
309
|
+
catalog: _chunkUTKNSD6Tjs.compatibilityCatalog.call(void 0, input.command)
|
|
309
310
|
});
|
|
310
311
|
}
|
|
311
312
|
);
|
|
312
313
|
if (compatibility.error || !compatibility.response) return;
|
|
313
314
|
const automaticUpdate = compatibility.response.auto_update;
|
|
314
315
|
if (_optionalChain([automaticUpdate, 'optionalAccess', _4 => _4.should_auto_update]) && !automaticUpdate.required && automaticUpdate.reason !== "rollback_forced") {
|
|
315
|
-
await
|
|
316
|
+
await _chunkUTKNSD6Tjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
316
317
|
compatibility.response,
|
|
317
318
|
input.baseUrl,
|
|
318
319
|
input.policy
|
|
@@ -322,7 +323,7 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
322
323
|
compatibility.response,
|
|
323
324
|
"skills"
|
|
324
325
|
) ? _nullishCoalesce(compatibility.response.skills, () => ( null)) : void 0;
|
|
325
|
-
await
|
|
326
|
+
await _chunkHHGAY2A4js.syncSdkSkillsIfNeeded.call(void 0, input.baseUrl, {
|
|
326
327
|
update: skillsUpdate,
|
|
327
328
|
mode: "detached"
|
|
328
329
|
});
|
|
@@ -350,7 +351,7 @@ var MAX_SESSIONS = 20;
|
|
|
350
351
|
function helpSeenPath(homeDir = _os.homedir.call(void 0, )) {
|
|
351
352
|
return _path.join.call(void 0, homeDir, ".local", "deepline", "sdk-cli", "help-seen.json");
|
|
352
353
|
}
|
|
353
|
-
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId =
|
|
354
|
+
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId = _chunkFPYESYBOjs.agentSessionIdFromEnvironment.call(void 0, )) {
|
|
354
355
|
const explicit = _chunkO3K22ZC7js.helpDetailFromArgv.call(void 0, argv);
|
|
355
356
|
if (explicit === "quiet") return { detail: "quiet", firstRead: false };
|
|
356
357
|
if (!sessionId) return { detail: explicit, firstRead: false };
|
|
@@ -448,7 +449,7 @@ function shouldReport(stdout, stderr) {
|
|
|
448
449
|
}
|
|
449
450
|
function toolName(action) {
|
|
450
451
|
const [toolId] = _optionalChain([action, 'optionalAccess', _5 => _5.path]) === "tools execute" ? action.args : [];
|
|
451
|
-
return typeof toolId === "string" ?
|
|
452
|
+
return typeof toolId === "string" ? _chunkHHGAY2A4js.redactFailureText.call(void 0, toolId) : null;
|
|
452
453
|
}
|
|
453
454
|
function chunkText(chunk) {
|
|
454
455
|
if (typeof chunk === "string") return chunk;
|
|
@@ -479,14 +480,14 @@ function watch(stream) {
|
|
|
479
480
|
}
|
|
480
481
|
async function postCommandOutput(body) {
|
|
481
482
|
try {
|
|
482
|
-
const baseUrl =
|
|
483
|
-
const apiKey =
|
|
483
|
+
const baseUrl = _chunkYYN2O43Cjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
484
|
+
const apiKey = _chunkYYN2O43Cjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
484
485
|
if (!apiKey) return;
|
|
485
|
-
const agentSessionId =
|
|
486
|
+
const agentSessionId = _chunkFPYESYBOjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
486
487
|
await fetch(new URL("/api/v2/telemetry/command-output", baseUrl), {
|
|
487
488
|
method: "POST",
|
|
488
489
|
headers: {
|
|
489
|
-
...
|
|
490
|
+
..._chunkHHGAY2A4js.failureReportHeaders.call(void 0, apiKey),
|
|
490
491
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {}
|
|
491
492
|
},
|
|
492
493
|
body: JSON.stringify(body),
|
|
@@ -502,14 +503,14 @@ function startOutputSizeReporting(invocation, streams = {
|
|
|
502
503
|
const stdoutWatch = watch(streams.stdout);
|
|
503
504
|
const stderrWatch = watch(streams.stderr);
|
|
504
505
|
return async (finished) => {
|
|
505
|
-
if (
|
|
506
|
+
if (_chunkHHGAY2A4js.isFailureReportingDisabled.call(void 0, )) return;
|
|
506
507
|
const [stdout, stderr] = await Promise.all([
|
|
507
508
|
stdoutWatch.settled(),
|
|
508
509
|
stderrWatch.settled()
|
|
509
510
|
]);
|
|
510
511
|
if (!shouldReport(stdout, stderr)) return;
|
|
511
512
|
await postCommandOutput({
|
|
512
|
-
command:
|
|
513
|
+
command: _chunkHHGAY2A4js.sanitizeCommand.call(void 0, invocation.argv),
|
|
513
514
|
tool: toolName(finished.action),
|
|
514
515
|
exit_code: typeof finished.exitCode === "number" ? finished.exitCode : null,
|
|
515
516
|
duration_ms: Math.max(0, Date.now() - invocation.startedAtMs),
|
|
@@ -540,7 +541,7 @@ function silenceCommanderErrorOutput(command) {
|
|
|
540
541
|
function printUsageErrorJson(code, message, commandPath) {
|
|
541
542
|
const unknownName = code === "commander.unknownCommand" ? _optionalChain([/unknown command '([^']+)'/, 'access', _6 => _6.exec, 'call', _7 => _7(message), 'optionalAccess', _8 => _8[1]]) : void 0;
|
|
542
543
|
const helpPath = unknownName && commandPath.endsWith(` ${unknownName}`) ? commandPath.slice(0, -unknownName.length - 1) : commandPath;
|
|
543
|
-
|
|
544
|
+
_chunkE26477MJjs.printJson.call(void 0, {
|
|
544
545
|
ok: false,
|
|
545
546
|
error: {
|
|
546
547
|
code,
|
|
@@ -602,7 +603,7 @@ function topLevelCommandKnown(program, commandName) {
|
|
|
602
603
|
);
|
|
603
604
|
}
|
|
604
605
|
async function runPlayRunnerHealthCheck() {
|
|
605
|
-
|
|
606
|
+
_chunkYYN2O43Cjs.resolveConfig.call(void 0, );
|
|
606
607
|
const dir = await _promises.mkdtemp.call(void 0, _path.join.call(void 0, _os.tmpdir.call(void 0, ), "deepline-health-play-"));
|
|
607
608
|
const file = _path.join.call(void 0, dir, "health-check.play.ts");
|
|
608
609
|
try {
|
|
@@ -632,7 +633,7 @@ async function runPlayRunnerHealthCheck() {
|
|
|
632
633
|
});
|
|
633
634
|
let exitCode = 1;
|
|
634
635
|
try {
|
|
635
|
-
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
636
|
+
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-NKSRPIAV.js")));
|
|
636
637
|
exitCode = await handlePlayRun([
|
|
637
638
|
file,
|
|
638
639
|
"--input",
|
|
@@ -672,7 +673,7 @@ function preflightErrorMessage(error) {
|
|
|
672
673
|
return error instanceof Error ? error.message : String(error);
|
|
673
674
|
}
|
|
674
675
|
async function runPreflightCheck() {
|
|
675
|
-
const baseUrl =
|
|
676
|
+
const baseUrl = _chunkYYN2O43Cjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
676
677
|
const healthController = new AbortController();
|
|
677
678
|
const healthTimeout = setTimeout(
|
|
678
679
|
() => healthController.abort(),
|
|
@@ -689,14 +690,14 @@ async function runPreflightCheck() {
|
|
|
689
690
|
}).catch((error) => ({
|
|
690
691
|
status: "unreachable",
|
|
691
692
|
version: null,
|
|
692
|
-
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.` : _chunkFPYESYBOjs.connectionFailureMessage.call(void 0,
|
|
693
694
|
baseUrl,
|
|
694
695
|
error instanceof Error ? error : new Error(String(error))
|
|
695
696
|
)
|
|
696
697
|
})).finally(() => clearTimeout(healthTimeout));
|
|
697
|
-
const apiKey =
|
|
698
|
-
const http = apiKey ? new (0,
|
|
699
|
-
|
|
698
|
+
const apiKey = _chunkYYN2O43Cjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
699
|
+
const http = apiKey ? new (0, _chunkYYN2O43Cjs.HttpClient)(
|
|
700
|
+
_chunkYYN2O43Cjs.resolveConfig.call(void 0, {
|
|
700
701
|
baseUrl,
|
|
701
702
|
apiKey,
|
|
702
703
|
timeout: PREFLIGHT_TIMEOUT_MS,
|
|
@@ -741,7 +742,7 @@ async function runPreflightCheck() {
|
|
|
741
742
|
const connected = authStatus === "connected" || authStatus === "claimed";
|
|
742
743
|
return {
|
|
743
744
|
status: healthResult.status === "ok" && connected ? "ok" : "check",
|
|
744
|
-
cli_version:
|
|
745
|
+
cli_version: _chunkFPYESYBOjs.SDK_VERSION,
|
|
745
746
|
host: baseUrl,
|
|
746
747
|
health: {
|
|
747
748
|
status: healthResult.status,
|
|
@@ -768,7 +769,7 @@ async function runPreflightCheck() {
|
|
|
768
769
|
{
|
|
769
770
|
title: "preflight",
|
|
770
771
|
lines: [
|
|
771
|
-
`cli: ${
|
|
772
|
+
`cli: ${_chunkFPYESYBOjs.SDK_VERSION}`,
|
|
772
773
|
`host: ${baseUrl}`,
|
|
773
774
|
`health: ${healthResult.status}`,
|
|
774
775
|
..."error" in healthResult ? [` ${healthResult.error}`] : [],
|
|
@@ -795,12 +796,12 @@ function printPreflightHuman(data) {
|
|
|
795
796
|
}
|
|
796
797
|
async function newerCliCommandHint(baseUrl, command) {
|
|
797
798
|
if (!command.trim()) return null;
|
|
798
|
-
const { response, error } = await
|
|
799
|
+
const { response, error } = await _chunkHHGAY2A4js.checkSdkCompatibility.call(void 0, baseUrl, { command });
|
|
799
800
|
if (error || !response) return null;
|
|
800
801
|
const introduced = response.command_introduced_in;
|
|
801
802
|
if (introduced) {
|
|
802
803
|
return [
|
|
803
|
-
`\`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 ${_chunkFPYESYBOjs.SDK_VERSION}.`,
|
|
804
805
|
` ${introduced.reason}`,
|
|
805
806
|
` Update with: ${response.update_command}`,
|
|
806
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."
|
|
@@ -809,32 +810,32 @@ async function newerCliCommandHint(baseUrl, command) {
|
|
|
809
810
|
if (!response.update_required) return null;
|
|
810
811
|
return [
|
|
811
812
|
response.message,
|
|
812
|
-
` Installed: ${
|
|
813
|
+
` Installed: ${_chunkFPYESYBOjs.SDK_VERSION}. Run: ${response.update_command}`,
|
|
813
814
|
" If an agent skill told you to run this, the skill is newer than this CLI."
|
|
814
815
|
].join("\n");
|
|
815
816
|
}
|
|
816
817
|
async function runMain(ensureTransport, onAction) {
|
|
817
818
|
const mainStartedAt = Date.now();
|
|
818
|
-
|
|
819
|
+
_chunkE26477MJjs.installJsonStderrGuard.call(void 0, );
|
|
819
820
|
let rootHelpStatus = "";
|
|
820
821
|
let commandFailed = false;
|
|
821
822
|
const deferredMaintenance = { inlinePlay: null };
|
|
822
|
-
|
|
823
|
+
_chunkUQXHBCHUjs.recordCliTrace.call(void 0, {
|
|
823
824
|
phase: "cli.main_start",
|
|
824
825
|
argv: process.argv.slice(2)
|
|
825
826
|
});
|
|
826
827
|
const printStartupPhase = shouldPrintStartupPhase();
|
|
827
|
-
const progress = printStartupPhase ?
|
|
828
|
+
const progress = printStartupPhase ? _chunkSGG3TERPjs.createCliProgress.call(void 0, true) : null;
|
|
828
829
|
if (printStartupPhase) {
|
|
829
830
|
_optionalChain([progress, 'optionalAccess', _14 => _14.phase, 'call', _15 => _15("loading deepline cli")]);
|
|
830
831
|
}
|
|
831
832
|
const program = new (0, _commander.Command)();
|
|
832
833
|
program.name("deepline").description(
|
|
833
834
|
"Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
|
|
834
|
-
).version(
|
|
835
|
+
).version(_chunkFPYESYBOjs.SDK_VERSION, "-v, --version", "Show version").option(
|
|
835
836
|
"--maintenance <policy>",
|
|
836
837
|
"Installation maintenance: configured preferences or off; independent of output format",
|
|
837
|
-
|
|
838
|
+
_chunkUQXHBCHUjs.parseCliMaintenancePolicy,
|
|
838
839
|
"configured"
|
|
839
840
|
).exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
|
|
840
841
|
"beforeAll",
|
|
@@ -892,24 +893,24 @@ Exit codes:
|
|
|
892
893
|
path: compatibilityCommandPath(actionCommand),
|
|
893
894
|
args: actionCommand.processedArgs
|
|
894
895
|
});
|
|
895
|
-
const maintenance =
|
|
896
|
+
const maintenance = _chunkUQXHBCHUjs.resolveCliMaintenancePolicy.call(void 0,
|
|
896
897
|
actionCommand.optsWithGlobals()
|
|
897
898
|
);
|
|
898
899
|
if (actionCommand.name() !== "version") {
|
|
899
900
|
await ensureTransport();
|
|
900
901
|
}
|
|
901
|
-
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() === _chunkHHGAY2A4js.SKILLS_AUTO_SYNC_COMMAND || actionCommand.name() === "doctor" || isAutoUpdateSettingsInvocation() || isDeprecatedCommandInvocation()) {
|
|
902
903
|
return;
|
|
903
904
|
}
|
|
904
905
|
const compatibilityCommand = compatibilityCommandPath(actionCommand) || actionCommand.name();
|
|
905
906
|
const isToolExecuteCommand = compatibilityCommand === "tools execute";
|
|
906
907
|
if (isToolExecuteCommand) {
|
|
907
|
-
|
|
908
|
+
_chunkUTKNSD6Tjs.beginToolExecuteCommand.call(void 0, );
|
|
908
909
|
}
|
|
909
910
|
if (isToolExecuteCommand) {
|
|
910
|
-
const baseUrl =
|
|
911
|
-
if (maintenance !== "off")
|
|
912
|
-
|
|
911
|
+
const baseUrl = _chunkYYN2O43Cjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
912
|
+
if (maintenance !== "off") _chunkHHGAY2A4js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
913
|
+
_chunkUQXHBCHUjs.recordCliTrace.call(void 0, {
|
|
913
914
|
phase: "cli.sdk_compatibility_deferred_to_tool_execute",
|
|
914
915
|
baseUrl,
|
|
915
916
|
command: compatibilityCommand
|
|
@@ -917,9 +918,9 @@ Exit codes:
|
|
|
917
918
|
return;
|
|
918
919
|
}
|
|
919
920
|
const playDryRun = compatibilityCommand === "plays run" && actionCommand.optsWithGlobals().dryRun === true;
|
|
920
|
-
if (!playDryRun &&
|
|
921
|
+
if (!playDryRun && _chunkB7MPY7WHjs.usesInlinePlayAdmission.call(void 0, compatibilityCommand, process.argv.slice(2))) {
|
|
921
922
|
if (maintenance !== "off") {
|
|
922
|
-
const baseUrl =
|
|
923
|
+
const baseUrl = _chunkYYN2O43Cjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
923
924
|
deferredMaintenance.inlinePlay = createDeferredPlayRunMaintenance({
|
|
924
925
|
baseUrl,
|
|
925
926
|
command: actionCommand,
|
|
@@ -928,27 +929,27 @@ Exit codes:
|
|
|
928
929
|
}
|
|
929
930
|
return;
|
|
930
931
|
}
|
|
931
|
-
const runStartupStage = (stage, action) => isToolExecuteCommand ?
|
|
932
|
+
const runStartupStage = (stage, action) => isToolExecuteCommand ? _chunkUTKNSD6Tjs.runToolExecuteStage.call(void 0, stage, action) : Promise.resolve(action());
|
|
932
933
|
if (printStartupPhase) {
|
|
933
934
|
_optionalChain([progress, 'optionalAccess', _16 => _16.phase, 'call', _17 => _17("checking sdk compatibility")]);
|
|
934
935
|
}
|
|
935
936
|
const startup = await runStartupStage("SDK compatibility", async () => {
|
|
936
|
-
const baseUrl =
|
|
937
|
-
if (maintenance !== "off")
|
|
937
|
+
const baseUrl = _chunkYYN2O43Cjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
938
|
+
if (maintenance !== "off") _chunkHHGAY2A4js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
938
939
|
const shouldDeferSkillsSync = isToolExecuteCommand || maintenance === "off" || shouldDeferSkillsSyncForCommand();
|
|
939
|
-
const skillsVersion = shouldDeferSkillsSync ? void 0 :
|
|
940
|
-
const trusted = isToolExecuteCommand ? null :
|
|
940
|
+
const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunkYYN2O43Cjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
941
|
+
const trusted = isToolExecuteCommand ? null : _chunkHHGAY2A4js.readTrustedCleanCompatibility.call(void 0,
|
|
941
942
|
baseUrl,
|
|
942
943
|
compatibilityCommand,
|
|
943
944
|
skillsVersion
|
|
944
945
|
);
|
|
945
|
-
const fastDeadline = !isToolExecuteCommand && trusted === null &&
|
|
946
|
+
const fastDeadline = !isToolExecuteCommand && trusted === null && _chunkHHGAY2A4js.readFreshCleanCompatibility.call(void 0,
|
|
946
947
|
baseUrl,
|
|
947
948
|
compatibilityCommand,
|
|
948
949
|
skillsVersion
|
|
949
950
|
) !== null;
|
|
950
951
|
if (trusted) {
|
|
951
|
-
|
|
952
|
+
_chunkUQXHBCHUjs.recordCliTrace.call(void 0, {
|
|
952
953
|
phase: "cli.sdk_compatibility",
|
|
953
954
|
ms: 0,
|
|
954
955
|
ok: true,
|
|
@@ -958,7 +959,7 @@ Exit codes:
|
|
|
958
959
|
source: "trusted_cache"
|
|
959
960
|
});
|
|
960
961
|
}
|
|
961
|
-
const compatibility = trusted ? { response: trusted, error: null } : await
|
|
962
|
+
const compatibility = trusted ? { response: trusted, error: null } : await _chunkUQXHBCHUjs.traceCliSpan.call(void 0,
|
|
962
963
|
"cli.sdk_compatibility",
|
|
963
964
|
{
|
|
964
965
|
baseUrl,
|
|
@@ -966,12 +967,12 @@ Exit codes:
|
|
|
966
967
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null)),
|
|
967
968
|
fastDeadline
|
|
968
969
|
},
|
|
969
|
-
() =>
|
|
970
|
+
() => _chunkHHGAY2A4js.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
970
971
|
command: compatibilityCommand,
|
|
971
972
|
skillsVersion,
|
|
972
973
|
persistCache: !isToolExecuteCommand && maintenance !== "off",
|
|
973
|
-
catalog:
|
|
974
|
-
...fastDeadline ? { timeoutMs:
|
|
974
|
+
catalog: _chunkUTKNSD6Tjs.compatibilityCatalog.call(void 0, actionCommand),
|
|
975
|
+
...fastDeadline ? { timeoutMs: _chunkHHGAY2A4js.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
|
|
975
976
|
})
|
|
976
977
|
);
|
|
977
978
|
if (compatibility.error) {
|
|
@@ -982,7 +983,7 @@ Exit codes:
|
|
|
982
983
|
response: null
|
|
983
984
|
};
|
|
984
985
|
}
|
|
985
|
-
const relaunched = await
|
|
986
|
+
const relaunched = await _chunkUTKNSD6Tjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
986
987
|
compatibility.response,
|
|
987
988
|
baseUrl,
|
|
988
989
|
maintenance
|
|
@@ -996,14 +997,14 @@ Exit codes:
|
|
|
996
997
|
};
|
|
997
998
|
}
|
|
998
999
|
const policy = compatibility.response;
|
|
999
|
-
const jsonOutput =
|
|
1000
|
-
|
|
1000
|
+
const jsonOutput = _chunkE26477MJjs.isJsonOutputMode.call(void 0, );
|
|
1001
|
+
_chunkHHGAY2A4js.enforceSdkCompatibilityResponse.call(void 0, policy, {
|
|
1001
1002
|
quietAdvisory: jsonOutput || // The queued update already says what is about to happen.
|
|
1002
|
-
|
|
1003
|
+
_chunkUTKNSD6Tjs.hasDeferredAutoUpdate.call(void 0, ) || maintenance === "off" || !_chunkHHGAY2A4js.claimUpdateAdvisory.call(void 0, baseUrl)
|
|
1003
1004
|
});
|
|
1004
1005
|
const advisory = compatibility.response;
|
|
1005
|
-
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !
|
|
1006
|
-
|
|
1006
|
+
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !_chunkHHGAY2A4js.isCiEnvironment.call(void 0, ) && !_chunkUTKNSD6Tjs.hasDeferredAutoUpdate.call(void 0, )) {
|
|
1007
|
+
_chunkE26477MJjs.addJsonNotice.call(void 0, { code: advisory.status, message: advisory.message });
|
|
1007
1008
|
}
|
|
1008
1009
|
return {
|
|
1009
1010
|
shouldContinue: true,
|
|
@@ -1020,10 +1021,10 @@ Exit codes:
|
|
|
1020
1021
|
const skillsUpdate = startup.response && Object.prototype.hasOwnProperty.call(startup.response, "skills") ? _nullishCoalesce(startup.response.skills, () => ( null)) : void 0;
|
|
1021
1022
|
await runStartupStage(
|
|
1022
1023
|
"agent skills sync",
|
|
1023
|
-
() =>
|
|
1024
|
+
() => _chunkUQXHBCHUjs.traceCliSpan.call(void 0,
|
|
1024
1025
|
"cli.sdk_skills_sync",
|
|
1025
1026
|
{ baseUrl: startup.baseUrl },
|
|
1026
|
-
() =>
|
|
1027
|
+
() => _chunkHHGAY2A4js.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
|
|
1027
1028
|
update: skillsUpdate,
|
|
1028
1029
|
mode: "detached"
|
|
1029
1030
|
})
|
|
@@ -1035,16 +1036,16 @@ Exit codes:
|
|
|
1035
1036
|
program,
|
|
1036
1037
|
process.argv.slice(2)
|
|
1037
1038
|
);
|
|
1038
|
-
const commandRegistrationStartedAt =
|
|
1039
|
+
const commandRegistrationStartedAt = _chunkUQXHBCHUjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1039
1040
|
await registerDeeplineCommandGroups(program, requestedCommand);
|
|
1040
1041
|
if (commandRegistrationStartedAt !== void 0) {
|
|
1041
|
-
|
|
1042
|
+
_chunkUQXHBCHUjs.recordCliTrace.call(void 0, {
|
|
1042
1043
|
phase: "cli.command_registration",
|
|
1043
1044
|
ms: performance.now() - commandRegistrationStartedAt
|
|
1044
1045
|
});
|
|
1045
1046
|
}
|
|
1046
1047
|
const { preflight, health, version } = registerDeeplineInlineCommands(program);
|
|
1047
|
-
if (
|
|
1048
|
+
if (_chunkE26477MJjs.isJsonOutputMode.call(void 0, )) silenceCommanderErrorOutput(program);
|
|
1048
1049
|
preflight.addHelpText(
|
|
1049
1050
|
"after",
|
|
1050
1051
|
`
|
|
@@ -1060,8 +1061,8 @@ Examples:
|
|
|
1060
1061
|
`
|
|
1061
1062
|
).action(async (options) => {
|
|
1062
1063
|
const data = await runPreflightCheck();
|
|
1063
|
-
if (
|
|
1064
|
-
|
|
1064
|
+
if (_chunkE26477MJjs.shouldEmitJson.call(void 0, options.json)) {
|
|
1065
|
+
_chunkE26477MJjs.printJson.call(void 0, data);
|
|
1065
1066
|
} else {
|
|
1066
1067
|
printPreflightHuman(data);
|
|
1067
1068
|
}
|
|
@@ -1086,7 +1087,7 @@ Examples:
|
|
|
1086
1087
|
).action(async (options) => {
|
|
1087
1088
|
if (options.playRunner) {
|
|
1088
1089
|
const data = await runPlayRunnerHealthCheck();
|
|
1089
|
-
|
|
1090
|
+
_chunkE26477MJjs.printCommandEnvelope.call(void 0, data, {
|
|
1090
1091
|
json: options.json,
|
|
1091
1092
|
text: `play runner: ${data.playRunner.status} (${data.playRunner.check})
|
|
1092
1093
|
`
|
|
@@ -1094,15 +1095,15 @@ Examples:
|
|
|
1094
1095
|
return;
|
|
1095
1096
|
}
|
|
1096
1097
|
try {
|
|
1097
|
-
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1098
|
-
const baseUrl =
|
|
1098
|
+
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-AW34RGV5.js")));
|
|
1099
|
+
const baseUrl = _chunkYYN2O43Cjs.resolveBaseUrlOnly.call(void 0, );
|
|
1099
1100
|
const [{ status, data }, banner] = await Promise.all([
|
|
1100
1101
|
httpJson("GET", `${baseUrl}/api/v2/health`, null),
|
|
1101
1102
|
readStatusBanner(baseUrl)
|
|
1102
1103
|
]);
|
|
1103
1104
|
if (status !== 200) throw new Error(`HTTP ${status}`);
|
|
1104
1105
|
const lines = [`${baseUrl}: ${data.status}`, statusBannerLine(banner)];
|
|
1105
|
-
|
|
1106
|
+
_chunkE26477MJjs.printCommandEnvelope.call(void 0,
|
|
1106
1107
|
{ ...data, status_banner: banner },
|
|
1107
1108
|
{
|
|
1108
1109
|
json: options.json,
|
|
@@ -1130,16 +1131,16 @@ Examples:
|
|
|
1130
1131
|
`
|
|
1131
1132
|
).action((options) => {
|
|
1132
1133
|
if (options.json) {
|
|
1133
|
-
|
|
1134
|
+
_chunkE26477MJjs.printCompactJson.call(void 0, { version: _chunkFPYESYBOjs.SDK_VERSION });
|
|
1134
1135
|
return;
|
|
1135
1136
|
}
|
|
1136
|
-
process.stdout.write(`deepline ${
|
|
1137
|
+
process.stdout.write(`deepline ${_chunkFPYESYBOjs.SDK_VERSION}
|
|
1137
1138
|
`);
|
|
1138
1139
|
});
|
|
1139
1140
|
if (process.argv.slice(2).length === 0) {
|
|
1140
1141
|
program.outputHelp({ error: true });
|
|
1141
1142
|
console.error("\nerror: missing command (see usage above)");
|
|
1142
|
-
|
|
1143
|
+
_chunkUQXHBCHUjs.recordCliTrace.call(void 0, {
|
|
1143
1144
|
phase: "cli.main_total",
|
|
1144
1145
|
ms: Date.now() - mainStartedAt,
|
|
1145
1146
|
ok: false,
|
|
@@ -1151,16 +1152,16 @@ Examples:
|
|
|
1151
1152
|
const requestedTopLevelCommand = _nullishCoalesce(process.argv.slice(2)[0], () => ( ""));
|
|
1152
1153
|
if (!topLevelCommandKnown(program, requestedTopLevelCommand)) {
|
|
1153
1154
|
const unknownCommandMessage = `error: unknown command '${requestedTopLevelCommand}'`;
|
|
1154
|
-
if (!
|
|
1155
|
-
const baseUrl =
|
|
1155
|
+
if (!_chunkE26477MJjs.isJsonOutputMode.call(void 0, )) console.error(unknownCommandMessage);
|
|
1156
|
+
const baseUrl = _chunkYYN2O43Cjs.autoDetectBaseUrl.call(void 0, );
|
|
1156
1157
|
await ensureTransport();
|
|
1157
1158
|
const versionHint = await newerCliCommandHint(
|
|
1158
1159
|
baseUrl,
|
|
1159
1160
|
requestedTopLevelCommand
|
|
1160
1161
|
);
|
|
1161
|
-
if (
|
|
1162
|
+
if (_chunkE26477MJjs.isJsonOutputMode.call(void 0, )) {
|
|
1162
1163
|
if (versionHint) {
|
|
1163
|
-
|
|
1164
|
+
_chunkE26477MJjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1164
1165
|
}
|
|
1165
1166
|
printUsageErrorJson(
|
|
1166
1167
|
"commander.unknownCommand",
|
|
@@ -1182,18 +1183,18 @@ Examples:
|
|
|
1182
1183
|
const helpArgs = process.argv.slice(2);
|
|
1183
1184
|
const helpPositionals = helpArgs.filter((arg) => !arg.startsWith("-"));
|
|
1184
1185
|
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: ${
|
|
1186
|
+
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-AW34RGV5.js")));
|
|
1187
|
+
rootHelpStatus = `Version: ${_chunkFPYESYBOjs.SDK_VERSION}
|
|
1187
1188
|
${await authStatusLine()}
|
|
1188
1189
|
`;
|
|
1189
1190
|
}
|
|
1190
1191
|
await program.parseAsync(process.argv);
|
|
1191
|
-
|
|
1192
|
+
_chunkUQXHBCHUjs.recordCliTrace.call(void 0, {
|
|
1192
1193
|
phase: "cli.main_total",
|
|
1193
1194
|
ms: Date.now() - mainStartedAt,
|
|
1194
1195
|
ok: true
|
|
1195
1196
|
});
|
|
1196
|
-
await
|
|
1197
|
+
await _chunkHHGAY2A4js.maybeReportSdkCliFailure.call(void 0, {
|
|
1197
1198
|
argv: process.argv.slice(2),
|
|
1198
1199
|
startedAtMs: mainStartedAt,
|
|
1199
1200
|
exitCode: typeof process.exitCode === "number" ? process.exitCode : null
|
|
@@ -1201,14 +1202,14 @@ ${await authStatusLine()}
|
|
|
1201
1202
|
} catch (error) {
|
|
1202
1203
|
commandFailed = true;
|
|
1203
1204
|
const commanderError = asCommanderError(error);
|
|
1204
|
-
|
|
1205
|
+
_chunkUQXHBCHUjs.recordCliTrace.call(void 0, {
|
|
1205
1206
|
phase: "cli.main_total",
|
|
1206
1207
|
ms: Date.now() - mainStartedAt,
|
|
1207
1208
|
ok: false,
|
|
1208
1209
|
error: error instanceof Error ? error.message : String(error)
|
|
1209
1210
|
});
|
|
1210
1211
|
_optionalChain([progress, 'optionalAccess', _20 => _20.fail, 'call', _21 => _21()]);
|
|
1211
|
-
const wantsJson =
|
|
1212
|
+
const wantsJson = _chunkE26477MJjs.isJsonOutputMode.call(void 0, );
|
|
1212
1213
|
if (commanderError) {
|
|
1213
1214
|
const grammarError = [
|
|
1214
1215
|
"commander.unknownCommand",
|
|
@@ -1219,12 +1220,12 @@ ${await authStatusLine()}
|
|
|
1219
1220
|
if (grammarError) {
|
|
1220
1221
|
await ensureTransport();
|
|
1221
1222
|
const versionHint = await newerCliCommandHint(
|
|
1222
|
-
|
|
1223
|
+
_chunkYYN2O43Cjs.autoDetectBaseUrl.call(void 0, ),
|
|
1223
1224
|
commandPath
|
|
1224
1225
|
);
|
|
1225
1226
|
if (wantsJson) {
|
|
1226
1227
|
if (versionHint) {
|
|
1227
|
-
|
|
1228
|
+
_chunkE26477MJjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1228
1229
|
}
|
|
1229
1230
|
} else {
|
|
1230
1231
|
if (versionHint) console.error(versionHint);
|
|
@@ -1244,55 +1245,55 @@ ${await authStatusLine()}
|
|
|
1244
1245
|
return;
|
|
1245
1246
|
} else if (wantsJson) {
|
|
1246
1247
|
if (error instanceof _chunkALJJRZNJjs.AuthError) {
|
|
1247
|
-
|
|
1248
|
+
_chunkE26477MJjs.addJsonNotice.call(void 0, {
|
|
1248
1249
|
code: "auth_required",
|
|
1249
1250
|
message: `Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`
|
|
1250
1251
|
});
|
|
1251
1252
|
}
|
|
1252
|
-
const providerConcurrency =
|
|
1253
|
+
const providerConcurrency = _chunkE26477MJjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1253
1254
|
if (providerConcurrency) {
|
|
1254
|
-
|
|
1255
|
+
_chunkE26477MJjs.addJsonNotice.call(void 0, {
|
|
1255
1256
|
code: "provider_concurrency",
|
|
1256
1257
|
message: providerConcurrency
|
|
1257
1258
|
});
|
|
1258
1259
|
}
|
|
1259
|
-
const payload =
|
|
1260
|
-
|
|
1260
|
+
const payload = _chunkE26477MJjs.errorToJsonPayload.call(void 0, error);
|
|
1261
|
+
_chunkE26477MJjs.printJson.call(void 0, {
|
|
1261
1262
|
...payload,
|
|
1262
1263
|
// The envelope names the code the process exits with, so a caller
|
|
1263
1264
|
// that only reads stdout still cannot mistake a failure for data.
|
|
1264
|
-
exitCode: _nullishCoalesce(payload.exitCode, () => (
|
|
1265
|
+
exitCode: _nullishCoalesce(payload.exitCode, () => ( _chunkHHGAY2A4js.resolveSdkCliFailureExitCode.call(void 0, error))),
|
|
1265
1266
|
...error instanceof _chunkALJJRZNJjs.AuthError ? { next: AUTH_RECOVERY_COMMAND } : {}
|
|
1266
1267
|
});
|
|
1267
1268
|
} else if (error instanceof Error) {
|
|
1268
1269
|
console.error(`Error: ${error.message}`);
|
|
1269
|
-
const toolDiagnostic =
|
|
1270
|
+
const toolDiagnostic = _chunkE26477MJjs.formatToolExecutionErrorDiagnostic.call(void 0, error);
|
|
1270
1271
|
if (toolDiagnostic) console.error(toolDiagnostic);
|
|
1271
1272
|
if (error instanceof _chunkALJJRZNJjs.AuthError) {
|
|
1272
1273
|
console.error(`Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`);
|
|
1273
1274
|
}
|
|
1274
|
-
const providerConcurrency =
|
|
1275
|
+
const providerConcurrency = _chunkE26477MJjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1275
1276
|
if (providerConcurrency) console.error(providerConcurrency);
|
|
1276
1277
|
} else {
|
|
1277
1278
|
console.error(`Error: ${String(error)}`);
|
|
1278
1279
|
}
|
|
1279
1280
|
const explicitExitCode = error && typeof error === "object" && typeof error.exitCode === "number" ? error.exitCode : void 0;
|
|
1280
|
-
const failureExitCode = _nullishCoalesce(explicitExitCode, () => (
|
|
1281
|
+
const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunkHHGAY2A4js.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
1281
1282
|
process.exitCode = failureExitCode;
|
|
1282
|
-
await
|
|
1283
|
+
await _chunkHHGAY2A4js.maybeReportSdkCliFailure.call(void 0, {
|
|
1283
1284
|
argv: process.argv.slice(2),
|
|
1284
1285
|
startedAtMs: mainStartedAt,
|
|
1285
1286
|
exitCode: failureExitCode,
|
|
1286
1287
|
error
|
|
1287
1288
|
});
|
|
1288
1289
|
} finally {
|
|
1289
|
-
|
|
1290
|
+
_chunkUTKNSD6Tjs.finishToolExecuteCommand.call(void 0, );
|
|
1290
1291
|
const maintainInlinePlay = deferredMaintenance.inlinePlay;
|
|
1291
1292
|
deferredMaintenance.inlinePlay = null;
|
|
1292
1293
|
if (commandFailed || typeof process.exitCode === "number" && process.exitCode !== 0) {
|
|
1293
1294
|
await _optionalChain([maintainInlinePlay, 'optionalCall', _22 => _22()]);
|
|
1294
1295
|
}
|
|
1295
|
-
await
|
|
1296
|
+
await _chunkUTKNSD6Tjs.runDeferredAutoUpdate.call(void 0, );
|
|
1296
1297
|
}
|
|
1297
1298
|
process.exitCode = _nullishCoalesce(process.exitCode, () => ( 0));
|
|
1298
1299
|
}
|
|
@@ -1300,7 +1301,7 @@ async function main() {
|
|
|
1300
1301
|
let disposeTransport;
|
|
1301
1302
|
const ensureTransport = async () => {
|
|
1302
1303
|
if (disposeTransport) return;
|
|
1303
|
-
const transportStartedAt =
|
|
1304
|
+
const transportStartedAt = _chunkUQXHBCHUjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1304
1305
|
const hasProxy = [
|
|
1305
1306
|
"HTTP_PROXY",
|
|
1306
1307
|
"http_proxy",
|
|
@@ -1312,7 +1313,7 @@ async function main() {
|
|
|
1312
1313
|
disposeTransport = configureCliTransport();
|
|
1313
1314
|
}
|
|
1314
1315
|
if (transportStartedAt !== void 0) {
|
|
1315
|
-
|
|
1316
|
+
_chunkUQXHBCHUjs.recordCliTrace.call(void 0, {
|
|
1316
1317
|
phase: "cli.transport_setup",
|
|
1317
1318
|
ms: performance.now() - transportStartedAt
|
|
1318
1319
|
});
|
|
@@ -1329,9 +1330,9 @@ async function main() {
|
|
|
1329
1330
|
action = dispatched;
|
|
1330
1331
|
skipOutputReport = dispatched.path === "tools execute" || dispatched.path === "plays run" && process.argv.includes("--json");
|
|
1331
1332
|
});
|
|
1332
|
-
const silentFailure =
|
|
1333
|
+
const silentFailure = _chunkE26477MJjs.takeSilentJsonFailureMessage.call(void 0, process.exitCode);
|
|
1333
1334
|
if (silentFailure) {
|
|
1334
|
-
|
|
1335
|
+
_chunkE26477MJjs.printJson.call(void 0, {
|
|
1335
1336
|
ok: false,
|
|
1336
1337
|
exitCode: Number(process.exitCode),
|
|
1337
1338
|
error: { code: "CLI_ERROR", message: silentFailure }
|