(dir: string)
| 338 | } |
| 339 | |
| 340 | function workspaceStorage(dir: string) { |
| 341 | const head = (dir.slice(0, 12) || "workspace").replace(/[^a-zA-Z0-9._-]/g, "-") |
| 342 | const sum = checksum(dir) ?? "0" |
| 343 | return `opencode.workspace.${head}.${sum}.dat` |
| 344 | } |
| 345 | |
| 346 | function draftStorage(draftID: string) { |
| 347 | const head = (draftID.slice(0, 12) || "draft").replace(/[^a-zA-Z0-9._-]/g, "-") |
no test coverage detected