@clowder-ai/plugin-contract 0.1.0-beta.15 → 0.1.0-beta.17
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/codegen/generate-contract.d.ts +1 -0
- package/dist/codegen/generate-contract.d.ts.map +1 -1
- package/dist/codegen/generate-contract.js +2 -0
- package/dist/codegen/generate-contract.js.map +1 -1
- package/dist/generated/contract.generated.d.ts +157 -2
- package/dist/generated/contract.generated.d.ts.map +1 -1
- package/dist/generated/contract.generated.js.map +1 -1
- package/dist/validation/companion-bridge.d.ts +6 -0
- package/dist/validation/companion-bridge.d.ts.map +1 -0
- package/dist/validation/companion-bridge.js +36 -0
- package/dist/validation/companion-bridge.js.map +1 -0
- package/dist/validation/index.d.ts +1 -0
- package/dist/validation/index.d.ts.map +1 -1
- package/dist/validation/index.js +1 -0
- package/dist/validation/index.js.map +1 -1
- package/dist/validation/manifest.d.ts.map +1 -1
- package/dist/validation/manifest.js +3 -0
- package/dist/validation/manifest.js.map +1 -1
- package/package.json +2 -1
- package/src/schemas/companion-bridge.schema.json +783 -0
- package/src/schemas/manifest.schema.json +39 -3
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://clowder-ai.dev/schemas/manifest/v0.1",
|
|
4
4
|
"title": "Clowder AI Plugin Manifest (v0.1)",
|
|
5
|
-
"description": "Machine-readable truth source for the static plugin.yaml access protocol (§3.4/§3.5). beta.
|
|
5
|
+
"description": "Machine-readable truth source for the static plugin.yaml access protocol (§3.4/§3.5). beta.16 adds the Host-governed desktop-window contribution. Window, media and conversation authorities remain separate Host runtime decisions; the signed broker wire is unchanged.",
|
|
6
6
|
"x-clowder-capability-layers": {
|
|
7
7
|
"L0": ["plugin.config.read", "plugin.state.get", "plugin.state.set"],
|
|
8
8
|
"L1": ["messaging.send", "schedule.register", "events.publish", "messaging.appendElements"],
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"properties": {
|
|
106
106
|
"type": {
|
|
107
107
|
"type": "string",
|
|
108
|
-
"enum": ["identity", "schedule", "tool", "mcp", "skill", "limb", "webhook", "message-subscription", "service", "connector", "ui", "content-editor-provider"]
|
|
108
|
+
"enum": ["identity", "schedule", "tool", "mcp", "skill", "limb", "webhook", "message-subscription", "service", "connector", "ui", "content-editor-provider", "desktop-window"]
|
|
109
109
|
},
|
|
110
110
|
"id": { "type": "string", "minLength": 1 }
|
|
111
111
|
},
|
|
@@ -469,6 +469,41 @@
|
|
|
469
469
|
"additionalProperties": false
|
|
470
470
|
},
|
|
471
471
|
|
|
472
|
+
"DesktopWindowContribution": {
|
|
473
|
+
"type": "object",
|
|
474
|
+
"description": "Host-created desktop surface under its owning feature's windows.create grant. surface.integrity verifies only the entry HTML bytes. The Host must separately verify the complete installed package and serve a verified snapshot of all referenced assets. This declares no executable, Host origin, identity, or capture permission. The Host owns window execution, media/session admission and the isolated receive-only provider channel.",
|
|
475
|
+
"properties": {
|
|
476
|
+
"type": { "const": "desktop-window" },
|
|
477
|
+
"id": { "type": "string", "minLength": 1, "maxLength": 128 },
|
|
478
|
+
"role": { "const": "companion" },
|
|
479
|
+
"surface": {
|
|
480
|
+
"type": "object",
|
|
481
|
+
"properties": {
|
|
482
|
+
"entrypoint": { "$ref": "#/$defs/PackageRelativePath", "pattern": "\\.html$" },
|
|
483
|
+
"integrity": { "type": "string", "pattern": "^sha256-[A-Za-z0-9+/]{43}=$" }
|
|
484
|
+
},
|
|
485
|
+
"required": ["entrypoint", "integrity"],
|
|
486
|
+
"additionalProperties": false
|
|
487
|
+
},
|
|
488
|
+
"bridgeVersion": { "enum": ["1.0.0", "1.1.0"] },
|
|
489
|
+
"presentation": {
|
|
490
|
+
"type": "object",
|
|
491
|
+
"properties": {
|
|
492
|
+
"width": { "type": "integer", "minimum": 160, "maximum": 600 },
|
|
493
|
+
"height": { "type": "integer", "minimum": 160, "maximum": 1000 },
|
|
494
|
+
"transparent": { "const": true },
|
|
495
|
+
"frame": { "const": false },
|
|
496
|
+
"alwaysOnTop": { "type": "boolean" },
|
|
497
|
+
"skipTaskbar": { "type": "boolean" }
|
|
498
|
+
},
|
|
499
|
+
"required": ["width", "height", "transparent", "frame", "alwaysOnTop", "skipTaskbar"],
|
|
500
|
+
"additionalProperties": false
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
"required": ["type", "id", "role", "surface", "bridgeVersion", "presentation"],
|
|
504
|
+
"additionalProperties": false
|
|
505
|
+
},
|
|
506
|
+
|
|
472
507
|
"ContentEditorProviderContribution": {
|
|
473
508
|
"type": "object",
|
|
474
509
|
"properties": {
|
|
@@ -530,7 +565,8 @@
|
|
|
530
565
|
{ "$ref": "#/$defs/ServiceContribution" },
|
|
531
566
|
{ "$ref": "#/$defs/ConnectorContribution" },
|
|
532
567
|
{ "$ref": "#/$defs/UiContribution" },
|
|
533
|
-
{ "$ref": "#/$defs/ContentEditorProviderContribution" }
|
|
568
|
+
{ "$ref": "#/$defs/ContentEditorProviderContribution" },
|
|
569
|
+
{ "$ref": "#/$defs/DesktopWindowContribution" }
|
|
534
570
|
]
|
|
535
571
|
},
|
|
536
572
|
|