@mhome/conversation-protocol 5.3.2 → 5.6.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/fixtures/catalog.event.json +9 -1
- package/fixtures/execution/admission.v1.json +5 -5
- package/fixtures/execution/app-facade-prepare.v1.json +5 -5
- package/fixtures/execution/checkpoint-purge.v1.json +5 -5
- package/fixtures/execution/completed-event.v1.json +5 -5
- package/fixtures/execution/enqueue.v1.json +7 -7
- package/fixtures/execution/failed-event.v1.json +5 -5
- package/fixtures/execution/interaction-required-event.v1.json +5 -5
- package/fixtures/execution/observation.v1.json +5 -5
- package/fixtures/execution/steer-resume.v1.json +112 -0
- package/fixtures/execution/steer.v1.json +67 -0
- package/fixtures/execution/steered-event.v1.json +72 -0
- package/fixtures/execution/user-action-required-event.v1.json +5 -5
- package/fixtures/queue.event.json +4 -1
- package/fixtures/session.event.json +4 -1
- package/fixtures/talk/changed.event.json +1 -1
- package/fixtures/talk/request-get.response.json +1 -1
- package/fixtures/talk/view-agent_failed.response.json +1 -1
- package/fixtures/talk/view-completed.response.json +1 -1
- package/fixtures/talk/view-get.response.json +1 -1
- package/fixtures/talk/view-interrupted.response.json +1 -1
- package/fixtures/talk/view-system_failed.response.json +1 -1
- package/fixtures/thread-list.response.json +18 -2
- package/fixtures/thread-load-steered.response.json +64 -0
- package/fixtures/turn-submit-steering.response.json +60 -0
- package/fixtures/turn-submit.request.json +2 -1
- package/manifest/targets.v1.json +1 -1
- package/package.json +1 -1
- package/protocol.json +1 -1
- package/schema/conversation-frame.v2.schema.json +23 -2
- package/schema/execution/envelope.v1.schema.json +103 -38
- package/schema/pod-talk.v1.schema.json +4 -4
|
@@ -9,7 +9,15 @@
|
|
|
9
9
|
"data": {
|
|
10
10
|
"activeThreadId": "thread-2",
|
|
11
11
|
"threads": [
|
|
12
|
-
{
|
|
12
|
+
{
|
|
13
|
+
"threadId": "thread-2",
|
|
14
|
+
"title": "New conversation",
|
|
15
|
+
"state": "active",
|
|
16
|
+
"createdAt": "2026-08-22T00:00:00Z",
|
|
17
|
+
"updatedAt": "2026-08-22T00:00:00Z",
|
|
18
|
+
"archivedAt": null,
|
|
19
|
+
"purgeAfter": null
|
|
20
|
+
}
|
|
13
21
|
]
|
|
14
22
|
}
|
|
15
23
|
}
|
|
@@ -15,10 +15,6 @@
|
|
|
15
15
|
"payload": {
|
|
16
16
|
"type": "accepted",
|
|
17
17
|
"context": {
|
|
18
|
-
"scope": {
|
|
19
|
-
"tenant_id": "tenant-1",
|
|
20
|
-
"scope_id": "scope-1"
|
|
21
|
-
},
|
|
22
18
|
"actor": {
|
|
23
19
|
"principal": {
|
|
24
20
|
"kind": "user",
|
|
@@ -32,7 +28,11 @@
|
|
|
32
28
|
"operation_id": "operation-1",
|
|
33
29
|
"deadline_unix_ms": null,
|
|
34
30
|
"traceparent": null,
|
|
35
|
-
"surface_id": "cs1:cp:dXNlci0x"
|
|
31
|
+
"surface_id": "cs1:cp:dXNlci0x",
|
|
32
|
+
"space": {
|
|
33
|
+
"tenant_id": "tenant-1",
|
|
34
|
+
"space_id": "scope-1"
|
|
35
|
+
}
|
|
36
36
|
},
|
|
37
37
|
"disposition": "queued",
|
|
38
38
|
"queue_revision": 1
|
|
@@ -15,10 +15,6 @@
|
|
|
15
15
|
"payload": {
|
|
16
16
|
"phase": "prepare",
|
|
17
17
|
"context": {
|
|
18
|
-
"scope": {
|
|
19
|
-
"tenant_id": "tenant-1",
|
|
20
|
-
"scope_id": "scope-1"
|
|
21
|
-
},
|
|
22
18
|
"actor": {
|
|
23
19
|
"principal": {
|
|
24
20
|
"kind": "user",
|
|
@@ -32,7 +28,11 @@
|
|
|
32
28
|
"operation_id": "operation-1",
|
|
33
29
|
"deadline_unix_ms": null,
|
|
34
30
|
"traceparent": null,
|
|
35
|
-
"surface_id": "cs1:cp:dXNlci0x"
|
|
31
|
+
"surface_id": "cs1:cp:dXNlci0x",
|
|
32
|
+
"space": {
|
|
33
|
+
"tenant_id": "tenant-1",
|
|
34
|
+
"space_id": "scope-1"
|
|
35
|
+
}
|
|
36
36
|
},
|
|
37
37
|
"request": {
|
|
38
38
|
"operation_id": "run-1:step:0:tool:call-1",
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"payload": {
|
|
16
16
|
"purge_id": "purge-1",
|
|
17
17
|
"conversation_key": "conversation-1",
|
|
18
|
-
"scope": {
|
|
19
|
-
"tenant_id": "tenant-1",
|
|
20
|
-
"scope_id": "scope-1"
|
|
21
|
-
},
|
|
22
18
|
"thread_id": "thread-1",
|
|
23
|
-
"surface_id": "cs1:cp:dXNlci0x"
|
|
19
|
+
"surface_id": "cs1:cp:dXNlci0x",
|
|
20
|
+
"space": {
|
|
21
|
+
"tenant_id": "tenant-1",
|
|
22
|
+
"space_id": "scope-1"
|
|
23
|
+
}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -17,10 +17,6 @@
|
|
|
17
17
|
"id": "event-1",
|
|
18
18
|
"sequence": 2,
|
|
19
19
|
"context": {
|
|
20
|
-
"scope": {
|
|
21
|
-
"tenant_id": "tenant-1",
|
|
22
|
-
"scope_id": "scope-1"
|
|
23
|
-
},
|
|
24
20
|
"actor": {
|
|
25
21
|
"principal": {
|
|
26
22
|
"kind": "user",
|
|
@@ -34,7 +30,11 @@
|
|
|
34
30
|
"operation_id": "operation-1",
|
|
35
31
|
"deadline_unix_ms": null,
|
|
36
32
|
"traceparent": null,
|
|
37
|
-
"surface_id": "cs1:cp:dXNlci0x"
|
|
33
|
+
"surface_id": "cs1:cp:dXNlci0x",
|
|
34
|
+
"space": {
|
|
35
|
+
"tenant_id": "tenant-1",
|
|
36
|
+
"space_id": "scope-1"
|
|
37
|
+
}
|
|
38
38
|
},
|
|
39
39
|
"event": {
|
|
40
40
|
"type": "completed",
|
|
@@ -16,10 +16,6 @@
|
|
|
16
16
|
"command": {
|
|
17
17
|
"type": "enqueue",
|
|
18
18
|
"context": {
|
|
19
|
-
"scope": {
|
|
20
|
-
"tenant_id": "tenant-1",
|
|
21
|
-
"scope_id": "scope-1"
|
|
22
|
-
},
|
|
23
19
|
"actor": {
|
|
24
20
|
"principal": {
|
|
25
21
|
"kind": "user",
|
|
@@ -33,7 +29,11 @@
|
|
|
33
29
|
"operation_id": "operation-1",
|
|
34
30
|
"deadline_unix_ms": null,
|
|
35
31
|
"traceparent": null,
|
|
36
|
-
"surface_id": "cs1:cp:dXNlci0x"
|
|
32
|
+
"surface_id": "cs1:cp:dXNlci0x",
|
|
33
|
+
"space": {
|
|
34
|
+
"tenant_id": "tenant-1",
|
|
35
|
+
"space_id": "scope-1"
|
|
36
|
+
}
|
|
37
37
|
},
|
|
38
38
|
"message": {
|
|
39
39
|
"role": "user",
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"context_generation": {
|
|
57
|
-
"
|
|
57
|
+
"user_space": "scope-1",
|
|
58
58
|
"identity": "identity-1",
|
|
59
59
|
"memory": "memory-1",
|
|
60
60
|
"integration_guide": "guide-1",
|
|
61
61
|
"installed_integrations": "installed-1",
|
|
62
|
-
"
|
|
62
|
+
"space_integrations": "scope-integrations-1"
|
|
63
63
|
},
|
|
64
64
|
"llm_plan": {
|
|
65
65
|
"revision": "1700000000000",
|
|
@@ -17,10 +17,6 @@
|
|
|
17
17
|
"id": "event-2",
|
|
18
18
|
"sequence": 3,
|
|
19
19
|
"context": {
|
|
20
|
-
"scope": {
|
|
21
|
-
"tenant_id": "tenant-1",
|
|
22
|
-
"scope_id": "scope-1"
|
|
23
|
-
},
|
|
24
20
|
"actor": {
|
|
25
21
|
"principal": {
|
|
26
22
|
"kind": "user",
|
|
@@ -34,7 +30,11 @@
|
|
|
34
30
|
"operation_id": "operation-1",
|
|
35
31
|
"deadline_unix_ms": null,
|
|
36
32
|
"traceparent": null,
|
|
37
|
-
"surface_id": "cs1:cp:dXNlci0x"
|
|
33
|
+
"surface_id": "cs1:cp:dXNlci0x",
|
|
34
|
+
"space": {
|
|
35
|
+
"tenant_id": "tenant-1",
|
|
36
|
+
"space_id": "scope-1"
|
|
37
|
+
}
|
|
38
38
|
},
|
|
39
39
|
"event": {
|
|
40
40
|
"type": "failed",
|
|
@@ -17,10 +17,6 @@
|
|
|
17
17
|
"id": "event-1",
|
|
18
18
|
"sequence": 2,
|
|
19
19
|
"context": {
|
|
20
|
-
"scope": {
|
|
21
|
-
"tenant_id": "tenant-1",
|
|
22
|
-
"scope_id": "scope-1"
|
|
23
|
-
},
|
|
24
20
|
"actor": {
|
|
25
21
|
"principal": {
|
|
26
22
|
"kind": "user",
|
|
@@ -34,7 +30,11 @@
|
|
|
34
30
|
"operation_id": "operation-1",
|
|
35
31
|
"deadline_unix_ms": null,
|
|
36
32
|
"traceparent": null,
|
|
37
|
-
"surface_id": "cs1:cp:dXNlci0x"
|
|
33
|
+
"surface_id": "cs1:cp:dXNlci0x",
|
|
34
|
+
"space": {
|
|
35
|
+
"tenant_id": "tenant-1",
|
|
36
|
+
"space_id": "scope-1"
|
|
37
|
+
}
|
|
38
38
|
},
|
|
39
39
|
"event": {
|
|
40
40
|
"type": "interaction_required",
|
|
@@ -14,10 +14,6 @@
|
|
|
14
14
|
"family": "observation",
|
|
15
15
|
"payload": {
|
|
16
16
|
"context": {
|
|
17
|
-
"scope": {
|
|
18
|
-
"tenant_id": "tenant-1",
|
|
19
|
-
"scope_id": "scope-1"
|
|
20
|
-
},
|
|
21
17
|
"actor": {
|
|
22
18
|
"principal": {
|
|
23
19
|
"kind": "user",
|
|
@@ -31,7 +27,11 @@
|
|
|
31
27
|
"operation_id": "operation-1",
|
|
32
28
|
"deadline_unix_ms": null,
|
|
33
29
|
"traceparent": null,
|
|
34
|
-
"surface_id": "cs1:cp:dXNlci0x"
|
|
30
|
+
"surface_id": "cs1:cp:dXNlci0x",
|
|
31
|
+
"space": {
|
|
32
|
+
"tenant_id": "tenant-1",
|
|
33
|
+
"space_id": "scope-1"
|
|
34
|
+
}
|
|
35
35
|
},
|
|
36
36
|
"observation": {
|
|
37
37
|
"type": "companion_text",
|
|
@@ -0,0 +1,112 @@
|
|
|
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": "command",
|
|
15
|
+
"payload": {
|
|
16
|
+
"command": {
|
|
17
|
+
"type": "steer",
|
|
18
|
+
"context": {
|
|
19
|
+
"actor": {
|
|
20
|
+
"principal": {
|
|
21
|
+
"kind": "user",
|
|
22
|
+
"userId": "user-1"
|
|
23
|
+
},
|
|
24
|
+
"client_id": "client-1",
|
|
25
|
+
"credential_id": null
|
|
26
|
+
},
|
|
27
|
+
"thread_id": "thread-1",
|
|
28
|
+
"run_id": "run-1",
|
|
29
|
+
"operation_id": "operation-1",
|
|
30
|
+
"deadline_unix_ms": null,
|
|
31
|
+
"traceparent": null,
|
|
32
|
+
"surface_id": "cs1:cp:dXNlci0x",
|
|
33
|
+
"space": {
|
|
34
|
+
"tenant_id": "tenant-1",
|
|
35
|
+
"space_id": "scope-1"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"inputs": [
|
|
39
|
+
{
|
|
40
|
+
"request_id": "input-1",
|
|
41
|
+
"actor": {
|
|
42
|
+
"principal": {
|
|
43
|
+
"kind": "user",
|
|
44
|
+
"userId": "user-1"
|
|
45
|
+
},
|
|
46
|
+
"client_id": "client-1",
|
|
47
|
+
"credential_id": null
|
|
48
|
+
},
|
|
49
|
+
"message": {
|
|
50
|
+
"role": "user",
|
|
51
|
+
"content": [
|
|
52
|
+
{
|
|
53
|
+
"type": "text",
|
|
54
|
+
"text": "hello"
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
"context_generation": {
|
|
62
|
+
"user_space": "scope-1",
|
|
63
|
+
"identity": "identity-1",
|
|
64
|
+
"memory": "memory-1",
|
|
65
|
+
"integration_guide": "guide-1",
|
|
66
|
+
"installed_integrations": "installed-1",
|
|
67
|
+
"space_integrations": "scope-integrations-1"
|
|
68
|
+
},
|
|
69
|
+
"llm_plan": {
|
|
70
|
+
"revision": "1700000000000",
|
|
71
|
+
"route": {
|
|
72
|
+
"backend": "openrouter",
|
|
73
|
+
"profile": "cloud_openrouter",
|
|
74
|
+
"model": "openai/gpt-5.4-mini",
|
|
75
|
+
"provider_preferences": [
|
|
76
|
+
"OpenAI"
|
|
77
|
+
],
|
|
78
|
+
"temperature": 0.5,
|
|
79
|
+
"context_window_tokens": 128000,
|
|
80
|
+
"cache_control": true,
|
|
81
|
+
"reasoning_effort": null,
|
|
82
|
+
"model_snapshot": {
|
|
83
|
+
"capabilities": {
|
|
84
|
+
"input": [
|
|
85
|
+
"image"
|
|
86
|
+
],
|
|
87
|
+
"tool_calling": true,
|
|
88
|
+
"structured_output": true
|
|
89
|
+
},
|
|
90
|
+
"generation_support": {
|
|
91
|
+
"temperature": true,
|
|
92
|
+
"maxTokens": true,
|
|
93
|
+
"thinking": true,
|
|
94
|
+
"reasoningEfforts": [
|
|
95
|
+
"high"
|
|
96
|
+
],
|
|
97
|
+
"temperatureWithReasoning": true,
|
|
98
|
+
"temperatureMax": null,
|
|
99
|
+
"maxOutputTokens": null
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"base_checkpoint": {
|
|
105
|
+
"object_key": "checkpoints/abc.json",
|
|
106
|
+
"sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
107
|
+
"format_version": 1
|
|
108
|
+
},
|
|
109
|
+
"abandoned_run_id": null
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
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": "command",
|
|
15
|
+
"payload": {
|
|
16
|
+
"command": {
|
|
17
|
+
"type": "steer",
|
|
18
|
+
"context": {
|
|
19
|
+
"actor": {
|
|
20
|
+
"principal": {
|
|
21
|
+
"kind": "user",
|
|
22
|
+
"userId": "user-1"
|
|
23
|
+
},
|
|
24
|
+
"client_id": "client-1",
|
|
25
|
+
"credential_id": null
|
|
26
|
+
},
|
|
27
|
+
"thread_id": "thread-1",
|
|
28
|
+
"run_id": "run-1",
|
|
29
|
+
"operation_id": "operation-1",
|
|
30
|
+
"deadline_unix_ms": null,
|
|
31
|
+
"traceparent": null,
|
|
32
|
+
"surface_id": "cs1:cp:dXNlci0x",
|
|
33
|
+
"space": {
|
|
34
|
+
"tenant_id": "tenant-1",
|
|
35
|
+
"space_id": "scope-1"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"inputs": [
|
|
39
|
+
{
|
|
40
|
+
"request_id": "input-1",
|
|
41
|
+
"actor": {
|
|
42
|
+
"principal": {
|
|
43
|
+
"kind": "user",
|
|
44
|
+
"userId": "user-1"
|
|
45
|
+
},
|
|
46
|
+
"client_id": "client-1",
|
|
47
|
+
"credential_id": null
|
|
48
|
+
},
|
|
49
|
+
"message": {
|
|
50
|
+
"role": "user",
|
|
51
|
+
"content": [
|
|
52
|
+
{
|
|
53
|
+
"type": "text",
|
|
54
|
+
"text": "hello"
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
"context_generation": null,
|
|
62
|
+
"llm_plan": null,
|
|
63
|
+
"base_checkpoint": null,
|
|
64
|
+
"abandoned_run_id": null
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
"actor": {
|
|
21
|
+
"principal": {
|
|
22
|
+
"kind": "user",
|
|
23
|
+
"userId": "user-1"
|
|
24
|
+
},
|
|
25
|
+
"client_id": "client-1",
|
|
26
|
+
"credential_id": null
|
|
27
|
+
},
|
|
28
|
+
"thread_id": "thread-1",
|
|
29
|
+
"run_id": "run-1",
|
|
30
|
+
"operation_id": "operation-1",
|
|
31
|
+
"deadline_unix_ms": null,
|
|
32
|
+
"traceparent": null,
|
|
33
|
+
"surface_id": "cs1:cp:dXNlci0x",
|
|
34
|
+
"space": {
|
|
35
|
+
"tenant_id": "tenant-1",
|
|
36
|
+
"space_id": "scope-1"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"event": {
|
|
40
|
+
"type": "steered",
|
|
41
|
+
"inputs": [
|
|
42
|
+
{
|
|
43
|
+
"request_id": "input-1",
|
|
44
|
+
"actor": {
|
|
45
|
+
"principal": {
|
|
46
|
+
"kind": "user",
|
|
47
|
+
"userId": "user-1"
|
|
48
|
+
},
|
|
49
|
+
"client_id": "client-1",
|
|
50
|
+
"credential_id": null
|
|
51
|
+
},
|
|
52
|
+
"message": {
|
|
53
|
+
"role": "user",
|
|
54
|
+
"content": [
|
|
55
|
+
{
|
|
56
|
+
"type": "text",
|
|
57
|
+
"text": "hello"
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"checkpoint": {
|
|
66
|
+
"object_key": "checkpoints/abc.json",
|
|
67
|
+
"sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
68
|
+
"format_version": 1
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -17,10 +17,6 @@
|
|
|
17
17
|
"id": "event-1",
|
|
18
18
|
"sequence": 2,
|
|
19
19
|
"context": {
|
|
20
|
-
"scope": {
|
|
21
|
-
"tenant_id": "tenant-1",
|
|
22
|
-
"scope_id": "scope-1"
|
|
23
|
-
},
|
|
24
20
|
"actor": {
|
|
25
21
|
"principal": {
|
|
26
22
|
"kind": "user",
|
|
@@ -34,7 +30,11 @@
|
|
|
34
30
|
"operation_id": "operation-1",
|
|
35
31
|
"deadline_unix_ms": null,
|
|
36
32
|
"traceparent": null,
|
|
37
|
-
"surface_id": "cs1:cp:dXNlci0x"
|
|
33
|
+
"surface_id": "cs1:cp:dXNlci0x",
|
|
34
|
+
"space": {
|
|
35
|
+
"tenant_id": "tenant-1",
|
|
36
|
+
"space_id": "scope-1"
|
|
37
|
+
}
|
|
38
38
|
},
|
|
39
39
|
"event": {
|
|
40
40
|
"type": "interaction_required",
|
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
"version": 2,
|
|
7
7
|
"surfaceId": "cs1:mg:feishu:YWNjb3VudA:Y2hhdA",
|
|
8
8
|
"occurredAt": "2026-08-22T00:00:00Z",
|
|
9
|
-
"data": {
|
|
9
|
+
"data": {
|
|
10
|
+
"idleTimeoutMinutes": 60,
|
|
11
|
+
"updatedAtMs": 1787356800000
|
|
12
|
+
}
|
|
10
13
|
}
|
|
11
14
|
}
|
|
@@ -5,8 +5,24 @@
|
|
|
5
5
|
"catalogVersion": 2,
|
|
6
6
|
"activeThreadId": "thread-2",
|
|
7
7
|
"threads": [
|
|
8
|
-
{
|
|
9
|
-
|
|
8
|
+
{
|
|
9
|
+
"threadId": "thread-2",
|
|
10
|
+
"title": "New conversation",
|
|
11
|
+
"state": "active",
|
|
12
|
+
"createdAt": "2026-08-22T00:00:00Z",
|
|
13
|
+
"updatedAt": "2026-08-22T00:00:00Z",
|
|
14
|
+
"archivedAt": null,
|
|
15
|
+
"purgeAfter": null
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"threadId": "thread-1",
|
|
19
|
+
"title": "Previous",
|
|
20
|
+
"state": "archived",
|
|
21
|
+
"createdAt": "2026-08-21T00:00:00Z",
|
|
22
|
+
"updatedAt": "2026-08-22T00:00:00Z",
|
|
23
|
+
"archivedAt": "2026-08-22T00:00:00Z",
|
|
24
|
+
"purgeAfter": "2026-08-25T00:00:00Z"
|
|
25
|
+
}
|
|
10
26
|
]
|
|
11
27
|
}
|
|
12
28
|
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"target": "/chat/thread/load",
|
|
3
|
+
"direction": "response",
|
|
4
|
+
"body": {
|
|
5
|
+
"thread": {
|
|
6
|
+
"threadId": "thread-2",
|
|
7
|
+
"title": "New conversation",
|
|
8
|
+
"state": "active",
|
|
9
|
+
"createdAt": "2026-08-22T00:00:00Z",
|
|
10
|
+
"updatedAt": "2026-08-22T00:00:00Z",
|
|
11
|
+
"archivedAt": null,
|
|
12
|
+
"purgeAfter": null
|
|
13
|
+
},
|
|
14
|
+
"session": {
|
|
15
|
+
"activityAtUnixMs": 0
|
|
16
|
+
},
|
|
17
|
+
"sync": {
|
|
18
|
+
"mode": "snapshot",
|
|
19
|
+
"snapshot": {
|
|
20
|
+
"version": 0,
|
|
21
|
+
"messages": [
|
|
22
|
+
{
|
|
23
|
+
"messageId": "root:user",
|
|
24
|
+
"requestId": "root",
|
|
25
|
+
"role": "user",
|
|
26
|
+
"authorUserId": "user",
|
|
27
|
+
"content": {
|
|
28
|
+
"parts": [
|
|
29
|
+
{
|
|
30
|
+
"type": "text",
|
|
31
|
+
"text": "start"
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"createdAt": "2026-08-22T00:00:00Z"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"messageId": "addition:user",
|
|
39
|
+
"requestId": "addition",
|
|
40
|
+
"role": "user",
|
|
41
|
+
"authorUserId": "user",
|
|
42
|
+
"content": {
|
|
43
|
+
"parts": [
|
|
44
|
+
{
|
|
45
|
+
"type": "text",
|
|
46
|
+
"text": "also do this"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"createdAt": "2026-08-22T00:00:01Z",
|
|
51
|
+
"runId": "root"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"activeRun": null,
|
|
55
|
+
"pendingInteraction": null,
|
|
56
|
+
"runOutcomes": []
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"queue": {
|
|
60
|
+
"queueVersion": 0,
|
|
61
|
+
"items": []
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"target": "/chat/turn/submit",
|
|
3
|
+
"direction": "response",
|
|
4
|
+
"body": {
|
|
5
|
+
"receipt": {
|
|
6
|
+
"requestId": "addition",
|
|
7
|
+
"threadId": "thread-2",
|
|
8
|
+
"disposition": "steering",
|
|
9
|
+
"sessionDisposition": "existing",
|
|
10
|
+
"queueVersion": 1,
|
|
11
|
+
"admission": {
|
|
12
|
+
"state": "bound",
|
|
13
|
+
"admissionVersion": 1,
|
|
14
|
+
"reason": "accepted",
|
|
15
|
+
"threadId": "thread-2",
|
|
16
|
+
"queueVersion": 1,
|
|
17
|
+
"runId": "root"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"control": {
|
|
21
|
+
"surfaceId": "cs1:cp:dXNlcg",
|
|
22
|
+
"version": "00000000000000000001:00000000000000000001",
|
|
23
|
+
"activeThread": {
|
|
24
|
+
"threadId": "thread-2",
|
|
25
|
+
"title": "New conversation",
|
|
26
|
+
"state": "active",
|
|
27
|
+
"createdAt": "2026-08-22T00:00:00Z",
|
|
28
|
+
"updatedAt": "2026-08-22T00:00:00Z",
|
|
29
|
+
"archivedAt": null,
|
|
30
|
+
"purgeAfter": null
|
|
31
|
+
},
|
|
32
|
+
"activeRun": {
|
|
33
|
+
"requestId": "root",
|
|
34
|
+
"startedAt": "2026-08-22T00:00:00Z"
|
|
35
|
+
},
|
|
36
|
+
"pendingInteraction": null,
|
|
37
|
+
"queue": {
|
|
38
|
+
"queueVersion": 1,
|
|
39
|
+
"items": [
|
|
40
|
+
{
|
|
41
|
+
"requestId": "addition",
|
|
42
|
+
"threadId": "thread-2",
|
|
43
|
+
"runId": "root",
|
|
44
|
+
"authorUserId": "user",
|
|
45
|
+
"content": {
|
|
46
|
+
"parts": [
|
|
47
|
+
{
|
|
48
|
+
"type": "text",
|
|
49
|
+
"text": "also do this"
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"createdAt": "2026-08-22T00:00:01Z"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"historyVersion": 0
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
package/manifest/targets.v1.json
CHANGED
package/package.json
CHANGED
package/protocol.json
CHANGED
|
@@ -88,6 +88,9 @@
|
|
|
88
88
|
"queueVersion": {
|
|
89
89
|
"type": "integer",
|
|
90
90
|
"minimum": 0
|
|
91
|
+
},
|
|
92
|
+
"runId": {
|
|
93
|
+
"$ref": "#/$defs/id"
|
|
91
94
|
}
|
|
92
95
|
}
|
|
93
96
|
},
|
|
@@ -121,6 +124,9 @@
|
|
|
121
124
|
"queueVersion": {
|
|
122
125
|
"type": "integer",
|
|
123
126
|
"minimum": 0
|
|
127
|
+
},
|
|
128
|
+
"runId": {
|
|
129
|
+
"$ref": "#/$defs/id"
|
|
124
130
|
}
|
|
125
131
|
}
|
|
126
132
|
},
|
|
@@ -485,6 +491,9 @@
|
|
|
485
491
|
},
|
|
486
492
|
"createdAt": {
|
|
487
493
|
"$ref": "#/$defs/time"
|
|
494
|
+
},
|
|
495
|
+
"runId": {
|
|
496
|
+
"$ref": "#/$defs/id"
|
|
488
497
|
}
|
|
489
498
|
}
|
|
490
499
|
},
|
|
@@ -603,6 +612,9 @@
|
|
|
603
612
|
},
|
|
604
613
|
"createdAt": {
|
|
605
614
|
"$ref": "#/$defs/time"
|
|
615
|
+
},
|
|
616
|
+
"runId": {
|
|
617
|
+
"$ref": "#/$defs/id"
|
|
606
618
|
}
|
|
607
619
|
}
|
|
608
620
|
},
|
|
@@ -1732,6 +1744,13 @@
|
|
|
1732
1744
|
"occurredAtUnixMs": {
|
|
1733
1745
|
"type": "integer",
|
|
1734
1746
|
"minimum": 0
|
|
1747
|
+
},
|
|
1748
|
+
"delivery": {
|
|
1749
|
+
"enum": [
|
|
1750
|
+
"default",
|
|
1751
|
+
"steer",
|
|
1752
|
+
"queue"
|
|
1753
|
+
]
|
|
1735
1754
|
}
|
|
1736
1755
|
}
|
|
1737
1756
|
}
|
|
@@ -1936,7 +1955,8 @@
|
|
|
1936
1955
|
"enum": [
|
|
1937
1956
|
"scheduled",
|
|
1938
1957
|
"queued",
|
|
1939
|
-
"duplicate"
|
|
1958
|
+
"duplicate",
|
|
1959
|
+
"steering"
|
|
1940
1960
|
]
|
|
1941
1961
|
},
|
|
1942
1962
|
"queueVersion": {
|
|
@@ -2004,7 +2024,8 @@
|
|
|
2004
2024
|
"scheduled",
|
|
2005
2025
|
"queued",
|
|
2006
2026
|
"duplicate",
|
|
2007
|
-
"blocked_pending_interaction"
|
|
2027
|
+
"blocked_pending_interaction",
|
|
2028
|
+
"steering"
|
|
2008
2029
|
]
|
|
2009
2030
|
},
|
|
2010
2031
|
"sessionDisposition": {
|
|
@@ -53,15 +53,15 @@
|
|
|
53
53
|
"type": "object",
|
|
54
54
|
"additionalProperties": false,
|
|
55
55
|
"required": [
|
|
56
|
-
"
|
|
56
|
+
"user_space",
|
|
57
57
|
"identity",
|
|
58
58
|
"memory",
|
|
59
59
|
"integration_guide",
|
|
60
60
|
"installed_integrations",
|
|
61
|
-
"
|
|
61
|
+
"space_integrations"
|
|
62
62
|
],
|
|
63
63
|
"properties": {
|
|
64
|
-
"
|
|
64
|
+
"user_space": {
|
|
65
65
|
"$ref": "#/$defs/identifier"
|
|
66
66
|
},
|
|
67
67
|
"identity": {
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"installed_integrations": {
|
|
77
77
|
"$ref": "#/$defs/identifier"
|
|
78
78
|
},
|
|
79
|
-
"
|
|
79
|
+
"space_integrations": {
|
|
80
80
|
"$ref": "#/$defs/identifier"
|
|
81
81
|
}
|
|
82
82
|
}
|
|
@@ -159,29 +159,6 @@
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
},
|
|
162
|
-
"scope": {
|
|
163
|
-
"type": "object",
|
|
164
|
-
"additionalProperties": false,
|
|
165
|
-
"required": [
|
|
166
|
-
"tenant_id",
|
|
167
|
-
"scope_id"
|
|
168
|
-
],
|
|
169
|
-
"properties": {
|
|
170
|
-
"tenant_id": {
|
|
171
|
-
"oneOf": [
|
|
172
|
-
{
|
|
173
|
-
"$ref": "#/$defs/identifier"
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
"type": "null"
|
|
177
|
-
}
|
|
178
|
-
]
|
|
179
|
-
},
|
|
180
|
-
"scope_id": {
|
|
181
|
-
"$ref": "#/$defs/identifier"
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
},
|
|
185
162
|
"actor": {
|
|
186
163
|
"type": "object",
|
|
187
164
|
"additionalProperties": false,
|
|
@@ -220,7 +197,7 @@
|
|
|
220
197
|
"type": "object",
|
|
221
198
|
"additionalProperties": false,
|
|
222
199
|
"required": [
|
|
223
|
-
"
|
|
200
|
+
"space",
|
|
224
201
|
"actor",
|
|
225
202
|
"surface_id",
|
|
226
203
|
"thread_id",
|
|
@@ -230,9 +207,6 @@
|
|
|
230
207
|
"traceparent"
|
|
231
208
|
],
|
|
232
209
|
"properties": {
|
|
233
|
-
"scope": {
|
|
234
|
-
"$ref": "#/$defs/scope"
|
|
235
|
-
},
|
|
236
210
|
"actor": {
|
|
237
211
|
"$ref": "#/$defs/actor"
|
|
238
212
|
},
|
|
@@ -269,6 +243,9 @@
|
|
|
269
243
|
"type": "null"
|
|
270
244
|
}
|
|
271
245
|
]
|
|
246
|
+
},
|
|
247
|
+
"space": {
|
|
248
|
+
"$ref": "#/$defs/space_context"
|
|
272
249
|
}
|
|
273
250
|
}
|
|
274
251
|
},
|
|
@@ -527,6 +504,30 @@
|
|
|
527
504
|
"$ref": "#/$defs/interaction"
|
|
528
505
|
}
|
|
529
506
|
}
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"type": "object",
|
|
510
|
+
"additionalProperties": false,
|
|
511
|
+
"required": [
|
|
512
|
+
"type",
|
|
513
|
+
"context",
|
|
514
|
+
"inputs"
|
|
515
|
+
],
|
|
516
|
+
"properties": {
|
|
517
|
+
"type": {
|
|
518
|
+
"const": "steer"
|
|
519
|
+
},
|
|
520
|
+
"context": {
|
|
521
|
+
"$ref": "#/$defs/context"
|
|
522
|
+
},
|
|
523
|
+
"inputs": {
|
|
524
|
+
"type": "array",
|
|
525
|
+
"minItems": 1,
|
|
526
|
+
"items": {
|
|
527
|
+
"$ref": "#/$defs/steering_input"
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
}
|
|
530
531
|
}
|
|
531
532
|
]
|
|
532
533
|
},
|
|
@@ -896,6 +897,26 @@
|
|
|
896
897
|
"$ref": "#/$defs/usage"
|
|
897
898
|
}
|
|
898
899
|
}
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
"type": "object",
|
|
903
|
+
"additionalProperties": false,
|
|
904
|
+
"required": [
|
|
905
|
+
"type",
|
|
906
|
+
"inputs"
|
|
907
|
+
],
|
|
908
|
+
"properties": {
|
|
909
|
+
"type": {
|
|
910
|
+
"const": "steered"
|
|
911
|
+
},
|
|
912
|
+
"inputs": {
|
|
913
|
+
"type": "array",
|
|
914
|
+
"minItems": 1,
|
|
915
|
+
"items": {
|
|
916
|
+
"$ref": "#/$defs/steering_input"
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
}
|
|
899
920
|
}
|
|
900
921
|
]
|
|
901
922
|
},
|
|
@@ -1316,7 +1337,8 @@
|
|
|
1316
1337
|
"enum": [
|
|
1317
1338
|
"queued",
|
|
1318
1339
|
"interaction_ready",
|
|
1319
|
-
"cancel_requested"
|
|
1340
|
+
"cancel_requested",
|
|
1341
|
+
"steering_queued"
|
|
1320
1342
|
]
|
|
1321
1343
|
},
|
|
1322
1344
|
"queue_revision": {
|
|
@@ -1380,7 +1402,7 @@
|
|
|
1380
1402
|
"required": [
|
|
1381
1403
|
"purge_id",
|
|
1382
1404
|
"conversation_key",
|
|
1383
|
-
"
|
|
1405
|
+
"space",
|
|
1384
1406
|
"surface_id",
|
|
1385
1407
|
"thread_id"
|
|
1386
1408
|
],
|
|
@@ -1391,14 +1413,14 @@
|
|
|
1391
1413
|
"conversation_key": {
|
|
1392
1414
|
"$ref": "#/$defs/identifier"
|
|
1393
1415
|
},
|
|
1394
|
-
"scope": {
|
|
1395
|
-
"$ref": "#/$defs/scope"
|
|
1396
|
-
},
|
|
1397
1416
|
"surface_id": {
|
|
1398
1417
|
"$ref": "#/$defs/conversation_surface"
|
|
1399
1418
|
},
|
|
1400
1419
|
"thread_id": {
|
|
1401
1420
|
"$ref": "#/$defs/identifier"
|
|
1421
|
+
},
|
|
1422
|
+
"space": {
|
|
1423
|
+
"$ref": "#/$defs/space_context"
|
|
1402
1424
|
}
|
|
1403
1425
|
}
|
|
1404
1426
|
},
|
|
@@ -1798,7 +1820,7 @@
|
|
|
1798
1820
|
"required": [
|
|
1799
1821
|
"kind",
|
|
1800
1822
|
"tenantId",
|
|
1801
|
-
"
|
|
1823
|
+
"spaceId"
|
|
1802
1824
|
],
|
|
1803
1825
|
"properties": {
|
|
1804
1826
|
"kind": {
|
|
@@ -1807,7 +1829,7 @@
|
|
|
1807
1829
|
"tenantId": {
|
|
1808
1830
|
"$ref": "#/$defs/identifier"
|
|
1809
1831
|
},
|
|
1810
|
-
"
|
|
1832
|
+
"spaceId": {
|
|
1811
1833
|
"$ref": "#/$defs/identifier"
|
|
1812
1834
|
}
|
|
1813
1835
|
}
|
|
@@ -2205,6 +2227,49 @@
|
|
|
2205
2227
|
}
|
|
2206
2228
|
}
|
|
2207
2229
|
}
|
|
2230
|
+
},
|
|
2231
|
+
"space_context": {
|
|
2232
|
+
"type": "object",
|
|
2233
|
+
"additionalProperties": false,
|
|
2234
|
+
"required": [
|
|
2235
|
+
"tenant_id",
|
|
2236
|
+
"space_id"
|
|
2237
|
+
],
|
|
2238
|
+
"properties": {
|
|
2239
|
+
"tenant_id": {
|
|
2240
|
+
"oneOf": [
|
|
2241
|
+
{
|
|
2242
|
+
"$ref": "#/$defs/identifier"
|
|
2243
|
+
},
|
|
2244
|
+
{
|
|
2245
|
+
"type": "null"
|
|
2246
|
+
}
|
|
2247
|
+
]
|
|
2248
|
+
},
|
|
2249
|
+
"space_id": {
|
|
2250
|
+
"$ref": "#/$defs/identifier"
|
|
2251
|
+
}
|
|
2252
|
+
}
|
|
2253
|
+
},
|
|
2254
|
+
"steering_input": {
|
|
2255
|
+
"type": "object",
|
|
2256
|
+
"additionalProperties": false,
|
|
2257
|
+
"required": [
|
|
2258
|
+
"request_id",
|
|
2259
|
+
"actor",
|
|
2260
|
+
"message"
|
|
2261
|
+
],
|
|
2262
|
+
"properties": {
|
|
2263
|
+
"request_id": {
|
|
2264
|
+
"$ref": "#/$defs/identifier"
|
|
2265
|
+
},
|
|
2266
|
+
"actor": {
|
|
2267
|
+
"$ref": "#/$defs/actor"
|
|
2268
|
+
},
|
|
2269
|
+
"message": {
|
|
2270
|
+
"$ref": "#/$defs/message"
|
|
2271
|
+
}
|
|
2272
|
+
}
|
|
2208
2273
|
}
|
|
2209
2274
|
}
|
|
2210
2275
|
}
|
|
@@ -442,7 +442,7 @@
|
|
|
442
442
|
"maxLength": 256,
|
|
443
443
|
"pattern": "^[^\\u0000-\\u001f\\u007f]+$"
|
|
444
444
|
},
|
|
445
|
-
"
|
|
445
|
+
"spaceId": {
|
|
446
446
|
"type": "string",
|
|
447
447
|
"minLength": 1,
|
|
448
448
|
"maxLength": 256,
|
|
@@ -478,7 +478,7 @@
|
|
|
478
478
|
},
|
|
479
479
|
"required": [
|
|
480
480
|
"ownerId",
|
|
481
|
-
"
|
|
481
|
+
"spaceId",
|
|
482
482
|
"surfaceId",
|
|
483
483
|
"threadId",
|
|
484
484
|
"controlVersion",
|
|
@@ -960,7 +960,7 @@
|
|
|
960
960
|
"maxLength": 256,
|
|
961
961
|
"pattern": "^[^\\u0000-\\u001f\\u007f]+$"
|
|
962
962
|
},
|
|
963
|
-
"
|
|
963
|
+
"spaceId": {
|
|
964
964
|
"type": "string",
|
|
965
965
|
"minLength": 1,
|
|
966
966
|
"maxLength": 256,
|
|
@@ -975,7 +975,7 @@
|
|
|
975
975
|
},
|
|
976
976
|
"required": [
|
|
977
977
|
"ownerId",
|
|
978
|
-
"
|
|
978
|
+
"spaceId",
|
|
979
979
|
"surfaceId"
|
|
980
980
|
]
|
|
981
981
|
},
|