deepline 0.1.173 → 0.1.174

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.
@@ -3435,6 +3435,18 @@ async function coordinatorRouteFetch(
3435
3435
  }
3436
3436
  return new Response('ok', { status: 200, headers });
3437
3437
  }
3438
+ if (url.pathname === '/internal-token/probe') {
3439
+ const authError = authorizeCoordinatorControlRequest({ request, env });
3440
+ if (authError) return authError;
3441
+ return Response.json({
3442
+ ok: true,
3443
+ deployMarker: env.DEEPLINE_COORDINATOR_DEPLOY_MARKER ?? null,
3444
+ runtimeDeployVersion:
3445
+ env.CF_VERSION_METADATA?.id ??
3446
+ env.DEEPLINE_COORDINATOR_DEPLOY_MARKER ??
3447
+ null,
3448
+ });
3449
+ }
3438
3450
  if (url.pathname === '/warmup/submit') {
3439
3451
  const authError = authorizeCoordinatorControlRequest({ request, env });
3440
3452
  if (authError) return authError;
@@ -127,6 +127,26 @@ function isTransientCompileManifestError(error: unknown): boolean {
127
127
  );
128
128
  }
129
129
 
130
+ function requireCompileManifestResponse(
131
+ response: { compilerManifest?: PlayCompilerManifest } | null | undefined,
132
+ playName: string,
133
+ ): PlayCompilerManifest {
134
+ const compilerManifest = response?.compilerManifest;
135
+ if (
136
+ !compilerManifest ||
137
+ typeof compilerManifest !== 'object' ||
138
+ Array.isArray(compilerManifest)
139
+ ) {
140
+ throw new DeeplineError(
141
+ `Compile manifest response did not include compilerManifest for ${playName}.`,
142
+ 502,
143
+ 'API_RESPONSE_INVALID',
144
+ { response: response ?? null },
145
+ );
146
+ }
147
+ return compilerManifest;
148
+ }
149
+
130
150
  async function mapWithConcurrency<T, U>(
131
151
  items: T[],
132
152
  concurrency: number,
@@ -1544,7 +1564,7 @@ export class DeeplineClient {
1544
1564
  const response = await this.http.post<{
1545
1565
  compilerManifest: PlayCompilerManifest;
1546
1566
  }>('/api/v2/plays/compile-manifest', input);
1547
- return response.compilerManifest;
1567
+ return requireCompileManifestResponse(response, input.name);
1548
1568
  } catch (error) {
1549
1569
  const delayMs = retryDelays[attempt];
1550
1570
  if (delayMs === undefined || !isTransientCompileManifestError(error)) {
@@ -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.173',
107
+ version: '0.1.174',
108
108
  apiContract: '2026-06-dataset-handle-results-hard-cutover',
109
109
  supportPolicy: {
110
- latest: '0.1.173',
110
+ latest: '0.1.174',
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.173",
625
+ version: "0.1.174",
626
626
  apiContract: "2026-06-dataset-handle-results-hard-cutover",
627
627
  supportPolicy: {
628
- latest: "0.1.173",
628
+ latest: "0.1.174",
629
629
  minimumSupported: "0.1.53",
630
630
  deprecatedBelow: "0.1.53",
631
631
  commandMinimumSupported: [
@@ -2134,6 +2134,18 @@ function isTransientCompileManifestError(error) {
2134
2134
  message
2135
2135
  );
2136
2136
  }
2137
+ function requireCompileManifestResponse(response, playName) {
2138
+ const compilerManifest = response?.compilerManifest;
2139
+ if (!compilerManifest || typeof compilerManifest !== "object" || Array.isArray(compilerManifest)) {
2140
+ throw new DeeplineError(
2141
+ `Compile manifest response did not include compilerManifest for ${playName}.`,
2142
+ 502,
2143
+ "API_RESPONSE_INVALID",
2144
+ { response: response ?? null }
2145
+ );
2146
+ }
2147
+ return compilerManifest;
2148
+ }
2137
2149
  async function mapWithConcurrency(items, concurrency, mapper) {
2138
2150
  const results = new Array(items.length);
2139
2151
  let nextIndex = 0;
@@ -2836,7 +2848,7 @@ var DeeplineClient = class {
2836
2848
  for (let attempt = 0; ; attempt += 1) {
2837
2849
  try {
2838
2850
  const response = await this.http.post("/api/v2/plays/compile-manifest", input2);
2839
- return response.compilerManifest;
2851
+ return requireCompileManifestResponse(response, input2.name);
2840
2852
  } catch (error) {
2841
2853
  const delayMs = retryDelays[attempt];
2842
2854
  if (delayMs === void 0 || !isTransientCompileManifestError(error)) {
@@ -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.173",
610
+ version: "0.1.174",
611
611
  apiContract: "2026-06-dataset-handle-results-hard-cutover",
612
612
  supportPolicy: {
613
- latest: "0.1.173",
613
+ latest: "0.1.174",
614
614
  minimumSupported: "0.1.53",
615
615
  deprecatedBelow: "0.1.53",
616
616
  commandMinimumSupported: [
@@ -2119,6 +2119,18 @@ function isTransientCompileManifestError(error) {
2119
2119
  message
2120
2120
  );
2121
2121
  }
2122
+ function requireCompileManifestResponse(response, playName) {
2123
+ const compilerManifest = response?.compilerManifest;
2124
+ if (!compilerManifest || typeof compilerManifest !== "object" || Array.isArray(compilerManifest)) {
2125
+ throw new DeeplineError(
2126
+ `Compile manifest response did not include compilerManifest for ${playName}.`,
2127
+ 502,
2128
+ "API_RESPONSE_INVALID",
2129
+ { response: response ?? null }
2130
+ );
2131
+ }
2132
+ return compilerManifest;
2133
+ }
2122
2134
  async function mapWithConcurrency(items, concurrency, mapper) {
2123
2135
  const results = new Array(items.length);
2124
2136
  let nextIndex = 0;
@@ -2821,7 +2833,7 @@ var DeeplineClient = class {
2821
2833
  for (let attempt = 0; ; attempt += 1) {
2822
2834
  try {
2823
2835
  const response = await this.http.post("/api/v2/plays/compile-manifest", input2);
2824
- return response.compilerManifest;
2836
+ return requireCompileManifestResponse(response, input2.name);
2825
2837
  } catch (error) {
2826
2838
  const delayMs = retryDelays[attempt];
2827
2839
  if (delayMs === void 0 || !isTransientCompileManifestError(error)) {
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.173",
424
+ version: "0.1.174",
425
425
  apiContract: "2026-06-dataset-handle-results-hard-cutover",
426
426
  supportPolicy: {
427
- latest: "0.1.173",
427
+ latest: "0.1.174",
428
428
  minimumSupported: "0.1.53",
429
429
  deprecatedBelow: "0.1.53",
430
430
  commandMinimumSupported: [
@@ -1933,6 +1933,18 @@ function isTransientCompileManifestError(error) {
1933
1933
  message
1934
1934
  );
1935
1935
  }
1936
+ function requireCompileManifestResponse(response, playName) {
1937
+ const compilerManifest = response?.compilerManifest;
1938
+ if (!compilerManifest || typeof compilerManifest !== "object" || Array.isArray(compilerManifest)) {
1939
+ throw new DeeplineError(
1940
+ `Compile manifest response did not include compilerManifest for ${playName}.`,
1941
+ 502,
1942
+ "API_RESPONSE_INVALID",
1943
+ { response: response ?? null }
1944
+ );
1945
+ }
1946
+ return compilerManifest;
1947
+ }
1936
1948
  async function mapWithConcurrency(items, concurrency, mapper) {
1937
1949
  const results = new Array(items.length);
1938
1950
  let nextIndex = 0;
@@ -2635,7 +2647,7 @@ var DeeplineClient = class {
2635
2647
  for (let attempt = 0; ; attempt += 1) {
2636
2648
  try {
2637
2649
  const response = await this.http.post("/api/v2/plays/compile-manifest", input);
2638
- return response.compilerManifest;
2650
+ return requireCompileManifestResponse(response, input.name);
2639
2651
  } catch (error) {
2640
2652
  const delayMs = retryDelays[attempt];
2641
2653
  if (delayMs === void 0 || !isTransientCompileManifestError(error)) {
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.173",
354
+ version: "0.1.174",
355
355
  apiContract: "2026-06-dataset-handle-results-hard-cutover",
356
356
  supportPolicy: {
357
- latest: "0.1.173",
357
+ latest: "0.1.174",
358
358
  minimumSupported: "0.1.53",
359
359
  deprecatedBelow: "0.1.53",
360
360
  commandMinimumSupported: [
@@ -1863,6 +1863,18 @@ function isTransientCompileManifestError(error) {
1863
1863
  message
1864
1864
  );
1865
1865
  }
1866
+ function requireCompileManifestResponse(response, playName) {
1867
+ const compilerManifest = response?.compilerManifest;
1868
+ if (!compilerManifest || typeof compilerManifest !== "object" || Array.isArray(compilerManifest)) {
1869
+ throw new DeeplineError(
1870
+ `Compile manifest response did not include compilerManifest for ${playName}.`,
1871
+ 502,
1872
+ "API_RESPONSE_INVALID",
1873
+ { response: response ?? null }
1874
+ );
1875
+ }
1876
+ return compilerManifest;
1877
+ }
1866
1878
  async function mapWithConcurrency(items, concurrency, mapper) {
1867
1879
  const results = new Array(items.length);
1868
1880
  let nextIndex = 0;
@@ -2565,7 +2577,7 @@ var DeeplineClient = class {
2565
2577
  for (let attempt = 0; ; attempt += 1) {
2566
2578
  try {
2567
2579
  const response = await this.http.post("/api/v2/plays/compile-manifest", input);
2568
- return response.compilerManifest;
2580
+ return requireCompileManifestResponse(response, input.name);
2569
2581
  } catch (error) {
2570
2582
  const delayMs = retryDelays[attempt];
2571
2583
  if (delayMs === void 0 || !isTransientCompileManifestError(error)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepline",
3
- "version": "0.1.173",
3
+ "version": "0.1.174",
4
4
  "description": "Deepline SDK + CLI — B2B data enrichment powered by durable cloud execution",
5
5
  "license": "MIT",
6
6
  "repository": {