arkaos 2.11.0 → 2.12.0

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.11.0
1
+ 2.12.0
@@ -587,6 +587,52 @@ function installSkill(config, installDir) {
587
587
  if (agentDeployed > 0) {
588
588
  ok(`${agentDeployed} agent personas installed (~/.claude/agents/arka-*.md)`);
589
589
  }
590
+
591
+ // ── MCP infrastructure ──────────────────────────────────────────────
592
+ // Deploy mcps/ subdirectories (profiles, stacks, scripts) and registry
593
+ // to ~/.claude/skills/arka/mcps/, and the arka-prompts server files to
594
+ // ~/.claude/skills/arka/mcp-server/. Mirrors the mcps/ tree in the repo.
595
+ const mcpsSrc = join(ARKAOS_ROOT, "mcps");
596
+ if (existsSync(mcpsSrc)) {
597
+ const mcpsDest = join(skillDest, "mcps");
598
+ ensureDir(mcpsDest);
599
+
600
+ // Copy subdirectories: profiles, stacks, scripts
601
+ for (const subdir of ["profiles", "stacks", "scripts"]) {
602
+ const src = join(mcpsSrc, subdir);
603
+ if (!existsSync(src)) continue;
604
+ const dest = join(mcpsDest, subdir);
605
+ ensureDir(dest);
606
+ try {
607
+ cpSync(src, dest, { recursive: true });
608
+ } catch {}
609
+ }
610
+
611
+ // Copy registry.json to mcps root
612
+ const registrySrc = join(mcpsSrc, "registry.json");
613
+ if (existsSync(registrySrc)) {
614
+ copyFileSync(registrySrc, join(mcpsDest, "registry.json"));
615
+ }
616
+
617
+ // Make apply-mcps.sh executable
618
+ const applyScript = join(mcpsDest, "scripts", "apply-mcps.sh");
619
+ if (existsSync(applyScript)) {
620
+ try { chmodSync(applyScript, 0o755); } catch {}
621
+ }
622
+
623
+ // Deploy arka-prompts server to mcp-server/
624
+ const mcpServerSrc = join(mcpsSrc, "arka-prompts");
625
+ const mcpServerDest = join(skillsBase, "arka", "mcp-server");
626
+ if (existsSync(mcpServerSrc)) {
627
+ ensureDir(mcpServerDest);
628
+ for (const f of ["server.py", "commands.py", "pyproject.toml"]) {
629
+ const src = join(mcpServerSrc, f);
630
+ if (existsSync(src)) copyFileSync(src, join(mcpServerDest, f));
631
+ }
632
+ }
633
+
634
+ ok("MCP infrastructure deployed (profiles, stacks, scripts, arka-prompts server)");
635
+ }
590
636
  }
591
637
 
592
638
  function deployCognitiveScheduler(installDir, arkaosRoot) {
@@ -342,6 +342,44 @@ export async function update() {
342
342
  console.log(` ✓ ${agentCount} agent personas updated`);
343
343
  }
344
344
 
345
+ // MCP infrastructure: deploy mcps/ subdirectories, registry, and
346
+ // arka-prompts server — mirrors the same block in installSkill().
347
+ const mcpsSrc = join(ARKAOS_ROOT, "mcps");
348
+ if (existsSync(mcpsSrc)) {
349
+ const mcpsDest = join(skillDest, "mcps");
350
+ if (!existsSync(mcpsDest)) mkdirSync(mcpsDest, { recursive: true });
351
+
352
+ for (const subdir of ["profiles", "stacks", "scripts"]) {
353
+ const src = join(mcpsSrc, subdir);
354
+ if (!existsSync(src)) continue;
355
+ const dest = join(mcpsDest, subdir);
356
+ if (!existsSync(dest)) mkdirSync(dest, { recursive: true });
357
+ try { cpSync(src, dest, { recursive: true }); } catch {}
358
+ }
359
+
360
+ const registrySrc = join(mcpsSrc, "registry.json");
361
+ if (existsSync(registrySrc)) {
362
+ copyFileSync(registrySrc, join(mcpsDest, "registry.json"));
363
+ }
364
+
365
+ const applyScript = join(mcpsDest, "scripts", "apply-mcps.sh");
366
+ if (existsSync(applyScript)) {
367
+ try { chmodSync(applyScript, 0o755); } catch {}
368
+ }
369
+
370
+ const mcpServerSrc = join(mcpsSrc, "arka-prompts");
371
+ const mcpServerDest = join(skillsBase, "arka", "mcp-server");
372
+ if (existsSync(mcpServerSrc)) {
373
+ if (!existsSync(mcpServerDest)) mkdirSync(mcpServerDest, { recursive: true });
374
+ for (const f of ["server.py", "commands.py", "pyproject.toml"]) {
375
+ const src = join(mcpServerSrc, f);
376
+ if (existsSync(src)) copyFileSync(src, join(mcpServerDest, f));
377
+ }
378
+ }
379
+
380
+ console.log(" ✓ MCP infrastructure updated (profiles, stacks, scripts, arka-prompts server)");
381
+ }
382
+
345
383
  // ── 7. Update .repo-path + .arkaos-root ──
346
384
  // Two references point at the source repo. Both MUST be updated on
347
385
  // every update pass, otherwise running `npx arkaos update` from a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arkaos",
3
- "version": "2.11.0",
3
+ "version": "2.12.0",
4
4
  "description": "The Operating System for AI Agent Teams",
5
5
  "type": "module",
6
6
  "bin": {