deepline 0.3.117 → 0.3.118

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.
@@ -200,7 +200,7 @@ export const SDK_RELEASE = {
200
200
  // getters keep their established compatibility behavior.
201
201
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
202
202
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
203
- version: '0.3.117',
203
+ version: '0.3.118',
204
204
  updateSummary:
205
205
  'Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.',
206
206
  packageCapabilities: {
@@ -1,3 +1,4 @@
1
1
  export * from './column-names';
2
2
  export * from './contracts';
3
3
  export * from './sheet-contract';
4
+ export * from './runtime-sheet-storage-contract';
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Canonical contract for the runtime sheet cell-provenance column.
3
+ *
4
+ * Runtime sheet writers intentionally omit this column and rely on the
5
+ * database default. Keep the type, nullability, and default in one Module so
6
+ * table creation, readiness probes, migrations, and diagnostics cannot drift.
7
+ */
8
+ export const RUNTIME_SHEET_CELL_META_COLUMN = {
9
+ name: '_cell_meta',
10
+ dataType: 'jsonb',
11
+ nullable: 'NO',
12
+ defaultSql: "'{}'::jsonb",
13
+ } as const;
14
+
15
+ export type RuntimeSheetCellMetaColumnState = {
16
+ data_type: string;
17
+ is_nullable: string;
18
+ column_default: string | null;
19
+ };
20
+
21
+ export function isRuntimeSheetCellMetaColumnReady(
22
+ state: RuntimeSheetCellMetaColumnState | null | undefined,
23
+ ): boolean {
24
+ return (
25
+ state?.data_type === RUNTIME_SHEET_CELL_META_COLUMN.dataType &&
26
+ state.is_nullable === RUNTIME_SHEET_CELL_META_COLUMN.nullable &&
27
+ state.column_default != null
28
+ );
29
+ }
@@ -24,6 +24,7 @@ import {
24
24
  physicalSheetColumnProjections,
25
25
  type PhysicalSheetColumnProjection,
26
26
  } from '../play-data-plane/sheet-contract';
27
+ import { RUNTIME_SHEET_CELL_META_COLUMN } from '../play-data-plane/runtime-sheet-storage-contract';
27
28
  import type {
28
29
  CreateDbSessionResponse,
29
30
  DbLogicalTable,
@@ -1025,11 +1026,30 @@ async function isRuntimeSheetSchemaReady(
1025
1026
  [...RUNTIME_SHEET_TIMESTAMP_COLUMNS],
1026
1027
  ],
1027
1028
  );
1029
+ const cellMetaColumn = await client.query<Record<string, unknown>>(
1030
+ `
1031
+ SELECT count(*)::int AS ready_count
1032
+ FROM information_schema.columns
1033
+ WHERE table_schema = $1
1034
+ AND table_name = $2
1035
+ AND column_name = $3
1036
+ AND data_type = $4
1037
+ AND is_nullable = 'NO'
1038
+ AND column_default IS NOT NULL
1039
+ `,
1040
+ [
1041
+ session.postgres.schema,
1042
+ session.postgres.sheetTable,
1043
+ RUNTIME_SHEET_CELL_META_COLUMN.name,
1044
+ RUNTIME_SHEET_CELL_META_COLUMN.dataType,
1045
+ ],
1046
+ );
1028
1047
  return (
1029
1048
  Number(attemptColumns.rows[0]?.present_count ?? 0) ===
1030
1049
  RUNTIME_SHEET_ATTEMPT_COLUMNS.length &&
1031
1050
  Number(timestampColumns.rows[0]?.ready_count ?? 0) ===
1032
- RUNTIME_SHEET_TIMESTAMP_COLUMNS.length
1051
+ RUNTIME_SHEET_TIMESTAMP_COLUMNS.length &&
1052
+ Number(cellMetaColumn.rows[0]?.ready_count ?? 0) === 1
1033
1053
  );
1034
1054
  };
1035
1055
  try {
@@ -1121,6 +1141,17 @@ async function readRuntimeSheetSchemaDiagnostic(
1121
1141
  hasDefault: state?.column_default != null,
1122
1142
  };
1123
1143
  }),
1144
+ cellMetaColumnState: (() => {
1145
+ const state = visibleColumns.rows.find(
1146
+ (column) =>
1147
+ column.column_name === RUNTIME_SHEET_CELL_META_COLUMN.name,
1148
+ );
1149
+ return {
1150
+ dataType: state?.data_type ?? null,
1151
+ isNullable: state?.is_nullable ?? null,
1152
+ hasDefault: state?.column_default != null,
1153
+ };
1154
+ })(),
1124
1155
  };
1125
1156
  };
1126
1157
  try {
package/dist/cli/index.js CHANGED
@@ -1298,7 +1298,7 @@ var SDK_RELEASE = {
1298
1298
  // getters keep their established compatibility behavior.
1299
1299
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
1300
1300
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
1301
- version: "0.3.117",
1301
+ version: "0.3.118",
1302
1302
  updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
1303
1303
  packageCapabilities: {
1304
1304
  updatePreferences: 1
@@ -1271,7 +1271,7 @@ var SDK_RELEASE = {
1271
1271
  // getters keep their established compatibility behavior.
1272
1272
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
1273
1273
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
1274
- version: "0.3.117",
1274
+ version: "0.3.118",
1275
1275
  updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
1276
1276
  packageCapabilities: {
1277
1277
  updatePreferences: 1
package/dist/index.js CHANGED
@@ -863,7 +863,7 @@ var SDK_RELEASE = {
863
863
  // getters keep their established compatibility behavior.
864
864
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
865
865
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
866
- version: "0.3.117",
866
+ version: "0.3.118",
867
867
  updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
868
868
  packageCapabilities: {
869
869
  updatePreferences: 1
package/dist/index.mjs CHANGED
@@ -768,7 +768,7 @@ var SDK_RELEASE = {
768
768
  // getters keep their established compatibility behavior.
769
769
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
770
770
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
771
- version: "0.3.117",
771
+ version: "0.3.118",
772
772
  updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
773
773
  packageCapabilities: {
774
774
  updatePreferences: 1
@@ -108,6 +108,7 @@
108
108
  "dist/bundling-sources/shared_libs/play-data-plane/index.ts",
109
109
  "dist/bundling-sources/shared_libs/play-data-plane/neon-constants.ts",
110
110
  "dist/bundling-sources/shared_libs/play-data-plane/r2.ts",
111
+ "dist/bundling-sources/shared_libs/play-data-plane/runtime-sheet-storage-contract.ts",
111
112
  "dist/bundling-sources/shared_libs/play-data-plane/sheet-contract.ts",
112
113
  "dist/bundling-sources/shared_libs/play-runtime/activity-observation.ts",
113
114
  "dist/bundling-sources/shared_libs/play-runtime/admission-transport-policy.ts",
@@ -149,7 +149,7 @@ type SdkRelease = {
149
149
  supportPolicy: SdkSupportPolicy;
150
150
  };
151
151
  declare const SDK_RELEASE: {
152
- readonly version: "0.3.117";
152
+ readonly version: "0.3.118";
153
153
  readonly updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.";
154
154
  readonly packageCapabilities: {
155
155
  readonly updatePreferences: 1;
package/dist/release.d.ts CHANGED
@@ -149,7 +149,7 @@ type SdkRelease = {
149
149
  supportPolicy: SdkSupportPolicy;
150
150
  };
151
151
  declare const SDK_RELEASE: {
152
- readonly version: "0.3.117";
152
+ readonly version: "0.3.118";
153
153
  readonly updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.";
154
154
  readonly packageCapabilities: {
155
155
  readonly updatePreferences: 1;
package/dist/release.js CHANGED
@@ -74,7 +74,7 @@ var SDK_RELEASE = {
74
74
  // getters keep their established compatibility behavior.
75
75
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
76
76
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
77
- version: "0.3.117",
77
+ version: "0.3.118",
78
78
  updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
79
79
  packageCapabilities: {
80
80
  updatePreferences: 1
package/dist/release.mjs CHANGED
@@ -48,7 +48,7 @@ var SDK_RELEASE = {
48
48
  // getters keep their established compatibility behavior.
49
49
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
50
50
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
51
- version: "0.3.117",
51
+ version: "0.3.118",
52
52
  updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
53
53
  packageCapabilities: {
54
54
  updatePreferences: 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepline",
3
- "version": "0.3.117",
3
+ "version": "0.3.118",
4
4
  "description": "GTM data CLI and TypeScript SDK for coding agents",
5
5
  "license": "MIT",
6
6
  "homepage": "https://code.deepline.com",