@anna-ai/app-schema 0.1.0 → 0.4.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/README.md +1 -1
- package/dispatcher_version.txt +1 -1
- package/events/AnnaAppEvent.json +2 -1
- package/host_api/methods.json +45 -3
- package/manifest/AppManifest.json +80 -0
- package/manifest/UiManifestSection.json +73 -0
- package/package.json +1 -1
package/README.md
CHANGED
package/dispatcher_version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
0.4.0
|
package/events/AnnaAppEvent.json
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"geometry_changed",
|
|
19
19
|
"open_view",
|
|
20
20
|
"ping",
|
|
21
|
+
"rpc.stream",
|
|
21
22
|
"runtime_state_synced",
|
|
22
23
|
"status_changed",
|
|
23
24
|
"title_changed",
|
|
@@ -34,5 +35,5 @@
|
|
|
34
35
|
],
|
|
35
36
|
"title": "AnnaAppEvent",
|
|
36
37
|
"type": "object",
|
|
37
|
-
"version": "0.
|
|
38
|
+
"version": "0.4.0"
|
|
38
39
|
}
|
package/host_api/methods.json
CHANGED
|
@@ -3,6 +3,41 @@
|
|
|
3
3
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
4
|
"description": "Flat (namespace, method) table extracted from the dispatcher's _DISPATCH map. `no_auth=true` methods bypass the host_api ACL.",
|
|
5
5
|
"methods": [
|
|
6
|
+
{
|
|
7
|
+
"handler": "_h_agent_session_cancel",
|
|
8
|
+
"method": "session.cancel",
|
|
9
|
+
"namespace": "agent",
|
|
10
|
+
"no_auth": false,
|
|
11
|
+
"stub": false
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"handler": "_h_agent_session_create",
|
|
15
|
+
"method": "session.create",
|
|
16
|
+
"namespace": "agent",
|
|
17
|
+
"no_auth": false,
|
|
18
|
+
"stub": false
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"handler": "_h_agent_session_delete",
|
|
22
|
+
"method": "session.delete",
|
|
23
|
+
"namespace": "agent",
|
|
24
|
+
"no_auth": false,
|
|
25
|
+
"stub": false
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"handler": "_h_agent_session_history",
|
|
29
|
+
"method": "session.history",
|
|
30
|
+
"namespace": "agent",
|
|
31
|
+
"no_auth": false,
|
|
32
|
+
"stub": false
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"handler": "_h_agent_session_run",
|
|
36
|
+
"method": "session.run",
|
|
37
|
+
"namespace": "agent",
|
|
38
|
+
"no_auth": false,
|
|
39
|
+
"stub": false
|
|
40
|
+
},
|
|
6
41
|
{
|
|
7
42
|
"handler": "_h_not_implemented",
|
|
8
43
|
"method": "create",
|
|
@@ -60,11 +95,11 @@
|
|
|
60
95
|
"stub": true
|
|
61
96
|
},
|
|
62
97
|
{
|
|
63
|
-
"handler": "
|
|
98
|
+
"handler": "_h_llm_complete",
|
|
64
99
|
"method": "complete",
|
|
65
100
|
"namespace": "llm",
|
|
66
101
|
"no_auth": false,
|
|
67
|
-
"stub":
|
|
102
|
+
"stub": false
|
|
68
103
|
},
|
|
69
104
|
{
|
|
70
105
|
"handler": "_h_not_implemented",
|
|
@@ -87,6 +122,13 @@
|
|
|
87
122
|
"no_auth": false,
|
|
88
123
|
"stub": false
|
|
89
124
|
},
|
|
125
|
+
{
|
|
126
|
+
"handler": "_h_storage_list",
|
|
127
|
+
"method": "list",
|
|
128
|
+
"namespace": "storage",
|
|
129
|
+
"no_auth": false,
|
|
130
|
+
"stub": false
|
|
131
|
+
},
|
|
90
132
|
{
|
|
91
133
|
"handler": "_h_storage_set",
|
|
92
134
|
"method": "set",
|
|
@@ -166,5 +208,5 @@
|
|
|
166
208
|
}
|
|
167
209
|
],
|
|
168
210
|
"title": "HostApiMethodTable",
|
|
169
|
-
"version": "0.
|
|
211
|
+
"version": "0.4.0"
|
|
170
212
|
}
|
|
@@ -1,5 +1,61 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$defs": {
|
|
3
|
+
"AgentFixedSubmodeSpec": {
|
|
4
|
+
"additionalProperties": false,
|
|
5
|
+
"properties": {
|
|
6
|
+
"client_ids": {
|
|
7
|
+
"items": {
|
|
8
|
+
"type": "string"
|
|
9
|
+
},
|
|
10
|
+
"title": "Client Ids",
|
|
11
|
+
"type": "array"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"title": "AgentFixedSubmodeSpec",
|
|
15
|
+
"type": "object"
|
|
16
|
+
},
|
|
17
|
+
"AgentHostApiSpec": {
|
|
18
|
+
"additionalProperties": false,
|
|
19
|
+
"description": "Top-level grant for the ``agent`` host-API namespace.",
|
|
20
|
+
"properties": {
|
|
21
|
+
"session": {
|
|
22
|
+
"$ref": "#/$defs/AgentSessionSubmodeSpec"
|
|
23
|
+
},
|
|
24
|
+
"tools": {
|
|
25
|
+
"items": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
"title": "Tools",
|
|
29
|
+
"type": "array"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"title": "AgentHostApiSpec",
|
|
33
|
+
"type": "object"
|
|
34
|
+
},
|
|
35
|
+
"AgentSessionSubmodeSpec": {
|
|
36
|
+
"additionalProperties": false,
|
|
37
|
+
"description": "Per-submode toggle for ``host_api.agent.session``.\n\nSee ``docs/design/app-llm-and-agent-access.md`` §6.1.",
|
|
38
|
+
"properties": {
|
|
39
|
+
"auto": {
|
|
40
|
+
"default": false,
|
|
41
|
+
"title": "Auto",
|
|
42
|
+
"type": "boolean"
|
|
43
|
+
},
|
|
44
|
+
"fixed": {
|
|
45
|
+
"anyOf": [
|
|
46
|
+
{
|
|
47
|
+
"$ref": "#/$defs/AgentFixedSubmodeSpec"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"type": "null"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"default": null
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"title": "AgentSessionSubmodeSpec",
|
|
57
|
+
"type": "object"
|
|
58
|
+
},
|
|
3
59
|
"AppDevConfig": {
|
|
4
60
|
"additionalProperties": true,
|
|
5
61
|
"description": "Optional ``manifest.dev`` block — local-harness-only configuration.\n\nProduction dispatcher ignores this field at runtime (it is declared here\nso ``extra=\"forbid\"`` doesn't reject it). ``anna-app publish`` SHOULD\nstrip ``dev`` from the manifest before upload; mirroring nexus's\nhistorical \"drop unknown keys\" behaviour.\n\nSee design doc §8 for field semantics. All fields are intentionally loose\n(`Any`) so the harness can evolve independently from the wire schema.",
|
|
@@ -139,6 +195,9 @@
|
|
|
139
195
|
"UiHostApiSpec": {
|
|
140
196
|
"additionalProperties": false,
|
|
141
197
|
"properties": {
|
|
198
|
+
"agent": {
|
|
199
|
+
"$ref": "#/$defs/AgentHostApiSpec"
|
|
200
|
+
},
|
|
142
201
|
"artifact": {
|
|
143
202
|
"items": {
|
|
144
203
|
"type": "string"
|
|
@@ -153,6 +212,13 @@
|
|
|
153
212
|
"title": "Chat",
|
|
154
213
|
"type": "array"
|
|
155
214
|
},
|
|
215
|
+
"files": {
|
|
216
|
+
"items": {
|
|
217
|
+
"type": "string"
|
|
218
|
+
},
|
|
219
|
+
"title": "Files",
|
|
220
|
+
"type": "array"
|
|
221
|
+
},
|
|
156
222
|
"fs": {
|
|
157
223
|
"items": {
|
|
158
224
|
"type": "string"
|
|
@@ -188,6 +254,13 @@
|
|
|
188
254
|
"title": "Tools",
|
|
189
255
|
"type": "array"
|
|
190
256
|
},
|
|
257
|
+
"user_files": {
|
|
258
|
+
"items": {
|
|
259
|
+
"type": "string"
|
|
260
|
+
},
|
|
261
|
+
"title": "User Files",
|
|
262
|
+
"type": "array"
|
|
263
|
+
},
|
|
191
264
|
"window": {
|
|
192
265
|
"items": {
|
|
193
266
|
"type": "string"
|
|
@@ -393,6 +466,13 @@
|
|
|
393
466
|
],
|
|
394
467
|
"default": null
|
|
395
468
|
},
|
|
469
|
+
"host_capabilities": {
|
|
470
|
+
"items": {
|
|
471
|
+
"type": "string"
|
|
472
|
+
},
|
|
473
|
+
"title": "Host Capabilities",
|
|
474
|
+
"type": "array"
|
|
475
|
+
},
|
|
396
476
|
"optional_executas": {
|
|
397
477
|
"items": {
|
|
398
478
|
"$ref": "#/$defs/ManifestExecutaRef"
|
|
@@ -1,5 +1,61 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$defs": {
|
|
3
|
+
"AgentFixedSubmodeSpec": {
|
|
4
|
+
"additionalProperties": false,
|
|
5
|
+
"properties": {
|
|
6
|
+
"client_ids": {
|
|
7
|
+
"items": {
|
|
8
|
+
"type": "string"
|
|
9
|
+
},
|
|
10
|
+
"title": "Client Ids",
|
|
11
|
+
"type": "array"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"title": "AgentFixedSubmodeSpec",
|
|
15
|
+
"type": "object"
|
|
16
|
+
},
|
|
17
|
+
"AgentHostApiSpec": {
|
|
18
|
+
"additionalProperties": false,
|
|
19
|
+
"description": "Top-level grant for the ``agent`` host-API namespace.",
|
|
20
|
+
"properties": {
|
|
21
|
+
"session": {
|
|
22
|
+
"$ref": "#/$defs/AgentSessionSubmodeSpec"
|
|
23
|
+
},
|
|
24
|
+
"tools": {
|
|
25
|
+
"items": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
"title": "Tools",
|
|
29
|
+
"type": "array"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"title": "AgentHostApiSpec",
|
|
33
|
+
"type": "object"
|
|
34
|
+
},
|
|
35
|
+
"AgentSessionSubmodeSpec": {
|
|
36
|
+
"additionalProperties": false,
|
|
37
|
+
"description": "Per-submode toggle for ``host_api.agent.session``.\n\nSee ``docs/design/app-llm-and-agent-access.md`` §6.1.",
|
|
38
|
+
"properties": {
|
|
39
|
+
"auto": {
|
|
40
|
+
"default": false,
|
|
41
|
+
"title": "Auto",
|
|
42
|
+
"type": "boolean"
|
|
43
|
+
},
|
|
44
|
+
"fixed": {
|
|
45
|
+
"anyOf": [
|
|
46
|
+
{
|
|
47
|
+
"$ref": "#/$defs/AgentFixedSubmodeSpec"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"type": "null"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"default": null
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"title": "AgentSessionSubmodeSpec",
|
|
57
|
+
"type": "object"
|
|
58
|
+
},
|
|
3
59
|
"UiBundleSection": {
|
|
4
60
|
"additionalProperties": false,
|
|
5
61
|
"properties": {
|
|
@@ -32,6 +88,9 @@
|
|
|
32
88
|
"UiHostApiSpec": {
|
|
33
89
|
"additionalProperties": false,
|
|
34
90
|
"properties": {
|
|
91
|
+
"agent": {
|
|
92
|
+
"$ref": "#/$defs/AgentHostApiSpec"
|
|
93
|
+
},
|
|
35
94
|
"artifact": {
|
|
36
95
|
"items": {
|
|
37
96
|
"type": "string"
|
|
@@ -46,6 +105,13 @@
|
|
|
46
105
|
"title": "Chat",
|
|
47
106
|
"type": "array"
|
|
48
107
|
},
|
|
108
|
+
"files": {
|
|
109
|
+
"items": {
|
|
110
|
+
"type": "string"
|
|
111
|
+
},
|
|
112
|
+
"title": "Files",
|
|
113
|
+
"type": "array"
|
|
114
|
+
},
|
|
49
115
|
"fs": {
|
|
50
116
|
"items": {
|
|
51
117
|
"type": "string"
|
|
@@ -81,6 +147,13 @@
|
|
|
81
147
|
"title": "Tools",
|
|
82
148
|
"type": "array"
|
|
83
149
|
},
|
|
150
|
+
"user_files": {
|
|
151
|
+
"items": {
|
|
152
|
+
"type": "string"
|
|
153
|
+
},
|
|
154
|
+
"title": "User Files",
|
|
155
|
+
"type": "array"
|
|
156
|
+
},
|
|
84
157
|
"window": {
|
|
85
158
|
"items": {
|
|
86
159
|
"type": "string"
|
package/package.json
CHANGED