deepline 0.3.577 → 0.3.578
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/cli/{agents-SUJRATC2.mjs → agents-LRBANBZH.mjs} +10 -27
- package/dist/cli/{agents-ZIGK3FQ2.js → agents-MCU3ITQZ.js} +37 -54
- package/dist/cli/{auth-TRKPRZK6.mjs → auth-5BJKVYMQ.mjs} +5 -5
- package/dist/cli/auth-VSW3MTFO.js +44 -0
- package/dist/cli/{billing-WPQT3QRS.mjs → billing-EBBI4MVL.mjs} +9 -9
- package/dist/cli/{billing-6RAF4DQY.js → billing-NT57POHH.js} +102 -102
- package/dist/cli/{chunk-QXAPAHIG.js → chunk-24FGR73C.js} +13 -13
- package/dist/cli/{chunk-2NFDB6CL.js → chunk-25SSGQJJ.js} +2 -2
- package/dist/cli/{chunk-APOWCBO7.js → chunk-27HAQRGH.js} +23 -23
- package/dist/cli/{chunk-WP4Q5PTK.mjs → chunk-3GF33QJJ.mjs} +4 -4
- package/dist/cli/{chunk-X5ZE7K4J.js → chunk-3ZUKYLC6.js} +8 -8
- package/dist/cli/{chunk-MDP3CNDM.mjs → chunk-4CNHOBUO.mjs} +2 -2
- package/dist/cli/{chunk-LXM36EXW.mjs → chunk-4KNRCUKY.mjs} +11 -11
- package/dist/cli/{chunk-O35BHZLQ.mjs → chunk-4LMTY4RQ.mjs} +2 -2
- package/dist/cli/{chunk-ID5WQZ2H.mjs → chunk-4YSJOSBG.mjs} +1 -1
- package/dist/cli/{chunk-FRYLXDNP.js → chunk-5IMWXYVB.js} +53 -53
- package/dist/cli/{chunk-RVICQWXU.js → chunk-5LCV36BR.js} +20 -20
- package/dist/cli/{chunk-DA5C5WOI.mjs → chunk-6UFTWNC5.mjs} +2 -2
- package/dist/cli/{chunk-4ANO4DM5.mjs → chunk-7J473OJ5.mjs} +1 -1
- package/dist/cli/{chunk-RSZSKTRC.js → chunk-A7NKOXBV.js} +4 -4
- package/dist/cli/{chunk-LUQMTNFB.mjs → chunk-ALXYCC4K.mjs} +1 -1
- package/dist/cli/{chunk-ORLJIJVX.mjs → chunk-AZFSCPYK.mjs} +0 -11
- package/dist/cli/{chunk-CZF2LKIT.js → chunk-BPMA4S3O.js} +16 -16
- package/dist/cli/{chunk-GFWVBXAK.mjs → chunk-CFG3ZM7M.mjs} +2 -2
- package/dist/cli/{chunk-FHYNK7GL.mjs → chunk-CFLAGRWL.mjs} +1 -1
- package/dist/cli/{chunk-OBZB4J7B.js → chunk-CPNTDIJK.js} +1 -1
- package/dist/cli/{chunk-ZHJIDDYR.js → chunk-CS36W3RL.js} +26 -26
- package/dist/cli/{chunk-I44Y4MPK.mjs → chunk-CSPOWVWS.mjs} +1 -1
- package/dist/cli/{chunk-MTM6WNPP.mjs → chunk-DDJN4RR6.mjs} +4 -4
- package/dist/cli/{chunk-772IV64Y.js → chunk-G7PH2QVM.js} +5 -5
- package/dist/cli/{chunk-MVCKEPWF.mjs → chunk-H7DY5NQ3.mjs} +5 -5
- package/dist/cli/{chunk-FXN5WSTY.js → chunk-HGQT6EGK.js} +20 -20
- package/dist/cli/{chunk-NDMKFA6W.mjs → chunk-HKZN33F2.mjs} +3 -3
- package/dist/cli/{chunk-X7Y4T7CV.mjs → chunk-HZXF2HFF.mjs} +5 -5
- package/dist/cli/{chunk-CCGFSELM.mjs → chunk-IFWB4BYZ.mjs} +3 -3
- package/dist/cli/{chunk-ATW77ZBL.mjs → chunk-ITYSPUKD.mjs} +2 -2
- package/dist/cli/{chunk-MTHAVEQN.js → chunk-J7PCSLRY.js} +5 -5
- package/dist/cli/{chunk-Q3WDT3YA.mjs → chunk-JQPFICW3.mjs} +1 -1
- package/dist/cli/{chunk-APJ6YIYW.mjs → chunk-LYZPGP3P.mjs} +1 -1
- package/dist/cli/{chunk-EV47DV25.js → chunk-M3ITWEGS.js} +41 -41
- package/dist/cli/{chunk-KVDIN2YW.js → chunk-MXPCTF57.js} +0 -11
- package/dist/cli/{chunk-NRBIYZUG.js → chunk-NEH7NZFT.js} +10 -10
- package/dist/cli/{chunk-XQTJET2Y.mjs → chunk-NTHN7ODR.mjs} +1 -1
- package/dist/cli/{chunk-OQQDNJ2D.mjs → chunk-OAQYLTUN.mjs} +5 -5
- package/dist/cli/{chunk-MOWABWHT.js → chunk-P35YQAUC.js} +100 -100
- package/dist/cli/{chunk-U6Y4HX6J.mjs → chunk-PJXPHUAR.mjs} +3 -3
- package/dist/cli/{chunk-DJP7CJQC.js → chunk-PXMCPEE2.js} +3 -3
- package/dist/cli/{chunk-N6EU2FRF.mjs → chunk-QPOJLAFT.mjs} +2 -2
- package/dist/cli/{chunk-Y37JQZBP.js → chunk-RLPPLS6A.js} +6 -6
- package/dist/cli/{chunk-JWLV3XRF.js → chunk-RWDYULX2.js} +7 -7
- package/dist/cli/{chunk-425SUSDJ.mjs → chunk-T2CCLYHV.mjs} +5 -5
- package/dist/cli/{chunk-NVJGVNEN.js → chunk-UKSOIH2P.js} +5 -5
- package/dist/cli/{chunk-H6NF5SNY.mjs → chunk-VMCJKGZS.mjs} +2 -2
- package/dist/cli/{chunk-ITK5TGQ7.js → chunk-VVZ7JZMQ.js} +15 -15
- package/dist/cli/{chunk-EKZ6JD6K.js → chunk-W47SXEWQ.js} +9 -9
- package/dist/cli/{chunk-CWHXE6HJ.mjs → chunk-W66GXHYR.mjs} +1 -1
- package/dist/cli/{chunk-JHQ7FORY.js → chunk-XBO4ERH6.js} +3 -3
- package/dist/cli/{chunk-NMSDMXYS.js → chunk-XE66BGLB.js} +2 -2
- package/dist/cli/{chunk-EJN43WGD.js → chunk-XX7TZM4N.js} +48 -48
- package/dist/cli/{chunk-V5SF5CJ7.js → chunk-Y2TK7OXN.js} +2 -2
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{concurrent-runs-help-6CGXMTFQ.mjs → concurrent-runs-help-2MHLIUC6.mjs} +6 -6
- package/dist/cli/concurrent-runs-help-ATT2GVTQ.js +22 -0
- package/dist/cli/{csv-L7P6PC6I.mjs → csv-J6SRBMOT.mjs} +4 -4
- package/dist/cli/{csv-7UZT2LGE.js → csv-RYYDAC76.js} +13 -13
- package/dist/cli/{db-7KETOIZY.js → db-5QLH6QK5.js} +27 -27
- package/dist/cli/{db-4OOEC5KV.mjs → db-WK226TM7.mjs} +6 -6
- package/dist/cli/describe-Q27SRQWM.js +50 -0
- package/dist/cli/{describe-M6HEFS46.mjs → describe-UBSCFPH5.mjs} +18 -18
- package/dist/cli/{executions-UIR6RQFM.js → executions-AGV5V7SD.js} +8 -8
- package/dist/cli/{executions-U27R2LY4.mjs → executions-XF5BNCFS.mjs} +6 -6
- package/dist/cli/{feedback-CQ5FUE4T.js → feedback-3RDEZE2M.js} +14 -14
- package/dist/cli/{feedback-UUUISTGQ.mjs → feedback-LT3PDK72.mjs} +6 -6
- package/dist/cli/{git-DTILSRIQ.mjs → git-7VBTCCBV.mjs} +5 -5
- package/dist/cli/git-BBTP3H7J.js +26 -0
- package/dist/cli/index.js +148 -148
- package/dist/cli/index.mjs +47 -47
- package/dist/cli/{integrations-NNACG3HD.mjs → integrations-E7QRWMKZ.mjs} +7 -7
- package/dist/cli/{integrations-ABBLLEJH.js → integrations-JP732FQB.js} +29 -29
- package/dist/cli/{legacy-noops-KQW7AIYU.mjs → legacy-noops-UFNQBPIT.mjs} +6 -6
- package/dist/cli/{legacy-noops-3JLS5OD7.js → legacy-noops-UTL4W5WE.js} +9 -9
- package/dist/cli/{mcp-JPBFKR26.js → mcp-5X4XFB4V.js} +24 -24
- package/dist/cli/{mcp-7NHGPYZH.mjs → mcp-YHETA3AU.mjs} +4 -4
- package/dist/cli/{monitors-J6HK5KCN.js → monitors-AN6KH4XY.js} +100 -100
- package/dist/cli/{monitors-JOE2DALW.mjs → monitors-WFVZ42OQ.mjs} +7 -7
- package/dist/cli/{org-WFZFQIXQ.js → org-CN3XJZLA.js} +121 -121
- package/dist/cli/{org-VZZ4LN4O.mjs → org-OMDV7WDF.mjs} +6 -6
- package/dist/cli/{outcomes-RZWL47BJ.js → outcomes-7HCZ6K3Q.js} +14 -14
- package/dist/cli/{outcomes-H2WEZYNT.mjs → outcomes-I4ZTG5ND.mjs} +6 -6
- package/dist/cli/{play-2ZEBUF5T.js → play-45VXZ57A.js} +336 -336
- package/dist/cli/{play-KMWA7GVN.mjs → play-TSNBSHGA.mjs} +19 -19
- package/dist/cli/{providers-2BIA3OWA.mjs → providers-4TB56ZLK.mjs} +6 -6
- package/dist/cli/{providers-57AZWFSW.js → providers-RB3TT7AE.js} +9 -9
- package/dist/cli/{quickstart-NSDM2RXV.mjs → quickstart-XHZ3PG5I.mjs} +4 -4
- package/dist/cli/{quickstart-EYJFERQO.js → quickstart-ZNDM6VUD.js} +6 -6
- package/dist/cli/{run-X6H5SCEE.mjs → run-7PY4G6GB.mjs} +23 -23
- package/dist/cli/{run-BW62DZGQ.js → run-XNEJGAKV.js} +44 -44
- package/dist/cli/{search-2VN74P5N.mjs → search-BG7KCIOG.mjs} +7 -7
- package/dist/cli/search-ZBU5GW4W.js +32 -0
- package/dist/cli/{search-output-SFWQVBYU.js → search-output-3ZBNTHGO.js} +6 -6
- package/dist/cli/{search-output-VN7XOZEQ.mjs → search-output-TWKKP2BE.mjs} +4 -4
- package/dist/cli/{secrets-4M26N436.mjs → secrets-AZZCE7E3.mjs} +6 -6
- package/dist/cli/{secrets-OIPKG2H7.js → secrets-FNR6MX6A.js} +15 -15
- package/dist/cli/sessions-GCY62GAW.js +23 -0
- package/dist/cli/{sessions-SYFH23L3.mjs → sessions-ZAMKN3AF.mjs} +6 -6
- package/dist/cli/{settings-5NB4HZYL.js → settings-QGASFWV3.js} +85 -85
- package/dist/cli/{settings-4HPF3T4P.mjs → settings-WKWOOOI2.mjs} +12 -12
- package/dist/cli/{setup-JV3F5C7P.js → setup-KUZDCR3F.js} +49 -49
- package/dist/cli/{setup-CI74F6CL.mjs → setup-U36W42LE.mjs} +9 -9
- package/dist/cli/{skills-76CM4GHO.mjs → skills-25CSZQIK.mjs} +7 -7
- package/dist/cli/skills-43DHMLRW.js +37 -0
- package/dist/cli/{tools-SVGLDWOC.mjs → tools-4NZQ22AA.mjs} +17 -17
- package/dist/cli/tools-5BGKNMFU.js +57 -0
- package/dist/cli/{update-KPMDOZRX.mjs → update-CJYP36TG.mjs} +9 -9
- package/dist/cli/update-CUO2MTB6.js +37 -0
- package/dist/cli/{views-R37NWN6J.js → views-76UIPWJD.js} +21 -21
- package/dist/cli/{views-KW54SAES.mjs → views-GYGE7FSV.mjs} +6 -6
- package/dist/cli/{workflow-3MIRQV4Q.mjs → workflow-LZSWALZS.mjs} +7 -7
- package/dist/cli/{workflow-BKRKUNYS.js → workflow-NCVXBATM.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +116 -116
- 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-A5U6GVCF.js +0 -44
- package/dist/cli/concurrent-runs-help-VJDPVGXM.js +0 -22
- package/dist/cli/describe-RLWJYZIR.js +0 -50
- package/dist/cli/git-ZGDD3BVX.js +0 -26
- package/dist/cli/search-HYRDZVPQ.js +0 -32
- package/dist/cli/sessions-5P2KZOQE.js +0 -23
- package/dist/cli/skills-PJ5EL32L.js +0 -37
- package/dist/cli/tools-Y5ID2SPK.js +0 -57
- package/dist/cli/update-FSUMCMNZ.js +0 -37
|
@@ -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.578",
|
|
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."
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkHGQT6EGKjs = require('./chunk-HGQT6EGK.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkXBO4ERH6js = require('./chunk-XBO4ERH6.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 } = _chunkHGQT6EGKjs.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
|
+
_chunkHGQT6EGKjs.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 } = _chunkHGQT6EGKjs.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
|
+
_chunkHGQT6EGKjs.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 } = _chunkHGQT6EGKjs.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
|
+
_chunkHGQT6EGKjs.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 } = _chunkHGQT6EGKjs.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 } = _chunkHGQT6EGKjs.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
|
+
_chunkHGQT6EGKjs.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 } = _chunkHGQT6EGKjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkHGQT6EGKjs.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 } = _chunkHGQT6EGKjs.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
|
+
_chunkHGQT6EGKjs.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 } = _chunkHGQT6EGKjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkHGQT6EGKjs.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 = _chunkXBO4ERH6js.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkHGQT6EGKjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkHGQT6EGKjs.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 } = _chunkHGQT6EGKjs.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
|
+
_chunkHGQT6EGKjs.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 } = _chunkHGQT6EGKjs.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
|
+
_chunkHGQT6EGKjs.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 } = _chunkHGQT6EGKjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
} from "./chunk-5AEDYVB6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ITYSPUKD.mjs";
|
|
7
7
|
import {
|
|
8
8
|
errorToJsonPayload,
|
|
9
9
|
printCommandEnvelope,
|
|
10
10
|
resolveSdkCliFailureExitCode
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4LMTY4RQ.mjs";
|
|
12
12
|
import {
|
|
13
13
|
resolveConfig,
|
|
14
14
|
sdkCliStateDirPath
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-W66GXHYR.mjs";
|
|
16
16
|
|
|
17
17
|
// src/cli/commands/search.ts
|
|
18
18
|
import { Option } from "commander";
|
|
@@ -134,7 +134,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
134
134
|
}
|
|
135
135
|
const client = new DeeplineClient();
|
|
136
136
|
const json = options.json === true;
|
|
137
|
-
const renderer = json ? void 0 : await import("./search-output-
|
|
137
|
+
const renderer = json ? void 0 : await import("./search-output-TWKKP2BE.mjs");
|
|
138
138
|
const searches = [];
|
|
139
139
|
const chunks = [];
|
|
140
140
|
const refs = /* @__PURE__ */ new Map();
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunk5IMWXYVBjs = require('./chunk-5IMWXYVB.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkTJCENACZjs = require('./chunk-TJCENACZ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkXBO4ERH6js = require('./chunk-XBO4ERH6.js');
|
|
11
11
|
|
|
12
12
|
// src/cli/concurrent-runs-help.ts
|
|
13
13
|
var CONCURRENT_RUNS_HELP_COMMANDS = /* @__PURE__ */ new Set([
|
|
@@ -24,11 +24,11 @@ function concurrentRunsLine(payload) {
|
|
|
24
24
|
return plans ? `${here} Plan limits: ${plans}.` : here;
|
|
25
25
|
}
|
|
26
26
|
async function concurrentRunsHelpStatus(timeoutMs = 2e3) {
|
|
27
|
-
const baseUrl =
|
|
28
|
-
const apiKey =
|
|
27
|
+
const baseUrl = _chunkXBO4ERH6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
28
|
+
const apiKey = _chunkXBO4ERH6js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
29
29
|
if (!apiKey) return "";
|
|
30
30
|
try {
|
|
31
|
-
const { status, data } = await
|
|
31
|
+
const { status, data } = await _chunk5IMWXYVBjs.httpJson.call(void 0,
|
|
32
32
|
"GET",
|
|
33
33
|
`${baseUrl}/api/v2/billing/entitlements`,
|
|
34
34
|
apiKey,
|
|
@@ -4,22 +4,22 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HZXF2HFF.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment,
|
|
10
10
|
resolveShellSpawn,
|
|
11
11
|
syncSdkSkillsIfNeeded
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OAQYLTUN.mjs";
|
|
13
13
|
import {
|
|
14
14
|
addJsonNotice,
|
|
15
15
|
isJsonOutputMode
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4LMTY4RQ.mjs";
|
|
17
17
|
import {
|
|
18
18
|
resolveApiKeyForBaseUrl
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-W66GXHYR.mjs";
|
|
20
20
|
import {
|
|
21
21
|
SDK_VERSION
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-CFLAGRWL.mjs";
|
|
23
23
|
|
|
24
24
|
// src/cli/compatibility-catalog.ts
|
|
25
25
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkXBO4ERH6js = require('./chunk-XBO4ERH6.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkA7NKOXBVjs = require('./chunk-A7NKOXBV.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -331,7 +331,7 @@ function buildEnvironmentContext() {
|
|
|
331
331
|
node_version: process.version,
|
|
332
332
|
runtime: "Node.js",
|
|
333
333
|
hostname: _os.hostname.call(void 0, ),
|
|
334
|
-
agent_runtime:
|
|
334
|
+
agent_runtime: _chunkA7NKOXBVjs.detectAgentRuntime.call(void 0, )
|
|
335
335
|
};
|
|
336
336
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
337
337
|
const normalized = _optionalChain([process, 'access', _6 => _6.env, 'access', _7 => _7[key], 'optionalAccess', _8 => _8.trim, 'call', _9 => _9()]);
|
|
@@ -352,18 +352,18 @@ function buildEnvironmentContext() {
|
|
|
352
352
|
return context;
|
|
353
353
|
}
|
|
354
354
|
function failureReportHeaders(apiKey) {
|
|
355
|
-
const agentSessionId =
|
|
355
|
+
const agentSessionId = _chunkA7NKOXBVjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
356
356
|
return {
|
|
357
|
-
...
|
|
357
|
+
..._chunkA7NKOXBVjs.deploymentProtectionHeaders.call(void 0, ),
|
|
358
358
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
|
|
359
359
|
Authorization: `Bearer ${apiKey}`,
|
|
360
360
|
"Content-Type": "application/json",
|
|
361
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
361
|
+
"User-Agent": `deepline-ts-sdk/${_chunkA7NKOXBVjs.SDK_VERSION}`,
|
|
362
362
|
"X-Deepline-Client-Family": "sdk",
|
|
363
363
|
"X-Deepline-CLI-Family": "sdk",
|
|
364
|
-
"X-Deepline-Agent-Runtime":
|
|
365
|
-
"X-Deepline-CLI-Version":
|
|
366
|
-
"X-Deepline-SDK-Version":
|
|
364
|
+
"X-Deepline-Agent-Runtime": _chunkA7NKOXBVjs.detectAgentRuntime.call(void 0, ),
|
|
365
|
+
"X-Deepline-CLI-Version": _chunkA7NKOXBVjs.SDK_VERSION,
|
|
366
|
+
"X-Deepline-SDK-Version": _chunkA7NKOXBVjs.SDK_VERSION
|
|
367
367
|
};
|
|
368
368
|
}
|
|
369
369
|
async function postFailureReport(input) {
|
|
@@ -391,7 +391,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
391
391
|
if (isFailureReportingDisabled()) return false;
|
|
392
392
|
let apiKey = "";
|
|
393
393
|
try {
|
|
394
|
-
apiKey =
|
|
394
|
+
apiKey = _chunkXBO4ERH6js.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
395
395
|
} catch (e2) {
|
|
396
396
|
return false;
|
|
397
397
|
}
|
|
@@ -418,7 +418,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
418
418
|
failure_code: failureCode2,
|
|
419
419
|
failure_stage: failureStage,
|
|
420
420
|
error_body: "Automatic Deepline skills installation failed.",
|
|
421
|
-
cli_version:
|
|
421
|
+
cli_version: _chunkA7NKOXBVjs.SDK_VERSION,
|
|
422
422
|
context: {
|
|
423
423
|
environment: buildEnvironmentContext(),
|
|
424
424
|
skills_sync: {
|
|
@@ -538,7 +538,7 @@ function buildFailureReport(input) {
|
|
|
538
538
|
failure_kind: failureKind,
|
|
539
539
|
failure_code: code,
|
|
540
540
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
541
|
-
cli_version:
|
|
541
|
+
cli_version: _chunkA7NKOXBVjs.SDK_VERSION,
|
|
542
542
|
context: {
|
|
543
543
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
544
544
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -558,8 +558,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
558
558
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
559
559
|
const exitCode = resolvedExitCode(input);
|
|
560
560
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
561
|
-
const baseUrl =
|
|
562
|
-
const apiKey =
|
|
561
|
+
const baseUrl = _chunkXBO4ERH6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
562
|
+
const apiKey = _chunkXBO4ERH6js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
563
563
|
if (!apiKey) return false;
|
|
564
564
|
return postFailureReport({
|
|
565
565
|
baseUrl,
|
|
@@ -914,8 +914,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
914
914
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
915
915
|
var defaultBrowserCommandRunner = childProcess;
|
|
916
916
|
function getAuthedHttpClient() {
|
|
917
|
-
const config =
|
|
918
|
-
return { config, http: new (0,
|
|
917
|
+
const config = _chunkXBO4ERH6js.resolveConfig.call(void 0, );
|
|
918
|
+
return { config, http: new (0, _chunkXBO4ERH6js.HttpClient)(config) };
|
|
919
919
|
}
|
|
920
920
|
function stableOsUserId() {
|
|
921
921
|
try {
|
|
@@ -1256,7 +1256,7 @@ function collectLocalEnvInfo() {
|
|
|
1256
1256
|
os: `${process.platform} ${process.arch}`,
|
|
1257
1257
|
node_version: process.version,
|
|
1258
1258
|
home_dir: homeDir,
|
|
1259
|
-
agent_runtime:
|
|
1259
|
+
agent_runtime: _chunkA7NKOXBVjs.detectAgentRuntime.call(void 0, )
|
|
1260
1260
|
};
|
|
1261
1261
|
const env = process.env;
|
|
1262
1262
|
const optional = {
|
|
@@ -1503,9 +1503,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
1503
1503
|
}
|
|
1504
1504
|
function withAgentCommandContext(value) {
|
|
1505
1505
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
1506
|
-
return
|
|
1506
|
+
return _chunkA7NKOXBVjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
1507
1507
|
...valueRecord,
|
|
1508
|
-
command_context:
|
|
1508
|
+
command_context: _chunkXBO4ERH6js.resolveCliCommandContext.call(void 0, )
|
|
1509
1509
|
} : value;
|
|
1510
1510
|
}
|
|
1511
1511
|
function printJson(value, fields, options = {}) {
|
|
@@ -1677,7 +1677,7 @@ function errorToJsonPayload(error) {
|
|
|
1677
1677
|
...upstreamResponse ? { upstreamResponse } : {},
|
|
1678
1678
|
...Object.keys(details).length > 0 ? { details } : {}
|
|
1679
1679
|
};
|
|
1680
|
-
const retry = cliRetryGuidance(payloadError,
|
|
1680
|
+
const retry = cliRetryGuidance(payloadError, _chunkA7NKOXBVjs.readToolFailureHint.call(void 0, error));
|
|
1681
1681
|
return {
|
|
1682
1682
|
ok: false,
|
|
1683
1683
|
status: "failed",
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4LMTY4RQ.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -22,14 +22,14 @@ import {
|
|
|
22
22
|
saveHostEnvValues,
|
|
23
23
|
saveProjectDeeplineEnvValues,
|
|
24
24
|
storedHostApiKey
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-W66GXHYR.mjs";
|
|
26
26
|
import {
|
|
27
27
|
SDK_API_CONTRACT,
|
|
28
28
|
SDK_VERSION,
|
|
29
29
|
connectionFailureMessage,
|
|
30
30
|
detectAgentRuntime,
|
|
31
31
|
networkCauseCode
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-CFLAGRWL.mjs";
|
|
33
33
|
import {
|
|
34
34
|
DeeplineError
|
|
35
35
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LYZPGP3P.mjs";
|
|
5
5
|
import {
|
|
6
6
|
runSkillsCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3GF33QJJ.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveShellSpawn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OAQYLTUN.mjs";
|
|
11
11
|
import {
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-4LMTY4RQ.mjs";
|
|
14
14
|
import {
|
|
15
15
|
DEFAULT_MAX_RETRIES,
|
|
16
16
|
DEFAULT_TIMEOUT,
|
|
17
17
|
TRANSIENT_HTTP_STATUSES,
|
|
18
18
|
autoDetectBaseUrl,
|
|
19
19
|
defaultRetryBackoffMs
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-W66GXHYR.mjs";
|
|
21
21
|
|
|
22
22
|
// src/cli/commands/update.ts
|
|
23
23
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ITYSPUKD.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4LMTY4RQ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
resolveConfig
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-W66GXHYR.mjs";
|
|
10
10
|
|
|
11
11
|
// src/cli/commands/integration-commands.ts
|
|
12
12
|
import { Option } from "commander";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NTHN7ODR.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-W66GXHYR.mjs";
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
10
|
var DeeplineClient2 = class extends DeeplineClient {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk3ZUKYLC6js = require('./chunk-3ZUKYLC6.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkXBO4ERH6js = require('./chunk-XBO4ERH6.js');
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -137,9 +137,9 @@ async function pinLocalPlayImports(client, graph) {
|
|
|
137
137
|
|
|
138
138
|
// src/plays/client.ts
|
|
139
139
|
function createPlayClient(options) {
|
|
140
|
-
const config =
|
|
141
|
-
return new (0,
|
|
142
|
-
new (0,
|
|
140
|
+
const config = _chunkXBO4ERH6js.resolveConfig.call(void 0, options);
|
|
141
|
+
return new (0, _chunk3ZUKYLC6js.PlayClient)(
|
|
142
|
+
new (0, _chunkXBO4ERH6js.HttpClient)(config),
|
|
143
143
|
_nullishCoalesce(config.environment, () => ( process.env))
|
|
144
144
|
);
|
|
145
145
|
}
|