deepline 0.3.407 → 0.3.408
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/client.ts +2 -0
- package/dist/bundling-sources/sdk/src/play.ts +13 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +23 -0
- package/dist/bundling-sources/shared_libs/play-runtime/admission-timings.ts +64 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +11 -1
- package/dist/bundling-sources/shared_libs/play-runtime/modal-runtime-config.ts +1 -4
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/local-process.ts +15 -6
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +188 -45
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +22 -4
- package/dist/bundling-sources/shared_libs/play-runtime/tool-http-errors.ts +10 -4
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +72 -0
- package/dist/bundling-sources/shared_libs/play-runtime/webhook-receipt-source-commit-retry.ts +90 -0
- package/dist/bundling-sources/shared_libs/play-runtime/worker-api-types.ts +5 -0
- package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +6 -0
- package/dist/cli/auth-3GB2K636.js +40 -0
- package/dist/cli/{auth-WURWNNLE.mjs → auth-UVD3CUBB.mjs} +4 -4
- package/dist/cli/{billing-BP3E6WIM.mjs → billing-BZVTXXLM.mjs} +23 -16
- package/dist/cli/{billing-2QJGXGJX.js → billing-BZVYAF6T.js} +92 -85
- package/dist/cli/{chunk-Y6CX4QPR.js → chunk-2XXXFPTD.js} +67 -67
- package/dist/cli/{chunk-RZLXVHNO.js → chunk-3ZB6IIA7.js} +26 -26
- package/dist/cli/{chunk-BKC6VMYZ.mjs → chunk-4CFULMRB.mjs} +73 -4
- package/dist/cli/{chunk-6JZZNP5G.mjs → chunk-4QFT5LGV.mjs} +2 -2
- package/dist/cli/{chunk-H6EWQFPQ.js → chunk-4RNDKFNQ.js} +2 -2
- package/dist/cli/{chunk-GAMFK2ZP.mjs → chunk-67RWR34T.mjs} +10 -3
- package/dist/cli/{chunk-KUQAU5MG.js → chunk-AUMD2VXP.js} +6 -6
- package/dist/cli/{chunk-IY6GKJ4O.js → chunk-BRJUESQV.js} +50 -50
- package/dist/cli/{chunk-7LKYHZVB.js → chunk-D6FFBSM5.js} +1 -1
- package/dist/cli/{chunk-AYHLUHE5.js → chunk-E3PJF6YP.js} +6 -2
- package/dist/cli/{chunk-G6U74WNM.js → chunk-ECVLPS67.js} +15 -15
- package/dist/cli/{chunk-QJBJZVG6.js → chunk-HQY2SG3K.js} +15 -8
- package/dist/cli/{chunk-P7HOTKOK.mjs → chunk-I3DHIXVJ.mjs} +4 -4
- package/dist/cli/{chunk-L25GBGQU.mjs → chunk-IOHRWLQE.mjs} +6 -6
- package/dist/cli/{chunk-UFFSOV6I.mjs → chunk-IWBXJDZA.mjs} +2 -2
- package/dist/cli/{chunk-URWF7NGQ.js → chunk-J5PTX66Y.js} +28 -14
- package/dist/cli/{chunk-J67NU4MQ.mjs → chunk-LOYISF7S.mjs} +1 -1
- package/dist/cli/{chunk-4TV43THC.mjs → chunk-MJELBQBU.mjs} +4 -4
- package/dist/cli/{chunk-WJYPBHTE.js → chunk-OSFWFV72.js} +11 -4
- package/dist/cli/{chunk-ZI2ZNDJK.mjs → chunk-PYZZMAJQ.mjs} +28 -14
- package/dist/cli/{chunk-G4LJS2RE.js → chunk-Q3LFI3VH.js} +8 -8
- package/dist/cli/{chunk-D2ZRMZKF.js → chunk-Q3PUHXOY.js} +99 -30
- package/dist/cli/{chunk-THHM4DPE.js → chunk-QUAQX3FQ.js} +4 -4
- package/dist/cli/{chunk-RMZAOYDN.js → chunk-RWCY6YI2.js} +53 -53
- package/dist/cli/{chunk-ZBCTXQ3P.mjs → chunk-SD7MXAJA.mjs} +1 -1
- package/dist/cli/{chunk-UFS752TU.mjs → chunk-SJVVBWRL.mjs} +5 -1
- package/dist/cli/{chunk-QJAX7QN7.mjs → chunk-URACNNLO.mjs} +2 -2
- package/dist/cli/{chunk-WXLOW623.mjs → chunk-WPAB4DCU.mjs} +14 -7
- package/dist/cli/{chunk-UPEOEYZ3.mjs → chunk-WTT6CLED.mjs} +1 -1
- package/dist/cli/{chunk-N6OAMAO5.mjs → chunk-XXLXOUUU.mjs} +1 -1
- package/dist/cli/{chunk-XT6GG3QO.mjs → chunk-YMOFWHGO.mjs} +3 -3
- package/dist/cli/{chunk-SOQIPKF2.js → chunk-ZBABPK6Y.js} +8 -8
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-N6KYTG7L.mjs → csv-WPSXG6ZZ.mjs} +3 -3
- package/dist/cli/{csv-7E5BE23B.js → csv-XLGLHJ6P.js} +12 -12
- package/dist/cli/{db-4VLZP33O.js → db-5PTNJG4X.js} +25 -25
- package/dist/cli/{db-XMBJNVBD.mjs → db-ABS57ABJ.mjs} +4 -4
- package/dist/cli/{describe-4I6EIVXD.js → describe-EZS6PQXA.js} +11 -11
- package/dist/cli/{describe-WERH4TD2.mjs → describe-PVWQJ2PB.mjs} +7 -7
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-W7TWJRBK.js → executions-FNTAFQ7Y.js} +6 -6
- package/dist/cli/{executions-JWQXE7G6.mjs → executions-OKJGATQZ.mjs} +4 -4
- package/dist/cli/{feedback-FMGRC6KO.js → feedback-6YBOMSUA.js} +7 -7
- package/dist/cli/{feedback-OEJFX4F7.mjs → feedback-W27HDMRR.mjs} +3 -3
- package/dist/cli/git-YKUXXJOR.js +24 -0
- package/dist/cli/{git-IVC4KHXX.mjs → git-YOOUEL6M.mjs} +4 -4
- package/dist/cli/index.js +204 -127
- package/dist/cli/index.mjs +124 -47
- package/dist/cli/{legacy-noops-X3BQ7MUK.js → legacy-noops-2VZ7XT6C.js} +7 -7
- package/dist/cli/{legacy-noops-LT36CLWZ.mjs → legacy-noops-V6OKW7VR.mjs} +4 -4
- package/dist/cli/{monitors-DLIIAVLW.js → monitors-FBWGVIUS.js} +84 -84
- package/dist/cli/{monitors-MNLCELF7.mjs → monitors-P2YYWTWT.mjs} +4 -4
- package/dist/cli/{org-CYHDEW7P.js → org-3XUSVX5T.js} +64 -64
- package/dist/cli/{org-QV5LMUPT.mjs → org-DVMG6H3C.mjs} +4 -4
- package/dist/cli/{play-5Z4ROZ3P.mjs → play-GNC5CQAS.mjs} +70 -18
- package/dist/cli/{play-MEFXC2QA.js → play-YG5L4BWQ.js} +345 -293
- package/dist/cli/{providers-2MKUNFBQ.js → providers-7PSWG2OV.js} +7 -7
- package/dist/cli/{providers-FJLYSHB3.mjs → providers-JR33SLWL.mjs} +4 -4
- package/dist/cli/{quickstart-ULWXKAOT.js → quickstart-FDVZ5BL3.js} +5 -5
- package/dist/cli/{quickstart-PQO3OQRT.mjs → quickstart-VUOBQYIQ.mjs} +3 -3
- package/dist/cli/{search-KGAAXMDG.mjs → search-JZYLO33K.mjs} +5 -5
- package/dist/cli/search-PPPYC5OZ.js +30 -0
- package/dist/cli/{secrets-PD5I3KAF.mjs → secrets-3MCYBT4I.mjs} +4 -4
- package/dist/cli/{secrets-X2VGG2PO.js → secrets-VS266FVA.js} +13 -13
- package/dist/cli/{sessions-3WVEU4PE.mjs → sessions-ELLLT23E.mjs} +4 -4
- package/dist/cli/{sessions-R3XAKTBQ.js → sessions-TEHEWW7O.js} +5 -5
- package/dist/cli/{settings-ZIDO3IP6.js → settings-7364NMMA.js} +75 -75
- package/dist/cli/{settings-645RSFQX.mjs → settings-PZCKAFII.mjs} +8 -8
- package/dist/cli/{setup-LISKIJKP.mjs → setup-A7GQ4KIA.mjs} +7 -7
- package/dist/cli/{setup-LH5HOZ3D.js → setup-PMWYLCT6.js} +42 -42
- package/dist/cli/skills-SYS7VRRK.js +29 -0
- package/dist/cli/{skills-VVQJHLSF.mjs → skills-WS6BIFPQ.mjs} +5 -5
- package/dist/cli/{tools-Y3LOMXFT.mjs → tools-BR4DOZA2.mjs} +7 -7
- package/dist/cli/{tools-FTPJCNAM.js → tools-KK4BKVQR.js} +8 -8
- package/dist/cli/update-2IV5JTX2.js +29 -0
- package/dist/cli/{update-DOBNQNJI.mjs → update-D2B7UNFT.mjs} +7 -7
- package/dist/cli/{workflow-LGENKZBV.js → workflow-6ODTCYXU.js} +15 -15
- package/dist/cli/{workflow-ZMAA5VCN.mjs → workflow-PQXC2R47.mjs} +5 -5
- package/dist/{client-IrPHUE5J.d.ts → client-BcvhDfJJ.d.ts} +26 -2
- package/dist/{client-6rEB46Lv.d.mts → client-Z9Pye1Wm.d.mts} +26 -2
- package/dist/{compiler-manifest-BHnXE43X.d.ts → compiler-manifest-Ycx-hoAr.d.mts} +2 -0
- package/dist/{compiler-manifest-BHnXE43X.d.mts → compiler-manifest-Ycx-hoAr.d.ts} +2 -0
- package/dist/{index-Da_Y8z5e.d.mts → index-CZXgiN3E.d.mts} +1 -1
- package/dist/{index-SODb2ROS.d.ts → index-NPG5pqxQ.d.ts} +1 -1
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +26 -9
- package/dist/index.mjs +23 -6
- package/dist/install-integrity.json +86 -84
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-4JTX6AGM.js +0 -40
- package/dist/cli/git-OFXE7G4X.js +0 -24
- package/dist/cli/search-ANKSJ224.js +0 -30
- package/dist/cli/skills-WLHYSVQA.js +0 -29
- package/dist/cli/update-A622H2DZ.js +0 -29
package/dist/cli/index.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
7
|
+
var _chunkECVLPS67js = require('./chunk-ECVLPS67.js');
|
|
8
|
+
require('./chunk-4RNDKFNQ.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -22,20 +22,20 @@ require('./chunk-H6EWQFPQ.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunk2XXXFPTDjs = require('./chunk-2XXXFPTD.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkHQY2SG3Kjs = require('./chunk-HQY2SG3K.js');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkE3PJF6YPjs = require('./chunk-E3PJF6YP.js');
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _chunkOSFWFV72js = require('./chunk-OSFWFV72.js');
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
@@ -44,29 +44,33 @@ var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
|
|
47
|
-
var _chunkD2ZRMZKFjs = require('./chunk-D2ZRMZKF.js');
|
|
48
47
|
|
|
49
48
|
|
|
50
49
|
|
|
51
50
|
|
|
51
|
+
var _chunkQ3PUHXOYjs = require('./chunk-Q3PUHXOY.js');
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
var _chunkQUAQX3FQjs = require('./chunk-QUAQX3FQ.js');
|
|
58
62
|
|
|
59
63
|
|
|
60
64
|
var _chunkQ2E4E4FJjs = require('./chunk-Q2E4E4FJ.js');
|
|
61
65
|
require('./chunk-XNYIZMNQ.js');
|
|
62
66
|
require('./chunk-7P5AA3SN.js');
|
|
63
|
-
require('./chunk-
|
|
67
|
+
require('./chunk-D6FFBSM5.js');
|
|
64
68
|
require('./chunk-OG64RBAC.js');
|
|
65
69
|
|
|
66
70
|
|
|
67
71
|
|
|
68
72
|
|
|
69
|
-
var
|
|
73
|
+
var _chunkJ5PTX66Yjs = require('./chunk-J5PTX66Y.js');
|
|
70
74
|
require('./chunk-COGTRVWW.js');
|
|
71
75
|
|
|
72
76
|
// src/cli/command-invocation.ts
|
|
@@ -130,48 +134,48 @@ var _os = require('os');
|
|
|
130
134
|
var COMMAND_GROUPS = [
|
|
131
135
|
{
|
|
132
136
|
names: ["auth"],
|
|
133
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
137
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-3GB2K636.js")))).registerAuthCommands
|
|
134
138
|
},
|
|
135
139
|
{
|
|
136
140
|
names: ["providers"],
|
|
137
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-
|
|
141
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-7PSWG2OV.js")))).registerProviderCommands
|
|
138
142
|
},
|
|
139
143
|
{
|
|
140
144
|
names: ["search"],
|
|
141
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-
|
|
145
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-PPPYC5OZ.js")))).registerSearchCommand
|
|
142
146
|
},
|
|
143
147
|
{
|
|
144
148
|
names: ["describe"],
|
|
145
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
149
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-EZS6PQXA.js")))).registerDescribeCommand
|
|
146
150
|
},
|
|
147
151
|
{
|
|
148
152
|
names: ["tools"],
|
|
149
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
153
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-KK4BKVQR.js")))).registerToolsCommands
|
|
150
154
|
},
|
|
151
155
|
{
|
|
152
156
|
names: ["executions"],
|
|
153
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-
|
|
157
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-FNTAFQ7Y.js")))).registerExecutionsCommands
|
|
154
158
|
},
|
|
155
159
|
{
|
|
156
160
|
names: ["plays", "runs"],
|
|
157
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
161
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-YG5L4BWQ.js")))).registerPlayCommands
|
|
158
162
|
},
|
|
159
163
|
{
|
|
160
164
|
names: ["sessions"],
|
|
161
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-
|
|
165
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-TEHEWW7O.js")))).registerSessionsCommands
|
|
162
166
|
},
|
|
163
167
|
{
|
|
164
168
|
names: ["workflows"],
|
|
165
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-
|
|
169
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-6ODTCYXU.js")))).registerWorkflowCommands
|
|
166
170
|
},
|
|
167
171
|
{
|
|
168
172
|
names: ["secrets"],
|
|
169
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-
|
|
173
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-VS266FVA.js")))).registerSecretsCommands
|
|
170
174
|
},
|
|
171
175
|
{
|
|
172
176
|
names: ["settings", "notifications"],
|
|
173
177
|
load: async () => {
|
|
174
|
-
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-
|
|
178
|
+
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-7364NMMA.js")));
|
|
175
179
|
return (p) => {
|
|
176
180
|
commands.registerSettingsCommands(p);
|
|
177
181
|
commands.registerNotificationCommands(p);
|
|
@@ -180,51 +184,51 @@ var COMMAND_GROUPS = [
|
|
|
180
184
|
},
|
|
181
185
|
{
|
|
182
186
|
names: ["billing"],
|
|
183
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-
|
|
187
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-BZVYAF6T.js")))).registerBillingCommands
|
|
184
188
|
},
|
|
185
189
|
{
|
|
186
190
|
names: ["monitors"],
|
|
187
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-
|
|
191
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-FBWGVIUS.js")))).registerMonitorsCommands
|
|
188
192
|
},
|
|
189
193
|
{
|
|
190
194
|
names: ["org"],
|
|
191
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-
|
|
195
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-3XUSVX5T.js")))).registerOrgCommands
|
|
192
196
|
},
|
|
193
197
|
{
|
|
194
198
|
names: ["git", "projects", "deployments"],
|
|
195
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-
|
|
199
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-YKUXXJOR.js")))).registerGitCommands
|
|
196
200
|
},
|
|
197
201
|
{
|
|
198
202
|
names: ["csv"],
|
|
199
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-
|
|
203
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-XLGLHJ6P.js")))).registerCsvCommands
|
|
200
204
|
},
|
|
201
205
|
{
|
|
202
206
|
names: ["db"],
|
|
203
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-
|
|
207
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-5PTNJG4X.js")))).registerDbCommands
|
|
204
208
|
},
|
|
205
209
|
{
|
|
206
210
|
names: ["feedback"],
|
|
207
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-
|
|
211
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-6YBOMSUA.js")))).registerFeedbackCommands
|
|
208
212
|
},
|
|
209
213
|
{
|
|
210
214
|
names: ["enrich", "session", "backend"],
|
|
211
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-
|
|
215
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-2VZ7XT6C.js")))).registerDeprecatedCommands
|
|
212
216
|
},
|
|
213
217
|
{
|
|
214
218
|
names: ["update"],
|
|
215
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-
|
|
219
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-2IV5JTX2.js")))).registerUpdateCommand
|
|
216
220
|
},
|
|
217
221
|
{
|
|
218
222
|
names: ["skills", "skills-auto-sync"],
|
|
219
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-
|
|
223
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-SYS7VRRK.js")))).registerSkillsCommand
|
|
220
224
|
},
|
|
221
225
|
{
|
|
222
226
|
names: ["setup", "doctor"],
|
|
223
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-
|
|
227
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-PMWYLCT6.js")))).registerSetupCommands
|
|
224
228
|
},
|
|
225
229
|
{
|
|
226
230
|
names: ["quickstart"],
|
|
227
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-
|
|
231
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-FDVZ5BL3.js")))).registerQuickstartCommands
|
|
228
232
|
}
|
|
229
233
|
];
|
|
230
234
|
async function registerDeeplineCommandGroups(program, requestedCommand) {
|
|
@@ -261,8 +265,8 @@ var MAX_SESSIONS = 20;
|
|
|
261
265
|
function helpSeenPath(homeDir = _os.homedir.call(void 0, )) {
|
|
262
266
|
return _path.join.call(void 0, homeDir, ".local", "deepline", "sdk-cli", "help-seen.json");
|
|
263
267
|
}
|
|
264
|
-
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId =
|
|
265
|
-
const explicit =
|
|
268
|
+
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId = _chunkQUAQX3FQjs.agentSessionIdFromEnvironment.call(void 0, )) {
|
|
269
|
+
const explicit = _chunkJ5PTX66Yjs.helpDetailFromArgv.call(void 0, argv);
|
|
266
270
|
if (explicit === "quiet") return { detail: "quiet", firstRead: false };
|
|
267
271
|
if (!sessionId) return { detail: explicit, firstRead: false };
|
|
268
272
|
const path = helpSeenPath(homeDir);
|
|
@@ -343,7 +347,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
|
|
|
343
347
|
async function reportAutoUpdateEvent(input) {
|
|
344
348
|
let apiKey = "";
|
|
345
349
|
try {
|
|
346
|
-
apiKey =
|
|
350
|
+
apiKey = _chunkQUAQX3FQjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
347
351
|
} catch (e2) {
|
|
348
352
|
return;
|
|
349
353
|
}
|
|
@@ -359,15 +363,15 @@ async function reportAutoUpdateEvent(input) {
|
|
|
359
363
|
headers: {
|
|
360
364
|
Authorization: `Bearer ${apiKey}`,
|
|
361
365
|
"Content-Type": "application/json",
|
|
362
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
366
|
+
"User-Agent": `deepline-ts-sdk/${_chunkQUAQX3FQjs.SDK_VERSION}`,
|
|
363
367
|
"X-Deepline-Client-Family": "sdk",
|
|
364
368
|
"X-Deepline-CLI-Family": "sdk",
|
|
365
|
-
"X-Deepline-CLI-Version":
|
|
366
|
-
"X-Deepline-SDK-Version":
|
|
369
|
+
"X-Deepline-CLI-Version": _chunkQUAQX3FQjs.SDK_VERSION,
|
|
370
|
+
"X-Deepline-SDK-Version": _chunkQUAQX3FQjs.SDK_VERSION
|
|
367
371
|
},
|
|
368
372
|
body: JSON.stringify({
|
|
369
373
|
event: input.event,
|
|
370
|
-
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ||
|
|
374
|
+
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkQUAQX3FQjs.SDK_VERSION,
|
|
371
375
|
target_version: input.response.latest,
|
|
372
376
|
reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
|
|
373
377
|
command: _nullishCoalesce(input.response.command, () => ( null)),
|
|
@@ -386,7 +390,7 @@ function envTruthy(name) {
|
|
|
386
390
|
return value === "1" || value === "true" || value === "yes";
|
|
387
391
|
}
|
|
388
392
|
function shouldSkipSelfUpdate(policy) {
|
|
389
|
-
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !
|
|
393
|
+
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkECVLPS67js.shouldRunCliAutoUpdate.call(void 0, ) || _chunk2XXXFPTDjs.isCiEnvironment.call(void 0, );
|
|
390
394
|
}
|
|
391
395
|
function parseSemver(version) {
|
|
392
396
|
const trimmed = _optionalChain([version, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]);
|
|
@@ -416,7 +420,7 @@ function compareSemver(left, right) {
|
|
|
416
420
|
}
|
|
417
421
|
function isDowngradeAutoUpdateResponse(response) {
|
|
418
422
|
const target = _optionalChain([response, 'optionalAccess', _19 => _19.latest, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()]);
|
|
419
|
-
const current = _optionalChain([response, 'optionalAccess', _22 => _22.current, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) ||
|
|
423
|
+
const current = _optionalChain([response, 'optionalAccess', _22 => _22.current, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkQUAQX3FQjs.SDK_VERSION;
|
|
420
424
|
if (!target) return false;
|
|
421
425
|
return compareSemver(target, current) < 0;
|
|
422
426
|
}
|
|
@@ -455,7 +459,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
455
459
|
}
|
|
456
460
|
if (isDowngradeAutoUpdateResponse(response)) {
|
|
457
461
|
const target = response.latest;
|
|
458
|
-
const current = _optionalChain([response, 'access', _27 => _27.current, 'optionalAccess', _28 => _28.trim, 'call', _29 => _29()]) ||
|
|
462
|
+
const current = _optionalChain([response, 'access', _27 => _27.current, 'optionalAccess', _28 => _28.trim, 'call', _29 => _29()]) || _chunkQUAQX3FQjs.SDK_VERSION;
|
|
459
463
|
process.stderr.write(
|
|
460
464
|
`Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
|
|
461
465
|
`
|
|
@@ -463,12 +467,12 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
463
467
|
return false;
|
|
464
468
|
}
|
|
465
469
|
const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
|
|
466
|
-
const plan =
|
|
470
|
+
const plan = _chunkECVLPS67js.resolveUpdatePlan.call(void 0, {
|
|
467
471
|
packageSpec,
|
|
468
472
|
requireVerifiedNpmOwnership: true,
|
|
469
473
|
npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
|
|
470
474
|
});
|
|
471
|
-
if (!
|
|
475
|
+
if (!_chunkECVLPS67js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
|
|
472
476
|
return false;
|
|
473
477
|
}
|
|
474
478
|
const label = autoUpdate.reason === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : autoUpdate.reason === "deprecated" ? "is deprecated and will update automatically" : autoUpdate.required ? "requires an update" : "has an update available and will update automatically";
|
|
@@ -482,7 +486,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
482
486
|
event: "started",
|
|
483
487
|
installKind: plan.kind
|
|
484
488
|
});
|
|
485
|
-
const updateResult = await
|
|
489
|
+
const updateResult = await _chunkECVLPS67js.runAutomaticUpdatePlan.call(void 0, plan);
|
|
486
490
|
if (updateResult.status === "skipped_previous_failure") {
|
|
487
491
|
void reportAutoUpdateEvent({
|
|
488
492
|
baseUrl,
|
|
@@ -574,7 +578,7 @@ function shouldReport(stdout, stderr) {
|
|
|
574
578
|
}
|
|
575
579
|
function toolName(action) {
|
|
576
580
|
const [toolId] = _optionalChain([action, 'optionalAccess', _30 => _30.path]) === "tools execute" ? action.args : [];
|
|
577
|
-
return typeof toolId === "string" ?
|
|
581
|
+
return typeof toolId === "string" ? _chunk2XXXFPTDjs.redactFailureText.call(void 0, toolId) : null;
|
|
578
582
|
}
|
|
579
583
|
function chunkText(chunk) {
|
|
580
584
|
if (typeof chunk === "string") return chunk;
|
|
@@ -605,14 +609,14 @@ function watch(stream) {
|
|
|
605
609
|
}
|
|
606
610
|
async function postCommandOutput(body) {
|
|
607
611
|
try {
|
|
608
|
-
const baseUrl =
|
|
609
|
-
const apiKey =
|
|
612
|
+
const baseUrl = _chunkQUAQX3FQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
613
|
+
const apiKey = _chunkQUAQX3FQjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
610
614
|
if (!apiKey) return;
|
|
611
|
-
const agentSessionId =
|
|
615
|
+
const agentSessionId = _chunkQUAQX3FQjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
612
616
|
await fetch(new URL("/api/v2/telemetry/command-output", baseUrl), {
|
|
613
617
|
method: "POST",
|
|
614
618
|
headers: {
|
|
615
|
-
...
|
|
619
|
+
..._chunk2XXXFPTDjs.failureReportHeaders.call(void 0, apiKey),
|
|
616
620
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {}
|
|
617
621
|
},
|
|
618
622
|
body: JSON.stringify(body),
|
|
@@ -628,14 +632,14 @@ function startOutputSizeReporting(invocation, streams = {
|
|
|
628
632
|
const stdoutWatch = watch(streams.stdout);
|
|
629
633
|
const stderrWatch = watch(streams.stderr);
|
|
630
634
|
return async (finished) => {
|
|
631
|
-
if (
|
|
635
|
+
if (_chunk2XXXFPTDjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
632
636
|
const [stdout, stderr] = await Promise.all([
|
|
633
637
|
stdoutWatch.settled(),
|
|
634
638
|
stderrWatch.settled()
|
|
635
639
|
]);
|
|
636
640
|
if (!shouldReport(stdout, stderr)) return;
|
|
637
641
|
await postCommandOutput({
|
|
638
|
-
command:
|
|
642
|
+
command: _chunk2XXXFPTDjs.sanitizeCommand.call(void 0, invocation.argv),
|
|
639
643
|
tool: toolName(finished.action),
|
|
640
644
|
exit_code: typeof finished.exitCode === "number" ? finished.exitCode : null,
|
|
641
645
|
duration_ms: Math.max(0, Date.now() - invocation.startedAtMs),
|
|
@@ -658,6 +662,25 @@ function asCommanderError(error) {
|
|
|
658
662
|
const code = error.code;
|
|
659
663
|
return typeof code === "string" && code.startsWith("commander.") ? error : null;
|
|
660
664
|
}
|
|
665
|
+
function silenceCommanderErrorOutput(command) {
|
|
666
|
+
command.configureOutput({ writeErr: () => {
|
|
667
|
+
} });
|
|
668
|
+
for (const child of command.commands) silenceCommanderErrorOutput(child);
|
|
669
|
+
}
|
|
670
|
+
function printUsageErrorJson(code, message, commandPath) {
|
|
671
|
+
const unknownName = code === "commander.unknownCommand" ? _optionalChain([/unknown command '([^']+)'/, 'access', _31 => _31.exec, 'call', _32 => _32(message), 'optionalAccess', _33 => _33[1]]) : void 0;
|
|
672
|
+
const helpPath = unknownName && commandPath.endsWith(` ${unknownName}`) ? commandPath.slice(0, -unknownName.length - 1) : commandPath;
|
|
673
|
+
_chunkQ3PUHXOYjs.printJson.call(void 0, {
|
|
674
|
+
ok: false,
|
|
675
|
+
error: {
|
|
676
|
+
code,
|
|
677
|
+
message,
|
|
678
|
+
details: {
|
|
679
|
+
help: `deepline ${helpPath ? `${helpPath} ` : ""}--help`
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
});
|
|
683
|
+
}
|
|
661
684
|
function shouldPrintStartupPhase() {
|
|
662
685
|
if (process.argv.includes("--json")) {
|
|
663
686
|
return false;
|
|
@@ -692,7 +715,7 @@ function isAutoUpdateSettingsInvocation() {
|
|
|
692
715
|
function compatibilityCommandPath(command) {
|
|
693
716
|
const names = [];
|
|
694
717
|
let current = command;
|
|
695
|
-
while (_optionalChain([current, 'optionalAccess',
|
|
718
|
+
while (_optionalChain([current, 'optionalAccess', _34 => _34.parent])) {
|
|
696
719
|
const name = current.name();
|
|
697
720
|
if (name) names.unshift(name);
|
|
698
721
|
current = current.parent;
|
|
@@ -709,7 +732,7 @@ function topLevelCommandKnown(program, commandName) {
|
|
|
709
732
|
);
|
|
710
733
|
}
|
|
711
734
|
async function runPlayRunnerHealthCheck() {
|
|
712
|
-
|
|
735
|
+
_chunkQUAQX3FQjs.resolveConfig.call(void 0, );
|
|
713
736
|
const dir = await _promises.mkdtemp.call(void 0, _path.join.call(void 0, _os.tmpdir.call(void 0, ), "deepline-health-play-"));
|
|
714
737
|
const file = _path.join.call(void 0, dir, "health-check.play.ts");
|
|
715
738
|
try {
|
|
@@ -739,7 +762,7 @@ async function runPlayRunnerHealthCheck() {
|
|
|
739
762
|
});
|
|
740
763
|
let exitCode = 1;
|
|
741
764
|
try {
|
|
742
|
-
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
765
|
+
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-YG5L4BWQ.js")));
|
|
743
766
|
exitCode = await handlePlayRun([
|
|
744
767
|
file,
|
|
745
768
|
"--input",
|
|
@@ -779,7 +802,7 @@ function preflightErrorMessage(error) {
|
|
|
779
802
|
return error instanceof Error ? error.message : String(error);
|
|
780
803
|
}
|
|
781
804
|
async function runPreflightCheck() {
|
|
782
|
-
const baseUrl =
|
|
805
|
+
const baseUrl = _chunkQUAQX3FQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
783
806
|
const healthController = new AbortController();
|
|
784
807
|
const healthTimeout = setTimeout(
|
|
785
808
|
() => healthController.abort(),
|
|
@@ -794,9 +817,9 @@ async function runPreflightCheck() {
|
|
|
794
817
|
version: pickString(payload, "version")
|
|
795
818
|
};
|
|
796
819
|
}).catch(() => ({ status: "unreachable", version: null })).finally(() => clearTimeout(healthTimeout));
|
|
797
|
-
const apiKey =
|
|
798
|
-
const http = apiKey ? new (0,
|
|
799
|
-
|
|
820
|
+
const apiKey = _chunkQUAQX3FQjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
821
|
+
const http = apiKey ? new (0, _chunkQUAQX3FQjs.HttpClient)(
|
|
822
|
+
_chunkQUAQX3FQjs.resolveConfig.call(void 0, {
|
|
800
823
|
baseUrl,
|
|
801
824
|
apiKey,
|
|
802
825
|
timeout: PREFLIGHT_TIMEOUT_MS,
|
|
@@ -841,7 +864,7 @@ async function runPreflightCheck() {
|
|
|
841
864
|
const connected = authStatus === "connected" || authStatus === "claimed";
|
|
842
865
|
return {
|
|
843
866
|
status: healthResult.status === "ok" && connected ? "ok" : "check",
|
|
844
|
-
cli_version:
|
|
867
|
+
cli_version: _chunkQUAQX3FQjs.SDK_VERSION,
|
|
845
868
|
host: baseUrl,
|
|
846
869
|
health: {
|
|
847
870
|
status: healthResult.status,
|
|
@@ -867,7 +890,7 @@ async function runPreflightCheck() {
|
|
|
867
890
|
{
|
|
868
891
|
title: "preflight",
|
|
869
892
|
lines: [
|
|
870
|
-
`cli: ${
|
|
893
|
+
`cli: ${_chunkQUAQX3FQjs.SDK_VERSION}`,
|
|
871
894
|
`host: ${baseUrl}`,
|
|
872
895
|
`health: ${healthResult.status}`,
|
|
873
896
|
`auth: ${authStatus}`,
|
|
@@ -881,8 +904,8 @@ async function runPreflightCheck() {
|
|
|
881
904
|
}
|
|
882
905
|
function printPreflightHuman(data) {
|
|
883
906
|
const render = data.render;
|
|
884
|
-
const lines = _optionalChain([render, 'optionalAccess',
|
|
885
|
-
if (_optionalChain([lines, 'optionalAccess',
|
|
907
|
+
const lines = _optionalChain([render, 'optionalAccess', _35 => _35.sections, 'optionalAccess', _36 => _36.flatMap, 'call', _37 => _37((section) => _nullishCoalesce(section.lines, () => ( [])))]);
|
|
908
|
+
if (_optionalChain([lines, 'optionalAccess', _38 => _38.length])) {
|
|
886
909
|
process.stdout.write(`${lines.join("\n")}
|
|
887
910
|
`);
|
|
888
911
|
return;
|
|
@@ -892,12 +915,12 @@ function printPreflightHuman(data) {
|
|
|
892
915
|
}
|
|
893
916
|
async function newerCliCommandHint(baseUrl, command) {
|
|
894
917
|
if (!command.trim()) return null;
|
|
895
|
-
const { response, error } = await
|
|
918
|
+
const { response, error } = await _chunk2XXXFPTDjs.checkSdkCompatibility.call(void 0, baseUrl, { command });
|
|
896
919
|
if (error || !response) return null;
|
|
897
920
|
const introduced = response.command_introduced_in;
|
|
898
921
|
if (introduced) {
|
|
899
922
|
return [
|
|
900
|
-
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${
|
|
923
|
+
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunkQUAQX3FQjs.SDK_VERSION}.`,
|
|
901
924
|
` ${introduced.reason}`,
|
|
902
925
|
` Update with: ${response.update_command}`,
|
|
903
926
|
" Agent skills are served by Deepline and refresh on their own, so a skill can describe a command this CLI does not have yet."
|
|
@@ -906,26 +929,27 @@ async function newerCliCommandHint(baseUrl, command) {
|
|
|
906
929
|
if (!response.update_required) return null;
|
|
907
930
|
return [
|
|
908
931
|
response.message,
|
|
909
|
-
` Installed: ${
|
|
932
|
+
` Installed: ${_chunkQUAQX3FQjs.SDK_VERSION}. Run: ${response.update_command}`,
|
|
910
933
|
" If an agent skill told you to run this, the skill is newer than this CLI."
|
|
911
934
|
].join("\n");
|
|
912
935
|
}
|
|
913
936
|
async function runMain(ensureTransport, onAction) {
|
|
914
937
|
const mainStartedAt = Date.now();
|
|
938
|
+
_chunkQ3PUHXOYjs.installJsonStderrGuard.call(void 0, );
|
|
915
939
|
let rootHelpStatus = "";
|
|
916
|
-
|
|
940
|
+
_chunkE3PJF6YPjs.recordCliTrace.call(void 0, {
|
|
917
941
|
phase: "cli.main_start",
|
|
918
942
|
argv: process.argv.slice(2)
|
|
919
943
|
});
|
|
920
944
|
const printStartupPhase = shouldPrintStartupPhase();
|
|
921
|
-
const progress = printStartupPhase ?
|
|
945
|
+
const progress = printStartupPhase ? _chunkOSFWFV72js.createCliProgress.call(void 0, true) : null;
|
|
922
946
|
if (printStartupPhase) {
|
|
923
|
-
_optionalChain([progress, 'optionalAccess',
|
|
947
|
+
_optionalChain([progress, 'optionalAccess', _39 => _39.phase, 'call', _40 => _40("loading deepline cli")]);
|
|
924
948
|
}
|
|
925
949
|
const program = new (0, _commander.Command)();
|
|
926
950
|
program.name("deepline").description(
|
|
927
951
|
"Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
|
|
928
|
-
).version(
|
|
952
|
+
).version(_chunkQUAQX3FQjs.SDK_VERSION, "-v, --version", "Show version").option(
|
|
929
953
|
"--maintenance <policy>",
|
|
930
954
|
"Installation maintenance: configured preferences or off; independent of output format",
|
|
931
955
|
parseCliMaintenancePolicy,
|
|
@@ -970,9 +994,9 @@ Exit codes:
|
|
|
970
994
|
5 server/runtime/provider failure; 7 validation/check failed.
|
|
971
995
|
`
|
|
972
996
|
).addHelpText("afterAll", ({ command }) => {
|
|
973
|
-
const key =
|
|
997
|
+
const key = _chunkJ5PTX66Yjs.commandDocKey.call(void 0, command);
|
|
974
998
|
const { detail, firstRead } = resolveHelpDetail(process.argv, key);
|
|
975
|
-
return
|
|
999
|
+
return _chunkJ5PTX66Yjs.renderCommandExplanation.call(void 0, key, detail, { firstRead });
|
|
976
1000
|
});
|
|
977
1001
|
program.hook("preAction", async (_thisCommand, actionCommand) => {
|
|
978
1002
|
onAction({
|
|
@@ -985,35 +1009,35 @@ Exit codes:
|
|
|
985
1009
|
if (actionCommand.name() !== "version") {
|
|
986
1010
|
await ensureTransport();
|
|
987
1011
|
}
|
|
988
|
-
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() ===
|
|
1012
|
+
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunk2XXXFPTDjs.SKILLS_AUTO_SYNC_COMMAND || actionCommand.name() === "doctor" || isAutoUpdateSettingsInvocation() || isDeprecatedCommandInvocation()) {
|
|
989
1013
|
return;
|
|
990
1014
|
}
|
|
991
1015
|
const compatibilityCommand = compatibilityCommandPath(actionCommand) || actionCommand.name();
|
|
992
1016
|
const isToolExecuteCommand = compatibilityCommand === "tools execute";
|
|
993
1017
|
if (isToolExecuteCommand) {
|
|
994
|
-
|
|
1018
|
+
_chunkHQY2SG3Kjs.beginToolExecuteCommand.call(void 0, );
|
|
995
1019
|
}
|
|
996
|
-
const runStartupStage = (stage, action) => isToolExecuteCommand ?
|
|
1020
|
+
const runStartupStage = (stage, action) => isToolExecuteCommand ? _chunkHQY2SG3Kjs.runToolExecuteStage.call(void 0, stage, action) : Promise.resolve(action());
|
|
997
1021
|
if (printStartupPhase) {
|
|
998
|
-
_optionalChain([progress, 'optionalAccess',
|
|
1022
|
+
_optionalChain([progress, 'optionalAccess', _41 => _41.phase, 'call', _42 => _42("checking sdk compatibility")]);
|
|
999
1023
|
}
|
|
1000
1024
|
const startup = await runStartupStage("SDK compatibility", async () => {
|
|
1001
|
-
const baseUrl =
|
|
1002
|
-
if (maintenance !== "off")
|
|
1025
|
+
const baseUrl = _chunkQUAQX3FQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
1026
|
+
if (maintenance !== "off") _chunk2XXXFPTDjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
1003
1027
|
const shouldDeferSkillsSync = maintenance === "off" || shouldDeferSkillsSyncForCommand();
|
|
1004
|
-
const skillsVersion = shouldDeferSkillsSync ? void 0 :
|
|
1005
|
-
const trusted =
|
|
1028
|
+
const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunkQUAQX3FQjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
1029
|
+
const trusted = _chunk2XXXFPTDjs.readTrustedCleanCompatibility.call(void 0,
|
|
1006
1030
|
baseUrl,
|
|
1007
1031
|
compatibilityCommand,
|
|
1008
1032
|
skillsVersion
|
|
1009
1033
|
);
|
|
1010
|
-
const fastDeadline = trusted === null &&
|
|
1034
|
+
const fastDeadline = trusted === null && _chunk2XXXFPTDjs.readFreshCleanCompatibility.call(void 0,
|
|
1011
1035
|
baseUrl,
|
|
1012
1036
|
compatibilityCommand,
|
|
1013
1037
|
skillsVersion
|
|
1014
1038
|
) !== null;
|
|
1015
1039
|
if (trusted) {
|
|
1016
|
-
|
|
1040
|
+
_chunkE3PJF6YPjs.recordCliTrace.call(void 0, {
|
|
1017
1041
|
phase: "cli.sdk_compatibility",
|
|
1018
1042
|
ms: 0,
|
|
1019
1043
|
ok: true,
|
|
@@ -1023,7 +1047,7 @@ Exit codes:
|
|
|
1023
1047
|
source: "trusted_cache"
|
|
1024
1048
|
});
|
|
1025
1049
|
}
|
|
1026
|
-
const compatibility = trusted ? { response: trusted, error: null } : await
|
|
1050
|
+
const compatibility = trusted ? { response: trusted, error: null } : await _chunkE3PJF6YPjs.traceCliSpan.call(void 0,
|
|
1027
1051
|
"cli.sdk_compatibility",
|
|
1028
1052
|
{
|
|
1029
1053
|
baseUrl,
|
|
@@ -1031,12 +1055,12 @@ Exit codes:
|
|
|
1031
1055
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null)),
|
|
1032
1056
|
fastDeadline
|
|
1033
1057
|
},
|
|
1034
|
-
() =>
|
|
1058
|
+
() => _chunk2XXXFPTDjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
1035
1059
|
command: compatibilityCommand,
|
|
1036
1060
|
skillsVersion,
|
|
1037
1061
|
persistCache: maintenance !== "off",
|
|
1038
|
-
catalog:
|
|
1039
|
-
...fastDeadline ? { timeoutMs:
|
|
1062
|
+
catalog: _chunkHQY2SG3Kjs.compatibilityCatalog.call(void 0, actionCommand),
|
|
1063
|
+
...fastDeadline ? { timeoutMs: _chunk2XXXFPTDjs.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
|
|
1040
1064
|
})
|
|
1041
1065
|
);
|
|
1042
1066
|
if (compatibility.error) {
|
|
@@ -1060,9 +1084,14 @@ Exit codes:
|
|
|
1060
1084
|
response: compatibility.response
|
|
1061
1085
|
};
|
|
1062
1086
|
}
|
|
1063
|
-
|
|
1064
|
-
|
|
1087
|
+
const jsonOutput = _chunkQ3PUHXOYjs.isJsonOutputMode.call(void 0, );
|
|
1088
|
+
_chunk2XXXFPTDjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
1089
|
+
quietAdvisory: jsonOutput
|
|
1065
1090
|
});
|
|
1091
|
+
const advisory = compatibility.response;
|
|
1092
|
+
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !_chunk2XXXFPTDjs.isCiEnvironment.call(void 0, )) {
|
|
1093
|
+
_chunkQ3PUHXOYjs.addJsonNotice.call(void 0, { code: advisory.status, message: advisory.message });
|
|
1094
|
+
}
|
|
1066
1095
|
return {
|
|
1067
1096
|
shouldContinue: true,
|
|
1068
1097
|
baseUrl,
|
|
@@ -1072,16 +1101,16 @@ Exit codes:
|
|
|
1072
1101
|
});
|
|
1073
1102
|
if (!startup.shouldContinue) return;
|
|
1074
1103
|
if (printStartupPhase) {
|
|
1075
|
-
_optionalChain([progress, 'optionalAccess',
|
|
1104
|
+
_optionalChain([progress, 'optionalAccess', _43 => _43.phase, 'call', _44 => _44("checking sdk skills")]);
|
|
1076
1105
|
}
|
|
1077
1106
|
if (!startup.shouldDeferSkillsSync) {
|
|
1078
1107
|
const skillsUpdate = startup.response && Object.prototype.hasOwnProperty.call(startup.response, "skills") ? _nullishCoalesce(startup.response.skills, () => ( null)) : void 0;
|
|
1079
1108
|
await runStartupStage(
|
|
1080
1109
|
"agent skills sync",
|
|
1081
|
-
() =>
|
|
1110
|
+
() => _chunkE3PJF6YPjs.traceCliSpan.call(void 0,
|
|
1082
1111
|
"cli.sdk_skills_sync",
|
|
1083
1112
|
{ baseUrl: startup.baseUrl },
|
|
1084
|
-
() =>
|
|
1113
|
+
() => _chunk2XXXFPTDjs.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
|
|
1085
1114
|
update: skillsUpdate,
|
|
1086
1115
|
mode: "detached"
|
|
1087
1116
|
})
|
|
@@ -1095,6 +1124,7 @@ Exit codes:
|
|
|
1095
1124
|
!requestedCommand || requestedCommand === "help" || requestedCommand.startsWith("-") && !["-v", "--version"].includes(requestedCommand) ? void 0 : requestedCommand
|
|
1096
1125
|
);
|
|
1097
1126
|
const { preflight, health, version } = registerDeeplineInlineCommands(program);
|
|
1127
|
+
if (_chunkQ3PUHXOYjs.isJsonOutputMode.call(void 0, )) silenceCommanderErrorOutput(program);
|
|
1098
1128
|
preflight.addHelpText(
|
|
1099
1129
|
"after",
|
|
1100
1130
|
`
|
|
@@ -1109,8 +1139,8 @@ Examples:
|
|
|
1109
1139
|
`
|
|
1110
1140
|
).action(async (options) => {
|
|
1111
1141
|
const data = await runPreflightCheck();
|
|
1112
|
-
if (
|
|
1113
|
-
|
|
1142
|
+
if (_chunkQ3PUHXOYjs.shouldEmitJson.call(void 0, options.json)) {
|
|
1143
|
+
_chunkQ3PUHXOYjs.printJson.call(void 0, data);
|
|
1114
1144
|
} else {
|
|
1115
1145
|
printPreflightHuman(data);
|
|
1116
1146
|
}
|
|
@@ -1132,7 +1162,7 @@ Examples:
|
|
|
1132
1162
|
).action(async (options) => {
|
|
1133
1163
|
if (options.playRunner) {
|
|
1134
1164
|
const data = await runPlayRunnerHealthCheck();
|
|
1135
|
-
|
|
1165
|
+
_chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0, data, {
|
|
1136
1166
|
json: options.json,
|
|
1137
1167
|
text: `play runner: ${data.playRunner.status} (${data.playRunner.check})
|
|
1138
1168
|
`
|
|
@@ -1140,15 +1170,15 @@ Examples:
|
|
|
1140
1170
|
return;
|
|
1141
1171
|
}
|
|
1142
1172
|
try {
|
|
1143
|
-
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1144
|
-
const baseUrl =
|
|
1173
|
+
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-3GB2K636.js")));
|
|
1174
|
+
const baseUrl = _chunkQUAQX3FQjs.resolveBaseUrlOnly.call(void 0, );
|
|
1145
1175
|
const [{ status, data }, banner] = await Promise.all([
|
|
1146
1176
|
httpJson("GET", `${baseUrl}/api/v2/health`, null),
|
|
1147
1177
|
readStatusBanner(baseUrl)
|
|
1148
1178
|
]);
|
|
1149
1179
|
if (status !== 200) throw new Error(`HTTP ${status}`);
|
|
1150
1180
|
const lines = [`${baseUrl}: ${data.status}`, statusBannerLine(banner)];
|
|
1151
|
-
|
|
1181
|
+
_chunkQ3PUHXOYjs.printCommandEnvelope.call(void 0,
|
|
1152
1182
|
{ ...data, status_banner: banner },
|
|
1153
1183
|
{
|
|
1154
1184
|
json: options.json,
|
|
@@ -1176,16 +1206,16 @@ Examples:
|
|
|
1176
1206
|
`
|
|
1177
1207
|
).action((options) => {
|
|
1178
1208
|
if (options.json) {
|
|
1179
|
-
|
|
1209
|
+
_chunkQ3PUHXOYjs.printCompactJson.call(void 0, { version: _chunkQUAQX3FQjs.SDK_VERSION });
|
|
1180
1210
|
return;
|
|
1181
1211
|
}
|
|
1182
|
-
process.stdout.write(`deepline ${
|
|
1212
|
+
process.stdout.write(`deepline ${_chunkQUAQX3FQjs.SDK_VERSION}
|
|
1183
1213
|
`);
|
|
1184
1214
|
});
|
|
1185
1215
|
if (process.argv.slice(2).length === 0) {
|
|
1186
1216
|
program.outputHelp({ error: true });
|
|
1187
1217
|
console.error("\nerror: missing command (see usage above)");
|
|
1188
|
-
|
|
1218
|
+
_chunkE3PJF6YPjs.recordCliTrace.call(void 0, {
|
|
1189
1219
|
phase: "cli.main_total",
|
|
1190
1220
|
ms: Date.now() - mainStartedAt,
|
|
1191
1221
|
ok: false,
|
|
@@ -1196,13 +1226,26 @@ Examples:
|
|
|
1196
1226
|
}
|
|
1197
1227
|
const requestedTopLevelCommand = _nullishCoalesce(process.argv.slice(2)[0], () => ( ""));
|
|
1198
1228
|
if (!topLevelCommandKnown(program, requestedTopLevelCommand)) {
|
|
1199
|
-
|
|
1200
|
-
|
|
1229
|
+
const unknownCommandMessage = `error: unknown command '${requestedTopLevelCommand}'`;
|
|
1230
|
+
if (!_chunkQ3PUHXOYjs.isJsonOutputMode.call(void 0, )) console.error(unknownCommandMessage);
|
|
1231
|
+
const baseUrl = _chunkQUAQX3FQjs.autoDetectBaseUrl.call(void 0, );
|
|
1201
1232
|
await ensureTransport();
|
|
1202
1233
|
const versionHint = await newerCliCommandHint(
|
|
1203
1234
|
baseUrl,
|
|
1204
1235
|
requestedTopLevelCommand
|
|
1205
1236
|
);
|
|
1237
|
+
if (_chunkQ3PUHXOYjs.isJsonOutputMode.call(void 0, )) {
|
|
1238
|
+
if (versionHint) {
|
|
1239
|
+
_chunkQ3PUHXOYjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1240
|
+
}
|
|
1241
|
+
printUsageErrorJson(
|
|
1242
|
+
"commander.unknownCommand",
|
|
1243
|
+
unknownCommandMessage,
|
|
1244
|
+
""
|
|
1245
|
+
);
|
|
1246
|
+
process.exitCode = 2;
|
|
1247
|
+
return;
|
|
1248
|
+
}
|
|
1206
1249
|
if (versionHint) {
|
|
1207
1250
|
console.error(versionHint);
|
|
1208
1251
|
process.exitCode = 2;
|
|
@@ -1215,80 +1258,106 @@ Examples:
|
|
|
1215
1258
|
const helpArgs = process.argv.slice(2);
|
|
1216
1259
|
const helpPositionals = helpArgs.filter((arg) => !arg.startsWith("-"));
|
|
1217
1260
|
if (helpPositionals.length === 0 ? helpArgs.includes("--help") || helpArgs.includes("-h") : helpPositionals.length === 1 && helpPositionals[0] === "help") {
|
|
1218
|
-
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1219
|
-
rootHelpStatus = `Version: ${
|
|
1261
|
+
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-3GB2K636.js")));
|
|
1262
|
+
rootHelpStatus = `Version: ${_chunkQUAQX3FQjs.SDK_VERSION}
|
|
1220
1263
|
${await authStatusLine()}
|
|
1221
1264
|
`;
|
|
1222
1265
|
}
|
|
1223
1266
|
await program.parseAsync(process.argv);
|
|
1224
|
-
|
|
1267
|
+
_chunkE3PJF6YPjs.recordCliTrace.call(void 0, {
|
|
1225
1268
|
phase: "cli.main_total",
|
|
1226
1269
|
ms: Date.now() - mainStartedAt,
|
|
1227
1270
|
ok: true
|
|
1228
1271
|
});
|
|
1229
|
-
await
|
|
1272
|
+
await _chunk2XXXFPTDjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1230
1273
|
argv: process.argv.slice(2),
|
|
1231
1274
|
startedAtMs: mainStartedAt,
|
|
1232
1275
|
exitCode: typeof process.exitCode === "number" ? process.exitCode : null
|
|
1233
1276
|
});
|
|
1234
1277
|
} catch (error) {
|
|
1235
1278
|
const commanderError = asCommanderError(error);
|
|
1236
|
-
|
|
1279
|
+
_chunkE3PJF6YPjs.recordCliTrace.call(void 0, {
|
|
1237
1280
|
phase: "cli.main_total",
|
|
1238
1281
|
ms: Date.now() - mainStartedAt,
|
|
1239
1282
|
ok: false,
|
|
1240
1283
|
error: error instanceof Error ? error.message : String(error)
|
|
1241
1284
|
});
|
|
1242
|
-
_optionalChain([progress, 'optionalAccess',
|
|
1243
|
-
const wantsJson =
|
|
1285
|
+
_optionalChain([progress, 'optionalAccess', _45 => _45.fail, 'call', _46 => _46()]);
|
|
1286
|
+
const wantsJson = _chunkQ3PUHXOYjs.isJsonOutputMode.call(void 0, );
|
|
1244
1287
|
if (commanderError) {
|
|
1245
|
-
|
|
1288
|
+
const grammarError = [
|
|
1246
1289
|
"commander.unknownCommand",
|
|
1247
1290
|
"commander.unknownOption",
|
|
1248
1291
|
"commander.excessArguments"
|
|
1249
|
-
].includes(commanderError.code)
|
|
1250
|
-
|
|
1251
|
-
|
|
1292
|
+
].includes(commanderError.code);
|
|
1293
|
+
const commandPath = grammarError || wantsJson ? inspectCliInvocation(program, process.argv.slice(2)).commandPath || requestedTopLevelCommand : "";
|
|
1294
|
+
if (grammarError) {
|
|
1252
1295
|
await ensureTransport();
|
|
1253
1296
|
const versionHint = await newerCliCommandHint(
|
|
1254
|
-
|
|
1297
|
+
_chunkQUAQX3FQjs.autoDetectBaseUrl.call(void 0, ),
|
|
1255
1298
|
commandPath
|
|
1256
1299
|
);
|
|
1257
|
-
if (
|
|
1258
|
-
|
|
1259
|
-
|
|
1300
|
+
if (wantsJson) {
|
|
1301
|
+
if (versionHint) {
|
|
1302
|
+
_chunkQ3PUHXOYjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1303
|
+
}
|
|
1304
|
+
} else {
|
|
1305
|
+
if (versionHint) console.error(versionHint);
|
|
1306
|
+
console.error(
|
|
1307
|
+
`Check this installation's grammar: deepline ${commandPath} --help`
|
|
1308
|
+
);
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
if (wantsJson && (_nullishCoalesce(commanderError.exitCode, () => ( 1))) !== 0) {
|
|
1312
|
+
printUsageErrorJson(
|
|
1313
|
+
commanderError.code,
|
|
1314
|
+
commanderError.message,
|
|
1315
|
+
commandPath
|
|
1260
1316
|
);
|
|
1261
1317
|
}
|
|
1262
1318
|
process.exitCode = commanderError.code === "commander.unknownCommand" && !wantsJson ? 2 : _nullishCoalesce(commanderError.exitCode, () => ( 1));
|
|
1263
1319
|
return;
|
|
1264
1320
|
} else if (wantsJson) {
|
|
1265
|
-
|
|
1266
|
-
|
|
1321
|
+
if (error instanceof _chunkQ2E4E4FJjs.AuthError) {
|
|
1322
|
+
_chunkQ3PUHXOYjs.addJsonNotice.call(void 0, {
|
|
1323
|
+
code: "auth_required",
|
|
1324
|
+
message: `Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`
|
|
1325
|
+
});
|
|
1326
|
+
}
|
|
1327
|
+
const providerConcurrency = _chunkQ3PUHXOYjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1328
|
+
if (providerConcurrency) {
|
|
1329
|
+
_chunkQ3PUHXOYjs.addJsonNotice.call(void 0, {
|
|
1330
|
+
code: "provider_concurrency",
|
|
1331
|
+
message: providerConcurrency
|
|
1332
|
+
});
|
|
1333
|
+
}
|
|
1334
|
+
_chunkQ3PUHXOYjs.printJson.call(void 0, {
|
|
1335
|
+
..._chunkQ3PUHXOYjs.errorToJsonPayload.call(void 0, error),
|
|
1267
1336
|
...error instanceof _chunkQ2E4E4FJjs.AuthError ? { next: AUTH_RECOVERY_COMMAND } : {}
|
|
1268
1337
|
});
|
|
1269
1338
|
} else if (error instanceof Error) {
|
|
1270
1339
|
console.error(`Error: ${error.message}`);
|
|
1271
|
-
const toolDiagnostic =
|
|
1340
|
+
const toolDiagnostic = _chunkQ3PUHXOYjs.formatToolExecutionErrorDiagnostic.call(void 0, error);
|
|
1272
1341
|
if (toolDiagnostic) console.error(toolDiagnostic);
|
|
1273
1342
|
if (error instanceof _chunkQ2E4E4FJjs.AuthError) {
|
|
1274
1343
|
console.error(`Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`);
|
|
1275
1344
|
}
|
|
1276
|
-
const providerConcurrency =
|
|
1345
|
+
const providerConcurrency = _chunkQ3PUHXOYjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1277
1346
|
if (providerConcurrency) console.error(providerConcurrency);
|
|
1278
1347
|
} else {
|
|
1279
1348
|
console.error(`Error: ${String(error)}`);
|
|
1280
1349
|
}
|
|
1281
1350
|
const explicitExitCode = error && typeof error === "object" && typeof error.exitCode === "number" ? error.exitCode : void 0;
|
|
1282
|
-
const failureExitCode = _nullishCoalesce(explicitExitCode, () => (
|
|
1351
|
+
const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunk2XXXFPTDjs.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
1283
1352
|
process.exitCode = failureExitCode;
|
|
1284
|
-
await
|
|
1353
|
+
await _chunk2XXXFPTDjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1285
1354
|
argv: process.argv.slice(2),
|
|
1286
1355
|
startedAtMs: mainStartedAt,
|
|
1287
1356
|
exitCode: failureExitCode,
|
|
1288
1357
|
error
|
|
1289
1358
|
});
|
|
1290
1359
|
} finally {
|
|
1291
|
-
|
|
1360
|
+
_chunkHQY2SG3Kjs.finishToolExecuteCommand.call(void 0, );
|
|
1292
1361
|
}
|
|
1293
1362
|
process.exitCode = _nullishCoalesce(process.exitCode, () => ( 0));
|
|
1294
1363
|
}
|
|
@@ -1301,7 +1370,7 @@ async function main() {
|
|
|
1301
1370
|
"http_proxy",
|
|
1302
1371
|
"HTTPS_PROXY",
|
|
1303
1372
|
"https_proxy"
|
|
1304
|
-
].some((name) => _optionalChain([process, 'access',
|
|
1373
|
+
].some((name) => _optionalChain([process, 'access', _47 => _47.env, 'access', _48 => _48[name], 'optionalAccess', _49 => _49.trim, 'call', _50 => _50()]));
|
|
1305
1374
|
if (!process.versions.bun || hasProxy) {
|
|
1306
1375
|
const { configureCliTransport } = await Promise.resolve().then(() => _interopRequireWildcard(require("./proxy-env-ZV2WZFAT.js")));
|
|
1307
1376
|
disposeTransport = configureCliTransport();
|
|
@@ -1316,10 +1385,18 @@ async function main() {
|
|
|
1316
1385
|
await runMain(ensureTransport, (dispatched) => {
|
|
1317
1386
|
action = dispatched;
|
|
1318
1387
|
});
|
|
1388
|
+
const silentFailure = _chunkQ3PUHXOYjs.takeSilentJsonFailureMessage.call(void 0, process.exitCode);
|
|
1389
|
+
if (silentFailure) {
|
|
1390
|
+
_chunkQ3PUHXOYjs.printJson.call(void 0, {
|
|
1391
|
+
ok: false,
|
|
1392
|
+
exitCode: Number(process.exitCode),
|
|
1393
|
+
error: { code: "CLI_ERROR", message: silentFailure }
|
|
1394
|
+
});
|
|
1395
|
+
}
|
|
1319
1396
|
await ensureTransport();
|
|
1320
1397
|
await reportOutputSize({ exitCode: process.exitCode, action });
|
|
1321
1398
|
} finally {
|
|
1322
|
-
await _optionalChain([disposeTransport, 'optionalCall',
|
|
1399
|
+
await _optionalChain([disposeTransport, 'optionalCall', _51 => _51()]);
|
|
1323
1400
|
}
|
|
1324
1401
|
}
|
|
1325
1402
|
var DEV_CLI_AWAIT_MAIN = Symbol.for("@deepline/sdk/dev-cli-await-main");
|