@pbuilder/sdk 0.19.0 → 0.20.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 (67) hide show
  1. package/README.md +46 -3
  2. package/dist/acl/irwire/stdio-engine-client.d.ts +1 -0
  3. package/dist/acl/irwire/stdio-engine-client.js +9 -0
  4. package/dist/bin/pbuilder-codegen.js +90 -18
  5. package/dist/bounded-contexts/authoring/application/usecases/authoring-verbs/index.d.ts +15 -0
  6. package/dist/bounded-contexts/authoring/application/usecases/authoring-verbs/index.js +17 -0
  7. package/dist/bounded-contexts/authoring/application/usecases/run-factory/context.d.ts +16 -3
  8. package/dist/bounded-contexts/authoring/application/usecases/run-factory/context.js +45 -11
  9. package/dist/bounded-contexts/authoring/domain/aggregates/session/session.d.ts +3 -1
  10. package/dist/bounded-contexts/authoring/domain/aggregates/session/session.js +10 -1
  11. package/dist/bounded-contexts/authoring/domain/ports/engine-client.d.ts +1 -0
  12. package/dist/bounded-contexts/authoring/domain/services/define-dialect.d.ts +28 -1
  13. package/dist/bounded-contexts/authoring/domain/services/define-dialect.js +27 -3
  14. package/dist/bounded-contexts/authoring/domain/services/evaluation.d.ts +29 -0
  15. package/dist/bounded-contexts/authoring/domain/services/evaluation.js +43 -0
  16. package/dist/bounded-contexts/authoring/domain/services/glob-match.d.ts +4 -0
  17. package/dist/bounded-contexts/authoring/domain/services/glob-match.js +81 -0
  18. package/dist/bounded-contexts/authoring/domain/services/schema/input-rejection.d.ts +1 -0
  19. package/dist/bounded-contexts/authoring/domain/services/schema/input-rejection.js +4 -0
  20. package/dist/bounded-contexts/authoring/domain/services/schema/schema-validate.d.ts +2 -1
  21. package/dist/bounded-contexts/authoring/domain/services/schema/schema-validate.js +6 -2
  22. package/dist/bounded-contexts/authoring/domain/valueobjects/findings.d.ts +12 -0
  23. package/dist/bounded-contexts/authoring/domain/valueobjects/findings.js +57 -0
  24. package/dist/bounded-contexts/authoring/domain/valueobjects/schema-model.d.ts +2 -0
  25. package/dist/bounded-contexts/authoring/infrastructure/in/codegen/cli.d.ts +7 -2
  26. package/dist/bounded-contexts/authoring/infrastructure/in/codegen/cli.js +28 -7
  27. package/dist/bounded-contexts/authoring/infrastructure/in/codegen/emit-type.d.ts +6 -2
  28. package/dist/bounded-contexts/authoring/infrastructure/in/codegen/emit-type.js +23 -13
  29. package/dist/bounded-contexts/authoring/infrastructure/in/codegen/project-codegen.d.ts +1 -0
  30. package/dist/bounded-contexts/authoring/infrastructure/in/codegen/project-codegen.js +5 -2
  31. package/dist/bounded-contexts/authoring/infrastructure/in/commons/index.d.ts +2 -1
  32. package/dist/bounded-contexts/authoring/infrastructure/in/commons/index.js +1 -1
  33. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/angular/index.d.ts +14 -1
  34. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/angular/index.js +15 -0
  35. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/aspnet/index.d.ts +14 -1
  36. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/aspnet/index.js +15 -0
  37. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/csharp/index.d.ts +14 -1
  38. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/csharp/index.js +15 -0
  39. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/css/index.d.ts +14 -1
  40. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/css/index.js +15 -0
  41. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/json/index.d.ts +14 -1
  42. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/json/index.js +15 -0
  43. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/msbuild/index.d.ts +14 -1
  44. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/msbuild/index.js +15 -0
  45. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/nestjs/index.d.ts +14 -1
  46. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/nestjs/index.js +15 -0
  47. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/react/index.d.ts +14 -1
  48. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/react/index.js +15 -0
  49. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/typescript/index.d.ts +14 -1
  50. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/typescript/index.js +15 -0
  51. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/yaml/index.d.ts +14 -1
  52. package/dist/bounded-contexts/authoring/infrastructure/out/dialects/yaml/index.js +15 -0
  53. package/dist/bounded-contexts/authoring/testing/contract-fake.d.ts +1 -0
  54. package/dist/bounded-contexts/authoring/testing/contract-fake.js +8 -0
  55. package/dist/bounded-contexts/authoring/testing/glob-pattern.d.ts +5 -0
  56. package/dist/bounded-contexts/authoring/testing/glob-pattern.js +20 -0
  57. package/dist/bounded-contexts/authoring/testing/harness/index.d.ts +8 -0
  58. package/dist/bounded-contexts/authoring/testing/harness/index.js +12 -1
  59. package/dist/bounded-contexts/authoring/testing/run-vehicle.d.ts +1 -0
  60. package/dist/bounded-contexts/authoring/testing/run-vehicle.js +4 -0
  61. package/dist/bounded-contexts/runner-hosting/infrastructure/in/bootstrap-bridge.d.ts +3 -0
  62. package/dist/bounded-contexts/runner-hosting/infrastructure/in/bootstrap-bridge.js +4 -0
  63. package/dist/bounded-contexts/runner-hosting/infrastructure/in/runner.js +15 -3
  64. package/dist/runner-manifest.json +33 -9
  65. package/dist/shared-kernel/wire-protocol.d.ts +1 -1
  66. package/dist/shared-kernel/wire-protocol.js +1 -1
  67. package/package.json +1 -1
@@ -2,7 +2,7 @@
2
2
  "manifestVersion": 1,
3
3
  "algorithm": "sha256",
4
4
  "entry": "dist/bin/pbuilder-runner.js",
5
- "packageVersion": "0.19.0",
5
+ "packageVersion": "0.20.0",
6
6
  "files": [
7
7
  {
8
8
  "path": "dist/acl/irwire/frame-reader.js",
@@ -10,7 +10,7 @@
10
10
  },
11
11
  {
12
12
  "path": "dist/acl/irwire/stdio-engine-client.js",
13
- "sha256": "a7b8f09a1c2c63c90d605d28f4376a2772504bb7b89b8e2ea46ba5b103ce63fe"
13
+ "sha256": "0708fe083ad447fe69fa97c8512072c4fe957f34c073919adc2337c7687d60a9"
14
14
  },
15
15
  {
16
16
  "path": "dist/bin/pbuilder-runner.js",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  {
20
20
  "path": "dist/bounded-contexts/authoring/application/usecases/run-factory/context.js",
21
- "sha256": "a2521108c576a7b3dfcda1bd05cdd6547f01a53c51b930b3d891d7d36f0ecf07"
21
+ "sha256": "0be3b6041f3588e8ee9a37d224fa5009e4a1dc3a11239b0a7f257b229dc2d230"
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": "d766298100d79ee9d3f2486cb36a951d0950a507b87564a48d3f9f17e4624be1"
29
+ "sha256": "93605d869fcde9292acc77370b3a5a0df52ff84f1ce9b7023f0a44a8a1b19c39"
30
30
  },
31
31
  {
32
32
  "path": "dist/bounded-contexts/authoring/domain/ports/emit-rejection.js",
@@ -40,13 +40,21 @@
40
40
  "path": "dist/bounded-contexts/authoring/domain/services/directive-factory.js",
41
41
  "sha256": "e3718b19c6609139f36d562daa44a4727d0d6d279a90736aa24722ab5df93d92"
42
42
  },
43
+ {
44
+ "path": "dist/bounded-contexts/authoring/domain/services/evaluation.js",
45
+ "sha256": "c309775ce55a3858f7804835154a15d17f38736db3abf91ed2c7b5563cbc2b8a"
46
+ },
47
+ {
48
+ "path": "dist/bounded-contexts/authoring/domain/services/glob-match.js",
49
+ "sha256": "1518f8ba27114e34a7d0103015934ec98acf09718dc29a59655bbbef71148950"
50
+ },
43
51
  {
44
52
  "path": "dist/bounded-contexts/authoring/domain/services/run-context.js",
45
53
  "sha256": "4c45aa26aa81b2ec59a6b09dbaf14da7be6d034bfc46e2b35aba2bfe0e641a49"
46
54
  },
47
55
  {
48
56
  "path": "dist/bounded-contexts/authoring/domain/services/schema/input-rejection.js",
49
- "sha256": "31aacefce17622b2b6fd22af8834311c69e6a8c95afdf079bcee04c2a4d06a28"
57
+ "sha256": "fb7789824d3d387b796ea303f8d8dde9e9ae3aad2cfcb7226333ecc51e2fe898"
50
58
  },
51
59
  {
52
60
  "path": "dist/bounded-contexts/authoring/domain/services/schema/schema-files.js",
@@ -62,12 +70,16 @@
62
70
  },
63
71
  {
64
72
  "path": "dist/bounded-contexts/authoring/domain/services/schema/schema-validate.js",
65
- "sha256": "ba0da0e1feec8c74a14992ad720e44b53088e5e2c9866e31168ec9dcd492fd6d"
73
+ "sha256": "bfafc4c94a9208b51621db29ad97fbdb8b48cddeabfe60ca78bf77c07450674d"
66
74
  },
67
75
  {
68
76
  "path": "dist/bounded-contexts/authoring/domain/valueobjects/authoring-error.js",
69
77
  "sha256": "12bcb05ddffaade8ba3cadea33c30d469909e9c034415554456a1e4a765bfd19"
70
78
  },
79
+ {
80
+ "path": "dist/bounded-contexts/authoring/domain/valueobjects/findings.js",
81
+ "sha256": "ddf9fa8688938ef11066de0e45916c2fa8d159fcd261b5d6641f74105730bc5f"
82
+ },
71
83
  {
72
84
  "path": "dist/bounded-contexts/authoring/domain/valueobjects/schema-model.js",
73
85
  "sha256": "6d015200921c8a72ef27941d287d460275bc944620ee9a7c140ad73354bbfc82"
@@ -94,7 +106,7 @@
94
106
  },
95
107
  {
96
108
  "path": "dist/bounded-contexts/runner-hosting/infrastructure/in/runner.js",
97
- "sha256": "78aee0804a9fe9b110821a41dfb171dab635708c6220ad5aba986e167109ed50"
109
+ "sha256": "c2eceb3d4373d03b4782276fd9bef2a49f7048a52671f8a9225adac28309bf78"
98
110
  },
99
111
  {
100
112
  "path": "dist/bounded-contexts/runner-hosting/infrastructure/in/single-instance-probe.js",
@@ -118,11 +130,23 @@
118
130
  },
119
131
  {
120
132
  "path": "dist/shared-kernel/wire-protocol.js",
121
- "sha256": "99f9965f655042b8724f04de798894bad7f2b4d517f3f9c2f61acc5bfe4be457"
133
+ "sha256": "4668d233d209ad77d5205ffc66b19e79f680b5d9856e8a5f51e563a85211ebd6"
122
134
  },
123
135
  {
124
136
  "path": "package.json",
125
- "sha256": "19ccb4ace24caa2a75a77a044363d75601cdd64465a66e89601920a45d1bfc88"
137
+ "sha256": "14a806989d9b9cb3af2dc9bf2cdd1a3e4ddd099d26ac7c23ec2bcbefd227666c"
126
138
  }
139
+ ],
140
+ "dialects": [
141
+ "angular",
142
+ "aspnet",
143
+ "csharp",
144
+ "css",
145
+ "json",
146
+ "msbuild",
147
+ "nestjs",
148
+ "react",
149
+ "typescript",
150
+ "yaml"
127
151
  ]
128
152
  }
@@ -1,6 +1,6 @@
1
1
  export declare const WIRE_PROTOCOL_VERSION = 1;
2
2
  export declare const BRIDGE_CONTRACT_VERSION = 1;
3
- export declare const REVERSE_CALLBACK_METHODS: readonly ["tree.read", "ir.emit", "ir.commit", "ir.discard"];
3
+ export declare const REVERSE_CALLBACK_METHODS: readonly ["tree.read", "tree.list", "ir.emit", "ir.commit", "ir.discard"];
4
4
  export type ReverseMethod = (typeof REVERSE_CALLBACK_METHODS)[number];
5
5
  export interface ReadyGreeting {
6
6
  method: "ready";
@@ -2,7 +2,7 @@
2
2
  // guards (WPS-02/03/05/09). design.md § 4.3 Data Model gives these signatures verbatim.
3
3
  export const WIRE_PROTOCOL_VERSION = 1; // ready.protocolVersion (transport) — DISTINCT from Batch.protocolVersion (IR)
4
4
  export const BRIDGE_CONTRACT_VERSION = 1; // in-process JS bridge; independent of the wire (BRB-01)
5
- export const REVERSE_CALLBACK_METHODS = ["tree.read", "ir.emit", "ir.commit", "ir.discard"];
5
+ export const REVERSE_CALLBACK_METHODS = ["tree.read", "tree.list", "ir.emit", "ir.commit", "ir.discard"];
6
6
  // REQ-WPS-02.3: structural validity is method === "ready" plus an integer protocolVersion —
7
7
  // no other shape (missing field, wrong type, non-integer version) qualifies.
8
8
  export function isStructurallyValidGreeting(value) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pbuilder/sdk",
3
- "version": "0.19.0",
3
+ "version": "0.20.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",