Add features & update project
This commit is contained in:
@@ -524,6 +524,14 @@ const applicationTables = {
|
||||
baseBranch: v.string(),
|
||||
workBranch: v.string(),
|
||||
opencodeSessionId: v.optional(v.string()),
|
||||
codexSessionId: v.optional(v.string()),
|
||||
agentRuntimeMode: v.optional(
|
||||
v.union(
|
||||
v.literal('opencode_server'),
|
||||
v.literal('codex_exec'),
|
||||
v.literal('legacy_cli'),
|
||||
),
|
||||
),
|
||||
containerId: v.optional(v.string()),
|
||||
workspaceUrl: v.optional(v.string()),
|
||||
workspaceExpiresAt: v.optional(v.number()),
|
||||
@@ -587,6 +595,48 @@ const applicationTables = {
|
||||
})
|
||||
.index('by_job', ['jobId'])
|
||||
.index('by_owner', ['ownerId']),
|
||||
agentWorkspaceUiStates: defineTable({
|
||||
jobId: v.id('agentJobs'),
|
||||
spoonId: v.id('spoons'),
|
||||
ownerId: v.id('users'),
|
||||
openFilePaths: v.array(v.string()),
|
||||
activeFilePath: v.optional(v.string()),
|
||||
vimEnabled: v.boolean(),
|
||||
expandedDirectoryPaths: v.array(v.string()),
|
||||
createdAt: v.number(),
|
||||
updatedAt: v.number(),
|
||||
})
|
||||
.index('by_job', ['jobId'])
|
||||
.index('by_owner', ['ownerId']),
|
||||
agentInteractionRequests: defineTable({
|
||||
jobId: v.id('agentJobs'),
|
||||
spoonId: v.id('spoons'),
|
||||
ownerId: v.id('users'),
|
||||
runtime: v.union(v.literal('opencode'), v.literal('codex')),
|
||||
externalRequestId: v.string(),
|
||||
kind: v.union(
|
||||
v.literal('question'),
|
||||
v.literal('permission'),
|
||||
v.literal('tool_confirmation'),
|
||||
),
|
||||
title: v.string(),
|
||||
body: v.string(),
|
||||
options: v.optional(v.array(v.string())),
|
||||
status: v.union(
|
||||
v.literal('pending'),
|
||||
v.literal('answered'),
|
||||
v.literal('approved'),
|
||||
v.literal('rejected'),
|
||||
v.literal('expired'),
|
||||
),
|
||||
response: v.optional(v.string()),
|
||||
metadata: v.optional(v.string()),
|
||||
createdAt: v.number(),
|
||||
updatedAt: v.number(),
|
||||
})
|
||||
.index('by_job', ['jobId'])
|
||||
.index('by_job_status', ['jobId', 'status'])
|
||||
.index('by_owner', ['ownerId']),
|
||||
agentWorkspaceChanges: defineTable({
|
||||
jobId: v.id('agentJobs'),
|
||||
spoonId: v.id('spoons'),
|
||||
|
||||
Reference in New Issue
Block a user