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
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YWZEBPXK.mjs";
|
|
4
4
|
import {
|
|
5
5
|
iterateCursorPages,
|
|
6
6
|
requireBillingIdempotencyKey
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ONBXTEFQ.mjs";
|
|
8
8
|
import "./chunk-L2VKAASU.mjs";
|
|
9
9
|
import "./chunk-N4TR6QRI.mjs";
|
|
10
10
|
import "./chunk-S3A4IXBQ.mjs";
|
|
11
11
|
import "./chunk-BMCRTI6Z.mjs";
|
|
12
12
|
import {
|
|
13
13
|
PLAY_RUNTIME_PRICING_NOTE
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-AFSYNOG4.mjs";
|
|
15
15
|
import "./chunk-5LUF4LAR.mjs";
|
|
16
16
|
import {
|
|
17
17
|
PLAY_SANDBOX_SIZE_INPUTS
|
|
@@ -22,9 +22,9 @@ import {
|
|
|
22
22
|
openInBrowser,
|
|
23
23
|
printCommandEnvelope,
|
|
24
24
|
shouldEmitJson
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-2CFTDVEP.mjs";
|
|
26
|
+
import "./chunk-YVOS5KSG.mjs";
|
|
27
|
+
import "./chunk-TS4KFQKS.mjs";
|
|
28
28
|
import {
|
|
29
29
|
AuthError,
|
|
30
30
|
ConfigError
|
|
@@ -33,7 +33,7 @@ import "./chunk-DLIRSHV6.mjs";
|
|
|
33
33
|
import {
|
|
34
34
|
DeeplineError
|
|
35
35
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-OPBXKB57.mjs";
|
|
37
37
|
import "./chunk-WZYKRD7T.mjs";
|
|
38
38
|
import "./chunk-KRD6H754.mjs";
|
|
39
39
|
|
|
@@ -1245,13 +1245,18 @@ async function handleTargetStatus(options) {
|
|
|
1245
1245
|
function formatAllowanceAmount(value) {
|
|
1246
1246
|
return Number(value.toFixed(2)).toLocaleString("en-US");
|
|
1247
1247
|
}
|
|
1248
|
-
function
|
|
1249
|
-
|
|
1248
|
+
function formatComputeAmount(minutes, credits) {
|
|
1249
|
+
const time = minutes.toLocaleString("en-US", { maximumFractionDigits: 5 });
|
|
1250
|
+
const cost = credits.toLocaleString("en-US", { maximumFractionDigits: 5 });
|
|
1251
|
+
return `${time} ${minutes === 1 ? "minute" : "minutes"} (${cost} ${credits === 1 ? "credit" : "credits"})`;
|
|
1250
1252
|
}
|
|
1251
1253
|
async function handleIncludedCompute(options) {
|
|
1252
1254
|
const client = new DeeplineClient();
|
|
1253
|
-
const payload = options.enable ? await client.billing.enableIncludedCompute() : await client.billing.includedCompute();
|
|
1254
|
-
const
|
|
1255
|
+
const payload = options.enable ? await client.billing.enableIncludedCompute({ includeOverage: true }) : await client.billing.includedCompute({ includeOverage: true });
|
|
1256
|
+
const rate = payload.credits_per_minute ?? 0;
|
|
1257
|
+
const includedCredits = payload.included_credits_used ?? payload.included_minutes_used * rate;
|
|
1258
|
+
const includedMinutes = payload.included_credits_used !== void 0 && rate > 0 ? includedCredits / rate : payload.included_minutes_used;
|
|
1259
|
+
const overage = payload.overage_credits;
|
|
1255
1260
|
printCommandEnvelope(
|
|
1256
1261
|
{
|
|
1257
1262
|
ok: true,
|
|
@@ -1259,16 +1264,21 @@ async function handleIncludedCompute(options) {
|
|
|
1259
1264
|
render: {
|
|
1260
1265
|
sections: [
|
|
1261
1266
|
{
|
|
1262
|
-
title: "billing compute",
|
|
1267
|
+
title: payload.status === "unavailable" ? "billing compute" : "billing compute (standard-equivalent minutes)",
|
|
1263
1268
|
lines: payload.status === "on" ? [
|
|
1264
|
-
`
|
|
1265
|
-
|
|
1269
|
+
`Allowance used: ${formatComputeAmount(includedMinutes, includedCredits)} of ${formatComputeAmount(payload.included_minutes, payload.included_minutes * rate)}`,
|
|
1270
|
+
...overage === void 0 || rate <= 0 ? ["Overage: unavailable"] : overage > 0 ? [
|
|
1271
|
+
`Overage: ${formatComputeAmount(overage / rate, overage)} charged`
|
|
1272
|
+
] : [],
|
|
1273
|
+
`Standard sandbox price: ${formatComputeAmount(60, Math.round(rate * 60))}`,
|
|
1274
|
+
`Allowance resets: ${payload.period_end_at.slice(0, 10)} (UTC)`,
|
|
1266
1275
|
PLAY_RUNTIME_PRICING_NOTE
|
|
1267
1276
|
] : payload.status === "off" ? [
|
|
1268
1277
|
"Included compute: off; Play compute is billed at provider cost.",
|
|
1269
|
-
`
|
|
1270
|
-
`
|
|
1271
|
-
PLAY_RUNTIME_PRICING_NOTE
|
|
1278
|
+
`Allowance if enabled: ${formatComputeAmount(payload.plan.included_minutes, payload.plan.included_minutes * payload.plan.credits_per_minute)} per month`,
|
|
1279
|
+
`Standard sandbox price if enabled: ${formatComputeAmount(60, Math.round(payload.plan.credits_per_minute * 60))}`,
|
|
1280
|
+
PLAY_RUNTIME_PRICING_NOTE,
|
|
1281
|
+
"Run deepline billing compute --enable to turn on included compute. It cannot be turned off again."
|
|
1272
1282
|
] : [
|
|
1273
1283
|
"Included compute is not available for this workspace yet."
|
|
1274
1284
|
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk75NAFY36js = require('./chunk-75NAFY36.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/maintenance-policy.ts
|
|
6
6
|
var _commander = require('commander');
|
|
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
|
|
|
33
33
|
sinceStartMs: now - cliTraceStartedAt,
|
|
34
34
|
...event
|
|
35
35
|
};
|
|
36
|
-
|
|
36
|
+
_chunk75NAFY36js.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
|
|
37
37
|
`);
|
|
38
38
|
}
|
|
39
39
|
async function traceCliSpan(phase, fields, run) {
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
HttpClient,
|
|
3
3
|
resolveCliCommandContext,
|
|
4
4
|
resolveConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YVOS5KSG.mjs";
|
|
6
6
|
import {
|
|
7
7
|
detectAgentRuntime
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TS4KFQKS.mjs";
|
|
9
9
|
import {
|
|
10
10
|
DeeplineError,
|
|
11
11
|
serializeToolExecutionFailure
|
|
@@ -3,18 +3,18 @@ import {
|
|
|
3
3
|
} from "./chunk-5AEDYVB6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YWZEBPXK.mjs";
|
|
7
7
|
import {
|
|
8
8
|
resolveSdkCliFailureExitCode
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FFGQR5J3.mjs";
|
|
10
10
|
import {
|
|
11
11
|
errorToJsonPayload,
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2CFTDVEP.mjs";
|
|
14
14
|
import {
|
|
15
15
|
resolveConfig,
|
|
16
16
|
sdkCliStateDirPath
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YVOS5KSG.mjs";
|
|
18
18
|
|
|
19
19
|
// src/cli/commands/search.ts
|
|
20
20
|
import { Option } from "commander";
|
|
@@ -136,7 +136,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
136
136
|
}
|
|
137
137
|
const client = new DeeplineClient();
|
|
138
138
|
const json = options.json === true;
|
|
139
|
-
const renderer = json ? void 0 : await import("./search-output-
|
|
139
|
+
const renderer = json ? void 0 : await import("./search-output-T35QNZUF.mjs");
|
|
140
140
|
const searches = [];
|
|
141
141
|
const chunks = [];
|
|
142
142
|
const refs = /* @__PURE__ */ new Map();
|
|
@@ -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."
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkDB54ROPHjs = require('./chunk-DB54ROPH.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkGRESJ3H3js = require('./chunk-GRESJ3H3.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunk75NAFY36js = require('./chunk-75NAFY36.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkMHRR47VQjs = require('./chunk-MHRR47VQ.js');
|
|
18
18
|
|
|
19
19
|
// src/cli/commands/search.ts
|
|
20
20
|
var _commander = require('commander');
|
|
@@ -24,7 +24,7 @@ var _fs = require('fs');
|
|
|
24
24
|
var _path = require('path');
|
|
25
25
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
26
26
|
function lastSearchPath() {
|
|
27
|
-
return _path.join.call(void 0,
|
|
27
|
+
return _path.join.call(void 0, _chunkMHRR47VQjs.sdkCliStateDirPath.call(void 0, _chunkMHRR47VQjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
28
28
|
}
|
|
29
29
|
function rememberSearchRef(searchRef) {
|
|
30
30
|
writeSearchRefs({ searchRef });
|
|
@@ -134,9 +134,9 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
134
134
|
console.error("--summary-width must be an integer of at least 2.");
|
|
135
135
|
return 1;
|
|
136
136
|
}
|
|
137
|
-
const client = new (0,
|
|
137
|
+
const client = new (0, _chunkDB54ROPHjs.DeeplineClient)();
|
|
138
138
|
const json = options.json === true;
|
|
139
|
-
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-
|
|
139
|
+
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-7UNT6EMP.js")));
|
|
140
140
|
const searches = [];
|
|
141
141
|
const chunks = [];
|
|
142
142
|
const refs = /* @__PURE__ */ new Map();
|
|
@@ -159,7 +159,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
159
159
|
const text = _optionalChain([renderer, 'optionalAccess', _12 => _12.renderSearchResults, 'call', _13 => _13(result, summaryWidth)]);
|
|
160
160
|
if (!multiple) {
|
|
161
161
|
if (searchRef) rememberSearchRef(searchRef);
|
|
162
|
-
|
|
162
|
+
_chunk75NAFY36js.printCommandEnvelope.call(void 0, result, { json, text });
|
|
163
163
|
return 0;
|
|
164
164
|
}
|
|
165
165
|
searches.push({ ...result, query });
|
|
@@ -173,8 +173,8 @@ ${text}`);
|
|
|
173
173
|
}
|
|
174
174
|
} catch (error) {
|
|
175
175
|
if (!multiple) throw error;
|
|
176
|
-
const payload =
|
|
177
|
-
const queryExitCode = _nullishCoalesce(payload.exitCode, () => (
|
|
176
|
+
const payload = _chunk75NAFY36js.errorToJsonPayload.call(void 0, error);
|
|
177
|
+
const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkGRESJ3H3js.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
178
178
|
searches.push({ ...payload, query, exitCode: queryExitCode });
|
|
179
179
|
if (!json) {
|
|
180
180
|
console.error(`${JSON.stringify(query)}: ${payload.error.message}`);
|
|
@@ -186,7 +186,7 @@ Search failed.
|
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
rememberSearchRefsByTool(refs);
|
|
189
|
-
|
|
189
|
+
_chunk75NAFY36js.printCommandEnvelope.call(void 0,
|
|
190
190
|
{ searches },
|
|
191
191
|
{
|
|
192
192
|
json,
|
|
@@ -8,7 +8,7 @@ var _chunkNTLBZUHDjs = require('./chunk-NTLBZUHD.js');
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk75NAFY36js = require('./chunk-75NAFY36.js');
|
|
12
12
|
|
|
13
13
|
// src/cli/describe-options.ts
|
|
14
14
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -249,7 +249,7 @@ function projectRunDatasetCell(value) {
|
|
|
249
249
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
250
250
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
251
251
|
if (typeof logicalValue === "object") {
|
|
252
|
-
return
|
|
252
|
+
return _chunk75NAFY36js.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
253
253
|
}
|
|
254
254
|
return logicalValue;
|
|
255
255
|
}
|
|
@@ -641,7 +641,7 @@ function csvText(rows, columns = []) {
|
|
|
641
641
|
rows: rows.map((row) => record(row) ? row : { value: row }),
|
|
642
642
|
columns
|
|
643
643
|
});
|
|
644
|
-
return
|
|
644
|
+
return _chunk75NAFY36js.csvStringFromRows.call(void 0, projection.rows, projection.columns);
|
|
645
645
|
}
|
|
646
646
|
function writeExecutionOutput(result, options, { skipReceiptFile = false } = {}) {
|
|
647
647
|
let temp;
|
|
@@ -768,7 +768,7 @@ function writeExecutionOutput(result, options, { skipReceiptFile = false } = {})
|
|
|
768
768
|
};
|
|
769
769
|
if (options.receiptOut && !skipReceiptFile) {
|
|
770
770
|
persist(options.receiptOut, jsonText(receipt));
|
|
771
|
-
|
|
771
|
+
_chunk75NAFY36js.markJsonOutputHandled.call(void 0, );
|
|
772
772
|
} else {
|
|
773
773
|
printReceipt(receipt, options, {
|
|
774
774
|
data: hasData ? result.data : void 0,
|
|
@@ -1027,8 +1027,8 @@ function printReceipt(receipt, options, extra) {
|
|
|
1027
1027
|
const text = options.receiptJson ? `${JSON.stringify(receipt, null, 2)}
|
|
1028
1028
|
` : receiptText(receipt, options, extra);
|
|
1029
1029
|
if (options.receiptOut !== void 0) {
|
|
1030
|
-
|
|
1031
|
-
|
|
1030
|
+
_chunk75NAFY36js.writeRawStderr.call(void 0, text);
|
|
1031
|
+
_chunk75NAFY36js.markJsonOutputHandled.call(void 0, );
|
|
1032
1032
|
} else {
|
|
1033
1033
|
(dataOnStdout(options) ? process.stderr : process.stdout).write(text);
|
|
1034
1034
|
}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-F6QV42MC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
parseLogLevel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ONBXTEFQ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
setDottedInputValue
|
|
9
9
|
} from "./chunk-N4TR6QRI.mjs";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
argsWantJson,
|
|
12
12
|
jsonFieldArgs,
|
|
13
13
|
parseJsonFields
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2CFTDVEP.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineError
|
|
17
17
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkMHRR47VQjs = require('./chunk-MHRR47VQ.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkFWSEGIT6js = require('./chunk-FWSEGIT6.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -293,8 +293,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
293
293
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
294
294
|
var defaultBrowserCommandRunner = childProcess;
|
|
295
295
|
function getAuthedHttpClient() {
|
|
296
|
-
const config =
|
|
297
|
-
return { config, http: new (0,
|
|
296
|
+
const config = _chunkMHRR47VQjs.resolveConfig.call(void 0, );
|
|
297
|
+
return { config, http: new (0, _chunkMHRR47VQjs.HttpClient)(config) };
|
|
298
298
|
}
|
|
299
299
|
function stableOsUserId() {
|
|
300
300
|
try {
|
|
@@ -634,7 +634,7 @@ function collectLocalEnvInfo() {
|
|
|
634
634
|
os: `${process.platform} ${process.arch}`,
|
|
635
635
|
node_version: process.version,
|
|
636
636
|
home_dir: homeDir,
|
|
637
|
-
agent_runtime:
|
|
637
|
+
agent_runtime: _chunkFWSEGIT6js.detectAgentRuntime.call(void 0, )
|
|
638
638
|
};
|
|
639
639
|
const env = process.env;
|
|
640
640
|
const optional = {
|
|
@@ -881,9 +881,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
881
881
|
}
|
|
882
882
|
function withAgentCommandContext(value) {
|
|
883
883
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
884
|
-
return
|
|
884
|
+
return _chunkFWSEGIT6js.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
885
885
|
...valueRecord,
|
|
886
|
-
command_context:
|
|
886
|
+
command_context: _chunkMHRR47VQjs.resolveCliCommandContext.call(void 0, )
|
|
887
887
|
} : value;
|
|
888
888
|
}
|
|
889
889
|
function printJson(value, fields) {
|