@dbt-tools/web 0.7.0 → 0.9.0

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.
@@ -4,7 +4,7 @@ import { fileURLToPath } from "node:url";
4
4
  import http from "node:http";
5
5
  import path from "node:path";
6
6
  import { createRemoteObjectStoreClient } from "@dbt-tools/core/artifact-io";
7
- //#region src/server/package-version.ts
7
+ // src/server/package-version.ts
8
8
  /**
9
9
  * Resolved at runtime from compiled `dist/*.js` (package root is `..`).
10
10
  */
@@ -14,8 +14,7 @@ function readWebPackageVersion() {
14
14
  if (typeof parsed.version !== "string" || parsed.version.trim() === "") throw new Error("Invalid or missing \"version\" in @dbt-tools/web package.json");
15
15
  return parsed.version;
16
16
  }
17
- //#endregion
18
- //#region src/server/cli-args.ts
17
+ // src/server/cli-args.ts
19
18
  /** Pure CLI argument parsing for `dbt-tools-web` (testable without starting the server). */
20
19
  var USAGE = [
21
20
  "Usage: dbt-tools-web [options]",
@@ -144,8 +143,7 @@ function parseCliArgs(argv) {
144
143
  usedTargetAlias
145
144
  };
146
145
  }
147
- //#endregion
148
- //#region src/artifact-source/discovery.ts
146
+ // src/artifact-source/discovery.ts
149
147
  function mapCoreCandidatesToResolvedRuns(disc, resolveKey) {
150
148
  return disc.candidates.map((c) => ({
151
149
  runId: c.runId,
@@ -202,16 +200,14 @@ function toLocalManagedArtifactRun(run) {
202
200
  versionToken: run.versionToken
203
201
  };
204
202
  }
205
- //#endregion
206
- //#region src/artifact-source/resolve-local-target-dir.ts
203
+ // src/artifact-source/resolve-local-target-dir.ts
207
204
  function expandDbtTargetDirFromEnvValue(targetDir) {
208
205
  return targetDir.replace(/^~($|\/)/, `${process.env.HOME ?? ""}$1`).trim();
209
206
  }
210
207
  function resolveLocalArtifactTargetDirFromEnv(cwd, rawTargetDir) {
211
208
  return path.resolve(cwd, expandDbtTargetDirFromEnvValue(rawTargetDir));
212
209
  }
213
- //#endregion
214
- //#region src/artifact-source/workspace-bridge.ts
210
+ // src/artifact-source/workspace-bridge.ts
215
211
  async function readLocalRunArtifactBytes(run) {
216
212
  const encoder = new TextEncoder();
217
213
  const [manifestText, runResultsText, catalogText, sourcesText] = await Promise.all([
@@ -253,8 +249,7 @@ async function readRemoteRunArtifactBytes(run, bucket, client) {
253
249
  ...sourcesBytes != null ? { sourcesBytes } : {}
254
250
  };
255
251
  }
256
- //#endregion
257
- //#region src/artifact-source/source-service.ts
252
+ // src/artifact-source/source-service.ts
258
253
  /** Node (Vite dev) service: configurable local path or remote S3/GCS; drives middleware routes. */
259
254
  function debugLog(...args) {
260
255
  if (isDbtToolsDebugEnabled()) console.log("[artifact-source]", ...args);
@@ -658,8 +653,7 @@ var ArtifactSourceService = class {
658
653
  return this.getStatus();
659
654
  }
660
655
  };
661
- //#endregion
662
- //#region src/artifact-source/vite-artifact-routes.ts
656
+ // src/artifact-source/vite-artifact-routes.ts
663
657
  var ARTIFACT_SOURCE_UNSUPPORTED_OPTIONS_ERROR = "Service account impersonation is only supported for Google Cloud Storage. Options are not supported for local or S3 artifact sources.";
664
658
  function parseArtifactSourceRequestOptions(kind, body) {
665
659
  if (!Object.prototype.hasOwnProperty.call(body, "options")) return {
@@ -863,8 +857,7 @@ async function tryHandleArtifactSourceViteRequest(req, res, service) {
863
857
  }
864
858
  return false;
865
859
  }
866
- //#endregion
867
- //#region src/server/serve.ts
860
+ // src/server/serve.ts
868
861
  var __dirname = path.dirname(fileURLToPath(import.meta.url));
869
862
  var DIST_DIR = path.resolve(__dirname, "../../dist");
870
863
  var DIST_ROOT_REAL;
@@ -996,8 +989,7 @@ function startServer(port) {
996
989
  });
997
990
  });
998
991
  }
999
- //#endregion
1000
- //#region src/server/cli.ts
992
+ // src/server/cli.ts
1001
993
  var parsed = parseCliArgs(process.argv.slice(2));
1002
994
  if (parsed.kind === "help") {
1003
995
  process.stdout.write(USAGE);
@@ -1025,5 +1017,4 @@ try {
1025
1017
  await startServer(port);
1026
1018
  var url = `http://${LISTEN_HOST}:${port}`;
1027
1019
  process.stdout.write(`dbt-tools-web ${url}\n`);
1028
- //#endregion
1029
1020
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dbt-tools/web",
3
- "version": "0.7.0",
3
+ "version": "0.9.0",
4
4
  "description": "Browser UI for deterministic dbt artifact investigation — dependencies, execution timelines, inventory (no LLM required)",
5
5
  "keywords": [
6
6
  "dbt",
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "homepage": "https://yu-iskw.github.io/dbt-tools-ts/",
21
21
  "engines": {
22
- "node": ">=20"
22
+ "node": ">=24.22.1"
23
23
  },
24
24
  "type": "module",
25
25
  "bin": {
@@ -38,7 +38,7 @@
38
38
  "react-dom": "^19.2.4",
39
39
  "react-markdown": "^10.1.0",
40
40
  "remark-gfm": "^4.0.1",
41
- "@dbt-tools/core": "0.7.0"
41
+ "@dbt-tools/core": "0.9.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@playwright/test": "^1.59.1",
@@ -47,7 +47,7 @@
47
47
  "@types/react-dom": "^19.2.3",
48
48
  "@vitejs/plugin-react": "^6.0.1",
49
49
  "typescript": "^6.0.2",
50
- "vite": "^8.2.0"
50
+ "vite": "^8.3.8"
51
51
  },
52
52
  "publishConfig": {
53
53
  "access": "public"