maestro-flow 0.5.31 → 0.5.33
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/.agents/skills/delegation-check/SKILL.md +299 -0
- package/.agents/skills/delegation-check/specs/separation-rules.md +269 -0
- package/.agents/skills/odyssey-debug/SKILL.md +30 -16
- package/.agents/skills/odyssey-improve/SKILL.md +28 -15
- package/.agents/skills/odyssey-planex/SKILL.md +20 -12
- package/.agents/skills/odyssey-review-test-fix/SKILL.md +29 -13
- package/.agents/skills/odyssey-ui/SKILL.md +27 -14
- package/.agents/skills/prompt-generator/SKILL.md +472 -0
- package/.agents/skills/prompt-generator/specs/agent-design-spec.md +299 -0
- package/.agents/skills/prompt-generator/specs/command-design-spec.md +367 -0
- package/.agents/skills/prompt-generator/specs/conversion-spec.md +207 -0
- package/.agents/skills/prompt-generator/templates/agent-md.md +145 -0
- package/.agents/skills/prompt-generator/templates/command-md.md +118 -0
- package/.agents/skills/scholar-anti-ai-writing/SKILL.md +175 -0
- package/.agents/skills/scholar-anti-ai-writing/phases/01-detect-score.md +126 -0
- package/.agents/skills/scholar-anti-ai-writing/phases/02-rewrite-polish.md +177 -0
- package/.agents/skills/scholar-anti-ai-writing/phases/03-validate-score.md +134 -0
- package/.agents/skills/scholar-anti-ai-writing/references/patterns-chinese.md +242 -0
- package/.agents/skills/scholar-anti-ai-writing/references/patterns-english.md +242 -0
- package/.agents/skills/scholar-citation-verify/SKILL.md +168 -0
- package/.agents/skills/scholar-citation-verify/phases/01-scan-extract.md +141 -0
- package/.agents/skills/scholar-citation-verify/phases/02-verify.md +310 -0
- package/.agents/skills/scholar-citation-verify/phases/03-report-fix.md +190 -0
- package/.agents/skills/scholar-citation-verify/references/api-usage.md +372 -0
- package/.agents/skills/scholar-citation-verify/references/common-errors.md +384 -0
- package/.agents/skills/scholar-citation-verify/references/verification-rules.md +399 -0
- package/.agents/skills/scholar-experiment/SKILL.md +323 -0
- package/.agents/skills/scholar-experiment/phases/01-data-loading.md +209 -0
- package/.agents/skills/scholar-experiment/phases/02-statistical-analysis.md +269 -0
- package/.agents/skills/scholar-experiment/phases/03-visualization.md +319 -0
- package/.agents/skills/scholar-experiment/phases/04-results-writing.md +229 -0
- package/.agents/skills/scholar-experiment/phases/05-quality-check.md +261 -0
- package/.agents/skills/scholar-ideation/SKILL.md +290 -0
- package/.agents/skills/scholar-ideation/phases/01-literature-search.md +317 -0
- package/.agents/skills/scholar-ideation/phases/02-gap-analysis.md +249 -0
- package/.agents/skills/scholar-ideation/phases/03-research-question.md +200 -0
- package/.agents/skills/scholar-ideation/phases/04-method-selection.md +185 -0
- package/.agents/skills/scholar-ideation/phases/05-research-planning.md +385 -0
- package/.agents/skills/scholar-latex-organizer/SKILL.md +188 -0
- package/.agents/skills/scholar-latex-organizer/phases/01-extract-analyze.md +228 -0
- package/.agents/skills/scholar-latex-organizer/phases/02-cleanup-organize.md +500 -0
- package/.agents/skills/scholar-latex-organizer/phases/03-readme-finalize.md +349 -0
- package/.agents/skills/scholar-publish/SKILL.md +222 -0
- package/.agents/skills/scholar-publish/phases/01-presentation.md +243 -0
- package/.agents/skills/scholar-publish/phases/02-poster.md +239 -0
- package/.agents/skills/scholar-publish/phases/03-promotion.md +255 -0
- package/.agents/skills/scholar-rebuttal-pro/README.md +313 -0
- package/.agents/skills/scholar-rebuttal-pro/SKILL.md +513 -0
- package/.agents/skills/scholar-rebuttal-pro/phases/01-review-parsing.md +227 -0
- package/.agents/skills/scholar-rebuttal-pro/phases/02-multi-perspective-discussion.md +395 -0
- package/.agents/skills/scholar-rebuttal-pro/phases/03-strategy-formulation.md +459 -0
- package/.agents/skills/scholar-rebuttal-pro/phases/04-rebuttal-writing.md +384 -0
- package/.agents/skills/scholar-rebuttal-pro/phases/05-quality-validation.md +691 -0
- package/.agents/skills/scholar-review/SKILL.md +229 -0
- package/.agents/skills/scholar-review/phases/01-self-review.md +186 -0
- package/.agents/skills/scholar-review/phases/02-review-analysis.md +203 -0
- package/.agents/skills/scholar-review/phases/03-response-strategy.md +193 -0
- package/.agents/skills/scholar-review/phases/04-rebuttal-writing.md +181 -0
- package/.agents/skills/scholar-review/phases/05-revision.md +183 -0
- package/.agents/skills/scholar-review/specs/tone-guidelines.md +76 -0
- package/.agents/skills/scholar-thesis-docx/LICENSE +21 -0
- package/.agents/skills/scholar-thesis-docx/README.md +111 -0
- package/.agents/skills/scholar-thesis-docx/README_EN.md +108 -0
- package/.agents/skills/scholar-thesis-docx/SKILL.md +214 -0
- package/.agents/skills/scholar-thesis-docx/agents/openai.yaml +4 -0
- package/.agents/skills/scholar-thesis-docx/examples/architecture.sample.mmd +5 -0
- package/.agents/skills/scholar-thesis-docx/examples/final-audit-checklist.sample.md +46 -0
- package/.agents/skills/scholar-thesis-docx/examples/word-style-config.sample.json +35 -0
- package/.agents/skills/scholar-thesis-docx/references/failure-patterns-and-quality-gates.md +178 -0
- package/.agents/skills/scholar-thesis-docx/references/figure-and-code-rules.md +33 -0
- package/.agents/skills/scholar-thesis-docx/references/paper-format-workflow.md +68 -0
- package/.agents/skills/scholar-thesis-docx/references/script-usage.md +157 -0
- package/.agents/skills/scholar-thesis-docx/scripts/audit_docx_ooxml.py +429 -0
- package/.agents/skills/scholar-thesis-docx/scripts/check_word_com.ps1 +50 -0
- package/.agents/skills/scholar-thesis-docx/scripts/export_word_pdf.ps1 +62 -0
- package/.agents/skills/scholar-thesis-docx/scripts/normalize_word_styles.ps1 +498 -0
- package/.agents/skills/scholar-thesis-docx/scripts/render_mermaid_figure.ps1 +148 -0
- package/.agents/skills/scholar-writing/SKILL.md +298 -0
- package/.agents/skills/scholar-writing/phases/01-repo-understanding.md +178 -0
- package/.agents/skills/scholar-writing/phases/02-structure-planning.md +197 -0
- package/.agents/skills/scholar-writing/phases/03-section-drafting.md +215 -0
- package/.agents/skills/scholar-writing/phases/04-citation-management.md +310 -0
- package/.agents/skills/scholar-writing/phases/05-anti-ai-polish.md +202 -0
- package/.agents/skills/scholar-writing/phases/06-conference-formatting.md +260 -0
- package/.agents/skills/skill-generator/SKILL.md +473 -0
- package/.agents/skills/skill-generator/phases/01-requirements-discovery.md +238 -0
- package/.agents/skills/skill-generator/phases/02-structure-generation.md +261 -0
- package/.agents/skills/skill-generator/phases/03-phase-generation.md +976 -0
- package/.agents/skills/skill-generator/phases/04-specs-templates.md +398 -0
- package/.agents/skills/skill-generator/phases/05-validation.md +417 -0
- package/.agents/skills/skill-generator/specs/cli-integration.md +442 -0
- package/.agents/skills/skill-generator/specs/execution-modes.md +399 -0
- package/.agents/skills/skill-generator/specs/reference-docs-spec.md +271 -0
- package/.agents/skills/skill-generator/specs/scripting-integration.md +265 -0
- package/.agents/skills/skill-generator/specs/skill-requirements.md +466 -0
- package/.agents/skills/skill-generator/templates/autonomous-action.md +330 -0
- package/.agents/skills/skill-generator/templates/autonomous-orchestrator.md +300 -0
- package/.agents/skills/skill-generator/templates/code-analysis-action.md +514 -0
- package/.agents/skills/skill-generator/templates/llm-action.md +367 -0
- package/.agents/skills/skill-generator/templates/script-template.md +368 -0
- package/.agents/skills/skill-generator/templates/sequential-phase.md +474 -0
- package/.agents/skills/skill-generator/templates/skill-md.md +312 -0
- package/.agents/skills/skill-iter-tune/SKILL.md +15 -15
- package/.agents/skills/skill-iter-tune/phases/02-execute.md +5 -5
- package/.agents/skills/skill-iter-tune/phases/03-evaluate.md +4 -4
- package/.agents/skills/skill-iter-tune/templates/eval-prompt.md +1 -1
- package/.agents/skills/skill-iter-tune/templates/execute-prompt.md +1 -1
- package/.agents/skills/skill-simplify/SKILL.md +65 -0
- package/.agents/skills/skill-simplify/phases/01-analysis.md +224 -0
- package/.agents/skills/skill-simplify/phases/02-optimize.md +111 -0
- package/.agents/skills/skill-simplify/phases/03-check.md +224 -0
- package/.agents/skills/skill-tuning/SKILL.md +176 -0
- package/.agents/skills/skill-tuning/phases/actions/action-abort.md +164 -0
- package/.agents/skills/skill-tuning/phases/actions/action-analyze-requirements.md +406 -0
- package/.agents/skills/skill-tuning/phases/actions/action-apply-fix.md +206 -0
- package/.agents/skills/skill-tuning/phases/actions/action-complete.md +195 -0
- package/.agents/skills/skill-tuning/phases/actions/action-diagnose-agent.md +317 -0
- package/.agents/skills/skill-tuning/phases/actions/action-diagnose-context.md +243 -0
- package/.agents/skills/skill-tuning/phases/actions/action-diagnose-dataflow.md +318 -0
- package/.agents/skills/skill-tuning/phases/actions/action-diagnose-docs.md +299 -0
- package/.agents/skills/skill-tuning/phases/actions/action-diagnose-memory.md +269 -0
- package/.agents/skills/skill-tuning/phases/actions/action-diagnose-token-consumption.md +200 -0
- package/.agents/skills/skill-tuning/phases/actions/action-gemini-analysis.md +322 -0
- package/.agents/skills/skill-tuning/phases/actions/action-generate-report.md +228 -0
- package/.agents/skills/skill-tuning/phases/actions/action-init.md +149 -0
- package/.agents/skills/skill-tuning/phases/actions/action-propose-fixes.md +317 -0
- package/.agents/skills/skill-tuning/phases/actions/action-verify.md +222 -0
- package/.agents/skills/skill-tuning/phases/orchestrator.md +190 -0
- package/.agents/skills/skill-tuning/phases/state-schema.md +378 -0
- package/.agents/skills/skill-tuning/specs/category-mappings.json +284 -0
- package/.agents/skills/skill-tuning/specs/dimension-mapping.md +212 -0
- package/.agents/skills/skill-tuning/specs/problem-taxonomy.md +210 -0
- package/.agents/skills/skill-tuning/specs/quality-gates.md +263 -0
- package/.agents/skills/skill-tuning/specs/skill-authoring-principles.md +192 -0
- package/.agents/skills/skill-tuning/specs/tuning-strategies.md +392 -0
- package/.agents/skills/skill-tuning/templates/diagnosis-report.md +153 -0
- package/.agents/skills/skill-tuning/templates/fix-proposal.md +204 -0
- package/.agents/skills/team-arch-opt/SKILL.md +160 -0
- package/.agents/skills/team-arch-opt/roles/analyzer/role.md +88 -0
- package/.agents/skills/team-arch-opt/roles/coordinator/commands/analyze.md +57 -0
- package/.agents/skills/team-arch-opt/roles/coordinator/commands/dispatch.md +371 -0
- package/.agents/skills/team-arch-opt/roles/coordinator/commands/monitor.md +216 -0
- package/.agents/skills/team-arch-opt/roles/coordinator/role.md +146 -0
- package/.agents/skills/team-arch-opt/roles/designer/role.md +117 -0
- package/.agents/skills/team-arch-opt/roles/refactorer/role.md +106 -0
- package/.agents/skills/team-arch-opt/roles/reviewer/role.md +113 -0
- package/.agents/skills/team-arch-opt/roles/validator/role.md +117 -0
- package/.agents/skills/team-arch-opt/specs/pipelines.md +102 -0
- package/.agents/skills/team-arch-opt/specs/team-config.json +263 -0
- package/.agents/skills/team-brainstorm/SKILL.md +173 -0
- package/.agents/skills/team-brainstorm/roles/challenger/role.md +63 -0
- package/.agents/skills/team-brainstorm/roles/coordinator/commands/analyze.md +58 -0
- package/.agents/skills/team-brainstorm/roles/coordinator/commands/dispatch.md +206 -0
- package/.agents/skills/team-brainstorm/roles/coordinator/commands/monitor.md +199 -0
- package/.agents/skills/team-brainstorm/roles/coordinator/role.md +140 -0
- package/.agents/skills/team-brainstorm/roles/evaluator/role.md +58 -0
- package/.agents/skills/team-brainstorm/roles/ideator/role.md +71 -0
- package/.agents/skills/team-brainstorm/roles/synthesizer/role.md +59 -0
- package/.agents/skills/team-brainstorm/specs/pipelines.md +72 -0
- package/.agents/skills/team-brainstorm/specs/team-config.json +86 -0
- package/.agents/skills/team-coordinate/SKILL.md +262 -262
- package/.agents/skills/team-coordinate/roles/coordinator/commands/monitor.md +2 -2
- package/.agents/skills/team-coordinate/roles/coordinator/role.md +1 -1
- package/.agents/skills/team-designer/SKILL.md +162 -0
- package/.agents/skills/team-designer/phases/01-requirements-analysis.md +265 -0
- package/.agents/skills/team-designer/phases/02-scaffold-generation.md +236 -0
- package/.agents/skills/team-designer/phases/03-content-generation.md +330 -0
- package/.agents/skills/team-designer/phases/04-validation.md +329 -0
- package/.agents/skills/team-executor/SKILL.md +1 -1
- package/.agents/skills/team-frontend/SKILL.md +138 -0
- package/.agents/skills/team-frontend/roles/analyst/role.md +102 -0
- package/.agents/skills/team-frontend/roles/architect/role.md +88 -0
- package/.agents/skills/team-frontend/roles/coordinator/commands/analyze.md +52 -0
- package/.agents/skills/team-frontend/roles/coordinator/commands/dispatch.md +197 -0
- package/.agents/skills/team-frontend/roles/coordinator/commands/monitor.md +233 -0
- package/.agents/skills/team-frontend/roles/coordinator/role.md +158 -0
- package/.agents/skills/team-frontend/roles/developer/role.md +95 -0
- package/.agents/skills/team-frontend/roles/qa/role.md +81 -0
- package/.agents/skills/team-frontend/specs/pipelines.md +76 -0
- package/.agents/skills/team-frontend/specs/team-config.json +84 -0
- package/.agents/skills/team-frontend-debug/SKILL.md +200 -0
- package/.agents/skills/team-frontend-debug/roles/analyzer/role.md +210 -0
- package/.agents/skills/team-frontend-debug/roles/coordinator/commands/analyze.md +174 -0
- package/.agents/skills/team-frontend-debug/roles/coordinator/commands/dispatch.md +256 -0
- package/.agents/skills/team-frontend-debug/roles/coordinator/commands/monitor.md +148 -0
- package/.agents/skills/team-frontend-debug/roles/coordinator/role.md +131 -0
- package/.agents/skills/team-frontend-debug/roles/fixer/role.md +149 -0
- package/.agents/skills/team-frontend-debug/roles/reproducer/role.md +157 -0
- package/.agents/skills/team-frontend-debug/roles/tester/role.md +233 -0
- package/.agents/skills/team-frontend-debug/roles/verifier/role.md +174 -0
- package/.agents/skills/team-frontend-debug/specs/debug-tools.md +215 -0
- package/.agents/skills/team-frontend-debug/specs/pipelines.md +94 -0
- package/.agents/skills/team-interactive-craft/SKILL.md +143 -0
- package/.agents/skills/team-interactive-craft/roles/a11y-tester/role.md +161 -0
- package/.agents/skills/team-interactive-craft/roles/builder/role.md +218 -0
- package/.agents/skills/team-interactive-craft/roles/coordinator/commands/analyze.md +71 -0
- package/.agents/skills/team-interactive-craft/roles/coordinator/commands/dispatch.md +192 -0
- package/.agents/skills/team-interactive-craft/roles/coordinator/commands/monitor.md +215 -0
- package/.agents/skills/team-interactive-craft/roles/coordinator/role.md +166 -0
- package/.agents/skills/team-interactive-craft/roles/interaction-designer/role.md +146 -0
- package/.agents/skills/team-interactive-craft/roles/researcher/role.md +133 -0
- package/.agents/skills/team-interactive-craft/specs/interaction-patterns.md +362 -0
- package/.agents/skills/team-interactive-craft/specs/pipelines.md +85 -0
- package/.agents/skills/team-interactive-craft/specs/team-config.json +105 -0
- package/.agents/skills/team-interactive-craft/specs/vanilla-constraints.md +83 -0
- package/.agents/skills/team-issue/SKILL.md +173 -0
- package/.agents/skills/team-issue/roles/coordinator/commands/analyze.md +64 -0
- package/.agents/skills/team-issue/roles/coordinator/commands/dispatch.md +349 -0
- package/.agents/skills/team-issue/roles/coordinator/commands/monitor.md +229 -0
- package/.agents/skills/team-issue/roles/coordinator/role.md +177 -0
- package/.agents/skills/team-issue/roles/explorer/role.md +104 -0
- package/.agents/skills/team-issue/roles/implementer/role.md +89 -0
- package/.agents/skills/team-issue/roles/integrator/role.md +86 -0
- package/.agents/skills/team-issue/roles/planner/role.md +83 -0
- package/.agents/skills/team-issue/roles/reviewer/role.md +88 -0
- package/.agents/skills/team-issue/specs/pipelines.md +124 -0
- package/.agents/skills/team-issue/specs/team-config.json +70 -0
- package/.agents/skills/team-lifecycle-v4/SKILL.md +205 -205
- package/.agents/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +2 -2
- package/.agents/skills/team-lifecycle-v4/roles/coordinator/role.md +1 -1
- package/.agents/skills/team-motion-design/SKILL.md +144 -0
- package/.agents/skills/team-motion-design/roles/animator/role.md +196 -0
- package/.agents/skills/team-motion-design/roles/choreographer/role.md +166 -0
- package/.agents/skills/team-motion-design/roles/coordinator/commands/analyze.md +64 -0
- package/.agents/skills/team-motion-design/roles/coordinator/commands/dispatch.md +203 -0
- package/.agents/skills/team-motion-design/roles/coordinator/commands/monitor.md +216 -0
- package/.agents/skills/team-motion-design/roles/coordinator/role.md +167 -0
- package/.agents/skills/team-motion-design/roles/motion-researcher/role.md +117 -0
- package/.agents/skills/team-motion-design/roles/motion-tester/role.md +177 -0
- package/.agents/skills/team-motion-design/specs/gpu-constraints.md +114 -0
- package/.agents/skills/team-motion-design/specs/motion-tokens.md +128 -0
- package/.agents/skills/team-motion-design/specs/pipelines.md +74 -0
- package/.agents/skills/team-motion-design/specs/reduced-motion.md +129 -0
- package/.agents/skills/team-motion-design/specs/team-config.json +99 -0
- package/.agents/skills/team-perf-opt/SKILL.md +177 -0
- package/.agents/skills/team-perf-opt/roles/benchmarker/role.md +91 -0
- package/.agents/skills/team-perf-opt/roles/coordinator/commands/analyze.md +61 -0
- package/.agents/skills/team-perf-opt/roles/coordinator/commands/dispatch.md +376 -0
- package/.agents/skills/team-perf-opt/roles/coordinator/commands/monitor.md +362 -0
- package/.agents/skills/team-perf-opt/roles/coordinator/role.md +147 -0
- package/.agents/skills/team-perf-opt/roles/optimizer/role.md +101 -0
- package/.agents/skills/team-perf-opt/roles/profiler/role.md +83 -0
- package/.agents/skills/team-perf-opt/roles/reviewer/role.md +77 -0
- package/.agents/skills/team-perf-opt/roles/strategist/role.md +96 -0
- package/.agents/skills/team-perf-opt/specs/pipelines.md +65 -0
- package/.agents/skills/team-perf-opt/specs/team-config.json +246 -0
- package/.agents/skills/team-planex/SKILL.md +139 -0
- package/.agents/skills/team-planex/roles/coordinator/commands/analyze.md +52 -0
- package/.agents/skills/team-planex/roles/coordinator/commands/dispatch.md +87 -0
- package/.agents/skills/team-planex/roles/coordinator/commands/monitor.md +195 -0
- package/.agents/skills/team-planex/roles/coordinator/role.md +140 -0
- package/.agents/skills/team-planex/roles/executor/role.md +93 -0
- package/.agents/skills/team-planex/roles/planner/role.md +121 -0
- package/.agents/skills/team-planex/specs/pipelines.md +93 -0
- package/.agents/skills/team-quality-assurance/SKILL.md +143 -143
- package/.agents/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +1 -1
- package/.agents/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +2 -2
- package/.agents/skills/team-quality-assurance/roles/coordinator/role.md +1 -1
- package/.agents/skills/team-quality-assurance/roles/scout/role.md +66 -66
- package/.agents/skills/team-review/SKILL.md +143 -143
- package/.agents/skills/team-review/roles/coordinator/commands/dispatch.md +1 -1
- package/.agents/skills/team-review/roles/coordinator/commands/monitor.md +2 -2
- package/.agents/skills/team-review/roles/coordinator/role.md +1 -1
- package/.agents/skills/team-roadmap-dev/SKILL.md +171 -0
- package/.agents/skills/team-roadmap-dev/roles/coordinator/commands/analyze.md +61 -0
- package/.agents/skills/team-roadmap-dev/roles/coordinator/commands/dispatch.md +212 -0
- package/.agents/skills/team-roadmap-dev/roles/coordinator/commands/monitor.md +477 -0
- package/.agents/skills/team-roadmap-dev/roles/coordinator/commands/pause.md +90 -0
- package/.agents/skills/team-roadmap-dev/roles/coordinator/commands/resume.md +137 -0
- package/.agents/skills/team-roadmap-dev/roles/coordinator/commands/roadmap-discuss.md +287 -0
- package/.agents/skills/team-roadmap-dev/roles/coordinator/role.md +302 -0
- package/.agents/skills/team-roadmap-dev/roles/executor/role.md +74 -0
- package/.agents/skills/team-roadmap-dev/roles/planner/role.md +88 -0
- package/.agents/skills/team-roadmap-dev/roles/verifier/role.md +76 -0
- package/.agents/skills/team-roadmap-dev/specs/pipelines.md +93 -0
- package/.agents/skills/team-roadmap-dev/specs/team-config.json +95 -0
- package/.agents/skills/team-swarm/SKILL.md +174 -174
- package/.agents/skills/team-tech-debt/SKILL.md +124 -124
- package/.agents/skills/team-tech-debt/roles/coordinator/commands/dispatch.md +1 -1
- package/.agents/skills/team-tech-debt/roles/coordinator/commands/monitor.md +2 -2
- package/.agents/skills/team-tech-debt/roles/scanner/role.md +84 -84
- package/.agents/skills/team-testing/SKILL.md +139 -139
- package/.agents/skills/team-testing/roles/coordinator/commands/dispatch.md +1 -1
- package/.agents/skills/team-testing/roles/coordinator/commands/monitor.md +2 -2
- package/.agents/skills/team-testing/roles/coordinator/role.md +1 -1
- package/.agents/skills/team-ui-polish/SKILL.md +143 -0
- package/.agents/skills/team-ui-polish/roles/coordinator/commands/analyze.md +77 -0
- package/.agents/skills/team-ui-polish/roles/coordinator/commands/dispatch.md +194 -0
- package/.agents/skills/team-ui-polish/roles/coordinator/commands/monitor.md +212 -0
- package/.agents/skills/team-ui-polish/roles/coordinator/role.md +170 -0
- package/.agents/skills/team-ui-polish/roles/diagnostician/role.md +162 -0
- package/.agents/skills/team-ui-polish/roles/optimizer/role.md +227 -0
- package/.agents/skills/team-ui-polish/roles/scanner/role.md +358 -0
- package/.agents/skills/team-ui-polish/roles/verifier/role.md +144 -0
- package/.agents/skills/team-ui-polish/specs/anti-patterns.md +141 -0
- package/.agents/skills/team-ui-polish/specs/design-standards.md +356 -0
- package/.agents/skills/team-ui-polish/specs/fix-strategies.md +235 -0
- package/.agents/skills/team-ui-polish/specs/pipelines.md +81 -0
- package/.agents/skills/team-ui-polish/specs/scoring-guide.md +162 -0
- package/.agents/skills/team-ui-polish/specs/team-config.json +73 -0
- package/.agents/skills/team-uidesign/SKILL.md +146 -0
- package/.agents/skills/team-uidesign/roles/coordinator/commands/analyze.md +59 -0
- package/.agents/skills/team-uidesign/roles/coordinator/commands/dispatch.md +185 -0
- package/.agents/skills/team-uidesign/roles/coordinator/commands/monitor.md +216 -0
- package/.agents/skills/team-uidesign/roles/coordinator/role.md +168 -0
- package/.agents/skills/team-uidesign/roles/designer/role.md +95 -0
- package/.agents/skills/team-uidesign/roles/implementer/role.md +96 -0
- package/.agents/skills/team-uidesign/roles/researcher/role.md +103 -0
- package/.agents/skills/team-uidesign/roles/reviewer/role.md +71 -0
- package/.agents/skills/team-uidesign/specs/anti-patterns.md +211 -0
- package/.agents/skills/team-uidesign/specs/design-standards.md +329 -0
- package/.agents/skills/team-uidesign/specs/pipelines.md +76 -0
- package/.agents/skills/team-uidesign/specs/scoring-guide.md +114 -0
- package/.agents/skills/team-uidesign/specs/team-config.json +107 -0
- package/.agents/skills/team-uidesign/specs/ux-writing.md +86 -0
- package/.agents/skills/team-ultra-analyze/SKILL.md +175 -0
- package/.agents/skills/team-ultra-analyze/roles/analyst/role.md +100 -0
- package/.agents/skills/team-ultra-analyze/roles/coordinator/commands/analyze.md +73 -0
- package/.agents/skills/team-ultra-analyze/roles/coordinator/commands/dispatch.md +285 -0
- package/.agents/skills/team-ultra-analyze/roles/coordinator/commands/monitor.md +372 -0
- package/.agents/skills/team-ultra-analyze/roles/coordinator/role.md +247 -0
- package/.agents/skills/team-ultra-analyze/roles/discussant/role.md +109 -0
- package/.agents/skills/team-ultra-analyze/roles/explorer/role.md +77 -0
- package/.agents/skills/team-ultra-analyze/roles/synthesizer/role.md +80 -0
- package/.agents/skills/team-ultra-analyze/specs/pipelines.md +64 -0
- package/.agents/skills/team-ultra-analyze/specs/team-config.json +129 -0
- package/.agents/skills/team-ux-improve/SKILL.md +153 -0
- package/.agents/skills/team-ux-improve/roles/coordinator/commands/analyze.md +62 -0
- package/.agents/skills/team-ux-improve/roles/coordinator/commands/dispatch.md +200 -0
- package/.agents/skills/team-ux-improve/roles/coordinator/commands/monitor.md +186 -0
- package/.agents/skills/team-ux-improve/roles/coordinator/role.md +142 -0
- package/.agents/skills/team-ux-improve/roles/designer/role.md +154 -0
- package/.agents/skills/team-ux-improve/roles/diagnoser/role.md +110 -0
- package/.agents/skills/team-ux-improve/roles/explorer/role.md +79 -0
- package/.agents/skills/team-ux-improve/roles/implementer/role.md +104 -0
- package/.agents/skills/team-ux-improve/roles/scanner/role.md +137 -0
- package/.agents/skills/team-ux-improve/roles/tester/role.md +86 -0
- package/.agents/skills/team-ux-improve/specs/anti-patterns.md +103 -0
- package/.agents/skills/team-ux-improve/specs/design-standards.md +54 -0
- package/.agents/skills/team-ux-improve/specs/heuristics.md +88 -0
- package/.agents/skills/team-ux-improve/specs/pipelines.md +54 -0
- package/.agents/skills/team-ux-improve/specs/team-config.json +181 -0
- package/.agents/skills/team-ux-improve/wisdom/anti-patterns/common-ux-pitfalls.md +49 -0
- package/.agents/skills/team-ux-improve/wisdom/contributions/.gitkeep +0 -0
- package/.agents/skills/team-ux-improve/wisdom/patterns/state-management.md +34 -0
- package/.agents/skills/team-ux-improve/wisdom/patterns/ui-feedback.md +40 -0
- package/.agents/skills/team-ux-improve/wisdom/principles/general-ux.md +43 -0
- package/.agents/skills/team-visual-a11y/SKILL.md +158 -0
- package/.agents/skills/team-visual-a11y/roles/color-auditor/role.md +180 -0
- package/.agents/skills/team-visual-a11y/roles/coordinator/commands/analyze.md +72 -0
- package/.agents/skills/team-visual-a11y/roles/coordinator/commands/dispatch.md +250 -0
- package/.agents/skills/team-visual-a11y/roles/coordinator/commands/monitor.md +236 -0
- package/.agents/skills/team-visual-a11y/roles/coordinator/role.md +169 -0
- package/.agents/skills/team-visual-a11y/roles/fix-implementer/role.md +248 -0
- package/.agents/skills/team-visual-a11y/roles/focus-auditor/role.md +224 -0
- package/.agents/skills/team-visual-a11y/roles/remediation-planner/role.md +208 -0
- package/.agents/skills/team-visual-a11y/roles/typo-auditor/role.md +187 -0
- package/.agents/skills/team-visual-a11y/specs/focus-patterns.md +325 -0
- package/.agents/skills/team-visual-a11y/specs/oklch-standards.md +130 -0
- package/.agents/skills/team-visual-a11y/specs/pipelines.md +98 -0
- package/.agents/skills/team-visual-a11y/specs/team-config.json +109 -0
- package/.agents/skills/team-visual-a11y/specs/typography-scale.md +165 -0
- package/.agents/skills/team-visual-a11y/specs/wcag-matrix.md +133 -0
- package/.agy/skills/delegation-check/SKILL.md +296 -0
- package/.agy/skills/delegation-check/specs/separation-rules.md +261 -0
- package/.agy/skills/odyssey-debug/SKILL.md +30 -16
- package/.agy/skills/odyssey-improve/SKILL.md +28 -15
- package/.agy/skills/odyssey-planex/SKILL.md +20 -12
- package/.agy/skills/odyssey-review-test-fix/SKILL.md +29 -13
- package/.agy/skills/odyssey-ui/SKILL.md +27 -14
- package/.agy/skills/prompt-generator/SKILL.md +469 -0
- package/.agy/skills/prompt-generator/specs/agent-design-spec.md +299 -0
- package/.agy/skills/prompt-generator/specs/command-design-spec.md +379 -0
- package/.agy/skills/prompt-generator/specs/conversion-spec.md +207 -0
- package/.agy/skills/prompt-generator/templates/agent-md.md +145 -0
- package/.agy/skills/prompt-generator/templates/command-md.md +130 -0
- package/.agy/skills/scholar-anti-ai-writing/SKILL.md +172 -0
- package/.agy/skills/scholar-anti-ai-writing/phases/01-detect-score.md +126 -0
- package/.agy/skills/scholar-anti-ai-writing/phases/02-rewrite-polish.md +177 -0
- package/.agy/skills/scholar-anti-ai-writing/phases/03-validate-score.md +134 -0
- package/.agy/skills/scholar-anti-ai-writing/references/patterns-chinese.md +242 -0
- package/.agy/skills/scholar-anti-ai-writing/references/patterns-english.md +242 -0
- package/.agy/skills/scholar-citation-verify/SKILL.md +165 -0
- package/.agy/skills/scholar-citation-verify/phases/01-scan-extract.md +141 -0
- package/.agy/skills/scholar-citation-verify/phases/02-verify.md +310 -0
- package/.agy/skills/scholar-citation-verify/phases/03-report-fix.md +190 -0
- package/.agy/skills/scholar-citation-verify/references/api-usage.md +372 -0
- package/.agy/skills/scholar-citation-verify/references/common-errors.md +384 -0
- package/.agy/skills/scholar-citation-verify/references/verification-rules.md +399 -0
- package/.agy/skills/scholar-experiment/SKILL.md +320 -0
- package/.agy/skills/scholar-experiment/phases/01-data-loading.md +209 -0
- package/.agy/skills/scholar-experiment/phases/02-statistical-analysis.md +269 -0
- package/.agy/skills/scholar-experiment/phases/03-visualization.md +319 -0
- package/.agy/skills/scholar-experiment/phases/04-results-writing.md +229 -0
- package/.agy/skills/scholar-experiment/phases/05-quality-check.md +261 -0
- package/.agy/skills/scholar-ideation/SKILL.md +287 -0
- package/.agy/skills/scholar-ideation/phases/01-literature-search.md +317 -0
- package/.agy/skills/scholar-ideation/phases/02-gap-analysis.md +249 -0
- package/.agy/skills/scholar-ideation/phases/03-research-question.md +200 -0
- package/.agy/skills/scholar-ideation/phases/04-method-selection.md +185 -0
- package/.agy/skills/scholar-ideation/phases/05-research-planning.md +385 -0
- package/.agy/skills/scholar-latex-organizer/SKILL.md +185 -0
- package/.agy/skills/scholar-latex-organizer/phases/01-extract-analyze.md +228 -0
- package/.agy/skills/scholar-latex-organizer/phases/02-cleanup-organize.md +500 -0
- package/.agy/skills/scholar-latex-organizer/phases/03-readme-finalize.md +349 -0
- package/.agy/skills/scholar-publish/SKILL.md +219 -0
- package/.agy/skills/scholar-publish/phases/01-presentation.md +243 -0
- package/.agy/skills/scholar-publish/phases/02-poster.md +239 -0
- package/.agy/skills/scholar-publish/phases/03-promotion.md +255 -0
- package/.agy/skills/scholar-rebuttal-pro/README.md +313 -0
- package/.agy/skills/scholar-rebuttal-pro/SKILL.md +510 -0
- package/.agy/skills/scholar-rebuttal-pro/phases/01-review-parsing.md +227 -0
- package/.agy/skills/scholar-rebuttal-pro/phases/02-multi-perspective-discussion.md +395 -0
- package/.agy/skills/scholar-rebuttal-pro/phases/03-strategy-formulation.md +459 -0
- package/.agy/skills/scholar-rebuttal-pro/phases/04-rebuttal-writing.md +384 -0
- package/.agy/skills/scholar-rebuttal-pro/phases/05-quality-validation.md +691 -0
- package/.agy/skills/scholar-review/SKILL.md +226 -0
- package/.agy/skills/scholar-review/phases/01-self-review.md +186 -0
- package/.agy/skills/scholar-review/phases/02-review-analysis.md +203 -0
- package/.agy/skills/scholar-review/phases/03-response-strategy.md +193 -0
- package/.agy/skills/scholar-review/phases/04-rebuttal-writing.md +181 -0
- package/.agy/skills/scholar-review/phases/05-revision.md +183 -0
- package/.agy/skills/scholar-review/specs/tone-guidelines.md +76 -0
- package/.agy/skills/scholar-thesis-docx/LICENSE +21 -0
- package/.agy/skills/scholar-thesis-docx/README.md +111 -0
- package/.agy/skills/scholar-thesis-docx/README_EN.md +108 -0
- package/.agy/skills/scholar-thesis-docx/SKILL.md +211 -0
- package/.agy/skills/scholar-thesis-docx/agents/openai.yaml +4 -0
- package/.agy/skills/scholar-thesis-docx/examples/architecture.sample.mmd +5 -0
- package/.agy/skills/scholar-thesis-docx/examples/final-audit-checklist.sample.md +46 -0
- package/.agy/skills/scholar-thesis-docx/examples/word-style-config.sample.json +35 -0
- package/.agy/skills/scholar-thesis-docx/references/failure-patterns-and-quality-gates.md +178 -0
- package/.agy/skills/scholar-thesis-docx/references/figure-and-code-rules.md +33 -0
- package/.agy/skills/scholar-thesis-docx/references/paper-format-workflow.md +68 -0
- package/.agy/skills/scholar-thesis-docx/references/script-usage.md +157 -0
- package/.agy/skills/scholar-thesis-docx/scripts/audit_docx_ooxml.py +429 -0
- package/.agy/skills/scholar-thesis-docx/scripts/check_word_com.ps1 +50 -0
- package/.agy/skills/scholar-thesis-docx/scripts/export_word_pdf.ps1 +62 -0
- package/.agy/skills/scholar-thesis-docx/scripts/normalize_word_styles.ps1 +498 -0
- package/.agy/skills/scholar-thesis-docx/scripts/render_mermaid_figure.ps1 +148 -0
- package/.agy/skills/scholar-writing/SKILL.md +295 -0
- package/.agy/skills/scholar-writing/phases/01-repo-understanding.md +178 -0
- package/.agy/skills/scholar-writing/phases/02-structure-planning.md +197 -0
- package/.agy/skills/scholar-writing/phases/03-section-drafting.md +215 -0
- package/.agy/skills/scholar-writing/phases/04-citation-management.md +310 -0
- package/.agy/skills/scholar-writing/phases/05-anti-ai-polish.md +202 -0
- package/.agy/skills/scholar-writing/phases/06-conference-formatting.md +260 -0
- package/.agy/skills/skill-generator/SKILL.md +470 -0
- package/.agy/skills/skill-generator/phases/01-requirements-discovery.md +238 -0
- package/.agy/skills/skill-generator/phases/02-structure-generation.md +261 -0
- package/.agy/skills/skill-generator/phases/03-phase-generation.md +988 -0
- package/.agy/skills/skill-generator/phases/04-specs-templates.md +398 -0
- package/.agy/skills/skill-generator/phases/05-validation.md +417 -0
- package/.agy/skills/skill-generator/specs/cli-integration.md +432 -0
- package/.agy/skills/skill-generator/specs/execution-modes.md +399 -0
- package/.agy/skills/skill-generator/specs/reference-docs-spec.md +271 -0
- package/.agy/skills/skill-generator/specs/scripting-integration.md +265 -0
- package/.agy/skills/skill-generator/specs/skill-requirements.md +466 -0
- package/.agy/skills/skill-generator/templates/autonomous-action.md +330 -0
- package/.agy/skills/skill-generator/templates/autonomous-orchestrator.md +312 -0
- package/.agy/skills/skill-generator/templates/code-analysis-action.md +527 -0
- package/.agy/skills/skill-generator/templates/llm-action.md +367 -0
- package/.agy/skills/skill-generator/templates/script-template.md +368 -0
- package/.agy/skills/skill-generator/templates/sequential-phase.md +482 -0
- package/.agy/skills/skill-generator/templates/skill-md.md +312 -0
- package/.agy/skills/skill-iter-tune/SKILL.md +15 -15
- package/.agy/skills/skill-iter-tune/phases/02-execute.md +5 -5
- package/.agy/skills/skill-iter-tune/phases/03-evaluate.md +4 -4
- package/.agy/skills/skill-iter-tune/templates/eval-prompt.md +1 -1
- package/.agy/skills/skill-iter-tune/templates/execute-prompt.md +1 -1
- package/.agy/skills/skill-simplify/SKILL.md +62 -0
- package/.agy/skills/skill-simplify/phases/01-analysis.md +224 -0
- package/.agy/skills/skill-simplify/phases/02-optimize.md +111 -0
- package/.agy/skills/skill-simplify/phases/03-check.md +224 -0
- package/.agy/skills/skill-tuning/SKILL.md +173 -0
- package/.agy/skills/skill-tuning/phases/actions/action-abort.md +164 -0
- package/.agy/skills/skill-tuning/phases/actions/action-analyze-requirements.md +406 -0
- package/.agy/skills/skill-tuning/phases/actions/action-apply-fix.md +206 -0
- package/.agy/skills/skill-tuning/phases/actions/action-complete.md +195 -0
- package/.agy/skills/skill-tuning/phases/actions/action-diagnose-agent.md +317 -0
- package/.agy/skills/skill-tuning/phases/actions/action-diagnose-context.md +243 -0
- package/.agy/skills/skill-tuning/phases/actions/action-diagnose-dataflow.md +318 -0
- package/.agy/skills/skill-tuning/phases/actions/action-diagnose-docs.md +299 -0
- package/.agy/skills/skill-tuning/phases/actions/action-diagnose-memory.md +269 -0
- package/.agy/skills/skill-tuning/phases/actions/action-diagnose-token-consumption.md +200 -0
- package/.agy/skills/skill-tuning/phases/actions/action-gemini-analysis.md +322 -0
- package/.agy/skills/skill-tuning/phases/actions/action-generate-report.md +228 -0
- package/.agy/skills/skill-tuning/phases/actions/action-init.md +149 -0
- package/.agy/skills/skill-tuning/phases/actions/action-propose-fixes.md +317 -0
- package/.agy/skills/skill-tuning/phases/actions/action-verify.md +222 -0
- package/.agy/skills/skill-tuning/phases/orchestrator.md +202 -0
- package/.agy/skills/skill-tuning/phases/state-schema.md +378 -0
- package/.agy/skills/skill-tuning/specs/category-mappings.json +284 -0
- package/.agy/skills/skill-tuning/specs/dimension-mapping.md +212 -0
- package/.agy/skills/skill-tuning/specs/problem-taxonomy.md +210 -0
- package/.agy/skills/skill-tuning/specs/quality-gates.md +263 -0
- package/.agy/skills/skill-tuning/specs/skill-authoring-principles.md +204 -0
- package/.agy/skills/skill-tuning/specs/tuning-strategies.md +405 -0
- package/.agy/skills/skill-tuning/templates/diagnosis-report.md +153 -0
- package/.agy/skills/skill-tuning/templates/fix-proposal.md +204 -0
- package/.agy/skills/team-arch-opt/SKILL.md +148 -0
- package/.agy/skills/team-arch-opt/roles/analyzer/role.md +85 -0
- package/.agy/skills/team-arch-opt/roles/coordinator/commands/analyze.md +57 -0
- package/.agy/skills/team-arch-opt/roles/coordinator/commands/dispatch.md +371 -0
- package/.agy/skills/team-arch-opt/roles/coordinator/commands/monitor.md +205 -0
- package/.agy/skills/team-arch-opt/roles/coordinator/role.md +146 -0
- package/.agy/skills/team-arch-opt/roles/designer/role.md +114 -0
- package/.agy/skills/team-arch-opt/roles/refactorer/role.md +103 -0
- package/.agy/skills/team-arch-opt/roles/reviewer/role.md +110 -0
- package/.agy/skills/team-arch-opt/roles/validator/role.md +114 -0
- package/.agy/skills/team-arch-opt/specs/pipelines.md +102 -0
- package/.agy/skills/team-arch-opt/specs/team-config.json +263 -0
- package/.agy/skills/team-brainstorm/SKILL.md +138 -0
- package/.agy/skills/team-brainstorm/roles/challenger/role.md +60 -0
- package/.agy/skills/team-brainstorm/roles/coordinator/commands/analyze.md +58 -0
- package/.agy/skills/team-brainstorm/roles/coordinator/commands/dispatch.md +206 -0
- package/.agy/skills/team-brainstorm/roles/coordinator/commands/monitor.md +183 -0
- package/.agy/skills/team-brainstorm/roles/coordinator/role.md +140 -0
- package/.agy/skills/team-brainstorm/roles/evaluator/role.md +55 -0
- package/.agy/skills/team-brainstorm/roles/ideator/role.md +68 -0
- package/.agy/skills/team-brainstorm/roles/synthesizer/role.md +56 -0
- package/.agy/skills/team-brainstorm/specs/pipelines.md +72 -0
- package/.agy/skills/team-brainstorm/specs/team-config.json +86 -0
- package/.agy/skills/team-coordinate/SKILL.md +238 -249
- package/.agy/skills/team-coordinate/roles/coordinator/commands/monitor.md +2 -2
- package/.agy/skills/team-coordinate/roles/coordinator/role.md +1 -1
- package/.agy/skills/team-designer/SKILL.md +159 -0
- package/.agy/skills/team-designer/phases/01-requirements-analysis.md +265 -0
- package/.agy/skills/team-designer/phases/02-scaffold-generation.md +248 -0
- package/.agy/skills/team-designer/phases/03-content-generation.md +330 -0
- package/.agy/skills/team-designer/phases/04-validation.md +329 -0
- package/.agy/skills/team-frontend/SKILL.md +126 -0
- package/.agy/skills/team-frontend/roles/analyst/role.md +98 -0
- package/.agy/skills/team-frontend/roles/architect/role.md +84 -0
- package/.agy/skills/team-frontend/roles/coordinator/commands/analyze.md +52 -0
- package/.agy/skills/team-frontend/roles/coordinator/commands/dispatch.md +197 -0
- package/.agy/skills/team-frontend/roles/coordinator/commands/monitor.md +222 -0
- package/.agy/skills/team-frontend/roles/coordinator/role.md +158 -0
- package/.agy/skills/team-frontend/roles/developer/role.md +91 -0
- package/.agy/skills/team-frontend/roles/qa/role.md +77 -0
- package/.agy/skills/team-frontend/specs/pipelines.md +76 -0
- package/.agy/skills/team-frontend/specs/team-config.json +84 -0
- package/.agy/skills/team-frontend-debug/SKILL.md +188 -0
- package/.agy/skills/team-frontend-debug/roles/analyzer/role.md +205 -0
- package/.agy/skills/team-frontend-debug/roles/coordinator/commands/analyze.md +174 -0
- package/.agy/skills/team-frontend-debug/roles/coordinator/commands/dispatch.md +256 -0
- package/.agy/skills/team-frontend-debug/roles/coordinator/commands/monitor.md +148 -0
- package/.agy/skills/team-frontend-debug/roles/coordinator/role.md +131 -0
- package/.agy/skills/team-frontend-debug/roles/fixer/role.md +144 -0
- package/.agy/skills/team-frontend-debug/roles/reproducer/role.md +153 -0
- package/.agy/skills/team-frontend-debug/roles/tester/role.md +228 -0
- package/.agy/skills/team-frontend-debug/roles/verifier/role.md +170 -0
- package/.agy/skills/team-frontend-debug/specs/debug-tools.md +215 -0
- package/.agy/skills/team-frontend-debug/specs/pipelines.md +94 -0
- package/.agy/skills/team-interactive-craft/SKILL.md +131 -0
- package/.agy/skills/team-interactive-craft/roles/a11y-tester/role.md +158 -0
- package/.agy/skills/team-interactive-craft/roles/builder/role.md +215 -0
- package/.agy/skills/team-interactive-craft/roles/coordinator/commands/analyze.md +71 -0
- package/.agy/skills/team-interactive-craft/roles/coordinator/commands/dispatch.md +192 -0
- package/.agy/skills/team-interactive-craft/roles/coordinator/commands/monitor.md +204 -0
- package/.agy/skills/team-interactive-craft/roles/coordinator/role.md +166 -0
- package/.agy/skills/team-interactive-craft/roles/interaction-designer/role.md +143 -0
- package/.agy/skills/team-interactive-craft/roles/researcher/role.md +130 -0
- package/.agy/skills/team-interactive-craft/specs/interaction-patterns.md +362 -0
- package/.agy/skills/team-interactive-craft/specs/pipelines.md +85 -0
- package/.agy/skills/team-interactive-craft/specs/team-config.json +105 -0
- package/.agy/skills/team-interactive-craft/specs/vanilla-constraints.md +83 -0
- package/.agy/skills/team-issue/SKILL.md +138 -0
- package/.agy/skills/team-issue/roles/coordinator/commands/analyze.md +64 -0
- package/.agy/skills/team-issue/roles/coordinator/commands/dispatch.md +349 -0
- package/.agy/skills/team-issue/roles/coordinator/commands/monitor.md +195 -0
- package/.agy/skills/team-issue/roles/coordinator/role.md +174 -0
- package/.agy/skills/team-issue/roles/explorer/role.md +101 -0
- package/.agy/skills/team-issue/roles/implementer/role.md +86 -0
- package/.agy/skills/team-issue/roles/integrator/role.md +83 -0
- package/.agy/skills/team-issue/roles/planner/role.md +80 -0
- package/.agy/skills/team-issue/roles/reviewer/role.md +85 -0
- package/.agy/skills/team-issue/specs/pipelines.md +124 -0
- package/.agy/skills/team-issue/specs/team-config.json +70 -0
- package/.agy/skills/team-lifecycle-v4/SKILL.md +158 -169
- package/.agy/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +2 -2
- package/.agy/skills/team-lifecycle-v4/roles/coordinator/role.md +1 -1
- package/.agy/skills/team-motion-design/SKILL.md +132 -0
- package/.agy/skills/team-motion-design/roles/animator/role.md +193 -0
- package/.agy/skills/team-motion-design/roles/choreographer/role.md +163 -0
- package/.agy/skills/team-motion-design/roles/coordinator/commands/analyze.md +64 -0
- package/.agy/skills/team-motion-design/roles/coordinator/commands/dispatch.md +203 -0
- package/.agy/skills/team-motion-design/roles/coordinator/commands/monitor.md +205 -0
- package/.agy/skills/team-motion-design/roles/coordinator/role.md +167 -0
- package/.agy/skills/team-motion-design/roles/motion-researcher/role.md +114 -0
- package/.agy/skills/team-motion-design/roles/motion-tester/role.md +174 -0
- package/.agy/skills/team-motion-design/specs/gpu-constraints.md +114 -0
- package/.agy/skills/team-motion-design/specs/motion-tokens.md +128 -0
- package/.agy/skills/team-motion-design/specs/pipelines.md +74 -0
- package/.agy/skills/team-motion-design/specs/reduced-motion.md +129 -0
- package/.agy/skills/team-motion-design/specs/team-config.json +99 -0
- package/.agy/skills/team-perf-opt/SKILL.md +165 -0
- package/.agy/skills/team-perf-opt/roles/benchmarker/role.md +86 -0
- package/.agy/skills/team-perf-opt/roles/coordinator/commands/analyze.md +61 -0
- package/.agy/skills/team-perf-opt/roles/coordinator/commands/dispatch.md +376 -0
- package/.agy/skills/team-perf-opt/roles/coordinator/commands/monitor.md +351 -0
- package/.agy/skills/team-perf-opt/roles/coordinator/role.md +147 -0
- package/.agy/skills/team-perf-opt/roles/optimizer/role.md +96 -0
- package/.agy/skills/team-perf-opt/roles/profiler/role.md +79 -0
- package/.agy/skills/team-perf-opt/roles/reviewer/role.md +72 -0
- package/.agy/skills/team-perf-opt/roles/strategist/role.md +92 -0
- package/.agy/skills/team-perf-opt/specs/pipelines.md +65 -0
- package/.agy/skills/team-perf-opt/specs/team-config.json +246 -0
- package/.agy/skills/team-planex/SKILL.md +126 -0
- package/.agy/skills/team-planex/roles/coordinator/commands/analyze.md +52 -0
- package/.agy/skills/team-planex/roles/coordinator/commands/dispatch.md +87 -0
- package/.agy/skills/team-planex/roles/coordinator/commands/monitor.md +186 -0
- package/.agy/skills/team-planex/roles/coordinator/role.md +140 -0
- package/.agy/skills/team-planex/roles/executor/role.md +89 -0
- package/.agy/skills/team-planex/roles/planner/role.md +117 -0
- package/.agy/skills/team-planex/specs/pipelines.md +93 -0
- package/.agy/skills/team-quality-assurance/SKILL.md +119 -130
- package/.agy/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +1 -1
- package/.agy/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +2 -2
- package/.agy/skills/team-quality-assurance/roles/coordinator/role.md +1 -1
- package/.agy/skills/team-quality-assurance/roles/scout/role.md +66 -66
- package/.agy/skills/team-review/SKILL.md +119 -131
- package/.agy/skills/team-review/roles/coordinator/commands/dispatch.md +1 -1
- package/.agy/skills/team-review/roles/coordinator/commands/monitor.md +2 -2
- package/.agy/skills/team-review/roles/coordinator/role.md +1 -1
- package/.agy/skills/team-roadmap-dev/SKILL.md +159 -0
- package/.agy/skills/team-roadmap-dev/roles/coordinator/commands/analyze.md +61 -0
- package/.agy/skills/team-roadmap-dev/roles/coordinator/commands/dispatch.md +212 -0
- package/.agy/skills/team-roadmap-dev/roles/coordinator/commands/monitor.md +460 -0
- package/.agy/skills/team-roadmap-dev/roles/coordinator/commands/pause.md +90 -0
- package/.agy/skills/team-roadmap-dev/roles/coordinator/commands/resume.md +137 -0
- package/.agy/skills/team-roadmap-dev/roles/coordinator/commands/roadmap-discuss.md +287 -0
- package/.agy/skills/team-roadmap-dev/roles/coordinator/role.md +302 -0
- package/.agy/skills/team-roadmap-dev/roles/executor/role.md +69 -0
- package/.agy/skills/team-roadmap-dev/roles/planner/role.md +83 -0
- package/.agy/skills/team-roadmap-dev/roles/verifier/role.md +71 -0
- package/.agy/skills/team-roadmap-dev/specs/pipelines.md +93 -0
- package/.agy/skills/team-roadmap-dev/specs/team-config.json +95 -0
- package/.agy/skills/team-swarm/SKILL.md +147 -158
- package/.agy/skills/team-tech-debt/SKILL.md +100 -115
- package/.agy/skills/team-tech-debt/roles/coordinator/commands/dispatch.md +1 -1
- package/.agy/skills/team-tech-debt/roles/coordinator/commands/monitor.md +2 -2
- package/.agy/skills/team-tech-debt/roles/scanner/role.md +84 -85
- package/.agy/skills/team-testing/SKILL.md +115 -126
- package/.agy/skills/team-testing/roles/coordinator/commands/dispatch.md +1 -1
- package/.agy/skills/team-testing/roles/coordinator/commands/monitor.md +2 -2
- package/.agy/skills/team-testing/roles/coordinator/role.md +1 -1
- package/.agy/skills/team-ui-polish/SKILL.md +131 -0
- package/.agy/skills/team-ui-polish/roles/coordinator/commands/analyze.md +77 -0
- package/.agy/skills/team-ui-polish/roles/coordinator/commands/dispatch.md +194 -0
- package/.agy/skills/team-ui-polish/roles/coordinator/commands/monitor.md +201 -0
- package/.agy/skills/team-ui-polish/roles/coordinator/role.md +170 -0
- package/.agy/skills/team-ui-polish/roles/diagnostician/role.md +159 -0
- package/.agy/skills/team-ui-polish/roles/optimizer/role.md +224 -0
- package/.agy/skills/team-ui-polish/roles/scanner/role.md +355 -0
- package/.agy/skills/team-ui-polish/roles/verifier/role.md +141 -0
- package/.agy/skills/team-ui-polish/specs/anti-patterns.md +141 -0
- package/.agy/skills/team-ui-polish/specs/design-standards.md +356 -0
- package/.agy/skills/team-ui-polish/specs/fix-strategies.md +235 -0
- package/.agy/skills/team-ui-polish/specs/pipelines.md +81 -0
- package/.agy/skills/team-ui-polish/specs/scoring-guide.md +162 -0
- package/.agy/skills/team-ui-polish/specs/team-config.json +73 -0
- package/.agy/skills/team-uidesign/SKILL.md +134 -0
- package/.agy/skills/team-uidesign/roles/coordinator/commands/analyze.md +59 -0
- package/.agy/skills/team-uidesign/roles/coordinator/commands/dispatch.md +185 -0
- package/.agy/skills/team-uidesign/roles/coordinator/commands/monitor.md +205 -0
- package/.agy/skills/team-uidesign/roles/coordinator/role.md +168 -0
- package/.agy/skills/team-uidesign/roles/designer/role.md +92 -0
- package/.agy/skills/team-uidesign/roles/implementer/role.md +93 -0
- package/.agy/skills/team-uidesign/roles/researcher/role.md +100 -0
- package/.agy/skills/team-uidesign/roles/reviewer/role.md +68 -0
- package/.agy/skills/team-uidesign/specs/anti-patterns.md +211 -0
- package/.agy/skills/team-uidesign/specs/design-standards.md +329 -0
- package/.agy/skills/team-uidesign/specs/pipelines.md +76 -0
- package/.agy/skills/team-uidesign/specs/scoring-guide.md +114 -0
- package/.agy/skills/team-uidesign/specs/team-config.json +107 -0
- package/.agy/skills/team-uidesign/specs/ux-writing.md +86 -0
- package/.agy/skills/team-ultra-analyze/SKILL.md +162 -0
- package/.agy/skills/team-ultra-analyze/roles/analyst/role.md +96 -0
- package/.agy/skills/team-ultra-analyze/roles/coordinator/commands/analyze.md +73 -0
- package/.agy/skills/team-ultra-analyze/roles/coordinator/commands/dispatch.md +285 -0
- package/.agy/skills/team-ultra-analyze/roles/coordinator/commands/monitor.md +356 -0
- package/.agy/skills/team-ultra-analyze/roles/coordinator/role.md +247 -0
- package/.agy/skills/team-ultra-analyze/roles/discussant/role.md +105 -0
- package/.agy/skills/team-ultra-analyze/roles/explorer/role.md +73 -0
- package/.agy/skills/team-ultra-analyze/roles/synthesizer/role.md +76 -0
- package/.agy/skills/team-ultra-analyze/specs/pipelines.md +64 -0
- package/.agy/skills/team-ultra-analyze/specs/team-config.json +129 -0
- package/.agy/skills/team-ux-improve/SKILL.md +141 -0
- package/.agy/skills/team-ux-improve/roles/coordinator/commands/analyze.md +62 -0
- package/.agy/skills/team-ux-improve/roles/coordinator/commands/dispatch.md +200 -0
- package/.agy/skills/team-ux-improve/roles/coordinator/commands/monitor.md +175 -0
- package/.agy/skills/team-ux-improve/roles/coordinator/role.md +142 -0
- package/.agy/skills/team-ux-improve/roles/designer/role.md +151 -0
- package/.agy/skills/team-ux-improve/roles/diagnoser/role.md +107 -0
- package/.agy/skills/team-ux-improve/roles/explorer/role.md +76 -0
- package/.agy/skills/team-ux-improve/roles/implementer/role.md +101 -0
- package/.agy/skills/team-ux-improve/roles/scanner/role.md +134 -0
- package/.agy/skills/team-ux-improve/roles/tester/role.md +83 -0
- package/.agy/skills/team-ux-improve/specs/anti-patterns.md +103 -0
- package/.agy/skills/team-ux-improve/specs/design-standards.md +54 -0
- package/.agy/skills/team-ux-improve/specs/heuristics.md +88 -0
- package/.agy/skills/team-ux-improve/specs/pipelines.md +54 -0
- package/.agy/skills/team-ux-improve/specs/team-config.json +181 -0
- package/.agy/skills/team-ux-improve/wisdom/anti-patterns/common-ux-pitfalls.md +49 -0
- package/.agy/skills/team-ux-improve/wisdom/contributions/.gitkeep +0 -0
- package/.agy/skills/team-ux-improve/wisdom/patterns/state-management.md +34 -0
- package/.agy/skills/team-ux-improve/wisdom/patterns/ui-feedback.md +40 -0
- package/.agy/skills/team-ux-improve/wisdom/principles/general-ux.md +43 -0
- package/.agy/skills/team-visual-a11y/SKILL.md +146 -0
- package/.agy/skills/team-visual-a11y/roles/color-auditor/role.md +177 -0
- package/.agy/skills/team-visual-a11y/roles/coordinator/commands/analyze.md +72 -0
- package/.agy/skills/team-visual-a11y/roles/coordinator/commands/dispatch.md +250 -0
- package/.agy/skills/team-visual-a11y/roles/coordinator/commands/monitor.md +225 -0
- package/.agy/skills/team-visual-a11y/roles/coordinator/role.md +169 -0
- package/.agy/skills/team-visual-a11y/roles/fix-implementer/role.md +245 -0
- package/.agy/skills/team-visual-a11y/roles/focus-auditor/role.md +221 -0
- package/.agy/skills/team-visual-a11y/roles/remediation-planner/role.md +205 -0
- package/.agy/skills/team-visual-a11y/roles/typo-auditor/role.md +184 -0
- package/.agy/skills/team-visual-a11y/specs/focus-patterns.md +325 -0
- package/.agy/skills/team-visual-a11y/specs/oklch-standards.md +130 -0
- package/.agy/skills/team-visual-a11y/specs/pipelines.md +98 -0
- package/.agy/skills/team-visual-a11y/specs/team-config.json +109 -0
- package/.agy/skills/team-visual-a11y/specs/typography-scale.md +165 -0
- package/.agy/skills/team-visual-a11y/specs/wcag-matrix.md +133 -0
- package/.claude/commands/odyssey-debug.md +30 -16
- package/.claude/commands/odyssey-improve.md +28 -15
- package/.claude/commands/odyssey-planex.md +20 -12
- package/.claude/commands/odyssey-review-test-fix.md +29 -13
- package/.claude/commands/odyssey-ui.md +27 -14
- package/.claude/skills/delegation-check/SKILL.md +297 -0
- package/.claude/skills/delegation-check/specs/separation-rules.md +269 -0
- package/.claude/skills/prompt-generator/SKILL.md +470 -0
- package/.claude/skills/prompt-generator/specs/agent-design-spec.md +299 -0
- package/.claude/skills/prompt-generator/specs/command-design-spec.md +367 -0
- package/.claude/skills/prompt-generator/specs/conversion-spec.md +207 -0
- package/.claude/skills/prompt-generator/templates/agent-md.md +145 -0
- package/.claude/skills/prompt-generator/templates/command-md.md +118 -0
- package/.claude/skills/scholar-anti-ai-writing/SKILL.md +173 -0
- package/.claude/skills/scholar-anti-ai-writing/phases/01-detect-score.md +126 -0
- package/.claude/skills/scholar-anti-ai-writing/phases/02-rewrite-polish.md +177 -0
- package/.claude/skills/scholar-anti-ai-writing/phases/03-validate-score.md +134 -0
- package/.claude/skills/scholar-anti-ai-writing/references/patterns-chinese.md +242 -0
- package/.claude/skills/scholar-anti-ai-writing/references/patterns-english.md +242 -0
- package/.claude/skills/scholar-citation-verify/SKILL.md +166 -0
- package/.claude/skills/scholar-citation-verify/phases/01-scan-extract.md +141 -0
- package/.claude/skills/scholar-citation-verify/phases/02-verify.md +310 -0
- package/.claude/skills/scholar-citation-verify/phases/03-report-fix.md +190 -0
- package/.claude/skills/scholar-citation-verify/references/api-usage.md +372 -0
- package/.claude/skills/scholar-citation-verify/references/common-errors.md +384 -0
- package/.claude/skills/scholar-citation-verify/references/verification-rules.md +399 -0
- package/.claude/skills/scholar-experiment/SKILL.md +321 -0
- package/.claude/skills/scholar-experiment/phases/01-data-loading.md +209 -0
- package/.claude/skills/scholar-experiment/phases/02-statistical-analysis.md +269 -0
- package/.claude/skills/scholar-experiment/phases/03-visualization.md +319 -0
- package/.claude/skills/scholar-experiment/phases/04-results-writing.md +229 -0
- package/.claude/skills/scholar-experiment/phases/05-quality-check.md +261 -0
- package/.claude/skills/scholar-ideation/SKILL.md +288 -0
- package/.claude/skills/scholar-ideation/phases/01-literature-search.md +317 -0
- package/.claude/skills/scholar-ideation/phases/02-gap-analysis.md +249 -0
- package/.claude/skills/scholar-ideation/phases/03-research-question.md +200 -0
- package/.claude/skills/scholar-ideation/phases/04-method-selection.md +185 -0
- package/.claude/skills/scholar-ideation/phases/05-research-planning.md +385 -0
- package/.claude/skills/scholar-latex-organizer/SKILL.md +186 -0
- package/.claude/skills/scholar-latex-organizer/phases/01-extract-analyze.md +228 -0
- package/.claude/skills/scholar-latex-organizer/phases/02-cleanup-organize.md +500 -0
- package/.claude/skills/scholar-latex-organizer/phases/03-readme-finalize.md +349 -0
- package/.claude/skills/scholar-publish/SKILL.md +220 -0
- package/.claude/skills/scholar-publish/phases/01-presentation.md +243 -0
- package/.claude/skills/scholar-publish/phases/02-poster.md +239 -0
- package/.claude/skills/scholar-publish/phases/03-promotion.md +255 -0
- package/.claude/skills/scholar-rebuttal-pro/README.md +313 -0
- package/.claude/skills/scholar-rebuttal-pro/SKILL.md +511 -0
- package/.claude/skills/scholar-rebuttal-pro/phases/01-review-parsing.md +227 -0
- package/.claude/skills/scholar-rebuttal-pro/phases/02-multi-perspective-discussion.md +395 -0
- package/.claude/skills/scholar-rebuttal-pro/phases/03-strategy-formulation.md +459 -0
- package/.claude/skills/scholar-rebuttal-pro/phases/04-rebuttal-writing.md +384 -0
- package/.claude/skills/scholar-rebuttal-pro/phases/05-quality-validation.md +691 -0
- package/.claude/skills/scholar-review/SKILL.md +227 -0
- package/.claude/skills/scholar-review/phases/01-self-review.md +186 -0
- package/.claude/skills/scholar-review/phases/02-review-analysis.md +203 -0
- package/.claude/skills/scholar-review/phases/03-response-strategy.md +193 -0
- package/.claude/skills/scholar-review/phases/04-rebuttal-writing.md +181 -0
- package/.claude/skills/scholar-review/phases/05-revision.md +183 -0
- package/.claude/skills/scholar-review/specs/tone-guidelines.md +76 -0
- package/.claude/skills/scholar-thesis-docx/LICENSE +21 -0
- package/.claude/skills/scholar-thesis-docx/README.md +111 -0
- package/.claude/skills/scholar-thesis-docx/README_EN.md +108 -0
- package/.claude/skills/scholar-thesis-docx/SKILL.md +212 -0
- package/.claude/skills/scholar-thesis-docx/agents/openai.yaml +4 -0
- package/.claude/skills/scholar-thesis-docx/examples/architecture.sample.mmd +5 -0
- package/.claude/skills/scholar-thesis-docx/examples/final-audit-checklist.sample.md +46 -0
- package/.claude/skills/scholar-thesis-docx/examples/word-style-config.sample.json +35 -0
- package/.claude/skills/scholar-thesis-docx/references/failure-patterns-and-quality-gates.md +178 -0
- package/.claude/skills/scholar-thesis-docx/references/figure-and-code-rules.md +33 -0
- package/.claude/skills/scholar-thesis-docx/references/paper-format-workflow.md +68 -0
- package/.claude/skills/scholar-thesis-docx/references/script-usage.md +157 -0
- package/.claude/skills/scholar-thesis-docx/scripts/audit_docx_ooxml.py +429 -0
- package/.claude/skills/scholar-thesis-docx/scripts/check_word_com.ps1 +50 -0
- package/.claude/skills/scholar-thesis-docx/scripts/export_word_pdf.ps1 +62 -0
- package/.claude/skills/scholar-thesis-docx/scripts/normalize_word_styles.ps1 +498 -0
- package/.claude/skills/scholar-thesis-docx/scripts/render_mermaid_figure.ps1 +148 -0
- package/.claude/skills/scholar-writing/SKILL.md +296 -0
- package/.claude/skills/scholar-writing/phases/01-repo-understanding.md +178 -0
- package/.claude/skills/scholar-writing/phases/02-structure-planning.md +197 -0
- package/.claude/skills/scholar-writing/phases/03-section-drafting.md +215 -0
- package/.claude/skills/scholar-writing/phases/04-citation-management.md +310 -0
- package/.claude/skills/scholar-writing/phases/05-anti-ai-polish.md +202 -0
- package/.claude/skills/scholar-writing/phases/06-conference-formatting.md +260 -0
- package/.claude/skills/skill-generator/SKILL.md +472 -0
- package/.claude/skills/skill-generator/phases/01-requirements-discovery.md +238 -0
- package/.claude/skills/skill-generator/phases/02-structure-generation.md +261 -0
- package/.claude/skills/skill-generator/phases/03-phase-generation.md +976 -0
- package/.claude/skills/skill-generator/phases/04-specs-templates.md +398 -0
- package/.claude/skills/skill-generator/phases/05-validation.md +417 -0
- package/.claude/skills/skill-generator/specs/cli-integration.md +442 -0
- package/.claude/skills/skill-generator/specs/execution-modes.md +399 -0
- package/.claude/skills/skill-generator/specs/reference-docs-spec.md +271 -0
- package/.claude/skills/skill-generator/specs/scripting-integration.md +265 -0
- package/.claude/skills/skill-generator/specs/skill-requirements.md +466 -0
- package/.claude/skills/skill-generator/templates/autonomous-action.md +330 -0
- package/.claude/skills/skill-generator/templates/autonomous-orchestrator.md +300 -0
- package/.claude/skills/skill-generator/templates/code-analysis-action.md +514 -0
- package/.claude/skills/skill-generator/templates/llm-action.md +367 -0
- package/.claude/skills/skill-generator/templates/script-template.md +368 -0
- package/.claude/skills/skill-generator/templates/sequential-phase.md +474 -0
- package/.claude/skills/skill-generator/templates/skill-md.md +312 -0
- package/.claude/skills/skill-iter-tune/SKILL.md +15 -15
- package/.claude/skills/skill-iter-tune/phases/02-execute.md +5 -5
- package/.claude/skills/skill-iter-tune/phases/03-evaluate.md +4 -4
- package/.claude/skills/skill-iter-tune/templates/eval-prompt.md +1 -1
- package/.claude/skills/skill-iter-tune/templates/execute-prompt.md +1 -1
- package/.claude/skills/skill-simplify/SKILL.md +63 -0
- package/.claude/skills/skill-simplify/phases/01-analysis.md +224 -0
- package/.claude/skills/skill-simplify/phases/02-optimize.md +111 -0
- package/.claude/skills/skill-simplify/phases/03-check.md +224 -0
- package/.claude/skills/skill-tuning/SKILL.md +174 -0
- package/.claude/skills/skill-tuning/phases/actions/action-abort.md +164 -0
- package/.claude/skills/skill-tuning/phases/actions/action-analyze-requirements.md +406 -0
- package/.claude/skills/skill-tuning/phases/actions/action-apply-fix.md +206 -0
- package/.claude/skills/skill-tuning/phases/actions/action-complete.md +195 -0
- package/.claude/skills/skill-tuning/phases/actions/action-diagnose-agent.md +317 -0
- package/.claude/skills/skill-tuning/phases/actions/action-diagnose-context.md +243 -0
- package/.claude/skills/skill-tuning/phases/actions/action-diagnose-dataflow.md +318 -0
- package/.claude/skills/skill-tuning/phases/actions/action-diagnose-docs.md +299 -0
- package/.claude/skills/skill-tuning/phases/actions/action-diagnose-memory.md +269 -0
- package/.claude/skills/skill-tuning/phases/actions/action-diagnose-token-consumption.md +200 -0
- package/.claude/skills/skill-tuning/phases/actions/action-gemini-analysis.md +322 -0
- package/.claude/skills/skill-tuning/phases/actions/action-generate-report.md +228 -0
- package/.claude/skills/skill-tuning/phases/actions/action-init.md +149 -0
- package/.claude/skills/skill-tuning/phases/actions/action-propose-fixes.md +317 -0
- package/.claude/skills/skill-tuning/phases/actions/action-verify.md +222 -0
- package/.claude/skills/skill-tuning/phases/orchestrator.md +190 -0
- package/.claude/skills/skill-tuning/phases/state-schema.md +378 -0
- package/.claude/skills/skill-tuning/specs/category-mappings.json +284 -0
- package/.claude/skills/skill-tuning/specs/dimension-mapping.md +212 -0
- package/.claude/skills/skill-tuning/specs/problem-taxonomy.md +210 -0
- package/.claude/skills/skill-tuning/specs/quality-gates.md +263 -0
- package/.claude/skills/skill-tuning/specs/skill-authoring-principles.md +192 -0
- package/.claude/skills/skill-tuning/specs/tuning-strategies.md +392 -0
- package/.claude/skills/skill-tuning/templates/diagnosis-report.md +153 -0
- package/.claude/skills/skill-tuning/templates/fix-proposal.md +204 -0
- package/.claude/skills/team-arch-opt/SKILL.md +158 -0
- package/.claude/skills/team-arch-opt/roles/analyzer/role.md +86 -0
- package/.claude/skills/team-arch-opt/roles/coordinator/commands/analyze.md +57 -0
- package/.claude/skills/team-arch-opt/roles/coordinator/commands/dispatch.md +371 -0
- package/.claude/skills/team-arch-opt/roles/coordinator/commands/monitor.md +216 -0
- package/.claude/skills/team-arch-opt/roles/coordinator/role.md +146 -0
- package/.claude/skills/team-arch-opt/roles/designer/role.md +115 -0
- package/.claude/skills/team-arch-opt/roles/refactorer/role.md +104 -0
- package/.claude/skills/team-arch-opt/roles/reviewer/role.md +111 -0
- package/.claude/skills/team-arch-opt/roles/validator/role.md +115 -0
- package/.claude/skills/team-arch-opt/specs/pipelines.md +102 -0
- package/.claude/skills/team-arch-opt/specs/team-config.json +263 -0
- package/.claude/skills/team-brainstorm/SKILL.md +171 -0
- package/.claude/skills/team-brainstorm/roles/challenger/role.md +61 -0
- package/.claude/skills/team-brainstorm/roles/coordinator/commands/analyze.md +58 -0
- package/.claude/skills/team-brainstorm/roles/coordinator/commands/dispatch.md +206 -0
- package/.claude/skills/team-brainstorm/roles/coordinator/commands/monitor.md +199 -0
- package/.claude/skills/team-brainstorm/roles/coordinator/role.md +140 -0
- package/.claude/skills/team-brainstorm/roles/evaluator/role.md +56 -0
- package/.claude/skills/team-brainstorm/roles/ideator/role.md +69 -0
- package/.claude/skills/team-brainstorm/roles/synthesizer/role.md +57 -0
- package/.claude/skills/team-brainstorm/specs/pipelines.md +72 -0
- package/.claude/skills/team-brainstorm/specs/team-config.json +86 -0
- package/.claude/skills/team-coordinate/SKILL.md +266 -266
- package/.claude/skills/team-coordinate/roles/coordinator/commands/monitor.md +2 -2
- package/.claude/skills/team-coordinate/roles/coordinator/role.md +1 -1
- package/.claude/skills/team-designer/SKILL.md +160 -0
- package/.claude/skills/team-designer/phases/01-requirements-analysis.md +265 -0
- package/.claude/skills/team-designer/phases/02-scaffold-generation.md +236 -0
- package/.claude/skills/team-designer/phases/03-content-generation.md +330 -0
- package/.claude/skills/team-designer/phases/04-validation.md +329 -0
- package/.claude/skills/team-executor/SKILL.md +1 -1
- package/.claude/skills/team-frontend/SKILL.md +136 -0
- package/.claude/skills/team-frontend/roles/analyst/role.md +100 -0
- package/.claude/skills/team-frontend/roles/architect/role.md +86 -0
- package/.claude/skills/team-frontend/roles/coordinator/commands/analyze.md +52 -0
- package/.claude/skills/team-frontend/roles/coordinator/commands/dispatch.md +197 -0
- package/.claude/skills/team-frontend/roles/coordinator/commands/monitor.md +233 -0
- package/.claude/skills/team-frontend/roles/coordinator/role.md +158 -0
- package/.claude/skills/team-frontend/roles/developer/role.md +93 -0
- package/.claude/skills/team-frontend/roles/qa/role.md +79 -0
- package/.claude/skills/team-frontend/specs/pipelines.md +76 -0
- package/.claude/skills/team-frontend/specs/team-config.json +84 -0
- package/.claude/skills/team-frontend-debug/SKILL.md +198 -0
- package/.claude/skills/team-frontend-debug/roles/analyzer/role.md +208 -0
- package/.claude/skills/team-frontend-debug/roles/coordinator/commands/analyze.md +174 -0
- package/.claude/skills/team-frontend-debug/roles/coordinator/commands/dispatch.md +256 -0
- package/.claude/skills/team-frontend-debug/roles/coordinator/commands/monitor.md +148 -0
- package/.claude/skills/team-frontend-debug/roles/coordinator/role.md +131 -0
- package/.claude/skills/team-frontend-debug/roles/fixer/role.md +147 -0
- package/.claude/skills/team-frontend-debug/roles/reproducer/role.md +155 -0
- package/.claude/skills/team-frontend-debug/roles/tester/role.md +231 -0
- package/.claude/skills/team-frontend-debug/roles/verifier/role.md +172 -0
- package/.claude/skills/team-frontend-debug/specs/debug-tools.md +215 -0
- package/.claude/skills/team-frontend-debug/specs/pipelines.md +94 -0
- package/.claude/skills/team-interactive-craft/SKILL.md +141 -0
- package/.claude/skills/team-interactive-craft/roles/a11y-tester/role.md +159 -0
- package/.claude/skills/team-interactive-craft/roles/builder/role.md +216 -0
- package/.claude/skills/team-interactive-craft/roles/coordinator/commands/analyze.md +71 -0
- package/.claude/skills/team-interactive-craft/roles/coordinator/commands/dispatch.md +192 -0
- package/.claude/skills/team-interactive-craft/roles/coordinator/commands/monitor.md +215 -0
- package/.claude/skills/team-interactive-craft/roles/coordinator/role.md +166 -0
- package/.claude/skills/team-interactive-craft/roles/interaction-designer/role.md +144 -0
- package/.claude/skills/team-interactive-craft/roles/researcher/role.md +131 -0
- package/.claude/skills/team-interactive-craft/specs/interaction-patterns.md +362 -0
- package/.claude/skills/team-interactive-craft/specs/pipelines.md +85 -0
- package/.claude/skills/team-interactive-craft/specs/team-config.json +105 -0
- package/.claude/skills/team-interactive-craft/specs/vanilla-constraints.md +83 -0
- package/.claude/skills/team-issue/SKILL.md +171 -0
- package/.claude/skills/team-issue/roles/coordinator/commands/analyze.md +64 -0
- package/.claude/skills/team-issue/roles/coordinator/commands/dispatch.md +349 -0
- package/.claude/skills/team-issue/roles/coordinator/commands/monitor.md +229 -0
- package/.claude/skills/team-issue/roles/coordinator/role.md +175 -0
- package/.claude/skills/team-issue/roles/explorer/role.md +102 -0
- package/.claude/skills/team-issue/roles/implementer/role.md +87 -0
- package/.claude/skills/team-issue/roles/integrator/role.md +84 -0
- package/.claude/skills/team-issue/roles/planner/role.md +81 -0
- package/.claude/skills/team-issue/roles/reviewer/role.md +86 -0
- package/.claude/skills/team-issue/specs/pipelines.md +124 -0
- package/.claude/skills/team-issue/specs/team-config.json +70 -0
- package/.claude/skills/team-lifecycle-v4/SKILL.md +209 -209
- package/.claude/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +2 -2
- package/.claude/skills/team-lifecycle-v4/roles/coordinator/role.md +1 -1
- package/.claude/skills/team-motion-design/SKILL.md +142 -0
- package/.claude/skills/team-motion-design/roles/animator/role.md +194 -0
- package/.claude/skills/team-motion-design/roles/choreographer/role.md +164 -0
- package/.claude/skills/team-motion-design/roles/coordinator/commands/analyze.md +64 -0
- package/.claude/skills/team-motion-design/roles/coordinator/commands/dispatch.md +203 -0
- package/.claude/skills/team-motion-design/roles/coordinator/commands/monitor.md +216 -0
- package/.claude/skills/team-motion-design/roles/coordinator/role.md +167 -0
- package/.claude/skills/team-motion-design/roles/motion-researcher/role.md +115 -0
- package/.claude/skills/team-motion-design/roles/motion-tester/role.md +175 -0
- package/.claude/skills/team-motion-design/specs/gpu-constraints.md +114 -0
- package/.claude/skills/team-motion-design/specs/motion-tokens.md +128 -0
- package/.claude/skills/team-motion-design/specs/pipelines.md +74 -0
- package/.claude/skills/team-motion-design/specs/reduced-motion.md +129 -0
- package/.claude/skills/team-motion-design/specs/team-config.json +99 -0
- package/.claude/skills/team-perf-opt/SKILL.md +175 -0
- package/.claude/skills/team-perf-opt/roles/benchmarker/role.md +89 -0
- package/.claude/skills/team-perf-opt/roles/coordinator/commands/analyze.md +61 -0
- package/.claude/skills/team-perf-opt/roles/coordinator/commands/dispatch.md +376 -0
- package/.claude/skills/team-perf-opt/roles/coordinator/commands/monitor.md +362 -0
- package/.claude/skills/team-perf-opt/roles/coordinator/role.md +147 -0
- package/.claude/skills/team-perf-opt/roles/optimizer/role.md +99 -0
- package/.claude/skills/team-perf-opt/roles/profiler/role.md +81 -0
- package/.claude/skills/team-perf-opt/roles/reviewer/role.md +75 -0
- package/.claude/skills/team-perf-opt/roles/strategist/role.md +94 -0
- package/.claude/skills/team-perf-opt/specs/pipelines.md +65 -0
- package/.claude/skills/team-perf-opt/specs/team-config.json +246 -0
- package/.claude/skills/team-planex/SKILL.md +137 -0
- package/.claude/skills/team-planex/roles/coordinator/commands/analyze.md +52 -0
- package/.claude/skills/team-planex/roles/coordinator/commands/dispatch.md +87 -0
- package/.claude/skills/team-planex/roles/coordinator/commands/monitor.md +195 -0
- package/.claude/skills/team-planex/roles/coordinator/role.md +140 -0
- package/.claude/skills/team-planex/roles/executor/role.md +91 -0
- package/.claude/skills/team-planex/roles/planner/role.md +119 -0
- package/.claude/skills/team-planex/specs/pipelines.md +93 -0
- package/.claude/skills/team-quality-assurance/SKILL.md +147 -147
- package/.claude/skills/team-quality-assurance/roles/coordinator/commands/dispatch.md +1 -1
- package/.claude/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +2 -2
- package/.claude/skills/team-quality-assurance/roles/coordinator/role.md +1 -1
- package/.claude/skills/team-quality-assurance/roles/scout/role.md +75 -75
- package/.claude/skills/team-review/SKILL.md +147 -147
- package/.claude/skills/team-review/roles/coordinator/commands/dispatch.md +1 -1
- package/.claude/skills/team-review/roles/coordinator/commands/monitor.md +2 -2
- package/.claude/skills/team-review/roles/coordinator/role.md +1 -1
- package/.claude/skills/team-roadmap-dev/SKILL.md +169 -0
- package/.claude/skills/team-roadmap-dev/roles/coordinator/commands/analyze.md +61 -0
- package/.claude/skills/team-roadmap-dev/roles/coordinator/commands/dispatch.md +212 -0
- package/.claude/skills/team-roadmap-dev/roles/coordinator/commands/monitor.md +477 -0
- package/.claude/skills/team-roadmap-dev/roles/coordinator/commands/pause.md +90 -0
- package/.claude/skills/team-roadmap-dev/roles/coordinator/commands/resume.md +137 -0
- package/.claude/skills/team-roadmap-dev/roles/coordinator/commands/roadmap-discuss.md +287 -0
- package/.claude/skills/team-roadmap-dev/roles/coordinator/role.md +302 -0
- package/.claude/skills/team-roadmap-dev/roles/executor/role.md +72 -0
- package/.claude/skills/team-roadmap-dev/roles/planner/role.md +86 -0
- package/.claude/skills/team-roadmap-dev/roles/verifier/role.md +74 -0
- package/.claude/skills/team-roadmap-dev/specs/pipelines.md +93 -0
- package/.claude/skills/team-roadmap-dev/specs/team-config.json +95 -0
- package/.claude/skills/team-swarm/SKILL.md +178 -178
- package/.claude/skills/team-tech-debt/SKILL.md +128 -128
- package/.claude/skills/team-tech-debt/roles/coordinator/commands/dispatch.md +1 -1
- package/.claude/skills/team-tech-debt/roles/coordinator/commands/monitor.md +2 -2
- package/.claude/skills/team-tech-debt/roles/scanner/role.md +90 -90
- package/.claude/skills/team-testing/SKILL.md +143 -143
- package/.claude/skills/team-testing/roles/coordinator/commands/dispatch.md +1 -1
- package/.claude/skills/team-testing/roles/coordinator/commands/monitor.md +2 -2
- package/.claude/skills/team-testing/roles/coordinator/role.md +1 -1
- package/.claude/skills/team-ui-polish/SKILL.md +141 -0
- package/.claude/skills/team-ui-polish/roles/coordinator/commands/analyze.md +77 -0
- package/.claude/skills/team-ui-polish/roles/coordinator/commands/dispatch.md +194 -0
- package/.claude/skills/team-ui-polish/roles/coordinator/commands/monitor.md +212 -0
- package/.claude/skills/team-ui-polish/roles/coordinator/role.md +170 -0
- package/.claude/skills/team-ui-polish/roles/diagnostician/role.md +160 -0
- package/.claude/skills/team-ui-polish/roles/optimizer/role.md +225 -0
- package/.claude/skills/team-ui-polish/roles/scanner/role.md +356 -0
- package/.claude/skills/team-ui-polish/roles/verifier/role.md +142 -0
- package/.claude/skills/team-ui-polish/specs/anti-patterns.md +141 -0
- package/.claude/skills/team-ui-polish/specs/design-standards.md +356 -0
- package/.claude/skills/team-ui-polish/specs/fix-strategies.md +235 -0
- package/.claude/skills/team-ui-polish/specs/pipelines.md +81 -0
- package/.claude/skills/team-ui-polish/specs/scoring-guide.md +162 -0
- package/.claude/skills/team-ui-polish/specs/team-config.json +73 -0
- package/.claude/skills/team-uidesign/SKILL.md +144 -0
- package/.claude/skills/team-uidesign/roles/coordinator/commands/analyze.md +59 -0
- package/.claude/skills/team-uidesign/roles/coordinator/commands/dispatch.md +185 -0
- package/.claude/skills/team-uidesign/roles/coordinator/commands/monitor.md +216 -0
- package/.claude/skills/team-uidesign/roles/coordinator/role.md +168 -0
- package/.claude/skills/team-uidesign/roles/designer/role.md +93 -0
- package/.claude/skills/team-uidesign/roles/implementer/role.md +94 -0
- package/.claude/skills/team-uidesign/roles/researcher/role.md +101 -0
- package/.claude/skills/team-uidesign/roles/reviewer/role.md +69 -0
- package/.claude/skills/team-uidesign/specs/anti-patterns.md +211 -0
- package/.claude/skills/team-uidesign/specs/design-standards.md +329 -0
- package/.claude/skills/team-uidesign/specs/pipelines.md +76 -0
- package/.claude/skills/team-uidesign/specs/scoring-guide.md +114 -0
- package/.claude/skills/team-uidesign/specs/team-config.json +107 -0
- package/.claude/skills/team-uidesign/specs/ux-writing.md +86 -0
- package/.claude/skills/team-ultra-analyze/SKILL.md +173 -0
- package/.claude/skills/team-ultra-analyze/roles/analyst/role.md +98 -0
- package/.claude/skills/team-ultra-analyze/roles/coordinator/commands/analyze.md +73 -0
- package/.claude/skills/team-ultra-analyze/roles/coordinator/commands/dispatch.md +285 -0
- package/.claude/skills/team-ultra-analyze/roles/coordinator/commands/monitor.md +372 -0
- package/.claude/skills/team-ultra-analyze/roles/coordinator/role.md +247 -0
- package/.claude/skills/team-ultra-analyze/roles/discussant/role.md +107 -0
- package/.claude/skills/team-ultra-analyze/roles/explorer/role.md +75 -0
- package/.claude/skills/team-ultra-analyze/roles/synthesizer/role.md +78 -0
- package/.claude/skills/team-ultra-analyze/specs/pipelines.md +64 -0
- package/.claude/skills/team-ultra-analyze/specs/team-config.json +129 -0
- package/.claude/skills/team-ux-improve/SKILL.md +151 -0
- package/.claude/skills/team-ux-improve/roles/coordinator/commands/analyze.md +62 -0
- package/.claude/skills/team-ux-improve/roles/coordinator/commands/dispatch.md +200 -0
- package/.claude/skills/team-ux-improve/roles/coordinator/commands/monitor.md +186 -0
- package/.claude/skills/team-ux-improve/roles/coordinator/role.md +142 -0
- package/.claude/skills/team-ux-improve/roles/designer/role.md +152 -0
- package/.claude/skills/team-ux-improve/roles/diagnoser/role.md +108 -0
- package/.claude/skills/team-ux-improve/roles/explorer/role.md +77 -0
- package/.claude/skills/team-ux-improve/roles/implementer/role.md +102 -0
- package/.claude/skills/team-ux-improve/roles/scanner/role.md +135 -0
- package/.claude/skills/team-ux-improve/roles/tester/role.md +84 -0
- package/.claude/skills/team-ux-improve/specs/anti-patterns.md +103 -0
- package/.claude/skills/team-ux-improve/specs/design-standards.md +54 -0
- package/.claude/skills/team-ux-improve/specs/heuristics.md +88 -0
- package/.claude/skills/team-ux-improve/specs/pipelines.md +54 -0
- package/.claude/skills/team-ux-improve/specs/team-config.json +181 -0
- package/.claude/skills/team-ux-improve/wisdom/anti-patterns/common-ux-pitfalls.md +49 -0
- package/.claude/skills/team-ux-improve/wisdom/contributions/.gitkeep +0 -0
- package/.claude/skills/team-ux-improve/wisdom/patterns/state-management.md +34 -0
- package/.claude/skills/team-ux-improve/wisdom/patterns/ui-feedback.md +40 -0
- package/.claude/skills/team-ux-improve/wisdom/principles/general-ux.md +43 -0
- package/.claude/skills/team-visual-a11y/SKILL.md +156 -0
- package/.claude/skills/team-visual-a11y/roles/color-auditor/role.md +178 -0
- package/.claude/skills/team-visual-a11y/roles/coordinator/commands/analyze.md +72 -0
- package/.claude/skills/team-visual-a11y/roles/coordinator/commands/dispatch.md +250 -0
- package/.claude/skills/team-visual-a11y/roles/coordinator/commands/monitor.md +236 -0
- package/.claude/skills/team-visual-a11y/roles/coordinator/role.md +169 -0
- package/.claude/skills/team-visual-a11y/roles/fix-implementer/role.md +246 -0
- package/.claude/skills/team-visual-a11y/roles/focus-auditor/role.md +222 -0
- package/.claude/skills/team-visual-a11y/roles/remediation-planner/role.md +206 -0
- package/.claude/skills/team-visual-a11y/roles/typo-auditor/role.md +185 -0
- package/.claude/skills/team-visual-a11y/specs/focus-patterns.md +325 -0
- package/.claude/skills/team-visual-a11y/specs/oklch-standards.md +130 -0
- package/.claude/skills/team-visual-a11y/specs/pipelines.md +98 -0
- package/.claude/skills/team-visual-a11y/specs/team-config.json +109 -0
- package/.claude/skills/team-visual-a11y/specs/typography-scale.md +165 -0
- package/.claude/skills/team-visual-a11y/specs/wcag-matrix.md +133 -0
- package/.codex/skills/odyssey-debug/SKILL.md +32 -12
- package/.codex/skills/odyssey-improve/SKILL.md +34 -13
- package/.codex/skills/odyssey-planex/SKILL.md +25 -12
- package/.codex/skills/odyssey-review-test-fix/SKILL.md +39 -14
- package/.codex/skills/odyssey-ui/SKILL.md +30 -10
- package/bin/maestro.js +46 -1
- package/dashboard/dist-server/dashboard/src/server/routes/install-utils.d.ts +3 -8
- package/dashboard/dist-server/dashboard/src/server/routes/install-utils.js +3 -60
- package/dashboard/dist-server/dashboard/src/server/routes/install-utils.js.map +1 -1
- package/dashboard/dist-server/src/commands/hooks.d.ts +227 -0
- package/dashboard/dist-server/src/commands/hooks.js +1380 -0
- package/dashboard/dist-server/src/commands/hooks.js.map +1 -0
- package/dashboard/dist-server/src/commands/install-backend.d.ts +112 -0
- package/dashboard/dist-server/src/commands/install-backend.js +713 -0
- package/dashboard/dist-server/src/commands/install-backend.js.map +1 -0
- package/dashboard/dist-server/src/config/index.d.ts +16 -0
- package/dashboard/dist-server/src/config/index.js +165 -0
- package/dashboard/dist-server/src/config/index.js.map +1 -0
- package/dashboard/dist-server/src/core/component-defs.d.ts +46 -0
- package/dashboard/dist-server/src/core/component-defs.js +407 -0
- package/dashboard/dist-server/src/core/component-defs.js.map +1 -0
- package/dashboard/dist-server/src/core/manifest.d.ts +85 -0
- package/dashboard/dist-server/src/core/manifest.js +232 -0
- package/dashboard/dist-server/src/core/manifest.js.map +1 -0
- package/dashboard/dist-server/src/core/overlay/applier.d.ts +107 -0
- package/dashboard/dist-server/src/core/overlay/applier.js +443 -0
- package/dashboard/dist-server/src/core/overlay/applier.js.map +1 -0
- package/dashboard/dist-server/src/core/overlay/loader.d.ts +25 -0
- package/dashboard/dist-server/src/core/overlay/loader.js +210 -0
- package/dashboard/dist-server/src/core/overlay/loader.js.map +1 -0
- package/dashboard/dist-server/src/core/overlay/patcher.d.ts +25 -0
- package/dashboard/dist-server/src/core/overlay/patcher.js +212 -0
- package/dashboard/dist-server/src/core/overlay/patcher.js.map +1 -0
- package/dashboard/dist-server/src/core/overlay/section-parser.d.ts +24 -0
- package/dashboard/dist-server/src/core/overlay/section-parser.js +99 -0
- package/dashboard/dist-server/src/core/overlay/section-parser.js.map +1 -0
- package/dashboard/dist-server/src/core/overlay/types.d.ts +56 -0
- package/dashboard/dist-server/src/core/overlay/types.js +17 -0
- package/dashboard/dist-server/src/core/overlay/types.js.map +1 -0
- package/dashboard/dist-server/src/core/tag-injector.d.ts +71 -0
- package/dashboard/dist-server/src/core/tag-injector.js +228 -0
- package/dashboard/dist-server/src/core/tag-injector.js.map +1 -0
- package/dashboard/dist-server/src/core/toggle.d.ts +12 -0
- package/dashboard/dist-server/src/core/toggle.js +159 -0
- package/dashboard/dist-server/src/core/toggle.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/credibility.d.ts +36 -0
- package/dashboard/dist-server/src/graph/kg/credibility.js +141 -0
- package/dashboard/dist-server/src/graph/kg/credibility.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/db/connection.d.ts +27 -0
- package/dashboard/dist-server/src/graph/kg/db/connection.js +142 -0
- package/dashboard/dist-server/src/graph/kg/db/connection.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/db/index.d.ts +4 -0
- package/dashboard/dist-server/src/graph/kg/db/index.js +6 -0
- package/dashboard/dist-server/src/graph/kg/db/index.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/db/migrations.d.ts +7 -0
- package/dashboard/dist-server/src/graph/kg/db/migrations.js +88 -0
- package/dashboard/dist-server/src/graph/kg/db/migrations.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/db/queries.d.ts +83 -0
- package/dashboard/dist-server/src/graph/kg/db/queries.js +471 -0
- package/dashboard/dist-server/src/graph/kg/db/queries.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/db/types.d.ts +122 -0
- package/dashboard/dist-server/src/graph/kg/db/types.js +75 -0
- package/dashboard/dist-server/src/graph/kg/db/types.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/engine.d.ts +86 -0
- package/dashboard/dist-server/src/graph/kg/engine.js +247 -0
- package/dashboard/dist-server/src/graph/kg/engine.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/code-extractor.d.ts +49 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/code-extractor.js +390 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/code-extractor.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/dfm-extractor.d.ts +2 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/dfm-extractor.js +122 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/dfm-extractor.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/generated-detection.d.ts +13 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/generated-detection.js +65 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/generated-detection.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/languages/index.d.ts +8 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/languages/index.js +2119 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/languages/index.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/languages/typescript.d.ts +4 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/languages/typescript.js +191 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/languages/typescript.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/liquid-extractor.d.ts +2 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/liquid-extractor.js +117 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/liquid-extractor.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/mybatis-extractor.d.ts +2 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/mybatis-extractor.js +84 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/mybatis-extractor.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/plugin-engine.d.ts +38 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/plugin-engine.js +634 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/plugin-engine.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/plugin-types.d.ts +94 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/plugin-types.js +5 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/plugin-types.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/scan-scope.d.ts +14 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/scan-scope.js +93 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/scan-scope.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/svelte-extractor.d.ts +2 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/svelte-extractor.js +97 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/svelte-extractor.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/tree-sitter-types.d.ts +60 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/tree-sitter-types.js +53 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/tree-sitter-types.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/tree-sitter.d.ts +54 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/tree-sitter.js +227 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/tree-sitter.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/vue-extractor.d.ts +5 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/vue-extractor.js +114 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/vue-extractor.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/wasm-stability.d.ts +43 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/wasm-stability.js +140 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/wasm-stability.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/worker-parser.d.ts +18 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/worker-parser.js +117 -0
- package/dashboard/dist-server/src/graph/kg/extraction/code/worker-parser.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/extraction/knowledge/codebase-extractor.d.ts +2 -0
- package/dashboard/dist-server/src/graph/kg/extraction/knowledge/codebase-extractor.js +149 -0
- package/dashboard/dist-server/src/graph/kg/extraction/knowledge/codebase-extractor.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/extraction/knowledge/domain-extractor.d.ts +3 -0
- package/dashboard/dist-server/src/graph/kg/extraction/knowledge/domain-extractor.js +114 -0
- package/dashboard/dist-server/src/graph/kg/extraction/knowledge/domain-extractor.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/extraction/knowledge/issue-extractor.d.ts +2 -0
- package/dashboard/dist-server/src/graph/kg/extraction/knowledge/issue-extractor.js +84 -0
- package/dashboard/dist-server/src/graph/kg/extraction/knowledge/issue-extractor.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/extraction/knowledge/spec-extractor.d.ts +2 -0
- package/dashboard/dist-server/src/graph/kg/extraction/knowledge/spec-extractor.js +173 -0
- package/dashboard/dist-server/src/graph/kg/extraction/knowledge/spec-extractor.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/extraction/knowledge/wiki-extractor.d.ts +2 -0
- package/dashboard/dist-server/src/graph/kg/extraction/knowledge/wiki-extractor.js +165 -0
- package/dashboard/dist-server/src/graph/kg/extraction/knowledge/wiki-extractor.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/extraction/orchestrator.d.ts +15 -0
- package/dashboard/dist-server/src/graph/kg/extraction/orchestrator.js +241 -0
- package/dashboard/dist-server/src/graph/kg/extraction/orchestrator.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/query/context-builder.d.ts +37 -0
- package/dashboard/dist-server/src/graph/kg/query/context-builder.js +184 -0
- package/dashboard/dist-server/src/graph/kg/query/context-builder.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/query/scoring.d.ts +18 -0
- package/dashboard/dist-server/src/graph/kg/query/scoring.js +158 -0
- package/dashboard/dist-server/src/graph/kg/query/scoring.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/query/search.d.ts +58 -0
- package/dashboard/dist-server/src/graph/kg/query/search.js +158 -0
- package/dashboard/dist-server/src/graph/kg/query/search.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/query/traversal.d.ts +74 -0
- package/dashboard/dist-server/src/graph/kg/query/traversal.js +420 -0
- package/dashboard/dist-server/src/graph/kg/query/traversal.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/resolution/knowledge-resolver.d.ts +21 -0
- package/dashboard/dist-server/src/graph/kg/resolution/knowledge-resolver.js +288 -0
- package/dashboard/dist-server/src/graph/kg/resolution/knowledge-resolver.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/resolution/name-matcher.d.ts +24 -0
- package/dashboard/dist-server/src/graph/kg/resolution/name-matcher.js +162 -0
- package/dashboard/dist-server/src/graph/kg/resolution/name-matcher.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/surface/hook-injector.d.ts +32 -0
- package/dashboard/dist-server/src/graph/kg/surface/hook-injector.js +172 -0
- package/dashboard/dist-server/src/graph/kg/surface/hook-injector.js.map +1 -0
- package/dashboard/dist-server/src/graph/kg/surface/mcp-tools.d.ts +19 -0
- package/dashboard/dist-server/src/graph/kg/surface/mcp-tools.js +253 -0
- package/dashboard/dist-server/src/graph/kg/surface/mcp-tools.js.map +1 -0
- package/dashboard/dist-server/src/hooks/constants.d.ts +2 -0
- package/dashboard/dist-server/src/hooks/constants.js +12 -1
- package/dashboard/dist-server/src/hooks/constants.js.map +1 -1
- package/dashboard/dist-server/src/hooks/context-budget.d.ts +28 -0
- package/dashboard/dist-server/src/hooks/context-budget.js +142 -0
- package/dashboard/dist-server/src/hooks/context-budget.js.map +1 -0
- package/dashboard/dist-server/src/hooks/context-format.d.ts +45 -0
- package/dashboard/dist-server/src/hooks/context-format.js +58 -0
- package/dashboard/dist-server/src/hooks/context-format.js.map +1 -0
- package/dashboard/dist-server/src/hooks/coordinator-tracker.d.ts +100 -0
- package/dashboard/dist-server/src/hooks/coordinator-tracker.js +360 -0
- package/dashboard/dist-server/src/hooks/coordinator-tracker.js.map +1 -0
- package/dashboard/dist-server/src/hooks/delegate-monitor.d.ts +24 -0
- package/dashboard/dist-server/src/hooks/delegate-monitor.js +76 -0
- package/dashboard/dist-server/src/hooks/delegate-monitor.js.map +1 -0
- package/dashboard/dist-server/src/hooks/guards/preflight-guard.d.ts +28 -0
- package/dashboard/dist-server/src/hooks/guards/preflight-guard.js +95 -0
- package/dashboard/dist-server/src/hooks/guards/preflight-guard.js.map +1 -0
- package/dashboard/dist-server/src/hooks/guards/prompt-guard.d.ts +17 -0
- package/dashboard/dist-server/src/hooks/guards/prompt-guard.js +52 -0
- package/dashboard/dist-server/src/hooks/guards/prompt-guard.js.map +1 -0
- package/dashboard/dist-server/src/hooks/guards/spec-validator.d.ts +24 -0
- package/dashboard/dist-server/src/hooks/guards/spec-validator.js +66 -0
- package/dashboard/dist-server/src/hooks/guards/spec-validator.js.map +1 -0
- package/dashboard/dist-server/src/hooks/guards/workflow-guard.d.ts +35 -0
- package/dashboard/dist-server/src/hooks/guards/workflow-guard.js +107 -0
- package/dashboard/dist-server/src/hooks/guards/workflow-guard.js.map +1 -0
- package/dashboard/dist-server/src/hooks/keyword-spec-injector.d.ts +26 -0
- package/dashboard/dist-server/src/hooks/keyword-spec-injector.js +353 -0
- package/dashboard/dist-server/src/hooks/keyword-spec-injector.js.map +1 -0
- package/dashboard/dist-server/src/hooks/kg-auto-init.d.ts +12 -0
- package/dashboard/dist-server/src/hooks/kg-auto-init.js +38 -0
- package/dashboard/dist-server/src/hooks/kg-auto-init.js.map +1 -0
- package/dashboard/dist-server/src/hooks/kg-context-injector.d.ts +16 -0
- package/dashboard/dist-server/src/hooks/kg-context-injector.js +134 -0
- package/dashboard/dist-server/src/hooks/kg-context-injector.js.map +1 -0
- package/dashboard/dist-server/src/hooks/kg-sync-hook.d.ts +13 -0
- package/dashboard/dist-server/src/hooks/kg-sync-hook.js +70 -0
- package/dashboard/dist-server/src/hooks/kg-sync-hook.js.map +1 -0
- package/dashboard/dist-server/src/hooks/preflight-core.d.ts +36 -0
- package/dashboard/dist-server/src/hooks/preflight-core.js +86 -0
- package/dashboard/dist-server/src/hooks/preflight-core.js.map +1 -0
- package/dashboard/dist-server/src/hooks/session-context.d.ts +24 -0
- package/dashboard/dist-server/src/hooks/session-context.js +147 -0
- package/dashboard/dist-server/src/hooks/session-context.js.map +1 -0
- package/dashboard/dist-server/src/hooks/skill-context.d.ts +51 -0
- package/dashboard/dist-server/src/hooks/skill-context.js +520 -0
- package/dashboard/dist-server/src/hooks/skill-context.js.map +1 -0
- package/dashboard/dist-server/src/hooks/spec-analytics.d.ts +128 -0
- package/dashboard/dist-server/src/hooks/spec-analytics.js +309 -0
- package/dashboard/dist-server/src/hooks/spec-analytics.js.map +1 -0
- package/dashboard/dist-server/src/hooks/spec-bridge.d.ts +39 -0
- package/dashboard/dist-server/src/hooks/spec-bridge.js +97 -0
- package/dashboard/dist-server/src/hooks/spec-bridge.js.map +1 -0
- package/dashboard/dist-server/src/hooks/spec-injector.d.ts +28 -0
- package/dashboard/dist-server/src/hooks/spec-injector.js +364 -0
- package/dashboard/dist-server/src/hooks/spec-injector.js.map +1 -0
- package/dashboard/dist-server/src/hooks/team-monitor.d.ts +33 -0
- package/dashboard/dist-server/src/hooks/team-monitor.js +149 -0
- package/dashboard/dist-server/src/hooks/team-monitor.js.map +1 -0
- package/dashboard/dist-server/src/hooks/wiki-role-loader.d.ts +17 -0
- package/dashboard/dist-server/src/hooks/wiki-role-loader.js +43 -0
- package/dashboard/dist-server/src/hooks/wiki-role-loader.js.map +1 -0
- package/dashboard/dist-server/src/hooks/workspace.d.ts +33 -0
- package/dashboard/dist-server/src/hooks/workspace.js +69 -0
- package/dashboard/dist-server/src/hooks/workspace.js.map +1 -0
- package/dashboard/dist-server/src/tools/domain-loader.d.ts +62 -0
- package/dashboard/dist-server/src/tools/domain-loader.js +295 -0
- package/dashboard/dist-server/src/tools/domain-loader.js.map +1 -0
- package/dashboard/dist-server/src/tools/domain-matcher.d.ts +23 -0
- package/dashboard/dist-server/src/tools/domain-matcher.js +117 -0
- package/dashboard/dist-server/src/tools/domain-matcher.js.map +1 -0
- package/dashboard/dist-server/src/tools/domain-schema.d.ts +17 -0
- package/dashboard/dist-server/src/tools/domain-schema.js +104 -0
- package/dashboard/dist-server/src/tools/domain-schema.js.map +1 -0
- package/dashboard/dist-server/src/tools/namespace-guard.d.ts +38 -0
- package/dashboard/dist-server/src/tools/namespace-guard.js +138 -0
- package/dashboard/dist-server/src/tools/namespace-guard.js.map +1 -0
- package/dashboard/dist-server/src/tools/spec-entry-parser.d.ts +4 -2
- package/dashboard/dist-server/src/tools/spec-entry-parser.js +9 -5
- package/dashboard/dist-server/src/tools/spec-entry-parser.js.map +1 -1
- package/dashboard/dist-server/src/tools/spec-keyword-index.d.ts +29 -0
- package/dashboard/dist-server/src/tools/spec-keyword-index.js +118 -0
- package/dashboard/dist-server/src/tools/spec-keyword-index.js.map +1 -0
- package/dashboard/dist-server/src/tools/spec-loader.d.ts +26 -1
- package/dashboard/dist-server/src/tools/spec-loader.js +113 -28
- package/dashboard/dist-server/src/tools/spec-loader.js.map +1 -1
- package/dashboard/dist-server/src/tools/spec-seeds.d.ts +32 -0
- package/dashboard/dist-server/src/tools/spec-seeds.js +200 -0
- package/dashboard/dist-server/src/tools/spec-seeds.js.map +1 -0
- package/dashboard/dist-server/src/tools/team-activity.d.ts +75 -0
- package/dashboard/dist-server/src/tools/team-activity.js +181 -0
- package/dashboard/dist-server/src/tools/team-activity.js.map +1 -0
- package/dashboard/dist-server/src/tools/team-members.d.ts +111 -0
- package/dashboard/dist-server/src/tools/team-members.js +303 -0
- package/dashboard/dist-server/src/tools/team-members.js.map +1 -0
- package/dashboard/dist-server/src/utils/cooldown-guard.d.ts +16 -0
- package/dashboard/dist-server/src/utils/cooldown-guard.js +59 -0
- package/dashboard/dist-server/src/utils/cooldown-guard.js.map +1 -0
- package/dashboard/dist-server/src/utils/jsonl-log.d.ts +62 -0
- package/dashboard/dist-server/src/utils/jsonl-log.js +199 -0
- package/dashboard/dist-server/src/utils/jsonl-log.js.map +1 -0
- package/dashboard/dist-server/src/utils/path-validator.d.ts +51 -0
- package/dashboard/dist-server/src/utils/path-validator.js +151 -0
- package/dashboard/dist-server/src/utils/path-validator.js.map +1 -0
- package/dist/src/commands/install-backend.d.ts +4 -2
- package/dist/src/commands/install-backend.d.ts.map +1 -1
- package/dist/src/commands/install-backend.js +24 -3
- package/dist/src/commands/install-backend.js.map +1 -1
- package/dist/src/commands/install.d.ts.map +1 -1
- package/dist/src/commands/install.js +79 -0
- package/dist/src/commands/install.js.map +1 -1
- package/dist/src/core/component-defs.d.ts +12 -0
- package/dist/src/core/component-defs.d.ts.map +1 -1
- package/dist/src/core/component-defs.js +167 -4
- package/dist/src/core/component-defs.js.map +1 -1
- package/dist/src/core/install-executor.d.ts.map +1 -1
- package/dist/src/core/install-executor.js +4 -1
- package/dist/src/core/install-executor.js.map +1 -1
- package/dist/src/core/manifest.d.ts +3 -0
- package/dist/src/core/manifest.d.ts.map +1 -1
- package/dist/src/core/manifest.js +2 -2
- package/dist/src/core/manifest.js.map +1 -1
- package/dist/src/core/toggle.d.ts +13 -0
- package/dist/src/core/toggle.d.ts.map +1 -0
- package/dist/src/core/toggle.js +159 -0
- package/dist/src/core/toggle.js.map +1 -0
- package/dist/src/graph/kg/extraction/code/code-extractor.d.ts +12 -4
- package/dist/src/graph/kg/extraction/code/code-extractor.d.ts.map +1 -1
- package/dist/src/graph/kg/extraction/code/code-extractor.js +200 -135
- package/dist/src/graph/kg/extraction/code/code-extractor.js.map +1 -1
- package/dist/src/graph/kg/extraction/code/parse-worker.d.ts +2 -0
- package/dist/src/graph/kg/extraction/code/parse-worker.d.ts.map +1 -0
- package/dist/src/graph/kg/extraction/code/parse-worker.js +50 -0
- package/dist/src/graph/kg/extraction/code/parse-worker.js.map +1 -0
- package/dist/src/graph/kg/extraction/code/plugin-engine.d.ts +5 -1
- package/dist/src/graph/kg/extraction/code/plugin-engine.d.ts.map +1 -1
- package/dist/src/graph/kg/extraction/code/plugin-engine.js +85 -24
- package/dist/src/graph/kg/extraction/code/plugin-engine.js.map +1 -1
- package/dist/src/graph/kg/extraction/code/scan-scope.d.ts +15 -0
- package/dist/src/graph/kg/extraction/code/scan-scope.d.ts.map +1 -0
- package/dist/src/graph/kg/extraction/code/scan-scope.js +93 -0
- package/dist/src/graph/kg/extraction/code/scan-scope.js.map +1 -0
- package/dist/src/graph/kg/extraction/code/svelte-extractor.d.ts.map +1 -1
- package/dist/src/graph/kg/extraction/code/svelte-extractor.js +17 -12
- package/dist/src/graph/kg/extraction/code/svelte-extractor.js.map +1 -1
- package/dist/src/graph/kg/extraction/code/vue-extractor.d.ts.map +1 -1
- package/dist/src/graph/kg/extraction/code/vue-extractor.js +15 -10
- package/dist/src/graph/kg/extraction/code/vue-extractor.js.map +1 -1
- package/dist/src/graph/kg/extraction/code/wasm-runtime-flags.d.ts +4 -0
- package/dist/src/graph/kg/extraction/code/wasm-runtime-flags.d.ts.map +1 -0
- package/dist/src/graph/kg/extraction/code/wasm-runtime-flags.js +13 -0
- package/dist/src/graph/kg/extraction/code/wasm-runtime-flags.js.map +1 -0
- package/dist/src/graph/kg/extraction/code/wasm-stability.js +2 -2
- package/dist/src/graph/kg/extraction/code/wasm-stability.js.map +1 -1
- package/dist/src/graph/kg/extraction/code/worker-parser.d.ts +19 -0
- package/dist/src/graph/kg/extraction/code/worker-parser.d.ts.map +1 -0
- package/dist/src/graph/kg/extraction/code/worker-parser.js +117 -0
- package/dist/src/graph/kg/extraction/code/worker-parser.js.map +1 -0
- package/dist/src/graph/kg/extraction/orchestrator.d.ts +10 -0
- package/dist/src/graph/kg/extraction/orchestrator.d.ts.map +1 -1
- package/dist/src/graph/kg/extraction/orchestrator.js +48 -27
- package/dist/src/graph/kg/extraction/orchestrator.js.map +1 -1
- package/dist/src/graph/kg/index.d.ts +3 -1
- package/dist/src/graph/kg/index.d.ts.map +1 -1
- package/dist/src/graph/kg/index.js +3 -1
- package/dist/src/graph/kg/index.js.map +1 -1
- package/dist/src/graph/kg/surface/cli.d.ts.map +1 -1
- package/dist/src/graph/kg/surface/cli.js +48 -2
- package/dist/src/graph/kg/surface/cli.js.map +1 -1
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/tui/install-ui/ComponentGrid.d.ts +0 -4
- package/dist/src/tui/install-ui/ComponentGrid.d.ts.map +1 -1
- package/dist/src/tui/install-ui/ComponentGrid.js +87 -15
- package/dist/src/tui/install-ui/ComponentGrid.js.map +1 -1
- package/dist/src/tui/install-ui/ExecutionView.d.ts.map +1 -1
- package/dist/src/tui/install-ui/ExecutionView.js +8 -2
- package/dist/src/tui/install-ui/ExecutionView.js.map +1 -1
- package/dist/src/tui/install-ui/GroupedHub.js +1 -1
- package/dist/src/tui/install-ui/GroupedHub.js.map +1 -1
- package/dist/src/tui/install-ui/ToggleView.d.ts +9 -0
- package/dist/src/tui/install-ui/ToggleView.d.ts.map +1 -0
- package/dist/src/tui/install-ui/ToggleView.js +136 -0
- package/dist/src/tui/install-ui/ToggleView.js.map +1 -0
- package/dist/src/tui/install-ui/useInstallFlowState.d.ts.map +1 -1
- package/dist/src/tui/install-ui/useInstallFlowState.js +3 -3
- package/dist/src/tui/install-ui/useInstallFlowState.js.map +1 -1
- package/dist/src/utils/update-notices.js +12 -0
- package/dist/src/utils/update-notices.js.map +1 -1
- package/dist/src/utils/wasm-relaunch.d.ts +5 -0
- package/dist/src/utils/wasm-relaunch.d.ts.map +1 -0
- package/dist/src/utils/wasm-relaunch.js +29 -0
- package/dist/src/utils/wasm-relaunch.js.map +1 -0
- package/package.json +2 -1
- package/workflows/claude-instructions.md +0 -1
- package/workflows/codex-instructions.md +1 -1
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Human-team activity log (team-lite collaboration, Wave 2).
|
|
3
|
+
*
|
|
4
|
+
* Owns `.workflow/collab/activity.jsonl` — append-only activity bus shared
|
|
5
|
+
* across a small human team. Each entry records "who did what, when, where".
|
|
6
|
+
*
|
|
7
|
+
* Strict namespace separation: this module belongs to the HUMAN collaboration
|
|
8
|
+
* domain (`.workflow/collab/`) and must NEVER touch `.workflow/.team/` which
|
|
9
|
+
* is the agent pipeline message bus owned by `src/tools/team-msg.ts`.
|
|
10
|
+
*
|
|
11
|
+
* Hot-path contract: `reportActivity` is called from PostToolUse hooks and
|
|
12
|
+
* must NEVER throw. The underlying `appendLine` from `src/utils/jsonl-log.ts`
|
|
13
|
+
* already swallows errors; we rely on that and add best-effort wrappers.
|
|
14
|
+
*/
|
|
15
|
+
import { existsSync, readFileSync } from 'node:fs';
|
|
16
|
+
import { join } from 'node:path';
|
|
17
|
+
import { getProjectRoot } from '../utils/path-validator.js';
|
|
18
|
+
import { appendLine, tailLast, rotateIfLarge } from '../utils/jsonl-log.js';
|
|
19
|
+
// Max lines read from the tail for recent-activity queries. Cap matches
|
|
20
|
+
// the preflight algorithm described in docs/team-lite-design.md (section
|
|
21
|
+
// "耦合 3"): 500 lines is plenty for a ±35 min window on a small team.
|
|
22
|
+
const RECENT_READ_LIMIT = 500;
|
|
23
|
+
// Clock tolerance (minutes): include events slightly older than the window
|
|
24
|
+
// edge to account for cross-machine clock drift. Matches design doc.
|
|
25
|
+
const CLOCK_TOLERANCE_MIN = 5;
|
|
26
|
+
// Default rotation threshold: 10 MB.
|
|
27
|
+
const DEFAULT_ROTATE_BYTES = 10 * 1024 * 1024;
|
|
28
|
+
// ---------------------------------------------------------------------------
|
|
29
|
+
// Path helpers
|
|
30
|
+
// ---------------------------------------------------------------------------
|
|
31
|
+
/** Absolute path to the current activity log. */
|
|
32
|
+
export function getActivityLogPath() {
|
|
33
|
+
return join(getProjectRoot(), '.workflow', 'collab', 'activity.jsonl');
|
|
34
|
+
}
|
|
35
|
+
/** Absolute path to the activity archive directory. */
|
|
36
|
+
export function getArchiveDir() {
|
|
37
|
+
return join(getProjectRoot(), '.workflow', 'collab', 'activity-archives');
|
|
38
|
+
}
|
|
39
|
+
function getStateJsonPath() {
|
|
40
|
+
return join(getProjectRoot(), '.workflow', 'state.json');
|
|
41
|
+
}
|
|
42
|
+
// ---------------------------------------------------------------------------
|
|
43
|
+
// Write path
|
|
44
|
+
// ---------------------------------------------------------------------------
|
|
45
|
+
/**
|
|
46
|
+
* Append an activity event to the shared log.
|
|
47
|
+
*
|
|
48
|
+
* - `ts` is auto-filled to `new Date().toISOString()` if omitted.
|
|
49
|
+
* - Silently no-ops on any error — this is called from hot paths.
|
|
50
|
+
*/
|
|
51
|
+
export function reportActivity(evt) {
|
|
52
|
+
try {
|
|
53
|
+
const full = {
|
|
54
|
+
ts: evt.ts ?? new Date().toISOString(),
|
|
55
|
+
user: evt.user,
|
|
56
|
+
host: evt.host,
|
|
57
|
+
action: evt.action,
|
|
58
|
+
...(evt.phase_id !== undefined ? { phase_id: evt.phase_id } : {}),
|
|
59
|
+
...(evt.task_id !== undefined ? { task_id: evt.task_id } : {}),
|
|
60
|
+
...(evt.target !== undefined ? { target: evt.target } : {}),
|
|
61
|
+
};
|
|
62
|
+
appendLine(getActivityLogPath(), full);
|
|
63
|
+
}
|
|
64
|
+
catch {
|
|
65
|
+
// Hot path — never throw.
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
// ---------------------------------------------------------------------------
|
|
69
|
+
// Read path
|
|
70
|
+
// ---------------------------------------------------------------------------
|
|
71
|
+
/**
|
|
72
|
+
* Return activity events from the last `windowMinutes` minutes.
|
|
73
|
+
*
|
|
74
|
+
* Algorithm (matches docs/team-lite-design.md section "耦合 3"):
|
|
75
|
+
* 1. Tail the last 500 lines of activity.jsonl.
|
|
76
|
+
* 2. Drop malformed entries (`tailLast` already does this).
|
|
77
|
+
* 3. Keep events with `ts >= now - (windowMinutes + CLOCK_TOLERANCE_MIN)`
|
|
78
|
+
* to absorb cross-machine clock drift.
|
|
79
|
+
*
|
|
80
|
+
* Results are returned in the natural tail order (oldest -> newest), which
|
|
81
|
+
* is what `team status` wants for grouping by user.
|
|
82
|
+
*/
|
|
83
|
+
export function readRecentActivity(windowMinutes) {
|
|
84
|
+
if (windowMinutes <= 0)
|
|
85
|
+
return [];
|
|
86
|
+
const entries = tailLast(getActivityLogPath(), RECENT_READ_LIMIT);
|
|
87
|
+
if (entries.length === 0)
|
|
88
|
+
return [];
|
|
89
|
+
const cutoff = Date.now() - (windowMinutes + CLOCK_TOLERANCE_MIN) * 60 * 1000;
|
|
90
|
+
const out = [];
|
|
91
|
+
for (const e of entries) {
|
|
92
|
+
if (!e || typeof e.ts !== 'string')
|
|
93
|
+
continue;
|
|
94
|
+
const t = Date.parse(e.ts);
|
|
95
|
+
if (Number.isNaN(t))
|
|
96
|
+
continue;
|
|
97
|
+
if (t >= cutoff)
|
|
98
|
+
out.push(e);
|
|
99
|
+
}
|
|
100
|
+
return out;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Read the current workflow context from `.workflow/state.json`.
|
|
104
|
+
*
|
|
105
|
+
* Returns:
|
|
106
|
+
* - `phase_id` from `current_phase` (if present & numeric)
|
|
107
|
+
* - `task_id` from `current_task_id` (if present & string)
|
|
108
|
+
*
|
|
109
|
+
* Both fields are optional. Missing state file, parse errors, or missing
|
|
110
|
+
* fields return `{}` — callers tag activity events with whatever is known.
|
|
111
|
+
*
|
|
112
|
+
* Note: `current_task_id` depends on P0.1 which may not be landed yet.
|
|
113
|
+
*/
|
|
114
|
+
export function readWorkflowContext() {
|
|
115
|
+
const statePath = getStateJsonPath();
|
|
116
|
+
if (!existsSync(statePath))
|
|
117
|
+
return {};
|
|
118
|
+
let raw;
|
|
119
|
+
try {
|
|
120
|
+
raw = readFileSync(statePath, 'utf-8');
|
|
121
|
+
}
|
|
122
|
+
catch {
|
|
123
|
+
return {};
|
|
124
|
+
}
|
|
125
|
+
let parsed;
|
|
126
|
+
try {
|
|
127
|
+
parsed = JSON.parse(raw);
|
|
128
|
+
}
|
|
129
|
+
catch {
|
|
130
|
+
return {};
|
|
131
|
+
}
|
|
132
|
+
if (!parsed || typeof parsed !== 'object')
|
|
133
|
+
return {};
|
|
134
|
+
const obj = parsed;
|
|
135
|
+
const out = {};
|
|
136
|
+
if (typeof obj.current_phase === 'number') {
|
|
137
|
+
out.phase_id = obj.current_phase;
|
|
138
|
+
}
|
|
139
|
+
else if (Array.isArray(obj.artifacts) && Array.isArray(obj.milestones)) {
|
|
140
|
+
// v2: derive current phase from artifact registry
|
|
141
|
+
const milestone = obj.milestones
|
|
142
|
+
.find(m => m.name === obj.current_milestone || m.id === obj.current_milestone);
|
|
143
|
+
if (milestone?.phases?.length) {
|
|
144
|
+
const arts = obj.artifacts;
|
|
145
|
+
for (const p of milestone.phases) {
|
|
146
|
+
if (arts.some(a => a.phase === p && a.milestone === obj.current_milestone && a.status === 'in_progress')) {
|
|
147
|
+
out.phase_id = p;
|
|
148
|
+
break;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
if (out.phase_id == null) {
|
|
152
|
+
for (const p of milestone.phases) {
|
|
153
|
+
if (!arts.some(a => a.type === 'execute' && a.phase === p && a.milestone === obj.current_milestone && a.status === 'completed')) {
|
|
154
|
+
out.phase_id = p;
|
|
155
|
+
break;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
if (typeof obj.current_task_id === 'string' && obj.current_task_id) {
|
|
162
|
+
out.task_id = obj.current_task_id;
|
|
163
|
+
}
|
|
164
|
+
return out;
|
|
165
|
+
}
|
|
166
|
+
// ---------------------------------------------------------------------------
|
|
167
|
+
// Maintenance
|
|
168
|
+
// ---------------------------------------------------------------------------
|
|
169
|
+
/**
|
|
170
|
+
* Rotate the activity log if it exceeds `maxBytes`.
|
|
171
|
+
*
|
|
172
|
+
* Delegates to `rotateIfLarge` in `src/utils/jsonl-log.ts`, which moves the
|
|
173
|
+
* file to `.workflow/collab/activity-archives/activity-{YYYY}W{WW}.jsonl`.
|
|
174
|
+
*
|
|
175
|
+
* Returns the archive path on success, or `null` if rotation did not run
|
|
176
|
+
* (file missing, below threshold, or I/O error).
|
|
177
|
+
*/
|
|
178
|
+
export function rotateIfNeeded(maxBytes = DEFAULT_ROTATE_BYTES) {
|
|
179
|
+
return rotateIfLarge(getActivityLogPath(), maxBytes, getArchiveDir());
|
|
180
|
+
}
|
|
181
|
+
//# sourceMappingURL=team-activity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"team-activity.js","sourceRoot":"","sources":["../../../../src/tools/team-activity.ts"],"names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;;;GAQG;AACH,MAAM,UAAU,cAAc,CAAC,WAAmB,oBAAoB;IACpE,OAAO,aAAa,CAAC,kBAAkB,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAC,CAAC;AACxE,CAAC"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Human-team member registry (team-lite collaboration, Wave 2).
|
|
3
|
+
*
|
|
4
|
+
* Owns `.workflow/collab/members/{uid}.json` — per-file member records.
|
|
5
|
+
*
|
|
6
|
+
* Strict namespace separation: this module belongs to the HUMAN collaboration
|
|
7
|
+
* domain (`.workflow/collab/`). It must NEVER touch `.workflow/.team/` which
|
|
8
|
+
* is the agent pipeline message bus owned by `src/tools/team-msg.ts`.
|
|
9
|
+
*
|
|
10
|
+
* Per-file layout is deliberate: each member writes their own JSON file so
|
|
11
|
+
* two concurrent `maestro team join` on different machines never collide on
|
|
12
|
+
* git merge (vs. a single `members.json` which cannot `merge=union`).
|
|
13
|
+
*/
|
|
14
|
+
export type ProjectRole = string;
|
|
15
|
+
export interface MemberRecord {
|
|
16
|
+
uid: string;
|
|
17
|
+
name: string;
|
|
18
|
+
email: string;
|
|
19
|
+
host: string;
|
|
20
|
+
role: 'admin' | 'member';
|
|
21
|
+
joinedAt: string;
|
|
22
|
+
projectRoles?: ProjectRole[];
|
|
23
|
+
}
|
|
24
|
+
/** Absolute path to the human-collab members directory. */
|
|
25
|
+
export declare function getMembersDir(): string;
|
|
26
|
+
/**
|
|
27
|
+
* Resolve local git identity via `git config user.name` / `user.email`.
|
|
28
|
+
* Returns null if either is missing or git is unavailable.
|
|
29
|
+
*/
|
|
30
|
+
export declare function readGitIdentity(): {
|
|
31
|
+
name: string;
|
|
32
|
+
email: string;
|
|
33
|
+
} | null;
|
|
34
|
+
/**
|
|
35
|
+
* Derive a uid from an email address.
|
|
36
|
+
*
|
|
37
|
+
* Rule: take the local-part (before '@'), lowercase it.
|
|
38
|
+
* "Alice@Example.COM" -> "alice"
|
|
39
|
+
*
|
|
40
|
+
* Collision handling is NOT done here — callers must check `getMembersDir`
|
|
41
|
+
* and append `-2`, `-3`, ... as needed (see `joinTeam`).
|
|
42
|
+
*/
|
|
43
|
+
export declare function deriveUid(email: string): string;
|
|
44
|
+
/** Return the machine hostname. Exported so tests can stub if needed. */
|
|
45
|
+
export declare function getHost(): string;
|
|
46
|
+
/**
|
|
47
|
+
* List all known members. Returns an empty array if the directory does not
|
|
48
|
+
* exist yet. Files that fail to parse as `MemberRecord` JSON are skipped
|
|
49
|
+
* silently — corrupt files should not break `whoami` / `status`.
|
|
50
|
+
*/
|
|
51
|
+
export declare function listMembers(): MemberRecord[];
|
|
52
|
+
/** Read a single member by uid, or null if the file does not exist. */
|
|
53
|
+
export declare function getMemberByUid(uid: string): MemberRecord | null;
|
|
54
|
+
/**
|
|
55
|
+
* Return the member record matching the current git identity.
|
|
56
|
+
*
|
|
57
|
+
* Matching uses `email` (case-insensitive), NOT just `uid`, so two users who
|
|
58
|
+
* happened to get the same local-part on different domains still resolve to
|
|
59
|
+
* their own record.
|
|
60
|
+
*
|
|
61
|
+
* Returns null if git identity is unavailable or no record matches.
|
|
62
|
+
*/
|
|
63
|
+
export declare function resolveSelf(): MemberRecord | null;
|
|
64
|
+
/**
|
|
65
|
+
* Assert that team mode is active (i.e. the current git user has a member
|
|
66
|
+
* record). Throws a descriptive error if `resolveSelf()` returns null.
|
|
67
|
+
*
|
|
68
|
+
* Returns the resolved `MemberRecord` for convenience so callers can chain:
|
|
69
|
+
* const self = requireTeamMode();
|
|
70
|
+
*/
|
|
71
|
+
export declare function requireTeamMode(): MemberRecord;
|
|
72
|
+
/**
|
|
73
|
+
* Assert the current user holds the given role. Calls `resolveSelf()`
|
|
74
|
+
* internally, so it also fails when team mode is off.
|
|
75
|
+
*
|
|
76
|
+
* Throws with a message like:
|
|
77
|
+
* "This operation requires admin role. Your role: member"
|
|
78
|
+
*/
|
|
79
|
+
export declare function requireRole(required: 'admin' | 'member'): MemberRecord;
|
|
80
|
+
/**
|
|
81
|
+
* Join the team. Idempotent.
|
|
82
|
+
*
|
|
83
|
+
* Flow:
|
|
84
|
+
* 1. Read git identity (throws if name/email missing — cannot join without it).
|
|
85
|
+
* 2. If a record with the same email already exists, return it unchanged
|
|
86
|
+
* (preserves `joinedAt` and any prior `role`).
|
|
87
|
+
* 3. Derive uid from email local-part. If another member with a different
|
|
88
|
+
* email already owns that uid, append `-2`, `-3`, ... until free.
|
|
89
|
+
* 4. Assign role: explicit `opts.role` wins; otherwise the very first member
|
|
90
|
+
* to join becomes `admin`, everyone after is `member`.
|
|
91
|
+
* 5. Write `.workflow/collab/members/{uid}.json` atomically via `writeFileSync`.
|
|
92
|
+
*/
|
|
93
|
+
export declare function joinTeam(opts?: {
|
|
94
|
+
role?: 'admin' | 'member';
|
|
95
|
+
}): MemberRecord;
|
|
96
|
+
/**
|
|
97
|
+
* Add a project role to a member's record. Idempotent — adding a role that
|
|
98
|
+
* already exists is a no-op. Returns the updated record, or null if the
|
|
99
|
+
* member was not found.
|
|
100
|
+
*/
|
|
101
|
+
export declare function addProjectRole(uid: string, role: string): MemberRecord | null;
|
|
102
|
+
/**
|
|
103
|
+
* Remove a project role from a member's record. No-op if the role is not
|
|
104
|
+
* present. Returns the updated record, or null if the member was not found.
|
|
105
|
+
*/
|
|
106
|
+
export declare function removeProjectRole(uid: string, role: string): MemberRecord | null;
|
|
107
|
+
/**
|
|
108
|
+
* List project roles. When `uid` is provided, returns that member's roles
|
|
109
|
+
* (or an empty array). When omitted, returns a Map of all members' roles.
|
|
110
|
+
*/
|
|
111
|
+
export declare function listProjectRoles(uid?: string): ProjectRole[] | Map<string, ProjectRole[]>;
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Human-team member registry (team-lite collaboration, Wave 2).
|
|
3
|
+
*
|
|
4
|
+
* Owns `.workflow/collab/members/{uid}.json` — per-file member records.
|
|
5
|
+
*
|
|
6
|
+
* Strict namespace separation: this module belongs to the HUMAN collaboration
|
|
7
|
+
* domain (`.workflow/collab/`). It must NEVER touch `.workflow/.team/` which
|
|
8
|
+
* is the agent pipeline message bus owned by `src/tools/team-msg.ts`.
|
|
9
|
+
*
|
|
10
|
+
* Per-file layout is deliberate: each member writes their own JSON file so
|
|
11
|
+
* two concurrent `maestro team join` on different machines never collide on
|
|
12
|
+
* git merge (vs. a single `members.json` which cannot `merge=union`).
|
|
13
|
+
*/
|
|
14
|
+
import { existsSync, mkdirSync, readFileSync, readdirSync, writeFileSync, } from 'node:fs';
|
|
15
|
+
import { join } from 'node:path';
|
|
16
|
+
import { hostname } from 'node:os';
|
|
17
|
+
import { execSync } from 'node:child_process';
|
|
18
|
+
import { getProjectRoot } from '../utils/path-validator.js';
|
|
19
|
+
// ---------------------------------------------------------------------------
|
|
20
|
+
// Path helpers
|
|
21
|
+
// ---------------------------------------------------------------------------
|
|
22
|
+
/** Absolute path to the human-collab members directory. */
|
|
23
|
+
export function getMembersDir() {
|
|
24
|
+
return join(getProjectRoot(), '.workflow', 'collab', 'members');
|
|
25
|
+
}
|
|
26
|
+
function getMemberFilePath(uid) {
|
|
27
|
+
return join(getMembersDir(), `${uid}.json`);
|
|
28
|
+
}
|
|
29
|
+
// ---------------------------------------------------------------------------
|
|
30
|
+
// Identity helpers
|
|
31
|
+
// ---------------------------------------------------------------------------
|
|
32
|
+
/**
|
|
33
|
+
* Resolve local git identity via `git config user.name` / `user.email`.
|
|
34
|
+
* Returns null if either is missing or git is unavailable.
|
|
35
|
+
*/
|
|
36
|
+
export function readGitIdentity() {
|
|
37
|
+
const name = tryGitConfig('user.name');
|
|
38
|
+
const email = tryGitConfig('user.email');
|
|
39
|
+
if (!name || !email)
|
|
40
|
+
return null;
|
|
41
|
+
return { name, email };
|
|
42
|
+
}
|
|
43
|
+
function tryGitConfig(key) {
|
|
44
|
+
try {
|
|
45
|
+
const out = execSync(`git config ${key}`, {
|
|
46
|
+
encoding: 'utf-8',
|
|
47
|
+
stdio: ['ignore', 'pipe', 'ignore'],
|
|
48
|
+
}).trim();
|
|
49
|
+
return out || null;
|
|
50
|
+
}
|
|
51
|
+
catch {
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Derive a uid from an email address.
|
|
57
|
+
*
|
|
58
|
+
* Rule: take the local-part (before '@'), lowercase it.
|
|
59
|
+
* "Alice@Example.COM" -> "alice"
|
|
60
|
+
*
|
|
61
|
+
* Collision handling is NOT done here — callers must check `getMembersDir`
|
|
62
|
+
* and append `-2`, `-3`, ... as needed (see `joinTeam`).
|
|
63
|
+
*/
|
|
64
|
+
export function deriveUid(email) {
|
|
65
|
+
const at = email.indexOf('@');
|
|
66
|
+
const local = at >= 0 ? email.slice(0, at) : email;
|
|
67
|
+
return local.trim().toLowerCase();
|
|
68
|
+
}
|
|
69
|
+
/** Return the machine hostname. Exported so tests can stub if needed. */
|
|
70
|
+
export function getHost() {
|
|
71
|
+
return hostname();
|
|
72
|
+
}
|
|
73
|
+
// ---------------------------------------------------------------------------
|
|
74
|
+
// Reads
|
|
75
|
+
// ---------------------------------------------------------------------------
|
|
76
|
+
/**
|
|
77
|
+
* List all known members. Returns an empty array if the directory does not
|
|
78
|
+
* exist yet. Files that fail to parse as `MemberRecord` JSON are skipped
|
|
79
|
+
* silently — corrupt files should not break `whoami` / `status`.
|
|
80
|
+
*/
|
|
81
|
+
export function listMembers() {
|
|
82
|
+
const dir = getMembersDir();
|
|
83
|
+
if (!existsSync(dir))
|
|
84
|
+
return [];
|
|
85
|
+
let entries;
|
|
86
|
+
try {
|
|
87
|
+
entries = readdirSync(dir);
|
|
88
|
+
}
|
|
89
|
+
catch {
|
|
90
|
+
return [];
|
|
91
|
+
}
|
|
92
|
+
const out = [];
|
|
93
|
+
for (const entry of entries) {
|
|
94
|
+
if (!entry.endsWith('.json'))
|
|
95
|
+
continue;
|
|
96
|
+
const rec = readMemberFile(join(dir, entry));
|
|
97
|
+
if (rec)
|
|
98
|
+
out.push(rec);
|
|
99
|
+
}
|
|
100
|
+
return out;
|
|
101
|
+
}
|
|
102
|
+
/** Read a single member by uid, or null if the file does not exist. */
|
|
103
|
+
export function getMemberByUid(uid) {
|
|
104
|
+
const path = getMemberFilePath(uid);
|
|
105
|
+
if (!existsSync(path))
|
|
106
|
+
return null;
|
|
107
|
+
return readMemberFile(path);
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Return the member record matching the current git identity.
|
|
111
|
+
*
|
|
112
|
+
* Matching uses `email` (case-insensitive), NOT just `uid`, so two users who
|
|
113
|
+
* happened to get the same local-part on different domains still resolve to
|
|
114
|
+
* their own record.
|
|
115
|
+
*
|
|
116
|
+
* Returns null if git identity is unavailable or no record matches.
|
|
117
|
+
*/
|
|
118
|
+
export function resolveSelf() {
|
|
119
|
+
const ident = readGitIdentity();
|
|
120
|
+
if (!ident)
|
|
121
|
+
return null;
|
|
122
|
+
const target = ident.email.toLowerCase();
|
|
123
|
+
for (const m of listMembers()) {
|
|
124
|
+
if (m.email.toLowerCase() === target)
|
|
125
|
+
return m;
|
|
126
|
+
}
|
|
127
|
+
return null;
|
|
128
|
+
}
|
|
129
|
+
// ---------------------------------------------------------------------------
|
|
130
|
+
// Guards
|
|
131
|
+
// ---------------------------------------------------------------------------
|
|
132
|
+
/**
|
|
133
|
+
* Assert that team mode is active (i.e. the current git user has a member
|
|
134
|
+
* record). Throws a descriptive error if `resolveSelf()` returns null.
|
|
135
|
+
*
|
|
136
|
+
* Returns the resolved `MemberRecord` for convenience so callers can chain:
|
|
137
|
+
* const self = requireTeamMode();
|
|
138
|
+
*/
|
|
139
|
+
export function requireTeamMode() {
|
|
140
|
+
const self = resolveSelf();
|
|
141
|
+
if (!self) {
|
|
142
|
+
throw new Error("Team mode not enabled. Run 'maestro team join' first.");
|
|
143
|
+
}
|
|
144
|
+
return self;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Assert the current user holds the given role. Calls `resolveSelf()`
|
|
148
|
+
* internally, so it also fails when team mode is off.
|
|
149
|
+
*
|
|
150
|
+
* Throws with a message like:
|
|
151
|
+
* "This operation requires admin role. Your role: member"
|
|
152
|
+
*/
|
|
153
|
+
export function requireRole(required) {
|
|
154
|
+
const self = requireTeamMode();
|
|
155
|
+
if (self.role !== required) {
|
|
156
|
+
throw new Error(`This operation requires ${required} role. Your role: ${self.role}`);
|
|
157
|
+
}
|
|
158
|
+
return self;
|
|
159
|
+
}
|
|
160
|
+
// ---------------------------------------------------------------------------
|
|
161
|
+
// Writes
|
|
162
|
+
// ---------------------------------------------------------------------------
|
|
163
|
+
/**
|
|
164
|
+
* Join the team. Idempotent.
|
|
165
|
+
*
|
|
166
|
+
* Flow:
|
|
167
|
+
* 1. Read git identity (throws if name/email missing — cannot join without it).
|
|
168
|
+
* 2. If a record with the same email already exists, return it unchanged
|
|
169
|
+
* (preserves `joinedAt` and any prior `role`).
|
|
170
|
+
* 3. Derive uid from email local-part. If another member with a different
|
|
171
|
+
* email already owns that uid, append `-2`, `-3`, ... until free.
|
|
172
|
+
* 4. Assign role: explicit `opts.role` wins; otherwise the very first member
|
|
173
|
+
* to join becomes `admin`, everyone after is `member`.
|
|
174
|
+
* 5. Write `.workflow/collab/members/{uid}.json` atomically via `writeFileSync`.
|
|
175
|
+
*/
|
|
176
|
+
export function joinTeam(opts) {
|
|
177
|
+
const ident = readGitIdentity();
|
|
178
|
+
if (!ident) {
|
|
179
|
+
throw new Error('Git identity not configured. Run `git config user.name "Your Name"` and ' +
|
|
180
|
+
'`git config user.email "you@example.com"` before joining.');
|
|
181
|
+
}
|
|
182
|
+
// Idempotency: same email already registered -> return existing record.
|
|
183
|
+
const existing = resolveSelf();
|
|
184
|
+
if (existing)
|
|
185
|
+
return existing;
|
|
186
|
+
const dir = getMembersDir();
|
|
187
|
+
if (!existsSync(dir))
|
|
188
|
+
mkdirSync(dir, { recursive: true });
|
|
189
|
+
const base = deriveUid(ident.email);
|
|
190
|
+
const uid = allocateUid(base, ident.email);
|
|
191
|
+
// Role: explicit wins. Otherwise first-joiner is admin.
|
|
192
|
+
const role = opts?.role ?? (listMembers().length === 0 ? 'admin' : 'member');
|
|
193
|
+
const record = {
|
|
194
|
+
uid,
|
|
195
|
+
name: ident.name,
|
|
196
|
+
email: ident.email,
|
|
197
|
+
host: getHost(),
|
|
198
|
+
role,
|
|
199
|
+
joinedAt: new Date().toISOString(),
|
|
200
|
+
};
|
|
201
|
+
writeFileSync(getMemberFilePath(uid), JSON.stringify(record, null, 2), 'utf-8');
|
|
202
|
+
return record;
|
|
203
|
+
}
|
|
204
|
+
// ---------------------------------------------------------------------------
|
|
205
|
+
// Project roles
|
|
206
|
+
// ---------------------------------------------------------------------------
|
|
207
|
+
/**
|
|
208
|
+
* Add a project role to a member's record. Idempotent — adding a role that
|
|
209
|
+
* already exists is a no-op. Returns the updated record, or null if the
|
|
210
|
+
* member was not found.
|
|
211
|
+
*/
|
|
212
|
+
export function addProjectRole(uid, role) {
|
|
213
|
+
const member = getMemberByUid(uid);
|
|
214
|
+
if (!member)
|
|
215
|
+
return null;
|
|
216
|
+
const roles = member.projectRoles ?? [];
|
|
217
|
+
if (roles.includes(role))
|
|
218
|
+
return member; // already present
|
|
219
|
+
member.projectRoles = [...roles, role];
|
|
220
|
+
writeFileSync(getMemberFilePath(uid), JSON.stringify(member, null, 2), 'utf-8');
|
|
221
|
+
return member;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Remove a project role from a member's record. No-op if the role is not
|
|
225
|
+
* present. Returns the updated record, or null if the member was not found.
|
|
226
|
+
*/
|
|
227
|
+
export function removeProjectRole(uid, role) {
|
|
228
|
+
const member = getMemberByUid(uid);
|
|
229
|
+
if (!member)
|
|
230
|
+
return null;
|
|
231
|
+
const roles = member.projectRoles ?? [];
|
|
232
|
+
const filtered = roles.filter((r) => r !== role);
|
|
233
|
+
if (filtered.length === roles.length)
|
|
234
|
+
return member; // role was not present
|
|
235
|
+
member.projectRoles = filtered.length > 0 ? filtered : undefined;
|
|
236
|
+
writeFileSync(getMemberFilePath(uid), JSON.stringify(member, null, 2), 'utf-8');
|
|
237
|
+
return member;
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* List project roles. When `uid` is provided, returns that member's roles
|
|
241
|
+
* (or an empty array). When omitted, returns a Map of all members' roles.
|
|
242
|
+
*/
|
|
243
|
+
export function listProjectRoles(uid) {
|
|
244
|
+
if (uid !== undefined) {
|
|
245
|
+
const member = getMemberByUid(uid);
|
|
246
|
+
return member?.projectRoles ?? [];
|
|
247
|
+
}
|
|
248
|
+
const map = new Map();
|
|
249
|
+
for (const m of listMembers()) {
|
|
250
|
+
map.set(m.uid, m.projectRoles ?? []);
|
|
251
|
+
}
|
|
252
|
+
return map;
|
|
253
|
+
}
|
|
254
|
+
// ---------------------------------------------------------------------------
|
|
255
|
+
// Internals
|
|
256
|
+
// ---------------------------------------------------------------------------
|
|
257
|
+
function readMemberFile(path) {
|
|
258
|
+
try {
|
|
259
|
+
const raw = readFileSync(path, 'utf-8');
|
|
260
|
+
const parsed = JSON.parse(raw);
|
|
261
|
+
if (typeof parsed.uid === 'string' &&
|
|
262
|
+
typeof parsed.name === 'string' &&
|
|
263
|
+
typeof parsed.email === 'string' &&
|
|
264
|
+
typeof parsed.host === 'string' &&
|
|
265
|
+
(parsed.role === 'admin' || parsed.role === 'member') &&
|
|
266
|
+
typeof parsed.joinedAt === 'string') {
|
|
267
|
+
return parsed;
|
|
268
|
+
}
|
|
269
|
+
return null;
|
|
270
|
+
}
|
|
271
|
+
catch {
|
|
272
|
+
return null;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Allocate a free uid derived from `base`.
|
|
277
|
+
*
|
|
278
|
+
* - If `{base}.json` does not exist, use it.
|
|
279
|
+
* - If `{base}.json` exists AND belongs to the same email, reuse it
|
|
280
|
+
* (this path is normally caught earlier by `resolveSelf`, but we keep
|
|
281
|
+
* the safety net in case files got out of sync).
|
|
282
|
+
* - Otherwise try `{base}-2`, `{base}-3`, ... until a free slot is found.
|
|
283
|
+
*/
|
|
284
|
+
function allocateUid(base, email) {
|
|
285
|
+
const ownEmail = email.toLowerCase();
|
|
286
|
+
const firstPath = getMemberFilePath(base);
|
|
287
|
+
if (!existsSync(firstPath))
|
|
288
|
+
return base;
|
|
289
|
+
const existing = readMemberFile(firstPath);
|
|
290
|
+
if (existing && existing.email.toLowerCase() === ownEmail)
|
|
291
|
+
return base;
|
|
292
|
+
for (let n = 2; n < 1000; n++) {
|
|
293
|
+
const candidate = `${base}-${n}`;
|
|
294
|
+
const candidatePath = getMemberFilePath(candidate);
|
|
295
|
+
if (!existsSync(candidatePath))
|
|
296
|
+
return candidate;
|
|
297
|
+
const rec = readMemberFile(candidatePath);
|
|
298
|
+
if (rec && rec.email.toLowerCase() === ownEmail)
|
|
299
|
+
return candidate;
|
|
300
|
+
}
|
|
301
|
+
throw new Error(`Could not allocate uid for email ${email} after 1000 attempts`);
|
|
302
|
+
}
|
|
303
|
+
//# sourceMappingURL=team-members.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"team-members.js","sourceRoot":"","sources":["../../../../src/tools/team-members.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EACL,UAAU,EACV,SAAS,EACT,YAAY,EACZ,WAAW,EACX,aAAa,GACd,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAc5D,8EAA8E;AAC9E,eAAe;AACf,8EAA8E;AAE9E,2DAA2D;AAC3D,MAAM,UAAU,aAAa;IAC3B,OAAO,IAAI,CAAC,cAAc,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,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AE,OAAO,SAAS,CAAC;QACjD,MAAM,GAAG,GAAG,cAAc,CAAC,aAAa,CAAC,CAAC;QAC1C,IAAI,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,WAAW,EAAE,KAAK,QAAQ;YAAE,OAAO,SAAS,CAAC;IACpE,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,oCAAoC,KAAK,sBAAsB,CAAC,CAAC;AACnF,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface CooldownGuardOptions {
|
|
2
|
+
prefix: string;
|
|
3
|
+
cooldownMs: number;
|
|
4
|
+
}
|
|
5
|
+
export declare class CooldownGuard {
|
|
6
|
+
private readonly prefix;
|
|
7
|
+
private readonly cooldownMs;
|
|
8
|
+
constructor(opts: CooldownGuardOptions);
|
|
9
|
+
shouldRun(sessionId: string): boolean;
|
|
10
|
+
markDone(sessionId: string, extra?: Record<string, unknown>): void;
|
|
11
|
+
timeSinceLastMs(sessionId: string): number | null;
|
|
12
|
+
private read;
|
|
13
|
+
private path;
|
|
14
|
+
}
|
|
15
|
+
export declare const kgSyncGuard: CooldownGuard;
|
|
16
|
+
export declare const kgInitGuard: CooldownGuard;
|