@anna-ai/app-schema 0.33.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.33.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.33.0"
25
+ "version": "0.36.0"
26
26
  }
@@ -1 +1 @@
1
- 0.33.0
1
+ 0.36.0
@@ -39,5 +39,5 @@
39
39
  ],
40
40
  "title": "AnnaAppEvent",
41
41
  "type": "object",
42
- "version": "0.33.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",
@@ -907,6 +1219,168 @@
907
1219
  "no_auth": false,
908
1220
  "stub": false
909
1221
  },
1222
+ {
1223
+ "handler": "_h_not_implemented",
1224
+ "method": "list",
1225
+ "namespace": "share",
1226
+ "no_auth": false,
1227
+ "params_schema": {
1228
+ "additionalProperties": false,
1229
+ "description": "List this (user, app)'s non-revoked publications.",
1230
+ "properties": {
1231
+ "cursor": {
1232
+ "type": [
1233
+ "string",
1234
+ "null"
1235
+ ]
1236
+ },
1237
+ "limit": {
1238
+ "maximum": 100,
1239
+ "minimum": 1,
1240
+ "type": "integer"
1241
+ }
1242
+ },
1243
+ "type": "object"
1244
+ },
1245
+ "stub": true
1246
+ },
1247
+ {
1248
+ "handler": "_h_not_implemented",
1249
+ "method": "publish",
1250
+ "namespace": "share",
1251
+ "no_auth": false,
1252
+ "params_schema": {
1253
+ "additionalProperties": false,
1254
+ "description": "Publish rendered static files as a platform-hosted long-lived public URL. Requires manifest ui.host_api.share = true.",
1255
+ "properties": {
1256
+ "description": {
1257
+ "maxLength": 500,
1258
+ "type": [
1259
+ "string",
1260
+ "null"
1261
+ ]
1262
+ },
1263
+ "entry": {
1264
+ "description": "Entry document — must be in `paths`, text/html.",
1265
+ "minLength": 1,
1266
+ "type": "string"
1267
+ },
1268
+ "expires_at": {
1269
+ "description": "ISO 8601 expiry; omit/null = never expires.",
1270
+ "type": [
1271
+ "string",
1272
+ "null"
1273
+ ]
1274
+ },
1275
+ "path_map": {
1276
+ "description": "Optional explicit {aps_path: relative_path} mapping. Default: longest common directory prefix is stripped.",
1277
+ "type": [
1278
+ "object",
1279
+ "null"
1280
+ ]
1281
+ },
1282
+ "paths": {
1283
+ "description": "APS object paths (scope=app self) to snapshot into the public share. Must be finalized objects.",
1284
+ "items": {
1285
+ "minLength": 1,
1286
+ "type": "string"
1287
+ },
1288
+ "maxItems": 200,
1289
+ "minItems": 1,
1290
+ "type": "array"
1291
+ },
1292
+ "pub_id": {
1293
+ "description": "Existing publication id → republish (URL unchanged, version += 1). Omit for a new publication.",
1294
+ "type": [
1295
+ "string",
1296
+ "null"
1297
+ ]
1298
+ },
1299
+ "thumbnail_path": {
1300
+ "description": "OG image — must be in `paths` (png/jpeg/webp).",
1301
+ "type": [
1302
+ "string",
1303
+ "null"
1304
+ ]
1305
+ },
1306
+ "title": {
1307
+ "maxLength": 200,
1308
+ "minLength": 1,
1309
+ "type": "string"
1310
+ }
1311
+ },
1312
+ "required": [
1313
+ "paths",
1314
+ "entry",
1315
+ "title"
1316
+ ],
1317
+ "type": "object"
1318
+ },
1319
+ "stub": true
1320
+ },
1321
+ {
1322
+ "handler": "_h_not_implemented",
1323
+ "method": "revoke",
1324
+ "namespace": "share",
1325
+ "no_auth": false,
1326
+ "params_schema": {
1327
+ "additionalProperties": false,
1328
+ "description": "Revoke a publication — the public URL turns into a tombstone immediately (CDN residue <= 5 min); quota bytes are released.",
1329
+ "properties": {
1330
+ "pub_id": {
1331
+ "minLength": 1,
1332
+ "type": "string"
1333
+ }
1334
+ },
1335
+ "required": [
1336
+ "pub_id"
1337
+ ],
1338
+ "type": "object"
1339
+ },
1340
+ "stub": true
1341
+ },
1342
+ {
1343
+ "handler": "_h_not_implemented",
1344
+ "method": "update",
1345
+ "namespace": "share",
1346
+ "no_auth": false,
1347
+ "params_schema": {
1348
+ "additionalProperties": false,
1349
+ "description": "Update publication metadata without touching the snapshot.",
1350
+ "properties": {
1351
+ "description": {
1352
+ "maxLength": 500,
1353
+ "type": [
1354
+ "string",
1355
+ "null"
1356
+ ]
1357
+ },
1358
+ "expires_at": {
1359
+ "description": "ISO 8601; null clears the expiry.",
1360
+ "type": [
1361
+ "string",
1362
+ "null"
1363
+ ]
1364
+ },
1365
+ "pub_id": {
1366
+ "minLength": 1,
1367
+ "type": "string"
1368
+ },
1369
+ "title": {
1370
+ "maxLength": 200,
1371
+ "type": [
1372
+ "string",
1373
+ "null"
1374
+ ]
1375
+ }
1376
+ },
1377
+ "required": [
1378
+ "pub_id"
1379
+ ],
1380
+ "type": "object"
1381
+ },
1382
+ "stub": true
1383
+ },
910
1384
  {
911
1385
  "handler": "_h_storage_delete",
912
1386
  "method": "delete",
@@ -928,6 +1402,19 @@
928
1402
  "no_auth": false,
929
1403
  "stub": false
930
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
+ },
931
1418
  {
932
1419
  "handler": "_h_storage_set",
933
1420
  "method": "set",
@@ -1271,5 +1758,5 @@
1271
1758
  }
1272
1759
  ],
1273
1760
  "title": "HostApiMethodTable",
1274
- "version": "0.33.0"
1761
+ "version": "0.36.0"
1275
1762
  }
@@ -173,12 +173,22 @@
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"
179
184
  },
180
185
  "title": "Credentials",
181
186
  "type": "array"
187
+ },
188
+ "share": {
189
+ "default": false,
190
+ "title": "Share",
191
+ "type": "boolean"
182
192
  }
183
193
  },
184
194
  "title": "UiHostApiSpec",
@@ -51,12 +51,22 @@
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"
57
62
  },
58
63
  "title": "Credentials",
59
64
  "type": "array"
65
+ },
66
+ "share": {
67
+ "default": false,
68
+ "title": "Share",
69
+ "type": "boolean"
60
70
  }
61
71
  },
62
72
  "title": "UiHostApiSpec",
package/package.json CHANGED
@@ -23,5 +23,5 @@
23
23
  "publishConfig": {
24
24
  "access": "public"
25
25
  },
26
- "version": "0.33.0"
26
+ "version": "0.36.0"
27
27
  }