deepline 0.3.533 → 0.3.534
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-core.ts +46 -7
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +19 -1
- package/dist/bundling-sources/shared_libs/play-runtime/execution-capabilities.ts +26 -0
- package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +32 -14
- package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +8 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +21 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-cache-policy.ts +12 -1
- package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +2 -0
- package/dist/cli/{auth-2TZNPIJQ.mjs → auth-MHQYIMVX.mjs} +5 -5
- package/dist/cli/auth-UP2RGPI6.js +43 -0
- package/dist/cli/{billing-LR4WJIHO.mjs → billing-LX2PSBJ4.mjs} +7 -7
- package/dist/cli/{billing-HQYTRIV3.js → billing-YQLNP4S5.js} +82 -82
- package/dist/cli/{chunk-NFDYVMGC.mjs → chunk-2P3NVX65.mjs} +68 -13
- package/dist/cli/{chunk-EVXRQXNV.mjs → chunk-5FXMEEF4.mjs} +35 -0
- package/dist/cli/{chunk-NW736SOD.mjs → chunk-5LZ5VSOK.mjs} +2 -2
- package/dist/cli/{chunk-2UYERVXF.mjs → chunk-62SOZ67Y.mjs} +2 -2
- package/dist/cli/{chunk-R7YDZSN7.js → chunk-6CEUQYMB.js} +3 -3
- package/dist/cli/{chunk-PIACHLYY.mjs → chunk-6GTGWZJG.mjs} +2 -2
- package/dist/cli/{chunk-NKVW552R.mjs → chunk-6IFZPEJE.mjs} +1 -1
- package/dist/cli/{chunk-KKUOIVQO.mjs → chunk-7GFR5Y4J.mjs} +1 -1
- package/dist/cli/{chunk-274Y66HP.js → chunk-A6HNT4EE.js} +2 -2
- package/dist/cli/{chunk-YZK5RSUL.mjs → chunk-AK622KIG.mjs} +1 -1
- package/dist/cli/{chunk-33SNTG5F.js → chunk-B2AS3R5W.js} +16 -16
- package/dist/cli/{chunk-USAQ42OG.mjs → chunk-BDWZBMGV.mjs} +5 -5
- package/dist/cli/{chunk-CANHB6DH.mjs → chunk-BXIUZM5N.mjs} +2 -2
- package/dist/cli/{chunk-WF652G74.js → chunk-D3J2Y2BP.js} +14 -14
- package/dist/cli/{chunk-SVVUC3B4.js → chunk-DGKTHWWH.js} +122 -104
- package/dist/cli/{chunk-G3RVDRYL.mjs → chunk-DQ5ADV2J.mjs} +1 -1
- package/dist/cli/{chunk-A4JP6RPX.js → chunk-DZS4JC7I.js} +2 -2
- package/dist/cli/{chunk-IETLUG4C.mjs → chunk-E7TP25I2.mjs} +1 -1
- package/dist/cli/{chunk-QZWURUBP.js → chunk-EGTUOYYG.js} +7 -7
- package/dist/cli/{chunk-LZMRCUVD.mjs → chunk-ENCA6O2D.mjs} +2 -2
- package/dist/cli/{chunk-BSI7UHQZ.mjs → chunk-EYXUAJAU.mjs} +5 -5
- package/dist/cli/{chunk-LTF2J3JM.js → chunk-GTXSUPCJ.js} +2 -2
- package/dist/cli/{chunk-5XTXC45Z.js → chunk-GVGQ6NZW.js} +41 -41
- package/dist/cli/{chunk-425ERNBL.js → chunk-HCD36BP6.js} +44 -44
- package/dist/cli/{chunk-BWZHMWM5.js → chunk-HPJAE6PP.js} +6 -6
- package/dist/cli/{chunk-735ZOYQN.js → chunk-IX45S5VC.js} +11 -11
- package/dist/cli/{chunk-352XVCGE.js → chunk-JBBJDFUJ.js} +5 -5
- package/dist/cli/{chunk-2TMNRF5R.mjs → chunk-KJVY7V2X.mjs} +1 -1
- package/dist/cli/{chunk-MNAEALPG.js → chunk-KSA2XE4T.js} +182 -127
- package/dist/cli/{chunk-CWIGRIIX.mjs → chunk-KXQCUX3X.mjs} +3 -3
- package/dist/cli/{chunk-E4VWBU2E.js → chunk-LGRZCHKC.js} +16 -16
- package/dist/cli/{chunk-XZN3DBTP.mjs → chunk-MG6YL4M7.mjs} +24 -6
- package/dist/cli/{chunk-4CYNH47Y.js → chunk-MQORQ7WL.js} +53 -53
- package/dist/cli/{chunk-HOTJSXLY.js → chunk-MQX363YF.js} +5 -5
- package/dist/cli/{chunk-TU56J4OV.js → chunk-MYSKWJMA.js} +13 -13
- package/dist/cli/{chunk-4YP2YAIZ.js → chunk-NDFNBJGL.js} +26 -26
- package/dist/cli/{chunk-JZ7LJS3P.mjs → chunk-NNAE7E23.mjs} +6 -6
- package/dist/cli/{chunk-LZ3PBEQH.mjs → chunk-O53LHONF.mjs} +2 -2
- package/dist/cli/{chunk-VKGNQC2S.mjs → chunk-OMVVHX4U.mjs} +5 -5
- package/dist/cli/{chunk-ZH5HCAN3.js → chunk-RH3YRMUY.js} +1 -1
- package/dist/cli/{chunk-V6LUMGVI.js → chunk-SUWTLXCV.js} +35 -0
- package/dist/cli/{chunk-MKUYZ7LR.mjs → chunk-TG2UB3A5.mjs} +1 -1
- package/dist/cli/{chunk-G3GJ3IGU.mjs → chunk-TQH3533L.mjs} +5 -5
- package/dist/cli/{chunk-B4ZNWXUW.js → chunk-TVINIDHB.js} +9 -9
- package/dist/cli/{chunk-O7RSUW75.js → chunk-UWNVFAFN.js} +4 -4
- package/dist/cli/{chunk-VPQDKL5O.js → chunk-V7SCRUFQ.js} +6 -6
- package/dist/cli/{chunk-HPOVAUQF.mjs → chunk-VAG5YKP6.mjs} +1 -1
- package/dist/cli/{chunk-4UADZTU5.js → chunk-VE7ZPLN2.js} +22 -22
- package/dist/cli/{chunk-XUX5KGCQ.mjs → chunk-WDNRPZED.mjs} +2 -2
- package/dist/cli/{chunk-3O3AL5RI.mjs → chunk-WR4WETRU.mjs} +4 -4
- package/dist/cli/{chunk-EYWES7F5.js → chunk-XBK6WCVA.js} +3 -3
- package/dist/cli/{chunk-3KQBV2CG.mjs → chunk-XRZJKHUA.mjs} +3 -3
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-CJKKHGNQ.mjs → csv-4ID4E5W3.mjs} +4 -4
- package/dist/cli/{csv-MBSCHS4H.js → csv-U3M2G76R.js} +13 -13
- package/dist/cli/{db-45HNPCY3.js → db-IHAQIKEQ.js} +27 -27
- package/dist/cli/{db-EAFR6N45.mjs → db-LHX5BBCZ.mjs} +6 -6
- package/dist/cli/{describe-IXW3LDGC.mjs → describe-CI4MREFF.mjs} +18 -18
- package/dist/cli/describe-IVTSD7ST.js +50 -0
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-SZAES2S4.js → executions-CJ5LV23G.js} +8 -8
- package/dist/cli/{executions-ZATZV7O6.mjs → executions-UJ6JZUL5.mjs} +6 -6
- package/dist/cli/{feedback-KXLF4GR4.js → feedback-TGUBVGRP.js} +14 -14
- package/dist/cli/{feedback-NY63KEK2.mjs → feedback-YGTPJBRJ.mjs} +6 -6
- package/dist/cli/{git-BSSSTR6N.mjs → git-3DOTQHJO.mjs} +5 -5
- package/dist/cli/git-R3W25XIF.js +25 -0
- package/dist/cli/index.js +145 -145
- package/dist/cli/index.mjs +44 -44
- package/dist/cli/{legacy-noops-XQANGML3.js → legacy-noops-BHEHVFHI.js} +9 -9
- package/dist/cli/{legacy-noops-CYF6DJBF.mjs → legacy-noops-RBBYRVLG.mjs} +6 -6
- package/dist/cli/{monitors-ABJVLWIP.mjs → monitors-5AJCG6IV.mjs} +7 -7
- package/dist/cli/{monitors-F3PTNP45.js → monitors-XECKLAXA.js} +100 -100
- package/dist/cli/{org-WQAPZI5Q.js → org-DOBAIYWG.js} +86 -86
- package/dist/cli/{org-BHF6Y5R7.mjs → org-ZAAIEZKB.mjs} +6 -6
- package/dist/cli/{pages-W4HWVJUG.mjs → pages-FUOSF6BE.mjs} +6 -6
- package/dist/cli/{pages-U3EJ2NPL.js → pages-TLC2N6L7.js} +18 -18
- package/dist/cli/{play-2UHKONON.js → play-E74VN6B7.js} +317 -317
- package/dist/cli/{play-3T4X3ZKH.mjs → play-KLYRMQPF.mjs} +18 -18
- package/dist/cli/{providers-LUK5LIUA.js → providers-APZ6SOSK.js} +9 -9
- package/dist/cli/{providers-2G2VTNDG.mjs → providers-XTQXV5LB.mjs} +6 -6
- package/dist/cli/{quickstart-76P6PGID.js → quickstart-S6WN6NWW.js} +6 -6
- package/dist/cli/{quickstart-XP4PJZ7N.mjs → quickstart-X7RHHQCH.mjs} +4 -4
- package/dist/cli/{run-S2KHGBCM.js → run-3YLIJJ57.js} +41 -41
- package/dist/cli/{run-ACIHA53A.mjs → run-TZPBBSPX.mjs} +23 -23
- package/dist/cli/search-NB5CBALV.js +33 -0
- package/dist/cli/{search-VFIJCUZL.mjs → search-VLHE2CMZ.mjs} +8 -8
- package/dist/cli/{search-output-2KFLZS5F.mjs → search-output-73BYB7UE.mjs} +4 -4
- package/dist/cli/{search-output-GV7NNB4X.js → search-output-GCT7PQIT.js} +6 -6
- package/dist/cli/{secrets-KJSFEW2F.js → secrets-J6CEKXKQ.js} +15 -15
- package/dist/cli/{secrets-MAQLBVC4.mjs → secrets-RLOTGKQZ.mjs} +6 -6
- package/dist/cli/{sessions-G5MWNJ75.mjs → sessions-7HZ7OZ62.mjs} +6 -6
- package/dist/cli/sessions-SFCZSB77.js +22 -0
- package/dist/cli/{settings-MR6UFOK5.mjs → settings-72K5YCIS.mjs} +13 -13
- package/dist/cli/{settings-VXGRPFXP.js → settings-WRV5XEZC.js} +86 -86
- package/dist/cli/{setup-ZOBXMONM.mjs → setup-KQFY6WT4.mjs} +10 -10
- package/dist/cli/{setup-C74BRK7N.js → setup-QVXWT2EQ.js} +50 -50
- package/dist/cli/{skills-4CG3MHOY.mjs → skills-C3K3E473.mjs} +8 -8
- package/dist/cli/skills-WIJEHVLA.js +37 -0
- package/dist/cli/{tools-YXCXZ4ZD.mjs → tools-4A2OH6MB.mjs} +17 -17
- package/dist/cli/tools-VMMERMLO.js +57 -0
- package/dist/cli/update-54WZQDTS.js +35 -0
- package/dist/cli/{update-Z3C5W3I4.mjs → update-BS6USKPR.mjs} +10 -10
- package/dist/cli/{views-XGP2GZ52.js → views-4NZGAXHL.js} +18 -18
- package/dist/cli/{views-45B2FZQT.mjs → views-WB6GFTRX.mjs} +6 -6
- package/dist/cli/{workflow-KQRWSNBH.mjs → workflow-2D4WX55R.mjs} +7 -7
- package/dist/cli/{workflow-DWO35XHZ.js → workflow-L2QTQZYV.js} +17 -17
- package/dist/{client-CBCVhL8U.d.ts → client-DQm56zMs.d.ts} +1 -1
- package/dist/{client-Bd2meveV.d.mts → client-DoUVSkqC.d.mts} +1 -1
- package/dist/{client-core-CsRRWCFy.d.ts → client-core-C7KkUIE_.d.ts} +32 -1
- package/dist/{client-core-CGj8V9mw.d.mts → client-core-CPlwsC1Q.d.mts} +32 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +110 -110
- 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/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-KE6RFHUE.js +0 -43
- package/dist/cli/describe-PYLZAVRI.js +0 -50
- package/dist/cli/git-T5JTVBYZ.js +0 -25
- package/dist/cli/search-5MD65V43.js +0 -33
- package/dist/cli/sessions-FDMO7PAA.js +0 -22
- package/dist/cli/skills-KRUL7QCT.js +0 -37
- package/dist/cli/tools-CGHOSCPS.js +0 -57
- package/dist/cli/update-S2TILEHZ.js +0 -35
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkEGTUOYYGjs = require('./chunk-EGTUOYYG.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkXBK6WCVAjs = require('./chunk-XBK6WCVA.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -32,11 +32,11 @@ function renderDeployment(deployment) {
|
|
|
32
32
|
return `${deployment.id} ${source} (${kind}) - ${deployment.status}${suffix}`;
|
|
33
33
|
}
|
|
34
34
|
async function handleList(options) {
|
|
35
|
-
const { http } =
|
|
35
|
+
const { http } = _chunkEGTUOYYGjs.getAuthedHttpClient.call(void 0, );
|
|
36
36
|
const payload = await http.get(
|
|
37
37
|
`/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
|
|
38
38
|
);
|
|
39
|
-
|
|
39
|
+
_chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
|
|
40
40
|
{
|
|
41
41
|
projects: payload.projects,
|
|
42
42
|
count: payload.projects.length,
|
|
@@ -73,7 +73,7 @@ function describeInstallationStatus(installation) {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
async function handleStatus(options) {
|
|
76
|
-
const { http } =
|
|
76
|
+
const { http } = _chunkEGTUOYYGjs.getAuthedHttpClient.call(void 0, );
|
|
77
77
|
const payload = await http.get("/api/v2/github/installation");
|
|
78
78
|
const installation = payload.installation;
|
|
79
79
|
const others = (_nullishCoalesce(payload.installations, () => ( []))).filter(
|
|
@@ -136,7 +136,7 @@ async function handleStatus(options) {
|
|
|
136
136
|
)
|
|
137
137
|
);
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
_chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
|
|
140
140
|
{
|
|
141
141
|
installation,
|
|
142
142
|
installations: _nullishCoalesce(payload.installations, () => ( [])),
|
|
@@ -147,10 +147,10 @@ async function handleStatus(options) {
|
|
|
147
147
|
);
|
|
148
148
|
}
|
|
149
149
|
async function handleRepos(options) {
|
|
150
|
-
const { http } =
|
|
150
|
+
const { http } = _chunkEGTUOYYGjs.getAuthedHttpClient.call(void 0, );
|
|
151
151
|
const query = options.installation ? `?installationId=${encodeURIComponent(options.installation)}` : "";
|
|
152
152
|
const payload = await http.get(`/api/v2/github/repos${query}`);
|
|
153
|
-
|
|
153
|
+
_chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
|
|
154
154
|
{
|
|
155
155
|
installation: payload.installation,
|
|
156
156
|
repositories: payload.repositories,
|
|
@@ -171,7 +171,7 @@ async function handleRepos(options) {
|
|
|
171
171
|
}
|
|
172
172
|
async function resolveRepoId(repo, installation) {
|
|
173
173
|
if (/^\d+$/.test(repo)) return Number(repo);
|
|
174
|
-
const { http } =
|
|
174
|
+
const { http } = _chunkEGTUOYYGjs.getAuthedHttpClient.call(void 0, );
|
|
175
175
|
const query = installation ? `?installationId=${encodeURIComponent(installation)}` : "";
|
|
176
176
|
const payload = await http.get(
|
|
177
177
|
`/api/v2/github/repos${query}`
|
|
@@ -188,7 +188,7 @@ async function resolveRepoId(repo, installation) {
|
|
|
188
188
|
}
|
|
189
189
|
async function handleLink(repo, options) {
|
|
190
190
|
const repoId = await resolveRepoId(repo, options.installation);
|
|
191
|
-
const { http } =
|
|
191
|
+
const { http } = _chunkEGTUOYYGjs.getAuthedHttpClient.call(void 0, );
|
|
192
192
|
const payload = await http.post("/api/v2/play-projects", {
|
|
193
193
|
repoId,
|
|
194
194
|
...options.installation !== void 0 ? { installationId: options.installation } : {},
|
|
@@ -197,7 +197,7 @@ async function handleLink(repo, options) {
|
|
|
197
197
|
...options.branch !== void 0 ? { productionBranch: options.branch } : {},
|
|
198
198
|
...options.prChecks !== void 0 ? { checkOnPullRequest: options.prChecks } : {}
|
|
199
199
|
});
|
|
200
|
-
|
|
200
|
+
_chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
|
|
201
201
|
{
|
|
202
202
|
project: payload.project,
|
|
203
203
|
render: {
|
|
@@ -220,11 +220,11 @@ async function handleLink(repo, options) {
|
|
|
220
220
|
);
|
|
221
221
|
}
|
|
222
222
|
async function handleGet(id, options) {
|
|
223
|
-
const { http } =
|
|
223
|
+
const { http } = _chunkEGTUOYYGjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
|
|
228
228
|
{
|
|
229
229
|
project: payload.project,
|
|
230
230
|
render: {
|
|
@@ -240,7 +240,7 @@ async function handleGet(id, options) {
|
|
|
240
240
|
);
|
|
241
241
|
}
|
|
242
242
|
async function handleSet(id, options) {
|
|
243
|
-
const { http } =
|
|
243
|
+
const { http } = _chunkEGTUOYYGjs.getAuthedHttpClient.call(void 0, );
|
|
244
244
|
const payload = await http.patch(
|
|
245
245
|
`/api/v2/play-projects/${encodeURIComponent(id)}`,
|
|
246
246
|
{
|
|
@@ -251,7 +251,7 @@ async function handleSet(id, options) {
|
|
|
251
251
|
...options.disabled !== void 0 ? { disabled: options.disabled } : {}
|
|
252
252
|
}
|
|
253
253
|
);
|
|
254
|
-
|
|
254
|
+
_chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
|
|
255
255
|
{
|
|
256
256
|
project: payload.project,
|
|
257
257
|
render: {
|
|
@@ -264,9 +264,9 @@ async function handleSet(id, options) {
|
|
|
264
264
|
);
|
|
265
265
|
}
|
|
266
266
|
async function handleUnlink(id, options) {
|
|
267
|
-
const { http } =
|
|
267
|
+
const { http } = _chunkEGTUOYYGjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
|
|
270
270
|
{
|
|
271
271
|
ok: true,
|
|
272
272
|
id,
|
|
@@ -286,10 +286,10 @@ async function handleUnlink(id, options) {
|
|
|
286
286
|
);
|
|
287
287
|
}
|
|
288
288
|
async function handleConnect(options) {
|
|
289
|
-
const baseUrl =
|
|
289
|
+
const baseUrl = _chunkXBK6WCVAjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkEGTUOYYGjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
|
|
293
293
|
{
|
|
294
294
|
connectUrl,
|
|
295
295
|
browser: opened,
|
|
@@ -311,7 +311,7 @@ async function handleConnect(options) {
|
|
|
311
311
|
);
|
|
312
312
|
}
|
|
313
313
|
async function handleDeploymentsList(options) {
|
|
314
|
-
const { http } =
|
|
314
|
+
const { http } = _chunkEGTUOYYGjs.getAuthedHttpClient.call(void 0, );
|
|
315
315
|
const query = new URLSearchParams();
|
|
316
316
|
if (options.repo) query.set("projectId", options.repo);
|
|
317
317
|
if (options.limit) query.set("limit", options.limit);
|
|
@@ -319,7 +319,7 @@ async function handleDeploymentsList(options) {
|
|
|
319
319
|
const payload = await http.get(
|
|
320
320
|
`/api/v2/deployments${suffix}`
|
|
321
321
|
);
|
|
322
|
-
|
|
322
|
+
_chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
|
|
323
323
|
{
|
|
324
324
|
deployments: payload.deployments,
|
|
325
325
|
count: payload.deployments.length,
|
|
@@ -363,12 +363,12 @@ function renderDeploymentMonitorLines(results) {
|
|
|
363
363
|
]);
|
|
364
364
|
}
|
|
365
365
|
async function handleDeploymentGet(id, options) {
|
|
366
|
-
const { http } =
|
|
366
|
+
const { http } = _chunkEGTUOYYGjs.getAuthedHttpClient.call(void 0, );
|
|
367
367
|
const payload = await http.get(`/api/v2/deployments/${encodeURIComponent(id)}`);
|
|
368
368
|
const playLines = renderDeploymentPlayLines(payload.deployment.results);
|
|
369
369
|
const monitorLines = renderDeploymentMonitorLines(payload.deployment.results);
|
|
370
370
|
const repository = _nullishCoalesce(_optionalChain([payload, 'access', _10 => _10.project, 'optionalAccess', _11 => _11.repoFullName]), () => ( payload.deployment.repoFullName));
|
|
371
|
-
|
|
371
|
+
_chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
|
|
372
372
|
{
|
|
373
373
|
deployment: payload.deployment,
|
|
374
374
|
project: payload.project,
|
|
@@ -387,9 +387,9 @@ async function handleDeploymentGet(id, options) {
|
|
|
387
387
|
);
|
|
388
388
|
}
|
|
389
389
|
async function handleDeploymentCancel(id, options) {
|
|
390
|
-
const { http } =
|
|
390
|
+
const { http } = _chunkEGTUOYYGjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
seedToolListScript
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2P3NVX65.mjs";
|
|
4
4
|
import {
|
|
5
5
|
addDescribeOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DQ5ADV2J.mjs";
|
|
7
7
|
import {
|
|
8
8
|
describeLookupsFor,
|
|
9
9
|
describeName,
|
|
@@ -14,18 +14,18 @@ import {
|
|
|
14
14
|
} from "./chunk-7AOFSZJM.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineClient
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WDNRPZED.mjs";
|
|
18
18
|
import {
|
|
19
19
|
failureReportHeaders,
|
|
20
20
|
isFailureReportingDisabled
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-5LZ5VSOK.mjs";
|
|
22
22
|
import {
|
|
23
23
|
printCommandEnvelope
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-62SOZ67Y.mjs";
|
|
25
25
|
import {
|
|
26
26
|
autoDetectBaseUrl,
|
|
27
27
|
resolveApiKeyForBaseUrl
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-E7TP25I2.mjs";
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/describe.ts
|
|
31
31
|
import { writeFileSync } from "fs";
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-62SOZ67Y.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-E7TP25I2.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -3,18 +3,18 @@ import {
|
|
|
3
3
|
} from "./chunk-5AEDYVB6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WDNRPZED.mjs";
|
|
7
7
|
import {
|
|
8
8
|
resolveSdkCliFailureExitCode
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5LZ5VSOK.mjs";
|
|
10
10
|
import {
|
|
11
11
|
errorToJsonPayload,
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-62SOZ67Y.mjs";
|
|
14
14
|
import {
|
|
15
15
|
resolveConfig,
|
|
16
16
|
sdkCliStateDirPath
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-E7TP25I2.mjs";
|
|
18
18
|
|
|
19
19
|
// src/cli/commands/search.ts
|
|
20
20
|
import { Option } from "commander";
|
|
@@ -136,7 +136,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
136
136
|
}
|
|
137
137
|
const client = new DeeplineClient();
|
|
138
138
|
const json = options.json === true;
|
|
139
|
-
const renderer = json ? void 0 : await import("./search-output-
|
|
139
|
+
const renderer = json ? void 0 : await import("./search-output-73BYB7UE.mjs");
|
|
140
140
|
const searches = [];
|
|
141
141
|
const chunks = [];
|
|
142
142
|
const refs = /* @__PURE__ */ new Map();
|
|
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
|
|
|
49
49
|
// getters keep their established compatibility behavior.
|
|
50
50
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
51
51
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
52
|
-
version: "0.3.
|
|
52
|
+
version: "0.3.534",
|
|
53
53
|
updateSummary: {
|
|
54
54
|
introducedIn: "0.3.90",
|
|
55
55
|
summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
|
|
@@ -613,6 +613,41 @@ Examples:
|
|
|
613
613
|
[[cli:deepline tools balance leadmagic --json]]
|
|
614
614
|
`
|
|
615
615
|
},
|
|
616
|
+
"tools workspace-connections": {
|
|
617
|
+
core: `
|
|
618
|
+
Purpose:
|
|
619
|
+
List shared OAuth connections in an enrolled internal Enterprise workspace.
|
|
620
|
+
Output:
|
|
621
|
+
[[cli:Use --json for records with provider, status, label, and connection version.]]
|
|
622
|
+
Cost:
|
|
623
|
+
Does not spend Deepline credits.
|
|
624
|
+
`,
|
|
625
|
+
rolloutFeature: "google-calendar-availability-pilot"
|
|
626
|
+
},
|
|
627
|
+
"tools workspace-connection": {
|
|
628
|
+
core: `
|
|
629
|
+
Purpose:
|
|
630
|
+
Manage a shared HubSpot or Google Calendar connection as a workspace admin.
|
|
631
|
+
Input:
|
|
632
|
+
Pass the provider and connect, reconnect, replace, or disconnect.
|
|
633
|
+
Complete OAuth consent in the browser.
|
|
634
|
+
Cost:
|
|
635
|
+
Does not spend Deepline credits.
|
|
636
|
+
`,
|
|
637
|
+
rolloutFeature: "google-calendar-availability-pilot"
|
|
638
|
+
},
|
|
639
|
+
"tools availability-calendars": {
|
|
640
|
+
core: `
|
|
641
|
+
Purpose:
|
|
642
|
+
Find out where to get calendar IDs for the managed availability pilot.
|
|
643
|
+
Output:
|
|
644
|
+
Instructions to get calendar IDs from Google Calendar or the calendar owners
|
|
645
|
+
and use those IDs in tool and Play inputs.
|
|
646
|
+
Cost:
|
|
647
|
+
Does not spend Deepline credits.
|
|
648
|
+
`,
|
|
649
|
+
rolloutFeature: "google-calendar-availability-pilot"
|
|
650
|
+
},
|
|
616
651
|
"tools connect": {
|
|
617
652
|
core: `
|
|
618
653
|
Purpose:
|
|
@@ -4,21 +4,21 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EYXUAJAU.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment,
|
|
10
10
|
syncSdkSkillsIfNeeded
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-BDWZBMGV.mjs";
|
|
12
12
|
import {
|
|
13
13
|
addJsonNotice,
|
|
14
14
|
isJsonOutputMode
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-62SOZ67Y.mjs";
|
|
16
16
|
import {
|
|
17
17
|
resolveApiKeyForBaseUrl
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-E7TP25I2.mjs";
|
|
19
19
|
import {
|
|
20
20
|
SDK_VERSION
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-TG2UB3A5.mjs";
|
|
22
22
|
|
|
23
23
|
// src/cli/compatibility-catalog.ts
|
|
24
24
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkDGKTHWWHjs = require('./chunk-DGKTHWWH.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk2KHUFWTKjs = require('./chunk-2KHUFWTK.js');
|
|
@@ -11,7 +11,7 @@ var _chunk2KHUFWTKjs = require('./chunk-2KHUFWTK.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkEGTUOYYGjs = require('./chunk-EGTUOYYG.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunkSQWET4SLjs = require('./chunk-SQWET4SL.js');
|
|
@@ -581,7 +581,7 @@ function parseInputFlagValue(raw) {
|
|
|
581
581
|
return raw;
|
|
582
582
|
}
|
|
583
583
|
function parsePlayRunOptions(args, initialInput = null) {
|
|
584
|
-
const selection =
|
|
584
|
+
const selection = _chunkEGTUOYYGjs.parseJsonFields.call(void 0, args, "run");
|
|
585
585
|
args = selection.args;
|
|
586
586
|
const usage = "Usage: deepline plays run <play-name> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run <play-file.ts> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --file <play-file.ts> [--input '{...}'] [--profile <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --name <name> [--input '{...}'] [--profile <id>] [--live|--latest|--revision-id <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--json] [--full] [--<input> value]\n Runs use the Absurd CJS runtime.\n --header '<name>: <value>' may repeat; each is sent on every request for this run.\n Unknown --<input> value flags, such as --limit 5, are passed into play input.\nRun `deepline plays run --help` for idempotent call caching and deepline.dataset guidance.";
|
|
587
587
|
let filePath = null;
|
|
@@ -593,7 +593,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
593
593
|
let revisionSelector = null;
|
|
594
594
|
const watch = !args.includes("--no-wait");
|
|
595
595
|
const dryRun = args.includes("--dry-run");
|
|
596
|
-
let jsonOutput = dryRun ?
|
|
596
|
+
let jsonOutput = dryRun ? _chunkEGTUOYYGjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkEGTUOYYGjs.argsWantJson.call(void 0, args);
|
|
597
597
|
const fullJson = args.includes("--full");
|
|
598
598
|
const force = args.includes("--force") || args.includes("--from-start");
|
|
599
599
|
const forceToolRefresh = args.includes("--force-tool-refresh") || args.includes("--refresh-cache");
|
|
@@ -656,7 +656,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
656
656
|
"--log-level requires one of: debug, info, warn, error."
|
|
657
657
|
);
|
|
658
658
|
}
|
|
659
|
-
const parsed =
|
|
659
|
+
const parsed = _chunkDGKTHWWHjs.parseLogLevel.call(void 0, value);
|
|
660
660
|
if (!parsed) {
|
|
661
661
|
throw new Error(
|
|
662
662
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -974,7 +974,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
974
974
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
975
975
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
976
976
|
);
|
|
977
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
977
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkDGKTHWWHjs.parseLogLevel.call(void 0, options.logLevel);
|
|
978
978
|
if (!logLevel)
|
|
979
979
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
980
980
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -988,13 +988,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
988
988
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
989
989
|
logLevel = "debug";
|
|
990
990
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
991
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
992
|
-
[...fullJson ? ["--full"] : [], ...
|
|
991
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunkEGTUOYYGjs.parseJsonFields.call(void 0,
|
|
992
|
+
[...fullJson ? ["--full"] : [], ..._chunkEGTUOYYGjs.jsonFieldArgs.call(void 0, options.json)],
|
|
993
993
|
"run"
|
|
994
994
|
).fields;
|
|
995
995
|
const watch = options.wait === false ? false : base.watch;
|
|
996
996
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
997
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
997
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunkEGTUOYYGjs.argsWantJson.call(void 0, []) : explicitJson;
|
|
998
998
|
const verboseLogs = Boolean(
|
|
999
999
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
1000
1000
|
);
|
|
@@ -17,12 +17,12 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
|
17
17
|
var _chunkSQWET4SLjs = require('./chunk-SQWET4SL.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkRH3YRMUYjs = require('./chunk-RH3YRMUY.js');
|
|
21
21
|
|
|
22
22
|
// src/version.ts
|
|
23
|
-
var SDK_VERSION =
|
|
24
|
-
var SDK_API_MAJOR =
|
|
25
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
23
|
+
var SDK_VERSION = _chunkRH3YRMUYjs.SDK_RELEASE.version;
|
|
24
|
+
var SDK_API_MAJOR = _chunkRH3YRMUYjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
25
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkRH3YRMUYjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
26
26
|
|
|
27
27
|
// src/agent-runtime.ts
|
|
28
28
|
var _fs = require('fs');
|
|
@@ -8,7 +8,7 @@ var _chunkXYIECA7Mjs = require('./chunk-XYIECA7M.js');
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkEGTUOYYGjs = require('./chunk-EGTUOYYG.js');
|
|
12
12
|
|
|
13
13
|
// src/cli/describe-options.ts
|
|
14
14
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -249,7 +249,7 @@ function projectRunDatasetCell(value) {
|
|
|
249
249
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
250
250
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
251
251
|
if (typeof logicalValue === "object") {
|
|
252
|
-
return
|
|
252
|
+
return _chunkEGTUOYYGjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
253
253
|
}
|
|
254
254
|
return logicalValue;
|
|
255
255
|
}
|
|
@@ -641,7 +641,7 @@ function csvText(rows, columns = []) {
|
|
|
641
641
|
rows: rows.map((row) => record(row) ? row : { value: row }),
|
|
642
642
|
columns
|
|
643
643
|
});
|
|
644
|
-
return
|
|
644
|
+
return _chunkEGTUOYYGjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
|
|
645
645
|
}
|
|
646
646
|
function writeExecutionOutput(result, options, { skipReceiptFile = false } = {}) {
|
|
647
647
|
let temp;
|
|
@@ -768,7 +768,7 @@ function writeExecutionOutput(result, options, { skipReceiptFile = false } = {})
|
|
|
768
768
|
};
|
|
769
769
|
if (options.receiptOut && !skipReceiptFile) {
|
|
770
770
|
persist(options.receiptOut, jsonText(receipt));
|
|
771
|
-
|
|
771
|
+
_chunkEGTUOYYGjs.markJsonOutputHandled.call(void 0, );
|
|
772
772
|
} else {
|
|
773
773
|
printReceipt(receipt, options, {
|
|
774
774
|
data: hasData ? result.data : void 0,
|
|
@@ -1027,8 +1027,8 @@ function printReceipt(receipt, options, extra) {
|
|
|
1027
1027
|
const text = options.receiptJson ? `${JSON.stringify(receipt, null, 2)}
|
|
1028
1028
|
` : receiptText(receipt, options, extra);
|
|
1029
1029
|
if (options.receiptOut !== void 0) {
|
|
1030
|
-
|
|
1031
|
-
|
|
1030
|
+
_chunkEGTUOYYGjs.writeRawStderr.call(void 0, text);
|
|
1031
|
+
_chunkEGTUOYYGjs.markJsonOutputHandled.call(void 0, );
|
|
1032
1032
|
} else {
|
|
1033
1033
|
(dataOnStdout(options) ? process.stderr : process.stdout).write(text);
|
|
1034
1034
|
}
|
|
@@ -4,21 +4,21 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkB2AS3R5Wjs = require('./chunk-B2AS3R5W.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkHCD36BP6js = require('./chunk-HCD36BP6.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkEGTUOYYGjs = require('./chunk-EGTUOYYG.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkXBK6WCVAjs = require('./chunk-XBK6WCVA.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkUWNVFAFNjs = require('./chunk-UWNVFAFN.js');
|
|
22
22
|
|
|
23
23
|
// src/cli/compatibility-catalog.ts
|
|
24
24
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -45,7 +45,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
|
|
|
45
45
|
async function reportAutoUpdateEvent(input) {
|
|
46
46
|
let apiKey = "";
|
|
47
47
|
try {
|
|
48
|
-
apiKey =
|
|
48
|
+
apiKey = _chunkXBK6WCVAjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
49
49
|
} catch (e2) {
|
|
50
50
|
return;
|
|
51
51
|
}
|
|
@@ -61,15 +61,15 @@ async function reportAutoUpdateEvent(input) {
|
|
|
61
61
|
headers: {
|
|
62
62
|
Authorization: `Bearer ${apiKey}`,
|
|
63
63
|
"Content-Type": "application/json",
|
|
64
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
64
|
+
"User-Agent": `deepline-ts-sdk/${_chunkUWNVFAFNjs.SDK_VERSION}`,
|
|
65
65
|
"X-Deepline-Client-Family": "sdk",
|
|
66
66
|
"X-Deepline-CLI-Family": "sdk",
|
|
67
|
-
"X-Deepline-CLI-Version":
|
|
68
|
-
"X-Deepline-SDK-Version":
|
|
67
|
+
"X-Deepline-CLI-Version": _chunkUWNVFAFNjs.SDK_VERSION,
|
|
68
|
+
"X-Deepline-SDK-Version": _chunkUWNVFAFNjs.SDK_VERSION
|
|
69
69
|
},
|
|
70
70
|
body: JSON.stringify({
|
|
71
71
|
event: input.event,
|
|
72
|
-
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ||
|
|
72
|
+
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkUWNVFAFNjs.SDK_VERSION,
|
|
73
73
|
target_version: input.response.latest,
|
|
74
74
|
reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
|
|
75
75
|
command: _nullishCoalesce(input.response.command, () => ( null)),
|
|
@@ -88,13 +88,13 @@ function envTruthy(name) {
|
|
|
88
88
|
return value === "1" || value === "true" || value === "yes";
|
|
89
89
|
}
|
|
90
90
|
function shouldSkipSelfUpdate(policy) {
|
|
91
|
-
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !
|
|
91
|
+
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkB2AS3R5Wjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkHCD36BP6js.isCiEnvironment.call(void 0, );
|
|
92
92
|
}
|
|
93
93
|
function isDowngradeAutoUpdateResponse(response) {
|
|
94
94
|
const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
|
|
95
|
-
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) ||
|
|
95
|
+
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkUWNVFAFNjs.SDK_VERSION;
|
|
96
96
|
if (!target) return false;
|
|
97
|
-
return
|
|
97
|
+
return _chunkB2AS3R5Wjs.compareUpdateVersions.call(void 0, target, current) < 0;
|
|
98
98
|
}
|
|
99
99
|
function relaunchCurrentCommand(plan, runtime = {}) {
|
|
100
100
|
return new Promise((resolve) => {
|
|
@@ -147,7 +147,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
147
147
|
}
|
|
148
148
|
if (isDowngradeAutoUpdateResponse(response)) {
|
|
149
149
|
const target = response.latest;
|
|
150
|
-
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) ||
|
|
150
|
+
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkUWNVFAFNjs.SDK_VERSION;
|
|
151
151
|
process.stderr.write(
|
|
152
152
|
`Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
|
|
153
153
|
`
|
|
@@ -155,21 +155,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
155
155
|
return false;
|
|
156
156
|
}
|
|
157
157
|
const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
|
|
158
|
-
const plan =
|
|
158
|
+
const plan = _chunkB2AS3R5Wjs.resolveUpdatePlan.call(void 0, {
|
|
159
159
|
packageSpec,
|
|
160
160
|
requireVerifiedNpmOwnership: true,
|
|
161
161
|
npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
|
|
162
162
|
});
|
|
163
|
-
if (!
|
|
163
|
+
if (!_chunkB2AS3R5Wjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
|
|
164
164
|
return false;
|
|
165
165
|
}
|
|
166
166
|
if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
167
167
|
deferredAutoUpdate = async () => {
|
|
168
168
|
await applyAutoUpdate(response, baseUrl, plan, "next_command");
|
|
169
169
|
};
|
|
170
|
-
if (
|
|
170
|
+
if (_chunkEGTUOYYGjs.isJsonOutputMode.call(void 0, )) {
|
|
171
171
|
const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
|
|
172
|
-
|
|
172
|
+
_chunkEGTUOYYGjs.addJsonNotice.call(void 0, {
|
|
173
173
|
code: "sdk_update_queued",
|
|
174
174
|
message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
|
|
175
175
|
});
|
|
@@ -182,7 +182,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
182
182
|
return true;
|
|
183
183
|
}
|
|
184
184
|
async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
185
|
-
if (!
|
|
185
|
+
if (!_chunkB2AS3R5Wjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
|
|
186
186
|
const autoUpdate = response.auto_update;
|
|
187
187
|
const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
|
|
188
188
|
process.stderr.write(
|
|
@@ -195,7 +195,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
195
195
|
event: "started",
|
|
196
196
|
installKind: plan.kind
|
|
197
197
|
});
|
|
198
|
-
const updateResult = await
|
|
198
|
+
const updateResult = await _chunkB2AS3R5Wjs.runAutomaticUpdatePlan.call(void 0, plan);
|
|
199
199
|
if (updateResult.status === "skipped_previous_failure") {
|
|
200
200
|
void reportAutoUpdateEvent({
|
|
201
201
|
baseUrl,
|
|
@@ -233,7 +233,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
233
233
|
exitCode: 0
|
|
234
234
|
});
|
|
235
235
|
try {
|
|
236
|
-
await
|
|
236
|
+
await _chunkHCD36BP6js.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
|
|
237
237
|
mode: "detached",
|
|
238
238
|
update: _optionalChain([response, 'access', _36 => _36.skills, 'optionalAccess', _37 => _37.requires_cli_update]) ? void 0 : response.skills,
|
|
239
239
|
afterCliUpdate: {
|
|
@@ -260,7 +260,7 @@ var _crypto = require('crypto');
|
|
|
260
260
|
var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
|
|
261
261
|
var activeToolExecuteCommand = null;
|
|
262
262
|
function progressLine(line) {
|
|
263
|
-
if (!
|
|
263
|
+
if (!_chunkEGTUOYYGjs.isJsonOutputMode.call(void 0, )) console.error(line);
|
|
264
264
|
}
|
|
265
265
|
function beginToolExecuteCommand() {
|
|
266
266
|
if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MG6YL4M7.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-E7TP25I2.mjs";
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
10
|
var DeeplineClient2 = class extends DeeplineClient {
|