@smoothbuilder/smoothagent-agent-client 0.4.0 → 0.4.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.
- package/CHANGELOG.md +4 -0
- package/dist/index.js +1 -1
- package/dist/testing.js +1 -1
- package/dist/types/sdk/ts/client/src/index.d.ts +1 -1
- package/dist/types/sdk/ts/core-live/src/types.d.ts +1 -1
- package/dist/types/sdk/ts/core-live/src/wasm/bytes.d.ts +1 -1
- package/dist/types/sdk/ts/core-live/src/watch.d.ts +3 -1
- package/package.json +2 -2
- package/dist/bytes-3XCX7CRA.js +0 -8
- package/dist/chunk-5OIAMMEN.js +0 -15244
- package/dist/chunk-5OIAMMEN.js.map +0 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { LiveDeps } from './deps.js';
|
|
2
2
|
import { newMessageId, uuidv7 } from './ids.js';
|
|
3
3
|
import { type DebugEvent, type LiveStatus, type StreamOptions, type Via, type Violation } from './stream.js';
|
|
4
|
-
import { type QueueState, type BoxPresence, type ContentPart, type Envelope, type InboxState, type NeedsProvider, type SendMode, type SubmitResult } from './types.js';
|
|
4
|
+
import { type ChatMessage, type EffectiveSelection, type QueueState, type BoxPresence, type ContentPart, type Envelope, type InboxState, type NeedsProvider, type SendMode, type SubmitResult } from './types.js';
|
|
5
5
|
export { newMessageId, uuidv7 };
|
|
6
6
|
/** A troca, na forma do REST (`SwitchAgent`). */
|
|
7
7
|
export interface SwitchTo {
|
|
@@ -120,6 +120,8 @@ export interface WatchState<S, I = unknown> {
|
|
|
120
120
|
/** Sobe a cada mudança (comparar barato). */
|
|
121
121
|
version: number;
|
|
122
122
|
timeline: S;
|
|
123
|
+
messages: ChatMessage[];
|
|
124
|
+
effectiveSelection: EffectiveSelection;
|
|
123
125
|
/**
|
|
124
126
|
* A fila do chat (§17): a MESMA venha da fila fria do realtime ou da box (a maior versão vale). Uma
|
|
125
127
|
* mensagem some daqui quando o `user_message` com o mesmo messageId entra na timeline — nunca aparece 2×.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smoothbuilder/smoothagent-agent-client",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "SmoothAgent SDK do usuário (token do usuário): REST gerada do contrato + a camada ao vivo (watch, events, prompt, lista de chats). Roda no navegador e no Node.",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://smoothagent-v3-api.uaibuilder.workers.dev/v3/docs",
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "4fc43f38"
|
|
41
41
|
}
|