(id: string, data: Uint8Array)
| 98 | } |
| 99 | |
| 100 | function isExpectedTaskDoc(id: string, data: Uint8Array): boolean { |
| 101 | const expected = expectedTaskMetaId(id) |
| 102 | if (!expected) return true |
| 103 | try { |
| 104 | return readTaskMetaId(data) === expected |
| 105 | } catch { |
| 106 | return false |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | function defaultLegacyNestedRootDir(rootDir: string): string | null { |
| 111 | const resolved = path.resolve(rootDir) |
no test coverage detected