deepline 0.1.152 → 0.1.153

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.
@@ -1101,12 +1101,11 @@ async function markWorkflowRuntimeFailure(input: {
1101
1101
  const shouldPreserveRawError =
1102
1102
  failure.code === 'RUN_FAILED' ||
1103
1103
  (failure.cause !== undefined && failure.message === failure.cause);
1104
- const normalizedError =
1105
- shouldPreserveRawError
1106
- ? `DynamicWorkflow runner failed: ${errorName}: ${errorMessage}${
1107
- errorStack ? `\n${errorStack}` : ''
1108
- }`
1109
- : `DynamicWorkflow runner failed: ${failure.message}`;
1104
+ const normalizedError = shouldPreserveRawError
1105
+ ? `DynamicWorkflow runner failed: ${errorName}: ${errorMessage}${
1106
+ errorStack ? `\n${errorStack}` : ''
1107
+ }`
1108
+ : `DynamicWorkflow runner failed: ${failure.message}`;
1110
1109
  const headers = new Headers({
1111
1110
  authorization: `Bearer ${executorToken}`,
1112
1111
  'content-type': 'application/json',
@@ -3283,6 +3282,32 @@ async function coordinatorRouteFetch(
3283
3282
  null,
3284
3283
  });
3285
3284
  }
3285
+ if (url.pathname === '/harness/probe') {
3286
+ const authError = authorizeCoordinatorControlRequest({ request, env });
3287
+ if (authError) return authError;
3288
+ try {
3289
+ const harness = await env.HARNESS.ping();
3290
+ return Response.json({
3291
+ ok: true,
3292
+ coordinatorDeployMarker: env.DEEPLINE_COORDINATOR_DEPLOY_MARKER ?? null,
3293
+ coordinatorRuntimeDeployVersion:
3294
+ env.CF_VERSION_METADATA?.id ??
3295
+ env.DEEPLINE_COORDINATOR_DEPLOY_MARKER ??
3296
+ null,
3297
+ harnessDeployMarker: harness.deployMarker,
3298
+ harnessRuntimeDeployVersion: harness.runtimeDeployVersion,
3299
+ harnessTs: harness.ts,
3300
+ });
3301
+ } catch (error) {
3302
+ return coordinatorRouteErrorResponse({
3303
+ logTag: '[coordinator.harness_probe.error]',
3304
+ code: 'COORDINATOR_HARNESS_PROBE_FAILED',
3305
+ phase: 'coordinator.harness_probe',
3306
+ runId: null,
3307
+ error,
3308
+ });
3309
+ }
3310
+ }
3286
3311
  if (url.pathname === '/staged-files/put') {
3287
3312
  const authError = authorizeCoordinatorControlRequest({ request, env });
3288
3313
  if (authError) return authError;
@@ -102,10 +102,10 @@ export const SDK_RELEASE = {
102
102
  // the SDK enrich generator's one-second stale policy.
103
103
  // 0.1.110 ships authored V2 prebuilts and required top-level play descriptions.
104
104
  // 0.1.111 ships dataset-native tool list getters and result row datasets.
105
- version: '0.1.152',
105
+ version: '0.1.153',
106
106
  apiContract: '2026-06-dataset-handle-results-hard-cutover',
107
107
  supportPolicy: {
108
- latest: '0.1.152',
108
+ latest: '0.1.153',
109
109
  minimumSupported: '0.1.53',
110
110
  deprecatedBelow: '0.1.53',
111
111
  commandMinimumSupported: [
@@ -102,6 +102,14 @@ interface NeonModule {
102
102
  };
103
103
  }
104
104
 
105
+ function assertBindParams(params: unknown[] | undefined): void {
106
+ if (params !== undefined && !Array.isArray(params)) {
107
+ throw new Error(
108
+ 'Neon runtime query bind parameters must be an array. Configure Neon client options at client construction, not on query().',
109
+ );
110
+ }
111
+ }
112
+
105
113
  /**
106
114
  * Cached promise of the loaded Neon module. Once the first connect()
107
115
  * resolves, every subsequent connect on the same isolate hits this
@@ -126,13 +134,15 @@ function wrapNeonClient(client: NeonPoolClient): RuntimePoolClient {
126
134
  query: <R extends Record<string, unknown> = Record<string, unknown>>(
127
135
  text: string,
128
136
  params?: unknown[],
129
- ) =>
130
- (
137
+ ) => {
138
+ assertBindParams(params);
139
+ return (
131
140
  client.query as unknown as (
132
141
  t: string,
133
142
  p?: unknown[],
134
143
  ) => Promise<{ rows: R[] }>
135
- )(text, params),
144
+ )(text, params);
145
+ },
136
146
  release: () => {
137
147
  client.release();
138
148
  },
@@ -184,6 +194,7 @@ export function installNeonServerlessRuntimePoolDriver(): void {
184
194
  text: string,
185
195
  params?: unknown[],
186
196
  ) => {
197
+ assertBindParams(params);
187
198
  const sql = await getSql();
188
199
  return await sql.query<R>(text, params);
189
200
  },
package/dist/cli/index.js CHANGED
@@ -655,10 +655,10 @@ var SDK_RELEASE = {
655
655
  // the SDK enrich generator's one-second stale policy.
656
656
  // 0.1.110 ships authored V2 prebuilts and required top-level play descriptions.
657
657
  // 0.1.111 ships dataset-native tool list getters and result row datasets.
658
- version: "0.1.152",
658
+ version: "0.1.153",
659
659
  apiContract: "2026-06-dataset-handle-results-hard-cutover",
660
660
  supportPolicy: {
661
- latest: "0.1.152",
661
+ latest: "0.1.153",
662
662
  minimumSupported: "0.1.53",
663
663
  deprecatedBelow: "0.1.53",
664
664
  commandMinimumSupported: [
@@ -640,10 +640,10 @@ var SDK_RELEASE = {
640
640
  // the SDK enrich generator's one-second stale policy.
641
641
  // 0.1.110 ships authored V2 prebuilts and required top-level play descriptions.
642
642
  // 0.1.111 ships dataset-native tool list getters and result row datasets.
643
- version: "0.1.152",
643
+ version: "0.1.153",
644
644
  apiContract: "2026-06-dataset-handle-results-hard-cutover",
645
645
  supportPolicy: {
646
- latest: "0.1.152",
646
+ latest: "0.1.153",
647
647
  minimumSupported: "0.1.53",
648
648
  deprecatedBelow: "0.1.53",
649
649
  commandMinimumSupported: [
package/dist/index.js CHANGED
@@ -419,10 +419,10 @@ var SDK_RELEASE = {
419
419
  // the SDK enrich generator's one-second stale policy.
420
420
  // 0.1.110 ships authored V2 prebuilts and required top-level play descriptions.
421
421
  // 0.1.111 ships dataset-native tool list getters and result row datasets.
422
- version: "0.1.152",
422
+ version: "0.1.153",
423
423
  apiContract: "2026-06-dataset-handle-results-hard-cutover",
424
424
  supportPolicy: {
425
- latest: "0.1.152",
425
+ latest: "0.1.153",
426
426
  minimumSupported: "0.1.53",
427
427
  deprecatedBelow: "0.1.53",
428
428
  commandMinimumSupported: [
package/dist/index.mjs CHANGED
@@ -349,10 +349,10 @@ var SDK_RELEASE = {
349
349
  // the SDK enrich generator's one-second stale policy.
350
350
  // 0.1.110 ships authored V2 prebuilts and required top-level play descriptions.
351
351
  // 0.1.111 ships dataset-native tool list getters and result row datasets.
352
- version: "0.1.152",
352
+ version: "0.1.153",
353
353
  apiContract: "2026-06-dataset-handle-results-hard-cutover",
354
354
  supportPolicy: {
355
- latest: "0.1.152",
355
+ latest: "0.1.153",
356
356
  minimumSupported: "0.1.53",
357
357
  deprecatedBelow: "0.1.53",
358
358
  commandMinimumSupported: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepline",
3
- "version": "0.1.152",
3
+ "version": "0.1.153",
4
4
  "description": "Deepline SDK + CLI — B2B data enrichment powered by durable cloud execution",
5
5
  "license": "MIT",
6
6
  "repository": {