deepline 0.3.512 → 0.3.514
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/completed-answer.ts +134 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +25 -31
- package/dist/bundling-sources/shared_libs/play-runtime/durable-call-policy.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +33 -2
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +6 -4
- package/dist/cli/{artifacts-YSYWQFQQ.mjs → artifacts-GNFL5LY4.mjs} +6 -6
- package/dist/cli/{artifacts-5IGM3EYP.js → artifacts-OZRO4LHT.js} +18 -18
- package/dist/cli/{auth-4MVWCUXS.mjs → auth-53EDAX7Y.mjs} +5 -5
- package/dist/cli/auth-SM5GLO45.js +43 -0
- package/dist/cli/{billing-OYYHWNVS.js → billing-B6V3FELL.js} +82 -82
- package/dist/cli/{billing-SZXRENPC.mjs → billing-ZMX2V5X3.mjs} +7 -7
- package/dist/cli/{chunk-ZZ7SVWKR.js → chunk-2CTTSNFE.js} +4 -4
- package/dist/cli/{chunk-IMC2HQ6V.js → chunk-2RCZCWPO.js} +6 -6
- package/dist/cli/{chunk-FJPJ6SO3.mjs → chunk-53F6JDQ3.mjs} +2 -2
- package/dist/cli/{chunk-RXZRZEW7.mjs → chunk-54IH5U3I.mjs} +5 -5
- package/dist/cli/{chunk-HCMFRAYT.js → chunk-55WBE4UK.js} +26 -26
- package/dist/cli/{chunk-JU35QU3Z.js → chunk-5LBXLQRW.js} +7 -7
- package/dist/cli/{chunk-DJ4FD5DR.mjs → chunk-6FYGFIXD.mjs} +2 -2
- package/dist/cli/{chunk-MQ5GBB7V.mjs → chunk-6OIRN4PC.mjs} +1 -1
- package/dist/cli/{chunk-TNQ5MF6K.mjs → chunk-6SSISVXD.mjs} +1 -1
- package/dist/cli/{chunk-JDD6OLWN.mjs → chunk-753MZFDF.mjs} +3 -3
- package/dist/cli/{chunk-YJN55ZWG.mjs → chunk-76M3DL5G.mjs} +1 -1
- package/dist/cli/{chunk-W7DAWILZ.js → chunk-7KD4IYLA.js} +16 -16
- package/dist/cli/{chunk-JH7JISQ2.mjs → chunk-7MBI2OLW.mjs} +1 -1
- package/dist/cli/{chunk-HA5NSCTH.mjs → chunk-7ZCXQDOQ.mjs} +2 -2
- package/dist/cli/{chunk-L7CAOWHY.js → chunk-A253CMOI.js} +3 -3
- package/dist/cli/{chunk-Q72Q3ZWB.js → chunk-BBDWIUJA.js} +9 -9
- package/dist/cli/{chunk-FF25PDQ2.js → chunk-C24VEYSP.js} +21 -5
- package/dist/cli/{chunk-PJCPFF7J.js → chunk-CUMA6DE2.js} +14 -14
- package/dist/cli/{chunk-YNMHIJC5.mjs → chunk-DBBLPDXK.mjs} +1 -1
- package/dist/cli/{chunk-GJMIW4Q6.mjs → chunk-DLYWOHO4.mjs} +1 -1
- package/dist/cli/{chunk-EQAKPIGI.mjs → chunk-DMBCJFGY.mjs} +2 -2
- package/dist/cli/{chunk-XKFWY4IK.mjs → chunk-EO52BKGA.mjs} +13 -12
- package/dist/cli/{chunk-I6OK54YK.mjs → chunk-EVTD3ELD.mjs} +5 -5
- package/dist/cli/{chunk-4ZDHGAE6.js → chunk-FPWOEK7G.js} +2 -2
- package/dist/cli/{chunk-AATUAFD2.mjs → chunk-G6A7CGFV.mjs} +2 -2
- package/dist/cli/{chunk-KBM5T6UV.js → chunk-G6PUQQJP.js} +5 -5
- package/dist/cli/{chunk-LYOWQKGN.mjs → chunk-H53YG6QG.mjs} +1 -1
- package/dist/cli/{chunk-MTSHUN2R.mjs → chunk-H7L5MS5E.mjs} +1 -1
- package/dist/cli/{chunk-77DPQI6W.mjs → chunk-HJ5B67S3.mjs} +21 -5
- package/dist/cli/{chunk-P3RYPSOQ.mjs → chunk-ILITNKGM.mjs} +6 -6
- package/dist/cli/{chunk-T3SUWKUT.mjs → chunk-IZJGOMCW.mjs} +5 -5
- package/dist/cli/{chunk-WDCOUJQ5.js → chunk-JC3ABOZP.js} +21 -21
- package/dist/cli/{chunk-VZN6D23P.js → chunk-LV2DGEJ3.js} +7 -7
- package/dist/cli/{chunk-V6FQRUPJ.js → chunk-MF7ZVWJK.js} +41 -41
- package/dist/cli/{chunk-ZVYMGTZ7.mjs → chunk-MJIS4XAZ.mjs} +4 -4
- package/dist/cli/{chunk-O24VWLOY.js → chunk-MQK5SY5N.js} +16 -16
- package/dist/cli/{chunk-OU6AK63V.js → chunk-NXT52SIV.js} +2 -2
- package/dist/cli/{chunk-BP4XEO6Z.js → chunk-OQ4JV3IW.js} +1 -1
- package/dist/cli/{chunk-AVYI522S.js → chunk-QSFAUGFK.js} +5 -5
- package/dist/cli/{chunk-4QR64X2S.js → chunk-R5PJ6XZI.js} +10 -10
- package/dist/cli/{chunk-5XLU47DG.mjs → chunk-RFN7OKT2.mjs} +1 -1
- package/dist/cli/{chunk-4DSRBHN6.js → chunk-RLVSWAWB.js} +44 -44
- package/dist/cli/{chunk-3INAN6EK.mjs → chunk-RMRZ4BC4.mjs} +3 -3
- package/dist/cli/{chunk-2R6M62UO.mjs → chunk-RVMV4MXO.mjs} +2 -2
- package/dist/cli/{chunk-RR6G6ZCT.js → chunk-T4NQ2ZOH.js} +11 -11
- package/dist/cli/{chunk-7U3WY2F3.js → chunk-TG4IMWAL.js} +53 -53
- package/dist/cli/{chunk-VGCNLFER.js → chunk-TZS4G7CS.js} +2 -2
- package/dist/cli/{chunk-TKN2TRW5.js → chunk-VLIDBQYL.js} +3 -3
- package/dist/cli/{chunk-2BS6BRGH.mjs → chunk-W3TN352L.mjs} +2 -2
- package/dist/cli/{chunk-JKLFRDQ6.js → chunk-WP3ULMRU.js} +6 -6
- package/dist/cli/{chunk-ZLHIQU2G.js → chunk-Y2RIMVEM.js} +99 -98
- package/dist/cli/{chunk-32UMZXCZ.mjs → chunk-Z5WO6IBV.mjs} +5 -5
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-YR2E5HNM.js → csv-2BLYUV2G.js} +13 -13
- package/dist/cli/{csv-AY4KT3NZ.mjs → csv-ONKAMLL4.mjs} +4 -4
- package/dist/cli/{db-IMYD3OCM.mjs → db-4GVSGAXL.mjs} +6 -6
- package/dist/cli/{db-YKV6564I.js → db-YKT6LEQ3.js} +27 -27
- package/dist/cli/describe-KPGQP4LH.js +50 -0
- package/dist/cli/{describe-72GI2Q6T.mjs → describe-PRT2WQMS.mjs} +18 -18
- package/dist/cli/{executions-2YO6KIP3.mjs → executions-7OSL25KJ.mjs} +6 -6
- package/dist/cli/{executions-OSNL5CSU.js → executions-VFCU5NGH.js} +8 -8
- package/dist/cli/{feedback-WSA7YTKS.js → feedback-ERTOLEC4.js} +10 -10
- package/dist/cli/{feedback-SYDNAT62.mjs → feedback-RPZELEA5.mjs} +5 -5
- package/dist/cli/git-U353JURQ.js +25 -0
- package/dist/cli/{git-WBH7N3EF.mjs → git-XKRQZ4A6.mjs} +5 -5
- package/dist/cli/index.js +145 -145
- package/dist/cli/index.mjs +44 -44
- package/dist/cli/{legacy-noops-BZPLWY5C.js → legacy-noops-HG3M5HGZ.js} +9 -9
- package/dist/cli/{legacy-noops-USZM4ZXF.mjs → legacy-noops-MZCFS2FQ.mjs} +6 -6
- package/dist/cli/{monitors-6HOZMLEV.mjs → monitors-GBO5XAEZ.mjs} +7 -7
- package/dist/cli/{monitors-XHXAMMYC.js → monitors-MESMMU5P.js} +100 -100
- package/dist/cli/{org-LT3DICB4.mjs → org-DJRNWIPO.mjs} +6 -6
- package/dist/cli/{org-BAAOAZF3.js → org-EZPREEWH.js} +72 -72
- package/dist/cli/{pages-MOCSTZZQ.mjs → pages-36BHVOFL.mjs} +6 -6
- package/dist/cli/{pages-7NP4PKLA.js → pages-ACI7VV6I.js} +18 -18
- package/dist/cli/{play-CGUL22GL.js → play-KCLLAGWR.js} +317 -317
- package/dist/cli/{play-MGJ7B7RL.mjs → play-SUSVQHX5.mjs} +18 -18
- package/dist/cli/{providers-AOWBHJ24.mjs → providers-MV2YW3J5.mjs} +6 -6
- package/dist/cli/{providers-5LCUHKX2.js → providers-YFO3EFLK.js} +9 -9
- package/dist/cli/{quickstart-Z6NA2CCM.mjs → quickstart-KMXU2T3Z.mjs} +4 -4
- package/dist/cli/{quickstart-7YZUT7GO.js → quickstart-MATFTZVQ.js} +6 -6
- package/dist/cli/{run-M66ILCWL.js → run-UW5FM64G.js} +41 -41
- package/dist/cli/{run-7QGBNUKE.mjs → run-YRYVGUCJ.mjs} +23 -23
- package/dist/cli/search-4ZQOFG7G.js +33 -0
- package/dist/cli/{search-Z2T3B4V4.mjs → search-WF3Q3I5X.mjs} +8 -8
- package/dist/cli/{search-output-6OHPSJGK.js → search-output-BG743WAM.js} +6 -6
- package/dist/cli/{search-output-MLHVBRIR.mjs → search-output-THOAHTCU.mjs} +4 -4
- package/dist/cli/{secrets-T7MW2DMK.js → secrets-EOGBWN44.js} +15 -15
- package/dist/cli/{secrets-VBSILT5H.mjs → secrets-LM7OTAUE.mjs} +6 -6
- package/dist/cli/sessions-GDSJ72XI.js +18 -0
- package/dist/cli/{sessions-KNITGDLS.mjs → sessions-SP2JL27H.mjs} +6 -6
- package/dist/cli/{settings-NBZRRKZS.mjs → settings-JXTFX5G2.mjs} +13 -13
- package/dist/cli/{settings-OSEBDBKR.js → settings-OWE3EEG7.js} +86 -86
- package/dist/cli/{setup-WTEQPZ5I.mjs → setup-FG37SKMB.mjs} +10 -10
- package/dist/cli/{setup-7DZPC6FC.js → setup-Z5BEQKA7.js} +50 -50
- package/dist/cli/skills-SIX5OTNX.js +37 -0
- package/dist/cli/{skills-JMD2MNJZ.mjs → skills-UGNCBZTJ.mjs} +8 -8
- package/dist/cli/tools-EZOV37MQ.js +57 -0
- package/dist/cli/{tools-LK5BM2Z7.mjs → tools-J3PKLQSL.mjs} +17 -17
- package/dist/cli/{update-IVUSIA2E.mjs → update-GGZ2XTMZ.mjs} +10 -10
- package/dist/cli/update-ISU7YN34.js +35 -0
- package/dist/cli/{workflow-GY374FMJ.js → workflow-AUZCSCZP.js} +17 -17
- package/dist/cli/{workflow-4QP6G54M.mjs → workflow-C66BBXHH.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +107 -106
- package/dist/plays/bundle-play-file.mjs +6 -4
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-M3AJBJ3O.js +0 -43
- package/dist/cli/describe-UFGHQBM7.js +0 -50
- package/dist/cli/git-YYOW4CYQ.js +0 -25
- package/dist/cli/search-OZQH5VMI.js +0 -33
- package/dist/cli/sessions-XKEIBOTP.js +0 -18
- package/dist/cli/skills-R6RO6MQF.js +0 -37
- package/dist/cli/tools-NBBDUNPR.js +0 -57
- package/dist/cli/update-BI2ABPGX.js +0 -35
|
@@ -1,11 +1,11 @@
|
|
|
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 _chunkFPWOEK7Gjs = require('./chunk-FPWOEK7G.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkRLVSWAWBjs = require('./chunk-RLVSWAWB.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -18,11 +18,11 @@ function usesCliPlayAdmission(command, args) {
|
|
|
18
18
|
}
|
|
19
19
|
async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured", signal) {
|
|
20
20
|
_optionalChain([signal, 'optionalAccess', _ => _.throwIfAborted, 'call', _2 => _2()]);
|
|
21
|
-
if (maintenancePolicy !== "off")
|
|
22
|
-
const compatibility = await
|
|
21
|
+
if (maintenancePolicy !== "off") _chunkRLVSWAWBjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
22
|
+
const compatibility = await _chunkFPWOEK7Gjs.traceCliSpan.call(void 0,
|
|
23
23
|
"cli.sdk_compatibility",
|
|
24
24
|
{ baseUrl, command: "plays run" },
|
|
25
|
-
() =>
|
|
25
|
+
() => _chunkRLVSWAWBjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
26
26
|
command: "plays run",
|
|
27
27
|
persistCache: maintenancePolicy !== "off",
|
|
28
28
|
signal
|
|
@@ -30,7 +30,7 @@ async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configure
|
|
|
30
30
|
);
|
|
31
31
|
_optionalChain([signal, 'optionalAccess', _3 => _3.throwIfAborted, 'call', _4 => _4()]);
|
|
32
32
|
if (compatibility.error) throw compatibility.error;
|
|
33
|
-
|
|
33
|
+
_chunkRLVSWAWBjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
34
34
|
quietAdvisory: true
|
|
35
35
|
});
|
|
36
36
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7MBI2OLW.mjs";
|
|
4
4
|
import {
|
|
5
5
|
checkSdkCompatibility,
|
|
6
6
|
enforceSdkCompatibilityResponse,
|
|
7
7
|
flushDeferredSkillsSyncNotices
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-54IH5U3I.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getActiveCliProgress
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-H53YG6QG.mjs";
|
|
4
4
|
import {
|
|
5
5
|
maybeReportAutomaticSkillsSyncFailure
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RVMV4MXO.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_SKILL_AGENTS,
|
|
9
9
|
KNOWN_SKILL_AGENTS,
|
|
@@ -14,17 +14,17 @@ import {
|
|
|
14
14
|
sdkCliStateDirPath,
|
|
15
15
|
skillsAgentPathSegment,
|
|
16
16
|
writeSdkSkillsLocalVersion
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6OIRN4PC.mjs";
|
|
18
18
|
import {
|
|
19
19
|
SDK_API_CONTRACT,
|
|
20
20
|
SDK_API_MAJOR,
|
|
21
21
|
SDK_VERSION,
|
|
22
22
|
deploymentProtectionHeaders,
|
|
23
23
|
detectAgentRuntime
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-6SSISVXD.mjs";
|
|
25
25
|
import {
|
|
26
26
|
SDK_RELEASE
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-76M3DL5G.mjs";
|
|
28
28
|
|
|
29
29
|
// src/compat.ts
|
|
30
30
|
import { randomUUID } from "crypto";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkLV2DGEJ3js = require('./chunk-LV2DGEJ3.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkA253CMOIjs = require('./chunk-A253CMOI.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -32,11 +32,11 @@ function renderDeployment(deployment) {
|
|
|
32
32
|
return `${deployment.id} ${source} (${kind}) - ${deployment.status}${suffix}`;
|
|
33
33
|
}
|
|
34
34
|
async function handleList(options) {
|
|
35
|
-
const { http } =
|
|
35
|
+
const { http } = _chunkLV2DGEJ3js.getAuthedHttpClient.call(void 0, );
|
|
36
36
|
const payload = await http.get(
|
|
37
37
|
`/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
|
|
38
38
|
);
|
|
39
|
-
|
|
39
|
+
_chunkLV2DGEJ3js.printCommandEnvelope.call(void 0,
|
|
40
40
|
{
|
|
41
41
|
projects: payload.projects,
|
|
42
42
|
count: payload.projects.length,
|
|
@@ -73,7 +73,7 @@ function describeInstallationStatus(installation) {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
async function handleStatus(options) {
|
|
76
|
-
const { http } =
|
|
76
|
+
const { http } = _chunkLV2DGEJ3js.getAuthedHttpClient.call(void 0, );
|
|
77
77
|
const payload = await http.get("/api/v2/github/installation");
|
|
78
78
|
const installation = payload.installation;
|
|
79
79
|
const others = (_nullishCoalesce(payload.installations, () => ( []))).filter(
|
|
@@ -136,7 +136,7 @@ async function handleStatus(options) {
|
|
|
136
136
|
)
|
|
137
137
|
);
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
_chunkLV2DGEJ3js.printCommandEnvelope.call(void 0,
|
|
140
140
|
{
|
|
141
141
|
installation,
|
|
142
142
|
installations: _nullishCoalesce(payload.installations, () => ( [])),
|
|
@@ -147,10 +147,10 @@ async function handleStatus(options) {
|
|
|
147
147
|
);
|
|
148
148
|
}
|
|
149
149
|
async function handleRepos(options) {
|
|
150
|
-
const { http } =
|
|
150
|
+
const { http } = _chunkLV2DGEJ3js.getAuthedHttpClient.call(void 0, );
|
|
151
151
|
const query = options.installation ? `?installationId=${encodeURIComponent(options.installation)}` : "";
|
|
152
152
|
const payload = await http.get(`/api/v2/github/repos${query}`);
|
|
153
|
-
|
|
153
|
+
_chunkLV2DGEJ3js.printCommandEnvelope.call(void 0,
|
|
154
154
|
{
|
|
155
155
|
installation: payload.installation,
|
|
156
156
|
repositories: payload.repositories,
|
|
@@ -171,7 +171,7 @@ async function handleRepos(options) {
|
|
|
171
171
|
}
|
|
172
172
|
async function resolveRepoId(repo, installation) {
|
|
173
173
|
if (/^\d+$/.test(repo)) return Number(repo);
|
|
174
|
-
const { http } =
|
|
174
|
+
const { http } = _chunkLV2DGEJ3js.getAuthedHttpClient.call(void 0, );
|
|
175
175
|
const query = installation ? `?installationId=${encodeURIComponent(installation)}` : "";
|
|
176
176
|
const payload = await http.get(
|
|
177
177
|
`/api/v2/github/repos${query}`
|
|
@@ -188,7 +188,7 @@ async function resolveRepoId(repo, installation) {
|
|
|
188
188
|
}
|
|
189
189
|
async function handleLink(repo, options) {
|
|
190
190
|
const repoId = await resolveRepoId(repo, options.installation);
|
|
191
|
-
const { http } =
|
|
191
|
+
const { http } = _chunkLV2DGEJ3js.getAuthedHttpClient.call(void 0, );
|
|
192
192
|
const payload = await http.post("/api/v2/play-projects", {
|
|
193
193
|
repoId,
|
|
194
194
|
...options.installation !== void 0 ? { installationId: options.installation } : {},
|
|
@@ -197,7 +197,7 @@ async function handleLink(repo, options) {
|
|
|
197
197
|
...options.branch !== void 0 ? { productionBranch: options.branch } : {},
|
|
198
198
|
...options.prChecks !== void 0 ? { checkOnPullRequest: options.prChecks } : {}
|
|
199
199
|
});
|
|
200
|
-
|
|
200
|
+
_chunkLV2DGEJ3js.printCommandEnvelope.call(void 0,
|
|
201
201
|
{
|
|
202
202
|
project: payload.project,
|
|
203
203
|
render: {
|
|
@@ -220,11 +220,11 @@ async function handleLink(repo, options) {
|
|
|
220
220
|
);
|
|
221
221
|
}
|
|
222
222
|
async function handleGet(id, options) {
|
|
223
|
-
const { http } =
|
|
223
|
+
const { http } = _chunkLV2DGEJ3js.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkLV2DGEJ3js.printCommandEnvelope.call(void 0,
|
|
228
228
|
{
|
|
229
229
|
project: payload.project,
|
|
230
230
|
render: {
|
|
@@ -240,7 +240,7 @@ async function handleGet(id, options) {
|
|
|
240
240
|
);
|
|
241
241
|
}
|
|
242
242
|
async function handleSet(id, options) {
|
|
243
|
-
const { http } =
|
|
243
|
+
const { http } = _chunkLV2DGEJ3js.getAuthedHttpClient.call(void 0, );
|
|
244
244
|
const payload = await http.patch(
|
|
245
245
|
`/api/v2/play-projects/${encodeURIComponent(id)}`,
|
|
246
246
|
{
|
|
@@ -251,7 +251,7 @@ async function handleSet(id, options) {
|
|
|
251
251
|
...options.disabled !== void 0 ? { disabled: options.disabled } : {}
|
|
252
252
|
}
|
|
253
253
|
);
|
|
254
|
-
|
|
254
|
+
_chunkLV2DGEJ3js.printCommandEnvelope.call(void 0,
|
|
255
255
|
{
|
|
256
256
|
project: payload.project,
|
|
257
257
|
render: {
|
|
@@ -264,9 +264,9 @@ async function handleSet(id, options) {
|
|
|
264
264
|
);
|
|
265
265
|
}
|
|
266
266
|
async function handleUnlink(id, options) {
|
|
267
|
-
const { http } =
|
|
267
|
+
const { http } = _chunkLV2DGEJ3js.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkLV2DGEJ3js.printCommandEnvelope.call(void 0,
|
|
270
270
|
{
|
|
271
271
|
ok: true,
|
|
272
272
|
id,
|
|
@@ -286,10 +286,10 @@ async function handleUnlink(id, options) {
|
|
|
286
286
|
);
|
|
287
287
|
}
|
|
288
288
|
async function handleConnect(options) {
|
|
289
|
-
const baseUrl =
|
|
289
|
+
const baseUrl = _chunkA253CMOIjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkLV2DGEJ3js.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkLV2DGEJ3js.printCommandEnvelope.call(void 0,
|
|
293
293
|
{
|
|
294
294
|
connectUrl,
|
|
295
295
|
browser: opened,
|
|
@@ -311,7 +311,7 @@ async function handleConnect(options) {
|
|
|
311
311
|
);
|
|
312
312
|
}
|
|
313
313
|
async function handleDeploymentsList(options) {
|
|
314
|
-
const { http } =
|
|
314
|
+
const { http } = _chunkLV2DGEJ3js.getAuthedHttpClient.call(void 0, );
|
|
315
315
|
const query = new URLSearchParams();
|
|
316
316
|
if (options.repo) query.set("projectId", options.repo);
|
|
317
317
|
if (options.limit) query.set("limit", options.limit);
|
|
@@ -319,7 +319,7 @@ async function handleDeploymentsList(options) {
|
|
|
319
319
|
const payload = await http.get(
|
|
320
320
|
`/api/v2/deployments${suffix}`
|
|
321
321
|
);
|
|
322
|
-
|
|
322
|
+
_chunkLV2DGEJ3js.printCommandEnvelope.call(void 0,
|
|
323
323
|
{
|
|
324
324
|
deployments: payload.deployments,
|
|
325
325
|
count: payload.deployments.length,
|
|
@@ -363,12 +363,12 @@ function renderDeploymentMonitorLines(results) {
|
|
|
363
363
|
]);
|
|
364
364
|
}
|
|
365
365
|
async function handleDeploymentGet(id, options) {
|
|
366
|
-
const { http } =
|
|
366
|
+
const { http } = _chunkLV2DGEJ3js.getAuthedHttpClient.call(void 0, );
|
|
367
367
|
const payload = await http.get(`/api/v2/deployments/${encodeURIComponent(id)}`);
|
|
368
368
|
const playLines = renderDeploymentPlayLines(payload.deployment.results);
|
|
369
369
|
const monitorLines = renderDeploymentMonitorLines(payload.deployment.results);
|
|
370
370
|
const repository = _nullishCoalesce(_optionalChain([payload, 'access', _10 => _10.project, 'optionalAccess', _11 => _11.repoFullName]), () => ( payload.deployment.repoFullName));
|
|
371
|
-
|
|
371
|
+
_chunkLV2DGEJ3js.printCommandEnvelope.call(void 0,
|
|
372
372
|
{
|
|
373
373
|
deployment: payload.deployment,
|
|
374
374
|
project: payload.project,
|
|
@@ -387,9 +387,9 @@ async function handleDeploymentGet(id, options) {
|
|
|
387
387
|
);
|
|
388
388
|
}
|
|
389
389
|
async function handleDeploymentCancel(id, options) {
|
|
390
|
-
const { http } =
|
|
390
|
+
const { http } = _chunkLV2DGEJ3js.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkLV2DGEJ3js.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -31,7 +31,7 @@ var _chunkNMU3VR5Ujs = require('./chunk-NMU3VR5U.js');
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunk2CTTSNFEjs = require('./chunk-2CTTSNFE.js');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
@@ -652,7 +652,7 @@ var ToolCalls = class {
|
|
|
652
652
|
idempotencyKey,
|
|
653
653
|
onResponse: (response2) => {
|
|
654
654
|
lastResponse = null;
|
|
655
|
-
atomicToolsSupported = response2.headers.get(
|
|
655
|
+
atomicToolsSupported = response2.headers.get(_chunk2CTTSNFEjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
|
|
656
656
|
recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
|
|
657
657
|
if (_optionalChain([options, 'optionalAccess', _30 => _30.onServerTiming])) {
|
|
658
658
|
try {
|
|
@@ -1107,8 +1107,8 @@ function runtimeSelectionHeaders(runtime, env) {
|
|
|
1107
1107
|
}
|
|
1108
1108
|
const receivers = _optionalChain([env, 'access', _55 => _55.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _56 => _56.trim, 'call', _57 => _57()]);
|
|
1109
1109
|
return {
|
|
1110
|
-
[
|
|
1111
|
-
...receivers ? { [
|
|
1110
|
+
[_chunk2CTTSNFEjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
1111
|
+
...receivers ? { [_chunk2CTTSNFEjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
1112
1112
|
};
|
|
1113
1113
|
}
|
|
1114
1114
|
function normalizeTestPolicyOverrides(value, source) {
|
|
@@ -1179,7 +1179,7 @@ var PlayClient = class {
|
|
|
1179
1179
|
return _chunkRNSHCJMEjs.startPlayRun.call(void 0,
|
|
1180
1180
|
this.http,
|
|
1181
1181
|
resolved.request,
|
|
1182
|
-
_optionalChain([options, 'optionalAccess', _65 => _65.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(
|
|
1182
|
+
_optionalChain([options, 'optionalAccess', _65 => _65.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunk2CTTSNFEjs.SDK_API_MAJOR) } : headers,
|
|
1183
1183
|
options
|
|
1184
1184
|
);
|
|
1185
1185
|
}
|
|
@@ -3260,7 +3260,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
|
|
|
3260
3260
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
3261
3261
|
);
|
|
3262
3262
|
}
|
|
3263
|
-
return { [
|
|
3263
|
+
return { [_chunk2CTTSNFEjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
3264
3264
|
}
|
|
3265
3265
|
function sleep(ms) {
|
|
3266
3266
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -4150,7 +4150,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4150
4150
|
);
|
|
4151
4151
|
const headers = _optionalChain([options, 'optionalAccess', _188 => _188.cliAdmission]) ? {
|
|
4152
4152
|
...runtimeHeaders,
|
|
4153
|
-
"X-Deepline-API-Major": String(
|
|
4153
|
+
"X-Deepline-API-Major": String(_chunk2CTTSNFEjs.SDK_API_MAJOR)
|
|
4154
4154
|
} : runtimeHeaders;
|
|
4155
4155
|
const http = this.http;
|
|
4156
4156
|
let submitted = false;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PlayClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-H7L5MS5E.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6OIRN4PC.mjs";
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
rejectRestrictedFeedback
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DBBLPDXK.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getAuthedHttpClient,
|
|
6
6
|
printCommandEnvelope
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-G6A7CGFV.mjs";
|
|
8
8
|
import {
|
|
9
9
|
agentSessionIdFromEnvironment
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6SSISVXD.mjs";
|
|
11
11
|
|
|
12
12
|
// src/cli/commands/sessions.ts
|
|
13
13
|
import {
|
|
@@ -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.514",
|
|
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."
|
|
@@ -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 _chunkY2RIMVEMjs = require('./chunk-Y2RIMVEM.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkWP3ULMRUjs = require('./chunk-WP3ULMRU.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -14,18 +14,18 @@ var _chunkTMQUMILMjs = require('./chunk-TMQUMILM.js');
|
|
|
14
14
|
var _chunkNTLBZUHDjs = require('./chunk-NTLBZUHD.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkG6PUQQJPjs = require('./chunk-G6PUQQJP.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkCUMA6DE2js = require('./chunk-CUMA6DE2.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkLV2DGEJ3js = require('./chunk-LV2DGEJ3.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkA253CMOIjs = require('./chunk-A253CMOI.js');
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/describe.ts
|
|
31
31
|
var _fs = require('fs');
|
|
@@ -34,14 +34,14 @@ var _path = require('path');
|
|
|
34
34
|
// src/cli/doc-read-reporting.ts
|
|
35
35
|
var REPORT_TIMEOUT_MS = 1e3;
|
|
36
36
|
async function reportDocRead(docId) {
|
|
37
|
-
if (
|
|
37
|
+
if (_chunkCUMA6DE2js.isFailureReportingDisabled.call(void 0, )) return;
|
|
38
38
|
try {
|
|
39
|
-
const baseUrl =
|
|
40
|
-
const apiKey =
|
|
39
|
+
const baseUrl = _chunkA253CMOIjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
40
|
+
const apiKey = _chunkA253CMOIjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
41
41
|
if (!apiKey) return;
|
|
42
42
|
await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
|
|
43
43
|
method: "POST",
|
|
44
|
-
headers:
|
|
44
|
+
headers: _chunkCUMA6DE2js.failureReportHeaders.call(void 0, apiKey),
|
|
45
45
|
body: JSON.stringify({ doc_id: docId }),
|
|
46
46
|
signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
|
|
47
47
|
});
|
|
@@ -54,16 +54,16 @@ function nothingNamed(name) {
|
|
|
54
54
|
return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
|
|
55
55
|
}
|
|
56
56
|
function findNamed2(name, options) {
|
|
57
|
-
return _chunkTMQUMILMjs.findNamed.call(void 0, name, options, _chunkTMQUMILMjs.describeLookupsFor.call(void 0, new (0,
|
|
57
|
+
return _chunkTMQUMILMjs.findNamed.call(void 0, name, options, _chunkTMQUMILMjs.describeLookupsFor.call(void 0, new (0, _chunkG6PUQQJPjs.DeeplineClient)()));
|
|
58
58
|
}
|
|
59
59
|
async function describeAnything(name, options, onMissing) {
|
|
60
|
-
const client = new (0,
|
|
60
|
+
const client = new (0, _chunkG6PUQQJPjs.DeeplineClient)();
|
|
61
61
|
const lookups = _chunkTMQUMILMjs.describeLookupsFor.call(void 0, client);
|
|
62
62
|
const outcome = await _chunkTMQUMILMjs.describeName.call(void 0, name, options, {
|
|
63
63
|
...lookups,
|
|
64
64
|
// `tools describe` has already fetched the tool for its compatibility check.
|
|
65
65
|
tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
|
|
66
|
-
seedStarterScript:
|
|
66
|
+
seedStarterScript: _chunkY2RIMVEMjs.seedToolListScript
|
|
67
67
|
});
|
|
68
68
|
if (outcome.status === "missing") {
|
|
69
69
|
if (onMissing) return onMissing();
|
|
@@ -89,18 +89,18 @@ function deliver(envelope, lines, { json, out }) {
|
|
|
89
89
|
` : text;
|
|
90
90
|
_fs.writeFileSync.call(void 0, path, content);
|
|
91
91
|
const bytes = Buffer.byteLength(content);
|
|
92
|
-
|
|
92
|
+
_chunkLV2DGEJ3js.printCommandEnvelope.call(void 0,
|
|
93
93
|
{ path, bytes },
|
|
94
94
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
95
95
|
` }
|
|
96
96
|
);
|
|
97
97
|
return 0;
|
|
98
98
|
}
|
|
99
|
-
|
|
99
|
+
_chunkLV2DGEJ3js.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
100
100
|
return 0;
|
|
101
101
|
}
|
|
102
102
|
function registerDescribeCommand(program) {
|
|
103
|
-
|
|
103
|
+
_chunkWP3ULMRUjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
|
|
104
104
|
"Describe anything search returns: a tool, monitor type, or play."
|
|
105
105
|
).addHelpText(
|
|
106
106
|
"after",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-H7L5MS5E.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6OIRN4PC.mjs";
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
10
|
var DeeplineClient2 = class extends DeeplineClient {
|
|
@@ -1,7 +1,7 @@
|
|
|
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 _chunk2CTTSNFEjs = require('./chunk-2CTTSNFE.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
@@ -711,7 +711,7 @@ function readSkillsVersionFile(path) {
|
|
|
711
711
|
}
|
|
712
712
|
}
|
|
713
713
|
function resolveAutoSyncSkillAgents() {
|
|
714
|
-
switch (
|
|
714
|
+
switch (_chunk2CTTSNFEjs.detectAgentRuntime.call(void 0, )) {
|
|
715
715
|
case "codex":
|
|
716
716
|
return ["codex"];
|
|
717
717
|
case "claude_code":
|
|
@@ -781,7 +781,7 @@ function writeSdkSkillsLocalVersion(baseUrl, version, agents) {
|
|
|
781
781
|
}
|
|
782
782
|
|
|
783
783
|
// src/http.ts
|
|
784
|
-
var HttpClient2 = class extends
|
|
784
|
+
var HttpClient2 = class extends _chunk2CTTSNFEjs.HttpClient {
|
|
785
785
|
constructor(config) {
|
|
786
786
|
super(config, readSdkSkillsLocalVersion);
|
|
787
787
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk5LBXLQRWjs = require('./chunk-5LBXLQRW.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkRNSHCJMEjs = require('./chunk-RNSHCJME.js');
|
|
@@ -11,7 +11,7 @@ var _chunkRNSHCJMEjs = require('./chunk-RNSHCJME.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkLV2DGEJ3js = require('./chunk-LV2DGEJ3.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
@@ -581,7 +581,7 @@ function parseInputFlagValue(raw) {
|
|
|
581
581
|
return raw;
|
|
582
582
|
}
|
|
583
583
|
function parsePlayRunOptions(args, initialInput = null) {
|
|
584
|
-
const selection =
|
|
584
|
+
const selection = _chunkLV2DGEJ3js.parseJsonFields.call(void 0, args, "run");
|
|
585
585
|
args = selection.args;
|
|
586
586
|
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.";
|
|
587
587
|
let filePath = null;
|
|
@@ -593,7 +593,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
593
593
|
let revisionSelector = null;
|
|
594
594
|
const watch = !args.includes("--no-wait");
|
|
595
595
|
const dryRun = args.includes("--dry-run");
|
|
596
|
-
let jsonOutput = dryRun ?
|
|
596
|
+
let jsonOutput = dryRun ? _chunkLV2DGEJ3js.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkLV2DGEJ3js.argsWantJson.call(void 0, args);
|
|
597
597
|
const fullJson = args.includes("--full");
|
|
598
598
|
const force = args.includes("--force") || args.includes("--from-start");
|
|
599
599
|
const forceToolRefresh = args.includes("--force-tool-refresh") || args.includes("--refresh-cache");
|
|
@@ -656,7 +656,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
656
656
|
"--log-level requires one of: debug, info, warn, error."
|
|
657
657
|
);
|
|
658
658
|
}
|
|
659
|
-
const parsed =
|
|
659
|
+
const parsed = _chunk5LBXLQRWjs.parseLogLevel.call(void 0, value);
|
|
660
660
|
if (!parsed) {
|
|
661
661
|
throw new Error(
|
|
662
662
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -974,7 +974,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
974
974
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
975
975
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
976
976
|
);
|
|
977
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
977
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunk5LBXLQRWjs.parseLogLevel.call(void 0, options.logLevel);
|
|
978
978
|
if (!logLevel)
|
|
979
979
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
980
980
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -988,13 +988,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
988
988
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
989
989
|
logLevel = "debug";
|
|
990
990
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
991
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
992
|
-
[...fullJson ? ["--full"] : [], ...
|
|
991
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunkLV2DGEJ3js.parseJsonFields.call(void 0,
|
|
992
|
+
[...fullJson ? ["--full"] : [], ..._chunkLV2DGEJ3js.jsonFieldArgs.call(void 0, options.json)],
|
|
993
993
|
"run"
|
|
994
994
|
).fields;
|
|
995
995
|
const watch = options.wait === false ? false : base.watch;
|
|
996
996
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
997
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
997
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunkLV2DGEJ3js.argsWantJson.call(void 0, []) : explicitJson;
|
|
998
998
|
const verboseLogs = Boolean(
|
|
999
999
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
1000
1000
|
);
|
|
@@ -866,10 +866,23 @@ Authoring rules:
|
|
|
866
866
|
rows.peek(n), rows.materialize(n), or for await. Array methods on a
|
|
867
867
|
handle fail [[cli:plays check]][[mcp:deepline_check_play]].
|
|
868
868
|
Tool calls: deepline.tools.execute({ id, tool, input, description,
|
|
869
|
-
staleAfterSeconds }).
|
|
870
|
-
0
|
|
871
|
-
|
|
872
|
-
completed
|
|
869
|
+
staleAfterSeconds }). staleAfterSeconds decides whether a finished answer
|
|
870
|
+
may be reused. 0 is a fresh call (so is leaving it out in editions before
|
|
871
|
+
11; edition 11 requires you to choose). A positive number accepts a
|
|
872
|
+
completed, successful answer to the same request (same workspace,
|
|
873
|
+
credential and tool version) up to that many seconds old, and otherwise
|
|
874
|
+
runs the tool. null accepts an answer of any age. A reused answer makes no
|
|
875
|
+
provider call and no provider charge; Play compute still applies. This
|
|
876
|
+
holds for every tool: a positive window on a write, send or purchase
|
|
877
|
+
skips a repeat of it on purpose, so use 0 for a repeat and re-read after a
|
|
878
|
+
write with 0. A repeat is skipped only after an earlier call has finished:
|
|
879
|
+
overlapping calls both run, so a send that must happen once needs a
|
|
880
|
+
provider idempotency key. Failed, empty and unfinished answers are never
|
|
881
|
+
reused, so a retry runs again. Resuming a run returns its own finished calls whatever
|
|
882
|
+
the window. Provider idempotency keys, HTTP caches and in-run
|
|
883
|
+
deduplication are separate. result._metadata.execution.freshness shows
|
|
884
|
+
source (executed, operation_recovery, reusable_result or
|
|
885
|
+
live_observation), resultAgeMs and completedAt.
|
|
873
886
|
Read
|
|
874
887
|
results the way [[cli:describe]][[mcp:deepline_describe_tool]] lists them:
|
|
875
888
|
result.fields.<name>.value for a value whose meaning is known, also by
|
|
@@ -908,7 +921,10 @@ Authoring rules:
|
|
|
908
921
|
For large datasets, keep working sets bounded and checkpoint progress;
|
|
909
922
|
inline ctx.runPlay shares parent memory, while ctx.runPlayAsync starts an
|
|
910
923
|
independent run. A larger profile does not make a job resumable. This is
|
|
911
|
-
not the CLI wait timeout.
|
|
924
|
+
not the CLI wait timeout. Size for a measured peak, not a guess. For file
|
|
925
|
+
transforms, stream through disk and pass paths to subprocesses: Node and
|
|
926
|
+
Python share the sandbox's memory. Persist outputs before a checkpoint,
|
|
927
|
+
because scratch files can disappear on resume.
|
|
912
928
|
Recurring sourcing: .run({ key: 'domain', mode: 'net_new' }) returns only
|
|
913
929
|
rows the table has not seen before.
|
|
914
930
|
Results: project each answer into flat columns (the value, its source,
|