kaizen-agent 1.88.0 → 1.88.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/cli/activity.ts +2 -1
- package/package.json +1 -1
package/cli/activity.ts
CHANGED
|
@@ -12,7 +12,8 @@ const one = (s: unknown, n = 90) => String(s ?? "").replace(/\s+/g, " ").trim().
|
|
|
12
12
|
const redact = (s: string) => s.replace(/\b[\w-]*(?:KEY|TOKEN|SECRET|PASSWORD|PASSWD)[\w-]*=\S+/gi, "[hidden]").replace(/\b(Bearer|Basic)\s+\S+/gi, "$1 [hidden]");
|
|
13
13
|
const rel = (p: unknown, cwd: string) => {
|
|
14
14
|
const f = String(p ?? "");
|
|
15
|
-
|
|
15
|
+
// A path inside the project reads the same on every system: forward slashes (Windows gives backslashes).
|
|
16
|
+
const r = isAbsolute(f) && cwd ? relative(cwd, f).replace(/\\/g, "/") : f;
|
|
16
17
|
return one(r && !r.startsWith("..") ? r : f, 80);
|
|
17
18
|
};
|
|
18
19
|
|
package/package.json
CHANGED