deepline 0.3.377 → 0.3.379
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/plays/run-request.ts +3 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +5 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
- package/dist/cli/auth-5I2DJ7WL.js +39 -0
- package/dist/cli/{auth-3SJMD5GS.mjs → auth-POBP5XKE.mjs} +10 -6
- package/dist/cli/{billing-IN4CGRX5.js → billing-CDJTZO3L.js} +74 -74
- package/dist/cli/{billing-N4PYTCSM.mjs → billing-VSJ474AZ.mjs} +5 -5
- package/dist/cli/{chunk-DW7BDVZY.mjs → chunk-5W7JQ3A2.mjs} +4 -4
- package/dist/cli/{chunk-3H5U7XCU.mjs → chunk-5YEUVV6X.mjs} +1 -1
- package/dist/cli/{chunk-JMDMPIGV.mjs → chunk-5YUA2FQG.mjs} +1 -1
- package/dist/cli/{chunk-BBONZ7CN.js → chunk-6L5GTW3W.js} +8 -8
- package/dist/cli/{chunk-CEUIAIUI.js → chunk-A3E7TCQK.js} +48 -48
- package/dist/cli/{chunk-GPM3AZXB.js → chunk-BB6WCOYN.js} +25 -25
- package/dist/cli/{chunk-HYMVGRZP.js → chunk-CXS5E3NC.js} +65 -54
- package/dist/cli/{chunk-FVFKLSMD.mjs → chunk-DB5IP3TV.mjs} +2 -2
- package/dist/cli/{chunk-OWJRRGZH.mjs → chunk-GW6EUKW7.mjs} +15 -4
- package/dist/cli/{chunk-SQPNP3IQ.js → chunk-HKDAWSF6.js} +6 -6
- package/dist/cli/{chunk-FWF24ULX.mjs → chunk-HVDBGPDP.mjs} +5 -4
- package/dist/cli/{chunk-4WINCNNH.js → chunk-HXENYWVS.js} +5 -4
- package/dist/cli/{chunk-Y72FFPX5.js → chunk-IKXDUCBB.js} +4 -4
- package/dist/cli/{chunk-VD6KRRST.mjs → chunk-J72WM3BY.mjs} +2 -2
- package/dist/cli/{chunk-IHXLIPY3.js → chunk-KIF5UJZ3.js} +15 -15
- package/dist/cli/{chunk-ON7BSEMT.js → chunk-MPFXZAIY.js} +8 -8
- package/dist/cli/{chunk-LA46MMTL.js → chunk-PAIMOGCM.js} +1 -0
- package/dist/cli/{chunk-LJCC26EK.js → chunk-PD2WRTDS.js} +1 -1
- package/dist/cli/{chunk-CBVIJSHF.mjs → chunk-Q6EOHNRH.mjs} +1 -0
- package/dist/cli/{chunk-4T62V4WC.js → chunk-Q7QP3XU2.js} +2 -2
- package/dist/cli/{chunk-D3GRDNJO.js → chunk-T3ZCYEAL.js} +60 -60
- package/dist/cli/{chunk-M2RT2YVB.mjs → chunk-TA37L7MY.mjs} +2 -2
- package/dist/cli/{chunk-CUKV3EXY.mjs → chunk-U3EL4YRM.mjs} +3 -3
- package/dist/cli/{chunk-MDMP2VS2.mjs → chunk-UNFRQUUM.mjs} +21 -8
- package/dist/cli/{chunk-OEVLOA6Y.mjs → chunk-W5I5QMMM.mjs} +1 -1
- package/dist/cli/{chunk-VEUTINSL.js → chunk-XFR73M2S.js} +255 -242
- package/dist/cli/{chunk-SHPLCIOL.mjs → chunk-XI5NWXP4.mjs} +1 -1
- package/dist/cli/{chunk-ATK45XHI.mjs → chunk-YQQSGVAD.mjs} +2 -2
- package/dist/cli/{chunk-KHZQCKZ6.js → chunk-ZHGVS5YI.js} +26 -26
- package/dist/cli/{chunk-7EEPWHRK.mjs → chunk-ZNU5IDYI.mjs} +5 -5
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-747TCRJS.mjs → csv-D47DWKWT.mjs} +3 -3
- package/dist/cli/{csv-JHBQL7PV.js → csv-N2RLF7AD.js} +12 -12
- package/dist/cli/{db-FGCCQJ64.js → db-IAT26T3O.js} +30 -30
- package/dist/cli/{db-42NBKURO.mjs → db-XB6L44DP.mjs} +5 -5
- package/dist/cli/{describe-E6WVN74T.mjs → describe-77RUVCP4.mjs} +9 -9
- package/dist/cli/{describe-PJYBUSVL.js → describe-FHCK2IPO.js} +17 -17
- package/dist/cli/{executions-UF7KP7B6.mjs → executions-5LZ6VLOO.mjs} +5 -5
- package/dist/cli/{executions-5P5ZJCRJ.js → executions-5V3FSXDR.js} +7 -7
- package/dist/cli/{feedback-BFXXUVXK.mjs → feedback-JNBF5H7D.mjs} +3 -3
- package/dist/cli/{feedback-S43D42JP.js → feedback-KV765KDS.js} +7 -7
- package/dist/cli/{git-TNNTQ5IJ.mjs → git-YJUJAHZE.mjs} +4 -4
- package/dist/cli/git-YYRUQD4K.js +23 -0
- package/dist/cli/index.js +108 -103
- package/dist/cli/index.mjs +58 -53
- package/dist/cli/{legacy-noops-3ZEHUFE4.mjs → legacy-noops-QKV3SQ6S.mjs} +4 -4
- package/dist/cli/{legacy-noops-SYWQBRUI.js → legacy-noops-V3QK7KGI.js} +7 -7
- package/dist/cli/{monitors-GTBPXIN7.js → monitors-K33FLA4Q.js} +86 -86
- package/dist/cli/{monitors-DAU53OC5.mjs → monitors-MH624SEV.mjs} +5 -5
- package/dist/cli/{org-G77WDHXX.js → org-SLSIKOID.js} +65 -65
- package/dist/cli/{org-4TGDZ2ZL.mjs → org-V7K4VKWJ.mjs} +5 -5
- package/dist/cli/play-F7CATHIR.js +155 -0
- package/dist/cli/{play-OZV6FDMR.mjs → play-ZW3YPHCZ.mjs} +8 -8
- package/dist/cli/{providers-FPTHZSZH.mjs → providers-3HJQ7S56.mjs} +5 -5
- package/dist/cli/{providers-GHS5B4FX.js → providers-M44EZVKP.js} +8 -8
- package/dist/cli/{quickstart-ADJZVPQR.mjs → quickstart-H5CP5Z4N.mjs} +3 -3
- package/dist/cli/{quickstart-TGO5N665.js → quickstart-MTSZ5GDD.js} +5 -5
- package/dist/cli/{search-B7BRMMFR.mjs → search-FQBY77R7.mjs} +6 -6
- package/dist/cli/search-M3ZEKREB.js +26 -0
- package/dist/cli/{secrets-FDREPCLL.js → secrets-4E6RJKMK.js} +14 -14
- package/dist/cli/{secrets-A4UK4TMU.mjs → secrets-JT7RDYJD.mjs} +5 -5
- package/dist/cli/{sessions-2UJPBSAV.mjs → sessions-5I3VX7GL.mjs} +4 -4
- package/dist/cli/{sessions-KQSHUEEV.js → sessions-7QUTJ4IX.js} +5 -5
- package/dist/cli/{settings-XZSSJUSS.js → settings-KOMLTFDA.js} +75 -75
- package/dist/cli/{settings-BZ5JTH67.mjs → settings-WLFMKYRS.mjs} +8 -8
- package/dist/cli/{setup-GQO2XQLS.js → setup-DSRHIY6M.js} +41 -41
- package/dist/cli/{setup-DIQPCI6O.mjs → setup-KUDUUQ77.mjs} +6 -6
- package/dist/cli/skills-HNAWVPEB.js +28 -0
- package/dist/cli/{skills-6ZJBKK6M.mjs → skills-RNQS5ABC.mjs} +4 -4
- package/dist/cli/tools-IB4WTAKE.js +40 -0
- package/dist/cli/{tools-NKGWJUGR.mjs → tools-S5QDXE5W.mjs} +7 -7
- package/dist/cli/update-I2ZBIT52.js +28 -0
- package/dist/cli/{update-I3H7FXIF.mjs → update-MT6PD7B5.mjs} +6 -6
- package/dist/cli/{workflow-J3FZEW4S.js → workflow-QABG23XQ.js} +16 -16
- package/dist/cli/{workflow-XFRG5G5H.mjs → workflow-WWEWE4WP.mjs} +6 -6
- package/dist/{client-Cn-txrXv.d.mts → client-0avPvYBP.d.mts} +5 -0
- package/dist/{client-fPoIN-3V.d.ts → client-DEKvymBI.d.ts} +5 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -7
- package/dist/index.mjs +4 -4
- package/dist/install-integrity.json +78 -78
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/plays/run-request.js +2 -2
- package/dist/plays/run-request.mjs +1 -1
- 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-C54HQ3XR.js +0 -35
- package/dist/cli/git-C6PRTVHM.js +0 -23
- package/dist/cli/play-LNKMZFTI.js +0 -155
- package/dist/cli/search-L6K36YWC.js +0 -26
- package/dist/cli/skills-VSIYWK7T.js +0 -28
- package/dist/cli/tools-L7A6ITNQ.js +0 -40
- package/dist/cli/update-IP3GCUVX.js +0 -28
|
@@ -122,10 +122,11 @@ When:
|
|
|
122
122
|
Input:
|
|
123
123
|
No arguments. --play-runner runs a tiny no-provider play end to end.
|
|
124
124
|
Output:
|
|
125
|
-
Text: "<host>: <status>". --json: the server
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
125
|
+
Text: "<host>: <status>", then any service notice. --json: the server
|
|
126
|
+
health object plus status_banner (null when there is no notice). With
|
|
127
|
+
--play-runner,
|
|
128
|
+
{status, playRunner: {status, check}}. An unreachable host exits nonzero
|
|
129
|
+
with "Cannot reach Deepline API: <reason>".
|
|
129
130
|
Cost:
|
|
130
131
|
Free. --play-runner uses no providers.
|
|
131
132
|
Avoid:
|
|
@@ -122,10 +122,11 @@ When:
|
|
|
122
122
|
Input:
|
|
123
123
|
No arguments. --play-runner runs a tiny no-provider play end to end.
|
|
124
124
|
Output:
|
|
125
|
-
Text: "<host>: <status>". --json: the server
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
125
|
+
Text: "<host>: <status>", then any service notice. --json: the server
|
|
126
|
+
health object plus status_banner (null when there is no notice). With
|
|
127
|
+
--play-runner,
|
|
128
|
+
{status, playRunner: {status, check}}. An unreachable host exits nonzero
|
|
129
|
+
with "Cannot reach Deepline API: <reason>".
|
|
129
130
|
Cost:
|
|
130
131
|
Free. --play-runner uses no providers.
|
|
131
132
|
Avoid:
|
|
@@ -14,7 +14,7 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
|
14
14
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkPD2WRTDSjs = require('./chunk-PD2WRTDS.js');
|
|
18
18
|
|
|
19
19
|
// src/errors.ts
|
|
20
20
|
var CustomerDbQueryOutcomeUnknownError = (_class = class extends _chunk7P5AA3SNjs.DeeplineError {
|
|
@@ -743,9 +743,9 @@ function resolveCliCommandContext(inputConfig, requestedScope) {
|
|
|
743
743
|
}
|
|
744
744
|
|
|
745
745
|
// src/version.ts
|
|
746
|
-
var SDK_VERSION =
|
|
747
|
-
var SDK_API_MAJOR =
|
|
748
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
746
|
+
var SDK_VERSION = _chunkPD2WRTDSjs.SDK_RELEASE.version;
|
|
747
|
+
var SDK_API_MAJOR = _chunkPD2WRTDSjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
748
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkPD2WRTDSjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
749
749
|
|
|
750
750
|
// src/agent-runtime.ts
|
|
751
751
|
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-XI5NWXP4.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5YUA2FQG.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -1,17 +1,17 @@
|
|
|
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 _chunkQ7QP3XU2js = require('./chunk-Q7QP3XU2.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkT3ZCYEALjs = require('./chunk-T3ZCYEAL.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkHKDAWSF6js = require('./chunk-HKDAWSF6.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkIKXDUCBBjs = require('./chunk-IKXDUCBB.js');
|
|
15
15
|
|
|
16
16
|
// src/cli/commands/update.ts
|
|
17
17
|
var _child_process = require('child_process');
|
|
@@ -489,7 +489,7 @@ function normalizedNpmPrefix(value) {
|
|
|
489
489
|
}
|
|
490
490
|
function resolveNpmGlobalPrefix(env) {
|
|
491
491
|
try {
|
|
492
|
-
const plan =
|
|
492
|
+
const plan = _chunkT3ZCYEALjs.resolveShellSpawn.call(void 0, "npm", ["prefix", "-g"], process.platform, env);
|
|
493
493
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
494
494
|
encoding: "utf8",
|
|
495
495
|
env,
|
|
@@ -545,8 +545,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
545
545
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
546
546
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
547
547
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
548
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
549
|
-
const npmGlobalInstallFlags =
|
|
548
|
+
const npmVersion = options.npmVersion === void 0 ? _chunkQ7QP3XU2js.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
549
|
+
const npmGlobalInstallFlags = _chunkQ7QP3XU2js.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
550
550
|
const args = installPrefix ? [
|
|
551
551
|
"install",
|
|
552
552
|
"-g",
|
|
@@ -556,7 +556,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
556
556
|
packageSpec
|
|
557
557
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
558
558
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
559
|
-
_optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) ||
|
|
559
|
+
_optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) || _chunkIKXDUCBBjs.autoDetectBaseUrl.call(void 0, )
|
|
560
560
|
);
|
|
561
561
|
return {
|
|
562
562
|
kind: "npm-global",
|
|
@@ -703,7 +703,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
703
703
|
function runCommand(command, args, env = process.env) {
|
|
704
704
|
return new Promise((resolveResult) => {
|
|
705
705
|
let output = "";
|
|
706
|
-
const plan =
|
|
706
|
+
const plan = _chunkT3ZCYEALjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
707
707
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
708
708
|
stdio: ["inherit", "pipe", "pipe"],
|
|
709
709
|
shell: plan.shell,
|
|
@@ -1079,14 +1079,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
|
|
|
1079
1079
|
throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
|
|
1080
1080
|
}
|
|
1081
1081
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1082
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1082
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkIKXDUCBBjs.autoDetectBaseUrl));
|
|
1083
1083
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1084
1084
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1085
1085
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1086
1086
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1087
1087
|
process.stdout.write = (() => true);
|
|
1088
1088
|
try {
|
|
1089
|
-
const exitCode = await
|
|
1089
|
+
const exitCode = await _chunkT3ZCYEALjs.runSkillsCommand.call(void 0, { json: true });
|
|
1090
1090
|
if (exitCode !== 0) {
|
|
1091
1091
|
throw new Error(
|
|
1092
1092
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1157,11 +1157,11 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1157
1157
|
]
|
|
1158
1158
|
};
|
|
1159
1159
|
if (options.json && !options.executeWithJson) {
|
|
1160
|
-
|
|
1160
|
+
_chunkHKDAWSF6js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1161
1161
|
return 0;
|
|
1162
1162
|
}
|
|
1163
1163
|
if (options.printCommand) {
|
|
1164
|
-
|
|
1164
|
+
_chunkHKDAWSF6js.printCommandEnvelope.call(void 0,
|
|
1165
1165
|
{
|
|
1166
1166
|
...plan,
|
|
1167
1167
|
render: {
|
|
@@ -1174,7 +1174,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1174
1174
|
return 0;
|
|
1175
1175
|
}
|
|
1176
1176
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1177
|
-
|
|
1177
|
+
_chunkHKDAWSF6js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1178
1178
|
return 0;
|
|
1179
1179
|
}
|
|
1180
1180
|
stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
|
|
@@ -1204,7 +1204,7 @@ To retry with full installer output, run: deepline skills
|
|
|
1204
1204
|
);
|
|
1205
1205
|
}
|
|
1206
1206
|
if (options.executeWithJson && options.json) {
|
|
1207
|
-
|
|
1207
|
+
_chunkHKDAWSF6js.printCommandEnvelope.call(void 0,
|
|
1208
1208
|
{
|
|
1209
1209
|
ok: true,
|
|
1210
1210
|
pinnedVersion
|
|
@@ -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 _chunkBB6WCOYNjs = require('./chunk-BB6WCOYN.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkHKDAWSF6js = require('./chunk-HKDAWSF6.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkIKXDUCBBjs = require('./chunk-IKXDUCBB.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, _chunkIKXDUCBBjs.sdkCliStateDirPath.call(void 0, _chunkIKXDUCBBjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
22
22
|
}
|
|
23
23
|
function rememberSearchRef(searchRef) {
|
|
24
24
|
try {
|
|
@@ -259,7 +259,7 @@ function searchRow(item) {
|
|
|
259
259
|
}
|
|
260
260
|
function renderSearchResults(result) {
|
|
261
261
|
if (result.results.length === 0)
|
|
262
|
-
return
|
|
262
|
+
return _chunkHKDAWSF6js.renderCommandEnvelopeText.call(void 0, result);
|
|
263
263
|
const rows = result.results.map(searchRow);
|
|
264
264
|
const kinds = new Set(rows.map((row) => row.kind));
|
|
265
265
|
const onlyTools = kinds.size === 1 && kinds.has("tool");
|
|
@@ -283,7 +283,7 @@ function renderSearchResults(result) {
|
|
|
283
283
|
actions: _optionalChain([render, 'optionalAccess', _11 => _11.actions])
|
|
284
284
|
};
|
|
285
285
|
const followUps = _optionalChain([remaining, 'access', _12 => _12.sections, 'optionalAccess', _13 => _13.length]) || _optionalChain([remaining, 'access', _14 => _14.actions, 'optionalAccess', _15 => _15.length]) ? `
|
|
286
|
-
${
|
|
286
|
+
${_chunkHKDAWSF6js.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
|
|
287
287
|
const notes = rows.flatMap(
|
|
288
288
|
(row) => row.notes.map((note) => ` ${row.id}: ${note}`)
|
|
289
289
|
);
|
|
@@ -360,7 +360,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
360
360
|
console.error(USAGE);
|
|
361
361
|
return 1;
|
|
362
362
|
}
|
|
363
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
363
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunkBB6WCOYNjs.DeeplineClient)().search({
|
|
364
364
|
query,
|
|
365
365
|
types,
|
|
366
366
|
exclude,
|
|
@@ -374,7 +374,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
374
374
|
});
|
|
375
375
|
if (searchRef) rememberSearchRef(searchRef);
|
|
376
376
|
pointAtDescribe(result);
|
|
377
|
-
|
|
377
|
+
_chunkHKDAWSF6js.printCommandEnvelope.call(void 0, result, {
|
|
378
378
|
json: options.json === true,
|
|
379
379
|
text: renderSearchResults(result)
|
|
380
380
|
});
|
|
@@ -94,6 +94,7 @@ function buildPlayRunStartBody(request) {
|
|
|
94
94
|
...request.forceToolRefresh === true ? { forceToolRefresh: true } : {},
|
|
95
95
|
...typeof request.maxConcurrentExternalCalls === "number" ? { maxConcurrentExternalCalls: request.maxConcurrentExternalCalls } : {},
|
|
96
96
|
...typeof request.maxConcurrentRows === "number" ? { maxConcurrentRows: request.maxConcurrentRows } : {},
|
|
97
|
+
...typeof request.maxCredits === "number" ? { maxCredits: request.maxCredits } : {},
|
|
97
98
|
...typeof request.waitForCompletionMs === "number" ? { waitForCompletionMs: request.waitForCompletionMs } : {},
|
|
98
99
|
// Profile selection is the API's job, not the caller's. The server
|
|
99
100
|
// defaults to absurd; callers normally omit this field.
|
|
@@ -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.379",
|
|
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
|
|
@@ -94,6 +94,7 @@ function buildPlayRunStartBody(request) {
|
|
|
94
94
|
...request.forceToolRefresh === true ? { forceToolRefresh: true } : {},
|
|
95
95
|
...typeof request.maxConcurrentExternalCalls === "number" ? { maxConcurrentExternalCalls: request.maxConcurrentExternalCalls } : {},
|
|
96
96
|
...typeof request.maxConcurrentRows === "number" ? { maxConcurrentRows: request.maxConcurrentRows } : {},
|
|
97
|
+
...typeof request.maxCredits === "number" ? { maxCredits: request.maxCredits } : {},
|
|
97
98
|
...typeof request.waitForCompletionMs === "number" ? { waitForCompletionMs: request.waitForCompletionMs } : {},
|
|
98
99
|
// Profile selection is the API's job, not the caller's. The server
|
|
99
100
|
// defaults to absurd; callers normally omit this field.
|
|
@@ -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 _chunkT3ZCYEALjs = require('./chunk-T3ZCYEAL.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 = _chunkT3ZCYEALjs.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,
|