ltcai 6.1.0 → 6.2.0

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.
Files changed (44) hide show
  1. package/README.md +33 -38
  2. package/docs/CHANGELOG.md +33 -1
  3. package/frontend/src/App.tsx +3 -1286
  4. package/frontend/src/components/LanguageSwitcher.tsx +23 -0
  5. package/frontend/src/components/ProductFlow.tsx +32 -669
  6. package/frontend/src/components/onboarding/ProductFlowScreens.tsx +688 -0
  7. package/frontend/src/features/admin/AdminConsole.tsx +294 -0
  8. package/frontend/src/features/brain/BrainHome.tsx +999 -0
  9. package/frontend/src/features/brain/brainData.ts +98 -0
  10. package/frontend/src/features/brain/graphLayout.ts +26 -0
  11. package/frontend/src/features/brain/types.ts +44 -0
  12. package/frontend/src/i18n.ts +198 -0
  13. package/frontend/src/styles.css +220 -0
  14. package/lattice_brain/__init__.py +1 -1
  15. package/lattice_brain/runtime/multi_agent.py +1 -1
  16. package/latticeai/__init__.py +1 -1
  17. package/latticeai/api/tools.py +50 -23
  18. package/latticeai/app_factory.py +36 -45
  19. package/latticeai/cli/entrypoint.py +283 -0
  20. package/latticeai/core/marketplace.py +1 -1
  21. package/latticeai/core/workspace_os.py +1 -1
  22. package/latticeai/integrations/__init__.py +0 -0
  23. package/latticeai/integrations/telegram_bot.py +1009 -0
  24. package/latticeai/runtime/lifespan_runtime.py +1 -1
  25. package/latticeai/runtime/platform_runtime_wiring.py +87 -0
  26. package/latticeai/runtime/router_registration.py +49 -30
  27. package/latticeai/services/p_reinforce.py +258 -0
  28. package/latticeai/services/router_context.py +52 -0
  29. package/ltcai_cli.py +7 -279
  30. package/p_reinforce.py +4 -255
  31. package/package.json +2 -1
  32. package/scripts/release_smoke.py +133 -0
  33. package/scripts/wheel_smoke.py +4 -0
  34. package/src-tauri/Cargo.lock +1 -1
  35. package/src-tauri/Cargo.toml +1 -1
  36. package/src-tauri/tauri.conf.json +1 -1
  37. package/static/app/asset-manifest.json +5 -5
  38. package/static/app/assets/{index-B744yblP.css → index-B2-1Gm0q.css} +1 -1
  39. package/static/app/assets/index-D91Rz5--.js +16 -0
  40. package/static/app/assets/index-D91Rz5--.js.map +1 -0
  41. package/static/app/index.html +2 -2
  42. package/telegram_bot.py +9 -1002
  43. package/static/app/assets/index-DYaUKNfl.js +0 -16
  44. package/static/app/assets/index-DYaUKNfl.js.map +0 -1
package/README.md CHANGED
@@ -69,42 +69,42 @@ You need Lattice AI when:
69
69
  Choose the owner of the Brain. The profile is not a SaaS account by default; it
70
70
  is the local identity for the knowledge you keep.
71
71
 
72
- ![Login](output/release/v6.1.0/screenshots/01-login.png)
72
+ ![Login](output/release/v6.2.0/screenshots/01-login.png)
73
73
 
74
74
  ### 2. Environment Analysis
75
75
 
76
76
  See what kind of local AI experience this computer can support before choosing a
77
77
  model.
78
78
 
79
- ![Environment Analysis](output/release/v6.1.0/screenshots/02-environment-analysis.png)
79
+ ![Environment Analysis](output/release/v6.2.0/screenshots/02-environment-analysis.png)
80
80
 
81
81
  ### 3. Recommended Models
82
82
 
83
83
  Start with a short list: safest recommendation, faster model, stronger model.
84
84
  Advanced details stay available without overwhelming first-time users.
85
85
 
86
- ![Recommended Models](output/release/v6.1.0/screenshots/03-recommended-models.png)
86
+ ![Recommended Models](output/release/v6.2.0/screenshots/03-recommended-models.png)
87
87
 
88
88
  ### 4. Install And Load
89
89
 
90
90
  Download and load only after consent. Lattice explains model size, local
91
91
  execution, and network use before work starts.
92
92
 
93
- ![Install and Load](output/release/v6.1.0/screenshots/04-install-load-progress.png)
93
+ ![Install and Load](output/release/v6.2.0/screenshots/04-install-load-progress.png)
94
94
 
95
95
  ### 5. Brain Chat
96
96
 
97
97
  Talk normally. Useful decisions and context become memory, then appear later as
98
98
  topics, relationships, and graph structure.
99
99
 
100
- ![Brain Chat Home](output/release/v6.1.0/screenshots/05-brain-chat-home.png)
100
+ ![Brain Chat Home](output/release/v6.2.0/screenshots/05-brain-chat-home.png)
101
101
 
102
102
  ### 6. Review Center
103
103
 
104
104
  Automation results are staged for review before they become durable decisions.
105
105
  Snooze, unsnooze, run now, approve, and dismiss actions stay explicit.
106
106
 
107
- ![Review Center](output/release/v6.1.0/screenshots/13-review-center.png)
107
+ ![Review Center](output/release/v6.2.0/screenshots/13-review-center.png)
108
108
 
109
109
  ## Brain Depths
110
110
 
@@ -120,10 +120,10 @@ The user travels inward from everyday memory to deeper structure:
120
120
 
121
121
  Walkthrough:
122
122
 
123
- ![v6.1.0 Living Brain walkthrough](output/release/v6.1.0/gifs/v6.1.0-living-brain-walkthrough.gif)
123
+ ![v6.2.0 Living Brain walkthrough](output/release/v6.2.0/gifs/v6.2.0-living-brain-walkthrough.gif)
124
124
 
125
125
  Screenshot index and capture notes:
126
- [output/release/v6.1.0/SCREENSHOT_INDEX.md](output/release/v6.1.0/SCREENSHOT_INDEX.md)
126
+ [output/release/v6.2.0/SCREENSHOT_INDEX.md](output/release/v6.2.0/SCREENSHOT_INDEX.md)
127
127
 
128
128
  ## Install
129
129
 
@@ -200,36 +200,31 @@ See [docs/DEVELOPMENT.md](docs/DEVELOPMENT.md) for developer workflow details.
200
200
 
201
201
  ## Current Release Preparation
202
202
 
203
- The current development target is **6.1.0 Product Hardening / Digital Brain Completion**:
204
-
205
- - First-run now lets users create or open the local Brain even when they defer
206
- model setup, keeping the Brain durable while models stay replaceable.
207
- - Brain Home explains the first memory loop: save useful context, see it return
208
- in the Brain state, then protect it with backup/export.
209
- - Review Center keeps Pending, Snoozed, and All filters while clarifying that
210
- Run now is a preview/regenerate action, not approval.
211
- - `lattice_brain` has an AST import guard so Brain Core does not import
212
- `latticeai` or `ltcai`.
213
- - Model download consent has a unit guard: token presence alone does not start
214
- an external download path.
215
- - `ltcai_cli.py` keeps the root entrypoint while pure CLI runtime helpers live
216
- under `latticeai.cli.runtime`.
217
- - Tool dispatch authorization now has an injectable service boundary around
218
- the shared ToolRegistry, reducing app-factory reliance on module globals.
219
- - Chat agent runtime construction moved into app-factory assembly and is passed
220
- through `AppContext`, so the chat router no longer owns production runtime
221
- construction.
222
- - v6.1 documentation tracks backend hardening, frontend UX hardening, and the
223
- baseline scan for version metadata, root legacy modules, Brain Core boundary,
224
- and local-first trust gates.
225
-
226
- Expected artifacts for 6.1.0 release must use exact filenames:
227
-
228
- - `dist/ltcai-6.1.0-py3-none-any.whl`
229
- - `dist/ltcai-6.1.0.tar.gz`
230
- - `ltcai-6.1.0.tgz`
231
- - `dist/ltcai-6.1.0.vsix`
232
- - `src-tauri/target/release/bundle/dmg/Lattice AI_6.1.0_aarch64.dmg`
203
+ The current development target is **6.2.0 Product Decomposition / Release Smoke Automation**:
204
+
205
+ - `App.tsx` now delegates the main Brain and Admin surfaces to focused feature
206
+ modules instead of owning the full product shell.
207
+ - `ProductFlow.tsx` is an orchestration layer; onboarding screens live in
208
+ dedicated components, use design-system classes, and avoid inline style
209
+ layout.
210
+ - Model download consent states download size, storage location, external
211
+ target, and a "do later" path before any model fetch starts.
212
+ - Admin Console and onboarding copy use the shared i18n map for Korean/English
213
+ coverage instead of embedding user-facing English in component bodies.
214
+ - Historical root modules now shrink into compatibility shims while runtime
215
+ code lives under package modules.
216
+ - Interaction/tool router assembly uses typed context objects to reduce
217
+ app-factory parameter sprawl while preserving route order.
218
+ - Release smoke automation now checks wheel install, npm tgz contents, static
219
+ assets, and Tauri artifacts after exact-version artifact validation.
220
+
221
+ Expected artifacts for 6.2.0 release must use exact filenames:
222
+
223
+ - `dist/ltcai-6.2.0-py3-none-any.whl`
224
+ - `dist/ltcai-6.2.0.tar.gz`
225
+ - `ltcai-6.2.0.tgz`
226
+ - `dist/ltcai-6.2.0.vsix`
227
+ - `src-tauri/target/release/bundle/dmg/Lattice AI_6.2.0_aarch64.dmg`
233
228
 
234
229
  Do not upload `dist/*`. Package registry publishing remains owner-run.
235
230
 
package/docs/CHANGELOG.md CHANGED
@@ -3,6 +3,38 @@
3
3
  The top entry is the current release-preparation target. Older entries are
4
4
  historical and may describe behavior as it existed at that release.
5
5
 
6
+ ## [6.2.0] - 2026-06-16
7
+
8
+ > Product Decomposition / Release Smoke Automation. Splits the largest product
9
+ > surfaces into feature modules, strengthens consent/i18n coverage, shrinks
10
+ > legacy root modules, and automates release smoke validation.
11
+
12
+ ### Added
13
+ - Feature-owned Brain Home and Admin Console modules behind the existing app
14
+ shell route surface.
15
+ - Onboarding screen components for ProductFlow, backed by design-system CSS
16
+ instead of inline style layout.
17
+ - Model download consent details for size, storage location, external target,
18
+ and a "do later" path.
19
+ - Typed tool and interaction router context objects for app-factory route
20
+ registration without changing route order.
21
+ - `npm run release:smoke` covering wheel install, npm tgz contents, static
22
+ assets, and Tauri artifact checks.
23
+
24
+ ### Changed
25
+ - Historical root modules for CLI, Telegram, and P-Reinforce now delegate to
26
+ package modules while preserving import and script compatibility.
27
+ - Admin Console and onboarding user-facing copy now route through shared i18n
28
+ keys for Korean/English coverage.
29
+ - Package/runtime/static metadata is synchronized to 6.2.0; package publish
30
+ and deployment remain owner-run only.
31
+ - README release evidence screenshots and walkthrough GIF are refreshed under
32
+ `output/release/v6.2.0/`.
33
+
34
+ ### Preserved
35
+ - v6.1 screenshots and validation reports remain historical evidence.
36
+ - Package publish and deploy commands continue to require exact artifact names.
37
+
6
38
  ## [6.1.0] - 2026-06-16
7
39
 
8
40
  > Product Hardening / Digital Brain Completion. Tightens the local-first Brain
@@ -30,7 +62,7 @@ historical and may describe behavior as it existed at that release.
30
62
  production app assembly and is now injected through `AppContext`.
31
63
  - README release evidence screenshots and walkthrough GIF are refreshed under
32
64
  `output/release/v6.1.0/`, including the Review Center surface.
33
- - README and release notes now describe v6.1.0 as the current hardening target
65
+ - README and release notes described v6.1.0 as the then-current hardening target
34
66
  with exact expected artifact filenames.
35
67
 
36
68
  ### Preserved