arkaos 2.3.4 → 2.3.5
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/VERSION +1 -1
- package/installer/cli.js +1 -1
- package/package.json +1 -1
- package/pyproject.toml +1 -1
- package/scripts/knowledge-index.py +22 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.3.
|
|
1
|
+
2.3.5
|
package/installer/cli.js
CHANGED
|
@@ -123,7 +123,7 @@ async function main() {
|
|
|
123
123
|
const indexArgs = positionals.slice(1).join(" ");
|
|
124
124
|
const repoRoot = dirname(fileURLToPath(import.meta.url)).replace(/\/installer$/, "");
|
|
125
125
|
try {
|
|
126
|
-
execSync(`python3 "${repoRoot}/scripts/knowledge-index.py" ${indexArgs || "
|
|
126
|
+
execSync(`python3 "${repoRoot}/scripts/knowledge-index.py" ${indexArgs || ""}`, {
|
|
127
127
|
stdio: "inherit",
|
|
128
128
|
env: { ...process.env, ARKAOS_ROOT: repoRoot },
|
|
129
129
|
});
|
package/package.json
CHANGED
package/pyproject.toml
CHANGED
|
@@ -80,7 +80,28 @@ def main() -> int:
|
|
|
80
80
|
directory = vault
|
|
81
81
|
|
|
82
82
|
if not directory:
|
|
83
|
-
|
|
83
|
+
# Try common vault locations
|
|
84
|
+
common_vaults = [
|
|
85
|
+
Path.home() / "Documents" / "Personal",
|
|
86
|
+
Path.home() / "Documents" / "Obsidian",
|
|
87
|
+
Path.home() / "Obsidian",
|
|
88
|
+
Path.home() / "vault",
|
|
89
|
+
]
|
|
90
|
+
for vault_path in common_vaults:
|
|
91
|
+
if vault_path.exists() and (vault_path / ".obsidian").exists():
|
|
92
|
+
directory = str(vault_path)
|
|
93
|
+
print(f"Auto-detected vault: {directory}" if not args.json_output else "", file=sys.stderr)
|
|
94
|
+
break
|
|
95
|
+
|
|
96
|
+
if not directory:
|
|
97
|
+
# Fall back to indexing ArkaOS departments (always available)
|
|
98
|
+
departments_dir = ARKAOS_ROOT / "departments"
|
|
99
|
+
if departments_dir.exists():
|
|
100
|
+
directory = str(departments_dir)
|
|
101
|
+
print(f"No vault found. Indexing ArkaOS skills: {directory}" if not args.json_output else "", file=sys.stderr)
|
|
102
|
+
|
|
103
|
+
if not directory:
|
|
104
|
+
print("No directory specified. Use --vault <path> or --dir <path>.", file=sys.stderr)
|
|
84
105
|
return 2
|
|
85
106
|
|
|
86
107
|
if not Path(directory).exists():
|