@webpieces/rules-config 0.4.862 → 0.4.863

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webpieces/rules-config",
3
- "version": "0.4.862",
3
+ "version": "0.4.863",
4
4
  "description": "Shared webpieces.config.json loader. Single source of truth for validation rule configuration consumed by @webpieces/ai-hook-rules, @webpieces/code-rules, and @webpieces/nx-webpieces-rules.",
5
5
  "type": "commonjs",
6
6
  "main": "./src/index.js",
@@ -19,9 +19,9 @@
19
19
  "inversify": "7.10.4",
20
20
  "reflect-metadata": "0.2.2",
21
21
  "minimatch": "10.0.1",
22
- "@webpieces/tooling-common": "0.4.862",
23
- "@webpieces/repo-workflow-core": "0.4.862",
24
- "@webpieces/rules-sdk": "0.4.862"
22
+ "@webpieces/tooling-common": "0.4.863",
23
+ "@webpieces/repo-workflow-core": "0.4.863",
24
+ "@webpieces/rules-sdk": "0.4.863"
25
25
  },
26
26
  "author": "Dean Hiller",
27
27
  "license": "Apache-2.0",
@@ -34,7 +34,7 @@
34
34
  "access": "public"
35
35
  },
36
36
  "devDependencies": {
37
- "@webpieces/tooling-testkit": "0.4.862"
37
+ "@webpieces/tooling-testkit": "0.4.863"
38
38
  },
39
39
  "types": "./src/index.d.ts",
40
40
  "bin": {
@@ -139,3 +139,29 @@ Instead of importing, receive the dependency as a constructor or method paramete
139
139
  - Every dependency you add today is technical debt for tomorrow
140
140
  - The best dependency is the one you don't need
141
141
  - When in doubt, refactor rather than add dependencies
142
+
143
+ ## Canonical runtime client migration
144
+
145
+ For every owner tagged `webpieces` or `webpieces-lib`, move topology to `src/wiring.ts`
146
+ and replace supported hand-written singleton/provider factories with the public helpers:
147
+
148
+ ```typescript
149
+ // @webpieces/http-client-node (filters remain the optional fourth argument)
150
+ const clients = new RuntimeClients(options);
151
+ clients.bindRpc(TOKEN, SaveApi, rpcTarget(SaveApi, 'save'), filters);
152
+
153
+ // @webpieces/cloudtasks-client (no filter argument is supported)
154
+ new RuntimeTaskClients(options).bindPubSub(TASK_TOKEN, TaskApi, 'worker');
155
+
156
+ // @webpieces/http-client-browser (no filter argument is supported)
157
+ provideRpcClient(BROWSER_TOKEN, SaveApi, rpcTarget(SaveApi, 'save'));
158
+ ```
159
+
160
+ Architecture validation checks ALL CODE in every participating owner, even unchanged projects
161
+ outside the current diff. Canonical `wiring.ts` is checked too. Resolve every reported occurrence;
162
+ moving raw factories to wiring alone does not satisfy the grammar. Preserve each existing token,
163
+ API, deployment and supported filter list. Registration remains lazy and singleton; test overrides
164
+ must still avoid resolving the production factory. Framework implementations, low-level calls,
165
+ transient registrations, custom config options and provider filters without a helper equivalent
166
+ are outside this helper-equivalence check. Review the resulting runtime declaration candidates
167
+ and qualified API/deployment relationships before updating approvals.