ltcai 6.1.0 → 6.3.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 (70) hide show
  1. package/README.md +36 -38
  2. package/docs/CHANGELOG.md +75 -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/AnalysisScreen.tsx +127 -0
  7. package/frontend/src/components/onboarding/DownloadConsentPanel.tsx +29 -0
  8. package/frontend/src/components/onboarding/InstallScreen.tsx +208 -0
  9. package/frontend/src/components/onboarding/LanguageChooser.tsx +23 -0
  10. package/frontend/src/components/onboarding/LoginScreen.tsx +131 -0
  11. package/frontend/src/components/onboarding/ProductFlowScreens.tsx +13 -0
  12. package/frontend/src/components/onboarding/RecommendationScreen.tsx +59 -0
  13. package/frontend/src/components/onboarding/recommendationModel.ts +132 -0
  14. package/frontend/src/features/admin/AdminConsole.tsx +294 -0
  15. package/frontend/src/features/brain/BrainCarePanel.tsx +254 -0
  16. package/frontend/src/features/brain/BrainComposer.tsx +66 -0
  17. package/frontend/src/features/brain/BrainConversation.tsx +131 -0
  18. package/frontend/src/features/brain/BrainGraphLayer.tsx +132 -0
  19. package/frontend/src/features/brain/BrainHome.tsx +232 -0
  20. package/frontend/src/features/brain/BrainMemoryLayer.tsx +38 -0
  21. package/frontend/src/features/brain/BrainOverviewPanel.tsx +74 -0
  22. package/frontend/src/features/brain/BrainRelationshipLayer.tsx +43 -0
  23. package/frontend/src/features/brain/DepthEmergence.tsx +53 -0
  24. package/frontend/src/features/brain/brainData.ts +98 -0
  25. package/frontend/src/features/brain/graphLayout.ts +26 -0
  26. package/frontend/src/features/brain/types.ts +44 -0
  27. package/frontend/src/features/review/ReviewCard.tsx +3 -1
  28. package/frontend/src/features/review/ReviewInbox.tsx +11 -1
  29. package/frontend/src/i18n.ts +290 -0
  30. package/frontend/src/pages/Brain.tsx +63 -5
  31. package/frontend/src/pages/Capture.tsx +102 -13
  32. package/frontend/src/pages/Library.tsx +72 -6
  33. package/frontend/src/styles.css +220 -0
  34. package/lattice_brain/__init__.py +1 -1
  35. package/lattice_brain/runtime/multi_agent.py +1 -1
  36. package/latticeai/__init__.py +1 -1
  37. package/latticeai/api/tools.py +50 -23
  38. package/latticeai/app_factory.py +59 -76
  39. package/latticeai/cli/entrypoint.py +283 -0
  40. package/latticeai/core/marketplace.py +1 -1
  41. package/latticeai/core/workspace_os.py +1 -1
  42. package/latticeai/integrations/__init__.py +0 -0
  43. package/latticeai/integrations/telegram_bot.py +1009 -0
  44. package/latticeai/runtime/chat_wiring.py +119 -0
  45. package/latticeai/runtime/lifespan_runtime.py +1 -1
  46. package/latticeai/runtime/model_wiring.py +40 -0
  47. package/latticeai/runtime/platform_runtime_wiring.py +86 -0
  48. package/latticeai/runtime/review_wiring.py +37 -0
  49. package/latticeai/runtime/router_registration.py +49 -30
  50. package/latticeai/runtime/tail_wiring.py +21 -0
  51. package/latticeai/services/p_reinforce.py +258 -0
  52. package/latticeai/services/router_context.py +52 -0
  53. package/ltcai_cli.py +7 -279
  54. package/p_reinforce.py +4 -255
  55. package/package.json +3 -2
  56. package/scripts/check_i18n_literals.mjs +52 -0
  57. package/scripts/release_smoke.py +133 -0
  58. package/scripts/wheel_smoke.py +4 -0
  59. package/src-tauri/Cargo.lock +1 -1
  60. package/src-tauri/Cargo.toml +1 -1
  61. package/src-tauri/tauri.conf.json +1 -1
  62. package/static/app/asset-manifest.json +5 -5
  63. package/static/app/assets/index-D76dWuQk.js +16 -0
  64. package/static/app/assets/index-D76dWuQk.js.map +1 -0
  65. package/static/app/assets/index-Div5vMlq.css +2 -0
  66. package/static/app/index.html +2 -2
  67. package/telegram_bot.py +9 -1002
  68. package/static/app/assets/index-B744yblP.css +0 -2
  69. package/static/app/assets/index-DYaUKNfl.js +0 -16
  70. 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.3.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.3.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.3.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.3.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.3.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.3.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.3.0 Living Brain walkthrough](output/release/v6.3.0/gifs/v6.3.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.3.0/SCREENSHOT_INDEX.md](output/release/v6.3.0/SCREENSHOT_INDEX.md)
127
127
 
128
128
  ## Install
129
129
 
@@ -200,36 +200,34 @@ 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.3.0 Product Hardening Completion**:
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
+ - Brain archive, memory provenance, document ingestion, Review Center Run Now,
221
+ local model runtime, root-shim smoke, and app-factory review wiring now have
222
+ dedicated UX/backend hardening coverage for the 6.3 line.
223
+
224
+ Expected artifacts for 6.3.0 release must use exact filenames:
225
+
226
+ - `dist/ltcai-6.3.0-py3-none-any.whl`
227
+ - `dist/ltcai-6.3.0.tar.gz`
228
+ - `ltcai-6.3.0.tgz`
229
+ - `dist/ltcai-6.3.0.vsix`
230
+ - `src-tauri/target/release/bundle/dmg/Lattice AI_6.3.0_aarch64.dmg`
233
231
 
234
232
  Do not upload `dist/*`. Package registry publishing remains owner-run.
235
233
 
package/docs/CHANGELOG.md CHANGED
@@ -3,6 +3,80 @@
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.3.0] - 2026-06-16
7
+
8
+ > Product Hardening Completion. Completes the 6.2 decomposition follow-up by
9
+ > tightening Brain archive, provenance, ingestion, Review Center, local model
10
+ > runtime, app-factory wiring, compatibility shim, i18n, and release-validation
11
+ > surfaces.
12
+
13
+ ### Changed
14
+ - Brain Home and onboarding screens are split into finer feature-owned modules
15
+ while preserving the existing routes, CSS surface, and visual behavior.
16
+ - Platform and automation runtime wiring moved behind a dedicated app-factory
17
+ seam, keeping construction side-effect free and route order unchanged.
18
+ - Admin, Brain, and onboarding localized aria/placeholder surfaces now use the
19
+ shared i18n map.
20
+ - Brain archive care now validates archive paths, confirms passphrases, gives
21
+ strength guidance, and summarizes inspect/restore-preview results without
22
+ dumping raw JSON.
23
+ - Document capture now exposes a drop/choose ingest queue with progress,
24
+ failure reason, retry, source metadata, and post-ingest Brain/Graph
25
+ confirmation.
26
+ - Brain memory and graph surfaces now show provenance/source type, created time,
27
+ source path/title/conversation fallback, and copy-source affordances.
28
+ - Review Center cards now keep visible action result/error feedback for
29
+ run-now/approve/dismiss/snooze flows while preserving run-now as
30
+ preview/regenerate rather than approval.
31
+ - Local model setup now reports loaded model, engine state, cache/storage path,
32
+ download/load progress, reload/unload controls, and an honest no-model state.
33
+ - App factory model/chat/review-tail wiring moved into focused runtime wiring
34
+ modules while preserving route order.
35
+ - Review Center run-now backend wiring moved into `latticeai.runtime.review_wiring`
36
+ and is covered by scoped runner/status-preservation tests.
37
+ - Legacy root shim import smoke now covers server, knowledge graph, CLI,
38
+ Telegram, and P-Reinforce compatibility paths.
39
+ - Package/runtime/static metadata is synchronized to 6.3.0; package publish and
40
+ deployment remain owner-run only.
41
+
42
+ ### Added
43
+ - Frontend i18n literal check for localized aria/placeholder props in Brain,
44
+ Admin, and onboarding TSX surfaces.
45
+ - Focused runtime wiring modules for model runtime, chat/interaction contexts,
46
+ and review/Brain tail registration.
47
+
48
+ ## [6.2.0] - 2026-06-16
49
+
50
+ > Product Decomposition / Release Smoke Automation. Splits the largest product
51
+ > surfaces into feature modules, strengthens consent/i18n coverage, shrinks
52
+ > legacy root modules, and automates release smoke validation.
53
+
54
+ ### Added
55
+ - Feature-owned Brain Home and Admin Console modules behind the existing app
56
+ shell route surface.
57
+ - Onboarding screen components for ProductFlow, backed by design-system CSS
58
+ instead of inline style layout.
59
+ - Model download consent details for size, storage location, external target,
60
+ and a "do later" path.
61
+ - Typed tool and interaction router context objects for app-factory route
62
+ registration without changing route order.
63
+ - `npm run release:smoke` covering wheel install, npm tgz contents, static
64
+ assets, and Tauri artifact checks.
65
+
66
+ ### Changed
67
+ - Historical root modules for CLI, Telegram, and P-Reinforce now delegate to
68
+ package modules while preserving import and script compatibility.
69
+ - Admin Console and onboarding user-facing copy now route through shared i18n
70
+ keys for Korean/English coverage.
71
+ - Package/runtime/static metadata is synchronized to 6.2.0; package publish
72
+ and deployment remain owner-run only.
73
+ - README release evidence screenshots and walkthrough GIF are refreshed under
74
+ `output/release/v6.2.0/`.
75
+
76
+ ### Preserved
77
+ - v6.1 screenshots and validation reports remain historical evidence.
78
+ - Package publish and deploy commands continue to require exact artifact names.
79
+
6
80
  ## [6.1.0] - 2026-06-16
7
81
 
8
82
  > Product Hardening / Digital Brain Completion. Tightens the local-first Brain
@@ -30,7 +104,7 @@ historical and may describe behavior as it existed at that release.
30
104
  production app assembly and is now injected through `AppContext`.
31
105
  - README release evidence screenshots and walkthrough GIF are refreshed under
32
106
  `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
107
+ - README and release notes described v6.1.0 as the then-current hardening target
34
108
  with exact expected artifact filenames.
35
109
 
36
110
  ### Preserved