deepline 0.3.498 → 0.3.500
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/observability/scheduled-jobs.json +18 -0
- package/dist/cli/auth-H4PCVUN3.js +43 -0
- package/dist/cli/{auth-TNYYAPIX.mjs → auth-WK3FDPRP.mjs} +5 -5
- package/dist/cli/{billing-MP43H3ZK.js → billing-K7UHZUF4.js} +79 -79
- package/dist/cli/{billing-G6QBOZAE.mjs → billing-O3LVKXE7.mjs} +6 -6
- package/dist/cli/{chunk-4RSOYJ67.mjs → chunk-4CJWOLOS.mjs} +3 -3
- package/dist/cli/{chunk-6JVJZ7YG.mjs → chunk-56QAHX2K.mjs} +1 -1
- package/dist/cli/{chunk-OFNXUDEC.mjs → chunk-5AC7NUQN.mjs} +5 -5
- package/dist/cli/{chunk-MRHMC33S.mjs → chunk-5JXGYSXH.mjs} +1 -1
- package/dist/cli/{chunk-VUNAIAMX.js → chunk-5KAZGZG7.js} +5 -5
- package/dist/cli/{chunk-3XNYGMPZ.mjs → chunk-5TVY5OEH.mjs} +10 -10
- package/dist/cli/{chunk-YCGVVUGX.js → chunk-74VKLBJD.js} +9 -9
- package/dist/cli/{chunk-UA2GU7NB.js → chunk-BIE57V6K.js} +7 -7
- package/dist/cli/{chunk-IE6FYMUS.mjs → chunk-C7355NMU.mjs} +1 -1
- package/dist/cli/{chunk-PAHFVOFZ.mjs → chunk-CBZTKDXW.mjs} +1 -1
- package/dist/cli/{chunk-H7YR4EYF.mjs → chunk-CIV5GJAE.mjs} +9 -5
- package/dist/cli/{chunk-C7BH7T3T.mjs → chunk-FJZUG633.mjs} +2 -2
- package/dist/cli/{chunk-TDUTNTA5.js → chunk-G3NA4R7M.js} +53 -53
- package/dist/cli/{chunk-TLG75Q77.js → chunk-GBRI644Y.js} +53 -53
- package/dist/cli/{chunk-VFYKFPZD.js → chunk-GOO4VI5M.js} +16 -16
- package/dist/cli/{chunk-ZEYB6QPW.mjs → chunk-HI2BFS5S.mjs} +2 -2
- package/dist/cli/{chunk-PKTJN6PF.js → chunk-IX2DPYIV.js} +3 -3
- package/dist/cli/{chunk-2QS3MCJ2.mjs → chunk-IZ6YWXIK.mjs} +2 -2
- package/dist/cli/{chunk-VETP54NO.mjs → chunk-JHNFUCVT.mjs} +4 -4
- package/dist/cli/{chunk-XGUGFGCF.js → chunk-K3BHKRMS.js} +3 -3
- package/dist/cli/{chunk-IUCAVYXR.js → chunk-KEBNXJSK.js} +16 -16
- package/dist/cli/{chunk-UUFZFJL4.mjs → chunk-L7X6ADNM.mjs} +4 -4
- package/dist/cli/{chunk-IBCROFZW.js → chunk-LNMY2T5S.js} +41 -41
- package/dist/cli/{chunk-O4H53SJ4.mjs → chunk-MAHLIWOF.mjs} +2 -2
- package/dist/cli/{chunk-EHOC6NCN.mjs → chunk-PGRPNRP6.mjs} +1 -1
- package/dist/cli/{chunk-QERMP4TW.js → chunk-PHGMC33I.js} +2 -2
- package/dist/cli/{chunk-BQIEYWGQ.js → chunk-Q2FXZ4Z5.js} +94 -94
- package/dist/cli/{chunk-KLA4IUOI.mjs → chunk-QRKCCY4L.mjs} +28 -22
- package/dist/cli/{chunk-PHBJ2VDS.js → chunk-RAZ3TMOS.js} +7 -7
- package/dist/cli/{chunk-OL2QEEXF.js → chunk-REIKJREB.js} +5 -5
- package/dist/cli/{chunk-DB7SJKGI.js → chunk-RHE4YI4H.js} +6 -6
- package/dist/cli/{chunk-TPQFCUPV.js → chunk-SNJNPRIV.js} +15 -11
- package/dist/cli/{chunk-XNYAIV4E.js → chunk-SNPZ2QWL.js} +8 -8
- package/dist/cli/{chunk-SR3PRGWB.mjs → chunk-SRS2D27G.mjs} +1 -1
- package/dist/cli/{chunk-RZA6HSXX.mjs → chunk-T4AGTOKQ.mjs} +6 -6
- package/dist/cli/{chunk-2HCZHIMT.mjs → chunk-TFFJ2PRN.mjs} +5 -3
- package/dist/cli/{chunk-EAQXRAVF.js → chunk-TOGCDNMH.js} +4 -4
- package/dist/cli/{chunk-QDNP6KOF.js → chunk-U5GFP26N.js} +21 -21
- package/dist/cli/{chunk-ELZYHPE7.mjs → chunk-V7MZYIA7.mjs} +5 -5
- package/dist/cli/{chunk-FPRS3FP4.js → chunk-VLCY4F6E.js} +26 -26
- package/dist/cli/{chunk-RZO743TC.mjs → chunk-VPVEPGYS.mjs} +2 -2
- package/dist/cli/{chunk-XUTIBRKF.js → chunk-W64Y7GE7.js} +1 -1
- package/dist/cli/{chunk-KV4RNW2H.mjs → chunk-X5SO7RV5.mjs} +4 -4
- package/dist/cli/{chunk-QUIJUNXX.js → chunk-X7ODM2LK.js} +30 -24
- package/dist/cli/{chunk-LGE6ZOEO.mjs → chunk-XCBOOB73.mjs} +1 -1
- package/dist/cli/{chunk-4TVN2676.mjs → chunk-XUOZYAP5.mjs} +2 -2
- package/dist/cli/{chunk-N3T3L3WW.js → chunk-YPTZJ7LO.js} +5 -3
- package/dist/cli/{chunk-KRR2Z2FH.js → chunk-Z5LE7NXM.js} +2 -2
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-LBUOESU2.mjs → csv-DEUOSTEB.mjs} +4 -4
- package/dist/cli/{csv-SCXUWRVV.js → csv-MWCWNIBJ.js} +13 -13
- package/dist/cli/{db-CC2D2GSL.js → db-Q6IRXTTG.js} +27 -27
- package/dist/cli/{db-3SI2OXIV.mjs → db-QM5R5BRY.mjs} +6 -6
- package/dist/cli/describe-BZ544347.js +50 -0
- package/dist/cli/{describe-ZK5CMT4M.mjs → describe-CQZ7TBOG.mjs} +17 -17
- package/dist/cli/{executions-YKYQIRPP.js → executions-DCCDXSQI.js} +8 -8
- package/dist/cli/{executions-DVPHIG2I.mjs → executions-SWBKFCY2.mjs} +6 -6
- package/dist/cli/{feedback-BVLYZ3BM.js → feedback-EU3EYF4V.js} +8 -8
- package/dist/cli/{feedback-UQRMPU2S.mjs → feedback-Q27HN3SB.mjs} +4 -4
- package/dist/cli/git-NW6BAXX2.js +25 -0
- package/dist/cli/{git-WTMZ66HP.mjs → git-SEQFTQ4N.mjs} +5 -5
- package/dist/cli/index.js +141 -141
- package/dist/cli/index.mjs +41 -41
- package/dist/cli/{legacy-noops-TVJ5WOBD.js → legacy-noops-LCQDEVA3.js} +8 -8
- package/dist/cli/{legacy-noops-RUQT6DB3.mjs → legacy-noops-XKH4VREG.mjs} +5 -5
- package/dist/cli/{monitors-ZQBZMFUL.mjs → monitors-4XWBV46I.mjs} +7 -7
- package/dist/cli/{monitors-UYYJBO6U.js → monitors-DJCID6X5.js} +95 -95
- package/dist/cli/{org-4TZED2IF.js → org-BU4FG5PN.js} +72 -72
- package/dist/cli/{org-UACQHFY6.mjs → org-PSBGXBRW.mjs} +6 -6
- package/dist/cli/{pages-HDYYGZOT.js → pages-3PHJYXYB.js} +18 -18
- package/dist/cli/{pages-R2KSZCYK.mjs → pages-7QLXLJGQ.mjs} +6 -6
- package/dist/cli/{play-DQ4AZ2NV.mjs → play-4OLYXRCG.mjs} +37 -27
- package/dist/cli/{play-ZMYWHAV3.js → play-S3CWPQKB.js} +406 -396
- package/dist/cli/{providers-X53WCX46.mjs → providers-JT7C2QTC.mjs} +6 -6
- package/dist/cli/{providers-I7GXTYG4.js → providers-U4JUMLB2.js} +9 -9
- package/dist/cli/{quickstart-DKVF32MY.mjs → quickstart-DQF5CF2I.mjs} +4 -4
- package/dist/cli/{quickstart-GKW46HUR.js → quickstart-OUSMXLYZ.js} +6 -6
- package/dist/cli/{run-VLX775L5.js → run-6XXHLB4X.js} +82 -43
- package/dist/cli/{run-A36EBVLD.mjs → run-RECNI77K.mjs} +69 -30
- package/dist/cli/search-BIQ62ZBE.js +32 -0
- package/dist/cli/{search-QHO4AYS2.mjs → search-JN7K3GC6.mjs} +7 -7
- package/dist/cli/{search-output-P7GWSTNO.js → search-output-JGNYXDWZ.js} +6 -6
- package/dist/cli/{search-output-YF5HCWKU.mjs → search-output-L6PC5SPM.mjs} +4 -4
- package/dist/cli/{secrets-3X56AV2F.js → secrets-TX6PCZ77.js} +15 -15
- package/dist/cli/{secrets-XTHBAX26.mjs → secrets-UOXZWHBY.mjs} +6 -6
- package/dist/cli/{sessions-4ZVZABXN.mjs → sessions-DTE733EH.mjs} +5 -5
- package/dist/cli/{sessions-AJUQJR4G.js → sessions-GCEIX4KB.js} +6 -6
- package/dist/cli/{settings-R7RQC5Z3.js → settings-UGXSDHR5.js} +78 -78
- package/dist/cli/{settings-AX5JF47R.mjs → settings-ZGIMRCTC.mjs} +11 -11
- package/dist/cli/{setup-QB62E6K5.js → setup-JYB6Z376.js} +49 -49
- package/dist/cli/{setup-DTXQODYK.mjs → setup-UT7AO53D.mjs} +9 -9
- package/dist/cli/{skills-N6OY5ABC.mjs → skills-4QJCMN7J.mjs} +7 -7
- package/dist/cli/skills-53LCPB5R.js +36 -0
- package/dist/cli/tools-HKJK6UNJ.js +57 -0
- package/dist/cli/{tools-3T4GKGS4.mjs → tools-RGNXIAA6.mjs} +16 -16
- package/dist/cli/{update-QDT4SFW3.mjs → update-Q62EVSXZ.mjs} +9 -9
- package/dist/cli/update-QMZSFTFZ.js +34 -0
- package/dist/cli/{workflow-FW3FPOWU.js → workflow-GENV47RD.js} +17 -17
- package/dist/cli/{workflow-Q7LQETNW.mjs → workflow-YNIOWM7J.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +100 -100
- 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.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-NYYFDCMT.js +0 -43
- package/dist/cli/describe-DAUL3SDQ.js +0 -50
- package/dist/cli/git-MFIJCRX6.js +0 -25
- package/dist/cli/search-STXZIGVB.js +0 -32
- package/dist/cli/skills-IEP5L5MQ.js +0 -36
- package/dist/cli/tools-JWBXEZKY.js +0 -57
- package/dist/cli/update-QME3C2VP.js +0 -34
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkSNJNPRIVjs = require('./chunk-SNJNPRIV.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkK3BHKRMSjs = require('./chunk-K3BHKRMS.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 } = _chunkSNJNPRIVjs.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
|
+
_chunkSNJNPRIVjs.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 } = _chunkSNJNPRIVjs.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
|
+
_chunkSNJNPRIVjs.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 } = _chunkSNJNPRIVjs.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
|
+
_chunkSNJNPRIVjs.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 } = _chunkSNJNPRIVjs.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 } = _chunkSNJNPRIVjs.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
|
+
_chunkSNJNPRIVjs.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 } = _chunkSNJNPRIVjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkSNJNPRIVjs.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 } = _chunkSNJNPRIVjs.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
|
+
_chunkSNJNPRIVjs.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 } = _chunkSNJNPRIVjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkSNJNPRIVjs.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 = _chunkK3BHKRMSjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkSNJNPRIVjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkSNJNPRIVjs.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 } = _chunkSNJNPRIVjs.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
|
+
_chunkSNJNPRIVjs.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 } = _chunkSNJNPRIVjs.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
|
+
_chunkSNJNPRIVjs.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 } = _chunkSNJNPRIVjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkSNJNPRIVjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-56QAHX2K.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CBZTKDXW.mjs";
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
10
|
var DeeplineClient2 = class extends DeeplineClient {
|
|
@@ -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.500",
|
|
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."
|
|
@@ -11,20 +11,20 @@ import {
|
|
|
11
11
|
skillsInstallLeasePath,
|
|
12
12
|
skillsSourceUrl,
|
|
13
13
|
syncSdkSkillsIfNeeded
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-L7X6ADNM.mjs";
|
|
15
15
|
import {
|
|
16
16
|
printCommandEnvelope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-CIV5GJAE.mjs";
|
|
18
18
|
import {
|
|
19
19
|
autoDetectBaseUrl,
|
|
20
20
|
ensureProjectPrivatePathsIgnored,
|
|
21
21
|
resolveProjectPinTarget,
|
|
22
22
|
sdkCliStateDirPath
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-CBZTKDXW.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_VERSION,
|
|
26
26
|
detectAgentRuntime
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-5JXGYSXH.mjs";
|
|
28
28
|
import {
|
|
29
29
|
DEEPLINE_GTM_GLOBAL_SKILL_ROOTS
|
|
30
30
|
} from "./chunk-5JPKRDFC.mjs";
|
|
@@ -6,7 +6,9 @@ var _chunkJO5FFSR7js = require('./chunk-JO5FFSR7.js');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
var _chunkSNJNPRIVjs = require('./chunk-SNJNPRIV.js');
|
|
10
12
|
|
|
11
13
|
// src/cli/describe-options.ts
|
|
12
14
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -247,7 +249,7 @@ function projectRunDatasetCell(value) {
|
|
|
247
249
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
248
250
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
249
251
|
if (typeof logicalValue === "object") {
|
|
250
|
-
return
|
|
252
|
+
return _chunkSNJNPRIVjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
251
253
|
}
|
|
252
254
|
return logicalValue;
|
|
253
255
|
}
|
|
@@ -533,11 +535,8 @@ function preflightExecutionOutput(options) {
|
|
|
533
535
|
},
|
|
534
536
|
ran: false
|
|
535
537
|
},
|
|
536
|
-
|
|
537
|
-
{
|
|
538
|
-
receiptJson: options.receiptJson,
|
|
539
|
-
...dataOnStdout(options) ? { jsonOut: "-" } : {}
|
|
540
|
-
}
|
|
538
|
+
options,
|
|
539
|
+
{ skipReceiptFile: true }
|
|
541
540
|
);
|
|
542
541
|
return false;
|
|
543
542
|
}
|
|
@@ -642,9 +641,9 @@ function csvText(rows, columns = []) {
|
|
|
642
641
|
rows: rows.map((row) => record(row) ? row : { value: row }),
|
|
643
642
|
columns
|
|
644
643
|
});
|
|
645
|
-
return
|
|
644
|
+
return _chunkSNJNPRIVjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
|
|
646
645
|
}
|
|
647
|
-
function writeExecutionOutput(result, options) {
|
|
646
|
+
function writeExecutionOutput(result, options, { skipReceiptFile = false } = {}) {
|
|
648
647
|
let temp;
|
|
649
648
|
const temporary = (name) => _path.join.call(void 0, temp ??= _fs.mkdtempSync.call(void 0, _path.join.call(void 0, _os.tmpdir.call(void 0, ), "deepline-output-")), name);
|
|
650
649
|
const jsonText = (value) => `${JSON.stringify(value, null, 2)}
|
|
@@ -767,13 +766,16 @@ function writeExecutionOutput(result, options) {
|
|
|
767
766
|
error: _nullishCoalesce(result.error, () => ( null)),
|
|
768
767
|
next: _nullishCoalesce(result.next, () => ( {}))
|
|
769
768
|
};
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
769
|
+
if (options.receiptOut && !skipReceiptFile) {
|
|
770
|
+
persist(options.receiptOut, jsonText(receipt));
|
|
771
|
+
_chunkSNJNPRIVjs.markJsonOutputHandled.call(void 0, );
|
|
772
|
+
} else {
|
|
773
|
+
printReceipt(receipt, options, {
|
|
774
|
+
data: hasData ? result.data : void 0,
|
|
775
|
+
ran: result.ran,
|
|
776
|
+
declared: result.declared
|
|
777
|
+
});
|
|
778
|
+
}
|
|
777
779
|
if (stdoutData !== void 0) process.stdout.write(stdoutData);
|
|
778
780
|
} catch (error) {
|
|
779
781
|
let recoveryFile = null;
|
|
@@ -781,6 +783,7 @@ function writeExecutionOutput(result, options) {
|
|
|
781
783
|
if (result.data !== void 0) recoveryFile = ensureJson();
|
|
782
784
|
} catch (e4) {
|
|
783
785
|
}
|
|
786
|
+
const retryWarning = "Do not re-execute paid work.";
|
|
784
787
|
const failure = {
|
|
785
788
|
status: "output_failed",
|
|
786
789
|
id: result.id,
|
|
@@ -793,16 +796,16 @@ function writeExecutionOutput(result, options) {
|
|
|
793
796
|
schemaFile: null,
|
|
794
797
|
logsFile: _nullishCoalesce(options.logsFile, () => ( null)),
|
|
795
798
|
collections: [],
|
|
796
|
-
warnings: [],
|
|
799
|
+
warnings: options.receiptOut !== void 0 && result.id ? [retryWarning] : [],
|
|
797
800
|
error: {
|
|
798
801
|
message: error instanceof Error ? error.message : String(error),
|
|
799
802
|
recoveryFile
|
|
800
803
|
},
|
|
801
804
|
next: _nullishCoalesce(result.next, () => ( {}))
|
|
802
805
|
};
|
|
803
|
-
printReceipt(failure, options, {
|
|
806
|
+
printReceipt(failure, options, { ran: result.ran });
|
|
804
807
|
throw new ExecutionOutputError(
|
|
805
|
-
`Output failed${result.id ? ` for ${result.id}` : ""}: ${error instanceof Error ? error.message : String(error)}.
|
|
808
|
+
`Output failed${result.id ? ` for ${result.id}` : ""}: ${error instanceof Error ? error.message : String(error)}. ${retryWarning}`,
|
|
806
809
|
{ cause: error }
|
|
807
810
|
);
|
|
808
811
|
}
|
|
@@ -951,9 +954,6 @@ function receiptText(receipt, options, extra) {
|
|
|
951
954
|
)
|
|
952
955
|
]);
|
|
953
956
|
}
|
|
954
|
-
if (extra.receiptFile) {
|
|
955
|
-
sections.push([`JSON receipt: ${extra.receiptFile}`]);
|
|
956
|
-
}
|
|
957
957
|
if (resultSection) sections.push(resultSection);
|
|
958
958
|
return `${sections.map((lines) => lines.join("\n")).join("\n\n")}
|
|
959
959
|
`;
|
|
@@ -1026,7 +1026,12 @@ function resultLines(title, data, declared, options) {
|
|
|
1026
1026
|
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
|
+
_chunkSNJNPRIVjs.writeRawStderr.call(void 0, text);
|
|
1031
|
+
_chunkSNJNPRIVjs.markJsonOutputHandled.call(void 0, );
|
|
1032
|
+
} else {
|
|
1033
|
+
(dataOnStdout(options) ? process.stderr : process.stdout).write(text);
|
|
1034
|
+
}
|
|
1030
1035
|
}
|
|
1031
1036
|
function openLogDestination(output) {
|
|
1032
1037
|
if (output.logsOut === "-") {
|
|
@@ -1058,4 +1063,5 @@ function openLogDestination(output) {
|
|
|
1058
1063
|
|
|
1059
1064
|
|
|
1060
1065
|
|
|
1061
|
-
|
|
1066
|
+
|
|
1067
|
+
exports.addDescribeOptions = addDescribeOptions; exports.recordApiResponse = recordApiResponse; exports.recordPlayTermination = recordPlayTermination; exports.TABLE_EXPORT_ERROR_COLUMN = TABLE_EXPORT_ERROR_COLUMN; exports.tableExportHasFailedRows = tableExportHasFailedRows; exports.tableExportErrorCell = tableExportErrorCell; exports.underscoreKeysLast = underscoreKeysLast; exports.orderRunExportJson = orderRunExportJson; exports.writeRunDatasetCsv = writeRunDatasetCsv; exports.ExecutionOutputError = ExecutionOutputError; exports.preflightExecutionOutput = preflightExecutionOutput; exports.outputCollections = outputCollections; exports.writeExecutionOutput = writeExecutionOutput; exports.openLogDestination = openLogDestination;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PGRPNRP6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
checkSdkCompatibility,
|
|
6
6
|
enforceSdkCompatibilityResponse,
|
|
7
7
|
flushDeferredSkillsSyncNotices
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-L7X6ADNM.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -459,9 +459,11 @@ Examples:
|
|
|
459
459
|
deepline run -e 'return { doubled: input.n * 2 };' --input '{"n":21}'
|
|
460
460
|
Output:
|
|
461
461
|
A receipt: what ran, its status and cost, where the data was saved, and
|
|
462
|
-
the first values.
|
|
463
|
-
|
|
464
|
-
|
|
462
|
+
the first values. --receipt-out <path> writes the JSON receipt only to that
|
|
463
|
+
new file, even with --json. File errors go to stderr. Use --json-out - or
|
|
464
|
+
--csv-out - to pipe result data to stdout.
|
|
465
|
+
--fields picks values and CSV columns. Exit code 0 completed, 1 failed or
|
|
466
|
+
still running, 2 nothing ran.
|
|
465
467
|
Cost:
|
|
466
468
|
What the tool or play charges. --max-credits caps a play run. Running an
|
|
467
469
|
interrupted call again replays it without paying twice.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkGBRI644Yjs = require('./chunk-GBRI644Y.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/npm-script-policy.ts
|
|
6
6
|
var _child_process = require('child_process');
|
|
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
|
|
|
13
13
|
}
|
|
14
14
|
function readNpmVersion(env) {
|
|
15
15
|
try {
|
|
16
|
-
const plan =
|
|
16
|
+
const plan = _chunkGBRI644Yjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
|
|
17
17
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
18
18
|
encoding: "utf8",
|
|
19
19
|
env,
|
package/dist/cli/command-docs.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkYPTZJ7LOjs = require('./chunk-YPTZJ7LO.js');
|
|
10
10
|
require('./chunk-COGTRVWW.js');
|
|
11
11
|
|
|
12
12
|
|
|
@@ -16,4 +16,4 @@ require('./chunk-COGTRVWW.js');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
exports.CLI_DOC_SURFACE =
|
|
19
|
+
exports.CLI_DOC_SURFACE = _chunkYPTZJ7LOjs.CLI_DOC_SURFACE; exports.COMMAND_DOCS = _chunkYPTZJ7LOjs.COMMAND_DOCS; exports.commandDocKey = _chunkYPTZJ7LOjs.commandDocKey; exports.helpDetailFromArgv = _chunkYPTZJ7LOjs.helpDetailFromArgv; exports.renderActionExplanation = _chunkYPTZJ7LOjs.renderActionExplanation; exports.renderCommandExplanation = _chunkYPTZJ7LOjs.renderCommandExplanation; exports.renderDocText = _chunkYPTZJ7LOjs.renderDocText;
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
printCommandEnvelope,
|
|
5
5
|
printJson,
|
|
6
6
|
readCsvRows
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-CIV5GJAE.mjs";
|
|
8
|
+
import "./chunk-CBZTKDXW.mjs";
|
|
9
|
+
import "./chunk-5JXGYSXH.mjs";
|
|
10
10
|
import "./chunk-4QF2K7TM.mjs";
|
|
11
11
|
import "./chunk-DLIRSHV6.mjs";
|
|
12
12
|
import "./chunk-HBL4PM5Q.mjs";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-SRS2D27G.mjs";
|
|
14
14
|
import "./chunk-WZYKRD7T.mjs";
|
|
15
15
|
import "./chunk-KRD6H754.mjs";
|
|
16
16
|
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
7
|
+
var _chunkSNJNPRIVjs = require('./chunk-SNJNPRIV.js');
|
|
8
|
+
require('./chunk-K3BHKRMS.js');
|
|
9
|
+
require('./chunk-TOGCDNMH.js');
|
|
10
10
|
require('./chunk-ALJJRZNJ.js');
|
|
11
11
|
require('./chunk-XNYIZMNQ.js');
|
|
12
12
|
require('./chunk-DIAWYWT5.js');
|
|
13
|
-
require('./chunk-
|
|
13
|
+
require('./chunk-W64Y7GE7.js');
|
|
14
14
|
require('./chunk-OG64RBAC.js');
|
|
15
15
|
require('./chunk-COGTRVWW.js');
|
|
16
16
|
|
|
@@ -128,7 +128,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
128
128
|
column.length,
|
|
129
129
|
...rows.map((row) => {
|
|
130
130
|
const value = _nullishCoalesce(row[column], () => ( ""));
|
|
131
|
-
return (verbose ? value :
|
|
131
|
+
return (verbose ? value : _chunkSNJNPRIVjs.clip.call(void 0, value, 42)).length;
|
|
132
132
|
})
|
|
133
133
|
)
|
|
134
134
|
])
|
|
@@ -138,7 +138,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
138
138
|
const body = rows.map(
|
|
139
139
|
(row) => columns.map((column) => {
|
|
140
140
|
const raw = _nullishCoalesce(row[column], () => ( ""));
|
|
141
|
-
const display = verbose ? raw :
|
|
141
|
+
const display = verbose ? raw : _chunkSNJNPRIVjs.clip.call(void 0, raw, 42);
|
|
142
142
|
return display.padEnd(widths[column]);
|
|
143
143
|
}).join(" | ")
|
|
144
144
|
);
|
|
@@ -158,7 +158,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
158
158
|
{ exitCode: 2 }
|
|
159
159
|
);
|
|
160
160
|
}
|
|
161
|
-
const allRows =
|
|
161
|
+
const allRows = _chunkSNJNPRIVjs.readCsvRows.call(void 0, csvPath);
|
|
162
162
|
const [rowStart, rowEnd] = parseRowRange(options.rows);
|
|
163
163
|
const rows = options.summary && options.rows === void 0 ? allRows : selectRows(allRows, rowStart, rowEnd);
|
|
164
164
|
const { rows: selected, columns } = selectColumns(
|
|
@@ -171,7 +171,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
171
171
|
if (options.summary) {
|
|
172
172
|
const summaries = summarizeColumns(selected, columns);
|
|
173
173
|
if (format === "json") {
|
|
174
|
-
|
|
174
|
+
_chunkSNJNPRIVjs.printJson.call(void 0, {
|
|
175
175
|
rows: summaries,
|
|
176
176
|
total_rows: selected.length,
|
|
177
177
|
source_total_rows: allRows.length
|
|
@@ -180,7 +180,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
180
180
|
}
|
|
181
181
|
const displayRows = summaryDisplayRows(summaries);
|
|
182
182
|
if (format === "csv") {
|
|
183
|
-
process.stdout.write(
|
|
183
|
+
process.stdout.write(_chunkSNJNPRIVjs.csvStringFromRows.call(void 0, displayRows));
|
|
184
184
|
return;
|
|
185
185
|
}
|
|
186
186
|
process.stdout.write(
|
|
@@ -195,7 +195,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
195
195
|
return;
|
|
196
196
|
}
|
|
197
197
|
if (format === "json") {
|
|
198
|
-
|
|
198
|
+
_chunkSNJNPRIVjs.printJson.call(void 0, {
|
|
199
199
|
rows: selected.map((row, index) => ({ __row: rowStart + index, ...row }))
|
|
200
200
|
});
|
|
201
201
|
return;
|
|
@@ -438,7 +438,7 @@ async function handleCsvRenderStart(options) {
|
|
|
438
438
|
if (log) {
|
|
439
439
|
detail = `
|
|
440
440
|
CSV render log:
|
|
441
|
-
${
|
|
441
|
+
${_chunkSNJNPRIVjs.clip.call(void 0, log, 2e3)}`;
|
|
442
442
|
}
|
|
443
443
|
} catch (e7) {
|
|
444
444
|
}
|
|
@@ -489,7 +489,7 @@ async function handleCsvRenderStatus(options) {
|
|
|
489
489
|
if (payload.pid) lines.push(`Render PID: ${payload.pid}`);
|
|
490
490
|
if (payload.url) lines.push(`Render URL: ${payload.url}`);
|
|
491
491
|
lines.push(`Render Health: ${payload.health_status}`);
|
|
492
|
-
|
|
492
|
+
_chunkSNJNPRIVjs.printCommandEnvelope.call(void 0, payload, {
|
|
493
493
|
json: options.json,
|
|
494
494
|
text: `${lines.join("\n")}
|
|
495
495
|
`
|
|
@@ -525,7 +525,7 @@ async function handleCsvRenderStop(options) {
|
|
|
525
525
|
};
|
|
526
526
|
const text = stopped.length > 0 ? `Stopped CSV render process(es): ${stopped.join(" ")}
|
|
527
527
|
` : "No running CSV render process found.\n";
|
|
528
|
-
|
|
528
|
+
_chunkSNJNPRIVjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
|
|
529
529
|
}
|
|
530
530
|
async function handleCsvRender(action, options) {
|
|
531
531
|
const normalized = _nullishCoalesce(action, () => ( "start"));
|