deepline 0.3.466 → 0.3.468
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/client-core.ts +41 -2
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +17 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +325 -44
- package/dist/bundling-sources/shared_libs/plays/field-catalog.ts +15 -0
- package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +51 -6
- package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +37 -1
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +2 -1
- package/dist/bundling-sources/shared_libs/product-notifications/default-policy.ts +22 -1
- package/dist/cli/{auth-HYIPYSKK.mjs → auth-CXQRTOBC.mjs} +5 -5
- package/dist/cli/auth-MDWIVGZQ.js +41 -0
- package/dist/cli/{billing-5S6SGBUP.mjs → billing-HDKO5VQI.mjs} +44 -6
- package/dist/cli/{billing-NG62QGPT.js → billing-JSIPTXM6.js} +115 -77
- package/dist/cli/{chunk-EOKUL6XS.js → chunk-2NE3LCEA.js} +5 -5
- package/dist/cli/{chunk-22BKA2QL.js → chunk-37Z2W7OS.js} +26 -26
- package/dist/cli/{chunk-7YDN6AEK.mjs → chunk-3RGWTKK3.mjs} +10 -0
- package/dist/cli/{chunk-LDEJ4NUP.js → chunk-54CKAYKK.js} +13 -13
- package/dist/cli/{chunk-RGRSUMN6.js → chunk-54SVGPMK.js} +5 -5
- package/dist/cli/{chunk-B7BNWOG6.js → chunk-5RXVB6UK.js} +3 -3
- package/dist/cli/{chunk-QMHBWFU5.mjs → chunk-6PN2RUXL.mjs} +1 -1
- package/dist/cli/{chunk-MTH7WIE3.js → chunk-747ZYPXB.js} +53 -53
- package/dist/cli/{chunk-UHAKSLL2.mjs → chunk-7PBIHKB4.mjs} +11 -1
- package/dist/cli/{chunk-R2SQN2CD.js → chunk-AXTZID4V.js} +6 -6
- package/dist/cli/{chunk-IEQPOBTK.mjs → chunk-CHD7NMZD.mjs} +1 -1
- package/dist/cli/{chunk-V27TVT7P.mjs → chunk-CXYMJSRQ.mjs} +1 -1
- package/dist/cli/{chunk-NJ6KQLMO.mjs → chunk-DDUCF63F.mjs} +11 -11
- package/dist/cli/{chunk-CMXFOZVG.js → chunk-DQHMXKDT.js} +258 -258
- package/dist/cli/{chunk-ZBWKWMSH.js → chunk-ECY6QP3M.js} +16 -16
- package/dist/cli/{chunk-H5MYPDO2.mjs → chunk-EOWMLNCV.mjs} +1 -1
- package/dist/cli/{chunk-YHPUJI7G.mjs → chunk-ERQJLYIS.mjs} +5 -5
- package/dist/cli/{chunk-A7MWUG5H.js → chunk-EXXXRDCC.js} +1 -1
- package/dist/cli/{chunk-5EUJKY3G.mjs → chunk-F3YSH2CY.mjs} +3 -3
- package/dist/cli/{chunk-7IWYO475.js → chunk-F52TY2QC.js} +21 -21
- package/dist/cli/{chunk-QZKSG7XZ.js → chunk-FLH4D33O.js} +36 -36
- package/dist/cli/{chunk-QWMXP2IP.mjs → chunk-FPFBYOR6.mjs} +2 -2
- package/dist/cli/{chunk-OGCAGZXO.mjs → chunk-FVYAEBGO.mjs} +23 -2
- package/dist/cli/{chunk-F6H74EFB.mjs → chunk-GCHTTVC7.mjs} +2 -2
- package/dist/cli/{chunk-HIMV32ZX.js → chunk-HNP5V5BN.js} +23 -2
- package/dist/cli/{chunk-PEUWKPY4.js → chunk-LQ2KVMOD.js} +4 -4
- package/dist/cli/{chunk-6CYRIFZ3.mjs → chunk-NOQRM7LV.mjs} +2 -2
- package/dist/cli/{chunk-JLZKF7EY.js → chunk-NPZBE64X.js} +11 -1
- package/dist/cli/{chunk-VSEKVRAP.mjs → chunk-NZQPALPW.mjs} +2 -2
- package/dist/cli/{chunk-NYNNNOJW.js → chunk-OAF5U6SN.js} +51 -51
- package/dist/cli/{chunk-46YQQOTC.mjs → chunk-PZZNEIE3.mjs} +5 -5
- package/dist/cli/{chunk-6R36QIG4.mjs → chunk-Q7NNU6KB.mjs} +4 -4
- package/dist/cli/{chunk-VVCMP45C.js → chunk-QI2LOENC.js} +3 -3
- package/dist/cli/{chunk-RCMT6AZ5.mjs → chunk-QKGHYF7A.mjs} +1 -1
- package/dist/cli/{chunk-OB5NON4G.js → chunk-QWJ3V3GI.js} +8 -8
- package/dist/cli/{chunk-4QJ63YHC.js → chunk-RSMFUWCP.js} +8 -8
- package/dist/cli/{chunk-WKOWXTDR.mjs → chunk-SFWU7IJJ.mjs} +2 -2
- package/dist/cli/{chunk-L3U44YVO.js → chunk-T5GRG37B.js} +5 -5
- package/dist/cli/{chunk-JLE5UYZV.mjs → chunk-TNOTKGZC.mjs} +2 -2
- package/dist/cli/{chunk-RSXOGXGX.mjs → chunk-TVDBGEVP.mjs} +1 -1
- package/dist/cli/{chunk-SWUSDFG2.js → chunk-U37BWQZH.js} +9 -9
- package/dist/cli/{chunk-7QITO7XO.mjs → chunk-UA42Q7R3.mjs} +4 -4
- package/dist/cli/{chunk-QTTYIPFY.mjs → chunk-UNLLMHY7.mjs} +1 -1
- package/dist/cli/{chunk-FWHRCZET.mjs → chunk-UU4GMU7A.mjs} +5 -5
- package/dist/cli/{chunk-6P4OYABU.js → chunk-V6OMS7E2.js} +6 -6
- package/dist/cli/{chunk-RRCVAVM7.js → chunk-VPCS5KOF.js} +2 -2
- package/dist/cli/{chunk-SQFBLBYC.mjs → chunk-WNS5YEZN.mjs} +2 -2
- package/dist/cli/{chunk-MUQAKLBP.mjs → chunk-X3RAGNNZ.mjs} +1 -1
- package/dist/cli/{chunk-W4XWGNW4.mjs → chunk-X4U763KU.mjs} +3 -3
- package/dist/cli/{chunk-I2TCWIW2.mjs → chunk-XSX6TJUA.mjs} +1 -1
- package/dist/cli/{chunk-HOFXQYRF.js → chunk-YD2KV7RT.js} +7 -7
- package/dist/cli/{chunk-NQH7E3F2.js → chunk-YI6TIURR.js} +3 -3
- package/dist/cli/{chunk-5BEKJUOK.js → chunk-ZA6UUGOZ.js} +2 -2
- package/dist/cli/{chunk-3DVJ2IPG.js → chunk-ZJRHPVJU.js} +183 -173
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-AD2DLLLL.js → csv-EIXI4D7F.js} +13 -13
- package/dist/cli/{csv-ZGZX2IIP.mjs → csv-H2656YID.mjs} +4 -4
- package/dist/cli/{db-NBY4LHAY.js → db-7AQJE7CP.js} +27 -27
- package/dist/cli/{db-LUFEKPEK.mjs → db-CABNKWAS.mjs} +6 -6
- package/dist/cli/{describe-MLXMC47U.mjs → describe-5RUFO5ZR.mjs} +20 -20
- package/dist/cli/describe-ODBO2AMO.js +48 -0
- 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-JKVWM3P4.mjs → executions-4GUJEBEC.mjs} +6 -6
- package/dist/cli/{executions-HDJMKNBR.js → executions-OHOBXCPD.js} +8 -8
- package/dist/cli/{feedback-VXMP7HDF.js → feedback-JIJWTK2H.js} +8 -8
- package/dist/cli/{feedback-7E5Z4ZO5.mjs → feedback-N3CSL3OV.mjs} +4 -4
- package/dist/cli/git-TWNEROIX.js +25 -0
- package/dist/cli/{git-UFMRAGMY.mjs → git-Z5DTMOAQ.mjs} +5 -5
- package/dist/cli/index.js +139 -139
- package/dist/cli/index.mjs +41 -41
- package/dist/cli/{legacy-noops-BDULCVGD.mjs → legacy-noops-XTLI64KX.mjs} +5 -5
- package/dist/cli/{legacy-noops-4QKREY4K.js → legacy-noops-ZEJRXMTS.js} +8 -8
- package/dist/cli/{monitors-S6TDJYCK.mjs → monitors-3MDJEWZB.mjs} +7 -7
- package/dist/cli/{monitors-LNNSTELC.js → monitors-E3TTJB3S.js} +91 -91
- package/dist/cli/{org-OWM3IGOK.js → org-722NMZ4T.js} +113 -72
- package/dist/cli/{org-EEEMWKQ2.mjs → org-AJUXWQ6P.mjs} +51 -10
- package/dist/cli/{pages-7JF6AKDI.js → pages-CPCWTTPD.js} +17 -17
- package/dist/cli/{pages-ZYYMQUDX.mjs → pages-Y6AC7PBJ.mjs} +6 -6
- package/dist/cli/{play-WLAFXAHR.js → play-ACQ54HNN.js} +305 -305
- package/dist/cli/{play-5Z3E7KL6.mjs → play-TYHP7UNL.mjs} +18 -18
- package/dist/cli/{providers-JUT7IYD3.mjs → providers-BSXILLKJ.mjs} +6 -6
- package/dist/cli/{providers-TTDFQQU2.js → providers-UDG7V7WU.js} +9 -9
- package/dist/cli/{quickstart-P4TL4NWJ.mjs → quickstart-66MNFG2G.mjs} +4 -4
- package/dist/cli/{quickstart-OZYEGICI.js → quickstart-ZW7VOPFN.js} +6 -6
- package/dist/cli/{run-CM6OZUBR.mjs → run-JSAI5PRF.mjs} +25 -25
- package/dist/cli/{run-BYGE4LUB.js → run-KPS3O2VA.js} +40 -40
- package/dist/cli/{search-RZRJ73YL.mjs → search-GQGB3JIE.mjs} +7 -7
- package/dist/cli/search-JUXEQ5HQ.js +32 -0
- package/dist/cli/{secrets-DHI6ZMKE.mjs → secrets-LGGKGT3A.mjs} +6 -6
- package/dist/cli/{secrets-XLTN3SCL.js → secrets-UVQKUCBM.js} +15 -15
- package/dist/cli/{sessions-MZD5WZBT.mjs → sessions-JYPDKPVA.mjs} +5 -5
- package/dist/cli/{sessions-6NCQQXVK.js → sessions-MPZ42HUS.js} +6 -6
- package/dist/cli/{settings-S6GQ4XFZ.mjs → settings-5UVSGJ72.mjs} +11 -11
- package/dist/cli/{settings-JJH72W5V.js → settings-E7VTIIRT.js} +78 -78
- package/dist/cli/{setup-ZJ4G54XN.mjs → setup-FM6VKRER.mjs} +9 -9
- package/dist/cli/{setup-3BIOG6N2.js → setup-NQ5BQ3ZY.js} +44 -44
- package/dist/cli/skills-OLIMNV35.js +31 -0
- package/dist/cli/{skills-FBH4REPB.mjs → skills-WOCXEASX.mjs} +7 -7
- package/dist/cli/tools-IZNJT6RU.js +55 -0
- package/dist/cli/{tools-J6YGZTD5.mjs → tools-QZRDZS45.mjs} +18 -18
- package/dist/cli/update-4JVVAYI4.js +33 -0
- package/dist/cli/{update-6CSRALIQ.mjs → update-OW2FEGGG.mjs} +9 -9
- package/dist/cli/{workflow-2ETKYSJV.js → workflow-QJM2ELOS.js} +17 -17
- package/dist/cli/{workflow-3ATSB7HQ.mjs → workflow-QRGUHBKL.mjs} +7 -7
- package/dist/{client-BClp2yrq.d.ts → client-B3tlWsw7.d.ts} +1 -1
- package/dist/{client-ADFHNtFM.d.mts → client-CdJR18SJ.d.mts} +1 -1
- package/dist/{client-core-DWLmmJWo.d.mts → client-core-ByJD7QXj.d.mts} +24 -2
- package/dist/{client-core-BFU73Ttw.d.ts → client-core-CxHBKfE5.d.ts} +24 -2
- package/dist/{compiler-manifest-Cs17yO-H.d.ts → compiler-manifest-D5dARg3M.d.mts} +64 -10
- package/dist/{compiler-manifest-Cs17yO-H.d.mts → compiler-manifest-D5dARg3M.d.ts} +64 -10
- package/dist/{errors-Dee-QpVS.d.ts → errors-BtHHzWL8.d.ts} +1 -1
- package/dist/{errors-qNfvQuRB.d.mts → errors-BveMVPwA.d.mts} +1 -1
- package/dist/{index-BTqNNXmC.d.mts → index-BboApDGD.d.mts} +1 -1
- package/dist/{index-DXTh1Lxe.d.ts → index-C6sovoYP.d.ts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +277 -76
- package/dist/index.mjs +239 -38
- 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-Y3UTWD3W.js +0 -41
- package/dist/cli/describe-Z66CQESH.js +0 -48
- package/dist/cli/git-NNSJKW3V.js +0 -25
- package/dist/cli/search-RIG4LTCS.js +0 -32
- package/dist/cli/skills-ODISCL7S.js +0 -31
- package/dist/cli/tools-IHBHDI4P.js +0 -55
- package/dist/cli/update-5O3HDR5O.js +0 -33
package/dist/index.js
CHANGED
|
@@ -9,10 +9,10 @@ var _chunkHGFFYVXNjs = require('./cli/chunk-HGFFYVXN.js');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk54SVGPMKjs = require('./cli/chunk-54SVGPMK.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk2NE3LCEAjs = require('./cli/chunk-2NE3LCEA.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -23,7 +23,9 @@ var _chunkEOKUL6XSjs = require('./cli/chunk-EOKUL6XS.js');
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
var _chunkNPZBE64Xjs = require('./cli/chunk-NPZBE64X.js');
|
|
27
29
|
|
|
28
30
|
|
|
29
31
|
|
|
@@ -35,7 +37,7 @@ var _chunkVKKVSFRDjs = require('./cli/chunk-VKKVSFRD.js');
|
|
|
35
37
|
|
|
36
38
|
|
|
37
39
|
|
|
38
|
-
var
|
|
40
|
+
var _chunkZJRHPVJUjs = require('./cli/chunk-ZJRHPVJU.js');
|
|
39
41
|
|
|
40
42
|
|
|
41
43
|
var _chunkE4CABWXLjs = require('./cli/chunk-E4CABWXL.js');
|
|
@@ -67,11 +69,11 @@ var _chunkIF75RD6Ujs = require('./cli/chunk-IF75RD6U.js');
|
|
|
67
69
|
|
|
68
70
|
|
|
69
71
|
|
|
70
|
-
var
|
|
72
|
+
var _chunkYI6TIURRjs = require('./cli/chunk-YI6TIURR.js');
|
|
71
73
|
|
|
72
74
|
|
|
73
75
|
|
|
74
|
-
var
|
|
76
|
+
var _chunkLQ2KVMODjs = require('./cli/chunk-LQ2KVMOD.js');
|
|
75
77
|
|
|
76
78
|
|
|
77
79
|
|
|
@@ -88,7 +90,7 @@ require('./cli/chunk-XNYIZMNQ.js');
|
|
|
88
90
|
|
|
89
91
|
|
|
90
92
|
var _chunkDIAWYWT5js = require('./cli/chunk-DIAWYWT5.js');
|
|
91
|
-
require('./cli/chunk-
|
|
93
|
+
require('./cli/chunk-EXXXRDCC.js');
|
|
92
94
|
require('./cli/chunk-OG64RBAC.js');
|
|
93
95
|
require('./cli/chunk-COGTRVWW.js');
|
|
94
96
|
|
|
@@ -929,7 +931,7 @@ function buildEmailStatusTarget(result, descriptor) {
|
|
|
929
931
|
if (!firstPath) return null;
|
|
930
932
|
return {
|
|
931
933
|
path: firstPath,
|
|
932
|
-
value:
|
|
934
|
+
value: _chunkNPZBE64Xjs.buildEmailStatus.call(void 0, { config, values })
|
|
933
935
|
};
|
|
934
936
|
}
|
|
935
937
|
function findFirstTargetByKey(result, target, depth = 0, path = []) {
|
|
@@ -1005,7 +1007,7 @@ function normalizeJobChangeStatus(value) {
|
|
|
1005
1007
|
if (["false", "no", "same", "no_change"].includes(normalized))
|
|
1006
1008
|
return "no_change";
|
|
1007
1009
|
if (["left", "left_company"].includes(normalized)) return "left_company";
|
|
1008
|
-
if (
|
|
1010
|
+
if (_chunkNPZBE64Xjs.JOB_CHANGE_STATUS_VALUES.includes(normalized)) {
|
|
1009
1011
|
return normalized;
|
|
1010
1012
|
}
|
|
1011
1013
|
return "unknown";
|
|
@@ -1347,50 +1349,243 @@ function listTableNamespace(toolId, name, path, discriminator) {
|
|
|
1347
1349
|
return _chunkXDVT3GOMjs.normalizeTableNamespace.call(void 0, `${prefix}_${hash}`);
|
|
1348
1350
|
}
|
|
1349
1351
|
}
|
|
1350
|
-
function
|
|
1351
|
-
|
|
1352
|
+
function oneValue(values, toolId, name) {
|
|
1353
|
+
if (values.length > 1) {
|
|
1354
|
+
throw new Error(
|
|
1355
|
+
`${toolId} has ${values.length} values for "${name}". Read ${name}.values.`
|
|
1356
|
+
);
|
|
1357
|
+
}
|
|
1358
|
+
return _nullishCoalesce(values[0], () => ( null));
|
|
1359
|
+
}
|
|
1360
|
+
function extractorBindings(extractors) {
|
|
1352
1361
|
return Object.entries(extractors).flatMap(([name, descriptor]) => {
|
|
1353
|
-
|
|
1354
|
-
const id = _chunkJLZKF7EYjs.fieldOfName.call(void 0, name, descriptor.means);
|
|
1362
|
+
const id = _chunkNPZBE64Xjs.fieldOfName.call(void 0, name, descriptor.means);
|
|
1355
1363
|
return id ? [{ name, id }] : [];
|
|
1356
1364
|
});
|
|
1357
1365
|
}
|
|
1358
|
-
function
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
}
|
|
1364
|
-
function readResultField(result, name) {
|
|
1365
|
-
const bindings = resultFieldBindings(result);
|
|
1366
|
-
const binding = _chunkJLZKF7EYjs.resolveFieldName.call(void 0, name, bindings, resultOutputNames(result));
|
|
1366
|
+
function readField(source, name) {
|
|
1367
|
+
const ending = /^(.*)\.(value|values)$/.exec(name);
|
|
1368
|
+
const base = _nullishCoalesce(_optionalChain([ending, 'optionalAccess', _59 => _59[1]]), () => ( name));
|
|
1369
|
+
const target = _chunkNPZBE64Xjs.isFieldId.call(void 0, `${base}.value`) ? `${base}.value` : base;
|
|
1370
|
+
const binding = _chunkNPZBE64Xjs.resolveFieldName.call(void 0, target, source.bindings, source.outputs);
|
|
1367
1371
|
if (!binding) {
|
|
1368
|
-
const ids = [...new Set(bindings.map((known) => known.id))];
|
|
1372
|
+
const ids = [...new Set(source.bindings.map((known) => known.id))];
|
|
1373
|
+
throw new Error(
|
|
1374
|
+
`${source.toolId} has no field "${name}". ${ids.length > 0 ? `Its fields: ${ids.join(", ")}.` : "It declares no catalog fields."} Other values are in response.`
|
|
1375
|
+
);
|
|
1376
|
+
}
|
|
1377
|
+
if (_optionalChain([ending, 'optionalAccess', _60 => _60[2]]) === "values") return source.values(binding.name);
|
|
1378
|
+
const list = _optionalChain([source, 'access', _61 => _61.itemList, 'optionalCall', _62 => _62(binding.name)]);
|
|
1379
|
+
if (list) {
|
|
1369
1380
|
throw new Error(
|
|
1370
|
-
|
|
1381
|
+
`"${base}" is a field of each item on ${source.toolId}. Read it from result.rows('${list}').`
|
|
1371
1382
|
);
|
|
1372
1383
|
}
|
|
1373
|
-
return
|
|
1384
|
+
return oneValue(source.values(binding.name), source.toolId, base);
|
|
1374
1385
|
}
|
|
1375
|
-
function
|
|
1386
|
+
function buildFieldTree(places) {
|
|
1376
1387
|
const tree = {};
|
|
1377
|
-
const
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
node = node[key] ??= {};
|
|
1386
|
-
}
|
|
1387
|
-
Object.defineProperty(node, entry.path[entry.path.length - 1], {
|
|
1388
|
-
get: entry.list ? () => result.extractedLists[entry.name].get() : () => readResultField(result, entry.name),
|
|
1389
|
-
enumerable: true
|
|
1388
|
+
for (const { parent, value, values, serializes } of places) {
|
|
1389
|
+
const node = parent.reduce(
|
|
1390
|
+
(at, key) => at[key] ??= {},
|
|
1391
|
+
tree
|
|
1392
|
+
);
|
|
1393
|
+
Object.defineProperties(node, {
|
|
1394
|
+
value: { get: value, enumerable: serializes === "value" },
|
|
1395
|
+
values: { get: values, enumerable: serializes === "values" }
|
|
1390
1396
|
});
|
|
1391
1397
|
}
|
|
1392
1398
|
return tree;
|
|
1393
1399
|
}
|
|
1400
|
+
function fieldPlaces(source, serializes, lists = []) {
|
|
1401
|
+
return _chunkNPZBE64Xjs.fieldPaths.call(void 0, source.bindings, source.outputs, lists).filter((entry) => !entry.list).map((entry) => ({
|
|
1402
|
+
parent: entry.path.slice(0, -1),
|
|
1403
|
+
value: () => readField(source, entry.name),
|
|
1404
|
+
values: () => entry.output === null ? readField(source, entry.name) : source.values(entry.output),
|
|
1405
|
+
serializes: entry.output === null ? void 0 : serializes(entry.output)
|
|
1406
|
+
}));
|
|
1407
|
+
}
|
|
1408
|
+
function extractorValues(root, name, descriptor, paths) {
|
|
1409
|
+
for (const path of paths) {
|
|
1410
|
+
for (const candidate of candidateResultPaths(path)) {
|
|
1411
|
+
const found = getValuesAtPath(root, candidate).flat().flatMap((value) => {
|
|
1412
|
+
const accepted = acceptedTargetValue(name, value);
|
|
1413
|
+
return accepted === void 0 ? [] : [accepted];
|
|
1414
|
+
});
|
|
1415
|
+
if (found.length > 0) {
|
|
1416
|
+
return found.map(
|
|
1417
|
+
(value) => coerceToEnum(applyExtractorTransforms(value, descriptor), descriptor)
|
|
1418
|
+
);
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
}
|
|
1422
|
+
return [];
|
|
1423
|
+
}
|
|
1424
|
+
function isComputedValue(descriptor) {
|
|
1425
|
+
return Boolean(descriptor.emailStatus || _optionalChain([descriptor, 'access', _63 => _63.overrides, 'optionalAccess', _64 => _64.length]));
|
|
1426
|
+
}
|
|
1427
|
+
function presentValues(value) {
|
|
1428
|
+
return value === null || value === void 0 ? [] : [value];
|
|
1429
|
+
}
|
|
1430
|
+
function firstFound(readers) {
|
|
1431
|
+
for (const read of readers) {
|
|
1432
|
+
const found = read();
|
|
1433
|
+
if (found.length > 0) return found;
|
|
1434
|
+
}
|
|
1435
|
+
return [];
|
|
1436
|
+
}
|
|
1437
|
+
function declaredListNames(result) {
|
|
1438
|
+
const aliasOf = new Map(
|
|
1439
|
+
Object.entries(_nullishCoalesce(result._metadata.listExtractorAliases, () => ( {}))).map(
|
|
1440
|
+
([alias, source]) => [source, alias]
|
|
1441
|
+
)
|
|
1442
|
+
);
|
|
1443
|
+
return [
|
|
1444
|
+
...new Set(
|
|
1445
|
+
(_nullishCoalesce(result._metadata.listExtractorPaths, () => ( []))).flatMap((path) => {
|
|
1446
|
+
const name = listNameFromDeclaredPath(path);
|
|
1447
|
+
return name ? [_nullishCoalesce(aliasOf.get(name), () => ( name))] : [];
|
|
1448
|
+
})
|
|
1449
|
+
)
|
|
1450
|
+
];
|
|
1451
|
+
}
|
|
1452
|
+
function resultFieldSource(result) {
|
|
1453
|
+
const extractors = _nullishCoalesce(result._metadata.extractors, () => ( {}));
|
|
1454
|
+
const root = resultRootOf(result);
|
|
1455
|
+
const getter = (output) => presentValues(_optionalChain([result, 'access', _65 => _65.extractedValues, 'access', _66 => _66[output], 'optionalAccess', _67 => _67.get, 'call', _68 => _68()]));
|
|
1456
|
+
const atRoot = (output) => {
|
|
1457
|
+
const descriptor = extractors[output];
|
|
1458
|
+
return extractorValues(
|
|
1459
|
+
root,
|
|
1460
|
+
output,
|
|
1461
|
+
descriptor,
|
|
1462
|
+
descriptor.paths.filter((path) => !path.includes("[*]"))
|
|
1463
|
+
);
|
|
1464
|
+
};
|
|
1465
|
+
const inRows = (output) => {
|
|
1466
|
+
if (declaredListNames(result).length !== 1) return [];
|
|
1467
|
+
const id = _chunkNPZBE64Xjs.fieldOfName.call(void 0, output, extractors[output].means);
|
|
1468
|
+
return readResultRows(result).flatMap(
|
|
1469
|
+
(row) => row.field(id.replace(/\.value$/, ".values"))
|
|
1470
|
+
);
|
|
1471
|
+
};
|
|
1472
|
+
return {
|
|
1473
|
+
toolId: result._metadata.toolId,
|
|
1474
|
+
bindings: extractorBindings(extractors),
|
|
1475
|
+
outputs: [
|
|
1476
|
+
...Object.keys(extractors),
|
|
1477
|
+
...Object.keys(result.extractedLists)
|
|
1478
|
+
],
|
|
1479
|
+
values(output) {
|
|
1480
|
+
const descriptor = extractors[output];
|
|
1481
|
+
return isComputedValue(descriptor) ? getter(output) : firstFound([
|
|
1482
|
+
() => atRoot(output),
|
|
1483
|
+
() => inRows(output),
|
|
1484
|
+
() => extractorValues(root, output, descriptor, descriptor.paths),
|
|
1485
|
+
() => getter(output)
|
|
1486
|
+
]);
|
|
1487
|
+
},
|
|
1488
|
+
itemList(output) {
|
|
1489
|
+
const onResult = isComputedValue(extractors[output]) || atRoot(output).length > 0;
|
|
1490
|
+
const named = declaredListNames(result).filter(
|
|
1491
|
+
(name) => _chunkNPZBE64Xjs.LIST_NAMES.includes(name)
|
|
1492
|
+
);
|
|
1493
|
+
return onResult ? void 0 : named[0];
|
|
1494
|
+
}
|
|
1495
|
+
};
|
|
1496
|
+
}
|
|
1497
|
+
function resultFields(result) {
|
|
1498
|
+
const source = resultFieldSource(result);
|
|
1499
|
+
const lists = Object.keys(result.extractedLists);
|
|
1500
|
+
return buildFieldTree([
|
|
1501
|
+
...fieldPlaces(source, () => "value", lists),
|
|
1502
|
+
...lists.map((name) => ({
|
|
1503
|
+
parent: [name],
|
|
1504
|
+
value: () => oneValue(resultListItems(result, name), source.toolId, name),
|
|
1505
|
+
values: () => result.extractedLists[name].get(),
|
|
1506
|
+
serializes: "values"
|
|
1507
|
+
}))
|
|
1508
|
+
]);
|
|
1509
|
+
}
|
|
1510
|
+
function rowExtractorPaths(paths) {
|
|
1511
|
+
return [
|
|
1512
|
+
...new Set(
|
|
1513
|
+
paths.flatMap((path) => {
|
|
1514
|
+
const wildcard = path.indexOf("[*].");
|
|
1515
|
+
return wildcard < 0 ? [path] : [path, path.slice(wildcard + 4)];
|
|
1516
|
+
})
|
|
1517
|
+
)
|
|
1518
|
+
];
|
|
1519
|
+
}
|
|
1520
|
+
function createToolResultRow(toolId, item, extractors) {
|
|
1521
|
+
const descriptors = Object.fromEntries(
|
|
1522
|
+
Object.entries(extractors).map(([name, descriptor]) => [
|
|
1523
|
+
name,
|
|
1524
|
+
{ ...descriptor, paths: rowExtractorPaths(descriptor.paths) }
|
|
1525
|
+
])
|
|
1526
|
+
);
|
|
1527
|
+
const root = { toolResponse: { raw: item } };
|
|
1528
|
+
const targets = buildTargets(root, descriptors);
|
|
1529
|
+
const values = (output) => {
|
|
1530
|
+
const descriptor = descriptors[output];
|
|
1531
|
+
const target = () => presentValues(_optionalChain([targets, 'access', _69 => _69[output], 'optionalAccess', _70 => _70.value]));
|
|
1532
|
+
return isComputedValue(descriptor) ? target() : firstFound([
|
|
1533
|
+
() => extractorValues(root, output, descriptor, descriptor.paths),
|
|
1534
|
+
target
|
|
1535
|
+
]);
|
|
1536
|
+
};
|
|
1537
|
+
const source = {
|
|
1538
|
+
toolId,
|
|
1539
|
+
bindings: extractorBindings(extractors),
|
|
1540
|
+
outputs: Object.keys(extractors),
|
|
1541
|
+
values
|
|
1542
|
+
};
|
|
1543
|
+
const row = {
|
|
1544
|
+
fields: buildFieldTree(
|
|
1545
|
+
fieldPlaces(
|
|
1546
|
+
source,
|
|
1547
|
+
(output) => values(output).length > 1 ? "values" : "value"
|
|
1548
|
+
)
|
|
1549
|
+
),
|
|
1550
|
+
response: item
|
|
1551
|
+
};
|
|
1552
|
+
Object.defineProperty(row, "field", {
|
|
1553
|
+
value: (name) => readField(source, name),
|
|
1554
|
+
enumerable: false
|
|
1555
|
+
});
|
|
1556
|
+
return row;
|
|
1557
|
+
}
|
|
1558
|
+
function resultListItems(result, name) {
|
|
1559
|
+
return projectToolResultListGetters(
|
|
1560
|
+
result,
|
|
1561
|
+
"array"
|
|
1562
|
+
).extractedLists[name].get();
|
|
1563
|
+
}
|
|
1564
|
+
function selectResultList(result, list) {
|
|
1565
|
+
const toolId = result._metadata.toolId;
|
|
1566
|
+
const declared = declaredListNames(result);
|
|
1567
|
+
if (list === void 0 && declared.length > 1) {
|
|
1568
|
+
throw new Error(
|
|
1569
|
+
`${toolId} has several lists: ${declared.join(", ")}. Name one with result.rows('${declared[0]}').`
|
|
1570
|
+
);
|
|
1571
|
+
}
|
|
1572
|
+
const wanted = _nullishCoalesce(list, () => ( declared[0]));
|
|
1573
|
+
if (wanted !== void 0 && result.extractedLists[wanted]) return wanted;
|
|
1574
|
+
if (wanted !== void 0 && !declared.includes(wanted)) {
|
|
1575
|
+
throw new Error(
|
|
1576
|
+
`${toolId} has no list "${wanted}". Its lists: ${declared.join(", ") || "none"}.`
|
|
1577
|
+
);
|
|
1578
|
+
}
|
|
1579
|
+
throw new Error(
|
|
1580
|
+
`${toolId} returned no declared list; a missing list is not an empty one. Read result.response.`
|
|
1581
|
+
);
|
|
1582
|
+
}
|
|
1583
|
+
function readResultRows(result, list) {
|
|
1584
|
+
const { toolId, extractors = {} } = result._metadata;
|
|
1585
|
+
return resultListItems(result, selectResultList(result, list)).map(
|
|
1586
|
+
(item) => createToolResultRow(toolId, item, extractors)
|
|
1587
|
+
);
|
|
1588
|
+
}
|
|
1394
1589
|
function createToolExecuteResult(input) {
|
|
1395
1590
|
const { callEvidence, ...publicMeta } = _nullishCoalesce(input.meta, () => ( {}));
|
|
1396
1591
|
const result = toResultEnvelope(input.result);
|
|
@@ -1398,7 +1593,7 @@ function createToolExecuteResult(input) {
|
|
|
1398
1593
|
toolResponse: {
|
|
1399
1594
|
raw: result.data,
|
|
1400
1595
|
...input.response && "rawV2" in input.response ? { rawV2: input.response.rawV2 } : {},
|
|
1401
|
-
..._optionalChain([input, 'access',
|
|
1596
|
+
..._optionalChain([input, 'access', _71 => _71.response, 'optionalAccess', _72 => _72.view]) ? { view: input.response.view } : {},
|
|
1402
1597
|
...result.meta ? { meta: result.meta } : {}
|
|
1403
1598
|
}
|
|
1404
1599
|
};
|
|
@@ -1425,7 +1620,7 @@ function createToolExecuteResult(input) {
|
|
|
1425
1620
|
const toolResponse = {
|
|
1426
1621
|
raw: result.data,
|
|
1427
1622
|
...input.response && "rawV2" in input.response ? { rawV2: input.response.rawV2 } : {},
|
|
1428
|
-
..._optionalChain([input, 'access',
|
|
1623
|
+
..._optionalChain([input, 'access', _73 => _73.response, 'optionalAccess', _74 => _74.view]) ? { view: input.response.view } : {},
|
|
1429
1624
|
...result.meta ? { meta: result.meta } : {}
|
|
1430
1625
|
};
|
|
1431
1626
|
const extractedValues = buildExtractedAccessors(targets);
|
|
@@ -1457,13 +1652,19 @@ function createToolExecuteResult(input) {
|
|
|
1457
1652
|
},
|
|
1458
1653
|
fields: {
|
|
1459
1654
|
get() {
|
|
1460
|
-
return
|
|
1655
|
+
return resultFields(this);
|
|
1461
1656
|
},
|
|
1462
1657
|
enumerable: false
|
|
1463
1658
|
},
|
|
1464
1659
|
field: {
|
|
1465
1660
|
value(name) {
|
|
1466
|
-
return
|
|
1661
|
+
return readField(resultFieldSource(this), name);
|
|
1662
|
+
},
|
|
1663
|
+
enumerable: false
|
|
1664
|
+
},
|
|
1665
|
+
rows: {
|
|
1666
|
+
value(list) {
|
|
1667
|
+
return readResultRows(this, list);
|
|
1467
1668
|
},
|
|
1468
1669
|
enumerable: false
|
|
1469
1670
|
}
|
|
@@ -1487,7 +1688,7 @@ function readList(result, selector) {
|
|
|
1487
1688
|
if (declaredList && preservedSerializedListRows(result)) {
|
|
1488
1689
|
return listAccessorDataset(declaredList);
|
|
1489
1690
|
}
|
|
1490
|
-
const found = _optionalChain([findFirstTargetByPath, 'call',
|
|
1691
|
+
const found = _optionalChain([findFirstTargetByPath, 'call', _75 => _75(resultRootOf(result), paths), 'optionalAccess', _76 => _76.value]);
|
|
1491
1692
|
const rows = normalizeRows(found);
|
|
1492
1693
|
if (rows) {
|
|
1493
1694
|
if (declaredList && typeof declaredList.count === "number" && declaredList.count > rows.length) {
|
|
@@ -1505,7 +1706,7 @@ function attachToolResultListDataset(result, input) {
|
|
|
1505
1706
|
result._metadata.lists[input.name] = {
|
|
1506
1707
|
path: input.path,
|
|
1507
1708
|
count: input.count,
|
|
1508
|
-
keys: _nullishCoalesce(_nullishCoalesce(input.keys, () => ( _optionalChain([existing, 'optionalAccess',
|
|
1709
|
+
keys: _nullishCoalesce(_nullishCoalesce(input.keys, () => ( _optionalChain([existing, 'optionalAccess', _77 => _77.keys]))), () => ( {}))
|
|
1509
1710
|
};
|
|
1510
1711
|
const declaredPaths = _nullishCoalesce(result._metadata.listExtractorPaths, () => ( []));
|
|
1511
1712
|
const inputCandidates = new Set(candidateResultPaths(input.path));
|
|
@@ -1713,7 +1914,7 @@ var DeeplineStepProgram = (_class3 = class _DeeplineStepProgram {
|
|
|
1713
1914
|
"steps().step(name, ...) requires a non-empty step name."
|
|
1714
1915
|
);
|
|
1715
1916
|
}
|
|
1716
|
-
const stepResolver = _optionalChain([options, 'optionalAccess',
|
|
1917
|
+
const stepResolver = _optionalChain([options, 'optionalAccess', _78 => _78.runIf]) && !isConditionalStepResolver(resolver) ? new DeeplineConditionalStepResolver(
|
|
1717
1918
|
options.runIf,
|
|
1718
1919
|
resolver,
|
|
1719
1920
|
null
|
|
@@ -1723,9 +1924,9 @@ var DeeplineStepProgram = (_class3 = class _DeeplineStepProgram {
|
|
|
1723
1924
|
...this.steps,
|
|
1724
1925
|
{
|
|
1725
1926
|
name,
|
|
1726
|
-
..._optionalChain([options, 'optionalAccess',
|
|
1727
|
-
..._optionalChain([options, 'optionalAccess',
|
|
1728
|
-
...typeof _optionalChain([options, 'optionalAccess',
|
|
1927
|
+
..._optionalChain([options, 'optionalAccess', _79 => _79.recompute]) === true ? { recompute: true } : {},
|
|
1928
|
+
..._optionalChain([options, 'optionalAccess', _80 => _80.recomputeOnError]) === true ? { recomputeOnError: true } : {},
|
|
1929
|
+
...typeof _optionalChain([options, 'optionalAccess', _81 => _81.staleAfterSeconds]) === "number" ? { staleAfterSeconds: options.staleAfterSeconds } : {},
|
|
1729
1930
|
resolver: stepResolver
|
|
1730
1931
|
}
|
|
1731
1932
|
],
|
|
@@ -1765,13 +1966,13 @@ var DeeplinePlayJobImpl = class {
|
|
|
1765
1966
|
return this.client.getPlayStatus(this.id);
|
|
1766
1967
|
}
|
|
1767
1968
|
async tail(options) {
|
|
1768
|
-
const intervalMs = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
1769
|
-
const onLog = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
1969
|
+
const intervalMs = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _82 => _82.intervalMs]), () => ( 500));
|
|
1970
|
+
const onLog = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _83 => _83.onLog]), () => ( ((line) => console.log(line))));
|
|
1770
1971
|
const terminalStates = /* @__PURE__ */ new Set(["completed", "failed", "cancelled"]);
|
|
1771
1972
|
let lastLogIndex = 0;
|
|
1772
1973
|
while (true) {
|
|
1773
1974
|
const status = await this.status();
|
|
1774
|
-
const logs = _nullishCoalesce(_optionalChain([status, 'access',
|
|
1975
|
+
const logs = _nullishCoalesce(_optionalChain([status, 'access', _84 => _84.progress, 'optionalAccess', _85 => _85.logs]), () => ( []));
|
|
1775
1976
|
for (let index = lastLogIndex; index < logs.length; index += 1) {
|
|
1776
1977
|
onLog(logs[index]);
|
|
1777
1978
|
}
|
|
@@ -1783,14 +1984,14 @@ var DeeplinePlayJobImpl = class {
|
|
|
1783
1984
|
}
|
|
1784
1985
|
}
|
|
1785
1986
|
async get(options) {
|
|
1786
|
-
const intervalMs = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
1987
|
+
const intervalMs = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _86 => _86.intervalMs]), () => ( 500));
|
|
1787
1988
|
const terminalStates = /* @__PURE__ */ new Set(["completed", "failed", "cancelled"]);
|
|
1788
1989
|
while (true) {
|
|
1789
1990
|
const status = await this.status();
|
|
1790
1991
|
if (terminalStates.has(status.status)) {
|
|
1791
1992
|
if (status.status !== "completed") {
|
|
1792
1993
|
throw new (0, _chunkDIAWYWT5js.DeeplineError)(
|
|
1793
|
-
_optionalChain([status, 'access',
|
|
1994
|
+
_optionalChain([status, 'access', _87 => _87.progress, 'optionalAccess', _88 => _88.error]) || `Play run ${this.id} ended with ${status.status}.`
|
|
1794
1995
|
);
|
|
1795
1996
|
}
|
|
1796
1997
|
if (status.package) {
|
|
@@ -1821,8 +2022,8 @@ function createNamedPlayHandle(clientFactory, name) {
|
|
|
1821
2022
|
const client = clientFactory();
|
|
1822
2023
|
const started = await client.startPlayRun({
|
|
1823
2024
|
name,
|
|
1824
|
-
..._optionalChain([options, 'optionalAccess',
|
|
1825
|
-
..._optionalChain([options, 'optionalAccess',
|
|
2025
|
+
..._optionalChain([options, 'optionalAccess', _89 => _89.revisionId]) ? { revisionId: options.revisionId } : {},
|
|
2026
|
+
..._optionalChain([options, 'optionalAccess', _90 => _90.profile]) ? { profile: options.profile } : {},
|
|
1826
2027
|
input
|
|
1827
2028
|
});
|
|
1828
2029
|
return new DeeplinePlayJobImpl(client, started.workflowId);
|
|
@@ -1848,7 +2049,7 @@ var DeeplineContext = class {
|
|
|
1848
2049
|
* @param options - Optional SDK client configuration.
|
|
1849
2050
|
*/
|
|
1850
2051
|
constructor(options) {
|
|
1851
|
-
this.client = new (0,
|
|
2052
|
+
this.client = new (0, _chunk2NE3LCEAjs.DeeplineClient)(options);
|
|
1852
2053
|
}
|
|
1853
2054
|
/**
|
|
1854
2055
|
* Tool operations namespace.
|
|
@@ -2113,15 +2314,15 @@ function stableHash(value) {
|
|
|
2113
2314
|
function attachSdkQueryResultDatasetResult(toolId, result, options) {
|
|
2114
2315
|
if (!options || !isQueryResultDatasetTool(toolId)) return result;
|
|
2115
2316
|
const raw = isRecord2(result.toolResponse.raw) ? result.toolResponse.raw : null;
|
|
2116
|
-
const dataset = isRecord2(_optionalChain([raw, 'optionalAccess',
|
|
2117
|
-
const totalRows = finiteNonNegativeInteger(_optionalChain([dataset, 'optionalAccess',
|
|
2118
|
-
const sql = typeof options.input.sql === "string" ? options.input.sql : typeof options.input.query === "string" ? options.input.query : typeof _optionalChain([raw, 'optionalAccess',
|
|
2317
|
+
const dataset = isRecord2(_optionalChain([raw, 'optionalAccess', _91 => _91.dataset])) ? raw.dataset : null;
|
|
2318
|
+
const totalRows = finiteNonNegativeInteger(_optionalChain([dataset, 'optionalAccess', _92 => _92.total_rows]));
|
|
2319
|
+
const sql = typeof options.input.sql === "string" ? options.input.sql : typeof options.input.query === "string" ? options.input.query : typeof _optionalChain([raw, 'optionalAccess', _93 => _93.sql]) === "string" ? raw.sql : null;
|
|
2119
2320
|
if (!dataset || totalRows === null || !sql) {
|
|
2120
2321
|
return result;
|
|
2121
2322
|
}
|
|
2122
2323
|
const datasetLimit = _nullishCoalesce(finitePositiveInteger(dataset.returned_limit), () => ( totalRows));
|
|
2123
2324
|
const effectiveCount = Math.min(totalRows, datasetLimit);
|
|
2124
|
-
const rawRows = rowsFromUnknown(_optionalChain([raw, 'optionalAccess',
|
|
2325
|
+
const rawRows = rowsFromUnknown(_optionalChain([raw, 'optionalAccess', _94 => _94.rows]));
|
|
2125
2326
|
const previewRows = rawRows.slice(0, 25);
|
|
2126
2327
|
const fetchPage = async (offset, limit) => {
|
|
2127
2328
|
if (limit <= 0 || offset >= totalRows) return [];
|
|
@@ -2145,8 +2346,8 @@ function attachSdkQueryResultDatasetResult(toolId, result, options) {
|
|
|
2145
2346
|
} : {}
|
|
2146
2347
|
}
|
|
2147
2348
|
});
|
|
2148
|
-
const pageRaw = isRecord2(_optionalChain([response, 'access',
|
|
2149
|
-
return rowsFromUnknown(_optionalChain([pageRaw, 'optionalAccess',
|
|
2349
|
+
const pageRaw = isRecord2(_optionalChain([response, 'access', _95 => _95.toolResponse, 'optionalAccess', _96 => _96.raw])) ? response.toolResponse.raw : null;
|
|
2350
|
+
return rowsFromUnknown(_optionalChain([pageRaw, 'optionalAccess', _97 => _97.rows]));
|
|
2150
2351
|
};
|
|
2151
2352
|
const collectRows = async (limit) => {
|
|
2152
2353
|
const target = Math.min(_nullishCoalesce(limit, () => ( totalRows)), totalRows, datasetLimit);
|
|
@@ -2198,10 +2399,10 @@ function attachSdkQueryResultDatasetResult(toolId, result, options) {
|
|
|
2198
2399
|
});
|
|
2199
2400
|
}
|
|
2200
2401
|
function toolExecutionEnvelopeToResult(fallbackToolId, response, options) {
|
|
2201
|
-
const raw = _nullishCoalesce(_optionalChain([response, 'access',
|
|
2202
|
-
const rawV2 = _optionalChain([response, 'access',
|
|
2203
|
-
const view = _optionalChain([response, 'access',
|
|
2204
|
-
const meta = _optionalChain([response, 'access',
|
|
2402
|
+
const raw = _nullishCoalesce(_optionalChain([response, 'access', _98 => _98.toolResponse, 'optionalAccess', _99 => _99.raw]), () => ( null));
|
|
2403
|
+
const rawV2 = _optionalChain([response, 'access', _100 => _100.toolResponse, 'optionalAccess', _101 => _101.rawV2]);
|
|
2404
|
+
const view = _optionalChain([response, 'access', _102 => _102.toolResponse, 'optionalAccess', _103 => _103.view]);
|
|
2405
|
+
const meta = _optionalChain([response, 'access', _104 => _104.toolResponse, 'optionalAccess', _105 => _105.meta]);
|
|
2205
2406
|
const metadata = isRecord2(response._metadata) ? response._metadata.tool : null;
|
|
2206
2407
|
const toolMetadata = isRecord2(metadata) ? metadata : {};
|
|
2207
2408
|
const result = projectToolResultListGetters(
|
|
@@ -2260,11 +2461,11 @@ function definePlay(nameOrConfig, maybeFn, maybeBindings) {
|
|
|
2260
2461
|
name: nameOrConfig,
|
|
2261
2462
|
fn: maybeFn,
|
|
2262
2463
|
bindings: maybeBindings,
|
|
2263
|
-
description: _optionalChain([maybeBindings, 'optionalAccess',
|
|
2464
|
+
description: _optionalChain([maybeBindings, 'optionalAccess', _106 => _106.description]),
|
|
2264
2465
|
inputSchema: void 0,
|
|
2265
|
-
billing: _optionalChain([maybeBindings, 'optionalAccess',
|
|
2266
|
-
runtime: _optionalChain([maybeBindings, 'optionalAccess',
|
|
2267
|
-
compatibility: _optionalChain([maybeBindings, 'optionalAccess',
|
|
2466
|
+
billing: _optionalChain([maybeBindings, 'optionalAccess', _107 => _107.billing]),
|
|
2467
|
+
runtime: _optionalChain([maybeBindings, 'optionalAccess', _108 => _108.runtime]),
|
|
2468
|
+
compatibility: _optionalChain([maybeBindings, 'optionalAccess', _109 => _109.compatibility])
|
|
2268
2469
|
} : {
|
|
2269
2470
|
name: nameOrConfig.id,
|
|
2270
2471
|
fn: nameOrConfig.run,
|
|
@@ -2275,13 +2476,13 @@ function definePlay(nameOrConfig, maybeFn, maybeBindings) {
|
|
|
2275
2476
|
description: nameOrConfig.description,
|
|
2276
2477
|
inputSchema: nameOrConfig.input.schema,
|
|
2277
2478
|
billing: nameOrConfig.billing,
|
|
2278
|
-
runtime: _nullishCoalesce(nameOrConfig.runtime, () => ( _optionalChain([nameOrConfig, 'access',
|
|
2279
|
-
compatibility: _nullishCoalesce(nameOrConfig.compatibility, () => ( _optionalChain([nameOrConfig, 'access',
|
|
2479
|
+
runtime: _nullishCoalesce(nameOrConfig.runtime, () => ( _optionalChain([nameOrConfig, 'access', _110 => _110.bindings, 'optionalAccess', _111 => _111.runtime]))),
|
|
2480
|
+
compatibility: _nullishCoalesce(nameOrConfig.compatibility, () => ( _optionalChain([nameOrConfig, 'access', _112 => _112.bindings, 'optionalAccess', _113 => _113.compatibility])))
|
|
2280
2481
|
};
|
|
2281
2482
|
const name = config.name;
|
|
2282
2483
|
const fn = config.fn;
|
|
2283
2484
|
const bindings = config.bindings;
|
|
2284
|
-
const description = _optionalChain([config, 'access',
|
|
2485
|
+
const description = _optionalChain([config, 'access', _114 => _114.description, 'optionalAccess', _115 => _115.trim, 'call', _116 => _116()]);
|
|
2285
2486
|
const billing = config.billing;
|
|
2286
2487
|
const inputSchema = config.inputSchema;
|
|
2287
2488
|
const runtime = config.runtime;
|
|
@@ -2346,7 +2547,7 @@ function definePlay(nameOrConfig, maybeFn, maybeBindings) {
|
|
|
2346
2547
|
writable: false
|
|
2347
2548
|
});
|
|
2348
2549
|
const handle = createNamedPlayHandle(
|
|
2349
|
-
() =>
|
|
2550
|
+
() => _chunk54SVGPMKjs.createPlayClient.call(void 0, ),
|
|
2350
2551
|
name
|
|
2351
2552
|
);
|
|
2352
2553
|
for (const key of [
|
|
@@ -2510,4 +2711,4 @@ var DEEPLINE_TOOL_CATEGORIES = [
|
|
|
2510
2711
|
|
|
2511
2712
|
|
|
2512
2713
|
|
|
2513
|
-
exports.AuthError = _chunkALJJRZNJjs.AuthError; exports.ConfigError = _chunkALJJRZNJjs.ConfigError; exports.CtxFetchAmbiguousWriteError = _chunkVKKVSFRDjs.CtxFetchAmbiguousWriteError; exports.CtxFetchHttpError = _chunkVKKVSFRDjs.CtxFetchHttpError; exports.CustomerDbQueryOutcomeUnknownError = _chunkALJJRZNJjs.CustomerDbQueryOutcomeUnknownError; exports.DEEPLINE_EXTRACTOR_TARGETS =
|
|
2714
|
+
exports.AuthError = _chunkALJJRZNJjs.AuthError; exports.ConfigError = _chunkALJJRZNJjs.ConfigError; exports.CtxFetchAmbiguousWriteError = _chunkVKKVSFRDjs.CtxFetchAmbiguousWriteError; exports.CtxFetchHttpError = _chunkVKKVSFRDjs.CtxFetchHttpError; exports.CustomerDbQueryOutcomeUnknownError = _chunkALJJRZNJjs.CustomerDbQueryOutcomeUnknownError; exports.DEEPLINE_EXTRACTOR_TARGETS = _chunkNPZBE64Xjs.DEEPLINE_EXTRACTOR_TARGETS; exports.DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS = _chunkNPZBE64Xjs.DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS; exports.DEEPLINE_TOOL_CATEGORIES = DEEPLINE_TOOL_CATEGORIES; exports.Deepline = Deepline; exports.DeeplineClient = _chunk2NE3LCEAjs.DeeplineClient; exports.DeeplineContext = DeeplineContext; exports.DeeplineError = _chunkDIAWYWT5js.DeeplineError; exports.JOB_CHANGE_STATUS_VALUES = _chunkNPZBE64Xjs.JOB_CHANGE_STATUS_VALUES; exports.MONITOR_FLEET_AUTHORING_CONTRACT_CHANGELOG = _chunkC374C22Yjs.MONITOR_FLEET_AUTHORING_CONTRACT_CHANGELOG; exports.MONITOR_FLEET_AUTHORING_CONTRACT_EDITION = _chunkC374C22Yjs.MONITOR_FLEET_AUTHORING_CONTRACT_EDITION; exports.MONITOR_FLEET_DOCUMENTATION = _chunkC374C22Yjs.MONITOR_FLEET_DOCUMENTATION; exports.MONITOR_FLEET_FRONTIER_MAX_ROWS = _chunkC374C22Yjs.MONITOR_FLEET_FRONTIER_MAX_ROWS; exports.MONITOR_FLEET_MAX_MEMBERS = _chunkC374C22Yjs.MONITOR_FLEET_MAX_MEMBERS; exports.MONITOR_JOB_PHASES = _chunkZJRHPVJUjs.MONITOR_JOB_PHASES; exports.MONITOR_JOB_RECONCILIATION_STATES = _chunkZJRHPVJUjs.MONITOR_JOB_RECONCILIATION_STATES; exports.MONITOR_JOB_STATES = _chunkZJRHPVJUjs.MONITOR_JOB_STATES; exports.PHONE_STATUS_VALUES = _chunkNPZBE64Xjs.PHONE_STATUS_VALUES; exports.PROD_URL = _chunkYI6TIURRjs.PROD_URL; exports.ProviderTransientError = _chunkDIAWYWT5js.ProviderTransientError; exports.RateLimitError = _chunkALJJRZNJjs.RateLimitError; exports.RunEventQueryInputError = _chunkZJRHPVJUjs.RunEventQueryInputError; exports.RunObserveTransportUnavailableError = RunObserveTransportUnavailableError; exports.SDK_API_CONTRACT = _chunkLQ2KVMODjs.SDK_API_CONTRACT; exports.SDK_VERSION = _chunkLQ2KVMODjs.SDK_VERSION; exports.ToolExecutionError = _chunkDIAWYWT5js.ToolExecutionError; exports.ToolRateLimitError = _chunkALJJRZNJjs.ToolRateLimitError; exports.admitMonitorFleetAuthoringContract = _chunkC374C22Yjs.admitMonitorFleetAuthoringContract; exports.deepline = deepline; exports.default = deepline; exports.defineInput = defineInput; exports.defineMonitor = defineMonitor; exports.defineMonitorFleet = _chunkC374C22Yjs.defineMonitorFleet; exports.definePlay = definePlay; exports.defineWorkflow = defineWorkflow; exports.extractSummaryFields = _chunkHGFFYVXNjs.extractSummaryFields; exports.fleetColumn = _chunkC374C22Yjs.fleetColumn; exports.fleetKey = _chunkC374C22Yjs.fleetKey; exports.getDefinedPlayMetadata = getDefinedPlayMetadata; exports.getProviderUnavailableReason = _chunkDIAWYWT5js.getProviderUnavailableReason; exports.isDeeplineExtractorTarget = _chunkNPZBE64Xjs.isDeeplineExtractorTarget; exports.isProviderUnavailable = _chunkDIAWYWT5js.isProviderUnavailable; exports.isProviderWaterfallUnavailableError = _chunkDIAWYWT5js.isProviderWaterfallUnavailableError; exports.isStopAllPlayRunsDryRunResult = _chunkZJRHPVJUjs.isStopAllPlayRunsDryRunResult; exports.lintMonitorBatchInput = _chunkIF75RD6Ujs.lintMonitorBatchInput; exports.lintMonitorFleetInput = _chunkC374C22Yjs.lintMonitorFleetInput; exports.lintMonitorSpecTemplate = _chunkIF75RD6Ujs.lintMonitorSpecTemplate; exports.pinLocalPlayImports = _chunk54SVGPMKjs.pinLocalPlayImports; exports.planCustomerDbQuery = _chunkZJRHPVJUjs.planCustomerDbQuery; exports.planLocalPlayExecution = _chunk54SVGPMKjs.planLocalPlayExecution; exports.readList = readList; exports.renderMonitorSpecTemplate = _chunkIF75RD6Ujs.renderMonitorSpecTemplate; exports.resolveConfig = _chunkYI6TIURRjs.resolveConfig; exports.runIf = runIf; exports.runScriptPlay = runScriptPlay; exports.steps = steps; exports.tryConvertToList = _chunkHGFFYVXNjs.tryConvertToList; exports.validateMonitorFleetDefinition = _chunkC374C22Yjs.validateMonitorFleetDefinition; exports.writeCsvOutputFile = _chunkHGFFYVXNjs.writeCsvOutputFile; exports.writeJsonOutputFile = _chunkHGFFYVXNjs.writeJsonOutputFile;
|