@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
package/dist/cli/utils/files.js
CHANGED
|
@@ -1,70 +1,87 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.hashFile = hashFile;
|
|
4
|
+
exports.hashString = hashString;
|
|
5
|
+
exports.isSymlink = isSymlink;
|
|
6
|
+
exports.pathExists = pathExists;
|
|
7
|
+
exports.isDirectory = isDirectory;
|
|
8
|
+
exports.getAllFiles = getAllFiles;
|
|
9
|
+
exports.copyDirectory = copyDirectory;
|
|
10
|
+
exports.copyFile = copyFile;
|
|
11
|
+
exports.remove = remove;
|
|
12
|
+
exports.ensureDir = ensureDir;
|
|
13
|
+
exports.filesMatch = filesMatch;
|
|
14
|
+
exports.fileMatchesHash = fileMatchesHash;
|
|
15
|
+
exports.getDirectoryHashes = getDirectoryHashes;
|
|
16
|
+
exports.findMonorepoRoot = findMonorepoRoot;
|
|
17
|
+
var crypto_1 = require("crypto");
|
|
18
|
+
var fs_1 = require("fs");
|
|
19
|
+
var fs_extra_1 = require("fs-extra");
|
|
20
|
+
var path_1 = require("path");
|
|
21
|
+
var copySync = fs_extra_1.default.copySync, ensureDirSync = fs_extra_1.default.ensureDirSync, removeSync = fs_extra_1.default.removeSync;
|
|
6
22
|
/**
|
|
7
23
|
* Calculate SHA256 hash of a file
|
|
8
24
|
*/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return createHash('sha256').update(content).digest('hex');
|
|
25
|
+
function hashFile(filePath) {
|
|
26
|
+
var content = (0, fs_1.readFileSync)(filePath);
|
|
27
|
+
return (0, crypto_1.createHash)('sha256').update(content).digest('hex');
|
|
12
28
|
}
|
|
13
29
|
/**
|
|
14
30
|
* Calculate SHA256 hash of a string
|
|
15
31
|
*/
|
|
16
|
-
|
|
17
|
-
return createHash('sha256').update(content).digest('hex');
|
|
32
|
+
function hashString(content) {
|
|
33
|
+
return (0, crypto_1.createHash)('sha256').update(content).digest('hex');
|
|
18
34
|
}
|
|
19
35
|
/**
|
|
20
36
|
* Check if a path is a symlink
|
|
21
37
|
*/
|
|
22
|
-
|
|
38
|
+
function isSymlink(path) {
|
|
23
39
|
try {
|
|
24
|
-
return lstatSync(path).isSymbolicLink();
|
|
40
|
+
return (0, fs_1.lstatSync)(path).isSymbolicLink();
|
|
25
41
|
}
|
|
26
|
-
catch {
|
|
42
|
+
catch (_a) {
|
|
27
43
|
return false;
|
|
28
44
|
}
|
|
29
45
|
}
|
|
30
46
|
/**
|
|
31
47
|
* Check if a path exists (follows symlinks)
|
|
32
48
|
*/
|
|
33
|
-
|
|
34
|
-
return existsSync(path);
|
|
49
|
+
function pathExists(path) {
|
|
50
|
+
return (0, fs_1.existsSync)(path);
|
|
35
51
|
}
|
|
36
52
|
/**
|
|
37
53
|
* Check if a path is a directory
|
|
38
54
|
*/
|
|
39
|
-
|
|
55
|
+
function isDirectory(path) {
|
|
40
56
|
try {
|
|
41
|
-
return statSync(path).isDirectory();
|
|
57
|
+
return (0, fs_1.statSync)(path).isDirectory();
|
|
42
58
|
}
|
|
43
|
-
catch {
|
|
59
|
+
catch (_a) {
|
|
44
60
|
return false;
|
|
45
61
|
}
|
|
46
62
|
}
|
|
47
63
|
/**
|
|
48
64
|
* Get all files in a directory recursively (skips symlinks)
|
|
49
65
|
*/
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
if (!existsSync(dirPath)) {
|
|
66
|
+
function getAllFiles(dirPath, basePath) {
|
|
67
|
+
var base = basePath || dirPath;
|
|
68
|
+
var files = [];
|
|
69
|
+
if (!(0, fs_1.existsSync)(dirPath)) {
|
|
54
70
|
return files;
|
|
55
71
|
}
|
|
56
|
-
|
|
57
|
-
for (
|
|
58
|
-
|
|
72
|
+
var entries = (0, fs_1.readdirSync)(dirPath, { withFileTypes: true });
|
|
73
|
+
for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {
|
|
74
|
+
var entry = entries_1[_i];
|
|
75
|
+
var fullPath = (0, path_1.join)(dirPath, entry.name);
|
|
59
76
|
// Skip symlinks to avoid issues with stale or circular links
|
|
60
77
|
if (entry.isSymbolicLink()) {
|
|
61
78
|
continue;
|
|
62
79
|
}
|
|
63
80
|
if (entry.isDirectory()) {
|
|
64
|
-
files.push(
|
|
81
|
+
files.push.apply(files, getAllFiles(fullPath, base));
|
|
65
82
|
}
|
|
66
83
|
else {
|
|
67
|
-
files.push(relative(base, fullPath));
|
|
84
|
+
files.push((0, path_1.relative)(base, fullPath));
|
|
68
85
|
}
|
|
69
86
|
}
|
|
70
87
|
return files;
|
|
@@ -72,44 +89,44 @@ export function getAllFiles(dirPath, basePath) {
|
|
|
72
89
|
/**
|
|
73
90
|
* Copy a directory recursively, returning list of copied files
|
|
74
91
|
*/
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
if (!options
|
|
92
|
+
function copyDirectory(source, dest, options) {
|
|
93
|
+
var files = getAllFiles(source);
|
|
94
|
+
if (!(options === null || options === void 0 ? void 0 : options.dryRun)) {
|
|
78
95
|
ensureDirSync(dest);
|
|
79
96
|
copySync(source, dest, { overwrite: true });
|
|
80
97
|
}
|
|
81
|
-
return files.map(f
|
|
98
|
+
return files.map(function (f) { return (0, path_1.join)(dest, f); });
|
|
82
99
|
}
|
|
83
100
|
/**
|
|
84
101
|
* Copy a single file
|
|
85
102
|
*/
|
|
86
|
-
|
|
87
|
-
if (!options
|
|
88
|
-
ensureDirSync(dirname(dest));
|
|
103
|
+
function copyFile(source, dest, options) {
|
|
104
|
+
if (!(options === null || options === void 0 ? void 0 : options.dryRun)) {
|
|
105
|
+
ensureDirSync((0, path_1.dirname)(dest));
|
|
89
106
|
copySync(source, dest, { overwrite: true });
|
|
90
107
|
}
|
|
91
108
|
}
|
|
92
109
|
/**
|
|
93
110
|
* Remove a file or directory
|
|
94
111
|
*/
|
|
95
|
-
|
|
96
|
-
if (!options
|
|
112
|
+
function remove(path, options) {
|
|
113
|
+
if (!(options === null || options === void 0 ? void 0 : options.dryRun)) {
|
|
97
114
|
removeSync(path);
|
|
98
115
|
}
|
|
99
116
|
}
|
|
100
117
|
/**
|
|
101
118
|
* Ensure a directory exists
|
|
102
119
|
*/
|
|
103
|
-
|
|
104
|
-
if (!options
|
|
120
|
+
function ensureDir(path, options) {
|
|
121
|
+
if (!(options === null || options === void 0 ? void 0 : options.dryRun)) {
|
|
105
122
|
ensureDirSync(path);
|
|
106
123
|
}
|
|
107
124
|
}
|
|
108
125
|
/**
|
|
109
126
|
* Compare two files by hash
|
|
110
127
|
*/
|
|
111
|
-
|
|
112
|
-
if (!existsSync(path1) || !existsSync(path2)) {
|
|
128
|
+
function filesMatch(path1, path2) {
|
|
129
|
+
if (!(0, fs_1.existsSync)(path1) || !(0, fs_1.existsSync)(path2)) {
|
|
113
130
|
return false;
|
|
114
131
|
}
|
|
115
132
|
return hashFile(path1) === hashFile(path2);
|
|
@@ -117,8 +134,8 @@ export function filesMatch(path1, path2) {
|
|
|
117
134
|
/**
|
|
118
135
|
* Check if file content matches expected hash
|
|
119
136
|
*/
|
|
120
|
-
|
|
121
|
-
if (!existsSync(filePath)) {
|
|
137
|
+
function fileMatchesHash(filePath, expectedHash) {
|
|
138
|
+
if (!(0, fs_1.existsSync)(filePath)) {
|
|
122
139
|
return false;
|
|
123
140
|
}
|
|
124
141
|
return hashFile(filePath) === expectedHash;
|
|
@@ -126,11 +143,12 @@ export function fileMatchesHash(filePath, expectedHash) {
|
|
|
126
143
|
/**
|
|
127
144
|
* Get file hashes for all files in a directory
|
|
128
145
|
*/
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
for (
|
|
133
|
-
|
|
146
|
+
function getDirectoryHashes(dirPath) {
|
|
147
|
+
var files = getAllFiles(dirPath);
|
|
148
|
+
var hashes = {};
|
|
149
|
+
for (var _i = 0, files_1 = files; _i < files_1.length; _i++) {
|
|
150
|
+
var file = files_1[_i];
|
|
151
|
+
var fullPath = (0, path_1.join)(dirPath, file);
|
|
134
152
|
hashes[file] = hashFile(fullPath);
|
|
135
153
|
}
|
|
136
154
|
return hashes;
|
|
@@ -144,19 +162,18 @@ export function getDirectoryHashes(dirPath) {
|
|
|
144
162
|
* @returns Absolute path to monorepo root
|
|
145
163
|
* @throws Error if root cannot be found within 10 levels
|
|
146
164
|
*/
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
for (
|
|
150
|
-
if (existsSync(join(dir, 'pennyfarthing-dist'))) {
|
|
165
|
+
function findMonorepoRoot(startDir) {
|
|
166
|
+
var dir = startDir;
|
|
167
|
+
for (var i = 0; i < 10; i++) {
|
|
168
|
+
if ((0, fs_1.existsSync)((0, path_1.join)(dir, 'pennyfarthing-dist'))) {
|
|
151
169
|
return dir;
|
|
152
170
|
}
|
|
153
|
-
|
|
154
|
-
if (
|
|
171
|
+
var parent_1 = (0, path_1.dirname)(dir);
|
|
172
|
+
if (parent_1 === dir) {
|
|
155
173
|
// Reached filesystem root
|
|
156
174
|
break;
|
|
157
175
|
}
|
|
158
|
-
dir =
|
|
176
|
+
dir = parent_1;
|
|
159
177
|
}
|
|
160
|
-
throw new Error(
|
|
178
|
+
throw new Error("Could not find monorepo root (pennyfarthing-dist/) starting from ".concat(startDir));
|
|
161
179
|
}
|
|
162
|
-
//# sourceMappingURL=files.js.map
|
|
@@ -1,54 +1,74 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.getManifestPath = getManifestPath;
|
|
15
|
+
exports.manifestExists = manifestExists;
|
|
16
|
+
exports.readManifest = readManifest;
|
|
17
|
+
exports.writeManifest = writeManifest;
|
|
18
|
+
exports.createManifest = createManifest;
|
|
19
|
+
exports.updateManifestForUpdate = updateManifestForUpdate;
|
|
20
|
+
exports.getInstalledVersion = getInstalledVersion;
|
|
21
|
+
var fs_1 = require("fs");
|
|
22
|
+
var path_1 = require("path");
|
|
23
|
+
var fs_extra_1 = require("fs-extra");
|
|
24
|
+
var ensureDirSync = fs_extra_1.default.ensureDirSync;
|
|
25
|
+
var MANIFEST_PATH = '.claude/manifest.json';
|
|
6
26
|
/**
|
|
7
27
|
* Get the full path to the manifest file
|
|
8
28
|
*/
|
|
9
|
-
|
|
10
|
-
return join(projectRoot, MANIFEST_PATH);
|
|
29
|
+
function getManifestPath(projectRoot) {
|
|
30
|
+
return (0, path_1.join)(projectRoot, MANIFEST_PATH);
|
|
11
31
|
}
|
|
12
32
|
/**
|
|
13
33
|
* Check if a manifest exists
|
|
14
34
|
*/
|
|
15
|
-
|
|
16
|
-
return existsSync(getManifestPath(projectRoot));
|
|
35
|
+
function manifestExists(projectRoot) {
|
|
36
|
+
return (0, fs_1.existsSync)(getManifestPath(projectRoot));
|
|
17
37
|
}
|
|
18
38
|
/**
|
|
19
39
|
* Read the manifest file
|
|
20
40
|
*/
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
if (!existsSync(manifestPath)) {
|
|
41
|
+
function readManifest(projectRoot) {
|
|
42
|
+
var manifestPath = getManifestPath(projectRoot);
|
|
43
|
+
if (!(0, fs_1.existsSync)(manifestPath)) {
|
|
24
44
|
return null;
|
|
25
45
|
}
|
|
26
46
|
try {
|
|
27
|
-
|
|
47
|
+
var content = (0, fs_1.readFileSync)(manifestPath, 'utf8');
|
|
28
48
|
return JSON.parse(content);
|
|
29
49
|
}
|
|
30
50
|
catch (error) {
|
|
31
|
-
throw new Error(
|
|
51
|
+
throw new Error("Failed to read manifest: ".concat(error));
|
|
32
52
|
}
|
|
33
53
|
}
|
|
34
54
|
/**
|
|
35
55
|
* Write the manifest file
|
|
36
56
|
*/
|
|
37
|
-
|
|
38
|
-
if (options
|
|
57
|
+
function writeManifest(projectRoot, manifest, options) {
|
|
58
|
+
if (options === null || options === void 0 ? void 0 : options.dryRun) {
|
|
39
59
|
return;
|
|
40
60
|
}
|
|
41
|
-
|
|
42
|
-
ensureDirSync(join(projectRoot, '.claude'));
|
|
43
|
-
writeFileSync(manifestPath, JSON.stringify(manifest, null, 2) + '\n', 'utf8');
|
|
61
|
+
var manifestPath = getManifestPath(projectRoot);
|
|
62
|
+
ensureDirSync((0, path_1.join)(projectRoot, '.claude'));
|
|
63
|
+
(0, fs_1.writeFileSync)(manifestPath, JSON.stringify(manifest, null, 2) + '\n', 'utf8');
|
|
44
64
|
}
|
|
45
65
|
/**
|
|
46
66
|
* Create a new manifest
|
|
47
67
|
* Note: copy mode was deprecated in v4.0.4 - all installs now use symlink mode
|
|
48
68
|
*/
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
69
|
+
function createManifest(projectName, version, options) {
|
|
70
|
+
var now = new Date().toISOString();
|
|
71
|
+
var managedPaths = [
|
|
52
72
|
'.claude/agents',
|
|
53
73
|
'.claude/commands',
|
|
54
74
|
'.claude/guides',
|
|
@@ -56,35 +76,18 @@ export function createManifest(projectName, version, options) {
|
|
|
56
76
|
'.claude/personas',
|
|
57
77
|
'.claude/scripts'
|
|
58
78
|
];
|
|
59
|
-
return {
|
|
60
|
-
version,
|
|
61
|
-
installedAt: now,
|
|
62
|
-
updatedAt: now,
|
|
63
|
-
projectName,
|
|
64
|
-
installationType: 'symlink',
|
|
65
|
-
...(options.nodeModulesPath && { nodeModulesPath: options.nodeModulesPath }),
|
|
66
|
-
managedPaths,
|
|
67
|
-
fileHashes: {},
|
|
68
|
-
...(options.migrationSource && { migrationSource: options.migrationSource })
|
|
69
|
-
};
|
|
79
|
+
return __assign(__assign(__assign({ version: version, installedAt: now, updatedAt: now, projectName: projectName, installationType: 'symlink' }, (options.nodeModulesPath && { nodeModulesPath: options.nodeModulesPath })), { managedPaths: managedPaths, fileHashes: {} }), (options.migrationSource && { migrationSource: options.migrationSource }));
|
|
70
80
|
}
|
|
71
81
|
/**
|
|
72
82
|
* Update manifest after an update
|
|
73
83
|
*/
|
|
74
|
-
|
|
75
|
-
return {
|
|
76
|
-
...manifest,
|
|
77
|
-
version: newVersion,
|
|
78
|
-
updatedAt: new Date().toISOString(),
|
|
79
|
-
fileHashes: newHashes,
|
|
80
|
-
...(userModified && userModified.length > 0 && { userModified })
|
|
81
|
-
};
|
|
84
|
+
function updateManifestForUpdate(manifest, newVersion, newHashes, userModified) {
|
|
85
|
+
return __assign(__assign(__assign({}, manifest), { version: newVersion, updatedAt: new Date().toISOString(), fileHashes: newHashes }), (userModified && userModified.length > 0 && { userModified: userModified }));
|
|
82
86
|
}
|
|
83
87
|
/**
|
|
84
88
|
* Get the installed version from manifest
|
|
85
89
|
*/
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
return manifest
|
|
90
|
+
function getInstalledVersion(projectRoot) {
|
|
91
|
+
var manifest = readManifest(projectRoot);
|
|
92
|
+
return (manifest === null || manifest === void 0 ? void 0 : manifest.version) || null;
|
|
89
93
|
}
|
|
90
|
-
//# sourceMappingURL=manifest.js.map
|
|
@@ -1,41 +1,47 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPackageVersion = getPackageVersion;
|
|
4
|
+
exports.getAssetsPath = getAssetsPath;
|
|
5
|
+
var fs_1 = require("fs");
|
|
6
|
+
var path_1 = require("path");
|
|
7
|
+
var url_1 = require("url");
|
|
8
|
+
var __filename = (0, url_1.fileURLToPath)(import.meta.url);
|
|
9
|
+
var __dirname = (0, path_1.dirname)(__filename);
|
|
6
10
|
/**
|
|
7
11
|
* Get the package version from VERSION file or package.json
|
|
8
12
|
*/
|
|
9
|
-
|
|
13
|
+
function getPackageVersion() {
|
|
10
14
|
// Try VERSION file first (relative to compiled output location)
|
|
11
|
-
|
|
12
|
-
join(__dirname, '../../../VERSION'), // From dist/cli/utils/
|
|
13
|
-
join(__dirname, '../../VERSION'), // Fallback
|
|
14
|
-
join(process.cwd(), 'VERSION') // If running from package root
|
|
15
|
+
var versionPaths = [
|
|
16
|
+
(0, path_1.join)(__dirname, '../../../VERSION'), // From dist/cli/utils/
|
|
17
|
+
(0, path_1.join)(__dirname, '../../VERSION'), // Fallback
|
|
18
|
+
(0, path_1.join)(process.cwd(), 'VERSION') // If running from package root
|
|
15
19
|
];
|
|
16
|
-
for (
|
|
17
|
-
|
|
20
|
+
for (var _i = 0, versionPaths_1 = versionPaths; _i < versionPaths_1.length; _i++) {
|
|
21
|
+
var versionPath = versionPaths_1[_i];
|
|
22
|
+
if ((0, fs_1.existsSync)(versionPath)) {
|
|
18
23
|
try {
|
|
19
|
-
return readFileSync(versionPath, 'utf8').trim();
|
|
24
|
+
return (0, fs_1.readFileSync)(versionPath, 'utf8').trim();
|
|
20
25
|
}
|
|
21
|
-
catch {
|
|
26
|
+
catch (_a) {
|
|
22
27
|
continue;
|
|
23
28
|
}
|
|
24
29
|
}
|
|
25
30
|
}
|
|
26
31
|
// Fallback to package.json
|
|
27
|
-
|
|
28
|
-
join(__dirname, '../../../../../package.json'), // From packages/core/dist/cli/utils/ in npm install
|
|
29
|
-
join(__dirname, '../../../package.json'), // From dist/cli/utils/ in local dev
|
|
30
|
-
join(__dirname, '../../package.json')
|
|
32
|
+
var packagePaths = [
|
|
33
|
+
(0, path_1.join)(__dirname, '../../../../../package.json'), // From packages/core/dist/cli/utils/ in npm install
|
|
34
|
+
(0, path_1.join)(__dirname, '../../../package.json'), // From dist/cli/utils/ in local dev
|
|
35
|
+
(0, path_1.join)(__dirname, '../../package.json')
|
|
31
36
|
];
|
|
32
|
-
for (
|
|
33
|
-
|
|
37
|
+
for (var _b = 0, packagePaths_1 = packagePaths; _b < packagePaths_1.length; _b++) {
|
|
38
|
+
var packagePath = packagePaths_1[_b];
|
|
39
|
+
if ((0, fs_1.existsSync)(packagePath)) {
|
|
34
40
|
try {
|
|
35
|
-
|
|
41
|
+
var pkg = JSON.parse((0, fs_1.readFileSync)(packagePath, 'utf8'));
|
|
36
42
|
return pkg.version;
|
|
37
43
|
}
|
|
38
|
-
catch {
|
|
44
|
+
catch (_c) {
|
|
39
45
|
continue;
|
|
40
46
|
}
|
|
41
47
|
}
|
|
@@ -46,19 +52,19 @@ export function getPackageVersion() {
|
|
|
46
52
|
* Get the distributable package directory path
|
|
47
53
|
* This contains all files that get installed to target projects
|
|
48
54
|
*/
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
join(__dirname, '../../../../../pennyfarthing-dist'), // From packages/core/dist/cli/utils/ to package root
|
|
52
|
-
join(__dirname, '../../../../pennyfarthing-dist'),
|
|
53
|
-
join(__dirname, '../../../pennyfarthing-dist'),
|
|
54
|
-
join(__dirname, '../../pennyfarthing-dist'),
|
|
55
|
-
join(process.cwd(), 'pennyfarthing-dist')
|
|
55
|
+
function getAssetsPath() {
|
|
56
|
+
var searchPaths = [
|
|
57
|
+
(0, path_1.join)(__dirname, '../../../../../pennyfarthing-dist'), // From packages/core/dist/cli/utils/ to package root
|
|
58
|
+
(0, path_1.join)(__dirname, '../../../../pennyfarthing-dist'),
|
|
59
|
+
(0, path_1.join)(__dirname, '../../../pennyfarthing-dist'),
|
|
60
|
+
(0, path_1.join)(__dirname, '../../pennyfarthing-dist'),
|
|
61
|
+
(0, path_1.join)(process.cwd(), 'pennyfarthing-dist')
|
|
56
62
|
];
|
|
57
|
-
for (
|
|
58
|
-
|
|
63
|
+
for (var _i = 0, searchPaths_1 = searchPaths; _i < searchPaths_1.length; _i++) {
|
|
64
|
+
var searchPath = searchPaths_1[_i];
|
|
65
|
+
if ((0, fs_1.existsSync)(searchPath)) {
|
|
59
66
|
return searchPath;
|
|
60
67
|
}
|
|
61
68
|
}
|
|
62
69
|
throw new Error('Package directory not found (looked for pennyfarthing-dist/)');
|
|
63
70
|
}
|
|
64
|
-
//# sourceMappingURL=version.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -4,4 +4,3 @@ export { hashFile, hashString, pathExists, isDirectory, isSymlink, getAllFiles,
|
|
|
4
4
|
export { validatePermissionRequest, createGrant, type PermissionRequest, type PermissionGrant, type PermissionValidationError, type PermissionValidationResult, type GrantType, VALID_GRANT_TYPES, } from './permissions/index.js';
|
|
5
5
|
export { aggregateJobFairResults, getBaselineComparison, getRoleStatistics, getTopPerformers, getHistoricalTrend, saveHistoricalSnapshot, aggregateByDimension, getDimensionValues, generateDifferentialReport, type Performer, type RoleStats, type OverallChampion, type TrendPoint, type AggregateStats, type DimensionName, type DimensionValues, type ThemeDimensions, type DimensionValueStats, type DimensionComparison, type DimensionStats, } from './scripts/job-fair-aggregator.js';
|
|
6
6
|
export { validateWorkflow, type WorkflowDefinition, type WorkflowPhase, type WorkflowTriggers, type WorkflowPermissionPreset, type WorkflowValidationError, type WorkflowValidationResult, loadWorkflowFile, loadWorkflowsFromDir, type WorkflowLoadResult, type WorkflowLoadResults, routeStoryToWorkflow, type StoryMetadata, type RoutingResult, checkWorkflowPermissions, type WorkflowPermissionCheckResult, } from './workflow/index.js';
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,20 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
// Pennyfarthing - Programmatic API
|
|
2
3
|
// For use by other tools and slash commands
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.checkWorkflowPermissions = exports.routeStoryToWorkflow = exports.loadWorkflowsFromDir = exports.loadWorkflowFile = exports.validateWorkflow = exports.generateDifferentialReport = exports.getDimensionValues = exports.aggregateByDimension = exports.saveHistoricalSnapshot = exports.getHistoricalTrend = exports.getTopPerformers = exports.getRoleStatistics = exports.getBaselineComparison = exports.aggregateJobFairResults = exports.VALID_GRANT_TYPES = exports.createGrant = exports.validatePermissionRequest = exports.getDirectoryHashes = exports.getAllFiles = exports.isSymlink = exports.isDirectory = exports.pathExists = exports.hashString = exports.hashFile = exports.getInstalledVersion = exports.manifestExists = exports.writeManifest = exports.readManifest = exports.getAssetsPath = exports.getPackageVersion = void 0;
|
|
6
|
+
var version_js_1 = require("./cli/utils/version.js");
|
|
7
|
+
Object.defineProperty(exports, "getPackageVersion", { enumerable: true, get: function () { return version_js_1.getPackageVersion; } });
|
|
8
|
+
Object.defineProperty(exports, "getAssetsPath", { enumerable: true, get: function () { return version_js_1.getAssetsPath; } });
|
|
9
|
+
var manifest_js_1 = require("./cli/utils/manifest.js");
|
|
10
|
+
Object.defineProperty(exports, "readManifest", { enumerable: true, get: function () { return manifest_js_1.readManifest; } });
|
|
11
|
+
Object.defineProperty(exports, "writeManifest", { enumerable: true, get: function () { return manifest_js_1.writeManifest; } });
|
|
12
|
+
Object.defineProperty(exports, "manifestExists", { enumerable: true, get: function () { return manifest_js_1.manifestExists; } });
|
|
13
|
+
Object.defineProperty(exports, "getInstalledVersion", { enumerable: true, get: function () { return manifest_js_1.getInstalledVersion; } });
|
|
14
|
+
var files_js_1 = require("./cli/utils/files.js");
|
|
15
|
+
Object.defineProperty(exports, "hashFile", { enumerable: true, get: function () { return files_js_1.hashFile; } });
|
|
16
|
+
Object.defineProperty(exports, "hashString", { enumerable: true, get: function () { return files_js_1.hashString; } });
|
|
17
|
+
Object.defineProperty(exports, "pathExists", { enumerable: true, get: function () { return files_js_1.pathExists; } });
|
|
18
|
+
Object.defineProperty(exports, "isDirectory", { enumerable: true, get: function () { return files_js_1.isDirectory; } });
|
|
19
|
+
Object.defineProperty(exports, "isSymlink", { enumerable: true, get: function () { return files_js_1.isSymlink; } });
|
|
20
|
+
Object.defineProperty(exports, "getAllFiles", { enumerable: true, get: function () { return files_js_1.getAllFiles; } });
|
|
21
|
+
Object.defineProperty(exports, "getDirectoryHashes", { enumerable: true, get: function () { return files_js_1.getDirectoryHashes; } });
|
|
6
22
|
// Permission Request Protocol (Story 33-1)
|
|
7
|
-
|
|
23
|
+
var index_js_1 = require("./permissions/index.js");
|
|
24
|
+
Object.defineProperty(exports, "validatePermissionRequest", { enumerable: true, get: function () { return index_js_1.validatePermissionRequest; } });
|
|
25
|
+
Object.defineProperty(exports, "createGrant", { enumerable: true, get: function () { return index_js_1.createGrant; } });
|
|
26
|
+
Object.defineProperty(exports, "VALID_GRANT_TYPES", { enumerable: true, get: function () { return index_js_1.VALID_GRANT_TYPES; } });
|
|
8
27
|
// Job-Fair Aggregator (Story 7-4, 7-5)
|
|
9
|
-
|
|
28
|
+
var job_fair_aggregator_js_1 = require("./scripts/job-fair-aggregator.js");
|
|
29
|
+
Object.defineProperty(exports, "aggregateJobFairResults", { enumerable: true, get: function () { return job_fair_aggregator_js_1.aggregateJobFairResults; } });
|
|
30
|
+
Object.defineProperty(exports, "getBaselineComparison", { enumerable: true, get: function () { return job_fair_aggregator_js_1.getBaselineComparison; } });
|
|
31
|
+
Object.defineProperty(exports, "getRoleStatistics", { enumerable: true, get: function () { return job_fair_aggregator_js_1.getRoleStatistics; } });
|
|
32
|
+
Object.defineProperty(exports, "getTopPerformers", { enumerable: true, get: function () { return job_fair_aggregator_js_1.getTopPerformers; } });
|
|
33
|
+
Object.defineProperty(exports, "getHistoricalTrend", { enumerable: true, get: function () { return job_fair_aggregator_js_1.getHistoricalTrend; } });
|
|
34
|
+
Object.defineProperty(exports, "saveHistoricalSnapshot", { enumerable: true, get: function () { return job_fair_aggregator_js_1.saveHistoricalSnapshot; } });
|
|
35
|
+
Object.defineProperty(exports, "aggregateByDimension", { enumerable: true, get: function () { return job_fair_aggregator_js_1.aggregateByDimension; } });
|
|
36
|
+
Object.defineProperty(exports, "getDimensionValues", { enumerable: true, get: function () { return job_fair_aggregator_js_1.getDimensionValues; } });
|
|
37
|
+
Object.defineProperty(exports, "generateDifferentialReport", { enumerable: true, get: function () { return job_fair_aggregator_js_1.generateDifferentialReport; } });
|
|
10
38
|
// Workflow System (Stories 31-1, 31-2, 31-3, MSSCI-11710)
|
|
11
|
-
|
|
39
|
+
var index_js_2 = require("./workflow/index.js");
|
|
12
40
|
// Schema validation
|
|
13
|
-
validateWorkflow,
|
|
41
|
+
Object.defineProperty(exports, "validateWorkflow", { enumerable: true, get: function () { return index_js_2.validateWorkflow; } });
|
|
14
42
|
// Workflow loading
|
|
15
|
-
loadWorkflowFile,
|
|
43
|
+
Object.defineProperty(exports, "loadWorkflowFile", { enumerable: true, get: function () { return index_js_2.loadWorkflowFile; } });
|
|
44
|
+
Object.defineProperty(exports, "loadWorkflowsFromDir", { enumerable: true, get: function () { return index_js_2.loadWorkflowsFromDir; } });
|
|
16
45
|
// Story-to-workflow routing
|
|
17
|
-
routeStoryToWorkflow,
|
|
46
|
+
Object.defineProperty(exports, "routeStoryToWorkflow", { enumerable: true, get: function () { return index_js_2.routeStoryToWorkflow; } });
|
|
18
47
|
// Permission checking (Story MSSCI-11710)
|
|
19
|
-
checkWorkflowPermissions,
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
48
|
+
Object.defineProperty(exports, "checkWorkflowPermissions", { enumerable: true, get: function () { return index_js_2.checkWorkflowPermissions; } });
|
|
@@ -6,4 +6,3 @@
|
|
|
6
6
|
* Exports types and validation for the permission request system.
|
|
7
7
|
*/
|
|
8
8
|
export { type GrantType, type PermissionRequest, type PermissionGrant, type PermissionValidationError, type PermissionValidationResult, validatePermissionRequest, createGrant, VALID_GRANT_TYPES, } from './permission-schema.js';
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* Permission Request Protocol Module
|
|
3
4
|
*
|
|
@@ -5,9 +6,11 @@
|
|
|
5
6
|
*
|
|
6
7
|
* Exports types and validation for the permission request system.
|
|
7
8
|
*/
|
|
8
|
-
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.VALID_GRANT_TYPES = exports.createGrant = exports.validatePermissionRequest = void 0;
|
|
11
|
+
var permission_schema_js_1 = require("./permission-schema.js");
|
|
9
12
|
// Functions
|
|
10
|
-
validatePermissionRequest,
|
|
13
|
+
Object.defineProperty(exports, "validatePermissionRequest", { enumerable: true, get: function () { return permission_schema_js_1.validatePermissionRequest; } });
|
|
14
|
+
Object.defineProperty(exports, "createGrant", { enumerable: true, get: function () { return permission_schema_js_1.createGrant; } });
|
|
11
15
|
// Constants
|
|
12
|
-
VALID_GRANT_TYPES,
|
|
13
|
-
//# sourceMappingURL=index.js.map
|
|
16
|
+
Object.defineProperty(exports, "VALID_GRANT_TYPES", { enumerable: true, get: function () { return permission_schema_js_1.VALID_GRANT_TYPES; } });
|
|
@@ -86,4 +86,3 @@ export declare function validatePermissionRequest(input: unknown): PermissionVal
|
|
|
86
86
|
export declare function createGrant(request: PermissionRequest): PermissionGrant;
|
|
87
87
|
/** Valid grant type values */
|
|
88
88
|
export declare const VALID_GRANT_TYPES: readonly GrantType[];
|
|
89
|
-
//# sourceMappingURL=permission-schema.d.ts.map
|