Skip to content

Commit 642fdfc

Browse files
authored
Merge pull request #274 from CambrianTech/feature/bevy-avatars
Bevy avatar rendering + LiveKit video pipeline
2 parents 80918c7 + d101d32 commit 642fdfc

File tree

282 files changed

+11110
-3027
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

282 files changed

+11110
-3027
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,3 +179,4 @@ src/commands/**/*.d.ts
179179
!test*output.txt
180180
_archive/
181181
src/.continuum/sessions/validation/
182+
/src/widgets/live/public/live-widget.css

src/.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ system/genome/python/venv/
5151
# Generated TypeScript from Rust via ts-rs (regenerated by: npx tsx generator/generate-rust-bindings.ts)
5252
shared/generated/
5353

54+
# Generated from SCSS by compile-sass.ts (regenerated by npm start)
55+
widgets/**/public/*.styles.ts
56+
widgets/**/public/*.css
57+
widgets/**/public/*.css.map
58+
# Legacy locations (some widgets have styles in non-public dirs)
59+
widgets/**/*.styles.ts
60+
!widgets/shared/styles/
61+
5462
# Rust build artifacts
5563
# Compiled files
5664
*.o

src/commands/adapter/adopt/server/AdapterAdoptServerCommand.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ export class AdapterAdoptServerCommand extends CommandBase<AdapterAdoptParams, A
105105

106106
// Find the persona
107107
const personaResult = await DataRead.execute<UserEntity>({
108+
dbHandle: 'default',
108109
collection: COLLECTIONS.USERS,
109110
id: targetPersonaId,
110111
}
@@ -153,6 +154,7 @@ export class AdapterAdoptServerCommand extends CommandBase<AdapterAdoptParams, A
153154
};
154155

155156
const createLayerResult = await DataCreate.execute<GenomeLayerEntity>({
157+
dbHandle: 'default',
156158
collection: 'genome_layers',
157159
data: layer,
158160
}
@@ -171,6 +173,7 @@ export class AdapterAdoptServerCommand extends CommandBase<AdapterAdoptParams, A
171173
if (targetPersona.genomeId) {
172174
// Load existing genome
173175
const genomeResult = await DataRead.execute<GenomeEntity>({
176+
dbHandle: 'default',
174177
collection: 'genomes',
175178
id: targetPersona.genomeId,
176179
}
@@ -213,6 +216,7 @@ export class AdapterAdoptServerCommand extends CommandBase<AdapterAdoptParams, A
213216
if (!isNewGenome) {
214217
// Update existing genome
215218
const updateResult = await DataUpdate.execute<GenomeEntity>({
219+
dbHandle: 'default',
216220
collection: 'genomes',
217221
id: genome.id,
218222
data: { layers: genome.layers, metadata: genome.metadata, updatedAt: genome.updatedAt },
@@ -223,6 +227,7 @@ export class AdapterAdoptServerCommand extends CommandBase<AdapterAdoptParams, A
223227
}
224228
} else {
225229
const createGenomeResult = await DataCreate.execute<GenomeEntity>({
230+
dbHandle: 'default',
226231
collection: 'genomes',
227232
data: genome,
228233
}
@@ -233,6 +238,7 @@ export class AdapterAdoptServerCommand extends CommandBase<AdapterAdoptParams, A
233238

234239
// Update persona with genome ID
235240
await DataUpdate.execute<UserEntity>({
241+
dbHandle: 'default',
236242
collection: COLLECTIONS.USERS,
237243
id: targetPersonaId_resolved,
238244
data: { genomeId: genome.id },

src/commands/ai/adapter/test/server/AdapterTestServerCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ export class AdapterTestServerCommand extends CommandBase<AdapterTestParams, Asy
7777

7878
// Save to database using data/create command
7979
const createResult = await DataCreate.execute({
80+
dbHandle: 'default',
8081
collection: TestExecutionEntity.collection,
8182
data: { ...execution, id: testId },
8283
});
@@ -175,6 +176,7 @@ export class AdapterTestServerCommand extends CommandBase<AdapterTestParams, Asy
175176
*/
176177
private async updateTestStatus(testId: string, updates: Partial<TestExecutionEntity>): Promise<void> {
177178
await DataUpdate.execute({
179+
dbHandle: 'default',
178180
collection: TestExecutionEntity.collection,
179181
id: testId,
180182
data: {

src/commands/ai/context/slice/server/AiContextSliceServerCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export class AiContextSliceServerCommand extends CommandBase<AiContextSliceParam
4141
try {
4242
// Read the entity
4343
const result = await DataRead.execute({
44+
dbHandle: 'default',
4445
collection,
4546
id: params.id
4647
});
@@ -142,6 +143,7 @@ export class AiContextSliceServerCommand extends CommandBase<AiContextSliceParam
142143
// Thread context (replyTo field)
143144
if (data.replyTo) {
144145
const parentResult = await DataRead.execute({
146+
dbHandle: 'default',
145147
collection,
146148
id: data.replyTo
147149
});
@@ -157,6 +159,7 @@ export class AiContextSliceServerCommand extends CommandBase<AiContextSliceParam
157159
if (relatedIdsField && data[relatedIdsField].length > 0) {
158160
for (const relatedId of data[relatedIdsField].slice(0, limit)) {
159161
const relatedResult = await DataRead.execute({
162+
dbHandle: 'default',
160163
collection,
161164
id: relatedId
162165
});

src/commands/ai/cost/server/AICostServerCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export class AICostServerCommand extends AICostCommand {
4747
params.context,
4848
params.sessionId,
4949
{
50+
dbHandle: 'default' as const,
5051
collection: 'ai_generations',
5152
filter,
5253
orderBy: [{ field: 'timestamp', direction: 'desc' }]

src/commands/ai/dataset/create/server/DatasetCreateServerCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export class DatasetCreateServerCommand {
6161

6262
// Save to database
6363
const createResult = await DataCreate.execute({
64+
dbHandle: 'default',
6465
collection: DatasetExecutionEntity.collection,
6566
data: { ...execution, id: jobId },
6667
});
@@ -195,6 +196,7 @@ export class DatasetCreateServerCommand {
195196
*/
196197
private async updateJobStatus(jobId: string, updates: Partial<DatasetExecutionEntity>): Promise<void> {
197198
await DataUpdate.execute({
199+
dbHandle: 'default',
198200
collection: DatasetExecutionEntity.collection,
199201
id: jobId,
200202
data: updates,

src/commands/ai/detect-semantic-loop/server/AiDetectSemanticLoopServerCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ export class AiDetectSemanticLoopServerCommand extends CommandBase<AiDetectSeman
174174
let recentMessages: RawChatMessage[];
175175
try {
176176
const result = await DataList.execute({
177+
dbHandle: 'default',
177178
collection: 'chat_messages',
178179
filter,
179180
limit: lookbackCount,

src/commands/ai/generate/server/AIGenerateServerCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class AIGenerateServerCommand extends AIGenerateCommand {
4747
collection: UserEntity.collection,
4848
filter: { type: 'persona' },
4949
limit: 1
50-
});
50+
}, 'default');
5151

5252
if (!usersResult.success || !usersResult.data || usersResult.data.length === 0) {
5353
return createErrorResult(params, 'No personas found in system');

src/commands/ai/rag/index/create/server/IndexCreateServerCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ export class IndexCreateServerCommand extends IndexCreateCommand {
8989

9090
// Store in database using Commands.execute
9191
const result = await DataCreate.execute({
92+
dbHandle: 'default',
9293
collection: CodeIndexEntity.collection,
9394
data: entry,
9495
context: this.context,

0 commit comments

Comments
 (0)