deepline 0.3.470 → 0.3.471
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 +5 -0
- package/dist/bundling-sources/sdk/src/index.ts +1 -0
- package/dist/bundling-sources/sdk/src/plays/run-request.ts +1 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +22 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/play-admission-outcome.ts +34 -8
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +131 -22
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +36 -1
- package/dist/cli/auth-2MMOFS3O.js +41 -0
- package/dist/cli/{auth-7J52UEWO.mjs → auth-MUCIXHJF.mjs} +5 -5
- package/dist/cli/{billing-ASNWVDQG.js → billing-BQQNTCTV.js} +82 -81
- package/dist/cli/{billing-ORB3UZ73.mjs → billing-QGCTDE2N.mjs} +9 -8
- package/dist/cli/{chunk-BWLXHUKH.mjs → chunk-2KBRY5CA.mjs} +3 -3
- package/dist/cli/{chunk-DSOTGAXS.mjs → chunk-3PT2HJKC.mjs} +1 -1
- package/dist/cli/{chunk-262PYO4I.mjs → chunk-4OAA43RX.mjs} +3 -3
- package/dist/cli/{chunk-NNCDHMCT.js → chunk-4PT2WZD2.js} +26 -26
- package/dist/cli/{chunk-VBKN6ISP.js → chunk-5QWGL2QO.js} +93 -93
- package/dist/cli/{chunk-HNP5V5BN.js → chunk-6DTW6JND.js} +6 -2
- package/dist/cli/{chunk-5ADROBCY.mjs → chunk-AMUSZHCE.mjs} +2 -2
- package/dist/cli/{chunk-3P4WOCRB.mjs → chunk-ATKFOOVD.mjs} +5 -5
- package/dist/cli/{chunk-A7THVTRN.js → chunk-CR2F3JZN.js} +51 -51
- package/dist/cli/{chunk-PWXHZPHK.js → chunk-DFMFYOML.js} +10 -10
- package/dist/cli/{chunk-AGIEKE3L.js → chunk-DK5Y5BD3.js} +4 -4
- package/dist/cli/{chunk-SV3B6KW4.mjs → chunk-DV4V5IWI.mjs} +5 -5
- package/dist/cli/{chunk-F4L7WMLK.mjs → chunk-E2SHDT7T.mjs} +2 -2
- package/dist/cli/{chunk-44UR3BU2.js → chunk-E3WTQ3JI.js} +14 -14
- package/dist/cli/{chunk-3XLJPLXZ.mjs → chunk-EHVVDHNU.mjs} +1 -1
- package/dist/cli/{chunk-YFKOA4HW.mjs → chunk-EYKMITTY.mjs} +4 -4
- package/dist/cli/{chunk-7WILY2XM.mjs → chunk-FJBGBPYY.mjs} +2 -2
- package/dist/cli/{chunk-VL7OL7YR.mjs → chunk-FVGT5EBA.mjs} +1 -1
- package/dist/cli/{chunk-F2XK4UN6.js → chunk-FX3QM6WN.js} +3 -3
- package/dist/cli/{chunk-NSAKJQLX.js → chunk-G6RQXAJ2.js} +1 -1
- package/dist/cli/{chunk-MXAB4W6E.js → chunk-GPSVXVDZ.js} +8 -8
- package/dist/cli/{chunk-SHB7BUNQ.mjs → chunk-IE5KAVTI.mjs} +3 -3
- package/dist/cli/{chunk-SOME764Z.mjs → chunk-IPFUDUSY.mjs} +4 -4
- package/dist/cli/{chunk-Y4OE46HH.js → chunk-J2NYCUTK.js} +24 -24
- package/dist/cli/{chunk-JKVRBCZL.js → chunk-JDMR33HS.js} +1 -0
- package/dist/cli/{chunk-YBDQUVDE.mjs → chunk-K5USD25Z.mjs} +10 -10
- package/dist/cli/{chunk-F6OB5L74.js → chunk-KSUGLTX3.js} +6 -6
- package/dist/cli/{chunk-CNQBCLQP.js → chunk-MLQJVAVS.js} +3 -3
- package/dist/cli/{chunk-QW6HNDS7.mjs → chunk-MV6HL67R.mjs} +2 -2
- package/dist/cli/{chunk-6R5UKWRW.js → chunk-NBPNYD54.js} +16 -16
- package/dist/cli/{chunk-FAG4DFUC.mjs → chunk-NELMCOWK.mjs} +1 -0
- package/dist/cli/{chunk-N72VIY7R.js → chunk-NLT3CFVJ.js} +2 -2
- package/dist/cli/{chunk-EM2E7YIS.js → chunk-NPJY5QRC.js} +53 -53
- package/dist/cli/{chunk-QG7UPPOK.mjs → chunk-OYHCMKZM.mjs} +3 -3
- package/dist/cli/{chunk-SXQZYTUW.mjs → chunk-PVEEGJFN.mjs} +1 -1
- package/dist/cli/{chunk-4BQQ3Q3J.js → chunk-RUWBAU6V.js} +8 -8
- package/dist/cli/{chunk-YTFCKCII.js → chunk-RWCTGSD7.js} +3 -3
- package/dist/cli/{chunk-GLSFZYZB.mjs → chunk-RYGJWMWL.mjs} +1 -1
- package/dist/cli/{chunk-D464JW3N.mjs → chunk-RZHUHL53.mjs} +19 -1
- package/dist/cli/{chunk-6B7XLHIE.mjs → chunk-SIQV6UYG.mjs} +4 -4
- package/dist/cli/{chunk-ETTUFFBS.js → chunk-TWRK4NOU.js} +36 -36
- package/dist/cli/{chunk-CTDWQYBW.mjs → chunk-U5RGCQWJ.mjs} +2 -2
- package/dist/cli/{chunk-FVYAEBGO.mjs → chunk-V2WMJXU6.mjs} +6 -2
- package/dist/cli/{chunk-ORO2GFH4.js → chunk-VDRGX2XL.js} +5 -5
- package/dist/cli/{chunk-C7EA2VNR.js → chunk-VGIAOWCD.js} +5 -5
- package/dist/cli/{chunk-PJX7BA7T.mjs → chunk-VVY3HGFM.mjs} +2 -2
- package/dist/cli/{chunk-GDFO3ERN.js → chunk-WDXJUZCY.js} +2 -2
- package/dist/cli/{chunk-57F5VKHV.js → chunk-YRM5TPXL.js} +8 -8
- package/dist/cli/{chunk-WG3KGAII.js → chunk-Z52WEIBR.js} +19 -1
- package/dist/cli/{chunk-RVQ333NB.mjs → chunk-ZAF54BQK.mjs} +1 -1
- package/dist/cli/{chunk-KBNAI5BY.js → chunk-ZHM7VCKH.js} +21 -21
- package/dist/cli/{chunk-SETIOXN4.mjs → chunk-ZMJOSD7R.mjs} +1 -1
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-D3JPZVUN.mjs → csv-Q6BSRCBJ.mjs} +4 -4
- package/dist/cli/{csv-FSXDIWBP.js → csv-UE7RZDUV.js} +13 -13
- package/dist/cli/{db-3UWDQXLF.mjs → db-FI6XXB2H.mjs} +7 -7
- package/dist/cli/{db-DZQUPWI3.js → db-T7A7EE3D.js} +28 -28
- package/dist/cli/{describe-APG2GVFG.mjs → describe-4GGU6NU3.mjs} +18 -18
- package/dist/cli/describe-UM2VGRY7.js +48 -0
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/{executions-BFAPMPG2.js → executions-4I6F5RMS.js} +9 -9
- package/dist/cli/{executions-TDUX3575.mjs → executions-S46XI7NX.mjs} +7 -7
- package/dist/cli/{feedback-BMV7PUDL.mjs → feedback-3LJ7NZE7.mjs} +4 -4
- package/dist/cli/{feedback-2KNPCYTH.js → feedback-VEGUNKSP.js} +8 -8
- package/dist/cli/git-EVWKNIUA.js +25 -0
- package/dist/cli/{git-KBVONNE5.mjs → git-W7SFD7AA.mjs} +5 -5
- package/dist/cli/index.js +139 -139
- package/dist/cli/index.mjs +41 -41
- package/dist/cli/{legacy-noops-LE6LJO7F.js → legacy-noops-3EMB5SJH.js} +8 -8
- package/dist/cli/{legacy-noops-GZDRRUFE.mjs → legacy-noops-FIR5PSHG.mjs} +5 -5
- package/dist/cli/{monitors-CW22L3VL.mjs → monitors-4DKW25PV.mjs} +8 -8
- package/dist/cli/{monitors-PGBHMKOU.js → monitors-53LPJH6R.js} +92 -92
- package/dist/cli/{org-K5C23LAV.mjs → org-6ZV2DBGI.mjs} +7 -7
- package/dist/cli/{org-3V2VAH5D.js → org-CYLJFX4Q.js} +73 -73
- package/dist/cli/{pages-2F73VVWC.js → pages-42E3WIMH.js} +18 -18
- package/dist/cli/{pages-7V2C7GWU.mjs → pages-V3LEXCRL.mjs} +7 -7
- package/dist/cli/{play-62KSZGJQ.js → play-O3OY556F.js} +556 -516
- package/dist/cli/{play-VT7TPJUH.mjs → play-X7REMNNG.mjs} +63 -23
- package/dist/cli/{providers-LX562YG7.mjs → providers-L2DJVAXN.mjs} +7 -7
- package/dist/cli/{providers-3SI3QBT3.js → providers-NZ7TISS3.js} +10 -10
- package/dist/cli/{quickstart-5HA5IFTB.js → quickstart-IKNGAQRO.js} +6 -6
- package/dist/cli/{quickstart-ADE7FV26.mjs → quickstart-ROWMAUXQ.mjs} +4 -4
- package/dist/cli/{run-4ZV4UDKP.js → run-JG6DLOYR.js} +37 -37
- package/dist/cli/{run-OITZJ6QZ.mjs → run-PJI577J2.mjs} +23 -23
- package/dist/cli/{search-BI5VZQMD.mjs → search-DOVJ745X.mjs} +8 -8
- package/dist/cli/search-RHKW5GSR.js +32 -0
- package/dist/cli/{secrets-A2R36AZ6.mjs → secrets-OKDFNCRJ.mjs} +7 -7
- package/dist/cli/{secrets-UAKNTMYB.js → secrets-R5LWXIG6.js} +16 -16
- package/dist/cli/{sessions-PPOFUFBW.mjs → sessions-KX4C2CKS.mjs} +5 -5
- package/dist/cli/{sessions-3JM3OXME.js → sessions-L3DSAY2T.js} +6 -6
- package/dist/cli/{settings-C4M5HOD4.js → settings-NKTNNTAP.js} +79 -79
- package/dist/cli/{settings-PZA6TBOL.mjs → settings-W3SMDBYS.mjs} +12 -12
- package/dist/cli/{setup-TY2OSI6D.js → setup-5WZEXWQR.js} +44 -44
- package/dist/cli/{setup-245XVTBR.mjs → setup-7KFKKW2W.mjs} +9 -9
- package/dist/cli/skills-UFAABPCQ.js +31 -0
- package/dist/cli/{skills-ZAN23KLR.mjs → skills-X5TLATOL.mjs} +7 -7
- package/dist/cli/{tools-GG4KDQBM.mjs → tools-27J5EOKO.mjs} +17 -17
- package/dist/cli/tools-IVU3BCIY.js +55 -0
- package/dist/cli/{update-XKXIL6DU.mjs → update-EWL477FJ.mjs} +9 -9
- package/dist/cli/update-G7HFHKPG.js +33 -0
- package/dist/cli/{workflow-VN7M3D2U.js → workflow-GFNGGHJE.js} +18 -18
- package/dist/cli/{workflow-LVQVTFUJ.mjs → workflow-YXR6YMT2.mjs} +8 -8
- package/dist/{client-B3tlWsw7.d.ts → client-DIpVmXcj.d.ts} +1 -1
- package/dist/{client-CdJR18SJ.d.mts → client-DitOgp8N.d.mts} +1 -1
- package/dist/{client-core-ByJD7QXj.d.mts → client-core-COZteOww.d.mts} +28 -2
- package/dist/{client-core-CxHBKfE5.d.ts → client-core-k543Fg6D.d.ts} +28 -2
- package/dist/{compiler-manifest-D5dARg3M.d.ts → compiler-manifest-Zwm9yqOA.d.mts} +39 -0
- package/dist/{compiler-manifest-D5dARg3M.d.mts → compiler-manifest-Zwm9yqOA.d.ts} +39 -0
- package/dist/{errors-BtHHzWL8.d.ts → errors-CsYwlpn4.d.ts} +1 -1
- package/dist/{errors-BveMVPwA.d.mts → errors-nEsqNLL8.d.mts} +1 -1
- package/dist/{index-C6sovoYP.d.ts → index-9pUZqkPH.d.ts} +1 -1
- package/dist/{index-BboApDGD.d.mts → index-CXF2jtza.d.mts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +10 -10
- package/dist/index.mjs +7 -7
- package/dist/install-integrity.json +112 -112
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +1 -1
- 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/plays/run-request.js +2 -2
- package/dist/plays/run-request.mjs +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +6 -6
- package/dist/server.mjs +4 -4
- package/package.json +1 -1
- package/dist/cli/auth-4DBOZZDX.js +0 -41
- package/dist/cli/describe-2ENX4O3U.js +0 -48
- package/dist/cli/git-LUW3GBSD.js +0 -25
- package/dist/cli/search-PXFM3MGW.js +0 -32
- package/dist/cli/skills-UYNRYDDI.js +0 -31
- package/dist/cli/tools-OBESOBG7.js +0 -55
- package/dist/cli/update-2VMXTKBN.js +0 -33
|
@@ -1058,7 +1058,9 @@ Output (JSON, printed when the run ends):
|
|
|
1058
1058
|
datasets[] {datasetId, name, storage {schema, table}}, and actions holding
|
|
1059
1059
|
exact follow-up commands: getRunCmd, getFullRunCmd, getBillingCmd,
|
|
1060
1060
|
getLogsCmd, exportDatasetCmds[], queryTableSqlCmds[]. Rows are not in this
|
|
1061
|
-
payload.
|
|
1061
|
+
payload. When the play's rateLimit window is held, no run starts: the
|
|
1062
|
+
package is the latest run plus rateLimited {latestRunId, nextAllowedAt,
|
|
1063
|
+
message}. Progress lines are printed while it waits; the JSON is the last
|
|
1062
1064
|
thing printed. To parse it, add --json: progress is suppressed and stdout
|
|
1063
1065
|
is one JSON document.
|
|
1064
1066
|
]]
|
|
@@ -1069,7 +1071,9 @@ Output:
|
|
|
1069
1071
|
rowOutcomes, warnings, datasets[] {tableNamespace, sqlQualifiedTableName,
|
|
1070
1072
|
actions}, and next {inspect, full, billing, logs}, each naming the MCP call
|
|
1071
1073
|
for that follow-up. Pass a dataset's tableNamespace as table_namespace to
|
|
1072
|
-
deepline_read_play_output for its rows; rows are not in this payload.
|
|
1074
|
+
deepline_read_play_output for its rows; rows are not in this payload. A
|
|
1075
|
+
held rateLimit window starts no run and returns the latest run with
|
|
1076
|
+
rateLimited {latestRunId, nextAllowedAt, message}.
|
|
1073
1077
|
]]
|
|
1074
1078
|
Cost:
|
|
1075
1079
|
Spends Deepline credits through the play's tool calls. Validation errors
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PlayClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MV6HL67R.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FVGT5EBA.mjs";
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DV4V5IWI.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EYKMITTY.mjs";
|
|
11
11
|
import {
|
|
12
12
|
addJsonNotice,
|
|
13
13
|
isJsonOutputMode
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-OYHCMKZM.mjs";
|
|
15
15
|
import {
|
|
16
16
|
resolveApiKeyForBaseUrl
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-FVGT5EBA.mjs";
|
|
18
18
|
import {
|
|
19
19
|
SDK_VERSION
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ZMJOSD7R.mjs";
|
|
21
21
|
|
|
22
22
|
// src/cli/compatibility-catalog.ts
|
|
23
23
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkYRM5TPXLjs = require('./chunk-YRM5TPXL.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -22,12 +22,12 @@ var _chunk57F5VKHVjs = require('./chunk-57F5VKHV.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkMLQJVAVSjs = require('./chunk-MLQJVAVS.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkDK5Y5BD3js = require('./chunk-DK5Y5BD3.js');
|
|
31
31
|
|
|
32
32
|
// src/cli/commands/auth.ts
|
|
33
33
|
|
|
@@ -54,7 +54,7 @@ function statusBannerLine(value) {
|
|
|
54
54
|
return `Service notice: ${banner.message}`;
|
|
55
55
|
}
|
|
56
56
|
function envFilePath(baseUrl) {
|
|
57
|
-
return
|
|
57
|
+
return _chunkMLQJVAVSjs.hostEnvFilePath.call(void 0, baseUrl);
|
|
58
58
|
}
|
|
59
59
|
function normalizeAuthScope(value) {
|
|
60
60
|
if (!value || value === "global") return "global";
|
|
@@ -67,7 +67,7 @@ function parseAuthScope(args) {
|
|
|
67
67
|
}
|
|
68
68
|
function pendingClaimPath(baseUrl, scope) {
|
|
69
69
|
if (scope === "folder") {
|
|
70
|
-
const target =
|
|
70
|
+
const target = _chunkMLQJVAVSjs.resolveProjectPinTarget.call(void 0, );
|
|
71
71
|
if (!target.ok) {
|
|
72
72
|
throw new Error(
|
|
73
73
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -77,10 +77,10 @@ function pendingClaimPath(baseUrl, scope) {
|
|
|
77
77
|
}
|
|
78
78
|
return _path.join.call(void 0, target.dir, ".deepline", "setup", "pending-auth.json");
|
|
79
79
|
}
|
|
80
|
-
return `${
|
|
80
|
+
return `${_chunkMLQJVAVSjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
|
|
81
81
|
}
|
|
82
82
|
function legacyPendingClaimTokenPath(baseUrl) {
|
|
83
|
-
return `${
|
|
83
|
+
return `${_chunkMLQJVAVSjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
|
|
84
84
|
}
|
|
85
85
|
function savePendingClaim(baseUrl, claim) {
|
|
86
86
|
const filePath = pendingClaimPath(baseUrl, claim.scope);
|
|
@@ -182,21 +182,21 @@ function parseRegisterWaitMode(args) {
|
|
|
182
182
|
function shouldWaitForRegisterClaim(mode) {
|
|
183
183
|
if (mode === "yes") return true;
|
|
184
184
|
if (mode === "no") return false;
|
|
185
|
-
return
|
|
185
|
+
return _chunkDK5Y5BD3js.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
186
186
|
}
|
|
187
187
|
function saveEnvValues(values, baseUrl, scope) {
|
|
188
188
|
const filtered = {
|
|
189
|
-
...values[
|
|
190
|
-
...values[
|
|
191
|
-
...values[
|
|
192
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
189
|
+
...values[_chunkMLQJVAVSjs.HOST_URL_ENV] ? { [_chunkMLQJVAVSjs.HOST_URL_ENV]: values[_chunkMLQJVAVSjs.HOST_URL_ENV] } : {},
|
|
190
|
+
...values[_chunkMLQJVAVSjs.API_KEY_ENV] ? { [_chunkMLQJVAVSjs.API_KEY_ENV]: values[_chunkMLQJVAVSjs.API_KEY_ENV] } : {},
|
|
191
|
+
...values[_chunkMLQJVAVSjs.ACTIVE_ORG_ID_ENV] ? { [_chunkMLQJVAVSjs.ACTIVE_ORG_ID_ENV]: values[_chunkMLQJVAVSjs.ACTIVE_ORG_ID_ENV] } : {},
|
|
192
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkMLQJVAVSjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkMLQJVAVSjs.ACTIVE_ORG_NAME_ENV]: values[_chunkMLQJVAVSjs.ACTIVE_ORG_NAME_ENV] } : {},
|
|
193
193
|
// An explicit empty list must reach the store: it clears a stale line.
|
|
194
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
194
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkMLQJVAVSjs.FEATURES_ENV) ? { [_chunkMLQJVAVSjs.FEATURES_ENV]: values[_chunkMLQJVAVSjs.FEATURES_ENV] } : {}
|
|
195
195
|
};
|
|
196
196
|
if (scope === "folder") {
|
|
197
|
-
|
|
197
|
+
_chunkMLQJVAVSjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
|
|
198
198
|
} else {
|
|
199
|
-
|
|
199
|
+
_chunkMLQJVAVSjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
function activeOrgEnvValues(data) {
|
|
@@ -204,21 +204,21 @@ function activeOrgEnvValues(data) {
|
|
|
204
204
|
if (!orgId) return {};
|
|
205
205
|
const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
|
|
206
206
|
return {
|
|
207
|
-
[
|
|
208
|
-
[
|
|
209
|
-
...
|
|
207
|
+
[_chunkMLQJVAVSjs.ACTIVE_ORG_ID_ENV]: orgId,
|
|
208
|
+
[_chunkMLQJVAVSjs.ACTIVE_ORG_NAME_ENV]: orgName,
|
|
209
|
+
..._chunkMLQJVAVSjs.featureEnvValues.call(void 0, data)
|
|
210
210
|
};
|
|
211
211
|
}
|
|
212
212
|
async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
|
|
213
213
|
const headers = {
|
|
214
214
|
"Content-Type": "application/json",
|
|
215
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
215
|
+
"User-Agent": `deepline-ts-sdk/${_chunkDK5Y5BD3js.SDK_VERSION}`,
|
|
216
216
|
"X-Deepline-Client-Family": "sdk",
|
|
217
217
|
"X-Deepline-CLI-Family": "sdk",
|
|
218
|
-
"X-Deepline-Agent-Runtime":
|
|
219
|
-
"X-Deepline-CLI-Version":
|
|
220
|
-
"X-Deepline-SDK-Version":
|
|
221
|
-
"X-Deepline-API-Contract":
|
|
218
|
+
"X-Deepline-Agent-Runtime": _chunkDK5Y5BD3js.detectAgentRuntime.call(void 0, ),
|
|
219
|
+
"X-Deepline-CLI-Version": _chunkDK5Y5BD3js.SDK_VERSION,
|
|
220
|
+
"X-Deepline-SDK-Version": _chunkDK5Y5BD3js.SDK_VERSION,
|
|
221
|
+
"X-Deepline-API-Contract": _chunkDK5Y5BD3js.SDK_API_CONTRACT
|
|
222
222
|
};
|
|
223
223
|
if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
|
|
224
224
|
const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
|
|
@@ -264,7 +264,7 @@ async function readStatusBanner(baseUrl) {
|
|
|
264
264
|
return _optionalChain([response, 'optionalAccess', _11 => _11.status]) === 200 ? _nullishCoalesce(response.data.banner, () => ( null)) : null;
|
|
265
265
|
}
|
|
266
266
|
async function reportSetupCompleted(input) {
|
|
267
|
-
const apiKey = input.authScope === "folder" ?
|
|
267
|
+
const apiKey = input.authScope === "folder" ? _chunkMLQJVAVSjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkMLQJVAVSjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
268
268
|
if (!apiKey) return;
|
|
269
269
|
try {
|
|
270
270
|
await httpJson(
|
|
@@ -361,7 +361,7 @@ async function printClaimSuccessBanner(baseUrl, apiKey, statusData) {
|
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
363
|
async function handleRegister(args) {
|
|
364
|
-
const baseUrl =
|
|
364
|
+
const baseUrl = _chunkMLQJVAVSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
365
365
|
let orgName = "";
|
|
366
366
|
let orgId = "";
|
|
367
367
|
let agentName = "";
|
|
@@ -416,19 +416,19 @@ async function handleRegister(args) {
|
|
|
416
416
|
});
|
|
417
417
|
saveEnvValues(
|
|
418
418
|
{
|
|
419
|
-
[
|
|
419
|
+
[_chunkMLQJVAVSjs.HOST_URL_ENV]: baseUrl
|
|
420
420
|
},
|
|
421
421
|
baseUrl,
|
|
422
422
|
authScope
|
|
423
423
|
);
|
|
424
424
|
}
|
|
425
425
|
if (claimUrl) {
|
|
426
|
-
const shouldOpen = waitMode !== "no" &&
|
|
426
|
+
const shouldOpen = waitMode !== "no" && _chunkDK5Y5BD3js.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
427
427
|
console.log(
|
|
428
428
|
shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
|
|
429
429
|
);
|
|
430
430
|
console.log(` ${claimUrl}`);
|
|
431
|
-
if (shouldOpen)
|
|
431
|
+
if (shouldOpen) _chunkYRM5TPXLjs.openInBrowser.call(void 0, claimUrl);
|
|
432
432
|
}
|
|
433
433
|
if (data.cli_message) {
|
|
434
434
|
console.log(String(data.cli_message));
|
|
@@ -471,8 +471,8 @@ async function handleRegister(args) {
|
|
|
471
471
|
if (apiKey) {
|
|
472
472
|
saveEnvValues(
|
|
473
473
|
{
|
|
474
|
-
[
|
|
475
|
-
[
|
|
474
|
+
[_chunkMLQJVAVSjs.HOST_URL_ENV]: baseUrl,
|
|
475
|
+
[_chunkMLQJVAVSjs.API_KEY_ENV]: apiKey,
|
|
476
476
|
...activeOrgEnvValues(statusData)
|
|
477
477
|
},
|
|
478
478
|
baseUrl,
|
|
@@ -494,7 +494,7 @@ async function handleRegister(args) {
|
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
496
|
async function handleWait(args) {
|
|
497
|
-
const baseUrl =
|
|
497
|
+
const baseUrl = _chunkMLQJVAVSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
498
498
|
let timeoutSeconds = 300;
|
|
499
499
|
let requestedScope;
|
|
500
500
|
if (args.includes("--auth-scope")) {
|
|
@@ -518,7 +518,7 @@ async function handleWait(args) {
|
|
|
518
518
|
const authScope = resumed.scope;
|
|
519
519
|
const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _12 => _12.claimToken]), () => ( ""));
|
|
520
520
|
if (!pendingClaim) {
|
|
521
|
-
const scopedApiKey = authScope === "folder" ?
|
|
521
|
+
const scopedApiKey = authScope === "folder" ? _chunkMLQJVAVSjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkMLQJVAVSjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
522
522
|
if (scopedApiKey) {
|
|
523
523
|
console.log("Already connected.");
|
|
524
524
|
return EXIT_OK;
|
|
@@ -561,8 +561,8 @@ async function handleWait(args) {
|
|
|
561
561
|
if (apiKey) {
|
|
562
562
|
saveEnvValues(
|
|
563
563
|
{
|
|
564
|
-
[
|
|
565
|
-
[
|
|
564
|
+
[_chunkMLQJVAVSjs.HOST_URL_ENV]: baseUrl,
|
|
565
|
+
[_chunkMLQJVAVSjs.API_KEY_ENV]: apiKey,
|
|
566
566
|
...activeOrgEnvValues(data)
|
|
567
567
|
},
|
|
568
568
|
baseUrl,
|
|
@@ -586,8 +586,8 @@ async function handleWait(args) {
|
|
|
586
586
|
return EXIT_AUTH;
|
|
587
587
|
}
|
|
588
588
|
async function authStatusLine(timeoutMs = 3e3) {
|
|
589
|
-
const baseUrl =
|
|
590
|
-
const apiKey =
|
|
589
|
+
const baseUrl = _chunkMLQJVAVSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
590
|
+
const apiKey = _chunkMLQJVAVSjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
591
591
|
if (!apiKey) return `Auth: not connected (${baseUrl})`;
|
|
592
592
|
try {
|
|
593
593
|
const { status, data } = await httpJson(
|
|
@@ -610,9 +610,9 @@ async function authStatusLine(timeoutMs = 3e3) {
|
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
612
|
async function handleStatus(args) {
|
|
613
|
-
const baseUrl =
|
|
613
|
+
const baseUrl = _chunkMLQJVAVSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
614
614
|
const reveal = args.includes("--reveal");
|
|
615
|
-
const jsonOutput =
|
|
615
|
+
const jsonOutput = _chunkYRM5TPXLjs.argsWantJson.call(void 0, args);
|
|
616
616
|
const hasExplicitAuthScope = args.includes("--auth-scope");
|
|
617
617
|
let authScope = null;
|
|
618
618
|
if (hasExplicitAuthScope) {
|
|
@@ -653,14 +653,14 @@ async function handleStatus(args) {
|
|
|
653
653
|
};
|
|
654
654
|
hostLines.push(`Host: ${baseUrl} (unreachable)`);
|
|
655
655
|
}
|
|
656
|
-
const apiKey = authScope === "folder" ?
|
|
656
|
+
const apiKey = authScope === "folder" ? _chunkMLQJVAVSjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkMLQJVAVSjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkMLQJVAVSjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
657
657
|
if (!apiKey) {
|
|
658
658
|
const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
|
|
659
659
|
baseUrl,
|
|
660
660
|
_nullishCoalesce(authScope, () => ( void 0))
|
|
661
661
|
);
|
|
662
662
|
if (pendingClaim) {
|
|
663
|
-
|
|
663
|
+
_chunkYRM5TPXLjs.printCommandEnvelope.call(void 0,
|
|
664
664
|
{
|
|
665
665
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
666
666
|
status: "pending",
|
|
@@ -681,7 +681,7 @@ async function handleStatus(args) {
|
|
|
681
681
|
);
|
|
682
682
|
return EXIT_OK;
|
|
683
683
|
}
|
|
684
|
-
|
|
684
|
+
_chunkYRM5TPXLjs.printCommandEnvelope.call(void 0,
|
|
685
685
|
{
|
|
686
686
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
687
687
|
status: "not connected",
|
|
@@ -714,7 +714,7 @@ async function handleStatus(args) {
|
|
|
714
714
|
}
|
|
715
715
|
);
|
|
716
716
|
if (status === 401 || status === 403) {
|
|
717
|
-
|
|
717
|
+
_chunkYRM5TPXLjs.printCommandEnvelope.call(void 0,
|
|
718
718
|
{
|
|
719
719
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
720
720
|
status: "unauthorized",
|
|
@@ -741,7 +741,7 @@ async function handleStatus(args) {
|
|
|
741
741
|
console.error(`Auth status error (status ${status}).`);
|
|
742
742
|
return EXIT_SERVER;
|
|
743
743
|
}
|
|
744
|
-
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (
|
|
744
|
+
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkMLQJVAVSjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
|
|
745
745
|
clearSatisfiedPendingClaim(
|
|
746
746
|
baseUrl,
|
|
747
747
|
resolvedAuthScope,
|
|
@@ -769,28 +769,28 @@ async function handleStatus(args) {
|
|
|
769
769
|
if (apiKeyResp) {
|
|
770
770
|
saveEnvValues(
|
|
771
771
|
{
|
|
772
|
-
[
|
|
773
|
-
[
|
|
772
|
+
[_chunkMLQJVAVSjs.HOST_URL_ENV]: baseUrl,
|
|
773
|
+
[_chunkMLQJVAVSjs.API_KEY_ENV]: apiKeyResp,
|
|
774
774
|
...activeOrgEnvValues(data)
|
|
775
775
|
},
|
|
776
776
|
baseUrl,
|
|
777
777
|
resolvedAuthScope
|
|
778
778
|
);
|
|
779
779
|
if (resolvedAuthScope === "folder") {
|
|
780
|
-
const target =
|
|
780
|
+
const target = _chunkMLQJVAVSjs.resolveProjectPinTarget.call(void 0, );
|
|
781
781
|
savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
|
|
782
782
|
} else {
|
|
783
783
|
savedApiKeyPath = envFilePath(baseUrl);
|
|
784
784
|
}
|
|
785
785
|
}
|
|
786
|
-
} else if (resolvedAuthScope === "folder" ||
|
|
787
|
-
saveEnvValues(
|
|
786
|
+
} else if (resolvedAuthScope === "folder" || _chunkMLQJVAVSjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
|
|
787
|
+
saveEnvValues(_chunkMLQJVAVSjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
|
|
788
788
|
}
|
|
789
|
-
|
|
789
|
+
_chunkYRM5TPXLjs.printCommandEnvelope.call(void 0,
|
|
790
790
|
{
|
|
791
791
|
...payload,
|
|
792
|
-
...
|
|
793
|
-
command_context:
|
|
792
|
+
..._chunkDK5Y5BD3js.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
|
|
793
|
+
command_context: _chunkMLQJVAVSjs.resolveCliCommandContext.call(void 0,
|
|
794
794
|
{ baseUrl, apiKey },
|
|
795
795
|
resolvedAuthScope
|
|
796
796
|
)
|
|
@@ -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 _chunk5QWGL2QOjs = require('./chunk-5QWGL2QO.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkFX3QM6WNjs = require('./chunk-FX3QM6WN.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -14,10 +14,10 @@ var _chunkT5GRG37Bjs = require('./chunk-T5GRG37B.js');
|
|
|
14
14
|
var _chunkIAYSWZDJjs = require('./chunk-IAYSWZDJ.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkVDRGX2XLjs = require('./chunk-VDRGX2XL.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkYRM5TPXLjs = require('./chunk-YRM5TPXL.js');
|
|
21
21
|
|
|
22
22
|
// src/cli/commands/describe.ts
|
|
23
23
|
var _fs = require('fs');
|
|
@@ -26,16 +26,16 @@ function nothingNamed(name) {
|
|
|
26
26
|
return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
|
|
27
27
|
}
|
|
28
28
|
function findNamed2(name, options) {
|
|
29
|
-
return _chunkT5GRG37Bjs.findNamed.call(void 0, name, options, _chunkT5GRG37Bjs.describeLookupsFor.call(void 0, new (0,
|
|
29
|
+
return _chunkT5GRG37Bjs.findNamed.call(void 0, name, options, _chunkT5GRG37Bjs.describeLookupsFor.call(void 0, new (0, _chunkVDRGX2XLjs.DeeplineClient)()));
|
|
30
30
|
}
|
|
31
31
|
async function describeAnything(name, options, onMissing) {
|
|
32
|
-
const client = new (0,
|
|
32
|
+
const client = new (0, _chunkVDRGX2XLjs.DeeplineClient)();
|
|
33
33
|
const lookups = _chunkT5GRG37Bjs.describeLookupsFor.call(void 0, client);
|
|
34
34
|
const outcome = await _chunkT5GRG37Bjs.describeName.call(void 0, name, options, {
|
|
35
35
|
...lookups,
|
|
36
36
|
// `tools describe` has already fetched the tool for its compatibility check.
|
|
37
37
|
tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
|
|
38
|
-
seedStarterScript:
|
|
38
|
+
seedStarterScript: _chunk5QWGL2QOjs.seedToolListScript
|
|
39
39
|
});
|
|
40
40
|
if (outcome.status === "missing") {
|
|
41
41
|
if (onMissing) return onMissing();
|
|
@@ -60,18 +60,18 @@ function deliver(envelope, lines, { json, out }) {
|
|
|
60
60
|
` : text;
|
|
61
61
|
_fs.writeFileSync.call(void 0, path, content);
|
|
62
62
|
const bytes = Buffer.byteLength(content);
|
|
63
|
-
|
|
63
|
+
_chunkYRM5TPXLjs.printCommandEnvelope.call(void 0,
|
|
64
64
|
{ path, bytes },
|
|
65
65
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
66
66
|
` }
|
|
67
67
|
);
|
|
68
68
|
return 0;
|
|
69
69
|
}
|
|
70
|
-
|
|
70
|
+
_chunkYRM5TPXLjs.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
71
71
|
return 0;
|
|
72
72
|
}
|
|
73
73
|
function registerDescribeCommand(program) {
|
|
74
|
-
|
|
74
|
+
_chunkFX3QM6WNjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
|
|
75
75
|
"Describe anything search returns: a tool, monitor type, or play."
|
|
76
76
|
).addHelpText(
|
|
77
77
|
"after",
|
|
@@ -16,12 +16,12 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
|
16
16
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkG6RQXAJ2js = require('./chunk-G6RQXAJ2.js');
|
|
20
20
|
|
|
21
21
|
// src/version.ts
|
|
22
|
-
var SDK_VERSION =
|
|
23
|
-
var SDK_API_MAJOR =
|
|
24
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
22
|
+
var SDK_VERSION = _chunkG6RQXAJ2js.SDK_RELEASE.version;
|
|
23
|
+
var SDK_API_MAJOR = _chunkG6RQXAJ2js.SDK_RELEASE.contracts.api.currentMajor;
|
|
24
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkG6RQXAJ2js.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
25
25
|
|
|
26
26
|
// src/agent-runtime.ts
|
|
27
27
|
var _os = require('os');
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RYGJWMWL.mjs";
|
|
5
5
|
import {
|
|
6
6
|
runSkillsCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IPFUDUSY.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveShellSpawn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EYKMITTY.mjs";
|
|
11
11
|
import {
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OYHCMKZM.mjs";
|
|
14
14
|
import {
|
|
15
15
|
autoDetectBaseUrl
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FVGT5EBA.mjs";
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OYHCMKZM.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZMJOSD7R.mjs";
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
import {
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkJ2NYCUTKjs = require('./chunk-J2NYCUTK.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkJDMR33HSjs = require('./chunk-JDMR33HS.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkYRM5TPXLjs = require('./chunk-YRM5TPXL.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
@@ -579,7 +579,7 @@ function parseInputFlagValue(raw) {
|
|
|
579
579
|
return raw;
|
|
580
580
|
}
|
|
581
581
|
function parsePlayRunOptions(args, initialInput = null) {
|
|
582
|
-
const selection =
|
|
582
|
+
const selection = _chunkYRM5TPXLjs.parseJsonFields.call(void 0, args, "run");
|
|
583
583
|
args = selection.args;
|
|
584
584
|
const usage = "Usage: deepline plays run <play-name> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run <play-file.ts> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --file <play-file.ts> [--input '{...}'] [--profile <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --name <name> [--input '{...}'] [--profile <id>] [--live|--latest|--revision-id <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--json] [--full] [--<input> value]\n Runs use the Absurd CJS runtime.\n --header '<name>: <value>' may repeat; each is sent on every request for this run.\n Unknown --<input> value flags, such as --limit 5, are passed into play input.\nRun `deepline plays run --help` for idempotent call caching and deepline.dataset guidance.";
|
|
585
585
|
let filePath = null;
|
|
@@ -591,7 +591,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
591
591
|
let revisionSelector = null;
|
|
592
592
|
const watch = !args.includes("--no-wait");
|
|
593
593
|
const dryRun = args.includes("--dry-run");
|
|
594
|
-
let jsonOutput = dryRun ?
|
|
594
|
+
let jsonOutput = dryRun ? _chunkYRM5TPXLjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkYRM5TPXLjs.argsWantJson.call(void 0, args);
|
|
595
595
|
const fullJson = args.includes("--full");
|
|
596
596
|
const force = args.includes("--force");
|
|
597
597
|
const forceToolRefresh = args.includes("--force-tool-refresh");
|
|
@@ -654,7 +654,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
654
654
|
"--log-level requires one of: debug, info, warn, error."
|
|
655
655
|
);
|
|
656
656
|
}
|
|
657
|
-
const parsed =
|
|
657
|
+
const parsed = _chunkJ2NYCUTKjs.parseLogLevel.call(void 0, value);
|
|
658
658
|
if (!parsed) {
|
|
659
659
|
throw new Error(
|
|
660
660
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -778,12 +778,12 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
778
778
|
}
|
|
779
779
|
if (arg === "--debug" && args[index + 1] && !args[index + 1].startsWith("--")) {
|
|
780
780
|
input ??= {};
|
|
781
|
-
|
|
781
|
+
_chunkJDMR33HSjs.setDottedInputValue.call(void 0, input, "debug", parseInputFlagValue(args[++index]));
|
|
782
782
|
continue;
|
|
783
783
|
}
|
|
784
784
|
if (arg.startsWith("--debug=")) {
|
|
785
785
|
input ??= {};
|
|
786
|
-
|
|
786
|
+
_chunkJDMR33HSjs.setDottedInputValue.call(void 0,
|
|
787
787
|
input,
|
|
788
788
|
"debug",
|
|
789
789
|
parseInputFlagValue(arg.slice("--debug=".length))
|
|
@@ -811,7 +811,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
811
811
|
if (arg.startsWith("--")) {
|
|
812
812
|
const { path, value } = parseInputFieldFlag(arg, args[index + 1]);
|
|
813
813
|
input ??= {};
|
|
814
|
-
|
|
814
|
+
_chunkJDMR33HSjs.setDottedInputValue.call(void 0, input, path, parseInputFlagValue(value));
|
|
815
815
|
if (!arg.includes("=")) {
|
|
816
816
|
index += 1;
|
|
817
817
|
}
|
|
@@ -900,7 +900,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
900
900
|
let initialInput = options.input === void 0 ? null : parseJsonInput(options.input);
|
|
901
901
|
if (typeof options.debug === "string") {
|
|
902
902
|
initialInput ??= {};
|
|
903
|
-
|
|
903
|
+
_chunkJDMR33HSjs.setDottedInputValue.call(void 0,
|
|
904
904
|
initialInput,
|
|
905
905
|
"debug",
|
|
906
906
|
parseInputFlagValue(options.debug)
|
|
@@ -972,7 +972,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
972
972
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
973
973
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
974
974
|
);
|
|
975
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
975
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkJ2NYCUTKjs.parseLogLevel.call(void 0, options.logLevel);
|
|
976
976
|
if (!logLevel)
|
|
977
977
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
978
978
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -986,13 +986,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
986
986
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
987
987
|
logLevel = "debug";
|
|
988
988
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
989
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
990
|
-
[...fullJson ? ["--full"] : [], ...
|
|
989
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunkYRM5TPXLjs.parseJsonFields.call(void 0,
|
|
990
|
+
[...fullJson ? ["--full"] : [], ..._chunkYRM5TPXLjs.jsonFieldArgs.call(void 0, options.json)],
|
|
991
991
|
"run"
|
|
992
992
|
).fields;
|
|
993
993
|
const watch = options.wait === false ? false : base.watch;
|
|
994
994
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
995
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
995
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunkYRM5TPXLjs.argsWantJson.call(void 0, []) : explicitJson;
|
|
996
996
|
const verboseLogs = Boolean(
|
|
997
997
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
998
998
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getActiveCliProgress
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EHVVDHNU.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_SKILL_AGENTS,
|
|
6
6
|
KNOWN_SKILL_AGENTS,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
sdkCliStateDirPath,
|
|
13
13
|
skillsAgentPathSegment,
|
|
14
14
|
writeSdkSkillsLocalVersion
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FVGT5EBA.mjs";
|
|
16
16
|
import {
|
|
17
17
|
SDK_API_CONTRACT,
|
|
18
18
|
SDK_API_MAJOR,
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
agentSessionIdFromEnvironment,
|
|
21
21
|
deploymentProtectionHeaders,
|
|
22
22
|
detectAgentRuntime
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-ZMJOSD7R.mjs";
|
|
24
24
|
import {
|
|
25
25
|
DeeplineError
|
|
26
26
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
27
27
|
import {
|
|
28
28
|
SDK_RELEASE
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-3PT2HJKC.mjs";
|
|
30
30
|
|
|
31
31
|
// src/compat.ts
|
|
32
32
|
import { randomUUID } from "crypto";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZAF54BQK.mjs";
|
|
4
4
|
import {
|
|
5
5
|
checkSdkCompatibility,
|
|
6
6
|
enforceSdkCompatibilityResponse,
|
|
7
7
|
flushDeferredSkillsSyncNotices
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EYKMITTY.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|