deepline 0.3.385 → 0.3.387
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/run-event-catalog.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +18 -5
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +118 -2
- package/dist/cli/{auth-4D4IBZZN.mjs → auth-CKRRMJQU.mjs} +4 -4
- package/dist/cli/auth-M65RW5ZI.js +39 -0
- package/dist/cli/{billing-6LXNCN5G.js → billing-CVBGUOM6.js} +73 -73
- package/dist/cli/{billing-4RSI4634.mjs → billing-QXZB3SP4.mjs} +4 -4
- package/dist/cli/{chunk-JFYOV3HL.js → chunk-3W3AW37A.js} +15 -15
- package/dist/cli/{chunk-K5JZ3JMP.mjs → chunk-4HFMNLCQ.mjs} +4 -4
- package/dist/cli/{chunk-SC2MM6IY.mjs → chunk-4KTBZLGR.mjs} +2 -2
- package/dist/cli/{chunk-XFS5MNSM.js → chunk-7AOECVD3.js} +226 -226
- package/dist/cli/{chunk-NV5VCWNJ.mjs → chunk-7F5HBT3S.mjs} +1 -1
- package/dist/cli/{chunk-IFKSXI4W.js → chunk-7JETEXCL.js} +1 -1
- package/dist/cli/{chunk-3PGTFASB.js → chunk-A5L54JX6.js} +4 -4
- package/dist/cli/{chunk-DIZYEI6O.mjs → chunk-BEEH7ZAL.mjs} +5 -5
- package/dist/cli/{chunk-TIBMH2VI.mjs → chunk-BXRWG6ZG.mjs} +1 -1
- package/dist/cli/{chunk-CJVB4RVY.js → chunk-CPB7PL4B.js} +61 -61
- package/dist/cli/{chunk-MW6IPE3M.js → chunk-CQ6B46NN.js} +10 -9
- package/dist/cli/{chunk-TTIISDJB.mjs → chunk-CWZRBSMO.mjs} +1 -1
- package/dist/cli/{chunk-LEDRQPBQ.js → chunk-DVVYOV2O.js} +50 -50
- package/dist/cli/{chunk-Q2NRMSOJ.mjs → chunk-EUFASY6H.mjs} +2 -1
- package/dist/cli/{chunk-F44OPZOG.mjs → chunk-EWKW7ADZ.mjs} +2 -2
- package/dist/cli/{chunk-CMIRZZT4.js → chunk-FUTYFVJR.js} +6 -6
- package/dist/cli/{chunk-VCW425WW.js → chunk-GJGHN34W.js} +26 -26
- package/dist/cli/{chunk-KKKKBDVM.mjs → chunk-HMSWH2JW.mjs} +6 -6
- package/dist/cli/{chunk-2IXAMP5J.js → chunk-LA6WXHEG.js} +2 -2
- package/dist/cli/{chunk-KIZ7QHY5.mjs → chunk-LQUNC2VM.mjs} +1 -1
- package/dist/cli/{chunk-VUEQBNG7.mjs → chunk-MTGIBXYZ.mjs} +2 -2
- package/dist/cli/{chunk-RST4XEI7.mjs → chunk-MZBR5BX2.mjs} +3 -3
- package/dist/cli/{chunk-WGPPCGGS.js → chunk-NJRWEFAY.js} +8 -8
- package/dist/cli/{chunk-EGMLX2NR.mjs → chunk-RKYFX5G5.mjs} +2 -2
- package/dist/cli/{chunk-POQ7QWVA.js → chunk-S7HRCOFT.js} +48 -48
- package/dist/cli/{chunk-YHSAUVJ3.js → chunk-UKBXVON4.js} +8 -8
- package/dist/cli/{csv-DZY7OAFK.js → csv-IBQSV2LF.js} +12 -12
- package/dist/cli/{csv-Q7XLUTXX.mjs → csv-L3NMNEK2.mjs} +3 -3
- package/dist/cli/{db-5CLCESHQ.mjs → db-6OPCFP3J.mjs} +4 -4
- package/dist/cli/{db-FRJFSTIF.js → db-AWKMYFXN.js} +29 -29
- package/dist/cli/{describe-Y7E6FPUC.js → describe-IFJ34VUV.js} +18 -18
- package/dist/cli/{describe-QDIM53RP.mjs → describe-NEHPRI33.mjs} +8 -8
- package/dist/cli/{executions-YISFXRPZ.js → executions-FLGLIGRM.js} +6 -6
- package/dist/cli/{executions-M2QRHUDM.mjs → executions-LDZEOSBO.mjs} +4 -4
- package/dist/cli/{feedback-FICCIDJQ.mjs → feedback-PWFQTP4G.mjs} +3 -3
- package/dist/cli/{feedback-HNJVF6AQ.js → feedback-W3LOHQOV.js} +7 -7
- package/dist/cli/{git-WRTQIX6R.mjs → git-E3G5SPN7.mjs} +4 -4
- package/dist/cli/git-UJJKVNZ5.js +23 -0
- package/dist/cli/index.js +89 -89
- package/dist/cli/index.mjs +32 -32
- package/dist/cli/{legacy-noops-6HJZDXLH.mjs → legacy-noops-43UAYJOG.mjs} +4 -4
- package/dist/cli/{legacy-noops-E2R3P424.js → legacy-noops-LLIS3SCA.js} +7 -7
- package/dist/cli/{monitors-DRWEUXDG.js → monitors-IRTHA34J.js} +85 -85
- package/dist/cli/{monitors-HGIB7TPZ.mjs → monitors-VFSBTSHJ.mjs} +4 -4
- package/dist/cli/{org-467XUTRD.js → org-3Z5SRXPW.js} +64 -64
- package/dist/cli/{org-NHILTL3P.mjs → org-C3BNJMYT.mjs} +4 -4
- package/dist/cli/play-4QE3H5KN.js +157 -0
- package/dist/cli/{play-JEI3F2M4.mjs → play-W5XTHGLT.mjs} +7 -7
- package/dist/cli/{providers-6INAFXGV.mjs → providers-ANLUHMBV.mjs} +4 -4
- package/dist/cli/{providers-KOKGN5YP.js → providers-W3O4DRDG.js} +7 -7
- package/dist/cli/{quickstart-QMRYNXDM.mjs → quickstart-5G65T2IR.mjs} +3 -3
- package/dist/cli/{quickstart-ELSP2FZI.js → quickstart-6JAZF3FG.js} +5 -5
- package/dist/cli/search-HIY4H3T3.js +26 -0
- package/dist/cli/{search-HFUSEL3S.mjs → search-XQRGKA3F.mjs} +5 -5
- package/dist/cli/{secrets-TSFBMX65.mjs → secrets-DF3EL5RU.mjs} +4 -4
- package/dist/cli/{secrets-6OUGIWPM.js → secrets-PUWRCDTC.js} +13 -13
- package/dist/cli/{sessions-6VJUWBCJ.js → sessions-OTRBNAPA.js} +5 -5
- package/dist/cli/{sessions-GE3GEQY3.mjs → sessions-OYFE2CUC.mjs} +4 -4
- package/dist/cli/{settings-G5FDUOZJ.mjs → settings-JSB64G57.mjs} +7 -7
- package/dist/cli/{settings-633RRITH.js → settings-R7H4JXVO.js} +74 -74
- package/dist/cli/{setup-WOMOSJWB.mjs → setup-AJD5R5TW.mjs} +6 -6
- package/dist/cli/{setup-X2U5RX5R.js → setup-PL4QRM4U.js} +41 -41
- package/dist/cli/skills-HJXJ2R6P.js +28 -0
- package/dist/cli/{skills-NDHK6HRC.mjs → skills-YN2BR22T.mjs} +4 -4
- package/dist/cli/{tools-GILOEDEQ.mjs → tools-ATIA3P4H.mjs} +6 -6
- package/dist/cli/tools-Y3HQI53B.js +40 -0
- package/dist/cli/{update-H6APTLX7.mjs → update-CWAXNG5N.mjs} +6 -6
- package/dist/cli/update-F6RQFNQ5.js +28 -0
- package/dist/cli/{workflow-MLYJQCP3.mjs → workflow-ENCTHGP4.mjs} +5 -5
- package/dist/cli/{workflow-TC72DBUF.js → workflow-O2CW5YKT.js} +15 -15
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +72 -72
- 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-A4UKONKC.js +0 -39
- package/dist/cli/git-RBHELB5Y.js +0 -23
- package/dist/cli/play-Y66Z4I7K.js +0 -157
- package/dist/cli/search-P5HU6U6X.js +0 -26
- package/dist/cli/skills-BZCMRUZZ.js +0 -28
- package/dist/cli/tools-Y6BDEUS3.js +0 -40
- package/dist/cli/update-RQWIZOBF.js +0 -28
|
@@ -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.387",
|
|
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 _chunk7JETEXCLjs = require('./chunk-7JETEXCL.js');
|
|
18
18
|
|
|
19
19
|
// src/errors.ts
|
|
20
20
|
var CustomerDbQueryOutcomeUnknownError = (_class = class extends _chunk7P5AA3SNjs.DeeplineError {
|
|
@@ -743,9 +743,9 @@ function resolveCliCommandContext(inputConfig, requestedScope) {
|
|
|
743
743
|
}
|
|
744
744
|
|
|
745
745
|
// src/version.ts
|
|
746
|
-
var SDK_VERSION =
|
|
747
|
-
var SDK_API_MAJOR =
|
|
748
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
746
|
+
var SDK_VERSION = _chunk7JETEXCLjs.SDK_RELEASE.version;
|
|
747
|
+
var SDK_API_MAJOR = _chunk7JETEXCLjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
748
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunk7JETEXCLjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
749
749
|
|
|
750
750
|
// src/agent-runtime.ts
|
|
751
751
|
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
observedMaxText,
|
|
14
14
|
recentSearchRef,
|
|
15
15
|
registerDeprecatedSearchCommand
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MZBR5BX2.mjs";
|
|
17
17
|
import {
|
|
18
18
|
DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS,
|
|
19
19
|
EMAIL_STATUS_JSON_SCHEMA,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
import {
|
|
33
33
|
DeeplineClient,
|
|
34
34
|
validateExecutionIdempotencyKey
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-EUFASY6H.mjs";
|
|
36
36
|
import {
|
|
37
37
|
beginToolExecuteCommand,
|
|
38
38
|
getToolExecuteInvocationId,
|
|
@@ -46,11 +46,11 @@ import {
|
|
|
46
46
|
printJsonError,
|
|
47
47
|
renderCommandEnvelopeText,
|
|
48
48
|
shouldEmitJson
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-BXRWG6ZG.mjs";
|
|
50
50
|
import {
|
|
51
51
|
resolveConfig,
|
|
52
52
|
sdkCliStateDirPath
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-7F5HBT3S.mjs";
|
|
54
54
|
import {
|
|
55
55
|
DeeplineError
|
|
56
56
|
} from "./chunk-NXGCO4JB.mjs";
|
|
@@ -1112,7 +1112,7 @@ Examples:
|
|
|
1112
1112
|
process.exitCode = await narrowView();
|
|
1113
1113
|
return;
|
|
1114
1114
|
}
|
|
1115
|
-
const { describeAnything } = await import("./describe-
|
|
1115
|
+
const { describeAnything } = await import("./describe-NEHPRI33.mjs");
|
|
1116
1116
|
process.exitCode = await describeAnything(
|
|
1117
1117
|
toolId,
|
|
1118
1118
|
{
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkFUTYFVJRjs = require('./chunk-FUTYFVJR.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -22,7 +22,7 @@ var _chunkCMIRZZT4js = require('./chunk-CMIRZZT4.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkA5L54JX6js = require('./chunk-A5L54JX6.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
@@ -123,7 +123,7 @@ function skillsSourceUrl(baseUrl) {
|
|
|
123
123
|
function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
|
|
124
124
|
const skillNames = Array.isArray(skillName) ? skillName : [skillName];
|
|
125
125
|
const [firstSkillName, ...extraSkillNames] = skillNames;
|
|
126
|
-
const agents = _nullishCoalesce(options.agents, () => (
|
|
126
|
+
const agents = _nullishCoalesce(options.agents, () => ( _chunkA5L54JX6js.DEFAULT_SKILL_AGENTS));
|
|
127
127
|
const values = {
|
|
128
128
|
skills_index_url: skillsIndexUrl(baseUrl),
|
|
129
129
|
skills_source_url: skillsSourceUrl(baseUrl),
|
|
@@ -199,7 +199,7 @@ function shouldSkipCompatibilityCheck() {
|
|
|
199
199
|
return value === "1" || value === "true" || value === "yes";
|
|
200
200
|
}
|
|
201
201
|
function sdkCompatibilityCachePath(baseUrl, homeDir = _os.homedir.call(void 0, )) {
|
|
202
|
-
return _path.join.call(void 0,
|
|
202
|
+
return _path.join.call(void 0, _chunkA5L54JX6js.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
|
|
203
203
|
}
|
|
204
204
|
function legacySdkCompatibilityCachePath(homeDir = _os.homedir.call(void 0, )) {
|
|
205
205
|
return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
|
|
@@ -207,9 +207,9 @@ function legacySdkCompatibilityCachePath(homeDir = _os.homedir.call(void 0, )) {
|
|
|
207
207
|
function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
208
208
|
return JSON.stringify({
|
|
209
209
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
210
|
-
version:
|
|
211
|
-
apiContract:
|
|
212
|
-
apiMajor:
|
|
210
|
+
version: _chunkA5L54JX6js.SDK_VERSION,
|
|
211
|
+
apiContract: _chunkA5L54JX6js.SDK_API_CONTRACT,
|
|
212
|
+
apiMajor: _chunkA5L54JX6js.SDK_API_MAJOR,
|
|
213
213
|
command: _optionalChain([command, 'optionalAccess', _7 => _7.trim, 'call', _8 => _8()]) || null,
|
|
214
214
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
215
215
|
});
|
|
@@ -217,8 +217,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
|
217
217
|
function legacyCompatibilityCacheKey(baseUrl, command) {
|
|
218
218
|
return JSON.stringify({
|
|
219
219
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
220
|
-
version:
|
|
221
|
-
apiContract:
|
|
220
|
+
version: _chunkA5L54JX6js.SDK_VERSION,
|
|
221
|
+
apiContract: _chunkA5L54JX6js.SDK_API_CONTRACT,
|
|
222
222
|
command: _optionalChain([command, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || null
|
|
223
223
|
});
|
|
224
224
|
}
|
|
@@ -311,7 +311,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
311
311
|
);
|
|
312
312
|
try {
|
|
313
313
|
const url = new URL("/api/v2/sdk/compat", baseUrl);
|
|
314
|
-
url.searchParams.set("version",
|
|
314
|
+
url.searchParams.set("version", _chunkA5L54JX6js.SDK_VERSION);
|
|
315
315
|
if (_optionalChain([options, 'access', _19 => _19.command, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()])) {
|
|
316
316
|
url.searchParams.set("command", options.command.trim());
|
|
317
317
|
}
|
|
@@ -324,13 +324,13 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
324
324
|
const response = await fetch(url, {
|
|
325
325
|
method: "GET",
|
|
326
326
|
headers: {
|
|
327
|
-
...
|
|
328
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
329
|
-
"X-Deepline-SDK-Version":
|
|
330
|
-
"X-Deepline-API-Major": String(
|
|
331
|
-
"X-Deepline-API-Contract":
|
|
327
|
+
..._chunkA5L54JX6js.deploymentProtectionHeaders.call(void 0, ),
|
|
328
|
+
"User-Agent": `deepline-ts-sdk/${_chunkA5L54JX6js.SDK_VERSION}`,
|
|
329
|
+
"X-Deepline-SDK-Version": _chunkA5L54JX6js.SDK_VERSION,
|
|
330
|
+
"X-Deepline-API-Major": String(_chunkA5L54JX6js.SDK_API_MAJOR),
|
|
331
|
+
"X-Deepline-API-Contract": _chunkA5L54JX6js.SDK_API_CONTRACT,
|
|
332
332
|
"X-Deepline-CLI-Update-Preferences": "1",
|
|
333
|
-
...options.catalog ? { Authorization: `Bearer ${
|
|
333
|
+
...options.catalog ? { Authorization: `Bearer ${_chunkA5L54JX6js.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {}
|
|
334
334
|
},
|
|
335
335
|
signal: controller.signal
|
|
336
336
|
});
|
|
@@ -583,7 +583,7 @@ function buildEnvironmentContext() {
|
|
|
583
583
|
node_version: process.version,
|
|
584
584
|
runtime: "Node.js",
|
|
585
585
|
hostname: _os.hostname.call(void 0, ),
|
|
586
|
-
agent_runtime:
|
|
586
|
+
agent_runtime: _chunkA5L54JX6js.detectAgentRuntime.call(void 0, )
|
|
587
587
|
};
|
|
588
588
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
589
589
|
const normalized = _optionalChain([process, 'access', _32 => _32.env, 'access', _33 => _33[key], 'optionalAccess', _34 => _34.trim, 'call', _35 => _35()]);
|
|
@@ -605,15 +605,15 @@ function buildEnvironmentContext() {
|
|
|
605
605
|
}
|
|
606
606
|
function failureReportHeaders(apiKey) {
|
|
607
607
|
return {
|
|
608
|
-
...
|
|
608
|
+
..._chunkA5L54JX6js.deploymentProtectionHeaders.call(void 0, ),
|
|
609
609
|
Authorization: `Bearer ${apiKey}`,
|
|
610
610
|
"Content-Type": "application/json",
|
|
611
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
611
|
+
"User-Agent": `deepline-ts-sdk/${_chunkA5L54JX6js.SDK_VERSION}`,
|
|
612
612
|
"X-Deepline-Client-Family": "sdk",
|
|
613
613
|
"X-Deepline-CLI-Family": "sdk",
|
|
614
|
-
"X-Deepline-Agent-Runtime":
|
|
615
|
-
"X-Deepline-CLI-Version":
|
|
616
|
-
"X-Deepline-SDK-Version":
|
|
614
|
+
"X-Deepline-Agent-Runtime": _chunkA5L54JX6js.detectAgentRuntime.call(void 0, ),
|
|
615
|
+
"X-Deepline-CLI-Version": _chunkA5L54JX6js.SDK_VERSION,
|
|
616
|
+
"X-Deepline-SDK-Version": _chunkA5L54JX6js.SDK_VERSION
|
|
617
617
|
};
|
|
618
618
|
}
|
|
619
619
|
async function postFailureReport(input) {
|
|
@@ -641,7 +641,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
641
641
|
if (isFailureReportingDisabled()) return false;
|
|
642
642
|
let apiKey = "";
|
|
643
643
|
try {
|
|
644
|
-
apiKey =
|
|
644
|
+
apiKey = _chunkA5L54JX6js.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
645
645
|
} catch (e7) {
|
|
646
646
|
return false;
|
|
647
647
|
}
|
|
@@ -668,7 +668,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
668
668
|
failure_code: failureCode2,
|
|
669
669
|
failure_stage: failureStage,
|
|
670
670
|
error_body: "Automatic Deepline skills installation failed.",
|
|
671
|
-
cli_version:
|
|
671
|
+
cli_version: _chunkA5L54JX6js.SDK_VERSION,
|
|
672
672
|
context: {
|
|
673
673
|
environment: buildEnvironmentContext(),
|
|
674
674
|
skills_sync: {
|
|
@@ -788,7 +788,7 @@ function buildFailureReport(input) {
|
|
|
788
788
|
failure_kind: failureKind,
|
|
789
789
|
failure_code: code,
|
|
790
790
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
791
|
-
cli_version:
|
|
791
|
+
cli_version: _chunkA5L54JX6js.SDK_VERSION,
|
|
792
792
|
context: {
|
|
793
793
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
794
794
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -808,8 +808,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
808
808
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
809
809
|
const exitCode = resolvedExitCode(input);
|
|
810
810
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
811
|
-
const baseUrl =
|
|
812
|
-
const apiKey =
|
|
811
|
+
const baseUrl = _chunkA5L54JX6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
812
|
+
const apiKey = _chunkA5L54JX6js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
813
813
|
if (!apiKey) return false;
|
|
814
814
|
return postFailureReport({
|
|
815
815
|
baseUrl,
|
|
@@ -830,25 +830,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
|
|
|
830
830
|
var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
|
|
831
831
|
var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
|
|
832
832
|
function shouldSkipSkillsSync() {
|
|
833
|
-
if (
|
|
833
|
+
if (_chunkA5L54JX6js.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
|
|
834
834
|
return true;
|
|
835
835
|
}
|
|
836
836
|
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()]);
|
|
837
837
|
return value === "1" || value === "true" || value === "yes" || value === "on";
|
|
838
838
|
}
|
|
839
839
|
function unavailableSkillsNoticePath(baseUrl) {
|
|
840
|
-
return _path.join.call(void 0,
|
|
840
|
+
return _path.join.call(void 0, _chunkA5L54JX6js.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
|
|
841
841
|
}
|
|
842
842
|
var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
|
|
843
843
|
var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
|
|
844
|
-
var agentLeaseSegment =
|
|
844
|
+
var agentLeaseSegment = _chunkA5L54JX6js.skillsAgentPathSegment;
|
|
845
845
|
function sortedLeaseAgents(agents) {
|
|
846
|
-
const expanded = agents.includes("*") ? [...agents, ...
|
|
846
|
+
const expanded = agents.includes("*") ? [...agents, ..._chunkA5L54JX6js.KNOWN_SKILL_AGENTS] : agents;
|
|
847
847
|
return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
|
|
848
848
|
}
|
|
849
849
|
function inProgressSkillsSyncPath(baseUrl, agent) {
|
|
850
850
|
return _path.join.call(void 0,
|
|
851
|
-
|
|
851
|
+
_chunkA5L54JX6js.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
852
852
|
`skills-sync-in-progress-${agentLeaseSegment(agent)}`
|
|
853
853
|
);
|
|
854
854
|
}
|
|
@@ -1007,7 +1007,7 @@ var SkillsStateUnavailableError = class extends Error {
|
|
|
1007
1007
|
constructor(baseUrl, error) {
|
|
1008
1008
|
const detail = error instanceof Error ? error.message : String(error);
|
|
1009
1009
|
super(
|
|
1010
|
-
`Could not save skills state in ${
|
|
1010
|
+
`Could not save skills state in ${_chunkA5L54JX6js.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
|
|
1011
1011
|
);
|
|
1012
1012
|
this.name = "SkillsStateUnavailableError";
|
|
1013
1013
|
}
|
|
@@ -1092,7 +1092,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
|
|
|
1092
1092
|
}
|
|
1093
1093
|
function deferredSkillsNoticePath(baseUrl, agents) {
|
|
1094
1094
|
return _path.join.call(void 0,
|
|
1095
|
-
|
|
1095
|
+
_chunkA5L54JX6js.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1096
1096
|
`skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
|
|
1097
1097
|
);
|
|
1098
1098
|
}
|
|
@@ -1126,8 +1126,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
|
|
|
1126
1126
|
if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
|
|
1127
1127
|
}
|
|
1128
1128
|
function flushDeferredSkillsSyncNotices(baseUrl) {
|
|
1129
|
-
if (shouldSkipSkillsSync() ||
|
|
1130
|
-
const agents =
|
|
1129
|
+
if (shouldSkipSkillsSync() || _chunkA5L54JX6js.hasActivePluginSkills.call(void 0, )) return;
|
|
1130
|
+
const agents = _chunkA5L54JX6js.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1131
1131
|
if (agents.length === 0) return;
|
|
1132
1132
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1133
1133
|
}
|
|
@@ -1143,7 +1143,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
|
|
|
1143
1143
|
}
|
|
1144
1144
|
function failedSkillsSyncPath(baseUrl, agents) {
|
|
1145
1145
|
return _path.join.call(void 0,
|
|
1146
|
-
|
|
1146
|
+
_chunkA5L54JX6js.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1147
1147
|
`skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
|
|
1148
1148
|
);
|
|
1149
1149
|
}
|
|
@@ -1172,7 +1172,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
|
|
|
1172
1172
|
if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
|
|
1173
1173
|
writeMarkedSkillsSyncVersion(path, remoteVersion);
|
|
1174
1174
|
const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
|
|
1175
|
-
const manualCommand = _optionalChain([probes, 'optionalAccess', _65 => _65.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames,
|
|
1175
|
+
const manualCommand = _optionalChain([probes, 'optionalAccess', _65 => _65.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkA5L54JX6js.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
|
|
1176
1176
|
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.`;
|
|
1177
1177
|
notice(
|
|
1178
1178
|
`Deepline agent skills are out of date, but ${explanation} To install manually, run:
|
|
@@ -1260,7 +1260,7 @@ function buildSdkSkillNames(v1SkillNames2) {
|
|
|
1260
1260
|
return sortedUniqueSkillNames(v1SkillNames2);
|
|
1261
1261
|
}
|
|
1262
1262
|
function isDefaultAgentSet(agents) {
|
|
1263
|
-
return agents.length ===
|
|
1263
|
+
return agents.length === _chunkA5L54JX6js.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkA5L54JX6js.DEFAULT_SKILL_AGENTS[index]);
|
|
1264
1264
|
}
|
|
1265
1265
|
function safeSkillFilePath(value) {
|
|
1266
1266
|
if (typeof value !== "string" || !value) return false;
|
|
@@ -1457,7 +1457,7 @@ function probeInstallers(timeoutMs) {
|
|
|
1457
1457
|
}
|
|
1458
1458
|
function noInstallerProbePath(baseUrl) {
|
|
1459
1459
|
return _path.join.call(void 0,
|
|
1460
|
-
|
|
1460
|
+
_chunkA5L54JX6js.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1461
1461
|
"skills-sync-no-installer-unknown.json"
|
|
1462
1462
|
);
|
|
1463
1463
|
}
|
|
@@ -1536,7 +1536,7 @@ function temporarySkillsSyncSkipCommand() {
|
|
|
1536
1536
|
function resolveSkillsInstallSpawn(install, platform2 = process.platform) {
|
|
1537
1537
|
return resolveShellSpawn(install.command, install.args, platform2);
|
|
1538
1538
|
}
|
|
1539
|
-
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents =
|
|
1539
|
+
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkA5L54JX6js.DEFAULT_SKILL_AGENTS, knownProbes) {
|
|
1540
1540
|
const commands = [];
|
|
1541
1541
|
const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
|
|
1542
1542
|
if (probes.bunx === "available") {
|
|
@@ -1688,11 +1688,11 @@ function writeSdkSkillsStatusLine(line) {
|
|
|
1688
1688
|
}
|
|
1689
1689
|
async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
1690
1690
|
if (shouldSkipSkillsSync()) return;
|
|
1691
|
-
const usingPluginSkills =
|
|
1691
|
+
const usingPluginSkills = _chunkA5L54JX6js.hasActivePluginSkills.call(void 0, );
|
|
1692
1692
|
if (usingPluginSkills) {
|
|
1693
1693
|
return;
|
|
1694
1694
|
}
|
|
1695
|
-
const agents =
|
|
1695
|
+
const agents = _chunkA5L54JX6js.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1696
1696
|
if (options.mode === "detached" && agents.length > 0) {
|
|
1697
1697
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1698
1698
|
}
|
|
@@ -1720,7 +1720,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
1720
1720
|
return;
|
|
1721
1721
|
}
|
|
1722
1722
|
try {
|
|
1723
|
-
const localVersion =
|
|
1723
|
+
const localVersion = _chunkA5L54JX6js.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
1724
1724
|
const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
|
|
1725
1725
|
needsUpdate: options.update.needs_update,
|
|
1726
1726
|
remoteVersion: options.update.remote.version
|
|
@@ -1886,7 +1886,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1886
1886
|
}
|
|
1887
1887
|
}
|
|
1888
1888
|
runLegacySkillsCleanup(agents);
|
|
1889
|
-
if (!
|
|
1889
|
+
if (!_chunkA5L54JX6js.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
|
|
1890
1890
|
notice(
|
|
1891
1891
|
"Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
|
|
1892
1892
|
);
|
|
@@ -1945,7 +1945,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
|
|
|
1945
1945
|
return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
|
|
1946
1946
|
}
|
|
1947
1947
|
function resolveLocalRoot() {
|
|
1948
|
-
const target =
|
|
1948
|
+
const target = _chunkA5L54JX6js.resolveProjectPinTarget.call(void 0, );
|
|
1949
1949
|
if (!target.ok) {
|
|
1950
1950
|
throw new Error(
|
|
1951
1951
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -1956,7 +1956,7 @@ function resolveLocalRoot() {
|
|
|
1956
1956
|
return target.dir;
|
|
1957
1957
|
}
|
|
1958
1958
|
function detectSkillsAgents(input) {
|
|
1959
|
-
const runtime = _nullishCoalesce(input.runtime, () => (
|
|
1959
|
+
const runtime = _nullishCoalesce(input.runtime, () => ( _chunkA5L54JX6js.detectAgentRuntime.call(void 0, )));
|
|
1960
1960
|
const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
|
|
1961
1961
|
if (knownAgent) return [knownAgent];
|
|
1962
1962
|
const roots = [
|
|
@@ -1971,7 +1971,7 @@ function detectSkillsAgents(input) {
|
|
|
1971
1971
|
return detected.length > 0 ? detected : ["*"];
|
|
1972
1972
|
}
|
|
1973
1973
|
function skillsStatePathForScope(baseUrl, scope, root) {
|
|
1974
|
-
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0,
|
|
1974
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkA5L54JX6js.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
|
|
1975
1975
|
}
|
|
1976
1976
|
function buildSkillsPlan(input) {
|
|
1977
1977
|
const scopeArgs = input.scope === "global" ? ["--global"] : [];
|
|
@@ -2093,7 +2093,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
2093
2093
|
scope = normalizeScope(options.scope);
|
|
2094
2094
|
root = scope === "local" ? resolveLocalRoot() : null;
|
|
2095
2095
|
} catch (error) {
|
|
2096
|
-
|
|
2096
|
+
_chunkFUTYFVJRjs.printCommandEnvelope.call(void 0,
|
|
2097
2097
|
{
|
|
2098
2098
|
ok: false,
|
|
2099
2099
|
status: "failed",
|
|
@@ -2105,22 +2105,22 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
2105
2105
|
);
|
|
2106
2106
|
return 2;
|
|
2107
2107
|
}
|
|
2108
|
-
const baseUrl =
|
|
2108
|
+
const baseUrl = _chunkA5L54JX6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
2109
2109
|
const catalog = {
|
|
2110
2110
|
skillNames: [...DEFAULT_SDK_SKILL_NAMES],
|
|
2111
|
-
version:
|
|
2111
|
+
version: _chunkA5L54JX6js.SDK_VERSION
|
|
2112
2112
|
};
|
|
2113
2113
|
const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
|
|
2114
2114
|
const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
|
|
2115
2115
|
if (options.dryRun) {
|
|
2116
|
-
|
|
2116
|
+
_chunkFUTYFVJRjs.printCommandEnvelope.call(void 0,
|
|
2117
2117
|
{ ok: true, status: "planned", dryRun: true, ...plan },
|
|
2118
2118
|
{ json: options.json }
|
|
2119
2119
|
);
|
|
2120
2120
|
return 0;
|
|
2121
2121
|
}
|
|
2122
2122
|
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !hasFailedAutomaticSkillsSync(baseUrl, agents)) {
|
|
2123
|
-
|
|
2123
|
+
_chunkFUTYFVJRjs.printCommandEnvelope.call(void 0,
|
|
2124
2124
|
{
|
|
2125
2125
|
ok: true,
|
|
2126
2126
|
status: "current",
|
|
@@ -2155,7 +2155,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
2155
2155
|
.../* @__PURE__ */ new Set([...plan.skillNames, ...LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
2156
2156
|
];
|
|
2157
2157
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
2158
|
-
|
|
2158
|
+
_chunkA5L54JX6js.ensureProjectPrivatePathsIgnored.call(void 0, root, [
|
|
2159
2159
|
".deepline/",
|
|
2160
2160
|
...agentRoots.flatMap(
|
|
2161
2161
|
(agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
|
|
@@ -2173,7 +2173,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
2173
2173
|
} };
|
|
2174
2174
|
} catch (error) {
|
|
2175
2175
|
if (!(error instanceof SkillsStateUnavailableError)) throw error;
|
|
2176
|
-
|
|
2176
|
+
_chunkFUTYFVJRjs.printCommandEnvelope.call(void 0,
|
|
2177
2177
|
{
|
|
2178
2178
|
ok: false,
|
|
2179
2179
|
status: "failed",
|
|
@@ -2189,7 +2189,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
2189
2189
|
return 5;
|
|
2190
2190
|
}
|
|
2191
2191
|
if (!lease) {
|
|
2192
|
-
|
|
2192
|
+
_chunkFUTYFVJRjs.printCommandEnvelope.call(void 0,
|
|
2193
2193
|
{
|
|
2194
2194
|
ok: false,
|
|
2195
2195
|
status: "failed",
|
|
@@ -2235,7 +2235,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
2235
2235
|
throw new Error("Could not install the current Deepline skills.");
|
|
2236
2236
|
}
|
|
2237
2237
|
} catch (error) {
|
|
2238
|
-
|
|
2238
|
+
_chunkFUTYFVJRjs.printCommandEnvelope.call(void 0,
|
|
2239
2239
|
{
|
|
2240
2240
|
ok: false,
|
|
2241
2241
|
status: "failed",
|
|
@@ -2274,7 +2274,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
2274
2274
|
{
|
|
2275
2275
|
schemaVersion: 1,
|
|
2276
2276
|
installedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
2277
|
-
cliVersion:
|
|
2277
|
+
cliVersion: _chunkA5L54JX6js.SDK_VERSION,
|
|
2278
2278
|
scope,
|
|
2279
2279
|
agents,
|
|
2280
2280
|
skillsVersion: plan.version,
|
|
@@ -2289,7 +2289,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
2289
2289
|
if (scope === "global") {
|
|
2290
2290
|
clearFailedAutomaticSkillsSync(baseUrl, agents);
|
|
2291
2291
|
}
|
|
2292
|
-
|
|
2292
|
+
_chunkFUTYFVJRjs.printCommandEnvelope.call(void 0,
|
|
2293
2293
|
{
|
|
2294
2294
|
ok: true,
|
|
2295
2295
|
status: "complete",
|
|
@@ -2338,7 +2338,7 @@ Examples:
|
|
|
2338
2338
|
).action(async (options) => {
|
|
2339
2339
|
const claim = _optionalChain([options, 'access', _88 => _88.claim, 'optionalAccess', _89 => _89.trim, 'call', _90 => _90()]);
|
|
2340
2340
|
if (!claim) {
|
|
2341
|
-
|
|
2341
|
+
_chunkFUTYFVJRjs.printCommandEnvelope.call(void 0,
|
|
2342
2342
|
{
|
|
2343
2343
|
ok: false,
|
|
2344
2344
|
status: "failed",
|
|
@@ -2351,7 +2351,7 @@ Examples:
|
|
|
2351
2351
|
process.exitCode = 2;
|
|
2352
2352
|
return;
|
|
2353
2353
|
}
|
|
2354
|
-
await syncSdkSkillsIfNeeded(
|
|
2354
|
+
await syncSdkSkillsIfNeeded(_chunkA5L54JX6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
2355
2355
|
mode: "inline",
|
|
2356
2356
|
notices: "defer",
|
|
2357
2357
|
claim
|
|
@@ -21,7 +21,7 @@ var _chunkPAIMOGCMjs = require('./chunk-PAIMOGCM.js');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkA5L54JX6js = require('./chunk-A5L54JX6.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, _chunkA5L54JX6js.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, _chunkA5L54JX6js.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, _chunkA5L54JX6js.CustomerDbQueryOutcomeUnknownError)(
|
|
160
160
|
new (0, _chunk7P5AA3SNjs.DeeplineError)(
|
|
161
161
|
"The server did not confirm the original atomic SQL operation.",
|
|
162
162
|
200,
|
|
@@ -1222,6 +1222,7 @@ var RUN_EVENT_TERMINAL_KIND_VALUES = [
|
|
|
1222
1222
|
RUN_EVENT_KIND.runCancelled
|
|
1223
1223
|
];
|
|
1224
1224
|
var RUN_LOG_RETENTION_MAX_BYTES = 5 * 1024 * 1024;
|
|
1225
|
+
var RUN_LOG_TERMINAL_FACT_MAX_BYTES = 256 * 1024;
|
|
1225
1226
|
var RUN_LOG_LEVELS = ["debug", "info", "warn", "error"];
|
|
1226
1227
|
function sqlStringLiteral(value) {
|
|
1227
1228
|
return "'" + value.replaceAll("'", "''") + "'";
|
|
@@ -2910,8 +2911,8 @@ function runtimeSelectionHeaders(runtime) {
|
|
|
2910
2911
|
}
|
|
2911
2912
|
const receivers = _optionalChain([process, 'access', _104 => _104.env, 'access', _105 => _105.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _106 => _106.trim, 'call', _107 => _107()]);
|
|
2912
2913
|
return {
|
|
2913
|
-
[
|
|
2914
|
-
...receivers ? { [
|
|
2914
|
+
[_chunkA5L54JX6js.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
2915
|
+
...receivers ? { [_chunkA5L54JX6js.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
2915
2916
|
};
|
|
2916
2917
|
}
|
|
2917
2918
|
function isolatedCiRuntimeEventReadHeaders() {
|
|
@@ -2927,7 +2928,7 @@ function isolatedCiRuntimeEventReadHeaders() {
|
|
|
2927
2928
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
2928
2929
|
);
|
|
2929
2930
|
}
|
|
2930
|
-
return { [
|
|
2931
|
+
return { [_chunkA5L54JX6js.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
2931
2932
|
}
|
|
2932
2933
|
function normalizeTestPolicyOverrides(value, source) {
|
|
2933
2934
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
@@ -3217,8 +3218,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
3217
3218
|
* @throws {@link ConfigError} if no API key can be resolved from any source.
|
|
3218
3219
|
*/
|
|
3219
3220
|
constructor(options) {
|
|
3220
|
-
this.config =
|
|
3221
|
-
this.http = new (0,
|
|
3221
|
+
this.config = _chunkA5L54JX6js.resolveConfig.call(void 0, options);
|
|
3222
|
+
this.http = new (0, _chunkA5L54JX6js.HttpClient)(this.config);
|
|
3222
3223
|
this.toolCalls = new ToolCalls(
|
|
3223
3224
|
this.http,
|
|
3224
3225
|
this.config.timeout,
|
|
@@ -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.387",
|
|
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
|