refactor(core): migrate to Bun and converge acquisition policies and Agent boundaries
This commit is contained in:
1 parent
3f1c6d02f6
commit
27c0f27434
268 files changed
+7468
-7852
No files matched your search
@@ -1,16 +1,16 @@
|
||||
#!/usr/bin/env -S deno run -A
|
||||
#!/usr/bin/env -S bun
|
||||
// 文案标点与用词检查(规范见 docs/design/glossary.md「标点」与 .claude/skills/human-copy)。只看源码里的字符串字面量、模板字符串与 JSX 文本,
|
||||
// 不看注释、类型字面量、对象键、比较/匹配用的字符串(includes / split / === 等)和像正则的字符串。
|
||||
//
|
||||
// deno run -A scripts/check-copy-punctuation.mjs # 报告,warn 模式(退出码 0)
|
||||
// deno run -A scripts/check-copy-punctuation.mjs --strict # 有违规退出码 1
|
||||
// deno run -A scripts/check-copy-punctuation.mjs --fix [文件…] # 自动改能确定的项(标点、省略号、括号、引号、空格)
|
||||
// deno run -A scripts/check-copy-punctuation.mjs --by-file # 按文件汇总违规数
|
||||
// bun scripts/check-copy-punctuation.mjs # 报告,warn 模式(退出码 0)
|
||||
// bun scripts/check-copy-punctuation.mjs --strict # 有违规退出码 1
|
||||
// bun scripts/check-copy-punctuation.mjs --fix [文件…] # 自动改能确定的项(标点、省略号、括号、引号、空格)
|
||||
// bun scripts/check-copy-punctuation.mjs --by-file # 按文件汇总违规数
|
||||
//
|
||||
// 例外:字符串所在行或上一行写 `copy-allow: 原因`;整个文件在前 5 行写 `copy-allow-file: 原因`。
|
||||
import { readdirSync, readFileSync, statSync, writeFileSync } from "node:fs";
|
||||
import { join, relative } from "node:path";
|
||||
import { parse } from "npm:@babel/parser@7.29.9";
|
||||
import { parse } from "@babel/parser";
|
||||
|
||||
const ROOT = new URL("..", import.meta.url).pathname;
|
||||
const SCOPES = ["apps/web/app", "apps/server/src", "packages/contracts/src"];
|
||||
|
||||
Reference in new issue
Block a user