@fractary/faber 2.4.2 → 2.4.3
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/paths.d.ts +13 -0
- package/dist/paths.d.ts.map +1 -1
- package/dist/paths.js +16 -0
- package/dist/paths.js.map +1 -1
- package/package.json +1 -1
package/dist/paths.d.ts
CHANGED
|
@@ -14,6 +14,11 @@
|
|
|
14
14
|
* Base directory for all FABER runs (relative to project root)
|
|
15
15
|
*/
|
|
16
16
|
export declare const FABER_RUNS_DIR = ".fractary/faber/runs";
|
|
17
|
+
/**
|
|
18
|
+
* Path to the active run ID file (relative to project root)
|
|
19
|
+
* This file tracks which workflow run is currently active in the worktree
|
|
20
|
+
*/
|
|
21
|
+
export declare const ACTIVE_RUN_ID_FILE = ".fractary/faber/runs/.active-run-id";
|
|
17
22
|
/**
|
|
18
23
|
* Get the runs directory path
|
|
19
24
|
* @param projectRoot - Optional project root path (defaults to current working directory)
|
|
@@ -41,6 +46,12 @@ export declare function getPlanPath(runId: string, projectRoot?: string): string
|
|
|
41
46
|
* @returns Absolute path to the state.json file
|
|
42
47
|
*/
|
|
43
48
|
export declare function getStatePath(runId: string, projectRoot?: string): string;
|
|
49
|
+
/**
|
|
50
|
+
* Get the active run ID file path
|
|
51
|
+
* @param projectRoot - Optional project root path (defaults to current working directory)
|
|
52
|
+
* @returns Absolute path to the .active-run-id file
|
|
53
|
+
*/
|
|
54
|
+
export declare function getActiveRunIdPath(projectRoot?: string): string;
|
|
44
55
|
/**
|
|
45
56
|
* Get relative path constants (for documentation and gitignore)
|
|
46
57
|
*/
|
|
@@ -53,5 +64,7 @@ export declare const RELATIVE_PATHS: {
|
|
|
53
64
|
readonly PLAN_PATH_TEMPLATE: ".fractary/faber/runs/{run_id}/plan.json";
|
|
54
65
|
/** Template for state file path */
|
|
55
66
|
readonly STATE_PATH_TEMPLATE: ".fractary/faber/runs/{run_id}/state.json";
|
|
67
|
+
/** Path to active run ID file */
|
|
68
|
+
readonly ACTIVE_RUN_ID_FILE: ".fractary/faber/runs/.active-run-id";
|
|
56
69
|
};
|
|
57
70
|
//# sourceMappingURL=paths.d.ts.map
|
package/dist/paths.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../src/paths.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH;;GAEG;AACH,eAAO,MAAM,cAAc,yBAAyB,CAAC;AAErD;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAGvD;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAGrE;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAEvE;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAExE;AAED;;GAEG;AACH,eAAO,MAAM,cAAc;IACzB,wDAAwD;;IAExD,sCAAsC;;IAEtC,kCAAkC;;IAElC,mCAAmC;;
|
|
1
|
+
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../src/paths.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH;;GAEG;AACH,eAAO,MAAM,cAAc,yBAAyB,CAAC;AAErD;;;GAGG;AACH,eAAO,MAAM,kBAAkB,wCAAwC,CAAC;AAExE;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAGvD;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAGrE;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAEvE;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAExE;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAG/D;AAED;;GAEG;AACH,eAAO,MAAM,cAAc;IACzB,wDAAwD;;IAExD,sCAAsC;;IAEtC,kCAAkC;;IAElC,mCAAmC;;IAEnC,iCAAiC;;CAEzB,CAAC"}
|
package/dist/paths.js
CHANGED
|
@@ -15,6 +15,11 @@ import * as path from 'path';
|
|
|
15
15
|
* Base directory for all FABER runs (relative to project root)
|
|
16
16
|
*/
|
|
17
17
|
export const FABER_RUNS_DIR = '.fractary/faber/runs';
|
|
18
|
+
/**
|
|
19
|
+
* Path to the active run ID file (relative to project root)
|
|
20
|
+
* This file tracks which workflow run is currently active in the worktree
|
|
21
|
+
*/
|
|
22
|
+
export const ACTIVE_RUN_ID_FILE = '.fractary/faber/runs/.active-run-id';
|
|
18
23
|
/**
|
|
19
24
|
* Get the runs directory path
|
|
20
25
|
* @param projectRoot - Optional project root path (defaults to current working directory)
|
|
@@ -52,6 +57,15 @@ export function getPlanPath(runId, projectRoot) {
|
|
|
52
57
|
export function getStatePath(runId, projectRoot) {
|
|
53
58
|
return path.join(getRunDir(runId, projectRoot), 'state.json');
|
|
54
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* Get the active run ID file path
|
|
62
|
+
* @param projectRoot - Optional project root path (defaults to current working directory)
|
|
63
|
+
* @returns Absolute path to the .active-run-id file
|
|
64
|
+
*/
|
|
65
|
+
export function getActiveRunIdPath(projectRoot) {
|
|
66
|
+
const root = projectRoot || process.cwd();
|
|
67
|
+
return path.join(root, ACTIVE_RUN_ID_FILE);
|
|
68
|
+
}
|
|
55
69
|
/**
|
|
56
70
|
* Get relative path constants (for documentation and gitignore)
|
|
57
71
|
*/
|
|
@@ -64,5 +78,7 @@ export const RELATIVE_PATHS = {
|
|
|
64
78
|
PLAN_PATH_TEMPLATE: `${FABER_RUNS_DIR}/{run_id}/plan.json`,
|
|
65
79
|
/** Template for state file path */
|
|
66
80
|
STATE_PATH_TEMPLATE: `${FABER_RUNS_DIR}/{run_id}/state.json`,
|
|
81
|
+
/** Path to active run ID file */
|
|
82
|
+
ACTIVE_RUN_ID_FILE: ACTIVE_RUN_ID_FILE,
|
|
67
83
|
};
|
|
68
84
|
//# sourceMappingURL=paths.js.map
|
package/dist/paths.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../src/paths.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,sBAAsB,CAAC;AAErD;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,WAAoB;IAC7C,MAAM,IAAI,GAAG,WAAW,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;IAC1C,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;AACzC,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,SAAS,CAAC,KAAa,EAAE,WAAoB;IAC3D,MAAM,IAAI,GAAG,WAAW,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;IAC1C,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,cAAc,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,WAAW,CAAC,KAAa,EAAE,WAAoB;IAC7D,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,WAAW,CAAC,EAAE,WAAW,CAAC,CAAC;AAC/D,CAAC;AAED;;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