@ssm123ssm/vault 0.1.15 → 0.1.17
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/package.json +1 -1
- package/preview-agent.js +8 -1
package/package.json
CHANGED
package/preview-agent.js
CHANGED
|
@@ -675,7 +675,14 @@ function runDaemon() {
|
|
|
675
675
|
const uiMode = hasFlag("--ui");
|
|
676
676
|
|
|
677
677
|
if (hasFlag("--daemon") && !hasFlag("--daemon-child")) {
|
|
678
|
-
const args = process.argv.slice(2)
|
|
678
|
+
const args = process.argv.slice(2)
|
|
679
|
+
.filter((arg) => arg !== "--daemon")
|
|
680
|
+
.filter((arg, index, arr) => {
|
|
681
|
+
if (arg === "--link") return false;
|
|
682
|
+
if (arg === "--code") return false;
|
|
683
|
+
if (arr[index - 1] === "--code") return false;
|
|
684
|
+
return true;
|
|
685
|
+
});
|
|
679
686
|
const logPath = path.join(CONFIG_DIR, "agent.log");
|
|
680
687
|
fsSync.mkdirSync(CONFIG_DIR, { recursive: true });
|
|
681
688
|
const outFd = fsSync.openSync(logPath, "a");
|