deepline 0.3.414 → 0.3.416
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/cli/auth-BNQP4UYQ.js +40 -0
- package/dist/cli/{auth-5QG4TOA6.mjs → auth-FLYZAZ7I.mjs} +4 -4
- package/dist/cli/{billing-W7YO6VXH.js → billing-SVGZSMBY.js} +73 -73
- package/dist/cli/{billing-JV3HCOMG.mjs → billing-XZ62L6ZE.mjs} +4 -4
- package/dist/cli/{chunk-PK55NFM5.js → chunk-2DRO4YWM.js} +2 -2
- package/dist/cli/{chunk-S6ZBXS7N.mjs → chunk-2MQJODFQ.mjs} +1 -1
- package/dist/cli/{chunk-QVBVSC3M.js → chunk-4R3TJDWD.js} +8 -8
- package/dist/cli/{chunk-VOTKMPYY.mjs → chunk-6GYQG6V3.mjs} +7 -3
- package/dist/cli/{chunk-H5GTXEGI.mjs → chunk-7OLAGY3W.mjs} +4 -4
- package/dist/cli/{chunk-NOGPMTF5.mjs → chunk-DBMALDT3.mjs} +8 -8
- package/dist/cli/{chunk-LI2LTEO4.mjs → chunk-DT36JAAX.mjs} +2 -2
- package/dist/cli/{chunk-ZEQ3N6SI.js → chunk-E5FNJE3Y.js} +4 -4
- package/dist/cli/{chunk-UGQLBLSZ.mjs → chunk-ENBTCBGT.mjs} +23 -14
- package/dist/cli/{chunk-L3DLOICI.mjs → chunk-ERPU6HBQ.mjs} +3 -3
- package/dist/cli/{chunk-XPOIHVTN.js → chunk-ESUBIEVT.js} +6 -6
- package/dist/cli/{chunk-EWDWMTTD.js → chunk-F5KJFBDA.js} +1 -1
- package/dist/cli/{chunk-5S4QRLRC.mjs → chunk-FFEA6KAB.mjs} +2 -2
- package/dist/cli/{chunk-RYWFCSGX.mjs → chunk-G3WJWD4R.mjs} +1 -1
- package/dist/cli/{chunk-URBOSCO6.js → chunk-LFUGXKJW.js} +20 -20
- package/dist/cli/{chunk-N3EF5WQV.js → chunk-MRL2OMZY.js} +10 -10
- package/dist/cli/{chunk-HSYVA2JK.mjs → chunk-MT7VPFMN.mjs} +2 -2
- package/dist/cli/{chunk-3PBK7PHE.mjs → chunk-NPFMAFUC.mjs} +1 -1
- package/dist/cli/{chunk-JR4FDOWR.js → chunk-NWPC3FUA.js} +28 -19
- package/dist/cli/{chunk-MALNVMG6.mjs → chunk-PH6OXQC7.mjs} +1 -1
- package/dist/cli/{chunk-OKKLH4QY.mjs → chunk-Q6MUMX2G.mjs} +2 -2
- package/dist/cli/{chunk-J2GD6PDT.js → chunk-TOIDV6Q4.js} +50 -50
- package/dist/cli/{chunk-RHOY4RXI.js → chunk-TXLZ6BJC.js} +26 -26
- package/dist/cli/{chunk-4CPRZPRQ.js → chunk-UJTWIOQK.js} +6 -6
- package/dist/cli/{chunk-VJRAFJ6H.js → chunk-UXLXZN2F.js} +2 -2
- package/dist/cli/{chunk-MH6H63HF.js → chunk-WL3MI252.js} +35 -35
- package/dist/cli/{chunk-M2V34XOG.mjs → chunk-XP6LSFCW.mjs} +5 -5
- package/dist/cli/{chunk-QWLGBYTB.mjs → chunk-XUMHZPE3.mjs} +1 -1
- package/dist/cli/{chunk-ODA4AZM3.js → chunk-YCAMTIYM.js} +79 -79
- package/dist/cli/{chunk-OEHMER3F.js → chunk-YK3XHX7G.js} +16 -16
- package/dist/cli/{chunk-BXWLG55T.js → chunk-ZCO7R65D.js} +56 -52
- package/dist/cli/{chunk-EFD5CW26.mjs → chunk-ZMQTLPLJ.mjs} +1 -1
- package/dist/cli/{csv-HH5HBH2J.mjs → csv-4TAHSCJO.mjs} +3 -3
- package/dist/cli/{csv-EO2L4TEE.js → csv-X72WTTMT.js} +12 -12
- package/dist/cli/{db-MUXVX2BC.js → db-3LIMAM2U.js} +25 -25
- package/dist/cli/{db-Y7CREGF3.mjs → db-CK3WE7QC.mjs} +4 -4
- package/dist/cli/{describe-4P76LT4U.mjs → describe-FW6XZCFK.mjs} +12 -12
- package/dist/cli/{describe-66HDJGQI.js → describe-H2Z2VKU2.js} +16 -16
- package/dist/cli/{executions-SOEK54UR.mjs → executions-VXGO3GSE.mjs} +4 -4
- package/dist/cli/{executions-HKGTLNX5.js → executions-X7SXKMAI.js} +6 -6
- package/dist/cli/{feedback-TLABM3DG.js → feedback-6I3NFUPV.js} +7 -7
- package/dist/cli/{feedback-NX64K5CR.mjs → feedback-KTDQHUNJ.mjs} +3 -3
- package/dist/cli/git-LLP4T6XB.js +24 -0
- package/dist/cli/{git-Y25E2ZJC.mjs → git-ODZASGIK.mjs} +4 -4
- package/dist/cli/index.js +131 -131
- package/dist/cli/index.mjs +36 -36
- package/dist/cli/{legacy-noops-EXFCXCRK.js → legacy-noops-HLVQGZ72.js} +7 -7
- package/dist/cli/{legacy-noops-RRMXZZ4S.mjs → legacy-noops-KNGT6U3L.mjs} +4 -4
- package/dist/cli/{monitors-FB75AVWA.js → monitors-3F5EZCMB.js} +84 -84
- package/dist/cli/{monitors-CCKCBND7.mjs → monitors-JLGADUE5.mjs} +4 -4
- package/dist/cli/{org-KDPXHQPC.mjs → org-D7AW6LIR.mjs} +4 -4
- package/dist/cli/{org-SQQG44XI.js → org-Z4LPCJII.js} +64 -64
- package/dist/cli/{play-HPQEDJEP.mjs → play-MO3SAHDS.mjs} +10 -10
- package/dist/cli/{play-CSKSDDQS.js → play-UBNDV57A.js} +283 -283
- package/dist/cli/{providers-TFVCFP7J.mjs → providers-QCBNQY4A.mjs} +4 -4
- package/dist/cli/{providers-7FDWGH3C.js → providers-SL6ZSEDI.js} +7 -7
- package/dist/cli/{quickstart-2J67PING.mjs → quickstart-K7J4YOTE.mjs} +3 -3
- package/dist/cli/{quickstart-JQRTIIIZ.js → quickstart-YGFVF6VL.js} +5 -5
- package/dist/cli/{search-7ZA7UIVM.mjs → search-DVE6TKQ3.mjs} +5 -5
- package/dist/cli/search-V4HNFZRE.js +30 -0
- package/dist/cli/{secrets-J676GB6Q.js → secrets-G7ZMCH5J.js} +13 -13
- package/dist/cli/{secrets-ZQY5GO4T.mjs → secrets-JOVBXCUR.mjs} +4 -4
- package/dist/cli/{sessions-OP2352DC.mjs → sessions-NA5POIR5.mjs} +4 -4
- package/dist/cli/{sessions-AVICKLMK.js → sessions-QQV7FO4Y.js} +5 -5
- package/dist/cli/{settings-QNILCEH6.mjs → settings-AM44HC2C.mjs} +8 -8
- package/dist/cli/{settings-EWKNDCGF.js → settings-XGFHXFCJ.js} +75 -75
- package/dist/cli/{setup-IHILOCOK.js → setup-DA4TSWCY.js} +42 -42
- package/dist/cli/{setup-4NDX6UAI.mjs → setup-RUBLF452.mjs} +7 -7
- package/dist/cli/skills-6AQTCBTF.js +29 -0
- package/dist/cli/{skills-H73NL3VP.mjs → skills-TRG55YOF.mjs} +5 -5
- package/dist/cli/{tools-ZFPBY4Q2.mjs → tools-CEEA7DU4.mjs} +12 -12
- package/dist/cli/tools-JLPTH7TF.js +44 -0
- package/dist/cli/update-EKEBZDIX.js +31 -0
- package/dist/cli/{update-XULEC376.mjs → update-Y5GSWR67.mjs} +7 -7
- package/dist/cli/{workflow-OD5XZHCL.mjs → workflow-74I6RNJR.mjs} +5 -5
- package/dist/cli/{workflow-JX4WSBYH.js → workflow-D2VHQKJB.js} +15 -15
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +78 -78
- 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-5A3Z4LNL.js +0 -40
- package/dist/cli/git-K55QWG6X.js +0 -24
- package/dist/cli/search-O3PYDXOZ.js +0 -30
- package/dist/cli/skills-TDL7SEFT.js +0 -29
- package/dist/cli/tools-GPFPJWWA.js +0 -44
- package/dist/cli/update-VR6EWUUT.js +0 -31
|
@@ -1,10 +1,10 @@
|
|
|
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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkUJTWIOQKjs = require('./chunk-UJTWIOQK.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkE5FNJE3Yjs = require('./chunk-E5FNJE3Y.js');
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
|
|
@@ -139,7 +139,7 @@ function currentSessionFile(agent) {
|
|
|
139
139
|
const newestFirst = listSessionFiles(agent).sort(
|
|
140
140
|
(a, b) => b.mtimeMs - a.mtimeMs
|
|
141
141
|
);
|
|
142
|
-
const sessionId =
|
|
142
|
+
const sessionId = _chunkE5FNJE3Yjs.agentSessionIdFromEnvironment.call(void 0,
|
|
143
143
|
process.env,
|
|
144
144
|
agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
|
|
145
145
|
);
|
|
@@ -451,7 +451,7 @@ function buildSessionUploadContent(raw) {
|
|
|
451
451
|
return { encodedContent: encoded, needsChunking: true };
|
|
452
452
|
}
|
|
453
453
|
async function uploadPayload(path, payload) {
|
|
454
|
-
const { http } =
|
|
454
|
+
const { http } = _chunkUJTWIOQKjs.getAuthedHttpClient.call(void 0, );
|
|
455
455
|
return await http.post(path, payload);
|
|
456
456
|
}
|
|
457
457
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -484,7 +484,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
484
484
|
...options.rating ? { rating: options.rating } : {}
|
|
485
485
|
});
|
|
486
486
|
const sessionIds = sessions.map((session) => session.sessionId);
|
|
487
|
-
|
|
487
|
+
_chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
|
|
488
488
|
{
|
|
489
489
|
...response,
|
|
490
490
|
ok: true,
|
|
@@ -516,7 +516,7 @@ async function handleSessionsSend(options) {
|
|
|
516
516
|
filename: _path.basename.call(void 0, filePath),
|
|
517
517
|
...rating ? { rating } : {}
|
|
518
518
|
});
|
|
519
|
-
|
|
519
|
+
_chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
|
|
520
520
|
{
|
|
521
521
|
...response2,
|
|
522
522
|
ok: true,
|
|
@@ -566,7 +566,7 @@ async function handleSessionsSend(options) {
|
|
|
566
566
|
...rating ? { rating } : {}
|
|
567
567
|
});
|
|
568
568
|
const sessionIds = built.map((session) => session.sessionId);
|
|
569
|
-
|
|
569
|
+
_chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
|
|
570
570
|
{
|
|
571
571
|
...response,
|
|
572
572
|
ok: true,
|
|
@@ -674,7 +674,7 @@ ${refreshMeta}
|
|
|
674
674
|
</body>
|
|
675
675
|
</html>`;
|
|
676
676
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
677
|
-
|
|
677
|
+
_chunkUJTWIOQKjs.printCommandEnvelope.call(void 0,
|
|
678
678
|
{
|
|
679
679
|
ok: true,
|
|
680
680
|
file: outputPath,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isJsonOutputMode
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NPFMAFUC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_SKILL_AGENTS,
|
|
6
6
|
KNOWN_SKILL_AGENTS,
|
|
@@ -17,13 +17,13 @@ import {
|
|
|
17
17
|
sdkCliStateDirPath,
|
|
18
18
|
skillsAgentPathSegment,
|
|
19
19
|
writeSdkSkillsLocalVersion
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-2MQJODFQ.mjs";
|
|
21
21
|
import {
|
|
22
22
|
DeeplineError
|
|
23
23
|
} from "./chunk-E4IXDAZI.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_RELEASE
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-G3WJWD4R.mjs";
|
|
27
27
|
|
|
28
28
|
// src/compat.ts
|
|
29
29
|
import { randomUUID } from "crypto";
|
|
@@ -340,6 +340,10 @@ var DEFAULT_V1_SKILL_NAMES = [
|
|
|
340
340
|
"deepline-research",
|
|
341
341
|
"deepline-scoring",
|
|
342
342
|
"find-qualified-titles",
|
|
343
|
+
// Retired recipe shortcut: lookup guidance is now one rule in `deepline-gtm`.
|
|
344
|
+
// Kept as a stub because installed CLIs list it and refuse to sync any skill
|
|
345
|
+
// when the published index lacks a listed name. Move to
|
|
346
|
+
// LEGACY_SKILL_NAMES_TO_REMOVE once those CLIs are out of the field.
|
|
343
347
|
"linkedin-url-lookup",
|
|
344
348
|
// Deprecated alias for `deepline-scoring`, kept installable so saved prompts
|
|
345
349
|
// and scripts using `/niche-signal-discovery` keep routing to the renamed
|
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XP6LSFCW.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6GYQG6V3.mjs";
|
|
11
11
|
import {
|
|
12
12
|
addJsonNotice,
|
|
13
13
|
isJsonOutputMode
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NPFMAFUC.mjs";
|
|
15
15
|
import {
|
|
16
16
|
SDK_VERSION,
|
|
17
17
|
resolveApiKeyForBaseUrl
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2MQJODFQ.mjs";
|
|
19
19
|
|
|
20
20
|
// src/cli/compatibility-catalog.ts
|
|
21
21
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
recentSearchRef,
|
|
7
7
|
registerDeprecatedSearchCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ENBTCBGT.mjs";
|
|
9
9
|
import {
|
|
10
10
|
arrayField,
|
|
11
11
|
formatModelDescription,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
import {
|
|
46
46
|
DeeplineClient,
|
|
47
47
|
validateExecutionIdempotencyKey
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-PH6OXQC7.mjs";
|
|
49
49
|
import {
|
|
50
50
|
stableStringify
|
|
51
51
|
} from "./chunk-UBKA33KY.mjs";
|
|
@@ -55,18 +55,18 @@ import {
|
|
|
55
55
|
maybeAutoUpdateAndRelaunch,
|
|
56
56
|
registerCompatibilityCatalog,
|
|
57
57
|
runToolExecuteStage
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-7OLAGY3W.mjs";
|
|
59
59
|
import {
|
|
60
60
|
isCliTraceEnabled,
|
|
61
61
|
recordCliTrace,
|
|
62
62
|
resolveCliMaintenancePolicy
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-ZMQTLPLJ.mjs";
|
|
64
64
|
import {
|
|
65
65
|
checkSdkCompatibility,
|
|
66
66
|
enforceSdkCompatibilityResponse,
|
|
67
67
|
flushDeferredSkillsSyncNotices,
|
|
68
68
|
syncSdkSkillsIfNeeded
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-6GYQG6V3.mjs";
|
|
70
70
|
import {
|
|
71
71
|
printCommandEnvelope,
|
|
72
72
|
printCompactJson,
|
|
@@ -74,12 +74,12 @@ import {
|
|
|
74
74
|
printJsonError,
|
|
75
75
|
renderCommandEnvelopeText,
|
|
76
76
|
shouldEmitJson
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-NPFMAFUC.mjs";
|
|
78
78
|
import {
|
|
79
79
|
readSdkSkillsLocalVersion,
|
|
80
80
|
resolveConfig,
|
|
81
81
|
sdkCliStateDirPath
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-2MQJODFQ.mjs";
|
|
83
83
|
import {
|
|
84
84
|
DeeplineError
|
|
85
85
|
} from "./chunk-E4IXDAZI.mjs";
|
|
@@ -962,7 +962,7 @@ Examples:
|
|
|
962
962
|
process.exitCode = await narrowView();
|
|
963
963
|
return;
|
|
964
964
|
}
|
|
965
|
-
const { describeAnything } = await import("./describe-
|
|
965
|
+
const { describeAnything } = await import("./describe-FW6XZCFK.mjs");
|
|
966
966
|
process.exitCode = await describeAnything(
|
|
967
967
|
toolId,
|
|
968
968
|
{
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NPFMAFUC.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2MQJODFQ.mjs";
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
import {
|
|
@@ -17,7 +17,7 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
|
17
17
|
var _chunkPPDBRJRWjs = require('./chunk-PPDBRJRW.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkF5KJFBDAjs = require('./chunk-F5KJFBDA.js');
|
|
21
21
|
|
|
22
22
|
// src/config.ts
|
|
23
23
|
|
|
@@ -649,9 +649,9 @@ function resolveCliCommandContext(inputConfig, requestedScope) {
|
|
|
649
649
|
}
|
|
650
650
|
|
|
651
651
|
// src/version.ts
|
|
652
|
-
var SDK_VERSION =
|
|
653
|
-
var SDK_API_MAJOR =
|
|
654
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
652
|
+
var SDK_VERSION = _chunkF5KJFBDAjs.SDK_RELEASE.version;
|
|
653
|
+
var SDK_API_MAJOR = _chunkF5KJFBDAjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
654
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkF5KJFBDAjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
655
655
|
|
|
656
656
|
// src/agent-runtime.ts
|
|
657
657
|
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
} from "./chunk-LJ5747UC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PH6OXQC7.mjs";
|
|
7
7
|
import {
|
|
8
8
|
printCommandEnvelope,
|
|
9
9
|
renderCommandEnvelopeText
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NPFMAFUC.mjs";
|
|
11
11
|
import {
|
|
12
12
|
resolveConfig,
|
|
13
13
|
sdkCliStateDirPath
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2MQJODFQ.mjs";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__toESM
|
|
@@ -5759,11 +5759,12 @@ function formatTextTable(rows, columns) {
|
|
|
5759
5759
|
}
|
|
5760
5760
|
|
|
5761
5761
|
// src/cli/search-output.ts
|
|
5762
|
-
|
|
5762
|
+
var DEFAULT_SUMMARY_WIDTH = 140;
|
|
5763
|
+
function clipSummary(value, width) {
|
|
5763
5764
|
const characters = Array.from(value.replace(/\s+/gu, " ").trim());
|
|
5764
|
-
return characters.length <=
|
|
5765
|
+
return characters.length <= width ? characters.join("") : `${characters.slice(0, width - 1).join("")}\u2026`;
|
|
5765
5766
|
}
|
|
5766
|
-
function pricingDisplay(item) {
|
|
5767
|
+
function pricingDisplay(item, noteWidth) {
|
|
5767
5768
|
const pricing = item.pricing;
|
|
5768
5769
|
const observedCost = item.observedCost;
|
|
5769
5770
|
if (observedCost) {
|
|
@@ -5813,7 +5814,7 @@ function pricingDisplay(item) {
|
|
|
5813
5814
|
return { cost: "unknown", notes: [] };
|
|
5814
5815
|
return {
|
|
5815
5816
|
cost: pricing.unit === "usage" ? "usage-based" : "variable",
|
|
5816
|
-
notes: display ? [clipSummary(display)] : []
|
|
5817
|
+
notes: display ? [clipSummary(display, noteWidth)] : []
|
|
5817
5818
|
};
|
|
5818
5819
|
}
|
|
5819
5820
|
var RATE_WINDOW_UNITS = {
|
|
@@ -5841,8 +5842,8 @@ function latencyDisplay(ms) {
|
|
|
5841
5842
|
if (ms < 6e4) return `${(ms / 1e3).toFixed(ms < 1e4 ? 1 : 0)}s`;
|
|
5842
5843
|
return `${(ms / 6e4).toFixed(1)}min`;
|
|
5843
5844
|
}
|
|
5844
|
-
function searchRow(item) {
|
|
5845
|
-
const { cost, notes } = pricingDisplay(item);
|
|
5845
|
+
function searchRow(item, summaryWidth) {
|
|
5846
|
+
const { cost, notes } = pricingDisplay(item, summaryWidth);
|
|
5846
5847
|
const observedMax = item.billingSource === "own_provider_credentials" ? "" : observedMaxText(item.pricing);
|
|
5847
5848
|
if (observedMax)
|
|
5848
5849
|
notes.push(`${observedMax[0].toUpperCase()}${observedMax.slice(1)}.`);
|
|
@@ -5861,7 +5862,7 @@ function searchRow(item) {
|
|
|
5861
5862
|
failureRate: failureRateDisplay(item.failureRate),
|
|
5862
5863
|
// Production p95 latency of successful calls; absent for the same reason.
|
|
5863
5864
|
p95: latencyDisplay(item.latencyP95Ms),
|
|
5864
|
-
summary: clipSummary(item.description ?? ""),
|
|
5865
|
+
summary: clipSummary(item.description ?? "", summaryWidth),
|
|
5865
5866
|
notes
|
|
5866
5867
|
};
|
|
5867
5868
|
}
|
|
@@ -5870,10 +5871,10 @@ var OPTIONAL_COLUMNS = [
|
|
|
5870
5871
|
{ header: "FAILURES", key: "failureRate" },
|
|
5871
5872
|
{ header: "P95", key: "p95" }
|
|
5872
5873
|
];
|
|
5873
|
-
function renderSearchResults(result) {
|
|
5874
|
+
function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
|
|
5874
5875
|
if (result.results.length === 0)
|
|
5875
5876
|
return renderCommandEnvelopeText(result);
|
|
5876
|
-
const rows = result.results.map(searchRow);
|
|
5877
|
+
const rows = result.results.map((item) => searchRow(item, summaryWidth));
|
|
5877
5878
|
const kinds = new Set(rows.map((row) => row.kind));
|
|
5878
5879
|
const onlyTools = kinds.size === 1 && kinds.has("tool");
|
|
5879
5880
|
const columns = [
|
|
@@ -5950,7 +5951,10 @@ function addSearchOptions(command) {
|
|
|
5950
5951
|
).option(
|
|
5951
5952
|
"--search_terms <terms>",
|
|
5952
5953
|
"Comma-separated structured search terms; may be used without a task"
|
|
5953
|
-
).option("--search-terms <terms>", "Alias for --search_terms").addOption(new Option("--task <sentence>").hideHelp()).option("--limit <count>", "Maximum ranked results to return (1-50)").option(
|
|
5954
|
+
).option("--search-terms <terms>", "Alias for --search_terms").addOption(new Option("--task <sentence>").hideHelp()).option("--limit <count>", "Maximum ranked results to return (1-50)").option(
|
|
5955
|
+
"--summary-width <chars>",
|
|
5956
|
+
`Characters of each description shown in the readable list (default ${DEFAULT_SUMMARY_WIDTH})`
|
|
5957
|
+
).option("--offset <count>", "Zero-based ranked result offset").option("--search-mode <mode>", "Ranked search mode: v1 or v2").option("--include-search-debug", "Include ranked search debug metadata").option("--json", "Emit JSON output instead of the readable default");
|
|
5954
5958
|
}
|
|
5955
5959
|
function pointAtDescribe(result) {
|
|
5956
5960
|
const old = /`deepline (tools|plays) describe [^`]*`/;
|
|
@@ -5974,6 +5978,11 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
5974
5978
|
console.error(USAGE);
|
|
5975
5979
|
return 1;
|
|
5976
5980
|
}
|
|
5981
|
+
const summaryWidth = optionalInteger(options.summaryWidth) ?? DEFAULT_SUMMARY_WIDTH;
|
|
5982
|
+
if (!Number.isInteger(summaryWidth) || summaryWidth < 2) {
|
|
5983
|
+
console.error("--summary-width must be an integer of at least 2.");
|
|
5984
|
+
return 1;
|
|
5985
|
+
}
|
|
5977
5986
|
const { search_ref: searchRef, ...result } = await new DeeplineClient().search({
|
|
5978
5987
|
query,
|
|
5979
5988
|
types,
|
|
@@ -5990,7 +5999,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
5990
5999
|
pointAtDescribe(result);
|
|
5991
6000
|
printCommandEnvelope(result, {
|
|
5992
6001
|
json: options.json === true,
|
|
5993
|
-
text: renderSearchResults(result)
|
|
6002
|
+
text: renderSearchResults(result, summaryWidth)
|
|
5994
6003
|
});
|
|
5995
6004
|
return 0;
|
|
5996
6005
|
}
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
skillsInstallLeasePath,
|
|
12
12
|
skillsSourceUrl,
|
|
13
13
|
syncSdkSkillsIfNeeded
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-6GYQG6V3.mjs";
|
|
15
15
|
import {
|
|
16
16
|
printCommandEnvelope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-NPFMAFUC.mjs";
|
|
18
18
|
import {
|
|
19
19
|
SDK_VERSION,
|
|
20
20
|
autoDetectBaseUrl,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
ensureProjectPrivatePathsIgnored,
|
|
23
23
|
resolveProjectPinTarget,
|
|
24
24
|
sdkCliStateDirPath
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-2MQJODFQ.mjs";
|
|
26
26
|
|
|
27
27
|
// src/cli/commands/skills.ts
|
|
28
28
|
import { spawn } from "child_process";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk2DRO4YWMjs = require('./chunk-2DRO4YWM.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkZCO7R65Djs = require('./chunk-ZCO7R65D.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -14,17 +14,17 @@ function usesInlinePlayAdmission(command, args) {
|
|
|
14
14
|
);
|
|
15
15
|
}
|
|
16
16
|
async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured") {
|
|
17
|
-
if (maintenancePolicy !== "off")
|
|
18
|
-
const compatibility = await
|
|
17
|
+
if (maintenancePolicy !== "off") _chunkZCO7R65Djs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
18
|
+
const compatibility = await _chunk2DRO4YWMjs.traceCliSpan.call(void 0,
|
|
19
19
|
"cli.sdk_compatibility",
|
|
20
20
|
{ baseUrl, command: "plays run" },
|
|
21
|
-
() =>
|
|
21
|
+
() => _chunkZCO7R65Djs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
22
22
|
command: "plays run",
|
|
23
23
|
persistCache: maintenancePolicy !== "off"
|
|
24
24
|
})
|
|
25
25
|
);
|
|
26
26
|
if (compatibility.error) throw compatibility.error;
|
|
27
|
-
|
|
27
|
+
_chunkZCO7R65Djs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
28
28
|
quietAdvisory: true
|
|
29
29
|
});
|
|
30
30
|
}
|
|
@@ -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.416",
|
|
53
53
|
updateSummary: {
|
|
54
54
|
introducedIn: "0.3.90",
|
|
55
55
|
summary: "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."
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NPFMAFUC.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-2MQJODFQ.mjs";
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/auth.ts
|
|
31
31
|
import {
|
|
@@ -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.416",
|
|
53
53
|
updateSummary: {
|
|
54
54
|
introducedIn: "0.3.90",
|
|
55
55
|
summary: "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."
|
|
@@ -4,18 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkYK3XHX7Gjs = require('./chunk-YK3XHX7G.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkZCO7R65Djs = require('./chunk-ZCO7R65D.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkUJTWIOQKjs = require('./chunk-UJTWIOQK.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkE5FNJE3Yjs = require('./chunk-E5FNJE3Y.js');
|
|
19
19
|
|
|
20
20
|
// src/cli/compatibility-catalog.ts
|
|
21
21
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -42,7 +42,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
|
|
|
42
42
|
async function reportAutoUpdateEvent(input) {
|
|
43
43
|
let apiKey = "";
|
|
44
44
|
try {
|
|
45
|
-
apiKey =
|
|
45
|
+
apiKey = _chunkE5FNJE3Yjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
46
46
|
} catch (e2) {
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
@@ -58,15 +58,15 @@ async function reportAutoUpdateEvent(input) {
|
|
|
58
58
|
headers: {
|
|
59
59
|
Authorization: `Bearer ${apiKey}`,
|
|
60
60
|
"Content-Type": "application/json",
|
|
61
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
61
|
+
"User-Agent": `deepline-ts-sdk/${_chunkE5FNJE3Yjs.SDK_VERSION}`,
|
|
62
62
|
"X-Deepline-Client-Family": "sdk",
|
|
63
63
|
"X-Deepline-CLI-Family": "sdk",
|
|
64
|
-
"X-Deepline-CLI-Version":
|
|
65
|
-
"X-Deepline-SDK-Version":
|
|
64
|
+
"X-Deepline-CLI-Version": _chunkE5FNJE3Yjs.SDK_VERSION,
|
|
65
|
+
"X-Deepline-SDK-Version": _chunkE5FNJE3Yjs.SDK_VERSION
|
|
66
66
|
},
|
|
67
67
|
body: JSON.stringify({
|
|
68
68
|
event: input.event,
|
|
69
|
-
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ||
|
|
69
|
+
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkE5FNJE3Yjs.SDK_VERSION,
|
|
70
70
|
target_version: input.response.latest,
|
|
71
71
|
reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
|
|
72
72
|
command: _nullishCoalesce(input.response.command, () => ( null)),
|
|
@@ -85,13 +85,13 @@ function envTruthy(name) {
|
|
|
85
85
|
return value === "1" || value === "true" || value === "yes";
|
|
86
86
|
}
|
|
87
87
|
function shouldSkipSelfUpdate(policy) {
|
|
88
|
-
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !
|
|
88
|
+
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkYK3XHX7Gjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkZCO7R65Djs.isCiEnvironment.call(void 0, );
|
|
89
89
|
}
|
|
90
90
|
function isDowngradeAutoUpdateResponse(response) {
|
|
91
91
|
const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
|
|
92
|
-
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) ||
|
|
92
|
+
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkE5FNJE3Yjs.SDK_VERSION;
|
|
93
93
|
if (!target) return false;
|
|
94
|
-
return
|
|
94
|
+
return _chunkYK3XHX7Gjs.compareUpdateVersions.call(void 0, target, current) < 0;
|
|
95
95
|
}
|
|
96
96
|
function relaunchCurrentCommand(plan, runtime = {}) {
|
|
97
97
|
return new Promise((resolve) => {
|
|
@@ -144,7 +144,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
144
144
|
}
|
|
145
145
|
if (isDowngradeAutoUpdateResponse(response)) {
|
|
146
146
|
const target = response.latest;
|
|
147
|
-
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) ||
|
|
147
|
+
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkE5FNJE3Yjs.SDK_VERSION;
|
|
148
148
|
process.stderr.write(
|
|
149
149
|
`Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
|
|
150
150
|
`
|
|
@@ -152,21 +152,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
152
152
|
return false;
|
|
153
153
|
}
|
|
154
154
|
const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
|
|
155
|
-
const plan =
|
|
155
|
+
const plan = _chunkYK3XHX7Gjs.resolveUpdatePlan.call(void 0, {
|
|
156
156
|
packageSpec,
|
|
157
157
|
requireVerifiedNpmOwnership: true,
|
|
158
158
|
npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
|
|
159
159
|
});
|
|
160
|
-
if (!
|
|
160
|
+
if (!_chunkYK3XHX7Gjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
|
|
161
161
|
return false;
|
|
162
162
|
}
|
|
163
163
|
if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
164
164
|
deferredAutoUpdate = async () => {
|
|
165
165
|
await applyAutoUpdate(response, baseUrl, plan, "next_command");
|
|
166
166
|
};
|
|
167
|
-
if (
|
|
167
|
+
if (_chunkUJTWIOQKjs.isJsonOutputMode.call(void 0, )) {
|
|
168
168
|
const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
|
|
169
|
-
|
|
169
|
+
_chunkUJTWIOQKjs.addJsonNotice.call(void 0, {
|
|
170
170
|
code: "sdk_update_queued",
|
|
171
171
|
message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
|
|
172
172
|
});
|
|
@@ -179,7 +179,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
179
179
|
return true;
|
|
180
180
|
}
|
|
181
181
|
async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
182
|
-
if (!
|
|
182
|
+
if (!_chunkYK3XHX7Gjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
|
|
183
183
|
const autoUpdate = response.auto_update;
|
|
184
184
|
const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
|
|
185
185
|
process.stderr.write(
|
|
@@ -192,7 +192,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
192
192
|
event: "started",
|
|
193
193
|
installKind: plan.kind
|
|
194
194
|
});
|
|
195
|
-
const updateResult = await
|
|
195
|
+
const updateResult = await _chunkYK3XHX7Gjs.runAutomaticUpdatePlan.call(void 0, plan);
|
|
196
196
|
if (updateResult.status === "skipped_previous_failure") {
|
|
197
197
|
void reportAutoUpdateEvent({
|
|
198
198
|
baseUrl,
|
|
@@ -243,7 +243,7 @@ var _crypto = require('crypto');
|
|
|
243
243
|
var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
|
|
244
244
|
var activeToolExecuteCommand = null;
|
|
245
245
|
function progressLine(line) {
|
|
246
|
-
if (!
|
|
246
|
+
if (!_chunkUJTWIOQKjs.isJsonOutputMode.call(void 0, )) console.error(line);
|
|
247
247
|
}
|
|
248
248
|
function beginToolExecuteCommand() {
|
|
249
249
|
if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
|
|
@@ -28,7 +28,7 @@ var _chunkKXMNM4AQjs = require('./chunk-KXMNM4AQ.js');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkE5FNJE3Yjs = require('./chunk-E5FNJE3Y.js');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
var _chunkNPBJI7REjs = require('./chunk-NPBJI7RE.js');
|
|
@@ -647,7 +647,7 @@ var ToolCalls = class {
|
|
|
647
647
|
idempotencyKey,
|
|
648
648
|
onResponse: (response2) => {
|
|
649
649
|
lastResponse = null;
|
|
650
|
-
atomicToolsSupported = response2.headers.get(
|
|
650
|
+
atomicToolsSupported = response2.headers.get(_chunkE5FNJE3Yjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
|
|
651
651
|
recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
|
|
652
652
|
if (_optionalChain([options, 'optionalAccess', _29 => _29.onServerTiming])) {
|
|
653
653
|
try {
|
|
@@ -997,8 +997,8 @@ function runtimeSelectionHeaders(runtime, env) {
|
|
|
997
997
|
}
|
|
998
998
|
const receivers = _optionalChain([env, 'access', _51 => _51.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _52 => _52.trim, 'call', _53 => _53()]);
|
|
999
999
|
return {
|
|
1000
|
-
[
|
|
1001
|
-
...receivers ? { [
|
|
1000
|
+
[_chunkE5FNJE3Yjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
1001
|
+
...receivers ? { [_chunkE5FNJE3Yjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
1002
1002
|
};
|
|
1003
1003
|
}
|
|
1004
1004
|
function normalizeTestPolicyOverrides(value, source) {
|
|
@@ -1069,7 +1069,7 @@ var PlayClient = class {
|
|
|
1069
1069
|
return _chunk2H4EY7KHjs.startPlayRun.call(void 0,
|
|
1070
1070
|
this.http,
|
|
1071
1071
|
resolved.request,
|
|
1072
|
-
_optionalChain([options, 'optionalAccess', _61 => _61.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(
|
|
1072
|
+
_optionalChain([options, 'optionalAccess', _61 => _61.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkE5FNJE3Yjs.SDK_API_MAJOR) } : headers,
|
|
1073
1073
|
options
|
|
1074
1074
|
);
|
|
1075
1075
|
}
|
|
@@ -1135,9 +1135,9 @@ var PlayClient = class {
|
|
|
1135
1135
|
}
|
|
1136
1136
|
};
|
|
1137
1137
|
function createPlayClient(options) {
|
|
1138
|
-
const config =
|
|
1138
|
+
const config = _chunkE5FNJE3Yjs.resolveConfig.call(void 0, options);
|
|
1139
1139
|
return new PlayClient(
|
|
1140
|
-
new (0,
|
|
1140
|
+
new (0, _chunkE5FNJE3Yjs.HttpClient)(config),
|
|
1141
1141
|
_nullishCoalesce(config.environment, () => ( process.env))
|
|
1142
1142
|
);
|
|
1143
1143
|
}
|
|
@@ -3151,7 +3151,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
|
|
|
3151
3151
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
3152
3152
|
);
|
|
3153
3153
|
}
|
|
3154
|
-
return { [
|
|
3154
|
+
return { [_chunkE5FNJE3Yjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
3155
3155
|
}
|
|
3156
3156
|
function sleep(ms) {
|
|
3157
3157
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -3389,9 +3389,9 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
3389
3389
|
* @throws {@link ConfigError} if no API key can be resolved from any source.
|
|
3390
3390
|
*/
|
|
3391
3391
|
constructor(options) {
|
|
3392
|
-
this.config =
|
|
3392
|
+
this.config = _chunkE5FNJE3Yjs.resolveConfig.call(void 0, options);
|
|
3393
3393
|
this.environment = _nullishCoalesce(this.config.environment, () => ( process.env));
|
|
3394
|
-
this.http = new (0,
|
|
3394
|
+
this.http = new (0, _chunkE5FNJE3Yjs.HttpClient)(this.config);
|
|
3395
3395
|
this.playClient = new PlayClient(this.http, this.environment);
|
|
3396
3396
|
this.toolCalls = new ToolCalls(
|
|
3397
3397
|
this.http,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZMQTLPLJ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
checkSdkCompatibility,
|
|
6
6
|
enforceSdkCompatibilityResponse,
|
|
7
7
|
flushDeferredSkillsSyncNotices
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6GYQG6V3.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|