@openwop/openwop-conformance 1.54.0 → 1.57.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.
- package/CHANGELOG.md +16 -0
- package/README.md +2 -2
- package/coverage.md +2 -0
- package/package.json +1 -1
- package/schemas/agent-manifest.schema.json +23 -1
- package/schemas/capabilities.schema.json +62 -3
- package/schemas/connection-pack-manifest.schema.json +5 -0
- package/schemas/frontend-plugin-manifest.schema.json +9 -3
- package/schemas/run-snapshot.schema.json +6 -1
- package/schemas/workflow-chain-pack-manifest.schema.json +85 -6
- package/schemas/workflow-definition.schema.json +4 -3
- package/src/lib/anonymousActor.ts +99 -0
- package/src/lib/workflow-chain-expansion.ts +342 -0
- package/src/scenarios/agent-manifest-role-profile.test.ts +116 -0
- package/src/scenarios/anonymous-actor-audit-opaque.test.ts +71 -0
- package/src/scenarios/anonymous-actor-default-deny.test.ts +87 -0
- package/src/scenarios/anonymous-actor-egress-guarded.test.ts +54 -0
- package/src/scenarios/anonymous-actor-no-secret-reach.test.ts +78 -0
- package/src/scenarios/anonymous-actor-shape.test.ts +173 -0
- package/src/scenarios/anonymous-actor-write-gated.test.ts +83 -0
- package/src/scenarios/chain-produced-var-roundtrip.test.ts +152 -0
- package/src/scenarios/chain-subchain-cycle-rejected.test.ts +141 -0
- package/src/scenarios/chain-subchain-fanout.test.ts +139 -0
- package/src/scenarios/chain-subchain-sibling.test.ts +147 -0
- package/src/scenarios/chain-subchain-unsupported-refused.test.ts +66 -0
- package/src/scenarios/connection-pack-manifest-valid.test.ts +33 -0
- package/src/scenarios/edge-condition-truthy-falsy.test.ts +104 -0
- package/src/scenarios/frontend-plugin-packs.test.ts +24 -0
|
@@ -105,6 +105,30 @@ describe('frontend-plugin manifest: schema layer (always-on, server-free)', () =
|
|
|
105
105
|
const m = { ...validManifest(), uiPlugins: [] };
|
|
106
106
|
expect(validate(m), 'a frontend-plugin pack MUST declare at least one uiPlugins[] entry').toBe(false);
|
|
107
107
|
});
|
|
108
|
+
|
|
109
|
+
it('a canvas-preview entry with canvasTypes + host.announce validates (RFC 0130)', () => {
|
|
110
|
+
const m = validManifest();
|
|
111
|
+
(m.uiPlugins as Array<Record<string, unknown>>)[0] = {
|
|
112
|
+
pluginId: 'gantt-preview',
|
|
113
|
+
surface: 'canvas-preview',
|
|
114
|
+
canvasTypes: ['canvas.gantt'],
|
|
115
|
+
entry: 'ui/preview.html',
|
|
116
|
+
hostApi: ['artifact.read', 'host.announce'],
|
|
117
|
+
};
|
|
118
|
+
expect(
|
|
119
|
+
validate(m),
|
|
120
|
+
`frontend-plugin-packs.md §The pack (RFC 0130) — a canvas-preview entry MUST validate. Errors: ${JSON.stringify(validate.errors)}`,
|
|
121
|
+
).toBe(true);
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
it('a surface outside the closed set is still rejected (RFC 0130 keeps the enum closed)', () => {
|
|
125
|
+
const m = validManifest();
|
|
126
|
+
(m.uiPlugins as Array<Record<string, unknown>>)[0].surface = 'omni-panel';
|
|
127
|
+
expect(
|
|
128
|
+
validate(m),
|
|
129
|
+
'frontend-plugin-packs.md §The pack — the surface enum stays closed; an unknown surface MUST NOT validate',
|
|
130
|
+
).toBe(false);
|
|
131
|
+
});
|
|
108
132
|
});
|
|
109
133
|
|
|
110
134
|
describe('ui-plugin/1 message: schema layer (always-on, server-free)', () => {
|