@pennyfarthing/core 7.4.1 → 7.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{packages/core/dist → dist}/cli/utils/files.d.ts +0 -1
- package/dist/cli/utils/files.js +179 -0
- package/{packages/core/dist → dist}/cli/utils/manifest.d.ts +0 -1
- package/dist/cli/utils/manifest.js +93 -0
- package/{packages/core/dist → dist}/cli/utils/version.d.ts +0 -1
- package/dist/cli/utils/version.js +70 -0
- package/{packages/core/dist → dist}/index.d.ts +0 -1
- package/dist/index.js +48 -0
- package/{packages/core/dist → dist}/permissions/index.d.ts +0 -1
- package/dist/permissions/index.js +16 -0
- package/{packages/core/dist → dist}/permissions/permission-schema.d.ts +0 -1
- package/{packages/core/dist → dist}/permissions/permission-schema.js +13 -9
- package/{packages/core/dist → dist}/scripts/job-fair-aggregator.d.ts +0 -1
- package/dist/scripts/job-fair-aggregator.js +690 -0
- package/{packages/core/dist → dist}/workflow/index.d.ts +0 -1
- package/dist/workflow/index.js +31 -0
- package/{packages/core/dist → dist}/workflow/workflow-loader.d.ts +0 -1
- package/{packages/core/dist → dist}/workflow/workflow-loader.js +40 -34
- package/{packages/core/dist → dist}/workflow/workflow-permissions.d.ts +0 -1
- package/{packages/core/dist → dist}/workflow/workflow-permissions.js +14 -8
- package/{packages/core/dist → dist}/workflow/workflow-router.d.ts +0 -1
- package/{packages/core/dist → dist}/workflow/workflow-router.js +70 -51
- package/{packages/core/dist → dist}/workflow/workflow-schema.d.ts +0 -1
- package/{packages/core/dist → dist}/workflow/workflow-schema.js +62 -59
- package/package.json +36 -31
- package/LICENSE +0 -14
- package/README.md +0 -301
- package/packages/core/dist/bmad/context-reader.d.ts +0 -71
- package/packages/core/dist/bmad/context-reader.d.ts.map +0 -1
- package/packages/core/dist/bmad/context-reader.js +0 -369
- package/packages/core/dist/bmad/context-reader.js.map +0 -1
- package/packages/core/dist/bmad/context-reader.test.d.ts +0 -71
- package/packages/core/dist/bmad/context-reader.test.d.ts.map +0 -1
- package/packages/core/dist/bmad/context-reader.test.js +0 -878
- package/packages/core/dist/bmad/context-reader.test.js.map +0 -1
- package/packages/core/dist/bmad/epics-parser.d.ts +0 -61
- package/packages/core/dist/bmad/epics-parser.d.ts.map +0 -1
- package/packages/core/dist/bmad/epics-parser.js +0 -331
- package/packages/core/dist/bmad/epics-parser.js.map +0 -1
- package/packages/core/dist/bmad/epics-parser.test.d.ts +0 -7
- package/packages/core/dist/bmad/epics-parser.test.d.ts.map +0 -1
- package/packages/core/dist/bmad/epics-parser.test.js +0 -449
- package/packages/core/dist/bmad/epics-parser.test.js.map +0 -1
- package/packages/core/dist/bmad/index.d.ts +0 -11
- package/packages/core/dist/bmad/index.d.ts.map +0 -1
- package/packages/core/dist/bmad/index.js +0 -24
- package/packages/core/dist/bmad/index.js.map +0 -1
- package/packages/core/dist/bmad/status-sync.d.ts +0 -173
- package/packages/core/dist/bmad/status-sync.d.ts.map +0 -1
- package/packages/core/dist/bmad/status-sync.js +0 -463
- package/packages/core/dist/bmad/status-sync.js.map +0 -1
- package/packages/core/dist/bmad/status-sync.test.d.ts +0 -7
- package/packages/core/dist/bmad/status-sync.test.d.ts.map +0 -1
- package/packages/core/dist/bmad/status-sync.test.js +0 -702
- package/packages/core/dist/bmad/status-sync.test.js.map +0 -1
- package/packages/core/dist/bmad/story-exporter.d.ts +0 -55
- package/packages/core/dist/bmad/story-exporter.d.ts.map +0 -1
- package/packages/core/dist/bmad/story-exporter.js +0 -170
- package/packages/core/dist/bmad/story-exporter.js.map +0 -1
- package/packages/core/dist/bmad/story-exporter.test.d.ts +0 -51
- package/packages/core/dist/bmad/story-exporter.test.d.ts.map +0 -1
- package/packages/core/dist/bmad/story-exporter.test.js +0 -603
- package/packages/core/dist/bmad/story-exporter.test.js.map +0 -1
- package/packages/core/dist/bmad/story-parser.d.ts +0 -44
- package/packages/core/dist/bmad/story-parser.d.ts.map +0 -1
- package/packages/core/dist/bmad/story-parser.js +0 -307
- package/packages/core/dist/bmad/story-parser.js.map +0 -1
- package/packages/core/dist/bmad/story-parser.test.d.ts +0 -44
- package/packages/core/dist/bmad/story-parser.test.d.ts.map +0 -1
- package/packages/core/dist/bmad/story-parser.test.js +0 -693
- package/packages/core/dist/bmad/story-parser.test.js.map +0 -1
- package/packages/core/dist/cli/commands/command.d.ts +0 -28
- package/packages/core/dist/cli/commands/command.d.ts.map +0 -1
- package/packages/core/dist/cli/commands/command.js +0 -399
- package/packages/core/dist/cli/commands/command.js.map +0 -1
- package/packages/core/dist/cli/commands/cyclist.d.ts +0 -46
- package/packages/core/dist/cli/commands/cyclist.d.ts.map +0 -1
- package/packages/core/dist/cli/commands/cyclist.js +0 -196
- package/packages/core/dist/cli/commands/cyclist.js.map +0 -1
- package/packages/core/dist/cli/commands/cyclist.test.d.ts +0 -13
- package/packages/core/dist/cli/commands/cyclist.test.d.ts.map +0 -1
- package/packages/core/dist/cli/commands/cyclist.test.js +0 -245
- package/packages/core/dist/cli/commands/cyclist.test.js.map +0 -1
- package/packages/core/dist/cli/commands/doctor.d.ts +0 -9
- package/packages/core/dist/cli/commands/doctor.d.ts.map +0 -1
- package/packages/core/dist/cli/commands/doctor.js +0 -652
- package/packages/core/dist/cli/commands/doctor.js.map +0 -1
- package/packages/core/dist/cli/commands/init.d.ts +0 -8
- package/packages/core/dist/cli/commands/init.d.ts.map +0 -1
- package/packages/core/dist/cli/commands/init.js +0 -525
- package/packages/core/dist/cli/commands/init.js.map +0 -1
- package/packages/core/dist/cli/commands/skill.d.ts +0 -28
- package/packages/core/dist/cli/commands/skill.d.ts.map +0 -1
- package/packages/core/dist/cli/commands/skill.js +0 -416
- package/packages/core/dist/cli/commands/skill.js.map +0 -1
- package/packages/core/dist/cli/commands/theme.d.ts +0 -21
- package/packages/core/dist/cli/commands/theme.d.ts.map +0 -1
- package/packages/core/dist/cli/commands/theme.js +0 -201
- package/packages/core/dist/cli/commands/theme.js.map +0 -1
- package/packages/core/dist/cli/commands/uninstall.d.ts +0 -8
- package/packages/core/dist/cli/commands/uninstall.d.ts.map +0 -1
- package/packages/core/dist/cli/commands/uninstall.js +0 -237
- package/packages/core/dist/cli/commands/uninstall.js.map +0 -1
- package/packages/core/dist/cli/commands/update.d.ts +0 -9
- package/packages/core/dist/cli/commands/update.d.ts.map +0 -1
- package/packages/core/dist/cli/commands/update.js +0 -421
- package/packages/core/dist/cli/commands/update.js.map +0 -1
- package/packages/core/dist/cli/commands/version.d.ts +0 -2
- package/packages/core/dist/cli/commands/version.d.ts.map +0 -1
- package/packages/core/dist/cli/commands/version.js +0 -28
- package/packages/core/dist/cli/commands/version.js.map +0 -1
- package/packages/core/dist/cli/customization.test.d.ts +0 -12
- package/packages/core/dist/cli/customization.test.d.ts.map +0 -1
- package/packages/core/dist/cli/customization.test.js +0 -84
- package/packages/core/dist/cli/customization.test.js.map +0 -1
- package/packages/core/dist/cli/cyclist-migration.test.d.ts +0 -16
- package/packages/core/dist/cli/cyclist-migration.test.d.ts.map +0 -1
- package/packages/core/dist/cli/cyclist-migration.test.js +0 -225
- package/packages/core/dist/cli/cyclist-migration.test.js.map +0 -1
- package/packages/core/dist/cli/index.d.ts +0 -3
- package/packages/core/dist/cli/index.d.ts.map +0 -1
- package/packages/core/dist/cli/index.js +0 -174
- package/packages/core/dist/cli/index.js.map +0 -1
- package/packages/core/dist/cli/ocean-profiles.test.d.ts +0 -13
- package/packages/core/dist/cli/ocean-profiles.test.d.ts.map +0 -1
- package/packages/core/dist/cli/ocean-profiles.test.js +0 -134
- package/packages/core/dist/cli/ocean-profiles.test.js.map +0 -1
- package/packages/core/dist/cli/theme-maker.test.d.ts +0 -11
- package/packages/core/dist/cli/theme-maker.test.d.ts.map +0 -1
- package/packages/core/dist/cli/theme-maker.test.js +0 -356
- package/packages/core/dist/cli/theme-maker.test.js.map +0 -1
- package/packages/core/dist/cli/utils/constants.d.ts +0 -66
- package/packages/core/dist/cli/utils/constants.d.ts.map +0 -1
- package/packages/core/dist/cli/utils/constants.js +0 -54
- package/packages/core/dist/cli/utils/constants.js.map +0 -1
- package/packages/core/dist/cli/utils/files.d.ts.map +0 -1
- package/packages/core/dist/cli/utils/files.js +0 -162
- package/packages/core/dist/cli/utils/files.js.map +0 -1
- package/packages/core/dist/cli/utils/logger.d.ts +0 -26
- package/packages/core/dist/cli/utils/logger.d.ts.map +0 -1
- package/packages/core/dist/cli/utils/logger.js +0 -88
- package/packages/core/dist/cli/utils/logger.js.map +0 -1
- package/packages/core/dist/cli/utils/manifest.d.ts.map +0 -1
- package/packages/core/dist/cli/utils/manifest.js +0 -90
- package/packages/core/dist/cli/utils/manifest.js.map +0 -1
- package/packages/core/dist/cli/utils/node-modules.d.ts +0 -6
- package/packages/core/dist/cli/utils/node-modules.d.ts.map +0 -1
- package/packages/core/dist/cli/utils/node-modules.js +0 -32
- package/packages/core/dist/cli/utils/node-modules.js.map +0 -1
- package/packages/core/dist/cli/utils/prompts.d.ts +0 -34
- package/packages/core/dist/cli/utils/prompts.d.ts.map +0 -1
- package/packages/core/dist/cli/utils/prompts.js +0 -93
- package/packages/core/dist/cli/utils/prompts.js.map +0 -1
- package/packages/core/dist/cli/utils/symlinks.d.ts +0 -29
- package/packages/core/dist/cli/utils/symlinks.d.ts.map +0 -1
- package/packages/core/dist/cli/utils/symlinks.js +0 -181
- package/packages/core/dist/cli/utils/symlinks.js.map +0 -1
- package/packages/core/dist/cli/utils/themes.d.ts +0 -101
- package/packages/core/dist/cli/utils/themes.d.ts.map +0 -1
- package/packages/core/dist/cli/utils/themes.js +0 -373
- package/packages/core/dist/cli/utils/themes.js.map +0 -1
- package/packages/core/dist/cli/utils/themes.test.d.ts +0 -12
- package/packages/core/dist/cli/utils/themes.test.d.ts.map +0 -1
- package/packages/core/dist/cli/utils/themes.test.js +0 -147
- package/packages/core/dist/cli/utils/themes.test.js.map +0 -1
- package/packages/core/dist/cli/utils/version.d.ts.map +0 -1
- package/packages/core/dist/cli/utils/version.js +0 -64
- package/packages/core/dist/cli/utils/version.js.map +0 -1
- package/packages/core/dist/cli/workspace.test.d.ts +0 -8
- package/packages/core/dist/cli/workspace.test.d.ts.map +0 -1
- package/packages/core/dist/cli/workspace.test.js +0 -156
- package/packages/core/dist/cli/workspace.test.js.map +0 -1
- package/packages/core/dist/index.d.ts.map +0 -1
- package/packages/core/dist/index.js +0 -20
- package/packages/core/dist/index.js.map +0 -1
- package/packages/core/dist/jira/jira-epic-creation.d.ts +0 -109
- package/packages/core/dist/jira/jira-epic-creation.d.ts.map +0 -1
- package/packages/core/dist/jira/jira-epic-creation.js +0 -253
- package/packages/core/dist/jira/jira-epic-creation.js.map +0 -1
- package/packages/core/dist/jira/jira-epic-creation.test.d.ts +0 -16
- package/packages/core/dist/jira/jira-epic-creation.test.d.ts.map +0 -1
- package/packages/core/dist/jira/jira-epic-creation.test.js +0 -387
- package/packages/core/dist/jira/jira-epic-creation.test.js.map +0 -1
- package/packages/core/dist/jira/jira-sprint-sync.d.ts +0 -247
- package/packages/core/dist/jira/jira-sprint-sync.d.ts.map +0 -1
- package/packages/core/dist/jira/jira-sprint-sync.js +0 -670
- package/packages/core/dist/jira/jira-sprint-sync.js.map +0 -1
- package/packages/core/dist/jira/jira-sprint-sync.test.d.ts +0 -16
- package/packages/core/dist/jira/jira-sprint-sync.test.d.ts.map +0 -1
- package/packages/core/dist/jira/jira-sprint-sync.test.js +0 -845
- package/packages/core/dist/jira/jira-sprint-sync.test.js.map +0 -1
- package/packages/core/dist/permissions/index.d.ts.map +0 -1
- package/packages/core/dist/permissions/index.js +0 -13
- package/packages/core/dist/permissions/index.js.map +0 -1
- package/packages/core/dist/permissions/permission-schema.d.ts.map +0 -1
- package/packages/core/dist/permissions/permission-schema.js.map +0 -1
- package/packages/core/dist/permissions/permission-schema.test.d.ts +0 -40
- package/packages/core/dist/permissions/permission-schema.test.d.ts.map +0 -1
- package/packages/core/dist/permissions/permission-schema.test.js +0 -367
- package/packages/core/dist/permissions/permission-schema.test.js.map +0 -1
- package/packages/core/dist/scripts/add-ocean-profiles.d.ts +0 -9
- package/packages/core/dist/scripts/add-ocean-profiles.d.ts.map +0 -1
- package/packages/core/dist/scripts/add-ocean-profiles.js +0 -695
- package/packages/core/dist/scripts/add-ocean-profiles.js.map +0 -1
- package/packages/core/dist/scripts/benchmark-integration.d.ts +0 -182
- package/packages/core/dist/scripts/benchmark-integration.d.ts.map +0 -1
- package/packages/core/dist/scripts/benchmark-integration.js +0 -691
- package/packages/core/dist/scripts/benchmark-integration.js.map +0 -1
- package/packages/core/dist/scripts/benchmark-integration.test.d.ts +0 -13
- package/packages/core/dist/scripts/benchmark-integration.test.d.ts.map +0 -1
- package/packages/core/dist/scripts/benchmark-integration.test.js +0 -680
- package/packages/core/dist/scripts/benchmark-integration.test.js.map +0 -1
- package/packages/core/dist/scripts/debugging-scenarios.test.d.ts +0 -18
- package/packages/core/dist/scripts/debugging-scenarios.test.d.ts.map +0 -1
- package/packages/core/dist/scripts/debugging-scenarios.test.js +0 -317
- package/packages/core/dist/scripts/debugging-scenarios.test.js.map +0 -1
- package/packages/core/dist/scripts/generate-all-spiders.d.ts +0 -10
- package/packages/core/dist/scripts/generate-all-spiders.d.ts.map +0 -1
- package/packages/core/dist/scripts/generate-all-spiders.js +0 -306
- package/packages/core/dist/scripts/generate-all-spiders.js.map +0 -1
- package/packages/core/dist/scripts/generate-report.d.ts +0 -65
- package/packages/core/dist/scripts/generate-report.d.ts.map +0 -1
- package/packages/core/dist/scripts/generate-report.js +0 -378
- package/packages/core/dist/scripts/generate-report.js.map +0 -1
- package/packages/core/dist/scripts/generate-report.test.d.ts +0 -13
- package/packages/core/dist/scripts/generate-report.test.d.ts.map +0 -1
- package/packages/core/dist/scripts/generate-report.test.js +0 -363
- package/packages/core/dist/scripts/generate-report.test.js.map +0 -1
- package/packages/core/dist/scripts/generate-spider-report.d.ts +0 -65
- package/packages/core/dist/scripts/generate-spider-report.d.ts.map +0 -1
- package/packages/core/dist/scripts/generate-spider-report.js +0 -366
- package/packages/core/dist/scripts/generate-spider-report.js.map +0 -1
- package/packages/core/dist/scripts/generate-spider-report.test.d.ts +0 -13
- package/packages/core/dist/scripts/generate-spider-report.test.d.ts.map +0 -1
- package/packages/core/dist/scripts/generate-spider-report.test.js +0 -367
- package/packages/core/dist/scripts/generate-spider-report.test.js.map +0 -1
- package/packages/core/dist/scripts/generate-spider.d.ts +0 -47
- package/packages/core/dist/scripts/generate-spider.d.ts.map +0 -1
- package/packages/core/dist/scripts/generate-spider.js +0 -338
- package/packages/core/dist/scripts/generate-spider.js.map +0 -1
- package/packages/core/dist/scripts/generate-spider.test.d.ts +0 -14
- package/packages/core/dist/scripts/generate-spider.test.d.ts.map +0 -1
- package/packages/core/dist/scripts/generate-spider.test.js +0 -271
- package/packages/core/dist/scripts/generate-spider.test.js.map +0 -1
- package/packages/core/dist/scripts/job-fair-aggregator.d.ts.map +0 -1
- package/packages/core/dist/scripts/job-fair-aggregator.js +0 -547
- package/packages/core/dist/scripts/job-fair-aggregator.js.map +0 -1
- package/packages/core/dist/scripts/job-fair-aggregator.test.d.ts +0 -14
- package/packages/core/dist/scripts/job-fair-aggregator.test.d.ts.map +0 -1
- package/packages/core/dist/scripts/job-fair-aggregator.test.js +0 -616
- package/packages/core/dist/scripts/job-fair-aggregator.test.js.map +0 -1
- package/packages/core/dist/scripts/run-ci.test.d.ts +0 -20
- package/packages/core/dist/scripts/run-ci.test.d.ts.map +0 -1
- package/packages/core/dist/scripts/run-ci.test.js +0 -127
- package/packages/core/dist/scripts/run-ci.test.js.map +0 -1
- package/packages/core/dist/scripts/theme-detail.test.d.ts +0 -10
- package/packages/core/dist/scripts/theme-detail.test.d.ts.map +0 -1
- package/packages/core/dist/scripts/theme-detail.test.js +0 -199
- package/packages/core/dist/scripts/theme-detail.test.js.map +0 -1
- package/packages/core/dist/scripts/validate-ocean-profiles.d.ts +0 -9
- package/packages/core/dist/scripts/validate-ocean-profiles.d.ts.map +0 -1
- package/packages/core/dist/scripts/validate-ocean-profiles.js +0 -130
- package/packages/core/dist/scripts/validate-ocean-profiles.js.map +0 -1
- package/packages/core/dist/workflow/gate-handler.d.ts +0 -94
- package/packages/core/dist/workflow/gate-handler.d.ts.map +0 -1
- package/packages/core/dist/workflow/gate-handler.js +0 -189
- package/packages/core/dist/workflow/gate-handler.js.map +0 -1
- package/packages/core/dist/workflow/gate-handler.test.d.ts +0 -14
- package/packages/core/dist/workflow/gate-handler.test.d.ts.map +0 -1
- package/packages/core/dist/workflow/gate-handler.test.js +0 -543
- package/packages/core/dist/workflow/gate-handler.test.js.map +0 -1
- package/packages/core/dist/workflow/generic-handoff.d.ts +0 -281
- package/packages/core/dist/workflow/generic-handoff.d.ts.map +0 -1
- package/packages/core/dist/workflow/generic-handoff.js +0 -411
- package/packages/core/dist/workflow/generic-handoff.js.map +0 -1
- package/packages/core/dist/workflow/generic-handoff.test.d.ts +0 -21
- package/packages/core/dist/workflow/generic-handoff.test.d.ts.map +0 -1
- package/packages/core/dist/workflow/generic-handoff.test.js +0 -499
- package/packages/core/dist/workflow/generic-handoff.test.js.map +0 -1
- package/packages/core/dist/workflow/generic-sm-finish.d.ts +0 -89
- package/packages/core/dist/workflow/generic-sm-finish.d.ts.map +0 -1
- package/packages/core/dist/workflow/generic-sm-finish.js +0 -157
- package/packages/core/dist/workflow/generic-sm-finish.js.map +0 -1
- package/packages/core/dist/workflow/generic-sm-setup.d.ts +0 -138
- package/packages/core/dist/workflow/generic-sm-setup.d.ts.map +0 -1
- package/packages/core/dist/workflow/generic-sm-setup.js +0 -382
- package/packages/core/dist/workflow/generic-sm-setup.js.map +0 -1
- package/packages/core/dist/workflow/handoff.d.ts +0 -281
- package/packages/core/dist/workflow/handoff.d.ts.map +0 -1
- package/packages/core/dist/workflow/handoff.js +0 -411
- package/packages/core/dist/workflow/handoff.js.map +0 -1
- package/packages/core/dist/workflow/handoff.test.d.ts +0 -21
- package/packages/core/dist/workflow/handoff.test.d.ts.map +0 -1
- package/packages/core/dist/workflow/handoff.test.js +0 -499
- package/packages/core/dist/workflow/handoff.test.js.map +0 -1
- package/packages/core/dist/workflow/index.d.ts.map +0 -1
- package/packages/core/dist/workflow/index.js +0 -24
- package/packages/core/dist/workflow/index.js.map +0 -1
- package/packages/core/dist/workflow/session-state.d.ts +0 -92
- package/packages/core/dist/workflow/session-state.d.ts.map +0 -1
- package/packages/core/dist/workflow/session-state.js +0 -198
- package/packages/core/dist/workflow/session-state.js.map +0 -1
- package/packages/core/dist/workflow/session-state.test.d.ts +0 -8
- package/packages/core/dist/workflow/session-state.test.d.ts.map +0 -1
- package/packages/core/dist/workflow/session-state.test.js +0 -551
- package/packages/core/dist/workflow/session-state.test.js.map +0 -1
- package/packages/core/dist/workflow/sm-subagents.test.d.ts +0 -23
- package/packages/core/dist/workflow/sm-subagents.test.d.ts.map +0 -1
- package/packages/core/dist/workflow/sm-subagents.test.js +0 -727
- package/packages/core/dist/workflow/sm-subagents.test.js.map +0 -1
- package/packages/core/dist/workflow/step-parser.d.ts +0 -45
- package/packages/core/dist/workflow/step-parser.d.ts.map +0 -1
- package/packages/core/dist/workflow/step-parser.js +0 -147
- package/packages/core/dist/workflow/step-parser.js.map +0 -1
- package/packages/core/dist/workflow/step-parser.test.d.ts +0 -14
- package/packages/core/dist/workflow/step-parser.test.d.ts.map +0 -1
- package/packages/core/dist/workflow/step-parser.test.js +0 -470
- package/packages/core/dist/workflow/step-parser.test.js.map +0 -1
- package/packages/core/dist/workflow/story-workflow-routing.test.d.ts +0 -17
- package/packages/core/dist/workflow/story-workflow-routing.test.d.ts.map +0 -1
- package/packages/core/dist/workflow/story-workflow-routing.test.js +0 -559
- package/packages/core/dist/workflow/story-workflow-routing.test.js.map +0 -1
- package/packages/core/dist/workflow/test-cache.d.ts +0 -131
- package/packages/core/dist/workflow/test-cache.d.ts.map +0 -1
- package/packages/core/dist/workflow/test-cache.js +0 -226
- package/packages/core/dist/workflow/test-cache.js.map +0 -1
- package/packages/core/dist/workflow/test-cache.test.d.ts +0 -17
- package/packages/core/dist/workflow/test-cache.test.d.ts.map +0 -1
- package/packages/core/dist/workflow/test-cache.test.js +0 -438
- package/packages/core/dist/workflow/test-cache.test.js.map +0 -1
- package/packages/core/dist/workflow/trimodal.d.ts +0 -86
- package/packages/core/dist/workflow/trimodal.d.ts.map +0 -1
- package/packages/core/dist/workflow/trimodal.js +0 -118
- package/packages/core/dist/workflow/trimodal.js.map +0 -1
- package/packages/core/dist/workflow/trimodal.test.d.ts +0 -11
- package/packages/core/dist/workflow/trimodal.test.d.ts.map +0 -1
- package/packages/core/dist/workflow/trimodal.test.js +0 -395
- package/packages/core/dist/workflow/trimodal.test.js.map +0 -1
- package/packages/core/dist/workflow/variable-resolver.d.ts +0 -67
- package/packages/core/dist/workflow/variable-resolver.d.ts.map +0 -1
- package/packages/core/dist/workflow/variable-resolver.js +0 -156
- package/packages/core/dist/workflow/variable-resolver.js.map +0 -1
- package/packages/core/dist/workflow/variable-resolver.test.d.ts +0 -14
- package/packages/core/dist/workflow/variable-resolver.test.d.ts.map +0 -1
- package/packages/core/dist/workflow/variable-resolver.test.js +0 -400
- package/packages/core/dist/workflow/variable-resolver.test.js.map +0 -1
- package/packages/core/dist/workflow/workflow-executor.d.ts +0 -163
- package/packages/core/dist/workflow/workflow-executor.d.ts.map +0 -1
- package/packages/core/dist/workflow/workflow-executor.js +0 -197
- package/packages/core/dist/workflow/workflow-executor.js.map +0 -1
- package/packages/core/dist/workflow/workflow-executor.test.d.ts +0 -8
- package/packages/core/dist/workflow/workflow-executor.test.d.ts.map +0 -1
- package/packages/core/dist/workflow/workflow-executor.test.js +0 -444
- package/packages/core/dist/workflow/workflow-executor.test.js.map +0 -1
- package/packages/core/dist/workflow/workflow-loader.d.ts.map +0 -1
- package/packages/core/dist/workflow/workflow-loader.js.map +0 -1
- package/packages/core/dist/workflow/workflow-loader.test.d.ts +0 -15
- package/packages/core/dist/workflow/workflow-loader.test.d.ts.map +0 -1
- package/packages/core/dist/workflow/workflow-loader.test.js +0 -354
- package/packages/core/dist/workflow/workflow-loader.test.js.map +0 -1
- package/packages/core/dist/workflow/workflow-migration.test.d.ts +0 -17
- package/packages/core/dist/workflow/workflow-migration.test.d.ts.map +0 -1
- package/packages/core/dist/workflow/workflow-migration.test.js +0 -371
- package/packages/core/dist/workflow/workflow-migration.test.js.map +0 -1
- package/packages/core/dist/workflow/workflow-permissions.d.ts.map +0 -1
- package/packages/core/dist/workflow/workflow-permissions.js.map +0 -1
- package/packages/core/dist/workflow/workflow-permissions.test.d.ts +0 -15
- package/packages/core/dist/workflow/workflow-permissions.test.d.ts.map +0 -1
- package/packages/core/dist/workflow/workflow-permissions.test.js +0 -301
- package/packages/core/dist/workflow/workflow-permissions.test.js.map +0 -1
- package/packages/core/dist/workflow/workflow-router.d.ts.map +0 -1
- package/packages/core/dist/workflow/workflow-router.js.map +0 -1
- package/packages/core/dist/workflow/workflow-router.test.d.ts +0 -20
- package/packages/core/dist/workflow/workflow-router.test.d.ts.map +0 -1
- package/packages/core/dist/workflow/workflow-router.test.js +0 -607
- package/packages/core/dist/workflow/workflow-router.test.js.map +0 -1
- package/packages/core/dist/workflow/workflow-schema.d.ts.map +0 -1
- package/packages/core/dist/workflow/workflow-schema.js.map +0 -1
- package/packages/core/dist/workflow/workflow-schema.test.d.ts +0 -45
- package/packages/core/dist/workflow/workflow-schema.test.d.ts.map +0 -1
- package/packages/core/dist/workflow/workflow-schema.test.js +0 -512
- package/packages/core/dist/workflow/workflow-schema.test.js.map +0 -1
- package/packages/core/dist/workflow/workflow-stepped-schema.test.d.ts +0 -18
- package/packages/core/dist/workflow/workflow-stepped-schema.test.d.ts.map +0 -1
- package/packages/core/dist/workflow/workflow-stepped-schema.test.js +0 -608
- package/packages/core/dist/workflow/workflow-stepped-schema.test.js.map +0 -1
- package/pennyfarthing-dist/agents/README.md +0 -340
- package/pennyfarthing-dist/agents/architect.md +0 -193
- package/pennyfarthing-dist/agents/dev.md +0 -254
- package/pennyfarthing-dist/agents/devops.md +0 -206
- package/pennyfarthing-dist/agents/handoff.md +0 -289
- package/pennyfarthing-dist/agents/orchestrator.md +0 -355
- package/pennyfarthing-dist/agents/pm.md +0 -169
- package/pennyfarthing-dist/agents/reviewer-preflight.md +0 -96
- package/pennyfarthing-dist/agents/reviewer.md +0 -382
- package/pennyfarthing-dist/agents/sm-file-summary.md +0 -58
- package/pennyfarthing-dist/agents/sm-finish.md +0 -61
- package/pennyfarthing-dist/agents/sm-handoff.md +0 -145
- package/pennyfarthing-dist/agents/sm-setup.md +0 -174
- package/pennyfarthing-dist/agents/sm.md +0 -632
- package/pennyfarthing-dist/agents/tea.md +0 -213
- package/pennyfarthing-dist/agents/tech-writer.md +0 -216
- package/pennyfarthing-dist/agents/testing-runner.md +0 -141
- package/pennyfarthing-dist/agents/ux-designer.md +0 -231
- package/pennyfarthing-dist/agents/workflow-status-check.md +0 -68
- package/pennyfarthing-dist/commands/architect.md +0 -62
- package/pennyfarthing-dist/commands/benchmark-control.md +0 -69
- package/pennyfarthing-dist/commands/benchmark.md +0 -467
- package/pennyfarthing-dist/commands/brainstorming.md +0 -91
- package/pennyfarthing-dist/commands/check.md +0 -156
- package/pennyfarthing-dist/commands/chore.md +0 -178
- package/pennyfarthing-dist/commands/close-epic.md +0 -139
- package/pennyfarthing-dist/commands/continue-session.md +0 -184
- package/pennyfarthing-dist/commands/create-branches-from-story.md +0 -358
- package/pennyfarthing-dist/commands/create-theme.md +0 -29
- package/pennyfarthing-dist/commands/dev.md +0 -60
- package/pennyfarthing-dist/commands/devops.md +0 -59
- package/pennyfarthing-dist/commands/git-cleanup.md +0 -340
- package/pennyfarthing-dist/commands/health-check.md +0 -108
- package/pennyfarthing-dist/commands/help.md +0 -264
- package/pennyfarthing-dist/commands/job-fair.md +0 -102
- package/pennyfarthing-dist/commands/list-themes.md +0 -21
- package/pennyfarthing-dist/commands/orchestrator.md +0 -56
- package/pennyfarthing-dist/commands/parallel-work.md +0 -71
- package/pennyfarthing-dist/commands/party-mode.md +0 -67
- package/pennyfarthing-dist/commands/permissions.md +0 -193
- package/pennyfarthing-dist/commands/pm.md +0 -60
- package/pennyfarthing-dist/commands/prime.md +0 -140
- package/pennyfarthing-dist/commands/release.md +0 -58
- package/pennyfarthing-dist/commands/repo-status.md +0 -49
- package/pennyfarthing-dist/commands/retro.md +0 -200
- package/pennyfarthing-dist/commands/reviewer.md +0 -64
- package/pennyfarthing-dist/commands/run-ci.md +0 -116
- package/pennyfarthing-dist/commands/set-theme.md +0 -56
- package/pennyfarthing-dist/commands/show-theme.md +0 -21
- package/pennyfarthing-dist/commands/sm.md +0 -70
- package/pennyfarthing-dist/commands/solo.md +0 -411
- package/pennyfarthing-dist/commands/sprint-planning.md +0 -109
- package/pennyfarthing-dist/commands/start-epic.md +0 -168
- package/pennyfarthing-dist/commands/sync-epic-to-jira.md +0 -184
- package/pennyfarthing-dist/commands/sync-work-with-sprint.md +0 -373
- package/pennyfarthing-dist/commands/tea.md +0 -63
- package/pennyfarthing-dist/commands/tech-writer.md +0 -53
- package/pennyfarthing-dist/commands/theme-maker.md +0 -671
- package/pennyfarthing-dist/commands/update-domain-docs.md +0 -83
- package/pennyfarthing-dist/commands/ux-designer.md +0 -62
- package/pennyfarthing-dist/commands/work.md +0 -122
- package/pennyfarthing-dist/commands/workflow.md +0 -21
- package/pennyfarthing-dist/guides/AGENT-COORDINATION.md +0 -480
- package/pennyfarthing-dist/guides/HOOKS.md +0 -230
- package/pennyfarthing-dist/guides/PROMPT-PATTERNS.md +0 -338
- package/pennyfarthing-dist/guides/SESSION-ARTIFACTS.md +0 -193
- package/pennyfarthing-dist/guides/agent-behavior.md +0 -238
- package/pennyfarthing-dist/guides/agent-template-strategic.md +0 -148
- package/pennyfarthing-dist/guides/agent-template-tactical.md +0 -162
- package/pennyfarthing-dist/guides/patterns/approval-gates-pattern.md +0 -746
- package/pennyfarthing-dist/guides/patterns/fan-out-fan-in-pattern.md +0 -574
- package/pennyfarthing-dist/guides/patterns/helper-delegation-pattern.md +0 -488
- package/pennyfarthing-dist/guides/patterns/tdd-flow-pattern.md +0 -402
- package/pennyfarthing-dist/guides/permission-protocol.md +0 -188
- package/pennyfarthing-dist/guides/persona-loading.md +0 -46
- package/pennyfarthing-dist/guides/workflow-schema.md +0 -257
- package/pennyfarthing-dist/guides/worktree-mode.md +0 -113
- package/pennyfarthing-dist/output-styles/teaching.md +0 -33
- package/pennyfarthing-dist/output-styles/terse.md +0 -20
- package/pennyfarthing-dist/output-styles/verbose.md +0 -28
- package/pennyfarthing-dist/personas/themes/1984.yaml +0 -312
- package/pennyfarthing-dist/personas/themes/a-team.yaml +0 -207
- package/pennyfarthing-dist/personas/themes/agatha-christie.yaml +0 -300
- package/pennyfarthing-dist/personas/themes/alice-in-wonderland.yaml +0 -330
- package/pennyfarthing-dist/personas/themes/all-stars.yaml +0 -332
- package/pennyfarthing-dist/personas/themes/ancient-philosophers.yaml +0 -320
- package/pennyfarthing-dist/personas/themes/ancient-strategists.yaml +0 -306
- package/pennyfarthing-dist/personas/themes/arcane.yaml +0 -288
- package/pennyfarthing-dist/personas/themes/arthurian-mythos.yaml +0 -331
- package/pennyfarthing-dist/personas/themes/avatar-the-last-airbender.yaml +0 -288
- package/pennyfarthing-dist/personas/themes/babylon-5.yaml +0 -288
- package/pennyfarthing-dist/personas/themes/battlestar-galactica.yaml +0 -288
- package/pennyfarthing-dist/personas/themes/better-call-saul.yaml +0 -288
- package/pennyfarthing-dist/personas/themes/big-lebowski.yaml +0 -300
- package/pennyfarthing-dist/personas/themes/black-sails.yaml +0 -300
- package/pennyfarthing-dist/personas/themes/blade-runner.yaml +0 -295
- package/pennyfarthing-dist/personas/themes/bobiverse.yaml +0 -288
- package/pennyfarthing-dist/personas/themes/breaking-bad.yaml +0 -327
- package/pennyfarthing-dist/personas/themes/catch-22.yaml +0 -316
- package/pennyfarthing-dist/personas/themes/classical-composers.yaml +0 -310
- package/pennyfarthing-dist/personas/themes/control.yaml +0 -197
- package/pennyfarthing-dist/personas/themes/count-of-monte-cristo.yaml +0 -320
- package/pennyfarthing-dist/personas/themes/cowboy-bebop.yaml +0 -323
- package/pennyfarthing-dist/personas/themes/deadwood.yaml +0 -300
- package/pennyfarthing-dist/personas/themes/dickens.yaml +0 -320
- package/pennyfarthing-dist/personas/themes/discworld.yaml +0 -332
- package/pennyfarthing-dist/personas/themes/doctor-who.yaml +0 -290
- package/pennyfarthing-dist/personas/themes/don-quixote.yaml +0 -320
- package/pennyfarthing-dist/personas/themes/dune.yaml +0 -307
- package/pennyfarthing-dist/personas/themes/enlightenment-thinkers.yaml +0 -320
- package/pennyfarthing-dist/personas/themes/expeditionary-force.yaml +0 -288
- package/pennyfarthing-dist/personas/themes/fargo.yaml +0 -330
- package/pennyfarthing-dist/personas/themes/film-auteurs.yaml +0 -312
- package/pennyfarthing-dist/personas/themes/firefly.yaml +0 -328
- package/pennyfarthing-dist/personas/themes/foundation.yaml +0 -290
- package/pennyfarthing-dist/personas/themes/futurama.yaml +0 -321
- package/pennyfarthing-dist/personas/themes/game-of-thrones.yaml +0 -290
- package/pennyfarthing-dist/personas/themes/gilligans-island.yaml +0 -243
- package/pennyfarthing-dist/personas/themes/gothic-literature.yaml +0 -308
- package/pennyfarthing-dist/personas/themes/great-gatsby.yaml +0 -308
- package/pennyfarthing-dist/personas/themes/greek-mythology.yaml +0 -330
- package/pennyfarthing-dist/personas/themes/hannibal.yaml +0 -300
- package/pennyfarthing-dist/personas/themes/harry-potter.yaml +0 -324
- package/pennyfarthing-dist/personas/themes/his-dark-materials.yaml +0 -291
- package/pennyfarthing-dist/personas/themes/historical-figures.yaml +0 -288
- package/pennyfarthing-dist/personas/themes/hitchhikers-guide.yaml +0 -331
- package/pennyfarthing-dist/personas/themes/house-md.yaml +0 -321
- package/pennyfarthing-dist/personas/themes/imperial-radch.yaml +0 -289
- package/pennyfarthing-dist/personas/themes/inspector-morse.yaml +0 -300
- package/pennyfarthing-dist/personas/themes/jane-austen.yaml +0 -287
- package/pennyfarthing-dist/personas/themes/jazz-legends.yaml +0 -320
- package/pennyfarthing-dist/personas/themes/justified.yaml +0 -300
- package/pennyfarthing-dist/personas/themes/legion-of-doom.yaml +0 -219
- package/pennyfarthing-dist/personas/themes/les-miserables.yaml +0 -299
- package/pennyfarthing-dist/personas/themes/lord-of-the-rings.yaml +0 -334
- package/pennyfarthing-dist/personas/themes/lovecraft-mythos.yaml +0 -334
- package/pennyfarthing-dist/personas/themes/mad-max.yaml +0 -355
- package/pennyfarthing-dist/personas/themes/mad-men.yaml +0 -289
- package/pennyfarthing-dist/personas/themes/marvel-mcu.yaml +0 -300
- package/pennyfarthing-dist/personas/themes/mash.yaml +0 -337
- package/pennyfarthing-dist/personas/themes/mass-effect.yaml +0 -289
- package/pennyfarthing-dist/personas/themes/military-commanders.yaml +0 -306
- package/pennyfarthing-dist/personas/themes/moby-dick.yaml +0 -320
- package/pennyfarthing-dist/personas/themes/monty-python.yaml +0 -303
- package/pennyfarthing-dist/personas/themes/neuromancer.yaml +0 -300
- package/pennyfarthing-dist/personas/themes/norse-mythology.yaml +0 -329
- package/pennyfarthing-dist/personas/themes/parks-and-rec.yaml +0 -242
- package/pennyfarthing-dist/personas/themes/peaky-blinders.yaml +0 -298
- package/pennyfarthing-dist/personas/themes/princess-bride.yaml +0 -220
- package/pennyfarthing-dist/personas/themes/renaissance-masters.yaml +0 -320
- package/pennyfarthing-dist/personas/themes/rome.yaml +0 -300
- package/pennyfarthing-dist/personas/themes/russian-masters.yaml +0 -318
- package/pennyfarthing-dist/personas/themes/sandman.yaml +0 -288
- package/pennyfarthing-dist/personas/themes/scientific-revolutionaries.yaml +0 -320
- package/pennyfarthing-dist/personas/themes/shakespeare.yaml +0 -301
- package/pennyfarthing-dist/personas/themes/sherlock-holmes.yaml +0 -289
- package/pennyfarthing-dist/personas/themes/snow-crash.yaml +0 -288
- package/pennyfarthing-dist/personas/themes/software-pioneers.yaml +0 -300
- package/pennyfarthing-dist/personas/themes/star-trek-tng.yaml +0 -230
- package/pennyfarthing-dist/personas/themes/star-trek-tos.yaml +0 -210
- package/pennyfarthing-dist/personas/themes/star-wars.yaml +0 -303
- package/pennyfarthing-dist/personas/themes/succession.yaml +0 -300
- package/pennyfarthing-dist/personas/themes/superfriends.yaml +0 -208
- package/pennyfarthing-dist/personas/themes/ted-lasso.yaml +0 -236
- package/pennyfarthing-dist/personas/themes/the-americans.yaml +0 -300
- package/pennyfarthing-dist/personas/themes/the-crown.yaml +0 -300
- package/pennyfarthing-dist/personas/themes/the-expanse.yaml +0 -213
- package/pennyfarthing-dist/personas/themes/the-good-place.yaml +0 -322
- package/pennyfarthing-dist/personas/themes/the-matrix.yaml +0 -353
- package/pennyfarthing-dist/personas/themes/the-odyssey.yaml +0 -300
- package/pennyfarthing-dist/personas/themes/the-office.yaml +0 -330
- package/pennyfarthing-dist/personas/themes/the-simpsons.yaml +0 -308
- package/pennyfarthing-dist/personas/themes/the-sopranos.yaml +0 -300
- package/pennyfarthing-dist/personas/themes/the-wire.yaml +0 -311
- package/pennyfarthing-dist/personas/themes/the-witcher.yaml +0 -300
- package/pennyfarthing-dist/personas/themes/twin-peaks.yaml +0 -302
- package/pennyfarthing-dist/personas/themes/vorkosigan-saga.yaml +0 -300
- package/pennyfarthing-dist/personas/themes/watchmen.yaml +0 -291
- package/pennyfarthing-dist/personas/themes/west-wing.yaml +0 -291
- package/pennyfarthing-dist/personas/themes/world-explorers.yaml +0 -320
- package/pennyfarthing-dist/personas/themes/wwii-leaders.yaml +0 -307
- package/pennyfarthing-dist/personas/themes/x-files.yaml +0 -302
- package/pennyfarthing-dist/scripts/README.md +0 -68
- package/pennyfarthing-dist/scripts/core/README.md +0 -26
- package/pennyfarthing-dist/scripts/core/agent-session.sh +0 -378
- package/pennyfarthing-dist/scripts/core/check-context.sh +0 -243
- package/pennyfarthing-dist/scripts/core/handoff-marker.sh +0 -90
- package/pennyfarthing-dist/scripts/core/prime.sh +0 -136
- package/pennyfarthing-dist/scripts/core/run.sh +0 -75
- package/pennyfarthing-dist/scripts/cyclist/is-cyclist.sh +0 -21
- package/pennyfarthing-dist/scripts/git/README.md +0 -25
- package/pennyfarthing-dist/scripts/git/create-feature-branches.sh +0 -226
- package/pennyfarthing-dist/scripts/git/git-status-all.sh +0 -127
- package/pennyfarthing-dist/scripts/git/install-git-hooks.sh +0 -91
- package/pennyfarthing-dist/scripts/git/release.sh +0 -198
- package/pennyfarthing-dist/scripts/git/worktree-manager.sh +0 -494
- package/pennyfarthing-dist/scripts/hooks/README.md +0 -32
- package/pennyfarthing-dist/scripts/hooks/context-circuit-breaker.sh +0 -60
- package/pennyfarthing-dist/scripts/hooks/context-warning.sh +0 -65
- package/pennyfarthing-dist/scripts/hooks/otel-auto-config.sh +0 -35
- package/pennyfarthing-dist/scripts/hooks/post-merge.sh +0 -166
- package/pennyfarthing-dist/scripts/hooks/pre-commit.sh +0 -50
- package/pennyfarthing-dist/scripts/hooks/pre-edit-check.sh +0 -71
- package/pennyfarthing-dist/scripts/hooks/pre-push.sh +0 -54
- package/pennyfarthing-dist/scripts/hooks/session-start.sh +0 -97
- package/pennyfarthing-dist/scripts/hooks/session-stop.sh +0 -58
- package/pennyfarthing-dist/scripts/jira/README.md +0 -33
- package/pennyfarthing-dist/scripts/jira/create-jira-epic.sh +0 -101
- package/pennyfarthing-dist/scripts/jira/create-jira-story.sh +0 -97
- package/pennyfarthing-dist/scripts/jira/jira-bidirectional-sync.mjs +0 -327
- package/pennyfarthing-dist/scripts/jira/jira-bidirectional-sync.test.mjs +0 -503
- package/pennyfarthing-dist/scripts/jira/jira-claim-story.sh +0 -164
- package/pennyfarthing-dist/scripts/jira/jira-lib.mjs +0 -443
- package/pennyfarthing-dist/scripts/jira/jira-lib.sh +0 -464
- package/pennyfarthing-dist/scripts/jira/jira-reconcile.sh +0 -266
- package/pennyfarthing-dist/scripts/jira/jira-sync-story.mjs +0 -208
- package/pennyfarthing-dist/scripts/jira/jira-sync-story.sh +0 -8
- package/pennyfarthing-dist/scripts/jira/jira-sync.mjs +0 -198
- package/pennyfarthing-dist/scripts/jira/jira-sync.sh +0 -8
- package/pennyfarthing-dist/scripts/jira/sync-epic-jira.sh +0 -104
- package/pennyfarthing-dist/scripts/jira/sync-epic-to-jira.sh +0 -16
- package/pennyfarthing-dist/scripts/lib/README.md +0 -29
- package/pennyfarthing-dist/scripts/lib/background-tasks.sh +0 -177
- package/pennyfarthing-dist/scripts/lib/checkpoint.sh +0 -136
- package/pennyfarthing-dist/scripts/lib/common.sh +0 -157
- package/pennyfarthing-dist/scripts/lib/file-lock.sh +0 -269
- package/pennyfarthing-dist/scripts/lib/find-root.sh +0 -35
- package/pennyfarthing-dist/scripts/lib/logging.sh +0 -186
- package/pennyfarthing-dist/scripts/lib/retry.sh +0 -76
- package/pennyfarthing-dist/scripts/misc/README.md +0 -44
- package/pennyfarthing-dist/scripts/misc/add-short-names.mjs +0 -264
- package/pennyfarthing-dist/scripts/misc/backlog.sh +0 -91
- package/pennyfarthing-dist/scripts/misc/check-status.sh +0 -247
- package/pennyfarthing-dist/scripts/misc/deploy.sh +0 -284
- package/pennyfarthing-dist/scripts/misc/doctor-dogfood.sh +0 -392
- package/pennyfarthing-dist/scripts/misc/find-related-work.sh +0 -231
- package/pennyfarthing-dist/scripts/misc/generate-skill-docs.sh +0 -110
- package/pennyfarthing-dist/scripts/misc/log-skill-usage.sh +0 -74
- package/pennyfarthing-dist/scripts/misc/migrate-bmad-workflow.mjs +0 -474
- package/pennyfarthing-dist/scripts/misc/migrate-bmad-workflow.sh +0 -9
- package/pennyfarthing-dist/scripts/misc/repo-scan.sh +0 -141
- package/pennyfarthing-dist/scripts/misc/repo-utils.sh +0 -778
- package/pennyfarthing-dist/scripts/misc/run-ci.sh +0 -219
- package/pennyfarthing-dist/scripts/misc/run-timestamp.sh +0 -7
- package/pennyfarthing-dist/scripts/misc/session-cleanup.sh +0 -319
- package/pennyfarthing-dist/scripts/misc/skill-usage-report.sh +0 -193
- package/pennyfarthing-dist/scripts/misc/statusline.sh +0 -259
- package/pennyfarthing-dist/scripts/misc/uninstall.sh +0 -270
- package/pennyfarthing-dist/scripts/misc/validate-subagent-frontmatter.sh +0 -160
- package/pennyfarthing-dist/scripts/sprint/README.md +0 -29
- package/pennyfarthing-dist/scripts/sprint/archive-story.sh +0 -135
- package/pennyfarthing-dist/scripts/sprint/available-stories.sh +0 -97
- package/pennyfarthing-dist/scripts/sprint/check-story.sh +0 -164
- package/pennyfarthing-dist/scripts/sprint/get-epic-field.sh +0 -58
- package/pennyfarthing-dist/scripts/sprint/get-story-field.sh +0 -69
- package/pennyfarthing-dist/scripts/sprint/list-future.sh +0 -151
- package/pennyfarthing-dist/scripts/sprint/new-sprint.sh +0 -116
- package/pennyfarthing-dist/scripts/sprint/promote-epic.sh +0 -164
- package/pennyfarthing-dist/scripts/sprint/sprint-common.sh +0 -421
- package/pennyfarthing-dist/scripts/sprint/sprint-info.sh +0 -39
- package/pennyfarthing-dist/scripts/sprint/sprint-metrics.sh +0 -241
- package/pennyfarthing-dist/scripts/sprint/sprint-status.sh +0 -134
- package/pennyfarthing-dist/scripts/story/README.md +0 -23
- package/pennyfarthing-dist/scripts/story/create-story.sh +0 -159
- package/pennyfarthing-dist/scripts/story/size-story.sh +0 -198
- package/pennyfarthing-dist/scripts/story/story-template.sh +0 -162
- package/pennyfarthing-dist/scripts/test/README.md +0 -23
- package/pennyfarthing-dist/scripts/test/ground-truth-judge.py +0 -289
- package/pennyfarthing-dist/scripts/test/swebench-judge.py +0 -400
- package/pennyfarthing-dist/scripts/test/test-cache.sh +0 -165
- package/pennyfarthing-dist/scripts/test/test-setup.sh +0 -337
- package/pennyfarthing-dist/scripts/tests/check.test.sh +0 -582
- package/pennyfarthing-dist/scripts/tests/dev-story-workflow-import.test.sh +0 -515
- package/pennyfarthing-dist/scripts/tests/epics-and-stories-workflow-import.test.sh +0 -599
- package/pennyfarthing-dist/scripts/tests/handoff-phase-update.test.sh +0 -332
- package/pennyfarthing-dist/scripts/tests/implementation-readiness-workflow-import.test.sh +0 -573
- package/pennyfarthing-dist/scripts/tests/migrate-bmad-workflow.test.sh +0 -859
- package/pennyfarthing-dist/scripts/tests/prd-workflow-import.test.sh +0 -662
- package/pennyfarthing-dist/scripts/tests/project-context-workflow-import.test.sh +0 -589
- package/pennyfarthing-dist/scripts/tests/test-character-voice.sh +0 -105
- package/pennyfarthing-dist/scripts/tests/test-drift-detection.sh +0 -597
- package/pennyfarthing-dist/scripts/tests/test-post-merge-hook.sh +0 -514
- package/pennyfarthing-dist/scripts/tests/test-session-checkpoint.sh +0 -517
- package/pennyfarthing-dist/scripts/tests/test-solo-command.sh +0 -331
- package/pennyfarthing-dist/scripts/tests/ux-design-workflow-import.test.sh +0 -647
- package/pennyfarthing-dist/scripts/theme/README.md +0 -22
- package/pennyfarthing-dist/scripts/theme/compute-theme-tiers.sh +0 -203
- package/pennyfarthing-dist/scripts/theme/list-themes.sh +0 -73
- package/pennyfarthing-dist/scripts/theme/update-theme-tiers.sh +0 -97
- package/pennyfarthing-dist/scripts/workflow/README.md +0 -28
- package/pennyfarthing-dist/scripts/workflow/check.sh +0 -497
- package/pennyfarthing-dist/scripts/workflow/finish-story.sh +0 -159
- package/pennyfarthing-dist/scripts/workflow/fix-session-phase.sh +0 -228
- package/pennyfarthing-dist/scripts/workflow/list-workflows.sh +0 -91
- package/pennyfarthing-dist/scripts/workflow/resume-workflow.sh +0 -163
- package/pennyfarthing-dist/scripts/workflow/show-workflow.sh +0 -138
- package/pennyfarthing-dist/scripts/workflow/start-workflow.sh +0 -256
- package/pennyfarthing-dist/scripts/workflow/workflow-status.sh +0 -167
- package/pennyfarthing-dist/skills/agentic-patterns/SKILL.md +0 -242
- package/pennyfarthing-dist/skills/changelog/SKILL.md +0 -367
- package/pennyfarthing-dist/skills/code-review/SKILL.md +0 -168
- package/pennyfarthing-dist/skills/context-engineering/SKILL.md +0 -274
- package/pennyfarthing-dist/skills/cyclist/SKILL.md +0 -88
- package/pennyfarthing-dist/skills/dev-patterns/SKILL.md +0 -437
- package/pennyfarthing-dist/skills/finalize-run/SKILL.md +0 -258
- package/pennyfarthing-dist/skills/jira/SKILL.md +0 -484
- package/pennyfarthing-dist/skills/judge/SKILL.md +0 -579
- package/pennyfarthing-dist/skills/just/SKILL.md +0 -403
- package/pennyfarthing-dist/skills/mermaid/SKILL.md +0 -240
- package/pennyfarthing-dist/skills/otel/skill.md +0 -223
- package/pennyfarthing-dist/skills/permissions/skill.md +0 -172
- package/pennyfarthing-dist/skills/persona-benchmark/SKILL.md +0 -178
- package/pennyfarthing-dist/skills/skill-registry.schema.json +0 -107
- package/pennyfarthing-dist/skills/skill-registry.yaml +0 -357
- package/pennyfarthing-dist/skills/sprint/scripts/archive-story.sh +0 -101
- package/pennyfarthing-dist/skills/sprint/scripts/available-stories.sh +0 -97
- package/pennyfarthing-dist/skills/sprint/scripts/check-story.sh +0 -164
- package/pennyfarthing-dist/skills/sprint/scripts/create-jira-epic.sh +0 -101
- package/pennyfarthing-dist/skills/sprint/scripts/new-sprint.sh +0 -116
- package/pennyfarthing-dist/skills/sprint/scripts/promote-epic.sh +0 -164
- package/pennyfarthing-dist/skills/sprint/scripts/sprint-info.sh +0 -39
- package/pennyfarthing-dist/skills/sprint/scripts/sprint-status.sh +0 -147
- package/pennyfarthing-dist/skills/sprint/scripts/sync-epic-jira.sh +0 -104
- package/pennyfarthing-dist/skills/sprint/skill.md +0 -465
- package/pennyfarthing-dist/skills/story/scripts/create-story.sh +0 -159
- package/pennyfarthing-dist/skills/story/scripts/size-story.sh +0 -198
- package/pennyfarthing-dist/skills/story/scripts/story-template.sh +0 -162
- package/pennyfarthing-dist/skills/story/skill.md +0 -219
- package/pennyfarthing-dist/skills/systematic-debugging/SKILL.md +0 -390
- package/pennyfarthing-dist/skills/testing/SKILL.md +0 -99
- package/pennyfarthing-dist/skills/testing/references/troubleshooting.md +0 -124
- package/pennyfarthing-dist/skills/theme/skill.md +0 -129
- package/pennyfarthing-dist/skills/theme-creation/SKILL.md +0 -169
- package/pennyfarthing-dist/skills/workflow/scripts/list-workflows.sh +0 -91
- package/pennyfarthing-dist/skills/workflow/scripts/resume-workflow.sh +0 -163
- package/pennyfarthing-dist/skills/workflow/scripts/show-workflow.sh +0 -138
- package/pennyfarthing-dist/skills/workflow/scripts/start-workflow.sh +0 -273
- package/pennyfarthing-dist/skills/workflow/scripts/workflow-status.sh +0 -167
- package/pennyfarthing-dist/skills/workflow/skill.md +0 -337
- package/pennyfarthing-dist/skills/yq/SKILL.md +0 -264
- package/pennyfarthing-dist/templates/LEADERBOARD.schema.yaml +0 -187
- package/pennyfarthing-dist/templates/LEADERBOARD.template.md +0 -59
- package/pennyfarthing-dist/templates/agent-scopes.yaml.template +0 -276
- package/pennyfarthing-dist/templates/pennyfarthing-settings.yaml.template +0 -61
- package/pennyfarthing-dist/templates/persona-config.yaml.template +0 -22
- package/pennyfarthing-dist/templates/preferences.yaml.template +0 -15
- package/pennyfarthing-dist/templates/settings.local.json.template +0 -90
- package/pennyfarthing-dist/templates/setup-env.sh.template +0 -18
- package/pennyfarthing-dist/templates/shared-context.md.template +0 -70
- package/pennyfarthing-dist/templates/sidecar/decisions.md.template +0 -40
- package/pennyfarthing-dist/templates/sidecar/gotchas.md.template +0 -37
- package/pennyfarthing-dist/templates/sidecar/patterns.md.template +0 -34
- package/pennyfarthing-dist/workflows/agent-docs.yaml +0 -70
- package/pennyfarthing-dist/workflows/architecture/steps/step-01-initialize.md +0 -101
- package/pennyfarthing-dist/workflows/architecture/steps/step-01b-continue.md +0 -93
- package/pennyfarthing-dist/workflows/architecture/steps/step-02-context.md +0 -115
- package/pennyfarthing-dist/workflows/architecture/steps/step-03-patterns.md +0 -133
- package/pennyfarthing-dist/workflows/architecture/steps/step-04-components.md +0 -138
- package/pennyfarthing-dist/workflows/architecture/steps/step-05-interfaces.md +0 -133
- package/pennyfarthing-dist/workflows/architecture/steps/step-06-risks.md +0 -142
- package/pennyfarthing-dist/workflows/architecture/steps/step-07-document.md +0 -160
- package/pennyfarthing-dist/workflows/architecture/templates/architecture-decision.md +0 -102
- package/pennyfarthing-dist/workflows/architecture.yaml +0 -65
- package/pennyfarthing-dist/workflows/bdd.yaml +0 -60
- package/pennyfarthing-dist/workflows/brainstorming/brain-methods.csv +0 -62
- package/pennyfarthing-dist/workflows/brainstorming/checklist.md +0 -44
- package/pennyfarthing-dist/workflows/brainstorming/instructions.md +0 -736
- package/pennyfarthing-dist/workflows/brainstorming/workflow.yaml +0 -49
- package/pennyfarthing-dist/workflows/code-review/checklist.md +0 -23
- package/pennyfarthing-dist/workflows/code-review/instructions.md +0 -234
- package/pennyfarthing-dist/workflows/code-review/workflow.yaml +0 -51
- package/pennyfarthing-dist/workflows/dev-story/checklist.md +0 -80
- package/pennyfarthing-dist/workflows/dev-story/instructions.xml +0 -410
- package/pennyfarthing-dist/workflows/dev-story/workflow.yaml +0 -50
- package/pennyfarthing-dist/workflows/epics-and-stories/steps/step-01-validate-prerequisites.md +0 -256
- package/pennyfarthing-dist/workflows/epics-and-stories/steps/step-02-design-epics.md +0 -233
- package/pennyfarthing-dist/workflows/epics-and-stories/steps/step-03-create-stories.md +0 -272
- package/pennyfarthing-dist/workflows/epics-and-stories/steps/step-04-final-validation.md +0 -145
- package/pennyfarthing-dist/workflows/epics-and-stories/templates/epics-template.md +0 -57
- package/pennyfarthing-dist/workflows/epics-and-stories/workflow.yaml +0 -27
- package/pennyfarthing-dist/workflows/implementation-readiness/steps/step-01-document-discovery.md +0 -190
- package/pennyfarthing-dist/workflows/implementation-readiness/steps/step-02-prd-analysis.md +0 -178
- package/pennyfarthing-dist/workflows/implementation-readiness/steps/step-03-epic-coverage-validation.md +0 -179
- package/pennyfarthing-dist/workflows/implementation-readiness/steps/step-04-ux-alignment.md +0 -139
- package/pennyfarthing-dist/workflows/implementation-readiness/steps/step-05-epic-quality-review.md +0 -252
- package/pennyfarthing-dist/workflows/implementation-readiness/steps/step-06-final-assessment.md +0 -133
- package/pennyfarthing-dist/workflows/implementation-readiness/templates/readiness-report-template.md +0 -4
- package/pennyfarthing-dist/workflows/implementation-readiness/workflow.yaml +0 -40
- package/pennyfarthing-dist/workflows/prd/data/domain-complexity.csv +0 -13
- package/pennyfarthing-dist/workflows/prd/data/prd-purpose.md +0 -197
- package/pennyfarthing-dist/workflows/prd/data/project-types.csv +0 -11
- package/pennyfarthing-dist/workflows/prd/steps-c/step-01-init.md +0 -191
- package/pennyfarthing-dist/workflows/prd/steps-c/step-01b-continue.md +0 -153
- package/pennyfarthing-dist/workflows/prd/steps-c/step-02-discovery.md +0 -224
- package/pennyfarthing-dist/workflows/prd/steps-c/step-03-success.md +0 -226
- package/pennyfarthing-dist/workflows/prd/steps-c/step-04-journeys.md +0 -213
- package/pennyfarthing-dist/workflows/prd/steps-c/step-05-domain.md +0 -207
- package/pennyfarthing-dist/workflows/prd/steps-c/step-06-innovation.md +0 -226
- package/pennyfarthing-dist/workflows/prd/steps-c/step-07-project-type.md +0 -237
- package/pennyfarthing-dist/workflows/prd/steps-c/step-08-scoping.md +0 -228
- package/pennyfarthing-dist/workflows/prd/steps-c/step-09-functional.md +0 -231
- package/pennyfarthing-dist/workflows/prd/steps-c/step-10-nonfunctional.md +0 -242
- package/pennyfarthing-dist/workflows/prd/steps-c/step-11-polish.md +0 -217
- package/pennyfarthing-dist/workflows/prd/steps-c/step-12-complete.md +0 -180
- package/pennyfarthing-dist/workflows/prd/steps-e/step-e-01-discovery.md +0 -247
- package/pennyfarthing-dist/workflows/prd/steps-e/step-e-01b-legacy-conversion.md +0 -208
- package/pennyfarthing-dist/workflows/prd/steps-e/step-e-02-review.md +0 -249
- package/pennyfarthing-dist/workflows/prd/steps-e/step-e-03-edit.md +0 -253
- package/pennyfarthing-dist/workflows/prd/steps-e/step-e-04-complete.md +0 -168
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-01-discovery.md +0 -218
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-02-format-detection.md +0 -191
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-02b-parity-check.md +0 -209
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-03-density-validation.md +0 -174
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-04-brief-coverage-validation.md +0 -214
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-05-measurability-validation.md +0 -228
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-06-traceability-validation.md +0 -217
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-07-implementation-leakage-validation.md +0 -205
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-08-domain-compliance-validation.md +0 -243
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-09-project-type-validation.md +0 -263
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-10-smart-validation.md +0 -209
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-11-holistic-quality-validation.md +0 -264
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-12-completeness-validation.md +0 -242
- package/pennyfarthing-dist/workflows/prd/steps-v/step-v-13-report-complete.md +0 -232
- package/pennyfarthing-dist/workflows/prd/templates/prd-template.md +0 -10
- package/pennyfarthing-dist/workflows/prd/workflow.yaml +0 -42
- package/pennyfarthing-dist/workflows/product-brief/steps/step-01-init.md +0 -177
- package/pennyfarthing-dist/workflows/product-brief/steps/step-01b-continue.md +0 -161
- package/pennyfarthing-dist/workflows/product-brief/steps/step-02-vision.md +0 -199
- package/pennyfarthing-dist/workflows/product-brief/steps/step-03-users.md +0 -202
- package/pennyfarthing-dist/workflows/product-brief/steps/step-04-metrics.md +0 -205
- package/pennyfarthing-dist/workflows/product-brief/steps/step-05-scope.md +0 -219
- package/pennyfarthing-dist/workflows/product-brief/steps/step-06-complete.md +0 -194
- package/pennyfarthing-dist/workflows/product-brief/templates/product-brief.template.md +0 -10
- package/pennyfarthing-dist/workflows/product-brief/workflow.yaml +0 -31
- package/pennyfarthing-dist/workflows/project-context/project-context-template.md +0 -21
- package/pennyfarthing-dist/workflows/project-context/steps/step-01-discover.md +0 -184
- package/pennyfarthing-dist/workflows/project-context/steps/step-02-generate.md +0 -318
- package/pennyfarthing-dist/workflows/project-context/steps/step-03-complete.md +0 -278
- package/pennyfarthing-dist/workflows/project-context/workflow.yaml +0 -27
- package/pennyfarthing-dist/workflows/quick-dev/steps/step-01-mode-detection.md +0 -156
- package/pennyfarthing-dist/workflows/quick-dev/steps/step-02-context-gathering.md +0 -120
- package/pennyfarthing-dist/workflows/quick-dev/steps/step-03-execute.md +0 -113
- package/pennyfarthing-dist/workflows/quick-dev/steps/step-04-self-check.md +0 -113
- package/pennyfarthing-dist/workflows/quick-dev/steps/step-05-adversarial-review.md +0 -106
- package/pennyfarthing-dist/workflows/quick-dev/steps/step-06-resolve-findings.md +0 -140
- package/pennyfarthing-dist/workflows/quick-dev/workflow.yaml +0 -27
- package/pennyfarthing-dist/workflows/quick-spec/steps/step-01-understand.md +0 -189
- package/pennyfarthing-dist/workflows/quick-spec/steps/step-02-investigate.md +0 -144
- package/pennyfarthing-dist/workflows/quick-spec/steps/step-03-generate.md +0 -128
- package/pennyfarthing-dist/workflows/quick-spec/steps/step-04-review.md +0 -191
- package/pennyfarthing-dist/workflows/quick-spec/tech-spec-template.md +0 -74
- package/pennyfarthing-dist/workflows/quick-spec/workflow.yaml +0 -27
- package/pennyfarthing-dist/workflows/research/steps-domain/step-01-init.md +0 -137
- package/pennyfarthing-dist/workflows/research/steps-domain/step-02-domain-analysis.md +0 -229
- package/pennyfarthing-dist/workflows/research/steps-domain/step-03-competitive-landscape.md +0 -238
- package/pennyfarthing-dist/workflows/research/steps-domain/step-04-regulatory-focus.md +0 -206
- package/pennyfarthing-dist/workflows/research/steps-domain/step-05-technical-trends.md +0 -234
- package/pennyfarthing-dist/workflows/research/steps-domain/step-06-research-synthesis.md +0 -443
- package/pennyfarthing-dist/workflows/research/steps-market/step-01-init.md +0 -182
- package/pennyfarthing-dist/workflows/research/steps-market/step-02-customer-behavior.md +0 -237
- package/pennyfarthing-dist/workflows/research/steps-market/step-02-customer-insights.md +0 -200
- package/pennyfarthing-dist/workflows/research/steps-market/step-03-customer-pain-points.md +0 -249
- package/pennyfarthing-dist/workflows/research/steps-market/step-04-customer-decisions.md +0 -259
- package/pennyfarthing-dist/workflows/research/steps-market/step-05-competitive-analysis.md +0 -177
- package/pennyfarthing-dist/workflows/research/steps-market/step-06-research-completion.md +0 -475
- package/pennyfarthing-dist/workflows/research/steps-technical/step-01-init.md +0 -137
- package/pennyfarthing-dist/workflows/research/steps-technical/step-02-technical-overview.md +0 -239
- package/pennyfarthing-dist/workflows/research/steps-technical/step-03-integration-patterns.md +0 -248
- package/pennyfarthing-dist/workflows/research/steps-technical/step-04-architectural-patterns.md +0 -202
- package/pennyfarthing-dist/workflows/research/steps-technical/step-05-implementation-research.md +0 -239
- package/pennyfarthing-dist/workflows/research/steps-technical/step-06-research-synthesis.md +0 -486
- package/pennyfarthing-dist/workflows/research/templates/research.template.md +0 -29
- package/pennyfarthing-dist/workflows/research/workflow.yaml +0 -45
- package/pennyfarthing-dist/workflows/retrospective/checklist.md +0 -31
- package/pennyfarthing-dist/workflows/retrospective/instructions.md +0 -1443
- package/pennyfarthing-dist/workflows/retrospective/workflow.yaml +0 -50
- package/pennyfarthing-dist/workflows/sprint-planning/checklist.md +0 -33
- package/pennyfarthing-dist/workflows/sprint-planning/sprint-status-template.yaml +0 -55
- package/pennyfarthing-dist/workflows/sprint-planning/steps/step-01-parse-epic-files.md +0 -54
- package/pennyfarthing-dist/workflows/sprint-planning/steps/step-02-build-sprint-status.md +0 -44
- package/pennyfarthing-dist/workflows/sprint-planning/steps/step-03-status-detection.md +0 -64
- package/pennyfarthing-dist/workflows/sprint-planning/steps/step-04-generate-status-file.md +0 -73
- package/pennyfarthing-dist/workflows/sprint-planning/steps/step-05-validate-and-report.md +0 -56
- package/pennyfarthing-dist/workflows/sprint-planning/workflow.yaml +0 -34
- package/pennyfarthing-dist/workflows/tdd.yaml +0 -50
- package/pennyfarthing-dist/workflows/trivial.yaml +0 -40
- package/pennyfarthing-dist/workflows/ux-design/steps/step-01-init.md +0 -135
- package/pennyfarthing-dist/workflows/ux-design/steps/step-01b-continue.md +0 -127
- package/pennyfarthing-dist/workflows/ux-design/steps/step-02-discovery.md +0 -190
- package/pennyfarthing-dist/workflows/ux-design/steps/step-03-core-experience.md +0 -216
- package/pennyfarthing-dist/workflows/ux-design/steps/step-04-emotional-response.md +0 -219
- package/pennyfarthing-dist/workflows/ux-design/steps/step-05-inspiration.md +0 -234
- package/pennyfarthing-dist/workflows/ux-design/steps/step-06-design-system.md +0 -252
- package/pennyfarthing-dist/workflows/ux-design/steps/step-07-defining-experience.md +0 -254
- package/pennyfarthing-dist/workflows/ux-design/steps/step-08-visual-foundation.md +0 -224
- package/pennyfarthing-dist/workflows/ux-design/steps/step-09-design-directions.md +0 -224
- package/pennyfarthing-dist/workflows/ux-design/steps/step-10-user-journeys.md +0 -241
- package/pennyfarthing-dist/workflows/ux-design/steps/step-11-component-strategy.md +0 -248
- package/pennyfarthing-dist/workflows/ux-design/steps/step-12-ux-patterns.md +0 -237
- package/pennyfarthing-dist/workflows/ux-design/steps/step-13-responsive-accessibility.md +0 -264
- package/pennyfarthing-dist/workflows/ux-design/steps/step-14-complete.md +0 -228
- package/pennyfarthing-dist/workflows/ux-design/ux-design-template.md +0 -13
- package/pennyfarthing-dist/workflows/ux-design/workflow.yaml +0 -41
- /package/{packages/core/bin → bin}/pennyfarthing.js +0 -0
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import { readdirSync, unlinkSync, symlinkSync } from 'fs';
|
|
2
|
-
import { join, relative, dirname } from 'path';
|
|
3
|
-
import fsExtra from 'fs-extra';
|
|
4
|
-
const { ensureDirSync, removeSync } = fsExtra;
|
|
5
|
-
import { logger } from './logger.js';
|
|
6
|
-
import { pathExists, isSymlink, isDirectory } from './files.js';
|
|
7
|
-
/**
|
|
8
|
-
* Compute relative path for symlink from link location to target
|
|
9
|
-
*/
|
|
10
|
-
export function computeRelativeSymlink(linkPath, targetPath) {
|
|
11
|
-
return relative(dirname(linkPath), targetPath);
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Remove a symlink or directory at the given path
|
|
15
|
-
* Handles both symlinks and directories (for migration from copy mode)
|
|
16
|
-
* Returns true if something was removed, false if path didn't exist
|
|
17
|
-
*/
|
|
18
|
-
export function removeSymlinkOrDirectory(path, dryRun = false) {
|
|
19
|
-
if (!pathExists(path) && !isSymlink(path)) {
|
|
20
|
-
return false;
|
|
21
|
-
}
|
|
22
|
-
if (dryRun) {
|
|
23
|
-
return true;
|
|
24
|
-
}
|
|
25
|
-
try {
|
|
26
|
-
unlinkSync(path);
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
catch {
|
|
30
|
-
try {
|
|
31
|
-
removeSync(path);
|
|
32
|
-
return true;
|
|
33
|
-
}
|
|
34
|
-
catch {
|
|
35
|
-
return false;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Create commands directory with individual symlinks to each command file.
|
|
41
|
-
* This allows users to add their own commands alongside built-in ones.
|
|
42
|
-
*/
|
|
43
|
-
export function createCommandsDirectory(projectRoot, builtInCommandsPath, projectCommandsPath, dryRun) {
|
|
44
|
-
const commandsDir = join(projectRoot, '.claude/commands');
|
|
45
|
-
// Remove existing symlink or directory
|
|
46
|
-
removeSymlinkOrDirectory(commandsDir, dryRun);
|
|
47
|
-
// Create commands directory
|
|
48
|
-
if (!dryRun) {
|
|
49
|
-
ensureDirSync(commandsDir);
|
|
50
|
-
}
|
|
51
|
-
logger.created('.claude/commands/ (directory for built-in + user commands)');
|
|
52
|
-
// Symlink each built-in command
|
|
53
|
-
if (pathExists(builtInCommandsPath)) {
|
|
54
|
-
const builtInCommands = readdirSync(builtInCommandsPath).filter(f => f.endsWith('.md'));
|
|
55
|
-
for (const cmd of builtInCommands) {
|
|
56
|
-
const linkPath = join(commandsDir, cmd);
|
|
57
|
-
const targetPath = join(builtInCommandsPath, cmd);
|
|
58
|
-
const relativeTarget = computeRelativeSymlink(linkPath, targetPath);
|
|
59
|
-
if (!dryRun) {
|
|
60
|
-
try {
|
|
61
|
-
symlinkSync(relativeTarget, linkPath);
|
|
62
|
-
}
|
|
63
|
-
catch (e) {
|
|
64
|
-
logger.warning(`Could not create symlink for ${cmd}: ${e}`);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
logger.info(` Linked ${builtInCommands.length} built-in commands`);
|
|
69
|
-
}
|
|
70
|
-
// Symlink user project commands (if any exist)
|
|
71
|
-
if (pathExists(projectCommandsPath)) {
|
|
72
|
-
const projectCommands = readdirSync(projectCommandsPath).filter(f => f.endsWith('.md'));
|
|
73
|
-
let linkedCount = 0;
|
|
74
|
-
for (const cmd of projectCommands) {
|
|
75
|
-
const linkPath = join(commandsDir, cmd);
|
|
76
|
-
if (pathExists(linkPath)) {
|
|
77
|
-
logger.warning(` Skipping ${cmd} - would override built-in command`);
|
|
78
|
-
continue;
|
|
79
|
-
}
|
|
80
|
-
const targetPath = join(projectCommandsPath, cmd);
|
|
81
|
-
const relativeTarget = computeRelativeSymlink(linkPath, targetPath);
|
|
82
|
-
if (!dryRun) {
|
|
83
|
-
try {
|
|
84
|
-
symlinkSync(relativeTarget, linkPath);
|
|
85
|
-
linkedCount++;
|
|
86
|
-
}
|
|
87
|
-
catch (e) {
|
|
88
|
-
logger.warning(`Could not create symlink for ${cmd}: ${e}`);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
else {
|
|
92
|
-
linkedCount++;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
if (linkedCount > 0) {
|
|
96
|
-
logger.info(` Linked ${linkedCount} user commands from project/commands/`);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Create skills directory with individual symlinks to each skill file.
|
|
102
|
-
* This allows users to add their own skills alongside built-in ones.
|
|
103
|
-
*/
|
|
104
|
-
export function createSkillsDirectory(projectRoot, builtInSkillsPath, projectSkillsPath, dryRun) {
|
|
105
|
-
const skillsDir = join(projectRoot, '.claude/skills');
|
|
106
|
-
// Remove existing symlink or directory
|
|
107
|
-
removeSymlinkOrDirectory(skillsDir, dryRun);
|
|
108
|
-
// Create skills directory
|
|
109
|
-
if (!dryRun) {
|
|
110
|
-
ensureDirSync(skillsDir);
|
|
111
|
-
}
|
|
112
|
-
logger.created('.claude/skills/ (directory for built-in + user skills)');
|
|
113
|
-
// Symlink each built-in skill (skills are directories, not .md files)
|
|
114
|
-
if (pathExists(builtInSkillsPath)) {
|
|
115
|
-
const builtInSkills = readdirSync(builtInSkillsPath).filter(f => {
|
|
116
|
-
const fullPath = join(builtInSkillsPath, f);
|
|
117
|
-
return isDirectory(fullPath) && !f.startsWith('.');
|
|
118
|
-
});
|
|
119
|
-
for (const skill of builtInSkills) {
|
|
120
|
-
const linkPath = join(skillsDir, skill);
|
|
121
|
-
const targetPath = join(builtInSkillsPath, skill);
|
|
122
|
-
const relativeTarget = computeRelativeSymlink(linkPath, targetPath);
|
|
123
|
-
if (!dryRun) {
|
|
124
|
-
try {
|
|
125
|
-
symlinkSync(relativeTarget, linkPath);
|
|
126
|
-
}
|
|
127
|
-
catch (e) {
|
|
128
|
-
logger.warning(`Could not create symlink for ${skill}: ${e}`);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
logger.info(` Linked ${builtInSkills.length} built-in skills`);
|
|
133
|
-
}
|
|
134
|
-
// Symlink user project skills (if any exist) - skills are directories
|
|
135
|
-
if (pathExists(projectSkillsPath)) {
|
|
136
|
-
const projectSkills = readdirSync(projectSkillsPath).filter(f => {
|
|
137
|
-
const fullPath = join(projectSkillsPath, f);
|
|
138
|
-
return isDirectory(fullPath) && !f.startsWith('.');
|
|
139
|
-
});
|
|
140
|
-
let linkedCount = 0;
|
|
141
|
-
for (const skill of projectSkills) {
|
|
142
|
-
const linkPath = join(skillsDir, skill);
|
|
143
|
-
if (pathExists(linkPath)) {
|
|
144
|
-
logger.warning(` Skipping ${skill} - would override built-in skill`);
|
|
145
|
-
continue;
|
|
146
|
-
}
|
|
147
|
-
const targetPath = join(projectSkillsPath, skill);
|
|
148
|
-
const relativeTarget = computeRelativeSymlink(linkPath, targetPath);
|
|
149
|
-
if (!dryRun) {
|
|
150
|
-
try {
|
|
151
|
-
symlinkSync(relativeTarget, linkPath);
|
|
152
|
-
linkedCount++;
|
|
153
|
-
}
|
|
154
|
-
catch (e) {
|
|
155
|
-
logger.warning(`Could not create symlink for ${skill}: ${e}`);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
else {
|
|
159
|
-
linkedCount++;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
if (linkedCount > 0) {
|
|
163
|
-
logger.info(` Linked ${linkedCount} user skills from project/skills/`);
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* Check if commands directory needs migration from single symlink to directory
|
|
169
|
-
*/
|
|
170
|
-
export function needsCommandsMigration(projectRoot) {
|
|
171
|
-
const commandsPath = join(projectRoot, '.claude/commands');
|
|
172
|
-
return isSymlink(commandsPath);
|
|
173
|
-
}
|
|
174
|
-
/**
|
|
175
|
-
* Check if skills directory needs migration from single symlink to directory
|
|
176
|
-
*/
|
|
177
|
-
export function needsSkillsMigration(projectRoot) {
|
|
178
|
-
const skillsPath = join(projectRoot, '.claude/skills');
|
|
179
|
-
return isSymlink(skillsPath);
|
|
180
|
-
}
|
|
181
|
-
//# sourceMappingURL=symlinks.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"symlinks.js","sourceRoot":"","sources":["../../../src/cli/utils/symlinks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/C,OAAO,OAAO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
3
|
-
style: string;
|
|
4
|
-
}
|
|
5
|
-
export interface ThemeAgent {
|
|
6
|
-
character: string;
|
|
7
|
-
style?: string;
|
|
8
|
-
role?: string;
|
|
9
|
-
quote?: string;
|
|
10
|
-
trait?: string;
|
|
11
|
-
expertise?: string;
|
|
12
|
-
emoji?: string;
|
|
13
|
-
helper?: ThemeAgentHelper;
|
|
14
|
-
}
|
|
15
|
-
export interface ThemeInfo {
|
|
16
|
-
id: string;
|
|
17
|
-
name: string;
|
|
18
|
-
description: string;
|
|
19
|
-
isCustom?: boolean;
|
|
20
|
-
agents: {
|
|
21
|
-
sm?: ThemeAgent;
|
|
22
|
-
tea?: ThemeAgent;
|
|
23
|
-
dev?: ThemeAgent;
|
|
24
|
-
reviewer?: ThemeAgent;
|
|
25
|
-
[key: string]: ThemeAgent | undefined;
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Get the path to the themes directory
|
|
30
|
-
*/
|
|
31
|
-
export declare function getThemesDir(): string;
|
|
32
|
-
/**
|
|
33
|
-
* Get the project-level custom themes directory
|
|
34
|
-
*/
|
|
35
|
-
export declare function getProjectCustomThemesDir(projectRoot: string): string;
|
|
36
|
-
/**
|
|
37
|
-
* Get the user-level custom themes directory
|
|
38
|
-
*/
|
|
39
|
-
export declare function getUserCustomThemesDir(): string;
|
|
40
|
-
/**
|
|
41
|
-
* Get the path to the .pennyfarthing local config (preferred for dogfooding)
|
|
42
|
-
*/
|
|
43
|
-
export declare function getPennyfarthingConfigPath(projectRoot: string): string;
|
|
44
|
-
/**
|
|
45
|
-
* Get the current theme from config files
|
|
46
|
-
* Priority: .pennyfarthing/config.local.yaml > .claude/persona-config.yaml
|
|
47
|
-
*/
|
|
48
|
-
export declare function getCurrentTheme(projectRoot?: string): string | null;
|
|
49
|
-
/**
|
|
50
|
-
* Parse a theme YAML file and extract theme info
|
|
51
|
-
*/
|
|
52
|
-
export declare function parseThemeFile(filePath: string, isCustom?: boolean): ThemeInfo | null;
|
|
53
|
-
/**
|
|
54
|
-
* Get all available themes (built-in + custom)
|
|
55
|
-
*/
|
|
56
|
-
export declare function getThemes(projectRoot?: string): ThemeInfo[];
|
|
57
|
-
/**
|
|
58
|
-
* Get sample agent characters for display
|
|
59
|
-
*/
|
|
60
|
-
export declare function getAgentSamples(theme: ThemeInfo): string;
|
|
61
|
-
export interface SetThemeOptions {
|
|
62
|
-
/** If true, write to shared config (.claude/persona-config.yaml) instead of local */
|
|
63
|
-
global?: boolean;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Set the active theme
|
|
67
|
-
* By default writes to .pennyfarthing/config.local.yaml (agent-writable, dogfooding-friendly)
|
|
68
|
-
* Use { global: true } to write to .claude/persona-config.yaml (project default)
|
|
69
|
-
* Returns the ThemeInfo if successful, throws if theme not found
|
|
70
|
-
*/
|
|
71
|
-
export declare function setTheme(themeName: string, projectRoot: string, options?: SetThemeOptions): ThemeInfo;
|
|
72
|
-
/**
|
|
73
|
-
* Validate a theme name
|
|
74
|
-
*/
|
|
75
|
-
export declare function validateThemeName(name: string): {
|
|
76
|
-
valid: boolean;
|
|
77
|
-
error?: string;
|
|
78
|
-
};
|
|
79
|
-
/**
|
|
80
|
-
* Get the path to a theme file (built-in or custom)
|
|
81
|
-
*/
|
|
82
|
-
export declare function getThemeFilePath(themeId: string): string | null;
|
|
83
|
-
export interface CreateThemeOptions {
|
|
84
|
-
baseTheme?: string;
|
|
85
|
-
userLevel?: boolean;
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Create a new custom theme
|
|
89
|
-
* Returns the path to the created theme file
|
|
90
|
-
*/
|
|
91
|
-
export declare function createTheme(themeName: string, projectRoot: string, options?: CreateThemeOptions): string;
|
|
92
|
-
export interface ThemeSchemaValidationResult {
|
|
93
|
-
valid: boolean;
|
|
94
|
-
errors?: string[];
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Validate a theme object has all required fields and agents
|
|
98
|
-
* Used to validate AI-generated themes before writing to file
|
|
99
|
-
*/
|
|
100
|
-
export declare function validateThemeSchema(themeData: unknown): ThemeSchemaValidationResult;
|
|
101
|
-
//# sourceMappingURL=themes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../../../src/cli/utils/themes.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,UAAU;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC3B;AAED,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE;QACN,EAAE,CAAC,EAAE,UAAU,CAAC;QAChB,GAAG,CAAC,EAAE,UAAU,CAAC;QACjB,GAAG,CAAC,EAAE,UAAU,CAAC;QACjB,QAAQ,CAAC,EAAE,UAAU,CAAC;QACtB,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;KACvC,CAAC;CACH;AAED;;GAEG;AACH,wBAAgB,YAAY,IAAI,MAAM,CAmBrC;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAErE;AAED;;GAEG;AACH,wBAAgB,sBAAsB,IAAI,MAAM,CAE/C;AAED;;GAEG;AACH,wBAAgB,0BAA0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CAAC,SAAS,EAAE,OAAO,GAAG,2BAA2B,CAoDnF"}
|
|
@@ -1,373 +0,0 @@
|
|
|
1
|
-
import { readFileSync, readdirSync, existsSync, writeFileSync, mkdirSync } from 'fs';
|
|
2
|
-
import { join, dirname, basename } from 'path';
|
|
3
|
-
import { fileURLToPath } from 'url';
|
|
4
|
-
import { homedir } from 'os';
|
|
5
|
-
import YAML from 'yaml';
|
|
6
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
7
|
-
const __dirname = dirname(__filename);
|
|
8
|
-
/**
|
|
9
|
-
* Get the path to the themes directory
|
|
10
|
-
*/
|
|
11
|
-
export function getThemesDir() {
|
|
12
|
-
// In installed package: dist/cli/utils/themes.ts -> need to go to pennyfarthing-dist
|
|
13
|
-
// Try relative to package root first
|
|
14
|
-
const packageRoot = join(__dirname, '../../..');
|
|
15
|
-
const distThemes = join(packageRoot, 'pennyfarthing-dist/personas/themes');
|
|
16
|
-
if (existsSync(distThemes)) {
|
|
17
|
-
return distThemes;
|
|
18
|
-
}
|
|
19
|
-
// Fallback: try from project's .claude/pennyfarthing symlink
|
|
20
|
-
const projectRoot = process.cwd();
|
|
21
|
-
const claudeThemes = join(projectRoot, '.claude/pennyfarthing/personas/themes');
|
|
22
|
-
if (existsSync(claudeThemes)) {
|
|
23
|
-
return claudeThemes;
|
|
24
|
-
}
|
|
25
|
-
throw new Error('Could not find themes directory');
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Get the project-level custom themes directory
|
|
29
|
-
*/
|
|
30
|
-
export function getProjectCustomThemesDir(projectRoot) {
|
|
31
|
-
return join(projectRoot, '.claude/pennyfarthing/themes');
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Get the user-level custom themes directory
|
|
35
|
-
*/
|
|
36
|
-
export function getUserCustomThemesDir() {
|
|
37
|
-
return join(homedir(), '.claude/pennyfarthing/themes');
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Get the path to the .pennyfarthing local config (preferred for dogfooding)
|
|
41
|
-
*/
|
|
42
|
-
export function getPennyfarthingConfigPath(projectRoot) {
|
|
43
|
-
return join(projectRoot, '.pennyfarthing/config.local.yaml');
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Get the current theme from config files
|
|
47
|
-
* Priority: .pennyfarthing/config.local.yaml > .claude/persona-config.yaml
|
|
48
|
-
*/
|
|
49
|
-
export function getCurrentTheme(projectRoot) {
|
|
50
|
-
const root = projectRoot || process.cwd();
|
|
51
|
-
// Priority 1: .pennyfarthing/config.local.yaml (dogfooding/agent-writable)
|
|
52
|
-
const pennyfarthingConfigPath = getPennyfarthingConfigPath(root);
|
|
53
|
-
if (existsSync(pennyfarthingConfigPath)) {
|
|
54
|
-
try {
|
|
55
|
-
const content = readFileSync(pennyfarthingConfigPath, 'utf8');
|
|
56
|
-
const config = YAML.parse(content);
|
|
57
|
-
if (config?.theme) {
|
|
58
|
-
return config.theme;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
catch {
|
|
62
|
-
// Fall through to next option
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
// Priority 2: .claude/persona-config.yaml (project default)
|
|
66
|
-
const sharedConfigPath = join(root, '.claude/persona-config.yaml');
|
|
67
|
-
if (existsSync(sharedConfigPath)) {
|
|
68
|
-
try {
|
|
69
|
-
const content = readFileSync(sharedConfigPath, 'utf8');
|
|
70
|
-
const config = YAML.parse(content);
|
|
71
|
-
return config?.theme || null;
|
|
72
|
-
}
|
|
73
|
-
catch {
|
|
74
|
-
return null;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
return null;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Parse a theme YAML file and extract theme info
|
|
81
|
-
*/
|
|
82
|
-
export function parseThemeFile(filePath, isCustom = false) {
|
|
83
|
-
try {
|
|
84
|
-
const content = readFileSync(filePath, 'utf8');
|
|
85
|
-
const data = YAML.parse(content);
|
|
86
|
-
if (!data?.theme?.name) {
|
|
87
|
-
return null;
|
|
88
|
-
}
|
|
89
|
-
const id = basename(filePath, '.yaml');
|
|
90
|
-
return {
|
|
91
|
-
id,
|
|
92
|
-
name: data.theme.name,
|
|
93
|
-
description: data.theme.description || '',
|
|
94
|
-
isCustom,
|
|
95
|
-
agents: data.agents || {}
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
catch {
|
|
99
|
-
return null;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Load themes from a directory
|
|
104
|
-
*/
|
|
105
|
-
function loadThemesFromDir(dir, isCustom) {
|
|
106
|
-
const themes = [];
|
|
107
|
-
if (!existsSync(dir)) {
|
|
108
|
-
return themes;
|
|
109
|
-
}
|
|
110
|
-
const files = readdirSync(dir).filter(f => f.endsWith('.yaml'));
|
|
111
|
-
for (const file of files) {
|
|
112
|
-
const theme = parseThemeFile(join(dir, file), isCustom);
|
|
113
|
-
if (theme) {
|
|
114
|
-
themes.push(theme);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
return themes;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Get all available themes (built-in + custom)
|
|
121
|
-
*/
|
|
122
|
-
export function getThemes(projectRoot) {
|
|
123
|
-
const themes = [];
|
|
124
|
-
const seenIds = new Set();
|
|
125
|
-
// 1. Load built-in themes
|
|
126
|
-
try {
|
|
127
|
-
const builtInDir = getThemesDir();
|
|
128
|
-
for (const theme of loadThemesFromDir(builtInDir, false)) {
|
|
129
|
-
if (!seenIds.has(theme.id)) {
|
|
130
|
-
themes.push(theme);
|
|
131
|
-
seenIds.add(theme.id);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
catch {
|
|
136
|
-
// Built-in themes not found - continue with custom themes
|
|
137
|
-
}
|
|
138
|
-
// 2. Load project-level custom themes
|
|
139
|
-
const root = projectRoot || process.cwd();
|
|
140
|
-
const projectDir = getProjectCustomThemesDir(root);
|
|
141
|
-
for (const theme of loadThemesFromDir(projectDir, true)) {
|
|
142
|
-
if (!seenIds.has(theme.id)) {
|
|
143
|
-
themes.push(theme);
|
|
144
|
-
seenIds.add(theme.id);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
// 3. Load user-level custom themes
|
|
148
|
-
const userDir = getUserCustomThemesDir();
|
|
149
|
-
for (const theme of loadThemesFromDir(userDir, true)) {
|
|
150
|
-
if (!seenIds.has(theme.id)) {
|
|
151
|
-
themes.push(theme);
|
|
152
|
-
seenIds.add(theme.id);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
// Sort alphabetically by name
|
|
156
|
-
return themes.sort((a, b) => a.name.localeCompare(b.name));
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* Get sample agent characters for display
|
|
160
|
-
*/
|
|
161
|
-
export function getAgentSamples(theme) {
|
|
162
|
-
const samples = [];
|
|
163
|
-
if (theme.agents.sm?.character) {
|
|
164
|
-
samples.push(`SM: ${theme.agents.sm.character}`);
|
|
165
|
-
}
|
|
166
|
-
if (theme.agents.tea?.character) {
|
|
167
|
-
samples.push(`TEA: ${theme.agents.tea.character}`);
|
|
168
|
-
}
|
|
169
|
-
if (theme.agents.dev?.character) {
|
|
170
|
-
samples.push(`Dev: ${theme.agents.dev.character}`);
|
|
171
|
-
}
|
|
172
|
-
return samples.join(' | ');
|
|
173
|
-
}
|
|
174
|
-
/**
|
|
175
|
-
* Set the active theme
|
|
176
|
-
* By default writes to .pennyfarthing/config.local.yaml (agent-writable, dogfooding-friendly)
|
|
177
|
-
* Use { global: true } to write to .claude/persona-config.yaml (project default)
|
|
178
|
-
* Returns the ThemeInfo if successful, throws if theme not found
|
|
179
|
-
*/
|
|
180
|
-
export function setTheme(themeName, projectRoot, options = {}) {
|
|
181
|
-
const themes = getThemes(projectRoot);
|
|
182
|
-
const theme = themes.find(t => t.id === themeName);
|
|
183
|
-
if (!theme) {
|
|
184
|
-
const available = themes.map(t => t.id).join(', ');
|
|
185
|
-
throw new Error(`Theme '${themeName}' not found. Available themes: ${available}`);
|
|
186
|
-
}
|
|
187
|
-
let configPath;
|
|
188
|
-
let header;
|
|
189
|
-
if (options.global) {
|
|
190
|
-
// Project default - shared with team
|
|
191
|
-
configPath = join(projectRoot, '.claude/persona-config.yaml');
|
|
192
|
-
header = '# Pennyfarthing Persona Configuration (Project Default)\n\n';
|
|
193
|
-
}
|
|
194
|
-
else {
|
|
195
|
-
// Default: .pennyfarthing/ directory (agent-writable, dogfooding-friendly)
|
|
196
|
-
configPath = getPennyfarthingConfigPath(projectRoot);
|
|
197
|
-
header = '# Pennyfarthing Local Configuration\n# This file is gitignored - your personal preferences\n# Agents can write to this file during dogfooding\n\n';
|
|
198
|
-
}
|
|
199
|
-
// Ensure parent directory exists
|
|
200
|
-
const configDir = dirname(configPath);
|
|
201
|
-
if (!existsSync(configDir)) {
|
|
202
|
-
mkdirSync(configDir, { recursive: true });
|
|
203
|
-
}
|
|
204
|
-
// Read existing config or create new one
|
|
205
|
-
let config = {};
|
|
206
|
-
if (existsSync(configPath)) {
|
|
207
|
-
try {
|
|
208
|
-
const content = readFileSync(configPath, 'utf8');
|
|
209
|
-
config = YAML.parse(content) || {};
|
|
210
|
-
}
|
|
211
|
-
catch {
|
|
212
|
-
// If parse fails, start fresh
|
|
213
|
-
config = {};
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
// Update theme
|
|
217
|
-
config.theme = themeName;
|
|
218
|
-
// Write back with comment header
|
|
219
|
-
const yamlContent = YAML.stringify(config);
|
|
220
|
-
writeFileSync(configPath, header + yamlContent, 'utf8');
|
|
221
|
-
return theme;
|
|
222
|
-
}
|
|
223
|
-
/**
|
|
224
|
-
* Validate a theme name
|
|
225
|
-
*/
|
|
226
|
-
export function validateThemeName(name) {
|
|
227
|
-
if (!name) {
|
|
228
|
-
return { valid: false, error: 'Theme name is required' };
|
|
229
|
-
}
|
|
230
|
-
if (name !== name.toLowerCase()) {
|
|
231
|
-
return { valid: false, error: 'Theme name must be lowercase' };
|
|
232
|
-
}
|
|
233
|
-
if (/\s/.test(name)) {
|
|
234
|
-
return { valid: false, error: 'Theme name cannot contain spaces (use hyphens instead)' };
|
|
235
|
-
}
|
|
236
|
-
if (!/^[a-z][a-z0-9-]*$/.test(name)) {
|
|
237
|
-
return { valid: false, error: 'Theme name must start with a letter and contain only lowercase letters, numbers, and hyphens' };
|
|
238
|
-
}
|
|
239
|
-
return { valid: true };
|
|
240
|
-
}
|
|
241
|
-
/**
|
|
242
|
-
* Get the path to a theme file (built-in or custom)
|
|
243
|
-
*/
|
|
244
|
-
export function getThemeFilePath(themeId) {
|
|
245
|
-
// Check built-in themes first
|
|
246
|
-
try {
|
|
247
|
-
const builtInPath = join(getThemesDir(), `${themeId}.yaml`);
|
|
248
|
-
if (existsSync(builtInPath)) {
|
|
249
|
-
return builtInPath;
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
catch {
|
|
253
|
-
// Built-in dir not found
|
|
254
|
-
}
|
|
255
|
-
// Check project-level
|
|
256
|
-
const projectPath = join(getProjectCustomThemesDir(process.cwd()), `${themeId}.yaml`);
|
|
257
|
-
if (existsSync(projectPath)) {
|
|
258
|
-
return projectPath;
|
|
259
|
-
}
|
|
260
|
-
// Check user-level
|
|
261
|
-
const userPath = join(getUserCustomThemesDir(), `${themeId}.yaml`);
|
|
262
|
-
if (existsSync(userPath)) {
|
|
263
|
-
return userPath;
|
|
264
|
-
}
|
|
265
|
-
return null;
|
|
266
|
-
}
|
|
267
|
-
/**
|
|
268
|
-
* Create a new custom theme
|
|
269
|
-
* Returns the path to the created theme file
|
|
270
|
-
*/
|
|
271
|
-
export function createTheme(themeName, projectRoot, options = {}) {
|
|
272
|
-
const { baseTheme = 'minimalist', userLevel = false } = options;
|
|
273
|
-
// Validate theme name
|
|
274
|
-
const validation = validateThemeName(themeName);
|
|
275
|
-
if (!validation.valid) {
|
|
276
|
-
throw new Error(validation.error);
|
|
277
|
-
}
|
|
278
|
-
// Check if theme already exists
|
|
279
|
-
const existingThemes = getThemes(projectRoot);
|
|
280
|
-
if (existingThemes.some(t => t.id === themeName)) {
|
|
281
|
-
throw new Error(`Theme '${themeName}' already exists`);
|
|
282
|
-
}
|
|
283
|
-
// Find base theme file
|
|
284
|
-
const baseThemePath = getThemeFilePath(baseTheme);
|
|
285
|
-
if (!baseThemePath) {
|
|
286
|
-
const available = existingThemes.map(t => t.id).join(', ');
|
|
287
|
-
throw new Error(`Base theme '${baseTheme}' not found. Available themes: ${available}`);
|
|
288
|
-
}
|
|
289
|
-
// Determine target directory
|
|
290
|
-
const targetDir = userLevel
|
|
291
|
-
? getUserCustomThemesDir()
|
|
292
|
-
: getProjectCustomThemesDir(projectRoot);
|
|
293
|
-
// Create directory if needed
|
|
294
|
-
if (!existsSync(targetDir)) {
|
|
295
|
-
mkdirSync(targetDir, { recursive: true });
|
|
296
|
-
}
|
|
297
|
-
// Read base theme content
|
|
298
|
-
const baseContent = readFileSync(baseThemePath, 'utf8');
|
|
299
|
-
const baseData = YAML.parse(baseContent);
|
|
300
|
-
// Update theme metadata
|
|
301
|
-
baseData.theme.name = themeName.charAt(0).toUpperCase() + themeName.slice(1).replace(/-/g, ' ');
|
|
302
|
-
baseData.theme.description = `Custom theme based on ${baseTheme}`;
|
|
303
|
-
// Write new theme file
|
|
304
|
-
const targetPath = join(targetDir, `${themeName}.yaml`);
|
|
305
|
-
const header = `# Custom Theme: ${themeName}\n# Based on: ${baseTheme}\n# Edit this file to customize your agent personas\n\n`;
|
|
306
|
-
const yamlContent = YAML.stringify(baseData);
|
|
307
|
-
writeFileSync(targetPath, header + yamlContent, 'utf8');
|
|
308
|
-
return targetPath;
|
|
309
|
-
}
|
|
310
|
-
/**
|
|
311
|
-
* All 10 required agent types for a complete theme
|
|
312
|
-
*/
|
|
313
|
-
const REQUIRED_AGENTS = [
|
|
314
|
-
'orchestrator',
|
|
315
|
-
'sm',
|
|
316
|
-
'tea',
|
|
317
|
-
'dev',
|
|
318
|
-
'reviewer',
|
|
319
|
-
'architect',
|
|
320
|
-
'pm',
|
|
321
|
-
'tech-writer',
|
|
322
|
-
'ux-designer',
|
|
323
|
-
'devops'
|
|
324
|
-
];
|
|
325
|
-
/**
|
|
326
|
-
* Validate a theme object has all required fields and agents
|
|
327
|
-
* Used to validate AI-generated themes before writing to file
|
|
328
|
-
*/
|
|
329
|
-
export function validateThemeSchema(themeData) {
|
|
330
|
-
const errors = [];
|
|
331
|
-
// Check if themeData is an object
|
|
332
|
-
if (!themeData || typeof themeData !== 'object') {
|
|
333
|
-
return { valid: false, errors: ['Theme data must be an object'] };
|
|
334
|
-
}
|
|
335
|
-
const data = themeData;
|
|
336
|
-
// Check theme section
|
|
337
|
-
if (!data.theme || typeof data.theme !== 'object') {
|
|
338
|
-
errors.push('Missing theme section');
|
|
339
|
-
}
|
|
340
|
-
else {
|
|
341
|
-
const theme = data.theme;
|
|
342
|
-
if (!theme.name) {
|
|
343
|
-
errors.push('Missing theme.name');
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
// Check agents section
|
|
347
|
-
if (!data.agents || typeof data.agents !== 'object') {
|
|
348
|
-
errors.push('Missing agents section');
|
|
349
|
-
return { valid: false, errors };
|
|
350
|
-
}
|
|
351
|
-
const agents = data.agents;
|
|
352
|
-
// Check all required agents are present with required fields
|
|
353
|
-
for (const agentType of REQUIRED_AGENTS) {
|
|
354
|
-
const agent = agents[agentType];
|
|
355
|
-
if (!agent || typeof agent !== 'object') {
|
|
356
|
-
errors.push(`Missing required agent: ${agentType}`);
|
|
357
|
-
continue;
|
|
358
|
-
}
|
|
359
|
-
const agentData = agent;
|
|
360
|
-
// Check required fields for each agent
|
|
361
|
-
if (!agentData.character) {
|
|
362
|
-
errors.push(`Agent ${agentType} missing required field: character`);
|
|
363
|
-
}
|
|
364
|
-
if (!agentData.style) {
|
|
365
|
-
errors.push(`Agent ${agentType} missing required field: style`);
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
if (errors.length > 0) {
|
|
369
|
-
return { valid: false, errors };
|
|
370
|
-
}
|
|
371
|
-
return { valid: true };
|
|
372
|
-
}
|
|
373
|
-
//# sourceMappingURL=themes.js.map
|