nexo-brain 2.6.11 → 2.6.12
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/.claude-plugin/plugin.json +1 -1
- package/README.md +19 -11
- package/bin/nexo-brain.js +483 -56
- package/package.json +4 -1
- package/src/agent_runner.py +322 -0
- package/src/auto_update.py +12 -3
- package/src/cli.py +22 -10
- package/src/client_preferences.py +394 -0
- package/src/client_sync.py +78 -0
- package/src/cron_recovery.py +8 -1
- package/src/crons/manifest.json +6 -0
- package/src/crons/sync.py +14 -1
- package/src/doctor/providers/runtime.py +109 -1
- package/src/plugins/update.py +5 -1
- package/src/runtime_power.py +23 -0
- package/src/scripts/check-context.py +102 -100
- package/src/scripts/deep-sleep/extract.py +29 -54
- package/src/scripts/deep-sleep/synthesize.py +14 -38
- package/src/scripts/nexo-agent-run.py +73 -0
- package/src/scripts/nexo-catchup.py +15 -19
- package/src/scripts/nexo-daily-self-audit.py +17 -14
- package/src/scripts/nexo-evolution-run.py +25 -55
- package/src/scripts/nexo-immune.py +17 -15
- package/src/scripts/nexo-learning-validator.py +90 -58
- package/src/scripts/nexo-postmortem-consolidator.py +15 -14
- package/src/scripts/nexo-sleep.py +20 -14
- package/src/scripts/nexo-synthesis.py +19 -12
- package/src/scripts/nexo-update.sh +28 -2
- package/src/scripts/nexo-watchdog.sh +34 -10
- package/templates/nexo_helper.py +45 -0
- package/templates/plugin-template.py +4 -0
- package/templates/script-template.py +13 -2
- package/templates/skill-script-template.py +8 -0
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
This template demonstrates:
|
|
14
14
|
- Inline metadata for auto-discovery
|
|
15
15
|
- Safe CLI calls through nexo_helper
|
|
16
|
+
- Optional agent calls through the configured automation backend
|
|
16
17
|
- Timeout handling (via metadata)
|
|
17
18
|
- argparse for user arguments
|
|
18
19
|
- No direct DB access
|
|
@@ -25,11 +26,21 @@ import sys
|
|
|
25
26
|
# nexo_helper.py is in NEXO_HOME/templates/ — copy it next to your script
|
|
26
27
|
# or add the templates dir to your path
|
|
27
28
|
try:
|
|
28
|
-
from nexo_helper import call_tool_text
|
|
29
|
+
from nexo_helper import call_tool_text, run_automation_text
|
|
29
30
|
except ImportError:
|
|
30
31
|
import os
|
|
31
32
|
sys.path.insert(0, os.path.join(os.environ.get("NEXO_HOME", "~/.nexo"), "templates"))
|
|
32
|
-
from nexo_helper import call_tool_text
|
|
33
|
+
from nexo_helper import call_tool_text, run_automation_text
|
|
34
|
+
|
|
35
|
+
# If this script ever needs an autonomous model call:
|
|
36
|
+
# 1. use run_automation_text(...)
|
|
37
|
+
# 2. pass a legacy task profile like model="opus" when useful
|
|
38
|
+
# 3. DO NOT hardcode `claude -p` or provider-specific model defaults
|
|
39
|
+
# Example:
|
|
40
|
+
# result = run_automation_text(
|
|
41
|
+
# "Summarize pending issues",
|
|
42
|
+
# model="opus", # legacy task profile; NEXO maps it per backend
|
|
43
|
+
# )
|
|
33
44
|
|
|
34
45
|
|
|
35
46
|
def main():
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
This script is meant to be referenced by a Skill v2 definition.
|
|
5
5
|
It should use the stable NEXO CLI rather than importing internal DB modules.
|
|
6
|
+
If it needs an agentic model call, route it through NEXO's configured
|
|
7
|
+
automation backend instead of hardcoding `claude -p` or a provider model.
|
|
6
8
|
"""
|
|
7
9
|
|
|
8
10
|
import argparse
|
|
@@ -35,5 +37,11 @@ def main() -> int:
|
|
|
35
37
|
return result.returncode
|
|
36
38
|
|
|
37
39
|
|
|
40
|
+
# Agentic example for future edits:
|
|
41
|
+
# from nexo_helper import run_automation_text
|
|
42
|
+
# result = run_automation_text("Analyze this", model="opus")
|
|
43
|
+
# print(result)
|
|
44
|
+
|
|
45
|
+
|
|
38
46
|
if __name__ == "__main__":
|
|
39
47
|
raise SystemExit(main())
|