@pbuilder/sdk 0.16.0 → 0.18.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.
Files changed (69) hide show
  1. package/README.md +75 -1
  2. package/dist/bin/pbuilder-conformance.d.ts +2 -0
  3. package/dist/bin/pbuilder-conformance.js +26 -0
  4. package/dist/bounded-contexts/authoring/application/usecases/run-factory/context.d.ts +7 -1
  5. package/dist/bounded-contexts/authoring/application/usecases/run-factory/context.js +2 -1
  6. package/dist/bounded-contexts/authoring/application/usecases/scaffold/expander.js +4 -4
  7. package/dist/bounded-contexts/authoring/domain/aggregates/session/session.d.ts +1 -0
  8. package/dist/bounded-contexts/authoring/domain/aggregates/session/session.js +54 -4
  9. package/dist/bounded-contexts/authoring/domain/entities/dialect-handle.d.ts +2 -1
  10. package/dist/bounded-contexts/authoring/domain/entities/dialect-handle.js +108 -30
  11. package/dist/bounded-contexts/authoring/domain/services/define-dialect.d.ts +48 -10
  12. package/dist/bounded-contexts/authoring/domain/services/define-dialect.js +37 -9
  13. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/angular/index.js +2 -2
  14. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/aspnet/index.d.ts +51 -0
  15. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/aspnet/index.js +49 -0
  16. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/aspnet/ops.d.ts +11 -0
  17. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/aspnet/ops.js +139 -0
  18. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/csharp/ast.d.ts +29 -0
  19. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/csharp/ast.js +41 -0
  20. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/csharp/index.d.ts +44 -0
  21. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/csharp/index.js +45 -0
  22. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/csharp/names.d.ts +7 -0
  23. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/csharp/names.js +72 -0
  24. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/csharp/ops.d.ts +19 -0
  25. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/csharp/ops.js +255 -0
  26. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/csharp/pack.d.ts +9 -0
  27. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/csharp/pack.js +2 -0
  28. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/csharp/syntax.d.ts +26 -0
  29. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/csharp/syntax.js +111 -0
  30. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/csharp/tree-sitter-c_sharp.LICENSE +23 -0
  31. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/csharp/tree-sitter-c_sharp.wasm +0 -0
  32. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/msbuild/ast.d.ts +22 -0
  33. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/msbuild/ast.js +17 -0
  34. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/msbuild/index.d.ts +55 -0
  35. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/msbuild/index.js +54 -0
  36. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/msbuild/ops.d.ts +7 -0
  37. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/msbuild/ops.js +162 -0
  38. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/msbuild/xml.d.ts +20 -0
  39. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/msbuild/xml.js +50 -0
  40. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/nestjs/index.js +2 -2
  41. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/react/ast.d.ts +2 -0
  42. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/react/ast.js +4 -0
  43. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/react/index.js +3 -3
  44. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/typescript/ast.d.ts +2 -0
  45. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/typescript/ast.js +4 -0
  46. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/typescript/index.js +2 -2
  47. package/dist/bounded-contexts/authoring/testing/conformance/index.d.ts +10 -12
  48. package/dist/bounded-contexts/authoring/testing/conformance/index.js +17 -2
  49. package/dist/bounded-contexts/authoring/testing/conformance/run-package.d.ts +20 -0
  50. package/dist/bounded-contexts/authoring/testing/conformance/run-package.js +129 -0
  51. package/dist/bounded-contexts/authoring/testing/harness/index.d.ts +3 -0
  52. package/dist/bounded-contexts/authoring/testing/harness/index.js +5 -1
  53. package/dist/bounded-contexts/runner-hosting/infrastructure/in/bootstrap-bridge.d.ts +3 -0
  54. package/dist/bounded-contexts/runner-hosting/infrastructure/in/bootstrap-bridge.js +2 -0
  55. package/dist/bounded-contexts/runner-hosting/infrastructure/in/runner.js +42 -3
  56. package/dist/bounded-contexts/runner-hosting/infrastructure/in/single-instance-probe.d.ts +13 -0
  57. package/dist/bounded-contexts/runner-hosting/infrastructure/in/single-instance-probe.js +25 -1
  58. package/dist/conformance/index.d.ts +1 -0
  59. package/dist/conformance/index.js +1 -0
  60. package/dist/dialect/index.d.ts +2 -0
  61. package/dist/dialect/index.js +3 -0
  62. package/dist/dialects/aspnet/index.d.ts +1 -0
  63. package/dist/dialects/aspnet/index.js +1 -0
  64. package/dist/dialects/csharp/index.d.ts +1 -0
  65. package/dist/dialects/csharp/index.js +1 -0
  66. package/dist/dialects/msbuild/index.d.ts +1 -0
  67. package/dist/dialects/msbuild/index.js +1 -0
  68. package/dist/runner-manifest.json +10 -6
  69. package/package.json +27 -3
@@ -1,3 +1,4 @@
1
+ import type { DeclaredDialect } from "./single-instance-probe.ts";
1
2
  import { type RunnerIo } from "./runner.ts";
2
3
  export declare class BridgeVersionMismatchError extends Error {
3
4
  constructor(expected: number, actual: number);
@@ -12,6 +13,8 @@ export type BridgeInput = {
12
13
  export interface BridgeParams {
13
14
  factory: string;
14
15
  input: BridgeInput;
16
+ /** The Frame's declared dialects (A-16, CA-5); absent means none. */
17
+ dialects?: readonly DeclaredDialect[];
15
18
  }
16
19
  export interface BridgeIo {
17
20
  input: RunnerIo["input"];
@@ -44,6 +44,8 @@ function toArgv(params) {
44
44
  argv.push("--input", params.input.json);
45
45
  else
46
46
  argv.push("--input-file", params.input.path);
47
+ if (params.dialects !== undefined)
48
+ argv.push("--dialects", JSON.stringify(params.dialects));
47
49
  return argv;
48
50
  }
49
51
  /**
@@ -30,7 +30,7 @@ import { WIRE_PROTOCOL_VERSION, isStructurallyValidGreeting, versionMatches } fr
30
30
  import { StdioEngineClient, TransportFault, IntentRejectedError, OverlappingRunError, } from "../../../../acl/irwire/stdio-engine-client.js";
31
31
  import { boundMessage, composeWithToken, scrubAbsolutePaths, toProjectRelativePath } from "../../../../platform/error-text.js";
32
32
  import { parseFactoryPointer, validateFactoryUrl, resolveFactoryExport } from "./factory-pointer.js";
33
- import { probeSingleInstance } from "./single-instance-probe.js";
33
+ import { probeDeclaredDialects, probeSingleInstance } from "./single-instance-probe.js";
34
34
  import { classifyExitCode } from "./exit-codes.js";
35
35
  import { nodePackageFiles } from "../../../authoring/infrastructure/out/fs/package-files.js";
36
36
  /** The greeting's own bound: the client's per-call timeout only exists once the greeting is in. */
@@ -42,12 +42,35 @@ export const INPUT_FILE_SIZE_CAP_BYTES = 10 * 1024 * 1024; // 10 MiB
42
42
  function note(io, text) {
43
43
  io.writeStderr(`${boundMessage(text)}\n`);
44
44
  }
45
+ const DIALECTS_SHAPE = "pbuilder-runner: --dialects must be a JSON array of {name, version, root} strings";
46
+ // A-16 / CA-5: the dialects the Frame's library declares, as the engine read them from the Lock.
47
+ // The value is never echoed: it holds absolute paths.
48
+ function parseDialects(value) {
49
+ let parsed;
50
+ try {
51
+ parsed = JSON.parse(value);
52
+ }
53
+ catch {
54
+ return undefined;
55
+ }
56
+ if (!Array.isArray(parsed))
57
+ return undefined;
58
+ const isEntry = (entry) => typeof entry === "object" &&
59
+ entry !== null &&
60
+ ["name", "version", "root"].every((key) => {
61
+ const field = entry[key];
62
+ return typeof field === "string" && field !== "";
63
+ });
64
+ return parsed.every(isEntry) ? parsed.map(({ name, version, root }) => ({ name, version, root })) : undefined;
65
+ }
45
66
  // REQ-RUN-01: `--factory <url>#<export>` required; exactly one of `--input <json>` XOR
46
- // `--input-file <path>`; any unrecognized flag fails closed.
67
+ // `--input-file <path>`; `--dialects <json>` optional, absent meaning none declared; any
68
+ // unrecognized flag fails closed.
47
69
  function parseArgv(argv) {
48
70
  let factory;
49
71
  let inputJson;
50
72
  let inputFile;
73
+ let dialects = [];
51
74
  for (let i = 0; i < argv.length; i += 2) {
52
75
  const flag = argv[i];
53
76
  const value = argv[i + 1];
@@ -60,6 +83,12 @@ function parseArgv(argv) {
60
83
  inputJson = value;
61
84
  else if (flag === "--input-file")
62
85
  inputFile = value;
86
+ else if (flag === "--dialects") {
87
+ const declared = parseDialects(value);
88
+ if (declared === undefined)
89
+ return { error: DIALECTS_SHAPE };
90
+ dialects = declared;
91
+ }
63
92
  else
64
93
  return { error: composeWithToken("pbuilder-runner: unrecognized flag ", flag) };
65
94
  }
@@ -73,6 +102,7 @@ function parseArgv(argv) {
73
102
  }
74
103
  return {
75
104
  factory,
105
+ dialects,
76
106
  input: inputJson !== undefined ? { kind: "inline", json: inputJson } : { kind: "file", path: inputFile },
77
107
  };
78
108
  }
@@ -262,6 +292,11 @@ async function runRunnerBody(argv, io, opened) {
262
292
  note(io, `pbuilder-runner: ${probe.message}`);
263
293
  return 1;
264
294
  }
295
+ const dialectProbe = probeDeclaredDialects(moduleUrl, parsed.dialects);
296
+ if (!dialectProbe.ok) {
297
+ note(io, `pbuilder-runner: ${dialectProbe.message}`);
298
+ return 1;
299
+ }
265
300
  let moduleNamespace;
266
301
  try {
267
302
  // SANCTIONED-FACTORY-IMPORT — the ONE dynamic import() Constraint 2 permits in the runner
@@ -299,7 +334,11 @@ async function runRunnerBody(argv, io, opened) {
299
334
  // the factory's own directory — schema-derived validation and reserved-name checks apply
300
335
  // identically on both vehicles.
301
336
  const packageDir = dirname(fileURLToPath(new URL(moduleUrl)));
302
- const run = defineFactory(exportResolution.fn, { packageDir, packageFiles: nodePackageFiles });
337
+ const run = defineFactory(exportResolution.fn, {
338
+ packageDir,
339
+ packageFiles: nodePackageFiles,
340
+ declaredDialects: parsed.dialects.map(({ name }) => name),
341
+ });
303
342
  const channel = {
304
343
  write: io.writeFrame,
305
344
  writeStderr: io.writeStderr,
@@ -21,3 +21,16 @@ export type SingleInstanceProbeResult = {
21
21
  * with the REAL default resolver in the split/unresolvable test cases.
22
22
  */
23
23
  export declare function probeSingleInstance(factoryUrl: string, resolveSpecifier?: (specifier: string, anchorUrl: string) => string): SingleInstanceProbeResult;
24
+ /** One dialect the Frame's library declares, with the root of the copy the Lock pins (CA-5). */
25
+ export interface DeclaredDialect {
26
+ name: string;
27
+ version: string;
28
+ root: string;
29
+ }
30
+ /**
31
+ * A-16 / A-4: before the factory starts, resolves each declared dialect's name from the factory's
32
+ * location, the same resolution its own `import` gets, and requires the real path inside the copy
33
+ * the Lock pins. It keeps the dialect that runs the pinned one; it is no security boundary.
34
+ * Resolution-only, like `probeSingleInstance`; an unresolvable name fails the same way.
35
+ */
36
+ export declare function probeDeclaredDialects(factoryUrl: string, dialects: readonly DeclaredDialect[], resolveSpecifier?: (specifier: string, anchorUrl: string) => string): SingleInstanceProbeResult;
@@ -30,7 +30,7 @@
30
30
  import { existsSync, realpathSync } from "node:fs";
31
31
  import { createRequire } from "node:module";
32
32
  import { fileURLToPath } from "node:url";
33
- import { dirname, join } from "node:path";
33
+ import { dirname, isAbsolute, join, relative } from "node:path";
34
34
  import { toProjectRelativePath } from "../../../../platform/error-text.js";
35
35
  const SDK_SPECIFIER = "@pbuilder/sdk";
36
36
  // Resolution-only: never `import()`s the target, only locates it.
@@ -117,3 +117,27 @@ export function probeSingleInstance(factoryUrl, resolveSpecifier = resolveSpecif
117
117
  return { ok: true };
118
118
  return { ok: false, message: splitMessage(runnerRoot, factoryRoot) };
119
119
  }
120
+ function resolvesInside(name, root, factoryUrl, resolveSpecifier) {
121
+ try {
122
+ const path = relative(realpathSync(root), realpathSync(resolveSpecifier(name, factoryUrl)));
123
+ return path !== "" && !path.startsWith("..") && !isAbsolute(path);
124
+ }
125
+ catch {
126
+ return false;
127
+ }
128
+ }
129
+ /**
130
+ * A-16 / A-4: before the factory starts, resolves each declared dialect's name from the factory's
131
+ * location, the same resolution its own `import` gets, and requires the real path inside the copy
132
+ * the Lock pins. It keeps the dialect that runs the pinned one; it is no security boundary.
133
+ * Resolution-only, like `probeSingleInstance`; an unresolvable name fails the same way.
134
+ */
135
+ export function probeDeclaredDialects(factoryUrl, dialects, resolveSpecifier = resolveSpecifierPath) {
136
+ const outside = dialects.find(({ name, root }) => !resolvesInside(name, root, factoryUrl, resolveSpecifier));
137
+ if (outside === undefined)
138
+ return { ok: true };
139
+ return {
140
+ ok: false,
141
+ message: `the factory does not start because the dialect "${outside.name}" resolves outside the package the Lock pins`,
142
+ };
143
+ }
@@ -1 +1,2 @@
1
1
  export * from "../bounded-contexts/authoring/testing/conformance/index.ts";
2
+ export { checkDialectPackage, type ConformanceFailure, type ConformanceReport, } from "../bounded-contexts/authoring/testing/conformance/run-package.ts";
@@ -1 +1,2 @@
1
1
  export * from "../bounded-contexts/authoring/testing/conformance/index.js";
2
+ export { checkDialectPackage, } from "../bounded-contexts/authoring/testing/conformance/run-package.js";
@@ -0,0 +1,2 @@
1
+ export { defineAuthorDialect as defineDialect, defineOpPack, withOps, withoutOps, overrideOps, byExtension, query, } from "../bounded-contexts/authoring/domain/services/define-dialect.ts";
2
+ export type { Dialect, DialectAst, DialectDescriptor, ExtensionRouter, Handle, Op, OpPack, Query, } from "../bounded-contexts/authoring/domain/services/define-dialect.ts";
@@ -0,0 +1,3 @@
1
+ // The author-facing dialect kit (A-16): the one part of the core kit that leaves the ADR-0009
2
+ // boundary, so an author can build, compose and route a Dialect of their own.
3
+ export { defineAuthorDialect as defineDialect, defineOpPack, withOps, withoutOps, overrideOps, byExtension, query, } from "../bounded-contexts/authoring/domain/services/define-dialect.js";
@@ -0,0 +1 @@
1
+ export * from "../../bounded-contexts/authoring/infrastructure/out/dialects/aspnet/index.ts";
@@ -0,0 +1 @@
1
+ export * from "../../bounded-contexts/authoring/infrastructure/out/dialects/aspnet/index.js";
@@ -0,0 +1 @@
1
+ export * from "../../bounded-contexts/authoring/infrastructure/out/dialects/csharp/index.ts";
@@ -0,0 +1 @@
1
+ export * from "../../bounded-contexts/authoring/infrastructure/out/dialects/csharp/index.js";
@@ -0,0 +1 @@
1
+ export * from "../../bounded-contexts/authoring/infrastructure/out/dialects/msbuild/index.ts";
@@ -0,0 +1 @@
1
+ export * from "../../bounded-contexts/authoring/infrastructure/out/dialects/msbuild/index.js";
@@ -2,7 +2,7 @@
2
2
  "manifestVersion": 1,
3
3
  "algorithm": "sha256",
4
4
  "entry": "dist/bin/pbuilder-runner.js",
5
- "packageVersion": "0.16.0",
5
+ "packageVersion": "0.18.0",
6
6
  "files": [
7
7
  {
8
8
  "path": "dist/acl/irwire/frame-reader.js",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  {
20
20
  "path": "dist/bounded-contexts/authoring/application/usecases/run-factory/context.js",
21
- "sha256": "cbc476d322490393fb20524017748ec2392c30b3f19208c07f0dbc80e04c5903"
21
+ "sha256": "363592971cf1d5869c7dd8eab70771bc2e7c91cde323a914f18853f674f38d72"
22
22
  },
23
23
  {
24
24
  "path": "dist/bounded-contexts/authoring/application/usecases/run-factory/driving.js",
@@ -26,7 +26,7 @@
26
26
  },
27
27
  {
28
28
  "path": "dist/bounded-contexts/authoring/domain/aggregates/session/session.js",
29
- "sha256": "6d38cebbed54516ad508eb096e7248a53da911e5b1dbad9e7118d93541712cf2"
29
+ "sha256": "69a87a7bc1ce590ad62fde300e1a8037f51ed53a249f337038fe638730327a5c"
30
30
  },
31
31
  {
32
32
  "path": "dist/bounded-contexts/authoring/domain/ports/emit-rejection.js",
@@ -76,6 +76,10 @@
76
76
  "path": "dist/bounded-contexts/authoring/domain/valueobjects/wire.js",
77
77
  "sha256": "965bd72c7ec6f914edc717cf2fd4aaff6395857fb486f0301e2fb4e0977e0616"
78
78
  },
79
+ {
80
+ "path": "dist/bounded-contexts/authoring/infrastructure/out/dialects/csharp/tree-sitter-c_sharp.wasm",
81
+ "sha256": "e137386fcdfc2562a058f8048c76ab77b0663a318cb62d8026cd4d2e94944231"
82
+ },
79
83
  {
80
84
  "path": "dist/bounded-contexts/authoring/infrastructure/out/fs/package-files.js",
81
85
  "sha256": "58a0bef6c4a7649dbbd5b5890f5cdeacb85bfdf9f805d973b22f2ce2e09e79da"
@@ -90,11 +94,11 @@
90
94
  },
91
95
  {
92
96
  "path": "dist/bounded-contexts/runner-hosting/infrastructure/in/runner.js",
93
- "sha256": "7cbd24c7cd55f307ed6a99281973a67d964f2ed56890422a17477a1e2f80ce73"
97
+ "sha256": "07124a37f04a2062349b1f9e404ece9cc146d84e47669be08ece8ff86a85b0c3"
94
98
  },
95
99
  {
96
100
  "path": "dist/bounded-contexts/runner-hosting/infrastructure/in/single-instance-probe.js",
97
- "sha256": "345639841efda1cb206951bc8c6c251bc0d5c17451d22a22210cc8e80dff06b5"
101
+ "sha256": "7d3faa7c91cdbbe3f1d3fe7f375b69f638153dce71bb69c3f884d3d1f815d85b"
98
102
  },
99
103
  {
100
104
  "path": "dist/platform/error-text.js",
@@ -118,7 +122,7 @@
118
122
  },
119
123
  {
120
124
  "path": "package.json",
121
- "sha256": "f1b948a8bafaf2e5b9d1f487799cc3b4b9be292b450331434f350cb1034ac52c"
125
+ "sha256": "ab6875d331619b35f4778ce07e9611a90a868d2350688bb54ffc467e01965ae6"
122
126
  }
123
127
  ]
124
128
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pbuilder/sdk",
3
- "version": "0.16.0",
3
+ "version": "0.18.0",
4
4
  "description": "The public TypeScript/Bun authoring layer for Project Builder schematics. Authors file mutations (create, replaceContent, remove, rename, move, copy, copyIn), lowers them to IR, and talks to the Project Builder engine over framed stdio (see docs/engine-sdk-wire-spec.md).",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -34,7 +34,8 @@
34
34
  "schemas"
35
35
  ],
36
36
  "bin": {
37
- "pbuilder-codegen": "dist/bin/pbuilder-codegen.js"
37
+ "pbuilder-codegen": "dist/bin/pbuilder-codegen.js",
38
+ "pbuilder-conformance": "dist/bin/pbuilder-conformance.js"
38
39
  },
39
40
  "main": "./dist/index.js",
40
41
  "exports": {
@@ -53,6 +54,11 @@
53
54
  "import": "./dist/conformance/index.js",
54
55
  "default": "./dist/conformance/index.js"
55
56
  },
57
+ "./dialect": {
58
+ "types": "./dist/dialect/index.d.ts",
59
+ "import": "./dist/dialect/index.js",
60
+ "default": "./dist/dialect/index.js"
61
+ },
56
62
  "./testing": {
57
63
  "types": "./dist/testing/index.d.ts",
58
64
  "import": "./dist/testing/index.js",
@@ -92,6 +98,21 @@
92
98
  "types": "./dist/dialects/css/index.d.ts",
93
99
  "import": "./dist/dialects/css/index.js",
94
100
  "default": "./dist/dialects/css/index.js"
101
+ },
102
+ "./csharp": {
103
+ "types": "./dist/dialects/csharp/index.d.ts",
104
+ "import": "./dist/dialects/csharp/index.js",
105
+ "default": "./dist/dialects/csharp/index.js"
106
+ },
107
+ "./aspnet": {
108
+ "types": "./dist/dialects/aspnet/index.d.ts",
109
+ "import": "./dist/dialects/aspnet/index.js",
110
+ "default": "./dist/dialects/aspnet/index.js"
111
+ },
112
+ "./msbuild": {
113
+ "types": "./dist/dialects/msbuild/index.d.ts",
114
+ "import": "./dist/dialects/msbuild/index.js",
115
+ "default": "./dist/dialects/msbuild/index.js"
95
116
  }
96
117
  },
97
118
  "scripts": {
@@ -99,7 +120,8 @@
99
120
  "typecheck": "tsc --noEmit",
100
121
  "typecheck:permissive-proof": "tsc --noEmit -p tsconfig.permissive-proof.json",
101
122
  "prebuild": "rm -rf dist",
102
- "build": "tsc -p tsconfig.build.json && bun run build:codegen && bun run build:manifest",
123
+ "build": "tsc -p tsconfig.build.json && bun run build:assets && bun run build:codegen && bun run build:manifest",
124
+ "build:assets": "bun scripts/copy-dist-assets.ts",
103
125
  "build:codegen": "bun build bin/pbuilder-codegen.ts --outfile dist/bin/pbuilder-codegen.js --target node --banner \"#!/usr/bin/env node\"",
104
126
  "build:manifest": "bun scripts/generate-runner-manifest.ts",
105
127
  "regen:closure-baseline": "bun scripts/regen-closure-baseline.ts",
@@ -124,7 +146,9 @@
124
146
  "dependencies": {
125
147
  "jsonc-parser": "3.3.1",
126
148
  "postcss": "8.5.30",
149
+ "saxes": "6.0.0",
127
150
  "ts-morph": "28.0.0",
151
+ "web-tree-sitter": "0.27.2",
128
152
  "yaml": "2.9.1"
129
153
  }
130
154
  }