@yolk-sdk/agent 0.1.0-canary.67 → 0.1.0-canary.68
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 +16 -1
- package/dist/skillset/merge.d.mts +1 -1
- package/dist/skillset/name.d.mts +2 -2
- package/dist/skillset/name.d.mts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -412,6 +412,20 @@ const projection = events.reduce(
|
|
|
412
412
|
Use `applyAgentEventToChatMessages` only for ephemeral local streams where append-only deltas cannot
|
|
413
413
|
replay.
|
|
414
414
|
|
|
415
|
+
When the host promotes queued user input into a durable stream, emit a replay-safe user event:
|
|
416
|
+
|
|
417
|
+
```ts
|
|
418
|
+
import { UserMessage, UserMessageEvent } from '@yolk-sdk/agent/protocol'
|
|
419
|
+
|
|
420
|
+
const event = UserMessageEvent.make({
|
|
421
|
+
eventId: 'session_1:user-message_42',
|
|
422
|
+
message: UserMessage.make({ content: 'Please also compare the alternatives.' })
|
|
423
|
+
})
|
|
424
|
+
```
|
|
425
|
+
|
|
426
|
+
The host owns queueing and promotion policy and must assign a stable `eventId` so reconnects do not
|
|
427
|
+
project the same promoted message twice.
|
|
428
|
+
|
|
415
429
|
## Parallel tool calls
|
|
416
430
|
|
|
417
431
|
OpenAI, Vercel AI Gateway, OpenAI Codex, and Grok requests enable vendor parallel tool calls when tools are available. The
|
|
@@ -502,7 +516,8 @@ handler, approval HITL, transcript projection, and one-shot TTS/STT contracts.
|
|
|
502
516
|
give replay-safe durable event ids; `voiceSeedTextsFromMessages` seeds new provider sessions
|
|
503
517
|
after reconnect, optionally prefixing user seeds with author display names via
|
|
504
518
|
`{ includeAuthors: true }` for multi-user transcripts.
|
|
505
|
-
- `makeWebSocketVoiceTransport` covers Node/server realtime sessions
|
|
519
|
+
- `makeWebSocketVoiceTransport` covers Node/server realtime sessions and requires a host-provided
|
|
520
|
+
`Socket.WebSocketConstructor` layer, such as `Socket.layerWebSocketConstructorGlobal`;
|
|
506
521
|
`@yolk-sdk/agent/providers/openai/speech` provides `makeOpenAiSpeechSynthesizerLayer` and
|
|
507
522
|
`makeOpenAiTranscriberLayer` for the provider-neutral voice services.
|
|
508
523
|
`VoiceSpeechRequest.instructions` steers delivery style only, and
|
|
@@ -27,6 +27,7 @@ declare const mergeSkillsets: (sources: ReadonlyArray<SkillsetSource>) => Effect
|
|
|
27
27
|
readonly template: string;
|
|
28
28
|
readonly description?: string | undefined;
|
|
29
29
|
readonly source?: string | undefined;
|
|
30
|
+
readonly location?: string | undefined;
|
|
30
31
|
readonly arguments?: readonly {
|
|
31
32
|
readonly required: boolean;
|
|
32
33
|
readonly name: string;
|
|
@@ -34,7 +35,6 @@ declare const mergeSkillsets: (sources: ReadonlyArray<SkillsetSource>) => Effect
|
|
|
34
35
|
}[] | undefined;
|
|
35
36
|
readonly access?: "read" | "write" | "destructive" | undefined;
|
|
36
37
|
readonly fileRefs?: boolean | undefined;
|
|
37
|
-
readonly location?: string | undefined;
|
|
38
38
|
}[];
|
|
39
39
|
}, SkillsetError, never>;
|
|
40
40
|
//#endregion
|
package/dist/skillset/name.d.mts
CHANGED
|
@@ -3,8 +3,8 @@ import { Effect } from "effect";
|
|
|
3
3
|
|
|
4
4
|
//#region src/skillset/name.d.ts
|
|
5
5
|
declare const isValidSkillsetName: (name: string) => boolean;
|
|
6
|
-
declare const validateSkillsetName: (name: string) => Effect.Effect<
|
|
7
|
-
declare const validateDirectoryName: (expected: string, actual: string) => Effect.Effect<
|
|
6
|
+
declare const validateSkillsetName: (name: string) => Effect.Effect<never, SkillsetError, never> | Effect.Effect<string, never, never>;
|
|
7
|
+
declare const validateDirectoryName: (expected: string, actual: string) => Effect.Effect<never, SkillsetError, never> | Effect.Effect<string, never, never>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { isValidSkillsetName, validateDirectoryName, validateSkillsetName };
|
|
10
10
|
//# sourceMappingURL=name.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"name.d.mts","names":[],"sources":["../../src/skillset/name.ts"],"mappings":";;;;cAMa,mBAAA,GAAuB,IAAY;AAAA,cAGnC,oBAAA,GAAwB,IAAA,aAAY,MAAA,CAAA,MAAA,
|
|
1
|
+
{"version":3,"file":"name.d.mts","names":[],"sources":["../../src/skillset/name.ts"],"mappings":";;;;cAMa,mBAAA,GAAuB,IAAY;AAAA,cAGnC,oBAAA,GAAwB,IAAA,aAAY,MAAA,CAAA,MAAA,QAAA,aAAA,WAAA,MAAA,CAAA,MAAA;AAAA,cAUpC,qBAAA,GAAyB,QAAA,UAAkB,MAAA,aAAc,MAAA,CAAA,MAAA,QAAA,aAAA,WAAA,MAAA,CAAA,MAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolk-sdk/agent",
|
|
3
|
-
"version": "0.1.0-canary.
|
|
3
|
+
"version": "0.1.0-canary.68",
|
|
4
4
|
"description": "Agent protocol, loop, runtime, Effect-native client, compaction, tools, React, providers, OAuth, skillset, and voice primitives.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|