@chongyan/autospec 1.0.1 → 1.0.3
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 +242 -21
- package/README.md +54 -476
- package/dist/README.md +54 -0
- package/dist/adapters/claude-code/README.md.enc +6 -0
- package/dist/adapters/claude-code/agents.js +1 -0
- package/dist/adapters/claude-code/commands.config.js +1 -0
- package/dist/adapters/claude-code/commands.js +1 -0
- package/dist/adapters/claude-code/hooks.config.js +2 -0
- package/dist/adapters/claude-code/hooks.js +1 -0
- package/dist/adapters/claude-code/install.js +1 -0
- package/dist/adapters/claude-code/skills.js +1 -0
- package/dist/adapters/codex/README.md.enc +6 -0
- package/dist/adapters/codex/hooks/pre-commit.sh +10 -0
- package/dist/adapters/codex/install.js +1 -0
- package/dist/adapters/codex/prompts/env-learn.md.enc +6 -0
- package/dist/adapters/codex/prompts/review.md.enc +6 -0
- package/dist/adapters/codex/wrappers/autospec-cli.sh +118 -0
- package/dist/adapters/codex/wrappers/parallel.sh +20 -0
- package/dist/adapters/codex/wrappers/post-task.sh +138 -0
- package/dist/bin/autospec.js +2 -0
- package/dist/knowledge/README.en.md.enc +6 -0
- package/dist/knowledge/README.md.enc +6 -0
- package/dist/knowledge/change-management.md.enc +6 -0
- package/dist/knowledge/cognition-engine.md.enc +6 -0
- package/dist/knowledge/config/baseline-permissions.md.enc +6 -0
- package/dist/knowledge/config/external-mounts.yaml.enc +6 -0
- package/dist/knowledge/config/model-profiles.yaml.enc +6 -0
- package/dist/knowledge/config/role-composition.yaml.enc +6 -0
- package/dist/knowledge/config/token-optimization.yaml.enc +6 -0
- package/dist/knowledge/config/validation-patterns.yaml.enc +6 -0
- package/dist/knowledge/constitution.md.enc +6 -0
- package/dist/knowledge/core-rules.md.enc +6 -0
- package/dist/knowledge/environment/adapters/README.md.enc +6 -0
- package/dist/knowledge/environment/detection-patterns.yaml.enc +6 -0
- package/dist/knowledge/environment/failure-patterns.json +223 -0
- package/dist/knowledge/environment/repair-strategies.json +206 -0
- package/dist/knowledge/memory/README.md.enc +6 -0
- package/dist/knowledge/memory/field/README.md.enc +6 -0
- package/dist/knowledge/memory/project/decisions/README.md.enc +6 -0
- package/dist/knowledge/memory/project/evolution-log.md.enc +6 -0
- package/dist/knowledge/memory/project/health-metrics.md.enc +6 -0
- package/dist/knowledge/memory/team/best-practices.md.enc +6 -0
- package/dist/knowledge/pipeline/code.md.enc +6 -0
- package/dist/knowledge/pipeline/explore.md.enc +6 -0
- package/dist/knowledge/pipeline/plan.md.enc +6 -0
- package/dist/knowledge/pipeline/protocol.md.enc +6 -0
- package/dist/knowledge/protocol/capabilities.yaml.enc +6 -0
- package/dist/knowledge/protocol/evolve-integration.md.enc +6 -0
- package/dist/knowledge/skills/README.md.enc +6 -0
- package/dist/knowledge/skills/adversarial-review.md.enc +6 -0
- package/dist/knowledge/skills/analyze-requirement.md.enc +6 -0
- package/dist/knowledge/skills/channel-operations.md.enc +6 -0
- package/dist/knowledge/skills/content-operations.md.enc +6 -0
- package/dist/knowledge/skills/content-prompts.md.enc +6 -0
- package/dist/knowledge/skills/conversion-optimization.md.enc +6 -0
- package/dist/knowledge/skills/data-operations.md.enc +6 -0
- package/dist/knowledge/skills/design-solution.md.enc +6 -0
- package/dist/knowledge/skills/growth-strategies.md.enc +6 -0
- package/dist/knowledge/skills/implement-code.md.enc +6 -0
- package/dist/knowledge/skills/knowledge-distill.md.enc +6 -0
- package/dist/knowledge/skills/parallel-dev.md.enc +6 -0
- package/dist/knowledge/skills/private-domain-traffic.md.enc +6 -0
- package/dist/knowledge/skills/skill-format.md.enc +6 -0
- package/dist/knowledge/skills/social-commerce.md.enc +6 -0
- package/dist/knowledge/skills/team-orchestration.md.enc +6 -0
- package/dist/knowledge/skills/unified-review.md.enc +6 -0
- package/dist/knowledge/skills/user-operations.md.enc +6 -0
- package/dist/knowledge/templates/autospec-config.yaml.enc +6 -0
- package/dist/knowledge/templates/smoke-test.md.enc +6 -0
- package/dist/knowledge/templates/spec/SPEC.md.enc +6 -0
- package/dist/knowledge/templates/spec/layers/delta.md.enc +6 -0
- package/dist/knowledge/templates/spec/layers/how.md.enc +6 -0
- package/dist/knowledge/templates/spec/layers/plan.md.enc +6 -0
- package/dist/knowledge/templates/spec/layers/what.md.enc +6 -0
- package/dist/knowledge/templates/spec/layers/why.md.enc +6 -0
- package/dist/knowledge/templates/wiki/catalog.yaml.enc +6 -0
- package/dist/knowledge/templates/wiki/content.md.enc +6 -0
- package/dist/knowledge/templates/wiki/meta.yaml.enc +6 -0
- package/dist/package.json +62 -0
- package/dist/plugins/.claude-plugin/plugin.json +671 -0
- package/dist/plugins/agents/roles/ai-engineer.md.enc +6 -0
- package/dist/plugins/agents/roles/backend-engineer.md.enc +6 -0
- package/dist/plugins/agents/roles/ceo.md.enc +6 -0
- package/dist/plugins/agents/roles/channel-ops.md.enc +6 -0
- package/dist/plugins/agents/roles/content-ops.md.enc +6 -0
- package/dist/plugins/agents/roles/conversion-ops.md.enc +6 -0
- package/dist/plugins/agents/roles/data-engineer.md.enc +6 -0
- package/dist/plugins/agents/roles/data-ops.md.enc +6 -0
- package/dist/plugins/agents/roles/devops-engineer.md.enc +6 -0
- package/dist/plugins/agents/roles/frontend-engineer.md.enc +6 -0
- package/dist/plugins/agents/roles/marketing-director.md.enc +6 -0
- package/dist/plugins/agents/roles/operations-director.md.enc +6 -0
- package/dist/plugins/agents/roles/private-traffic.md.enc +6 -0
- package/dist/plugins/agents/roles/product-owner.md.enc +6 -0
- package/dist/plugins/agents/roles/quality-engineer.md.enc +6 -0
- package/dist/plugins/agents/roles/security-engineer.md.enc +6 -0
- package/dist/plugins/agents/roles/tech-lead.md.enc +6 -0
- package/dist/plugins/agents/roles/user-ops.md.enc +6 -0
- package/dist/plugins/agents/support/blind-comparator.md.enc +6 -0
- package/dist/plugins/agents/support/consistency-checker.md.enc +6 -0
- package/dist/plugins/agents/support/experiment-evaluator.md.enc +6 -0
- package/dist/plugins/agents/support/failure-diagnostician.md.enc +6 -0
- package/dist/plugins/agents/support/independent-reviewer.md.enc +6 -0
- package/dist/plugins/agents/support/memory-curator.md.enc +6 -0
- package/dist/plugins/agents/support/monitoring-agent.md.enc +6 -0
- package/dist/plugins/agents/support/safety-auditor.md.enc +6 -0
- package/dist/plugins/agents/support/skill-benchmarker.md.enc +6 -0
- package/dist/plugins/agents/support/skill-forger.md.enc +6 -0
- package/dist/plugins/agents/support/stage-gate-evaluator.md.enc +6 -0
- package/dist/plugins/agents/support/team-orchestrator.md.enc +6 -0
- package/dist/plugins/agents/support/test-coverage-reviewer.md.enc +6 -0
- package/dist/plugins/benchmarks/templates/README.en.md.enc +6 -0
- package/dist/plugins/benchmarks/templates/README.md.enc +6 -0
- package/dist/plugins/benchmarks/templates/commands/code-template.yaml.enc +6 -0
- package/dist/plugins/benchmarks/templates/commands/explore-template.yaml.enc +6 -0
- package/dist/plugins/benchmarks/templates/commands/field-evolve-template.yaml.enc +6 -0
- package/dist/plugins/benchmarks/templates/commands/plan-template.yaml.enc +6 -0
- package/dist/plugins/benchmarks/templates/commands/project-evolve-template.yaml.enc +6 -0
- package/dist/plugins/benchmarks/templates/commands/review-template.yaml.enc +6 -0
- package/dist/plugins/benchmarks/templates/commands/run-template.yaml.enc +6 -0
- package/dist/plugins/benchmarks/templates/skills/benchmark-executor-template.yaml.enc +6 -0
- package/dist/plugins/benchmarks/templates/skills/benchmark-generator-template.yaml.enc +6 -0
- package/dist/plugins/benchmarks/templates/skills/delivery-stage-template.yaml.enc +6 -0
- package/dist/plugins/benchmarks/templates/skills/design-stage-template.yaml.enc +6 -0
- package/dist/plugins/benchmarks/templates/skills/exploration-phase-template.yaml.enc +6 -0
- package/dist/plugins/benchmarks/templates/skills/field-evolve-analyzer-template.yaml.enc +6 -0
- package/dist/plugins/benchmarks/templates/skills/field-evolve-distiller-template.yaml.enc +6 -0
- package/dist/plugins/benchmarks/templates/skills/field-evolve-executor-template.yaml.enc +6 -0
- package/dist/plugins/benchmarks/templates/skills/field-evolve-fixer-template.yaml.enc +6 -0
- package/dist/plugins/benchmarks/templates/skills/field-evolve-learner-template.yaml.enc +6 -0
- package/dist/plugins/benchmarks/templates/skills/field-evolve-scanner-template.yaml.enc +6 -0
- package/dist/plugins/benchmarks/templates/skills/field-evolve-template.yaml.enc +6 -0
- package/dist/plugins/benchmarks/templates/skills/field-evolve-verifier-template.yaml.enc +6 -0
- package/dist/plugins/benchmarks/templates/skills/implementation-stage-template.yaml.enc +6 -0
- package/dist/plugins/benchmarks/templates/skills/layer1-validation-template.yaml.enc +6 -0
- package/dist/plugins/benchmarks/templates/skills/project-evolve-analyzer-template.yaml.enc +6 -0
- package/dist/plugins/benchmarks/templates/skills/project-evolve-fixer-template.yaml.enc +6 -0
- package/dist/plugins/benchmarks/templates/skills/project-evolve-generator-template.yaml.enc +6 -0
- package/dist/plugins/benchmarks/templates/skills/project-evolve-learner-template.yaml.enc +6 -0
- package/dist/plugins/benchmarks/templates/skills/project-evolve-reviewer-template.yaml.enc +6 -0
- package/dist/plugins/benchmarks/templates/skills/project-evolve-scanner-template.yaml.enc +6 -0
- package/dist/plugins/benchmarks/templates/skills/project-evolve-template.yaml.enc +6 -0
- package/dist/plugins/benchmarks/templates/skills/project-evolve-verifier-template.yaml.enc +6 -0
- package/dist/plugins/benchmarks/templates/skills/requirement-analyzer-template.yaml.enc +6 -0
- package/dist/plugins/benchmarks/templates/skills/skill-forge-template.yaml.enc +6 -0
- package/dist/plugins/benchmarks/templates/skills/startup-guard-template.yaml.enc +6 -0
- package/dist/plugins/benchmarks/templates/skills/testing-stage-template.yaml.enc +6 -0
- package/dist/plugins/commands/README.en.md.enc +6 -0
- package/dist/plugins/commands/README.md.enc +6 -0
- package/dist/plugins/commands/automation.md.enc +6 -0
- package/dist/plugins/commands/code.md.enc +6 -0
- package/dist/plugins/commands/contribute.md.enc +6 -0
- package/dist/plugins/commands/dashboard.md.enc +6 -0
- package/dist/plugins/commands/env.md.enc +6 -0
- package/dist/plugins/commands/explore.md.enc +6 -0
- package/dist/plugins/commands/field-evolve.md.enc +6 -0
- package/dist/plugins/commands/global.md.enc +6 -0
- package/dist/plugins/commands/init.md.enc +6 -0
- package/dist/plugins/commands/list.md.enc +6 -0
- package/dist/plugins/commands/memory.md.enc +6 -0
- package/dist/plugins/commands/monitor.md.enc +6 -0
- package/dist/plugins/commands/org.md.enc +6 -0
- package/dist/plugins/commands/persist.md.enc +6 -0
- package/dist/plugins/commands/plan.md.enc +6 -0
- package/dist/plugins/commands/plugin.md.enc +6 -0
- package/dist/plugins/commands/project-evolve.md.enc +6 -0
- package/dist/plugins/commands/review.md.enc +6 -0
- package/dist/plugins/commands/run.md.enc +6 -0
- package/dist/plugins/commands/status.md.enc +6 -0
- package/dist/plugins/commands/sync.md.enc +6 -0
- package/dist/plugins/commands/update.md.enc +6 -0
- package/dist/plugins/env-capabilities/env-core/plugin.json +33 -0
- package/dist/plugins/hooks/README.en.md.enc +6 -0
- package/dist/plugins/hooks/README.md.enc +6 -0
- package/dist/plugins/hooks/artifact-evaluation-hook.js +2 -0
- package/dist/plugins/hooks/cognitive-dreamer.js +2 -0
- package/dist/plugins/hooks/cognitive-sync.js +2 -0
- package/dist/plugins/hooks/cognitive-tracker.js +2 -0
- package/dist/plugins/hooks/config/detection-patterns.yaml.enc +6 -0
- package/dist/plugins/hooks/constitution-guard.js +2 -0
- package/dist/plugins/hooks/do-review-separation-guard.js +2 -0
- package/dist/plugins/hooks/environment-autocommit.js +2 -0
- package/dist/plugins/hooks/environment-doctor.js +1 -0
- package/dist/plugins/hooks/environment-startup-scan.js +2 -0
- package/dist/plugins/hooks/execution-tracker.js +2 -0
- package/dist/plugins/hooks/frozen-zone-guard.js +2 -0
- package/dist/plugins/hooks/layer1-validator.js +2 -0
- package/dist/plugins/hooks/lib/artifact-evaluator.js +1 -0
- package/dist/plugins/hooks/lib/auto-fix-loop.js +1 -0
- package/dist/plugins/hooks/lib/benchmarks/change-detector.js +1 -0
- package/dist/plugins/hooks/lib/benchmarks/evaluator.js +1 -0
- package/dist/plugins/hooks/lib/benchmarks/integration-example.js +1 -0
- package/dist/plugins/hooks/lib/cognitive/adaptive-matcher.js +1 -0
- package/dist/plugins/hooks/lib/cognitive/base-store.js +1 -0
- package/dist/plugins/hooks/lib/cognitive/causal-engine.js +1 -0
- package/dist/plugins/hooks/lib/cognitive/cognitive-config.js +1 -0
- package/dist/plugins/hooks/lib/cognitive/cognitive-fingerprint.js +1 -0
- package/dist/plugins/hooks/lib/cognitive/collective-sync.js +1 -0
- package/dist/plugins/hooks/lib/cognitive/confidence-engine.js +1 -0
- package/dist/plugins/hooks/lib/cognitive/dream-engine.js +1 -0
- package/dist/plugins/hooks/lib/cognitive/episodic-store.js +1 -0
- package/dist/plugins/hooks/lib/cognitive/index.js +1 -0
- package/dist/plugins/hooks/lib/cognitive/kernel.js +1 -0
- package/dist/plugins/hooks/lib/cognitive/knowledge-distiller.js +1 -0
- package/dist/plugins/hooks/lib/cognitive/memory-transport.js +1 -0
- package/dist/plugins/hooks/lib/cognitive/persistence-manager.js +1 -0
- package/dist/plugins/hooks/lib/cognitive/priority-store.js +1 -0
- package/dist/plugins/hooks/lib/cognitive/procedural-store.js +1 -0
- package/dist/plugins/hooks/lib/cognitive/semantic-store.js +1 -0
- package/dist/plugins/hooks/lib/cognitive/skill-tuner.js +1 -0
- package/dist/plugins/hooks/lib/cognitive/wiki-materializer.js +1 -0
- package/dist/plugins/hooks/lib/detection-pattern-loader.js +1 -0
- package/dist/plugins/hooks/lib/directory-discovery.js +1 -0
- package/dist/plugins/hooks/lib/environment-capability-package.js +1 -0
- package/dist/plugins/hooks/lib/environment-capability-probe.js +1 -0
- package/dist/plugins/hooks/lib/environment-config-loader.js +1 -0
- package/dist/plugins/hooks/lib/environment-executor.js +1 -0
- package/dist/plugins/hooks/lib/environment-feedback.js +1 -0
- package/dist/plugins/hooks/lib/environment-health-monitor.js +1 -0
- package/dist/plugins/hooks/lib/environment-knowledge-synthesizer.js +1 -0
- package/dist/plugins/hooks/lib/environment-knowledge-validator.js +1 -0
- package/dist/plugins/hooks/lib/environment-learning-discoverer.js +1 -0
- package/dist/plugins/hooks/lib/environment-learning-engine.js +1 -0
- package/dist/plugins/hooks/lib/environment-module-repository.js +1 -0
- package/dist/plugins/hooks/lib/environment-planner.js +1 -0
- package/dist/plugins/hooks/lib/environment-plugin-registry.js +1 -0
- package/dist/plugins/hooks/lib/environment-readiness.js +1 -0
- package/dist/plugins/hooks/lib/environment-route-ranking.js +1 -0
- package/dist/plugins/hooks/lib/environment-strategy-overlay.js +1 -0
- package/dist/plugins/hooks/lib/execution-path.js +1 -0
- package/dist/plugins/hooks/lib/external-mount-adapter.js +1 -0
- package/dist/plugins/hooks/lib/external-scanner.js +1 -0
- package/dist/plugins/hooks/lib/hook-error-recorder.js +1 -0
- package/dist/plugins/hooks/lib/hook-logger.js +1 -0
- package/dist/plugins/hooks/lib/hook-runner.js +2 -0
- package/dist/plugins/hooks/lib/hook-state-manager.js +1 -0
- package/dist/plugins/hooks/lib/memory-extractor.js +1 -0
- package/dist/plugins/hooks/lib/memory-manager.js +1 -0
- package/dist/plugins/hooks/lib/metrics-analyzer.js +1 -0
- package/dist/plugins/hooks/lib/mount-manager.js +1 -0
- package/dist/plugins/hooks/lib/plugin-activation-registry.js +1 -0
- package/dist/plugins/hooks/lib/plugin-selector.js +1 -0
- package/dist/plugins/hooks/lib/plugin-source-registry.js +1 -0
- package/dist/plugins/hooks/lib/plugin-workspace-registry.js +1 -0
- package/dist/plugins/hooks/lib/project-evolution/auto-fixer.js +1 -0
- package/dist/plugins/hooks/lib/project-evolution/memory-manager.js +1 -0
- package/dist/plugins/hooks/lib/project-evolution/pattern-detector.js +1 -0
- package/dist/plugins/hooks/lib/project-evolution/semantic-indexer.js +1 -0
- package/dist/plugins/hooks/lib/rollback-tracker.js +1 -0
- package/dist/plugins/hooks/lib/source-code-scanner.js +1 -0
- package/dist/plugins/hooks/lib/technology-stack-detector.js +1 -0
- package/dist/plugins/hooks/lib/test-failure-analyzer.js +1 -0
- package/dist/plugins/hooks/lib/test-failure-fixer.js +1 -0
- package/dist/plugins/hooks/lib/trace-context.js +1 -0
- package/dist/plugins/hooks/lib/validation-patterns.js +1 -0
- package/dist/plugins/hooks/memory-sync.js +1 -0
- package/dist/plugins/hooks/pipeline-observer.js +2 -0
- package/dist/plugins/hooks/retry-limit-guard.js +2 -0
- package/dist/plugins/hooks/scope-sentinel.js +2 -0
- package/dist/plugins/hooks/secret-scanner.js +2 -0
- package/dist/plugins/hooks/stop-evolve-prompt.js +1 -0
- package/dist/plugins/hooks/trace-initialization.js +2 -0
- package/dist/plugins/hooks/version-checker.js +2 -0
- package/dist/plugins/memory/templates/code-quality.yaml.enc +6 -0
- package/dist/plugins/memory/templates/multi-system.yaml.enc +6 -0
- package/dist/plugins/memory/templates/team-habits.yaml.enc +6 -0
- package/dist/plugins/memory/templates/testing.yaml.enc +6 -0
- package/dist/plugins/skills/README.en.md.enc +6 -0
- package/dist/plugins/skills/README.md.enc +6 -0
- package/dist/plugins/skills/ab-test-executor/SKILL.md.enc +6 -0
- package/dist/plugins/skills/benchmark-executor/SKILL.md.enc +6 -0
- package/dist/plugins/skills/benchmark-generator/SKILL.md.enc +6 -0
- package/dist/plugins/skills/content-prompts/SKILL.md.enc +6 -0
- package/dist/plugins/skills/delivery-stage/SKILL.md.enc +6 -0
- package/dist/plugins/skills/design-stage/SKILL.md.enc +6 -0
- package/dist/plugins/skills/environment-learning/SKILL.md.enc +6 -0
- package/dist/plugins/skills/environment-resilience/build-failure-doctor.md.enc +6 -0
- package/dist/plugins/skills/environment-resilience/environment-repair.md.enc +6 -0
- package/dist/plugins/skills/environment-resilience/pre-flight-check.md.enc +6 -0
- package/dist/plugins/skills/experiment-evaluator/SKILL.md.enc +6 -0
- package/dist/plugins/skills/exploration-phase/SKILL.md.enc +6 -0
- package/dist/plugins/skills/field-evolve-analyzer/SKILL.md.enc +6 -0
- package/dist/plugins/skills/field-evolve-distiller/SKILL.md.enc +6 -0
- package/dist/plugins/skills/field-evolve-executor/SKILL.md.enc +6 -0
- package/dist/plugins/skills/field-evolve-executor/executor.js +2 -0
- package/dist/plugins/skills/field-evolve-fixer/SKILL.md.enc +6 -0
- package/dist/plugins/skills/field-evolve-learner/SKILL.md.enc +6 -0
- package/dist/plugins/skills/field-evolve-scanner/SKILL.md.enc +6 -0
- package/dist/plugins/skills/field-evolve-scanner/scripts/fallback-scanner.js +2 -0
- package/dist/plugins/skills/field-evolve-verifier/SKILL.md.enc +6 -0
- package/dist/plugins/skills/heartbeat-monitor/SKILL.md.enc +6 -0
- package/dist/plugins/skills/implementation-stage/SKILL.md.enc +6 -0
- package/dist/plugins/skills/layer1-validation/SKILL.md.enc +6 -0
- package/dist/plugins/skills/multi-role-orchestration/SKILL.md.enc +6 -0
- package/dist/plugins/skills/ops-content-marketing/SKILL.md.enc +6 -0
- package/dist/plugins/skills/ops-conversion/SKILL.md.enc +6 -0
- package/dist/plugins/skills/ops-data-driven/SKILL.md.enc +6 -0
- package/dist/plugins/skills/ops-growth-strategies/SKILL.md.enc +6 -0
- package/dist/plugins/skills/ops-private-domain/SKILL.md.enc +6 -0
- package/dist/plugins/skills/ops-social-commerce/SKILL.md.enc +6 -0
- package/dist/plugins/skills/ops-user-growth/SKILL.md.enc +6 -0
- package/dist/plugins/skills/pending-dashboard/SKILL.md.enc +6 -0
- package/dist/plugins/skills/project-evolve-analyzer/SKILL.md.enc +6 -0
- package/dist/plugins/skills/project-evolve-fixer/SKILL.md.enc +6 -0
- package/dist/plugins/skills/project-evolve-generator/SKILL.md.enc +6 -0
- package/dist/plugins/skills/project-evolve-learner/SKILL.md.enc +6 -0
- package/dist/plugins/skills/project-evolve-reviewer/SKILL.md.enc +6 -0
- package/dist/plugins/skills/project-evolve-scanner/SKILL.md.enc +6 -0
- package/dist/plugins/skills/project-evolve-scanner/scripts/dependency-reuse-checker.js +2 -0
- package/dist/plugins/skills/project-evolve-scanner/scripts/subsystem-coverage.js +2 -0
- package/dist/plugins/skills/project-evolve-verifier/SKILL.md.enc +6 -0
- package/dist/plugins/skills/requirement-stage/SKILL.md.enc +6 -0
- package/dist/plugins/skills/secret-scanner/SKILL.md.enc +6 -0
- package/dist/plugins/skills/skill-forge/SKILL.md.enc +6 -0
- package/dist/plugins/skills/skill-forge/references/description-guide.md.enc +6 -0
- package/dist/plugins/skills/skill-forge/references/quality-rubric.md.enc +6 -0
- package/dist/plugins/skills/skill-forge/references/skill-template.md.enc +6 -0
- package/dist/plugins/skills/startup-guard/SKILL.md.enc +6 -0
- package/dist/plugins/skills/tdd-workflow/SKILL.md.enc +6 -0
- package/dist/plugins/skills/testing-stage/SKILL.md.enc +6 -0
- package/dist/plugins/skills/tracking-validator/SKILL.md.enc +6 -0
- package/dist/scripts/build-crypto.js +2 -0
- package/dist/scripts/cli/contribute.js +1 -0
- package/dist/scripts/cli/dashboard.js +1 -0
- package/dist/scripts/cli/env.js +1 -0
- package/dist/scripts/cli/global-init.js +1 -0
- package/dist/scripts/cli/global.js +1 -0
- package/dist/scripts/cli/index.js +1 -0
- package/dist/scripts/cli/init.js +1 -0
- package/dist/scripts/cli/list.js +1 -0
- package/dist/scripts/cli/memory.js +1 -0
- package/dist/scripts/cli/org.js +1 -0
- package/dist/scripts/cli/plugin.js +1 -0
- package/dist/scripts/cli/practice-report.js +1 -0
- package/dist/scripts/cli/runtime-governance.js +1 -0
- package/dist/scripts/cli/system.js +1 -0
- package/dist/scripts/cli/update.js +1 -0
- package/dist/scripts/commands/catalog.js +1 -0
- package/dist/scripts/commands/slash-command-docs.js +1 -0
- package/dist/scripts/config/external-mounts.config.js +2 -0
- package/dist/scripts/heartbeat/check.js +2 -0
- package/dist/scripts/heartbeat/setup-cron.js +2 -0
- package/dist/scripts/install/adapters.js +1 -0
- package/dist/scripts/install/constants.js +1 -0
- package/dist/scripts/install/file-reader.js +1 -0
- package/dist/scripts/install/index.js +1 -0
- package/dist/scripts/install/shards/constants-shard.js +1 -0
- package/dist/scripts/install/shards/crypto-config-shard.js +1 -0
- package/dist/scripts/install/shards/error-messages-shard.js +1 -0
- package/dist/scripts/install/shards/reassemble.js +1 -0
- package/dist/scripts/install/shards/utils-shard.js +1 -0
- package/dist/scripts/install/shards/version-info-shard.js +1 -0
- package/dist/scripts/postinstall.js +1 -0
- package/dist/scripts/state.js +1 -0
- package/package.json +21 -12
- package/README.en.md +0 -472
- package/bin/autospec.js +0 -3
- package/knowledge/README.md +0 -144
- package/knowledge/checklists/code.md +0 -182
- package/knowledge/checklists/design.md +0 -196
- package/knowledge/checklists/release.md +0 -70
- package/knowledge/checklists/requirement.md +0 -169
- package/knowledge/checklists/test.md +0 -46
- package/knowledge/config/README.en.md +0 -44
- package/knowledge/config/README.md +0 -44
- package/knowledge/config/role-composition.yaml +0 -98
- package/knowledge/config/role-extensions.yaml +0 -140
- package/knowledge/config/skill-compositions.yaml +0 -142
- package/knowledge/config/team-stage.yaml +0 -95
- package/knowledge/config/team-tasks.yaml +0 -139
- package/knowledge/config/team-triggers.yaml +0 -198
- package/knowledge/config/validation-patterns.yaml +0 -137
- package/knowledge/domain/README.md +0 -115
- package/knowledge/domain/flows/README.md +0 -194
- package/knowledge/domain/glossary.md +0 -143
- package/knowledge/domain/rules.md +0 -138
- package/knowledge/environment/README.en.md +0 -36
- package/knowledge/environment/README.md +0 -87
- package/knowledge/environment/component-knowledge.md +0 -316
- package/knowledge/environment/detection-patterns.yaml +0 -502
- package/knowledge/environment/middleware-knowledge.md +0 -237
- package/knowledge/environment/template-registry.md +0 -321
- package/knowledge/guides/domain-driven-design.md +0 -345
- package/knowledge/guides/knowledge-management.md +0 -369
- package/knowledge/guides/requirement-engineering.md +0 -329
- package/knowledge/guides/stages/ai-effect-evaluator.md +0 -93
- package/knowledge/guides/stages/code-implementer.md +0 -205
- package/knowledge/guides/stages/code-reviewer.md +0 -111
- package/knowledge/guides/stages/consistency-checker.md +0 -177
- package/knowledge/guides/stages/design-planner.md +0 -401
- package/knowledge/guides/stages/design-reviewer.md +0 -83
- package/knowledge/guides/stages/integration-test-runner.md +0 -105
- package/knowledge/guides/stages/release-checker.md +0 -205
- package/knowledge/guides/stages/requirement-analyzer.md +0 -195
- package/knowledge/guides/stages/requirement-reviewer.md +0 -83
- package/knowledge/guides/stages/security-reviewer.md +0 -89
- package/knowledge/guides/stages/test-context-analyzer.md +0 -250
- package/knowledge/guides/stages/test-generator.md +0 -241
- package/knowledge/guides/stages/test-planner.md +0 -183
- package/knowledge/guides/stages/test-reviewer.md +0 -76
- package/knowledge/guides/stages/unit-test-runner.md +0 -83
- package/knowledge/guides/support/ai-agent-analyzer.md +0 -362
- package/knowledge/guides/support/ai-anomaly-analyzer.md +0 -213
- package/knowledge/guides/support/ai-artifact-evaluator.md +0 -192
- package/knowledge/guides/support/ai-capability-analyzer.md +0 -193
- package/knowledge/guides/support/ai-component-analyzer.md +0 -169
- package/knowledge/guides/support/ai-data-validator.md +0 -276
- package/knowledge/guides/support/ai-evaluation-planner.md +0 -374
- package/knowledge/guides/support/ai-path-evaluator.md +0 -274
- package/knowledge/guides/support/ai-pipeline-evaluator.md +0 -219
- package/knowledge/guides/support/ai-rag-analyzer.md +0 -339
- package/knowledge/guides/support/ai-task-assessor.md +0 -418
- package/knowledge/guides/support/ai-test-diagnostics.md +0 -133
- package/knowledge/guides/support/complexity-assessor.md +0 -268
- package/knowledge/guides/support/component-discovery.md +0 -183
- package/knowledge/guides/support/environment-scanner.md +0 -207
- package/knowledge/guides/support/environment-validator.md +0 -207
- package/knowledge/guides/support/knowledge-generator.md +0 -234
- package/knowledge/guides/support/methodology-extractor.md +0 -55
- package/knowledge/guides/support/pipeline-protocol.md +0 -438
- package/knowledge/guides/support/practice-logger.md +0 -359
- package/knowledge/guides/support/scope-inference.md +0 -174
- package/knowledge/guides/support/skill-distiller.md +0 -91
- package/knowledge/guides/support/skill-updater.md +0 -45
- package/knowledge/guides/support/skill-validator.md +0 -72
- package/knowledge/guides/support/team-orchestrator.md +0 -323
- package/knowledge/guides/support/tech-stack-analyzer.md +0 -139
- package/knowledge/guides/support/test-runner.md +0 -254
- package/knowledge/guides/system-design.md +0 -352
- package/knowledge/organization/ai-native-team.md +0 -318
- package/knowledge/organization/team-metrics.md +0 -228
- package/knowledge/principles/constitution.md +0 -134
- package/knowledge/principles/core-principles.md +0 -368
- package/knowledge/principles/design-philosophy.md +0 -877
- package/knowledge/principles/evolution.md +0 -553
- package/knowledge/process/01-requirement.md +0 -113
- package/knowledge/process/02-design.md +0 -123
- package/knowledge/process/03-implementation.md +0 -90
- package/knowledge/process/04-review.md +0 -80
- package/knowledge/process/05-testing.md +0 -90
- package/knowledge/process/06-delivery.md +0 -88
- package/knowledge/process/README.en.md +0 -38
- package/knowledge/process/README.md +0 -48
- package/knowledge/process/ai-sdlc.md +0 -475
- package/knowledge/process/overview.md +0 -319
- package/knowledge/standards/code-review.md +0 -876
- package/knowledge/standards/coding-style.md +0 -940
- package/knowledge/standards/data-consistency.md +0 -1085
- package/knowledge/standards/document-versioning.md +0 -210
- package/knowledge/standards/risk-detection.md +0 -186
- package/knowledge/templates/ai-evaluation.md +0 -150
- package/knowledge/templates/api-design.md +0 -117
- package/knowledge/templates/database-design.md +0 -132
- package/knowledge/templates/domain-driven-design.md +0 -321
- package/knowledge/templates/product-proposal.md +0 -201
- package/knowledge/templates/system-design.md +0 -227
- package/knowledge/templates/task-breakdown.md +0 -107
- package/knowledge/templates/test-case.md +0 -170
- package/plugins/.claude-plugin/plugin.json +0 -134
- package/plugins/agents/roles/ai-engineer.md +0 -129
- package/plugins/agents/roles/backend-engineer.md +0 -165
- package/plugins/agents/roles/ceo.md +0 -94
- package/plugins/agents/roles/data-engineer.md +0 -135
- package/plugins/agents/roles/devops-engineer.md +0 -181
- package/plugins/agents/roles/frontend-engineer.md +0 -129
- package/plugins/agents/roles/product-owner.md +0 -98
- package/plugins/agents/roles/quality-engineer.md +0 -129
- package/plugins/agents/roles/security-engineer.md +0 -180
- package/plugins/agents/roles/tech-lead.md +0 -97
- package/plugins/agents/support/blind-comparator.md +0 -88
- package/plugins/agents/support/consistency-checker.md +0 -103
- package/plugins/agents/support/failure-diagnostician.md +0 -141
- package/plugins/agents/support/independent-reviewer.md +0 -80
- package/plugins/agents/support/safety-auditor.md +0 -121
- package/plugins/agents/support/skill-benchmarker.md +0 -86
- package/plugins/agents/support/skill-forger.md +0 -105
- package/plugins/agents/support/stage-gate-evaluator.md +0 -121
- package/plugins/agents/support/test-coverage-reviewer.md +0 -73
- package/plugins/benchmarks/templates/README.md +0 -44
- package/plugins/benchmarks/templates/commands/explore-template.yaml +0 -48
- package/plugins/benchmarks/templates/pipeline/agile-template.yaml +0 -84
- package/plugins/benchmarks/templates/pipeline/waterfall-template.yaml +0 -106
- package/plugins/benchmarks/templates/skills/requirement-analyzer-template.yaml +0 -48
- package/plugins/commands/README.en.md +0 -96
- package/plugins/commands/README.md +0 -96
- package/plugins/commands/apply.md +0 -191
- package/plugins/commands/archive.md +0 -76
- package/plugins/commands/env-export.md +0 -79
- package/plugins/commands/env-sync.md +0 -640
- package/plugins/commands/env-template.md +0 -223
- package/plugins/commands/env-update.md +0 -264
- package/plugins/commands/env-validate.md +0 -176
- package/plugins/commands/env.md +0 -79
- package/plugins/commands/explore.md +0 -76
- package/plugins/commands/field-evolve.md +0 -536
- package/plugins/commands/memory.md +0 -249
- package/plugins/commands/project-evolve.md +0 -821
- package/plugins/commands/propose.md +0 -93
- package/plugins/commands/review.md +0 -140
- package/plugins/commands/run.md +0 -224
- package/plugins/commands/status.md +0 -62
- package/plugins/commands/validate.md +0 -108
- package/plugins/hooks/README.en.md +0 -56
- package/plugins/hooks/README.md +0 -56
- package/plugins/hooks/ai-project-guard.js +0 -329
- package/plugins/hooks/artifact-evaluation-hook.js +0 -237
- package/plugins/hooks/constitution-guard.js +0 -211
- package/plugins/hooks/environment-autocommit.js +0 -264
- package/plugins/hooks/environment-manager.js +0 -778
- package/plugins/hooks/execution-tracker.js +0 -354
- package/plugins/hooks/frozen-zone-guard.js +0 -140
- package/plugins/hooks/layer1-validator.js +0 -423
- package/plugins/hooks/lib/artifact-evaluator.js +0 -414
- package/plugins/hooks/lib/benchmarks/change-detector.js +0 -390
- package/plugins/hooks/lib/benchmarks/evaluator.js +0 -605
- package/plugins/hooks/lib/benchmarks/integration-example.js +0 -169
- package/plugins/hooks/lib/data-and-ai-detector.js +0 -275
- package/plugins/hooks/lib/detection-pattern-loader.js +0 -865
- package/plugins/hooks/lib/directory-discovery.js +0 -395
- package/plugins/hooks/lib/environment-config-loader.js +0 -341
- package/plugins/hooks/lib/environment-detector.js +0 -553
- package/plugins/hooks/lib/environment-evolver.js +0 -564
- package/plugins/hooks/lib/environment-registry.js +0 -813
- package/plugins/hooks/lib/execution-path.js +0 -427
- package/plugins/hooks/lib/hook-error-recorder.js +0 -245
- package/plugins/hooks/lib/hook-logger.js +0 -538
- package/plugins/hooks/lib/hook-runner.js +0 -97
- package/plugins/hooks/lib/hook-state-manager.js +0 -480
- package/plugins/hooks/lib/memory-extractor.js +0 -377
- package/plugins/hooks/lib/memory-manager.js +0 -673
- package/plugins/hooks/lib/metrics-analyzer.js +0 -489
- package/plugins/hooks/lib/project-evolution/auto-fixer.js +0 -511
- package/plugins/hooks/lib/project-evolution/memory-manager.js +0 -346
- package/plugins/hooks/lib/project-evolution/pattern-detector.js +0 -476
- package/plugins/hooks/lib/project-evolution/semantic-indexer.js +0 -480
- package/plugins/hooks/lib/project-structure-detector.js +0 -326
- package/plugins/hooks/lib/rollback-tracker.js +0 -346
- package/plugins/hooks/lib/source-code-scanner.js +0 -596
- package/plugins/hooks/lib/technology-stack-detector.js +0 -374
- package/plugins/hooks/lib/test-failure-analyzer.js +0 -375
- package/plugins/hooks/lib/test-failure-fixer.js +0 -268
- package/plugins/hooks/lib/trace-context.js +0 -277
- package/plugins/hooks/lib/validation-patterns.js +0 -415
- package/plugins/hooks/memory-sync.js +0 -171
- package/plugins/hooks/pipeline-observer.js +0 -413
- package/plugins/hooks/scope-sentinel.js +0 -204
- package/plugins/hooks/trace-initialization.js +0 -169
- package/plugins/memory/templates/code-quality.yaml +0 -149
- package/plugins/memory/templates/multi-system.yaml +0 -155
- package/plugins/memory/templates/team-habits.yaml +0 -119
- package/plugins/memory/templates/testing.yaml +0 -121
- package/plugins/skills/README.en.md +0 -47
- package/plugins/skills/README.md +0 -104
- package/plugins/skills/benchmark-executor/README.md +0 -93
- package/plugins/skills/benchmark-executor/SKILL.md +0 -647
- package/plugins/skills/benchmark-generator/SKILL.md +0 -349
- package/plugins/skills/delivery-stage/SKILL.md +0 -203
- package/plugins/skills/design-stage/SKILL.md +0 -216
- package/plugins/skills/evolution-process/SKILL.md +0 -291
- package/plugins/skills/exploration-phase/SKILL.md +0 -133
- package/plugins/skills/implementation-stage/SKILL.md +0 -179
- package/plugins/skills/layer1-validation/SKILL.md +0 -79
- package/plugins/skills/pending-dashboard/SKILL.md +0 -109
- package/plugins/skills/project-evolution/SKILL.md +0 -847
- package/plugins/skills/requirement-stage/SKILL.md +0 -183
- package/plugins/skills/skill-forge/SKILL.md +0 -223
- package/plugins/skills/skill-forge/references/description-guide.md +0 -92
- package/plugins/skills/skill-forge/references/quality-rubric.md +0 -104
- package/plugins/skills/skill-forge/references/skill-template.md +0 -106
- package/plugins/skills/startup-guard/SKILL.md +0 -38
- package/plugins/skills/testing-stage/SKILL.md +0 -195
- package/scripts/cli/global-init.js +0 -288
- package/scripts/cli/global.js +0 -324
- package/scripts/cli/index.js +0 -55
- package/scripts/cli/init.js +0 -382
- package/scripts/cli/list.js +0 -69
- package/scripts/cli/org.js +0 -340
- package/scripts/cli/update.js +0 -44
- package/scripts/config/commands.config.js +0 -145
- package/scripts/config/hooks.config.js +0 -197
- package/scripts/evolution/evolution-router.js +0 -273
- package/scripts/evolution/evolution-signal-collector.js +0 -307
- package/scripts/evolution/knowledge-loader.js +0 -346
- package/scripts/evolution/marketplace.js +0 -317
- package/scripts/evolution/version-manager.js +0 -371
- package/scripts/install/agents.js +0 -106
- package/scripts/install/commands.js +0 -133
- package/scripts/install/constants.js +0 -424
- package/scripts/install/hook-logger.js +0 -536
- package/scripts/install/hooks.js +0 -110
- package/scripts/install/index.js +0 -39
- package/scripts/install/skills.js +0 -95
- package/scripts/postinstall.js +0 -25
- package/scripts/state.js +0 -376
- /package/{plugins → dist/plugins}/hooks/lib/hook-runner.sh +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x4b7633=_0x3743;(function(_0x18bccc,_0x3aaaf5){const _0xb42033={_0x168f9d:0xf5,_0x427cb0:0x11f,_0x809ca5:0xe9,_0x1541fe:0x117},_0x57410d=_0x3743,_0x236dee=_0x18bccc();while(!![]){try{const _0x160045=parseInt(_0x57410d(0x114))/0x1*(-parseInt(_0x57410d(0x11b))/0x2)+-parseInt(_0x57410d(_0xb42033._0x168f9d))/0x3*(parseInt(_0x57410d(_0xb42033._0x427cb0))/0x4)+parseInt(_0x57410d(0xe6))/0x5*(-parseInt(_0x57410d(0xed))/0x6)+-parseInt(_0x57410d(0x109))/0x7*(parseInt(_0x57410d(0x11a))/0x8)+-parseInt(_0x57410d(0xff))/0x9*(parseInt(_0x57410d(_0xb42033._0x809ca5))/0xa)+-parseInt(_0x57410d(_0xb42033._0x1541fe))/0xb+parseInt(_0x57410d(0xfc))/0xc;if(_0x160045===_0x3aaaf5)break;else _0x236dee['push'](_0x236dee['shift']());}catch(_0x38078d){_0x236dee['push'](_0x236dee['shift']());}}}(_0x44d5,0xb67e9));import _0x42053b from'fs';import _0x3efeca from'path';import{STATE_FILE as _0x118879,METRICS_FILE as _0x55978b,STAGES as _0x564b51,WORKFLOWS as _0x28535c,AUTOSPEC_DIRS as _0x130325}from'./constants.js';const d='.autospec/'+_0x130325['ARCHIVES'];function _0x3743(_0x14ae7f,_0x18b417){_0x14ae7f=_0x14ae7f-0xdc;const _0x44d567=_0x44d5();let _0x374348=_0x44d567[_0x14ae7f];if(_0x3743['eXpNFV']===undefined){var _0x3951e9=function(_0x266190){const _0x3b931d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2bc927='',_0x1f8381='';for(let _0x2239f2=0x0,_0x164f4e,_0x5c82d4,_0x5d89c2=0x0;_0x5c82d4=_0x266190['charAt'](_0x5d89c2++);~_0x5c82d4&&(_0x164f4e=_0x2239f2%0x4?_0x164f4e*0x40+_0x5c82d4:_0x5c82d4,_0x2239f2++%0x4)?_0x2bc927+=String['fromCharCode'](0xff&_0x164f4e>>(-0x2*_0x2239f2&0x6)):0x0){_0x5c82d4=_0x3b931d['indexOf'](_0x5c82d4);}for(let _0x149bc9=0x0,_0x3cd39d=_0x2bc927['length'];_0x149bc9<_0x3cd39d;_0x149bc9++){_0x1f8381+='%'+('00'+_0x2bc927['charCodeAt'](_0x149bc9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1f8381);};_0x3743['xQpmeQ']=_0x3951e9,_0x3743['PzzJNm']={},_0x3743['eXpNFV']=!![];}const _0x8ff8d8=_0x44d567[0x0],_0x5bf63d=_0x14ae7f+_0x8ff8d8,_0x171b5b=_0x3743['PzzJNm'][_0x5bf63d];return!_0x171b5b?(_0x374348=_0x3743['xQpmeQ'](_0x374348),_0x3743['PzzJNm'][_0x5bf63d]=_0x374348):_0x374348=_0x171b5b,_0x374348;}function b(_0x10876f){const _0x2e67e0={_0x5de944:0xea,_0x2b9986:0x106},_0x182f96=_0x3743,_0x555b78=_0x3efeca[_0x182f96(_0x2e67e0._0x5de944)](_0x10876f,_0x118879);return _0x42053b['existsSync'](_0x555b78)?JSON['parse'](_0x42053b['readFileSync'](_0x555b78,_0x182f96(_0x2e67e0._0x2b9986))):null;}function T(_0x5f47ad,_0x5561ba){const _0x134b91={_0x5f2032:0xdc},_0x414ef7=_0x3743,_0x2f66f4=_0x3efeca['join'](_0x5f47ad,_0x118879),_0x2d5177=_0x3efeca[_0x414ef7(0xf4)](_0x2f66f4);_0x42053b[_0x414ef7(_0x134b91._0x5f2032)](_0x2d5177)||_0x42053b['mkdirSync'](_0x2d5177,{'recursive':!0x0}),_0x5561ba['updatedAt']=new Date()[_0x414ef7(0x12c)](),_0x42053b[_0x414ef7(0xec)](_0x2f66f4,JSON['stringify'](_0x5561ba,null,0x2),'utf-8');}function L(_0x2343f8){const _0x2752fc=b(_0x2343f8);return _0x2752fc?!_0x2752fc['completedAt']:!0x1;}function M(_0x5f58b6,_0x1699cb){const _0x547f2c={_0x36ae2e:0xea,_0x23a056:0xec,_0x42edef:0xdc,_0x568065:0x10c},_0x3a95d0=_0x3743,_0x2837a9=b(_0x5f58b6);if(!_0x2837a9)return!0x1;const _0x48a870=_0x1699cb||_0x2837a9['specs']||P(_0x2837a9['taskName'],_0x2837a9['createdAt']),_0x34ee36=_0x3efeca[_0x3a95d0(_0x547f2c._0x36ae2e)](_0x5f58b6,d),_0x110e3b=_0x3efeca['join'](_0x34ee36,_0x48a870);_0x42053b[_0x3a95d0(0xdc)](_0x110e3b)||_0x42053b[_0x3a95d0(0x12e)](_0x110e3b,{'recursive':!0x0});const _0x2adef7=_0x3efeca['join'](_0x110e3b,'state.json');_0x42053b[_0x3a95d0(_0x547f2c._0x23a056)](_0x2adef7,JSON['stringify'](_0x2837a9,null,0x2),'utf-8');const _0x2b5e5b=_0x3efeca[_0x3a95d0(_0x547f2c._0x36ae2e)](_0x5f58b6,_0x55978b);if(_0x42053b[_0x3a95d0(_0x547f2c._0x42edef)](_0x2b5e5b)){const _0x362aa1=_0x3efeca['join'](_0x110e3b,'metrics.json');_0x42053b['copyFileSync'](_0x2b5e5b,_0x362aa1);}return _0x2837a9[_0x3a95d0(_0x547f2c._0x568065)]=new Date()['toISOString'](),_0x2837a9['archivedTo']=_0x48a870,_0x48a870;}function P(_0x19b7a9,_0x418032){const _0x2d65f4=_0x3743,_0x25bfda={'ZASEG':function(_0x288c24,_0x3403b3){return _0x288c24||_0x3403b3;}},_0x504490=_0x418032?new Date(_0x418032)[_0x2d65f4(0x12c)]()[_0x2d65f4(0x103)](0x0,0xa):new Date()[_0x2d65f4(0x12c)]()['slice'](0x0,0xa),_0x18b9af=_0x25bfda['ZASEG'](_0x19b7a9,'unknown')['toLowerCase']()['replace'](/[^a-z0-9\u4e00-\u9fa5]+/g,'-')['slice'](0x0,0x1e);return _0x504490+'-'+_0x18b9af;}function R(_0x28844e){const _0x2e8770={_0x1733fa:0xdc,_0x4830da:0x121},_0x4d58bd={_0x5ce87d:0xe7,_0x1842e4:0x106},_0x1a6ac8=_0x3743,_0x546434=_0x3efeca['join'](_0x28844e,d);return _0x42053b[_0x1a6ac8(_0x2e8770._0x1733fa)](_0x546434)?_0x42053b[_0x1a6ac8(0x104)](_0x546434,{'withFileTypes':!0x0})['filter'](_0x5af1d9=>_0x5af1d9[_0x1a6ac8(0xe2)]())[_0x1a6ac8(_0x2e8770._0x4830da)](_0x44c1da=>{const _0x517508=_0x1a6ac8,_0x33b3ad=_0x3efeca['join'](_0x546434,_0x44c1da['name']),_0x534952=_0x3efeca['join'](_0x33b3ad,_0x517508(_0x4d58bd._0x5ce87d));let _0x4be5a7={'id':_0x44c1da['name']};if(_0x42053b['existsSync'](_0x534952))try{const _0x39e770=JSON[_0x517508(0x10b)](_0x42053b['readFileSync'](_0x534952,_0x517508(_0x4d58bd._0x1842e4)));_0x4be5a7['taskName']=_0x39e770['taskName'],_0x4be5a7[_0x517508(0xf2)]=_0x39e770['workflow'],_0x4be5a7['completedAt']=_0x39e770['completedAt'],_0x4be5a7['archivedAt']=_0x39e770[_0x517508(0x10c)];}catch{}return _0x4be5a7;})['sort']((_0x157d8c,_0x2d41e2)=>(_0x2d41e2['archivedAt']||'')['localeCompare'](_0x157d8c['archivedAt']||'')):[];}function _(_0x18ab6c,_0x542e96){const _0x52d2a3={_0x6c22eb:0xea,_0x5e1b42:0xea,_0x2bba22:0xdc},_0x58d05c=_0x3743,_0xe8e2ba={'VKdlm':_0x58d05c(0x106)},_0x3fab9a=_0x3efeca[_0x58d05c(_0x52d2a3._0x6c22eb)](_0x18ab6c,d,_0x542e96),_0x35f86b=_0x3efeca[_0x58d05c(_0x52d2a3._0x5e1b42)](_0x3fab9a,'state.json');return _0x42053b[_0x58d05c(_0x52d2a3._0x2bba22)](_0x35f86b)?JSON[_0x58d05c(0x10b)](_0x42053b['readFileSync'](_0x35f86b,_0xe8e2ba['VKdlm'])):null;}const m={'BACKEND':'backend','FRONTEND':_0x4b7633(0x100),'MOBILE':'mobile','DATA':_0x4b7633(0xf6),'AI':'ai','PIPELINE':_0x4b7633(0x107)},I={[m[_0x4b7633(0x119)]]:'后端',[m[_0x4b7633(0xdf)]]:'前端',[m[_0x4b7633(0x110)]]:'移动端',[m['DATA']]:'数据系统',[m['AI']]:'AI/模型',[m[_0x4b7633(0x108)]]:'数据管道'};function E(_0x35da1d){const _0x1d1d08={_0x191d92:0x115},_0x4d4a22=_0x4b7633;if(!_0x35da1d||_0x35da1d[_0x4d4a22(0x116)]===0x0)return[];const _0x13e3ac={},_0x442749=new Set();return _0x35da1d['map'](_0x209331=>{const _0x3504f0=_0x4d4a22;let _0x1b5b8a=_0x209331[_0x3504f0(0x101)];if(_0x442749['has'](_0x1b5b8a)){const _0x535cf0=_0x209331['path']['split']('/')['slice'](-0x2)[0x0];_0x1b5b8a=_0x1b5b8a+'-'+_0x535cf0;}return _0x13e3ac[_0x1b5b8a]=(_0x13e3ac[_0x1b5b8a]||0x0)+0x1,_0x13e3ac[_0x1b5b8a]>0x1&&(_0x1b5b8a=_0x1b5b8a+'-'+_0x13e3ac[_0x1b5b8a]),_0x442749['add'](_0x1b5b8a),{'name':_0x1b5b8a,'type':_0x209331['type']||_0x3504f0(0x120),'path':_0x209331[_0x3504f0(_0x1d1d08._0x191d92)]};});}function J(_0xa7ac91,_0x50b01d=_0x4b7633(0xfe),_0xd81f1c=[],_0x3a6027=[]){const _0x264b7b={_0x2ed7ea:0x122,_0x981285:0x11d,_0x3a812e:0x12c},_0x1c3b83=_0x4b7633,_0x257d6c=_0x28535c[_0x50b01d];if(!_0x257d6c)throw new Error('Unknown\x20workflow:\x20'+_0x50b01d);const _0x440fea=E(_0x3a6027),_0x45aa12={};for(const _0x4e024e of _0x257d6c['stages']){const _0x29f40e=_0x564b51['find'](_0x32fc34=>_0x32fc34['id']===_0x4e024e),_0x3aa754={'name':_0x29f40e[_0x1c3b83(0x101)],'label':_0x29f40e[_0x1c3b83(_0x264b7b._0x2ed7ea)],'status':_0x1c3b83(0x111),'layer1':null,'layer2':null,'retryCount':0x0,'artifacts':[],'assumptions':[],'startedAt':null,'completedAt':null};_0x440fea['length']>0x0&&(_0x3aa754['subsystems']=_0x440fea[_0x1c3b83(0x121)](_0x4ba5cc=>({'name':_0x4ba5cc[_0x1c3b83(0x101)],'type':_0x4ba5cc[_0x1c3b83(0x12a)],'status':_0x1c3b83(0x111),'layer1':null,'layer2':null,'retryCount':0x0,'startedAt':null,'completedAt':null}))),_0x45aa12[_0x4e024e]=_0x3aa754;}return{'version':'1.0.3','taskName':_0xa7ac91,'workflow':_0x50b01d,'roles':_0xd81f1c,'hasSubsystems':_0x440fea[_0x1c3b83(0x116)]>0x0,'subsystemsConfig':_0x440fea[_0x1c3b83(0x121)](_0x482479=>({'name':_0x482479['name'],'type':_0x482479['type'],'path':_0x482479['path']})),'currentStage':_0x257d6c[_0x1c3b83(_0x264b7b._0x981285)][0x0],'stages':_0x45aa12,'pendingConfirmations':[],'autoDecisions':[],'createdAt':new Date()[_0x1c3b83(_0x264b7b._0x3a812e)](),'updatedAt':new Date()[_0x1c3b83(0x12c)]()};}function B(_0xe2f846,_0x3731d9,_0x463bfc){const _0x131971={_0x1ecf8e:0x127},_0x294403=_0x4b7633;return _0xe2f846?.['stages']?.[_0x3731d9]?.['subsystems']&&_0xe2f846['stages'][_0x3731d9]['subsystems'][_0x294403(_0x131971._0x1ecf8e)](_0x4e26f8=>_0x4e26f8['name']===_0x463bfc)||null;}function U(_0x24f9c1,_0x308af0,_0x5d59c7,_0x454990){const _0x4345f4={_0x3d03bb:0xe1},_0x48025f=_0x4b7633;if(!_0x24f9c1?.['stages']?.[_0x308af0]?.[_0x48025f(0xe8)])return!0x1;const _0x173a91=_0x24f9c1['stages'][_0x308af0][_0x48025f(0xe8)]['find'](_0x2a1e54=>_0x2a1e54['name']===_0x5d59c7);return _0x173a91?(Object[_0x48025f(_0x4345f4._0x3d03bb)](_0x173a91,_0x454990),!0x0):!0x1;}function A(_0x5dd0d1){const _0x1adddd={_0x25bbbe:0x12a,_0x1d8ef3:0x120},_0x35a85c=_0x4b7633,_0x1ea630={};for(const _0xe8dc6d of _0x5dd0d1){const _0x57ae07=_0xe8dc6d[_0x35a85c(_0x1adddd._0x25bbbe)]||_0x35a85c(_0x1adddd._0x1d8ef3);_0x1ea630[_0x57ae07]||(_0x1ea630[_0x57ae07]=[]),_0x1ea630[_0x57ae07]['push'](_0xe8dc6d);}return _0x1ea630;}function w(_0x11e960){return{'pending':'○','in_progress':'◎','layer1_pass':'◐','layer2_pass':'◑','completed':'●','blocked':'✖','failed':'✖'}[_0x11e960]||'?';}function Y(_0xd832d7){const _0x37299a={_0x1b6196:0x122,_0x30b90c:0x118,_0x42e1f5:0x123,_0x336ca4:0x123,_0x44d04c:0xdd,_0x4ea959:0x113,_0x467fd3:0x128,_0x3167e3:0xfd,_0x10b2eb:0xe5,_0x161cb0:0xe4,_0x40828e:0xf0,_0x42ed07:0x10a,_0x262c9d:0x105,_0xb4fa46:0x10e},_0x38d3e8=_0x4b7633,_0x58631c={'rJftb':'(none)','XNdEn':function(_0x137de0,_0x28bc9c){return _0x137de0>_0x28bc9c;}};if(!_0xd832d7)return null;const _0x19f05d=_0x28535c[_0xd832d7['workflow']],_0x4c576b=[];if(_0x4c576b[_0x38d3e8(0xdd)]('Task:\x20'+_0xd832d7['taskName']),_0x4c576b['push']('Workflow:\x20'+_0x19f05d[_0x38d3e8(_0x37299a._0x1b6196)]+'\x20('+_0xd832d7['workflow']+')'),_0x4c576b[_0x38d3e8(0xdd)](_0x38d3e8(_0x37299a._0x30b90c)+(_0xd832d7[_0x38d3e8(_0x37299a._0x42e1f5)]['length']>0x0?_0xd832d7[_0x38d3e8(_0x37299a._0x336ca4)]['join'](',\x20'):_0x58631c[_0x38d3e8(0xf1)])),_0x4c576b[_0x38d3e8(_0x37299a._0x44d04c)]('Mode:\x20'+(_0xd832d7['hasSubsystems']?_0x38d3e8(0x10d):'Single-system')),_0x4c576b['push']('Current:\x20Stage\x20'+_0xd832d7[_0x38d3e8(_0x37299a._0x4ea959)]),_0x4c576b[_0x38d3e8(0xdd)](''),_0xd832d7[_0x38d3e8(0x126)]&&_0xd832d7['subsystemsConfig']){_0x4c576b[_0x38d3e8(_0x37299a._0x44d04c)]('Subsystems:');const _0x118c3a=A(_0xd832d7['subsystemsConfig']);for(const [_0x161378,_0x2be5c6]of Object['entries'](_0x118c3a)){const _0x3d7496=I[_0x161378]||_0x161378;_0x4c576b['push'](_0x38d3e8(0x12b)+_0x3d7496+']\x20'+_0x2be5c6['map'](_0x575b8a=>_0x575b8a['name'])[_0x38d3e8(0xea)](',\x20'));}_0x4c576b['push']('');}_0x4c576b['push'](_0x38d3e8(_0x37299a._0x467fd3));for(const _0x2093f9 of _0x19f05d[_0x38d3e8(0x11d)]){const _0x58d00d=_0xd832d7[_0x38d3e8(0x11d)][_0x2093f9],_0x1c9247=_0x564b51['find'](_0x45cc3e=>_0x45cc3e['id']===_0x2093f9),_0xfacdd9=w(_0x58d00d['status']),_0x4a4be1=_0x2093f9===_0xd832d7['currentStage']?'\x20←':'';if(_0x4c576b['push']('\x20\x20'+_0xfacdd9+'\x20['+_0x2093f9+']\x20'+_0x1c9247[_0x38d3e8(_0x37299a._0x1b6196)]+_0x38d3e8(_0x37299a._0x3167e3)+_0x58d00d['status']+_0x4a4be1),_0x58d00d['subsystems']&&_0x2093f9===_0xd832d7[_0x38d3e8(0x113)]){const _0xc45f47=A(_0x58d00d['subsystems']);for(const [_0x3086d,_0x3af615]of Object[_0x38d3e8(_0x37299a._0x10b2eb)](_0xc45f47)){const _0x49c8cc=I[_0x3086d]||_0x3086d;_0x4c576b[_0x38d3e8(_0x37299a._0x44d04c)](_0x38d3e8(_0x37299a._0x161cb0)+_0x49c8cc+':');for(const _0x557e51 of _0x3af615){const _0x3aa37a=w(_0x557e51['status']),_0x718fce=_0x557e51[_0x38d3e8(_0x37299a._0x40828e)]?'[L1:'+_0x557e51[_0x38d3e8(_0x37299a._0x40828e)]+']':'',_0x150f19=_0x557e51[_0x38d3e8(0xfb)]?_0x38d3e8(0xf9)+_0x557e51['layer2']+']':'';_0x4c576b['push']('\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3aa37a+'\x20'+_0x557e51['name']+'\x20'+_0x718fce+_0x150f19);}}}}return _0x58631c[_0x38d3e8(_0x37299a._0x42ed07)](_0xd832d7[_0x38d3e8(_0x37299a._0x262c9d)]?.['length'],0x0)&&(_0x4c576b[_0x38d3e8(0xdd)](''),_0x4c576b['push'](_0x38d3e8(0xf7)+_0xd832d7['pendingConfirmations']['length'])),_0xd832d7[_0x38d3e8(_0x37299a._0xb4fa46)]?.['length']>0x0&&_0x4c576b[_0x38d3e8(0xdd)]('Auto\x20decisions:\x20'+_0xd832d7[_0x38d3e8(_0x37299a._0xb4fa46)][_0x38d3e8(0x116)]),_0x4c576b[_0x38d3e8(0xea)]('\x0a');}function z(_0x31eb41){const _0x165fe9={_0x3a5eb4:0xe8},_0x797a02=_0x4b7633;return _0x31eb41?.['stages']?.[_0x31eb41['currentStage']]?.['subsystems']?_0x31eb41[_0x797a02(0x11d)][_0x31eb41['currentStage']][_0x797a02(_0x165fe9._0x3a5eb4)]:[];}function K(_0x124bfa,_0x1d5f15=[]){const _0x57d0b7={_0x4409ec:0x113,_0x2d52ea:0xe8,_0x44d52e:0xe0,_0x54455e:0x10f,_0x46a658:0x116,_0x62830c:0x121,_0x262501:0x121},_0x8c75c2=_0x4b7633,_0x3dcf01={'xKNWK':function(_0x1e4c3b,_0x1f986d){return _0x1e4c3b+_0x1f986d;},'FaVpU':function(_0x562110,_0x572f2f){return _0x562110/_0x572f2f;}};if(!_0x124bfa?.[_0x8c75c2(0x11d)]?.[_0x124bfa[_0x8c75c2(0x113)]]?.['subsystems'])return{'designed':[],'implemented':[],'coverage':0x0,'missing':[],'completed':[],'inProgress':[],'pending':[]};const _0x4d5743=_0x124bfa['stages'][_0x124bfa[_0x8c75c2(_0x57d0b7._0x4409ec)]][_0x8c75c2(_0x57d0b7._0x2d52ea)],_0x26d3df=_0x4d5743['filter'](_0x5a9844=>_0x5a9844[_0x8c75c2(0x12d)]===_0x8c75c2(0x102)),_0xe26af9=_0x4d5743['filter'](_0x1e695d=>_0x1e695d[_0x8c75c2(0x12d)]==='in_progress'||_0x1e695d['status']==='layer1_pass'),_0x3019c1=_0x4d5743[_0x8c75c2(_0x57d0b7._0x44d52e)](_0x3538ad=>_0x3538ad[_0x8c75c2(0x12d)]===_0x8c75c2(0x111)),_0x2424bb=_0x4d5743['length'],_0x39a958=_0x3dcf01[_0x8c75c2(_0x57d0b7._0x54455e)](_0x26d3df[_0x8c75c2(_0x57d0b7._0x46a658)],_0xe26af9['length']),_0x5ca169=_0x2424bb>0x0?Math[_0x8c75c2(0xeb)](_0x3dcf01[_0x8c75c2(0xf3)](_0x39a958,_0x2424bb)*0x64):0x0;return{'designed':_0x4d5743[_0x8c75c2(_0x57d0b7._0x62830c)](_0xba8ff5=>({'name':_0xba8ff5['name'],'type':_0xba8ff5[_0x8c75c2(0x12a)],'path':_0xba8ff5['path']})),'implemented':_0x4d5743[_0x8c75c2(0xe0)](_0x2360bd=>_0x2360bd['status']!==_0x8c75c2(0x111)),'coverage':_0x5ca169,'missing':_0x3019c1[_0x8c75c2(_0x57d0b7._0x62830c)](_0x2579e0=>_0x2579e0['name']),'completed':_0x26d3df[_0x8c75c2(_0x57d0b7._0x262501)](_0x25256c=>_0x25256c[_0x8c75c2(0x101)]),'inProgress':_0xe26af9['map'](_0x3260de=>_0x3260de[_0x8c75c2(0x101)]),'pending':_0x3019c1[_0x8c75c2(0x121)](_0x344e99=>_0x344e99[_0x8c75c2(0x101)]),'details':_0x4d5743};}function N(_0xbc2ae4){const _0x305af8={_0x95ac74:0xea,_0x41e6ed:0x106},_0x351aa8=_0x4b7633,_0x56df26=_0x3efeca[_0x351aa8(_0x305af8._0x95ac74)](_0xbc2ae4,_0x351aa8(0x124));if(_0x42053b[_0x351aa8(0xdc)](_0x56df26))try{return JSON['parse'](_0x42053b['readFileSync'](_0x56df26,_0x351aa8(_0x305af8._0x41e6ed)));}catch{return[];}return[];}function W(_0x2ec238,_0x687bcc){const _0x361303={_0x301a55:0xdc,_0x59af76:0x129,_0xa97f18:0xee,_0x3746d5:0xe3,_0x4022a5:0x125,_0x57f655:0xdd,_0x29f3ba:0x106},_0x1cc326=_0x4b7633,_0x2bc5b0=_0x3efeca['join'](_0x2ec238,'.autospec/monitoring-issues.json');let _0x4c3483=[];if(_0x42053b[_0x1cc326(_0x361303._0x301a55)](_0x2bc5b0))try{_0x4c3483=JSON['parse'](_0x42053b['readFileSync'](_0x2bc5b0,'utf-8'));}catch{_0x4c3483=[];}const _0xc05b0e={'id':_0x1cc326(_0x361303._0x59af76)+Date['now']()+'-'+Math[_0x1cc326(_0x361303._0xa97f18)]()[_0x1cc326(_0x361303._0x3746d5)](0x24)[_0x1cc326(0x11c)](0x2,0x9),'createdAt':new Date()[_0x1cc326(0x12c)](),'updatedAt':new Date()['toISOString'](),'status':_0x1cc326(_0x361303._0x4022a5),..._0x687bcc};_0x4c3483[_0x1cc326(_0x361303._0x57f655)](_0xc05b0e);const _0x3fb36c=_0x3efeca['dirname'](_0x2bc5b0);return _0x42053b[_0x1cc326(_0x361303._0x301a55)](_0x3fb36c)||_0x42053b[_0x1cc326(0x12e)](_0x3fb36c,{'recursive':!0x0}),_0x42053b[_0x1cc326(0xec)](_0x2bc5b0,JSON['stringify'](_0x4c3483,null,0x2),_0x1cc326(_0x361303._0x29f3ba)),_0xc05b0e;}function H(_0x484560,_0x5b43c7,_0x58a820){const _0x14d6e5={_0x43071e:0xdc,_0x4eeb04:0x12c},_0x1c38cb=_0x4b7633,_0x53038e={'BEYEK':'.autospec/monitoring-issues.json'},_0x43b2ea=_0x3efeca['join'](_0x484560,_0x53038e['BEYEK']);if(!_0x42053b[_0x1c38cb(_0x14d6e5._0x43071e)](_0x43b2ea))return!0x1;let _0x4a9669;try{_0x4a9669=JSON['parse'](_0x42053b['readFileSync'](_0x43b2ea,_0x1c38cb(0x106)));}catch{return!0x1;}const _0xcea99c=_0x4a9669['findIndex'](_0xfdb26b=>_0xfdb26b['id']===_0x5b43c7);return _0xcea99c===-0x1?!0x1:(_0x4a9669[_0xcea99c]={..._0x4a9669[_0xcea99c],..._0x58a820,'updatedAt':new Date()[_0x1c38cb(_0x14d6e5._0x4eeb04)]()},_0x42053b['writeFileSync'](_0x43b2ea,JSON['stringify'](_0x4a9669,null,0x2),_0x1c38cb(0x106)),!0x0);}function V(_0x2936da){const _0x1e2c00={_0x5095c6:0xe0,_0x3beb4f:0x116,_0x426ed2:0xe0,_0xd12fa7:0x116,_0x4602c4:0xe0,_0x1e6e9d:0x103},_0x3cda48=_0x4b7633,_0x4d2283=N(_0x2936da);return{'total':_0x4d2283['length'],'open':_0x4d2283[_0x3cda48(_0x1e2c00._0x5095c6)](_0x5a80c7=>_0x5a80c7['status']===_0x3cda48(0x125))['length'],'acknowledged':_0x4d2283[_0x3cda48(_0x1e2c00._0x5095c6)](_0x4300fd=>_0x4300fd[_0x3cda48(0x12d)]===_0x3cda48(0xde))[_0x3cda48(0x116)],'fixing':_0x4d2283['filter'](_0x1679c1=>_0x1679c1['status']===_0x3cda48(0xef))['length'],'fixed':_0x4d2283['filter'](_0x181cfa=>_0x181cfa[_0x3cda48(0x12d)]===_0x3cda48(0xfa))['length'],'closed':_0x4d2283['filter'](_0x563415=>_0x563415['status']==='closed')[_0x3cda48(0x116)],'bySeverity':{'critical':_0x4d2283[_0x3cda48(0xe0)](_0x4d6cee=>_0x4d6cee['severity']==='critical')[_0x3cda48(_0x1e2c00._0x3beb4f)],'high':_0x4d2283[_0x3cda48(_0x1e2c00._0x426ed2)](_0x219c2d=>_0x219c2d[_0x3cda48(0x112)]==='high')[_0x3cda48(_0x1e2c00._0xd12fa7)],'medium':_0x4d2283[_0x3cda48(0xe0)](_0x5ca307=>_0x5ca307['severity']===_0x3cda48(0xf8))['length'],'low':_0x4d2283[_0x3cda48(_0x1e2c00._0x4602c4)](_0x2b5e91=>_0x2b5e91['severity']==='low')['length']},'recentIssues':_0x4d2283[_0x3cda48(_0x1e2c00._0x1e6e9d)](-0xa)[_0x3cda48(0x11e)]()};}function G(_0x33dfff,_0x501f2d){const _0xdd2965={_0x4af8f7:0x11d,_0x172810:0x116,_0x2c1028:0xe0,_0x4e995a:0x116,_0x324316:0x116},_0x265eb9=_0x4b7633,_0x3df2e8={'iQFEt':function(_0x334c05,_0x54c268){return _0x334c05===_0x54c268;}},_0x467d75=_0x33dfff?.[_0x265eb9(_0xdd2965._0x4af8f7)]?.[_0x501f2d]?.['subsystems'];if(!_0x467d75||_0x467d75[_0x265eb9(_0xdd2965._0x172810)]===0x0)return{'allPassed':!0x0,'hasSubsystems':!0x1,'details':[]};const _0x5687cf=_0x467d75[_0x265eb9(0xe0)](_0x23b7ff=>_0x23b7ff[_0x265eb9(0xf0)]==='pass'),_0x5d54bf=_0x467d75[_0x265eb9(_0xdd2965._0x2c1028)](_0x35d95b=>_0x35d95b[_0x265eb9(0xf0)]==='fail'),_0x4db129=_0x467d75['filter'](_0x172cdc=>!_0x172cdc['layer1']||_0x172cdc['layer1']===null);return{'allPassed':_0x5d54bf['length']===0x0&&_0x3df2e8['iQFEt'](_0x4db129[_0x265eb9(_0xdd2965._0x4e995a)],0x0),'hasSubsystems':!0x0,'total':_0x467d75[_0x265eb9(0x116)],'passed':_0x5687cf['length'],'failed':_0x5d54bf[_0x265eb9(_0xdd2965._0x324316)],'pending':_0x4db129['length'],'details':_0x467d75['map'](_0x535dfa=>({'name':_0x535dfa[_0x265eb9(0x101)],'type':_0x535dfa[_0x265eb9(0x12a)],'layer1':_0x535dfa[_0x265eb9(0xf0)],'status':_0x535dfa[_0x265eb9(0x12d)]}))};}export{m as SUBSYSTEM_TYPES,I as SUBSYSTEM_TYPE_LABELS,W as addMonitoringIssue,M as archivePipeline,G as checkAllSubsystemsLayer1,J as createState,z as getAllSubsystemsStatus,N as getMonitoringIssues,V as getMonitoringReport,Y as getStatusSummary,K as getSubsystemCoverage,B as getSubsystemStatus,L as hasActivePipeline,R as listArchivedRuns,_ as loadArchivedRun,b as loadState,E as normalizeSubsystems,T as saveState,H as updateMonitoringIssue,U as updateSubsystemStatus};function _0x44d5(){const _0x36aaa0=['D3jPDgvgAwXLu3LUyW','mZKXmKPQCunjwq','CMfUzg9T','zML4Aw5N','Bgf5zxiX','CKPMDgi','D29YA2zSB3C','rMfwCfu','zgLYBMfTzq','mZaWote0n0ruwfrJta','zgf0yq','ugvUzgLUzYbJB25MAxjTyxrPB25ZoIa','BwvKAxvT','w0WYoG','zML4zwq','Bgf5zxiY','odaYndi5otjTD3rMzKK','iokaLca','D2f0zxjMywXS','mJyXzKfutNvj','zNjVBNrLBMq','BMfTzq','y29TCgXLDgvK','C2XPy2u','CMvHzgrPCLn5BMm','CgvUzgLUz0nVBMzPCM1HDgLVBNm','DxrMltG','CgLWzwXPBMu','ueLqruXjtKu','n1fltMnUwa','we5Krw4','CgfYC2u','yxjJAgL2zwrbDa','txvSDgKTC3LZDgvT','yxv0B0rLy2LZAw9UCW','EeTov0S','tu9csuXf','CgvUzgLUzW','C2v2zxjPDhK','y3vYCMvUDfn0ywDL','mtqXnZq4ovnQCvjiyG','Cgf0Aa','BgvUz3rO','mtmWmtq3otnAr0rLv0u','uM9Szxm6ia','qKfds0vora','nteWmdy2nfnQvvjgrq','mKXSC2jVva','C3vIC3rY','C3rHz2vZ','CMv2zxjZzq','ngTJEw5ZqW','Dw5RBM93BG','BwfW','BgfIzwW','CM9Szxm','lMf1Dg9ZCgvJl21VBML0B3jPBMCTAxnZDwvZlMPZB24','B3bLBG','AgfZu3vIC3LZDgvTCW','zMLUza','u3rHz2vZoG','AxnZDwuT','DhLWzq','icbB','Dg9ju09tDhjPBMC','C3rHDhvZ','BwTKAxjtEw5J','zxHPC3rZu3LUyW','ChvZAa','ywnRBM93BgvKz2vK','rLjptLrftKq','zMLSDgvY','yxnZAwDU','AxneAxjLy3rVCNK','Dg9tDhjPBMC','icaGicaG','zw50CMLLCW','nJu2mfjWq09oBG','C3rHDguUANnVBG','C3vIC3LZDgvTCW','mJKWntKWDhnLt0fi','AM9PBG','CM91BMq'];_0x44d5=function(){return _0x36aaa0;};return _0x44d5();}
|
package/package.json
CHANGED
|
@@ -1,19 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chongyan/autospec",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "AI驱动的无人值守自动化产品研发流程 —— 从需求到交付的全流程自动化",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"autospec": "bin/autospec.js"
|
|
7
|
+
"autospec": "dist/bin/autospec.js"
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
|
-
"
|
|
11
|
-
"scripts/",
|
|
12
|
-
"knowledge/",
|
|
13
|
-
"plugins/"
|
|
10
|
+
"dist/"
|
|
14
11
|
],
|
|
15
|
-
"scripts": {
|
|
16
|
-
"
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "node build.mjs",
|
|
14
|
+
"verify": "node build.mjs verify",
|
|
15
|
+
"verify:slash-commands": "node scripts/commands/slash-command-docs.js --check",
|
|
16
|
+
"restore": "node build.mjs restore",
|
|
17
|
+
"release:build": "node build.mjs",
|
|
18
|
+
"release:verify": "node build.mjs verify",
|
|
19
|
+
"release:smoke": "vitest run tests/scripts/release-smoke.test.js",
|
|
20
|
+
"release:check": "npm run release:build && npm run release:verify && npm run release:smoke",
|
|
21
|
+
"postinstall": "node dist/scripts/postinstall.js",
|
|
22
|
+
"prepublishOnly": "npm run build && node build.mjs verify",
|
|
23
|
+
"postpublish": "node build.mjs restore",
|
|
17
24
|
"test": "vitest",
|
|
18
25
|
"test:run": "vitest run",
|
|
19
26
|
"test:coverage": "vitest run --coverage"
|
|
@@ -22,13 +29,15 @@
|
|
|
22
29
|
"node": ">=18.0.0"
|
|
23
30
|
},
|
|
24
31
|
"dependencies": {
|
|
25
|
-
"commander": "^13.1.0",
|
|
26
32
|
"chalk": "^5.4.1",
|
|
33
|
+
"commander": "^13.1.0",
|
|
27
34
|
"fs-extra": "^11.3.0",
|
|
28
35
|
"js-yaml": "^4.1.0"
|
|
29
36
|
},
|
|
30
37
|
"devDependencies": {
|
|
31
|
-
"
|
|
38
|
+
"esbuild": "^0.25.12",
|
|
39
|
+
"javascript-obfuscator": "^4.2.2",
|
|
40
|
+
"vitest": "^2.1.9"
|
|
32
41
|
},
|
|
33
42
|
"keywords": [
|
|
34
43
|
"ai",
|
|
@@ -41,7 +50,7 @@
|
|
|
41
50
|
"autonomous-development"
|
|
42
51
|
],
|
|
43
52
|
"author": "AutoSpec Team",
|
|
44
|
-
"license": "
|
|
53
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
45
54
|
"homepage": "https://github.com/chenjianzeng0604/autospec#readme",
|
|
46
55
|
"repository": {
|
|
47
56
|
"type": "git",
|
|
@@ -50,4 +59,4 @@
|
|
|
50
59
|
"bugs": {
|
|
51
60
|
"url": "https://github.com/chenjianzeng0604/autospec/issues"
|
|
52
61
|
}
|
|
53
|
-
}
|
|
62
|
+
}
|
package/README.en.md
DELETED
|
@@ -1,472 +0,0 @@
|
|
|
1
|
-
<div align="center">
|
|
2
|
-
|
|
3
|
-
# AutoSpec
|
|
4
|
-
|
|
5
|
-
**Autonomous Software Development Pipeline — AI drives the full cycle, humans stay on the loop.**
|
|
6
|
-
|
|
7
|
-
[中文文档](./README.md) · [Quick Start](#quick-start) · [How It Works](#how-it-works) · [Contributing](./CONTRIBUTING.md)
|
|
8
|
-
|
|
9
|
-
</div>
|
|
10
|
-
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
AutoSpec is an AI-driven development pipeline that automates the entire software delivery process — from requirement analysis to deployment. Instead of replacing developers, it structures the AI's work through a rigorous, verifiable pipeline with constitutional safety guards.
|
|
14
|
-
|
|
15
|
-
**Not "AI writes code faster" — but "AI autonomously completes the full SDLC with human oversight at key decision points."**
|
|
16
|
-
|
|
17
|
-
## Key Principles
|
|
18
|
-
|
|
19
|
-
- **Verification over trust** — Deterministic validation (build/test/lint) before AI review. Never skip, never fake.
|
|
20
|
-
- **Do-review separation** — Producer and reviewer are different AI instances with information isolation.
|
|
21
|
-
- **Constitutional safety** — 13 inviolable red lines. Irreversible actions always require human confirmation.
|
|
22
|
-
- **Progressive autonomy** — Start with interactive mode, earn trust, scale to autonomous mode.
|
|
23
|
-
|
|
24
|
-
## Quick Start
|
|
25
|
-
|
|
26
|
-
```bash
|
|
27
|
-
# Install globally
|
|
28
|
-
npm install -g @chongyan/autospec
|
|
29
|
-
|
|
30
|
-
# Initialize in your project
|
|
31
|
-
cd your-project
|
|
32
|
-
autospec init
|
|
33
|
-
|
|
34
|
-
# Start full pipeline in Claude Code
|
|
35
|
-
/autospec:run
|
|
36
|
-
/autospec:run Build a user favorites feature with category filtering
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
That's it. AutoSpec copies the knowledge to `.autospec/knowledge/`, generates Claude Code slash commands (8), Skills (9, auto-triggered), Agents (8, do-review separation + CEO debate + autonomous gates), and Hooks (8, deterministic guards + quality monitoring + scope sentinel + AI validation) — ready to use.
|
|
40
|
-
|
|
41
|
-
## How It Works
|
|
42
|
-
|
|
43
|
-
### Pipeline
|
|
44
|
-
|
|
45
|
-
```
|
|
46
|
-
[Stage 0] → Requirement → Design → Implementation → Review → Testing → Delivery
|
|
47
|
-
Env Check Analysis Planning (+ quick test) (isolated) QA Deploy
|
|
48
|
-
↓ ↓ ↓ ↓ ↓ ↓
|
|
49
|
-
[Layer 1] [Layer 1] [Layer 1] [Layer 1] [Layer 1] [Layer 1]
|
|
50
|
-
[Layer 2] [Layer 2] [Layer 2] [Layer 2] [Layer 2] [Layer 2]
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
**Every stage** passes through double-layer validation:
|
|
54
|
-
- **Layer 1** (Deterministic): Build, test, lint, type-check — machine judgment, non-negotiable
|
|
55
|
-
- **Layer 2** (AI Review): Independent AI instance evaluates with structured evidence
|
|
56
|
-
|
|
57
|
-
Layer 1 fails → Layer 2 never runs.
|
|
58
|
-
|
|
59
|
-
### Testing Stage Enhancement
|
|
60
|
-
|
|
61
|
-
AutoSpec's testing is divided into two phases with clear responsibilities:
|
|
62
|
-
|
|
63
|
-
**Implementation Stage (Stage 03) - Self-testing**:
|
|
64
|
-
- Unit tests: Core logic paths + boundary conditions
|
|
65
|
-
- Module-level integration tests: Inter-module interactions
|
|
66
|
-
- Learns existing test styles, reuses test infrastructure
|
|
67
|
-
- Generates test report
|
|
68
|
-
|
|
69
|
-
**QA Testing Stage (Stage 05)**:
|
|
70
|
-
- Cross-system integration tests
|
|
71
|
-
- E2E tests
|
|
72
|
-
- Acceptance tests
|
|
73
|
-
- Learns existing test styles + loads environment knowledge best practices
|
|
74
|
-
|
|
75
|
-
**Test Style Learning**:
|
|
76
|
-
1. Detects test frameworks (Jest, pytest, JUnit, etc.)
|
|
77
|
-
2. Analyzes assertion styles and organization
|
|
78
|
-
3. Extracts test infrastructure (setup/teardown, fixtures, mocks)
|
|
79
|
-
4. Loads integration test best practices from environment knowledge
|
|
80
|
-
|
|
81
|
-
**Environment Knowledge for Testing**:
|
|
82
|
-
- Test knowledge stored in `knowledge/environment/overview.md`
|
|
83
|
-
- Free Markdown format (not structured YAML) for flexibility
|
|
84
|
-
- Self-evolution via skill-distiller: learns from test execution patterns
|
|
85
|
-
- Import organization knowledge via `autospec env:import`
|
|
86
|
-
|
|
87
|
-
### CEO Exploration (Requirement Analysis Pre-step)
|
|
88
|
-
|
|
89
|
-
Before requirement analysis, AutoSpec uses dual-agent debate to clarify requirements:
|
|
90
|
-
|
|
91
|
-
- **ceo**: Explores from CEO/strategy perspective (business value, strategic alignment)
|
|
92
|
-
- **product-owner**: Challenges from product feasibility angle (UX, scope, data-driven decisions)
|
|
93
|
-
|
|
94
|
-
**Autonomous mode**: Agents debate automatically → consensus becomes requirement, disagreements marked for clarification
|
|
95
|
-
|
|
96
|
-
**Interactive mode**: AI asks 5 strategic questions with recommended answers → user confirms
|
|
97
|
-
|
|
98
|
-
### Iteration Modes
|
|
99
|
-
|
|
100
|
-
| Mode | Stages | Description | Use Case |
|
|
101
|
-
|------|--------|-------------|----------|
|
|
102
|
-
| **Waterfall** | 01→02→03→04→05→06 | Full 6-stage pipeline | New features, major changes |
|
|
103
|
-
| **Agile** | 01 + [02→03→04]×N + 05→06 | Story-driven cycles | Iterative development |
|
|
104
|
-
| **Experiment** | 01→02→03 + Evaluation | Prototype + AI/ML evaluation | Technical exploration |
|
|
105
|
-
| **Hotfix** | 01→03→04→06 | Fast track with basic tests | Emergency fixes |
|
|
106
|
-
|
|
107
|
-
## Slash Commands
|
|
108
|
-
|
|
109
|
-
All commands accept optional text arguments: `/autospec:run Build user favorites` — the text becomes context for that stage.
|
|
110
|
-
|
|
111
|
-
### Main Entry (Autonomous Mode)
|
|
112
|
-
|
|
113
|
-
| Command | Description |
|
|
114
|
-
|---------|-------------|
|
|
115
|
-
| `/autospec:run` | Full pipeline autonomous execution (recommended) |
|
|
116
|
-
|
|
117
|
-
Run with parameters:
|
|
118
|
-
```
|
|
119
|
-
/autospec:run Build user favorites --workflow=agile
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
**Parameters:**
|
|
123
|
-
| Parameter | Shorthand | Description |
|
|
124
|
-
|-----------|-----------|-------------|
|
|
125
|
-
| `--workflow` | `-w` | Iteration mode: waterfall/agile/experiment/hotfix |
|
|
126
|
-
| `--roles` | `-r` | Roles (comma-separated): backend,frontend,data,ai,quality |
|
|
127
|
-
| `--domain` | `-d` | Business domain (free text): e.g., "fintech payment system" |
|
|
128
|
-
| `--skip-workflow` | `-s` | Skip workflow selection, use default |
|
|
129
|
-
| `--help` | `-h` | Show help |
|
|
130
|
-
|
|
131
|
-
### Interactive Mode (Stage-by-Stage Commands)
|
|
132
|
-
|
|
133
|
-
| Command | Description |
|
|
134
|
-
|---------|-------------|
|
|
135
|
-
| `/autospec:explore` | Requirement exploration |
|
|
136
|
-
| `/autospec:propose` | Design planning |
|
|
137
|
-
| `/autospec:apply` | Implementation (code + review + testing) |
|
|
138
|
-
| `/autospec:archive` | Delivery + archival |
|
|
139
|
-
|
|
140
|
-
### Recommended Workflow
|
|
141
|
-
|
|
142
|
-
For better results, explore requirements first, then run:
|
|
143
|
-
|
|
144
|
-
1. `/autospec:explore` → Clarify and explore requirements
|
|
145
|
-
2. Feed exploration results → `/autospec:run <exploration context>`
|
|
146
|
-
|
|
147
|
-
This ensures the AI understands the requirements accurately before autonomous execution.
|
|
148
|
-
|
|
149
|
-
**Direct run is also supported**: Running `/autospec:run` directly — the AI will use internal agent debate to clarify requirements automatically, though results may be less precise than exploring first.
|
|
150
|
-
|
|
151
|
-
### Command Output Examples
|
|
152
|
-
|
|
153
|
-
#### `/autospec:run` Output Flow
|
|
154
|
-
```
|
|
155
|
-
┌─────────────────────────────────────────────────────────────┐
|
|
156
|
-
│ AutoSpec Pipeline │
|
|
157
|
-
├─────────────────────────────────────────────────────────────┤
|
|
158
|
-
│ ✓ Stage 01: Requirement Analysis [Layer 1 ✓] [Layer 2 ✓] │
|
|
159
|
-
│ ✓ Stage 02: Design Planning [Layer 1 ✓] [Layer 2 ✓] │
|
|
160
|
-
│ ✓ Stage 03: Implementation [Layer 1 ✓] [Layer 2 ✓] │
|
|
161
|
-
│ ✓ Stage 04: Code Review [Layer 1 ✓] [Layer 2 ✓] │
|
|
162
|
-
│ ✓ Stage 05: QA Testing [Layer 1 ✓] [Layer 2 ✓] │
|
|
163
|
-
│ ✓ Stage 06: Delivery [Layer 1 ✓] [Layer 2 ✓] │
|
|
164
|
-
├─────────────────────────────────────────────────────────────┤
|
|
165
|
-
│ Pipeline completed successfully! │
|
|
166
|
-
│ Output: .autospec/specs/{feature}/ │
|
|
167
|
-
└─────────────────────────────────────────────────────────────┘
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
#### `/autospec:status` Output
|
|
171
|
-
```
|
|
172
|
-
┌─────────────────────────────────────────────────────────────┐
|
|
173
|
-
│ AutoSpec Status │
|
|
174
|
-
├─────────────────────────────────────────────────────────────┤
|
|
175
|
-
│ Current Stage: Stage 03 (Implementation) │
|
|
176
|
-
│ Progress: 3/6 stages completed │
|
|
177
|
-
│ Workflow: waterfall │
|
|
178
|
-
│ Last updated: 2024-01-15 10:30:00 │
|
|
179
|
-
└─────────────────────────────────────────────────────────────┘
|
|
180
|
-
```
|
|
181
|
-
|
|
182
|
-
#### Layer 1 Failure Example
|
|
183
|
-
```
|
|
184
|
-
┌─────────────────────────────────────────────────────────────┐
|
|
185
|
-
│ Layer 1 Validation FAILED │
|
|
186
|
-
├─────────────────────────────────────────────────────────────┤
|
|
187
|
-
│ ✗ npm run build → Exit code 1 │
|
|
188
|
-
│ ✗ npm test → 3 tests failed │
|
|
189
|
-
│ │
|
|
190
|
-
│ BLOCKED: Fix above issues before proceeding to Layer 2 │
|
|
191
|
-
└─────────────────────────────────────────────────────────────┘
|
|
192
|
-
```
|
|
193
|
-
|
|
194
|
-
### Utilities
|
|
195
|
-
|
|
196
|
-
| Command | Description |
|
|
197
|
-
|---------|-------------|
|
|
198
|
-
| `/autospec:status` | Pipeline progress and state |
|
|
199
|
-
| `/autospec:validate` | Run Layer 1 validation (build/test/lint) |
|
|
200
|
-
| `/evolve` | Trigger self-evolution cycle |
|
|
201
|
-
|
|
202
|
-
## CLI Commands
|
|
203
|
-
|
|
204
|
-
```bash
|
|
205
|
-
autospec init [options] # Initialize framework + slash commands
|
|
206
|
-
autospec status # Check pipeline state
|
|
207
|
-
autospec update # Update framework (preserve state)
|
|
208
|
-
```
|
|
209
|
-
|
|
210
|
-
**Init options:**
|
|
211
|
-
```bash
|
|
212
|
-
# Default: waterfall mode + generic domain
|
|
213
|
-
autospec init
|
|
214
|
-
|
|
215
|
-
# Specify iteration mode and roles
|
|
216
|
-
autospec init -w hotfix -r backend # Hotfix mode, backend role
|
|
217
|
-
autospec init -w agile -r backend,frontend # Agile mode, multi-role
|
|
218
|
-
|
|
219
|
-
# Specify domain
|
|
220
|
-
autospec init -d fintech -r backend,data # Fintech domain, backend + data roles
|
|
221
|
-
|
|
222
|
-
# Full options
|
|
223
|
-
autospec init -w experiment -d ai -r backend,ai # AI project
|
|
224
|
-
```
|
|
225
|
-
|
|
226
|
-
**Options:**
|
|
227
|
-
| Option | Shorthand | Description | Values |
|
|
228
|
-
|--------|-----------|-------------|--------|
|
|
229
|
-
| `--workflow` | `-w` | Iteration mode | `waterfall`, `agile`, `experiment`, `hotfix` |
|
|
230
|
-
| `--domain` | `-d` | Business domain (free text) | e.g., "fintech", "ecommerce", "healthcare" |
|
|
231
|
-
| `--roles` | `-r` | Project roles | Comma-separated: `backend`, `frontend`, `data`, `ai`, `quality` |
|
|
232
|
-
|
|
233
|
-
### Environment Integration Commands
|
|
234
|
-
|
|
235
|
-
AutoSpec automatically detects middleware and components during `init`. Manage environment knowledge with:
|
|
236
|
-
|
|
237
|
-
```bash
|
|
238
|
-
autospec env # Show environment configuration
|
|
239
|
-
autospec env:sync # Sync from code + auto-activate
|
|
240
|
-
autospec env:validate # Validate configuration
|
|
241
|
-
autospec env:import --git <url> # Import org knowledge from Git
|
|
242
|
-
autospec env:import --npm <pkg> # Import org knowledge from npm
|
|
243
|
-
autospec env:export <dir> # Export project knowledge
|
|
244
|
-
autospec component # List available components
|
|
245
|
-
autospec component:add <name> # Add component knowledge
|
|
246
|
-
```
|
|
247
|
-
|
|
248
|
-
**Auto-detection**: `autospec init` automatically scans code for MySQL, Redis, Kafka, MongoDB, Elasticsearch, RabbitMQ, PostgreSQL usage and generates knowledge configs. See [Environment Integration](knowledge/environment/overview.md) for details.
|
|
249
|
-
|
|
250
|
-
## Self-Evolution
|
|
251
|
-
|
|
252
|
-
AutoSpec improves itself through a controlled evolution loop.
|
|
253
|
-
|
|
254
|
-
### Two-Layer Evolution
|
|
255
|
-
|
|
256
|
-
AutoSpec's self-evolution happens on two levels simultaneously:
|
|
257
|
-
|
|
258
|
-
#### Outward Evolution (Project Evolution)
|
|
259
|
-
|
|
260
|
-
When using AutoSpec to drive **other projects**, practical experience automatically feeds back:
|
|
261
|
-
|
|
262
|
-
```
|
|
263
|
-
Project A development → practice-log → distiller extracts new skill → framework improves
|
|
264
|
-
Project B development → practice-log → extractor extracts methodology → framework improves
|
|
265
|
-
Project C development → domain skill accumulation → skills/domain/ expands
|
|
266
|
-
↓
|
|
267
|
-
Every project's experience makes the next project smoother
|
|
268
|
-
```
|
|
269
|
-
|
|
270
|
-
- Each project's practice-log can optionally contribute back to AutoSpec main repo (via PR)
|
|
271
|
-
- Domain-specific skills stay in enterprise overlay (not upstreamed)
|
|
272
|
-
- General improvements (pipeline optimization, skill improvements) contribute back to core framework
|
|
273
|
-
|
|
274
|
-
#### Inward Evolution (Framework Evolution)
|
|
275
|
-
|
|
276
|
-
When iterating on AutoSpec **itself**, the framework uses its own process to improve (dogfooding):
|
|
277
|
-
|
|
278
|
-
```
|
|
279
|
-
AutoSpec improvement需求 → Run AutoSpec pipeline → practice-log → framework evolves
|
|
280
|
-
↓
|
|
281
|
-
Same iteration is both output and evolution signal
|
|
282
|
-
```
|
|
283
|
-
|
|
284
|
-
- AutoSpec's own development follows startup gate and double-layer validation
|
|
285
|
-
- Framework file changes must be validated through the framework's own review process
|
|
286
|
-
- The framework gets better with use, forming a flywheel effect
|
|
287
|
-
|
|
288
|
-
### Evolution Zones
|
|
289
|
-
|
|
290
|
-
| Zone | Contents | Rule |
|
|
291
|
-
|------|----------|------|
|
|
292
|
-
| **Frozen** | Constitution, evolution rules, core principles | Human-only changes. Never auto-modified. |
|
|
293
|
-
| **Controlled** | Pipeline stages, universal skills, role profiles | Auto-proposed, human-approved. |
|
|
294
|
-
| **Free** | Domain skills, decision trees, benchmarks | Auto-evolved, validator-verified. |
|
|
295
|
-
|
|
296
|
-
**Test knowledge evolution**: Test knowledge in `environment/integration/testing/` evolves via skill-distiller — learns from test execution patterns, generates proposals for human approval.
|
|
297
|
-
|
|
298
|
-
**Key safety principle**: The evolution system cannot modify its own evaluation criteria (immutable harness).
|
|
299
|
-
|
|
300
|
-
### Evolution Loop
|
|
301
|
-
|
|
302
|
-
```
|
|
303
|
-
Execute Pipeline → Collect Signals → Analyze Patterns → Propose Changes → Validate → Accept/Reject
|
|
304
|
-
↓
|
|
305
|
-
Regression? → Auto-rollback
|
|
306
|
-
```
|
|
307
|
-
|
|
308
|
-
**Fitness function**: Layer 1+2 pass rate, retry count, human intervention rate, delivery success rate. Any safety metric regression → change rejected even if other metrics improve.
|
|
309
|
-
|
|
310
|
-
### Enterprise Adaptation
|
|
311
|
-
|
|
312
|
-
```
|
|
313
|
-
┌─────────────────────────────────┐
|
|
314
|
-
│ Enterprise Overlay │ ← Org-specific (not upstreamed)
|
|
315
|
-
│ org-constitution.md │ Additional red lines
|
|
316
|
-
│ org-skills/ │ Domain-specific skills
|
|
317
|
-
│ domain-knowledge/ │ Industry knowledge
|
|
318
|
-
├─────────────────────────────────┤
|
|
319
|
-
│ AutoSpec Core Framework │ ← npm install (upgradeable)
|
|
320
|
-
│ constitution.md │
|
|
321
|
-
│ pipeline/ skills/ roles/ ... │
|
|
322
|
-
└─────────────────────────────────┘
|
|
323
|
-
```
|
|
324
|
-
|
|
325
|
-
Customize via `autospec init --domain <domain>`. The overlay adds domain-specific rules, checklists, and skills **without forking** the core framework.
|
|
326
|
-
|
|
327
|
-
## Project Structure
|
|
328
|
-
|
|
329
|
-
```
|
|
330
|
-
your-project/
|
|
331
|
-
├── .autospec/
|
|
332
|
-
│ ├── knowledge/ # Core knowledge (copied from npm)
|
|
333
|
-
│ ├── runtime/ # Current pipeline state
|
|
334
|
-
│ │ ├── config.json # Project configuration
|
|
335
|
-
│ │ ├── state.json # Pipeline state tracking
|
|
336
|
-
│ │ └── metrics.json # Quality metrics (auto-collected)
|
|
337
|
-
│ ├── environment/ # Environment integration layer
|
|
338
|
-
│ │ ├── env-knowledge/ # Middleware knowledge (mysql.yaml, redis.yaml)
|
|
339
|
-
│ │ ├── component-lib/ # Organization components
|
|
340
|
-
│ │ ├── integration/ # CI/CD, testing, deployment configs
|
|
341
|
-
│ │ └── registry.json # Knowledge registry
|
|
342
|
-
│ ├── specs/ # Pipeline artifacts (persistent)
|
|
343
|
-
│ │ └── {feature}/ # Per-feature outputs
|
|
344
|
-
│ │ ├── requirement.md
|
|
345
|
-
│ │ ├── design.md
|
|
346
|
-
│ │ ├── contracts/
|
|
347
|
-
│ │ ├── reviews/
|
|
348
|
-
│ │ └── tests/
|
|
349
|
-
│ ├── archives/ # Archived pipeline runs
|
|
350
|
-
│ └── evolution/ # Self-evolution data
|
|
351
|
-
│ ├── proposals/ # Evolution proposals (human-approved)
|
|
352
|
-
│ ├── practice-log/ # Practice logs
|
|
353
|
-
│ └── evolution-log.json # Evolution audit trail
|
|
354
|
-
└── .claude/
|
|
355
|
-
├── commands/
|
|
356
|
-
│ └── autospec/ # 8 slash commands (auto-generated)
|
|
357
|
-
│ ├── run.md # Main entry with mode picker
|
|
358
|
-
│ ├── explore.md # Big-phase: exploration
|
|
359
|
-
│ ├── propose.md # Big-phase: design
|
|
360
|
-
│ ├── apply.md # Big-phase: implementation
|
|
361
|
-
│ ├── archive.md # Big-phase: delivery
|
|
362
|
-
│ ├── status.md # Utility: state view
|
|
363
|
-
│ ├── validate.md # Utility: Layer 1 validation
|
|
364
|
-
│ └── evolve.md # Utility: self-evolution
|
|
365
|
-
├── skills/ # Auto-triggered skills
|
|
366
|
-
├── agents/ # Isolated agents (reviewer/test-reviewer/...)
|
|
367
|
-
└── settings.json # Hooks configuration
|
|
368
|
-
```
|
|
369
|
-
|
|
370
|
-
**AutoSpec source:**
|
|
371
|
-
```
|
|
372
|
-
autospec/
|
|
373
|
-
├── knowledge/ # The core knowledge
|
|
374
|
-
│ ├── constitution.md # 13 constitutional red lines
|
|
375
|
-
│ ├── evolution.md # Self-evolution mechanism
|
|
376
|
-
│ ├── pipeline/ # 6-stage process definitions
|
|
377
|
-
│ ├── methodology/ # Design principles + checklists + cognitive enhancement
|
|
378
|
-
│ ├── skills/ # Executable AI skills (do + review)
|
|
379
|
-
│ ├── roles/ # Role profiles (backend/frontend/data/ai/quality)
|
|
380
|
-
│ ├── environment/ # Environment integration protocol
|
|
381
|
-
│ ├── config/ # Configuration files (validation patterns, team triggers)
|
|
382
|
-
│ └── hooks/ # Hook scripts (deterministic guards)
|
|
383
|
-
├── src/ # CLI tool source
|
|
384
|
-
│ └── core/
|
|
385
|
-
│ ├── environment/ # Environment detection & knowledge management
|
|
386
|
-
│ ├── generators/ # Code generators (commands, skills, agents, hooks)
|
|
387
|
-
│ ├── templates/ # Template files (moved from root templates/)
|
|
388
|
-
│ └── test/ # Test infrastructure
|
|
389
|
-
├── bin/ # CLI entry point
|
|
390
|
-
└── docs/ # Package documentation
|
|
391
|
-
```
|
|
392
|
-
|
|
393
|
-
## Safety Model
|
|
394
|
-
|
|
395
|
-
AutoSpec enforces safety through four layers:
|
|
396
|
-
|
|
397
|
-
1. **Constitutional Gate** — 13 red lines that cannot be violated (see `knowledge/principles/constitution.md`)
|
|
398
|
-
2. **Permission Control** — Each agent only accesses its authorized tools
|
|
399
|
-
3. **Stop-the-Line** — Security vulnerability, data loss risk, or 3 failed retries → immediate halt
|
|
400
|
-
- **Precision Retry**: Level 1 (inline retry) → Level 2 (fix loop, max 3 times) → Level 3 (escalate to human)
|
|
401
|
-
4. **Irreversible Action Guard** — DB migrations, deployments, external API calls → require human confirmation
|
|
402
|
-
|
|
403
|
-
Evolution adds a fifth layer:
|
|
404
|
-
|
|
405
|
-
5. **Immutable Harness** — The evolution system cannot modify its own evaluation criteria, constitution, or evolution rules
|
|
406
|
-
|
|
407
|
-
## Quality Monitoring
|
|
408
|
-
|
|
409
|
-
AutoSpec automatically tracks quality metrics during pipeline execution via deterministic hooks:
|
|
410
|
-
|
|
411
|
-
| Metric | Source | Purpose |
|
|
412
|
-
|--------|--------|---------|
|
|
413
|
-
| Layer 1 pass/fail rate | `layer1-validator` hook | Code quality baseline |
|
|
414
|
-
| Retry count per stage | `layer1-validator` hook | Process smoothness |
|
|
415
|
-
| Human intervention count | `layer1-validator` hook | Autonomy capability |
|
|
416
|
-
| Scope deviation events | `scope-sentinel` hook | Implementation discipline |
|
|
417
|
-
| Error patterns | `layer1-validator` hook | Evolution priority |
|
|
418
|
-
|
|
419
|
-
Metrics are stored in `.autospec/runtime/metrics.json` and automatically fed into practice-log at delivery.
|
|
420
|
-
|
|
421
|
-
## Cognitive Enhancement
|
|
422
|
-
|
|
423
|
-
AutoSpec injects 10 cognitive enhancement principles ([`knowledge/principles/principles.md`](knowledge/principles/principles.md)) into each pipeline stage:
|
|
424
|
-
|
|
425
|
-
| Principle | Stage Application |
|
|
426
|
-
|-----------|------------------|
|
|
427
|
-
| **CP1** Partner mode — challenge assumptions, flag blind spots | Requirement, Review, Test |
|
|
428
|
-
| **CP3** Ask before act — structured uncertainty management | Requirement, Design |
|
|
429
|
-
| **CP4** Complete logic chain — no conclusion without derivation | Design, Review |
|
|
430
|
-
| **CP5** Confidence labeling — mark uncertain judgments | All stages |
|
|
431
|
-
| **CP6** Error as signal — every retry/correction drives evolution | Test, Evolve |
|
|
432
|
-
| **CP8** Deviation detection — graduated 3-level alerts | Implementation, Delivery |
|
|
433
|
-
| **CP9** Just enough — resist overengineering | Design, Implementation |
|
|
434
|
-
| **CP10** Self-check before output | Implementation, Test, Delivery |
|
|
435
|
-
|
|
436
|
-
## Documentation
|
|
437
|
-
|
|
438
|
-
| Document | Description |
|
|
439
|
-
|----------|-------------|
|
|
440
|
-
| [Design Philosophy](docs/design-philosophy.md) | Why AutoSpec exists, core principles, design decisions |
|
|
441
|
-
| [Architecture](docs/architecture.md) | How it works — pipeline, validation, integration, evolution |
|
|
442
|
-
| [Getting Started](docs/getting-started.md) | Practical guide from install to first full pipeline run |
|
|
443
|
-
| [Comparisons](docs/comparisons.md) | Detailed comparison with OpenSpec, Spec Kit, autoresearch, Claude Code |
|
|
444
|
-
| [Environment Integration](knowledge/environment/overview.md) | Middleware detection, knowledge management, org knowledge import |
|
|
445
|
-
|
|
446
|
-
## Design Philosophy
|
|
447
|
-
|
|
448
|
-
See [`knowledge/principles/design-philosophy.md`](knowledge/principles/design-philosophy.md) for the complete 18 design principles (DP1–DP18), including:
|
|
449
|
-
|
|
450
|
-
- **DP1** Double-layer verification
|
|
451
|
-
- **DP2** Do-review separation
|
|
452
|
-
- **DP6** Precision retry (not full redo)
|
|
453
|
-
- **DP7** Anti-pattern inoculation
|
|
454
|
-
- **DP8** CSO principle (force full skill loading)
|
|
455
|
-
- **DP10** Safety & emergency stop
|
|
456
|
-
- **DP12** Taming non-determinism
|
|
457
|
-
- **DP16** Template-as-Constraint (shift-left quality)
|
|
458
|
-
- **DP17** Structured clarification protocol
|
|
459
|
-
- **DP18** Cross-artifact consistency analysis
|
|
460
|
-
|
|
461
|
-
## Contributing
|
|
462
|
-
|
|
463
|
-
See [CONTRIBUTING.md](./CONTRIBUTING.md). We welcome contributions to:
|
|
464
|
-
- Framework pipeline and skill definitions
|
|
465
|
-
- Role profiles for new domains
|
|
466
|
-
- CLI tooling improvements
|
|
467
|
-
- Practice log entries from real usage
|
|
468
|
-
- Documentation and translations
|
|
469
|
-
|
|
470
|
-
## License
|
|
471
|
-
|
|
472
|
-
[MIT](./LICENSE)
|
package/bin/autospec.js
DELETED