deepline 0.1.168 → 0.1.170
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/apps/play-runner-workers/src/coordinator-entry.ts +317 -26
- package/dist/bundling-sources/apps/play-runner-workers/src/dedup-do.ts +100 -8
- package/dist/bundling-sources/apps/play-runner-workers/src/entry.ts +294 -81
- package/dist/bundling-sources/apps/play-runner-workers/src/runtime/map-chunk-plan.ts +119 -33
- package/dist/bundling-sources/apps/play-runner-workers/src/runtime/receipts.ts +4 -1
- package/dist/bundling-sources/apps/play-runner-workers/src/runtime/tool-receipts.ts +56 -0
- package/dist/bundling-sources/apps/play-runner-workers/src/workflow-instance-create.ts +3 -0
- package/dist/bundling-sources/sdk/src/client.ts +29 -1
- package/dist/bundling-sources/sdk/src/play.ts +4 -0
- package/dist/bundling-sources/sdk/src/release.ts +2 -2
- package/dist/bundling-sources/sdk/src/types.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-data-plane/column-names.ts +50 -8
- package/dist/bundling-sources/shared_libs/play-data-plane/sheet-contract.ts +40 -1
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +135 -4
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +9 -3
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/work-receipts.ts +1 -0
- package/dist/bundling-sources/shared_libs/plays/static-pipeline.ts +202 -45
- package/dist/cli/index.js +70 -113
- package/dist/cli/index.mjs +70 -113
- package/dist/{compiler-manifest-VhtM9n24.d.mts → compiler-manifest-OwORQ07f.d.mts} +1 -0
- package/dist/{compiler-manifest-VhtM9n24.d.ts → compiler-manifest-OwORQ07f.d.ts} +1 -0
- package/dist/index.d.mts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +26 -5
- package/dist/index.mjs +26 -5
- package/dist/plays/bundle-play-file.d.mts +2 -2
- package/dist/plays/bundle-play-file.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as PlayCompilerManifest } from './compiler-manifest-
|
|
1
|
+
import { a as PlayCompilerManifest } from './compiler-manifest-OwORQ07f.mjs';
|
|
2
2
|
|
|
3
3
|
declare const DEEPLINE_TOOL_CATEGORIES: readonly ["company_search", "people_search", "people_enrich", "email_finder", "email_verify", "phone_finder", "phone_verify", "identity_resolution", "reverse_lookup", "enrichment", "batch", "premium", "free"];
|
|
4
4
|
type DeeplineToolCategory = (typeof DEEPLINE_TOOL_CATEGORIES)[number] | (string & {});
|
|
@@ -863,6 +863,7 @@ interface PlayRunStart {
|
|
|
863
863
|
interface PlayCheckResult {
|
|
864
864
|
valid: boolean;
|
|
865
865
|
errors: string[];
|
|
866
|
+
warnings?: string[];
|
|
866
867
|
staticPipeline?: Record<string, unknown> | null;
|
|
867
868
|
toolGetterHints?: PlayCheckToolGetterHint[];
|
|
868
869
|
artifactHash?: string | null;
|
|
@@ -947,6 +948,8 @@ interface StartPlayRunRequest {
|
|
|
947
948
|
* should leave this unset.
|
|
948
949
|
*/
|
|
949
950
|
profile?: string;
|
|
951
|
+
/** Optional per-run provider execution mode for eval/smoke runs. */
|
|
952
|
+
integrationMode?: 'live' | 'eval_stub' | 'fixture';
|
|
950
953
|
}
|
|
951
954
|
/**
|
|
952
955
|
* Request body for making a play revision live.
|
|
@@ -1655,6 +1658,7 @@ declare class DeeplineClient {
|
|
|
1655
1658
|
sourceFiles?: Record<string, string>;
|
|
1656
1659
|
description?: string;
|
|
1657
1660
|
artifact: Record<string, unknown>;
|
|
1661
|
+
integrationMode?: 'live' | 'eval_stub' | 'fixture';
|
|
1658
1662
|
}): Promise<PlayCheckResult>;
|
|
1659
1663
|
/**
|
|
1660
1664
|
* Compile legacy enrich command arguments into a runtime plan.
|
|
@@ -2944,6 +2948,10 @@ type ToolExecutionRequest = {
|
|
|
2944
2948
|
force?: boolean;
|
|
2945
2949
|
/** Numeric TTL in seconds for this tool checkpoint. */
|
|
2946
2950
|
staleAfterSeconds?: number;
|
|
2951
|
+
/** Runtime transport timeout in milliseconds. This is not sent to the provider. */
|
|
2952
|
+
timeoutMs?: number;
|
|
2953
|
+
/** Follower wait budget in milliseconds before a running receipt is reclaimable. */
|
|
2954
|
+
receiptWaitMs?: number;
|
|
2947
2955
|
};
|
|
2948
2956
|
type StepResolver<Row, Value> = (row: Row, ctx: DeeplinePlayRuntimeContext, index: number, previousCell?: PreviousCell<Value>) => Value | Promise<Value>;
|
|
2949
2957
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as PlayCompilerManifest } from './compiler-manifest-
|
|
1
|
+
import { a as PlayCompilerManifest } from './compiler-manifest-OwORQ07f.js';
|
|
2
2
|
|
|
3
3
|
declare const DEEPLINE_TOOL_CATEGORIES: readonly ["company_search", "people_search", "people_enrich", "email_finder", "email_verify", "phone_finder", "phone_verify", "identity_resolution", "reverse_lookup", "enrichment", "batch", "premium", "free"];
|
|
4
4
|
type DeeplineToolCategory = (typeof DEEPLINE_TOOL_CATEGORIES)[number] | (string & {});
|
|
@@ -863,6 +863,7 @@ interface PlayRunStart {
|
|
|
863
863
|
interface PlayCheckResult {
|
|
864
864
|
valid: boolean;
|
|
865
865
|
errors: string[];
|
|
866
|
+
warnings?: string[];
|
|
866
867
|
staticPipeline?: Record<string, unknown> | null;
|
|
867
868
|
toolGetterHints?: PlayCheckToolGetterHint[];
|
|
868
869
|
artifactHash?: string | null;
|
|
@@ -947,6 +948,8 @@ interface StartPlayRunRequest {
|
|
|
947
948
|
* should leave this unset.
|
|
948
949
|
*/
|
|
949
950
|
profile?: string;
|
|
951
|
+
/** Optional per-run provider execution mode for eval/smoke runs. */
|
|
952
|
+
integrationMode?: 'live' | 'eval_stub' | 'fixture';
|
|
950
953
|
}
|
|
951
954
|
/**
|
|
952
955
|
* Request body for making a play revision live.
|
|
@@ -1655,6 +1658,7 @@ declare class DeeplineClient {
|
|
|
1655
1658
|
sourceFiles?: Record<string, string>;
|
|
1656
1659
|
description?: string;
|
|
1657
1660
|
artifact: Record<string, unknown>;
|
|
1661
|
+
integrationMode?: 'live' | 'eval_stub' | 'fixture';
|
|
1658
1662
|
}): Promise<PlayCheckResult>;
|
|
1659
1663
|
/**
|
|
1660
1664
|
* Compile legacy enrich command arguments into a runtime plan.
|
|
@@ -2944,6 +2948,10 @@ type ToolExecutionRequest = {
|
|
|
2944
2948
|
force?: boolean;
|
|
2945
2949
|
/** Numeric TTL in seconds for this tool checkpoint. */
|
|
2946
2950
|
staleAfterSeconds?: number;
|
|
2951
|
+
/** Runtime transport timeout in milliseconds. This is not sent to the provider. */
|
|
2952
|
+
timeoutMs?: number;
|
|
2953
|
+
/** Follower wait budget in milliseconds before a running receipt is reclaimable. */
|
|
2954
|
+
receiptWaitMs?: number;
|
|
2947
2955
|
};
|
|
2948
2956
|
type StepResolver<Row, Value> = (row: Row, ctx: DeeplinePlayRuntimeContext, index: number, previousCell?: PreviousCell<Value>) => Value | Promise<Value>;
|
|
2949
2957
|
/**
|
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.
|
|
424
|
+
version: "0.1.170",
|
|
425
425
|
apiContract: "2026-06-dataset-handle-results-hard-cutover",
|
|
426
426
|
supportPolicy: {
|
|
427
|
-
latest: "0.1.
|
|
427
|
+
latest: "0.1.170",
|
|
428
428
|
minimumSupported: "0.1.53",
|
|
429
429
|
deprecatedBelow: "0.1.53",
|
|
430
430
|
commandMinimumSupported: [
|
|
@@ -1910,6 +1910,17 @@ var COMPILE_MANIFEST_RETRY_DELAYS_MS = [250, 1e3];
|
|
|
1910
1910
|
var REGISTER_PLAY_ARTIFACTS_COMPILE_CONCURRENCY = 3;
|
|
1911
1911
|
var REGISTER_PLAY_ARTIFACTS_MAX_BATCH_COUNT = 3;
|
|
1912
1912
|
var REGISTER_PLAY_ARTIFACTS_MAX_BATCH_BYTES = 25e5;
|
|
1913
|
+
function normalizePlayRunIntegrationMode(value) {
|
|
1914
|
+
if (value === "live" || value === "eval_stub" || value === "fixture") {
|
|
1915
|
+
return value;
|
|
1916
|
+
}
|
|
1917
|
+
return void 0;
|
|
1918
|
+
}
|
|
1919
|
+
function resolvePlayRunIntegrationMode(request) {
|
|
1920
|
+
return normalizePlayRunIntegrationMode(
|
|
1921
|
+
request.integrationMode ?? process.env.DEEPLINE_EVAL_INTEGRATION_MODE
|
|
1922
|
+
);
|
|
1923
|
+
}
|
|
1913
1924
|
function sleep2(ms) {
|
|
1914
1925
|
return new Promise((resolve2) => setTimeout(resolve2, ms));
|
|
1915
1926
|
}
|
|
@@ -2457,6 +2468,7 @@ var DeeplineClient = class {
|
|
|
2457
2468
|
* ```
|
|
2458
2469
|
*/
|
|
2459
2470
|
async startPlayRun(request) {
|
|
2471
|
+
const integrationMode = resolvePlayRunIntegrationMode(request);
|
|
2460
2472
|
const response = await this.http.post(
|
|
2461
2473
|
"/api/v2/plays/run",
|
|
2462
2474
|
{
|
|
@@ -2481,7 +2493,8 @@ var DeeplineClient = class {
|
|
|
2481
2493
|
// Profile selection is the API's job, not the CLI's. The server
|
|
2482
2494
|
// defaults to workers_edge; tests and runtime probes that want a
|
|
2483
2495
|
// different profile pass `request.profile` explicitly.
|
|
2484
|
-
...request.profile ? { profile: request.profile } : {}
|
|
2496
|
+
...request.profile ? { profile: request.profile } : {},
|
|
2497
|
+
...integrationMode ? { integrationMode } : {}
|
|
2485
2498
|
}
|
|
2486
2499
|
);
|
|
2487
2500
|
return normalizePlayRunStart(response);
|
|
@@ -2498,6 +2511,7 @@ var DeeplineClient = class {
|
|
|
2498
2511
|
* @returns Async stream of play-scoped live events.
|
|
2499
2512
|
*/
|
|
2500
2513
|
async *startPlayRunStream(request, options) {
|
|
2514
|
+
const integrationMode = resolvePlayRunIntegrationMode(request);
|
|
2501
2515
|
const body = {
|
|
2502
2516
|
...request.name ? { name: request.name } : {},
|
|
2503
2517
|
...request.revisionId ? { revisionId: request.revisionId } : {},
|
|
@@ -2517,7 +2531,8 @@ var DeeplineClient = class {
|
|
|
2517
2531
|
...request.packagedFiles?.length ? { packagedFiles: request.packagedFiles } : {},
|
|
2518
2532
|
...request.force ? { force: true } : {},
|
|
2519
2533
|
...typeof request.waitForCompletionMs === "number" ? { waitForCompletionMs: request.waitForCompletionMs } : {},
|
|
2520
|
-
...request.profile ? { profile: request.profile } : {}
|
|
2534
|
+
...request.profile ? { profile: request.profile } : {},
|
|
2535
|
+
...integrationMode ? { integrationMode } : {}
|
|
2521
2536
|
};
|
|
2522
2537
|
for await (const event of this.http.streamSse(
|
|
2523
2538
|
"/api/v2/plays/run?stream=true",
|
|
@@ -2634,7 +2649,13 @@ var DeeplineClient = class {
|
|
|
2634
2649
|
* path used by `deepline plays check`.
|
|
2635
2650
|
*/
|
|
2636
2651
|
async checkPlayArtifact(input) {
|
|
2637
|
-
|
|
2652
|
+
const integrationMode = normalizePlayRunIntegrationMode(
|
|
2653
|
+
input.integrationMode ?? process.env.DEEPLINE_EVAL_INTEGRATION_MODE
|
|
2654
|
+
);
|
|
2655
|
+
return this.http.post("/api/v2/plays/check", {
|
|
2656
|
+
...input,
|
|
2657
|
+
...integrationMode ? { integrationMode } : {}
|
|
2658
|
+
});
|
|
2638
2659
|
}
|
|
2639
2660
|
/**
|
|
2640
2661
|
* Compile legacy enrich command arguments into a runtime plan.
|
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.
|
|
354
|
+
version: "0.1.170",
|
|
355
355
|
apiContract: "2026-06-dataset-handle-results-hard-cutover",
|
|
356
356
|
supportPolicy: {
|
|
357
|
-
latest: "0.1.
|
|
357
|
+
latest: "0.1.170",
|
|
358
358
|
minimumSupported: "0.1.53",
|
|
359
359
|
deprecatedBelow: "0.1.53",
|
|
360
360
|
commandMinimumSupported: [
|
|
@@ -1840,6 +1840,17 @@ var COMPILE_MANIFEST_RETRY_DELAYS_MS = [250, 1e3];
|
|
|
1840
1840
|
var REGISTER_PLAY_ARTIFACTS_COMPILE_CONCURRENCY = 3;
|
|
1841
1841
|
var REGISTER_PLAY_ARTIFACTS_MAX_BATCH_COUNT = 3;
|
|
1842
1842
|
var REGISTER_PLAY_ARTIFACTS_MAX_BATCH_BYTES = 25e5;
|
|
1843
|
+
function normalizePlayRunIntegrationMode(value) {
|
|
1844
|
+
if (value === "live" || value === "eval_stub" || value === "fixture") {
|
|
1845
|
+
return value;
|
|
1846
|
+
}
|
|
1847
|
+
return void 0;
|
|
1848
|
+
}
|
|
1849
|
+
function resolvePlayRunIntegrationMode(request) {
|
|
1850
|
+
return normalizePlayRunIntegrationMode(
|
|
1851
|
+
request.integrationMode ?? process.env.DEEPLINE_EVAL_INTEGRATION_MODE
|
|
1852
|
+
);
|
|
1853
|
+
}
|
|
1843
1854
|
function sleep2(ms) {
|
|
1844
1855
|
return new Promise((resolve2) => setTimeout(resolve2, ms));
|
|
1845
1856
|
}
|
|
@@ -2387,6 +2398,7 @@ var DeeplineClient = class {
|
|
|
2387
2398
|
* ```
|
|
2388
2399
|
*/
|
|
2389
2400
|
async startPlayRun(request) {
|
|
2401
|
+
const integrationMode = resolvePlayRunIntegrationMode(request);
|
|
2390
2402
|
const response = await this.http.post(
|
|
2391
2403
|
"/api/v2/plays/run",
|
|
2392
2404
|
{
|
|
@@ -2411,7 +2423,8 @@ var DeeplineClient = class {
|
|
|
2411
2423
|
// Profile selection is the API's job, not the CLI's. The server
|
|
2412
2424
|
// defaults to workers_edge; tests and runtime probes that want a
|
|
2413
2425
|
// different profile pass `request.profile` explicitly.
|
|
2414
|
-
...request.profile ? { profile: request.profile } : {}
|
|
2426
|
+
...request.profile ? { profile: request.profile } : {},
|
|
2427
|
+
...integrationMode ? { integrationMode } : {}
|
|
2415
2428
|
}
|
|
2416
2429
|
);
|
|
2417
2430
|
return normalizePlayRunStart(response);
|
|
@@ -2428,6 +2441,7 @@ var DeeplineClient = class {
|
|
|
2428
2441
|
* @returns Async stream of play-scoped live events.
|
|
2429
2442
|
*/
|
|
2430
2443
|
async *startPlayRunStream(request, options) {
|
|
2444
|
+
const integrationMode = resolvePlayRunIntegrationMode(request);
|
|
2431
2445
|
const body = {
|
|
2432
2446
|
...request.name ? { name: request.name } : {},
|
|
2433
2447
|
...request.revisionId ? { revisionId: request.revisionId } : {},
|
|
@@ -2447,7 +2461,8 @@ var DeeplineClient = class {
|
|
|
2447
2461
|
...request.packagedFiles?.length ? { packagedFiles: request.packagedFiles } : {},
|
|
2448
2462
|
...request.force ? { force: true } : {},
|
|
2449
2463
|
...typeof request.waitForCompletionMs === "number" ? { waitForCompletionMs: request.waitForCompletionMs } : {},
|
|
2450
|
-
...request.profile ? { profile: request.profile } : {}
|
|
2464
|
+
...request.profile ? { profile: request.profile } : {},
|
|
2465
|
+
...integrationMode ? { integrationMode } : {}
|
|
2451
2466
|
};
|
|
2452
2467
|
for await (const event of this.http.streamSse(
|
|
2453
2468
|
"/api/v2/plays/run?stream=true",
|
|
@@ -2564,7 +2579,13 @@ var DeeplineClient = class {
|
|
|
2564
2579
|
* path used by `deepline plays check`.
|
|
2565
2580
|
*/
|
|
2566
2581
|
async checkPlayArtifact(input) {
|
|
2567
|
-
|
|
2582
|
+
const integrationMode = normalizePlayRunIntegrationMode(
|
|
2583
|
+
input.integrationMode ?? process.env.DEEPLINE_EVAL_INTEGRATION_MODE
|
|
2584
|
+
);
|
|
2585
|
+
return this.http.post("/api/v2/plays/check", {
|
|
2586
|
+
...input,
|
|
2587
|
+
...integrationMode ? { integrationMode } : {}
|
|
2588
|
+
});
|
|
2568
2589
|
}
|
|
2569
2590
|
/**
|
|
2570
2591
|
* Compile legacy enrich command arguments into a runtime plan.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PlayArtifactKind$1, a as PlayCompilerManifest } from '../compiler-manifest-
|
|
2
|
-
export { b as PLAY_ARTIFACT_KINDS } from '../compiler-manifest-
|
|
1
|
+
import { P as PlayArtifactKind$1, a as PlayCompilerManifest } from '../compiler-manifest-OwORQ07f.mjs';
|
|
2
|
+
export { b as PLAY_ARTIFACT_KINDS } from '../compiler-manifest-OwORQ07f.mjs';
|
|
3
3
|
|
|
4
4
|
type PlayPackageImport = {
|
|
5
5
|
name: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PlayArtifactKind$1, a as PlayCompilerManifest } from '../compiler-manifest-
|
|
2
|
-
export { b as PLAY_ARTIFACT_KINDS } from '../compiler-manifest-
|
|
1
|
+
import { P as PlayArtifactKind$1, a as PlayCompilerManifest } from '../compiler-manifest-OwORQ07f.js';
|
|
2
|
+
export { b as PLAY_ARTIFACT_KINDS } from '../compiler-manifest-OwORQ07f.js';
|
|
3
3
|
|
|
4
4
|
type PlayPackageImport = {
|
|
5
5
|
name: string;
|