deepline 0.3.470 → 0.3.472
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 +14 -0
- package/dist/bundling-sources/sdk/src/index.ts +2 -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 +29 -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-7J52UEWO.mjs → auth-35DAEPHC.mjs} +5 -5
- package/dist/cli/auth-Q5TM66UI.js +41 -0
- package/dist/cli/{billing-ASNWVDQG.js → billing-5ED5X2IO.js} +82 -81
- package/dist/cli/{billing-ORB3UZ73.mjs → billing-CXVBJEC4.mjs} +9 -8
- package/dist/cli/{chunk-4BQQ3Q3J.js → chunk-2DND7LLL.js} +8 -8
- package/dist/cli/{chunk-GDFO3ERN.js → chunk-2G4R4APL.js} +2 -2
- package/dist/cli/{chunk-RVQ333NB.mjs → chunk-2S36YV2K.mjs} +1 -1
- package/dist/cli/{chunk-EM2E7YIS.js → chunk-3L76SFGN.js} +53 -53
- package/dist/cli/{chunk-QG7UPPOK.mjs → chunk-4NFBYW7X.mjs} +3 -3
- package/dist/cli/{chunk-7WILY2XM.mjs → chunk-52VOORHM.mjs} +2 -2
- package/dist/cli/{chunk-CNQBCLQP.js → chunk-5FHU67AT.js} +3 -3
- package/dist/cli/{chunk-6B7XLHIE.mjs → chunk-6PKONIIP.mjs} +4 -4
- package/dist/cli/{chunk-HNP5V5BN.js → chunk-6ZTSHKJF.js} +25 -7
- package/dist/cli/{chunk-Y4OE46HH.js → chunk-7KAS4QOW.js} +112 -107
- package/dist/cli/{chunk-SHB7BUNQ.mjs → chunk-C5PY2PP6.mjs} +3 -3
- package/dist/cli/{chunk-CTDWQYBW.mjs → chunk-CFDQZQE2.mjs} +2 -2
- package/dist/cli/{chunk-262PYO4I.mjs → chunk-FHIO7WI2.mjs} +3 -3
- package/dist/cli/{chunk-6R5UKWRW.js → chunk-GJPRBELO.js} +16 -16
- package/dist/cli/{chunk-57F5VKHV.js → chunk-H7YFUC3J.js} +8 -8
- package/dist/cli/{chunk-F6OB5L74.js → chunk-HBVT4FW5.js} +6 -6
- package/dist/cli/{chunk-C7EA2VNR.js → chunk-IIQ6O5F3.js} +5 -5
- package/dist/cli/{chunk-3P4WOCRB.mjs → chunk-IPJ27SD2.mjs} +5 -5
- package/dist/cli/{chunk-JKVRBCZL.js → chunk-JDMR33HS.js} +1 -0
- package/dist/cli/{chunk-DSOTGAXS.mjs → chunk-JRZW4LWK.mjs} +1 -1
- package/dist/cli/{chunk-VL7OL7YR.mjs → chunk-KQJHIVCE.mjs} +1 -1
- package/dist/cli/{chunk-PWXHZPHK.js → chunk-L3AXQXNT.js} +10 -10
- package/dist/cli/{chunk-A7THVTRN.js → chunk-LQUOZGM6.js} +51 -51
- package/dist/cli/{chunk-YTFCKCII.js → chunk-M475BQ77.js} +3 -3
- package/dist/cli/{chunk-YBDQUVDE.mjs → chunk-MRZ7AO72.mjs} +10 -10
- package/dist/cli/{chunk-FAG4DFUC.mjs → chunk-NELMCOWK.mjs} +1 -0
- package/dist/cli/{chunk-SOME764Z.mjs → chunk-NZBZFEVA.mjs} +4 -4
- package/dist/cli/{chunk-ETTUFFBS.js → chunk-ODAARZSK.js} +36 -36
- package/dist/cli/{chunk-SETIOXN4.mjs → chunk-OMPW5ELS.mjs} +1 -1
- package/dist/cli/{chunk-NNCDHMCT.js → chunk-QLVYYDUI.js} +26 -26
- package/dist/cli/{chunk-SXQZYTUW.mjs → chunk-QSCLOPWR.mjs} +1 -1
- package/dist/cli/{chunk-PJX7BA7T.mjs → chunk-R6L6JRDR.mjs} +2 -2
- package/dist/cli/{chunk-3XLJPLXZ.mjs → chunk-R73LE2IM.mjs} +1 -1
- package/dist/cli/{chunk-F2XK4UN6.js → chunk-RDOPZK7A.js} +3 -3
- package/dist/cli/{chunk-44UR3BU2.js → chunk-RMQB72WW.js} +14 -14
- package/dist/cli/{chunk-D464JW3N.mjs → chunk-RZHUHL53.mjs} +19 -1
- package/dist/cli/{chunk-VBKN6ISP.js → chunk-SBPI7AEB.js} +93 -93
- package/dist/cli/{chunk-ORO2GFH4.js → chunk-SKVMC6K6.js} +5 -5
- package/dist/cli/{chunk-AGIEKE3L.js → chunk-SYWOSAW7.js} +4 -4
- package/dist/cli/{chunk-YFKOA4HW.mjs → chunk-T5H7ETIM.mjs} +4 -4
- package/dist/cli/{chunk-5ADROBCY.mjs → chunk-TMMODGPV.mjs} +2 -2
- package/dist/cli/{chunk-NSAKJQLX.js → chunk-UKKCS6Z4.js} +1 -1
- package/dist/cli/{chunk-KBNAI5BY.js → chunk-UPXGN62E.js} +21 -21
- package/dist/cli/{chunk-SV3B6KW4.mjs → chunk-UXFUD2MB.mjs} +5 -5
- package/dist/cli/{chunk-N72VIY7R.js → chunk-VDHDTXCK.js} +2 -2
- package/dist/cli/{chunk-MXAB4W6E.js → chunk-XSSIBO74.js} +8 -8
- package/dist/cli/{chunk-QW6HNDS7.mjs → chunk-YK64LQPQ.mjs} +7 -2
- package/dist/cli/{chunk-GLSFZYZB.mjs → chunk-YMB2CD55.mjs} +1 -1
- package/dist/cli/{chunk-F4L7WMLK.mjs → chunk-YNW47NOJ.mjs} +2 -2
- package/dist/cli/{chunk-FVYAEBGO.mjs → chunk-YUNPYX5T.mjs} +25 -7
- package/dist/cli/{chunk-WG3KGAII.js → chunk-Z52WEIBR.js} +19 -1
- package/dist/cli/{chunk-BWLXHUKH.mjs → chunk-ZZQIS3TH.mjs} +3 -3
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-D3JPZVUN.mjs → csv-OSDYY3QW.mjs} +4 -4
- package/dist/cli/{csv-FSXDIWBP.js → csv-SQJQM3B2.js} +13 -13
- package/dist/cli/{db-3UWDQXLF.mjs → db-2M6BU6G5.mjs} +7 -7
- package/dist/cli/{db-DZQUPWI3.js → db-ATDYXAD5.js} +28 -28
- package/dist/cli/describe-37QXXDCF.js +48 -0
- package/dist/cli/{describe-APG2GVFG.mjs → describe-WIAJCWF3.mjs} +18 -18
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/{executions-TDUX3575.mjs → executions-2J6CCJL2.mjs} +7 -7
- package/dist/cli/{executions-BFAPMPG2.js → executions-Y32LMYH6.js} +9 -9
- package/dist/cli/{feedback-BMV7PUDL.mjs → feedback-L4AVIMGI.mjs} +4 -4
- package/dist/cli/{feedback-2KNPCYTH.js → feedback-RXQLS6QU.js} +8 -8
- package/dist/cli/git-JGUR335T.js +25 -0
- package/dist/cli/{git-KBVONNE5.mjs → git-V3K77AWH.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-B2KJT4CZ.js} +8 -8
- package/dist/cli/{legacy-noops-GZDRRUFE.mjs → legacy-noops-LOGMYOY5.mjs} +5 -5
- package/dist/cli/{monitors-CW22L3VL.mjs → monitors-5ETSB7S7.mjs} +8 -8
- package/dist/cli/{monitors-PGBHMKOU.js → monitors-A5WYUCGD.js} +92 -92
- package/dist/cli/{org-3V2VAH5D.js → org-7EZDWYKK.js} +73 -73
- package/dist/cli/{org-K5C23LAV.mjs → org-BJOAUSXL.mjs} +7 -7
- package/dist/cli/{pages-7V2C7GWU.mjs → pages-3BYGBTVK.mjs} +7 -7
- package/dist/cli/{pages-2F73VVWC.js → pages-45VNTEQU.js} +18 -18
- package/dist/cli/{play-62KSZGJQ.js → play-5KER3JFU.js} +586 -518
- package/dist/cli/{play-VT7TPJUH.mjs → play-R7JQV533.mjs} +93 -25
- package/dist/cli/{providers-3SI3QBT3.js → providers-OHMZ6QIF.js} +10 -10
- package/dist/cli/{providers-LX562YG7.mjs → providers-RMFCE6MM.mjs} +7 -7
- package/dist/cli/{quickstart-5HA5IFTB.js → quickstart-GNRE4SAT.js} +6 -6
- package/dist/cli/{quickstart-ADE7FV26.mjs → quickstart-IHR4VC5K.mjs} +4 -4
- package/dist/cli/{run-4ZV4UDKP.js → run-77QIMUUV.js} +37 -37
- package/dist/cli/{run-OITZJ6QZ.mjs → run-Y4MIRFJY.mjs} +23 -23
- package/dist/cli/{search-BI5VZQMD.mjs → search-24YKTHMK.mjs} +8 -8
- package/dist/cli/search-S3VO2UKV.js +32 -0
- package/dist/cli/{secrets-A2R36AZ6.mjs → secrets-KHX62AWC.mjs} +7 -7
- package/dist/cli/{secrets-UAKNTMYB.js → secrets-SSEBT3IS.js} +16 -16
- package/dist/cli/{sessions-3JM3OXME.js → sessions-E6KNWYEH.js} +6 -6
- package/dist/cli/{sessions-PPOFUFBW.mjs → sessions-H7T25HGE.mjs} +5 -5
- package/dist/cli/{settings-C4M5HOD4.js → settings-GXUYF5G7.js} +79 -79
- package/dist/cli/{settings-PZA6TBOL.mjs → settings-XSJG6M32.mjs} +12 -12
- package/dist/cli/{setup-245XVTBR.mjs → setup-GD7IOD4U.mjs} +9 -9
- package/dist/cli/{setup-TY2OSI6D.js → setup-JP5YPIA4.js} +44 -44
- package/dist/cli/skills-C4KTW3US.js +31 -0
- package/dist/cli/{skills-ZAN23KLR.mjs → skills-HLHE3ENN.mjs} +7 -7
- package/dist/cli/tools-KS7JMRK6.js +55 -0
- package/dist/cli/{tools-GG4KDQBM.mjs → tools-Q4XIQX7W.mjs} +17 -17
- package/dist/cli/{update-XKXIL6DU.mjs → update-3KRMR2QJ.mjs} +9 -9
- package/dist/cli/update-GYTQYK2W.js +33 -0
- package/dist/cli/{workflow-VN7M3D2U.js → workflow-NMUESL3O.js} +18 -18
- package/dist/cli/{workflow-LVQVTFUJ.mjs → workflow-NOZ7WFEY.mjs} +8 -8
- package/dist/{client-CdJR18SJ.d.mts → client-C9bJ0QXu.d.mts} +1 -1
- package/dist/{client-B3tlWsw7.d.ts → client-CuNH54w3.d.ts} +1 -1
- package/dist/{client-core-CxHBKfE5.d.ts → client-core-C8Q6DKga.d.ts} +38 -2
- package/dist/{client-core-ByJD7QXj.d.mts → client-core-CSiXbe2n.d.mts} +38 -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
|
@@ -11,20 +11,20 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk3L76SFGNjs = require('./chunk-3L76SFGN.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkH7YFUC3Jjs = require('./chunk-H7YFUC3J.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunk5FHU67ATjs = require('./chunk-5FHU67AT.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkSYWOSAW7js = require('./chunk-SYWOSAW7.js');
|
|
28
28
|
|
|
29
29
|
// src/cli/commands/skills.ts
|
|
30
30
|
var _child_process = require('child_process');
|
|
@@ -77,7 +77,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
|
|
|
77
77
|
return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
|
|
78
78
|
}
|
|
79
79
|
function resolveLocalRoot() {
|
|
80
|
-
const target =
|
|
80
|
+
const target = _chunk5FHU67ATjs.resolveProjectPinTarget.call(void 0, );
|
|
81
81
|
if (!target.ok) {
|
|
82
82
|
throw new Error(
|
|
83
83
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -88,7 +88,7 @@ function resolveLocalRoot() {
|
|
|
88
88
|
return target.dir;
|
|
89
89
|
}
|
|
90
90
|
function detectSkillsAgents(input) {
|
|
91
|
-
const runtime = _nullishCoalesce(input.runtime, () => (
|
|
91
|
+
const runtime = _nullishCoalesce(input.runtime, () => ( _chunkSYWOSAW7js.detectAgentRuntime.call(void 0, )));
|
|
92
92
|
const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
|
|
93
93
|
if (knownAgent) return [knownAgent];
|
|
94
94
|
const roots = [
|
|
@@ -103,11 +103,11 @@ function detectSkillsAgents(input) {
|
|
|
103
103
|
return detected.length > 0 ? detected : ["*"];
|
|
104
104
|
}
|
|
105
105
|
function skillsStatePathForScope(baseUrl, scope, root) {
|
|
106
|
-
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0,
|
|
106
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunk5FHU67ATjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
|
|
107
107
|
}
|
|
108
108
|
function buildSkillsPlan(input) {
|
|
109
109
|
const scopeArgs = input.scope === "global" ? ["--global"] : [];
|
|
110
|
-
const legacyNames = [...
|
|
110
|
+
const legacyNames = [..._chunk3L76SFGNjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
|
|
111
111
|
(a, b) => a.localeCompare(b)
|
|
112
112
|
);
|
|
113
113
|
return {
|
|
@@ -121,7 +121,7 @@ function buildSkillsPlan(input) {
|
|
|
121
121
|
args: [
|
|
122
122
|
"exec",
|
|
123
123
|
"--yes",
|
|
124
|
-
`--package=${
|
|
124
|
+
`--package=${_chunk3L76SFGNjs.SKILLS_NPX_PACKAGE}`,
|
|
125
125
|
"--",
|
|
126
126
|
"skills",
|
|
127
127
|
"remove",
|
|
@@ -137,11 +137,11 @@ function buildSkillsPlan(input) {
|
|
|
137
137
|
args: [
|
|
138
138
|
"exec",
|
|
139
139
|
"--yes",
|
|
140
|
-
`--package=${
|
|
140
|
+
`--package=${_chunk3L76SFGNjs.SKILLS_NPX_PACKAGE}`,
|
|
141
141
|
"--",
|
|
142
142
|
"skills",
|
|
143
143
|
"add",
|
|
144
|
-
|
|
144
|
+
_chunk3L76SFGNjs.skillsSourceUrl.call(void 0, input.baseUrl),
|
|
145
145
|
"--agent",
|
|
146
146
|
...input.agents,
|
|
147
147
|
...scopeArgs,
|
|
@@ -178,7 +178,7 @@ function readSkillsInstallState(path) {
|
|
|
178
178
|
}
|
|
179
179
|
function runProcess(command, args, cwd) {
|
|
180
180
|
return new Promise((resolve, reject) => {
|
|
181
|
-
const plan =
|
|
181
|
+
const plan = _chunk3L76SFGNjs.resolveShellSpawn.call(void 0,
|
|
182
182
|
command,
|
|
183
183
|
args,
|
|
184
184
|
process.platform,
|
|
@@ -200,7 +200,7 @@ function runProcess(command, args, cwd) {
|
|
|
200
200
|
child.kill("SIGTERM");
|
|
201
201
|
reject(
|
|
202
202
|
new Error(
|
|
203
|
-
`${
|
|
203
|
+
`${_chunk3L76SFGNjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
|
|
204
204
|
)
|
|
205
205
|
);
|
|
206
206
|
}, SKILLS_PROCESS_TIMEOUT_MS);
|
|
@@ -211,7 +211,7 @@ function runProcess(command, args, cwd) {
|
|
|
211
211
|
child.once("close", (code) => {
|
|
212
212
|
clearTimeout(timeout);
|
|
213
213
|
if (code && stderr.trim()) {
|
|
214
|
-
process.stderr.write(`${
|
|
214
|
+
process.stderr.write(`${_chunk3L76SFGNjs.SKILLS_NPX_PACKAGE} exited ${code}.
|
|
215
215
|
`);
|
|
216
216
|
}
|
|
217
217
|
resolve(_nullishCoalesce(code, () => ( 1)));
|
|
@@ -225,7 +225,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
225
225
|
scope = normalizeScope(options.scope);
|
|
226
226
|
root = scope === "local" ? resolveLocalRoot() : null;
|
|
227
227
|
} catch (error) {
|
|
228
|
-
|
|
228
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
229
229
|
{
|
|
230
230
|
ok: false,
|
|
231
231
|
status: "failed",
|
|
@@ -237,22 +237,22 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
237
237
|
);
|
|
238
238
|
return 2;
|
|
239
239
|
}
|
|
240
|
-
const baseUrl =
|
|
240
|
+
const baseUrl = _chunk5FHU67ATjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
241
241
|
const catalog = {
|
|
242
|
-
skillNames: [...
|
|
243
|
-
version:
|
|
242
|
+
skillNames: [..._chunk3L76SFGNjs.DEFAULT_SDK_SKILL_NAMES],
|
|
243
|
+
version: _chunkSYWOSAW7js.SDK_VERSION
|
|
244
244
|
};
|
|
245
245
|
const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
|
|
246
246
|
const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
|
|
247
247
|
if (options.dryRun) {
|
|
248
|
-
|
|
248
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
249
249
|
{ ok: true, status: "planned", dryRun: true, ...plan },
|
|
250
250
|
{ json: options.json }
|
|
251
251
|
);
|
|
252
252
|
return 0;
|
|
253
253
|
}
|
|
254
|
-
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !
|
|
255
|
-
|
|
254
|
+
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunk3L76SFGNjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
255
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
256
256
|
{
|
|
257
257
|
ok: true,
|
|
258
258
|
status: "current",
|
|
@@ -284,10 +284,10 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
284
284
|
}
|
|
285
285
|
if (scope === "local" && root) {
|
|
286
286
|
const managedNames = [
|
|
287
|
-
.../* @__PURE__ */ new Set([...plan.skillNames, ...
|
|
287
|
+
.../* @__PURE__ */ new Set([...plan.skillNames, ..._chunk3L76SFGNjs.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
288
288
|
];
|
|
289
289
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
290
|
-
|
|
290
|
+
_chunk5FHU67ATjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
|
|
291
291
|
".deepline/",
|
|
292
292
|
...agentRoots.flatMap(
|
|
293
293
|
(agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
|
|
@@ -296,7 +296,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
296
296
|
}
|
|
297
297
|
let lease;
|
|
298
298
|
try {
|
|
299
|
-
lease = scope === "global" ? await
|
|
299
|
+
lease = scope === "global" ? await _chunk3L76SFGNjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
|
|
300
300
|
waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
|
|
301
301
|
onWait: () => process.stderr.write(
|
|
302
302
|
"Waiting for a background Deepline skills refresh to finish...\n"
|
|
@@ -304,8 +304,8 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
304
304
|
}) : { release: () => {
|
|
305
305
|
} };
|
|
306
306
|
} catch (error) {
|
|
307
|
-
if (!(error instanceof
|
|
308
|
-
|
|
307
|
+
if (!(error instanceof _chunk3L76SFGNjs.SkillsStateUnavailableError)) throw error;
|
|
308
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
309
309
|
{
|
|
310
310
|
ok: false,
|
|
311
311
|
status: "failed",
|
|
@@ -321,7 +321,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
321
321
|
return 5;
|
|
322
322
|
}
|
|
323
323
|
if (!lease) {
|
|
324
|
-
|
|
324
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
325
325
|
{
|
|
326
326
|
ok: false,
|
|
327
327
|
status: "failed",
|
|
@@ -330,7 +330,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
330
330
|
scope,
|
|
331
331
|
agents,
|
|
332
332
|
message: "A background Deepline skills refresh is still running for these agents.",
|
|
333
|
-
next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${
|
|
333
|
+
next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${_chunk3L76SFGNjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
|
|
334
334
|
},
|
|
335
335
|
{ json: options.json }
|
|
336
336
|
);
|
|
@@ -367,7 +367,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
367
367
|
throw new Error("Could not install the current Deepline skills.");
|
|
368
368
|
}
|
|
369
369
|
} catch (error) {
|
|
370
|
-
|
|
370
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
371
371
|
{
|
|
372
372
|
ok: false,
|
|
373
373
|
status: "failed",
|
|
@@ -406,7 +406,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
406
406
|
{
|
|
407
407
|
schemaVersion: 1,
|
|
408
408
|
installedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
409
|
-
cliVersion:
|
|
409
|
+
cliVersion: _chunkSYWOSAW7js.SDK_VERSION,
|
|
410
410
|
scope,
|
|
411
411
|
agents,
|
|
412
412
|
skillsVersion: plan.version,
|
|
@@ -419,9 +419,9 @@ async function runSkillsInstallWithLease(input) {
|
|
|
419
419
|
"utf8"
|
|
420
420
|
);
|
|
421
421
|
if (scope === "global") {
|
|
422
|
-
|
|
422
|
+
_chunk3L76SFGNjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
423
423
|
}
|
|
424
|
-
|
|
424
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
425
425
|
{
|
|
426
426
|
ok: true,
|
|
427
427
|
status: "complete",
|
|
@@ -452,7 +452,7 @@ function registerSkillsCommand(program) {
|
|
|
452
452
|
"after",
|
|
453
453
|
`
|
|
454
454
|
Notes:
|
|
455
|
-
This command reinstalls current Deepline-managed skills using ${
|
|
455
|
+
This command reinstalls current Deepline-managed skills using ${_chunk3L76SFGNjs.SKILLS_NPX_PACKAGE},
|
|
456
456
|
then removes legacy Deepline skill names. Local scope writes into the resolved
|
|
457
457
|
persistent project.
|
|
458
458
|
|
|
@@ -464,13 +464,13 @@ Examples:
|
|
|
464
464
|
).action(async (options) => {
|
|
465
465
|
process.exitCode = await runSkillsCommand(options);
|
|
466
466
|
});
|
|
467
|
-
program.command(
|
|
467
|
+
program.command(_chunk3L76SFGNjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
|
|
468
468
|
"--claim <token>",
|
|
469
469
|
"Owner token of the leases this child was started for."
|
|
470
470
|
).action(async (options) => {
|
|
471
471
|
const claim = _optionalChain([options, 'access', _ => _.claim, 'optionalAccess', _2 => _2.trim, 'call', _3 => _3()]);
|
|
472
472
|
if (!claim) {
|
|
473
|
-
|
|
473
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
474
474
|
{
|
|
475
475
|
ok: false,
|
|
476
476
|
status: "failed",
|
|
@@ -483,7 +483,7 @@ Examples:
|
|
|
483
483
|
process.exitCode = 2;
|
|
484
484
|
return;
|
|
485
485
|
}
|
|
486
|
-
await
|
|
486
|
+
await _chunk3L76SFGNjs.syncSdkSkillsIfNeeded.call(void 0, _chunk5FHU67ATjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
487
487
|
mode: "inline",
|
|
488
488
|
notices: "defer",
|
|
489
489
|
claim
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkH7YFUC3Jjs = require('./chunk-H7YFUC3J.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk5FHU67ATjs = require('./chunk-5FHU67AT.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 } = _chunkH7YFUC3Jjs.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
|
+
_chunkH7YFUC3Jjs.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 } = _chunkH7YFUC3Jjs.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
|
+
_chunkH7YFUC3Jjs.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 } = _chunkH7YFUC3Jjs.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
|
+
_chunkH7YFUC3Jjs.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 } = _chunkH7YFUC3Jjs.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 } = _chunkH7YFUC3Jjs.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
|
+
_chunkH7YFUC3Jjs.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 } = _chunkH7YFUC3Jjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkH7YFUC3Jjs.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 } = _chunkH7YFUC3Jjs.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
|
+
_chunkH7YFUC3Jjs.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 } = _chunkH7YFUC3Jjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkH7YFUC3Jjs.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 = _chunk5FHU67ATjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkH7YFUC3Jjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkH7YFUC3Jjs.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 } = _chunkH7YFUC3Jjs.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
|
+
_chunkH7YFUC3Jjs.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 } = _chunkH7YFUC3Jjs.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
|
+
_chunkH7YFUC3Jjs.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 } = _chunkH7YFUC3Jjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4NFBYW7X.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KQJHIVCE.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -6,7 +6,7 @@ var _chunkIAYSWZDJjs = require('./chunk-IAYSWZDJ.js');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkH7YFUC3Jjs = require('./chunk-H7YFUC3J.js');
|
|
10
10
|
|
|
11
11
|
// src/cli/describe-options.ts
|
|
12
12
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -247,7 +247,7 @@ function projectRunDatasetCell(value) {
|
|
|
247
247
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
248
248
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
249
249
|
if (typeof logicalValue === "object") {
|
|
250
|
-
return
|
|
250
|
+
return _chunkH7YFUC3Jjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
251
251
|
}
|
|
252
252
|
return logicalValue;
|
|
253
253
|
}
|
|
@@ -642,7 +642,7 @@ function csvText(rows, columns = []) {
|
|
|
642
642
|
rows: rows.map((row) => record(row) ? row : { value: row }),
|
|
643
643
|
columns
|
|
644
644
|
});
|
|
645
|
-
return
|
|
645
|
+
return _chunkH7YFUC3Jjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
|
|
646
646
|
}
|
|
647
647
|
function writeExecutionOutput(result, options) {
|
|
648
648
|
let temp;
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk7KAS4QOWjs = require('./chunk-7KAS4QOW.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 _chunkH7YFUC3Jjs = require('./chunk-H7YFUC3J.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 = _chunkH7YFUC3Jjs.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 ? _chunkH7YFUC3Jjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkH7YFUC3Jjs.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 = _chunk7KAS4QOWjs.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 : _chunk7KAS4QOWjs.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 : _chunkH7YFUC3Jjs.parseJsonFields.call(void 0,
|
|
990
|
+
[...fullJson ? ["--full"] : [], ..._chunkH7YFUC3Jjs.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 || _chunkH7YFUC3Jjs.argsWantJson.call(void 0, []) : explicitJson;
|
|
996
996
|
const verboseLogs = Boolean(
|
|
997
997
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
998
998
|
);
|
|
@@ -167,6 +167,7 @@ var PLAY_AUTHORING_BINDING_FIELDS = {
|
|
|
167
167
|
"compatibility",
|
|
168
168
|
"cron",
|
|
169
169
|
"inline",
|
|
170
|
+
"rateLimit",
|
|
170
171
|
"runtime",
|
|
171
172
|
"secrets",
|
|
172
173
|
"sqlListeners",
|
|
@@ -1371,6 +1372,22 @@ var PLAY_AUTHORING_FIELD_REGISTRY = {
|
|
|
1371
1372
|
description: "Play-level sandbox deadline. The default is 30m; use a static duration such as 90m or 2h, up to 4h.",
|
|
1372
1373
|
errorMessage: 'runtime.timeout must be a static duration such as "90m" or "2h".'
|
|
1373
1374
|
},
|
|
1375
|
+
"rateLimit.every": {
|
|
1376
|
+
schema: Type.String({ pattern: "^\\d+\\s*[smh]$" }),
|
|
1377
|
+
fixtures: {
|
|
1378
|
+
valid: "5m",
|
|
1379
|
+
invalid: "5 minutes",
|
|
1380
|
+
absent: void 0,
|
|
1381
|
+
unresolved: { expression: "every" },
|
|
1382
|
+
edition1: "5m"
|
|
1383
|
+
},
|
|
1384
|
+
referenceType: "string",
|
|
1385
|
+
required: false,
|
|
1386
|
+
resolution: "static-required",
|
|
1387
|
+
issueCode: "play_authoring_binding_invalid",
|
|
1388
|
+
description: "Start at most one run per window, such as 30s, 5m, or 1h (10s to 24h).",
|
|
1389
|
+
errorMessage: 'rateLimit.every must be a static duration from "10s" to "24h", such as "5m".'
|
|
1390
|
+
},
|
|
1374
1391
|
"runtime.size": {
|
|
1375
1392
|
schema: Type.Literal("standard"),
|
|
1376
1393
|
fixtures: {
|
|
@@ -1712,6 +1729,7 @@ var PLAY_AUTHORING_CLOUD_TYPE_DECLARATIONS = [
|
|
|
1712
1729
|
` inline?: ${cloudReferenceType("inline")};`,
|
|
1713
1730
|
` billing?: { maxCreditsPerRun?: ${cloudReferenceType("billing.maxCreditsPerRun")} };`,
|
|
1714
1731
|
` runtime?: { timeout?: ${cloudReferenceType("runtime.timeout")}; size?: ${cloudReferenceType("runtime.size")} };`,
|
|
1732
|
+
` rateLimit?: { every: ${cloudReferenceType("rateLimit.every")} };`,
|
|
1715
1733
|
` webhook?: { hmac?: { algorithm?: ${cloudReferenceType("bindings.webhook.hmac.algorithm")}; header?: ${cloudReferenceType("bindings.webhook.hmac.header")}; signaturePrefix?: ${cloudReferenceType("bindings.webhook.hmac.signaturePrefix")}; secretEnv: ${cloudReferenceType("bindings.webhook.hmac.secretEnv")} }; auth?: { type: ${cloudReferenceType("bindings.webhook.auth.type")}; headerFamily: ${cloudReferenceType("bindings.webhook.auth.headerFamily")}; signingSecrets: readonly ${cloudReferenceType("bindings.webhook.auth.signingSecrets[]")}[]; toleranceSeconds?: ${cloudReferenceType("bindings.webhook.auth.toleranceSeconds")} } };`,
|
|
1716
1734
|
` cron?: { schedule: ${cloudReferenceType("bindings.cron.schedule")}; timezone?: ${cloudReferenceType("bindings.cron.timezone")}; input?: PlayCronInput<TInput> };`,
|
|
1717
1735
|
" sqlListeners?: readonly SqlListenerDeclaration[];",
|
|
@@ -1736,7 +1754,7 @@ var PLAY_AUTHORING_CLOUD_TYPE_DECLARATIONS = [
|
|
|
1736
1754
|
`export type PlayAsyncCallOptions = { description: ${cloudReferenceType("ctx.runPlayAsync.options.description")} };`,
|
|
1737
1755
|
"declare const PLAY_RUN_ID_BRAND: unique symbol;",
|
|
1738
1756
|
"export type PlayRunId = string & { readonly [PLAY_RUN_ID_BRAND]: 'PlayRunId' };",
|
|
1739
|
-
"export type AsyncPlayRunRef = Readonly<{ runId: PlayRunId }>;",
|
|
1757
|
+
"export type AsyncPlayRunRef = Readonly<{ runId: PlayRunId; rateLimited?: { latestRunId: string; nextAllowedAt: string; message: string } }>;",
|
|
1740
1758
|
`export type RuntimeStepOptions = { semanticKey?: ${cloudReferenceType("ctx.step.semanticKey")}; staleAfterSeconds?: ${cloudReferenceType("ctx.step.staleAfterSeconds")} };`,
|
|
1741
1759
|
`export type FetchOptions = { staleAfterSeconds?: ${cloudReferenceType("ctx.fetch.staleAfterSeconds")}; transient?: boolean };`,
|
|
1742
1760
|
"export type CallFreshnessMetadata = { requestedStaleAfterSeconds: number | null; effectiveStaleAfterSeconds: number | null; source: 'executed' | 'operation_recovery' | 'reusable_result' | 'live_observation'; resultAgeMs: number; completedAt: number; operationReceiptKey?: string; unavailableReason?: string };",
|