deepline 0.3.442 → 0.3.444
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/sdk/src/types.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +27 -6
- package/dist/bundling-sources/shared_libs/play-runtime/gateway-postgres-admission.ts +153 -31
- package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +32 -0
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +34 -21
- package/dist/bundling-sources/shared_libs/product-notifications/default-policy.ts +1 -1
- package/dist/bundling-sources/shared_libs/product-notifications/events.ts +11 -0
- package/dist/cli/auth-KWVGTCBU.js +40 -0
- package/dist/cli/{auth-CUZJMTNS.mjs → auth-XTFEJXCK.mjs} +4 -4
- package/dist/cli/{billing-W2U5VKFI.js → billing-37ATIT7G.js} +73 -73
- package/dist/cli/{billing-SWH3WAMC.mjs → billing-3RZZWNAR.mjs} +4 -4
- package/dist/cli/{chunk-L3JU24MF.js → chunk-2Y3YBOS4.js} +11 -8
- package/dist/cli/{chunk-D7IDBZDR.js → chunk-53HWKCD3.js} +8 -8
- package/dist/cli/{chunk-SZUU2WTZ.js → chunk-7J4VZRO5.js} +1 -1
- package/dist/cli/{chunk-RWK35AB3.js → chunk-7VAQZERC.js} +6 -6
- package/dist/cli/{chunk-L2FWEP4G.mjs → chunk-A5LNESLL.mjs} +4 -4
- package/dist/cli/{chunk-7BH4ZOWE.js → chunk-AFFH22ER.js} +2 -2
- package/dist/cli/{chunk-P4GMPKMW.mjs → chunk-AJ54W32A.mjs} +1 -1
- package/dist/cli/{chunk-KKTRHDLN.mjs → chunk-C4CG252T.mjs} +3 -3
- package/dist/cli/{chunk-AR5YQQF5.mjs → chunk-CGVTZKKZ.mjs} +2 -2
- package/dist/cli/{chunk-2GNX6SCO.mjs → chunk-CO3S56DX.mjs} +7 -2
- package/dist/cli/{chunk-NBFXQCWM.js → chunk-EPK465ZH.js} +8 -8
- package/dist/cli/{chunk-KPKU53YO.mjs → chunk-FKAHVFPJ.mjs} +1 -1
- package/dist/cli/{chunk-D5IOUCJS.js → chunk-FS7TP7F2.js} +52 -52
- package/dist/cli/{chunk-ODWSTSRJ.mjs → chunk-GYLEMRHP.mjs} +5 -5
- package/dist/cli/{chunk-6YWIRIOI.mjs → chunk-HPBZAYSS.mjs} +2 -2
- package/dist/cli/{chunk-DM6Q634K.js → chunk-HTAXXY66.js} +7 -2
- package/dist/cli/{chunk-SKXQZUMX.mjs → chunk-HU6PIQDF.mjs} +2 -2
- package/dist/cli/{chunk-5ZQEDZDQ.mjs → chunk-J6NVL526.mjs} +1 -1
- package/dist/cli/{chunk-GEHYAQSI.mjs → chunk-JD7GAMDF.mjs} +2 -2
- package/dist/cli/{chunk-C4WXHMKN.js → chunk-JMARKXIB.js} +2 -2
- package/dist/cli/{chunk-GEQOPXOS.js → chunk-KNAKCMGJ.js} +17 -17
- package/dist/cli/{chunk-VUYUI35Q.js → chunk-LRNYRGCN.js} +20 -11
- package/dist/cli/{chunk-O765GAOA.mjs → chunk-LS32ZMEI.mjs} +15 -11
- package/dist/cli/{chunk-WY4W6PRD.mjs → chunk-LUGZDR4E.mjs} +3 -3
- package/dist/cli/{chunk-TP4TMEML.mjs → chunk-MBCQHTXT.mjs} +4 -1
- package/dist/cli/{chunk-77DW6WSO.js → chunk-OCYDAMHG.js} +249 -245
- package/dist/cli/{chunk-LCT6MTYQ.js → chunk-OTHCIRIC.js} +50 -50
- package/dist/cli/{chunk-RR2LZVRA.js → chunk-OZT66JBQ.js} +35 -35
- package/dist/cli/{chunk-GXOQRZXG.js → chunk-PP66EATA.js} +2 -2
- package/dist/cli/{chunk-R2QWSSAG.js → chunk-QFXPA2E4.js} +7 -7
- package/dist/cli/{chunk-SOCWFREM.js → chunk-QR3SSTAE.js} +10 -10
- package/dist/cli/{chunk-HYJKJJUM.js → chunk-RNM7JYV6.js} +20 -20
- package/dist/cli/{chunk-VLQWLPQU.mjs → chunk-RVM54NYN.mjs} +1 -1
- package/dist/cli/{chunk-SMM2EKDC.mjs → chunk-VAQYDKRH.mjs} +1 -1
- package/dist/cli/{chunk-7ICMVQL5.mjs → chunk-VHVZVLV7.mjs} +1 -1
- package/dist/cli/{chunk-YGMUSZLV.mjs → chunk-VJUFRXFU.mjs} +3 -3
- package/dist/cli/{chunk-2JHQ24IT.js → chunk-VVJWB47B.js} +16 -16
- package/dist/cli/{chunk-MLJBCS3E.mjs → chunk-W25OALCJ.mjs} +10 -1
- package/dist/cli/{chunk-LXTSVUZN.mjs → chunk-WQPJQEDE.mjs} +1 -1
- package/dist/cli/{chunk-K2DHO3IM.js → chunk-WYWZZZ2Q.js} +26 -26
- package/dist/cli/{chunk-DUUY2JKP.mjs → chunk-X4YO4AXG.mjs} +2 -2
- package/dist/cli/{chunk-2GVUZA6C.js → chunk-YIFQGY5A.js} +4 -4
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-C5Z4OZQN.js → csv-EIJQ6RT5.js} +12 -12
- package/dist/cli/{csv-HSR32EPA.mjs → csv-HA2HOVSY.mjs} +3 -3
- package/dist/cli/{db-AK4ZYYRP.js → db-V3QK6J3D.js} +25 -25
- package/dist/cli/{db-JJGI4J5I.mjs → db-X4YIZUGS.mjs} +4 -4
- package/dist/cli/{describe-JVSD6F2G.js → describe-AM3JLWNF.js} +24 -24
- package/dist/cli/{describe-C35MTKF4.mjs → describe-MSL3BOWA.mjs} +16 -16
- package/dist/cli/describe-core.d.mts +1 -1
- package/dist/cli/describe-core.d.ts +1 -1
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-ZECDB4NA.mjs → executions-EGH4NDY5.mjs} +4 -4
- package/dist/cli/{executions-ZEA7O4PX.js → executions-QFQVDHSS.js} +6 -6
- package/dist/cli/{feedback-WQC4SX75.js → feedback-77DLEOWO.js} +7 -7
- package/dist/cli/{feedback-W7UL4V47.mjs → feedback-RQLOXTWK.mjs} +3 -3
- package/dist/cli/git-OIDNWUNY.js +24 -0
- package/dist/cli/{git-QBB7LEAV.mjs → git-ZRSKT7ML.mjs} +4 -4
- package/dist/cli/index.js +135 -135
- package/dist/cli/index.mjs +37 -37
- package/dist/cli/{legacy-noops-E5NFHPKQ.mjs → legacy-noops-QNQCSKJV.mjs} +4 -4
- package/dist/cli/{legacy-noops-2QPJTEF4.js → legacy-noops-Y3ZMVJSZ.js} +7 -7
- package/dist/cli/{monitors-MWBA46VZ.js → monitors-4RY75IKZ.js} +84 -84
- package/dist/cli/{monitors-E56RLT6N.mjs → monitors-VEFE3ZSZ.mjs} +4 -4
- package/dist/cli/{org-KE2DDK5A.mjs → org-X6ZD3GOS.mjs} +4 -4
- package/dist/cli/{org-HGIWXACI.js → org-YOT76AE4.js} +66 -66
- package/dist/cli/{play-WO5UXBZM.js → play-7XEA7F7Y.js} +296 -296
- package/dist/cli/{play-LGTF4IYG.mjs → play-AXDXVYTK.mjs} +12 -12
- package/dist/cli/{providers-AIJPT54M.js → providers-CS3UWBH5.js} +7 -7
- package/dist/cli/{providers-77KQS23B.mjs → providers-JKYTNJDM.mjs} +4 -4
- package/dist/cli/{quickstart-EFMHLU4T.mjs → quickstart-BHATVOX5.mjs} +3 -3
- package/dist/cli/{quickstart-CZQFBJVH.js → quickstart-R2PI3T74.js} +5 -5
- package/dist/cli/{search-U5KEPKNV.mjs → search-46CJMKQ7.mjs} +5 -5
- package/dist/cli/search-CNDIFIZG.js +30 -0
- package/dist/cli/{secrets-JYHZIRO4.mjs → secrets-I2VZ75XW.mjs} +4 -4
- package/dist/cli/{secrets-CBBR73U4.js → secrets-NCBNWNNK.js} +13 -13
- package/dist/cli/{sessions-XA2EZDXD.js → sessions-SFZPFEXX.js} +5 -5
- package/dist/cli/{sessions-T74U74J7.mjs → sessions-UCMJTFYV.mjs} +4 -4
- package/dist/cli/{settings-C45BH4CU.mjs → settings-AJ2FOCRS.mjs} +8 -8
- package/dist/cli/{settings-ND4437UB.js → settings-N6CUAM55.js} +75 -75
- package/dist/cli/{setup-FQ7JS4HM.js → setup-DB34HKIL.js} +42 -42
- package/dist/cli/{setup-QDH6FAEZ.mjs → setup-LRWULRUP.mjs} +7 -7
- package/dist/cli/skills-Y7CEDG56.js +29 -0
- package/dist/cli/{skills-ZFSBA754.mjs → skills-Z5TF33TE.mjs} +5 -5
- package/dist/cli/{tools-OVGOFORB.mjs → tools-MOWM5ABI.mjs} +15 -15
- package/dist/cli/tools-RQWYUW3K.js +44 -0
- package/dist/cli/{update-BNU7VX5M.mjs → update-4LXOHDJU.mjs} +7 -7
- package/dist/cli/update-XKRUZQSS.js +31 -0
- package/dist/cli/{workflow-FX6GLQ3H.mjs → workflow-IWVOD4N3.mjs} +5 -5
- package/dist/cli/{workflow-JSSXWU3T.js → workflow-RS57FL5I.js} +15 -15
- package/dist/{client-BqQ7Rb11.d.ts → client-CBitBZpr.d.ts} +15 -3
- package/dist/{client-BCmnJaL9.d.mts → client-CTUbBRgg.d.mts} +15 -3
- 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 +90 -90
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- 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-HAO2GLGH.js +0 -40
- package/dist/cli/git-E7CXCBZZ.js +0 -24
- package/dist/cli/search-XMNR7CYI.js +0 -30
- package/dist/cli/skills-CSA2YFW6.js +0 -29
- package/dist/cli/tools-GUALRDI7.js +0 -44
- package/dist/cli/update-K4WJSWDB.js +0 -31
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-J6NVL526.mjs";
|
|
5
5
|
import {
|
|
6
6
|
runSkillsCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VJUFRXFU.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveShellSpawn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LUGZDR4E.mjs";
|
|
11
11
|
import {
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-MBCQHTXT.mjs";
|
|
14
14
|
import {
|
|
15
15
|
autoDetectBaseUrl
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-AJ54W32A.mjs";
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MBCQHTXT.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AJ54W32A.mjs";
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
import {
|
|
@@ -598,8 +598,13 @@ Input:
|
|
|
598
598
|
Output (JSON):
|
|
599
599
|
job_id, status ("completed" or a failure status), toolResponse.rawV2 (the
|
|
600
600
|
complete provider result), output_preview {kind, rowCount, columns, preview,
|
|
601
|
-
listSourcePath}, summary, next, render.sections.
|
|
602
|
-
|
|
601
|
+
listSourcePath}, summary, next, render.sections.
|
|
602
|
+
Failures:
|
|
603
|
+
A failed call prints {ok:false, status:"failed", statusCode, error} and
|
|
604
|
+
exits non-zero. Treat ok:false or a non-zero exit as a failure, never as an
|
|
605
|
+
empty result: record the row as failed and retry it, not as "no match".
|
|
606
|
+
statusCode 429 is a rate or quota refusal; retry after the delay in
|
|
607
|
+
error.tool_error.retryAfterMs.
|
|
603
608
|
]]
|
|
604
609
|
[[mcp:
|
|
605
610
|
Output:
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
formatModelDescription,
|
|
4
4
|
publicToolSchemas,
|
|
5
5
|
toolMetadataJsonForDescribe
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WQPJQEDE.mjs";
|
|
7
7
|
import {
|
|
8
8
|
buildPlayDashboardUrl,
|
|
9
9
|
byokLines,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
examples,
|
|
14
14
|
schemaLines,
|
|
15
15
|
topLevelField
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-W25OALCJ.mjs";
|
|
17
17
|
import {
|
|
18
18
|
DeeplineError
|
|
19
19
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MBCQHTXT.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AJ54W32A.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -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 _chunkFS7TP7F2js = require('./chunk-FS7TP7F2.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 = _chunkFS7TP7F2js.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 _chunkQFXPA2E4js = require('./chunk-QFXPA2E4.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -13,7 +13,7 @@ var _chunkR2QWSSAGjs = require('./chunk-R2QWSSAG.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkLRNYRGCNjs = require('./chunk-LRNYRGCN.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
@@ -31,13 +31,13 @@ var VIEWS = {
|
|
|
31
31
|
details: model,
|
|
32
32
|
lines: [
|
|
33
33
|
...unlisted,
|
|
34
|
-
...
|
|
34
|
+
..._chunkQFXPA2E4js.formatModelDescription.call(void 0, model).trimEnd().split("\n")
|
|
35
35
|
]
|
|
36
36
|
};
|
|
37
37
|
},
|
|
38
38
|
byok: async (_value, tool) => ({
|
|
39
39
|
details: _nullishCoalesce(tool.byok, () => ( {})),
|
|
40
|
-
lines:
|
|
40
|
+
lines: _chunkLRNYRGCNjs.byokLines.call(void 0, _nullishCoalesce(tool.byok, () => ( {})))
|
|
41
41
|
})
|
|
42
42
|
};
|
|
43
43
|
var isFeatureView = (value) => typeof value === "string" && Object.hasOwn(VIEWS, value);
|
|
@@ -113,7 +113,7 @@ async function describeName(name, options, lookups) {
|
|
|
113
113
|
const record2 = await lookups.play(reference);
|
|
114
114
|
if (!record2) return null;
|
|
115
115
|
return {
|
|
116
|
-
described:
|
|
116
|
+
described: _chunkLRNYRGCNjs.describedPlay.call(void 0, record2),
|
|
117
117
|
record: { ...record2 },
|
|
118
118
|
schemas: {
|
|
119
119
|
inputSchema: _nullishCoalesce(record2.inputSchema, () => ( null)),
|
|
@@ -128,18 +128,18 @@ async function describeName(name, options, lookups) {
|
|
|
128
128
|
const features = toolFeatures(record2);
|
|
129
129
|
return {
|
|
130
130
|
described: {
|
|
131
|
-
...
|
|
131
|
+
..._chunkQFXPA2E4js.describedTool.call(void 0, record2, name),
|
|
132
132
|
// Shown when the tool runs only on your own credentials; otherwise
|
|
133
133
|
// it is a feature, described with --feature byok.
|
|
134
134
|
..._optionalChain([byok, 'optionalAccess', _3 => _3.required]) === true ? { byok } : {},
|
|
135
135
|
...features.length ? { features: features.map(({ view: _view, ...feature }) => feature) } : {}
|
|
136
136
|
},
|
|
137
|
-
record:
|
|
137
|
+
record: _chunkQFXPA2E4js.toolMetadataJsonForDescribe.call(void 0,
|
|
138
138
|
record2,
|
|
139
139
|
name,
|
|
140
140
|
lookups.seedStarterScript
|
|
141
141
|
),
|
|
142
|
-
schemas:
|
|
142
|
+
schemas: _chunkQFXPA2E4js.publicToolSchemas.call(void 0, record2),
|
|
143
143
|
feature: (featureName, value) => {
|
|
144
144
|
const feature = features.find(({ name: name2 }) => name2 === featureName);
|
|
145
145
|
return feature ? describeFeature(record2, feature, value, {
|
|
@@ -170,7 +170,7 @@ async function describeName(name, options, lookups) {
|
|
|
170
170
|
const note = shadows ? `Showing your workspace play "${name}". It has the same name as a Deepline ${shadows.kind.replace("_", " ")}; see that one with: ${shadows.describeCommand}` : null;
|
|
171
171
|
const verbose = options.verbose === true;
|
|
172
172
|
const isPlay = described.kind === "prebuilt_play" || described.kind === "custom_play";
|
|
173
|
-
const dashboardUrl = isPlay ?
|
|
173
|
+
const dashboardUrl = isPlay ? _chunkLRNYRGCNjs.buildPlayDashboardUrl.call(void 0, lookups.baseUrl, described.id) : null;
|
|
174
174
|
if (options.webUrl) {
|
|
175
175
|
if (!dashboardUrl) {
|
|
176
176
|
return {
|
|
@@ -234,7 +234,7 @@ async function describeName(name, options, lookups) {
|
|
|
234
234
|
},
|
|
235
235
|
lines: [
|
|
236
236
|
`${described.id} [${described.kind.replace("_", " ")}]`,
|
|
237
|
-
...
|
|
237
|
+
..._chunkLRNYRGCNjs.schemaLines.call(void 0, described, {
|
|
238
238
|
full: true,
|
|
239
239
|
secondary: true,
|
|
240
240
|
...fields.length ? { fields } : {}
|
|
@@ -243,17 +243,17 @@ async function describeName(name, options, lookups) {
|
|
|
243
243
|
} : {
|
|
244
244
|
envelope: {
|
|
245
245
|
...summary,
|
|
246
|
-
inputs: inputs.map(
|
|
247
|
-
outputs: outputs.map(
|
|
248
|
-
...described.rowInputs ? { rowInputs: described.rowInputs.map(
|
|
249
|
-
...described.rowOutputs ? { rowOutputs: described.rowOutputs.map(
|
|
250
|
-
runExamples:
|
|
246
|
+
inputs: inputs.map(_chunkLRNYRGCNjs.topLevelField),
|
|
247
|
+
outputs: outputs.map(_chunkLRNYRGCNjs.topLevelField),
|
|
248
|
+
...described.rowInputs ? { rowInputs: described.rowInputs.map(_chunkLRNYRGCNjs.topLevelField) } : {},
|
|
249
|
+
...described.rowOutputs ? { rowOutputs: described.rowOutputs.map(_chunkLRNYRGCNjs.topLevelField) } : {},
|
|
250
|
+
runExamples: _chunkLRNYRGCNjs.examples.call(void 0, described, { verbose }),
|
|
251
251
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
252
252
|
...shadows ? { shadows, note } : {}
|
|
253
253
|
},
|
|
254
254
|
lines: [
|
|
255
255
|
...note ? [`Note: ${note}`, ""] : [],
|
|
256
|
-
...
|
|
256
|
+
..._chunkLRNYRGCNjs.describedLines.call(void 0, described, {
|
|
257
257
|
cli: shown && (!named || options.cliExample === true),
|
|
258
258
|
play: shown && (!named || options.playExample === true),
|
|
259
259
|
explain: named,
|
|
@@ -270,7 +270,7 @@ async function describeName(name, options, lookups) {
|
|
|
270
270
|
// its value stands, so callers of the older commands read what they did.
|
|
271
271
|
{ ...view.envelope, ...record }
|
|
272
272
|
) : {
|
|
273
|
-
...
|
|
273
|
+
..._chunkLRNYRGCNjs.describedJson.call(void 0, described, {
|
|
274
274
|
secondary: verbose || fields.length > 0,
|
|
275
275
|
verbose
|
|
276
276
|
}),
|
|
@@ -165,11 +165,19 @@ function rateLimitSummary(limits) {
|
|
|
165
165
|
const { requestsPerWindow: requests, windowMs } = limit;
|
|
166
166
|
if (typeof requests !== "number" || typeof windowMs !== "number") return [];
|
|
167
167
|
return [
|
|
168
|
-
`${requests} requests/${_nullishCoalesce(windows[windowMs], () => ( `${windowMs / 1e3}s`))}`
|
|
168
|
+
`${requests} requests/${_nullishCoalesce(windows[windowMs], () => ( `${windowMs / 1e3}s`))}${rateLimitQualifier(limit)}`
|
|
169
169
|
];
|
|
170
170
|
});
|
|
171
171
|
return parts.length ? parts.join(", ") : void 0;
|
|
172
172
|
}
|
|
173
|
+
function rateLimitQualifier(limit) {
|
|
174
|
+
const sources = Array.isArray(limit.credentialSources) ? limit.credentialSources : null;
|
|
175
|
+
const notes = [
|
|
176
|
+
_optionalChain([sources, 'optionalAccess', _ => _.length]) === 1 && sources[0] === "env" ? "on Deepline's managed key" : null,
|
|
177
|
+
limit.resetsAt === "utc_midnight" ? "resets 00:00 UTC" : null
|
|
178
|
+
].filter(Boolean);
|
|
179
|
+
return notes.length ? ` ${notes.join(", ")}` : "";
|
|
180
|
+
}
|
|
173
181
|
function exampleValue(field) {
|
|
174
182
|
if (field.example !== void 0) return field.example;
|
|
175
183
|
if (field.type.startsWith(RECORD)) {
|
|
@@ -243,7 +251,7 @@ function namedShapes(roots) {
|
|
|
243
251
|
}
|
|
244
252
|
function withRowInputs(described) {
|
|
245
253
|
const columns = described.rowInputs;
|
|
246
|
-
if (!_optionalChain([columns, 'optionalAccess',
|
|
254
|
+
if (!_optionalChain([columns, 'optionalAccess', _2 => _2.length])) return described.inputs;
|
|
247
255
|
const join = (...notes) => notes.filter(Boolean).join(" - ");
|
|
248
256
|
const first = columns[0].name;
|
|
249
257
|
return described.inputs.map((field) => {
|
|
@@ -278,7 +286,7 @@ function withRowInputs(described) {
|
|
|
278
286
|
}
|
|
279
287
|
function withRowOutputs(described) {
|
|
280
288
|
const columns = described.rowOutputs;
|
|
281
|
-
if (!_optionalChain([columns, 'optionalAccess',
|
|
289
|
+
if (!_optionalChain([columns, 'optionalAccess', _3 => _3.length])) return described.outputs;
|
|
282
290
|
const typed = (field) => ({
|
|
283
291
|
...field,
|
|
284
292
|
type: `PlayDataset<${SHAPE}>`,
|
|
@@ -422,7 +430,7 @@ function schemaLines(described, view) {
|
|
|
422
430
|
];
|
|
423
431
|
}
|
|
424
432
|
if (view.full) return schemaBlocks(described, Infinity, true);
|
|
425
|
-
const raw = _optionalChain([described, 'access',
|
|
433
|
+
const raw = _optionalChain([described, 'access', _4 => _4.rawResponse, 'optionalAccess', _5 => _5.length]) ? [
|
|
426
434
|
"",
|
|
427
435
|
`Other response fields (${described.rawResponse.map((field) => field.name).join(", ")}) are in result.toolResponse.rawV2. --full-schema lists them.`
|
|
428
436
|
] : [];
|
|
@@ -566,15 +574,15 @@ function jsonFields(fields, options) {
|
|
|
566
574
|
return [
|
|
567
575
|
field.name,
|
|
568
576
|
{
|
|
569
|
-
type: field.type.replace(SHAPE, _nullishCoalesce(_optionalChain([shape, 'optionalAccess',
|
|
577
|
+
type: field.type.replace(SHAPE, _nullishCoalesce(_optionalChain([shape, 'optionalAccess', _6 => _6.name]), () => ( "object"))),
|
|
570
578
|
...options.input ? { required: field.required } : {},
|
|
571
579
|
...field.means ? { means: field.means } : {},
|
|
572
580
|
...field.example !== void 0 ? { example: field.example } : {},
|
|
573
|
-
...field.description && field.description !== _optionalChain([shape, 'optionalAccess',
|
|
581
|
+
...field.description && field.description !== _optionalChain([shape, 'optionalAccess', _7 => _7.description]) ? { description: field.description } : {},
|
|
574
582
|
...field.secondary ? { secondary: true } : {},
|
|
575
583
|
...field.read ? { read: field.read } : {},
|
|
576
584
|
...field.in ? { in: field.in } : {},
|
|
577
|
-
..._optionalChain([field, 'access',
|
|
585
|
+
..._optionalChain([field, 'access', _8 => _8.paths, 'optionalAccess', _9 => _9.length]) ? { paths: field.paths } : {},
|
|
578
586
|
...field.fields && !shape ? { fields: jsonFields(field.fields, options) } : {}
|
|
579
587
|
}
|
|
580
588
|
];
|
|
@@ -595,7 +603,7 @@ function describedJson(described, view) {
|
|
|
595
603
|
const used = /* @__PURE__ */ new Set();
|
|
596
604
|
const blocks = Object.fromEntries(
|
|
597
605
|
sections.flatMap(
|
|
598
|
-
([key, fields, input]) => _optionalChain([fields, 'optionalAccess',
|
|
606
|
+
([key, fields, input]) => _optionalChain([fields, 'optionalAccess', _10 => _10.length]) ? [
|
|
599
607
|
[
|
|
600
608
|
key,
|
|
601
609
|
jsonFields(fields, {
|
|
@@ -629,7 +637,7 @@ function describedJson(described, view) {
|
|
|
629
637
|
...described.cost ? { cost: described.cost } : {},
|
|
630
638
|
...described.rateLimit ? { rateLimit: described.rateLimit } : {},
|
|
631
639
|
...described.byok ? { byok: described.byok } : {},
|
|
632
|
-
..._optionalChain([described, 'access',
|
|
640
|
+
..._optionalChain([described, 'access', _11 => _11.features, 'optionalAccess', _12 => _12.length]) ? { features: described.features } : {},
|
|
633
641
|
...described.guidance.length ? { guidance: described.guidance } : {},
|
|
634
642
|
...blocks,
|
|
635
643
|
...used.size ? { types } : {},
|
|
@@ -697,7 +705,7 @@ function describedPlay(play) {
|
|
|
697
705
|
...starter ? { source: starter.command } : {},
|
|
698
706
|
...exclusive ? { exclusive } : {},
|
|
699
707
|
// A prebuilt's cost is what its recent runs were charged; there is no rate.
|
|
700
|
-
..._optionalChain([play, 'access',
|
|
708
|
+
..._optionalChain([play, 'access', _13 => _13.observedCost, 'optionalAccess', _14 => _14.displayText]) ? { cost: play.observedCost.displayText } : {}
|
|
701
709
|
};
|
|
702
710
|
}
|
|
703
711
|
|
|
@@ -714,4 +722,5 @@ function describedPlay(play) {
|
|
|
714
722
|
|
|
715
723
|
|
|
716
724
|
|
|
717
|
-
|
|
725
|
+
|
|
726
|
+
exports.byokLines = byokLines; exports.SCHEMA_LINE_LIMIT = SCHEMA_LINE_LIMIT; exports.schemaField = schemaField; exports.schemaFields = schemaFields; exports.rateLimitSummary = rateLimitSummary; exports.rateLimitQualifier = rateLimitQualifier; exports.schemaLines = schemaLines; exports.examples = examples; exports.describedLines = describedLines; exports.topLevelField = topLevelField; exports.describedJson = describedJson; exports.buildPlayDashboardUrl = buildPlayDashboardUrl; exports.describedPlay = describedPlay;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addDescribeOptions,
|
|
3
3
|
recordApiResponse
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FKAHVFPJ.mjs";
|
|
5
5
|
import {
|
|
6
6
|
recentSearchRef,
|
|
7
7
|
registerDeprecatedSearchCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-C4CG252T.mjs";
|
|
9
9
|
import {
|
|
10
10
|
arrayField,
|
|
11
11
|
formatModelDescription,
|
|
@@ -24,7 +24,10 @@ import {
|
|
|
24
24
|
toolInputFieldsForDisplay,
|
|
25
25
|
toolMetadataJsonForDescribe,
|
|
26
26
|
toolOutputFieldsForDisplay
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-WQPJQEDE.mjs";
|
|
28
|
+
import {
|
|
29
|
+
rateLimitQualifier
|
|
30
|
+
} from "./chunk-W25OALCJ.mjs";
|
|
28
31
|
import {
|
|
29
32
|
shellQuote
|
|
30
33
|
} from "./chunk-OVDNJAJN.mjs";
|
|
@@ -45,7 +48,7 @@ import {
|
|
|
45
48
|
import {
|
|
46
49
|
DeeplineClient,
|
|
47
50
|
validateExecutionIdempotencyKey
|
|
48
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-VHVZVLV7.mjs";
|
|
49
52
|
import {
|
|
50
53
|
stableStringify
|
|
51
54
|
} from "./chunk-UBKA33KY.mjs";
|
|
@@ -55,18 +58,18 @@ import {
|
|
|
55
58
|
maybeAutoUpdateAndRelaunch,
|
|
56
59
|
registerCompatibilityCatalog,
|
|
57
60
|
runToolExecuteStage
|
|
58
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-A5LNESLL.mjs";
|
|
59
62
|
import {
|
|
60
63
|
isCliTraceEnabled,
|
|
61
64
|
recordCliTrace,
|
|
62
65
|
resolveCliMaintenancePolicy
|
|
63
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-VAQYDKRH.mjs";
|
|
64
67
|
import {
|
|
65
68
|
checkSdkCompatibility,
|
|
66
69
|
enforceSdkCompatibilityResponse,
|
|
67
70
|
flushDeferredSkillsSyncNotices,
|
|
68
71
|
syncSdkSkillsIfNeeded
|
|
69
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-LUGZDR4E.mjs";
|
|
70
73
|
import {
|
|
71
74
|
printCommandEnvelope,
|
|
72
75
|
printCompactJson,
|
|
@@ -74,12 +77,12 @@ import {
|
|
|
74
77
|
printJsonError,
|
|
75
78
|
renderCommandEnvelopeText,
|
|
76
79
|
shouldEmitJson
|
|
77
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-MBCQHTXT.mjs";
|
|
78
81
|
import {
|
|
79
82
|
readSdkSkillsLocalVersion,
|
|
80
83
|
resolveConfig,
|
|
81
84
|
sdkCliStateDirPath
|
|
82
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-AJ54W32A.mjs";
|
|
83
86
|
import {
|
|
84
87
|
DeeplineError
|
|
85
88
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -968,7 +971,7 @@ Examples:
|
|
|
968
971
|
process.exitCode = await narrowView();
|
|
969
972
|
return;
|
|
970
973
|
}
|
|
971
|
-
const { describeAnything } = await import("./describe-
|
|
974
|
+
const { describeAnything } = await import("./describe-MSL3BOWA.mjs");
|
|
972
975
|
process.exitCode = await describeAnything(
|
|
973
976
|
toolId,
|
|
974
977
|
{
|
|
@@ -1862,7 +1865,7 @@ function printToolExecutionHints(value) {
|
|
|
1862
1865
|
);
|
|
1863
1866
|
const concurrencyText = explicitMaxConcurrency === null ? "no explicit concurrency limit" : `explicit concurrency limit ${explicitMaxConcurrency}`;
|
|
1864
1867
|
console.log(
|
|
1865
|
-
`- ${requests} requests per ${formatRateWindow(windowMs)} (${usageText}; ${concurrencyText})`
|
|
1868
|
+
`- ${requests} requests per ${formatRateWindow(windowMs)}${rateLimitQualifier(limit)} (${usageText}; ${concurrencyText})`
|
|
1866
1869
|
);
|
|
1867
1870
|
}
|
|
1868
1871
|
}
|
|
@@ -1887,6 +1890,7 @@ function formatRateWindow(windowMs) {
|
|
|
1887
1890
|
if (windowMs === 1e3) return "second";
|
|
1888
1891
|
if (windowMs === 6e4) return "minute";
|
|
1889
1892
|
if (windowMs === 36e5) return "hour";
|
|
1893
|
+
if (windowMs === 864e5) return "day";
|
|
1890
1894
|
return `${windowMs}ms`;
|
|
1891
1895
|
}
|
|
1892
1896
|
function samplePayload(samples, key) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isJsonOutputMode
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MBCQHTXT.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_SKILL_AGENTS,
|
|
6
6
|
KNOWN_SKILL_AGENTS,
|
|
@@ -17,13 +17,13 @@ import {
|
|
|
17
17
|
sdkCliStateDirPath,
|
|
18
18
|
skillsAgentPathSegment,
|
|
19
19
|
writeSdkSkillsLocalVersion
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-AJ54W32A.mjs";
|
|
21
21
|
import {
|
|
22
22
|
DeeplineError
|
|
23
23
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_RELEASE
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-RVM54NYN.mjs";
|
|
27
27
|
|
|
28
28
|
// src/compat.ts
|
|
29
29
|
import { randomUUID } from "crypto";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
detectAgentRuntime,
|
|
4
4
|
resolveCliCommandContext,
|
|
5
5
|
resolveConfig
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AJ54W32A.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DeeplineError,
|
|
9
9
|
serializeToolExecutionFailure
|
|
@@ -949,8 +949,11 @@ function errorToJsonPayload(error) {
|
|
|
949
949
|
if (typeof maybeRecord?.cause === "string") {
|
|
950
950
|
details.cause = maybeRecord.cause;
|
|
951
951
|
}
|
|
952
|
+
const statusCode = typeof maybeRecord?.statusCode === "number" ? maybeRecord.statusCode : typeof maybeRecord?.status === "number" ? maybeRecord.status : toolFailure?.statusCode ?? void 0;
|
|
952
953
|
return {
|
|
953
954
|
ok: false,
|
|
955
|
+
status: "failed",
|
|
956
|
+
...typeof statusCode === "number" ? { statusCode } : {},
|
|
954
957
|
...exitCode !== void 0 ? { exitCode } : {},
|
|
955
958
|
error: {
|
|
956
959
|
message,
|