@anna-ai/app-schema 0.19.0 → 0.22.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-ai/app-schema (v0.19.0)
1
+ # @anna-ai/app-schema (v0.22.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.
@@ -11,6 +11,8 @@ Versioned schema bundle for the Anna App platform. Generated by
11
11
  the dispatcher's `_DISPATCH` map. `no_auth=true` methods skip the
12
12
  `host_api` ACL gate.
13
13
  * `events/AnnaAppEvent.json` — SSE event union (the `kind` enum).
14
+ * `acl/capabilities.json` — `host_capabilities` + `permissions` strict
15
+ allow-lists enforced by the platform manifest validator.
14
16
  * `dispatcher_version.txt` — Single source-of-truth bundle version;
15
17
  harnesses must refuse to start when their copy disagrees.
16
18
 
@@ -0,0 +1,46 @@
1
+ {
2
+ "$id": "https://schemas.anna.partners/acl-capabilities.json",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "description": "Strict allow-lists enforced by the platform manifest validator: `host_capabilities` (shared by Anna App and Executa plugin manifests) and Anna App `permissions` scopes.",
5
+ "host_capabilities": [
6
+ "aps.files",
7
+ "aps.kv",
8
+ "aps.scope.admin",
9
+ "aps.scope.app.read",
10
+ "aps.scope.app.write",
11
+ "aps.scope.tool.read",
12
+ "aps.scope.tool.write",
13
+ "aps.scope.user.read",
14
+ "aps.scope.user.write",
15
+ "host.upload",
16
+ "llm.agent.auto",
17
+ "llm.agent.fixed",
18
+ "llm.complete",
19
+ "llm.embed",
20
+ "llm.image",
21
+ "llm.image.edit",
22
+ "llm.sample",
23
+ "web.fetch",
24
+ "web.image_fetch",
25
+ "web.image_search",
26
+ "web.search"
27
+ ],
28
+ "permissions": [
29
+ "artifact.create",
30
+ "artifact.delete",
31
+ "artifact.update",
32
+ "chat.append_artifact",
33
+ "chat.read",
34
+ "chat.write_message",
35
+ "fs.read",
36
+ "fs.write",
37
+ "llm.complete",
38
+ "prefs.read",
39
+ "storage.read",
40
+ "storage.write",
41
+ "tools.invoke",
42
+ "ui.svg"
43
+ ],
44
+ "title": "AclCapabilityTable",
45
+ "version": "0.22.0"
46
+ }
@@ -1 +1 @@
1
- 0.19.0
1
+ 0.22.0
@@ -38,5 +38,5 @@
38
38
  ],
39
39
  "title": "AnnaAppEvent",
40
40
  "type": "object",
41
- "version": "0.19.0"
41
+ "version": "0.22.0"
42
42
  }
@@ -414,6 +414,155 @@
414
414
  },
415
415
  "stub": false
416
416
  },
417
+ {
418
+ "handler": "_h_mobile_camera_capture",
419
+ "method": "camera_capture",
420
+ "namespace": "mobile",
421
+ "no_auth": false,
422
+ "params_schema": {
423
+ "additionalProperties": false,
424
+ "description": "Returns {data_url, mime, width, height, byte_size}. Persistence is the app's job (upload/files grants). Structured non-error rejections: permission_denied_by_user / cancelled / too_large.",
425
+ "properties": {
426
+ "camera": {
427
+ "enum": [
428
+ "back",
429
+ "front",
430
+ null
431
+ ],
432
+ "type": [
433
+ "string",
434
+ "null"
435
+ ]
436
+ },
437
+ "max_bytes": {
438
+ "description": "Target size cap for the returned data_url (default 4MB, hard cap 8MB — bounded by the postMessage/injectJS transport). Oversized captures are re-compressed once; still-oversized results reject with code='too_large'.",
439
+ "maximum": 8388608,
440
+ "minimum": 1,
441
+ "type": [
442
+ "integer",
443
+ "null"
444
+ ]
445
+ },
446
+ "quality": {
447
+ "maximum": 1,
448
+ "minimum": 0,
449
+ "type": [
450
+ "number",
451
+ "null"
452
+ ]
453
+ }
454
+ },
455
+ "type": "object"
456
+ },
457
+ "stub": false
458
+ },
459
+ {
460
+ "handler": "_h_mobile_haptics",
461
+ "method": "haptics",
462
+ "namespace": "mobile",
463
+ "no_auth": false,
464
+ "params_schema": {
465
+ "additionalProperties": false,
466
+ "properties": {
467
+ "style": {
468
+ "description": "impact → light|medium|heavy; notification → success|warning|error; selection ignores style.",
469
+ "enum": [
470
+ "light",
471
+ "medium",
472
+ "heavy",
473
+ "success",
474
+ "warning",
475
+ "error",
476
+ null
477
+ ],
478
+ "type": [
479
+ "string",
480
+ "null"
481
+ ]
482
+ },
483
+ "type": {
484
+ "enum": [
485
+ "impact",
486
+ "notification",
487
+ "selection"
488
+ ],
489
+ "type": "string"
490
+ }
491
+ },
492
+ "required": [
493
+ "type"
494
+ ],
495
+ "type": "object"
496
+ },
497
+ "stub": false
498
+ },
499
+ {
500
+ "handler": "_h_mobile_share",
501
+ "method": "share",
502
+ "namespace": "mobile",
503
+ "no_auth": false,
504
+ "params_schema": {
505
+ "additionalProperties": false,
506
+ "anyOf": [
507
+ {
508
+ "required": [
509
+ "text"
510
+ ]
511
+ },
512
+ {
513
+ "required": [
514
+ "url"
515
+ ]
516
+ },
517
+ {
518
+ "required": [
519
+ "data_url"
520
+ ]
521
+ }
522
+ ],
523
+ "description": "System share sheet. At least one of text/url/data_url. User cancel resolves with {shared: false} — NOT an error.",
524
+ "properties": {
525
+ "data_url": {
526
+ "description": "data: URL payload to share as a file (<= 2MB decoded). Written to a short-lived native temp file; never persisted by the shell.",
527
+ "maxLength": 2800000,
528
+ "type": [
529
+ "string",
530
+ "null"
531
+ ]
532
+ },
533
+ "filename": {
534
+ "maxLength": 200,
535
+ "type": [
536
+ "string",
537
+ "null"
538
+ ]
539
+ },
540
+ "text": {
541
+ "maxLength": 10000,
542
+ "type": [
543
+ "string",
544
+ "null"
545
+ ]
546
+ },
547
+ "title": {
548
+ "maxLength": 200,
549
+ "type": [
550
+ "string",
551
+ "null"
552
+ ]
553
+ },
554
+ "url": {
555
+ "maxLength": 2000,
556
+ "type": [
557
+ "string",
558
+ "null"
559
+ ]
560
+ }
561
+ },
562
+ "type": "object"
563
+ },
564
+ "stub": false
565
+ },
417
566
  {
418
567
  "handler": "_h_not_implemented",
419
568
  "method": "get",
@@ -757,5 +906,5 @@
757
906
  }
758
907
  ],
759
908
  "title": "HostApiMethodTable",
760
- "version": "0.19.0"
909
+ "version": "0.22.0"
761
910
  }
@@ -254,6 +254,13 @@
254
254
  "title": "Llm",
255
255
  "type": "array"
256
256
  },
257
+ "mobile": {
258
+ "items": {
259
+ "type": "string"
260
+ },
261
+ "title": "Mobile",
262
+ "type": "array"
263
+ },
257
264
  "prefs": {
258
265
  "items": {
259
266
  "type": "string"
@@ -316,6 +323,17 @@
316
323
  "title": "Csp Overrides",
317
324
  "type": "object"
318
325
  },
326
+ "form_factors": {
327
+ "items": {
328
+ "enum": [
329
+ "desktop",
330
+ "mobile"
331
+ ],
332
+ "type": "string"
333
+ },
334
+ "title": "Form Factors",
335
+ "type": "array"
336
+ },
319
337
  "host_api": {
320
338
  "$ref": "#/$defs/UiHostApiSpec"
321
339
  },
@@ -438,6 +456,19 @@
438
456
  ],
439
457
  "default": null
440
458
  },
459
+ "mobile_entry": {
460
+ "anyOf": [
461
+ {
462
+ "maxLength": 300,
463
+ "type": "string"
464
+ },
465
+ {
466
+ "type": "null"
467
+ }
468
+ ],
469
+ "default": null,
470
+ "title": "Mobile Entry"
471
+ },
441
472
  "movable": {
442
473
  "default": true,
443
474
  "title": "Movable",
@@ -147,6 +147,13 @@
147
147
  "title": "Llm",
148
148
  "type": "array"
149
149
  },
150
+ "mobile": {
151
+ "items": {
152
+ "type": "string"
153
+ },
154
+ "title": "Mobile",
155
+ "type": "array"
156
+ },
150
157
  "prefs": {
151
158
  "items": {
152
159
  "type": "string"
@@ -292,6 +299,19 @@
292
299
  ],
293
300
  "default": null
294
301
  },
302
+ "mobile_entry": {
303
+ "anyOf": [
304
+ {
305
+ "maxLength": 300,
306
+ "type": "string"
307
+ },
308
+ {
309
+ "type": "null"
310
+ }
311
+ ],
312
+ "default": null,
313
+ "title": "Mobile Entry"
314
+ },
295
315
  "movable": {
296
316
  "default": true,
297
317
  "title": "Movable",
@@ -363,6 +383,17 @@
363
383
  "title": "Csp Overrides",
364
384
  "type": "object"
365
385
  },
386
+ "form_factors": {
387
+ "items": {
388
+ "enum": [
389
+ "desktop",
390
+ "mobile"
391
+ ],
392
+ "type": "string"
393
+ },
394
+ "title": "Form Factors",
395
+ "type": "array"
396
+ },
366
397
  "host_api": {
367
398
  "$ref": "#/$defs/UiHostApiSpec"
368
399
  },
package/package.json CHANGED
@@ -4,6 +4,7 @@
4
4
  ".": {
5
5
  "default": "./host_api/methods.json"
6
6
  },
7
+ "./acl": "./acl/capabilities.json",
7
8
  "./events": "./events/AnnaAppEvent.json",
8
9
  "./manifest": "./manifest/AppManifest.json",
9
10
  "./methods": "./host_api/methods.json",
@@ -13,6 +14,7 @@
13
14
  "manifest/",
14
15
  "host_api/",
15
16
  "events/",
17
+ "acl/",
16
18
  "dispatcher_version.txt",
17
19
  "README.md"
18
20
  ],
@@ -21,5 +23,5 @@
21
23
  "publishConfig": {
22
24
  "access": "public"
23
25
  },
24
- "version": "0.19.0"
26
+ "version": "0.22.0"
25
27
  }