mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-14 01:50:39 +09:00
Remove contextMode, consolidate wake policies, and default serveUi to true
Drop the unused contextMode field from the agent schema, shared types, validators, and all UI references. Merge wakeOnOnDemand and wakeOnAutomation into a single wakeOnDemand toggle. Default serveUi to true and remove the onboarding prompt for it. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
7ca5cfd505
commit
8c2bf0a2e6
14 changed files with 11 additions and 69 deletions
|
|
@ -24,7 +24,6 @@ export const agents = pgTable(
|
|||
adapterType: text("adapter_type").notNull().default("process"),
|
||||
adapterConfig: jsonb("adapter_config").$type<Record<string, unknown>>().notNull().default({}),
|
||||
runtimeConfig: jsonb("runtime_config").$type<Record<string, unknown>>().notNull().default({}),
|
||||
contextMode: text("context_mode").notNull().default("thin"),
|
||||
budgetMonthlyCents: integer("budget_monthly_cents").notNull().default(0),
|
||||
spentMonthlyCents: integer("spent_monthly_cents").notNull().default(0),
|
||||
lastHeartbeatAt: timestamp("last_heartbeat_at", { withTimezone: true }),
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ export const loggingConfigSchema = z.object({
|
|||
|
||||
export const serverConfigSchema = z.object({
|
||||
port: z.number().int().min(1).max(65535).default(3100),
|
||||
serveUi: z.boolean().default(false),
|
||||
serveUi: z.boolean().default(true),
|
||||
});
|
||||
|
||||
export const paperclipConfigSchema = z.object({
|
||||
|
|
|
|||
|
|
@ -11,9 +11,6 @@ export const AGENT_STATUSES = [
|
|||
] as const;
|
||||
export type AgentStatus = (typeof AGENT_STATUSES)[number];
|
||||
|
||||
export const AGENT_CONTEXT_MODES = ["thin", "fat"] as const;
|
||||
export type AgentContextMode = (typeof AGENT_CONTEXT_MODES)[number];
|
||||
|
||||
export const AGENT_ADAPTER_TYPES = ["process", "http", "claude_local", "codex_local"] as const;
|
||||
export type AgentAdapterType = (typeof AGENT_ADAPTER_TYPES)[number];
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
export {
|
||||
COMPANY_STATUSES,
|
||||
AGENT_STATUSES,
|
||||
AGENT_CONTEXT_MODES,
|
||||
AGENT_ADAPTER_TYPES,
|
||||
AGENT_ROLES,
|
||||
ISSUE_STATUSES,
|
||||
|
|
@ -18,7 +17,6 @@ export {
|
|||
LIVE_EVENT_TYPES,
|
||||
type CompanyStatus,
|
||||
type AgentStatus,
|
||||
type AgentContextMode,
|
||||
type AgentAdapterType,
|
||||
type AgentRole,
|
||||
type IssueStatus,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
import type {
|
||||
AgentAdapterType,
|
||||
AgentContextMode,
|
||||
AgentRole,
|
||||
AgentStatus,
|
||||
} from "../constants.js";
|
||||
|
|
@ -17,7 +16,6 @@ export interface Agent {
|
|||
adapterType: AgentAdapterType;
|
||||
adapterConfig: Record<string, unknown>;
|
||||
runtimeConfig: Record<string, unknown>;
|
||||
contextMode: AgentContextMode;
|
||||
budgetMonthlyCents: number;
|
||||
spentMonthlyCents: number;
|
||||
lastHeartbeatAt: Date | null;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
import { z } from "zod";
|
||||
import {
|
||||
AGENT_ADAPTER_TYPES,
|
||||
AGENT_CONTEXT_MODES,
|
||||
AGENT_ROLES,
|
||||
AGENT_STATUSES,
|
||||
} from "../constants.js";
|
||||
|
|
@ -15,7 +14,6 @@ export const createAgentSchema = z.object({
|
|||
adapterType: z.enum(AGENT_ADAPTER_TYPES).optional().default("process"),
|
||||
adapterConfig: z.record(z.unknown()).optional().default({}),
|
||||
runtimeConfig: z.record(z.unknown()).optional().default({}),
|
||||
contextMode: z.enum(AGENT_CONTEXT_MODES).optional().default("thin"),
|
||||
budgetMonthlyCents: z.number().int().nonnegative().optional().default(0),
|
||||
metadata: z.record(z.unknown()).optional().nullable(),
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue