@anna-ai/app-schema 0.1.0 → 0.6.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 CHANGED
@@ -1,4 +1,4 @@
1
- # @anna/app-schema (v0.1.0)
1
+ # @anna-ai/app-schema (v0.6.0)
2
2
 
3
3
  Versioned schema bundle for the Anna App platform. Generated by
4
4
  `scripts/export_app_schema.py` in matrix-nexus; do not edit by hand.
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.6.0
@@ -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.1.0"
38
+ "version": "0.6.0"
38
39
  }
@@ -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,25 @@
60
95
  "stub": true
61
96
  },
62
97
  {
63
- "handler": "_h_not_implemented",
98
+ "handler": "_h_image_edit",
99
+ "method": "edit",
100
+ "namespace": "image",
101
+ "no_auth": false,
102
+ "stub": false
103
+ },
104
+ {
105
+ "handler": "_h_image_generate",
106
+ "method": "generate",
107
+ "namespace": "image",
108
+ "no_auth": false,
109
+ "stub": false
110
+ },
111
+ {
112
+ "handler": "_h_llm_complete",
64
113
  "method": "complete",
65
114
  "namespace": "llm",
66
115
  "no_auth": false,
67
- "stub": true
116
+ "stub": false
68
117
  },
69
118
  {
70
119
  "handler": "_h_not_implemented",
@@ -87,6 +136,13 @@
87
136
  "no_auth": false,
88
137
  "stub": false
89
138
  },
139
+ {
140
+ "handler": "_h_storage_list",
141
+ "method": "list",
142
+ "namespace": "storage",
143
+ "no_auth": false,
144
+ "stub": false
145
+ },
90
146
  {
91
147
  "handler": "_h_storage_set",
92
148
  "method": "set",
@@ -99,6 +155,35 @@
99
155
  "method": "invoke",
100
156
  "namespace": "tools",
101
157
  "no_auth": false,
158
+ "params_schema": {
159
+ "additionalProperties": false,
160
+ "properties": {
161
+ "args": {
162
+ "default": {},
163
+ "type": "object"
164
+ },
165
+ "method": {
166
+ "type": [
167
+ "string",
168
+ "null"
169
+ ]
170
+ },
171
+ "timeoutMs": {
172
+ "description": "Per-call timeout in milliseconds. Clamped to the host policy (default 65000, hard cap 180000). On timeout the call resolves with HostRpcError(code='tool_timeout').",
173
+ "maximum": 180000,
174
+ "minimum": 1000,
175
+ "type": "integer"
176
+ },
177
+ "tool_id": {
178
+ "minLength": 1,
179
+ "type": "string"
180
+ }
181
+ },
182
+ "required": [
183
+ "tool_id"
184
+ ],
185
+ "type": "object"
186
+ },
102
187
  "stub": false
103
188
  },
104
189
  {
@@ -108,6 +193,27 @@
108
193
  "no_auth": false,
109
194
  "stub": false
110
195
  },
196
+ {
197
+ "handler": "_h_upload_confirm",
198
+ "method": "confirm",
199
+ "namespace": "upload",
200
+ "no_auth": false,
201
+ "stub": false
202
+ },
203
+ {
204
+ "handler": "_h_upload_inline",
205
+ "method": "inline",
206
+ "namespace": "upload",
207
+ "no_auth": false,
208
+ "stub": false
209
+ },
210
+ {
211
+ "handler": "_h_upload_negotiate",
212
+ "method": "negotiate",
213
+ "namespace": "upload",
214
+ "no_auth": false,
215
+ "stub": false
216
+ },
111
217
  {
112
218
  "handler": "_h_window_close",
113
219
  "method": "close",
@@ -166,5 +272,5 @@
166
272
  }
167
273
  ],
168
274
  "title": "HostApiMethodTable",
169
- "version": "0.1.0"
275
+ "version": "0.6.0"
170
276
  }
@@ -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"
@@ -160,6 +226,13 @@
160
226
  "title": "Fs",
161
227
  "type": "array"
162
228
  },
229
+ "image": {
230
+ "items": {
231
+ "type": "string"
232
+ },
233
+ "title": "Image",
234
+ "type": "array"
235
+ },
163
236
  "llm": {
164
237
  "items": {
165
238
  "type": "string"
@@ -188,6 +261,13 @@
188
261
  "title": "Tools",
189
262
  "type": "array"
190
263
  },
264
+ "upload": {
265
+ "items": {
266
+ "type": "string"
267
+ },
268
+ "title": "Upload",
269
+ "type": "array"
270
+ },
191
271
  "window": {
192
272
  "items": {
193
273
  "type": "string"
@@ -393,6 +473,13 @@
393
473
  ],
394
474
  "default": null
395
475
  },
476
+ "host_capabilities": {
477
+ "items": {
478
+ "type": "string"
479
+ },
480
+ "title": "Host Capabilities",
481
+ "type": "array"
482
+ },
396
483
  "optional_executas": {
397
484
  "items": {
398
485
  "$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"
@@ -53,6 +119,13 @@
53
119
  "title": "Fs",
54
120
  "type": "array"
55
121
  },
122
+ "image": {
123
+ "items": {
124
+ "type": "string"
125
+ },
126
+ "title": "Image",
127
+ "type": "array"
128
+ },
56
129
  "llm": {
57
130
  "items": {
58
131
  "type": "string"
@@ -81,6 +154,13 @@
81
154
  "title": "Tools",
82
155
  "type": "array"
83
156
  },
157
+ "upload": {
158
+ "items": {
159
+ "type": "string"
160
+ },
161
+ "title": "Upload",
162
+ "type": "array"
163
+ },
84
164
  "window": {
85
165
  "items": {
86
166
  "type": "string"
package/package.json CHANGED
@@ -21,5 +21,5 @@
21
21
  "publishConfig": {
22
22
  "access": "public"
23
23
  },
24
- "version": "0.1.0"
24
+ "version": "0.6.0"
25
25
  }