@mhome/conversation-protocol 5.7.0 → 5.8.1

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.
@@ -0,0 +1,88 @@
1
+ {
2
+ "metadata": {
3
+ "version": 1,
4
+ "message_id": "message-1",
5
+ "correlation_id": "correlation-1",
6
+ "causation_id": null,
7
+ "sent_at_unix_ms": 1700000000000,
8
+ "dispatch": {
9
+ "dispatch_id": "dispatch-1",
10
+ "agent_session_id": "agent-session-1"
11
+ }
12
+ },
13
+ "payload": {
14
+ "family": "suggestion",
15
+ "payload": {
16
+ "context": {
17
+ "space": {
18
+ "tenant_id": "tenant-1",
19
+ "space_id": "space-1"
20
+ },
21
+ "runId": "suggestion-run-1",
22
+ "operationId": "suggestion-operation-1",
23
+ "trigger": {
24
+ "type": "SCHEDULED"
25
+ },
26
+ "deadlineUnixMs": 1700000600000
27
+ },
28
+ "payload": {
29
+ "type": "generate",
30
+ "input": {
31
+ "space": {
32
+ "tenant_id": "tenant-1",
33
+ "space_id": "space-1"
34
+ },
35
+ "focus": null,
36
+ "evidence": [],
37
+ "pending": [],
38
+ "priorSummary": null
39
+ },
40
+ "facts": {
41
+ "user_space": "",
42
+ "identity": "",
43
+ "memory": "",
44
+ "integration_guide": "",
45
+ "installed_integrations": "",
46
+ "space_integrations": "",
47
+ "home_timezone": "UTC",
48
+ "display_units": {}
49
+ },
50
+ "llm_plan": {
51
+ "revision": "1700000000000",
52
+ "route": {
53
+ "backend": "openrouter",
54
+ "profile": "cloud_openrouter",
55
+ "model": "openai/gpt-5.4-mini",
56
+ "provider_preferences": [
57
+ "OpenAI"
58
+ ],
59
+ "temperature": 0.5,
60
+ "context_window_tokens": 128000,
61
+ "cache_control": true,
62
+ "reasoning_effort": null,
63
+ "model_snapshot": {
64
+ "capabilities": {
65
+ "input": [
66
+ "image"
67
+ ],
68
+ "tool_calling": true,
69
+ "structured_output": true
70
+ },
71
+ "generation_support": {
72
+ "temperature": true,
73
+ "maxTokens": true,
74
+ "thinking": true,
75
+ "reasoningEfforts": [
76
+ "high"
77
+ ],
78
+ "temperatureWithReasoning": true,
79
+ "temperatureMax": null,
80
+ "maxOutputTokens": null
81
+ }
82
+ }
83
+ }
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "manifest": "mhome.conversation.targets.v1",
3
- "contractVersion": "5.7.0",
3
+ "contractVersion": "5.8.1",
4
4
  "requestTargets": [
5
5
  "/chat/control/get",
6
6
  "/chat/thread/list",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mhome/conversation-protocol",
3
- "version": "5.7.0",
3
+ "version": "5.8.1",
4
4
  "description": "Build-time protocol artifacts for mhome.conversation",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
package/protocol.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "protocol": "mhome.conversation",
3
- "contractVersion": "5.7.0",
3
+ "contractVersion": "5.8.1",
4
4
  "manifest": "manifest/targets.v1.json",
5
5
  "schemas": {
6
6
  "frame": "schema/conversation-frame.v2.schema.json",
@@ -1650,6 +1650,22 @@
1650
1650
  "$ref": "#/$defs/app_facade_response"
1651
1651
  }
1652
1652
  }
1653
+ },
1654
+ {
1655
+ "type": "object",
1656
+ "additionalProperties": false,
1657
+ "required": [
1658
+ "family",
1659
+ "payload"
1660
+ ],
1661
+ "properties": {
1662
+ "family": {
1663
+ "const": "suggestion"
1664
+ },
1665
+ "payload": {
1666
+ "$ref": "#/$defs/suggestion_message"
1667
+ }
1668
+ }
1653
1669
  }
1654
1670
  ]
1655
1671
  },
@@ -2270,6 +2286,361 @@
2270
2286
  "$ref": "#/$defs/message"
2271
2287
  }
2272
2288
  }
2289
+ },
2290
+ "suggestion_Space": {
2291
+ "type": "object",
2292
+ "properties": {
2293
+ "tenant_id": {
2294
+ "type": "string",
2295
+ "minLength": 1,
2296
+ "maxLength": 256,
2297
+ "allOf": [
2298
+ {
2299
+ "pattern": "^[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000](?:[\\s\\S]*[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000])?$"
2300
+ },
2301
+ {
2302
+ "not": {
2303
+ "pattern": "[\\u0000-\\u001f\\u007f-\\u009f]"
2304
+ }
2305
+ }
2306
+ ]
2307
+ },
2308
+ "space_id": {
2309
+ "type": "string",
2310
+ "minLength": 1,
2311
+ "maxLength": 256,
2312
+ "allOf": [
2313
+ {
2314
+ "pattern": "^[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000](?:[\\s\\S]*[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000])?$"
2315
+ },
2316
+ {
2317
+ "not": {
2318
+ "pattern": "[\\u0000-\\u001f\\u007f-\\u009f]"
2319
+ }
2320
+ }
2321
+ ]
2322
+ }
2323
+ },
2324
+ "required": [
2325
+ "tenant_id",
2326
+ "space_id"
2327
+ ],
2328
+ "additionalProperties": false
2329
+ },
2330
+ "suggestion_Trigger": {
2331
+ "oneOf": [
2332
+ {
2333
+ "type": "object",
2334
+ "properties": {
2335
+ "type": {
2336
+ "const": "SCHEDULED"
2337
+ }
2338
+ },
2339
+ "required": [
2340
+ "type"
2341
+ ],
2342
+ "additionalProperties": false
2343
+ },
2344
+ {
2345
+ "type": "object",
2346
+ "properties": {
2347
+ "type": {
2348
+ "const": "EXPLICIT"
2349
+ },
2350
+ "userId": {
2351
+ "type": "string",
2352
+ "minLength": 1,
2353
+ "maxLength": 256,
2354
+ "allOf": [
2355
+ {
2356
+ "pattern": "^[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000](?:[\\s\\S]*[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000])?$"
2357
+ },
2358
+ {
2359
+ "not": {
2360
+ "pattern": "[\\u0000-\\u001f\\u007f-\\u009f]"
2361
+ }
2362
+ }
2363
+ ]
2364
+ }
2365
+ },
2366
+ "required": [
2367
+ "type",
2368
+ "userId"
2369
+ ],
2370
+ "additionalProperties": false
2371
+ }
2372
+ ]
2373
+ },
2374
+ "suggestion_SuggestionInvocationContext": {
2375
+ "type": "object",
2376
+ "properties": {
2377
+ "space": {
2378
+ "$ref": "#/$defs/suggestion_Space"
2379
+ },
2380
+ "runId": {
2381
+ "type": "string",
2382
+ "minLength": 1,
2383
+ "maxLength": 256,
2384
+ "allOf": [
2385
+ {
2386
+ "pattern": "^[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000](?:[\\s\\S]*[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000])?$"
2387
+ },
2388
+ {
2389
+ "not": {
2390
+ "pattern": "[\\u0000-\\u001f\\u007f-\\u009f]"
2391
+ }
2392
+ }
2393
+ ]
2394
+ },
2395
+ "operationId": {
2396
+ "type": "string",
2397
+ "minLength": 1,
2398
+ "maxLength": 256,
2399
+ "allOf": [
2400
+ {
2401
+ "pattern": "^[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000](?:[\\s\\S]*[^\\u0009-\\u000D\\u0020\\u0085\\u00A0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000])?$"
2402
+ },
2403
+ {
2404
+ "not": {
2405
+ "pattern": "[\\u0000-\\u001f\\u007f-\\u009f]"
2406
+ }
2407
+ }
2408
+ ]
2409
+ },
2410
+ "trigger": {
2411
+ "$ref": "#/$defs/suggestion_Trigger"
2412
+ },
2413
+ "deadlineUnixMs": {
2414
+ "type": "integer",
2415
+ "minimum": 1,
2416
+ "maximum": 9007199254740991
2417
+ },
2418
+ "traceparent": {
2419
+ "anyOf": [
2420
+ {
2421
+ "type": "string"
2422
+ },
2423
+ {
2424
+ "type": "null"
2425
+ }
2426
+ ]
2427
+ }
2428
+ },
2429
+ "required": [
2430
+ "space",
2431
+ "runId",
2432
+ "operationId",
2433
+ "trigger",
2434
+ "deadlineUnixMs"
2435
+ ],
2436
+ "additionalProperties": false
2437
+ },
2438
+ "suggestion_error": {
2439
+ "type": "object",
2440
+ "additionalProperties": false,
2441
+ "required": [
2442
+ "kind",
2443
+ "message"
2444
+ ],
2445
+ "properties": {
2446
+ "kind": {
2447
+ "enum": [
2448
+ "invalid_request",
2449
+ "unauthorized",
2450
+ "unavailable",
2451
+ "rate_limited",
2452
+ "context_limit",
2453
+ "credit_budget_exceeded",
2454
+ "timeout",
2455
+ "cancelled",
2456
+ "internal"
2457
+ ]
2458
+ },
2459
+ "message": {
2460
+ "type": "string"
2461
+ },
2462
+ "retry_after_ms": {
2463
+ "type": [
2464
+ "integer",
2465
+ "null"
2466
+ ],
2467
+ "minimum": 0
2468
+ }
2469
+ }
2470
+ },
2471
+ "suggestion_facts": {
2472
+ "type": "object",
2473
+ "additionalProperties": false,
2474
+ "required": [
2475
+ "home_timezone",
2476
+ "user_space",
2477
+ "identity",
2478
+ "memory",
2479
+ "integration_guide",
2480
+ "installed_integrations",
2481
+ "space_integrations",
2482
+ "display_units"
2483
+ ],
2484
+ "properties": {
2485
+ "home_timezone": {
2486
+ "type": "string"
2487
+ },
2488
+ "user_space": {
2489
+ "type": "string"
2490
+ },
2491
+ "identity": {
2492
+ "type": "string"
2493
+ },
2494
+ "memory": {
2495
+ "type": "string"
2496
+ },
2497
+ "integration_guide": {
2498
+ "type": "string"
2499
+ },
2500
+ "installed_integrations": {
2501
+ "type": "string"
2502
+ },
2503
+ "space_integrations": {
2504
+ "type": "string"
2505
+ },
2506
+ "display_units": {
2507
+ "type": "object",
2508
+ "additionalProperties": {
2509
+ "type": "string"
2510
+ }
2511
+ }
2512
+ }
2513
+ },
2514
+ "suggestion_failure": {
2515
+ "type": "object",
2516
+ "additionalProperties": false,
2517
+ "required": [
2518
+ "error"
2519
+ ],
2520
+ "properties": {
2521
+ "candidate_index": {
2522
+ "type": [
2523
+ "integer",
2524
+ "null"
2525
+ ],
2526
+ "minimum": 0
2527
+ },
2528
+ "error": {
2529
+ "$ref": "#/$defs/suggestion_error"
2530
+ }
2531
+ }
2532
+ },
2533
+ "suggestion_message": {
2534
+ "type": "object",
2535
+ "additionalProperties": false,
2536
+ "required": [
2537
+ "context",
2538
+ "payload"
2539
+ ],
2540
+ "properties": {
2541
+ "context": {
2542
+ "$ref": "#/$defs/suggestion_SuggestionInvocationContext"
2543
+ },
2544
+ "payload": {
2545
+ "oneOf": [
2546
+ {
2547
+ "type": "object",
2548
+ "additionalProperties": false,
2549
+ "required": [
2550
+ "type",
2551
+ "input",
2552
+ "facts",
2553
+ "llm_plan"
2554
+ ],
2555
+ "properties": {
2556
+ "type": {
2557
+ "const": "generate"
2558
+ },
2559
+ "input": {
2560
+ "type": "object"
2561
+ },
2562
+ "facts": {
2563
+ "$ref": "#/$defs/suggestion_facts"
2564
+ },
2565
+ "llm_plan": {
2566
+ "$ref": "#/$defs/llm_execution_plan"
2567
+ }
2568
+ }
2569
+ },
2570
+ {
2571
+ "type": "object",
2572
+ "additionalProperties": false,
2573
+ "required": [
2574
+ "type"
2575
+ ],
2576
+ "properties": {
2577
+ "type": {
2578
+ "const": "cancel"
2579
+ }
2580
+ }
2581
+ },
2582
+ {
2583
+ "type": "object",
2584
+ "additionalProperties": false,
2585
+ "required": [
2586
+ "type",
2587
+ "request"
2588
+ ],
2589
+ "properties": {
2590
+ "type": {
2591
+ "const": "read"
2592
+ },
2593
+ "request": {
2594
+ "$ref": "#/$defs/facade_request"
2595
+ }
2596
+ }
2597
+ },
2598
+ {
2599
+ "type": "object",
2600
+ "additionalProperties": false,
2601
+ "required": [
2602
+ "type",
2603
+ "result",
2604
+ "failures",
2605
+ "usage"
2606
+ ],
2607
+ "properties": {
2608
+ "type": {
2609
+ "const": "completed"
2610
+ },
2611
+ "result": {
2612
+ "type": "object"
2613
+ },
2614
+ "failures": {
2615
+ "type": "array",
2616
+ "items": {
2617
+ "$ref": "#/$defs/suggestion_failure"
2618
+ }
2619
+ },
2620
+ "usage": {
2621
+ "$ref": "#/$defs/usage"
2622
+ }
2623
+ }
2624
+ },
2625
+ {
2626
+ "type": "object",
2627
+ "additionalProperties": false,
2628
+ "required": [
2629
+ "type",
2630
+ "error"
2631
+ ],
2632
+ "properties": {
2633
+ "type": {
2634
+ "const": "failed"
2635
+ },
2636
+ "error": {
2637
+ "$ref": "#/$defs/suggestion_error"
2638
+ }
2639
+ }
2640
+ }
2641
+ ]
2642
+ }
2643
+ }
2273
2644
  }
2274
2645
  }
2275
2646
  }