vgxness 1.0.0 → 1.0.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/dist/cli/cli-help.js
CHANGED
|
@@ -138,7 +138,7 @@ Areas:
|
|
|
138
138
|
permissions check --category <category> --operation <name> [--path <path>] [--agent-id <id>] [--external] [--privileged]
|
|
139
139
|
|
|
140
140
|
Storage:
|
|
141
|
-
Default: global user data vgxness/memory.sqlite (macOS ~/Library/Application Support/vgxness/memory.sqlite; Linux \${XDG_DATA_HOME:-~/.local/share}/vgxness/memory.sqlite; Windows %APPDATA%\\vgxness\\memory.sqlite).
|
|
141
|
+
Default: global user data vgxness/memory.sqlite (macOS ~/Library/Application Support/vgxness/memory.sqlite; Linux \${XDG_DATA_HOME:-~/.local/share}/vgxness/memory.sqlite; Windows %LOCALAPPDATA%\\vgxness\\memory.sqlite, falling back to %APPDATA%\\vgxness\\memory.sqlite).
|
|
142
142
|
Precedence: --db <path> (source: flag) > VGXNESS_DB_PATH (source: environment) > global default (source: global-default).
|
|
143
143
|
Compatibility: pass --db .vgx/memory.sqlite to use the old project-local database explicitly.
|
|
144
144
|
`;
|
|
@@ -40,9 +40,11 @@ function linuxDataPath(env) {
|
|
|
40
40
|
return homeRelativePath(env, ['.local', 'share', 'vgxness', 'memory.sqlite']);
|
|
41
41
|
}
|
|
42
42
|
function windowsAppDataPath(env) {
|
|
43
|
-
if (
|
|
44
|
-
return
|
|
45
|
-
|
|
43
|
+
if (hasPathValue(env.LOCALAPPDATA))
|
|
44
|
+
return { ok: true, value: path.win32.join(env.LOCALAPPDATA, 'vgxness', 'memory.sqlite') };
|
|
45
|
+
if (hasPathValue(env.APPDATA))
|
|
46
|
+
return { ok: true, value: path.win32.join(env.APPDATA, 'vgxness', 'memory.sqlite') };
|
|
47
|
+
return missingBase('LOCALAPPDATA or APPDATA');
|
|
46
48
|
}
|
|
47
49
|
function homeRelativePath(env, segments) {
|
|
48
50
|
const home = userHome(env);
|
package/docs/cli.md
CHANGED
|
@@ -742,7 +742,7 @@ By default, vgxness uses a global user data database and creates the parent dire
|
|
|
742
742
|
|---|---|
|
|
743
743
|
| macOS | `~/Library/Application Support/vgxness/memory.sqlite` |
|
|
744
744
|
| Linux | `${XDG_DATA_HOME:-~/.local/share}/vgxness/memory.sqlite` |
|
|
745
|
-
| Windows | `%APPDATA%\\vgxness\\memory.sqlite` |
|
|
745
|
+
| Windows | `%LOCALAPPDATA%\\vgxness\\memory.sqlite` when available; otherwise `%APPDATA%\\vgxness\\memory.sqlite` |
|
|
746
746
|
|
|
747
747
|
Selection precedence is `--db <path>` (selected source: `flag`) > `VGXNESS_DB_PATH` (selected source: `environment`) > global default (selected source: `global-default`). The resolver fails clearly if no user data base directory is available instead of falling back to the current working directory.
|
|
748
748
|
|
|
@@ -149,7 +149,7 @@ Ruta por defecto de usuario:
|
|
|
149
149
|
```text
|
|
150
150
|
macOS: ~/Library/Application Support/vgxness/memory.sqlite
|
|
151
151
|
Linux: ${XDG_DATA_HOME:-~/.local/share}/vgxness/memory.sqlite
|
|
152
|
-
Windows: %APPDATA%\vgxness\memory.sqlite
|
|
152
|
+
Windows: %LOCALAPPDATA%\vgxness\memory.sqlite; fallback a %APPDATA%\vgxness\memory.sqlite
|
|
153
153
|
```
|
|
154
154
|
|
|
155
155
|
La ruta `.vgx/memory.sqlite` se sigue usando para dogfood local o pruebas cuando se pasa explicitamente con `--db`.
|
|
@@ -407,7 +407,7 @@ Por defecto, la CLI instalada usa una base global de usuario. Esto permite insta
|
|
|
407
407
|
|---|---|
|
|
408
408
|
| macOS | `~/Library/Application Support/vgxness/memory.sqlite` |
|
|
409
409
|
| Linux | `${XDG_DATA_HOME:-~/.local/share}/vgxness/memory.sqlite` |
|
|
410
|
-
| Windows | `%APPDATA%\vgxness\memory.sqlite` |
|
|
410
|
+
| Windows | `%LOCALAPPDATA%\vgxness\memory.sqlite` si existe; si no, `%APPDATA%\vgxness\memory.sqlite` |
|
|
411
411
|
|
|
412
412
|
La precedencia de seleccion de base es:
|
|
413
413
|
|