deepline 0.3.366 → 0.3.367
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/observability/scheduled-jobs.json +36 -18
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +14 -6
- package/dist/bundling-sources/shared_libs/security/receipt-admission-token.ts +69 -0
- package/dist/cli/{auth-TZ75C4ZF.mjs → auth-2DHYG3WZ.mjs} +4 -4
- package/dist/cli/auth-I2E45QZK.js +33 -0
- package/dist/cli/{billing-EWUOK4GO.mjs → billing-VFBFBOO5.mjs} +4 -4
- package/dist/cli/{billing-HVC2GZIO.js → billing-YBTOTHXM.js} +73 -73
- package/dist/cli/{chunk-NL2SM3PJ.js → chunk-3BZR22CZ.js} +60 -60
- package/dist/cli/{chunk-6IHGYDQ2.mjs → chunk-3Y3N7WQO.mjs} +1 -1
- package/dist/cli/{chunk-34VVYOOS.mjs → chunk-3ZO2O2LE.mjs} +2 -2
- package/dist/cli/{chunk-GY2CP5CD.js → chunk-5NVMNFCG.js} +15 -15
- package/dist/cli/{chunk-B7Z67XDJ.mjs → chunk-6DRGO4CB.mjs} +6 -6
- package/dist/cli/{chunk-R2KRYCMG.js → chunk-AVSPBILZ.js} +8 -8
- package/dist/cli/{chunk-HN36RO6X.js → chunk-B7JTGFDS.js} +1 -1
- package/dist/cli/{chunk-CGQYV3DP.mjs → chunk-BBQ5IWRX.mjs} +5 -5
- package/dist/cli/{chunk-Q7EHVVXL.js → chunk-CRRVBNZD.js} +8 -8
- package/dist/cli/{chunk-WQU6JKI7.js → chunk-D7SELX66.js} +6 -6
- package/dist/cli/{chunk-AA27IFNY.mjs → chunk-DIDYT2TH.mjs} +2 -2
- package/dist/cli/{chunk-4TTEGFR2.mjs → chunk-GD2VVYGB.mjs} +1 -1
- package/dist/cli/{chunk-FLDG3DHC.mjs → chunk-GXRUBTXZ.mjs} +2 -2
- package/dist/cli/{chunk-HWQDC632.mjs → chunk-HEWGTHI2.mjs} +3 -3
- package/dist/cli/{chunk-HGTB7UDS.mjs → chunk-JNQECSK5.mjs} +1 -1
- package/dist/cli/{chunk-QGOX4BEC.mjs → chunk-K4V4FX76.mjs} +1 -1
- package/dist/cli/{chunk-7CM4UYZQ.js → chunk-KJFND3YT.js} +9 -9
- package/dist/cli/{chunk-ACTYDJXL.mjs → chunk-LDSBBKSM.mjs} +2 -2
- package/dist/cli/{chunk-DLKBP5OO.js → chunk-LJIWLZHS.js} +45 -45
- package/dist/cli/{chunk-EHMD3F4H.js → chunk-MKRADCZK.js} +26 -26
- package/dist/cli/{chunk-F3M4MBWP.js → chunk-MXJEKMHU.js} +224 -224
- package/dist/cli/{chunk-HQKAEQYO.mjs → chunk-OCX5D2WI.mjs} +1 -1
- package/dist/cli/{chunk-BLVYVSKP.js → chunk-R2HHZLOP.js} +4 -4
- package/dist/cli/{chunk-POZOZVP4.mjs → chunk-W2LUUB3U.mjs} +4 -4
- package/dist/cli/{chunk-ZMPLBWCO.js → chunk-XPIZKTYZ.js} +50 -50
- package/dist/cli/{chunk-4MW7PFKR.js → chunk-Z35CB3I5.js} +2 -2
- package/dist/cli/{client-XGLW3H5N.mjs → client-F6SEXBBG.mjs} +3 -3
- package/dist/cli/client-VWGJIUGH.js +20 -0
- package/dist/cli/{csv-D2FZPBLE.js → csv-4AB42QFI.js} +12 -12
- package/dist/cli/{csv-CSRHORRP.mjs → csv-DC3MLBOC.mjs} +3 -3
- package/dist/cli/{db-SMPCTNYW.mjs → db-JAQHMLUY.mjs} +4 -4
- package/dist/cli/{db-FBTYUJNE.js → db-M3URDTLR.js} +29 -29
- package/dist/cli/{describe-YLIQOYIQ.js → describe-AVXUIRDK.js} +15 -15
- package/dist/cli/{describe-O7DAHKCV.mjs → describe-RYXCBLJG.mjs} +8 -8
- package/dist/cli/{executions-5WWOQBZA.js → executions-DYDW4WY3.js} +6 -6
- package/dist/cli/{executions-3JT2QJF3.mjs → executions-XPY5FKOS.mjs} +4 -4
- package/dist/cli/{feedback-JM2AYBUJ.js → feedback-HMP2ZYNW.js} +7 -7
- package/dist/cli/{feedback-NLO2YSK4.mjs → feedback-ZOI3GFAC.mjs} +3 -3
- package/dist/cli/{git-SXG2PCY3.mjs → git-K35PB25D.mjs} +4 -4
- package/dist/cli/git-TJEM2U4K.js +23 -0
- package/dist/cli/index.js +82 -82
- package/dist/cli/index.mjs +32 -32
- package/dist/cli/{legacy-noops-7FHORR7V.mjs → legacy-noops-PKGJRS75.mjs} +4 -4
- package/dist/cli/{legacy-noops-FPP5XP4I.js → legacy-noops-QNNMKQDW.js} +7 -7
- package/dist/cli/{monitors-Z4R2PECQ.mjs → monitors-JMNBMRSQ.mjs} +4 -4
- package/dist/cli/{monitors-ZHSUOPCC.js → monitors-MUMWTBID.js} +85 -85
- package/dist/cli/{org-NQYIPCDY.js → org-2QL6AY6G.js} +64 -64
- package/dist/cli/{org-SS2INCPG.mjs → org-AQPMMPQE.mjs} +4 -4
- package/dist/cli/{play-TNMFBICT.mjs → play-AITTTWYK.mjs} +7 -7
- package/dist/cli/play-YO52D4YP.js +153 -0
- package/dist/cli/{providers-ZGGKKO2C.js → providers-BGTPNAOA.js} +7 -7
- package/dist/cli/{providers-AXYAEJCA.mjs → providers-LRCYLIQA.mjs} +4 -4
- package/dist/cli/{quickstart-2O4QL5GW.mjs → quickstart-3II563Z7.mjs} +3 -3
- package/dist/cli/{quickstart-2SLJX4FM.js → quickstart-WMAUXWKW.js} +5 -5
- package/dist/cli/search-FQ5NSE7R.js +26 -0
- package/dist/cli/{search-BM6PCZM3.mjs → search-J6ELRZNH.mjs} +5 -5
- package/dist/cli/{secrets-US4VXQHS.js → secrets-HDBB2647.js} +13 -13
- package/dist/cli/{secrets-536MUJQU.mjs → secrets-L7LOTLZB.mjs} +4 -4
- package/dist/cli/{sessions-25GZ6Q77.mjs → sessions-7DMN24LF.mjs} +4 -4
- package/dist/cli/{sessions-EBL2YYVN.js → sessions-ZO3WB3EF.js} +5 -5
- package/dist/cli/{settings-LJ5JD3SD.js → settings-OVUM5BLZ.js} +74 -74
- package/dist/cli/{settings-CVJFIHPL.mjs → settings-USHCF4YD.mjs} +7 -7
- package/dist/cli/{setup-X7KWBX3R.mjs → setup-FZQ7HDL4.mjs} +6 -6
- package/dist/cli/{setup-M5CL4OR2.js → setup-W77Y5ALX.js} +41 -41
- package/dist/cli/{skills-HQS57Z3Z.mjs → skills-A2LR3RAP.mjs} +4 -4
- package/dist/cli/skills-GLKEZPFV.js +28 -0
- package/dist/cli/{tools-RZVJKDMA.mjs → tools-FX7G7KX5.mjs} +6 -6
- package/dist/cli/tools-HBNJ3WP3.js +40 -0
- package/dist/cli/update-A2TZZO2S.js +28 -0
- package/dist/cli/{update-7EHG6ZRX.mjs → update-EODE5FHU.mjs} +6 -6
- package/dist/cli/{workflow-5D32EFY7.mjs → workflow-7352UH6L.mjs} +5 -5
- package/dist/cli/{workflow-6EU3N2FH.js → workflow-JEY4ESZA.js} +15 -15
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +74 -74
- 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-AV5JNWDX.js +0 -33
- package/dist/cli/client-XVB5TOJ3.js +0 -20
- package/dist/cli/git-7ZQJCYJA.js +0 -23
- package/dist/cli/play-6SFL4F4A.js +0 -153
- package/dist/cli/search-BNQV6EUD.js +0 -26
- package/dist/cli/skills-LSNI3TO5.js +0 -28
- package/dist/cli/tools-TPVFLJDX.js +0 -40
- package/dist/cli/update-TW3326K2.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.367",
|
|
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
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
recentSearchRef,
|
|
13
13
|
registerDeprecatedSearchCommand
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HEWGTHI2.mjs";
|
|
15
15
|
import {
|
|
16
16
|
extractSummaryFields,
|
|
17
17
|
projectRowOutput,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
import {
|
|
27
27
|
DeeplineClient,
|
|
28
28
|
validateExecutionIdempotencyKey
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-JNQECSK5.mjs";
|
|
30
30
|
import {
|
|
31
31
|
beginToolExecuteCommand,
|
|
32
32
|
getToolExecuteInvocationId,
|
|
@@ -40,11 +40,11 @@ import {
|
|
|
40
40
|
printJsonError,
|
|
41
41
|
renderCommandEnvelopeText,
|
|
42
42
|
shouldEmitJson
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-K4V4FX76.mjs";
|
|
44
44
|
import {
|
|
45
45
|
resolveConfig,
|
|
46
46
|
sdkCliStateDirPath
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-OCX5D2WI.mjs";
|
|
48
48
|
import {
|
|
49
49
|
DeeplineError
|
|
50
50
|
} from "./chunk-NXGCO4JB.mjs";
|
|
@@ -1030,7 +1030,7 @@ Examples:
|
|
|
1030
1030
|
process.exitCode = await narrowView();
|
|
1031
1031
|
return;
|
|
1032
1032
|
}
|
|
1033
|
-
const { describeAnything } = await import("./describe-
|
|
1033
|
+
const { describeAnything } = await import("./describe-RYXCBLJG.mjs");
|
|
1034
1034
|
process.exitCode = await describeAnything(
|
|
1035
1035
|
toolId,
|
|
1036
1036
|
{ ...options, kinds: ["tools", "monitors"], fetchedTool: metadata },
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkKJFND3YTjs = require('./chunk-KJFND3YT.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkD7SELX66js = require('./chunk-D7SELX66.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkR2HHZLOPjs = require('./chunk-R2HHZLOP.js');
|
|
12
12
|
|
|
13
13
|
// src/cli/commands/search.ts
|
|
14
14
|
var _commander = require('commander');
|
|
@@ -18,7 +18,7 @@ var _fs = require('fs');
|
|
|
18
18
|
var _path = require('path');
|
|
19
19
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
20
20
|
function lastSearchPath() {
|
|
21
|
-
return _path.join.call(void 0,
|
|
21
|
+
return _path.join.call(void 0, _chunkR2HHZLOPjs.sdkCliStateDirPath.call(void 0, _chunkR2HHZLOPjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
22
22
|
}
|
|
23
23
|
function rememberSearchRef(searchRef) {
|
|
24
24
|
try {
|
|
@@ -153,7 +153,7 @@ function searchRow(item) {
|
|
|
153
153
|
}
|
|
154
154
|
function renderSearchResults(result) {
|
|
155
155
|
if (result.results.length === 0)
|
|
156
|
-
return
|
|
156
|
+
return _chunkD7SELX66js.renderCommandEnvelopeText.call(void 0, result);
|
|
157
157
|
const rows = result.results.map(searchRow);
|
|
158
158
|
const kinds = new Set(rows.map((row) => row.kind));
|
|
159
159
|
const onlyTools = kinds.size === 1 && kinds.has("tool");
|
|
@@ -177,7 +177,7 @@ function renderSearchResults(result) {
|
|
|
177
177
|
actions: _optionalChain([render, 'optionalAccess', _11 => _11.actions])
|
|
178
178
|
};
|
|
179
179
|
const followUps = _optionalChain([remaining, 'access', _12 => _12.sections, 'optionalAccess', _13 => _13.length]) || _optionalChain([remaining, 'access', _14 => _14.actions, 'optionalAccess', _15 => _15.length]) ? `
|
|
180
|
-
${
|
|
180
|
+
${_chunkD7SELX66js.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
|
|
181
181
|
const notes = rows.flatMap(
|
|
182
182
|
(row) => row.notes.map((note) => ` ${row.id}: ${note}`)
|
|
183
183
|
);
|
|
@@ -254,7 +254,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
254
254
|
console.error(USAGE);
|
|
255
255
|
return 1;
|
|
256
256
|
}
|
|
257
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
257
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunkKJFND3YTjs.DeeplineClient)().search({
|
|
258
258
|
query,
|
|
259
259
|
types,
|
|
260
260
|
exclude,
|
|
@@ -268,7 +268,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
268
268
|
});
|
|
269
269
|
if (searchRef) rememberSearchRef(searchRef);
|
|
270
270
|
pointAtDescribe(result);
|
|
271
|
-
|
|
271
|
+
_chunkD7SELX66js.printCommandEnvelope.call(void 0, result, {
|
|
272
272
|
json: options.json === true,
|
|
273
273
|
text: renderSearchResults(result)
|
|
274
274
|
});
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkR2HHZLOPjs = require('./chunk-R2HHZLOP.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
@@ -225,8 +225,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
225
225
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
226
226
|
var defaultBrowserCommandRunner = childProcess;
|
|
227
227
|
function getAuthedHttpClient() {
|
|
228
|
-
const config =
|
|
229
|
-
return { config, http: new (0,
|
|
228
|
+
const config = _chunkR2HHZLOPjs.resolveConfig.call(void 0, );
|
|
229
|
+
return { config, http: new (0, _chunkR2HHZLOPjs.HttpClient)(config) };
|
|
230
230
|
}
|
|
231
231
|
function stableOsUserId() {
|
|
232
232
|
try {
|
|
@@ -566,7 +566,7 @@ function collectLocalEnvInfo() {
|
|
|
566
566
|
os: `${process.platform} ${process.arch}`,
|
|
567
567
|
node_version: process.version,
|
|
568
568
|
home_dir: homeDir,
|
|
569
|
-
agent_runtime:
|
|
569
|
+
agent_runtime: _chunkR2HHZLOPjs.detectAgentRuntime.call(void 0, )
|
|
570
570
|
};
|
|
571
571
|
const env = process.env;
|
|
572
572
|
const optional = {
|
|
@@ -813,9 +813,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
813
813
|
}
|
|
814
814
|
function withAgentCommandContext(value) {
|
|
815
815
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
816
|
-
return
|
|
816
|
+
return _chunkR2HHZLOPjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
817
817
|
...valueRecord,
|
|
818
|
-
command_context:
|
|
818
|
+
command_context: _chunkR2HHZLOPjs.resolveCliCommandContext.call(void 0, )
|
|
819
819
|
} : value;
|
|
820
820
|
}
|
|
821
821
|
function printJson(value, fields) {
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-K4V4FX76.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OCX5D2WI.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -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.367",
|
|
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
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-GAMFK2ZP.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-K4V4FX76.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_SKILL_AGENTS,
|
|
9
9
|
KNOWN_SKILL_AGENTS,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
sdkCliStateDirPath,
|
|
23
23
|
skillsAgentPathSegment,
|
|
24
24
|
writeSdkSkillsLocalVersion
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-OCX5D2WI.mjs";
|
|
26
26
|
import {
|
|
27
27
|
DeeplineError
|
|
28
28
|
} from "./chunk-NXGCO4JB.mjs";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JNQECSK5.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope,
|
|
6
6
|
renderCommandEnvelopeText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-K4V4FX76.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveConfig,
|
|
10
10
|
sdkCliStateDirPath
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OCX5D2WI.mjs";
|
|
12
12
|
|
|
13
13
|
// src/cli/commands/search.ts
|
|
14
14
|
import { Option } from "commander";
|
|
@@ -21,7 +21,7 @@ var _chunkLA46MMTLjs = require('./chunk-LA46MMTL.js');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkR2HHZLOPjs = require('./chunk-R2HHZLOP.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
@@ -167,7 +167,7 @@ async function queryCustomerDatabase(http, input) {
|
|
|
167
167
|
if (error instanceof _chunk7P5AA3SNjs.DeeplineError && (_optionalChain([error, 'access', _2 => _2.code, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4("NETWORK_")]) || // Older API readers return PostgreSQL errors as HTTP 400, including
|
|
168
168
|
// lost connections and explicitly unknown transaction resolution.
|
|
169
169
|
/^08[A-Z0-9]{3}$/.test(_nullishCoalesce(error.code, () => ( ""))) || ["57P01", "57P02", "57P03"].includes(_nullishCoalesce(error.code, () => ( ""))) || error.statusCode === 408 || (_nullishCoalesce(error.statusCode, () => ( 0))) >= 500)) {
|
|
170
|
-
throw new (0,
|
|
170
|
+
throw new (0, _chunkR2HHZLOPjs.CustomerDbQueryOutcomeUnknownError)(
|
|
171
171
|
error,
|
|
172
172
|
plan.request.body.operation_key
|
|
173
173
|
);
|
|
@@ -175,7 +175,7 @@ async function queryCustomerDatabase(http, input) {
|
|
|
175
175
|
throw error;
|
|
176
176
|
}
|
|
177
177
|
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) {
|
|
178
|
-
throw new (0,
|
|
178
|
+
throw new (0, _chunkR2HHZLOPjs.CustomerDbQueryOutcomeUnknownError)(
|
|
179
179
|
new (0, _chunk7P5AA3SNjs.DeeplineError)(
|
|
180
180
|
"The SQL response did not contain a valid result.",
|
|
181
181
|
200,
|
|
@@ -186,7 +186,7 @@ async function queryCustomerDatabase(http, input) {
|
|
|
186
186
|
}
|
|
187
187
|
const operation = result.operation;
|
|
188
188
|
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))) {
|
|
189
|
-
throw new (0,
|
|
189
|
+
throw new (0, _chunkR2HHZLOPjs.CustomerDbQueryOutcomeUnknownError)(
|
|
190
190
|
new (0, _chunk7P5AA3SNjs.DeeplineError)(
|
|
191
191
|
"The server did not confirm the original atomic SQL operation.",
|
|
192
192
|
200,
|
|
@@ -2910,8 +2910,8 @@ function runtimeSelectionHeaders(runtime) {
|
|
|
2910
2910
|
}
|
|
2911
2911
|
const receivers = _optionalChain([process, 'access', _104 => _104.env, 'access', _105 => _105.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _106 => _106.trim, 'call', _107 => _107()]);
|
|
2912
2912
|
return {
|
|
2913
|
-
[
|
|
2914
|
-
...receivers ? { [
|
|
2913
|
+
[_chunkR2HHZLOPjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
2914
|
+
...receivers ? { [_chunkR2HHZLOPjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
2915
2915
|
};
|
|
2916
2916
|
}
|
|
2917
2917
|
function isolatedCiRuntimeEventReadHeaders() {
|
|
@@ -2927,7 +2927,7 @@ function isolatedCiRuntimeEventReadHeaders() {
|
|
|
2927
2927
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
2928
2928
|
);
|
|
2929
2929
|
}
|
|
2930
|
-
return { [
|
|
2930
|
+
return { [_chunkR2HHZLOPjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
2931
2931
|
}
|
|
2932
2932
|
function normalizeTestPolicyOverrides(value, source) {
|
|
2933
2933
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
@@ -3217,8 +3217,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
3217
3217
|
* @throws {@link ConfigError} if no API key can be resolved from any source.
|
|
3218
3218
|
*/
|
|
3219
3219
|
constructor(options) {
|
|
3220
|
-
this.config =
|
|
3221
|
-
this.http = new (0,
|
|
3220
|
+
this.config = _chunkR2HHZLOPjs.resolveConfig.call(void 0, options);
|
|
3221
|
+
this.http = new (0, _chunkR2HHZLOPjs.HttpClient)(this.config);
|
|
3222
3222
|
this.toolCalls = new ToolCalls(
|
|
3223
3223
|
this.http,
|
|
3224
3224
|
this.config.timeout,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-K4V4FX76.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OCX5D2WI.mjs";
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
import {
|