@mhome/conversation-protocol 1.2.0 → 2.0.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 +10 -0
- package/fixtures/execution/admission.v1.json +37 -0
- package/fixtures/execution/app-facade-prepare.v1.json +43 -0
- package/fixtures/execution/app-facade-prepared.v1.json +53 -0
- package/fixtures/execution/app-facade-user-action.v1.json +54 -0
- package/fixtures/execution/checkpoint-purge-ack.v1.json +23 -0
- package/fixtures/execution/checkpoint-purge.v1.json +26 -0
- package/fixtures/execution/completed-event.v1.json +62 -0
- package/fixtures/execution/enqueue.v1.json +213 -0
- package/fixtures/execution/event-ack.v1.json +24 -0
- package/fixtures/execution/failed-event.v1.json +61 -0
- package/fixtures/execution/interaction-required-event.v1.json +73 -0
- package/fixtures/execution/observation.v1.json +39 -0
- package/manifest/targets.v1.json +1 -1
- package/package.json +1 -1
- package/protocol.json +3 -2
- package/schema/execution/envelope.v1.schema.json +1846 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metadata": {
|
|
3
|
+
"version": 1,
|
|
4
|
+
"message_id": "message-2",
|
|
5
|
+
"correlation_id": "correlation-1",
|
|
6
|
+
"causation_id": "message-1",
|
|
7
|
+
"sent_at_unix_ms": 1700000001000,
|
|
8
|
+
"dispatch": {
|
|
9
|
+
"dispatch_id": "dispatch-1",
|
|
10
|
+
"agent_session_id": "agent-session-1"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"payload": {
|
|
14
|
+
"family": "event",
|
|
15
|
+
"payload": {
|
|
16
|
+
"event": {
|
|
17
|
+
"id": "event-1",
|
|
18
|
+
"sequence": 2,
|
|
19
|
+
"context": {
|
|
20
|
+
"scope": { "tenant_id": "tenant-1", "scope_id": "scope-1" },
|
|
21
|
+
"actor": { "user_id": "user-1", "client_id": "client-1" },
|
|
22
|
+
"thread_id": "thread-1",
|
|
23
|
+
"run_id": "run-1",
|
|
24
|
+
"operation_id": "operation-1",
|
|
25
|
+
"deadline_unix_ms": null,
|
|
26
|
+
"traceparent": null,
|
|
27
|
+
"surface_id": "cs1:cp:dXNlci0x"
|
|
28
|
+
},
|
|
29
|
+
"event": {
|
|
30
|
+
"type": "interaction_required",
|
|
31
|
+
"batch_id": "batch-1",
|
|
32
|
+
"actions": [
|
|
33
|
+
{
|
|
34
|
+
"action_id": "action-1",
|
|
35
|
+
"operation_id": "operation-1",
|
|
36
|
+
"preview": {
|
|
37
|
+
"actionCode": "dashboard.canvas.delete",
|
|
38
|
+
"title": "Delete canvas",
|
|
39
|
+
"message": "Delete this canvas?",
|
|
40
|
+
"tone": "danger",
|
|
41
|
+
"details": [],
|
|
42
|
+
"proceedLabel": "Delete",
|
|
43
|
+
"rejectLabel": "Cancel"
|
|
44
|
+
},
|
|
45
|
+
"payload": { "canvasId": "canvas-1" },
|
|
46
|
+
"revision": 1,
|
|
47
|
+
"approval": "when_interactive",
|
|
48
|
+
"interaction_kind": "approval"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"usage": {
|
|
52
|
+
"model_requests": 2,
|
|
53
|
+
"reported_model_requests": 2,
|
|
54
|
+
"input_tokens": 30,
|
|
55
|
+
"output_tokens": 6,
|
|
56
|
+
"cached_input_tokens": null,
|
|
57
|
+
"reasoning_output_tokens": null,
|
|
58
|
+
"peak_input_tokens": 20,
|
|
59
|
+
"credits": 3,
|
|
60
|
+
"tool_calls": 1,
|
|
61
|
+
"window_truncations": 0,
|
|
62
|
+
"trimmed_messages": 0
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"checkpoint": {
|
|
67
|
+
"object_key": "checkpoints/abc.json",
|
|
68
|
+
"sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
69
|
+
"format_version": 1
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metadata": {
|
|
3
|
+
"version": 1,
|
|
4
|
+
"message_id": "message-4",
|
|
5
|
+
"correlation_id": "correlation-1",
|
|
6
|
+
"causation_id": "message-1",
|
|
7
|
+
"sent_at_unix_ms": 1700000000250,
|
|
8
|
+
"dispatch": {
|
|
9
|
+
"dispatch_id": "dispatch-1",
|
|
10
|
+
"agent_session_id": "agent-session-1"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"payload": {
|
|
14
|
+
"family": "observation",
|
|
15
|
+
"payload": {
|
|
16
|
+
"context": {
|
|
17
|
+
"scope": {
|
|
18
|
+
"tenant_id": "tenant-1",
|
|
19
|
+
"scope_id": "scope-1"
|
|
20
|
+
},
|
|
21
|
+
"actor": {
|
|
22
|
+
"user_id": "user-1",
|
|
23
|
+
"client_id": "client-1"
|
|
24
|
+
},
|
|
25
|
+
"thread_id": "thread-1",
|
|
26
|
+
"run_id": "run-1",
|
|
27
|
+
"operation_id": "operation-1",
|
|
28
|
+
"deadline_unix_ms": null,
|
|
29
|
+
"traceparent": null,
|
|
30
|
+
"surface_id": "cs1:cp:dXNlci0x"
|
|
31
|
+
},
|
|
32
|
+
"observation": {
|
|
33
|
+
"type": "companion_text",
|
|
34
|
+
"content": "I will check that now.",
|
|
35
|
+
"append": false
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
package/manifest/targets.v1.json
CHANGED
package/package.json
CHANGED
package/protocol.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"protocol": "mhome.conversation",
|
|
3
|
-
"contractVersion": "
|
|
3
|
+
"contractVersion": "2.0.0",
|
|
4
4
|
"manifest": "manifest/targets.v1.json",
|
|
5
5
|
"schemas": {
|
|
6
|
-
"frame": "schema/conversation-frame.v2.schema.json"
|
|
6
|
+
"frame": "schema/conversation-frame.v2.schema.json",
|
|
7
|
+
"execution": "schema/execution/envelope.v1.schema.json"
|
|
7
8
|
},
|
|
8
9
|
"fixtures": {
|
|
9
10
|
"valid": "fixtures"
|