deepline 0.3.539 → 0.3.540
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/integration-contracts/billing-entitlements.ts +10 -0
- package/dist/bundling-sources/shared_libs/play-runtime/activity-observation.ts +8 -4
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-execution-queries.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-pool.ts +20 -7
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +30 -11
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +1 -1
- package/dist/cli/{auth-QD7QGD3B.mjs → auth-32TURPHH.mjs} +5 -5
- package/dist/cli/auth-XA3K5LH2.js +43 -0
- package/dist/cli/{billing-KOQAF6WS.js → billing-6433M4BX.js} +105 -94
- package/dist/cli/{billing-FIZXMHBW.mjs → billing-NSH3NOHV.mjs} +21 -10
- package/dist/cli/{chunk-FH3P3E4S.js → chunk-2U4VACUA.js} +2 -2
- package/dist/cli/{chunk-GLKUC5PO.mjs → chunk-37VFUQMU.mjs} +2 -2
- package/dist/cli/chunk-3GVIVIER.js +54 -0
- package/dist/cli/{chunk-55ITVU2V.mjs → chunk-AB6DFHGL.mjs} +2 -2
- package/dist/cli/{chunk-V7DEGIYO.js → chunk-AJVK4XC5.js} +4 -4
- package/dist/cli/{chunk-K5MZHTK7.js → chunk-AOYW62XO.js} +3 -3
- package/dist/cli/{chunk-GEO2EMM7.mjs → chunk-B6UZUQ2O.mjs} +1 -1
- package/dist/cli/{chunk-JHEZQMOM.mjs → chunk-BD3VAPB4.mjs} +1 -1
- package/dist/cli/{chunk-XZBXQCRJ.js → chunk-BGBRA2S6.js} +22 -22
- package/dist/cli/{chunk-EAZS52DL.js → chunk-BNNGM2E5.js} +15 -15
- package/dist/cli/{chunk-6NZBLFL4.mjs → chunk-BZVVSUE2.mjs} +1 -1
- package/dist/cli/{chunk-TZBCJHV6.js → chunk-DV3ESQ4X.js} +1 -1
- package/dist/cli/{chunk-FIRV7BXJ.mjs → chunk-DWE2VE5I.mjs} +1 -1
- package/dist/cli/{chunk-KQTX545E.js → chunk-EXAXDEIF.js} +13 -13
- package/dist/cli/chunk-FANIRW74.mjs +9 -0
- package/dist/cli/{chunk-F43MXIN3.mjs → chunk-FR3AII3W.mjs} +2 -2
- package/dist/cli/chunk-GWHA4DAC.js +9 -0
- package/dist/cli/{chunk-FSQCB5SJ.js → chunk-H6IA6XRE.js} +2 -2
- package/dist/cli/{chunk-K22EKW6L.js → chunk-HKWJD45V.js} +5 -5
- package/dist/cli/{chunk-APKZGUTU.mjs → chunk-HLHDCFKL.mjs} +4 -4
- package/dist/cli/{chunk-E7D37PLM.mjs → chunk-IDDKNMFX.mjs} +36 -0
- package/dist/cli/{chunk-RULRGMMM.mjs → chunk-IYQZVEV4.mjs} +5 -5
- package/dist/cli/{chunk-5RUB53KG.js → chunk-J3TAEPFA.js} +26 -26
- package/dist/cli/{chunk-GNCIMHO2.mjs → chunk-JGFGWWOF.mjs} +10 -10
- package/dist/cli/{chunk-Y66ZMOJI.mjs → chunk-JPU5YLQG.mjs} +1 -1
- package/dist/cli/{chunk-JBCQFG7G.mjs → chunk-KFAJYK2N.mjs} +3 -3
- package/dist/cli/chunk-KN6ELDPL.mjs +54 -0
- package/dist/cli/{chunk-NR5PLMNG.js → chunk-LPMI4CYW.js} +107 -107
- package/dist/cli/{chunk-YMQFQO3K.js → chunk-LXLCQP4A.js} +16 -16
- package/dist/cli/{chunk-KAEVL62Q.js → chunk-M4DB6BBP.js} +44 -44
- package/dist/cli/{chunk-GLEGINSP.mjs → chunk-MH22LQKZ.mjs} +2 -2
- package/dist/cli/{chunk-MI53W4DN.js → chunk-MLDLN6WG.js} +53 -53
- package/dist/cli/{chunk-ISXX5DUD.js → chunk-MVIVF4BW.js} +3 -3
- package/dist/cli/{chunk-3YDI2PTN.js → chunk-N6DMKVKO.js} +10 -10
- package/dist/cli/{chunk-ADV2IB2C.mjs → chunk-PJOMRUFP.mjs} +5 -5
- package/dist/cli/{chunk-6V3LNYK5.mjs → chunk-S3ULSGFH.mjs} +2 -2
- package/dist/cli/{chunk-2XMFT44N.mjs → chunk-SGMDRYAD.mjs} +1 -1
- package/dist/cli/{chunk-MKESK3SW.mjs → chunk-SINNEITW.mjs} +4 -4
- package/dist/cli/{chunk-LE5KN7CZ.mjs → chunk-SXVYFOBG.mjs} +3 -3
- package/dist/cli/{chunk-FTBWFDF3.js → chunk-TNUM4DFA.js} +7 -7
- package/dist/cli/{chunk-E4QHTDPF.mjs → chunk-TZVW5JH3.mjs} +1 -1
- package/dist/cli/{chunk-W32KT6LM.js → chunk-UJYX4VLX.js} +5 -5
- package/dist/cli/{chunk-XTYHZEJ2.js → chunk-V4EYJKGJ.js} +36 -0
- package/dist/cli/{chunk-LEREPTAE.js → chunk-VAOGM5VS.js} +19 -19
- package/dist/cli/{chunk-6KG4KVTH.mjs → chunk-WCM64BRH.mjs} +5 -5
- package/dist/cli/{chunk-CQJCLHBE.js → chunk-WDHHQEWQ.js} +41 -41
- package/dist/cli/{chunk-5YF35HAV.js → chunk-WHYNYL3M.js} +6 -6
- package/dist/cli/{chunk-Q4HNK7JX.js → chunk-XIIQNSWA.js} +8 -8
- package/dist/cli/{chunk-VK5UTS5B.js → chunk-XL3CEPZA.js} +9 -9
- package/dist/cli/{chunk-G3UFDUYU.mjs → chunk-XYM3SQZN.mjs} +1 -1
- package/dist/cli/{chunk-SDAP5MCO.mjs → chunk-Y6647AIY.mjs} +2 -2
- package/dist/cli/{chunk-N3LPGGWD.mjs → chunk-Z2OYTXLK.mjs} +1 -1
- package/dist/cli/{chunk-DZFVVP3S.mjs → chunk-ZJFU2COM.mjs} +5 -5
- package/dist/cli/{chunk-5QL4GJB2.js → chunk-ZTJQKHLM.js} +2 -2
- package/dist/cli/command-docs.js +3 -2
- package/dist/cli/command-docs.mjs +2 -1
- package/dist/cli/concurrent-runs-help-DU5STFGB.mjs +21 -0
- package/dist/cli/concurrent-runs-help-HIPM5BBV.js +21 -0
- package/dist/cli/{csv-BWWJYV2C.js → csv-FBNS6SM3.js} +13 -13
- package/dist/cli/{csv-G5RQQ74W.mjs → csv-OJCMBODT.mjs} +4 -4
- package/dist/cli/{db-AJZHWB3V.mjs → db-43RQRF64.mjs} +6 -6
- package/dist/cli/{db-5KNDLADE.js → db-XRGJJ2KA.js} +27 -27
- package/dist/cli/{describe-QY5TKWVD.mjs → describe-I42Y3PWR.mjs} +17 -17
- package/dist/cli/describe-LWZCGAXU.js +49 -0
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/{executions-BCCW76BI.js → executions-LH46O4PG.js} +8 -8
- package/dist/cli/{executions-SJPH3MZT.mjs → executions-QXGVQHQF.mjs} +6 -6
- package/dist/cli/{feedback-S6SZOFGK.mjs → feedback-ELFINGTM.mjs} +6 -6
- package/dist/cli/{feedback-GF65JKK6.js → feedback-ERYIV6MT.js} +14 -14
- package/dist/cli/git-OV2TGYVE.js +25 -0
- package/dist/cli/{git-F5FT5YVB.mjs → git-V2XWB6LN.mjs} +5 -5
- package/dist/cli/index.js +153 -143
- package/dist/cli/index.mjs +53 -43
- package/dist/cli/{legacy-noops-NOA4P5NE.mjs → legacy-noops-ULL2EA37.mjs} +6 -6
- package/dist/cli/{legacy-noops-ECR6FS6U.js → legacy-noops-Y3OKNVWH.js} +9 -9
- package/dist/cli/{monitors-DEWBSURN.js → monitors-DNQXCRJZ.js} +100 -100
- package/dist/cli/{monitors-CTYSAGP4.mjs → monitors-L34NROM3.mjs} +7 -7
- package/dist/cli/{org-ZM2UUMZZ.js → org-JETA62CO.js} +86 -86
- package/dist/cli/{org-EKSKKT7H.mjs → org-L3HTEEXL.mjs} +6 -6
- package/dist/cli/{play-6JQOM6DE.js → play-GTGJRNWI.js} +473 -455
- package/dist/cli/{play-R2BH374J.mjs → play-JHGLSSJP.mjs} +35 -17
- package/dist/cli/{providers-CMIYHEMN.js → providers-7VH7PH2Q.js} +9 -9
- package/dist/cli/{providers-X7WMIWO4.mjs → providers-IQVHZJ27.mjs} +6 -6
- package/dist/cli/{quickstart-6HVPAMSW.js → quickstart-M25JNU3O.js} +6 -6
- package/dist/cli/{quickstart-ZZ7L6VZJ.mjs → quickstart-ZDBC45PM.mjs} +4 -4
- package/dist/cli/{run-OOHYH3GI.js → run-MPZGX3YD.js} +42 -42
- package/dist/cli/{run-FP32RKBU.mjs → run-NEEWZBTX.mjs} +22 -22
- package/dist/cli/search-HUN2YRQE.js +32 -0
- package/dist/cli/{search-BDDNC23Z.mjs → search-YXAFB4QQ.mjs} +7 -7
- package/dist/cli/{search-output-5VZIQQAM.js → search-output-4PH5HSJC.js} +6 -6
- package/dist/cli/{search-output-QXJ6CV5G.mjs → search-output-67BBIXIZ.mjs} +4 -4
- package/dist/cli/{secrets-Z7CQSQGC.mjs → secrets-445FER3C.mjs} +6 -6
- package/dist/cli/{secrets-EN2HQCO3.js → secrets-HLUBDN3H.js} +15 -15
- package/dist/cli/{sessions-I2H37OTJ.mjs → sessions-CCKXJNWT.mjs} +6 -6
- package/dist/cli/sessions-T2RNWC6B.js +22 -0
- package/dist/cli/{settings-IYSC5PPQ.mjs → settings-3XCZGGVF.mjs} +12 -12
- package/dist/cli/{settings-CTRAPFNZ.js → settings-WXJIQS5J.js} +85 -85
- package/dist/cli/{setup-XIN53GEW.js → setup-CKETRFFN.js} +49 -49
- package/dist/cli/{setup-PU3HOVI3.mjs → setup-TOSX6NER.mjs} +9 -9
- package/dist/cli/skills-FXM2RHHO.js +36 -0
- package/dist/cli/{skills-TYBML2ZO.mjs → skills-Q7NLCIJJ.mjs} +7 -7
- package/dist/cli/{tools-ZVNE6M6J.mjs → tools-GY6QMYTZ.mjs} +16 -16
- package/dist/cli/tools-XLVDZTWQ.js +56 -0
- package/dist/cli/{update-54WENBNT.mjs → update-A7JRUN4S.mjs} +9 -9
- package/dist/cli/update-AZINHILP.js +34 -0
- package/dist/cli/{views-7L75EZOJ.js → views-GUWC4SNI.js} +21 -21
- package/dist/cli/{views-EUBB4ONT.mjs → views-JG7FDEJR.mjs} +6 -6
- package/dist/cli/{workflow-EZVYCR6Y.js → workflow-CXNW7ICH.js} +17 -17
- package/dist/cli/{workflow-GUKGFJ72.mjs → workflow-QZCYSQ5G.mjs} +7 -7
- package/dist/{client-DZTnAv4B.d.ts → client-B1fixtK1.d.ts} +1 -1
- package/dist/{client-D0uDBybG.d.mts → client-CE4QBVbp.d.mts} +1 -1
- package/dist/{client-core-BhWf8Y1b.d.mts → client-core-2BkNBgrx.d.mts} +3 -1
- package/dist/{client-core-og3AP1LL.d.ts → client-core-C-3FVlVq.d.ts} +3 -1
- package/dist/{compiler-manifest-Bes3OVA3.d.ts → compiler-manifest-Cys06iYg.d.mts} +14 -0
- package/dist/{compiler-manifest-Bes3OVA3.d.mts → compiler-manifest-Cys06iYg.d.ts} +14 -0
- package/dist/{errors-Dc5r42ks.d.mts → errors-B6eMjKcr.d.mts} +1 -1
- package/dist/{errors-BJm4lLWc.d.ts → errors-rdOUqcU2.d.ts} +1 -1
- package/dist/{index-DTkiz_Ur.d.mts → index-CZdYO81A.d.mts} +1 -1
- package/dist/{index-BfV7mRPF.d.ts → index-ejWadAL5.d.ts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +118 -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/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 +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-O5Y2VYXK.js +0 -43
- package/dist/cli/describe-B6CN6CFJ.js +0 -49
- package/dist/cli/git-DX6NB7VF.js +0 -25
- package/dist/cli/search-34C6LFOJ.js +0 -32
- package/dist/cli/sessions-RYQX3NDD.js +0 -22
- package/dist/cli/skills-576CX7DK.js +0 -36
- package/dist/cli/tools-EXMUWA3Z.js +0 -56
- package/dist/cli/update-RAHETNL2.js +0 -34
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
+
var _chunkGWHA4DACjs = require('./chunk-GWHA4DAC.js');
|
|
4
|
+
|
|
5
|
+
|
|
3
6
|
var _chunkR7J7CJPZjs = require('./chunk-R7J7CJPZ.js');
|
|
4
7
|
|
|
5
8
|
// src/cli/command-docs.ts
|
|
@@ -381,6 +384,7 @@ Output:
|
|
|
381
384
|
Your runtime price, allowance used, paid overage, and reset date.
|
|
382
385
|
Usage is shown in standard sandbox minutes at your current rate and in credits.
|
|
383
386
|
${PLAY_RUNTIME_PRICING_NOTE}
|
|
387
|
+
${_chunkGWHA4DACjs.PRICING_PAGE_NOTE}
|
|
384
388
|
Cost:
|
|
385
389
|
Free to check.
|
|
386
390
|
[[cli:
|
|
@@ -1353,6 +1357,17 @@ Output:
|
|
|
1353
1357
|
held rateLimit window starts no run and returns the latest run with
|
|
1354
1358
|
rateLimited {latestRunId, nextAllowedAt, message}.
|
|
1355
1359
|
]]
|
|
1360
|
+
Concurrency:
|
|
1361
|
+
A workspace runs as many Plays at once as its plan allows; each run holds
|
|
1362
|
+
one slot while it executes. A run over the limit is not rejected: it waits
|
|
1363
|
+
and starts when another finishes. While it waits, run.activity.summary
|
|
1364
|
+
starts with "Queued:", run.activity.observation.activityId is
|
|
1365
|
+
"run:sandbox-capacity", and warnings names the plan that runs more.
|
|
1366
|
+
[[cli:
|
|
1367
|
+
deepline billing entitlements shows this workspace's plan and limit and
|
|
1368
|
+
every plan's limit; this help prints them too when you are signed in.
|
|
1369
|
+
]]
|
|
1370
|
+
${_chunkGWHA4DACjs.PRICING_PAGE_NOTE}
|
|
1356
1371
|
Cost:
|
|
1357
1372
|
Spends Deepline credits through the play's tool calls. Validation errors
|
|
1358
1373
|
(missing column, bad input) fail before any spend.
|
|
@@ -1593,6 +1608,17 @@ Output:
|
|
|
1593
1608
|
sqlQualifiedTableName, actions}, and next.*.command, each naming the MCP call for a follow-up.
|
|
1594
1609
|
With full: true the package is under package, beside the diagnostics.
|
|
1595
1610
|
]]
|
|
1611
|
+
Concurrency:
|
|
1612
|
+
A workspace runs as many Plays at once as its plan allows; each run holds
|
|
1613
|
+
one slot while it executes. A run over the limit is not rejected: it waits
|
|
1614
|
+
and starts when another finishes. While it waits, run.activity.summary
|
|
1615
|
+
starts with "Queued:", run.activity.observation.activityId is
|
|
1616
|
+
"run:sandbox-capacity", and warnings names the plan that runs more.
|
|
1617
|
+
[[cli:
|
|
1618
|
+
deepline billing entitlements shows this workspace's plan and limit and
|
|
1619
|
+
every plan's limit; this help prints them too when you are signed in.
|
|
1620
|
+
]]
|
|
1621
|
+
${_chunkGWHA4DACjs.PRICING_PAGE_NOTE}
|
|
1596
1622
|
Cost:
|
|
1597
1623
|
Free.
|
|
1598
1624
|
Avoid:
|
|
@@ -1612,6 +1638,16 @@ Output fields:
|
|
|
1612
1638
|
run.status queued, running, completed, failed, or stopped. Only
|
|
1613
1639
|
the last three are terminal.
|
|
1614
1640
|
run.activity the current step while running, null when finished.
|
|
1641
|
+
A queued capacity activity means it is waiting for a
|
|
1642
|
+
workspace concurrency slot, even if run.status says
|
|
1643
|
+
running. target.limit is the observed limit;
|
|
1644
|
+
target.limitSource=admission means it was pinned at
|
|
1645
|
+
launch. Plan changes apply to new launches, not that
|
|
1646
|
+
recorded limit. Scheduling retries automatically:
|
|
1647
|
+
watch the same run instead of resubmitting it.
|
|
1648
|
+
Read billing entitlements and billing plans for
|
|
1649
|
+
current limits and available plans. No queue ETA is
|
|
1650
|
+
guaranteed.
|
|
1615
1651
|
run.retries failure-driven retries since the last resume:
|
|
1616
1652
|
platformRecoveries {preCode, postCode} and
|
|
1617
1653
|
recoveryOutcome (none, recovering, recovered,
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkMVIVF4BWjs = require('./chunk-MVIVF4BW.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkAJVK4XC5js = require('./chunk-AJVK4XC5.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -330,7 +330,7 @@ function buildEnvironmentContext() {
|
|
|
330
330
|
node_version: process.version,
|
|
331
331
|
runtime: "Node.js",
|
|
332
332
|
hostname: _os.hostname.call(void 0, ),
|
|
333
|
-
agent_runtime:
|
|
333
|
+
agent_runtime: _chunkAJVK4XC5js.detectAgentRuntime.call(void 0, )
|
|
334
334
|
};
|
|
335
335
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
336
336
|
const normalized = _optionalChain([process, 'access', _6 => _6.env, 'access', _7 => _7[key], 'optionalAccess', _8 => _8.trim, 'call', _9 => _9()]);
|
|
@@ -351,18 +351,18 @@ function buildEnvironmentContext() {
|
|
|
351
351
|
return context;
|
|
352
352
|
}
|
|
353
353
|
function failureReportHeaders(apiKey) {
|
|
354
|
-
const agentSessionId =
|
|
354
|
+
const agentSessionId = _chunkAJVK4XC5js.agentSessionIdFromEnvironment.call(void 0, );
|
|
355
355
|
return {
|
|
356
|
-
...
|
|
356
|
+
..._chunkAJVK4XC5js.deploymentProtectionHeaders.call(void 0, ),
|
|
357
357
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
|
|
358
358
|
Authorization: `Bearer ${apiKey}`,
|
|
359
359
|
"Content-Type": "application/json",
|
|
360
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
360
|
+
"User-Agent": `deepline-ts-sdk/${_chunkAJVK4XC5js.SDK_VERSION}`,
|
|
361
361
|
"X-Deepline-Client-Family": "sdk",
|
|
362
362
|
"X-Deepline-CLI-Family": "sdk",
|
|
363
|
-
"X-Deepline-Agent-Runtime":
|
|
364
|
-
"X-Deepline-CLI-Version":
|
|
365
|
-
"X-Deepline-SDK-Version":
|
|
363
|
+
"X-Deepline-Agent-Runtime": _chunkAJVK4XC5js.detectAgentRuntime.call(void 0, ),
|
|
364
|
+
"X-Deepline-CLI-Version": _chunkAJVK4XC5js.SDK_VERSION,
|
|
365
|
+
"X-Deepline-SDK-Version": _chunkAJVK4XC5js.SDK_VERSION
|
|
366
366
|
};
|
|
367
367
|
}
|
|
368
368
|
async function postFailureReport(input) {
|
|
@@ -390,7 +390,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
390
390
|
if (isFailureReportingDisabled()) return false;
|
|
391
391
|
let apiKey = "";
|
|
392
392
|
try {
|
|
393
|
-
apiKey =
|
|
393
|
+
apiKey = _chunkMVIVF4BWjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
394
394
|
} catch (e2) {
|
|
395
395
|
return false;
|
|
396
396
|
}
|
|
@@ -417,7 +417,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
417
417
|
failure_code: failureCode2,
|
|
418
418
|
failure_stage: failureStage,
|
|
419
419
|
error_body: "Automatic Deepline skills installation failed.",
|
|
420
|
-
cli_version:
|
|
420
|
+
cli_version: _chunkAJVK4XC5js.SDK_VERSION,
|
|
421
421
|
context: {
|
|
422
422
|
environment: buildEnvironmentContext(),
|
|
423
423
|
skills_sync: {
|
|
@@ -537,7 +537,7 @@ function buildFailureReport(input) {
|
|
|
537
537
|
failure_kind: failureKind,
|
|
538
538
|
failure_code: code,
|
|
539
539
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
540
|
-
cli_version:
|
|
540
|
+
cli_version: _chunkAJVK4XC5js.SDK_VERSION,
|
|
541
541
|
context: {
|
|
542
542
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
543
543
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -557,8 +557,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
557
557
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
558
558
|
const exitCode = resolvedExitCode(input);
|
|
559
559
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
560
|
-
const baseUrl =
|
|
561
|
-
const apiKey =
|
|
560
|
+
const baseUrl = _chunkMVIVF4BWjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
561
|
+
const apiKey = _chunkMVIVF4BWjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
562
562
|
if (!apiKey) return false;
|
|
563
563
|
return postFailureReport({
|
|
564
564
|
baseUrl,
|
|
@@ -682,8 +682,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
682
682
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
683
683
|
var defaultBrowserCommandRunner = childProcess;
|
|
684
684
|
function getAuthedHttpClient() {
|
|
685
|
-
const config =
|
|
686
|
-
return { config, http: new (0,
|
|
685
|
+
const config = _chunkMVIVF4BWjs.resolveConfig.call(void 0, );
|
|
686
|
+
return { config, http: new (0, _chunkMVIVF4BWjs.HttpClient)(config) };
|
|
687
687
|
}
|
|
688
688
|
function stableOsUserId() {
|
|
689
689
|
try {
|
|
@@ -1023,7 +1023,7 @@ function collectLocalEnvInfo() {
|
|
|
1023
1023
|
os: `${process.platform} ${process.arch}`,
|
|
1024
1024
|
node_version: process.version,
|
|
1025
1025
|
home_dir: homeDir,
|
|
1026
|
-
agent_runtime:
|
|
1026
|
+
agent_runtime: _chunkAJVK4XC5js.detectAgentRuntime.call(void 0, )
|
|
1027
1027
|
};
|
|
1028
1028
|
const env = process.env;
|
|
1029
1029
|
const optional = {
|
|
@@ -1270,9 +1270,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
1270
1270
|
}
|
|
1271
1271
|
function withAgentCommandContext(value) {
|
|
1272
1272
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
1273
|
-
return
|
|
1273
|
+
return _chunkAJVK4XC5js.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
1274
1274
|
...valueRecord,
|
|
1275
|
-
command_context:
|
|
1275
|
+
command_context: _chunkMVIVF4BWjs.resolveCliCommandContext.call(void 0, )
|
|
1276
1276
|
} : value;
|
|
1277
1277
|
}
|
|
1278
1278
|
function printJson(value, fields) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
seedToolListScript
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JGFGWWOF.mjs";
|
|
4
4
|
import {
|
|
5
5
|
addDescribeOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Z2OYTXLK.mjs";
|
|
7
7
|
import {
|
|
8
8
|
describeLookupsFor,
|
|
9
9
|
describeName,
|
|
@@ -14,16 +14,16 @@ import {
|
|
|
14
14
|
} from "./chunk-7AOFSZJM.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineClient
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-AB6DFHGL.mjs";
|
|
18
18
|
import {
|
|
19
19
|
failureReportHeaders,
|
|
20
20
|
isFailureReportingDisabled,
|
|
21
21
|
printCommandEnvelope
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-37VFUQMU.mjs";
|
|
23
23
|
import {
|
|
24
24
|
autoDetectBaseUrl,
|
|
25
25
|
resolveApiKeyForBaseUrl
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-DWE2VE5I.mjs";
|
|
27
27
|
|
|
28
28
|
// src/cli/commands/describe.ts
|
|
29
29
|
import { writeFileSync } from "fs";
|
|
@@ -11,20 +11,20 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkM4DB6BBPjs = require('./chunk-M4DB6BBP.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkVAOGM5VSjs = require('./chunk-VAOGM5VS.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkMVIVF4BWjs = require('./chunk-MVIVF4BW.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkAJVK4XC5js = require('./chunk-AJVK4XC5.js');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunkRLX5ZFNXjs = require('./chunk-RLX5ZFNX.js');
|
|
@@ -145,7 +145,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
|
|
|
145
145
|
return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
|
|
146
146
|
}
|
|
147
147
|
function resolveLocalRoot() {
|
|
148
|
-
const target =
|
|
148
|
+
const target = _chunkMVIVF4BWjs.resolveProjectPinTarget.call(void 0, );
|
|
149
149
|
if (!target.ok) {
|
|
150
150
|
throw new Error(
|
|
151
151
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -156,7 +156,7 @@ function resolveLocalRoot() {
|
|
|
156
156
|
return target.dir;
|
|
157
157
|
}
|
|
158
158
|
function detectSkillsAgents(input) {
|
|
159
|
-
const runtime = _nullishCoalesce(input.runtime, () => (
|
|
159
|
+
const runtime = _nullishCoalesce(input.runtime, () => ( _chunkAJVK4XC5js.detectAgentRuntime.call(void 0, )));
|
|
160
160
|
const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
|
|
161
161
|
if (knownAgent) return [knownAgent];
|
|
162
162
|
const roots = [
|
|
@@ -171,11 +171,11 @@ function detectSkillsAgents(input) {
|
|
|
171
171
|
return detected.length > 0 ? detected : ["*"];
|
|
172
172
|
}
|
|
173
173
|
function skillsStatePathForScope(baseUrl, scope, root) {
|
|
174
|
-
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0,
|
|
174
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkMVIVF4BWjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
|
|
175
175
|
}
|
|
176
176
|
function buildSkillsPlan(input) {
|
|
177
177
|
const scopeArgs = input.scope === "global" ? ["--global"] : [];
|
|
178
|
-
const legacyNames = [...
|
|
178
|
+
const legacyNames = [..._chunkM4DB6BBPjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
|
|
179
179
|
(a, b) => a.localeCompare(b)
|
|
180
180
|
);
|
|
181
181
|
return {
|
|
@@ -189,7 +189,7 @@ function buildSkillsPlan(input) {
|
|
|
189
189
|
args: [
|
|
190
190
|
"exec",
|
|
191
191
|
"--yes",
|
|
192
|
-
`--package=${
|
|
192
|
+
`--package=${_chunkM4DB6BBPjs.SKILLS_NPX_PACKAGE}`,
|
|
193
193
|
"--",
|
|
194
194
|
"skills",
|
|
195
195
|
"remove",
|
|
@@ -205,11 +205,11 @@ function buildSkillsPlan(input) {
|
|
|
205
205
|
args: [
|
|
206
206
|
"exec",
|
|
207
207
|
"--yes",
|
|
208
|
-
`--package=${
|
|
208
|
+
`--package=${_chunkM4DB6BBPjs.SKILLS_NPX_PACKAGE}`,
|
|
209
209
|
"--",
|
|
210
210
|
"skills",
|
|
211
211
|
"add",
|
|
212
|
-
|
|
212
|
+
_chunkM4DB6BBPjs.skillsSourceUrl.call(void 0, input.baseUrl),
|
|
213
213
|
"--agent",
|
|
214
214
|
...input.agents,
|
|
215
215
|
...scopeArgs,
|
|
@@ -246,7 +246,7 @@ function readSkillsInstallState(path) {
|
|
|
246
246
|
}
|
|
247
247
|
function runProcess(command, args, cwd) {
|
|
248
248
|
return new Promise((resolve, reject) => {
|
|
249
|
-
const plan =
|
|
249
|
+
const plan = _chunkM4DB6BBPjs.resolveShellSpawn.call(void 0,
|
|
250
250
|
command,
|
|
251
251
|
args,
|
|
252
252
|
process.platform,
|
|
@@ -268,7 +268,7 @@ function runProcess(command, args, cwd) {
|
|
|
268
268
|
child.kill("SIGTERM");
|
|
269
269
|
reject(
|
|
270
270
|
new Error(
|
|
271
|
-
`${
|
|
271
|
+
`${_chunkM4DB6BBPjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
|
|
272
272
|
)
|
|
273
273
|
);
|
|
274
274
|
}, SKILLS_PROCESS_TIMEOUT_MS);
|
|
@@ -279,7 +279,7 @@ function runProcess(command, args, cwd) {
|
|
|
279
279
|
child.once("close", (code) => {
|
|
280
280
|
clearTimeout(timeout);
|
|
281
281
|
if (code && stderr.trim()) {
|
|
282
|
-
process.stderr.write(`${
|
|
282
|
+
process.stderr.write(`${_chunkM4DB6BBPjs.SKILLS_NPX_PACKAGE} exited ${code}.
|
|
283
283
|
`);
|
|
284
284
|
}
|
|
285
285
|
resolve(_nullishCoalesce(code, () => ( 1)));
|
|
@@ -287,7 +287,7 @@ function runProcess(command, args, cwd) {
|
|
|
287
287
|
});
|
|
288
288
|
}
|
|
289
289
|
async function showSkills(options, name) {
|
|
290
|
-
const baseUrl =
|
|
290
|
+
const baseUrl = _chunkMVIVF4BWjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
291
291
|
const url = name ? `${baseUrl}/.well-known/skills/${encodeURIComponent(name)}/SKILL.md` : `${baseUrl}/.well-known/skills/index.json`;
|
|
292
292
|
try {
|
|
293
293
|
const response = await fetch(url, {
|
|
@@ -300,7 +300,7 @@ async function showSkills(options, name) {
|
|
|
300
300
|
}
|
|
301
301
|
if (name) {
|
|
302
302
|
const markdown = await response.text();
|
|
303
|
-
|
|
303
|
+
_chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
|
|
304
304
|
{ ok: true, status: "completed", skill: { name, markdown } },
|
|
305
305
|
{ json: options.json, text: markdown }
|
|
306
306
|
);
|
|
@@ -310,7 +310,7 @@ async function showSkills(options, name) {
|
|
|
310
310
|
const skills = (_nullishCoalesce(index.skills, () => ( []))).filter(
|
|
311
311
|
(skill) => skill.install_surface === "v1" && skill.name
|
|
312
312
|
);
|
|
313
|
-
|
|
313
|
+
_chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
|
|
314
314
|
{
|
|
315
315
|
ok: true,
|
|
316
316
|
status: "completed",
|
|
@@ -327,7 +327,7 @@ Read one with: deepline skills show <name>
|
|
|
327
327
|
);
|
|
328
328
|
return 0;
|
|
329
329
|
} catch (error) {
|
|
330
|
-
|
|
330
|
+
_chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
|
|
331
331
|
{
|
|
332
332
|
ok: false,
|
|
333
333
|
status: "failed",
|
|
@@ -350,7 +350,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
350
350
|
scope = normalizeScope(options.scope);
|
|
351
351
|
root = scope === "local" ? resolveLocalRoot() : null;
|
|
352
352
|
} catch (error) {
|
|
353
|
-
|
|
353
|
+
_chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
|
|
354
354
|
{
|
|
355
355
|
ok: false,
|
|
356
356
|
status: "failed",
|
|
@@ -362,22 +362,22 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
362
362
|
);
|
|
363
363
|
return 2;
|
|
364
364
|
}
|
|
365
|
-
const baseUrl =
|
|
365
|
+
const baseUrl = _chunkMVIVF4BWjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
366
366
|
const catalog = {
|
|
367
|
-
skillNames: [...
|
|
368
|
-
version:
|
|
367
|
+
skillNames: [..._chunkM4DB6BBPjs.DEFAULT_SDK_SKILL_NAMES],
|
|
368
|
+
version: _chunkAJVK4XC5js.SDK_VERSION
|
|
369
369
|
};
|
|
370
370
|
const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
|
|
371
371
|
const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
|
|
372
372
|
if (options.dryRun) {
|
|
373
|
-
|
|
373
|
+
_chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
|
|
374
374
|
{ ok: true, status: "planned", dryRun: true, ...plan },
|
|
375
375
|
{ json: options.json }
|
|
376
376
|
);
|
|
377
377
|
return 0;
|
|
378
378
|
}
|
|
379
|
-
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !
|
|
380
|
-
|
|
379
|
+
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkM4DB6BBPjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
380
|
+
_chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
|
|
381
381
|
{
|
|
382
382
|
ok: true,
|
|
383
383
|
status: "current",
|
|
@@ -409,10 +409,10 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
409
409
|
}
|
|
410
410
|
if (scope === "local" && root) {
|
|
411
411
|
const managedNames = [
|
|
412
|
-
.../* @__PURE__ */ new Set([...plan.skillNames, ...
|
|
412
|
+
.../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkM4DB6BBPjs.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
413
413
|
];
|
|
414
414
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
415
|
-
|
|
415
|
+
_chunkMVIVF4BWjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
|
|
416
416
|
".deepline/",
|
|
417
417
|
...agentRoots.flatMap(
|
|
418
418
|
(agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
|
|
@@ -421,7 +421,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
421
421
|
}
|
|
422
422
|
let lease;
|
|
423
423
|
try {
|
|
424
|
-
lease = scope === "global" ? await
|
|
424
|
+
lease = scope === "global" ? await _chunkM4DB6BBPjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
|
|
425
425
|
waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
|
|
426
426
|
onWait: () => process.stderr.write(
|
|
427
427
|
"Waiting for a background Deepline skills refresh to finish...\n"
|
|
@@ -429,8 +429,8 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
429
429
|
}) : { release: () => {
|
|
430
430
|
} };
|
|
431
431
|
} catch (error) {
|
|
432
|
-
if (!(error instanceof
|
|
433
|
-
|
|
432
|
+
if (!(error instanceof _chunkM4DB6BBPjs.SkillsStateUnavailableError)) throw error;
|
|
433
|
+
_chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
|
|
434
434
|
{
|
|
435
435
|
ok: false,
|
|
436
436
|
status: "failed",
|
|
@@ -446,7 +446,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
446
446
|
return 5;
|
|
447
447
|
}
|
|
448
448
|
if (!lease) {
|
|
449
|
-
|
|
449
|
+
_chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
|
|
450
450
|
{
|
|
451
451
|
ok: false,
|
|
452
452
|
status: "failed",
|
|
@@ -455,7 +455,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
455
455
|
scope,
|
|
456
456
|
agents,
|
|
457
457
|
message: "A background Deepline skills refresh is still running for these agents.",
|
|
458
|
-
next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${
|
|
458
|
+
next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${_chunkM4DB6BBPjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
|
|
459
459
|
},
|
|
460
460
|
{ json: options.json }
|
|
461
461
|
);
|
|
@@ -504,7 +504,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
506
|
} catch (error) {
|
|
507
|
-
|
|
507
|
+
_chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
|
|
508
508
|
{
|
|
509
509
|
ok: false,
|
|
510
510
|
status: "failed",
|
|
@@ -520,7 +520,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
520
520
|
return 5;
|
|
521
521
|
}
|
|
522
522
|
if (missing.length > 0) {
|
|
523
|
-
|
|
523
|
+
_chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
|
|
524
524
|
{
|
|
525
525
|
ok: false,
|
|
526
526
|
status: "failed",
|
|
@@ -560,7 +560,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
560
560
|
{
|
|
561
561
|
schemaVersion: 1,
|
|
562
562
|
installedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
563
|
-
cliVersion:
|
|
563
|
+
cliVersion: _chunkAJVK4XC5js.SDK_VERSION,
|
|
564
564
|
scope,
|
|
565
565
|
agents,
|
|
566
566
|
skillsVersion: plan.version,
|
|
@@ -573,9 +573,9 @@ async function runSkillsInstallWithLease(input) {
|
|
|
573
573
|
"utf8"
|
|
574
574
|
);
|
|
575
575
|
if (scope === "global") {
|
|
576
|
-
|
|
576
|
+
_chunkM4DB6BBPjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
577
577
|
}
|
|
578
|
-
|
|
578
|
+
_chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
|
|
579
579
|
{
|
|
580
580
|
ok: true,
|
|
581
581
|
status: "complete",
|
|
@@ -624,7 +624,7 @@ Examples:
|
|
|
624
624
|
"after",
|
|
625
625
|
`
|
|
626
626
|
Notes:
|
|
627
|
-
This command reinstalls current Deepline-managed skills using ${
|
|
627
|
+
This command reinstalls current Deepline-managed skills using ${_chunkM4DB6BBPjs.SKILLS_NPX_PACKAGE},
|
|
628
628
|
then removes legacy Deepline skill names. Local scope writes into the resolved
|
|
629
629
|
persistent project.
|
|
630
630
|
|
|
@@ -636,13 +636,13 @@ Examples:
|
|
|
636
636
|
).action(async (options) => {
|
|
637
637
|
process.exitCode = await runSkillsCommand(options);
|
|
638
638
|
});
|
|
639
|
-
program.command(
|
|
639
|
+
program.command(_chunkM4DB6BBPjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
|
|
640
640
|
"--claim <token>",
|
|
641
641
|
"Owner token of the leases this child was started for."
|
|
642
642
|
).action(async (options) => {
|
|
643
643
|
const claim = _optionalChain([options, 'access', _9 => _9.claim, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]);
|
|
644
644
|
if (!claim) {
|
|
645
|
-
|
|
645
|
+
_chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
|
|
646
646
|
{
|
|
647
647
|
ok: false,
|
|
648
648
|
status: "failed",
|
|
@@ -655,7 +655,7 @@ Examples:
|
|
|
655
655
|
process.exitCode = 2;
|
|
656
656
|
return;
|
|
657
657
|
}
|
|
658
|
-
await
|
|
658
|
+
await _chunkM4DB6BBPjs.syncSdkSkillsIfNeeded.call(void 0, _chunkMVIVF4BWjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
659
659
|
mode: "inline",
|
|
660
660
|
notices: "defer",
|
|
661
661
|
claim
|
|
@@ -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 _chunkH6IA6XREjs = require('./chunk-H6IA6XRE.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkM4DB6BBPjs = require('./chunk-M4DB6BBP.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") _chunkM4DB6BBPjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
22
|
+
const compatibility = await _chunkH6IA6XREjs.traceCliSpan.call(void 0,
|
|
23
23
|
"cli.sdk_compatibility",
|
|
24
24
|
{ baseUrl, command: "plays run" },
|
|
25
|
-
() =>
|
|
25
|
+
() => _chunkM4DB6BBPjs.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
|
+
_chunkM4DB6BBPjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
34
34
|
quietAdvisory: true
|
|
35
35
|
});
|
|
36
36
|
}
|
|
@@ -32,7 +32,7 @@ var _chunkPMH4GLMDjs = require('./chunk-PMH4GLMD.js');
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkAJVK4XC5js = require('./chunk-AJVK4XC5.js');
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
var _chunk2GJZLIKWjs = require('./chunk-2GJZLIKW.js');
|
|
@@ -675,7 +675,7 @@ var ToolCalls = class {
|
|
|
675
675
|
idempotencyKey,
|
|
676
676
|
onResponse: (response2) => {
|
|
677
677
|
lastResponse = null;
|
|
678
|
-
atomicToolsSupported = response2.headers.get(
|
|
678
|
+
atomicToolsSupported = response2.headers.get(_chunkAJVK4XC5js.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
|
|
679
679
|
recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
|
|
680
680
|
if (_optionalChain([options, 'optionalAccess', _30 => _30.onServerTiming])) {
|
|
681
681
|
try {
|
|
@@ -1061,15 +1061,15 @@ function runtimeSelectionHeaders(runtime, env) {
|
|
|
1061
1061
|
}
|
|
1062
1062
|
const receivers = _optionalChain([env, 'access', _55 => _55.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _56 => _56.trim, 'call', _57 => _57()]);
|
|
1063
1063
|
return {
|
|
1064
|
-
[
|
|
1065
|
-
...receivers ? { [
|
|
1064
|
+
[_chunkAJVK4XC5js.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
1065
|
+
...receivers ? { [_chunkAJVK4XC5js.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
1066
1066
|
};
|
|
1067
1067
|
}
|
|
1068
1068
|
function playRunStartHeaders(runtime, env) {
|
|
1069
1069
|
const headers = runtimeSelectionHeaders(runtime, env);
|
|
1070
1070
|
const experimentSwitches = _optionalChain([env, 'access', _58 => _58.DEEPLINE_EXPERIMENT_SWITCHES, 'optionalAccess', _59 => _59.trim, 'call', _60 => _60()]);
|
|
1071
1071
|
if (!experimentSwitches) return headers;
|
|
1072
|
-
return { ...headers, [
|
|
1072
|
+
return { ...headers, [_chunkAJVK4XC5js.EXPERIMENT_SWITCHES_HEADER]: experimentSwitches };
|
|
1073
1073
|
}
|
|
1074
1074
|
function normalizeTestPolicyOverrides(value, source) {
|
|
1075
1075
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
@@ -1139,7 +1139,7 @@ var PlayClient = class {
|
|
|
1139
1139
|
return _chunkCQDQNZGHjs.startPlayRun.call(void 0,
|
|
1140
1140
|
this.http,
|
|
1141
1141
|
resolved.request,
|
|
1142
|
-
_optionalChain([options, 'optionalAccess', _68 => _68.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(
|
|
1142
|
+
_optionalChain([options, 'optionalAccess', _68 => _68.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkAJVK4XC5js.SDK_API_MAJOR) } : headers,
|
|
1143
1143
|
options
|
|
1144
1144
|
);
|
|
1145
1145
|
}
|
|
@@ -3243,7 +3243,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
|
|
|
3243
3243
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
3244
3244
|
);
|
|
3245
3245
|
}
|
|
3246
|
-
return { [
|
|
3246
|
+
return { [_chunkAJVK4XC5js.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
3247
3247
|
}
|
|
3248
3248
|
function sleep(ms) {
|
|
3249
3249
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -4155,7 +4155,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4155
4155
|
);
|
|
4156
4156
|
const headers = _optionalChain([options, 'optionalAccess', _192 => _192.cliAdmission]) ? {
|
|
4157
4157
|
...runtimeHeaders,
|
|
4158
|
-
"X-Deepline-API-Major": String(
|
|
4158
|
+
"X-Deepline-API-Major": String(_chunkAJVK4XC5js.SDK_API_MAJOR)
|
|
4159
4159
|
} : runtimeHeaders;
|
|
4160
4160
|
const http = this.http;
|
|
4161
4161
|
let submitted = false;
|