@ai-accounts/vue-headless 0.3.6 → 0.3.7
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.cjs +6 -1
- package/dist/index.d.cts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +6 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -276,6 +276,10 @@ function useLoginSession() {
|
|
|
276
276
|
menuPrompt.value = null;
|
|
277
277
|
await client.respondLogin(accountId.value, sessionId.value, promptId, answer);
|
|
278
278
|
}
|
|
279
|
+
async function writeEager(text) {
|
|
280
|
+
if (!sessionId.value || !accountId.value) return;
|
|
281
|
+
await client.writeEagerLogin(accountId.value, sessionId.value, text);
|
|
282
|
+
}
|
|
279
283
|
async function cancel() {
|
|
280
284
|
if (!sessionId.value || !accountId.value) return;
|
|
281
285
|
await client.cancelLogin(accountId.value, sessionId.value);
|
|
@@ -293,6 +297,7 @@ function useLoginSession() {
|
|
|
293
297
|
errorMessage,
|
|
294
298
|
start,
|
|
295
299
|
respond,
|
|
300
|
+
writeEager,
|
|
296
301
|
cancel
|
|
297
302
|
};
|
|
298
303
|
}
|
|
@@ -900,7 +905,7 @@ function useStreamingParser(options = {}) {
|
|
|
900
905
|
}
|
|
901
906
|
|
|
902
907
|
// src/index.ts
|
|
903
|
-
var version = "0.3.
|
|
908
|
+
var version = "0.3.7";
|
|
904
909
|
// Annotate the CommonJS export names for ESM import in node:
|
|
905
910
|
0 && (module.exports = {
|
|
906
911
|
aiAccountsKey,
|
package/dist/index.d.cts
CHANGED
|
@@ -80,6 +80,11 @@ type UseLoginSession = {
|
|
|
80
80
|
errorMessage: Ref<string | null>;
|
|
81
81
|
start: (accountId: string, flow: LoginFlowKind, inputs: Record<string, string>) => Promise<void>;
|
|
82
82
|
respond: (answer: string) => Promise<void>;
|
|
83
|
+
/**
|
|
84
|
+
* Write arbitrary text directly to the CLI's stdin. Used for eager
|
|
85
|
+
* paste-code input before the CLI has emitted its own text prompt.
|
|
86
|
+
*/
|
|
87
|
+
writeEager: (text: string) => Promise<void>;
|
|
83
88
|
cancel: () => Promise<void>;
|
|
84
89
|
};
|
|
85
90
|
declare function useLoginSession(): UseLoginSession;
|
|
@@ -201,6 +206,6 @@ interface UseStreamingParserReturn {
|
|
|
201
206
|
*/
|
|
202
207
|
declare function useStreamingParser(options?: UseStreamingParserOptions): UseStreamingParserReturn;
|
|
203
208
|
|
|
204
|
-
declare const version = "0.3.
|
|
209
|
+
declare const version = "0.3.7";
|
|
205
210
|
|
|
206
211
|
export { type AiAccountsContext, type AiAccountsPluginOptions, type BackendResponseState, type LoginStatus, type ProcessGroup, type SynthesisStateRef, type UseAccountWizardOptions, type UseAccountWizardReturn, type UseConversationReturn, type UseLoginSession, type UseOnboardingOptions, type UseOnboardingReturn, type UseProcessGroupsReturn, type UseSmartChatReturn, type UseSmartScrollReturn, type UseStreamingParserOptions, type UseStreamingParserReturn, aiAccountsKey, aiAccountsPlugin, useAccountWizard, useAiAccounts, useBackendRegistry, useConversation, useLoginSession, useOnboarding, useProcessGroups, useSmartChat, useSmartScroll, useStreamingParser, version };
|
package/dist/index.d.ts
CHANGED
|
@@ -80,6 +80,11 @@ type UseLoginSession = {
|
|
|
80
80
|
errorMessage: Ref<string | null>;
|
|
81
81
|
start: (accountId: string, flow: LoginFlowKind, inputs: Record<string, string>) => Promise<void>;
|
|
82
82
|
respond: (answer: string) => Promise<void>;
|
|
83
|
+
/**
|
|
84
|
+
* Write arbitrary text directly to the CLI's stdin. Used for eager
|
|
85
|
+
* paste-code input before the CLI has emitted its own text prompt.
|
|
86
|
+
*/
|
|
87
|
+
writeEager: (text: string) => Promise<void>;
|
|
83
88
|
cancel: () => Promise<void>;
|
|
84
89
|
};
|
|
85
90
|
declare function useLoginSession(): UseLoginSession;
|
|
@@ -201,6 +206,6 @@ interface UseStreamingParserReturn {
|
|
|
201
206
|
*/
|
|
202
207
|
declare function useStreamingParser(options?: UseStreamingParserOptions): UseStreamingParserReturn;
|
|
203
208
|
|
|
204
|
-
declare const version = "0.3.
|
|
209
|
+
declare const version = "0.3.7";
|
|
205
210
|
|
|
206
211
|
export { type AiAccountsContext, type AiAccountsPluginOptions, type BackendResponseState, type LoginStatus, type ProcessGroup, type SynthesisStateRef, type UseAccountWizardOptions, type UseAccountWizardReturn, type UseConversationReturn, type UseLoginSession, type UseOnboardingOptions, type UseOnboardingReturn, type UseProcessGroupsReturn, type UseSmartChatReturn, type UseSmartScrollReturn, type UseStreamingParserOptions, type UseStreamingParserReturn, aiAccountsKey, aiAccountsPlugin, useAccountWizard, useAiAccounts, useBackendRegistry, useConversation, useLoginSession, useOnboarding, useProcessGroups, useSmartChat, useSmartScroll, useStreamingParser, version };
|
package/dist/index.js
CHANGED
|
@@ -232,6 +232,10 @@ function useLoginSession() {
|
|
|
232
232
|
menuPrompt.value = null;
|
|
233
233
|
await client.respondLogin(accountId.value, sessionId.value, promptId, answer);
|
|
234
234
|
}
|
|
235
|
+
async function writeEager(text) {
|
|
236
|
+
if (!sessionId.value || !accountId.value) return;
|
|
237
|
+
await client.writeEagerLogin(accountId.value, sessionId.value, text);
|
|
238
|
+
}
|
|
235
239
|
async function cancel() {
|
|
236
240
|
if (!sessionId.value || !accountId.value) return;
|
|
237
241
|
await client.cancelLogin(accountId.value, sessionId.value);
|
|
@@ -249,6 +253,7 @@ function useLoginSession() {
|
|
|
249
253
|
errorMessage,
|
|
250
254
|
start,
|
|
251
255
|
respond,
|
|
256
|
+
writeEager,
|
|
252
257
|
cancel
|
|
253
258
|
};
|
|
254
259
|
}
|
|
@@ -856,7 +861,7 @@ function useStreamingParser(options = {}) {
|
|
|
856
861
|
}
|
|
857
862
|
|
|
858
863
|
// src/index.ts
|
|
859
|
-
var version = "0.3.
|
|
864
|
+
var version = "0.3.7";
|
|
860
865
|
export {
|
|
861
866
|
aiAccountsKey,
|
|
862
867
|
aiAccountsPlugin,
|