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:
@@ -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(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user