Implement ProgCode identity and real shared reading UI kit
Build and deploy / deploy (push) Successful in 2m39s
Build and deploy / deploy (push) Successful in 2m39s
This commit is contained in:
1 parent
99c848189e
commit
12562baeb5
2040 files changed
+184656
-181
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import { existsSync, readdirSync, readFileSync } from 'node:fs';
|
||||
import { join } from 'node:path';
|
||||
|
||||
const workspaceRoot = existsSync(join(process.cwd(), 'editorial', 'agent-rewrites'))
|
||||
? process.cwd()
|
||||
: join(process.cwd(), '..');
|
||||
const rewriteDirectory = join(workspaceRoot, 'editorial', 'agent-rewrites');
|
||||
|
||||
export const agentRewriteRevisions = readdirSync(rewriteDirectory)
|
||||
.filter((filename) => /^\d+\.json$/.test(filename))
|
||||
.sort((left, right) => Number.parseInt(left, 10) - Number.parseInt(right, 10))
|
||||
.map((filename) => ({
|
||||
...JSON.parse(readFileSync(join(rewriteDirectory, filename), 'utf8')),
|
||||
readingMinutes: 8,
|
||||
}));
|
||||
Reference in new issue
Block a user