deepline 0.3.420 → 0.3.421
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-OUHAOA5F.mjs → auth-56JTC4Q7.mjs} +4 -4
- package/dist/cli/auth-ZQMAF7W5.js +40 -0
- package/dist/cli/{billing-PKVUYBJB.js → billing-C5LR6FA7.js} +73 -73
- package/dist/cli/{billing-VIZQ6D4L.mjs → billing-ZXOOZEUW.mjs} +4 -4
- package/dist/cli/{chunk-OJ64RXJW.js → chunk-2WOVAVJ3.js} +26 -26
- package/dist/cli/{chunk-VESCW5LD.js → chunk-2XKDLS5P.js} +6 -6
- package/dist/cli/{chunk-R4TF44FZ.js → chunk-4I26IVFC.js} +35 -35
- package/dist/cli/{chunk-LJ7ZOBTQ.mjs → chunk-4NS4EZHN.mjs} +2 -2
- package/dist/cli/{chunk-SVJPQHHN.mjs → chunk-5E55HHW3.mjs} +4 -4
- package/dist/cli/{chunk-A2CPK2UC.mjs → chunk-5F6W5NWV.mjs} +5 -5
- package/dist/cli/{chunk-4T242WLH.js → chunk-5KYK4DGY.js} +8 -8
- package/dist/cli/{chunk-LUQE4CFH.js → chunk-6UKY4LBW.js} +20 -20
- package/dist/cli/{chunk-ZCPJ3L43.js → chunk-7SRVIWGT.js} +1 -1
- package/dist/cli/{chunk-R62A6ZXG.mjs → chunk-7TSF7E3B.mjs} +2 -2
- package/dist/cli/{chunk-KLNF7MWP.mjs → chunk-AZGJNNNE.mjs} +2 -2
- package/dist/cli/{chunk-NQAWJ65E.js → chunk-C25ZYL6U.js} +4 -4
- package/dist/cli/{chunk-LFSHGNT2.mjs → chunk-CTNA5QY2.mjs} +7 -6
- package/dist/cli/{chunk-JP35BUED.mjs → chunk-EKQH4IUU.mjs} +1 -1
- package/dist/cli/{chunk-3L734JBM.mjs → chunk-F4V4JJED.mjs} +3 -3
- package/dist/cli/{chunk-OGII53LE.js → chunk-FB5H5OOH.js} +10 -10
- package/dist/cli/{chunk-QJA6OAJF.js → chunk-GIJ47TAV.js} +6 -6
- package/dist/cli/{chunk-HGYUUQJG.js → chunk-HP5FD2LI.js} +8 -8
- package/dist/cli/{chunk-XXOUOHBO.js → chunk-JJQLBZEW.js} +2 -2
- package/dist/cli/{chunk-5VPN2HZQ.js → chunk-NSJRLP7R.js} +16 -16
- package/dist/cli/{chunk-5MLCBXXU.js → chunk-PKBPSMOT.js} +7 -6
- package/dist/cli/{chunk-PZVB72XS.js → chunk-QJV2ALPN.js} +2 -2
- package/dist/cli/{chunk-7AIHQR5X.mjs → chunk-RJLFCJ23.mjs} +3 -3
- package/dist/cli/{chunk-YHOGJQR7.mjs → chunk-RURYN2BE.mjs} +25 -57
- package/dist/cli/{chunk-LPNB7RIE.mjs → chunk-SPLOMS4N.mjs} +1 -1
- package/dist/cli/{chunk-WVF6T2MI.mjs → chunk-UCI4QROZ.mjs} +1 -1
- package/dist/cli/{chunk-SNLYCNAO.mjs → chunk-VC3E5HFO.mjs} +1 -1
- package/dist/cli/{chunk-M4AYMLCK.js → chunk-VEYAPBS4.js} +96 -128
- package/dist/cli/{chunk-IZ3QC7OE.mjs → chunk-VYLZS7X4.mjs} +1 -1
- package/dist/cli/{chunk-J55AD562.js → chunk-WR4M5VWK.js} +52 -52
- package/dist/cli/{chunk-UBNWFLYB.mjs → chunk-ZLPT2RZ5.mjs} +2 -2
- package/dist/cli/{chunk-AOPQ46ZW.mjs → chunk-ZOL3CIKN.mjs} +3 -3
- package/dist/cli/{chunk-TK7V5NQO.mjs → chunk-ZSVWCV3G.mjs} +1 -1
- package/dist/cli/{chunk-YSJVAPJE.js → chunk-ZZBXD5VX.js} +50 -50
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-OJLORQ3N.mjs → csv-EJ4QRLA2.mjs} +3 -3
- package/dist/cli/{csv-CLKRVS6Q.js → csv-G6H3U4XV.js} +12 -12
- package/dist/cli/{db-VIY56Q3E.mjs → db-PBIIALJ5.mjs} +4 -4
- package/dist/cli/{db-PURJUV2P.js → db-WKQFXUWI.js} +25 -25
- package/dist/cli/{describe-PDLBLRNY.mjs → describe-DMRK4UNO.mjs} +12 -12
- package/dist/cli/{describe-P2OJ5B4Q.js → describe-ZCU36ES2.js} +16 -16
- package/dist/cli/{executions-6PA6Q2BU.mjs → executions-JAHW6GMA.mjs} +4 -4
- package/dist/cli/{executions-5CMSUI47.js → executions-SBA3UYMH.js} +6 -6
- package/dist/cli/{feedback-IU7JRPUB.mjs → feedback-PKBUYHMD.mjs} +3 -3
- package/dist/cli/{feedback-WBKYOIOV.js → feedback-QAE4V2NY.js} +7 -7
- package/dist/cli/git-54INNT33.js +24 -0
- package/dist/cli/{git-RZVL3FY6.mjs → git-GAO3SJAQ.mjs} +4 -4
- package/dist/cli/index.js +135 -135
- package/dist/cli/index.mjs +37 -37
- package/dist/cli/{legacy-noops-S4MMABPX.mjs → legacy-noops-5PY2ZZF3.mjs} +4 -4
- package/dist/cli/{legacy-noops-UQKVJEZT.js → legacy-noops-JCMVW5BL.js} +7 -7
- package/dist/cli/{monitors-AIS4RRVX.mjs → monitors-GVYAZRMB.mjs} +4 -4
- package/dist/cli/{monitors-42RY2EQJ.js → monitors-YPS4LPDG.js} +84 -84
- package/dist/cli/{org-GMMSVSCM.js → org-OBVAU6K7.js} +64 -64
- package/dist/cli/{org-DOIEU3KC.mjs → org-R7AKPKUB.mjs} +4 -4
- package/dist/cli/{play-6Z2D3FHI.mjs → play-3LFM2SV2.mjs} +10 -10
- package/dist/cli/{play-GHUPSQIT.js → play-MTHQQHR6.js} +283 -283
- package/dist/cli/{providers-T6O7AAHV.js → providers-CTIROUI3.js} +7 -7
- package/dist/cli/{providers-HTKPCZHW.mjs → providers-IRICPDKU.mjs} +4 -4
- package/dist/cli/{quickstart-V7CQS7CK.mjs → quickstart-5FBQVZ5B.mjs} +3 -3
- package/dist/cli/{quickstart-UVHSZ5R4.js → quickstart-OZDVFNF2.js} +5 -5
- package/dist/cli/{search-GZLYNCII.mjs → search-FYM47QFU.mjs} +5 -5
- package/dist/cli/search-XIKHDZJ3.js +30 -0
- package/dist/cli/{secrets-L24W7HSZ.js → secrets-43GJUDAE.js} +13 -13
- package/dist/cli/{secrets-HT2CNTXQ.mjs → secrets-ENBXU3O3.mjs} +4 -4
- package/dist/cli/{sessions-VWOBR4BP.mjs → sessions-7IQJOH5Z.mjs} +4 -4
- package/dist/cli/{sessions-JTQPPC66.js → sessions-RXX5IHG6.js} +5 -5
- package/dist/cli/{settings-7OOY3WN4.mjs → settings-EZGDTS3K.mjs} +8 -8
- package/dist/cli/{settings-57PNA6CO.js → settings-Z2CWWV7P.js} +75 -75
- package/dist/cli/{setup-MDIJTSFP.js → setup-2ON3TUXP.js} +42 -42
- package/dist/cli/{setup-EE6JK7EG.mjs → setup-N5UMUBBV.mjs} +7 -7
- package/dist/cli/skills-2WIHNEOS.js +29 -0
- package/dist/cli/{skills-JDORGABC.mjs → skills-4MR2Z2M5.mjs} +5 -5
- package/dist/cli/{tools-LVXONRMU.mjs → tools-MCEIWE3I.mjs} +12 -12
- package/dist/cli/tools-YUUSOKYX.js +44 -0
- package/dist/cli/{update-JX2ZOYD3.mjs → update-2JDBGLTX.mjs} +7 -7
- package/dist/cli/update-PWX4MJ3R.js +31 -0
- package/dist/cli/{workflow-ATUJZTWI.js → workflow-7DNBY4WJ.js} +15 -15
- package/dist/cli/{workflow-G4B6ON6F.mjs → workflow-7UDXYU5Y.mjs} +5 -5
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +80 -80
- 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-FMFNRZCM.js +0 -40
- package/dist/cli/git-SS34WXCG.js +0 -24
- package/dist/cli/search-CAQRDWHR.js +0 -30
- package/dist/cli/skills-S4KMUPPF.js +0 -29
- package/dist/cli/tools-CHZV3D7R.js +0 -44
- package/dist/cli/update-2XCGK53M.js +0 -31
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
recentSearchRef,
|
|
7
7
|
registerDeprecatedSearchCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZOL3CIKN.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-UCI4QROZ.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-5E55HHW3.mjs";
|
|
59
59
|
import {
|
|
60
60
|
isCliTraceEnabled,
|
|
61
61
|
recordCliTrace,
|
|
62
62
|
resolveCliMaintenancePolicy
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-EKQH4IUU.mjs";
|
|
64
64
|
import {
|
|
65
65
|
checkSdkCompatibility,
|
|
66
66
|
enforceSdkCompatibilityResponse,
|
|
67
67
|
flushDeferredSkillsSyncNotices,
|
|
68
68
|
syncSdkSkillsIfNeeded
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-RJLFCJ23.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-VC3E5HFO.mjs";
|
|
78
78
|
import {
|
|
79
79
|
readSdkSkillsLocalVersion,
|
|
80
80
|
resolveConfig,
|
|
81
81
|
sdkCliStateDirPath
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-VYLZS7X4.mjs";
|
|
83
83
|
import {
|
|
84
84
|
DeeplineError
|
|
85
85
|
} from "./chunk-E4IXDAZI.mjs";
|
|
@@ -293,32 +293,13 @@ function toListedTool(tool) {
|
|
|
293
293
|
executeCommand: `deepline tools execute ${tool.toolId}`
|
|
294
294
|
};
|
|
295
295
|
}
|
|
296
|
-
function normalizeGrepText(value) {
|
|
297
|
-
if (value === null || value === void 0) return "";
|
|
298
|
-
if (typeof value === "string") return value.toLowerCase();
|
|
299
|
-
if (typeof value === "number" || typeof value === "boolean") {
|
|
300
|
-
return String(value).toLowerCase();
|
|
301
|
-
}
|
|
302
|
-
if (Array.isArray(value)) return value.map(normalizeGrepText).join(" ");
|
|
303
|
-
if (typeof value === "object") {
|
|
304
|
-
return Object.values(value).map(normalizeGrepText).join(" ");
|
|
305
|
-
}
|
|
306
|
-
return "";
|
|
307
|
-
}
|
|
308
296
|
function parseGrepTerms(query, mode) {
|
|
309
|
-
const trimmed = query.trim()
|
|
297
|
+
const trimmed = query.trim();
|
|
310
298
|
if (!trimmed) return [];
|
|
311
299
|
if (mode === "phrase") return [trimmed];
|
|
312
300
|
const matches = trimmed.match(/"([^"]+)"|'([^']+)'|\S+/g) ?? [];
|
|
313
301
|
return matches.map((term) => term.replace(/^["']|["']$/g, "").trim()).filter(Boolean);
|
|
314
302
|
}
|
|
315
|
-
function matchesGrepQuery(value, query, mode) {
|
|
316
|
-
const terms = parseGrepTerms(query, mode);
|
|
317
|
-
if (terms.length === 0) return true;
|
|
318
|
-
const haystack = normalizeGrepText(value);
|
|
319
|
-
if (mode === "any") return terms.some((term) => haystack.includes(term));
|
|
320
|
-
return terms.every((term) => haystack.includes(term));
|
|
321
|
-
}
|
|
322
303
|
function shellCommandArg(value) {
|
|
323
304
|
return `'${value.replace(/'/g, `'\\''`)}'`;
|
|
324
305
|
}
|
|
@@ -338,7 +319,7 @@ function zeroMatchToolGuidance(options) {
|
|
|
338
319
|
},
|
|
339
320
|
...options.mode === "all" ? [
|
|
340
321
|
{
|
|
341
|
-
label: "Relax
|
|
322
|
+
label: "Relax grep from AND to OR matching",
|
|
342
323
|
command: `deepline tools grep --mode any -- ${shellCommandArg(query)}`
|
|
343
324
|
}
|
|
344
325
|
] : []
|
|
@@ -658,27 +639,8 @@ async function grepTools(queryInput, options = {}) {
|
|
|
658
639
|
(item) => requestedCategories.length === 0 || requestedCategories.some(
|
|
659
640
|
(category) => item.categories.includes(category)
|
|
660
641
|
)
|
|
661
|
-
).filter(
|
|
662
|
-
(item) => apiCompact ? true : matchesGrepQuery(
|
|
663
|
-
{
|
|
664
|
-
id: item.toolId,
|
|
665
|
-
toolId: item.toolId,
|
|
666
|
-
provider: item.provider,
|
|
667
|
-
displayName: item.displayName,
|
|
668
|
-
description: item.description,
|
|
669
|
-
categories: item.categories,
|
|
670
|
-
operation: item.operation,
|
|
671
|
-
operationAliases: item.operationAliases,
|
|
672
|
-
inputSchema: item.inputSchema,
|
|
673
|
-
outputSchema: item.outputSchema,
|
|
674
|
-
inputFields: item.inputFields
|
|
675
|
-
},
|
|
676
|
-
query,
|
|
677
|
-
mode
|
|
678
|
-
)
|
|
679
642
|
);
|
|
680
|
-
const
|
|
681
|
-
const outputTools = shouldCompact ? tools.slice(0, 8).map(compactTool) : tools;
|
|
643
|
+
const outputTools = apiCompact ? tools.map(compactTool) : tools;
|
|
682
644
|
const emptyResult = tools.length === 0 ? zeroMatchToolGuidance({
|
|
683
645
|
categories: requestedCategories,
|
|
684
646
|
query,
|
|
@@ -714,6 +676,7 @@ function compactTool(tool) {
|
|
|
714
676
|
const listed = toListedTool(tool);
|
|
715
677
|
const searchScore = numericToolField(tool, "searchScore");
|
|
716
678
|
const search_score = numericToolField(tool, "search_score");
|
|
679
|
+
const matchedFields = tool.matchedFields;
|
|
717
680
|
return {
|
|
718
681
|
id: listed.id,
|
|
719
682
|
toolId: listed.toolId,
|
|
@@ -724,7 +687,8 @@ function compactTool(tool) {
|
|
|
724
687
|
description: listed.description,
|
|
725
688
|
categories: listed.categories,
|
|
726
689
|
type: listed.type,
|
|
727
|
-
executeCommand: listed.executeCommand
|
|
690
|
+
executeCommand: listed.executeCommand,
|
|
691
|
+
...Array.isArray(matchedFields) ? { matchedFields } : {}
|
|
728
692
|
};
|
|
729
693
|
}
|
|
730
694
|
function playIdentifiers(play) {
|
|
@@ -869,20 +833,24 @@ Examples:
|
|
|
869
833
|
});
|
|
870
834
|
registerDeprecatedSearchCommand(tools, () => ["tools", "monitors"]);
|
|
871
835
|
tools.command("grep <query>").description(
|
|
872
|
-
"
|
|
836
|
+
"Regex grep over tool ids, descriptions, categories, and input fields."
|
|
873
837
|
).addHelpText(
|
|
874
838
|
"after",
|
|
875
839
|
`
|
|
876
840
|
Notes:
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
841
|
+
Each whitespace-separated term is a case-insensitive regular expression
|
|
842
|
+
(RE2 syntax), tested against each field on its own: tool id, provider,
|
|
843
|
+
display name, categories, aliases, input field names, and descriptions.
|
|
844
|
+
Results list id matches first, and matchedFields says where each tool
|
|
845
|
+
matched. Use --mode any for OR, the default --mode all for AND, and
|
|
846
|
+
--mode phrase to treat the whole query, spaces included, as one pattern.
|
|
847
|
+
A term that is not valid RE2 (for example c++) is matched literally.
|
|
881
848
|
|
|
882
849
|
Examples:
|
|
850
|
+
deepline tools grep '^hubspot_'
|
|
851
|
+
deepline tools grep 'twilio|telesign|vonage'
|
|
852
|
+
deepline tools grep 'hubspot.*(call|engagement)'
|
|
883
853
|
deepline tools grep email --categories email_finder
|
|
884
|
-
deepline tools grep "phone validate" --mode all
|
|
885
|
-
deepline tools grep hunter --mode phrase
|
|
886
854
|
`
|
|
887
855
|
).option(
|
|
888
856
|
"--categories <categories>",
|
|
@@ -968,7 +936,7 @@ Examples:
|
|
|
968
936
|
process.exitCode = await narrowView();
|
|
969
937
|
return;
|
|
970
938
|
}
|
|
971
|
-
const { describeAnything } = await import("./describe-
|
|
939
|
+
const { describeAnything } = await import("./describe-DMRK4UNO.mjs");
|
|
972
940
|
process.exitCode = await describeAnything(
|
|
973
941
|
toolId,
|
|
974
942
|
{
|
|
@@ -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.421",
|
|
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."
|