deepline 0.3.463 → 0.3.464
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/play.ts +3 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +16 -2
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +98 -0
- package/dist/bundling-sources/shared_libs/plays/field-catalog.ts +353 -52
- package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +63 -3
- package/dist/cli/{auth-LZLBR4C3.mjs → auth-GMSI6QWR.mjs} +5 -5
- package/dist/cli/auth-P4E7M3AV.js +41 -0
- package/dist/cli/{billing-OTOP5RE4.mjs → billing-6G2RFLM7.mjs} +6 -6
- package/dist/cli/{billing-6TJPNJQD.js → billing-MGH36CNP.js} +77 -77
- package/dist/cli/{chunk-5DRNNC72.js → chunk-2RFTOESC.js} +5 -5
- package/dist/cli/{chunk-NDHJR2WZ.js → chunk-3AIMFE3Z.js} +36 -36
- package/dist/cli/{chunk-S4XQCFES.mjs → chunk-3MKRAI6R.mjs} +5 -5
- package/dist/cli/{chunk-NTLI6P6Y.mjs → chunk-44BEFU62.mjs} +2 -2
- package/dist/cli/{chunk-3BOIOCNX.js → chunk-4XNXFHG6.js} +1 -1
- package/dist/cli/{chunk-F2RHUPVH.mjs → chunk-5CKIO7KA.mjs} +1 -1
- package/dist/cli/{chunk-2ZIRCBYG.js → chunk-5XIGEYYK.js} +6 -6
- package/dist/cli/{chunk-WUMIYOXQ.mjs → chunk-6A7OH2PV.mjs} +2 -2
- package/dist/cli/{chunk-3BVLLJ3H.mjs → chunk-6COF5LIE.mjs} +2 -2
- package/dist/cli/{chunk-O3BJYD6D.mjs → chunk-6E2KNNTD.mjs} +2 -2
- package/dist/cli/{chunk-UIURR26V.mjs → chunk-6KDOO7IM.mjs} +4 -4
- package/dist/cli/{chunk-5LEAXRHV.js → chunk-6P4OYABU.js} +54 -226
- package/dist/cli/chunk-7YDN6AEK.mjs +649 -0
- package/dist/cli/{chunk-UROQDCVW.js → chunk-ACZLDP7L.js} +3 -3
- package/dist/cli/{chunk-UC4SFYNU.js → chunk-BMUDQMYE.js} +6 -6
- package/dist/cli/{chunk-DHXCBITQ.mjs → chunk-CUZVOPPY.mjs} +3 -3
- package/dist/cli/{chunk-CTQ56DXP.mjs → chunk-DO3FSI4C.mjs} +1 -1
- package/dist/cli/{chunk-2NISBXMN.js → chunk-E4QJKJH6.js} +51 -51
- package/dist/cli/{chunk-WUZS2HK6.js → chunk-EQNJUG3N.js} +53 -53
- package/dist/cli/{chunk-CBZP6J3V.js → chunk-FEWZT4RV.js} +21 -21
- package/dist/cli/{chunk-NAPTMYTY.js → chunk-FVAB2JRO.js} +8 -8
- package/dist/cli/{chunk-BGNWI3KH.js → chunk-GVJVBBGV.js} +3 -3
- package/dist/cli/{chunk-GUT7CLOL.mjs → chunk-HGUHBLX5.mjs} +3 -3
- package/dist/cli/{chunk-6PMCRYDA.js → chunk-HIMV32ZX.js} +6 -4
- package/dist/cli/{chunk-MSY22NQW.mjs → chunk-I2TCWIW2.mjs} +44 -216
- package/dist/cli/{chunk-XDWS2JJT.mjs → chunk-J327QVQV.mjs} +1 -1
- package/dist/cli/chunk-JLZKF7EY.js +649 -0
- package/dist/cli/{chunk-FK2HNDCN.js → chunk-K3BARC72.js} +2 -2
- package/dist/cli/{chunk-TIRBDQ3W.js → chunk-K4DVRQTY.js} +16 -16
- package/dist/cli/{chunk-XQCTG5OO.js → chunk-L3U44YVO.js} +5 -5
- package/dist/cli/{chunk-XW2JIYG7.mjs → chunk-M4QVY6RW.mjs} +2 -2
- package/dist/cli/{chunk-I624J4H5.mjs → chunk-MP3O4ISC.mjs} +1 -1
- package/dist/cli/{chunk-3U5EAP6E.mjs → chunk-MQNBOSQP.mjs} +5 -5
- package/dist/cli/{chunk-TKAQR3IB.mjs → chunk-MUQAKLBP.mjs} +1 -1
- package/dist/cli/{chunk-YGGIZ3VT.js → chunk-NI3QFUK7.js} +4 -4
- package/dist/cli/{chunk-BAPTQDLF.mjs → chunk-O4AOYLZE.mjs} +2 -2
- package/dist/cli/{chunk-5LHXOIPT.js → chunk-O4ZMADW4.js} +7 -7
- package/dist/cli/{chunk-7D6X7IXW.mjs → chunk-OA7IIOLW.mjs} +4 -4
- package/dist/cli/{chunk-VPHN2HAL.mjs → chunk-OGCAGZXO.mjs} +6 -4
- package/dist/cli/{chunk-C25QE4CH.mjs → chunk-PPQL5F4P.mjs} +1 -1
- package/dist/cli/{chunk-4YZKBBLZ.mjs → chunk-RFOQRCMW.mjs} +5 -5
- package/dist/cli/{chunk-LYFKBLJI.mjs → chunk-TMVBBGSK.mjs} +1 -1
- package/dist/cli/{chunk-PVY4DPPF.js → chunk-TU3M7UXJ.js} +13 -13
- package/dist/cli/{chunk-VDGTTH7K.mjs → chunk-UM363DQF.mjs} +2 -2
- package/dist/cli/{chunk-VY2GBNTX.js → chunk-UOAHDEAI.js} +9 -9
- package/dist/cli/{chunk-RD6IQ2JY.mjs → chunk-VQHEMZ33.mjs} +1 -1
- package/dist/cli/{chunk-IKWRUNAP.mjs → chunk-VYDOPASG.mjs} +1 -1
- package/dist/cli/{chunk-JVDKZJUH.js → chunk-VZX4P5FT.js} +258 -258
- package/dist/cli/{chunk-ALZBANZI.js → chunk-WLIFUH6W.js} +8 -8
- package/dist/cli/{chunk-7FCYPAPP.js → chunk-X3XJ6ZSJ.js} +2 -2
- package/dist/cli/{chunk-CVQ7N5CV.mjs → chunk-XMDBN2K7.mjs} +11 -11
- package/dist/cli/{chunk-RGOUCIIZ.js → chunk-ZAB6KCZW.js} +3 -3
- package/dist/cli/{chunk-SKU6ECIY.js → chunk-ZIMCLWEW.js} +5 -5
- package/dist/cli/{chunk-7XYDDCQ2.js → chunk-ZQERHPZA.js} +26 -26
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-OK45Z5XQ.mjs → csv-4ZVMBOCK.mjs} +4 -4
- package/dist/cli/{csv-EH5QWR4O.js → csv-W2JPV57R.js} +13 -13
- package/dist/cli/{db-3ESJKETS.js → db-6YNFDHEW.js} +27 -27
- package/dist/cli/{db-6Z5E4HKN.mjs → db-TVK6BLRB.mjs} +6 -6
- package/dist/cli/describe-APW5TWBT.js +48 -0
- package/dist/cli/{describe-PNDQB7YS.mjs → describe-JFN4ECPO.mjs} +20 -20
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-2NTWQFEG.mjs → executions-2FK4FFKE.mjs} +6 -6
- package/dist/cli/{executions-KUOBRX5V.js → executions-J4CAN7RB.js} +8 -8
- package/dist/cli/{feedback-7RPRMSGY.mjs → feedback-EYRRLA2P.mjs} +4 -4
- package/dist/cli/{feedback-UPHAZJ4C.js → feedback-NOO4OM4U.js} +8 -8
- package/dist/cli/{git-SCYP6WSZ.mjs → git-D3Q4JKBC.mjs} +5 -5
- package/dist/cli/git-FPF6DT43.js +25 -0
- package/dist/cli/index.js +139 -139
- package/dist/cli/index.mjs +41 -41
- package/dist/cli/{legacy-noops-7XMFCVRG.js → legacy-noops-5ZGRKSN3.js} +8 -8
- package/dist/cli/{legacy-noops-A4KYAGI6.mjs → legacy-noops-SUFJWBLZ.mjs} +5 -5
- package/dist/cli/{monitors-NZV6IX5H.js → monitors-3QFJZA6Z.js} +91 -91
- package/dist/cli/{monitors-FLC5J7RI.mjs → monitors-IRDIIR6J.mjs} +7 -7
- package/dist/cli/{org-IZ7UP3XF.js → org-275OJJ7W.js} +68 -68
- package/dist/cli/{org-LUETJ7Z5.mjs → org-2VA2FSMG.mjs} +6 -6
- package/dist/cli/{pages-22ML3O7O.js → pages-SPRBOZRA.js} +17 -17
- package/dist/cli/{pages-EUX5EAGF.mjs → pages-WCUEBFYU.mjs} +6 -6
- package/dist/cli/{play-CDHPAKKM.mjs → play-7UL5H6QU.mjs} +18 -18
- package/dist/cli/{play-USJBQADG.js → play-NMHUWBET.js} +305 -305
- package/dist/cli/{providers-WFEUNPGC.js → providers-72LUJEAT.js} +9 -9
- package/dist/cli/{providers-CCXZ3SQF.mjs → providers-WSCKV557.mjs} +6 -6
- package/dist/cli/{quickstart-ZUULI635.mjs → quickstart-K4LAKJKJ.mjs} +4 -4
- package/dist/cli/{quickstart-O4JSUORZ.js → quickstart-XSUUAE2Y.js} +6 -6
- package/dist/cli/{run-ISDJYJMU.js → run-MLV2CLW7.js} +40 -40
- package/dist/cli/{run-QJ4NX5F5.mjs → run-R2MOXXHH.mjs} +25 -25
- package/dist/cli/search-AYFUV6YV.js +32 -0
- package/dist/cli/{search-IX3XKZJ3.mjs → search-WHJZNWKE.mjs} +7 -7
- package/dist/cli/{secrets-ELQSNCTR.js → secrets-7PXFBOFY.js} +15 -15
- package/dist/cli/{secrets-7VUDXTUZ.mjs → secrets-YGVOFLI5.mjs} +6 -6
- package/dist/cli/{sessions-A3FG3AZX.js → sessions-ASXXZI42.js} +6 -6
- package/dist/cli/{sessions-VOIQ62GB.mjs → sessions-G7I54W4L.mjs} +5 -5
- package/dist/cli/{settings-S6N6EFBG.mjs → settings-4GFO6JYO.mjs} +11 -11
- package/dist/cli/{settings-ZTXQEMZI.js → settings-RTEBMDPC.js} +78 -78
- package/dist/cli/{setup-AYPIK4JE.mjs → setup-4RJGKSDC.mjs} +9 -9
- package/dist/cli/{setup-Y3WOIFLS.js → setup-A6V2MJK7.js} +44 -44
- package/dist/cli/{skills-5SF5QWNI.mjs → skills-432W6EGS.mjs} +7 -7
- package/dist/cli/skills-GOQECD7H.js +31 -0
- package/dist/cli/tools-JXYN7WOE.js +55 -0
- package/dist/cli/{tools-3XNZ4J64.mjs → tools-SABREK3C.mjs} +18 -18
- package/dist/cli/update-BSB4TJER.js +33 -0
- package/dist/cli/{update-3U4OVX5R.mjs → update-F7NO5RDW.mjs} +9 -9
- package/dist/cli/{workflow-2M5JP7SA.mjs → workflow-F4N7CFUX.mjs} +7 -7
- package/dist/cli/{workflow-RM7H7555.js → workflow-TF6YDWTM.js} +17 -17
- package/dist/{client-DTwnz_AW.d.mts → client-ADFHNtFM.d.mts} +1 -1
- package/dist/{client-DS2IWYZF.d.ts → client-BClp2yrq.d.ts} +1 -1
- package/dist/{client-core-B_6HAIBy.d.ts → client-core-BFU73Ttw.d.ts} +1 -1
- package/dist/{client-core-DzBSlY1U.d.mts → client-core-DWLmmJWo.d.mts} +1 -1
- package/dist/{compiler-manifest-Dcyd3-Zd.d.ts → compiler-manifest-Cs17yO-H.d.mts} +321 -3
- package/dist/{compiler-manifest-Dcyd3-Zd.d.mts → compiler-manifest-Cs17yO-H.d.ts} +321 -3
- package/dist/{errors-yQwfgrcX.d.ts → errors-Dee-QpVS.d.ts} +1 -1
- package/dist/{errors-d-sTrZhe.d.mts → errors-qNfvQuRB.d.mts} +1 -1
- package/dist/{index-C6oXchjN.d.mts → index-BTqNNXmC.d.mts} +1 -1
- package/dist/{index-P56zy_z5.d.ts → index-DXTh1Lxe.d.ts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +80 -13
- package/dist/index.mjs +76 -9
- package/dist/install-integrity.json +114 -114
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- 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/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-XPGKBJKB.js +0 -41
- package/dist/cli/chunk-NA4T3B62.js +0 -286
- package/dist/cli/chunk-TXZVVBQZ.mjs +0 -286
- package/dist/cli/describe-QUF7VTTR.js +0 -48
- package/dist/cli/git-UH653WHV.js +0 -25
- package/dist/cli/search-TIFNLRPM.js +0 -32
- package/dist/cli/skills-MWFRMG3H.js +0 -31
- package/dist/cli/tools-XEC4OD3R.js +0 -55
- package/dist/cli/update-DWYEYTZE.js +0 -33
|
@@ -6,8 +6,8 @@ var _chunk3XX5TEA4js = require('./chunk-3XX5TEA4.js');
|
|
|
6
6
|
var _chunk3KC45UVFjs = require('./chunk-3KC45UVF.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
10
|
-
require('./chunk-
|
|
9
|
+
var _chunkZIMCLWEWjs = require('./chunk-ZIMCLWEW.js');
|
|
10
|
+
require('./chunk-BMUDQMYE.js');
|
|
11
11
|
require('./chunk-E4CABWXL.js');
|
|
12
12
|
require('./chunk-JKVRBCZL.js');
|
|
13
13
|
require('./chunk-NMU3VR5U.js');
|
|
@@ -17,13 +17,13 @@ require('./chunk-XDVT3GOM.js');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
21
|
-
require('./chunk-
|
|
22
|
-
require('./chunk-
|
|
20
|
+
var _chunkO4ZMADW4js = require('./chunk-O4ZMADW4.js');
|
|
21
|
+
require('./chunk-GVJVBBGV.js');
|
|
22
|
+
require('./chunk-NI3QFUK7.js');
|
|
23
23
|
require('./chunk-ALJJRZNJ.js');
|
|
24
24
|
require('./chunk-XNYIZMNQ.js');
|
|
25
25
|
require('./chunk-DIAWYWT5.js');
|
|
26
|
-
require('./chunk-
|
|
26
|
+
require('./chunk-4XNXFHG6.js');
|
|
27
27
|
require('./chunk-OG64RBAC.js');
|
|
28
28
|
require('./chunk-COGTRVWW.js');
|
|
29
29
|
|
|
@@ -1629,18 +1629,18 @@ function noticeToStderr(command) {
|
|
|
1629
1629
|
);
|
|
1630
1630
|
}
|
|
1631
1631
|
function emitPassThrough(command, payload, options) {
|
|
1632
|
-
const json =
|
|
1632
|
+
const json = _chunkO4ZMADW4js.shouldEmitJson.call(void 0, options.json);
|
|
1633
1633
|
const deprecation = migrationDeprecation(command);
|
|
1634
1634
|
if (json) {
|
|
1635
1635
|
const enriched = payload && typeof payload === "object" && !Array.isArray(payload) ? { ...payload, deprecation } : { result: payload, deprecation };
|
|
1636
|
-
|
|
1636
|
+
_chunkO4ZMADW4js.printJson.call(void 0, enriched);
|
|
1637
1637
|
return;
|
|
1638
1638
|
}
|
|
1639
|
-
|
|
1639
|
+
_chunkO4ZMADW4js.printJson.call(void 0, payload);
|
|
1640
1640
|
noticeToStderr(command);
|
|
1641
1641
|
}
|
|
1642
1642
|
function client() {
|
|
1643
|
-
return new (0,
|
|
1643
|
+
return new (0, _chunkZIMCLWEWjs.DeeplineClient)();
|
|
1644
1644
|
}
|
|
1645
1645
|
function clientWithTimeout(timeoutSeconds) {
|
|
1646
1646
|
if (!timeoutSeconds) return client();
|
|
@@ -1648,7 +1648,7 @@ function clientWithTimeout(timeoutSeconds) {
|
|
|
1648
1648
|
if (!Number.isFinite(seconds) || seconds <= 0) {
|
|
1649
1649
|
throw new Error("--timeout must be a positive number of seconds.");
|
|
1650
1650
|
}
|
|
1651
|
-
return new (0,
|
|
1651
|
+
return new (0, _chunkZIMCLWEWjs.DeeplineClient)({ timeout: seconds * 1e3 });
|
|
1652
1652
|
}
|
|
1653
1653
|
function readStatus(payload) {
|
|
1654
1654
|
if (!payload || typeof payload !== "object") return null;
|
|
@@ -1702,7 +1702,7 @@ async function transformOne(api, workflowId, outDir, publish) {
|
|
|
1702
1702
|
await _promises.writeFile.call(void 0, file, compiled.sourceCode, "utf8");
|
|
1703
1703
|
let published = false;
|
|
1704
1704
|
if (publish) {
|
|
1705
|
-
const { handlePlayPublish } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
1705
|
+
const { handlePlayPublish } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-NMHUWBET.js")));
|
|
1706
1706
|
const code = await handlePlayPublish([file]);
|
|
1707
1707
|
if (code !== 0) {
|
|
1708
1708
|
return {
|
|
@@ -1777,10 +1777,10 @@ async function handleTransform(id, options) {
|
|
|
1777
1777
|
for (const workflowId of ids) {
|
|
1778
1778
|
outcomes.push(await transformOne(api, workflowId, outDir, publish));
|
|
1779
1779
|
}
|
|
1780
|
-
|
|
1780
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
1781
1781
|
{ outcomes, deprecation: null },
|
|
1782
1782
|
{
|
|
1783
|
-
json:
|
|
1783
|
+
json: _chunkO4ZMADW4js.shouldEmitJson.call(void 0, options.json),
|
|
1784
1784
|
text: renderTransformReport(outcomes)
|
|
1785
1785
|
}
|
|
1786
1786
|
);
|
|
@@ -1801,11 +1801,11 @@ async function handleDelete(id, options) {
|
|
|
1801
1801
|
}
|
|
1802
1802
|
async function handleDisable(id, options) {
|
|
1803
1803
|
const result = await client().disableWorkflow(id);
|
|
1804
|
-
|
|
1804
|
+
_chunkO4ZMADW4js.printJson.call(void 0, result);
|
|
1805
1805
|
}
|
|
1806
1806
|
async function handleEnable(id, options) {
|
|
1807
1807
|
const result = await client().enableWorkflow(id);
|
|
1808
|
-
|
|
1808
|
+
_chunkO4ZMADW4js.printJson.call(void 0, result);
|
|
1809
1809
|
}
|
|
1810
1810
|
async function handleApply(options) {
|
|
1811
1811
|
const body = await readJsonOption(options.payload, options.file);
|
|
@@ -1870,7 +1870,7 @@ async function handleTail(id, runId, options) {
|
|
|
1870
1870
|
if (status && TERMINAL_RUN_STATUSES.has(status) || Date.now() > deadline) {
|
|
1871
1871
|
return;
|
|
1872
1872
|
}
|
|
1873
|
-
await
|
|
1873
|
+
await _chunkO4ZMADW4js.sleep.call(void 0, intervalMs);
|
|
1874
1874
|
}
|
|
1875
1875
|
}
|
|
1876
1876
|
function registerWorkflowCommands(program) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference path="./text-imports.d.ts" />
|
|
2
|
-
import { D as DeeplineClient$1, a as DeeplineClientOptions } from './client-core-
|
|
2
|
+
import { D as DeeplineClient$1, a as DeeplineClientOptions } from './client-core-DWLmmJWo.mjs';
|
|
3
3
|
|
|
4
4
|
/** Deepline SDK client with environment and local credential discovery. */
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference path="./text-imports.d.ts" />
|
|
2
|
-
import { D as DeeplineClient$1, a as DeeplineClientOptions } from './client-core-
|
|
2
|
+
import { D as DeeplineClient$1, a as DeeplineClientOptions } from './client-core-BFU73Ttw.js';
|
|
3
3
|
|
|
4
4
|
/** Deepline SDK client with environment and local credential discovery. */
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference path="./text-imports.d.ts" />
|
|
2
|
-
import { u as PlayCompilerManifest, am as ToolResultBilling, D as DeeplineError, B as BillingEntitlements, ao as BillingBenefitValues } from './compiler-manifest-
|
|
2
|
+
import { u as PlayCompilerManifest, am as ToolResultBilling, D as DeeplineError, B as BillingEntitlements, ao as BillingBenefitValues } from './compiler-manifest-Cs17yO-H.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { MonitorFleetDefinition } from './monitor-fleet-contract.js';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference path="./text-imports.d.ts" />
|
|
2
|
-
import { u as PlayCompilerManifest, am as ToolResultBilling, D as DeeplineError, B as BillingEntitlements, ao as BillingBenefitValues } from './compiler-manifest-
|
|
2
|
+
import { u as PlayCompilerManifest, am as ToolResultBilling, D as DeeplineError, B as BillingEntitlements, ao as BillingBenefitValues } from './compiler-manifest-Cs17yO-H.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { MonitorFleetDefinition } from './monitor-fleet-contract.mjs';
|
|
5
5
|
|
|
@@ -698,6 +698,310 @@ type PlayDatasetMaterializeOptions = {
|
|
|
698
698
|
limit?: number;
|
|
699
699
|
};
|
|
700
700
|
|
|
701
|
+
/**
|
|
702
|
+
* The catalog of things a tool or play can take or return about a person or
|
|
703
|
+
* a company, named by what they are instead of by what a provider calls them.
|
|
704
|
+
*
|
|
705
|
+
* An id is a dotted path that always ends in `.value`:
|
|
706
|
+
*
|
|
707
|
+
* person.email.value any email for the person
|
|
708
|
+
* person.email.work.value their work email
|
|
709
|
+
* person.email.work.validated.value whether it was validated
|
|
710
|
+
*
|
|
711
|
+
* It reads `<entity>.<group>[.<group>][.<kind>][.<leaf>].value`. A group is one thing
|
|
712
|
+
* about the entity (an email), and may hold groups of its own (a job's
|
|
713
|
+
* title). A leaf is one fact about that thing (its value, whether it was
|
|
714
|
+
* validated). A kind narrows which one is meant (work, personal). No id is
|
|
715
|
+
* both a field and a parent of fields, so `person.email` alone is never a
|
|
716
|
+
* field; the plain value is `person.email.value`.
|
|
717
|
+
*
|
|
718
|
+
* A narrower field answers for every more general one:
|
|
719
|
+
*
|
|
720
|
+
* person.email.work.value answers person.email.value (its kind dropped)
|
|
721
|
+
* person.email.value answers entity.email.value (a person or company)
|
|
722
|
+
*
|
|
723
|
+
* A tool that cannot tell which kind it has declares the id without one; a
|
|
724
|
+
* tool whose record may be a person or a company declares the `entity` id.
|
|
725
|
+
*
|
|
726
|
+
* `provider.<provider>.<...>.value` names a value that belongs to one
|
|
727
|
+
* provider and is not about a person or company (a HubSpot list's name). It
|
|
728
|
+
* is declared where the provider's tool is, and answers only for itself.
|
|
729
|
+
*
|
|
730
|
+
* This is an addition. Existing short names (`email`, `name`) keep working;
|
|
731
|
+
* `EXTRACTOR_TARGET_FIELDS` records what each can mean.
|
|
732
|
+
*/
|
|
733
|
+
type Leaf = {
|
|
734
|
+
type: string;
|
|
735
|
+
description: string;
|
|
736
|
+
};
|
|
737
|
+
declare const FIELD_CATALOG: {
|
|
738
|
+
readonly person: {
|
|
739
|
+
readonly name: {
|
|
740
|
+
readonly description: "The person's name. Without a kind, a name in some form.";
|
|
741
|
+
readonly leaves: {
|
|
742
|
+
readonly value: Leaf;
|
|
743
|
+
};
|
|
744
|
+
readonly kinds: {
|
|
745
|
+
readonly full: "Their full name.";
|
|
746
|
+
readonly first: "Their first (given) name.";
|
|
747
|
+
readonly last: "Their last (family) name.";
|
|
748
|
+
};
|
|
749
|
+
};
|
|
750
|
+
readonly email: {
|
|
751
|
+
readonly description: "An email address for the person.";
|
|
752
|
+
readonly leaves: {
|
|
753
|
+
readonly value: Leaf;
|
|
754
|
+
readonly validated: {
|
|
755
|
+
readonly type: "boolean";
|
|
756
|
+
readonly description: "Whether the address passed validation.";
|
|
757
|
+
};
|
|
758
|
+
readonly status: {
|
|
759
|
+
readonly type: "EmailStatus";
|
|
760
|
+
readonly description: "The validation verdict and its signals.";
|
|
761
|
+
};
|
|
762
|
+
readonly source: Leaf;
|
|
763
|
+
};
|
|
764
|
+
readonly kinds: {
|
|
765
|
+
readonly work: "At their employer.";
|
|
766
|
+
readonly personal: "Their own, not tied to an employer.";
|
|
767
|
+
};
|
|
768
|
+
};
|
|
769
|
+
readonly phone: {
|
|
770
|
+
readonly description: "A phone number for the person.";
|
|
771
|
+
readonly leaves: {
|
|
772
|
+
readonly value: Leaf;
|
|
773
|
+
readonly validated: {
|
|
774
|
+
readonly type: "boolean";
|
|
775
|
+
readonly description: "Whether the number passed validation.";
|
|
776
|
+
};
|
|
777
|
+
readonly status: {
|
|
778
|
+
readonly type: "\"valid\" | \"invalid\" | \"unknown\"";
|
|
779
|
+
readonly description: "The validation verdict.";
|
|
780
|
+
};
|
|
781
|
+
readonly line_type: Leaf;
|
|
782
|
+
readonly carrier: Leaf;
|
|
783
|
+
readonly source: Leaf;
|
|
784
|
+
};
|
|
785
|
+
readonly kinds: {
|
|
786
|
+
readonly mobile: "Their mobile.";
|
|
787
|
+
readonly work: "A direct line at their employer.";
|
|
788
|
+
};
|
|
789
|
+
};
|
|
790
|
+
readonly linkedin: {
|
|
791
|
+
readonly description: "The person's LinkedIn profile.";
|
|
792
|
+
readonly leaves: {
|
|
793
|
+
readonly url: Leaf;
|
|
794
|
+
readonly id: Leaf;
|
|
795
|
+
};
|
|
796
|
+
};
|
|
797
|
+
readonly job: {
|
|
798
|
+
readonly description: "The person's current role.";
|
|
799
|
+
readonly groups: {
|
|
800
|
+
readonly title: {
|
|
801
|
+
readonly description: "What their role is called. Without a kind, a job title or, failing one, their profile headline.";
|
|
802
|
+
readonly leaves: {
|
|
803
|
+
readonly value: Leaf;
|
|
804
|
+
};
|
|
805
|
+
readonly kinds: {
|
|
806
|
+
readonly exact: "Their job title, never a headline.";
|
|
807
|
+
readonly headline: "Their profile headline, used as a title.";
|
|
808
|
+
};
|
|
809
|
+
};
|
|
810
|
+
};
|
|
811
|
+
readonly leaves: {
|
|
812
|
+
readonly change: {
|
|
813
|
+
readonly type: "JobChange";
|
|
814
|
+
readonly description: "Whether they changed jobs, and to what.";
|
|
815
|
+
};
|
|
816
|
+
readonly change_status: {
|
|
817
|
+
readonly type: "JobChangeStatus";
|
|
818
|
+
readonly description: "The job-change verdict alone.";
|
|
819
|
+
};
|
|
820
|
+
};
|
|
821
|
+
};
|
|
822
|
+
readonly record: {
|
|
823
|
+
readonly description: "A provider's own record of the person.";
|
|
824
|
+
readonly leaves: {
|
|
825
|
+
readonly id: Leaf;
|
|
826
|
+
};
|
|
827
|
+
};
|
|
828
|
+
};
|
|
829
|
+
readonly company: {
|
|
830
|
+
readonly name: {
|
|
831
|
+
readonly description: "The company's name.";
|
|
832
|
+
readonly leaves: {
|
|
833
|
+
readonly value: Leaf;
|
|
834
|
+
};
|
|
835
|
+
readonly kinds: {
|
|
836
|
+
readonly legal: "As registered with a government.";
|
|
837
|
+
};
|
|
838
|
+
};
|
|
839
|
+
readonly domain: {
|
|
840
|
+
readonly description: "The company's web domain.";
|
|
841
|
+
readonly leaves: {
|
|
842
|
+
readonly value: Leaf;
|
|
843
|
+
};
|
|
844
|
+
};
|
|
845
|
+
readonly website: {
|
|
846
|
+
readonly description: "The company's website.";
|
|
847
|
+
readonly leaves: {
|
|
848
|
+
readonly url: Leaf;
|
|
849
|
+
};
|
|
850
|
+
};
|
|
851
|
+
readonly linkedin: {
|
|
852
|
+
readonly description: "The company's LinkedIn page.";
|
|
853
|
+
readonly leaves: {
|
|
854
|
+
readonly url: Leaf;
|
|
855
|
+
};
|
|
856
|
+
};
|
|
857
|
+
readonly phone: {
|
|
858
|
+
readonly description: "A phone number for the company.";
|
|
859
|
+
readonly leaves: {
|
|
860
|
+
readonly value: Leaf;
|
|
861
|
+
};
|
|
862
|
+
};
|
|
863
|
+
readonly industry: {
|
|
864
|
+
readonly description: "The industry the company is in.";
|
|
865
|
+
readonly leaves: {
|
|
866
|
+
readonly value: Leaf;
|
|
867
|
+
};
|
|
868
|
+
};
|
|
869
|
+
readonly record: {
|
|
870
|
+
readonly description: "A provider's own record of the company.";
|
|
871
|
+
readonly leaves: {
|
|
872
|
+
readonly id: Leaf;
|
|
873
|
+
};
|
|
874
|
+
};
|
|
875
|
+
};
|
|
876
|
+
readonly job: {
|
|
877
|
+
readonly posting: {
|
|
878
|
+
readonly description: "A job posting.";
|
|
879
|
+
readonly groups: {
|
|
880
|
+
readonly title: {
|
|
881
|
+
readonly description: "The posting's title. Not a person's job title.";
|
|
882
|
+
readonly leaves: {
|
|
883
|
+
readonly value: Leaf;
|
|
884
|
+
};
|
|
885
|
+
};
|
|
886
|
+
};
|
|
887
|
+
};
|
|
888
|
+
};
|
|
889
|
+
readonly podcast: {
|
|
890
|
+
readonly name: {
|
|
891
|
+
readonly description: "A podcast's name.";
|
|
892
|
+
readonly leaves: {
|
|
893
|
+
readonly value: Leaf;
|
|
894
|
+
};
|
|
895
|
+
};
|
|
896
|
+
readonly website: {
|
|
897
|
+
readonly description: "A podcast's own page.";
|
|
898
|
+
readonly leaves: {
|
|
899
|
+
readonly url: Leaf;
|
|
900
|
+
};
|
|
901
|
+
};
|
|
902
|
+
};
|
|
903
|
+
readonly post: {
|
|
904
|
+
readonly title: {
|
|
905
|
+
readonly description: "A social or business post's title.";
|
|
906
|
+
readonly leaves: {
|
|
907
|
+
readonly value: Leaf;
|
|
908
|
+
};
|
|
909
|
+
};
|
|
910
|
+
readonly author: {
|
|
911
|
+
readonly description: "A post's author, who may be a person or a company.";
|
|
912
|
+
readonly groups: {
|
|
913
|
+
readonly name: {
|
|
914
|
+
readonly description: "The author's name.";
|
|
915
|
+
readonly leaves: {
|
|
916
|
+
readonly value: Leaf;
|
|
917
|
+
};
|
|
918
|
+
};
|
|
919
|
+
};
|
|
920
|
+
};
|
|
921
|
+
};
|
|
922
|
+
readonly page: {
|
|
923
|
+
readonly title: {
|
|
924
|
+
readonly description: "A web page's title.";
|
|
925
|
+
readonly leaves: {
|
|
926
|
+
readonly value: Leaf;
|
|
927
|
+
};
|
|
928
|
+
};
|
|
929
|
+
};
|
|
930
|
+
readonly entity: {
|
|
931
|
+
readonly name: {
|
|
932
|
+
readonly description: "A person's or company's name.";
|
|
933
|
+
readonly leaves: {
|
|
934
|
+
readonly value: Leaf;
|
|
935
|
+
};
|
|
936
|
+
};
|
|
937
|
+
readonly email: {
|
|
938
|
+
readonly description: "An email address for a person or company.";
|
|
939
|
+
readonly leaves: {
|
|
940
|
+
readonly value: Leaf;
|
|
941
|
+
};
|
|
942
|
+
};
|
|
943
|
+
readonly phone: {
|
|
944
|
+
readonly description: "A phone number for a person or company.";
|
|
945
|
+
readonly leaves: {
|
|
946
|
+
readonly value: Leaf;
|
|
947
|
+
};
|
|
948
|
+
};
|
|
949
|
+
readonly linkedin: {
|
|
950
|
+
readonly description: "A person's or company's LinkedIn page.";
|
|
951
|
+
readonly leaves: {
|
|
952
|
+
readonly url: Leaf;
|
|
953
|
+
};
|
|
954
|
+
};
|
|
955
|
+
readonly record: {
|
|
956
|
+
readonly description: "A provider's own record of a person or company.";
|
|
957
|
+
readonly leaves: {
|
|
958
|
+
readonly id: Leaf;
|
|
959
|
+
};
|
|
960
|
+
};
|
|
961
|
+
};
|
|
962
|
+
};
|
|
963
|
+
|
|
964
|
+
type Catalog = typeof FIELD_CATALOG;
|
|
965
|
+
type GroupLeaves<TGroup> = TGroup extends {
|
|
966
|
+
leaves: infer TLeaves;
|
|
967
|
+
} ? {
|
|
968
|
+
readonly [Leaf in keyof TLeaves]?: unknown;
|
|
969
|
+
} : unknown;
|
|
970
|
+
type CatalogGroupFields<TGroup> = GroupLeaves<TGroup> & (TGroup extends {
|
|
971
|
+
kinds: infer TKinds;
|
|
972
|
+
} ? {
|
|
973
|
+
readonly [Kind in keyof TKinds]?: GroupLeaves<TGroup>;
|
|
974
|
+
} : unknown) & (TGroup extends {
|
|
975
|
+
groups: infer TGroups;
|
|
976
|
+
} ? {
|
|
977
|
+
readonly [Child in keyof TGroups]?: CatalogGroupFields<TGroups[Child]>;
|
|
978
|
+
} : unknown);
|
|
979
|
+
/** Every field the catalog defines, as `result.fields` lays them out. */
|
|
980
|
+
type CatalogFields = {
|
|
981
|
+
readonly [Entity in keyof Catalog]?: {
|
|
982
|
+
readonly [Group in keyof Catalog[Entity]]?: CatalogGroupFields<Catalog[Entity][Group]>;
|
|
983
|
+
};
|
|
984
|
+
} & {
|
|
985
|
+
/** Provider-specific fields, `provider.<provider>.<...>.<leaf>`. */
|
|
986
|
+
readonly provider?: Readonly<Record<string, unknown>>;
|
|
987
|
+
};
|
|
988
|
+
/**
|
|
989
|
+
* The values a result is known to have, by field catalog id and short name,
|
|
990
|
+
* each ending in a leaf: `fields.person.email.value`,
|
|
991
|
+
* `fields.person.email.work.value`, `fields.email.value`. Declared lists are
|
|
992
|
+
* at `fields.<list>.value`, as their getter returns them. A value whose
|
|
993
|
+
* meaning is not known is absent; read it from `response`. Reading a field
|
|
994
|
+
* two outputs could be throws, naming both.
|
|
995
|
+
*/
|
|
996
|
+
type ToolResultFields<TExtracted extends Record<string, unknown>, TListValues extends Record<string, unknown>> = CatalogFields & {
|
|
997
|
+
readonly [K in keyof TExtracted]?: {
|
|
998
|
+
readonly value: TExtracted[K] | null;
|
|
999
|
+
};
|
|
1000
|
+
} & {
|
|
1001
|
+
readonly [K in keyof TListValues]?: {
|
|
1002
|
+
readonly value: TListValues[K];
|
|
1003
|
+
};
|
|
1004
|
+
};
|
|
701
1005
|
/**
|
|
702
1006
|
* Customer pricing reported by the execution API, never provider spend.
|
|
703
1007
|
* `credits_charged` and `cost_usd` describe the price of the original call;
|
|
@@ -792,6 +1096,9 @@ type BasicToolExecuteResultAccessors<TExtracted extends Record<string, unknown>
|
|
|
792
1096
|
extractedLists: {
|
|
793
1097
|
[K in keyof TLists]: BasicToolResultListAccessor<TLists[K]>;
|
|
794
1098
|
};
|
|
1099
|
+
readonly fields: ToolResultFields<TExtracted, {
|
|
1100
|
+
[K in keyof TLists]: TLists[K][];
|
|
1101
|
+
}>;
|
|
795
1102
|
};
|
|
796
1103
|
/** Public source-SDK result for new Plays; receipts retain the canonical form. */
|
|
797
1104
|
type BasicToolExecuteResult<TResult = unknown, TMeta = Record<string, unknown>, TExtracted extends Record<string, unknown> = Partial<DeeplineGetterValueMap>, TLists extends Record<string, Record<string, unknown>> = Record<string, Record<string, unknown>>> = BasicToolExecuteResultBase<TResult, TMeta> & BasicToolExecuteResultAccessors<TExtracted, TLists>;
|
|
@@ -816,6 +1123,10 @@ type ToolExecuteResultBase<TResult = unknown, TMeta = Record<string, unknown>> =
|
|
|
816
1123
|
toolResponse: ToolResponseEnvelope<TResult, TMeta>;
|
|
817
1124
|
extractedValues: Record<string, ToolResultTargetAccessor>;
|
|
818
1125
|
extractedLists: Record<string, ToolResultListAccessor>;
|
|
1126
|
+
/** One field by id or short name, as `fields` resolves it. */
|
|
1127
|
+
field(name: string): unknown;
|
|
1128
|
+
/** The complete parsed provider response (`toolResponse.rawV2`). */
|
|
1129
|
+
readonly response: unknown;
|
|
819
1130
|
/** Convenience alias for play code. Serialized output uses toolResponse. */
|
|
820
1131
|
toolOutput: ToolResponseEnvelope<TResult, TMeta>;
|
|
821
1132
|
_metadata: {
|
|
@@ -844,14 +1155,21 @@ type ToolExecuteResultAccessors<TExtracted extends Record<string, unknown> = Par
|
|
|
844
1155
|
extractedLists: {
|
|
845
1156
|
[K in keyof TLists]: ToolResultListAccessor<TLists[K]>;
|
|
846
1157
|
};
|
|
1158
|
+
readonly fields: ToolResultFields<TExtracted, {
|
|
1159
|
+
[K in keyof TLists]: PlayDataset<TLists[K]>;
|
|
1160
|
+
}>;
|
|
847
1161
|
};
|
|
848
1162
|
/**
|
|
849
1163
|
* Canonical result returned by Deepline tool execution.
|
|
850
1164
|
*
|
|
851
|
-
*
|
|
852
|
-
*
|
|
1165
|
+
* Known values: `fields.person.email.value`, `fields.email.value`, and a
|
|
1166
|
+
* declared list at `fields.<list>.value`; or `field('person.email.value')`.
|
|
1167
|
+
* A value whose meaning is not known is absent: read it from `response`, the
|
|
1168
|
+
* complete provider response. Metadata: `toolResponse.meta`. The older
|
|
1169
|
+
* getters `extractedValues.<name>.get()` and `extractedLists.<name>.get()`
|
|
1170
|
+
* return the same values and keep working.
|
|
853
1171
|
*
|
|
854
|
-
*
|
|
1172
|
+
* Edition 10 and later Plays receive ordinary arrays from
|
|
855
1173
|
* list `.get()` synchronously; persist explicitly with deepline.dataset. Lazy or
|
|
856
1174
|
* incomplete lists throw: use readList(result, path) for explicit dataset access.
|
|
857
1175
|
* Provider pagination requires a separate request; getters never fetch it.
|