@pennyfarthing/core 7.4.0 → 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/dist/cli/utils/files.d.ts +0 -1
- package/dist/cli/utils/files.js +73 -56
- package/dist/cli/utils/manifest.d.ts +0 -1
- package/dist/cli/utils/manifest.js +48 -45
- package/dist/cli/utils/version.d.ts +0 -1
- package/dist/cli/utils/version.js +38 -32
- package/dist/index.d.ts +0 -1
- package/dist/index.js +39 -11
- package/dist/permissions/index.d.ts +0 -1
- package/dist/permissions/index.js +7 -4
- package/dist/permissions/permission-schema.d.ts +0 -1
- package/dist/permissions/permission-schema.js +13 -9
- package/dist/scripts/job-fair-aggregator.d.ts +0 -1
- package/dist/scripts/job-fair-aggregator.js +484 -341
- package/dist/workflow/index.d.ts +0 -1
- package/dist/workflow/index.js +12 -5
- package/dist/workflow/workflow-loader.d.ts +0 -1
- package/dist/workflow/workflow-loader.js +40 -34
- package/dist/workflow/workflow-permissions.d.ts +0 -1
- package/dist/workflow/workflow-permissions.js +14 -8
- package/dist/workflow/workflow-router.d.ts +0 -1
- package/dist/workflow/workflow-router.js +70 -51
- package/dist/workflow/workflow-schema.d.ts +0 -1
- package/dist/workflow/workflow-schema.js +62 -59
- package/package.json +1 -1
- package/dist/bmad/context-reader.d.ts +0 -71
- package/dist/bmad/context-reader.d.ts.map +0 -1
- package/dist/bmad/context-reader.js +0 -369
- package/dist/bmad/context-reader.js.map +0 -1
- package/dist/bmad/context-reader.test.d.ts +0 -71
- package/dist/bmad/context-reader.test.d.ts.map +0 -1
- package/dist/bmad/context-reader.test.js +0 -878
- package/dist/bmad/context-reader.test.js.map +0 -1
- package/dist/bmad/epics-parser.d.ts +0 -61
- package/dist/bmad/epics-parser.d.ts.map +0 -1
- package/dist/bmad/epics-parser.js +0 -331
- package/dist/bmad/epics-parser.js.map +0 -1
- package/dist/bmad/epics-parser.test.d.ts +0 -7
- package/dist/bmad/epics-parser.test.d.ts.map +0 -1
- package/dist/bmad/epics-parser.test.js +0 -449
- package/dist/bmad/epics-parser.test.js.map +0 -1
- package/dist/bmad/index.d.ts +0 -11
- package/dist/bmad/index.d.ts.map +0 -1
- package/dist/bmad/index.js +0 -24
- package/dist/bmad/index.js.map +0 -1
- package/dist/bmad/status-sync.d.ts +0 -173
- package/dist/bmad/status-sync.d.ts.map +0 -1
- package/dist/bmad/status-sync.js +0 -463
- package/dist/bmad/status-sync.js.map +0 -1
- package/dist/bmad/status-sync.test.d.ts +0 -7
- package/dist/bmad/status-sync.test.d.ts.map +0 -1
- package/dist/bmad/status-sync.test.js +0 -702
- package/dist/bmad/status-sync.test.js.map +0 -1
- package/dist/bmad/story-exporter.d.ts +0 -55
- package/dist/bmad/story-exporter.d.ts.map +0 -1
- package/dist/bmad/story-exporter.js +0 -170
- package/dist/bmad/story-exporter.js.map +0 -1
- package/dist/bmad/story-exporter.test.d.ts +0 -51
- package/dist/bmad/story-exporter.test.d.ts.map +0 -1
- package/dist/bmad/story-exporter.test.js +0 -603
- package/dist/bmad/story-exporter.test.js.map +0 -1
- package/dist/bmad/story-parser.d.ts +0 -44
- package/dist/bmad/story-parser.d.ts.map +0 -1
- package/dist/bmad/story-parser.js +0 -307
- package/dist/bmad/story-parser.js.map +0 -1
- package/dist/bmad/story-parser.test.d.ts +0 -44
- package/dist/bmad/story-parser.test.d.ts.map +0 -1
- package/dist/bmad/story-parser.test.js +0 -693
- package/dist/bmad/story-parser.test.js.map +0 -1
- package/dist/cli/commands/command.d.ts +0 -28
- package/dist/cli/commands/command.d.ts.map +0 -1
- package/dist/cli/commands/command.js +0 -399
- package/dist/cli/commands/command.js.map +0 -1
- package/dist/cli/commands/cyclist.d.ts +0 -46
- package/dist/cli/commands/cyclist.d.ts.map +0 -1
- package/dist/cli/commands/cyclist.js +0 -196
- package/dist/cli/commands/cyclist.js.map +0 -1
- package/dist/cli/commands/cyclist.test.d.ts +0 -13
- package/dist/cli/commands/cyclist.test.d.ts.map +0 -1
- package/dist/cli/commands/cyclist.test.js +0 -245
- package/dist/cli/commands/cyclist.test.js.map +0 -1
- package/dist/cli/commands/doctor.d.ts +0 -9
- package/dist/cli/commands/doctor.d.ts.map +0 -1
- package/dist/cli/commands/doctor.js +0 -652
- package/dist/cli/commands/doctor.js.map +0 -1
- package/dist/cli/commands/init.d.ts +0 -8
- package/dist/cli/commands/init.d.ts.map +0 -1
- package/dist/cli/commands/init.js +0 -524
- package/dist/cli/commands/init.js.map +0 -1
- package/dist/cli/commands/skill.d.ts +0 -28
- package/dist/cli/commands/skill.d.ts.map +0 -1
- package/dist/cli/commands/skill.js +0 -416
- package/dist/cli/commands/skill.js.map +0 -1
- package/dist/cli/commands/theme.d.ts +0 -21
- package/dist/cli/commands/theme.d.ts.map +0 -1
- package/dist/cli/commands/theme.js +0 -201
- package/dist/cli/commands/theme.js.map +0 -1
- package/dist/cli/commands/uninstall.d.ts +0 -8
- package/dist/cli/commands/uninstall.d.ts.map +0 -1
- package/dist/cli/commands/uninstall.js +0 -237
- package/dist/cli/commands/uninstall.js.map +0 -1
- package/dist/cli/commands/update.d.ts +0 -9
- package/dist/cli/commands/update.d.ts.map +0 -1
- package/dist/cli/commands/update.js +0 -418
- package/dist/cli/commands/update.js.map +0 -1
- package/dist/cli/commands/version.d.ts +0 -2
- package/dist/cli/commands/version.d.ts.map +0 -1
- package/dist/cli/commands/version.js +0 -28
- package/dist/cli/commands/version.js.map +0 -1
- package/dist/cli/customization.test.d.ts +0 -12
- package/dist/cli/customization.test.d.ts.map +0 -1
- package/dist/cli/customization.test.js +0 -84
- package/dist/cli/customization.test.js.map +0 -1
- package/dist/cli/cyclist-migration.test.d.ts +0 -16
- package/dist/cli/cyclist-migration.test.d.ts.map +0 -1
- package/dist/cli/cyclist-migration.test.js +0 -225
- package/dist/cli/cyclist-migration.test.js.map +0 -1
- package/dist/cli/index.d.ts +0 -3
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/index.js +0 -174
- package/dist/cli/index.js.map +0 -1
- package/dist/cli/ocean-profiles.test.d.ts +0 -13
- package/dist/cli/ocean-profiles.test.d.ts.map +0 -1
- package/dist/cli/ocean-profiles.test.js +0 -134
- package/dist/cli/ocean-profiles.test.js.map +0 -1
- package/dist/cli/theme-maker.test.d.ts +0 -11
- package/dist/cli/theme-maker.test.d.ts.map +0 -1
- package/dist/cli/theme-maker.test.js +0 -356
- package/dist/cli/theme-maker.test.js.map +0 -1
- package/dist/cli/utils/constants.d.ts +0 -66
- package/dist/cli/utils/constants.d.ts.map +0 -1
- package/dist/cli/utils/constants.js +0 -54
- package/dist/cli/utils/constants.js.map +0 -1
- package/dist/cli/utils/files.d.ts.map +0 -1
- package/dist/cli/utils/files.js.map +0 -1
- package/dist/cli/utils/logger.d.ts +0 -26
- package/dist/cli/utils/logger.d.ts.map +0 -1
- package/dist/cli/utils/logger.js +0 -88
- package/dist/cli/utils/logger.js.map +0 -1
- package/dist/cli/utils/manifest.d.ts.map +0 -1
- package/dist/cli/utils/manifest.js.map +0 -1
- package/dist/cli/utils/node-modules.d.ts +0 -6
- package/dist/cli/utils/node-modules.d.ts.map +0 -1
- package/dist/cli/utils/node-modules.js +0 -31
- package/dist/cli/utils/node-modules.js.map +0 -1
- package/dist/cli/utils/prompts.d.ts +0 -34
- package/dist/cli/utils/prompts.d.ts.map +0 -1
- package/dist/cli/utils/prompts.js +0 -93
- package/dist/cli/utils/prompts.js.map +0 -1
- package/dist/cli/utils/symlinks.d.ts +0 -29
- package/dist/cli/utils/symlinks.d.ts.map +0 -1
- package/dist/cli/utils/symlinks.js +0 -181
- package/dist/cli/utils/symlinks.js.map +0 -1
- package/dist/cli/utils/themes.d.ts +0 -101
- package/dist/cli/utils/themes.d.ts.map +0 -1
- package/dist/cli/utils/themes.js +0 -373
- package/dist/cli/utils/themes.js.map +0 -1
- package/dist/cli/utils/themes.test.d.ts +0 -12
- package/dist/cli/utils/themes.test.d.ts.map +0 -1
- package/dist/cli/utils/themes.test.js +0 -147
- package/dist/cli/utils/themes.test.js.map +0 -1
- package/dist/cli/utils/version.d.ts.map +0 -1
- package/dist/cli/utils/version.js.map +0 -1
- package/dist/cli/workspace.test.d.ts +0 -8
- package/dist/cli/workspace.test.d.ts.map +0 -1
- package/dist/cli/workspace.test.js +0 -151
- package/dist/cli/workspace.test.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/jira/jira-epic-creation.d.ts +0 -109
- package/dist/jira/jira-epic-creation.d.ts.map +0 -1
- package/dist/jira/jira-epic-creation.js +0 -253
- package/dist/jira/jira-epic-creation.js.map +0 -1
- package/dist/jira/jira-epic-creation.test.d.ts +0 -16
- package/dist/jira/jira-epic-creation.test.d.ts.map +0 -1
- package/dist/jira/jira-epic-creation.test.js +0 -387
- package/dist/jira/jira-epic-creation.test.js.map +0 -1
- package/dist/jira/jira-sprint-sync.d.ts +0 -247
- package/dist/jira/jira-sprint-sync.d.ts.map +0 -1
- package/dist/jira/jira-sprint-sync.js +0 -670
- package/dist/jira/jira-sprint-sync.js.map +0 -1
- package/dist/jira/jira-sprint-sync.test.d.ts +0 -16
- package/dist/jira/jira-sprint-sync.test.d.ts.map +0 -1
- package/dist/jira/jira-sprint-sync.test.js +0 -845
- package/dist/jira/jira-sprint-sync.test.js.map +0 -1
- package/dist/permissions/index.d.ts.map +0 -1
- package/dist/permissions/index.js.map +0 -1
- package/dist/permissions/permission-schema.d.ts.map +0 -1
- package/dist/permissions/permission-schema.js.map +0 -1
- package/dist/permissions/permission-schema.test.d.ts +0 -40
- package/dist/permissions/permission-schema.test.d.ts.map +0 -1
- package/dist/permissions/permission-schema.test.js +0 -367
- package/dist/permissions/permission-schema.test.js.map +0 -1
- package/dist/scripts/add-ocean-profiles.d.ts +0 -9
- package/dist/scripts/add-ocean-profiles.d.ts.map +0 -1
- package/dist/scripts/add-ocean-profiles.js +0 -695
- package/dist/scripts/add-ocean-profiles.js.map +0 -1
- package/dist/scripts/benchmark-integration.d.ts +0 -182
- package/dist/scripts/benchmark-integration.d.ts.map +0 -1
- package/dist/scripts/benchmark-integration.js +0 -691
- package/dist/scripts/benchmark-integration.js.map +0 -1
- package/dist/scripts/benchmark-integration.test.d.ts +0 -13
- package/dist/scripts/benchmark-integration.test.d.ts.map +0 -1
- package/dist/scripts/benchmark-integration.test.js +0 -680
- package/dist/scripts/benchmark-integration.test.js.map +0 -1
- package/dist/scripts/debugging-scenarios.test.d.ts +0 -18
- package/dist/scripts/debugging-scenarios.test.d.ts.map +0 -1
- package/dist/scripts/debugging-scenarios.test.js +0 -317
- package/dist/scripts/debugging-scenarios.test.js.map +0 -1
- package/dist/scripts/generate-all-spiders.d.ts +0 -10
- package/dist/scripts/generate-all-spiders.d.ts.map +0 -1
- package/dist/scripts/generate-all-spiders.js +0 -306
- package/dist/scripts/generate-all-spiders.js.map +0 -1
- package/dist/scripts/generate-report.d.ts +0 -65
- package/dist/scripts/generate-report.d.ts.map +0 -1
- package/dist/scripts/generate-report.js +0 -378
- package/dist/scripts/generate-report.js.map +0 -1
- package/dist/scripts/generate-report.test.d.ts +0 -13
- package/dist/scripts/generate-report.test.d.ts.map +0 -1
- package/dist/scripts/generate-report.test.js +0 -363
- package/dist/scripts/generate-report.test.js.map +0 -1
- package/dist/scripts/generate-spider-report.d.ts +0 -65
- package/dist/scripts/generate-spider-report.d.ts.map +0 -1
- package/dist/scripts/generate-spider-report.js +0 -366
- package/dist/scripts/generate-spider-report.js.map +0 -1
- package/dist/scripts/generate-spider-report.test.d.ts +0 -13
- package/dist/scripts/generate-spider-report.test.d.ts.map +0 -1
- package/dist/scripts/generate-spider-report.test.js +0 -367
- package/dist/scripts/generate-spider-report.test.js.map +0 -1
- package/dist/scripts/generate-spider.d.ts +0 -47
- package/dist/scripts/generate-spider.d.ts.map +0 -1
- package/dist/scripts/generate-spider.js +0 -338
- package/dist/scripts/generate-spider.js.map +0 -1
- package/dist/scripts/generate-spider.test.d.ts +0 -14
- package/dist/scripts/generate-spider.test.d.ts.map +0 -1
- package/dist/scripts/generate-spider.test.js +0 -271
- package/dist/scripts/generate-spider.test.js.map +0 -1
- package/dist/scripts/job-fair-aggregator.d.ts.map +0 -1
- package/dist/scripts/job-fair-aggregator.js.map +0 -1
- package/dist/scripts/job-fair-aggregator.test.d.ts +0 -14
- package/dist/scripts/job-fair-aggregator.test.d.ts.map +0 -1
- package/dist/scripts/job-fair-aggregator.test.js +0 -616
- package/dist/scripts/job-fair-aggregator.test.js.map +0 -1
- package/dist/scripts/run-ci.test.d.ts +0 -20
- package/dist/scripts/run-ci.test.d.ts.map +0 -1
- package/dist/scripts/run-ci.test.js +0 -127
- package/dist/scripts/run-ci.test.js.map +0 -1
- package/dist/scripts/theme-detail.test.d.ts +0 -10
- package/dist/scripts/theme-detail.test.d.ts.map +0 -1
- package/dist/scripts/theme-detail.test.js +0 -199
- package/dist/scripts/theme-detail.test.js.map +0 -1
- package/dist/scripts/validate-ocean-profiles.d.ts +0 -9
- package/dist/scripts/validate-ocean-profiles.d.ts.map +0 -1
- package/dist/scripts/validate-ocean-profiles.js +0 -130
- package/dist/scripts/validate-ocean-profiles.js.map +0 -1
- package/dist/workflow/gate-handler.d.ts +0 -94
- package/dist/workflow/gate-handler.d.ts.map +0 -1
- package/dist/workflow/gate-handler.js +0 -189
- package/dist/workflow/gate-handler.js.map +0 -1
- package/dist/workflow/gate-handler.test.d.ts +0 -14
- package/dist/workflow/gate-handler.test.d.ts.map +0 -1
- package/dist/workflow/gate-handler.test.js +0 -543
- package/dist/workflow/gate-handler.test.js.map +0 -1
- package/dist/workflow/generic-handoff.d.ts +0 -281
- package/dist/workflow/generic-handoff.d.ts.map +0 -1
- package/dist/workflow/generic-handoff.js +0 -411
- package/dist/workflow/generic-handoff.js.map +0 -1
- package/dist/workflow/generic-handoff.test.d.ts +0 -21
- package/dist/workflow/generic-handoff.test.d.ts.map +0 -1
- package/dist/workflow/generic-handoff.test.js +0 -499
- package/dist/workflow/generic-handoff.test.js.map +0 -1
- package/dist/workflow/generic-sm-finish.d.ts +0 -89
- package/dist/workflow/generic-sm-finish.d.ts.map +0 -1
- package/dist/workflow/generic-sm-finish.js +0 -157
- package/dist/workflow/generic-sm-finish.js.map +0 -1
- package/dist/workflow/generic-sm-setup.d.ts +0 -138
- package/dist/workflow/generic-sm-setup.d.ts.map +0 -1
- package/dist/workflow/generic-sm-setup.js +0 -382
- package/dist/workflow/generic-sm-setup.js.map +0 -1
- package/dist/workflow/index.d.ts.map +0 -1
- package/dist/workflow/index.js.map +0 -1
- package/dist/workflow/session-state.d.ts +0 -92
- package/dist/workflow/session-state.d.ts.map +0 -1
- package/dist/workflow/session-state.js +0 -198
- package/dist/workflow/session-state.js.map +0 -1
- package/dist/workflow/session-state.test.d.ts +0 -8
- package/dist/workflow/session-state.test.d.ts.map +0 -1
- package/dist/workflow/session-state.test.js +0 -551
- package/dist/workflow/session-state.test.js.map +0 -1
- package/dist/workflow/sm-subagents.test.d.ts +0 -23
- package/dist/workflow/sm-subagents.test.d.ts.map +0 -1
- package/dist/workflow/sm-subagents.test.js +0 -727
- package/dist/workflow/sm-subagents.test.js.map +0 -1
- package/dist/workflow/step-parser.d.ts +0 -45
- package/dist/workflow/step-parser.d.ts.map +0 -1
- package/dist/workflow/step-parser.js +0 -147
- package/dist/workflow/step-parser.js.map +0 -1
- package/dist/workflow/step-parser.test.d.ts +0 -14
- package/dist/workflow/step-parser.test.d.ts.map +0 -1
- package/dist/workflow/step-parser.test.js +0 -470
- package/dist/workflow/step-parser.test.js.map +0 -1
- package/dist/workflow/story-workflow-routing.test.d.ts +0 -17
- package/dist/workflow/story-workflow-routing.test.d.ts.map +0 -1
- package/dist/workflow/story-workflow-routing.test.js +0 -559
- package/dist/workflow/story-workflow-routing.test.js.map +0 -1
- package/dist/workflow/test-cache.d.ts +0 -131
- package/dist/workflow/test-cache.d.ts.map +0 -1
- package/dist/workflow/test-cache.js +0 -226
- package/dist/workflow/test-cache.js.map +0 -1
- package/dist/workflow/test-cache.test.d.ts +0 -17
- package/dist/workflow/test-cache.test.d.ts.map +0 -1
- package/dist/workflow/test-cache.test.js +0 -438
- package/dist/workflow/test-cache.test.js.map +0 -1
- package/dist/workflow/trimodal.d.ts +0 -86
- package/dist/workflow/trimodal.d.ts.map +0 -1
- package/dist/workflow/trimodal.js +0 -118
- package/dist/workflow/trimodal.js.map +0 -1
- package/dist/workflow/trimodal.test.d.ts +0 -11
- package/dist/workflow/trimodal.test.d.ts.map +0 -1
- package/dist/workflow/trimodal.test.js +0 -395
- package/dist/workflow/trimodal.test.js.map +0 -1
- package/dist/workflow/variable-resolver.d.ts +0 -67
- package/dist/workflow/variable-resolver.d.ts.map +0 -1
- package/dist/workflow/variable-resolver.js +0 -156
- package/dist/workflow/variable-resolver.js.map +0 -1
- package/dist/workflow/variable-resolver.test.d.ts +0 -14
- package/dist/workflow/variable-resolver.test.d.ts.map +0 -1
- package/dist/workflow/variable-resolver.test.js +0 -400
- package/dist/workflow/variable-resolver.test.js.map +0 -1
- package/dist/workflow/workflow-executor.d.ts +0 -163
- package/dist/workflow/workflow-executor.d.ts.map +0 -1
- package/dist/workflow/workflow-executor.js +0 -197
- package/dist/workflow/workflow-executor.js.map +0 -1
- package/dist/workflow/workflow-executor.test.d.ts +0 -8
- package/dist/workflow/workflow-executor.test.d.ts.map +0 -1
- package/dist/workflow/workflow-executor.test.js +0 -444
- package/dist/workflow/workflow-executor.test.js.map +0 -1
- package/dist/workflow/workflow-loader.d.ts.map +0 -1
- package/dist/workflow/workflow-loader.js.map +0 -1
- package/dist/workflow/workflow-loader.test.d.ts +0 -15
- package/dist/workflow/workflow-loader.test.d.ts.map +0 -1
- package/dist/workflow/workflow-loader.test.js +0 -354
- package/dist/workflow/workflow-loader.test.js.map +0 -1
- package/dist/workflow/workflow-migration.test.d.ts +0 -17
- package/dist/workflow/workflow-migration.test.d.ts.map +0 -1
- package/dist/workflow/workflow-migration.test.js +0 -371
- package/dist/workflow/workflow-migration.test.js.map +0 -1
- package/dist/workflow/workflow-permissions.d.ts.map +0 -1
- package/dist/workflow/workflow-permissions.js.map +0 -1
- package/dist/workflow/workflow-permissions.test.d.ts +0 -15
- package/dist/workflow/workflow-permissions.test.d.ts.map +0 -1
- package/dist/workflow/workflow-permissions.test.js +0 -301
- package/dist/workflow/workflow-permissions.test.js.map +0 -1
- package/dist/workflow/workflow-router.d.ts.map +0 -1
- package/dist/workflow/workflow-router.js.map +0 -1
- package/dist/workflow/workflow-router.test.d.ts +0 -20
- package/dist/workflow/workflow-router.test.d.ts.map +0 -1
- package/dist/workflow/workflow-router.test.js +0 -607
- package/dist/workflow/workflow-router.test.js.map +0 -1
- package/dist/workflow/workflow-schema.d.ts.map +0 -1
- package/dist/workflow/workflow-schema.js.map +0 -1
- package/dist/workflow/workflow-schema.test.d.ts +0 -45
- package/dist/workflow/workflow-schema.test.d.ts.map +0 -1
- package/dist/workflow/workflow-schema.test.js +0 -512
- package/dist/workflow/workflow-schema.test.js.map +0 -1
- package/dist/workflow/workflow-stepped-schema.test.d.ts +0 -18
- package/dist/workflow/workflow-stepped-schema.test.d.ts.map +0 -1
- package/dist/workflow/workflow-stepped-schema.test.js +0 -608
- package/dist/workflow/workflow-stepped-schema.test.js.map +0 -1
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generic SM Finish - Combines finish-bookkeeping + finish-execution
|
|
3
|
-
*
|
|
4
|
-
* Provides two phases:
|
|
5
|
-
* 1. Preflight: PR check, lint fix, Jira status → JSON report
|
|
6
|
-
* 2. Execute: Archive, Jira transition, cleanup → completion flags
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* Issue found during preflight
|
|
10
|
-
*/
|
|
11
|
-
export interface PreflightIssue {
|
|
12
|
-
type: 'critical' | 'warning' | 'info';
|
|
13
|
-
message: string;
|
|
14
|
-
field?: string;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Acceptance criteria status
|
|
18
|
-
*/
|
|
19
|
-
export interface AcceptanceCriteriaStatus {
|
|
20
|
-
total: number;
|
|
21
|
-
checked: number;
|
|
22
|
-
complete: boolean;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Preflight result - JSON report of readiness checks
|
|
26
|
-
*/
|
|
27
|
-
export interface PreflightResult {
|
|
28
|
-
prStatus: Record<string, 'merged' | 'open' | 'NO_PR'>;
|
|
29
|
-
lintStatus: Record<string, 'clean' | 'fixed' | 'failed'>;
|
|
30
|
-
jiraStatus?: string;
|
|
31
|
-
acceptanceCriteria: AcceptanceCriteriaStatus;
|
|
32
|
-
readyToFinish: boolean;
|
|
33
|
-
issues: PreflightIssue[];
|
|
34
|
-
warnings?: string[];
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Execute result - completion flags
|
|
38
|
-
*/
|
|
39
|
-
export interface ExecuteResult {
|
|
40
|
-
success: boolean;
|
|
41
|
-
archived: boolean;
|
|
42
|
-
sessionCleared: boolean;
|
|
43
|
-
archivePath?: string;
|
|
44
|
-
summaryPath?: string;
|
|
45
|
-
error?: string;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Preflight check parameters
|
|
49
|
-
*/
|
|
50
|
-
export interface PreflightParams {
|
|
51
|
-
storyId: string;
|
|
52
|
-
repos: string;
|
|
53
|
-
branch: string;
|
|
54
|
-
jiraKey?: string;
|
|
55
|
-
projectRoot: string;
|
|
56
|
-
_mockPrStatus?: 'merged' | 'open' | 'NO_PR';
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Execute finish parameters
|
|
60
|
-
*/
|
|
61
|
-
export interface ExecuteParams {
|
|
62
|
-
storyId: string;
|
|
63
|
-
storyTitle: string;
|
|
64
|
-
sessionDir: string;
|
|
65
|
-
archiveDir: string;
|
|
66
|
-
contextDir?: string;
|
|
67
|
-
summaryContent: string;
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Run preflight checks before finishing a story
|
|
71
|
-
*
|
|
72
|
-
* Checks PR status, lint status, Jira readiness, and acceptance criteria.
|
|
73
|
-
* Returns a JSON report for SM to evaluate.
|
|
74
|
-
*
|
|
75
|
-
* @param params - Preflight parameters
|
|
76
|
-
* @returns Preflight result with status and issues
|
|
77
|
-
*/
|
|
78
|
-
export declare function preflightCheck(params: PreflightParams): Promise<PreflightResult>;
|
|
79
|
-
/**
|
|
80
|
-
* Execute finish steps after SM approval
|
|
81
|
-
*
|
|
82
|
-
* Archives session file, writes summary, cleans up.
|
|
83
|
-
* Returns completion flags.
|
|
84
|
-
*
|
|
85
|
-
* @param params - Execute parameters
|
|
86
|
-
* @returns Execute result with completion flags
|
|
87
|
-
*/
|
|
88
|
-
export declare function executeFinish(params: ExecuteParams): Promise<ExecuteResult>;
|
|
89
|
-
//# sourceMappingURL=generic-sm-finish.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generic-sm-finish.d.ts","sourceRoot":"","sources":["../../src/workflow/generic-sm-finish.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;IACtD,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC,CAAC;IACzD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,wBAAwB,CAAC;IAC7C,aAAa,EAAE,OAAO,CAAC;IACvB,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,cAAc,EAAE,OAAO,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;CAC7C;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;CACxB;AAuCD;;;;;;;;GAQG;AACH,wBAAsB,cAAc,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC,CAmDtF;AAaD;;;;;;;;GAQG;AACH,wBAAsB,aAAa,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,CA8CjF"}
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generic SM Finish - Combines finish-bookkeeping + finish-execution
|
|
3
|
-
*
|
|
4
|
-
* Provides two phases:
|
|
5
|
-
* 1. Preflight: PR check, lint fix, Jira status → JSON report
|
|
6
|
-
* 2. Execute: Archive, Jira transition, cleanup → completion flags
|
|
7
|
-
*/
|
|
8
|
-
import { readFileSync, existsSync, writeFileSync, unlinkSync } from 'node:fs';
|
|
9
|
-
import { join } from 'node:path';
|
|
10
|
-
/**
|
|
11
|
-
* Parse acceptance criteria from session file content
|
|
12
|
-
*/
|
|
13
|
-
function parseAcceptanceCriteria(content) {
|
|
14
|
-
const lines = content.split('\n');
|
|
15
|
-
let total = 0;
|
|
16
|
-
let checked = 0;
|
|
17
|
-
let inACSection = false;
|
|
18
|
-
for (const line of lines) {
|
|
19
|
-
if (line.includes('## Acceptance Criteria')) {
|
|
20
|
-
inACSection = true;
|
|
21
|
-
continue;
|
|
22
|
-
}
|
|
23
|
-
if (inACSection && line.startsWith('## ')) {
|
|
24
|
-
// Reached another section
|
|
25
|
-
break;
|
|
26
|
-
}
|
|
27
|
-
if (inACSection) {
|
|
28
|
-
// Match checkbox patterns: - [x] or - [ ]
|
|
29
|
-
const checkboxMatch = line.match(/^[-*]\s*\[([ xX])\]/);
|
|
30
|
-
if (checkboxMatch) {
|
|
31
|
-
total++;
|
|
32
|
-
if (checkboxMatch[1].toLowerCase() === 'x') {
|
|
33
|
-
checked++;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return {
|
|
39
|
-
total,
|
|
40
|
-
checked,
|
|
41
|
-
complete: total > 0 && checked === total
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Run preflight checks before finishing a story
|
|
46
|
-
*
|
|
47
|
-
* Checks PR status, lint status, Jira readiness, and acceptance criteria.
|
|
48
|
-
* Returns a JSON report for SM to evaluate.
|
|
49
|
-
*
|
|
50
|
-
* @param params - Preflight parameters
|
|
51
|
-
* @returns Preflight result with status and issues
|
|
52
|
-
*/
|
|
53
|
-
export async function preflightCheck(params) {
|
|
54
|
-
const { storyId, repos, jiraKey, projectRoot, _mockPrStatus } = params;
|
|
55
|
-
const issues = [];
|
|
56
|
-
const warnings = [];
|
|
57
|
-
// Initialize PR status based on repos
|
|
58
|
-
const prStatus = {};
|
|
59
|
-
const repoList = repos.split(',').map(r => r.trim());
|
|
60
|
-
for (const repo of repoList) {
|
|
61
|
-
// Use mock status if provided (for testing), otherwise default to NO_PR
|
|
62
|
-
prStatus[repo] = _mockPrStatus || 'NO_PR';
|
|
63
|
-
}
|
|
64
|
-
// Check for open PR warning
|
|
65
|
-
for (const repo of repoList) {
|
|
66
|
-
if (prStatus[repo] === 'open') {
|
|
67
|
-
warnings.push(`PR for ${repo} is still open - not merged yet`);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
// Initialize lint status (default to clean for testing)
|
|
71
|
-
const lintStatus = {};
|
|
72
|
-
for (const repo of repoList) {
|
|
73
|
-
lintStatus[repo] = 'clean';
|
|
74
|
-
}
|
|
75
|
-
// Check acceptance criteria from session file
|
|
76
|
-
let acceptanceCriteria = { total: 0, checked: 0, complete: true };
|
|
77
|
-
const sessionPath = join(projectRoot, '.session', `${storyId}-session.md`);
|
|
78
|
-
if (existsSync(sessionPath)) {
|
|
79
|
-
const content = readFileSync(sessionPath, 'utf-8');
|
|
80
|
-
acceptanceCriteria = parseAcceptanceCriteria(content);
|
|
81
|
-
}
|
|
82
|
-
// Determine readiness
|
|
83
|
-
const allMerged = Object.values(prStatus).every(s => s === 'merged');
|
|
84
|
-
const noIssues = issues.length === 0;
|
|
85
|
-
const readyToFinish = allMerged && acceptanceCriteria.complete && noIssues;
|
|
86
|
-
return {
|
|
87
|
-
prStatus,
|
|
88
|
-
lintStatus,
|
|
89
|
-
jiraStatus: jiraKey ? 'ready' : undefined,
|
|
90
|
-
acceptanceCriteria,
|
|
91
|
-
readyToFinish,
|
|
92
|
-
issues,
|
|
93
|
-
warnings: warnings.length > 0 ? warnings : undefined
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Format date as YYYYMMDD
|
|
98
|
-
*/
|
|
99
|
-
function formatDateForFilename() {
|
|
100
|
-
const now = new Date();
|
|
101
|
-
const year = now.getFullYear();
|
|
102
|
-
const month = String(now.getMonth() + 1).padStart(2, '0');
|
|
103
|
-
const day = String(now.getDate()).padStart(2, '0');
|
|
104
|
-
return `${year}${month}${day}`;
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* Execute finish steps after SM approval
|
|
108
|
-
*
|
|
109
|
-
* Archives session file, writes summary, cleans up.
|
|
110
|
-
* Returns completion flags.
|
|
111
|
-
*
|
|
112
|
-
* @param params - Execute parameters
|
|
113
|
-
* @returns Execute result with completion flags
|
|
114
|
-
*/
|
|
115
|
-
export async function executeFinish(params) {
|
|
116
|
-
const { storyId, sessionDir, archiveDir, contextDir, summaryContent } = params;
|
|
117
|
-
const sessionPath = join(sessionDir, `${storyId}-session.md`);
|
|
118
|
-
const dateStr = formatDateForFilename();
|
|
119
|
-
const archivePath = join(archiveDir, `story-${storyId}-${dateStr}.md`);
|
|
120
|
-
let archived = false;
|
|
121
|
-
let sessionCleared = false;
|
|
122
|
-
let summaryPath;
|
|
123
|
-
try {
|
|
124
|
-
// Archive session file
|
|
125
|
-
if (existsSync(sessionPath)) {
|
|
126
|
-
const content = readFileSync(sessionPath, 'utf-8');
|
|
127
|
-
writeFileSync(archivePath, content);
|
|
128
|
-
archived = true;
|
|
129
|
-
// Remove session file
|
|
130
|
-
unlinkSync(sessionPath);
|
|
131
|
-
sessionCleared = true;
|
|
132
|
-
}
|
|
133
|
-
// Write summary file if contextDir provided
|
|
134
|
-
if (contextDir) {
|
|
135
|
-
summaryPath = join(contextDir, `story-${storyId}-summary.md`);
|
|
136
|
-
writeFileSync(summaryPath, summaryContent);
|
|
137
|
-
}
|
|
138
|
-
return {
|
|
139
|
-
success: true,
|
|
140
|
-
archived,
|
|
141
|
-
sessionCleared,
|
|
142
|
-
archivePath,
|
|
143
|
-
summaryPath
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
catch (error) {
|
|
147
|
-
return {
|
|
148
|
-
success: false,
|
|
149
|
-
archived,
|
|
150
|
-
sessionCleared,
|
|
151
|
-
archivePath: archived ? archivePath : undefined,
|
|
152
|
-
summaryPath,
|
|
153
|
-
error: `Failed to execute finish: ${error}`
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
//# sourceMappingURL=generic-sm-finish.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generic-sm-finish.js","sourceRoot":"","sources":["../../src/workflow/generic-sm-finish.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC9E,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAqEjC;;GAEG;AACH,SAAS,uBAAuB,CAAC,OAAe;IAC9C,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAClC,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,IAAI,OAAO,GAAG,CAAC,CAAC;IAChB,IAAI,WAAW,GAAG,KAAK,CAAC;IAExB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,IAAI,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,EAAE,CAAC;YAC5C,WAAW,GAAG,IAAI,CAAC;YACnB,SAAS;QACX,CAAC;QACD,IAAI,WAAW,IAAI,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC;YAC1C,0BAA0B;YAC1B,MAAM;QACR,CAAC;QACD,IAAI,WAAW,EAAE,CAAC;YAChB,0CAA0C;YAC1C,MAAM,aAAa,GAAG,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;YACxD,IAAI,aAAa,EAAE,CAAC;gBAClB,KAAK,EAAE,CAAC;gBACR,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,KAAK,GAAG,EAAE,CAAC;oBAC3C,O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ACR,cAAc;YACd,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS;YAC/C,WAAW;YACX,KAAK,EAAE,6BAA6B,KAAK,EAAE;SAC5C,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generic SM Setup - Combines story-setup + work-research
|
|
3
|
-
*
|
|
4
|
-
* Provides two modes:
|
|
5
|
-
* 1. Research mode: Scan backlog, batch Jira query, recommend stories
|
|
6
|
-
* 2. Setup mode: Claim Jira, create branches, write session file
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* Story info from sprint YAML
|
|
10
|
-
*/
|
|
11
|
-
export interface StoryInfo {
|
|
12
|
-
id: string;
|
|
13
|
-
title: string;
|
|
14
|
-
status: string;
|
|
15
|
-
points?: number;
|
|
16
|
-
priority?: string;
|
|
17
|
-
epic?: number;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Research result - available stories and sprint metadata
|
|
21
|
-
*/
|
|
22
|
-
export interface ResearchResult {
|
|
23
|
-
success: boolean;
|
|
24
|
-
availableStories: StoryInfo[];
|
|
25
|
-
sprintNumber?: number;
|
|
26
|
-
sprintGoal?: string;
|
|
27
|
-
completedPoints?: number;
|
|
28
|
-
totalPoints?: number;
|
|
29
|
-
error?: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Setup result - session file and branch info
|
|
33
|
-
*/
|
|
34
|
-
export interface SetupResult {
|
|
35
|
-
success: boolean;
|
|
36
|
-
sessionFile?: string;
|
|
37
|
-
branchName?: string;
|
|
38
|
-
error?: string;
|
|
39
|
-
warnings?: string[];
|
|
40
|
-
}
|
|
41
|
-
export type GenericSmSetupResult = ResearchResult | SetupResult;
|
|
42
|
-
/**
|
|
43
|
-
* Research mode parameters
|
|
44
|
-
*/
|
|
45
|
-
export interface ResearchParams {
|
|
46
|
-
sprintPath: string;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Setup mode parameters
|
|
50
|
-
*/
|
|
51
|
-
export interface SetupParams {
|
|
52
|
-
storyId: string;
|
|
53
|
-
title: string;
|
|
54
|
-
points: number;
|
|
55
|
-
epic: number;
|
|
56
|
-
repos: string;
|
|
57
|
-
sessionDir: string;
|
|
58
|
-
workflow: string;
|
|
59
|
-
assignee?: string;
|
|
60
|
-
jiraKey?: string;
|
|
61
|
-
acceptanceCriteria?: string[];
|
|
62
|
-
checkEpicContext?: boolean;
|
|
63
|
-
contextDir?: string;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Epic context check parameters
|
|
67
|
-
*/
|
|
68
|
-
export interface CheckEpicContextParams {
|
|
69
|
-
epicId: number;
|
|
70
|
-
contextDir: string;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Epic context check result
|
|
74
|
-
*/
|
|
75
|
-
export interface CheckEpicContextResult {
|
|
76
|
-
exists: boolean;
|
|
77
|
-
path?: string;
|
|
78
|
-
message?: string;
|
|
79
|
-
expectedPath?: string;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Epic context creation parameters
|
|
83
|
-
*/
|
|
84
|
-
export interface CreateEpicContextParams {
|
|
85
|
-
epicId: number;
|
|
86
|
-
epicTitle: string;
|
|
87
|
-
contextDir: string;
|
|
88
|
-
content?: string;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Epic context creation result
|
|
92
|
-
*/
|
|
93
|
-
export interface CreateEpicContextResult {
|
|
94
|
-
success: boolean;
|
|
95
|
-
path?: string;
|
|
96
|
-
error?: string;
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Research backlog for available stories
|
|
100
|
-
*
|
|
101
|
-
* Scans sprint YAML and returns available (unassigned, backlog) stories
|
|
102
|
-
* sorted by priority then points.
|
|
103
|
-
*
|
|
104
|
-
* @param params - Research parameters
|
|
105
|
-
* @returns Research result with available stories
|
|
106
|
-
*/
|
|
107
|
-
export declare function researchBacklog(params: ResearchParams): Promise<ResearchResult>;
|
|
108
|
-
/**
|
|
109
|
-
* Setup a story for development
|
|
110
|
-
*
|
|
111
|
-
* Creates session file with story context, calculates branch name,
|
|
112
|
-
* initializes workflow tracking with Phase History table.
|
|
113
|
-
*
|
|
114
|
-
* @param params - Setup parameters
|
|
115
|
-
* @returns Setup result with session file path and branch name
|
|
116
|
-
*/
|
|
117
|
-
export declare function setupStory(params: SetupParams): Promise<SetupResult>;
|
|
118
|
-
/**
|
|
119
|
-
* Check if epic context file exists
|
|
120
|
-
*
|
|
121
|
-
* Validates that sprint/context/context-epic-{N}.md exists before story setup.
|
|
122
|
-
* This ensures stories don't start without understanding their epic's technical landscape.
|
|
123
|
-
*
|
|
124
|
-
* @param params - Check parameters with epicId and contextDir
|
|
125
|
-
* @returns Result indicating if context exists, with path or message
|
|
126
|
-
*/
|
|
127
|
-
export declare function checkEpicContext(params: CheckEpicContextParams): Promise<CheckEpicContextResult>;
|
|
128
|
-
/**
|
|
129
|
-
* Create epic context file from template
|
|
130
|
-
*
|
|
131
|
-
* Creates a new epic context file with standard sections.
|
|
132
|
-
* Will not overwrite existing files to preserve valuable context.
|
|
133
|
-
*
|
|
134
|
-
* @param params - Creation parameters with epicId, title, contextDir, and optional content
|
|
135
|
-
* @returns Result with success status and file path
|
|
136
|
-
*/
|
|
137
|
-
export declare function createEpicContext(params: CreateEpicContextParams): Promise<CreateEpicContextResult>;
|
|
138
|
-
//# sourceMappingURL=generic-sm-setup.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generic-sm-setup.d.ts","sourceRoot":"","sources":["../../src/workflow/generic-sm-setup.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,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