@pennyfarthing/core 10.0.1 → 10.0.2
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/package.json +13 -3
- package/pennyfarthing-dist/agents/README.md +348 -0
- package/pennyfarthing-dist/agents/architect.md +180 -0
- package/pennyfarthing-dist/agents/dev.md +169 -0
- package/pennyfarthing-dist/agents/devops.md +203 -0
- package/pennyfarthing-dist/agents/handoff.md +235 -0
- package/pennyfarthing-dist/agents/orchestrator.md +182 -0
- package/pennyfarthing-dist/agents/pm.md +152 -0
- package/pennyfarthing-dist/agents/reviewer-preflight.md +129 -0
- package/pennyfarthing-dist/agents/reviewer.md +197 -0
- package/pennyfarthing-dist/agents/sm-file-summary.md +79 -0
- package/pennyfarthing-dist/agents/sm-finish.md +82 -0
- package/pennyfarthing-dist/agents/sm-handoff.md +129 -0
- package/pennyfarthing-dist/agents/sm-setup.md +251 -0
- package/pennyfarthing-dist/agents/sm.md +298 -0
- package/pennyfarthing-dist/agents/tea.md +161 -0
- package/pennyfarthing-dist/agents/tech-writer.md +226 -0
- package/pennyfarthing-dist/agents/testing-runner.md +184 -0
- package/pennyfarthing-dist/agents/ux-designer.md +236 -0
- package/pennyfarthing-dist/agents/workflow-status-check.md +96 -0
- package/pennyfarthing-dist/commands/architect.md +9 -0
- package/pennyfarthing-dist/commands/benchmark-control.md +69 -0
- package/pennyfarthing-dist/commands/benchmark.md +485 -0
- package/pennyfarthing-dist/commands/brainstorming.md +91 -0
- package/pennyfarthing-dist/commands/check.md +156 -0
- package/pennyfarthing-dist/commands/chore.md +218 -0
- package/pennyfarthing-dist/commands/close-epic.md +139 -0
- package/pennyfarthing-dist/commands/continue-session.md +218 -0
- package/pennyfarthing-dist/commands/create-branches-from-story.md +358 -0
- package/pennyfarthing-dist/commands/create-theme.md +29 -0
- package/pennyfarthing-dist/commands/dev.md +9 -0
- package/pennyfarthing-dist/commands/devops.md +9 -0
- package/pennyfarthing-dist/commands/fix-blocker.md +22 -0
- package/pennyfarthing-dist/commands/git-cleanup.md +57 -0
- package/pennyfarthing-dist/commands/health-check.md +143 -0
- package/pennyfarthing-dist/commands/help.md +264 -0
- package/pennyfarthing-dist/commands/job-fair.md +102 -0
- package/pennyfarthing-dist/commands/list-themes.md +21 -0
- package/pennyfarthing-dist/commands/new-work.md +23 -0
- package/pennyfarthing-dist/commands/orchestrator.md +9 -0
- package/pennyfarthing-dist/commands/parallel-work.md +73 -0
- package/pennyfarthing-dist/commands/party-mode.md +77 -0
- package/pennyfarthing-dist/commands/patch.md +210 -0
- package/pennyfarthing-dist/commands/permissions.md +193 -0
- package/pennyfarthing-dist/commands/pm.md +9 -0
- package/pennyfarthing-dist/commands/prime.md +136 -0
- package/pennyfarthing-dist/commands/release.md +74 -0
- package/pennyfarthing-dist/commands/repo-status.md +49 -0
- package/pennyfarthing-dist/commands/retro.md +200 -0
- package/pennyfarthing-dist/commands/reviewer.md +9 -0
- package/pennyfarthing-dist/commands/run-ci.md +116 -0
- package/pennyfarthing-dist/commands/set-theme.md +56 -0
- package/pennyfarthing-dist/commands/setup.md +65 -0
- package/pennyfarthing-dist/commands/show-theme.md +21 -0
- package/pennyfarthing-dist/commands/sm.md +9 -0
- package/pennyfarthing-dist/commands/solo.md +447 -0
- package/pennyfarthing-dist/commands/sprint-planning.md +109 -0
- package/pennyfarthing-dist/commands/sprint.md +142 -0
- package/pennyfarthing-dist/commands/standalone.md +194 -0
- package/pennyfarthing-dist/commands/start-epic.md +168 -0
- package/pennyfarthing-dist/commands/sync-epic-to-jira.md +184 -0
- package/pennyfarthing-dist/commands/sync-work-with-sprint.md +373 -0
- package/pennyfarthing-dist/commands/tea.md +9 -0
- package/pennyfarthing-dist/commands/tech-writer.md +9 -0
- package/pennyfarthing-dist/commands/theme-maker.md +676 -0
- package/pennyfarthing-dist/commands/update-domain-docs.md +83 -0
- package/pennyfarthing-dist/commands/ux-designer.md +9 -0
- package/pennyfarthing-dist/commands/work.md +25 -0
- package/pennyfarthing-dist/commands/workflow.md +21 -0
- package/pennyfarthing-dist/guides/agent-behavior.md +92 -0
- package/pennyfarthing-dist/guides/agent-coordination.md +475 -0
- package/pennyfarthing-dist/guides/agent-tag-taxonomy.md +432 -0
- package/pennyfarthing-dist/guides/agent-template-strategic.md +148 -0
- package/pennyfarthing-dist/guides/agent-template-tactical.md +162 -0
- package/pennyfarthing-dist/guides/hooks.md +230 -0
- package/pennyfarthing-dist/guides/measurement-framework.md +210 -0
- package/pennyfarthing-dist/guides/patterns/approval-gates-pattern.md +766 -0
- package/pennyfarthing-dist/guides/patterns/fan-out-fan-in-pattern.md +574 -0
- package/pennyfarthing-dist/guides/patterns/helper-delegation-pattern.md +488 -0
- package/pennyfarthing-dist/guides/patterns/tdd-flow-pattern.md +402 -0
- package/pennyfarthing-dist/guides/permission-protocol.md +188 -0
- package/pennyfarthing-dist/guides/persona-loading.md +46 -0
- package/pennyfarthing-dist/guides/prompt-patterns.md +338 -0
- package/pennyfarthing-dist/guides/scale-levels.md +114 -0
- package/pennyfarthing-dist/guides/session-artifacts.md +193 -0
- package/pennyfarthing-dist/guides/session-schema.md +346 -0
- package/pennyfarthing-dist/guides/skill-schema.md +412 -0
- package/pennyfarthing-dist/guides/workflow-schema.md +257 -0
- package/pennyfarthing-dist/guides/workflow-step-schema.md +512 -0
- package/pennyfarthing-dist/guides/worktree-mode.md +113 -0
- package/pennyfarthing-dist/guides/xml-tags.md +627 -0
- package/pennyfarthing-dist/output-styles/teaching.md +33 -0
- package/pennyfarthing-dist/output-styles/terse.md +20 -0
- package/pennyfarthing-dist/output-styles/verbose.md +28 -0
- package/pennyfarthing-dist/personas/themes/a-team.yaml +331 -0
- package/pennyfarthing-dist/personas/themes/alice-in-wonderland.yaml +324 -0
- package/pennyfarthing-dist/personas/themes/battlestar-galactica.yaml +282 -0
- package/pennyfarthing-dist/personas/themes/blade-runner.yaml +289 -0
- package/pennyfarthing-dist/personas/themes/catch-22.yaml +304 -0
- package/pennyfarthing-dist/personas/themes/control.yaml +201 -0
- package/pennyfarthing-dist/personas/themes/cowboy-bebop.yaml +315 -0
- package/pennyfarthing-dist/personas/themes/discworld.yaml +334 -0
- package/pennyfarthing-dist/personas/themes/doctor-who.yaml +284 -0
- package/pennyfarthing-dist/personas/themes/dune.yaml +301 -0
- package/pennyfarthing-dist/personas/themes/firefly.yaml +320 -0
- package/pennyfarthing-dist/personas/themes/game-of-thrones.yaml +284 -0
- package/pennyfarthing-dist/personas/themes/harry-potter.yaml +316 -0
- package/pennyfarthing-dist/personas/themes/hitchhikers-guide.yaml +323 -0
- package/pennyfarthing-dist/personas/themes/lord-of-the-rings.yaml +326 -0
- package/pennyfarthing-dist/personas/themes/mad-max.yaml +349 -0
- package/pennyfarthing-dist/personas/themes/mash.yaml +329 -0
- package/pennyfarthing-dist/personas/themes/princess-bride.yaml +344 -0
- package/pennyfarthing-dist/personas/themes/sandman.yaml +282 -0
- package/pennyfarthing-dist/personas/themes/star-trek-tng.yaml +358 -0
- package/pennyfarthing-dist/personas/themes/star-wars.yaml +297 -0
- package/pennyfarthing-dist/personas/themes/the-expanse.yaml +337 -0
- package/pennyfarthing-dist/personas/themes/the-matrix.yaml +342 -0
- package/pennyfarthing-dist/personas/themes/watchmen.yaml +285 -0
- package/pennyfarthing-dist/personas/themes/west-wing.yaml +285 -0
- package/pennyfarthing-dist/personas/themes/x-files.yaml +296 -0
- package/pennyfarthing-dist/scripts/README.md +87 -0
- package/pennyfarthing-dist/scripts/core/README.md +25 -0
- package/pennyfarthing-dist/scripts/core/agent-session.sh +390 -0
- package/pennyfarthing-dist/scripts/core/check-context.sh +194 -0
- package/pennyfarthing-dist/scripts/core/handoff-marker.sh +112 -0
- package/pennyfarthing-dist/scripts/core/phase-check-start.sh +90 -0
- package/pennyfarthing-dist/scripts/core/prime.sh +30 -0
- package/pennyfarthing-dist/scripts/cyclist/is-cyclist.sh +21 -0
- package/pennyfarthing-dist/scripts/git/README.md +25 -0
- package/pennyfarthing-dist/scripts/git/create-feature-branches.sh +267 -0
- package/pennyfarthing-dist/scripts/git/git-status-all.sh +152 -0
- package/pennyfarthing-dist/scripts/git/install-git-hooks.sh +79 -0
- package/pennyfarthing-dist/scripts/git/release.sh +246 -0
- package/pennyfarthing-dist/scripts/git/worktree-manager.sh +497 -0
- package/pennyfarthing-dist/scripts/health/drift-detection.sh +156 -0
- package/pennyfarthing-dist/scripts/hooks/README.md +32 -0
- package/pennyfarthing-dist/scripts/hooks/__pycache__/question_reflector_check.cpython-314.pyc +0 -0
- package/pennyfarthing-dist/scripts/hooks/bell-mode-hook.sh +106 -0
- package/pennyfarthing-dist/scripts/hooks/context-circuit-breaker.sh +95 -0
- package/pennyfarthing-dist/scripts/hooks/context-warning.sh +65 -0
- package/pennyfarthing-dist/scripts/hooks/otel-auto-config.sh +35 -0
- package/pennyfarthing-dist/scripts/hooks/post-merge.sh +150 -0
- package/pennyfarthing-dist/scripts/hooks/pre-commit.sh +190 -0
- package/pennyfarthing-dist/scripts/hooks/pre-edit-check.sh +71 -0
- package/pennyfarthing-dist/scripts/hooks/pre-push.sh +42 -0
- package/pennyfarthing-dist/scripts/hooks/question-reflector-check.sh +20 -0
- package/pennyfarthing-dist/scripts/hooks/question_reflector_check.py +499 -0
- package/pennyfarthing-dist/scripts/hooks/schema-validation.sh +30 -0
- package/pennyfarthing-dist/scripts/hooks/session-start.sh +97 -0
- package/pennyfarthing-dist/scripts/hooks/session-stop.sh +65 -0
- package/pennyfarthing-dist/scripts/hooks/sprint-yaml-validation.sh +78 -0
- package/pennyfarthing-dist/scripts/hooks/welcome-hook.sh +94 -0
- package/pennyfarthing-dist/scripts/jira/README.md +36 -0
- package/pennyfarthing-dist/scripts/jira/create-jira-epic.sh +95 -0
- package/pennyfarthing-dist/scripts/jira/create-jira-story.sh +91 -0
- package/pennyfarthing-dist/scripts/jira/jira-claim-story.sh +22 -0
- package/pennyfarthing-dist/scripts/jira/jira-lib.sh +464 -0
- package/pennyfarthing-dist/scripts/jira/jira-reconcile.sh +260 -0
- package/pennyfarthing-dist/scripts/jira/jira-sync-story.sh +18 -0
- package/pennyfarthing-dist/scripts/jira/jira-sync.sh +16 -0
- package/pennyfarthing-dist/scripts/jira/sync-epic-jira.sh +16 -0
- package/pennyfarthing-dist/scripts/jira/sync-epic-to-jira.sh +16 -0
- package/pennyfarthing-dist/scripts/lib/README.md +29 -0
- package/pennyfarthing-dist/scripts/lib/background-tasks.sh +177 -0
- package/pennyfarthing-dist/scripts/lib/checkpoint.sh +136 -0
- package/pennyfarthing-dist/scripts/lib/common.sh +212 -0
- package/pennyfarthing-dist/scripts/lib/file-lock.sh +269 -0
- package/pennyfarthing-dist/scripts/lib/find-root.sh +58 -0
- package/pennyfarthing-dist/scripts/lib/logging.sh +186 -0
- package/pennyfarthing-dist/scripts/lib/retry.sh +76 -0
- package/pennyfarthing-dist/scripts/maintenance/migrate-theme-schema.mjs +102 -0
- package/pennyfarthing-dist/scripts/maintenance/sidecar-health.sh +91 -0
- package/pennyfarthing-dist/scripts/misc/README.md +44 -0
- package/pennyfarthing-dist/scripts/misc/add-short-names.sh +13 -0
- package/pennyfarthing-dist/scripts/misc/add_short_names.py +226 -0
- package/pennyfarthing-dist/scripts/misc/backlog.sh +77 -0
- package/pennyfarthing-dist/scripts/misc/check-status.sh +247 -0
- package/pennyfarthing-dist/scripts/misc/find-related-work.sh +231 -0
- package/pennyfarthing-dist/scripts/misc/generate-skill-docs.sh +107 -0
- package/pennyfarthing-dist/scripts/misc/log-skill-usage.sh +74 -0
- package/pennyfarthing-dist/scripts/misc/migrate-bmad-workflow.sh +10 -0
- package/pennyfarthing-dist/scripts/misc/migrate_bmad_workflow.py +319 -0
- package/pennyfarthing-dist/scripts/misc/repo-scan.sh +141 -0
- package/pennyfarthing-dist/scripts/misc/repo-utils.sh +778 -0
- package/pennyfarthing-dist/scripts/misc/run-ci.sh +212 -0
- package/pennyfarthing-dist/scripts/misc/run-timestamp.sh +7 -0
- package/pennyfarthing-dist/scripts/misc/session-cleanup.sh +319 -0
- package/pennyfarthing-dist/scripts/misc/skill-usage-report.sh +193 -0
- package/pennyfarthing-dist/scripts/misc/statusline.sh +257 -0
- package/pennyfarthing-dist/scripts/misc/uninstall.sh +275 -0
- package/pennyfarthing-dist/scripts/misc/validate-subagent-frontmatter.sh +160 -0
- package/pennyfarthing-dist/scripts/portraits/generate-portraits.py +417 -0
- package/pennyfarthing-dist/scripts/portraits/generate-portraits.sh +54 -0
- package/pennyfarthing-dist/scripts/sprint/README.md +29 -0
- package/pennyfarthing-dist/scripts/sprint/archive-story.sh +133 -0
- package/pennyfarthing-dist/scripts/sprint/available-stories.sh +91 -0
- package/pennyfarthing-dist/scripts/sprint/check-story.sh +158 -0
- package/pennyfarthing-dist/scripts/sprint/get-epic-field.sh +52 -0
- package/pennyfarthing-dist/scripts/sprint/get-story-field.sh +63 -0
- package/pennyfarthing-dist/scripts/sprint/list-future.sh +145 -0
- package/pennyfarthing-dist/scripts/sprint/new-sprint.sh +110 -0
- package/pennyfarthing-dist/scripts/sprint/promote-epic.sh +148 -0
- package/pennyfarthing-dist/scripts/sprint/sprint-common.sh +415 -0
- package/pennyfarthing-dist/scripts/sprint/sprint-info.sh +33 -0
- package/pennyfarthing-dist/scripts/sprint/sprint-metrics.sh +230 -0
- package/pennyfarthing-dist/scripts/sprint/sprint-status.sh +134 -0
- package/pennyfarthing-dist/scripts/sprint/validate-sprint-yaml.sh +139 -0
- package/pennyfarthing-dist/scripts/story/README.md +23 -0
- package/pennyfarthing-dist/scripts/story/create-story.sh +19 -0
- package/pennyfarthing-dist/scripts/story/size-story.sh +18 -0
- package/pennyfarthing-dist/scripts/story/story-template.sh +18 -0
- package/pennyfarthing-dist/scripts/test/README.md +23 -0
- package/pennyfarthing-dist/scripts/test/ensure-swebench-data.sh +59 -0
- package/pennyfarthing-dist/scripts/test/ground-truth-judge.py +220 -0
- package/pennyfarthing-dist/scripts/test/swebench-judge.py +374 -0
- package/pennyfarthing-dist/scripts/test/test-cache.sh +165 -0
- package/pennyfarthing-dist/scripts/test/test-setup.sh +337 -0
- package/pennyfarthing-dist/scripts/tests/check.test.sh +582 -0
- package/pennyfarthing-dist/scripts/tests/dev-story-workflow-import.test.sh +515 -0
- package/pennyfarthing-dist/scripts/tests/epics-and-stories-workflow-import.test.sh +599 -0
- package/pennyfarthing-dist/scripts/tests/handoff-phase-update.test.sh +332 -0
- package/pennyfarthing-dist/scripts/tests/implementation-readiness-workflow-import.test.sh +573 -0
- package/pennyfarthing-dist/scripts/tests/migrate-bmad-workflow.test.sh +859 -0
- package/pennyfarthing-dist/scripts/tests/prd-workflow-import.test.sh +662 -0
- package/pennyfarthing-dist/scripts/tests/project-context-workflow-import.test.sh +589 -0
- package/pennyfarthing-dist/scripts/tests/test-character-voice.sh +106 -0
- package/pennyfarthing-dist/scripts/tests/test-drift-detection.sh +597 -0
- package/pennyfarthing-dist/scripts/tests/test-post-merge-hook.sh +514 -0
- package/pennyfarthing-dist/scripts/tests/test-session-checkpoint.sh +517 -0
- package/pennyfarthing-dist/scripts/tests/test-solo-command.sh +331 -0
- package/pennyfarthing-dist/scripts/tests/ux-design-workflow-import.test.sh +647 -0
- package/pennyfarthing-dist/scripts/theme/README.md +22 -0
- package/pennyfarthing-dist/scripts/theme/compute-theme-tiers.sh +13 -0
- package/pennyfarthing-dist/scripts/theme/compute_theme_tiers.py +402 -0
- package/pennyfarthing-dist/scripts/theme/list-themes.sh +30 -0
- package/pennyfarthing-dist/scripts/theme/update-theme-tiers.sh +97 -0
- package/pennyfarthing-dist/scripts/validation/validate-agent-schema.sh +576 -0
- package/pennyfarthing-dist/scripts/workflow/README.md +28 -0
- package/pennyfarthing-dist/scripts/workflow/check.py +502 -0
- package/pennyfarthing-dist/scripts/workflow/check.sh +24 -0
- package/pennyfarthing-dist/scripts/workflow/complete-step.py +304 -0
- package/pennyfarthing-dist/scripts/workflow/finish-story.sh +154 -0
- package/pennyfarthing-dist/scripts/workflow/fix-session-phase.sh +222 -0
- package/pennyfarthing-dist/scripts/workflow/get-workflow-type.py +61 -0
- package/pennyfarthing-dist/scripts/workflow/get-workflow-type.sh +13 -0
- package/pennyfarthing-dist/scripts/workflow/list-workflows.sh +124 -0
- package/pennyfarthing-dist/scripts/workflow/phase-owner.sh +34 -0
- package/pennyfarthing-dist/scripts/workflow/resume-workflow.sh +157 -0
- package/pennyfarthing-dist/scripts/workflow/show-workflow.sh +132 -0
- package/pennyfarthing-dist/scripts/workflow/start-workflow.sh +250 -0
- package/pennyfarthing-dist/scripts/workflow/workflow-status.sh +161 -0
- package/pennyfarthing-dist/skills/agentic-patterns/SKILL.md +246 -0
- package/pennyfarthing-dist/skills/changelog/SKILL.md +385 -0
- package/pennyfarthing-dist/skills/code-review/SKILL.md +172 -0
- package/pennyfarthing-dist/skills/context-engineering/SKILL.md +277 -0
- package/pennyfarthing-dist/skills/cyclist/SKILL.md +88 -0
- package/pennyfarthing-dist/skills/dev-patterns/SKILL.md +461 -0
- package/pennyfarthing-dist/skills/finalize-run/SKILL.md +261 -0
- package/pennyfarthing-dist/skills/jira/SKILL.md +508 -0
- package/pennyfarthing-dist/skills/judge/SKILL.md +644 -0
- package/pennyfarthing-dist/skills/just/SKILL.md +414 -0
- package/pennyfarthing-dist/skills/mermaid/SKILL.md +256 -0
- package/pennyfarthing-dist/skills/otel/skill.md +227 -0
- package/pennyfarthing-dist/skills/permissions/skill.md +157 -0
- package/pennyfarthing-dist/skills/persona-benchmark/SKILL.md +187 -0
- package/pennyfarthing-dist/skills/skill-registry.schema.json +107 -0
- package/pennyfarthing-dist/skills/skill-registry.yaml +393 -0
- package/pennyfarthing-dist/skills/sprint/scripts/archive-story.sh +101 -0
- package/pennyfarthing-dist/skills/sprint/scripts/available-stories.sh +97 -0
- package/pennyfarthing-dist/skills/sprint/scripts/check-story.sh +164 -0
- package/pennyfarthing-dist/skills/sprint/scripts/create-jira-epic.sh +101 -0
- package/pennyfarthing-dist/skills/sprint/scripts/new-sprint.sh +116 -0
- package/pennyfarthing-dist/skills/sprint/scripts/promote-epic.sh +164 -0
- package/pennyfarthing-dist/skills/sprint/scripts/sprint-info.sh +39 -0
- package/pennyfarthing-dist/skills/sprint/scripts/sprint-status.sh +147 -0
- package/pennyfarthing-dist/skills/sprint/scripts/sync-epic-jira.sh +93 -0
- package/pennyfarthing-dist/skills/sprint/skill.md +465 -0
- package/pennyfarthing-dist/skills/story/scripts/create-story.sh +159 -0
- package/pennyfarthing-dist/skills/story/scripts/size-story.sh +198 -0
- package/pennyfarthing-dist/skills/story/scripts/story-template.sh +162 -0
- package/pennyfarthing-dist/skills/story/skill.md +219 -0
- package/pennyfarthing-dist/skills/systematic-debugging/SKILL.md +446 -0
- package/pennyfarthing-dist/skills/testing/SKILL.md +121 -0
- package/pennyfarthing-dist/skills/testing/references/troubleshooting.md +124 -0
- package/pennyfarthing-dist/skills/theme/skill.md +141 -0
- package/pennyfarthing-dist/skills/theme-creation/SKILL.md +178 -0
- package/pennyfarthing-dist/skills/workflow/scripts/list-workflows.sh +91 -0
- package/pennyfarthing-dist/skills/workflow/scripts/resume-workflow.sh +163 -0
- package/pennyfarthing-dist/skills/workflow/scripts/show-workflow.sh +138 -0
- package/pennyfarthing-dist/skills/workflow/scripts/start-workflow.sh +273 -0
- package/pennyfarthing-dist/skills/workflow/scripts/workflow-status.sh +167 -0
- package/pennyfarthing-dist/skills/workflow/skill.md +345 -0
- package/pennyfarthing-dist/skills/yq/SKILL.md +272 -0
- package/pennyfarthing-dist/templates/LEADERBOARD.schema.yaml +187 -0
- package/pennyfarthing-dist/templates/LEADERBOARD.template.md +59 -0
- package/pennyfarthing-dist/templates/agent-scopes.yaml.template +276 -0
- package/pennyfarthing-dist/templates/pennyfarthing-settings.yaml.template +61 -0
- package/pennyfarthing-dist/templates/persona-config.yaml.template +22 -0
- package/pennyfarthing-dist/templates/preferences.yaml.template +15 -0
- package/pennyfarthing-dist/templates/settings.local.json.template +130 -0
- package/pennyfarthing-dist/templates/setup-env.sh.template +18 -0
- package/pennyfarthing-dist/templates/shared-context.md.template +70 -0
- package/pennyfarthing-dist/templates/sidecar/decisions.md.template +40 -0
- package/pennyfarthing-dist/templates/sidecar/gotchas.md.template +37 -0
- package/pennyfarthing-dist/templates/sidecar/patterns.md.template +34 -0
- package/pennyfarthing-dist/workflows/agent-docs.yaml +70 -0
- package/pennyfarthing-dist/workflows/architecture/steps/step-01-initialize.md +113 -0
- package/pennyfarthing-dist/workflows/architecture/steps/step-01b-continue.md +105 -0
- package/pennyfarthing-dist/workflows/architecture/steps/step-02-context.md +127 -0
- package/pennyfarthing-dist/workflows/architecture/steps/step-03-patterns.md +145 -0
- package/pennyfarthing-dist/workflows/architecture/steps/step-04-components.md +150 -0
- package/pennyfarthing-dist/workflows/architecture/steps/step-05-interfaces.md +145 -0
- package/pennyfarthing-dist/workflows/architecture/steps/step-06-risks.md +154 -0
- package/pennyfarthing-dist/workflows/architecture/steps/step-07-document.md +172 -0
- package/pennyfarthing-dist/workflows/architecture/templates/architecture-decision.md +102 -0
- package/pennyfarthing-dist/workflows/architecture.yaml +65 -0
- package/pennyfarthing-dist/workflows/bdd.yaml +60 -0
- package/pennyfarthing-dist/workflows/brainstorming/brain-methods.csv +62 -0
- package/pennyfarthing-dist/workflows/brainstorming/checklist.md +44 -0
- package/pennyfarthing-dist/workflows/brainstorming/instructions.md +736 -0
- package/pennyfarthing-dist/workflows/brainstorming/workflow.yaml +49 -0
- package/pennyfarthing-dist/workflows/code-review/checklist.md +23 -0
- package/pennyfarthing-dist/workflows/code-review/instructions.md +234 -0
- package/pennyfarthing-dist/workflows/code-review/workflow.yaml +51 -0
- package/pennyfarthing-dist/workflows/dev-story/checklist.md +80 -0
- package/pennyfarthing-dist/workflows/dev-story/instructions.xml +410 -0
- package/pennyfarthing-dist/workflows/dev-story/workflow.yaml +50 -0
- package/pennyfarthing-dist/workflows/epics-and-stories/steps/step-01-validate-prerequisites.md +281 -0
- package/pennyfarthing-dist/workflows/epics-and-stories/steps/step-02-design-epics.md +256 -0
- package/pennyfarthing-dist/workflows/epics-and-stories/steps/step-03-create-stories.md +298 -0
- package/pennyfarthing-dist/workflows/epics-and-stories/steps/step-04-final-validation.md +177 -0
- package/pennyfarthing-dist/workflows/epics-and-stories/steps/step-05-import-to-future.md +145 -0
- package/pennyfarthing-dist/workflows/epics-and-stories/templates/epics-template.md +57 -0
- package/pennyfarthing-dist/workflows/epics-and-stories/workflow.yaml +28 -0
- package/pennyfarthing-dist/workflows/git-cleanup/steps/step-01-analyze.md +103 -0
- package/pennyfarthing-dist/workflows/git-cleanup/steps/step-02-categorize.md +147 -0
- package/pennyfarthing-dist/workflows/git-cleanup/steps/step-03-execute.md +215 -0
- package/pennyfarthing-dist/workflows/git-cleanup/steps/step-04-verify.md +97 -0
- package/pennyfarthing-dist/workflows/git-cleanup/steps/step-05-complete.md +78 -0
- package/pennyfarthing-dist/workflows/git-cleanup.yaml +59 -0
- package/pennyfarthing-dist/workflows/implementation-readiness/steps/step-01-document-discovery.md +211 -0
- package/pennyfarthing-dist/workflows/implementation-readiness/steps/step-02-prd-analysis.md +199 -0
- package/pennyfarthing-dist/workflows/implementation-readiness/steps/step-03-epic-coverage-validation.md +202 -0
- package/pennyfarthing-dist/workflows/implementation-readiness/steps/step-04-ux-alignment.md +162 -0
- package/pennyfarthing-dist/workflows/implementation-readiness/steps/step-05-epic-quality-review.md +280 -0
- package/pennyfarthing-dist/workflows/implementation-readiness/steps/step-06-final-assessment.md +158 -0
- package/pennyfarthing-dist/workflows/implementation-readiness/templates/readiness-report-template.md +4 -0
- package/pennyfarthing-dist/workflows/implementation-readiness/workflow.yaml +40 -0
- package/pennyfarthing-dist/workflows/interactive-debug/steps/step-01-connect.md +257 -0
- package/pennyfarthing-dist/workflows/interactive-debug/steps/step-02-explore.md +107 -0
- package/pennyfarthing-dist/workflows/interactive-debug/steps/step-03-fix.md +127 -0
- package/pennyfarthing-dist/workflows/interactive-debug/steps/step-04-commit.md +122 -0
- package/pennyfarthing-dist/workflows/interactive-debug/workflow.yaml +51 -0
- package/pennyfarthing-dist/workflows/patch.yaml +67 -0
- package/pennyfarthing-dist/workflows/prd/data/domain-complexity.csv +13 -0
- package/pennyfarthing-dist/workflows/prd/data/prd-purpose.md +197 -0
- package/pennyfarthing-dist/workflows/prd/data/project-types.csv +11 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-01-init.md +197 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-01b-continue.md +159 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-02-discovery.md +230 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-03-success.md +232 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-04-journeys.md +219 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-05-domain.md +213 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-06-innovation.md +232 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-07-project-type.md +243 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-08-scoping.md +234 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-09-functional.md +237 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-10-nonfunctional.md +248 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-11-polish.md +223 -0
- package/pennyfarthing-dist/workflows/prd/steps-c/step-12-complete.md +186 -0
- package/pennyfarthing-dist/workflows/prd/steps-e/step-e-01-discovery.md +253 -0
- package/pennyfarthing-dist/workflows/prd/steps-e/step-e-01b-legacy-conversion.md +214 -0
- package/pennyfarthing-dist/workflows/prd/steps-e/step-e-02-review.md +255 -0
- package/pennyfarthing-dist/workflows/prd/steps-e/step-e-03-edit.md +259 -0
- package/pennyfarthing-dist/workflows/prd/steps-e/step-e-04-complete.md +174 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-01-discovery.md +224 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-02-format-detection.md +197 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-02b-parity-check.md +215 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-03-density-validation.md +180 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-04-brief-coverage-validation.md +220 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-05-measurability-validation.md +234 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-06-traceability-validation.md +223 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-07-implementation-leakage-validation.md +211 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-08-domain-compliance-validation.md +249 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-09-project-type-validation.md +269 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-10-smart-validation.md +215 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-11-holistic-quality-validation.md +270 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-12-completeness-validation.md +248 -0
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-13-report-complete.md +238 -0
- package/pennyfarthing-dist/workflows/prd/templates/prd-template.md +10 -0
- package/pennyfarthing-dist/workflows/prd/workflow.yaml +42 -0
- package/pennyfarthing-dist/workflows/product-brief/steps/step-01-init.md +195 -0
- package/pennyfarthing-dist/workflows/product-brief/steps/step-01b-continue.md +180 -0
- package/pennyfarthing-dist/workflows/product-brief/steps/step-02-vision.md +221 -0
- package/pennyfarthing-dist/workflows/product-brief/steps/step-03-users.md +224 -0
- package/pennyfarthing-dist/workflows/product-brief/steps/step-04-metrics.md +228 -0
- package/pennyfarthing-dist/workflows/product-brief/steps/step-05-scope.md +243 -0
- package/pennyfarthing-dist/workflows/product-brief/steps/step-06-complete.md +216 -0
- package/pennyfarthing-dist/workflows/product-brief/templates/product-brief.template.md +10 -0
- package/pennyfarthing-dist/workflows/product-brief/workflow.yaml +31 -0
- package/pennyfarthing-dist/workflows/project-context/project-context-template.md +21 -0
- package/pennyfarthing-dist/workflows/project-context/steps/step-01-discover.md +206 -0
- package/pennyfarthing-dist/workflows/project-context/steps/step-02-generate.md +349 -0
- package/pennyfarthing-dist/workflows/project-context/steps/step-03-complete.md +306 -0
- package/pennyfarthing-dist/workflows/project-context/workflow.yaml +27 -0
- package/pennyfarthing-dist/workflows/project-setup/steps/step-01-discover.md +157 -0
- package/pennyfarthing-dist/workflows/project-setup/steps/step-02-clone-repos.md +217 -0
- package/pennyfarthing-dist/workflows/project-setup/steps/step-03-repos-yaml.md +159 -0
- package/pennyfarthing-dist/workflows/project-setup/steps/step-04-claude-md.md +186 -0
- package/pennyfarthing-dist/workflows/project-setup/steps/step-05-shared-context.md +185 -0
- package/pennyfarthing-dist/workflows/project-setup/steps/step-06-task-runner.md +279 -0
- package/pennyfarthing-dist/workflows/project-setup/steps/step-07-theme.md +200 -0
- package/pennyfarthing-dist/workflows/project-setup/steps/step-08-theme-packs.md +142 -0
- package/pennyfarthing-dist/workflows/project-setup/steps/step-09-cyclist.md +245 -0
- package/pennyfarthing-dist/workflows/project-setup/steps/step-10-complete.md +204 -0
- package/pennyfarthing-dist/workflows/project-setup/workflow.yaml +41 -0
- package/pennyfarthing-dist/workflows/quick-dev/steps/step-01-mode-detection.md +177 -0
- package/pennyfarthing-dist/workflows/quick-dev/steps/step-02-context-gathering.md +143 -0
- package/pennyfarthing-dist/workflows/quick-dev/steps/step-03-execute.md +138 -0
- package/pennyfarthing-dist/workflows/quick-dev/steps/step-04-self-check.md +135 -0
- package/pennyfarthing-dist/workflows/quick-dev/steps/step-05-adversarial-review.md +129 -0
- package/pennyfarthing-dist/workflows/quick-dev/steps/step-06-resolve-findings.md +163 -0
- package/pennyfarthing-dist/workflows/quick-dev/workflow.yaml +27 -0
- package/pennyfarthing-dist/workflows/quick-spec/steps/step-01-understand.md +201 -0
- package/pennyfarthing-dist/workflows/quick-spec/steps/step-02-investigate.md +156 -0
- package/pennyfarthing-dist/workflows/quick-spec/steps/step-03-generate.md +140 -0
- package/pennyfarthing-dist/workflows/quick-spec/steps/step-04-review.md +203 -0
- package/pennyfarthing-dist/workflows/quick-spec/tech-spec-template.md +74 -0
- package/pennyfarthing-dist/workflows/quick-spec/workflow.yaml +27 -0
- package/pennyfarthing-dist/workflows/release/steps/step-01-preflight.md +105 -0
- package/pennyfarthing-dist/workflows/release/steps/step-02-bump.md +95 -0
- package/pennyfarthing-dist/workflows/release/steps/step-03-changelog.md +125 -0
- package/pennyfarthing-dist/workflows/release/steps/step-04-readme.md +101 -0
- package/pennyfarthing-dist/workflows/release/steps/step-05-claude-md.md +102 -0
- package/pennyfarthing-dist/workflows/release/steps/step-06-retro.md +59 -0
- package/pennyfarthing-dist/workflows/release/steps/step-07-commit.md +109 -0
- package/pennyfarthing-dist/workflows/release/steps/step-08-merge.md +65 -0
- package/pennyfarthing-dist/workflows/release/steps/step-09-push.md +75 -0
- package/pennyfarthing-dist/workflows/release/steps/step-10-publish.md +93 -0
- package/pennyfarthing-dist/workflows/release/steps/step-11-finalize.md +71 -0
- package/pennyfarthing-dist/workflows/release.yaml +62 -0
- package/pennyfarthing-dist/workflows/research/steps-domain/step-01-init.md +159 -0
- package/pennyfarthing-dist/workflows/research/steps-domain/step-02-domain-analysis.md +253 -0
- package/pennyfarthing-dist/workflows/research/steps-domain/step-03-competitive-landscape.md +263 -0
- package/pennyfarthing-dist/workflows/research/steps-domain/step-04-regulatory-focus.md +232 -0
- package/pennyfarthing-dist/workflows/research/steps-domain/step-05-technical-trends.md +260 -0
- package/pennyfarthing-dist/workflows/research/steps-domain/step-06-research-synthesis.md +477 -0
- package/pennyfarthing-dist/workflows/research/steps-market/step-01-init.md +205 -0
- package/pennyfarthing-dist/workflows/research/steps-market/step-02-customer-behavior.md +262 -0
- package/pennyfarthing-dist/workflows/research/steps-market/step-02-customer-insights.md +227 -0
- package/pennyfarthing-dist/workflows/research/steps-market/step-03-customer-pain-points.md +275 -0
- package/pennyfarthing-dist/workflows/research/steps-market/step-04-customer-decisions.md +286 -0
- package/pennyfarthing-dist/workflows/research/steps-market/step-05-competitive-analysis.md +203 -0
- package/pennyfarthing-dist/workflows/research/steps-market/step-06-research-completion.md +510 -0
- package/pennyfarthing-dist/workflows/research/steps-technical/step-01-init.md +159 -0
- package/pennyfarthing-dist/workflows/research/steps-technical/step-02-technical-overview.md +264 -0
- package/pennyfarthing-dist/workflows/research/steps-technical/step-03-integration-patterns.md +274 -0
- package/pennyfarthing-dist/workflows/research/steps-technical/step-04-architectural-patterns.md +228 -0
- package/pennyfarthing-dist/workflows/research/steps-technical/step-05-implementation-research.md +267 -0
- package/pennyfarthing-dist/workflows/research/steps-technical/step-06-research-synthesis.md +522 -0
- package/pennyfarthing-dist/workflows/research/templates/research.template.md +29 -0
- package/pennyfarthing-dist/workflows/research/workflow.yaml +45 -0
- package/pennyfarthing-dist/workflows/retrospective/checklist.md +31 -0
- package/pennyfarthing-dist/workflows/retrospective/instructions.md +1443 -0
- package/pennyfarthing-dist/workflows/retrospective/workflow.yaml +50 -0
- package/pennyfarthing-dist/workflows/sprint-planning/checklist.md +33 -0
- package/pennyfarthing-dist/workflows/sprint-planning/sprint-status-template.yaml +55 -0
- package/pennyfarthing-dist/workflows/sprint-planning/steps/step-01-parse-epic-files.md +69 -0
- package/pennyfarthing-dist/workflows/sprint-planning/steps/step-02-build-sprint-status.md +61 -0
- package/pennyfarthing-dist/workflows/sprint-planning/steps/step-03-status-detection.md +80 -0
- package/pennyfarthing-dist/workflows/sprint-planning/steps/step-04-generate-status-file.md +90 -0
- package/pennyfarthing-dist/workflows/sprint-planning/steps/step-05-validate-and-report.md +78 -0
- package/pennyfarthing-dist/workflows/sprint-planning/workflow.yaml +34 -0
- package/pennyfarthing-dist/workflows/tdd.yaml +50 -0
- package/pennyfarthing-dist/workflows/trivial.yaml +40 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-01-init.md +141 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-01b-continue.md +133 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-02-discovery.md +196 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-03-core-experience.md +222 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-04-emotional-response.md +225 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-05-inspiration.md +240 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-06-design-system.md +258 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-07-defining-experience.md +260 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-08-visual-foundation.md +230 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-09-design-directions.md +230 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-10-user-journeys.md +247 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-11-component-strategy.md +254 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-12-ux-patterns.md +243 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-13-responsive-accessibility.md +270 -0
- package/pennyfarthing-dist/workflows/ux-design/steps/step-14-complete.md +234 -0
- package/pennyfarthing-dist/workflows/ux-design/ux-design-template.md +13 -0
- package/pennyfarthing-dist/workflows/ux-design/workflow.yaml +41 -0
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
add_short_names.py - Pre-generate shortName field for theme characters
|
|
4
|
+
|
|
5
|
+
Finds the shortest unique identifier that distinguishes each character.
|
|
6
|
+
|
|
7
|
+
Usage:
|
|
8
|
+
python add_short_names.py # Dry run - show what would change
|
|
9
|
+
python add_short_names.py --write # Actually write changes
|
|
10
|
+
python add_short_names.py --theme discworld # Only process one theme
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
import argparse
|
|
14
|
+
import re
|
|
15
|
+
import sys
|
|
16
|
+
from pathlib import Path
|
|
17
|
+
|
|
18
|
+
try:
|
|
19
|
+
import yaml
|
|
20
|
+
except ImportError:
|
|
21
|
+
print("Error: PyYAML required. Install with: pip install pyyaml", file=sys.stderr)
|
|
22
|
+
sys.exit(1)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def find_project_root() -> Path:
|
|
26
|
+
"""Find project root by looking for .pennyfarthing directory."""
|
|
27
|
+
current = Path.cwd()
|
|
28
|
+
while current != current.parent:
|
|
29
|
+
if (current / ".pennyfarthing").is_dir():
|
|
30
|
+
return current
|
|
31
|
+
current = current.parent
|
|
32
|
+
return Path.cwd()
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
# Common titles/prefixes to strip for comparison
|
|
36
|
+
SKIP_PREFIXES = {
|
|
37
|
+
'the', 'dr.', 'dr', 'captain', 'admiral', 'colonel', 'lieutenant', 'commander',
|
|
38
|
+
'president', 'lord', 'lady', 'sir', 'professor', 'inspector', 'sergeant',
|
|
39
|
+
'mr.', 'mr', 'mrs.', 'mrs', 'miss', 'ms.', 'ms', 'chief', 'major', 'general',
|
|
40
|
+
'king', 'queen', 'prince', 'princess', 'duke', 'earl', 'count', 'baron',
|
|
41
|
+
'first', 'grand', 'arch', 'high',
|
|
42
|
+
'uncle', 'aunt', 'brother', 'sister', 'father', 'mother', 'friar',
|
|
43
|
+
'avatar', 'agent', 'detective', 'officer', 'private', 'corporal',
|
|
44
|
+
'chancellor', 'ambassador', 'senator', 'governor', 'minister',
|
|
45
|
+
'master', 'young', 'old', 'elder', 'reverend', 'bishop', 'cardinal'
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
# Words that make poor short names on their own
|
|
49
|
+
POOR_SHORT_NAMES = {
|
|
50
|
+
'big', 'little', 'old', 'young', 'true', 'false', 'good', 'bad',
|
|
51
|
+
'thought', 'ministry', 'situation', 'room', 'place', 'house',
|
|
52
|
+
'superintendent', 'commander', 'speaker', 'council',
|
|
53
|
+
'mode', 'narrator', 'chronicler',
|
|
54
|
+
'h.m.', 'j.f.', 'a.w.', 'e.b.', 'l.'
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
# Names that should use the full form (iconic two-word names)
|
|
58
|
+
USE_FULL_NAME = {'big brother', 'sun tzu'}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def extract_nickname(name: str) -> str | None:
|
|
62
|
+
"""Extract quoted nickname from character name if present."""
|
|
63
|
+
match = re.search(r'["\']([^"\']+)["\']', name)
|
|
64
|
+
if match:
|
|
65
|
+
nickname = match.group(1).strip()
|
|
66
|
+
if nickname and ' ' not in nickname:
|
|
67
|
+
return nickname
|
|
68
|
+
return None
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def clean_name(name: str) -> str:
|
|
72
|
+
"""Clean character name by removing parenthetical annotations and slash alternatives."""
|
|
73
|
+
cleaned = re.sub(r'\s*\([^)]+\)\s*', ' ', name).strip()
|
|
74
|
+
cleaned = re.sub(r'\b\w+/(\w+)\s', r'\1 ', cleaned)
|
|
75
|
+
cleaned = re.sub(r'\s*["\'][^"\']+["\']\s*', ' ', cleaned).strip()
|
|
76
|
+
cleaned = re.sub(r'\s+', ' ', cleaned).strip()
|
|
77
|
+
return cleaned
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
def tokenize(name: str) -> list[str]:
|
|
81
|
+
"""Tokenize a name into meaningful parts."""
|
|
82
|
+
cleaned = clean_name(name)
|
|
83
|
+
words = [w for w in cleaned.split() if w]
|
|
84
|
+
|
|
85
|
+
filtered = [
|
|
86
|
+
w for w in words
|
|
87
|
+
if w.lower() not in SKIP_PREFIXES
|
|
88
|
+
and not re.match(r'^[A-Z]\.$', w)
|
|
89
|
+
and not re.match(r'^[IVXLCDM]+$', w)
|
|
90
|
+
]
|
|
91
|
+
|
|
92
|
+
return filtered if filtered else words
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
def compute_short_names(agents: dict) -> dict[str, str]:
|
|
96
|
+
"""Compute display name map for all characters in a theme."""
|
|
97
|
+
characters = [
|
|
98
|
+
a['character'] for a in agents.values()
|
|
99
|
+
if a and a.get('character')
|
|
100
|
+
]
|
|
101
|
+
|
|
102
|
+
def is_unique(candidate: str, except_for: str) -> bool:
|
|
103
|
+
candidate_lower = candidate.lower()
|
|
104
|
+
for char in characters:
|
|
105
|
+
if char == except_for:
|
|
106
|
+
continue
|
|
107
|
+
tokens = tokenize(char)
|
|
108
|
+
if any(t.lower() == candidate_lower for t in tokens):
|
|
109
|
+
return False
|
|
110
|
+
return True
|
|
111
|
+
|
|
112
|
+
def is_good_short_name(candidate: str) -> bool:
|
|
113
|
+
return candidate.lower() not in POOR_SHORT_NAMES and len(candidate) > 1
|
|
114
|
+
|
|
115
|
+
def find_short_name(full_name: str) -> str:
|
|
116
|
+
cleaned = clean_name(full_name)
|
|
117
|
+
|
|
118
|
+
if cleaned.lower() in USE_FULL_NAME:
|
|
119
|
+
return cleaned
|
|
120
|
+
|
|
121
|
+
nickname = extract_nickname(full_name)
|
|
122
|
+
if nickname and is_good_short_name(nickname):
|
|
123
|
+
return nickname
|
|
124
|
+
|
|
125
|
+
tokens = tokenize(full_name)
|
|
126
|
+
|
|
127
|
+
if not tokens:
|
|
128
|
+
return cleaned
|
|
129
|
+
|
|
130
|
+
if len(tokens) == 1:
|
|
131
|
+
return tokens[0]
|
|
132
|
+
|
|
133
|
+
# Strategy 1: First token (if good and unique)
|
|
134
|
+
if is_good_short_name(tokens[0]) and is_unique(tokens[0], full_name):
|
|
135
|
+
return tokens[0]
|
|
136
|
+
|
|
137
|
+
# Strategy 2: Last token (surname, if good and unique)
|
|
138
|
+
last_token = tokens[-1]
|
|
139
|
+
if is_good_short_name(last_token) and is_unique(last_token, full_name):
|
|
140
|
+
return last_token
|
|
141
|
+
|
|
142
|
+
# Strategy 3: First + Last
|
|
143
|
+
if len(tokens) >= 2:
|
|
144
|
+
first_last = f"{tokens[0]} {last_token}"
|
|
145
|
+
if is_unique(first_last, full_name):
|
|
146
|
+
return first_last
|
|
147
|
+
|
|
148
|
+
return clean_name(full_name)
|
|
149
|
+
|
|
150
|
+
return {char: find_short_name(char) for char in characters}
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
def process_theme(filepath: Path, dry_run: bool = True) -> dict:
|
|
154
|
+
"""Process a single theme file."""
|
|
155
|
+
content = filepath.read_text()
|
|
156
|
+
theme = yaml.safe_load(content)
|
|
157
|
+
|
|
158
|
+
if not theme or 'agents' not in theme:
|
|
159
|
+
print(f" Skipping {filepath.name} - no agents found")
|
|
160
|
+
return {'changes': 0, 'filename': filepath.name}
|
|
161
|
+
|
|
162
|
+
short_names = compute_short_names(theme['agents'])
|
|
163
|
+
changes = 0
|
|
164
|
+
|
|
165
|
+
for role, agent in theme['agents'].items():
|
|
166
|
+
if not agent or 'character' not in agent:
|
|
167
|
+
continue
|
|
168
|
+
|
|
169
|
+
short_name = short_names.get(agent['character'])
|
|
170
|
+
existing = agent.get('shortName')
|
|
171
|
+
|
|
172
|
+
if short_name and short_name != existing:
|
|
173
|
+
if dry_run:
|
|
174
|
+
existing_note = f' (was: "{existing}")' if existing else ''
|
|
175
|
+
print(f' {role}: "{agent["character"]}" -> "{short_name}"{existing_note}')
|
|
176
|
+
agent['shortName'] = short_name
|
|
177
|
+
changes += 1
|
|
178
|
+
|
|
179
|
+
if not dry_run and changes > 0:
|
|
180
|
+
with open(filepath, 'w') as f:
|
|
181
|
+
yaml.dump(theme, f, default_flow_style=False, allow_unicode=True, width=1000)
|
|
182
|
+
print(f" Wrote {changes} changes to {filepath.name}")
|
|
183
|
+
|
|
184
|
+
return {'changes': changes, 'filename': filepath.name}
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
def main() -> int:
|
|
188
|
+
parser = argparse.ArgumentParser(
|
|
189
|
+
description="Pre-generate shortName field for theme characters"
|
|
190
|
+
)
|
|
191
|
+
parser.add_argument('--write', action='store_true',
|
|
192
|
+
help='Actually write changes (default: dry run)')
|
|
193
|
+
parser.add_argument('--theme', type=str,
|
|
194
|
+
help='Only process one theme')
|
|
195
|
+
args = parser.parse_args()
|
|
196
|
+
|
|
197
|
+
dry_run = not args.write
|
|
198
|
+
|
|
199
|
+
project_root = find_project_root()
|
|
200
|
+
themes_dir = project_root / 'pennyfarthing-dist' / 'personas' / 'themes'
|
|
201
|
+
|
|
202
|
+
print('DRY RUN - No files will be modified\n' if dry_run else 'WRITING CHANGES\n')
|
|
203
|
+
|
|
204
|
+
files = sorted(themes_dir.glob('*.yaml'))
|
|
205
|
+
if args.theme:
|
|
206
|
+
theme_file = f"{args.theme}.yaml" if not args.theme.endswith('.yaml') else args.theme
|
|
207
|
+
files = [f for f in files if f.name == theme_file]
|
|
208
|
+
|
|
209
|
+
total_changes = 0
|
|
210
|
+
for file in files:
|
|
211
|
+
print(f"\n{file.name}:")
|
|
212
|
+
result = process_theme(file, dry_run)
|
|
213
|
+
total_changes += result['changes']
|
|
214
|
+
if result['changes'] == 0:
|
|
215
|
+
print(' (no changes needed)')
|
|
216
|
+
|
|
217
|
+
print(f"\n{'=' * 50}")
|
|
218
|
+
print(f"Total: {total_changes} changes across {len(files)} themes")
|
|
219
|
+
if dry_run and total_changes > 0:
|
|
220
|
+
print("\nRun with --write to apply changes")
|
|
221
|
+
|
|
222
|
+
return 0
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
if __name__ == "__main__":
|
|
226
|
+
sys.exit(main())
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
#!/usr/bin/env zsh
|
|
2
|
+
# backlog.sh - Display backlog stories in a formatted table
|
|
3
|
+
# Usage: backlog.sh
|
|
4
|
+
# Reads sprint/current-sprint.yaml and outputs backlog stories
|
|
5
|
+
|
|
6
|
+
set -euo pipefail
|
|
7
|
+
|
|
8
|
+
# Self-locate and set up PROJECT_ROOT
|
|
9
|
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" && pwd -P)"
|
|
10
|
+
source "$SCRIPT_DIR/../lib/find-root.sh"
|
|
11
|
+
SPRINT_FILE="$PROJECT_ROOT/sprint/current-sprint.yaml"
|
|
12
|
+
|
|
13
|
+
if [[ ! -f "$SPRINT_FILE" ]]; then
|
|
14
|
+
echo "Error: sprint/current-sprint.yaml not found" >&2
|
|
15
|
+
exit 1
|
|
16
|
+
fi
|
|
17
|
+
|
|
18
|
+
# Parse YAML and extract backlog stories
|
|
19
|
+
# Output format: | Story | Title | Pts | Epic |
|
|
20
|
+
|
|
21
|
+
echo "| Story | Title | Pts | Epic |"
|
|
22
|
+
echo "|-------|-------|-----|------|"
|
|
23
|
+
|
|
24
|
+
# Use yq if available, otherwise fall back to grep/awk
|
|
25
|
+
if command -v yq &>/dev/null; then
|
|
26
|
+
yq eval '
|
|
27
|
+
.epics[] |
|
|
28
|
+
.id as $epic_id |
|
|
29
|
+
.stories[]? |
|
|
30
|
+
select(.status == "backlog") |
|
|
31
|
+
"| " + .id + " | " + .title + " | " + (.points | tostring) + " | " + $epic_id + " |"
|
|
32
|
+
' "$SPRINT_FILE"
|
|
33
|
+
else
|
|
34
|
+
# Fallback: grep-based extraction
|
|
35
|
+
current_epic=""
|
|
36
|
+
in_stories=false
|
|
37
|
+
|
|
38
|
+
while IFS= read -r line; do
|
|
39
|
+
# Detect epic id
|
|
40
|
+
if [[ "$line" =~ ^[[:space:]]*-[[:space:]]*id:[[:space:]]*(MSSCI-[0-9]+) ]]; then
|
|
41
|
+
current_epic="${match[1]}"
|
|
42
|
+
in_stories=false
|
|
43
|
+
fi
|
|
44
|
+
|
|
45
|
+
# Detect stories section
|
|
46
|
+
if [[ "$line" =~ ^[[:space:]]*stories: ]]; then
|
|
47
|
+
in_stories=true
|
|
48
|
+
fi
|
|
49
|
+
|
|
50
|
+
# Detect story with backlog status (look ahead)
|
|
51
|
+
if [[ "$in_stories" == true && "$line" =~ ^[[:space:]]*-[[:space:]]*id:[[:space:]]*(MSSCI-[0-9]+) ]]; then
|
|
52
|
+
story_id="${match[1]}"
|
|
53
|
+
story_title=""
|
|
54
|
+
story_points=""
|
|
55
|
+
story_status=""
|
|
56
|
+
|
|
57
|
+
# Read next lines for this story
|
|
58
|
+
while IFS= read -r detail; do
|
|
59
|
+
[[ "$detail" =~ ^[[:space:]]*-[[:space:]]*id: ]] && break
|
|
60
|
+
[[ "$detail" =~ ^[[:space:]]*title:[[:space:]]*[\"\']*(.+)[\"\']*$ ]] && story_title="${match[1]}"
|
|
61
|
+
[[ "$detail" =~ ^[[:space:]]*points:[[:space:]]*([0-9]+) ]] && story_points="${match[1]}"
|
|
62
|
+
[[ "$detail" =~ ^[[:space:]]*status:[[:space:]]*(.+) ]] && story_status="${match[1]}"
|
|
63
|
+
|
|
64
|
+
# If we have all fields and status is backlog, print and break
|
|
65
|
+
if [[ -n "$story_title" && -n "$story_points" && "$story_status" == "backlog" ]]; then
|
|
66
|
+
echo "| $story_id | $story_title | $story_points | $current_epic |"
|
|
67
|
+
break
|
|
68
|
+
fi
|
|
69
|
+
|
|
70
|
+
# If status is not backlog, skip this story
|
|
71
|
+
if [[ -n "$story_status" && "$story_status" != "backlog" ]]; then
|
|
72
|
+
break
|
|
73
|
+
fi
|
|
74
|
+
done
|
|
75
|
+
fi
|
|
76
|
+
done < "$SPRINT_FILE"
|
|
77
|
+
fi
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
#!/usr/bin/env zsh
|
|
2
|
+
# Enhanced multi-repo git status with color and summaries
|
|
3
|
+
# Usage: ./check-status.sh [repos]
|
|
4
|
+
|
|
5
|
+
set -e
|
|
6
|
+
|
|
7
|
+
# Load environment
|
|
8
|
+
if [ -f .env ]; then
|
|
9
|
+
set -a; source .env; set +a
|
|
10
|
+
elif [ -f ../.env ]; then
|
|
11
|
+
set -a; source ../.env; set +a
|
|
12
|
+
fi
|
|
13
|
+
|
|
14
|
+
# Colors
|
|
15
|
+
RED='\033[0;31m'
|
|
16
|
+
GREEN='\033[0;32m'
|
|
17
|
+
YELLOW='\033[1;33m'
|
|
18
|
+
BLUE='\033[0;34m'
|
|
19
|
+
CYAN='\033[0;36m'
|
|
20
|
+
MAGENTA='\033[0;35m'
|
|
21
|
+
NC='\033[0m'
|
|
22
|
+
|
|
23
|
+
show_help() {
|
|
24
|
+
cat << 'EOF'
|
|
25
|
+
Check Status - Enhanced multi-repo status
|
|
26
|
+
|
|
27
|
+
Usage: ./check-status.sh [repos]
|
|
28
|
+
|
|
29
|
+
Arguments:
|
|
30
|
+
repos Which repos to check (default: all)
|
|
31
|
+
Options: api, ui, all
|
|
32
|
+
|
|
33
|
+
Features:
|
|
34
|
+
- Color-coded status output
|
|
35
|
+
- Shows uncommitted changes
|
|
36
|
+
- Shows unpushed commits
|
|
37
|
+
- Shows branch sync status
|
|
38
|
+
- Summary of all repos
|
|
39
|
+
- Highlights issues requiring attention
|
|
40
|
+
- Worktree-aware
|
|
41
|
+
|
|
42
|
+
Examples:
|
|
43
|
+
# Check all repos
|
|
44
|
+
./check-status.sh
|
|
45
|
+
|
|
46
|
+
# Check specific repo
|
|
47
|
+
./check-status.sh api
|
|
48
|
+
|
|
49
|
+
EOF
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
REPOS="all"
|
|
53
|
+
|
|
54
|
+
# Parse arguments
|
|
55
|
+
for arg in "$@"; do
|
|
56
|
+
case $arg in
|
|
57
|
+
-h|--help)
|
|
58
|
+
show_help
|
|
59
|
+
exit 0
|
|
60
|
+
;;
|
|
61
|
+
api|ui|all)
|
|
62
|
+
REPOS="$arg"
|
|
63
|
+
;;
|
|
64
|
+
*)
|
|
65
|
+
echo "❌ Unknown argument: $arg"
|
|
66
|
+
show_help
|
|
67
|
+
exit 1
|
|
68
|
+
;;
|
|
69
|
+
esac
|
|
70
|
+
done
|
|
71
|
+
|
|
72
|
+
# Detect if we're in a worktree
|
|
73
|
+
CURRENT_DIR=$(pwd)
|
|
74
|
+
if [[ "$CURRENT_DIR" == *"/worktrees/"* ]]; then
|
|
75
|
+
WORKTREE_NAME=$(echo "$CURRENT_DIR" | sed -E 's|.*/worktrees/([^/]+).*|\1|')
|
|
76
|
+
REPO_BASE="$PROJECT_ROOT/worktrees/$WORKTREE_NAME"
|
|
77
|
+
echo -e "${CYAN}📂 Worktree: $WORKTREE_NAME${NC}"
|
|
78
|
+
else
|
|
79
|
+
REPO_BASE="$PROJECT_ROOT"
|
|
80
|
+
echo -e "${CYAN}📂 Main checkout${NC}"
|
|
81
|
+
fi
|
|
82
|
+
|
|
83
|
+
declare -a CLEAN_REPOS=()
|
|
84
|
+
declare -a DIRTY_REPOS=()
|
|
85
|
+
declare -a AHEAD_REPOS=()
|
|
86
|
+
declare -a BEHIND_REPOS=()
|
|
87
|
+
|
|
88
|
+
# Check status of a repo
|
|
89
|
+
check_repo_status() {
|
|
90
|
+
local repo_path=$1
|
|
91
|
+
local repo_name=$2
|
|
92
|
+
|
|
93
|
+
if [ ! -d "$repo_path" ]; then
|
|
94
|
+
return
|
|
95
|
+
fi
|
|
96
|
+
|
|
97
|
+
cd "$repo_path"
|
|
98
|
+
|
|
99
|
+
echo ""
|
|
100
|
+
echo -e "${BLUE}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"
|
|
101
|
+
echo -e "${BLUE}📦 $repo_name${NC}"
|
|
102
|
+
echo -e "${BLUE}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"
|
|
103
|
+
|
|
104
|
+
# Get current branch
|
|
105
|
+
CURRENT_BRANCH=$(git branch --show-current)
|
|
106
|
+
|
|
107
|
+
if [ -z "$CURRENT_BRANCH" ]; then
|
|
108
|
+
echo -e " ${RED}⚠️ Detached HEAD${NC}"
|
|
109
|
+
return
|
|
110
|
+
fi
|
|
111
|
+
|
|
112
|
+
echo -e " Branch: ${CYAN}$CURRENT_BRANCH${NC}"
|
|
113
|
+
|
|
114
|
+
# Check for uncommitted changes
|
|
115
|
+
if ! git diff-index --quiet HEAD -- 2>/dev/null; then
|
|
116
|
+
echo -e " Status: ${YELLOW}⚠️ Uncommitted changes${NC}"
|
|
117
|
+
DIRTY_REPOS+=("$repo_name")
|
|
118
|
+
|
|
119
|
+
# Show what's changed
|
|
120
|
+
MODIFIED=$(git diff --name-only | wc -l | tr -d ' ')
|
|
121
|
+
STAGED=$(git diff --cached --name-only | wc -l | tr -d ' ')
|
|
122
|
+
|
|
123
|
+
if [ "$STAGED" -gt 0 ]; then
|
|
124
|
+
echo -e " ${GREEN}Staged: $STAGED files${NC}"
|
|
125
|
+
fi
|
|
126
|
+
if [ "$MODIFIED" -gt 0 ]; then
|
|
127
|
+
echo -e " ${YELLOW}Modified: $MODIFIED files${NC}"
|
|
128
|
+
fi
|
|
129
|
+
|
|
130
|
+
# Show short status
|
|
131
|
+
echo ""
|
|
132
|
+
git status --short | sed 's/^/ /'
|
|
133
|
+
else
|
|
134
|
+
echo -e " Status: ${GREEN}✓ Clean${NC}"
|
|
135
|
+
CLEAN_REPOS+=("$repo_name")
|
|
136
|
+
fi
|
|
137
|
+
|
|
138
|
+
# Check remote tracking
|
|
139
|
+
UPSTREAM=$(git rev-parse --abbrev-ref --symbolic-full-name @{u} 2>/dev/null || echo "none")
|
|
140
|
+
|
|
141
|
+
if [ "$UPSTREAM" = "none" ]; then
|
|
142
|
+
echo -e " Remote: ${YELLOW}⚠️ Not tracking remote${NC}"
|
|
143
|
+
else
|
|
144
|
+
echo -e " Remote: ${CYAN}$UPSTREAM${NC}"
|
|
145
|
+
|
|
146
|
+
# Fetch to get latest remote info
|
|
147
|
+
git fetch origin "$CURRENT_BRANCH" --quiet 2>/dev/null || true
|
|
148
|
+
|
|
149
|
+
# Check sync status
|
|
150
|
+
LOCAL=$(git rev-parse @ 2>/dev/null)
|
|
151
|
+
REMOTE=$(git rev-parse @{u} 2>/dev/null || echo "none")
|
|
152
|
+
|
|
153
|
+
if [ "$REMOTE" = "none" ]; then
|
|
154
|
+
echo -e " Sync: ${YELLOW}⚠️ No remote branch${NC}"
|
|
155
|
+
elif [ "$LOCAL" = "$REMOTE" ]; then
|
|
156
|
+
echo -e " Sync: ${GREEN}✓ Up to date${NC}"
|
|
157
|
+
else
|
|
158
|
+
AHEAD=$(git rev-list --count @{u}..HEAD 2>/dev/null || echo "0")
|
|
159
|
+
BEHIND=$(git rev-list --count HEAD..@{u} 2>/dev/null || echo "0")
|
|
160
|
+
|
|
161
|
+
if [ "$AHEAD" -gt 0 ] && [ "$BEHIND" -gt 0 ]; then
|
|
162
|
+
echo -e " Sync: ${RED}⚠️ Diverged ($AHEAD ahead, $BEHIND behind)${NC}"
|
|
163
|
+
elif [ "$AHEAD" -gt 0 ]; then
|
|
164
|
+
echo -e " Sync: ${YELLOW}⬆️ $AHEAD commit(s) ahead${NC}"
|
|
165
|
+
AHEAD_REPOS+=("$repo_name ($AHEAD ahead)")
|
|
166
|
+
elif [ "$BEHIND" -gt 0 ]; then
|
|
167
|
+
echo -e " Sync: ${YELLOW}⬇️ $BEHIND commit(s) behind${NC}"
|
|
168
|
+
BEHIND_REPOS+=("$repo_name ($BEHIND behind)")
|
|
169
|
+
fi
|
|
170
|
+
fi
|
|
171
|
+
fi
|
|
172
|
+
|
|
173
|
+
# Show last commit
|
|
174
|
+
LAST_COMMIT=$(git log -1 --format="%h - %s" 2>/dev/null)
|
|
175
|
+
echo -e " Last: ${CYAN}$LAST_COMMIT${NC}"
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
echo ""
|
|
179
|
+
echo "🔍 Checking repository status..."
|
|
180
|
+
echo " Repos: $REPOS"
|
|
181
|
+
|
|
182
|
+
# Check repos
|
|
183
|
+
case "$REPOS" in
|
|
184
|
+
api)
|
|
185
|
+
check_repo_status "$REPO_BASE/Pennyfarthing-api" "Pennyfarthing-api"
|
|
186
|
+
;;
|
|
187
|
+
ui)
|
|
188
|
+
check_repo_status "$REPO_BASE/Pennyfarthing-ui" "Pennyfarthing-ui"
|
|
189
|
+
;;
|
|
190
|
+
all)
|
|
191
|
+
check_repo_status "$REPO_BASE/Pennyfarthing-api" "Pennyfarthing-api"
|
|
192
|
+
check_repo_status "$REPO_BASE/Pennyfarthing-ui" "Pennyfarthing-ui"
|
|
193
|
+
;;
|
|
194
|
+
esac
|
|
195
|
+
|
|
196
|
+
# Summary
|
|
197
|
+
echo ""
|
|
198
|
+
echo -e "${BLUE}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"
|
|
199
|
+
echo "📊 Summary"
|
|
200
|
+
echo -e "${BLUE}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"
|
|
201
|
+
|
|
202
|
+
if [ ${#CLEAN_REPOS[@]} -gt 0 ]; then
|
|
203
|
+
echo ""
|
|
204
|
+
echo -e "${GREEN}✓ Clean (${#CLEAN_REPOS[@]}):${NC}"
|
|
205
|
+
for repo in "${CLEAN_REPOS[@]}"; do
|
|
206
|
+
echo -e " ${GREEN}✓${NC} $repo"
|
|
207
|
+
done
|
|
208
|
+
fi
|
|
209
|
+
|
|
210
|
+
if [ ${#DIRTY_REPOS[@]} -gt 0 ]; then
|
|
211
|
+
echo ""
|
|
212
|
+
echo -e "${YELLOW}⚠️ Uncommitted Changes (${#DIRTY_REPOS[@]}):${NC}"
|
|
213
|
+
for repo in "${DIRTY_REPOS[@]}"; do
|
|
214
|
+
echo -e " ${YELLOW}•${NC} $repo"
|
|
215
|
+
done
|
|
216
|
+
fi
|
|
217
|
+
|
|
218
|
+
if [ ${#AHEAD_REPOS[@]} -gt 0 ]; then
|
|
219
|
+
echo ""
|
|
220
|
+
echo -e "${YELLOW}⬆️ Ahead of Remote (${#AHEAD_REPOS[@]}):${NC}"
|
|
221
|
+
for repo in "${AHEAD_REPOS[@]}"; do
|
|
222
|
+
echo -e " ${YELLOW}⬆${NC} $repo"
|
|
223
|
+
done
|
|
224
|
+
echo -e " ${CYAN}Tip: Run ./scripts/commit-and-push.sh or git push${NC}"
|
|
225
|
+
fi
|
|
226
|
+
|
|
227
|
+
if [ ${#BEHIND_REPOS[@]} -gt 0 ]; then
|
|
228
|
+
echo ""
|
|
229
|
+
echo -e "${YELLOW}⬇️ Behind Remote (${#BEHIND_REPOS[@]}):${NC}"
|
|
230
|
+
for repo in "${BEHIND_REPOS[@]}"; do
|
|
231
|
+
echo -e " ${YELLOW}⬇${NC} $repo"
|
|
232
|
+
done
|
|
233
|
+
echo -e " ${CYAN}Tip: Run git pull to update${NC}"
|
|
234
|
+
fi
|
|
235
|
+
|
|
236
|
+
echo ""
|
|
237
|
+
echo -e "${BLUE}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"
|
|
238
|
+
|
|
239
|
+
TOTAL_REPOS=$((${#CLEAN_REPOS[@]} + ${#DIRTY_REPOS[@]}))
|
|
240
|
+
|
|
241
|
+
if [ ${#DIRTY_REPOS[@]} -eq 0 ] && [ ${#AHEAD_REPOS[@]} -eq 0 ] && [ ${#BEHIND_REPOS[@]} -eq 0 ]; then
|
|
242
|
+
echo -e "${GREEN}✅ All repositories are clean and in sync!${NC}"
|
|
243
|
+
else
|
|
244
|
+
echo -e "${YELLOW}⚠️ ${#DIRTY_REPOS[@]} repo(s) with changes, ${#AHEAD_REPOS[@]} ahead, ${#BEHIND_REPOS[@]} behind${NC}"
|
|
245
|
+
fi
|
|
246
|
+
|
|
247
|
+
echo -e "${BLUE}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"
|