@agentikos/omega-os 0.19.30 → 0.19.31

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.
@@ -188,7 +188,7 @@ from omega_engine.genesis import (
188
188
  )
189
189
  from omega_engine import plan as plan_v7
190
190
 
191
- __version__ = "0.19.30"
191
+ __version__ = "0.19.31"
192
192
 
193
193
  __all__ = [
194
194
  "__version__",
@@ -325,6 +325,48 @@ def _spawn_with_shell_then_run(
325
325
  return name
326
326
 
327
327
 
328
+ def spawn_chat_in_omega(
329
+ window_name: str,
330
+ *,
331
+ ctx_dir: Path,
332
+ run_command: str,
333
+ force_replace: bool = False,
334
+ ) -> bool:
335
+ """v0.19.31 — spawn a chat as a WINDOW inside the Omega master session.
336
+
337
+ Returns True when the window exists after the call. The user can
338
+ then `tmux select-window -t Omega:<name>` (or pick from the menu).
339
+ Detach (Ctrl-b d) detaches the whole Omega session — user comes
340
+ back to their shell with Omega still alive, and `omega` re-attaches
341
+ them straight back to the menu.
342
+
343
+ Why windows instead of separate sessions: the user wants `omega`
344
+ to STAY OMEGA. With separate AISB-chat / Hermes-chat sessions,
345
+ detaching from one of those landed them in the shell, not back
346
+ in the Omega menu. Windows under Omega solve that — everything
347
+ lives under the same session lifecycle.
348
+ """
349
+ if not is_alive("Omega"):
350
+ # Omega master must already be alive — bare `omega` ensures this.
351
+ spawn_omega_master(ctx_dir.parent.parent.parent)
352
+ # Probe existing windows.
353
+ _, list_out = _tmux("list-windows", "-t", "Omega", "-F", "#W")
354
+ existing = list_out.splitlines() if list_out else []
355
+ if window_name in existing:
356
+ if force_replace:
357
+ _tmux("kill-window", "-t", f"Omega:{window_name}")
358
+ else:
359
+ return True
360
+ # Create the window with the user's interactive shell at ctx_dir, then
361
+ # send the launch command. Shell stays alive even if the command exits.
362
+ rc, _ = _tmux("new-window", "-t", "Omega", "-n", window_name,
363
+ "-c", str(ctx_dir))
364
+ if rc != 0:
365
+ return False
366
+ _tmux("send-keys", "-t", f"Omega:{window_name}", run_command, "Enter")
367
+ return True
368
+
369
+
328
370
  def spawn_aisb_chat(omega_home: str | Path | None = None,
329
371
  force_replace: bool = False) -> str:
330
372
  """Spawn the AISB master chat tmux session — REAL Claude Code TUI.
@@ -530,12 +572,20 @@ bind-key Z display-popup -E -w 80% -h 80% "omega tmux menu"
530
572
  # Prefix+S — native session list (tmux's built-in choose-tree)
531
573
  bind-key S choose-tree -Zs
532
574
 
575
+ # Open the Omega menu from anywhere in tmux (Option+/ or Option+z).
576
+ # macOS Option key → enable "Use Option as Meta" in your terminal.
577
+ bind-key -n M-/ run-shell -b "tmux has-session -t Omega 2>/dev/null || tmux new-session -d -s Omega -n menu -c $HOME 'omega menu-tui'; tmux switch-client -t Omega"
578
+ bind-key -n M-z run-shell -b "tmux has-session -t Omega 2>/dev/null || tmux new-session -d -s Omega -n menu -c $HOME 'omega menu-tui'; tmux switch-client -t Omega"
579
+
533
580
  # ════════════════════════════════════════════════════════════════════
534
- # Visual cues per session category
581
+ # Claude Code LIGHT theme (white-paper)
535
582
  # ════════════════════════════════════════════════════════════════════
536
- set -g status-style "bg=#1a1a2e,fg=#eeeeee"
537
- set -g status-left "#[fg=#7aa2f7,bold]#S #[fg=default]│ "
538
- set -g status-right "#[fg=#888888]%H:%M │ #(omega tmux count 2>/dev/null) sessions"
583
+ set -g status-style "bg=#FAFAF7,fg=#3D3929"
584
+ set -g status-left "#[fg=#D97757,bold]Ω #S #[fg=#A8A29E]│ "
585
+ set -g status-right "#[fg=#88837A]%H:%M │ #(omega tmux count 2>/dev/null) sessions"
586
+ set -g pane-border-style "fg=#A8A29E"
587
+ set -g pane-active-border-style "fg=#D97757"
588
+ set -g message-style "bg=#E5E2DD,fg=#3D3929"
539
589
  """
540
590
 
541
591
 
@@ -623,18 +673,42 @@ bind-key S choose-tree -Zs
623
673
  bind-key r source-file ~/.tmux.conf \\; display-message "tmux.conf reloaded"
624
674
 
625
675
  # ════════════════════════════════════════════════════════════════════
626
- # Visual cues per session category — colour the status bar by name.
676
+ # Global Omega menu keybindings (v0.19.31)
677
+ # ════════════════════════════════════════════════════════════════════
678
+ # Open the Omega menu from ANYWHERE in tmux — no prefix needed.
679
+ #
680
+ # Option+/ or Option+z → opens the Omega menu
681
+ #
682
+ # How: spawn the Omega session if missing, then switch the current
683
+ # client to it. Detach (Ctrl-b d) brings you back to your shell with
684
+ # Omega still alive.
685
+ #
686
+ # IMPORTANT — for Option key to work on macOS terminals, enable
687
+ # "Use Option as Meta key" (iTerm2: Profile → Keys → Left/Right Option
688
+ # Key → Esc+). Otherwise the binding stays inactive.
689
+ bind-key -n M-/ run-shell -b "tmux has-session -t Omega 2>/dev/null || tmux new-session -d -s Omega -n menu -c $HOME 'omega menu-tui'; tmux switch-client -t Omega"
690
+ bind-key -n M-z run-shell -b "tmux has-session -t Omega 2>/dev/null || tmux new-session -d -s Omega -n menu -c $HOME 'omega menu-tui'; tmux switch-client -t Omega"
691
+
692
+ # ════════════════════════════════════════════════════════════════════
693
+ # Claude Code LIGHT theme (white-paper) — status bar + borders
627
694
  # ════════════════════════════════════════════════════════════════════
628
- set -g status-style "bg=#1a1a2e,fg=#eeeeee"
629
- set -g status-left "#[fg=#7aa2f7,bold]#S #[fg=default]│ "
630
- set -g status-right "#[fg=#888888]%H:%M │ #(omega tmux count 2>/dev/null) sessions"
695
+ # Colours derived from tweakcn.com/r/themes/claude.json:
696
+ # bg #FAFAF7 (cream) fg #3D3929 (slate) accent #D97757 (orange)
697
+ # muted #88837A (warm gray) border #A8A29E (soft)
698
+ set -g status-style "bg=#FAFAF7,fg=#3D3929"
699
+ set -g status-left "#[fg=#D97757,bold]Ω #S #[fg=#A8A29E]│ "
700
+ set -g status-right "#[fg=#88837A]%H:%M │ #(omega tmux count 2>/dev/null) sessions"
631
701
  set -g status-interval 5
632
702
  set -g status-left-length 40
633
703
  set -g status-right-length 60
634
704
 
635
- # Pane border colour softer than default red
636
- set -g pane-border-style "fg=#333333"
637
- set -g pane-active-border-style "fg=#7aa2f7"
705
+ # Pane borderssoft warm gray, accent orange on the active pane.
706
+ set -g pane-border-style "fg=#A8A29E"
707
+ set -g pane-active-border-style "fg=#D97757"
708
+
709
+ # Message + copy-mode prompts — same palette.
710
+ set -g message-style "bg=#E5E2DD,fg=#3D3929"
711
+ set -g mode-style "bg=#D97757,fg=#FAFAF7"
638
712
  """
639
713
 
640
714
 
@@ -522,6 +522,11 @@ def _arrow_menu() -> int:
522
522
  f"{MUTED}• ↑↓ navigate • ↵ pick • / search • Esc refresh{RST}"
523
523
  )
524
524
  try:
525
+ # Claude Code LIGHT theme (white-paper) — bg cream #FAFAF7,
526
+ # fg dark slate #3D3929, accent orange #D97757, muted warm
527
+ # gray #88837A, soft border #A8A29E. Reads cleanly under
528
+ # both light and dark terminal backgrounds (we override
529
+ # fzf's bg explicitly).
525
530
  proc = subprocess.run(
526
531
  ["fzf",
527
532
  "--ansi",
@@ -536,9 +541,21 @@ def _arrow_menu() -> int:
536
541
  "--info=hidden",
537
542
  "--pointer=▶",
538
543
  "--marker=●",
539
- "--color=bg+:#1a1a2e,fg+:#D97757,hl+:#D97757,"
540
- "hl:#D97757,prompt:#D97757,pointer:#D97757,"
541
- "header:#88837A,border:#A8A29E,info:#88837A"],
544
+ "--color="
545
+ "bg:#FAFAF7,"
546
+ "fg:#3D3929,"
547
+ "bg+:#E5E2DD,"
548
+ "fg+:#D97757,"
549
+ "hl:#D97757,"
550
+ "hl+:#D97757,"
551
+ "prompt:#D97757,"
552
+ "pointer:#D97757,"
553
+ "marker:#D97757,"
554
+ "header:#88837A,"
555
+ "border:#A8A29E,"
556
+ "info:#88837A,"
557
+ "spinner:#D97757,"
558
+ "gutter:#FAFAF7"],
542
559
  input="\n".join(lines), capture_output=True, text=True,
543
560
  )
544
561
  except (KeyboardInterrupt, subprocess.SubprocessError):
@@ -563,12 +580,34 @@ def _arrow_menu() -> int:
563
580
  subprocess.run(["tmux", "kill-session", "-t", "Omega"])
564
581
  return 0
565
582
  if action == "open:aisb":
566
- tmux.spawn_aisb_chat(HOME, force_replace=False)
567
- subprocess.run(["tmux", "switch-client", "-t", "AISB-chat"])
583
+ # v0.19.31 — open as a WINDOW in Omega, not a separate session.
584
+ # User stays in Omega; Ctrl-b 0 returns to menu, Ctrl-b d
585
+ # detaches the whole Omega (and `omega` brings them back).
586
+ persona = HOME / "Agentik_SSOT" / "agents" / "aisb" / "CLAUDE.md"
587
+ ctx_dir = tmux._ensure_chat_context_dir(HOME, "aisb-master", persona)
588
+ tmux.spawn_chat_in_omega(
589
+ "aisb", ctx_dir=ctx_dir, run_command="claude",
590
+ force_replace=False,
591
+ )
592
+ subprocess.run(["tmux", "select-window", "-t", "Omega:aisb"])
568
593
  continue
569
594
  if action == "open:hermes":
570
- tmux.spawn_hermes_chat(HOME, force_replace=False)
571
- subprocess.run(["tmux", "switch-client", "-t", "Hermes-chat"])
595
+ persona = HOME / "Agentik_SSOT" / "docs" / "LAYERS.md"
596
+ ctx_dir = tmux._ensure_chat_context_dir(HOME, "hermes", persona)
597
+ try:
598
+ from omega_engine.vault import vault_read
599
+ api_key = (vault_read(HOME, "ANTHROPIC_API_KEY_HERMES") or "").strip()
600
+ except Exception: # noqa: BLE001
601
+ api_key = ""
602
+ if not api_key:
603
+ api_key = (os.environ.get("ANTHROPIC_API_KEY") or "").strip()
604
+ run_cmd = (f"ANTHROPIC_API_KEY={api_key} claude"
605
+ if api_key else "claude")
606
+ tmux.spawn_chat_in_omega(
607
+ "hermes", ctx_dir=ctx_dir, run_command=run_cmd,
608
+ force_replace=False,
609
+ )
610
+ subprocess.run(["tmux", "select-window", "-t", "Omega:hermes"])
572
611
  continue
573
612
  if action == "switch:provider":
574
613
  _run_inline([OMEGA_BIN, "switch"]); continue
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "omega-engine"
3
- version = "0.19.30"
3
+ version = "0.19.31"
4
4
  description = "The Omega OS orchestration engine — event-sourced, verified-completion agent graphs."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
@@ -1 +1 @@
1
- 0.19.30
1
+ 0.19.31
@@ -74,6 +74,19 @@ native:
74
74
  secrets: []
75
75
  recommended: true
76
76
 
77
+ - id: paperclipai
78
+ name: Paperclip (orchestration UI — agent teams, org charts, governance)
79
+ # Node.js + React app from paperclipai/paperclip. Coordinates multiple
80
+ # agents (Claude Code, Codex, Cursor, OpenClaw) into teams with org
81
+ # charts, budgets, governance. Launches a web dashboard + CLI tools.
82
+ # We use the `onboard` npx flow which handles install + initial config.
83
+ # Requires Node 20+, pnpm 9.15+ (both checked by step_system_deps).
84
+ install: { npm_global: "paperclipai" }
85
+ binary: paperclip
86
+ secrets: []
87
+ recommended: false
88
+ post_install: ["paperclip", "--version"]
89
+
77
90
  - id: scrapling
78
91
  name: Scrapling (optional fast scraper — HTTP-first, adaptive elements)
79
92
  # Complementary to CloakBrowser. Scrapling shines for non-protected
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentikos/omega-os",
3
- "version": "0.19.30",
3
+ "version": "0.19.31",
4
4
  "description": "Omega OS — installable agentic operating system with verified-completion orchestration. Event-sourced engine, 8-block rack, autonomous agents, MCP.",
5
5
  "bin": {
6
6
  "omega-os": "bin/omega-os.js"