@lunora/vue 1.0.0-alpha.66 → 1.0.0-alpha.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/dist/index.d.mts +9 -9
- package/dist/index.d.ts +9 -9
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -117,14 +117,14 @@ interface UseAgentOptions {
|
|
|
117
117
|
api: UseAgentApi;
|
|
118
118
|
/**
|
|
119
119
|
* Optional app mutation over the agent's cancel path
|
|
120
|
-
* (`ctx.agents
|
|
120
|
+
* (`ctx.agents.<name>.cancel(id)`). Called with `{ instanceId, threadKey }`.
|
|
121
121
|
* When omitted (or no run is in flight) {@link UseAgentResult.cancel} is a
|
|
122
122
|
* no-op.
|
|
123
123
|
*/
|
|
124
124
|
cancel?: FunctionReference<"mutation">;
|
|
125
125
|
/**
|
|
126
126
|
* The app mutation that starts (or continues) a run — a thin wrapper over
|
|
127
|
-
* `ctx.agents
|
|
127
|
+
* `ctx.agents.<name>.run(...)`. Called with `{ threadKey, input }` merged with
|
|
128
128
|
* {@link UseAgentOptions.runArgs} and the per-call args.
|
|
129
129
|
*/
|
|
130
130
|
run: FunctionReference<"mutation">;
|
|
@@ -156,7 +156,7 @@ interface UseAgentResult {
|
|
|
156
156
|
* (durable history + streaming + approvals) use `useAgentChat`.
|
|
157
157
|
*
|
|
158
158
|
* `run` and `cancel` stay generic over the app-defined mutations that wrap
|
|
159
|
-
* `ctx.agents
|
|
159
|
+
* `ctx.agents.<name>.run` / `.cancel`, so the composable hard-codes no function
|
|
160
160
|
* names beyond the `agents:*` surface. `threadKey` may be reactive — a changing
|
|
161
161
|
* key re-subscribes to the new thread.
|
|
162
162
|
*/
|
|
@@ -270,7 +270,7 @@ interface UseAgentChatOptions {
|
|
|
270
270
|
api: UseAgentChatApi;
|
|
271
271
|
/**
|
|
272
272
|
* Optional app mutation over the agent's cancel path
|
|
273
|
-
* (`ctx.agents
|
|
273
|
+
* (`ctx.agents.<name>.cancel(id)`). Called with `{ instanceId, threadKey }`.
|
|
274
274
|
* When omitted (or no run is in flight) {@link UseAgentChatResult.cancel} is a
|
|
275
275
|
* no-op.
|
|
276
276
|
*/
|
|
@@ -279,7 +279,7 @@ interface UseAgentChatOptions {
|
|
|
279
279
|
limit?: number;
|
|
280
280
|
/**
|
|
281
281
|
* The app mutation that starts (or continues) a run — a thin wrapper over
|
|
282
|
-
* `ctx.agents
|
|
282
|
+
* `ctx.agents.<name>.run(...)`. Called with `{ threadKey, input }` merged with
|
|
283
283
|
* {@link UseAgentChatOptions.sendArgs} and the per-call args.
|
|
284
284
|
*/
|
|
285
285
|
send: FunctionReference<"mutation">;
|
|
@@ -894,9 +894,9 @@ type CreateSpeaker = (config: {
|
|
|
894
894
|
audioFormat: VoiceAudioFormat;
|
|
895
895
|
}) => VoiceSpeaker;
|
|
896
896
|
/**
|
|
897
|
-
* The `agents
|
|
897
|
+
* The `agents.<name>Voice` reference codegen emits for a voice-enabled agent — a
|
|
898
898
|
* live, WS-backed session keyed by `threadKey`. A structural subset of the
|
|
899
|
-
* generated member, so passing `api.agents
|
|
899
|
+
* generated member, so passing `api.agents.<name>Voice` type-checks.
|
|
900
900
|
*/
|
|
901
901
|
type VoiceReference = FunctionReference<"stream", {
|
|
902
902
|
threadKey: string;
|
|
@@ -938,7 +938,7 @@ interface UseVoiceAgentOptions {
|
|
|
938
938
|
silenceThreshold?: number;
|
|
939
939
|
/** The thread to converse on — shared with the agent's text turns. May be a plain value, `ref`, or getter (resolved when the call opens). */
|
|
940
940
|
threadKey: MaybeRefOrGetter<string>;
|
|
941
|
-
/** The generated `api.agents
|
|
941
|
+
/** The generated `api.agents.<name>Voice` reference — identifies the voice DO endpoint. */
|
|
942
942
|
voice: VoiceReference;
|
|
943
943
|
}
|
|
944
944
|
interface UseVoiceAgentResult {
|
|
@@ -970,7 +970,7 @@ interface UseVoiceAgentResult {
|
|
|
970
970
|
* WebSocket to the agent's `VoiceSessionDO`, captures mic audio as 16 kHz PCM,
|
|
971
971
|
* streams the agent's synthesized speech back through the browser's audio output,
|
|
972
972
|
* and mirrors the call lifecycle (`status`, `transcript`, `interimTranscript`,
|
|
973
|
-
* `audioLevel`) to Vue refs. Pass the generated `api.agents
|
|
973
|
+
* `audioLevel`) to Vue refs. Pass the generated `api.agents.<name>Voice`
|
|
974
974
|
* reference (never a string), matching `useAgentChat`'s reference-passing style.
|
|
975
975
|
* The Vue counterpart to React's `useVoiceAgent`, re-expressed with refs; the
|
|
976
976
|
* per-call connection lives in a closure variable (a composable runs once per
|
package/dist/index.d.ts
CHANGED
|
@@ -117,14 +117,14 @@ interface UseAgentOptions {
|
|
|
117
117
|
api: UseAgentApi;
|
|
118
118
|
/**
|
|
119
119
|
* Optional app mutation over the agent's cancel path
|
|
120
|
-
* (`ctx.agents
|
|
120
|
+
* (`ctx.agents.<name>.cancel(id)`). Called with `{ instanceId, threadKey }`.
|
|
121
121
|
* When omitted (or no run is in flight) {@link UseAgentResult.cancel} is a
|
|
122
122
|
* no-op.
|
|
123
123
|
*/
|
|
124
124
|
cancel?: FunctionReference<"mutation">;
|
|
125
125
|
/**
|
|
126
126
|
* The app mutation that starts (or continues) a run — a thin wrapper over
|
|
127
|
-
* `ctx.agents
|
|
127
|
+
* `ctx.agents.<name>.run(...)`. Called with `{ threadKey, input }` merged with
|
|
128
128
|
* {@link UseAgentOptions.runArgs} and the per-call args.
|
|
129
129
|
*/
|
|
130
130
|
run: FunctionReference<"mutation">;
|
|
@@ -156,7 +156,7 @@ interface UseAgentResult {
|
|
|
156
156
|
* (durable history + streaming + approvals) use `useAgentChat`.
|
|
157
157
|
*
|
|
158
158
|
* `run` and `cancel` stay generic over the app-defined mutations that wrap
|
|
159
|
-
* `ctx.agents
|
|
159
|
+
* `ctx.agents.<name>.run` / `.cancel`, so the composable hard-codes no function
|
|
160
160
|
* names beyond the `agents:*` surface. `threadKey` may be reactive — a changing
|
|
161
161
|
* key re-subscribes to the new thread.
|
|
162
162
|
*/
|
|
@@ -270,7 +270,7 @@ interface UseAgentChatOptions {
|
|
|
270
270
|
api: UseAgentChatApi;
|
|
271
271
|
/**
|
|
272
272
|
* Optional app mutation over the agent's cancel path
|
|
273
|
-
* (`ctx.agents
|
|
273
|
+
* (`ctx.agents.<name>.cancel(id)`). Called with `{ instanceId, threadKey }`.
|
|
274
274
|
* When omitted (or no run is in flight) {@link UseAgentChatResult.cancel} is a
|
|
275
275
|
* no-op.
|
|
276
276
|
*/
|
|
@@ -279,7 +279,7 @@ interface UseAgentChatOptions {
|
|
|
279
279
|
limit?: number;
|
|
280
280
|
/**
|
|
281
281
|
* The app mutation that starts (or continues) a run — a thin wrapper over
|
|
282
|
-
* `ctx.agents
|
|
282
|
+
* `ctx.agents.<name>.run(...)`. Called with `{ threadKey, input }` merged with
|
|
283
283
|
* {@link UseAgentChatOptions.sendArgs} and the per-call args.
|
|
284
284
|
*/
|
|
285
285
|
send: FunctionReference<"mutation">;
|
|
@@ -894,9 +894,9 @@ type CreateSpeaker = (config: {
|
|
|
894
894
|
audioFormat: VoiceAudioFormat;
|
|
895
895
|
}) => VoiceSpeaker;
|
|
896
896
|
/**
|
|
897
|
-
* The `agents
|
|
897
|
+
* The `agents.<name>Voice` reference codegen emits for a voice-enabled agent — a
|
|
898
898
|
* live, WS-backed session keyed by `threadKey`. A structural subset of the
|
|
899
|
-
* generated member, so passing `api.agents
|
|
899
|
+
* generated member, so passing `api.agents.<name>Voice` type-checks.
|
|
900
900
|
*/
|
|
901
901
|
type VoiceReference = FunctionReference<"stream", {
|
|
902
902
|
threadKey: string;
|
|
@@ -938,7 +938,7 @@ interface UseVoiceAgentOptions {
|
|
|
938
938
|
silenceThreshold?: number;
|
|
939
939
|
/** The thread to converse on — shared with the agent's text turns. May be a plain value, `ref`, or getter (resolved when the call opens). */
|
|
940
940
|
threadKey: MaybeRefOrGetter<string>;
|
|
941
|
-
/** The generated `api.agents
|
|
941
|
+
/** The generated `api.agents.<name>Voice` reference — identifies the voice DO endpoint. */
|
|
942
942
|
voice: VoiceReference;
|
|
943
943
|
}
|
|
944
944
|
interface UseVoiceAgentResult {
|
|
@@ -970,7 +970,7 @@ interface UseVoiceAgentResult {
|
|
|
970
970
|
* WebSocket to the agent's `VoiceSessionDO`, captures mic audio as 16 kHz PCM,
|
|
971
971
|
* streams the agent's synthesized speech back through the browser's audio output,
|
|
972
972
|
* and mirrors the call lifecycle (`status`, `transcript`, `interimTranscript`,
|
|
973
|
-
* `audioLevel`) to Vue refs. Pass the generated `api.agents
|
|
973
|
+
* `audioLevel`) to Vue refs. Pass the generated `api.agents.<name>Voice`
|
|
974
974
|
* reference (never a string), matching `useAgentChat`'s reference-passing style.
|
|
975
975
|
* The Vue counterpart to React's `useVoiceAgent`, re-expressed with refs; the
|
|
976
976
|
* per-call connection lives in a closure variable (a composable runs once per
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunora/vue",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.68",
|
|
4
4
|
"description": "Vue adapter for Lunora — live composables, optimistic mutations, and reactive loaders",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -58,10 +58,10 @@
|
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@lunora/client": "1.0.0-alpha.
|
|
62
|
-
"@lunora/errors": "1.0.0-alpha.
|
|
63
|
-
"@lunora/ratelimit": "1.0.0-alpha.
|
|
64
|
-
"@lunora/runtime": "1.0.0-alpha.
|
|
61
|
+
"@lunora/client": "1.0.0-alpha.40",
|
|
62
|
+
"@lunora/errors": "1.0.0-alpha.14",
|
|
63
|
+
"@lunora/ratelimit": "1.0.0-alpha.17",
|
|
64
|
+
"@lunora/runtime": "1.0.0-alpha.53",
|
|
65
65
|
"@visulima/storage-client": "1.0.0"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|