@sveda-ai/protocol 0.3.0 → 0.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveda-ai/protocol",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "license": "SSPL-1.0",
6
6
  "description": "Sveda wire protocol (SSE events). https://sveda.dev/docs/stream",
@@ -48,9 +48,9 @@
48
48
  ],
49
49
  "scripts": {
50
50
  "build": "tsc -p tsconfig.json",
51
- "test": "vitest run",
51
+ "test": "vitest run --coverage",
52
52
  "typecheck": "tsc -p tsconfig.json --noEmit",
53
- "lint": "echo 'no lint configured'"
53
+ "lint": "eslint ."
54
54
  },
55
55
  "devDependencies": {
56
56
  "typescript": "^5.8.2",
@@ -0,0 +1,72 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://sveda.dev/schemas/host-manifest.v1.json",
4
+ "title": "Sveda host manifest",
5
+ "type": "object",
6
+ "required": ["schema", "sdk", "subject", "hooks", "tools"],
7
+ "properties": {
8
+ "schema": {
9
+ "const": "sveda.host/v1"
10
+ },
11
+ "sdk": {
12
+ "type": "object",
13
+ "required": ["language", "version"],
14
+ "properties": {
15
+ "language": { "type": "string" },
16
+ "version": { "type": "string" }
17
+ },
18
+ "additionalProperties": false
19
+ },
20
+ "subject": {
21
+ "type": "object",
22
+ "required": ["authenticated", "policy"],
23
+ "properties": {
24
+ "authenticated": { "type": "boolean" },
25
+ "policy": { "type": ["string", "null"] }
26
+ },
27
+ "additionalProperties": false
28
+ },
29
+ "hooks": {
30
+ "type": "object",
31
+ "required": [
32
+ "resolve_tools",
33
+ "policy",
34
+ "authorize",
35
+ "visitor_id",
36
+ "mint_token"
37
+ ],
38
+ "properties": {
39
+ "resolve_tools": { "type": "boolean" },
40
+ "policy": { "type": "boolean" },
41
+ "authorize": { "type": "boolean" },
42
+ "visitor_id": { "type": "boolean" },
43
+ "mint_token": { "type": "boolean" }
44
+ },
45
+ "additionalProperties": false
46
+ },
47
+ "tools": {
48
+ "type": "array",
49
+ "items": {
50
+ "type": "object",
51
+ "required": ["name", "description", "inputSchema", "_meta"],
52
+ "properties": {
53
+ "name": { "type": "string" },
54
+ "title": { "type": "string" },
55
+ "description": { "type": "string" },
56
+ "inputSchema": { "type": "object" },
57
+ "annotations": { "type": "object" },
58
+ "_meta": {
59
+ "type": "object",
60
+ "required": ["domain", "mode"],
61
+ "properties": {
62
+ "domain": { "type": "string" },
63
+ "mode": { "type": "string" },
64
+ "confirmation": { "type": "string" }
65
+ }
66
+ }
67
+ }
68
+ }
69
+ }
70
+ },
71
+ "additionalProperties": false
72
+ }