deepline 0.3.505 → 0.3.506
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/client-core.ts +121 -5
- package/dist/bundling-sources/sdk/src/index.ts +3 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +2 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/issues.ts +176 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +17 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/overview.ts +118 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/plan.ts +29 -1
- package/dist/bundling-sources/shared_libs/monitors/legacy-radar-retirement.ts +29 -10
- package/dist/bundling-sources/shared_libs/monitors/package.json +4 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +8 -8
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +52 -5
- package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +48 -5
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +13 -40
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +36 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-egress.ts +55 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +66 -0
- package/dist/cli/auth-MMHG2OFE.js +43 -0
- package/dist/cli/{auth-AHE2EDQA.mjs → auth-ZHFONT2D.mjs} +5 -5
- package/dist/cli/{billing-JOIZPHON.js → billing-3Z7N4WTL.js} +101 -91
- package/dist/cli/{billing-7CPWTGGI.mjs → billing-B2YEMNHE.mjs} +27 -17
- package/dist/cli/{chunk-CA3SYXCS.js → chunk-26DJ4BDY.js} +2 -2
- package/dist/cli/{chunk-PZN24YQQ.mjs → chunk-2CFTDVEP.mjs} +2 -2
- package/dist/cli/{chunk-OMEDQ77C.mjs → chunk-2IXXB7OA.mjs} +5 -5
- package/dist/cli/{chunk-XHPB6RGY.js → chunk-2OY5DXTC.js} +1 -1
- package/dist/cli/{chunk-CSLLQWAB.mjs → chunk-3BFZEHBH.mjs} +1 -1
- package/dist/cli/{chunk-3YEOOXD4.js → chunk-3F676QXJ.js} +11 -11
- package/dist/cli/{chunk-WTQLUULB.js → chunk-5ARG7J7A.js} +6 -6
- package/dist/cli/{chunk-NARJWXBR.mjs → chunk-6RYVIZRP.mjs} +2 -2
- package/dist/cli/{chunk-EMUFF6EU.js → chunk-75NAFY36.js} +7 -7
- package/dist/cli/{chunk-BWAYMJ23.js → chunk-AD2WJUZA.js} +91 -48
- package/dist/cli/{chunk-JVKEZT7L.mjs → chunk-AFSYNOG4.mjs} +22 -1
- package/dist/cli/{chunk-OA6U5NVB.mjs → chunk-BJ5OX62J.mjs} +5 -5
- package/dist/cli/{chunk-7DDKLFOY.mjs → chunk-BQBPVUFJ.mjs} +3 -3
- package/dist/cli/{chunk-UZ24SF7N.mjs → chunk-CHGRURBN.mjs} +5 -5
- package/dist/cli/{chunk-JA7YBRP4.mjs → chunk-D7OCORZ7.mjs} +1 -1
- package/dist/cli/{chunk-IDAE5VDH.js → chunk-DB54ROPH.js} +5 -5
- package/dist/cli/{chunk-GAUNJCXQ.js → chunk-E554XCJI.js} +96 -96
- package/dist/cli/{chunk-IZYOYXG7.mjs → chunk-EN7GXLFX.mjs} +4 -4
- package/dist/cli/{chunk-7QLK2GHL.js → chunk-F53SGS3C.js} +5 -5
- package/dist/cli/{chunk-JSTKLYYD.js → chunk-F7IQQYKV.js} +2 -2
- package/dist/cli/{chunk-FIQ5UEIF.mjs → chunk-FFGQR5J3.mjs} +2 -2
- package/dist/cli/{chunk-SPN7U3MV.js → chunk-FWSEGIT6.js} +4 -4
- package/dist/cli/{chunk-K26YOPDO.js → chunk-GDHLL5EQ.js} +22 -1
- package/dist/cli/{chunk-ACI6CUDX.mjs → chunk-GJNIC2CO.mjs} +78 -45
- package/dist/cli/{chunk-QYGYVCRI.js → chunk-GRESJ3H3.js} +14 -14
- package/dist/cli/{chunk-MHZAG2ZQ.js → chunk-HINTYT5H.js} +93 -60
- package/dist/cli/{chunk-HASFFOSU.js → chunk-LRSRJJPD.js} +16 -16
- package/dist/cli/{chunk-ZLN2B5YA.js → chunk-MHRR47VQ.js} +3 -3
- package/dist/cli/{chunk-6FEN6VWZ.js → chunk-N7G36GXB.js} +26 -26
- package/dist/cli/{chunk-MAFZ64RN.mjs → chunk-ND4WPLTE.mjs} +2 -2
- package/dist/cli/{chunk-5XT4DZQL.mjs → chunk-O4DZG4VA.mjs} +2 -2
- package/dist/cli/{chunk-OORPAQVC.js → chunk-OD6TASBP.js} +8 -8
- package/dist/cli/{chunk-Y52XY56V.js → chunk-OHNMJ5XQ.js} +41 -41
- package/dist/cli/{chunk-4OFSAZN6.mjs → chunk-ONBXTEFQ.mjs} +46 -3
- package/dist/cli/{chunk-6U3AGJWI.mjs → chunk-OPBXKB57.mjs} +1 -1
- package/dist/cli/{chunk-W6I4N4JN.mjs → chunk-OUGJUM5X.mjs} +6 -6
- package/dist/cli/{chunk-VXKWF3AD.js → chunk-PRIHD5XS.js} +9 -9
- package/dist/cli/{chunk-RT3HJBIH.mjs → chunk-QAY5AS2H.mjs} +10 -10
- package/dist/cli/{chunk-GXMNOUHP.js → chunk-QP333GFE.js} +7 -7
- package/dist/cli/{chunk-7DDACLMX.js → chunk-SUJIVF6L.js} +16 -16
- package/dist/cli/{chunk-QGNNAZ5M.mjs → chunk-TEMORCEE.mjs} +1 -1
- package/dist/cli/{chunk-7AD565DO.mjs → chunk-TS4KFQKS.mjs} +1 -1
- package/dist/cli/{chunk-YBIVVAL7.mjs → chunk-XUY7WQ2R.mjs} +3 -3
- package/dist/cli/{chunk-PDLOPF5L.mjs → chunk-YEX6RPUO.mjs} +1 -1
- package/dist/cli/{chunk-WPCF7C6B.js → chunk-YJKKOSXS.js} +3 -3
- package/dist/cli/{chunk-SHKRL7CW.mjs → chunk-YVOS5KSG.mjs} +1 -1
- package/dist/cli/{chunk-52FPW2RD.mjs → chunk-YWZEBPXK.mjs} +2 -2
- package/dist/cli/{chunk-WTUC5VKB.mjs → chunk-Z7EHY2MF.mjs} +2 -2
- package/dist/cli/{chunk-LC4FG34E.js → chunk-ZM5BJ5MP.js} +53 -53
- package/dist/cli/{chunk-45XYW477.js → chunk-ZZDTWVCQ.js} +21 -21
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-DZHVIW3G.js → csv-7K7LK63Y.js} +13 -13
- package/dist/cli/{csv-WTPI6ZON.mjs → csv-ARHQ54HA.mjs} +4 -4
- package/dist/cli/{db-NR4PJ6AF.mjs → db-JBX24NJY.mjs} +6 -6
- package/dist/cli/{db-D7LPPNCC.js → db-V4Z2I6DY.js} +27 -27
- package/dist/cli/describe-AYXVS6DZ.js +50 -0
- package/dist/cli/{describe-NCKAJPUG.mjs → describe-RBDSGSZ7.mjs} +18 -18
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/{executions-RQVJ4LAB.mjs → executions-BAZEU63W.mjs} +6 -6
- package/dist/cli/{executions-UQG6LWEN.js → executions-XEZKV5QU.js} +8 -8
- package/dist/cli/{feedback-TCHA67IA.js → feedback-LOERESRU.js} +8 -8
- package/dist/cli/{feedback-RD4Y3YQR.mjs → feedback-YDSWBHCO.mjs} +4 -4
- package/dist/cli/{git-Z7434B7Y.mjs → git-4Z3W2CQU.mjs} +5 -5
- package/dist/cli/git-T6WKO7EA.js +25 -0
- package/dist/cli/index.js +145 -149
- package/dist/cli/index.mjs +46 -50
- package/dist/cli/{legacy-noops-23WRA7DH.js → legacy-noops-4QIQPVE5.js} +8 -8
- package/dist/cli/{legacy-noops-LQJU4UIV.mjs → legacy-noops-E4HH7S5O.mjs} +5 -5
- package/dist/cli/{monitors-Z6VYUZ2W.mjs → monitors-FPDW5DDM.mjs} +305 -8
- package/dist/cli/{monitors-KOWN7M3V.js → monitors-QBHDSDA7.js} +423 -126
- package/dist/cli/{org-2T5K2VP5.js → org-JO4GGSAH.js} +72 -72
- package/dist/cli/{org-UBNRO5XO.mjs → org-UCDHIHAD.mjs} +6 -6
- package/dist/cli/{pages-GHPJBVV3.mjs → pages-6V52IZXY.mjs} +6 -6
- package/dist/cli/{pages-SRXTU7XO.js → pages-FJAAXAWO.js} +18 -18
- package/dist/cli/{play-2HMZ57EZ.js → play-F3AENS6W.js} +317 -317
- package/dist/cli/{play-HRQKGTXA.mjs → play-MF4DWROJ.mjs} +18 -18
- package/dist/cli/{providers-JWJRFRR5.mjs → providers-NJJLTECA.mjs} +6 -6
- package/dist/cli/{providers-P5O676MZ.js → providers-XXOQLPX7.js} +9 -9
- package/dist/cli/{quickstart-YCY72TAO.js → quickstart-JCE3XGQG.js} +6 -6
- package/dist/cli/{quickstart-S7NZUQRO.mjs → quickstart-Z5MSMI7S.mjs} +4 -4
- package/dist/cli/{run-QWMRIUIU.mjs → run-56UGPIRL.mjs} +23 -23
- package/dist/cli/{run-MHLLGF4G.js → run-X2DNIW3F.js} +41 -41
- package/dist/cli/search-B753RTKC.js +33 -0
- package/dist/cli/{search-4BFTQUEP.mjs → search-SZYI4NBB.mjs} +8 -8
- package/dist/cli/{search-output-62LBVZHN.js → search-output-7UNT6EMP.js} +6 -6
- package/dist/cli/{search-output-LIYHDTBP.mjs → search-output-T35QNZUF.mjs} +4 -4
- package/dist/cli/{secrets-KKKHVSOO.js → secrets-JMUAVIVC.js} +15 -15
- package/dist/cli/{secrets-GW27V77E.mjs → secrets-Q36VC35L.mjs} +6 -6
- package/dist/cli/{sessions-R75LBGIL.mjs → sessions-HG6I3HMY.mjs} +5 -5
- package/dist/cli/{sessions-R3OEINAR.js → sessions-SUXU7OM7.js} +6 -6
- package/dist/cli/{settings-MQIHAEZN.js → settings-UIELQ5CV.js} +106 -79
- package/dist/cli/{settings-I3AQZSYG.mjs → settings-Z76XW4KF.mjs} +39 -12
- package/dist/cli/{setup-X3QRJERP.js → setup-2L7H5P2O.js} +50 -50
- package/dist/cli/{setup-2YA5MYMS.mjs → setup-OXNYAOQ4.mjs} +10 -10
- package/dist/cli/skills-DEVXYGYH.js +37 -0
- package/dist/cli/{skills-7252FOOI.mjs → skills-XSNLXJGI.mjs} +8 -8
- package/dist/cli/tools-SCGHABDL.js +57 -0
- package/dist/cli/{tools-SKQTSVGE.mjs → tools-SUSFAYFH.mjs} +17 -17
- package/dist/cli/update-BSIILGO3.js +35 -0
- package/dist/cli/{update-GNBBSKTB.mjs → update-ENSTG3QO.mjs} +10 -10
- package/dist/cli/{workflow-QB7YYWPP.js → workflow-FMBZNY4F.js} +17 -17
- package/dist/cli/{workflow-OJSAL5FO.mjs → workflow-Z33QE6VT.mjs} +7 -7
- package/dist/{client-DEJg0CZn.d.mts → client-BDbouy3Y.d.mts} +1 -1
- package/dist/{client-B3GSaSFn.d.ts → client-Cx0420fs.d.ts} +1 -1
- package/dist/{client-core-GQmy3N8y.d.ts → client-core-B4hq0-m2.d.ts} +51 -4
- package/dist/{client-core-C404E33V.d.mts → client-core-CwiVaMZ5.d.mts} +51 -4
- package/dist/{compiler-manifest-DaJrA2KV.d.mts → compiler-manifest-BeURaD5Y.d.mts} +2 -0
- package/dist/{compiler-manifest-DaJrA2KV.d.ts → compiler-manifest-BeURaD5Y.d.ts} +2 -0
- package/dist/{errors-KLga4bLr.d.ts → errors-BoPXPrSy.d.ts} +1 -1
- package/dist/{errors-BKnSYueU.d.mts → errors-kBuT4kGK.d.mts} +1 -1
- package/dist/{index-C5nAZ-VS.d.ts → index-D0crdGM1.d.ts} +1 -1
- package/dist/{index-C-8AFpWy.d.mts → index-DC7oRAAC.d.mts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +115 -112
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-SEPKNRHV.js +0 -43
- package/dist/cli/describe-HVQBTKFM.js +0 -50
- package/dist/cli/git-TUB2ZUEH.js +0 -25
- package/dist/cli/search-QPUHOEIL.js +0 -33
- package/dist/cli/skills-BPZWMZSL.js +0 -37
- package/dist/cli/tools-F7RVQ3IK.js +0 -57
- package/dist/cli/update-TLSY6LC2.js +0 -35
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk75NAFY36js = require('./chunk-75NAFY36.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkMHRR47VQjs = require('./chunk-MHRR47VQ.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 } = _chunk75NAFY36js.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
|
+
_chunk75NAFY36js.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 } = _chunk75NAFY36js.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
|
+
_chunk75NAFY36js.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 } = _chunk75NAFY36js.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
|
+
_chunk75NAFY36js.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 } = _chunk75NAFY36js.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 } = _chunk75NAFY36js.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
|
+
_chunk75NAFY36js.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 } = _chunk75NAFY36js.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunk75NAFY36js.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 } = _chunk75NAFY36js.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
|
+
_chunk75NAFY36js.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 } = _chunk75NAFY36js.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunk75NAFY36js.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 = _chunkMHRR47VQjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunk75NAFY36js.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunk75NAFY36js.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 } = _chunk75NAFY36js.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
|
+
_chunk75NAFY36js.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 } = _chunk75NAFY36js.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
|
+
_chunk75NAFY36js.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 } = _chunk75NAFY36js.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunk75NAFY36js.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2CFTDVEP.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YVOS5KSG.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2CFTDVEP.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TS4KFQKS.mjs";
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
import {
|
|
@@ -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(); } } 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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk75NAFY36js = require('./chunk-75NAFY36.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkFWSEGIT6js = require('./chunk-FWSEGIT6.js');
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
|
|
@@ -139,7 +139,7 @@ function currentSessionFile(agent) {
|
|
|
139
139
|
const newestFirst = listSessionFiles(agent).sort(
|
|
140
140
|
(a, b) => b.mtimeMs - a.mtimeMs
|
|
141
141
|
);
|
|
142
|
-
const sessionId =
|
|
142
|
+
const sessionId = _chunkFWSEGIT6js.agentSessionIdFromEnvironment.call(void 0,
|
|
143
143
|
process.env,
|
|
144
144
|
agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
|
|
145
145
|
);
|
|
@@ -451,7 +451,7 @@ function buildSessionUploadContent(raw) {
|
|
|
451
451
|
return { encodedContent: encoded, needsChunking: true };
|
|
452
452
|
}
|
|
453
453
|
async function uploadPayload(path, payload) {
|
|
454
|
-
const { http } =
|
|
454
|
+
const { http } = _chunk75NAFY36js.getAuthedHttpClient.call(void 0, );
|
|
455
455
|
return await http.post(path, payload);
|
|
456
456
|
}
|
|
457
457
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -484,7 +484,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
484
484
|
...options.rating ? { rating: options.rating } : {}
|
|
485
485
|
});
|
|
486
486
|
const sessionIds = sessions.map((session) => session.sessionId);
|
|
487
|
-
|
|
487
|
+
_chunk75NAFY36js.printCommandEnvelope.call(void 0,
|
|
488
488
|
{
|
|
489
489
|
...response,
|
|
490
490
|
ok: true,
|
|
@@ -516,7 +516,7 @@ async function handleSessionsSend(options) {
|
|
|
516
516
|
filename: _path.basename.call(void 0, filePath),
|
|
517
517
|
...rating ? { rating } : {}
|
|
518
518
|
});
|
|
519
|
-
|
|
519
|
+
_chunk75NAFY36js.printCommandEnvelope.call(void 0,
|
|
520
520
|
{
|
|
521
521
|
...response2,
|
|
522
522
|
ok: true,
|
|
@@ -566,7 +566,7 @@ async function handleSessionsSend(options) {
|
|
|
566
566
|
...rating ? { rating } : {}
|
|
567
567
|
});
|
|
568
568
|
const sessionIds = built.map((session) => session.sessionId);
|
|
569
|
-
|
|
569
|
+
_chunk75NAFY36js.printCommandEnvelope.call(void 0,
|
|
570
570
|
{
|
|
571
571
|
...response,
|
|
572
572
|
ok: true,
|
|
@@ -674,7 +674,7 @@ ${refreshMeta}
|
|
|
674
674
|
</body>
|
|
675
675
|
</html>`;
|
|
676
676
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
677
|
-
|
|
677
|
+
_chunk75NAFY36js.printCommandEnvelope.call(void 0,
|
|
678
678
|
{
|
|
679
679
|
ok: true,
|
|
680
680
|
file: outputPath,
|
|
@@ -11,20 +11,20 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkHINTYT5Hjs = require('./chunk-HINTYT5H.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunk75NAFY36js = require('./chunk-75NAFY36.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkMHRR47VQjs = require('./chunk-MHRR47VQ.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkFWSEGIT6js = require('./chunk-FWSEGIT6.js');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunkRLX5ZFNXjs = require('./chunk-RLX5ZFNX.js');
|
|
@@ -145,7 +145,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
|
|
|
145
145
|
return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
|
|
146
146
|
}
|
|
147
147
|
function resolveLocalRoot() {
|
|
148
|
-
const target =
|
|
148
|
+
const target = _chunkMHRR47VQjs.resolveProjectPinTarget.call(void 0, );
|
|
149
149
|
if (!target.ok) {
|
|
150
150
|
throw new Error(
|
|
151
151
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -156,7 +156,7 @@ function resolveLocalRoot() {
|
|
|
156
156
|
return target.dir;
|
|
157
157
|
}
|
|
158
158
|
function detectSkillsAgents(input) {
|
|
159
|
-
const runtime = _nullishCoalesce(input.runtime, () => (
|
|
159
|
+
const runtime = _nullishCoalesce(input.runtime, () => ( _chunkFWSEGIT6js.detectAgentRuntime.call(void 0, )));
|
|
160
160
|
const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
|
|
161
161
|
if (knownAgent) return [knownAgent];
|
|
162
162
|
const roots = [
|
|
@@ -171,11 +171,11 @@ function detectSkillsAgents(input) {
|
|
|
171
171
|
return detected.length > 0 ? detected : ["*"];
|
|
172
172
|
}
|
|
173
173
|
function skillsStatePathForScope(baseUrl, scope, root) {
|
|
174
|
-
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0,
|
|
174
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkMHRR47VQjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
|
|
175
175
|
}
|
|
176
176
|
function buildSkillsPlan(input) {
|
|
177
177
|
const scopeArgs = input.scope === "global" ? ["--global"] : [];
|
|
178
|
-
const legacyNames = [...
|
|
178
|
+
const legacyNames = [..._chunkHINTYT5Hjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
|
|
179
179
|
(a, b) => a.localeCompare(b)
|
|
180
180
|
);
|
|
181
181
|
return {
|
|
@@ -189,7 +189,7 @@ function buildSkillsPlan(input) {
|
|
|
189
189
|
args: [
|
|
190
190
|
"exec",
|
|
191
191
|
"--yes",
|
|
192
|
-
`--package=${
|
|
192
|
+
`--package=${_chunkHINTYT5Hjs.SKILLS_NPX_PACKAGE}`,
|
|
193
193
|
"--",
|
|
194
194
|
"skills",
|
|
195
195
|
"remove",
|
|
@@ -205,11 +205,11 @@ function buildSkillsPlan(input) {
|
|
|
205
205
|
args: [
|
|
206
206
|
"exec",
|
|
207
207
|
"--yes",
|
|
208
|
-
`--package=${
|
|
208
|
+
`--package=${_chunkHINTYT5Hjs.SKILLS_NPX_PACKAGE}`,
|
|
209
209
|
"--",
|
|
210
210
|
"skills",
|
|
211
211
|
"add",
|
|
212
|
-
|
|
212
|
+
_chunkHINTYT5Hjs.skillsSourceUrl.call(void 0, input.baseUrl),
|
|
213
213
|
"--agent",
|
|
214
214
|
...input.agents,
|
|
215
215
|
...scopeArgs,
|
|
@@ -246,7 +246,7 @@ function readSkillsInstallState(path) {
|
|
|
246
246
|
}
|
|
247
247
|
function runProcess(command, args, cwd) {
|
|
248
248
|
return new Promise((resolve, reject) => {
|
|
249
|
-
const plan =
|
|
249
|
+
const plan = _chunkHINTYT5Hjs.resolveShellSpawn.call(void 0,
|
|
250
250
|
command,
|
|
251
251
|
args,
|
|
252
252
|
process.platform,
|
|
@@ -268,7 +268,7 @@ function runProcess(command, args, cwd) {
|
|
|
268
268
|
child.kill("SIGTERM");
|
|
269
269
|
reject(
|
|
270
270
|
new Error(
|
|
271
|
-
`${
|
|
271
|
+
`${_chunkHINTYT5Hjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
|
|
272
272
|
)
|
|
273
273
|
);
|
|
274
274
|
}, SKILLS_PROCESS_TIMEOUT_MS);
|
|
@@ -279,7 +279,7 @@ function runProcess(command, args, cwd) {
|
|
|
279
279
|
child.once("close", (code) => {
|
|
280
280
|
clearTimeout(timeout);
|
|
281
281
|
if (code && stderr.trim()) {
|
|
282
|
-
process.stderr.write(`${
|
|
282
|
+
process.stderr.write(`${_chunkHINTYT5Hjs.SKILLS_NPX_PACKAGE} exited ${code}.
|
|
283
283
|
`);
|
|
284
284
|
}
|
|
285
285
|
resolve(_nullishCoalesce(code, () => ( 1)));
|
|
@@ -287,7 +287,7 @@ function runProcess(command, args, cwd) {
|
|
|
287
287
|
});
|
|
288
288
|
}
|
|
289
289
|
async function showSkills(options, name) {
|
|
290
|
-
const baseUrl =
|
|
290
|
+
const baseUrl = _chunkMHRR47VQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
291
291
|
const url = name ? `${baseUrl}/.well-known/skills/${encodeURIComponent(name)}/SKILL.md` : `${baseUrl}/.well-known/skills/index.json`;
|
|
292
292
|
try {
|
|
293
293
|
const response = await fetch(url, {
|
|
@@ -300,7 +300,7 @@ async function showSkills(options, name) {
|
|
|
300
300
|
}
|
|
301
301
|
if (name) {
|
|
302
302
|
const markdown = await response.text();
|
|
303
|
-
|
|
303
|
+
_chunk75NAFY36js.printCommandEnvelope.call(void 0,
|
|
304
304
|
{ ok: true, status: "completed", skill: { name, markdown } },
|
|
305
305
|
{ json: options.json, text: markdown }
|
|
306
306
|
);
|
|
@@ -310,7 +310,7 @@ async function showSkills(options, name) {
|
|
|
310
310
|
const skills = (_nullishCoalesce(index.skills, () => ( []))).filter(
|
|
311
311
|
(skill) => skill.install_surface === "v1" && skill.name
|
|
312
312
|
);
|
|
313
|
-
|
|
313
|
+
_chunk75NAFY36js.printCommandEnvelope.call(void 0,
|
|
314
314
|
{
|
|
315
315
|
ok: true,
|
|
316
316
|
status: "completed",
|
|
@@ -327,7 +327,7 @@ Read one with: deepline skills show <name>
|
|
|
327
327
|
);
|
|
328
328
|
return 0;
|
|
329
329
|
} catch (error) {
|
|
330
|
-
|
|
330
|
+
_chunk75NAFY36js.printCommandEnvelope.call(void 0,
|
|
331
331
|
{
|
|
332
332
|
ok: false,
|
|
333
333
|
status: "failed",
|
|
@@ -350,7 +350,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
350
350
|
scope = normalizeScope(options.scope);
|
|
351
351
|
root = scope === "local" ? resolveLocalRoot() : null;
|
|
352
352
|
} catch (error) {
|
|
353
|
-
|
|
353
|
+
_chunk75NAFY36js.printCommandEnvelope.call(void 0,
|
|
354
354
|
{
|
|
355
355
|
ok: false,
|
|
356
356
|
status: "failed",
|
|
@@ -362,22 +362,22 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
362
362
|
);
|
|
363
363
|
return 2;
|
|
364
364
|
}
|
|
365
|
-
const baseUrl =
|
|
365
|
+
const baseUrl = _chunkMHRR47VQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
366
366
|
const catalog = {
|
|
367
|
-
skillNames: [...
|
|
368
|
-
version:
|
|
367
|
+
skillNames: [..._chunkHINTYT5Hjs.DEFAULT_SDK_SKILL_NAMES],
|
|
368
|
+
version: _chunkFWSEGIT6js.SDK_VERSION
|
|
369
369
|
};
|
|
370
370
|
const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
|
|
371
371
|
const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
|
|
372
372
|
if (options.dryRun) {
|
|
373
|
-
|
|
373
|
+
_chunk75NAFY36js.printCommandEnvelope.call(void 0,
|
|
374
374
|
{ ok: true, status: "planned", dryRun: true, ...plan },
|
|
375
375
|
{ json: options.json }
|
|
376
376
|
);
|
|
377
377
|
return 0;
|
|
378
378
|
}
|
|
379
|
-
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !
|
|
380
|
-
|
|
379
|
+
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkHINTYT5Hjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
380
|
+
_chunk75NAFY36js.printCommandEnvelope.call(void 0,
|
|
381
381
|
{
|
|
382
382
|
ok: true,
|
|
383
383
|
status: "current",
|
|
@@ -409,10 +409,10 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
409
409
|
}
|
|
410
410
|
if (scope === "local" && root) {
|
|
411
411
|
const managedNames = [
|
|
412
|
-
.../* @__PURE__ */ new Set([...plan.skillNames, ...
|
|
412
|
+
.../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkHINTYT5Hjs.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
413
413
|
];
|
|
414
414
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
415
|
-
|
|
415
|
+
_chunkMHRR47VQjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
|
|
416
416
|
".deepline/",
|
|
417
417
|
...agentRoots.flatMap(
|
|
418
418
|
(agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
|
|
@@ -421,7 +421,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
421
421
|
}
|
|
422
422
|
let lease;
|
|
423
423
|
try {
|
|
424
|
-
lease = scope === "global" ? await
|
|
424
|
+
lease = scope === "global" ? await _chunkHINTYT5Hjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
|
|
425
425
|
waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
|
|
426
426
|
onWait: () => process.stderr.write(
|
|
427
427
|
"Waiting for a background Deepline skills refresh to finish...\n"
|
|
@@ -429,8 +429,8 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
429
429
|
}) : { release: () => {
|
|
430
430
|
} };
|
|
431
431
|
} catch (error) {
|
|
432
|
-
if (!(error instanceof
|
|
433
|
-
|
|
432
|
+
if (!(error instanceof _chunkHINTYT5Hjs.SkillsStateUnavailableError)) throw error;
|
|
433
|
+
_chunk75NAFY36js.printCommandEnvelope.call(void 0,
|
|
434
434
|
{
|
|
435
435
|
ok: false,
|
|
436
436
|
status: "failed",
|
|
@@ -446,7 +446,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
446
446
|
return 5;
|
|
447
447
|
}
|
|
448
448
|
if (!lease) {
|
|
449
|
-
|
|
449
|
+
_chunk75NAFY36js.printCommandEnvelope.call(void 0,
|
|
450
450
|
{
|
|
451
451
|
ok: false,
|
|
452
452
|
status: "failed",
|
|
@@ -455,7 +455,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
455
455
|
scope,
|
|
456
456
|
agents,
|
|
457
457
|
message: "A background Deepline skills refresh is still running for these agents.",
|
|
458
|
-
next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${
|
|
458
|
+
next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${_chunkHINTYT5Hjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
|
|
459
459
|
},
|
|
460
460
|
{ json: options.json }
|
|
461
461
|
);
|
|
@@ -504,7 +504,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
506
|
} catch (error) {
|
|
507
|
-
|
|
507
|
+
_chunk75NAFY36js.printCommandEnvelope.call(void 0,
|
|
508
508
|
{
|
|
509
509
|
ok: false,
|
|
510
510
|
status: "failed",
|
|
@@ -520,7 +520,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
520
520
|
return 5;
|
|
521
521
|
}
|
|
522
522
|
if (missing.length > 0) {
|
|
523
|
-
|
|
523
|
+
_chunk75NAFY36js.printCommandEnvelope.call(void 0,
|
|
524
524
|
{
|
|
525
525
|
ok: false,
|
|
526
526
|
status: "failed",
|
|
@@ -560,7 +560,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
560
560
|
{
|
|
561
561
|
schemaVersion: 1,
|
|
562
562
|
installedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
563
|
-
cliVersion:
|
|
563
|
+
cliVersion: _chunkFWSEGIT6js.SDK_VERSION,
|
|
564
564
|
scope,
|
|
565
565
|
agents,
|
|
566
566
|
skillsVersion: plan.version,
|
|
@@ -573,9 +573,9 @@ async function runSkillsInstallWithLease(input) {
|
|
|
573
573
|
"utf8"
|
|
574
574
|
);
|
|
575
575
|
if (scope === "global") {
|
|
576
|
-
|
|
576
|
+
_chunkHINTYT5Hjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
577
577
|
}
|
|
578
|
-
|
|
578
|
+
_chunk75NAFY36js.printCommandEnvelope.call(void 0,
|
|
579
579
|
{
|
|
580
580
|
ok: true,
|
|
581
581
|
status: "complete",
|
|
@@ -624,7 +624,7 @@ Examples:
|
|
|
624
624
|
"after",
|
|
625
625
|
`
|
|
626
626
|
Notes:
|
|
627
|
-
This command reinstalls current Deepline-managed skills using ${
|
|
627
|
+
This command reinstalls current Deepline-managed skills using ${_chunkHINTYT5Hjs.SKILLS_NPX_PACKAGE},
|
|
628
628
|
then removes legacy Deepline skill names. Local scope writes into the resolved
|
|
629
629
|
persistent project.
|
|
630
630
|
|
|
@@ -636,13 +636,13 @@ Examples:
|
|
|
636
636
|
).action(async (options) => {
|
|
637
637
|
process.exitCode = await runSkillsCommand(options);
|
|
638
638
|
});
|
|
639
|
-
program.command(
|
|
639
|
+
program.command(_chunkHINTYT5Hjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
|
|
640
640
|
"--claim <token>",
|
|
641
641
|
"Owner token of the leases this child was started for."
|
|
642
642
|
).action(async (options) => {
|
|
643
643
|
const claim = _optionalChain([options, 'access', _9 => _9.claim, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]);
|
|
644
644
|
if (!claim) {
|
|
645
|
-
|
|
645
|
+
_chunk75NAFY36js.printCommandEnvelope.call(void 0,
|
|
646
646
|
{
|
|
647
647
|
ok: false,
|
|
648
648
|
status: "failed",
|
|
@@ -655,7 +655,7 @@ Examples:
|
|
|
655
655
|
process.exitCode = 2;
|
|
656
656
|
return;
|
|
657
657
|
}
|
|
658
|
-
await
|
|
658
|
+
await _chunkHINTYT5Hjs.syncSdkSkillsIfNeeded.call(void 0, _chunkMHRR47VQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
659
659
|
mode: "inline",
|
|
660
660
|
notices: "defer",
|
|
661
661
|
claim
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
RETAINED_PIPELINE_RECEIVERS_HEADER,
|
|
32
32
|
RUNTIME_ENVIRONMENT_TOKEN_HEADER,
|
|
33
33
|
SDK_API_MAJOR
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-TS4KFQKS.mjs";
|
|
35
35
|
import {
|
|
36
36
|
CustomerDbQueryOutcomeUnknownError
|
|
37
37
|
} from "./chunk-4QF2K7TM.mjs";
|
|
@@ -3548,8 +3548,13 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
3548
3548
|
this.billing = {
|
|
3549
3549
|
quote: (input) => this.http.post("/api/v2/billing/quote", input),
|
|
3550
3550
|
entitlements: () => this.http.get("/api/v2/billing/entitlements"),
|
|
3551
|
-
includedCompute: () => this.http.get(
|
|
3552
|
-
|
|
3551
|
+
includedCompute: ({ includeOverage } = {}) => this.http.get(
|
|
3552
|
+
includeOverage ? "/api/v2/billing/included-compute?include_overage=true" : "/api/v2/billing/included-compute"
|
|
3553
|
+
),
|
|
3554
|
+
enableIncludedCompute: ({ includeOverage } = {}) => this.http.post(
|
|
3555
|
+
includeOverage ? "/api/v2/billing/included-compute?include_overage=true" : "/api/v2/billing/included-compute",
|
|
3556
|
+
{}
|
|
3557
|
+
),
|
|
3553
3558
|
topUp: (options) => this.topUpBillingBalance(options),
|
|
3554
3559
|
topUpWithReceipt: (options) => this.topUpBillingBalanceWithReceipt(options),
|
|
3555
3560
|
plans: () => this.getBillingPlans(),
|
|
@@ -3649,6 +3654,8 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
3649
3654
|
sync: (definitionOrId, options) => this.syncMonitorFleet(definitionOrId, options),
|
|
3650
3655
|
get: (fleetId, options) => fleetId === void 0 ? this.listMonitorFleets() : this.getMonitorFleet(fleetId, options),
|
|
3651
3656
|
list: () => this.listMonitorFleets(),
|
|
3657
|
+
overview: (fleetId, options) => fleetId === void 0 ? this.listMonitorFleetOverviews(options) : this.getMonitorFleetOverview(fleetId, options),
|
|
3658
|
+
issues: (fleetId, options) => this.listMonitorFleetIssues(fleetId, options),
|
|
3652
3659
|
deactivate: (fleetId, options) => this.deactivateMonitorFleet(fleetId, options),
|
|
3653
3660
|
reactivate: (fleetId, options) => this.reactivateMonitorFleet(fleetId, options),
|
|
3654
3661
|
start: (fleetId, options) => this.reactivateMonitorFleet(fleetId, options),
|
|
@@ -6707,6 +6714,7 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
6707
6714
|
for (const signal of options?.signals ?? [])
|
|
6708
6715
|
params.append("signal", signal);
|
|
6709
6716
|
if (options?.play) params.set("play", options.play);
|
|
6717
|
+
if (options?.fleet) params.set("fleet", options.fleet);
|
|
6710
6718
|
if (options?.sort) params.set("sort", options.sort);
|
|
6711
6719
|
if (options?.window) params.set("window", options.window);
|
|
6712
6720
|
if (options?.limit !== void 0)
|
|
@@ -7037,6 +7045,41 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
7037
7045
|
method: "GET"
|
|
7038
7046
|
});
|
|
7039
7047
|
}
|
|
7048
|
+
/** The Fleets list. Prefer `client.monitors.fleets.overview()`. */
|
|
7049
|
+
async listMonitorFleetOverviews(options) {
|
|
7050
|
+
const params = new URLSearchParams({ view: "overview" });
|
|
7051
|
+
if (options?.q) params.set("q", options.q);
|
|
7052
|
+
for (const state of options?.states ?? []) params.append("state", state);
|
|
7053
|
+
if (options?.sort) params.set("sort", options.sort);
|
|
7054
|
+
if (options?.window) params.set("window", options.window);
|
|
7055
|
+
return this.http.request(
|
|
7056
|
+
`/api/v2/monitors/fleets?${params.toString()}`,
|
|
7057
|
+
{ method: "GET" }
|
|
7058
|
+
);
|
|
7059
|
+
}
|
|
7060
|
+
/** One fleet's overview. Prefer `client.monitors.fleets.overview(fleetId)`. */
|
|
7061
|
+
async getMonitorFleetOverview(fleetId, options) {
|
|
7062
|
+
const params = new URLSearchParams({ view: "overview" });
|
|
7063
|
+
if (options?.window) params.set("window", options.window);
|
|
7064
|
+
return this.http.request(
|
|
7065
|
+
`${this.monitorFleetPath(fleetId)}?${params.toString()}`,
|
|
7066
|
+
{ method: "GET" }
|
|
7067
|
+
);
|
|
7068
|
+
}
|
|
7069
|
+
/** A fleet's problem members. Prefer `client.monitors.fleets.issues(...)`. */
|
|
7070
|
+
async listMonitorFleetIssues(fleetId, options) {
|
|
7071
|
+
const params = new URLSearchParams();
|
|
7072
|
+
if (options?.group) params.set("group", options.group);
|
|
7073
|
+
if (options?.cause) params.set("cause", options.cause);
|
|
7074
|
+
if (options?.cursor) params.set("cursor", options.cursor);
|
|
7075
|
+
if (options?.limit !== void 0)
|
|
7076
|
+
params.set("limit", String(options.limit));
|
|
7077
|
+
const query = params.toString();
|
|
7078
|
+
return this.http.request(
|
|
7079
|
+
`${this.monitorFleetPath(fleetId)}/issues${query ? `?${query}` : ""}`,
|
|
7080
|
+
{ method: "GET" }
|
|
7081
|
+
);
|
|
7082
|
+
}
|
|
7040
7083
|
async getMonitorFleet(fleetId, options) {
|
|
7041
7084
|
const params = new URLSearchParams();
|
|
7042
7085
|
if (options?.drift) params.set("drift", "1");
|
|
@@ -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.506",
|
|
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."
|