deepline 0.1.303 → 0.1.304

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.
@@ -157,7 +157,7 @@ export const SDK_RELEASE = {
157
157
  // 0.1.253 makes play-page browser opening opt-in and retires --no-open.
158
158
  // 0.1.254 removes the internal operations tree from the published SDK CLI.
159
159
  // Operators use the checkout-local deepline-admin binary instead.
160
- version: '0.1.303',
160
+ version: '0.1.304',
161
161
  contracts: {
162
162
  api: {
163
163
  name: 'sdk-http-api',
@@ -1644,7 +1644,7 @@ export class PlayContextImpl {
1644
1644
  tableNamespace: string | null,
1645
1645
  update: Omit<PlayRowUpdate, 'key'>,
1646
1646
  ): void {
1647
- assertNoSecretTaint(update, 'ctx.map row update');
1647
+ assertNoSecretTaint(update, 'ctx.dataset row update');
1648
1648
  const rowScope = rowContext.getStore()?.mapScope;
1649
1649
  if (rowScope && key) {
1650
1650
  this.emitExecutionEvent({
package/dist/cli/index.js CHANGED
@@ -1037,7 +1037,7 @@ var SDK_RELEASE = {
1037
1037
  // 0.1.253 makes play-page browser opening opt-in and retires --no-open.
1038
1038
  // 0.1.254 removes the internal operations tree from the published SDK CLI.
1039
1039
  // Operators use the checkout-local deepline-admin binary instead.
1040
- version: "0.1.303",
1040
+ version: "0.1.304",
1041
1041
  contracts: {
1042
1042
  api: {
1043
1043
  name: "sdk-http-api",
@@ -9750,14 +9750,14 @@ function formatDbQueryError(sql, error) {
9750
9750
  if (referencesStorage && relationMissing) {
9751
9751
  return [
9752
9752
  "Customer DB query failed: the referenced storage table does not exist.",
9753
- "Play map tables are created only when the corresponding ctx.map(...).run(...) call executes. Pilot branches, early returns, and runs that fail before the map do not create that table.",
9753
+ "Play dataset tables are created only when the corresponding ctx.dataset(...).run(...) call executes. Pilot branches, early returns, and runs that fail before the dataset do not create that table.",
9754
9754
  "Use `deepline runs get <run-id> --full --json` to inspect returned dataset handles, then export them with `deepline runs export <run-id> --dataset result.rows --out rows.csv`.",
9755
9755
  `Original error: ${errorMessage(error)}`
9756
9756
  ].join("\n");
9757
9757
  }
9758
9758
  if (referencesStorage && runIdColumnMissing) {
9759
9759
  return [
9760
- "Customer DB query failed: storage map tables use `_run_id`, not `run_id`.",
9760
+ "Customer DB query failed: storage dataset tables use `_run_id`, not `run_id`.",
9761
9761
  "Prefer `deepline runs export <run-id> --dataset result.rows --out rows.csv` unless you are doing deep table debugging.",
9762
9762
  `Original error: ${errorMessage(error)}`
9763
9763
  ].join("\n");
@@ -11211,7 +11211,7 @@ function assertComposablePlayRoute(input2) {
11211
11211
  if (!input2.playRef || !playUsesMapBackedRuntime(input2.play)) return;
11212
11212
  const runCommand2 = input2.play?.runCommand?.trim() || `deepline plays run ${input2.playRef} --input '{...}' --watch`;
11213
11213
  throw new PlayBootstrapValidationError(
11214
- `Cannot use ${input2.stageLabel} play:${input2.playRef} in plays bootstrap composition: the selected play is map-backed/direct-run-only. Child plays that use ctx.map() own durable table state and must be run directly, exported, or validated as their own play instead of wrapped with ctx.runPlay. Run it directly first: ${runCommand2}`
11214
+ `Cannot use ${input2.stageLabel} play:${input2.playRef} in plays bootstrap composition: the selected play is dataset-backed/direct-run-only. Child plays that use ctx.dataset() own durable table state and must be run directly, exported, or validated as their own play instead of wrapped with ctx.runPlay. Run it directly first: ${runCommand2}`
11215
11215
  );
11216
11216
  }
11217
11217
  function sourcePlayNeedsExportFirst(input2) {
@@ -11252,7 +11252,7 @@ function generatePlaySourceRowsBlock(input2) {
11252
11252
  })) {
11253
11253
  const sourcePlay = input2.sourcePlay;
11254
11254
  const runCommand2 = sourcePlay?.runCommand?.trim() || `deepline plays run ${input2.source.value} --input '{...}' --watch`;
11255
- return `// Source play ${input2.source.value} is map-backed/direct-run-only, so this generated play is stage 2.
11255
+ return `// Source play ${input2.source.value} is dataset-backed/direct-run-only, so this generated play is stage 2.
11256
11256
  // Stage 1:
11257
11257
  // ${runCommand2}
11258
11258
  // Stage 2:
@@ -11983,8 +11983,8 @@ var EXTRACTED_GETTER_ERROR_HINT = "Deepline hint: extractedValues/extractedLists
11983
11983
  var DATASET_API_HINT = "Deepline hint: PlayDataset is lazy and durable. Use `.peek(n)` for a small preview or `.materialize()` when you intentionally need rows in memory; do not use `.rows`, `.toArray()`, or array methods directly on the dataset handle.";
11984
11984
  var ROW_PROPERTY_HINT = "Deepline hint: this row type only contains fields produced by the CSV/schema and previous map steps. Check source column casing and the exact output field names from earlier steps before scaling.";
11985
11985
  var TOOLS_EXECUTE_SIGNATURE_HINT = "Deepline hint: ctx.tools.execute requires a request object: `ctx.tools.execute({ id, tool, input, description })`. The stable `id` is required for logs, metadata, and receipt attachment; provider-call reuse is based on play, tool, semantic input, auth scope, provider action version, and cache policy.";
11986
- var RUN_PLAY_SIGNATURE_HINT = "Deepline hint: ctx.runPlay uses a stable key plus a composable child play reference. Direct-run-only or map-backed batch plays must be run directly, exported, then consumed by a separate play.";
11987
- var MAP_BACKED_CHILD_HINT = "Deepline hint: map-backed child plays own durable table state and cannot be called from another play. Run that play directly, export its dataset, then pass the CSV to the next play.";
11986
+ var RUN_PLAY_SIGNATURE_HINT = "Deepline hint: ctx.runPlay uses a stable key plus a composable child play reference. Direct-run-only or dataset-backed batch plays must be run directly, exported, then consumed by a separate play.";
11987
+ var MAP_BACKED_CHILD_HINT = "Deepline hint: dataset-backed child plays own durable table state and cannot be called from another play. Run that play directly, export its dataset, then pass the CSV to the next play.";
11988
11988
  function sourceLineForError(sourceCode, error) {
11989
11989
  const match = error.match(/:(\d+):(\d+)\s/);
11990
11990
  const lineNumber = match?.[1] ? Number(match[1]) : NaN;
@@ -12014,7 +12014,7 @@ function looksLikeRunPlaySignature(error, sourceLine) {
12014
12014
  return /ctx\.runPlay/i.test(error) || /(?:Expected|Argument of type|No overload matches)/.test(error) && /\brunPlay\(/.test(sourceLine);
12015
12015
  }
12016
12016
  function looksLikeMapBackedChild(error) {
12017
- return /map-backed child play|direct-run-only|cannot call a map-backed|own durable table/i.test(
12017
+ return /(?:map|dataset)-backed child play|direct-run-only|cannot call a (?:map|dataset)-backed|own durable table/i.test(
12018
12018
  error
12019
12019
  );
12020
12020
  }
@@ -13484,7 +13484,7 @@ function emitLiveDebugTableHints(input2) {
13484
13484
  }
13485
13485
  input2.state.emittedDebugKeys.add(tableKey);
13486
13486
  input2.progress.writeLine(
13487
- `Possible map table ${tableNamespace}: created only after this ctx.map(...).run(...) executes. Inspect returned datasets with ${buildRunInspectCommand(input2.runId)}`,
13487
+ `Possible dataset table ${tableNamespace}: created only after this ctx.dataset(...).run(...) executes. Inspect returned datasets with ${buildRunInspectCommand(input2.runId)}`,
13488
13488
  process.stdout
13489
13489
  );
13490
13490
  }
@@ -1022,7 +1022,7 @@ var SDK_RELEASE = {
1022
1022
  // 0.1.253 makes play-page browser opening opt-in and retires --no-open.
1023
1023
  // 0.1.254 removes the internal operations tree from the published SDK CLI.
1024
1024
  // Operators use the checkout-local deepline-admin binary instead.
1025
- version: "0.1.303",
1025
+ version: "0.1.304",
1026
1026
  contracts: {
1027
1027
  api: {
1028
1028
  name: "sdk-http-api",
@@ -9755,14 +9755,14 @@ function formatDbQueryError(sql, error) {
9755
9755
  if (referencesStorage && relationMissing) {
9756
9756
  return [
9757
9757
  "Customer DB query failed: the referenced storage table does not exist.",
9758
- "Play map tables are created only when the corresponding ctx.map(...).run(...) call executes. Pilot branches, early returns, and runs that fail before the map do not create that table.",
9758
+ "Play dataset tables are created only when the corresponding ctx.dataset(...).run(...) call executes. Pilot branches, early returns, and runs that fail before the dataset do not create that table.",
9759
9759
  "Use `deepline runs get <run-id> --full --json` to inspect returned dataset handles, then export them with `deepline runs export <run-id> --dataset result.rows --out rows.csv`.",
9760
9760
  `Original error: ${errorMessage(error)}`
9761
9761
  ].join("\n");
9762
9762
  }
9763
9763
  if (referencesStorage && runIdColumnMissing) {
9764
9764
  return [
9765
- "Customer DB query failed: storage map tables use `_run_id`, not `run_id`.",
9765
+ "Customer DB query failed: storage dataset tables use `_run_id`, not `run_id`.",
9766
9766
  "Prefer `deepline runs export <run-id> --dataset result.rows --out rows.csv` unless you are doing deep table debugging.",
9767
9767
  `Original error: ${errorMessage(error)}`
9768
9768
  ].join("\n");
@@ -11240,7 +11240,7 @@ function assertComposablePlayRoute(input2) {
11240
11240
  if (!input2.playRef || !playUsesMapBackedRuntime(input2.play)) return;
11241
11241
  const runCommand2 = input2.play?.runCommand?.trim() || `deepline plays run ${input2.playRef} --input '{...}' --watch`;
11242
11242
  throw new PlayBootstrapValidationError(
11243
- `Cannot use ${input2.stageLabel} play:${input2.playRef} in plays bootstrap composition: the selected play is map-backed/direct-run-only. Child plays that use ctx.map() own durable table state and must be run directly, exported, or validated as their own play instead of wrapped with ctx.runPlay. Run it directly first: ${runCommand2}`
11243
+ `Cannot use ${input2.stageLabel} play:${input2.playRef} in plays bootstrap composition: the selected play is dataset-backed/direct-run-only. Child plays that use ctx.dataset() own durable table state and must be run directly, exported, or validated as their own play instead of wrapped with ctx.runPlay. Run it directly first: ${runCommand2}`
11244
11244
  );
11245
11245
  }
11246
11246
  function sourcePlayNeedsExportFirst(input2) {
@@ -11281,7 +11281,7 @@ function generatePlaySourceRowsBlock(input2) {
11281
11281
  })) {
11282
11282
  const sourcePlay = input2.sourcePlay;
11283
11283
  const runCommand2 = sourcePlay?.runCommand?.trim() || `deepline plays run ${input2.source.value} --input '{...}' --watch`;
11284
- return `// Source play ${input2.source.value} is map-backed/direct-run-only, so this generated play is stage 2.
11284
+ return `// Source play ${input2.source.value} is dataset-backed/direct-run-only, so this generated play is stage 2.
11285
11285
  // Stage 1:
11286
11286
  // ${runCommand2}
11287
11287
  // Stage 2:
@@ -12012,8 +12012,8 @@ var EXTRACTED_GETTER_ERROR_HINT = "Deepline hint: extractedValues/extractedLists
12012
12012
  var DATASET_API_HINT = "Deepline hint: PlayDataset is lazy and durable. Use `.peek(n)` for a small preview or `.materialize()` when you intentionally need rows in memory; do not use `.rows`, `.toArray()`, or array methods directly on the dataset handle.";
12013
12013
  var ROW_PROPERTY_HINT = "Deepline hint: this row type only contains fields produced by the CSV/schema and previous map steps. Check source column casing and the exact output field names from earlier steps before scaling.";
12014
12014
  var TOOLS_EXECUTE_SIGNATURE_HINT = "Deepline hint: ctx.tools.execute requires a request object: `ctx.tools.execute({ id, tool, input, description })`. The stable `id` is required for logs, metadata, and receipt attachment; provider-call reuse is based on play, tool, semantic input, auth scope, provider action version, and cache policy.";
12015
- var RUN_PLAY_SIGNATURE_HINT = "Deepline hint: ctx.runPlay uses a stable key plus a composable child play reference. Direct-run-only or map-backed batch plays must be run directly, exported, then consumed by a separate play.";
12016
- var MAP_BACKED_CHILD_HINT = "Deepline hint: map-backed child plays own durable table state and cannot be called from another play. Run that play directly, export its dataset, then pass the CSV to the next play.";
12015
+ var RUN_PLAY_SIGNATURE_HINT = "Deepline hint: ctx.runPlay uses a stable key plus a composable child play reference. Direct-run-only or dataset-backed batch plays must be run directly, exported, then consumed by a separate play.";
12016
+ var MAP_BACKED_CHILD_HINT = "Deepline hint: dataset-backed child plays own durable table state and cannot be called from another play. Run that play directly, export its dataset, then pass the CSV to the next play.";
12017
12017
  function sourceLineForError(sourceCode, error) {
12018
12018
  const match = error.match(/:(\d+):(\d+)\s/);
12019
12019
  const lineNumber = match?.[1] ? Number(match[1]) : NaN;
@@ -12043,7 +12043,7 @@ function looksLikeRunPlaySignature(error, sourceLine) {
12043
12043
  return /ctx\.runPlay/i.test(error) || /(?:Expected|Argument of type|No overload matches)/.test(error) && /\brunPlay\(/.test(sourceLine);
12044
12044
  }
12045
12045
  function looksLikeMapBackedChild(error) {
12046
- return /map-backed child play|direct-run-only|cannot call a map-backed|own durable table/i.test(
12046
+ return /(?:map|dataset)-backed child play|direct-run-only|cannot call a (?:map|dataset)-backed|own durable table/i.test(
12047
12047
  error
12048
12048
  );
12049
12049
  }
@@ -13513,7 +13513,7 @@ function emitLiveDebugTableHints(input2) {
13513
13513
  }
13514
13514
  input2.state.emittedDebugKeys.add(tableKey);
13515
13515
  input2.progress.writeLine(
13516
- `Possible map table ${tableNamespace}: created only after this ctx.map(...).run(...) executes. Inspect returned datasets with ${buildRunInspectCommand(input2.runId)}`,
13516
+ `Possible dataset table ${tableNamespace}: created only after this ctx.dataset(...).run(...) executes. Inspect returned datasets with ${buildRunInspectCommand(input2.runId)}`,
13517
13517
  process.stdout
13518
13518
  );
13519
13519
  }
package/dist/index.js CHANGED
@@ -760,7 +760,7 @@ var SDK_RELEASE = {
760
760
  // 0.1.253 makes play-page browser opening opt-in and retires --no-open.
761
761
  // 0.1.254 removes the internal operations tree from the published SDK CLI.
762
762
  // Operators use the checkout-local deepline-admin binary instead.
763
- version: "0.1.303",
763
+ version: "0.1.304",
764
764
  contracts: {
765
765
  api: {
766
766
  name: "sdk-http-api",
package/dist/index.mjs CHANGED
@@ -686,7 +686,7 @@ var SDK_RELEASE = {
686
686
  // 0.1.253 makes play-page browser opening opt-in and retires --no-open.
687
687
  // 0.1.254 removes the internal operations tree from the published SDK CLI.
688
688
  // Operators use the checkout-local deepline-admin binary instead.
689
- version: "0.1.303",
689
+ version: "0.1.304",
690
690
  contracts: {
691
691
  api: {
692
692
  name: "sdk-http-api",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepline",
3
- "version": "0.1.303",
3
+ "version": "0.1.304",
4
4
  "description": "Deepline SDK + CLI — B2B data enrichment powered by durable cloud execution",
5
5
  "license": "MIT",
6
6
  "repository": {