@mitralab.io/platform-sdk 1.2.0-beta.6 → 1.2.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -2,6 +2,38 @@
2
2
 
3
3
  All notable changes to this project are documented in this file.
4
4
 
5
+ ## 1.2.0
6
+
7
+ Stable release of the 1.1.4-beta.0 to 1.2.0-beta.6 line. Everything below is already on the
8
+ `beta` tag; this entry consolidates it for the person moving from 1.1.3.
9
+
10
+ - On the direct channel the message and the interrupt go over the box socket, as the client
11
+ frames the box already reads, instead of `POST /copilot/api/v1/tasks/{id}/inputs`. REST stays
12
+ for a chat with no box socket, for a socket not open at the moment of the send, and for every
13
+ approval answer. The channel the Copilot offers is followed when its `wss:` address is on the
14
+ API host or on a fleet box host (`<port>-<box>.e2b.app` or
15
+ `<port>-<box>.e2b-<fleet>.mitralab.ai`), and a refused offer emits a `raw` event of type
16
+ `channelDeclined` before the chat follows the Copilot socket.
17
+ - The eight `agentCredentials` methods take a trailing `{ scope: "ACCOUNT" }`, and
18
+ `session({ create: true })` and `agentTasks.create()` accept `scope: "ACCOUNT"` in the create
19
+ body, so the credential and the chat resolve against the person's own account instead of the
20
+ app. Without `scope` nothing changes on the wire.
21
+ - `agentCredentials` exposes the person's custom providers: `listCustomProviders(options?)`,
22
+ `createCustomProvider(input, options?)` and `deleteCustomProvider(id, options?)`, passthroughs
23
+ to `/api/v1/credentials/custom-providers`. `NativeAgentModel` carries `providerName`, null on
24
+ built-in models. A custom provider is chosen by sending the `agentType` that the
25
+ `agentCredentials.listModels()` row returns: there is no `model` field on chat creation or on
26
+ the message send. A chat created over the `auto` or `websocket` transport keeps being born on
27
+ the T3 box with `runtime: "T3"`, as in 1.1.3.
28
+ - Sign-in by email: `signInWithEmail()` through the platform auth page, and
29
+ `requestEmailCode({ email, language? })` with `verifyEmailCode({ receipt, code })` for an
30
+ application that renders its own address and code fields. Both are completed by
31
+ `completeEmailSignInRedirect()` at startup, the link in the message lands on the application's
32
+ own origin as `#emailToken=<token>`, and `mitra.emailLoginEnabled` says whether the app is inside
33
+ the platform's rollout. `MitraApiError.retryAfterSeconds` reads `Retry-After` on a `429`.
34
+ - Depend on `@mitralab.io/sdk-core@0.2.8`, the stable release of the 0.2.8-beta.0 surface this
35
+ package already followed.
36
+
5
37
  ## 1.2.0-beta.6
6
38
 
7
39
  - Follow the box channel the Copilot offers when its `wss:` address is on a fleet box host
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mitralab.io/platform-sdk",
3
- "version": "1.2.0-beta.6",
3
+ "version": "1.2.0",
4
4
  "description": "JavaScript/TypeScript SDK for building apps on the Mitra Platform",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -62,7 +62,7 @@
62
62
  "url": "https://github.com/mitralab-dev/mitra-platform-sdk/issues"
63
63
  },
64
64
  "dependencies": {
65
- "@mitralab.io/sdk-core": "0.2.8-beta.0",
65
+ "@mitralab.io/sdk-core": "0.2.8",
66
66
  "mitra-interactions-sdk": "1.0.60-beta.48"
67
67
  },
68
68
  "devDependencies": {