deepline 0.3.393 → 0.3.394
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/context.ts +477 -10
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +5 -1
- package/dist/bundling-sources/shared_libs/play-runtime/durable-call-policy.ts +28 -0
- package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +251 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-semantics.ts +12 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +10 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +25 -16
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +1 -0
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +69 -22
- package/dist/bundling-sources/shared_libs/plays/core.ts +1 -1
- package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +18 -0
- package/dist/cli/auth-IHKISLJQ.js +39 -0
- package/dist/cli/{auth-5PXHA232.mjs → auth-OSXDAVCF.mjs} +4 -4
- package/dist/cli/{billing-JFB2XLSO.js → billing-EKLYOXUY.js} +75 -75
- package/dist/cli/{billing-Z2N7ZAGM.mjs → billing-ZNNKX3UR.mjs} +4 -4
- package/dist/cli/{chunk-OXNOAD6Y.js → chunk-2MDDA7A4.js} +26 -26
- package/dist/cli/{chunk-PTDECJGP.js → chunk-354JCXA2.js} +50 -50
- package/dist/cli/{chunk-RKMB3N7K.mjs → chunk-3HU47EGZ.mjs} +48 -9
- package/dist/cli/{chunk-6I73X254.mjs → chunk-3HWALOL2.mjs} +1 -1
- package/dist/cli/{chunk-VIQJIX2P.js → chunk-4P27AXEA.js} +65 -65
- package/dist/cli/{chunk-UOGZUA24.mjs → chunk-5BB2RGAX.mjs} +18 -8
- package/dist/cli/{chunk-RWHWF5ZJ.js → chunk-6YAUMG27.js} +1 -1
- package/dist/cli/{chunk-HLEESTCH.mjs → chunk-BP33SIZF.mjs} +1 -1
- package/dist/cli/{chunk-CDFH2DYL.js → chunk-CS6RAIVY.js} +4 -4
- package/dist/cli/{chunk-2HAD745V.js → chunk-E23BQ5SC.js} +9 -9
- package/dist/cli/{chunk-LMMEAMA7.mjs → chunk-FJGW5GXU.mjs} +1 -1
- package/dist/cli/{chunk-Q26LUSQ2.mjs → chunk-JHIJIHFB.mjs} +1 -1
- package/dist/cli/{chunk-PWSWAN7Q.js → chunk-KB4SDX5S.js} +48 -9
- package/dist/cli/{chunk-M7Y7JYZX.js → chunk-KGNTKMRG.js} +6 -6
- package/dist/cli/{chunk-4XX6443T.js → chunk-KI635JN4.js} +59 -59
- package/dist/cli/{chunk-Z3OOZM5L.js → chunk-KIUMEOM5.js} +8 -8
- package/dist/cli/{chunk-KIYU2TGL.mjs → chunk-M57J2SK4.mjs} +2 -2
- package/dist/cli/{chunk-FQ6VHPW4.mjs → chunk-MFB2VKBO.mjs} +2 -2
- package/dist/cli/{chunk-MS6GUPBB.js → chunk-MH73HMPV.js} +3 -3
- package/dist/cli/{chunk-AARX5L4B.js → chunk-MLPU5SMZ.js} +2 -2
- package/dist/cli/{chunk-5PRVMXKB.mjs → chunk-NR3DFKNF.mjs} +1 -1
- package/dist/cli/{chunk-W4WOMXR3.js → chunk-QIQBYKLB.js} +15 -15
- package/dist/cli/{chunk-VIWE6WRK.js → chunk-RBJYWRCF.js} +260 -250
- package/dist/cli/{chunk-LZPCDB7U.mjs → chunk-TJI2EN6K.mjs} +1 -1
- package/dist/cli/{chunk-4TCT77UF.js → chunk-URWF7NGQ.js} +6 -1
- package/dist/cli/{chunk-5KWKZIQR.mjs → chunk-UXFSWG3Q.mjs} +4 -4
- package/dist/cli/{chunk-L2SYLGRP.js → chunk-VK6FYZLP.js} +8 -8
- package/dist/cli/{chunk-7HR7BGZL.mjs → chunk-X63FDZJZ.mjs} +3 -3
- package/dist/cli/{chunk-4PT2VA3A.mjs → chunk-XRQ2AQL7.mjs} +2 -2
- package/dist/cli/{chunk-STNYIMIV.mjs → chunk-XXUDVEXK.mjs} +6 -6
- package/dist/cli/{chunk-PQSA443V.mjs → chunk-ZI2ZNDJK.mjs} +6 -1
- package/dist/cli/{chunk-2LGC4EFT.mjs → chunk-ZYBGA4AR.mjs} +3 -3
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-KJWZHKCH.mjs → csv-5AXRB35H.mjs} +3 -3
- package/dist/cli/{csv-P3Z3YE7H.js → csv-LU7O75WE.js} +12 -12
- package/dist/cli/{db-NCM4CQIS.mjs → db-7XP5UWEW.mjs} +4 -4
- package/dist/cli/{db-NUZGJNQC.js → db-F7YTFKVM.js} +29 -29
- package/dist/cli/{describe-YGSEN5WC.js → describe-FRH32RDV.js} +20 -20
- package/dist/cli/{describe-WT6MM2GO.mjs → describe-K4ES5LIL.mjs} +10 -10
- package/dist/cli/{executions-XS2IPJ4W.mjs → executions-IEHEHJUO.mjs} +4 -4
- package/dist/cli/{executions-PCOLHN7Q.js → executions-RZV5XPT2.js} +6 -6
- package/dist/cli/{feedback-4MSH7TFU.js → feedback-3P65QTX3.js} +7 -7
- package/dist/cli/{feedback-CCLTS5SV.mjs → feedback-FPUVZBAN.mjs} +3 -3
- package/dist/cli/{git-K2DHPMPC.mjs → git-GLVVP7TY.mjs} +4 -4
- package/dist/cli/git-MFFAWVVX.js +23 -0
- package/dist/cli/index.js +95 -95
- package/dist/cli/index.mjs +33 -33
- package/dist/cli/{legacy-noops-B5S4AR3P.mjs → legacy-noops-3MOI6NBM.mjs} +4 -4
- package/dist/cli/{legacy-noops-GPNOPFXV.js → legacy-noops-XKSGZR7Q.js} +7 -7
- package/dist/cli/{monitors-JLMAIPRG.mjs → monitors-FTBGNEFG.mjs} +4 -4
- package/dist/cli/{monitors-ZAWD7NSN.js → monitors-NZ2DYNST.js} +85 -85
- package/dist/cli/{org-P2KN4CES.js → org-MCKDQXIV.js} +64 -64
- package/dist/cli/{org-T3JTHP4G.mjs → org-V2J5RBCN.mjs} +4 -4
- package/dist/cli/{play-NK6BLRGL.mjs → play-AJFGME3B.mjs} +9 -9
- package/dist/cli/play-WLSN2EO2.js +158 -0
- package/dist/cli/{providers-5QRZN3DT.js → providers-2JEZ2264.js} +7 -7
- package/dist/cli/{providers-3NQRA7IT.mjs → providers-I6RQJZFZ.mjs} +4 -4
- package/dist/cli/{quickstart-PIA2JGPV.mjs → quickstart-BIDQDMO4.mjs} +3 -3
- package/dist/cli/{quickstart-R7NUZGNW.js → quickstart-GJ2RPDU3.js} +5 -5
- package/dist/cli/search-5VN4YD4I.js +27 -0
- package/dist/cli/{search-AIDIIGLY.mjs → search-ELRXFWG5.mjs} +5 -5
- package/dist/cli/{secrets-BT3PGMWN.js → secrets-53IT6VXD.js} +13 -13
- package/dist/cli/{secrets-OQNHL45O.mjs → secrets-SQXGZXIC.mjs} +4 -4
- package/dist/cli/{sessions-SF7WJPJP.mjs → sessions-2X5QF7SL.mjs} +4 -4
- package/dist/cli/{sessions-EYXWOSWK.js → sessions-CAV5M77Y.js} +5 -5
- package/dist/cli/{settings-BA3GHBOD.js → settings-532WNAZO.js} +74 -74
- package/dist/cli/{settings-Y57JTFDD.mjs → settings-7P67VGCJ.mjs} +7 -7
- package/dist/cli/{setup-RERXYC66.js → setup-6L2VSUWJ.js} +41 -41
- package/dist/cli/{setup-7GR5GBHA.mjs → setup-QGGBV2LE.mjs} +6 -6
- package/dist/cli/{skills-SJWIQAV5.mjs → skills-3FE62WBG.mjs} +4 -4
- package/dist/cli/skills-S6NPZAN7.js +28 -0
- package/dist/cli/tools-647RLXQS.js +41 -0
- package/dist/cli/{tools-ZF3JXPNL.mjs → tools-DMR25DEF.mjs} +7 -7
- package/dist/cli/{update-FFFYQAOJ.mjs → update-6RZMHJZP.mjs} +6 -6
- package/dist/cli/update-WVTSC3EM.js +28 -0
- package/dist/cli/{workflow-XVFEEGAS.mjs → workflow-L2DQRE6R.mjs} +5 -5
- package/dist/cli/{workflow-SZJVQH4T.js → workflow-TX4F2PIX.js} +15 -15
- package/dist/{client-DU5dtHDy.d.mts → client-BktIPdIj.d.mts} +1 -1
- package/dist/{client-mCE88hC4.d.ts → client-C3O1Ipf3.d.ts} +1 -1
- package/dist/{compiler-manifest-DE4RdAiY.d.ts → compiler-manifest-DLxUY5kI.d.mts} +65 -11
- package/dist/{compiler-manifest-DE4RdAiY.d.mts → compiler-manifest-DLxUY5kI.d.ts} +65 -11
- package/dist/{index-Bi-f7HFT.d.ts → index-B_GM9E3q.d.ts} +1 -1
- package/dist/{index-BI6nWgaV.d.mts → index-SCb0NvDb.d.mts} +1 -1
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +7 -7
- package/dist/index.mjs +4 -4
- package/dist/install-integrity.json +85 -84
- 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 +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/package.json +1 -1
- package/dist/cli/auth-P3MVDTXM.js +0 -39
- package/dist/cli/git-RNM45FX4.js +0 -23
- package/dist/cli/play-PDXR6JFB.js +0 -158
- package/dist/cli/search-QRWL7MFM.js +0 -27
- package/dist/cli/skills-V7EY75HB.js +0 -28
- package/dist/cli/tools-H5HLBCHH.js +0 -41
- package/dist/cli/update-472HA3LT.js +0 -28
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkKGNTKMRGjs = require('./chunk-KGNTKMRG.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -22,13 +22,13 @@ var _chunkM7Y7JYZXjs = require('./chunk-M7Y7JYZX.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkCS6RAIVYjs = require('./chunk-CS6RAIVY.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunk6YAUMG27js = require('./chunk-6YAUMG27.js');
|
|
32
32
|
|
|
33
33
|
// src/cli/commands/skills.ts
|
|
34
34
|
var _child_process = require('child_process');
|
|
@@ -126,7 +126,7 @@ function skillsSourceUrl(baseUrl) {
|
|
|
126
126
|
function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
|
|
127
127
|
const skillNames = Array.isArray(skillName) ? skillName : [skillName];
|
|
128
128
|
const [firstSkillName, ...extraSkillNames] = skillNames;
|
|
129
|
-
const agents = _nullishCoalesce(options.agents, () => (
|
|
129
|
+
const agents = _nullishCoalesce(options.agents, () => ( _chunkCS6RAIVYjs.DEFAULT_SKILL_AGENTS));
|
|
130
130
|
const values = {
|
|
131
131
|
skills_index_url: skillsIndexUrl(baseUrl),
|
|
132
132
|
skills_source_url: skillsSourceUrl(baseUrl),
|
|
@@ -202,7 +202,7 @@ function shouldSkipCompatibilityCheck() {
|
|
|
202
202
|
return value === "1" || value === "true" || value === "yes";
|
|
203
203
|
}
|
|
204
204
|
function sdkCompatibilityCachePath(baseUrl, homeDir = _os.homedir.call(void 0, )) {
|
|
205
|
-
return _path.join.call(void 0,
|
|
205
|
+
return _path.join.call(void 0, _chunkCS6RAIVYjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
|
|
206
206
|
}
|
|
207
207
|
function legacySdkCompatibilityCachePath(homeDir = _os.homedir.call(void 0, )) {
|
|
208
208
|
return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
|
|
@@ -210,9 +210,9 @@ function legacySdkCompatibilityCachePath(homeDir = _os.homedir.call(void 0, )) {
|
|
|
210
210
|
function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
211
211
|
return JSON.stringify({
|
|
212
212
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
213
|
-
version:
|
|
214
|
-
apiContract:
|
|
215
|
-
apiMajor:
|
|
213
|
+
version: _chunkCS6RAIVYjs.SDK_VERSION,
|
|
214
|
+
apiContract: _chunkCS6RAIVYjs.SDK_API_CONTRACT,
|
|
215
|
+
apiMajor: _chunkCS6RAIVYjs.SDK_API_MAJOR,
|
|
216
216
|
command: _optionalChain([command, 'optionalAccess', _7 => _7.trim, 'call', _8 => _8()]) || null,
|
|
217
217
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
218
218
|
});
|
|
@@ -220,8 +220,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
|
220
220
|
function legacyCompatibilityCacheKey(baseUrl, command) {
|
|
221
221
|
return JSON.stringify({
|
|
222
222
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
223
|
-
version:
|
|
224
|
-
apiContract:
|
|
223
|
+
version: _chunkCS6RAIVYjs.SDK_VERSION,
|
|
224
|
+
apiContract: _chunkCS6RAIVYjs.SDK_API_CONTRACT,
|
|
225
225
|
command: _optionalChain([command, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || null
|
|
226
226
|
});
|
|
227
227
|
}
|
|
@@ -314,7 +314,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
314
314
|
);
|
|
315
315
|
try {
|
|
316
316
|
const url = new URL("/api/v2/sdk/compat", baseUrl);
|
|
317
|
-
url.searchParams.set("version",
|
|
317
|
+
url.searchParams.set("version", _chunkCS6RAIVYjs.SDK_VERSION);
|
|
318
318
|
if (_optionalChain([options, 'access', _19 => _19.command, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()])) {
|
|
319
319
|
url.searchParams.set("command", options.command.trim());
|
|
320
320
|
}
|
|
@@ -322,7 +322,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
322
322
|
url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
|
|
323
323
|
url.searchParams.set(
|
|
324
324
|
"skills_cli_capability",
|
|
325
|
-
String(
|
|
325
|
+
String(_chunk6YAUMG27js.SDK_RELEASE.packageCapabilities.skillsGuidance)
|
|
326
326
|
);
|
|
327
327
|
}
|
|
328
328
|
if (options.catalog) {
|
|
@@ -331,13 +331,13 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
331
331
|
const response = await fetch(url, {
|
|
332
332
|
method: "GET",
|
|
333
333
|
headers: {
|
|
334
|
-
...
|
|
335
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
336
|
-
"X-Deepline-SDK-Version":
|
|
337
|
-
"X-Deepline-API-Major": String(
|
|
338
|
-
"X-Deepline-API-Contract":
|
|
334
|
+
..._chunkCS6RAIVYjs.deploymentProtectionHeaders.call(void 0, ),
|
|
335
|
+
"User-Agent": `deepline-ts-sdk/${_chunkCS6RAIVYjs.SDK_VERSION}`,
|
|
336
|
+
"X-Deepline-SDK-Version": _chunkCS6RAIVYjs.SDK_VERSION,
|
|
337
|
+
"X-Deepline-API-Major": String(_chunkCS6RAIVYjs.SDK_API_MAJOR),
|
|
338
|
+
"X-Deepline-API-Contract": _chunkCS6RAIVYjs.SDK_API_CONTRACT,
|
|
339
339
|
"X-Deepline-CLI-Update-Preferences": "1",
|
|
340
|
-
...options.catalog ? { Authorization: `Bearer ${
|
|
340
|
+
...options.catalog ? { Authorization: `Bearer ${_chunkCS6RAIVYjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {}
|
|
341
341
|
},
|
|
342
342
|
signal: controller.signal
|
|
343
343
|
});
|
|
@@ -590,7 +590,7 @@ function buildEnvironmentContext() {
|
|
|
590
590
|
node_version: process.version,
|
|
591
591
|
runtime: "Node.js",
|
|
592
592
|
hostname: _os.hostname.call(void 0, ),
|
|
593
|
-
agent_runtime:
|
|
593
|
+
agent_runtime: _chunkCS6RAIVYjs.detectAgentRuntime.call(void 0, )
|
|
594
594
|
};
|
|
595
595
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
596
596
|
const normalized = _optionalChain([process, 'access', _32 => _32.env, 'access', _33 => _33[key], 'optionalAccess', _34 => _34.trim, 'call', _35 => _35()]);
|
|
@@ -612,15 +612,15 @@ function buildEnvironmentContext() {
|
|
|
612
612
|
}
|
|
613
613
|
function failureReportHeaders(apiKey) {
|
|
614
614
|
return {
|
|
615
|
-
...
|
|
615
|
+
..._chunkCS6RAIVYjs.deploymentProtectionHeaders.call(void 0, ),
|
|
616
616
|
Authorization: `Bearer ${apiKey}`,
|
|
617
617
|
"Content-Type": "application/json",
|
|
618
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
618
|
+
"User-Agent": `deepline-ts-sdk/${_chunkCS6RAIVYjs.SDK_VERSION}`,
|
|
619
619
|
"X-Deepline-Client-Family": "sdk",
|
|
620
620
|
"X-Deepline-CLI-Family": "sdk",
|
|
621
|
-
"X-Deepline-Agent-Runtime":
|
|
622
|
-
"X-Deepline-CLI-Version":
|
|
623
|
-
"X-Deepline-SDK-Version":
|
|
621
|
+
"X-Deepline-Agent-Runtime": _chunkCS6RAIVYjs.detectAgentRuntime.call(void 0, ),
|
|
622
|
+
"X-Deepline-CLI-Version": _chunkCS6RAIVYjs.SDK_VERSION,
|
|
623
|
+
"X-Deepline-SDK-Version": _chunkCS6RAIVYjs.SDK_VERSION
|
|
624
624
|
};
|
|
625
625
|
}
|
|
626
626
|
async function postFailureReport(input) {
|
|
@@ -648,7 +648,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
648
648
|
if (isFailureReportingDisabled()) return false;
|
|
649
649
|
let apiKey = "";
|
|
650
650
|
try {
|
|
651
|
-
apiKey =
|
|
651
|
+
apiKey = _chunkCS6RAIVYjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
652
652
|
} catch (e7) {
|
|
653
653
|
return false;
|
|
654
654
|
}
|
|
@@ -675,7 +675,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
675
675
|
failure_code: failureCode2,
|
|
676
676
|
failure_stage: failureStage,
|
|
677
677
|
error_body: "Automatic Deepline skills installation failed.",
|
|
678
|
-
cli_version:
|
|
678
|
+
cli_version: _chunkCS6RAIVYjs.SDK_VERSION,
|
|
679
679
|
context: {
|
|
680
680
|
environment: buildEnvironmentContext(),
|
|
681
681
|
skills_sync: {
|
|
@@ -795,7 +795,7 @@ function buildFailureReport(input) {
|
|
|
795
795
|
failure_kind: failureKind,
|
|
796
796
|
failure_code: code,
|
|
797
797
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
798
|
-
cli_version:
|
|
798
|
+
cli_version: _chunkCS6RAIVYjs.SDK_VERSION,
|
|
799
799
|
context: {
|
|
800
800
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
801
801
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -815,8 +815,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
815
815
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
816
816
|
const exitCode = resolvedExitCode(input);
|
|
817
817
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
818
|
-
const baseUrl =
|
|
819
|
-
const apiKey =
|
|
818
|
+
const baseUrl = _chunkCS6RAIVYjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
819
|
+
const apiKey = _chunkCS6RAIVYjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
820
820
|
if (!apiKey) return false;
|
|
821
821
|
return postFailureReport({
|
|
822
822
|
baseUrl,
|
|
@@ -837,25 +837,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
|
|
|
837
837
|
var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
|
|
838
838
|
var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
|
|
839
839
|
function shouldSkipSkillsSync() {
|
|
840
|
-
if (
|
|
840
|
+
if (_chunkCS6RAIVYjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
|
|
841
841
|
return true;
|
|
842
842
|
}
|
|
843
843
|
const value = _optionalChain([process, 'access', _56 => _56.env, 'access', _57 => _57.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _58 => _58.trim, 'call', _59 => _59(), 'access', _60 => _60.toLowerCase, 'call', _61 => _61()]);
|
|
844
844
|
return value === "1" || value === "true" || value === "yes" || value === "on";
|
|
845
845
|
}
|
|
846
846
|
function unavailableSkillsNoticePath(baseUrl) {
|
|
847
|
-
return _path.join.call(void 0,
|
|
847
|
+
return _path.join.call(void 0, _chunkCS6RAIVYjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
|
|
848
848
|
}
|
|
849
849
|
var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
|
|
850
850
|
var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
|
|
851
|
-
var agentLeaseSegment =
|
|
851
|
+
var agentLeaseSegment = _chunkCS6RAIVYjs.skillsAgentPathSegment;
|
|
852
852
|
function sortedLeaseAgents(agents) {
|
|
853
|
-
const expanded = agents.includes("*") ? [...agents, ...
|
|
853
|
+
const expanded = agents.includes("*") ? [...agents, ..._chunkCS6RAIVYjs.KNOWN_SKILL_AGENTS] : agents;
|
|
854
854
|
return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
|
|
855
855
|
}
|
|
856
856
|
function inProgressSkillsSyncPath(baseUrl, agent) {
|
|
857
857
|
return _path.join.call(void 0,
|
|
858
|
-
|
|
858
|
+
_chunkCS6RAIVYjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
859
859
|
`skills-sync-in-progress-${agentLeaseSegment(agent)}`
|
|
860
860
|
);
|
|
861
861
|
}
|
|
@@ -1014,7 +1014,7 @@ var SkillsStateUnavailableError = class extends Error {
|
|
|
1014
1014
|
constructor(baseUrl, error) {
|
|
1015
1015
|
const detail = error instanceof Error ? error.message : String(error);
|
|
1016
1016
|
super(
|
|
1017
|
-
`Could not save skills state in ${
|
|
1017
|
+
`Could not save skills state in ${_chunkCS6RAIVYjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
|
|
1018
1018
|
);
|
|
1019
1019
|
this.name = "SkillsStateUnavailableError";
|
|
1020
1020
|
}
|
|
@@ -1099,7 +1099,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
|
|
|
1099
1099
|
}
|
|
1100
1100
|
function deferredSkillsNoticePath(baseUrl, agents) {
|
|
1101
1101
|
return _path.join.call(void 0,
|
|
1102
|
-
|
|
1102
|
+
_chunkCS6RAIVYjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1103
1103
|
`skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
|
|
1104
1104
|
);
|
|
1105
1105
|
}
|
|
@@ -1133,8 +1133,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
|
|
|
1133
1133
|
if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
|
|
1134
1134
|
}
|
|
1135
1135
|
function flushDeferredSkillsSyncNotices(baseUrl) {
|
|
1136
|
-
if (shouldSkipSkillsSync() ||
|
|
1137
|
-
const agents =
|
|
1136
|
+
if (shouldSkipSkillsSync() || _chunkCS6RAIVYjs.hasActivePluginSkills.call(void 0, )) return;
|
|
1137
|
+
const agents = _chunkCS6RAIVYjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1138
1138
|
if (agents.length === 0) return;
|
|
1139
1139
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1140
1140
|
}
|
|
@@ -1150,7 +1150,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
|
|
|
1150
1150
|
}
|
|
1151
1151
|
function failedSkillsSyncPath(baseUrl, agents) {
|
|
1152
1152
|
return _path.join.call(void 0,
|
|
1153
|
-
|
|
1153
|
+
_chunkCS6RAIVYjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1154
1154
|
`skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
|
|
1155
1155
|
);
|
|
1156
1156
|
}
|
|
@@ -1179,7 +1179,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
|
|
|
1179
1179
|
if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
|
|
1180
1180
|
writeMarkedSkillsSyncVersion(path, remoteVersion);
|
|
1181
1181
|
const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
|
|
1182
|
-
const manualCommand = _optionalChain([probes, 'optionalAccess', _65 => _65.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames,
|
|
1182
|
+
const manualCommand = _optionalChain([probes, 'optionalAccess', _65 => _65.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkCS6RAIVYjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
|
|
1183
1183
|
const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _66 => _66.bunx]) === "missing" && probes.npx === "missing" ? "neither `bunx` nor `npx` was found on PATH. Make one available." : `installer version check failed for ${Object.entries(_nullishCoalesce(probes, () => ( {}))).filter(([, result]) => result === "failed").map(([command]) => `\`${command}\``).join(" and ")}. Check those commands with --version.`;
|
|
1184
1184
|
notice(
|
|
1185
1185
|
`Deepline agent skills are out of date, but ${explanation} To install manually, run:
|
|
@@ -1267,7 +1267,7 @@ function buildSdkSkillNames(v1SkillNames2) {
|
|
|
1267
1267
|
return sortedUniqueSkillNames(v1SkillNames2);
|
|
1268
1268
|
}
|
|
1269
1269
|
function isDefaultAgentSet(agents) {
|
|
1270
|
-
return agents.length ===
|
|
1270
|
+
return agents.length === _chunkCS6RAIVYjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkCS6RAIVYjs.DEFAULT_SKILL_AGENTS[index]);
|
|
1271
1271
|
}
|
|
1272
1272
|
function safeSkillFilePath(value) {
|
|
1273
1273
|
if (typeof value !== "string" || !value) return false;
|
|
@@ -1424,10 +1424,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
|
|
|
1424
1424
|
method: "POST",
|
|
1425
1425
|
headers: { "Content-Type": "application/json" },
|
|
1426
1426
|
body: JSON.stringify({
|
|
1427
|
-
sdk_cli: { version:
|
|
1427
|
+
sdk_cli: { version: _chunkCS6RAIVYjs.SDK_VERSION },
|
|
1428
1428
|
skills: {
|
|
1429
1429
|
version: localVersion,
|
|
1430
|
-
capability:
|
|
1430
|
+
capability: _chunk6YAUMG27js.SDK_RELEASE.packageCapabilities.skillsGuidance
|
|
1431
1431
|
}
|
|
1432
1432
|
}),
|
|
1433
1433
|
signal: controller.signal
|
|
@@ -1466,7 +1466,7 @@ function probeInstallers(timeoutMs) {
|
|
|
1466
1466
|
}
|
|
1467
1467
|
function noInstallerProbePath(baseUrl) {
|
|
1468
1468
|
return _path.join.call(void 0,
|
|
1469
|
-
|
|
1469
|
+
_chunkCS6RAIVYjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1470
1470
|
"skills-sync-no-installer-unknown.json"
|
|
1471
1471
|
);
|
|
1472
1472
|
}
|
|
@@ -1545,7 +1545,7 @@ function temporarySkillsSyncSkipCommand() {
|
|
|
1545
1545
|
function resolveSkillsInstallSpawn(install, platform2 = process.platform) {
|
|
1546
1546
|
return resolveShellSpawn(install.command, install.args, platform2);
|
|
1547
1547
|
}
|
|
1548
|
-
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents =
|
|
1548
|
+
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkCS6RAIVYjs.DEFAULT_SKILL_AGENTS, knownProbes) {
|
|
1549
1549
|
const commands = [];
|
|
1550
1550
|
const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
|
|
1551
1551
|
if (probes.bunx === "available") {
|
|
@@ -1697,11 +1697,11 @@ function writeSdkSkillsStatusLine(line) {
|
|
|
1697
1697
|
}
|
|
1698
1698
|
async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
1699
1699
|
if (shouldSkipSkillsSync()) return;
|
|
1700
|
-
const usingPluginSkills =
|
|
1700
|
+
const usingPluginSkills = _chunkCS6RAIVYjs.hasActivePluginSkills.call(void 0, );
|
|
1701
1701
|
if (usingPluginSkills) {
|
|
1702
1702
|
return;
|
|
1703
1703
|
}
|
|
1704
|
-
const agents =
|
|
1704
|
+
const agents = _chunkCS6RAIVYjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1705
1705
|
if (options.mode === "detached" && agents.length > 0) {
|
|
1706
1706
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1707
1707
|
}
|
|
@@ -1729,7 +1729,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
1729
1729
|
return;
|
|
1730
1730
|
}
|
|
1731
1731
|
try {
|
|
1732
|
-
const localVersion =
|
|
1732
|
+
const localVersion = _chunkCS6RAIVYjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
1733
1733
|
const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
|
|
1734
1734
|
needsUpdate: options.update.needs_update,
|
|
1735
1735
|
remoteVersion: options.update.remote.version
|
|
@@ -1895,7 +1895,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1895
1895
|
}
|
|
1896
1896
|
}
|
|
1897
1897
|
runLegacySkillsCleanup(agents);
|
|
1898
|
-
if (!
|
|
1898
|
+
if (!_chunkCS6RAIVYjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
|
|
1899
1899
|
notice(
|
|
1900
1900
|
"Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
|
|
1901
1901
|
);
|
|
@@ -1954,7 +1954,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
|
|
|
1954
1954
|
return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
|
|
1955
1955
|
}
|
|
1956
1956
|
function resolveLocalRoot() {
|
|
1957
|
-
const target =
|
|
1957
|
+
const target = _chunkCS6RAIVYjs.resolveProjectPinTarget.call(void 0, );
|
|
1958
1958
|
if (!target.ok) {
|
|
1959
1959
|
throw new Error(
|
|
1960
1960
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -1965,7 +1965,7 @@ function resolveLocalRoot() {
|
|
|
1965
1965
|
return target.dir;
|
|
1966
1966
|
}
|
|
1967
1967
|
function detectSkillsAgents(input) {
|
|
1968
|
-
const runtime = _nullishCoalesce(input.runtime, () => (
|
|
1968
|
+
const runtime = _nullishCoalesce(input.runtime, () => ( _chunkCS6RAIVYjs.detectAgentRuntime.call(void 0, )));
|
|
1969
1969
|
const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
|
|
1970
1970
|
if (knownAgent) return [knownAgent];
|
|
1971
1971
|
const roots = [
|
|
@@ -1980,7 +1980,7 @@ function detectSkillsAgents(input) {
|
|
|
1980
1980
|
return detected.length > 0 ? detected : ["*"];
|
|
1981
1981
|
}
|
|
1982
1982
|
function skillsStatePathForScope(baseUrl, scope, root) {
|
|
1983
|
-
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0,
|
|
1983
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkCS6RAIVYjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
|
|
1984
1984
|
}
|
|
1985
1985
|
function buildSkillsPlan(input) {
|
|
1986
1986
|
const scopeArgs = input.scope === "global" ? ["--global"] : [];
|
|
@@ -2102,7 +2102,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
2102
2102
|
scope = normalizeScope(options.scope);
|
|
2103
2103
|
root = scope === "local" ? resolveLocalRoot() : null;
|
|
2104
2104
|
} catch (error) {
|
|
2105
|
-
|
|
2105
|
+
_chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
|
|
2106
2106
|
{
|
|
2107
2107
|
ok: false,
|
|
2108
2108
|
status: "failed",
|
|
@@ -2114,22 +2114,22 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
2114
2114
|
);
|
|
2115
2115
|
return 2;
|
|
2116
2116
|
}
|
|
2117
|
-
const baseUrl =
|
|
2117
|
+
const baseUrl = _chunkCS6RAIVYjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
2118
2118
|
const catalog = {
|
|
2119
2119
|
skillNames: [...DEFAULT_SDK_SKILL_NAMES],
|
|
2120
|
-
version:
|
|
2120
|
+
version: _chunkCS6RAIVYjs.SDK_VERSION
|
|
2121
2121
|
};
|
|
2122
2122
|
const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
|
|
2123
2123
|
const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
|
|
2124
2124
|
if (options.dryRun) {
|
|
2125
|
-
|
|
2125
|
+
_chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
|
|
2126
2126
|
{ ok: true, status: "planned", dryRun: true, ...plan },
|
|
2127
2127
|
{ json: options.json }
|
|
2128
2128
|
);
|
|
2129
2129
|
return 0;
|
|
2130
2130
|
}
|
|
2131
2131
|
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !hasFailedAutomaticSkillsSync(baseUrl, agents)) {
|
|
2132
|
-
|
|
2132
|
+
_chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
|
|
2133
2133
|
{
|
|
2134
2134
|
ok: true,
|
|
2135
2135
|
status: "current",
|
|
@@ -2164,7 +2164,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
2164
2164
|
.../* @__PURE__ */ new Set([...plan.skillNames, ...LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
2165
2165
|
];
|
|
2166
2166
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
2167
|
-
|
|
2167
|
+
_chunkCS6RAIVYjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
|
|
2168
2168
|
".deepline/",
|
|
2169
2169
|
...agentRoots.flatMap(
|
|
2170
2170
|
(agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
|
|
@@ -2182,7 +2182,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
2182
2182
|
} };
|
|
2183
2183
|
} catch (error) {
|
|
2184
2184
|
if (!(error instanceof SkillsStateUnavailableError)) throw error;
|
|
2185
|
-
|
|
2185
|
+
_chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
|
|
2186
2186
|
{
|
|
2187
2187
|
ok: false,
|
|
2188
2188
|
status: "failed",
|
|
@@ -2198,7 +2198,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
2198
2198
|
return 5;
|
|
2199
2199
|
}
|
|
2200
2200
|
if (!lease) {
|
|
2201
|
-
|
|
2201
|
+
_chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
|
|
2202
2202
|
{
|
|
2203
2203
|
ok: false,
|
|
2204
2204
|
status: "failed",
|
|
@@ -2244,7 +2244,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
2244
2244
|
throw new Error("Could not install the current Deepline skills.");
|
|
2245
2245
|
}
|
|
2246
2246
|
} catch (error) {
|
|
2247
|
-
|
|
2247
|
+
_chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
|
|
2248
2248
|
{
|
|
2249
2249
|
ok: false,
|
|
2250
2250
|
status: "failed",
|
|
@@ -2283,7 +2283,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
2283
2283
|
{
|
|
2284
2284
|
schemaVersion: 1,
|
|
2285
2285
|
installedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
2286
|
-
cliVersion:
|
|
2286
|
+
cliVersion: _chunkCS6RAIVYjs.SDK_VERSION,
|
|
2287
2287
|
scope,
|
|
2288
2288
|
agents,
|
|
2289
2289
|
skillsVersion: plan.version,
|
|
@@ -2298,7 +2298,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
2298
2298
|
if (scope === "global") {
|
|
2299
2299
|
clearFailedAutomaticSkillsSync(baseUrl, agents);
|
|
2300
2300
|
}
|
|
2301
|
-
|
|
2301
|
+
_chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
|
|
2302
2302
|
{
|
|
2303
2303
|
ok: true,
|
|
2304
2304
|
status: "complete",
|
|
@@ -2347,7 +2347,7 @@ Examples:
|
|
|
2347
2347
|
).action(async (options) => {
|
|
2348
2348
|
const claim = _optionalChain([options, 'access', _88 => _88.claim, 'optionalAccess', _89 => _89.trim, 'call', _90 => _90()]);
|
|
2349
2349
|
if (!claim) {
|
|
2350
|
-
|
|
2350
|
+
_chunkKGNTKMRGjs.printCommandEnvelope.call(void 0,
|
|
2351
2351
|
{
|
|
2352
2352
|
ok: false,
|
|
2353
2353
|
status: "failed",
|
|
@@ -2360,7 +2360,7 @@ Examples:
|
|
|
2360
2360
|
process.exitCode = 2;
|
|
2361
2361
|
return;
|
|
2362
2362
|
}
|
|
2363
|
-
await syncSdkSkillsIfNeeded(
|
|
2363
|
+
await syncSdkSkillsIfNeeded(_chunkCS6RAIVYjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
2364
2364
|
mode: "inline",
|
|
2365
2365
|
notices: "defer",
|
|
2366
2366
|
claim
|
|
@@ -13,17 +13,17 @@ import {
|
|
|
13
13
|
listPlayFileExports,
|
|
14
14
|
parsePlaySourceForAnalysis,
|
|
15
15
|
resolveEnabledExecutionProfile
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-3HWALOL2.mjs";
|
|
17
17
|
import {
|
|
18
18
|
parseCsvDataInput
|
|
19
19
|
} from "./chunk-HQXL5526.mjs";
|
|
20
20
|
import {
|
|
21
21
|
registerDeprecatedSearchCommand
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ZYBGA4AR.mjs";
|
|
23
23
|
import {
|
|
24
24
|
handleDeploymentGet,
|
|
25
25
|
handleDeploymentsList
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-XRQ2AQL7.mjs";
|
|
27
27
|
import {
|
|
28
28
|
pinLocalPlayImports,
|
|
29
29
|
planLocalPlayExecution
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
normalizeRunEventOperationRequest,
|
|
43
43
|
parseLogLevel,
|
|
44
44
|
playInputExampleArgs
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-JHIJIHFB.mjs";
|
|
46
46
|
import {
|
|
47
47
|
CSV_DATA_INPUT_KEY,
|
|
48
48
|
buildNamedPlayRunRequest,
|
|
@@ -75,10 +75,10 @@ import {
|
|
|
75
75
|
printJsonError,
|
|
76
76
|
renderCommandEnvelopeText,
|
|
77
77
|
shouldEmitJson
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-NR3DFKNF.mjs";
|
|
79
79
|
import {
|
|
80
80
|
fetchWithDeploymentProtection
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-FJGW5GXU.mjs";
|
|
82
82
|
import {
|
|
83
83
|
DeeplineError
|
|
84
84
|
} from "./chunk-NXGCO4JB.mjs";
|
|
@@ -5352,7 +5352,7 @@ function stringValue(value) {
|
|
|
5352
5352
|
var EXTRACTED_GETTER_ERROR_HINT = "Deepline hint: extractedValues/extractedLists .get() only works for declared Deepline getters listed by `deepline describe <tool>`. Read tool-specific fields from `toolExecutionResult.toolResponse.rawV2` using the nesting shown in the response example, and use `toolExecutionResult.extractedLists.<name>.get()` for declared row/list outputs.";
|
|
5353
5353
|
var DATASET_API_HINT = "Deepline hint: PlayDataset is lazy, durable, and async-only. Use `.count()`, `.first()`, `.at(index)`, `.peek(n)`, `.materialize(limit)`, or async iteration; do not use `.length`, numeric indexing, spread, synchronous iteration, `.rows`, or `.toArray()`.";
|
|
5354
5354
|
var ROW_PROPERTY_HINT = "Deepline hint: this row type only contains fields produced by the CSV/schema and previous map steps. Check source column casing and the exact output field names from earlier steps before scaling.";
|
|
5355
|
-
var TOOLS_EXECUTE_SIGNATURE_HINT = "Deepline hint: ctx.tools.execute requires a request object: `ctx.tools.execute({ id, tool, input, description })`. The stable `id` is required for logs, metadata, and result-cache identity; terminal cache reuse is based on play, tool, semantic input, auth scope, provider action version, and cache policy.";
|
|
5355
|
+
var TOOLS_EXECUTE_SIGNATURE_HINT = "Deepline hint: ctx.tools.execute requires a request object: `ctx.tools.execute({ id, tool, input, description })`. The stable `id` is required for logs, metadata, and result-cache identity; terminal cache reuse is based on play, tool, semantic input, auth scope, provider action version, and cache policy. In authoring edition 11, also choose `staleAfterSeconds`: `0` for fresh logical work, a positive integer for the maximum reusable result age in seconds, or `null` for indefinite result reuse.";
|
|
5356
5356
|
var RUN_PLAY_SIGNATURE_HINT = "Deepline hint: ctx.runPlay uses a stable key plus a composable child play reference. Direct-run-only or dataset-backed batch plays must be run directly, exported, then consumed by a separate play.";
|
|
5357
5357
|
var MAP_BACKED_CHILD_HINT = "Deepline hint: dataset-backed child plays own durable table state and cannot be called from another play. Run that play directly, export its dataset, then pass the CSV to the next play.";
|
|
5358
5358
|
function sourceLineForError(sourceCode, error) {
|
|
@@ -16159,6 +16159,11 @@ function registerPlayCommands(program) {
|
|
|
16159
16159
|
Concepts:
|
|
16160
16160
|
Plays are durable cloud workflows.
|
|
16161
16161
|
Stable ctx.tools.execute({ id, tool, input, staleAfterSeconds: 0 }) requests fresh work.
|
|
16162
|
+
In authoring edition 11, choose freshness explicitly: 0 for fresh logical
|
|
16163
|
+
work, a positive integer for the maximum reusable result age in seconds, or
|
|
16164
|
+
null for indefinite result reuse. A matching completed operation receipt can
|
|
16165
|
+
still recover that operation after resume; older authored editions retain
|
|
16166
|
+
omitted-value behavior.
|
|
16162
16167
|
Completed calls are replay-safe during recovery of the same run; unfinished calls may execute again.
|
|
16163
16168
|
A stable id recovers a completed call; repeating plays run starts new work.
|
|
16164
16169
|
ctx.dataset adds row keys and row progress.
|
|
@@ -16342,6 +16347,11 @@ Idempotent execution:
|
|
|
16342
16347
|
Durable tool-call reuse is based on the actual external call identity:
|
|
16343
16348
|
same play, tool, semantic input, auth scope, provider action version, and
|
|
16344
16349
|
cache policy.
|
|
16350
|
+
In authoring edition 11, choose freshness explicitly: 0 for fresh logical
|
|
16351
|
+
work, a positive integer for the maximum reusable result age in seconds, or
|
|
16352
|
+
null for indefinite result reuse. A matching completed operation receipt can
|
|
16353
|
+
still recover that operation after resume. Older authored editions keep their
|
|
16354
|
+
existing omitted-value behavior.
|
|
16345
16355
|
|
|
16346
16356
|
await ctx.tools.execute({ id: 'company_lookup', tool, input, staleAfterSeconds: 86400 });
|
|
16347
16357
|
|
|
@@ -16680,7 +16690,7 @@ Examples:
|
|
|
16680
16690
|
process.exitCode = await ownView();
|
|
16681
16691
|
return;
|
|
16682
16692
|
}
|
|
16683
|
-
const { describeAnything } = await import("./describe-
|
|
16693
|
+
const { describeAnything } = await import("./describe-K4ES5LIL.mjs");
|
|
16684
16694
|
process.exitCode = await describeAnything(
|
|
16685
16695
|
name,
|
|
16686
16696
|
{
|
|
@@ -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.394",
|
|
53
53
|
updateSummary: "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.",
|
|
54
54
|
packageCapabilities: {
|
|
55
55
|
updatePreferences: 1,
|
|
@@ -14,7 +14,7 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
|
14
14
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunk6YAUMG27js = require('./chunk-6YAUMG27.js');
|
|
18
18
|
|
|
19
19
|
// src/errors.ts
|
|
20
20
|
var CustomerDbQueryOutcomeUnknownError = (_class = class extends _chunk7P5AA3SNjs.DeeplineError {
|
|
@@ -744,9 +744,9 @@ function resolveCliCommandContext(inputConfig, requestedScope) {
|
|
|
744
744
|
}
|
|
745
745
|
|
|
746
746
|
// src/version.ts
|
|
747
|
-
var SDK_VERSION =
|
|
748
|
-
var SDK_API_MAJOR =
|
|
749
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
747
|
+
var SDK_VERSION = _chunk6YAUMG27js.SDK_RELEASE.version;
|
|
748
|
+
var SDK_API_MAJOR = _chunk6YAUMG27js.SDK_RELEASE.contracts.api.currentMajor;
|
|
749
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunk6YAUMG27js.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
750
750
|
|
|
751
751
|
// src/agent-runtime.ts
|
|
752
752
|
|
|
@@ -21,7 +21,7 @@ var _chunkUHNDVD3Pjs = require('./chunk-UHNDVD3P.js');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkCS6RAIVYjs = require('./chunk-CS6RAIVY.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
@@ -137,7 +137,7 @@ async function queryCustomerDatabase(http, input) {
|
|
|
137
137
|
if (error instanceof _chunk7P5AA3SNjs.DeeplineError && (_optionalChain([error, 'access', _ => _.code, 'optionalAccess', _2 => _2.startsWith, 'call', _3 => _3("NETWORK_")]) || // Older API readers return PostgreSQL errors as HTTP 400, including
|
|
138
138
|
// lost connections and explicitly unknown transaction resolution.
|
|
139
139
|
/^08[A-Z0-9]{3}$/.test(_nullishCoalesce(error.code, () => ( ""))) || ["57P01", "57P02", "57P03"].includes(_nullishCoalesce(error.code, () => ( ""))) || error.statusCode === 408 || (_nullishCoalesce(error.statusCode, () => ( 0))) >= 500)) {
|
|
140
|
-
throw new (0,
|
|
140
|
+
throw new (0, _chunkCS6RAIVYjs.CustomerDbQueryOutcomeUnknownError)(
|
|
141
141
|
error,
|
|
142
142
|
plan.request.body.operation_key
|
|
143
143
|
);
|
|
@@ -145,7 +145,7 @@ async function queryCustomerDatabase(http, input) {
|
|
|
145
145
|
throw error;
|
|
146
146
|
}
|
|
147
147
|
if (!result || typeof result !== "object" || Array.isArray(result) || typeof result.command !== "string" || !Array.isArray(result.columns) || !Array.isArray(result.rows) || typeof result.truncated !== "boolean" || result.row_count !== null && (!Number.isSafeInteger(result.row_count) || result.row_count < 0) || !Number.isSafeInteger(result.row_count_returned) || result.row_count_returned < 0) {
|
|
148
|
-
throw new (0,
|
|
148
|
+
throw new (0, _chunkCS6RAIVYjs.CustomerDbQueryOutcomeUnknownError)(
|
|
149
149
|
new (0, _chunk7P5AA3SNjs.DeeplineError)(
|
|
150
150
|
"The SQL response did not contain a valid result.",
|
|
151
151
|
200,
|
|
@@ -156,7 +156,7 @@ async function queryCustomerDatabase(http, input) {
|
|
|
156
156
|
}
|
|
157
157
|
const operation = result.operation;
|
|
158
158
|
if (input.operationKey !== void 0 && (!operation || operation.operation_key !== input.operationKey || !Number.isSafeInteger(operation.completed_at_ms) || operation.completed_at_ms < 0 || !["executed", "operation_recovery"].includes(operation.source))) {
|
|
159
|
-
throw new (0,
|
|
159
|
+
throw new (0, _chunkCS6RAIVYjs.CustomerDbQueryOutcomeUnknownError)(
|
|
160
160
|
new (0, _chunk7P5AA3SNjs.DeeplineError)(
|
|
161
161
|
"The server did not confirm the original atomic SQL operation.",
|
|
162
162
|
200,
|
|
@@ -2911,8 +2911,8 @@ function runtimeSelectionHeaders(runtime, env) {
|
|
|
2911
2911
|
}
|
|
2912
2912
|
const receivers = _optionalChain([env, 'access', _98 => _98.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _99 => _99.trim, 'call', _100 => _100()]);
|
|
2913
2913
|
return {
|
|
2914
|
-
[
|
|
2915
|
-
...receivers ? { [
|
|
2914
|
+
[_chunkCS6RAIVYjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
2915
|
+
...receivers ? { [_chunkCS6RAIVYjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
2916
2916
|
};
|
|
2917
2917
|
}
|
|
2918
2918
|
function isolatedCiRuntimeEventReadHeaders(env) {
|
|
@@ -2928,7 +2928,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
|
|
|
2928
2928
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
2929
2929
|
);
|
|
2930
2930
|
}
|
|
2931
|
-
return { [
|
|
2931
|
+
return { [_chunkCS6RAIVYjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
2932
2932
|
}
|
|
2933
2933
|
function normalizeTestPolicyOverrides(value, source) {
|
|
2934
2934
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
@@ -3219,9 +3219,9 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
3219
3219
|
* @throws {@link ConfigError} if no API key can be resolved from any source.
|
|
3220
3220
|
*/
|
|
3221
3221
|
constructor(options) {
|
|
3222
|
-
this.config =
|
|
3222
|
+
this.config = _chunkCS6RAIVYjs.resolveConfig.call(void 0, options);
|
|
3223
3223
|
this.environment = _nullishCoalesce(this.config.environment, () => ( process.env));
|
|
3224
|
-
this.http = new (0,
|
|
3224
|
+
this.http = new (0, _chunkCS6RAIVYjs.HttpClient)(this.config);
|
|
3225
3225
|
this.toolCalls = new ToolCalls(
|
|
3226
3226
|
this.http,
|
|
3227
3227
|
this.config.timeout,
|