sinapse-ai 9.2.0 → 9.3.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/.claude/hooks/README.md +1 -0
- package/.claude/hooks/enforce-architecture-first.py +197 -196
- package/.claude/hooks/install-hooks.sh +1 -0
- package/.claude/hooks/mind-clone-governance.py +193 -192
- package/.claude/hooks/pre-commit-version-check.sh +1 -0
- package/.claude/hooks/precompact-session-digest.cjs +1 -0
- package/.claude/hooks/precompact-wrapper.cjs +1 -0
- package/.claude/hooks/read-protection.py +152 -151
- package/.claude/hooks/sql-governance.py +183 -182
- package/.claude/hooks/synapse-engine.cjs +1 -0
- package/.claude/hooks/synapse-wrapper.cjs +1 -0
- package/.claude/hooks/write-path-validation.py +195 -194
- package/.claude/rules/ids-principles.md +1 -0
- package/.claude/rules/squad-awareness.md +71 -0
- package/.claude/rules/story-lifecycle.md +1 -0
- package/.claude/rules/tool-examples.md +1 -0
- package/.claude/rules/workflow-execution.md +1 -0
- package/.sinapse-ai/cli/commands/config/index.js +1 -0
- package/.sinapse-ai/cli/commands/generate/index.js +1 -0
- package/.sinapse-ai/cli/commands/manifest/index.js +1 -0
- package/.sinapse-ai/cli/commands/manifest/regenerate.js +1 -0
- package/.sinapse-ai/cli/commands/manifest/validate.js +1 -0
- package/.sinapse-ai/cli/commands/mcp/add.js +1 -0
- package/.sinapse-ai/cli/commands/mcp/index.js +1 -0
- package/.sinapse-ai/cli/commands/mcp/link.js +1 -0
- package/.sinapse-ai/cli/commands/mcp/setup.js +1 -0
- package/.sinapse-ai/cli/commands/mcp/status.js +1 -0
- package/.sinapse-ai/cli/commands/metrics/cleanup.js +1 -0
- package/.sinapse-ai/cli/commands/metrics/index.js +1 -0
- package/.sinapse-ai/cli/commands/metrics/record.js +1 -0
- package/.sinapse-ai/cli/commands/metrics/seed.js +1 -0
- package/.sinapse-ai/cli/commands/metrics/show.js +1 -0
- package/.sinapse-ai/cli/commands/migrate/analyze.js +1 -0
- package/.sinapse-ai/cli/commands/migrate/backup.js +1 -0
- package/.sinapse-ai/cli/commands/migrate/execute.js +1 -0
- package/.sinapse-ai/cli/commands/migrate/index.js +1 -0
- package/.sinapse-ai/cli/commands/migrate/rollback.js +1 -0
- package/.sinapse-ai/cli/commands/migrate/update-imports.js +1 -0
- package/.sinapse-ai/cli/commands/migrate/validate.js +1 -0
- package/.sinapse-ai/cli/commands/qa/run.js +1 -0
- package/.sinapse-ai/cli/commands/qa/status.js +1 -0
- package/.sinapse-ai/cli/commands/workers/formatters/info-formatter.js +1 -0
- package/.sinapse-ai/cli/commands/workers/formatters/list-table.js +1 -0
- package/.sinapse-ai/cli/commands/workers/formatters/list-tree.js +1 -0
- package/.sinapse-ai/cli/commands/workers/index.js +1 -0
- package/.sinapse-ai/cli/commands/workers/info.js +1 -0
- package/.sinapse-ai/cli/commands/workers/list.js +1 -0
- package/.sinapse-ai/cli/commands/workers/search-filters.js +1 -0
- package/.sinapse-ai/cli/commands/workers/search-keyword.js +1 -0
- package/.sinapse-ai/cli/commands/workers/search-semantic.js +1 -0
- package/.sinapse-ai/cli/commands/workers/search.js +1 -0
- package/.sinapse-ai/cli/commands/workers/utils/pagination.js +1 -0
- package/.sinapse-ai/cli/index.js +1 -0
- package/.sinapse-ai/cli/utils/output-formatter-cli.js +1 -0
- package/.sinapse-ai/cli/utils/score-calculator.js +1 -0
- package/.sinapse-ai/core/README.md +1 -0
- package/.sinapse-ai/core/code-intel/code-intel-client.js +1 -0
- package/.sinapse-ai/core/code-intel/code-intel-enricher.js +1 -0
- package/.sinapse-ai/core/code-intel/helpers/creation-helper.js +1 -0
- package/.sinapse-ai/core/code-intel/helpers/dev-helper.js +1 -0
- package/.sinapse-ai/core/code-intel/helpers/devops-helper.js +1 -0
- package/.sinapse-ai/core/code-intel/helpers/planning-helper.js +1 -0
- package/.sinapse-ai/core/code-intel/helpers/qa-helper.js +1 -0
- package/.sinapse-ai/core/code-intel/helpers/story-helper.js +1 -0
- package/.sinapse-ai/core/code-intel/hook-runtime.js +1 -0
- package/.sinapse-ai/core/code-intel/index.js +1 -0
- package/.sinapse-ai/core/code-intel/providers/code-graph-provider.js +1 -0
- package/.sinapse-ai/core/code-intel/providers/provider-interface.js +1 -0
- package/.sinapse-ai/core/code-intel/providers/registry-provider.js +1 -0
- package/.sinapse-ai/core/code-intel/registry-syncer.js +1 -0
- package/.sinapse-ai/core/config/config-cache.js +1 -0
- package/.sinapse-ai/core/config/config-loader.js +1 -0
- package/.sinapse-ai/core/config/config-resolver.js +1 -0
- package/.sinapse-ai/core/config/env-interpolator.js +1 -0
- package/.sinapse-ai/core/config/merge-utils.js +1 -0
- package/.sinapse-ai/core/config/migrate-config.js +1 -0
- package/.sinapse-ai/core/config/schemas/framework-config.schema.json +2 -1
- package/.sinapse-ai/core/config/schemas/local-config.schema.json +1 -0
- package/.sinapse-ai/core/config/schemas/project-config.schema.json +1 -0
- package/.sinapse-ai/core/config/schemas/user-config.schema.json +1 -0
- package/.sinapse-ai/core/config/template-overrides.js +1 -0
- package/.sinapse-ai/core/config/templates/user-config.yaml +1 -0
- package/.sinapse-ai/core/docs/SHARD-TRANSLATION-GUIDE.md +1 -0
- package/.sinapse-ai/core/docs/component-creation-guide.md +1 -1
- package/.sinapse-ai/core/docs/session-update-pattern.md +1 -0
- package/.sinapse-ai/core/docs/template-syntax.md +1 -1
- package/.sinapse-ai/core/docs/troubleshooting-guide.md +1 -1
- package/.sinapse-ai/core/doctor/checks/agent-memory.js +1 -0
- package/.sinapse-ai/core/doctor/checks/claude-md.js +1 -0
- package/.sinapse-ai/core/doctor/checks/code-intel.js +1 -0
- package/.sinapse-ai/core/doctor/checks/commands-count.js +1 -0
- package/.sinapse-ai/core/doctor/checks/core-config.js +1 -0
- package/.sinapse-ai/core/doctor/checks/entity-registry.js +1 -0
- package/.sinapse-ai/core/doctor/checks/git-hooks.js +1 -0
- package/.sinapse-ai/core/doctor/checks/graph-dashboard.js +1 -0
- package/.sinapse-ai/core/doctor/checks/hooks-claude-count.js +1 -0
- package/.sinapse-ai/core/doctor/checks/ide-sync.js +1 -0
- package/.sinapse-ai/core/doctor/checks/node-version.js +1 -0
- package/.sinapse-ai/core/doctor/checks/npm-packages.js +1 -0
- package/.sinapse-ai/core/doctor/checks/rules-files.js +1 -0
- package/.sinapse-ai/core/doctor/checks/settings-json.js +1 -0
- package/.sinapse-ai/core/doctor/checks/skills-count.js +1 -0
- package/.sinapse-ai/core/doctor/fix-handler.js +1 -0
- package/.sinapse-ai/core/doctor/formatters/json.js +1 -0
- package/.sinapse-ai/core/doctor/formatters/text.js +1 -0
- package/.sinapse-ai/core/elicitation/agent-elicitation.js +1 -1
- package/.sinapse-ai/core/elicitation/elicitation-engine.js +1 -0
- package/.sinapse-ai/core/elicitation/session-manager.js +1 -0
- package/.sinapse-ai/core/elicitation/task-elicitation.js +1 -1
- package/.sinapse-ai/core/events/dashboard-emitter.js +1 -0
- package/.sinapse-ai/core/events/index.js +1 -0
- package/.sinapse-ai/core/events/types.js +1 -0
- package/.sinapse-ai/core/execution/autonomous-build-loop.js +1 -0
- package/.sinapse-ai/core/execution/build-orchestrator.js +1 -0
- package/.sinapse-ai/core/execution/build-state-manager.js +1 -0
- package/.sinapse-ai/core/execution/context-injector.js +1 -0
- package/.sinapse-ai/core/execution/parallel-executor.js +1 -0
- package/.sinapse-ai/core/execution/parallel-monitor.js +1 -0
- package/.sinapse-ai/core/execution/rate-limit-manager.js +1 -0
- package/.sinapse-ai/core/execution/result-aggregator.js +1 -0
- package/.sinapse-ai/core/execution/semantic-merge-engine.js +1 -0
- package/.sinapse-ai/core/execution/subagent-dispatcher.js +1 -0
- package/.sinapse-ai/core/execution/wave-executor.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/cli.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/data-sources/code-intel-source.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/data-sources/metrics-source.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/data-sources/registry-source.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/formatters/dot-formatter.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/formatters/html-formatter.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/formatters/json-formatter.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/formatters/mermaid-formatter.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/index.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/renderers/stats-renderer.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/renderers/status-renderer.js +1 -0
- package/.sinapse-ai/core/graph-dashboard/renderers/tree-renderer.js +1 -0
- package/.sinapse-ai/core/health-check/base-check.js +1 -0
- package/.sinapse-ai/core/health-check/check-registry.js +1 -0
- package/.sinapse-ai/core/health-check/checks/deployment/build-config.js +1 -0
- package/.sinapse-ai/core/health-check/checks/deployment/ci-config.js +1 -0
- package/.sinapse-ai/core/health-check/checks/deployment/deployment-readiness.js +1 -0
- package/.sinapse-ai/core/health-check/checks/deployment/docker-config.js +1 -0
- package/.sinapse-ai/core/health-check/checks/deployment/env-file.js +1 -0
- package/.sinapse-ai/core/health-check/checks/deployment/index.js +1 -0
- package/.sinapse-ai/core/health-check/checks/index.js +1 -0
- package/.sinapse-ai/core/health-check/checks/local/disk-space.js +1 -0
- package/.sinapse-ai/core/health-check/checks/local/environment-vars.js +1 -0
- package/.sinapse-ai/core/health-check/checks/local/git-install.js +1 -0
- package/.sinapse-ai/core/health-check/checks/local/ide-detection.js +1 -0
- package/.sinapse-ai/core/health-check/checks/local/index.js +1 -0
- package/.sinapse-ai/core/health-check/checks/local/memory.js +1 -0
- package/.sinapse-ai/core/health-check/checks/local/network.js +1 -0
- package/.sinapse-ai/core/health-check/checks/local/npm-install.js +1 -0
- package/.sinapse-ai/core/health-check/checks/local/shell-environment.js +1 -0
- package/.sinapse-ai/core/health-check/checks/project/agent-config.js +1 -0
- package/.sinapse-ai/core/health-check/checks/project/dependencies.js +1 -0
- package/.sinapse-ai/core/health-check/checks/project/framework-config.js +1 -0
- package/.sinapse-ai/core/health-check/checks/project/node-version.js +1 -0
- package/.sinapse-ai/core/health-check/checks/project/package-json.js +1 -0
- package/.sinapse-ai/core/health-check/checks/project/sinapse-directory.js +1 -0
- package/.sinapse-ai/core/health-check/checks/project/task-definitions.js +1 -0
- package/.sinapse-ai/core/health-check/checks/project/workflow-dependencies.js +1 -0
- package/.sinapse-ai/core/health-check/checks/repository/branch-protection.js +1 -0
- package/.sinapse-ai/core/health-check/checks/repository/commit-history.js +1 -0
- package/.sinapse-ai/core/health-check/checks/repository/conflicts.js +1 -0
- package/.sinapse-ai/core/health-check/checks/repository/git-repo.js +1 -0
- package/.sinapse-ai/core/health-check/checks/repository/git-status.js +1 -0
- package/.sinapse-ai/core/health-check/checks/repository/gitignore.js +1 -0
- package/.sinapse-ai/core/health-check/checks/repository/index.js +1 -0
- package/.sinapse-ai/core/health-check/checks/repository/large-files.js +1 -0
- package/.sinapse-ai/core/health-check/checks/repository/lockfile-integrity.js +1 -0
- package/.sinapse-ai/core/health-check/checks/services/api-endpoints.js +1 -0
- package/.sinapse-ai/core/health-check/checks/services/claude-code.js +1 -0
- package/.sinapse-ai/core/health-check/checks/services/github-cli.js +1 -0
- package/.sinapse-ai/core/health-check/checks/services/index.js +1 -2
- package/.sinapse-ai/core/health-check/checks/services/mcp-integration.js +1 -0
- package/.sinapse-ai/core/health-check/engine.js +1 -0
- package/.sinapse-ai/core/health-check/healers/backup-manager.js +1 -0
- package/.sinapse-ai/core/health-check/healers/index.js +1 -0
- package/.sinapse-ai/core/health-check/index.js +1 -0
- package/.sinapse-ai/core/health-check/reporters/console.js +1 -0
- package/.sinapse-ai/core/health-check/reporters/index.js +1 -0
- package/.sinapse-ai/core/health-check/reporters/markdown.js +1 -0
- package/.sinapse-ai/core/ideation/ideation-engine.js +1 -0
- package/.sinapse-ai/core/ids/README.md +1 -0
- package/.sinapse-ai/core/ids/circuit-breaker.js +1 -0
- package/.sinapse-ai/core/ids/framework-governor.js +1 -0
- package/.sinapse-ai/core/ids/gates/g1-epic-creation.js +1 -0
- package/.sinapse-ai/core/ids/gates/g2-story-creation.js +1 -0
- package/.sinapse-ai/core/ids/gates/g3-story-validation.js +1 -0
- package/.sinapse-ai/core/ids/gates/g4-dev-context.js +1 -0
- package/.sinapse-ai/core/ids/incremental-decision-engine.js +1 -0
- package/.sinapse-ai/core/ids/index.js +1 -0
- package/.sinapse-ai/core/ids/layer-classifier.js +1 -0
- package/.sinapse-ai/core/ids/registry-healer.js +1 -0
- package/.sinapse-ai/core/ids/registry-loader.js +1 -0
- package/.sinapse-ai/core/ids/registry-updater.js +1 -0
- package/.sinapse-ai/core/ids/verification-gate.js +1 -0
- package/.sinapse-ai/core/index.esm.js +1 -0
- package/.sinapse-ai/core/index.js +1 -0
- package/.sinapse-ai/core/manifest/manifest-generator.js +1 -0
- package/.sinapse-ai/core/manifest/manifest-validator.js +1 -0
- package/.sinapse-ai/core/mcp/config-migrator.js +1 -0
- package/.sinapse-ai/core/mcp/global-config-manager.js +1 -0
- package/.sinapse-ai/core/mcp/index.js +1 -0
- package/.sinapse-ai/core/mcp/os-detector.js +1 -0
- package/.sinapse-ai/core/mcp/symlink-manager.js +1 -0
- package/.sinapse-ai/core/memory/__tests__/active-modules.verify.js +1 -0
- package/.sinapse-ai/core/memory/gotchas-memory.js +1 -0
- package/.sinapse-ai/core/migration/migration-config.yaml +1 -0
- package/.sinapse-ai/core/migration/module-mapping.yaml +1 -0
- package/.sinapse-ai/core/orchestration/agent-invoker.js +1 -0
- package/.sinapse-ai/core/orchestration/bob-orchestrator.js +1 -0
- package/.sinapse-ai/core/orchestration/bob-status-writer.js +1 -0
- package/.sinapse-ai/core/orchestration/bob-surface-criteria.yaml +1 -0
- package/.sinapse-ai/core/orchestration/brownfield-handler.js +1 -0
- package/.sinapse-ai/core/orchestration/checklist-runner.js +1 -0
- package/.sinapse-ai/core/orchestration/cli-commands.js +1 -0
- package/.sinapse-ai/core/orchestration/condition-evaluator.js +1 -0
- package/.sinapse-ai/core/orchestration/context-manager.js +1 -0
- package/.sinapse-ai/core/orchestration/dashboard-integration.js +1 -0
- package/.sinapse-ai/core/orchestration/data-lifecycle-manager.js +1 -0
- package/.sinapse-ai/core/orchestration/epic-context-accumulator.js +1 -0
- package/.sinapse-ai/core/orchestration/execution-profile-resolver.js +1 -0
- package/.sinapse-ai/core/orchestration/executor-assignment.js +1 -0
- package/.sinapse-ai/core/orchestration/executors/epic-3-executor.js +1 -0
- package/.sinapse-ai/core/orchestration/executors/epic-4-executor.js +1 -0
- package/.sinapse-ai/core/orchestration/executors/epic-5-executor.js +1 -0
- package/.sinapse-ai/core/orchestration/executors/epic-6-executor.js +1 -0
- package/.sinapse-ai/core/orchestration/executors/epic-executor.js +1 -0
- package/.sinapse-ai/core/orchestration/executors/index.js +1 -0
- package/.sinapse-ai/core/orchestration/gate-evaluator.js +1 -0
- package/.sinapse-ai/core/orchestration/greenfield-handler.js +1 -0
- package/.sinapse-ai/core/orchestration/index.js +1 -0
- package/.sinapse-ai/core/orchestration/lock-manager.js +1 -0
- package/.sinapse-ai/core/orchestration/master-orchestrator.js +1 -0
- package/.sinapse-ai/core/orchestration/message-formatter.js +1 -0
- package/.sinapse-ai/core/orchestration/parallel-executor.js +1 -0
- package/.sinapse-ai/core/orchestration/recovery-handler.js +1 -0
- package/.sinapse-ai/core/orchestration/session-state.js +1 -0
- package/.sinapse-ai/core/orchestration/skill-dispatcher.js +1 -0
- package/.sinapse-ai/core/orchestration/subagent-prompt-builder.js +1 -0
- package/.sinapse-ai/core/orchestration/surface-checker.js +1 -0
- package/.sinapse-ai/core/orchestration/task-complexity-classifier.js +1 -0
- package/.sinapse-ai/core/orchestration/tech-stack-detector.js +1 -0
- package/.sinapse-ai/core/orchestration/terminal-spawner.js +1 -0
- package/.sinapse-ai/core/orchestration/workflow-executor.js +1 -0
- package/.sinapse-ai/core/orchestration/workflow-orchestrator.js +1 -0
- package/.sinapse-ai/core/permissions/__tests__/permission-mode.test.js +1 -0
- package/.sinapse-ai/core/permissions/index.js +1 -0
- package/.sinapse-ai/core/permissions/operation-guard.js +1 -0
- package/.sinapse-ai/core/permissions/permission-mode.js +1 -0
- package/.sinapse-ai/core/quality-gates/base-layer.js +1 -0
- package/.sinapse-ai/core/quality-gates/checklist-generator.js +1 -0
- package/.sinapse-ai/core/quality-gates/human-review-orchestrator.js +1 -0
- package/.sinapse-ai/core/quality-gates/index.js +244 -0
- package/.sinapse-ai/core/quality-gates/layer1-precommit.js +1 -0
- package/.sinapse-ai/core/quality-gates/layer2-pr-automation.js +1 -0
- package/.sinapse-ai/core/quality-gates/layer3-human-review.js +1 -0
- package/.sinapse-ai/core/quality-gates/notification-manager.js +1 -0
- package/.sinapse-ai/core/quality-gates/quality-gate-config.js +462 -0
- package/.sinapse-ai/core/quality-gates/quality-gate-config.yaml +105 -16
- package/.sinapse-ai/core/quality-gates/quality-gate-manager.js +1 -0
- package/.sinapse-ai/core/registry/README.md +1 -0
- package/.sinapse-ai/core/registry/build-registry.js +1 -0
- package/.sinapse-ai/core/registry/registry-loader.js +1 -0
- package/.sinapse-ai/core/registry/registry-schema.json +1 -0
- package/.sinapse-ai/core/registry/service-registry.json +0 -120
- package/.sinapse-ai/core/registry/validate-registry.js +1 -0
- package/.sinapse-ai/core/session/context-detector.js +1 -0
- package/.sinapse-ai/core/session/context-loader.js +1 -0
- package/.sinapse-ai/core/synapse/context/context-builder.js +1 -0
- package/.sinapse-ai/core/synapse/context/context-tracker.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/collectors/consistency-collector.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/collectors/hook-collector.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/collectors/manifest-collector.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/collectors/output-analyzer.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/collectors/pipeline-collector.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/collectors/quality-collector.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/collectors/relevance-matrix.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/collectors/safe-read-json.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/collectors/session-collector.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/collectors/timing-collector.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/collectors/uap-collector.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/report-formatter.js +1 -0
- package/.sinapse-ai/core/synapse/diagnostics/synapse-diagnostics.js +1 -0
- package/.sinapse-ai/core/synapse/domain/domain-loader.js +1 -0
- package/.sinapse-ai/core/synapse/engine.js +1 -0
- package/.sinapse-ai/core/synapse/layers/l0-constitution.js +1 -0
- package/.sinapse-ai/core/synapse/layers/l1-global.js +1 -0
- package/.sinapse-ai/core/synapse/layers/l2-agent.js +1 -0
- package/.sinapse-ai/core/synapse/layers/l3-workflow.js +1 -0
- package/.sinapse-ai/core/synapse/layers/l4-task.js +1 -0
- package/.sinapse-ai/core/synapse/layers/l5-squad.js +1 -0
- package/.sinapse-ai/core/synapse/layers/l6-keyword.js +1 -0
- package/.sinapse-ai/core/synapse/layers/l7-star-command.js +1 -0
- package/.sinapse-ai/core/synapse/layers/layer-processor.js +1 -0
- package/.sinapse-ai/core/synapse/memory/memory-bridge.js +1 -0
- package/.sinapse-ai/core/synapse/memory/synapse-memory-provider.js +1 -0
- package/.sinapse-ai/core/synapse/output/formatter.js +1 -0
- package/.sinapse-ai/core/synapse/runtime/hook-runtime.js +1 -0
- package/.sinapse-ai/core/synapse/scripts/generate-constitution.js +1 -0
- package/.sinapse-ai/core/synapse/session/session-manager.js +1 -0
- package/.sinapse-ai/core/synapse/utils/atomic-write.js +1 -0
- package/.sinapse-ai/core/synapse/utils/paths.js +1 -0
- package/.sinapse-ai/core/synapse/utils/tokens.js +1 -0
- package/.sinapse-ai/core/ui/index.js +1 -0
- package/.sinapse-ai/core/ui/observability-panel.js +1 -0
- package/.sinapse-ai/core/ui/panel-renderer.js +1 -0
- package/.sinapse-ai/core/utils/output-formatter.js +1 -0
- package/.sinapse-ai/core/utils/security-utils.js +1 -0
- package/.sinapse-ai/core/utils/yaml-validator.js +1 -0
- package/.sinapse-ai/data/agent-config-requirements.yaml +1 -0
- package/.sinapse-ai/data/capability-detection.js +1 -0
- package/.sinapse-ai/data/entity-registry.yaml +1497 -1486
- package/.sinapse-ai/data/learned-patterns.yaml +1 -0
- package/.sinapse-ai/data/mcp-discipline.js +1 -0
- package/.sinapse-ai/data/mcp-tool-examples.yaml +1 -0
- package/.sinapse-ai/data/registry-update-log.jsonl +693 -0
- package/.sinapse-ai/data/tok2-validation.js +1 -0
- package/.sinapse-ai/data/tok3-token-comparison.js +1 -0
- package/.sinapse-ai/data/tool-registry.yaml +1 -0
- package/.sinapse-ai/data/tool-search-validation.js +1 -0
- package/.sinapse-ai/data/workflow-chains.yaml +1 -0
- package/.sinapse-ai/data/workflow-patterns.yaml +1 -0
- package/.sinapse-ai/data/workflow-state-schema.yaml +1 -0
- package/.sinapse-ai/development/README.md +1 -0
- package/.sinapse-ai/development/agents/analyst/MEMORY.md +1 -0
- package/.sinapse-ai/development/agents/data-engineer/MEMORY.md +1 -0
- package/.sinapse-ai/development/agents/data-engineer.md +1 -0
- package/.sinapse-ai/development/agents/developer/MEMORY.md +1 -0
- package/.sinapse-ai/development/agents/devops/MEMORY.md +1 -0
- package/.sinapse-ai/development/agents/project-lead/MEMORY.md +1 -0
- package/.sinapse-ai/development/agents/quality-gate/MEMORY.md +1 -0
- package/.sinapse-ai/development/agents/sprint-lead/MEMORY.md +1 -0
- package/.sinapse-ai/development/agents/ux/MEMORY.md +1 -0
- package/.sinapse-ai/development/checklists/agent-quality-gate.md +1 -0
- package/.sinapse-ai/development/checklists/brownfield-compatibility-checklist.md +1 -0
- package/.sinapse-ai/development/checklists/issue-triage-checklist.md +1 -0
- package/.sinapse-ai/development/checklists/memory-audit-checklist.md +1 -0
- package/.sinapse-ai/development/checklists/self-critique-checklist.md +1 -0
- package/.sinapse-ai/development/data/quality-dimensions-framework.md +1 -0
- package/.sinapse-ai/development/data/tier-system-framework.md +1 -0
- package/.sinapse-ai/development/scripts/activation-runtime.js +1 -0
- package/.sinapse-ai/development/scripts/agent-assignment-resolver.js +1 -0
- package/.sinapse-ai/development/scripts/agent-config-loader.js +1 -0
- package/.sinapse-ai/development/scripts/agent-exit-hooks.js +1 -0
- package/.sinapse-ai/development/scripts/apply-inline-greeting-all-agents.js +1 -0
- package/.sinapse-ai/development/scripts/approval-workflow.js +1 -1
- package/.sinapse-ai/development/scripts/backlog-manager.js +1 -0
- package/.sinapse-ai/development/scripts/backup-manager.js +1 -1
- package/.sinapse-ai/development/scripts/batch-update-agents-session-context.js +1 -0
- package/.sinapse-ai/development/scripts/branch-manager.js +1 -1
- package/.sinapse-ai/development/scripts/code-quality-improver.js +1 -1
- package/.sinapse-ai/development/scripts/commit-message-generator.js +1 -1
- package/.sinapse-ai/development/scripts/conflict-resolver.js +1 -1
- package/.sinapse-ai/development/scripts/decision-context.js +1 -0
- package/.sinapse-ai/development/scripts/decision-log-generator.js +1 -0
- package/.sinapse-ai/development/scripts/decision-log-indexer.js +1 -0
- package/.sinapse-ai/development/scripts/decision-recorder.js +1 -0
- package/.sinapse-ai/development/scripts/dependency-analyzer.js +1 -1
- package/.sinapse-ai/development/scripts/dev-context-loader.js +1 -0
- package/.sinapse-ai/development/scripts/diff-generator.js +1 -1
- package/.sinapse-ai/development/scripts/elicitation-engine.js +1 -1
- package/.sinapse-ai/development/scripts/elicitation-session-manager.js +1 -1
- package/.sinapse-ai/development/scripts/generate-greeting.js +1 -0
- package/.sinapse-ai/development/scripts/git-wrapper.js +1 -1
- package/.sinapse-ai/development/scripts/greeting-builder.js +1 -0
- package/.sinapse-ai/development/scripts/greeting-config-cli.js +1 -0
- package/.sinapse-ai/development/scripts/greeting-preference-manager.js +1 -0
- package/.sinapse-ai/development/scripts/issue-triage.js +1 -0
- package/.sinapse-ai/development/scripts/manifest-preview.js +1 -1
- package/.sinapse-ai/development/scripts/metrics-tracker.js +1 -1
- package/.sinapse-ai/development/scripts/migrate-task-to-v2.js +1 -0
- package/.sinapse-ai/development/scripts/modification-validator.js +1 -1
- package/.sinapse-ai/development/scripts/pattern-learner.js +1 -1
- package/.sinapse-ai/development/scripts/performance-analyzer.js +1 -1
- package/.sinapse-ai/development/scripts/populate-entity-registry.js +1 -0
- package/.sinapse-ai/development/scripts/refactoring-suggester.js +1 -1
- package/.sinapse-ai/development/scripts/rollback-handler.js +1 -1
- package/.sinapse-ai/development/scripts/security-checker.js +1 -1
- package/.sinapse-ai/development/scripts/skill-validator.js +1 -0
- package/.sinapse-ai/development/scripts/squad/README.md +1 -0
- package/.sinapse-ai/development/scripts/squad/index.js +1 -0
- package/.sinapse-ai/development/scripts/squad/squad-analyzer.js +1 -0
- package/.sinapse-ai/development/scripts/squad/squad-designer.js +1 -0
- package/.sinapse-ai/development/scripts/squad/squad-extender.js +1 -0
- package/.sinapse-ai/development/scripts/squad/squad-generator.js +1 -0
- package/.sinapse-ai/development/scripts/squad/squad-loader.js +1 -0
- package/.sinapse-ai/development/scripts/squad/squad-migrator.js +1 -0
- package/.sinapse-ai/development/scripts/squad/squad-validator.js +1 -0
- package/.sinapse-ai/development/scripts/story-index-generator.js +1 -0
- package/.sinapse-ai/development/scripts/story-manager.js +1 -0
- package/.sinapse-ai/development/scripts/story-update-hook.js +1 -0
- package/.sinapse-ai/development/scripts/task-identifier-resolver.js +1 -0
- package/.sinapse-ai/development/scripts/template-engine.js +1 -1
- package/.sinapse-ai/development/scripts/template-validator.js +1 -1
- package/.sinapse-ai/development/scripts/test-generator.js +1 -1
- package/.sinapse-ai/development/scripts/test-greeting-system.js +1 -0
- package/.sinapse-ai/development/scripts/transaction-manager.js +1 -1
- package/.sinapse-ai/development/scripts/unified-activation-pipeline.js +1 -0
- package/.sinapse-ai/development/scripts/usage-tracker.js +1 -1
- package/.sinapse-ai/development/scripts/validate-filenames.js +1 -0
- package/.sinapse-ai/development/scripts/validate-task-v2.js +1 -0
- package/.sinapse-ai/development/scripts/verify-workflow-gaps.js +1 -0
- package/.sinapse-ai/development/scripts/version-tracker.js +1 -1
- package/.sinapse-ai/development/scripts/workflow-navigator.js +1 -0
- package/.sinapse-ai/development/scripts/workflow-state-manager.js +1 -0
- package/.sinapse-ai/development/scripts/workflow-validator.js +1 -0
- package/.sinapse-ai/development/scripts/yaml-validator.js +1 -1
- package/.sinapse-ai/development/tasks/add-mcp.md +1 -0
- package/.sinapse-ai/development/tasks/advanced-elicitation.md +1 -1
- package/.sinapse-ai/development/tasks/analyst-facilitate-brainstorming.md +1 -1
- package/.sinapse-ai/development/tasks/analyze-brownfield.md +1 -0
- package/.sinapse-ai/development/tasks/analyze-cross-artifact.md +1 -0
- package/.sinapse-ai/development/tasks/analyze-framework.md +1 -1
- package/.sinapse-ai/development/tasks/analyze-performance.md +1 -0
- package/.sinapse-ai/development/tasks/architect-analyze-impact.md +1 -1
- package/.sinapse-ai/development/tasks/audit-codebase.md +1 -0
- package/.sinapse-ai/development/tasks/audit-tailwind-config.md +1 -0
- package/.sinapse-ai/development/tasks/audit-utilities.md +1 -0
- package/.sinapse-ai/development/tasks/blocks/README.md +1 -0
- package/.sinapse-ai/development/tasks/blocks/agent-prompt-template.md +1 -0
- package/.sinapse-ai/development/tasks/blocks/context-loading.md +1 -0
- package/.sinapse-ai/development/tasks/blocks/execution-pattern.md +1 -0
- package/.sinapse-ai/development/tasks/blocks/finalization.md +1 -0
- package/.sinapse-ai/development/tasks/bootstrap-shadcn-library.md +1 -0
- package/.sinapse-ai/development/tasks/build-component.md +1 -0
- package/.sinapse-ai/development/tasks/calculate-roi.md +1 -0
- package/.sinapse-ai/development/tasks/check-docs-links.md +1 -0
- package/.sinapse-ai/development/tasks/ci-cd-configuration.md +1 -0
- package/.sinapse-ai/development/tasks/cleanup-utilities.md +1 -0
- package/.sinapse-ai/development/tasks/cleanup-worktrees.md +1 -0
- package/.sinapse-ai/development/tasks/collaborative-edit.md +1 -1
- package/.sinapse-ai/development/tasks/compose-molecule.md +1 -0
- package/.sinapse-ai/development/tasks/consolidate-patterns.md +1 -0
- package/.sinapse-ai/development/tasks/correct-course.md +1 -1
- package/.sinapse-ai/development/tasks/create-doc.md +1 -0
- package/.sinapse-ai/development/tasks/create-task.md +1 -1
- package/.sinapse-ai/development/tasks/db-analyze-hotpaths.md +1 -0
- package/.sinapse-ai/development/tasks/db-apply-migration.md +1 -0
- package/.sinapse-ai/development/tasks/db-bootstrap.md +1 -0
- package/.sinapse-ai/development/tasks/db-domain-modeling.md +1 -0
- package/.sinapse-ai/development/tasks/db-dry-run.md +1 -0
- package/.sinapse-ai/development/tasks/db-env-check.md +1 -0
- package/.sinapse-ai/development/tasks/db-explain.md +1 -0
- package/.sinapse-ai/development/tasks/db-impersonate.md +1 -0
- package/.sinapse-ai/development/tasks/db-load-csv.md +1 -0
- package/.sinapse-ai/development/tasks/db-policy-apply.md +1 -0
- package/.sinapse-ai/development/tasks/db-rls-audit.md +1 -0
- package/.sinapse-ai/development/tasks/db-rollback.md +1 -0
- package/.sinapse-ai/development/tasks/db-run-sql.md +1 -0
- package/.sinapse-ai/development/tasks/db-schema-audit.md +1 -0
- package/.sinapse-ai/development/tasks/db-seed.md +1 -0
- package/.sinapse-ai/development/tasks/db-smoke-test.md +1 -0
- package/.sinapse-ai/development/tasks/db-snapshot.md +1 -0
- package/.sinapse-ai/development/tasks/db-squad-integration.md +1 -0
- package/.sinapse-ai/development/tasks/db-supabase-setup.md +1 -0
- package/.sinapse-ai/development/tasks/db-verify-order.md +1 -0
- package/.sinapse-ai/development/tasks/deprecate-component.md +1 -1
- package/.sinapse-ai/development/tasks/dev-apply-qa-fixes.md +1 -0
- package/.sinapse-ai/development/tasks/dev-improve-code-quality.md +1 -1
- package/.sinapse-ai/development/tasks/dev-optimize-performance.md +1 -1
- package/.sinapse-ai/development/tasks/dev-suggest-refactoring.md +1 -1
- package/.sinapse-ai/development/tasks/dev-validate-next-story.md +1 -1
- package/.sinapse-ai/development/tasks/document-gotchas.md +1 -0
- package/.sinapse-ai/development/tasks/document-project.md +1 -1
- package/.sinapse-ai/development/tasks/export-design-tokens-dtcg.md +1 -0
- package/.sinapse-ai/development/tasks/extend-pattern.md +1 -0
- package/.sinapse-ai/development/tasks/extract-tokens.md +1 -0
- package/.sinapse-ai/development/tasks/facilitate-brainstorming-session.md +1 -0
- package/.sinapse-ai/development/tasks/generate-ai-frontend-prompt.md +1 -1
- package/.sinapse-ai/development/tasks/generate-documentation.md +1 -0
- package/.sinapse-ai/development/tasks/generate-migration-strategy.md +1 -0
- package/.sinapse-ai/development/tasks/generate-shock-report.md +1 -0
- package/.sinapse-ai/development/tasks/github-devops-pre-push-quality-gate.md +1 -0
- package/.sinapse-ai/development/tasks/github-devops-repository-cleanup.md +1 -0
- package/.sinapse-ai/development/tasks/github-devops-version-management.md +1 -0
- package/.sinapse-ai/development/tasks/github-issue-triage.md +1 -0
- package/.sinapse-ai/development/tasks/ids-health.md +1 -0
- package/.sinapse-ai/development/tasks/ids-query.md +1 -0
- package/.sinapse-ai/development/tasks/improve-self.md +1 -1
- package/.sinapse-ai/development/tasks/index-docs.md +1 -1
- package/.sinapse-ai/development/tasks/integrate-squad.md +1 -0
- package/.sinapse-ai/development/tasks/kb-mode-interaction.md +1 -1
- package/.sinapse-ai/development/tasks/learn-patterns.md +1 -1
- package/.sinapse-ai/development/tasks/list-mcps.md +1 -0
- package/.sinapse-ai/development/tasks/mcp-workflow.md +1 -0
- package/.sinapse-ai/development/tasks/merge-worktree.md +1 -0
- package/.sinapse-ai/development/tasks/modify-agent.md +1 -1
- package/.sinapse-ai/development/tasks/modify-task.md +1 -1
- package/.sinapse-ai/development/tasks/modify-workflow.md +1 -1
- package/.sinapse-ai/development/tasks/orchestrate-resume.md +1 -0
- package/.sinapse-ai/development/tasks/orchestrate-status.md +1 -0
- package/.sinapse-ai/development/tasks/orchestrate-stop.md +1 -0
- package/.sinapse-ai/development/tasks/orchestrate.md +1 -0
- package/.sinapse-ai/development/tasks/po-manage-story-backlog.md +1 -0
- package/.sinapse-ai/development/tasks/po-pull-story-from-clickup.md +1 -0
- package/.sinapse-ai/development/tasks/po-pull-story.md +1 -0
- package/.sinapse-ai/development/tasks/po-sync-story-to-clickup.md +1 -0
- package/.sinapse-ai/development/tasks/po-sync-story.md +1 -0
- package/.sinapse-ai/development/tasks/propose-modification.md +1 -1
- package/.sinapse-ai/development/tasks/publish-npm.md +1 -0
- package/.sinapse-ai/development/tasks/qa-browser-console-check.md +1 -0
- package/.sinapse-ai/development/tasks/qa-evidence-requirements.md +1 -0
- package/.sinapse-ai/development/tasks/qa-false-positive-detection.md +1 -0
- package/.sinapse-ai/development/tasks/qa-gate.md +1 -1
- package/.sinapse-ai/development/tasks/qa-generate-tests.md +1 -1
- package/.sinapse-ai/development/tasks/qa-library-validation.md +1 -0
- package/.sinapse-ai/development/tasks/qa-migration-validation.md +1 -0
- package/.sinapse-ai/development/tasks/qa-nfr-assess.md +1 -1
- package/.sinapse-ai/development/tasks/qa-review-proposal.md +1 -1
- package/.sinapse-ai/development/tasks/qa-risk-profile.md +1 -1
- package/.sinapse-ai/development/tasks/qa-security-checklist.md +1 -0
- package/.sinapse-ai/development/tasks/qa-test-design.md +1 -1
- package/.sinapse-ai/development/tasks/qa-trace-requirements.md +1 -1
- package/.sinapse-ai/development/tasks/remove-mcp.md +1 -0
- package/.sinapse-ai/development/tasks/review-contributor-pr.md +1 -0
- package/.sinapse-ai/development/tasks/run-design-system-pipeline.md +1 -0
- package/.sinapse-ai/development/tasks/run-workflow.md +1 -0
- package/.sinapse-ai/development/tasks/search-mcp.md +1 -0
- package/.sinapse-ai/development/tasks/security-audit.md +1 -0
- package/.sinapse-ai/development/tasks/security-scan.md +1 -0
- package/.sinapse-ai/development/tasks/session-resume.md +1 -0
- package/.sinapse-ai/development/tasks/setup-database.md +1 -0
- package/.sinapse-ai/development/tasks/setup-design-system.md +1 -0
- package/.sinapse-ai/development/tasks/setup-project-docs.md +1 -0
- package/.sinapse-ai/development/tasks/shard-doc.md +1 -1
- package/.sinapse-ai/development/tasks/sm-create-next-story.md +1 -0
- package/.sinapse-ai/development/tasks/squad-creator-analyze.md +1 -0
- package/.sinapse-ai/development/tasks/squad-creator-design.md +1 -0
- package/.sinapse-ai/development/tasks/squad-creator-extend.md +1 -0
- package/.sinapse-ai/development/tasks/squad-creator-list.md +1 -0
- package/.sinapse-ai/development/tasks/squad-creator-migrate.md +1 -0
- package/.sinapse-ai/development/tasks/squad-creator-validate.md +1 -0
- package/.sinapse-ai/development/tasks/sync-documentation.md +1 -1
- package/.sinapse-ai/development/tasks/sync-registry-intel.md +1 -0
- package/.sinapse-ai/development/tasks/tailwind-upgrade.md +1 -0
- package/.sinapse-ai/development/tasks/test-as-user.md +1 -0
- package/.sinapse-ai/development/tasks/test-validation-task.md +1 -0
- package/.sinapse-ai/development/tasks/triage-github-issues.md +1 -0
- package/.sinapse-ai/development/tasks/undo-last.md +1 -1
- package/.sinapse-ai/development/tasks/update-manifest.md +1 -1
- package/.sinapse-ai/development/tasks/update-source-tree.md +1 -0
- package/.sinapse-ai/development/tasks/ux-create-wireframe.md +1 -0
- package/.sinapse-ai/development/tasks/ux-ds-scan-artifact.md +1 -0
- package/.sinapse-ai/development/tasks/ux-user-research.md +1 -0
- package/.sinapse-ai/development/tasks/validate-agents.md +1 -0
- package/.sinapse-ai/development/tasks/validate-workflow.md +1 -0
- package/.sinapse-ai/development/tasks/yolo-toggle.md +1 -0
- package/.sinapse-ai/development/templates/ptc-entity-validation.md +1 -0
- package/.sinapse-ai/development/templates/ptc-qa-gate.md +1 -0
- package/.sinapse-ai/development/templates/ptc-research-aggregation.md +1 -0
- package/.sinapse-ai/development/templates/research-prompt-tmpl.md +1 -0
- package/.sinapse-ai/development/templates/service-template/README.md.hbs +159 -158
- package/.sinapse-ai/development/templates/service-template/__tests__/index.test.ts.hbs +238 -237
- package/.sinapse-ai/development/templates/service-template/client.ts.hbs +404 -403
- package/.sinapse-ai/development/templates/service-template/errors.ts.hbs +183 -182
- package/.sinapse-ai/development/templates/service-template/index.ts.hbs +121 -120
- package/.sinapse-ai/development/templates/service-template/jest.config.js +1 -0
- package/.sinapse-ai/development/templates/service-template/package.json.hbs +88 -87
- package/.sinapse-ai/development/templates/service-template/tsconfig.json +1 -0
- package/.sinapse-ai/development/templates/service-template/types.ts.hbs +146 -145
- package/.sinapse-ai/development/templates/sinapse-doc-template.md +1 -0
- package/.sinapse-ai/development/templates/squad/agent-template.md +1 -0
- package/.sinapse-ai/development/templates/squad/checklist-template.md +1 -0
- package/.sinapse-ai/development/templates/squad/data-template.yaml +1 -0
- package/.sinapse-ai/development/templates/squad/script-template.js +1 -0
- package/.sinapse-ai/development/templates/squad/task-template.md +1 -0
- package/.sinapse-ai/development/templates/squad/template-template.md +1 -0
- package/.sinapse-ai/development/templates/squad/tool-template.js +1 -0
- package/.sinapse-ai/development/templates/squad/workflow-template.yaml +1 -0
- package/.sinapse-ai/development/templates/squad-template/LICENSE +22 -21
- package/.sinapse-ai/development/templates/squad-template/README.md +1 -0
- package/.sinapse-ai/development/templates/squad-template/agents/example-agent.yaml +1 -0
- package/.sinapse-ai/development/templates/squad-template/package.json +1 -0
- package/.sinapse-ai/development/templates/squad-template/squad.yaml +1 -0
- package/.sinapse-ai/development/templates/squad-template/tasks/example-task.yaml +1 -0
- package/.sinapse-ai/development/templates/squad-template/templates/example-template.md +1 -0
- package/.sinapse-ai/development/templates/squad-template/tests/example-agent.test.js +1 -0
- package/.sinapse-ai/development/templates/squad-template/workflows/example-workflow.yaml +1 -0
- package/.sinapse-ai/development/workflows/README.md +1 -0
- package/.sinapse-ai/development/workflows/auto-worktree.yaml +1 -0
- package/.sinapse-ai/development/workflows/brownfield-discovery.yaml +1 -0
- package/.sinapse-ai/development/workflows/brownfield-fullstack.yaml +1 -0
- package/.sinapse-ai/development/workflows/brownfield-service.yaml +1 -0
- package/.sinapse-ai/development/workflows/brownfield-ui.yaml +1 -0
- package/.sinapse-ai/development/workflows/design-system-build-quality.yaml +1 -0
- package/.sinapse-ai/development/workflows/development-cycle.yaml +1 -0
- package/.sinapse-ai/development/workflows/epic-orchestration.yaml +1 -0
- package/.sinapse-ai/development/workflows/greenfield-fullstack.yaml +1 -0
- package/.sinapse-ai/development/workflows/greenfield-service.yaml +1 -0
- package/.sinapse-ai/development/workflows/greenfield-ui.yaml +1 -0
- package/.sinapse-ai/development/workflows/qa-loop.yaml +1 -0
- package/.sinapse-ai/development/workflows/spec-pipeline.yaml +1 -0
- package/.sinapse-ai/development/workflows/story-development-cycle.yaml +1 -0
- package/.sinapse-ai/docs/standards/EXECUTOR-DECISION-TREE.md +1 -0
- package/.sinapse-ai/docs/standards/OPEN-SOURCE-VS-SERVICE-DIFFERENCES.md +1 -0
- package/.sinapse-ai/docs/standards/QUALITY-GATES-SPECIFICATION.md +1 -0
- package/.sinapse-ai/docs/standards/SINAPSE-COLOR-PALETTE-QUICK-REFERENCE.md +1 -0
- package/.sinapse-ai/docs/standards/SINAPSE-COLOR-PALETTE-V2.1.md +1 -0
- package/.sinapse-ai/docs/standards/SINAPSE-LIVRO-DE-OURO-V2.1-COMPLETE.md +1 -0
- package/.sinapse-ai/docs/standards/STANDARDS-INDEX.md +1 -0
- package/.sinapse-ai/docs/standards/STORY-TEMPLATE-V2-SPECIFICATION.md +1 -0
- package/.sinapse-ai/docs/standards/TASK-FORMAT-SPECIFICATION-V1.md +1 -0
- package/.sinapse-ai/elicitation/agent-elicitation.js +1 -1
- package/.sinapse-ai/elicitation/task-elicitation.js +1 -1
- package/.sinapse-ai/elicitation/workflow-elicitation.js +1 -1
- package/.sinapse-ai/framework-config.yaml +1 -16
- package/.sinapse-ai/hooks/ids-post-commit.js +1 -0
- package/.sinapse-ai/hooks/ids-pre-push.js +1 -0
- package/.sinapse-ai/hooks/unified/README.md +11 -11
- package/.sinapse-ai/hooks/unified/hook-interface.js +1 -0
- package/.sinapse-ai/hooks/unified/hook-registry.js +1 -0
- package/.sinapse-ai/hooks/unified/index.js +1 -0
- package/.sinapse-ai/hooks/unified/runners/precompact-runner.js +1 -0
- package/.sinapse-ai/index.esm.js +1 -1
- package/.sinapse-ai/index.js +1 -1
- package/.sinapse-ai/infrastructure/README.md +1 -0
- package/.sinapse-ai/infrastructure/contracts/compatibility/sinapse-4.0.4.yaml +1 -21
- package/.sinapse-ai/infrastructure/index.js +1 -0
- package/.sinapse-ai/infrastructure/integrations/ai-providers/README.md +1 -0
- package/.sinapse-ai/infrastructure/integrations/ai-providers/ai-provider-factory.js +7 -5
- package/.sinapse-ai/infrastructure/integrations/ai-providers/ai-provider.js +1 -0
- package/.sinapse-ai/infrastructure/integrations/ai-providers/claude-provider.js +1 -0
- package/.sinapse-ai/infrastructure/integrations/ai-providers/index.js +1 -0
- package/.sinapse-ai/infrastructure/integrations/pm-adapters/README.md +1 -0
- package/.sinapse-ai/infrastructure/integrations/pm-adapters/clickup-adapter.js +1 -0
- package/.sinapse-ai/infrastructure/integrations/pm-adapters/github-adapter.js +1 -0
- package/.sinapse-ai/infrastructure/integrations/pm-adapters/jira-adapter.js +1 -0
- package/.sinapse-ai/infrastructure/integrations/pm-adapters/local-adapter.js +1 -0
- package/.sinapse-ai/infrastructure/schemas/agent-v3-schema.json +1 -0
- package/.sinapse-ai/infrastructure/schemas/task-v3-schema.json +1 -0
- package/.sinapse-ai/infrastructure/scripts/approach-manager.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/approval-workflow.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/asset-inventory.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/atomic-layer-classifier.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/backup-manager.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/batch-creator.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/branch-manager.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/capability-analyzer.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/changelog-generator.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/cicd-discovery.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/clickup-helpers.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/code-quality-improver.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/codebase-mapper.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/collect-tool-usage.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/commit-message-generator.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/component-generator.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/component-metadata.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/component-search.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/config-cache.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/config-loader.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/conflict-resolver.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/coverage-analyzer.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/dashboard-status-writer.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/dependency-analyzer.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/dependency-impact-analyzer.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/diff-generator.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/documentation-integrity/brownfield-analyzer.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/documentation-integrity/config-generator.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/documentation-integrity/deployment-config-loader.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/documentation-integrity/doc-generator.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/documentation-integrity/gitignore-generator.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/documentation-integrity/index.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/documentation-integrity/mode-detector.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/documentation-synchronizer.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/framework-analyzer.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/generate-optimization-report.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/generate-settings-json.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/git-config-detector.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/git-hooks/post-commit.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/git-wrapper.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/gotchas-documenter.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/ide-sync/README.md +1 -0
- package/.sinapse-ai/infrastructure/scripts/ide-sync/agent-parser.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/ide-sync/redirect-generator.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/ide-sync/transformers/claude-code.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/ide-sync/validator.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/improvement-engine.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/improvement-validator.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/llm-routing/install-llm-routing.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/llm-routing/templates/claude-free-tracked.sh +1 -0
- package/.sinapse-ai/infrastructure/scripts/llm-routing/templates/claude-free.cmd +81 -80
- package/.sinapse-ai/infrastructure/scripts/llm-routing/templates/claude-free.sh +1 -0
- package/.sinapse-ai/infrastructure/scripts/llm-routing/templates/claude-max.cmd +27 -26
- package/.sinapse-ai/infrastructure/scripts/llm-routing/templates/claude-max.sh +1 -0
- package/.sinapse-ai/infrastructure/scripts/llm-routing/templates/deepseek-proxy.sh +1 -0
- package/.sinapse-ai/infrastructure/scripts/llm-routing/templates/deepseek-usage.sh +1 -0
- package/.sinapse-ai/infrastructure/scripts/llm-routing/usage-tracker/index.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/migrate-agent.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/modification-risk-assessment.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/modification-validator.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/output-formatter.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/path-analyzer.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/pattern-extractor.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/performance-analyzer.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/performance-and-error-resolver.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/performance-optimizer.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/performance-tracker.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/plan-tracker.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/pm-adapter-factory.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/pm-adapter.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/pr-review-ai.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/project-status-loader.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/qa-loop-orchestrator.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/qa-report-generator.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/recovery-tracker.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/refactoring-suggester.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/repository-detector.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/rollback-manager.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/sandbox-tester.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/security-checker.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/sinapse-validator.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/spot-check-validator.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/status-mapper.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/story-worktree-hooks.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/stuck-detector.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/subtask-verifier.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/template-engine.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/template-validator.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/test-discovery.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/test-generator.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/test-quality-assessment.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/test-utilities-fast.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/test-utilities.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/tool-resolver.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/transaction-manager.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/usage-analytics.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/validate-agents.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/validate-claude-integration.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/validate-output-pattern.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/validate-user-profile.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/visual-impact-generator.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/worktree-manager.js +1 -0
- package/.sinapse-ai/infrastructure/scripts/yaml-validator.js +1 -1
- package/.sinapse-ai/infrastructure/templates/coderabbit.yaml.template +280 -279
- package/.sinapse-ai/infrastructure/templates/core-config/core-config-brownfield.tmpl.yaml +1 -0
- package/.sinapse-ai/infrastructure/templates/core-config/core-config-greenfield.tmpl.yaml +1 -0
- package/.sinapse-ai/infrastructure/templates/github-workflows/README.md +1 -0
- package/.sinapse-ai/infrastructure/templates/github-workflows/ci.yml.template +170 -169
- package/.sinapse-ai/infrastructure/templates/github-workflows/pr-automation.yml.template +331 -330
- package/.sinapse-ai/infrastructure/templates/github-workflows/release.yml.template +197 -196
- package/.sinapse-ai/infrastructure/templates/gitignore/gitignore-brownfield-merge.tmpl +19 -18
- package/.sinapse-ai/infrastructure/templates/gitignore/gitignore-node.tmpl +86 -85
- package/.sinapse-ai/infrastructure/templates/gitignore/gitignore-python.tmpl +146 -145
- package/.sinapse-ai/infrastructure/templates/gitignore/gitignore-sinapse-base.tmpl +64 -63
- package/.sinapse-ai/infrastructure/templates/project-docs/coding-standards-tmpl.md +1 -0
- package/.sinapse-ai/infrastructure/templates/project-docs/source-tree-tmpl.md +1 -0
- package/.sinapse-ai/infrastructure/templates/project-docs/tech-stack-tmpl.md +1 -0
- package/.sinapse-ai/infrastructure/templates/sinapse-sync.yaml.template +183 -182
- package/.sinapse-ai/infrastructure/tests/project-status-loader.test.js +1 -0
- package/.sinapse-ai/infrastructure/tests/regression-suite-v2.md +1 -0
- package/.sinapse-ai/infrastructure/tests/validate-module.js +1 -0
- package/.sinapse-ai/infrastructure/tests/worktree-manager.test.js +1 -0
- package/.sinapse-ai/infrastructure/tools/README.md +1 -0
- package/.sinapse-ai/infrastructure/tools/cli/github-cli.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/cli/llm-routing.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/cli/railway-cli.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/cli/supabase-cli.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/local/ffmpeg.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/mcp/21st-dev-magic.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/mcp/browser.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/mcp/clickup.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/mcp/context7.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/mcp/desktop-commander.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/mcp/exa.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/mcp/google-workspace.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/mcp/n8n.yaml +1 -0
- package/.sinapse-ai/infrastructure/tools/mcp/supabase.yaml +1 -0
- package/.sinapse-ai/install-manifest.yaml +1885 -1925
- package/.sinapse-ai/local-config.yaml.template +65 -71
- package/.sinapse-ai/manifests/agents.csv +29 -0
- package/.sinapse-ai/manifests/schema/manifest-schema.json +1 -0
- package/.sinapse-ai/manifests/tasks.csv +204 -0
- package/.sinapse-ai/manifests/workers.csv +196 -0
- package/.sinapse-ai/monitor/hooks/lib/__init__.py +2 -1
- package/.sinapse-ai/monitor/hooks/lib/enrich.py +59 -58
- package/.sinapse-ai/monitor/hooks/lib/send_event.py +48 -47
- package/.sinapse-ai/monitor/hooks/notification.py +30 -29
- package/.sinapse-ai/monitor/hooks/post_tool_use.py +46 -45
- package/.sinapse-ai/monitor/hooks/pre_compact.py +30 -29
- package/.sinapse-ai/monitor/hooks/pre_tool_use.py +41 -40
- package/.sinapse-ai/monitor/hooks/stop.py +30 -29
- package/.sinapse-ai/monitor/hooks/subagent_stop.py +30 -29
- package/.sinapse-ai/monitor/hooks/user_prompt_submit.py +39 -38
- package/.sinapse-ai/presets/README.md +1 -0
- package/.sinapse-ai/product/README.md +1 -0
- package/.sinapse-ai/product/checklists/accessibility-wcag-checklist.md +1 -0
- package/.sinapse-ai/product/checklists/architect-checklist.md +1 -1
- package/.sinapse-ai/product/checklists/change-checklist.md +1 -1
- package/.sinapse-ai/product/checklists/component-quality-checklist.md +1 -0
- package/.sinapse-ai/product/checklists/database-design-checklist.md +1 -0
- package/.sinapse-ai/product/checklists/dba-predeploy-checklist.md +1 -0
- package/.sinapse-ai/product/checklists/dba-rollback-checklist.md +1 -0
- package/.sinapse-ai/product/checklists/migration-readiness-checklist.md +1 -0
- package/.sinapse-ai/product/checklists/pattern-audit-checklist.md +1 -0
- package/.sinapse-ai/product/checklists/pm-checklist.md +1 -1
- package/.sinapse-ai/product/checklists/po-master-checklist.md +1 -1
- package/.sinapse-ai/product/checklists/pre-push-checklist.md +1 -0
- package/.sinapse-ai/product/checklists/release-checklist.md +1 -0
- package/.sinapse-ai/product/checklists/self-critique-checklist.md +1 -0
- package/.sinapse-ai/product/checklists/story-dod-checklist.md +1 -1
- package/.sinapse-ai/product/data/atomic-design-principles.md +1 -0
- package/.sinapse-ai/product/data/brainstorming-techniques.md +1 -1
- package/.sinapse-ai/product/data/consolidation-algorithms.md +1 -0
- package/.sinapse-ai/product/data/database-best-practices.md +1 -0
- package/.sinapse-ai/product/data/design-token-best-practices.md +1 -0
- package/.sinapse-ai/product/data/elicitation-methods.md +1 -1
- package/.sinapse-ai/product/data/integration-patterns.md +1 -0
- package/.sinapse-ai/product/data/migration-safety-guide.md +1 -0
- package/.sinapse-ai/product/data/mode-selection-best-practices.md +1 -0
- package/.sinapse-ai/product/data/postgres-tuning-guide.md +1 -0
- package/.sinapse-ai/product/data/rls-security-patterns.md +1 -0
- package/.sinapse-ai/product/data/roi-calculation-guide.md +1 -0
- package/.sinapse-ai/product/data/supabase-patterns.md +1 -0
- package/.sinapse-ai/product/data/test-levels-framework.md +1 -1
- package/.sinapse-ai/product/data/test-priorities-matrix.md +1 -1
- package/.sinapse-ai/product/data/wcag-compliance-guide.md +1 -0
- package/.sinapse-ai/product/templates/activation-instructions-inline-greeting.yaml +1 -0
- package/.sinapse-ai/product/templates/activation-instructions-template.md +1 -0
- package/.sinapse-ai/product/templates/adr.hbs +126 -125
- package/.sinapse-ai/product/templates/agent-template.yaml +1 -1
- package/.sinapse-ai/product/templates/architecture-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/brainstorming-output-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/brownfield-architecture-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/brownfield-prd-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/brownfield-risk-report-tmpl.yaml +1 -0
- package/.sinapse-ai/product/templates/changelog-template.md +1 -0
- package/.sinapse-ai/product/templates/command-rationalization-matrix.md +1 -0
- package/.sinapse-ai/product/templates/competitor-analysis-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/component-react-tmpl.tsx +1 -0
- package/.sinapse-ai/product/templates/current-approach-tmpl.md +1 -0
- package/.sinapse-ai/product/templates/dbdr.hbs +242 -241
- package/.sinapse-ai/product/templates/design-story-tmpl.yaml +1 -0
- package/.sinapse-ai/product/templates/ds-artifact-analysis.md +1 -0
- package/.sinapse-ai/product/templates/engine/elicitation.js +1 -0
- package/.sinapse-ai/product/templates/engine/index.js +1 -0
- package/.sinapse-ai/product/templates/engine/loader.js +1 -0
- package/.sinapse-ai/product/templates/engine/renderer.js +1 -0
- package/.sinapse-ai/product/templates/engine/schemas/adr.schema.json +1 -0
- package/.sinapse-ai/product/templates/engine/schemas/dbdr.schema.json +1 -0
- package/.sinapse-ai/product/templates/engine/schemas/epic.schema.json +1 -0
- package/.sinapse-ai/product/templates/engine/schemas/pmdr.schema.json +1 -0
- package/.sinapse-ai/product/templates/engine/schemas/prd-v2.schema.json +1 -0
- package/.sinapse-ai/product/templates/engine/schemas/prd.schema.json +1 -0
- package/.sinapse-ai/product/templates/engine/schemas/story.schema.json +1 -0
- package/.sinapse-ai/product/templates/engine/schemas/task.schema.json +1 -0
- package/.sinapse-ai/product/templates/engine/validator.js +1 -0
- package/.sinapse-ai/product/templates/epic.hbs +213 -212
- package/.sinapse-ai/product/templates/eslintrc-security.json +1 -0
- package/.sinapse-ai/product/templates/front-end-architecture-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/front-end-spec-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/fullstack-architecture-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/github-actions-cd.yml +1 -0
- package/.sinapse-ai/product/templates/github-actions-ci.yml +1 -0
- package/.sinapse-ai/product/templates/github-pr-template.md +1 -0
- package/.sinapse-ai/product/templates/gordon-mcp.yaml +1 -0
- package/.sinapse-ai/product/templates/index-strategy-tmpl.yaml +1 -0
- package/.sinapse-ai/product/templates/market-research-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/mcp-workflow.js +1 -0
- package/.sinapse-ai/product/templates/migration-plan-tmpl.yaml +1 -0
- package/.sinapse-ai/product/templates/migration-strategy-tmpl.md +1 -0
- package/.sinapse-ai/product/templates/personalized-agent-template.md +1 -0
- package/.sinapse-ai/product/templates/personalized-checklist-template.md +1 -0
- package/.sinapse-ai/product/templates/personalized-task-template.md +1 -0
- package/.sinapse-ai/product/templates/personalized-template-file.yaml +1 -0
- package/.sinapse-ai/product/templates/personalized-workflow-template.yaml +1 -0
- package/.sinapse-ai/product/templates/pmdr.hbs +187 -186
- package/.sinapse-ai/product/templates/prd-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/prd-v2.0.hbs +217 -216
- package/.sinapse-ai/product/templates/prd.hbs +202 -201
- package/.sinapse-ai/product/templates/project-brief-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/qa-gate-tmpl.yaml +1 -0
- package/.sinapse-ai/product/templates/qa-report-tmpl.md +1 -0
- package/.sinapse-ai/product/templates/rls-policies-tmpl.yaml +1 -0
- package/.sinapse-ai/product/templates/schema-design-tmpl.yaml +1 -0
- package/.sinapse-ai/product/templates/shock-report-tmpl.html +1 -0
- package/.sinapse-ai/product/templates/spec-tmpl.md +1 -0
- package/.sinapse-ai/product/templates/state-persistence-tmpl.yaml +1 -0
- package/.sinapse-ai/product/templates/statusline/statusline-script.js +1 -0
- package/.sinapse-ai/product/templates/statusline/track-agent.sh +1 -0
- package/.sinapse-ai/product/templates/story-tmpl.yaml +1 -1
- package/.sinapse-ai/product/templates/story.hbs +264 -263
- package/.sinapse-ai/product/templates/task-execution-report.md +1 -0
- package/.sinapse-ai/product/templates/task-template.md +1 -1
- package/.sinapse-ai/product/templates/task.hbs +171 -170
- package/.sinapse-ai/product/templates/tmpl-comment-on-examples.sql +159 -158
- package/.sinapse-ai/product/templates/tmpl-migration-script.sql +92 -91
- package/.sinapse-ai/product/templates/tmpl-rls-granular-policies.sql +105 -104
- package/.sinapse-ai/product/templates/tmpl-rls-kiss-policy.sql +11 -10
- package/.sinapse-ai/product/templates/tmpl-rls-roles.sql +136 -135
- package/.sinapse-ai/product/templates/tmpl-rls-simple.sql +78 -77
- package/.sinapse-ai/product/templates/tmpl-rls-tenant.sql +153 -152
- package/.sinapse-ai/product/templates/tmpl-rollback-script.sql +78 -77
- package/.sinapse-ai/product/templates/tmpl-seed-data.sql +141 -140
- package/.sinapse-ai/product/templates/tmpl-smoke-test.sql +17 -16
- package/.sinapse-ai/product/templates/tmpl-staging-copy-merge.sql +140 -139
- package/.sinapse-ai/product/templates/tmpl-stored-proc.sql +141 -140
- package/.sinapse-ai/product/templates/tmpl-trigger.sql +153 -152
- package/.sinapse-ai/product/templates/tmpl-view-materialized.sql +134 -133
- package/.sinapse-ai/product/templates/tmpl-view.sql +178 -177
- package/.sinapse-ai/product/templates/token-exports-css-tmpl.css +1 -0
- package/.sinapse-ai/product/templates/token-exports-tailwind-tmpl.js +1 -0
- package/.sinapse-ai/product/templates/tokens-schema-tmpl.yaml +1 -0
- package/.sinapse-ai/product/templates/workflow-template.yaml +1 -1
- package/.sinapse-ai/quality/metrics-collector.js +1 -0
- package/.sinapse-ai/quality/metrics-hook.js +1 -0
- package/.sinapse-ai/quality/schemas/quality-metrics.schema.json +1 -0
- package/.sinapse-ai/quality/seed-metrics.js +1 -0
- package/.sinapse-ai/schemas/README.md +1 -0
- package/.sinapse-ai/schemas/validate-v3-schema.js +1 -0
- package/.sinapse-ai/scripts/README.md +1 -0
- package/.sinapse-ai/scripts/batch-migrate-phase1.ps1 +37 -36
- package/.sinapse-ai/scripts/batch-migrate-phase2.ps1 +89 -88
- package/.sinapse-ai/scripts/batch-migrate-phase3.ps1 +46 -45
- package/.sinapse-ai/scripts/command-execution-hook.js +1 -0
- package/.sinapse-ai/scripts/diagnostics/diagnose-npx-issue.ps1 +97 -96
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/README.md +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/index.html +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/package-lock.json +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/package.json +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/public/favicon.svg +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/App.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/AutoFixLog.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/AutoFixLog.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/DomainCard.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/DomainCard.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/HealthScore.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/HealthScore.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/IssuesList.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/IssuesList.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/TechDebtList.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/TechDebtList.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/index.js +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/shared/Card.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/shared/Card.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/shared/Chart.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/shared/Chart.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/shared/Header.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/shared/Header.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/shared/StatusBadge.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/shared/StatusBadge.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/components/shared/index.js +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/hooks/index.js +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/hooks/useAutoRefresh.js +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/hooks/useHealthData.js +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/main.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/pages/Dashboard.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/pages/Dashboard.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/pages/DomainDetail.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/pages/DomainDetail.jsx +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/pages/index.js +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/styles/App.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/src/styles/index.css +1 -0
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/vite.config.js +1 -0
- package/.sinapse-ai/scripts/diagnostics/quick-diagnose.cmd +86 -85
- package/.sinapse-ai/scripts/diagnostics/quick-diagnose.ps1 +118 -117
- package/.sinapse-ai/scripts/migrate-framework-docs.sh +1 -0
- package/.sinapse-ai/scripts/pm.sh +1 -0
- package/.sinapse-ai/scripts/session-context-loader.js +1 -0
- package/.sinapse-ai/scripts/sinapse-doc-template.md +1 -0
- package/.sinapse-ai/scripts/test-template-system.js +1 -1
- package/.sinapse-ai/scripts/validate-phase1.ps1 +36 -35
- package/.sinapse-ai/scripts/workflow-management.md +1 -0
- package/.sinapse-ai/utils/filters/constants.js +1 -0
- package/.sinapse-ai/utils/filters/content-filter.js +1 -0
- package/.sinapse-ai/utils/filters/field-filter.js +1 -0
- package/.sinapse-ai/utils/filters/index.js +1 -0
- package/.sinapse-ai/utils/filters/schema-filter.js +1 -0
- package/.sinapse-ai/utils/format-duration.js +1 -0
- package/.sinapse-ai/utils/sinapse-validator.js +1 -0
- package/.sinapse-ai/workflow-intelligence/__tests__/confidence-scorer.test.js +1 -0
- package/.sinapse-ai/workflow-intelligence/__tests__/integration.test.js +1 -0
- package/.sinapse-ai/workflow-intelligence/__tests__/suggestion-engine.test.js +1 -0
- package/.sinapse-ai/workflow-intelligence/__tests__/wave-analyzer.test.js +1 -0
- package/.sinapse-ai/workflow-intelligence/__tests__/workflow-registry.test.js +1 -0
- package/.sinapse-ai/workflow-intelligence/engine/confidence-scorer.js +1 -0
- package/.sinapse-ai/workflow-intelligence/engine/output-formatter.js +1 -0
- package/.sinapse-ai/workflow-intelligence/engine/suggestion-engine.js +1 -0
- package/.sinapse-ai/workflow-intelligence/engine/wave-analyzer.js +1 -0
- package/.sinapse-ai/workflow-intelligence/index.js +1 -0
- package/.sinapse-ai/workflow-intelligence/learning/capture-hook.js +1 -0
- package/.sinapse-ai/workflow-intelligence/learning/gotcha-registry.js +1 -0
- package/.sinapse-ai/workflow-intelligence/learning/index.js +1 -0
- package/.sinapse-ai/workflow-intelligence/learning/pattern-capture.js +1 -0
- package/.sinapse-ai/workflow-intelligence/learning/pattern-store.js +1 -0
- package/.sinapse-ai/workflow-intelligence/learning/pattern-validator.js +1 -0
- package/.sinapse-ai/workflow-intelligence/learning/qa-feedback.js +1 -0
- package/.sinapse-ai/workflow-intelligence/learning/semantic-search.js +1 -0
- package/.sinapse-ai/workflow-intelligence/registry/workflow-registry.js +1 -0
- package/LICENSE +34 -33
- package/README.en.md +192 -229
- package/README.md +118 -308
- package/bin/modules/mcp-installer.js +1 -0
- package/bin/sinapse-graph.js +1 -0
- package/bin/sinapse-ids.js +1 -0
- package/bin/sinapse-minimal.js +1 -0
- package/bin/utils/detect-fsmonitor.js +1 -0
- package/bin/utils/framework-guard.js +1 -0
- package/bin/utils/install-errors.js +1 -0
- package/bin/utils/install-transaction.js +1 -0
- package/bin/utils/pro-detector.js +1 -0
- package/docs/README.md +1 -0
- package/docs/examples/squads/basic-squad/README.md +1 -0
- package/docs/examples/squads/basic-squad/agents/greeter-agent.md +1 -0
- package/docs/examples/squads/basic-squad/tasks/greet-user.md +1 -0
- package/docs/examples/squads/multi-agent-squad/README.md +1 -0
- package/docs/examples/squads/multi-agent-squad/agents/lead-agent.md +1 -0
- package/docs/examples/squads/multi-agent-squad/agents/researcher-agent.md +1 -0
- package/docs/examples/squads/multi-agent-squad/agents/writer-agent.md +1 -0
- package/docs/examples/squads/multi-agent-squad/tasks/research-topic.md +1 -0
- package/docs/examples/squads/multi-agent-squad/tasks/write-report.md +1 -0
- package/docs/examples/squads/squad-with-tools/README.md +1 -0
- package/docs/examples/squads/squad-with-tools/agents/analyzer-agent.md +1 -0
- package/docs/examples/squads/squad-with-tools/tools/text-analyzer.js +1 -0
- package/docs/{codex-integration-process.md → framework/codex-parity/codex-integration-process.md} +1 -0
- package/docs/framework/config-override-guide.md +1 -0
- package/docs/{core-architecture.md → framework/core-architecture.md} +1 -0
- package/docs/framework/entity-layer-classification.md +1 -0
- package/docs/{glossary.md → framework/glossary.md} +1 -0
- package/docs/framework/performance-tips.md +1 -0
- package/docs/{00-shared-activation-pipeline.md → framework/shared-activation-pipeline.md} +1 -0
- package/docs/framework/source-tree.md +1 -0
- package/docs/framework/squad-creation-standards.md +331 -0
- package/docs/{versioning-and-releases.md → framework/versioning-and-releases.md} +1 -0
- package/docs/guides/README.md +1 -0
- package/docs/guides/ade-guide.md +1 -0
- package/docs/guides/agent-reference.md +131 -194
- package/docs/guides/agent-selection-guide.md +1 -0
- package/docs/guides/agents/ANALYST-SYSTEM.md +1 -0
- package/docs/guides/agents/ARCHITECT-SYSTEM.md +1 -0
- package/docs/guides/agents/DATA-ENGINEER-SYSTEM.md +1 -0
- package/docs/guides/agents/DEV-SYSTEM.md +1 -0
- package/docs/guides/agents/DEVOPS-SYSTEM.md +1 -0
- package/docs/guides/agents/PM-SYSTEM.md +1 -0
- package/docs/guides/agents/QA-SYSTEM.md +1 -0
- package/docs/guides/agents/SINAPSE-AGENT-FLOWS.zip +0 -0
- package/docs/guides/agents/SINAPSE-MASTER-SYSTEM.md +1 -0
- package/docs/guides/agents/SM-SYSTEM.md +1 -0
- package/docs/guides/agents/SQUAD-CREATOR-SYSTEM.md +1 -0
- package/docs/guides/agents/UX-DESIGN-EXPERT-SYSTEM.md +1 -0
- package/docs/guides/agents/traces/00-shared-activation-pipeline.md +1 -0
- package/docs/guides/agents/traces/00-shared-activation-pipeline.v1-act8.md +1 -0
- package/docs/guides/agents/traces/README.md +1 -0
- package/docs/guides/agents/traces/analyst-execution-trace.md +1 -0
- package/docs/guides/agents/traces/architect-execution-trace.md +1 -0
- package/docs/guides/agents/traces/data-engineer-execution-trace.md +1 -0
- package/docs/guides/agents/traces/dev-execution-trace.md +1 -0
- package/docs/guides/agents/traces/devops-execution-trace.md +1 -0
- package/docs/guides/agents/traces/execution-traces.zip +0 -0
- package/docs/guides/agents/traces/pm-execution-trace.md +1 -0
- package/docs/guides/agents/traces/po-execution-trace.md +1 -0
- package/docs/guides/agents/traces/qa-execution-trace.md +1 -0
- package/docs/guides/agents/traces/sinapse-orqx-execution-trace.md +1 -0
- package/docs/guides/agents/traces/sm-execution-trace.md +1 -0
- package/docs/guides/agents/traces/squad-creation-execution-trace.md +1 -0
- package/docs/guides/agents/traces/ux-design-expert-execution-trace.md +1 -0
- package/docs/guides/api-reference.md +1 -0
- package/docs/guides/build-recovery-guide.md +1 -0
- package/docs/guides/code-graph-mcp-setup.md +1 -0
- package/docs/guides/coderabbit/README.md +1 -0
- package/docs/guides/config-migration-guide.md +1 -0
- package/docs/guides/contextual-greeting-system-guide.md +1 -0
- package/docs/guides/development-setup.md +1 -0
- package/docs/{docker-mcp-setup.md → guides/docker-mcp-setup.md} +1 -0
- package/docs/guides/ide-sync-guide.md +1 -0
- package/docs/guides/mcp/desktop-commander.md +1 -0
- package/docs/guides/mcp/docker-gateway-tutorial.md +1 -0
- package/docs/guides/mcp-global-setup.md +1 -0
- package/docs/{meta-agent-commands.md → guides/meta-agent-commands.md} +1 -1
- package/docs/guides/permission-modes.md +1 -0
- package/docs/guides/project-status-feature.md +1 -0
- package/docs/guides/quality-dashboard.md +1 -0
- package/docs/guides/quality-gates.md +1 -0
- package/docs/guides/service-discovery.md +1 -0
- package/docs/guides/squad-examples/README.md +1 -0
- package/docs/guides/squad-examples/data-processor-squad.yaml +1 -0
- package/docs/guides/squad-examples/simple-agent.yaml +1 -0
- package/docs/guides/squad-migration.md +1 -0
- package/docs/guides/testing-guide.md +1 -0
- package/docs/guides/vertical-trails/data-engineer-trail.md +1 -0
- package/docs/guides/vertical-trails/devops-trail.md +1 -0
- package/docs/guides/vertical-trails/squad-creator-trail.md +1 -0
- package/docs/guides/workflows/AUTO-WORKTREE-WORKFLOW.md +1 -0
- package/docs/guides/workflows/BROWNFIELD-DISCOVERY-WORKFLOW.md +1 -0
- package/docs/guides/workflows/BROWNFIELD-FULLSTACK-WORKFLOW.md +1 -0
- package/docs/guides/workflows/BROWNFIELD-SERVICE-WORKFLOW.md +1 -0
- package/docs/guides/workflows/BROWNFIELD-UI-WORKFLOW.md +1 -0
- package/docs/guides/workflows/DESIGN-SYSTEM-BUILD-QUALITY-WORKFLOW.md +1 -0
- package/docs/guides/workflows/GREENFIELD-FULLSTACK-WORKFLOW.md +1 -0
- package/docs/guides/workflows/GREENFIELD-SERVICE-WORKFLOW.md +1 -0
- package/docs/guides/workflows/GREENFIELD-UI-WORKFLOW.md +1 -0
- package/docs/guides/workflows/QA-LOOP-WORKFLOW.md +1 -0
- package/docs/guides/workflows/SINAPSE-COMPLETE-CROSS-REFERENCE-ANALYSIS.md +1 -0
- package/docs/guides/workflows/SINAPSE-WORKFLOWS.zip +0 -0
- package/docs/guides/workflows/SPEC-PIPELINE-WORKFLOW.md +1 -0
- package/docs/guides/workflows/STORY-DEVELOPMENT-CYCLE-WORKFLOW.md +1 -0
- package/docs/guides/workflows/WORKFLOW-TASK-AGENT-ANALYSIS.md +1 -0
- package/docs/guides/workflows/xref-phase3-scripts.md +1 -0
- package/docs/guides/workflows/xref-phase5-core.md +1 -0
- package/docs/pt/ENVIRONMENT.md +1 -0
- package/docs/pt/README.md +1 -0
- package/docs/pt/agents/archetype-rationale.md +1 -0
- package/docs/pt/agents/persona-definitions.md +1 -0
- package/docs/pt/architecture/ADE-ARCHITECT-HANDOFF.md +1 -0
- package/docs/pt/architecture/ADE-EPIC1-HANDOFF.md +1 -0
- package/docs/pt/architecture/ADE-EPIC2-HANDOFF.md +1 -0
- package/docs/pt/architecture/ADE-EPIC3-HANDOFF.md +1 -0
- package/docs/pt/architecture/ade-architecture.md +1 -0
- package/docs/pt/architecture/adr/adr-hcs-health-check-system.md +1 -0
- package/docs/pt/architecture/adr/adr-isolated-vm-decision.md +1 -0
- package/docs/pt/architecture/agent-config-audit.md +1 -0
- package/docs/pt/architecture/agent-responsibility-matrix.md +1 -0
- package/docs/pt/architecture/agent-tool-integration-guide.md +1 -0
- package/docs/pt/architecture/contribution-workflow-research.md +1 -0
- package/docs/pt/architecture/dashboard-architecture.md +1 -0
- package/docs/pt/architecture/dashboard-realtime.md +1 -0
- package/docs/pt/architecture/hcs-check-specifications.md +1 -0
- package/docs/pt/architecture/hcs-execution-modes.md +1 -0
- package/docs/pt/architecture/hcs-self-healing-spec.md +1 -0
- package/docs/pt/architecture/high-level-architecture.md +1 -0
- package/docs/pt/architecture/introduction.md +1 -0
- package/docs/pt/architecture/mcp-api-keys-management.md +1 -0
- package/docs/pt/architecture/mcp-system-diagrams.md +1 -0
- package/docs/pt/architecture/module-system.md +1 -0
- package/docs/pt/architecture/source-tree.md +1 -0
- package/docs/pt/architecture/squad-improvement-recommended-approach.md +1 -0
- package/docs/pt/architecture/utility-integration-guide.md +1 -0
- package/docs/pt/contributing.md +1 -0
- package/docs/pt/core-architecture.md +1 -0
- package/docs/pt/docker-mcp-setup.md +1 -0
- package/docs/pt/framework/source-tree.md +1 -0
- package/docs/pt/getting-started.md +1 -0
- package/docs/pt/guides/README.md +1 -0
- package/docs/pt/guides/ade-guide.md +1 -0
- package/docs/pt/guides/agent-selection-guide.md +1 -0
- package/docs/pt/guides/api-reference.md +1 -0
- package/docs/pt/guides/build-recovery-guide.md +1 -0
- package/docs/pt/guides/contextual-greeting-system-guide.md +1 -0
- package/docs/pt/guides/development-setup.md +1 -0
- package/docs/pt/guides/ide-sync-guide.md +1 -0
- package/docs/pt/guides/mcp/desktop-commander.md +1 -0
- package/docs/pt/guides/mcp/docker-gateway-tutorial.md +1 -0
- package/docs/pt/guides/mcp-global-setup.md +1 -0
- package/docs/pt/guides/permission-modes.md +1 -0
- package/docs/pt/guides/project-status-feature.md +1 -0
- package/docs/pt/guides/quality-dashboard.md +1 -0
- package/docs/pt/guides/quality-gates.md +1 -0
- package/docs/pt/guides/service-discovery.md +1 -0
- package/docs/pt/guides/squad-examples/README.md +1 -0
- package/docs/pt/guides/squad-migration.md +1 -0
- package/docs/pt/guides/testing-guide.md +1 -0
- package/docs/pt/guides/user-guide.md +1 -0
- package/docs/pt/guides/workflows-guide.md +1 -0
- package/docs/pt/installation/troubleshooting.md +1 -0
- package/docs/pt/installation/v4-quick-start.md +1 -0
- package/docs/pt/meta-agent-commands.md +1 -0
- package/docs/pt/performance-tuning-guide.md +1 -0
- package/docs/pt/platforms/claude-code.md +1 -0
- package/docs/pt/sinapse-nomenclature-specification.md +1 -0
- package/docs/pt/specifications/docs-agent-technical-specification.md +1 -0
- package/docs/pt/troubleshooting.md +1 -0
- package/docs/pt/versioning-and-releases.md +1 -0
- package/docs/sinapse-agent-flows/README.md +1 -0
- package/docs/sinapse-agent-flows/analyst-system.md +1 -0
- package/docs/sinapse-agent-flows/architect-system.md +1 -0
- package/docs/sinapse-agent-flows/data-engineer-system.md +1 -0
- package/docs/sinapse-agent-flows/dev-system.md +1 -0
- package/docs/sinapse-agent-flows/devops-system.md +1 -0
- package/docs/sinapse-agent-flows/pm-system.md +1 -0
- package/docs/sinapse-agent-flows/qa-system.md +1 -0
- package/docs/sinapse-agent-flows/sinapse-orqx-system.md +1 -0
- package/docs/sinapse-agent-flows/sm-system.md +1 -0
- package/docs/sinapse-agent-flows/squad-creator-system.md +1 -0
- package/docs/sinapse-agent-flows/ux-design-expert-system.md +1 -0
- package/docs/sinapse-workflows/README.md +1 -0
- package/docs/sinapse-workflows/auto-worktree-workflow.md +1 -0
- package/docs/sinapse-workflows/brownfield-discovery-workflow.md +1 -0
- package/docs/sinapse-workflows/brownfield-fullstack-workflow.md +1 -0
- package/docs/sinapse-workflows/brownfield-service-workflow.md +1 -0
- package/docs/sinapse-workflows/brownfield-ui-workflow.md +1 -0
- package/docs/sinapse-workflows/design-system-build-quality-workflow.md +1 -0
- package/docs/sinapse-workflows/greenfield-fullstack-workflow.md +1 -0
- package/docs/sinapse-workflows/greenfield-service-workflow.md +1 -0
- package/docs/sinapse-workflows/greenfield-ui-workflow.md +1 -0
- package/docs/sinapse-workflows/qa-loop-workflow.md +1 -0
- package/docs/sinapse-workflows/spec-pipeline-workflow.md +1 -0
- package/docs/sinapse-workflows/story-development-cycle-workflow.md +1 -0
- package/package.json +1 -1
- package/packages/installer/package.json +1 -0
- package/packages/installer/src/__tests__/performance-benchmark.js +1 -0
- package/packages/installer/src/config/templates/env-template.js +1 -0
- package/packages/installer/src/config/validation/config-validator.js +1 -0
- package/packages/installer/src/detection/detect-project-type.js +1 -0
- package/packages/installer/src/installer/dependency-installer.js +1 -0
- package/packages/installer/src/installer/file-hasher.js +1 -0
- package/packages/installer/src/installer/manifest-signature.js +1 -0
- package/packages/installer/src/merger/index.js +1 -0
- package/packages/installer/src/merger/parsers/env-parser.js +1 -0
- package/packages/installer/src/merger/parsers/markdown-section-parser.js +1 -0
- package/packages/installer/src/merger/strategies/base-merger.js +1 -0
- package/packages/installer/src/merger/strategies/env-merger.js +1 -0
- package/packages/installer/src/merger/strategies/index.js +1 -0
- package/packages/installer/src/merger/strategies/markdown-merger.js +1 -0
- package/packages/installer/src/merger/strategies/replace-merger.js +1 -0
- package/packages/installer/src/merger/strategies/yaml-merger.js +1 -0
- package/packages/installer/src/merger/types.js +1 -0
- package/packages/installer/src/updater/index.js +1 -0
- package/packages/installer/src/utils/sinapse-colors.js +1 -0
- package/packages/installer/src/wizard/ide-selector.js +1 -0
- package/packages/installer/src/wizard/validation/index.js +1 -0
- package/packages/installer/src/wizard/validation/validators/config-validator.js +1 -0
- package/packages/installer/src/wizard/validation/validators/dependency-validator.js +1 -0
- package/packages/installer/src/wizard/validation/validators/file-structure-validator.js +1 -0
- package/packages/installer/src/wizard/validation/validators/mcp-health-checker.js +1 -0
- package/packages/installer/src/wizard/validators.js +1 -0
- package/packages/installer/src/wizard/wizard.js +1 -0
- package/packages/installer/tests/integration/environment-configuration.test.js +1 -0
- package/packages/installer/tests/integration/wizard-detection.test.js +1 -0
- package/packages/installer/tests/unit/claude-md-template-v5/claude-md-template-v5.test.js +1 -0
- package/packages/installer/tests/unit/detection/detect-project-type.test.js +1 -0
- package/packages/installer/tests/unit/doctor/doctor-checks.test.js +1 -0
- package/packages/installer/tests/unit/doctor/doctor-orchestrator.test.js +1 -0
- package/packages/installer/tests/unit/generate-settings-json/generate-settings-json.test.js +1 -0
- package/packages/installer/tests/unit/ide-sync-integration/ide-sync-integration.test.js +1 -0
- package/packages/installer/tests/unit/merger/markdown-merger.test.js +1 -0
- package/packages/installer/tests/unit/merger/strategies.test.js +1 -0
- package/packages/installer/tests/unit/merger/yaml-merger.test.js +1 -0
- package/packages/sinapse-install/README.md +1 -0
- package/packages/sinapse-install/src/dep-checker.js +1 -0
- package/packages/sinapse-install/src/edmcp/index.js +1 -0
- package/packages/sinapse-install/src/os-detector.js +1 -0
- package/packages/sinapse-pro-cli/src/recover.js +1 -0
- package/scripts/check-markdown-links.py +353 -352
- package/scripts/code-intel-health-check.js +1 -0
- package/scripts/dashboard-parallel-dev.sh +1 -0
- package/scripts/dashboard-parallel-phase3.sh +1 -0
- package/scripts/dashboard-parallel-phase4.sh +1 -0
- package/scripts/install-monitor-hooks.sh +1 -0
- package/scripts/package-synapse.js +1 -0
- package/scripts/semantic-lint.js +1 -0
- package/scripts/sign-manifest.ps1 +131 -130
- package/scripts/validate-sinapse-ai-deps.js +1 -0
- package/sinapse/knowledge-base/cross-squad-patterns.md +1 -0
- package/sinapse/knowledge-base/routing-catalog.md +1 -0
- package/sinapse/squad.yaml +1 -0
- package/sinapse/tasks/compose-multi-squad-plan.md +1 -0
- package/sinapse/tasks/coordinate-cross-squad.md +1 -0
- package/sinapse/tasks/diagnose-and-route.md +1 -0
- package/sinapse/tasks/onboard-user.md +1 -0
- package/sinapse/tasks/resolve-conflict.md +1 -0
- package/sinapse/tasks/squad-status-report.md +1 -0
- package/sinapse/tasks/strategic-brief.md +1 -0
- package/squads/claude-code-mastery/README.md +1 -0
- package/squads/claude-code-mastery/agents/claude-mastery-chief.md +1 -0
- package/squads/claude-code-mastery/checklists/brownfield-readiness-checklist.md +1 -0
- package/squads/claude-code-mastery/checklists/change-checklist.md +1 -0
- package/squads/claude-code-mastery/checklists/context-rot-checklist.md +1 -0
- package/squads/claude-code-mastery/checklists/integration-audit-checklist.md +1 -0
- package/squads/claude-code-mastery/checklists/pre-push-checklist.md +1 -0
- package/squads/claude-code-mastery/data/ci-cd-patterns.yaml +1 -0
- package/squads/claude-code-mastery/data/claude-code-quick-ref.yaml +1 -0
- package/squads/claude-code-mastery/data/hook-patterns.yaml +1 -0
- package/squads/claude-code-mastery/data/mcp-integration-catalog.yaml +1 -0
- package/squads/claude-code-mastery/data/project-type-signatures.yaml +1 -0
- package/squads/claude-code-mastery/data/swarm-orchestration-patterns.yaml +378 -0
- package/squads/claude-code-mastery/scripts/validate-setup.js +1 -0
- package/squads/claude-code-mastery/templates/claude-md-fullstack.md +1 -0
- package/squads/claude-code-mastery/templates/claude-md-library.md +1 -0
- package/squads/claude-code-mastery/templates/claude-md-microservices.md +1 -0
- package/squads/claude-code-mastery/templates/claude-md-mobile.md +1 -0
- package/squads/claude-code-mastery/templates/claude-md-monorepo.md +1 -0
- package/squads/claude-code-mastery/templates/github-actions-claude-ci.yml +1 -0
- package/squads/claude-code-mastery/templates/github-actions-claude-review.yml +1 -0
- package/squads/claude-code-mastery/workflows/wf-audit-complete.yaml +1 -0
- package/squads/claude-code-mastery/workflows/wf-knowledge-update.yaml +1 -0
- package/squads/claude-code-mastery/workflows/wf-project-setup.yaml +1 -0
- package/squads/squad-animations/knowledge-base/framer-motion-complete-reference.md +710 -0
- package/squads/squad-animations/knowledge-base/unicorn-studio-pipeline.md +197 -0
- package/squads/squad-animations/knowledge-base/web-animations-api-view-transitions.md +478 -0
- package/squads/squad-animations/squad.yaml +7 -2
- package/squads/squad-animations/tasks/create-unicorn-animation.md +61 -0
- package/squads/squad-animations/tasks/identify-website-animation.md +120 -0
- package/squads/squad-brand/knowledge-base/brand-experience-bx.md +227 -0
- package/squads/squad-brand/knowledge-base/brand-rebranding-framework.md +208 -0
- package/squads/squad-brand/knowledge-base/brand-strategy-frameworks-catalog.md +330 -52
- package/squads/squad-brand/knowledge-base/brand-valuation-frameworks.md +92 -13
- package/squads/squad-brand/knowledge-base/brazilian-branding-context.md +208 -0
- package/squads/squad-claude/knowledge-base/claude-code-internals-deep.md +578 -0
- package/squads/squad-claude/knowledge-base/claude-code-tools-reference.md +313 -0
- package/squads/squad-cloning/knowledge-base/agent-generation-guide.md +89 -0
- package/squads/squad-cloning/knowledge-base/cognitive-dna-framework.md +90 -0
- package/squads/squad-cloning/knowledge-base/source-classification.md +68 -0
- package/squads/squad-commercial/knowledge-base/commercial-analytics-reporting.md +120 -1
- package/squads/squad-commercial/knowledge-base/negotiation-frameworks.md +166 -0
- package/squads/squad-commercial/knowledge-base/plg-pls-framework.md +160 -0
- package/squads/squad-commercial/knowledge-base/revenue-architecture-models.md +153 -1
- package/squads/squad-commercial/knowledge-base/sales-compensation-brazil.md +210 -0
- package/squads/squad-commercial/knowledge-base/sales-qualification-methodology.md +97 -4
- package/squads/squad-content/knowledge-base/ai-leverage-content-framework.md +104 -0
- package/squads/squad-content/knowledge-base/content-governance-principles.md +132 -1
- package/squads/squad-content/knowledge-base/content-measurement-framework.md +99 -3
- package/squads/squad-content/knowledge-base/content-repurposing-playbook.md +107 -1
- package/squads/squad-content/knowledge-base/editorial-strategy-frameworks.md +148 -5
- package/squads/squad-content/knowledge-base/hook-formulas-library.md +88 -0
- package/squads/squad-content/knowledge-base/narrative-structures-library.md +72 -1
- package/squads/squad-content/knowledge-base/seo-content-deep.md +231 -0
- package/squads/squad-copy/knowledge-base/copywriting-formulas-encyclopedia.md +164 -80
- package/squads/squad-copy/knowledge-base/headline-patterns-library.md +70 -0
- package/squads/squad-copy/knowledge-base/legendary-copywriters-frameworks.md +128 -0
- package/squads/squad-copy/knowledge-base/storytelling-frameworks.md +103 -0
- package/squads/squad-council/knowledge-base/decision-frameworks-encyclopedia.md +266 -0
- package/squads/squad-council/knowledge-base/financial-strategy-models.md +239 -0
- package/squads/squad-courses/knowledge-base/adult-learning-principles.md +75 -0
- package/squads/squad-courses/knowledge-base/assessment-design-guide.md +68 -0
- package/squads/squad-courses/knowledge-base/course-pricing-models.md +95 -0
- package/squads/squad-courses/knowledge-base/engagement-retention-patterns.md +93 -0
- package/squads/squad-courses/knowledge-base/instructional-design-frameworks.md +149 -2
- package/squads/squad-cybersecurity/knowledge-base/authentication-security.md +393 -0
- package/squads/squad-cybersecurity/knowledge-base/owasp-top-10-reference.md +362 -0
- package/squads/squad-cybersecurity/knowledge-base/supply-chain-security.md +311 -0
- package/squads/squad-cybersecurity/knowledge-base/zero-trust-architecture.md +225 -0
- package/squads/squad-design/knowledge-base/design-systems-frameworks.md +343 -25
- package/squads/squad-design/knowledge-base/design-to-code-pipeline.md +375 -0
- package/squads/squad-design/knowledge-base/design-token-architecture.md +259 -4
- package/squads/squad-design/knowledge-base/designops-maturity.md +312 -0
- package/squads/squad-design/knowledge-base/famous-design-systems-study.md +291 -0
- package/squads/squad-finance/knowledge-base/capital-budgeting.md +229 -0
- package/squads/squad-finance/knowledge-base/cash-flow-management.md +220 -0
- package/squads/squad-finance/knowledge-base/corporate-finance-frameworks.md +272 -0
- package/squads/squad-finance/knowledge-base/valuation-methods.md +254 -0
- package/squads/squad-growth/knowledge-base/cro-experimentation-framework.md +93 -2
- package/squads/squad-growth/knowledge-base/growth-frameworks.md +99 -6
- package/squads/squad-growth/knowledge-base/plg-metrics-framework.md +183 -0
- package/squads/squad-growth/knowledge-base/retention-lifecycle-marketing.md +193 -0
- package/squads/squad-growth/knowledge-base/seo-technical-reference.md +69 -0
- package/squads/squad-growth/knowledge-base/unit-economics-ltv-cac.md +253 -0
- package/squads/squad-growth/knowledge-base/viral-referral-mechanics.md +159 -0
- package/squads/squad-paidmedia/knowledge-base/brazil-market-context.md +284 -0
- package/squads/squad-paidmedia/knowledge-base/programmatic-attribution-deep.md +311 -0
- package/squads/squad-paidmedia/knowledge-base/social-algorithms-playbook.md +361 -0
- package/squads/squad-paidmedia/knowledge-base/tiktok-linkedin-ads-playbook.md +213 -0
- package/squads/squad-product/knowledge-base/customer-success-integration.md +242 -0
- package/squads/squad-product/knowledge-base/experimentation-framework.md +196 -0
- package/squads/squad-research/knowledge-base/hybrid-retrieval-patterns.md +144 -0
- package/squads/squad-research/knowledge-base/knowledge-graph-construction.md +122 -0
- package/squads/squad-research/knowledge-base/multi-agent-research-methodology.md +144 -0
- package/squads/squad-storytelling/knowledge-base/blake-snyder-beat-sheet.md +151 -0
- package/squads/squad-storytelling/knowledge-base/business-storytelling-frameworks.md +209 -0
- package/squads/squad-storytelling/knowledge-base/heros-journey-deep.md +174 -0
- package/squads/squad-storytelling/knowledge-base/pitch-presentation-frameworks.md +222 -0
- package/squads/squad-storytelling/knowledge-base/story-circle-dan-harmon.md +171 -0
- package/.sinapse-ai/core/health-check/checks/services/gemini-cli.js +0 -239
- package/.sinapse-ai/core/orchestration/gemini-model-selector.js +0 -161
- package/.sinapse-ai/hooks/gemini/after-tool.js +0 -77
- package/.sinapse-ai/hooks/gemini/before-agent.js +0 -79
- package/.sinapse-ai/hooks/gemini/before-tool.js +0 -114
- package/.sinapse-ai/hooks/gemini/rewind-handler.js +0 -68
- package/.sinapse-ai/hooks/gemini/session-end.js +0 -90
- package/.sinapse-ai/hooks/gemini/session-start.js +0 -90
- package/.sinapse-ai/infrastructure/integrations/ai-providers/gemini-provider.js +0 -365
- package/.sinapse-ai/infrastructure/integrations/gemini-extensions/cloudrun-adapter.js +0 -128
- package/.sinapse-ai/infrastructure/integrations/gemini-extensions/index.js +0 -41
- package/.sinapse-ai/infrastructure/integrations/gemini-extensions/policy-sync.js +0 -73
- package/.sinapse-ai/infrastructure/integrations/gemini-extensions/security-adapter.js +0 -159
- package/.sinapse-ai/infrastructure/integrations/gemini-extensions/supabase-adapter.js +0 -88
- package/.sinapse-ai/infrastructure/integrations/gemini-extensions/workspace-adapter.js +0 -99
- package/.sinapse-ai/infrastructure/scripts/ide-sync/gemini-commands.js +0 -205
- package/.sinapse-ai/product/templates/gemini/settings.json +0 -79
- package/.sinapse-ai/product/templates/sinapse-ai-config.yaml +0 -106
- package/docs/changelog.md +0 -184
- package/docs/community.md +0 -227
- package/docs/en/sinapse-agent-flows/README.md +0 -190
- package/docs/en/sinapse-agent-flows/analyst-system.md +0 -26
- package/docs/en/sinapse-agent-flows/architect-system.md +0 -26
- package/docs/en/sinapse-agent-flows/data-engineer-system.md +0 -26
- package/docs/en/sinapse-agent-flows/dev-system.md +0 -26
- package/docs/en/sinapse-agent-flows/devops-system.md +0 -26
- package/docs/en/sinapse-agent-flows/pm-system.md +0 -26
- package/docs/en/sinapse-agent-flows/qa-system.md +0 -26
- package/docs/en/sinapse-agent-flows/sinapse-orqx-system.md +0 -26
- package/docs/en/sinapse-agent-flows/sm-system.md +0 -26
- package/docs/en/sinapse-agent-flows/squad-creator-system.md +0 -26
- package/docs/en/sinapse-agent-flows/ux-design-expert-system.md +0 -26
- package/docs/en/sinapse-workflows/README.md +0 -247
- package/docs/en/sinapse-workflows/auto-worktree-workflow.md +0 -62
- package/docs/en/sinapse-workflows/brownfield-discovery-workflow.md +0 -50
- package/docs/en/sinapse-workflows/brownfield-fullstack-workflow.md +0 -50
- package/docs/en/sinapse-workflows/brownfield-service-workflow.md +0 -51
- package/docs/en/sinapse-workflows/brownfield-ui-workflow.md +0 -51
- package/docs/en/sinapse-workflows/design-system-build-quality-workflow.md +0 -53
- package/docs/en/sinapse-workflows/greenfield-fullstack-workflow.md +0 -45
- package/docs/en/sinapse-workflows/greenfield-service-workflow.md +0 -45
- package/docs/en/sinapse-workflows/greenfield-ui-workflow.md +0 -45
- package/docs/en/sinapse-workflows/qa-loop-workflow.md +0 -50
- package/docs/en/sinapse-workflows/spec-pipeline-workflow.md +0 -48
- package/docs/en/sinapse-workflows/story-development-cycle-workflow.md +0 -50
- package/docs/how-to-contribute-with-pull-requests.md +0 -158
- package/docs/prd-cli-graph-dashboard.md +0 -274
- package/docs/troubleshooting.md +0 -881
- package/packages/gemini-sinapse-extension/README.md +0 -53
- package/packages/gemini-sinapse-extension/commands/lib/agent-launcher.js +0 -138
- package/packages/gemini-sinapse-extension/commands/sinapse-agent.js +0 -7
- package/packages/gemini-sinapse-extension/commands/sinapse-agents.js +0 -49
- package/packages/gemini-sinapse-extension/commands/sinapse-analyst.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-architect.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-data-engineer.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-dev.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-devops.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-menu.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-orqx.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-pm.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-po.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-qa.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-sm.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-squad-creator.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-status.js +0 -66
- package/packages/gemini-sinapse-extension/commands/sinapse-ux-design-expert.js +0 -6
- package/packages/gemini-sinapse-extension/commands/sinapse-validate.js +0 -33
- package/packages/gemini-sinapse-extension/extension.json +0 -147
- package/packages/gemini-sinapse-extension/gemini-extension.json +0 -147
- package/packages/gemini-sinapse-extension/hooks/hooks.json +0 -70
- /package/docs/{architecture-overview.md → framework/architecture-overview.md} +0 -0
- /package/docs/{codex-delegation-parity.md → framework/codex-parity/codex-delegation-parity.md} +0 -0
- /package/docs/{codex-parity-program.md → framework/codex-parity/codex-parity-program.md} +0 -0
- /package/docs/{codex-total-parity-orchestration-plan.md → framework/codex-parity/codex-total-parity-orchestration-plan.md} +0 -0
- /package/docs/{codex-workflow-task-parity.md → framework/codex-parity/codex-workflow-task-parity.md} +0 -0
- /package/docs/{collaboration-autonomy-plan.md → framework/collaboration-autonomy-plan.md} +0 -0
- /package/docs/{feature-process.md → framework/feature-process.md} +0 -0
- /package/docs/{guiding-principles.md → framework/guiding-principles.md} +0 -0
- /package/docs/{orqx-plan.md → framework/orqx-plan.md} +0 -0
- /package/docs/{roadmap.md → framework/roadmap.md} +0 -0
- /package/docs/{getting-started.md → guides/getting-started.md} +0 -0
- /package/docs/{git-workflow-guide.md → guides/git-workflow-guide.md} +0 -0
- /package/docs/{ide-integration.md → guides/ide-integration.md} +0 -0
- /package/docs/{squad-commands-reference.md → guides/squad-commands-reference.md} +0 -0
- /package/{CHROME-BRAIN-INSTALL.md → docs/installation/chrome-brain.md} +0 -0
- /package/docs/{npx-install.md → installation/npx-install.md} +0 -0
- /package/docs/{uninstallation.md → installation/uninstallation.md} +0 -0
- /package/docs/{security.md → security/overview.md} +0 -0
- /package/docs/{security-best-practices.md → security/security-best-practices.md} +0 -0
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
# OWASP Top 10 Reference — 2025 Edition
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
Complete OWASP Top 10 2025 reference with mitigations, code examples, and detection tools. Used by Breach (penetration-tester), Govern (compliance-officer), and any agent performing security review.
|
|
6
|
+
|
|
7
|
+
**Source authority:** OWASP Foundation — owasp.org/Top10/2025/
|
|
8
|
+
**Last updated in KB:** April 2026
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## What Changed from 2021 to 2025
|
|
13
|
+
|
|
14
|
+
| # | 2025 | Change from 2021 |
|
|
15
|
+
|---|------|-----------------|
|
|
16
|
+
| A01 | Broken Access Control | Maintained — still #1 (94% of apps tested) |
|
|
17
|
+
| A02 | Security Misconfiguration | Rose from #5 to #2 |
|
|
18
|
+
| A03 | Software Supply Chain Failures | EXPANDED from "Vulnerable and Outdated Components" — npm attacks of 2025 drove this |
|
|
19
|
+
| A04 | Cryptographic Failures | Maintained |
|
|
20
|
+
| A05 | Injection | Maintained — SQL, NoSQL, OS Command, LDAP |
|
|
21
|
+
| A06 | Insecure Design | Maintained |
|
|
22
|
+
| A07 | Authentication Failures | Maintained |
|
|
23
|
+
| A08 | Software or Data Integrity Failures | Maintained — CI/CD pipelines, unsigned updates |
|
|
24
|
+
| A09 | Security Logging and Alerting Failures | Renamed (was "Insufficient Logging & Monitoring") |
|
|
25
|
+
| A10 | Mishandling of Exceptional Conditions | NEW — fail-open behaviors, stack traces exposed |
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## A01 — Broken Access Control
|
|
30
|
+
|
|
31
|
+
**Prevalence:** 94% of applications tested had some form of broken access control.
|
|
32
|
+
|
|
33
|
+
**What it is:** A user can access resources, data, or functions they should not have permission to. Includes IDOR (Insecure Direct Object Reference), privilege escalation, forced browsing, JWT manipulation.
|
|
34
|
+
|
|
35
|
+
**Attack examples:**
|
|
36
|
+
- Changing `?user_id=123` to `?user_id=456` to access another user's data
|
|
37
|
+
- Accessing admin endpoints without admin role
|
|
38
|
+
- Manipulating JWT claims to elevate privileges
|
|
39
|
+
|
|
40
|
+
**Code — Wrong vs Right:**
|
|
41
|
+
```typescript
|
|
42
|
+
// WRONG: trusts parameter without authorization check
|
|
43
|
+
app.get('/api/users/:id', async (req, res) => {
|
|
44
|
+
const user = await db.getUser(req.params.id)
|
|
45
|
+
res.json(user) // Anyone can access any user
|
|
46
|
+
})
|
|
47
|
+
|
|
48
|
+
// RIGHT: verify caller owns the resource
|
|
49
|
+
app.get('/api/users/:id', async (req, res) => {
|
|
50
|
+
if (req.params.id !== req.user.id && !req.user.isAdmin) {
|
|
51
|
+
return res.status(403).json({ error: 'Forbidden' })
|
|
52
|
+
}
|
|
53
|
+
const user = await db.getUser(req.params.id)
|
|
54
|
+
res.json(user)
|
|
55
|
+
})
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
**Mitigations:**
|
|
59
|
+
- Deny access by default — allowlist, not denylist
|
|
60
|
+
- Implement access control at the server, not client
|
|
61
|
+
- Use Row Level Security (RLS) in databases (Supabase pattern)
|
|
62
|
+
- Log access control failures and alert on suspicious patterns
|
|
63
|
+
- Rate limit API endpoints to prevent automated enumeration
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## A02 — Security Misconfiguration
|
|
68
|
+
|
|
69
|
+
**Prevalence:** Rose significantly in 2025. Encompasses cloud misconfigurations, default credentials, verbose error messages, unnecessary features enabled.
|
|
70
|
+
|
|
71
|
+
**Attack examples:**
|
|
72
|
+
- Default admin credentials unchanged (admin/admin)
|
|
73
|
+
- S3 bucket / Azure Blob with public access enabled
|
|
74
|
+
- Verbose stack traces returned in API responses
|
|
75
|
+
- Development debug endpoints left enabled in production
|
|
76
|
+
- CORS set to `*` (wildcard)
|
|
77
|
+
|
|
78
|
+
**Mitigations:**
|
|
79
|
+
- Implement a repeatable hardening process — infrastructure as code (IaC) enforces baseline
|
|
80
|
+
- Remove unused features, frameworks, components
|
|
81
|
+
- Review and update security configurations as part of patch management
|
|
82
|
+
- Use automated scanning (Scout Suite for AWS, Prowler for multi-cloud)
|
|
83
|
+
- Never expose stack traces to end users
|
|
84
|
+
|
|
85
|
+
**Security Headers (mandatory in production):**
|
|
86
|
+
```
|
|
87
|
+
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
|
|
88
|
+
X-Content-Type-Options: nosniff
|
|
89
|
+
X-Frame-Options: DENY
|
|
90
|
+
Referrer-Policy: strict-origin-when-cross-origin
|
|
91
|
+
Permissions-Policy: geolocation=(), camera=(), microphone=()
|
|
92
|
+
Content-Security-Policy: default-src 'self'; script-src 'self' 'nonce-{random}'; frame-ancestors 'none';
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## A03 — Software Supply Chain Failures
|
|
98
|
+
|
|
99
|
+
**CRITICAL 2025 CONTEXT:** Real-world attacks that drove this category's expansion:
|
|
100
|
+
|
|
101
|
+
| Date | Package | Weekly Downloads | Attack Vector |
|
|
102
|
+
|------|---------|-----------------|---------------|
|
|
103
|
+
| Sep 2025 | debug, chalk + 16 others | 2.6 billion total | Maintainer phishing |
|
|
104
|
+
| Mar 2026 | Axios | 100M+ | Credential theft (North Korean APT) |
|
|
105
|
+
|
|
106
|
+
**What it is:** Compromised dependencies, typosquatting packages, malicious maintainer takeovers, unsigned artifacts.
|
|
107
|
+
|
|
108
|
+
**Mandatory defenses:**
|
|
109
|
+
```bash
|
|
110
|
+
# Always use lockfile in CI — npm ci respects lockfile exactly
|
|
111
|
+
npm ci # NOT npm install
|
|
112
|
+
|
|
113
|
+
# Audit regularly
|
|
114
|
+
npm audit --audit-level=high
|
|
115
|
+
|
|
116
|
+
# Pin exact versions in package.json — no caret operators
|
|
117
|
+
"dependencies": {
|
|
118
|
+
"axios": "1.7.2" # exact, not "^1.7.2"
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
# Configure Dependabot for weekly automated updates
|
|
122
|
+
# .github/dependabot.yml
|
|
123
|
+
version: 2
|
|
124
|
+
updates:
|
|
125
|
+
- package-ecosystem: "npm"
|
|
126
|
+
directory: "/"
|
|
127
|
+
schedule:
|
|
128
|
+
interval: "weekly"
|
|
129
|
+
|
|
130
|
+
# Detect secrets in code
|
|
131
|
+
npx gitleaks detect
|
|
132
|
+
|
|
133
|
+
# 7-day cooldown: do not immediately adopt newly published versions
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
**SBOM (Software Bill of Materials):** Generate and maintain an SBOM so you can instantly answer "does our app use vulnerable-library-X?" when a CVE drops. Tools: Syft (Anchore), CycloneDX CLI, grype for scanning.
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
## A04 — Cryptographic Failures
|
|
141
|
+
|
|
142
|
+
**What it is:** Data transmitted or stored without encryption, weak algorithms, poor key management.
|
|
143
|
+
|
|
144
|
+
**Attack examples:**
|
|
145
|
+
- Passwords stored as plain text or MD5
|
|
146
|
+
- Sensitive data transmitted over HTTP
|
|
147
|
+
- Private keys committed to repositories
|
|
148
|
+
- Use of deprecated algorithms (DES, RC4, MD5 for integrity)
|
|
149
|
+
|
|
150
|
+
**Algorithm guidance:**
|
|
151
|
+
|
|
152
|
+
| Use Case | Recommended | Deprecated (Do Not Use) |
|
|
153
|
+
|----------|-------------|------------------------|
|
|
154
|
+
| Password hashing | Argon2id, bcrypt, PBKDF2 | MD5, SHA1, unsalted SHA2 |
|
|
155
|
+
| Symmetric encryption | AES-256-GCM, ChaCha20-Poly1305 | DES, 3DES, RC4 |
|
|
156
|
+
| Asymmetric | RSA-4096, ECDSA-P256, Ed25519 | RSA-1024, DSA |
|
|
157
|
+
| TLS | 1.2 (minimum), 1.3 (recommended) | SSLv3, TLS 1.0, TLS 1.1 |
|
|
158
|
+
| Hashing (non-password) | SHA-256, SHA-3 | MD5, SHA1 |
|
|
159
|
+
| Key exchange | ECDH, X25519 | DH < 2048-bit |
|
|
160
|
+
|
|
161
|
+
**Mitigations:**
|
|
162
|
+
- Classify data and apply protection levels (TLS in transit, AES at rest)
|
|
163
|
+
- Do not cache sensitive data unnecessarily
|
|
164
|
+
- Store passwords using a modern hashing algorithm with salting
|
|
165
|
+
- Disable deprecated TLS protocol versions at the load balancer/reverse proxy
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
## A05 — Injection
|
|
170
|
+
|
|
171
|
+
**What it is:** Untrusted data sent to an interpreter as part of a command or query. SQL, NoSQL, OS command, LDAP, XPath, XML injection.
|
|
172
|
+
|
|
173
|
+
**Code — SQL Injection:**
|
|
174
|
+
```javascript
|
|
175
|
+
// FORBIDDEN: string interpolation creates SQL injection vector
|
|
176
|
+
const query = `SELECT * FROM users WHERE name = '${userInput}'`
|
|
177
|
+
|
|
178
|
+
// REQUIRED: parameterized queries
|
|
179
|
+
const query = 'SELECT * FROM users WHERE name = $1'
|
|
180
|
+
const result = await db.query(query, [userInput])
|
|
181
|
+
|
|
182
|
+
// Supabase: already parameterized — safe
|
|
183
|
+
const { data } = await supabase.from('users').select('*').eq('name', userInput)
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
**Mitigations:**
|
|
187
|
+
- Use parameterized queries or ORMs — never string concatenation
|
|
188
|
+
- Validate and sanitize all user input with a schema (Zod, Joi)
|
|
189
|
+
- Apply least privilege on database accounts — app user should not have DROP or DDL rights
|
|
190
|
+
- Use WAF rules for SQL injection patterns as defense-in-depth
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
|
|
194
|
+
## A06 — Insecure Design
|
|
195
|
+
|
|
196
|
+
**What it is:** Design flaws, not implementation bugs. Missing threat modeling, no rate limits on sensitive flows, missing security requirements from the start.
|
|
197
|
+
|
|
198
|
+
**Examples:**
|
|
199
|
+
- A password reset flow that lacks rate limiting or account enumeration protection
|
|
200
|
+
- A multi-tenant application where tenant isolation is not a design requirement
|
|
201
|
+
- An API that leaks internal IDs enabling enumeration attacks
|
|
202
|
+
|
|
203
|
+
**Mitigations:**
|
|
204
|
+
- Threat model before coding — use STRIDE framework
|
|
205
|
+
- Define security requirements alongside functional requirements
|
|
206
|
+
- Implement rate limiting on all sensitive endpoints (auth, password reset, payment)
|
|
207
|
+
- Adopt secure design patterns: defense in depth, fail securely, least privilege
|
|
208
|
+
|
|
209
|
+
---
|
|
210
|
+
|
|
211
|
+
## A07 — Authentication Failures
|
|
212
|
+
|
|
213
|
+
**What it is:** Weaknesses in authentication and session management. Brute force, session hijacking, credential stuffing, weak tokens.
|
|
214
|
+
|
|
215
|
+
**JWT Security Best Practices:**
|
|
216
|
+
|
|
217
|
+
| Practice | Detail |
|
|
218
|
+
|---------|--------|
|
|
219
|
+
| Storage | httpOnly cookies — NEVER localStorage (XSS vulnerable) |
|
|
220
|
+
| Expiration | Access token: 5-15 min. Refresh token: 7-30 days |
|
|
221
|
+
| Algorithm | EdDSA (preferred) or ES256. Avoid RS256 for new projects |
|
|
222
|
+
| Secret | Minimum 64 characters, cryptographically generated |
|
|
223
|
+
| Transport | HTTPS only — never send tokens over HTTP |
|
|
224
|
+
| Validation | Always verify signature, exp, iss, aud server-side |
|
|
225
|
+
|
|
226
|
+
**Password hashing:**
|
|
227
|
+
|
|
228
|
+
| Algorithm | Recommendation | Notes |
|
|
229
|
+
|-----------|---------------|-------|
|
|
230
|
+
| Argon2id | Ideal | Most modern, GPU-resistant |
|
|
231
|
+
| bcrypt | Recommended | Most common in Node.js |
|
|
232
|
+
| PBKDF2 | Acceptable | When bcrypt/Argon2 unavailable |
|
|
233
|
+
| MD5/SHA1 | PROHIBITED | Never use for passwords |
|
|
234
|
+
|
|
235
|
+
**Session management requirements:**
|
|
236
|
+
- Generate session IDs with at least 64 bits of entropy
|
|
237
|
+
- Regenerate session ID after successful authentication (prevents session fixation)
|
|
238
|
+
- Invalidate sessions both client-side and server-side on logout
|
|
239
|
+
- Implement inactivity timeout
|
|
240
|
+
|
|
241
|
+
---
|
|
242
|
+
|
|
243
|
+
## A08 — Software and Data Integrity Failures
|
|
244
|
+
|
|
245
|
+
**What it is:** Assumptions about software updates, critical data, and CI/CD pipelines without integrity verification. Includes insecure deserialization.
|
|
246
|
+
|
|
247
|
+
**Examples:**
|
|
248
|
+
- CI/CD pipeline that can be poisoned via unprotected secrets
|
|
249
|
+
- Application downloading unsigned/unverified plugins or updates
|
|
250
|
+
- Deserializing objects from untrusted sources (Java serialization, pickle)
|
|
251
|
+
|
|
252
|
+
**Mitigations:**
|
|
253
|
+
- Use digital signatures for code releases (Sigstore, GPG)
|
|
254
|
+
- Ensure packages come from trusted registries with integrity checking
|
|
255
|
+
- Protect CI/CD pipeline — secrets stored in vault, branch protections on main
|
|
256
|
+
- Do not deserialize objects from untrusted sources without validation
|
|
257
|
+
|
|
258
|
+
---
|
|
259
|
+
|
|
260
|
+
## A09 — Security Logging and Alerting Failures
|
|
261
|
+
|
|
262
|
+
**What it is:** Insufficient logging means breaches go undetected. Average breach dwell time without good logging: 287 days (IBM Cost of Data Breach 2025).
|
|
263
|
+
|
|
264
|
+
**What you must log:**
|
|
265
|
+
- Authentication events (login, logout, failures)
|
|
266
|
+
- Access control failures
|
|
267
|
+
- Input validation failures
|
|
268
|
+
- High-value transactions
|
|
269
|
+
- Admin operations
|
|
270
|
+
|
|
271
|
+
**What you must NOT log:**
|
|
272
|
+
- Passwords or password hashes
|
|
273
|
+
- Session tokens or API keys
|
|
274
|
+
- Credit card numbers or PII (mask if needed)
|
|
275
|
+
- Full request bodies containing sensitive data
|
|
276
|
+
|
|
277
|
+
**Alerting requirements:**
|
|
278
|
+
- Alert on brute force patterns (5+ failed logins from same IP in 10 minutes)
|
|
279
|
+
- Alert on access control failures from authenticated users
|
|
280
|
+
- Alert on spikes in 4xx/5xx error rates
|
|
281
|
+
- Alert on mass data exports or downloads
|
|
282
|
+
|
|
283
|
+
---
|
|
284
|
+
|
|
285
|
+
## A10 — Mishandling of Exceptional Conditions (NEW in 2025)
|
|
286
|
+
|
|
287
|
+
**What it is:** Applications that fail-open (grant access when error occurs) or expose internal details in error messages. Stack traces reveal file paths, database schema, framework versions.
|
|
288
|
+
|
|
289
|
+
**Code — Wrong vs Right:**
|
|
290
|
+
```typescript
|
|
291
|
+
// WRONG: exposes internal stack trace
|
|
292
|
+
app.get('/api/data', async (req, res) => {
|
|
293
|
+
try {
|
|
294
|
+
const data = await fetchData()
|
|
295
|
+
res.json(data)
|
|
296
|
+
} catch (error) {
|
|
297
|
+
res.status(500).json({ error: error.stack }) // NEVER do this
|
|
298
|
+
}
|
|
299
|
+
})
|
|
300
|
+
|
|
301
|
+
// RIGHT: fail-closed, detailed internal log, generic external message
|
|
302
|
+
app.get('/api/data', async (req, res) => {
|
|
303
|
+
try {
|
|
304
|
+
const data = await fetchData()
|
|
305
|
+
res.json(data)
|
|
306
|
+
} catch (error) {
|
|
307
|
+
console.error('Internal error:', error) // detailed internal log
|
|
308
|
+
res.status(500).json({ error: 'Internal server error' }) // generic external
|
|
309
|
+
}
|
|
310
|
+
})
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
**Mitigations:**
|
|
314
|
+
- Implement global error handler that never leaks internal details
|
|
315
|
+
- Use structured logging for internal details, generic messages for clients
|
|
316
|
+
- Test error paths explicitly — ensure they fail-closed (deny access on error)
|
|
317
|
+
- Remove default error pages that expose framework/server versions
|
|
318
|
+
|
|
319
|
+
---
|
|
320
|
+
|
|
321
|
+
## Detection Tools Mapping
|
|
322
|
+
|
|
323
|
+
| OWASP Category | SAST | DAST | SCA |
|
|
324
|
+
|---------------|------|------|-----|
|
|
325
|
+
| A01 Broken Access Control | Semgrep, CodeQL | Burp Suite, ZAP | — |
|
|
326
|
+
| A02 Misconfiguration | Checkov, Prowler | Scout Suite, ZAP | — |
|
|
327
|
+
| A03 Supply Chain | — | — | Snyk, Dependabot, Grype |
|
|
328
|
+
| A04 Crypto Failures | Semgrep, SonarQube | SSLyze | — |
|
|
329
|
+
| A05 Injection | Semgrep, CodeQL | Burp Suite, SQLmap | — |
|
|
330
|
+
| A06 Insecure Design | Manual review | Threat modeling | — |
|
|
331
|
+
| A07 Auth Failures | Semgrep | Burp Suite, Hydra | — |
|
|
332
|
+
| A08 Integrity Failures | — | — | Cosign, Syft |
|
|
333
|
+
| A09 Logging Failures | Manual review | Log analysis | — |
|
|
334
|
+
| A10 Exception Handling | Semgrep | Manual testing | — |
|
|
335
|
+
|
|
336
|
+
---
|
|
337
|
+
|
|
338
|
+
## OWASP API Security Top 10 (2023 — still current)
|
|
339
|
+
|
|
340
|
+
For API-specific security testing, use the parallel API Security Top 10:
|
|
341
|
+
|
|
342
|
+
| # | Category | Key Risk |
|
|
343
|
+
|---|----------|---------|
|
|
344
|
+
| API1 | Broken Object Level Authorization (BOLA) | Accessing other users' objects by ID |
|
|
345
|
+
| API2 | Broken Authentication | Weak/missing auth on API endpoints |
|
|
346
|
+
| API3 | Broken Object Property Level Authorization | Over-exposure of object properties |
|
|
347
|
+
| API4 | Unrestricted Resource Consumption | No rate limiting on resource-intensive endpoints |
|
|
348
|
+
| API5 | Broken Function Level Authorization | Users accessing admin functions |
|
|
349
|
+
| API6 | Unrestricted Access to Sensitive Business Flows | Automated abuse of business logic |
|
|
350
|
+
| API7 | Server-Side Request Forgery | API calls forged to internal resources |
|
|
351
|
+
| API8 | Security Misconfiguration | Default configs, verbose errors |
|
|
352
|
+
| API9 | Improper Inventory Management | Shadow APIs, undocumented endpoints |
|
|
353
|
+
| API10 | Unsafe Consumption of APIs | Trusting third-party APIs without validation |
|
|
354
|
+
|
|
355
|
+
---
|
|
356
|
+
|
|
357
|
+
## Sources
|
|
358
|
+
|
|
359
|
+
- OWASP Top 10 2025: https://owasp.org/Top10/2025/
|
|
360
|
+
- OWASP API Security Top 10 2023: https://owasp.org/API-Security/
|
|
361
|
+
- OWASP Testing Guide v4.2: https://owasp.org/www-project-web-security-testing-guide/
|
|
362
|
+
- OWASP Cheat Sheet Series: https://cheatsheetseries.owasp.org/
|
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
# Supply Chain Security Reference
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
Reference for software supply chain security — SLSA framework, Sigstore signing, SBOM generation, dependency scanning, and real-world attack context. Used by Breach (penetration-tester) and Govern (compliance-officer).
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## The Post-SolarWinds Landscape
|
|
10
|
+
|
|
11
|
+
The period after SolarWinds (December 2020) and Log4Shell (December 2021) transformed supply chain security from a theoretical concern to a regulatory requirement.
|
|
12
|
+
|
|
13
|
+
**Key regulatory drivers:**
|
|
14
|
+
- **US Executive Order 14028** (May 2021) — mandated SBOM requirements and Zero Trust standards for software sold to the US federal government
|
|
15
|
+
- **EO 14144** (January 2025) — added detailed requirements
|
|
16
|
+
- **EO 14306** (June 2025) — rescinded parts of 14144 but maintained NIST SP 800-218 (SSDF) guidance
|
|
17
|
+
- The private market adopted these standards independently of federal timelines
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Real-World Attacks (2025-2026)
|
|
22
|
+
|
|
23
|
+
| Date | Target | Weekly Downloads | Attack Vector | Impact |
|
|
24
|
+
|------|--------|-----------------|---------------|--------|
|
|
25
|
+
| Dec 2021 | Log4j (Log4Shell) | Billions | RCE vulnerability in ubiquitous library | Most critical vuln of the decade |
|
|
26
|
+
| Sep 2025 | debug, chalk + 16 npm packages | 2.6 billion combined | Maintainer phishing, credential theft | Malicious code injected into popular packages |
|
|
27
|
+
| Mar 2026 | Axios | 100M+ | North Korean APT credential theft | Supply chain code execution |
|
|
28
|
+
|
|
29
|
+
**Log4Shell lesson:** When Log4j was disclosed, most organizations did not know if they used it or where. SBOMs answer that question instantly.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## SBOM: Software Bill of Materials
|
|
34
|
+
|
|
35
|
+
### What It Is
|
|
36
|
+
|
|
37
|
+
A formal, machine-readable inventory of every software component (libraries, dependencies, versions) in an application. The analogy: just as physical products have ingredient lists, software should have component lists.
|
|
38
|
+
|
|
39
|
+
### Standard Formats
|
|
40
|
+
|
|
41
|
+
| Format | Owner | Best For |
|
|
42
|
+
|--------|-------|---------|
|
|
43
|
+
| **SPDX** | Linux Foundation | Broad ecosystem, NTIA-compliant |
|
|
44
|
+
| **CycloneDX** | OWASP | Security-focused, vulnerability correlations |
|
|
45
|
+
| **SWID** | ISO/IEC 19770 | Enterprise software asset management |
|
|
46
|
+
|
|
47
|
+
### Generation Tools
|
|
48
|
+
|
|
49
|
+
| Tool | Language/Ecosystem | Output |
|
|
50
|
+
|------|-------------------|--------|
|
|
51
|
+
| **Syft** (Anchore) | Multi-language, containers | SPDX, CycloneDX |
|
|
52
|
+
| **CycloneDX CLI** | Multi-language | CycloneDX |
|
|
53
|
+
| **grype** (Anchore) | Multi-language | Vulnerability scanner against SBOM |
|
|
54
|
+
| **cosign** | Containers | Sign and verify SBOM artifacts |
|
|
55
|
+
| **trivy** | Containers, filesystems | SBOM + vulnerability scanning |
|
|
56
|
+
| **jake** | Python | pip/conda SBOMs |
|
|
57
|
+
|
|
58
|
+
### SBOM Workflow in CI/CD
|
|
59
|
+
|
|
60
|
+
```yaml
|
|
61
|
+
# GitHub Actions — generate SBOM on every release
|
|
62
|
+
- name: Generate SBOM
|
|
63
|
+
uses: anchore/sbom-action@v0
|
|
64
|
+
with:
|
|
65
|
+
format: 'spdx-json'
|
|
66
|
+
output-file: 'sbom.spdx.json'
|
|
67
|
+
|
|
68
|
+
- name: Scan SBOM for vulnerabilities
|
|
69
|
+
uses: anchore/scan-action@v3
|
|
70
|
+
with:
|
|
71
|
+
sbom: 'sbom.spdx.json'
|
|
72
|
+
fail-build: 'true'
|
|
73
|
+
severity-cutoff: 'high'
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### When a CVE Drops: SBOM Value
|
|
77
|
+
|
|
78
|
+
Without SBOM — manual audit of hundreds of repos, hours or days to determine exposure.
|
|
79
|
+
With SBOM — query: `grep "log4j" */sbom.spdx.json` — instantly know every affected app.
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## SLSA: Supply-chain Levels for Software Artifacts
|
|
84
|
+
|
|
85
|
+
### What It Is
|
|
86
|
+
|
|
87
|
+
Framework created by Google's security team, now under OpenSSF (Open Source Security Foundation). Defines incremental levels of guarantee about how a software artifact was built.
|
|
88
|
+
|
|
89
|
+
SLSA 1.0 finalized in 2023. Considered baseline for serious supply chain security as of 2025.
|
|
90
|
+
|
|
91
|
+
### The Four Levels
|
|
92
|
+
|
|
93
|
+
| Level | Requirements | Guarantees | Achieved By |
|
|
94
|
+
|-------|-------------|-----------|-------------|
|
|
95
|
+
| **SLSA 1** | Build process documented | Minimal — easy starting point | Documentation + any CI |
|
|
96
|
+
| **SLSA 2** | Build by hosted CI service, provenance generated | Build provenance available | GitHub Actions, Google Cloud Build |
|
|
97
|
+
| **SLSA 3** | Isolated build environment, unforgeable provenance, traceable deps | Hard to tamper with build | GitHub Actions with SLSA generator |
|
|
98
|
+
| **SLSA 4** | Hermetic, reproducible build, two-person review | Highest assurance | Advanced build systems |
|
|
99
|
+
|
|
100
|
+
### SLSA in GitHub Actions
|
|
101
|
+
|
|
102
|
+
```yaml
|
|
103
|
+
# Generate SLSA provenance automatically with GitHub Actions
|
|
104
|
+
- name: Generate SLSA Provenance
|
|
105
|
+
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v1
|
|
106
|
+
with:
|
|
107
|
+
base64-subjects: "${{ needs.build.outputs.hashes }}"
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### Verification
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
# Verify artifact provenance
|
|
114
|
+
slsa-verifier verify-artifact my-binary \
|
|
115
|
+
--provenance-path provenance.intoto.jsonl \
|
|
116
|
+
--source-uri github.com/my-org/my-repo \
|
|
117
|
+
--source-tag v1.0.0
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## Sigstore: Keyless Code Signing
|
|
123
|
+
|
|
124
|
+
### What It Is
|
|
125
|
+
|
|
126
|
+
An OpenSSF project that simplifies digital signing of software using OIDC identity instead of long-lived private keys. Components:
|
|
127
|
+
|
|
128
|
+
| Component | Function |
|
|
129
|
+
|-----------|----------|
|
|
130
|
+
| **Cosign** | CLI to sign/verify containers and other artifacts |
|
|
131
|
+
| **Fulcio** | Certificate Authority — issues short-lived certificates for signatures |
|
|
132
|
+
| **Rekor** | Immutable transparency log — records all signatures |
|
|
133
|
+
|
|
134
|
+
### Why Keyless Signing Matters
|
|
135
|
+
|
|
136
|
+
Traditional signing problems:
|
|
137
|
+
- Private keys can leak, be stolen, or get lost
|
|
138
|
+
- Key management is operationally complex
|
|
139
|
+
- Revoking a compromised key is difficult
|
|
140
|
+
|
|
141
|
+
Sigstore solution:
|
|
142
|
+
1. Developer authenticates via OIDC (GitHub, Google, Microsoft identity)
|
|
143
|
+
2. Fulcio issues a certificate valid for 10 minutes
|
|
144
|
+
3. Cosign uses the certificate to sign the artifact
|
|
145
|
+
4. Signature is recorded in Rekor (immutable, public transparency log)
|
|
146
|
+
5. Certificate expires — no long-lived key to steal
|
|
147
|
+
|
|
148
|
+
### Signing Containers
|
|
149
|
+
|
|
150
|
+
```bash
|
|
151
|
+
# Sign a container image
|
|
152
|
+
cosign sign --key cosign.key gcr.io/my-project/my-image:v1.0.0
|
|
153
|
+
|
|
154
|
+
# Keyless signing (uses OIDC identity from CI environment)
|
|
155
|
+
cosign sign gcr.io/my-project/my-image:v1.0.0
|
|
156
|
+
|
|
157
|
+
# Verify a signature
|
|
158
|
+
cosign verify \
|
|
159
|
+
--certificate-identity user@example.com \
|
|
160
|
+
--certificate-oidc-issuer https://accounts.google.com \
|
|
161
|
+
gcr.io/my-project/my-image:v1.0.0
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
### Adoption Status (2025)
|
|
165
|
+
|
|
166
|
+
- Standard in Kubernetes release builds
|
|
167
|
+
- Standard in many CNCF projects
|
|
168
|
+
- GitHub Container Registry supports automatic Sigstore signing
|
|
169
|
+
- npm and PyPI adding signing support
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
## Dependency Scanning Tools
|
|
174
|
+
|
|
175
|
+
### SAST (Static Analysis Security Testing)
|
|
176
|
+
|
|
177
|
+
| Tool | Strengths | Free Tier |
|
|
178
|
+
|------|-----------|-----------|
|
|
179
|
+
| **Snyk Code** | 19+ languages, AI fix suggestions, IDE integration | Yes |
|
|
180
|
+
| **Semgrep** | Custom rule writing, pattern matching, fast | Yes |
|
|
181
|
+
| **SonarQube** | Comprehensive, CI/CD integration | Community edition |
|
|
182
|
+
| **GitHub Advanced Security (GHAS)** | Integrated with GitHub workflow (CodeQL) | For public repos |
|
|
183
|
+
|
|
184
|
+
### SCA (Software Composition Analysis)
|
|
185
|
+
|
|
186
|
+
| Tool | Strengths | Free Tier |
|
|
187
|
+
|------|-----------|-----------|
|
|
188
|
+
| **Snyk Open Source** | Largest vulnerability database | Yes |
|
|
189
|
+
| **GitHub Dependabot** | Native GitHub integration, auto-PRs | Yes |
|
|
190
|
+
| **Grype** (Anchore) | Fast, integrates with Syft/SBOM | Yes |
|
|
191
|
+
| **Trivy** | All-in-one: containers + filesystem + SBOM | Yes |
|
|
192
|
+
| **OWASP Dependency-Check** | Widely used, good for enterprise | Yes |
|
|
193
|
+
|
|
194
|
+
### Secret Scanning
|
|
195
|
+
|
|
196
|
+
```bash
|
|
197
|
+
# Detect secrets in code before commit
|
|
198
|
+
npx gitleaks detect
|
|
199
|
+
|
|
200
|
+
# GitHub native — enable in repository settings
|
|
201
|
+
# Settings > Code security > Secret scanning > Enable
|
|
202
|
+
|
|
203
|
+
# Pre-commit hook with git-secrets
|
|
204
|
+
git secrets --install
|
|
205
|
+
git secrets --register-aws
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
---
|
|
209
|
+
|
|
210
|
+
## Dependency Management Best Practices
|
|
211
|
+
|
|
212
|
+
### Lockfile Discipline
|
|
213
|
+
|
|
214
|
+
```bash
|
|
215
|
+
# In CI, always use lockfile-enforcing commands
|
|
216
|
+
npm ci # NOT npm install
|
|
217
|
+
pip install --require-hashes -r requirements.txt
|
|
218
|
+
poetry install --no-root
|
|
219
|
+
|
|
220
|
+
# Commit lockfiles to version control
|
|
221
|
+
# package-lock.json, yarn.lock, Pipfile.lock — always commit
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
### Version Pinning Strategy
|
|
225
|
+
|
|
226
|
+
```json
|
|
227
|
+
// package.json — exact versions, no caret or tilde
|
|
228
|
+
{
|
|
229
|
+
"dependencies": {
|
|
230
|
+
"axios": "1.7.2", // exact — NOT "^1.7.2"
|
|
231
|
+
"express": "4.18.2" // exact — NOT "~4.18.2"
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
**7-Day Cooldown Rule:** Do not immediately adopt newly published package versions. Malicious packages are often detected within 48-72 hours. Waiting 7 days before updating significantly reduces supply chain risk.
|
|
237
|
+
|
|
238
|
+
### Automated Updates with Review
|
|
239
|
+
|
|
240
|
+
```yaml
|
|
241
|
+
# .github/dependabot.yml — automated dependency updates with human review
|
|
242
|
+
version: 2
|
|
243
|
+
updates:
|
|
244
|
+
- package-ecosystem: "npm"
|
|
245
|
+
directory: "/"
|
|
246
|
+
schedule:
|
|
247
|
+
interval: "weekly"
|
|
248
|
+
groups:
|
|
249
|
+
production-dependencies:
|
|
250
|
+
dependency-type: "production"
|
|
251
|
+
development-dependencies:
|
|
252
|
+
dependency-type: "development"
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
### Private Registry Mirror
|
|
256
|
+
|
|
257
|
+
For high-security environments, mirror public packages through a private registry:
|
|
258
|
+
- **Artifactory** — enterprise-grade with vulnerability scanning
|
|
259
|
+
- **Verdaccio** — open source npm proxy/registry
|
|
260
|
+
- **AWS CodeArtifact** — managed, integrates with IAM
|
|
261
|
+
- This approach allows inspection/approval before packages reach developers
|
|
262
|
+
|
|
263
|
+
---
|
|
264
|
+
|
|
265
|
+
## Secure CI/CD Pipeline
|
|
266
|
+
|
|
267
|
+
### Hardening Checklist
|
|
268
|
+
|
|
269
|
+
```
|
|
270
|
+
[ ] Secrets stored in vault or CI secrets manager — never in code
|
|
271
|
+
[ ] Branch protection on main — no direct pushes
|
|
272
|
+
[ ] Required code reviews before merge
|
|
273
|
+
[ ] Signed commits (git commit -S)
|
|
274
|
+
[ ] Signed container images (Cosign)
|
|
275
|
+
[ ] SBOM generated and stored with every release
|
|
276
|
+
[ ] Dependency scanning (SCA) in every PR
|
|
277
|
+
[ ] SAST scanning in every PR
|
|
278
|
+
[ ] Secret scanning enabled (GitHub, GitLab)
|
|
279
|
+
[ ] Audit logs for all pipeline runs
|
|
280
|
+
[ ] Least privilege for CI service accounts
|
|
281
|
+
[ ] SLSA Level 2+ provenance for releases
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
### GitHub Actions Security
|
|
285
|
+
|
|
286
|
+
```yaml
|
|
287
|
+
# Minimal permissions for workflow
|
|
288
|
+
permissions:
|
|
289
|
+
contents: read # Only what's needed
|
|
290
|
+
security-events: write # For uploading security results
|
|
291
|
+
|
|
292
|
+
jobs:
|
|
293
|
+
build:
|
|
294
|
+
runs-on: ubuntu-latest
|
|
295
|
+
steps:
|
|
296
|
+
# Pin actions to specific commit SHA, not tag
|
|
297
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
298
|
+
|
|
299
|
+
# Never: actions/checkout@v4 (tag can be moved)
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
---
|
|
303
|
+
|
|
304
|
+
## Sources
|
|
305
|
+
|
|
306
|
+
- NIST SP 800-218 (SSDF): https://csrc.nist.gov/publications/detail/sp/800-218/final
|
|
307
|
+
- OpenSSF SLSA: https://slsa.dev/
|
|
308
|
+
- Sigstore: https://sigstore.dev/
|
|
309
|
+
- CISA Software Supply Chain Security: https://www.cisa.gov/software-supply-chain-security
|
|
310
|
+
- Anchore SBOMs 2025: https://anchore.com/blog/software-supply-chain-security-in-2025-sboms-take-center-stage/
|
|
311
|
+
- OWASP Dependency-Check: https://owasp.org/www-project-dependency-check/
|