Skip to content

armgit / ECC

Public Imported from GitHub
0

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

Merge branch 'main' into main

Affaan Mustafa240d553443b3
diff --cc docs/ja-JP/skills/django-security/SKILL.md
index 798824eaf,6acdbf11d..55d20725d
--- a/docs/ja-JP/skills/django-security/SKILL.md
+++ b/docs/ja-JP/skills/django-security/SKILL.md
@@@ -581,7 -581,7 +581,7 @@@ LOGGING =
| 強力なシークレット | SECRET_KEYに環境変数を使用 |
| パスワード検証 | すべてのパスワードバリデータを有効化 |
| CSRF保護 | デフォルトで有効、無効にしない |
- | XSS防止 | Djangoは自動エスケープ、ユーザー入力で`|safe`を使用しない |
-| XSS防止 | Djangoは自動エスケープ、ユーザー入力で`|safe`を使用しない |
++| XSS防止 | Djangoは自動エスケープ、ユーザー入力で<code>\|safe</code>を使用しない |
| SQLインジェクション | ORMを使用、クエリで文字列を連結しない |
| ファイルアップロード | ファイルタイプとサイズを検証 |
| レート制限 | APIエンドポイントをスロットル |
diff --cc docs/zh-TW/agents/database-reviewer.md
index 7c328febc,21d3b451f..968aa47b6
--- a/docs/zh-TW/agents/database-reviewer.md
+++ b/docs/zh-TW/agents/database-reviewer.md
@@@ -129,7 -129,7 +129,7 @@@ CREATE INDEX orders_customer_id_idx ON
| 索引類型 | 使用場景 | 運算子 |
|----------|----------|--------|
| **B-tree**(預設)| 等於、範圍 | `=`、`<`、`>`、`BETWEEN`、`IN` |
- | **GIN** | 陣列、JSONB、全文搜尋 | `@>`、`?`、`?&`、`?&#124;`、`@@` |
-| **GIN** | 陣列、JSONB、全文搜尋 | `@>`、`?`、`?&`、`?|`、`@@` |
++| **GIN** | 陣列、JSONB、全文搜尋 | `@>`、`?`、`?&`、<code>?\|</code>、`@@` |
| **BRIN** | 大型時序表 | 排序資料的範圍查詢 |
| **Hash** | 僅等於 | `=`(比 B-tree 略快)|
diff --cc tests/hooks/hooks.test.js
index 0352c4151,d6857b0dc..57c19c567
--- a/tests/hooks/hooks.test.js
+++ b/tests/hooks/hooks.test.js
@@@ -155,6 -193,6 +193,7 @@@ async function runTests()
let passed = 0;
let failed = 0;
++ let skipped = 0;
const scriptsDir = path.join(__dirname, '..', '..', 'scripts', 'hooks');
@@@ -2148,12 -2186,8 +2187,12 @@@
passed++;
else failed++;
-- if (
++ if (process.platform === 'win32') {
++ console.log(' - detect-project writes project metadata to the registry and project directory');
++ console.log(' (skipped — bash script paths are not Windows-compatible)');
++ skipped++;
++ } else if (
await asyncTest('detect-project writes project metadata to the registry and project directory', async () => {
- if (process.platform === 'win32') {
- console.log(' (skipped — bash script paths are not Windows-compatible)');
- return true;
- }
const testRoot = createTestDir();
const homeDir = path.join(testRoot, 'home');
const repoDir = path.join(testRoot, 'repo');
@@@ -4242,12 -4282,12 +4287,12 @@@
// ── Round 74: session-start.js main().catch handler ──
console.log('\nRound 74: session-start.js (main catch — unrecoverable error):');
-- if (
++ if (process.platform === 'win32') {
++ console.log(' - session-start exits 0 with error message when HOME is non-directory');
++ console.log(' (skipped — /dev/null not available on Windows)');
++ skipped++;
++ } else if (
await asyncTest('session-start exits 0 with error message when HOME is non-directory', async () => {
-- if (process.platform === 'win32') {
-- console.log(' (skipped — /dev/null not available on Windows)');
-- return;
-- }
// HOME=/dev/null makes ensureDir(sessionsDir) throw ENOTDIR,
// which propagates to main().catch — the top-level error boundary
const result = await runScript(path.join(scriptsDir, 'session-start.js'), '', {
@@@ -4264,12 -4304,12 +4309,12 @@@
// ── Round 75: pre-compact.js main().catch handler ──
console.log('\nRound 75: pre-compact.js (main catch — unrecoverable error):');
-- if (
++ if (process.platform === 'win32') {
++ console.log(' - pre-compact exits 0 with error message when HOME is non-directory');
++ console.log(' (skipped — /dev/null not available on Windows)');
++ skipped++;
++ } else if (
await asyncTest('pre-compact exits 0 with error message when HOME is non-directory', async () => {
-- if (process.platform === 'win32') {
-- console.log(' (skipped — /dev/null not available on Windows)');
-- return;
-- }
// HOME=/dev/null makes ensureDir(sessionsDir) throw ENOTDIR,
// which propagates to main().catch — the top-level error boundary
const result = await runScript(path.join(scriptsDir, 'pre-compact.js'), '', {
@@@ -4286,12 -4326,12 +4331,12 @@@
// ── Round 75: session-end.js main().catch handler ──
console.log('\nRound 75: session-end.js (main catch — unrecoverable error):');
-- if (
++ if (process.platform === 'win32') {
++ console.log(' - session-end exits 0 with error message when HOME is non-directory');
++ console.log(' (skipped — /dev/null not available on Windows)');
++ skipped++;
++ } else if (
await asyncTest('session-end exits 0 with error message when HOME is non-directory', async () => {
-- if (process.platform === 'win32') {
-- console.log(' (skipped — /dev/null not available on Windows)');
-- return;
-- }
// HOME=/dev/null makes ensureDir(sessionsDir) throw ENOTDIR inside main(),
// which propagates to runMain().catch — the top-level error boundary
const result = await runScript(path.join(scriptsDir, 'session-end.js'), '{}', {
@@@ -4308,12 -4348,12 +4353,12 @@@
// ── Round 76: evaluate-session.js main().catch handler ──
console.log('\nRound 76: evaluate-session.js (main catch — unrecoverable error):');
-- if (
++ if (process.platform === 'win32') {
++ console.log(' - evaluate-session exits 0 with error message when HOME is non-directory');
++ console.log(' (skipped — /dev/null not available on Windows)');
++ skipped++;
++ } else if (
await asyncTest('evaluate-session exits 0 with error message when HOME is non-directory', async () => {
-- if (process.platform === 'win32') {
-- console.log(' (skipped — /dev/null not available on Windows)');
-- return;
-- }
// HOME=/dev/null makes ensureDir(learnedSkillsPath) throw ENOTDIR,
// which propagates to main().catch — the top-level error boundary
const result = await runScript(path.join(scriptsDir, 'evaluate-session.js'), '{}', {
@@@ -4330,12 -4370,12 +4375,12 @@@
// ── Round 76: suggest-compact.js main().catch handler ──
console.log('\nRound 76: suggest-compact.js (main catch — double-failure):');
-- if (
++ if (process.platform === 'win32') {
++ console.log(' - suggest-compact exits 0 with error when TMPDIR is non-directory');
++ console.log(' (skipped — /dev/null not available on Windows)');
++ skipped++;
++ } else if (
await asyncTest('suggest-compact exits 0 with error when TMPDIR is non-directory', async () => {
-- if (process.platform === 'win32') {
-- console.log(' (skipped — /dev/null not available on Windows)');
-- return;
-- }
// TMPDIR=/dev/null causes openSync to fail (ENOTDIR), then the catch
// fallback writeFile also fails, propagating to main().catch
const result = await runScript(path.join(scriptsDir, 'suggest-compact.js'), '', {
@@@ -4807,7 -4847,7 +4852,8 @@@ Some random content without the expecte
console.log('\n=== Test Results ===');
console.log(`Passed: ${passed}`);
console.log(`Failed: ${failed}`);
-- console.log(`Total: ${passed + failed}\n`);
++ console.log(`Skipped: ${skipped}`);
++ console.log(`Total: ${passed + failed + skipped}\n`);
process.exit(failed > 0 ? 1 : 0);
}