@lumenflow/packs-software-delivery 4.24.0 → 5.0.1
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/manifest-schema.d.ts +12 -0
- package/dist/manifest-schema.d.ts.map +1 -1
- package/dist/manifest-schema.js +10 -0
- package/dist/manifest-schema.js.map +1 -1
- package/dist/manifest.d.ts +21 -0
- package/dist/manifest.d.ts.map +1 -1
- package/dist/manifest.js +92 -1
- package/dist/manifest.js.map +1 -1
- package/dist/src/commands/index.d.ts +2 -0
- package/dist/src/commands/index.d.ts.map +1 -0
- package/dist/src/commands/index.js +5 -0
- package/dist/src/commands/index.js.map +1 -0
- package/dist/src/config/delivery-review-contract.d.ts +17 -0
- package/dist/src/config/delivery-review-contract.d.ts.map +1 -0
- package/dist/src/config/delivery-review-contract.js +19 -0
- package/dist/src/config/delivery-review-contract.js.map +1 -0
- package/dist/src/config/env-accessors.d.ts +16 -0
- package/dist/src/config/env-accessors.d.ts.map +1 -0
- package/dist/src/config/env-accessors.js +18 -0
- package/dist/src/config/env-accessors.js.map +1 -0
- package/dist/src/config/index.d.ts +3 -0
- package/dist/src/config/index.d.ts.map +1 -0
- package/dist/src/config/index.js +8 -0
- package/dist/src/config/index.js.map +1 -0
- package/dist/src/config/normalize-config-keys.d.ts +16 -0
- package/dist/src/config/normalize-config-keys.d.ts.map +1 -0
- package/dist/src/config/normalize-config-keys.js +18 -0
- package/dist/src/config/normalize-config-keys.js.map +1 -0
- package/dist/src/config/schemas/lumenflow-config-schema-types.d.ts +190 -0
- package/dist/src/config/schemas/lumenflow-config-schema-types.d.ts.map +1 -0
- package/dist/src/config/schemas/lumenflow-config-schema-types.js +182 -0
- package/dist/src/config/schemas/lumenflow-config-schema-types.js.map +1 -0
- package/dist/src/config/schemas/lumenflow-config-schema.d.ts +190 -0
- package/dist/src/config/schemas/lumenflow-config-schema.d.ts.map +1 -0
- package/dist/src/config/schemas/lumenflow-config-schema.js +182 -0
- package/dist/src/config/schemas/lumenflow-config-schema.js.map +1 -0
- package/dist/src/config/workspace-reader.d.ts +56 -0
- package/dist/src/config/workspace-reader.d.ts.map +1 -0
- package/dist/src/config/workspace-reader.js +209 -0
- package/dist/src/config/workspace-reader.js.map +1 -0
- package/dist/src/constants/backlog-patterns.d.ts +21 -0
- package/dist/src/constants/backlog-patterns.d.ts.map +1 -0
- package/dist/src/constants/backlog-patterns.js +26 -0
- package/dist/src/constants/backlog-patterns.js.map +1 -0
- package/dist/src/constants/client-ids.d.ts +16 -0
- package/dist/src/constants/client-ids.d.ts.map +1 -0
- package/dist/src/constants/client-ids.js +16 -0
- package/dist/src/constants/client-ids.js.map +1 -0
- package/dist/src/constants/config-contract.d.ts +2 -0
- package/dist/src/constants/config-contract.d.ts.map +1 -0
- package/dist/src/constants/config-contract.js +7 -0
- package/dist/src/constants/config-contract.js.map +1 -0
- package/dist/src/constants/docs-layout-presets.d.ts +31 -0
- package/dist/src/constants/docs-layout-presets.d.ts.map +1 -0
- package/dist/src/constants/docs-layout-presets.js +41 -0
- package/dist/src/constants/docs-layout-presets.js.map +1 -0
- package/dist/src/constants/duration-constants.d.ts +11 -0
- package/dist/src/constants/duration-constants.d.ts.map +1 -0
- package/dist/src/constants/duration-constants.js +13 -0
- package/dist/src/constants/duration-constants.js.map +1 -0
- package/dist/src/constants/gate-constants.d.ts +24 -0
- package/dist/src/constants/gate-constants.d.ts.map +1 -0
- package/dist/src/constants/gate-constants.js +26 -0
- package/dist/src/constants/gate-constants.js.map +1 -0
- package/dist/src/constants/index.d.ts +18 -0
- package/dist/src/constants/index.d.ts.map +1 -0
- package/dist/src/constants/index.js +29 -0
- package/dist/src/constants/index.js.map +1 -0
- package/dist/src/constants/lock-constants.d.ts +29 -0
- package/dist/src/constants/lock-constants.d.ts.map +1 -0
- package/dist/src/constants/lock-constants.js +31 -0
- package/dist/src/constants/lock-constants.js.map +1 -0
- package/dist/src/constants/object-guards.d.ts +9 -0
- package/dist/src/constants/object-guards.d.ts.map +1 -0
- package/dist/src/constants/object-guards.js +11 -0
- package/dist/src/constants/object-guards.js.map +1 -0
- package/dist/src/constants/section-headings.d.ts +35 -0
- package/dist/src/constants/section-headings.d.ts.map +1 -0
- package/dist/src/constants/section-headings.js +82 -0
- package/dist/src/constants/section-headings.js.map +1 -0
- package/dist/src/constants/wu-cli-constants.d.ts +434 -0
- package/dist/src/constants/wu-cli-constants.d.ts.map +1 -0
- package/dist/src/constants/wu-cli-constants.js +439 -0
- package/dist/src/constants/wu-cli-constants.js.map +1 -0
- package/dist/src/constants/wu-domain-constants.d.ts +296 -0
- package/dist/src/constants/wu-domain-constants.d.ts.map +1 -0
- package/dist/src/constants/wu-domain-constants.js +400 -0
- package/dist/src/constants/wu-domain-constants.js.map +1 -0
- package/dist/src/constants/wu-git-constants.d.ts +2 -0
- package/dist/src/constants/wu-git-constants.d.ts.map +1 -0
- package/dist/src/constants/wu-git-constants.js +7 -0
- package/dist/src/constants/wu-git-constants.js.map +1 -0
- package/dist/src/constants/wu-id-format.d.ts +138 -0
- package/dist/src/constants/wu-id-format.d.ts.map +1 -0
- package/dist/src/constants/wu-id-format.js +265 -0
- package/dist/src/constants/wu-id-format.js.map +1 -0
- package/dist/src/constants/wu-paths-constants.d.ts +254 -0
- package/dist/src/constants/wu-paths-constants.d.ts.map +1 -0
- package/dist/src/constants/wu-paths-constants.js +276 -0
- package/dist/src/constants/wu-paths-constants.js.map +1 -0
- package/dist/src/constants/wu-statuses.d.ts +209 -0
- package/dist/src/constants/wu-statuses.d.ts.map +1 -0
- package/dist/src/constants/wu-statuses.js +245 -0
- package/dist/src/constants/wu-statuses.js.map +1 -0
- package/dist/src/constants/wu-type-helpers.d.ts +28 -0
- package/dist/src/constants/wu-type-helpers.d.ts.map +1 -0
- package/dist/src/constants/wu-type-helpers.js +49 -0
- package/dist/src/constants/wu-type-helpers.js.map +1 -0
- package/dist/src/constants/wu-ui-constants.d.ts +236 -0
- package/dist/src/constants/wu-ui-constants.d.ts.map +1 -0
- package/dist/src/constants/wu-ui-constants.js +238 -0
- package/dist/src/constants/wu-ui-constants.js.map +1 -0
- package/dist/src/constants/wu-validation-constants.d.ts +61 -0
- package/dist/src/constants/wu-validation-constants.d.ts.map +1 -0
- package/dist/src/constants/wu-validation-constants.js +69 -0
- package/dist/src/constants/wu-validation-constants.js.map +1 -0
- package/dist/src/domain/index.d.ts +4 -0
- package/dist/src/domain/index.d.ts.map +1 -0
- package/dist/src/domain/index.js +6 -0
- package/dist/src/domain/index.js.map +1 -0
- package/dist/src/domain/orchestration.constants.d.ts +111 -0
- package/dist/src/domain/orchestration.constants.d.ts.map +1 -0
- package/dist/src/domain/orchestration.constants.js +130 -0
- package/dist/src/domain/orchestration.constants.js.map +1 -0
- package/dist/src/domain/orchestration.schemas.d.ts +307 -0
- package/dist/src/domain/orchestration.schemas.d.ts.map +1 -0
- package/dist/src/domain/orchestration.schemas.js +214 -0
- package/dist/src/domain/orchestration.schemas.js.map +1 -0
- package/dist/src/domain/orchestration.types.d.ts +134 -0
- package/dist/src/domain/orchestration.types.d.ts.map +1 -0
- package/dist/src/domain/orchestration.types.js +5 -0
- package/dist/src/domain/orchestration.types.js.map +1 -0
- package/dist/src/methodology/incremental-test.d.ts +33 -0
- package/dist/src/methodology/incremental-test.d.ts.map +1 -0
- package/dist/src/methodology/incremental-test.js +73 -0
- package/dist/src/methodology/incremental-test.js.map +1 -0
- package/dist/src/methodology/index.d.ts +3 -0
- package/dist/src/methodology/index.d.ts.map +1 -0
- package/dist/src/methodology/index.js +6 -0
- package/dist/src/methodology/index.js.map +1 -0
- package/dist/src/methodology/manual-test-validator.d.ts +97 -0
- package/dist/src/methodology/manual-test-validator.d.ts.map +1 -0
- package/dist/src/methodology/manual-test-validator.js +248 -0
- package/dist/src/methodology/manual-test-validator.js.map +1 -0
- package/dist/src/policy/coverage-gate.d.ts +127 -0
- package/dist/src/policy/coverage-gate.d.ts.map +1 -0
- package/dist/src/policy/coverage-gate.js +211 -0
- package/dist/src/policy/coverage-gate.js.map +1 -0
- package/dist/src/policy/gates-agent-mode.d.ts +107 -0
- package/dist/src/policy/gates-agent-mode.d.ts.map +1 -0
- package/dist/src/policy/gates-agent-mode.js +138 -0
- package/dist/src/policy/gates-agent-mode.js.map +1 -0
- package/dist/src/policy/gates-config-internal.d.ts +54 -0
- package/dist/src/policy/gates-config-internal.d.ts.map +1 -0
- package/dist/src/policy/gates-config-internal.js +108 -0
- package/dist/src/policy/gates-config-internal.js.map +1 -0
- package/dist/src/policy/gates-config.d.ts +67 -0
- package/dist/src/policy/gates-config.d.ts.map +1 -0
- package/dist/src/policy/gates-config.js +193 -0
- package/dist/src/policy/gates-config.js.map +1 -0
- package/dist/src/policy/gates-coverage.d.ts +48 -0
- package/dist/src/policy/gates-coverage.d.ts.map +1 -0
- package/dist/src/policy/gates-coverage.js +182 -0
- package/dist/src/policy/gates-coverage.js.map +1 -0
- package/dist/src/policy/gates-presets.d.ts +51 -0
- package/dist/src/policy/gates-presets.d.ts.map +1 -0
- package/dist/src/policy/gates-presets.js +117 -0
- package/dist/src/policy/gates-presets.js.map +1 -0
- package/dist/src/policy/gates-schemas.d.ts +142 -0
- package/dist/src/policy/gates-schemas.d.ts.map +1 -0
- package/dist/src/policy/gates-schemas.js +67 -0
- package/dist/src/policy/gates-schemas.js.map +1 -0
- package/dist/src/policy/index.d.ts +19 -0
- package/dist/src/policy/index.d.ts.map +1 -0
- package/dist/src/policy/index.js +21 -0
- package/dist/src/policy/index.js.map +1 -0
- package/dist/src/policy/package-manager-resolver.d.ts +79 -0
- package/dist/src/policy/package-manager-resolver.d.ts.map +1 -0
- package/dist/src/policy/package-manager-resolver.js +245 -0
- package/dist/src/policy/package-manager-resolver.js.map +1 -0
- package/dist/src/policy/resolve-policy.d.ts +337 -0
- package/dist/src/policy/resolve-policy.d.ts.map +1 -0
- package/dist/src/policy/resolve-policy.js +353 -0
- package/dist/src/policy/resolve-policy.js.map +1 -0
- package/dist/src/ports/config.ports.d.ts +83 -0
- package/dist/src/ports/config.ports.d.ts.map +1 -0
- package/dist/src/ports/config.ports.js +4 -0
- package/dist/src/ports/config.ports.js.map +1 -0
- package/dist/src/ports/dashboard-renderer.port.d.ts +113 -0
- package/dist/src/ports/dashboard-renderer.port.d.ts.map +1 -0
- package/dist/src/ports/dashboard-renderer.port.js +4 -0
- package/dist/src/ports/dashboard-renderer.port.js.map +1 -0
- package/dist/src/ports/index.d.ts +5 -0
- package/dist/src/ports/index.d.ts.map +1 -0
- package/dist/src/ports/index.js +10 -0
- package/dist/src/ports/index.js.map +1 -0
- package/dist/src/ports/sync-validator.ports.d.ts +52 -0
- package/dist/src/ports/sync-validator.ports.d.ts.map +1 -0
- package/dist/src/ports/sync-validator.ports.js +4 -0
- package/dist/src/ports/sync-validator.ports.js.map +1 -0
- package/dist/src/ports/wu-helpers.ports.d.ts +157 -0
- package/dist/src/ports/wu-helpers.ports.d.ts.map +1 -0
- package/dist/src/ports/wu-helpers.ports.js +4 -0
- package/dist/src/ports/wu-helpers.ports.js.map +1 -0
- package/dist/src/ports/wu-state.ports.d.ts +209 -0
- package/dist/src/ports/wu-state.ports.d.ts.map +1 -0
- package/dist/src/ports/wu-state.ports.js +4 -0
- package/dist/src/ports/wu-state.ports.js.map +1 -0
- package/dist/src/primitives/index.d.ts +2 -0
- package/dist/src/primitives/index.d.ts.map +1 -0
- package/dist/src/primitives/index.js +5 -0
- package/dist/src/primitives/index.js.map +1 -0
- package/dist/src/runtime/index.d.ts +2 -0
- package/dist/src/runtime/index.d.ts.map +1 -0
- package/dist/src/runtime/index.js +6 -0
- package/dist/src/runtime/index.js.map +1 -0
- package/dist/src/runtime/work-classifier.d.ts +103 -0
- package/dist/src/runtime/work-classifier.d.ts.map +1 -0
- package/dist/src/runtime/work-classifier.js +427 -0
- package/dist/src/runtime/work-classifier.js.map +1 -0
- package/dist/src/sandbox/index.d.ts +6 -0
- package/dist/src/sandbox/index.d.ts.map +1 -0
- package/dist/src/sandbox/index.js +10 -0
- package/dist/src/sandbox/index.js.map +1 -0
- package/dist/src/sandbox/sandbox-allowlist.d.ts +16 -0
- package/dist/src/sandbox/sandbox-allowlist.d.ts.map +1 -0
- package/dist/src/sandbox/sandbox-allowlist.js +77 -0
- package/dist/src/sandbox/sandbox-allowlist.js.map +1 -0
- package/dist/src/sandbox/sandbox-backend-linux.d.ts +6 -0
- package/dist/src/sandbox/sandbox-backend-linux.d.ts.map +1 -0
- package/dist/src/sandbox/sandbox-backend-linux.js +67 -0
- package/dist/src/sandbox/sandbox-backend-linux.js.map +1 -0
- package/dist/src/sandbox/sandbox-backend-macos.d.ts +6 -0
- package/dist/src/sandbox/sandbox-backend-macos.d.ts.map +1 -0
- package/dist/src/sandbox/sandbox-backend-macos.js +112 -0
- package/dist/src/sandbox/sandbox-backend-macos.js.map +1 -0
- package/dist/src/sandbox/sandbox-backend-windows.d.ts +6 -0
- package/dist/src/sandbox/sandbox-backend-windows.d.ts.map +1 -0
- package/dist/src/sandbox/sandbox-backend-windows.js +30 -0
- package/dist/src/sandbox/sandbox-backend-windows.js.map +1 -0
- package/dist/src/sandbox/sandbox-profile.d.ts +58 -0
- package/dist/src/sandbox/sandbox-profile.d.ts.map +1 -0
- package/dist/src/sandbox/sandbox-profile.js +69 -0
- package/dist/src/sandbox/sandbox-profile.js.map +1 -0
- package/dist/src/schemas/index.d.ts +2 -0
- package/dist/src/schemas/index.d.ts.map +1 -0
- package/dist/src/schemas/index.js +5 -0
- package/dist/src/schemas/index.js.map +1 -0
- package/dist/src/state/date-utils.d.ts +66 -0
- package/dist/src/state/date-utils.d.ts.map +1 -0
- package/dist/src/state/date-utils.js +143 -0
- package/dist/src/state/date-utils.js.map +1 -0
- package/dist/src/state/index.d.ts +8 -0
- package/dist/src/state/index.d.ts.map +1 -0
- package/dist/src/state/index.js +15 -0
- package/dist/src/state/index.js.map +1 -0
- package/dist/src/state/state-machine.d.ts +14 -0
- package/dist/src/state/state-machine.d.ts.map +1 -0
- package/dist/src/state/state-machine.js +92 -0
- package/dist/src/state/state-machine.js.map +1 -0
- package/dist/src/state/wu-doc-types.d.ts +48 -0
- package/dist/src/state/wu-doc-types.d.ts.map +1 -0
- package/dist/src/state/wu-doc-types.js +4 -0
- package/dist/src/state/wu-doc-types.js.map +1 -0
- package/dist/src/state/wu-paths.d.ts +275 -0
- package/dist/src/state/wu-paths.d.ts.map +1 -0
- package/dist/src/state/wu-paths.js +335 -0
- package/dist/src/state/wu-paths.js.map +1 -0
- package/dist/src/state/wu-schema.d.ts +831 -0
- package/dist/src/state/wu-schema.d.ts.map +1 -0
- package/dist/src/state/wu-schema.js +934 -0
- package/dist/src/state/wu-schema.js.map +1 -0
- package/dist/src/state/wu-state-schema.d.ts +292 -0
- package/dist/src/state/wu-state-schema.d.ts.map +1 -0
- package/dist/src/state/wu-state-schema.js +215 -0
- package/dist/src/state/wu-state-schema.js.map +1 -0
- package/dist/src/state/wu-yaml.d.ts +113 -0
- package/dist/src/state/wu-yaml.d.ts.map +1 -0
- package/dist/src/state/wu-yaml.js +307 -0
- package/dist/src/state/wu-yaml.js.map +1 -0
- package/dist/tool-impl/wu-lifecycle-tools.d.ts +11 -0
- package/dist/tool-impl/wu-lifecycle-tools.d.ts.map +1 -1
- package/dist/tool-impl/wu-lifecycle-tools.js +17 -0
- package/dist/tool-impl/wu-lifecycle-tools.js.map +1 -1
- package/manifest.yaml +210 -230
- package/package.json +88 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wu-domain-constants.js","sourceRoot":"","sources":["../../../src/constants/wu-domain-constants.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,yCAAyC;AAEzC;;;;;;;;;GASG;AAEH,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;;;GAIG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,mCAAmC;IACn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,EAAE,CAAC,CAAC;QACzE,CAAC;IACH,CAAC;IAED,MAAM,KAAK,GAAG,YAAY,CAAC,MAAM,KAAK,CAAC,CAAC;IAExC,OAAO;QACL,KAAK;QACL,YAAY;QACZ,UAAU,EAAE,CAAC,GAAG,IAAI,GAAG,CAAC,UAAU,CAAC,CAAC;QACpC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,kCAAkC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;KACvF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wu-git-constants.d.ts","sourceRoot":"","sources":["../../../src/constants/wu-git-constants.ts"],"names":[],"mappings":"AAMA,cAAc,4CAA4C,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Copyright (c) 2026 Hellmai Ltd
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only
|
|
3
|
+
// WU-2681 (INIT-058 L2e): Shim — real module lives in @lumenflow/kernel/primitives/git-constants.
|
|
4
|
+
// Re-export preserves the `@lumenflow/packs-software-delivery/constants/wu-git-constants` subpath
|
|
5
|
+
// for existing consumers (including core's WU-2679 shim) until Layer 7 removes the shim.
|
|
6
|
+
export * from '@lumenflow/kernel/primitives/git-constants';
|
|
7
|
+
//# sourceMappingURL=wu-git-constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wu-git-constants.js","sourceRoot":"","sources":["../../../src/constants/wu-git-constants.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,yCAAyC;AAEzC,kGAAkG;AAClG,kGAAkG;AAClG,yFAAyF;AACzF,cAAc,4CAA4C,CAAC"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/** Minimum allowed zero-padding width. */
|
|
2
|
+
export declare const WU_ID_WIDTH_MIN = 1;
|
|
3
|
+
/** Maximum allowed zero-padding width. */
|
|
4
|
+
export declare const WU_ID_WIDTH_MAX = 6;
|
|
5
|
+
/**
|
|
6
|
+
* Prefix validation pattern: uppercase letter start, followed by 1-9 more
|
|
7
|
+
* uppercase-alphanumeric characters, terminated by a dash. Matches 'WU-',
|
|
8
|
+
* 'TASK-', 'STORY-', 'TICKET-', 'JIRA123-'. Rejects lowercase, missing dash,
|
|
9
|
+
* single-char prefixes, and over-long prefixes.
|
|
10
|
+
*/
|
|
11
|
+
export declare const WU_ID_PREFIX_PATTERN: RegExp;
|
|
12
|
+
/** Canonical WU ID configuration. */
|
|
13
|
+
export interface WuIdConfig {
|
|
14
|
+
/** Zero-padding width. Default 4 (WU-0001). */
|
|
15
|
+
width: number;
|
|
16
|
+
/**
|
|
17
|
+
* Strict mode. When true, non-canonical legacy IDs are flagged as errors
|
|
18
|
+
* by wu:doctor and wu:create canonicalizes --id input. When false, legacy
|
|
19
|
+
* IDs are tolerated as warnings for incremental migration.
|
|
20
|
+
*/
|
|
21
|
+
strict: boolean;
|
|
22
|
+
/** Canonical prefix including trailing dash. Default 'WU-'. */
|
|
23
|
+
prefix: string;
|
|
24
|
+
}
|
|
25
|
+
/** Default WU ID configuration. */
|
|
26
|
+
export declare const WU_ID_DEFAULTS: WuIdConfig;
|
|
27
|
+
/**
|
|
28
|
+
* Validate and resolve a partial WU ID config against the defaults.
|
|
29
|
+
*
|
|
30
|
+
* @throws {Error} If width is not an integer in [1, 6] or prefix does not
|
|
31
|
+
* match {@link WU_ID_PREFIX_PATTERN}.
|
|
32
|
+
*/
|
|
33
|
+
export declare function validateWuIdConfig(partial?: Partial<WuIdConfig>): WuIdConfig;
|
|
34
|
+
/**
|
|
35
|
+
* Format an integer as a canonical WU ID.
|
|
36
|
+
*
|
|
37
|
+
* Zero-pads to the configured width. If the integer exceeds 10^width, the
|
|
38
|
+
* result is wider than width (overflow is preserved, never truncated).
|
|
39
|
+
*
|
|
40
|
+
* @throws {Error} If n is not a positive integer.
|
|
41
|
+
*/
|
|
42
|
+
export declare function formatWuId(n: number, config?: Partial<WuIdConfig>): string;
|
|
43
|
+
/**
|
|
44
|
+
* Parse a WU ID (or YAML/stamp filename) into its prefix and numeric parts.
|
|
45
|
+
*
|
|
46
|
+
* Returns null for any input that does not match the configured prefix or
|
|
47
|
+
* does not carry a positive integer body. Accepts both canonical padded and
|
|
48
|
+
* legacy unpadded forms.
|
|
49
|
+
*
|
|
50
|
+
* Strips `.yaml` and `.done` extensions before parsing.
|
|
51
|
+
*/
|
|
52
|
+
export declare function parseWuId(id: string, config?: Partial<WuIdConfig>): {
|
|
53
|
+
prefix: string;
|
|
54
|
+
num: number;
|
|
55
|
+
} | null;
|
|
56
|
+
/**
|
|
57
|
+
* Build an anchored regex that matches WU IDs (both padded and unpadded
|
|
58
|
+
* digit counts) for the configured prefix. Intended for file scans and
|
|
59
|
+
* consumers that previously hardcoded `/^WU-\d+$/`.
|
|
60
|
+
*
|
|
61
|
+
* Strict canonical-form enforcement lives in {@link isCanonicalWuId}, not here.
|
|
62
|
+
*/
|
|
63
|
+
export declare function wuIdRegex(config?: Partial<WuIdConfig>): RegExp;
|
|
64
|
+
/**
|
|
65
|
+
* Return an unanchored pattern string (for embedding in longer regexes)
|
|
66
|
+
* that matches the WU id body — the configured prefix followed by one
|
|
67
|
+
* or more digits. Consumers that previously hardcoded `WU-\\d+` inside
|
|
68
|
+
* a larger regex should use this helper so prefix configuration
|
|
69
|
+
* (`software_delivery.wu_id.prefix`) is honored.
|
|
70
|
+
*
|
|
71
|
+
* The pattern does NOT include anchors; callers decide whether to
|
|
72
|
+
* anchor with `^`/`$` or embed in a path/substring match.
|
|
73
|
+
*/
|
|
74
|
+
export declare function wuIdBodyPattern(config?: Partial<WuIdConfig>): string;
|
|
75
|
+
/**
|
|
76
|
+
* Return true if the given string is a canonical WU ID for the configured
|
|
77
|
+
* width and prefix. Canonical means:
|
|
78
|
+
* - Prefix matches.
|
|
79
|
+
* - Digit body is at least `width` characters long.
|
|
80
|
+
* - The digit body is not shorter than width (no unpadded legacy).
|
|
81
|
+
* - Overflow (body wider than width) is allowed so the sequence never truncates.
|
|
82
|
+
*/
|
|
83
|
+
export declare function isCanonicalWuId(id: string, config?: Partial<WuIdConfig>): boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Canonicalize a (possibly legacy) WU ID to the canonical form for the
|
|
86
|
+
* configured width. Returns null for unparseable input or prefix mismatch.
|
|
87
|
+
*
|
|
88
|
+
* Already-canonical IDs are returned unchanged. Overflow IDs (wider than
|
|
89
|
+
* width) are preserved.
|
|
90
|
+
*/
|
|
91
|
+
export declare function canonicalizeWuId(id: string, config?: Partial<WuIdConfig>): string | null;
|
|
92
|
+
/**
|
|
93
|
+
* Load the canonical WU id config from workspace.yaml
|
|
94
|
+
* `software_delivery.wu_id.{width,strict,prefix}`.
|
|
95
|
+
*
|
|
96
|
+
* Falls back to {@link WU_ID_DEFAULTS} when the block is absent, so
|
|
97
|
+
* existing repos without any wu_id config continue to see WU- prefixed
|
|
98
|
+
* ids (backward compatible) with the only visible change being
|
|
99
|
+
* zero-padding on newly-generated ids.
|
|
100
|
+
*
|
|
101
|
+
* @param options.projectRoot - Optional override for the project root.
|
|
102
|
+
*/
|
|
103
|
+
export declare function loadWuIdConfig(options?: {
|
|
104
|
+
projectRoot?: string;
|
|
105
|
+
}): WuIdConfig;
|
|
106
|
+
/** Inputs for {@link scanExistingWuNumbers}. */
|
|
107
|
+
export interface ScanExistingWuNumbersInput {
|
|
108
|
+
/** Absolute path to the WU YAML directory. */
|
|
109
|
+
wuDir: string;
|
|
110
|
+
/** Absolute path to the stamps directory. */
|
|
111
|
+
stampsDir: string;
|
|
112
|
+
/** Absolute path to `wu-events.jsonl` (may or may not exist). */
|
|
113
|
+
eventsPath: string;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Scan every existing WU id integer across the yaml directory, stamps
|
|
117
|
+
* directory, and event log. Used by wu:create for integer-level
|
|
118
|
+
* collision detection so `WU-14` and `WU-0014` can never coexist.
|
|
119
|
+
*
|
|
120
|
+
* Results are deduplicated across sources. Entries whose prefix does
|
|
121
|
+
* not match the configured prefix are ignored. Extension suffixes
|
|
122
|
+
* (`.yaml`, `.done`) are stripped before parsing.
|
|
123
|
+
*/
|
|
124
|
+
export declare function scanExistingWuNumbers(input: ScanExistingWuNumbersInput, config?: Partial<WuIdConfig>): Set<number>;
|
|
125
|
+
/**
|
|
126
|
+
* Returns true when `num` is already present in the given set.
|
|
127
|
+
* Thin wrapper for call-site readability at the wu:create integration point.
|
|
128
|
+
*/
|
|
129
|
+
export declare function integerCollides(existing: ReadonlySet<number>, num: number): boolean;
|
|
130
|
+
/**
|
|
131
|
+
* Returns true when the given WU number is within the width-exhaustion
|
|
132
|
+
* warning band (>= 90% of 10^width) but still below the width ceiling.
|
|
133
|
+
*
|
|
134
|
+
* Numbers that already exceed the width capacity return false so the
|
|
135
|
+
* warning only fires once, not on every subsequent overflow id.
|
|
136
|
+
*/
|
|
137
|
+
export declare function isWidthExhaustionWarning(num: number, config?: Partial<WuIdConfig>): boolean;
|
|
138
|
+
//# sourceMappingURL=wu-id-format.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wu-id-format.d.ts","sourceRoot":"","sources":["../../../src/constants/wu-id-format.ts"],"names":[],"mappings":"AA2BA,0CAA0C;AAC1C,eAAO,MAAM,eAAe,IAAI,CAAC;AAEjC,0CAA0C;AAC1C,eAAO,MAAM,eAAe,IAAI,CAAC;AAEjC;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,QAA0B,CAAC;AAE5D,qCAAqC;AACrC,MAAM,WAAW,UAAU;IACzB,+CAA+C;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB,+DAA+D;IAC/D,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,mCAAmC;AACnC,eAAO,MAAM,cAAc,EAAE,UAI3B,CAAC;AAEH;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,OA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AU,CAAM,GAC/B,GAAG,CAAC,MAAM,CAAC,CAgDb;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAEnF;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,GAAE,OAAO,CAAC,UAAU,CAAM,GAAG,OAAO,CAK/F"}
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
// Copyright (c) 2026 Hellmai Ltd
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only
|
|
3
|
+
/**
|
|
4
|
+
* WU ID Format Primitives (WU-2552)
|
|
5
|
+
*
|
|
6
|
+
* Canonical zero-padded WU ID primitives. All ID formatting, parsing,
|
|
7
|
+
* and regex construction flows through this module so that width, strict
|
|
8
|
+
* mode, and prefix can be centrally configured via workspace.yaml
|
|
9
|
+
* `software_delivery.wu_id.{width,strict,prefix}`.
|
|
10
|
+
*
|
|
11
|
+
* Design principles:
|
|
12
|
+
* - Pure functions, no I/O, no config reads (caller supplies config).
|
|
13
|
+
* - Hardcoded choices: separator '-', lowercase digits, padding char '0',
|
|
14
|
+
* starting number 1, gap-fill policy 'never reuse'.
|
|
15
|
+
* - `wuIdRegex` is intentionally permissive (matches both padded and unpadded
|
|
16
|
+
* digit counts) so that consumers scanning files for legacy + canonical
|
|
17
|
+
* IDs stay backward compatible during the transition. Strict canonical
|
|
18
|
+
* form is enforced separately via `isCanonicalWuId`.
|
|
19
|
+
*
|
|
20
|
+
* @module wu-id-format
|
|
21
|
+
*/
|
|
22
|
+
import { existsSync, readdirSync, readFileSync } from 'node:fs';
|
|
23
|
+
import { createError, ErrorCodes } from '@lumenflow/kernel/primitives/error-handler';
|
|
24
|
+
import { readSoftwareDeliveryConfig } from '../config/workspace-reader.js';
|
|
25
|
+
/** Minimum allowed zero-padding width. */
|
|
26
|
+
export const WU_ID_WIDTH_MIN = 1;
|
|
27
|
+
/** Maximum allowed zero-padding width. */
|
|
28
|
+
export const WU_ID_WIDTH_MAX = 6;
|
|
29
|
+
/**
|
|
30
|
+
* Prefix validation pattern: uppercase letter start, followed by 1-9 more
|
|
31
|
+
* uppercase-alphanumeric characters, terminated by a dash. Matches 'WU-',
|
|
32
|
+
* 'TASK-', 'STORY-', 'TICKET-', 'JIRA123-'. Rejects lowercase, missing dash,
|
|
33
|
+
* single-char prefixes, and over-long prefixes.
|
|
34
|
+
*/
|
|
35
|
+
export const WU_ID_PREFIX_PATTERN = /^[A-Z][A-Z0-9]{1,9}-$/;
|
|
36
|
+
/** Default WU ID configuration. */
|
|
37
|
+
export const WU_ID_DEFAULTS = Object.freeze({
|
|
38
|
+
width: 4,
|
|
39
|
+
strict: true,
|
|
40
|
+
prefix: 'WU-',
|
|
41
|
+
});
|
|
42
|
+
/**
|
|
43
|
+
* Validate and resolve a partial WU ID config against the defaults.
|
|
44
|
+
*
|
|
45
|
+
* @throws {Error} If width is not an integer in [1, 6] or prefix does not
|
|
46
|
+
* match {@link WU_ID_PREFIX_PATTERN}.
|
|
47
|
+
*/
|
|
48
|
+
export function validateWuIdConfig(partial = {}) {
|
|
49
|
+
const width = partial.width ?? WU_ID_DEFAULTS.width;
|
|
50
|
+
const strict = partial.strict ?? WU_ID_DEFAULTS.strict;
|
|
51
|
+
const prefix = partial.prefix ?? WU_ID_DEFAULTS.prefix;
|
|
52
|
+
if (!Number.isInteger(width) || width < WU_ID_WIDTH_MIN || width > WU_ID_WIDTH_MAX) {
|
|
53
|
+
throw createError(ErrorCodes.VALIDATION_ERROR, `Invalid wu_id.width: ${String(width)}. Must be an integer between ${WU_ID_WIDTH_MIN} and ${WU_ID_WIDTH_MAX}.`);
|
|
54
|
+
}
|
|
55
|
+
if (typeof prefix !== 'string' || !WU_ID_PREFIX_PATTERN.test(prefix)) {
|
|
56
|
+
throw createError(ErrorCodes.VALIDATION_ERROR, `Invalid wu_id.prefix: "${String(prefix)}". Must match ${WU_ID_PREFIX_PATTERN} (e.g., 'WU-', 'TASK-', 'STORY-').`);
|
|
57
|
+
}
|
|
58
|
+
return { width, strict, prefix };
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Format an integer as a canonical WU ID.
|
|
62
|
+
*
|
|
63
|
+
* Zero-pads to the configured width. If the integer exceeds 10^width, the
|
|
64
|
+
* result is wider than width (overflow is preserved, never truncated).
|
|
65
|
+
*
|
|
66
|
+
* @throws {Error} If n is not a positive integer.
|
|
67
|
+
*/
|
|
68
|
+
export function formatWuId(n, config = {}) {
|
|
69
|
+
if (!Number.isInteger(n) || n < 1) {
|
|
70
|
+
throw createError(ErrorCodes.VALIDATION_ERROR, `Invalid WU number: ${String(n)}. Must be a positive integer.`);
|
|
71
|
+
}
|
|
72
|
+
const { width, prefix } = validateWuIdConfig(config);
|
|
73
|
+
return `${prefix}${String(n).padStart(width, '0')}`;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Parse a WU ID (or YAML/stamp filename) into its prefix and numeric parts.
|
|
77
|
+
*
|
|
78
|
+
* Returns null for any input that does not match the configured prefix or
|
|
79
|
+
* does not carry a positive integer body. Accepts both canonical padded and
|
|
80
|
+
* legacy unpadded forms.
|
|
81
|
+
*
|
|
82
|
+
* Strips `.yaml` and `.done` extensions before parsing.
|
|
83
|
+
*/
|
|
84
|
+
export function parseWuId(id, config = {}) {
|
|
85
|
+
if (typeof id !== 'string' || id.length === 0) {
|
|
86
|
+
return null;
|
|
87
|
+
}
|
|
88
|
+
const { prefix } = validateWuIdConfig(config);
|
|
89
|
+
const stripped = id.replace(/\.(yaml|done)$/, '');
|
|
90
|
+
if (!stripped.startsWith(prefix)) {
|
|
91
|
+
return null;
|
|
92
|
+
}
|
|
93
|
+
const body = stripped.slice(prefix.length);
|
|
94
|
+
if (!/^\d+$/.test(body)) {
|
|
95
|
+
return null;
|
|
96
|
+
}
|
|
97
|
+
const num = parseInt(body, 10);
|
|
98
|
+
if (!Number.isFinite(num) || num < 1) {
|
|
99
|
+
return null;
|
|
100
|
+
}
|
|
101
|
+
return { prefix, num };
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Build an anchored regex that matches WU IDs (both padded and unpadded
|
|
105
|
+
* digit counts) for the configured prefix. Intended for file scans and
|
|
106
|
+
* consumers that previously hardcoded `/^WU-\d+$/`.
|
|
107
|
+
*
|
|
108
|
+
* Strict canonical-form enforcement lives in {@link isCanonicalWuId}, not here.
|
|
109
|
+
*/
|
|
110
|
+
export function wuIdRegex(config = {}) {
|
|
111
|
+
// eslint-disable-next-line security/detect-non-literal-regexp -- prefix escaped
|
|
112
|
+
return new RegExp(`^${wuIdBodyPattern(config)}$`);
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Return an unanchored pattern string (for embedding in longer regexes)
|
|
116
|
+
* that matches the WU id body — the configured prefix followed by one
|
|
117
|
+
* or more digits. Consumers that previously hardcoded `WU-\\d+` inside
|
|
118
|
+
* a larger regex should use this helper so prefix configuration
|
|
119
|
+
* (`software_delivery.wu_id.prefix`) is honored.
|
|
120
|
+
*
|
|
121
|
+
* The pattern does NOT include anchors; callers decide whether to
|
|
122
|
+
* anchor with `^`/`$` or embed in a path/substring match.
|
|
123
|
+
*/
|
|
124
|
+
export function wuIdBodyPattern(config = {}) {
|
|
125
|
+
const { prefix } = validateWuIdConfig(config);
|
|
126
|
+
const escaped = prefix.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
127
|
+
return `${escaped}\\d+`;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Return true if the given string is a canonical WU ID for the configured
|
|
131
|
+
* width and prefix. Canonical means:
|
|
132
|
+
* - Prefix matches.
|
|
133
|
+
* - Digit body is at least `width` characters long.
|
|
134
|
+
* - The digit body is not shorter than width (no unpadded legacy).
|
|
135
|
+
* - Overflow (body wider than width) is allowed so the sequence never truncates.
|
|
136
|
+
*/
|
|
137
|
+
export function isCanonicalWuId(id, config = {}) {
|
|
138
|
+
const { width, prefix } = validateWuIdConfig(config);
|
|
139
|
+
if (typeof id !== 'string' || !id.startsWith(prefix)) {
|
|
140
|
+
return false;
|
|
141
|
+
}
|
|
142
|
+
const body = id.slice(prefix.length);
|
|
143
|
+
if (!/^\d+$/.test(body)) {
|
|
144
|
+
return false;
|
|
145
|
+
}
|
|
146
|
+
return body.length >= width;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Canonicalize a (possibly legacy) WU ID to the canonical form for the
|
|
150
|
+
* configured width. Returns null for unparseable input or prefix mismatch.
|
|
151
|
+
*
|
|
152
|
+
* Already-canonical IDs are returned unchanged. Overflow IDs (wider than
|
|
153
|
+
* width) are preserved.
|
|
154
|
+
*/
|
|
155
|
+
export function canonicalizeWuId(id, config = {}) {
|
|
156
|
+
const parsed = parseWuId(id, config);
|
|
157
|
+
if (!parsed) {
|
|
158
|
+
return null;
|
|
159
|
+
}
|
|
160
|
+
return formatWuId(parsed.num, config);
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Load the canonical WU id config from workspace.yaml
|
|
164
|
+
* `software_delivery.wu_id.{width,strict,prefix}`.
|
|
165
|
+
*
|
|
166
|
+
* Falls back to {@link WU_ID_DEFAULTS} when the block is absent, so
|
|
167
|
+
* existing repos without any wu_id config continue to see WU- prefixed
|
|
168
|
+
* ids (backward compatible) with the only visible change being
|
|
169
|
+
* zero-padding on newly-generated ids.
|
|
170
|
+
*
|
|
171
|
+
* @param options.projectRoot - Optional override for the project root.
|
|
172
|
+
*/
|
|
173
|
+
export function loadWuIdConfig(options = {}) {
|
|
174
|
+
const cwd = options.projectRoot ?? process.cwd();
|
|
175
|
+
let section;
|
|
176
|
+
try {
|
|
177
|
+
section = readSoftwareDeliveryConfig(cwd);
|
|
178
|
+
}
|
|
179
|
+
catch {
|
|
180
|
+
// Graceful fallback when workspace.yaml is absent/unreadable — matches
|
|
181
|
+
// core's non-strictWorkspace behaviour.
|
|
182
|
+
return validateWuIdConfig({});
|
|
183
|
+
}
|
|
184
|
+
// Accept both snake_case (canonical YAML) and camelCase (post-normalization)
|
|
185
|
+
// spellings so this primitive stays callable whether the caller passes a raw
|
|
186
|
+
// YAML section or a pre-normalized shape.
|
|
187
|
+
const wuIdBlock = section['wuId'] ??
|
|
188
|
+
section['wu_id'];
|
|
189
|
+
return validateWuIdConfig(wuIdBlock ?? {});
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Scan every existing WU id integer across the yaml directory, stamps
|
|
193
|
+
* directory, and event log. Used by wu:create for integer-level
|
|
194
|
+
* collision detection so `WU-14` and `WU-0014` can never coexist.
|
|
195
|
+
*
|
|
196
|
+
* Results are deduplicated across sources. Entries whose prefix does
|
|
197
|
+
* not match the configured prefix are ignored. Extension suffixes
|
|
198
|
+
* (`.yaml`, `.done`) are stripped before parsing.
|
|
199
|
+
*/
|
|
200
|
+
export function scanExistingWuNumbers(input, config = {}) {
|
|
201
|
+
const result = new Set();
|
|
202
|
+
const addFromEntries = (entries) => {
|
|
203
|
+
for (const entry of entries) {
|
|
204
|
+
const parsed = parseWuId(entry, config);
|
|
205
|
+
if (parsed) {
|
|
206
|
+
result.add(parsed.num);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
if (existsSync(input.wuDir)) {
|
|
211
|
+
addFromEntries(readdirSync(input.wuDir));
|
|
212
|
+
}
|
|
213
|
+
if (existsSync(input.stampsDir)) {
|
|
214
|
+
addFromEntries(readdirSync(input.stampsDir));
|
|
215
|
+
}
|
|
216
|
+
if (existsSync(input.eventsPath)) {
|
|
217
|
+
try {
|
|
218
|
+
const content = readFileSync(input.eventsPath, { encoding: 'utf-8' });
|
|
219
|
+
for (const line of content.split('\n')) {
|
|
220
|
+
const trimmed = line.trim();
|
|
221
|
+
if (trimmed.length === 0)
|
|
222
|
+
continue;
|
|
223
|
+
try {
|
|
224
|
+
const event = JSON.parse(trimmed);
|
|
225
|
+
for (const candidate of [event.wuId, event.from, event.to]) {
|
|
226
|
+
if (typeof candidate === 'string') {
|
|
227
|
+
const parsed = parseWuId(candidate, config);
|
|
228
|
+
if (parsed) {
|
|
229
|
+
result.add(parsed.num);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
catch {
|
|
235
|
+
// Ignore malformed lines; the events file is allowed to have gaps.
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
catch {
|
|
240
|
+
// Read errors fall through; caller treats this as "no known ids".
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
return result;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Returns true when `num` is already present in the given set.
|
|
247
|
+
* Thin wrapper for call-site readability at the wu:create integration point.
|
|
248
|
+
*/
|
|
249
|
+
export function integerCollides(existing, num) {
|
|
250
|
+
return existing.has(num);
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Returns true when the given WU number is within the width-exhaustion
|
|
254
|
+
* warning band (>= 90% of 10^width) but still below the width ceiling.
|
|
255
|
+
*
|
|
256
|
+
* Numbers that already exceed the width capacity return false so the
|
|
257
|
+
* warning only fires once, not on every subsequent overflow id.
|
|
258
|
+
*/
|
|
259
|
+
export function isWidthExhaustionWarning(num, config = {}) {
|
|
260
|
+
const { width } = validateWuIdConfig(config);
|
|
261
|
+
const capacity = Math.pow(10, width);
|
|
262
|
+
const threshold = capacity * 0.9;
|
|
263
|
+
return num >= threshold && num < capacity;
|
|
264
|
+
}
|
|
265
|
+
//# sourceMappingURL=wu-id-format.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wu-id-format.js","sourceRoot":"","sources":["../../../src/constants/wu-id-format.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAA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