deepline 0.3.374 → 0.3.376
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/play-runtime/transient-service-error.ts +56 -4
- package/dist/cli/auth-BTFXJQLT.js +35 -0
- package/dist/cli/{auth-YGCDA4WG.mjs → auth-MLCDUTJY.mjs} +6 -4
- package/dist/cli/{billing-ZXRKPD5D.js → billing-IONI4V7P.js} +73 -73
- package/dist/cli/{billing-3ZLR3CJU.mjs → billing-OUGNDBL4.mjs} +4 -4
- package/dist/cli/{chunk-TZTGK5JQ.js → chunk-34KUUN3Z.js} +52 -51
- package/dist/cli/{chunk-MOBOAZMA.js → chunk-47X6MQ7J.js} +60 -60
- package/dist/cli/{chunk-O7KJYX7R.js → chunk-4V2Q3JO6.js} +15 -15
- package/dist/cli/{chunk-JSK6GUY6.js → chunk-4WINCNNH.js} +13 -9
- package/dist/cli/{chunk-T35LCTC7.js → chunk-5HDB7XXT.js} +235 -235
- package/dist/cli/{chunk-62IBVKWB.mjs → chunk-5HJHTZI6.mjs} +1 -1
- package/dist/cli/{chunk-RT5ICJ5V.js → chunk-6EYTKUDI.js} +2 -2
- package/dist/cli/{chunk-IZVGMVNX.mjs → chunk-7LX2G2PU.mjs} +1 -1
- package/dist/cli/{chunk-NOSIMGZV.js → chunk-7ZZSGV4A.js} +1 -1
- package/dist/cli/{chunk-YPVTQRUM.js → chunk-A6ZTYKYF.js} +33 -7
- package/dist/cli/{chunk-HC5L6KGE.js → chunk-ETUV6RRK.js} +1495 -1495
- package/dist/cli/{chunk-46JCJ7FT.mjs → chunk-FWF24ULX.mjs} +13 -9
- package/dist/cli/{chunk-GT6KGIWV.mjs → chunk-GMRWUGXB.mjs} +3 -3
- package/dist/cli/{chunk-A62HBMHY.mjs → chunk-H7SLESX6.mjs} +1467 -1467
- package/dist/cli/{chunk-VZSVYNZH.mjs → chunk-HDB4GAWY.mjs} +12 -12
- package/dist/cli/{chunk-RXR7A2MX.js → chunk-KHZ6WEVF.js} +26 -26
- package/dist/cli/{chunk-OS7GXARW.mjs → chunk-L6OSOKS6.mjs} +7 -7
- package/dist/cli/{chunk-NNYQ24O5.mjs → chunk-MHRDXS7J.mjs} +1 -1
- package/dist/cli/{chunk-JK547IDB.js → chunk-N6KIEYZV.js} +15 -15
- package/dist/cli/{chunk-3XKAOV74.js → chunk-QSH5CHRI.js} +6 -6
- package/dist/cli/{chunk-OYTPVM2R.mjs → chunk-SPZNLE2D.mjs} +2 -2
- package/dist/cli/{chunk-2DAWTVNN.mjs → chunk-UABI2T3Z.mjs} +2 -2
- package/dist/cli/{chunk-E6BZWURC.mjs → chunk-UE2UHYT3.mjs} +33 -7
- package/dist/cli/{chunk-MQ5UW5AZ.mjs → chunk-V7ZREPSD.mjs} +4 -4
- package/dist/cli/{chunk-SBB27CIJ.mjs → chunk-VL5ERG22.mjs} +2 -2
- package/dist/cli/{chunk-FT6O2ZVJ.mjs → chunk-VNBAOWN3.mjs} +13 -32
- package/dist/cli/{chunk-PCYCNZLR.js → chunk-Y4MXBE3V.js} +8 -8
- package/dist/cli/{chunk-X5V2QTDR.js → chunk-Y5W5IIA4.js} +65 -84
- package/dist/cli/{chunk-YFFH6NDU.mjs → chunk-YXQ7SRL3.mjs} +3 -2
- package/dist/cli/{chunk-53PZA4EP.js → chunk-ZXFGA2VK.js} +8 -8
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-WSRTANXI.js → csv-LPC7BGZ2.js} +12 -12
- package/dist/cli/{csv-VEHHRUG4.mjs → csv-NITSP7QJ.mjs} +3 -3
- package/dist/cli/{db-BH25DX2G.mjs → db-JVDYEXNC.mjs} +4 -4
- package/dist/cli/{db-JXZNMFCE.js → db-WGD54UKM.js} +29 -29
- package/dist/cli/{describe-N2OBGVJM.js → describe-GA7LSJRY.js} +144 -34
- package/dist/cli/{describe-TMBECHTX.mjs → describe-SVMLA6SN.mjs} +130 -20
- package/dist/cli/{executions-Y4HQHYSO.mjs → executions-CXBJDGMU.mjs} +4 -4
- package/dist/cli/{executions-TX5CQF66.js → executions-P47HEI4N.js} +6 -6
- package/dist/cli/{feedback-W7SRXYSP.mjs → feedback-34OSXUQ2.mjs} +3 -3
- package/dist/cli/{feedback-ASEJ5A7I.js → feedback-GWKWE5CU.js} +7 -7
- package/dist/cli/git-MIPISCON.js +23 -0
- package/dist/cli/{git-2W7CZZRC.mjs → git-YAROF6D3.mjs} +4 -4
- package/dist/cli/index.js +106 -91
- package/dist/cli/index.mjs +63 -48
- package/dist/cli/{legacy-noops-TXMPY3P7.mjs → legacy-noops-2G55OKIU.mjs} +4 -4
- package/dist/cli/{legacy-noops-NJYAAGBY.js → legacy-noops-MDZQL3QH.js} +7 -7
- package/dist/cli/{monitors-G4L65QGQ.mjs → monitors-KUGKMABN.mjs} +4 -4
- package/dist/cli/{monitors-YLKTQ57D.js → monitors-X7QYWFSP.js} +85 -85
- package/dist/cli/{org-ENXO2A33.js → org-6XL3IBT2.js} +64 -64
- package/dist/cli/{org-BCHOWKIA.mjs → org-CNBBAN4W.mjs} +4 -4
- package/dist/cli/{play-JBY7HUYN.mjs → play-33ZMPAR5.mjs} +8 -8
- package/dist/cli/play-3CM3P2DS.js +155 -0
- package/dist/cli/{providers-JV2DZG43.mjs → providers-3OSQNFPE.mjs} +4 -4
- package/dist/cli/{providers-GWFX3E7C.js → providers-5POAURDT.js} +7 -7
- package/dist/cli/{quickstart-CASPK7F4.js → quickstart-LQGPDJTS.js} +5 -5
- package/dist/cli/{quickstart-AIXURXZQ.mjs → quickstart-QICTOOW6.mjs} +3 -3
- package/dist/cli/search-A2YLJ4I5.js +26 -0
- package/dist/cli/{search-DYQB7LHK.mjs → search-HBIX4SF4.mjs} +5 -5
- package/dist/cli/{secrets-RQZPIPO5.mjs → secrets-6MRGZPHT.mjs} +4 -4
- package/dist/cli/{secrets-AZQG2E4U.js → secrets-QKPBNQ3E.js} +13 -13
- package/dist/cli/{sessions-3FJJDMBB.mjs → sessions-NODY2OW4.mjs} +4 -4
- package/dist/cli/{sessions-ZY6RBYD4.js → sessions-NP7BLZD2.js} +5 -5
- package/dist/cli/{settings-GXKWNR5V.js → settings-42QHXUB2.js} +74 -74
- package/dist/cli/{settings-UNZDQGSE.mjs → settings-JCEIOTNL.mjs} +7 -7
- package/dist/cli/{setup-PIRXJ2KJ.mjs → setup-3QR4RGMG.mjs} +6 -6
- package/dist/cli/{setup-UURZD4YO.js → setup-5XXWP54Y.js} +41 -41
- package/dist/cli/skills-4JJEAA66.js +28 -0
- package/dist/cli/{skills-B4AQEIAF.mjs → skills-U4OMXLNS.mjs} +4 -4
- package/dist/cli/{tools-UMGQKUSW.mjs → tools-45OROEZQ.mjs} +7 -7
- package/dist/cli/tools-FDCFSA7W.js +40 -0
- package/dist/cli/{update-SFUTMEKL.mjs → update-2XCRMJ4R.mjs} +6 -6
- package/dist/cli/update-VYL4TXIE.js +28 -0
- package/dist/cli/{workflow-CDAJCMT7.js → workflow-47P4LQNC.js} +15 -15
- package/dist/cli/{workflow-ON6XVW36.mjs → workflow-7X3GCOPY.mjs} +5 -5
- package/dist/index.js +8 -8
- package/dist/index.mjs +7 -7
- package/dist/install-integrity.json +76 -78
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-IFXXXZP6.js +0 -33
- package/dist/cli/client-O6IEMURJ.js +0 -20
- package/dist/cli/client-TV254HC4.mjs +0 -20
- package/dist/cli/git-SSSOIQ2L.js +0 -23
- package/dist/cli/play-SSJ3PO4D.js +0 -155
- package/dist/cli/search-N7K6A2YV.js +0 -26
- package/dist/cli/skills-4OUZLKTW.js +0 -28
- package/dist/cli/tools-MIZS5UN6.js +0 -40
- package/dist/cli/update-3CO7LA4M.js +0 -28
|
@@ -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 _chunk47X6MQ7Jjs = require('./chunk-47X6MQ7J.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 = _chunk47X6MQ7Jjs.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,
|
|
@@ -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.376",
|
|
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
|
|
@@ -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.376",
|
|
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,6 +4,17 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
|
|
|
4
4
|
|
|
5
5
|
// src/cli/described.ts
|
|
6
6
|
var SHAPE = "{}";
|
|
7
|
+
var RECORD = "Record<string, ";
|
|
8
|
+
function featureLines(id, features) {
|
|
9
|
+
if (!features.length) return [];
|
|
10
|
+
const width = Math.max(...features.map(({ name }) => name.length));
|
|
11
|
+
return [
|
|
12
|
+
`Features (deepline describe ${id} --feature <name>[=<value>]):`,
|
|
13
|
+
...features.map(
|
|
14
|
+
({ name, summary, defaultValue }) => ` ${name.padEnd(width)} ${summary}${defaultValue ? ` Default: ${defaultValue}.` : ""}`
|
|
15
|
+
)
|
|
16
|
+
];
|
|
17
|
+
}
|
|
7
18
|
function byokLines(byok) {
|
|
8
19
|
if (typeof byok.supported !== "boolean") {
|
|
9
20
|
return ["BYOK: unknown (this server does not report it)"];
|
|
@@ -65,6 +76,13 @@ function schemaType(schema) {
|
|
|
65
76
|
...item.fields ? { fields: item.fields } : {}
|
|
66
77
|
};
|
|
67
78
|
}
|
|
79
|
+
if (isRecord(schema.additionalProperties)) {
|
|
80
|
+
const value = schemaType(schema.additionalProperties);
|
|
81
|
+
return {
|
|
82
|
+
type: `${RECORD}${value.type}>${nullable}`,
|
|
83
|
+
...value.fields ? { fields: value.fields } : {}
|
|
84
|
+
};
|
|
85
|
+
}
|
|
68
86
|
return {
|
|
69
87
|
type: types.filter((type) => type !== "null").join(" | ") + nullable || "unknown"
|
|
70
88
|
};
|
|
@@ -152,9 +170,18 @@ function rateLimitSummary(limits) {
|
|
|
152
170
|
}
|
|
153
171
|
function exampleValue(field) {
|
|
154
172
|
if (field.example !== void 0) return field.example;
|
|
173
|
+
if (field.type.startsWith(RECORD)) {
|
|
174
|
+
const value = field.type.slice(RECORD.length).replace(/>( \| null)?$/, "");
|
|
175
|
+
return { key: exampleValue({ ...field, type: value }) };
|
|
176
|
+
}
|
|
155
177
|
const type = field.type.toLowerCase();
|
|
156
178
|
if (type.includes("[]")) return [];
|
|
157
|
-
if (type.startsWith(SHAPE)
|
|
179
|
+
if (type.startsWith(SHAPE)) {
|
|
180
|
+
return Object.fromEntries(
|
|
181
|
+
(_nullishCoalesce(field.fields, () => ( []))).filter((child) => child.required).map((child) => [child.name, exampleValue(child)])
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
if (type.startsWith("object")) return {};
|
|
158
185
|
if (type.startsWith("integer") || type.startsWith("number")) return 1;
|
|
159
186
|
if (type.startsWith("boolean")) return true;
|
|
160
187
|
return "...";
|
|
@@ -423,6 +450,7 @@ function describedLines(described, view) {
|
|
|
423
450
|
...described.guidance.map((line) => `Guidance: ${line}`),
|
|
424
451
|
...described.rateLimit ? [`Rate limit: ${described.rateLimit}`] : [],
|
|
425
452
|
...described.byok ? byokLines(described.byok) : [],
|
|
453
|
+
...featureLines(described.id, _nullishCoalesce(described.features, () => ( []))),
|
|
426
454
|
...schemaLines(described, {
|
|
427
455
|
full: view.fullSchema,
|
|
428
456
|
secondary: view.verbose,
|
|
@@ -528,6 +556,7 @@ function describedJson(described, view) {
|
|
|
528
556
|
...described.cost ? { cost: described.cost } : {},
|
|
529
557
|
...described.rateLimit ? { rateLimit: described.rateLimit } : {},
|
|
530
558
|
...described.byok ? { byok: described.byok } : {},
|
|
559
|
+
..._optionalChain([described, 'access', _8 => _8.features, 'optionalAccess', _9 => _9.length]) ? { features: described.features } : {},
|
|
531
560
|
...described.guidance.length ? { guidance: described.guidance } : {},
|
|
532
561
|
...blocks,
|
|
533
562
|
...used.size ? { types } : {},
|
|
@@ -595,6 +624,9 @@ function addDescribeOptions(command, options = {}) {
|
|
|
595
624
|
).option(
|
|
596
625
|
"--fields <names>",
|
|
597
626
|
"Show only these fields, comma-separated, plus every required input"
|
|
627
|
+
).option(
|
|
628
|
+
"--feature <name[=value]>",
|
|
629
|
+
"Describe one feature of a tool, such as a model: --feature model=openai/gpt-5.6-luna. A tool lists its features."
|
|
598
630
|
).option(
|
|
599
631
|
"-o, --out <path>",
|
|
600
632
|
"Save the output to this file instead of printing it"
|
|
@@ -605,12 +637,6 @@ function addDescribeOptions(command, options = {}) {
|
|
|
605
637
|
"Print only the schema, with every field, and nothing else"
|
|
606
638
|
);
|
|
607
639
|
}
|
|
608
|
-
if (options.byok !== false) {
|
|
609
|
-
command.option(
|
|
610
|
-
"--byok",
|
|
611
|
-
"For a tool, also show whether it can run on your own provider credentials, and how to connect them (always shown when it must)"
|
|
612
|
-
);
|
|
613
|
-
}
|
|
614
640
|
if (options.json !== false) {
|
|
615
641
|
command.option(
|
|
616
642
|
"--json",
|