@mitralab.io/sdk-core 0.2.9-beta.1 → 0.2.9

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
@@ -95,6 +95,13 @@ receives the box log. A new business agent's chat is created with `runtime: "T3"
95
95
  on its box, unless the session names a runtime; the Copilot refuses T3 for any other chat
96
96
  (`RUNTIME_REQUIRES_AGENT_APP`).
97
97
 
98
+ `session({ taskId })` reads the task before it opens anything, so the same rule holds for an
99
+ existing chat: with no `agentId` it never asks for `/channel`; with an `agentId` it asks and the
100
+ Copilot decides. A chat the Copilot will not serve on its box (not on T3, answered for example
101
+ with `RUNTIME_NOT_T3`) is a raw `channelDeclined` with `reason: "unavailable"` and the Copilot's
102
+ message, and the session goes on through the event source and REST inputs, with no `error`
103
+ event for the app.
104
+
98
105
  - **Transport.** `websocket` uses the box socket. `http` uses the box's HTTP routes next to the
99
106
  socket path: `POST .../api/mitra/chat/messages` to send and `GET .../api/mitra/chat/events`
100
107
  (SSE, from a sequence) to read, keeping the `grant` and `ticket` query of the channel URL.
@@ -24,6 +24,10 @@ publishes.
24
24
 
25
25
  ## Versions
26
26
 
27
+ - `0.2.9` is the stable release of the `0.2.9-beta.1` surface: the direct box channel on the
28
+ Agent session, limited to business agent chats. Same parity cases; the version exists so a
29
+ consumer pinning the stable package can pin a corpus with the same number.
30
+
27
31
  - `0.2.9-beta.1` is the `0.2.9-beta.0` parity surface republished with the direct channel
28
32
  limited to business agent chats and the box refusals of the final contract. Same parity
29
33
  cases; the version exists so a consumer pinning the package can pin a corpus with the same number.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "contract": "SDK-PARITY-001",
3
- "current": "0.2.9-beta.1",
3
+ "current": "0.2.9",
4
4
  "versions": [
5
5
  {
6
6
  "version": "0.1.0",
@@ -80,6 +80,11 @@
80
80
  "version": "0.2.9-beta.1",
81
81
  "path": "v0.2.9-beta.1/sdk-parity.json",
82
82
  "sha256": "f0ec4130c399f7102ad20b6dc54ed50da957003d19d3ab811d013ce89b5cde06"
83
+ },
84
+ {
85
+ "version": "0.2.9",
86
+ "path": "v0.2.9/sdk-parity.json",
87
+ "sha256": "aa81d033dc4bf7ccd30d712568e6bccf1319a208e9072c40369a86b090bc5c13"
83
88
  }
84
89
  ]
85
90
  }