@lumenflow/initiatives 2.6.0 → 2.7.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/initiative-paths.d.ts +10 -1
- package/dist/initiative-paths.js +23 -4
- package/package.json +2 -2
|
@@ -1,27 +1,36 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Centralized path constants for Initiative management scripts.
|
|
3
3
|
*
|
|
4
|
+
* WU-1359: Updated to use getConfig().directories for config-aware paths.
|
|
5
|
+
* This allows projects to use custom docs structures (e.g., simple vs arc42).
|
|
6
|
+
*
|
|
4
7
|
* Mirrors wu-paths.ts pattern. Single source of truth for all
|
|
5
8
|
* initiative-related file paths.
|
|
6
9
|
*
|
|
7
10
|
* @example
|
|
8
11
|
* import { INIT_PATHS } from './lib/initiative-paths.js';
|
|
9
|
-
* const initPath = INIT_PATHS.INITIATIVE('INIT-001'); //
|
|
12
|
+
* const initPath = INIT_PATHS.INITIATIVE('INIT-001'); // path from config
|
|
10
13
|
*/
|
|
11
14
|
export declare const INIT_PATHS: {
|
|
12
15
|
/**
|
|
13
16
|
* Get path to Initiative YAML file
|
|
17
|
+
* Uses getConfig().directories.initiativesDir for config-aware resolution.
|
|
18
|
+
*
|
|
14
19
|
* @param {string} id - Initiative ID (e.g., 'INIT-001')
|
|
15
20
|
* @returns {string} Path to Initiative YAML file
|
|
16
21
|
*/
|
|
17
22
|
INITIATIVE: (id: string) => string;
|
|
18
23
|
/**
|
|
19
24
|
* Get path to initiatives directory
|
|
25
|
+
* Uses getConfig().directories.initiativesDir for config-aware resolution.
|
|
26
|
+
*
|
|
20
27
|
* @returns {string} Path to initiatives directory
|
|
21
28
|
*/
|
|
22
29
|
INITIATIVES_DIR: () => string;
|
|
23
30
|
/**
|
|
24
31
|
* Get path to WU directory (for scanning WUs by initiative)
|
|
32
|
+
* Uses getConfig().directories.wuDir for config-aware resolution.
|
|
33
|
+
*
|
|
25
34
|
* @returns {string} Path to WU directory
|
|
26
35
|
*/
|
|
27
36
|
WU_DIR: () => string;
|
package/dist/initiative-paths.js
CHANGED
|
@@ -1,29 +1,48 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
|
+
import { getConfig } from '@lumenflow/core/dist/lumenflow-config.js';
|
|
2
3
|
/**
|
|
3
4
|
* Centralized path constants for Initiative management scripts.
|
|
4
5
|
*
|
|
6
|
+
* WU-1359: Updated to use getConfig().directories for config-aware paths.
|
|
7
|
+
* This allows projects to use custom docs structures (e.g., simple vs arc42).
|
|
8
|
+
*
|
|
5
9
|
* Mirrors wu-paths.ts pattern. Single source of truth for all
|
|
6
10
|
* initiative-related file paths.
|
|
7
11
|
*
|
|
8
12
|
* @example
|
|
9
13
|
* import { INIT_PATHS } from './lib/initiative-paths.js';
|
|
10
|
-
* const initPath = INIT_PATHS.INITIATIVE('INIT-001'); //
|
|
14
|
+
* const initPath = INIT_PATHS.INITIATIVE('INIT-001'); // path from config
|
|
11
15
|
*/
|
|
12
16
|
export const INIT_PATHS = {
|
|
13
17
|
/**
|
|
14
18
|
* Get path to Initiative YAML file
|
|
19
|
+
* Uses getConfig().directories.initiativesDir for config-aware resolution.
|
|
20
|
+
*
|
|
15
21
|
* @param {string} id - Initiative ID (e.g., 'INIT-001')
|
|
16
22
|
* @returns {string} Path to Initiative YAML file
|
|
17
23
|
*/
|
|
18
|
-
INITIATIVE: (id) =>
|
|
24
|
+
INITIATIVE: (id) => {
|
|
25
|
+
const config = getConfig();
|
|
26
|
+
return path.join(config.directories.initiativesDir, `${id}.yaml`);
|
|
27
|
+
},
|
|
19
28
|
/**
|
|
20
29
|
* Get path to initiatives directory
|
|
30
|
+
* Uses getConfig().directories.initiativesDir for config-aware resolution.
|
|
31
|
+
*
|
|
21
32
|
* @returns {string} Path to initiatives directory
|
|
22
33
|
*/
|
|
23
|
-
INITIATIVES_DIR: () =>
|
|
34
|
+
INITIATIVES_DIR: () => {
|
|
35
|
+
const config = getConfig();
|
|
36
|
+
return config.directories.initiativesDir;
|
|
37
|
+
},
|
|
24
38
|
/**
|
|
25
39
|
* Get path to WU directory (for scanning WUs by initiative)
|
|
40
|
+
* Uses getConfig().directories.wuDir for config-aware resolution.
|
|
41
|
+
*
|
|
26
42
|
* @returns {string} Path to WU directory
|
|
27
43
|
*/
|
|
28
|
-
WU_DIR: () =>
|
|
44
|
+
WU_DIR: () => {
|
|
45
|
+
const config = getConfig();
|
|
46
|
+
return config.directories.wuDir;
|
|
47
|
+
},
|
|
29
48
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lumenflow/initiatives",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"description": "Initiative tracking for LumenFlow workflow framework - multi-phase project coordination",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lumenflow",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"yaml": "^2.8.2",
|
|
43
43
|
"zod": "^4.3.5",
|
|
44
|
-
"@lumenflow/core": "2.
|
|
44
|
+
"@lumenflow/core": "2.7.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@vitest/coverage-v8": "^4.0.17",
|