@mitralab.io/sdk-core 0.3.4 → 0.3.5

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/CHANGELOG.md CHANGED
@@ -2,6 +2,22 @@
2
2
 
3
3
  All notable changes to this project are documented in this file.
4
4
 
5
+ ## 0.3.5
6
+
7
+ - A tab that sends a message to the queue of a chat whose turn runs, before its socket said a turn
8
+ was running, now ends that turn: the running turn's `stepStart`, which names another message,
9
+ moves its own message to wait for the turn the box opens for it, as a queued steer does. The
10
+ frames and the terminal of the running turn are no longer taken for a finished turn's and
11
+ dropped, the `sendAndWait` of the queued message resolves only with its own turn, and taking it
12
+ out of the queue rejects only it. A message whose turn started on the box while it was still on
13
+ its way (the replay of a chat another tab runs) goes behind that turn the same way, with no
14
+ second `turnStart`. Before, that tab never emitted the `turnEnd` of the running
15
+ turn, and a Stop from it failed with "Agent turn cancellation was not acknowledged before the
16
+ safety timeout" (mitra-core-sdk#136).
17
+ - `FunctionVersion.code` now accepts `null` when the Functions API redacts source from an otherwise
18
+ successful administrative response. Missing or structurally invalid code remains an invalid
19
+ response, and `null` is not treated as empty source (#107).
20
+
5
21
  ## 0.3.4
6
22
 
7
23
  - The `notification` history item carries `source`, `outcome`, `summary` and `detail` on top, as
package/README.md CHANGED
@@ -70,6 +70,8 @@ const { data: tasks, hasMore } = await core.entities.getTable("Task").list({ lim
70
70
  - `messenger`: `notify` avisa o usuário autenticado, `sendEmail` manda e-mail com o remetente do app, `listEmailTemplates`, `getEmailTemplateType`, `getEmailTemplate`, `upsertEmailTemplate`, `previewEmailTemplate` e `deleteEmailTemplate` cuidam dos templates de e-mail de conta do app, e `listEmailSenders`, `registerEmailSender`, `resendEmailSenderVerification`, `confirmEmailSender`, `getEmailSettings` e `updateEmailSettings` cuidam do remetente dele.
71
71
  - `resolveApiKeyToken`, `readTokenAppId` e `tokenAuthorizesApp`: contrato da troca de API key por token, para o SDK que autentica por chave.
72
72
 
73
+ Em `functionsAdmin`, `FunctionVersion.code` pode ser `null` quando o token permite ler a Function, mas não seu source. Nesse caso, `secrets` também é `null`; isoladamente, porém, `secrets: null` pode apenas indicar que a Function não usa secrets. O campo ausente continua sendo uma resposta inválida. Trate `code: null` como source redigido, não como código vazio nem como falha da operação.
74
+
73
75
  ## Configuração
74
76
 
75
77
  | Opção | Obrigatória | Uso |
@@ -24,6 +24,11 @@ publishes.
24
24
 
25
25
  ## Versions
26
26
 
27
+ - `0.3.5` is the `0.3.4` parity surface with a fix in the agent session: a tab that sends to the
28
+ queue of a chat whose turn runs ends that turn, and `FunctionVersion.code` accepts `null` when the
29
+ Functions API redacts source. Same parity cases; the version exists so a
30
+ consumer pinning the package can pin a corpus with the same number.
31
+
27
32
  - `0.3.4` is the `0.3.3` parity surface with the `notification` history item carrying `source`,
28
33
  `outcome`, `summary` and `detail` on top, as the live event does, and a fix in the agent
29
34
  session: a redial the box opens with its state no longer hides the replay. Same parity cases; the version
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "contract": "SDK-PARITY-001",
3
- "current": "0.3.4",
3
+ "current": "0.3.5",
4
4
  "versions": [
5
5
  {
6
6
  "version": "0.1.0",
@@ -155,6 +155,11 @@
155
155
  "version": "0.3.4",
156
156
  "path": "v0.3.4/sdk-parity.json",
157
157
  "sha256": "fb240cef81908f5ba26a065359374d17ca18c21f790c98d1a942e8060fbde3ea"
158
+ },
159
+ {
160
+ "version": "0.3.5",
161
+ "path": "v0.3.5/sdk-parity.json",
162
+ "sha256": "e67d7b52b81cd1dca0958b60c72976015567773e6ed8dc6e7dc7dba55af047e4"
158
163
  }
159
164
  ]
160
165
  }