@elizaos/app-core 2.0.0-alpha.47 → 2.0.0-alpha.49
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/.turbo/turbo-build.log +2 -0
- package/dist/hooks/useVoiceChat.d.ts +1 -36
- package/dist/hooks/useVoiceChat.d.ts.map +1 -1
- package/dist/hooks/useVoiceChat.js +9 -4
- package/dist/i18n/locales/en.json +1193 -1193
- package/dist/i18n/locales/es.json +1193 -1193
- package/dist/i18n/locales/ko.json +1193 -1193
- package/dist/i18n/locales/pt.json +1193 -1193
- package/dist/i18n/locales/zh-CN.json +1193 -1193
- package/package.json +4 -4
- package/src/hooks/useVoiceChat.ts +9 -12
- package/dist/package.json +0 -182
- package/dist/styles/anime.css +0 -6324
- package/dist/styles/base.css +0 -196
- package/dist/styles/onboarding-game.css +0 -738
- package/dist/styles/styles.css +0 -2087
- package/dist/styles/xterm.css +0 -241
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elizaos/app-core",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.49",
|
|
4
4
|
"description": "Shared application core for elizaOS shells and white-label apps.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
"@capacitor/haptics": "8.0.0",
|
|
68
68
|
"@capacitor/keyboard": "8.0.0",
|
|
69
69
|
"@capacitor/preferences": "^8.0.1",
|
|
70
|
-
"@elizaos/autonomous": "2.0.0-alpha.
|
|
71
|
-
"@elizaos/ui": "2.0.0-alpha.
|
|
70
|
+
"@elizaos/autonomous": "2.0.0-alpha.49",
|
|
71
|
+
"@elizaos/ui": "2.0.0-alpha.49",
|
|
72
72
|
"@lifo-sh/core": "0.4.4",
|
|
73
73
|
"@lifo-sh/ui": "0.4.2",
|
|
74
74
|
"@pixiv/three-vrm": "^3.4.5",
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"tailwindcss": "^4.1.18",
|
|
89
89
|
"typescript": "^5.9.3"
|
|
90
90
|
},
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "5020ece2db4c07aaa7e25c4490f26f6b44e277d7"
|
|
92
92
|
}
|
|
@@ -60,11 +60,10 @@ interface SpeechRecognitionResultList {
|
|
|
60
60
|
|
|
61
61
|
type SpeechRecognitionCtor = new () => SpeechRecognitionInstance;
|
|
62
62
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
63
|
+
/** Access browser SpeechRecognition APIs which may live under a vendor prefix. */
|
|
64
|
+
function getSpeechRecognitionCtor(): SpeechRecognitionCtor | undefined {
|
|
65
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
66
|
+
return (window as any).SpeechRecognition ?? (window as any).webkitSpeechRecognition;
|
|
68
67
|
}
|
|
69
68
|
|
|
70
69
|
// ── Public types ──────────────────────────────────────────────────────
|
|
@@ -96,7 +95,7 @@ export interface VoiceChatOptions {
|
|
|
96
95
|
) => void;
|
|
97
96
|
/** Called when playback of a speech segment starts */
|
|
98
97
|
onPlaybackStart?: (event: VoicePlaybackStartEvent) => void;
|
|
99
|
-
/** True when the user is authenticated to
|
|
98
|
+
/** True when the user is authenticated to Eliza Cloud */
|
|
100
99
|
cloudConnected?: boolean;
|
|
101
100
|
/** Whether user speech should immediately interrupt assistant playback */
|
|
102
101
|
interruptOnSpeech?: boolean;
|
|
@@ -514,8 +513,7 @@ export function useVoiceChat(options: VoiceChatOptions): VoiceChatState {
|
|
|
514
513
|
// ── Init ──────────────────────────────────────────────────────────
|
|
515
514
|
|
|
516
515
|
useEffect(() => {
|
|
517
|
-
const SpeechRecognitionAPI
|
|
518
|
-
window.SpeechRecognition ?? window.webkitSpeechRecognition;
|
|
516
|
+
const SpeechRecognitionAPI = getSpeechRecognitionCtor();
|
|
519
517
|
const canUseMicrophone =
|
|
520
518
|
typeof navigator !== "undefined" &&
|
|
521
519
|
typeof navigator.mediaDevices?.getUserMedia === "function";
|
|
@@ -693,8 +691,7 @@ export function useVoiceChat(options: VoiceChatOptions): VoiceChatState {
|
|
|
693
691
|
|
|
694
692
|
const startBrowserRecognition = useCallback(
|
|
695
693
|
(mode: Exclude<VoiceCaptureMode, "idle">) => {
|
|
696
|
-
const SpeechRecognitionAPI
|
|
697
|
-
window.SpeechRecognition ?? window.webkitSpeechRecognition;
|
|
694
|
+
const SpeechRecognitionAPI = getSpeechRecognitionCtor();
|
|
698
695
|
if (!SpeechRecognitionAPI) return false;
|
|
699
696
|
|
|
700
697
|
const recognition = new SpeechRecognitionAPI();
|
|
@@ -980,8 +977,8 @@ export function useVoiceChat(options: VoiceChatOptions): VoiceChatState {
|
|
|
980
977
|
};
|
|
981
978
|
const apiToken =
|
|
982
979
|
typeof window !== "undefined" &&
|
|
983
|
-
typeof window.
|
|
984
|
-
? window.
|
|
980
|
+
typeof window.__ELIZA_API_TOKEN__ === "string"
|
|
981
|
+
? window.__ELIZA_API_TOKEN__.trim()
|
|
985
982
|
: "";
|
|
986
983
|
|
|
987
984
|
const fetchViaProxy = async () => {
|
package/dist/package.json
DELETED
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@elizaos/app-core",
|
|
3
|
-
"version": "2.0.0-alpha.47",
|
|
4
|
-
"description": "Shared application core for elizaOS shells and white-label apps.",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"homepage": "https://github.com/elizaOS/eliza",
|
|
8
|
-
"repository": {
|
|
9
|
-
"type": "git",
|
|
10
|
-
"url": "https://github.com/elizaOS/eliza.git",
|
|
11
|
-
"directory": "packages/app-core"
|
|
12
|
-
},
|
|
13
|
-
"keywords": [
|
|
14
|
-
"elizaos",
|
|
15
|
-
"app-core",
|
|
16
|
-
"react",
|
|
17
|
-
"shell"
|
|
18
|
-
],
|
|
19
|
-
"main": "./index.js",
|
|
20
|
-
"exports": {
|
|
21
|
-
".": {
|
|
22
|
-
"types": "./index.d.ts",
|
|
23
|
-
"import": "./index.js",
|
|
24
|
-
"default": "./index.js"
|
|
25
|
-
},
|
|
26
|
-
"./api": {
|
|
27
|
-
"types": "./api/index.d.ts",
|
|
28
|
-
"import": "./api/index.js",
|
|
29
|
-
"default": "./api/index.js"
|
|
30
|
-
},
|
|
31
|
-
"./config": {
|
|
32
|
-
"types": "./config/index.d.ts",
|
|
33
|
-
"import": "./config/index.js",
|
|
34
|
-
"default": "./config/index.js"
|
|
35
|
-
},
|
|
36
|
-
"./types": {
|
|
37
|
-
"types": "./types/index.d.ts",
|
|
38
|
-
"import": "./types/index.js",
|
|
39
|
-
"default": "./types/index.js"
|
|
40
|
-
},
|
|
41
|
-
"./events": {
|
|
42
|
-
"types": "./events/index.d.ts",
|
|
43
|
-
"import": "./events/index.js",
|
|
44
|
-
"default": "./events/index.js"
|
|
45
|
-
},
|
|
46
|
-
"./i18n": {
|
|
47
|
-
"types": "./i18n/index.d.ts",
|
|
48
|
-
"import": "./i18n/index.js",
|
|
49
|
-
"default": "./i18n/index.js"
|
|
50
|
-
},
|
|
51
|
-
"./navigation": {
|
|
52
|
-
"types": "./navigation/index.d.ts",
|
|
53
|
-
"import": "./navigation/index.js",
|
|
54
|
-
"default": "./navigation/index.js"
|
|
55
|
-
},
|
|
56
|
-
"./hooks": {
|
|
57
|
-
"types": "./hooks/index.d.ts",
|
|
58
|
-
"import": "./hooks/index.js",
|
|
59
|
-
"default": "./hooks/index.js"
|
|
60
|
-
},
|
|
61
|
-
"./bridge": {
|
|
62
|
-
"types": "./bridge/index.d.ts",
|
|
63
|
-
"import": "./bridge/index.js",
|
|
64
|
-
"default": "./bridge/index.js"
|
|
65
|
-
},
|
|
66
|
-
"./bridge/electrobun-rpc": {
|
|
67
|
-
"types": "./bridge/electrobun-rpc.d.ts",
|
|
68
|
-
"import": "./bridge/electrobun-rpc.js",
|
|
69
|
-
"default": "./bridge/electrobun-rpc.js"
|
|
70
|
-
},
|
|
71
|
-
"./bridge/electrobun-runtime": {
|
|
72
|
-
"types": "./bridge/electrobun-runtime.d.ts",
|
|
73
|
-
"import": "./bridge/electrobun-runtime.js",
|
|
74
|
-
"default": "./bridge/electrobun-runtime.js"
|
|
75
|
-
},
|
|
76
|
-
"./state": {
|
|
77
|
-
"types": "./state/index.d.ts",
|
|
78
|
-
"import": "./state/index.js",
|
|
79
|
-
"default": "./state/index.js"
|
|
80
|
-
},
|
|
81
|
-
"./components": {
|
|
82
|
-
"types": "./components/index.d.ts",
|
|
83
|
-
"import": "./components/index.js",
|
|
84
|
-
"default": "./components/index.js"
|
|
85
|
-
},
|
|
86
|
-
"./components/*": {
|
|
87
|
-
"types": "./components/*.d.ts",
|
|
88
|
-
"import": "./components/*.js",
|
|
89
|
-
"default": "./components/*.js"
|
|
90
|
-
},
|
|
91
|
-
"./components/ChatAvatar": {
|
|
92
|
-
"types": "./components/ChatAvatar.d.ts",
|
|
93
|
-
"import": "./components/ChatAvatar.js",
|
|
94
|
-
"default": "./components/ChatAvatar.js"
|
|
95
|
-
},
|
|
96
|
-
"./components/CompanionSceneHost": {
|
|
97
|
-
"types": "./components/CompanionSceneHost.d.ts",
|
|
98
|
-
"import": "./components/CompanionSceneHost.js",
|
|
99
|
-
"default": "./components/CompanionSceneHost.js"
|
|
100
|
-
},
|
|
101
|
-
"./components/VrmStage": {
|
|
102
|
-
"types": "./components/VrmStage.d.ts",
|
|
103
|
-
"import": "./components/VrmStage.js",
|
|
104
|
-
"default": "./components/VrmStage.js"
|
|
105
|
-
},
|
|
106
|
-
"./utils": {
|
|
107
|
-
"types": "./utils/index.d.ts",
|
|
108
|
-
"import": "./utils/index.js",
|
|
109
|
-
"default": "./utils/index.js"
|
|
110
|
-
},
|
|
111
|
-
"./voice": {
|
|
112
|
-
"types": "./voice/index.d.ts",
|
|
113
|
-
"import": "./voice/index.js",
|
|
114
|
-
"default": "./voice/index.js"
|
|
115
|
-
},
|
|
116
|
-
"./autonomy": {
|
|
117
|
-
"types": "./autonomy/index.d.ts",
|
|
118
|
-
"import": "./autonomy/index.js",
|
|
119
|
-
"default": "./autonomy/index.js"
|
|
120
|
-
},
|
|
121
|
-
"./chat": {
|
|
122
|
-
"types": "./chat/index.d.ts",
|
|
123
|
-
"import": "./chat/index.js",
|
|
124
|
-
"default": "./chat/index.js"
|
|
125
|
-
},
|
|
126
|
-
"./platform": {
|
|
127
|
-
"types": "./platform/index.d.ts",
|
|
128
|
-
"import": "./platform/index.js",
|
|
129
|
-
"default": "./platform/index.js"
|
|
130
|
-
},
|
|
131
|
-
"./coding": {
|
|
132
|
-
"types": "./coding/index.d.ts",
|
|
133
|
-
"import": "./coding/index.js",
|
|
134
|
-
"default": "./coding/index.js"
|
|
135
|
-
},
|
|
136
|
-
"./onboarding-config": {
|
|
137
|
-
"types": "./onboarding-config.d.ts",
|
|
138
|
-
"import": "./onboarding-config.js",
|
|
139
|
-
"default": "./onboarding-config.js"
|
|
140
|
-
},
|
|
141
|
-
"./providers": {
|
|
142
|
-
"types": "./providers/index.d.ts",
|
|
143
|
-
"import": "./providers/index.js",
|
|
144
|
-
"default": "./providers/index.js"
|
|
145
|
-
},
|
|
146
|
-
"./actions": {
|
|
147
|
-
"types": "./actions/index.d.ts",
|
|
148
|
-
"import": "./actions/index.js",
|
|
149
|
-
"default": "./actions/index.js"
|
|
150
|
-
},
|
|
151
|
-
"./styles/base.css": "./styles/base.css",
|
|
152
|
-
"./styles/xterm.css": "./styles/xterm.css",
|
|
153
|
-
"./styles/anime.css": "./styles/anime.css",
|
|
154
|
-
"./styles/onboarding-game.css": "./styles/onboarding-game.css",
|
|
155
|
-
"./styles/styles.css": "./styles/styles.css",
|
|
156
|
-
"./package.json": "./package.json"
|
|
157
|
-
},
|
|
158
|
-
"peerDependencies": {
|
|
159
|
-
"react": "^19.0.0",
|
|
160
|
-
"react-dom": "^19.0.0"
|
|
161
|
-
},
|
|
162
|
-
"dependencies": {
|
|
163
|
-
"@capacitor/core": "8.0.2",
|
|
164
|
-
"@capacitor/haptics": "8.0.0",
|
|
165
|
-
"@capacitor/keyboard": "8.0.0",
|
|
166
|
-
"@capacitor/preferences": "^8.0.1",
|
|
167
|
-
"@elizaos/autonomous": "^2.0.0-alpha.47",
|
|
168
|
-
"@elizaos/ui": "^2.0.0-alpha.47",
|
|
169
|
-
"@lifo-sh/core": "0.4.4",
|
|
170
|
-
"@lifo-sh/ui": "0.4.2",
|
|
171
|
-
"@pixiv/three-vrm": "^3.4.5",
|
|
172
|
-
"@sparkjsdev/spark": "^0.1.10",
|
|
173
|
-
"lucide-react": "^0.575.0",
|
|
174
|
-
"three": "^0.182.0",
|
|
175
|
-
"zod": "^4.3.6"
|
|
176
|
-
},
|
|
177
|
-
"publishConfig": {
|
|
178
|
-
"access": "public"
|
|
179
|
-
},
|
|
180
|
-
"gitHead": "cb192f7b21c441e9463d1af2f890c145814baad2",
|
|
181
|
-
"types": "./index.d.ts"
|
|
182
|
-
}
|