deepline 0.1.172 → 0.1.173

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.
@@ -16,11 +16,13 @@ export const CACHE_ENABLED_SIMPLE_MAP_CHUNK_SIZE = 10_000;
16
16
  export { TOOL_CALLING_MAP_CHUNK_SIZE };
17
17
  // Paid Cloudflare Workers support a much higher configured subrequest limit.
18
18
  // Keep a large buffer for coordinator/storage calls around row-level unbatched
19
- // tool RPCs, but avoid pathological one-row chunks for provider waterfalls.
19
+ // tool RPCs. Very dense waterfalls may still need one-row chunks to stay under
20
+ // the per-invocation subrequest budget.
20
21
  export const UNBATCHED_TOOL_SUBREQUESTS_PER_CHUNK_BUDGET = 200;
21
- // Fresh unbatched tool calls use one RUNTIME_API integration execute RPC and
22
- // one HARNESS durable-receipt completion RPC. Batch-cap rows by both.
23
- export const SUBREQUESTS_PER_UNBATCHED_TOOL_CALL = 2;
22
+ // Fresh unbatched tool calls use runtime API, receipt, and coordinator/rate
23
+ // callbacks on the Worker no-batch path. Batch-cap rows by the shared
24
+ // per-call budget rather than a synthetic-tool special case.
25
+ export const SUBREQUESTS_PER_UNBATCHED_TOOL_CALL = 5;
24
26
  export type WorkerMapChunkPlanInput = {
25
27
  mapName: string;
26
28
  rowCountHint: number | null;
@@ -71,7 +73,7 @@ function declarationBelongsToMapOutput(
71
73
 
72
74
  function countTool(toolId: string): MapToolStats {
73
75
  if (getPlayRuntimeBatchStrategy(toolId) !== null) return [1, 0];
74
- return [1, toolId === 'test_high_single' ? 5 : 2];
76
+ return [1, SUBREQUESTS_PER_UNBATCHED_TOOL_CALL];
75
77
  }
76
78
 
77
79
  function addStats(
@@ -572,7 +572,16 @@ function normalizePlayRunStart(raw: Record<string, unknown>): PlayRunStart {
572
572
  ? raw.package
573
573
  : null;
574
574
  if (!runPackage) {
575
- return raw as unknown as PlayRunStart;
575
+ const workflowId =
576
+ typeof raw.workflowId === 'string' && raw.workflowId
577
+ ? raw.workflowId
578
+ : typeof raw.runId === 'string'
579
+ ? raw.runId
580
+ : '';
581
+ return {
582
+ ...(raw as unknown as Omit<PlayRunStart, 'workflowId'>),
583
+ workflowId,
584
+ };
576
585
  }
577
586
  const status =
578
587
  typeof runPackage.run.status === 'string'
@@ -104,10 +104,10 @@ export const SDK_RELEASE = {
104
104
  // 0.1.111 ships dataset-native tool list getters and result row datasets.
105
105
  // 0.1.154 removes the short-lived generated enrich StepOptions recompute
106
106
  // fields shipped in 0.1.153.
107
- version: '0.1.172',
107
+ version: '0.1.173',
108
108
  apiContract: '2026-06-dataset-handle-results-hard-cutover',
109
109
  supportPolicy: {
110
- latest: '0.1.172',
110
+ latest: '0.1.173',
111
111
  minimumSupported: '0.1.53',
112
112
  deprecatedBelow: '0.1.53',
113
113
  commandMinimumSupported: [
package/dist/cli/index.js CHANGED
@@ -622,10 +622,10 @@ var SDK_RELEASE = {
622
622
  // 0.1.111 ships dataset-native tool list getters and result row datasets.
623
623
  // 0.1.154 removes the short-lived generated enrich StepOptions recompute
624
624
  // fields shipped in 0.1.153.
625
- version: "0.1.172",
625
+ version: "0.1.173",
626
626
  apiContract: "2026-06-dataset-handle-results-hard-cutover",
627
627
  supportPolicy: {
628
- latest: "0.1.172",
628
+ latest: "0.1.173",
629
629
  minimumSupported: "0.1.53",
630
630
  deprecatedBelow: "0.1.53",
631
631
  commandMinimumSupported: [
@@ -2212,7 +2212,11 @@ function normalizePlayStatus(raw) {
2212
2212
  function normalizePlayRunStart(raw) {
2213
2213
  const runPackage = isPlayRunPackage(raw) ? raw : isPlayRunPackage(raw.package) ? raw.package : null;
2214
2214
  if (!runPackage) {
2215
- return raw;
2215
+ const workflowId = typeof raw.workflowId === "string" && raw.workflowId ? raw.workflowId : typeof raw.runId === "string" ? raw.runId : "";
2216
+ return {
2217
+ ...raw,
2218
+ workflowId
2219
+ };
2216
2220
  }
2217
2221
  const status = typeof runPackage.run.status === "string" ? runPackage.run.status : "running";
2218
2222
  return {
@@ -607,10 +607,10 @@ var SDK_RELEASE = {
607
607
  // 0.1.111 ships dataset-native tool list getters and result row datasets.
608
608
  // 0.1.154 removes the short-lived generated enrich StepOptions recompute
609
609
  // fields shipped in 0.1.153.
610
- version: "0.1.172",
610
+ version: "0.1.173",
611
611
  apiContract: "2026-06-dataset-handle-results-hard-cutover",
612
612
  supportPolicy: {
613
- latest: "0.1.172",
613
+ latest: "0.1.173",
614
614
  minimumSupported: "0.1.53",
615
615
  deprecatedBelow: "0.1.53",
616
616
  commandMinimumSupported: [
@@ -2197,7 +2197,11 @@ function normalizePlayStatus(raw) {
2197
2197
  function normalizePlayRunStart(raw) {
2198
2198
  const runPackage = isPlayRunPackage(raw) ? raw : isPlayRunPackage(raw.package) ? raw.package : null;
2199
2199
  if (!runPackage) {
2200
- return raw;
2200
+ const workflowId = typeof raw.workflowId === "string" && raw.workflowId ? raw.workflowId : typeof raw.runId === "string" ? raw.runId : "";
2201
+ return {
2202
+ ...raw,
2203
+ workflowId
2204
+ };
2201
2205
  }
2202
2206
  const status = typeof runPackage.run.status === "string" ? runPackage.run.status : "running";
2203
2207
  return {
package/dist/index.js CHANGED
@@ -421,10 +421,10 @@ var SDK_RELEASE = {
421
421
  // 0.1.111 ships dataset-native tool list getters and result row datasets.
422
422
  // 0.1.154 removes the short-lived generated enrich StepOptions recompute
423
423
  // fields shipped in 0.1.153.
424
- version: "0.1.172",
424
+ version: "0.1.173",
425
425
  apiContract: "2026-06-dataset-handle-results-hard-cutover",
426
426
  supportPolicy: {
427
- latest: "0.1.172",
427
+ latest: "0.1.173",
428
428
  minimumSupported: "0.1.53",
429
429
  deprecatedBelow: "0.1.53",
430
430
  commandMinimumSupported: [
@@ -2011,7 +2011,11 @@ function normalizePlayStatus(raw) {
2011
2011
  function normalizePlayRunStart(raw) {
2012
2012
  const runPackage = isPlayRunPackage(raw) ? raw : isPlayRunPackage(raw.package) ? raw.package : null;
2013
2013
  if (!runPackage) {
2014
- return raw;
2014
+ const workflowId = typeof raw.workflowId === "string" && raw.workflowId ? raw.workflowId : typeof raw.runId === "string" ? raw.runId : "";
2015
+ return {
2016
+ ...raw,
2017
+ workflowId
2018
+ };
2015
2019
  }
2016
2020
  const status = typeof runPackage.run.status === "string" ? runPackage.run.status : "running";
2017
2021
  return {
package/dist/index.mjs CHANGED
@@ -351,10 +351,10 @@ var SDK_RELEASE = {
351
351
  // 0.1.111 ships dataset-native tool list getters and result row datasets.
352
352
  // 0.1.154 removes the short-lived generated enrich StepOptions recompute
353
353
  // fields shipped in 0.1.153.
354
- version: "0.1.172",
354
+ version: "0.1.173",
355
355
  apiContract: "2026-06-dataset-handle-results-hard-cutover",
356
356
  supportPolicy: {
357
- latest: "0.1.172",
357
+ latest: "0.1.173",
358
358
  minimumSupported: "0.1.53",
359
359
  deprecatedBelow: "0.1.53",
360
360
  commandMinimumSupported: [
@@ -1941,7 +1941,11 @@ function normalizePlayStatus(raw) {
1941
1941
  function normalizePlayRunStart(raw) {
1942
1942
  const runPackage = isPlayRunPackage(raw) ? raw : isPlayRunPackage(raw.package) ? raw.package : null;
1943
1943
  if (!runPackage) {
1944
- return raw;
1944
+ const workflowId = typeof raw.workflowId === "string" && raw.workflowId ? raw.workflowId : typeof raw.runId === "string" ? raw.runId : "";
1945
+ return {
1946
+ ...raw,
1947
+ workflowId
1948
+ };
1945
1949
  }
1946
1950
  const status = typeof runPackage.run.status === "string" ? runPackage.run.status : "running";
1947
1951
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepline",
3
- "version": "0.1.172",
3
+ "version": "0.1.173",
4
4
  "description": "Deepline SDK + CLI — B2B data enrichment powered by durable cloud execution",
5
5
  "license": "MIT",
6
6
  "repository": {