@usagefleet/cli 1.2.141 → 1.2.142
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/hook.js +3 -1
- package/dist/release.js +1 -1
- package/package.json +1 -1
package/dist/hook.js
CHANGED
|
@@ -19,7 +19,9 @@ const GUARD_COMMAND = /usagefleet.*\bguard\b/;
|
|
|
19
19
|
* shells can be tested; cmd.exe has no inline `VAR=value cmd` form, and the
|
|
20
20
|
* POSIX prefix there would be read as a program name and never launch. */
|
|
21
21
|
export function guardCommand(program, configPath, platform = process.platform) {
|
|
22
|
-
|
|
22
|
+
// Claude Code on Windows runs hooks through Git Bash, which strips the backslashes
|
|
23
|
+
// from an unquoted `C:\Users\...\index.js`; node then exits 1 and the prompt passes.
|
|
24
|
+
const quote = (p) => (p.includes(' ') || p.includes('\\') ? `"${p}"` : p);
|
|
23
25
|
const command = program.map(quote).join(' ');
|
|
24
26
|
if (!configPath) {
|
|
25
27
|
return command;
|
package/dist/release.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by .github/workflows/release.yml.
|
|
2
|
-
export const RELEASE_VERSION = "1.2.
|
|
2
|
+
export const RELEASE_VERSION = "1.2.142";
|