deepline 0.1.90 → 0.1.91

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/cli/index.js CHANGED
@@ -229,10 +229,10 @@ var import_node_path2 = require("path");
229
229
 
230
230
  // src/release.ts
231
231
  var SDK_RELEASE = {
232
- version: "0.1.90",
232
+ version: "0.1.91",
233
233
  apiContract: "2026-06-dataset-column-cell-stale-hard-cutover",
234
234
  supportPolicy: {
235
- latest: "0.1.90",
235
+ latest: "0.1.91",
236
236
  minimumSupported: "0.1.53",
237
237
  deprecatedBelow: "0.1.53"
238
238
  }
@@ -9920,18 +9920,33 @@ function writePlayResult(status, jsonOutput, options) {
9920
9920
  ` }
9921
9921
  );
9922
9922
  }
9923
+ function playRunPackageStepCount(pkg) {
9924
+ if (!pkg) return 0;
9925
+ const steps = pkg.steps;
9926
+ return Array.isArray(steps) ? steps.length : 0;
9927
+ }
9923
9928
  async function resolvePlayRunOutputStatus(input2) {
9924
- if (!input2.fullJson || !getPlayRunPackage(input2.status)) {
9925
- return input2.status;
9926
- }
9927
9929
  const runId = input2.status.runId;
9928
9930
  if (!runId) {
9929
9931
  return input2.status;
9930
9932
  }
9931
- const refreshedStatus = await input2.client.getPlayStatus(runId, {
9933
+ const streamedPackage = getPlayRunPackage(input2.status);
9934
+ const refreshForFullJson = input2.fullJson && streamedPackage !== null;
9935
+ const streamedTextPackageIncomplete = !input2.jsonOutput && input2.status.status === "completed" && playRunPackageStepCount(streamedPackage) === 0;
9936
+ if (!refreshForFullJson && !streamedTextPackageIncomplete) {
9937
+ return input2.status;
9938
+ }
9939
+ let refreshedStatus = await input2.client.getPlayStatus(runId, {
9932
9940
  billing: false,
9933
9941
  full: input2.fullJson
9934
9942
  });
9943
+ for (let attempt = 0; attempt < 3 && streamedTextPackageIncomplete && refreshedStatus.status === "completed" && playRunPackageStepCount(getPlayRunPackage(refreshedStatus)) === 0; attempt += 1) {
9944
+ await sleep4(250);
9945
+ refreshedStatus = await input2.client.getPlayStatus(runId, {
9946
+ billing: false,
9947
+ full: input2.fullJson
9948
+ });
9949
+ }
9935
9950
  const dashboardUrl = input2.status.dashboardUrl;
9936
9951
  return typeof dashboardUrl === "string" ? { ...refreshedStatus, dashboardUrl } : refreshedStatus;
9937
9952
  }
@@ -10895,7 +10910,8 @@ async function handleFileBackedRun(options) {
10895
10910
  await resolvePlayRunOutputStatus({
10896
10911
  client,
10897
10912
  status: finalStatus,
10898
- fullJson: options.fullJson
10913
+ fullJson: options.fullJson,
10914
+ jsonOutput: options.jsonOutput
10899
10915
  }),
10900
10916
  playName
10901
10917
  );
@@ -11045,7 +11061,8 @@ async function handleNamedRun(options) {
11045
11061
  await resolvePlayRunOutputStatus({
11046
11062
  client,
11047
11063
  status: finalStatus,
11048
- fullJson: options.fullJson
11064
+ fullJson: options.fullJson,
11065
+ jsonOutput: options.jsonOutput
11049
11066
  }),
11050
11067
  playName
11051
11068
  );
@@ -206,10 +206,10 @@ import { join as join2 } from "path";
206
206
 
207
207
  // src/release.ts
208
208
  var SDK_RELEASE = {
209
- version: "0.1.90",
209
+ version: "0.1.91",
210
210
  apiContract: "2026-06-dataset-column-cell-stale-hard-cutover",
211
211
  supportPolicy: {
212
- latest: "0.1.90",
212
+ latest: "0.1.91",
213
213
  minimumSupported: "0.1.53",
214
214
  deprecatedBelow: "0.1.53"
215
215
  }
@@ -9929,18 +9929,33 @@ function writePlayResult(status, jsonOutput, options) {
9929
9929
  ` }
9930
9930
  );
9931
9931
  }
9932
+ function playRunPackageStepCount(pkg) {
9933
+ if (!pkg) return 0;
9934
+ const steps = pkg.steps;
9935
+ return Array.isArray(steps) ? steps.length : 0;
9936
+ }
9932
9937
  async function resolvePlayRunOutputStatus(input2) {
9933
- if (!input2.fullJson || !getPlayRunPackage(input2.status)) {
9934
- return input2.status;
9935
- }
9936
9938
  const runId = input2.status.runId;
9937
9939
  if (!runId) {
9938
9940
  return input2.status;
9939
9941
  }
9940
- const refreshedStatus = await input2.client.getPlayStatus(runId, {
9942
+ const streamedPackage = getPlayRunPackage(input2.status);
9943
+ const refreshForFullJson = input2.fullJson && streamedPackage !== null;
9944
+ const streamedTextPackageIncomplete = !input2.jsonOutput && input2.status.status === "completed" && playRunPackageStepCount(streamedPackage) === 0;
9945
+ if (!refreshForFullJson && !streamedTextPackageIncomplete) {
9946
+ return input2.status;
9947
+ }
9948
+ let refreshedStatus = await input2.client.getPlayStatus(runId, {
9941
9949
  billing: false,
9942
9950
  full: input2.fullJson
9943
9951
  });
9952
+ for (let attempt = 0; attempt < 3 && streamedTextPackageIncomplete && refreshedStatus.status === "completed" && playRunPackageStepCount(getPlayRunPackage(refreshedStatus)) === 0; attempt += 1) {
9953
+ await sleep4(250);
9954
+ refreshedStatus = await input2.client.getPlayStatus(runId, {
9955
+ billing: false,
9956
+ full: input2.fullJson
9957
+ });
9958
+ }
9944
9959
  const dashboardUrl = input2.status.dashboardUrl;
9945
9960
  return typeof dashboardUrl === "string" ? { ...refreshedStatus, dashboardUrl } : refreshedStatus;
9946
9961
  }
@@ -10904,7 +10919,8 @@ async function handleFileBackedRun(options) {
10904
10919
  await resolvePlayRunOutputStatus({
10905
10920
  client,
10906
10921
  status: finalStatus,
10907
- fullJson: options.fullJson
10922
+ fullJson: options.fullJson,
10923
+ jsonOutput: options.jsonOutput
10908
10924
  }),
10909
10925
  playName
10910
10926
  );
@@ -11054,7 +11070,8 @@ async function handleNamedRun(options) {
11054
11070
  await resolvePlayRunOutputStatus({
11055
11071
  client,
11056
11072
  status: finalStatus,
11057
- fullJson: options.fullJson
11073
+ fullJson: options.fullJson,
11074
+ jsonOutput: options.jsonOutput
11058
11075
  }),
11059
11076
  playName
11060
11077
  );
package/dist/index.js CHANGED
@@ -246,10 +246,10 @@ var import_node_path2 = require("path");
246
246
 
247
247
  // src/release.ts
248
248
  var SDK_RELEASE = {
249
- version: "0.1.90",
249
+ version: "0.1.91",
250
250
  apiContract: "2026-06-dataset-column-cell-stale-hard-cutover",
251
251
  supportPolicy: {
252
- latest: "0.1.90",
252
+ latest: "0.1.91",
253
253
  minimumSupported: "0.1.53",
254
254
  deprecatedBelow: "0.1.53"
255
255
  }
package/dist/index.mjs CHANGED
@@ -179,10 +179,10 @@ import { join as join2 } from "path";
179
179
 
180
180
  // src/release.ts
181
181
  var SDK_RELEASE = {
182
- version: "0.1.90",
182
+ version: "0.1.91",
183
183
  apiContract: "2026-06-dataset-column-cell-stale-hard-cutover",
184
184
  supportPolicy: {
185
- latest: "0.1.90",
185
+ latest: "0.1.91",
186
186
  minimumSupported: "0.1.53",
187
187
  deprecatedBelow: "0.1.53"
188
188
  }
@@ -50,10 +50,10 @@ export type SdkRelease = {
50
50
  };
51
51
 
52
52
  export const SDK_RELEASE = {
53
- version: '0.1.90',
53
+ version: '0.1.91',
54
54
  apiContract: '2026-06-dataset-column-cell-stale-hard-cutover',
55
55
  supportPolicy: {
56
- latest: '0.1.90',
56
+ latest: '0.1.91',
57
57
  minimumSupported: '0.1.53',
58
58
  deprecatedBelow: '0.1.53',
59
59
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepline",
3
- "version": "0.1.90",
3
+ "version": "0.1.91",
4
4
  "description": "Deepline SDK + CLI — B2B data enrichment powered by durable cloud execution",
5
5
  "license": "MIT",
6
6
  "repository": {