deepline 0.3.429 → 0.3.430
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/integration-contracts/billing-entitlements.ts +22 -0
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +2 -2
- package/dist/cli/auth-OAK76MZS.js +40 -0
- package/dist/cli/{auth-VVTFGWJO.mjs → auth-TQ6HZBPI.mjs} +4 -4
- package/dist/cli/{billing-UL7WSUTB.mjs → billing-XJXA44X5.mjs} +10 -5
- package/dist/cli/{billing-LYFQRKIT.js → billing-XTJCA6KF.js} +79 -74
- package/dist/cli/{chunk-XYFONY3Y.js → chunk-2TWBFXWH.js} +20 -20
- package/dist/cli/{chunk-N2UQLMCH.mjs → chunk-2VOTRAHO.mjs} +1 -1
- package/dist/cli/{chunk-IP4IW4M4.js → chunk-4NVJEG6K.js} +26 -26
- package/dist/cli/{chunk-73XPPBKX.mjs → chunk-4R545AO3.mjs} +2 -2
- package/dist/cli/{chunk-VDE2V6O6.mjs → chunk-AHUSKKDG.mjs} +1 -1
- package/dist/cli/{chunk-RMJ35WKB.mjs → chunk-AUGEGDPO.mjs} +2 -2
- package/dist/cli/{chunk-YHRS6XTB.js → chunk-BBWDU3D5.js} +2 -2
- package/dist/cli/{chunk-ULJLCHJ3.js → chunk-CSBYEPJI.js} +2 -2
- package/dist/cli/{chunk-UM4C6PSJ.js → chunk-E546F74V.js} +79 -79
- package/dist/cli/{chunk-OPOS55BL.js → chunk-EKT4FLA4.js} +6 -6
- package/dist/cli/{chunk-KXHXZ2R4.mjs → chunk-EM744RIR.mjs} +3 -3
- package/dist/cli/{chunk-QJG6VLPU.mjs → chunk-FE34BAP6.mjs} +2 -2
- package/dist/cli/{chunk-ALS26N2J.js → chunk-FZ73XHSU.js} +10 -10
- package/dist/cli/{chunk-ZH3Q6AEB.js → chunk-JKOUIBTD.js} +16 -16
- package/dist/cli/{chunk-7VB4IDTE.js → chunk-JMTJEPWU.js} +8 -8
- package/dist/cli/{chunk-VEHQBGWS.mjs → chunk-KKXF6L3D.mjs} +4 -4
- package/dist/cli/{chunk-N37OGHQR.js → chunk-LNQEBCTW.js} +4 -4
- package/dist/cli/{chunk-V5JHBTQJ.mjs → chunk-OKCYUSQW.mjs} +1 -1
- package/dist/cli/{chunk-2BQUML3X.mjs → chunk-PH2FUNEJ.mjs} +2 -2
- package/dist/cli/{chunk-HESEQV33.js → chunk-PTGJD7EH.js} +8 -8
- package/dist/cli/{chunk-M4OIGYU6.mjs → chunk-QJQDK4BQ.mjs} +3 -3
- package/dist/cli/{chunk-FZ6BGVW6.mjs → chunk-RB3QFQMO.mjs} +1 -1
- package/dist/cli/{chunk-5B4E3WNZ.mjs → chunk-SV7N6OLB.mjs} +2 -2
- package/dist/cli/{chunk-LYNUCTLH.js → chunk-T6S3GT5F.js} +1 -1
- package/dist/cli/{chunk-N5Q7GCTI.mjs → chunk-TIUSTHSJ.mjs} +3 -3
- package/dist/cli/{chunk-GJVN2OIX.js → chunk-TTRFTUQ3.js} +2 -2
- package/dist/cli/{chunk-7H65SYK3.js → chunk-UIDYVJYW.js} +6 -6
- package/dist/cli/{chunk-OHD4H4CU.mjs → chunk-V35KYXHC.mjs} +1 -1
- package/dist/cli/{chunk-42RBIHU5.mjs → chunk-WHEH2GEA.mjs} +1 -1
- package/dist/cli/{chunk-RGDZ6AAX.js → chunk-WPGJ3XNI.js} +52 -52
- package/dist/cli/{chunk-CAOJGQ7F.mjs → chunk-YAXZQFVM.mjs} +5 -5
- package/dist/cli/{chunk-CLYPCYS7.mjs → chunk-YOVCI5LP.mjs} +8 -8
- package/dist/cli/{chunk-IUYCK4MZ.js → chunk-ZLVQPXMG.js} +35 -35
- package/dist/cli/{chunk-4BXZBDI3.js → chunk-ZNC65U6P.js} +50 -50
- package/dist/cli/{csv-RMPUP5SR.js → csv-FSO52YQ2.js} +12 -12
- package/dist/cli/{csv-TVBFPGXO.mjs → csv-QPV7472B.mjs} +3 -3
- package/dist/cli/{db-7XYZVCAL.mjs → db-U7BFCR7L.mjs} +4 -4
- package/dist/cli/{db-GWOQMQQT.js → db-W45QQTMX.js} +25 -25
- package/dist/cli/{describe-5HDKGDQ2.mjs → describe-Q27T6S5D.mjs} +12 -12
- package/dist/cli/{describe-AI566F46.js → describe-WA3X2FS4.js} +16 -16
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-XNTOZHZY.mjs → executions-KSUQC3PR.mjs} +4 -4
- package/dist/cli/{executions-EWIVWZQC.js → executions-R4PNHW4I.js} +6 -6
- package/dist/cli/{feedback-IYZLJ7ZE.js → feedback-SEBEU3ON.js} +7 -7
- package/dist/cli/{feedback-AHF5WNVA.mjs → feedback-XV6CPH3L.mjs} +3 -3
- package/dist/cli/git-AHISFYL3.js +24 -0
- package/dist/cli/{git-EMQ3MVLE.mjs → git-JA3Z3VSQ.mjs} +4 -4
- package/dist/cli/index.js +131 -131
- package/dist/cli/index.mjs +36 -36
- package/dist/cli/{legacy-noops-7M63J4IC.js → legacy-noops-I5BSQYD5.js} +7 -7
- package/dist/cli/{legacy-noops-KZFAEOAR.mjs → legacy-noops-IFFVKM6D.mjs} +4 -4
- package/dist/cli/{monitors-7XMIETU6.mjs → monitors-2HUBFPZ4.mjs} +4 -4
- package/dist/cli/{monitors-BNPHJJBH.js → monitors-BED4ZHQX.js} +84 -84
- package/dist/cli/{org-WO6VOSTL.mjs → org-7KHAOMG3.mjs} +4 -4
- package/dist/cli/{org-WNV54C4G.js → org-KBAWY5VZ.js} +64 -64
- package/dist/cli/{play-D6JUOTX6.js → play-VVFKKNQP.js} +301 -301
- package/dist/cli/{play-AD3JPG2F.mjs → play-ZOVQLLBH.mjs} +11 -11
- package/dist/cli/{providers-DUKMQLGB.js → providers-J72IJJ2Q.js} +7 -7
- package/dist/cli/{providers-DMZRJ5B5.mjs → providers-UCKMIGIQ.mjs} +4 -4
- package/dist/cli/{quickstart-6PHBKFD6.js → quickstart-3PUK5N7Z.js} +5 -5
- package/dist/cli/{quickstart-7OJBU7D4.mjs → quickstart-JV4ILEMI.mjs} +3 -3
- package/dist/cli/{search-GYGSJJQF.mjs → search-26VHUJNX.mjs} +5 -5
- package/dist/cli/search-ZG77YAQ6.js +30 -0
- package/dist/cli/{secrets-JMB5BCTQ.js → secrets-QDOQQ7UK.js} +13 -13
- package/dist/cli/{secrets-4YQFKDJS.mjs → secrets-XWSUTLI5.mjs} +4 -4
- package/dist/cli/{sessions-SET44DR4.mjs → sessions-2LNUKAAG.mjs} +4 -4
- package/dist/cli/{sessions-IP7XE32G.js → sessions-XKBVY4GN.js} +5 -5
- package/dist/cli/{settings-NT5RSSYG.js → settings-ST2VREJE.js} +75 -75
- package/dist/cli/{settings-SYLLT2KO.mjs → settings-YRI2IOGN.mjs} +8 -8
- package/dist/cli/{setup-TXLBM7NG.mjs → setup-552JZJI3.mjs} +7 -7
- package/dist/cli/{setup-FIN6TXJF.js → setup-VPRXUVJL.js} +42 -42
- package/dist/cli/skills-UDMRMI6C.js +29 -0
- package/dist/cli/{skills-HHAIAVO2.mjs → skills-UFRAQLOT.mjs} +5 -5
- package/dist/cli/{tools-DUSWZVFC.mjs → tools-27ZL5GVS.mjs} +12 -12
- package/dist/cli/tools-SR2CN3VP.js +44 -0
- package/dist/cli/update-HS45ZLBY.js +31 -0
- package/dist/cli/{update-SKJUQK3E.mjs → update-T5PK5V3I.mjs} +7 -7
- package/dist/cli/{workflow-2KI2H3LJ.js → workflow-GO2BBGKL.js} +15 -15
- package/dist/cli/{workflow-EJM4EZYA.mjs → workflow-ZJO2FFWQ.mjs} +5 -5
- package/dist/{client-ChLTwy9x.d.mts → client-BuCrTjW6.d.mts} +1 -1
- package/dist/{client---03YXeB.d.ts → client-C0VoQB5b.d.ts} +1 -1
- package/dist/{compiler-manifest-DaFuA1ki.d.mts → compiler-manifest-D0Gl9gLn.d.mts} +22 -0
- package/dist/{compiler-manifest-DaFuA1ki.d.ts → compiler-manifest-D0Gl9gLn.d.ts} +22 -0
- package/dist/{index-0yS9ihly.d.mts → index-Bub1jys9.d.mts} +1 -1
- package/dist/{index-CRAScKPg.d.ts → index-VyHDAshm.d.ts} +1 -1
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +86 -86
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +1 -1
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-KNATWMNY.js +0 -40
- package/dist/cli/git-EHWZSXTK.js +0 -24
- package/dist/cli/search-JBA32QD2.js +0 -30
- package/dist/cli/skills-6RTSMDQQ.js +0 -29
- package/dist/cli/tools-4DBJUJDV.js +0 -44
- package/dist/cli/update-SUJJG5YO.js +0 -31
|
@@ -28,7 +28,7 @@ var _chunkKXMNM4AQjs = require('./chunk-KXMNM4AQ.js');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkLNQEBCTWjs = require('./chunk-LNQEBCTW.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(_chunkLNQEBCTWjs.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
|
+
[_chunkLNQEBCTWjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
1001
|
+
...receivers ? { [_chunkLNQEBCTWjs.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(_chunkLNQEBCTWjs.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 = _chunkLNQEBCTWjs.resolveConfig.call(void 0, options);
|
|
1139
1139
|
return new PlayClient(
|
|
1140
|
-
new (0,
|
|
1140
|
+
new (0, _chunkLNQEBCTWjs.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 { [_chunkLNQEBCTWjs.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 = _chunkLNQEBCTWjs.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, _chunkLNQEBCTWjs.HttpClient)(this.config);
|
|
3395
3395
|
this.playClient = new PlayClient(this.http, this.environment);
|
|
3396
3396
|
this.toolCalls = new ToolCalls(
|
|
3397
3397
|
this.http,
|
|
@@ -1,19 +1,19 @@
|
|
|
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 _chunkTTRFTUQ3js = require('./chunk-TTRFTUQ3.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkZLVQPXMGjs = require('./chunk-ZLVQPXMG.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkWPGJ3XNIjs = require('./chunk-WPGJ3XNI.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkUIDYVJYWjs = require('./chunk-UIDYVJYW.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkLNQEBCTWjs = require('./chunk-LNQEBCTW.js');
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
var _child_process = require('child_process');
|
|
@@ -495,7 +495,7 @@ function normalizedNpmPrefix(value) {
|
|
|
495
495
|
}
|
|
496
496
|
function resolveNpmGlobalPrefix(env) {
|
|
497
497
|
try {
|
|
498
|
-
const plan =
|
|
498
|
+
const plan = _chunkWPGJ3XNIjs.resolveShellSpawn.call(void 0,
|
|
499
499
|
"npm",
|
|
500
500
|
["prefix", "-g"],
|
|
501
501
|
process.platform,
|
|
@@ -556,8 +556,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
556
556
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
557
557
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
558
558
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
559
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
560
|
-
const npmGlobalInstallFlags =
|
|
559
|
+
const npmVersion = options.npmVersion === void 0 ? _chunkTTRFTUQ3js.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
560
|
+
const npmGlobalInstallFlags = _chunkTTRFTUQ3js.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
561
561
|
const args = installPrefix ? [
|
|
562
562
|
"install",
|
|
563
563
|
"-g",
|
|
@@ -567,7 +567,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
567
567
|
packageSpec
|
|
568
568
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
569
569
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
570
|
-
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) ||
|
|
570
|
+
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkLNQEBCTWjs.autoDetectBaseUrl.call(void 0, )
|
|
571
571
|
);
|
|
572
572
|
return {
|
|
573
573
|
kind: "npm-global",
|
|
@@ -816,7 +816,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
816
816
|
function runCommand(command, args, env = process.env) {
|
|
817
817
|
return new Promise((resolveResult) => {
|
|
818
818
|
let output = "";
|
|
819
|
-
const plan =
|
|
819
|
+
const plan = _chunkWPGJ3XNIjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
820
820
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
821
821
|
stdio: ["inherit", "pipe", "pipe"],
|
|
822
822
|
shell: plan.shell,
|
|
@@ -1199,14 +1199,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
|
|
|
1199
1199
|
throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
|
|
1200
1200
|
}
|
|
1201
1201
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1202
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1202
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkLNQEBCTWjs.autoDetectBaseUrl));
|
|
1203
1203
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1204
1204
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1205
1205
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1206
1206
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1207
1207
|
process.stdout.write = (() => true);
|
|
1208
1208
|
try {
|
|
1209
|
-
const exitCode = await
|
|
1209
|
+
const exitCode = await _chunkZLVQPXMGjs.runSkillsCommand.call(void 0, { json: true });
|
|
1210
1210
|
if (exitCode !== 0) {
|
|
1211
1211
|
throw new Error(
|
|
1212
1212
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1277,11 +1277,11 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1277
1277
|
]
|
|
1278
1278
|
};
|
|
1279
1279
|
if (options.json && !options.executeWithJson) {
|
|
1280
|
-
|
|
1280
|
+
_chunkUIDYVJYWjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1281
1281
|
return 0;
|
|
1282
1282
|
}
|
|
1283
1283
|
if (options.printCommand) {
|
|
1284
|
-
|
|
1284
|
+
_chunkUIDYVJYWjs.printCommandEnvelope.call(void 0,
|
|
1285
1285
|
{
|
|
1286
1286
|
...plan,
|
|
1287
1287
|
render: {
|
|
@@ -1294,7 +1294,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1294
1294
|
return 0;
|
|
1295
1295
|
}
|
|
1296
1296
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1297
|
-
|
|
1297
|
+
_chunkUIDYVJYWjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1298
1298
|
return 0;
|
|
1299
1299
|
}
|
|
1300
1300
|
stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
|
|
@@ -1324,7 +1324,7 @@ To retry with full installer output, run: deepline skills
|
|
|
1324
1324
|
);
|
|
1325
1325
|
}
|
|
1326
1326
|
if (options.executeWithJson && options.json) {
|
|
1327
|
-
|
|
1327
|
+
_chunkUIDYVJYWjs.printCommandEnvelope.call(void 0,
|
|
1328
1328
|
{
|
|
1329
1329
|
ok: true,
|
|
1330
1330
|
pinnedVersion
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
var _chunkZM2YPJQJjs = require('./chunk-ZM2YPJQJ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkFZ73XHSUjs = require('./chunk-FZ73XHSU.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkUIDYVJYWjs = require('./chunk-UIDYVJYW.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkLNQEBCTWjs = require('./chunk-LNQEBCTW.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -5713,7 +5713,7 @@ var _fs = require('fs');
|
|
|
5713
5713
|
var _path = require('path');
|
|
5714
5714
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
5715
5715
|
function lastSearchPath() {
|
|
5716
|
-
return _path.join.call(void 0,
|
|
5716
|
+
return _path.join.call(void 0, _chunkLNQEBCTWjs.sdkCliStateDirPath.call(void 0, _chunkLNQEBCTWjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
5717
5717
|
}
|
|
5718
5718
|
function rememberSearchRef(searchRef) {
|
|
5719
5719
|
try {
|
|
@@ -5876,7 +5876,7 @@ var OPTIONAL_COLUMNS = [
|
|
|
5876
5876
|
];
|
|
5877
5877
|
function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
|
|
5878
5878
|
if (result.results.length === 0)
|
|
5879
|
-
return
|
|
5879
|
+
return _chunkUIDYVJYWjs.renderCommandEnvelopeText.call(void 0, result);
|
|
5880
5880
|
const rows = result.results.map((item) => searchRow(item, summaryWidth));
|
|
5881
5881
|
const kinds = new Set(rows.map((row) => row.kind));
|
|
5882
5882
|
const onlyTools = kinds.size === 1 && kinds.has("tool");
|
|
@@ -5901,7 +5901,7 @@ function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
|
|
|
5901
5901
|
actions: _optionalChain([render, 'optionalAccess', _12 => _12.actions])
|
|
5902
5902
|
};
|
|
5903
5903
|
const followUps = _optionalChain([remaining, 'access', _13 => _13.sections, 'optionalAccess', _14 => _14.length]) || _optionalChain([remaining, 'access', _15 => _15.actions, 'optionalAccess', _16 => _16.length]) ? `
|
|
5904
|
-
${
|
|
5904
|
+
${_chunkUIDYVJYWjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
|
|
5905
5905
|
const notes = rows.flatMap(
|
|
5906
5906
|
(row) => row.notes.map((note) => ` ${row.id}: ${note}`)
|
|
5907
5907
|
);
|
|
@@ -5986,7 +5986,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
5986
5986
|
console.error("--summary-width must be an integer of at least 2.");
|
|
5987
5987
|
return 1;
|
|
5988
5988
|
}
|
|
5989
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
5989
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunkFZ73XHSUjs.DeeplineClient)().search({
|
|
5990
5990
|
query,
|
|
5991
5991
|
types,
|
|
5992
5992
|
exclude,
|
|
@@ -6000,7 +6000,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
6000
6000
|
});
|
|
6001
6001
|
if (searchRef) rememberSearchRef(searchRef);
|
|
6002
6002
|
pointAtDescribe(result);
|
|
6003
|
-
|
|
6003
|
+
_chunkUIDYVJYWjs.printCommandEnvelope.call(void 0, result, {
|
|
6004
6004
|
json: options.json === true,
|
|
6005
6005
|
text: renderSearchResults(result, summaryWidth)
|
|
6006
6006
|
});
|
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YAXZQFVM.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-EM744RIR.mjs";
|
|
11
11
|
import {
|
|
12
12
|
addJsonNotice,
|
|
13
13
|
isJsonOutputMode
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-OKCYUSQW.mjs";
|
|
15
15
|
import {
|
|
16
16
|
SDK_VERSION,
|
|
17
17
|
resolveApiKeyForBaseUrl
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-V35KYXHC.mjs";
|
|
19
19
|
|
|
20
20
|
// src/cli/compatibility-catalog.ts
|
|
21
21
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -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 _chunkT6S3GT5Fjs = require('./chunk-T6S3GT5F.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 = _chunkT6S3GT5Fjs.SDK_RELEASE.version;
|
|
653
|
+
var SDK_API_MAJOR = _chunkT6S3GT5Fjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
654
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkT6S3GT5Fjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
655
655
|
|
|
656
656
|
// src/agent-runtime.ts
|
|
657
657
|
|
|
@@ -1768,8 +1768,8 @@ var PLAY_AUTHORING_CLOUD_TYPE_DECLARATIONS = [
|
|
|
1768
1768
|
" run(options?: DatasetRunOptions<InputRow>): Promise<PlayDataset<OutputRow>>;",
|
|
1769
1769
|
"};",
|
|
1770
1770
|
"export type PlayReferenceLike<TInput extends Record<string, unknown> = Record<string, unknown>> = ({ readonly playName: string; readonly name?: string } | { readonly name: string; readonly playName?: string }) & { readonly __inputType?: TInput };",
|
|
1771
|
-
"export type BillingBenefitValues = { quickenrichUnlimited: { enabled: boolean; requestsPerMinute: number } };",
|
|
1772
|
-
"export type BillingEntitlements = { org_id: string; as_of: number; plan: { sku: string; name: string; catalog_revision: string | null; included_credits: number; interval: 'month' | 'year' | null } | null; benefits: { quickenrichUnlimited?: { status: 'active' | 'past_due'; value: BillingBenefitValues['quickenrichUnlimited']; expiresAt?: number } }; effective_limits: { quickenrichUnlimited?: { baseline: number; effective: number; source: 'plan' | 'override'; override_expires_at?: number } } };",
|
|
1771
|
+
"export type BillingBenefitValues = { quickenrichUnlimited: { enabled: boolean; requestsPerMinute: number }; peopleSearch: { enabled: boolean; requestsPerMinute: number; profilesPerMonth: number; overageCreditsPerProfile?: number } };",
|
|
1772
|
+
"export type BillingEntitlements = { org_id: string; as_of: number; plan: { sku: string; name: string; catalog_revision: string | null; included_credits: number; interval: 'month' | 'year' | null } | null; benefits: { quickenrichUnlimited?: { status: 'active' | 'past_due'; value: BillingBenefitValues['quickenrichUnlimited']; expiresAt?: number }; peopleSearch?: { status: 'active'; value: BillingBenefitValues['peopleSearch']; expiresAt?: number; usage: { month: string; periodStartsAt?: number; resetsAt?: number; resetsOn?: 'calendar_month' | 'billing_cycle'; limit: number; consumed: number; remaining: number } } }; effective_limits: { quickenrichUnlimited?: { baseline: number; effective: number; source: 'plan' | 'override'; override_expires_at?: number } } };",
|
|
1773
1773
|
"export interface DeeplinePlayRuntimeContext {",
|
|
1774
1774
|
" billing: { entitlements(): Promise<BillingEntitlements> };",
|
|
1775
1775
|
" csv<T = Record<string, unknown>>(path: string | CsvInput<T & object>, options?: CsvOptions): Promise<PlayDataset<T>>;",
|
|
@@ -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 _chunkUIDYVJYWjs = require('./chunk-UIDYVJYW.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkLNQEBCTWjs = require('./chunk-LNQEBCTW.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 = _chunkLNQEBCTWjs.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 } = _chunkUIDYVJYWjs.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
|
+
_chunkUIDYVJYWjs.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
|
+
_chunkUIDYVJYWjs.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
|
+
_chunkUIDYVJYWjs.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
|
+
_chunkUIDYVJYWjs.printCommandEnvelope.call(void 0,
|
|
678
678
|
{
|
|
679
679
|
ok: true,
|
|
680
680
|
file: outputPath,
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
} from "./chunk-LJ5747UC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RB3QFQMO.mjs";
|
|
7
7
|
import {
|
|
8
8
|
printCommandEnvelope,
|
|
9
9
|
renderCommandEnvelopeText
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OKCYUSQW.mjs";
|
|
11
11
|
import {
|
|
12
12
|
resolveConfig,
|
|
13
13
|
sdkCliStateDirPath
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-V35KYXHC.mjs";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__toESM
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OKCYUSQW.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-V35KYXHC.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.430",
|
|
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."
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
skillsInstallLeasePath,
|
|
12
12
|
skillsSourceUrl,
|
|
13
13
|
syncSdkSkillsIfNeeded
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-EM744RIR.mjs";
|
|
15
15
|
import {
|
|
16
16
|
printCommandEnvelope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-OKCYUSQW.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-V35KYXHC.mjs";
|
|
26
26
|
|
|
27
27
|
// src/cli/commands/skills.ts
|
|
28
28
|
import { spawn } from "child_process";
|
|
@@ -1,6 +1,6 @@
|
|
|
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 _chunkWPGJ3XNIjs = require('./chunk-WPGJ3XNI.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/npm-script-policy.ts
|
|
6
6
|
var _child_process = require('child_process');
|
|
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
|
|
|
13
13
|
}
|
|
14
14
|
function readNpmVersion(env) {
|
|
15
15
|
try {
|
|
16
|
-
const plan =
|
|
16
|
+
const plan = _chunkWPGJ3XNIjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
|
|
17
17
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
18
18
|
encoding: "utf8",
|
|
19
19
|
env,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkLNQEBCTWjs = require('./chunk-LNQEBCTW.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -288,8 +288,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
288
288
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
289
289
|
var defaultBrowserCommandRunner = childProcess;
|
|
290
290
|
function getAuthedHttpClient() {
|
|
291
|
-
const config =
|
|
292
|
-
return { config, http: new (0,
|
|
291
|
+
const config = _chunkLNQEBCTWjs.resolveConfig.call(void 0, );
|
|
292
|
+
return { config, http: new (0, _chunkLNQEBCTWjs.HttpClient)(config) };
|
|
293
293
|
}
|
|
294
294
|
function stableOsUserId() {
|
|
295
295
|
try {
|
|
@@ -629,7 +629,7 @@ function collectLocalEnvInfo() {
|
|
|
629
629
|
os: `${process.platform} ${process.arch}`,
|
|
630
630
|
node_version: process.version,
|
|
631
631
|
home_dir: homeDir,
|
|
632
|
-
agent_runtime:
|
|
632
|
+
agent_runtime: _chunkLNQEBCTWjs.detectAgentRuntime.call(void 0, )
|
|
633
633
|
};
|
|
634
634
|
const env = process.env;
|
|
635
635
|
const optional = {
|
|
@@ -876,9 +876,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
876
876
|
}
|
|
877
877
|
function withAgentCommandContext(value) {
|
|
878
878
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
879
|
-
return
|
|
879
|
+
return _chunkLNQEBCTWjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
880
880
|
...valueRecord,
|
|
881
|
-
command_context:
|
|
881
|
+
command_context: _chunkLNQEBCTWjs.resolveCliCommandContext.call(void 0, )
|
|
882
882
|
} : value;
|
|
883
883
|
}
|
|
884
884
|
function printJson(value, fields) {
|
|
@@ -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.430",
|
|
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."
|