@co0ontty/wand 1.7.0 → 1.10.0
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/git-worktree.d.ts +17 -1
- package/dist/git-worktree.js +244 -0
- package/dist/resume-policy.d.ts +0 -77
- package/dist/resume-policy.js +0 -162
- package/dist/server-session-routes.js +153 -0
- package/dist/server.js +27 -1
- package/dist/storage.d.ts +1 -0
- package/dist/storage.js +205 -141
- package/dist/types.d.ts +34 -0
- package/dist/web-ui/content/scripts.js +850 -174
- package/dist/web-ui/content/styles.css +854 -144
- package/dist/web-ui/scripts.js +3 -6
- package/package.json +1 -1
package/dist/web-ui/scripts.js
CHANGED
|
@@ -11,12 +11,9 @@ function escapeHtml(value) {
|
|
|
11
11
|
}
|
|
12
12
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
13
13
|
// Cache the script content
|
|
14
|
-
let _scriptCache = null;
|
|
15
14
|
export function getScriptContent(configPath) {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
_scriptCache = fs.readFileSync(scriptPath, "utf-8");
|
|
19
|
-
}
|
|
15
|
+
const scriptPath = path.join(__dirname, "content", "scripts.js");
|
|
16
|
+
const scriptContent = fs.readFileSync(scriptPath, "utf-8");
|
|
20
17
|
// Inject the config path
|
|
21
|
-
return
|
|
18
|
+
return scriptContent.replace("${escapeHtml(configPath)}", escapeHtml(configPath));
|
|
22
19
|
}
|