deepline 0.3.548 → 0.3.549
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 +93 -11
- package/dist/bundling-sources/sdk/src/index.ts +1 -0
- package/dist/bundling-sources/sdk/src/plays/check-local-play-graph.ts +3 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +11 -0
- package/dist/bundling-sources/shared_libs/monitors/action-actor.ts +203 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +20 -0
- package/dist/bundling-sources/shared_libs/monitors/package.json +2 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +33 -0
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-dead-letter.ts +19 -3
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-failure-codes.ts +21 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +36 -6
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +93 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +9 -1
- package/dist/bundling-sources/shared_libs/plays/play-check-compact.ts +636 -0
- package/dist/cli/auth-UVEZIP3H.js +43 -0
- package/dist/cli/{auth-YOOVLLUL.mjs → auth-YENF525S.mjs} +5 -5
- package/dist/cli/{billing-HETIOUD6.js → billing-52GAHIDZ.js} +95 -95
- package/dist/cli/{billing-2NCNX6L2.mjs → billing-XPXB27G7.mjs} +9 -9
- package/dist/cli/{chunk-IIWXBRDK.js → chunk-3IUQNHIG.js} +3 -3
- package/dist/cli/{chunk-HIMZ57QD.mjs → chunk-4AUV5QJF.mjs} +5 -5
- package/dist/cli/{chunk-PVE3A2BO.js → chunk-4DJNXAPH.js} +75 -37
- package/dist/cli/{chunk-WIHQAZPV.js → chunk-4HSSPT73.js} +6 -6
- package/dist/cli/{chunk-OGDQFVCP.mjs → chunk-4QUWXUUJ.mjs} +35 -6
- package/dist/cli/{chunk-CXZLHBNK.js → chunk-5622PYAP.js} +4 -4
- package/dist/cli/{chunk-F4ON5COB.mjs → chunk-5CXE22BI.mjs} +2 -2
- package/dist/cli/{chunk-HU3DDLGD.mjs → chunk-5T37KQNG.mjs} +5 -5
- package/dist/cli/{chunk-T3RDWG5J.js → chunk-7FY7AHR6.js} +2 -2
- package/dist/cli/{chunk-PVQCX6KQ.js → chunk-ADWMIZCB.js} +67 -9
- package/dist/cli/{chunk-OQCYSLML.mjs → chunk-ANOTB6V3.mjs} +4 -4
- package/dist/cli/{chunk-XKEBQVCP.mjs → chunk-AZSVDAXT.mjs} +5 -5
- package/dist/cli/{chunk-NFMX7BRF.mjs → chunk-BDOLPGHD.mjs} +2 -2
- package/dist/cli/{chunk-VK2GSTRN.js → chunk-BDUZJX4V.js} +26 -26
- package/dist/cli/{chunk-7H6TQ6W2.js → chunk-BPBPY42E.js} +5 -5
- package/dist/cli/{chunk-3QRU6RY7.mjs → chunk-CX4KGWCH.mjs} +3 -3
- package/dist/cli/{chunk-HTZIJORU.js → chunk-CXFOYRI4.js} +99 -99
- package/dist/cli/{chunk-U35ZLVBA.mjs → chunk-DCTEH6N5.mjs} +2 -2
- package/dist/cli/{chunk-LAVPP6WD.js → chunk-DIRLEJJX.js} +41 -41
- package/dist/cli/{chunk-7JIOJLTS.js → chunk-ETLEPHLT.js} +7 -7
- package/dist/cli/{chunk-6GIZNOXQ.js → chunk-HPSCRVTM.js} +12 -12
- package/dist/cli/{chunk-BDBEEV6X.js → chunk-HWCIU3KY.js} +22 -22
- package/dist/cli/{chunk-TKGFHRHE.mjs → chunk-J6FINSAK.mjs} +49 -11
- package/dist/cli/{chunk-JQWX377P.js → chunk-KBMBNUUW.js} +5 -5
- package/dist/cli/{chunk-WI4MCR7M.js → chunk-KTZ3VU6S.js} +5 -5
- package/dist/cli/{chunk-7AJ5V3BK.mjs → chunk-L6UMWAAY.mjs} +1 -1
- package/dist/cli/{chunk-FUUYWEF4.mjs → chunk-LMFTDDAM.mjs} +2 -2
- package/dist/cli/{chunk-MWQ4WWZF.mjs → chunk-LP2VNGG3.mjs} +2 -2
- package/dist/cli/{chunk-RMCCB3XY.mjs → chunk-MAE3AKDR.mjs} +67 -9
- package/dist/cli/{chunk-BWJZ4NQJ.js → chunk-NVALIJQS.js} +15 -15
- package/dist/cli/{chunk-5XFJBIQT.js → chunk-OWX4AAJ4.js} +13 -13
- package/dist/cli/{chunk-FMQA7UZZ.mjs → chunk-PLAJ6HPD.mjs} +2 -2
- package/dist/cli/{chunk-GCEGQ7TQ.mjs → chunk-PLJCY35C.mjs} +1 -1
- package/dist/cli/{chunk-ATTURFOV.mjs → chunk-PQX4WTBY.mjs} +1 -1
- package/dist/cli/{chunk-I2JIWKCQ.js → chunk-QGKX2WBZ.js} +52 -23
- package/dist/cli/{chunk-UBQQR56I.mjs → chunk-QIZBUY2N.mjs} +4 -4
- package/dist/cli/{chunk-5XXPP3PR.js → chunk-QUELC3B2.js} +10 -10
- package/dist/cli/{chunk-HDLMX7SG.js → chunk-RMKRZJOS.js} +16 -16
- package/dist/cli/{chunk-7UJZWI5Z.js → chunk-SVNAP2QI.js} +9 -9
- package/dist/cli/{chunk-GUIYFOG2.js → chunk-TYOAOSDL.js} +3 -3
- package/dist/cli/{chunk-QZ74ZC55.mjs → chunk-U6KHWIAO.mjs} +1 -1
- package/dist/cli/{chunk-MQSKSISW.mjs → chunk-UGVXHT62.mjs} +1 -1
- package/dist/cli/{chunk-VSACOMIA.mjs → chunk-V5WPYOAE.mjs} +5 -5
- package/dist/cli/{chunk-2OG2KBYJ.js → chunk-V7WMNX4R.js} +1 -1
- package/dist/cli/{chunk-M2OZORIH.js → chunk-VLAJGF27.js} +2 -2
- package/dist/cli/{chunk-QQBRXMZM.mjs → chunk-W77LBYF3.mjs} +11 -11
- package/dist/cli/{chunk-53QLWPZK.mjs → chunk-X4RGDE4J.mjs} +1 -1
- package/dist/cli/{chunk-5OJOFUMO.js → chunk-XPYCNA43.js} +44 -44
- package/dist/cli/{chunk-XU3D2KFR.mjs → chunk-XS72HELO.mjs} +1 -1
- package/dist/cli/{chunk-AUYBBFPT.js → chunk-Y5MDCPWA.js} +53 -53
- package/dist/cli/{chunk-IQBXX54G.mjs → chunk-Y5SKYU5X.mjs} +3 -3
- package/dist/cli/{chunk-64BFUBXX.mjs → chunk-YX7BX2FA.mjs} +2 -2
- package/dist/cli/{chunk-U7HJXE6Y.js → chunk-YZTS3XA7.js} +2 -2
- package/dist/cli/{chunk-WVZF4DU7.mjs → chunk-Z3DKJOUL.mjs} +1 -1
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/concurrent-runs-help-74AFW3BD.js +21 -0
- package/dist/cli/{concurrent-runs-help-FDCCZ45D.mjs → concurrent-runs-help-OYSLW55L.mjs} +6 -6
- package/dist/cli/{csv-OCEQWZO3.js → csv-FRO3UFMQ.js} +13 -13
- package/dist/cli/{csv-GJYLQ52D.mjs → csv-TFCTUYF2.mjs} +4 -4
- package/dist/cli/{db-5MA2UUHQ.mjs → db-NHVZBT2H.mjs} +6 -6
- package/dist/cli/{db-G5QGXFAX.js → db-SNFNRVZJ.js} +27 -27
- package/dist/cli/describe-2JCOC4AK.js +50 -0
- package/dist/cli/{describe-4DOJ4DHA.mjs → describe-OVFPRJJL.mjs} +18 -18
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-C7SMBHHB.mjs → executions-HWMH2LTC.mjs} +6 -6
- package/dist/cli/{executions-IYEVUPJI.js → executions-RZLKKPZV.js} +8 -8
- package/dist/cli/{feedback-GYAF46GA.js → feedback-3D5OROCI.js} +14 -14
- package/dist/cli/{feedback-XUU2UKM6.mjs → feedback-WD4JVF77.mjs} +6 -6
- package/dist/cli/git-GCCPCUWJ.js +25 -0
- package/dist/cli/{git-WVCMK5AH.mjs → git-RYUKBCUZ.mjs} +5 -5
- package/dist/cli/index.js +146 -146
- package/dist/cli/index.mjs +45 -45
- package/dist/cli/{integrations-FXADGAX2.mjs → integrations-KJPFCEXL.mjs} +7 -7
- package/dist/cli/{integrations-YYBJJFVX.js → integrations-Y7OK23DW.js} +15 -15
- package/dist/cli/{legacy-noops-LJY7LDUE.mjs → legacy-noops-2PU2ZVEP.mjs} +6 -6
- package/dist/cli/{legacy-noops-REZCYES2.js → legacy-noops-G7ZY7K3K.js} +9 -9
- package/dist/cli/{mcp-XSB3ZJFR.mjs → mcp-D7F2RSOI.mjs} +4 -4
- package/dist/cli/{mcp-L5PURE5S.js → mcp-GILBYX72.js} +24 -24
- package/dist/cli/{monitors-UBPF2OLO.mjs → monitors-IK5KXY2H.mjs} +32 -8
- package/dist/cli/{monitors-I5EIHSGV.js → monitors-OXNHOT3C.js} +125 -101
- package/dist/cli/{org-PHHIN2ER.mjs → org-L5D7EISU.mjs} +6 -6
- package/dist/cli/{org-SGSTGGUD.js → org-OYM3UNTP.js} +88 -88
- package/dist/cli/{play-LEJNJLWY.mjs → play-PK6QO3WX.mjs} +837 -290
- package/dist/cli/{play-WQEKMANL.js → play-YK22QPYO.js} +1423 -876
- package/dist/cli/{providers-RSDXBXIS.js → providers-5CYP7P4N.js} +9 -9
- package/dist/cli/{providers-3W26ZDAV.mjs → providers-Z6MNJDCG.mjs} +6 -6
- package/dist/cli/{quickstart-LGJD2M36.mjs → quickstart-2I73XQXB.mjs} +4 -4
- package/dist/cli/{quickstart-U3QX4EMI.js → quickstart-2YKETYJY.js} +6 -6
- package/dist/cli/{run-YWZ3W5HK.mjs → run-KGQ6TUBB.mjs} +23 -23
- package/dist/cli/{run-F2UPZUJS.js → run-YVSEAVE5.js} +43 -43
- package/dist/cli/{search-O2OJH3PY.mjs → search-V2HPN6FU.mjs} +7 -7
- package/dist/cli/search-YG3UIZ6A.js +32 -0
- package/dist/cli/{search-output-W7OCBYBU.js → search-output-BUSANFRN.js} +6 -6
- package/dist/cli/{search-output-H5BF6SJ3.mjs → search-output-OCTOSDEO.mjs} +4 -4
- package/dist/cli/{secrets-BN4GYVRI.js → secrets-VDKTHCVB.js} +15 -15
- package/dist/cli/{secrets-65XCAA7U.mjs → secrets-WZGRBWI5.mjs} +6 -6
- package/dist/cli/{sessions-SVEVESCQ.mjs → sessions-5DTN55DZ.mjs} +6 -6
- package/dist/cli/sessions-NSPT6LHT.js +22 -0
- package/dist/cli/{settings-7YMDAFCN.js → settings-A7VSNOLI.js} +85 -85
- package/dist/cli/{settings-HAU2NP2H.mjs → settings-BK5FPQ3X.mjs} +12 -12
- package/dist/cli/{setup-5RXHZ6YI.mjs → setup-LLQVPZTP.mjs} +9 -9
- package/dist/cli/{setup-G37QXQGM.js → setup-NV27CYQ5.js} +49 -49
- package/dist/cli/{skills-Q7A3XFAU.mjs → skills-IV6HK4XA.mjs} +7 -7
- package/dist/cli/skills-UA5E4DA3.js +36 -0
- package/dist/cli/{tools-ZG4NYRGB.mjs → tools-4FKPCRD7.mjs} +17 -17
- package/dist/cli/tools-NJVPAG37.js +57 -0
- package/dist/cli/update-DKX27XZB.js +34 -0
- package/dist/cli/{update-2CMZTZCL.mjs → update-MH5M746E.mjs} +9 -9
- package/dist/cli/{views-XUMDMDIE.js → views-JW44TCGL.js} +21 -21
- package/dist/cli/{views-A6IIY4OQ.mjs → views-KXC4JDT7.mjs} +6 -6
- package/dist/cli/{workflow-4EEW6MCD.js → workflow-F5AHL2ET.js} +17 -17
- package/dist/cli/{workflow-74MYISHU.mjs → workflow-FI4DL7ZI.mjs} +7 -7
- package/dist/{client-D1uWA2Vc.d.mts → client-BEJqhQAj.d.mts} +1 -1
- package/dist/{client-Hz7SsBXs.d.ts → client-Ceo295L2.d.ts} +1 -1
- package/dist/{client-core-D3Ad7Flt.d.ts → client-core-BPYuWfBC.d.ts} +49 -1
- package/dist/{client-core-Db_e63Hb.d.mts → client-core-BqetRxx-.d.mts} +49 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +118 -116
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-7UJFY5BY.js +0 -43
- package/dist/cli/concurrent-runs-help-A2IQVZRJ.js +0 -21
- package/dist/cli/describe-SD7DRTBW.js +0 -50
- package/dist/cli/git-7YYVMY6L.js +0 -25
- package/dist/cli/search-K6ANAXLF.js +0 -32
- package/dist/cli/sessions-M52QWLA6.js +0 -22
- package/dist/cli/skills-ZK4D5BJW.js +0 -36
- package/dist/cli/tools-DBZTLYFM.js +0 -57
- package/dist/cli/update-LC5HGEEH.js +0 -34
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
RETAINED_PIPELINE_RECEIVERS_HEADER,
|
|
38
38
|
RUNTIME_ENVIRONMENT_TOKEN_HEADER,
|
|
39
39
|
SDK_API_MAJOR
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-X4RGDE4J.mjs";
|
|
41
41
|
import {
|
|
42
42
|
CustomerDbQueryOutcomeUnknownError
|
|
43
43
|
} from "./chunk-NURW5XH4.mjs";
|
|
@@ -7336,6 +7336,13 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
7336
7336
|
* up at 60 s reported a timeout for a plan the server then committed.
|
|
7337
7337
|
*/
|
|
7338
7338
|
static MONITOR_FLEET_WRITE_TIMEOUT_MS = 31e4;
|
|
7339
|
+
/**
|
|
7340
|
+
* The commit budget a sync asks for (#10717): the server stops a staged
|
|
7341
|
+
* commit this long into the request and answers `staged_commit_in_progress`
|
|
7342
|
+
* instead of running into its 300 s limit; the SDK re-sends to continue.
|
|
7343
|
+
* The server caps it at the same value.
|
|
7344
|
+
*/
|
|
7345
|
+
static MONITOR_FLEET_COMMIT_BUDGET_MS = 24e4;
|
|
7339
7346
|
monitorFleetPath(fleetId) {
|
|
7340
7347
|
return `/api/v2/monitors/fleets/${encodeURIComponent(fleetId)}`;
|
|
7341
7348
|
}
|
|
@@ -7357,17 +7364,48 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
7357
7364
|
...options?.adoptExisting ? { adopt_existing: true } : {},
|
|
7358
7365
|
...options?.expectedGeneration !== void 0 ? { expected_generation: options.expectedGeneration } : {}
|
|
7359
7366
|
};
|
|
7360
|
-
|
|
7361
|
-
this.
|
|
7362
|
-
|
|
7363
|
-
|
|
7364
|
-
|
|
7365
|
-
|
|
7366
|
-
|
|
7367
|
-
|
|
7368
|
-
|
|
7367
|
+
const headers = {
|
|
7368
|
+
...this.monitorFleetHeaders("sync", options?.idempotencyKey),
|
|
7369
|
+
"X-Deepline-Fleet-Commit-Budget-Ms": String(
|
|
7370
|
+
options?.commitBudgetMs ?? _DeeplineClient.MONITOR_FLEET_COMMIT_BUDGET_MS
|
|
7371
|
+
)
|
|
7372
|
+
};
|
|
7373
|
+
let remainingBefore = Number.POSITIVE_INFINITY;
|
|
7374
|
+
let stalledRequests = 0;
|
|
7375
|
+
for (let attempt = 1; ; attempt += 1) {
|
|
7376
|
+
const result = await this.http.request(
|
|
7377
|
+
this.monitorFleetPath(fleetId),
|
|
7378
|
+
{
|
|
7379
|
+
method: "PUT",
|
|
7380
|
+
body,
|
|
7381
|
+
timeout: _DeeplineClient.MONITOR_FLEET_WRITE_TIMEOUT_MS,
|
|
7382
|
+
headers,
|
|
7383
|
+
maxRetries: 0,
|
|
7384
|
+
exactUrlOnly: true
|
|
7385
|
+
}
|
|
7386
|
+
);
|
|
7387
|
+
if (result.code !== "staged_commit_in_progress") return result;
|
|
7388
|
+
const staged = result.staged_commit ?? {};
|
|
7389
|
+
const thisRequest = Number(staged.members_committed_this_request);
|
|
7390
|
+
const remaining = Number(staged.members_total) - Number(staged.members_committed);
|
|
7391
|
+
stalledRequests = remaining < remainingBefore ? 0 : stalledRequests + 1;
|
|
7392
|
+
remainingBefore = remaining;
|
|
7393
|
+
if (!(thisRequest > 0) || stalledRequests >= 2) {
|
|
7394
|
+
throw new DeeplineError(
|
|
7395
|
+
`Monitor Fleet '${fleetId}' commit made no progress in request ${attempt}. Re-run the same command to continue from where it stopped.`,
|
|
7396
|
+
202,
|
|
7397
|
+
"MONITOR_FLEET_COMMIT_STALLED",
|
|
7398
|
+
{ response: result }
|
|
7399
|
+
);
|
|
7369
7400
|
}
|
|
7370
|
-
|
|
7401
|
+
options?.onCommitProgress?.({
|
|
7402
|
+
fleetId,
|
|
7403
|
+
generation: Number(result.generation),
|
|
7404
|
+
membersCommitted: Number(staged.members_committed),
|
|
7405
|
+
membersTotal: Number(staged.members_total),
|
|
7406
|
+
attempt
|
|
7407
|
+
});
|
|
7408
|
+
}
|
|
7371
7409
|
}
|
|
7372
7410
|
async listMonitorFleets() {
|
|
7373
7411
|
return this.http.request("/api/v2/monitors/fleets", {
|
|
@@ -1,16 +1,16 @@
|
|
|
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 _chunk4DJNXAPHjs = require('./chunk-4DJNXAPH.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk3IUQNHIGjs = require('./chunk-3IUQNHIG.js');
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
|
-
var DeeplineClient2 = class extends
|
|
10
|
+
var DeeplineClient2 = class extends _chunk4DJNXAPHjs.DeeplineClient {
|
|
11
11
|
constructor(options) {
|
|
12
|
-
const config =
|
|
13
|
-
super(config, new (0,
|
|
12
|
+
const config = _chunk3IUQNHIGjs.resolveConfig.call(void 0, options);
|
|
13
|
+
super(config, new (0, _chunk3IUQNHIGjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk4DJNXAPHjs = require('./chunk-4DJNXAPH.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk3IUQNHIGjs = require('./chunk-3IUQNHIG.js');
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -137,9 +137,9 @@ async function pinLocalPlayImports(client, graph) {
|
|
|
137
137
|
|
|
138
138
|
// src/plays/client.ts
|
|
139
139
|
function createPlayClient(options) {
|
|
140
|
-
const config =
|
|
141
|
-
return new (0,
|
|
142
|
-
new (0,
|
|
140
|
+
const config = _chunk3IUQNHIGjs.resolveConfig.call(void 0, options);
|
|
141
|
+
return new (0, _chunk4DJNXAPHjs.PlayClient)(
|
|
142
|
+
new (0, _chunk3IUQNHIGjs.HttpClient)(config),
|
|
143
143
|
_nullishCoalesce(config.environment, () => ( process.env))
|
|
144
144
|
);
|
|
145
145
|
}
|
|
@@ -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.549",
|
|
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,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-MF7PCM6C.mjs";
|
|
4
4
|
import {
|
|
5
5
|
parseLogLevel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-J6FINSAK.mjs";
|
|
7
7
|
import {
|
|
8
8
|
setDottedInputValue
|
|
9
9
|
} from "./chunk-LX35AXTN.mjs";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
argsWantJson,
|
|
12
12
|
jsonFieldArgs,
|
|
13
13
|
parseJsonFields
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4QUWXUUJ.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineError
|
|
17
17
|
} from "./chunk-JL2OTMSG.mjs";
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4QUWXUUJ.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-U6KHWIAO.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -1458,17 +1458,40 @@ When:
|
|
|
1458
1458
|
every time.
|
|
1459
1459
|
[[cli:
|
|
1460
1460
|
Input:
|
|
1461
|
-
A local path ending in .play.ts, or a play reference. --
|
|
1462
|
-
|
|
1461
|
+
A local path ending in .play.ts, or a play reference. --json prints JSON.
|
|
1462
|
+
--full also returns the complete check document under diagnostics
|
|
1463
|
+
(static pipeline, authoring contract with the input JSON Schema, every
|
|
1464
|
+
limit, feature flags).
|
|
1463
1465
|
]]
|
|
1464
1466
|
[[cli:
|
|
1465
|
-
Output
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1467
|
+
Output:
|
|
1468
|
+
Text: a verdict line, the file once, then one line each for Input,
|
|
1469
|
+
Datasets, Returns, Steps (kinds of step and the tools), Diagram (its
|
|
1470
|
+
verdict, e.g. 11 boxes, all bound \xB7 2 warnings, then every box in flow
|
|
1471
|
+
order with its line and a decision's arms), Limits (ok unless a limit is
|
|
1472
|
+
not the default or a budget is near its ceiling) and short hashes; then
|
|
1473
|
+
each issue with its fix, diagram issues by box in flow order; then the
|
|
1474
|
+
next commands, with <file> for the path. --full adds every stage and each
|
|
1475
|
+
box's in/out/show.
|
|
1476
|
+
JSON (--json): valid, target, name, issues (every error and warning, with
|
|
1477
|
+
its repair step), diagram (counts), input (one entry per field: name,
|
|
1478
|
+
type, required; nested fields dotted), recognized (datasets, row inputs,
|
|
1479
|
+
outputs, tools), stages (one line each, indented under the stage or
|
|
1480
|
+
conditional arm that runs it), docflow (nodes with id, label, kind, line;
|
|
1481
|
+
edges with from, to, label), sourceHash, artifactHash, graphHash, and
|
|
1482
|
+
actions (runExample.command, publishCmd). runtimeLimit, limits and
|
|
1483
|
+
runAdmission appear only when they are not the default. A named play
|
|
1484
|
+
returns its inputSchema and outputSchema instead.
|
|
1485
|
+
Recognized fields and tools come from static analysis: dataset columns
|
|
1486
|
+
are physical SQL names, CSV passthrough columns are not listed, and a
|
|
1487
|
+
check neither resolves a sample CSV nor proves a provider is available.
|
|
1488
|
+
The run example runs the local file without publishing and may spend
|
|
1489
|
+
credits.
|
|
1490
|
+
]]
|
|
1491
|
+
[[mcp:
|
|
1492
|
+
Output:
|
|
1493
|
+
The same compact view as the CLI's --json; full: true returns the complete
|
|
1494
|
+
check document.
|
|
1472
1495
|
]]
|
|
1473
1496
|
Cost:
|
|
1474
1497
|
Free.
|
|
@@ -2193,6 +2216,41 @@ Cost:
|
|
|
2193
2216
|
Avoid:
|
|
2194
2217
|
Do not use head or wc to inspect a CSV that a play will consume; [[--summary]]
|
|
2195
2218
|
gives the row count and column names in one call.
|
|
2219
|
+
`
|
|
2220
|
+
},
|
|
2221
|
+
"monitors fleets deploy": {
|
|
2222
|
+
core: `
|
|
2223
|
+
Purpose:
|
|
2224
|
+
Apply a table-backed Monitor Fleet definition: plan one monitor per
|
|
2225
|
+
selected Customer DB row and commit that plan. The same definition applied
|
|
2226
|
+
twice is the same operation and answers replayed: true.
|
|
2227
|
+
When:
|
|
2228
|
+
After [[--dry-run]] has shown the plan and credits_due_now. Re-run the same
|
|
2229
|
+
command after any failure; every Fleet command is idempotent.
|
|
2230
|
+
[[cli:
|
|
2231
|
+
Input:
|
|
2232
|
+
--file <fleet.json> (or - for stdin), or a bare <fleet-id> to re-plan the
|
|
2233
|
+
stored definition. --dry-run, --adopt-existing, --wait [--timeout],
|
|
2234
|
+
--expected-generation, --idempotency-key, --json. --commit-budget-ms <ms>
|
|
2235
|
+
shortens each request's commit (default and maximum 240000) when something
|
|
2236
|
+
between you and Deepline cuts requests off sooner.
|
|
2237
|
+
]]
|
|
2238
|
+
Output (JSON):
|
|
2239
|
+
The committed plan: accepted, generation, replayed, plan (creates, updates,
|
|
2240
|
+
removes, blocked, deferred), credits_due_now, next. A Fleet too large to
|
|
2241
|
+
commit inside one request (about 100,000 members on a first deploy) is
|
|
2242
|
+
committed over several: the server stops each at its time budget with
|
|
2243
|
+
code staged_commit_in_progress and the CLI re-sends the same definition
|
|
2244
|
+
until it is committed, printing "Committing Fleet ... members so far" to
|
|
2245
|
+
stderr. Nothing is published until every member is committed; stdout is
|
|
2246
|
+
still the one committed result.
|
|
2247
|
+
Cost:
|
|
2248
|
+
[[--dry-run]] is free. Deploying creates monitors, which spend credits:
|
|
2249
|
+
credits_due_now in the plan is what the creates cost.
|
|
2250
|
+
Avoid:
|
|
2251
|
+
Do not interrupt a multi-request commit and start a different definition:
|
|
2252
|
+
the open stage holds the fleet against another plan for ten minutes. Re-run
|
|
2253
|
+
the same command to continue it.
|
|
2196
2254
|
`
|
|
2197
2255
|
},
|
|
2198
2256
|
"db query": {
|
|
@@ -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 _chunkCXFOYRI4js = require('./chunk-CXFOYRI4.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkETLEPHLTjs = require('./chunk-ETLEPHLT.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -14,16 +14,16 @@ var _chunkRKF263LRjs = require('./chunk-RKF263LR.js');
|
|
|
14
14
|
var _chunkXYIECA7Mjs = require('./chunk-XYIECA7M.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkKBMBNUUWjs = require('./chunk-KBMBNUUW.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkQGKX2WBZjs = require('./chunk-QGKX2WBZ.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunk3IUQNHIGjs = require('./chunk-3IUQNHIG.js');
|
|
27
27
|
|
|
28
28
|
// src/cli/commands/describe.ts
|
|
29
29
|
var _fs = require('fs');
|
|
@@ -32,14 +32,14 @@ var _path = require('path');
|
|
|
32
32
|
// src/cli/doc-read-reporting.ts
|
|
33
33
|
var REPORT_TIMEOUT_MS = 1e3;
|
|
34
34
|
async function reportDocRead(docId) {
|
|
35
|
-
if (
|
|
35
|
+
if (_chunkQGKX2WBZjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
36
36
|
try {
|
|
37
|
-
const baseUrl =
|
|
38
|
-
const apiKey =
|
|
37
|
+
const baseUrl = _chunk3IUQNHIGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
38
|
+
const apiKey = _chunk3IUQNHIGjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
39
39
|
if (!apiKey) return;
|
|
40
40
|
await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
|
|
41
41
|
method: "POST",
|
|
42
|
-
headers:
|
|
42
|
+
headers: _chunkQGKX2WBZjs.failureReportHeaders.call(void 0, apiKey),
|
|
43
43
|
body: JSON.stringify({ doc_id: docId }),
|
|
44
44
|
signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
|
|
45
45
|
});
|
|
@@ -52,16 +52,16 @@ function nothingNamed(name) {
|
|
|
52
52
|
return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
|
|
53
53
|
}
|
|
54
54
|
function findNamed2(name, options) {
|
|
55
|
-
return _chunkRKF263LRjs.findNamed.call(void 0, name, options, _chunkRKF263LRjs.describeLookupsFor.call(void 0, new (0,
|
|
55
|
+
return _chunkRKF263LRjs.findNamed.call(void 0, name, options, _chunkRKF263LRjs.describeLookupsFor.call(void 0, new (0, _chunkKBMBNUUWjs.DeeplineClient)()));
|
|
56
56
|
}
|
|
57
57
|
async function describeAnything(name, options, onMissing) {
|
|
58
|
-
const client = new (0,
|
|
58
|
+
const client = new (0, _chunkKBMBNUUWjs.DeeplineClient)();
|
|
59
59
|
const lookups = _chunkRKF263LRjs.describeLookupsFor.call(void 0, client);
|
|
60
60
|
const outcome = await _chunkRKF263LRjs.describeName.call(void 0, name, options, {
|
|
61
61
|
...lookups,
|
|
62
62
|
// `tools describe` has already fetched the tool for its compatibility check.
|
|
63
63
|
tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
|
|
64
|
-
seedStarterScript:
|
|
64
|
+
seedStarterScript: _chunkCXFOYRI4js.seedToolListScript
|
|
65
65
|
});
|
|
66
66
|
if (outcome.status === "missing") {
|
|
67
67
|
if (onMissing) return onMissing();
|
|
@@ -87,18 +87,18 @@ function deliver(envelope, lines, { json, out }) {
|
|
|
87
87
|
` : text;
|
|
88
88
|
_fs.writeFileSync.call(void 0, path, content);
|
|
89
89
|
const bytes = Buffer.byteLength(content);
|
|
90
|
-
|
|
90
|
+
_chunkQGKX2WBZjs.printCommandEnvelope.call(void 0,
|
|
91
91
|
{ path, bytes },
|
|
92
92
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
93
93
|
` }
|
|
94
94
|
);
|
|
95
95
|
return 0;
|
|
96
96
|
}
|
|
97
|
-
|
|
97
|
+
_chunkQGKX2WBZjs.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
98
98
|
return 0;
|
|
99
99
|
}
|
|
100
100
|
function registerDescribeCommand(program) {
|
|
101
|
-
|
|
101
|
+
_chunkETLEPHLTjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
|
|
102
102
|
"Describe anything search returns: a tool, monitor type, or play."
|
|
103
103
|
).addHelpText(
|
|
104
104
|
"after",
|
|
@@ -1,15 +1,15 @@
|
|
|
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
|
-
var
|
|
3
|
+
var _chunk7FY7AHR6js = require('./chunk-7FY7AHR6.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkQGKX2WBZjs = require('./chunk-QGKX2WBZ.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk5622PYAPjs = require('./chunk-5622PYAP.js');
|
|
13
13
|
|
|
14
14
|
// src/cli/commands/sessions.ts
|
|
15
15
|
|
|
@@ -55,7 +55,7 @@ function codexSessionsRoot() {
|
|
|
55
55
|
}
|
|
56
56
|
function listClaudeSessionFiles() {
|
|
57
57
|
const files = [];
|
|
58
|
-
for (const root of
|
|
58
|
+
for (const root of _chunk5622PYAPjs.claudeProjectsRoots.call(void 0, )) {
|
|
59
59
|
files.push(...listClaudeSessionFilesIn(root));
|
|
60
60
|
}
|
|
61
61
|
return files;
|
|
@@ -147,7 +147,7 @@ function currentSessionFile(agent) {
|
|
|
147
147
|
const newestFirst = listSessionFiles(agent).sort(
|
|
148
148
|
(a, b) => b.mtimeMs - a.mtimeMs
|
|
149
149
|
);
|
|
150
|
-
const sessionId =
|
|
150
|
+
const sessionId = _chunk5622PYAPjs.agentSessionIdFromEnvironment.call(void 0,
|
|
151
151
|
process.env,
|
|
152
152
|
agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
|
|
153
153
|
);
|
|
@@ -156,7 +156,7 @@ function currentSessionFile(agent) {
|
|
|
156
156
|
(candidate) => candidate.sessionId === sessionId
|
|
157
157
|
);
|
|
158
158
|
if (named) return named;
|
|
159
|
-
const cowork = agent === "codex" ? null :
|
|
159
|
+
const cowork = agent === "codex" ? null : _chunk5622PYAPjs.coworkTranscriptFromEnvironment.call(void 0, );
|
|
160
160
|
const coworkStat = cowork ? statIfReadable(cowork.filePath) : null;
|
|
161
161
|
if (cowork && coworkStat) {
|
|
162
162
|
return { agent: "claude", ...cowork, mtimeMs: coworkStat.mtimeMs };
|
|
@@ -166,7 +166,7 @@ function currentSessionFile(agent) {
|
|
|
166
166
|
), () => ( newestFirst[0])), () => ( null));
|
|
167
167
|
}
|
|
168
168
|
function feedbackAgentSessionId(agentRuntime) {
|
|
169
|
-
return _nullishCoalesce(
|
|
169
|
+
return _nullishCoalesce(_chunk5622PYAPjs.agentSessionIdFromEnvironment.call(void 0, process.env, agentRuntime), () => ( (agentRuntime === "claude_cowork" || agentRuntime === "claude_code" ? _nullishCoalesce(_optionalChain([_chunk5622PYAPjs.coworkTranscriptFromEnvironment.call(void 0, ), 'optionalAccess', _17 => _17.sessionId]), () => ( null)) : null)));
|
|
170
170
|
}
|
|
171
171
|
function sessionStartedInDirectory(candidate, cwd) {
|
|
172
172
|
if (candidate.agent === "claude") {
|
|
@@ -215,7 +215,7 @@ function readCodexSessionId(filePath) {
|
|
|
215
215
|
return null;
|
|
216
216
|
}
|
|
217
217
|
function sessionSearchDescription(agent) {
|
|
218
|
-
const claude =
|
|
218
|
+
const claude = _chunk5622PYAPjs.claudeProjectsRoots.call(void 0, ).map((root) => _path.join.call(void 0, root, "*", "<session-id>.jsonl")).join(", ");
|
|
219
219
|
if (agent === "claude") return claude;
|
|
220
220
|
if (agent === "codex") return "~/.codex/sessions/**/*.jsonl";
|
|
221
221
|
return `${claude} or ~/.codex/sessions/**/*.jsonl`;
|
|
@@ -472,7 +472,7 @@ function buildSessionUploadContent(raw) {
|
|
|
472
472
|
return { encodedContent: encoded, needsChunking: true };
|
|
473
473
|
}
|
|
474
474
|
async function uploadPayload(path, payload) {
|
|
475
|
-
const { http } =
|
|
475
|
+
const { http } = _chunkQGKX2WBZjs.getAuthedHttpClient.call(void 0, );
|
|
476
476
|
return await http.post(path, payload);
|
|
477
477
|
}
|
|
478
478
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -550,7 +550,7 @@ async function uploadAgentSession(agentRuntime) {
|
|
|
550
550
|
return target.sessionId;
|
|
551
551
|
}
|
|
552
552
|
async function handleSessionsSend(options) {
|
|
553
|
-
if (
|
|
553
|
+
if (_chunk7FY7AHR6js.rejectRestrictedFeedback.call(void 0, options)) return;
|
|
554
554
|
const rating = parseSessionRating(options.rating);
|
|
555
555
|
if (options.file) {
|
|
556
556
|
const filePath = _path.resolve.call(void 0, options.file);
|
|
@@ -562,7 +562,7 @@ async function handleSessionsSend(options) {
|
|
|
562
562
|
filename: _path.basename.call(void 0, filePath),
|
|
563
563
|
...rating ? { rating } : {}
|
|
564
564
|
});
|
|
565
|
-
|
|
565
|
+
_chunkQGKX2WBZjs.printCommandEnvelope.call(void 0,
|
|
566
566
|
{
|
|
567
567
|
...response2,
|
|
568
568
|
ok: true,
|
|
@@ -594,7 +594,7 @@ async function handleSessionsSend(options) {
|
|
|
594
594
|
labeled: Boolean(_optionalChain([options, 'access', _27 => _27.label, 'optionalAccess', _28 => _28.length]))
|
|
595
595
|
});
|
|
596
596
|
const sessionIds = built.map((session) => session.sessionId);
|
|
597
|
-
|
|
597
|
+
_chunkQGKX2WBZjs.printCommandEnvelope.call(void 0,
|
|
598
598
|
{
|
|
599
599
|
...response,
|
|
600
600
|
ok: true,
|
|
@@ -702,7 +702,7 @@ ${refreshMeta}
|
|
|
702
702
|
</body>
|
|
703
703
|
</html>`;
|
|
704
704
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
705
|
-
|
|
705
|
+
_chunkQGKX2WBZjs.printCommandEnvelope.call(void 0,
|
|
706
706
|
{
|
|
707
707
|
ok: true,
|
|
708
708
|
file: outputPath,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PLJCY35C.mjs";
|
|
4
4
|
import {
|
|
5
5
|
checkSdkCompatibility,
|
|
6
6
|
enforceSdkCompatibilityResponse,
|
|
7
7
|
flushDeferredSkillsSyncNotices
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AZSVDAXT.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|