deepline 0.3.342 → 0.3.344
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/http.ts +9 -1
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +9 -1
- package/dist/bundling-sources/shared_libs/plays/csv-text-repair.ts +145 -0
- package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +2 -0
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +33 -0
- package/dist/bundling-sources/shared_libs/product-notifications/events.ts +15 -0
- package/dist/cli/auth-6ABMIWQQ.js +31 -0
- package/dist/cli/{auth-7GVSCIFY.mjs → auth-KHHPB2DO.mjs} +4 -4
- package/dist/cli/{billing-CQDTIFBF.js → billing-HAR4AJZT.js} +71 -71
- package/dist/cli/{billing-BVCHOOOJ.mjs → billing-RLK734WE.mjs} +4 -4
- package/dist/cli/{chunk-SBXCXMYT.mjs → chunk-23D4YCM6.mjs} +1 -1
- package/dist/cli/{chunk-4LPBIUQ2.mjs → chunk-2MSG6WCC.mjs} +2 -2
- package/dist/cli/{chunk-W5BMDA4F.js → chunk-475OQE7H.js} +2 -2
- package/dist/cli/{chunk-FT4V72RC.mjs → chunk-4DIFNYJZ.mjs} +2 -2
- package/dist/cli/{chunk-ECBT2RXL.mjs → chunk-BQYPKV4P.mjs} +8 -8
- package/dist/cli/{chunk-VZHA6YHU.mjs → chunk-CIV43IXR.mjs} +4 -4
- package/dist/cli/{chunk-GEGCG7MG.mjs → chunk-CMK6UNJA.mjs} +8 -8
- package/dist/cli/{chunk-OJH4W52K.mjs → chunk-DRHVFFMJ.mjs} +94 -6
- package/dist/cli/{chunk-ERC3XIUO.js → chunk-FHCBNR7M.js} +27 -28
- package/dist/cli/{chunk-BIA27ZNI.mjs → chunk-GJYCHN2L.mjs} +2 -2
- package/dist/cli/{chunk-G6TM2GK2.mjs → chunk-J5NN6XCF.mjs} +5 -1
- package/dist/cli/{chunk-B2PMPAIJ.js → chunk-J5P35NOT.js} +60 -60
- package/dist/cli/{chunk-K2P365R2.js → chunk-JXCEXXKW.js} +57 -67
- package/dist/cli/{chunk-5Y2DDT5K.js → chunk-LELCMU5K.js} +26 -26
- package/dist/cli/{chunk-IDTUEEF4.mjs → chunk-M5FYGL42.mjs} +1 -1
- package/dist/cli/{chunk-DP2XSXRA.js → chunk-MQIHCQ5Z.js} +8 -8
- package/dist/cli/{chunk-3BY3UMYO.js → chunk-QO6T7ETF.js} +15 -15
- package/dist/cli/{chunk-GAQGAH34.mjs → chunk-QZMF7VDU.mjs} +22 -23
- package/dist/cli/{chunk-AC7QCWXV.mjs → chunk-RN7NIZIL.mjs} +1 -1
- package/dist/cli/{chunk-3BGGXEO5.js → chunk-SJIF45BK.js} +8 -4
- package/dist/cli/{chunk-KM3JYG56.js → chunk-TYPYDSNY.js} +9 -9
- package/dist/cli/{chunk-4EW5CMVL.js → chunk-UWV3BA43.js} +227 -227
- package/dist/cli/{chunk-DL5YQFZ6.js → chunk-VL5IYXS3.js} +112 -24
- package/dist/cli/{chunk-XAMWA45P.mjs → chunk-XRZUDK6O.mjs} +11 -21
- package/dist/cli/{chunk-KYHNFT7T.js → chunk-Y6PJVWDY.js} +1 -1
- package/dist/cli/{chunk-LQGHKRNZ.js → chunk-ZUHK5OX3.js} +48 -48
- package/dist/cli/{client-UMFL6LP2.mjs → client-JWDU663V.mjs} +3 -3
- package/dist/cli/client-KETSZR46.js +20 -0
- package/dist/cli/{csv-HYZKDWVL.js → csv-7AW5GZ4K.js} +12 -12
- package/dist/cli/{csv-EFHLVMV2.mjs → csv-CIAWYPZO.mjs} +3 -3
- package/dist/cli/{db-GVC55S5W.mjs → db-SX73JJBH.mjs} +4 -4
- package/dist/cli/{db-RPWOYGIJ.js → db-UENUIWQN.js} +29 -29
- package/dist/cli/{describe-X5WLZXOS.mjs → describe-4SC5G2FG.mjs} +8 -8
- package/dist/cli/{describe-EPNNEVZG.js → describe-7OGZQAGF.js} +15 -15
- package/dist/cli/{executions-MEQFDGRU.js → executions-UDXQNB34.js} +6 -6
- package/dist/cli/{executions-MPEF66XO.mjs → executions-YB4IAUTW.mjs} +4 -4
- package/dist/cli/{feedback-SCZSITXP.js → feedback-5SGAGRAW.js} +7 -7
- package/dist/cli/{feedback-I4UNJEHC.mjs → feedback-76QWZSW3.mjs} +3 -3
- package/dist/cli/git-4PRJV7B3.js +23 -0
- package/dist/cli/{git-5H4ZVTTV.mjs → git-ESESPEVB.mjs} +4 -4
- package/dist/cli/index.js +80 -80
- package/dist/cli/index.mjs +32 -32
- package/dist/cli/{legacy-noops-326HSG4F.mjs → legacy-noops-6F6QSRDB.mjs} +4 -4
- package/dist/cli/{legacy-noops-BH6IRSKQ.js → legacy-noops-E74OIJCW.js} +7 -7
- package/dist/cli/{monitors-SIXPXBKU.js → monitors-4MIXICCR.js} +85 -85
- package/dist/cli/{monitors-AZ64IIUO.mjs → monitors-USOHPXUY.mjs} +4 -4
- package/dist/cli/{org-2FAU4GBK.mjs → org-2RRIFNXJ.mjs} +4 -4
- package/dist/cli/{org-4VX6L3SZ.js → org-DO3Q6L7S.js} +60 -60
- package/dist/cli/{play-7VQABXW7.mjs → play-KAXYPLCQ.mjs} +7 -7
- package/dist/cli/play-SHRBJAO4.js +153 -0
- package/dist/cli/{providers-DOFRWRDC.mjs → providers-FKHLPGQO.mjs} +4 -4
- package/dist/cli/{providers-WWEGDKWO.js → providers-RCUITFFY.js} +7 -7
- package/dist/cli/{quickstart-JXN53CUE.mjs → quickstart-CDBWA6IK.mjs} +3 -3
- package/dist/cli/{quickstart-64NWQZXP.js → quickstart-XGU4M4Z5.js} +5 -5
- package/dist/cli/{search-NREYIQO7.mjs → search-QA4DAJPS.mjs} +5 -5
- package/dist/cli/search-ZHYH2BA3.js +26 -0
- package/dist/cli/{secrets-LO2S3ASQ.mjs → secrets-6S2CDL2M.mjs} +4 -4
- package/dist/cli/{secrets-FGZSIICG.js → secrets-KYKXEHNR.js} +13 -13
- package/dist/cli/{sessions-VOLIMKDL.js → sessions-PWAIUF7I.js} +5 -5
- package/dist/cli/{sessions-FYHXMESN.mjs → sessions-WGLVMQYC.mjs} +4 -4
- package/dist/cli/{settings-EYQHZTCR.js → settings-CNWO5VFJ.js} +74 -74
- package/dist/cli/{settings-WABX7ZVG.mjs → settings-FQ5CWYNQ.mjs} +7 -7
- package/dist/cli/{setup-7H5EAAZK.js → setup-ABIO2LJD.js} +41 -41
- package/dist/cli/{setup-JVECE4TU.mjs → setup-RRT66ENS.mjs} +6 -6
- package/dist/cli/{skills-BEVLJDUH.mjs → skills-3LY2RQE3.mjs} +4 -4
- package/dist/cli/skills-OBTT3OF7.js +28 -0
- package/dist/cli/tools-DMXHSMU2.js +40 -0
- package/dist/cli/{tools-5D32S2CY.mjs → tools-TQMHPW3U.mjs} +6 -6
- package/dist/cli/update-4CK752WQ.js +28 -0
- package/dist/cli/{update-EMNDLIDA.mjs → update-6U4ASVZX.mjs} +6 -6
- package/dist/cli/{workflow-BBMZ2A2Y.js → workflow-GVXAFVXF.js} +15 -15
- package/dist/cli/{workflow-MMTSJB3D.mjs → workflow-XLE4N3W3.mjs} +5 -5
- package/dist/{client-B-hjM1NX.d.mts → client-BHReRdWK.d.mts} +41 -0
- package/dist/{client-txa3om01.d.ts → client-DW3zASj8.d.ts} +41 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +77 -76
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +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-BFOCE76P.js +0 -31
- package/dist/cli/client-FCOLYBLU.js +0 -20
- package/dist/cli/git-YA73D6HG.js +0 -23
- package/dist/cli/play-SDZWMYJM.js +0 -153
- package/dist/cli/search-VKOBBQAN.js +0 -26
- package/dist/cli/skills-4WHWKCUN.js +0 -28
- package/dist/cli/tools-SGLGLR2H.js +0 -40
- package/dist/cli/update-HRB4G5LS.js +0 -28
|
@@ -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 _chunk475OQE7Hjs = require('./chunk-475OQE7H.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkJ5P35NOTjs = require('./chunk-J5P35NOT.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkVL5IYXS3js = require('./chunk-VL5IYXS3.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkSJIF45BKjs = require('./chunk-SJIF45BK.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 = _chunkJ5P35NOTjs.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 ? _chunk475OQE7Hjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
549
|
+
const npmGlobalInstallFlags = _chunk475OQE7Hjs.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()]) || _chunkSJIF45BKjs.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 = _chunkJ5P35NOTjs.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, () => ( _chunkSJIF45BKjs.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 _chunkJ5P35NOTjs.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
|
+
_chunkVL5IYXS3js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1161
1161
|
return 0;
|
|
1162
1162
|
}
|
|
1163
1163
|
if (options.printCommand) {
|
|
1164
|
-
|
|
1164
|
+
_chunkVL5IYXS3js.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
|
+
_chunkVL5IYXS3js.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 --json
|
|
|
1204
1204
|
);
|
|
1205
1205
|
}
|
|
1206
1206
|
if (options.executeWithJson && options.json) {
|
|
1207
|
-
|
|
1207
|
+
_chunkVL5IYXS3js.printCommandEnvelope.call(void 0,
|
|
1208
1208
|
{
|
|
1209
1209
|
ok: true,
|
|
1210
1210
|
pinnedVersion
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-23D4YCM6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope,
|
|
6
6
|
renderCommandEnvelopeText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DRHVFFMJ.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveConfig,
|
|
10
10
|
sdkCliStateDirPath
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-J5NN6XCF.mjs";
|
|
12
|
+
|
|
13
|
+
// src/cli/commands/search.ts
|
|
14
|
+
import { Option } from "commander";
|
|
12
15
|
|
|
13
16
|
// src/cli/search-ref.ts
|
|
14
17
|
import { mkdirSync, readFileSync, writeFileSync } from "fs";
|
|
@@ -171,7 +174,7 @@ var SEARCH_TYPES = [
|
|
|
171
174
|
"prebuilts",
|
|
172
175
|
"custom"
|
|
173
176
|
];
|
|
174
|
-
var USAGE = "Usage: deepline search [
|
|
177
|
+
var USAGE = "Usage: deepline search [task] [--type <types>] [--categories <categories>] [--search_terms <terms>] [--json]";
|
|
175
178
|
function parseTypes(flag, raw) {
|
|
176
179
|
const names = (raw ?? "").split(",").map((name) => name.trim().toLowerCase()).filter(Boolean);
|
|
177
180
|
const unknown = names.filter(
|
|
@@ -193,14 +196,11 @@ function appendCsv(value, previous) {
|
|
|
193
196
|
function addSearchOptions(command) {
|
|
194
197
|
return command.option(
|
|
195
198
|
"--categories <categories>",
|
|
196
|
-
"Comma-separated tool categories; may be used without a
|
|
199
|
+
"Comma-separated tool categories; may be used without a task"
|
|
197
200
|
).option(
|
|
198
201
|
"--search_terms <terms>",
|
|
199
|
-
"Comma-separated structured search terms; may be used without a
|
|
200
|
-
).option("--search-terms <terms>", "Alias for --search_terms").option(
|
|
201
|
-
"--task <sentence>",
|
|
202
|
-
"What you are trying to accomplish: input you have -> result you need"
|
|
203
|
-
).option("--limit <count>", "Maximum ranked results to return (1-50)").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");
|
|
202
|
+
"Comma-separated structured search terms; may be used without a task"
|
|
203
|
+
).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("--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");
|
|
204
204
|
}
|
|
205
205
|
function pointAtDescribe(result) {
|
|
206
206
|
const old = /`deepline (tools|plays) describe [^`]*`/;
|
|
@@ -247,7 +247,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
247
247
|
function registerDeprecatedSearchCommand(parent, typesFor) {
|
|
248
248
|
const name = `deepline ${parent.name()} search`;
|
|
249
249
|
addSearchOptions(
|
|
250
|
-
parent.command("search [
|
|
250
|
+
parent.command("search [task]").description(`Deprecated. Use deepline search --type <types>.`).addHelpText(
|
|
251
251
|
"after",
|
|
252
252
|
`
|
|
253
253
|
Notes:
|
|
@@ -255,7 +255,7 @@ Notes:
|
|
|
255
255
|
matching --type and returns the same results envelope.
|
|
256
256
|
|
|
257
257
|
Examples:
|
|
258
|
-
deepline search email --type ${typesFor({}).join(",")}
|
|
258
|
+
deepline search "name and company domain -> work email" --type ${typesFor({}).join(",")}
|
|
259
259
|
`
|
|
260
260
|
).option("--all", "Include plays your workspace created").option("--compact", "Accepted for compatibility; results are compact")
|
|
261
261
|
).action(async (query, options) => {
|
|
@@ -268,7 +268,7 @@ Examples:
|
|
|
268
268
|
}
|
|
269
269
|
function registerSearchCommand(program) {
|
|
270
270
|
addSearchOptions(
|
|
271
|
-
program.command("search [
|
|
271
|
+
program.command("search [task]").description(
|
|
272
272
|
"Search tools, monitors, and plays together, ranked by intent."
|
|
273
273
|
).addHelpText(
|
|
274
274
|
"after",
|
|
@@ -287,22 +287,21 @@ Notes:
|
|
|
287
287
|
Ranking uses a third-party AI relevance model. For plays your workspace
|
|
288
288
|
created it is sent only the play name and description, never play code.
|
|
289
289
|
Both flags may be repeated: --type tools --type prebuilts.
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
290
|
+
The task is one sentence on what you are trying to accomplish, written as
|
|
291
|
+
the input you have -> the result you need. Do not send keywords: the
|
|
292
|
+
sentence is what ranks the results. Omit it only when --categories and/or
|
|
293
|
+
--search_terms is supplied. Use --limit and --offset to page (limit 1-50,
|
|
294
|
+
offset zero-based); JSON includes next_offset.
|
|
295
295
|
Search prints a readable result list by default, piped or not, and that is
|
|
296
296
|
the recommended form. Pass --json only when a program parses the result.
|
|
297
297
|
Readable prices are Deepline credits with a per-row unit. Estimates and
|
|
298
298
|
observed historical charges are labelled; usage-based prices are not quotes.
|
|
299
299
|
|
|
300
300
|
Examples:
|
|
301
|
-
deepline search "
|
|
302
|
-
deepline search "
|
|
303
|
-
deepline search "company
|
|
304
|
-
deepline search "
|
|
305
|
-
deepline search linkedin --task "I have 200 LinkedIn profile URLs and need each person's current title and company"
|
|
301
|
+
deepline search "first name, last name and company domain -> verified work email"
|
|
302
|
+
deepline search "200 LinkedIn profile URLs -> each person's current title and company" --type tools --limit 10
|
|
303
|
+
deepline search "company domain -> contacts in sales leadership" --type plays
|
|
304
|
+
deepline search "company domain -> headcount, funding and industry" --exclude monitors,custom
|
|
306
305
|
deepline search --type tools --categories company_search --search_terms "investors,funding"
|
|
307
306
|
`
|
|
308
307
|
).option(
|
|
@@ -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.344",
|
|
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
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkY6PJVWDYjs = require('./chunk-Y6PJVWDY.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -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 = _chunkY6PJVWDYjs.SDK_RELEASE.version;
|
|
747
|
+
var SDK_API_MAJOR = _chunkY6PJVWDYjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
748
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkY6PJVWDYjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
749
749
|
|
|
750
750
|
// src/agent-runtime.ts
|
|
751
751
|
|
|
@@ -1383,6 +1383,10 @@ var HttpClient = class {
|
|
|
1383
1383
|
if (skillsVersion) {
|
|
1384
1384
|
headers["X-Deepline-Skills-Version"] = skillsVersion;
|
|
1385
1385
|
}
|
|
1386
|
+
const agentSessionId = agentSessionIdFromEnvironment();
|
|
1387
|
+
if (agentSessionId) {
|
|
1388
|
+
headers["X-Deepline-Agent-Session-Id"] = agentSessionId;
|
|
1389
|
+
}
|
|
1386
1390
|
const playArtifactR2Prefix = typeof process !== "undefined" ? _optionalChain([process, 'access', _159 => _159.env, 'optionalAccess', _160 => _160.DEEPLINE_PLAY_ARTIFACT_R2_PREFIX]) : void 0;
|
|
1387
1391
|
if (playArtifactR2Prefix) {
|
|
1388
1392
|
headers["x-deepline-play-artifact-r2-prefix"] = playArtifactR2Prefix;
|
|
@@ -15,7 +15,7 @@ var _chunkLA46MMTLjs = require('./chunk-LA46MMTL.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkSJIF45BKjs = require('./chunk-SJIF45BK.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -167,7 +167,7 @@ async function queryCustomerDatabase(http, input) {
|
|
|
167
167
|
if (error instanceof _chunk7P5AA3SNjs.DeeplineError && (_optionalChain([error, 'access', _2 => _2.code, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4("NETWORK_")]) || // Older API readers return PostgreSQL errors as HTTP 400, including
|
|
168
168
|
// lost connections and explicitly unknown transaction resolution.
|
|
169
169
|
/^08[A-Z0-9]{3}$/.test(_nullishCoalesce(error.code, () => ( ""))) || ["57P01", "57P02", "57P03"].includes(_nullishCoalesce(error.code, () => ( ""))) || error.statusCode === 408 || (_nullishCoalesce(error.statusCode, () => ( 0))) >= 500)) {
|
|
170
|
-
throw new (0,
|
|
170
|
+
throw new (0, _chunkSJIF45BKjs.CustomerDbQueryOutcomeUnknownError)(
|
|
171
171
|
error,
|
|
172
172
|
plan.request.body.operation_key
|
|
173
173
|
);
|
|
@@ -175,7 +175,7 @@ async function queryCustomerDatabase(http, input) {
|
|
|
175
175
|
throw error;
|
|
176
176
|
}
|
|
177
177
|
if (!result || typeof result !== "object" || Array.isArray(result) || typeof result.command !== "string" || !Array.isArray(result.columns) || !Array.isArray(result.rows) || typeof result.truncated !== "boolean" || result.row_count !== null && (!Number.isSafeInteger(result.row_count) || result.row_count < 0) || !Number.isSafeInteger(result.row_count_returned) || result.row_count_returned < 0) {
|
|
178
|
-
throw new (0,
|
|
178
|
+
throw new (0, _chunkSJIF45BKjs.CustomerDbQueryOutcomeUnknownError)(
|
|
179
179
|
new (0, _chunk7P5AA3SNjs.DeeplineError)(
|
|
180
180
|
"The SQL response did not contain a valid result.",
|
|
181
181
|
200,
|
|
@@ -186,7 +186,7 @@ async function queryCustomerDatabase(http, input) {
|
|
|
186
186
|
}
|
|
187
187
|
const operation = result.operation;
|
|
188
188
|
if (input.operationKey !== void 0 && (!operation || operation.operation_key !== input.operationKey || !Number.isSafeInteger(operation.completed_at_ms) || operation.completed_at_ms < 0 || !["executed", "operation_recovery"].includes(operation.source))) {
|
|
189
|
-
throw new (0,
|
|
189
|
+
throw new (0, _chunkSJIF45BKjs.CustomerDbQueryOutcomeUnknownError)(
|
|
190
190
|
new (0, _chunk7P5AA3SNjs.DeeplineError)(
|
|
191
191
|
"The server did not confirm the original atomic SQL operation.",
|
|
192
192
|
200,
|
|
@@ -2875,8 +2875,8 @@ function runtimeSelectionHeaders(runtime) {
|
|
|
2875
2875
|
}
|
|
2876
2876
|
const receivers = _optionalChain([process, 'access', _102 => _102.env, 'access', _103 => _103.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _104 => _104.trim, 'call', _105 => _105()]);
|
|
2877
2877
|
return {
|
|
2878
|
-
[
|
|
2879
|
-
...receivers ? { [
|
|
2878
|
+
[_chunkSJIF45BKjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
2879
|
+
...receivers ? { [_chunkSJIF45BKjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
2880
2880
|
};
|
|
2881
2881
|
}
|
|
2882
2882
|
function isolatedCiRuntimeEventReadHeaders() {
|
|
@@ -2892,7 +2892,7 @@ function isolatedCiRuntimeEventReadHeaders() {
|
|
|
2892
2892
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
2893
2893
|
);
|
|
2894
2894
|
}
|
|
2895
|
-
return { [
|
|
2895
|
+
return { [_chunkSJIF45BKjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
2896
2896
|
}
|
|
2897
2897
|
function normalizeTestPolicyOverrides(value, source) {
|
|
2898
2898
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
@@ -3182,8 +3182,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
3182
3182
|
* @throws {@link ConfigError} if no API key can be resolved from any source.
|
|
3183
3183
|
*/
|
|
3184
3184
|
constructor(options) {
|
|
3185
|
-
this.config =
|
|
3186
|
-
this.http = new (0,
|
|
3185
|
+
this.config = _chunkSJIF45BKjs.resolveConfig.call(void 0, options);
|
|
3186
|
+
this.http = new (0, _chunkSJIF45BKjs.HttpClient)(this.config);
|
|
3187
3187
|
this.toolCalls = new ToolCalls(
|
|
3188
3188
|
this.http,
|
|
3189
3189
|
this.config.timeout,
|