4e3da49116
Add agent_task_sessions table for per-task session state keyed by (agent, adapter, taskKey). Add AgentTaskSession type, resetAgentSessionSchema validator, and sessionDisplayId/sessionParamsJson to AgentRuntimeState. Rework migration hash-resolution fallback ordering to prefer hash-based matching over timestamp-based journal matching. Move backup-db.sh logic into packages/db/src/backup.ts for programmatic use and simplify the shell script to call the TypeScript implementation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
72 lines
1.4 KiB
TypeScript
72 lines
1.4 KiB
TypeScript
export {
|
|
createCompanySchema,
|
|
updateCompanySchema,
|
|
type CreateCompany,
|
|
type UpdateCompany,
|
|
} from "./company.js";
|
|
|
|
export {
|
|
createAgentSchema,
|
|
createAgentHireSchema,
|
|
updateAgentSchema,
|
|
createAgentKeySchema,
|
|
wakeAgentSchema,
|
|
resetAgentSessionSchema,
|
|
agentPermissionsSchema,
|
|
updateAgentPermissionsSchema,
|
|
type CreateAgent,
|
|
type CreateAgentHire,
|
|
type UpdateAgent,
|
|
type CreateAgentKey,
|
|
type WakeAgent,
|
|
type ResetAgentSession,
|
|
type UpdateAgentPermissions,
|
|
} from "./agent.js";
|
|
|
|
export {
|
|
createProjectSchema,
|
|
updateProjectSchema,
|
|
type CreateProject,
|
|
type UpdateProject,
|
|
} from "./project.js";
|
|
|
|
export {
|
|
createIssueSchema,
|
|
updateIssueSchema,
|
|
checkoutIssueSchema,
|
|
addIssueCommentSchema,
|
|
linkIssueApprovalSchema,
|
|
type CreateIssue,
|
|
type UpdateIssue,
|
|
type CheckoutIssue,
|
|
type AddIssueComment,
|
|
type LinkIssueApproval,
|
|
} from "./issue.js";
|
|
|
|
export {
|
|
createGoalSchema,
|
|
updateGoalSchema,
|
|
type CreateGoal,
|
|
type UpdateGoal,
|
|
} from "./goal.js";
|
|
|
|
export {
|
|
createApprovalSchema,
|
|
resolveApprovalSchema,
|
|
requestApprovalRevisionSchema,
|
|
resubmitApprovalSchema,
|
|
addApprovalCommentSchema,
|
|
type CreateApproval,
|
|
type ResolveApproval,
|
|
type RequestApprovalRevision,
|
|
type ResubmitApproval,
|
|
type AddApprovalComment,
|
|
} from "./approval.js";
|
|
|
|
export {
|
|
createCostEventSchema,
|
|
updateBudgetSchema,
|
|
type CreateCostEvent,
|
|
type UpdateBudget,
|
|
} from "./cost.js";
|