deepline 0.3.451 → 0.3.453
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 +65 -0
- package/dist/bundling-sources/sdk/src/http.ts +2 -1
- package/dist/bundling-sources/sdk/src/index.ts +2 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-capability.ts +63 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +5 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +49 -11
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/contract.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/runner-backend-adapter.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +17 -2
- package/dist/cli/{auth-YLBWEMRW.mjs → auth-6CXS55CN.mjs} +4 -4
- package/dist/cli/auth-AICIA232.js +40 -0
- package/dist/cli/{billing-GWG5D3P6.js → billing-QC52XTAD.js} +87 -74
- package/dist/cli/{billing-DUFOEOPT.mjs → billing-SWLTV6PV.mjs} +18 -5
- package/dist/cli/{chunk-37CPEQBE.mjs → chunk-2LDU5BMG.mjs} +3 -3
- package/dist/cli/{chunk-JUCEEIEC.mjs → chunk-43HOSM2F.mjs} +1 -1
- package/dist/cli/{chunk-E7V5CRA2.mjs → chunk-6CTVXF6X.mjs} +8 -8
- package/dist/cli/{chunk-BJOVX7EB.mjs → chunk-7557D4FM.mjs} +2 -2
- package/dist/cli/chunk-BX343KU7.mjs +155 -0
- package/dist/cli/{chunk-7VRWERTM.js → chunk-DMTAFWMS.js} +84 -50
- package/dist/cli/{chunk-XLOXUW5Y.mjs → chunk-FS2RMEJ7.mjs} +1 -1
- package/dist/cli/{chunk-EJ6YI46S.js → chunk-HUDUN4AR.js} +2 -2
- package/dist/cli/{chunk-OKTCLFKM.mjs → chunk-IFBLLSGH.mjs} +5 -5
- package/dist/cli/{chunk-33EM4SMH.mjs → chunk-IWFI6FTJ.mjs} +4 -153
- package/dist/cli/{chunk-ZPV7DMAA.mjs → chunk-IXVABCNA.mjs} +1 -1
- package/dist/cli/{chunk-O3KVUHCG.js → chunk-JOF3B22H.js} +20 -20
- package/dist/cli/{chunk-6TFACCXN.js → chunk-KFKM5J2N.js} +2 -2
- package/dist/cli/{chunk-WLVGRU5A.mjs → chunk-KQD6EFPD.mjs} +2 -2
- package/dist/cli/{chunk-HSKLAPMD.js → chunk-MP35NE55.js} +26 -26
- package/dist/cli/chunk-NOHA3SZJ.js +155 -0
- package/dist/cli/{chunk-Z3DBS4IB.js → chunk-NSQZUUYB.js} +81 -81
- package/dist/cli/{chunk-BQQLTSGC.mjs → chunk-P4UQCYKH.mjs} +4 -4
- package/dist/cli/{chunk-CH2WDSBC.js → chunk-PJWXEUUH.js} +8 -8
- package/dist/cli/{chunk-L2IUGWV5.js → chunk-RG644LJU.js} +1 -1
- package/dist/cli/{chunk-5DUMNKQG.js → chunk-RNCIPLU5.js} +50 -50
- package/dist/cli/{chunk-WDOWAOYB.js → chunk-RTR2KUU6.js} +10 -10
- package/dist/cli/{chunk-4C7HPD57.mjs → chunk-SQUJHT7O.mjs} +1 -1
- package/dist/cli/{chunk-ZNDE2BTH.js → chunk-V6AZQ4JH.js} +16 -16
- package/dist/cli/{chunk-F2DW7DFE.js → chunk-V7S2RUVE.js} +8 -8
- package/dist/cli/{chunk-C4NPWUZY.js → chunk-VG6WESY7.js} +73 -222
- package/dist/cli/{chunk-6G6KX7I7.js → chunk-WTTHH2K3.js} +6 -6
- package/dist/cli/{chunk-JRPNCMMN.js → chunk-WWZ4YJ6J.js} +35 -35
- package/dist/cli/{chunk-PJYTV24I.mjs → chunk-X2LUT22I.mjs} +2 -2
- package/dist/cli/{chunk-YXXIFMXI.mjs → chunk-XH4QC5ZX.mjs} +2 -2
- package/dist/cli/{chunk-3HT47QPJ.mjs → chunk-XNN3OTGT.mjs} +2 -2
- package/dist/cli/{chunk-LPPAJJJN.mjs → chunk-XV4463XW.mjs} +35 -1
- package/dist/cli/{chunk-TFCLUWDQ.js → chunk-YU6IE234.js} +6 -6
- package/dist/cli/{chunk-RFPP4Q66.mjs → chunk-ZVBLECZX.mjs} +3 -3
- package/dist/cli/{csv-RL7WQD6Y.mjs → csv-FON4ZQKC.mjs} +3 -3
- package/dist/cli/{csv-4CHXZQXO.js → csv-WIQB5XWZ.js} +12 -12
- package/dist/cli/{db-ZDBAWV7B.mjs → db-3KA62DOQ.mjs} +4 -4
- package/dist/cli/{db-MRI5IM2A.js → db-VMDDODCN.js} +25 -25
- package/dist/cli/{describe-RRQUUJQ3.mjs → describe-LGDK77QI.mjs} +13 -12
- package/dist/cli/{describe-2FYKXM5B.js → describe-NTAAHCCX.js} +17 -16
- package/dist/cli/describe-core.d.mts +1 -1
- package/dist/cli/describe-core.d.ts +1 -1
- package/dist/cli/{executions-KDBD47A5.js → executions-OT2KNJDO.js} +6 -6
- package/dist/cli/{executions-RJL76TJS.mjs → executions-TM6AMTQ7.mjs} +4 -4
- package/dist/cli/{feedback-2CE24NHD.js → feedback-4HQGY3TO.js} +7 -7
- package/dist/cli/{feedback-KOYLXHYE.mjs → feedback-HWLUVFE2.mjs} +3 -3
- package/dist/cli/git-QIZWO5BA.js +24 -0
- package/dist/cli/{git-RDUHU6L6.mjs → git-TDJVSPE6.mjs} +4 -4
- package/dist/cli/index.js +133 -131
- package/dist/cli/index.mjs +39 -37
- package/dist/cli/{legacy-noops-7FOMGBMN.js → legacy-noops-XH3FDLWT.js} +7 -7
- package/dist/cli/{legacy-noops-4HS2LYP6.mjs → legacy-noops-YB2PES43.mjs} +4 -4
- package/dist/cli/{monitors-IJXNK5BL.js → monitors-E3QFEJKF.js} +276 -124
- package/dist/cli/{monitors-JLBTNBVU.mjs → monitors-KQDDMSDR.mjs} +156 -4
- package/dist/cli/{org-OWP6K4AA.mjs → org-7X2C7YKA.mjs} +4 -4
- package/dist/cli/{org-JL7SW6VY.js → org-PMTLR7VP.js} +66 -66
- package/dist/cli/{play-FNOVKU74.mjs → play-7FNEPSVR.mjs} +11 -10
- package/dist/cli/{play-LLNZWHT6.js → play-RH22Z3D6.js} +284 -283
- package/dist/cli/{providers-WBOEOKE7.mjs → providers-HOEDJNUK.mjs} +4 -4
- package/dist/cli/{providers-E4XIEUC7.js → providers-X5NY5IQH.js} +7 -7
- package/dist/cli/{quickstart-3FUHKGEY.js → quickstart-FI4A6VTV.js} +5 -5
- package/dist/cli/{quickstart-6G5G3BVA.mjs → quickstart-NCL7P2US.mjs} +3 -3
- package/dist/cli/search-6FUMJBIY.js +30 -0
- package/dist/cli/{search-CNMB4Z6M.mjs → search-UHT7ZNPO.mjs} +5 -5
- package/dist/cli/{secrets-5FY5APVK.mjs → secrets-D4ZB5RKB.mjs} +4 -4
- package/dist/cli/{secrets-BDSWOYAT.js → secrets-TT6J3SZJ.js} +13 -13
- package/dist/cli/{sessions-PMIKVPQN.mjs → sessions-HRLJ6SLL.mjs} +4 -4
- package/dist/cli/{sessions-B7T2CHYK.js → sessions-SRQQZMM7.js} +5 -5
- package/dist/cli/{settings-RXQJRRLR.js → settings-EJIKXLC7.js} +76 -75
- package/dist/cli/{settings-4TAYLTPR.mjs → settings-PJJYPWU3.mjs} +9 -8
- package/dist/cli/{setup-ZTMETGSO.js → setup-3FL77Z33.js} +43 -42
- package/dist/cli/{setup-LVUISLVO.mjs → setup-DNI6ENFD.mjs} +8 -7
- package/dist/cli/skills-DEKOSL7F.js +30 -0
- package/dist/cli/{skills-NSJ43Z5Q.mjs → skills-FO7MY2OE.mjs} +6 -5
- package/dist/cli/tools-E6XRW6PW.js +45 -0
- package/dist/cli/{tools-CFCKIGDY.mjs → tools-F72WONN3.mjs} +13 -12
- package/dist/cli/update-6M3CAS4T.js +32 -0
- package/dist/cli/{update-HYOCBXJO.mjs → update-JZU33TC5.mjs} +8 -7
- package/dist/cli/{workflow-U6S4SWTF.js → workflow-BGKC73V2.js} +15 -15
- package/dist/cli/{workflow-RKX45RJ4.mjs → workflow-PQYQXQPH.mjs} +5 -5
- package/dist/{client-CPRaigLC.d.ts → client-D6XhrO0f.d.ts} +26 -1
- package/dist/{client-DstDI5TV.d.mts → client-mRA_esYI.d.mts} +26 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +82 -80
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-WPQBEOES.js +0 -40
- package/dist/cli/git-DZ5GROPH.js +0 -24
- package/dist/cli/search-4ECC773X.js +0 -30
- package/dist/cli/skills-MIENPTOD.js +0 -29
- package/dist/cli/tools-CXJO5XSH.js +0 -44
- package/dist/cli/update-B2LQGEXF.js +0 -31
package/dist/cli/index.js
CHANGED
|
@@ -7,20 +7,20 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
10
|
+
var _chunkJOF3B22Hjs = require('./chunk-JOF3B22H.js');
|
|
11
|
+
require('./chunk-V6AZQ4JH.js');
|
|
12
|
+
require('./chunk-HUDUN4AR.js');
|
|
13
|
+
require('./chunk-WWZ4YJ6J.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkYU6IE234js = require('./chunk-YU6IE234.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkKFKM5J2Njs = require('./chunk-KFKM5J2N.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -38,9 +38,10 @@ var _chunk6TFACCXNjs = require('./chunk-6TFACCXN.js');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
+
var _chunkVG6WESY7js = require('./chunk-VG6WESY7.js');
|
|
41
42
|
|
|
42
|
-
var _chunkC4NPWUZYjs = require('./chunk-C4NPWUZY.js');
|
|
43
43
|
|
|
44
|
+
var _chunkNOHA3SZJjs = require('./chunk-NOHA3SZJ.js');
|
|
44
45
|
|
|
45
46
|
|
|
46
47
|
|
|
@@ -52,8 +53,8 @@ var _chunkC4NPWUZYjs = require('./chunk-C4NPWUZY.js');
|
|
|
52
53
|
|
|
53
54
|
|
|
54
55
|
|
|
55
|
-
var _chunk6G6KX7I7js = require('./chunk-6G6KX7I7.js');
|
|
56
56
|
|
|
57
|
+
var _chunkWTTHH2K3js = require('./chunk-WTTHH2K3.js');
|
|
57
58
|
|
|
58
59
|
|
|
59
60
|
|
|
@@ -62,13 +63,14 @@ var _chunk6G6KX7I7js = require('./chunk-6G6KX7I7.js');
|
|
|
62
63
|
|
|
63
64
|
|
|
64
65
|
|
|
65
|
-
|
|
66
|
+
|
|
67
|
+
var _chunkRTR2KUU6js = require('./chunk-RTR2KUU6.js');
|
|
66
68
|
|
|
67
69
|
|
|
68
70
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
69
71
|
require('./chunk-XNYIZMNQ.js');
|
|
70
72
|
require('./chunk-DIAWYWT5.js');
|
|
71
|
-
require('./chunk-
|
|
73
|
+
require('./chunk-RG644LJU.js');
|
|
72
74
|
require('./chunk-OG64RBAC.js');
|
|
73
75
|
|
|
74
76
|
|
|
@@ -138,48 +140,48 @@ var _os = require('os');
|
|
|
138
140
|
var COMMAND_GROUPS = [
|
|
139
141
|
{
|
|
140
142
|
names: ["auth"],
|
|
141
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
143
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-AICIA232.js")))).registerAuthCommands
|
|
142
144
|
},
|
|
143
145
|
{
|
|
144
146
|
names: ["providers"],
|
|
145
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-
|
|
147
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-X5NY5IQH.js")))).registerProviderCommands
|
|
146
148
|
},
|
|
147
149
|
{
|
|
148
150
|
names: ["search"],
|
|
149
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-
|
|
151
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-6FUMJBIY.js")))).registerSearchCommand
|
|
150
152
|
},
|
|
151
153
|
{
|
|
152
154
|
names: ["describe"],
|
|
153
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
155
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-NTAAHCCX.js")))).registerDescribeCommand
|
|
154
156
|
},
|
|
155
157
|
{
|
|
156
158
|
names: ["tools"],
|
|
157
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
159
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-E6XRW6PW.js")))).registerToolsCommands
|
|
158
160
|
},
|
|
159
161
|
{
|
|
160
162
|
names: ["executions"],
|
|
161
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-
|
|
163
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-OT2KNJDO.js")))).registerExecutionsCommands
|
|
162
164
|
},
|
|
163
165
|
{
|
|
164
166
|
names: ["plays", "runs"],
|
|
165
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
167
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-RH22Z3D6.js")))).registerPlayCommands
|
|
166
168
|
},
|
|
167
169
|
{
|
|
168
170
|
names: ["sessions"],
|
|
169
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-
|
|
171
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-SRQQZMM7.js")))).registerSessionsCommands
|
|
170
172
|
},
|
|
171
173
|
{
|
|
172
174
|
names: ["workflows"],
|
|
173
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-
|
|
175
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-BGKC73V2.js")))).registerWorkflowCommands
|
|
174
176
|
},
|
|
175
177
|
{
|
|
176
178
|
names: ["secrets"],
|
|
177
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-
|
|
179
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-TT6J3SZJ.js")))).registerSecretsCommands
|
|
178
180
|
},
|
|
179
181
|
{
|
|
180
182
|
names: ["settings", "notifications"],
|
|
181
183
|
load: async () => {
|
|
182
|
-
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-
|
|
184
|
+
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-EJIKXLC7.js")));
|
|
183
185
|
return (p) => {
|
|
184
186
|
commands.registerSettingsCommands(p);
|
|
185
187
|
commands.registerNotificationCommands(p);
|
|
@@ -188,51 +190,51 @@ var COMMAND_GROUPS = [
|
|
|
188
190
|
},
|
|
189
191
|
{
|
|
190
192
|
names: ["billing"],
|
|
191
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-
|
|
193
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-QC52XTAD.js")))).registerBillingCommands
|
|
192
194
|
},
|
|
193
195
|
{
|
|
194
196
|
names: ["monitors"],
|
|
195
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-
|
|
197
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-E3QFEJKF.js")))).registerMonitorsCommands
|
|
196
198
|
},
|
|
197
199
|
{
|
|
198
200
|
names: ["org"],
|
|
199
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-
|
|
201
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-PMTLR7VP.js")))).registerOrgCommands
|
|
200
202
|
},
|
|
201
203
|
{
|
|
202
204
|
names: ["git", "projects", "deployments"],
|
|
203
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-
|
|
205
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-QIZWO5BA.js")))).registerGitCommands
|
|
204
206
|
},
|
|
205
207
|
{
|
|
206
208
|
names: ["csv"],
|
|
207
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-
|
|
209
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-WIQB5XWZ.js")))).registerCsvCommands
|
|
208
210
|
},
|
|
209
211
|
{
|
|
210
212
|
names: ["db"],
|
|
211
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-
|
|
213
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-VMDDODCN.js")))).registerDbCommands
|
|
212
214
|
},
|
|
213
215
|
{
|
|
214
216
|
names: ["feedback"],
|
|
215
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-
|
|
217
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-4HQGY3TO.js")))).registerFeedbackCommands
|
|
216
218
|
},
|
|
217
219
|
{
|
|
218
220
|
names: ["enrich", "session", "backend"],
|
|
219
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-
|
|
221
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-XH3FDLWT.js")))).registerDeprecatedCommands
|
|
220
222
|
},
|
|
221
223
|
{
|
|
222
224
|
names: ["update"],
|
|
223
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-
|
|
225
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-6M3CAS4T.js")))).registerUpdateCommand
|
|
224
226
|
},
|
|
225
227
|
{
|
|
226
228
|
names: ["skills", "skills-auto-sync"],
|
|
227
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-
|
|
229
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-DEKOSL7F.js")))).registerSkillsCommand
|
|
228
230
|
},
|
|
229
231
|
{
|
|
230
232
|
names: ["setup", "doctor"],
|
|
231
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-
|
|
233
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-3FL77Z33.js")))).registerSetupCommands
|
|
232
234
|
},
|
|
233
235
|
{
|
|
234
236
|
names: ["quickstart"],
|
|
235
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-
|
|
237
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-FI4A6VTV.js")))).registerQuickstartCommands
|
|
236
238
|
}
|
|
237
239
|
];
|
|
238
240
|
async function registerDeeplineCommandGroups(program, requestedCommand) {
|
|
@@ -258,25 +260,25 @@ function registerDeeplineInlineCommands(program) {
|
|
|
258
260
|
function createDeferredPlayRunMaintenance(input) {
|
|
259
261
|
return async () => {
|
|
260
262
|
try {
|
|
261
|
-
const skillsVersion =
|
|
262
|
-
const compatibility = await
|
|
263
|
+
const skillsVersion = _chunkRTR2KUU6js.readSdkSkillsLocalVersion.call(void 0, input.baseUrl);
|
|
264
|
+
const compatibility = await _chunkKFKM5J2Njs.traceCliSpan.call(void 0,
|
|
263
265
|
"cli.sdk_compatibility_deferred",
|
|
264
266
|
{
|
|
265
267
|
baseUrl: input.baseUrl,
|
|
266
268
|
command: "plays run",
|
|
267
269
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
268
270
|
},
|
|
269
|
-
() =>
|
|
271
|
+
() => _chunkVG6WESY7js.checkSdkCompatibility.call(void 0, input.baseUrl, {
|
|
270
272
|
command: "plays run",
|
|
271
273
|
skillsVersion,
|
|
272
274
|
persistCache: input.policy !== "off",
|
|
273
|
-
catalog:
|
|
275
|
+
catalog: _chunkJOF3B22Hjs.compatibilityCatalog.call(void 0, input.command)
|
|
274
276
|
})
|
|
275
277
|
);
|
|
276
278
|
if (compatibility.error || !compatibility.response) return;
|
|
277
279
|
const automaticUpdate = compatibility.response.auto_update;
|
|
278
280
|
if (_optionalChain([automaticUpdate, 'optionalAccess', _4 => _4.should_auto_update]) && !automaticUpdate.required && automaticUpdate.reason !== "rollback_forced") {
|
|
279
|
-
await
|
|
281
|
+
await _chunkJOF3B22Hjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
280
282
|
compatibility.response,
|
|
281
283
|
input.baseUrl,
|
|
282
284
|
input.policy
|
|
@@ -286,7 +288,7 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
286
288
|
compatibility.response,
|
|
287
289
|
"skills"
|
|
288
290
|
) ? _nullishCoalesce(compatibility.response.skills, () => ( null)) : void 0;
|
|
289
|
-
await
|
|
291
|
+
await _chunkVG6WESY7js.syncSdkSkillsIfNeeded.call(void 0, input.baseUrl, {
|
|
290
292
|
update: skillsUpdate,
|
|
291
293
|
mode: "detached"
|
|
292
294
|
});
|
|
@@ -314,7 +316,7 @@ var MAX_SESSIONS = 20;
|
|
|
314
316
|
function helpSeenPath(homeDir = _os.homedir.call(void 0, )) {
|
|
315
317
|
return _path.join.call(void 0, homeDir, ".local", "deepline", "sdk-cli", "help-seen.json");
|
|
316
318
|
}
|
|
317
|
-
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId =
|
|
319
|
+
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId = _chunkRTR2KUU6js.agentSessionIdFromEnvironment.call(void 0, )) {
|
|
318
320
|
const explicit = _chunkNMJ4D2WOjs.helpDetailFromArgv.call(void 0, argv);
|
|
319
321
|
if (explicit === "quiet") return { detail: "quiet", firstRead: false };
|
|
320
322
|
if (!sessionId) return { detail: explicit, firstRead: false };
|
|
@@ -412,7 +414,7 @@ function shouldReport(stdout, stderr) {
|
|
|
412
414
|
}
|
|
413
415
|
function toolName(action) {
|
|
414
416
|
const [toolId] = _optionalChain([action, 'optionalAccess', _5 => _5.path]) === "tools execute" ? action.args : [];
|
|
415
|
-
return typeof toolId === "string" ?
|
|
417
|
+
return typeof toolId === "string" ? _chunkVG6WESY7js.redactFailureText.call(void 0, toolId) : null;
|
|
416
418
|
}
|
|
417
419
|
function chunkText(chunk) {
|
|
418
420
|
if (typeof chunk === "string") return chunk;
|
|
@@ -443,14 +445,14 @@ function watch(stream) {
|
|
|
443
445
|
}
|
|
444
446
|
async function postCommandOutput(body) {
|
|
445
447
|
try {
|
|
446
|
-
const baseUrl =
|
|
447
|
-
const apiKey =
|
|
448
|
+
const baseUrl = _chunkRTR2KUU6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
449
|
+
const apiKey = _chunkRTR2KUU6js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
448
450
|
if (!apiKey) return;
|
|
449
|
-
const agentSessionId =
|
|
451
|
+
const agentSessionId = _chunkRTR2KUU6js.agentSessionIdFromEnvironment.call(void 0, );
|
|
450
452
|
await fetch(new URL("/api/v2/telemetry/command-output", baseUrl), {
|
|
451
453
|
method: "POST",
|
|
452
454
|
headers: {
|
|
453
|
-
...
|
|
455
|
+
..._chunkVG6WESY7js.failureReportHeaders.call(void 0, apiKey),
|
|
454
456
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {}
|
|
455
457
|
},
|
|
456
458
|
body: JSON.stringify(body),
|
|
@@ -466,14 +468,14 @@ function startOutputSizeReporting(invocation, streams = {
|
|
|
466
468
|
const stdoutWatch = watch(streams.stdout);
|
|
467
469
|
const stderrWatch = watch(streams.stderr);
|
|
468
470
|
return async (finished) => {
|
|
469
|
-
if (
|
|
471
|
+
if (_chunkVG6WESY7js.isFailureReportingDisabled.call(void 0, )) return;
|
|
470
472
|
const [stdout, stderr] = await Promise.all([
|
|
471
473
|
stdoutWatch.settled(),
|
|
472
474
|
stderrWatch.settled()
|
|
473
475
|
]);
|
|
474
476
|
if (!shouldReport(stdout, stderr)) return;
|
|
475
477
|
await postCommandOutput({
|
|
476
|
-
command:
|
|
478
|
+
command: _chunkVG6WESY7js.sanitizeCommand.call(void 0, invocation.argv),
|
|
477
479
|
tool: toolName(finished.action),
|
|
478
480
|
exit_code: typeof finished.exitCode === "number" ? finished.exitCode : null,
|
|
479
481
|
duration_ms: Math.max(0, Date.now() - invocation.startedAtMs),
|
|
@@ -504,7 +506,7 @@ function silenceCommanderErrorOutput(command) {
|
|
|
504
506
|
function printUsageErrorJson(code, message, commandPath) {
|
|
505
507
|
const unknownName = code === "commander.unknownCommand" ? _optionalChain([/unknown command '([^']+)'/, 'access', _6 => _6.exec, 'call', _7 => _7(message), 'optionalAccess', _8 => _8[1]]) : void 0;
|
|
506
508
|
const helpPath = unknownName && commandPath.endsWith(` ${unknownName}`) ? commandPath.slice(0, -unknownName.length - 1) : commandPath;
|
|
507
|
-
|
|
509
|
+
_chunkWTTHH2K3js.printJson.call(void 0, {
|
|
508
510
|
ok: false,
|
|
509
511
|
error: {
|
|
510
512
|
code,
|
|
@@ -566,7 +568,7 @@ function topLevelCommandKnown(program, commandName) {
|
|
|
566
568
|
);
|
|
567
569
|
}
|
|
568
570
|
async function runPlayRunnerHealthCheck() {
|
|
569
|
-
|
|
571
|
+
_chunkRTR2KUU6js.resolveConfig.call(void 0, );
|
|
570
572
|
const dir = await _promises.mkdtemp.call(void 0, _path.join.call(void 0, _os.tmpdir.call(void 0, ), "deepline-health-play-"));
|
|
571
573
|
const file = _path.join.call(void 0, dir, "health-check.play.ts");
|
|
572
574
|
try {
|
|
@@ -596,7 +598,7 @@ async function runPlayRunnerHealthCheck() {
|
|
|
596
598
|
});
|
|
597
599
|
let exitCode = 1;
|
|
598
600
|
try {
|
|
599
|
-
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
601
|
+
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-RH22Z3D6.js")));
|
|
600
602
|
exitCode = await handlePlayRun([
|
|
601
603
|
file,
|
|
602
604
|
"--input",
|
|
@@ -636,7 +638,7 @@ function preflightErrorMessage(error) {
|
|
|
636
638
|
return error instanceof Error ? error.message : String(error);
|
|
637
639
|
}
|
|
638
640
|
async function runPreflightCheck() {
|
|
639
|
-
const baseUrl =
|
|
641
|
+
const baseUrl = _chunkRTR2KUU6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
640
642
|
const healthController = new AbortController();
|
|
641
643
|
const healthTimeout = setTimeout(
|
|
642
644
|
() => healthController.abort(),
|
|
@@ -651,9 +653,9 @@ async function runPreflightCheck() {
|
|
|
651
653
|
version: pickString(payload, "version")
|
|
652
654
|
};
|
|
653
655
|
}).catch(() => ({ status: "unreachable", version: null })).finally(() => clearTimeout(healthTimeout));
|
|
654
|
-
const apiKey =
|
|
655
|
-
const http = apiKey ? new (0,
|
|
656
|
-
|
|
656
|
+
const apiKey = _chunkRTR2KUU6js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
657
|
+
const http = apiKey ? new (0, _chunkRTR2KUU6js.HttpClient)(
|
|
658
|
+
_chunkRTR2KUU6js.resolveConfig.call(void 0, {
|
|
657
659
|
baseUrl,
|
|
658
660
|
apiKey,
|
|
659
661
|
timeout: PREFLIGHT_TIMEOUT_MS,
|
|
@@ -698,7 +700,7 @@ async function runPreflightCheck() {
|
|
|
698
700
|
const connected = authStatus === "connected" || authStatus === "claimed";
|
|
699
701
|
return {
|
|
700
702
|
status: healthResult.status === "ok" && connected ? "ok" : "check",
|
|
701
|
-
cli_version:
|
|
703
|
+
cli_version: _chunkRTR2KUU6js.SDK_VERSION,
|
|
702
704
|
host: baseUrl,
|
|
703
705
|
health: {
|
|
704
706
|
status: healthResult.status,
|
|
@@ -724,7 +726,7 @@ async function runPreflightCheck() {
|
|
|
724
726
|
{
|
|
725
727
|
title: "preflight",
|
|
726
728
|
lines: [
|
|
727
|
-
`cli: ${
|
|
729
|
+
`cli: ${_chunkRTR2KUU6js.SDK_VERSION}`,
|
|
728
730
|
`host: ${baseUrl}`,
|
|
729
731
|
`health: ${healthResult.status}`,
|
|
730
732
|
`auth: ${authStatus}`,
|
|
@@ -749,12 +751,12 @@ function printPreflightHuman(data) {
|
|
|
749
751
|
}
|
|
750
752
|
async function newerCliCommandHint(baseUrl, command) {
|
|
751
753
|
if (!command.trim()) return null;
|
|
752
|
-
const { response, error } = await
|
|
754
|
+
const { response, error } = await _chunkVG6WESY7js.checkSdkCompatibility.call(void 0, baseUrl, { command });
|
|
753
755
|
if (error || !response) return null;
|
|
754
756
|
const introduced = response.command_introduced_in;
|
|
755
757
|
if (introduced) {
|
|
756
758
|
return [
|
|
757
|
-
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${
|
|
759
|
+
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunkRTR2KUU6js.SDK_VERSION}.`,
|
|
758
760
|
` ${introduced.reason}`,
|
|
759
761
|
` Update with: ${response.update_command}`,
|
|
760
762
|
" Agent skills are served by Deepline and refresh on their own, so a skill can describe a command this CLI does not have yet."
|
|
@@ -763,31 +765,31 @@ async function newerCliCommandHint(baseUrl, command) {
|
|
|
763
765
|
if (!response.update_required) return null;
|
|
764
766
|
return [
|
|
765
767
|
response.message,
|
|
766
|
-
` Installed: ${
|
|
768
|
+
` Installed: ${_chunkRTR2KUU6js.SDK_VERSION}. Run: ${response.update_command}`,
|
|
767
769
|
" If an agent skill told you to run this, the skill is newer than this CLI."
|
|
768
770
|
].join("\n");
|
|
769
771
|
}
|
|
770
772
|
async function runMain(ensureTransport, onAction) {
|
|
771
773
|
const mainStartedAt = Date.now();
|
|
772
|
-
|
|
774
|
+
_chunkWTTHH2K3js.installJsonStderrGuard.call(void 0, );
|
|
773
775
|
let rootHelpStatus = "";
|
|
774
776
|
const deferredMaintenance = { inlinePlay: null };
|
|
775
|
-
|
|
777
|
+
_chunkKFKM5J2Njs.recordCliTrace.call(void 0, {
|
|
776
778
|
phase: "cli.main_start",
|
|
777
779
|
argv: process.argv.slice(2)
|
|
778
780
|
});
|
|
779
781
|
const printStartupPhase = shouldPrintStartupPhase();
|
|
780
|
-
const progress = printStartupPhase ?
|
|
782
|
+
const progress = printStartupPhase ? _chunkNOHA3SZJjs.createCliProgress.call(void 0, true) : null;
|
|
781
783
|
if (printStartupPhase) {
|
|
782
784
|
_optionalChain([progress, 'optionalAccess', _14 => _14.phase, 'call', _15 => _15("loading deepline cli")]);
|
|
783
785
|
}
|
|
784
786
|
const program = new (0, _commander.Command)();
|
|
785
787
|
program.name("deepline").description(
|
|
786
788
|
"Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
|
|
787
|
-
).version(
|
|
789
|
+
).version(_chunkRTR2KUU6js.SDK_VERSION, "-v, --version", "Show version").option(
|
|
788
790
|
"--maintenance <policy>",
|
|
789
791
|
"Installation maintenance: configured preferences or off; independent of output format",
|
|
790
|
-
|
|
792
|
+
_chunkKFKM5J2Njs.parseCliMaintenancePolicy,
|
|
791
793
|
"configured"
|
|
792
794
|
).exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
|
|
793
795
|
"beforeAll",
|
|
@@ -845,24 +847,24 @@ Exit codes:
|
|
|
845
847
|
path: compatibilityCommandPath(actionCommand),
|
|
846
848
|
args: actionCommand.processedArgs
|
|
847
849
|
});
|
|
848
|
-
const maintenance =
|
|
850
|
+
const maintenance = _chunkKFKM5J2Njs.resolveCliMaintenancePolicy.call(void 0,
|
|
849
851
|
actionCommand.optsWithGlobals()
|
|
850
852
|
);
|
|
851
853
|
if (actionCommand.name() !== "version") {
|
|
852
854
|
await ensureTransport();
|
|
853
855
|
}
|
|
854
|
-
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() ===
|
|
856
|
+
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunkVG6WESY7js.SKILLS_AUTO_SYNC_COMMAND || actionCommand.name() === "doctor" || isAutoUpdateSettingsInvocation() || isDeprecatedCommandInvocation()) {
|
|
855
857
|
return;
|
|
856
858
|
}
|
|
857
859
|
const compatibilityCommand = compatibilityCommandPath(actionCommand) || actionCommand.name();
|
|
858
860
|
const isToolExecuteCommand = compatibilityCommand === "tools execute";
|
|
859
861
|
if (isToolExecuteCommand) {
|
|
860
|
-
|
|
862
|
+
_chunkJOF3B22Hjs.beginToolExecuteCommand.call(void 0, );
|
|
861
863
|
}
|
|
862
864
|
if (isToolExecuteCommand) {
|
|
863
|
-
const baseUrl =
|
|
864
|
-
if (maintenance !== "off")
|
|
865
|
-
|
|
865
|
+
const baseUrl = _chunkRTR2KUU6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
866
|
+
if (maintenance !== "off") _chunkVG6WESY7js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
867
|
+
_chunkKFKM5J2Njs.recordCliTrace.call(void 0, {
|
|
866
868
|
phase: "cli.sdk_compatibility_deferred_to_tool_execute",
|
|
867
869
|
baseUrl,
|
|
868
870
|
command: compatibilityCommand
|
|
@@ -870,10 +872,10 @@ Exit codes:
|
|
|
870
872
|
return;
|
|
871
873
|
}
|
|
872
874
|
const playDryRun = compatibilityCommand === "plays run" && actionCommand.optsWithGlobals().dryRun === true;
|
|
873
|
-
if (!playDryRun &&
|
|
875
|
+
if (!playDryRun && _chunkYU6IE234js.usesInlinePlayAdmission.call(void 0, compatibilityCommand, process.argv.slice(2))) {
|
|
874
876
|
if (maintenance !== "off") {
|
|
875
|
-
const baseUrl =
|
|
876
|
-
|
|
877
|
+
const baseUrl = _chunkRTR2KUU6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
878
|
+
_chunkVG6WESY7js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
877
879
|
deferredMaintenance.inlinePlay = createDeferredPlayRunMaintenance({
|
|
878
880
|
baseUrl,
|
|
879
881
|
command: actionCommand,
|
|
@@ -882,27 +884,27 @@ Exit codes:
|
|
|
882
884
|
}
|
|
883
885
|
return;
|
|
884
886
|
}
|
|
885
|
-
const runStartupStage = (stage, action) => isToolExecuteCommand ?
|
|
887
|
+
const runStartupStage = (stage, action) => isToolExecuteCommand ? _chunkJOF3B22Hjs.runToolExecuteStage.call(void 0, stage, action) : Promise.resolve(action());
|
|
886
888
|
if (printStartupPhase) {
|
|
887
889
|
_optionalChain([progress, 'optionalAccess', _16 => _16.phase, 'call', _17 => _17("checking sdk compatibility")]);
|
|
888
890
|
}
|
|
889
891
|
const startup = await runStartupStage("SDK compatibility", async () => {
|
|
890
|
-
const baseUrl =
|
|
891
|
-
if (maintenance !== "off")
|
|
892
|
+
const baseUrl = _chunkRTR2KUU6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
893
|
+
if (maintenance !== "off") _chunkVG6WESY7js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
892
894
|
const shouldDeferSkillsSync = isToolExecuteCommand || maintenance === "off" || shouldDeferSkillsSyncForCommand();
|
|
893
|
-
const skillsVersion = shouldDeferSkillsSync ? void 0 :
|
|
894
|
-
const trusted = isToolExecuteCommand ? null :
|
|
895
|
+
const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunkRTR2KUU6js.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
896
|
+
const trusted = isToolExecuteCommand ? null : _chunkVG6WESY7js.readTrustedCleanCompatibility.call(void 0,
|
|
895
897
|
baseUrl,
|
|
896
898
|
compatibilityCommand,
|
|
897
899
|
skillsVersion
|
|
898
900
|
);
|
|
899
|
-
const fastDeadline = !isToolExecuteCommand && trusted === null &&
|
|
901
|
+
const fastDeadline = !isToolExecuteCommand && trusted === null && _chunkVG6WESY7js.readFreshCleanCompatibility.call(void 0,
|
|
900
902
|
baseUrl,
|
|
901
903
|
compatibilityCommand,
|
|
902
904
|
skillsVersion
|
|
903
905
|
) !== null;
|
|
904
906
|
if (trusted) {
|
|
905
|
-
|
|
907
|
+
_chunkKFKM5J2Njs.recordCliTrace.call(void 0, {
|
|
906
908
|
phase: "cli.sdk_compatibility",
|
|
907
909
|
ms: 0,
|
|
908
910
|
ok: true,
|
|
@@ -912,7 +914,7 @@ Exit codes:
|
|
|
912
914
|
source: "trusted_cache"
|
|
913
915
|
});
|
|
914
916
|
}
|
|
915
|
-
const compatibility = trusted ? { response: trusted, error: null } : await
|
|
917
|
+
const compatibility = trusted ? { response: trusted, error: null } : await _chunkKFKM5J2Njs.traceCliSpan.call(void 0,
|
|
916
918
|
"cli.sdk_compatibility",
|
|
917
919
|
{
|
|
918
920
|
baseUrl,
|
|
@@ -920,12 +922,12 @@ Exit codes:
|
|
|
920
922
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null)),
|
|
921
923
|
fastDeadline
|
|
922
924
|
},
|
|
923
|
-
() =>
|
|
925
|
+
() => _chunkVG6WESY7js.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
924
926
|
command: compatibilityCommand,
|
|
925
927
|
skillsVersion,
|
|
926
928
|
persistCache: !isToolExecuteCommand && maintenance !== "off",
|
|
927
|
-
catalog:
|
|
928
|
-
...fastDeadline ? { timeoutMs:
|
|
929
|
+
catalog: _chunkJOF3B22Hjs.compatibilityCatalog.call(void 0, actionCommand),
|
|
930
|
+
...fastDeadline ? { timeoutMs: _chunkVG6WESY7js.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
|
|
929
931
|
})
|
|
930
932
|
);
|
|
931
933
|
if (compatibility.error) {
|
|
@@ -936,7 +938,7 @@ Exit codes:
|
|
|
936
938
|
response: null
|
|
937
939
|
};
|
|
938
940
|
}
|
|
939
|
-
const relaunched = await
|
|
941
|
+
const relaunched = await _chunkJOF3B22Hjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
940
942
|
compatibility.response,
|
|
941
943
|
baseUrl,
|
|
942
944
|
maintenance
|
|
@@ -950,14 +952,14 @@ Exit codes:
|
|
|
950
952
|
};
|
|
951
953
|
}
|
|
952
954
|
const policy = compatibility.response;
|
|
953
|
-
const jsonOutput =
|
|
954
|
-
|
|
955
|
+
const jsonOutput = _chunkWTTHH2K3js.isJsonOutputMode.call(void 0, );
|
|
956
|
+
_chunkVG6WESY7js.enforceSdkCompatibilityResponse.call(void 0, policy, {
|
|
955
957
|
quietAdvisory: jsonOutput || // The queued update already says what is about to happen.
|
|
956
|
-
|
|
958
|
+
_chunkJOF3B22Hjs.hasDeferredAutoUpdate.call(void 0, ) || maintenance === "off" || !_chunkVG6WESY7js.claimUpdateAdvisory.call(void 0, baseUrl)
|
|
957
959
|
});
|
|
958
960
|
const advisory = compatibility.response;
|
|
959
|
-
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !
|
|
960
|
-
|
|
961
|
+
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !_chunkVG6WESY7js.isCiEnvironment.call(void 0, ) && !_chunkJOF3B22Hjs.hasDeferredAutoUpdate.call(void 0, )) {
|
|
962
|
+
_chunkWTTHH2K3js.addJsonNotice.call(void 0, { code: advisory.status, message: advisory.message });
|
|
961
963
|
}
|
|
962
964
|
return {
|
|
963
965
|
shouldContinue: true,
|
|
@@ -974,10 +976,10 @@ Exit codes:
|
|
|
974
976
|
const skillsUpdate = startup.response && Object.prototype.hasOwnProperty.call(startup.response, "skills") ? _nullishCoalesce(startup.response.skills, () => ( null)) : void 0;
|
|
975
977
|
await runStartupStage(
|
|
976
978
|
"agent skills sync",
|
|
977
|
-
() =>
|
|
979
|
+
() => _chunkKFKM5J2Njs.traceCliSpan.call(void 0,
|
|
978
980
|
"cli.sdk_skills_sync",
|
|
979
981
|
{ baseUrl: startup.baseUrl },
|
|
980
|
-
() =>
|
|
982
|
+
() => _chunkVG6WESY7js.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
|
|
981
983
|
update: skillsUpdate,
|
|
982
984
|
mode: "detached"
|
|
983
985
|
})
|
|
@@ -986,19 +988,19 @@ Exit codes:
|
|
|
986
988
|
}
|
|
987
989
|
});
|
|
988
990
|
const requestedCommand = process.argv[2];
|
|
989
|
-
const commandRegistrationStartedAt =
|
|
991
|
+
const commandRegistrationStartedAt = _chunkKFKM5J2Njs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
990
992
|
await registerDeeplineCommandGroups(
|
|
991
993
|
program,
|
|
992
994
|
!requestedCommand || requestedCommand === "help" || requestedCommand.startsWith("-") && !["-v", "--version"].includes(requestedCommand) ? void 0 : requestedCommand
|
|
993
995
|
);
|
|
994
996
|
if (commandRegistrationStartedAt !== void 0) {
|
|
995
|
-
|
|
997
|
+
_chunkKFKM5J2Njs.recordCliTrace.call(void 0, {
|
|
996
998
|
phase: "cli.command_registration",
|
|
997
999
|
ms: performance.now() - commandRegistrationStartedAt
|
|
998
1000
|
});
|
|
999
1001
|
}
|
|
1000
1002
|
const { preflight, health, version } = registerDeeplineInlineCommands(program);
|
|
1001
|
-
if (
|
|
1003
|
+
if (_chunkWTTHH2K3js.isJsonOutputMode.call(void 0, )) silenceCommanderErrorOutput(program);
|
|
1002
1004
|
preflight.addHelpText(
|
|
1003
1005
|
"after",
|
|
1004
1006
|
`
|
|
@@ -1013,8 +1015,8 @@ Examples:
|
|
|
1013
1015
|
`
|
|
1014
1016
|
).action(async (options) => {
|
|
1015
1017
|
const data = await runPreflightCheck();
|
|
1016
|
-
if (
|
|
1017
|
-
|
|
1018
|
+
if (_chunkWTTHH2K3js.shouldEmitJson.call(void 0, options.json)) {
|
|
1019
|
+
_chunkWTTHH2K3js.printJson.call(void 0, data);
|
|
1018
1020
|
} else {
|
|
1019
1021
|
printPreflightHuman(data);
|
|
1020
1022
|
}
|
|
@@ -1036,7 +1038,7 @@ Examples:
|
|
|
1036
1038
|
).action(async (options) => {
|
|
1037
1039
|
if (options.playRunner) {
|
|
1038
1040
|
const data = await runPlayRunnerHealthCheck();
|
|
1039
|
-
|
|
1041
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0, data, {
|
|
1040
1042
|
json: options.json,
|
|
1041
1043
|
text: `play runner: ${data.playRunner.status} (${data.playRunner.check})
|
|
1042
1044
|
`
|
|
@@ -1044,15 +1046,15 @@ Examples:
|
|
|
1044
1046
|
return;
|
|
1045
1047
|
}
|
|
1046
1048
|
try {
|
|
1047
|
-
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1048
|
-
const baseUrl =
|
|
1049
|
+
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-AICIA232.js")));
|
|
1050
|
+
const baseUrl = _chunkRTR2KUU6js.resolveBaseUrlOnly.call(void 0, );
|
|
1049
1051
|
const [{ status, data }, banner] = await Promise.all([
|
|
1050
1052
|
httpJson("GET", `${baseUrl}/api/v2/health`, null),
|
|
1051
1053
|
readStatusBanner(baseUrl)
|
|
1052
1054
|
]);
|
|
1053
1055
|
if (status !== 200) throw new Error(`HTTP ${status}`);
|
|
1054
1056
|
const lines = [`${baseUrl}: ${data.status}`, statusBannerLine(banner)];
|
|
1055
|
-
|
|
1057
|
+
_chunkWTTHH2K3js.printCommandEnvelope.call(void 0,
|
|
1056
1058
|
{ ...data, status_banner: banner },
|
|
1057
1059
|
{
|
|
1058
1060
|
json: options.json,
|
|
@@ -1080,16 +1082,16 @@ Examples:
|
|
|
1080
1082
|
`
|
|
1081
1083
|
).action((options) => {
|
|
1082
1084
|
if (options.json) {
|
|
1083
|
-
|
|
1085
|
+
_chunkWTTHH2K3js.printCompactJson.call(void 0, { version: _chunkRTR2KUU6js.SDK_VERSION });
|
|
1084
1086
|
return;
|
|
1085
1087
|
}
|
|
1086
|
-
process.stdout.write(`deepline ${
|
|
1088
|
+
process.stdout.write(`deepline ${_chunkRTR2KUU6js.SDK_VERSION}
|
|
1087
1089
|
`);
|
|
1088
1090
|
});
|
|
1089
1091
|
if (process.argv.slice(2).length === 0) {
|
|
1090
1092
|
program.outputHelp({ error: true });
|
|
1091
1093
|
console.error("\nerror: missing command (see usage above)");
|
|
1092
|
-
|
|
1094
|
+
_chunkKFKM5J2Njs.recordCliTrace.call(void 0, {
|
|
1093
1095
|
phase: "cli.main_total",
|
|
1094
1096
|
ms: Date.now() - mainStartedAt,
|
|
1095
1097
|
ok: false,
|
|
@@ -1101,16 +1103,16 @@ Examples:
|
|
|
1101
1103
|
const requestedTopLevelCommand = _nullishCoalesce(process.argv.slice(2)[0], () => ( ""));
|
|
1102
1104
|
if (!topLevelCommandKnown(program, requestedTopLevelCommand)) {
|
|
1103
1105
|
const unknownCommandMessage = `error: unknown command '${requestedTopLevelCommand}'`;
|
|
1104
|
-
if (!
|
|
1105
|
-
const baseUrl =
|
|
1106
|
+
if (!_chunkWTTHH2K3js.isJsonOutputMode.call(void 0, )) console.error(unknownCommandMessage);
|
|
1107
|
+
const baseUrl = _chunkRTR2KUU6js.autoDetectBaseUrl.call(void 0, );
|
|
1106
1108
|
await ensureTransport();
|
|
1107
1109
|
const versionHint = await newerCliCommandHint(
|
|
1108
1110
|
baseUrl,
|
|
1109
1111
|
requestedTopLevelCommand
|
|
1110
1112
|
);
|
|
1111
|
-
if (
|
|
1113
|
+
if (_chunkWTTHH2K3js.isJsonOutputMode.call(void 0, )) {
|
|
1112
1114
|
if (versionHint) {
|
|
1113
|
-
|
|
1115
|
+
_chunkWTTHH2K3js.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1114
1116
|
}
|
|
1115
1117
|
printUsageErrorJson(
|
|
1116
1118
|
"commander.unknownCommand",
|
|
@@ -1132,32 +1134,32 @@ Examples:
|
|
|
1132
1134
|
const helpArgs = process.argv.slice(2);
|
|
1133
1135
|
const helpPositionals = helpArgs.filter((arg) => !arg.startsWith("-"));
|
|
1134
1136
|
if (helpPositionals.length === 0 ? helpArgs.includes("--help") || helpArgs.includes("-h") : helpPositionals.length === 1 && helpPositionals[0] === "help") {
|
|
1135
|
-
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1136
|
-
rootHelpStatus = `Version: ${
|
|
1137
|
+
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-AICIA232.js")));
|
|
1138
|
+
rootHelpStatus = `Version: ${_chunkRTR2KUU6js.SDK_VERSION}
|
|
1137
1139
|
${await authStatusLine()}
|
|
1138
1140
|
`;
|
|
1139
1141
|
}
|
|
1140
1142
|
await program.parseAsync(process.argv);
|
|
1141
|
-
|
|
1143
|
+
_chunkKFKM5J2Njs.recordCliTrace.call(void 0, {
|
|
1142
1144
|
phase: "cli.main_total",
|
|
1143
1145
|
ms: Date.now() - mainStartedAt,
|
|
1144
1146
|
ok: true
|
|
1145
1147
|
});
|
|
1146
|
-
await
|
|
1148
|
+
await _chunkVG6WESY7js.maybeReportSdkCliFailure.call(void 0, {
|
|
1147
1149
|
argv: process.argv.slice(2),
|
|
1148
1150
|
startedAtMs: mainStartedAt,
|
|
1149
1151
|
exitCode: typeof process.exitCode === "number" ? process.exitCode : null
|
|
1150
1152
|
});
|
|
1151
1153
|
} catch (error) {
|
|
1152
1154
|
const commanderError = asCommanderError(error);
|
|
1153
|
-
|
|
1155
|
+
_chunkKFKM5J2Njs.recordCliTrace.call(void 0, {
|
|
1154
1156
|
phase: "cli.main_total",
|
|
1155
1157
|
ms: Date.now() - mainStartedAt,
|
|
1156
1158
|
ok: false,
|
|
1157
1159
|
error: error instanceof Error ? error.message : String(error)
|
|
1158
1160
|
});
|
|
1159
1161
|
_optionalChain([progress, 'optionalAccess', _20 => _20.fail, 'call', _21 => _21()]);
|
|
1160
|
-
const wantsJson =
|
|
1162
|
+
const wantsJson = _chunkWTTHH2K3js.isJsonOutputMode.call(void 0, );
|
|
1161
1163
|
if (commanderError) {
|
|
1162
1164
|
const grammarError = [
|
|
1163
1165
|
"commander.unknownCommand",
|
|
@@ -1168,12 +1170,12 @@ ${await authStatusLine()}
|
|
|
1168
1170
|
if (grammarError) {
|
|
1169
1171
|
await ensureTransport();
|
|
1170
1172
|
const versionHint = await newerCliCommandHint(
|
|
1171
|
-
|
|
1173
|
+
_chunkRTR2KUU6js.autoDetectBaseUrl.call(void 0, ),
|
|
1172
1174
|
commandPath
|
|
1173
1175
|
);
|
|
1174
1176
|
if (wantsJson) {
|
|
1175
1177
|
if (versionHint) {
|
|
1176
|
-
|
|
1178
|
+
_chunkWTTHH2K3js.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1177
1179
|
}
|
|
1178
1180
|
} else {
|
|
1179
1181
|
if (versionHint) console.error(versionHint);
|
|
@@ -1193,49 +1195,49 @@ ${await authStatusLine()}
|
|
|
1193
1195
|
return;
|
|
1194
1196
|
} else if (wantsJson) {
|
|
1195
1197
|
if (error instanceof _chunkALJJRZNJjs.AuthError) {
|
|
1196
|
-
|
|
1198
|
+
_chunkWTTHH2K3js.addJsonNotice.call(void 0, {
|
|
1197
1199
|
code: "auth_required",
|
|
1198
1200
|
message: `Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`
|
|
1199
1201
|
});
|
|
1200
1202
|
}
|
|
1201
|
-
const providerConcurrency =
|
|
1203
|
+
const providerConcurrency = _chunkWTTHH2K3js.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1202
1204
|
if (providerConcurrency) {
|
|
1203
|
-
|
|
1205
|
+
_chunkWTTHH2K3js.addJsonNotice.call(void 0, {
|
|
1204
1206
|
code: "provider_concurrency",
|
|
1205
1207
|
message: providerConcurrency
|
|
1206
1208
|
});
|
|
1207
1209
|
}
|
|
1208
|
-
|
|
1209
|
-
...
|
|
1210
|
+
_chunkWTTHH2K3js.printJson.call(void 0, {
|
|
1211
|
+
..._chunkWTTHH2K3js.errorToJsonPayload.call(void 0, error),
|
|
1210
1212
|
...error instanceof _chunkALJJRZNJjs.AuthError ? { next: AUTH_RECOVERY_COMMAND } : {}
|
|
1211
1213
|
});
|
|
1212
1214
|
} else if (error instanceof Error) {
|
|
1213
1215
|
console.error(`Error: ${error.message}`);
|
|
1214
|
-
const toolDiagnostic =
|
|
1216
|
+
const toolDiagnostic = _chunkWTTHH2K3js.formatToolExecutionErrorDiagnostic.call(void 0, error);
|
|
1215
1217
|
if (toolDiagnostic) console.error(toolDiagnostic);
|
|
1216
1218
|
if (error instanceof _chunkALJJRZNJjs.AuthError) {
|
|
1217
1219
|
console.error(`Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`);
|
|
1218
1220
|
}
|
|
1219
|
-
const providerConcurrency =
|
|
1221
|
+
const providerConcurrency = _chunkWTTHH2K3js.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1220
1222
|
if (providerConcurrency) console.error(providerConcurrency);
|
|
1221
1223
|
} else {
|
|
1222
1224
|
console.error(`Error: ${String(error)}`);
|
|
1223
1225
|
}
|
|
1224
1226
|
const explicitExitCode = error && typeof error === "object" && typeof error.exitCode === "number" ? error.exitCode : void 0;
|
|
1225
|
-
const failureExitCode = _nullishCoalesce(explicitExitCode, () => (
|
|
1227
|
+
const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunkVG6WESY7js.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
1226
1228
|
process.exitCode = failureExitCode;
|
|
1227
|
-
await
|
|
1229
|
+
await _chunkVG6WESY7js.maybeReportSdkCliFailure.call(void 0, {
|
|
1228
1230
|
argv: process.argv.slice(2),
|
|
1229
1231
|
startedAtMs: mainStartedAt,
|
|
1230
1232
|
exitCode: failureExitCode,
|
|
1231
1233
|
error
|
|
1232
1234
|
});
|
|
1233
1235
|
} finally {
|
|
1234
|
-
|
|
1236
|
+
_chunkJOF3B22Hjs.finishToolExecuteCommand.call(void 0, );
|
|
1235
1237
|
const maintainInlinePlay = deferredMaintenance.inlinePlay;
|
|
1236
1238
|
deferredMaintenance.inlinePlay = null;
|
|
1237
1239
|
await _optionalChain([maintainInlinePlay, 'optionalCall', _22 => _22()]);
|
|
1238
|
-
await
|
|
1240
|
+
await _chunkJOF3B22Hjs.runDeferredAutoUpdate.call(void 0, );
|
|
1239
1241
|
}
|
|
1240
1242
|
process.exitCode = _nullishCoalesce(process.exitCode, () => ( 0));
|
|
1241
1243
|
}
|
|
@@ -1243,7 +1245,7 @@ async function main() {
|
|
|
1243
1245
|
let disposeTransport;
|
|
1244
1246
|
const ensureTransport = async () => {
|
|
1245
1247
|
if (disposeTransport) return;
|
|
1246
|
-
const transportStartedAt =
|
|
1248
|
+
const transportStartedAt = _chunkKFKM5J2Njs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1247
1249
|
const hasProxy = [
|
|
1248
1250
|
"HTTP_PROXY",
|
|
1249
1251
|
"http_proxy",
|
|
@@ -1255,7 +1257,7 @@ async function main() {
|
|
|
1255
1257
|
disposeTransport = configureCliTransport();
|
|
1256
1258
|
}
|
|
1257
1259
|
if (transportStartedAt !== void 0) {
|
|
1258
|
-
|
|
1260
|
+
_chunkKFKM5J2Njs.recordCliTrace.call(void 0, {
|
|
1259
1261
|
phase: "cli.transport_setup",
|
|
1260
1262
|
ms: performance.now() - transportStartedAt
|
|
1261
1263
|
});
|
|
@@ -1272,9 +1274,9 @@ async function main() {
|
|
|
1272
1274
|
action = dispatched;
|
|
1273
1275
|
skipOutputReport = dispatched.path === "tools execute" || dispatched.path === "plays run" && process.argv.includes("--json");
|
|
1274
1276
|
});
|
|
1275
|
-
const silentFailure =
|
|
1277
|
+
const silentFailure = _chunkWTTHH2K3js.takeSilentJsonFailureMessage.call(void 0, process.exitCode);
|
|
1276
1278
|
if (silentFailure) {
|
|
1277
|
-
|
|
1279
|
+
_chunkWTTHH2K3js.printJson.call(void 0, {
|
|
1278
1280
|
ok: false,
|
|
1279
1281
|
exitCode: Number(process.exitCode),
|
|
1280
1282
|
error: { code: "CLI_ERROR", message: silentFailure }
|