mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
Complete Ralph to Loop rename across entire codebase
Rename all Ralph references to Loop including types, services, hooks, filenames, KV keys, API routes, frontend components, tests, and docs. Key changes: - Types: RalphState → LoopState, RalphConfig → LoopConfig - Services: ralph.ts → loop.ts with worktree field (inverted from inPlace) - KV keys: ralph: → loop:, ralph-session: → loop-session: - API routes: /ralph/* → /loop/* - Frontend: useLoopStatus, RepoLoopList, getLoopStatus, cancelLoop - Config backward compatibility: accepts both loop and ralph (prefers loop) - Automatic KV migration on plugin startup - memory-plan-execute keeps inPlace parameter (different semantics) Fixes critical bugs found in code review: - Backend /loop/cancel route using wrong ralph: KV prefix - Frontend error messages still referencing Ralph - Log message consistency
This commit is contained in:
1 parent
00489d9901
commit
2c4a9c9257
31 files changed
+789
-745
No files matched your search
@@ -86,7 +86,7 @@ export const MessagesTransformConfigSchema = z.object({
|
||||
})
|
||||
export type MessagesTransformConfig = z.infer<typeof MessagesTransformConfigSchema>
|
||||
|
||||
export const RalphConfigSchema = z.object({
|
||||
export const LoopConfigSchema = z.object({
|
||||
enabled: z.boolean().optional(),
|
||||
defaultMaxIterations: z.number().optional(),
|
||||
cleanupWorktree: z.boolean().optional(),
|
||||
@@ -95,7 +95,7 @@ export const RalphConfigSchema = z.object({
|
||||
minAudits: z.number().optional(),
|
||||
stallTimeoutMs: z.number().optional(),
|
||||
})
|
||||
export type RalphConfig = z.infer<typeof RalphConfigSchema>
|
||||
export type LoopConfig = z.infer<typeof LoopConfigSchema>
|
||||
|
||||
export const PluginConfigSchema = z.object({
|
||||
dataDir: z.string().optional(),
|
||||
@@ -107,7 +107,8 @@ export const PluginConfigSchema = z.object({
|
||||
messagesTransform: MessagesTransformConfigSchema.optional(),
|
||||
executionModel: z.string().optional(),
|
||||
auditorModel: z.string().optional(),
|
||||
ralph: RalphConfigSchema.optional(),
|
||||
loop: LoopConfigSchema.optional(),
|
||||
ralph: LoopConfigSchema.optional(),
|
||||
})
|
||||
export type PluginConfig = z.infer<typeof PluginConfigSchema>
|
||||
|
||||
@@ -140,7 +141,7 @@ export const UpdateKvEntryRequestSchema = z.object({
|
||||
})
|
||||
export type UpdateKvEntryRequest = z.infer<typeof UpdateKvEntryRequestSchema>
|
||||
|
||||
export const RalphStateSchema = z.object({
|
||||
export const LoopStateSchema = z.object({
|
||||
active: z.boolean(),
|
||||
sessionId: z.string(),
|
||||
worktreeName: z.string(),
|
||||
@@ -159,7 +160,7 @@ export const RalphStateSchema = z.object({
|
||||
auditCount: z.number(),
|
||||
terminationReason: z.string().optional(),
|
||||
completedAt: z.string().optional(),
|
||||
inPlace: z.boolean().optional(),
|
||||
worktree: z.boolean().optional(),
|
||||
modelFailed: z.boolean().optional(),
|
||||
})
|
||||
export type RalphState = z.infer<typeof RalphStateSchema>
|
||||
export type LoopState = z.infer<typeof LoopStateSchema>
|
||||
@@ -98,7 +98,8 @@ export type {
|
||||
KvListQuery,
|
||||
CreateKvEntryRequest,
|
||||
UpdateKvEntryRequest,
|
||||
RalphState,
|
||||
LoopState,
|
||||
LoopConfig,
|
||||
} from '../schemas/memory'
|
||||
|
||||
export type {
|
||||
|
||||
Reference in new issue
Block a user