deepline 0.3.116 → 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.
Files changed (30) hide show
  1. package/dist/bundling-sources/sdk/src/client.ts +356 -12
  2. package/dist/bundling-sources/sdk/src/index.ts +12 -1
  3. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  4. package/dist/bundling-sources/shared_libs/monitors/billing/state.ts +36 -6
  5. package/dist/bundling-sources/shared_libs/monitors/billing/types.ts +0 -1
  6. package/dist/bundling-sources/shared_libs/monitors/deactivation-reasons.ts +6 -3
  7. package/dist/bundling-sources/shared_libs/monitors/fleets/verdict.ts +52 -15
  8. package/dist/bundling-sources/shared_libs/monitors/monitor-job-state.ts +44 -0
  9. package/dist/bundling-sources/shared_libs/monitors/package.json +2 -0
  10. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +76 -3
  11. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-state.ts +81 -6
  12. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-status.ts +26 -10
  13. package/dist/bundling-sources/shared_libs/observability/queue-health.ts +128 -0
  14. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
  15. package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +1 -0
  16. package/dist/bundling-sources/shared_libs/play-data-plane/index.ts +1 -0
  17. package/dist/bundling-sources/shared_libs/play-data-plane/runtime-sheet-storage-contract.ts +29 -0
  18. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +32 -1
  19. package/dist/cli/index.js +413 -68
  20. package/dist/cli/index.mjs +413 -68
  21. package/dist/index.d.mts +155 -13
  22. package/dist/index.d.ts +155 -13
  23. package/dist/index.js +137 -2
  24. package/dist/index.mjs +134 -2
  25. package/dist/install-integrity.json +2 -0
  26. package/dist/release.d.mts +1 -1
  27. package/dist/release.d.ts +1 -1
  28. package/dist/release.js +1 -1
  29. package/dist/release.mjs +1 -1
  30. package/package.json +1 -1
@@ -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 {