git-multiverse 0.1.2 → 0.1.4

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 CHANGED
@@ -34,11 +34,10 @@ git-multiverse uninstall
34
34
 
35
35
  Setup choices:
36
36
 
37
- - runtime: `docker`
38
- - database mode: `local` or `remote`
37
+ - runtime: `docker` or `native`
38
+ - db-mode: `local` or `remote`
39
39
  - Docker mode can use either local Neo4j in Compose or a remote Neo4j database
40
- - Native + remote-database startup is planned, but not available until release
41
- binaries are bundled or downloaded automatically
40
+ - Native + remote-database startup runs the pre-built `multiverse-api` binary (pre-bundled for Linux and Windows) and connects directly to a remote Neo4j database without Docker.
42
41
 
43
42
  Security defaults:
44
43
 
package/lib/app.mjs CHANGED
@@ -325,6 +325,7 @@ export function writeStateFiles(config, overrides = {}) {
325
325
  fsModule.mkdirSync(paths.binDir, { recursive: true, mode: 0o700 });
326
326
  fsModule.mkdirSync(paths.runDir, { recursive: true, mode: 0o700 });
327
327
  fsModule.mkdirSync(paths.logDir, { recursive: true, mode: 0o700 });
328
+ fsModule.mkdirSync(path.join(paths.stateDir, "docs"), { recursive: true });
328
329
  fsModule.chmodSync(paths.stateDir, 0o700);
329
330
  fsModule.writeFileSync(paths.envPath, renderEnvFile(config), { mode: 0o600 });
330
331
  fsModule.chmodSync(paths.envPath, 0o600);
@@ -848,9 +849,14 @@ export async function runWizard(config, flags, overrides = {}, io = createIO(ove
848
849
  // ── Page 1: System & Workspace ──────────────────────────────────
849
850
  showPageHeader(1, "System & Workspace", io, wizardContext);
850
851
  if (!flags.runtime) {
851
- config.MULTIVERSE_RUNTIME_MODE = await promptMenu(rl, "Select runtime mode:", [
852
- { name: "Docker Compose (recommended)", value: "docker" }
853
- ], "docker", overrides);
852
+ const runtimeOptions = [{ name: "Docker Compose (recommended)", value: "docker" }];
853
+ const nativeBinary = resolveNativeBinary(overrides);
854
+ if (nativeBinary.ok) {
855
+ runtimeOptions.push({ name: "Native binary + remote Neo4j", value: "native" });
856
+ } else {
857
+ io.log(`${colors.yellow}Native runtime is not available in this npm package for ${nativePlatformDir(overrides.platform || os.platform(), overrides.arch || os.arch())}.${colors.reset}`);
858
+ }
859
+ config.MULTIVERSE_RUNTIME_MODE = await promptMenu(rl, "Select runtime mode:", runtimeOptions, "docker", overrides);
854
860
  }
855
861
  if (config.MULTIVERSE_RUNTIME_MODE === "native") {
856
862
  config.MULTIVERSE_DB_MODE = "remote";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-multiverse",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Clone-free Multiverse Docker Hub launcher.",
5
5
  "type": "module",
6
6
  "bin": {