mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
section 2: Phase 2 — Content-hashed hunk ids and stop status
This commit is contained in:
1 parent
4b5f76f416
commit
7bf6c35f29
7 files changed
+156
-63
No files matched your search
@@ -17,13 +17,18 @@ export const WalkthroughHunkSchema = z.object({
|
||||
export type WalkthroughHunk = z.infer<typeof WalkthroughHunkSchema>;
|
||||
|
||||
export const WalkthroughStopSchema = z.object({
|
||||
id: z.string(),
|
||||
title: z.string(),
|
||||
explanation: z.string(),
|
||||
hunkIds: z.array(z.string()),
|
||||
status: z.enum(["pending", "ready", "failed"]),
|
||||
explanationKey: z.string().nullable(),
|
||||
});
|
||||
|
||||
export type WalkthroughStop = z.infer<typeof WalkthroughStopSchema>;
|
||||
|
||||
export type WalkthroughStopStatus = WalkthroughStop["status"];
|
||||
|
||||
export const WalkthroughOmittedFileSchema = z.object({
|
||||
file: z.string(),
|
||||
reason: z.enum(["binary", "budget"]),
|
||||
|
||||
Reference in new issue
Block a user