@elizaos/app-core 2.0.0-alpha.22 → 2.0.0-alpha.23
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdentityStep.d.ts","sourceRoot":"","sources":["../../../src/components/onboarding/IdentityStep.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IdentityStep.d.ts","sourceRoot":"","sources":["../../../src/components/onboarding/IdentityStep.tsx"],"names":[],"mappings":"AAkBA,wBAAgB,YAAY,4CAqQ3B"}
|
|
@@ -9,6 +9,7 @@ const IDENTITY_PRESETS = {
|
|
|
9
9
|
"lol k": { name: "Anzu", avatarIndex: 3 },
|
|
10
10
|
"hehe~": { name: "Aya", avatarIndex: 4 },
|
|
11
11
|
};
|
|
12
|
+
/** Identical clip-paths used by CharacterView roster cards. */
|
|
12
13
|
const SLANT_CLIP = "polygon(32px 0, 100% 0, calc(100% - 32px) 100%, 0 100%)";
|
|
13
14
|
const INSET_CLIP = "polygon(0px 0, 100% 0, calc(100% - 4px) 100%, -8px 100%)";
|
|
14
15
|
export function IdentityStep() {
|
|
@@ -80,20 +81,13 @@ export function IdentityStep() {
|
|
|
80
81
|
}, [onboardingStyle, styles, handleSelect]);
|
|
81
82
|
/* ── Import UI ──────────────────────────────────────────────────── */
|
|
82
83
|
if (showImport) {
|
|
83
|
-
return (_jsxs("div", {
|
|
84
|
-
display: "flex",
|
|
85
|
-
flexDirection: "column",
|
|
86
|
-
alignItems: "center",
|
|
87
|
-
gap: "12px",
|
|
88
|
-
maxWidth: "400px",
|
|
89
|
-
width: "100%",
|
|
90
|
-
}, children: [_jsx("div", { className: "onboarding-section-title", children: t("onboarding.importAgent") }), _jsx("div", { className: "onboarding-divider", children: _jsx("div", { className: "onboarding-divider-diamond" }) }), _jsx("p", { className: "onboarding-desc", style: { marginBottom: "4px" }, children: t("onboarding.importDesc") }), _jsx("input", { type: "file", accept: ".eliza-agent", onChange: (e) => {
|
|
84
|
+
return (_jsxs("div", { className: "flex flex-col items-center gap-3 w-full max-w-[400px]", children: [_jsx("div", { className: "onboarding-section-title", children: t("onboarding.importAgent") }), _jsx("div", { className: "onboarding-divider", children: _jsx("div", { className: "onboarding-divider-diamond" }) }), _jsx("p", { className: "onboarding-desc mb-1", children: t("onboarding.importDesc") }), _jsx("input", { type: "file", accept: ".eliza-agent", onChange: (e) => {
|
|
91
85
|
setImportFile(e.target.files?.[0] ?? null);
|
|
92
86
|
setImportError(null);
|
|
93
|
-
}, className: "onboarding-input
|
|
87
|
+
}, className: "onboarding-input text-[13px] text-left" }), _jsx("input", { type: "password", placeholder: t("onboarding.decryptionPasswordPlaceholder"), value: importPassword, onChange: (e) => {
|
|
94
88
|
setImportPassword(e.target.value);
|
|
95
89
|
setImportError(null);
|
|
96
|
-
}, className: "onboarding-input" }), importError && (_jsx("p", { className: "onboarding-desc
|
|
90
|
+
}, className: "onboarding-input" }), importError && (_jsx("p", { className: "onboarding-desc text-[var(--danger)] !mb-0", children: importError })), importSuccess && (_jsx("p", { className: "onboarding-desc text-[var(--ok)] !mb-0", children: importSuccess })), _jsxs("div", { className: "flex gap-3 mt-2", children: [_jsx("button", { className: "onboarding-back-link", onClick: () => {
|
|
97
91
|
setShowImport(false);
|
|
98
92
|
setImportError(null);
|
|
99
93
|
setImportSuccess(null);
|
|
@@ -101,93 +95,20 @@ export function IdentityStep() {
|
|
|
101
95
|
setImportPassword("");
|
|
102
96
|
}, type: "button", children: t("onboarding.cancel") }), _jsx("button", { className: "onboarding-confirm-btn", disabled: importBusy || !importFile, onClick: () => void handleImportAgent(), type: "button", children: importBusy ? t("onboarding.importing") : t("onboarding.restore") })] })] }));
|
|
103
97
|
}
|
|
104
|
-
/* ── Video-game style character roster
|
|
105
|
-
return (_jsxs("div", {
|
|
106
|
-
display: "flex",
|
|
107
|
-
flexDirection: "column",
|
|
108
|
-
alignItems: "center",
|
|
109
|
-
gap: "16px",
|
|
110
|
-
width: "100%",
|
|
111
|
-
maxWidth: "640px",
|
|
112
|
-
}, children: [_jsx("div", { className: "onboarding-section-title", children: "Choose Your Agent" }), _jsx("div", { className: "onboarding-divider", children: _jsx("div", { className: "onboarding-divider-diamond" }) }), _jsx("p", { className: "onboarding-desc", style: { marginBottom: "4px", textAlign: "center" }, children: "Pick a personality for your agent. You can customize everything later." }), _jsx("div", { style: {
|
|
113
|
-
display: "flex",
|
|
114
|
-
flexWrap: "wrap",
|
|
115
|
-
justifyContent: "center",
|
|
116
|
-
gap: "4px",
|
|
117
|
-
}, children: styles.slice(0, 4).map((preset) => {
|
|
98
|
+
/* ── Video-game style character roster (matches CharacterView exactly) ── */
|
|
99
|
+
return (_jsxs("div", { className: "flex flex-col items-center gap-4 w-full max-w-[640px]", children: [_jsx("div", { className: "onboarding-section-title", children: "Choose Your Agent" }), _jsx("div", { className: "onboarding-divider", children: _jsx("div", { className: "onboarding-divider-diamond" }) }), _jsx("p", { className: "onboarding-desc mb-1 text-center", children: "Pick a personality for your agent. You can customize everything later." }), _jsx("div", { className: "flex flex-wrap items-start justify-center gap-y-1", "data-testid": "onboarding-character-roster", children: styles.slice(0, 4).length > 0 ? (styles.slice(0, 4).map((preset) => {
|
|
118
100
|
const meta = IDENTITY_PRESETS[preset.catchphrase];
|
|
119
101
|
const isSelected = selectedCatchphrase === preset.catchphrase;
|
|
120
102
|
const name = meta?.name ?? "Agent";
|
|
121
103
|
const avatarIdx = meta?.avatarIndex ?? 1;
|
|
122
|
-
return (_jsx("button", { type: "button",
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
padding: 0,
|
|
133
|
-
}, children: _jsx("div", { style: {
|
|
134
|
-
position: "relative",
|
|
135
|
-
height: "10rem",
|
|
136
|
-
width: "100%",
|
|
137
|
-
padding: "2px",
|
|
138
|
-
transition: "all 0.3s",
|
|
139
|
-
background: isSelected
|
|
140
|
-
? "rgb(250, 204, 21)"
|
|
141
|
-
: "rgba(255,255,255,0.1)",
|
|
142
|
-
boxShadow: isSelected
|
|
143
|
-
? "0 0 28px rgba(250,204,21,0.32)"
|
|
144
|
-
: "none",
|
|
145
|
-
clipPath: SLANT_CLIP,
|
|
146
|
-
}, children: _jsxs("div", { style: {
|
|
147
|
-
position: "relative",
|
|
148
|
-
height: "100%",
|
|
149
|
-
width: "100%",
|
|
150
|
-
overflow: "hidden",
|
|
151
|
-
clipPath: SLANT_CLIP,
|
|
152
|
-
}, children: [isSelected && (_jsx("div", { style: {
|
|
153
|
-
pointerEvents: "none",
|
|
154
|
-
position: "absolute",
|
|
155
|
-
inset: "-12px",
|
|
156
|
-
background: "rgba(253, 224, 71, 0.15)",
|
|
157
|
-
filter: "blur(16px)",
|
|
158
|
-
clipPath: SLANT_CLIP,
|
|
159
|
-
} })), _jsx("img", { src: getVrmPreviewUrl(avatarIdx), alt: name, draggable: false, style: {
|
|
160
|
-
height: "100%",
|
|
161
|
-
width: "100%",
|
|
162
|
-
objectFit: "cover",
|
|
163
|
-
transition: "transform 0.3s ease-out",
|
|
164
|
-
transform: isSelected ? "scale(1.04)" : "scale(1)",
|
|
165
|
-
} }), _jsx("div", { style: {
|
|
166
|
-
position: "absolute",
|
|
167
|
-
left: 0,
|
|
168
|
-
right: 0,
|
|
169
|
-
bottom: 0,
|
|
170
|
-
}, children: _jsx("div", { style: {
|
|
171
|
-
padding: "4px 8px",
|
|
172
|
-
fontSize: "14px",
|
|
173
|
-
fontWeight: 600,
|
|
174
|
-
color: "white",
|
|
175
|
-
transition: "all 0.3s",
|
|
176
|
-
background: isSelected
|
|
177
|
-
? "rgba(0,0,0,0.78)"
|
|
178
|
-
: "rgba(0,0,0,0.62)",
|
|
179
|
-
boxShadow: isSelected
|
|
180
|
-
? "inset 0 1px 0 rgba(255,255,255,0.08)"
|
|
181
|
-
: "none",
|
|
182
|
-
clipPath: INSET_CLIP,
|
|
183
|
-
}, children: name }) })] }) }) }, preset.catchphrase));
|
|
184
|
-
}) }), _jsx("button", { className: "onboarding-confirm-btn", onClick: () => handleOnboardingNext(), type: "button", style: { width: "100%", maxWidth: "320px", marginTop: "8px" }, children: "Continue" }), _jsx("button", { type: "button", onClick: () => setShowImport(true), style: {
|
|
185
|
-
background: "none",
|
|
186
|
-
border: "none",
|
|
187
|
-
color: "rgba(255,255,255,0.4)",
|
|
188
|
-
fontSize: "12px",
|
|
189
|
-
cursor: "pointer",
|
|
190
|
-
textDecoration: "underline",
|
|
191
|
-
padding: "4px 0",
|
|
192
|
-
}, children: t("onboarding.restoreFromBackup") })] }));
|
|
104
|
+
return (_jsx("button", { type: "button", className: `group relative -mx-3 min-w-0 w-[9.75rem] text-center transition-all duration-300 ease-out ${isSelected
|
|
105
|
+
? "z-100 scale-[1.00] opacity-100"
|
|
106
|
+
: "scale-[1.00] opacity-70 hover:scale-[1.00] hover:opacity-100"}`, onClick: () => handleSelect(preset.catchphrase), "data-testid": `onboarding-preset-${preset.catchphrase}`, children: _jsx("div", { className: `relative h-[10rem] w-full p-[2px] transition-all duration-300 ${isSelected
|
|
107
|
+
? "bg-yellow-400 shadow-[0_0_28px_rgba(250,204,21,0.32)]"
|
|
108
|
+
: "bg-white/10 hover:bg-white/35"}`, style: { clipPath: SLANT_CLIP }, children: _jsxs("div", { className: "relative h-full w-full overflow-hidden", style: { clipPath: SLANT_CLIP }, children: [isSelected && (_jsx("div", { className: "pointer-events-none absolute -inset-3 bg-yellow-300/15 blur-xl", style: { clipPath: SLANT_CLIP } })), _jsx("img", { src: getVrmPreviewUrl(avatarIdx), alt: name, draggable: false, className: `h-full w-full object-cover transition-transform duration-300 ease-out ${isSelected
|
|
109
|
+
? "scale-[1.04]"
|
|
110
|
+
: "scale-100 group-hover:scale-[1.02]"}` }), _jsx("div", { className: "absolute inset-x-0 bottom-0", children: _jsx("div", { className: `px-2 py-1 text-sm font-semibold text-white transition-all ${isSelected
|
|
111
|
+
? "bg-black/78 shadow-[inset_0_1px_0_rgba(255,255,255,0.08)]"
|
|
112
|
+
: "bg-black/62"}`, style: { clipPath: INSET_CLIP }, children: name }) })] }) }) }, preset.catchphrase));
|
|
113
|
+
})) : (_jsx("div", { className: "rounded-2xl border border-white/10 bg-black/10 p-4 text-sm text-white/50", children: "Loading character presets..." })) }), _jsx("button", { className: "onboarding-confirm-btn w-full max-w-[320px] mt-2", onClick: () => handleOnboardingNext(), type: "button", children: "Continue" }), _jsx("button", { type: "button", onClick: () => setShowImport(true), className: "bg-transparent border-none text-white/40 text-xs cursor-pointer underline py-1", children: t("onboarding.restoreFromBackup") })] }));
|
|
193
114
|
}
|
package/dist/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.23",
|
|
4
4
|
"description": "Shared application core for elizaOS shells and white-label apps.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -164,8 +164,8 @@
|
|
|
164
164
|
"@capacitor/haptics": "8.0.0",
|
|
165
165
|
"@capacitor/keyboard": "8.0.0",
|
|
166
166
|
"@capacitor/preferences": "^8.0.1",
|
|
167
|
-
"@elizaos/autonomous": "
|
|
168
|
-
"@elizaos/ui": "
|
|
167
|
+
"@elizaos/autonomous": "2.0.0-alpha.23",
|
|
168
|
+
"@elizaos/ui": "2.0.0-alpha.23",
|
|
169
169
|
"@lifo-sh/core": "0.4.4",
|
|
170
170
|
"@lifo-sh/ui": "0.4.2",
|
|
171
171
|
"@pixiv/three-vrm": "^3.4.5",
|
|
@@ -177,5 +177,6 @@
|
|
|
177
177
|
"publishConfig": {
|
|
178
178
|
"access": "public"
|
|
179
179
|
},
|
|
180
|
+
"gitHead": "cb192f7b21c441e9463d1af2f890c145814baad2",
|
|
180
181
|
"types": "./index.d.ts"
|
|
181
182
|
}
|
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.23",
|
|
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.23",
|
|
71
|
+
"@elizaos/ui": "2.0.0-alpha.23",
|
|
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": "6f729e3551384d30e5444808ad3a476a5075aee7"
|
|
92
92
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
$ bunx @biomejs/biome check ./src/App.tsx ./src/actions ./src/api ./src/autonomy ./src/bridge ./src/chat ./src/coding ./src/components ./src/config ./src/events ./src/hooks ./src/i18n ./src/index.ts ./src/navigation ./src/platform ./src/providers ./src/state ./src/types ./src/utils ./src/voice ./src/ambient.d.ts
|
|
2
|
-
Checked 253 files in 344ms. No fixes applied.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
$ test -f ../ui/dist/index.d.ts || (cd ../ui && bun run build) && tsc --noEmit -p tsconfig.json
|