@cynodia/axiom-core 0.8.1-alpha.1 → 0.8.2-alpha.1
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/dist/graph.js +1 -1
- package/dist/validate-authority.js +4 -1
- package/package.json +1 -1
package/dist/graph.js
CHANGED
|
@@ -23,7 +23,7 @@ export class ApplicationGraph {
|
|
|
23
23
|
/** Bumped by every change, so the derived edge index can never serve stale data. */
|
|
24
24
|
revision = 0;
|
|
25
25
|
semanticIndex;
|
|
26
|
-
constructor(id, name, version = '0.8.
|
|
26
|
+
constructor(id, name, version = '0.8.2') {
|
|
27
27
|
this.data = { id, name, version, nodes: {}, edges: {} };
|
|
28
28
|
}
|
|
29
29
|
get id() {
|
|
@@ -183,7 +183,10 @@ export function validateAuthority(nodes, principalEntityId, triggerRuntime = ALL
|
|
|
183
183
|
if (authority === 'client' && !triggerRuntime.supportedTriggerKinds.includes(node.when.kind)) {
|
|
184
184
|
errors.push({
|
|
185
185
|
code: VALIDATION_CODES.clientTriggerUnsupported,
|
|
186
|
-
message: `Trigger ${node.name ?? node.id} is a client-authority '${node.when.kind}' trigger, which the
|
|
186
|
+
message: `Trigger ${node.name ?? node.id} is a client-authority '${node.when.kind}' trigger, which the ` +
|
|
187
|
+
`${triggerRuntime.target} trigger runtime does not execute. Move ${target.name ?? target.id} to ` +
|
|
188
|
+
`server-authoritative execution (so the trigger becomes server-authority), or compile for a ` +
|
|
189
|
+
`trigger runtime that publishes '${node.when.kind}' in its supportedTriggerKinds.`,
|
|
187
190
|
nodeId: node.id,
|
|
188
191
|
details: { actionId: target.id, kind: node.when.kind, target: triggerRuntime.target },
|
|
189
192
|
});
|