deepline 0.3.488 → 0.3.490
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 +7 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/direct-admission-deadline.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +10 -0
- package/dist/cli/auth-AW34RGV5.js +43 -0
- package/dist/cli/{auth-3BTWD5NT.mjs → auth-RL6LOZGC.mjs} +5 -5
- package/dist/cli/{billing-QROEPF5K.mjs → billing-33THO76F.mjs} +6 -6
- package/dist/cli/{billing-CHCBRT2F.js → billing-LIDDSOSY.js} +79 -79
- package/dist/cli/{chunk-C5M43H4F.mjs → chunk-27IBWHR5.mjs} +4 -4
- package/dist/cli/{chunk-NSAI3D4H.mjs → chunk-2HYJU4LJ.mjs} +1 -1
- package/dist/cli/{chunk-TZSRQYKH.mjs → chunk-3M5VPIRL.mjs} +2 -2
- package/dist/cli/{chunk-IAYSWZDJ.js → chunk-4IP5MLWU.js} +1 -1
- package/dist/cli/{chunk-6V7KVRR5.js → chunk-4OLXMJ2L.js} +13 -2
- package/dist/cli/{chunk-XGQBBMSP.js → chunk-63TNO23X.js} +15 -15
- package/dist/cli/{chunk-SV2VOJF4.js → chunk-6TTPAGNX.js} +7 -7
- package/dist/cli/{chunk-HDUDLOGI.mjs → chunk-7W53Y4VH.mjs} +5 -5
- package/dist/cli/{chunk-KQKPDXIZ.mjs → chunk-A3D677RX.mjs} +1 -1
- package/dist/cli/{chunk-IL5AF6AR.mjs → chunk-A7ZMG2QZ.mjs} +24 -12
- package/dist/cli/{chunk-ZYJBIZLV.js → chunk-B7MPY7WH.js} +6 -6
- package/dist/cli/{chunk-XMBIESQ7.mjs → chunk-BL5Q5JY7.mjs} +5 -5
- package/dist/cli/{chunk-3T6HNVZN.mjs → chunk-CB7IFKXN.mjs} +2 -2
- package/dist/cli/{chunk-J7EENGKJ.mjs → chunk-CGDUFVNE.mjs} +2 -2
- package/dist/cli/{chunk-6RZ2UVFW.mjs → chunk-CSSOP7XG.mjs} +2 -2
- package/dist/cli/{chunk-JVHOS3K3.mjs → chunk-DEJIN4DF.mjs} +1 -1
- package/dist/cli/{chunk-4BQEGVNC.js → chunk-E26477MJ.js} +7 -7
- package/dist/cli/{chunk-WER5FPHI.js → chunk-EPQZ42PY.js} +6 -1
- package/dist/cli/{chunk-TMIWNHL4.js → chunk-FDYCUA7A.js} +16 -16
- package/dist/cli/{chunk-SE252VCN.js → chunk-FPYESYBO.js} +4 -4
- package/dist/cli/{chunk-INW22YP7.mjs → chunk-FTXIJTV2.mjs} +3 -5
- package/dist/cli/{chunk-MBHPAZEA.js → chunk-HHGAY2A4.js} +53 -53
- package/dist/cli/{chunk-CSBMKHTV.js → chunk-HHTVRICE.js} +17 -17
- package/dist/cli/{chunk-P2IEBDEG.js → chunk-IFGBL3US.js} +7 -7
- package/dist/cli/{chunk-GXZK35XL.mjs → chunk-J5HMAZ34.mjs} +2 -2
- package/dist/cli/{chunk-N7LKHN5C.mjs → chunk-JC2M6XG2.mjs} +1 -1
- package/dist/cli/{chunk-CVBMI2HY.mjs → chunk-JSYCPTG6.mjs} +3 -3
- package/dist/cli/{chunk-QT2SPITP.mjs → chunk-JTYKW3UL.mjs} +2 -2
- package/dist/cli/{chunk-73H5KG5T.js → chunk-L7QSZAF6.js} +9 -9
- package/dist/cli/{chunk-2LNTFODA.mjs → chunk-LQIKW55V.mjs} +2 -2
- package/dist/cli/{chunk-KI74RLCP.js → chunk-LZ37B62K.js} +7 -7
- package/dist/cli/{chunk-TJRGYEDA.mjs → chunk-MBQZMHE6.mjs} +18 -4
- package/dist/cli/{chunk-F4W4J6BT.mjs → chunk-MDKAPUN2.mjs} +2 -2
- package/dist/cli/{chunk-IS24BRFV.mjs → chunk-MEYQOZPF.mjs} +1 -1
- package/dist/cli/{chunk-EMPGZXFN.mjs → chunk-NRM5OWH2.mjs} +6 -6
- package/dist/cli/{chunk-OKAZHDYN.js → chunk-O3K22ZC7.js} +24 -12
- package/dist/cli/{chunk-UUKMZK23.mjs → chunk-OFCP66VS.mjs} +2 -2
- package/dist/cli/{chunk-QRBDW3X6.mjs → chunk-PIENQTDE.mjs} +6 -1
- package/dist/cli/{chunk-4BVJ6YSN.js → chunk-PVMN4OE2.js} +5 -5
- package/dist/cli/{chunk-ZJVQXD7M.js → chunk-QC6QUFKY.js} +5 -5
- package/dist/cli/{chunk-AYJVYXES.mjs → chunk-QWJZSPCV.mjs} +12 -12
- package/dist/cli/{chunk-LBFU3VRY.js → chunk-QZPJWFGD.js} +26 -26
- package/dist/cli/{chunk-6JTJWIXZ.js → chunk-SGG3TERP.js} +3 -3
- package/dist/cli/{chunk-KV5MCYQE.js → chunk-TCBYQX5N.js} +52 -38
- package/dist/cli/{chunk-Q2EIZKVX.mjs → chunk-TKLDKIJU.mjs} +12 -1
- package/dist/cli/{chunk-IXQQWEYK.mjs → chunk-TVZJ6XWM.mjs} +1 -1
- package/dist/cli/{chunk-G52LFTXC.js → chunk-UQXHBCHU.js} +2 -2
- package/dist/cli/{chunk-OWYXDSU5.js → chunk-UTKNSD6T.js} +21 -21
- package/dist/cli/{chunk-HO4PLJHS.mjs → chunk-V47SUOAE.mjs} +4 -4
- package/dist/cli/{chunk-GBQLNEB7.js → chunk-WNVZV6VK.js} +53 -53
- package/dist/cli/{chunk-2OHR2B5U.js → chunk-XSGJKXMP.js} +2 -2
- package/dist/cli/{chunk-QWEQV3R3.js → chunk-Y2KHSQEF.js} +8 -8
- package/dist/cli/{chunk-LOX3BISD.js → chunk-YNWET57Z.js} +9 -11
- package/dist/cli/{chunk-QHMEOHN4.js → chunk-YPUDIEZX.js} +261 -261
- package/dist/cli/{chunk-BU2MZXN6.js → chunk-YYN2O43C.js} +3 -3
- package/dist/cli/{chunk-TKK4TR7B.mjs → chunk-Z7W6VJFN.mjs} +1 -1
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-WQ5IPBPJ.js → csv-PLJNQPLE.js} +13 -13
- package/dist/cli/{csv-74EFMI3L.mjs → csv-TELSH4ND.mjs} +4 -4
- package/dist/cli/{db-JMTHP7J2.mjs → db-GISAU665.mjs} +6 -6
- package/dist/cli/{db-LUU3EFBM.js → db-QDJ6GWF5.js} +27 -27
- package/dist/cli/{describe-PKBLERG6.mjs → describe-F4K54VXB.mjs} +21 -20
- package/dist/cli/describe-R6NVISAS.js +50 -0
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-SM32REFN.mjs → executions-3QE7MRBG.mjs} +6 -6
- package/dist/cli/{executions-LVMXG5GY.js → executions-VKUTKQNN.js} +8 -8
- package/dist/cli/{feedback-AECGZDEG.js → feedback-HH5AUYLA.js} +8 -8
- package/dist/cli/{feedback-V7PEANAR.mjs → feedback-JU7PJGDL.mjs} +4 -4
- package/dist/cli/getting-started.d.mts +17 -2
- package/dist/cli/getting-started.d.ts +17 -2
- package/dist/cli/getting-started.js +8 -2
- package/dist/cli/getting-started.mjs +9 -3
- package/dist/cli/{git-BDX3U6NA.mjs → git-ACXH7K7D.mjs} +5 -5
- package/dist/cli/git-CXRU4CRW.js +25 -0
- package/dist/cli/index.js +142 -141
- package/dist/cli/index.mjs +42 -41
- package/dist/cli/{legacy-noops-W6E7TXE4.mjs → legacy-noops-IOAZ3YJ2.mjs} +5 -5
- package/dist/cli/{legacy-noops-JRGBSX4O.js → legacy-noops-NRPYJZOP.js} +8 -8
- package/dist/cli/{monitors-JT6QZITH.js → monitors-4SKMAAMR.js} +91 -91
- package/dist/cli/{monitors-RKWUYNER.mjs → monitors-PMQUOIOI.mjs} +7 -7
- package/dist/cli/{org-PALGDO5U.js → org-WJM7X6WB.js} +72 -72
- package/dist/cli/{org-5XOHJY6O.mjs → org-XNT3W6OU.mjs} +6 -6
- package/dist/cli/{pages-UKICE2RA.js → pages-WXY4GGZG.js} +17 -17
- package/dist/cli/{pages-Q5MG4J6F.mjs → pages-Y3JKBS4B.mjs} +6 -6
- package/dist/cli/{play-MR324ZTD.js → play-NKSRPIAV.js} +321 -321
- package/dist/cli/{play-PY5AT3JQ.mjs → play-NPWWAQYK.mjs} +18 -18
- package/dist/cli/{providers-V3YMXJFB.mjs → providers-CUIKFE6F.mjs} +6 -6
- package/dist/cli/{providers-MGBLIMRF.js → providers-VNPJHXK5.js} +9 -9
- package/dist/cli/{quickstart-LYQ5N6VI.js → quickstart-6OTS2HDR.js} +13 -13
- package/dist/cli/{quickstart-MMETU4RG.mjs → quickstart-PJYPKFZI.mjs} +5 -5
- package/dist/cli/{run-A5CNTDYQ.js → run-2DLJBYFC.js} +48 -152
- package/dist/cli/{run-PZ7CWOJJ.mjs → run-AGX3EUK4.mjs} +33 -137
- package/dist/cli/{search-IRDHHP7N.mjs → search-DVIEJ2UQ.mjs} +7 -7
- package/dist/cli/search-Y7VFEFJJ.js +32 -0
- package/dist/cli/{search-output-N7RQNWBW.js → search-output-PFLNDCA7.js} +6 -6
- package/dist/cli/{search-output-7UAKSD7H.mjs → search-output-TXSIPSPS.mjs} +4 -4
- package/dist/cli/{secrets-XJGQ3BLJ.js → secrets-O5OQTFVD.js} +15 -15
- package/dist/cli/{secrets-XN4UDYNN.mjs → secrets-OAGXFXEX.mjs} +6 -6
- package/dist/cli/{sessions-324MFEFP.mjs → sessions-GBR5PGB6.mjs} +5 -5
- package/dist/cli/{sessions-4UUVDBAO.js → sessions-WT7P3F73.js} +6 -6
- package/dist/cli/{settings-4EZEUQOS.mjs → settings-KGNBIFOU.mjs} +12 -11
- package/dist/cli/{settings-REBKKLBF.js → settings-U7UNDUDB.js} +79 -78
- package/dist/cli/{setup-ELPVMUCK.js → setup-4MZNDFKM.js} +60 -55
- package/dist/cli/{setup-G3VQ5NCJ.mjs → setup-PYWSU4YM.mjs} +17 -12
- package/dist/cli/{skills-RLUDQJWB.mjs → skills-7Y6OBM7Z.mjs} +10 -7
- package/dist/cli/skills-BQC2323O.js +36 -0
- package/dist/cli/tools-732SZ4KV.js +57 -0
- package/dist/cli/{tools-MRAFK3MJ.mjs → tools-O7L435CR.mjs} +19 -18
- package/dist/cli/update-PCYIUORM.js +34 -0
- package/dist/cli/{update-WRTYTP3Y.mjs → update-SPHIBY5L.mjs} +10 -9
- package/dist/cli/{workflow-LHS32WIT.js → workflow-GTDKPIEV.js} +17 -17
- package/dist/cli/{workflow-ALJ3HLW4.mjs → workflow-ZRYO5J3K.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +108 -108
- package/dist/release.d.mts +5 -1
- package/dist/release.d.ts +5 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-F3OYGJ7T.js +0 -43
- package/dist/cli/describe-35UK3DNO.js +0 -49
- package/dist/cli/git-3KBELBUI.js +0 -25
- package/dist/cli/search-4SG3UMIQ.js +0 -32
- package/dist/cli/skills-X5FY5KJM.js +0 -33
- package/dist/cli/tools-PCRPD5XD.js +0 -56
- package/dist/cli/update-Q4ND4F7E.js +0 -33
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkYPUDIEZXjs = require('./chunk-YPUDIEZX.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkLZ37B62Kjs = require('./chunk-LZ37B62K.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkHHTVRICEjs = require('./chunk-HHTVRICE.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk4IP5MLWUjs = require('./chunk-4IP5MLWU.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkPVMN4OE2js = require('./chunk-PVMN4OE2.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkE26477MJjs = require('./chunk-E26477MJ.js');
|
|
21
21
|
|
|
22
22
|
// src/cli/commands/describe.ts
|
|
23
23
|
var _fs = require('fs');
|
|
@@ -26,16 +26,16 @@ function nothingNamed(name) {
|
|
|
26
26
|
return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
|
|
27
27
|
}
|
|
28
28
|
function findNamed2(name, options) {
|
|
29
|
-
return
|
|
29
|
+
return _chunkHHTVRICEjs.findNamed.call(void 0, name, options, _chunkHHTVRICEjs.describeLookupsFor.call(void 0, new (0, _chunkPVMN4OE2js.DeeplineClient)()));
|
|
30
30
|
}
|
|
31
31
|
async function describeAnything(name, options, onMissing) {
|
|
32
|
-
const client = new (0,
|
|
33
|
-
const lookups =
|
|
34
|
-
const outcome = await
|
|
32
|
+
const client = new (0, _chunkPVMN4OE2js.DeeplineClient)();
|
|
33
|
+
const lookups = _chunkHHTVRICEjs.describeLookupsFor.call(void 0, client);
|
|
34
|
+
const outcome = await _chunkHHTVRICEjs.describeName.call(void 0, name, options, {
|
|
35
35
|
...lookups,
|
|
36
36
|
// `tools describe` has already fetched the tool for its compatibility check.
|
|
37
37
|
tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
|
|
38
|
-
seedStarterScript:
|
|
38
|
+
seedStarterScript: _chunkYPUDIEZXjs.seedToolListScript
|
|
39
39
|
});
|
|
40
40
|
if (outcome.status === "missing") {
|
|
41
41
|
if (onMissing) return onMissing();
|
|
@@ -60,18 +60,18 @@ function deliver(envelope, lines, { json, out }) {
|
|
|
60
60
|
` : text;
|
|
61
61
|
_fs.writeFileSync.call(void 0, path, content);
|
|
62
62
|
const bytes = Buffer.byteLength(content);
|
|
63
|
-
|
|
63
|
+
_chunkE26477MJjs.printCommandEnvelope.call(void 0,
|
|
64
64
|
{ path, bytes },
|
|
65
65
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
66
66
|
` }
|
|
67
67
|
);
|
|
68
68
|
return 0;
|
|
69
69
|
}
|
|
70
|
-
|
|
70
|
+
_chunkE26477MJjs.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
71
71
|
return 0;
|
|
72
72
|
}
|
|
73
73
|
function registerDescribeCommand(program) {
|
|
74
|
-
|
|
74
|
+
_chunkLZ37B62Kjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
|
|
75
75
|
"Describe anything search returns: a tool, monitor type, or play."
|
|
76
76
|
).addHelpText(
|
|
77
77
|
"after",
|
|
@@ -108,7 +108,7 @@ Schema size and format:
|
|
|
108
108
|
by default; the output names them, and --verbose shows them.
|
|
109
109
|
--fields email,miss_reason shows only the fields you name, plus every
|
|
110
110
|
required input, and names the rest. Use it when you know what you need.
|
|
111
|
-
A schema over ${
|
|
111
|
+
A schema over ${_chunk4IP5MLWUjs.SCHEMA_LINE_LIMIT} lines is folded: deeper objects show only their field
|
|
112
112
|
names. A shape used more than once is printed once under Types.
|
|
113
113
|
--full-schema the normal output, with the schema not folded
|
|
114
114
|
--schema-only only the schema, not folded, and nothing else
|
|
@@ -31,7 +31,7 @@ var _chunkNMU3VR5Ujs = require('./chunk-NMU3VR5U.js');
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunkFPYESYBOjs = require('./chunk-FPYESYBO.js');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
@@ -652,7 +652,7 @@ var ToolCalls = class {
|
|
|
652
652
|
idempotencyKey,
|
|
653
653
|
onResponse: (response2) => {
|
|
654
654
|
lastResponse = null;
|
|
655
|
-
atomicToolsSupported = response2.headers.get(
|
|
655
|
+
atomicToolsSupported = response2.headers.get(_chunkFPYESYBOjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
|
|
656
656
|
recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
|
|
657
657
|
if (_optionalChain([options, 'optionalAccess', _30 => _30.onServerTiming])) {
|
|
658
658
|
try {
|
|
@@ -1031,8 +1031,8 @@ function runtimeSelectionHeaders(runtime, env) {
|
|
|
1031
1031
|
}
|
|
1032
1032
|
const receivers = _optionalChain([env, 'access', _52 => _52.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _53 => _53.trim, 'call', _54 => _54()]);
|
|
1033
1033
|
return {
|
|
1034
|
-
[
|
|
1035
|
-
...receivers ? { [
|
|
1034
|
+
[_chunkFPYESYBOjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
1035
|
+
...receivers ? { [_chunkFPYESYBOjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
1036
1036
|
};
|
|
1037
1037
|
}
|
|
1038
1038
|
function normalizeTestPolicyOverrides(value, source) {
|
|
@@ -1103,7 +1103,7 @@ var PlayClient = class {
|
|
|
1103
1103
|
return _chunkAUQQVDABjs.startPlayRun.call(void 0,
|
|
1104
1104
|
this.http,
|
|
1105
1105
|
resolved.request,
|
|
1106
|
-
_optionalChain([options, 'optionalAccess', _62 => _62.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(
|
|
1106
|
+
_optionalChain([options, 'optionalAccess', _62 => _62.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkFPYESYBOjs.SDK_API_MAJOR) } : headers,
|
|
1107
1107
|
options
|
|
1108
1108
|
);
|
|
1109
1109
|
}
|
|
@@ -3200,7 +3200,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
|
|
|
3200
3200
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
3201
3201
|
);
|
|
3202
3202
|
}
|
|
3203
|
-
return { [
|
|
3203
|
+
return { [_chunkFPYESYBOjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
3204
3204
|
}
|
|
3205
3205
|
function sleep(ms) {
|
|
3206
3206
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -4001,7 +4001,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4001
4001
|
);
|
|
4002
4002
|
const headers = _optionalChain([options, 'optionalAccess', _181 => _181.cliAdmission]) ? {
|
|
4003
4003
|
...runtimeHeaders,
|
|
4004
|
-
"X-Deepline-API-Major": String(
|
|
4004
|
+
"X-Deepline-API-Major": String(_chunkFPYESYBOjs.SDK_API_MAJOR)
|
|
4005
4005
|
} : runtimeHeaders;
|
|
4006
4006
|
const http = this.http;
|
|
4007
4007
|
let submitted = false;
|
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BL5Q5JY7.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-27IBWHR5.mjs";
|
|
11
11
|
import {
|
|
12
12
|
addJsonNotice,
|
|
13
13
|
isJsonOutputMode
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-OFCP66VS.mjs";
|
|
15
15
|
import {
|
|
16
16
|
resolveApiKeyForBaseUrl
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-JC2M6XG2.mjs";
|
|
18
18
|
import {
|
|
19
19
|
SDK_VERSION
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-A3D677RX.mjs";
|
|
21
21
|
|
|
22
22
|
// src/cli/compatibility-catalog.ts
|
|
23
23
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -439,21 +439,33 @@ Cost:
|
|
|
439
439
|
run: {
|
|
440
440
|
core: `
|
|
441
441
|
Purpose:
|
|
442
|
-
Run a tool, a play
|
|
443
|
-
|
|
442
|
+
Run a tool, a play, a play file, or a few lines of code. One command for
|
|
443
|
+
all of them.
|
|
444
444
|
When:
|
|
445
|
-
After describe, once you know the inputs. --dry-run
|
|
446
|
-
|
|
447
|
-
|
|
445
|
+
After describe, once you know the inputs. For paid work, add --dry-run
|
|
446
|
+
first to check the input and see the price.
|
|
447
|
+
Input:
|
|
448
|
+
The id from search, and one JSON object: --input '{...}' or
|
|
449
|
+
--input-file input.json. A play that reads a CSV takes its path:
|
|
450
|
+
--input '{"csv":"leads.csv"}'. -e '<code>' runs code as a play body.
|
|
451
|
+
<play>@latest runs the newest revision; deepline/<id> runs Deepline's
|
|
452
|
+
version when your workspace has one with the same name.
|
|
453
|
+
Examples:
|
|
454
|
+
deepline run hunter_email_verifier --input '{"email":"a@b.com"}'
|
|
455
|
+
deepline run person-to-email-batch --input '{"csv":"leads.csv"}' --dry-run
|
|
456
|
+
deepline run person-to-email-batch --input '{"csv":"leads.csv"}' --csv-out emails.csv
|
|
457
|
+
deepline run my.play.ts --input-file input.json --json-out result.json
|
|
458
|
+
deepline run -e 'return { doubled: input.n * 2 };' --input '{"n":21}'
|
|
448
459
|
Output:
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
run or tool call again.
|
|
460
|
+
A receipt: what ran, its status and cost, where the data was saved, and
|
|
461
|
+
the first values. The full data is always saved to a file; --csv-out and
|
|
462
|
+
--json-out choose where. --fields picks values and CSV columns. Exit code
|
|
463
|
+
0 completed, 1 failed or still running, 2 nothing ran.
|
|
454
464
|
Cost:
|
|
455
|
-
|
|
456
|
-
replays it
|
|
465
|
+
What the tool or play charges. --max-credits caps a play run. Running an
|
|
466
|
+
interrupted call again replays it without paying twice.
|
|
467
|
+
Next:
|
|
468
|
+
Read the saved file. deepline runs get <id> shows the run again.
|
|
457
469
|
`
|
|
458
470
|
},
|
|
459
471
|
tools: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkUQXHBCHUjs = require('./chunk-UQXHBCHU.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkHHGAY2A4js = require('./chunk-HHGAY2A4.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -18,11 +18,11 @@ function usesCliPlayAdmission(command, args) {
|
|
|
18
18
|
}
|
|
19
19
|
async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured", signal) {
|
|
20
20
|
_optionalChain([signal, 'optionalAccess', _ => _.throwIfAborted, 'call', _2 => _2()]);
|
|
21
|
-
if (maintenancePolicy !== "off")
|
|
22
|
-
const compatibility = await
|
|
21
|
+
if (maintenancePolicy !== "off") _chunkHHGAY2A4js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
22
|
+
const compatibility = await _chunkUQXHBCHUjs.traceCliSpan.call(void 0,
|
|
23
23
|
"cli.sdk_compatibility",
|
|
24
24
|
{ baseUrl, command: "plays run" },
|
|
25
|
-
() =>
|
|
25
|
+
() => _chunkHHGAY2A4js.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
26
26
|
command: "plays run",
|
|
27
27
|
persistCache: maintenancePolicy !== "off",
|
|
28
28
|
signal
|
|
@@ -30,7 +30,7 @@ async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configure
|
|
|
30
30
|
);
|
|
31
31
|
_optionalChain([signal, 'optionalAccess', _3 => _3.throwIfAborted, 'call', _4 => _4()]);
|
|
32
32
|
if (compatibility.error) throw compatibility.error;
|
|
33
|
-
|
|
33
|
+
_chunkHHGAY2A4js.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
34
34
|
quietAdvisory: true
|
|
35
35
|
});
|
|
36
36
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TVZJ6XWM.mjs";
|
|
5
5
|
import {
|
|
6
6
|
runSkillsCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MBQZMHE6.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveShellSpawn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-27IBWHR5.mjs";
|
|
11
11
|
import {
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OFCP66VS.mjs";
|
|
14
14
|
import {
|
|
15
15
|
autoDetectBaseUrl
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JC2M6XG2.mjs";
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2HYJU4LJ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
checkSdkCompatibility,
|
|
6
6
|
enforceSdkCompatibilityResponse,
|
|
7
7
|
flushDeferredSkillsSyncNotices
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-27IBWHR5.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
formatModelDescription,
|
|
4
4
|
publicToolSchemas,
|
|
5
5
|
toolMetadataJsonForDescribe
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FTXIJTV2.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-DEJIN4DF.mjs";
|
|
17
17
|
import {
|
|
18
18
|
DeeplineError
|
|
19
19
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
SCHEMA_LINE_LIMIT,
|
|
3
3
|
fieldBlockLines,
|
|
4
4
|
schemaFields
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DEJIN4DF.mjs";
|
|
6
6
|
import {
|
|
7
7
|
csvSafeJsonString,
|
|
8
8
|
csvStringFromRows
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OFCP66VS.mjs";
|
|
10
10
|
|
|
11
11
|
// src/cli/describe-options.ts
|
|
12
12
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -196,7 +196,7 @@ function rateLimitSummary(limits) {
|
|
|
196
196
|
864e5: "day"
|
|
197
197
|
};
|
|
198
198
|
const parts = (Array.isArray(limits) ? limits : []).flatMap((limit) => {
|
|
199
|
-
if (!isRecord(limit)) return [];
|
|
199
|
+
if (!isRecord(limit) || limit.scope === "provider_shared") return [];
|
|
200
200
|
const { requestsPerWindow: requests, windowMs } = limit;
|
|
201
201
|
if (typeof requests !== "number" || typeof windowMs !== "number") return [];
|
|
202
202
|
return [
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkYYN2O43Cjs = require('./chunk-YYN2O43C.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkFPYESYBOjs = require('./chunk-FPYESYBO.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -290,8 +290,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
290
290
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
291
291
|
var defaultBrowserCommandRunner = childProcess;
|
|
292
292
|
function getAuthedHttpClient() {
|
|
293
|
-
const config =
|
|
294
|
-
return { config, http: new (0,
|
|
293
|
+
const config = _chunkYYN2O43Cjs.resolveConfig.call(void 0, );
|
|
294
|
+
return { config, http: new (0, _chunkYYN2O43Cjs.HttpClient)(config) };
|
|
295
295
|
}
|
|
296
296
|
function stableOsUserId() {
|
|
297
297
|
try {
|
|
@@ -631,7 +631,7 @@ function collectLocalEnvInfo() {
|
|
|
631
631
|
os: `${process.platform} ${process.arch}`,
|
|
632
632
|
node_version: process.version,
|
|
633
633
|
home_dir: homeDir,
|
|
634
|
-
agent_runtime:
|
|
634
|
+
agent_runtime: _chunkFPYESYBOjs.detectAgentRuntime.call(void 0, )
|
|
635
635
|
};
|
|
636
636
|
const env = process.env;
|
|
637
637
|
const optional = {
|
|
@@ -878,9 +878,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
878
878
|
}
|
|
879
879
|
function withAgentCommandContext(value) {
|
|
880
880
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
881
|
-
return
|
|
881
|
+
return _chunkFPYESYBOjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
882
882
|
...valueRecord,
|
|
883
|
-
command_context:
|
|
883
|
+
command_context: _chunkYYN2O43Cjs.resolveCliCommandContext.call(void 0, )
|
|
884
884
|
} : value;
|
|
885
885
|
}
|
|
886
886
|
function printJson(value, fields) {
|
|
@@ -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.490",
|
|
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."
|
|
@@ -87,6 +87,11 @@ var SDK_RELEASE = {
|
|
|
87
87
|
minimumSupported: "0.1.53",
|
|
88
88
|
deprecatedBelow: "0.3.1",
|
|
89
89
|
commandIntroducedIn: [
|
|
90
|
+
{
|
|
91
|
+
command: "run",
|
|
92
|
+
introducedIn: "0.3.462",
|
|
93
|
+
reason: "deepline run was added in SDK CLI 0.3.462 as the one command for tools, plays, play files, and inline code. On an older version run deepline tools execute or deepline plays run, or update."
|
|
94
|
+
},
|
|
90
95
|
{
|
|
91
96
|
command: "describe",
|
|
92
97
|
introducedIn: "0.3.312",
|
|
@@ -1,19 +1,19 @@
|
|
|
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 _chunkXSGJKXMPjs = require('./chunk-XSGJKXMP.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkTCBYQX5Njs = require('./chunk-TCBYQX5N.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkHHGAY2A4js = require('./chunk-HHGAY2A4.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkE26477MJjs = require('./chunk-E26477MJ.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkYYN2O43Cjs = require('./chunk-YYN2O43C.js');
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
var _child_process = require('child_process');
|
|
@@ -495,7 +495,7 @@ function normalizedNpmPrefix(value) {
|
|
|
495
495
|
}
|
|
496
496
|
function resolveNpmGlobalPrefix(env) {
|
|
497
497
|
try {
|
|
498
|
-
const plan =
|
|
498
|
+
const plan = _chunkHHGAY2A4js.resolveShellSpawn.call(void 0,
|
|
499
499
|
"npm",
|
|
500
500
|
["prefix", "-g"],
|
|
501
501
|
process.platform,
|
|
@@ -556,8 +556,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
556
556
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
557
557
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
558
558
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
559
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
560
|
-
const npmGlobalInstallFlags =
|
|
559
|
+
const npmVersion = options.npmVersion === void 0 ? _chunkXSGJKXMPjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
560
|
+
const npmGlobalInstallFlags = _chunkXSGJKXMPjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
561
561
|
const args = installPrefix ? [
|
|
562
562
|
"install",
|
|
563
563
|
"-g",
|
|
@@ -567,7 +567,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
567
567
|
packageSpec
|
|
568
568
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
569
569
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
570
|
-
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) ||
|
|
570
|
+
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkYYN2O43Cjs.autoDetectBaseUrl.call(void 0, )
|
|
571
571
|
);
|
|
572
572
|
return {
|
|
573
573
|
kind: "npm-global",
|
|
@@ -816,7 +816,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
816
816
|
function runCommand(command, args, env = process.env) {
|
|
817
817
|
return new Promise((resolveResult) => {
|
|
818
818
|
let output = "";
|
|
819
|
-
const plan =
|
|
819
|
+
const plan = _chunkHHGAY2A4js.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
820
820
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
821
821
|
stdio: ["inherit", "pipe", "pipe"],
|
|
822
822
|
shell: plan.shell,
|
|
@@ -1199,14 +1199,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
|
|
|
1199
1199
|
throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
|
|
1200
1200
|
}
|
|
1201
1201
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1202
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1202
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkYYN2O43Cjs.autoDetectBaseUrl));
|
|
1203
1203
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1204
1204
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1205
1205
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1206
1206
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1207
1207
|
process.stdout.write = (() => true);
|
|
1208
1208
|
try {
|
|
1209
|
-
const exitCode = await
|
|
1209
|
+
const exitCode = await _chunkTCBYQX5Njs.runSkillsCommand.call(void 0, { json: true });
|
|
1210
1210
|
if (exitCode !== 0) {
|
|
1211
1211
|
throw new Error(
|
|
1212
1212
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1277,11 +1277,11 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1277
1277
|
]
|
|
1278
1278
|
};
|
|
1279
1279
|
if (options.json && !options.executeWithJson) {
|
|
1280
|
-
|
|
1280
|
+
_chunkE26477MJjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1281
1281
|
return 0;
|
|
1282
1282
|
}
|
|
1283
1283
|
if (options.printCommand) {
|
|
1284
|
-
|
|
1284
|
+
_chunkE26477MJjs.printCommandEnvelope.call(void 0,
|
|
1285
1285
|
{
|
|
1286
1286
|
...plan,
|
|
1287
1287
|
render: {
|
|
@@ -1294,7 +1294,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1294
1294
|
return 0;
|
|
1295
1295
|
}
|
|
1296
1296
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1297
|
-
|
|
1297
|
+
_chunkE26477MJjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1298
1298
|
return 0;
|
|
1299
1299
|
}
|
|
1300
1300
|
stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
|
|
@@ -1324,7 +1324,7 @@ To retry with full installer output, run: deepline skills
|
|
|
1324
1324
|
);
|
|
1325
1325
|
}
|
|
1326
1326
|
if (options.executeWithJson && options.json) {
|
|
1327
|
-
|
|
1327
|
+
_chunkE26477MJjs.printCommandEnvelope.call(void 0,
|
|
1328
1328
|
{
|
|
1329
1329
|
ok: true,
|
|
1330
1330
|
pinnedVersion
|
|
@@ -16,12 +16,12 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
|
16
16
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkEPQZ42PYjs = require('./chunk-EPQZ42PY.js');
|
|
20
20
|
|
|
21
21
|
// src/version.ts
|
|
22
|
-
var SDK_VERSION =
|
|
23
|
-
var SDK_API_MAJOR =
|
|
24
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
22
|
+
var SDK_VERSION = _chunkEPQZ42PYjs.SDK_RELEASE.version;
|
|
23
|
+
var SDK_API_MAJOR = _chunkEPQZ42PYjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
24
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkEPQZ42PYjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
25
25
|
|
|
26
26
|
// src/agent-runtime.ts
|
|
27
27
|
var _os = require('os');
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
rateLimitSummary,
|
|
3
3
|
schemaField,
|
|
4
4
|
schemaFields
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DEJIN4DF.mjs";
|
|
6
6
|
import {
|
|
7
7
|
Capability,
|
|
8
8
|
observedMaxText
|
|
@@ -318,10 +318,8 @@ function describedTool(tool, requestedToolId) {
|
|
|
318
318
|
runner: playReference ? { via: "play", reference: playReference } : { via: "tool", toolId: String(contract.toolId), inputSchema }
|
|
319
319
|
};
|
|
320
320
|
}
|
|
321
|
-
function withPlanRateLimit(planRequestsPerMinute,
|
|
322
|
-
|
|
323
|
-
const plan = `${planRequestsPerMinute} requests/minute for this workspace on its plan`;
|
|
324
|
-
return sharedLimit ? `${plan} (shared ceiling: ${sharedLimit})` : plan;
|
|
321
|
+
function withPlanRateLimit(planRequestsPerMinute, configuredLimit) {
|
|
322
|
+
return typeof planRequestsPerMinute === "number" ? `${planRequestsPerMinute} requests/minute for this workspace on its plan` : configuredLimit;
|
|
325
323
|
}
|
|
326
324
|
function sampleValueForField(field) {
|
|
327
325
|
const name = stringField(field, "name").toLowerCase();
|