@openlife/cli 1.7.5 → 1.7.7
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/dist/cli/InstallModules.js +37 -0
- package/dist/cli/InstallWizard.js +46 -8
- package/dist/cli/LogsCommand.js +181 -0
- package/dist/cli/StatusCommand.js +217 -0
- package/dist/index.js +55 -0
- package/dist/test_install_wizard.js +112 -21
- package/dist/test_logs_command.js +177 -0
- package/dist/test_status_command.js +218 -0
- package/docs/getting-started.md +137 -0
- package/package.json +5 -2
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
# Getting Started
|
|
2
|
+
|
|
3
|
+
A 5-minute walkthrough to get OpenLife CLI running on your machine.
|
|
4
|
+
|
|
5
|
+
## 1. Install globally
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g @openlife/cli
|
|
9
|
+
openlife --version
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
You should see the current version (matching the npm tag).
|
|
13
|
+
|
|
14
|
+
## 2. Run the wizard
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
openlife init
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
The wizard prints the OpenLife banner, then walks you through:
|
|
21
|
+
|
|
22
|
+
1. **Profile** — choose `framework` (CLI only), `autonomous` (daemon),
|
|
23
|
+
or `both`. `both` installs the autonomous profile, which includes
|
|
24
|
+
the framework layer.
|
|
25
|
+
2. **Host** — `claude-code`, `gemini-cli`, or `codex`. Auto-detected
|
|
26
|
+
when you launch `openlife init` from inside one of these CLIs.
|
|
27
|
+
3. **API keys** — paste your `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`,
|
|
28
|
+
`GEMINI_API_KEY`, and/or `OPENROUTER_API_KEY`. Press Enter to skip
|
|
29
|
+
any one. Keys are saved to `.env` in the project directory.
|
|
30
|
+
4. **OAuth pointer** — answer `y` if you plan to use `openlife auth
|
|
31
|
+
gemini` or `openlife auth openai` later. The wizard does not start
|
|
32
|
+
the OAuth flow itself; it just reminds you to run those commands
|
|
33
|
+
after init completes.
|
|
34
|
+
5. **Model chain** — comma-separated `provider/model` list, e.g.
|
|
35
|
+
`openai-api/gpt-5.4-mini,anthropic-api/claude-sonnet-4-6`. Leave
|
|
36
|
+
blank to accept the defaults from `models.json`.
|
|
37
|
+
6. **Telegram** (autonomous only) — confirm whether `TELEGRAM_BOT_TOKEN`
|
|
38
|
+
and `OPENLIFE_TELEGRAM_ALLOWED_USER_ID` are already in `.env`.
|
|
39
|
+
7. **Doctor** — answer `n` to run system diagnostics after install.
|
|
40
|
+
8. **Confirm** — review the summary and answer `Y` to proceed.
|
|
41
|
+
|
|
42
|
+
When the wizard finishes you should see:
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
✅ OpenLife ready.
|
|
46
|
+
|
|
47
|
+
Try:
|
|
48
|
+
openlife ask "hello, what can you do?"
|
|
49
|
+
openlife status
|
|
50
|
+
openlife --help
|
|
51
|
+
|
|
52
|
+
Docs: https://github.com/GOOODZ/openlife-core
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## 3. Try your first command
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
openlife ask "summarize this README in one sentence"
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
OpenLife will route the request to the highest-priority model in your
|
|
62
|
+
chain that has a working key. If no API key is configured, it falls
|
|
63
|
+
back to local Ollama (if available) or returns an error.
|
|
64
|
+
|
|
65
|
+
## 4. Common follow-ups
|
|
66
|
+
|
|
67
|
+
- **Set up OAuth (no API key needed):**
|
|
68
|
+
```bash
|
|
69
|
+
openlife auth gemini # browser-based Google login
|
|
70
|
+
openlife auth openai # browser-based OpenAI login
|
|
71
|
+
```
|
|
72
|
+
- **Start the autonomous daemon (autonomous profile):**
|
|
73
|
+
```bash
|
|
74
|
+
openlife start --daemon
|
|
75
|
+
```
|
|
76
|
+
- **Inspect runtime state:**
|
|
77
|
+
```bash
|
|
78
|
+
ls .openlife/
|
|
79
|
+
cat .openlife/heartbeat.json
|
|
80
|
+
cat .openlife/install-manifest.json
|
|
81
|
+
```
|
|
82
|
+
- **Update to latest version:**
|
|
83
|
+
```bash
|
|
84
|
+
npm install -g @openlife/cli@latest
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Troubleshooting
|
|
88
|
+
|
|
89
|
+
### `openlife: command not found` after install
|
|
90
|
+
|
|
91
|
+
The global npm bin directory is probably not on your `PATH`. Run:
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
npm bin -g
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Add that path to your shell profile (`~/.bashrc`, `~/.zshrc`).
|
|
98
|
+
|
|
99
|
+
### `npm install -g` says EEXIST
|
|
100
|
+
|
|
101
|
+
You have a leftover symlink from a previous `npm link`. Run:
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
npm unlink -g @openlife/cli
|
|
105
|
+
rm -f $(which openlife)
|
|
106
|
+
npm install -g @openlife/cli
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### `openlife ask` fails with `MODEL_TIMEOUT` or `no provider available`
|
|
110
|
+
|
|
111
|
+
No API key is configured and no fallback (Ollama, OAuth) is wired up.
|
|
112
|
+
Either:
|
|
113
|
+
|
|
114
|
+
- Edit `.env` to add `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, or
|
|
115
|
+
`GEMINI_API_KEY`, then retry, or
|
|
116
|
+
- Run `openlife auth gemini` / `openlife auth openai` to use OAuth, or
|
|
117
|
+
- Start a local Ollama server (`ollama serve`) and set
|
|
118
|
+
`OPENLIFE_ENABLE_OLLAMA=true` in `.env`.
|
|
119
|
+
|
|
120
|
+
### Telegram autonomous mode reports `TELEGRAM_NOT_CONFIGURED`
|
|
121
|
+
|
|
122
|
+
Set both in `.env`:
|
|
123
|
+
|
|
124
|
+
```
|
|
125
|
+
TELEGRAM_BOT_TOKEN=<from BotFather>
|
|
126
|
+
OPENLIFE_TELEGRAM_ALLOWED_USER_ID=<your Telegram user id>
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
Then restart with `openlife start --daemon`.
|
|
130
|
+
|
|
131
|
+
## Where to go next
|
|
132
|
+
|
|
133
|
+
- [INSTALL.md](../INSTALL.md) — full install options including
|
|
134
|
+
non-interactive (`openlife system setup`) for CI use.
|
|
135
|
+
- [README.md](../README.md) — feature overview and architecture.
|
|
136
|
+
- [CHANGELOG.md](../CHANGELOG.md) — what changed across versions.
|
|
137
|
+
- [CONTRIBUTING.md](../CONTRIBUTING.md) — dev setup and conventions.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openlife/cli",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.7",
|
|
4
4
|
"description": "OPEN-LIFE Córtex Orquestrador Dual-Core",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"dist-templates",
|
|
11
11
|
"docs/README.md",
|
|
12
12
|
"docs/quickstart.md",
|
|
13
|
+
"docs/getting-started.md",
|
|
13
14
|
"docs/workflow-schema.md",
|
|
14
15
|
"docs/toolset-enforcement.md",
|
|
15
16
|
"docs/release-process.md",
|
|
@@ -155,8 +156,10 @@
|
|
|
155
156
|
"test:doctor-sandbox-check": "npm run build && node dist/test_doctor_sandbox_check.js",
|
|
156
157
|
"test:task-executor-sandbox-optin": "npm run build && node dist/test_task_executor_sandbox_optin.js",
|
|
157
158
|
"test:forecast-brain-wiring": "npm run build && node dist/test_forecast_brain_wiring.js",
|
|
159
|
+
"test:status-command": "npm run build && node dist/test_status_command.js",
|
|
160
|
+
"test:logs-command": "npm run build && node dist/test_logs_command.js",
|
|
158
161
|
"pretest:all": "node scripts/clean-test-pollution.js",
|
|
159
|
-
"test:all": "npm run build && node dist/test_distribution_installability.js && node dist/test_orchestration_assets_lifecycle.js && node dist/test_openlife_runtime_source_truth.js && node dist/test_openlife_evolution_surface.js && node dist/test_openlife_routing_surface.js && node dist/test_openlife_auto_creator_routing.js && node dist/test_openlife_gatekeeper_routing.js && node dist/test_enterprise_agentic_core.js && node dist/test_admin_teams_networks.js && node dist/test_agent_team_skill_network.js && node dist/test_benchmark_engine.js && node dist/test_cli_service_commands.js && node dist/test_consequence_forecaster.js && node dist/test_conversation_memory.js && node dist/test_create_entities.js && node dist/test_designmd_import_registry.js && node dist/test_designmd_mode.js && node dist/test_designmd_mode_workspace.js && node dist/test_dream_organizer.js && node dist/test_dual_mode.js && node dist/test_governance.js && node dist/test_governance_advanced.js && node dist/test_install_flow.js && node dist/test_job_lifecycle.js && node dist/test_memory_orchestrator.js && node dist/test_memory_promotion.js && node dist/test_memory_retention.js && node dist/test_operating_system.js && node dist/test_optimization_loop.js && node dist/test_outcome_simulator.js && node dist/test_performance_scorecard.js && node dist/test_phase6_board.js && node dist/test_phase6_cadence.js && node dist/test_phase6_ops.js && node dist/test_release_gate.js && node dist/test_reversa_contracts_e2e.js && node dist/test_reversa_export_and_strict.js && node dist/test_reversa_full_execution.js && node dist/test_reversa_lite.js && node dist/test_runtime_policy.js && node dist/test_runtime_probe.js && node dist/test_runtime_registry.js && node dist/test_security_download_guard.js && node dist/test_service_command_surface.js && node dist/test_service_completion_policy.js && node dist/test_service_guardrails_delete.js && node dist/test_sources_import_ref.js && node dist/test_sources_scaffold.js && node dist/test_teammate_learning.js && node dist/test_telegram_delete_guardrail.js && node dist/test_daemon_sigterm.js && node dist/test_ask_exit.js && node dist/test_brain_error_diagnostics.js && node dist/test_cli_doc_parity.js && node dist/test_trigger_basic_auth.js && node dist/test_brain_fallback_chain.js && node dist/test_cli_help_surface.js && node dist/test_cli_diagnostics.js && node dist/test_cli_crud_roundtrip.js && node dist/test_subsystems_routing_governance.js && node dist/test_subsystems_org_state.js && node dist/test_subsystems_promotion_memory_assets.js && node dist/test_phase1_check_exit.js && node dist/test_install_flow_host_validation.js && node dist/test_dist_templates_layout.js && node dist/test_host_installer.js && node dist/test_host_uninstaller.js && node dist/test_install_wizard.js && node dist/test_multi_host_docs_parity.js && node dist/test_host_install_e2e.js && node dist/test_runtime_profile_oauth_only.js && node dist/test_atomic_writer.js && node dist/test_mission_checkpoint.js && node dist/test_workflow_parser.js && node dist/test_workflow_engine.js && node dist/test_workflow_e2e.js && node dist/test_distributed_lock.js && node dist/test_watchdog_heartbeat.js && node dist/test_runtime_health_backoff.js && node dist/test_queue_scheduler.js && node dist/test_squad_skill_creator.js && node dist/test_aiobuilder_cli_parity.js && node dist/test_catalog_quality.js && node dist/test_royal_stack_golden.js && node dist/test_capability_pack_schema.js && node dist/test_capability_genesis_engine.js && node dist/test_workflow_schema_backward_compat.js && node dist/test_service_mode_explicit_only.js && node dist/test_deep_research_capability.js && node dist/test_guided_creator_cli.js && node dist/test_governance_v13_policies.js && node dist/test_gateway_telegram_guardrails.js && node dist/test_cron_manager.js && node dist/test_profile_toolset_mcp.js && node dist/test_squad_skill_design_llm.js && node dist/test_workflow_condition_parser.js && node dist/test_security_download_and_scan.js && node dist/test_host_installers_gemini_codex.js && node dist/test_toolset_enforcement.js && node dist/test_creator_placeholders_completed.js && node dist/test_performance_latency.js && node dist/test_post_mission_evaluation.js && node dist/test_governance_scope_ledger.js && node dist/test_consequence_forecast_brain.js && node dist/test_remote_publish.js && node dist/test_process_sandbox.js && node dist/test_v15_e2e_integration.js && node dist/test_doctor_sandbox_check.js && node dist/test_task_executor_sandbox_optin.js && node dist/test_forecast_brain_wiring.js",
|
|
162
|
+
"test:all": "npm run build && node dist/test_distribution_installability.js && node dist/test_orchestration_assets_lifecycle.js && node dist/test_openlife_runtime_source_truth.js && node dist/test_openlife_evolution_surface.js && node dist/test_openlife_routing_surface.js && node dist/test_openlife_auto_creator_routing.js && node dist/test_openlife_gatekeeper_routing.js && node dist/test_enterprise_agentic_core.js && node dist/test_admin_teams_networks.js && node dist/test_agent_team_skill_network.js && node dist/test_benchmark_engine.js && node dist/test_cli_service_commands.js && node dist/test_consequence_forecaster.js && node dist/test_conversation_memory.js && node dist/test_create_entities.js && node dist/test_designmd_import_registry.js && node dist/test_designmd_mode.js && node dist/test_designmd_mode_workspace.js && node dist/test_dream_organizer.js && node dist/test_dual_mode.js && node dist/test_governance.js && node dist/test_governance_advanced.js && node dist/test_install_flow.js && node dist/test_job_lifecycle.js && node dist/test_memory_orchestrator.js && node dist/test_memory_promotion.js && node dist/test_memory_retention.js && node dist/test_operating_system.js && node dist/test_optimization_loop.js && node dist/test_outcome_simulator.js && node dist/test_performance_scorecard.js && node dist/test_phase6_board.js && node dist/test_phase6_cadence.js && node dist/test_phase6_ops.js && node dist/test_release_gate.js && node dist/test_reversa_contracts_e2e.js && node dist/test_reversa_export_and_strict.js && node dist/test_reversa_full_execution.js && node dist/test_reversa_lite.js && node dist/test_runtime_policy.js && node dist/test_runtime_probe.js && node dist/test_runtime_registry.js && node dist/test_security_download_guard.js && node dist/test_service_command_surface.js && node dist/test_service_completion_policy.js && node dist/test_service_guardrails_delete.js && node dist/test_sources_import_ref.js && node dist/test_sources_scaffold.js && node dist/test_teammate_learning.js && node dist/test_telegram_delete_guardrail.js && node dist/test_daemon_sigterm.js && node dist/test_ask_exit.js && node dist/test_brain_error_diagnostics.js && node dist/test_cli_doc_parity.js && node dist/test_trigger_basic_auth.js && node dist/test_brain_fallback_chain.js && node dist/test_cli_help_surface.js && node dist/test_cli_diagnostics.js && node dist/test_cli_crud_roundtrip.js && node dist/test_subsystems_routing_governance.js && node dist/test_subsystems_org_state.js && node dist/test_subsystems_promotion_memory_assets.js && node dist/test_phase1_check_exit.js && node dist/test_install_flow_host_validation.js && node dist/test_dist_templates_layout.js && node dist/test_host_installer.js && node dist/test_host_uninstaller.js && node dist/test_install_wizard.js && node dist/test_multi_host_docs_parity.js && node dist/test_host_install_e2e.js && node dist/test_runtime_profile_oauth_only.js && node dist/test_atomic_writer.js && node dist/test_mission_checkpoint.js && node dist/test_workflow_parser.js && node dist/test_workflow_engine.js && node dist/test_workflow_e2e.js && node dist/test_distributed_lock.js && node dist/test_watchdog_heartbeat.js && node dist/test_runtime_health_backoff.js && node dist/test_queue_scheduler.js && node dist/test_squad_skill_creator.js && node dist/test_aiobuilder_cli_parity.js && node dist/test_catalog_quality.js && node dist/test_royal_stack_golden.js && node dist/test_capability_pack_schema.js && node dist/test_capability_genesis_engine.js && node dist/test_workflow_schema_backward_compat.js && node dist/test_service_mode_explicit_only.js && node dist/test_deep_research_capability.js && node dist/test_guided_creator_cli.js && node dist/test_governance_v13_policies.js && node dist/test_gateway_telegram_guardrails.js && node dist/test_cron_manager.js && node dist/test_profile_toolset_mcp.js && node dist/test_squad_skill_design_llm.js && node dist/test_workflow_condition_parser.js && node dist/test_security_download_and_scan.js && node dist/test_host_installers_gemini_codex.js && node dist/test_toolset_enforcement.js && node dist/test_creator_placeholders_completed.js && node dist/test_performance_latency.js && node dist/test_post_mission_evaluation.js && node dist/test_governance_scope_ledger.js && node dist/test_consequence_forecast_brain.js && node dist/test_remote_publish.js && node dist/test_process_sandbox.js && node dist/test_v15_e2e_integration.js && node dist/test_doctor_sandbox_check.js && node dist/test_task_executor_sandbox_optin.js && node dist/test_forecast_brain_wiring.js && node dist/test_status_command.js && node dist/test_logs_command.js",
|
|
160
163
|
"prepublishOnly": "npm run test:all"
|
|
161
164
|
},
|
|
162
165
|
"dependencies": {
|