compact-agent 1.1.0
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 +394 -0
- package/bin/anycode.js +2 -0
- package/bin/crowcoder.js +19 -0
- package/bin/ecc-hooks.cjs +138 -0
- package/dist/agents.d.ts +17 -0
- package/dist/agents.js +1603 -0
- package/dist/agents.js.map +1 -0
- package/dist/api.d.ts +16 -0
- package/dist/api.js +115 -0
- package/dist/api.js.map +1 -0
- package/dist/autonomous-loops.d.ts +108 -0
- package/dist/autonomous-loops.js +526 -0
- package/dist/autonomous-loops.js.map +1 -0
- package/dist/codemaps.d.ts +53 -0
- package/dist/codemaps.js +325 -0
- package/dist/codemaps.js.map +1 -0
- package/dist/compaction.d.ts +30 -0
- package/dist/compaction.js +125 -0
- package/dist/compaction.js.map +1 -0
- package/dist/config.d.ts +5 -0
- package/dist/config.js +79 -0
- package/dist/config.js.map +1 -0
- package/dist/content-engine.d.ts +97 -0
- package/dist/content-engine.js +721 -0
- package/dist/content-engine.js.map +1 -0
- package/dist/cost-tracker.d.ts +49 -0
- package/dist/cost-tracker.js +150 -0
- package/dist/cost-tracker.js.map +1 -0
- package/dist/counter-button.d.ts +35 -0
- package/dist/counter-button.js +48 -0
- package/dist/counter-button.js.map +1 -0
- package/dist/counter.d.ts +21 -0
- package/dist/counter.js +31 -0
- package/dist/counter.js.map +1 -0
- package/dist/coverage.d.ts +23 -0
- package/dist/coverage.js +215 -0
- package/dist/coverage.js.map +1 -0
- package/dist/docs-sync.d.ts +23 -0
- package/dist/docs-sync.js +266 -0
- package/dist/docs-sync.js.map +1 -0
- package/dist/ecc.d.ts +41 -0
- package/dist/ecc.js +644 -0
- package/dist/ecc.js.map +1 -0
- package/dist/evaluation.d.ts +24 -0
- package/dist/evaluation.js +412 -0
- package/dist/evaluation.js.map +1 -0
- package/dist/export.d.ts +22 -0
- package/dist/export.js +109 -0
- package/dist/export.js.map +1 -0
- package/dist/git-workflow.d.ts +22 -0
- package/dist/git-workflow.js +197 -0
- package/dist/git-workflow.js.map +1 -0
- package/dist/hook-controls.d.ts +34 -0
- package/dist/hook-controls.js +90 -0
- package/dist/hook-controls.js.map +1 -0
- package/dist/hooks.d.ts +30 -0
- package/dist/hooks.js +130 -0
- package/dist/hooks.js.map +1 -0
- package/dist/html-parser.d.ts +18 -0
- package/dist/html-parser.js +101 -0
- package/dist/html-parser.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +1230 -0
- package/dist/index.js.map +1 -0
- package/dist/learning.d.ts +35 -0
- package/dist/learning.js +238 -0
- package/dist/learning.js.map +1 -0
- package/dist/login.d.ts +37 -0
- package/dist/login.js +191 -0
- package/dist/login.js.map +1 -0
- package/dist/memory.d.ts +39 -0
- package/dist/memory.js +183 -0
- package/dist/memory.js.map +1 -0
- package/dist/model-router.d.ts +23 -0
- package/dist/model-router.js +145 -0
- package/dist/model-router.js.map +1 -0
- package/dist/modes.d.ts +17 -0
- package/dist/modes.js +217 -0
- package/dist/modes.js.map +1 -0
- package/dist/orchestration.d.ts +37 -0
- package/dist/orchestration.js +139 -0
- package/dist/orchestration.js.map +1 -0
- package/dist/package-detect.d.ts +36 -0
- package/dist/package-detect.js +529 -0
- package/dist/package-detect.js.map +1 -0
- package/dist/permissions.d.ts +25 -0
- package/dist/permissions.js +50 -0
- package/dist/permissions.js.map +1 -0
- package/dist/pm2-manager.d.ts +40 -0
- package/dist/pm2-manager.js +127 -0
- package/dist/pm2-manager.js.map +1 -0
- package/dist/query.d.ts +15 -0
- package/dist/query.js +278 -0
- package/dist/query.js.map +1 -0
- package/dist/refactor.d.ts +22 -0
- package/dist/refactor.js +226 -0
- package/dist/refactor.js.map +1 -0
- package/dist/retry.d.ts +20 -0
- package/dist/retry.js +88 -0
- package/dist/retry.js.map +1 -0
- package/dist/rules.d.ts +34 -0
- package/dist/rules.js +942 -0
- package/dist/rules.js.map +1 -0
- package/dist/schema.d.ts +23 -0
- package/dist/schema.js +12 -0
- package/dist/schema.js.map +1 -0
- package/dist/search-first.d.ts +17 -0
- package/dist/search-first.js +301 -0
- package/dist/search-first.js.map +1 -0
- package/dist/security.d.ts +10 -0
- package/dist/security.js +145 -0
- package/dist/security.js.map +1 -0
- package/dist/sessions.d.ts +21 -0
- package/dist/sessions.js +112 -0
- package/dist/sessions.js.map +1 -0
- package/dist/skill-create.d.ts +38 -0
- package/dist/skill-create.js +389 -0
- package/dist/skill-create.js.map +1 -0
- package/dist/skills.d.ts +34 -0
- package/dist/skills.js +161 -0
- package/dist/skills.js.map +1 -0
- package/dist/strategic-compaction.d.ts +24 -0
- package/dist/strategic-compaction.js +144 -0
- package/dist/strategic-compaction.js.map +1 -0
- package/dist/system-prompt.d.ts +3 -0
- package/dist/system-prompt.js +101 -0
- package/dist/system-prompt.js.map +1 -0
- package/dist/theme.d.ts +60 -0
- package/dist/theme.js +220 -0
- package/dist/theme.js.map +1 -0
- package/dist/tools/bash.d.ts +2 -0
- package/dist/tools/bash.js +49 -0
- package/dist/tools/bash.js.map +1 -0
- package/dist/tools/edit.d.ts +2 -0
- package/dist/tools/edit.js +76 -0
- package/dist/tools/edit.js.map +1 -0
- package/dist/tools/glob.d.ts +2 -0
- package/dist/tools/glob.js +54 -0
- package/dist/tools/glob.js.map +1 -0
- package/dist/tools/grep.d.ts +2 -0
- package/dist/tools/grep.js +64 -0
- package/dist/tools/grep.js.map +1 -0
- package/dist/tools/index.d.ts +5 -0
- package/dist/tools/index.js +27 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/list-dir.d.ts +2 -0
- package/dist/tools/list-dir.js +51 -0
- package/dist/tools/list-dir.js.map +1 -0
- package/dist/tools/read.d.ts +2 -0
- package/dist/tools/read.js +56 -0
- package/dist/tools/read.js.map +1 -0
- package/dist/tools/types.d.ts +45 -0
- package/dist/tools/types.js +2 -0
- package/dist/tools/types.js.map +1 -0
- package/dist/tools/web-fetch.d.ts +2 -0
- package/dist/tools/web-fetch.js +41 -0
- package/dist/tools/web-fetch.js.map +1 -0
- package/dist/tools/web-search.d.ts +27 -0
- package/dist/tools/web-search.js +139 -0
- package/dist/tools/web-search.js.map +1 -0
- package/dist/tools/write.d.ts +2 -0
- package/dist/tools/write.js +36 -0
- package/dist/tools/write.js.map +1 -0
- package/dist/types.d.ts +28 -0
- package/dist/types.js +57 -0
- package/dist/types.js.map +1 -0
- package/dist/users.d.ts +51 -0
- package/dist/users.js +193 -0
- package/dist/users.js.map +1 -0
- package/dist/verification.d.ts +73 -0
- package/dist/verification.js +269 -0
- package/dist/verification.js.map +1 -0
- package/dist/walkthrough.d.ts +10 -0
- package/dist/walkthrough.js +121 -0
- package/dist/walkthrough.js.map +1 -0
- package/package.json +58 -0
- package/resources/ecc/agents/architect.json +16 -0
- package/resources/ecc/agents/architect.md +212 -0
- package/resources/ecc/agents/build-error-resolver.json +17 -0
- package/resources/ecc/agents/build-error-resolver.md +116 -0
- package/resources/ecc/agents/chief-of-staff.json +17 -0
- package/resources/ecc/agents/chief-of-staff.md +153 -0
- package/resources/ecc/agents/code-reviewer.json +16 -0
- package/resources/ecc/agents/code-reviewer.md +238 -0
- package/resources/ecc/agents/database-reviewer.json +16 -0
- package/resources/ecc/agents/database-reviewer.md +92 -0
- package/resources/ecc/agents/doc-updater.json +16 -0
- package/resources/ecc/agents/doc-updater.md +108 -0
- package/resources/ecc/agents/e2e-runner.json +17 -0
- package/resources/ecc/agents/e2e-runner.md +109 -0
- package/resources/ecc/agents/go-build-resolver.json +17 -0
- package/resources/ecc/agents/go-build-resolver.md +96 -0
- package/resources/ecc/agents/go-reviewer.json +16 -0
- package/resources/ecc/agents/go-reviewer.md +77 -0
- package/resources/ecc/agents/harness-optimizer.json +15 -0
- package/resources/ecc/agents/harness-optimizer.md +34 -0
- package/resources/ecc/agents/loop-operator.json +16 -0
- package/resources/ecc/agents/loop-operator.md +36 -0
- package/resources/ecc/agents/planner.json +15 -0
- package/resources/ecc/agents/planner.md +212 -0
- package/resources/ecc/agents/python-reviewer.json +16 -0
- package/resources/ecc/agents/python-reviewer.md +99 -0
- package/resources/ecc/agents/refactor-cleaner.json +17 -0
- package/resources/ecc/agents/refactor-cleaner.md +87 -0
- package/resources/ecc/agents/security-reviewer.json +16 -0
- package/resources/ecc/agents/security-reviewer.md +109 -0
- package/resources/ecc/agents/tdd-guide.json +17 -0
- package/resources/ecc/agents/tdd-guide.md +93 -0
- package/resources/ecc/commands/add-language-rules.md +39 -0
- package/resources/ecc/commands/database-migration.md +36 -0
- package/resources/ecc/commands/feature-development.md +38 -0
- package/resources/ecc/prompts/build-fix.prompt.md +47 -0
- package/resources/ecc/prompts/code-review.prompt.md +56 -0
- package/resources/ecc/prompts/plan.prompt.md +52 -0
- package/resources/ecc/prompts/refactor.prompt.md +50 -0
- package/resources/ecc/prompts/security-review.prompt.md +70 -0
- package/resources/ecc/prompts/tdd.prompt.md +47 -0
- package/resources/ecc/rules/common-agents.md +53 -0
- package/resources/ecc/rules/common-coding-style.md +52 -0
- package/resources/ecc/rules/common-development-workflow.md +33 -0
- package/resources/ecc/rules/common-git-workflow.md +28 -0
- package/resources/ecc/rules/common-hooks.md +34 -0
- package/resources/ecc/rules/common-patterns.md +35 -0
- package/resources/ecc/rules/common-performance.md +59 -0
- package/resources/ecc/rules/common-security.md +33 -0
- package/resources/ecc/rules/common-testing.md +33 -0
- package/resources/ecc/rules/golang-coding-style.md +31 -0
- package/resources/ecc/rules/golang-hooks.md +16 -0
- package/resources/ecc/rules/golang-patterns.md +44 -0
- package/resources/ecc/rules/golang-security.md +33 -0
- package/resources/ecc/rules/golang-testing.md +30 -0
- package/resources/ecc/rules/kotlin-coding-style.md +39 -0
- package/resources/ecc/rules/kotlin-hooks.md +16 -0
- package/resources/ecc/rules/kotlin-patterns.md +50 -0
- package/resources/ecc/rules/kotlin-security.md +58 -0
- package/resources/ecc/rules/kotlin-testing.md +38 -0
- package/resources/ecc/rules/php-coding-style.md +25 -0
- package/resources/ecc/rules/php-hooks.md +21 -0
- package/resources/ecc/rules/php-patterns.md +23 -0
- package/resources/ecc/rules/php-security.md +24 -0
- package/resources/ecc/rules/php-testing.md +26 -0
- package/resources/ecc/rules/python-coding-style.md +42 -0
- package/resources/ecc/rules/python-hooks.md +19 -0
- package/resources/ecc/rules/python-patterns.md +39 -0
- package/resources/ecc/rules/python-security.md +30 -0
- package/resources/ecc/rules/python-testing.md +38 -0
- package/resources/ecc/rules/swift-coding-style.md +47 -0
- package/resources/ecc/rules/swift-hooks.md +20 -0
- package/resources/ecc/rules/swift-patterns.md +66 -0
- package/resources/ecc/rules/swift-security.md +33 -0
- package/resources/ecc/rules/swift-testing.md +45 -0
- package/resources/ecc/rules/typescript-coding-style.md +63 -0
- package/resources/ecc/rules/typescript-hooks.md +20 -0
- package/resources/ecc/rules/typescript-patterns.md +50 -0
- package/resources/ecc/rules/typescript-security.md +26 -0
- package/resources/ecc/rules/typescript-testing.md +16 -0
- package/resources/ecc/skills/agent-introspection-debugging/SKILL.md +152 -0
- package/resources/ecc/skills/agent-introspection-debugging/agents/openai.yaml +7 -0
- package/resources/ecc/skills/agent-sort/SKILL.md +214 -0
- package/resources/ecc/skills/agent-sort/agents/openai.yaml +7 -0
- package/resources/ecc/skills/api-design/SKILL.md +522 -0
- package/resources/ecc/skills/api-design/agents/openai.yaml +7 -0
- package/resources/ecc/skills/article-writing/SKILL.md +78 -0
- package/resources/ecc/skills/article-writing/agents/openai.yaml +7 -0
- package/resources/ecc/skills/backend-patterns/SKILL.md +597 -0
- package/resources/ecc/skills/backend-patterns/agents/openai.yaml +7 -0
- package/resources/ecc/skills/brand-voice/SKILL.md +96 -0
- package/resources/ecc/skills/brand-voice/agents/openai.yaml +7 -0
- package/resources/ecc/skills/brand-voice/references/voice-profile-schema.md +55 -0
- package/resources/ecc/skills/bun-runtime/SKILL.md +83 -0
- package/resources/ecc/skills/bun-runtime/agents/openai.yaml +7 -0
- package/resources/ecc/skills/coding-standards/SKILL.md +548 -0
- package/resources/ecc/skills/coding-standards/agents/openai.yaml +7 -0
- package/resources/ecc/skills/content-engine/SKILL.md +130 -0
- package/resources/ecc/skills/content-engine/agents/openai.yaml +7 -0
- package/resources/ecc/skills/crosspost/SKILL.md +110 -0
- package/resources/ecc/skills/crosspost/agents/openai.yaml +7 -0
- package/resources/ecc/skills/deep-research/SKILL.md +154 -0
- package/resources/ecc/skills/deep-research/agents/openai.yaml +7 -0
- package/resources/ecc/skills/dmux-workflows/SKILL.md +143 -0
- package/resources/ecc/skills/dmux-workflows/agents/openai.yaml +7 -0
- package/resources/ecc/skills/documentation-lookup/SKILL.md +89 -0
- package/resources/ecc/skills/documentation-lookup/agents/openai.yaml +7 -0
- package/resources/ecc/skills/e2e-testing/SKILL.md +325 -0
- package/resources/ecc/skills/e2e-testing/agents/openai.yaml +7 -0
- package/resources/ecc/skills/eval-harness/SKILL.md +235 -0
- package/resources/ecc/skills/eval-harness/agents/openai.yaml +7 -0
- package/resources/ecc/skills/everything-claude-code/SKILL.md +442 -0
- package/resources/ecc/skills/everything-claude-code/agents/openai.yaml +7 -0
- package/resources/ecc/skills/exa-search/SKILL.md +169 -0
- package/resources/ecc/skills/exa-search/agents/openai.yaml +7 -0
- package/resources/ecc/skills/fal-ai-media/SKILL.md +276 -0
- package/resources/ecc/skills/fal-ai-media/agents/openai.yaml +7 -0
- package/resources/ecc/skills/frontend-patterns/SKILL.md +647 -0
- package/resources/ecc/skills/frontend-patterns/agents/openai.yaml +7 -0
- package/resources/ecc/skills/frontend-slides/SKILL.md +183 -0
- package/resources/ecc/skills/frontend-slides/STYLE_PRESETS.md +330 -0
- package/resources/ecc/skills/frontend-slides/agents/openai.yaml +7 -0
- package/resources/ecc/skills/investor-materials/SKILL.md +95 -0
- package/resources/ecc/skills/investor-materials/agents/openai.yaml +7 -0
- package/resources/ecc/skills/investor-outreach/SKILL.md +90 -0
- package/resources/ecc/skills/investor-outreach/agents/openai.yaml +7 -0
- package/resources/ecc/skills/market-research/SKILL.md +74 -0
- package/resources/ecc/skills/market-research/agents/openai.yaml +7 -0
- package/resources/ecc/skills/mcp-server-patterns/SKILL.md +66 -0
- package/resources/ecc/skills/mcp-server-patterns/agents/openai.yaml +7 -0
- package/resources/ecc/skills/mle-workflow/SKILL.md +346 -0
- package/resources/ecc/skills/mle-workflow/agents/openai.yaml +7 -0
- package/resources/ecc/skills/nextjs-turbopack/SKILL.md +43 -0
- package/resources/ecc/skills/nextjs-turbopack/agents/openai.yaml +7 -0
- package/resources/ecc/skills/product-capability/SKILL.md +140 -0
- package/resources/ecc/skills/product-capability/agents/openai.yaml +7 -0
- package/resources/ecc/skills/security-review/SKILL.md +494 -0
- package/resources/ecc/skills/security-review/agents/openai.yaml +7 -0
- package/resources/ecc/skills/strategic-compact/SKILL.md +102 -0
- package/resources/ecc/skills/strategic-compact/agents/openai.yaml +7 -0
- package/resources/ecc/skills/tdd-workflow/SKILL.md +409 -0
- package/resources/ecc/skills/tdd-workflow/agents/openai.yaml +7 -0
- package/resources/ecc/skills/verification-loop/SKILL.md +125 -0
- package/resources/ecc/skills/verification-loop/agents/openai.yaml +7 -0
- package/resources/ecc/skills/video-editing/SKILL.md +307 -0
- package/resources/ecc/skills/video-editing/agents/openai.yaml +7 -0
- package/resources/ecc/skills/x-api/SKILL.md +229 -0
- package/resources/ecc/skills/x-api/agents/openai.yaml +7 -0
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Documentation Synchronization — find stale docs, missing JSDoc, and sync with code.
|
|
3
|
+
* Keeps documentation in sync with actual code.
|
|
4
|
+
*/
|
|
5
|
+
import chalk from 'chalk';
|
|
6
|
+
import { existsSync, readdirSync } from 'node:fs';
|
|
7
|
+
import { join } from 'node:path';
|
|
8
|
+
// ── Helper: Detect Language ──────────────────────────────────────
|
|
9
|
+
function detectProjectLanguage(cwd) {
|
|
10
|
+
const pkgPath = join(cwd, 'package.json');
|
|
11
|
+
const cargoPath = join(cwd, 'Cargo.toml');
|
|
12
|
+
const pyPath = join(cwd, 'pyproject.toml');
|
|
13
|
+
if (existsSync(pkgPath)) {
|
|
14
|
+
const srcDir = join(cwd, 'src');
|
|
15
|
+
if (existsSync(srcDir)) {
|
|
16
|
+
const files = readdirSync(srcDir, { recursive: true });
|
|
17
|
+
if (files.some((f) => f.toString().endsWith('.ts'))) {
|
|
18
|
+
return 'typescript';
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return 'javascript';
|
|
22
|
+
}
|
|
23
|
+
if (existsSync(cargoPath))
|
|
24
|
+
return 'rust';
|
|
25
|
+
if (existsSync(pyPath))
|
|
26
|
+
return 'python';
|
|
27
|
+
return 'unknown';
|
|
28
|
+
}
|
|
29
|
+
// ── Main Functions ──────────────────────────────────────────────
|
|
30
|
+
/**
|
|
31
|
+
* Detect all documentation files in the project.
|
|
32
|
+
* Returns: README.md, CHANGELOG.md, docs/, JSDoc comments, docstrings, API docs
|
|
33
|
+
*/
|
|
34
|
+
export function detectDocFiles(cwd) {
|
|
35
|
+
const docs = [];
|
|
36
|
+
// Check for root-level markdown files
|
|
37
|
+
const rootFiles = ['README.md', 'CHANGELOG.md', 'CONTRIBUTING.md', 'API.md', 'ARCHITECTURE.md'];
|
|
38
|
+
for (const file of rootFiles) {
|
|
39
|
+
const path = join(cwd, file);
|
|
40
|
+
if (existsSync(path)) {
|
|
41
|
+
docs.push({
|
|
42
|
+
path,
|
|
43
|
+
type: file === 'README.md' ? 'readme' : file === 'CHANGELOG.md' ? 'changelog' : 'markdown',
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
// Check for docs directory
|
|
48
|
+
const docsDir = join(cwd, 'docs');
|
|
49
|
+
if (existsSync(docsDir)) {
|
|
50
|
+
const recurse = (dir) => {
|
|
51
|
+
try {
|
|
52
|
+
const entries = readdirSync(dir, { withFileTypes: true });
|
|
53
|
+
for (const entry of entries) {
|
|
54
|
+
if (entry.isDirectory() && !entry.name.startsWith('.')) {
|
|
55
|
+
recurse(join(dir, entry.name));
|
|
56
|
+
}
|
|
57
|
+
else if (entry.isFile() && entry.name.endsWith('.md')) {
|
|
58
|
+
docs.push({
|
|
59
|
+
path: join(dir, entry.name),
|
|
60
|
+
type: 'guide',
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
catch {
|
|
66
|
+
// Ignore read errors
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
recurse(docsDir);
|
|
70
|
+
}
|
|
71
|
+
// Check for source files with JSDoc/docstrings
|
|
72
|
+
const srcDir = join(cwd, 'src');
|
|
73
|
+
if (existsSync(srcDir)) {
|
|
74
|
+
const language = detectProjectLanguage(cwd);
|
|
75
|
+
const extensions = {
|
|
76
|
+
typescript: ['.ts', '.tsx'],
|
|
77
|
+
javascript: ['.js', '.jsx'],
|
|
78
|
+
python: ['.py'],
|
|
79
|
+
rust: ['.rs'],
|
|
80
|
+
};
|
|
81
|
+
const exts = extensions[language] || [];
|
|
82
|
+
const recurse = (dir) => {
|
|
83
|
+
try {
|
|
84
|
+
const entries = readdirSync(dir, { withFileTypes: true });
|
|
85
|
+
for (const entry of entries) {
|
|
86
|
+
if (entry.isDirectory() && !entry.name.startsWith('.')) {
|
|
87
|
+
recurse(join(dir, entry.name));
|
|
88
|
+
}
|
|
89
|
+
else if (entry.isFile() && exts.some((ext) => entry.name.endsWith(ext))) {
|
|
90
|
+
docs.push({
|
|
91
|
+
path: join(dir, entry.name),
|
|
92
|
+
type: 'jsdoc',
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
catch {
|
|
98
|
+
// Ignore read errors
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
recurse(srcDir);
|
|
102
|
+
}
|
|
103
|
+
return docs;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Build a prompt that tells the AI to sync documentation with code.
|
|
107
|
+
*/
|
|
108
|
+
export function buildDocsUpdatePrompt(cwd) {
|
|
109
|
+
const language = detectProjectLanguage(cwd);
|
|
110
|
+
const docFiles = detectDocFiles(cwd);
|
|
111
|
+
const docSummary = docFiles
|
|
112
|
+
.map((d) => ` - ${d.type.toUpperCase()}: ${d.path}`)
|
|
113
|
+
.join('\n');
|
|
114
|
+
return `Update and synchronize all documentation to match the current code.
|
|
115
|
+
|
|
116
|
+
## Current Working Directory
|
|
117
|
+
\`\`\`
|
|
118
|
+
${cwd}
|
|
119
|
+
\`\`\`
|
|
120
|
+
|
|
121
|
+
## Detected Language
|
|
122
|
+
${language}
|
|
123
|
+
|
|
124
|
+
## Found Documentation Files
|
|
125
|
+
\`\`\`
|
|
126
|
+
${docSummary}
|
|
127
|
+
\`\`\`
|
|
128
|
+
|
|
129
|
+
## Instructions
|
|
130
|
+
1. **Review all documentation files**:
|
|
131
|
+
- README.md: Check installation, usage, API overview
|
|
132
|
+
- CHANGELOG.md: Verify recent entries match recent code changes
|
|
133
|
+
- docs/*.md: Check all guides for outdated examples
|
|
134
|
+
- Source files: Check for missing or stale JSDoc/docstrings
|
|
135
|
+
|
|
136
|
+
2. **Compare with actual code**:
|
|
137
|
+
- List all exported functions, classes, and types
|
|
138
|
+
- Check if they appear in documentation
|
|
139
|
+
- Verify function signatures match docs
|
|
140
|
+
- Check if CLI flags, config options are documented
|
|
141
|
+
- Look for examples that might be outdated
|
|
142
|
+
|
|
143
|
+
3. **Identify gaps**:
|
|
144
|
+
- Missing JSDoc comments on public APIs
|
|
145
|
+
- Undocumented exports
|
|
146
|
+
- Examples that don't run
|
|
147
|
+
- Missing error documentation
|
|
148
|
+
- Deprecated features still documented
|
|
149
|
+
- New features not documented
|
|
150
|
+
|
|
151
|
+
4. **Update stale documentation**:
|
|
152
|
+
- Fix outdated examples with current syntax
|
|
153
|
+
- Update API signatures if code changed
|
|
154
|
+
- Correct parameter names and types
|
|
155
|
+
- Update version numbers in examples
|
|
156
|
+
- Fix broken internal links
|
|
157
|
+
|
|
158
|
+
5. **Add missing documentation**:
|
|
159
|
+
- Add JSDoc to all public functions and classes
|
|
160
|
+
- Document all public exports in README or API.md
|
|
161
|
+
- Add examples for common use cases
|
|
162
|
+
- Document error cases and exceptions
|
|
163
|
+
- Add CLI usage if applicable
|
|
164
|
+
|
|
165
|
+
## Documentation Standards
|
|
166
|
+
For JSDoc/Docstrings:
|
|
167
|
+
\`\`\`typescript
|
|
168
|
+
/**
|
|
169
|
+
* Brief description of what this does.
|
|
170
|
+
*
|
|
171
|
+
* More detailed explanation if needed.
|
|
172
|
+
*
|
|
173
|
+
* @param paramName - Description of parameter
|
|
174
|
+
* @returns Description of return value
|
|
175
|
+
* @throws ErrorType If this condition occurs
|
|
176
|
+
* @example
|
|
177
|
+
* const result = myFunction('input');
|
|
178
|
+
*/
|
|
179
|
+
function exampleFunction(paramName: string): string {
|
|
180
|
+
// ...
|
|
181
|
+
}
|
|
182
|
+
\`\`\`
|
|
183
|
+
|
|
184
|
+
For README:
|
|
185
|
+
- Brief project description
|
|
186
|
+
- Installation instructions
|
|
187
|
+
- Quick start example
|
|
188
|
+
- Link to full API documentation
|
|
189
|
+
- Contributing guidelines
|
|
190
|
+
- License
|
|
191
|
+
|
|
192
|
+
## Expected Output Format
|
|
193
|
+
1. **Summary**:
|
|
194
|
+
- Total documentation files found
|
|
195
|
+
- Number of public exports
|
|
196
|
+
- Coverage % (documented vs total)
|
|
197
|
+
|
|
198
|
+
2. **For each documentation file**:
|
|
199
|
+
- **File**: Path
|
|
200
|
+
- **Status**: (up-to-date / needs update / incomplete)
|
|
201
|
+
- **Issues Found**: Specific problems
|
|
202
|
+
- **Changes Made**: What was updated
|
|
203
|
+
|
|
204
|
+
3. **For JSDoc/Docstrings**:
|
|
205
|
+
- **Functions without docs**: List
|
|
206
|
+
- **Outdated docs**: List with fixes
|
|
207
|
+
- **Missing examples**: Which functions need them
|
|
208
|
+
|
|
209
|
+
4. **Overall Documentation Health**:
|
|
210
|
+
- Completeness score (0-100%)
|
|
211
|
+
- Key gaps remaining
|
|
212
|
+
- Recommended priorities for next steps`;
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Print documentation status summary.
|
|
216
|
+
*/
|
|
217
|
+
export function printDocsSyncStatus(docFiles, coveredExports, totalExports) {
|
|
218
|
+
console.log(chalk.cyan('\n Documentation Status:'));
|
|
219
|
+
console.log(` ${chalk.dim(`Total doc files: ${docFiles.length}`)}`);
|
|
220
|
+
// Group by type
|
|
221
|
+
const byType = {};
|
|
222
|
+
for (const doc of docFiles) {
|
|
223
|
+
byType[doc.type] = (byType[doc.type] || 0) + 1;
|
|
224
|
+
}
|
|
225
|
+
for (const [type, count] of Object.entries(byType)) {
|
|
226
|
+
console.log(chalk.dim(` ${type}: ${count}`));
|
|
227
|
+
}
|
|
228
|
+
// Coverage
|
|
229
|
+
if (coveredExports !== undefined && totalExports !== undefined) {
|
|
230
|
+
const percentage = totalExports > 0 ? (coveredExports / totalExports) * 100 : 0;
|
|
231
|
+
const color = percentage >= 80 ? chalk.green : percentage >= 60 ? chalk.yellow : chalk.red;
|
|
232
|
+
console.log(chalk.cyan('\n API Documentation Coverage:'));
|
|
233
|
+
console.log(` ${color(` ${percentage.toFixed(1)}%`)} (${coveredExports} / ${totalExports} exports)`);
|
|
234
|
+
}
|
|
235
|
+
// Recommendations
|
|
236
|
+
const hasReadme = docFiles.some((d) => d.type === 'readme');
|
|
237
|
+
const hasChangelog = docFiles.some((d) => d.type === 'changelog');
|
|
238
|
+
const hasGuides = docFiles.some((d) => d.type === 'guide');
|
|
239
|
+
if (!hasReadme) {
|
|
240
|
+
console.log(chalk.yellow('\n ⚠ Missing README.md'));
|
|
241
|
+
}
|
|
242
|
+
if (!hasChangelog) {
|
|
243
|
+
console.log(chalk.yellow(' ⚠ Missing CHANGELOG.md'));
|
|
244
|
+
}
|
|
245
|
+
if (!hasGuides && docFiles.length > 0) {
|
|
246
|
+
console.log(chalk.yellow(' ⚠ No guides in docs/ directory'));
|
|
247
|
+
}
|
|
248
|
+
console.log();
|
|
249
|
+
}
|
|
250
|
+
// ── Exports ──────────────────────────────────────────────
|
|
251
|
+
export function getProjectLanguage(cwd) {
|
|
252
|
+
return detectProjectLanguage(cwd);
|
|
253
|
+
}
|
|
254
|
+
export function getDocumentationFiles(cwd) {
|
|
255
|
+
return detectDocFiles(cwd);
|
|
256
|
+
}
|
|
257
|
+
export function hasReadme(cwd) {
|
|
258
|
+
return existsSync(join(cwd, 'README.md'));
|
|
259
|
+
}
|
|
260
|
+
export function hasChangelog(cwd) {
|
|
261
|
+
return existsSync(join(cwd, 'CHANGELOG.md'));
|
|
262
|
+
}
|
|
263
|
+
export function hasDocsDirectory(cwd) {
|
|
264
|
+
return existsSync(join(cwd, 'docs'));
|
|
265
|
+
}
|
|
266
|
+
//# sourceMappingURL=docs-sync.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docs-sync.js","sourceRoot":"","sources":["../src/docs-sync.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAgB,WAAW,EAAE,MAAM,SAAS,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AASjC,oEAAoE;AACpE,SAAS,qBAAqB,CAAC,GAAW;IACxC,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC;IAC1C,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC;IAC1C,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,EAAE,gBAAgB,CAAC,CAAC;IAE3C,IAAI,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;QACxB,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QAChC,IAAI,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;YACvB,MAAM,KAAK,GAAG,WAAW,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAA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AAC;AAED,MAAM,UAAU,qBAAqB,CAAC,GAAW;IAC/C,OAAO,cAAc,CAAC,GAAG,CAAC,CAAC;AAC7B,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,GAAW;IACnC,OAAO,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC,CAAC;AAC5C,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,GAAW;IACtC,OAAO,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC,CAAC;AAC/C,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,GAAW;IAC1C,OAAO,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC;AACvC,CAAC"}
|
package/dist/ecc.d.ts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type Skill } from './skills.js';
|
|
2
|
+
export interface EccState {
|
|
3
|
+
installedAt: string;
|
|
4
|
+
version: string;
|
|
5
|
+
counts: {
|
|
6
|
+
skills: number;
|
|
7
|
+
agents: number;
|
|
8
|
+
commands: number;
|
|
9
|
+
rules: number;
|
|
10
|
+
prompts: number;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export declare function loadEccState(): EccState | null;
|
|
14
|
+
export declare function eccResourcesAvailable(): boolean;
|
|
15
|
+
export interface ImportReport {
|
|
16
|
+
skills: number;
|
|
17
|
+
agents: number;
|
|
18
|
+
commands: number;
|
|
19
|
+
rules: number;
|
|
20
|
+
prompts: number;
|
|
21
|
+
errors: string[];
|
|
22
|
+
}
|
|
23
|
+
export declare function listEccCommands(): string[];
|
|
24
|
+
/**
|
|
25
|
+
* Resolve a `/ecc-<name>` command to its prompt body. Frontmatter is stripped;
|
|
26
|
+
* if `allowed_tools` is set, it's preserved as a note at the top.
|
|
27
|
+
*/
|
|
28
|
+
export declare function getEccCommandPrompt(name: string): string | null;
|
|
29
|
+
export declare function installEcc(opts?: {
|
|
30
|
+
verbose?: boolean;
|
|
31
|
+
}): ImportReport;
|
|
32
|
+
export declare function printEccStatus(): void;
|
|
33
|
+
export declare function printEccSkills(): void;
|
|
34
|
+
export declare function printEccAgents(): void;
|
|
35
|
+
export declare function printEccCommandList(): void;
|
|
36
|
+
/**
|
|
37
|
+
* Match the user's free-form text against ECC skill triggers and return the
|
|
38
|
+
* top-matching skill prompt body, or null if nothing fires. Used to auto-inject
|
|
39
|
+
* skill content into the system prompt — bumps relevance for that turn.
|
|
40
|
+
*/
|
|
41
|
+
export declare function findEccSkillForQuery(query: string): Skill | null;
|