arkaos 2.3.3 → 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 CHANGED
@@ -1 +1 @@
1
- 2.3.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 || "--vault"}`, {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arkaos",
3
- "version": "2.3.3",
3
+ "version": "2.3.5",
4
4
  "description": "The Operating System for AI Agent Teams",
5
5
  "type": "module",
6
6
  "bin": {
package/pyproject.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "arkaos-core"
3
- version = "2.3.3"
3
+ version = "2.3.5"
4
4
  description = "Core engine for ArkaOS — The Operating System for AI Agent Teams"
5
5
  readme = "README.md"
6
6
  license = {text = "MIT"}
@@ -66,7 +66,7 @@ async def ws_tasks(websocket: WebSocket):
66
66
 
67
67
  app.add_middleware(
68
68
  CORSMiddleware,
69
- allow_origins=["http://localhost:3333", "http://localhost:3000"],
69
+ allow_origin_regex=r"http://localhost:\d+",
70
70
  allow_methods=["GET", "POST", "PUT", "DELETE"],
71
71
  allow_headers=["*"],
72
72
  )
@@ -80,7 +80,28 @@ def main() -> int:
80
80
  directory = vault
81
81
 
82
82
  if not directory:
83
- print("No directory specified. Use --vault or --dir.", file=sys.stderr)
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():