deepline 0.3.307 → 0.3.308
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/README.md +2 -1
- package/dist/bundling-sources/sdk/src/client.ts +270 -11
- package/dist/bundling-sources/sdk/src/compat.ts +27 -9
- package/dist/bundling-sources/sdk/src/index.ts +35 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/batch-runtime.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/batching-types.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +46 -16
- package/dist/bundling-sources/shared_libs/play-runtime/fullenrich-batching.ts +24 -1
- package/dist/bundling-sources/shared_libs/play-runtime/run-event-query.ts +872 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +595 -0
- package/dist/cli/auth-LWNR7TQB.js +31 -0
- package/dist/cli/{auth-AJPTFFC7.mjs → auth-ZWX4BF5K.mjs} +4 -4
- package/dist/cli/{billing-LPDYJLIL.mjs → billing-CLV5QRFQ.mjs} +4 -4
- package/dist/cli/{billing-SPBWUEOS.js → billing-H24FGAKE.js} +70 -70
- package/dist/cli/{chunk-O4OESDIN.mjs → chunk-3GIUCJAT.mjs} +1 -1
- package/dist/cli/{chunk-D55NIPGU.mjs → chunk-ABMGEW3C.mjs} +1 -1
- package/dist/cli/{chunk-RXYYANYP.mjs → chunk-ASWZTTKT.mjs} +13 -5
- package/dist/cli/{chunk-G4SSYZND.mjs → chunk-BPD7TR27.mjs} +1 -1
- package/dist/cli/{chunk-ZGICKTW7.mjs → chunk-CXU7ME5X.mjs} +2 -2
- package/dist/cli/{chunk-HWCB5MHF.js → chunk-GBFIAI4L.js} +68 -60
- package/dist/cli/{chunk-MZQP7CIL.js → chunk-GONK2N7U.js} +1 -1
- package/dist/cli/{chunk-TLTKAJ6S.mjs → chunk-HGI6RGHB.mjs} +653 -5
- package/dist/cli/{chunk-K2CQ2RBJ.js → chunk-IFIGQWHC.js} +6 -6
- package/dist/cli/{chunk-7ONALPWY.mjs → chunk-JUAVGRD7.mjs} +4 -4
- package/dist/cli/{chunk-GUIQWUCB.js → chunk-O7NNH76S.js} +6 -6
- package/dist/cli/{chunk-2IKIG333.js → chunk-QJBJZVG6.js} +15 -4
- package/dist/cli/{chunk-AKE6ZFIJ.js → chunk-QTCFSRGC.js} +4 -4
- package/dist/cli/{chunk-ZIF6JOOI.js → chunk-SRZ6XDX3.js} +26 -26
- package/dist/cli/{chunk-MPVXXDWH.mjs → chunk-T3P4NRZU.mjs} +1 -1
- package/dist/cli/{chunk-KCHBE2J3.js → chunk-TH3YBIJT.js} +852 -204
- package/dist/cli/{chunk-DF3XJ2V2.js → chunk-UGTYNMRX.js} +48 -48
- package/dist/cli/{chunk-76MFV3AC.js → chunk-WEZVPZPE.js} +2 -2
- package/dist/cli/{chunk-UABLQKTZ.mjs → chunk-WXLOW623.mjs} +11 -0
- package/dist/cli/{chunk-ILOCS73R.mjs → chunk-XFYVL7EM.mjs} +2 -2
- package/dist/cli/{chunk-BDFVIOLY.mjs → chunk-XSDL3NHZ.mjs} +3 -3
- package/dist/cli/{chunk-JNHXSZPB.js → chunk-YEJMVAD3.js} +6 -6
- package/dist/cli/{chunk-QACDLYNO.mjs → chunk-YSZSERRZ.mjs} +1 -1
- package/dist/cli/{chunk-IVXD2KA2.js → chunk-ZHHF24O5.js} +15 -15
- package/dist/cli/client-3J76AMVE.js +20 -0
- package/dist/cli/{client-7ZL4ROII.mjs → client-A5ILG5GT.mjs} +3 -3
- package/dist/cli/{csv-Y3LYCTGD.mjs → csv-NZ7KAYEF.mjs} +3 -3
- package/dist/cli/{csv-JUDFG7JV.js → csv-VSSAAXFX.js} +12 -12
- package/dist/cli/{db-5IXGEXNT.js → db-ICLEBSNO.js} +20 -20
- package/dist/cli/{db-GCOJD2BD.mjs → db-YSAJUBLD.mjs} +4 -4
- package/dist/cli/{executions-FIICTMSY.mjs → executions-MUJRAT5R.mjs} +4 -4
- package/dist/cli/{executions-LIEQKFT7.js → executions-XCAJB5TF.js} +6 -6
- package/dist/cli/{feedback-3OVAA3C7.mjs → feedback-6C7Y2SCJ.mjs} +3 -3
- package/dist/cli/{feedback-FAADYNAR.js → feedback-DBZMBHZG.js} +6 -6
- package/dist/cli/git-2NSE4WIK.js +23 -0
- package/dist/cli/{git-ESMYCYJO.mjs → git-EAH67ITA.mjs} +4 -4
- package/dist/cli/index.js +79 -77
- package/dist/cli/index.mjs +33 -31
- package/dist/cli/{legacy-noops-PKI3RFZW.js → legacy-noops-EJTOLTVO.js} +7 -7
- package/dist/cli/{legacy-noops-KP5CPZRK.mjs → legacy-noops-O5INQP6Q.mjs} +4 -4
- package/dist/cli/{monitors-KCFBLAFZ.js → monitors-5OYO2DPJ.js} +85 -85
- package/dist/cli/{monitors-A6KGGSBO.mjs → monitors-SBBBMUFY.mjs} +4 -4
- package/dist/cli/{org-WI6DEXZQ.js → org-SJRPJG42.js} +60 -60
- package/dist/cli/{org-DHI24UOK.mjs → org-Z7LTOL3H.mjs} +4 -4
- package/dist/cli/{play-2YXLQD24.mjs → play-2JTIEOZM.mjs} +472 -55
- package/dist/cli/{play-4EUUN76H.js → play-VQJ6ABZ2.js} +961 -544
- package/dist/cli/{providers-DWS3XIM6.js → providers-43MR5XOV.js} +7 -7
- package/dist/cli/{providers-2WZ6KHH2.mjs → providers-MX4CV2EH.mjs} +4 -4
- package/dist/cli/{quickstart-TDTDKM6F.js → quickstart-A6W3HEE2.js} +5 -5
- package/dist/cli/{quickstart-ZFZVG6UO.mjs → quickstart-Y4YLKRZ3.mjs} +3 -3
- package/dist/cli/{search-GMPXRQF4.js → search-AMUFSAFP.js} +6 -6
- package/dist/cli/{search-BBE2ZMCI.mjs → search-FRKDLJQG.mjs} +5 -5
- package/dist/cli/{secrets-JEJL3KIM.mjs → secrets-E4EX7O3J.mjs} +4 -4
- package/dist/cli/{secrets-SMBX4IE6.js → secrets-XITHKZW2.js} +13 -13
- package/dist/cli/{sessions-S6AWG747.js → sessions-6HJFDIR2.js} +5 -5
- package/dist/cli/{sessions-AVU353UT.mjs → sessions-6YXAUJII.mjs} +4 -4
- package/dist/cli/{settings-KBW4ROHC.js → settings-J5NRLCV2.js} +74 -74
- package/dist/cli/{settings-GY5CYRLF.mjs → settings-LBJSZIET.mjs} +7 -7
- package/dist/cli/{setup-WSVIDSEV.js → setup-2ES4CTO5.js} +41 -41
- package/dist/cli/{setup-4CW3XGGX.mjs → setup-75FENNVH.mjs} +6 -6
- package/dist/cli/skills-VLTAVA4K.js +28 -0
- package/dist/cli/{skills-U3NXFSFK.mjs → skills-XGZDUXW6.mjs} +4 -4
- package/dist/cli/{tools-XU6KLJZT.mjs → tools-2LEKXOGY.mjs} +58 -42
- package/dist/cli/{tools-KZKELW25.js → tools-ZOQOGDKI.js} +111 -95
- package/dist/cli/update-5CZOVYQT.js +28 -0
- package/dist/cli/{update-RZLH46DR.mjs → update-SNK3IN3I.mjs} +6 -6
- package/dist/cli/{workflow-ZQUKQI35.mjs → workflow-G7ZM3MAC.mjs} +5 -5
- package/dist/cli/{workflow-GDOGDGTZ.js → workflow-W3AYTB3J.js} +15 -15
- package/dist/{client-Dj8MAkDc.d.mts → client-DpnkGBn-.d.mts} +324 -11
- package/dist/{client-DsrFGXJf.d.ts → client-ypdBvf1o.d.ts} +324 -11
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -6
- package/dist/index.mjs +5 -3
- package/dist/install-integrity.json +73 -72
- 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-TUQTQIH4.js +0 -31
- package/dist/cli/client-S3MIFPM2.js +0 -20
- package/dist/cli/git-GG6LWE2R.js +0 -23
- package/dist/cli/skills-6AU3RRAD.js +0 -28
- package/dist/cli/update-LVXXQF4A.js +0 -28
package/dist/cli/index.js
CHANGED
|
@@ -9,8 +9,8 @@ var _chunkAYHLUHE5js = require('./chunk-AYHLUHE5.js');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
13
|
-
require('./chunk-
|
|
12
|
+
var _chunkZHHF24O5js = require('./chunk-ZHHF24O5.js');
|
|
13
|
+
require('./chunk-WEZVPZPE.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -23,7 +23,7 @@ require('./chunk-76MFV3AC.js');
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkGBFIAI4Ljs = require('./chunk-GBFIAI4L.js');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
|
|
@@ -31,24 +31,25 @@ var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var _chunk2IKIG333js = require('./chunk-2IKIG333.js');
|
|
35
34
|
|
|
35
|
+
var _chunkQJBJZVG6js = require('./chunk-QJBJZVG6.js');
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var _chunkJNHXSZPBjs = require('./chunk-JNHXSZPB.js');
|
|
42
41
|
|
|
42
|
+
var _chunkYEJMVAD3js = require('./chunk-YEJMVAD3.js');
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
|
|
50
|
+
var _chunkQTCFSRGCjs = require('./chunk-QTCFSRGC.js');
|
|
50
51
|
require('./chunk-XNYIZMNQ.js');
|
|
51
|
-
require('./chunk-
|
|
52
|
+
require('./chunk-GONK2N7U.js');
|
|
52
53
|
require('./chunk-7P5AA3SN.js');
|
|
53
54
|
require('./chunk-OG64RBAC.js');
|
|
54
55
|
require('./chunk-COGTRVWW.js');
|
|
@@ -63,44 +64,44 @@ var _commander = require('commander');
|
|
|
63
64
|
var COMMAND_GROUPS = [
|
|
64
65
|
{
|
|
65
66
|
names: ["auth"],
|
|
66
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
67
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-LWNR7TQB.js")))).registerAuthCommands
|
|
67
68
|
},
|
|
68
69
|
{
|
|
69
70
|
names: ["providers"],
|
|
70
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-
|
|
71
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-43MR5XOV.js")))).registerProviderCommands
|
|
71
72
|
},
|
|
72
73
|
{
|
|
73
74
|
names: ["search"],
|
|
74
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-
|
|
75
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-AMUFSAFP.js")))).registerSearchCommand
|
|
75
76
|
},
|
|
76
77
|
{
|
|
77
78
|
names: ["tools"],
|
|
78
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
79
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-ZOQOGDKI.js")))).registerToolsCommands
|
|
79
80
|
},
|
|
80
81
|
{
|
|
81
82
|
names: ["executions"],
|
|
82
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-
|
|
83
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-XCAJB5TF.js")))).registerExecutionsCommands
|
|
83
84
|
},
|
|
84
85
|
{
|
|
85
86
|
names: ["plays", "runs"],
|
|
86
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
87
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-VQJ6ABZ2.js")))).registerPlayCommands
|
|
87
88
|
},
|
|
88
89
|
{
|
|
89
90
|
names: ["sessions"],
|
|
90
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-
|
|
91
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-6HJFDIR2.js")))).registerSessionsCommands
|
|
91
92
|
},
|
|
92
93
|
{
|
|
93
94
|
names: ["workflows"],
|
|
94
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-
|
|
95
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-W3AYTB3J.js")))).registerWorkflowCommands
|
|
95
96
|
},
|
|
96
97
|
{
|
|
97
98
|
names: ["secrets"],
|
|
98
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-
|
|
99
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-XITHKZW2.js")))).registerSecretsCommands
|
|
99
100
|
},
|
|
100
101
|
{
|
|
101
102
|
names: ["settings", "notifications"],
|
|
102
103
|
load: async () => {
|
|
103
|
-
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-
|
|
104
|
+
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-J5NRLCV2.js")));
|
|
104
105
|
return (p) => {
|
|
105
106
|
commands.registerSettingsCommands(p);
|
|
106
107
|
commands.registerNotificationCommands(p);
|
|
@@ -109,51 +110,51 @@ var COMMAND_GROUPS = [
|
|
|
109
110
|
},
|
|
110
111
|
{
|
|
111
112
|
names: ["billing"],
|
|
112
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-
|
|
113
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-H24FGAKE.js")))).registerBillingCommands
|
|
113
114
|
},
|
|
114
115
|
{
|
|
115
116
|
names: ["monitors"],
|
|
116
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-
|
|
117
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-5OYO2DPJ.js")))).registerMonitorsCommands
|
|
117
118
|
},
|
|
118
119
|
{
|
|
119
120
|
names: ["org"],
|
|
120
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-
|
|
121
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-SJRPJG42.js")))).registerOrgCommands
|
|
121
122
|
},
|
|
122
123
|
{
|
|
123
124
|
names: ["git", "projects", "deployments"],
|
|
124
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-
|
|
125
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-2NSE4WIK.js")))).registerGitCommands
|
|
125
126
|
},
|
|
126
127
|
{
|
|
127
128
|
names: ["csv"],
|
|
128
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-
|
|
129
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-VSSAAXFX.js")))).registerCsvCommands
|
|
129
130
|
},
|
|
130
131
|
{
|
|
131
132
|
names: ["db"],
|
|
132
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-
|
|
133
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-ICLEBSNO.js")))).registerDbCommands
|
|
133
134
|
},
|
|
134
135
|
{
|
|
135
136
|
names: ["feedback"],
|
|
136
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-
|
|
137
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-DBZMBHZG.js")))).registerFeedbackCommands
|
|
137
138
|
},
|
|
138
139
|
{
|
|
139
140
|
names: ["enrich", "session", "backend"],
|
|
140
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-
|
|
141
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-EJTOLTVO.js")))).registerDeprecatedCommands
|
|
141
142
|
},
|
|
142
143
|
{
|
|
143
144
|
names: ["update"],
|
|
144
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-
|
|
145
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-5CZOVYQT.js")))).registerUpdateCommand
|
|
145
146
|
},
|
|
146
147
|
{
|
|
147
148
|
names: ["skills", "skills-auto-sync"],
|
|
148
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-
|
|
149
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-VLTAVA4K.js")))).registerSkillsCommand
|
|
149
150
|
},
|
|
150
151
|
{
|
|
151
152
|
names: ["setup", "doctor"],
|
|
152
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-
|
|
153
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-2ES4CTO5.js")))).registerSetupCommands
|
|
153
154
|
},
|
|
154
155
|
{
|
|
155
156
|
names: ["quickstart"],
|
|
156
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-
|
|
157
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-A6W3HEE2.js")))).registerQuickstartCommands
|
|
157
158
|
}
|
|
158
159
|
];
|
|
159
160
|
async function registerDeeplineCommandGroups(program, requestedCommand) {
|
|
@@ -180,7 +181,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
|
|
|
180
181
|
async function reportAutoUpdateEvent(input) {
|
|
181
182
|
let apiKey = "";
|
|
182
183
|
try {
|
|
183
|
-
apiKey =
|
|
184
|
+
apiKey = _chunkQTCFSRGCjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
184
185
|
} catch (e2) {
|
|
185
186
|
return;
|
|
186
187
|
}
|
|
@@ -196,15 +197,15 @@ async function reportAutoUpdateEvent(input) {
|
|
|
196
197
|
headers: {
|
|
197
198
|
Authorization: `Bearer ${apiKey}`,
|
|
198
199
|
"Content-Type": "application/json",
|
|
199
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
200
|
+
"User-Agent": `deepline-ts-sdk/${_chunkQTCFSRGCjs.SDK_VERSION}`,
|
|
200
201
|
"X-Deepline-Client-Family": "sdk",
|
|
201
202
|
"X-Deepline-CLI-Family": "sdk",
|
|
202
|
-
"X-Deepline-CLI-Version":
|
|
203
|
-
"X-Deepline-SDK-Version":
|
|
203
|
+
"X-Deepline-CLI-Version": _chunkQTCFSRGCjs.SDK_VERSION,
|
|
204
|
+
"X-Deepline-SDK-Version": _chunkQTCFSRGCjs.SDK_VERSION
|
|
204
205
|
},
|
|
205
206
|
body: JSON.stringify({
|
|
206
207
|
event: input.event,
|
|
207
|
-
current_version: _optionalChain([input, 'access', _ => _.response, 'access', _2 => _2.current, 'optionalAccess', _3 => _3.trim, 'call', _4 => _4()]) ||
|
|
208
|
+
current_version: _optionalChain([input, 'access', _ => _.response, 'access', _2 => _2.current, 'optionalAccess', _3 => _3.trim, 'call', _4 => _4()]) || _chunkQTCFSRGCjs.SDK_VERSION,
|
|
208
209
|
target_version: input.response.latest,
|
|
209
210
|
reason: _optionalChain([input, 'access', _5 => _5.response, 'access', _6 => _6.auto_update, 'optionalAccess', _7 => _7.reason]),
|
|
210
211
|
command: _nullishCoalesce(input.response.command, () => ( null)),
|
|
@@ -223,7 +224,7 @@ function envTruthy(name) {
|
|
|
223
224
|
return value === "1" || value === "true" || value === "yes";
|
|
224
225
|
}
|
|
225
226
|
function shouldSkipSelfUpdate() {
|
|
226
|
-
return process.argv.includes("--json") || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !
|
|
227
|
+
return process.argv.includes("--json") || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkZHHF24O5js.shouldRunCliAutoUpdate.call(void 0, ) || _chunkGBFIAI4Ljs.isCiEnvironment.call(void 0, );
|
|
227
228
|
}
|
|
228
229
|
function parseSemver(version) {
|
|
229
230
|
const trimmed = _optionalChain([version, 'optionalAccess', _14 => _14.trim, 'call', _15 => _15()]);
|
|
@@ -253,7 +254,7 @@ function compareSemver(left, right) {
|
|
|
253
254
|
}
|
|
254
255
|
function isDowngradeAutoUpdateResponse(response) {
|
|
255
256
|
const target = _optionalChain([response, 'optionalAccess', _16 => _16.latest, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]);
|
|
256
|
-
const current = _optionalChain([response, 'optionalAccess', _19 => _19.current, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()]) ||
|
|
257
|
+
const current = _optionalChain([response, 'optionalAccess', _19 => _19.current, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()]) || _chunkQTCFSRGCjs.SDK_VERSION;
|
|
257
258
|
if (!target) return false;
|
|
258
259
|
return compareSemver(target, current) < 0;
|
|
259
260
|
}
|
|
@@ -292,7 +293,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl) {
|
|
|
292
293
|
}
|
|
293
294
|
if (isDowngradeAutoUpdateResponse(response)) {
|
|
294
295
|
const target = response.latest;
|
|
295
|
-
const current = _optionalChain([response, 'access', _24 => _24.current, 'optionalAccess', _25 => _25.trim, 'call', _26 => _26()]) ||
|
|
296
|
+
const current = _optionalChain([response, 'access', _24 => _24.current, 'optionalAccess', _25 => _25.trim, 'call', _26 => _26()]) || _chunkQTCFSRGCjs.SDK_VERSION;
|
|
296
297
|
process.stderr.write(
|
|
297
298
|
`Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
|
|
298
299
|
`
|
|
@@ -300,12 +301,12 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl) {
|
|
|
300
301
|
return false;
|
|
301
302
|
}
|
|
302
303
|
const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
|
|
303
|
-
const plan =
|
|
304
|
+
const plan = _chunkZHHF24O5js.resolveUpdatePlan.call(void 0, {
|
|
304
305
|
packageSpec,
|
|
305
306
|
requireVerifiedNpmOwnership: true,
|
|
306
307
|
npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
|
|
307
308
|
});
|
|
308
|
-
if (!
|
|
309
|
+
if (!_chunkZHHF24O5js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
|
|
309
310
|
return false;
|
|
310
311
|
}
|
|
311
312
|
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";
|
|
@@ -319,7 +320,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl) {
|
|
|
319
320
|
event: "started",
|
|
320
321
|
installKind: plan.kind
|
|
321
322
|
});
|
|
322
|
-
const updateResult = await
|
|
323
|
+
const updateResult = await _chunkZHHF24O5js.runAutomaticUpdatePlan.call(void 0, plan);
|
|
323
324
|
if (updateResult.status === "skipped_previous_failure") {
|
|
324
325
|
void reportAutoUpdateEvent({
|
|
325
326
|
baseUrl,
|
|
@@ -456,7 +457,7 @@ async function runPlayRunnerHealthCheck() {
|
|
|
456
457
|
});
|
|
457
458
|
let exitCode = 1;
|
|
458
459
|
try {
|
|
459
|
-
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
460
|
+
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-VQJ6ABZ2.js")));
|
|
460
461
|
exitCode = await handlePlayRun([
|
|
461
462
|
file,
|
|
462
463
|
"--input",
|
|
@@ -496,7 +497,7 @@ function preflightErrorMessage(error) {
|
|
|
496
497
|
return error instanceof Error ? error.message : String(error);
|
|
497
498
|
}
|
|
498
499
|
async function runPreflightCheck() {
|
|
499
|
-
const baseUrl =
|
|
500
|
+
const baseUrl = _chunkQTCFSRGCjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
500
501
|
const healthController = new AbortController();
|
|
501
502
|
const healthTimeout = setTimeout(
|
|
502
503
|
() => healthController.abort(),
|
|
@@ -511,9 +512,9 @@ async function runPreflightCheck() {
|
|
|
511
512
|
version: pickString(payload, "version")
|
|
512
513
|
};
|
|
513
514
|
}).catch(() => ({ status: "unreachable", version: null })).finally(() => clearTimeout(healthTimeout));
|
|
514
|
-
const apiKey =
|
|
515
|
-
const http = apiKey ? new (0,
|
|
516
|
-
|
|
515
|
+
const apiKey = _chunkQTCFSRGCjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
516
|
+
const http = apiKey ? new (0, _chunkQTCFSRGCjs.HttpClient)(
|
|
517
|
+
_chunkQTCFSRGCjs.resolveConfig.call(void 0, {
|
|
517
518
|
baseUrl,
|
|
518
519
|
apiKey,
|
|
519
520
|
timeout: PREFLIGHT_TIMEOUT_MS,
|
|
@@ -605,12 +606,12 @@ function printPreflightHuman(data) {
|
|
|
605
606
|
}
|
|
606
607
|
async function newerCliCommandHint(baseUrl, command) {
|
|
607
608
|
if (!command.trim()) return null;
|
|
608
|
-
const { response, error } = await
|
|
609
|
+
const { response, error } = await _chunkGBFIAI4Ljs.checkSdkCompatibility.call(void 0, baseUrl, { command });
|
|
609
610
|
if (error || !response) return null;
|
|
610
611
|
const introduced = response.command_introduced_in;
|
|
611
612
|
if (introduced) {
|
|
612
613
|
return [
|
|
613
|
-
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${
|
|
614
|
+
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunkQTCFSRGCjs.SDK_VERSION}.`,
|
|
614
615
|
` ${introduced.reason}`,
|
|
615
616
|
` Update with: ${response.update_command}`,
|
|
616
617
|
" Agent skills are served by Deepline and refresh on their own, so a skill can describe a command this CLI does not have yet."
|
|
@@ -619,7 +620,7 @@ async function newerCliCommandHint(baseUrl, command) {
|
|
|
619
620
|
if (!response.update_required) return null;
|
|
620
621
|
return [
|
|
621
622
|
response.message,
|
|
622
|
-
` Installed: ${
|
|
623
|
+
` Installed: ${_chunkQTCFSRGCjs.SDK_VERSION}. Run: ${response.update_command}`,
|
|
623
624
|
" If an agent skill told you to run this, the skill is newer than this CLI."
|
|
624
625
|
].join("\n");
|
|
625
626
|
}
|
|
@@ -630,7 +631,7 @@ async function runMain(ensureTransport) {
|
|
|
630
631
|
argv: process.argv.slice(2)
|
|
631
632
|
});
|
|
632
633
|
if (process.stdout.isTTY && !process.argv.includes("--json")) {
|
|
633
|
-
for (const message of
|
|
634
|
+
for (const message of _chunkZHHF24O5js.consumePendingCliUpdateMessages.call(void 0, )) {
|
|
634
635
|
process.stderr.write(`Deepline CLI update: ${message}
|
|
635
636
|
`);
|
|
636
637
|
}
|
|
@@ -643,7 +644,7 @@ async function runMain(ensureTransport) {
|
|
|
643
644
|
const program = new (0, _commander.Command)();
|
|
644
645
|
program.name("deepline").description(
|
|
645
646
|
"Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
|
|
646
|
-
).version(
|
|
647
|
+
).version(_chunkQTCFSRGCjs.SDK_VERSION, "-v, --version", "Show version").exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
|
|
647
648
|
"beforeAll",
|
|
648
649
|
"for agents: ensure you are using the /deepline-gtm skill\n"
|
|
649
650
|
).addHelpText(
|
|
@@ -684,29 +685,29 @@ Exit codes:
|
|
|
684
685
|
if (actionCommand.name() !== "version") {
|
|
685
686
|
await ensureTransport();
|
|
686
687
|
}
|
|
687
|
-
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() ===
|
|
688
|
+
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunkGBFIAI4Ljs.SKILLS_AUTO_SYNC_COMMAND || actionCommand.name() === "doctor" || isAutoUpdateSettingsInvocation() || isDeprecatedCommandInvocation()) {
|
|
688
689
|
return;
|
|
689
690
|
}
|
|
690
691
|
const compatibilityCommand = compatibilityCommandPath(actionCommand) || actionCommand.name();
|
|
691
692
|
const isToolExecuteCommand = compatibilityCommand === "tools execute";
|
|
692
693
|
if (isToolExecuteCommand) {
|
|
693
|
-
|
|
694
|
+
_chunkQJBJZVG6js.beginToolExecuteCommand.call(void 0, );
|
|
694
695
|
}
|
|
695
|
-
const runStartupStage = (stage, action) => isToolExecuteCommand ?
|
|
696
|
+
const runStartupStage = (stage, action) => isToolExecuteCommand ? _chunkQJBJZVG6js.runToolExecuteStage.call(void 0, stage, action) : Promise.resolve(action());
|
|
696
697
|
if (printStartupPhase) {
|
|
697
698
|
_optionalChain([progress, 'optionalAccess', _34 => _34.phase, 'call', _35 => _35("checking sdk compatibility")]);
|
|
698
699
|
}
|
|
699
700
|
const startup = await runStartupStage("SDK compatibility", async () => {
|
|
700
|
-
const baseUrl =
|
|
701
|
-
|
|
701
|
+
const baseUrl = _chunkQTCFSRGCjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
702
|
+
_chunkGBFIAI4Ljs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
702
703
|
const shouldDeferSkillsSync = shouldDeferSkillsSyncForCommand();
|
|
703
|
-
const skillsVersion = shouldDeferSkillsSync ? void 0 :
|
|
704
|
-
const trusted =
|
|
704
|
+
const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunkQTCFSRGCjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
705
|
+
const trusted = _chunkGBFIAI4Ljs.readTrustedCleanCompatibility.call(void 0,
|
|
705
706
|
baseUrl,
|
|
706
707
|
compatibilityCommand,
|
|
707
708
|
skillsVersion
|
|
708
709
|
);
|
|
709
|
-
const fastDeadline = trusted === null &&
|
|
710
|
+
const fastDeadline = trusted === null && _chunkGBFIAI4Ljs.readFreshCleanCompatibility.call(void 0,
|
|
710
711
|
baseUrl,
|
|
711
712
|
compatibilityCommand,
|
|
712
713
|
skillsVersion
|
|
@@ -730,10 +731,11 @@ Exit codes:
|
|
|
730
731
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null)),
|
|
731
732
|
fastDeadline
|
|
732
733
|
},
|
|
733
|
-
() =>
|
|
734
|
+
() => _chunkGBFIAI4Ljs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
734
735
|
command: compatibilityCommand,
|
|
735
736
|
skillsVersion,
|
|
736
|
-
|
|
737
|
+
catalog: _chunkQJBJZVG6js.compatibilityCatalog.call(void 0, actionCommand),
|
|
738
|
+
...fastDeadline ? { timeoutMs: _chunkGBFIAI4Ljs.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
|
|
737
739
|
})
|
|
738
740
|
);
|
|
739
741
|
if (compatibility.error) {
|
|
@@ -756,7 +758,7 @@ Exit codes:
|
|
|
756
758
|
response: compatibility.response
|
|
757
759
|
};
|
|
758
760
|
}
|
|
759
|
-
|
|
761
|
+
_chunkGBFIAI4Ljs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
760
762
|
quietAdvisory: process.argv.includes("--json")
|
|
761
763
|
});
|
|
762
764
|
return {
|
|
@@ -777,7 +779,7 @@ Exit codes:
|
|
|
777
779
|
() => _chunkAYHLUHE5js.traceCliSpan.call(void 0,
|
|
778
780
|
"cli.sdk_skills_sync",
|
|
779
781
|
{ baseUrl: startup.baseUrl },
|
|
780
|
-
() =>
|
|
782
|
+
() => _chunkGBFIAI4Ljs.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
|
|
781
783
|
update: skillsUpdate,
|
|
782
784
|
mode: "detached"
|
|
783
785
|
})
|
|
@@ -803,8 +805,8 @@ Examples:
|
|
|
803
805
|
`
|
|
804
806
|
).action(async (options) => {
|
|
805
807
|
const data = await runPreflightCheck();
|
|
806
|
-
if (
|
|
807
|
-
|
|
808
|
+
if (_chunkYEJMVAD3js.shouldEmitJson.call(void 0, options.json)) {
|
|
809
|
+
_chunkYEJMVAD3js.printJson.call(void 0, data);
|
|
808
810
|
} else {
|
|
809
811
|
printPreflightHuman(data);
|
|
810
812
|
}
|
|
@@ -829,13 +831,13 @@ Examples:
|
|
|
829
831
|
try {
|
|
830
832
|
if (options.playRunner) {
|
|
831
833
|
const data2 = await runPlayRunnerHealthCheck();
|
|
832
|
-
|
|
834
|
+
_chunkYEJMVAD3js.printJson.call(void 0, data2);
|
|
833
835
|
return;
|
|
834
836
|
}
|
|
835
|
-
const { DeeplineClient } = await Promise.resolve().then(() => _interopRequireWildcard(require("./client-
|
|
837
|
+
const { DeeplineClient } = await Promise.resolve().then(() => _interopRequireWildcard(require("./client-3J76AMVE.js")));
|
|
836
838
|
const client = new DeeplineClient();
|
|
837
839
|
const data = await client.health();
|
|
838
|
-
|
|
840
|
+
_chunkYEJMVAD3js.printJson.call(void 0, data);
|
|
839
841
|
} catch (error) {
|
|
840
842
|
throw new Error(
|
|
841
843
|
`Cannot reach Deepline API: ${error instanceof Error ? error.message : String(error)}`
|
|
@@ -856,15 +858,15 @@ Examples:
|
|
|
856
858
|
`
|
|
857
859
|
).option("--json", "Emit JSON output").action((options) => {
|
|
858
860
|
if (options.json) {
|
|
859
|
-
|
|
861
|
+
_chunkYEJMVAD3js.printCompactJson.call(void 0, { version: _chunkQTCFSRGCjs.SDK_VERSION });
|
|
860
862
|
return;
|
|
861
863
|
}
|
|
862
|
-
process.stdout.write(`deepline ${
|
|
864
|
+
process.stdout.write(`deepline ${_chunkQTCFSRGCjs.SDK_VERSION}
|
|
863
865
|
`);
|
|
864
866
|
});
|
|
865
867
|
if (process.argv.slice(2).length === 0) {
|
|
866
868
|
if (!process.stdout.isTTY) {
|
|
867
|
-
|
|
869
|
+
_chunkYEJMVAD3js.printJson.call(void 0, {
|
|
868
870
|
ok: false,
|
|
869
871
|
exitCode: 2,
|
|
870
872
|
code: "MISSING_COMMAND",
|
|
@@ -888,7 +890,7 @@ Examples:
|
|
|
888
890
|
const requestedTopLevelCommand = _nullishCoalesce(process.argv.slice(2)[0], () => ( ""));
|
|
889
891
|
if (!topLevelCommandKnown(program, requestedTopLevelCommand)) {
|
|
890
892
|
console.error(`error: unknown command '${requestedTopLevelCommand}'`);
|
|
891
|
-
const baseUrl =
|
|
893
|
+
const baseUrl = _chunkQTCFSRGCjs.autoDetectBaseUrl.call(void 0, );
|
|
892
894
|
await ensureTransport();
|
|
893
895
|
const versionHint = await newerCliCommandHint(
|
|
894
896
|
baseUrl,
|
|
@@ -909,7 +911,7 @@ Examples:
|
|
|
909
911
|
ms: Date.now() - mainStartedAt,
|
|
910
912
|
ok: true
|
|
911
913
|
});
|
|
912
|
-
await
|
|
914
|
+
await _chunkGBFIAI4Ljs.maybeReportSdkCliFailure.call(void 0, {
|
|
913
915
|
argv: process.argv.slice(2),
|
|
914
916
|
startedAtMs: mainStartedAt,
|
|
915
917
|
exitCode: typeof process.exitCode === "number" ? process.exitCode : null
|
|
@@ -930,25 +932,25 @@ Examples:
|
|
|
930
932
|
process.exitCode = commanderError.code === "commander.unknownCommand" && !wantsJson ? 2 : _nullishCoalesce(commanderError.exitCode, () => ( 1));
|
|
931
933
|
return;
|
|
932
934
|
} else if (wantsJson) {
|
|
933
|
-
|
|
935
|
+
_chunkYEJMVAD3js.printJsonError.call(void 0, error);
|
|
934
936
|
} else if (error instanceof Error) {
|
|
935
937
|
console.error(`Error: ${error.message}`);
|
|
936
|
-
const providerConcurrency =
|
|
938
|
+
const providerConcurrency = _chunkYEJMVAD3js.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
937
939
|
if (providerConcurrency) console.error(providerConcurrency);
|
|
938
940
|
} else {
|
|
939
941
|
console.error(`Error: ${String(error)}`);
|
|
940
942
|
}
|
|
941
943
|
const explicitExitCode = error && typeof error === "object" && typeof error.exitCode === "number" ? error.exitCode : void 0;
|
|
942
|
-
const failureExitCode = _nullishCoalesce(explicitExitCode, () => (
|
|
944
|
+
const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunkGBFIAI4Ljs.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
943
945
|
process.exitCode = failureExitCode;
|
|
944
|
-
await
|
|
946
|
+
await _chunkGBFIAI4Ljs.maybeReportSdkCliFailure.call(void 0, {
|
|
945
947
|
argv: process.argv.slice(2),
|
|
946
948
|
startedAtMs: mainStartedAt,
|
|
947
949
|
exitCode: failureExitCode,
|
|
948
950
|
error
|
|
949
951
|
});
|
|
950
952
|
} finally {
|
|
951
|
-
|
|
953
|
+
_chunkQJBJZVG6js.finishToolExecuteCommand.call(void 0, );
|
|
952
954
|
}
|
|
953
955
|
process.exitCode = _nullishCoalesce(process.exitCode, () => ( 0));
|
|
954
956
|
}
|