deepline 0.3.524 → 0.3.525
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 +8 -0
- package/dist/bundling-sources/sdk/src/http-core.ts +14 -0
- package/dist/bundling-sources/sdk/src/plays/play-description.ts +1 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +10 -0
- package/dist/bundling-sources/shared_libs/observability/dlq.ts +19 -0
- package/dist/bundling-sources/shared_libs/observability/queue-health.ts +9 -0
- package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +38 -0
- package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +94 -9
- package/dist/bundling-sources/shared_libs/play-runtime/run-retry-summary.ts +202 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +60 -8
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-telemetry.ts +112 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +39 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-sql.ts +13 -5
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/play-run-recovery.ts +10 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-retry-facts.ts +62 -0
- package/dist/cli/auth-K7PMRXNG.js +43 -0
- package/dist/cli/{auth-QXJMVLPN.mjs → auth-TH3VGYBK.mjs} +5 -5
- package/dist/cli/{billing-SNSIFM4B.mjs → billing-CMHFI2LN.mjs} +8 -8
- package/dist/cli/{billing-N5R4HTHT.js → billing-TWKVUFU2.js} +83 -83
- package/dist/cli/{chunk-TZTWH53O.js → chunk-2WFVLOB7.js} +1 -1
- package/dist/cli/{chunk-BXVYVIMB.js → chunk-4UWXFXQF.js} +3 -3
- package/dist/cli/{chunk-II3BJKCH.mjs → chunk-5BSGWIQD.mjs} +2 -2
- package/dist/cli/{chunk-WOEPDSO3.js → chunk-5JFAQUZS.js} +26 -26
- package/dist/cli/{chunk-RVHUW4TN.js → chunk-5YAJGRWB.js} +17 -17
- package/dist/cli/{chunk-ITJ7NB2D.mjs → chunk-7AOFSZJM.mjs} +3 -1
- package/dist/cli/{chunk-RIX26ZJD.mjs → chunk-7C4F4TLR.mjs} +1 -1
- package/dist/cli/{chunk-RTDX5NNN.mjs → chunk-7OF3A4KJ.mjs} +3 -3
- package/dist/cli/{chunk-2ZWNIS54.js → chunk-AVDEYOVP.js} +269 -269
- package/dist/cli/{chunk-GJYLC4JB.mjs → chunk-BNH4Y35W.mjs} +2 -2
- package/dist/cli/{chunk-I75VRGQG.js → chunk-CKTRQSRA.js} +22 -22
- package/dist/cli/{chunk-R457IMHJ.mjs → chunk-CLTL7ZJI.mjs} +1 -1
- package/dist/cli/{chunk-7E6B7VMS.js → chunk-CQSANB3V.js} +5 -5
- package/dist/cli/{chunk-7OQGZBDG.js → chunk-CWRL6IQP.js} +13 -6
- package/dist/cli/{chunk-HLAFGQPV.mjs → chunk-CZNEQMJR.mjs} +5 -2
- package/dist/cli/{chunk-7QM6DNR4.js → chunk-DYS3KWYF.js} +11 -11
- package/dist/cli/{chunk-GMO3JDZA.mjs → chunk-EP6YH6QJ.mjs} +2 -2
- package/dist/cli/{chunk-V4RJ57MA.js → chunk-ESWM2JW4.js} +2 -2
- package/dist/cli/{chunk-YGOI5ZE5.mjs → chunk-ETHVJ2ZE.mjs} +1 -1
- package/dist/cli/{chunk-3WWTBQHC.mjs → chunk-GCLNX72G.mjs} +2 -2
- package/dist/cli/{chunk-R2VZVHJP.mjs → chunk-GESIFFQX.mjs} +1 -1
- package/dist/cli/{chunk-BXIQD2IY.mjs → chunk-IMO3HXWZ.mjs} +1 -1
- package/dist/cli/{chunk-2ZX7XSAQ.mjs → chunk-JVWSIA2V.mjs} +4 -4
- package/dist/cli/{chunk-YXVYPYIP.js → chunk-KBOSALBI.js} +10 -10
- package/dist/cli/{chunk-RUULUCBP.js → chunk-KEZ3KBWW.js} +10 -10
- package/dist/cli/{chunk-YCIXY66B.mjs → chunk-KPINGHIF.mjs} +2 -2
- package/dist/cli/{chunk-KKPBCB6D.mjs → chunk-LAMGJQDY.mjs} +2 -2
- package/dist/cli/{chunk-OCT4SUJA.js → chunk-LE537GBC.js} +13 -6
- package/dist/cli/{chunk-HTYT2OHB.js → chunk-LXKH4MKH.js} +6 -6
- package/dist/cli/{chunk-EO55Y4QW.mjs → chunk-M43ZYNDA.mjs} +5 -5
- package/dist/cli/{chunk-PFKKZVFK.js → chunk-MHBSRNI7.js} +41 -41
- package/dist/cli/{chunk-ANKD3AIR.js → chunk-MRUFGOJR.js} +2 -2
- package/dist/cli/{chunk-Z4MOEQSY.js → chunk-N4MMU3QF.js} +21 -21
- package/dist/cli/{chunk-ATATJNJ6.js → chunk-NB2ECLQE.js} +9 -9
- package/dist/cli/{chunk-YKFW3NNA.mjs → chunk-NO4URKKT.mjs} +5 -5
- package/dist/cli/{chunk-66N76YZG.js → chunk-NRBCETWL.js} +44 -44
- package/dist/cli/{chunk-OQ5G7RFQ.mjs → chunk-OWQF6WVH.mjs} +10 -3
- package/dist/cli/{chunk-CH7JVSA7.mjs → chunk-OXFIJYN3.mjs} +8 -8
- package/dist/cli/{chunk-EQNAQENZ.js → chunk-P62LON53.js} +2 -2
- package/dist/cli/{chunk-NMU3VR5U.js → chunk-PMH4GLMD.js} +1 -0
- package/dist/cli/{chunk-S3A4IXBQ.mjs → chunk-PSX3WHIH.mjs} +1 -0
- package/dist/cli/{chunk-V7KUBDEB.js → chunk-QR7VYYNM.js} +144 -141
- package/dist/cli/{chunk-KSQXBLRW.mjs → chunk-RMZ6CISE.mjs} +3 -3
- package/dist/cli/{chunk-GTGJBZVH.js → chunk-S5LUY3KJ.js} +7 -7
- package/dist/cli/{chunk-SF4QJVBE.js → chunk-TFEGJEYO.js} +3 -3
- package/dist/cli/{chunk-VHTVXS5A.js → chunk-TO72GW5I.js} +16 -16
- package/dist/cli/{chunk-WCVIPZWX.mjs → chunk-TXSBPBHB.mjs} +5 -5
- package/dist/cli/{chunk-MW3YMPD2.mjs → chunk-U4M32NFS.mjs} +1 -1
- package/dist/cli/{chunk-NUC7ZVDG.mjs → chunk-UQYKSOGO.mjs} +5 -5
- package/dist/cli/{chunk-536TGWR6.mjs → chunk-UXF3ODJJ.mjs} +2 -2
- package/dist/cli/{chunk-LRWDZDBS.js → chunk-V2GN4PLK.js} +5 -5
- package/dist/cli/{chunk-SMWFOGUT.js → chunk-V65J64FL.js} +53 -53
- package/dist/cli/{chunk-V2YIBBVT.mjs → chunk-VYIAWAKJ.mjs} +1 -1
- package/dist/cli/{chunk-JDIQBZ6O.js → chunk-WA3FG7DH.js} +14 -14
- package/dist/cli/{chunk-XURWFEXM.mjs → chunk-WEYFSBAD.mjs} +13 -6
- package/dist/cli/{chunk-T43FF5PF.mjs → chunk-WGRDOPAK.mjs} +2 -2
- package/dist/cli/{chunk-NTLBZUHD.js → chunk-XYIECA7M.js} +4 -2
- package/dist/cli/{chunk-FXTV5B3D.mjs → chunk-YC7FKAJ4.mjs} +12 -12
- package/dist/cli/{chunk-BN5VKY4X.js → chunk-ZS2WHWWL.js} +7 -7
- package/dist/cli/{chunk-PFKWKWUJ.mjs → chunk-ZWFTHEPT.mjs} +2 -2
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-Q2LWKXAV.js → csv-5JHWVJ5N.js} +13 -13
- package/dist/cli/{csv-HT2JBCW2.mjs → csv-OO554TPX.mjs} +4 -4
- package/dist/cli/{db-XEV4WEE4.js → db-CYQJ4OXF.js} +28 -28
- package/dist/cli/{db-CS3XQ2LX.mjs → db-SQKJ6RKU.mjs} +7 -7
- package/dist/cli/describe-N7AKTUQV.mjs +50 -0
- package/dist/cli/describe-PASXOL3R.js +50 -0
- package/dist/cli/describe-core.d.mts +4 -2
- package/dist/cli/describe-core.d.ts +4 -2
- package/dist/cli/describe-core.js +5 -5
- package/dist/cli/describe-core.mjs +4 -4
- package/dist/cli/{executions-L6XFG5MP.mjs → executions-F34DORW6.mjs} +7 -7
- package/dist/cli/{executions-JCC34WAD.js → executions-K7EGCRKX.js} +9 -9
- package/dist/cli/{feedback-AWBDO5I6.mjs → feedback-GQHKCS66.mjs} +5 -5
- package/dist/cli/{feedback-HV2M2G7N.js → feedback-NOQVCA3Q.js} +10 -10
- package/dist/cli/{git-S4LRXTRX.mjs → git-2EEITXDB.mjs} +5 -5
- package/dist/cli/git-UU4YFJ2Q.js +25 -0
- package/dist/cli/index.js +145 -145
- package/dist/cli/index.mjs +44 -44
- package/dist/cli/{legacy-noops-7MOKBL4O.mjs → legacy-noops-JHMY5XRB.mjs} +6 -6
- package/dist/cli/{legacy-noops-RGSZUD6V.js → legacy-noops-RFNHQ7RG.js} +9 -9
- package/dist/cli/{monitors-XQNXDZPQ.mjs → monitors-RDMP6SPZ.mjs} +8 -8
- package/dist/cli/{monitors-JEFM2C5W.js → monitors-UKRZ4BDK.js} +101 -101
- package/dist/cli/{org-GYLA5V32.js → org-OX7TYTHV.js} +87 -87
- package/dist/cli/{org-KTMJZGTN.mjs → org-RF3G4KMB.mjs} +7 -7
- package/dist/cli/{pages-WOMU2T2O.mjs → pages-FBM3MGSP.mjs} +7 -7
- package/dist/cli/{pages-RY4U7OCL.js → pages-MKQT5LFV.js} +19 -19
- package/dist/cli/{play-2Q6MWJ3D.js → play-OOVX2DMV.js} +756 -707
- package/dist/cli/{play-KOYGGNYS.mjs → play-YWC2UORM.mjs} +151 -102
- package/dist/cli/{providers-HOIRHMN2.js → providers-2CGZYLER.js} +10 -10
- package/dist/cli/{providers-7YKDITJC.mjs → providers-3PEQESIU.mjs} +7 -7
- package/dist/cli/{quickstart-OWCJOSQA.js → quickstart-6AANHKQZ.js} +6 -6
- package/dist/cli/{quickstart-RDXHSMVX.mjs → quickstart-KVB36SOW.mjs} +4 -4
- package/dist/cli/{run-MT2ABKO5.js → run-NJ7WV5TK.js} +46 -46
- package/dist/cli/{run-RT73NDP5.mjs → run-QC23NRKO.mjs} +27 -27
- package/dist/cli/{search-CJPKIGSA.mjs → search-7BMFFZI2.mjs} +9 -9
- package/dist/cli/search-NH4DTXUK.js +33 -0
- package/dist/cli/{search-output-AREMA544.mjs → search-output-CALZ4ZI2.mjs} +4 -4
- package/dist/cli/{search-output-OSBZ7WK6.js → search-output-XC2AVBFX.js} +6 -6
- package/dist/cli/{secrets-BTIY2FEJ.mjs → secrets-7ZHA57DI.mjs} +7 -7
- package/dist/cli/{secrets-OV6KH633.js → secrets-VHU4B2D4.js} +16 -16
- package/dist/cli/sessions-2TE5JWVP.js +18 -0
- package/dist/cli/{sessions-3CO3ZFOD.mjs → sessions-YYULWFZE.mjs} +6 -6
- package/dist/cli/{settings-7BQIC7QN.mjs → settings-AVY4NNHI.mjs} +14 -14
- package/dist/cli/{settings-LBIECYDB.js → settings-WV77QJGD.js} +87 -87
- package/dist/cli/{setup-XPTSNNES.mjs → setup-AOUJ3RMU.mjs} +10 -10
- package/dist/cli/{setup-QZE7QR3F.js → setup-GE5TLTC4.js} +50 -50
- package/dist/cli/{skills-TGGKIQLT.mjs → skills-FVWO2G66.mjs} +8 -8
- package/dist/cli/skills-OL7LD6QX.js +37 -0
- package/dist/cli/{tools-MKIFX2TQ.mjs → tools-URE655B4.mjs} +20 -20
- package/dist/cli/tools-VQ5JO6DI.js +57 -0
- package/dist/cli/{update-5R3D3WNH.mjs → update-5B4G4345.mjs} +10 -10
- package/dist/cli/update-7ZOIOTZN.js +35 -0
- package/dist/cli/{views-VHKDHHUP.mjs → views-GSECJ5IK.mjs} +7 -7
- package/dist/cli/{views-VPWEINIA.js → views-IC762HEQ.js} +19 -19
- package/dist/cli/{workflow-D5DF65N6.mjs → workflow-6UQM565I.mjs} +8 -8
- package/dist/cli/{workflow-7K2VEQ4V.js → workflow-EME7ZEOV.js} +18 -18
- package/dist/{client-C5_6W8yd.d.mts → client-Bd2meveV.d.mts} +1 -1
- package/dist/{client-iXW4TOat.d.ts → client-CBCVhL8U.d.ts} +1 -1
- package/dist/{client-core-Dob428Z4.d.mts → client-core-CGj8V9mw.d.mts} +67 -0
- package/dist/{client-core-B-GPfmaC.d.ts → client-core-CsRRWCFy.d.ts} +67 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +10 -10
- package/dist/index.mjs +7 -7
- package/dist/install-integrity.json +120 -118
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/play-description.js +2 -2
- package/dist/plays/play-description.mjs +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 +6 -6
- package/dist/server.mjs +4 -4
- package/package.json +1 -1
- package/dist/cli/auth-OKPHHMMP.js +0 -43
- package/dist/cli/describe-5G5NXO5E.js +0 -50
- package/dist/cli/describe-OUTXLDGZ.mjs +0 -50
- package/dist/cli/git-GDPTG52F.js +0 -25
- package/dist/cli/search-7VBA6IGS.js +0 -33
- package/dist/cli/sessions-B3WNEWRW.js +0 -18
- package/dist/cli/skills-TXBRTWEV.js +0 -37
- package/dist/cli/tools-RZJV4X3J.js +0 -57
- package/dist/cli/update-YWGGPWUA.js +0 -35
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkTFEGJEYOjs = require('./chunk-TFEGJEYO.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkLE537GBCjs = require('./chunk-LE537GBC.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkSQWET4SLjs = require('./chunk-SQWET4SL.js');
|
|
@@ -150,7 +150,7 @@ function buildEnvironmentContext() {
|
|
|
150
150
|
node_version: process.version,
|
|
151
151
|
runtime: "Node.js",
|
|
152
152
|
hostname: _os.hostname.call(void 0, ),
|
|
153
|
-
agent_runtime:
|
|
153
|
+
agent_runtime: _chunkLE537GBCjs.detectAgentRuntime.call(void 0, )
|
|
154
154
|
};
|
|
155
155
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
156
156
|
const normalized = _optionalChain([process, 'access', _5 => _5.env, 'access', _6 => _6[key], 'optionalAccess', _7 => _7.trim, 'call', _8 => _8()]);
|
|
@@ -171,18 +171,18 @@ function buildEnvironmentContext() {
|
|
|
171
171
|
return context;
|
|
172
172
|
}
|
|
173
173
|
function failureReportHeaders(apiKey) {
|
|
174
|
-
const agentSessionId =
|
|
174
|
+
const agentSessionId = _chunkLE537GBCjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
175
175
|
return {
|
|
176
|
-
...
|
|
176
|
+
..._chunkLE537GBCjs.deploymentProtectionHeaders.call(void 0, ),
|
|
177
177
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
|
|
178
178
|
Authorization: `Bearer ${apiKey}`,
|
|
179
179
|
"Content-Type": "application/json",
|
|
180
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
180
|
+
"User-Agent": `deepline-ts-sdk/${_chunkLE537GBCjs.SDK_VERSION}`,
|
|
181
181
|
"X-Deepline-Client-Family": "sdk",
|
|
182
182
|
"X-Deepline-CLI-Family": "sdk",
|
|
183
|
-
"X-Deepline-Agent-Runtime":
|
|
184
|
-
"X-Deepline-CLI-Version":
|
|
185
|
-
"X-Deepline-SDK-Version":
|
|
183
|
+
"X-Deepline-Agent-Runtime": _chunkLE537GBCjs.detectAgentRuntime.call(void 0, ),
|
|
184
|
+
"X-Deepline-CLI-Version": _chunkLE537GBCjs.SDK_VERSION,
|
|
185
|
+
"X-Deepline-SDK-Version": _chunkLE537GBCjs.SDK_VERSION
|
|
186
186
|
};
|
|
187
187
|
}
|
|
188
188
|
async function postFailureReport(input) {
|
|
@@ -210,7 +210,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
210
210
|
if (isFailureReportingDisabled()) return false;
|
|
211
211
|
let apiKey = "";
|
|
212
212
|
try {
|
|
213
|
-
apiKey =
|
|
213
|
+
apiKey = _chunkTFEGJEYOjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
214
214
|
} catch (e2) {
|
|
215
215
|
return false;
|
|
216
216
|
}
|
|
@@ -237,7 +237,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
237
237
|
failure_code: failureCode2,
|
|
238
238
|
failure_stage: failureStage,
|
|
239
239
|
error_body: "Automatic Deepline skills installation failed.",
|
|
240
|
-
cli_version:
|
|
240
|
+
cli_version: _chunkLE537GBCjs.SDK_VERSION,
|
|
241
241
|
context: {
|
|
242
242
|
environment: buildEnvironmentContext(),
|
|
243
243
|
skills_sync: {
|
|
@@ -357,7 +357,7 @@ function buildFailureReport(input) {
|
|
|
357
357
|
failure_kind: failureKind,
|
|
358
358
|
failure_code: code,
|
|
359
359
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
360
|
-
cli_version:
|
|
360
|
+
cli_version: _chunkLE537GBCjs.SDK_VERSION,
|
|
361
361
|
context: {
|
|
362
362
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
363
363
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -377,8 +377,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
377
377
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
378
378
|
const exitCode = resolvedExitCode(input);
|
|
379
379
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
380
|
-
const baseUrl =
|
|
381
|
-
const apiKey =
|
|
380
|
+
const baseUrl = _chunkTFEGJEYOjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
381
|
+
const apiKey = _chunkTFEGJEYOjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
382
382
|
if (!apiKey) return false;
|
|
383
383
|
return postFailureReport({
|
|
384
384
|
baseUrl,
|
|
@@ -1181,18 +1181,16 @@ Related:
|
|
|
1181
1181
|
"plays get": {
|
|
1182
1182
|
core: `
|
|
1183
1183
|
Purpose:
|
|
1184
|
-
Full metadata for a play: revisions, source, triggers, and latest runs.
|
|
1184
|
+
[[cli:Full metadata for a play: revisions, source, triggers, and latest runs.]][[mcp:List or read the saved source files of one Play revision.]]
|
|
1185
1185
|
When:
|
|
1186
|
-
Only when describe is not enough: reading the source (
|
|
1187
|
-
file.play.ts), checking revisions, or auditing a saved play.
|
|
1186
|
+
[[cli:Only when describe is not enough: reading the source (--source --out file.play.ts), checking revisions, or auditing a saved play.]][[mcp:Before editing a saved Play. List its source paths, then read each needed file at the exact returned revision.]]
|
|
1188
1187
|
[[cli:
|
|
1189
1188
|
Input:
|
|
1190
1189
|
The play reference. --source prints or writes the source; --working,
|
|
1191
1190
|
--live, --revision <n> pick which source.
|
|
1192
1191
|
]]
|
|
1193
1192
|
Output (JSON):
|
|
1194
|
-
The play record with revision and trigger metadata; with
|
|
1195
|
-
TypeScript source.
|
|
1193
|
+
[[cli:The play record with revision and trigger metadata; with --source, the TypeScript source.]][[mcp:The revision, entrypoint, and file paths. With a file selected, the source chunk and its next offset.]]
|
|
1196
1194
|
Cost:
|
|
1197
1195
|
Free.
|
|
1198
1196
|
`
|
|
@@ -1502,7 +1500,7 @@ Input:
|
|
|
1502
1500
|
[[cli:
|
|
1503
1501
|
Output (JSON):
|
|
1504
1502
|
kind "run_overview", runUrl (the Play page with this run selected),
|
|
1505
|
-
run {id, playName, status, startedAt, finishedAt, durationMs}, steps[] {id, kind, status, label, progress {total, executed,
|
|
1503
|
+
run {id, playName, status, startedAt, finishedAt, durationMs, retries}, steps[] {id, kind, status, label, progress {total, executed,
|
|
1506
1504
|
reused, failed, completedRows}}, failures.steps[], errorDetails,
|
|
1507
1505
|
rowOutcomes, warnings[], datasets[] {datasetId, name, rowCount, summary,
|
|
1508
1506
|
storage {schema, table}, preview {returnedRows, totalRows, partial, rows}},
|
|
@@ -1532,6 +1530,15 @@ Output fields:
|
|
|
1532
1530
|
run.status queued, running, completed, failed, or stopped. Only
|
|
1533
1531
|
the last three are terminal.
|
|
1534
1532
|
run.activity the current step while running, null when finished.
|
|
1533
|
+
run.retries failure-driven retries since the last resume:
|
|
1534
|
+
platformRecoveries {preCode, postCode} and
|
|
1535
|
+
recoveryOutcome (none, recovering, recovered,
|
|
1536
|
+
exhausted), plus resumeEpoch (runs resume count).
|
|
1537
|
+
Durable waits are not retries and are not counted. A
|
|
1538
|
+
retried attempt may repeat earlier work; these are
|
|
1539
|
+
counts, not proof that anything ran once. Provider
|
|
1540
|
+
retries inside one call are not counted; read them
|
|
1541
|
+
with runs logs <run-id> --kind activity.observed.
|
|
1535
1542
|
steps[].label the step's state in one line, as the dashboard shows
|
|
1536
1543
|
it.
|
|
1537
1544
|
datasets[].summary.reportedPopulation {totalRows, persistedRows,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autoDetectBaseUrl,
|
|
3
3
|
resolveApiKeyForBaseUrl
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-U4M32NFS.mjs";
|
|
5
5
|
import {
|
|
6
6
|
SDK_VERSION,
|
|
7
7
|
agentSessionIdFromEnvironment,
|
|
8
8
|
deploymentProtectionHeaders,
|
|
9
9
|
detectAgentRuntime
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OWQF6WVH.mjs";
|
|
11
11
|
import {
|
|
12
12
|
DeeplineError
|
|
13
13
|
} from "./chunk-ZPGGW27Q.mjs";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkPMH4GLMDjs = require('./chunk-PMH4GLMD.js');
|
|
7
7
|
|
|
8
8
|
// src/cli/described.ts
|
|
9
9
|
var SHAPE = "{}";
|
|
@@ -777,6 +777,7 @@ function describedJson(described, view) {
|
|
|
777
777
|
return {
|
|
778
778
|
kind: described.kind,
|
|
779
779
|
id: described.id,
|
|
780
|
+
...described.playId ? { playId: described.playId } : {},
|
|
780
781
|
...described.provider ? { provider: described.provider } : {},
|
|
781
782
|
...described.displayName ? { displayName: described.displayName } : {},
|
|
782
783
|
...described.description ? { description: described.description } : {},
|
|
@@ -807,7 +808,7 @@ function buildPlayRunUrl(baseUrl, playName, runId) {
|
|
|
807
808
|
}
|
|
808
809
|
function describedPlay(play) {
|
|
809
810
|
const reference = play.reference || play.name;
|
|
810
|
-
const starter = _nullishCoalesce(play.cloneEditStarter, () => (
|
|
811
|
+
const starter = _nullishCoalesce(play.cloneEditStarter, () => ( _chunkPMH4GLMDjs.cloneEditStarter.call(void 0, play)));
|
|
811
812
|
const csv = _nullishCoalesce(play.csvInput, () => ( {}));
|
|
812
813
|
const csvField = typeof csv.inputField === "string" ? csv.inputField : "csv";
|
|
813
814
|
const alongside = /* @__PURE__ */ new Set([
|
|
@@ -836,6 +837,7 @@ function describedPlay(play) {
|
|
|
836
837
|
).map((field) => ({ ...field, required: true }));
|
|
837
838
|
return {
|
|
838
839
|
kind: play.ownerType === "deepline" ? "prebuilt_play" : "custom_play",
|
|
840
|
+
...play.playId ? { playId: play.playId } : {},
|
|
839
841
|
id: reference,
|
|
840
842
|
...play.displayName && play.displayName !== play.name ? { displayName: play.displayName } : {},
|
|
841
843
|
...play.description ? { description: play.description } : {},
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
addDescribeOptions,
|
|
3
3
|
recordApiResponse,
|
|
4
4
|
writeExecutionOutput
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UXF3ODJJ.mjs";
|
|
6
6
|
import {
|
|
7
7
|
recentSearchRef,
|
|
8
8
|
registerDeprecatedSearchCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UQYKSOGO.mjs";
|
|
10
10
|
import {
|
|
11
11
|
Capability,
|
|
12
12
|
arrayField,
|
|
@@ -27,10 +27,10 @@ import {
|
|
|
27
27
|
toolInputFieldsForDisplay,
|
|
28
28
|
toolMetadataJsonForDescribe,
|
|
29
29
|
toolOutputFieldsForDisplay
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-GESIFFQX.mjs";
|
|
31
31
|
import {
|
|
32
32
|
rateLimitQualifier
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-7AOFSZJM.mjs";
|
|
34
34
|
import {
|
|
35
35
|
shellQuote
|
|
36
36
|
} from "./chunk-OVDNJAJN.mjs";
|
|
@@ -46,10 +46,10 @@ import {
|
|
|
46
46
|
} from "./chunk-FIVKWNMT.mjs";
|
|
47
47
|
import {
|
|
48
48
|
DeeplineClient
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-KPINGHIF.mjs";
|
|
50
50
|
import {
|
|
51
51
|
validateExecutionIdempotencyKey
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-CZNEQMJR.mjs";
|
|
53
53
|
import {
|
|
54
54
|
stableStringify
|
|
55
55
|
} from "./chunk-UBKA33KY.mjs";
|
|
@@ -59,18 +59,18 @@ import {
|
|
|
59
59
|
maybeAutoUpdateAndRelaunch,
|
|
60
60
|
registerCompatibilityCatalog,
|
|
61
61
|
runToolExecuteStage
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-TXSBPBHB.mjs";
|
|
63
63
|
import {
|
|
64
64
|
isCliTraceEnabled,
|
|
65
65
|
recordCliTrace,
|
|
66
66
|
resolveCliMaintenancePolicy
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-CLTL7ZJI.mjs";
|
|
68
68
|
import {
|
|
69
69
|
checkSdkCompatibility,
|
|
70
70
|
enforceSdkCompatibilityResponse,
|
|
71
71
|
flushDeferredSkillsSyncNotices,
|
|
72
72
|
syncSdkSkillsIfNeeded
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-M43ZYNDA.mjs";
|
|
74
74
|
import {
|
|
75
75
|
printCommandEnvelope,
|
|
76
76
|
printCompactJson,
|
|
@@ -78,12 +78,12 @@ import {
|
|
|
78
78
|
printJsonError,
|
|
79
79
|
renderCommandEnvelopeText,
|
|
80
80
|
shouldEmitJson
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-GCLNX72G.mjs";
|
|
82
82
|
import {
|
|
83
83
|
readSdkSkillsLocalVersion,
|
|
84
84
|
resolveConfig,
|
|
85
85
|
sdkCliStateDirPath
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-U4M32NFS.mjs";
|
|
87
87
|
import {
|
|
88
88
|
DeeplineError
|
|
89
89
|
} from "./chunk-ZPGGW27Q.mjs";
|
|
@@ -1066,7 +1066,7 @@ Examples:
|
|
|
1066
1066
|
process.exitCode = await narrowView();
|
|
1067
1067
|
return;
|
|
1068
1068
|
}
|
|
1069
|
-
const { describeAnything } = await import("./describe-
|
|
1069
|
+
const { describeAnything } = await import("./describe-N7AKTUQV.mjs");
|
|
1070
1070
|
process.exitCode = await describeAnything(
|
|
1071
1071
|
toolId,
|
|
1072
1072
|
{
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkXYIECA7Mjs = require('./chunk-XYIECA7M.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
var _chunkJ33TSWO5js = require('./chunk-J33TSWO5.js');
|
|
@@ -280,7 +280,7 @@ function extractorValueType(name) {
|
|
|
280
280
|
}
|
|
281
281
|
const named = NAMED_VALUE_SHAPES[definition.valueKind];
|
|
282
282
|
if (!named) return { type: "string" };
|
|
283
|
-
const { type, fields } =
|
|
283
|
+
const { type, fields } = _chunkXYIECA7Mjs.schemaField.call(void 0, name, named.schema, true);
|
|
284
284
|
return { type, ...fields ? { fields } : {}, shape: named.shape };
|
|
285
285
|
}
|
|
286
286
|
function jsonSchemaOf(wrapper) {
|
|
@@ -317,7 +317,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
317
317
|
description,
|
|
318
318
|
cost: stringField(recordField(tool, "pricing"), "displayText") || void 0,
|
|
319
319
|
guidance: [],
|
|
320
|
-
inputs:
|
|
320
|
+
inputs: _chunkXYIECA7Mjs.schemaFields.call(void 0,
|
|
321
321
|
recordField(tool, "payload_schema", "payloadSchema")
|
|
322
322
|
),
|
|
323
323
|
outputs: [],
|
|
@@ -354,7 +354,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
354
354
|
(path) => path.replace(/^toolResponse\.raw\./, "")
|
|
355
355
|
);
|
|
356
356
|
const node = roots.flatMap((root) => paths.map((path) => schemaNodeAt(root, path))).find(isRecord);
|
|
357
|
-
const { fields, ...typed } =
|
|
357
|
+
const { fields, ...typed } = _chunkXYIECA7Mjs.schemaField.call(void 0, name, node, true);
|
|
358
358
|
const valueType = stringField(_nullishCoalesce(details.get(name), () => ( {})), "valueType");
|
|
359
359
|
const deepline = kind === "extractedValues" ? extractorValueType(name) : void 0;
|
|
360
360
|
const known = typed.type !== "unknown" ? void 0 : kind === "extractedLists" ? { type: "object[]" } : deepline;
|
|
@@ -423,7 +423,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
423
423
|
],
|
|
424
424
|
rateLimit: withPlanRateLimit(
|
|
425
425
|
recordField(recordField(tool, "pricing"), "benefit").requestsPerMinute,
|
|
426
|
-
|
|
426
|
+
_chunkXYIECA7Mjs.rateLimitSummary.call(void 0,
|
|
427
427
|
recordField(contract, "executionMetadata").configuredRateLimits
|
|
428
428
|
)
|
|
429
429
|
),
|
|
@@ -431,9 +431,9 @@ function describedTool(tool, requestedToolId) {
|
|
|
431
431
|
...typeof tool.connected === "boolean" ? { connected: tool.connected } : {},
|
|
432
432
|
...credentialStatus ? { credentialStatus } : {},
|
|
433
433
|
...connectCommand ? { connectCommand } : {},
|
|
434
|
-
inputs:
|
|
434
|
+
inputs: _chunkXYIECA7Mjs.schemaFields.call(void 0, inputSchema),
|
|
435
435
|
outputs: [...lists, ...values].map(({ field }) => field),
|
|
436
|
-
rawResponse:
|
|
436
|
+
rawResponse: _chunkXYIECA7Mjs.schemaFields.call(void 0, outputSchema),
|
|
437
437
|
runner: playReference ? { via: "play", reference: playReference } : { via: "tool", toolId: String(contract.toolId), inputSchema }
|
|
438
438
|
};
|
|
439
439
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CLTL7ZJI.mjs";
|
|
4
4
|
import {
|
|
5
5
|
checkSdkCompatibility,
|
|
6
6
|
enforceSdkCompatibilityResponse,
|
|
7
7
|
flushDeferredSkillsSyncNotices
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-M43ZYNDA.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
package/dist/cli/command-docs.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkCWRL6IQPjs = require('./chunk-CWRL6IQP.js');
|
|
11
11
|
require('./chunk-R7J7CJPZ.js');
|
|
12
12
|
require('./chunk-YGCKMI5P.js');
|
|
13
13
|
require('./chunk-COGTRVWW.js');
|
|
@@ -20,4 +20,4 @@ require('./chunk-COGTRVWW.js');
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
exports.CLI_DOC_SURFACE =
|
|
23
|
+
exports.CLI_DOC_SURFACE = _chunkCWRL6IQPjs.CLI_DOC_SURFACE; exports.COMMAND_DOCS = _chunkCWRL6IQPjs.COMMAND_DOCS; exports.PLAY_RUNTIME_PRICING_NOTE = _chunkCWRL6IQPjs.PLAY_RUNTIME_PRICING_NOTE; exports.commandDocKey = _chunkCWRL6IQPjs.commandDocKey; exports.helpDetailFromArgv = _chunkCWRL6IQPjs.helpDetailFromArgv; exports.renderActionExplanation = _chunkCWRL6IQPjs.renderActionExplanation; exports.renderCommandExplanation = _chunkCWRL6IQPjs.renderCommandExplanation; exports.renderDocText = _chunkCWRL6IQPjs.renderDocText;
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
7
|
+
var _chunkS5LUY3KJjs = require('./chunk-S5LUY3KJ.js');
|
|
8
|
+
require('./chunk-TFEGJEYO.js');
|
|
9
|
+
require('./chunk-LE537GBC.js');
|
|
10
10
|
require('./chunk-T2N3B7IQ.js');
|
|
11
11
|
require('./chunk-XNYIZMNQ.js');
|
|
12
12
|
require('./chunk-SQWET4SL.js');
|
|
13
|
-
require('./chunk-
|
|
13
|
+
require('./chunk-2WFVLOB7.js');
|
|
14
14
|
require('./chunk-OG64RBAC.js');
|
|
15
15
|
require('./chunk-COGTRVWW.js');
|
|
16
16
|
|
|
@@ -128,7 +128,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
128
128
|
column.length,
|
|
129
129
|
...rows.map((row) => {
|
|
130
130
|
const value = _nullishCoalesce(row[column], () => ( ""));
|
|
131
|
-
return (verbose ? value :
|
|
131
|
+
return (verbose ? value : _chunkS5LUY3KJjs.clip.call(void 0, value, 42)).length;
|
|
132
132
|
})
|
|
133
133
|
)
|
|
134
134
|
])
|
|
@@ -138,7 +138,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
138
138
|
const body = rows.map(
|
|
139
139
|
(row) => columns.map((column) => {
|
|
140
140
|
const raw = _nullishCoalesce(row[column], () => ( ""));
|
|
141
|
-
const display = verbose ? raw :
|
|
141
|
+
const display = verbose ? raw : _chunkS5LUY3KJjs.clip.call(void 0, raw, 42);
|
|
142
142
|
return display.padEnd(widths[column]);
|
|
143
143
|
}).join(" | ")
|
|
144
144
|
);
|
|
@@ -158,7 +158,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
158
158
|
{ exitCode: 2 }
|
|
159
159
|
);
|
|
160
160
|
}
|
|
161
|
-
const allRows =
|
|
161
|
+
const allRows = _chunkS5LUY3KJjs.readCsvRows.call(void 0, csvPath);
|
|
162
162
|
const [rowStart, rowEnd] = parseRowRange(options.rows);
|
|
163
163
|
const rows = options.summary && options.rows === void 0 ? allRows : selectRows(allRows, rowStart, rowEnd);
|
|
164
164
|
const { rows: selected, columns } = selectColumns(
|
|
@@ -171,7 +171,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
171
171
|
if (options.summary) {
|
|
172
172
|
const summaries = summarizeColumns(selected, columns);
|
|
173
173
|
if (format === "json") {
|
|
174
|
-
|
|
174
|
+
_chunkS5LUY3KJjs.printJson.call(void 0, {
|
|
175
175
|
rows: summaries,
|
|
176
176
|
total_rows: selected.length,
|
|
177
177
|
source_total_rows: allRows.length
|
|
@@ -180,7 +180,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
180
180
|
}
|
|
181
181
|
const displayRows = summaryDisplayRows(summaries);
|
|
182
182
|
if (format === "csv") {
|
|
183
|
-
process.stdout.write(
|
|
183
|
+
process.stdout.write(_chunkS5LUY3KJjs.csvStringFromRows.call(void 0, displayRows));
|
|
184
184
|
return;
|
|
185
185
|
}
|
|
186
186
|
process.stdout.write(
|
|
@@ -195,7 +195,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
195
195
|
return;
|
|
196
196
|
}
|
|
197
197
|
if (format === "json") {
|
|
198
|
-
|
|
198
|
+
_chunkS5LUY3KJjs.printJson.call(void 0, {
|
|
199
199
|
rows: selected.map((row, index) => ({ __row: rowStart + index, ...row }))
|
|
200
200
|
});
|
|
201
201
|
return;
|
|
@@ -438,7 +438,7 @@ async function handleCsvRenderStart(options) {
|
|
|
438
438
|
if (log) {
|
|
439
439
|
detail = `
|
|
440
440
|
CSV render log:
|
|
441
|
-
${
|
|
441
|
+
${_chunkS5LUY3KJjs.clip.call(void 0, log, 2e3)}`;
|
|
442
442
|
}
|
|
443
443
|
} catch (e7) {
|
|
444
444
|
}
|
|
@@ -489,7 +489,7 @@ async function handleCsvRenderStatus(options) {
|
|
|
489
489
|
if (payload.pid) lines.push(`Render PID: ${payload.pid}`);
|
|
490
490
|
if (payload.url) lines.push(`Render URL: ${payload.url}`);
|
|
491
491
|
lines.push(`Render Health: ${payload.health_status}`);
|
|
492
|
-
|
|
492
|
+
_chunkS5LUY3KJjs.printCommandEnvelope.call(void 0, payload, {
|
|
493
493
|
json: options.json,
|
|
494
494
|
text: `${lines.join("\n")}
|
|
495
495
|
`
|
|
@@ -525,7 +525,7 @@ async function handleCsvRenderStop(options) {
|
|
|
525
525
|
};
|
|
526
526
|
const text = stopped.length > 0 ? `Stopped CSV render process(es): ${stopped.join(" ")}
|
|
527
527
|
` : "No running CSV render process found.\n";
|
|
528
|
-
|
|
528
|
+
_chunkS5LUY3KJjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
|
|
529
529
|
}
|
|
530
530
|
async function handleCsvRender(action, options) {
|
|
531
531
|
const normalized = _nullishCoalesce(action, () => ( "start"));
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
printCommandEnvelope,
|
|
5
5
|
printJson,
|
|
6
6
|
readCsvRows
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-GCLNX72G.mjs";
|
|
8
|
+
import "./chunk-U4M32NFS.mjs";
|
|
9
|
+
import "./chunk-OWQF6WVH.mjs";
|
|
10
10
|
import "./chunk-QNHHZ63P.mjs";
|
|
11
11
|
import "./chunk-DLIRSHV6.mjs";
|
|
12
12
|
import "./chunk-ZPGGW27Q.mjs";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-7C4F4TLR.mjs";
|
|
14
14
|
import "./chunk-WZYKRD7T.mjs";
|
|
15
15
|
import "./chunk-KRD6H754.mjs";
|
|
16
16
|
|