@anna-ai/app-schema 0.34.0 → 0.36.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.34.0)
1
+ # @anna-ai/app-schema (v0.36.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.
@@ -22,5 +22,5 @@
22
22
  "tool"
23
23
  ],
24
24
  "title": "CapabilityDeclarationVocabulary",
25
- "version": "0.34.0"
25
+ "version": "0.36.0"
26
26
  }
@@ -1 +1 @@
1
- 0.34.0
1
+ 0.36.0
@@ -39,5 +39,5 @@
39
39
  ],
40
40
  "title": "AnnaAppEvent",
41
41
  "type": "object",
42
- "version": "0.34.0"
42
+ "version": "0.36.0"
43
43
  }
@@ -365,6 +365,318 @@
365
365
  "no_auth": false,
366
366
  "stub": false
367
367
  },
368
+ {
369
+ "handler": "_h_not_implemented",
370
+ "method": "cancel",
371
+ "namespace": "conversation",
372
+ "no_auth": false,
373
+ "params_schema": {
374
+ "additionalProperties": false,
375
+ "description": "Cancel the running task of a conversation.",
376
+ "properties": {
377
+ "conversation_uuid": {
378
+ "minLength": 1,
379
+ "type": "string"
380
+ },
381
+ "reason": {
382
+ "type": "string"
383
+ },
384
+ "task_id": {
385
+ "minLength": 1,
386
+ "type": "string"
387
+ }
388
+ },
389
+ "required": [
390
+ "conversation_uuid",
391
+ "task_id"
392
+ ],
393
+ "type": "object"
394
+ },
395
+ "stub": true
396
+ },
397
+ {
398
+ "handler": "_h_not_implemented",
399
+ "method": "create",
400
+ "namespace": "conversation",
401
+ "no_auth": false,
402
+ "params_schema": {
403
+ "additionalProperties": false,
404
+ "description": "Create a conversation; returns the Conversation.",
405
+ "properties": {
406
+ "name": {
407
+ "maxLength": 200,
408
+ "type": [
409
+ "string",
410
+ "null"
411
+ ]
412
+ },
413
+ "override_model": {
414
+ "maxLength": 100,
415
+ "type": [
416
+ "string",
417
+ "null"
418
+ ]
419
+ },
420
+ "zen": {
421
+ "description": "Create a Zen conversation: minimal system prompt, no memory / persona.",
422
+ "type": "boolean"
423
+ }
424
+ },
425
+ "type": "object"
426
+ },
427
+ "stub": true
428
+ },
429
+ {
430
+ "handler": "_h_not_implemented",
431
+ "method": "delete",
432
+ "namespace": "conversation",
433
+ "no_auth": false,
434
+ "params_schema": {
435
+ "additionalProperties": false,
436
+ "description": "Delete a conversation and its history. The default conversation cannot be deleted.",
437
+ "properties": {
438
+ "conversation_uuid": {
439
+ "minLength": 1,
440
+ "type": "string"
441
+ }
442
+ },
443
+ "required": [
444
+ "conversation_uuid"
445
+ ],
446
+ "type": "object"
447
+ },
448
+ "stub": true
449
+ },
450
+ {
451
+ "handler": "_h_not_implemented",
452
+ "method": "list",
453
+ "namespace": "conversation",
454
+ "no_auth": false,
455
+ "params_schema": {
456
+ "additionalProperties": false,
457
+ "description": "List this (user, app)'s conversations as {conversations}. Ensures the default conversation (is_default) exists first. Requires manifest ui.host_api.conversation = true.",
458
+ "properties": {},
459
+ "type": "object"
460
+ },
461
+ "stub": true
462
+ },
463
+ {
464
+ "handler": "_h_not_implemented",
465
+ "method": "messages",
466
+ "namespace": "conversation",
467
+ "no_auth": false,
468
+ "params_schema": {
469
+ "additionalProperties": false,
470
+ "description": "Persisted history of one conversation.",
471
+ "properties": {
472
+ "after_id": {
473
+ "description": "Only messages with id greater than this.",
474
+ "minimum": 0,
475
+ "type": "integer"
476
+ },
477
+ "conversation_uuid": {
478
+ "minLength": 1,
479
+ "type": "string"
480
+ },
481
+ "limit": {
482
+ "maximum": 500,
483
+ "minimum": 1,
484
+ "type": "integer"
485
+ }
486
+ },
487
+ "required": [
488
+ "conversation_uuid"
489
+ ],
490
+ "type": "object"
491
+ },
492
+ "stub": true
493
+ },
494
+ {
495
+ "handler": "_h_not_implemented",
496
+ "method": "modify",
497
+ "namespace": "conversation",
498
+ "no_auth": false,
499
+ "params_schema": {
500
+ "additionalProperties": false,
501
+ "description": "Send a correction to the running task; the agent applies it at its next checkpoint.",
502
+ "properties": {
503
+ "conversation_uuid": {
504
+ "minLength": 1,
505
+ "type": "string"
506
+ },
507
+ "instruction": {
508
+ "minLength": 1,
509
+ "type": "string"
510
+ },
511
+ "task_id": {
512
+ "minLength": 1,
513
+ "type": "string"
514
+ }
515
+ },
516
+ "required": [
517
+ "conversation_uuid",
518
+ "task_id",
519
+ "instruction"
520
+ ],
521
+ "type": "object"
522
+ },
523
+ "stub": true
524
+ },
525
+ {
526
+ "handler": "_h_not_implemented",
527
+ "method": "options",
528
+ "namespace": "conversation",
529
+ "no_auth": false,
530
+ "params_schema": {
531
+ "additionalProperties": false,
532
+ "description": "Composer option sources as {models, executas, agents, settings}: chat models, installed Executas (@ mention), the user's Agents and the Agent auto-selection preview, plus preferred_model / thinking_default / sandbox_enabled / sandbox_path.",
533
+ "properties": {},
534
+ "type": "object"
535
+ },
536
+ "stub": true
537
+ },
538
+ {
539
+ "handler": "_h_not_implemented",
540
+ "method": "send",
541
+ "namespace": "conversation",
542
+ "no_auth": false,
543
+ "params_schema": {
544
+ "additionalProperties": false,
545
+ "description": "Send a user message and start a run of the full main-conversation engine. Resolves with {task_id, stream_id}; frames arrive as rpc.stream events on stream_id (replayable via agent.session.frames). One run per conversation at a time.",
546
+ "properties": {
547
+ "app_ids": {
548
+ "items": {
549
+ "type": "integer"
550
+ },
551
+ "type": "array"
552
+ },
553
+ "attachments": {
554
+ "description": "Multimodal attachments: {type (MIME), url | data, filename?, detail?}.",
555
+ "items": {
556
+ "type": "object"
557
+ },
558
+ "type": "array"
559
+ },
560
+ "conversation_uuid": {
561
+ "minLength": 1,
562
+ "type": "string"
563
+ },
564
+ "executa_ids": {
565
+ "items": {
566
+ "type": "integer"
567
+ },
568
+ "type": "array"
569
+ },
570
+ "mention_modes": {
571
+ "description": "Per-message mention modes: once_executa_ids / once_app_ids.",
572
+ "type": "object"
573
+ },
574
+ "message": {
575
+ "description": "May be empty when attachments are present.",
576
+ "type": "string"
577
+ },
578
+ "thinking": {
579
+ "description": "Thinking-mode override for this message only.",
580
+ "type": [
581
+ "boolean",
582
+ "object"
583
+ ]
584
+ }
585
+ },
586
+ "required": [
587
+ "conversation_uuid",
588
+ "message"
589
+ ],
590
+ "type": "object"
591
+ },
592
+ "stub": true
593
+ },
594
+ {
595
+ "handler": "_h_not_implemented",
596
+ "method": "status",
597
+ "namespace": "conversation",
598
+ "no_auth": false,
599
+ "params_schema": {
600
+ "additionalProperties": false,
601
+ "description": "Running task of a conversation as {task, stream_id}. task is null when idle; stream_id is null when the run was started outside the Host API or its metadata window (1h) has passed.",
602
+ "properties": {
603
+ "conversation_uuid": {
604
+ "minLength": 1,
605
+ "type": "string"
606
+ }
607
+ },
608
+ "required": [
609
+ "conversation_uuid"
610
+ ],
611
+ "type": "object"
612
+ },
613
+ "stub": true
614
+ },
615
+ {
616
+ "handler": "_h_not_implemented",
617
+ "method": "update",
618
+ "namespace": "conversation",
619
+ "no_auth": false,
620
+ "params_schema": {
621
+ "additionalProperties": false,
622
+ "description": "Update a conversation; returns the Conversation.",
623
+ "properties": {
624
+ "conversation_uuid": {
625
+ "minLength": 1,
626
+ "type": "string"
627
+ },
628
+ "is_pinned": {
629
+ "type": "boolean"
630
+ },
631
+ "name": {
632
+ "maxLength": 200,
633
+ "minLength": 1,
634
+ "type": "string"
635
+ },
636
+ "override_model": {
637
+ "description": "Conversation-level model; empty string clears it.",
638
+ "maxLength": 100,
639
+ "type": "string"
640
+ },
641
+ "pinned_agent_id": {
642
+ "description": "Agent client_id bound to the conversation; empty string clears it. When set, conversation.send runs in agent mode on that Agent.",
643
+ "maxLength": 200,
644
+ "type": "string"
645
+ },
646
+ "pinned_mentions": {
647
+ "additionalProperties": false,
648
+ "description": "Sticky @ Executa / # App pins (full replace).",
649
+ "properties": {
650
+ "app_ids": {
651
+ "items": {
652
+ "type": "integer"
653
+ },
654
+ "type": "array"
655
+ },
656
+ "executa_ids": {
657
+ "items": {
658
+ "type": "integer"
659
+ },
660
+ "type": "array"
661
+ }
662
+ },
663
+ "type": "object"
664
+ },
665
+ "thinking": {
666
+ "description": "Conversation-level thinking mode: bool or {enabled, effort?}; empty object clears it.",
667
+ "type": [
668
+ "boolean",
669
+ "object"
670
+ ]
671
+ }
672
+ },
673
+ "required": [
674
+ "conversation_uuid"
675
+ ],
676
+ "type": "object"
677
+ },
678
+ "stub": true
679
+ },
368
680
  {
369
681
  "handler": "_h_not_implemented",
370
682
  "method": "get_token",
@@ -1090,6 +1402,19 @@
1090
1402
  "no_auth": false,
1091
1403
  "stub": false
1092
1404
  },
1405
+ {
1406
+ "handler": "_h_not_implemented",
1407
+ "method": "quota",
1408
+ "namespace": "storage",
1409
+ "no_auth": false,
1410
+ "params_schema": {
1411
+ "additionalProperties": false,
1412
+ "description": "No parameters. Returns the calling USER's global APS quota status — used_bytes / quota_bytes (-1 = unlimited) / entries_count / percent / plan_name / plan_label — aggregated across every scope and app bucket. Quota is enforced per user, not per bucket, so this is the only correct denominator for a storage usage bar. Core (local dev harness) answers not_implemented; clients must degrade silently.",
1413
+ "properties": {},
1414
+ "type": "object"
1415
+ },
1416
+ "stub": true
1417
+ },
1093
1418
  {
1094
1419
  "handler": "_h_storage_set",
1095
1420
  "method": "set",
@@ -1433,5 +1758,5 @@
1433
1758
  }
1434
1759
  ],
1435
1760
  "title": "HostApiMethodTable",
1436
- "version": "0.34.0"
1761
+ "version": "0.36.0"
1437
1762
  }
@@ -173,6 +173,11 @@
173
173
  "agent": {
174
174
  "$ref": "#/$defs/AgentHostApiSpec"
175
175
  },
176
+ "conversation": {
177
+ "default": false,
178
+ "title": "Conversation",
179
+ "type": "boolean"
180
+ },
176
181
  "credentials": {
177
182
  "items": {
178
183
  "type": "string"
@@ -51,6 +51,11 @@
51
51
  "agent": {
52
52
  "$ref": "#/$defs/AgentHostApiSpec"
53
53
  },
54
+ "conversation": {
55
+ "default": false,
56
+ "title": "Conversation",
57
+ "type": "boolean"
58
+ },
54
59
  "credentials": {
55
60
  "items": {
56
61
  "type": "string"
package/package.json CHANGED
@@ -23,5 +23,5 @@
23
23
  "publishConfig": {
24
24
  "access": "public"
25
25
  },
26
- "version": "0.34.0"
26
+ "version": "0.36.0"
27
27
  }