@grwnd/pi-governance 3.0.1 → 3.0.2
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.
|
@@ -3008,8 +3008,9 @@ var piGovernance = (pi) => {
|
|
|
3008
3008
|
}
|
|
3009
3009
|
const rulesFileCfg = config.policy?.yaml?.rules_file ?? "./governance-rules.yaml";
|
|
3010
3010
|
paths.add((0, import_node_path3.resolve)(rulesFileCfg));
|
|
3011
|
-
|
|
3012
|
-
paths.add((0, import_node_path3.resolve)(
|
|
3011
|
+
const cwd = ctx.workingDirectory ?? process.cwd();
|
|
3012
|
+
paths.add((0, import_node_path3.resolve)(cwd, ".pi/governance.yaml"));
|
|
3013
|
+
paths.add((0, import_node_path3.resolve)(cwd, "governance-rules.yaml"));
|
|
3013
3014
|
protectedPaths = paths;
|
|
3014
3015
|
const chain = createIdentityChain(config.auth);
|
|
3015
3016
|
identity = await chain.resolve();
|