@mhome/conversation-protocol 0.11.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.
Files changed (42) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +21 -0
  3. package/fixtures/catalog.event.json +16 -0
  4. package/fixtures/debug.event.json +17 -0
  5. package/fixtures/enqueue.request.json +26 -0
  6. package/fixtures/enqueue.response.json +9 -0
  7. package/fixtures/interaction-answer.request.json +12 -0
  8. package/fixtures/interaction-answer.response.json +9 -0
  9. package/fixtures/interaction.event.json +39 -0
  10. package/fixtures/interaction.request.json +11 -0
  11. package/fixtures/interaction.response.json +8 -0
  12. package/fixtures/live.event.json +14 -0
  13. package/fixtures/progress-planning.event.json +14 -0
  14. package/fixtures/progress-thinking.event.json +14 -0
  15. package/fixtures/progress-tool-scheduled.event.json +14 -0
  16. package/fixtures/progress-tool-started.event.json +14 -0
  17. package/fixtures/progress-waiting.event.json +14 -0
  18. package/fixtures/queue-reorder.request.json +9 -0
  19. package/fixtures/queue-reorder.response.json +8 -0
  20. package/fixtures/queue.event.json +12 -0
  21. package/fixtures/request-cancel.request.json +8 -0
  22. package/fixtures/request-cancel.response.json +10 -0
  23. package/fixtures/session-start.request.json +8 -0
  24. package/fixtures/session-start.response.json +16 -0
  25. package/fixtures/session.event.json +11 -0
  26. package/fixtures/system-failed.event.json +14 -0
  27. package/fixtures/thread-archive.request.json +8 -0
  28. package/fixtures/thread-archive.response.json +11 -0
  29. package/fixtures/thread-create.request.json +9 -0
  30. package/fixtures/thread-create.response.json +11 -0
  31. package/fixtures/thread-list.request.json +5 -0
  32. package/fixtures/thread-list.response.json +12 -0
  33. package/fixtures/thread-load.request.json +8 -0
  34. package/fixtures/thread-load.response.json +11 -0
  35. package/fixtures/thread-rotate.request.json +12 -0
  36. package/fixtures/thread-rotate.response.json +12 -0
  37. package/fixtures/turn-submit.request.json +19 -0
  38. package/fixtures/turn-submit.response.json +11 -0
  39. package/manifest/targets.v1.json +22 -0
  40. package/package.json +43 -0
  41. package/protocol.json +11 -0
  42. package/schema/conversation-frame.v2.schema.json +2378 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) MHOME AI
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # mhome-conversation-api
2
+
3
+ Typed, transport-neutral DTOs and canonical surface identities for the mHome conversation API.
4
+
5
+ This crate owns wire targets, request and response bodies, user-visible message content, and
6
+ conversation events. `ConversationSurface` is a canonical value object whose string form is the
7
+ wire and persistence identity of one isolated conversation endpoint. The crate deliberately
8
+ contains no Agent runtime, persistence, transport implementation, or messaging-provider SDK.
9
+
10
+ `/chat/turn/submit` is the source-neutral application operation for callers that do not manage
11
+ threads themselves. The Conversation implementation owns active-thread creation, idle rotation,
12
+ pending-interaction policy, idempotency, and enqueueing for that operation.
13
+
14
+ The canonical `cs1` surface families are client personal (`cp`), client group (`cg`), messaging
15
+ personal (`mp`), and messaging group (`mg`). Messaging surfaces include provider, provider account,
16
+ external conversation, and an optional lane. A lane isolates a provider sub-conversation such as a
17
+ Telegram forum topic without changing the provider account's base authorization route.
18
+
19
+ Message content is a provider-independent ordered list of text, image, audio, video, and file parts.
20
+ Messaging runtimes must materialize provider media handles into this content before invoking the
21
+ Conversation application port; the Agent and this contract never receive provider SDK objects.
@@ -0,0 +1,16 @@
1
+ {
2
+ "target": "/chat/event",
3
+ "direction": "event",
4
+ "body": {
5
+ "type": "thread.catalog_changed",
6
+ "surfaceId": "cs1:cp:dXNlci0x",
7
+ "catalogVersion": 2,
8
+ "occurredAt": "2026-08-22T00:00:00Z",
9
+ "data": {
10
+ "activeThreadId": "thread-2",
11
+ "threads": [
12
+ { "threadId": "thread-2", "title": "New conversation", "state": "active", "createdAt": "2026-08-22T00:00:00Z", "updatedAt": "2026-08-22T00:00:00Z", "archivedAt": null, "purgeAfter": null }
13
+ ]
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "target": "/chat/debug",
3
+ "direction": "event",
4
+ "body": {
5
+ "type": "run.debug",
6
+ "surfaceId": "cs1:cp:dXNlci0x",
7
+ "threadId": "thread-1",
8
+ "requestId": "request-1",
9
+ "occurredAt": "2026-08-22T00:00:01Z",
10
+ "data": {
11
+ "scope": "llm.request",
12
+ "payload": {
13
+ "model": "logical-model"
14
+ }
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "target": "/chat/message/enqueue",
3
+ "direction": "request",
4
+ "body": {
5
+ "threadId": "thread-2",
6
+ "requestId": "request-1",
7
+ "content": {
8
+ "parts": [
9
+ { "type": "text", "text": "Hello" },
10
+ {
11
+ "type": "image",
12
+ "source": { "kind": "artifact", "uri": "artifact://image-1" },
13
+ "mime_type": "image/png",
14
+ "width_px": 640,
15
+ "height_px": 480,
16
+ "size_bytes": 1024
17
+ }
18
+ ]
19
+ },
20
+ "accessMode": "interactive",
21
+ "agentModelMode": "auto",
22
+ "temperature": 0.2,
23
+ "allowTools": true,
24
+ "debug": false
25
+ }
26
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "target": "/chat/message/enqueue",
3
+ "direction": "response",
4
+ "body": {
5
+ "requestId": "request-1",
6
+ "disposition": "queued",
7
+ "queueVersion": 4
8
+ }
9
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "target": "/chat/interaction/answer",
3
+ "direction": "request",
4
+ "body": {
5
+ "requestId": "request-1",
6
+ "batchId": "batch-1",
7
+ "decisions": [
8
+ { "actionId": "action-1", "decision": "approve" }
9
+ ],
10
+ "occurredAtUnixMs": 1787587200000
11
+ }
12
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "target": "/chat/interaction/answer",
3
+ "direction": "response",
4
+ "body": {
5
+ "requestId": "request-1",
6
+ "threadId": "thread-3",
7
+ "disposition": "accepted"
8
+ }
9
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "target": "/chat/event",
3
+ "direction": "event",
4
+ "body": {
5
+ "type": "snapshot.updated",
6
+ "surfaceId": "cs1:mg:feishu:YWNjb3VudA:Y2hhdA",
7
+ "threadId": "thread-2",
8
+ "requestId": "request-1",
9
+ "snapshotVersion": 3,
10
+ "occurredAt": "2026-08-22T00:00:00Z",
11
+ "data": {
12
+ "sessionActivityAtUnixMs": 1787356800000,
13
+ "messagesAdded": [],
14
+ "activeRun": null,
15
+ "pendingInteraction": {
16
+ "requestId": "request-1",
17
+ "batchId": "batch-1",
18
+ "title": "Delete room",
19
+ "message": "Delete room Kitchen",
20
+ "items": [
21
+ {
22
+ "actionId": "action-1",
23
+ "kind": "approval",
24
+ "preview": {
25
+ "actionCode": "room.delete",
26
+ "title": "Delete room",
27
+ "message": "Delete room Kitchen",
28
+ "tone": "danger",
29
+ "details": [{ "label": "Room", "value": { "type": "text", "text": "Kitchen" } }],
30
+ "proceedLabel": "Delete",
31
+ "rejectLabel": "Cancel"
32
+ }
33
+ }
34
+ ]
35
+ },
36
+ "runOutcome": { "requestId": "request-1", "status": "interaction_required", "failure": null }
37
+ }
38
+ }
39
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "target": "/chat/interaction/submit",
3
+ "direction": "request",
4
+ "body": {
5
+ "threadId": "thread-2",
6
+ "batchId": "batch-1",
7
+ "decisions": [
8
+ { "actionId": "action-1", "decision": "approve" }
9
+ ]
10
+ }
11
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "target": "/chat/interaction/submit",
3
+ "direction": "response",
4
+ "body": {
5
+ "requestId": "request-1",
6
+ "disposition": "accepted"
7
+ }
8
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "target": "/chat/event",
3
+ "direction": "event",
4
+ "body": {
5
+ "type": "assistant.preview",
6
+ "surfaceId": "cs1:mg:feishu:YWNjb3VudA:Y2hhdA",
7
+ "threadId": "thread-1",
8
+ "requestId": "request-1",
9
+ "baseSnapshotVersion": 3,
10
+ "offset": 1,
11
+ "occurredAt": "2026-08-22T00:00:00Z",
12
+ "data": { "text": "Working", "append": true }
13
+ }
14
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "target": "/chat/event",
3
+ "direction": "event",
4
+ "body": {
5
+ "type": "run.progress",
6
+ "surfaceId": "cs1:cp:dXNlci0x",
7
+ "threadId": "thread-1",
8
+ "requestId": "request-1",
9
+ "baseSnapshotVersion": 3,
10
+ "offset": 3,
11
+ "occurredAt": "2026-08-22T00:00:02Z",
12
+ "data": { "kind": "planning" }
13
+ }
14
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "target": "/chat/event",
3
+ "direction": "event",
4
+ "body": {
5
+ "type": "run.progress",
6
+ "surfaceId": "cs1:cp:dXNlci0x",
7
+ "threadId": "thread-1",
8
+ "requestId": "request-1",
9
+ "baseSnapshotVersion": 3,
10
+ "offset": 2,
11
+ "occurredAt": "2026-08-22T00:00:01Z",
12
+ "data": { "kind": "thinking" }
13
+ }
14
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "target": "/chat/event",
3
+ "direction": "event",
4
+ "body": {
5
+ "type": "run.progress",
6
+ "surfaceId": "cs1:cp:dXNlci0x",
7
+ "threadId": "thread-1",
8
+ "requestId": "request-1",
9
+ "baseSnapshotVersion": 3,
10
+ "offset": 5,
11
+ "occurredAt": "2026-08-22T00:00:04Z",
12
+ "data": { "kind": "tool_scheduled", "toolNames": ["search", "fetch"] }
13
+ }
14
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "target": "/chat/event",
3
+ "direction": "event",
4
+ "body": {
5
+ "type": "run.progress",
6
+ "surfaceId": "cs1:cp:dXNlci0x",
7
+ "threadId": "thread-1",
8
+ "requestId": "request-1",
9
+ "baseSnapshotVersion": 3,
10
+ "offset": 6,
11
+ "occurredAt": "2026-08-22T00:00:05Z",
12
+ "data": { "kind": "tool_started", "toolName": "search" }
13
+ }
14
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "target": "/chat/event",
3
+ "direction": "event",
4
+ "body": {
5
+ "type": "run.progress",
6
+ "surfaceId": "cs1:cp:dXNlci0x",
7
+ "threadId": "thread-1",
8
+ "requestId": "request-1",
9
+ "baseSnapshotVersion": 3,
10
+ "offset": 4,
11
+ "occurredAt": "2026-08-22T00:00:03Z",
12
+ "data": { "kind": "waiting_external" }
13
+ }
14
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "target": "/chat/queue/reorder",
3
+ "direction": "request",
4
+ "body": {
5
+ "threadId": "thread-2",
6
+ "expectedQueueVersion": 3,
7
+ "orderedRequestIds": ["request-2", "request-1"]
8
+ }
9
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "target": "/chat/queue/reorder",
3
+ "direction": "response",
4
+ "body": {
5
+ "queueVersion": 4,
6
+ "items": []
7
+ }
8
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "target": "/chat/event",
3
+ "direction": "event",
4
+ "body": {
5
+ "type": "queue.changed",
6
+ "surfaceId": "cs1:mg:feishu:YWNjb3VudA:Y2hhdA",
7
+ "threadId": "thread-1",
8
+ "queueVersion": 4,
9
+ "occurredAt": "2026-08-22T00:00:00Z",
10
+ "data": { "items": [], "activeRun": null }
11
+ }
12
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "target": "/chat/request/cancel",
3
+ "direction": "request",
4
+ "body": {
5
+ "threadId": "thread-2",
6
+ "requestId": "request-1"
7
+ }
8
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "target": "/chat/request/cancel",
3
+ "direction": "response",
4
+ "body": {
5
+ "requestId": "request-1",
6
+ "phase": "running",
7
+ "outcome": "cancelling",
8
+ "queueVersion": 4
9
+ }
10
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "target": "/chat/session/start",
3
+ "direction": "request",
4
+ "body": {
5
+ "operationId": "operation-2",
6
+ "reason": "user_requested"
7
+ }
8
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "target": "/chat/session/start",
3
+ "direction": "response",
4
+ "body": {
5
+ "operationId": "operation-2",
6
+ "threadId": "thread-3",
7
+ "disposition": "rotated",
8
+ "catalog": {
9
+ "catalogVersion": 4,
10
+ "activeThreadId": "thread-3",
11
+ "threads": [
12
+ { "threadId": "thread-3", "title": "New conversation", "state": "active", "createdAt": "2026-08-22T02:00:00Z", "updatedAt": "2026-08-22T02:00:00Z", "archivedAt": null, "purgeAfter": null }
13
+ ]
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "target": "/chat/event",
3
+ "direction": "event",
4
+ "body": {
5
+ "type": "session.policy_changed",
6
+ "version": 2,
7
+ "surfaceId": "cs1:mg:feishu:YWNjb3VudA:Y2hhdA",
8
+ "occurredAt": "2026-08-22T00:00:00Z",
9
+ "data": { "idleTimeoutMinutes": 60, "updatedAtMs": 1787356800000 }
10
+ }
11
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "target": "/chat/event",
3
+ "direction": "event",
4
+ "body": {
5
+ "type": "run.system_failed",
6
+ "surfaceId": "cs1:cp:dXNlci0x",
7
+ "threadId": "thread-1",
8
+ "requestId": "request-1",
9
+ "baseSnapshotVersion": 3,
10
+ "offset": 7,
11
+ "occurredAt": "2026-08-22T00:00:06Z",
12
+ "data": { "code": "AGENT_UNAVAILABLE", "message": "Agent connection was lost" }
13
+ }
14
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "target": "/chat/thread/archive",
3
+ "direction": "request",
4
+ "body": {
5
+ "threadId": "thread-1",
6
+ "expectedCatalogVersion": 3
7
+ }
8
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "target": "/chat/thread/archive",
3
+ "direction": "response",
4
+ "body": {
5
+ "catalogVersion": 3,
6
+ "activeThreadId": null,
7
+ "threads": [
8
+ { "threadId": "thread-2", "title": "New conversation", "state": "archived", "createdAt": "2026-08-22T00:00:00Z", "updatedAt": "2026-08-22T01:00:00Z", "archivedAt": "2026-08-22T01:00:00Z", "archiveReason": "user_requested", "purgeAfter": "2026-08-25T01:00:00Z" }
9
+ ]
10
+ }
11
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "target": "/chat/thread/create",
3
+ "direction": "request",
4
+ "body": {
5
+ "operationId": "operation-1",
6
+ "expectedCatalogVersion": 1,
7
+ "title": "New conversation"
8
+ }
9
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "target": "/chat/thread/create",
3
+ "direction": "response",
4
+ "body": {
5
+ "catalogVersion": 2,
6
+ "activeThreadId": "thread-2",
7
+ "threads": [
8
+ { "threadId": "thread-2", "title": "New conversation", "state": "active", "createdAt": "2026-08-22T00:00:00Z", "updatedAt": "2026-08-22T00:00:00Z", "archivedAt": null, "purgeAfter": null }
9
+ ]
10
+ }
11
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "target": "/chat/thread/list",
3
+ "direction": "request",
4
+ "body": {}
5
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "target": "/chat/thread/list",
3
+ "direction": "response",
4
+ "body": {
5
+ "catalogVersion": 2,
6
+ "activeThreadId": "thread-2",
7
+ "threads": [
8
+ { "threadId": "thread-2", "title": "New conversation", "state": "active", "createdAt": "2026-08-22T00:00:00Z", "updatedAt": "2026-08-22T00:00:00Z", "archivedAt": null, "purgeAfter": null },
9
+ { "threadId": "thread-1", "title": "Previous", "state": "archived", "createdAt": "2026-08-21T00:00:00Z", "updatedAt": "2026-08-22T00:00:00Z", "archivedAt": "2026-08-22T00:00:00Z", "purgeAfter": "2026-08-25T00:00:00Z" }
10
+ ]
11
+ }
12
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "target": "/chat/thread/load",
3
+ "direction": "request",
4
+ "body": {
5
+ "threadId": "thread-2",
6
+ "knownSnapshotVersion": 3
7
+ }
8
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "target": "/chat/thread/load",
3
+ "direction": "response",
4
+ "body": {
5
+ "thread": { "threadId": "thread-2", "title": "New conversation", "state": "active", "createdAt": "2026-08-22T00:00:00Z", "updatedAt": "2026-08-22T00:00:00Z", "archivedAt": null, "purgeAfter": null },
6
+ "session": { "activityAtUnixMs": 0 },
7
+ "sync": { "mode": "snapshot", "snapshot": { "version": 0, "messages": [], "activeRun": null, "pendingInteraction": null, "runOutcomes": [] } },
8
+ "live": { "baseSnapshotVersion": 0, "lastOffset": 0, "events": [] },
9
+ "queue": { "queueVersion": 0, "items": [] }
10
+ }
11
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "target": "/chat/thread/rotate",
3
+ "direction": "request",
4
+ "body": {
5
+ "operationId": "operation-1",
6
+ "threadId": "thread-1",
7
+ "expectedCatalogVersion": 2,
8
+ "expectedSnapshotVersion": 4,
9
+ "expectedSettingVersion": 1,
10
+ "reason": "idle_timeout"
11
+ }
12
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "target": "/chat/thread/rotate",
3
+ "direction": "response",
4
+ "body": {
5
+ "catalogVersion": 4,
6
+ "activeThreadId": "thread-3",
7
+ "threads": [
8
+ { "threadId": "thread-3", "title": "New conversation", "state": "active", "createdAt": "2026-08-22T02:00:00Z", "updatedAt": "2026-08-22T02:00:00Z", "archivedAt": null, "purgeAfter": null },
9
+ { "threadId": "thread-2", "title": "Previous", "state": "archived", "createdAt": "2026-08-22T00:00:00Z", "updatedAt": "2026-08-22T02:00:00Z", "archivedAt": "2026-08-22T02:00:00Z", "archiveReason": "replaced", "purgeAfter": "2026-08-25T02:00:00Z" }
10
+ ]
11
+ }
12
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "target": "/chat/turn/submit",
3
+ "direction": "request",
4
+ "body": {
5
+ "requestId": "request-2",
6
+ "title": "Kitchen chat",
7
+ "content": {
8
+ "parts": [
9
+ { "type": "text", "text": "Turn on the lights" }
10
+ ]
11
+ },
12
+ "accessMode": "interactive",
13
+ "agentModelMode": "auto",
14
+ "temperature": null,
15
+ "allowTools": true,
16
+ "debug": false,
17
+ "occurredAtUnixMs": 1787587200000
18
+ }
19
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "target": "/chat/turn/submit",
3
+ "direction": "response",
4
+ "body": {
5
+ "requestId": "request-2",
6
+ "threadId": "thread-3",
7
+ "disposition": "queued",
8
+ "sessionDisposition": "rotated_idle_timeout",
9
+ "queueVersion": 1
10
+ }
11
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "manifest": "mhome.conversation.targets.v1",
3
+ "contractVersion": "0.11.1",
4
+ "requestTargets": [
5
+ "/chat/thread/list",
6
+ "/chat/thread/create",
7
+ "/chat/thread/archive",
8
+ "/chat/thread/rotate",
9
+ "/chat/thread/load",
10
+ "/chat/message/enqueue",
11
+ "/chat/turn/submit",
12
+ "/chat/session/start",
13
+ "/chat/interaction/answer",
14
+ "/chat/queue/reorder",
15
+ "/chat/request/cancel",
16
+ "/chat/interaction/submit"
17
+ ],
18
+ "eventTargets": [
19
+ "/chat/event",
20
+ "/chat/debug"
21
+ ]
22
+ }
package/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "@mhome/conversation-protocol",
3
+ "version": "0.11.1",
4
+ "description": "Build-time protocol artifacts for mhome.conversation",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/mhome-ai/foundation.git",
9
+ "directory": "crates/conversation-api"
10
+ },
11
+ "homepage": "https://github.com/mhome-ai/foundation#readme",
12
+ "bugs": {
13
+ "url": "https://github.com/mhome-ai/foundation/issues"
14
+ },
15
+ "keywords": [
16
+ "mhome",
17
+ "protocol",
18
+ "json-schema",
19
+ "fixtures"
20
+ ],
21
+ "private": false,
22
+ "files": [
23
+ "protocol.json",
24
+ "manifest",
25
+ "contract",
26
+ "schema",
27
+ "fixtures",
28
+ "README.md",
29
+ "LICENSE"
30
+ ],
31
+ "exports": {
32
+ "./package.json": "./package.json",
33
+ "./protocol.json": "./protocol.json",
34
+ "./manifest/*": "./manifest/*",
35
+ "./contract/*": "./contract/*",
36
+ "./schema/*": "./schema/*",
37
+ "./fixtures/*": "./fixtures/*"
38
+ },
39
+ "publishConfig": {
40
+ "access": "public",
41
+ "provenance": true
42
+ }
43
+ }
package/protocol.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "protocol": "mhome.conversation",
3
+ "contractVersion": "0.11.1",
4
+ "manifest": "manifest/targets.v1.json",
5
+ "schemas": {
6
+ "frame": "schema/conversation-frame.v2.schema.json"
7
+ },
8
+ "fixtures": {
9
+ "valid": "fixtures"
10
+ }
11
+ }