codymaster 4.8.0 → 5.2.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.
Files changed (72) hide show
  1. package/CHANGELOG.md +55 -7
  2. package/README.md +142 -95
  3. package/dist/advisory-handoff.js +89 -0
  4. package/dist/advisory-report.js +105 -0
  5. package/dist/cli/command-registry.js +8 -0
  6. package/dist/cli/commands/bench.js +69 -0
  7. package/dist/cli/commands/brain.js +108 -0
  8. package/dist/cli/commands/engineering.js +108 -0
  9. package/dist/cli/commands/evolve.js +123 -0
  10. package/dist/cli/commands/mcp-serve.js +104 -0
  11. package/dist/cm-config.js +0 -18
  12. package/dist/codybench/judges/automated.js +31 -0
  13. package/dist/codybench/runners/claude-code.js +32 -0
  14. package/dist/codybench/suites/memory-retention.js +85 -0
  15. package/dist/codybench/suites/tdd-regression.js +35 -0
  16. package/dist/codybench/suites/token-efficiency.js +55 -0
  17. package/dist/codybench/types.js +2 -0
  18. package/dist/context-db.js +157 -0
  19. package/dist/continuity.js +2 -6
  20. package/dist/execution-analyzer.js +138 -0
  21. package/dist/indexer/skills-lib.js +533 -0
  22. package/dist/indexer/skills-map.js +1374 -0
  23. package/dist/indexer/skills.js +16 -0
  24. package/dist/learning-promoter.js +246 -0
  25. package/dist/mcp-context-server.js +230 -1
  26. package/dist/skill-chain.js +63 -1
  27. package/dist/skill-evolver.js +456 -0
  28. package/dist/skill-execution-cache.js +254 -0
  29. package/dist/smart-brain-router.js +184 -0
  30. package/dist/storage-backend.js +10 -8
  31. package/dist/token-budget.js +88 -0
  32. package/package.json +2 -3
  33. package/scripts/postinstall.js +10 -59
  34. package/skills/CLAUDE.md +0 -5
  35. package/skills/_shared/helpers.md +2 -8
  36. package/skills/cm-browse/SKILL.md +6 -0
  37. package/skills/cm-conductor-worktrees/SKILL.md +4 -0
  38. package/skills/cm-content-factory/landing/docs/content/changelog.md +4 -4
  39. package/skills/cm-content-factory/landing/docs/content/deployment.md +3 -3
  40. package/skills/cm-content-factory/landing/docs/content/execution-flow.md +8 -8
  41. package/skills/cm-content-factory/landing/docs/content/memory-system.md +38 -0
  42. package/skills/cm-content-factory/landing/docs/content/openspace.md +1 -1
  43. package/skills/cm-content-factory/landing/docs/content/use-cases.md +2 -2
  44. package/skills/cm-content-factory/landing/docs/content/v5-intro.md +3 -3
  45. package/skills/cm-content-factory/landing/docs/index.html +1 -1
  46. package/skills/cm-content-factory/landing/index.html +3 -3
  47. package/skills/cm-content-factory/landing/translations.js +37 -37
  48. package/skills/cm-continuity/SKILL.md +32 -33
  49. package/skills/cm-design-studio/SKILL.md +4 -0
  50. package/skills/cm-ecosystem-roadmap/SKILL.md +4 -0
  51. package/skills/cm-engineering-meta/SKILL.md +4 -0
  52. package/skills/cm-guardian-runtime/SKILL.md +5 -1
  53. package/skills/cm-mcp-engineering/SKILL.md +4 -0
  54. package/skills/cm-post-deploy-canary/SKILL.md +4 -0
  55. package/skills/cm-project-bootstrap/SKILL.md +11 -0
  56. package/skills/cm-qa-visual-cli/SKILL.md +4 -0
  57. package/skills/cm-retro-cli/SKILL.md +4 -0
  58. package/skills/cm-second-opinion-cli/SKILL.md +4 -0
  59. package/skills/cm-security-gate/SKILL.md +1 -0
  60. package/skills/cm-skill-chain/SKILL.md +25 -4
  61. package/skills/cm-skill-evolution/SKILL.md +83 -0
  62. package/skills/cm-skill-health/SKILL.md +83 -0
  63. package/skills/cm-skill-index/SKILL.md +11 -3
  64. package/skills/cm-skill-search/SKILL.md +49 -0
  65. package/skills/cm-skill-share/SKILL.md +58 -0
  66. package/skills/cm-sprint-bus/SKILL.md +4 -0
  67. package/skills/cm-start/SKILL.md +0 -10
  68. package/skills/cm-tdd/SKILL.md +2 -2
  69. package/skills/profiles/full.txt +4 -0
  70. package/install.sh +0 -1125
  71. package/scripts/viking-demo.ts +0 -105
  72. package/skills/cm-content-factory/landing/docs/content/openviking.md +0 -33
@@ -1,105 +0,0 @@
1
- import express from 'express';
2
- import { VikingBackend } from '../src/backends/viking-backend';
3
- import { DEFAULT_VIKING_CONFIG } from '../src/backends/viking-http-client';
4
- import chalk from 'chalk';
5
-
6
- /**
7
- * Viking Demo — Hamster-Powered Semantic Search
8
- *
9
- * This script demonstrates the CodyMaster v4.6 integration with OpenViking.
10
- * It starts a mock OpenViking REST API and then uses CodyMaster's VikingBackend
11
- * to perform a semantic search query.
12
- */
13
-
14
- async function runDemo() {
15
- const PORT = 1933;
16
- const app = express();
17
- app.use(express.json());
18
-
19
- console.log(chalk.bold.cyan('\n🐹 CodyMaster v4.6 — OpenViking Integration Demo\n'));
20
-
21
- // ─── Phase 1: Mock OpenViking Server ───────────────────────────────────────
22
-
23
- console.log(chalk.dim(' [1/3] Starting Mock OpenViking Server...'));
24
-
25
- // Mock /health endpoint
26
- app.get('/health', (req, res) => res.json({ status: 'ok', version: '1.2.0' }));
27
-
28
- // Mock /search endpoint (the core of Viking)
29
- app.post('/search', (req, res) => {
30
- const { query, limit, workspace } = req.body;
31
- console.log(chalk.yellow(` ā˜ļø Viking Server received search: "${query}" (limit: ${limit}, ws: ${workspace})`));
32
-
33
- const mockResults = [
34
- {
35
- uri: 'ov://demo-vibe/learnings/lear-882.json',
36
- score: 0.98,
37
- content: JSON.stringify({
38
- what_failed: 'Async fetch timeout on slow networks',
39
- why_failed: 'Default timeout too short for 3G/4G high-latency spikes',
40
- how_to_prevent: 'Increase timeout to 30s + implement exponential backoff retry'
41
- })
42
- },
43
- {
44
- uri: 'ov://demo-vibe/learnings/lear-451.json',
45
- score: 0.72,
46
- content: JSON.stringify({
47
- what_failed: 'Database connection leak in long-running loops',
48
- why_failed: 'await missing in cleanup block',
49
- how_to_prevent: 'Use try-finally with await client.close()'
50
- })
51
- }
52
- ];
53
-
54
- res.json({ items: mockResults });
55
- });
56
-
57
- const server = app.listen(PORT);
58
-
59
- // ─── Phase 2: CodyMaster Viking Backend ────────────────────────────────────
60
-
61
- console.log(chalk.dim(' [2/3] Initializing CodyMaster VikingBackend...'));
62
-
63
- const backend = new VikingBackend({
64
- host: 'localhost',
65
- port: PORT,
66
- workspace: 'demo-vibe',
67
- timeout: 5000
68
- });
69
-
70
- // ─── Phase 3: Perform Semantic Search ──────────────────────────────────────
71
-
72
- console.log(chalk.bold(' [3/3] Performing Semantic Search Query (Async Pipeline)...\n'));
73
-
74
- const query = 'network latency issues';
75
- console.log(chalk.white(` Query: "${query}"`));
76
-
77
- // Use the native ASYNC extra searchAll instead of the SYNC wrapper
78
- // This bypasses the blockUntil spin-loop for a clean demo.
79
- const results = await backend.searchAll(query, 5);
80
-
81
- if (results.length > 0) {
82
- console.log(chalk.green(`\n āœ… FOUND ${results.length} RELEVANT MEMORIES VIA VIKING:\n`));
83
-
84
- results.forEach((r, idx) => {
85
- const content = JSON.parse(r.content || '{}');
86
- console.log(chalk.bold(` ${idx + 1}. ${chalk.cyan(content.what_failed)}`));
87
- console.log(chalk.dim(` Why: ${content.why_failed}`));
88
- console.log(chalk.dim(` Fix: ${chalk.white(content.how_to_prevent)}`));
89
- console.log(chalk.italic.magenta(` Vector Similarity: ${Math.round((r.score || 0) * 100)}%\n`));
90
- });
91
- } else {
92
- console.log(chalk.red(' āŒ No results found.'));
93
- }
94
-
95
- // ─── Cleanup ───────────────────────────────────────────────────────────────
96
-
97
- console.log(chalk.dim(' Demo complete. Shutting down...'));
98
- server.close();
99
- process.exit(0);
100
- }
101
-
102
- runDemo().catch(err => {
103
- console.error(chalk.red('\n šŸ›‘ Demo Failed:'), err);
104
- process.exit(1);
105
- });
@@ -1,33 +0,0 @@
1
- # OpenViking Semantic Memory
2
-
3
- **OpenViking** is CodyMaster's high-performance memory backend. It replaces chaotic keyword-based grep searches and blind RAG chunking with a highly structured Semantic Vector Engine.
4
-
5
- ## The Problem with Standard AI Search
6
-
7
- Typical AI coding agents use raw text searches or simple AST parsing limits to find context. This causes **Code Amnesia**:
8
- - The agent forgets standard component library practices.
9
- - The agent invents (hallucinates) missing variables.
10
- - Scaling to million-line codebases overflows the token limit, crashing the session.
11
-
12
- ## The OpenViking Solution
13
-
14
- OpenViking introduces **L0/L1/L2 Progressive Summarization** coupled with SQLite FTS5 and Vector Embeddings.
15
-
16
- ### How it works:
17
-
18
- 1. **L0 (Skeleton Index)**: A fast map of the entire directory structure, capturing file names, exports, and imports.
19
- 2. **L1 (Symbol Index)**: Extracts function signatures, class interfaces, and variable definitions without the bulky implementation details.
20
- 3. **L2 (Full Context)**: The heavy vector embeddings (using local or API-driven embedding models) that store actual logic and edge cases.
21
-
22
- When the agent attempts to refactor a component, OpenViking performs a semantic lookup on L1 and L2 databases, pulling *only* the exact functions and files impacted by the change.
23
-
24
- ## Native Integration
25
-
26
- OpenViking works autonomously in the background. When CodyMaster initializes in a project, it creates a `.viking` directory (ignored via `.gitignore`) mapped entirely to a rapid local SQLite store.
27
-
28
- ```bash
29
- # Force an on-demand re-index of the OpenViking graph
30
- cody-master viking index --force
31
- ```
32
-
33
- By ensuring agents have a complete layout of the system at all times, OpenViking single-handedly eliminates structural regressions in mature projects.