deepline 0.3.463 → 0.3.465

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.
Files changed (158) hide show
  1. package/dist/bundling-sources/sdk/src/play.ts +3 -0
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +130 -55
  4. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +16 -2
  5. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +98 -0
  6. package/dist/bundling-sources/shared_libs/plays/field-catalog.ts +353 -52
  7. package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +63 -3
  8. package/dist/cli/auth-W62UTNJZ.js +41 -0
  9. package/dist/cli/{auth-LZLBR4C3.mjs → auth-WZCX4MTH.mjs} +5 -5
  10. package/dist/cli/{billing-OTOP5RE4.mjs → billing-ATR3CLIW.mjs} +6 -6
  11. package/dist/cli/{billing-6TJPNJQD.js → billing-DQUD3DBY.js} +77 -77
  12. package/dist/cli/{chunk-IKWRUNAP.mjs → chunk-3K3EHT6E.mjs} +1 -1
  13. package/dist/cli/{chunk-ALZBANZI.js → chunk-3XFNF6RR.js} +8 -8
  14. package/dist/cli/{chunk-3BOIOCNX.js → chunk-4URRABMM.js} +1 -1
  15. package/dist/cli/{chunk-BGNWI3KH.js → chunk-5VGMRONE.js} +3 -3
  16. package/dist/cli/{chunk-5LEAXRHV.js → chunk-6P4OYABU.js} +54 -226
  17. package/dist/cli/{chunk-UROQDCVW.js → chunk-6WKYRHGT.js} +3 -3
  18. package/dist/cli/{chunk-VDGTTH7K.mjs → chunk-6Y34LU6P.mjs} +2 -2
  19. package/dist/cli/{chunk-5DRNNC72.js → chunk-7R76B3WE.js} +5 -5
  20. package/dist/cli/{chunk-C25QE4CH.mjs → chunk-7Y2MLWTM.mjs} +1 -1
  21. package/dist/cli/chunk-7YDN6AEK.mjs +649 -0
  22. package/dist/cli/{chunk-VY2GBNTX.js → chunk-A3GML7WW.js} +9 -9
  23. package/dist/cli/{chunk-UIURR26V.mjs → chunk-B6GAIXVD.mjs} +4 -4
  24. package/dist/cli/{chunk-7XYDDCQ2.js → chunk-BQNUJK53.js} +26 -26
  25. package/dist/cli/{chunk-FK2HNDCN.js → chunk-DDF74332.js} +2 -2
  26. package/dist/cli/{chunk-JVDKZJUH.js → chunk-DJD4KLIX.js} +258 -258
  27. package/dist/cli/{chunk-7D6X7IXW.mjs → chunk-E3EYQ2FQ.mjs} +4 -4
  28. package/dist/cli/{chunk-WUZS2HK6.js → chunk-E3PLLFE2.js} +53 -53
  29. package/dist/cli/{chunk-BAPTQDLF.mjs → chunk-EA2F4YVX.mjs} +2 -2
  30. package/dist/cli/{chunk-XDWS2JJT.mjs → chunk-EISIAWBD.mjs} +1 -1
  31. package/dist/cli/{chunk-GUT7CLOL.mjs → chunk-EVQBOVOJ.mjs} +3 -3
  32. package/dist/cli/{chunk-S4XQCFES.mjs → chunk-FFTLJGZQ.mjs} +5 -5
  33. package/dist/cli/{chunk-5LHXOIPT.js → chunk-GBQSEOXE.js} +7 -7
  34. package/dist/cli/{chunk-NTLI6P6Y.mjs → chunk-GNLCGR7R.mjs} +2 -2
  35. package/dist/cli/{chunk-RD6IQ2JY.mjs → chunk-GW7RUNLW.mjs} +1 -1
  36. package/dist/cli/{chunk-6PMCRYDA.js → chunk-HIMV32ZX.js} +6 -4
  37. package/dist/cli/{chunk-CVQ7N5CV.mjs → chunk-HS6CM7TF.mjs} +11 -11
  38. package/dist/cli/{chunk-DHXCBITQ.mjs → chunk-HXWZ52CW.mjs} +3 -3
  39. package/dist/cli/{chunk-MSY22NQW.mjs → chunk-I2TCWIW2.mjs} +44 -216
  40. package/dist/cli/chunk-JLZKF7EY.js +649 -0
  41. package/dist/cli/{chunk-TIRBDQ3W.js → chunk-JN7AOVD4.js} +16 -16
  42. package/dist/cli/{chunk-4YZKBBLZ.mjs → chunk-JQSPKPHT.mjs} +5 -5
  43. package/dist/cli/{chunk-XQCTG5OO.js → chunk-L3U44YVO.js} +5 -5
  44. package/dist/cli/{chunk-7FCYPAPP.js → chunk-LFTLH5BK.js} +2 -2
  45. package/dist/cli/{chunk-TKAQR3IB.mjs → chunk-MUQAKLBP.mjs} +1 -1
  46. package/dist/cli/{chunk-3U5EAP6E.mjs → chunk-N27BUJU3.mjs} +5 -5
  47. package/dist/cli/{chunk-NDHJR2WZ.js → chunk-N57JYG7J.js} +36 -36
  48. package/dist/cli/{chunk-O3BJYD6D.mjs → chunk-NIJYJI67.mjs} +2 -2
  49. package/dist/cli/{chunk-CTQ56DXP.mjs → chunk-OEU3ZNBZ.mjs} +1 -1
  50. package/dist/cli/{chunk-VPHN2HAL.mjs → chunk-OGCAGZXO.mjs} +6 -4
  51. package/dist/cli/{chunk-NAPTMYTY.js → chunk-OKI3HWFF.js} +8 -8
  52. package/dist/cli/{chunk-PVY4DPPF.js → chunk-OQDN6JK6.js} +13 -13
  53. package/dist/cli/{chunk-CBZP6J3V.js → chunk-PIGMBDBZ.js} +21 -21
  54. package/dist/cli/{chunk-SKU6ECIY.js → chunk-QPJ2BDFD.js} +5 -5
  55. package/dist/cli/{chunk-UC4SFYNU.js → chunk-RREWUPC3.js} +6 -6
  56. package/dist/cli/{chunk-LYFKBLJI.mjs → chunk-SBM5JVTK.mjs} +1 -1
  57. package/dist/cli/{chunk-2NISBXMN.js → chunk-SOIXDMZK.js} +51 -51
  58. package/dist/cli/{chunk-WUMIYOXQ.mjs → chunk-SSQXSMAT.mjs} +2 -2
  59. package/dist/cli/{chunk-2ZIRCBYG.js → chunk-TJXGEK7P.js} +6 -6
  60. package/dist/cli/{chunk-XW2JIYG7.mjs → chunk-UMQT7QMB.mjs} +2 -2
  61. package/dist/cli/{chunk-RGOUCIIZ.js → chunk-W4J2EK5K.js} +3 -3
  62. package/dist/cli/{chunk-3BVLLJ3H.mjs → chunk-X6BQ4JAD.mjs} +2 -2
  63. package/dist/cli/{chunk-F2RHUPVH.mjs → chunk-XFAO5A5R.mjs} +1 -1
  64. package/dist/cli/{chunk-YGGIZ3VT.js → chunk-XJ5W64AC.js} +4 -4
  65. package/dist/cli/{chunk-I624J4H5.mjs → chunk-YZZGFUQ4.mjs} +1 -1
  66. package/dist/cli/command-docs.js +2 -2
  67. package/dist/cli/command-docs.mjs +1 -1
  68. package/dist/cli/{csv-OK45Z5XQ.mjs → csv-AE7OLXCV.mjs} +4 -4
  69. package/dist/cli/{csv-EH5QWR4O.js → csv-ZVFGYRB7.js} +13 -13
  70. package/dist/cli/{db-3ESJKETS.js → db-JOD2MQ2T.js} +27 -27
  71. package/dist/cli/{db-6Z5E4HKN.mjs → db-KTXMCLB5.mjs} +6 -6
  72. package/dist/cli/describe-2IKB4KIX.js +48 -0
  73. package/dist/cli/{describe-PNDQB7YS.mjs → describe-FENTKQFK.mjs} +20 -20
  74. package/dist/cli/describe-core.d.mts +3 -3
  75. package/dist/cli/describe-core.d.ts +3 -3
  76. package/dist/cli/describe-core.js +4 -4
  77. package/dist/cli/describe-core.mjs +3 -3
  78. package/dist/cli/{executions-2NTWQFEG.mjs → executions-FJCV5L37.mjs} +6 -6
  79. package/dist/cli/{executions-KUOBRX5V.js → executions-IT6TQ65Q.js} +8 -8
  80. package/dist/cli/{feedback-7RPRMSGY.mjs → feedback-LTTO73YD.mjs} +4 -4
  81. package/dist/cli/{feedback-UPHAZJ4C.js → feedback-WGURC3BG.js} +8 -8
  82. package/dist/cli/git-UOIC2DJL.js +25 -0
  83. package/dist/cli/{git-SCYP6WSZ.mjs → git-ZYEDB2UG.mjs} +5 -5
  84. package/dist/cli/index.js +139 -139
  85. package/dist/cli/index.mjs +41 -41
  86. package/dist/cli/{legacy-noops-A4KYAGI6.mjs → legacy-noops-EGQ4G4BT.mjs} +5 -5
  87. package/dist/cli/{legacy-noops-7XMFCVRG.js → legacy-noops-JFXWEOZF.js} +8 -8
  88. package/dist/cli/{monitors-FLC5J7RI.mjs → monitors-IK6GWLCA.mjs} +7 -7
  89. package/dist/cli/{monitors-NZV6IX5H.js → monitors-WKN2K6ZH.js} +91 -91
  90. package/dist/cli/{org-IZ7UP3XF.js → org-FE5VMAKF.js} +68 -68
  91. package/dist/cli/{org-LUETJ7Z5.mjs → org-PD5YBUHR.mjs} +6 -6
  92. package/dist/cli/{pages-22ML3O7O.js → pages-H3DKEVVI.js} +17 -17
  93. package/dist/cli/{pages-EUX5EAGF.mjs → pages-ZVKSOSZJ.mjs} +6 -6
  94. package/dist/cli/{play-USJBQADG.js → play-2UL5OPGH.js} +305 -305
  95. package/dist/cli/{play-CDHPAKKM.mjs → play-RLIQY22H.mjs} +18 -18
  96. package/dist/cli/{providers-WFEUNPGC.js → providers-2IMHQDBC.js} +9 -9
  97. package/dist/cli/{providers-CCXZ3SQF.mjs → providers-M4AFFJF2.mjs} +6 -6
  98. package/dist/cli/{quickstart-O4JSUORZ.js → quickstart-OE64DBKK.js} +6 -6
  99. package/dist/cli/{quickstart-ZUULI635.mjs → quickstart-PS4QKNG2.mjs} +4 -4
  100. package/dist/cli/{run-QJ4NX5F5.mjs → run-3TKR5CZU.mjs} +25 -25
  101. package/dist/cli/{run-ISDJYJMU.js → run-SWLGV2VS.js} +40 -40
  102. package/dist/cli/{search-IX3XKZJ3.mjs → search-AMZ67RKO.mjs} +7 -7
  103. package/dist/cli/search-LXG7T6YZ.js +32 -0
  104. package/dist/cli/{secrets-7VUDXTUZ.mjs → secrets-INBXKNFM.mjs} +6 -6
  105. package/dist/cli/{secrets-ELQSNCTR.js → secrets-ZTLJY7L2.js} +15 -15
  106. package/dist/cli/{sessions-A3FG3AZX.js → sessions-3GKS45NP.js} +6 -6
  107. package/dist/cli/{sessions-VOIQ62GB.mjs → sessions-ZVBTKQ7J.mjs} +5 -5
  108. package/dist/cli/{settings-ZTXQEMZI.js → settings-7YG3UWJH.js} +78 -78
  109. package/dist/cli/{settings-S6N6EFBG.mjs → settings-AUPDZZ2U.mjs} +11 -11
  110. package/dist/cli/{setup-AYPIK4JE.mjs → setup-44QB72NU.mjs} +9 -9
  111. package/dist/cli/{setup-Y3WOIFLS.js → setup-YGESCFTH.js} +44 -44
  112. package/dist/cli/{skills-5SF5QWNI.mjs → skills-N3AWWCWO.mjs} +7 -7
  113. package/dist/cli/skills-QALGBUFY.js +31 -0
  114. package/dist/cli/{tools-3XNZ4J64.mjs → tools-3SHNTJPU.mjs} +18 -18
  115. package/dist/cli/tools-PUQ3JBZ7.js +55 -0
  116. package/dist/cli/{update-3U4OVX5R.mjs → update-3TWB5EEV.mjs} +9 -9
  117. package/dist/cli/update-O7XSJMLX.js +33 -0
  118. package/dist/cli/{workflow-2M5JP7SA.mjs → workflow-SYP62XNN.mjs} +7 -7
  119. package/dist/cli/{workflow-RM7H7555.js → workflow-ULIZU7KI.js} +17 -17
  120. package/dist/{client-DTwnz_AW.d.mts → client-ADFHNtFM.d.mts} +1 -1
  121. package/dist/{client-DS2IWYZF.d.ts → client-BClp2yrq.d.ts} +1 -1
  122. package/dist/{client-core-B_6HAIBy.d.ts → client-core-BFU73Ttw.d.ts} +1 -1
  123. package/dist/{client-core-DzBSlY1U.d.mts → client-core-DWLmmJWo.d.mts} +1 -1
  124. package/dist/{compiler-manifest-Dcyd3-Zd.d.ts → compiler-manifest-Cs17yO-H.d.mts} +321 -3
  125. package/dist/{compiler-manifest-Dcyd3-Zd.d.mts → compiler-manifest-Cs17yO-H.d.ts} +321 -3
  126. package/dist/{errors-yQwfgrcX.d.ts → errors-Dee-QpVS.d.ts} +1 -1
  127. package/dist/{errors-d-sTrZhe.d.mts → errors-qNfvQuRB.d.mts} +1 -1
  128. package/dist/{index-C6oXchjN.d.mts → index-BTqNNXmC.d.mts} +1 -1
  129. package/dist/{index-P56zy_z5.d.ts → index-DXTh1Lxe.d.ts} +1 -1
  130. package/dist/index.d.mts +7 -7
  131. package/dist/index.d.ts +7 -7
  132. package/dist/index.js +80 -13
  133. package/dist/index.mjs +76 -9
  134. package/dist/install-integrity.json +114 -114
  135. package/dist/plays/bundle-play-file.d.mts +3 -3
  136. package/dist/plays/bundle-play-file.d.ts +3 -3
  137. package/dist/plays/play-description.d.mts +2 -2
  138. package/dist/plays/play-description.d.ts +2 -2
  139. package/dist/plays/run-request.d.mts +2 -2
  140. package/dist/plays/run-request.d.ts +2 -2
  141. package/dist/release.d.mts +1 -1
  142. package/dist/release.d.ts +1 -1
  143. package/dist/release.js +2 -2
  144. package/dist/release.mjs +1 -1
  145. package/dist/server.d.mts +4 -4
  146. package/dist/server.d.ts +4 -4
  147. package/dist/server.js +5 -5
  148. package/dist/server.mjs +3 -3
  149. package/package.json +1 -1
  150. package/dist/cli/auth-XPGKBJKB.js +0 -41
  151. package/dist/cli/chunk-NA4T3B62.js +0 -286
  152. package/dist/cli/chunk-TXZVVBQZ.mjs +0 -286
  153. package/dist/cli/describe-QUF7VTTR.js +0 -48
  154. package/dist/cli/git-UH653WHV.js +0 -25
  155. package/dist/cli/search-TIFNLRPM.js +0 -32
  156. package/dist/cli/skills-MWFRMG3H.js +0 -31
  157. package/dist/cli/tools-XEC4OD3R.js +0 -55
  158. package/dist/cli/update-DWYEYTZE.js +0 -33
@@ -6,8 +6,8 @@ import {
6
6
  } from "./chunk-H7HIDGZ7.mjs";
7
7
  import {
8
8
  DeeplineClient
9
- } from "./chunk-NTLI6P6Y.mjs";
10
- import "./chunk-RD6IQ2JY.mjs";
9
+ } from "./chunk-GNLCGR7R.mjs";
10
+ import "./chunk-GW7RUNLW.mjs";
11
11
  import "./chunk-L2VKAASU.mjs";
12
12
  import "./chunk-FAG4DFUC.mjs";
13
13
  import "./chunk-S3A4IXBQ.mjs";
@@ -17,13 +17,13 @@ import {
17
17
  printJson,
18
18
  shouldEmitJson,
19
19
  sleep
20
- } from "./chunk-WUMIYOXQ.mjs";
21
- import "./chunk-F2RHUPVH.mjs";
22
- import "./chunk-I624J4H5.mjs";
20
+ } from "./chunk-SSQXSMAT.mjs";
21
+ import "./chunk-XFAO5A5R.mjs";
22
+ import "./chunk-YZZGFUQ4.mjs";
23
23
  import "./chunk-4QF2K7TM.mjs";
24
24
  import "./chunk-DLIRSHV6.mjs";
25
25
  import "./chunk-HBL4PM5Q.mjs";
26
- import "./chunk-XDWS2JJT.mjs";
26
+ import "./chunk-EISIAWBD.mjs";
27
27
  import "./chunk-WZYKRD7T.mjs";
28
28
  import "./chunk-KRD6H754.mjs";
29
29
 
@@ -1702,7 +1702,7 @@ async function transformOne(api, workflowId, outDir, publish) {
1702
1702
  await writeFile(file, compiled.sourceCode, "utf8");
1703
1703
  let published = false;
1704
1704
  if (publish) {
1705
- const { handlePlayPublish } = await import("./play-CDHPAKKM.mjs");
1705
+ const { handlePlayPublish } = await import("./play-RLIQY22H.mjs");
1706
1706
  const code = await handlePlayPublish([file]);
1707
1707
  if (code !== 0) {
1708
1708
  return {
@@ -6,8 +6,8 @@ var _chunk3XX5TEA4js = require('./chunk-3XX5TEA4.js');
6
6
  var _chunk3KC45UVFjs = require('./chunk-3KC45UVF.js');
7
7
 
8
8
 
9
- var _chunkSKU6ECIYjs = require('./chunk-SKU6ECIY.js');
10
- require('./chunk-UC4SFYNU.js');
9
+ var _chunkQPJ2BDFDjs = require('./chunk-QPJ2BDFD.js');
10
+ require('./chunk-RREWUPC3.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 _chunk5LHXOIPTjs = require('./chunk-5LHXOIPT.js');
21
- require('./chunk-BGNWI3KH.js');
22
- require('./chunk-YGGIZ3VT.js');
20
+ var _chunkGBQSEOXEjs = require('./chunk-GBQSEOXE.js');
21
+ require('./chunk-5VGMRONE.js');
22
+ require('./chunk-XJ5W64AC.js');
23
23
  require('./chunk-ALJJRZNJ.js');
24
24
  require('./chunk-XNYIZMNQ.js');
25
25
  require('./chunk-DIAWYWT5.js');
26
- require('./chunk-3BOIOCNX.js');
26
+ require('./chunk-4URRABMM.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 = _chunk5LHXOIPTjs.shouldEmitJson.call(void 0, options.json);
1632
+ const json = _chunkGBQSEOXEjs.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
- _chunk5LHXOIPTjs.printJson.call(void 0, enriched);
1636
+ _chunkGBQSEOXEjs.printJson.call(void 0, enriched);
1637
1637
  return;
1638
1638
  }
1639
- _chunk5LHXOIPTjs.printJson.call(void 0, payload);
1639
+ _chunkGBQSEOXEjs.printJson.call(void 0, payload);
1640
1640
  noticeToStderr(command);
1641
1641
  }
1642
1642
  function client() {
1643
- return new (0, _chunkSKU6ECIYjs.DeeplineClient)();
1643
+ return new (0, _chunkQPJ2BDFDjs.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, _chunkSKU6ECIYjs.DeeplineClient)({ timeout: seconds * 1e3 });
1651
+ return new (0, _chunkQPJ2BDFDjs.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-USJBQADG.js")));
1705
+ const { handlePlayPublish } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-2UL5OPGH.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
- _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0,
1780
+ _chunkGBQSEOXEjs.printCommandEnvelope.call(void 0,
1781
1781
  { outcomes, deprecation: null },
1782
1782
  {
1783
- json: _chunk5LHXOIPTjs.shouldEmitJson.call(void 0, options.json),
1783
+ json: _chunkGBQSEOXEjs.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
- _chunk5LHXOIPTjs.printJson.call(void 0, result);
1804
+ _chunkGBQSEOXEjs.printJson.call(void 0, result);
1805
1805
  }
1806
1806
  async function handleEnable(id, options) {
1807
1807
  const result = await client().enableWorkflow(id);
1808
- _chunk5LHXOIPTjs.printJson.call(void 0, result);
1808
+ _chunkGBQSEOXEjs.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 _chunk5LHXOIPTjs.sleep.call(void 0, intervalMs);
1873
+ await _chunkGBQSEOXEjs.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-DzBSlY1U.mjs';
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-B_6HAIBy.js';
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-Dcyd3-Zd.js';
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-Dcyd3-Zd.mjs';
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
- * Provider data: `toolResponse.rawV2`; metadata: `toolResponse.meta`.
852
- * Single-value getters: `extractedValues.<name>.get()`; lists: `extractedLists.<name>.get()`.
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
- * Prefer declared getters. Edition 10 and later Plays receive ordinary arrays from
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.