Add features & update project
Build and Push Spoon Images / quality (push) Successful in 1m41s
Build and Push Spoon Images / build-images (push) Successful in 7m4s

This commit is contained in:
Gabriel Brown
2026-06-23 02:06:58 -04:00
parent fe72fc2957
commit d207b8b0b8
26 changed files with 1257 additions and 231 deletions
+24 -2
View File
@@ -82,7 +82,7 @@ export const listMine = query({
.withIndex('by_owner', (q) => q.eq('ownerId', ownerId))
.order('desc')
.take(args.limit ?? 50);
return threads.filter((thread) => {
const filtered = threads.filter((thread) => {
if (
args.status &&
args.status !== 'all' &&
@@ -100,6 +100,28 @@ export const listMine = query({
if (args.spoonId && thread.spoonId !== args.spoonId) return false;
return true;
});
return await Promise.all(
filtered.map(async (thread) => {
const [spoon, latestJob] = await Promise.all([
thread.spoonId ? ctx.db.get(thread.spoonId) : null,
thread.latestAgentJobId ? ctx.db.get(thread.latestAgentJobId) : null,
]);
return {
...publicThread(thread),
spoonName: spoon?.ownerId === ownerId ? spoon.name : undefined,
latestJobStatus:
latestJob?.ownerId === ownerId ? latestJob.status : undefined,
latestJobWorkspaceStatus:
latestJob?.ownerId === ownerId
? latestJob.workspaceStatus
: undefined,
latestJobPullRequestUrl:
latestJob?.ownerId === ownerId
? latestJob.pullRequestUrl
: undefined,
};
}),
);
},
});
@@ -216,7 +238,7 @@ export const appendUserMessage = mutation({
spoonId: thread.spoonId,
role: 'user',
content: requireText(content, 'Message'),
status: 'queued',
status: 'completed',
createdAt: now,
updatedAt: now,
});