reporefit 0.3.1 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/reporefit.mjs +1701 -225
- package/package.json +6 -1
package/dist/reporefit.mjs
CHANGED
|
@@ -6,13 +6,13 @@ var __export = (target, all2) => {
|
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
// src/cli.ts
|
|
9
|
-
import { writeFileSync } from "node:fs";
|
|
10
|
-
import { join as
|
|
9
|
+
import { mkdirSync, statSync as statSync3, writeFileSync } from "node:fs";
|
|
10
|
+
import { dirname as dirname2, join as join4, resolve as resolve3 } from "node:path";
|
|
11
11
|
|
|
12
12
|
// ../core/src/types.ts
|
|
13
|
-
var SCHEMA_VERSION = "0.
|
|
14
|
-
var ENGINE_VERSION = "0.
|
|
15
|
-
var RULESET_VERSION = "2026.12.
|
|
13
|
+
var SCHEMA_VERSION = "0.3.0";
|
|
14
|
+
var ENGINE_VERSION = "0.4.1";
|
|
15
|
+
var RULESET_VERSION = "2026.12.8";
|
|
16
16
|
|
|
17
17
|
// ../core/src/input/limits.ts
|
|
18
18
|
var MiB = 1024 * 1024;
|
|
@@ -202,6 +202,7 @@ var TEXT_EXT = /* @__PURE__ */ new Set([
|
|
|
202
202
|
"md",
|
|
203
203
|
"markdown",
|
|
204
204
|
"mdx",
|
|
205
|
+
"mdc",
|
|
205
206
|
"txt",
|
|
206
207
|
"rst",
|
|
207
208
|
"json",
|
|
@@ -3051,10 +3052,10 @@ function resolveAll(constructs2, events, context) {
|
|
|
3051
3052
|
const called = [];
|
|
3052
3053
|
let index2 = -1;
|
|
3053
3054
|
while (++index2 < constructs2.length) {
|
|
3054
|
-
const
|
|
3055
|
-
if (
|
|
3056
|
-
events =
|
|
3057
|
-
called.push(
|
|
3055
|
+
const resolve4 = constructs2[index2].resolveAll;
|
|
3056
|
+
if (resolve4 && !called.includes(resolve4)) {
|
|
3057
|
+
events = resolve4(events, context);
|
|
3058
|
+
called.push(resolve4);
|
|
3058
3059
|
}
|
|
3059
3060
|
}
|
|
3060
3061
|
return events;
|
|
@@ -7469,8 +7470,28 @@ function blankFrontMatter(text3) {
|
|
|
7469
7470
|
const blank = m[0].replace(/[^\r\n]/g, " ");
|
|
7470
7471
|
return { body: blank + text3.slice(m[0].length), frontMatter: m[1] ?? "" };
|
|
7471
7472
|
}
|
|
7473
|
+
var SHARED_TEXT_LIMIT = 64 * 1024;
|
|
7474
|
+
var shared = null;
|
|
7475
|
+
var sharedText = 0;
|
|
7472
7476
|
function parseTree(text3) {
|
|
7473
|
-
|
|
7477
|
+
const hit = shared?.get(text3);
|
|
7478
|
+
if (hit) return hit;
|
|
7479
|
+
const tree = fromMarkdown(blankFrontMatter(text3).body);
|
|
7480
|
+
if (shared && sharedText + text3.length <= SHARED_TEXT_LIMIT) {
|
|
7481
|
+
shared.set(text3, tree);
|
|
7482
|
+
sharedText += text3.length;
|
|
7483
|
+
}
|
|
7484
|
+
return tree;
|
|
7485
|
+
}
|
|
7486
|
+
async function withSharedTrees(fn) {
|
|
7487
|
+
if (shared) return fn();
|
|
7488
|
+
shared = /* @__PURE__ */ new Map();
|
|
7489
|
+
sharedText = 0;
|
|
7490
|
+
try {
|
|
7491
|
+
return await fn();
|
|
7492
|
+
} finally {
|
|
7493
|
+
shared = null;
|
|
7494
|
+
}
|
|
7474
7495
|
}
|
|
7475
7496
|
function walk(node2, visit) {
|
|
7476
7497
|
visit(node2);
|
|
@@ -7854,11 +7875,11 @@ function checkMcp(docs) {
|
|
|
7854
7875
|
const f1 = [];
|
|
7855
7876
|
const f2 = [];
|
|
7856
7877
|
const lines = (doc) => doc.text.split(/\r\n|\r|\n/);
|
|
7857
|
-
const push2 = (list2, ruleId, doc, line, key, params,
|
|
7878
|
+
const push2 = (list2, ruleId, doc, line, key, params, severity2, suffix) => {
|
|
7858
7879
|
list2.push({
|
|
7859
7880
|
id: `${ruleId}-${fnv1a(`${doc.path}:${line}:${suffix}`)}`,
|
|
7860
7881
|
ruleId,
|
|
7861
|
-
severity,
|
|
7882
|
+
severity: severity2,
|
|
7862
7883
|
confidence: "high",
|
|
7863
7884
|
messageKey: key,
|
|
7864
7885
|
params,
|
|
@@ -7907,6 +7928,8 @@ function checkMcp(docs) {
|
|
|
7907
7928
|
const pkg = args.find((a) => !a.startsWith("-"));
|
|
7908
7929
|
if (pkg && !/@\d|@[\^~]?\d|==\d/.test(pkg.replace(/^@[^/]+\//, ""))) push2(f2, "MCP-002", doc, keyLine("args"), "mcp002.unpinned", { server: s.name, package: pkg }, "low", `${s.name}:pin`);
|
|
7909
7930
|
}
|
|
7931
|
+
const broad = args.find((a) => /^(\/|~\/?|\$HOME|\$\{HOME\}|%USERPROFILE%|%HOMEPATH%|[A-Za-z]:[\\/]?|\/home\/?|\/Users\/?|\/root\/?)$/.test(a.trim()));
|
|
7932
|
+
if (broad) push2(f2, "MCP-002", doc, keyLine("args"), "mcp002.broadAccess", { server: s.name, path: broad.trim() }, "medium", `${s.name}:broad`);
|
|
7910
7933
|
if (hasUrl && /^http:\/\//i.test(String(s.url)) && !/^http:\/\/(localhost|127\.0\.0\.1|\[::1\])/i.test(String(s.url))) {
|
|
7911
7934
|
push2(f2, "MCP-002", doc, keyLine("url"), "mcp002.insecureUrl", { server: s.name }, "medium", `${s.name}:http`);
|
|
7912
7935
|
}
|
|
@@ -7921,7 +7944,7 @@ function checkMcp(docs) {
|
|
|
7921
7944
|
}
|
|
7922
7945
|
|
|
7923
7946
|
// ../core/src/ai/profiles.ts
|
|
7924
|
-
var PLATFORMS = ["codex", "claude", "gemini"];
|
|
7947
|
+
var PLATFORMS = ["codex", "claude", "gemini", "copilot", "cursor", "grok", "antigravity"];
|
|
7925
7948
|
var PROFILES = {
|
|
7926
7949
|
codex: {
|
|
7927
7950
|
platform: "codex",
|
|
@@ -7936,8 +7959,8 @@ var PROFILES = {
|
|
|
7936
7959
|
},
|
|
7937
7960
|
claude: {
|
|
7938
7961
|
platform: "claude",
|
|
7939
|
-
profileVersion: "claude-code-memory@2026-
|
|
7940
|
-
reviewedAt: "2026-
|
|
7962
|
+
profileVersion: "claude-code-memory@2026-12-01",
|
|
7963
|
+
reviewedAt: "2026-12-01",
|
|
7941
7964
|
sourceUrls: ["https://code.claude.com/docs/en/memory"],
|
|
7942
7965
|
// "maximum depth of four hops"
|
|
7943
7966
|
maxImportDepth: 4,
|
|
@@ -7956,15 +7979,69 @@ var PROFILES = {
|
|
|
7956
7979
|
maxImportDepth: 5,
|
|
7957
7980
|
maxCombinedBytes: null,
|
|
7958
7981
|
unseen: ["ai.unseen.geminiGlobal", "ai.unseen.geminiFileName", "ai.unseen.geminiJit"]
|
|
7982
|
+
},
|
|
7983
|
+
copilot: {
|
|
7984
|
+
platform: "copilot",
|
|
7985
|
+
profileVersion: "github-copilot-instructions@2026-12-01",
|
|
7986
|
+
reviewedAt: "2026-12-01",
|
|
7987
|
+
sourceUrls: ["https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/add-custom-instructions/add-repository-instructions"],
|
|
7988
|
+
maxImportDepth: null,
|
|
7989
|
+
maxCombinedBytes: null,
|
|
7990
|
+
unseen: ["ai.unseen.copilotPersonal"]
|
|
7991
|
+
},
|
|
7992
|
+
cursor: {
|
|
7993
|
+
platform: "cursor",
|
|
7994
|
+
profileVersion: "cursor-agents-window-rules@2026-12-01",
|
|
7995
|
+
reviewedAt: "2026-12-01",
|
|
7996
|
+
// cursor.com/docs moved permanently to docs.grok.com/build on the review date.
|
|
7997
|
+
sourceUrls: ["https://docs.grok.com/build/agents-window/rules"],
|
|
7998
|
+
// "@file" in a rule only points at the file; it does not insert its content.
|
|
7999
|
+
maxImportDepth: null,
|
|
8000
|
+
maxCombinedBytes: null,
|
|
8001
|
+
unseen: ["ai.unseen.cursorUserTeam"]
|
|
8002
|
+
},
|
|
8003
|
+
grok: {
|
|
8004
|
+
platform: "grok",
|
|
8005
|
+
profileVersion: "grok-build-terminal-rules@2026-12-01",
|
|
8006
|
+
reviewedAt: "2026-12-01",
|
|
8007
|
+
sourceUrls: ["https://docs.grok.com/build/features/project-rules"],
|
|
8008
|
+
maxImportDepth: null,
|
|
8009
|
+
maxCombinedBytes: null,
|
|
8010
|
+
unseen: ["ai.unseen.grokHome"]
|
|
8011
|
+
},
|
|
8012
|
+
antigravity: {
|
|
8013
|
+
platform: "antigravity",
|
|
8014
|
+
profileVersion: "antigravity-rules@2026-12-01",
|
|
8015
|
+
reviewedAt: "2026-12-01",
|
|
8016
|
+
sourceUrls: ["https://antigravity.google/docs/rules.md"],
|
|
8017
|
+
maxImportDepth: null,
|
|
8018
|
+
maxCombinedBytes: null,
|
|
8019
|
+
unseen: ["ai.unseen.antigravityGlobal"]
|
|
7959
8020
|
}
|
|
7960
8021
|
};
|
|
7961
8022
|
var base = (p) => p.slice(p.lastIndexOf("/") + 1);
|
|
7962
8023
|
function instructionPlatforms(path) {
|
|
7963
8024
|
const name = base(path);
|
|
7964
8025
|
const out = [];
|
|
7965
|
-
|
|
7966
|
-
|
|
7967
|
-
|
|
8026
|
+
const add = (...ps) => {
|
|
8027
|
+
for (const p of ps) if (!out.includes(p)) out.push(p);
|
|
8028
|
+
};
|
|
8029
|
+
if (/(^|\/)\.claude\/AGENTS\.md$/.test(path)) return ["claude"];
|
|
8030
|
+
if (/(^|\/)\.agents\/(AGENTS|GEMINI)\.md$/.test(path)) return ["antigravity"];
|
|
8031
|
+
if (name === "AGENTS.md") add("codex", "claude", "copilot", "cursor", "grok", "antigravity");
|
|
8032
|
+
if (name === "AGENTS.override.md") add("codex");
|
|
8033
|
+
if (name === "Agents.md" || name === "AGENT.md" || name === "Claude.md") add("grok");
|
|
8034
|
+
if (name === "CLAUDE.md" || name === "CLAUDE.local.md") {
|
|
8035
|
+
add("claude");
|
|
8036
|
+
if (!/(^|\/)\.claude\//.test(path)) add("grok");
|
|
8037
|
+
}
|
|
8038
|
+
if (path === "CLAUDE.md" || path === "GEMINI.md") add("copilot");
|
|
8039
|
+
if (/(^|\/)\.claude\/rules\/.+\.md$/.test(path)) add("claude");
|
|
8040
|
+
if (/(^|\/)\.(claude|cursor|grok)\/rules\/[^/]+\.md$/.test(path)) add("grok");
|
|
8041
|
+
if (/(^|\/)\.cursor\/rules\/.+\.mdc$/.test(path)) add("cursor");
|
|
8042
|
+
if (name === "GEMINI.md") add("gemini", "antigravity");
|
|
8043
|
+
if (/(^|\/)\.agents?\/rules\/[^/]+\.md$/.test(path)) add("antigravity");
|
|
8044
|
+
if (path === ".github/copilot-instructions.md" || /^\.github\/instructions\/.+\.instructions\.md$/.test(path)) add("copilot");
|
|
7968
8045
|
return out;
|
|
7969
8046
|
}
|
|
7970
8047
|
|
|
@@ -7982,13 +8059,14 @@ function frontMatterFields(text3) {
|
|
|
7982
8059
|
}
|
|
7983
8060
|
return out;
|
|
7984
8061
|
}
|
|
8062
|
+
var SIDE_EFFECT_RE = /\b(deploy\w*|publish\w*|push\w*|merge|delete\w*|drop\w*|migrate\w*|send\w*|commit(?![\s_-]*messages?)\w*)\b|배포|게시|푸시|머지|병합|삭제|마이그레이션|전송|커밋(?!\s*메시지)|デプロイ|公開|プッシュ|マージ|削除|マイグレーション|送信|コミット(?!\s*メッセージ)|部署|发布|推送|合并|删除|迁移|发送|提交(?!信息|说明)/i;
|
|
7985
8063
|
function checkSkills(docs) {
|
|
7986
8064
|
const skills = docs.filter((d) => isSkillPath(d.path)).sort((a, b) => a.path < b.path ? -1 : 1);
|
|
7987
8065
|
const findings = [];
|
|
7988
|
-
const add = (doc, key, params,
|
|
8066
|
+
const add = (doc, key, params, severity2) => findings.push({
|
|
7989
8067
|
id: `AGT-001-${fnv1a(`${doc.path}:${key}`)}`,
|
|
7990
8068
|
ruleId: "AGT-001",
|
|
7991
|
-
severity,
|
|
8069
|
+
severity: severity2,
|
|
7992
8070
|
confidence: "high",
|
|
7993
8071
|
messageKey: key,
|
|
7994
8072
|
params: { path: doc.path, ...params },
|
|
@@ -8012,6 +8090,9 @@ function checkSkills(docs) {
|
|
|
8012
8090
|
if (!fm.description) add(doc, "agt001.noDescription", {}, "medium");
|
|
8013
8091
|
else if (fm.description.length > 1024) add(doc, "agt001.longDescription", { length: fm.description.length }, "low");
|
|
8014
8092
|
if (blankFrontMatter(doc.text).body.trim() === "") add(doc, "agt001.emptyBody", {}, "low");
|
|
8093
|
+
const manualOnly = /^(true|yes|on|1)$/i.test(fm["disable-model-invocation"] ?? "");
|
|
8094
|
+
const effect = SIDE_EFFECT_RE.exec((fm.name || folder2).replace(/[-_]/g, " "));
|
|
8095
|
+
if (effect && !manualOnly && /(^|\/)\.claude\/skills\//.test(doc.path)) add(doc, "agt001.autoSideEffect", { name: fm.name || folder2, word: effect[0] }, "low");
|
|
8015
8096
|
}
|
|
8016
8097
|
return {
|
|
8017
8098
|
ruleId: "AGT-001",
|
|
@@ -8024,9 +8105,107 @@ function checkSkills(docs) {
|
|
|
8024
8105
|
scopeKey: "agt001.scope"
|
|
8025
8106
|
};
|
|
8026
8107
|
}
|
|
8027
|
-
var PM =
|
|
8028
|
-
|
|
8029
|
-
|
|
8108
|
+
var PM = [
|
|
8109
|
+
/\b(?:use|using|run|with|prefer|always use)\s+(npm|pnpm|yarn|bun)\b/gi,
|
|
8110
|
+
/\b(npm|pnpm|yarn|bun)\s*(?:을|를|만)?\s*(?:사용|쓴다|쓰세요|씁니다|써 ?주세요|이용)/gi,
|
|
8111
|
+
/\b(npm|pnpm|yarn|bun)\s*(?:を|だけを)?\s*(?:使用|使う|使って|使います|使いましょう)/gi,
|
|
8112
|
+
/(?:使用|采用|统一用|只用)\s*(npm|pnpm|yarn|bun)\b/gi
|
|
8113
|
+
];
|
|
8114
|
+
var INDENT_SPACES = [
|
|
8115
|
+
/\b(?:indent(?:ation)?|use)\b[^.\n]{0,30}?\b(\d)\s*-?\s*spaces?\b/i,
|
|
8116
|
+
/들여쓰기[^.\n]{0,15}?(\d)\s*칸|(\d)\s*칸\s*들여쓰기|들여쓰기[^.\n]{0,15}?공백\s*(\d)/,
|
|
8117
|
+
/インデント[^。\n]{0,15}?(\d)\s*(?:スペース|文字|つ)|スペース\s*(\d)\s*(?:つ|個)で?インデント/,
|
|
8118
|
+
/缩进[^。\n]{0,15}?(\d)\s*个?空格|(\d)\s*个空格缩进/
|
|
8119
|
+
];
|
|
8120
|
+
var INDENT_TABS = [
|
|
8121
|
+
/\b(?:indent(?:ation)?\b[^.\n]{0,20}\btabs?\b|use tabs\b)/i,
|
|
8122
|
+
/들여쓰기[^.\n]{0,15}탭|탭으로 들여/,
|
|
8123
|
+
/インデント[^。\n]{0,15}タブ|タブでインデント/,
|
|
8124
|
+
/缩进[^。\n]{0,15}(?:制表符|tab)|(?:制表符|tab)\s*缩进/i
|
|
8125
|
+
];
|
|
8126
|
+
var NODE = /\bnode(?:\.js)?\s*(>=|=>|>|<=|=<|<|\^|~)?\s*v?(\d{2})(?!\d)(?:\.(?:\d+|x))*(\+)?/gi;
|
|
8127
|
+
var NODE_CONTEXT = /\b(use|using|require[sd]?|need[s]?|run on|target|supported?)\b|사용|필요|필수|이상|使用|使う|使っ|使い|必要|以上|以降|需要|要求|及以上/i;
|
|
8128
|
+
var NODE_MIN_AFTER = /^\s*(?:or (?:later|newer|above|higher)|and (?:later|newer|above|up)|이상|이후 버전|以上|以降|及以上|或更高|或以上)/i;
|
|
8129
|
+
var NODE_MAX_AFTER = /^\s*(?:or (?:earlier|older|below|lower)|이하|以下|及以下|或更低)/i;
|
|
8130
|
+
var NODE_MIN_BEFORE = /(?:at least|minimum(?: of)?|최소|至少|最低|少なくとも)\s*$/i;
|
|
8131
|
+
var NEG_BEFORE = /(?:\b(?:do not|don't|never|avoid|not|instead of|rather than|no longer)\s+(?:\w+\s+){0,2}|(?:不要|别|禁止|切勿|请勿|不得|不能|不再|避免)\s*)$/i;
|
|
8132
|
+
var NEG_AFTER = /^[^.。;;!?!?]{0,12}?(?:하지\s*(?:마|않|말)|지\s*(?:마|않|말)|하면\s*안|금지|しない|しません|ないで|はいけ|は禁止|禁止)/;
|
|
8133
|
+
var SCOPES = [
|
|
8134
|
+
/\b(?:in|for|on|inside|under|within|during)\s+(?:the\s+)?(production|prod|staging|test|tests|testing|development|dev|local|ci|e2e)\b/i,
|
|
8135
|
+
/\b(?:in|for|inside|under|within)\s+(?:the\s+)?([\w.-]+(?:\/[\w.-]*)*)\s+(?:folder|directory|package|workspace|app|module|subproject)\b/i,
|
|
8136
|
+
/\b(?:in|for|inside|under|within)\s+([\w.-]*\/[\w./-]*)/i,
|
|
8137
|
+
/(운영|프로덕션|스테이징|테스트|개발|로컬|CI)\s*(?:환경)?\s*에서/i,
|
|
8138
|
+
/([\w.-]+(?:\/[\w.-]*)*)\s*(?:폴더|디렉터리|패키지|워크스페이스|앱)\s*에서/,
|
|
8139
|
+
/([\w.-]*\/[\w./-]*)\s*에서/,
|
|
8140
|
+
/(本番|ステージング|テスト|開発|ローカル|CI)\s*(?:環境)?\s*では/i,
|
|
8141
|
+
/([\w.-]+(?:\/[\w.-]*)*)\s*(?:フォルダー?|ディレクトリ|パッケージ|ワークスペース)\s*では/,
|
|
8142
|
+
/在\s*(生产|预发布?|测试|开发|本地|CI)\s*(?:环境)?/i,
|
|
8143
|
+
/在\s*([\w.-]+(?:\/[\w.-]*)*)\s*(?:目录|文件夹|包|工作区)/
|
|
8144
|
+
];
|
|
8145
|
+
var SCOPE_NAME = {
|
|
8146
|
+
prod: "production",
|
|
8147
|
+
"\uC6B4\uC601": "production",
|
|
8148
|
+
"\uD504\uB85C\uB355\uC158": "production",
|
|
8149
|
+
"\u672C\u756A": "production",
|
|
8150
|
+
"\u751F\u4EA7": "production",
|
|
8151
|
+
"\uC2A4\uD14C\uC774\uC9D5": "staging",
|
|
8152
|
+
"\u30B9\u30C6\u30FC\u30B8\u30F3\u30B0": "staging",
|
|
8153
|
+
"\u9884\u53D1": "staging",
|
|
8154
|
+
"\u9884\u53D1\u5E03": "staging",
|
|
8155
|
+
tests: "test",
|
|
8156
|
+
testing: "test",
|
|
8157
|
+
e2e: "test",
|
|
8158
|
+
"\uD14C\uC2A4\uD2B8": "test",
|
|
8159
|
+
"\u30C6\u30B9\u30C8": "test",
|
|
8160
|
+
"\u6D4B\u8BD5": "test",
|
|
8161
|
+
dev: "development",
|
|
8162
|
+
"\uAC1C\uBC1C": "development",
|
|
8163
|
+
"\u958B\u767A": "development",
|
|
8164
|
+
"\u5F00\u53D1": "development",
|
|
8165
|
+
"\uB85C\uCEEC": "local",
|
|
8166
|
+
"\u30ED\u30FC\u30AB\u30EB": "local",
|
|
8167
|
+
"\u672C\u5730": "local"
|
|
8168
|
+
};
|
|
8169
|
+
var CONDITIONAL = /\b(if|when|unless|except|whenever)\b|경우|때는|때만|만약|예외|場合|とき|時は|例外|如果|若是|除非|例外/i;
|
|
8170
|
+
function scopeOf(text3) {
|
|
8171
|
+
for (const re of SCOPES) {
|
|
8172
|
+
const m = re.exec(text3);
|
|
8173
|
+
if (m) {
|
|
8174
|
+
const s = m[1].toLowerCase().replace(/^\.\//, "").replace(/\/+$/, "");
|
|
8175
|
+
return SCOPE_NAME[s] ?? s;
|
|
8176
|
+
}
|
|
8177
|
+
}
|
|
8178
|
+
return "";
|
|
8179
|
+
}
|
|
8180
|
+
function negated(text3, start, end) {
|
|
8181
|
+
const before = text3.slice(0, start);
|
|
8182
|
+
const from = Math.max(before.search(/[^.。;;!?!?]*$/), 0);
|
|
8183
|
+
return NEG_BEFORE.test(before.slice(Math.max(from, start - 30))) || NEG_AFTER.test(text3.slice(end));
|
|
8184
|
+
}
|
|
8185
|
+
var firstOf = (res, text3) => {
|
|
8186
|
+
for (const re of res) {
|
|
8187
|
+
const m = re.exec(text3);
|
|
8188
|
+
if (m) return m.slice(1).find((g) => g !== void 0) ?? "";
|
|
8189
|
+
}
|
|
8190
|
+
return null;
|
|
8191
|
+
};
|
|
8192
|
+
function nodeClaims(text3) {
|
|
8193
|
+
const out = [];
|
|
8194
|
+
for (const m of text3.matchAll(NODE)) {
|
|
8195
|
+
const start = m.index;
|
|
8196
|
+
const end = start + m[0].length;
|
|
8197
|
+
const clauseStart = Math.max(text3.slice(0, start).search(/[^.。;;!?!?]*$/), 0);
|
|
8198
|
+
const clauseEnd = text3.slice(end).search(/[.。;;!?!?]/);
|
|
8199
|
+
const clause = text3.slice(clauseStart, clauseEnd < 0 ? text3.length : end + clauseEnd);
|
|
8200
|
+
if (!NODE_CONTEXT.test(clause) || negated(text3, start, end)) continue;
|
|
8201
|
+
const op = m[1];
|
|
8202
|
+
const after = text3.slice(end);
|
|
8203
|
+
const kind = op === ">=" || op === "=>" || op === ">" || m[3] || NODE_MIN_AFTER.test(after) || NODE_MIN_BEFORE.test(text3.slice(0, start)) ? "min" : op === "<=" || op === "=<" || op === "<" || NODE_MAX_AFTER.test(after) ? "max" : "exact";
|
|
8204
|
+
out.push({ major: Number(m[2]), kind });
|
|
8205
|
+
}
|
|
8206
|
+
return out;
|
|
8207
|
+
}
|
|
8208
|
+
var nodeLabel = (r) => `Node ${r.major}${r.kind === "min" ? "+" : r.kind === "max" ? " or lower" : ""}`;
|
|
8030
8209
|
function claims(doc) {
|
|
8031
8210
|
const out = [];
|
|
8032
8211
|
const lines = doc.text.split(/\r\n|\r|\n/);
|
|
@@ -8036,39 +8215,59 @@ function claims(doc) {
|
|
|
8036
8215
|
if (!node2.position) return;
|
|
8037
8216
|
for (let ln = node2.position.start.line; ln <= node2.position.end.line; ln++) {
|
|
8038
8217
|
const text3 = (lines[ln - 1] ?? "").replace(/`[^`]*`/g, "");
|
|
8039
|
-
const
|
|
8040
|
-
const
|
|
8041
|
-
|
|
8042
|
-
|
|
8043
|
-
|
|
8044
|
-
|
|
8218
|
+
const base2 = { at: { path: doc.path, line: ln, column: 1 }, line: lines[ln - 1] ?? "", scope: scopeOf(text3), conditional: CONDITIONAL.test(text3) };
|
|
8219
|
+
const managers = /* @__PURE__ */ new Set();
|
|
8220
|
+
for (const re of PM) {
|
|
8221
|
+
for (const m of text3.matchAll(re)) {
|
|
8222
|
+
if (!negated(text3, m.index, m.index + m[0].length)) managers.add(m[1].toLowerCase());
|
|
8223
|
+
}
|
|
8224
|
+
}
|
|
8225
|
+
for (const pm of managers) out.push({ ...base2, topic: "package-manager", value: pm });
|
|
8226
|
+
const sp = firstOf(INDENT_SPACES, text3);
|
|
8227
|
+
if (sp) out.push({ ...base2, topic: "indentation", value: `${sp} spaces` });
|
|
8228
|
+
else if (firstOf(INDENT_TABS, text3) !== null) out.push({ ...base2, topic: "indentation", value: "tabs" });
|
|
8229
|
+
for (const r of nodeClaims(text3)) out.push({ ...base2, topic: "node-version", value: nodeLabel(r), node: r });
|
|
8045
8230
|
}
|
|
8046
8231
|
});
|
|
8047
8232
|
return out;
|
|
8048
8233
|
}
|
|
8234
|
+
function nodeConflict(reqs) {
|
|
8235
|
+
const exact = new Set(reqs.filter((r) => r.kind === "exact").map((r) => r.major));
|
|
8236
|
+
const mins = new Set(reqs.filter((r) => r.kind === "min").map((r) => r.major));
|
|
8237
|
+
const maxs = new Set(reqs.filter((r) => r.kind === "max").map((r) => r.major));
|
|
8238
|
+
const lo = Math.max(-Infinity, ...mins);
|
|
8239
|
+
const hi = Math.min(Infinity, ...maxs);
|
|
8240
|
+
return exact.size > 1 || mins.size > 1 || maxs.size > 1 || lo > hi || [...exact].some((e) => e < lo || e > hi);
|
|
8241
|
+
}
|
|
8049
8242
|
function checkConflicts(docs) {
|
|
8050
8243
|
const instruction = docs.filter((d) => instructionPlatforms(d.path).length > 0).sort((a, b) => a.path < b.path ? -1 : 1);
|
|
8051
8244
|
const all2 = instruction.flatMap(claims);
|
|
8052
8245
|
const findings = [];
|
|
8053
|
-
for (const topic of ["package-manager", "indentation"]) {
|
|
8054
|
-
const
|
|
8055
|
-
for (const
|
|
8056
|
-
|
|
8057
|
-
|
|
8058
|
-
|
|
8059
|
-
|
|
8060
|
-
|
|
8061
|
-
|
|
8062
|
-
|
|
8063
|
-
|
|
8064
|
-
|
|
8065
|
-
|
|
8066
|
-
|
|
8067
|
-
|
|
8068
|
-
|
|
8069
|
-
|
|
8070
|
-
|
|
8071
|
-
|
|
8246
|
+
for (const topic of ["package-manager", "indentation", "node-version"]) {
|
|
8247
|
+
const scopes = [...new Set(all2.filter((x) => x.topic === topic).map((x) => x.scope))].sort();
|
|
8248
|
+
for (const scope of scopes) {
|
|
8249
|
+
const group = all2.filter((x) => x.topic === topic && x.scope === scope);
|
|
8250
|
+
const byValue = /* @__PURE__ */ new Map();
|
|
8251
|
+
for (const c of group) byValue.set(c.value, [...byValue.get(c.value) ?? [], c]);
|
|
8252
|
+
if (byValue.size < 2) continue;
|
|
8253
|
+
if (topic === "node-version" && !nodeConflict(group.map((c) => c.node))) continue;
|
|
8254
|
+
const groups = [...byValue.entries()];
|
|
8255
|
+
const [first, ...rest] = groups.flatMap(([, cs]) => cs);
|
|
8256
|
+
findings.push({
|
|
8257
|
+
id: `AGT-002-${fnv1a(`${topic}:${scope ? `${scope}:` : ""}${groups.map(([v]) => v).sort().join("|")}`)}`,
|
|
8258
|
+
ruleId: "AGT-002",
|
|
8259
|
+
severity: "medium",
|
|
8260
|
+
// A rule with a condition ("if", "경우", "場合", "如果") may be an exception: still shown, with less certainty.
|
|
8261
|
+
confidence: group.some((c) => c.conditional) ? "low" : "medium",
|
|
8262
|
+
messageKey: `agt002.${topic}`,
|
|
8263
|
+
params: { values: groups.map(([v, cs]) => `${v} (${cs.map((c) => `${c.at.path}:${c.at.line}`).join(", ")})`).join(" / ") },
|
|
8264
|
+
location: first.at,
|
|
8265
|
+
evidence: truncate(maskSecrets(first.line.trim())),
|
|
8266
|
+
recommendation: { messageKey: "agt002.fix", params: { topic } },
|
|
8267
|
+
verification: { messageKey: "agt.verify", params: { path: first.at.path, line: first.at.line } },
|
|
8268
|
+
related: rest.map((c) => c.at)
|
|
8269
|
+
});
|
|
8270
|
+
}
|
|
8072
8271
|
}
|
|
8073
8272
|
return {
|
|
8074
8273
|
ruleId: "AGT-002",
|
|
@@ -8082,6 +8281,148 @@ function checkConflicts(docs) {
|
|
|
8082
8281
|
};
|
|
8083
8282
|
}
|
|
8084
8283
|
|
|
8284
|
+
// ../core/src/rules/doc-consistency.ts
|
|
8285
|
+
var LOCKFILES = {
|
|
8286
|
+
npm: /(^|\/)(package-lock\.json|npm-shrinkwrap\.json)$/,
|
|
8287
|
+
pnpm: /(^|\/)pnpm-lock\.yaml$/,
|
|
8288
|
+
yarn: /(^|\/)yarn\.lock$/,
|
|
8289
|
+
bun: /(^|\/)bun\.lockb?$/
|
|
8290
|
+
};
|
|
8291
|
+
var PM_COMMAND = /^(npm|pnpm|yarn|bun)\s+(install|i|ci|add|run|test|exec|remove|uninstall)\b(.*)$/;
|
|
8292
|
+
var CONDITIONAL2 = /\b(if|or|either|alternatively|e\.g\.|for example)\b|또는|이나|라면|경우|예:|예를 들|または|場合|例:|例えば|或者|如果|例如/i;
|
|
8293
|
+
var EXAMPLE_LEAD = /\b(e\.g\.|example|for instance)\b|예:|예시|例:|例えば|示例|例如/i;
|
|
8294
|
+
var GENERATED = /^(node_modules|dist|build|out|coverage|target|\.next|\.nuxt|\.venv|venv|__pycache__|\.cache|\.turbo|tmp)(\/|$)/;
|
|
8295
|
+
var NOT_THIS_PROJECT = /(^|\/)(tests?|__tests__|spec|fixtures?|__fixtures__|examples?|samples?|testdata|e2e)\//i;
|
|
8296
|
+
var PATH_EXT = /\.(md|mdx|ts|tsx|js|jsx|mjs|cjs|json|jsonc|ya?ml|toml|py|rb|go|rs|java|kt|sh|ps1|vue|svelte|astro|css|scss|html|txt|sql|lock)$/i;
|
|
8297
|
+
function commandsAndSpans(doc) {
|
|
8298
|
+
const out = [];
|
|
8299
|
+
const lines = doc.text.split(/\r?\n/);
|
|
8300
|
+
let fence = null;
|
|
8301
|
+
let skipBlock = false;
|
|
8302
|
+
let lastProse = "";
|
|
8303
|
+
lines.forEach((raw, i) => {
|
|
8304
|
+
const t2 = raw.trim();
|
|
8305
|
+
const f = /^(```+|~~~+)\s*([\w-]*)/.exec(t2);
|
|
8306
|
+
if (f) {
|
|
8307
|
+
if (fence === null) {
|
|
8308
|
+
fence = f[1];
|
|
8309
|
+
const lang = f[2].toLowerCase();
|
|
8310
|
+
skipBlock = lang !== "" && !["sh", "bash", "shell", "console", "zsh", "powershell", "ps1", "cmd"].includes(lang) || EXAMPLE_LEAD.test(lastProse);
|
|
8311
|
+
} else if (t2.startsWith(fence)) fence = null;
|
|
8312
|
+
return;
|
|
8313
|
+
}
|
|
8314
|
+
if (fence !== null) {
|
|
8315
|
+
if (!skipBlock && t2) out.push({ doc, line: i + 1, text: t2.replace(/^\$\s+/, ""), kind: "block", context: lastProse });
|
|
8316
|
+
return;
|
|
8317
|
+
}
|
|
8318
|
+
if (t2) lastProse = t2;
|
|
8319
|
+
for (const m of raw.matchAll(/`([^`\n]+)`/g)) out.push({ doc, line: i + 1, text: m[1].trim(), kind: "span", context: t2 });
|
|
8320
|
+
});
|
|
8321
|
+
return out;
|
|
8322
|
+
}
|
|
8323
|
+
var dirOf = (p) => p.includes("/") ? p.slice(0, p.lastIndexOf("/")) : "";
|
|
8324
|
+
var join = (dir, name) => dir ? `${dir}/${name}` : name;
|
|
8325
|
+
function nearestManifest(dir, manifests) {
|
|
8326
|
+
let d = dir;
|
|
8327
|
+
for (; ; ) {
|
|
8328
|
+
if (manifests.has(join(d, "package.json"))) return d;
|
|
8329
|
+
if (d === "") return null;
|
|
8330
|
+
d = dirOf(d);
|
|
8331
|
+
}
|
|
8332
|
+
}
|
|
8333
|
+
function checkDocConsistency(input) {
|
|
8334
|
+
const findings = [];
|
|
8335
|
+
const manifests = new Map(input.allDocs.filter((d) => /(^|\/)package\.json$/.test(d.path)).map((d) => [d.path, d.text]));
|
|
8336
|
+
const parse3 = (path) => {
|
|
8337
|
+
try {
|
|
8338
|
+
return JSON.parse(manifests.get(path) ?? "");
|
|
8339
|
+
} catch {
|
|
8340
|
+
return null;
|
|
8341
|
+
}
|
|
8342
|
+
};
|
|
8343
|
+
const files = [...input.files];
|
|
8344
|
+
const lockKinds = (dir) => Object.keys(LOCKFILES).filter((pm) => files.some((f) => dirOf(f) === dir && LOCKFILES[pm].test(f)));
|
|
8345
|
+
const add = (l, key, params, fixKey) => {
|
|
8346
|
+
const at = { path: l.doc.path, line: l.line, column: 1 };
|
|
8347
|
+
const id = `DOC-001-${fnv1a(`${key}:${l.doc.path}:${l.line}:${l.text}`)}`;
|
|
8348
|
+
if (findings.some((f) => f.id === id)) return;
|
|
8349
|
+
findings.push({
|
|
8350
|
+
id,
|
|
8351
|
+
ruleId: "DOC-001",
|
|
8352
|
+
severity: "medium",
|
|
8353
|
+
confidence: "high",
|
|
8354
|
+
messageKey: key,
|
|
8355
|
+
params,
|
|
8356
|
+
location: at,
|
|
8357
|
+
evidence: truncate(maskSecrets(l.text)),
|
|
8358
|
+
recommendation: { messageKey: fixKey, params },
|
|
8359
|
+
verification: { messageKey: "agt.verify", params: { path: at.path, line: at.line } }
|
|
8360
|
+
});
|
|
8361
|
+
};
|
|
8362
|
+
const manifestFiles = files.filter((f) => /(^|\/)package\.json$/.test(f));
|
|
8363
|
+
const allManifestsRead = manifestFiles.every((f) => manifests.has(f));
|
|
8364
|
+
const anyScript = new Set(manifestFiles.flatMap((f) => Object.keys(parse3(f)?.scripts ?? {})));
|
|
8365
|
+
const known = [...input.files, ...input.directories];
|
|
8366
|
+
const throughFile = (ref) => ref.split("/").some((_, i, parts) => i > 0 && input.files.has(parts.slice(0, i).join("/")));
|
|
8367
|
+
const present = (ref) => throughFile(ref) || known.some((k) => k === ref || k.endsWith(`/${ref}`));
|
|
8368
|
+
for (const doc of input.docs) {
|
|
8369
|
+
if (NOT_THIS_PROJECT.test(doc.path)) continue;
|
|
8370
|
+
for (const l of commandsAndSpans(doc)) {
|
|
8371
|
+
const managers = new Set(l.context.match(/\b(npm|pnpm|yarn|bun)\b/g) ?? []);
|
|
8372
|
+
if (CONDITIONAL2.test(l.context) || managers.size > 1) continue;
|
|
8373
|
+
const cmd = PM_COMMAND.exec(l.text);
|
|
8374
|
+
const base2 = nearestManifest(dirOf(doc.path), manifests);
|
|
8375
|
+
if (cmd) {
|
|
8376
|
+
const used = cmd[1];
|
|
8377
|
+
const verb = cmd[2];
|
|
8378
|
+
const args = cmd[3].trim().split(/\s+/).filter(Boolean);
|
|
8379
|
+
if (["install", "i", "ci"].includes(verb)) {
|
|
8380
|
+
if (args.some((a) => !a.startsWith("-")) || args.some((a) => a === "-g" || a === "--global")) continue;
|
|
8381
|
+
const lockDir = base2 !== null && lockKinds(base2).length > 0 ? base2 : "";
|
|
8382
|
+
const kinds = lockKinds(lockDir);
|
|
8383
|
+
const declared = base2 !== null ? parse3(join(base2, "package.json"))?.packageManager?.split("@")[0] : void 0;
|
|
8384
|
+
if (kinds.length === 1 && kinds[0] !== used && (!declared || declared === kinds[0])) {
|
|
8385
|
+
const lockfile = files.find((f) => dirOf(f) === lockDir && LOCKFILES[kinds[0]].test(f));
|
|
8386
|
+
add(l, "doc001.pm", { used, expected: kinds[0], lockfile }, "doc001.pm.fix");
|
|
8387
|
+
}
|
|
8388
|
+
continue;
|
|
8389
|
+
}
|
|
8390
|
+
const script = verb === "run" ? /^([\w:.-]+)$/.exec(args[0] ?? "")?.[1] : verb === "test" && used !== "bun" ? "test" : void 0;
|
|
8391
|
+
const workspace = args.some((a) => /^(-w|--workspace|--filter|-F|-C|--prefix|--dir|-r|--recursive)(=|$)/.test(a));
|
|
8392
|
+
if (script && base2 !== null && !workspace && allManifestsRead && !anyScript.has(script)) {
|
|
8393
|
+
add(l, "doc001.script", { command: l.text, script, manifest: join(base2, "package.json") }, "doc001.script.fix");
|
|
8394
|
+
}
|
|
8395
|
+
continue;
|
|
8396
|
+
}
|
|
8397
|
+
const docker = /^docker(?:\s+compose|-compose)\b(.*)$|^docker\s+build\b(.*)$/.exec(l.text);
|
|
8398
|
+
if (docker && input.listComplete) {
|
|
8399
|
+
const compose = l.text.startsWith("docker-compose") || /^docker\s+compose/.test(l.text);
|
|
8400
|
+
const explicit = /\s(?:-f|--file)\s+(\S+)/.exec(` ${docker[1] ?? docker[2] ?? ""}`)?.[1];
|
|
8401
|
+
const has = explicit ? present(explicit.replace(/^\.\//, "")) : compose ? files.some((f) => /(^|\/)(docker-)?compose\.ya?ml$/.test(f)) : files.some((f) => /(^|\/)([\w.-]*\.)?dockerfile$|(^|\/)dockerfile[\w.-]*$/i.test(f));
|
|
8402
|
+
if (!has) add(l, "doc001.docker", { command: l.text, file: explicit ?? (compose ? "compose.yaml" : "Dockerfile") }, "doc001.docker.fix");
|
|
8403
|
+
continue;
|
|
8404
|
+
}
|
|
8405
|
+
if (l.kind !== "span" || !input.listComplete || !input.instruction.has(doc.path)) continue;
|
|
8406
|
+
const ref = l.text.replace(/^\.\//, "");
|
|
8407
|
+
if (/[\s*?<>{}$|"'`[\]:=%#,;()]|^@|^~|^\/|\.\.|path\/to|your-|example|^-/.test(ref)) continue;
|
|
8408
|
+
const clean = ref.replace(/\/$/, "");
|
|
8409
|
+
if (!clean.includes("/") || !(PATH_EXT.test(clean) || ref.endsWith("/"))) continue;
|
|
8410
|
+
if (GENERATED.test(clean) || input.ignored?.(clean) || input.ignored?.(`${clean}/`) || input.ignored?.(`${clean}/x`)) continue;
|
|
8411
|
+
if (!present(clean) && !present(join(dirOf(doc.path), clean))) add(l, "doc001.path", { ref: l.text }, "doc001.path.fix");
|
|
8412
|
+
}
|
|
8413
|
+
}
|
|
8414
|
+
return {
|
|
8415
|
+
ruleId: "DOC-001",
|
|
8416
|
+
status: input.docs.length === 0 ? "skipped" : findings.length ? "fail" : "pass",
|
|
8417
|
+
eligible: input.docs.length,
|
|
8418
|
+
inspected: input.docs.length,
|
|
8419
|
+
findings,
|
|
8420
|
+
unverified: [],
|
|
8421
|
+
reason: input.docs.length ? null : "doc001.reason.none",
|
|
8422
|
+
scopeKey: "doc001.scope"
|
|
8423
|
+
};
|
|
8424
|
+
}
|
|
8425
|
+
|
|
8085
8426
|
// ../core/src/rules/duplicates.ts
|
|
8086
8427
|
var CODE_EXT = /* @__PURE__ */ new Set(["js", "mjs", "cjs", "jsx", "ts", "mts", "cts", "tsx", "vue", "svelte", "py", "rb", "go", "rs", "java", "kt", "cs", "php", "swift"]);
|
|
8087
8428
|
var DUP_WINDOW = 6;
|
|
@@ -8089,9 +8430,53 @@ var MAX_FINDINGS = 50;
|
|
|
8089
8430
|
function isCodePath(path) {
|
|
8090
8431
|
return CODE_EXT.has(extensionOf(path)) && !/\.min\.(js|css)$/.test(path) && !/(^|\/)(vendor|dist|build)\//.test(path);
|
|
8091
8432
|
}
|
|
8092
|
-
|
|
8433
|
+
var LANG = {
|
|
8434
|
+
cs: "cs",
|
|
8435
|
+
java: "jvm",
|
|
8436
|
+
kt: "jvm",
|
|
8437
|
+
js: "js",
|
|
8438
|
+
mjs: "js",
|
|
8439
|
+
cjs: "js",
|
|
8440
|
+
jsx: "js",
|
|
8441
|
+
ts: "js",
|
|
8442
|
+
mts: "js",
|
|
8443
|
+
cts: "js",
|
|
8444
|
+
tsx: "js",
|
|
8445
|
+
vue: "js",
|
|
8446
|
+
svelte: "js",
|
|
8447
|
+
py: "py",
|
|
8448
|
+
go: "go",
|
|
8449
|
+
rs: "rs",
|
|
8450
|
+
php: "php",
|
|
8451
|
+
rb: "rb",
|
|
8452
|
+
swift: "swift"
|
|
8453
|
+
};
|
|
8454
|
+
var IMPORT_LINE = {
|
|
8455
|
+
cs: /^(?:global\s+)?using\s+(?:static\s+)?[\w.]+(?:\s*=\s*[\w.<>, ]+)?\s*;$|^namespace\s+[\w.]+\s*;?$|^extern\s+alias\s+\w+\s*;$/,
|
|
8456
|
+
jvm: /^(?:import|package)\s+(?:static\s+)?[\w.*`]+(?:\s+as\s+\w+)?\s*;?$/,
|
|
8457
|
+
js: /^import\s+(?:type\s+)?(?:[\w*{}\s,$]+\s+from\s+)?['"][^'"]+['"]\s*(?:(?:with|assert)\s*\{[^}]*\})?\s*;?$|^export\s+(?:type\s+)?(?:\*(?:\s+as\s+\w+)?|\{[^}]*\})\s+from\s+['"][^'"]+['"]\s*;?$|^(?:const|let|var)\s+[\w${}\s,:]+=\s*require\(\s*['"][^'"]+['"]\s*\)\s*;?$/,
|
|
8458
|
+
py: /^(?:from\s+[\w.]+\s+)?import\s+[\w.*, ]+(?:\s+as\s+\w+)?$|^from\s+[\w.]+\s+import\s+\($/,
|
|
8459
|
+
go: /^package\s+\w+$|^import\s+(?:[\w.]+\s+)?"[^"]+"$/,
|
|
8460
|
+
rs: /^(?:pub(?:\([^)]*\))?\s+)?use\s+[^;]+;$|^(?:pub(?:\([^)]*\))?\s+)?mod\s+\w+\s*;$|^extern\s+crate\s+\w+(?:\s+as\s+\w+)?\s*;$/,
|
|
8461
|
+
php: /^(?:namespace|use)\s+[\w\\]+(?:\s+as\s+\w+)?\s*;$|^(?:require|include)(?:_once)?\b.*;$/,
|
|
8462
|
+
rb: /^require(?:_relative)?\s*\(?\s*['"][^'"]+['"]\s*\)?$/,
|
|
8463
|
+
swift: /^(?:@testable\s+)?import\s+(?:\w+\s+)?[\w.]+$/
|
|
8464
|
+
};
|
|
8465
|
+
var IMPORT_BLOCK = {
|
|
8466
|
+
js: [/^(?:import|export)\s+(?:type\s+)?\{[^}]*$/, /\}/],
|
|
8467
|
+
py: [/^from\s+[\w.]+\s+import\s+\($/, /\)\s*$/],
|
|
8468
|
+
go: [/^import\s+\($/, /^\)$/],
|
|
8469
|
+
rs: [/^(?:pub(?:\([^)]*\))?\s+)?use\s+[^;]*\{[^}]*$/, /\}\s*;\s*$/]
|
|
8470
|
+
};
|
|
8471
|
+
var ENUM_DECL = /^(?:(?:public|private|protected|internal|export|declare|const|pub(?:\([^)]*\))?|sealed|abstract|static|final|open|indirect|fileprivate)\s+)*enum\s+(?:class\s+)?[A-Za-z_]\w*/;
|
|
8472
|
+
var PY_ENUM = /^class\s+\w+\s*\([^)]*\b(?:Enum|IntEnum|StrEnum|Flag|IntFlag)\b[^)]*\)\s*:/;
|
|
8473
|
+
function meaningful(text3, path) {
|
|
8474
|
+
const lang = LANG[extensionOf(path)];
|
|
8093
8475
|
const out = [];
|
|
8094
8476
|
let inBlock = false;
|
|
8477
|
+
let importEnd = null;
|
|
8478
|
+
let enumDepth = -1;
|
|
8479
|
+
let pyEnumIndent = -1;
|
|
8095
8480
|
text3.split(/\r\n|\r|\n/).forEach((raw, i) => {
|
|
8096
8481
|
let t2 = raw.trim();
|
|
8097
8482
|
if (inBlock) {
|
|
@@ -8102,7 +8487,38 @@ function meaningful(text3) {
|
|
|
8102
8487
|
if (!t2.includes("*/")) inBlock = true;
|
|
8103
8488
|
return;
|
|
8104
8489
|
}
|
|
8490
|
+
if (pyEnumIndent >= 0) {
|
|
8491
|
+
if (!t2 || raw.search(/\S/) > pyEnumIndent) return;
|
|
8492
|
+
pyEnumIndent = -1;
|
|
8493
|
+
}
|
|
8494
|
+
if (importEnd) {
|
|
8495
|
+
if (importEnd.test(t2)) importEnd = null;
|
|
8496
|
+
return;
|
|
8497
|
+
}
|
|
8498
|
+
if (enumDepth >= 0) {
|
|
8499
|
+
const opened = enumDepth > 0 || t2.includes("{");
|
|
8500
|
+
enumDepth += (t2.match(/\{/g) ?? []).length - (t2.match(/\}/g) ?? []).length;
|
|
8501
|
+
if (opened && enumDepth <= 0) enumDepth = -1;
|
|
8502
|
+
return;
|
|
8503
|
+
}
|
|
8105
8504
|
if (!t2 || t2.startsWith("//") || t2.startsWith("#") || t2.startsWith("*")) return;
|
|
8505
|
+
if (lang) {
|
|
8506
|
+
if (IMPORT_LINE[lang].test(t2)) return;
|
|
8507
|
+
const block = IMPORT_BLOCK[lang];
|
|
8508
|
+
if (block && block[0].test(t2)) {
|
|
8509
|
+
importEnd = block[1];
|
|
8510
|
+
return;
|
|
8511
|
+
}
|
|
8512
|
+
if (lang === "py" && PY_ENUM.test(t2)) {
|
|
8513
|
+
pyEnumIndent = raw.search(/\S/);
|
|
8514
|
+
return;
|
|
8515
|
+
}
|
|
8516
|
+
if (lang !== "py" && lang !== "rb" && lang !== "go" && ENUM_DECL.test(t2)) {
|
|
8517
|
+
const depth = (t2.match(/\{/g) ?? []).length - (t2.match(/\}/g) ?? []).length;
|
|
8518
|
+
enumDepth = t2.includes("{") && depth <= 0 ? -1 : depth;
|
|
8519
|
+
return;
|
|
8520
|
+
}
|
|
8521
|
+
}
|
|
8106
8522
|
t2 = t2.replace(/\s+/g, " ");
|
|
8107
8523
|
if (t2.replace(/[\s{}()[\];,]/g, "").length <= 2) return;
|
|
8108
8524
|
out.push({ norm: t2, line: i + 1 });
|
|
@@ -8110,7 +8526,7 @@ function meaningful(text3) {
|
|
|
8110
8526
|
return out;
|
|
8111
8527
|
}
|
|
8112
8528
|
function checkDuplicateCode(docs) {
|
|
8113
|
-
const files = docs.filter((d) => isCodePath(d.path) && !d.text.split("\n").some((l) => l.length > 500)).sort((a, b) => a.path < b.path ? -1 : 1).map((d) => ({ path: d.path, text: d.text, lines: meaningful(d.text) }));
|
|
8529
|
+
const files = docs.filter((d) => isCodePath(d.path) && !d.text.split("\n").some((l) => l.length > 500)).sort((a, b) => a.path < b.path ? -1 : 1).map((d) => ({ path: d.path, text: d.text, lines: meaningful(d.text, d.path) }));
|
|
8114
8530
|
const codeLines = files.reduce((n, f) => n + f.lines.length, 0);
|
|
8115
8531
|
const keyAt = (f, i) => i + DUP_WINDOW <= f.lines.length ? f.lines.slice(i, i + DUP_WINDOW).map((l) => l.norm).join("\n") : null;
|
|
8116
8532
|
const windows = /* @__PURE__ */ new Map();
|
|
@@ -8124,7 +8540,7 @@ function checkDuplicateCode(docs) {
|
|
|
8124
8540
|
});
|
|
8125
8541
|
const covered = /* @__PURE__ */ new Set();
|
|
8126
8542
|
const dupLines = /* @__PURE__ */ new Set();
|
|
8127
|
-
const
|
|
8543
|
+
const groups = [];
|
|
8128
8544
|
const starts = [...windows.entries()].filter(([, occ]) => occ.length > 1).sort(([, a], [, b]) => a[0].f - b[0].f || a[0].i - b[0].i);
|
|
8129
8545
|
for (const [, occ] of starts) {
|
|
8130
8546
|
if (covered.has(`${occ[0].f}:${occ[0].i}`)) continue;
|
|
@@ -8136,27 +8552,53 @@ function checkDuplicateCode(docs) {
|
|
|
8136
8552
|
len++;
|
|
8137
8553
|
}
|
|
8138
8554
|
for (const o of occ) for (let k = 0; k <= len - DUP_WINDOW; k++) covered.add(`${o.f}:${o.i + k}`);
|
|
8139
|
-
const
|
|
8140
|
-
|
|
8141
|
-
|
|
8142
|
-
|
|
8555
|
+
for (const o of occ) for (let k = 0; k < len; k++) dupLines.add(`${o.f}:${o.i + k}`);
|
|
8556
|
+
groups.push(occ.map((o) => ({ f: o.f, from: o.i, to: o.i + len - 1 })));
|
|
8557
|
+
}
|
|
8558
|
+
const overlaps = (a, b) => a.f === b.f && a.from <= b.to && b.from <= a.to;
|
|
8559
|
+
const clusters = [];
|
|
8560
|
+
for (const g of groups) {
|
|
8561
|
+
const hits = clusters.filter((c) => c.blocks.some((b) => g.some((x) => overlaps(b, x))));
|
|
8562
|
+
const target = hits[0] ?? { blocks: [], merged: false };
|
|
8563
|
+
if (!hits.length) clusters.push(target);
|
|
8564
|
+
for (const other of hits.slice(1)) {
|
|
8565
|
+
target.blocks.push(...other.blocks);
|
|
8566
|
+
clusters.splice(clusters.indexOf(other), 1);
|
|
8567
|
+
}
|
|
8568
|
+
if (hits.length) target.merged = true;
|
|
8569
|
+
target.blocks.push(...g);
|
|
8570
|
+
const merged = [];
|
|
8571
|
+
for (const b of [...target.blocks].sort((x, y) => x.f - y.f || x.from - y.from)) {
|
|
8572
|
+
const last = merged[merged.length - 1];
|
|
8573
|
+
if (last && last.f === b.f && b.from <= last.to) last.to = Math.max(last.to, b.to);
|
|
8574
|
+
else merged.push({ ...b });
|
|
8575
|
+
}
|
|
8576
|
+
target.blocks = merged;
|
|
8577
|
+
}
|
|
8578
|
+
const findings = [];
|
|
8579
|
+
for (const c of clusters) {
|
|
8580
|
+
if (findings.length >= MAX_FINDINGS) break;
|
|
8581
|
+
const locs = c.blocks.map((b) => {
|
|
8582
|
+
const f = files[b.f];
|
|
8583
|
+
return { path: f.path, line: f.lines[b.from].line, column: 1, end: f.lines[b.to].line };
|
|
8584
|
+
});
|
|
8585
|
+
const first = c.blocks[0];
|
|
8586
|
+
const len = first.to - first.from + 1;
|
|
8587
|
+
const head = locs[0];
|
|
8588
|
+
const uneven = c.merged && c.blocks.some((b) => b.to - b.from !== first.to - first.from);
|
|
8589
|
+
findings.push({
|
|
8590
|
+
id: `DUP-001-${fnv1a(locs.map((l) => `${l.path}:${l.line}`).join("|") + `:${len}`)}`,
|
|
8591
|
+
ruleId: "DUP-001",
|
|
8592
|
+
severity: "low",
|
|
8593
|
+
confidence: "high",
|
|
8594
|
+
messageKey: uneven ? "dup001.blockOverlap" : "dup001.block",
|
|
8595
|
+
params: { lines: len, copies: locs.length, range: `${head.line}-${head.end}` },
|
|
8596
|
+
location: { path: head.path, line: head.line, column: 1 },
|
|
8597
|
+
evidence: truncate(maskSecrets(files[first.f].lines[first.from].norm)),
|
|
8598
|
+
recommendation: { messageKey: "dup001.fix", params: { copies: locs.length } },
|
|
8599
|
+
verification: { messageKey: "dup.verify", params: { path: head.path, line: head.line } },
|
|
8600
|
+
related: locs.slice(1).map(({ path, line, column }) => ({ path, line, column }))
|
|
8143
8601
|
});
|
|
8144
|
-
const first = locs[0];
|
|
8145
|
-
if (findings.length < MAX_FINDINGS) {
|
|
8146
|
-
findings.push({
|
|
8147
|
-
id: `DUP-001-${fnv1a(locs.map((l) => `${l.path}:${l.line}`).join("|") + `:${len}`)}`,
|
|
8148
|
-
ruleId: "DUP-001",
|
|
8149
|
-
severity: "low",
|
|
8150
|
-
confidence: "high",
|
|
8151
|
-
messageKey: "dup001.block",
|
|
8152
|
-
params: { lines: len, copies: locs.length, range: `${first.line}-${first.end}` },
|
|
8153
|
-
location: { path: first.path, line: first.line, column: 1 },
|
|
8154
|
-
evidence: truncate(maskSecrets(files[occ[0].f].lines[occ[0].i].norm)),
|
|
8155
|
-
recommendation: { messageKey: "dup001.fix", params: { copies: locs.length } },
|
|
8156
|
-
verification: { messageKey: "dup.verify", params: { path: first.path, line: first.line } },
|
|
8157
|
-
related: locs.slice(1).map(({ path, line, column }) => ({ path, line, column }))
|
|
8158
|
-
});
|
|
8159
|
-
}
|
|
8160
8602
|
}
|
|
8161
8603
|
return {
|
|
8162
8604
|
metrics: { codeLines, duplicatedLines: dupLines.size },
|
|
@@ -8167,7 +8609,7 @@ function checkDuplicateCode(docs) {
|
|
|
8167
8609
|
inspected: files.length,
|
|
8168
8610
|
findings,
|
|
8169
8611
|
unverified: [],
|
|
8170
|
-
reason: files.length ?
|
|
8612
|
+
reason: files.length ? clusters.length > MAX_FINDINGS ? "dup.reason.capped" : null : "dup.reason.noCode",
|
|
8171
8613
|
scopeKey: "dup001.scope"
|
|
8172
8614
|
}
|
|
8173
8615
|
};
|
|
@@ -8391,7 +8833,7 @@ function checkArchitecture(docs, index2) {
|
|
|
8391
8833
|
});
|
|
8392
8834
|
}
|
|
8393
8835
|
const none = mods.length === 0;
|
|
8394
|
-
const result = (ruleId, findings, total,
|
|
8836
|
+
const result = (ruleId, findings, total, scopeKey, extra) => ({
|
|
8395
8837
|
ruleId,
|
|
8396
8838
|
status: none ? "skipped" : findings.length ? "fail" : ruleId === "ARC-002" && unverified.length ? "partial" : "pass",
|
|
8397
8839
|
eligible: mods.length,
|
|
@@ -8399,7 +8841,7 @@ function checkArchitecture(docs, index2) {
|
|
|
8399
8841
|
findings,
|
|
8400
8842
|
unverified: ruleId === "ARC-002" ? unverified : [],
|
|
8401
8843
|
reason: none ? "arc.reason.noCode" : total > MAX_FINDINGS2 ? "arc.reason.capped" : extra ?? null,
|
|
8402
|
-
scopeKey
|
|
8844
|
+
scopeKey
|
|
8403
8845
|
});
|
|
8404
8846
|
return {
|
|
8405
8847
|
metrics: { modules: mods.length, imports, inCycles },
|
|
@@ -8422,14 +8864,14 @@ var CI = [
|
|
|
8422
8864
|
/^\.buildkite\//,
|
|
8423
8865
|
/^cloudbuild\.ya?ml$/
|
|
8424
8866
|
];
|
|
8425
|
-
var
|
|
8867
|
+
var LOCKFILES2 = ["package-lock.json", "npm-shrinkwrap.json", "pnpm-lock.yaml", "yarn.lock", "bun.lock", "bun.lockb"];
|
|
8426
8868
|
var TEST_FILE = /(^|\/)(__tests__|tests?|spec|e2e)\/|\.(test|spec)\.[a-z]+$|(^|\/)test_[^/]+\.py$|_test\.(go|py)$|Tests?\.(java|kt|cs|swift)$/;
|
|
8427
8869
|
var NPM_PLACEHOLDER = /no test specified/i;
|
|
8428
8870
|
function isDockerfilePath(path) {
|
|
8429
8871
|
return /(^|\/)(Dockerfile|Containerfile)(\.[^/]+)?$|\.(Dockerfile|dockerfile)$/.test(path);
|
|
8430
8872
|
}
|
|
8431
8873
|
var PROJECT_LOCATION = { path: ".", line: 0, column: 0 };
|
|
8432
|
-
var
|
|
8874
|
+
var dirOf2 = (p) => p.includes("/") ? p.slice(0, p.lastIndexOf("/") + 1) : "";
|
|
8433
8875
|
function checkDeploy(docs, index2) {
|
|
8434
8876
|
const files = [...index2.files].filter((p) => !/(^|\/)node_modules\//.test(p));
|
|
8435
8877
|
const hasCode = files.some((p) => isCodePath(p) || /(^|\/)(package\.json|pyproject\.toml|go\.mod|Cargo\.toml|requirements\.txt|pom\.xml|build\.gradle(\.kts)?|Gemfile|composer\.json)$/.test(p));
|
|
@@ -8439,7 +8881,7 @@ function checkDeploy(docs, index2) {
|
|
|
8439
8881
|
let passed = 0;
|
|
8440
8882
|
const found = { "OPS-001": [], "OPS-002": [], "OPS-003": [] };
|
|
8441
8883
|
const applied = { "OPS-001": 0, "OPS-002": 0, "OPS-003": 0 };
|
|
8442
|
-
const check = (ruleId, ok, key, at, params = {}, evidence = "",
|
|
8884
|
+
const check = (ruleId, ok, key, at, params = {}, evidence = "", severity2 = "medium") => {
|
|
8443
8885
|
checks++;
|
|
8444
8886
|
applied[ruleId]++;
|
|
8445
8887
|
if (ok) {
|
|
@@ -8449,7 +8891,7 @@ function checkDeploy(docs, index2) {
|
|
|
8449
8891
|
found[ruleId].push({
|
|
8450
8892
|
id: `${ruleId}-${fnv1a(`${key}:${at.path}:${at.line}:${JSON.stringify(params)}`)}`,
|
|
8451
8893
|
ruleId,
|
|
8452
|
-
severity,
|
|
8894
|
+
severity: severity2,
|
|
8453
8895
|
confidence: "high",
|
|
8454
8896
|
messageKey: key,
|
|
8455
8897
|
params,
|
|
@@ -8460,7 +8902,7 @@ function checkDeploy(docs, index2) {
|
|
|
8460
8902
|
});
|
|
8461
8903
|
};
|
|
8462
8904
|
if (project) check("OPS-001", files.some((p) => CI.some((re) => re.test(p))), "ops001.noCi", PROJECT_LOCATION);
|
|
8463
|
-
if (index2.files.has("package.json")) check("OPS-001",
|
|
8905
|
+
if (index2.files.has("package.json")) check("OPS-001", LOCKFILES2.some((l) => index2.files.has(l)), "ops001.noLockfile", { path: "package.json", line: 1, column: 1 }, {}, "", "low");
|
|
8464
8906
|
const manifests = docs.filter((d) => /(^|\/)package\.json$/.test(d.path) && !d.path.includes("node_modules/")).sort((a, b) => a.path.length - b.path.length || (a.path < b.path ? -1 : 1));
|
|
8465
8907
|
const scripts = manifests.map((d) => {
|
|
8466
8908
|
try {
|
|
@@ -8515,10 +8957,10 @@ function checkDeploy(docs, index2) {
|
|
|
8515
8957
|
const u = lastUser;
|
|
8516
8958
|
const root2 = !u || /^(root|0)(:|$)/.test(u.value);
|
|
8517
8959
|
check("OPS-003", !root2, "ops003.root", { path: d.path, line: u?.line ?? 1, column: 1 }, {}, u ? lines[u.line - 1] : "");
|
|
8518
|
-
if (index2.listComplete || index2.files.has(`${
|
|
8519
|
-
check("OPS-003", index2.files.has(`${
|
|
8960
|
+
if (index2.listComplete || index2.files.has(`${dirOf2(d.path)}.dockerignore`))
|
|
8961
|
+
check("OPS-003", index2.files.has(`${dirOf2(d.path)}.dockerignore`) || index2.files.has(".dockerignore"), "ops003.noIgnore", { path: d.path, line: 1, column: 1 }, { path: d.path }, "", "low");
|
|
8520
8962
|
}
|
|
8521
|
-
const result = (ruleId,
|
|
8963
|
+
const result = (ruleId, scopeKey, noneReason) => {
|
|
8522
8964
|
const n = applied[ruleId];
|
|
8523
8965
|
const findings = found[ruleId];
|
|
8524
8966
|
return {
|
|
@@ -8529,7 +8971,7 @@ function checkDeploy(docs, index2) {
|
|
|
8529
8971
|
findings,
|
|
8530
8972
|
unverified: [],
|
|
8531
8973
|
reason: n === 0 ? noneReason : index2.listComplete ? null : "ops.reason.listIncomplete",
|
|
8532
|
-
scopeKey
|
|
8974
|
+
scopeKey
|
|
8533
8975
|
};
|
|
8534
8976
|
};
|
|
8535
8977
|
return {
|
|
@@ -8739,13 +9181,19 @@ function checkHeadings(docs, eligible, extraPartial) {
|
|
|
8739
9181
|
// ../core/src/rules/md002.ts
|
|
8740
9182
|
var MD002 = "MD-002";
|
|
8741
9183
|
var MD002_MIN_CHARS = 40;
|
|
8742
|
-
var PROTECTED_RE = /\b(approv\w*|deploy\w*|release|delet\w*|remov\w*|test\w*|confirm\w
|
|
9184
|
+
var PROTECTED_RE = /\b(approv\w*|deploy\w*|release|delet\w*|remov\w*|test\w*|confirm\w*|secur\w*|privacy|secrets?|credentials?|passwords?|api[ -]?keys?|never|must not|do not|don't|shall not|forbidden|prohibited)\b|승인|배포|삭제|테스트|확인|보안|개인정보|비밀|자격 ?증명|금지|절대|지 않|지 마|承認|デプロイ|削除|テスト|確認|セキュリティ|個人情報|秘密|認証情報|パスワード|禁止|しない|しません|ないでください|批准|审批|部署|删除|测试|确认|安全|隐私|密钥|凭据|密码|不得|不要|切勿|不能|不可/i;
|
|
8743
9185
|
function isProtectedInstruction(text3) {
|
|
8744
9186
|
return PROTECTED_RE.test(text3);
|
|
8745
9187
|
}
|
|
8746
|
-
|
|
9188
|
+
var NOT_PROJECT_DOCS = /(^|\/)(fixtures?|__fixtures__|testdata|test-data|examples?|samples?|vendor|third[_-]party)\//i;
|
|
9189
|
+
var dirOf3 = (p) => p.includes("/") ? p.slice(0, p.lastIndexOf("/")) : "";
|
|
9190
|
+
var nameOf = (p) => p.slice(p.lastIndexOf("/") + 1);
|
|
9191
|
+
var nested = (a, b) => nameOf(a) === nameOf(b) && dirOf3(a) !== dirOf3(b) && (dirOf3(a) === "" || `${dirOf3(b)}/`.startsWith(`${dirOf3(a)}/`));
|
|
9192
|
+
function checkDuplicates(docs, eligible, extraPartial, minChars = MD002_MIN_CHARS, context) {
|
|
9193
|
+
const inContext = (path) => !context || context.has(path);
|
|
8747
9194
|
const groups = /* @__PURE__ */ new Map();
|
|
8748
9195
|
for (const doc of [...docs].sort(byPath)) {
|
|
9196
|
+
if (!inContext(doc.path) && NOT_PROJECT_DOCS.test(doc.path)) continue;
|
|
8749
9197
|
walk(parseTree(doc.text), (node2) => {
|
|
8750
9198
|
if (node2.type !== "paragraph" || !node2.position) return;
|
|
8751
9199
|
const start = node2.position.start.offset;
|
|
@@ -8760,24 +9208,28 @@ function checkDuplicates(docs, eligible, extraPartial, minChars = MD002_MIN_CHAR
|
|
|
8760
9208
|
});
|
|
8761
9209
|
}
|
|
8762
9210
|
const findings = [];
|
|
8763
|
-
for (const [key,
|
|
8764
|
-
if (
|
|
9211
|
+
for (const [key, all2] of groups) {
|
|
9212
|
+
if (all2.length < 2) continue;
|
|
9213
|
+
const list2 = [...all2.filter((l) => inContext(l.location.path)), ...all2.filter((l) => !inContext(l.location.path))];
|
|
8765
9214
|
const [first, ...rest] = list2;
|
|
8766
|
-
const
|
|
9215
|
+
const instruction = list2.filter((l) => inContext(l.location.path)).map((l) => l.location.path);
|
|
9216
|
+
if (instruction.length === 0) continue;
|
|
8767
9217
|
const crossFile = rest.some((r) => r.location.path !== first.location.path);
|
|
9218
|
+
const messageKey = instruction.length >= 2 ? crossFile ? "md002.duplicateAcrossFiles" : "md002.duplicateInFile" : "md002.duplicateWithDocs";
|
|
9219
|
+
const fix = isProtectedInstruction(key) ? "md002.fix.protected" : instruction.length < 2 ? "md002.fix.docs" : instruction.some((a) => instruction.some((b) => nested(a, b))) ? "md002.fix.nested" : "md002.fix.review";
|
|
8768
9220
|
findings.push({
|
|
8769
9221
|
id: `${MD002}-${fnv1a(list2.map((l) => `${l.location.path}:${l.location.line}`).join("|") + key.length)}`,
|
|
8770
9222
|
ruleId: MD002,
|
|
8771
9223
|
severity: "info",
|
|
8772
9224
|
confidence: "high",
|
|
8773
|
-
messageKey
|
|
9225
|
+
messageKey,
|
|
8774
9226
|
params: {
|
|
8775
9227
|
count: list2.length,
|
|
8776
9228
|
others: rest.map((r) => `${r.location.path}:${r.location.line}`).join(", ")
|
|
8777
9229
|
},
|
|
8778
9230
|
location: first.location,
|
|
8779
9231
|
evidence: truncate(maskSecrets(key)),
|
|
8780
|
-
recommendation: { messageKey:
|
|
9232
|
+
recommendation: { messageKey: fix, params: {} },
|
|
8781
9233
|
verification: { messageKey: "md002.verify", params: {} },
|
|
8782
9234
|
related: rest.map((r) => r.location)
|
|
8783
9235
|
});
|
|
@@ -8794,7 +9246,7 @@ function checkDuplicates(docs, eligible, extraPartial, minChars = MD002_MIN_CHAR
|
|
|
8794
9246
|
findings,
|
|
8795
9247
|
unverified: [],
|
|
8796
9248
|
reason: eligible === 0 ? "md003.reason.noMarkdown" : incomplete ? "md003.reason.partial" : null,
|
|
8797
|
-
scopeKey: "md002.scope.m2"
|
|
9249
|
+
scopeKey: context ? "md002.scope.all" : "md002.scope.m2"
|
|
8798
9250
|
};
|
|
8799
9251
|
}
|
|
8800
9252
|
|
|
@@ -8823,7 +9275,7 @@ function estimateTokens(text3) {
|
|
|
8823
9275
|
}
|
|
8824
9276
|
|
|
8825
9277
|
// ../core/src/ai/agents.ts
|
|
8826
|
-
var IMPORT_RE = /(^|[\s(])@([^\s`'"()<>[\]{}]+)/g;
|
|
9278
|
+
var IMPORT_RE = /(^|[\s(])@([^\s`'"()<>[\]{}*?]+)(?![^\s`'"()<>[\]{}])/g;
|
|
8827
9279
|
function extractImports2(text3) {
|
|
8828
9280
|
const out = [];
|
|
8829
9281
|
walk(parseTree(text3), (node2) => {
|
|
@@ -8852,6 +9304,37 @@ function hasPathsFrontMatter(text3) {
|
|
|
8852
9304
|
const fm = blankFrontMatter(text3).frontMatter;
|
|
8853
9305
|
return fm !== null && /^paths\s*:/m.test(fm);
|
|
8854
9306
|
}
|
|
9307
|
+
function frontMatterFields2(text3) {
|
|
9308
|
+
const fm = blankFrontMatter(text3).frontMatter;
|
|
9309
|
+
if (fm === null) return null;
|
|
9310
|
+
const out = {};
|
|
9311
|
+
for (const line of fm.split(/\r?\n/)) {
|
|
9312
|
+
const m = /^([A-Za-z_][\w-]*)\s*:\s*(.*)$/.exec(line);
|
|
9313
|
+
if (m) out[m[1]] = m[2].trim().replace(/^(["'])(.*)\1$/, "$2");
|
|
9314
|
+
}
|
|
9315
|
+
return out;
|
|
9316
|
+
}
|
|
9317
|
+
function stripBlockHtmlComments(text3) {
|
|
9318
|
+
const out = [];
|
|
9319
|
+
let fence = null;
|
|
9320
|
+
let inComment = false;
|
|
9321
|
+
for (const line of text3.split("\n")) {
|
|
9322
|
+
const t2 = line.trim();
|
|
9323
|
+
const f = /^(```|~~~)/.exec(t2);
|
|
9324
|
+
if (!inComment && f) fence = fence === null ? f[1] : t2.startsWith(fence) ? null : fence;
|
|
9325
|
+
if (fence !== null || !inComment && !t2.startsWith("<!--")) {
|
|
9326
|
+
out.push(line);
|
|
9327
|
+
continue;
|
|
9328
|
+
}
|
|
9329
|
+
inComment = true;
|
|
9330
|
+
if (t2.includes("-->")) {
|
|
9331
|
+
inComment = false;
|
|
9332
|
+
const rest = t2.slice(t2.lastIndexOf("-->") + 3).trim();
|
|
9333
|
+
if (rest) out.push(rest);
|
|
9334
|
+
}
|
|
9335
|
+
}
|
|
9336
|
+
return out.join("\n");
|
|
9337
|
+
}
|
|
8855
9338
|
function collectAgentDocs(input) {
|
|
8856
9339
|
const byPath2 = new Map(input.docs.map((d) => [d.path, d]));
|
|
8857
9340
|
const result = /* @__PURE__ */ new Map();
|
|
@@ -8863,23 +9346,37 @@ function collectAgentDocs(input) {
|
|
|
8863
9346
|
return;
|
|
8864
9347
|
}
|
|
8865
9348
|
const doc = byPath2.get(path);
|
|
8866
|
-
const
|
|
9349
|
+
const text3 = doc ? doc.text : null;
|
|
9350
|
+
const bytes = text3 !== null ? new TextEncoder().encode(text3).length : null;
|
|
9351
|
+
const claudeFile2 = platforms.includes("claude") && !/AGENTS\.md$/.test(path);
|
|
9352
|
+
const stripped = text3 !== null && claudeFile2 ? stripBlockHtmlComments(text3) : null;
|
|
9353
|
+
const commentFree = stripped !== null && stripped !== text3 ? { tokens: estimateTokens(stripped), bytes: new TextEncoder().encode(stripped).length } : null;
|
|
9354
|
+
const ruleFile = /\.mdc$|\.instructions\.md$|(^|\/)\.(agents?|cursor|grok|claude)\/rules\//.test(path);
|
|
8867
9355
|
const supportsImports = platforms.length === 0 || platforms.some((p) => PROFILES[p].maxImportDepth !== null);
|
|
8868
9356
|
const imports = doc && supportsImports ? extractImports2(doc.text).map((i) => ({ ...i, ...resolveImport2(path, i.raw, input) })) : [];
|
|
8869
9357
|
result.set(path, {
|
|
8870
9358
|
path,
|
|
8871
9359
|
platforms: [...platforms],
|
|
8872
9360
|
read: !!doc,
|
|
8873
|
-
empty:
|
|
9361
|
+
empty: text3 !== null ? text3.trim() === "" : null,
|
|
8874
9362
|
bytes,
|
|
8875
|
-
tokens:
|
|
9363
|
+
tokens: text3 !== null ? estimateTokens(text3) : null,
|
|
9364
|
+
lines: doc ? splitLines(doc.text).length : null,
|
|
8876
9365
|
conditional: !!doc && platforms.includes("claude") && /(^|\/)\.claude\/rules\//.test(path) && hasPathsFrontMatter(doc.text),
|
|
9366
|
+
frontMatter: doc && ruleFile ? frontMatterFields2(doc.text) : null,
|
|
9367
|
+
commentFree,
|
|
8877
9368
|
imports
|
|
8878
9369
|
});
|
|
8879
9370
|
queue.push(path);
|
|
8880
9371
|
};
|
|
9372
|
+
const claudeFile = /(^|\/)(\.claude\/)?CLAUDE(\.local)?\.md$/;
|
|
9373
|
+
const claudeDirs = new Set([...input.files].filter((p) => claudeFile.test(p)).map((p) => p.replace(claudeFile, "")));
|
|
8881
9374
|
for (const path of [...input.files].sort()) {
|
|
8882
|
-
|
|
9375
|
+
let platforms = instructionPlatforms(path);
|
|
9376
|
+
if (/(^|\/)AGENTS\.md$/.test(path) && !/(^|\/)\.claude\/AGENTS\.md$/.test(path)) {
|
|
9377
|
+
const dir = path.replace(/(^|\/)AGENTS\.md$/, "");
|
|
9378
|
+
if (chainDirs(dir).some((d) => claudeDirs.has(d))) platforms = platforms.filter((p) => p !== "claude");
|
|
9379
|
+
}
|
|
8883
9380
|
if (platforms.length > 0) add(path, platforms);
|
|
8884
9381
|
}
|
|
8885
9382
|
while (queue.length > 0) {
|
|
@@ -8895,20 +9392,43 @@ function chainDirs(workdir) {
|
|
|
8895
9392
|
for (let i = 1; i <= parts.length; i++) out.push(parts.slice(0, i).join("/"));
|
|
8896
9393
|
return out;
|
|
8897
9394
|
}
|
|
8898
|
-
var
|
|
9395
|
+
var join2 = (dir, name) => dir === "" ? name : `${dir}/${name}`;
|
|
8899
9396
|
function activeContext(platform, workdir, docs) {
|
|
8900
9397
|
const profile = PROFILES[platform];
|
|
8901
9398
|
const byPath2 = new Map(docs.map((d) => [d.path, d]));
|
|
8902
9399
|
const files = [];
|
|
8903
9400
|
const seen = /* @__PURE__ */ new Set();
|
|
8904
9401
|
const conditional = [];
|
|
9402
|
+
const conditionalLoads = [];
|
|
8905
9403
|
const notes = [...profile.unseen];
|
|
8906
9404
|
const push2 = (doc, via, from, depth) => {
|
|
8907
9405
|
if (seen.has(doc.path)) return false;
|
|
8908
9406
|
seen.add(doc.path);
|
|
8909
|
-
|
|
9407
|
+
const size = platform === "claude" && doc.commentFree ? doc.commentFree : doc;
|
|
9408
|
+
files.push({ path: doc.path, via, from, depth, tokens: size.tokens, bytes: size.bytes, truncated: false });
|
|
8910
9409
|
return true;
|
|
8911
9410
|
};
|
|
9411
|
+
const later = (doc, load, condition) => {
|
|
9412
|
+
if (seen.has(doc.path)) return;
|
|
9413
|
+
seen.add(doc.path);
|
|
9414
|
+
conditional.push(doc.path);
|
|
9415
|
+
conditionalLoads.push({ path: doc.path, load, condition: condition || null });
|
|
9416
|
+
};
|
|
9417
|
+
const note = (key) => {
|
|
9418
|
+
if (!notes.includes(key)) notes.push(key);
|
|
9419
|
+
};
|
|
9420
|
+
const under = (dir, rel, ext, nested2 = false) => {
|
|
9421
|
+
const prefix = join2(dir, rel);
|
|
9422
|
+
return docs.filter((d) => {
|
|
9423
|
+
if (!d.path.startsWith(prefix) || !d.platforms.includes(platform)) return false;
|
|
9424
|
+
const rest = d.path.slice(prefix.length);
|
|
9425
|
+
return ext.test(rest) && (nested2 || !rest.includes("/"));
|
|
9426
|
+
});
|
|
9427
|
+
};
|
|
9428
|
+
const hier = (path) => {
|
|
9429
|
+
const d = byPath2.get(path);
|
|
9430
|
+
if (d && d.platforms.includes(platform) && d.empty !== true) push2(d, "hierarchy", null, 0);
|
|
9431
|
+
};
|
|
8912
9432
|
const followImports = (doc, depth) => {
|
|
8913
9433
|
const max = profile.maxImportDepth;
|
|
8914
9434
|
if (max === null) return;
|
|
@@ -8923,24 +9443,66 @@ function activeContext(platform, workdir, docs) {
|
|
|
8923
9443
|
if (push2(target, "import", doc.path, depth + 1)) followImports(target, depth + 1);
|
|
8924
9444
|
}
|
|
8925
9445
|
};
|
|
9446
|
+
const claudeFiles = ["CLAUDE.md", ".claude/CLAUDE.md", "CLAUDE.local.md"];
|
|
9447
|
+
const claudeUsesAgents = platform === "claude" && !chainDirs(workdir).some((dir) => claudeFiles.some((n) => byPath2.has(join2(dir, n)))) && chainDirs(workdir).some((dir) => ["AGENTS.md", ".claude/AGENTS.md"].some((n) => byPath2.has(join2(dir, n))));
|
|
9448
|
+
if (claudeUsesAgents) notes.push("ai.note.claudeAgentsFallback");
|
|
8926
9449
|
for (const dir of chainDirs(workdir)) {
|
|
8927
9450
|
if (platform === "codex") {
|
|
8928
|
-
const pick = [
|
|
9451
|
+
const pick = [join2(dir, "AGENTS.override.md"), join2(dir, "AGENTS.md")].map((p) => byPath2.get(p)).find((d) => d && d.platforms.includes("codex") && d.empty !== true);
|
|
8929
9452
|
if (pick) push2(pick, "hierarchy", null, 0);
|
|
8930
9453
|
} else if (platform === "claude") {
|
|
8931
|
-
|
|
8932
|
-
|
|
9454
|
+
const names = claudeUsesAgents ? ["AGENTS.md", ".claude/AGENTS.md"] : ["CLAUDE.md", ".claude/CLAUDE.md", "CLAUDE.local.md"];
|
|
9455
|
+
for (const name of names) {
|
|
9456
|
+
const d = byPath2.get(join2(dir, name));
|
|
8933
9457
|
if (d && d.platforms.includes("claude") && push2(d, "hierarchy", null, 0)) followImports(d, 0);
|
|
8934
9458
|
}
|
|
8935
|
-
const rulesPrefix =
|
|
9459
|
+
const rulesPrefix = join2(dir, ".claude/rules/");
|
|
8936
9460
|
for (const d of docs) {
|
|
8937
9461
|
if (!d.path.startsWith(rulesPrefix) || !d.platforms.includes("claude")) continue;
|
|
8938
|
-
if (d.conditional)
|
|
9462
|
+
if (d.conditional) later(d, "path", d.frontMatter?.paths ?? null);
|
|
8939
9463
|
else if (push2(d, "rule", null, 0)) followImports(d, 0);
|
|
8940
9464
|
}
|
|
8941
|
-
} else {
|
|
8942
|
-
const d = byPath2.get(
|
|
9465
|
+
} else if (platform === "gemini") {
|
|
9466
|
+
const d = byPath2.get(join2(dir, "GEMINI.md"));
|
|
8943
9467
|
if (d && d.platforms.includes("gemini") && push2(d, "hierarchy", null, 0)) followImports(d, 0);
|
|
9468
|
+
} else if (platform === "cursor") {
|
|
9469
|
+
hier(join2(dir, "AGENTS.md"));
|
|
9470
|
+
for (const d of under(dir, ".cursor/rules/", /\.mdc$/, true)) {
|
|
9471
|
+
const fm = d.frontMatter ?? {};
|
|
9472
|
+
if (fm.alwaysApply === "true") push2(d, "rule", null, 0);
|
|
9473
|
+
else if (fm.globs) later(d, "path", fm.globs);
|
|
9474
|
+
else if (fm.description) later(d, "model", null);
|
|
9475
|
+
else later(d, "manual", null);
|
|
9476
|
+
}
|
|
9477
|
+
} else if (platform === "grok") {
|
|
9478
|
+
for (const name of ["AGENTS.md", "Agents.md", "AGENT.md", "CLAUDE.md", "Claude.md", "CLAUDE.local.md"]) hier(join2(dir, name));
|
|
9479
|
+
for (const rel of [".grok/rules/", ".claude/rules/", ".cursor/rules/"]) for (const d of under(dir, rel, /\.md$/)) push2(d, "rule", null, 0);
|
|
9480
|
+
} else if (platform === "antigravity") {
|
|
9481
|
+
for (const name of ["AGENTS.md", "GEMINI.md", ".agents/AGENTS.md", ".agents/GEMINI.md"]) hier(join2(dir, name));
|
|
9482
|
+
for (const rel of [".agents/rules/", ".agent/rules/"]) {
|
|
9483
|
+
for (const d of under(dir, rel, /\.md$/)) {
|
|
9484
|
+
const fm = d.frontMatter ?? {};
|
|
9485
|
+
if (fm.trigger === "always_on") push2(d, "rule", null, 0);
|
|
9486
|
+
else if (fm.trigger === "glob") later(d, "path", fm.globs ?? fm.glob ?? null);
|
|
9487
|
+
else if (fm.trigger === "model_decision") later(d, "model", null);
|
|
9488
|
+
else if (fm.trigger === "manual") later(d, "manual", null);
|
|
9489
|
+
else note("ai.note.ruleIgnored");
|
|
9490
|
+
}
|
|
9491
|
+
}
|
|
9492
|
+
}
|
|
9493
|
+
}
|
|
9494
|
+
if (platform === "copilot") {
|
|
9495
|
+
hier(".github/copilot-instructions.md");
|
|
9496
|
+
const nearest = [...chainDirs(workdir)].reverse().find((dir) => byPath2.get(join2(dir, "AGENTS.md"))?.platforms.includes("copilot"));
|
|
9497
|
+
if (nearest !== void 0) hier(join2(nearest, "AGENTS.md"));
|
|
9498
|
+
hier("CLAUDE.md");
|
|
9499
|
+
hier("GEMINI.md");
|
|
9500
|
+
for (const d of under("", ".github/instructions/", /\.instructions\.md$/, true)) {
|
|
9501
|
+
const applyTo = d.frontMatter?.applyTo;
|
|
9502
|
+
if (applyTo) {
|
|
9503
|
+
later(d, "path", applyTo);
|
|
9504
|
+
note("ai.note.copilotGithub");
|
|
9505
|
+
} else later(d, "manual", null);
|
|
8944
9506
|
}
|
|
8945
9507
|
}
|
|
8946
9508
|
if (platform === "codex" && profile.maxCombinedBytes !== null) {
|
|
@@ -8957,6 +9519,8 @@ function activeContext(platform, workdir, docs) {
|
|
|
8957
9519
|
}
|
|
8958
9520
|
}
|
|
8959
9521
|
}
|
|
9522
|
+
if (platform === "claude" && files.some((f) => f.via === "hierarchy" && (byPath2.get(f.path)?.lines ?? 0) > 200)) notes.push("ai.note.claudeLong");
|
|
9523
|
+
if (platform === "claude" && conditionalLoads.length > 0) notes.push("ai.note.claudeCompaction");
|
|
8960
9524
|
const unknown = files.some((f) => f.tokens === null);
|
|
8961
9525
|
if (unknown) notes.push("ai.note.unknownTokens");
|
|
8962
9526
|
return {
|
|
@@ -8964,6 +9528,7 @@ function activeContext(platform, workdir, docs) {
|
|
|
8964
9528
|
workdir,
|
|
8965
9529
|
files,
|
|
8966
9530
|
conditional,
|
|
9531
|
+
conditionalLoads,
|
|
8967
9532
|
totalTokens: unknown ? null : files.reduce((s, f) => s + (f.tokens ?? 0), 0),
|
|
8968
9533
|
totalBytes: unknown ? null : files.reduce((s, f) => s + (f.bytes ?? 0), 0),
|
|
8969
9534
|
notes
|
|
@@ -8973,8 +9538,8 @@ function candidateWorkdirs(docs) {
|
|
|
8973
9538
|
const dirs = /* @__PURE__ */ new Set([""]);
|
|
8974
9539
|
for (const d of docs) {
|
|
8975
9540
|
if (d.platforms.length === 0) continue;
|
|
8976
|
-
const
|
|
8977
|
-
dirs.add(
|
|
9541
|
+
const m = /(^|\/)\.(claude|cursor|grok|agents?|github)\//.exec(d.path);
|
|
9542
|
+
dirs.add(m ? d.path.slice(0, m.index) : dirname(d.path));
|
|
8978
9543
|
}
|
|
8979
9544
|
return [...dirs].sort();
|
|
8980
9545
|
}
|
|
@@ -9245,7 +9810,10 @@ var ScanCancelledError = class extends Error {
|
|
|
9245
9810
|
super("cancelled");
|
|
9246
9811
|
}
|
|
9247
9812
|
};
|
|
9248
|
-
|
|
9813
|
+
function runScan(adapter, ctx) {
|
|
9814
|
+
return withSharedTrees(() => scanOnce(adapter, ctx));
|
|
9815
|
+
}
|
|
9816
|
+
async function scanOnce(adapter, ctx) {
|
|
9249
9817
|
const now = ctx.now ?? (() => /* @__PURE__ */ new Date());
|
|
9250
9818
|
const startedAt = Date.now();
|
|
9251
9819
|
const check = () => {
|
|
@@ -9314,10 +9882,20 @@ async function runScan(adapter, ctx) {
|
|
|
9314
9882
|
const mdPartial = stoppedEarly || readFailures > 0;
|
|
9315
9883
|
const md001 = checkHeadings(mdDocs, eligibleMd, mdPartial);
|
|
9316
9884
|
const md003 = checkRelativeLinks(mdDocs, { files: listed, directories: adapter.directories, listComplete: adapter.listComplete }, eligibleMd, mdPartial);
|
|
9317
|
-
const
|
|
9885
|
+
const agentDocs = docs.filter((d) => isMarkdownPath(d.path) || /(^|\/)\.cursor\/rules\/.+\.mdc$/.test(d.path));
|
|
9886
|
+
const agents = runAgentRules({ docs: agentDocs, files: listed, listComplete: adapter.listComplete });
|
|
9318
9887
|
const contextPaths = new Set(agents.metrics.docs.map((d) => d.path));
|
|
9319
|
-
const
|
|
9320
|
-
|
|
9888
|
+
const docConsistency = checkDocConsistency({
|
|
9889
|
+
docs: agentDocs.filter((d) => contextPaths.has(d.path) || /(^|\/)readme\.md$/i.test(d.path)),
|
|
9890
|
+
allDocs: docs,
|
|
9891
|
+
files: listed,
|
|
9892
|
+
directories: adapter.directories,
|
|
9893
|
+
listComplete: adapter.listComplete,
|
|
9894
|
+
instruction: contextPaths,
|
|
9895
|
+
ignored: gitignoreMatcher(docs.find((d) => d.path === ".gitignore")?.text ?? null)
|
|
9896
|
+
});
|
|
9897
|
+
ctx.onInstructionTexts?.(agentDocs.filter((d) => contextPaths.has(d.path)).map((d) => ({ path: d.path, text: d.text })));
|
|
9898
|
+
const md002 = checkDuplicates(mdDocs, eligibleMd, mdPartial, MD002_MIN_CHARS, contextPaths);
|
|
9321
9899
|
const deps = extractDependencies(docs);
|
|
9322
9900
|
const dup = checkDuplicateCode(docs);
|
|
9323
9901
|
const arc = checkArchitecture(docs, { files: listed, listComplete: adapter.listComplete });
|
|
@@ -9359,7 +9937,7 @@ async function runScan(adapter, ctx) {
|
|
|
9359
9937
|
input: { kind: adapter.kind, wrapperRoot: adapter.wrapperRoot, github: adapter.github, fingerprint },
|
|
9360
9938
|
options: { profile: ctx.profile },
|
|
9361
9939
|
coverage,
|
|
9362
|
-
rules: [inv001, md001, md002, md003, ...agents.rules, sec001, sec002, ...checkMcp(docs), ...checkDependencies(deps), checkSkills(mdDocs), checkConflicts(mdDocs), dup.rule, ...arc.rules, ...ops.rules],
|
|
9940
|
+
rules: [inv001, md001, md002, md003, ...agents.rules, sec001, sec002, ...checkMcp(docs), ...checkDependencies(deps), checkSkills(mdDocs), checkConflicts(mdDocs), docConsistency, dup.rule, ...arc.rules, ...ops.rules],
|
|
9363
9941
|
metrics: { tokens: agents.metrics, dependencies: deps, duplicates: dup.metrics, architecture: arc.metrics, deploy: ops.metrics }
|
|
9364
9942
|
};
|
|
9365
9943
|
}
|
|
@@ -9382,9 +9960,13 @@ var en2 = {
|
|
|
9382
9960
|
"md002.duplicateAcrossFiles": "The same paragraph appears {count} times. Other copies: {others}.",
|
|
9383
9961
|
"md002.duplicateInFile": "The same paragraph appears {count} times in this file. Other copies: {others}.",
|
|
9384
9962
|
"md002.fix.review": "Review every copy. If the files serve different agents, both may need the text; otherwise keep one copy and reference it.",
|
|
9385
|
-
"md002.fix.protected": "This text contains approval, deployment, deletion or
|
|
9963
|
+
"md002.fix.protected": "This text contains approval, deployment, deletion, test, security or privacy instructions, or a prohibition. Do not remove a copy unless every agent that reads it still gets the instruction.",
|
|
9386
9964
|
"md002.verify": "Run the same check again and compare the remaining copies.",
|
|
9387
|
-
"
|
|
9965
|
+
"md002.scope.all": "Finds paragraphs (and list-item paragraphs) of 40+ characters that are identical after collapsing whitespace, in instruction files and the files they import, and copies of them in other Markdown documents (README, docs). Case, numbers, negations and paths stay significant. Code blocks, test fixtures and examples are not compared.",
|
|
9966
|
+
"md002.duplicateWithDocs": "This instruction paragraph also appears in documents AI tools do not load by default: {others}.",
|
|
9967
|
+
"md002.fix.docs": "Documents read on their own (README, design notes, ADRs, guides) may repeat a rule on purpose. Keep every copy identical when one changes, or keep one source and link to it. Never delete the rule from the instruction file because a document repeats it.",
|
|
9968
|
+
"md002.fix.nested": "The upper file covers its folder and every folder below it; the lower file covers only its own folder, and some tools read only the nearest file. Check each tool's context before removing either copy.",
|
|
9969
|
+
"ai001.scope.m2": "Finds the instruction and rule files of Codex (AGENTS.md, AGENTS.override.md), Claude Code (CLAUDE.md, CLAUDE.local.md, .claude/rules, AGENTS.md as fallback), Gemini CLI (GEMINI.md), GitHub Copilot (.github/copilot-instructions.md, .github/instructions), Cursor desktop app (.cursor/rules/*.mdc), Grok Build terminal (.grok/rules) and Antigravity (.agents/rules) in the project.",
|
|
9388
9970
|
"ai001.empty": "{path} is empty. Codex and other tools skip empty instruction files.",
|
|
9389
9971
|
"ai001.fix.empty": "Add the intended instructions to {path} or delete the file.",
|
|
9390
9972
|
"ai001.overrideShadows": "Codex ignores {path} because {override} exists in the same folder.",
|
|
@@ -9409,6 +9991,8 @@ var en2 = {
|
|
|
9409
9991
|
"ai.note.depthLimit": "Some imports are beyond the platform depth limit and are not loaded.",
|
|
9410
9992
|
"ai.note.codexCap": "The Codex chain passes the default 32 KiB limit; later files are not loaded.",
|
|
9411
9993
|
"ai.note.unknownTokens": "Some files were not inspected, so totals are unknown.",
|
|
9994
|
+
"ai.note.claudeAgentsFallback": "No CLAUDE.md applies here, so Claude Code (v2.1.277 or later) reads AGENTS.md instead.",
|
|
9995
|
+
"ai.note.claudeLong": "A CLAUDE.md file here is over 200 lines. Claude Code recommends keeping each file under 200 lines.",
|
|
9412
9996
|
"ai.unseen.codexHome": "Not visible: ~/.codex (or CODEX_HOME) global AGENTS files.",
|
|
9413
9997
|
"ai.unseen.codexFallbackNames": "Not visible: project_doc_fallback_filenames and project_doc_max_bytes overrides.",
|
|
9414
9998
|
"ai.unseen.claudeUserManaged": "Not visible: ~/.claude/CLAUDE.md, user rules and managed policy files.",
|
|
@@ -9416,6 +10000,16 @@ var en2 = {
|
|
|
9416
10000
|
"ai.unseen.geminiGlobal": "Not visible: ~/.gemini/GEMINI.md.",
|
|
9417
10001
|
"ai.unseen.geminiFileName": "Not visible: context.fileName settings that rename or add context files.",
|
|
9418
10002
|
"ai.unseen.geminiJit": "Not counted: files loaded just in time when tools touch other folders.",
|
|
10003
|
+
"ai.unseen.copilotPersonal": "Not visible: personal and organization custom instructions.",
|
|
10004
|
+
"ai.unseen.cursorUserTeam": "Not visible: user rules and team rules.",
|
|
10005
|
+
"ai.unseen.grokHome": "Not visible: global rules in ~/.grok/. Files ignored by .gitignore are skipped.",
|
|
10006
|
+
"ai.unseen.antigravityGlobal": "Not visible: global files and rules in ~/.gemini/.",
|
|
10007
|
+
"ai.note.ruleIgnored": "Some rule files here have no valid trigger, so Antigravity ignores them.",
|
|
10008
|
+
"ai.note.copilotGithub": "On github.com, path-specific instructions apply only to the cloud agent and code review.",
|
|
10009
|
+
"platform.copilot": "GitHub Copilot",
|
|
10010
|
+
"platform.cursor": "Cursor (desktop app)",
|
|
10011
|
+
"platform.grok": "Grok Build (terminal)",
|
|
10012
|
+
"platform.antigravity": "Antigravity",
|
|
9419
10013
|
"platform.codex": "Codex",
|
|
9420
10014
|
"platform.claude": "Claude Code",
|
|
9421
10015
|
"platform.gemini": "Gemini CLI",
|
|
@@ -9434,7 +10028,26 @@ var en2 = {
|
|
|
9434
10028
|
"report.ai.via.hierarchy": "folder chain",
|
|
9435
10029
|
"report.ai.via.rule": "rule",
|
|
9436
10030
|
"report.ai.via.import": "import",
|
|
9437
|
-
"report.ai.conditional": "Conditional (
|
|
10031
|
+
"report.ai.conditional": "Conditional (not counted)",
|
|
10032
|
+
"report.ai.agent": "Agent",
|
|
10033
|
+
"report.ai.agentsCaption": "Instruction tokens each agent loads at start, for the selected working folder",
|
|
10034
|
+
"report.ai.conditionalCount": "Conditional files",
|
|
10035
|
+
"report.ai.detail": "{platform}: files and rules",
|
|
10036
|
+
"report.ai.load": "Loading",
|
|
10037
|
+
"report.ai.load.always": "Always",
|
|
10038
|
+
"report.ai.load.path": "Matching paths",
|
|
10039
|
+
"report.ai.load.model": "Model decides",
|
|
10040
|
+
"report.ai.load.manual": "When asked",
|
|
10041
|
+
"report.ai.route": "How it is reached",
|
|
10042
|
+
"report.ai.notCounted": "not counted",
|
|
10043
|
+
"report.ai.profilesHeading": "Agent profiles and the official pages they follow",
|
|
10044
|
+
"report.ai.reviewed": "reviewed {date}",
|
|
10045
|
+
"report.ai.switch.title": "Switching agents",
|
|
10046
|
+
"report.ai.switch.to": "Move from {platform} to",
|
|
10047
|
+
"report.ai.switch.none": "Moving from {from} to {to} loses no instruction file here.",
|
|
10048
|
+
"report.ai.switch.lost": "Moving from {from} to {to} loses {count} file(s) here: {to} never reads them.",
|
|
10049
|
+
"report.ai.switch.gained": "Read only by {to}",
|
|
10050
|
+
"ai.note.claudeCompaction": "After compaction Claude Code re-reads its start-up files; path rules return only when a matching file is read again.",
|
|
9438
10051
|
"report.ai.total": "Total",
|
|
9439
10052
|
"report.ai.unknown": "unknown",
|
|
9440
10053
|
"report.ai.sources": "Profile sources (reviewed {date})",
|
|
@@ -9458,9 +10071,13 @@ var ko2 = {
|
|
|
9458
10071
|
"md002.duplicateAcrossFiles": "\uAC19\uC740 \uBB38\uB2E8\uC774 {count}\uBC88 \uB098\uC635\uB2C8\uB2E4. \uB2E4\uB978 \uC704\uCE58: {others}.",
|
|
9459
10072
|
"md002.duplicateInFile": "\uC774 \uD30C\uC77C \uC548\uC5D0\uC11C \uAC19\uC740 \uBB38\uB2E8\uC774 {count}\uBC88 \uB098\uC635\uB2C8\uB2E4. \uB2E4\uB978 \uC704\uCE58: {others}.",
|
|
9460
10073
|
"md002.fix.review": "\uBAA8\uB4E0 \uC704\uCE58\uB97C \uAC80\uD1A0\uD558\uC138\uC694. \uC11C\uB85C \uB2E4\uB978 \uC5D0\uC774\uC804\uD2B8\uAC00 \uC77D\uB294 \uD30C\uC77C\uC774\uBA74 \uC591\uCABD \uBAA8\uB450 \uD544\uC694\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uC544\uB2C8\uB77C\uBA74 \uD55C \uACF3\uB9CC \uB0A8\uAE30\uACE0 \uCC38\uC870\uD558\uC138\uC694.",
|
|
9461
|
-
"md002.fix.protected": "\uC2B9\uC778\xB7\uBC30\uD3EC\xB7\uC0AD\uC81C\xB7\uD14C\uC2A4\uD2B8 \uC9C0\uC2DC\
|
|
10074
|
+
"md002.fix.protected": "\uC2B9\uC778\xB7\uBC30\uD3EC\xB7\uC0AD\uC81C\xB7\uD14C\uC2A4\uD2B8\xB7\uBCF4\uC548\xB7\uAC1C\uC778\uC815\uBCF4 \uC9C0\uC2DC\uB098 \uAE08\uC9C0 \uADDC\uCE59\uC774 \uB4E4\uC5B4 \uC788\uC2B5\uB2C8\uB2E4. \uC774 \uBB38\uB2E8\uC744 \uC77D\uB294 \uBAA8\uB4E0 \uC5D0\uC774\uC804\uD2B8\uAC00 \uACC4\uC18D \uC9C0\uC2DC\uB97C \uBC1B\uB294\uB2E4\uB294 \uAC83\uC744 \uD655\uC778\uD558\uAE30 \uC804\uC5D0\uB294 \uC9C0\uC6B0\uC9C0 \uB9C8\uC138\uC694.",
|
|
9462
10075
|
"md002.verify": "\uAC19\uC740 \uAC80\uC0AC\uB97C \uB2E4\uC2DC \uC2E4\uD589\uD574 \uB0A8\uC740 \uC704\uCE58\uB97C \uBE44\uAD50\uD558\uC138\uC694.",
|
|
9463
|
-
"
|
|
10076
|
+
"md002.scope.all": "\uACF5\uBC31\uB9CC \uC815\uB9AC\uD588\uC744 \uB54C \uC644\uC804\uD788 \uAC19\uC740 40\uC790 \uC774\uC0C1\uC758 \uBB38\uB2E8(\uBAA9\uB85D \uD56D\uBAA9 \uD3EC\uD568)\uC744 \uC9C0\uC2DC \uD30C\uC77C\uACFC \uADF8 \uD30C\uC77C\uC774 \uBD88\uB7EC\uC624\uB294 \uBB38\uC11C, \uADF8\uB9AC\uACE0 \uADF8 \uBB38\uB2E8\uC744 \uB418\uD480\uC774\uD55C \uB2E4\uB978 Markdown \uBB38\uC11C(README, docs)\uC5D0\uC11C \uCC3E\uC2B5\uB2C8\uB2E4. \uB300\uC18C\uBB38\uC790\xB7\uC22B\uC790\xB7\uBD80\uC815\uC5B4\xB7\uACBD\uB85C \uCC28\uC774\uB294 \uADF8\uB300\uB85C \uAD6C\uBD84\uD569\uB2C8\uB2E4. \uCF54\uB4DC \uBE14\uB85D, \uD14C\uC2A4\uD2B8 fixture, \uC608\uC81C\uB294 \uBE44\uAD50\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",
|
|
10077
|
+
"md002.duplicateWithDocs": "\uC774 \uC9C0\uC2DC \uBB38\uB2E8\uC774 AI \uB3C4\uAD6C\uAC00 \uAE30\uBCF8\uC73C\uB85C \uC77D\uC9C0 \uC54A\uB294 \uBB38\uC11C\uC5D0\uB3C4 \uC788\uC2B5\uB2C8\uB2E4: {others}.",
|
|
10078
|
+
"md002.fix.docs": "\uB530\uB85C \uC77D\uD788\uB294 \uBB38\uC11C(README, \uC124\uACC4\uC11C, ADR, \uAC00\uC774\uB4DC)\uB294 \uC77C\uBD80\uB7EC \uADDC\uCE59\uC744 \uB418\uD480\uC774\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. \uD55C\uCABD\uC744 \uACE0\uCE58\uBA74 \uBAA8\uB4E0 \uC0AC\uBCF8\uC744 \uAC19\uC774 \uACE0\uCE58\uAC70\uB098, \uD55C \uACF3\uC5D0\uB9CC \uB450\uACE0 \uB9C1\uD06C\uD558\uC138\uC694. \uBB38\uC11C\uC5D0 \uAC19\uC740 \uBB38\uC7A5\uC774 \uC788\uB2E4\uB294 \uC774\uC720\uB85C \uC9C0\uC2DC \uD30C\uC77C\uC5D0\uC11C \uADDC\uCE59\uC744 \uC9C0\uC6B0\uC9C0 \uB9C8\uC138\uC694.",
|
|
10079
|
+
"md002.fix.nested": "\uC0C1\uC704 \uD30C\uC77C\uC740 \uADF8 \uD3F4\uB354\uC640 \uBAA8\uB4E0 \uD558\uC704 \uD3F4\uB354\uC5D0, \uD558\uC704 \uD30C\uC77C\uC740 \uC790\uAE30 \uD3F4\uB354\uC5D0\uB9CC \uC801\uC6A9\uB429\uB2C8\uB2E4. \uAC00\uC7A5 \uAC00\uAE4C\uC6B4 \uD30C\uC77C\uB9CC \uC77D\uB294 \uB3C4\uAD6C\uB3C4 \uC788\uC2B5\uB2C8\uB2E4. \uC5B4\uB290 \uC0AC\uBCF8\uC774\uB4E0 \uC9C0\uC6B0\uAE30 \uC804\uC5D0 \uB3C4\uAD6C\uBCC4 \uCEE8\uD14D\uC2A4\uD2B8\uB97C \uD655\uC778\uD558\uC138\uC694.",
|
|
10080
|
+
"ai001.scope.m2": "\uD504\uB85C\uC81D\uD2B8\uC5D0\uC11C Codex(AGENTS.md\xB7AGENTS.override.md), Claude Code(CLAUDE.md\xB7CLAUDE.local.md\xB7.claude/rules, \uB300\uCCB4\uB85C AGENTS.md), Gemini CLI(GEMINI.md), GitHub Copilot(.github/copilot-instructions.md\xB7.github/instructions), Cursor \uB370\uC2A4\uD06C\uD1B1 \uC571(.cursor/rules/*.mdc), Grok Build \uD130\uBBF8\uB110(.grok/rules), Antigravity(.agents/rules)\uC758 \uC9C0\uC2DC\xB7\uADDC\uCE59 \uD30C\uC77C\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.",
|
|
9464
10081
|
"ai001.empty": "{path}\uC774(\uAC00) \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4. Codex \uB4F1\uC740 \uBE48 \uC9C0\uC2DC \uD30C\uC77C\uC744 \uAC74\uB108\uB701\uB2C8\uB2E4.",
|
|
9465
10082
|
"ai001.fix.empty": "{path}\uC5D0 \uC758\uB3C4\uD55C \uC9C0\uC2DC\uB97C \uB123\uAC70\uB098 \uD30C\uC77C\uC744 \uC9C0\uC6B0\uC138\uC694.",
|
|
9466
10083
|
"ai001.overrideShadows": "\uAC19\uC740 \uD3F4\uB354\uC5D0 {override}\uC774(\uAC00) \uC788\uC5B4 Codex\uAC00 {path}\uC744(\uB97C) \uBB34\uC2DC\uD569\uB2C8\uB2E4.",
|
|
@@ -9485,6 +10102,8 @@ var ko2 = {
|
|
|
9485
10102
|
"ai.note.depthLimit": "\uC77C\uBD80 import\uAC00 \uD50C\uB7AB\uD3FC \uAE4A\uC774 \uD55C\uB3C4\uB97C \uB118\uC5B4 \uC77D\uD788\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",
|
|
9486
10103
|
"ai.note.codexCap": "Codex \uC9C0\uC2DC \uBB36\uC74C\uC774 \uAE30\uBCF8 32 KiB \uD55C\uB3C4\uB97C \uB118\uC5B4 \uB4A4\uCABD \uD30C\uC77C\uC740 \uC77D\uD788\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",
|
|
9487
10104
|
"ai.note.unknownTokens": "\uAC80\uC0AC\uD558\uC9C0 \uBABB\uD55C \uD30C\uC77C\uC774 \uC788\uC5B4 \uD569\uACC4\uB97C \uC54C \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
10105
|
+
"ai.note.claudeAgentsFallback": "\uC5EC\uAE30\uC5D0 \uD574\uB2F9\uD558\uB294 CLAUDE.md\uAC00 \uC5C6\uC5B4 Claude Code(v2.1.277 \uC774\uC0C1)\uB294 AGENTS.md\uB97C \uB300\uC2E0 \uC77D\uC2B5\uB2C8\uB2E4.",
|
|
10106
|
+
"ai.note.claudeLong": "\uC5EC\uAE30\uC758 CLAUDE.md\uAC00 200\uC904\uC744 \uB118\uC2B5\uB2C8\uB2E4. Claude Code\uB294 \uD30C\uC77C\uB2F9 200\uC904 \uC774\uD558\uB97C \uAD8C\uC7A5\uD569\uB2C8\uB2E4.",
|
|
9488
10107
|
"ai.unseen.codexHome": "\uBCF4\uC774\uC9C0 \uC54A\uC74C: ~/.codex(\uB610\uB294 CODEX_HOME)\uC758 \uC804\uC5ED AGENTS \uD30C\uC77C.",
|
|
9489
10108
|
"ai.unseen.codexFallbackNames": "\uBCF4\uC774\uC9C0 \uC54A\uC74C: project_doc_fallback_filenames\uC640 project_doc_max_bytes \uC124\uC815.",
|
|
9490
10109
|
"ai.unseen.claudeUserManaged": "\uBCF4\uC774\uC9C0 \uC54A\uC74C: ~/.claude/CLAUDE.md, \uC0AC\uC6A9\uC790 \uADDC\uCE59, \uAD00\uB9AC \uC815\uCC45 \uD30C\uC77C.",
|
|
@@ -9492,6 +10111,16 @@ var ko2 = {
|
|
|
9492
10111
|
"ai.unseen.geminiGlobal": "\uBCF4\uC774\uC9C0 \uC54A\uC74C: ~/.gemini/GEMINI.md.",
|
|
9493
10112
|
"ai.unseen.geminiFileName": "\uBCF4\uC774\uC9C0 \uC54A\uC74C: \uCEE8\uD14D\uC2A4\uD2B8 \uD30C\uC77C \uC774\uB984\uC744 \uBC14\uAFB8\uAC70\uB098 \uCD94\uAC00\uD558\uB294 context.fileName \uC124\uC815.",
|
|
9494
10113
|
"ai.unseen.geminiJit": "\uD569\uACC4\uC5D0\uC11C \uC81C\uC678: \uB3C4\uAD6C\uAC00 \uB2E4\uB978 \uD3F4\uB354\uB97C \uB2E4\uB8F0 \uB54C \uC989\uC2DC \uC77D\uB294 \uD30C\uC77C.",
|
|
10114
|
+
"ai.unseen.copilotPersonal": "\uBCF4\uC774\uC9C0 \uC54A\uC74C: \uAC1C\uC778\xB7\uC870\uC9C1\uC758 \uC0AC\uC6A9\uC790 \uC9C0\uC815 \uC9C0\uC2DC.",
|
|
10115
|
+
"ai.unseen.cursorUserTeam": "\uBCF4\uC774\uC9C0 \uC54A\uC74C: \uC0AC\uC6A9\uC790 \uADDC\uCE59\uACFC \uD300 \uADDC\uCE59.",
|
|
10116
|
+
"ai.unseen.grokHome": "\uBCF4\uC774\uC9C0 \uC54A\uC74C: ~/.grok/\uC758 \uC804\uC5ED \uADDC\uCE59. .gitignore\uC5D0 \uAC78\uB9B0 \uD30C\uC77C\uC740 \uC77D\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",
|
|
10117
|
+
"ai.unseen.antigravityGlobal": "\uBCF4\uC774\uC9C0 \uC54A\uC74C: ~/.gemini/\uC758 \uC804\uC5ED \uD30C\uC77C\uACFC \uADDC\uCE59.",
|
|
10118
|
+
"ai.note.ruleIgnored": "\uC5EC\uAE30 \uC77C\uBD80 \uADDC\uCE59 \uD30C\uC77C\uC740 trigger\uAC00 \uC5C6\uAC70\uB098 \uC798\uBABB\uB418\uC5B4 Antigravity\uAC00 \uC77D\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",
|
|
10119
|
+
"ai.note.copilotGithub": "github.com\uC5D0\uC11C \uACBD\uB85C\uBCC4 \uC9C0\uC2DC\uB294 \uD074\uB77C\uC6B0\uB4DC \uC5D0\uC774\uC804\uD2B8\uC640 \uCF54\uB4DC \uB9AC\uBDF0\uC5D0\uB9CC \uC801\uC6A9\uB429\uB2C8\uB2E4.",
|
|
10120
|
+
"platform.copilot": "GitHub Copilot",
|
|
10121
|
+
"platform.cursor": "Cursor \uB370\uC2A4\uD06C\uD1B1 \uC571",
|
|
10122
|
+
"platform.grok": "Grok Build \uD130\uBBF8\uB110",
|
|
10123
|
+
"platform.antigravity": "Antigravity",
|
|
9495
10124
|
"platform.codex": "Codex",
|
|
9496
10125
|
"platform.claude": "Claude Code",
|
|
9497
10126
|
"platform.gemini": "Gemini CLI",
|
|
@@ -9510,7 +10139,26 @@ var ko2 = {
|
|
|
9510
10139
|
"report.ai.via.hierarchy": "\uD3F4\uB354 \uACC4\uCE35",
|
|
9511
10140
|
"report.ai.via.rule": "\uADDC\uCE59",
|
|
9512
10141
|
"report.ai.via.import": "import",
|
|
9513
|
-
"report.ai.conditional": "\uC870\uAC74\uBD80(\
|
|
10142
|
+
"report.ai.conditional": "\uC870\uAC74\uBD80(\uD569\uACC4 \uC81C\uC678)",
|
|
10143
|
+
"report.ai.agent": "\uC5D0\uC774\uC804\uD2B8",
|
|
10144
|
+
"report.ai.agentsCaption": "\uC120\uD0DD\uD55C \uC791\uC5C5 \uD3F4\uB354\uC5D0\uC11C \uC5D0\uC774\uC804\uD2B8\uB9C8\uB2E4 \uC2DC\uC791\uD560 \uB54C \uC77D\uB294 \uC9C0\uC2DC \uD1A0\uD070",
|
|
10145
|
+
"report.ai.conditionalCount": "\uC870\uAC74\uBD80 \uD30C\uC77C",
|
|
10146
|
+
"report.ai.detail": "{platform}: \uD30C\uC77C\uACFC \uADDC\uCE59",
|
|
10147
|
+
"report.ai.load": "\uC77D\uB294 \uBC29\uC2DD",
|
|
10148
|
+
"report.ai.load.always": "\uD56D\uC0C1",
|
|
10149
|
+
"report.ai.load.path": "\uACBD\uB85C\uAC00 \uB9DE\uC744 \uB54C",
|
|
10150
|
+
"report.ai.load.model": "\uBAA8\uB378\uC774 \uD310\uB2E8",
|
|
10151
|
+
"report.ai.load.manual": "\uC694\uCCAD\uD560 \uB54C\uB9CC",
|
|
10152
|
+
"report.ai.route": "\uC77D\uD788\uB294 \uACBD\uB85C",
|
|
10153
|
+
"report.ai.notCounted": "\uD569\uACC4 \uC81C\uC678",
|
|
10154
|
+
"report.ai.profilesHeading": "\uC5D0\uC774\uC804\uD2B8 \uD504\uB85C\uD544\uACFC \uADFC\uAC70\uB85C \uC0BC\uC740 \uACF5\uC2DD \uBB38\uC11C",
|
|
10155
|
+
"report.ai.reviewed": "{date} \uD655\uC778",
|
|
10156
|
+
"report.ai.switch.title": "\uC5D0\uC774\uC804\uD2B8 \uBC14\uAFB8\uAE30",
|
|
10157
|
+
"report.ai.switch.to": "{platform}\uC5D0\uC11C \uBC14\uAFC0 \uC5D0\uC774\uC804\uD2B8",
|
|
10158
|
+
"report.ai.switch.none": "\uC5EC\uAE30\uC11C\uB294 {from}\uC5D0\uC11C {to}\uB85C \uBC14\uAFD4\uB3C4 \uC783\uB294 \uC9C0\uC2DC \uD30C\uC77C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
10159
|
+
"report.ai.switch.lost": "\uC5EC\uAE30\uC11C {from}\uC5D0\uC11C {to}\uB85C \uBC14\uAFB8\uBA74 \uD30C\uC77C {count}\uAC1C\uB97C \uC783\uC2B5\uB2C8\uB2E4. {to}\uB294 \uC774 \uD30C\uC77C\uC744 \uC77D\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",
|
|
10160
|
+
"report.ai.switch.gained": "{to}\uB9CC \uC77D\uB294 \uD30C\uC77C",
|
|
10161
|
+
"ai.note.claudeCompaction": "\uC555\uCD95(compact) \uB4A4 Claude Code\uB294 \uC2DC\uC791 \uD30C\uC77C\uC744 \uB2E4\uC2DC \uC77D\uC9C0\uB9CC, \uACBD\uB85C \uADDC\uCE59\uC740 \uB9DE\uB294 \uD30C\uC77C\uC744 \uB2E4\uC2DC \uC77D\uC744 \uB54C\uC5D0\uC57C \uB3CC\uC544\uC635\uB2C8\uB2E4.",
|
|
9514
10162
|
"report.ai.total": "\uD569\uACC4",
|
|
9515
10163
|
"report.ai.unknown": "\uC54C \uC218 \uC5C6\uC74C",
|
|
9516
10164
|
"report.ai.sources": "\uD504\uB85C\uD544 \uCD9C\uCC98(\uAC80\uD1A0\uC77C {date})",
|
|
@@ -9534,9 +10182,13 @@ var ja2 = {
|
|
|
9534
10182
|
"md002.duplicateAcrossFiles": "\u540C\u3058\u6BB5\u843D\u304C {count} \u56DE\u3042\u308A\u307E\u3059\u3002\u307B\u304B\u306E\u4F4D\u7F6E: {others}\u3002",
|
|
9535
10183
|
"md002.duplicateInFile": "\u3053\u306E\u30D5\u30A1\u30A4\u30EB\u5185\u306B\u540C\u3058\u6BB5\u843D\u304C {count} \u56DE\u3042\u308A\u307E\u3059\u3002\u307B\u304B\u306E\u4F4D\u7F6E: {others}\u3002",
|
|
9536
10184
|
"md002.fix.review": "\u3059\u3079\u3066\u306E\u4F4D\u7F6E\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u5225\u3005\u306E\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u304C\u8AAD\u3080\u30D5\u30A1\u30A4\u30EB\u306A\u3089\u4E21\u65B9\u5FC5\u8981\u306A\u5834\u5408\u304C\u3042\u308A\u307E\u3059\u3002\u305D\u3046\u3067\u306A\u3051\u308C\u3070 1 \u304B\u6240\u306B\u6B8B\u3057\u3066\u53C2\u7167\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
9537
|
-
"md002.fix.protected": "\u627F\u8A8D\u30FB\u30C7\u30D7\u30ED\u30A4\u30FB\u524A\u9664\u30FB\u30C6\u30B9\u30C8\u306E\u6307\u793A\u304C\u542B\u307E\u308C\u3066\u3044\u307E\u3059\u3002\u3053\u306E\u6BB5\u843D\u3092\u8AAD\u3080\u3059\u3079\u3066\u306E\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u304C\u5F15\u304D\u7D9A\u304D\u6307\u793A\u3092\u53D7\u3051\u53D6\u308B\u3068\u78BA\u8A8D\u3067\u304D\u308B\u307E\u3067\u306F\u524A\u9664\u3057\u306A\u3044\u3067\u304F\u3060\u3055\u3044\u3002",
|
|
10185
|
+
"md002.fix.protected": "\u627F\u8A8D\u30FB\u30C7\u30D7\u30ED\u30A4\u30FB\u524A\u9664\u30FB\u30C6\u30B9\u30C8\u30FB\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u30FB\u500B\u4EBA\u60C5\u5831\u306E\u6307\u793A\u3001\u307E\u305F\u306F\u7981\u6B62\u4E8B\u9805\u304C\u542B\u307E\u308C\u3066\u3044\u307E\u3059\u3002\u3053\u306E\u6BB5\u843D\u3092\u8AAD\u3080\u3059\u3079\u3066\u306E\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u304C\u5F15\u304D\u7D9A\u304D\u6307\u793A\u3092\u53D7\u3051\u53D6\u308B\u3068\u78BA\u8A8D\u3067\u304D\u308B\u307E\u3067\u306F\u524A\u9664\u3057\u306A\u3044\u3067\u304F\u3060\u3055\u3044\u3002",
|
|
9538
10186
|
"md002.verify": "\u540C\u3058\u691C\u67FB\u3092\u518D\u5B9F\u884C\u3057\u3001\u6B8B\u3063\u305F\u4F4D\u7F6E\u3092\u6BD4\u8F03\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
9539
|
-
"
|
|
10187
|
+
"md002.scope.all": "\u7A7A\u767D\u3092\u6574\u3048\u308B\u3068\u5B8C\u5168\u306B\u4E00\u81F4\u3059\u308B 40 \u6587\u5B57\u4EE5\u4E0A\u306E\u6BB5\u843D(\u30EA\u30B9\u30C8\u9805\u76EE\u3092\u542B\u3080)\u3092\u3001\u6307\u793A\u30D5\u30A1\u30A4\u30EB\u3068\u305D\u308C\u304C\u8AAD\u307F\u8FBC\u3080\u6587\u66F8\u3001\u304A\u3088\u3073\u305D\u306E\u6BB5\u843D\u3092\u7E70\u308A\u8FD4\u3057\u3066\u3044\u308B\u4ED6\u306E Markdown \u6587\u66F8(README\u3001docs)\u304B\u3089\u63A2\u3057\u307E\u3059\u3002\u5927\u6587\u5B57\u5C0F\u6587\u5B57\u30FB\u6570\u5B57\u30FB\u5426\u5B9A\u8A9E\u30FB\u30D1\u30B9\u306E\u9055\u3044\u306F\u533A\u5225\u3057\u307E\u3059\u3002\u30B3\u30FC\u30C9\u30D6\u30ED\u30C3\u30AF\u3001\u30C6\u30B9\u30C8\u7528 fixture\u3001\u30B5\u30F3\u30D7\u30EB\u306F\u6BD4\u8F03\u3057\u307E\u305B\u3093\u3002",
|
|
10188
|
+
"md002.duplicateWithDocs": "\u3053\u306E\u6307\u793A\u306E\u6BB5\u843D\u306F\u3001AI \u30C4\u30FC\u30EB\u304C\u65E2\u5B9A\u3067\u306F\u8AAD\u307E\u306A\u3044\u6587\u66F8\u306B\u3082\u3042\u308A\u307E\u3059: {others}\u3002",
|
|
10189
|
+
"md002.fix.docs": "\u5358\u72EC\u3067\u8AAD\u307E\u308C\u308B\u6587\u66F8(README\u3001\u8A2D\u8A08\u66F8\u3001ADR\u3001\u30AC\u30A4\u30C9)\u306F\u3001\u610F\u56F3\u3057\u3066\u30EB\u30FC\u30EB\u3092\u7E70\u308A\u8FD4\u3059\u3053\u3068\u304C\u3042\u308A\u307E\u3059\u3002\u4E00\u65B9\u3092\u5909\u3048\u305F\u3089\u3059\u3079\u3066\u306E\u5199\u3057\u3092\u540C\u3058\u306B\u3059\u308B\u304B\u30011 \u304B\u6240\u306B\u307E\u3068\u3081\u3066\u30EA\u30F3\u30AF\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u6587\u66F8\u306B\u540C\u3058\u6587\u304C\u3042\u308B\u3068\u3044\u3046\u7406\u7531\u3067\u3001\u6307\u793A\u30D5\u30A1\u30A4\u30EB\u304B\u3089\u30EB\u30FC\u30EB\u3092\u524A\u9664\u3057\u306A\u3044\u3067\u304F\u3060\u3055\u3044\u3002",
|
|
10190
|
+
"md002.fix.nested": "\u4E0A\u4F4D\u306E\u30D5\u30A1\u30A4\u30EB\u306F\u305D\u306E\u30D5\u30A9\u30EB\u30C0\u30FC\u3068\u914D\u4E0B\u3059\u3079\u3066\u306B\u3001\u4E0B\u4F4D\u306E\u30D5\u30A1\u30A4\u30EB\u306F\u81EA\u5206\u306E\u30D5\u30A9\u30EB\u30C0\u30FC\u3060\u3051\u306B\u9069\u7528\u3055\u308C\u307E\u3059\u3002\u6700\u3082\u8FD1\u3044\u30D5\u30A1\u30A4\u30EB\u3060\u3051\u3092\u8AAD\u3080\u30C4\u30FC\u30EB\u3082\u3042\u308A\u307E\u3059\u3002\u3069\u3061\u3089\u306E\u5199\u3057\u3092\u6D88\u3059\u524D\u306B\u3082\u3001\u30C4\u30FC\u30EB\u3054\u3068\u306E\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
10191
|
+
"ai001.scope.m2": "\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u5185\u306E Codex(AGENTS.md\u30FBAGENTS.override.md)\u3001Claude Code(CLAUDE.md\u30FBCLAUDE.local.md\u30FB.claude/rules\u3001\u4EE3\u66FF\u3068\u3057\u3066 AGENTS.md)\u3001Gemini CLI(GEMINI.md)\u3001GitHub Copilot(.github/copilot-instructions.md\u30FB.github/instructions)\u3001Cursor \u30C7\u30B9\u30AF\u30C8\u30C3\u30D7\u30A2\u30D7\u30EA(.cursor/rules/*.mdc)\u3001Grok Build \u30BF\u30FC\u30DF\u30CA\u30EB(.grok/rules)\u3001Antigravity(.agents/rules)\u306E\u6307\u793A\u30FB\u30EB\u30FC\u30EB\u30D5\u30A1\u30A4\u30EB\u3092\u63A2\u3057\u307E\u3059\u3002",
|
|
9540
10192
|
"ai001.empty": "{path} \u306F\u7A7A\u3067\u3059\u3002Codex \u306A\u3069\u306F\u7A7A\u306E\u6307\u793A\u30D5\u30A1\u30A4\u30EB\u3092\u30B9\u30AD\u30C3\u30D7\u3057\u307E\u3059\u3002",
|
|
9541
10193
|
"ai001.fix.empty": "{path} \u306B\u610F\u56F3\u3057\u305F\u6307\u793A\u3092\u66F8\u304F\u304B\u3001\u30D5\u30A1\u30A4\u30EB\u3092\u524A\u9664\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
9542
10194
|
"ai001.overrideShadows": "\u540C\u3058\u30D5\u30A9\u30EB\u30C0\u30FC\u306B {override} \u304C\u3042\u308B\u305F\u3081\u3001Codex \u306F {path} \u3092\u7121\u8996\u3057\u307E\u3059\u3002",
|
|
@@ -9561,6 +10213,8 @@ var ja2 = {
|
|
|
9561
10213
|
"ai.note.depthLimit": "\u4E00\u90E8\u306E import \u304C\u30D7\u30E9\u30C3\u30C8\u30D5\u30A9\u30FC\u30E0\u306E\u6DF1\u3055\u306E\u4E0A\u9650\u3092\u8D85\u3048\u3066\u304A\u308A\u3001\u8AAD\u307F\u8FBC\u307E\u308C\u307E\u305B\u3093\u3002",
|
|
9562
10214
|
"ai.note.codexCap": "Codex \u306E\u6307\u793A\u30C1\u30A7\u30FC\u30F3\u304C\u65E2\u5B9A\u306E 32 KiB \u4E0A\u9650\u3092\u8D85\u3048\u3066\u304A\u308A\u3001\u5F8C\u308D\u306E\u30D5\u30A1\u30A4\u30EB\u306F\u8AAD\u307F\u8FBC\u307E\u308C\u307E\u305B\u3093\u3002",
|
|
9563
10215
|
"ai.note.unknownTokens": "\u691C\u67FB\u3057\u3066\u3044\u306A\u3044\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308B\u305F\u3081\u3001\u5408\u8A08\u306F\u4E0D\u660E\u3067\u3059\u3002",
|
|
10216
|
+
"ai.note.claudeAgentsFallback": "\u3053\u3053\u306B\u8A72\u5F53\u3059\u308B CLAUDE.md \u304C\u306A\u3044\u305F\u3081\u3001Claude Code(v2.1.277 \u4EE5\u964D)\u306F\u4EE3\u308F\u308A\u306B AGENTS.md \u3092\u8AAD\u307F\u307E\u3059\u3002",
|
|
10217
|
+
"ai.note.claudeLong": "\u3053\u3053\u306E CLAUDE.md \u304C 200 \u884C\u3092\u8D85\u3048\u3066\u3044\u307E\u3059\u3002Claude Code \u306F 1 \u30D5\u30A1\u30A4\u30EB 200 \u884C\u4EE5\u4E0B\u3092\u63A8\u5968\u3057\u3066\u3044\u307E\u3059\u3002",
|
|
9564
10218
|
"ai.unseen.codexHome": "\u898B\u3048\u306A\u3044: ~/.codex(\u307E\u305F\u306F CODEX_HOME)\u306E\u30B0\u30ED\u30FC\u30D0\u30EB AGENTS \u30D5\u30A1\u30A4\u30EB\u3002",
|
|
9565
10219
|
"ai.unseen.codexFallbackNames": "\u898B\u3048\u306A\u3044: project_doc_fallback_filenames \u3068 project_doc_max_bytes \u306E\u8A2D\u5B9A\u3002",
|
|
9566
10220
|
"ai.unseen.claudeUserManaged": "\u898B\u3048\u306A\u3044: ~/.claude/CLAUDE.md\u3001\u30E6\u30FC\u30B6\u30FC\u30EB\u30FC\u30EB\u3001\u7BA1\u7406\u30DD\u30EA\u30B7\u30FC\u306E\u30D5\u30A1\u30A4\u30EB\u3002",
|
|
@@ -9568,6 +10222,16 @@ var ja2 = {
|
|
|
9568
10222
|
"ai.unseen.geminiGlobal": "\u898B\u3048\u306A\u3044: ~/.gemini/GEMINI.md\u3002",
|
|
9569
10223
|
"ai.unseen.geminiFileName": "\u898B\u3048\u306A\u3044: \u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u30D5\u30A1\u30A4\u30EB\u540D\u3092\u5909\u66F4\u30FB\u8FFD\u52A0\u3059\u308B context.fileName \u306E\u8A2D\u5B9A\u3002",
|
|
9570
10224
|
"ai.unseen.geminiJit": "\u5408\u8A08\u304B\u3089\u9664\u5916: \u30C4\u30FC\u30EB\u304C\u5225\u306E\u30D5\u30A9\u30EB\u30C0\u30FC\u306B\u89E6\u308C\u305F\u3068\u304D\u306B\u5373\u6642\u306B\u8AAD\u307F\u8FBC\u307E\u308C\u308B\u30D5\u30A1\u30A4\u30EB\u3002",
|
|
10225
|
+
"ai.unseen.copilotPersonal": "\u898B\u3048\u306A\u3044: \u500B\u4EBA\u3068\u7D44\u7E54\u306E\u30AB\u30B9\u30BF\u30E0\u6307\u793A\u3002",
|
|
10226
|
+
"ai.unseen.cursorUserTeam": "\u898B\u3048\u306A\u3044: \u30E6\u30FC\u30B6\u30FC\u30EB\u30FC\u30EB\u3068\u30C1\u30FC\u30E0\u30EB\u30FC\u30EB\u3002",
|
|
10227
|
+
"ai.unseen.grokHome": "\u898B\u3048\u306A\u3044: ~/.grok/ \u306E\u30B0\u30ED\u30FC\u30D0\u30EB\u30EB\u30FC\u30EB\u3002.gitignore \u3067\u9664\u5916\u3055\u308C\u305F\u30D5\u30A1\u30A4\u30EB\u306F\u8AAD\u307F\u307E\u305B\u3093\u3002",
|
|
10228
|
+
"ai.unseen.antigravityGlobal": "\u898B\u3048\u306A\u3044: ~/.gemini/ \u306E\u30B0\u30ED\u30FC\u30D0\u30EB\u30D5\u30A1\u30A4\u30EB\u3068\u30EB\u30FC\u30EB\u3002",
|
|
10229
|
+
"ai.note.ruleIgnored": "\u3053\u3053\u306E\u4E00\u90E8\u306E\u30EB\u30FC\u30EB\u30D5\u30A1\u30A4\u30EB\u306F trigger \u304C\u306A\u3044\u304B\u8AA4\u3063\u3066\u3044\u308B\u305F\u3081\u3001Antigravity \u306F\u8AAD\u307F\u307E\u305B\u3093\u3002",
|
|
10230
|
+
"ai.note.copilotGithub": "github.com \u3067\u306F\u30D1\u30B9\u5225\u306E\u6307\u793A\u306F\u30AF\u30E9\u30A6\u30C9\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u3068\u30B3\u30FC\u30C9\u30EC\u30D3\u30E5\u30FC\u306B\u306E\u307F\u9069\u7528\u3055\u308C\u307E\u3059\u3002",
|
|
10231
|
+
"platform.copilot": "GitHub Copilot",
|
|
10232
|
+
"platform.cursor": "Cursor \u30C7\u30B9\u30AF\u30C8\u30C3\u30D7\u30A2\u30D7\u30EA",
|
|
10233
|
+
"platform.grok": "Grok Build \u30BF\u30FC\u30DF\u30CA\u30EB",
|
|
10234
|
+
"platform.antigravity": "Antigravity",
|
|
9571
10235
|
"platform.codex": "Codex",
|
|
9572
10236
|
"platform.claude": "Claude Code",
|
|
9573
10237
|
"platform.gemini": "Gemini CLI",
|
|
@@ -9586,7 +10250,26 @@ var ja2 = {
|
|
|
9586
10250
|
"report.ai.via.hierarchy": "\u30D5\u30A9\u30EB\u30C0\u30FC\u968E\u5C64",
|
|
9587
10251
|
"report.ai.via.rule": "\u30EB\u30FC\u30EB",
|
|
9588
10252
|
"report.ai.via.import": "import",
|
|
9589
|
-
"report.ai.conditional": "\u6761\u4EF6\u4ED8\u304D(\
|
|
10253
|
+
"report.ai.conditional": "\u6761\u4EF6\u4ED8\u304D(\u5408\u8A08\u5916)",
|
|
10254
|
+
"report.ai.agent": "\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8",
|
|
10255
|
+
"report.ai.agentsCaption": "\u9078\u629E\u3057\u305F\u4F5C\u696D\u30D5\u30A9\u30EB\u30C0\u30FC\u3067\u3001\u5404\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u304C\u958B\u59CB\u6642\u306B\u8AAD\u3080\u6307\u793A\u306E\u30C8\u30FC\u30AF\u30F3",
|
|
10256
|
+
"report.ai.conditionalCount": "\u6761\u4EF6\u4ED8\u304D\u30D5\u30A1\u30A4\u30EB",
|
|
10257
|
+
"report.ai.detail": "{platform}: \u30D5\u30A1\u30A4\u30EB\u3068\u30EB\u30FC\u30EB",
|
|
10258
|
+
"report.ai.load": "\u8AAD\u307F\u8FBC\u307F\u65B9",
|
|
10259
|
+
"report.ai.load.always": "\u5E38\u306B",
|
|
10260
|
+
"report.ai.load.path": "\u30D1\u30B9\u304C\u4E00\u81F4\u3057\u305F\u3068\u304D",
|
|
10261
|
+
"report.ai.load.model": "\u30E2\u30C7\u30EB\u304C\u5224\u65AD",
|
|
10262
|
+
"report.ai.load.manual": "\u6307\u5B9A\u3057\u305F\u3068\u304D\u3060\u3051",
|
|
10263
|
+
"report.ai.route": "\u8AAD\u307E\u308C\u308B\u7D4C\u8DEF",
|
|
10264
|
+
"report.ai.notCounted": "\u5408\u8A08\u5916",
|
|
10265
|
+
"report.ai.profilesHeading": "\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u306E\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u3068\u6839\u62E0\u306B\u3057\u305F\u516C\u5F0F\u30DA\u30FC\u30B8",
|
|
10266
|
+
"report.ai.reviewed": "{date} \u78BA\u8A8D",
|
|
10267
|
+
"report.ai.switch.title": "\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u306E\u5207\u308A\u66FF\u3048",
|
|
10268
|
+
"report.ai.switch.to": "{platform} \u304B\u3089\u306E\u5207\u308A\u66FF\u3048\u5148",
|
|
10269
|
+
"report.ai.switch.none": "\u3053\u3053\u3067\u306F {from} \u304B\u3089 {to} \u306B\u5207\u308A\u66FF\u3048\u3066\u3082\u5931\u308F\u308C\u308B\u6307\u793A\u30D5\u30A1\u30A4\u30EB\u306F\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
10270
|
+
"report.ai.switch.lost": "\u3053\u3053\u3067 {from} \u304B\u3089 {to} \u306B\u5207\u308A\u66FF\u3048\u308B\u3068 {count} \u500B\u306E\u30D5\u30A1\u30A4\u30EB\u304C\u5931\u308F\u308C\u307E\u3059\u3002{to} \u306F\u3053\u308C\u3089\u3092\u8AAD\u307F\u307E\u305B\u3093\u3002",
|
|
10271
|
+
"report.ai.switch.gained": "{to} \u3060\u3051\u304C\u8AAD\u3080\u30D5\u30A1\u30A4\u30EB",
|
|
10272
|
+
"ai.note.claudeCompaction": "\u5727\u7E2E(compact)\u5F8C\u3001Claude Code \u306F\u958B\u59CB\u6642\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u8AAD\u307F\u76F4\u3057\u307E\u3059\u304C\u3001\u30D1\u30B9\u30EB\u30FC\u30EB\u306F\u4E00\u81F4\u3059\u308B\u30D5\u30A1\u30A4\u30EB\u3092\u518D\u3073\u8AAD\u3080\u307E\u3067\u623B\u308A\u307E\u305B\u3093\u3002",
|
|
9590
10273
|
"report.ai.total": "\u5408\u8A08",
|
|
9591
10274
|
"report.ai.unknown": "\u4E0D\u660E",
|
|
9592
10275
|
"report.ai.sources": "\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u306E\u51FA\u5178(\u78BA\u8A8D\u65E5 {date})",
|
|
@@ -9610,9 +10293,13 @@ var zh2 = {
|
|
|
9610
10293
|
"md002.duplicateAcrossFiles": "\u540C\u4E00\u6BB5\u843D\u51FA\u73B0\u4E86 {count} \u6B21\u3002\u5176\u4ED6\u4F4D\u7F6E:{others}\u3002",
|
|
9611
10294
|
"md002.duplicateInFile": "\u540C\u4E00\u6BB5\u843D\u5728\u6B64\u6587\u4EF6\u4E2D\u51FA\u73B0\u4E86 {count} \u6B21\u3002\u5176\u4ED6\u4F4D\u7F6E:{others}\u3002",
|
|
9612
10295
|
"md002.fix.review": "\u8BF7\u68C0\u67E5\u6240\u6709\u4F4D\u7F6E\u3002\u5982\u679C\u8FD9\u4E9B\u6587\u4EF6\u4F9B\u4E0D\u540C\u7684\u4EE3\u7406\u8BFB\u53D6,\u53EF\u80FD\u90FD\u9700\u8981\u4FDD\u7559;\u5426\u5219\u53EA\u4FDD\u7559\u4E00\u5904\u5E76\u5F15\u7528\u5B83\u3002",
|
|
9613
|
-
"md002.fix.protected": "\u6B64\u6BB5\u843D\u5305\u542B\u5BA1\u6279\u3001\u90E8\u7F72\u3001\u5220\u9664\
|
|
10296
|
+
"md002.fix.protected": "\u6B64\u6BB5\u843D\u5305\u542B\u5BA1\u6279\u3001\u90E8\u7F72\u3001\u5220\u9664\u3001\u6D4B\u8BD5\u3001\u5B89\u5168\u6216\u9690\u79C1\u76F8\u5173\u6307\u4EE4,\u6216\u7981\u6B62\u4E8B\u9879\u3002\u5728\u786E\u8BA4\u6240\u6709\u8BFB\u53D6\u5B83\u7684\u4EE3\u7406\u4ECD\u80FD\u6536\u5230\u8BE5\u6307\u4EE4\u4E4B\u524D,\u4E0D\u8981\u5220\u9664\u4EFB\u4F55\u526F\u672C\u3002",
|
|
9614
10297
|
"md002.verify": "\u518D\u6B21\u8FD0\u884C\u76F8\u540C\u7684\u68C0\u67E5\u5E76\u6BD4\u8F83\u5269\u4F59\u7684\u4F4D\u7F6E\u3002",
|
|
9615
|
-
"
|
|
10298
|
+
"md002.scope.all": "\u5728\u6307\u4EE4\u6587\u4EF6\u53CA\u5176\u5BFC\u5165\u7684\u6587\u6863\u4E2D,\u4EE5\u53CA\u91CD\u590D\u8FD9\u4E9B\u6BB5\u843D\u7684\u5176\u4ED6 Markdown \u6587\u6863(README\u3001docs)\u4E2D,\u67E5\u627E\u53EA\u6574\u7406\u7A7A\u767D\u540E\u5B8C\u5168\u76F8\u540C\u3001\u957F\u5EA6\u4E0D\u5C11\u4E8E 40 \u4E2A\u5B57\u7B26\u7684\u6BB5\u843D(\u5305\u62EC\u5217\u8868\u9879)\u3002\u5927\u5C0F\u5199\u3001\u6570\u5B57\u3001\u5426\u5B9A\u8BCD\u548C\u8DEF\u5F84\u7684\u5DEE\u5F02\u4F1A\u88AB\u533A\u5206\u3002\u4E0D\u6BD4\u8F83\u4EE3\u7801\u5757\u3001\u6D4B\u8BD5 fixture \u548C\u793A\u4F8B\u3002",
|
|
10299
|
+
"md002.duplicateWithDocs": "\u8FD9\u6761\u6307\u4EE4\u6BB5\u843D\u4E5F\u51FA\u73B0\u5728 AI \u5DE5\u5177\u9ED8\u8BA4\u4E0D\u8BFB\u53D6\u7684\u6587\u6863\u4E2D:{others}\u3002",
|
|
10300
|
+
"md002.fix.docs": "\u5355\u72EC\u9605\u8BFB\u7684\u6587\u6863(README\u3001\u8BBE\u8BA1\u6587\u6863\u3001ADR\u3001\u6307\u5357)\u53EF\u80FD\u6709\u610F\u91CD\u590D\u89C4\u5219\u3002\u4FEE\u6539\u4E00\u5904\u65F6\u8BF7\u540C\u6B65\u6240\u6709\u526F\u672C,\u6216\u53EA\u4FDD\u7559\u4E00\u5904\u5E76\u6DFB\u52A0\u94FE\u63A5\u3002\u4E0D\u8981\u56E0\u4E3A\u6587\u6863\u4E2D\u6709\u76F8\u540C\u5185\u5BB9\u5C31\u4ECE\u6307\u4EE4\u6587\u4EF6\u4E2D\u5220\u9664\u89C4\u5219\u3002",
|
|
10301
|
+
"md002.fix.nested": "\u4E0A\u7EA7\u6587\u4EF6\u9002\u7528\u4E8E\u5176\u6587\u4EF6\u5939\u53CA\u6240\u6709\u5B50\u6587\u4EF6\u5939,\u4E0B\u7EA7\u6587\u4EF6\u53EA\u9002\u7528\u4E8E\u81EA\u5DF1\u7684\u6587\u4EF6\u5939,\u800C\u4E14\u6709\u4E9B\u5DE5\u5177\u53EA\u8BFB\u53D6\u6700\u8FD1\u7684\u6587\u4EF6\u3002\u5220\u9664\u4EFB\u4F55\u4E00\u4E2A\u526F\u672C\u4E4B\u524D,\u8BF7\u5148\u68C0\u67E5\u5404\u5DE5\u5177\u7684\u4E0A\u4E0B\u6587\u3002",
|
|
10302
|
+
"ai001.scope.m2": "\u5728\u9879\u76EE\u4E2D\u67E5\u627E Codex(AGENTS.md\u3001AGENTS.override.md)\u3001Claude Code(CLAUDE.md\u3001CLAUDE.local.md\u3001.claude/rules,\u4EE5\u53CA\u4F5C\u4E3A\u66FF\u4EE3\u7684 AGENTS.md)\u3001Gemini CLI(GEMINI.md)\u3001GitHub Copilot(.github/copilot-instructions.md\u3001.github/instructions)\u3001Cursor \u684C\u9762\u5E94\u7528(.cursor/rules/*.mdc)\u3001Grok Build \u7EC8\u7AEF(.grok/rules)\u548C Antigravity(.agents/rules)\u7684\u6307\u4EE4\u4E0E\u89C4\u5219\u6587\u4EF6\u3002",
|
|
9616
10303
|
"ai001.empty": "{path} \u662F\u7A7A\u6587\u4EF6\u3002Codex \u7B49\u5DE5\u5177\u4F1A\u8DF3\u8FC7\u7A7A\u7684\u6307\u4EE4\u6587\u4EF6\u3002",
|
|
9617
10304
|
"ai001.fix.empty": "\u5728 {path} \u4E2D\u5199\u5165\u9884\u671F\u7684\u6307\u4EE4,\u6216\u5220\u9664\u8BE5\u6587\u4EF6\u3002",
|
|
9618
10305
|
"ai001.overrideShadows": "\u7531\u4E8E\u540C\u4E00\u6587\u4EF6\u5939\u4E2D\u5B58\u5728 {override},Codex \u4F1A\u5FFD\u7565 {path}\u3002",
|
|
@@ -9637,6 +10324,8 @@ var zh2 = {
|
|
|
9637
10324
|
"ai.note.depthLimit": "\u90E8\u5206 import \u8D85\u51FA\u5E73\u53F0\u7684\u6DF1\u5EA6\u4E0A\u9650,\u4E0D\u4F1A\u88AB\u52A0\u8F7D\u3002",
|
|
9638
10325
|
"ai.note.codexCap": "Codex \u6307\u4EE4\u94FE\u8D85\u8FC7\u9ED8\u8BA4\u7684 32 KiB \u4E0A\u9650,\u540E\u9762\u7684\u6587\u4EF6\u4E0D\u4F1A\u88AB\u52A0\u8F7D\u3002",
|
|
9639
10326
|
"ai.note.unknownTokens": "\u6709\u672A\u68C0\u67E5\u7684\u6587\u4EF6,\u56E0\u6B64\u5408\u8BA1\u672A\u77E5\u3002",
|
|
10327
|
+
"ai.note.claudeAgentsFallback": "\u8FD9\u91CC\u6CA1\u6709\u9002\u7528\u7684 CLAUDE.md,\u56E0\u6B64 Claude Code(v2.1.277 \u53CA\u4EE5\u4E0A)\u6539\u4E3A\u8BFB\u53D6 AGENTS.md\u3002",
|
|
10328
|
+
"ai.note.claudeLong": "\u8FD9\u91CC\u7684 CLAUDE.md \u8D85\u8FC7 200 \u884C\u3002Claude Code \u5EFA\u8BAE\u6BCF\u4E2A\u6587\u4EF6\u4E0D\u8D85\u8FC7 200 \u884C\u3002",
|
|
9640
10329
|
"ai.unseen.codexHome": "\u4E0D\u53EF\u89C1:~/.codex(\u6216 CODEX_HOME)\u4E2D\u7684\u5168\u5C40 AGENTS \u6587\u4EF6\u3002",
|
|
9641
10330
|
"ai.unseen.codexFallbackNames": "\u4E0D\u53EF\u89C1:project_doc_fallback_filenames \u548C project_doc_max_bytes \u8BBE\u7F6E\u3002",
|
|
9642
10331
|
"ai.unseen.claudeUserManaged": "\u4E0D\u53EF\u89C1:~/.claude/CLAUDE.md\u3001\u7528\u6237\u89C4\u5219\u548C\u6258\u7BA1\u7B56\u7565\u6587\u4EF6\u3002",
|
|
@@ -9644,6 +10333,16 @@ var zh2 = {
|
|
|
9644
10333
|
"ai.unseen.geminiGlobal": "\u4E0D\u53EF\u89C1:~/.gemini/GEMINI.md\u3002",
|
|
9645
10334
|
"ai.unseen.geminiFileName": "\u4E0D\u53EF\u89C1:\u66F4\u6539\u6216\u6DFB\u52A0\u4E0A\u4E0B\u6587\u6587\u4EF6\u540D\u7684 context.fileName \u8BBE\u7F6E\u3002",
|
|
9646
10335
|
"ai.unseen.geminiJit": "\u672A\u8BA1\u5165:\u5DE5\u5177\u8BBF\u95EE\u5176\u4ED6\u6587\u4EF6\u5939\u65F6\u5373\u65F6\u52A0\u8F7D\u7684\u6587\u4EF6\u3002",
|
|
10336
|
+
"ai.unseen.copilotPersonal": "\u4E0D\u53EF\u89C1:\u4E2A\u4EBA\u548C\u7EC4\u7EC7\u7684\u81EA\u5B9A\u4E49\u6307\u4EE4\u3002",
|
|
10337
|
+
"ai.unseen.cursorUserTeam": "\u4E0D\u53EF\u89C1:\u7528\u6237\u89C4\u5219\u548C\u56E2\u961F\u89C4\u5219\u3002",
|
|
10338
|
+
"ai.unseen.grokHome": "\u4E0D\u53EF\u89C1:~/.grok/ \u4E2D\u7684\u5168\u5C40\u89C4\u5219\u3002\u88AB .gitignore \u5FFD\u7565\u7684\u6587\u4EF6\u4E0D\u4F1A\u8BFB\u53D6\u3002",
|
|
10339
|
+
"ai.unseen.antigravityGlobal": "\u4E0D\u53EF\u89C1:~/.gemini/ \u4E2D\u7684\u5168\u5C40\u6587\u4EF6\u548C\u89C4\u5219\u3002",
|
|
10340
|
+
"ai.note.ruleIgnored": "\u8FD9\u91CC\u7684\u90E8\u5206\u89C4\u5219\u6587\u4EF6\u7F3A\u5C11 trigger \u6216 trigger \u65E0\u6548,Antigravity \u4E0D\u4F1A\u8BFB\u53D6\u3002",
|
|
10341
|
+
"ai.note.copilotGithub": "\u5728 github.com \u4E0A,\u6309\u8DEF\u5F84\u7684\u6307\u4EE4\u53EA\u9002\u7528\u4E8E\u4E91\u7AEF\u4EE3\u7406\u548C\u4EE3\u7801\u5BA1\u67E5\u3002",
|
|
10342
|
+
"platform.copilot": "GitHub Copilot",
|
|
10343
|
+
"platform.cursor": "Cursor \u684C\u9762\u5E94\u7528",
|
|
10344
|
+
"platform.grok": "Grok Build \u7EC8\u7AEF",
|
|
10345
|
+
"platform.antigravity": "Antigravity",
|
|
9647
10346
|
"platform.codex": "Codex",
|
|
9648
10347
|
"platform.claude": "Claude Code",
|
|
9649
10348
|
"platform.gemini": "Gemini CLI",
|
|
@@ -9662,7 +10361,26 @@ var zh2 = {
|
|
|
9662
10361
|
"report.ai.via.hierarchy": "\u6587\u4EF6\u5939\u5C42\u7EA7",
|
|
9663
10362
|
"report.ai.via.rule": "\u89C4\u5219",
|
|
9664
10363
|
"report.ai.via.import": "import",
|
|
9665
|
-
"report.ai.conditional": "\u6761\u4EF6\u52A0\u8F7D(\
|
|
10364
|
+
"report.ai.conditional": "\u6761\u4EF6\u52A0\u8F7D(\u4E0D\u8BA1\u5165\u5408\u8BA1)",
|
|
10365
|
+
"report.ai.agent": "\u4EE3\u7406",
|
|
10366
|
+
"report.ai.agentsCaption": "\u5728\u6240\u9009\u5DE5\u4F5C\u6587\u4EF6\u5939\u4E2D,\u6BCF\u4E2A\u4EE3\u7406\u542F\u52A8\u65F6\u8BFB\u53D6\u7684\u6307\u4EE4 token",
|
|
10367
|
+
"report.ai.conditionalCount": "\u6761\u4EF6\u52A0\u8F7D\u6587\u4EF6",
|
|
10368
|
+
"report.ai.detail": "{platform}:\u6587\u4EF6\u4E0E\u89C4\u5219",
|
|
10369
|
+
"report.ai.load": "\u52A0\u8F7D\u65B9\u5F0F",
|
|
10370
|
+
"report.ai.load.always": "\u59CB\u7EC8",
|
|
10371
|
+
"report.ai.load.path": "\u8DEF\u5F84\u5339\u914D\u65F6",
|
|
10372
|
+
"report.ai.load.model": "\u7531\u6A21\u578B\u51B3\u5B9A",
|
|
10373
|
+
"report.ai.load.manual": "\u4EC5\u5728\u8BF7\u6C42\u65F6",
|
|
10374
|
+
"report.ai.route": "\u8BFB\u53D6\u9014\u5F84",
|
|
10375
|
+
"report.ai.notCounted": "\u4E0D\u8BA1\u5165",
|
|
10376
|
+
"report.ai.profilesHeading": "\u4EE3\u7406\u914D\u7F6E\u53CA\u5176\u4F9D\u636E\u7684\u5B98\u65B9\u9875\u9762",
|
|
10377
|
+
"report.ai.reviewed": "{date} \u6838\u5BF9",
|
|
10378
|
+
"report.ai.switch.title": "\u5207\u6362\u4EE3\u7406",
|
|
10379
|
+
"report.ai.switch.to": "\u4ECE {platform} \u5207\u6362\u5230",
|
|
10380
|
+
"report.ai.switch.none": "\u5728\u8FD9\u91CC\u4ECE {from} \u5207\u6362\u5230 {to} \u4E0D\u4F1A\u4E22\u5931\u6307\u4EE4\u6587\u4EF6\u3002",
|
|
10381
|
+
"report.ai.switch.lost": "\u5728\u8FD9\u91CC\u4ECE {from} \u5207\u6362\u5230 {to} \u4F1A\u4E22\u5931 {count} \u4E2A\u6587\u4EF6:{to} \u4E0D\u8BFB\u53D6\u5B83\u4EEC\u3002",
|
|
10382
|
+
"report.ai.switch.gained": "\u53EA\u6709 {to} \u8BFB\u53D6\u7684\u6587\u4EF6",
|
|
10383
|
+
"ai.note.claudeCompaction": "\u538B\u7F29(compact)\u540E Claude Code \u4F1A\u91CD\u65B0\u8BFB\u53D6\u542F\u52A8\u6587\u4EF6,\u4F46\u8DEF\u5F84\u89C4\u5219\u8981\u7B49\u518D\u6B21\u8BFB\u53D6\u5339\u914D\u7684\u6587\u4EF6\u65F6\u624D\u4F1A\u6062\u590D\u3002",
|
|
9666
10384
|
"report.ai.total": "\u5408\u8BA1",
|
|
9667
10385
|
"report.ai.unknown": "\u672A\u77E5",
|
|
9668
10386
|
"report.ai.sources": "\u914D\u7F6E\u6765\u6E90(\u6838\u5BF9\u65E5\u671F {date})",
|
|
@@ -9734,17 +10452,29 @@ var enT = {
|
|
|
9734
10452
|
"arc.reason.capped": "Only the first 50 results are listed.",
|
|
9735
10453
|
"arc.reason.listIncomplete": "The file list is incomplete, so some missing imports could not be confirmed.",
|
|
9736
10454
|
"rule.DUP-001": "Duplicated code blocks",
|
|
9737
|
-
"dup001.scope": "Compares source files (JS/TS, Python, Go, Rust, Java, Kotlin, C#, PHP, Ruby, Swift) line by line after trimming; blank lines, comments and bracket-only lines are skipped. A block is 6 or more meaningful lines.",
|
|
10455
|
+
"dup001.scope": "Compares source files (JS/TS, Python, Go, Rust, Java, Kotlin, C#, PHP, Ruby, Swift) line by line after trimming; blank lines, comments and bracket-only lines are skipped. A block is 6 or more meaningful lines. Imports, using directives, package and namespace lines and enum member lists are not compared; overlapping repeats are shown once.",
|
|
9738
10456
|
"dup001.block": "{lines} meaningful lines (lines {range}) appear in {copies} places.",
|
|
10457
|
+
"dup001.blockOverlap": "{lines} meaningful lines (lines {range}) repeat in full or in part in {copies} places; overlapping repeats are shown once.",
|
|
9739
10458
|
"dup001.fix": "Move the shared code into one function or module and call it from the {copies} places.",
|
|
9740
10459
|
"dup.verify": "Run the same check again and confirm {path}:{line} no longer appears.",
|
|
9741
10460
|
"dup.reason.noCode": "No supported source files were found.",
|
|
9742
10461
|
"dup.reason.capped": "Only the first 50 duplicated blocks are listed.",
|
|
9743
10462
|
"rule.AGT-001": "Skill files (SKILL.md)",
|
|
9744
10463
|
"rule.AGT-002": "Conflicting conventions",
|
|
9745
|
-
"agt001.scope": "Checks SKILL.md front matter: name and description present, name in lowercase-hyphen form (max 64) matching its folder, description up to 1024 characters, non-empty body.",
|
|
9746
|
-
"agt002.scope":
|
|
10464
|
+
"agt001.scope": "Checks SKILL.md front matter: name and description present, name in lowercase-hyphen form (max 64) matching its folder, description up to 1024 characters, non-empty body, and skills with side effects that Claude may start on its own.",
|
|
10465
|
+
"agt002.scope": 'Compares instruction files for clearly worded package-manager (npm, pnpm, yarn, bun), indentation (spaces, tabs) and Node.js version rules, in English, Korean, Japanese and Chinese sentences. Negated mentions ("do not use npm") are not rules; a rule for one environment or folder is compared only with rules for the same one; a version inside a stated range agrees. Results are candidates for review.',
|
|
9747
10466
|
"agt.verify": "Run the same check again and confirm {path}:{line} no longer appears.",
|
|
10467
|
+
"rule.DOC-001": "Docs vs project",
|
|
10468
|
+
"doc001.scope": "Compares commands and paths in instruction files and README with the project: package manager vs lockfile, npm/pnpm/yarn scripts vs package.json, file paths in code spans vs the file list, Docker commands vs Dockerfile and compose files. Only clear-cut cases are reported; examples and conditional sentences are skipped.",
|
|
10469
|
+
"doc001.reason.none": "No instruction files or README were found.",
|
|
10470
|
+
"doc001.pm": "The command uses {used}, but the project has only a {expected} lockfile ({lockfile}).",
|
|
10471
|
+
"doc001.pm.fix": "Write the command for {expected}, or remove {lockfile} if the project moved to {used}.",
|
|
10472
|
+
"doc001.script": '"{command}" runs the script "{script}", which {manifest} does not define.',
|
|
10473
|
+
"doc001.script.fix": 'Add a "{script}" script to {manifest}, or correct the command.',
|
|
10474
|
+
"doc001.path": "{ref} is not in the project.",
|
|
10475
|
+
"doc001.path.fix": "Correct the path {ref}, or remove the reference if the file is gone.",
|
|
10476
|
+
"doc001.docker": '"{command}" needs {file}, which is not in the project.',
|
|
10477
|
+
"doc001.docker.fix": "Add {file}, or remove the Docker instructions.",
|
|
9748
10478
|
"agt001.reason.none": "No SKILL.md files were found.",
|
|
9749
10479
|
"agt001.noFrontMatter": "{path} has no front matter.",
|
|
9750
10480
|
"agt001.noFrontMatter.fix": "Start {path} with --- front matter that sets name and description.",
|
|
@@ -9760,8 +10490,11 @@ var enT = {
|
|
|
9760
10490
|
"agt001.longDescription.fix": "Shorten the description in {path} and move details into the body.",
|
|
9761
10491
|
"agt001.emptyBody": "{path} has no instructions after the front matter.",
|
|
9762
10492
|
"agt001.emptyBody.fix": "Write the skill's instructions in the body of {path}.",
|
|
10493
|
+
"agt001.autoSideEffect": 'Skill "{name}" looks like it has side effects ({word}), but Claude may start it on its own.',
|
|
10494
|
+
"agt001.autoSideEffect.fix": 'Add "disable-model-invocation: true" to the front matter of {path} so that only a person starts it.',
|
|
9763
10495
|
"agt002.package-manager": "Instruction files name different package managers: {values}.",
|
|
9764
10496
|
"agt002.indentation": "Instruction files ask for different indentation: {values}.",
|
|
10497
|
+
"agt002.node-version": "Instruction files ask for Node.js versions that do not agree: {values}.",
|
|
9765
10498
|
"agt002.fix": "Pick one {topic} rule, keep it in one shared file and remove the others.",
|
|
9766
10499
|
"rule.DEP-001": "Pinned dependency versions",
|
|
9767
10500
|
"rule.DEP-002": "Known vulnerabilities (OSV)",
|
|
@@ -9778,7 +10511,7 @@ var enT = {
|
|
|
9778
10511
|
"rule.MCP-001": "MCP config structure",
|
|
9779
10512
|
"rule.MCP-002": "Risky MCP settings",
|
|
9780
10513
|
"mcp001.scope": "Parses MCP client configs as data (Claude Code .mcp.json, Cursor, VS Code, Gemini CLI, Claude Desktop, Codex config.toml) and checks required fields and types. No server is started.",
|
|
9781
|
-
"mcp002.scope": "Flags inline secrets, shell pipelines, privileged commands, unpinned auto-installed packages
|
|
10514
|
+
"mcp002.scope": "Flags inline secrets, shell pipelines, privileged commands, unpinned auto-installed packages, plain-HTTP remote URLs and servers given the whole disk or a home folder.",
|
|
9782
10515
|
"mcp.reason.none": "No MCP config files were found.",
|
|
9783
10516
|
"mcp.verify": "Run the same check again and confirm {path}:{line} no longer appears.",
|
|
9784
10517
|
"mcp001.parse": "{path} could not be parsed as JSON.",
|
|
@@ -9801,6 +10534,8 @@ var enT = {
|
|
|
9801
10534
|
"mcp002.unpinned.fix": 'Pin "{package}" to a reviewed version (for example package@1.2.3).',
|
|
9802
10535
|
"mcp002.insecureUrl": 'Server "{server}" connects to a remote URL over plain HTTP.',
|
|
9803
10536
|
"mcp002.insecureUrl.fix": 'Use an https:// URL for "{server}".',
|
|
10537
|
+
"mcp002.broadAccess": 'Server "{server}" is given {path}, which opens the whole disk or a home folder.',
|
|
10538
|
+
"mcp002.broadAccess.fix": 'Give "{server}" only the folders it needs, for example the project folder.',
|
|
9804
10539
|
"rule.SEC-001": "Credential patterns",
|
|
9805
10540
|
"rule.SEC-002": "Sensitive files",
|
|
9806
10541
|
"sec001.scope": "Looks for well-known key and token formats in readable text files. Values are masked and never checked online.",
|
|
@@ -9880,17 +10615,29 @@ var koT = {
|
|
|
9880
10615
|
"arc.reason.capped": "\uACB0\uACFC\uB294 \uCC98\uC74C 50\uAC1C\uAE4C\uC9C0\uB9CC \uBCF4\uC5EC \uC90D\uB2C8\uB2E4.",
|
|
9881
10616
|
"arc.reason.listIncomplete": "\uD30C\uC77C \uBAA9\uB85D\uC774 \uC644\uC804\uD558\uC9C0 \uC54A\uC544 \uC77C\uBD80 import\uB294 \uD655\uC778\uD558\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",
|
|
9882
10617
|
"rule.DUP-001": "\uC911\uBCF5 \uCF54\uB4DC \uBE14\uB85D",
|
|
9883
|
-
"dup001.scope": "\uC18C\uC2A4 \uD30C\uC77C(JS/TS, Python, Go, Rust, Java, Kotlin, C#, PHP, Ruby, Swift)\uC744 \uC55E\uB4A4 \uACF5\uBC31\uC744 \uC815\uB9AC\uD55C \uB4A4 \uC904 \uB2E8\uC704\uB85C \uBE44\uAD50\uD569\uB2C8\uB2E4. \uBE48 \uC904, \uC8FC\uC11D, \uAD04\uD638\uB9CC \uC788\uB294 \uC904\uC740 \uAC74\uB108\uB701\uB2C8\uB2E4. \uC758\uBBF8 \uC788\uB294 \uC904 6\uC904 \uC774\uC0C1\uC744 \uD55C \uBE14\uB85D\uC73C\uB85C \uBD05\uB2C8\uB2E4.",
|
|
10618
|
+
"dup001.scope": "\uC18C\uC2A4 \uD30C\uC77C(JS/TS, Python, Go, Rust, Java, Kotlin, C#, PHP, Ruby, Swift)\uC744 \uC55E\uB4A4 \uACF5\uBC31\uC744 \uC815\uB9AC\uD55C \uB4A4 \uC904 \uB2E8\uC704\uB85C \uBE44\uAD50\uD569\uB2C8\uB2E4. \uBE48 \uC904, \uC8FC\uC11D, \uAD04\uD638\uB9CC \uC788\uB294 \uC904\uC740 \uAC74\uB108\uB701\uB2C8\uB2E4. \uC758\uBBF8 \uC788\uB294 \uC904 6\uC904 \uC774\uC0C1\uC744 \uD55C \uBE14\uB85D\uC73C\uB85C \uBD05\uB2C8\uB2E4. import\xB7using\xB7package\xB7namespace \uC904\uACFC enum \uBA64\uBC84 \uBAA9\uB85D\uC740 \uBE44\uAD50\uD558\uC9C0 \uC54A\uACE0, \uACB9\uCE58\uB294 \uBC18\uBCF5\uC740 \uD55C \uBC88\uB9CC \uBCF4\uC5EC \uC90D\uB2C8\uB2E4.",
|
|
9884
10619
|
"dup001.block": "\uC758\uBBF8 \uC788\uB294 {lines}\uC904({range}\uD589)\uC774 {copies}\uACF3\uC5D0 \uBC18\uBCF5\uB429\uB2C8\uB2E4.",
|
|
10620
|
+
"dup001.blockOverlap": "\uC758\uBBF8 \uC788\uB294 {lines}\uC904({range}\uD589)\uC774 {copies}\uACF3\uC5D0 \uC804\uBD80 \uB610\uB294 \uC77C\uBD80 \uBC18\uBCF5\uB429\uB2C8\uB2E4. \uACB9\uCE58\uB294 \uBC18\uBCF5\uC740 \uD55C \uBC88\uB9CC \uBCF4\uC5EC \uC90D\uB2C8\uB2E4.",
|
|
9885
10621
|
"dup001.fix": "\uACF5\uD1B5 \uCF54\uB4DC\uB97C \uD568\uC218\uB098 \uBAA8\uB4C8 \uD558\uB098\uB85C \uC62E\uAE30\uACE0 {copies}\uACF3\uC5D0\uC11C \uBD88\uB7EC \uC4F0\uC138\uC694.",
|
|
9886
10622
|
"dup.verify": "\uAC19\uC740 \uAC80\uC0AC\uB97C \uB2E4\uC2DC \uC2E4\uD589\uD574 {path}:{line}\uC774(\uAC00) \uB354 \uC774\uC0C1 \uB098\uC624\uC9C0 \uC54A\uB294\uC9C0 \uD655\uC778\uD558\uC138\uC694.",
|
|
9887
10623
|
"dup.reason.noCode": "\uC9C0\uC6D0\uD558\uB294 \uC18C\uC2A4 \uD30C\uC77C\uC744 \uCC3E\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",
|
|
9888
10624
|
"dup.reason.capped": "\uC911\uBCF5 \uBE14\uB85D\uC740 \uCC98\uC74C 50\uAC1C\uAE4C\uC9C0\uB9CC \uBCF4\uC5EC \uC90D\uB2C8\uB2E4.",
|
|
9889
10625
|
"rule.AGT-001": "\uC2A4\uD0AC \uD30C\uC77C(SKILL.md)",
|
|
9890
10626
|
"rule.AGT-002": "\uC11C\uB85C \uB2E4\uB978 \uADDC\uCE59",
|
|
9891
|
-
"agt001.scope": "SKILL.md\uC758 front matter\uB97C \uD655\uC778\uD569\uB2C8\uB2E4. name\xB7description\uC774 \uC788\uB294\uC9C0, name\uC774 \uC18C\uBB38\uC790\xB7\uD558\uC774\uD508 \uD615\uC2DD(\uCD5C\uB300 64\uC790)\uC774\uACE0 \uD3F4\uB354 \uC774\uB984\uACFC \uAC19\uC740\uC9C0, description\uC774 1024\uC790 \uC774\uD558\uC778\uC9C0, \uBCF8\uBB38\uC774 \uC788\uB294\uC9C0 \uBD05\uB2C8\uB2E4.",
|
|
9892
|
-
"agt002.scope":
|
|
10627
|
+
"agt001.scope": "SKILL.md\uC758 front matter\uB97C \uD655\uC778\uD569\uB2C8\uB2E4. name\xB7description\uC774 \uC788\uB294\uC9C0, name\uC774 \uC18C\uBB38\uC790\xB7\uD558\uC774\uD508 \uD615\uC2DD(\uCD5C\uB300 64\uC790)\uC774\uACE0 \uD3F4\uB354 \uC774\uB984\uACFC \uAC19\uC740\uC9C0, description\uC774 1024\uC790 \uC774\uD558\uC778\uC9C0, \uBCF8\uBB38\uC774 \uC788\uB294\uC9C0, \uBD80\uC791\uC6A9\uC774 \uC788\uC5B4 \uBCF4\uC774\uB294 \uC2A4\uD0AC\uC744 Claude\uAC00 \uC2A4\uC2A4\uB85C \uC2E4\uD589\uD560 \uC218 \uC788\uB294\uC9C0 \uBD05\uB2C8\uB2E4.",
|
|
10628
|
+
"agt002.scope": '\uC9C0\uC2DC \uD30C\uC77C\uB4E4\uC5D0 \uBD84\uBA85\uD558\uAC8C \uC801\uD78C \uD328\uD0A4\uC9C0 \uAD00\uB9AC\uC790(npm, pnpm, yarn, bun), \uB4E4\uC5EC\uC4F0\uAE30(\uACF5\uBC31, \uD0ED), Node.js \uBC84\uC804 \uADDC\uCE59\uC744 \uC601\uC5B4\xB7\uD55C\uAD6D\uC5B4\xB7\uC77C\uBCF8\uC5B4\xB7\uC911\uAD6D\uC5B4 \uBB38\uC7A5\uC5D0\uC11C \uBE44\uAD50\uD569\uB2C8\uB2E4. \uBD80\uC815\uBB38("npm\uC744 \uC0AC\uC6A9\uD558\uC9C0 \uB9C8\uC138\uC694")\uC740 \uADDC\uCE59\uC73C\uB85C \uBCF4\uC9C0 \uC54A\uACE0, \uD2B9\uC815 \uD658\uACBD\uC774\uB098 \uD3F4\uB354\uC5D0\uB9CC \uC801\uC6A9\uB418\uB294 \uADDC\uCE59\uC740 \uAC19\uC740 \uD658\uACBD\xB7\uD3F4\uB354\uC758 \uADDC\uCE59\uACFC\uB9CC \uBE44\uAD50\uD558\uBA70, \uC801\uD78C \uBC94\uC704 \uC548\uC758 \uBC84\uC804\uC740 \uC77C\uCE58\uB85C \uBD05\uB2C8\uB2E4. \uACB0\uACFC\uB294 \uAC80\uD1A0\uD560 \uD6C4\uBCF4\uC785\uB2C8\uB2E4.',
|
|
9893
10629
|
"agt.verify": "\uAC19\uC740 \uAC80\uC0AC\uB97C \uB2E4\uC2DC \uC2E4\uD589\uD574 {path}:{line}\uC774(\uAC00) \uB354 \uC774\uC0C1 \uB098\uC624\uC9C0 \uC54A\uB294\uC9C0 \uD655\uC778\uD558\uC138\uC694.",
|
|
10630
|
+
"rule.DOC-001": "\uBB38\uC11C\uC640 \uD504\uB85C\uC81D\uD2B8 \uBD88\uC77C\uCE58",
|
|
10631
|
+
"doc001.scope": "\uC9C0\uC2DC \uD30C\uC77C\uACFC README\uC758 \uBA85\uB839\xB7\uACBD\uB85C\uB97C \uD504\uB85C\uC81D\uD2B8\uC640 \uBE44\uAD50\uD569\uB2C8\uB2E4. \uD328\uD0A4\uC9C0 \uAD00\uB9AC\uC790\uC640 \uC7A0\uAE08 \uD30C\uC77C, npm/pnpm/yarn \uC2A4\uD06C\uB9BD\uD2B8\uC640 package.json, \uCF54\uB4DC \uD45C\uAE30 \uC18D \uD30C\uC77C \uACBD\uB85C\uC640 \uD30C\uC77C \uBAA9\uB85D, Docker \uBA85\uB839\uACFC Dockerfile\xB7compose \uD30C\uC77C. \uD655\uC2E4\uD55C \uACBD\uC6B0\uB9CC \uC54C\uB9AC\uACE0, \uC608\uC2DC\uC640 \uC870\uAC74\uBB38\uC740 \uAC74\uB108\uB701\uB2C8\uB2E4.",
|
|
10632
|
+
"doc001.reason.none": "\uC9C0\uC2DC \uD30C\uC77C\uC774\uB098 README\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
10633
|
+
"doc001.pm": "\uBA85\uB839\uC740 {used}\uB97C \uC4F0\uC9C0\uB9CC \uD504\uB85C\uC81D\uD2B8\uC5D0\uB294 {expected} \uC7A0\uAE08 \uD30C\uC77C({lockfile})\uB9CC \uC788\uC2B5\uB2C8\uB2E4.",
|
|
10634
|
+
"doc001.pm.fix": "\uBA85\uB839\uC744 {expected}\uB85C \uACE0\uCE58\uAC70\uB098, \uD504\uB85C\uC81D\uD2B8\uAC00 {used}\uB85C \uBC14\uB00C\uC5C8\uB2E4\uBA74 {lockfile}\uC744 \uC9C0\uC6B0\uC138\uC694.",
|
|
10635
|
+
"doc001.script": '"{command}"\uB294 \uC2A4\uD06C\uB9BD\uD2B8 "{script}"\uB97C \uC2E4\uD589\uD558\uC9C0\uB9CC {manifest}\uC5D0 \uADF8 \uC2A4\uD06C\uB9BD\uD2B8\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.',
|
|
10636
|
+
"doc001.script.fix": '{manifest}\uC5D0 "{script}" \uC2A4\uD06C\uB9BD\uD2B8\uB97C \uCD94\uAC00\uD558\uAC70\uB098 \uBA85\uB839\uC744 \uACE0\uCE58\uC138\uC694.',
|
|
10637
|
+
"doc001.path": "{ref}\uC774(\uAC00) \uD504\uB85C\uC81D\uD2B8\uC5D0 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
10638
|
+
"doc001.path.fix": "\uACBD\uB85C {ref}\uB97C \uACE0\uCE58\uAC70\uB098, \uD30C\uC77C\uC774 \uC5C6\uC5B4\uC84C\uB2E4\uBA74 \uC5B8\uAE09\uC744 \uC9C0\uC6B0\uC138\uC694.",
|
|
10639
|
+
"doc001.docker": '"{command}"\uC5D0\uB294 {file}\uC774(\uAC00) \uD544\uC694\uD558\uC9C0\uB9CC \uD504\uB85C\uC81D\uD2B8\uC5D0 \uC5C6\uC2B5\uB2C8\uB2E4.',
|
|
10640
|
+
"doc001.docker.fix": "{file}\uC744(\uB97C) \uCD94\uAC00\uD558\uAC70\uB098 Docker \uC548\uB0B4\uB97C \uC9C0\uC6B0\uC138\uC694.",
|
|
9894
10641
|
"agt001.reason.none": "SKILL.md \uD30C\uC77C\uC744 \uCC3E\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",
|
|
9895
10642
|
"agt001.noFrontMatter": "{path}\uC5D0 front matter\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
9896
10643
|
"agt001.noFrontMatter.fix": "{path} \uB9E8 \uC704\uC5D0 name\uACFC description\uC744 \uB2F4\uC740 --- front matter\uB97C \uB123\uC73C\uC138\uC694.",
|
|
@@ -9906,8 +10653,11 @@ var koT = {
|
|
|
9906
10653
|
"agt001.longDescription.fix": "{path}\uC758 description\uC744 \uC904\uC774\uACE0 \uC790\uC138\uD55C \uB0B4\uC6A9\uC740 \uBCF8\uBB38\uC73C\uB85C \uC62E\uAE30\uC138\uC694.",
|
|
9907
10654
|
"agt001.emptyBody": "{path}\uC758 front matter \uB4A4\uC5D0 \uC9C0\uC2DC \uB0B4\uC6A9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
9908
10655
|
"agt001.emptyBody.fix": "{path} \uBCF8\uBB38\uC5D0 \uC2A4\uD0AC\uC758 \uC9C0\uC2DC \uB0B4\uC6A9\uC744 \uC801\uC73C\uC138\uC694.",
|
|
9909
|
-
"
|
|
9910
|
-
"
|
|
10656
|
+
"agt001.autoSideEffect": '\uC2A4\uD0AC "{name}"\uC740(\uB294) \uBD80\uC791\uC6A9\uC774 \uC788\uC5B4 \uBCF4\uC774\uB294\uB370({word}) Claude\uAC00 \uC2A4\uC2A4\uB85C \uC2E4\uD589\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.',
|
|
10657
|
+
"agt001.autoSideEffect.fix": '{path}\uC758 front matter\uC5D0 "disable-model-invocation: true"\uB97C \uB123\uC5B4 \uC0AC\uB78C\uB9CC \uC2E4\uD589\uD558\uAC8C \uD558\uC138\uC694.',
|
|
10658
|
+
"agt002.package-manager": "\uC9C0\uC2DC \uBB38\uC11C\uC5D0 \uC11C\uB85C \uB2E4\uB978 \uD328\uD0A4\uC9C0 \uAD00\uB9AC\uC790\uAC00 \uC801\uD600 \uC788\uC2B5\uB2C8\uB2E4: {values}.",
|
|
10659
|
+
"agt002.indentation": "\uC9C0\uC2DC \uBB38\uC11C\uAC00 \uC11C\uB85C \uB2E4\uB978 \uB4E4\uC5EC\uC4F0\uAE30\uB97C \uC694\uAD6C\uD569\uB2C8\uB2E4: {values}.",
|
|
10660
|
+
"agt002.node-version": "\uC9C0\uC2DC \uBB38\uC11C\uAC00 \uC694\uAD6C\uD558\uB294 Node.js \uBC84\uC804\uC774 \uC11C\uB85C \uB9DE\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4: {values}.",
|
|
9911
10661
|
"agt002.fix": "{topic} \uADDC\uCE59\uC744 \uD558\uB098\uB85C \uC815\uD574 \uACF5\uD1B5 \uD30C\uC77C \uD55C \uACF3\uC5D0\uB9CC \uB0A8\uAE30\uACE0 \uB098\uBA38\uC9C0\uB294 \uC9C0\uC6B0\uC138\uC694.",
|
|
9912
10662
|
"rule.DEP-001": "\uC758\uC874\uC131 \uBC84\uC804 \uACE0\uC815",
|
|
9913
10663
|
"rule.DEP-002": "\uC54C\uB824\uC9C4 \uCDE8\uC57D\uC810(OSV)",
|
|
@@ -9924,7 +10674,7 @@ var koT = {
|
|
|
9924
10674
|
"rule.MCP-001": "MCP \uC124\uC815 \uAD6C\uC870",
|
|
9925
10675
|
"rule.MCP-002": "\uC704\uD5D8\uD55C MCP \uC124\uC815",
|
|
9926
10676
|
"mcp001.scope": "MCP \uD074\uB77C\uC774\uC5B8\uD2B8 \uC124\uC815(Claude Code .mcp.json, Cursor, VS Code, Gemini CLI, Claude Desktop, Codex config.toml)\uC744 \uB370\uC774\uD130\uB85C\uB9CC \uC77D\uC5B4 \uD544\uC218 \uD56D\uBAA9\uACFC \uD615\uC2DD\uC744 \uD655\uC778\uD569\uB2C8\uB2E4. \uC11C\uBC84\uB97C \uC2E4\uD589\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",
|
|
9927
|
-
"mcp002.scope": "\uC124\uC815\uC5D0 \uC9C1\uC811 \uC801\uC740 \uBE44\uBC00 \uD0A4, \uC178 \uD30C\uC774\uD504 \uC2E4\uD589, \uAD00\uB9AC\uC790 \uAD8C\uD55C \uBA85\uB839, \uBC84\uC804\uC744 \uACE0\uC815\uD558\uC9C0 \uC54A\uC740 \uC790\uB3D9 \uC124\uCE58, \uC6D0\uACA9 HTTP \uC8FC\uC18C\uB97C \uCC3E\uC2B5\uB2C8\uB2E4.",
|
|
10677
|
+
"mcp002.scope": "\uC124\uC815\uC5D0 \uC9C1\uC811 \uC801\uC740 \uBE44\uBC00 \uD0A4, \uC178 \uD30C\uC774\uD504 \uC2E4\uD589, \uAD00\uB9AC\uC790 \uAD8C\uD55C \uBA85\uB839, \uBC84\uC804\uC744 \uACE0\uC815\uD558\uC9C0 \uC54A\uC740 \uC790\uB3D9 \uC124\uCE58, \uC6D0\uACA9 HTTP \uC8FC\uC18C, \uB514\uC2A4\uD06C \uC804\uCCB4\uB098 \uD648 \uD3F4\uB354\uB97C \uC5EC\uB294 \uC11C\uBC84\uB97C \uCC3E\uC2B5\uB2C8\uB2E4.",
|
|
9928
10678
|
"mcp.reason.none": "MCP \uC124\uC815 \uD30C\uC77C\uC744 \uCC3E\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",
|
|
9929
10679
|
"mcp.verify": "\uAC19\uC740 \uAC80\uC0AC\uB97C \uB2E4\uC2DC \uC2E4\uD589\uD574 {path}:{line}\uC774(\uAC00) \uB354 \uC774\uC0C1 \uB098\uC624\uC9C0 \uC54A\uB294\uC9C0 \uD655\uC778\uD558\uC138\uC694.",
|
|
9930
10680
|
"mcp001.parse": "{path}\uC744(\uB97C) JSON\uC73C\uB85C \uC77D\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
@@ -9947,6 +10697,8 @@ var koT = {
|
|
|
9947
10697
|
"mcp002.unpinned.fix": '"{package}"\uB97C \uAC80\uD1A0\uD55C \uBC84\uC804\uC73C\uB85C \uACE0\uC815\uD558\uC138\uC694(\uC608: package@1.2.3).',
|
|
9948
10698
|
"mcp002.insecureUrl": '"{server}" \uC11C\uBC84\uAC00 \uC6D0\uACA9 \uC8FC\uC18C\uC5D0 \uC554\uD638\uD654\uB418\uC9C0 \uC54A\uC740 HTTP\uB85C \uC5F0\uACB0\uD569\uB2C8\uB2E4.',
|
|
9949
10699
|
"mcp002.insecureUrl.fix": '"{server}"\uC5D0\uB294 https:// \uC8FC\uC18C\uB97C \uC4F0\uC138\uC694.',
|
|
10700
|
+
"mcp002.broadAccess": '\uC11C\uBC84 "{server}"\uC5D0 {path}\uC744(\uB97C) \uB118\uACA8 \uB514\uC2A4\uD06C \uC804\uCCB4\uB098 \uD648 \uD3F4\uB354\uAC00 \uC5F4\uB9BD\uB2C8\uB2E4.',
|
|
10701
|
+
"mcp002.broadAccess.fix": '"{server}"\uC5D0\uB294 \uD544\uC694\uD55C \uD3F4\uB354\uB9CC, \uC608\uB97C \uB4E4\uC5B4 \uD504\uB85C\uC81D\uD2B8 \uD3F4\uB354\uB9CC \uB118\uAE30\uC138\uC694.',
|
|
9950
10702
|
"rule.SEC-001": "\uBE44\uBC00 \uD0A4 \uD328\uD134",
|
|
9951
10703
|
"rule.SEC-002": "\uBBFC\uAC10\uD55C \uD30C\uC77C",
|
|
9952
10704
|
"sec001.scope": "\uC77D\uC744 \uC218 \uC788\uB294 \uD14D\uC2A4\uD2B8 \uD30C\uC77C\uC5D0\uC11C \uC798 \uC54C\uB824\uC9C4 \uD0A4\xB7\uD1A0\uD070 \uD615\uC2DD\uC744 \uCC3E\uC2B5\uB2C8\uB2E4. \uAC12\uC740 \uAC00\uB824\uC11C \uBCF4\uC5EC \uC8FC\uACE0, \uC678\uBD80\uC5D0 \uBCF4\uB0B4 \uD655\uC778\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",
|
|
@@ -10026,17 +10778,29 @@ var jaT = {
|
|
|
10026
10778
|
"arc.reason.capped": "\u7D50\u679C\u306F\u6700\u521D\u306E 50 \u4EF6\u3060\u3051\u3092\u8868\u793A\u3057\u307E\u3059\u3002",
|
|
10027
10779
|
"arc.reason.listIncomplete": "\u30D5\u30A1\u30A4\u30EB\u4E00\u89A7\u304C\u4E0D\u5B8C\u5168\u306A\u305F\u3081\u3001\u4E00\u90E8\u306E import \u306F\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",
|
|
10028
10780
|
"rule.DUP-001": "\u91CD\u8907\u3057\u305F\u30B3\u30FC\u30C9\u30D6\u30ED\u30C3\u30AF",
|
|
10029
|
-
"dup001.scope": "\u30BD\u30FC\u30B9\u30D5\u30A1\u30A4\u30EB(JS/TS\u3001Python\u3001Go\u3001Rust\u3001Java\u3001Kotlin\u3001C#\u3001PHP\u3001Ruby\u3001Swift)\u3092\u524D\u5F8C\u306E\u7A7A\u767D\u3092\u6574\u3048\u3066\u884C\u5358\u4F4D\u3067\u6BD4\u8F03\u3057\u307E\u3059\u3002\u7A7A\u884C\u3001\u30B3\u30E1\u30F3\u30C8\u3001\u62EC\u5F27\u3060\u3051\u306E\u884C\u306F\u9664\u304D\u307E\u3059\u3002\u610F\u5473\u306E\u3042\u308B 6 \u884C\u4EE5\u4E0A\u3092 1 \u30D6\u30ED\u30C3\u30AF\u3068\u3057\u307E\u3059\u3002",
|
|
10781
|
+
"dup001.scope": "\u30BD\u30FC\u30B9\u30D5\u30A1\u30A4\u30EB(JS/TS\u3001Python\u3001Go\u3001Rust\u3001Java\u3001Kotlin\u3001C#\u3001PHP\u3001Ruby\u3001Swift)\u3092\u524D\u5F8C\u306E\u7A7A\u767D\u3092\u6574\u3048\u3066\u884C\u5358\u4F4D\u3067\u6BD4\u8F03\u3057\u307E\u3059\u3002\u7A7A\u884C\u3001\u30B3\u30E1\u30F3\u30C8\u3001\u62EC\u5F27\u3060\u3051\u306E\u884C\u306F\u9664\u304D\u307E\u3059\u3002\u610F\u5473\u306E\u3042\u308B 6 \u884C\u4EE5\u4E0A\u3092 1 \u30D6\u30ED\u30C3\u30AF\u3068\u3057\u307E\u3059\u3002import\u30FBusing\u30FBpackage\u30FBnamespace \u306E\u884C\u3068 enum \u306E\u30E1\u30F3\u30D0\u30FC\u4E00\u89A7\u306F\u6BD4\u8F03\u305B\u305A\u3001\u91CD\u306A\u308B\u7E70\u308A\u8FD4\u3057\u306F 1 \u4EF6\u306B\u307E\u3068\u3081\u307E\u3059\u3002",
|
|
10030
10782
|
"dup001.block": "\u610F\u5473\u306E\u3042\u308B {lines} \u884C({range} \u884C\u76EE)\u304C {copies} \u304B\u6240\u3067\u7E70\u308A\u8FD4\u3055\u308C\u3066\u3044\u307E\u3059\u3002",
|
|
10783
|
+
"dup001.blockOverlap": "\u610F\u5473\u306E\u3042\u308B {lines} \u884C({range} \u884C\u76EE)\u304C {copies} \u304B\u6240\u3067\u5168\u4F53\u307E\u305F\u306F\u4E00\u90E8\u7E70\u308A\u8FD4\u3055\u308C\u3066\u3044\u307E\u3059\u3002\u91CD\u306A\u308B\u7E70\u308A\u8FD4\u3057\u306F 1 \u4EF6\u306B\u307E\u3068\u3081\u3066\u3044\u307E\u3059\u3002",
|
|
10031
10784
|
"dup001.fix": "\u5171\u901A\u306E\u30B3\u30FC\u30C9\u3092 1 \u3064\u306E\u95A2\u6570\u304B\u30E2\u30B8\u30E5\u30FC\u30EB\u306B\u307E\u3068\u3081\u3001{copies} \u304B\u6240\u304B\u3089\u547C\u3073\u51FA\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
10032
10785
|
"dup.verify": "\u540C\u3058\u691C\u67FB\u3092\u518D\u5B9F\u884C\u3057\u3001{path}:{line} \u304C\u8868\u793A\u3055\u308C\u306A\u304F\u306A\u3063\u305F\u3053\u3068\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
10033
10786
|
"dup.reason.noCode": "\u5BFE\u5FDC\u3059\u308B\u30BD\u30FC\u30B9\u30D5\u30A1\u30A4\u30EB\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\u3002",
|
|
10034
10787
|
"dup.reason.capped": "\u91CD\u8907\u30D6\u30ED\u30C3\u30AF\u306F\u6700\u521D\u306E 50 \u4EF6\u3060\u3051\u3092\u8868\u793A\u3057\u307E\u3059\u3002",
|
|
10035
10788
|
"rule.AGT-001": "\u30B9\u30AD\u30EB\u30D5\u30A1\u30A4\u30EB(SKILL.md)",
|
|
10036
10789
|
"rule.AGT-002": "\u98DF\u3044\u9055\u3046\u898F\u7D04",
|
|
10037
|
-
"agt001.scope": "SKILL.md \u306E front matter \u3092\u78BA\u8A8D\u3057\u307E\u3059\u3002name \u3068 description \u304C\u3042\u308B\u304B\u3001name \u304C\u5C0F\u6587\u5B57\u3068\u30CF\u30A4\u30D5\u30F3(\u6700\u5927 64 \u6587\u5B57)\u3067\u30D5\u30A9\u30EB\u30C0\u30FC\u540D\u3068\
|
|
10038
|
-
"agt002.scope": "\u6307\u793A\u30D5\u30A1\u30A4\u30EB\u306B\u660E\u78BA\u306B\u66F8\u304B\u308C\u305F\u30D1\u30C3\u30B1\u30FC\u30B8\u30DE\u30CD\u30FC\u30B8\u30E3\u30FC(npm\u3001pnpm\u3001yarn\u3001bun)\
|
|
10790
|
+
"agt001.scope": "SKILL.md \u306E front matter \u3092\u78BA\u8A8D\u3057\u307E\u3059\u3002name \u3068 description \u304C\u3042\u308B\u304B\u3001name \u304C\u5C0F\u6587\u5B57\u3068\u30CF\u30A4\u30D5\u30F3\u306E\u5F62\u5F0F(\u6700\u5927 64 \u6587\u5B57)\u3067\u30D5\u30A9\u30EB\u30C0\u30FC\u540D\u3068\u540C\u3058\u304B\u3001description \u304C 1024 \u6587\u5B57\u4EE5\u5185\u304B\u3001\u672C\u6587\u304C\u3042\u308B\u304B\u3001\u526F\u4F5C\u7528\u304C\u3042\u308A\u305D\u3046\u306A\u30B9\u30AD\u30EB\u3092 Claude \u304C\u81EA\u5206\u3067\u5B9F\u884C\u3067\u304D\u308B\u304B\u3092\u898B\u307E\u3059\u3002",
|
|
10791
|
+
"agt002.scope": "\u6307\u793A\u30D5\u30A1\u30A4\u30EB\u306B\u660E\u78BA\u306B\u66F8\u304B\u308C\u305F\u30D1\u30C3\u30B1\u30FC\u30B8\u30DE\u30CD\u30FC\u30B8\u30E3\u30FC(npm\u3001pnpm\u3001yarn\u3001bun)\u3001\u30A4\u30F3\u30C7\u30F3\u30C8(\u30B9\u30DA\u30FC\u30B9\u3001\u30BF\u30D6)\u3001Node.js \u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u306E\u30EB\u30FC\u30EB\u3092\u3001\u82F1\u8A9E\u30FB\u97D3\u56FD\u8A9E\u30FB\u65E5\u672C\u8A9E\u30FB\u4E2D\u56FD\u8A9E\u306E\u6587\u304B\u3089\u6BD4\u3079\u307E\u3059\u3002\u5426\u5B9A\u6587(\u300Cnpm \u3092\u4F7F\u308F\u306A\u3044\u3067\u300D)\u306F\u30EB\u30FC\u30EB\u3068\u307F\u306A\u3055\u305A\u3001\u7279\u5B9A\u306E\u74B0\u5883\u3084\u30D5\u30A9\u30EB\u30C0\u30FC\u3060\u3051\u306E\u30EB\u30FC\u30EB\u306F\u540C\u3058\u74B0\u5883\u30FB\u30D5\u30A9\u30EB\u30C0\u30FC\u306E\u30EB\u30FC\u30EB\u3068\u3060\u3051\u6BD4\u3079\u3001\u66F8\u304B\u308C\u305F\u7BC4\u56F2\u5185\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u306F\u4E00\u81F4\u3068\u307F\u306A\u3057\u307E\u3059\u3002\u7D50\u679C\u306F\u78BA\u8A8D\u304C\u5FC5\u8981\u306A\u5019\u88DC\u3067\u3059\u3002",
|
|
10039
10792
|
"agt.verify": "\u540C\u3058\u691C\u67FB\u3092\u518D\u5B9F\u884C\u3057\u3001{path}:{line} \u304C\u8868\u793A\u3055\u308C\u306A\u304F\u306A\u3063\u305F\u3053\u3068\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
10793
|
+
"rule.DOC-001": "\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u3068\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u4E0D\u4E00\u81F4",
|
|
10794
|
+
"doc001.scope": "\u6307\u793A\u30D5\u30A1\u30A4\u30EB\u3068 README \u306E\u30B3\u30DE\u30F3\u30C9\u30FB\u30D1\u30B9\u3092\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3068\u6BD4\u3079\u307E\u3059\u3002\u30D1\u30C3\u30B1\u30FC\u30B8\u30DE\u30CD\u30FC\u30B8\u30E3\u30FC\u3068\u30ED\u30C3\u30AF\u30D5\u30A1\u30A4\u30EB\u3001npm/pnpm/yarn \u306E\u30B9\u30AF\u30EA\u30D7\u30C8\u3068 package.json\u3001\u30B3\u30FC\u30C9\u8868\u8A18\u5185\u306E\u30D5\u30A1\u30A4\u30EB\u30D1\u30B9\u3068\u30D5\u30A1\u30A4\u30EB\u4E00\u89A7\u3001Docker \u30B3\u30DE\u30F3\u30C9\u3068 Dockerfile\u30FBcompose \u30D5\u30A1\u30A4\u30EB\u3002\u78BA\u5B9F\u306A\u5834\u5408\u3060\u3051\u5831\u544A\u3057\u3001\u4F8B\u3068\u6761\u4EF6\u6587\u306F\u98DB\u3070\u3057\u307E\u3059\u3002",
|
|
10795
|
+
"doc001.reason.none": "\u6307\u793A\u30D5\u30A1\u30A4\u30EB\u3082 README \u3082\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
10796
|
+
"doc001.pm": "\u30B3\u30DE\u30F3\u30C9\u306F {used} \u3092\u4F7F\u3044\u307E\u3059\u304C\u3001\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306B\u306F {expected} \u306E\u30ED\u30C3\u30AF\u30D5\u30A1\u30A4\u30EB({lockfile})\u3057\u304B\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
10797
|
+
"doc001.pm.fix": "\u30B3\u30DE\u30F3\u30C9\u3092 {expected} \u7528\u306B\u76F4\u3059\u304B\u3001{used} \u306B\u79FB\u884C\u3057\u305F\u306A\u3089 {lockfile} \u3092\u524A\u9664\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
10798
|
+
"doc001.script": '"{command}" \u306F\u30B9\u30AF\u30EA\u30D7\u30C8 "{script}" \u3092\u5B9F\u884C\u3057\u307E\u3059\u304C\u3001{manifest} \u306B\u5B9A\u7FA9\u304C\u3042\u308A\u307E\u305B\u3093\u3002',
|
|
10799
|
+
"doc001.script.fix": '{manifest} \u306B "{script}" \u30B9\u30AF\u30EA\u30D7\u30C8\u3092\u8FFD\u52A0\u3059\u308B\u304B\u3001\u30B3\u30DE\u30F3\u30C9\u3092\u76F4\u3057\u3066\u304F\u3060\u3055\u3044\u3002',
|
|
10800
|
+
"doc001.path": "{ref} \u306F\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306B\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
10801
|
+
"doc001.path.fix": "\u30D1\u30B9 {ref} \u3092\u76F4\u3059\u304B\u3001\u30D5\u30A1\u30A4\u30EB\u304C\u306A\u304F\u306A\u3063\u305F\u306A\u3089\u8A18\u8FF0\u3092\u524A\u9664\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
10802
|
+
"doc001.docker": '"{command}" \u306B\u306F {file} \u304C\u5FC5\u8981\u3067\u3059\u304C\u3001\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306B\u3042\u308A\u307E\u305B\u3093\u3002',
|
|
10803
|
+
"doc001.docker.fix": "{file} \u3092\u8FFD\u52A0\u3059\u308B\u304B\u3001Docker \u306E\u8AAC\u660E\u3092\u524A\u9664\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
10040
10804
|
"agt001.reason.none": "SKILL.md \u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\u3002",
|
|
10041
10805
|
"agt001.noFrontMatter": "{path} \u306B front matter \u304C\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
10042
10806
|
"agt001.noFrontMatter.fix": "{path} \u306E\u5148\u982D\u306B name \u3068 description \u3092\u542B\u3080 --- front matter \u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
@@ -10052,8 +10816,11 @@ var jaT = {
|
|
|
10052
10816
|
"agt001.longDescription.fix": "{path} \u306E description \u3092\u77ED\u304F\u3057\u3001\u8A73\u7D30\u306F\u672C\u6587\u306B\u79FB\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
10053
10817
|
"agt001.emptyBody": "{path} \u306E front matter \u306E\u5F8C\u306B\u6307\u793A\u304C\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
10054
10818
|
"agt001.emptyBody.fix": "{path} \u306E\u672C\u6587\u306B\u30B9\u30AD\u30EB\u306E\u6307\u793A\u3092\u66F8\u3044\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
10055
|
-
"
|
|
10056
|
-
"
|
|
10819
|
+
"agt001.autoSideEffect": '\u30B9\u30AD\u30EB "{name}" \u306F\u526F\u4F5C\u7528\u304C\u3042\u308A\u305D\u3046\u3067\u3059({word})\u304C\u3001Claude \u304C\u81EA\u5206\u3067\u5B9F\u884C\u3067\u304D\u307E\u3059\u3002',
|
|
10820
|
+
"agt001.autoSideEffect.fix": '{path} \u306E front matter \u306B "disable-model-invocation: true" \u3092\u52A0\u3048\u3001\u4EBA\u3060\u3051\u304C\u5B9F\u884C\u3059\u308B\u3088\u3046\u306B\u3057\u3066\u304F\u3060\u3055\u3044\u3002',
|
|
10821
|
+
"agt002.package-manager": "\u6307\u793A\u30D5\u30A1\u30A4\u30EB\u306B\u7570\u306A\u308B\u30D1\u30C3\u30B1\u30FC\u30B8\u30DE\u30CD\u30FC\u30B8\u30E3\u30FC\u304C\u66F8\u304B\u308C\u3066\u3044\u307E\u3059: {values}\u3002",
|
|
10822
|
+
"agt002.indentation": "\u6307\u793A\u30D5\u30A1\u30A4\u30EB\u304C\u7570\u306A\u308B\u30A4\u30F3\u30C7\u30F3\u30C8\u3092\u6C42\u3081\u3066\u3044\u307E\u3059: {values}\u3002",
|
|
10823
|
+
"agt002.node-version": "\u6307\u793A\u30D5\u30A1\u30A4\u30EB\u304C\u6C42\u3081\u308B Node.js \u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u304C\u4E00\u81F4\u3057\u307E\u305B\u3093: {values}\u3002",
|
|
10057
10824
|
"agt002.fix": "{topic} \u306E\u30EB\u30FC\u30EB\u3092 1 \u3064\u306B\u6C7A\u3081\u3001\u5171\u901A\u30D5\u30A1\u30A4\u30EB 1 \u304B\u6240\u3060\u3051\u306B\u6B8B\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
10058
10825
|
"rule.DEP-001": "\u4F9D\u5B58\u95A2\u4FC2\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u56FA\u5B9A",
|
|
10059
10826
|
"rule.DEP-002": "\u65E2\u77E5\u306E\u8106\u5F31\u6027(OSV)",
|
|
@@ -10070,7 +10837,7 @@ var jaT = {
|
|
|
10070
10837
|
"rule.MCP-001": "MCP \u8A2D\u5B9A\u306E\u69CB\u9020",
|
|
10071
10838
|
"rule.MCP-002": "\u5371\u967A\u306A MCP \u8A2D\u5B9A",
|
|
10072
10839
|
"mcp001.scope": "MCP \u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u306E\u8A2D\u5B9A(Claude Code .mcp.json\u3001Cursor\u3001VS Code\u3001Gemini CLI\u3001Claude Desktop\u3001Codex config.toml)\u3092\u30C7\u30FC\u30BF\u3068\u3057\u3066\u8AAD\u307F\u3001\u5FC5\u9808\u9805\u76EE\u3068\u578B\u3092\u78BA\u8A8D\u3057\u307E\u3059\u3002\u30B5\u30FC\u30D0\u30FC\u306F\u8D77\u52D5\u3057\u307E\u305B\u3093\u3002",
|
|
10073
|
-
"mcp002.scope": "\u8A2D\u5B9A\u306B\u76F4\u63A5\u66F8\u304B\u308C\u305F\
|
|
10840
|
+
"mcp002.scope": "\u8A2D\u5B9A\u306B\u76F4\u63A5\u66F8\u304B\u308C\u305F\u79D8\u5BC6\u60C5\u5831\u3001\u30B7\u30A7\u30EB\u306E\u30D1\u30A4\u30D7\u5B9F\u884C\u3001\u7279\u6A29\u30B3\u30DE\u30F3\u30C9\u3001\u30D0\u30FC\u30B8\u30E7\u30F3\u3092\u56FA\u5B9A\u3057\u306A\u3044\u81EA\u52D5\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3001\u5E73\u6587 HTTP \u306E\u30EA\u30E2\u30FC\u30C8 URL\u3001\u30C7\u30A3\u30B9\u30AF\u5168\u4F53\u3084\u30DB\u30FC\u30E0\u30D5\u30A9\u30EB\u30C0\u30FC\u3092\u958B\u304F\u30B5\u30FC\u30D0\u30FC\u3092\u63A2\u3057\u307E\u3059\u3002",
|
|
10074
10841
|
"mcp.reason.none": "MCP \u306E\u8A2D\u5B9A\u30D5\u30A1\u30A4\u30EB\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3067\u3057\u305F\u3002",
|
|
10075
10842
|
"mcp.verify": "\u540C\u3058\u691C\u67FB\u3092\u518D\u5B9F\u884C\u3057\u3001{path}:{line} \u304C\u8868\u793A\u3055\u308C\u306A\u304F\u306A\u3063\u305F\u3053\u3068\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
10076
10843
|
"mcp001.parse": "{path} \u3092 JSON \u3068\u3057\u3066\u8AAD\u307F\u53D6\u308C\u307E\u305B\u3093\u3002",
|
|
@@ -10093,6 +10860,8 @@ var jaT = {
|
|
|
10093
10860
|
"mcp002.unpinned.fix": '"{package}" \u3092\u78BA\u8A8D\u6E08\u307F\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u306B\u56FA\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044(\u4F8B: package@1.2.3)\u3002',
|
|
10094
10861
|
"mcp002.insecureUrl": '\u30B5\u30FC\u30D0\u30FC "{server}" \u304C\u5E73\u6587\u306E HTTP \u3067\u30EA\u30E2\u30FC\u30C8 URL \u306B\u63A5\u7D9A\u3057\u307E\u3059\u3002',
|
|
10095
10862
|
"mcp002.insecureUrl.fix": '"{server}" \u306B\u306F https:// \u306E URL \u3092\u4F7F\u3063\u3066\u304F\u3060\u3055\u3044\u3002',
|
|
10863
|
+
"mcp002.broadAccess": '\u30B5\u30FC\u30D0\u30FC "{server}" \u306B {path} \u304C\u6E21\u3055\u308C\u3001\u30C7\u30A3\u30B9\u30AF\u5168\u4F53\u304B\u30DB\u30FC\u30E0\u30D5\u30A9\u30EB\u30C0\u30FC\u304C\u958B\u304B\u308C\u307E\u3059\u3002',
|
|
10864
|
+
"mcp002.broadAccess.fix": '"{server}" \u306B\u306F\u5FC5\u8981\u306A\u30D5\u30A9\u30EB\u30C0\u30FC\u3060\u3051\u3001\u305F\u3068\u3048\u3070\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u30D5\u30A9\u30EB\u30C0\u30FC\u3060\u3051\u3092\u6E21\u3057\u3066\u304F\u3060\u3055\u3044\u3002',
|
|
10096
10865
|
"rule.SEC-001": "\u8A8D\u8A3C\u60C5\u5831\u306E\u30D1\u30BF\u30FC\u30F3",
|
|
10097
10866
|
"rule.SEC-002": "\u6A5F\u5BC6\u30D5\u30A1\u30A4\u30EB",
|
|
10098
10867
|
"sec001.scope": "\u8AAD\u307F\u53D6\u308C\u308B\u30C6\u30AD\u30B9\u30C8\u30D5\u30A1\u30A4\u30EB\u304B\u3089\u3001\u3088\u304F\u77E5\u3089\u308C\u305F\u30AD\u30FC\u3084\u30C8\u30FC\u30AF\u30F3\u306E\u5F62\u5F0F\u3092\u63A2\u3057\u307E\u3059\u3002\u5024\u306F\u4F0F\u305B\u3066\u8868\u793A\u3057\u3001\u5916\u90E8\u3067\u78BA\u8A8D\u3059\u308B\u3053\u3068\u306F\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
@@ -10172,17 +10941,29 @@ var zhT = {
|
|
|
10172
10941
|
"arc.reason.capped": "\u53EA\u5217\u51FA\u524D 50 \u4E2A\u7ED3\u679C\u3002",
|
|
10173
10942
|
"arc.reason.listIncomplete": "\u6587\u4EF6\u5217\u8868\u4E0D\u5B8C\u6574\uFF0C\u90E8\u5206\u5BFC\u5165\u65E0\u6CD5\u786E\u8BA4\u3002",
|
|
10174
10943
|
"rule.DUP-001": "\u91CD\u590D\u4EE3\u7801\u5757",
|
|
10175
|
-
"dup001.scope": "\u53BB\u6389\u9996\u5C3E\u7A7A\u767D\u540E\u9010\u884C\u6BD4\u8F83\u6E90\u6587\u4EF6\uFF08JS/TS\u3001Python\u3001Go\u3001Rust\u3001Java\u3001Kotlin\u3001C#\u3001PHP\u3001Ruby\u3001Swift\uFF09\uFF0C\u8DF3\u8FC7\u7A7A\u884C\u3001\u6CE8\u91CA\u548C\u53EA\u6709\u62EC\u53F7\u7684\u884C\u3002\u8FDE\u7EED 6 \u884C\u4EE5\u4E0A\u7684\u6709\u6548\u4EE3\u7801\u89C6\u4E3A\u4E00\u4E2A\u5757\u3002",
|
|
10944
|
+
"dup001.scope": "\u53BB\u6389\u9996\u5C3E\u7A7A\u767D\u540E\u9010\u884C\u6BD4\u8F83\u6E90\u6587\u4EF6\uFF08JS/TS\u3001Python\u3001Go\u3001Rust\u3001Java\u3001Kotlin\u3001C#\u3001PHP\u3001Ruby\u3001Swift\uFF09\uFF0C\u8DF3\u8FC7\u7A7A\u884C\u3001\u6CE8\u91CA\u548C\u53EA\u6709\u62EC\u53F7\u7684\u884C\u3002\u8FDE\u7EED 6 \u884C\u4EE5\u4E0A\u7684\u6709\u6548\u4EE3\u7801\u89C6\u4E3A\u4E00\u4E2A\u5757\u3002\u4E0D\u6BD4\u8F83 import\u3001using\u3001package\u3001namespace \u884C\u548C enum \u6210\u5458\u5217\u8868\uFF0C\u91CD\u53E0\u7684\u91CD\u590D\u53EA\u663E\u793A\u4E00\u6B21\u3002",
|
|
10176
10945
|
"dup001.block": "{lines} \u884C\u6709\u6548\u4EE3\u7801\uFF08\u7B2C {range} \u884C\uFF09\u5728 {copies} \u5904\u91CD\u590D\u3002",
|
|
10946
|
+
"dup001.blockOverlap": "{lines} \u884C\u6709\u6548\u4EE3\u7801\uFF08\u7B2C {range} \u884C\uFF09\u5728 {copies} \u5904\u5168\u90E8\u6216\u90E8\u5206\u91CD\u590D\u3002\u91CD\u53E0\u7684\u91CD\u590D\u53EA\u663E\u793A\u4E00\u6B21\u3002",
|
|
10177
10947
|
"dup001.fix": "\u628A\u516C\u5171\u4EE3\u7801\u63D0\u53D6\u5230\u4E00\u4E2A\u51FD\u6570\u6216\u6A21\u5757\u4E2D\uFF0C\u5728\u8FD9 {copies} \u5904\u8C03\u7528\u3002",
|
|
10178
10948
|
"dup.verify": "\u518D\u6B21\u8FD0\u884C\u76F8\u540C\u7684\u68C0\u67E5\uFF0C\u786E\u8BA4 {path}:{line} \u4E0D\u518D\u51FA\u73B0\u3002",
|
|
10179
10949
|
"dup.reason.noCode": "\u672A\u627E\u5230\u652F\u6301\u7684\u6E90\u6587\u4EF6\u3002",
|
|
10180
10950
|
"dup.reason.capped": "\u53EA\u5217\u51FA\u524D 50 \u4E2A\u91CD\u590D\u4EE3\u7801\u5757\u3002",
|
|
10181
10951
|
"rule.AGT-001": "\u6280\u80FD\u6587\u4EF6\uFF08SKILL.md\uFF09",
|
|
10182
10952
|
"rule.AGT-002": "\u4E92\u76F8\u77DB\u76FE\u7684\u7EA6\u5B9A",
|
|
10183
|
-
"agt001.scope": "\u68C0\u67E5 SKILL.md \u7684 front matter\uFF1A\u662F\u5426\u6709 name \u548C description\uFF0Cname \u662F\u5426\u4E3A\u5C0F\u5199\u52A0\u8FDE\u5B57\u7B26\uFF08\u6700\u591A 64 \u4E2A\u5B57\u7B26\uFF09\
|
|
10184
|
-
"agt002.scope": "\u6BD4\u8F83\
|
|
10953
|
+
"agt001.scope": "\u68C0\u67E5 SKILL.md \u7684 front matter\uFF1A\u662F\u5426\u6709 name \u548C description\uFF0Cname \u662F\u5426\u4E3A\u5C0F\u5199\u52A0\u8FDE\u5B57\u7B26\u5F62\u5F0F\uFF08\u6700\u591A 64 \u4E2A\u5B57\u7B26\uFF09\u4E14\u4E0E\u6587\u4EF6\u5939\u540C\u540D\uFF0Cdescription \u662F\u5426\u4E0D\u8D85\u8FC7 1024 \u4E2A\u5B57\u7B26\uFF0C\u6B63\u6587\u662F\u5426\u5B58\u5728\uFF0C\u4EE5\u53CA\u770B\u8D77\u6765\u6709\u526F\u4F5C\u7528\u7684\u6280\u80FD\u662F\u5426\u53EF\u80FD\u88AB Claude \u81EA\u884C\u8FD0\u884C\u3002",
|
|
10954
|
+
"agt002.scope": "\u6BD4\u8F83\u6307\u4EE4\u6587\u4EF6\u4E2D\u4EE5\u82F1\u8BED\u3001\u97E9\u8BED\u3001\u65E5\u8BED\u6216\u4E2D\u6587\u660E\u786E\u5199\u51FA\u7684\u5305\u7BA1\u7406\u5668\uFF08npm\u3001pnpm\u3001yarn\u3001bun\uFF09\u3001\u7F29\u8FDB\uFF08\u7A7A\u683C\u3001\u5236\u8868\u7B26\uFF09\u548C Node.js \u7248\u672C\u89C4\u5219\u3002\u5426\u5B9A\u53E5\uFF08\u201C\u4E0D\u8981\u4F7F\u7528 npm\u201D\uFF09\u4E0D\u7B97\u89C4\u5219\uFF1B\u53EA\u9002\u7528\u4E8E\u67D0\u4E2A\u73AF\u5883\u6216\u76EE\u5F55\u7684\u89C4\u5219\u53EA\u4E0E\u540C\u4E00\u73AF\u5883\u6216\u76EE\u5F55\u7684\u89C4\u5219\u6BD4\u8F83\uFF1B\u5728\u6240\u5199\u8303\u56F4\u5185\u7684\u7248\u672C\u89C6\u4E3A\u4E00\u81F4\u3002\u7ED3\u679C\u662F\u5F85\u590D\u6838\u7684\u5019\u9009\u3002",
|
|
10185
10955
|
"agt.verify": "\u518D\u6B21\u8FD0\u884C\u76F8\u540C\u7684\u68C0\u67E5\uFF0C\u786E\u8BA4 {path}:{line} \u4E0D\u518D\u51FA\u73B0\u3002",
|
|
10956
|
+
"rule.DOC-001": "\u6587\u6863\u4E0E\u9879\u76EE\u4E0D\u4E00\u81F4",
|
|
10957
|
+
"doc001.scope": "\u628A\u6307\u4EE4\u6587\u4EF6\u548C README \u4E2D\u7684\u547D\u4EE4\u4E0E\u8DEF\u5F84\u540C\u9879\u76EE\u6BD4\u5BF9\uFF1A\u5305\u7BA1\u7406\u5668\u4E0E\u9501\u6587\u4EF6\u3001npm/pnpm/yarn \u811A\u672C\u4E0E package.json\u3001\u4EE3\u7801\u6807\u8BB0\u4E2D\u7684\u6587\u4EF6\u8DEF\u5F84\u4E0E\u6587\u4EF6\u5217\u8868\u3001Docker \u547D\u4EE4\u4E0E Dockerfile \u548C compose \u6587\u4EF6\u3002\u53EA\u62A5\u544A\u786E\u5B9A\u7684\u60C5\u51B5\uFF0C\u8DF3\u8FC7\u793A\u4F8B\u548C\u6761\u4EF6\u53E5\u3002",
|
|
10958
|
+
"doc001.reason.none": "\u6CA1\u6709\u627E\u5230\u6307\u4EE4\u6587\u4EF6\u6216 README\u3002",
|
|
10959
|
+
"doc001.pm": "\u547D\u4EE4\u4F7F\u7528 {used}\uFF0C\u4F46\u9879\u76EE\u53EA\u6709 {expected} \u7684\u9501\u6587\u4EF6\uFF08{lockfile}\uFF09\u3002",
|
|
10960
|
+
"doc001.pm.fix": "\u628A\u547D\u4EE4\u6539\u6210 {expected} \u7684\u5199\u6CD5\uFF1B\u5982\u679C\u9879\u76EE\u5DF2\u6539\u7528 {used}\uFF0C\u8BF7\u5220\u9664 {lockfile}\u3002",
|
|
10961
|
+
"doc001.script": "\u201C{command}\u201D\u4F1A\u8FD0\u884C\u811A\u672C\u201C{script}\u201D\uFF0C\u4F46 {manifest} \u4E2D\u6CA1\u6709\u5B9A\u4E49\u5B83\u3002",
|
|
10962
|
+
"doc001.script.fix": "\u5728 {manifest} \u4E2D\u6DFB\u52A0\u201C{script}\u201D\u811A\u672C\uFF0C\u6216\u6539\u6B63\u547D\u4EE4\u3002",
|
|
10963
|
+
"doc001.path": "\u9879\u76EE\u4E2D\u6CA1\u6709 {ref}\u3002",
|
|
10964
|
+
"doc001.path.fix": "\u6539\u6B63\u8DEF\u5F84 {ref}\uFF1B\u5982\u679C\u6587\u4EF6\u5DF2\u5220\u9664\uFF0C\u8BF7\u53BB\u6389\u8FD9\u5904\u5F15\u7528\u3002",
|
|
10965
|
+
"doc001.docker": "\u201C{command}\u201D\u9700\u8981 {file}\uFF0C\u4F46\u9879\u76EE\u4E2D\u6CA1\u6709\u3002",
|
|
10966
|
+
"doc001.docker.fix": "\u6DFB\u52A0 {file}\uFF0C\u6216\u5220\u9664 Docker \u8BF4\u660E\u3002",
|
|
10186
10967
|
"agt001.reason.none": "\u672A\u627E\u5230 SKILL.md \u6587\u4EF6\u3002",
|
|
10187
10968
|
"agt001.noFrontMatter": "{path} \u6CA1\u6709 front matter\u3002",
|
|
10188
10969
|
"agt001.noFrontMatter.fix": "\u5728 {path} \u5F00\u5934\u6DFB\u52A0\u5305\u542B name \u548C description \u7684 --- front matter\u3002",
|
|
@@ -10198,8 +10979,11 @@ var zhT = {
|
|
|
10198
10979
|
"agt001.longDescription.fix": "\u7F29\u77ED {path} \u7684 description\uFF0C\u628A\u7EC6\u8282\u79FB\u5230\u6B63\u6587\u3002",
|
|
10199
10980
|
"agt001.emptyBody": "{path} \u7684 front matter \u4E4B\u540E\u6CA1\u6709\u6307\u4EE4\u5185\u5BB9\u3002",
|
|
10200
10981
|
"agt001.emptyBody.fix": "\u5728 {path} \u7684\u6B63\u6587\u4E2D\u5199\u51FA\u6280\u80FD\u7684\u6307\u4EE4\u3002",
|
|
10201
|
-
"
|
|
10202
|
-
"
|
|
10982
|
+
"agt001.autoSideEffect": "\u6280\u80FD\u201C{name}\u201D\u770B\u8D77\u6765\u6709\u526F\u4F5C\u7528\uFF08{word}\uFF09\uFF0C\u4F46 Claude \u53EF\u80FD\u4F1A\u81EA\u884C\u8FD0\u884C\u5B83\u3002",
|
|
10983
|
+
"agt001.autoSideEffect.fix": '\u5728 {path} \u7684 front matter \u4E2D\u52A0\u5165 "disable-model-invocation: true"\uFF0C\u8BA9\u53EA\u6709\u4EBA\u80FD\u542F\u52A8\u5B83\u3002',
|
|
10984
|
+
"agt002.package-manager": "\u6307\u4EE4\u6587\u4EF6\u4E2D\u5199\u4E86\u4E0D\u540C\u7684\u5305\u7BA1\u7406\u5668\uFF1A{values}\u3002",
|
|
10985
|
+
"agt002.indentation": "\u6307\u4EE4\u6587\u4EF6\u8981\u6C42\u7684\u7F29\u8FDB\u4E0D\u540C\uFF1A{values}\u3002",
|
|
10986
|
+
"agt002.node-version": "\u6307\u4EE4\u6587\u4EF6\u8981\u6C42\u7684 Node.js \u7248\u672C\u4E0D\u4E00\u81F4\uFF1A{values}\u3002",
|
|
10203
10987
|
"agt002.fix": "\u786E\u5B9A\u4E00\u6761 {topic} \u89C4\u5219\uFF0C\u53EA\u5728\u4E00\u4E2A\u5171\u4EAB\u6587\u4EF6\u4E2D\u4FDD\u7559\uFF0C\u5220\u9664\u5176\u4ED6\u5199\u6CD5\u3002",
|
|
10204
10988
|
"rule.DEP-001": "\u4F9D\u8D56\u7248\u672C\u56FA\u5B9A",
|
|
10205
10989
|
"rule.DEP-002": "\u5DF2\u77E5\u6F0F\u6D1E\uFF08OSV\uFF09",
|
|
@@ -10216,7 +11000,7 @@ var zhT = {
|
|
|
10216
11000
|
"rule.MCP-001": "MCP \u914D\u7F6E\u7ED3\u6784",
|
|
10217
11001
|
"rule.MCP-002": "\u6709\u98CE\u9669\u7684 MCP \u8BBE\u7F6E",
|
|
10218
11002
|
"mcp001.scope": "\u4EC5\u4EE5\u6570\u636E\u65B9\u5F0F\u8BFB\u53D6 MCP \u5BA2\u6237\u7AEF\u914D\u7F6E\uFF08Claude Code .mcp.json\u3001Cursor\u3001VS Code\u3001Gemini CLI\u3001Claude Desktop\u3001Codex config.toml\uFF09\uFF0C\u68C0\u67E5\u5FC5\u586B\u9879\u548C\u7C7B\u578B\u3002\u4E0D\u4F1A\u542F\u52A8\u4EFB\u4F55\u670D\u52A1\u5668\u3002",
|
|
10219
|
-
"mcp002.scope": "\u67E5\u627E\
|
|
11003
|
+
"mcp002.scope": "\u67E5\u627E\u5199\u5728\u914D\u7F6E\u91CC\u7684\u5BC6\u94A5\u3001Shell \u7BA1\u9053\u6267\u884C\u3001\u7279\u6743\u547D\u4EE4\u3001\u672A\u56FA\u5B9A\u7248\u672C\u7684\u81EA\u52A8\u5B89\u88C5\u3001\u660E\u6587 HTTP \u8FDC\u7A0B\u5730\u5740\uFF0C\u4EE5\u53CA\u5F00\u653E\u6574\u4E2A\u78C1\u76D8\u6216\u4E3B\u76EE\u5F55\u7684\u670D\u52A1\u5668\u3002",
|
|
10220
11004
|
"mcp.reason.none": "\u672A\u627E\u5230 MCP \u914D\u7F6E\u6587\u4EF6\u3002",
|
|
10221
11005
|
"mcp.verify": "\u518D\u6B21\u8FD0\u884C\u76F8\u540C\u7684\u68C0\u67E5\uFF0C\u786E\u8BA4 {path}:{line} \u4E0D\u518D\u51FA\u73B0\u3002",
|
|
10222
11006
|
"mcp001.parse": "\u65E0\u6CD5\u5C06 {path} \u89E3\u6790\u4E3A JSON\u3002",
|
|
@@ -10239,6 +11023,8 @@ var zhT = {
|
|
|
10239
11023
|
"mcp002.unpinned.fix": '\u5C06 "{package}" \u56FA\u5B9A\u5230\u5DF2\u5BA1\u67E5\u7684\u7248\u672C\uFF08\u4F8B\u5982 package@1.2.3\uFF09\u3002',
|
|
10240
11024
|
"mcp002.insecureUrl": '\u670D\u52A1\u5668 "{server}" \u901A\u8FC7\u660E\u6587 HTTP \u8FDE\u63A5\u8FDC\u7A0B\u5730\u5740\u3002',
|
|
10241
11025
|
"mcp002.insecureUrl.fix": '"{server}" \u8BF7\u4F7F\u7528 https:// \u5730\u5740\u3002',
|
|
11026
|
+
"mcp002.broadAccess": "\u670D\u52A1\u5668\u201C{server}\u201D\u6536\u5230\u4E86 {path}\uFF0C\u4F1A\u5F00\u653E\u6574\u4E2A\u78C1\u76D8\u6216\u4E3B\u76EE\u5F55\u3002",
|
|
11027
|
+
"mcp002.broadAccess.fix": "\u53EA\u628A\u201C{server}\u201D\u9700\u8981\u7684\u6587\u4EF6\u5939\u4EA4\u7ED9\u5B83\uFF0C\u4F8B\u5982\u9879\u76EE\u6587\u4EF6\u5939\u3002",
|
|
10242
11028
|
"rule.SEC-001": "\u51ED\u636E\u6A21\u5F0F",
|
|
10243
11029
|
"rule.SEC-002": "\u654F\u611F\u6587\u4EF6",
|
|
10244
11030
|
"sec001.scope": "\u5728\u53EF\u8BFB\u53D6\u7684\u6587\u672C\u6587\u4EF6\u4E2D\u67E5\u627E\u5E38\u89C1\u7684\u5BC6\u94A5\u548C\u4EE4\u724C\u683C\u5F0F\u3002\u503C\u4F1A\u88AB\u906E\u76D6\uFF0C\u4E5F\u4E0D\u4F1A\u53D1\u9001\u5230\u5916\u90E8\u9A8C\u8BC1\u3002",
|
|
@@ -10256,14 +11042,248 @@ var zhT = {
|
|
|
10256
11042
|
"sec002.fix.share": "\u5206\u4EAB ZIP \u65F6\u6392\u9664 {path}\uFF0C\u6216\u786E\u8BA4\u5176\u4E2D\u6CA1\u6709\u771F\u5B9E\u7684\u673A\u5BC6\u4FE1\u606F\u3002"
|
|
10257
11043
|
};
|
|
10258
11044
|
|
|
11045
|
+
// ../core/src/i18n/messages-cli.ts
|
|
11046
|
+
var enC = {
|
|
11047
|
+
"cli.header": "RepoRefit \xB7 {tool} \xB7 {read} files read of {listed} listed \xB7 {seconds}s",
|
|
11048
|
+
"cli.summary": "{findings} findings (high {high}, medium {medium}, low {low}) \xB7 {passed}/{evaluated} checks passed",
|
|
11049
|
+
"cli.partial": "Partial scan: {reasons}",
|
|
11050
|
+
"cli.partialUnknown": "some files were not read.",
|
|
11051
|
+
"cli.symlinks": "Skipped {count} symbolic links (never followed).",
|
|
11052
|
+
"cli.ruleDetails": "Rule details: {url}",
|
|
11053
|
+
"cli.wroteReport": "Wrote {md} and {json}",
|
|
11054
|
+
"cli.wroteBadge": "Wrote {file}.",
|
|
11055
|
+
"cli.badgeReadme": "README (at the top of the checked folder): {snippet}",
|
|
11056
|
+
"cli.badgeOutside": "The badge is outside the checked folder ({folder}). Copy it into the repository, then link it from the README with a relative path.",
|
|
11057
|
+
"cli.cannotRead": "Cannot read {path}: {reason}",
|
|
11058
|
+
"cli.cannotWrite": "Cannot write {path}: {reason}",
|
|
11059
|
+
"cli.cannotCreate": "Cannot create the folder {path}: {reason}",
|
|
11060
|
+
"cli.reportIsFile": "Cannot write the report to {path}: it is a file. --out for report names a folder.",
|
|
11061
|
+
"cli.reason.notFound": "folder not found",
|
|
11062
|
+
"cli.reason.notFolder": "not a folder",
|
|
11063
|
+
"cli.reason.permission": "permission denied",
|
|
11064
|
+
"cli.reason.fileInPath": "part of the path is a file, not a folder",
|
|
11065
|
+
"cli.reason.isFolder": "it is a folder",
|
|
11066
|
+
"cli.reason.missingPath": "the path does not exist (check the drive or the folder name)",
|
|
11067
|
+
"cli.reason.diskFull": "no space left on the disk",
|
|
11068
|
+
"cli.reason.readOnly": "read-only file system",
|
|
11069
|
+
"cli.reason.tooLong": "the path is too long",
|
|
11070
|
+
"cli.compare.title": "RepoRefit compare \xB7 {tool}",
|
|
11071
|
+
"cli.compare.rule": "rule",
|
|
11072
|
+
"cli.compare.before": "before",
|
|
11073
|
+
"cli.compare.after": "after",
|
|
11074
|
+
"cli.compare.total": "total",
|
|
11075
|
+
"cli.compare.tokens": "Estimated tokens of the instruction files each agent reads at the project root (/):",
|
|
11076
|
+
"cli.compare.tokenLine": "{agent}: {before} -> {after} ({delta} tokens, {change})",
|
|
11077
|
+
"cli.compare.fewer": "{percent}% fewer",
|
|
11078
|
+
"cli.compare.more": "{percent}% more",
|
|
11079
|
+
"cli.compare.underOne": "under 1%",
|
|
11080
|
+
"cli.compare.same": "no change",
|
|
11081
|
+
"cli.compare.noRate": "no rate: the original had 0 tokens",
|
|
11082
|
+
"cli.compare.notComparable": "{agent}: not comparable (instruction files missing, conditional or partly read)",
|
|
11083
|
+
"cli.compare.noAgents": "No agent reads instruction files at / in either copy.",
|
|
11084
|
+
"cli.compare.limits": "Instruction files only: conversation, output, caching and actual charges are not included.",
|
|
11085
|
+
"cli.keep.title": "Rule preservation (string and structure checks only; a reworded rule goes to review, never counted as kept):",
|
|
11086
|
+
"cli.keep.none": "No instruction files in the original.",
|
|
11087
|
+
"cli.keep.line": "{agent} at /: {units} rules ({mandatory} mandatory), kept {kept}, probably the same {estimated}, review {review} (fixed tokens changed {fixed}), possible losses {missing}, out of scope {scope}, duplicates removed {duplicates}, new {added} -> {verdict}",
|
|
11088
|
+
"cli.keep.verdict.clean": "no loss found in the checked scope",
|
|
11089
|
+
"cli.keep.verdict.estimated": "no loss found; reworded rules look the same (estimate), read them once",
|
|
11090
|
+
"cli.keep.verdict.unknown": "cannot judge ({reasons})",
|
|
11091
|
+
"cli.keep.verdict.review": "review the revised copy",
|
|
11092
|
+
"cli.keep.grade.estimated": "probably the same",
|
|
11093
|
+
"cli.keep.grade.review": "review",
|
|
11094
|
+
"cli.keep.grade.missing": "possible loss",
|
|
11095
|
+
"cli.keep.grade.scope": "out of scope",
|
|
11096
|
+
"cli.keep.reason.reworded": "reworded",
|
|
11097
|
+
"cli.keep.reason.fixedChanged": "fixed tokens changed",
|
|
11098
|
+
"cli.keep.reason.outOfScope": "no longer read here",
|
|
11099
|
+
"cli.keep.unknown.partial": "partial scan",
|
|
11100
|
+
"cli.keep.unknown.unread": "unread files",
|
|
11101
|
+
"cli.keep.mandatory": "mandatory",
|
|
11102
|
+
"cli.keep.more": "\u2026 {count} more"
|
|
11103
|
+
};
|
|
11104
|
+
var koC = {
|
|
11105
|
+
"cli.header": "RepoRefit \xB7 {tool} \xB7 \uD30C\uC77C {listed}\uAC1C \uC911 {read}\uAC1C \uC77D\uC74C \xB7 {seconds}\uCD08",
|
|
11106
|
+
"cli.summary": "\uBC1C\uACAC {findings}\uAC74(\uB192\uC74C {high}, \uC911\uAC04 {medium}, \uB0AE\uC74C {low}) \xB7 \uAC80\uC0AC {evaluated}\uAC1C \uC911 {passed}\uAC1C \uD1B5\uACFC",
|
|
11107
|
+
"cli.partial": "\uBD80\uBD84 \uAC80\uC0AC: {reasons}",
|
|
11108
|
+
"cli.partialUnknown": "\uC77C\uBD80 \uD30C\uC77C\uC744 \uC77D\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",
|
|
11109
|
+
"cli.symlinks": "\uC2EC\uBCFC\uB9AD \uB9C1\uD06C {count}\uAC1C\uB294 \uB530\uB77C\uAC00\uC9C0 \uC54A\uACE0 \uAC74\uB108\uB6F0\uC5C8\uC2B5\uB2C8\uB2E4.",
|
|
11110
|
+
"cli.ruleDetails": "\uADDC\uCE59 \uC124\uBA85: {url}",
|
|
11111
|
+
"cli.wroteReport": "{md}, {json} \uD30C\uC77C\uC744 \uC800\uC7A5\uD588\uC2B5\uB2C8\uB2E4.",
|
|
11112
|
+
"cli.wroteBadge": "{file} \uD30C\uC77C\uC744 \uC800\uC7A5\uD588\uC2B5\uB2C8\uB2E4.",
|
|
11113
|
+
"cli.badgeReadme": "README(\uAC80\uC0AC\uD55C \uD3F4\uB354 \uB9E8 \uC704)\uC5D0 \uB123\uC744 \uB0B4\uC6A9: {snippet}",
|
|
11114
|
+
"cli.badgeOutside": "\uBC30\uC9C0\uAC00 \uAC80\uC0AC\uD55C \uD3F4\uB354({folder}) \uBC16\uC5D0 \uC788\uC2B5\uB2C8\uB2E4. \uC800\uC7A5\uC18C \uC548\uC73C\uB85C \uBCF5\uC0AC\uD55C \uB4A4 README\uC5D0\uC11C \uC0C1\uB300 \uACBD\uB85C\uB85C \uC5F0\uACB0\uD558\uC138\uC694.",
|
|
11115
|
+
"cli.cannotRead": "{path}\uC744(\uB97C) \uC77D\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: {reason}",
|
|
11116
|
+
"cli.cannotWrite": "{path}\uC5D0 \uC800\uC7A5\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: {reason}",
|
|
11117
|
+
"cli.cannotCreate": "{path} \uD3F4\uB354\uB97C \uB9CC\uB4E4 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: {reason}",
|
|
11118
|
+
"cli.reportIsFile": "{path}\uC5D0 \uBCF4\uACE0\uC11C\uB97C \uC800\uC7A5\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4: \uD30C\uC77C\uC785\uB2C8\uB2E4. report\uC758 --out\uC5D0\uB294 \uD3F4\uB354\uB97C \uC9C0\uC815\uD558\uC138\uC694.",
|
|
11119
|
+
"cli.reason.notFound": "\uD3F4\uB354\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4",
|
|
11120
|
+
"cli.reason.notFolder": "\uD3F4\uB354\uAC00 \uC544\uB2D9\uB2C8\uB2E4",
|
|
11121
|
+
"cli.reason.permission": "\uAD8C\uD55C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4",
|
|
11122
|
+
"cli.reason.fileInPath": "\uACBD\uB85C \uC911\uAC04\uC5D0 \uD3F4\uB354\uAC00 \uC544\uB2CC \uD30C\uC77C\uC774 \uC788\uC2B5\uB2C8\uB2E4",
|
|
11123
|
+
"cli.reason.isFolder": "\uD3F4\uB354\uC785\uB2C8\uB2E4",
|
|
11124
|
+
"cli.reason.missingPath": "\uACBD\uB85C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4(\uB4DC\uB77C\uC774\uBE0C\uB098 \uD3F4\uB354 \uC774\uB984\uC744 \uD655\uC778\uD558\uC138\uC694)",
|
|
11125
|
+
"cli.reason.diskFull": "\uB514\uC2A4\uD06C \uACF5\uAC04\uC774 \uBD80\uC871\uD569\uB2C8\uB2E4",
|
|
11126
|
+
"cli.reason.readOnly": "\uC77D\uAE30 \uC804\uC6A9 \uD30C\uC77C \uC2DC\uC2A4\uD15C\uC785\uB2C8\uB2E4",
|
|
11127
|
+
"cli.reason.tooLong": "\uACBD\uB85C\uAC00 \uB108\uBB34 \uAE41\uB2C8\uB2E4",
|
|
11128
|
+
"cli.compare.title": "RepoRefit \uBE44\uAD50 \xB7 {tool}",
|
|
11129
|
+
"cli.compare.rule": "\uADDC\uCE59",
|
|
11130
|
+
"cli.compare.before": "\uC6D0\uBCF8",
|
|
11131
|
+
"cli.compare.after": "\uC218\uC815\uBCF8",
|
|
11132
|
+
"cli.compare.total": "\uD569\uACC4",
|
|
11133
|
+
"cli.compare.tokens": "\uC5D0\uC774\uC804\uD2B8\uBCC4\uB85C \uD504\uB85C\uC81D\uD2B8 \uB9E8 \uC704(/)\uC5D0\uC11C \uC77D\uB294 \uC9C0\uC2DC \uD30C\uC77C\uC758 \uC608\uC0C1 \uD1A0\uD070:",
|
|
11134
|
+
"cli.compare.tokenLine": "{agent}: {before} -> {after} ({delta}\uD1A0\uD070, {change})",
|
|
11135
|
+
"cli.compare.fewer": "{percent}% \uAC10\uC18C",
|
|
11136
|
+
"cli.compare.more": "{percent}% \uC99D\uAC00",
|
|
11137
|
+
"cli.compare.underOne": "1% \uBBF8\uB9CC",
|
|
11138
|
+
"cli.compare.same": "\uBCC0\uD654 \uC5C6\uC74C",
|
|
11139
|
+
"cli.compare.noRate": "\uC6D0\uBCF8\uC774 0\uD1A0\uD070\uC774\uB77C \uBE44\uC728 \uC5C6\uC74C",
|
|
11140
|
+
"cli.compare.notComparable": "{agent}: \uBE44\uAD50\uD560 \uC218 \uC5C6\uC74C(\uC9C0\uC2DC \uD30C\uC77C\uC774 \uC5C6\uAC70\uB098, \uC870\uAC74\uBD80\uC774\uAC70\uB098, \uC77C\uBD80\uB9CC \uC77D\uC74C)",
|
|
11141
|
+
"cli.compare.noAgents": "\uB450 \uBC84\uC804 \uBAA8\uB450 /\uC5D0\uC11C \uC9C0\uC2DC \uD30C\uC77C\uC744 \uC77D\uB294 \uC5D0\uC774\uC804\uD2B8\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
11142
|
+
"cli.compare.limits": "\uC9C0\uC2DC \uD30C\uC77C\uB9CC \uC149\uB2C8\uB2E4. \uB300\uD654 \uB0B4\uC6A9, AI\uC758 \uB2F5\uBCC0, \uCE90\uC2DC\uC640 \uC2E4\uC81C \uC694\uAE08\uC740 \uD3EC\uD568\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",
|
|
11143
|
+
"cli.keep.title": "\uADDC\uCE59 \uBCF4\uC874(\uBB38\uC790\uC5F4\xB7\uAD6C\uC870 \uBE44\uAD50\uB9CC, \uBC14\uAFD4 \uC4F4 \uADDC\uCE59\uC740 \uBCF4\uC874\uC73C\uB85C \uC138\uC9C0 \uC54A\uACE0 \uAC80\uD1A0\uB85C \uBCF4\uB0C4):",
|
|
11144
|
+
"cli.keep.none": "\uC6D0\uBCF8\uC5D0 \uC9C0\uC2DC \uD30C\uC77C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",
|
|
11145
|
+
"cli.keep.line": "{agent}, /: \uADDC\uCE59 {units}\uAC1C(\uD544\uC218 {mandatory}\uAC1C), \uBCF4\uC874 {kept}, \uAC19\uC544 \uBCF4\uC784 {estimated}, \uAC80\uD1A0 {review}(\uACE0\uC815 \uD1A0\uD070 \uBCC0\uACBD {fixed}), \uC0AC\uB77C\uC84C\uC744 \uC218 \uC788\uC74C {missing}, \uBC94\uC704 \uBC16 {scope}, \uC911\uBCF5 \uC81C\uAC70 {duplicates}, \uC0C8 \uADDC\uCE59 {added} -> {verdict}",
|
|
11146
|
+
"cli.keep.verdict.clean": "\uD655\uC778\uD55C \uBC94\uC704\uC5D0\uC11C \uC783\uC740 \uADDC\uCE59 \uC5C6\uC74C",
|
|
11147
|
+
"cli.keep.verdict.estimated": "\uC783\uC740 \uADDC\uCE59 \uC5C6\uC74C. \uBC14\uAFD4 \uC4F4 \uADDC\uCE59\uC740 \uAC19\uC544 \uBCF4\uC774\uB2C8(\uCD94\uC815) \uD55C \uBC88 \uC77D\uC5B4 \uBCF4\uC138\uC694",
|
|
11148
|
+
"cli.keep.verdict.unknown": "\uD310\uB2E8\uD560 \uC218 \uC5C6\uC74C({reasons})",
|
|
11149
|
+
"cli.keep.verdict.review": "\uC218\uC815\uBCF8\uC744 \uAC80\uD1A0\uD558\uC138\uC694",
|
|
11150
|
+
"cli.keep.grade.estimated": "\uAC19\uC544 \uBCF4\uC784",
|
|
11151
|
+
"cli.keep.grade.review": "\uAC80\uD1A0",
|
|
11152
|
+
"cli.keep.grade.missing": "\uC0AC\uB77C\uC84C\uC744 \uC218 \uC788\uC74C",
|
|
11153
|
+
"cli.keep.grade.scope": "\uBC94\uC704 \uBC16",
|
|
11154
|
+
"cli.keep.reason.reworded": "\uBC14\uAFD4 \uC500",
|
|
11155
|
+
"cli.keep.reason.fixedChanged": "\uACE0\uC815 \uD1A0\uD070 \uBCC0\uACBD",
|
|
11156
|
+
"cli.keep.reason.outOfScope": "\uC5EC\uAE30\uC11C\uB294 \uB354 \uC774\uC0C1 \uC77D\uC9C0 \uC54A\uC74C",
|
|
11157
|
+
"cli.keep.unknown.partial": "\uBD80\uBD84 \uAC80\uC0AC",
|
|
11158
|
+
"cli.keep.unknown.unread": "\uC77D\uC9C0 \uBABB\uD55C \uD30C\uC77C",
|
|
11159
|
+
"cli.keep.mandatory": "\uD544\uC218",
|
|
11160
|
+
"cli.keep.more": "\u2026 {count}\uAC1C \uB354"
|
|
11161
|
+
};
|
|
11162
|
+
var jaC = {
|
|
11163
|
+
"cli.header": "RepoRefit \xB7 {tool} \xB7 {listed} \u4EF6\u4E2D {read} \u4EF6\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u8AAD\u307F\u8FBC\u307F \xB7 {seconds} \u79D2",
|
|
11164
|
+
"cli.summary": "\u691C\u51FA {findings} \u4EF6(\u9AD8 {high}\u3001\u4E2D {medium}\u3001\u4F4E {low}) \xB7 \u691C\u67FB {evaluated} \u4EF6\u4E2D {passed} \u4EF6\u5408\u683C",
|
|
11165
|
+
"cli.partial": "\u90E8\u5206\u7684\u306A\u691C\u67FB: {reasons}",
|
|
11166
|
+
"cli.partialUnknown": "\u4E00\u90E8\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u8AAD\u3081\u307E\u305B\u3093\u3067\u3057\u305F\u3002",
|
|
11167
|
+
"cli.symlinks": "\u30B7\u30F3\u30DC\u30EA\u30C3\u30AF\u30EA\u30F3\u30AF {count} \u4EF6\u306F\u305F\u3069\u3089\u305A\u306B\u30B9\u30AD\u30C3\u30D7\u3057\u307E\u3057\u305F\u3002",
|
|
11168
|
+
"cli.ruleDetails": "\u30EB\u30FC\u30EB\u306E\u8AAC\u660E: {url}",
|
|
11169
|
+
"cli.wroteReport": "{md} \u3068 {json} \u3092\u66F8\u304D\u51FA\u3057\u307E\u3057\u305F\u3002",
|
|
11170
|
+
"cli.wroteBadge": "{file} \u3092\u66F8\u304D\u51FA\u3057\u307E\u3057\u305F\u3002",
|
|
11171
|
+
"cli.badgeReadme": "README(\u691C\u67FB\u3057\u305F\u30D5\u30A9\u30EB\u30C0\u30FC\u306E\u6700\u4E0A\u4F4D)\u306B\u5165\u308C\u308B\u5185\u5BB9: {snippet}",
|
|
11172
|
+
"cli.badgeOutside": "\u30D0\u30C3\u30B8\u306F\u691C\u67FB\u3057\u305F\u30D5\u30A9\u30EB\u30C0\u30FC({folder})\u306E\u5916\u306B\u3042\u308A\u307E\u3059\u3002\u30EA\u30DD\u30B8\u30C8\u30EA\u5185\u306B\u30B3\u30D4\u30FC\u3057\u3066\u304B\u3089\u3001README \u304B\u3089\u76F8\u5BFE\u30D1\u30B9\u3067\u30EA\u30F3\u30AF\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
11173
|
+
"cli.cannotRead": "{path} \u3092\u8AAD\u3081\u307E\u305B\u3093: {reason}",
|
|
11174
|
+
"cli.cannotWrite": "{path} \u306B\u66F8\u304D\u8FBC\u3081\u307E\u305B\u3093: {reason}",
|
|
11175
|
+
"cli.cannotCreate": "\u30D5\u30A9\u30EB\u30C0\u30FC {path} \u3092\u4F5C\u6210\u3067\u304D\u307E\u305B\u3093: {reason}",
|
|
11176
|
+
"cli.reportIsFile": "{path} \u306B\u30EC\u30DD\u30FC\u30C8\u3092\u66F8\u304D\u8FBC\u3081\u307E\u305B\u3093: \u30D5\u30A1\u30A4\u30EB\u3067\u3059\u3002report \u306E --out \u306B\u306F\u30D5\u30A9\u30EB\u30C0\u30FC\u3092\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
11177
|
+
"cli.reason.notFound": "\u30D5\u30A9\u30EB\u30C0\u30FC\u304C\u3042\u308A\u307E\u305B\u3093",
|
|
11178
|
+
"cli.reason.notFolder": "\u30D5\u30A9\u30EB\u30C0\u30FC\u3067\u306F\u3042\u308A\u307E\u305B\u3093",
|
|
11179
|
+
"cli.reason.permission": "\u6A29\u9650\u304C\u3042\u308A\u307E\u305B\u3093",
|
|
11180
|
+
"cli.reason.fileInPath": "\u30D1\u30B9\u306E\u9014\u4E2D\u306B\u30D5\u30A9\u30EB\u30C0\u30FC\u3067\u306F\u306A\u304F\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u3059",
|
|
11181
|
+
"cli.reason.isFolder": "\u30D5\u30A9\u30EB\u30C0\u30FC\u3067\u3059",
|
|
11182
|
+
"cli.reason.missingPath": "\u30D1\u30B9\u304C\u3042\u308A\u307E\u305B\u3093(\u30C9\u30E9\u30A4\u30D6\u3084\u30D5\u30A9\u30EB\u30C0\u30FC\u540D\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044)",
|
|
11183
|
+
"cli.reason.diskFull": "\u30C7\u30A3\u30B9\u30AF\u306E\u7A7A\u304D\u304C\u3042\u308A\u307E\u305B\u3093",
|
|
11184
|
+
"cli.reason.readOnly": "\u8AAD\u307F\u53D6\u308A\u5C02\u7528\u306E\u30D5\u30A1\u30A4\u30EB\u30B7\u30B9\u30C6\u30E0\u3067\u3059",
|
|
11185
|
+
"cli.reason.tooLong": "\u30D1\u30B9\u304C\u9577\u3059\u304E\u307E\u3059",
|
|
11186
|
+
"cli.compare.title": "RepoRefit \u6BD4\u8F03 \xB7 {tool}",
|
|
11187
|
+
"cli.compare.rule": "\u30EB\u30FC\u30EB",
|
|
11188
|
+
"cli.compare.before": "\u5143",
|
|
11189
|
+
"cli.compare.after": "\u4FEE\u6B63\u7248",
|
|
11190
|
+
"cli.compare.total": "\u5408\u8A08",
|
|
11191
|
+
"cli.compare.tokens": "\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u3054\u3068\u306B\u3001\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u6700\u4E0A\u4F4D(/)\u3067\u8AAD\u3080\u6307\u793A\u30D5\u30A1\u30A4\u30EB\u306E\u63A8\u5B9A\u30C8\u30FC\u30AF\u30F3:",
|
|
11192
|
+
"cli.compare.tokenLine": "{agent}: {before} -> {after}({delta} \u30C8\u30FC\u30AF\u30F3\u3001{change})",
|
|
11193
|
+
"cli.compare.fewer": "{percent}% \u6E1B\u5C11",
|
|
11194
|
+
"cli.compare.more": "{percent}% \u5897\u52A0",
|
|
11195
|
+
"cli.compare.underOne": "1% \u672A\u6E80",
|
|
11196
|
+
"cli.compare.same": "\u5909\u5316\u306A\u3057",
|
|
11197
|
+
"cli.compare.noRate": "\u5143\u304C 0 \u30C8\u30FC\u30AF\u30F3\u306E\u305F\u3081\u5272\u5408\u306A\u3057",
|
|
11198
|
+
"cli.compare.notComparable": "{agent}: \u6BD4\u8F03\u3067\u304D\u307E\u305B\u3093(\u6307\u793A\u30D5\u30A1\u30A4\u30EB\u304C\u306A\u3044\u3001\u6761\u4EF6\u4ED8\u304D\u3001\u307E\u305F\u306F\u4E00\u90E8\u3060\u3051\u8AAD\u307F\u8FBC\u307F)",
|
|
11199
|
+
"cli.compare.noAgents": "\u3069\u3061\u3089\u306E\u7248\u3067\u3082\u3001/ \u3067\u6307\u793A\u30D5\u30A1\u30A4\u30EB\u3092\u8AAD\u3080\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u306F\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
11200
|
+
"cli.compare.limits": "\u6307\u793A\u30D5\u30A1\u30A4\u30EB\u3060\u3051\u3092\u6570\u3048\u307E\u3059\u3002\u4F1A\u8A71\u3001AI \u306E\u51FA\u529B\u3001\u30AD\u30E3\u30C3\u30B7\u30E5\u3001\u5B9F\u969B\u306E\u6599\u91D1\u306F\u542B\u307F\u307E\u305B\u3093\u3002",
|
|
11201
|
+
"cli.keep.title": "\u30EB\u30FC\u30EB\u306E\u4FDD\u6301(\u6587\u5B57\u5217\u3068\u69CB\u9020\u306E\u6BD4\u8F03\u306E\u307F\u3002\u8A00\u3044\u63DB\u3048\u305F\u30EB\u30FC\u30EB\u306F\u4FDD\u6301\u306B\u6570\u3048\u305A\u78BA\u8A8D\u306B\u56DE\u3057\u307E\u3059):",
|
|
11202
|
+
"cli.keep.none": "\u5143\u306E\u7248\u306B\u6307\u793A\u30D5\u30A1\u30A4\u30EB\u304C\u3042\u308A\u307E\u305B\u3093\u3002",
|
|
11203
|
+
"cli.keep.line": "{agent}\u3001/: \u30EB\u30FC\u30EB {units} \u4EF6(\u5FC5\u9808 {mandatory} \u4EF6)\u3001\u4FDD\u6301 {kept}\u3001\u540C\u3058\u306B\u898B\u3048\u308B {estimated}\u3001\u78BA\u8A8D {review}(\u56FA\u5B9A\u30C8\u30FC\u30AF\u30F3\u5909\u66F4 {fixed})\u3001\u5931\u308F\u308C\u305F\u53EF\u80FD\u6027 {missing}\u3001\u7BC4\u56F2\u5916 {scope}\u3001\u91CD\u8907\u524A\u9664 {duplicates}\u3001\u65B0\u898F {added} -> {verdict}",
|
|
11204
|
+
"cli.keep.verdict.clean": "\u78BA\u8A8D\u3057\u305F\u7BC4\u56F2\u3067\u5931\u308F\u308C\u305F\u30EB\u30FC\u30EB\u306F\u3042\u308A\u307E\u305B\u3093",
|
|
11205
|
+
"cli.keep.verdict.estimated": "\u5931\u308F\u308C\u305F\u30EB\u30FC\u30EB\u306F\u3042\u308A\u307E\u305B\u3093\u3002\u8A00\u3044\u63DB\u3048\u305F\u30EB\u30FC\u30EB\u306F\u540C\u3058\u306B\u898B\u3048\u307E\u3059(\u63A8\u5B9A)\u3002\u4E00\u5EA6\u8AAD\u3093\u3067\u304F\u3060\u3055\u3044",
|
|
11206
|
+
"cli.keep.verdict.unknown": "\u5224\u65AD\u3067\u304D\u307E\u305B\u3093({reasons})",
|
|
11207
|
+
"cli.keep.verdict.review": "\u4FEE\u6B63\u7248\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044",
|
|
11208
|
+
"cli.keep.grade.estimated": "\u540C\u3058\u306B\u898B\u3048\u308B",
|
|
11209
|
+
"cli.keep.grade.review": "\u78BA\u8A8D",
|
|
11210
|
+
"cli.keep.grade.missing": "\u5931\u308F\u308C\u305F\u53EF\u80FD\u6027",
|
|
11211
|
+
"cli.keep.grade.scope": "\u7BC4\u56F2\u5916",
|
|
11212
|
+
"cli.keep.reason.reworded": "\u8A00\u3044\u63DB\u3048",
|
|
11213
|
+
"cli.keep.reason.fixedChanged": "\u56FA\u5B9A\u30C8\u30FC\u30AF\u30F3\u5909\u66F4",
|
|
11214
|
+
"cli.keep.reason.outOfScope": "\u3053\u3053\u3067\u306F\u8AAD\u307E\u308C\u306A\u304F\u306A\u3063\u305F",
|
|
11215
|
+
"cli.keep.unknown.partial": "\u90E8\u5206\u7684\u306A\u691C\u67FB",
|
|
11216
|
+
"cli.keep.unknown.unread": "\u8AAD\u3081\u306A\u3044\u30D5\u30A1\u30A4\u30EB",
|
|
11217
|
+
"cli.keep.mandatory": "\u5FC5\u9808",
|
|
11218
|
+
"cli.keep.more": "\u2026 \u307B\u304B {count} \u4EF6"
|
|
11219
|
+
};
|
|
11220
|
+
var zhC = {
|
|
11221
|
+
"cli.header": "RepoRefit \xB7 {tool} \xB7 \u5DF2\u8BFB\u53D6 {listed} \u4E2A\u6587\u4EF6\u4E2D\u7684 {read} \u4E2A \xB7 {seconds} \u79D2",
|
|
11222
|
+
"cli.summary": "\u53D1\u73B0 {findings} \u9879\uFF08\u9AD8 {high}\u3001\u4E2D {medium}\u3001\u4F4E {low}\uFF09\xB7 {evaluated} \u9879\u68C0\u67E5\u4E2D {passed} \u9879\u901A\u8FC7",
|
|
11223
|
+
"cli.partial": "\u90E8\u5206\u68C0\u67E5\uFF1A{reasons}",
|
|
11224
|
+
"cli.partialUnknown": "\u6709\u4E9B\u6587\u4EF6\u672A\u80FD\u8BFB\u53D6\u3002",
|
|
11225
|
+
"cli.symlinks": "\u5DF2\u8DF3\u8FC7 {count} \u4E2A\u7B26\u53F7\u94FE\u63A5\uFF08\u4ECE\u4E0D\u8DDF\u968F\uFF09\u3002",
|
|
11226
|
+
"cli.ruleDetails": "\u89C4\u5219\u8BF4\u660E\uFF1A{url}",
|
|
11227
|
+
"cli.wroteReport": "\u5DF2\u5199\u5165 {md} \u548C {json}",
|
|
11228
|
+
"cli.wroteBadge": "\u5DF2\u5199\u5165 {file}\u3002",
|
|
11229
|
+
"cli.badgeReadme": "README\uFF08\u4F4D\u4E8E\u6240\u68C0\u67E5\u6587\u4EF6\u5939\u7684\u9876\u5C42\uFF09\u4E2D\u52A0\u5165\uFF1A{snippet}",
|
|
11230
|
+
"cli.badgeOutside": "\u5FBD\u7AE0\u4F4D\u4E8E\u6240\u68C0\u67E5\u7684\u6587\u4EF6\u5939\uFF08{folder}\uFF09\u4E4B\u5916\u3002\u8BF7\u5148\u590D\u5236\u5230\u4ED3\u5E93\u5185\uFF0C\u518D\u5728 README \u4E2D\u7528\u76F8\u5BF9\u8DEF\u5F84\u94FE\u63A5\u3002",
|
|
11231
|
+
"cli.cannotRead": "\u65E0\u6CD5\u8BFB\u53D6 {path}\uFF1A{reason}",
|
|
11232
|
+
"cli.cannotWrite": "\u65E0\u6CD5\u5199\u5165 {path}\uFF1A{reason}",
|
|
11233
|
+
"cli.cannotCreate": "\u65E0\u6CD5\u521B\u5EFA\u6587\u4EF6\u5939 {path}\uFF1A{reason}",
|
|
11234
|
+
"cli.reportIsFile": "\u65E0\u6CD5\u628A\u62A5\u544A\u5199\u5165 {path}\uFF1A\u5B83\u662F\u6587\u4EF6\u3002report \u7684 --out \u5E94\u6307\u5B9A\u6587\u4EF6\u5939\u3002",
|
|
11235
|
+
"cli.reason.notFound": "\u6587\u4EF6\u5939\u4E0D\u5B58\u5728",
|
|
11236
|
+
"cli.reason.notFolder": "\u4E0D\u662F\u6587\u4EF6\u5939",
|
|
11237
|
+
"cli.reason.permission": "\u6CA1\u6709\u6743\u9650",
|
|
11238
|
+
"cli.reason.fileInPath": "\u8DEF\u5F84\u4E2D\u6709\u4E00\u90E8\u5206\u662F\u6587\u4EF6\u800C\u4E0D\u662F\u6587\u4EF6\u5939",
|
|
11239
|
+
"cli.reason.isFolder": "\u5B83\u662F\u6587\u4EF6\u5939",
|
|
11240
|
+
"cli.reason.missingPath": "\u8DEF\u5F84\u4E0D\u5B58\u5728\uFF08\u8BF7\u68C0\u67E5\u9A71\u52A8\u5668\u6216\u6587\u4EF6\u5939\u540D\u79F0\uFF09",
|
|
11241
|
+
"cli.reason.diskFull": "\u78C1\u76D8\u7A7A\u95F4\u4E0D\u8DB3",
|
|
11242
|
+
"cli.reason.readOnly": "\u53EA\u8BFB\u6587\u4EF6\u7CFB\u7EDF",
|
|
11243
|
+
"cli.reason.tooLong": "\u8DEF\u5F84\u592A\u957F",
|
|
11244
|
+
"cli.compare.title": "RepoRefit \u6BD4\u8F83 \xB7 {tool}",
|
|
11245
|
+
"cli.compare.rule": "\u89C4\u5219",
|
|
11246
|
+
"cli.compare.before": "\u539F\u7248",
|
|
11247
|
+
"cli.compare.after": "\u4FEE\u6539\u7248",
|
|
11248
|
+
"cli.compare.total": "\u5408\u8BA1",
|
|
11249
|
+
"cli.compare.tokens": "\u5404\u4EE3\u7406\u5728\u9879\u76EE\u9876\u5C42\uFF08/\uFF09\u8BFB\u53D6\u7684\u6307\u4EE4\u6587\u4EF6\u7684\u4F30\u8BA1 token\uFF1A",
|
|
11250
|
+
"cli.compare.tokenLine": "{agent}\uFF1A{before} -> {after}\uFF08{delta} token\uFF0C{change}\uFF09",
|
|
11251
|
+
"cli.compare.fewer": "\u51CF\u5C11 {percent}%",
|
|
11252
|
+
"cli.compare.more": "\u589E\u52A0 {percent}%",
|
|
11253
|
+
"cli.compare.underOne": "\u4E0D\u5230 1%",
|
|
11254
|
+
"cli.compare.same": "\u6CA1\u6709\u53D8\u5316",
|
|
11255
|
+
"cli.compare.noRate": "\u539F\u7248\u4E3A 0 token\uFF0C\u65E0\u6CD5\u8BA1\u7B97\u6BD4\u4F8B",
|
|
11256
|
+
"cli.compare.notComparable": "{agent}\uFF1A\u65E0\u6CD5\u6BD4\u8F83\uFF08\u6307\u4EE4\u6587\u4EF6\u7F3A\u5931\u3001\u6309\u6761\u4EF6\u52A0\u8F7D\u6216\u53EA\u8BFB\u53D6\u4E86\u4E00\u90E8\u5206\uFF09",
|
|
11257
|
+
"cli.compare.noAgents": "\u4E24\u4E2A\u7248\u672C\u4E2D\u90FD\u6CA1\u6709\u4EE3\u7406\u5728 / \u8BFB\u53D6\u6307\u4EE4\u6587\u4EF6\u3002",
|
|
11258
|
+
"cli.compare.limits": "\u53EA\u7EDF\u8BA1\u6307\u4EE4\u6587\u4EF6\uFF0C\u4E0D\u5305\u62EC\u5BF9\u8BDD\u3001AI \u8F93\u51FA\u3001\u7F13\u5B58\u548C\u5B9E\u9645\u8D39\u7528\u3002",
|
|
11259
|
+
"cli.keep.title": "\u89C4\u5219\u4FDD\u7559\uFF08\u53EA\u6BD4\u8F83\u5B57\u7B26\u4E32\u548C\u7ED3\u6784\uFF1B\u6539\u5199\u7684\u89C4\u5219\u4E0D\u7B97\u4FDD\u7559\uFF0C\u800C\u662F\u4EA4\u7ED9\u590D\u6838\uFF09\uFF1A",
|
|
11260
|
+
"cli.keep.none": "\u539F\u7248\u4E2D\u6CA1\u6709\u6307\u4EE4\u6587\u4EF6\u3002",
|
|
11261
|
+
"cli.keep.line": "{agent}\uFF0C/\uFF1A\u89C4\u5219 {units} \u6761\uFF08\u5FC5\u987B {mandatory} \u6761\uFF09\uFF0C\u4FDD\u7559 {kept}\uFF0C\u770B\u4F3C\u76F8\u540C {estimated}\uFF0C\u590D\u6838 {review}\uFF08\u56FA\u5B9A\u8BCD\u53D8\u5316 {fixed}\uFF09\uFF0C\u53EF\u80FD\u4E22\u5931 {missing}\uFF0C\u8303\u56F4\u5916 {scope}\uFF0C\u5220\u9664\u91CD\u590D {duplicates}\uFF0C\u65B0\u589E {added} -> {verdict}",
|
|
11262
|
+
"cli.keep.verdict.clean": "\u68C0\u67E5\u8303\u56F4\u5185\u6CA1\u6709\u53D1\u73B0\u4E22\u5931",
|
|
11263
|
+
"cli.keep.verdict.estimated": "\u6CA1\u6709\u53D1\u73B0\u4E22\u5931\uFF1B\u6539\u5199\u7684\u89C4\u5219\u770B\u4F3C\u76F8\u540C\uFF08\u4F30\u8BA1\uFF09\uFF0C\u8BF7\u8BFB\u4E00\u904D",
|
|
11264
|
+
"cli.keep.verdict.unknown": "\u65E0\u6CD5\u5224\u65AD\uFF08{reasons}\uFF09",
|
|
11265
|
+
"cli.keep.verdict.review": "\u8BF7\u590D\u6838\u4FEE\u6539\u7248",
|
|
11266
|
+
"cli.keep.grade.estimated": "\u770B\u4F3C\u76F8\u540C",
|
|
11267
|
+
"cli.keep.grade.review": "\u590D\u6838",
|
|
11268
|
+
"cli.keep.grade.missing": "\u53EF\u80FD\u4E22\u5931",
|
|
11269
|
+
"cli.keep.grade.scope": "\u8303\u56F4\u5916",
|
|
11270
|
+
"cli.keep.reason.reworded": "\u6539\u5199",
|
|
11271
|
+
"cli.keep.reason.fixedChanged": "\u56FA\u5B9A\u8BCD\u53D8\u5316",
|
|
11272
|
+
"cli.keep.reason.outOfScope": "\u8FD9\u91CC\u4E0D\u518D\u8BFB\u53D6",
|
|
11273
|
+
"cli.keep.unknown.partial": "\u90E8\u5206\u68C0\u67E5",
|
|
11274
|
+
"cli.keep.unknown.unread": "\u672A\u8BFB\u53D6\u7684\u6587\u4EF6",
|
|
11275
|
+
"cli.keep.mandatory": "\u5FC5\u987B",
|
|
11276
|
+
"cli.keep.more": "\u2026 \u8FD8\u6709 {count} \u9879"
|
|
11277
|
+
};
|
|
11278
|
+
|
|
10259
11279
|
// ../core/src/i18n/messages.ts
|
|
10260
11280
|
var en = {
|
|
10261
11281
|
"report.title": "RepoRefit report",
|
|
10262
11282
|
"report.generated": "Generated (UTC)",
|
|
10263
11283
|
"report.scanId": "Scan ID",
|
|
10264
11284
|
"report.input": "Input",
|
|
10265
|
-
"report.input.zip": "Local ZIP file (
|
|
10266
|
-
"report.input.folder": "Local folder (
|
|
11285
|
+
"report.input.zip": "Local ZIP file (read on this device, not uploaded)",
|
|
11286
|
+
"report.input.folder": "Local folder (read on this device, not uploaded)",
|
|
10267
11287
|
"report.input.github": "Public GitHub repository",
|
|
10268
11288
|
"report.wrapper": "Detected root folder (stripped)",
|
|
10269
11289
|
"report.commit": "Commit SHA",
|
|
@@ -10352,8 +11372,8 @@ var ko = {
|
|
|
10352
11372
|
"report.generated": "\uC0DD\uC131 \uC2DC\uAC01(UTC)",
|
|
10353
11373
|
"report.scanId": "\uAC80\uC0AC ID",
|
|
10354
11374
|
"report.input": "\uC785\uB825",
|
|
10355
|
-
"report.input.zip": "\uB85C\uCEEC ZIP \uD30C\uC77C(\
|
|
10356
|
-
"report.input.folder": "\uB85C\uCEEC \uD3F4\uB354(\
|
|
11375
|
+
"report.input.zip": "\uB85C\uCEEC ZIP \uD30C\uC77C(\uC774 \uAE30\uAE30\uC5D0\uC11C \uC77D\uC74C, \uC5C5\uB85C\uB4DC \uC5C6\uC74C)",
|
|
11376
|
+
"report.input.folder": "\uB85C\uCEEC \uD3F4\uB354(\uC774 \uAE30\uAE30\uC5D0\uC11C \uC77D\uC74C, \uC5C5\uB85C\uB4DC \uC5C6\uC74C)",
|
|
10357
11377
|
"report.input.github": "\uACF5\uAC1C GitHub \uC800\uC7A5\uC18C",
|
|
10358
11378
|
"report.wrapper": "\uC778\uC2DD\uD55C \uCD5C\uC0C1\uC704 \uD3F4\uB354(\uC81C\uAC70\uB428)",
|
|
10359
11379
|
"report.commit": "\uCEE4\uBC0B SHA",
|
|
@@ -10442,8 +11462,8 @@ var ja = {
|
|
|
10442
11462
|
"report.generated": "\u751F\u6210\u65E5\u6642(UTC)",
|
|
10443
11463
|
"report.scanId": "\u691C\u67FB ID",
|
|
10444
11464
|
"report.input": "\u5165\u529B",
|
|
10445
|
-
"report.input.zip": "\u30ED\u30FC\u30AB\u30EB ZIP \u30D5\u30A1\u30A4\u30EB(\
|
|
10446
|
-
"report.input.folder": "\u30ED\u30FC\u30AB\u30EB\u30D5\u30A9\u30EB\u30C0\u30FC(\
|
|
11465
|
+
"report.input.zip": "\u30ED\u30FC\u30AB\u30EB ZIP \u30D5\u30A1\u30A4\u30EB(\u3053\u306E\u7AEF\u672B\u3067\u8AAD\u307F\u8FBC\u307F\u3001\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u306A\u3057)",
|
|
11466
|
+
"report.input.folder": "\u30ED\u30FC\u30AB\u30EB\u30D5\u30A9\u30EB\u30C0\u30FC(\u3053\u306E\u7AEF\u672B\u3067\u8AAD\u307F\u8FBC\u307F\u3001\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u306A\u3057)",
|
|
10447
11467
|
"report.input.github": "\u516C\u958B GitHub \u30EA\u30DD\u30B8\u30C8\u30EA",
|
|
10448
11468
|
"report.wrapper": "\u691C\u51FA\u3057\u305F\u6700\u4E0A\u4F4D\u30D5\u30A9\u30EB\u30C0\u30FC(\u9664\u53BB\u6E08\u307F)",
|
|
10449
11469
|
"report.commit": "\u30B3\u30DF\u30C3\u30C8 SHA",
|
|
@@ -10532,8 +11552,8 @@ var zhHans = {
|
|
|
10532
11552
|
"report.generated": "\u751F\u6210\u65F6\u95F4(UTC)",
|
|
10533
11553
|
"report.scanId": "\u68C0\u67E5 ID",
|
|
10534
11554
|
"report.input": "\u8F93\u5165",
|
|
10535
|
-
"report.input.zip": "\u672C\u5730 ZIP \u6587\u4EF6(\u5728\
|
|
10536
|
-
"report.input.folder": "\u672C\u5730\u6587\u4EF6\u5939(\u5728\
|
|
11555
|
+
"report.input.zip": "\u672C\u5730 ZIP \u6587\u4EF6(\u5728\u672C\u8BBE\u5907\u4E0A\u8BFB\u53D6,\u4E0D\u4E0A\u4F20)",
|
|
11556
|
+
"report.input.folder": "\u672C\u5730\u6587\u4EF6\u5939(\u5728\u672C\u8BBE\u5907\u4E0A\u8BFB\u53D6,\u4E0D\u4E0A\u4F20)",
|
|
10537
11557
|
"report.input.github": "\u516C\u5F00 GitHub \u4ED3\u5E93",
|
|
10538
11558
|
"report.wrapper": "\u8BC6\u522B\u51FA\u7684\u9876\u5C42\u6587\u4EF6\u5939(\u5DF2\u53BB\u9664)",
|
|
10539
11559
|
"report.commit": "\u63D0\u4EA4 SHA",
|
|
@@ -10618,10 +11638,10 @@ var zhHans = {
|
|
|
10618
11638
|
"exclusion.not-supported-yet": "\u6682\u4E0D\u652F\u6301"
|
|
10619
11639
|
};
|
|
10620
11640
|
var CATALOGS = {
|
|
10621
|
-
en: { ...en, ...en2, ...enT },
|
|
10622
|
-
ko: { ...ko, ...ko2, ...koT },
|
|
10623
|
-
ja: { ...ja, ...ja2, ...jaT },
|
|
10624
|
-
"zh-Hans": { ...zhHans, ...zh2, ...zhT }
|
|
11641
|
+
en: { ...en, ...en2, ...enT, ...enC },
|
|
11642
|
+
ko: { ...ko, ...ko2, ...koT, ...koC },
|
|
11643
|
+
ja: { ...ja, ...ja2, ...jaT, ...jaC },
|
|
11644
|
+
"zh-Hans": { ...zhHans, ...zh2, ...zhT, ...zhC }
|
|
10625
11645
|
};
|
|
10626
11646
|
function t(locale, key, params = {}) {
|
|
10627
11647
|
const template = CATALOGS[locale][key] ?? CATALOGS.en[key] ?? key;
|
|
@@ -10672,9 +11692,9 @@ function findingBlock(locale, f, n) {
|
|
|
10672
11692
|
`### ${n}. ${code(where3)} \xB7 ${f.ruleId} \xB7 ${t(locale, `severity.${f.severity}`)}`,
|
|
10673
11693
|
"",
|
|
10674
11694
|
msg(locale, f.messageKey, f.params),
|
|
10675
|
-
""
|
|
10676
|
-
`- ${t(locale, "report.target")}: ${code(String(f.params.target ?? ""))}`
|
|
11695
|
+
""
|
|
10677
11696
|
];
|
|
11697
|
+
if (f.params.target !== void 0 && f.params.target !== "") lines.push(`- ${t(locale, "report.target")}: ${code(String(f.params.target))}`);
|
|
10678
11698
|
if (f.params.resolved !== void 0) lines.push(`- ${t(locale, "report.resolved")}: ${code(String(f.params.resolved))}`);
|
|
10679
11699
|
lines.push(
|
|
10680
11700
|
`- ${t(locale, "report.fix")}: ${msg(locale, f.recommendation.messageKey, f.recommendation.params)}`,
|
|
@@ -10715,7 +11735,10 @@ function renderAiSection(report, locale) {
|
|
|
10715
11735
|
out.push(`${i + 1}. ${code(f.path)} \xB7 ${via} \xB7 ${num(f.tokens)}${f.truncated ? " \u26A0" : ""}`);
|
|
10716
11736
|
});
|
|
10717
11737
|
out.push("", `- ${t(locale, "report.ai.total")}: ${num(ctx.totalTokens)}`);
|
|
10718
|
-
if (ctx.
|
|
11738
|
+
if (ctx.conditionalLoads.length > 0) {
|
|
11739
|
+
const items = ctx.conditionalLoads.map((c) => `${code(c.path)} (${t(locale, `report.ai.load.${c.load}`)}${c.condition ? ` ${code(c.condition)}` : ""})`);
|
|
11740
|
+
out.push(`- ${t(locale, "report.ai.conditional")}: ${items.join(", ")}`);
|
|
11741
|
+
}
|
|
10719
11742
|
for (const n of ctx.notes) out.push(`- ${t(locale, n)}`);
|
|
10720
11743
|
out.push("");
|
|
10721
11744
|
}
|
|
@@ -10850,6 +11873,303 @@ function renderFixPlan(report, locale) {
|
|
|
10850
11873
|
return out.join("\n");
|
|
10851
11874
|
}
|
|
10852
11875
|
|
|
11876
|
+
// ../core/src/ai/preservation.ts
|
|
11877
|
+
var MANDATORY_RE = /\b(must|never|always|required|do not|don't|shall not)\b|반드시|절대|금지|필수|하지 ?마|必ず|禁止|してはいけない|しないで|必须|不要|不得|务必/i;
|
|
11878
|
+
var TAG_RE = {
|
|
11879
|
+
security: /\b(secret|token|api key|password|credential|security)\w*|보안|비밀|토큰|秘密|セキュリティ|密钥|安全/i,
|
|
11880
|
+
deploy: /\b(deploy|release|approv|publish)\w*|배포|승인|릴리스|デプロイ|承認|リリース|部署|批准|发布/i,
|
|
11881
|
+
test: /\b(test|spec|coverage)\w*|테스트|커버리지|テスト|カバレッジ|测试|覆盖率/i,
|
|
11882
|
+
database: /\b(database|migration|schema|sql|db)\b|데이터베이스|마이그레이션|データベース|マイグレーション|数据库|迁移/i,
|
|
11883
|
+
delete: /\b(delet|remov|drop|rm -rf|truncat)\w*|삭제|削除|删除/i
|
|
11884
|
+
};
|
|
11885
|
+
var NEGATION_RE = /\b(not|never|no|none|neither|nor|without|avoid|don't|doesn't|won't|cannot|can't|shouldn't|mustn't)\b|않|말고|말 것|마세요|마십시오|말아|못|금지|없이|ない|ません|禁止|ず[、。]|不|别|勿|没有/gi;
|
|
11886
|
+
var MODALS = [
|
|
11887
|
+
["always", /\b(always|every time|must|required|mandatory)\b|반드시|항상|꼭|필수|必ず|常に|いつも|必須|必须|总是|始终|务必|一定/gi],
|
|
11888
|
+
["sometimes", /\b(sometimes|occasionally|optionally)\b|가끔|때때로|ときどき|時々|たまに|偶尔|有时/gi],
|
|
11889
|
+
["may", /\b(may|can|could|allowed)\b|수 있|해도 된|できる|できます|てもよい|てもいい|可以|允许/gi],
|
|
11890
|
+
["should", /\b(should|recommended|prefer)\b|권장|하는 것이 좋|推奨|べき|望ましい|应该|应当|最好|建议/gi],
|
|
11891
|
+
["only", /\b(only|solely)\b|(?<=[가-힣])만(?=\s|$|[.,])|だけ|のみ|只|仅/gi],
|
|
11892
|
+
// Order words: "before you commit" and "after you commit" are different rules (answer set en-16, ko-16, ja-16, zh-16).
|
|
11893
|
+
["before", /\b(before|prior to|first|until|beforehand)\b|전에|전까지|먼저|前に|前の|事前に|までに|先に|之前|先/gi],
|
|
11894
|
+
["after", /\b(after|afterwards|then)\b|후에|뒤에|다음에|後に|後で|てから|之后|后|再/gi],
|
|
11895
|
+
// Who acts or decides: "ask" and "check with the team" are different rules (operator review 12-02, en-08).
|
|
11896
|
+
["actor:team", /\b(team|teammates?|colleagues?|peers?)\b|팀(?!장)|동료|チーム|同僚|团队|同事/gi],
|
|
11897
|
+
["actor:lead", /\b(leads?|managers?|owners?|maintainers?|admins?|administrators?)\b|팀장|리더|담당자|관리자|책임자|메인테이너|リーダー|担当者|管理者|責任者|メンテナ|负责人|管理员|主管|维护者/gi],
|
|
11898
|
+
["actor:anyone", /\b(anyone|any contributor|contributors?)\b|누구나|아무나|誰でも|任何人|贡献者/gi],
|
|
11899
|
+
// What must happen: asking, getting approval, checking and telling are different duties (ko-08, ja-08, zh-08).
|
|
11900
|
+
["act:ask", /\b(ask|consult|discuss|check with|talk to)\b|물어|문의|상의|상담|여쭤|聞い|尋ね|相談|問い合わせ|询问|咨询|商量|请教/gi],
|
|
11901
|
+
["act:approve", /\b(approv\w*|sign[- ]off|permission)\b|승인|허락|허가|확인을? ?받|承認|許可|了承|批准|审批|许可/gi],
|
|
11902
|
+
["act:verify", /\b(verify|confirm|check(?! with))\b|확인(?!을? ?받)|검증|점검|確認|確かめ|确认|检查|核对/gi],
|
|
11903
|
+
["act:notify", /\b(tell|inform|notify|report to)\b|알리|알려|통보|知らせ|通知|連絡|告知/gi],
|
|
11904
|
+
// Where it applies: existing versus new code, all versus some, an area versus related parts (ko-08, ko-09 note).
|
|
11905
|
+
["scope:existing", /\b(existing|current|old|legacy)\b|기존|이전|既存|現在の|现有|已有|旧/gi],
|
|
11906
|
+
["scope:new", /\b(new|newly)\b|(?:^|\s)새(?=\s|로)|신규|新規|新しい|新/gi],
|
|
11907
|
+
["scope:all", /\b(all|every|each|any)\b|모든|전체|전부|すべて|全て|全部|所有|每个/gi],
|
|
11908
|
+
["scope:some", /\b(some|certain|part of)\b|일부|一部|部分|某些/gi],
|
|
11909
|
+
["scope:related", /\b(related|relevant)\b|관련|関連|相关|有关/gi],
|
|
11910
|
+
// Which environment: a rule for production and the same rule for tests are different rules (external QA 12-02).
|
|
11911
|
+
["env:production", /\b(production|prod)\b|운영 ?환경|프로덕션|本番|生产环境|线上/gi],
|
|
11912
|
+
["env:test", /\b(?:test|testing|staging) (?:environment|env)\b|테스트 ?환경|스테이징|テスト環境|ステージング|测试环境|预发/gi],
|
|
11913
|
+
["env:development", /\b(?:development|dev|local) (?:environment|env|machine)\b|개발 ?환경|로컬|開発環境|ローカル|开发环境|本地/gi],
|
|
11914
|
+
// Numeric conditions: "Node 20 or later" and "Node 20" are different requirements.
|
|
11915
|
+
["cmp:min", /\b(or later|or newer|or above|or higher|or more|at least|and up)\b|이상|최소|以上|以降|少なくとも|及以上|至少|不少于/gi],
|
|
11916
|
+
["cmp:max", /\b(or earlier|or older|or below|or lower|or less|at most)\b|이하|최대|以下|及以下|至多|不超过/gi],
|
|
11917
|
+
["cmp:over", /\b(more than|greater than|exceeds?)\b|초과|を超え|超过|大于/gi],
|
|
11918
|
+
["cmp:under", /\b(less than|fewer than)\b|미만|未満|小于|少于/gi]
|
|
11919
|
+
];
|
|
11920
|
+
var TOOL_RE = /\b(npm|pnpm|yarn|bun|npx|deno|dotnet|nuget|pip|pipx|poetry|uv|conda|cargo|rustup|gradle|maven|mvn|composer|bundler|docker|podman|kubectl|helm|terraform)\b/gi;
|
|
11921
|
+
var REVIEW_MIN = 0.5;
|
|
11922
|
+
var ESTIMATE_MIN = 0.6;
|
|
11923
|
+
var unify = (s) => s.replace(/\r\n?/g, "\n").trim();
|
|
11924
|
+
function normalizeRule(s) {
|
|
11925
|
+
return unify(s).replace(/^\s*(?:[-*+]|\d+[.)])\s+/, "").replace(/(\*\*|__|\*)(?=\S)([^*_]*?\S)\1/g, "$2").replace(/[“”„]/g, '"').replace(/[‘’]/g, "'").replace(/`([^`\s/.\d-]+)`/g, "$1").replace(/\s+/g, " ").replace(/[.。!!;;]+$/, "").trim();
|
|
11926
|
+
}
|
|
11927
|
+
function fixedTokens(s) {
|
|
11928
|
+
const out = [];
|
|
11929
|
+
for (const m of s.matchAll(/`([^`]+)`/g)) if (/[\s/.\d-]/.test(m[1])) out.push(`code:${m[1]}`);
|
|
11930
|
+
const plain = s.replace(/`([^`]+)`/g, (m, w) => /[\s/.\d-]/.test(w) ? " " : w);
|
|
11931
|
+
for (const m of plain.matchAll(/\d+(?:[.,]\d+)?%?/g)) out.push(`num:${m[0]}`);
|
|
11932
|
+
for (const m of plain.matchAll(/(?:\.{0,2}\/)?[\w.-]+\/[\w./-]+|\b[\w-]+\.(?:md|json|ya?ml|toml|ts|js|py|sh|env|lock)\b/g)) out.push(`path:${m[0]}`);
|
|
11933
|
+
if (NEGATION_RE.test(plain)) out.push("neg");
|
|
11934
|
+
NEGATION_RE.lastIndex = 0;
|
|
11935
|
+
for (const [name, re] of MODALS) {
|
|
11936
|
+
if (re.test(plain)) out.push(`modal:${name}`);
|
|
11937
|
+
re.lastIndex = 0;
|
|
11938
|
+
}
|
|
11939
|
+
for (const tool2 of new Set([...plain.matchAll(TOOL_RE)].map((m) => m[1].toLowerCase()))) out.push(`tool:${tool2}`);
|
|
11940
|
+
return out.sort();
|
|
11941
|
+
}
|
|
11942
|
+
var sameFixed = (a, b) => a.length === b.length && a.every((x, i) => x === b[i]);
|
|
11943
|
+
function words(s) {
|
|
11944
|
+
const out = /* @__PURE__ */ new Set();
|
|
11945
|
+
const lower = s.toLowerCase();
|
|
11946
|
+
for (const m of lower.matchAll(/[a-z0-9_]+/g)) out.add(m[0]);
|
|
11947
|
+
const cjk = lower.replace(/[^\p{Script=Hangul}\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}]+/gu, " ");
|
|
11948
|
+
for (const part of cjk.split(" ")) for (let i = 0; i + 1 < part.length; i++) out.add(part.slice(i, i + 2));
|
|
11949
|
+
return out;
|
|
11950
|
+
}
|
|
11951
|
+
var ZH_FUNCTION = /[的了要请先再在中得于把被让使将着过呢吗吧啊也都就还又很时并而或与和及对向到从用以为是有会能可应当必须需要]/g;
|
|
11952
|
+
function contentWords(s) {
|
|
11953
|
+
const out = /* @__PURE__ */ new Set();
|
|
11954
|
+
const lower = s.toLowerCase();
|
|
11955
|
+
for (const m of lower.matchAll(/[a-z0-9_]+/g)) out.add(m[0]);
|
|
11956
|
+
for (const m of lower.matchAll(new RegExp("\\p{Script=Hangul}+", "gu"))) out.add(m[0].slice(0, 2));
|
|
11957
|
+
const runs = /[\p{Script=Hiragana}]/u.test(lower) ? lower.match(/[\p{Script=Han}\p{Script=Katakana}ー]+/gu) : lower.replace(ZH_FUNCTION, " ").match(new RegExp("\\p{Script=Han}+", "gu"));
|
|
11958
|
+
for (const run of runs ?? []) {
|
|
11959
|
+
if (run.length === 1) out.add(run);
|
|
11960
|
+
for (let i = 0; i + 1 < run.length; i++) out.add(run.slice(i, i + 2));
|
|
11961
|
+
}
|
|
11962
|
+
return out;
|
|
11963
|
+
}
|
|
11964
|
+
function overlap(a, b) {
|
|
11965
|
+
if (a.size === 0 || b.size === 0) return 0;
|
|
11966
|
+
let both = 0;
|
|
11967
|
+
for (const w of a) if (b.has(w)) both++;
|
|
11968
|
+
return both / Math.min(a.size, b.size);
|
|
11969
|
+
}
|
|
11970
|
+
function ruleSimilarity(a, b) {
|
|
11971
|
+
const na = normalizeRule(a);
|
|
11972
|
+
const nb = normalizeRule(b);
|
|
11973
|
+
return Math.max(overlap(words(na), words(nb)), overlap(contentWords(na), contentWords(nb)));
|
|
11974
|
+
}
|
|
11975
|
+
function extractRuleUnits(doc) {
|
|
11976
|
+
const units = [];
|
|
11977
|
+
const tree = parseTree(doc.text);
|
|
11978
|
+
const headings = [];
|
|
11979
|
+
const slice = (n) => n.position && n.position.start.offset !== void 0 && n.position.end.offset !== void 0 ? doc.text.slice(n.position.start.offset, n.position.end.offset) : "";
|
|
11980
|
+
const add = (raw, line) => {
|
|
11981
|
+
const exact = unify(raw);
|
|
11982
|
+
if (!exact) return;
|
|
11983
|
+
units.push({
|
|
11984
|
+
path: doc.path,
|
|
11985
|
+
line,
|
|
11986
|
+
headings: [...headings],
|
|
11987
|
+
preview: truncate(maskSecrets(exact.replace(/\s+/g, " "))),
|
|
11988
|
+
exact,
|
|
11989
|
+
normalized: normalizeRule(exact),
|
|
11990
|
+
fixed: fixedTokens(exact),
|
|
11991
|
+
mandatory: MANDATORY_RE.test(exact),
|
|
11992
|
+
tags: Object.keys(TAG_RE).filter((t2) => TAG_RE[t2].test(exact))
|
|
11993
|
+
});
|
|
11994
|
+
};
|
|
11995
|
+
const visit = (node2) => {
|
|
11996
|
+
const line = node2.position?.start.line ?? 1;
|
|
11997
|
+
if (node2.type === "heading") {
|
|
11998
|
+
const depth = node2.depth ?? 1;
|
|
11999
|
+
headings.length = Math.min(headings.length, depth - 1);
|
|
12000
|
+
while (headings.length < depth - 1) headings.push("");
|
|
12001
|
+
headings.push(unify(slice(node2)).replace(/^#+\s*/, ""));
|
|
12002
|
+
return;
|
|
12003
|
+
}
|
|
12004
|
+
if (node2.type === "paragraph") {
|
|
12005
|
+
const lines = slice(node2).split(/\r?\n/);
|
|
12006
|
+
if (lines.length > 1 && lines.every((l) => l.trim().startsWith("|"))) {
|
|
12007
|
+
lines.forEach((l, i) => {
|
|
12008
|
+
if (!/^\s*\|?[\s:|-]+\|?\s*$/.test(l)) add(l, line + i);
|
|
12009
|
+
});
|
|
12010
|
+
return;
|
|
12011
|
+
}
|
|
12012
|
+
return add(lines.join("\n"), line);
|
|
12013
|
+
}
|
|
12014
|
+
if (node2.type === "tableRow") return add(slice(node2), line);
|
|
12015
|
+
if (node2.type === "code" || node2.type === "html" || node2.type === "thematicBreak" || node2.type === "yaml") return;
|
|
12016
|
+
for (const child of node2.children ?? []) visit(child);
|
|
12017
|
+
};
|
|
12018
|
+
visit(tree);
|
|
12019
|
+
return units;
|
|
12020
|
+
}
|
|
12021
|
+
var severity = (i) => (i.grade === "estimated" ? -10 : 0) + (i.mandatory ? 2 : 0) + (i.tags.length > 0 ? 1 : 0);
|
|
12022
|
+
function comparePreservation(platform, workdir, before, after) {
|
|
12023
|
+
const scopeOf2 = (docs) => activeContext(platform, workdir, docs);
|
|
12024
|
+
const beforeCtx = scopeOf2(before.docs);
|
|
12025
|
+
const afterCtx = scopeOf2(after.docs);
|
|
12026
|
+
const beforeScope = new Set(beforeCtx.files.map((f) => f.path));
|
|
12027
|
+
const afterScope = new Set(afterCtx.files.map((f) => f.path));
|
|
12028
|
+
const unitsOf = (texts) => texts.flatMap((t2) => extractRuleUnits(t2));
|
|
12029
|
+
const beforeUnits = unitsOf(before.texts.filter((t2) => beforeScope.has(t2.path)));
|
|
12030
|
+
const beforeNorms = new Set(beforeUnits.map((u) => u.normalized));
|
|
12031
|
+
const afterAll = unitsOf(after.texts);
|
|
12032
|
+
const afterIn = afterAll.filter((u) => afterScope.has(u.path));
|
|
12033
|
+
const unknownReasons = [];
|
|
12034
|
+
if (before.partial || after.partial) unknownReasons.push("partial");
|
|
12035
|
+
if (beforeCtx.files.some((f) => f.tokens === null) || afterCtx.files.some((f) => f.tokens === null)) unknownReasons.push("unread");
|
|
12036
|
+
const loc2 = (u) => ({ path: u.path, line: u.line, preview: u.preview });
|
|
12037
|
+
const items = [];
|
|
12038
|
+
let kept = 0;
|
|
12039
|
+
let estimated = 0;
|
|
12040
|
+
let review = 0;
|
|
12041
|
+
let fixedChanged = 0;
|
|
12042
|
+
let missing = 0;
|
|
12043
|
+
let scopeReduced = 0;
|
|
12044
|
+
const match = (u, pool) => {
|
|
12045
|
+
const exact = pool.find((a) => a.exact === u.exact);
|
|
12046
|
+
if (exact) return { grade: "exact", at: exact, reason: null };
|
|
12047
|
+
const norm = pool.find((a) => a.normalized === u.normalized);
|
|
12048
|
+
if (norm) return { grade: "normalized", at: norm, reason: null };
|
|
12049
|
+
const inside = pool.find((a) => a.normalized.includes(u.normalized));
|
|
12050
|
+
const substantial = u.normalized.length >= 8 || (u.normalized.match(/[\p{Script=Hangul}\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}]/gu) ?? []).length >= 4;
|
|
12051
|
+
if (inside && substantial) return { grade: "structural", at: inside, reason: null };
|
|
12052
|
+
const sentences = u.normalized.split(/(?<=[.!?。!?])\s*/).map((s) => normalizeRule(s)).filter((s) => s.length >= 4);
|
|
12053
|
+
if (sentences.length > 1) {
|
|
12054
|
+
const homes = sentences.map((s) => pool.find((a) => a.normalized.includes(s)));
|
|
12055
|
+
if (homes.every(Boolean)) return { grade: "structural", at: homes[0], reason: null };
|
|
12056
|
+
}
|
|
12057
|
+
let best = null;
|
|
12058
|
+
let score = 0;
|
|
12059
|
+
for (const a of pool) {
|
|
12060
|
+
if (beforeNorms.has(a.normalized) && a.normalized !== u.normalized && !sameFixed(u.fixed, a.fixed)) continue;
|
|
12061
|
+
const o = ruleSimilarity(u.normalized, a.normalized);
|
|
12062
|
+
if (o > score) [best, score] = [a, o];
|
|
12063
|
+
}
|
|
12064
|
+
if (best && score >= REVIEW_MIN) {
|
|
12065
|
+
const same = sameFixed(u.fixed, best.fixed);
|
|
12066
|
+
if (same && score >= ESTIMATE_MIN) return { grade: "estimated", at: best, reason: "reworded" };
|
|
12067
|
+
return { grade: "review", at: best, reason: same ? "reworded" : "fixedChanged" };
|
|
12068
|
+
}
|
|
12069
|
+
return { grade: "missing", at: null, reason: null };
|
|
12070
|
+
};
|
|
12071
|
+
const claimed = /* @__PURE__ */ new Set();
|
|
12072
|
+
for (const u of beforeUnits) {
|
|
12073
|
+
const inScope = match(u, afterIn);
|
|
12074
|
+
if (inScope.at) claimed.add(inScope.at);
|
|
12075
|
+
const keptGrade = inScope.grade === "exact" || inScope.grade === "normalized" || inScope.grade === "structural";
|
|
12076
|
+
if (keptGrade) {
|
|
12077
|
+
kept++;
|
|
12078
|
+
continue;
|
|
12079
|
+
}
|
|
12080
|
+
const anywhere = match(u, afterAll);
|
|
12081
|
+
const base2 = { before: loc2(u), mandatory: u.mandatory, tags: u.tags };
|
|
12082
|
+
if (anywhere.grade === "exact" || anywhere.grade === "normalized" || anywhere.grade === "structural") {
|
|
12083
|
+
scopeReduced++;
|
|
12084
|
+
items.push({ ...base2, grade: "scope", reason: "outOfScope", after: anywhere.at ? loc2(anywhere.at) : null });
|
|
12085
|
+
} else if (inScope.grade === "estimated") {
|
|
12086
|
+
estimated++;
|
|
12087
|
+
items.push({ ...base2, grade: "estimated", reason: "reworded", after: inScope.at ? loc2(inScope.at) : null });
|
|
12088
|
+
} else if (inScope.grade === "review") {
|
|
12089
|
+
review++;
|
|
12090
|
+
if (inScope.reason === "fixedChanged") fixedChanged++;
|
|
12091
|
+
items.push({ ...base2, grade: "review", reason: inScope.reason, after: inScope.at ? loc2(inScope.at) : null });
|
|
12092
|
+
} else {
|
|
12093
|
+
missing++;
|
|
12094
|
+
items.push({ ...base2, grade: "missing", reason: null, after: null });
|
|
12095
|
+
}
|
|
12096
|
+
}
|
|
12097
|
+
const count = (units) => units.reduce((m, u) => m.set(u.normalized, (m.get(u.normalized) ?? 0) + 1), /* @__PURE__ */ new Map());
|
|
12098
|
+
const nb = count(beforeUnits);
|
|
12099
|
+
const na = count(afterIn);
|
|
12100
|
+
let removedDuplicates = 0;
|
|
12101
|
+
for (const [n, c] of nb) {
|
|
12102
|
+
const a = na.get(n) ?? 0;
|
|
12103
|
+
if (c > 1 && a >= 1 && a < c) removedDuplicates += c - a;
|
|
12104
|
+
}
|
|
12105
|
+
const added = afterIn.filter((a) => !claimed.has(a) && !beforeNorms.has(a.normalized) && !beforeUnits.some((u) => a.normalized.includes(u.normalized) || u.normalized.includes(a.normalized))).length;
|
|
12106
|
+
items.sort((a, b) => severity(b) - severity(a) || (a.before.path < b.before.path ? -1 : a.before.path > b.before.path ? 1 : a.before.line - b.before.line));
|
|
12107
|
+
const verdict = unknownReasons.length > 0 ? "unknown" : missing + scopeReduced + review > 0 ? "review" : estimated > 0 ? "estimated" : "clean";
|
|
12108
|
+
return {
|
|
12109
|
+
platform,
|
|
12110
|
+
workdir,
|
|
12111
|
+
units: beforeUnits.length,
|
|
12112
|
+
mandatory: beforeUnits.filter((u) => u.mandatory).length,
|
|
12113
|
+
kept,
|
|
12114
|
+
estimated,
|
|
12115
|
+
review,
|
|
12116
|
+
fixedChanged,
|
|
12117
|
+
missing,
|
|
12118
|
+
scopeReduced,
|
|
12119
|
+
removedDuplicates,
|
|
12120
|
+
added,
|
|
12121
|
+
verdict,
|
|
12122
|
+
unknownReasons,
|
|
12123
|
+
items
|
|
12124
|
+
};
|
|
12125
|
+
}
|
|
12126
|
+
|
|
12127
|
+
// ../core/src/results.ts
|
|
12128
|
+
function changePercent(before, after) {
|
|
12129
|
+
if (!Number.isFinite(before) || !Number.isFinite(after) || before === 0) return null;
|
|
12130
|
+
return Math.round((after - before) / before * 100);
|
|
12131
|
+
}
|
|
12132
|
+
function allToolsSummary(report, tools) {
|
|
12133
|
+
const verdict = report.rules.filter((r) => r.ruleId !== "INV-001" && r.status !== "skipped" && r.status !== "error");
|
|
12134
|
+
const rulesPassed = verdict.filter((r) => r.status === "pass").length;
|
|
12135
|
+
return {
|
|
12136
|
+
rulesEvaluated: verdict.length,
|
|
12137
|
+
rulesPassed,
|
|
12138
|
+
passPercent: verdict.length ? Math.round(rulesPassed / verdict.length * 100) : null,
|
|
12139
|
+
tools: tools.map((t2) => {
|
|
12140
|
+
const rs = report.rules.filter((r) => t2.rules.includes(r.ruleId));
|
|
12141
|
+
const findings = rs.reduce((n, r) => n + r.findings.length, 0);
|
|
12142
|
+
const high = rs.reduce((n, r) => n + r.findings.filter((f) => f.severity === "high").length, 0);
|
|
12143
|
+
const ran = rs.filter((r) => r.status !== "skipped" && r.status !== "error");
|
|
12144
|
+
const status = ran.length === 0 ? report.coverage?.partial ? "unread" : "not-checked" : findings ? "issues" : ran.some((r) => r.status === "partial") ? "partial" : "clean";
|
|
12145
|
+
return { tool: t2.id, status, findings, high };
|
|
12146
|
+
})
|
|
12147
|
+
};
|
|
12148
|
+
}
|
|
12149
|
+
|
|
12150
|
+
// ../core/src/compare.ts
|
|
12151
|
+
function compareRuns(a, b, folder2 = "") {
|
|
12152
|
+
const ids = [...new Set([...a.report.rules, ...b.report.rules].map((r) => r.ruleId))].filter((id) => id !== "INV-001");
|
|
12153
|
+
const count = (r, id) => r.rules.find((x) => x.ruleId === id)?.findings.length ?? 0;
|
|
12154
|
+
const total = (r) => r.rules.reduce((n, x) => n + x.findings.length, 0);
|
|
12155
|
+
const agents = (r) => (r.metrics.tokens?.active ?? []).filter((c) => c.files.length > 0).map((c) => c.platform);
|
|
12156
|
+
const seen = /* @__PURE__ */ new Set([...agents(a.report), ...agents(b.report)]);
|
|
12157
|
+
const tokens = PLATFORMS.filter((p) => seen.has(p)).map((platform) => {
|
|
12158
|
+
const before = measurableContext(a.report, platform, folder2)?.tokens ?? null;
|
|
12159
|
+
const after = measurableContext(b.report, platform, folder2)?.tokens ?? null;
|
|
12160
|
+
const both = before !== null && after !== null;
|
|
12161
|
+
return { platform, before, after, delta: both ? after - before : null, percent: both ? changePercent(before, after) : null };
|
|
12162
|
+
});
|
|
12163
|
+
const side = (s) => ({ docs: s.report.metrics.tokens?.docs ?? [], texts: s.texts, partial: s.report.coverage.partial });
|
|
12164
|
+
const preservation = PLATFORMS.filter((p) => agents(a.report).includes(p)).map((p) => comparePreservation(p, folder2, side(a), side(b))).filter((r) => r.units > 0);
|
|
12165
|
+
return {
|
|
12166
|
+
rules: ids.map((ruleId) => ({ ruleId, before: count(a.report, ruleId), after: count(b.report, ruleId) })),
|
|
12167
|
+
findings: { before: total(a.report), after: total(b.report) },
|
|
12168
|
+
tokens,
|
|
12169
|
+
preservation
|
|
12170
|
+
};
|
|
12171
|
+
}
|
|
12172
|
+
|
|
10853
12173
|
// ../core/src/tools.ts
|
|
10854
12174
|
var TOOLS = [
|
|
10855
12175
|
{ id: "tokens", status: "live", rules: ["MD-002", "AI-001", "AI-002", "AI-003", "AI-004"], milestone: "M2", category: "ai-context" },
|
|
@@ -10857,7 +12177,7 @@ var TOOLS = [
|
|
|
10857
12177
|
{ id: "secrets", status: "live", rules: ["SEC-001", "SEC-002"], milestone: "M3", category: "security" },
|
|
10858
12178
|
{ id: "dependencies", status: "live", rules: ["DEP-001", "DEP-002"], milestone: "M3 (OSV with consent)", category: "security" },
|
|
10859
12179
|
{ id: "mcp", status: "live", rules: ["MCP-001", "MCP-002"], milestone: "M3", category: "ai-context" },
|
|
10860
|
-
{ id: "agent-rules", status: "live", rules: ["AI-001", "AI-004", "AGT-001", "AGT-002"], milestone: "P1", category: "ai-context" },
|
|
12180
|
+
{ id: "agent-rules", status: "live", rules: ["AI-001", "AI-004", "AGT-001", "AGT-002", "DOC-001"], milestone: "P1", category: "ai-context" },
|
|
10861
12181
|
{ id: "duplicates", status: "live", rules: ["DUP-001"], milestone: "P1", category: "code-quality" },
|
|
10862
12182
|
{ id: "architecture", status: "live", rules: ["ARC-001", "ARC-002"], milestone: "P1", category: "architecture" },
|
|
10863
12183
|
{ id: "deploy", status: "live", rules: ["OPS-001", "OPS-002", "OPS-003"], milestone: "P1", category: "deploy" }
|
|
@@ -10890,25 +12210,6 @@ function filterReport(report, selection) {
|
|
|
10890
12210
|
};
|
|
10891
12211
|
}
|
|
10892
12212
|
|
|
10893
|
-
// ../core/src/results.ts
|
|
10894
|
-
function allToolsSummary(report, tools) {
|
|
10895
|
-
const verdict = report.rules.filter((r) => r.ruleId !== "INV-001" && r.status !== "skipped" && r.status !== "error");
|
|
10896
|
-
const rulesPassed = verdict.filter((r) => r.status === "pass").length;
|
|
10897
|
-
return {
|
|
10898
|
-
rulesEvaluated: verdict.length,
|
|
10899
|
-
rulesPassed,
|
|
10900
|
-
passPercent: verdict.length ? Math.round(rulesPassed / verdict.length * 100) : null,
|
|
10901
|
-
tools: tools.map((t2) => {
|
|
10902
|
-
const rs = report.rules.filter((r) => t2.rules.includes(r.ruleId));
|
|
10903
|
-
const findings = rs.reduce((n, r) => n + r.findings.length, 0);
|
|
10904
|
-
const high = rs.reduce((n, r) => n + r.findings.filter((f) => f.severity === "high").length, 0);
|
|
10905
|
-
const ran = rs.filter((r) => r.status !== "skipped" && r.status !== "error");
|
|
10906
|
-
const status = ran.length === 0 ? report.coverage?.partial ? "unread" : "not-checked" : findings ? "issues" : ran.some((r) => r.status === "partial") ? "partial" : "clean";
|
|
10907
|
-
return { tool: t2.id, status, findings, high };
|
|
10908
|
-
})
|
|
10909
|
-
};
|
|
10910
|
-
}
|
|
10911
|
-
|
|
10912
12213
|
// ../ui/share.ts
|
|
10913
12214
|
function badgeMessage(d) {
|
|
10914
12215
|
if (!d.evaluated) return "not checked";
|
|
@@ -10931,15 +12232,15 @@ function badgeSvg(label, message, color) {
|
|
|
10931
12232
|
}
|
|
10932
12233
|
|
|
10933
12234
|
// src/run.ts
|
|
10934
|
-
import { lstatSync, readdirSync, readFileSync } from "node:fs";
|
|
10935
|
-
import { basename, join as
|
|
12235
|
+
import { lstatSync, readdirSync, readFileSync, statSync } from "node:fs";
|
|
12236
|
+
import { basename, join as join3, resolve } from "node:path";
|
|
10936
12237
|
var SKIP_DIRS = /* @__PURE__ */ new Set([".git", ".hg", ".svn", "node_modules", ".pnpm-store", ".yarn", ".next", ".nuxt", ".turbo", ".cache", ".venv", "venv", "__pycache__", "target", ".gradle"]);
|
|
10937
12238
|
function listFolder(root, opts) {
|
|
10938
12239
|
const abs = resolve(root);
|
|
10939
12240
|
const top = basename(abs) || "project";
|
|
10940
12241
|
const read = (name) => {
|
|
10941
12242
|
try {
|
|
10942
|
-
return readFileSync(
|
|
12243
|
+
return readFileSync(join3(abs, name), "utf8");
|
|
10943
12244
|
} catch {
|
|
10944
12245
|
return "";
|
|
10945
12246
|
}
|
|
@@ -10959,7 +12260,7 @@ function listFolder(root, opts) {
|
|
|
10959
12260
|
out.truncated = true;
|
|
10960
12261
|
return;
|
|
10961
12262
|
}
|
|
10962
|
-
const full =
|
|
12263
|
+
const full = join3(dir, name);
|
|
10963
12264
|
const path = rel ? `${rel}/${name}` : name;
|
|
10964
12265
|
let st;
|
|
10965
12266
|
try {
|
|
@@ -11002,6 +12303,14 @@ function cliLimits(maxFiles = 5e4, maxReadMb = 512) {
|
|
|
11002
12303
|
}
|
|
11003
12304
|
async function runFolder(root, o) {
|
|
11004
12305
|
const started = Date.now();
|
|
12306
|
+
let st;
|
|
12307
|
+
try {
|
|
12308
|
+
st = statSync(root);
|
|
12309
|
+
} catch (e) {
|
|
12310
|
+
if (e.code === "ENOENT") throw Object.assign(new Error("folder not found"), { code: "RR_FOLDER_NOT_FOUND" });
|
|
12311
|
+
throw e;
|
|
12312
|
+
}
|
|
12313
|
+
if (!st.isDirectory()) throw Object.assign(new Error("not a folder"), { code: "RR_NOT_A_FOLDER" });
|
|
11005
12314
|
const limits = cliLimits(o.maxFiles, o.maxReadMb);
|
|
11006
12315
|
const tool2 = resolveTool(o.tool);
|
|
11007
12316
|
const listing = listFolder(root, { maxFiles: limits.maxDiscoveredFiles, useIgnoreFiles: o.useIgnoreFiles ?? true, ignore: o.ignore ?? [] });
|
|
@@ -11010,14 +12319,23 @@ async function runFolder(root, o) {
|
|
|
11010
12319
|
adapter.listComplete = false;
|
|
11011
12320
|
adapter.listingReasons.push({ code: "file-count-limit", params: { limit: limits.maxDiscoveredFiles } });
|
|
11012
12321
|
}
|
|
11013
|
-
|
|
12322
|
+
let instructionTexts = [];
|
|
12323
|
+
const full = await runScan(adapter, {
|
|
12324
|
+
scanId: "cli",
|
|
12325
|
+
profile: "desktop",
|
|
12326
|
+
limits,
|
|
12327
|
+
signal: o.signal,
|
|
12328
|
+
onProgress: o.onProgress,
|
|
12329
|
+
now: o.now,
|
|
12330
|
+
onInstructionTexts: (texts) => instructionTexts = texts
|
|
12331
|
+
});
|
|
11014
12332
|
const report = filterReport(full, tool2);
|
|
11015
12333
|
const s = allToolsSummary(report, TOOLS.filter((t2) => t2.status === "live"));
|
|
11016
12334
|
const findings = report.rules.flatMap((r) => r.findings);
|
|
11017
12335
|
const bySeverity = { high: 0, medium: 0, low: 0, info: 0, unknown: 0 };
|
|
11018
12336
|
for (const f of findings) bySeverity[f.severity]++;
|
|
11019
12337
|
const { entries, ...rest } = listing;
|
|
11020
|
-
return { report, tool: tool2, findings, evaluated: s.rulesEvaluated, passed: s.rulesPassed, bySeverity, listing: { ...rest, listed: entries.length }, elapsedMs: Date.now() - started };
|
|
12338
|
+
return { report, tool: tool2, findings, evaluated: s.rulesEvaluated, passed: s.rulesPassed, bySeverity, listing: { ...rest, listed: entries.length }, elapsedMs: Date.now() - started, instructionTexts };
|
|
11021
12339
|
}
|
|
11022
12340
|
var RANK = { high: 3, medium: 2, low: 1 };
|
|
11023
12341
|
function shouldFail(r, failOn) {
|
|
@@ -11027,15 +12345,69 @@ function shouldFail(r, failOn) {
|
|
|
11027
12345
|
}
|
|
11028
12346
|
|
|
11029
12347
|
// src/version.ts
|
|
11030
|
-
var VERSION = "0.
|
|
12348
|
+
var VERSION = "0.4.1";
|
|
11031
12349
|
|
|
11032
12350
|
// src/mcp.ts
|
|
11033
12351
|
import { createInterface } from "node:readline";
|
|
11034
|
-
import { statSync } from "node:fs";
|
|
12352
|
+
import { statSync as statSync2 } from "node:fs";
|
|
11035
12353
|
import { resolve as resolve2 } from "node:path";
|
|
11036
12354
|
|
|
12355
|
+
// src/compare.ts
|
|
12356
|
+
import * as nodePath from "node:path";
|
|
12357
|
+
function tokenChangeText(c, locale) {
|
|
12358
|
+
if (c.before === null || c.after === null || c.delta === null) return null;
|
|
12359
|
+
const delta = c.delta > 0 ? `+${c.delta}` : String(c.delta);
|
|
12360
|
+
const change = c.delta === 0 ? t(locale, "cli.compare.same") : c.percent === null ? t(locale, "cli.compare.noRate") : t(locale, c.delta < 0 ? "cli.compare.fewer" : "cli.compare.more", { percent: Math.abs(c.percent) === 0 ? "<1" : String(Math.abs(c.percent)) });
|
|
12361
|
+
return t(locale, "cli.compare.tokenLine", { agent: t(locale, `platform.${c.platform}`), before: c.before, after: c.after, delta, change });
|
|
12362
|
+
}
|
|
12363
|
+
function renderCompare(c, tool2, locale) {
|
|
12364
|
+
const L = (key, params = {}) => t(locale, `cli.${key}`, params);
|
|
12365
|
+
const lines = [L("compare.title", { tool: tool2 }), "", `${L("compare.rule").padEnd(9)} ${L("compare.before").padStart(6)} ${L("compare.after").padStart(5)}`];
|
|
12366
|
+
for (const r of c.rules) lines.push(`${r.ruleId.padEnd(9)} ${String(r.before).padStart(6)} ${String(r.after).padStart(5)}`);
|
|
12367
|
+
lines.push(`${L("compare.total").padEnd(9)} ${String(c.findings.before).padStart(6)} ${String(c.findings.after).padStart(5)}`, "");
|
|
12368
|
+
lines.push(L("compare.tokens"));
|
|
12369
|
+
if (c.tokens.length === 0) lines.push(` ${L("compare.noAgents")}`);
|
|
12370
|
+
for (const x of c.tokens) lines.push(` ${tokenChangeText(x, locale) ?? L("compare.notComparable", { agent: t(locale, `platform.${x.platform}`) })}`);
|
|
12371
|
+
lines.push(` ${L("compare.limits")}`, "", L("keep.title"));
|
|
12372
|
+
if (c.preservation.length === 0) lines.push(` ${L("keep.none")}`);
|
|
12373
|
+
for (const r of c.preservation) {
|
|
12374
|
+
const verdict = r.verdict === "unknown" ? L("keep.verdict.unknown", { reasons: r.unknownReasons.map((x) => L(`keep.unknown.${x}`)).join(", ") }) : L(`keep.verdict.${r.verdict}`);
|
|
12375
|
+
lines.push(
|
|
12376
|
+
` ${L("keep.line", {
|
|
12377
|
+
agent: t(locale, `platform.${r.platform}`),
|
|
12378
|
+
units: r.units,
|
|
12379
|
+
mandatory: r.mandatory,
|
|
12380
|
+
kept: r.kept,
|
|
12381
|
+
estimated: r.estimated,
|
|
12382
|
+
review: r.review,
|
|
12383
|
+
fixed: r.fixedChanged,
|
|
12384
|
+
missing: r.missing,
|
|
12385
|
+
scope: r.scopeReduced,
|
|
12386
|
+
duplicates: r.removedDuplicates,
|
|
12387
|
+
added: r.added,
|
|
12388
|
+
verdict
|
|
12389
|
+
})}`
|
|
12390
|
+
);
|
|
12391
|
+
for (const i of r.items.slice(0, 10)) {
|
|
12392
|
+
const where3 = i.after ? ` -> ${i.after.path}:${i.after.line}` : "";
|
|
12393
|
+
const reason = i.reason ? ` (${L(`keep.reason.${i.reason}`)})` : "";
|
|
12394
|
+
lines.push(` ${i.before.path}:${i.before.line}${where3} ${L(`keep.grade.${i.grade}`)}${reason}${i.mandatory ? ` [${L("keep.mandatory")}]` : ""} ${i.before.preview}`);
|
|
12395
|
+
}
|
|
12396
|
+
if (r.items.length > 10) lines.push(` ${L("keep.more", { count: r.items.length - 10 })}`);
|
|
12397
|
+
}
|
|
12398
|
+
return lines.join("\n") + "\n";
|
|
12399
|
+
}
|
|
12400
|
+
function badgeLink(folder2, file, path = nodePath) {
|
|
12401
|
+
const rel = path.relative(path.resolve(folder2), path.resolve(file));
|
|
12402
|
+
if (!rel || rel === ".." || rel.startsWith(`..${path.sep}`) || path.isAbsolute(rel)) return null;
|
|
12403
|
+
const url = rel.split(path.sep).join("/").replace(/ /g, "%20").replace(/\(/g, "%28").replace(/\)/g, "%29");
|
|
12404
|
+
return `[](https://reporefit.com/)`;
|
|
12405
|
+
}
|
|
12406
|
+
|
|
11037
12407
|
// ../ui/rule-docs.ts
|
|
11038
|
-
var RULE_ORDER = ["MD-001", "MD-003", "MD-002", "AI-001", "AI-002", "AI-003", "AI-004", "SEC-001", "SEC-002", "DEP-001", "DEP-002", "MCP-001", "MCP-002", "AGT-001", "AGT-002", "DUP-001", "ARC-001", "ARC-002", "OPS-001", "OPS-002", "OPS-003"];
|
|
12408
|
+
var RULE_ORDER = ["MD-001", "MD-003", "MD-002", "AI-001", "AI-002", "AI-003", "AI-004", "SEC-001", "SEC-002", "DEP-001", "DEP-002", "MCP-001", "MCP-002", "AGT-001", "AGT-002", "DOC-001", "DUP-001", "ARC-001", "ARC-002", "OPS-001", "OPS-002", "OPS-003"];
|
|
12409
|
+
var SCOPE_SUFFIX = { "SEC-002": ".local", "MD-001": ".m2", "MD-002": ".all", "MD-003": ".m1", "AI-001": ".m2", "AI-002": ".m2", "AI-003": ".m2", "AI-004": ".m2" };
|
|
12410
|
+
var ruleScopeKey = (id) => `${id.toLowerCase().replace("-", "")}.scope${SCOPE_SUFFIX[id] ?? ""}`;
|
|
11039
12411
|
var ruleDocs = {
|
|
11040
12412
|
en: {
|
|
11041
12413
|
"MD-001": { why: "Skipped heading levels (an h1 followed by an h3) break the outline that readers, screen readers and AI tools use to navigate a document.", fix: "Lower the heading by one level at a time, or add the missing parent heading." },
|
|
@@ -11053,6 +12425,7 @@ var ruleDocs = {
|
|
|
11053
12425
|
"MCP-002": { why: "MCP servers run with your permissions. Inline tokens, downloads piped into a shell, unpinned packages and plain HTTP endpoints widen what can go wrong.", fix: "Reference secrets through environment variables, pin package versions, use HTTPS and avoid piping downloads into a shell." },
|
|
11054
12426
|
"AGT-001": { why: "Agent Skills are found by their front matter. A missing name or description, or a name that does not match the folder, makes the skill hard to find or unused.", fix: "Add name and description in the front matter, use lowercase words joined by hyphens, and match the folder name." },
|
|
11055
12427
|
"AGT-002": { why: "When two instruction files ask for different package managers or indentation, the assistant has to guess which one wins.", fix: "Choose one convention, state it in one shared file and remove the conflicting line." },
|
|
12428
|
+
"DOC-001": { why: "An assistant follows the commands and paths in its instruction files. A wrong package manager, a missing script or a stale path makes it run the wrong thing or look for files that are gone.", fix: "Update the instruction or README line to match the project, or restore what it points to." },
|
|
11056
12429
|
"DUP-001": { why: "Copied blocks of code have to be fixed in every copy; missing one is a common source of bugs.", fix: "Move the shared lines into a function or module and call it from each place." },
|
|
11057
12430
|
"ARC-001": { why: "Modules that import each other in a loop can load half-initialised values and make the code hard to split or test.", fix: "Move the shared part into a separate module both can import, or reverse one of the imports." },
|
|
11058
12431
|
"ARC-002": { why: "A relative import that matches no file fails at build or run time, often only on a clean checkout.", fix: "Correct the path or add the missing file. Files generated during the build can be ignored." },
|
|
@@ -11076,6 +12449,7 @@ var ruleDocs = {
|
|
|
11076
12449
|
"MCP-002": { why: "MCP \uC11C\uBC84\uB294 \uB0B4 \uAD8C\uD55C\uC73C\uB85C \uC2E4\uD589\uB3FC\uC694. \uC124\uC815\uC5D0 \uC9C1\uC811 \uB123\uC740 \uD1A0\uD070, \uC178\uB85C \uBC14\uB85C \uC2E4\uD589\uD558\uB294 \uB2E4\uC6B4\uB85C\uB4DC, \uBC84\uC804 \uBBF8\uACE0\uC815 \uD328\uD0A4\uC9C0, HTTP \uC8FC\uC18C\uB294 \uC704\uD5D8\uC744 \uD0A4\uC6CC\uC694.", fix: "\uBE44\uBC00\uAC12\uC740 \uD658\uACBD \uBCC0\uC218\uB85C \uCC38\uC870\uD558\uACE0, \uD328\uD0A4\uC9C0 \uBC84\uC804\uC744 \uACE0\uC815\uD558\uACE0, HTTPS\uB97C \uC4F0\uACE0, \uB2E4\uC6B4\uB85C\uB4DC\uB97C \uC178\uB85C \uBC14\uB85C \uB118\uAE30\uC9C0 \uB9C8\uC138\uC694." },
|
|
11077
12450
|
"AGT-001": { why: "Agent Skills\uB294 front matter\uB85C \uCC3E\uC544\uC694. name\xB7description\uC774 \uC5C6\uAC70\uB098 \uC774\uB984\uC774 \uD3F4\uB354\uC640 \uB2E4\uB974\uBA74 \uC2A4\uD0AC\uC744 \uCC3E\uAE30 \uC5B4\uB835\uAC70\uB098 \uC4F0\uC774\uC9C0 \uC54A\uC544\uC694.", fix: "front matter\uC5D0 name\uACFC description\uC744 \uB123\uACE0, \uC774\uB984\uC740 \uC18C\uBB38\uC790\uC640 \uD558\uC774\uD508\uC73C\uB85C, \uD3F4\uB354 \uC774\uB984\uACFC \uAC19\uAC8C \uD558\uC138\uC694." },
|
|
11078
12451
|
"AGT-002": { why: "\uB450 \uC9C0\uC2DC \uD30C\uC77C\uC774 \uC11C\uB85C \uB2E4\uB978 \uD328\uD0A4\uC9C0 \uAD00\uB9AC\uC790\uB098 \uB4E4\uC5EC\uC4F0\uAE30\uB97C \uC694\uAD6C\uD558\uBA74 \uB3C4\uC6B0\uBBF8\uAC00 \uC5B4\uB290 \uCABD\uC744 \uB530\uB97C\uC9C0 \uCD94\uCE21\uD574\uC57C \uD574\uC694.", fix: "\uADDC\uCE59 \uD558\uB098\uB97C \uC815\uD574 \uACF5\uD1B5 \uD30C\uC77C \uD55C\uACF3\uC5D0 \uC801\uACE0, \uC5B4\uAE0B\uB098\uB294 \uC904\uC740 \uC9C0\uC6B0\uC138\uC694." },
|
|
12452
|
+
"DOC-001": { why: "\uB3C4\uC6B0\uBBF8\uB294 \uC9C0\uC2DC \uD30C\uC77C\uC5D0 \uC801\uD78C \uBA85\uB839\uACFC \uACBD\uB85C\uB97C \uADF8\uB300\uB85C \uB530\uB985\uB2C8\uB2E4. \uD328\uD0A4\uC9C0 \uAD00\uB9AC\uC790\uAC00 \uB2E4\uB974\uAC70\uB098, \uC2A4\uD06C\uB9BD\uD2B8\uAC00 \uC5C6\uAC70\uB098, \uACBD\uB85C\uAC00 \uB0A1\uC558\uC73C\uBA74 \uC798\uBABB\uB41C \uBA85\uB839\uC744 \uC2E4\uD589\uD558\uAC70\uB098 \uC5C6\uB294 \uD30C\uC77C\uC744 \uCC3E\uC544\uC694.", fix: "\uC9C0\uC2DC \uD30C\uC77C\uC774\uB098 README\uC758 \uADF8 \uC904\uC744 \uD504\uB85C\uC81D\uD2B8\uC5D0 \uB9DE\uAC8C \uACE0\uCE58\uAC70\uB098, \uAC00\uB9AC\uD0A4\uB294 \uB300\uC0C1\uC744 \uB418\uC0B4\uB9AC\uC138\uC694." },
|
|
11079
12453
|
"DUP-001": { why: "\uBCF5\uC0AC\uB41C \uCF54\uB4DC\uB294 \uACE0\uCE60 \uB54C \uBAA8\uB4E0 \uC0AC\uBCF8\uC744 \uACE0\uCCD0\uC57C \uD574\uC694. \uD558\uB098\uB77C\uB3C4 \uB193\uCE58\uBA74 \uBC84\uADF8\uAC00 \uC0DD\uAE30\uAE30 \uC26C\uC6CC\uC694.", fix: "\uACF5\uD1B5 \uC904\uC744 \uD568\uC218\uB098 \uBAA8\uB4C8\uB85C \uC62E\uAE30\uACE0 \uAC01 \uC704\uCE58\uC5D0\uC11C \uBD88\uB7EC \uC4F0\uC138\uC694." },
|
|
11080
12454
|
"ARC-001": { why: "\uC11C\uB85C\uB97C \uBD88\uB7EC\uC624\uB294 \uBAA8\uB4C8\uC740 \uCD08\uAE30\uD654\uAC00 \uB35C \uB41C \uAC12\uC744 \uC77D\uC744 \uC218 \uC788\uACE0, \uCF54\uB4DC\uB97C \uB098\uB204\uAC70\uB098 \uD14C\uC2A4\uD2B8\uD558\uAE30 \uC5B4\uB824\uC6CC\uC838\uC694.", fix: "\uACF5\uD1B5 \uBD80\uBD84\uC744 \uB458 \uB2E4 \uBD88\uB7EC\uC62C \uC218 \uC788\uB294 \uBCC4\uB3C4 \uBAA8\uB4C8\uB85C \uC62E\uAE30\uAC70\uB098, import \uD558\uB098\uC758 \uBC29\uD5A5\uC744 \uBC14\uAFB8\uC138\uC694." },
|
|
11081
12455
|
"ARC-002": { why: "\uC5B4\uB5A4 \uD30C\uC77C\uACFC\uB3C4 \uB9DE\uC9C0 \uC54A\uB294 \uC0C1\uB300 \uACBD\uB85C import\uB294 \uBE4C\uB4DC\uB098 \uC2E4\uD589 \uB54C \uC2E4\uD328\uD558\uACE0, \uAE68\uB057\uD55C \uD658\uACBD\uC5D0\uC11C\uC57C \uB4DC\uB7EC\uB098\uB294 \uACBD\uC6B0\uAC00 \uB9CE\uC544\uC694.", fix: "\uACBD\uB85C\uB97C \uACE0\uCE58\uAC70\uB098 \uBE60\uC9C4 \uD30C\uC77C\uC744 \uCD94\uAC00\uD558\uC138\uC694. \uBE4C\uB4DC \uC911 \uC0DD\uC131\uB418\uB294 \uD30C\uC77C\uC774\uB77C\uBA74 \uBB34\uC2DC\uD574\uB3C4 \uB3FC\uC694." },
|
|
@@ -11099,6 +12473,7 @@ var ruleDocs = {
|
|
|
11099
12473
|
"MCP-002": { why: "MCP \u30B5\u30FC\u30D0\u30FC\u306F\u3042\u306A\u305F\u306E\u6A29\u9650\u3067\u52D5\u304D\u307E\u3059\u3002\u8A2D\u5B9A\u306B\u76F4\u66F8\u304D\u3057\u305F\u30C8\u30FC\u30AF\u30F3\u3001\u30B7\u30A7\u30EB\u306B\u76F4\u63A5\u6E21\u3059\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3001\u30D0\u30FC\u30B8\u30E7\u30F3\u672A\u56FA\u5B9A\u306E\u30D1\u30C3\u30B1\u30FC\u30B8\u3001HTTP \u306E\u63A5\u7D9A\u5148\u306F\u30EA\u30B9\u30AF\u3092\u5E83\u3052\u307E\u3059\u3002", fix: "\u79D8\u5BC6\u306E\u5024\u306F\u74B0\u5883\u5909\u6570\u3067\u53C2\u7167\u3057\u3001\u30D1\u30C3\u30B1\u30FC\u30B8\u306E\u30D0\u30FC\u30B8\u30E7\u30F3\u3092\u56FA\u5B9A\u3057\u3001HTTPS \u3092\u4F7F\u3044\u3001\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3092\u30B7\u30A7\u30EB\u306B\u76F4\u63A5\u6E21\u3055\u306A\u3044\u3067\u304F\u3060\u3055\u3044\u3002" },
|
|
11100
12474
|
"AGT-001": { why: "Agent Skills \u306F front matter \u3067\u898B\u3064\u3051\u3089\u308C\u307E\u3059\u3002name \u3084 description \u304C\u306A\u3044\u3001\u307E\u305F\u306F\u540D\u524D\u304C\u30D5\u30A9\u30EB\u30C0\u30FC\u3068\u9055\u3046\u3068\u3001\u30B9\u30AD\u30EB\u304C\u898B\u3064\u3051\u306B\u304F\u304F\u306A\u308A\u4F7F\u308F\u308C\u307E\u305B\u3093\u3002", fix: "front matter \u306B name \u3068 description \u3092\u5165\u308C\u3001\u540D\u524D\u306F\u5C0F\u6587\u5B57\u3068\u30CF\u30A4\u30D5\u30F3\u306B\u3057\u3066\u30D5\u30A9\u30EB\u30C0\u30FC\u540D\u3068\u5408\u308F\u305B\u3066\u304F\u3060\u3055\u3044\u3002" },
|
|
11101
12475
|
"AGT-002": { why: "2 \u3064\u306E\u6307\u793A\u30D5\u30A1\u30A4\u30EB\u304C\u5225\u3005\u306E\u30D1\u30C3\u30B1\u30FC\u30B8\u30DE\u30CD\u30FC\u30B8\u30E3\u30FC\u3084\u30A4\u30F3\u30C7\u30F3\u30C8\u3092\u6C42\u3081\u308B\u3068\u3001\u30A2\u30B7\u30B9\u30BF\u30F3\u30C8\u306F\u3069\u3061\u3089\u306B\u5F93\u3046\u304B\u63A8\u6E2C\u3059\u308B\u3057\u304B\u3042\u308A\u307E\u305B\u3093\u3002", fix: "\u30EB\u30FC\u30EB\u3092 1 \u3064\u306B\u6C7A\u3081\u3066\u5171\u901A\u30D5\u30A1\u30A4\u30EB 1 \u304B\u6240\u306B\u66F8\u304D\u3001\u98DF\u3044\u9055\u3046\u884C\u306F\u524A\u9664\u3057\u3066\u304F\u3060\u3055\u3044\u3002" },
|
|
12476
|
+
"DOC-001": { why: "\u30A2\u30B7\u30B9\u30BF\u30F3\u30C8\u306F\u6307\u793A\u30D5\u30A1\u30A4\u30EB\u306E\u30B3\u30DE\u30F3\u30C9\u3068\u30D1\u30B9\u306B\u305D\u306E\u307E\u307E\u5F93\u3044\u307E\u3059\u3002\u30D1\u30C3\u30B1\u30FC\u30B8\u30DE\u30CD\u30FC\u30B8\u30E3\u30FC\u306E\u9055\u3044\u3001\u5B58\u5728\u3057\u306A\u3044\u30B9\u30AF\u30EA\u30D7\u30C8\u3001\u53E4\u3044\u30D1\u30B9\u304C\u3042\u308B\u3068\u3001\u8AA4\u3063\u305F\u30B3\u30DE\u30F3\u30C9\u3092\u5B9F\u884C\u3057\u305F\u308A\u3001\u306A\u3044\u30D5\u30A1\u30A4\u30EB\u3092\u63A2\u3057\u305F\u308A\u3057\u307E\u3059\u3002", fix: "\u6307\u793A\u30D5\u30A1\u30A4\u30EB\u3084 README \u306E\u8A72\u5F53\u884C\u3092\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306B\u5408\u308F\u305B\u3066\u76F4\u3059\u304B\u3001\u53C2\u7167\u5148\u3092\u623B\u3057\u3066\u304F\u3060\u3055\u3044\u3002" },
|
|
11102
12477
|
"DUP-001": { why: "\u30B3\u30D4\u30FC\u3055\u308C\u305F\u30B3\u30FC\u30C9\u306F\u3001\u76F4\u3059\u3068\u304D\u306B\u3059\u3079\u3066\u306E\u30B3\u30D4\u30FC\u3092\u76F4\u3059\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u30021 \u3064\u3067\u3082\u6F0F\u308C\u308B\u3068\u30D0\u30B0\u306E\u539F\u56E0\u306B\u306A\u308A\u307E\u3059\u3002", fix: "\u5171\u901A\u306E\u884C\u3092\u95A2\u6570\u304B\u30E2\u30B8\u30E5\u30FC\u30EB\u306B\u307E\u3068\u3081\u3001\u5404\u7B87\u6240\u304B\u3089\u547C\u3073\u51FA\u3057\u3066\u304F\u3060\u3055\u3044\u3002" },
|
|
11103
12478
|
"ARC-001": { why: "\u4E92\u3044\u3092\u8AAD\u307F\u8FBC\u3080\u30E2\u30B8\u30E5\u30FC\u30EB\u306F\u521D\u671F\u5316\u9014\u4E2D\u306E\u5024\u3092\u8AAD\u3080\u3053\u3068\u304C\u3042\u308A\u3001\u30B3\u30FC\u30C9\u306E\u5206\u5272\u3084\u30C6\u30B9\u30C8\u3082\u96E3\u3057\u304F\u306A\u308A\u307E\u3059\u3002", fix: "\u5171\u901A\u90E8\u5206\u3092\u4E21\u65B9\u304C\u8AAD\u307F\u8FBC\u3081\u308B\u5225\u30E2\u30B8\u30E5\u30FC\u30EB\u306B\u79FB\u3059\u304B\u3001import \u306E\u5411\u304D\u3092 1 \u3064\u5909\u3048\u3066\u304F\u3060\u3055\u3044\u3002" },
|
|
11104
12479
|
"ARC-002": { why: "\u3069\u306E\u30D5\u30A1\u30A4\u30EB\u306B\u3082\u4E00\u81F4\u3057\u306A\u3044\u76F8\u5BFE\u30D1\u30B9\u306E import \u306F\u30D3\u30EB\u30C9\u3084\u5B9F\u884C\u6642\u306B\u5931\u6557\u3057\u3001\u30AF\u30EA\u30FC\u30F3\u306A\u74B0\u5883\u3067\u521D\u3081\u3066\u8868\u306B\u51FA\u308B\u3053\u3068\u304C\u591A\u3044\u3067\u3059\u3002", fix: "\u30D1\u30B9\u3092\u76F4\u3059\u304B\u3001\u8DB3\u308A\u306A\u3044\u30D5\u30A1\u30A4\u30EB\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u30D3\u30EB\u30C9\u4E2D\u306B\u751F\u6210\u3055\u308C\u308B\u30D5\u30A1\u30A4\u30EB\u306A\u3089\u7121\u8996\u3057\u3066\u304B\u307E\u3044\u307E\u305B\u3093\u3002" },
|
|
@@ -11122,6 +12497,7 @@ var ruleDocs = {
|
|
|
11122
12497
|
"MCP-002": { why: "MCP \u670D\u52A1\u5668\u4EE5\u4F60\u7684\u6743\u9650\u8FD0\u884C\u3002\u914D\u7F6E\u4E2D\u76F4\u63A5\u5199\u5165\u7684\u4EE4\u724C\u3001\u76F4\u63A5\u4EA4\u7ED9 shell \u6267\u884C\u7684\u4E0B\u8F7D\u3001\u672A\u56FA\u5B9A\u7248\u672C\u7684\u5305\u4EE5\u53CA HTTP \u5730\u5740\u90FD\u4F1A\u6269\u5927\u98CE\u9669\u3002", fix: "\u901A\u8FC7\u73AF\u5883\u53D8\u91CF\u5F15\u7528\u673A\u5BC6\uFF0C\u56FA\u5B9A\u5305\u7248\u672C\uFF0C\u4F7F\u7528 HTTPS\uFF0C\u4E0D\u8981\u628A\u4E0B\u8F7D\u5185\u5BB9\u76F4\u63A5\u4EA4\u7ED9 shell\u3002" },
|
|
11123
12498
|
"AGT-001": { why: "Agent Skills \u901A\u8FC7 front matter \u88AB\u53D1\u73B0\u3002\u7F3A\u5C11 name \u6216 description\uFF0C\u6216\u540D\u79F0\u4E0E\u76EE\u5F55\u4E0D\u4E00\u81F4\uFF0C\u6280\u80FD\u5C31\u96BE\u4EE5\u88AB\u627E\u5230\u6216\u4E0D\u4F1A\u88AB\u4F7F\u7528\u3002", fix: "\u5728 front matter \u4E2D\u586B\u5199 name \u548C description\uFF0C\u540D\u79F0\u4F7F\u7528\u5C0F\u5199\u5B57\u6BCD\u52A0\u8FDE\u5B57\u7B26\uFF0C\u5E76\u4E0E\u76EE\u5F55\u540D\u4E00\u81F4\u3002" },
|
|
11124
12499
|
"AGT-002": { why: "\u4E24\u4E2A\u6307\u4EE4\u6587\u4EF6\u8981\u6C42\u4E0D\u540C\u7684\u5305\u7BA1\u7406\u5668\u6216\u7F29\u8FDB\u65F6\uFF0C\u52A9\u624B\u53EA\u80FD\u731C\u6D4B\u8BE5\u542C\u54EA\u4E00\u4E2A\u3002", fix: "\u786E\u5B9A\u4E00\u79CD\u7EA6\u5B9A\uFF0C\u5199\u5728\u4E00\u4E2A\u5171\u4EAB\u6587\u4EF6\u4E2D\uFF0C\u5E76\u5220\u9664\u51B2\u7A81\u7684\u90A3\u4E00\u884C\u3002" },
|
|
12500
|
+
"DOC-001": { why: "\u52A9\u624B\u4F1A\u7167\u642C\u6307\u4EE4\u6587\u4EF6\u4E2D\u7684\u547D\u4EE4\u548C\u8DEF\u5F84\u3002\u5305\u7BA1\u7406\u5668\u4E0D\u4E00\u81F4\u3001\u811A\u672C\u4E0D\u5B58\u5728\u6216\u8DEF\u5F84\u8FC7\u65F6\uFF0C\u4F1A\u8BA9\u5B83\u8FD0\u884C\u9519\u8BEF\u7684\u547D\u4EE4\u6216\u5BFB\u627E\u5DF2\u4E0D\u5B58\u5728\u7684\u6587\u4EF6\u3002", fix: "\u628A\u6307\u4EE4\u6587\u4EF6\u6216 README \u4E2D\u7684\u90A3\u4E00\u884C\u6539\u6210\u4E0E\u9879\u76EE\u4E00\u81F4\uFF0C\u6216\u6062\u590D\u5B83\u6307\u5411\u7684\u5185\u5BB9\u3002" },
|
|
11125
12501
|
"DUP-001": { why: "\u590D\u5236\u7684\u4EE3\u7801\u5728\u4FEE\u6539\u65F6\u5FC5\u987B\u6539\u52A8\u6BCF\u4E00\u4EFD\u526F\u672C\uFF0C\u6F0F\u6389\u4E00\u5904\u5C31\u5BB9\u6613\u4EA7\u751F\u7F3A\u9677\u3002", fix: "\u628A\u5171\u540C\u7684\u4EE3\u7801\u63D0\u53D6\u5230\u51FD\u6570\u6216\u6A21\u5757\u4E2D\uFF0C\u5728\u5404\u5904\u8C03\u7528\u3002" },
|
|
11126
12502
|
"ARC-001": { why: "\u76F8\u4E92\u5BFC\u5165\u7684\u6A21\u5757\u53EF\u80FD\u8BFB\u5230\u5C1A\u672A\u521D\u59CB\u5316\u5B8C\u6210\u7684\u503C\uFF0C\u4EE3\u7801\u4E5F\u66F4\u96BE\u62C6\u5206\u548C\u6D4B\u8BD5\u3002", fix: "\u628A\u5171\u4EAB\u90E8\u5206\u79FB\u5230\u4E24\u8005\u90FD\u80FD\u5BFC\u5165\u7684\u72EC\u7ACB\u6A21\u5757\uFF0C\u6216\u53CD\u8F6C\u5176\u4E2D\u4E00\u4E2A\u5BFC\u5165\u3002" },
|
|
11127
12503
|
"ARC-002": { why: "\u627E\u4E0D\u5230\u5BF9\u5E94\u6587\u4EF6\u7684\u76F8\u5BF9\u8DEF\u5F84\u5BFC\u5165\u4F1A\u5728\u6784\u5EFA\u6216\u8FD0\u884C\u65F6\u5931\u8D25\uFF0C\u800C\u4E14\u5F80\u5F80\u53EA\u5728\u5E72\u51C0\u7684\u73AF\u5883\u4E2D\u624D\u66B4\u9732\u3002", fix: "\u4FEE\u6B63\u8DEF\u5F84\u6216\u8865\u4E0A\u7F3A\u5931\u7684\u6587\u4EF6\u3002\u6784\u5EFA\u65F6\u751F\u6210\u7684\u6587\u4EF6\u53EF\u4EE5\u5FFD\u7565\u3002" },
|
|
@@ -11175,10 +12551,23 @@ var toolsList = [
|
|
|
11175
12551
|
description: "Explain one rule: what it checks, why it matters and how to fix it.",
|
|
11176
12552
|
inputSchema: { type: "object", properties: { rule_id: { type: "string", enum: [...RULE_ORDER] }, lang: { type: "string", enum: ["en", "ko", "ja", "zh-Hans"] } }, required: ["rule_id"] },
|
|
11177
12553
|
annotations: { readOnlyHint: true, openWorldHint: false }
|
|
12554
|
+
},
|
|
12555
|
+
{
|
|
12556
|
+
name: "compare",
|
|
12557
|
+
description: "Compare two copies of a local project, for example before and after editing AGENTS.md or CLAUDE.md: findings per rule, estimated instruction tokens for each agent that reads instruction files (Codex, Claude Code, Gemini CLI, GitHub Copilot, Cursor, Grok, Antigravity) with the change and the rate, and which rules were kept, need review or may be lost. Read-only; the same comparison as the reporefit compare command.",
|
|
12558
|
+
inputSchema: {
|
|
12559
|
+
type: "object",
|
|
12560
|
+
properties: {
|
|
12561
|
+
before: { type: "string", description: "Original project folder." },
|
|
12562
|
+
after: { type: "string", description: "Edited copy of the project." },
|
|
12563
|
+
tool: { type: "string", enum: TOOL_IDS, description: "Which checks to run. Default all." },
|
|
12564
|
+
lang: { type: "string", enum: ["en", "ko", "ja", "zh-Hans"], description: "Language of the summaries. Default en." }
|
|
12565
|
+
},
|
|
12566
|
+
required: ["before", "after"]
|
|
12567
|
+
},
|
|
12568
|
+
annotations: { readOnlyHint: true, openWorldHint: false }
|
|
11178
12569
|
}
|
|
11179
12570
|
];
|
|
11180
|
-
var SUFFIX = { "SEC-002": ".local", "MD-001": ".m2", "MD-002": ".m2", "MD-003": ".m1", "AI-001": ".m2", "AI-002": ".m2", "AI-003": ".m2", "AI-004": ".m2" };
|
|
11181
|
-
var scopeKey = (id) => `${id.toLowerCase().replace("-", "")}.scope${SUFFIX[id] ?? ""}`;
|
|
11182
12571
|
var ToolError = class extends Error {
|
|
11183
12572
|
};
|
|
11184
12573
|
function folder(p) {
|
|
@@ -11186,7 +12575,7 @@ function folder(p) {
|
|
|
11186
12575
|
const abs = resolve2(p);
|
|
11187
12576
|
let st;
|
|
11188
12577
|
try {
|
|
11189
|
-
st =
|
|
12578
|
+
st = statSync2(abs);
|
|
11190
12579
|
} catch {
|
|
11191
12580
|
throw new ToolError(`Folder not found: ${abs}`);
|
|
11192
12581
|
}
|
|
@@ -11243,7 +12632,59 @@ async function callTool(name, args) {
|
|
|
11243
12632
|
const id = args.rule_id;
|
|
11244
12633
|
if (typeof id !== "string" || !RULE_ORDER.includes(id)) throw new ToolError(`Unknown rule: ${String(id)}`);
|
|
11245
12634
|
const d = ruleDocs[locale][id];
|
|
11246
|
-
return JSON.stringify({ id, name: t(locale, `rule.${id}`), checks: t(locale,
|
|
12635
|
+
return JSON.stringify({ id, name: t(locale, `rule.${id}`), checks: t(locale, ruleScopeKey(id)), why: d.why, fix: d.fix, docs: ruleDocUrl(locale, id) }, null, 2);
|
|
12636
|
+
}
|
|
12637
|
+
if (name === "compare") {
|
|
12638
|
+
const opts = { tool: tool(args.tool) };
|
|
12639
|
+
const a = await runFolder(folder(args.before), opts);
|
|
12640
|
+
const b = await runFolder(folder(args.after), opts);
|
|
12641
|
+
const c = compareRuns({ report: a.report, texts: a.instructionTexts }, { report: b.report, texts: b.instructionTexts });
|
|
12642
|
+
const agent = (p) => t(locale, `platform.${p}`);
|
|
12643
|
+
return JSON.stringify(
|
|
12644
|
+
{
|
|
12645
|
+
engine: ENGINE_VERSION,
|
|
12646
|
+
ruleset: RULESET_VERSION,
|
|
12647
|
+
tool: a.tool,
|
|
12648
|
+
findings: c.findings,
|
|
12649
|
+
rules: c.rules.filter((r) => r.before || r.after).map((r) => ({ rule: r.ruleId, before: r.before, after: r.after })),
|
|
12650
|
+
// percent: signed change rounded to an integer (negative = fewer tokens), null when the original had 0 tokens.
|
|
12651
|
+
tokens: c.tokens.map((x) => ({
|
|
12652
|
+
agent: x.platform,
|
|
12653
|
+
name: agent(x.platform),
|
|
12654
|
+
before: x.before,
|
|
12655
|
+
after: x.after,
|
|
12656
|
+
change: x.delta,
|
|
12657
|
+
percent: x.percent,
|
|
12658
|
+
summary: tokenChangeText(x, locale) ?? t(locale, "cli.compare.notComparable", { agent: agent(x.platform) })
|
|
12659
|
+
})),
|
|
12660
|
+
token_note: t(locale, "cli.compare.limits"),
|
|
12661
|
+
preservation: c.preservation.map((r) => ({
|
|
12662
|
+
agent: r.platform,
|
|
12663
|
+
name: agent(r.platform),
|
|
12664
|
+
rules: r.units,
|
|
12665
|
+
mandatory: r.mandatory,
|
|
12666
|
+
kept: r.kept,
|
|
12667
|
+
probably_same: r.estimated,
|
|
12668
|
+
review: r.review,
|
|
12669
|
+
fixed_tokens_changed: r.fixedChanged,
|
|
12670
|
+
possible_losses: r.missing,
|
|
12671
|
+
out_of_scope: r.scopeReduced,
|
|
12672
|
+
duplicates_removed: r.removedDuplicates,
|
|
12673
|
+
new: r.added,
|
|
12674
|
+
verdict: r.verdict,
|
|
12675
|
+
items: r.items.slice(0, 20).map((i) => ({
|
|
12676
|
+
before: `${i.before.path}:${i.before.line}`,
|
|
12677
|
+
after: i.after ? `${i.after.path}:${i.after.line}` : null,
|
|
12678
|
+
grade: i.grade,
|
|
12679
|
+
reason: i.reason,
|
|
12680
|
+
mandatory: i.mandatory,
|
|
12681
|
+
text: i.before.preview
|
|
12682
|
+
}))
|
|
12683
|
+
}))
|
|
12684
|
+
},
|
|
12685
|
+
null,
|
|
12686
|
+
2
|
|
12687
|
+
);
|
|
11247
12688
|
}
|
|
11248
12689
|
throw new ToolError(`Unknown tool: ${name}`);
|
|
11249
12690
|
}
|
|
@@ -11319,7 +12760,7 @@ Commands:
|
|
|
11319
12760
|
Options:
|
|
11320
12761
|
--tool <id> all (default), ${TOOLS.map((x) => x.id).join(", ")}
|
|
11321
12762
|
--format <f> scan output: text (default), json, md
|
|
11322
|
-
--out <path> output file (fix, badge, scan) or folder (report)
|
|
12763
|
+
--out <path> output file (fix, badge, scan) or folder (report); missing folders are created
|
|
11323
12764
|
--lang <l> en (default), ko, ja, zh-Hans
|
|
11324
12765
|
--fail-on <s> exit 1 when a finding is at least: high, medium, low, none (default)
|
|
11325
12766
|
--ignore <glob> extra ignore pattern, gitignore syntax (repeatable)
|
|
@@ -11328,7 +12769,7 @@ Options:
|
|
|
11328
12769
|
--max-read-mb <n> stop reading after n MiB of text (default 512; reported as partial)
|
|
11329
12770
|
--quiet no progress on stderr
|
|
11330
12771
|
|
|
11331
|
-
Exit codes: 0 ok, 1 findings at or above --fail-on, 2 usage or
|
|
12772
|
+
Exit codes: 0 ok, 1 findings at or above --fail-on, 2 usage, read or write error, 130 cancelled.
|
|
11332
12773
|
Docs: ${DOCS}`;
|
|
11333
12774
|
var COMMANDS = /* @__PURE__ */ new Set(["scan", "fix", "report", "badge", "compare", "rules", "mcp", "help", "version"]);
|
|
11334
12775
|
var VALUED = /* @__PURE__ */ new Set(["tool", "format", "out", "lang", "fail-on", "ignore", "max-files", "max-read-mb"]);
|
|
@@ -11362,19 +12803,58 @@ var where2 = (locale, f) => f.line ? `${f.path}:${f.line}` : t(locale, "report.p
|
|
|
11362
12803
|
function renderText(r, locale) {
|
|
11363
12804
|
const rank = { high: 0, medium: 1, low: 2, info: 3, unknown: 4 };
|
|
11364
12805
|
const c = r.report.coverage;
|
|
11365
|
-
const lines = [
|
|
11366
|
-
for (const f of [...r.findings].sort((a,
|
|
12806
|
+
const lines = [t(locale, "cli.header", { tool: r.tool, read: c.inspected, listed: c.discovered, seconds: (r.elapsedMs / 1e3).toFixed(1) }), ""];
|
|
12807
|
+
for (const f of [...r.findings].sort((a, b2) => rank[a.severity] - rank[b2.severity])) {
|
|
11367
12808
|
lines.push(`${f.severity.padEnd(6)} ${f.ruleId.padEnd(8)} ${where2(locale, f.location)} ${t(locale, f.messageKey, f.params)}`);
|
|
11368
12809
|
}
|
|
11369
12810
|
if (!r.findings.length) lines.push(t(locale, "report.noFindings"));
|
|
11370
|
-
|
|
11371
|
-
|
|
11372
|
-
|
|
11373
|
-
}
|
|
11374
|
-
if (r.
|
|
11375
|
-
if (r.findings.length) lines.push(`Rule details: ${RULES_URL(locale, r.findings[0].ruleId).replace(/#.*$/, "")}`);
|
|
12811
|
+
const b = r.bySeverity;
|
|
12812
|
+
lines.push("", t(locale, "cli.summary", { findings: r.findings.length, high: b.high, medium: b.medium, low: b.low, passed: r.passed, evaluated: r.evaluated }));
|
|
12813
|
+
if (c.partial) lines.push(t(locale, "cli.partial", { reasons: c.reasons.map((x) => t(locale, `coverage.${x.code}`, x.params)).join(" ") || t(locale, "cli.partialUnknown") }));
|
|
12814
|
+
if (r.listing.skippedSymlinks) lines.push(t(locale, "cli.symlinks", { count: r.listing.skippedSymlinks }));
|
|
12815
|
+
if (r.findings.length) lines.push(t(locale, "cli.ruleDetails", { url: RULES_URL(locale, r.findings[0].ruleId).replace(/#.*$/, "") }));
|
|
11376
12816
|
return lines.join("\n") + "\n";
|
|
11377
12817
|
}
|
|
12818
|
+
function fsReason(e, locale = "en") {
|
|
12819
|
+
const code2 = e.code;
|
|
12820
|
+
const key = {
|
|
12821
|
+
EACCES: "permission",
|
|
12822
|
+
EPERM: "permission",
|
|
12823
|
+
ENOTDIR: "fileInPath",
|
|
12824
|
+
EEXIST: "fileInPath",
|
|
12825
|
+
EISDIR: "isFolder",
|
|
12826
|
+
ENOENT: "missingPath",
|
|
12827
|
+
ENOSPC: "diskFull",
|
|
12828
|
+
EROFS: "readOnly",
|
|
12829
|
+
ENAMETOOLONG: "tooLong",
|
|
12830
|
+
RR_FOLDER_NOT_FOUND: "notFound",
|
|
12831
|
+
RR_NOT_A_FOLDER: "notFolder"
|
|
12832
|
+
};
|
|
12833
|
+
return code2 && key[code2] ? t(locale, `cli.reason.${key[code2]}`) : e.message;
|
|
12834
|
+
}
|
|
12835
|
+
function writeOutput(io, locale, file, text3) {
|
|
12836
|
+
try {
|
|
12837
|
+
mkdirSync(dirname2(resolve3(file)), { recursive: true });
|
|
12838
|
+
writeFileSync(file, text3);
|
|
12839
|
+
return true;
|
|
12840
|
+
} catch (e) {
|
|
12841
|
+
io.err(t(locale, "cli.cannotWrite", { path: file, reason: fsReason(e, locale) }) + "\n");
|
|
12842
|
+
return false;
|
|
12843
|
+
}
|
|
12844
|
+
}
|
|
12845
|
+
function prepareFolder(io, locale, dir) {
|
|
12846
|
+
try {
|
|
12847
|
+
if (statSync3(dir, { throwIfNoEntry: false })?.isFile()) {
|
|
12848
|
+
io.err(t(locale, "cli.reportIsFile", { path: dir }) + "\n");
|
|
12849
|
+
return false;
|
|
12850
|
+
}
|
|
12851
|
+
mkdirSync(dir, { recursive: true });
|
|
12852
|
+
return true;
|
|
12853
|
+
} catch (e) {
|
|
12854
|
+
io.err(t(locale, "cli.cannotCreate", { path: dir, reason: fsReason(e, locale) }) + "\n");
|
|
12855
|
+
return false;
|
|
12856
|
+
}
|
|
12857
|
+
}
|
|
11378
12858
|
function badgeFor(r) {
|
|
11379
12859
|
const d = { tool: r.tool, evaluated: r.evaluated, passed: r.passed, findings: r.findings.length, high: r.bySeverity.high };
|
|
11380
12860
|
return badgeSvg("RepoRefit", badgeMessage(d) + (r.report.coverage.partial ? " (partial)" : ""), badgeColor(d));
|
|
@@ -11440,8 +12920,7 @@ Run "reporefit help" for usage.
|
|
|
11440
12920
|
return await runFolder(folder2, runOpts);
|
|
11441
12921
|
} catch (e) {
|
|
11442
12922
|
if (e instanceof ScanCancelledError) return io.err("\nCancelled.\n"), 130;
|
|
11443
|
-
io.err(
|
|
11444
|
-
`);
|
|
12923
|
+
io.err(t(locale, "cli.cannotRead", { path: folder2, reason: fsReason(e, locale) }) + "\n");
|
|
11445
12924
|
return 2;
|
|
11446
12925
|
}
|
|
11447
12926
|
};
|
|
@@ -11451,38 +12930,35 @@ Run "reporefit help" for usage.
|
|
|
11451
12930
|
if (typeof a === "number") return a;
|
|
11452
12931
|
const b = await scan(args[1]);
|
|
11453
12932
|
if (typeof b === "number") return b;
|
|
11454
|
-
const
|
|
11455
|
-
|
|
11456
|
-
const lines = [`RepoRefit compare \xB7 ${a.tool}`, "", "rule before after"];
|
|
11457
|
-
for (const id of ids) lines.push(`${id.padEnd(9)} ${String(count(a, id)).padStart(6)} ${String(count(b, id)).padStart(5)}`);
|
|
11458
|
-
lines.push(`${"total".padEnd(9)} ${String(a.findings.length).padStart(6)} ${String(b.findings.length).padStart(5)}`);
|
|
11459
|
-
const ta = measurableContext(a.report, "claude", "");
|
|
11460
|
-
const tb = measurableContext(b.report, "claude", "");
|
|
11461
|
-
lines.push("", ta && tb ? `Estimated tokens (Claude Code at /): ${ta.tokens} -> ${tb.tokens} (${tb.tokens - ta.tokens >= 0 ? "+" : ""}${tb.tokens - ta.tokens})` : "Estimated tokens: not comparable (instruction files missing, conditional or partly read).");
|
|
11462
|
-
io.out(lines.join("\n") + "\n");
|
|
12933
|
+
const c = compareRuns({ report: a.report, texts: a.instructionTexts }, { report: b.report, texts: b.instructionTexts });
|
|
12934
|
+
io.out(renderCompare(c, a.tool, locale));
|
|
11463
12935
|
return shouldFail(b, failOn) ? 1 : 0;
|
|
11464
12936
|
}
|
|
11465
12937
|
const r = await scan(args[0] ?? ".");
|
|
11466
12938
|
if (typeof r === "number") return r;
|
|
11467
12939
|
if (command === "fix") {
|
|
11468
12940
|
const md = renderFixPlan(r.report, locale);
|
|
11469
|
-
if (opts.out)
|
|
11470
|
-
|
|
12941
|
+
if (opts.out) {
|
|
12942
|
+
if (!writeOutput(io, locale, opts.out, md)) return 2;
|
|
12943
|
+
} else io.out(md);
|
|
11471
12944
|
} else if (command === "report") {
|
|
11472
12945
|
const dir = opts.out ?? ".";
|
|
11473
|
-
|
|
11474
|
-
|
|
11475
|
-
|
|
11476
|
-
|
|
12946
|
+
if (!prepareFolder(io, locale, dir)) return 2;
|
|
12947
|
+
if (!writeOutput(io, locale, join4(dir, "reporefit-report.md"), renderMarkdownReport(r.report, locale))) return 2;
|
|
12948
|
+
if (!writeOutput(io, locale, join4(dir, "reporefit-report.json"), renderJsonReport(r.report))) return 2;
|
|
12949
|
+
io.out(t(locale, "cli.wroteReport", { md: join4(dir, "reporefit-report.md"), json: join4(dir, "reporefit-report.json") }) + "\n");
|
|
11477
12950
|
} else if (command === "badge") {
|
|
11478
12951
|
const file = opts.out ?? "reporefit-badge.svg";
|
|
11479
|
-
|
|
11480
|
-
|
|
12952
|
+
if (!writeOutput(io, locale, file, badgeFor(r))) return 2;
|
|
12953
|
+
const folder2 = args[0] ?? ".";
|
|
12954
|
+
const link = badgeLink(folder2, file);
|
|
12955
|
+
io.out(`${t(locale, "cli.wroteBadge", { file })} ${link ? t(locale, "cli.badgeReadme", { snippet: link }) : t(locale, "cli.badgeOutside", { folder: resolve3(folder2) })}
|
|
11481
12956
|
`);
|
|
11482
12957
|
} else {
|
|
11483
12958
|
const output = format === "json" ? renderJsonReport(r.report) : format === "md" ? renderMarkdownReport(r.report, locale) : format === "fix" ? renderFixPlan(r.report, locale) : renderText(r, locale);
|
|
11484
|
-
if (opts.out)
|
|
11485
|
-
|
|
12959
|
+
if (opts.out) {
|
|
12960
|
+
if (!writeOutput(io, locale, opts.out, output)) return 2;
|
|
12961
|
+
} else io.out(output);
|
|
11486
12962
|
}
|
|
11487
12963
|
return shouldFail(r, failOn) ? 1 : 0;
|
|
11488
12964
|
}
|