@anna-ai/app-schema 0.18.0 → 0.21.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 +3 -1
- package/acl/capabilities.json +46 -0
- package/dispatcher_version.txt +1 -1
- package/events/AnnaAppEvent.json +1 -1
- package/host_api/methods.json +161 -3
- package/manifest/AppManifest.json +24 -0
- package/manifest/UiManifestSection.json +24 -0
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @anna-ai/app-schema (v0.
|
|
1
|
+
# @anna-ai/app-schema (v0.21.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.21.0"
|
|
46
|
+
}
|
package/dispatcher_version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
0.21.0
|
package/events/AnnaAppEvent.json
CHANGED
package/host_api/methods.json
CHANGED
|
@@ -449,6 +449,61 @@
|
|
|
449
449
|
"no_auth": false,
|
|
450
450
|
"stub": false
|
|
451
451
|
},
|
|
452
|
+
{
|
|
453
|
+
"handler": "_h_tools_cancel_job",
|
|
454
|
+
"method": "cancelJob",
|
|
455
|
+
"namespace": "tools",
|
|
456
|
+
"no_auth": false,
|
|
457
|
+
"params_schema": {
|
|
458
|
+
"additionalProperties": false,
|
|
459
|
+
"properties": {
|
|
460
|
+
"jobId": {
|
|
461
|
+
"pattern": "^tjob_[0-9a-f]{32}$",
|
|
462
|
+
"type": "string"
|
|
463
|
+
},
|
|
464
|
+
"reason": {
|
|
465
|
+
"maxLength": 200,
|
|
466
|
+
"type": "string"
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
"required": [
|
|
470
|
+
"jobId"
|
|
471
|
+
],
|
|
472
|
+
"type": "object"
|
|
473
|
+
},
|
|
474
|
+
"stub": false
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"handler": "_h_tools_get_job",
|
|
478
|
+
"method": "getJob",
|
|
479
|
+
"namespace": "tools",
|
|
480
|
+
"no_auth": false,
|
|
481
|
+
"params_schema": {
|
|
482
|
+
"additionalProperties": false,
|
|
483
|
+
"properties": {
|
|
484
|
+
"jobId": {
|
|
485
|
+
"pattern": "^tjob_[0-9a-f]{32}$",
|
|
486
|
+
"type": "string"
|
|
487
|
+
},
|
|
488
|
+
"limit": {
|
|
489
|
+
"default": 100,
|
|
490
|
+
"maximum": 500,
|
|
491
|
+
"minimum": 1,
|
|
492
|
+
"type": "integer"
|
|
493
|
+
},
|
|
494
|
+
"sinceSeq": {
|
|
495
|
+
"default": 0,
|
|
496
|
+
"minimum": 0,
|
|
497
|
+
"type": "integer"
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
"required": [
|
|
501
|
+
"jobId"
|
|
502
|
+
],
|
|
503
|
+
"type": "object"
|
|
504
|
+
},
|
|
505
|
+
"stub": false
|
|
506
|
+
},
|
|
452
507
|
{
|
|
453
508
|
"handler": "_h_tools_invoke",
|
|
454
509
|
"method": "invoke",
|
|
@@ -468,8 +523,8 @@
|
|
|
468
523
|
]
|
|
469
524
|
},
|
|
470
525
|
"timeoutMs": {
|
|
471
|
-
"description": "Per-call timeout in milliseconds. Clamped to the host policy (default 65000, hard cap
|
|
472
|
-
"maximum":
|
|
526
|
+
"description": "Per-call timeout in milliseconds. Clamped to the host policy (default 65000, hard cap 90000 — bounded by the public edge's ~100 s held-request ceiling; see forum #199). On timeout the call resolves with HostRpcError(code='tool_timeout') whose details echo requested_timeout_ms/max_timeout_ms when the value was clamped down.",
|
|
527
|
+
"maximum": 90000,
|
|
473
528
|
"minimum": 1000,
|
|
474
529
|
"type": "integer"
|
|
475
530
|
},
|
|
@@ -485,6 +540,47 @@
|
|
|
485
540
|
},
|
|
486
541
|
"stub": false
|
|
487
542
|
},
|
|
543
|
+
{
|
|
544
|
+
"handler": "_h_tools_invoke_async",
|
|
545
|
+
"method": "invokeAsync",
|
|
546
|
+
"namespace": "tools",
|
|
547
|
+
"no_auth": false,
|
|
548
|
+
"params_schema": {
|
|
549
|
+
"additionalProperties": false,
|
|
550
|
+
"properties": {
|
|
551
|
+
"args": {
|
|
552
|
+
"default": {},
|
|
553
|
+
"type": "object"
|
|
554
|
+
},
|
|
555
|
+
"clientTag": {
|
|
556
|
+
"description": "Opaque caller correlation tag, stored verbatim on the job row and filterable via tools.listJobs — the reload-recovery handle.",
|
|
557
|
+
"maxLength": 120,
|
|
558
|
+
"type": "string"
|
|
559
|
+
},
|
|
560
|
+
"method": {
|
|
561
|
+
"type": [
|
|
562
|
+
"string",
|
|
563
|
+
"null"
|
|
564
|
+
]
|
|
565
|
+
},
|
|
566
|
+
"timeoutMs": {
|
|
567
|
+
"description": "Plugin-facing job deadline. Default 1800000 (30 min). Clamped server-side to [InvokeAsyncPolicy.min_ms, max_ms] (60 s – 24 h). The call itself returns immediately with a jobId; results arrive via the tool_job dashboard event + tools.getJob polling.",
|
|
568
|
+
"maximum": 86400000,
|
|
569
|
+
"minimum": 60000,
|
|
570
|
+
"type": "integer"
|
|
571
|
+
},
|
|
572
|
+
"tool_id": {
|
|
573
|
+
"minLength": 1,
|
|
574
|
+
"type": "string"
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
"required": [
|
|
578
|
+
"tool_id"
|
|
579
|
+
],
|
|
580
|
+
"type": "object"
|
|
581
|
+
},
|
|
582
|
+
"stub": false
|
|
583
|
+
},
|
|
488
584
|
{
|
|
489
585
|
"handler": "_h_tools_list",
|
|
490
586
|
"method": "list",
|
|
@@ -492,6 +588,68 @@
|
|
|
492
588
|
"no_auth": false,
|
|
493
589
|
"stub": false
|
|
494
590
|
},
|
|
591
|
+
{
|
|
592
|
+
"handler": "_h_tools_list_jobs",
|
|
593
|
+
"method": "listJobs",
|
|
594
|
+
"namespace": "tools",
|
|
595
|
+
"no_auth": false,
|
|
596
|
+
"params_schema": {
|
|
597
|
+
"additionalProperties": false,
|
|
598
|
+
"properties": {
|
|
599
|
+
"clientTag": {
|
|
600
|
+
"maxLength": 120,
|
|
601
|
+
"type": "string"
|
|
602
|
+
},
|
|
603
|
+
"limit": {
|
|
604
|
+
"default": 20,
|
|
605
|
+
"maximum": 100,
|
|
606
|
+
"minimum": 1,
|
|
607
|
+
"type": "integer"
|
|
608
|
+
},
|
|
609
|
+
"since": {
|
|
610
|
+
"format": "date-time",
|
|
611
|
+
"type": "string"
|
|
612
|
+
},
|
|
613
|
+
"state": {
|
|
614
|
+
"oneOf": [
|
|
615
|
+
{
|
|
616
|
+
"enum": [
|
|
617
|
+
"queued",
|
|
618
|
+
"running",
|
|
619
|
+
"succeeded",
|
|
620
|
+
"failed",
|
|
621
|
+
"cancelled",
|
|
622
|
+
"expired"
|
|
623
|
+
],
|
|
624
|
+
"type": "string"
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
"items": {
|
|
628
|
+
"enum": [
|
|
629
|
+
"queued",
|
|
630
|
+
"running",
|
|
631
|
+
"succeeded",
|
|
632
|
+
"failed",
|
|
633
|
+
"cancelled",
|
|
634
|
+
"expired"
|
|
635
|
+
],
|
|
636
|
+
"type": "string"
|
|
637
|
+
},
|
|
638
|
+
"maxItems": 6,
|
|
639
|
+
"minItems": 1,
|
|
640
|
+
"type": "array"
|
|
641
|
+
}
|
|
642
|
+
]
|
|
643
|
+
},
|
|
644
|
+
"tool_id": {
|
|
645
|
+
"minLength": 1,
|
|
646
|
+
"type": "string"
|
|
647
|
+
}
|
|
648
|
+
},
|
|
649
|
+
"type": "object"
|
|
650
|
+
},
|
|
651
|
+
"stub": false
|
|
652
|
+
},
|
|
495
653
|
{
|
|
496
654
|
"handler": "_h_upload_confirm",
|
|
497
655
|
"method": "confirm",
|
|
@@ -599,5 +757,5 @@
|
|
|
599
757
|
}
|
|
600
758
|
],
|
|
601
759
|
"title": "HostApiMethodTable",
|
|
602
|
-
"version": "0.
|
|
760
|
+
"version": "0.21.0"
|
|
603
761
|
}
|
|
@@ -316,6 +316,17 @@
|
|
|
316
316
|
"title": "Csp Overrides",
|
|
317
317
|
"type": "object"
|
|
318
318
|
},
|
|
319
|
+
"form_factors": {
|
|
320
|
+
"items": {
|
|
321
|
+
"enum": [
|
|
322
|
+
"desktop",
|
|
323
|
+
"mobile"
|
|
324
|
+
],
|
|
325
|
+
"type": "string"
|
|
326
|
+
},
|
|
327
|
+
"title": "Form Factors",
|
|
328
|
+
"type": "array"
|
|
329
|
+
},
|
|
319
330
|
"host_api": {
|
|
320
331
|
"$ref": "#/$defs/UiHostApiSpec"
|
|
321
332
|
},
|
|
@@ -438,6 +449,19 @@
|
|
|
438
449
|
],
|
|
439
450
|
"default": null
|
|
440
451
|
},
|
|
452
|
+
"mobile_entry": {
|
|
453
|
+
"anyOf": [
|
|
454
|
+
{
|
|
455
|
+
"maxLength": 300,
|
|
456
|
+
"type": "string"
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
"type": "null"
|
|
460
|
+
}
|
|
461
|
+
],
|
|
462
|
+
"default": null,
|
|
463
|
+
"title": "Mobile Entry"
|
|
464
|
+
},
|
|
441
465
|
"movable": {
|
|
442
466
|
"default": true,
|
|
443
467
|
"title": "Movable",
|
|
@@ -292,6 +292,19 @@
|
|
|
292
292
|
],
|
|
293
293
|
"default": null
|
|
294
294
|
},
|
|
295
|
+
"mobile_entry": {
|
|
296
|
+
"anyOf": [
|
|
297
|
+
{
|
|
298
|
+
"maxLength": 300,
|
|
299
|
+
"type": "string"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"type": "null"
|
|
303
|
+
}
|
|
304
|
+
],
|
|
305
|
+
"default": null,
|
|
306
|
+
"title": "Mobile Entry"
|
|
307
|
+
},
|
|
295
308
|
"movable": {
|
|
296
309
|
"default": true,
|
|
297
310
|
"title": "Movable",
|
|
@@ -363,6 +376,17 @@
|
|
|
363
376
|
"title": "Csp Overrides",
|
|
364
377
|
"type": "object"
|
|
365
378
|
},
|
|
379
|
+
"form_factors": {
|
|
380
|
+
"items": {
|
|
381
|
+
"enum": [
|
|
382
|
+
"desktop",
|
|
383
|
+
"mobile"
|
|
384
|
+
],
|
|
385
|
+
"type": "string"
|
|
386
|
+
},
|
|
387
|
+
"title": "Form Factors",
|
|
388
|
+
"type": "array"
|
|
389
|
+
},
|
|
366
390
|
"host_api": {
|
|
367
391
|
"$ref": "#/$defs/UiHostApiSpec"
|
|
368
392
|
},
|
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.
|
|
26
|
+
"version": "0.21.0"
|
|
25
27
|
}
|