deepline 0.3.363 → 0.3.365
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +21 -0
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/durability-store.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/map-execution-frame.ts +39 -1
- package/dist/bundling-sources/shared_libs/play-runtime/map-row-outcome.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/row-failure-summary.ts +139 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +14 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +26 -2
- package/dist/cli/{auth-4X5IPPQY.mjs → auth-4S26H44S.mjs} +4 -4
- package/dist/cli/auth-AXY27RN4.js +33 -0
- package/dist/cli/{billing-PG5LC7A4.mjs → billing-IMSQT3SR.mjs} +4 -4
- package/dist/cli/{billing-A7CKW7AN.js → billing-JD3SGKJN.js} +73 -73
- package/dist/cli/{chunk-FIZHV5SW.js → chunk-4LQ3MCZU.js} +62 -60
- package/dist/cli/{chunk-6453ELCN.mjs → chunk-5OMKEQGL.mjs} +1 -1
- package/dist/cli/{chunk-HK5L26A2.mjs → chunk-6RX64O34.mjs} +1 -1
- package/dist/cli/{chunk-BCUUOP2S.mjs → chunk-6ZZX3NVM.mjs} +2 -2
- package/dist/cli/{chunk-QQOQ7FCJ.js → chunk-7MF27ZQA.js} +2 -2
- package/dist/cli/{chunk-JXIA7B4Q.mjs → chunk-7MS7JCBB.mjs} +4 -2
- package/dist/cli/{chunk-2VHSNTGJ.js → chunk-E66FPPCT.js} +15 -15
- package/dist/cli/{chunk-BTPEPEJR.js → chunk-FTP4HYWY.js} +1 -1
- package/dist/cli/{chunk-SDCD7OH4.js → chunk-HHZIOAWI.js} +224 -224
- package/dist/cli/{chunk-GC5J26KZ.js → chunk-HNZNRS6I.js} +9 -9
- package/dist/cli/{chunk-VID352NP.js → chunk-L7CUNWVR.js} +4 -4
- package/dist/cli/{chunk-XB7NSDSX.js → chunk-LYLMIZIK.js} +26 -26
- package/dist/cli/{chunk-NWHXW4M4.mjs → chunk-NDQBGF6U.mjs} +1 -1
- package/dist/cli/{chunk-3LL7F4VL.mjs → chunk-NFBQAQRE.mjs} +5 -5
- package/dist/cli/{chunk-MC5IFDUJ.mjs → chunk-QGVNIGCS.mjs} +1 -1
- package/dist/cli/{chunk-KNQ3PNZ7.js → chunk-QNJZROLE.js} +50 -50
- package/dist/cli/{chunk-IYRMVSNR.mjs → chunk-QTBWSCF4.mjs} +3 -3
- package/dist/cli/{chunk-AG7AXHHA.js → chunk-UIZZ6CC6.js} +8 -8
- package/dist/cli/{chunk-DJDA57VF.mjs → chunk-VHWW76SC.mjs} +6 -6
- package/dist/cli/{chunk-DZBDG6V7.js → chunk-VZRENGJ2.js} +8 -8
- package/dist/cli/{chunk-NVQLHOXI.mjs → chunk-WJ4IGJR4.mjs} +4 -4
- package/dist/cli/{chunk-VTKCTJWG.js → chunk-XA7MAC3G.js} +6 -6
- package/dist/cli/{chunk-OM3GDDKW.mjs → chunk-XH7A4IWD.mjs} +2 -2
- package/dist/cli/{chunk-6TSA3G3I.js → chunk-XPYEE2AU.js} +45 -45
- package/dist/cli/{chunk-TVMGRV4A.mjs → chunk-YKRINWA2.mjs} +1 -1
- package/dist/cli/{chunk-CLXZXGJD.mjs → chunk-YME4BTRK.mjs} +2 -2
- package/dist/cli/client-OBQBVVUE.js +20 -0
- package/dist/cli/{client-FCVDAPRF.mjs → client-TIT2YEEY.mjs} +3 -3
- package/dist/cli/{csv-5JHK77KT.mjs → csv-64W5LJIT.mjs} +3 -3
- package/dist/cli/{csv-6LOALPZU.js → csv-XYARLBKW.js} +12 -12
- package/dist/cli/{db-3MOAOVCW.js → db-52N7JAVE.js} +29 -29
- package/dist/cli/{db-MRTQDSJB.mjs → db-BGC5QKV6.mjs} +4 -4
- package/dist/cli/{describe-ZO2BH3V2.mjs → describe-3ZSRFCHD.mjs} +8 -8
- package/dist/cli/{describe-VOU44BDZ.js → describe-DPDNIXVH.js} +15 -15
- package/dist/cli/{executions-H7GY5KI3.js → executions-WVIUSOSA.js} +6 -6
- package/dist/cli/{executions-HOOTTSXV.mjs → executions-ZIMU47UG.mjs} +4 -4
- package/dist/cli/{feedback-4U7FFIS5.mjs → feedback-7Z2PUW4R.mjs} +3 -3
- package/dist/cli/{feedback-SH4V2B65.js → feedback-VS5A3KAR.js} +7 -7
- package/dist/cli/{git-QKEH2SFT.mjs → git-JTIF7PN4.mjs} +4 -4
- package/dist/cli/git-QJYLQED2.js +23 -0
- package/dist/cli/index.js +82 -82
- package/dist/cli/index.mjs +32 -32
- package/dist/cli/{legacy-noops-AWQ2T2C6.mjs → legacy-noops-7IR7H7N4.mjs} +4 -4
- package/dist/cli/{legacy-noops-UWXUHHDX.js → legacy-noops-B2WDO6FW.js} +7 -7
- package/dist/cli/{monitors-JEQ5YYLX.mjs → monitors-LWBSJ3OX.mjs} +4 -4
- package/dist/cli/{monitors-4MAKL2VN.js → monitors-OESDIJVL.js} +85 -85
- package/dist/cli/{org-C7N5OMSW.js → org-ENJDFLCZ.js} +157 -60
- package/dist/cli/{org-2C74R6WM.mjs → org-T7OXEG5L.mjs} +101 -4
- package/dist/cli/{play-LN7URHHN.mjs → play-FOB5OCJ3.mjs} +7 -7
- package/dist/cli/play-Z6SXXNP5.js +153 -0
- package/dist/cli/{providers-LVG7PESP.js → providers-3OGXEWHS.js} +7 -7
- package/dist/cli/{providers-2HOUYSJM.mjs → providers-TU3QNHIS.mjs} +4 -4
- package/dist/cli/{quickstart-56TVYIZW.js → quickstart-DM4UGC7C.js} +5 -5
- package/dist/cli/{quickstart-DYU6XFQF.mjs → quickstart-VSVPWMNU.mjs} +3 -3
- package/dist/cli/search-26IGFUMM.js +26 -0
- package/dist/cli/{search-HF7PKAGT.mjs → search-CBHKG7YA.mjs} +5 -5
- package/dist/cli/{secrets-SIILJU3C.mjs → secrets-6ZQF4M27.mjs} +4 -4
- package/dist/cli/{secrets-P5CWA6ZL.js → secrets-YTN4ZA4T.js} +13 -13
- package/dist/cli/{sessions-TC3IN56Y.mjs → sessions-BPRYFAWJ.mjs} +4 -4
- package/dist/cli/{sessions-QHWGNJ5R.js → sessions-ZO7IOGUF.js} +5 -5
- package/dist/cli/{settings-F6HEQVKL.js → settings-N65YB4QA.js} +74 -74
- package/dist/cli/{settings-HUII4D54.mjs → settings-WYCYXUM7.mjs} +7 -7
- package/dist/cli/{setup-EDQQAIZ3.mjs → setup-KLEY2DJT.mjs} +6 -6
- package/dist/cli/{setup-62IL6VFZ.js → setup-RW4BMAKA.js} +41 -41
- package/dist/cli/{skills-KY4MRCQP.mjs → skills-DFXLS3KI.mjs} +4 -4
- package/dist/cli/skills-XTGVE76M.js +28 -0
- package/dist/cli/tools-AK4XQBQJ.js +40 -0
- package/dist/cli/{tools-7K3KPDVB.mjs → tools-UDSCRFZN.mjs} +6 -6
- package/dist/cli/{update-T2BM6XEI.mjs → update-3MKDIO3Y.mjs} +6 -6
- package/dist/cli/update-NIIEFTPX.js +28 -0
- package/dist/cli/{workflow-ZSAF2S66.js → workflow-64Y2B5YZ.js} +15 -15
- package/dist/cli/{workflow-ONMVUYGO.mjs → workflow-XNYXVEVF.mjs} +5 -5
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +75 -74
- 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-IIY7PILQ.js +0 -33
- package/dist/cli/client-FUDC2ULP.js +0 -20
- package/dist/cli/git-IW6D5HOP.js +0 -23
- package/dist/cli/play-J3W7VDAZ.js +0 -153
- package/dist/cli/search-YNNBIM73.js +0 -26
- package/dist/cli/skills-3PA4O6CP.js +0 -28
- package/dist/cli/tools-U6SM7MXM.js +0 -40
- package/dist/cli/update-7XMTB6YL.js +0 -28
package/dist/cli/index.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
7
|
+
var _chunkE66FPPCTjs = require('./chunk-E66FPPCT.js');
|
|
8
|
+
require('./chunk-7MF27ZQA.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -28,7 +28,7 @@ var _chunkQJBJZVG6js = require('./chunk-QJBJZVG6.js');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunk4LQ3MCZUjs = require('./chunk-4LQ3MCZU.js');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
|
|
@@ -38,7 +38,7 @@ var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkXA7MAC3Gjs = require('./chunk-XA7MAC3G.js');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
@@ -48,10 +48,10 @@ var _chunkVTKCTJWGjs = require('./chunk-VTKCTJWG.js');
|
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
|
|
51
|
-
var
|
|
51
|
+
var _chunkL7CUNWVRjs = require('./chunk-L7CUNWVR.js');
|
|
52
52
|
require('./chunk-XNYIZMNQ.js');
|
|
53
53
|
require('./chunk-7P5AA3SN.js');
|
|
54
|
-
require('./chunk-
|
|
54
|
+
require('./chunk-FTP4HYWY.js');
|
|
55
55
|
require('./chunk-OG64RBAC.js');
|
|
56
56
|
|
|
57
57
|
|
|
@@ -121,48 +121,48 @@ var _os = require('os');
|
|
|
121
121
|
var COMMAND_GROUPS = [
|
|
122
122
|
{
|
|
123
123
|
names: ["auth"],
|
|
124
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
124
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-AXY27RN4.js")))).registerAuthCommands
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
127
|
names: ["providers"],
|
|
128
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-
|
|
128
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-3OGXEWHS.js")))).registerProviderCommands
|
|
129
129
|
},
|
|
130
130
|
{
|
|
131
131
|
names: ["search"],
|
|
132
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-
|
|
132
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-26IGFUMM.js")))).registerSearchCommand
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
135
|
names: ["describe"],
|
|
136
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
136
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-DPDNIXVH.js")))).registerDescribeCommand
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
names: ["tools"],
|
|
140
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
140
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-AK4XQBQJ.js")))).registerToolsCommands
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
143
|
names: ["executions"],
|
|
144
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-
|
|
144
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-WVIUSOSA.js")))).registerExecutionsCommands
|
|
145
145
|
},
|
|
146
146
|
{
|
|
147
147
|
names: ["plays", "runs"],
|
|
148
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
148
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-Z6SXXNP5.js")))).registerPlayCommands
|
|
149
149
|
},
|
|
150
150
|
{
|
|
151
151
|
names: ["sessions"],
|
|
152
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-
|
|
152
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-ZO7IOGUF.js")))).registerSessionsCommands
|
|
153
153
|
},
|
|
154
154
|
{
|
|
155
155
|
names: ["workflows"],
|
|
156
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-
|
|
156
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-64Y2B5YZ.js")))).registerWorkflowCommands
|
|
157
157
|
},
|
|
158
158
|
{
|
|
159
159
|
names: ["secrets"],
|
|
160
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-
|
|
160
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-YTN4ZA4T.js")))).registerSecretsCommands
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
163
|
names: ["settings", "notifications"],
|
|
164
164
|
load: async () => {
|
|
165
|
-
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-
|
|
165
|
+
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-N65YB4QA.js")));
|
|
166
166
|
return (p) => {
|
|
167
167
|
commands.registerSettingsCommands(p);
|
|
168
168
|
commands.registerNotificationCommands(p);
|
|
@@ -171,51 +171,51 @@ var COMMAND_GROUPS = [
|
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
173
|
names: ["billing"],
|
|
174
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-
|
|
174
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-JD3SGKJN.js")))).registerBillingCommands
|
|
175
175
|
},
|
|
176
176
|
{
|
|
177
177
|
names: ["monitors"],
|
|
178
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-
|
|
178
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-OESDIJVL.js")))).registerMonitorsCommands
|
|
179
179
|
},
|
|
180
180
|
{
|
|
181
181
|
names: ["org"],
|
|
182
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-
|
|
182
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-ENJDFLCZ.js")))).registerOrgCommands
|
|
183
183
|
},
|
|
184
184
|
{
|
|
185
185
|
names: ["git", "projects", "deployments"],
|
|
186
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-
|
|
186
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-QJYLQED2.js")))).registerGitCommands
|
|
187
187
|
},
|
|
188
188
|
{
|
|
189
189
|
names: ["csv"],
|
|
190
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-
|
|
190
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-XYARLBKW.js")))).registerCsvCommands
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
193
|
names: ["db"],
|
|
194
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-
|
|
194
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-52N7JAVE.js")))).registerDbCommands
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
197
|
names: ["feedback"],
|
|
198
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-
|
|
198
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-VS5A3KAR.js")))).registerFeedbackCommands
|
|
199
199
|
},
|
|
200
200
|
{
|
|
201
201
|
names: ["enrich", "session", "backend"],
|
|
202
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-
|
|
202
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-B2WDO6FW.js")))).registerDeprecatedCommands
|
|
203
203
|
},
|
|
204
204
|
{
|
|
205
205
|
names: ["update"],
|
|
206
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-
|
|
206
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-NIIEFTPX.js")))).registerUpdateCommand
|
|
207
207
|
},
|
|
208
208
|
{
|
|
209
209
|
names: ["skills", "skills-auto-sync"],
|
|
210
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-
|
|
210
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-XTGVE76M.js")))).registerSkillsCommand
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
213
|
names: ["setup", "doctor"],
|
|
214
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-
|
|
214
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-RW4BMAKA.js")))).registerSetupCommands
|
|
215
215
|
},
|
|
216
216
|
{
|
|
217
217
|
names: ["quickstart"],
|
|
218
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-
|
|
218
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-DM4UGC7C.js")))).registerQuickstartCommands
|
|
219
219
|
}
|
|
220
220
|
];
|
|
221
221
|
async function registerDeeplineCommandGroups(program, requestedCommand) {
|
|
@@ -252,7 +252,7 @@ var MAX_SESSIONS = 20;
|
|
|
252
252
|
function helpSeenPath(homeDir = _os.homedir.call(void 0, )) {
|
|
253
253
|
return _path.join.call(void 0, homeDir, ".local", "deepline", "sdk-cli", "help-seen.json");
|
|
254
254
|
}
|
|
255
|
-
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId =
|
|
255
|
+
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId = _chunkL7CUNWVRjs.agentSessionIdFromEnvironment.call(void 0, )) {
|
|
256
256
|
const explicit = _chunkQILHWZFPjs.helpDetailFromArgv.call(void 0, argv);
|
|
257
257
|
if (explicit === "quiet") return { detail: "quiet", firstRead: false };
|
|
258
258
|
if (!sessionId) return { detail: explicit, firstRead: false };
|
|
@@ -334,7 +334,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
|
|
|
334
334
|
async function reportAutoUpdateEvent(input) {
|
|
335
335
|
let apiKey = "";
|
|
336
336
|
try {
|
|
337
|
-
apiKey =
|
|
337
|
+
apiKey = _chunkL7CUNWVRjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
338
338
|
} catch (e2) {
|
|
339
339
|
return;
|
|
340
340
|
}
|
|
@@ -350,15 +350,15 @@ async function reportAutoUpdateEvent(input) {
|
|
|
350
350
|
headers: {
|
|
351
351
|
Authorization: `Bearer ${apiKey}`,
|
|
352
352
|
"Content-Type": "application/json",
|
|
353
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
353
|
+
"User-Agent": `deepline-ts-sdk/${_chunkL7CUNWVRjs.SDK_VERSION}`,
|
|
354
354
|
"X-Deepline-Client-Family": "sdk",
|
|
355
355
|
"X-Deepline-CLI-Family": "sdk",
|
|
356
|
-
"X-Deepline-CLI-Version":
|
|
357
|
-
"X-Deepline-SDK-Version":
|
|
356
|
+
"X-Deepline-CLI-Version": _chunkL7CUNWVRjs.SDK_VERSION,
|
|
357
|
+
"X-Deepline-SDK-Version": _chunkL7CUNWVRjs.SDK_VERSION
|
|
358
358
|
},
|
|
359
359
|
body: JSON.stringify({
|
|
360
360
|
event: input.event,
|
|
361
|
-
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ||
|
|
361
|
+
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkL7CUNWVRjs.SDK_VERSION,
|
|
362
362
|
target_version: input.response.latest,
|
|
363
363
|
reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
|
|
364
364
|
command: _nullishCoalesce(input.response.command, () => ( null)),
|
|
@@ -377,7 +377,7 @@ function envTruthy(name) {
|
|
|
377
377
|
return value === "1" || value === "true" || value === "yes";
|
|
378
378
|
}
|
|
379
379
|
function shouldSkipSelfUpdate(policy) {
|
|
380
|
-
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !
|
|
380
|
+
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkE66FPPCTjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunk4LQ3MCZUjs.isCiEnvironment.call(void 0, );
|
|
381
381
|
}
|
|
382
382
|
function parseSemver(version) {
|
|
383
383
|
const trimmed = _optionalChain([version, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]);
|
|
@@ -407,7 +407,7 @@ function compareSemver(left, right) {
|
|
|
407
407
|
}
|
|
408
408
|
function isDowngradeAutoUpdateResponse(response) {
|
|
409
409
|
const target = _optionalChain([response, 'optionalAccess', _19 => _19.latest, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()]);
|
|
410
|
-
const current = _optionalChain([response, 'optionalAccess', _22 => _22.current, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) ||
|
|
410
|
+
const current = _optionalChain([response, 'optionalAccess', _22 => _22.current, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkL7CUNWVRjs.SDK_VERSION;
|
|
411
411
|
if (!target) return false;
|
|
412
412
|
return compareSemver(target, current) < 0;
|
|
413
413
|
}
|
|
@@ -446,7 +446,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
446
446
|
}
|
|
447
447
|
if (isDowngradeAutoUpdateResponse(response)) {
|
|
448
448
|
const target = response.latest;
|
|
449
|
-
const current = _optionalChain([response, 'access', _27 => _27.current, 'optionalAccess', _28 => _28.trim, 'call', _29 => _29()]) ||
|
|
449
|
+
const current = _optionalChain([response, 'access', _27 => _27.current, 'optionalAccess', _28 => _28.trim, 'call', _29 => _29()]) || _chunkL7CUNWVRjs.SDK_VERSION;
|
|
450
450
|
process.stderr.write(
|
|
451
451
|
`Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
|
|
452
452
|
`
|
|
@@ -454,12 +454,12 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
454
454
|
return false;
|
|
455
455
|
}
|
|
456
456
|
const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
|
|
457
|
-
const plan =
|
|
457
|
+
const plan = _chunkE66FPPCTjs.resolveUpdatePlan.call(void 0, {
|
|
458
458
|
packageSpec,
|
|
459
459
|
requireVerifiedNpmOwnership: true,
|
|
460
460
|
npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
|
|
461
461
|
});
|
|
462
|
-
if (!
|
|
462
|
+
if (!_chunkE66FPPCTjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
|
|
463
463
|
return false;
|
|
464
464
|
}
|
|
465
465
|
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";
|
|
@@ -473,7 +473,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
473
473
|
event: "started",
|
|
474
474
|
installKind: plan.kind
|
|
475
475
|
});
|
|
476
|
-
const updateResult = await
|
|
476
|
+
const updateResult = await _chunkE66FPPCTjs.runAutomaticUpdatePlan.call(void 0, plan);
|
|
477
477
|
if (updateResult.status === "skipped_previous_failure") {
|
|
478
478
|
void reportAutoUpdateEvent({
|
|
479
479
|
baseUrl,
|
|
@@ -623,7 +623,7 @@ async function runPlayRunnerHealthCheck() {
|
|
|
623
623
|
});
|
|
624
624
|
let exitCode = 1;
|
|
625
625
|
try {
|
|
626
|
-
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
626
|
+
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-Z6SXXNP5.js")));
|
|
627
627
|
exitCode = await handlePlayRun([
|
|
628
628
|
file,
|
|
629
629
|
"--input",
|
|
@@ -663,7 +663,7 @@ function preflightErrorMessage(error) {
|
|
|
663
663
|
return error instanceof Error ? error.message : String(error);
|
|
664
664
|
}
|
|
665
665
|
async function runPreflightCheck() {
|
|
666
|
-
const baseUrl =
|
|
666
|
+
const baseUrl = _chunkL7CUNWVRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
667
667
|
const healthController = new AbortController();
|
|
668
668
|
const healthTimeout = setTimeout(
|
|
669
669
|
() => healthController.abort(),
|
|
@@ -678,9 +678,9 @@ async function runPreflightCheck() {
|
|
|
678
678
|
version: pickString(payload, "version")
|
|
679
679
|
};
|
|
680
680
|
}).catch(() => ({ status: "unreachable", version: null })).finally(() => clearTimeout(healthTimeout));
|
|
681
|
-
const apiKey =
|
|
682
|
-
const http = apiKey ? new (0,
|
|
683
|
-
|
|
681
|
+
const apiKey = _chunkL7CUNWVRjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
682
|
+
const http = apiKey ? new (0, _chunkL7CUNWVRjs.HttpClient)(
|
|
683
|
+
_chunkL7CUNWVRjs.resolveConfig.call(void 0, {
|
|
684
684
|
baseUrl,
|
|
685
685
|
apiKey,
|
|
686
686
|
timeout: PREFLIGHT_TIMEOUT_MS,
|
|
@@ -725,7 +725,7 @@ async function runPreflightCheck() {
|
|
|
725
725
|
const connected = authStatus === "connected" || authStatus === "claimed";
|
|
726
726
|
return {
|
|
727
727
|
status: healthResult.status === "ok" && connected ? "ok" : "check",
|
|
728
|
-
cli_version:
|
|
728
|
+
cli_version: _chunkL7CUNWVRjs.SDK_VERSION,
|
|
729
729
|
host: baseUrl,
|
|
730
730
|
health: {
|
|
731
731
|
status: healthResult.status,
|
|
@@ -751,7 +751,7 @@ async function runPreflightCheck() {
|
|
|
751
751
|
{
|
|
752
752
|
title: "preflight",
|
|
753
753
|
lines: [
|
|
754
|
-
`cli: ${
|
|
754
|
+
`cli: ${_chunkL7CUNWVRjs.SDK_VERSION}`,
|
|
755
755
|
`host: ${baseUrl}`,
|
|
756
756
|
`health: ${healthResult.status}`,
|
|
757
757
|
`auth: ${authStatus}`,
|
|
@@ -776,12 +776,12 @@ function printPreflightHuman(data) {
|
|
|
776
776
|
}
|
|
777
777
|
async function newerCliCommandHint(baseUrl, command) {
|
|
778
778
|
if (!command.trim()) return null;
|
|
779
|
-
const { response, error } = await
|
|
779
|
+
const { response, error } = await _chunk4LQ3MCZUjs.checkSdkCompatibility.call(void 0, baseUrl, { command });
|
|
780
780
|
if (error || !response) return null;
|
|
781
781
|
const introduced = response.command_introduced_in;
|
|
782
782
|
if (introduced) {
|
|
783
783
|
return [
|
|
784
|
-
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${
|
|
784
|
+
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunkL7CUNWVRjs.SDK_VERSION}.`,
|
|
785
785
|
` ${introduced.reason}`,
|
|
786
786
|
` Update with: ${response.update_command}`,
|
|
787
787
|
" Agent skills are served by Deepline and refresh on their own, so a skill can describe a command this CLI does not have yet."
|
|
@@ -790,7 +790,7 @@ async function newerCliCommandHint(baseUrl, command) {
|
|
|
790
790
|
if (!response.update_required) return null;
|
|
791
791
|
return [
|
|
792
792
|
response.message,
|
|
793
|
-
` Installed: ${
|
|
793
|
+
` Installed: ${_chunkL7CUNWVRjs.SDK_VERSION}. Run: ${response.update_command}`,
|
|
794
794
|
" If an agent skill told you to run this, the skill is newer than this CLI."
|
|
795
795
|
].join("\n");
|
|
796
796
|
}
|
|
@@ -809,7 +809,7 @@ async function runMain(ensureTransport) {
|
|
|
809
809
|
const program = new (0, _commander.Command)();
|
|
810
810
|
program.name("deepline").description(
|
|
811
811
|
"Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
|
|
812
|
-
).version(
|
|
812
|
+
).version(_chunkL7CUNWVRjs.SDK_VERSION, "-v, --version", "Show version").option(
|
|
813
813
|
"--maintenance <policy>",
|
|
814
814
|
"Installation maintenance: configured preferences or off; independent of output format",
|
|
815
815
|
parseCliMaintenancePolicy,
|
|
@@ -865,7 +865,7 @@ Exit codes:
|
|
|
865
865
|
if (actionCommand.name() !== "version") {
|
|
866
866
|
await ensureTransport();
|
|
867
867
|
}
|
|
868
|
-
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() ===
|
|
868
|
+
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunk4LQ3MCZUjs.SKILLS_AUTO_SYNC_COMMAND || actionCommand.name() === "doctor" || isAutoUpdateSettingsInvocation() || isDeprecatedCommandInvocation()) {
|
|
869
869
|
return;
|
|
870
870
|
}
|
|
871
871
|
const compatibilityCommand = compatibilityCommandPath(actionCommand) || actionCommand.name();
|
|
@@ -878,16 +878,16 @@ Exit codes:
|
|
|
878
878
|
_optionalChain([progress, 'optionalAccess', _37 => _37.phase, 'call', _38 => _38("checking sdk compatibility")]);
|
|
879
879
|
}
|
|
880
880
|
const startup = await runStartupStage("SDK compatibility", async () => {
|
|
881
|
-
const baseUrl =
|
|
882
|
-
if (maintenance !== "off")
|
|
881
|
+
const baseUrl = _chunkL7CUNWVRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
882
|
+
if (maintenance !== "off") _chunk4LQ3MCZUjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
883
883
|
const shouldDeferSkillsSync = maintenance === "off" || shouldDeferSkillsSyncForCommand();
|
|
884
|
-
const skillsVersion = shouldDeferSkillsSync ? void 0 :
|
|
885
|
-
const trusted =
|
|
884
|
+
const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunkL7CUNWVRjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
885
|
+
const trusted = _chunk4LQ3MCZUjs.readTrustedCleanCompatibility.call(void 0,
|
|
886
886
|
baseUrl,
|
|
887
887
|
compatibilityCommand,
|
|
888
888
|
skillsVersion
|
|
889
889
|
);
|
|
890
|
-
const fastDeadline = trusted === null &&
|
|
890
|
+
const fastDeadline = trusted === null && _chunk4LQ3MCZUjs.readFreshCleanCompatibility.call(void 0,
|
|
891
891
|
baseUrl,
|
|
892
892
|
compatibilityCommand,
|
|
893
893
|
skillsVersion
|
|
@@ -911,12 +911,12 @@ Exit codes:
|
|
|
911
911
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null)),
|
|
912
912
|
fastDeadline
|
|
913
913
|
},
|
|
914
|
-
() =>
|
|
914
|
+
() => _chunk4LQ3MCZUjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
915
915
|
command: compatibilityCommand,
|
|
916
916
|
skillsVersion,
|
|
917
917
|
persistCache: maintenance !== "off",
|
|
918
918
|
catalog: _chunkQJBJZVG6js.compatibilityCatalog.call(void 0, actionCommand),
|
|
919
|
-
...fastDeadline ? { timeoutMs:
|
|
919
|
+
...fastDeadline ? { timeoutMs: _chunk4LQ3MCZUjs.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
|
|
920
920
|
})
|
|
921
921
|
);
|
|
922
922
|
if (compatibility.error) {
|
|
@@ -940,7 +940,7 @@ Exit codes:
|
|
|
940
940
|
response: compatibility.response
|
|
941
941
|
};
|
|
942
942
|
}
|
|
943
|
-
|
|
943
|
+
_chunk4LQ3MCZUjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
944
944
|
quietAdvisory: process.argv.includes("--json")
|
|
945
945
|
});
|
|
946
946
|
return {
|
|
@@ -961,7 +961,7 @@ Exit codes:
|
|
|
961
961
|
() => _chunkAYHLUHE5js.traceCliSpan.call(void 0,
|
|
962
962
|
"cli.sdk_skills_sync",
|
|
963
963
|
{ baseUrl: startup.baseUrl },
|
|
964
|
-
() =>
|
|
964
|
+
() => _chunk4LQ3MCZUjs.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
|
|
965
965
|
update: skillsUpdate,
|
|
966
966
|
mode: "detached"
|
|
967
967
|
})
|
|
@@ -989,8 +989,8 @@ Examples:
|
|
|
989
989
|
`
|
|
990
990
|
).action(async (options) => {
|
|
991
991
|
const data = await runPreflightCheck();
|
|
992
|
-
if (
|
|
993
|
-
|
|
992
|
+
if (_chunkXA7MAC3Gjs.shouldEmitJson.call(void 0, options.json)) {
|
|
993
|
+
_chunkXA7MAC3Gjs.printJson.call(void 0, data);
|
|
994
994
|
} else {
|
|
995
995
|
printPreflightHuman(data);
|
|
996
996
|
}
|
|
@@ -1012,13 +1012,13 @@ Examples:
|
|
|
1012
1012
|
try {
|
|
1013
1013
|
if (options.playRunner) {
|
|
1014
1014
|
const data2 = await runPlayRunnerHealthCheck();
|
|
1015
|
-
|
|
1015
|
+
_chunkXA7MAC3Gjs.printJson.call(void 0, data2);
|
|
1016
1016
|
return;
|
|
1017
1017
|
}
|
|
1018
|
-
const { DeeplineClient } = await Promise.resolve().then(() => _interopRequireWildcard(require("./client-
|
|
1018
|
+
const { DeeplineClient } = await Promise.resolve().then(() => _interopRequireWildcard(require("./client-OBQBVVUE.js")));
|
|
1019
1019
|
const client = new DeeplineClient();
|
|
1020
1020
|
const data = await client.health();
|
|
1021
|
-
|
|
1021
|
+
_chunkXA7MAC3Gjs.printJson.call(void 0, data);
|
|
1022
1022
|
} catch (error) {
|
|
1023
1023
|
throw new Error(
|
|
1024
1024
|
`Cannot reach Deepline API: ${error instanceof Error ? error.message : String(error)}`
|
|
@@ -1039,15 +1039,15 @@ Examples:
|
|
|
1039
1039
|
`
|
|
1040
1040
|
).action((options) => {
|
|
1041
1041
|
if (options.json) {
|
|
1042
|
-
|
|
1042
|
+
_chunkXA7MAC3Gjs.printCompactJson.call(void 0, { version: _chunkL7CUNWVRjs.SDK_VERSION });
|
|
1043
1043
|
return;
|
|
1044
1044
|
}
|
|
1045
|
-
process.stdout.write(`deepline ${
|
|
1045
|
+
process.stdout.write(`deepline ${_chunkL7CUNWVRjs.SDK_VERSION}
|
|
1046
1046
|
`);
|
|
1047
1047
|
});
|
|
1048
1048
|
if (process.argv.slice(2).length === 0) {
|
|
1049
1049
|
if (!process.stdout.isTTY) {
|
|
1050
|
-
|
|
1050
|
+
_chunkXA7MAC3Gjs.printJson.call(void 0, {
|
|
1051
1051
|
ok: false,
|
|
1052
1052
|
exitCode: 2,
|
|
1053
1053
|
code: "MISSING_COMMAND",
|
|
@@ -1071,7 +1071,7 @@ Examples:
|
|
|
1071
1071
|
const requestedTopLevelCommand = _nullishCoalesce(process.argv.slice(2)[0], () => ( ""));
|
|
1072
1072
|
if (!topLevelCommandKnown(program, requestedTopLevelCommand)) {
|
|
1073
1073
|
console.error(`error: unknown command '${requestedTopLevelCommand}'`);
|
|
1074
|
-
const baseUrl =
|
|
1074
|
+
const baseUrl = _chunkL7CUNWVRjs.autoDetectBaseUrl.call(void 0, );
|
|
1075
1075
|
await ensureTransport();
|
|
1076
1076
|
const versionHint = await newerCliCommandHint(
|
|
1077
1077
|
baseUrl,
|
|
@@ -1089,8 +1089,8 @@ Examples:
|
|
|
1089
1089
|
const helpArgs = process.argv.slice(2);
|
|
1090
1090
|
const helpPositionals = helpArgs.filter((arg) => !arg.startsWith("-"));
|
|
1091
1091
|
if (helpPositionals.length === 0 ? helpArgs.includes("--help") || helpArgs.includes("-h") : helpPositionals.length === 1 && helpPositionals[0] === "help") {
|
|
1092
|
-
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1093
|
-
rootHelpStatus = `Version: ${
|
|
1092
|
+
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-AXY27RN4.js")));
|
|
1093
|
+
rootHelpStatus = `Version: ${_chunkL7CUNWVRjs.SDK_VERSION}
|
|
1094
1094
|
${await authStatusLine()}
|
|
1095
1095
|
`;
|
|
1096
1096
|
}
|
|
@@ -1100,7 +1100,7 @@ ${await authStatusLine()}
|
|
|
1100
1100
|
ms: Date.now() - mainStartedAt,
|
|
1101
1101
|
ok: true
|
|
1102
1102
|
});
|
|
1103
|
-
await
|
|
1103
|
+
await _chunk4LQ3MCZUjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1104
1104
|
argv: process.argv.slice(2),
|
|
1105
1105
|
startedAtMs: mainStartedAt,
|
|
1106
1106
|
exitCode: typeof process.exitCode === "number" ? process.exitCode : null
|
|
@@ -1125,7 +1125,7 @@ ${await authStatusLine()}
|
|
|
1125
1125
|
const commandPath = invocation.commandPath || requestedTopLevelCommand;
|
|
1126
1126
|
await ensureTransport();
|
|
1127
1127
|
const versionHint = await newerCliCommandHint(
|
|
1128
|
-
|
|
1128
|
+
_chunkL7CUNWVRjs.autoDetectBaseUrl.call(void 0, ),
|
|
1129
1129
|
commandPath
|
|
1130
1130
|
);
|
|
1131
1131
|
if (versionHint) console.error(versionHint);
|
|
@@ -1136,24 +1136,24 @@ ${await authStatusLine()}
|
|
|
1136
1136
|
process.exitCode = commanderError.code === "commander.unknownCommand" && !wantsJson ? 2 : _nullishCoalesce(commanderError.exitCode, () => ( 1));
|
|
1137
1137
|
return;
|
|
1138
1138
|
} else if (wantsJson) {
|
|
1139
|
-
|
|
1140
|
-
...
|
|
1141
|
-
...error instanceof
|
|
1139
|
+
_chunkXA7MAC3Gjs.printJson.call(void 0, {
|
|
1140
|
+
..._chunkXA7MAC3Gjs.errorToJsonPayload.call(void 0, error),
|
|
1141
|
+
...error instanceof _chunkL7CUNWVRjs.AuthError ? { next: AUTH_RECOVERY_COMMAND } : {}
|
|
1142
1142
|
});
|
|
1143
1143
|
} else if (error instanceof Error) {
|
|
1144
1144
|
console.error(`Error: ${error.message}`);
|
|
1145
|
-
if (error instanceof
|
|
1145
|
+
if (error instanceof _chunkL7CUNWVRjs.AuthError) {
|
|
1146
1146
|
console.error(`Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`);
|
|
1147
1147
|
}
|
|
1148
|
-
const providerConcurrency =
|
|
1148
|
+
const providerConcurrency = _chunkXA7MAC3Gjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1149
1149
|
if (providerConcurrency) console.error(providerConcurrency);
|
|
1150
1150
|
} else {
|
|
1151
1151
|
console.error(`Error: ${String(error)}`);
|
|
1152
1152
|
}
|
|
1153
1153
|
const explicitExitCode = error && typeof error === "object" && typeof error.exitCode === "number" ? error.exitCode : void 0;
|
|
1154
|
-
const failureExitCode = _nullishCoalesce(explicitExitCode, () => (
|
|
1154
|
+
const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunk4LQ3MCZUjs.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
1155
1155
|
process.exitCode = failureExitCode;
|
|
1156
|
-
await
|
|
1156
|
+
await _chunk4LQ3MCZUjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1157
1157
|
argv: process.argv.slice(2),
|
|
1158
1158
|
startedAtMs: mainStartedAt,
|
|
1159
1159
|
exitCode: failureExitCode,
|