@schuttdev/gigai 0.2.2 → 0.2.3
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/{dist-U7NYIMA4.js → dist-G2KJBUZX.js} +11 -0
- package/dist/index.js +10 -10
- package/package.json +1 -1
|
@@ -1421,16 +1421,27 @@ var execFileAsync3 = promisify3(execFile3);
|
|
|
1421
1421
|
function getGigaiBin() {
|
|
1422
1422
|
return process.argv[1] ?? "gigai";
|
|
1423
1423
|
}
|
|
1424
|
+
function getNodeBin() {
|
|
1425
|
+
return process.execPath;
|
|
1426
|
+
}
|
|
1424
1427
|
function getLaunchdPlist(configPath) {
|
|
1428
|
+
const nodeBin = getNodeBin();
|
|
1425
1429
|
const bin = getGigaiBin();
|
|
1430
|
+
const currentPath = process.env.PATH ?? "/usr/local/bin:/usr/bin:/bin";
|
|
1426
1431
|
return `<?xml version="1.0" encoding="UTF-8"?>
|
|
1427
1432
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
1428
1433
|
<plist version="1.0">
|
|
1429
1434
|
<dict>
|
|
1430
1435
|
<key>Label</key>
|
|
1431
1436
|
<string>com.gigai.server</string>
|
|
1437
|
+
<key>EnvironmentVariables</key>
|
|
1438
|
+
<dict>
|
|
1439
|
+
<key>PATH</key>
|
|
1440
|
+
<string>${currentPath}</string>
|
|
1441
|
+
</dict>
|
|
1432
1442
|
<key>ProgramArguments</key>
|
|
1433
1443
|
<array>
|
|
1444
|
+
<string>${nodeBin}</string>
|
|
1434
1445
|
<string>${bin}</string>
|
|
1435
1446
|
<string>server</string>
|
|
1436
1447
|
<string>start</string>
|
package/dist/index.js
CHANGED
|
@@ -813,7 +813,7 @@ function runCitty() {
|
|
|
813
813
|
dev: { type: "boolean", description: "Development mode (no HTTPS)" }
|
|
814
814
|
},
|
|
815
815
|
async run({ args }) {
|
|
816
|
-
const { startServer } = await import("./dist-
|
|
816
|
+
const { startServer } = await import("./dist-G2KJBUZX.js");
|
|
817
817
|
const extraArgs = [];
|
|
818
818
|
if (args.config) extraArgs.push("--config", args.config);
|
|
819
819
|
if (args.dev) extraArgs.push("--dev");
|
|
@@ -824,7 +824,7 @@ function runCitty() {
|
|
|
824
824
|
init: defineCommand({
|
|
825
825
|
meta: { name: "init", description: "Interactive setup wizard" },
|
|
826
826
|
async run() {
|
|
827
|
-
const { runInit } = await import("./dist-
|
|
827
|
+
const { runInit } = await import("./dist-G2KJBUZX.js");
|
|
828
828
|
await runInit();
|
|
829
829
|
}
|
|
830
830
|
}),
|
|
@@ -834,7 +834,7 @@ function runCitty() {
|
|
|
834
834
|
config: { type: "string", alias: "c", description: "Config file path" }
|
|
835
835
|
},
|
|
836
836
|
async run({ args }) {
|
|
837
|
-
const { generateServerPairingCode } = await import("./dist-
|
|
837
|
+
const { generateServerPairingCode } = await import("./dist-G2KJBUZX.js");
|
|
838
838
|
await generateServerPairingCode(args.config);
|
|
839
839
|
}
|
|
840
840
|
}),
|
|
@@ -844,14 +844,14 @@ function runCitty() {
|
|
|
844
844
|
config: { type: "string", alias: "c", description: "Config file path" }
|
|
845
845
|
},
|
|
846
846
|
async run({ args }) {
|
|
847
|
-
const { installDaemon } = await import("./dist-
|
|
847
|
+
const { installDaemon } = await import("./dist-G2KJBUZX.js");
|
|
848
848
|
await installDaemon(args.config);
|
|
849
849
|
}
|
|
850
850
|
}),
|
|
851
851
|
uninstall: defineCommand({
|
|
852
852
|
meta: { name: "uninstall", description: "Remove background service" },
|
|
853
853
|
async run() {
|
|
854
|
-
const { uninstallDaemon } = await import("./dist-
|
|
854
|
+
const { uninstallDaemon } = await import("./dist-G2KJBUZX.js");
|
|
855
855
|
await uninstallDaemon();
|
|
856
856
|
}
|
|
857
857
|
}),
|
|
@@ -902,21 +902,21 @@ function runCitty() {
|
|
|
902
902
|
cli: defineCommand({
|
|
903
903
|
meta: { name: "cli", description: "Wrap a CLI command" },
|
|
904
904
|
async run() {
|
|
905
|
-
const { wrapCli } = await import("./dist-
|
|
905
|
+
const { wrapCli } = await import("./dist-G2KJBUZX.js");
|
|
906
906
|
await wrapCli();
|
|
907
907
|
}
|
|
908
908
|
}),
|
|
909
909
|
mcp: defineCommand({
|
|
910
910
|
meta: { name: "mcp", description: "Wrap an MCP server" },
|
|
911
911
|
async run() {
|
|
912
|
-
const { wrapMcp } = await import("./dist-
|
|
912
|
+
const { wrapMcp } = await import("./dist-G2KJBUZX.js");
|
|
913
913
|
await wrapMcp();
|
|
914
914
|
}
|
|
915
915
|
}),
|
|
916
916
|
script: defineCommand({
|
|
917
917
|
meta: { name: "script", description: "Wrap a script" },
|
|
918
918
|
async run() {
|
|
919
|
-
const { wrapScript } = await import("./dist-
|
|
919
|
+
const { wrapScript } = await import("./dist-G2KJBUZX.js");
|
|
920
920
|
await wrapScript();
|
|
921
921
|
}
|
|
922
922
|
}),
|
|
@@ -926,7 +926,7 @@ function runCitty() {
|
|
|
926
926
|
path: { type: "positional", description: "Path to config file", required: true }
|
|
927
927
|
},
|
|
928
928
|
async run({ args }) {
|
|
929
|
-
const { wrapImport } = await import("./dist-
|
|
929
|
+
const { wrapImport } = await import("./dist-G2KJBUZX.js");
|
|
930
930
|
await wrapImport(args.path);
|
|
931
931
|
}
|
|
932
932
|
})
|
|
@@ -938,7 +938,7 @@ function runCitty() {
|
|
|
938
938
|
name: { type: "positional", description: "Tool name", required: true }
|
|
939
939
|
},
|
|
940
940
|
async run({ args }) {
|
|
941
|
-
const { unwrapTool } = await import("./dist-
|
|
941
|
+
const { unwrapTool } = await import("./dist-G2KJBUZX.js");
|
|
942
942
|
await unwrapTool(args.name);
|
|
943
943
|
}
|
|
944
944
|
});
|