deepline 0.3.580 → 0.3.581
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +42 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +49 -11
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +13 -4
- package/dist/bundling-sources/shared_libs/play-runtime/transient-service-error.ts +12 -0
- package/dist/bundling-sources/shared_libs/plays/sandbox-runtime-limits.ts +20 -0
- package/dist/cli/{agents-BF5VX5ZB.js → agents-UDTRMWPA.js} +81 -39
- package/dist/cli/{agents-JRFTZE7G.mjs → agents-VDQSVDSM.mjs} +51 -9
- package/dist/cli/{auth-XJXZ64R4.mjs → auth-SRN5FXUQ.mjs} +5 -5
- package/dist/cli/auth-UYQHRHYR.js +44 -0
- package/dist/cli/{billing-VGMTJI7W.js → billing-HGHIOFSA.js} +111 -111
- package/dist/cli/{billing-TXJBGP2I.mjs → billing-PR2SIEJM.mjs} +11 -11
- package/dist/cli/{chunk-IG3CXIJY.mjs → chunk-2MIJMDGF.mjs} +1 -1
- package/dist/cli/{chunk-2ZCFAUCV.js → chunk-2RLMHWXW.js} +3 -3
- package/dist/cli/{chunk-IM322G7M.mjs → chunk-3FMGBMT3.mjs} +1 -1
- package/dist/cli/{chunk-SQBSK74D.mjs → chunk-3I6GA5QW.mjs} +1 -1
- package/dist/cli/{chunk-XFVJ3JNA.js → chunk-3LP7J63L.js} +5 -5
- package/dist/cli/{chunk-H3B6QM6V.mjs → chunk-46EBSUZF.mjs} +3 -3
- package/dist/cli/{chunk-WJUAVMQC.js → chunk-5XVDZVCR.js} +8 -8
- package/dist/cli/{chunk-COAAKSFX.js → chunk-6U3THMRI.js} +5 -5
- package/dist/cli/{chunk-LRZGS6RZ.mjs → chunk-7MMEW2WU.mjs} +1 -1
- package/dist/cli/{chunk-URZPR54R.js → chunk-7VOSQARZ.js} +6 -6
- package/dist/cli/{chunk-ZADJC22U.js → chunk-A4IOPFEJ.js} +3 -3
- package/dist/cli/{chunk-IERWFFDB.mjs → chunk-ALXIC5U5.mjs} +5 -5
- package/dist/cli/{chunk-EI7KTESB.mjs → chunk-BDNQDWGI.mjs} +2 -2
- package/dist/cli/{chunk-3OSNEWGR.js → chunk-BQL34VOQ.js} +100 -100
- package/dist/cli/{chunk-APJ7IPRT.js → chunk-BULUFFST.js} +15 -15
- package/dist/cli/{chunk-GE4ZEMMA.mjs → chunk-CDIMI54H.mjs} +2 -2
- package/dist/cli/{chunk-ANX3PYLT.js → chunk-CN4MXBZ3.js} +13 -13
- package/dist/cli/{chunk-R77IVVEZ.js → chunk-CNRPE3AE.js} +53 -53
- package/dist/cli/{chunk-O7AWGIDD.mjs → chunk-DZMQV5FL.mjs} +2 -2
- package/dist/cli/{chunk-HEZ24K5F.js → chunk-E2EGQNOS.js} +2 -2
- package/dist/cli/{chunk-MCYZO3RB.js → chunk-E5ITZIWK.js} +16 -16
- package/dist/cli/{chunk-LC4ETCOA.mjs → chunk-E5O4CMHZ.mjs} +2 -2
- package/dist/cli/{chunk-MEDA3STC.mjs → chunk-EHTD65FE.mjs} +1 -1
- package/dist/cli/{chunk-E2G2DNAB.js → chunk-EP3GZAHK.js} +7 -7
- package/dist/cli/{chunk-MBOPKQJF.js → chunk-FXSDDEAR.js} +1 -1
- package/dist/cli/{chunk-TSOXJZSW.js → chunk-INRXX4SX.js} +41 -41
- package/dist/cli/{chunk-MP6XUVAJ.mjs → chunk-INXRW5AF.mjs} +2 -2
- package/dist/cli/{chunk-GDBNH57Z.js → chunk-IT3F7P6O.js} +10 -10
- package/dist/cli/{chunk-XQUVLYOL.js → chunk-J6ITN2X6.js} +7 -7
- package/dist/cli/{chunk-D6I7QWOZ.js → chunk-JQK42HZQ.js} +2 -2
- package/dist/cli/{chunk-NV5IJ3NY.mjs → chunk-KDITCSPN.mjs} +21 -1
- package/dist/cli/{chunk-Z6DERGHY.js → chunk-KO6OLYSD.js} +48 -48
- package/dist/cli/{chunk-YY6EB252.js → chunk-LJZESBNY.js} +2 -2
- package/dist/cli/{chunk-VOQWPUIF.js → chunk-MSCYYFLY.js} +20 -20
- package/dist/cli/{chunk-7ORX33JX.mjs → chunk-N5VJVVVV.mjs} +5 -5
- package/dist/cli/{chunk-LHV3HPAY.js → chunk-O5FIWG2O.js} +26 -26
- package/dist/cli/{chunk-U4VCAECC.mjs → chunk-OVJWDFIL.mjs} +1 -1
- package/dist/cli/{chunk-BAXLPQTM.mjs → chunk-P5ZZY4RM.mjs} +4 -4
- package/dist/cli/{chunk-PFNYLTCZ.js → chunk-PLGJG5FX.js} +5 -5
- package/dist/cli/{chunk-FCJJPEKN.mjs → chunk-RA3BWUTD.mjs} +5 -5
- package/dist/cli/{chunk-6VSUP4WN.js → chunk-SNYH4QY2.js} +4 -4
- package/dist/cli/{chunk-7HOG3JZE.mjs → chunk-SZ76UE7C.mjs} +11 -11
- package/dist/cli/{chunk-3ZBPXNSW.mjs → chunk-ULU4MEXN.mjs} +2 -2
- package/dist/cli/{chunk-V5NDHTBB.js → chunk-VJR4CKYJ.js} +23 -23
- package/dist/cli/{chunk-3P4QZIJ5.mjs → chunk-VNW454PP.mjs} +1 -1
- package/dist/cli/{chunk-ZR7PDXIA.mjs → chunk-VTPMBOHZ.mjs} +2 -2
- package/dist/cli/{chunk-GIZIWNL5.mjs → chunk-VVENTTSA.mjs} +1 -1
- package/dist/cli/{chunk-NNWEQDZR.js → chunk-VWPM4OIC.js} +20 -20
- package/dist/cli/{chunk-5BPJW6X5.mjs → chunk-WCNJSZHC.mjs} +5 -5
- package/dist/cli/{chunk-C6YXUGX2.mjs → chunk-WS5ZX4RB.mjs} +3 -3
- package/dist/cli/{chunk-VF3EGTHU.mjs → chunk-WVFDPC4K.mjs} +3 -3
- package/dist/cli/{chunk-AZTQJJH7.js → chunk-Y36SQMSN.js} +22 -2
- package/dist/cli/{chunk-HLMF53HZ.mjs → chunk-YTPXKG4C.mjs} +1 -1
- package/dist/cli/{chunk-X5RXG6VS.mjs → chunk-Z3MJX3PP.mjs} +1 -1
- package/dist/cli/{chunk-DQEHBAHL.js → chunk-ZAKNDIK7.js} +9 -9
- package/dist/cli/{chunk-BK4Z62CF.mjs → chunk-ZTKLJADJ.mjs} +4 -4
- package/dist/cli/command-docs.js +4 -4
- package/dist/cli/command-docs.mjs +3 -3
- package/dist/cli/concurrent-runs-help-QWDTLZUX.js +22 -0
- package/dist/cli/{concurrent-runs-help-DSUQRWZQ.mjs → concurrent-runs-help-Z27MIIH3.mjs} +6 -6
- package/dist/cli/{csv-HSHF6JYZ.js → csv-4TP36F5O.js} +13 -13
- package/dist/cli/{csv-QNXJBT5T.mjs → csv-4YFTMVWQ.mjs} +4 -4
- package/dist/cli/{db-VHYWVLLU.js → db-L5EGGO72.js} +27 -27
- package/dist/cli/{db-RAWY3SWS.mjs → db-U5KR6SYI.mjs} +6 -6
- package/dist/cli/describe-G3SUS76P.js +50 -0
- package/dist/cli/{describe-WZOVHWAM.mjs → describe-LZXXSQ26.mjs} +18 -18
- package/dist/cli/{executions-DQIFH4Z6.js → executions-VZKRFDGM.js} +8 -8
- package/dist/cli/{executions-QABOXV4K.mjs → executions-ZWEC5DDR.mjs} +6 -6
- package/dist/cli/{feedback-6IER2W4G.js → feedback-BTJIJCQF.js} +14 -14
- package/dist/cli/{feedback-DW4O63DG.mjs → feedback-HXQTHXEZ.mjs} +6 -6
- package/dist/cli/{git-3NAPGZGR.mjs → git-P6A45MMT.mjs} +5 -5
- package/dist/cli/git-QU673DBV.js +26 -0
- package/dist/cli/index.js +150 -150
- package/dist/cli/index.mjs +49 -49
- package/dist/cli/{integrations-TSRUTENK.mjs → integrations-4POM2CJ3.mjs} +7 -7
- package/dist/cli/{integrations-5LHIBBXB.js → integrations-VSJQBRFS.js} +29 -29
- package/dist/cli/{legacy-noops-4N63A6H7.mjs → legacy-noops-I65MIKH2.mjs} +6 -6
- package/dist/cli/{legacy-noops-S22XGYGN.js → legacy-noops-QOJGSGVO.js} +9 -9
- package/dist/cli/{mcp-4EJHRRFV.mjs → mcp-TGY6SRAC.mjs} +4 -4
- package/dist/cli/{mcp-JERBGJYE.js → mcp-WTKBSLSD.js} +24 -24
- package/dist/cli/{monitors-7BTLBD6S.mjs → monitors-E2ENT4RY.mjs} +7 -7
- package/dist/cli/{monitors-FF35CGC4.js → monitors-TLWVEXW6.js} +100 -100
- package/dist/cli/{org-QYIIBKA2.mjs → org-J2LGW5ZR.mjs} +6 -6
- package/dist/cli/{org-ADCDO7KU.js → org-PZPJJU7K.js} +121 -121
- package/dist/cli/{outcomes-C5DIBG4Q.mjs → outcomes-TMJDASU5.mjs} +6 -6
- package/dist/cli/{outcomes-2LW4GK2L.js → outcomes-Z6ZNBJ3U.js} +14 -14
- package/dist/cli/{play-DTTDTISL.mjs → play-S3Z24HUS.mjs} +21 -21
- package/dist/cli/{play-S5MZ2GRA.js → play-ZOOC57X4.js} +342 -342
- package/dist/cli/{providers-AXOEFQ6Q.mjs → providers-ETD6YLFL.mjs} +6 -6
- package/dist/cli/{providers-N2IWEJBW.js → providers-O4Y2YBS7.js} +9 -9
- package/dist/cli/{quickstart-UC5AJZWU.js → quickstart-NZALIRBP.js} +6 -6
- package/dist/cli/{quickstart-ADWSZBV6.mjs → quickstart-QZX32Y5T.mjs} +4 -4
- package/dist/cli/{run-6TDYUL7L.js → run-5UXSWJ7N.js} +44 -44
- package/dist/cli/{run-R2FVH3K6.mjs → run-HCVBRE2P.mjs} +23 -23
- package/dist/cli/search-T3SLR55O.js +32 -0
- package/dist/cli/{search-GRHUFSLY.mjs → search-Z247K76U.mjs} +7 -7
- package/dist/cli/{search-output-UPQNAFAF.mjs → search-output-XCJI3XRA.mjs} +4 -4
- package/dist/cli/{search-output-O7NY3VMD.js → search-output-XFKEGUJA.js} +6 -6
- package/dist/cli/{secrets-NKAEJLIQ.mjs → secrets-7JZXHLRU.mjs} +6 -6
- package/dist/cli/{secrets-72GJHFER.js → secrets-VUQLTUTM.js} +15 -15
- package/dist/cli/sessions-GHW2H7N2.js +23 -0
- package/dist/cli/{sessions-VIMF3UF5.mjs → sessions-UNGJ342N.mjs} +6 -6
- package/dist/cli/{settings-KCQHBFNZ.mjs → settings-67TIT4MZ.mjs} +12 -12
- package/dist/cli/{settings-HFAW5HIF.js → settings-WG5YNHC5.js} +85 -85
- package/dist/cli/{setup-2MHWGEAD.js → setup-IYUNW5ZP.js} +49 -49
- package/dist/cli/{setup-2ZD5ZIUH.mjs → setup-KMAAJOZM.mjs} +9 -9
- package/dist/cli/skills-JVLCEUBF.js +37 -0
- package/dist/cli/{skills-X2DZZG5P.mjs → skills-UVS4DODN.mjs} +7 -7
- package/dist/cli/{tools-KPTOWKD4.mjs → tools-B42JY4BX.mjs} +17 -17
- package/dist/cli/tools-ETA3BJNM.js +57 -0
- package/dist/cli/{update-6PMQCEUP.mjs → update-EBYZZ7BW.mjs} +9 -9
- package/dist/cli/update-XZEBQCEY.js +37 -0
- package/dist/cli/{views-MNBHNO6C.js → views-DOUEKLEV.js} +21 -21
- package/dist/cli/{views-VRZ5CTFL.mjs → views-QK3AFD2D.mjs} +6 -6
- package/dist/cli/{workflow-SSMFO7YE.js → workflow-TAKT2T7A.js} +17 -17
- package/dist/cli/{workflow-7JUJWA5S.mjs → workflow-UBJPGRKF.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +120 -120
- package/dist/plays/bundle-play-file.mjs +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-25MVD7TK.js +0 -44
- package/dist/cli/concurrent-runs-help-DEN63DUM.js +0 -22
- package/dist/cli/describe-YHZ2EGBQ.js +0 -50
- package/dist/cli/git-SQ2MAKAH.js +0 -26
- package/dist/cli/search-V7ANBX3J.js +0 -32
- package/dist/cli/sessions-EO6RTMUC.js +0 -23
- package/dist/cli/skills-ID6KKDLH.js +0 -37
- package/dist/cli/tools-7UY7GERW.js +0 -57
- package/dist/cli/update-T2RDLLSY.js +0 -37
- /package/dist/cli/{chunk-YGCKMI5P.js → chunk-2M3VVGMZ.js} +0 -0
- /package/dist/cli/{chunk-7I4B6V2S.mjs → chunk-VMGJIFSB.mjs} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
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 _chunkBQL34VOQjs = require('./chunk-BQL34VOQ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkJ6ITN2X6js = require('./chunk-J6ITN2X6.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -14,17 +14,17 @@ var _chunkS2YKIWCDjs = require('./chunk-S2YKIWCD.js');
|
|
|
14
14
|
var _chunkMOZDEYQCjs = require('./chunk-MOZDEYQC.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunk3LP7J63Ljs = require('./chunk-3LP7J63L.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkVWPM4OICjs = require('./chunk-VWPM4OIC.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunk2RLMHWXWjs = require('./chunk-2RLMHWXW.js');
|
|
28
28
|
|
|
29
29
|
// src/cli/commands/describe.ts
|
|
30
30
|
var _fs = require('fs');
|
|
@@ -33,14 +33,14 @@ var _path = require('path');
|
|
|
33
33
|
// src/cli/doc-read-reporting.ts
|
|
34
34
|
var REPORT_TIMEOUT_MS = 1e3;
|
|
35
35
|
async function reportDocRead(docId) {
|
|
36
|
-
if (
|
|
36
|
+
if (_chunkVWPM4OICjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
37
37
|
try {
|
|
38
|
-
const baseUrl =
|
|
39
|
-
const apiKey =
|
|
38
|
+
const baseUrl = _chunk2RLMHWXWjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
39
|
+
const apiKey = _chunk2RLMHWXWjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
40
40
|
if (!apiKey) return;
|
|
41
41
|
await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
|
|
42
42
|
method: "POST",
|
|
43
|
-
headers:
|
|
43
|
+
headers: _chunkVWPM4OICjs.failureReportHeaders.call(void 0, apiKey),
|
|
44
44
|
body: JSON.stringify({ doc_id: docId }),
|
|
45
45
|
signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
|
|
46
46
|
});
|
|
@@ -53,22 +53,22 @@ function nothingNamed(name) {
|
|
|
53
53
|
return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
|
|
54
54
|
}
|
|
55
55
|
function findNamed2(name, options) {
|
|
56
|
-
return _chunkS2YKIWCDjs.findNamed.call(void 0, name, options, cliDescribeLookups(new (0,
|
|
56
|
+
return _chunkS2YKIWCDjs.findNamed.call(void 0, name, options, cliDescribeLookups(new (0, _chunk3LP7J63Ljs.DeeplineClient)()));
|
|
57
57
|
}
|
|
58
58
|
function cliDescribeLookups(client) {
|
|
59
59
|
return {
|
|
60
60
|
..._chunkS2YKIWCDjs.describeLookupsFor.call(void 0, client),
|
|
61
|
-
dashboardOrgId:
|
|
61
|
+
dashboardOrgId: _chunk2RLMHWXWjs.resolveCliDashboardOrgId.call(void 0, client.baseUrl)
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
async function describeAnything(name, options, onMissing) {
|
|
65
|
-
const client = new (0,
|
|
65
|
+
const client = new (0, _chunk3LP7J63Ljs.DeeplineClient)();
|
|
66
66
|
const lookups = cliDescribeLookups(client);
|
|
67
67
|
const outcome = await _chunkS2YKIWCDjs.describeName.call(void 0, name, options, {
|
|
68
68
|
...lookups,
|
|
69
69
|
// `tools describe` has already fetched the tool for its compatibility check.
|
|
70
70
|
tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
|
|
71
|
-
seedStarterScript:
|
|
71
|
+
seedStarterScript: _chunkBQL34VOQjs.seedToolListScript
|
|
72
72
|
});
|
|
73
73
|
if (outcome.status === "missing") {
|
|
74
74
|
if (onMissing) return onMissing();
|
|
@@ -97,18 +97,18 @@ function deliver(envelope, lines, { json, out }) {
|
|
|
97
97
|
` : text;
|
|
98
98
|
_fs.writeFileSync.call(void 0, path, content);
|
|
99
99
|
const bytes = Buffer.byteLength(content);
|
|
100
|
-
|
|
100
|
+
_chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
|
|
101
101
|
{ path, bytes },
|
|
102
102
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
103
103
|
` }
|
|
104
104
|
);
|
|
105
105
|
return 0;
|
|
106
106
|
}
|
|
107
|
-
|
|
107
|
+
_chunkVWPM4OICjs.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
108
108
|
return 0;
|
|
109
109
|
}
|
|
110
110
|
function registerDescribeCommand(program) {
|
|
111
|
-
|
|
111
|
+
_chunkJ6ITN2X6js.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
|
|
112
112
|
"Describe anything search returns: a tool, monitor type, or play."
|
|
113
113
|
).addHelpText(
|
|
114
114
|
"after",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EHTD65FE.mjs";
|
|
4
4
|
import {
|
|
5
5
|
enforceSdkCompatibilityResponse,
|
|
6
6
|
flushDeferredSkillsSyncNotices,
|
|
7
7
|
requireSdkCompatibility
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-N5VJVVVV.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk2M3VVGMZjs = require('./chunk-2M3VVGMZ.js');
|
|
8
8
|
|
|
9
9
|
// ../play-runtime/worker-api-types.ts
|
|
10
10
|
var DAYTONA_COMPUTE_PRICING_USD = {
|
|
@@ -28,7 +28,7 @@ function roundUsd(amount) {
|
|
|
28
28
|
return Number(Math.max(0, amount).toFixed(12));
|
|
29
29
|
}
|
|
30
30
|
function sandboxSizeMetadata(cpu, memoryGiB) {
|
|
31
|
-
const entry = Object.entries(
|
|
31
|
+
const entry = Object.entries(_chunk2M3VVGMZjs.PLAY_SANDBOX_SIZE_LIMITS).find(
|
|
32
32
|
([, limits]) => limits.cpu === cpu && limits.memoryGiB === memoryGiB
|
|
33
33
|
);
|
|
34
34
|
return entry ? { sandboxSize: entry[0] } : {};
|
|
@@ -121,7 +121,7 @@ var SANDBOX_NETWORK_CUT_MAX_MS = 11 * 6e4;
|
|
|
121
121
|
var RUNNER_GATEWAY_CONNECTION_RETRY_BUDGET_MS = SANDBOX_NETWORK_CUT_MAX_MS + 6e4;
|
|
122
122
|
var RUNNER_GATEWAY_SCHEDULER_UNAVAILABLE_RETRY_BUDGET_MS = 3 * 6e4;
|
|
123
123
|
var PLAY_RUNNER_TIMEOUT_SECONDS = 40 * 60;
|
|
124
|
-
var WORKFLOW_EXECUTOR_TOKEN_TTL_SECONDS =
|
|
124
|
+
var WORKFLOW_EXECUTOR_TOKEN_TTL_SECONDS = _chunk2M3VVGMZjs.MAX_PLAY_SANDBOX_RUNTIME_LIMITS.timeoutSeconds + (PLAY_RUNNER_TIMEOUT_SECONDS - STANDARD_PLAY_RUNTIME_LIMIT_SECONDS);
|
|
125
125
|
|
|
126
126
|
// ../billing/compute-pricing-contract.ts
|
|
127
127
|
var COMPUTE_BILLING_MARKUP_MULTIPLIER = 5;
|
|
@@ -134,7 +134,7 @@ var PLAY_SANDBOX_COMPUTE_RATE_MULTIPLIERS = {
|
|
|
134
134
|
xlarge: 5
|
|
135
135
|
};
|
|
136
136
|
var MAX_SANDBOX_COMPUTE_PROVIDER_COST_USD = Math.max(
|
|
137
|
-
...Object.values(
|
|
137
|
+
...Object.values(_chunk2M3VVGMZjs.PLAY_SANDBOX_SIZE_LIMITS).flatMap((profile) => {
|
|
138
138
|
const modalResources = modalSandboxResourcesForPlay(profile);
|
|
139
139
|
return [
|
|
140
140
|
resolveDaytonaSandboxComputeItem({
|
|
@@ -181,7 +181,7 @@ function estimateModalMaximumComputeCredits(limits, elasticMemory = false) {
|
|
|
181
181
|
itemId: "estimate",
|
|
182
182
|
wallTimeSeconds: maximumPlaySandboxBillingSeconds(limits),
|
|
183
183
|
physicalCpuCores: resources.physicalCpuCores,
|
|
184
|
-
memoryGiB: elasticMemory ?
|
|
184
|
+
memoryGiB: elasticMemory ? _chunk2M3VVGMZjs.modalSandboxMemoryLimitGiBForPlay.call(void 0, limits) : limits.memoryGiB
|
|
185
185
|
});
|
|
186
186
|
return roundUpCredits(
|
|
187
187
|
item.providerCostUsd * COMPUTE_BILLING_MARKUP_MULTIPLIER * DEFAULT_PROVIDER_MARKUP_MULTIPLIER / DEFAULT_USD_PER_CUSTOMER_CREDIT
|
|
@@ -194,9 +194,9 @@ function estimateMaximumSandboxComputeCredits(limits, elasticMemory = false) {
|
|
|
194
194
|
);
|
|
195
195
|
}
|
|
196
196
|
function formatNonStandardSandboxRuntimeWarning(limits) {
|
|
197
|
-
const size =
|
|
197
|
+
const size = _chunk2M3VVGMZjs.playSandboxSizeForLimits.call(void 0, limits);
|
|
198
198
|
if (!size) return null;
|
|
199
|
-
if (size === "standard" && limits.timeoutSeconds <=
|
|
199
|
+
if (size === "standard" && limits.timeoutSeconds <= _chunk2M3VVGMZjs.STANDARD_PLAY_SANDBOX_RUNTIME_LIMITS.timeoutSeconds) {
|
|
200
200
|
return null;
|
|
201
201
|
}
|
|
202
202
|
const maximumComputeCredits = estimateMaximumSandboxComputeCredits(limits);
|
|
@@ -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.581",
|
|
53
53
|
updateSummary: {
|
|
54
54
|
introducedIn: "0.3.90",
|
|
55
55
|
summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
|
|
@@ -11,20 +11,20 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkKO6OLYSDjs = require('./chunk-KO6OLYSD.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkVWPM4OICjs = require('./chunk-VWPM4OIC.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunk2RLMHWXWjs = require('./chunk-2RLMHWXW.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkSNYH4QY2js = require('./chunk-SNYH4QY2.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 = _chunk2RLMHWXWjs.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, () => ( _chunkSNYH4QY2js.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, _chunk2RLMHWXWjs.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 = [..._chunkKO6OLYSDjs.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=${_chunkKO6OLYSDjs.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=${_chunkKO6OLYSDjs.SKILLS_NPX_PACKAGE}`,
|
|
209
209
|
"--",
|
|
210
210
|
"skills",
|
|
211
211
|
"add",
|
|
212
|
-
|
|
212
|
+
_chunkKO6OLYSDjs.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 = _chunkKO6OLYSDjs.resolveShellSpawn.call(void 0,
|
|
250
250
|
command,
|
|
251
251
|
args,
|
|
252
252
|
process.platform,
|
|
@@ -269,7 +269,7 @@ function runProcess(command, args, cwd) {
|
|
|
269
269
|
child.kill("SIGTERM");
|
|
270
270
|
reject(
|
|
271
271
|
new Error(
|
|
272
|
-
`${
|
|
272
|
+
`${_chunkKO6OLYSDjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
|
|
273
273
|
)
|
|
274
274
|
);
|
|
275
275
|
}, SKILLS_PROCESS_TIMEOUT_MS);
|
|
@@ -280,7 +280,7 @@ function runProcess(command, args, cwd) {
|
|
|
280
280
|
child.once("close", (code) => {
|
|
281
281
|
clearTimeout(timeout);
|
|
282
282
|
if (code && stderr.trim()) {
|
|
283
|
-
process.stderr.write(`${
|
|
283
|
+
process.stderr.write(`${_chunkKO6OLYSDjs.SKILLS_NPX_PACKAGE} exited ${code}.
|
|
284
284
|
`);
|
|
285
285
|
}
|
|
286
286
|
resolve(_nullishCoalesce(code, () => ( 1)));
|
|
@@ -288,7 +288,7 @@ function runProcess(command, args, cwd) {
|
|
|
288
288
|
});
|
|
289
289
|
}
|
|
290
290
|
async function showSkills(options, name) {
|
|
291
|
-
const baseUrl =
|
|
291
|
+
const baseUrl = _chunk2RLMHWXWjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
292
292
|
const url = name ? `${baseUrl}/.well-known/skills/${encodeURIComponent(name)}/SKILL.md` : `${baseUrl}/.well-known/skills/index.json`;
|
|
293
293
|
try {
|
|
294
294
|
const response = await fetch(url, {
|
|
@@ -301,7 +301,7 @@ async function showSkills(options, name) {
|
|
|
301
301
|
}
|
|
302
302
|
if (name) {
|
|
303
303
|
const markdown = await response.text();
|
|
304
|
-
|
|
304
|
+
_chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
|
|
305
305
|
{ ok: true, status: "completed", skill: { name, markdown } },
|
|
306
306
|
{ json: options.json, text: markdown }
|
|
307
307
|
);
|
|
@@ -311,7 +311,7 @@ async function showSkills(options, name) {
|
|
|
311
311
|
const skills = (_nullishCoalesce(index.skills, () => ( []))).filter(
|
|
312
312
|
(skill) => skill.install_surface === "v1" && skill.name
|
|
313
313
|
);
|
|
314
|
-
|
|
314
|
+
_chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
|
|
315
315
|
{
|
|
316
316
|
ok: true,
|
|
317
317
|
status: "completed",
|
|
@@ -328,7 +328,7 @@ Read one with: deepline skills show <name>
|
|
|
328
328
|
);
|
|
329
329
|
return 0;
|
|
330
330
|
} catch (error) {
|
|
331
|
-
|
|
331
|
+
_chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
|
|
332
332
|
{
|
|
333
333
|
ok: false,
|
|
334
334
|
status: "failed",
|
|
@@ -351,7 +351,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
351
351
|
scope = normalizeScope(options.scope);
|
|
352
352
|
root = scope === "local" ? resolveLocalRoot() : null;
|
|
353
353
|
} catch (error) {
|
|
354
|
-
|
|
354
|
+
_chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
|
|
355
355
|
{
|
|
356
356
|
ok: false,
|
|
357
357
|
status: "failed",
|
|
@@ -363,22 +363,22 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
363
363
|
);
|
|
364
364
|
return 2;
|
|
365
365
|
}
|
|
366
|
-
const baseUrl =
|
|
366
|
+
const baseUrl = _chunk2RLMHWXWjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
367
367
|
const catalog = {
|
|
368
|
-
skillNames: [...
|
|
369
|
-
version:
|
|
368
|
+
skillNames: [..._chunkKO6OLYSDjs.DEFAULT_SDK_SKILL_NAMES],
|
|
369
|
+
version: _chunkSNYH4QY2js.SDK_VERSION
|
|
370
370
|
};
|
|
371
371
|
const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
|
|
372
372
|
const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
|
|
373
373
|
if (options.dryRun) {
|
|
374
|
-
|
|
374
|
+
_chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
|
|
375
375
|
{ ok: true, status: "planned", dryRun: true, ...plan },
|
|
376
376
|
{ json: options.json }
|
|
377
377
|
);
|
|
378
378
|
return 0;
|
|
379
379
|
}
|
|
380
|
-
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !
|
|
381
|
-
|
|
380
|
+
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkKO6OLYSDjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
381
|
+
_chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
|
|
382
382
|
{
|
|
383
383
|
ok: true,
|
|
384
384
|
status: "current",
|
|
@@ -410,10 +410,10 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
410
410
|
}
|
|
411
411
|
if (scope === "local" && root) {
|
|
412
412
|
const managedNames = [
|
|
413
|
-
.../* @__PURE__ */ new Set([...plan.skillNames, ...
|
|
413
|
+
.../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkKO6OLYSDjs.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
414
414
|
];
|
|
415
415
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
416
|
-
|
|
416
|
+
_chunk2RLMHWXWjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
|
|
417
417
|
".deepline/",
|
|
418
418
|
...agentRoots.flatMap(
|
|
419
419
|
(agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
|
|
@@ -422,7 +422,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
422
422
|
}
|
|
423
423
|
let lease;
|
|
424
424
|
try {
|
|
425
|
-
lease = scope === "global" ? await
|
|
425
|
+
lease = scope === "global" ? await _chunkKO6OLYSDjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
|
|
426
426
|
waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
|
|
427
427
|
onWait: () => process.stderr.write(
|
|
428
428
|
"Waiting for a background Deepline skills refresh to finish...\n"
|
|
@@ -430,8 +430,8 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
430
430
|
}) : { release: () => {
|
|
431
431
|
} };
|
|
432
432
|
} catch (error) {
|
|
433
|
-
if (!(error instanceof
|
|
434
|
-
|
|
433
|
+
if (!(error instanceof _chunkKO6OLYSDjs.SkillsStateUnavailableError)) throw error;
|
|
434
|
+
_chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
|
|
435
435
|
{
|
|
436
436
|
ok: false,
|
|
437
437
|
status: "failed",
|
|
@@ -447,7 +447,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
447
447
|
return 5;
|
|
448
448
|
}
|
|
449
449
|
if (!lease) {
|
|
450
|
-
|
|
450
|
+
_chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
|
|
451
451
|
{
|
|
452
452
|
ok: false,
|
|
453
453
|
status: "failed",
|
|
@@ -456,7 +456,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
456
456
|
scope,
|
|
457
457
|
agents,
|
|
458
458
|
message: "A background Deepline skills refresh is still running for these agents.",
|
|
459
|
-
next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${
|
|
459
|
+
next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${_chunkKO6OLYSDjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
|
|
460
460
|
},
|
|
461
461
|
{ json: options.json }
|
|
462
462
|
);
|
|
@@ -505,7 +505,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
507
|
} catch (error) {
|
|
508
|
-
|
|
508
|
+
_chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
|
|
509
509
|
{
|
|
510
510
|
ok: false,
|
|
511
511
|
status: "failed",
|
|
@@ -521,7 +521,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
521
521
|
return 5;
|
|
522
522
|
}
|
|
523
523
|
if (missing.length > 0) {
|
|
524
|
-
|
|
524
|
+
_chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
|
|
525
525
|
{
|
|
526
526
|
ok: false,
|
|
527
527
|
status: "failed",
|
|
@@ -561,7 +561,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
561
561
|
{
|
|
562
562
|
schemaVersion: 1,
|
|
563
563
|
installedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
564
|
-
cliVersion:
|
|
564
|
+
cliVersion: _chunkSNYH4QY2js.SDK_VERSION,
|
|
565
565
|
scope,
|
|
566
566
|
agents,
|
|
567
567
|
skillsVersion: plan.version,
|
|
@@ -574,9 +574,9 @@ async function runSkillsInstallWithLease(input) {
|
|
|
574
574
|
"utf8"
|
|
575
575
|
);
|
|
576
576
|
if (scope === "global") {
|
|
577
|
-
|
|
577
|
+
_chunkKO6OLYSDjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
578
578
|
}
|
|
579
|
-
|
|
579
|
+
_chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
|
|
580
580
|
{
|
|
581
581
|
ok: true,
|
|
582
582
|
status: "complete",
|
|
@@ -625,7 +625,7 @@ Examples:
|
|
|
625
625
|
"after",
|
|
626
626
|
`
|
|
627
627
|
Notes:
|
|
628
|
-
This command reinstalls current Deepline-managed skills using ${
|
|
628
|
+
This command reinstalls current Deepline-managed skills using ${_chunkKO6OLYSDjs.SKILLS_NPX_PACKAGE},
|
|
629
629
|
then removes legacy Deepline skill names. Local scope writes into the resolved
|
|
630
630
|
persistent project.
|
|
631
631
|
|
|
@@ -637,13 +637,13 @@ Examples:
|
|
|
637
637
|
).action(async (options) => {
|
|
638
638
|
process.exitCode = await runSkillsCommand(options);
|
|
639
639
|
});
|
|
640
|
-
program.command(
|
|
640
|
+
program.command(_chunkKO6OLYSDjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
|
|
641
641
|
"--claim <token>",
|
|
642
642
|
"Owner token of the leases this child was started for."
|
|
643
643
|
).action(async (options) => {
|
|
644
644
|
const claim = _optionalChain([options, 'access', _9 => _9.claim, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]);
|
|
645
645
|
if (!claim) {
|
|
646
|
-
|
|
646
|
+
_chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
|
|
647
647
|
{
|
|
648
648
|
ok: false,
|
|
649
649
|
status: "failed",
|
|
@@ -656,7 +656,7 @@ Examples:
|
|
|
656
656
|
process.exitCode = 2;
|
|
657
657
|
return;
|
|
658
658
|
}
|
|
659
|
-
await
|
|
659
|
+
await _chunkKO6OLYSDjs.syncSdkSkillsIfNeeded.call(void 0, _chunk2RLMHWXWjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
660
660
|
mode: "inline",
|
|
661
661
|
notices: "defer",
|
|
662
662
|
claim
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ULU4MEXN.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-Z3MJX3PP.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk3LP7J63Ljs = require('./chunk-3LP7J63L.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkVWPM4OICjs = require('./chunk-VWPM4OIC.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk2RLMHWXWjs = require('./chunk-2RLMHWXW.js');
|
|
16
16
|
|
|
17
17
|
// src/cli/commands/search.ts
|
|
18
18
|
var _commander = require('commander');
|
|
@@ -22,7 +22,7 @@ var _fs = require('fs');
|
|
|
22
22
|
var _path = require('path');
|
|
23
23
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
24
24
|
function lastSearchPath() {
|
|
25
|
-
return _path.join.call(void 0,
|
|
25
|
+
return _path.join.call(void 0, _chunk2RLMHWXWjs.sdkCliStateDirPath.call(void 0, _chunk2RLMHWXWjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
26
26
|
}
|
|
27
27
|
function rememberSearchRef(searchRef) {
|
|
28
28
|
writeSearchRefs({ searchRef });
|
|
@@ -132,9 +132,9 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
132
132
|
console.error("--summary-width must be an integer of at least 2.");
|
|
133
133
|
return 1;
|
|
134
134
|
}
|
|
135
|
-
const client = new (0,
|
|
135
|
+
const client = new (0, _chunk3LP7J63Ljs.DeeplineClient)();
|
|
136
136
|
const json = options.json === true;
|
|
137
|
-
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-
|
|
137
|
+
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-XFKEGUJA.js")));
|
|
138
138
|
const searches = [];
|
|
139
139
|
const chunks = [];
|
|
140
140
|
const refs = /* @__PURE__ */ new Map();
|
|
@@ -157,7 +157,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
157
157
|
const text = _optionalChain([renderer, 'optionalAccess', _12 => _12.renderSearchResults, 'call', _13 => _13(result, summaryWidth)]);
|
|
158
158
|
if (!multiple) {
|
|
159
159
|
if (searchRef) rememberSearchRef(searchRef);
|
|
160
|
-
|
|
160
|
+
_chunkVWPM4OICjs.printCommandEnvelope.call(void 0, result, { json, text });
|
|
161
161
|
return 0;
|
|
162
162
|
}
|
|
163
163
|
searches.push({ ...result, query });
|
|
@@ -171,8 +171,8 @@ ${text}`);
|
|
|
171
171
|
}
|
|
172
172
|
} catch (error) {
|
|
173
173
|
if (!multiple) throw error;
|
|
174
|
-
const payload =
|
|
175
|
-
const queryExitCode = _nullishCoalesce(payload.exitCode, () => (
|
|
174
|
+
const payload = _chunkVWPM4OICjs.errorToJsonPayload.call(void 0, error);
|
|
175
|
+
const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkVWPM4OICjs.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
176
176
|
searches.push({ ...payload, query, exitCode: queryExitCode });
|
|
177
177
|
if (!json) {
|
|
178
178
|
console.error(`${JSON.stringify(query)}: ${payload.error.message}`);
|
|
@@ -184,7 +184,7 @@ Search failed.
|
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
rememberSearchRefsByTool(refs);
|
|
187
|
-
|
|
187
|
+
_chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
|
|
188
188
|
{ searches },
|
|
189
189
|
{
|
|
190
190
|
json,
|
|
@@ -10,7 +10,7 @@ var _chunkMOZDEYQCjs = require('./chunk-MOZDEYQC.js');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkVWPM4OICjs = require('./chunk-VWPM4OIC.js');
|
|
14
14
|
|
|
15
15
|
// src/cli/describe-options.ts
|
|
16
16
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -251,7 +251,7 @@ function projectRunDatasetCell(value) {
|
|
|
251
251
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
252
252
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
253
253
|
if (typeof logicalValue === "object") {
|
|
254
|
-
return
|
|
254
|
+
return _chunkVWPM4OICjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
255
255
|
}
|
|
256
256
|
return logicalValue;
|
|
257
257
|
}
|
|
@@ -643,7 +643,7 @@ function csvText(rows, columns = []) {
|
|
|
643
643
|
rows: rows.map((row) => record(row) ? row : { value: row }),
|
|
644
644
|
columns
|
|
645
645
|
});
|
|
646
|
-
return
|
|
646
|
+
return _chunkVWPM4OICjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
|
|
647
647
|
}
|
|
648
648
|
function writeExecutionOutput(result, options, { skipReceiptFile = false } = {}) {
|
|
649
649
|
let temp;
|
|
@@ -772,7 +772,7 @@ function writeExecutionOutput(result, options, { skipReceiptFile = false } = {})
|
|
|
772
772
|
};
|
|
773
773
|
if (options.receiptOut && !skipReceiptFile) {
|
|
774
774
|
persist(options.receiptOut, jsonText(receipt));
|
|
775
|
-
|
|
775
|
+
_chunkVWPM4OICjs.markJsonOutputHandled.call(void 0, );
|
|
776
776
|
} else {
|
|
777
777
|
printReceipt(receipt, options, {
|
|
778
778
|
data: hasData ? result.data : void 0,
|
|
@@ -944,7 +944,7 @@ function receiptText(receipt, options, extra) {
|
|
|
944
944
|
problems.push(
|
|
945
945
|
`Error: ${record(error) && typeof error.message === "string" ? error.message : JSON.stringify(error)}`
|
|
946
946
|
);
|
|
947
|
-
const diagnostic =
|
|
947
|
+
const diagnostic = _chunkVWPM4OICjs.formatCliFailureDiagnostic.call(void 0, error);
|
|
948
948
|
if (diagnostic) problems.push(...diagnostic.split("\n"));
|
|
949
949
|
if (record(error) && typeof error.recoveryFile === "string") {
|
|
950
950
|
problems.push(
|
|
@@ -1037,8 +1037,8 @@ function printReceipt(receipt, options, extra) {
|
|
|
1037
1037
|
const text = options.receiptJson ? `${JSON.stringify(receipt, null, 2)}
|
|
1038
1038
|
` : receiptText(receipt, options, extra);
|
|
1039
1039
|
if (options.receiptOut !== void 0) {
|
|
1040
|
-
|
|
1041
|
-
|
|
1040
|
+
_chunkVWPM4OICjs.writeRawStderr.call(void 0, text);
|
|
1041
|
+
_chunkVWPM4OICjs.markJsonOutputHandled.call(void 0, );
|
|
1042
1042
|
} else {
|
|
1043
1043
|
(dataOnStdout(options) ? process.stderr : process.stdout).write(text);
|
|
1044
1044
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
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 _chunkVWPM4OICjs = require('./chunk-VWPM4OIC.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/feedback-preferences.ts
|
|
6
6
|
|
|
@@ -57,7 +57,7 @@ function rejectRestrictedFeedback(options) {
|
|
|
57
57
|
const code = restriction === "off" ? "FEEDBACK_DISABLED" : "FEEDBACK_APPROVAL_REQUIRED";
|
|
58
58
|
const message = restriction === "off" ? 'Feedback is in mode "off". Do not ask the user if they want to send feedback. Use --requested only if they explicitly request it without being prompted.' : "Ask the user if they wish to send feedback. If they agree, rerun the send command with --requested. To change the setting, run deepline settings feedback --help. Agents must get user approval before turning feedback on.";
|
|
59
59
|
if (options.json) {
|
|
60
|
-
|
|
60
|
+
_chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
|
|
61
61
|
{ ok: false, code, exitCode: 2, message },
|
|
62
62
|
{ json: true }
|
|
63
63
|
);
|