clckernel 1.2.13 → 1.2.18
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/.agents/skills/clckernel_cli/SKILL.md +46 -0
- package/.agents/skills/clckernel_cli/reference/audit.md +16 -0
- package/.agents/skills/clckernel_cli/reference/commit.md +23 -0
- package/.agents/skills/clckernel_cli/reference/doctor.md +10 -0
- package/.agents/skills/clckernel_cli/reference/feature.md +38 -0
- package/.agents/skills/clckernel_cli/reference/fix.md +24 -0
- package/.agents/skills/clckernel_cli/reference/guard.md +23 -0
- package/.agents/skills/clckernel_cli/reference/phase.md +18 -0
- package/.agents/skills/clckernel_cli/reference/start.md +28 -0
- package/.agents/skills/clckernel_cli/reference/test.md +22 -0
- package/.agents/skills/clckernel_cli/reference/update.md +33 -0
- package/README.es.md +86 -0
- package/README.md +86 -0
- package/package.json +2 -1
- package/src/adapters/agent-os.js +11 -11
- package/src/catalog.js +45 -29
- package/src/config.js +1 -1
- package/src/generator.js +86 -22
- package/src/index.js +92 -7
- package/tools/audit.js +197 -38
- package/tools/audit.py +151 -25
- package/tools/check_custom.js +1 -1
- package/tools/check_hitl.js +16 -4
- /package/{src → tools}/yaml.js +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: clckernel-cli
|
|
3
|
+
description: >-
|
|
4
|
+
Conversational Agent Governance & Universal CLI Orchestrator for CLC Kernel.
|
|
5
|
+
Use when the user issues a clckernel command (e.g. clckernel feature, clckernel fix,
|
|
6
|
+
clckernel audit, clckernel doctor, clckernel commit, clckernel update, clckernel start)
|
|
7
|
+
or /clckernel, or asks to initiate a feature, fix a bug, audit architecture, run tests,
|
|
8
|
+
diagnose health, or commit changes in a project governed by CLC Kernel.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# 🤖 CLC Kernel — Agent Governance Engine
|
|
12
|
+
|
|
13
|
+
You are the runtime orchestrator of **CLC Kernel**. Your mission is to provide rigorous, deterministic AI agent governance across polyglot ecosystems (Next.js, FastAPI, Django, Astro, Rails, Go, Rust, Laravel, Agent-OS).
|
|
14
|
+
|
|
15
|
+
When the developer issues a \`clckernel <command>\` or \`/clckernel <command>\` prompt, enter the designated state machine and execute its playbook without skipping steps.
|
|
16
|
+
|
|
17
|
+
## Commands
|
|
18
|
+
|
|
19
|
+
| Command | Category | Description | Reference |
|
|
20
|
+
|---|---|---|---|
|
|
21
|
+
| `feature` | Lifecycle | Execute full AIUP cycle for a new feature (Spec -> HIT -> TDD -> Clean Code -> Audit) | [reference/feature.md](reference/feature.md) |
|
|
22
|
+
| `fix` | Lifecycle | Reproduce root cause with failing test, execute surgical fix, and audit | [reference/fix.md](reference/fix.md) |
|
|
23
|
+
| `test` | Verification | Run stack test runner and verify clean green exit code | [reference/test.md](reference/test.md) |
|
|
24
|
+
| `audit` | Verification | Run mandatory educational audit gate & AST validation | [reference/audit.md](reference/audit.md) |
|
|
25
|
+
| `doctor` | Diagnostics | Check configuration health, hook parity, symlinks & AST engine | [reference/doctor.md](reference/doctor.md) |
|
|
26
|
+
| `commit` | Version Control | Pre-flight audit, verify SDD scope, and commit with Conventional Commits | [reference/commit.md](reference/commit.md) |
|
|
27
|
+
| `update` | Maintenance | Non-destructive update: refresh core tools, playbooks & symlinks (preserves SDDs & custom guards) | [reference/update.md](reference/update.md) |
|
|
28
|
+
| `start` | Setup | Discover tech stack & initialize `.clckernel.yaml` | [reference/start.md](reference/start.md) |
|
|
29
|
+
| `create_guard` | Safeguards | Scaffold a new AST/linter guard in native stack language | [reference/guard.md](reference/guard.md) |
|
|
30
|
+
| `remove_guard` | Safeguards | Safely remove an existing guard and clean up config | [reference/guard.md](reference/guard.md) |
|
|
31
|
+
| `phase` | Lifecycle | Add or remove pipeline execution phases | [reference/phase.md](reference/phase.md) |
|
|
32
|
+
|
|
33
|
+
## Routing & Execution Rules
|
|
34
|
+
|
|
35
|
+
1. **Explicit command (e.g. `clckernel feature auth`, `clckernel fix button`, `clckernel audit`):**
|
|
36
|
+
Immediately load the corresponding playbook from `reference/` and execute its phases sequentially. Never skip the red TDD phase or the audit gate.
|
|
37
|
+
2. **General query or no arguments:**
|
|
38
|
+
Present available commands table and ask what action to perform.
|
|
39
|
+
3. **Natural language intent:**
|
|
40
|
+
- *"Nueva funcionalidad / feature"* -> Route to `feature` ([reference/feature.md](reference/feature.md))
|
|
41
|
+
- *"Corregir bug / arreglar error"* -> Route to `fix` ([reference/fix.md](reference/fix.md))
|
|
42
|
+
- *"Correr tests / pruebas"* -> Route to `test` ([reference/test.md](reference/test.md))
|
|
43
|
+
- *"Auditar / verificar arquitectura"* -> Route to `audit` ([reference/audit.md](reference/audit.md))
|
|
44
|
+
- *"Revisar estado / diagnóstico"* -> Route to `doctor` ([reference/doctor.md](reference/doctor.md))
|
|
45
|
+
- *"Commitear / guardar cambios"* -> Route to `commit` ([reference/commit.md](reference/commit.md))
|
|
46
|
+
4. **Mandatory Audit Gate:** Never declare success on code changes without running the audit gate and outputting the summary.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Playbook: Mandatory Educational Audit Gate
|
|
2
|
+
|
|
3
|
+
Use this playbook when auditing code quality, architecture compliance, or executing the mandatory audit gate (via `/clc audit`, `/clckernel audit`, or conversational request like *"corré la auditoría del kernel"*).
|
|
4
|
+
|
|
5
|
+
## Execution
|
|
6
|
+
|
|
7
|
+
1. **Locate Audit Tool:** Check available audit scripts:
|
|
8
|
+
- `node tools/audit.js` (JavaScript / Node environment)
|
|
9
|
+
- `python tools/audit.py` (Python / Backend environment)
|
|
10
|
+
2. **Execute Audit:** Run the tool within project workspace.
|
|
11
|
+
3. **Educational Summary:** Output the educational audit summary highlighting:
|
|
12
|
+
- AST Architectural conformance
|
|
13
|
+
- TDD compliance & test coverage
|
|
14
|
+
- Security & Secrets scan results
|
|
15
|
+
- Performance / DB efficiency checks
|
|
16
|
+
4. **Actionable Feedback:** If any guard fails, explain the exact violation, why it breaches architectural invariants, and how to remediate it.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# 📦 Playbook: \`clckernel commit <message>\`
|
|
2
|
+
|
|
3
|
+
Safely commit changes after verifying all pre-flight quality and architecture gates.
|
|
4
|
+
|
|
5
|
+
## Mandatory Execution Protocol
|
|
6
|
+
|
|
7
|
+
### Step 1: Pre-Flight AST Audit
|
|
8
|
+
1. Run \`node tools/audit.js\` or \`python tools/audit.py\`.
|
|
9
|
+
2. Ensure 100% of discovered guards pass with 0 errors and 0 secret leaks.
|
|
10
|
+
|
|
11
|
+
### Step 2: Scope Verification
|
|
12
|
+
1. Compare \`git diff --cached\` (or unstaged diff) against the active SDD spec in \`sdds/{change}/\`.
|
|
13
|
+
2. Verify that no files outside the agreed feature scope are staged.
|
|
14
|
+
|
|
15
|
+
### Step 3: Conventional Commit Formatting
|
|
16
|
+
1. Format commit message according to Conventional Commits:
|
|
17
|
+
- \`feat(...): ...\`
|
|
18
|
+
- \`fix(...): ...\`
|
|
19
|
+
- \`refactor(...): ...\`
|
|
20
|
+
- \`test(...): ...\`
|
|
21
|
+
- \`docs(...): ...\`
|
|
22
|
+
2. **STRICT LAW:** NEVER add "Co-Authored-By", AI signatures, or AI attribution.
|
|
23
|
+
3. Stage required files and commit cleanly.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Playbook: Kernel Doctor & Diagnostics
|
|
2
|
+
|
|
3
|
+
Use this playbook to diagnose environment health, detect hook drift, or verify configuration integrity (via `/clc doctor`, `/clckernel doctor`, or conversational request like *"revisá el estado del kernel"*).
|
|
4
|
+
|
|
5
|
+
## Checks
|
|
6
|
+
|
|
7
|
+
1. **Config Integrity:** Validate `.clckernel.yaml` syntax and presence of required sections (`framework`, `language`, `project_type`, `safeguards`).
|
|
8
|
+
2. **Hook Parity:** Check that git hooks (`.githooks/pre-commit` or `.husky/pre-commit`) are installed and executable (`chmod +x`).
|
|
9
|
+
3. **Tools & Guards Health:** Verify that scripts referenced in `.clckernel.yaml` exist in `tools/` and run without syntax errors.
|
|
10
|
+
4. **Drift Remediation:** If drift is detected, offer automatic fix or report clear steps.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# 🚀 Playbook: \`clckernel feature <name>\`
|
|
2
|
+
|
|
3
|
+
Guide the developer through implementing a new feature strictly governed by the **AI Unified Process (AIUP)**.
|
|
4
|
+
|
|
5
|
+
## Mandatory Execution Protocol
|
|
6
|
+
|
|
7
|
+
### Step 1: Research & Impact Analysis
|
|
8
|
+
1. Inspect the codebase, existing modules, and architecture layers before writing any code.
|
|
9
|
+
2. Determine affected architectural layers (Domain, Use Cases, Infrastructure, Presentation).
|
|
10
|
+
|
|
11
|
+
### Step 2: Local SDD Specification
|
|
12
|
+
1. Create a local specification file at \`sdds/{name}/spec.md\` (or \`sdds/{name}/01-spec.md\`).
|
|
13
|
+
2. Document:
|
|
14
|
+
- Feature purpose and user requirements.
|
|
15
|
+
- API / Domain contracts and interfaces.
|
|
16
|
+
- Affected files and strict layer boundaries.
|
|
17
|
+
- Planned test scenarios (unit, integration, edge cases).
|
|
18
|
+
|
|
19
|
+
### Step 3: Human-in-the-Loop (HIT) Review Gate
|
|
20
|
+
1. Present the proposed SDD spec, contracts, and test scenarios directly to the user in chat.
|
|
21
|
+
2. **STOP.** Explicitly ask for developer confirmation:
|
|
22
|
+
> *"Review the proposed contracts and test scenarios above. Shall we proceed to the Red TDD phase?"*
|
|
23
|
+
3. Wait for the user's approval before touching any production source files.
|
|
24
|
+
|
|
25
|
+
### Step 4: TDD Red Phase (Failing Test)
|
|
26
|
+
1. Write a failing regression or unit test demonstrating the new feature requirement.
|
|
27
|
+
2. Run the test suite and verify it fails with a non-zero exit code.
|
|
28
|
+
3. Confirm that the failure message proves the feature is missing or non-functional.
|
|
29
|
+
|
|
30
|
+
### Step 5: Clean Implementation (Green Phase)
|
|
31
|
+
1. Implement the minimal clean code necessary to make the failing test pass.
|
|
32
|
+
2. Maintain strict Clean Architecture boundaries (Domain -> Use Case -> Infrastructure).
|
|
33
|
+
3. Re-run tests to confirm 100% green pass.
|
|
34
|
+
|
|
35
|
+
### Step 6: Mandatory AST Audit Gate
|
|
36
|
+
1. Execute \`node tools/audit.js\` or \`python tools/audit.py\`.
|
|
37
|
+
2. Output the Educational Summary table to stdout.
|
|
38
|
+
3. Verify zero secrets, zero layer violations, and zero N+1 queries.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# 🔧 Playbook: \`clckernel fix <issue>\`
|
|
2
|
+
|
|
3
|
+
Enforce deterministic bug fixing without quick-fix shortcuts or superficial patches.
|
|
4
|
+
|
|
5
|
+
## Mandatory Execution Protocol
|
|
6
|
+
|
|
7
|
+
### Step 1: Root Cause & Traceback Analysis
|
|
8
|
+
1. Analyze the issue description, error logs, and stack trace.
|
|
9
|
+
2. Inspect the relevant files and surrounding architecture to pinpoint the exact failure mechanism.
|
|
10
|
+
3. **DO NOT** edit source code directly to "try things out".
|
|
11
|
+
|
|
12
|
+
### Step 2: TDD Red Phase (Regression Test)
|
|
13
|
+
1. Write a focused test that reproduces the bug demonstrably.
|
|
14
|
+
2. Run the test and verify it fails with the exact error described.
|
|
15
|
+
3. Log the failure output as proof of regression reproduction.
|
|
16
|
+
|
|
17
|
+
### Step 3: Surgical Clean Architecture Fix (Green Phase)
|
|
18
|
+
1. Apply the minimal surgical change addressing the root cause.
|
|
19
|
+
2. Respect layer isolation: do not bypass Domain or Use Case rules for convenience.
|
|
20
|
+
3. Run the regression test and confirm it passes in green.
|
|
21
|
+
|
|
22
|
+
### Step 4: Mandatory Audit Gate
|
|
23
|
+
1. Execute \`node tools/audit.js\` or \`python tools/audit.py\`.
|
|
24
|
+
2. Output the Educational Summary table to verify no side effects or guard violations occurred.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Playbook: Safeguards Management (Create & Remove)
|
|
2
|
+
|
|
3
|
+
Use this playbook when the user wants to add, modify, or delete custom architecture/security guards (via `/clc create_guard`, `/clc remove_guard`, or natural language like *"creá un guard para bloquear imports prohibidos"*).
|
|
4
|
+
|
|
5
|
+
## 🛠️ Create Guard
|
|
6
|
+
|
|
7
|
+
1. **Clarify Objective:** If not specified, ask what AST node, pattern, or security risk to intercept. **STOP.** Wait for details.
|
|
8
|
+
2. **Native Language Implementation:** Write the guard script in the native stack language:
|
|
9
|
+
- Python projects -> Python `ast` script in `tools/guards/<name>_guard.py`
|
|
10
|
+
- Node / TS projects -> JS/TS script in `tools/guards/<name>_guard.js`
|
|
11
|
+
- Go projects -> Go `go/parser` / `ast` script
|
|
12
|
+
- Ruby projects -> Ruby `parser` gem script
|
|
13
|
+
3. **Register in Config:** Add the guard definition under `custom_safeguards` or `tools` in `.clckernel.yaml`.
|
|
14
|
+
4. **Validation:** Run the script against test fixtures to confirm it flags violations and exits cleanly on compliant code.
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## 🗑️ Remove Guard
|
|
19
|
+
|
|
20
|
+
1. Identify the target guard from user request or ask for confirmation.
|
|
21
|
+
2. Update `.clckernel.yaml` removing the guard entry.
|
|
22
|
+
3. If requested, delete the corresponding file from `tools/guards/`.
|
|
23
|
+
4. Confirm removal cleanly.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Playbook: Execution Phases Management
|
|
2
|
+
|
|
3
|
+
Use this playbook when adding, modifying, or removing lifecycle phases in the AIUP governance pipeline (via `/clc add_phase`, `/clc remove_phase`, or conversational request like *"agregá una fase de smoke test antes del commit"*).
|
|
4
|
+
|
|
5
|
+
## Guidelines
|
|
6
|
+
|
|
7
|
+
1. **Understand Phase Purpose:**
|
|
8
|
+
- Pre-implementation (e.g. Research, SDD spec, RFC alignment)
|
|
9
|
+
- Implementation (e.g. TDD Red/Green, Layer Check)
|
|
10
|
+
- Verification / Audit (e.g. AST Audit, E2E, Smoke test)
|
|
11
|
+
- Delivery (e.g. Git pre-commit, PR generation)
|
|
12
|
+
|
|
13
|
+
2. **Update `.clckernel.yaml`:**
|
|
14
|
+
- Preserve execution order and dependencies.
|
|
15
|
+
- Specify whether the phase is blocking (`required: true`) or advisory (`required: false`).
|
|
16
|
+
|
|
17
|
+
3. **Confirm & Validate:**
|
|
18
|
+
- Present the updated pipeline flow to the user.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Playbook: Start / Initialize CLC Kernel
|
|
2
|
+
|
|
3
|
+
Use this playbook when the user wants to initialize, start, or set up governance in a project (via `/clc start`, `/clckernel start`, or conversational request like *"inicializar el proyecto con clc"*).
|
|
4
|
+
|
|
5
|
+
## Sequence
|
|
6
|
+
|
|
7
|
+
### Phase 1: Silent Discovery
|
|
8
|
+
1. Inspect project root files without asking. Look for signatures:
|
|
9
|
+
- `package.json` -> Next.js / Astro / Node
|
|
10
|
+
- `requirements.txt` / `pyproject.toml` -> FastAPI / Django
|
|
11
|
+
- `go.mod` -> Go
|
|
12
|
+
- `Cargo.toml` -> Rust
|
|
13
|
+
- `Gemfile` -> Rails
|
|
14
|
+
- `composer.json` -> Laravel
|
|
15
|
+
- `Dockerfile`, `docker-compose.yml`, `redis.conf`, `celery.py` -> Secondary tech stack
|
|
16
|
+
2. **Rule:** Never guess the tech stack. Inspect the actual repository files.
|
|
17
|
+
|
|
18
|
+
### Phase 2: Interactive Alignment
|
|
19
|
+
Present detected stack and proposal clearly:
|
|
20
|
+
1. Summarize detected architecture and auto-provisioned safeguards (e.g., TDD Red/Green, AST architecture guard, DB efficiency, secrets scan, tech-specific guards).
|
|
21
|
+
2. Ask one clear question:
|
|
22
|
+
- *"¿Activamos estas fases y salvaguardas estándar, o querés personalizar alguna regla o fase?"*
|
|
23
|
+
3. **STOP.** Wait for the user's response.
|
|
24
|
+
|
|
25
|
+
### Phase 3: Materialization
|
|
26
|
+
1. Write or update `.clckernel.yaml` at project root.
|
|
27
|
+
2. If hooks are configured, ensure `.githooks/pre-commit` or `.husky/pre-commit` are provisioned.
|
|
28
|
+
3. Confirm completion with a concise summary.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# 🧪 Playbook: \`clckernel test\`
|
|
2
|
+
|
|
3
|
+
Execute the repository test suite within the native environment runner.
|
|
4
|
+
|
|
5
|
+
## Mandatory Execution Protocol
|
|
6
|
+
|
|
7
|
+
### Step 1: Detect Test Runner
|
|
8
|
+
1. Inspect \`.clckernel.yaml\` or project files to identify the configured test runner:
|
|
9
|
+
- Node: \`npm test\` / \`vitest\` / \`jest\`
|
|
10
|
+
- Python: \`pytest\`
|
|
11
|
+
- Go: \`go test ./...\`
|
|
12
|
+
- Ruby: \`bundle exec rspec\`
|
|
13
|
+
- Rust: \`cargo test\`
|
|
14
|
+
- PHP: \`vendor/bin/pest\` / \`phpunit\`
|
|
15
|
+
|
|
16
|
+
### Step 2: Run Tests
|
|
17
|
+
1. Execute the test command.
|
|
18
|
+
2. If tests fail:
|
|
19
|
+
- Provide clear failure tracebacks.
|
|
20
|
+
- Propose fixing through the \`clckernel fix\` protocol.
|
|
21
|
+
3. If tests pass:
|
|
22
|
+
- Confirm green test status (exit code 0).
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Playbook: Update / Upgrade CLC Kernel
|
|
2
|
+
|
|
3
|
+
Use this playbook when the user wants to update an existing project to the latest version of CLC Kernel (via `/clc update`, `clckernel update`, `npx clckernel update`, or conversational request like *"actualizar clckernel en el proyecto"*).
|
|
4
|
+
|
|
5
|
+
## Invariants: The Non-Destructive Update Contract
|
|
6
|
+
|
|
7
|
+
1. **NEVER DELETE OR OVERWRITE `sdds/`:** All local specifications (`sdds/*/spec.md`, `plan.md`) must stay 100% intact.
|
|
8
|
+
2. **NEVER TOUCH CUSTOM GUARDS:** Any user-defined scripts under `tools/guards/` are preserved without alteration.
|
|
9
|
+
3. **NEVER OVERWRITE CONFIGURATION:** Existing `.clckernel.yaml` or `.clc-forge.yaml` settings and custom thresholds remain intact.
|
|
10
|
+
4. **NEVER MODIFY APPLICATION CODE:** Source files, domain layers, and application tests are never touched.
|
|
11
|
+
|
|
12
|
+
## Update Sequence
|
|
13
|
+
|
|
14
|
+
### Phase 1: Inspection & Detection
|
|
15
|
+
1. Verify the project is already governed by checking for `AGENTS.md`, `.clckernel.yaml`, `.husky/pre-commit`, or `.githooks/pre-commit`.
|
|
16
|
+
2. Inspect the active framework and test runner.
|
|
17
|
+
|
|
18
|
+
### Phase 2: Refresh Core Infrastructure
|
|
19
|
+
1. Refresh bundled AST audit tools in `tools/`:
|
|
20
|
+
- `tools/audit.js` / `tools/audit.py`
|
|
21
|
+
- Built-in guards (`scan_secrets.js`, `check_responsive.js`, `check_seo.js`, `check_db_efficiency.py`, `check_custom.js`, `docker_guard.py`, etc.)
|
|
22
|
+
2. Refresh Agent Skills & Playbooks:
|
|
23
|
+
- Synchronize `.agents/skills/clckernel_cli/` with latest playbooks and references.
|
|
24
|
+
3. Refresh Cross-IDE Rule Symlinks:
|
|
25
|
+
- Ensure `CLAUDE.md`, `GEMINI.md`, `.cursorrules`, `.cursor/rules/*.mdc`, `.github/copilot-instructions.md`, and `.antigravity/rules.md` link to `AGENTS.md`.
|
|
26
|
+
4. Refresh Pre-commit Hook:
|
|
27
|
+
- Ensure the git pre-commit hook runs the latest standard guards while preserving any custom checks.
|
|
28
|
+
|
|
29
|
+
### Phase 3: Verification & Reporting
|
|
30
|
+
1. Run `node tools/audit.js` or `python tools/audit.py` to verify harness health.
|
|
31
|
+
2. Output a transparent Educational Summary highlighting:
|
|
32
|
+
- What was updated (core tools, playbooks, symlinks)
|
|
33
|
+
- What was preserved (SDDs, custom guards, YAML configuration)
|
package/README.es.md
CHANGED
|
@@ -20,11 +20,14 @@ Los agentes de programación con IA (Cursor, Claude Code, Windsurf, Copilot) cod
|
|
|
20
20
|
## 📋 Tabla de Contenidos
|
|
21
21
|
- [🎯 Casos de Uso](#-casos-de-uso)
|
|
22
22
|
- [🏛️ El Proceso Unificado de IA (AIUP)](#️-el-proceso-unificado-de-ia-aiup)
|
|
23
|
+
- [🔍 Desarrollo Guiado por Revisión (RDD) y los 4 Lentes](#-desarrollo-guiado-por-revisión-rdd-y-los-4-lentes)
|
|
23
24
|
- [⚡ Guía Paso a Paso (Ciclo Completo)](#-guía-paso-a-paso-ciclo-completo)
|
|
24
25
|
- [🎮 Interfaz Universal de Comandos](#-interfaz-universal-de-comandos)
|
|
25
26
|
- [🔄 Actualización de Proyectos Existentes](#-actualización-de-proyectos-existentes)
|
|
26
27
|
- [🌐 Ecosistemas Soportados y Arquetipos](#-ecosistemas-soportados-y-arquetipos)
|
|
28
|
+
- [🏛️ Arquitectura: Standalone vs. Simbiosis con Gentle AI](#-arquitectura-standalone-vs-simbiosis-con-gentle-ai)
|
|
27
29
|
- [🧩 Herramientas Complementarias (Opcionales)](#-herramientas-complementarias-opcionales)
|
|
30
|
+
- [📖 Glosario de Términos Clave](#-glosario-de-términos-clave)
|
|
28
31
|
- [📄 Licencia](#-licencia)
|
|
29
32
|
|
|
30
33
|
---
|
|
@@ -62,6 +65,28 @@ Los agentes de programación con IA (Cursor, Claude Code, Windsurf, Copilot) cod
|
|
|
62
65
|
|
|
63
66
|
---
|
|
64
67
|
|
|
68
|
+
<a id="rdd-y-lentes"></a>
|
|
69
|
+
## 🔍 Desarrollo Guiado por Revisión (RDD) y los 4 Lentes
|
|
70
|
+
|
|
71
|
+
CLC Kernel estructura todas sus compuertas de auditoría bajo los principios de **Review-Driven Development (RDD)**, organizando cada salvaguarda en torno a los **4 Lentes Canónicos de Revisión**:
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
┌─────────────────────────────────────────────────────────────────────────────┐
|
|
75
|
+
│ LOS 4 LENTES CANÓNICOS DE REVISIÓN │
|
|
76
|
+
├─────────────────────┬───────────────────┬───────────────────┬───────────────┤
|
|
77
|
+
│ 🎯 CORRECTITUD │ 🛡️ SEGURIDAD │ 🏛️ ARQUITECTURA │ ⚡ RENDIMIENTO│
|
|
78
|
+
│ Bugs funcionales, │ Fuga de secretos, │ Violación capas, │ N+1 queries, │
|
|
79
|
+
│ scope drift, TDD, │ bypass permisos, │ límites de dominio│ tamaño bundle,│
|
|
80
|
+
│ contratos API │ eval peligroso │ deps circulares │ memory leaks │
|
|
81
|
+
└─────────────────────┴───────────────────┴───────────────────┴───────────────┘
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Al ejecutar `clckernel audit` (o `node tools/audit.js`), CLC Kernel genera:
|
|
85
|
+
1. **Informe Educativo para Humanos (`05-audit-report.md`):** Explica detalladamente qué pasó, falló o fue omitido agrupado por cada lente.
|
|
86
|
+
2. **Recibo Inmutable de Auditoría (`audit-receipt.json`):** Un archivo JSON inmutable y legible por máquina vinculado al `commitHash` actual que certifica el resultado para compuertas automatizadas de revisión (como Gentle AI).
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
65
90
|
<a id="guia-paso-a-paso"></a>
|
|
66
91
|
## ⚡ Guía Paso a Paso (Ciclo Completo)
|
|
67
92
|
|
|
@@ -169,6 +194,49 @@ clckernel update
|
|
|
169
194
|
|
|
170
195
|
---
|
|
171
196
|
|
|
197
|
+
<a id="arquitectura-simbiosis"></a>
|
|
198
|
+
## 🏛️ Arquitectura: Standalone vs. Simbiosis con Gentle AI
|
|
199
|
+
|
|
200
|
+
CLC Kernel está diseñado bajo una **filosofía de cero dependencias forzadas**: opera como un motor de gobernanza 100% autosuficiente y local, ofreciendo a su vez interoperabilidad nativa y fluida con el ecosistema de [Gentle AI](https://github.com/Gentleman-Programming/gentle-ai).
|
|
201
|
+
|
|
202
|
+
<div align="center">
|
|
203
|
+
<img src="./docs/Architecture/clckernel-symbiosis.visual-check.2048x1320.dark.png" alt="CLC Kernel Standalone vs Simbiosis con Gentle AI (Diagrama Archify)" width="100%" />
|
|
204
|
+
</div>
|
|
205
|
+
|
|
206
|
+
> 💡 *Diagrama Interactivo: Generado con [Archify](https://github.com/tt-a1i/archify). Podés abrir [`docs/Architecture/clckernel-symbiosis.html`](./docs/Architecture/clckernel-symbiosis.html) para explorar la animación de flujo, cambiar entre modo claro/oscuro e inspeccionar detalles de cada nodo.*
|
|
207
|
+
|
|
208
|
+
```mermaid
|
|
209
|
+
flowchart TD
|
|
210
|
+
subgraph CORE["🤖 CLC KERNEL (Motor Central de Gobernanza)"]
|
|
211
|
+
SSOT["1. Ley SSOT<br/>(AGENTS.md y Symlinks para IDEs)"]
|
|
212
|
+
AIUP["2. Arnés AIUP<br/>(SDD + HITL + TDD Rojo-a-Verde)"]
|
|
213
|
+
AST["3. Linters AST <5ms<br/>(Reglas de Capas, Secretos y Migraciones)"]
|
|
214
|
+
RECEIPT["4. Motor de Auditoría 4-Lentes<br/>(Genera audit-receipt.json)"]
|
|
215
|
+
SSOT --> AIUP --> AST --> RECEIPT
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
RECEIPT -->|audit-receipt.json| MODES{Modo de Ejecución}
|
|
219
|
+
|
|
220
|
+
subgraph MODE1["🟢 MODO 1: STANDALONE (100% Local y Desconectado)"]
|
|
221
|
+
M1_1["• Cero dependencias externas"]
|
|
222
|
+
M1_2["• Ejecución nativa AST en < 5ms"]
|
|
223
|
+
M1_3["• Hook Git pre-commit bloquea físicamente commits inválidos"]
|
|
224
|
+
M1_4["• Reporte autosuficiente 05-audit-report.md"]
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
subgraph MODE2["🟣 MODO 2: + SIMBIOSIS CON GENTLE AI"]
|
|
228
|
+
M2_1["🧠 Engram (MCP): Contexto persistente y seguimiento de ADRs"]
|
|
229
|
+
M2_2["🛡️ Gentle AI (RDD): Revisión multi-agente adversarial"]
|
|
230
|
+
M2_3["🕸️ Graphify: Topología de código y análisis de impacto"]
|
|
231
|
+
M2_4["🔗 Sin bloqueo de proveedor: Consume audit-receipt.json sin fricción"]
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
MODES -->|Solo Local| MODE1
|
|
235
|
+
MODES -->|Con Herramientas Companion| MODE2
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
---
|
|
239
|
+
|
|
172
240
|
<a id="herramientas-complementarias"></a>
|
|
173
241
|
## 🧩 Herramientas Complementarias (Opcionales)
|
|
174
242
|
|
|
@@ -179,6 +247,24 @@ CLC Kernel se enfoca estrictamente en gobernanza y opera con **cero dependencias
|
|
|
179
247
|
|
|
180
248
|
---
|
|
181
249
|
|
|
250
|
+
<a id="glosario"></a>
|
|
251
|
+
## 📖 Glosario de Términos Clave
|
|
252
|
+
|
|
253
|
+
| Término | Definición |
|
|
254
|
+
|---|---|
|
|
255
|
+
| **SDD** *(Spec-Driven Development)* | Metodología orientada a especificaciones previas donde los contratos técnicos, esquemas, criterios de aceptación y escenarios de prueba se redactan en specs locales gitignoradas (`sdds/{cambio}/spec.md`) antes de modificar código fuente. |
|
|
256
|
+
| **RDD** *(Review-Driven Development)* | Metodología de verificación adversarial y estructurada donde los cambios se auditan a través de cuatro lentes ortogonales (Correctitud, Seguridad, Arquitectura y Rendimiento) para garantizar compuertas sistemáticas de calidad antes del merge o commit. |
|
|
257
|
+
| **AIUP** *(AI Unified Process)* | El ciclo de vida gobernado de punta a punta implementado por CLC Kernel: Investigación $\rightarrow$ SDD local $\rightarrow$ Aprobación Human-in-the-Loop (HITL) $\rightarrow$ TDD Rojo a Verde $\rightarrow$ Compuerta de Auditoría AST $\rightarrow$ Conventional Commit. |
|
|
258
|
+
| **HIT / HITL** *(Human-in-the-Loop)* | Compuerta obligatoria de aprobación donde un ingeniero humano valida contratos, decisiones arquitectónicas y pruebas propuestas antes de que un agente autónomo edite código de producción. |
|
|
259
|
+
| **TDD** *(Test-Driven Development)* | Práctica de ingeniería de reproducir bugs o especificar nuevas funcionalidades mediante un test automatizado que falle (Fase Roja) antes de escribir el código mínimo de producción para que pase (Fase Verde). |
|
|
260
|
+
| **Guard AST** *(Salvaguarda de Árbol de Sintaxis Abstracta)* | Script liviano de análisis estático sin dependencias foráneas escrito en el lenguaje nativo del stack (Python `ast`, TypeScript Compiler API, Go `go/parser`, RuboCop, etc.) que se ejecuta en menos de 5ms para bloquear físicamente violaciones antes del commit. |
|
|
261
|
+
| **SSOT** *(Single Source of Truth / Única Fuente de Verdad)* | Principio de gobernanza centralizada donde `AGENTS.md` funciona como la ley única, proyectándose automáticamente a todos los entornos de agentes (`CLAUDE.md`, `GEMINI.md`, `.cursorrules`, Copilot) mediante symlinks del sistema de archivos. |
|
|
262
|
+
| **Recibo de Auditoría** *(Audit Receipt)* | Artefacto JSON inmutable y legible por máquina (`audit-receipt.json`) producido por el motor de auditoría con la marca de tiempo, hash del commit, veredictos por cada lente y metadatos de compatibilidad RDD para Gentle AI. |
|
|
263
|
+
| **ADR** *(Architectural Decision Record)* | Documento estandarizado bajo `docs/Journal/` que captura decisiones arquitectónicas clave, contexto histórico, alternativas evaluadas y consecuencias. |
|
|
264
|
+
| **Agent-OS** | Arquetipo de sistema operativo para flujos de agentes y dominios no técnicos (por ejemplo: Marketing OS, Content Ops, Research OS) gobernado por arquitectura de dos capas, validación estricta de esquemas y compuertas HITL. |
|
|
265
|
+
|
|
266
|
+
---
|
|
267
|
+
|
|
182
268
|
<a id="licencia"></a>
|
|
183
269
|
## 📄 Licencia
|
|
184
270
|
MIT © [CarlosLeonCode](https://github.com/carlosleoncode)
|
package/README.md
CHANGED
|
@@ -20,11 +20,14 @@ AI coding agents (Cursor, Claude Code, Windsurf, Copilot) code fast, but without
|
|
|
20
20
|
## 📋 Table of Contents
|
|
21
21
|
- [🎯 Use Cases](#-use-cases)
|
|
22
22
|
- [🏛️ The AI Unified Process (AIUP)](#️-the-ai-unified-process-aiup)
|
|
23
|
+
- [🔍 Review-Driven Development (RDD) & the 4 Canonical Lenses](#-review-driven-development-rdd--the-4-canonical-lenses)
|
|
23
24
|
- [⚡ Step-by-Step Guide (Full Lifecycle)](#-step-by-step-guide-full-lifecycle)
|
|
24
25
|
- [🎮 Universal Command Interface](#-universal-command-interface)
|
|
25
26
|
- [🔄 Updating an Existing Project](#-updating-an-existing-project)
|
|
26
27
|
- [🌐 Supported Stacks & Archetypes](#-supported-stacks--archetypes)
|
|
28
|
+
- [🏛️ Architecture: Standalone vs. Gentle AI Symbiosis](#-architecture-standalone-vs-gentle-ai-symbiosis)
|
|
27
29
|
- [🧩 Optional Ecosystem Companions](#-optional-ecosystem-companions)
|
|
30
|
+
- [📖 Glossary of Key Terms](#-glossary-of-key-terms)
|
|
28
31
|
- [📄 License](#-license)
|
|
29
32
|
|
|
30
33
|
---
|
|
@@ -62,6 +65,28 @@ AI coding agents (Cursor, Claude Code, Windsurf, Copilot) code fast, but without
|
|
|
62
65
|
|
|
63
66
|
---
|
|
64
67
|
|
|
68
|
+
<a id="rdd-and-lenses"></a>
|
|
69
|
+
## 🔍 Review-Driven Development (RDD) & the 4 Canonical Lenses
|
|
70
|
+
|
|
71
|
+
CLC Kernel structures all verification and audit gates around **Review-Driven Development (RDD)**, categorizing every safeguard across the **4 Canonical Review Lenses**:
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
┌─────────────────────────────────────────────────────────────────────────────┐
|
|
75
|
+
│ THE 4 CANONICAL REVIEW LENSES │
|
|
76
|
+
├─────────────────────┬───────────────────┬───────────────────┬───────────────┤
|
|
77
|
+
│ 🎯 CORRECTNESS │ 🛡️ SECURITY │ 🏛️ ARCHITECTURE │ ⚡ PERFORMANCE│
|
|
78
|
+
│ Functional bugs, │ Secret leaks, │ Layer violations, │ N+1 queries, │
|
|
79
|
+
│ scope drift, TDD, │ permission bypass,│ domain boundaries,│ bundle size, │
|
|
80
|
+
│ API contracts │ dangerous eval │ circular deps │ memory leaks │
|
|
81
|
+
└─────────────────────┴───────────────────┴───────────────────┴───────────────┘
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
When you run `clckernel audit` (or `node tools/audit.js`), CLC Kernel generates:
|
|
85
|
+
1. **Human-Readable Educational Report (`05-audit-report.md`):** Explains exactly what passed, failed, or was skipped grouped by lens.
|
|
86
|
+
2. **Machine-Readable Audit Receipt (`audit-receipt.json`):** An immutable JSON receipt bound to the active `commitHash` certifying the verdict for automated review gates (such as Gentle AI).
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
65
90
|
<a id="step-by-step-guide"></a>
|
|
66
91
|
## ⚡ Step-by-Step Guide (Full Lifecycle)
|
|
67
92
|
|
|
@@ -169,6 +194,49 @@ clckernel update
|
|
|
169
194
|
|
|
170
195
|
---
|
|
171
196
|
|
|
197
|
+
<a id="architecture-symbiosis"></a>
|
|
198
|
+
## 🏛️ Architecture: Standalone vs. Gentle AI Symbiosis
|
|
199
|
+
|
|
200
|
+
CLC Kernel is architected with a **zero-lock-in philosophy**: it functions as a 100% self-sufficient local governance engine, while offering seamless, native interoperability with the [Gentle AI](https://github.com/Gentleman-Programming/gentle-ai) ecosystem.
|
|
201
|
+
|
|
202
|
+
<div align="center">
|
|
203
|
+
<img src="./docs/Architecture/clckernel-symbiosis.visual-check.2048x1320.dark.png" alt="CLC Kernel Standalone vs Gentle AI Symbiosis (Archify Diagram)" width="100%" />
|
|
204
|
+
</div>
|
|
205
|
+
|
|
206
|
+
> 💡 *Interactive Diagram: Built with [Archify](https://github.com/tt-a1i/archify). Open [`docs/Architecture/clckernel-symbiosis.html`](./docs/Architecture/clckernel-symbiosis.html) for full trace animation, theme switching, and deep-link node inspection.*
|
|
207
|
+
|
|
208
|
+
```mermaid
|
|
209
|
+
flowchart TD
|
|
210
|
+
subgraph CORE["🤖 CLC KERNEL (Core Governance Engine)"]
|
|
211
|
+
SSOT["1. SSOT Law<br/>(AGENTS.md & IDE Mirrors)"]
|
|
212
|
+
AIUP["2. AIUP Harness<br/>(SDD + HITL + TDD Red-to-Green)"]
|
|
213
|
+
AST["3. AST Guards <5ms<br/>(Layer, Secret & Migration Rules)"]
|
|
214
|
+
RECEIPT["4. 4-Lens Audit Engine<br/>(Emits audit-receipt.json)"]
|
|
215
|
+
SSOT --> AIUP --> AST --> RECEIPT
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
RECEIPT -->|audit-receipt.json| MODES{Deployment Mode}
|
|
219
|
+
|
|
220
|
+
subgraph MODE1["🟢 MODE 1: STANDALONE (100% Local & Offline)"]
|
|
221
|
+
M1_1["• Zero foreign dependencies"]
|
|
222
|
+
M1_2["• Native stack AST execution in < 5ms"]
|
|
223
|
+
M1_3["• Git pre-commit hook physically blocks invalid commits"]
|
|
224
|
+
M1_4["• Self-contained 05-audit-report.md"]
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
subgraph MODE2["🟣 MODE 2: + GENTLE AI SYMBIOSIS"]
|
|
228
|
+
M2_1["🧠 Engram (MCP): Persistent context & ADR tracking"]
|
|
229
|
+
M2_2["🛡️ Gentle AI (RDD): Multi-agent adversarial review"]
|
|
230
|
+
M2_3["🕸️ Graphify: Codebase topology & blast radius analysis"]
|
|
231
|
+
M2_4["🔗 Zero-Lock-In: Consumes audit-receipt.json seamlessly"]
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
MODES -->|Local Only| MODE1
|
|
235
|
+
MODES -->|With Companions| MODE2
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
---
|
|
239
|
+
|
|
172
240
|
<a id="ecosystem-companions"></a>
|
|
173
241
|
## 🧩 Optional Ecosystem Companions
|
|
174
242
|
|
|
@@ -179,6 +247,24 @@ CLC Kernel focuses strictly on governance and runs with **zero foreign dependenc
|
|
|
179
247
|
|
|
180
248
|
---
|
|
181
249
|
|
|
250
|
+
<a id="glossary"></a>
|
|
251
|
+
## 📖 Glossary of Key Terms
|
|
252
|
+
|
|
253
|
+
| Term | Definition |
|
|
254
|
+
|---|---|
|
|
255
|
+
| **SDD** *(Spec-Driven Development)* | A specification-first methodology where detailed technical contracts, schemas, acceptance criteria, and test scenarios are authored in local, gitignored specs (`sdds/{change}/spec.md`) before modifying source code. |
|
|
256
|
+
| **RDD** *(Review-Driven Development)* | An adversarial and structured code verification methodology where changes are audited across four orthogonal lenses (Correctness, Security, Architecture, Performance) to ensure systematic quality gates before merge or commit. |
|
|
257
|
+
| **AIUP** *(AI Unified Process)* | The end-to-end governed lifecycle implemented by CLC Kernel: Research $\rightarrow$ Local SDD $\rightarrow$ Human-in-the-Loop (HITL) approval $\rightarrow$ TDD Red-to-Green $\rightarrow$ AST Guard Audit Gate $\rightarrow$ Conventional Commit. |
|
|
258
|
+
| **HIT / HITL** *(Human-in-the-Loop)* | A mandatory approval gate where a human engineer validates contracts, architecture decisions, and proposed tests before an autonomous agent executes production code edits. |
|
|
259
|
+
| **TDD** *(Test-Driven Development)* | The engineering practice of writing a failing automated regression test (Red Phase) to reproduce an issue or specify a new feature before writing the minimal production code to make it pass (Green Phase). |
|
|
260
|
+
| **AST Guard** *(Abstract Syntax Tree Safeguard)* | A lightweight, zero-dependency static analysis script in the stack's native language (Python `ast`, TypeScript Compiler API, Go `go/parser`, RuboCop, etc.) executing in under 5ms to physically block architectural violations before git commits. |
|
|
261
|
+
| **SSOT** *(Single Source of Truth)* | The centralized governance principle where `AGENTS.md` acts as the single source of truth, mirrored automatically to all AI IDE config files (`CLAUDE.md`, `GEMINI.md`, `.cursorrules`, Copilot) via filesystem symlinks. |
|
|
262
|
+
| **Audit Receipt** | An immutable, machine-readable JSON artifact (`audit-receipt.json`) produced by the audit engine containing the timestamp, commit hash, per-lens verdicts, and Gentle AI RDD compatibility metadata. |
|
|
263
|
+
| **ADR** *(Architectural Decision Record)* | A standardized document in `docs/Journal/` capturing significant architectural decisions, context, evaluated alternatives, and consequences. |
|
|
264
|
+
| **Agent-OS** | An operating system archetype for non-tech domain workflows (e.g. Marketing OS, Content Ops, Research OS) governed by dual-layer architecture, strict schema validation, and HITL checkpoints. |
|
|
265
|
+
|
|
266
|
+
---
|
|
267
|
+
|
|
182
268
|
<a id="license"></a>
|
|
183
269
|
## 📄 License
|
|
184
270
|
MIT © [CarlosLeonCode](https://github.com/carlosleoncode)
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clckernel",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.18",
|
|
4
4
|
"description": "CLC Kernel — The Universal Polyglot AI Agent Governance Engine (Next.js, FastAPI, Django, Astro, Rails, Go, Rust, Laravel).",
|
|
5
5
|
"main": "./bin/cli.js",
|
|
6
6
|
"files": [
|
|
7
7
|
"bin",
|
|
8
8
|
"src",
|
|
9
9
|
"tools",
|
|
10
|
+
".agents/skills/clckernel_cli",
|
|
10
11
|
"README.md",
|
|
11
12
|
"README.es.md"
|
|
12
13
|
],
|
package/src/adapters/agent-os.js
CHANGED
|
@@ -76,36 +76,36 @@ class AgentOSAdapter extends BaseAdapter {
|
|
|
76
76
|
return [
|
|
77
77
|
{
|
|
78
78
|
name: 'check_symlinks',
|
|
79
|
-
language: '
|
|
80
|
-
path: '
|
|
79
|
+
language: 'js',
|
|
80
|
+
path: 'check_symlinks.js',
|
|
81
81
|
command: 'node tools/check_symlinks.js',
|
|
82
82
|
description: 'AI IDE symlinks and rule mirror verification'
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
name: 'check_hitl',
|
|
86
|
-
language: '
|
|
87
|
-
path: '
|
|
86
|
+
language: 'js',
|
|
87
|
+
path: 'check_hitl.js',
|
|
88
88
|
command: 'node tools/check_hitl.js',
|
|
89
89
|
description: 'Human-in-the-Loop review checkpoint validator'
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
name: 'check_domain_data',
|
|
93
|
-
language: '
|
|
94
|
-
path: '
|
|
93
|
+
language: 'js',
|
|
94
|
+
path: 'check_domain_data.js',
|
|
95
95
|
command: 'node tools/check_domain_data.js',
|
|
96
96
|
description: 'Domain deliverables schema and clean state integrity'
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
99
|
name: 'check_test_calendar_sync',
|
|
100
|
-
language: '
|
|
101
|
-
path: '
|
|
100
|
+
language: 'js',
|
|
101
|
+
path: 'check_test_calendar_sync.js',
|
|
102
102
|
command: 'node tools/check_test_calendar_sync.js',
|
|
103
103
|
description: 'Test calendar harness synchronization and parity check'
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
106
|
name: 'scan_secrets',
|
|
107
|
-
language: '
|
|
108
|
-
path: '
|
|
107
|
+
language: 'js',
|
|
108
|
+
path: 'scan_secrets.js',
|
|
109
109
|
command: 'node tools/scan_secrets.js',
|
|
110
110
|
description: 'Security & API key leak scanner'
|
|
111
111
|
}
|
|
@@ -198,7 +198,7 @@ ${this.getSafeguards().map(s => `- ${s}`).join('\n')}
|
|
|
198
198
|
// 4. Copy domain guard tools into tools/
|
|
199
199
|
const srcToolsDir = path.join(__dirname, '..', '..', 'tools');
|
|
200
200
|
const targetToolsDir = path.join(targetDir, 'tools');
|
|
201
|
-
const toolsToCopy = ['check_symlinks.js', 'check_hitl.js', 'check_domain_data.js', 'scan_secrets.js', 'audit.js'];
|
|
201
|
+
const toolsToCopy = ['check_symlinks.js', 'check_hitl.js', 'check_domain_data.js', 'check_test_calendar_sync.js', 'scan_secrets.js', 'audit.js'];
|
|
202
202
|
|
|
203
203
|
for (const toolFile of toolsToCopy) {
|
|
204
204
|
const srcFile = path.join(srcToolsDir, toolFile);
|