vault-cortex 0.6.1 → 0.6.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/README.md +3 -2
- package/dist/docker.js +10 -2
- package/dist/messages.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -111,8 +111,9 @@ is available.
|
|
|
111
111
|
## Requirements
|
|
112
112
|
|
|
113
113
|
- Node.js >= 20.12 (only for this CLI — the server itself runs in Docker)
|
|
114
|
-
- [Docker](https://docs.docker.com/get-docker/)
|
|
115
|
-
runtime
|
|
114
|
+
- [Docker](https://docs.docker.com/get-docker/) or a Docker-compatible
|
|
115
|
+
runtime (e.g. OrbStack, Colima, Podman) to run the server — the CLI
|
|
116
|
+
manages the container through the `docker` command
|
|
116
117
|
|
|
117
118
|
## Docs
|
|
118
119
|
|
package/dist/docker.js
CHANGED
|
@@ -96,8 +96,16 @@ export const buildDockerRunArgs = (params) => {
|
|
|
96
96
|
};
|
|
97
97
|
export const createDockerRunner = () => ({
|
|
98
98
|
isDaemonRunning: () => spawnSync("docker", ["info"], { timeout: 5_000 }).status === 0,
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
// stdout is discarded: `docker run -d` prints only the container ID there,
|
|
100
|
+
// which lands as a raw hex line between the wizard's prompts. stderr stays
|
|
101
|
+
// inherited — image-pull progress and error output print live, which the
|
|
102
|
+
// "see output above" failure messages rely on. stdin is ignored on purpose:
|
|
103
|
+
// buildDockerRunArgs always runs detached (never -it), and the prompt
|
|
104
|
+
// library owns the terminal's stdin — interactive flows go through
|
|
105
|
+
// runObsidianLogin, which inherits all three streams.
|
|
106
|
+
dockerRun: (params) => spawnSync("docker", buildDockerRunArgs(params), {
|
|
107
|
+
stdio: ["ignore", "ignore", "inherit"],
|
|
108
|
+
}).status === 0,
|
|
101
109
|
pullImage: (image) => spawnSync("docker", ["pull", image], { stdio: "inherit" }).status === 0,
|
|
102
110
|
stopAndRemoveContainer: () => spawnSync("docker", ["rm", "-f", CONTAINER_NAME]).status === 0,
|
|
103
111
|
runObsidianLogin: (configMountPath) => spawnSync("docker", buildObsidianLoginArgs({
|
package/dist/messages.js
CHANGED
|
@@ -116,7 +116,7 @@ out in ${targetDir}/.env — uncomment, set a value, then apply with
|
|
|
116
116
|
|
|
117
117
|
${updateGuidance(targetDir)}
|
|
118
118
|
|
|
119
|
-
Full docs: https://github.com/aliasunder/vault-cortex
|
|
119
|
+
Full docs: https://github.com/aliasunder/vault-cortex
|
|
120
120
|
|
|
121
121
|
${bottomRule()}`;
|
|
122
122
|
return connectMessage;
|