@ulrichc1/sparn 1.1.0 → 1.1.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/README.md +1 -1
- package/dist/cli/index.cjs +15 -9
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.js +10 -8
- package/dist/cli/index.js.map +1 -1
- package/dist/index.cjs +7 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/cli/index.cjs
CHANGED
|
@@ -399,8 +399,8 @@ function getVersion() {
|
|
|
399
399
|
return pkg.version;
|
|
400
400
|
} catch {
|
|
401
401
|
const __filename2 = (0, import_node_url.fileURLToPath)(importMetaUrl);
|
|
402
|
-
const
|
|
403
|
-
const pkg = JSON.parse((0, import_node_fs2.readFileSync)((0, import_node_path.join)(
|
|
402
|
+
const __dirname = (0, import_node_path.dirname)(__filename2);
|
|
403
|
+
const pkg = JSON.parse((0, import_node_fs2.readFileSync)((0, import_node_path.join)(__dirname, "../../package.json"), "utf-8"));
|
|
404
404
|
return pkg.version;
|
|
405
405
|
}
|
|
406
406
|
}
|
|
@@ -1713,6 +1713,8 @@ function createDaemonCommand() {
|
|
|
1713
1713
|
};
|
|
1714
1714
|
}
|
|
1715
1715
|
try {
|
|
1716
|
+
const __filename2 = (0, import_node_url2.fileURLToPath)(importMetaUrl);
|
|
1717
|
+
const __dirname = (0, import_node_path2.dirname)(__filename2);
|
|
1716
1718
|
const daemonPath = (0, import_node_path2.join)(__dirname, "index.js");
|
|
1717
1719
|
const child = (0, import_node_child_process2.fork)(daemonPath, [], {
|
|
1718
1720
|
detached: true,
|
|
@@ -1820,7 +1822,7 @@ function createDaemonCommand() {
|
|
|
1820
1822
|
status
|
|
1821
1823
|
};
|
|
1822
1824
|
}
|
|
1823
|
-
var import_node_child_process2, import_node_fs4, import_node_path2;
|
|
1825
|
+
var import_node_child_process2, import_node_fs4, import_node_path2, import_node_url2;
|
|
1824
1826
|
var init_daemon_process = __esm({
|
|
1825
1827
|
"src/daemon/daemon-process.ts"() {
|
|
1826
1828
|
"use strict";
|
|
@@ -1828,6 +1830,7 @@ var init_daemon_process = __esm({
|
|
|
1828
1830
|
import_node_child_process2 = require("child_process");
|
|
1829
1831
|
import_node_fs4 = require("fs");
|
|
1830
1832
|
import_node_path2 = require("path");
|
|
1833
|
+
import_node_url2 = require("url");
|
|
1831
1834
|
init_metrics();
|
|
1832
1835
|
}
|
|
1833
1836
|
});
|
|
@@ -1840,7 +1843,9 @@ __export(hooks_exports, {
|
|
|
1840
1843
|
async function hooksCommand(options) {
|
|
1841
1844
|
const { subcommand, global } = options;
|
|
1842
1845
|
const settingsPath = global ? (0, import_node_path3.join)((0, import_node_os.homedir)(), ".claude", "settings.json") : (0, import_node_path3.join)(process.cwd(), ".claude", "settings.json");
|
|
1843
|
-
const
|
|
1846
|
+
const __filename2 = (0, import_node_url3.fileURLToPath)(importMetaUrl);
|
|
1847
|
+
const __dirname = (0, import_node_path3.dirname)(__filename2);
|
|
1848
|
+
const hooksDir = (0, import_node_path3.join)((0, import_node_path3.dirname)(__dirname), "hooks");
|
|
1844
1849
|
const prePromptPath = (0, import_node_path3.join)(hooksDir, "pre-prompt.js");
|
|
1845
1850
|
const postToolResultPath = (0, import_node_path3.join)(hooksDir, "post-tool-result.js");
|
|
1846
1851
|
switch (subcommand) {
|
|
@@ -1977,7 +1982,7 @@ async function hooksStatus(settingsPath, global) {
|
|
|
1977
1982
|
};
|
|
1978
1983
|
}
|
|
1979
1984
|
}
|
|
1980
|
-
var import_node_fs5, import_node_os, import_node_path3;
|
|
1985
|
+
var import_node_fs5, import_node_os, import_node_path3, import_node_url3;
|
|
1981
1986
|
var init_hooks = __esm({
|
|
1982
1987
|
"src/cli/commands/hooks.ts"() {
|
|
1983
1988
|
"use strict";
|
|
@@ -1985,6 +1990,7 @@ var init_hooks = __esm({
|
|
|
1985
1990
|
import_node_fs5 = require("fs");
|
|
1986
1991
|
import_node_os = require("os");
|
|
1987
1992
|
import_node_path3 = require("path");
|
|
1993
|
+
import_node_url3 = require("url");
|
|
1988
1994
|
}
|
|
1989
1995
|
});
|
|
1990
1996
|
|
|
@@ -1993,7 +1999,7 @@ init_cjs_shims();
|
|
|
1993
1999
|
var import_node_child_process3 = require("child_process");
|
|
1994
2000
|
var import_node_fs6 = require("fs");
|
|
1995
2001
|
var import_node_path4 = require("path");
|
|
1996
|
-
var
|
|
2002
|
+
var import_node_url4 = require("url");
|
|
1997
2003
|
var import_commander = require("commander");
|
|
1998
2004
|
init_banner();
|
|
1999
2005
|
function getVersion2() {
|
|
@@ -2001,9 +2007,9 @@ function getVersion2() {
|
|
|
2001
2007
|
const pkg = JSON.parse((0, import_node_fs6.readFileSync)((0, import_node_path4.join)(process.cwd(), "package.json"), "utf-8"));
|
|
2002
2008
|
return pkg.version;
|
|
2003
2009
|
} catch {
|
|
2004
|
-
const __filename2 = (0,
|
|
2005
|
-
const
|
|
2006
|
-
const pkg = JSON.parse((0, import_node_fs6.readFileSync)((0, import_node_path4.join)(
|
|
2010
|
+
const __filename2 = (0, import_node_url4.fileURLToPath)(importMetaUrl);
|
|
2011
|
+
const __dirname = (0, import_node_path4.dirname)(__filename2);
|
|
2012
|
+
const pkg = JSON.parse((0, import_node_fs6.readFileSync)((0, import_node_path4.join)(__dirname, "../../package.json"), "utf-8"));
|
|
2007
2013
|
return pkg.version;
|
|
2008
2014
|
}
|
|
2009
2015
|
}
|