deepline 0.3.352 → 0.3.354
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/gtm.ts +1 -1
- package/dist/bundling-sources/sdk/src/index.ts +1 -20
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +2 -14
- package/dist/bundling-sources/shared_libs/integration-contracts/monitor-input-contract.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +54 -40
- package/dist/bundling-sources/shared_libs/plays/tool-categories.ts +19 -0
- package/dist/bundling-sources/shared_libs/plays/tool-category-descriptions.ts +1 -1
- package/dist/cli/auth-6UTAYZYH.js +31 -0
- package/dist/cli/{auth-6ZAHOPUC.mjs → auth-WLFZLPVL.mjs} +4 -4
- package/dist/cli/{billing-FTCAIIPO.js → billing-7MEEEXP4.js} +73 -73
- package/dist/cli/{billing-KE6CAAO5.mjs → billing-V3C4NWJ5.mjs} +4 -4
- package/dist/cli/{chunk-SM4G43FY.js → chunk-2OPNMVYN.js} +60 -60
- package/dist/cli/{chunk-L6BHFEYM.js → chunk-2XBK5U34.js} +45 -45
- package/dist/cli/{chunk-VLQPMYSU.js → chunk-3BA35GCA.js} +15 -15
- package/dist/cli/{chunk-5TQPSUU6.js → chunk-3GRDLU4K.js} +8 -8
- package/dist/cli/{chunk-4W3B4CNE.js → chunk-3NL4REIK.js} +9 -9
- package/dist/cli/{chunk-2JXDY3LE.js → chunk-427S6HR2.js} +2 -2
- package/dist/cli/{chunk-2PQR43BD.js → chunk-5MSRAFIT.js} +567 -2254
- package/dist/cli/{chunk-27JIZEAJ.js → chunk-B6SRSDBH.js} +1 -1
- package/dist/cli/{chunk-J5NA2TTX.js → chunk-C374C22Y.js} +2 -2
- package/dist/cli/{chunk-VQFBIGMU.js → chunk-C4YFKD7B.js} +48 -48
- package/dist/cli/{chunk-54IUI747.mjs → chunk-D454FGPP.mjs} +5 -5
- package/dist/cli/{chunk-NNMGGD5Z.mjs → chunk-EKWPCKO6.mjs} +1 -1
- package/dist/cli/{chunk-GVESPYSY.mjs → chunk-ERFN2QY4.mjs} +1 -102
- package/dist/cli/{chunk-J5MZZVDK.mjs → chunk-F75TFBVN.mjs} +2 -2
- package/dist/cli/{chunk-LVEDPCLJ.js → chunk-GEJDBXXM.js} +1 -102
- package/dist/cli/{chunk-HD2RKIVK.mjs → chunk-GOKAXPGN.mjs} +2 -2
- package/dist/cli/{chunk-SGFPTY4H.mjs → chunk-GVXFIFI3.mjs} +2 -2
- package/dist/cli/{chunk-EHYJYOXF.mjs → chunk-HEN4YY2R.mjs} +1 -1
- package/dist/cli/{chunk-WOHBA5PV.js → chunk-IF75RD6U.js} +1 -1
- package/dist/cli/{chunk-QOIXZWOE.js → chunk-IH23RQXJ.js} +8 -8
- package/dist/cli/{chunk-YIO2PX4J.mjs → chunk-JJEJHAGS.mjs} +161 -1848
- package/dist/cli/{chunk-OWG4Y7JK.mjs → chunk-JXXX7TZZ.mjs} +2 -2
- package/dist/cli/{chunk-TAC3JIFE.mjs → chunk-MI6ZP7XI.mjs} +1 -1
- package/dist/cli/{chunk-P6CGAEDF.js → chunk-NGXUDPUI.js} +26 -26
- package/dist/cli/{chunk-XK7AH232.mjs → chunk-NV6NBSPH.mjs} +4 -4
- package/dist/cli/{chunk-HMN5SUFL.mjs → chunk-OSVY4AVM.mjs} +1 -1
- package/dist/cli/{chunk-2ULH52Q7.mjs → chunk-PRBOPYT2.mjs} +3 -3
- package/dist/cli/{chunk-Q3CSXWFU.js → chunk-QFD3VXQS.js} +4 -4
- package/dist/cli/{chunk-HUZXWOSK.mjs → chunk-R4RG4FV5.mjs} +1 -1
- package/dist/cli/{chunk-V5JPRCQ2.js → chunk-RQJORG4F.js} +6 -6
- package/dist/cli/{chunk-ULX7APDZ.mjs → chunk-XAXLATYC.mjs} +1 -1
- package/dist/cli/{chunk-3EIK6KTE.mjs → chunk-YK2XGEY3.mjs} +1 -1
- package/dist/cli/client-5BVCEKM5.js +20 -0
- package/dist/cli/{client-25RBAXIY.mjs → client-TIVZM7GK.mjs} +3 -3
- package/dist/cli/{csv-7BOK5ZD7.mjs → csv-E62E67L3.mjs} +3 -3
- package/dist/cli/{csv-7XXJZ736.js → csv-VAH6JJHI.js} +12 -12
- package/dist/cli/{db-7Q7L5SKP.mjs → db-7MCHARO3.mjs} +4 -4
- package/dist/cli/{db-TFPYJCZ5.js → db-FKDG7M3X.js} +29 -29
- package/dist/cli/{describe-TQYXSFZ2.js → describe-3WPU75JN.js} +16 -16
- package/dist/cli/{describe-JTEJNG67.mjs → describe-ZSCT6QLG.mjs} +9 -9
- package/dist/cli/{executions-33MNWCXR.mjs → executions-NCSDSHIX.mjs} +4 -4
- package/dist/cli/{executions-XYCJEW5I.js → executions-UBJJ55LI.js} +6 -6
- package/dist/cli/{feedback-LXSEEBNL.mjs → feedback-RE2TLLSM.mjs} +3 -3
- package/dist/cli/{feedback-D3RSQCQE.js → feedback-UBKR7RHE.js} +7 -7
- package/dist/cli/git-44MZ22NK.js +23 -0
- package/dist/cli/{git-IES2ZBYO.mjs → git-AQNH4NAK.mjs} +4 -4
- package/dist/cli/index.js +79 -79
- package/dist/cli/index.mjs +31 -31
- package/dist/cli/{legacy-noops-YIOGLZXX.js → legacy-noops-C7UKYNEP.js} +7 -7
- package/dist/cli/{legacy-noops-ILCWGUAR.mjs → legacy-noops-ZNMQTD2K.mjs} +4 -4
- package/dist/cli/{monitors-R3CZHVU2.mjs → monitors-CUXMXMGC.mjs} +7 -7
- package/dist/cli/{monitors-MQSSH43U.js → monitors-NC3UXIDA.js} +96 -96
- package/dist/cli/{org-62P7YRHW.js → org-DHAXJFQ2.js} +60 -60
- package/dist/cli/{org-Z75A63SM.mjs → org-IIW7IEJ7.mjs} +4 -4
- package/dist/cli/{play-FUUFAV34.mjs → play-4MMSBBJP.mjs} +8 -8
- package/dist/cli/play-D46UW6OL.js +153 -0
- package/dist/cli/{providers-Q2VZF65A.js → providers-OLCJYWZM.js} +7 -7
- package/dist/cli/{providers-OQNPHTKA.mjs → providers-YX7CS6XU.mjs} +4 -4
- package/dist/cli/{quickstart-7X6HUVWX.mjs → quickstart-EEXIL4UP.mjs} +3 -3
- package/dist/cli/{quickstart-VZ7BYW4Y.js → quickstart-ZVB2X32N.js} +5 -5
- package/dist/cli/search-QH2DTRZK.js +26 -0
- package/dist/cli/{search-SJKLKSER.mjs → search-U3OEMJVA.mjs} +5 -5
- package/dist/cli/{secrets-JQUKCHON.mjs → secrets-DQBMEYHR.mjs} +4 -4
- package/dist/cli/{secrets-EKH3FPAO.js → secrets-Q5WQHPIH.js} +13 -13
- package/dist/cli/{sessions-RSFW7OYD.mjs → sessions-EUUOJ42J.mjs} +4 -4
- package/dist/cli/{sessions-NDLKL26C.js → sessions-RH7HXUZT.js} +5 -5
- package/dist/cli/{settings-DR4YKJTJ.mjs → settings-3YYNL5RL.mjs} +7 -7
- package/dist/cli/{settings-HPUE5C2G.js → settings-M4ODWSAR.js} +74 -74
- package/dist/cli/{setup-4FT6NMU6.mjs → setup-377NYJFE.mjs} +6 -6
- package/dist/cli/{setup-Y2HCWQ4D.js → setup-UIM7ARVP.js} +41 -41
- package/dist/cli/skills-K4SF37HO.js +28 -0
- package/dist/cli/{skills-EQR5K67V.mjs → skills-S4XLO4XM.mjs} +4 -4
- package/dist/cli/tools-BK5GMDP4.js +40 -0
- package/dist/cli/{tools-ZRCNCMOO.mjs → tools-VECGJHSR.mjs} +6 -6
- package/dist/cli/{update-UJNIMTRS.mjs → update-EXH5POHP.mjs} +6 -6
- package/dist/cli/update-U5B3IFKL.js +28 -0
- package/dist/cli/{workflow-EN3TQFKU.mjs → workflow-5BLDGBNS.mjs} +5 -5
- package/dist/cli/{workflow-4M63OBSC.js → workflow-YQTJKRZ3.js} +15 -15
- package/dist/{client-4DbE-U6e.d.ts → client-Chzd2LFo.d.ts} +1 -25
- package/dist/{client-DIJpwhl-.d.mts → client-jV6bQunU.d.mts} +1 -25
- package/dist/helpers.d.mts +1 -1
- package/dist/helpers.d.ts +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +25 -39
- package/dist/index.mjs +23 -37
- package/dist/install-integrity.json +83 -83
- package/dist/monitor-fleet-contract.js +3 -3
- package/dist/monitor-fleet-contract.mjs +2 -2
- package/dist/monitor-input-contract.js +2 -2
- package/dist/monitor-input-contract.mjs +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/bundling-sources/shared_libs/plays/bootstrap-routes.ts +0 -127
- package/dist/cli/auth-ZYLA55Y2.js +0 -31
- package/dist/cli/client-AY2RSEDD.js +0 -20
- package/dist/cli/git-56MVO4Y5.js +0 -23
- package/dist/cli/play-K4RS3VMC.js +0 -153
- package/dist/cli/search-H3TNOWKP.js +0 -26
- package/dist/cli/skills-OGQZAKOB.js +0 -28
- package/dist/cli/tools-3HM7A7XQ.js +0 -40
- package/dist/cli/update-ZB6CXLCS.js +0 -28
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XAXLATYC.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YK2XGEY3.mjs";
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
import {
|
|
@@ -59,7 +59,7 @@ function monitorSpec(value, path, issues) {
|
|
|
59
59
|
code: "PLAY_BINDING_NOT_IN_MONITOR_SPEC",
|
|
60
60
|
path: authoredMonitorFieldPath(path, "play"),
|
|
61
61
|
message: "A monitor does not own Play bindings.",
|
|
62
|
-
suggestion: "Declare sqlListeners in the Play
|
|
62
|
+
suggestion: "Declare sqlListeners in the Play."
|
|
63
63
|
});
|
|
64
64
|
continue;
|
|
65
65
|
}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkRQJORG4Fjs = require('./chunk-RQJORG4F.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkQFD3VXQSjs = require('./chunk-QFD3VXQS.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 } = _chunkRQJORG4Fjs.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
|
+
_chunkRQJORG4Fjs.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 } = _chunkRQJORG4Fjs.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
|
+
_chunkRQJORG4Fjs.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 } = _chunkRQJORG4Fjs.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
|
+
_chunkRQJORG4Fjs.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 } = _chunkRQJORG4Fjs.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 } = _chunkRQJORG4Fjs.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
|
+
_chunkRQJORG4Fjs.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 } = _chunkRQJORG4Fjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkRQJORG4Fjs.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 } = _chunkRQJORG4Fjs.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
|
+
_chunkRQJORG4Fjs.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 } = _chunkRQJORG4Fjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkRQJORG4Fjs.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 = _chunkQFD3VXQSjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkRQJORG4Fjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkRQJORG4Fjs.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 } = _chunkRQJORG4Fjs.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
|
+
_chunkRQJORG4Fjs.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 } = _chunkRQJORG4Fjs.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
|
+
_chunkRQJORG4Fjs.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 } = _chunkRQJORG4Fjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkRQJORG4Fjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OSVY4AVM.mjs";
|
|
5
5
|
import {
|
|
6
6
|
resolveShellSpawn,
|
|
7
7
|
runSkillsCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-F75TFBVN.mjs";
|
|
9
9
|
import {
|
|
10
10
|
printCommandEnvelope
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XAXLATYC.mjs";
|
|
12
12
|
import {
|
|
13
13
|
autoDetectBaseUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-YK2XGEY3.mjs";
|
|
15
15
|
|
|
16
16
|
// src/cli/commands/update.ts
|
|
17
17
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EKWPCKO6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope,
|
|
6
6
|
renderCommandEnvelopeText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XAXLATYC.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveConfig,
|
|
10
10
|
sdkCliStateDirPath
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YK2XGEY3.mjs";
|
|
12
12
|
|
|
13
13
|
// src/cli/commands/search.ts
|
|
14
14
|
import { Option } from "commander";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkB6SRSDBHjs = require('./chunk-B6SRSDBH.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -743,9 +743,9 @@ function resolveCliCommandContext(inputConfig, requestedScope) {
|
|
|
743
743
|
}
|
|
744
744
|
|
|
745
745
|
// src/version.ts
|
|
746
|
-
var SDK_VERSION =
|
|
747
|
-
var SDK_API_MAJOR =
|
|
748
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
746
|
+
var SDK_VERSION = _chunkB6SRSDBHjs.SDK_RELEASE.version;
|
|
747
|
+
var SDK_API_MAJOR = _chunkB6SRSDBHjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
748
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkB6SRSDBHjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
749
749
|
|
|
750
750
|
// src/agent-runtime.ts
|
|
751
751
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkQFD3VXQSjs = require('./chunk-QFD3VXQS.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
@@ -225,8 +225,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
225
225
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
226
226
|
var defaultBrowserCommandRunner = childProcess;
|
|
227
227
|
function getAuthedHttpClient() {
|
|
228
|
-
const config =
|
|
229
|
-
return { config, http: new (0,
|
|
228
|
+
const config = _chunkQFD3VXQSjs.resolveConfig.call(void 0, );
|
|
229
|
+
return { config, http: new (0, _chunkQFD3VXQSjs.HttpClient)(config) };
|
|
230
230
|
}
|
|
231
231
|
function stableOsUserId() {
|
|
232
232
|
try {
|
|
@@ -566,7 +566,7 @@ function collectLocalEnvInfo() {
|
|
|
566
566
|
os: `${process.platform} ${process.arch}`,
|
|
567
567
|
node_version: process.version,
|
|
568
568
|
home_dir: homeDir,
|
|
569
|
-
agent_runtime:
|
|
569
|
+
agent_runtime: _chunkQFD3VXQSjs.detectAgentRuntime.call(void 0, )
|
|
570
570
|
};
|
|
571
571
|
const env = process.env;
|
|
572
572
|
const optional = {
|
|
@@ -813,9 +813,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
813
813
|
}
|
|
814
814
|
function withAgentCommandContext(value) {
|
|
815
815
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
816
|
-
return
|
|
816
|
+
return _chunkQFD3VXQSjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
817
817
|
...valueRecord,
|
|
818
|
-
command_context:
|
|
818
|
+
command_context: _chunkQFD3VXQSjs.resolveCliCommandContext.call(void 0, )
|
|
819
819
|
} : value;
|
|
820
820
|
}
|
|
821
821
|
function printJson(value, fields) {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunk3NL4REIKjs = require('./chunk-3NL4REIK.js');
|
|
7
|
+
require('./chunk-LA46MMTL.js');
|
|
8
|
+
require('./chunk-QFD3VXQS.js');
|
|
9
|
+
require('./chunk-XNYIZMNQ.js');
|
|
10
|
+
require('./chunk-B6SRSDBH.js');
|
|
11
|
+
require('./chunk-S6R3OX7B.js');
|
|
12
|
+
require('./chunk-7P5AA3SN.js');
|
|
13
|
+
require('./chunk-OG64RBAC.js');
|
|
14
|
+
require('./chunk-COGTRVWW.js');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
exports.DeeplineClient = _chunk3NL4REIKjs.DeeplineClient; exports.MONITOR_JOB_PHASES = _chunk3NL4REIKjs.MONITOR_JOB_PHASES; exports.MONITOR_JOB_RECONCILIATION_STATES = _chunk3NL4REIKjs.MONITOR_JOB_RECONCILIATION_STATES; exports.MONITOR_JOB_STATES = _chunk3NL4REIKjs.MONITOR_JOB_STATES;
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
MONITOR_JOB_PHASES,
|
|
4
4
|
MONITOR_JOB_RECONCILIATION_STATES,
|
|
5
5
|
MONITOR_JOB_STATES
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EKWPCKO6.mjs";
|
|
7
7
|
import "./chunk-CBVIJSHF.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-YK2XGEY3.mjs";
|
|
9
9
|
import "./chunk-DLIRSHV6.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-HEN4YY2R.mjs";
|
|
11
11
|
import "./chunk-6IKARAYD.mjs";
|
|
12
12
|
import "./chunk-NXGCO4JB.mjs";
|
|
13
13
|
import "./chunk-WZYKRD7T.mjs";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
printCommandEnvelope,
|
|
5
5
|
printJson,
|
|
6
6
|
readCsvRows
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-XAXLATYC.mjs";
|
|
8
|
+
import "./chunk-YK2XGEY3.mjs";
|
|
9
9
|
import "./chunk-DLIRSHV6.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-HEN4YY2R.mjs";
|
|
11
11
|
import "./chunk-NXGCO4JB.mjs";
|
|
12
12
|
import "./chunk-WZYKRD7T.mjs";
|
|
13
13
|
import "./chunk-KRD6H754.mjs";
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
7
|
+
var _chunkRQJORG4Fjs = require('./chunk-RQJORG4F.js');
|
|
8
|
+
require('./chunk-QFD3VXQS.js');
|
|
9
9
|
require('./chunk-XNYIZMNQ.js');
|
|
10
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-B6SRSDBH.js');
|
|
11
11
|
require('./chunk-7P5AA3SN.js');
|
|
12
12
|
require('./chunk-OG64RBAC.js');
|
|
13
13
|
require('./chunk-COGTRVWW.js');
|
|
@@ -126,7 +126,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
126
126
|
column.length,
|
|
127
127
|
...rows.map((row) => {
|
|
128
128
|
const value = _nullishCoalesce(row[column], () => ( ""));
|
|
129
|
-
return (verbose ? value :
|
|
129
|
+
return (verbose ? value : _chunkRQJORG4Fjs.clip.call(void 0, value, 42)).length;
|
|
130
130
|
})
|
|
131
131
|
)
|
|
132
132
|
])
|
|
@@ -136,7 +136,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
136
136
|
const body = rows.map(
|
|
137
137
|
(row) => columns.map((column) => {
|
|
138
138
|
const raw = _nullishCoalesce(row[column], () => ( ""));
|
|
139
|
-
const display = verbose ? raw :
|
|
139
|
+
const display = verbose ? raw : _chunkRQJORG4Fjs.clip.call(void 0, raw, 42);
|
|
140
140
|
return display.padEnd(widths[column]);
|
|
141
141
|
}).join(" | ")
|
|
142
142
|
);
|
|
@@ -156,7 +156,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
156
156
|
{ exitCode: 2 }
|
|
157
157
|
);
|
|
158
158
|
}
|
|
159
|
-
const allRows =
|
|
159
|
+
const allRows = _chunkRQJORG4Fjs.readCsvRows.call(void 0, csvPath);
|
|
160
160
|
const [rowStart, rowEnd] = parseRowRange(options.rows);
|
|
161
161
|
const rows = options.summary && options.rows === void 0 ? allRows : selectRows(allRows, rowStart, rowEnd);
|
|
162
162
|
const { rows: selected, columns } = selectColumns(
|
|
@@ -169,7 +169,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
169
169
|
if (options.summary) {
|
|
170
170
|
const summaries = summarizeColumns(selected, columns);
|
|
171
171
|
if (format === "json") {
|
|
172
|
-
|
|
172
|
+
_chunkRQJORG4Fjs.printJson.call(void 0, {
|
|
173
173
|
rows: summaries,
|
|
174
174
|
total_rows: selected.length,
|
|
175
175
|
source_total_rows: allRows.length
|
|
@@ -178,7 +178,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
178
178
|
}
|
|
179
179
|
const displayRows = summaryDisplayRows(summaries);
|
|
180
180
|
if (format === "csv") {
|
|
181
|
-
process.stdout.write(
|
|
181
|
+
process.stdout.write(_chunkRQJORG4Fjs.csvStringFromRows.call(void 0, displayRows));
|
|
182
182
|
return;
|
|
183
183
|
}
|
|
184
184
|
process.stdout.write(
|
|
@@ -193,7 +193,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
193
193
|
return;
|
|
194
194
|
}
|
|
195
195
|
if (format === "json") {
|
|
196
|
-
|
|
196
|
+
_chunkRQJORG4Fjs.printJson.call(void 0, {
|
|
197
197
|
rows: selected.map((row, index) => ({ __row: rowStart + index, ...row }))
|
|
198
198
|
});
|
|
199
199
|
return;
|
|
@@ -436,7 +436,7 @@ async function handleCsvRenderStart(options) {
|
|
|
436
436
|
if (log) {
|
|
437
437
|
detail = `
|
|
438
438
|
CSV render log:
|
|
439
|
-
${
|
|
439
|
+
${_chunkRQJORG4Fjs.clip.call(void 0, log, 2e3)}`;
|
|
440
440
|
}
|
|
441
441
|
} catch (e7) {
|
|
442
442
|
}
|
|
@@ -487,7 +487,7 @@ async function handleCsvRenderStatus(options) {
|
|
|
487
487
|
if (payload.pid) lines.push(`Render PID: ${payload.pid}`);
|
|
488
488
|
if (payload.url) lines.push(`Render URL: ${payload.url}`);
|
|
489
489
|
lines.push(`Render Health: ${payload.health_status}`);
|
|
490
|
-
|
|
490
|
+
_chunkRQJORG4Fjs.printCommandEnvelope.call(void 0, payload, {
|
|
491
491
|
json: options.json,
|
|
492
492
|
text: `${lines.join("\n")}
|
|
493
493
|
`
|
|
@@ -523,7 +523,7 @@ async function handleCsvRenderStop(options) {
|
|
|
523
523
|
};
|
|
524
524
|
const text = stopped.length > 0 ? `Stopped CSV render process(es): ${stopped.join(" ")}
|
|
525
525
|
` : "No running CSV render process found.\n";
|
|
526
|
-
|
|
526
|
+
_chunkRQJORG4Fjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
|
|
527
527
|
}
|
|
528
528
|
async function handleCsvRender(action, options) {
|
|
529
529
|
const normalized = _nullishCoalesce(action, () => ( "start"));
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient,
|
|
6
6
|
planCustomerDbQuery
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EKWPCKO6.mjs";
|
|
8
8
|
import "./chunk-CBVIJSHF.mjs";
|
|
9
9
|
import {
|
|
10
10
|
argsWantJson,
|
|
@@ -15,12 +15,12 @@ import {
|
|
|
15
15
|
printCommandEnvelope,
|
|
16
16
|
recordRows,
|
|
17
17
|
shouldEmitJson
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-XAXLATYC.mjs";
|
|
19
19
|
import {
|
|
20
20
|
CustomerDbQueryOutcomeUnknownError
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-YK2XGEY3.mjs";
|
|
22
22
|
import "./chunk-DLIRSHV6.mjs";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-HEN4YY2R.mjs";
|
|
24
24
|
import "./chunk-6IKARAYD.mjs";
|
|
25
25
|
import {
|
|
26
26
|
DeeplineError
|