@anna-ai/app-schema 0.17.0 → 0.19.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.17.0)
1
+ # @anna-ai/app-schema (v0.19.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.17.0
1
+ 0.19.0
@@ -38,5 +38,5 @@
38
38
  ],
39
39
  "title": "AnnaAppEvent",
40
40
  "type": "object",
41
- "version": "0.17.0"
41
+ "version": "0.19.0"
42
42
  }
@@ -10,6 +10,19 @@
10
10
  "no_auth": false,
11
11
  "stub": false
12
12
  },
13
+ {
14
+ "handler": "_h_agent_session_catalog",
15
+ "method": "session.catalog",
16
+ "namespace": "agent",
17
+ "no_auth": false,
18
+ "params_schema": {
19
+ "additionalProperties": false,
20
+ "description": "No arguments. Read-only pre-create discovery of the platform-tool universe (legal quotaCaps.allowed_tools / per-run allowed_tools values) with per-tool eligibility diagnostics (blocked_by: manifest|user_grant) for the calling app.",
21
+ "properties": {},
22
+ "type": "object"
23
+ },
24
+ "stub": false
25
+ },
13
26
  {
14
27
  "handler": "_h_agent_session_create",
15
28
  "method": "session.create",
@@ -436,6 +449,61 @@
436
449
  "no_auth": false,
437
450
  "stub": false
438
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
+ },
439
507
  {
440
508
  "handler": "_h_tools_invoke",
441
509
  "method": "invoke",
@@ -455,8 +523,8 @@
455
523
  ]
456
524
  },
457
525
  "timeoutMs": {
458
- "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').",
459
- "maximum": 180000,
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,
460
528
  "minimum": 1000,
461
529
  "type": "integer"
462
530
  },
@@ -472,6 +540,47 @@
472
540
  },
473
541
  "stub": false
474
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
+ },
475
584
  {
476
585
  "handler": "_h_tools_list",
477
586
  "method": "list",
@@ -479,6 +588,68 @@
479
588
  "no_auth": false,
480
589
  "stub": false
481
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
+ },
482
653
  {
483
654
  "handler": "_h_upload_confirm",
484
655
  "method": "confirm",
@@ -586,5 +757,5 @@
586
757
  }
587
758
  ],
588
759
  "title": "HostApiMethodTable",
589
- "version": "0.17.0"
760
+ "version": "0.19.0"
590
761
  }
package/package.json CHANGED
@@ -21,5 +21,5 @@
21
21
  "publishConfig": {
22
22
  "access": "public"
23
23
  },
24
- "version": "0.17.0"
24
+ "version": "0.19.0"
25
25
  }