@hivehub/rulebook 3.0.0 → 3.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/LICENSE +0 -0
- package/README.md +66 -5
- package/dist/agents/claude-code.d.ts +0 -0
- package/dist/agents/claude-code.d.ts.map +0 -0
- package/dist/agents/claude-code.js +0 -0
- package/dist/agents/claude-code.js.map +0 -0
- package/dist/agents/cursor-agent.d.ts +0 -0
- package/dist/agents/cursor-agent.d.ts.map +0 -0
- package/dist/agents/cursor-agent.js +0 -0
- package/dist/agents/cursor-agent.js.map +0 -0
- package/dist/agents/gemini-cli.d.ts +0 -0
- package/dist/agents/gemini-cli.d.ts.map +0 -0
- package/dist/agents/gemini-cli.js +0 -0
- package/dist/agents/gemini-cli.js.map +0 -0
- package/dist/agents/ralph-parser.d.ts +52 -0
- package/dist/agents/ralph-parser.d.ts.map +1 -0
- package/dist/agents/ralph-parser.js +246 -0
- package/dist/agents/ralph-parser.js.map +1 -0
- package/dist/cli/commands.d.ts +13 -0
- package/dist/cli/commands.d.ts.map +1 -1
- package/dist/cli/commands.js +378 -20
- package/dist/cli/commands.js.map +1 -1
- package/dist/cli/docs-prompts.d.ts +0 -0
- package/dist/cli/docs-prompts.d.ts.map +0 -0
- package/dist/cli/docs-prompts.js +0 -0
- package/dist/cli/docs-prompts.js.map +0 -0
- package/dist/cli/prompts.d.ts +0 -0
- package/dist/cli/prompts.d.ts.map +0 -0
- package/dist/cli/prompts.js +0 -0
- package/dist/cli/prompts.js.map +0 -0
- package/dist/core/agent-manager.d.ts +0 -0
- package/dist/core/agent-manager.d.ts.map +0 -0
- package/dist/core/agent-manager.js +0 -0
- package/dist/core/agent-manager.js.map +0 -0
- package/dist/core/auto-fixer.d.ts +0 -0
- package/dist/core/auto-fixer.d.ts.map +0 -0
- package/dist/core/auto-fixer.js +0 -0
- package/dist/core/auto-fixer.js.map +0 -0
- package/dist/core/changelog-generator.d.ts +0 -0
- package/dist/core/changelog-generator.d.ts.map +0 -0
- package/dist/core/changelog-generator.js +0 -0
- package/dist/core/changelog-generator.js.map +0 -0
- package/dist/core/claude-mcp.d.ts +0 -0
- package/dist/core/claude-mcp.d.ts.map +0 -0
- package/dist/core/claude-mcp.js +0 -0
- package/dist/core/claude-mcp.js.map +0 -0
- package/dist/core/cli-bridge.d.ts +0 -0
- package/dist/core/cli-bridge.d.ts.map +0 -0
- package/dist/core/cli-bridge.js +0 -0
- package/dist/core/cli-bridge.js.map +0 -0
- package/dist/core/config-manager.d.ts +13 -2
- package/dist/core/config-manager.d.ts.map +1 -1
- package/dist/core/config-manager.js +185 -7
- package/dist/core/config-manager.js.map +1 -1
- package/dist/core/coverage-checker.d.ts +0 -0
- package/dist/core/coverage-checker.d.ts.map +0 -0
- package/dist/core/coverage-checker.js +0 -0
- package/dist/core/coverage-checker.js.map +0 -0
- package/dist/core/custom-templates.d.ts +0 -0
- package/dist/core/custom-templates.d.ts.map +0 -0
- package/dist/core/custom-templates.js +0 -0
- package/dist/core/custom-templates.js.map +0 -0
- package/dist/core/dependency-checker.d.ts +0 -0
- package/dist/core/dependency-checker.d.ts.map +0 -0
- package/dist/core/dependency-checker.js +0 -0
- package/dist/core/dependency-checker.js.map +0 -0
- package/dist/core/detector.d.ts +0 -0
- package/dist/core/detector.d.ts.map +0 -0
- package/dist/core/detector.js +0 -0
- package/dist/core/detector.js.map +0 -0
- package/dist/core/docs-generator.d.ts +0 -0
- package/dist/core/docs-generator.d.ts.map +0 -0
- package/dist/core/docs-generator.js +0 -0
- package/dist/core/docs-generator.js.map +0 -0
- package/dist/core/generator.d.ts +0 -0
- package/dist/core/generator.d.ts.map +1 -1
- package/dist/core/generator.js +99 -16
- package/dist/core/generator.js.map +1 -1
- package/dist/core/gitignore-generator.d.ts +0 -0
- package/dist/core/gitignore-generator.d.ts.map +0 -0
- package/dist/core/gitignore-generator.js +0 -0
- package/dist/core/gitignore-generator.js.map +0 -0
- package/dist/core/health-scorer.d.ts +0 -0
- package/dist/core/health-scorer.d.ts.map +0 -0
- package/dist/core/health-scorer.js +0 -0
- package/dist/core/health-scorer.js.map +0 -0
- package/dist/core/iteration-tracker.d.ts +57 -0
- package/dist/core/iteration-tracker.d.ts.map +1 -0
- package/dist/core/iteration-tracker.js +209 -0
- package/dist/core/iteration-tracker.js.map +1 -0
- package/dist/core/logger.d.ts +0 -0
- package/dist/core/logger.d.ts.map +0 -0
- package/dist/core/logger.js +0 -0
- package/dist/core/logger.js.map +0 -0
- package/dist/core/merger.d.ts +0 -0
- package/dist/core/merger.d.ts.map +0 -0
- package/dist/core/merger.js +0 -0
- package/dist/core/merger.js.map +0 -0
- package/dist/core/migrator.d.ts +0 -0
- package/dist/core/migrator.d.ts.map +0 -0
- package/dist/core/migrator.js +0 -0
- package/dist/core/migrator.js.map +0 -0
- package/dist/core/minimal-scaffolder.d.ts +0 -0
- package/dist/core/minimal-scaffolder.d.ts.map +0 -0
- package/dist/core/minimal-scaffolder.js +0 -0
- package/dist/core/minimal-scaffolder.js.map +0 -0
- package/dist/core/modern-console.d.ts +0 -0
- package/dist/core/modern-console.d.ts.map +0 -0
- package/dist/core/modern-console.js +0 -0
- package/dist/core/modern-console.js.map +0 -0
- package/dist/core/openspec-manager.d.ts +0 -0
- package/dist/core/openspec-manager.d.ts.map +0 -0
- package/dist/core/openspec-manager.js +0 -0
- package/dist/core/openspec-manager.js.map +0 -0
- package/dist/core/openspec-migrator.d.ts +0 -0
- package/dist/core/openspec-migrator.d.ts.map +0 -0
- package/dist/core/openspec-migrator.js +0 -0
- package/dist/core/openspec-migrator.js.map +0 -0
- package/dist/core/prd-generator.d.ts +36 -0
- package/dist/core/prd-generator.d.ts.map +1 -0
- package/dist/core/prd-generator.js +137 -0
- package/dist/core/prd-generator.js.map +1 -0
- package/dist/core/ralph-manager.d.ts +75 -0
- package/dist/core/ralph-manager.d.ts.map +1 -0
- package/dist/core/ralph-manager.js +276 -0
- package/dist/core/ralph-manager.js.map +1 -0
- package/dist/core/skills-manager.d.ts +0 -0
- package/dist/core/skills-manager.d.ts.map +0 -0
- package/dist/core/skills-manager.js +0 -0
- package/dist/core/skills-manager.js.map +0 -0
- package/dist/core/task-manager.d.ts +0 -0
- package/dist/core/task-manager.d.ts.map +0 -0
- package/dist/core/task-manager.js +0 -0
- package/dist/core/task-manager.js.map +0 -0
- package/dist/core/test-task-manager.d.ts +0 -0
- package/dist/core/test-task-manager.d.ts.map +0 -0
- package/dist/core/test-task-manager.js +0 -0
- package/dist/core/test-task-manager.js.map +0 -0
- package/dist/core/validator.d.ts +0 -0
- package/dist/core/validator.d.ts.map +0 -0
- package/dist/core/validator.js +0 -0
- package/dist/core/validator.js.map +0 -0
- package/dist/core/version-bumper.d.ts +0 -0
- package/dist/core/version-bumper.d.ts.map +0 -0
- package/dist/core/version-bumper.js +0 -0
- package/dist/core/version-bumper.js.map +0 -0
- package/dist/core/watcher.d.ts +0 -0
- package/dist/core/watcher.d.ts.map +0 -0
- package/dist/core/watcher.js +0 -0
- package/dist/core/watcher.js.map +0 -0
- package/dist/core/workflow-generator.d.ts +0 -0
- package/dist/core/workflow-generator.d.ts.map +0 -0
- package/dist/core/workflow-generator.js +0 -0
- package/dist/core/workflow-generator.js.map +0 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.d.ts.map +0 -0
- package/dist/index.js +46 -1
- package/dist/index.js.map +1 -1
- package/dist/mcp/rulebook-server.d.ts +0 -0
- package/dist/mcp/rulebook-server.d.ts.map +1 -1
- package/dist/mcp/rulebook-server.js +229 -0
- package/dist/mcp/rulebook-server.js.map +1 -1
- package/dist/memory/hnsw-index.d.ts +0 -0
- package/dist/memory/hnsw-index.d.ts.map +0 -0
- package/dist/memory/hnsw-index.js +0 -0
- package/dist/memory/hnsw-index.js.map +0 -0
- package/dist/memory/memory-cache.d.ts +0 -0
- package/dist/memory/memory-cache.d.ts.map +0 -0
- package/dist/memory/memory-cache.js +0 -0
- package/dist/memory/memory-cache.js.map +0 -0
- package/dist/memory/memory-hooks.d.ts +6 -0
- package/dist/memory/memory-hooks.d.ts.map +1 -1
- package/dist/memory/memory-hooks.js +72 -15
- package/dist/memory/memory-hooks.js.map +1 -1
- package/dist/memory/memory-manager.d.ts +1 -0
- package/dist/memory/memory-manager.d.ts.map +1 -1
- package/dist/memory/memory-manager.js +11 -4
- package/dist/memory/memory-manager.js.map +1 -1
- package/dist/memory/memory-search.d.ts +0 -0
- package/dist/memory/memory-search.d.ts.map +0 -0
- package/dist/memory/memory-search.js +0 -0
- package/dist/memory/memory-search.js.map +0 -0
- package/dist/memory/memory-store.d.ts +0 -0
- package/dist/memory/memory-store.d.ts.map +0 -0
- package/dist/memory/memory-store.js +0 -0
- package/dist/memory/memory-store.js.map +0 -0
- package/dist/memory/memory-types.d.ts +1 -0
- package/dist/memory/memory-types.d.ts.map +1 -1
- package/dist/memory/memory-types.js +0 -0
- package/dist/memory/memory-types.js.map +0 -0
- package/dist/memory/memory-vectorizer.d.ts +0 -0
- package/dist/memory/memory-vectorizer.d.ts.map +0 -0
- package/dist/memory/memory-vectorizer.js +0 -0
- package/dist/memory/memory-vectorizer.js.map +0 -0
- package/dist/types.d.ts +70 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +0 -0
- package/dist/types.js.map +0 -0
- package/dist/utils/file-system.d.ts +0 -0
- package/dist/utils/file-system.d.ts.map +0 -0
- package/dist/utils/file-system.js +0 -0
- package/dist/utils/file-system.js.map +0 -0
- package/dist/utils/git-hooks.d.ts +0 -0
- package/dist/utils/git-hooks.d.ts.map +0 -0
- package/dist/utils/git-hooks.js +0 -0
- package/dist/utils/git-hooks.js.map +0 -0
- package/dist/utils/rulesignore.d.ts +0 -0
- package/dist/utils/rulesignore.d.ts.map +0 -0
- package/dist/utils/rulesignore.js +0 -0
- package/dist/utils/rulesignore.js.map +0 -0
- package/package.json +106 -107
- package/templates/cli/AIDER.md +0 -0
- package/templates/cli/AMAZON_Q.md +0 -0
- package/templates/cli/AUGGIE.md +0 -0
- package/templates/cli/CLAUDE.md +85 -0
- package/templates/cli/CLAUDE_CODE.md +0 -0
- package/templates/cli/CLINE.md +69 -2
- package/templates/cli/CODEBUDDY.md +0 -0
- package/templates/cli/CODEIUM.md +0 -0
- package/templates/cli/CODEX.md +0 -0
- package/templates/cli/CONTINUE.md +0 -0
- package/templates/cli/CURSOR_CLI.md +37 -3
- package/templates/cli/FACTORY.md +0 -0
- package/templates/cli/GEMINI.md +0 -0
- package/templates/cli/KILOCODE.md +0 -0
- package/templates/cli/OPENCODE.md +0 -0
- package/templates/cli/_GENERIC_TEMPLATE.md +0 -0
- package/templates/cli/gemini-extension.json +0 -0
- package/templates/commands/rulebook-memory-save.md +0 -0
- package/templates/commands/rulebook-memory-search.md +0 -0
- package/templates/commands/rulebook-task-apply.md +0 -0
- package/templates/commands/rulebook-task-archive.md +0 -0
- package/templates/commands/rulebook-task-create.md +0 -0
- package/templates/commands/rulebook-task-list.md +0 -0
- package/templates/commands/rulebook-task-show.md +0 -0
- package/templates/commands/rulebook-task-validate.md +0 -0
- package/templates/core/AGENT_AUTOMATION.md +142 -38
- package/templates/core/DAG.md +0 -0
- package/templates/core/DOCUMENTATION_RULES.md +0 -0
- package/templates/core/QUALITY_ENFORCEMENT.md +0 -0
- package/templates/core/RALPH.md +430 -0
- package/templates/core/RULEBOOK.md +20 -1
- package/templates/frameworks/ANGULAR.md +0 -0
- package/templates/frameworks/DJANGO.md +0 -0
- package/templates/frameworks/ELECTRON.md +0 -0
- package/templates/frameworks/FLASK.md +0 -0
- package/templates/frameworks/FLUTTER.md +0 -0
- package/templates/frameworks/JQUERY.md +0 -0
- package/templates/frameworks/LARAVEL.md +0 -0
- package/templates/frameworks/NESTJS.md +0 -0
- package/templates/frameworks/NEXTJS.md +0 -0
- package/templates/frameworks/NUXT.md +0 -0
- package/templates/frameworks/RAILS.md +0 -0
- package/templates/frameworks/REACT.md +0 -0
- package/templates/frameworks/REACT_NATIVE.md +0 -0
- package/templates/frameworks/SPRING.md +0 -0
- package/templates/frameworks/SYMFONY.md +0 -0
- package/templates/frameworks/VUE.md +0 -0
- package/templates/frameworks/ZEND.md +0 -0
- package/templates/git/CI_CD_PATTERNS.md +0 -0
- package/templates/git/GITHUB_ACTIONS.md +0 -0
- package/templates/git/GITLAB_CI.md +0 -0
- package/templates/git/GIT_WORKFLOW.md +0 -0
- package/templates/git/SECRETS_MANAGEMENT.md +0 -0
- package/templates/hooks/COMMIT_MSG.md +0 -0
- package/templates/hooks/POST_CHECKOUT.md +0 -0
- package/templates/hooks/PREPARE_COMMIT_MSG.md +0 -0
- package/templates/hooks/PRE_COMMIT.md +0 -0
- package/templates/hooks/PRE_PUSH.md +0 -0
- package/templates/hooks/csharp-pre-commit.sh +0 -0
- package/templates/hooks/csharp-pre-push.sh +0 -0
- package/templates/hooks/dart-pre-commit.sh +0 -0
- package/templates/hooks/dart-pre-push.sh +0 -0
- package/templates/hooks/elixir-pre-commit.sh +0 -0
- package/templates/hooks/elixir-pre-push.sh +0 -0
- package/templates/hooks/erlang-pre-commit.sh +0 -0
- package/templates/hooks/erlang-pre-push.sh +0 -0
- package/templates/hooks/go-pre-commit.sh +0 -0
- package/templates/hooks/go-pre-push.sh +0 -0
- package/templates/hooks/haskell-pre-commit.sh +0 -0
- package/templates/hooks/haskell-pre-push.sh +0 -0
- package/templates/hooks/java-pre-commit.sh +0 -0
- package/templates/hooks/java-pre-push.sh +0 -0
- package/templates/hooks/kotlin-pre-commit.sh +0 -0
- package/templates/hooks/kotlin-pre-push.sh +0 -0
- package/templates/hooks/php-pre-commit.sh +0 -0
- package/templates/hooks/php-pre-push.sh +0 -0
- package/templates/hooks/python-pre-commit.sh +0 -0
- package/templates/hooks/python-pre-push.sh +0 -0
- package/templates/hooks/ruby-pre-commit.sh +0 -0
- package/templates/hooks/ruby-pre-push.sh +0 -0
- package/templates/hooks/rust-pre-commit.sh +0 -0
- package/templates/hooks/rust-pre-push.sh +0 -0
- package/templates/hooks/scala-pre-commit.sh +0 -0
- package/templates/hooks/scala-pre-push.sh +0 -0
- package/templates/hooks/swift-pre-commit.sh +0 -0
- package/templates/hooks/swift-pre-push.sh +0 -0
- package/templates/hooks/typescript-pre-commit.sh +0 -0
- package/templates/hooks/typescript-pre-push.sh +0 -0
- package/templates/ides/COPILOT.md +0 -0
- package/templates/ides/CURSOR.md +0 -0
- package/templates/ides/JETBRAINS_AI.md +0 -0
- package/templates/ides/REPLIT.md +0 -0
- package/templates/ides/TABNINE.md +0 -0
- package/templates/ides/VSCODE.md +0 -0
- package/templates/ides/WINDSURF.md +0 -0
- package/templates/ides/ZED.md +0 -0
- package/templates/languages/ADA.md +0 -0
- package/templates/languages/C.md +0 -0
- package/templates/languages/CPP.md +0 -0
- package/templates/languages/CSHARP.md +0 -0
- package/templates/languages/DART.md +0 -0
- package/templates/languages/ELIXIR.md +0 -0
- package/templates/languages/ERLANG.md +0 -0
- package/templates/languages/GO.md +0 -0
- package/templates/languages/HASKELL.md +0 -0
- package/templates/languages/JAVA.md +0 -0
- package/templates/languages/JAVASCRIPT.md +0 -0
- package/templates/languages/JULIA.md +0 -0
- package/templates/languages/KOTLIN.md +0 -0
- package/templates/languages/LISP.md +0 -0
- package/templates/languages/LUA.md +0 -0
- package/templates/languages/OBJECTIVEC.md +0 -0
- package/templates/languages/PHP.md +0 -0
- package/templates/languages/PYTHON.md +0 -0
- package/templates/languages/R.md +0 -0
- package/templates/languages/RUBY.md +0 -0
- package/templates/languages/RUST.md +0 -0
- package/templates/languages/SAS.md +0 -0
- package/templates/languages/SCALA.md +0 -0
- package/templates/languages/SOLIDITY.md +0 -0
- package/templates/languages/SQL.md +0 -0
- package/templates/languages/SWIFT.md +0 -0
- package/templates/languages/TYPESCRIPT.md +0 -0
- package/templates/languages/ZIG.md +0 -0
- package/templates/modules/ATLASSIAN.md +0 -0
- package/templates/modules/CONTEXT7.md +0 -0
- package/templates/modules/FIGMA.md +0 -0
- package/templates/modules/GITHUB_MCP.md +0 -0
- package/templates/modules/GRAFANA.md +0 -0
- package/templates/modules/MEMORY.md +74 -11
- package/templates/modules/NOTION.md +0 -0
- package/templates/modules/PLAYWRIGHT.md +0 -0
- package/templates/modules/RULEBOOK_MCP.md +0 -0
- package/templates/modules/SERENA.md +0 -0
- package/templates/modules/SUPABASE.md +0 -0
- package/templates/modules/SYNAP.md +0 -0
- package/templates/modules/VECTORIZER.md +0 -0
- package/templates/services/AZURE_BLOB.md +0 -0
- package/templates/services/CASSANDRA.md +0 -0
- package/templates/services/DYNAMODB.md +0 -0
- package/templates/services/ELASTICSEARCH.md +0 -0
- package/templates/services/GCS.md +0 -0
- package/templates/services/INFLUXDB.md +0 -0
- package/templates/services/KAFKA.md +0 -0
- package/templates/services/MARIADB.md +0 -0
- package/templates/services/MEMCACHED.md +0 -0
- package/templates/services/MINIO.md +0 -0
- package/templates/services/MONGODB.md +0 -0
- package/templates/services/MYSQL.md +0 -0
- package/templates/services/NEO4J.md +0 -0
- package/templates/services/ORACLE.md +0 -0
- package/templates/services/POSTGRESQL.md +0 -0
- package/templates/services/RABBITMQ.md +0 -0
- package/templates/services/REDIS.md +0 -0
- package/templates/services/S3.md +0 -0
- package/templates/services/SQLITE.md +0 -0
- package/templates/services/SQLSERVER.md +0 -0
- package/templates/skills/cli/aider/SKILL.md +0 -0
- package/templates/skills/cli/amazon-q/SKILL.md +0 -0
- package/templates/skills/cli/auggie/SKILL.md +0 -0
- package/templates/skills/cli/claude/SKILL.md +0 -0
- package/templates/skills/cli/claude-code/SKILL.md +0 -0
- package/templates/skills/cli/cline/SKILL.md +0 -0
- package/templates/skills/cli/codebuddy/SKILL.md +0 -0
- package/templates/skills/cli/codeium/SKILL.md +0 -0
- package/templates/skills/cli/codex/SKILL.md +0 -0
- package/templates/skills/cli/continue/SKILL.md +0 -0
- package/templates/skills/cli/cursor-cli/SKILL.md +0 -0
- package/templates/skills/cli/factory/SKILL.md +0 -0
- package/templates/skills/cli/gemini/SKILL.md +0 -0
- package/templates/skills/cli/kilocode/SKILL.md +0 -0
- package/templates/skills/cli/opencode/SKILL.md +0 -0
- package/templates/skills/core/agent-automation/SKILL.md +0 -0
- package/templates/skills/core/dag/SKILL.md +0 -0
- package/templates/skills/core/documentation-rules/SKILL.md +0 -0
- package/templates/skills/core/quality-enforcement/SKILL.md +0 -0
- package/templates/skills/core/rulebook/SKILL.md +0 -0
- package/templates/skills/frameworks/angular/SKILL.md +0 -0
- package/templates/skills/frameworks/django/SKILL.md +0 -0
- package/templates/skills/frameworks/electron/SKILL.md +0 -0
- package/templates/skills/frameworks/flask/SKILL.md +0 -0
- package/templates/skills/frameworks/flutter/SKILL.md +0 -0
- package/templates/skills/frameworks/jquery/SKILL.md +0 -0
- package/templates/skills/frameworks/laravel/SKILL.md +0 -0
- package/templates/skills/frameworks/nestjs/SKILL.md +0 -0
- package/templates/skills/frameworks/nextjs/SKILL.md +0 -0
- package/templates/skills/frameworks/nuxt/SKILL.md +0 -0
- package/templates/skills/frameworks/rails/SKILL.md +0 -0
- package/templates/skills/frameworks/react/SKILL.md +0 -0
- package/templates/skills/frameworks/react-native/SKILL.md +0 -0
- package/templates/skills/frameworks/spring/SKILL.md +0 -0
- package/templates/skills/frameworks/symfony/SKILL.md +0 -0
- package/templates/skills/frameworks/vue/SKILL.md +0 -0
- package/templates/skills/frameworks/zend/SKILL.md +0 -0
- package/templates/skills/ides/copilot/SKILL.md +0 -0
- package/templates/skills/ides/cursor/SKILL.md +0 -0
- package/templates/skills/ides/jetbrains-ai/SKILL.md +0 -0
- package/templates/skills/ides/replit/SKILL.md +0 -0
- package/templates/skills/ides/tabnine/SKILL.md +0 -0
- package/templates/skills/ides/vscode/SKILL.md +0 -0
- package/templates/skills/ides/windsurf/SKILL.md +0 -0
- package/templates/skills/ides/zed/SKILL.md +0 -0
- package/templates/skills/languages/ada/SKILL.md +0 -0
- package/templates/skills/languages/c/SKILL.md +0 -0
- package/templates/skills/languages/cpp/SKILL.md +0 -0
- package/templates/skills/languages/csharp/SKILL.md +0 -0
- package/templates/skills/languages/dart/SKILL.md +0 -0
- package/templates/skills/languages/elixir/SKILL.md +0 -0
- package/templates/skills/languages/erlang/SKILL.md +0 -0
- package/templates/skills/languages/go/SKILL.md +0 -0
- package/templates/skills/languages/haskell/SKILL.md +0 -0
- package/templates/skills/languages/java/SKILL.md +0 -0
- package/templates/skills/languages/javascript/SKILL.md +0 -0
- package/templates/skills/languages/julia/SKILL.md +0 -0
- package/templates/skills/languages/kotlin/SKILL.md +0 -0
- package/templates/skills/languages/lisp/SKILL.md +0 -0
- package/templates/skills/languages/lua/SKILL.md +0 -0
- package/templates/skills/languages/objectivec/SKILL.md +0 -0
- package/templates/skills/languages/php/SKILL.md +0 -0
- package/templates/skills/languages/python/SKILL.md +0 -0
- package/templates/skills/languages/r/SKILL.md +0 -0
- package/templates/skills/languages/ruby/SKILL.md +0 -0
- package/templates/skills/languages/rust/SKILL.md +0 -0
- package/templates/skills/languages/sas/SKILL.md +0 -0
- package/templates/skills/languages/scala/SKILL.md +0 -0
- package/templates/skills/languages/solidity/SKILL.md +0 -0
- package/templates/skills/languages/sql/SKILL.md +0 -0
- package/templates/skills/languages/swift/SKILL.md +0 -0
- package/templates/skills/languages/typescript/SKILL.md +0 -0
- package/templates/skills/languages/zig/SKILL.md +0 -0
- package/templates/skills/modules/atlassian/SKILL.md +0 -0
- package/templates/skills/modules/context7/SKILL.md +0 -0
- package/templates/skills/modules/figma/SKILL.md +0 -0
- package/templates/skills/modules/github-mcp/SKILL.md +0 -0
- package/templates/skills/modules/grafana/SKILL.md +0 -0
- package/templates/skills/modules/memory/SKILL.md +0 -0
- package/templates/skills/modules/notion/SKILL.md +0 -0
- package/templates/skills/modules/playwright/SKILL.md +0 -0
- package/templates/skills/modules/rulebook-mcp/SKILL.md +0 -0
- package/templates/skills/modules/serena/SKILL.md +0 -0
- package/templates/skills/modules/supabase/SKILL.md +0 -0
- package/templates/skills/modules/synap/SKILL.md +0 -0
- package/templates/skills/modules/vectorizer/SKILL.md +0 -0
- package/templates/skills/services/azure-blob/SKILL.md +0 -0
- package/templates/skills/services/cassandra/SKILL.md +0 -0
- package/templates/skills/services/dynamodb/SKILL.md +0 -0
- package/templates/skills/services/elasticsearch/SKILL.md +0 -0
- package/templates/skills/services/gcs/SKILL.md +0 -0
- package/templates/skills/services/influxdb/SKILL.md +0 -0
- package/templates/skills/services/kafka/SKILL.md +0 -0
- package/templates/skills/services/mariadb/SKILL.md +0 -0
- package/templates/skills/services/memcached/SKILL.md +0 -0
- package/templates/skills/services/minio/SKILL.md +0 -0
- package/templates/skills/services/mongodb/SKILL.md +0 -0
- package/templates/skills/services/mysql/SKILL.md +0 -0
- package/templates/skills/services/neo4j/SKILL.md +0 -0
- package/templates/skills/services/oracle/SKILL.md +0 -0
- package/templates/skills/services/postgresql/SKILL.md +0 -0
- package/templates/skills/services/rabbitmq/SKILL.md +0 -0
- package/templates/skills/services/redis/SKILL.md +0 -0
- package/templates/skills/services/s3/SKILL.md +0 -0
- package/templates/skills/services/sqlite/SKILL.md +0 -0
- package/templates/skills/services/sqlserver/SKILL.md +0 -0
- package/templates/skills/workflows/ralph/SETUP.md +228 -0
- package/templates/skills/workflows/ralph/SKILL.md +309 -0
- package/templates/skills/workflows/ralph/install.sh +87 -0
- package/templates/skills/workflows/ralph/manifest.json +158 -0
- package/templates/workflows/codespell.yml +0 -0
- package/templates/workflows/cpp-lint.yml +0 -0
- package/templates/workflows/cpp-publish.yml +0 -0
- package/templates/workflows/cpp-test.yml +0 -0
- package/templates/workflows/dotnet-lint.yml +0 -0
- package/templates/workflows/dotnet-publish.yml +0 -0
- package/templates/workflows/dotnet-test.yml +0 -0
- package/templates/workflows/elixir-lint.yml +0 -0
- package/templates/workflows/elixir-publish.yml +0 -0
- package/templates/workflows/elixir-test.yml +0 -0
- package/templates/workflows/erlang-lint.yml +0 -0
- package/templates/workflows/erlang-test.yml +0 -0
- package/templates/workflows/go-lint.yml +0 -0
- package/templates/workflows/go-publish.yml +0 -0
- package/templates/workflows/go-test.yml +0 -0
- package/templates/workflows/java-lint.yml +0 -0
- package/templates/workflows/java-publish.yml +0 -0
- package/templates/workflows/java-test.yml +0 -0
- package/templates/workflows/kotlin-lint.yml +0 -0
- package/templates/workflows/kotlin-publish.yml +0 -0
- package/templates/workflows/kotlin-test.yml +0 -0
- package/templates/workflows/php-lint.yml +0 -0
- package/templates/workflows/php-publish.yml +0 -0
- package/templates/workflows/php-test.yml +0 -0
- package/templates/workflows/python-lint.yml +0 -0
- package/templates/workflows/python-publish.yml +0 -0
- package/templates/workflows/python-test.yml +0 -0
- package/templates/workflows/rust-lint.yml +0 -0
- package/templates/workflows/rust-publish.yml +0 -0
- package/templates/workflows/rust-test.yml +0 -0
- package/templates/workflows/solidity-lint.yml +0 -0
- package/templates/workflows/solidity-test.yml +0 -0
- package/templates/workflows/swift-lint.yml +0 -0
- package/templates/workflows/swift-publish.yml +0 -0
- package/templates/workflows/swift-test.yml +0 -0
- package/templates/workflows/typescript-lint.yml +0 -0
- package/templates/workflows/typescript-publish.yml +0 -0
- package/templates/workflows/typescript-test.yml +0 -0
- package/templates/workflows/zig-lint.yml +0 -0
- package/templates/workflows/zig-test.yml +0 -0
- package/dist/core/modern-console-new.d.ts +0 -81
- package/dist/core/modern-console-new.d.ts.map +0 -1
- package/dist/core/modern-console-new.js +0 -340
- package/dist/core/modern-console-new.js.map +0 -1
- package/dist/mcp/handlers/archive-task.d.ts +0 -17
- package/dist/mcp/handlers/archive-task.d.ts.map +0 -1
- package/dist/mcp/handlers/archive-task.js +0 -36
- package/dist/mcp/handlers/archive-task.js.map +0 -1
- package/dist/mcp/handlers/create-task.d.ts +0 -17
- package/dist/mcp/handlers/create-task.d.ts.map +0 -1
- package/dist/mcp/handlers/create-task.js +0 -56
- package/dist/mcp/handlers/create-task.js.map +0 -1
- package/dist/mcp/handlers/list-tasks.d.ts +0 -22
- package/dist/mcp/handlers/list-tasks.d.ts.map +0 -1
- package/dist/mcp/handlers/list-tasks.js +0 -42
- package/dist/mcp/handlers/list-tasks.js.map +0 -1
- package/dist/mcp/handlers/show-task.d.ts +0 -25
- package/dist/mcp/handlers/show-task.d.ts.map +0 -1
- package/dist/mcp/handlers/show-task.js +0 -43
- package/dist/mcp/handlers/show-task.js.map +0 -1
- package/dist/mcp/handlers/update-task.d.ts +0 -17
- package/dist/mcp/handlers/update-task.d.ts.map +0 -1
- package/dist/mcp/handlers/update-task.js +0 -35
- package/dist/mcp/handlers/update-task.js.map +0 -1
- package/dist/mcp/handlers/validate-task.d.ts +0 -15
- package/dist/mcp/handlers/validate-task.d.ts.map +0 -1
- package/dist/mcp/handlers/validate-task.js +0 -27
- package/dist/mcp/handlers/validate-task.js.map +0 -1
- package/dist/mcp/rulebook-config.d.ts +0 -22
- package/dist/mcp/rulebook-config.d.ts.map +0 -1
- package/dist/mcp/rulebook-config.js +0 -65
- package/dist/mcp/rulebook-config.js.map +0 -1
package/LICENSE
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
@@ -49,7 +49,28 @@ npx @hivehub/rulebook@latest update
|
|
|
49
49
|
|
|
50
50
|
## What's New
|
|
51
51
|
|
|
52
|
-
### v3.
|
|
52
|
+
### v3.1.0
|
|
53
|
+
|
|
54
|
+
- 🤖 **Ralph Autonomous Loop Integration**: Multi-iteration AI agent task solving with fresh context per iteration
|
|
55
|
+
- Autonomous iteration loop with configurable max iterations
|
|
56
|
+
- Fresh context per iteration to avoid context window exhaustion
|
|
57
|
+
- Quality gates: type-check, lint, tests, coverage verification
|
|
58
|
+
- Detailed iteration tracking with history and metrics
|
|
59
|
+
- PRD (Product Requirements Document) generation from rulebook tasks
|
|
60
|
+
- 6 CLI commands: `rulebook ralph init|run|status|history|pause|resume`
|
|
61
|
+
- 4 MCP tools: `rulebook_ralph_init|run|status|get_iteration_history`
|
|
62
|
+
- Graceful pause/resume capabilities for long-running loops
|
|
63
|
+
- Automatic directory migration from old structure to new `.rulebook/` layout
|
|
64
|
+
- 📁 **Consolidated Directory Structure**: Single `.rulebook/` directory for all rulebook data
|
|
65
|
+
- `memory/` subdirectory for persistent memory system
|
|
66
|
+
- `ralph/` subdirectory for autonomous loop state and history
|
|
67
|
+
- Automatic migration from `.rulebook-memory/` and `.rulebook-ralph/` during `init` and `update`
|
|
68
|
+
- 📖 **Comprehensive Ralph Documentation**: 450+ lines of guides, examples, and best practices
|
|
69
|
+
- Complete Ralph usage guide with task sizing guidelines
|
|
70
|
+
- Configuration reference and MCP integration examples
|
|
71
|
+
- Real-world workflows and troubleshooting strategies
|
|
72
|
+
|
|
73
|
+
### v3.0.0
|
|
53
74
|
|
|
54
75
|
- 🧠 **Persistent Memory System**: Zero-dependency persistent context across AI sessions
|
|
55
76
|
- Hybrid search: BM25 keyword + HNSW vector with Reciprocal Rank Fusion
|
|
@@ -249,24 +270,29 @@ Memory is enabled in `.rulebook`:
|
|
|
249
270
|
"memory": {
|
|
250
271
|
"enabled": true,
|
|
251
272
|
"autoCapture": true,
|
|
252
|
-
"dbPath": ".rulebook
|
|
273
|
+
"dbPath": ".rulebook/memory/memory.db",
|
|
253
274
|
"maxSizeBytes": 524288000,
|
|
254
275
|
"vectorDimensions": 256
|
|
255
276
|
}
|
|
256
277
|
}
|
|
257
278
|
```
|
|
258
279
|
|
|
259
|
-
> Add `.rulebook
|
|
280
|
+
> Add `.rulebook/` to your `.gitignore` — memory is local per developer.
|
|
260
281
|
|
|
261
282
|
---
|
|
262
283
|
|
|
263
284
|
## Key Features
|
|
264
285
|
|
|
286
|
+
- 🤖 **Ralph Autonomous Loop**: Multi-iteration AI task solving with fresh context per iteration (v3.1+)
|
|
287
|
+
- Quality gates: type-check, lint, tests, coverage verification
|
|
288
|
+
- Graceful pause/resume capabilities
|
|
289
|
+
- Complete iteration history and metrics
|
|
290
|
+
- 6 CLI commands + 4 MCP tools
|
|
265
291
|
- 🧠 **Persistent Memory**: Context that survives across AI sessions — hybrid BM25+HNSW search, auto-capture, zero native dependencies
|
|
266
292
|
- 🔍 **Auto-Detection**: Detects languages, frameworks, MCP modules, and services from your project files
|
|
267
293
|
- 📁 **Modular Architecture**: Templates in `/rulebook/` directory — smaller AGENTS.md, on-demand loading
|
|
268
294
|
- 🔗 **Git Hook Automation**: Pre-commit/pre-push hooks with language-aware quality checks
|
|
269
|
-
- 🔌 **
|
|
295
|
+
- 🔌 **23 MCP Functions**: Task management (7), skills (6), persistent memory (6), Ralph loop (4) via Model Context Protocol
|
|
270
296
|
- 📝 **106+ Templates**: 28 languages, 17 frameworks, 8 IDEs, 20 services, 15 CLI agents
|
|
271
297
|
- 🤖 **AI-Optimized**: Works with 23 AI assistants (Cursor, Claude, Gemini, etc.)
|
|
272
298
|
- 📦 **Publication Ready**: CI/CD pipelines for npm, crates.io, PyPI, Maven Central, and more
|
|
@@ -378,6 +404,17 @@ npx @hivehub/rulebook@latest memory stats # Database stats and heal
|
|
|
378
404
|
npx @hivehub/rulebook@latest memory cleanup # Run cache eviction
|
|
379
405
|
npx @hivehub/rulebook@latest memory export # Export as JSON or CSV
|
|
380
406
|
|
|
407
|
+
# Ralph Autonomous Loop (v3.1)
|
|
408
|
+
npx @hivehub/rulebook@latest ralph init # Initialize Ralph and generate PRD
|
|
409
|
+
npx @hivehub/rulebook@latest ralph run # Execute autonomous iteration loop
|
|
410
|
+
npx @hivehub/rulebook@latest ralph run --max-iterations 10 # Set max iterations
|
|
411
|
+
npx @hivehub/rulebook@latest ralph run --tool claude # Specify AI tool (claude|amp|gemini)
|
|
412
|
+
npx @hivehub/rulebook@latest ralph status # Show loop status
|
|
413
|
+
npx @hivehub/rulebook@latest ralph history # View iteration history
|
|
414
|
+
npx @hivehub/rulebook@latest ralph history --limit 5 # Last N iterations
|
|
415
|
+
npx @hivehub/rulebook@latest ralph pause # Gracefully pause loop
|
|
416
|
+
npx @hivehub/rulebook@latest ralph resume # Resume from pause
|
|
417
|
+
|
|
381
418
|
# Configuration
|
|
382
419
|
npx @hivehub/rulebook@latest config --show # Show current config
|
|
383
420
|
npx @hivehub/rulebook@latest config --set key=value # Set config value
|
|
@@ -770,10 +807,34 @@ npm test
|
|
|
770
807
|
npm run build
|
|
771
808
|
```
|
|
772
809
|
|
|
810
|
+
## Acknowledgments
|
|
811
|
+
|
|
812
|
+
We gratefully acknowledge and draw inspiration from these excellent open-source projects:
|
|
813
|
+
|
|
814
|
+
### [Ralph - Autonomous AI Agent Loop](https://github.com/snarktank/ralph)
|
|
815
|
+
Ralph inspired the autonomous loop integration in Rulebook v3.1+, enabling multi-iteration AI task solving with fresh context per iteration. We adapted Ralph's architectural patterns for integration with the Rulebook task management system, enabling AI agents to solve complex problems across multiple iterations without context exhaustion.
|
|
816
|
+
|
|
817
|
+
### [OpenSpec - AI-Native Task Format](https://github.com/Fission-AI/openspec)
|
|
818
|
+
OpenSpec's innovative approach to AI-native task management influenced Rulebook's task structure, including:
|
|
819
|
+
- Delta-based specifications (ADDED/MODIFIED/REMOVED)
|
|
820
|
+
- Given/When/Then scenario definitions
|
|
821
|
+
- Requirement-focused organization
|
|
822
|
+
- Structured task metadata and tracking
|
|
823
|
+
|
|
824
|
+
Rulebook builds on these concepts to provide a comprehensive task management system that works seamlessly with AI agents while maintaining compatibility with the OpenSpec format.
|
|
825
|
+
|
|
826
|
+
### Special Thanks
|
|
827
|
+
|
|
828
|
+
- **Ralph Team** for pioneering autonomous AI iteration patterns
|
|
829
|
+
- **Fission AI** for the OpenSpec format that standardizes AI task management
|
|
830
|
+
- All contributors who have helped shape Rulebook into a comprehensive solution for AI-generated project standardization
|
|
831
|
+
|
|
832
|
+
These projects demonstrate that with clear structure and standards, AI agents can consistently deliver high-quality code and documentation.
|
|
833
|
+
|
|
773
834
|
## License
|
|
774
835
|
|
|
775
836
|
Apache License 2.0 © HiveLLM Team
|
|
776
837
|
|
|
777
838
|
---
|
|
778
839
|
|
|
779
|
-
**Links**: [Issues](https://github.com/hivellm/rulebook/issues) • [Discussions](https://github.com/hivellm/rulebook/discussions)
|
|
840
|
+
**Links**: [Issues](https://github.com/hivellm/rulebook/issues) • [Discussions](https://github.com/hivellm/rulebook/discussions) • [Ralph](https://github.com/snarktank/ralph) • [OpenSpec](https://github.com/Fission-AI/openspec)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { IterationResult } from '../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Parses AI agent output to extract task completion status,
|
|
4
|
+
* quality metrics, and learnings for Ralph iteration tracking
|
|
5
|
+
*/
|
|
6
|
+
export declare class RalphParser {
|
|
7
|
+
/**
|
|
8
|
+
* Parse agent output and extract iteration result
|
|
9
|
+
*/
|
|
10
|
+
static parseAgentOutput(agentOutput: string, iterationNum: number, taskId: string, taskTitle: string, tool: 'claude' | 'amp' | 'gemini'): IterationResult;
|
|
11
|
+
/**
|
|
12
|
+
* Extract quality check results from agent output
|
|
13
|
+
*/
|
|
14
|
+
private static extractQualityChecks;
|
|
15
|
+
/**
|
|
16
|
+
* Determine overall iteration status
|
|
17
|
+
*/
|
|
18
|
+
private static determineStatus;
|
|
19
|
+
/**
|
|
20
|
+
* Extract learnings and insights from output
|
|
21
|
+
*/
|
|
22
|
+
private static extractLearnings;
|
|
23
|
+
/**
|
|
24
|
+
* Extract errors from output
|
|
25
|
+
*/
|
|
26
|
+
private static extractErrors;
|
|
27
|
+
/**
|
|
28
|
+
* Extract git commit hash from output
|
|
29
|
+
*/
|
|
30
|
+
private static extractGitCommit;
|
|
31
|
+
/**
|
|
32
|
+
* Generate summary from agent output
|
|
33
|
+
*/
|
|
34
|
+
private static generateSummary;
|
|
35
|
+
/**
|
|
36
|
+
* Count context loss events in output
|
|
37
|
+
*/
|
|
38
|
+
private static countContextLoss;
|
|
39
|
+
/**
|
|
40
|
+
* Check if iteration completion is detected
|
|
41
|
+
*/
|
|
42
|
+
private static isCompletionDetected;
|
|
43
|
+
/**
|
|
44
|
+
* Helper: Check if output contains keyword (case-insensitive)
|
|
45
|
+
*/
|
|
46
|
+
private static hasKeyword;
|
|
47
|
+
/**
|
|
48
|
+
* Helper: Check if output contains percentage >= threshold
|
|
49
|
+
*/
|
|
50
|
+
private static hasPercentageAbove;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=ralph-parser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ralph-parser.d.ts","sourceRoot":"","sources":["../../src/agents/ralph-parser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C;;;GAGG;AACH,qBAAa,WAAW;IACtB;;OAEG;IACH,MAAM,CAAC,gBAAgB,CACrB,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,QAAQ,GAAG,KAAK,GAAG,QAAQ,GAChC,eAAe;IA4ClB;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAuDnC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,eAAe;IAwB9B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAgC/B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,aAAa;IA4B5B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAgB/B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,eAAe;IAiB9B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAiB/B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAenC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,UAAU;IAMzB;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,kBAAkB;CAYlC"}
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parses AI agent output to extract task completion status,
|
|
3
|
+
* quality metrics, and learnings for Ralph iteration tracking
|
|
4
|
+
*/
|
|
5
|
+
export class RalphParser {
|
|
6
|
+
/**
|
|
7
|
+
* Parse agent output and extract iteration result
|
|
8
|
+
*/
|
|
9
|
+
static parseAgentOutput(agentOutput, iterationNum, taskId, taskTitle, tool) {
|
|
10
|
+
const startTime = Date.now();
|
|
11
|
+
// Extract quality check results
|
|
12
|
+
const qualityChecks = this.extractQualityChecks(agentOutput);
|
|
13
|
+
// Determine success/partial/failed status
|
|
14
|
+
const status = this.determineStatus(qualityChecks);
|
|
15
|
+
// Extract learnings and errors
|
|
16
|
+
const learnings = this.extractLearnings(agentOutput);
|
|
17
|
+
const errors = this.extractErrors(agentOutput);
|
|
18
|
+
// Extract git commit hash if present
|
|
19
|
+
const gitCommit = this.extractGitCommit(agentOutput);
|
|
20
|
+
// Generate summary from output
|
|
21
|
+
const summary = this.generateSummary(agentOutput, status);
|
|
22
|
+
// Calculate execution time (placeholder - would be from actual execution)
|
|
23
|
+
const executionTime = Date.now() - startTime;
|
|
24
|
+
const result = {
|
|
25
|
+
iteration: iterationNum,
|
|
26
|
+
timestamp: new Date().toISOString(),
|
|
27
|
+
task_id: taskId,
|
|
28
|
+
task_title: taskTitle,
|
|
29
|
+
status,
|
|
30
|
+
ai_tool: tool,
|
|
31
|
+
execution_time_ms: executionTime,
|
|
32
|
+
quality_checks: qualityChecks,
|
|
33
|
+
output_summary: summary,
|
|
34
|
+
git_commit: gitCommit,
|
|
35
|
+
learnings,
|
|
36
|
+
errors,
|
|
37
|
+
metadata: {
|
|
38
|
+
context_loss_count: this.countContextLoss(agentOutput),
|
|
39
|
+
parsed_completion: this.isCompletionDetected(agentOutput),
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
return result;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Extract quality check results from agent output
|
|
46
|
+
*/
|
|
47
|
+
static extractQualityChecks(output) {
|
|
48
|
+
const lowerOutput = output.toLowerCase();
|
|
49
|
+
// Look for quality gate indicators
|
|
50
|
+
const typeCheckPass = this.hasKeyword(lowerOutput, ['type-check', 'typescript', 'tsc']) &&
|
|
51
|
+
!this.hasKeyword(lowerOutput, ['error', 'failed', 'fail']);
|
|
52
|
+
const lintPass = this.hasKeyword(lowerOutput, ['eslint', 'lint']) &&
|
|
53
|
+
!this.hasKeyword(lowerOutput, [
|
|
54
|
+
'error',
|
|
55
|
+
'failed',
|
|
56
|
+
'fail',
|
|
57
|
+
'warning',
|
|
58
|
+
'problems',
|
|
59
|
+
]);
|
|
60
|
+
const testsPass = this.hasKeyword(lowerOutput, ['test', 'jest', 'vitest', 'mocha']) &&
|
|
61
|
+
this.hasKeyword(lowerOutput, [
|
|
62
|
+
'pass',
|
|
63
|
+
'passed',
|
|
64
|
+
'✓',
|
|
65
|
+
'all',
|
|
66
|
+
'success',
|
|
67
|
+
'100%',
|
|
68
|
+
]) &&
|
|
69
|
+
!this.hasKeyword(lowerOutput, ['failed', 'fail', 'error']);
|
|
70
|
+
const coveragePass = this.hasKeyword(lowerOutput, ['coverage']) &&
|
|
71
|
+
(this.hasKeyword(lowerOutput, [
|
|
72
|
+
'95%',
|
|
73
|
+
'96%',
|
|
74
|
+
'97%',
|
|
75
|
+
'98%',
|
|
76
|
+
'99%',
|
|
77
|
+
'100%',
|
|
78
|
+
]) ||
|
|
79
|
+
this.hasPercentageAbove(output, 95));
|
|
80
|
+
return {
|
|
81
|
+
type_check: typeCheckPass,
|
|
82
|
+
lint: lintPass,
|
|
83
|
+
tests: testsPass,
|
|
84
|
+
coverage_met: coveragePass,
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Determine overall iteration status
|
|
89
|
+
*/
|
|
90
|
+
static determineStatus(qualityChecks) {
|
|
91
|
+
const allPass = qualityChecks.type_check &&
|
|
92
|
+
qualityChecks.lint &&
|
|
93
|
+
qualityChecks.tests &&
|
|
94
|
+
qualityChecks.coverage_met;
|
|
95
|
+
if (allPass) {
|
|
96
|
+
return 'success';
|
|
97
|
+
}
|
|
98
|
+
const passCount = Object.values(qualityChecks).filter(Boolean).length;
|
|
99
|
+
if (passCount >= 2) {
|
|
100
|
+
return 'partial';
|
|
101
|
+
}
|
|
102
|
+
return 'failed';
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Extract learnings and insights from output
|
|
106
|
+
*/
|
|
107
|
+
static extractLearnings(output) {
|
|
108
|
+
const learnings = [];
|
|
109
|
+
// Look for key learnings markers
|
|
110
|
+
const learningsMatch = output.match(/(?:learning|insight|pattern|note)[\s:]*([^\n]+)/gi);
|
|
111
|
+
if (learningsMatch) {
|
|
112
|
+
learningsMatch.forEach((match) => {
|
|
113
|
+
const cleaned = match.replace(/^(?:learning|insight|pattern|note)[\s:]*/i, '').trim();
|
|
114
|
+
if (cleaned.length > 10 && cleaned.length < 500) {
|
|
115
|
+
learnings.push(cleaned);
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
// Extract from code comments about discoveries
|
|
120
|
+
const discoveryMatch = output.match(/(?:discovered|found|realized)[\s:]*([^\n]+)/gi);
|
|
121
|
+
if (discoveryMatch) {
|
|
122
|
+
discoveryMatch.forEach((match) => {
|
|
123
|
+
const cleaned = match
|
|
124
|
+
.replace(/^(?:discovered|found|realized)[\s:]*/i, '')
|
|
125
|
+
.trim();
|
|
126
|
+
if (cleaned.length > 10 && cleaned.length < 500) {
|
|
127
|
+
learnings.push(cleaned);
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
return learnings.slice(0, 5); // Limit to 5 learnings
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Extract errors from output
|
|
135
|
+
*/
|
|
136
|
+
static extractErrors(output) {
|
|
137
|
+
const errors = [];
|
|
138
|
+
// Look for error patterns
|
|
139
|
+
const errorMatch = output.match(/(?:error|failed|fail)[\s:]*([^\n]+)/gi);
|
|
140
|
+
if (errorMatch) {
|
|
141
|
+
errorMatch.forEach((match) => {
|
|
142
|
+
const cleaned = match.replace(/^(?:error|failed|fail)[\s:]*/i, '').trim();
|
|
143
|
+
if (cleaned.length > 5 && cleaned.length < 300) {
|
|
144
|
+
errors.push(cleaned);
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
// Look for stack traces or error codes
|
|
149
|
+
const stackMatch = output.match(/(?:Error|Exception)[\s:]*([^\n]+)/g);
|
|
150
|
+
if (stackMatch) {
|
|
151
|
+
stackMatch.forEach((match) => {
|
|
152
|
+
const cleaned = match.trim();
|
|
153
|
+
if (cleaned.length > 5 && !errors.includes(cleaned)) {
|
|
154
|
+
errors.push(cleaned);
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
return errors.slice(0, 3); // Limit to 3 errors
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Extract git commit hash from output
|
|
162
|
+
*/
|
|
163
|
+
static extractGitCommit(output) {
|
|
164
|
+
// Look for commit hashes (40 hex chars or short 7-char format)
|
|
165
|
+
const commitMatch = output.match(/\b[a-f0-9]{7,40}\b/);
|
|
166
|
+
if (commitMatch) {
|
|
167
|
+
const hash = commitMatch[0];
|
|
168
|
+
// Verify it looks like a commit hash (after 'commit' keyword)
|
|
169
|
+
if (output.toLowerCase().includes('commit') &&
|
|
170
|
+
output.includes(hash)) {
|
|
171
|
+
return hash;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
return undefined;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Generate summary from agent output
|
|
178
|
+
*/
|
|
179
|
+
static generateSummary(output, status) {
|
|
180
|
+
// Get first 300 chars of meaningful content
|
|
181
|
+
const lines = output
|
|
182
|
+
.split('\n')
|
|
183
|
+
.filter((l) => l.trim().length > 20)
|
|
184
|
+
.slice(0, 3);
|
|
185
|
+
let summary = lines.join(' ').substring(0, 300);
|
|
186
|
+
// Add status if not already present
|
|
187
|
+
if (!summary.toLowerCase().includes(status)) {
|
|
188
|
+
summary = `[${status.toUpperCase()}] ${summary}`;
|
|
189
|
+
}
|
|
190
|
+
return summary;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Count context loss events in output
|
|
194
|
+
*/
|
|
195
|
+
static countContextLoss(output) {
|
|
196
|
+
const contextLossPatterns = [
|
|
197
|
+
/context.*loss/gi,
|
|
198
|
+
/context.*window/gi,
|
|
199
|
+
/ran out of.*context/gi,
|
|
200
|
+
/context.*exceeded/gi,
|
|
201
|
+
];
|
|
202
|
+
let count = 0;
|
|
203
|
+
for (const pattern of contextLossPatterns) {
|
|
204
|
+
const matches = output.match(pattern) || [];
|
|
205
|
+
count += matches.length;
|
|
206
|
+
}
|
|
207
|
+
return Math.min(count, 10); // Cap at 10
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Check if iteration completion is detected
|
|
211
|
+
*/
|
|
212
|
+
static isCompletionDetected(output) {
|
|
213
|
+
const completionKeywords = [
|
|
214
|
+
'complete',
|
|
215
|
+
'done',
|
|
216
|
+
'finished',
|
|
217
|
+
'success',
|
|
218
|
+
'implemented',
|
|
219
|
+
'deployed',
|
|
220
|
+
'committed',
|
|
221
|
+
];
|
|
222
|
+
const lowerOutput = output.toLowerCase();
|
|
223
|
+
return completionKeywords.some((kw) => lowerOutput.includes(kw));
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Helper: Check if output contains keyword (case-insensitive)
|
|
227
|
+
*/
|
|
228
|
+
static hasKeyword(output, keywords) {
|
|
229
|
+
return keywords.some((kw) => output.toLowerCase().includes(kw.toLowerCase()));
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Helper: Check if output contains percentage >= threshold
|
|
233
|
+
*/
|
|
234
|
+
static hasPercentageAbove(output, threshold) {
|
|
235
|
+
// eslint-disable-next-line no-useless-escape
|
|
236
|
+
const percentMatches = output.match(/(\d+(?:\.\d+)?)%/g);
|
|
237
|
+
if (!percentMatches) {
|
|
238
|
+
return false;
|
|
239
|
+
}
|
|
240
|
+
return percentMatches.some((match) => {
|
|
241
|
+
const percent = parseFloat(match);
|
|
242
|
+
return percent >= threshold;
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
//# sourceMappingURL=ralph-parser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ralph-parser.js","sourceRoot":"","sources":["../../src/agents/ralph-parser.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,OAAO,WAAW;IACtB;;OAEG;IACH,MAAM,CAAC,gBAAgB,CACrB,WAAmB,EACnB,YAAoB,EACpB,MAAc,EACd,SAAiB,EACjB,IAAiC;QAEjC,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QAE7B,gCAAgC;QAChC,MAAM,aAAa,GAAG,IAAI,CAAC,oBAAoB,CAAC,WAAW,CAAC,CAAC;QAE7D,0CAA0C;QAC1C,MAAM,MAAM,GAAG,IAAI,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;QAEnD,+BAA+B;QAC/B,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;QACrD,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;QAE/C,qCAAqC;QACrC,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;QAErD,+BAA+B;QAC/B,MAAM,OAAO,GAAG,IAAI,CAAC,eAAe,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;QAE1D,0EAA0E;QAC1E,MAAM,aAAa,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS,CAAC;QAE7C,MAAM,MAAM,GAAoB;YAC9B,SAAS,EAAE,YAAY;YACvB,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACnC,OAAO,EAAE,MAAM;YACf,UAAU,EAAE,SAAS;YACrB,MAAM;YACN,OAAO,EAAE,IAAI;YACb,iB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E,QAAkB;QAC1D,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAC1B,MAAM,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,WAAW,EAAE,CAAC,CAChD,CAAC;IACJ,CAAC;IAED;;OAEG;IACK,MAAM,CAAC,kBAAkB,CAAC,MAAc,EAAE,SAAiB;QACjE,6CAA6C;QAC7C,MAAM,cAAc,GAAG,MAAM,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;QACzD,IAAI,CAAC,cAAc,EAAE,CAAC;YACpB,OAAO,KAAK,CAAC;QACf,CAAC;QAED,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE;YACnC,MAAM,OAAO,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;YAClC,OAAO,OAAO,IAAI,SAAS,CAAC;QAC9B,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/dist/cli/commands.d.ts
CHANGED
|
@@ -100,4 +100,17 @@ export declare function memoryExportCommand(options: {
|
|
|
100
100
|
format?: string;
|
|
101
101
|
output?: string;
|
|
102
102
|
}): Promise<void>;
|
|
103
|
+
export declare function ralphInitCommand(): Promise<void>;
|
|
104
|
+
export declare function ralphRunCommand(options: {
|
|
105
|
+
maxIterations?: number;
|
|
106
|
+
tool?: 'claude' | 'amp' | 'gemini';
|
|
107
|
+
}): Promise<void>;
|
|
108
|
+
export declare function ralphStatusCommand(): Promise<void>;
|
|
109
|
+
export declare function ralphHistoryCommand(options: {
|
|
110
|
+
limit?: number;
|
|
111
|
+
}): Promise<void>;
|
|
112
|
+
export declare function ralphPauseCommand(): Promise<void>;
|
|
113
|
+
export declare function ralphResumeCommand(): Promise<void>;
|
|
114
|
+
export declare function setupClaudeCodePlugin(): Promise<void>;
|
|
115
|
+
export declare function migrateMemoryDirectory(): Promise<void>;
|
|
103
116
|
//# sourceMappingURL=commands.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/cli/commands.ts"],"names":[],"mappings":"AA8DA,wBAAsB,WAAW,CAAC,OAAO,EAAE;IACzC,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../src/cli/commands.ts"],"names":[],"mappings":"AA8DA,wBAAsB,WAAW,CAAC,OAAO,EAAE;IACzC,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,GAAG,OAAO,CAAC,IAAI,CAAC,CAkWhB;AAED,wBAAsB,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC,CA8DrD;AAED,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC,CAyCtD;AAED,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC,CA6DtD;AAED,wBAAsB,oBAAoB,CAAC,OAAO,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAuDzF;AAED,wBAAsB,mBAAmB,CAAC,OAAO,EAAE;IAAE,GAAG,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA8CnF;AAED,wBAAsB,cAAc,CAAC,OAAO,EAAE;IAC5C,IAAI,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;CACnC,GAAG,OAAO,CAAC,IAAI,CAAC,CAoChB;AAED,wBAAsB,gBAAgB,CAAC,OAAO,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CA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