@yasaswy.nagavolu/agents 0.16.0 → 0.16.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/lib/wiring.js +7 -1
- package/package.json +1 -1
package/lib/wiring.js
CHANGED
|
@@ -56,7 +56,13 @@ function resolveHookCommand(rawCommand, targetBase) {
|
|
|
56
56
|
}
|
|
57
57
|
const prefix = rawCommand.slice(0, idx);
|
|
58
58
|
const suffix = rawCommand.slice(idx + HOME_MARKER.length);
|
|
59
|
-
|
|
59
|
+
// Normalize to forward slashes regardless of the platform this code is
|
|
60
|
+
// running on: targetBase may be a Windows-shaped path (backslashes, drive
|
|
61
|
+
// letter) even in contexts — like this pure function, or a cross-platform
|
|
62
|
+
// test run — where process.platform/path.sep don't match the path's own
|
|
63
|
+
// shape. Splitting on path.sep (current-platform-only) left backslashes
|
|
64
|
+
// untouched when this ran on Linux, producing a broken hook command.
|
|
65
|
+
const resolvedBase = targetBase.split(/[\\/]+/).join('/');
|
|
60
66
|
const fullPath = `${resolvedBase}${suffix}`;
|
|
61
67
|
const needsQuoting = /\s/.test(fullPath);
|
|
62
68
|
return `${prefix}${needsQuoting ? `"${fullPath}"` : fullPath}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yasaswy.nagavolu/agents",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.1",
|
|
4
4
|
"description": "CLI for installing the yasaswy.nagavolu agent/skill/hook bundle. `install` opens an interactive bundle menu in a TTY (or `--bundle <key> --yes` for non-interactive installs), with hash-tracked idempotent deploys, automatic hook wiring into settings.json, and masked secret prompting. `update` reconciles installed bundles against the current source (hash-tracked: silent overwrite, conflict diff+prompt, or --theirs/--keep-mine). `uninstall` removes a bundle's files and wiring. `secrets` re-runs secret prompting for already-installed bundles.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "commonjs",
|