deepline 0.3.372 → 0.3.373

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 (113) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/plays/email-status.ts +95 -0
  3. package/dist/bundling-sources/shared_libs/plays/extractor-targets.ts +14 -0
  4. package/dist/bundling-sources/shared_libs/plays/field-catalog.ts +253 -0
  5. package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +2 -0
  6. package/dist/cli/{auth-ODSACXLF.mjs → auth-7BMCDCRH.mjs} +4 -4
  7. package/dist/cli/auth-BWCNRUG3.js +33 -0
  8. package/dist/cli/{billing-4ERXY2DZ.js → billing-GKI7B4JF.js} +73 -73
  9. package/dist/cli/{billing-OPIOZLAN.mjs → billing-RZEHHMPU.mjs} +4 -4
  10. package/dist/cli/{chunk-E5UD3JDQ.js → chunk-3VN4FTE3.js} +289 -5
  11. package/dist/cli/{chunk-BVUGPOU3.mjs → chunk-6JCVL7CE.mjs} +2 -2
  12. package/dist/cli/{chunk-RJ7JJMQO.js → chunk-BM47AKUZ.js} +266 -254
  13. package/dist/cli/{chunk-DM5QUZJR.js → chunk-CLEB5KUZ.js} +1 -1
  14. package/dist/cli/{chunk-AQFA7HMN.js → chunk-D2CZ4Y5G.js} +15 -15
  15. package/dist/cli/{chunk-3GK3SH3G.mjs → chunk-E6BZWURC.mjs} +200 -13
  16. package/dist/cli/{chunk-RUYZAREB.js → chunk-E7MGPPM5.js} +9 -9
  17. package/dist/cli/{chunk-DONL233W.mjs → chunk-ECA6NQYL.mjs} +4 -4
  18. package/dist/cli/{chunk-GZQKUFM5.js → chunk-EYXSAB7O.js} +26 -26
  19. package/dist/cli/{chunk-MIMV5LTU.mjs → chunk-HNLXC5BP.mjs} +1 -1
  20. package/dist/cli/{chunk-6MDAGRZP.js → chunk-IHQQNWU4.js} +2 -2
  21. package/dist/cli/{chunk-FGHRRJ3D.mjs → chunk-IUYKSTWB.mjs} +1 -1
  22. package/dist/cli/{chunk-VVFH745L.js → chunk-JHUMUIU6.js} +6 -6
  23. package/dist/cli/{chunk-BFLPCGOR.mjs → chunk-JP2YA3AV.mjs} +1 -1
  24. package/dist/cli/{chunk-ML2ZY7YD.js → chunk-ND4BVWWZ.js} +4 -4
  25. package/dist/cli/{chunk-EFJL5FCU.js → chunk-NVZAZGHA.js} +8 -8
  26. package/dist/cli/{chunk-IUWPC5K6.js → chunk-ORBVXCTL.js} +50 -50
  27. package/dist/cli/{chunk-JAERLCMH.mjs → chunk-P5JPGZNI.mjs} +1 -1
  28. package/dist/cli/{chunk-KC2YOJTU.mjs → chunk-PZ26EKNC.mjs} +319 -115
  29. package/dist/cli/{chunk-U3W7E5WT.mjs → chunk-QSV76EMO.mjs} +27 -15
  30. package/dist/cli/{chunk-4LIUZ4QR.mjs → chunk-R6TPSZLN.mjs} +2 -2
  31. package/dist/cli/{chunk-N5TPMNTT.js → chunk-S5OTS6H5.js} +8 -8
  32. package/dist/cli/{chunk-XSPAI6MF.mjs → chunk-TB73PXE3.mjs} +2 -2
  33. package/dist/cli/{chunk-D6O3NJHX.js → chunk-W3H422KP.js} +60 -60
  34. package/dist/cli/{chunk-WJWO74MM.js → chunk-XJYUQBHY.js} +390 -186
  35. package/dist/cli/{chunk-3CTB7V5F.mjs → chunk-XMME4SCK.mjs} +2 -2
  36. package/dist/cli/{chunk-2RC5JQ3C.mjs → chunk-Y32GUTEN.mjs} +1 -1
  37. package/dist/cli/{chunk-JB6ERQUV.mjs → chunk-Y6VOGHF2.mjs} +284 -0
  38. package/dist/cli/{chunk-5HYD3GMS.mjs → chunk-YHHY2YHK.mjs} +3 -3
  39. package/dist/cli/{chunk-2JRRXXTA.js → chunk-YPVTQRUM.js} +201 -14
  40. package/dist/cli/{client-KF2J754U.mjs → client-FO6LMHT4.mjs} +3 -3
  41. package/dist/cli/client-KAWK7FJR.js +20 -0
  42. package/dist/cli/{csv-UL3MCD5D.mjs → csv-3FNCVMWA.mjs} +3 -3
  43. package/dist/cli/{csv-UJ3M7NFP.js → csv-NFQYQWWO.js} +12 -12
  44. package/dist/cli/{db-444XYOTV.js → db-CTLGRV3X.js} +29 -29
  45. package/dist/cli/{db-SIOWA63T.mjs → db-VA7HULGR.mjs} +4 -4
  46. package/dist/cli/{describe-GI5GHAKO.mjs → describe-GXGRMP2M.mjs} +46 -17
  47. package/dist/cli/{describe-RRBESS3S.js → describe-IUHOEPKY.js} +61 -32
  48. package/dist/cli/{executions-ERXZUOL5.js → executions-DSK3HRPU.js} +6 -6
  49. package/dist/cli/{executions-4YDP6BXI.mjs → executions-OZQDZQIK.mjs} +4 -4
  50. package/dist/cli/{feedback-3M7D7DZQ.js → feedback-KTMLMWKV.js} +7 -7
  51. package/dist/cli/{feedback-CPWQL5LU.mjs → feedback-ZOY7R4JD.mjs} +3 -3
  52. package/dist/cli/git-5P5FLEUC.js +23 -0
  53. package/dist/cli/{git-XN6C3TJZ.mjs → git-FIOI4IA2.mjs} +4 -4
  54. package/dist/cli/index.js +81 -81
  55. package/dist/cli/index.mjs +32 -32
  56. package/dist/cli/{legacy-noops-KXQ6TFFL.mjs → legacy-noops-KQZWSABN.mjs} +4 -4
  57. package/dist/cli/{legacy-noops-5XDGOFWH.js → legacy-noops-WXAYRQMQ.js} +7 -7
  58. package/dist/cli/{monitors-KH22PDOC.js → monitors-LPUCHRNJ.js} +85 -85
  59. package/dist/cli/{monitors-33IU5JR6.mjs → monitors-VHNWIF4V.mjs} +4 -4
  60. package/dist/cli/{org-X4NSLQG5.js → org-GWHWBCMD.js} +64 -64
  61. package/dist/cli/{org-MHYMWUEP.mjs → org-UW7NPGEY.mjs} +4 -4
  62. package/dist/cli/play-EVBIC7Z5.js +155 -0
  63. package/dist/cli/{play-LCZKHKW2.mjs → play-FNM2E66T.mjs} +8 -8
  64. package/dist/cli/{providers-J6LWCF5R.js → providers-6D6R3PWX.js} +7 -7
  65. package/dist/cli/{providers-L5FJTSEA.mjs → providers-XAZMYDWS.mjs} +4 -4
  66. package/dist/cli/{quickstart-OOPFA4MX.js → quickstart-HBUWBVH6.js} +5 -5
  67. package/dist/cli/{quickstart-NE3BTWGL.mjs → quickstart-OK65PGZL.mjs} +3 -3
  68. package/dist/cli/search-6ZY2XWP2.js +26 -0
  69. package/dist/cli/{search-DBXOEOIE.mjs → search-XY6JOTS2.mjs} +5 -5
  70. package/dist/cli/{secrets-WPMU7UBD.js → secrets-6CYCPK7T.js} +13 -13
  71. package/dist/cli/{secrets-U2MLWZH2.mjs → secrets-W2LDLU2W.mjs} +4 -4
  72. package/dist/cli/{sessions-YYZ3UJDS.js → sessions-GOYEKNTJ.js} +5 -5
  73. package/dist/cli/{sessions-WYNC4AUE.mjs → sessions-JAX7PGXU.mjs} +4 -4
  74. package/dist/cli/{settings-FQZSHFC6.mjs → settings-OACUQOCM.mjs} +7 -7
  75. package/dist/cli/{settings-WQDFX3X6.js → settings-QMFYFCT7.js} +74 -74
  76. package/dist/cli/{setup-JKYJT35S.mjs → setup-2KA5TZBZ.mjs} +6 -6
  77. package/dist/cli/{setup-DKYVNDTM.js → setup-36VOOGVA.js} +41 -41
  78. package/dist/cli/skills-6GPIEPTP.js +28 -0
  79. package/dist/cli/{skills-VHVCJJJY.mjs → skills-QY4BX5ZX.mjs} +4 -4
  80. package/dist/cli/tools-RTECP4WT.js +40 -0
  81. package/dist/cli/{tools-E23PU7KM.mjs → tools-UCB2QRVC.mjs} +8 -8
  82. package/dist/cli/{update-4A4VU6CW.mjs → update-327MHUO4.mjs} +6 -6
  83. package/dist/cli/update-WR65EHBN.js +28 -0
  84. package/dist/cli/{workflow-WB2USWAA.js → workflow-G7BU54KW.js} +15 -15
  85. package/dist/cli/{workflow-2ZR2ECTG.mjs → workflow-HJN4GA5A.mjs} +5 -5
  86. package/dist/{client-Cw0e2Uec.d.mts → client-Cn-txrXv.d.mts} +1 -1
  87. package/dist/{client-CwdiawoG.d.ts → client-fPoIN-3V.d.ts} +1 -1
  88. package/dist/{compiler-manifest-DgdW0q0b.d.mts → compiler-manifest-CY2v8ab0.d.mts} +2 -0
  89. package/dist/{compiler-manifest-DgdW0q0b.d.ts → compiler-manifest-CY2v8ab0.d.ts} +2 -0
  90. package/dist/{index-C3nQQTI-.d.mts → index-B9fBZH1g.d.mts} +1 -1
  91. package/dist/{index-CEYQAfS0.d.ts → index-BZ6uzZJl.d.ts} +1 -1
  92. package/dist/index.d.mts +5 -5
  93. package/dist/index.d.ts +5 -5
  94. package/dist/index.js +79 -249
  95. package/dist/index.mjs +10 -180
  96. package/dist/install-integrity.json +85 -84
  97. package/dist/plays/bundle-play-file.d.mts +3 -3
  98. package/dist/plays/bundle-play-file.d.ts +3 -3
  99. package/dist/plays/run-request.d.mts +2 -2
  100. package/dist/plays/run-request.d.ts +2 -2
  101. package/dist/release.d.mts +1 -1
  102. package/dist/release.d.ts +1 -1
  103. package/dist/release.js +2 -2
  104. package/dist/release.mjs +1 -1
  105. package/package.json +1 -1
  106. package/dist/cli/auth-4SXMV3CD.js +0 -33
  107. package/dist/cli/client-UUNLXOHF.js +0 -20
  108. package/dist/cli/git-ITSCNUVB.js +0 -23
  109. package/dist/cli/play-4QRPOBWW.js +0 -155
  110. package/dist/cli/search-UGQDBP76.js +0 -26
  111. package/dist/cli/skills-VBQMXDAX.js +0 -28
  112. package/dist/cli/tools-ACEJZMJD.js +0 -40
  113. package/dist/cli/update-V5KMYHVE.js +0 -28
package/dist/index.js CHANGED
@@ -10,7 +10,13 @@ var _chunkGEJDBXXMjs = require('./cli/chunk-GEJDBXXM.js');
10
10
 
11
11
 
12
12
 
13
- var _chunkE5UD3JDQjs = require('./cli/chunk-E5UD3JDQ.js');
13
+
14
+
15
+
16
+
17
+
18
+
19
+ var _chunk3VN4FTE3js = require('./cli/chunk-3VN4FTE3.js');
14
20
 
15
21
 
16
22
  var _chunk5O4B6AUNjs = require('./cli/chunk-5O4B6AUN.js');
@@ -22,7 +28,7 @@ var _chunk5O4B6AUNjs = require('./cli/chunk-5O4B6AUN.js');
22
28
 
23
29
 
24
30
 
25
- var _chunkRUYZAREBjs = require('./cli/chunk-RUYZAREB.js');
31
+ var _chunkE7MGPPM5js = require('./cli/chunk-E7MGPPM5.js');
26
32
 
27
33
 
28
34
  var _chunkS6R3OX7Bjs = require('./cli/chunk-S6R3OX7B.js');
@@ -56,7 +62,7 @@ var _chunkIF75RD6Ujs = require('./cli/chunk-IF75RD6U.js');
56
62
 
57
63
 
58
64
 
59
- var _chunkML2ZY7YDjs = require('./cli/chunk-ML2ZY7YD.js');
65
+ var _chunkND4BVWWZjs = require('./cli/chunk-ND4BVWWZ.js');
60
66
  require('./cli/chunk-XNYIZMNQ.js');
61
67
 
62
68
 
@@ -66,186 +72,10 @@ require('./cli/chunk-XNYIZMNQ.js');
66
72
 
67
73
 
68
74
  var _chunk7P5AA3SNjs = require('./cli/chunk-7P5AA3SN.js');
69
- require('./cli/chunk-DM5QUZJR.js');
75
+ require('./cli/chunk-CLEB5KUZ.js');
70
76
  require('./cli/chunk-OG64RBAC.js');
71
77
  require('./cli/chunk-COGTRVWW.js');
72
78
 
73
- // ../plays/email-status.ts
74
- function normalizeKey(value) {
75
- if (value == null) return null;
76
- if (typeof value === "boolean") return String(value);
77
- const normalized = String(value).trim().toLowerCase().replace(/\s+/g, "_");
78
- return normalized || null;
79
- }
80
- function boolish(value) {
81
- if (typeof value === "boolean") return value;
82
- if (typeof value === "number")
83
- return value === 1 ? true : value === 0 ? false : null;
84
- if (typeof value !== "string") return null;
85
- const normalized = value.trim().toLowerCase();
86
- if (["true", "yes", "y", "1"].includes(normalized)) return true;
87
- if (["false", "no", "n", "0"].includes(normalized)) return false;
88
- return null;
89
- }
90
- function numberish(value) {
91
- if (typeof value === "number" && Number.isFinite(value)) return value;
92
- if (typeof value !== "string" || value.trim() === "") return null;
93
- const parsed = Number(value);
94
- return Number.isFinite(parsed) ? parsed : null;
95
- }
96
- function stringish(value) {
97
- return typeof value === "string" && value.trim() ? value.trim() : null;
98
- }
99
- function deliverability(value) {
100
- const normalized = normalizeKey(value);
101
- return normalized === "high" || normalized === "medium" || normalized === "low" ? normalized : "unknown";
102
- }
103
- function mxClass(mxProvider, mxRecord) {
104
- const haystack = `${_nullishCoalesce(stringish(mxProvider), () => ( ""))} ${_nullishCoalesce(stringish(mxRecord), () => ( ""))}`.toLowerCase();
105
- if (!haystack.trim()) return "unknown";
106
- if (/proofpoint|pphosted|mimecast|barracuda|ess\.barracudanetworks|ironport|cisco|iphmx|messagelabs|symantec/.test(
107
- haystack
108
- )) {
109
- return "security_gateway";
110
- }
111
- if (/aspmx\.l\.google|google|g-suite|google workspace/.test(haystack)) {
112
- return "workspace_mailbox";
113
- }
114
- if (/protection\.outlook|office365|microsoft|outlook|exchange online/.test(
115
- haystack
116
- )) {
117
- return "workspace_mailbox";
118
- }
119
- if (/gmail|yahoo|icloud|aol|hotmail/.test(haystack))
120
- return "consumer_mailbox";
121
- if (/postfix|exim|sendmail|zimbra|plesk|cpanel|mail\./.test(haystack))
122
- return "on_prem";
123
- return "unknown";
124
- }
125
- function entryForStatus(key, map) {
126
- if (!key) return null;
127
- return _nullishCoalesce(_optionalChain([map, 'optionalAccess', _ => _[key]]), () => ( null));
128
- }
129
- function read(values, name) {
130
- return values[name];
131
- }
132
- function matchesRule(rule, values) {
133
- return Object.entries(rule.when).every(([key, expected]) => {
134
- const actual = read(values, key);
135
- if (key.endsWith("Lt")) {
136
- const source = numberish(read(values, key.slice(0, -2)));
137
- return typeof expected === "number" && source != null && source < expected;
138
- }
139
- if (typeof expected === "boolean") return boolish(actual) === expected;
140
- if (typeof expected === "number") return numberish(actual) === expected;
141
- return normalizeKey(actual) === normalizeKey(expected);
142
- });
143
- }
144
- function buildEmailStatus({
145
- config,
146
- values
147
- }) {
148
- const rawStatus = read(values, "rawStatus");
149
- const rawScore = numberish(read(values, "rawScore"));
150
- const valid = boolish(read(values, "valid"));
151
- const catchAll = boolish(read(values, "catchAll"));
152
- const disposable = boolish(read(values, "disposable"));
153
- const abuse = boolish(read(values, "abuse"));
154
- const spamtrap = boolish(read(values, "spamtrap"));
155
- const suspect = boolish(read(values, "suspect"));
156
- const rawKey = normalizeKey(rawStatus);
157
- const mapped = _nullishCoalesce(_nullishCoalesce(_optionalChain([config, 'access', _2 => _2.rules, 'optionalAccess', _3 => _3.find, 'call', _4 => _4((rule) => matchesRule(rule, values))]), () => ( entryForStatus(rawKey, config.statusMap))), () => ( entryForStatus(valid == null ? null : String(valid), config.statusMap)));
158
- const status = _nullishCoalesce(_optionalChain([mapped, 'optionalAccess', _5 => _5.status]), () => ( (disposable ? "disposable" : abuse ? "abuse" : spamtrap ? "spamtrap" : catchAll ? "catch_all" : valid === true ? "valid" : valid === false ? "invalid" : "unknown")));
159
- const defaultVerdict = status === "valid" ? "send" : status === "valid_catch_all" ? "send_with_caution" : status === "catch_all" ? "verify_next" : status === "unknown" ? "hold" : "drop";
160
- const verdict = _nullishCoalesce(_optionalChain([mapped, 'optionalAccess', _6 => _6.verdict]), () => ( defaultVerdict));
161
- const verified = _nullishCoalesce(_optionalChain([mapped, 'optionalAccess', _7 => _7.verified]), () => ( (status === "valid" || status === "valid_catch_all" || verdict === "send")));
162
- const reasons = [
163
- _optionalChain([mapped, 'optionalAccess', _8 => _8.reason]),
164
- catchAll ? "catch_all_domain" : null,
165
- mxClass(read(values, "mxProvider"), read(values, "mxRecord")) === "security_gateway" ? "security_gateway_mx" : null,
166
- suspect ? "provider_marked_suspect" : null
167
- ].filter((reason) => typeof reason === "string");
168
- return {
169
- verdict,
170
- status,
171
- verified,
172
- confidence: rawScore,
173
- reasons,
174
- signals: {
175
- catch_all: catchAll,
176
- deliverability: deliverability(read(values, "deliverability")),
177
- mx_class: mxClass(read(values, "mxProvider"), read(values, "mxRecord")),
178
- mx_provider: stringish(read(values, "mxProvider")),
179
- mx_record: stringish(read(values, "mxRecord")),
180
- fraud_score: numberish(read(values, "fraudScore")),
181
- disposable,
182
- role_based: boolish(read(values, "roleBased")),
183
- free_email: boolish(read(values, "freeEmail")),
184
- abuse,
185
- spamtrap,
186
- suspect,
187
- valid
188
- },
189
- provider: {
190
- name: config.provider,
191
- raw_status: typeof rawStatus === "string" || typeof rawStatus === "boolean" || typeof rawStatus === "number" ? rawStatus : null,
192
- raw_score: rawScore
193
- }
194
- };
195
- }
196
-
197
- // ../plays/extractor-targets.ts
198
- var JOB_CHANGE_STATUS_VALUES = [
199
- "moved",
200
- "no_change",
201
- "left_company",
202
- "unknown",
203
- "profile_unavailable",
204
- "no_new_company"
205
- ];
206
- var PHONE_STATUS_VALUES = ["valid", "invalid", "unknown"];
207
- var DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS = {
208
- id: { identity: true, valueKind: "string" },
209
- name: { identity: true, valueKind: "string" },
210
- email: { identity: true, valueKind: "string" },
211
- personal_email: { identity: true, valueKind: "string" },
212
- phone: { identity: true, valueKind: "string" },
213
- linkedin: { identity: true, valueKind: "string" },
214
- linkedin_url: { identity: true, valueKind: "string" },
215
- domain: { identity: true, valueKind: "string" },
216
- website: { identity: true, valueKind: "string" },
217
- first_name: { identity: true, valueKind: "string" },
218
- last_name: { identity: true, valueKind: "string" },
219
- full_name: { identity: true, valueKind: "string" },
220
- company: { identity: true, valueKind: "string" },
221
- company_name: { identity: true, valueKind: "string" },
222
- organization_name: { identity: true, valueKind: "string" },
223
- company_domain: { identity: true, valueKind: "string" },
224
- company_website: { identity: true, valueKind: "string" },
225
- company_linkedin_url: { identity: true, valueKind: "string" },
226
- title: { identity: false, valueKind: "string" },
227
- industry: { identity: false, valueKind: "string" },
228
- status: { identity: false, valueKind: "string" },
229
- job_change: { identity: false, valueKind: "job_change" },
230
- job_change_status: {
231
- identity: false,
232
- valueKind: "job_change_status",
233
- enum: JOB_CHANGE_STATUS_VALUES
234
- },
235
- email_status: { identity: false, valueKind: "email_status" },
236
- phone_status: {
237
- identity: false,
238
- valueKind: "phone_status",
239
- enum: PHONE_STATUS_VALUES
240
- }
241
- };
242
- var DEEPLINE_EXTRACTOR_TARGETS = Object.keys(
243
- DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS
244
- );
245
- function isDeeplineExtractorTarget(value) {
246
- return value in DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS;
247
- }
248
-
249
79
  // ../plays/dataset.ts
250
80
  var PLAY_DATASET_BRAND = Symbol.for("deepline.play.dataset");
251
81
  var NODE_INSPECT_CUSTOM = Symbol.for("nodejs.util.inspect.custom");
@@ -368,7 +198,7 @@ var DeferredPlayDataset = (_class = class {
368
198
  }
369
199
  async materialize(options) {
370
200
  const scope = typeof options === "object" ? _nullishCoalesce(options.scope, () => ( "result")) : "result";
371
- const limit = typeof options === "number" ? options : _optionalChain([options, 'optionalAccess', _9 => _9.limit]);
201
+ const limit = typeof options === "number" ? options : _optionalChain([options, 'optionalAccess', _ => _.limit]);
372
202
  const requestedLimit = limit !== void 0 ? Math.max(0, Math.floor(limit)) : void 0;
373
203
  const cap = resolveMaterializeLimitCap();
374
204
  const materialize = scope === "full_persisted_dataset" ? this.resolvers.materializeFullPersistedDataset : this.resolvers.materialize;
@@ -437,11 +267,11 @@ function normalizeSliceBounds(input) {
437
267
  return { start, end: Math.max(start, end) };
438
268
  }
439
269
  function transformDatasetId(input) {
440
- const key = _optionalChain([input, 'access', _10 => _10.key, 'optionalAccess', _11 => _11.trim, 'call', _12 => _12()]);
270
+ const key = _optionalChain([input, 'access', _2 => _2.key, 'optionalAccess', _3 => _3.trim, 'call', _4 => _4()]);
441
271
  return key ? `${input.source.datasetId}:${input.kind}:${key}` : `${input.source.datasetId}:${input.kind}`;
442
272
  }
443
273
  function createTransformedPlayDataset(source, transform, options) {
444
- const sourceLabel = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _13 => _13.sourceLabel]), () => ( `${_nullishCoalesce(_nullishCoalesce(source.sourceLabel, () => ( source.tableNamespace)), () => ( source.datasetId))}.${transform.kind}`));
274
+ const sourceLabel = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _5 => _5.sourceLabel]), () => ( `${_nullishCoalesce(_nullishCoalesce(source.sourceLabel, () => ( source.tableNamespace)), () => ( source.datasetId))}.${transform.kind}`));
445
275
  const iterate = async function* () {
446
276
  if (transform.kind === "slice") {
447
277
  const bounds = normalizeSliceBounds({
@@ -506,13 +336,13 @@ function createTransformedPlayDataset(source, transform, options) {
506
336
  datasetId: transformDatasetId({
507
337
  source,
508
338
  kind: transform.kind,
509
- key: _optionalChain([options, 'optionalAccess', _14 => _14.key])
339
+ key: _optionalChain([options, 'optionalAccess', _6 => _6.key])
510
340
  }),
511
341
  count: 0,
512
342
  knownCount: null,
513
343
  backing: source.backing,
514
344
  sourceLabel,
515
- tableNamespace: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _15 => _15.key]), () => ( null)),
345
+ tableNamespace: _nullishCoalesce(_optionalChain([options, 'optionalAccess', _7 => _7.key]), () => ( null)),
516
346
  columnTypes: transform.kind === "map" ? void 0 : source.columnTypes,
517
347
  resolvers: {
518
348
  count,
@@ -594,14 +424,14 @@ function datasetAsyncOnlyError(dataset, detail, guidance) {
594
424
  function createPlayDataset(rows, metadata) {
595
425
  const materializedRows = [...rows];
596
426
  return createDeferredPlayDataset({
597
- datasetKind: _nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _16 => _16.kind]), () => ( "map")),
598
- datasetId: _nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _17 => _17.datasetId]), () => ( `${_nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _18 => _18.kind]), () => ( "map"))}:${_nullishCoalesce(_nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _19 => _19.tableNamespace]), () => ( _optionalChain([metadata, 'optionalAccess', _20 => _20.sourceLabel]))), () => ( "inline"))}`)),
427
+ datasetKind: _nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _8 => _8.kind]), () => ( "map")),
428
+ datasetId: _nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _9 => _9.datasetId]), () => ( `${_nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _10 => _10.kind]), () => ( "map"))}:${_nullishCoalesce(_nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _11 => _11.tableNamespace]), () => ( _optionalChain([metadata, 'optionalAccess', _12 => _12.sourceLabel]))), () => ( "inline"))}`)),
599
429
  count: materializedRows.length,
600
430
  previewRows: materializedRows.slice(0, 5),
601
431
  residentRows: materializedRows,
602
- sourceLabel: _nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _21 => _21.sourceLabel]), () => ( null)),
603
- tableNamespace: _nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _22 => _22.tableNamespace]), () => ( null)),
604
- columnTypes: _optionalChain([metadata, 'optionalAccess', _23 => _23.columnTypes]),
432
+ sourceLabel: _nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _13 => _13.sourceLabel]), () => ( null)),
433
+ tableNamespace: _nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _14 => _14.tableNamespace]), () => ( null)),
434
+ columnTypes: _optionalChain([metadata, 'optionalAccess', _15 => _15.columnTypes]),
605
435
  resolvers: {
606
436
  count: async () => materializedRows.length,
607
437
  peek: async (limit) => materializedRows.slice(0, Math.max(0, limit)),
@@ -619,7 +449,7 @@ function createPlayDataset(rows, metadata) {
619
449
 
620
450
  // ../play-runtime/tool-result-paths.ts
621
451
  function listNameFromDeclaredPath(path) {
622
- return _optionalChain([String, 'call', _24 => _24(path || ""), 'access', _25 => _25.split, 'call', _26 => _26("."), 'access', _27 => _27.filter, 'call', _28 => _28(Boolean), 'access', _29 => _29.at, 'call', _30 => _30(-1), 'optionalAccess', _31 => _31.replace, 'call', _32 => _32(/[^A-Za-z0-9_$]/g, "")]) || null;
452
+ return _optionalChain([String, 'call', _16 => _16(path || ""), 'access', _17 => _17.split, 'call', _18 => _18("."), 'access', _19 => _19.filter, 'call', _20 => _20(Boolean), 'access', _21 => _21.at, 'call', _22 => _22(-1), 'optionalAccess', _23 => _23.replace, 'call', _24 => _24(/[^A-Za-z0-9_$]/g, "")]) || null;
623
453
  }
624
454
 
625
455
  // ../play-runtime/tool-result.ts
@@ -990,7 +820,7 @@ function buildEmailStatusTarget(result, descriptor) {
990
820
  if (!firstPath) return null;
991
821
  return {
992
822
  path: firstPath,
993
- value: buildEmailStatus({ config, values })
823
+ value: _chunk3VN4FTE3js.buildEmailStatus.call(void 0, { config, values })
994
824
  };
995
825
  }
996
826
  function findFirstTargetByKey(result, target, depth = 0, path = []) {
@@ -1010,7 +840,7 @@ function findFirstTargetByKey(result, target, depth = 0, path = []) {
1010
840
  match: [new RegExp(`^${target}$`, "i")]
1011
841
  }));
1012
842
  for (const [key, value] of Object.entries(result)) {
1013
- if (_optionalChain([rule, 'access', _33 => _33.reject, 'optionalAccess', _34 => _34.some, 'call', _35 => _35((pattern) => pattern.test(key))])) continue;
843
+ if (_optionalChain([rule, 'access', _25 => _25.reject, 'optionalAccess', _26 => _26.some, 'call', _27 => _27((pattern) => pattern.test(key))])) continue;
1014
844
  if (!rule.match.some((pattern) => pattern.test(key))) continue;
1015
845
  const accepted = acceptedTargetValue(target, value);
1016
846
  if (accepted !== void 0) {
@@ -1027,7 +857,7 @@ function findFirstTargetByKey(result, target, depth = 0, path = []) {
1027
857
  return null;
1028
858
  }
1029
859
  function normalizeEmailStatus(value) {
1030
- const normalized = _optionalChain([normalizeString, 'call', _36 => _36(value), 'optionalAccess', _37 => _37.toLowerCase, 'call', _38 => _38(), 'access', _39 => _39.replace, 'call', _40 => _40(/[\s-]+/g, "_")]);
860
+ const normalized = _optionalChain([normalizeString, 'call', _28 => _28(value), 'optionalAccess', _29 => _29.toLowerCase, 'call', _30 => _30(), 'access', _31 => _31.replace, 'call', _32 => _32(/[\s-]+/g, "_")]);
1031
861
  if (!normalized) return "unknown";
1032
862
  if (["deliverable", "verified", "ok", "true"].includes(normalized))
1033
863
  return "valid";
@@ -1042,7 +872,7 @@ function normalizeEmailStatus(value) {
1042
872
  }
1043
873
  function normalizePhoneStatus(value) {
1044
874
  if (typeof value === "boolean") return value ? "valid" : "invalid";
1045
- const normalized = _optionalChain([normalizeString, 'call', _41 => _41(value), 'optionalAccess', _42 => _42.toLowerCase, 'call', _43 => _43(), 'access', _44 => _44.replace, 'call', _45 => _45(/[\s-]+/g, "_")]);
875
+ const normalized = _optionalChain([normalizeString, 'call', _33 => _33(value), 'optionalAccess', _34 => _34.toLowerCase, 'call', _35 => _35(), 'access', _36 => _36.replace, 'call', _37 => _37(/[\s-]+/g, "_")]);
1046
876
  if (!normalized) return "unknown";
1047
877
  if (["verified", "ok", "true", "active"].includes(normalized)) return "valid";
1048
878
  if (["bad", "false", "failed", "inactive", "disconnected"].includes(normalized)) {
@@ -1051,14 +881,14 @@ function normalizePhoneStatus(value) {
1051
881
  return normalized;
1052
882
  }
1053
883
  function normalizeSearchbugReassignedStatus(value) {
1054
- const normalized = _optionalChain([normalizeString, 'call', _46 => _46(value), 'optionalAccess', _47 => _47.toUpperCase, 'call', _48 => _48()]);
884
+ const normalized = _optionalChain([normalizeString, 'call', _38 => _38(value), 'optionalAccess', _39 => _39.toUpperCase, 'call', _40 => _40()]);
1055
885
  if (normalized === "NO") return "valid";
1056
886
  if (normalized === "YES") return "invalid";
1057
887
  return "unknown";
1058
888
  }
1059
889
  function normalizeJobChangeStatus(value) {
1060
890
  if (typeof value === "boolean") return value ? "moved" : "no_change";
1061
- const normalized = _optionalChain([normalizeString, 'call', _49 => _49(value), 'optionalAccess', _50 => _50.toLowerCase, 'call', _51 => _51(), 'access', _52 => _52.replace, 'call', _53 => _53(/[\s-]+/g, "_")]);
891
+ const normalized = _optionalChain([normalizeString, 'call', _41 => _41(value), 'optionalAccess', _42 => _42.toLowerCase, 'call', _43 => _43(), 'access', _44 => _44.replace, 'call', _45 => _45(/[\s-]+/g, "_")]);
1062
892
  if (!normalized) return "unknown";
1063
893
  if (["true", "yes", "moved", "changed", "new_company"].includes(normalized)) {
1064
894
  return "moved";
@@ -1066,7 +896,7 @@ function normalizeJobChangeStatus(value) {
1066
896
  if (["false", "no", "same", "no_change"].includes(normalized))
1067
897
  return "no_change";
1068
898
  if (["left", "left_company"].includes(normalized)) return "left_company";
1069
- if (JOB_CHANGE_STATUS_VALUES.includes(normalized)) {
899
+ if (_chunk3VN4FTE3js.JOB_CHANGE_STATUS_VALUES.includes(normalized)) {
1070
900
  return normalized;
1071
901
  }
1072
902
  return "unknown";
@@ -1117,7 +947,7 @@ function applyExtractorTransforms(value, descriptor) {
1117
947
  }, value);
1118
948
  }
1119
949
  function coerceToEnum(value, descriptor) {
1120
- if (!_optionalChain([descriptor, 'access', _54 => _54.enum, 'optionalAccess', _55 => _55.length])) return value;
950
+ if (!_optionalChain([descriptor, 'access', _46 => _46.enum, 'optionalAccess', _47 => _47.length])) return value;
1121
951
  const normalized = normalizeString(value);
1122
952
  if (!normalized) return value;
1123
953
  return descriptor.enum.includes(normalized) ? normalized : value;
@@ -1148,7 +978,7 @@ function resolveListRows(result, listExtractorPaths) {
1148
978
  resolved ??= emptyMatch;
1149
979
  if (!resolved) continue;
1150
980
  const existing = lists[listName];
1151
- if (_optionalChain([existing, 'optionalAccess', _56 => _56.rows, 'access', _57 => _57.length]) && resolved.rows.length === 0) {
981
+ if (_optionalChain([existing, 'optionalAccess', _48 => _48.rows, 'access', _49 => _49.length]) && resolved.rows.length === 0) {
1152
982
  continue;
1153
983
  }
1154
984
  lists[listName] = resolved;
@@ -1215,7 +1045,7 @@ function buildTargets(result, extractors, targetGetters) {
1215
1045
  const declaredTargetPaths = /* @__PURE__ */ new Map();
1216
1046
  const semanticStatusTargets = /* @__PURE__ */ new Set();
1217
1047
  for (const [target, descriptor] of Object.entries(_nullishCoalesce(extractors, () => ( {})))) {
1218
- const isSemanticStatus = descriptor.emailStatus !== void 0 || _optionalChain([descriptor, 'access', _58 => _58.transforms, 'optionalAccess', _59 => _59.some, 'call', _60 => _60(
1048
+ const isSemanticStatus = descriptor.emailStatus !== void 0 || _optionalChain([descriptor, 'access', _50 => _50.transforms, 'optionalAccess', _51 => _51.some, 'call', _52 => _52(
1219
1049
  (transform) => /(emailStatus|phoneStatus|reassignedStatus|jobChange(?:Status)?)$/.test(
1220
1050
  transform
1221
1051
  )
@@ -1244,7 +1074,7 @@ function buildTargets(result, extractors, targetGetters) {
1244
1074
  const override = findExtractorOverride(result, descriptor);
1245
1075
  targets[target] = {
1246
1076
  path: fromExtractor.path,
1247
- value: _nullishCoalesce(_optionalChain([override, 'optionalAccess', _61 => _61.value]), () => ( transformed))
1077
+ value: _nullishCoalesce(_optionalChain([override, 'optionalAccess', _53 => _53.value]), () => ( transformed))
1248
1078
  };
1249
1079
  }
1250
1080
  const metadataTargets = new Set(Object.keys(_nullishCoalesce(targetGetters, () => ( {}))));
@@ -1252,11 +1082,11 @@ function buildTargets(result, extractors, targetGetters) {
1252
1082
  if (targets[target] || semanticStatusTargets.has(target)) continue;
1253
1083
  declaredTargetPaths.set(
1254
1084
  target,
1255
- _nullishCoalesce(_nullishCoalesce(_optionalChain([targetGetters, 'optionalAccess', _62 => _62[target]]), () => ( declaredTargetPaths.get(target))), () => ( []))
1085
+ _nullishCoalesce(_nullishCoalesce(_optionalChain([targetGetters, 'optionalAccess', _54 => _54[target]]), () => ( declaredTargetPaths.get(target))), () => ( []))
1256
1086
  );
1257
1087
  const fromMetadata = findFirstTargetByPath(
1258
1088
  result,
1259
- _optionalChain([targetGetters, 'optionalAccess', _63 => _63[target]]),
1089
+ _optionalChain([targetGetters, 'optionalAccess', _55 => _55[target]]),
1260
1090
  target
1261
1091
  );
1262
1092
  if (fromMetadata) {
@@ -1265,7 +1095,7 @@ function buildTargets(result, extractors, targetGetters) {
1265
1095
  }
1266
1096
  const explicitNull = findFirstExplicitNullTargetByPath(
1267
1097
  result,
1268
- _optionalChain([targetGetters, 'optionalAccess', _64 => _64[target]])
1098
+ _optionalChain([targetGetters, 'optionalAccess', _56 => _56[target]])
1269
1099
  );
1270
1100
  if (explicitNull) {
1271
1101
  targets[target] = explicitNull;
@@ -1344,7 +1174,7 @@ function buildExtractedAccessors(targets) {
1344
1174
  function buildListAccessors(resolved, lists, toolId, executionDiscriminator) {
1345
1175
  return Object.fromEntries(
1346
1176
  Object.entries(lists).map(([name, metadata]) => {
1347
- const rows = _nullishCoalesce(_optionalChain([resolved, 'access', _65 => _65[name], 'optionalAccess', _66 => _66.rows]), () => ( []));
1177
+ const rows = _nullishCoalesce(_optionalChain([resolved, 'access', _57 => _57[name], 'optionalAccess', _58 => _58.rows]), () => ( []));
1348
1178
  const datasetDiscriminator = `${executionDiscriminator}:${listRowsFingerprint(rows)}`;
1349
1179
  const dataset = createPlayDataset(rows, {
1350
1180
  kind: "csv",
@@ -1355,7 +1185,7 @@ function buildListAccessors(resolved, lists, toolId, executionDiscriminator) {
1355
1185
  metadata.path,
1356
1186
  datasetDiscriminator
1357
1187
  ),
1358
- datasetId: `tool-list:${_chunkE5UD3JDQjs.sha256Hex.call(void 0,
1188
+ datasetId: `tool-list:${_chunk3VN4FTE3js.sha256Hex.call(void 0,
1359
1189
  `${toolId}:${metadata.path}:${datasetDiscriminator}`
1360
1190
  )}`
1361
1191
  });
@@ -1376,7 +1206,7 @@ function buildListAccessors(resolved, lists, toolId, executionDiscriminator) {
1376
1206
  }
1377
1207
  function listRowsFingerprint(rows) {
1378
1208
  try {
1379
- return _chunkE5UD3JDQjs.sha256Hex.call(void 0,
1209
+ return _chunk3VN4FTE3js.sha256Hex.call(void 0,
1380
1210
  JSON.stringify(
1381
1211
  {
1382
1212
  count: rows.length,
@@ -1386,23 +1216,23 @@ function listRowsFingerprint(rows) {
1386
1216
  )
1387
1217
  ).slice(0, 12);
1388
1218
  } catch (e) {
1389
- return _chunkE5UD3JDQjs.sha256Hex.call(void 0, String(rows.length)).slice(0, 12);
1219
+ return _chunk3VN4FTE3js.sha256Hex.call(void 0, String(rows.length)).slice(0, 12);
1390
1220
  }
1391
1221
  }
1392
1222
  function listTableNamespace(toolId, name, path, discriminator) {
1393
- const raw = `${toolId}_${name || path || "rows"}_${_chunkE5UD3JDQjs.sha256Hex.call(void 0, discriminator).slice(0, 10)}`;
1223
+ const raw = `${toolId}_${name || path || "rows"}_${_chunk3VN4FTE3js.sha256Hex.call(void 0, discriminator).slice(0, 10)}`;
1394
1224
  try {
1395
- return _chunkE5UD3JDQjs.normalizeTableNamespace.call(void 0, raw);
1225
+ return _chunk3VN4FTE3js.normalizeTableNamespace.call(void 0, raw);
1396
1226
  } catch (e2) {
1397
- const hash = _chunkE5UD3JDQjs.sha256Hex.call(void 0, raw).slice(0, 10);
1227
+ const hash = _chunk3VN4FTE3js.sha256Hex.call(void 0, raw).slice(0, 10);
1398
1228
  const leaf = name || path.split(".").filter(Boolean).at(-1) || "rows";
1399
1229
  let prefix = "rows";
1400
1230
  try {
1401
- prefix = _chunkE5UD3JDQjs.normalizeTableNamespace.call(void 0, leaf).slice(0, 52) || "rows";
1231
+ prefix = _chunk3VN4FTE3js.normalizeTableNamespace.call(void 0, leaf).slice(0, 52) || "rows";
1402
1232
  } catch (e3) {
1403
1233
  prefix = "rows";
1404
1234
  }
1405
- return _chunkE5UD3JDQjs.normalizeTableNamespace.call(void 0, `${prefix}_${hash}`);
1235
+ return _chunk3VN4FTE3js.normalizeTableNamespace.call(void 0, `${prefix}_${hash}`);
1406
1236
  }
1407
1237
  }
1408
1238
  function createToolExecuteResult(input) {
@@ -1412,7 +1242,7 @@ function createToolExecuteResult(input) {
1412
1242
  toolResponse: {
1413
1243
  raw: result.data,
1414
1244
  ...input.response && "rawV2" in input.response ? { rawV2: input.response.rawV2 } : {},
1415
- ..._optionalChain([input, 'access', _67 => _67.response, 'optionalAccess', _68 => _68.view]) ? { view: input.response.view } : {},
1245
+ ..._optionalChain([input, 'access', _59 => _59.response, 'optionalAccess', _60 => _60.view]) ? { view: input.response.view } : {},
1416
1246
  ...result.meta ? { meta: result.meta } : {}
1417
1247
  }
1418
1248
  };
@@ -1437,7 +1267,7 @@ function createToolExecuteResult(input) {
1437
1267
  const toolResponse = {
1438
1268
  raw: result.data,
1439
1269
  ...input.response && "rawV2" in input.response ? { rawV2: input.response.rawV2 } : {},
1440
- ..._optionalChain([input, 'access', _69 => _69.response, 'optionalAccess', _70 => _70.view]) ? { view: input.response.view } : {},
1270
+ ..._optionalChain([input, 'access', _61 => _61.response, 'optionalAccess', _62 => _62.view]) ? { view: input.response.view } : {},
1441
1271
  ...result.meta ? { meta: result.meta } : {}
1442
1272
  };
1443
1273
  const extractedValues = buildExtractedAccessors(targets);
@@ -1481,7 +1311,7 @@ function readList(result, selector) {
1481
1311
  if (declaredList && preservedSerializedListRows(result)) {
1482
1312
  return listAccessorDataset(declaredList);
1483
1313
  }
1484
- const found = _optionalChain([findFirstTargetByPath, 'call', _71 => _71(resultRootOf(result), paths), 'optionalAccess', _72 => _72.value]);
1314
+ const found = _optionalChain([findFirstTargetByPath, 'call', _63 => _63(resultRootOf(result), paths), 'optionalAccess', _64 => _64.value]);
1485
1315
  const rows = normalizeRows(found);
1486
1316
  if (rows) {
1487
1317
  if (declaredList && typeof declaredList.count === "number" && declaredList.count > rows.length) {
@@ -1499,7 +1329,7 @@ function attachToolResultListDataset(result, input) {
1499
1329
  result._metadata.lists[input.name] = {
1500
1330
  path: input.path,
1501
1331
  count: input.count,
1502
- keys: _nullishCoalesce(_nullishCoalesce(input.keys, () => ( _optionalChain([existing, 'optionalAccess', _73 => _73.keys]))), () => ( {}))
1332
+ keys: _nullishCoalesce(_nullishCoalesce(input.keys, () => ( _optionalChain([existing, 'optionalAccess', _65 => _65.keys]))), () => ( {}))
1503
1333
  };
1504
1334
  const declaredPaths = _nullishCoalesce(result._metadata.listExtractorPaths, () => ( []));
1505
1335
  const inputCandidates = new Set(candidateResultPaths(input.path));
@@ -1648,7 +1478,7 @@ var DeeplineStepProgram = (_class3 = class _DeeplineStepProgram {
1648
1478
  "steps().step(name, ...) requires a non-empty step name."
1649
1479
  );
1650
1480
  }
1651
- const stepResolver = _optionalChain([options, 'optionalAccess', _74 => _74.runIf]) && !isConditionalStepResolver(resolver) ? new DeeplineConditionalStepResolver(
1481
+ const stepResolver = _optionalChain([options, 'optionalAccess', _66 => _66.runIf]) && !isConditionalStepResolver(resolver) ? new DeeplineConditionalStepResolver(
1652
1482
  options.runIf,
1653
1483
  resolver,
1654
1484
  null
@@ -1658,9 +1488,9 @@ var DeeplineStepProgram = (_class3 = class _DeeplineStepProgram {
1658
1488
  ...this.steps,
1659
1489
  {
1660
1490
  name,
1661
- ..._optionalChain([options, 'optionalAccess', _75 => _75.recompute]) === true ? { recompute: true } : {},
1662
- ..._optionalChain([options, 'optionalAccess', _76 => _76.recomputeOnError]) === true ? { recomputeOnError: true } : {},
1663
- ...typeof _optionalChain([options, 'optionalAccess', _77 => _77.staleAfterSeconds]) === "number" ? { staleAfterSeconds: options.staleAfterSeconds } : {},
1491
+ ..._optionalChain([options, 'optionalAccess', _67 => _67.recompute]) === true ? { recompute: true } : {},
1492
+ ..._optionalChain([options, 'optionalAccess', _68 => _68.recomputeOnError]) === true ? { recomputeOnError: true } : {},
1493
+ ...typeof _optionalChain([options, 'optionalAccess', _69 => _69.staleAfterSeconds]) === "number" ? { staleAfterSeconds: options.staleAfterSeconds } : {},
1664
1494
  resolver: stepResolver
1665
1495
  }
1666
1496
  ],
@@ -1700,13 +1530,13 @@ var DeeplinePlayJobImpl = class {
1700
1530
  return this.client.getPlayStatus(this.id);
1701
1531
  }
1702
1532
  async tail(options) {
1703
- const intervalMs = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _78 => _78.intervalMs]), () => ( 500));
1704
- const onLog = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _79 => _79.onLog]), () => ( ((line) => console.log(line))));
1533
+ const intervalMs = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _70 => _70.intervalMs]), () => ( 500));
1534
+ const onLog = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _71 => _71.onLog]), () => ( ((line) => console.log(line))));
1705
1535
  const terminalStates = /* @__PURE__ */ new Set(["completed", "failed", "cancelled"]);
1706
1536
  let lastLogIndex = 0;
1707
1537
  while (true) {
1708
1538
  const status = await this.status();
1709
- const logs = _nullishCoalesce(_optionalChain([status, 'access', _80 => _80.progress, 'optionalAccess', _81 => _81.logs]), () => ( []));
1539
+ const logs = _nullishCoalesce(_optionalChain([status, 'access', _72 => _72.progress, 'optionalAccess', _73 => _73.logs]), () => ( []));
1710
1540
  for (let index = lastLogIndex; index < logs.length; index += 1) {
1711
1541
  onLog(logs[index]);
1712
1542
  }
@@ -1718,14 +1548,14 @@ var DeeplinePlayJobImpl = class {
1718
1548
  }
1719
1549
  }
1720
1550
  async get(options) {
1721
- const intervalMs = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _82 => _82.intervalMs]), () => ( 500));
1551
+ const intervalMs = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _74 => _74.intervalMs]), () => ( 500));
1722
1552
  const terminalStates = /* @__PURE__ */ new Set(["completed", "failed", "cancelled"]);
1723
1553
  while (true) {
1724
1554
  const status = await this.status();
1725
1555
  if (terminalStates.has(status.status)) {
1726
1556
  if (status.status !== "completed") {
1727
1557
  throw new (0, _chunk7P5AA3SNjs.DeeplineError)(
1728
- _optionalChain([status, 'access', _83 => _83.progress, 'optionalAccess', _84 => _84.error]) || `Play run ${this.id} ended with ${status.status}.`
1558
+ _optionalChain([status, 'access', _75 => _75.progress, 'optionalAccess', _76 => _76.error]) || `Play run ${this.id} ended with ${status.status}.`
1729
1559
  );
1730
1560
  }
1731
1561
  if (status.package) {
@@ -1756,8 +1586,8 @@ function createNamedPlayHandle(clientFactory, name) {
1756
1586
  const client = clientFactory();
1757
1587
  const started = await client.startPlayRun({
1758
1588
  name,
1759
- ..._optionalChain([options, 'optionalAccess', _85 => _85.revisionId]) ? { revisionId: options.revisionId } : {},
1760
- ..._optionalChain([options, 'optionalAccess', _86 => _86.profile]) ? { profile: options.profile } : {},
1589
+ ..._optionalChain([options, 'optionalAccess', _77 => _77.revisionId]) ? { revisionId: options.revisionId } : {},
1590
+ ..._optionalChain([options, 'optionalAccess', _78 => _78.profile]) ? { profile: options.profile } : {},
1761
1591
  input
1762
1592
  });
1763
1593
  return new DeeplinePlayJobImpl(client, started.workflowId);
@@ -1783,7 +1613,7 @@ var DeeplineContext = class {
1783
1613
  * @param options - Optional SDK client configuration.
1784
1614
  */
1785
1615
  constructor(options) {
1786
- this.client = new (0, _chunkRUYZAREBjs.DeeplineClient)(options);
1616
+ this.client = new (0, _chunkE7MGPPM5js.DeeplineClient)(options);
1787
1617
  }
1788
1618
  /**
1789
1619
  * Tool operations namespace.
@@ -2038,15 +1868,15 @@ function stableHash(value) {
2038
1868
  function attachSdkQueryResultDatasetResult(toolId, result, options) {
2039
1869
  if (!options || !isQueryResultDatasetTool(toolId)) return result;
2040
1870
  const raw = isRecord2(result.toolResponse.raw) ? result.toolResponse.raw : null;
2041
- const dataset = isRecord2(_optionalChain([raw, 'optionalAccess', _87 => _87.dataset])) ? raw.dataset : null;
2042
- const totalRows = finiteNonNegativeInteger(_optionalChain([dataset, 'optionalAccess', _88 => _88.total_rows]));
2043
- const sql = typeof options.input.sql === "string" ? options.input.sql : typeof options.input.query === "string" ? options.input.query : typeof _optionalChain([raw, 'optionalAccess', _89 => _89.sql]) === "string" ? raw.sql : null;
1871
+ const dataset = isRecord2(_optionalChain([raw, 'optionalAccess', _79 => _79.dataset])) ? raw.dataset : null;
1872
+ const totalRows = finiteNonNegativeInteger(_optionalChain([dataset, 'optionalAccess', _80 => _80.total_rows]));
1873
+ const sql = typeof options.input.sql === "string" ? options.input.sql : typeof options.input.query === "string" ? options.input.query : typeof _optionalChain([raw, 'optionalAccess', _81 => _81.sql]) === "string" ? raw.sql : null;
2044
1874
  if (!dataset || totalRows === null || !sql) {
2045
1875
  return result;
2046
1876
  }
2047
1877
  const datasetLimit = _nullishCoalesce(finitePositiveInteger(dataset.returned_limit), () => ( totalRows));
2048
1878
  const effectiveCount = Math.min(totalRows, datasetLimit);
2049
- const rawRows = rowsFromUnknown(_optionalChain([raw, 'optionalAccess', _90 => _90.rows]));
1879
+ const rawRows = rowsFromUnknown(_optionalChain([raw, 'optionalAccess', _82 => _82.rows]));
2050
1880
  const previewRows = rawRows.slice(0, 25);
2051
1881
  const fetchPage = async (offset, limit) => {
2052
1882
  if (limit <= 0 || offset >= totalRows) return [];
@@ -2070,8 +1900,8 @@ function attachSdkQueryResultDatasetResult(toolId, result, options) {
2070
1900
  } : {}
2071
1901
  }
2072
1902
  });
2073
- const pageRaw = isRecord2(_optionalChain([response, 'access', _91 => _91.toolResponse, 'optionalAccess', _92 => _92.raw])) ? response.toolResponse.raw : null;
2074
- return rowsFromUnknown(_optionalChain([pageRaw, 'optionalAccess', _93 => _93.rows]));
1903
+ const pageRaw = isRecord2(_optionalChain([response, 'access', _83 => _83.toolResponse, 'optionalAccess', _84 => _84.raw])) ? response.toolResponse.raw : null;
1904
+ return rowsFromUnknown(_optionalChain([pageRaw, 'optionalAccess', _85 => _85.rows]));
2075
1905
  };
2076
1906
  const collectRows = async (limit) => {
2077
1907
  const target = Math.min(_nullishCoalesce(limit, () => ( totalRows)), totalRows, datasetLimit);
@@ -2123,10 +1953,10 @@ function attachSdkQueryResultDatasetResult(toolId, result, options) {
2123
1953
  });
2124
1954
  }
2125
1955
  function toolExecutionEnvelopeToResult(fallbackToolId, response, options) {
2126
- const raw = _nullishCoalesce(_optionalChain([response, 'access', _94 => _94.toolResponse, 'optionalAccess', _95 => _95.raw]), () => ( null));
2127
- const rawV2 = _optionalChain([response, 'access', _96 => _96.toolResponse, 'optionalAccess', _97 => _97.rawV2]);
2128
- const view = _optionalChain([response, 'access', _98 => _98.toolResponse, 'optionalAccess', _99 => _99.view]);
2129
- const meta = _optionalChain([response, 'access', _100 => _100.toolResponse, 'optionalAccess', _101 => _101.meta]);
1956
+ const raw = _nullishCoalesce(_optionalChain([response, 'access', _86 => _86.toolResponse, 'optionalAccess', _87 => _87.raw]), () => ( null));
1957
+ const rawV2 = _optionalChain([response, 'access', _88 => _88.toolResponse, 'optionalAccess', _89 => _89.rawV2]);
1958
+ const view = _optionalChain([response, 'access', _90 => _90.toolResponse, 'optionalAccess', _91 => _91.view]);
1959
+ const meta = _optionalChain([response, 'access', _92 => _92.toolResponse, 'optionalAccess', _93 => _93.meta]);
2130
1960
  const metadata = isRecord2(response._metadata) ? response._metadata.tool : null;
2131
1961
  const toolMetadata = isRecord2(metadata) ? metadata : {};
2132
1962
  const result = projectToolResultListGetters(
@@ -2182,11 +2012,11 @@ function definePlay(nameOrConfig, maybeFn, maybeBindings) {
2182
2012
  name: nameOrConfig,
2183
2013
  fn: maybeFn,
2184
2014
  bindings: maybeBindings,
2185
- description: _optionalChain([maybeBindings, 'optionalAccess', _102 => _102.description]),
2015
+ description: _optionalChain([maybeBindings, 'optionalAccess', _94 => _94.description]),
2186
2016
  inputSchema: void 0,
2187
- billing: _optionalChain([maybeBindings, 'optionalAccess', _103 => _103.billing]),
2188
- runtime: _optionalChain([maybeBindings, 'optionalAccess', _104 => _104.runtime]),
2189
- compatibility: _optionalChain([maybeBindings, 'optionalAccess', _105 => _105.compatibility])
2017
+ billing: _optionalChain([maybeBindings, 'optionalAccess', _95 => _95.billing]),
2018
+ runtime: _optionalChain([maybeBindings, 'optionalAccess', _96 => _96.runtime]),
2019
+ compatibility: _optionalChain([maybeBindings, 'optionalAccess', _97 => _97.compatibility])
2190
2020
  } : {
2191
2021
  name: nameOrConfig.id,
2192
2022
  fn: nameOrConfig.run,
@@ -2197,13 +2027,13 @@ function definePlay(nameOrConfig, maybeFn, maybeBindings) {
2197
2027
  description: nameOrConfig.description,
2198
2028
  inputSchema: nameOrConfig.input.schema,
2199
2029
  billing: nameOrConfig.billing,
2200
- runtime: _nullishCoalesce(nameOrConfig.runtime, () => ( _optionalChain([nameOrConfig, 'access', _106 => _106.bindings, 'optionalAccess', _107 => _107.runtime]))),
2201
- compatibility: _nullishCoalesce(nameOrConfig.compatibility, () => ( _optionalChain([nameOrConfig, 'access', _108 => _108.bindings, 'optionalAccess', _109 => _109.compatibility])))
2030
+ runtime: _nullishCoalesce(nameOrConfig.runtime, () => ( _optionalChain([nameOrConfig, 'access', _98 => _98.bindings, 'optionalAccess', _99 => _99.runtime]))),
2031
+ compatibility: _nullishCoalesce(nameOrConfig.compatibility, () => ( _optionalChain([nameOrConfig, 'access', _100 => _100.bindings, 'optionalAccess', _101 => _101.compatibility])))
2202
2032
  };
2203
2033
  const name = config.name;
2204
2034
  const fn = config.fn;
2205
2035
  const bindings = config.bindings;
2206
- const description = _optionalChain([config, 'access', _110 => _110.description, 'optionalAccess', _111 => _111.trim, 'call', _112 => _112()]);
2036
+ const description = _optionalChain([config, 'access', _102 => _102.description, 'optionalAccess', _103 => _103.trim, 'call', _104 => _104()]);
2207
2037
  const billing = config.billing;
2208
2038
  const inputSchema = config.inputSchema;
2209
2039
  const runtime = config.runtime;
@@ -2268,7 +2098,7 @@ function definePlay(nameOrConfig, maybeFn, maybeBindings) {
2268
2098
  writable: false
2269
2099
  });
2270
2100
  const handle = createNamedPlayHandle(
2271
- () => new (0, _chunkRUYZAREBjs.DeeplineClient)(),
2101
+ () => new (0, _chunkE7MGPPM5js.DeeplineClient)(),
2272
2102
  name
2273
2103
  );
2274
2104
  for (const key of [
@@ -2428,4 +2258,4 @@ var DEEPLINE_TOOL_CATEGORIES = [
2428
2258
 
2429
2259
 
2430
2260
 
2431
- exports.AuthError = _chunkML2ZY7YDjs.AuthError; exports.ConfigError = _chunkML2ZY7YDjs.ConfigError; exports.CtxFetchHttpError = _chunk5O4B6AUNjs.CtxFetchHttpError; exports.CustomerDbQueryOutcomeUnknownError = _chunkML2ZY7YDjs.CustomerDbQueryOutcomeUnknownError; exports.DEEPLINE_EXTRACTOR_TARGETS = DEEPLINE_EXTRACTOR_TARGETS; exports.DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS = DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS; exports.DEEPLINE_TOOL_CATEGORIES = DEEPLINE_TOOL_CATEGORIES; exports.Deepline = Deepline; exports.DeeplineClient = _chunkRUYZAREBjs.DeeplineClient; exports.DeeplineContext = DeeplineContext; exports.DeeplineError = _chunk7P5AA3SNjs.DeeplineError; exports.JOB_CHANGE_STATUS_VALUES = 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 = _chunkRUYZAREBjs.MONITOR_JOB_PHASES; exports.MONITOR_JOB_RECONCILIATION_STATES = _chunkRUYZAREBjs.MONITOR_JOB_RECONCILIATION_STATES; exports.MONITOR_JOB_STATES = _chunkRUYZAREBjs.MONITOR_JOB_STATES; exports.PHONE_STATUS_VALUES = PHONE_STATUS_VALUES; exports.PROD_URL = _chunkML2ZY7YDjs.PROD_URL; exports.ProviderTransientError = _chunk7P5AA3SNjs.ProviderTransientError; exports.RateLimitError = _chunkML2ZY7YDjs.RateLimitError; exports.RunEventQueryInputError = _chunkRUYZAREBjs.RunEventQueryInputError; exports.RunObserveTransportUnavailableError = RunObserveTransportUnavailableError; exports.SDK_API_CONTRACT = _chunkML2ZY7YDjs.SDK_API_CONTRACT; exports.SDK_VERSION = _chunkML2ZY7YDjs.SDK_VERSION; exports.ToolExecutionError = _chunk7P5AA3SNjs.ToolExecutionError; exports.ToolRateLimitError = _chunkML2ZY7YDjs.ToolRateLimitError; exports.admitMonitorFleetAuthoringContract = _chunkC374C22Yjs.admitMonitorFleetAuthoringContract; exports.defineInput = defineInput; exports.defineMonitor = defineMonitor; exports.defineMonitorFleet = _chunkC374C22Yjs.defineMonitorFleet; exports.definePlay = definePlay; exports.defineWorkflow = defineWorkflow; exports.extractSummaryFields = _chunkE5UD3JDQjs.extractSummaryFields; exports.fleetColumn = _chunkC374C22Yjs.fleetColumn; exports.fleetKey = _chunkC374C22Yjs.fleetKey; exports.getDefinedPlayMetadata = getDefinedPlayMetadata; exports.getProviderUnavailableReason = _chunk7P5AA3SNjs.getProviderUnavailableReason; exports.isDeeplineExtractorTarget = isDeeplineExtractorTarget; exports.isProviderUnavailable = _chunk7P5AA3SNjs.isProviderUnavailable; exports.isProviderWaterfallUnavailableError = _chunk7P5AA3SNjs.isProviderWaterfallUnavailableError; exports.isStopAllPlayRunsDryRunResult = _chunkRUYZAREBjs.isStopAllPlayRunsDryRunResult; exports.lintMonitorBatchInput = _chunkIF75RD6Ujs.lintMonitorBatchInput; exports.lintMonitorFleetInput = _chunkC374C22Yjs.lintMonitorFleetInput; exports.lintMonitorSpecTemplate = _chunkIF75RD6Ujs.lintMonitorSpecTemplate; exports.pinLocalPlayImports = _chunkGEJDBXXMjs.pinLocalPlayImports; exports.planCustomerDbQuery = _chunkRUYZAREBjs.planCustomerDbQuery; exports.planLocalPlayExecution = _chunkGEJDBXXMjs.planLocalPlayExecution; exports.readList = readList; exports.renderMonitorSpecTemplate = _chunkIF75RD6Ujs.renderMonitorSpecTemplate; exports.resolveConfig = _chunkML2ZY7YDjs.resolveConfig; exports.runIf = runIf; exports.steps = steps; exports.tryConvertToList = _chunkE5UD3JDQjs.tryConvertToList; exports.validateMonitorFleetDefinition = _chunkC374C22Yjs.validateMonitorFleetDefinition; exports.writeCsvOutputFile = _chunkE5UD3JDQjs.writeCsvOutputFile; exports.writeJsonOutputFile = _chunkE5UD3JDQjs.writeJsonOutputFile;
2261
+ exports.AuthError = _chunkND4BVWWZjs.AuthError; exports.ConfigError = _chunkND4BVWWZjs.ConfigError; exports.CtxFetchHttpError = _chunk5O4B6AUNjs.CtxFetchHttpError; exports.CustomerDbQueryOutcomeUnknownError = _chunkND4BVWWZjs.CustomerDbQueryOutcomeUnknownError; exports.DEEPLINE_EXTRACTOR_TARGETS = _chunk3VN4FTE3js.DEEPLINE_EXTRACTOR_TARGETS; exports.DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS = _chunk3VN4FTE3js.DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS; exports.DEEPLINE_TOOL_CATEGORIES = DEEPLINE_TOOL_CATEGORIES; exports.Deepline = Deepline; exports.DeeplineClient = _chunkE7MGPPM5js.DeeplineClient; exports.DeeplineContext = DeeplineContext; exports.DeeplineError = _chunk7P5AA3SNjs.DeeplineError; exports.JOB_CHANGE_STATUS_VALUES = _chunk3VN4FTE3js.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 = _chunkE7MGPPM5js.MONITOR_JOB_PHASES; exports.MONITOR_JOB_RECONCILIATION_STATES = _chunkE7MGPPM5js.MONITOR_JOB_RECONCILIATION_STATES; exports.MONITOR_JOB_STATES = _chunkE7MGPPM5js.MONITOR_JOB_STATES; exports.PHONE_STATUS_VALUES = _chunk3VN4FTE3js.PHONE_STATUS_VALUES; exports.PROD_URL = _chunkND4BVWWZjs.PROD_URL; exports.ProviderTransientError = _chunk7P5AA3SNjs.ProviderTransientError; exports.RateLimitError = _chunkND4BVWWZjs.RateLimitError; exports.RunEventQueryInputError = _chunkE7MGPPM5js.RunEventQueryInputError; exports.RunObserveTransportUnavailableError = RunObserveTransportUnavailableError; exports.SDK_API_CONTRACT = _chunkND4BVWWZjs.SDK_API_CONTRACT; exports.SDK_VERSION = _chunkND4BVWWZjs.SDK_VERSION; exports.ToolExecutionError = _chunk7P5AA3SNjs.ToolExecutionError; exports.ToolRateLimitError = _chunkND4BVWWZjs.ToolRateLimitError; exports.admitMonitorFleetAuthoringContract = _chunkC374C22Yjs.admitMonitorFleetAuthoringContract; exports.defineInput = defineInput; exports.defineMonitor = defineMonitor; exports.defineMonitorFleet = _chunkC374C22Yjs.defineMonitorFleet; exports.definePlay = definePlay; exports.defineWorkflow = defineWorkflow; exports.extractSummaryFields = _chunk3VN4FTE3js.extractSummaryFields; exports.fleetColumn = _chunkC374C22Yjs.fleetColumn; exports.fleetKey = _chunkC374C22Yjs.fleetKey; exports.getDefinedPlayMetadata = getDefinedPlayMetadata; exports.getProviderUnavailableReason = _chunk7P5AA3SNjs.getProviderUnavailableReason; exports.isDeeplineExtractorTarget = _chunk3VN4FTE3js.isDeeplineExtractorTarget; exports.isProviderUnavailable = _chunk7P5AA3SNjs.isProviderUnavailable; exports.isProviderWaterfallUnavailableError = _chunk7P5AA3SNjs.isProviderWaterfallUnavailableError; exports.isStopAllPlayRunsDryRunResult = _chunkE7MGPPM5js.isStopAllPlayRunsDryRunResult; exports.lintMonitorBatchInput = _chunkIF75RD6Ujs.lintMonitorBatchInput; exports.lintMonitorFleetInput = _chunkC374C22Yjs.lintMonitorFleetInput; exports.lintMonitorSpecTemplate = _chunkIF75RD6Ujs.lintMonitorSpecTemplate; exports.pinLocalPlayImports = _chunkGEJDBXXMjs.pinLocalPlayImports; exports.planCustomerDbQuery = _chunkE7MGPPM5js.planCustomerDbQuery; exports.planLocalPlayExecution = _chunkGEJDBXXMjs.planLocalPlayExecution; exports.readList = readList; exports.renderMonitorSpecTemplate = _chunkIF75RD6Ujs.renderMonitorSpecTemplate; exports.resolveConfig = _chunkND4BVWWZjs.resolveConfig; exports.runIf = runIf; exports.steps = steps; exports.tryConvertToList = _chunk3VN4FTE3js.tryConvertToList; exports.validateMonitorFleetDefinition = _chunkC374C22Yjs.validateMonitorFleetDefinition; exports.writeCsvOutputFile = _chunk3VN4FTE3js.writeCsvOutputFile; exports.writeJsonOutputFile = _chunk3VN4FTE3js.writeJsonOutputFile;