@clowder-ai/plugin-contract 0.1.0-beta.2 → 0.1.0-beta.21
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 +10 -0
- package/dist/codegen/generate-contract.d.ts.map +1 -1
- package/dist/codegen/generate-contract.js +201 -19
- package/dist/codegen/generate-contract.js.map +1 -1
- package/dist/conformance/fixtures.d.ts +11 -0
- package/dist/conformance/fixtures.d.ts.map +1 -0
- package/dist/conformance/fixtures.js +9 -0
- package/dist/conformance/fixtures.js.map +1 -0
- package/dist/conformance/index.d.ts +4 -0
- package/dist/conformance/index.d.ts.map +1 -1
- package/dist/conformance/index.js +3 -0
- package/dist/conformance/index.js.map +1 -1
- package/dist/conformance/messaging-behavior-fixture.d.ts +12 -0
- package/dist/conformance/messaging-behavior-fixture.d.ts.map +1 -0
- package/dist/conformance/messaging-behavior-fixture.js +30 -0
- package/dist/conformance/messaging-behavior-fixture.js.map +1 -0
- package/dist/conformance/runner.d.ts.map +1 -1
- package/dist/conformance/runner.js +22 -2
- package/dist/conformance/runner.js.map +1 -1
- package/dist/conformance/stdio-harness/child-process-harness.d.ts +65 -0
- package/dist/conformance/stdio-harness/child-process-harness.d.ts.map +1 -0
- package/dist/conformance/stdio-harness/child-process-harness.js +296 -0
- package/dist/conformance/stdio-harness/child-process-harness.js.map +1 -0
- package/dist/conformance/stdio-harness/dual-transport-oracle.d.ts +26 -0
- package/dist/conformance/stdio-harness/dual-transport-oracle.d.ts.map +1 -0
- package/dist/conformance/stdio-harness/dual-transport-oracle.js +32 -0
- package/dist/conformance/stdio-harness/dual-transport-oracle.js.map +1 -0
- package/dist/conformance/stdio-harness/harness-process-spawn.d.ts +27 -0
- package/dist/conformance/stdio-harness/harness-process-spawn.d.ts.map +1 -0
- package/dist/conformance/stdio-harness/harness-process-spawn.js +43 -0
- package/dist/conformance/stdio-harness/harness-process-spawn.js.map +1 -0
- package/dist/conformance/stdio-harness/index.d.ts +5 -0
- package/dist/conformance/stdio-harness/index.d.ts.map +1 -0
- package/dist/conformance/stdio-harness/index.js +4 -0
- package/dist/conformance/stdio-harness/index.js.map +1 -0
- package/dist/conformance/stdio-harness/ndjson-frame.d.ts +31 -0
- package/dist/conformance/stdio-harness/ndjson-frame.d.ts.map +1 -0
- package/dist/conformance/stdio-harness/ndjson-frame.js +125 -0
- package/dist/conformance/stdio-harness/ndjson-frame.js.map +1 -0
- package/dist/conformance/stdio-harness/node-process-tree-runtime.d.ts +15 -0
- package/dist/conformance/stdio-harness/node-process-tree-runtime.d.ts.map +1 -0
- package/dist/conformance/stdio-harness/node-process-tree-runtime.js +78 -0
- package/dist/conformance/stdio-harness/node-process-tree-runtime.js.map +1 -0
- package/dist/conformance/stdio-harness/process-tree-controller.d.ts +51 -0
- package/dist/conformance/stdio-harness/process-tree-controller.d.ts.map +1 -0
- package/dist/conformance/stdio-harness/process-tree-controller.js +162 -0
- package/dist/conformance/stdio-harness/process-tree-controller.js.map +1 -0
- package/dist/conformance/stdio-harness/windows-sentinel.d.ts +15 -0
- package/dist/conformance/stdio-harness/windows-sentinel.d.ts.map +1 -0
- package/dist/conformance/stdio-harness/windows-sentinel.js +160 -0
- package/dist/conformance/stdio-harness/windows-sentinel.js.map +1 -0
- package/dist/conformance/stdio-harness/wire-shape.d.ts +18 -0
- package/dist/conformance/stdio-harness/wire-shape.d.ts.map +1 -0
- package/dist/conformance/stdio-harness/wire-shape.js +2 -0
- package/dist/conformance/stdio-harness/wire-shape.js.map +1 -0
- package/dist/docx-materialization.d.ts +8 -0
- package/dist/docx-materialization.d.ts.map +1 -0
- package/dist/docx-materialization.js +19 -0
- package/dist/docx-materialization.js.map +1 -0
- package/dist/generated/contract.generated.d.ts +984 -12
- package/dist/generated/contract.generated.d.ts.map +1 -1
- package/dist/generated/contract.generated.js +9 -1
- package/dist/generated/contract.generated.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/validation/catalog.d.ts +21 -0
- package/dist/validation/catalog.d.ts.map +1 -0
- package/dist/validation/catalog.js +140 -0
- package/dist/validation/catalog.js.map +1 -0
- 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 +70 -0
- package/dist/validation/companion-bridge.js.map +1 -0
- package/dist/validation/docx-materialization.d.ts +6 -0
- package/dist/validation/docx-materialization.d.ts.map +1 -0
- package/dist/validation/docx-materialization.js +36 -0
- package/dist/validation/docx-materialization.js.map +1 -0
- package/dist/validation/index.d.ts +6 -0
- package/dist/validation/index.d.ts.map +1 -1
- package/dist/validation/index.js +6 -0
- package/dist/validation/index.js.map +1 -1
- package/dist/validation/manifest.d.ts +23 -0
- package/dist/validation/manifest.d.ts.map +1 -0
- package/dist/validation/manifest.js +160 -0
- package/dist/validation/manifest.js.map +1 -0
- package/dist/validation/messaging-semantic.d.ts.map +1 -1
- package/dist/validation/messaging-semantic.js +49 -0
- package/dist/validation/messaging-semantic.js.map +1 -1
- package/dist/validation/messaging-wire.d.ts +38 -0
- package/dist/validation/messaging-wire.d.ts.map +1 -0
- package/dist/validation/messaging-wire.js +164 -0
- package/dist/validation/messaging-wire.js.map +1 -0
- package/dist/validation/signals.d.ts +26 -0
- package/dist/validation/signals.d.ts.map +1 -0
- package/dist/validation/signals.js +206 -0
- package/dist/validation/signals.js.map +1 -0
- package/dist/wire/constants.d.ts +36 -0
- package/dist/wire/constants.d.ts.map +1 -0
- package/dist/wire/constants.js +36 -0
- package/dist/wire/constants.js.map +1 -0
- package/dist/wire/disposition-fixtures.d.ts +118 -0
- package/dist/wire/disposition-fixtures.d.ts.map +1 -0
- package/dist/wire/disposition-fixtures.js +1881 -0
- package/dist/wire/disposition-fixtures.js.map +1 -0
- package/dist/wire/disposition.d.ts +102 -0
- package/dist/wire/disposition.d.ts.map +1 -0
- package/dist/wire/disposition.js +217 -0
- package/dist/wire/disposition.js.map +1 -0
- package/dist/wire/envelope.d.ts +253 -0
- package/dist/wire/envelope.d.ts.map +1 -0
- package/dist/wire/envelope.js +19 -0
- package/dist/wire/envelope.js.map +1 -0
- package/dist/wire/errors.d.ts +222 -0
- package/dist/wire/errors.d.ts.map +1 -0
- package/dist/wire/errors.js +153 -0
- package/dist/wire/errors.js.map +1 -0
- package/dist/wire/grants.d.ts +57 -0
- package/dist/wire/grants.d.ts.map +1 -0
- package/dist/wire/grants.js +59 -0
- package/dist/wire/grants.js.map +1 -0
- package/dist/wire/handshake-byte-bounds.d.ts +69 -0
- package/dist/wire/handshake-byte-bounds.d.ts.map +1 -0
- package/dist/wire/handshake-byte-bounds.js +173 -0
- package/dist/wire/handshake-byte-bounds.js.map +1 -0
- package/dist/wire/handshake.d.ts +146 -0
- package/dist/wire/handshake.d.ts.map +1 -0
- package/dist/wire/handshake.js +189 -0
- package/dist/wire/handshake.js.map +1 -0
- package/dist/wire/index.d.ts +37 -0
- package/dist/wire/index.d.ts.map +1 -0
- package/dist/wire/index.js +61 -0
- package/dist/wire/index.js.map +1 -0
- package/dist/wire/lifecycle-byte-bounds.d.ts +55 -0
- package/dist/wire/lifecycle-byte-bounds.d.ts.map +1 -0
- package/dist/wire/lifecycle-byte-bounds.js +209 -0
- package/dist/wire/lifecycle-byte-bounds.js.map +1 -0
- package/dist/wire/messaging-byte-bounds.d.ts +61 -0
- package/dist/wire/messaging-byte-bounds.d.ts.map +1 -0
- package/dist/wire/messaging-byte-bounds.js +459 -0
- package/dist/wire/messaging-byte-bounds.js.map +1 -0
- package/dist/wire/registry.d.ts +294 -0
- package/dist/wire/registry.d.ts.map +1 -0
- package/dist/wire/registry.js +256 -0
- package/dist/wire/registry.js.map +1 -0
- package/dist/wire/request-id.d.ts +34 -0
- package/dist/wire/request-id.d.ts.map +1 -0
- package/dist/wire/request-id.js +40 -0
- package/dist/wire/request-id.js.map +1 -0
- package/dist/wire/row-shapes.d.ts +217 -0
- package/dist/wire/row-shapes.d.ts.map +1 -0
- package/dist/wire/row-shapes.js +75 -0
- package/dist/wire/row-shapes.js.map +1 -0
- package/dist/wire/signal-byte-bounds.d.ts +97 -0
- package/dist/wire/signal-byte-bounds.d.ts.map +1 -0
- package/dist/wire/signal-byte-bounds.js +229 -0
- package/dist/wire/signal-byte-bounds.js.map +1 -0
- package/dist/wire/wire-uint53.d.ts +26 -0
- package/dist/wire/wire-uint53.d.ts.map +1 -0
- package/dist/wire/wire-uint53.js +32 -0
- package/dist/wire/wire-uint53.js.map +1 -0
- package/fixtures/behavior/messaging/adversarial-invariants.json +85 -0
- package/fixtures/manifest/invalid/duplicate-signal-type.json +33 -0
- package/fixtures/manifest/invalid/icon-package-escape.json +22 -0
- package/fixtures/manifest/valid/localized-product-metadata.json +27 -0
- package/fixtures/messaging/valid/subscription-delivery.json +1 -1
- package/fixtures/signals/invalid/destination-injection.json +15 -0
- package/fixtures/signals/invalid/dynamic-schema-url.json +10 -0
- package/fixtures/signals/invalid/forbidden-raw-privacy.json +10 -0
- package/fixtures/signals/invalid/non-utc-occurred-at.json +12 -0
- package/fixtures/signals/valid/feishu-meeting-artifact.json +18 -0
- package/fixtures/signals/valid/remote-service-declaration.json +10 -0
- package/package.json +19 -6
- package/src/schemas/behavior-fixture.schema.json +262 -2
- package/src/schemas/catalog.schema.json +91 -0
- package/src/schemas/companion-bridge.schema.json +1011 -0
- package/src/schemas/docx-materialization.schema.json +302 -0
- package/src/schemas/manifest.schema.json +490 -4
- package/src/schemas/messaging.schema.json +209 -32
- package/src/schemas/physical-limb.schema.json +319 -0
- package/src/schemas/plugin-metadata.schema.json +62 -0
- package/src/schemas/signal.schema.json +129 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://clowder-ai.dev/schemas/plugin-metadata/v1",
|
|
4
|
+
"title": "Clowder AI Plugin Product Metadata (v1)",
|
|
5
|
+
"description": "Manifest-owned static product metadata projected into the repository catalog for Agent, Console, and Marketplace discovery.",
|
|
6
|
+
"$defs": {
|
|
7
|
+
"LocalizedDescriptionObject": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"default": { "type": "string", "minLength": 1, "maxLength": 4096 },
|
|
11
|
+
"translations": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"propertyNames": {
|
|
14
|
+
"pattern": "^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$"
|
|
15
|
+
},
|
|
16
|
+
"additionalProperties": { "type": "string", "minLength": 1, "maxLength": 4096 },
|
|
17
|
+
"minProperties": 1,
|
|
18
|
+
"maxProperties": 32
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"required": ["default", "translations"],
|
|
22
|
+
"additionalProperties": false
|
|
23
|
+
},
|
|
24
|
+
"LocalizedDescription": {
|
|
25
|
+
"oneOf": [
|
|
26
|
+
{ "type": "string", "minLength": 1, "maxLength": 4096 },
|
|
27
|
+
{ "$ref": "#/$defs/LocalizedDescriptionObject" }
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"PackageAssetPath": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"minLength": 1,
|
|
33
|
+
"maxLength": 256,
|
|
34
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*(/[A-Za-z0-9][A-Za-z0-9._-]*)*$"
|
|
35
|
+
},
|
|
36
|
+
"PackageIcon": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"properties": {
|
|
39
|
+
"type": { "type": "string", "enum": ["svg", "png"] },
|
|
40
|
+
"src": { "$ref": "#/$defs/PackageAssetPath" }
|
|
41
|
+
},
|
|
42
|
+
"required": ["type", "src"],
|
|
43
|
+
"additionalProperties": false,
|
|
44
|
+
"allOf": [
|
|
45
|
+
{
|
|
46
|
+
"if": { "properties": { "type": { "const": "svg" } }, "required": ["type"] },
|
|
47
|
+
"then": { "properties": { "src": { "pattern": "\\.svg$" } } }
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"if": { "properties": { "type": { "const": "png" } }, "required": ["type"] },
|
|
51
|
+
"then": { "properties": { "src": { "pattern": "\\.png$" } } }
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
"PluginIcon": {
|
|
56
|
+
"oneOf": [
|
|
57
|
+
{ "const": "github" },
|
|
58
|
+
{ "$ref": "#/$defs/PackageIcon" }
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://clowder-ai.dev/schemas/signals/v0.2",
|
|
4
|
+
"title": "Clowder AI Signal Ingress Contract (C-2)",
|
|
5
|
+
"description": "Declared external signals and the closed events.publish wire payload. Producer identity, provenance, grants, routing, and liveness are Host-bound and intentionally absent from plugin input.",
|
|
6
|
+
"x-clowder-payload-max-encoded-bytes": 65536,
|
|
7
|
+
"x-clowder-forbidden-privacy-classes": ["av-raw", "input-raw"],
|
|
8
|
+
"x-clowder-forbidden-source-classes": ["av-capture", "input-hardware"],
|
|
9
|
+
"$defs": {
|
|
10
|
+
"SignalType": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"minLength": 3,
|
|
13
|
+
"maxLength": 128,
|
|
14
|
+
"pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_-]*)+$"
|
|
15
|
+
},
|
|
16
|
+
"SignalSchemaRef": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "Package-local schema applied to the {payload, source} signal content at publish admission.",
|
|
19
|
+
"minLength": 21,
|
|
20
|
+
"maxLength": 256,
|
|
21
|
+
"pattern": "^schemas/([A-Za-z0-9][A-Za-z0-9._-]*/)*[A-Za-z0-9][A-Za-z0-9._-]*\\.schema\\.json$"
|
|
22
|
+
},
|
|
23
|
+
"SignalEpistemicStatus": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"enum": ["observation", "inference"]
|
|
26
|
+
},
|
|
27
|
+
"SignalPrivacyClass": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"enum": ["behavioral", "content-adjacent", "content", "av-raw", "input-raw"]
|
|
30
|
+
},
|
|
31
|
+
"AdmissibleSignalPrivacyClass": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"enum": ["behavioral", "content-adjacent", "content"]
|
|
34
|
+
},
|
|
35
|
+
"SignalSourceClass": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"enum": ["os-metadata", "accessibility-api", "remote-service", "av-capture", "input-hardware"]
|
|
38
|
+
},
|
|
39
|
+
"AdmissibleSignalSourceClass": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"enum": ["os-metadata", "accessibility-api", "remote-service"]
|
|
42
|
+
},
|
|
43
|
+
"SignalDeclaration": {
|
|
44
|
+
"type": "object",
|
|
45
|
+
"properties": {
|
|
46
|
+
"type": { "$ref": "#/$defs/SignalType" },
|
|
47
|
+
"schemaRef": { "$ref": "#/$defs/SignalSchemaRef" },
|
|
48
|
+
"epistemicStatus": { "$ref": "#/$defs/SignalEpistemicStatus" },
|
|
49
|
+
"privacyClass": { "$ref": "#/$defs/AdmissibleSignalPrivacyClass" },
|
|
50
|
+
"sourceClass": { "$ref": "#/$defs/AdmissibleSignalSourceClass" }
|
|
51
|
+
},
|
|
52
|
+
"required": ["type", "schemaRef", "epistemicStatus", "privacyClass", "sourceClass"],
|
|
53
|
+
"additionalProperties": false
|
|
54
|
+
},
|
|
55
|
+
"SignalContribution": {
|
|
56
|
+
"type": "object",
|
|
57
|
+
"properties": {
|
|
58
|
+
"provides": {
|
|
59
|
+
"type": "array",
|
|
60
|
+
"items": { "$ref": "#/$defs/SignalDeclaration" },
|
|
61
|
+
"minItems": 1,
|
|
62
|
+
"maxItems": 64,
|
|
63
|
+
"uniqueItems": true
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"required": ["provides"],
|
|
67
|
+
"additionalProperties": false
|
|
68
|
+
},
|
|
69
|
+
"SignalEventId": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"minLength": 1,
|
|
72
|
+
"maxLength": 128,
|
|
73
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$"
|
|
74
|
+
},
|
|
75
|
+
"SignalIdempotencyKey": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"minLength": 1,
|
|
78
|
+
"maxLength": 256,
|
|
79
|
+
"pattern": "^[^\\u0000-\\u001F\\u007F\\uD800-\\uDFFF]+$"
|
|
80
|
+
},
|
|
81
|
+
"OpaqueSourceHandle": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"minLength": 1,
|
|
84
|
+
"maxLength": 512,
|
|
85
|
+
"pattern": "^[^\\u0000-\\u001F\\u007F\\uD800-\\uDFFF]+$"
|
|
86
|
+
},
|
|
87
|
+
"SignalSourceRef": {
|
|
88
|
+
"type": "object",
|
|
89
|
+
"properties": {
|
|
90
|
+
"handle": { "$ref": "#/$defs/OpaqueSourceHandle" }
|
|
91
|
+
},
|
|
92
|
+
"required": ["handle"],
|
|
93
|
+
"additionalProperties": false
|
|
94
|
+
},
|
|
95
|
+
"EventsPublishInput": {
|
|
96
|
+
"type": "object",
|
|
97
|
+
"properties": {
|
|
98
|
+
"signalType": { "$ref": "#/$defs/SignalType" },
|
|
99
|
+
"eventId": { "$ref": "#/$defs/SignalEventId" },
|
|
100
|
+
"idempotencyKey": { "$ref": "#/$defs/SignalIdempotencyKey" },
|
|
101
|
+
"occurredAt": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"format": "date-time",
|
|
104
|
+
"minLength": 20,
|
|
105
|
+
"maxLength": 30,
|
|
106
|
+
"pattern": "Z$"
|
|
107
|
+
},
|
|
108
|
+
"payload": { "type": "object", "additionalProperties": true },
|
|
109
|
+
"source": { "$ref": "#/$defs/SignalSourceRef" }
|
|
110
|
+
},
|
|
111
|
+
"required": ["signalType", "eventId", "idempotencyKey", "occurredAt", "payload", "source"],
|
|
112
|
+
"additionalProperties": false
|
|
113
|
+
},
|
|
114
|
+
"EventsPublishDisposition": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"enum": ["accepted", "duplicate"]
|
|
117
|
+
},
|
|
118
|
+
"EventsPublishResult": {
|
|
119
|
+
"type": "object",
|
|
120
|
+
"properties": {
|
|
121
|
+
"publicationId": { "$ref": "#/$defs/SignalEventId" },
|
|
122
|
+
"disposition": { "$ref": "#/$defs/EventsPublishDisposition" }
|
|
123
|
+
},
|
|
124
|
+
"required": ["publicationId", "disposition"],
|
|
125
|
+
"additionalProperties": false
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"$ref": "#/$defs/EventsPublishInput"
|
|
129
|
+
}
|