@agentikos/omega-os 0.2.0 → 0.19.6
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/README.md +33 -3
- package/bootstrap/lib/__pycache__/claude-code-settings.cpython-313.pyc +0 -0
- package/bootstrap/lib/__pycache__/llm-clis.cpython-313.pyc +0 -0
- package/bootstrap/lib/__pycache__/manifest-helpers.cpython-313.pyc +0 -0
- package/bootstrap/lib/claude-code-settings.py +176 -0
- package/bootstrap/lib/common.sh +457 -1
- package/bootstrap/lib/llm-clis.py +341 -0
- package/bootstrap/lib/manifest-helpers.py +384 -0
- package/bootstrap/lib/steps.sh +790 -21
- package/bootstrap/manifest.example.yaml +87 -1
- package/bootstrap/templates/aisb/CLAUDE.md +305 -0
- package/bootstrap/templates/aisb/architect.md +204 -0
- package/bootstrap/templates/aisb/checkers/CLAUDE.md +9 -0
- package/bootstrap/templates/aisb/checkers/checker-architect.md +151 -0
- package/bootstrap/templates/aisb/checkers/checker-common.md +171 -0
- package/bootstrap/templates/aisb/checkers/checker-construct.md +129 -0
- package/bootstrap/templates/aisb/checkers/checker-keymaker.md +204 -0
- package/bootstrap/templates/aisb/checkers/checker-link.md +205 -0
- package/bootstrap/templates/aisb/checkers/checker-merovingian.md +219 -0
- package/bootstrap/templates/aisb/checkers/checker-morpheus.md +211 -0
- package/bootstrap/templates/aisb/checkers/checker-neo.md +177 -0
- package/bootstrap/templates/aisb/checkers/checker-niobe.md +156 -0
- package/bootstrap/templates/aisb/checkers/checker-oracle.md +164 -0
- package/bootstrap/templates/aisb/checkers/checker-seraph.md +187 -0
- package/bootstrap/templates/aisb/checkers/checker-smith.md +195 -0
- package/bootstrap/templates/aisb/checkers/checker-zion.md +113 -0
- package/bootstrap/templates/aisb/construct.md +135 -0
- package/bootstrap/templates/aisb/keymaker.md +227 -0
- package/bootstrap/templates/aisb/link.md +170 -0
- package/bootstrap/templates/aisb/lmc-protocol.md +57 -0
- package/bootstrap/templates/aisb/merovingian.md +159 -0
- package/bootstrap/templates/aisb/morpheus.md +243 -0
- package/bootstrap/templates/aisb/neo.md +147 -0
- package/bootstrap/templates/aisb/niobe.md +197 -0
- package/bootstrap/templates/aisb/oracle.md +244 -0
- package/bootstrap/templates/aisb/protocols/handoff-templates.md +204 -0
- package/bootstrap/templates/aisb/protocols/shared-protocol.md +248 -0
- package/bootstrap/templates/aisb/pythia.md +153 -0
- package/bootstrap/templates/aisb/seraph.md +315 -0
- package/bootstrap/templates/aisb/smith.md +202 -0
- package/bootstrap/templates/aisb/zion.md +172 -0
- package/bootstrap/templates/autonomous/audit-patrol.yaml +41 -0
- package/bootstrap/templates/autonomous/smith-reflect.yaml +43 -0
- package/bootstrap/templates/autonomous/ssh-key-rotate.yaml +46 -0
- package/bootstrap/templates/autonomous/support-agent.yaml +38 -0
- package/docs/AUDITS.md +85 -0
- package/docs/GAP-ANALYSIS.md +214 -0
- package/docs/INSTALL.md +47 -9
- package/docs/MCP-AND-PLUGINS.md +31 -4
- package/docs/SIMULATION.md +171 -0
- package/docs/simulate.sh +211 -0
- package/install.sh +164 -17
- package/omega/Agentik_Engine/README.md +4 -2
- package/omega/Agentik_Engine/omega_engine/__init__.py +147 -1
- package/omega/Agentik_Engine/omega_engine/__pycache__/__init__.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/account.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/agent_messages.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/aisb_chat.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/audit.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/audit_arsenal.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/audit_diff.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/audit_gate.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/auto_update.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/autonomous.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/backup.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/barrier.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/bus.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/cadence.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/classifier.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/cleanup.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/cli.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/completions.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/costs.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/done_signal.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/envelope.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/events.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/executor.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/handoff.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/hermes.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/hermes_bootstrap.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/hermes_desktop.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/learning.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/managed_agent.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/memory.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/menu.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/mission.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/plan.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/progress.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/project.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/prompts.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/provider.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/prune.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/pursue.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/reducer.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/report.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/router.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/skill_routing.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/smoke.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/store.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/supervisor.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/sync.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/task.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/telegram.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/telegram_history.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/tmux.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/tools.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/understand_anything.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/updater.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/validate.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/vault.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/webhooks.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/__pycache__/worker.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/account.py +28 -31
- package/omega/Agentik_Engine/omega_engine/agent_messages.py +167 -0
- package/omega/Agentik_Engine/omega_engine/aisb_chat.py +128 -0
- package/omega/Agentik_Engine/omega_engine/audit_diff.py +99 -0
- package/omega/Agentik_Engine/omega_engine/audit_gate.py +149 -0
- package/omega/Agentik_Engine/omega_engine/audits/__init__.py +60 -0
- package/omega/Agentik_Engine/omega_engine/audits/__pycache__/__init__.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/audits/__pycache__/batcher.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/audits/__pycache__/dispatcher.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/audits/__pycache__/generator.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/audits/__pycache__/history.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/audits/__pycache__/pipeline.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/audits/batcher.py +218 -0
- package/omega/Agentik_Engine/omega_engine/audits/dispatcher.py +92 -0
- package/omega/Agentik_Engine/omega_engine/audits/generator.py +234 -0
- package/omega/Agentik_Engine/omega_engine/audits/history.py +168 -0
- package/omega/Agentik_Engine/omega_engine/audits/pipeline.py +198 -0
- package/omega/Agentik_Engine/omega_engine/auto_update.py +339 -0
- package/omega/Agentik_Engine/omega_engine/backup.py +215 -0
- package/omega/Agentik_Engine/omega_engine/cadence.py +158 -0
- package/omega/Agentik_Engine/omega_engine/classifier.py +215 -0
- package/omega/Agentik_Engine/omega_engine/cleanup.py +673 -0
- package/omega/Agentik_Engine/omega_engine/cli.py +4156 -86
- package/omega/Agentik_Engine/omega_engine/completions.py +260 -0
- package/omega/Agentik_Engine/omega_engine/costs.py +100 -0
- package/omega/Agentik_Engine/omega_engine/daemons/__pycache__/__init__.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/daemons/__pycache__/autonomous.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/daemons/__pycache__/engine.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/daemons/__pycache__/telegram.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/daemons/engine.py +53 -4
- package/omega/Agentik_Engine/omega_engine/daemons/telegram.py +101 -17
- package/omega/Agentik_Engine/omega_engine/done_signal.py +154 -0
- package/omega/Agentik_Engine/omega_engine/educators/__pycache__/__init__.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/educators/__pycache__/artifact.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/educators/__pycache__/automation.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/educators/__pycache__/base.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/educators/__pycache__/claudecode.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/educators/__pycache__/connection.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/educators/__pycache__/coworker.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/educators/__pycache__/loop.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/educators/__pycache__/prompt.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/educators/__pycache__/skill.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/envelope.py +219 -0
- package/omega/Agentik_Engine/omega_engine/executor.py +149 -10
- package/omega/Agentik_Engine/omega_engine/genesis/__init__.py +134 -0
- package/omega/Agentik_Engine/omega_engine/genesis/__pycache__/__init__.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/genesis/__pycache__/orchestrator.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/genesis/__pycache__/phases.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/genesis/__pycache__/stack.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/genesis/__pycache__/state.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/genesis/orchestrator.py +262 -0
- package/omega/Agentik_Engine/omega_engine/genesis/phases.py +950 -0
- package/omega/Agentik_Engine/omega_engine/genesis/stack.py +324 -0
- package/omega/Agentik_Engine/omega_engine/genesis/state.py +353 -0
- package/omega/Agentik_Engine/omega_engine/handoff.py +459 -0
- package/omega/Agentik_Engine/omega_engine/hermes.py +426 -0
- package/omega/Agentik_Engine/omega_engine/hermes_bootstrap.py +382 -0
- package/omega/Agentik_Engine/omega_engine/hermes_desktop.py +469 -0
- package/omega/Agentik_Engine/omega_engine/integrations/__init__.py +30 -0
- package/omega/Agentik_Engine/omega_engine/integrations/__pycache__/__init__.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/integrations/__pycache__/graphify.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/integrations/graphify.py +234 -0
- package/omega/Agentik_Engine/omega_engine/learning.py +268 -0
- package/omega/Agentik_Engine/omega_engine/managed_agent.py +467 -0
- package/omega/Agentik_Engine/omega_engine/memory.py +271 -0
- package/omega/Agentik_Engine/omega_engine/menu.py +1065 -0
- package/omega/Agentik_Engine/omega_engine/migrations/__init__.py +144 -0
- package/omega/Agentik_Engine/omega_engine/migrations/__pycache__/__init__.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/migrations/__pycache__/v0_14_0.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/migrations/v0_14_0.py +29 -0
- package/omega/Agentik_Engine/omega_engine/mission.py +16 -13
- package/omega/Agentik_Engine/omega_engine/plan.py +846 -0
- package/omega/Agentik_Engine/omega_engine/prompts.py +158 -0
- package/omega/Agentik_Engine/omega_engine/provider.py +161 -12
- package/omega/Agentik_Engine/omega_engine/prune.py +151 -0
- package/omega/Agentik_Engine/omega_engine/pursue.py +205 -0
- package/omega/Agentik_Engine/omega_engine/rag/__pycache__/__init__.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/rag/__pycache__/agentic.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/rag/__pycache__/base.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/rag/__pycache__/corrective.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/rag/__pycache__/graph.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/rag/__pycache__/hybrid.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/rag/__pycache__/multimodal.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/rag/__pycache__/router.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/router.py +28 -0
- package/omega/Agentik_Engine/omega_engine/skill_discovery/__init__.py +48 -0
- package/omega/Agentik_Engine/omega_engine/skill_discovery/__pycache__/__init__.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/skill_discovery/__pycache__/auditor.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/skill_discovery/__pycache__/finder.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/skill_discovery/__pycache__/installer.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/skill_discovery/__pycache__/marketplaces.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/omega_engine/skill_discovery/auditor.py +232 -0
- package/omega/Agentik_Engine/omega_engine/skill_discovery/finder.py +94 -0
- package/omega/Agentik_Engine/omega_engine/skill_discovery/installer.py +129 -0
- package/omega/Agentik_Engine/omega_engine/skill_discovery/marketplaces.py +80 -0
- package/omega/Agentik_Engine/omega_engine/skill_routing.py +388 -0
- package/omega/Agentik_Engine/omega_engine/smoke.py +81 -0
- package/omega/Agentik_Engine/omega_engine/store.py +88 -41
- package/omega/Agentik_Engine/omega_engine/sync.py +142 -1
- package/omega/Agentik_Engine/omega_engine/telegram_history.py +260 -0
- package/omega/Agentik_Engine/omega_engine/tmux.py +526 -0
- package/omega/Agentik_Engine/omega_engine/understand_anything.py +275 -0
- package/omega/Agentik_Engine/omega_engine/updater.py +70 -0
- package/omega/Agentik_Engine/omega_engine/validate.py +186 -0
- package/omega/Agentik_Engine/omega_engine/vault.py +342 -0
- package/omega/Agentik_Engine/omega_engine/webhooks.py +262 -0
- package/omega/Agentik_Engine/omega_engine/worker.py +526 -0
- package/omega/Agentik_Engine/pyproject.toml +1 -1
- package/omega/Agentik_Engine/tests/__pycache__/test_account.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_account.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_adversarial.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_adversarial.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_agents_envelope.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_agents_envelope.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_audit_arsenal.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_audit_arsenal.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_audits_pipeline.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_audits_pipeline.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_auto_update_and_migrations.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_auto_update_and_migrations.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_autonomous.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_autonomous.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_educators.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_educators.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_executor.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_executor.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_genesis_and_plan.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_genesis_and_plan.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_graphify.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_graphify.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_handoff.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_handoff.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_hermes_and_ua.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_hermes_and_ua.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_hermes_bootstrap_and_desktop.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_hermes_bootstrap_and_desktop.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_install_steps.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_install_steps.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_install_ux.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_install_ux.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_installer_wiring.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_installer_wiring.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_intelligence.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_intelligence.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_llm_clis_and_uninstall.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_llm_clis_and_uninstall.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_managed_agent.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_managed_agent.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_max_provider_and_menu.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_max_provider_and_menu.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_menu_coverage.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_menu_coverage.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_mission.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_mission.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_progress.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_progress.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_project.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_project.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_pursue_cadence.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_pursue_cadence.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_rag.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_rag.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_reducer.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_reducer.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_report.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_report.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_role_aliases_and_ssot.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_role_aliases_and_ssot.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_skill_discovery_and_gate.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_skill_discovery_and_gate.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_skill_power.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_skill_power.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_skill_routing.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_skill_routing.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_snapshot_partial.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_snapshot_partial.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_telegram_history.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_telegram_history.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_tmux_and_aisb_chat.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_tmux_and_aisb_chat.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_tools_and_sync.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_tools_and_sync.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_v06_features.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_v06_features.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_vault.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_vault.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_webhooks_and_readiness.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_webhooks_and_readiness.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_worker_and_cleanup.cpython-313-pytest-8.4.2.pyc +0 -0
- package/omega/Agentik_Engine/tests/__pycache__/test_worker_and_cleanup.cpython-313.pyc +0 -0
- package/omega/Agentik_Engine/tests/test_account.py +8 -3
- package/omega/Agentik_Engine/tests/test_adversarial.py +351 -0
- package/omega/Agentik_Engine/tests/test_agents_envelope.py +274 -0
- package/omega/Agentik_Engine/tests/test_audits_pipeline.py +348 -0
- package/omega/Agentik_Engine/tests/test_auto_update_and_migrations.py +394 -0
- package/omega/Agentik_Engine/tests/test_genesis_and_plan.py +573 -0
- package/omega/Agentik_Engine/tests/test_graphify.py +190 -0
- package/omega/Agentik_Engine/tests/test_handoff.py +311 -0
- package/omega/Agentik_Engine/tests/test_hermes_and_ua.py +387 -0
- package/omega/Agentik_Engine/tests/test_hermes_bootstrap_and_desktop.py +358 -0
- package/omega/Agentik_Engine/tests/test_install_steps.py +359 -0
- package/omega/Agentik_Engine/tests/test_install_ux.py +151 -0
- package/omega/Agentik_Engine/tests/test_installer_wiring.py +496 -0
- package/omega/Agentik_Engine/tests/test_intelligence.py +285 -0
- package/omega/Agentik_Engine/tests/test_llm_clis_and_uninstall.py +228 -0
- package/omega/Agentik_Engine/tests/test_managed_agent.py +363 -0
- package/omega/Agentik_Engine/tests/test_max_provider_and_menu.py +231 -0
- package/omega/Agentik_Engine/tests/test_menu_coverage.py +72 -0
- package/omega/Agentik_Engine/tests/test_pursue_cadence.py +217 -0
- package/omega/Agentik_Engine/tests/test_role_aliases_and_ssot.py +207 -0
- package/omega/Agentik_Engine/tests/test_skill_discovery_and_gate.py +337 -0
- package/omega/Agentik_Engine/tests/test_skill_power.py +259 -0
- package/omega/Agentik_Engine/tests/test_skill_routing.py +189 -0
- package/omega/Agentik_Engine/tests/test_telegram_history.py +209 -0
- package/omega/Agentik_Engine/tests/test_tmux_and_aisb_chat.py +223 -0
- package/omega/Agentik_Engine/tests/test_v06_features.py +370 -0
- package/omega/Agentik_Engine/tests/test_vault.py +173 -0
- package/omega/Agentik_Engine/tests/test_webhooks_and_readiness.py +277 -0
- package/omega/Agentik_Engine/tests/test_worker_and_cleanup.py +541 -0
- package/omega/Agentik_Extra/etc/secrets/.vault-key +3 -0
- package/omega/Agentik_Extra/etc/secrets/.vault-pub +1 -0
- package/omega/Agentik_Runtime/audits.db +0 -0
- package/omega/Agentik_SSOT/VERSION +1 -1
- package/omega/Agentik_SSOT/claude-plugins/claude-plugins.yaml +100 -0
- package/omega/Agentik_SSOT/docs/LAYERS.md +90 -0
- package/omega/Agentik_SSOT/docs/USER-JOURNEY.md +283 -0
- package/omega/Agentik_SSOT/docs/quality-arsenal/ARSENAL-INTERCONNECTIONS.md +283 -0
- package/omega/Agentik_SSOT/docs/quality-arsenal/ARSENAL-ORCHESTRATION-PLAYBOOK.md +364 -0
- package/omega/Agentik_SSOT/docs/quality-arsenal/AUDIT-VERIFICATION-CONTRACT.md +272 -0
- package/omega/Agentik_SSOT/docs/quality-arsenal/QUALITY-ARSENAL-PREAMBLE.md +462 -0
- package/omega/Agentik_SSOT/marketplaces/design-discipline.yaml +86 -0
- package/omega/Agentik_SSOT/skills/a11yaudit/SKILL.md +161 -0
- package/omega/Agentik_SSOT/skills/apiaudit/SKILL.md +157 -0
- package/omega/Agentik_SSOT/skills/audit-orchestrator.md +212 -0
- package/omega/Agentik_SSOT/skills/audit-pilot.md +466 -0
- package/omega/Agentik_SSOT/skills/audit-tracker.md +147 -0
- package/omega/Agentik_SSOT/skills/automationaudit/SKILL.md +161 -0
- package/omega/Agentik_SSOT/skills/cadence/SKILL.md +76 -0
- package/omega/Agentik_SSOT/skills/codeaudit/SKILL.md +153 -0
- package/omega/Agentik_SSOT/skills/copyaudit/SKILL.md +161 -0
- package/omega/Agentik_SSOT/skills/dataaudit/SKILL.md +157 -0
- package/omega/Agentik_SSOT/skills/debugaudit/SKILL.md +161 -0
- package/omega/Agentik_SSOT/skills/dispatch/SKILL.md +79 -0
- package/omega/Agentik_SSOT/skills/dxaudit/SKILL.md +161 -0
- package/omega/Agentik_SSOT/skills/featureaudit/SKILL.md +161 -0
- package/omega/Agentik_SSOT/skills/flowaudit/SKILL.md +165 -0
- package/omega/Agentik_SSOT/skills/genesis/SKILL.md +116 -0
- package/omega/Agentik_SSOT/skills/handoff/SKILL.md +117 -0
- package/omega/Agentik_SSOT/skills/logicaudit/SKILL.md +165 -0
- package/omega/Agentik_SSOT/skills/motionaudit/SKILL.md +165 -0
- package/omega/Agentik_SSOT/skills/newcmd.md +300 -0
- package/omega/Agentik_SSOT/skills/perfaudit/SKILL.md +161 -0
- package/omega/Agentik_SSOT/skills/plan/SKILL.md +127 -0
- package/omega/Agentik_SSOT/skills/pursue/SKILL.md +68 -0
- package/omega/Agentik_SSOT/skills/quality-arsenal.md +180 -0
- package/omega/Agentik_SSOT/skills/rag-route.md +9 -0
- package/omega/Agentik_SSOT/skills/refontaudit/SKILL.md +165 -0
- package/omega/Agentik_SSOT/skills/retentionaudit/SKILL.md +165 -0
- package/omega/Agentik_SSOT/skills/secaudit/SKILL.md +157 -0
- package/omega/Agentik_SSOT/skills/seoaudit/SKILL.md +161 -0
- package/omega/Agentik_SSOT/skills/skill-auditor/SKILL.md +83 -0
- package/omega/Agentik_SSOT/skills/skill-finder/SKILL.md +116 -0
- package/omega/Agentik_SSOT/skills/uiuxaudit/SKILL.md +165 -0
- package/package.json +2 -2
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Manifest-driven install helpers, invoked from `bootstrap/lib/steps.sh`.
|
|
3
|
+
|
|
4
|
+
The shell side only orchestrates; this file is where we read YAML, write
|
|
5
|
+
files, and call into the engine. All commands are non-fatal — they return
|
|
6
|
+
exit 0 even on minor issues, but print warnings the operator can act on.
|
|
7
|
+
|
|
8
|
+
Subcommands
|
|
9
|
+
-----------
|
|
10
|
+
providers <manifest> <omega_home>
|
|
11
|
+
Read `providers:` and write Agentik_SSOT/providers/router.yaml.
|
|
12
|
+
|
|
13
|
+
autonomous <manifest> <templates_dir> <target_dir>
|
|
14
|
+
Read `autonomous_agents:` and copy matching template charters into
|
|
15
|
+
Agentik_Orchestration/autonomous/.
|
|
16
|
+
|
|
17
|
+
rag <manifest> <omega_home>
|
|
18
|
+
Read `options.rag` and write Agentik_SSOT/rag/config.yaml.
|
|
19
|
+
|
|
20
|
+
init-vault <omega_home>
|
|
21
|
+
Idempotent: ensure the vault is set up (age keypair if available,
|
|
22
|
+
mode-700 directory). Prints the resolved backend.
|
|
23
|
+
|
|
24
|
+
accounts <manifest> <omega_home>
|
|
25
|
+
Read `accounts:` and add each to the pool. If `token_env` is set
|
|
26
|
+
AND the env var has a value, write the token through the vault.
|
|
27
|
+
|
|
28
|
+
first-project <manifest> <omega_home>
|
|
29
|
+
If `first_project:` is set, create that project (folder + registry
|
|
30
|
+
+ Telegram topic if a bridge is wired).
|
|
31
|
+
|
|
32
|
+
encrypt-mcp-env <omega_home> <mcp_id>
|
|
33
|
+
Migrate ``Agentik_Extra/etc/secrets/mcp-<id>.env`` into the
|
|
34
|
+
encrypted vault when age is the active backend. No-op otherwise.
|
|
35
|
+
|
|
36
|
+
telegram-chat-id <manifest> <omega_home>
|
|
37
|
+
Read ``telegram.group_chat_id`` from the manifest (if set) and
|
|
38
|
+
persist it through the vault. Returns the resolved id on stdout.
|
|
39
|
+
"""
|
|
40
|
+
from __future__ import annotations
|
|
41
|
+
|
|
42
|
+
import os
|
|
43
|
+
import shutil
|
|
44
|
+
import sys
|
|
45
|
+
from pathlib import Path
|
|
46
|
+
|
|
47
|
+
import yaml
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def _engine_on_path(omega_home: str | Path) -> None:
|
|
51
|
+
"""Make the engine importable in this subprocess."""
|
|
52
|
+
engine = Path(omega_home) / "Agentik_Engine"
|
|
53
|
+
if engine.is_dir():
|
|
54
|
+
sys.path.insert(0, str(engine))
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def _load_manifest(path: str | Path) -> dict:
|
|
58
|
+
p = Path(path)
|
|
59
|
+
if not p.exists():
|
|
60
|
+
print(f"manifest not found: {p}")
|
|
61
|
+
return {}
|
|
62
|
+
try:
|
|
63
|
+
data = yaml.safe_load(p.read_text()) or {}
|
|
64
|
+
except yaml.YAMLError as exc:
|
|
65
|
+
print(f"manifest YAML error: {exc}")
|
|
66
|
+
return {}
|
|
67
|
+
return data if isinstance(data, dict) else {}
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
def cmd_providers(manifest: str, omega_home: str) -> int:
|
|
71
|
+
data = _load_manifest(manifest)
|
|
72
|
+
providers = data.get("providers") or []
|
|
73
|
+
if not providers:
|
|
74
|
+
print("no `providers:` in manifest — skipping")
|
|
75
|
+
return 0
|
|
76
|
+
out_dir = Path(omega_home) / "Agentik_SSOT" / "providers"
|
|
77
|
+
out_dir.mkdir(parents=True, exist_ok=True)
|
|
78
|
+
router: dict = {"providers": []}
|
|
79
|
+
for entry in providers:
|
|
80
|
+
if isinstance(entry, str):
|
|
81
|
+
entry = {"id": entry, "roles": []}
|
|
82
|
+
if not isinstance(entry, dict):
|
|
83
|
+
continue
|
|
84
|
+
pid = (entry.get("id") or "").strip()
|
|
85
|
+
if not pid:
|
|
86
|
+
continue
|
|
87
|
+
roles = entry.get("roles") or []
|
|
88
|
+
if not isinstance(roles, list):
|
|
89
|
+
roles = [str(roles)]
|
|
90
|
+
router["providers"].append({
|
|
91
|
+
"id": pid,
|
|
92
|
+
"roles": [str(r) for r in roles],
|
|
93
|
+
"enabled": bool(entry.get("enabled", True)),
|
|
94
|
+
"secret_ref": entry.get("secret_ref") or f"{pid.upper()}_API_KEY",
|
|
95
|
+
})
|
|
96
|
+
print(f" provider {pid}: roles={roles}")
|
|
97
|
+
target = out_dir / "router.yaml"
|
|
98
|
+
target.write_text(yaml.safe_dump(router, sort_keys=False, default_flow_style=False))
|
|
99
|
+
print(f"wrote {target}")
|
|
100
|
+
return 0
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
def cmd_autonomous(manifest: str, templates_dir: str, target_dir: str) -> int:
|
|
104
|
+
data = _load_manifest(manifest)
|
|
105
|
+
agents = data.get("autonomous_agents") or []
|
|
106
|
+
if not agents:
|
|
107
|
+
print("no `autonomous_agents:` in manifest — skipping")
|
|
108
|
+
return 0
|
|
109
|
+
templates = Path(templates_dir)
|
|
110
|
+
target = Path(target_dir)
|
|
111
|
+
target.mkdir(parents=True, exist_ok=True)
|
|
112
|
+
copied: list[str] = []
|
|
113
|
+
missing: list[str] = []
|
|
114
|
+
skipped: list[str] = []
|
|
115
|
+
for a in agents:
|
|
116
|
+
if isinstance(a, dict):
|
|
117
|
+
aid = (a.get("id") or "").strip()
|
|
118
|
+
else:
|
|
119
|
+
aid = str(a).strip()
|
|
120
|
+
if not aid:
|
|
121
|
+
continue
|
|
122
|
+
src = templates / f"{aid}.yaml"
|
|
123
|
+
dst = target / f"{aid}.yaml"
|
|
124
|
+
if dst.exists():
|
|
125
|
+
skipped.append(aid)
|
|
126
|
+
continue
|
|
127
|
+
if not src.exists():
|
|
128
|
+
missing.append(aid)
|
|
129
|
+
continue
|
|
130
|
+
shutil.copy(src, dst)
|
|
131
|
+
copied.append(aid)
|
|
132
|
+
if copied:
|
|
133
|
+
print(f" registered charters: {copied}")
|
|
134
|
+
if skipped:
|
|
135
|
+
print(f" charters already present (kept): {skipped}")
|
|
136
|
+
if missing:
|
|
137
|
+
print(
|
|
138
|
+
f" charters with no template: {missing} — drop a YAML at "
|
|
139
|
+
f"{target}/<id>.yaml to enable"
|
|
140
|
+
)
|
|
141
|
+
return 0
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
def cmd_rag(manifest: str, omega_home: str) -> int:
|
|
145
|
+
data = _load_manifest(manifest)
|
|
146
|
+
rag = (data.get("options") or {}).get("rag") or {}
|
|
147
|
+
if not rag:
|
|
148
|
+
print("no `options.rag` in manifest — skipping")
|
|
149
|
+
return 0
|
|
150
|
+
out_dir = Path(omega_home) / "Agentik_SSOT" / "rag"
|
|
151
|
+
out_dir.mkdir(parents=True, exist_ok=True)
|
|
152
|
+
config = {
|
|
153
|
+
"envelope": rag.get("envelope", "corrective"),
|
|
154
|
+
"strategies": rag.get("strategies", ["hybrid"]),
|
|
155
|
+
}
|
|
156
|
+
target = out_dir / "config.yaml"
|
|
157
|
+
target.write_text(yaml.safe_dump(config, sort_keys=False, default_flow_style=False))
|
|
158
|
+
print(f"wrote {target}: {config}")
|
|
159
|
+
return 0
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
def cmd_init_vault(omega_home: str) -> int:
|
|
163
|
+
home = Path(omega_home)
|
|
164
|
+
_engine_on_path(home)
|
|
165
|
+
try:
|
|
166
|
+
from omega_engine.vault import vault_init # type: ignore
|
|
167
|
+
except ImportError as exc:
|
|
168
|
+
print(f"vault module unavailable yet (step 30 may not have run): {exc}")
|
|
169
|
+
return 0
|
|
170
|
+
info = vault_init(home)
|
|
171
|
+
backend = info.get("backend", "unknown")
|
|
172
|
+
if backend == "age":
|
|
173
|
+
print(f" vault backend: age (keypair at {info.get('key_path')})")
|
|
174
|
+
else:
|
|
175
|
+
print(
|
|
176
|
+
" vault backend: plain (chmod 600). Install `age` for encryption — "
|
|
177
|
+
"e.g. `sudo apt-get install age` then re-run."
|
|
178
|
+
)
|
|
179
|
+
if info.get("warning"):
|
|
180
|
+
print(f" warning: {info['warning']}")
|
|
181
|
+
return 0
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
def cmd_accounts(manifest: str, omega_home: str) -> int:
|
|
185
|
+
"""Process the manifest's `accounts:` list — add to pool + write tokens."""
|
|
186
|
+
data = _load_manifest(manifest)
|
|
187
|
+
accounts = data.get("accounts") or []
|
|
188
|
+
if not accounts:
|
|
189
|
+
print("no `accounts:` in manifest — skipping")
|
|
190
|
+
return 0
|
|
191
|
+
home = Path(omega_home)
|
|
192
|
+
_engine_on_path(home)
|
|
193
|
+
try:
|
|
194
|
+
from omega_engine.account import AccountPool, ClaudeAccount, write_token
|
|
195
|
+
except ImportError as exc:
|
|
196
|
+
print(f"engine not importable yet: {exc}")
|
|
197
|
+
return 0
|
|
198
|
+
|
|
199
|
+
pool = AccountPool.load(home)
|
|
200
|
+
n_added = n_with_token = 0
|
|
201
|
+
for entry in accounts:
|
|
202
|
+
if isinstance(entry, str):
|
|
203
|
+
entry = {"id": entry}
|
|
204
|
+
if not isinstance(entry, dict):
|
|
205
|
+
continue
|
|
206
|
+
aid = (entry.get("id") or "").strip()
|
|
207
|
+
if not aid:
|
|
208
|
+
continue
|
|
209
|
+
secret_ref = entry.get("secret_ref") or f"CLAUDE_OAUTH_{aid}"
|
|
210
|
+
token_env = (entry.get("token_env")
|
|
211
|
+
or f"CLAUDE_OAUTH_{aid.replace('-', '_')}")
|
|
212
|
+
token = os.environ.get(token_env)
|
|
213
|
+
if token:
|
|
214
|
+
try:
|
|
215
|
+
write_token(home, secret_ref, token)
|
|
216
|
+
n_with_token += 1
|
|
217
|
+
print(f" account {aid}: token written from ${token_env}")
|
|
218
|
+
except Exception as exc: # noqa: BLE001
|
|
219
|
+
print(f" account {aid}: write_token failed: {exc}")
|
|
220
|
+
else:
|
|
221
|
+
print(
|
|
222
|
+
f" account {aid}: no token in ${token_env} "
|
|
223
|
+
f"(run `omega account login --id {aid}` later)"
|
|
224
|
+
)
|
|
225
|
+
|
|
226
|
+
if pool.get(aid) is None:
|
|
227
|
+
pool.add(ClaudeAccount(
|
|
228
|
+
id=aid,
|
|
229
|
+
label=str(entry.get("label", f"Claude Max ({aid})")),
|
|
230
|
+
secret_ref=secret_ref,
|
|
231
|
+
weight=int(entry.get("weight", 1)),
|
|
232
|
+
status="active" if token else "resting",
|
|
233
|
+
))
|
|
234
|
+
n_added += 1
|
|
235
|
+
else:
|
|
236
|
+
print(f" account {aid}: already in pool — kept")
|
|
237
|
+
pool.save(home)
|
|
238
|
+
print(
|
|
239
|
+
f"pool saved with {len(pool.accounts)} account(s); "
|
|
240
|
+
f"{n_added} added, {n_with_token} with tokens"
|
|
241
|
+
)
|
|
242
|
+
return 0
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
def cmd_first_project(manifest: str, omega_home: str) -> int:
|
|
246
|
+
"""Create the first project listed under `first_project:`."""
|
|
247
|
+
data = _load_manifest(manifest)
|
|
248
|
+
name = ""
|
|
249
|
+
fp = data.get("first_project")
|
|
250
|
+
if isinstance(fp, str):
|
|
251
|
+
name = fp.strip()
|
|
252
|
+
elif isinstance(fp, dict):
|
|
253
|
+
name = str(fp.get("name", "")).strip()
|
|
254
|
+
if not name:
|
|
255
|
+
print("no `first_project:` in manifest — skipping")
|
|
256
|
+
return 0
|
|
257
|
+
|
|
258
|
+
home = Path(omega_home)
|
|
259
|
+
_engine_on_path(home)
|
|
260
|
+
try:
|
|
261
|
+
from omega_engine.project import create_project, load_projects, slugify
|
|
262
|
+
except ImportError as exc:
|
|
263
|
+
print(f"engine not importable yet: {exc}")
|
|
264
|
+
return 0
|
|
265
|
+
|
|
266
|
+
# Set OMEGA_HOME so create_project's default resolves correctly.
|
|
267
|
+
os.environ["OMEGA_HOME"] = str(home)
|
|
268
|
+
|
|
269
|
+
slug = slugify(name)
|
|
270
|
+
existing = load_projects()
|
|
271
|
+
if any(getattr(p, "slug", None) == slug for p in existing):
|
|
272
|
+
print(f"project '{name}' (slug={slug}) already exists — skipping")
|
|
273
|
+
return 0
|
|
274
|
+
|
|
275
|
+
telegram = None
|
|
276
|
+
try:
|
|
277
|
+
from omega_engine.telegram import TelegramBridge
|
|
278
|
+
telegram = TelegramBridge.from_vault()
|
|
279
|
+
except Exception as exc: # noqa: BLE001
|
|
280
|
+
print(f" (no Telegram topic — {exc})")
|
|
281
|
+
|
|
282
|
+
try:
|
|
283
|
+
project = create_project(name, telegram=telegram)
|
|
284
|
+
except Exception as exc: # noqa: BLE001
|
|
285
|
+
print(f" project creation failed: {exc}")
|
|
286
|
+
return 0
|
|
287
|
+
print(f"created project '{project.name}' (slug={project.slug}) at {project.path}")
|
|
288
|
+
topic = getattr(project, "topic_id", None)
|
|
289
|
+
if topic:
|
|
290
|
+
print(f" telegram topic: {topic}")
|
|
291
|
+
return 0
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
def cmd_encrypt_mcp_env(omega_home: str, mcp_id: str) -> int:
|
|
295
|
+
"""Encrypt an mcp-<id>.env file at rest if the vault is age-backed."""
|
|
296
|
+
home = Path(omega_home)
|
|
297
|
+
_engine_on_path(home)
|
|
298
|
+
try:
|
|
299
|
+
from omega_engine.vault import vault_init, vault_write
|
|
300
|
+
except ImportError as exc:
|
|
301
|
+
print(f"vault not available: {exc}")
|
|
302
|
+
return 0
|
|
303
|
+
info = vault_init(home)
|
|
304
|
+
if info.get("backend") != "age":
|
|
305
|
+
# Plain backend keeps the dotenv file at chmod 600.
|
|
306
|
+
return 0
|
|
307
|
+
|
|
308
|
+
secrets_dir = home / "Agentik_Extra" / "etc" / "secrets"
|
|
309
|
+
env_file = secrets_dir / f"mcp-{mcp_id}.env"
|
|
310
|
+
if not env_file.exists():
|
|
311
|
+
return 0
|
|
312
|
+
content = env_file.read_text()
|
|
313
|
+
has_value = any(
|
|
314
|
+
"=" in ln.strip() and not ln.strip().startswith("#")
|
|
315
|
+
for ln in content.splitlines()
|
|
316
|
+
)
|
|
317
|
+
if not has_value:
|
|
318
|
+
# Just a placeholder header — leave it on disk; no value to encrypt.
|
|
319
|
+
return 0
|
|
320
|
+
try:
|
|
321
|
+
vault_write(home, f"mcp_{mcp_id}_ENV", content)
|
|
322
|
+
except Exception as exc: # noqa: BLE001
|
|
323
|
+
print(f"encrypt mcp-{mcp_id}.env failed: {exc}")
|
|
324
|
+
return 0
|
|
325
|
+
try:
|
|
326
|
+
env_file.unlink()
|
|
327
|
+
except OSError:
|
|
328
|
+
pass
|
|
329
|
+
print(f"encrypted mcp-{mcp_id}.env → vault (mcp_{mcp_id}_ENV.age)")
|
|
330
|
+
return 0
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
def cmd_telegram_chat_id(manifest: str, omega_home: str) -> int:
|
|
334
|
+
"""Persist ``telegram.group_chat_id`` from the manifest into the vault."""
|
|
335
|
+
data = _load_manifest(manifest)
|
|
336
|
+
tg = data.get("telegram") or {}
|
|
337
|
+
chat_id = str(tg.get("group_chat_id") or "").strip()
|
|
338
|
+
if not chat_id:
|
|
339
|
+
print("no `telegram.group_chat_id` in manifest — skipping")
|
|
340
|
+
return 0
|
|
341
|
+
home = Path(omega_home)
|
|
342
|
+
_engine_on_path(home)
|
|
343
|
+
try:
|
|
344
|
+
from omega_engine.vault import vault_write
|
|
345
|
+
except ImportError as exc:
|
|
346
|
+
print(f"vault not available: {exc}")
|
|
347
|
+
return 0
|
|
348
|
+
try:
|
|
349
|
+
vault_write(home, "TELEGRAM_GROUP_ID", chat_id)
|
|
350
|
+
except Exception as exc: # noqa: BLE001
|
|
351
|
+
print(f"could not persist chat id: {exc}")
|
|
352
|
+
return 0
|
|
353
|
+
print(f"Telegram group_chat_id stored in vault: {chat_id}")
|
|
354
|
+
return 0
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
def main(argv: list[str]) -> int:
|
|
358
|
+
if len(argv) < 2:
|
|
359
|
+
print("usage: manifest-helpers.py <providers|autonomous|rag|init-vault> ...")
|
|
360
|
+
return 2
|
|
361
|
+
cmd = argv[1]
|
|
362
|
+
rest = argv[2:]
|
|
363
|
+
if cmd == "providers" and len(rest) == 2:
|
|
364
|
+
return cmd_providers(*rest)
|
|
365
|
+
if cmd == "autonomous" and len(rest) == 3:
|
|
366
|
+
return cmd_autonomous(*rest)
|
|
367
|
+
if cmd == "rag" and len(rest) == 2:
|
|
368
|
+
return cmd_rag(*rest)
|
|
369
|
+
if cmd == "init-vault" and len(rest) == 1:
|
|
370
|
+
return cmd_init_vault(*rest)
|
|
371
|
+
if cmd == "accounts" and len(rest) == 2:
|
|
372
|
+
return cmd_accounts(*rest)
|
|
373
|
+
if cmd == "first-project" and len(rest) == 2:
|
|
374
|
+
return cmd_first_project(*rest)
|
|
375
|
+
if cmd == "encrypt-mcp-env" and len(rest) == 2:
|
|
376
|
+
return cmd_encrypt_mcp_env(*rest)
|
|
377
|
+
if cmd == "telegram-chat-id" and len(rest) == 2:
|
|
378
|
+
return cmd_telegram_chat_id(*rest)
|
|
379
|
+
print(f"bad invocation: {argv}")
|
|
380
|
+
return 2
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
if __name__ == "__main__":
|
|
384
|
+
sys.exit(main(sys.argv))
|