deepline 0.3.393 → 0.3.395
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.ts +30 -162
- package/dist/bundling-sources/sdk/src/index.ts +1 -0
- package/dist/bundling-sources/sdk/src/plays/play-description.ts +167 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +1 -0
- 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-5PXHA232.mjs → auth-NMQXZRS7.mjs} +4 -4
- package/dist/cli/auth-UYCOBAL5.js +39 -0
- package/dist/cli/{billing-Z2N7ZAGM.mjs → billing-5MVXZRS6.mjs} +5 -4
- package/dist/cli/{billing-JFB2XLSO.js → billing-Z4JTGUU3.js} +76 -75
- package/dist/cli/{chunk-2HAD745V.js → chunk-36ML3YKA.js} +241 -349
- 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-4PT2VA3A.mjs → chunk-3TRY7KAC.mjs} +2 -2
- package/dist/cli/{chunk-5PRVMXKB.mjs → chunk-47M6HPGP.mjs} +1 -1
- package/dist/cli/{chunk-VIWE6WRK.js → chunk-4KLCLLTO.js} +267 -255
- package/dist/cli/{chunk-CDFH2DYL.js → chunk-56IFFVIB.js} +4 -4
- package/dist/cli/chunk-5VCZ3WRH.mjs +129 -0
- package/dist/cli/{chunk-LMMEAMA7.mjs → chunk-6D7A2FSL.mjs} +1 -1
- package/dist/cli/{chunk-7HR7BGZL.mjs → chunk-7MVWUXOD.mjs} +3 -3
- package/dist/cli/{chunk-2LGC4EFT.mjs → chunk-7XAM7KDW.mjs} +3 -3
- package/dist/cli/{chunk-HLEESTCH.mjs → chunk-BLYL3KOC.mjs} +1 -1
- package/dist/cli/{chunk-LZPCDB7U.mjs → chunk-BON3DRC6.mjs} +1 -1
- package/dist/cli/chunk-DRM3CMHL.js +129 -0
- package/dist/cli/{chunk-STNYIMIV.mjs → chunk-EFLQHJZ6.mjs} +6 -6
- package/dist/cli/{chunk-Q26LUSQ2.mjs → chunk-G4IWGRMK.mjs} +23 -131
- package/dist/cli/{chunk-M7Y7JYZX.js → chunk-HRWUQJ4K.js} +6 -6
- package/dist/cli/{chunk-OXNOAD6Y.js → chunk-K5T3EN6D.js} +26 -26
- package/dist/cli/{chunk-PWSWAN7Q.js → chunk-KB4SDX5S.js} +48 -9
- package/dist/cli/{chunk-4XX6443T.js → chunk-LZLBR2SF.js} +59 -59
- package/dist/cli/{chunk-MS6GUPBB.js → chunk-MH73HMPV.js} +3 -3
- package/dist/cli/{chunk-AARX5L4B.js → chunk-MYIBHORT.js} +2 -2
- package/dist/cli/{chunk-5KWKZIQR.mjs → chunk-OCSG6X67.mjs} +4 -4
- package/dist/cli/{chunk-PTDECJGP.js → chunk-PZ5BZ76S.js} +50 -50
- package/dist/cli/{chunk-L2SYLGRP.js → chunk-R4XZO6Z5.js} +8 -8
- package/dist/cli/{chunk-RWHWF5ZJ.js → chunk-TO2MWPGR.js} +1 -1
- package/dist/cli/{chunk-W4WOMXR3.js → chunk-UCXK2DS4.js} +15 -15
- package/dist/cli/{chunk-Z3OOZM5L.js → chunk-UKU6JM3S.js} +8 -8
- package/dist/cli/{chunk-4TCT77UF.js → chunk-URWF7NGQ.js} +6 -1
- package/dist/cli/{chunk-VIQJIX2P.js → chunk-VYLJJQ7Y.js} +65 -65
- package/dist/cli/{chunk-KIYU2TGL.mjs → chunk-WCCKMLHL.mjs} +2 -2
- package/dist/cli/{chunk-UOGZUA24.mjs → chunk-XMAPE2KH.mjs} +27 -15
- package/dist/cli/{chunk-PQSA443V.mjs → chunk-ZI2ZNDJK.mjs} +6 -1
- package/dist/cli/{chunk-FQ6VHPW4.mjs → chunk-ZWH2TFA7.mjs} +2 -2
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-P3Z3YE7H.js → csv-HTS5ZYQ4.js} +12 -12
- package/dist/cli/{csv-KJWZHKCH.mjs → csv-SVOD5UBH.mjs} +3 -3
- package/dist/cli/{db-NUZGJNQC.js → db-7AP4P52N.js} +30 -29
- package/dist/cli/{db-NCM4CQIS.mjs → db-7QLNI3Q4.mjs} +5 -4
- package/dist/cli/{describe-WT6MM2GO.mjs → describe-DBRY5BNK.mjs} +12 -11
- package/dist/cli/{describe-YGSEN5WC.js → describe-YKOE54ZO.js} +22 -21
- package/dist/cli/{executions-PCOLHN7Q.js → executions-GRQXTB2P.js} +7 -6
- package/dist/cli/{executions-XS2IPJ4W.mjs → executions-QNZTPNG4.mjs} +5 -4
- package/dist/cli/{feedback-CCLTS5SV.mjs → feedback-JMCSR624.mjs} +3 -3
- package/dist/cli/{feedback-4MSH7TFU.js → feedback-ZOLA2KY7.js} +7 -7
- package/dist/cli/git-EJQLRK27.js +23 -0
- package/dist/cli/{git-K2DHPMPC.mjs → git-LJGL2IHS.mjs} +4 -4
- package/dist/cli/index.js +98 -98
- package/dist/cli/index.mjs +43 -43
- package/dist/cli/{legacy-noops-B5S4AR3P.mjs → legacy-noops-F23PKVBN.mjs} +4 -4
- package/dist/cli/{legacy-noops-GPNOPFXV.js → legacy-noops-YSCIR2SD.js} +7 -7
- package/dist/cli/{monitors-JLMAIPRG.mjs → monitors-S4LOEL7W.mjs} +5 -4
- package/dist/cli/{monitors-ZAWD7NSN.js → monitors-WMZ6HJZX.js} +86 -85
- package/dist/cli/{org-P2KN4CES.js → org-PFHM5ZLY.js} +65 -64
- package/dist/cli/{org-T3JTHP4G.mjs → org-U3WA2NQM.mjs} +5 -4
- package/dist/cli/{play-NK6BLRGL.mjs → play-AGSECQFN.mjs} +10 -9
- package/dist/cli/play-BR2LWGXK.js +159 -0
- package/dist/cli/{providers-3NQRA7IT.mjs → providers-QBBRFBOH.mjs} +5 -4
- package/dist/cli/{providers-5QRZN3DT.js → providers-XYMHLKCA.js} +8 -7
- package/dist/cli/{quickstart-PIA2JGPV.mjs → quickstart-5JTDGISY.mjs} +3 -3
- package/dist/cli/{quickstart-R7NUZGNW.js → quickstart-IYGD6ZY3.js} +5 -5
- package/dist/cli/{search-AIDIIGLY.mjs → search-X6W6GRHS.mjs} +6 -5
- package/dist/cli/search-ZVSYH5GY.js +28 -0
- package/dist/cli/{secrets-OQNHL45O.mjs → secrets-N55B67H6.mjs} +5 -4
- package/dist/cli/{secrets-BT3PGMWN.js → secrets-UHG6OQFD.js} +14 -13
- package/dist/cli/{sessions-EYXWOSWK.js → sessions-57L5MGHN.js} +5 -5
- package/dist/cli/{sessions-SF7WJPJP.mjs → sessions-JTRSTDSS.mjs} +4 -4
- package/dist/cli/{settings-BA3GHBOD.js → settings-ATX4U5AS.js} +75 -74
- package/dist/cli/{settings-Y57JTFDD.mjs → settings-Q24HRAQI.mjs} +8 -7
- package/dist/cli/{setup-7GR5GBHA.mjs → setup-77ZWLVHT.mjs} +6 -6
- package/dist/cli/{setup-RERXYC66.js → setup-EJCNOUCE.js} +41 -41
- package/dist/cli/skills-SPXUBLII.js +28 -0
- package/dist/cli/{skills-SJWIQAV5.mjs → skills-XIS5AWQI.mjs} +4 -4
- package/dist/cli/tools-DBHUUZJX.js +42 -0
- package/dist/cli/{tools-ZF3JXPNL.mjs → tools-WCKLYEGQ.mjs} +8 -7
- package/dist/cli/{update-FFFYQAOJ.mjs → update-UT5WANMV.mjs} +6 -6
- package/dist/cli/update-VSNFXRHJ.js +28 -0
- package/dist/cli/{workflow-SZJVQH4T.js → workflow-226QYUN2.js} +16 -15
- package/dist/cli/{workflow-XVFEEGAS.mjs → workflow-ZMX3L4ML.mjs} +6 -5
- package/dist/{client-mCE88hC4.d.ts → client-CivP-PAI.d.ts} +22 -13
- package/dist/{client-DU5dtHDy.d.mts → client-hdFtwhTm.d.mts} +22 -13
- 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 +8 -7
- package/dist/index.mjs +5 -4
- package/dist/install-integrity.json +92 -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/play-description.d.mts +6 -0
- package/dist/plays/play-description.d.ts +6 -0
- package/dist/plays/play-description.js +9 -0
- package/dist/plays/play-description.mjs +9 -0
- 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 +6 -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 _chunkHRWUQJ4Kjs = require('./chunk-HRWUQJ4K.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 _chunk56IFFVIBjs = require('./chunk-56IFFVIB.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkTO2MWPGRjs = require('./chunk-TO2MWPGR.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, () => ( _chunk56IFFVIBjs.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, _chunk56IFFVIBjs.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: _chunk56IFFVIBjs.SDK_VERSION,
|
|
214
|
+
apiContract: _chunk56IFFVIBjs.SDK_API_CONTRACT,
|
|
215
|
+
apiMajor: _chunk56IFFVIBjs.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: _chunk56IFFVIBjs.SDK_VERSION,
|
|
224
|
+
apiContract: _chunk56IFFVIBjs.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", _chunk56IFFVIBjs.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(_chunkTO2MWPGRjs.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
|
+
..._chunk56IFFVIBjs.deploymentProtectionHeaders.call(void 0, ),
|
|
335
|
+
"User-Agent": `deepline-ts-sdk/${_chunk56IFFVIBjs.SDK_VERSION}`,
|
|
336
|
+
"X-Deepline-SDK-Version": _chunk56IFFVIBjs.SDK_VERSION,
|
|
337
|
+
"X-Deepline-API-Major": String(_chunk56IFFVIBjs.SDK_API_MAJOR),
|
|
338
|
+
"X-Deepline-API-Contract": _chunk56IFFVIBjs.SDK_API_CONTRACT,
|
|
339
339
|
"X-Deepline-CLI-Update-Preferences": "1",
|
|
340
|
-
...options.catalog ? { Authorization: `Bearer ${
|
|
340
|
+
...options.catalog ? { Authorization: `Bearer ${_chunk56IFFVIBjs.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: _chunk56IFFVIBjs.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
|
+
..._chunk56IFFVIBjs.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/${_chunk56IFFVIBjs.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": _chunk56IFFVIBjs.detectAgentRuntime.call(void 0, ),
|
|
622
|
+
"X-Deepline-CLI-Version": _chunk56IFFVIBjs.SDK_VERSION,
|
|
623
|
+
"X-Deepline-SDK-Version": _chunk56IFFVIBjs.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 = _chunk56IFFVIBjs.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: _chunk56IFFVIBjs.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: _chunk56IFFVIBjs.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 = _chunk56IFFVIBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
819
|
+
const apiKey = _chunk56IFFVIBjs.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 (_chunk56IFFVIBjs.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, _chunk56IFFVIBjs.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 = _chunk56IFFVIBjs.skillsAgentPathSegment;
|
|
852
852
|
function sortedLeaseAgents(agents) {
|
|
853
|
-
const expanded = agents.includes("*") ? [...agents, ...
|
|
853
|
+
const expanded = agents.includes("*") ? [...agents, ..._chunk56IFFVIBjs.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
|
+
_chunk56IFFVIBjs.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 ${_chunk56IFFVIBjs.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
|
+
_chunk56IFFVIBjs.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() || _chunk56IFFVIBjs.hasActivePluginSkills.call(void 0, )) return;
|
|
1137
|
+
const agents = _chunk56IFFVIBjs.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
|
+
_chunk56IFFVIBjs.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, _chunk56IFFVIBjs.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 === _chunk56IFFVIBjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunk56IFFVIBjs.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: _chunk56IFFVIBjs.SDK_VERSION },
|
|
1428
1428
|
skills: {
|
|
1429
1429
|
version: localVersion,
|
|
1430
|
-
capability:
|
|
1430
|
+
capability: _chunkTO2MWPGRjs.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
|
+
_chunk56IFFVIBjs.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 = _chunk56IFFVIBjs.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 = _chunk56IFFVIBjs.hasActivePluginSkills.call(void 0, );
|
|
1701
1701
|
if (usingPluginSkills) {
|
|
1702
1702
|
return;
|
|
1703
1703
|
}
|
|
1704
|
-
const agents =
|
|
1704
|
+
const agents = _chunk56IFFVIBjs.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 = _chunk56IFFVIBjs.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 (!_chunk56IFFVIBjs.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 = _chunk56IFFVIBjs.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, () => ( _chunk56IFFVIBjs.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, _chunk56IFFVIBjs.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
|
+
_chunkHRWUQJ4Kjs.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 = _chunk56IFFVIBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
2118
2118
|
const catalog = {
|
|
2119
2119
|
skillNames: [...DEFAULT_SDK_SKILL_NAMES],
|
|
2120
|
-
version:
|
|
2120
|
+
version: _chunk56IFFVIBjs.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
|
+
_chunkHRWUQJ4Kjs.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
|
+
_chunkHRWUQJ4Kjs.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
|
+
_chunk56IFFVIBjs.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
|
+
_chunkHRWUQJ4Kjs.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
|
+
_chunkHRWUQJ4Kjs.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
|
+
_chunkHRWUQJ4Kjs.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: _chunk56IFFVIBjs.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
|
+
_chunkHRWUQJ4Kjs.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
|
+
_chunkHRWUQJ4Kjs.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(_chunk56IFFVIBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
2364
2364
|
mode: "inline",
|
|
2365
2365
|
notices: "defer",
|
|
2366
2366
|
claim
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-47M6HPGP.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6D7A2FSL.mjs";
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
import {
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
handleDeploymentGet,
|
|
3
|
+
handleDeploymentsList
|
|
4
|
+
} from "./chunk-3TRY7KAC.mjs";
|
|
1
5
|
import {
|
|
2
6
|
addDescribeOptions,
|
|
3
7
|
recordPlayTermination,
|
|
@@ -13,23 +17,18 @@ import {
|
|
|
13
17
|
listPlayFileExports,
|
|
14
18
|
parsePlaySourceForAnalysis,
|
|
15
19
|
resolveEnabledExecutionProfile
|
|
16
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-3HWALOL2.mjs";
|
|
17
21
|
import {
|
|
18
22
|
parseCsvDataInput
|
|
19
23
|
} from "./chunk-HQXL5526.mjs";
|
|
20
24
|
import {
|
|
21
25
|
registerDeprecatedSearchCommand
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import {
|
|
24
|
-
handleDeploymentGet,
|
|
25
|
-
handleDeploymentsList
|
|
26
|
-
} from "./chunk-4PT2VA3A.mjs";
|
|
26
|
+
} from "./chunk-7XAM7KDW.mjs";
|
|
27
27
|
import {
|
|
28
28
|
pinLocalPlayImports,
|
|
29
29
|
planLocalPlayExecution
|
|
30
30
|
} from "./chunk-ERFN2QY4.mjs";
|
|
31
31
|
import {
|
|
32
|
-
CSV_HEADER_MATCHING_NOTE,
|
|
33
32
|
DeeplineClient,
|
|
34
33
|
RUN_EVENT_SEARCH_KIND_VALUES,
|
|
35
34
|
RunEventQueryInputError,
|
|
@@ -40,9 +39,8 @@ import {
|
|
|
40
39
|
logLevelReaches,
|
|
41
40
|
logProvenanceReaches,
|
|
42
41
|
normalizeRunEventOperationRequest,
|
|
43
|
-
parseLogLevel
|
|
44
|
-
|
|
45
|
-
} from "./chunk-Q26LUSQ2.mjs";
|
|
42
|
+
parseLogLevel
|
|
43
|
+
} from "./chunk-G4IWGRMK.mjs";
|
|
46
44
|
import {
|
|
47
45
|
CSV_DATA_INPUT_KEY,
|
|
48
46
|
buildNamedPlayRunRequest,
|
|
@@ -53,6 +51,10 @@ import {
|
|
|
53
51
|
stageFileInputs,
|
|
54
52
|
stagedFileContentType
|
|
55
53
|
} from "./chunk-JI2B4RZP.mjs";
|
|
54
|
+
import {
|
|
55
|
+
CSV_HEADER_MATCHING_NOTE,
|
|
56
|
+
playInputExampleArgs
|
|
57
|
+
} from "./chunk-5VCZ3WRH.mjs";
|
|
56
58
|
import {
|
|
57
59
|
recordCliTrace,
|
|
58
60
|
traceCliSpan
|
|
@@ -75,10 +77,10 @@ import {
|
|
|
75
77
|
printJsonError,
|
|
76
78
|
renderCommandEnvelopeText,
|
|
77
79
|
shouldEmitJson
|
|
78
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-47M6HPGP.mjs";
|
|
79
81
|
import {
|
|
80
82
|
fetchWithDeploymentProtection
|
|
81
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-6D7A2FSL.mjs";
|
|
82
84
|
import {
|
|
83
85
|
DeeplineError
|
|
84
86
|
} from "./chunk-NXGCO4JB.mjs";
|
|
@@ -5352,7 +5354,7 @@ function stringValue(value) {
|
|
|
5352
5354
|
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
5355
|
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
5356
|
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.";
|
|
5357
|
+
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
5358
|
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
5359
|
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
5360
|
function sourceLineForError(sourceCode, error) {
|
|
@@ -12960,7 +12962,7 @@ async function handlePlayCheck(args) {
|
|
|
12960
12962
|
});
|
|
12961
12963
|
const play = await client.describePlay(
|
|
12962
12964
|
parseReferencedPlayTarget2(options.target).playName,
|
|
12963
|
-
{ compact: true }
|
|
12965
|
+
{ compact: true, pipeline: options.full }
|
|
12964
12966
|
);
|
|
12965
12967
|
const result = {
|
|
12966
12968
|
kind: "play_check",
|
|
@@ -16159,6 +16161,11 @@ function registerPlayCommands(program) {
|
|
|
16159
16161
|
Concepts:
|
|
16160
16162
|
Plays are durable cloud workflows.
|
|
16161
16163
|
Stable ctx.tools.execute({ id, tool, input, staleAfterSeconds: 0 }) requests fresh work.
|
|
16164
|
+
In authoring edition 11, choose freshness explicitly: 0 for fresh logical
|
|
16165
|
+
work, a positive integer for the maximum reusable result age in seconds, or
|
|
16166
|
+
null for indefinite result reuse. A matching completed operation receipt can
|
|
16167
|
+
still recover that operation after resume; older authored editions retain
|
|
16168
|
+
omitted-value behavior.
|
|
16162
16169
|
Completed calls are replay-safe during recovery of the same run; unfinished calls may execute again.
|
|
16163
16170
|
A stable id recovers a completed call; repeating plays run starts new work.
|
|
16164
16171
|
ctx.dataset adds row keys and row progress.
|
|
@@ -16342,6 +16349,11 @@ Idempotent execution:
|
|
|
16342
16349
|
Durable tool-call reuse is based on the actual external call identity:
|
|
16343
16350
|
same play, tool, semantic input, auth scope, provider action version, and
|
|
16344
16351
|
cache policy.
|
|
16352
|
+
In authoring edition 11, choose freshness explicitly: 0 for fresh logical
|
|
16353
|
+
work, a positive integer for the maximum reusable result age in seconds, or
|
|
16354
|
+
null for indefinite result reuse. A matching completed operation receipt can
|
|
16355
|
+
still recover that operation after resume. Older authored editions keep their
|
|
16356
|
+
existing omitted-value behavior.
|
|
16345
16357
|
|
|
16346
16358
|
await ctx.tools.execute({ id: 'company_lookup', tool, input, staleAfterSeconds: 86400 });
|
|
16347
16359
|
|
|
@@ -16680,7 +16692,7 @@ Examples:
|
|
|
16680
16692
|
process.exitCode = await ownView();
|
|
16681
16693
|
return;
|
|
16682
16694
|
}
|
|
16683
|
-
const { describeAnything } = await import("./describe-
|
|
16695
|
+
const { describeAnything } = await import("./describe-DBRY5BNK.mjs");
|
|
16684
16696
|
process.exitCode = await describeAnything(
|
|
16685
16697
|
name,
|
|
16686
16698
|
{
|
|
@@ -693,7 +693,12 @@ Authoring rules:
|
|
|
693
693
|
Dataset handles are async: await rows.count(), rows.first(),
|
|
694
694
|
rows.peek(n), rows.materialize(n), or for await. Array methods on a
|
|
695
695
|
handle fail [[cli:plays check]][[mcp:deepline_check_play]].
|
|
696
|
-
Tool calls: rowCtx.tools.execute({ id, tool, input, description
|
|
696
|
+
Tool calls: rowCtx.tools.execute({ id, tool, input, description,
|
|
697
|
+
staleAfterSeconds }). In authoring edition 11, choose freshness explicitly:
|
|
698
|
+
0 for fresh logical work, a positive integer for the maximum reusable
|
|
699
|
+
result age in seconds, or null for indefinite result reuse. A matching
|
|
700
|
+
completed operation receipt can still recover that operation after resume.
|
|
701
|
+
Read
|
|
697
702
|
results through the getters [[cli:describe]][[mcp:deepline_describe_tool]] lists:
|
|
698
703
|
result.extractedValues.<name>.get() and
|
|
699
704
|
result.extractedLists.<name>.get(). A field with no getter is under
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-47M6HPGP.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
saveHostEnvValues,
|
|
26
26
|
saveProjectDeeplineEnvValues,
|
|
27
27
|
storedHostApiKey
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-6D7A2FSL.mjs";
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/auth.ts
|
|
31
31
|
import {
|
package/dist/cli/command-docs.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkURWF7NGQjs = require('./chunk-URWF7NGQ.js');
|
|
10
10
|
require('./chunk-COGTRVWW.js');
|
|
11
11
|
|
|
12
12
|
|
|
@@ -16,4 +16,4 @@ require('./chunk-COGTRVWW.js');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
exports.CLI_DOC_SURFACE =
|
|
19
|
+
exports.CLI_DOC_SURFACE = _chunkURWF7NGQjs.CLI_DOC_SURFACE; exports.COMMAND_DOCS = _chunkURWF7NGQjs.COMMAND_DOCS; exports.commandDocKey = _chunkURWF7NGQjs.commandDocKey; exports.helpDetailFromArgv = _chunkURWF7NGQjs.helpDetailFromArgv; exports.renderActionExplanation = _chunkURWF7NGQjs.renderActionExplanation; exports.renderCommandExplanation = _chunkURWF7NGQjs.renderCommandExplanation; exports.renderDocText = _chunkURWF7NGQjs.renderDocText;
|