nexo-brain 7.30.22 → 7.30.23

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexo-brain",
3
- "version": "7.30.22",
3
+ "version": "7.30.23",
4
4
  "description": "Local cognitive runtime for Claude Code \u2014 persistent memory, overnight learning, doctor diagnostics, personal scripts, recovery-aware jobs, startup preflight, and optional dashboard/power helper.",
5
5
  "author": {
6
6
  "name": "NEXO Brain",
package/README.md CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
  [Watch the overview video](https://nexo-brain.com/watch/) · [Watch on YouTube](https://www.youtube.com/watch?v=i2lkGhKyVqI) · [Open the infographic](https://nexo-brain.com/assets/nexo-brain-infographic-v5.png)
20
20
 
21
- Version `7.30.22` is the current packaged-runtime line. Patch release over v7.30.21 - Brain now ships managed default MCP catalog/lock reconciliation and the Operational Closure Plane, with Desktop v0.43.14 consuming the coordinated runtime contract.
21
+ Version `7.30.23` is the current packaged-runtime line. Patch release over v7.30.22 - Brain now ships Opportunity Orchestrator Phase 1 for evidence-backed proactive preparation, read-only dry-run reports, bounded proposal queues, and feedback/suppression controls.
22
22
 
23
23
  Previously in `7.30.20`: patch release over v7.30.19 - packaged installs now copy the `product_knowledge` package into the installed runtime so `nexo update` can import the new product knowledge tools.
24
24
 
@@ -26,6 +26,8 @@ Previously in `7.30.19`: patch release over v7.30.18 - product capabilities now
26
26
 
27
27
  Previously in `7.30.16`: patch release over v7.30.14 - Desktop diagnostics can read embedding migration status without warming models, and the coordinated Desktop update path is covered for bundled model verification and obsolete managed model cleanup.
28
28
 
29
+ Previously in `7.30.15`: patch release over v7.30.14 - Email NEXO closes affirmative actionable replies correctly and avoids reopening processed threads after a sent reply is already recorded.
30
+
29
31
  Previously in `7.30.14`: patch release over v7.30.13 - support tickets, provider capability discovery, task-close rearming, internal audit followups, and the memory-observation watchdog are aligned for Desktop-managed agents.
30
32
 
31
33
  Previously in `7.30.13`: patch release over v7.30.12 - Email NEXO monitor prompts now require a full IMAP body fetch before replying, and managed email defaults use the MXroute `Sent` folder instead of `INBOX.Sent`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexo-brain",
3
- "version": "7.30.22",
3
+ "version": "7.30.23",
4
4
  "mcpName": "io.github.wazionapps/nexo",
5
5
  "description": "NEXO Brain — Shared brain for AI agents. Persistent memory, semantic RAG, natural forgetting, metacognitive guard, trust scoring, 150+ MCP tools. Works with Claude Code, Codex, Claude Desktop & any MCP client. 100% local, free.",
6
6
  "homepage": "https://nexo-brain.com",
package/src/db/_schema.py CHANGED
@@ -2903,6 +2903,166 @@ def _m79_operational_closure_links_readiness(conn):
2903
2903
  _migrate_add_index(conn, "idx_closure_readiness_capability", "closure_capability_readiness", "capability, status")
2904
2904
 
2905
2905
 
2906
+ def _m80_opportunity_orchestrator(conn):
2907
+ """Opportunity Orchestrator v1: sparse, evidence-backed proactive queue."""
2908
+ conn.execute(
2909
+ """
2910
+ CREATE TABLE IF NOT EXISTS nexo_signals (
2911
+ id TEXT PRIMARY KEY,
2912
+ source_type TEXT NOT NULL,
2913
+ source_id TEXT NOT NULL DEFAULT '',
2914
+ entity_ref TEXT NOT NULL DEFAULT '',
2915
+ summary TEXT NOT NULL DEFAULT '',
2916
+ signal_kind TEXT NOT NULL,
2917
+ urgency REAL NOT NULL DEFAULT 0,
2918
+ confidence REAL NOT NULL DEFAULT 0,
2919
+ privacy_level TEXT NOT NULL DEFAULT 'normal',
2920
+ source_hash TEXT NOT NULL,
2921
+ created_at TEXT NOT NULL DEFAULT (datetime('now')),
2922
+ expires_at TEXT NOT NULL DEFAULT '',
2923
+ UNIQUE(source_type, source_id, signal_kind)
2924
+ )
2925
+ """
2926
+ )
2927
+ conn.execute(
2928
+ """
2929
+ CREATE TABLE IF NOT EXISTS nexo_opportunities (
2930
+ id TEXT PRIMARY KEY,
2931
+ title TEXT NOT NULL,
2932
+ hypothesis TEXT NOT NULL DEFAULT '',
2933
+ domain TEXT NOT NULL DEFAULT 'general',
2934
+ opportunity_type TEXT NOT NULL,
2935
+ dedupe_key TEXT NOT NULL,
2936
+ impact REAL NOT NULL DEFAULT 0,
2937
+ urgency REAL NOT NULL DEFAULT 0,
2938
+ confidence REAL NOT NULL DEFAULT 0,
2939
+ risk REAL NOT NULL DEFAULT 0,
2940
+ effort REAL NOT NULL DEFAULT 0,
2941
+ readiness REAL NOT NULL DEFAULT 0,
2942
+ user_burden_reduction REAL NOT NULL DEFAULT 0,
2943
+ interruption_cost REAL NOT NULL DEFAULT 0,
2944
+ strategic_alignment REAL NOT NULL DEFAULT 0,
2945
+ repetition_penalty REAL NOT NULL DEFAULT 0,
2946
+ score REAL NOT NULL DEFAULT 0,
2947
+ state TEXT NOT NULL DEFAULT 'candidate',
2948
+ owner TEXT NOT NULL DEFAULT 'nero',
2949
+ why_now TEXT NOT NULL DEFAULT '',
2950
+ next_action TEXT NOT NULL DEFAULT '',
2951
+ action_class TEXT NOT NULL DEFAULT 'read_only',
2952
+ authorization_status TEXT NOT NULL DEFAULT 'not_required',
2953
+ created_at TEXT NOT NULL DEFAULT (datetime('now')),
2954
+ updated_at TEXT NOT NULL DEFAULT (datetime('now')),
2955
+ expires_at TEXT NOT NULL DEFAULT '',
2956
+ last_proposed_at TEXT NOT NULL DEFAULT '',
2957
+ source_payload_json TEXT NOT NULL DEFAULT '{}',
2958
+ UNIQUE(dedupe_key)
2959
+ )
2960
+ """
2961
+ )
2962
+ conn.execute(
2963
+ """
2964
+ CREATE TABLE IF NOT EXISTS nexo_opportunity_evidence (
2965
+ id TEXT PRIMARY KEY,
2966
+ opportunity_id TEXT NOT NULL,
2967
+ source_type TEXT NOT NULL,
2968
+ source_id TEXT NOT NULL,
2969
+ evidence_summary TEXT NOT NULL DEFAULT '',
2970
+ confidence REAL NOT NULL DEFAULT 0,
2971
+ created_at TEXT NOT NULL DEFAULT (datetime('now')),
2972
+ FOREIGN KEY(opportunity_id) REFERENCES nexo_opportunities(id) ON DELETE CASCADE,
2973
+ UNIQUE(opportunity_id, source_type, source_id)
2974
+ )
2975
+ """
2976
+ )
2977
+ conn.execute(
2978
+ """
2979
+ CREATE TABLE IF NOT EXISTS nexo_preparations (
2980
+ id TEXT PRIMARY KEY,
2981
+ opportunity_id TEXT NOT NULL,
2982
+ artifact_type TEXT NOT NULL,
2983
+ artifact_ref TEXT NOT NULL DEFAULT '',
2984
+ safe_mode INTEGER NOT NULL DEFAULT 1,
2985
+ approval_required INTEGER NOT NULL DEFAULT 0,
2986
+ status TEXT NOT NULL DEFAULT 'ready',
2987
+ created_at TEXT NOT NULL DEFAULT (datetime('now')),
2988
+ expires_at TEXT NOT NULL DEFAULT '',
2989
+ FOREIGN KEY(opportunity_id) REFERENCES nexo_opportunities(id) ON DELETE CASCADE,
2990
+ UNIQUE(opportunity_id, artifact_type, artifact_ref)
2991
+ )
2992
+ """
2993
+ )
2994
+ conn.execute(
2995
+ """
2996
+ CREATE TABLE IF NOT EXISTS nexo_proposals (
2997
+ id TEXT PRIMARY KEY,
2998
+ opportunity_id TEXT NOT NULL,
2999
+ surface TEXT NOT NULL DEFAULT 'home',
3000
+ copy TEXT NOT NULL DEFAULT '',
3001
+ cta_primary TEXT NOT NULL DEFAULT 'Inspect evidence',
3002
+ cta_secondary TEXT NOT NULL DEFAULT 'Snooze',
3003
+ shown_at TEXT NOT NULL DEFAULT '',
3004
+ feedback TEXT NOT NULL DEFAULT '',
3005
+ created_at TEXT NOT NULL DEFAULT (datetime('now')),
3006
+ FOREIGN KEY(opportunity_id) REFERENCES nexo_opportunities(id) ON DELETE CASCADE,
3007
+ UNIQUE(opportunity_id, surface)
3008
+ )
3009
+ """
3010
+ )
3011
+ conn.execute(
3012
+ """
3013
+ CREATE TABLE IF NOT EXISTS nexo_proposal_events (
3014
+ id TEXT PRIMARY KEY,
3015
+ proposal_id TEXT NOT NULL,
3016
+ event_type TEXT NOT NULL,
3017
+ feedback TEXT NOT NULL DEFAULT '',
3018
+ note TEXT NOT NULL DEFAULT '',
3019
+ metadata_json TEXT NOT NULL DEFAULT '{}',
3020
+ created_at TEXT NOT NULL DEFAULT (datetime('now')),
3021
+ FOREIGN KEY(proposal_id) REFERENCES nexo_proposals(id) ON DELETE CASCADE
3022
+ )
3023
+ """
3024
+ )
3025
+ conn.execute(
3026
+ """
3027
+ CREATE TABLE IF NOT EXISTS nexo_suppression_rules (
3028
+ id TEXT PRIMARY KEY,
3029
+ scope_type TEXT NOT NULL,
3030
+ scope_key TEXT NOT NULL,
3031
+ reason TEXT NOT NULL DEFAULT '',
3032
+ expires_at TEXT NOT NULL DEFAULT '',
3033
+ created_at TEXT NOT NULL DEFAULT (datetime('now')),
3034
+ UNIQUE(scope_type, scope_key, reason)
3035
+ )
3036
+ """
3037
+ )
3038
+ conn.execute(
3039
+ """
3040
+ CREATE TABLE IF NOT EXISTS nexo_action_authorizations (
3041
+ id TEXT PRIMARY KEY,
3042
+ scope TEXT NOT NULL,
3043
+ allowed_action_class TEXT NOT NULL,
3044
+ max_cost REAL NOT NULL DEFAULT 0,
3045
+ expires_at TEXT NOT NULL DEFAULT '',
3046
+ granted_by TEXT NOT NULL DEFAULT '',
3047
+ evidence_ref TEXT NOT NULL DEFAULT '',
3048
+ created_at TEXT NOT NULL DEFAULT (datetime('now')),
3049
+ UNIQUE(scope, allowed_action_class, evidence_ref)
3050
+ )
3051
+ """
3052
+ )
3053
+ _migrate_add_index(conn, "idx_nexo_signals_source", "nexo_signals", "source_type, source_id")
3054
+ _migrate_add_index(conn, "idx_nexo_signals_expires", "nexo_signals", "expires_at")
3055
+ _migrate_add_index(conn, "idx_nexo_opportunities_state_score", "nexo_opportunities", "state, score DESC, updated_at")
3056
+ _migrate_add_index(conn, "idx_nexo_opportunities_type", "nexo_opportunities", "opportunity_type, state")
3057
+ _migrate_add_index(conn, "idx_nexo_opportunities_expires", "nexo_opportunities", "expires_at")
3058
+ _migrate_add_index(conn, "idx_nexo_opportunity_evidence_item", "nexo_opportunity_evidence", "opportunity_id")
3059
+ _migrate_add_index(conn, "idx_nexo_preparations_item", "nexo_preparations", "opportunity_id, status")
3060
+ _migrate_add_index(conn, "idx_nexo_proposals_surface", "nexo_proposals", "surface, feedback")
3061
+ _migrate_add_index(conn, "idx_nexo_proposal_events_proposal", "nexo_proposal_events", "proposal_id, created_at")
3062
+ _migrate_add_index(conn, "idx_nexo_suppression_scope", "nexo_suppression_rules", "scope_type, scope_key")
3063
+ _migrate_add_index(conn, "idx_nexo_authorizations_scope", "nexo_action_authorizations", "scope, allowed_action_class")
3064
+
3065
+
2906
3066
  MIGRATIONS = [
2907
3067
  (1, "learnings_columns", _m1_learnings_columns),
2908
3068
  (2, "followups_reasoning", _m2_followups_reasoning),
@@ -2983,6 +3143,7 @@ MIGRATIONS = [
2983
3143
  (77, "morning_briefing_presentation", _m77_morning_briefing_presentation),
2984
3144
  (78, "operational_closure_plane", _m78_operational_closure_plane),
2985
3145
  (79, "operational_closure_links_readiness", _m79_operational_closure_links_readiness),
3146
+ (80, "opportunity_orchestrator", _m80_opportunity_orchestrator),
2986
3147
  ]
2987
3148
 
2988
3149