ltcai 1.6.0 → 2.0.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 (40) hide show
  1. package/README.md +40 -19
  2. package/docs/CHANGELOG.md +107 -0
  3. package/docs/EDITION_STRATEGY.md +14 -4
  4. package/docs/ENTERPRISE.md +11 -3
  5. package/docs/MULTI_AGENT_RUNTIME.md +410 -0
  6. package/docs/PLUGIN_SDK.md +651 -0
  7. package/docs/REALTIME_COLLABORATION.md +410 -0
  8. package/docs/V2_ARCHITECTURE.md +528 -0
  9. package/docs/WORKFLOW_DESIGNER.md +475 -0
  10. package/latticeai/__init__.py +1 -1
  11. package/latticeai/api/agents.py +98 -0
  12. package/latticeai/api/plugins.py +115 -0
  13. package/latticeai/api/realtime.py +91 -0
  14. package/latticeai/api/workflow_designer.py +207 -0
  15. package/latticeai/core/multi_agent.py +270 -0
  16. package/latticeai/core/plugins.py +400 -0
  17. package/latticeai/core/realtime.py +190 -0
  18. package/latticeai/core/workflow_engine.py +329 -0
  19. package/latticeai/core/workspace_os.py +165 -2
  20. package/latticeai/server_app.py +76 -2
  21. package/latticeai/services/platform_runtime.py +200 -0
  22. package/package.json +17 -2
  23. package/plugins/README.md +35 -0
  24. package/plugins/git-insights/plugin.json +15 -0
  25. package/plugins/hello-world/plugin.json +16 -0
  26. package/plugins/hello-world/skills/hello_skill/SKILL.md +15 -0
  27. package/static/activity.html +70 -0
  28. package/static/admin.html +62 -0
  29. package/static/agents.html +92 -0
  30. package/static/graph.html +7 -1
  31. package/static/lattice-reference.css +184 -0
  32. package/static/platform.css +75 -0
  33. package/static/plugins.html +82 -0
  34. package/static/scripts/admin.js +121 -1
  35. package/static/scripts/graph.js +296 -14
  36. package/static/scripts/platform.js +64 -0
  37. package/static/scripts/workspace.js +107 -10
  38. package/static/workflows.html +121 -0
  39. package/static/workspace.css +73 -0
  40. package/static/workspace.html +18 -2
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  <div align="center">
2
2
  <img src="https://raw.githubusercontent.com/TaeSooPark-PTS/LatticeAI/main/docs/images/logo.svg" alt="Lattice AI" width="280"/>
3
3
  <br/>
4
- <strong>AI Workspace OS for local-first graph, memory, agents, workflows, skills, and timelines.</strong>
4
+ <strong>Lattice AI — Local-first Agentic Workspace Platform: plugins, visual workflows, multi-agent runs, and realtime activity over your graph, memory, skills, and timeline.</strong>
5
5
  <br/><br/>
6
6
 
7
7
  [![PyPI](https://img.shields.io/pypi/v/ltcai?label=PyPI&color=blue)](https://pypi.org/project/ltcai/)
@@ -24,7 +24,7 @@
24
24
 
25
25
  Most AI tools answer one chat at a time. They do not remember your folders, your project history, your previous decisions, or how your files relate to each other.
26
26
 
27
- **Lattice AI turns your local workspace into an AI Workspace OS.**
27
+ **Lattice AI turns your local workspace into a Local-first Agentic Workspace Platform.**
28
28
 
29
29
  It reads approved local folders, indexes chats and documents, builds a searchable knowledge graph, and connects the graph to snapshots, personal memory, agent runs, workflow history, skills, and an auditable timeline.
30
30
 
@@ -156,7 +156,7 @@ See [docs/architecture.md](docs/architecture.md) for request and data-flow detai
156
156
  </table>
157
157
 
158
158
  > Every image in this section is a **real screenshot** of the running app
159
- > (Lattice AI v1.6.0), captured with a headless browser.
159
+ > (Lattice AI v2.0.0), captured with a headless browser.
160
160
 
161
161
  ---
162
162
 
@@ -179,7 +179,9 @@ DeepSeek, and more), with estimated RAM and a clear next step.
179
179
  A **Current Workspace** card shows exactly where you are; switch instantly
180
180
  between a **Personal** workspace and shared **Organization** workspaces. Org data
181
181
  is scoped by `workspace_id`, and `owner / admin / member / viewer` roles map to a
182
- transparent permission matrix with member management.
182
+ transparent permission matrix with member management. A Workspace Health panel
183
+ summarizes indexed files, graph size, installed skills, memories, agent runs,
184
+ current model, last sync time, and status at a glance.
183
185
 
184
186
  <div align="center">
185
187
  <img src="docs/images/workspace.png" alt="Current Workspace summary card with scoped counts" width="100%"/>
@@ -196,6 +198,10 @@ relationships, related entities, and a path back to you.
196
198
  <img src="docs/images/graph.png" alt="Knowledge graph entity explorer with relationship detail" width="100%"/>
197
199
  </div>
198
200
 
201
+ The Graph Canvas also supports node expand/collapse, focused subgraphs,
202
+ relationship highlighting, shortest-path visualization, and direct navigation
203
+ back into source conversations or files.
204
+
199
205
  ### Skills & editions
200
206
 
201
207
  Browse and install skills from an in-product marketplace; an honest editions
@@ -347,24 +353,39 @@ Supported routes include OpenAI-compatible APIs, OpenRouter, Groq, Together, xAI
347
353
 
348
354
  ## Current release
349
355
 
350
- **1.6.0 — Product Experience Deepening.** A UX release: the screens in this README
351
- are now real captured UI.
352
-
353
- - **Knowledge Graph explorer** — entity cards, a relationship/related-entities/
354
- shortest-path detail panel, recent activity, and a memory feed (additive UI on
355
- existing endpoints)
356
- - **Workspace UX** a "Current Workspace" summary card with quick-switch chips
357
- - **Model Recommendation 2.0** machine summary, a best-pick callout with
358
- estimated RAM and next step, per-family status, and a cloud caution
359
- - **Skill Marketplace** — Recommended / Popular / Installed / Updates tabs
360
- - **Enterprise capability panel** an honest 12-capability matrix (Community: all
361
- disabled, nothing gated)
362
- - **Real screenshots** — `docs/images/*` refreshed from the running app; API,
363
- schemas, `server:app`, CLI, MCP, and the Knowledge Graph contract unchanged
356
+ **2.0.0 — Agentic Workspace Platform.** Lattice AI graduates from a local-first
357
+ AI *workspace* to a local-first **Agentic Workspace Platform**: four new
358
+ subsystems land as one cohesive, fully integrated platform — all additive, with
359
+ every v1.x surface preserved.
360
+
361
+ - **Plugin SDK** — versioned, permissioned plugins (`plugin.json` manifest,
362
+ allow-listed permissions, lifecycle, validation, and a safe execution
363
+ boundary) that **extend** existing skills/tools/workflows rather than replace
364
+ them. Ships two example plugins. See [docs/PLUGIN_SDK.md](docs/PLUGIN_SDK.md).
365
+ - **Workflow Designer** — node-based workflows (trigger · tool · skill · plugin ·
366
+ agent · condition · output) with validation, execution, run history, and
367
+ export/import. Pre-2.0 workflow history keeps working.
368
+ See [docs/WORKFLOW_DESIGNER.md](docs/WORKFLOW_DESIGNER.md).
369
+ - **Multi-Agent Runtime 2.0** Planner · Executor · Reviewer · Researcher ·
370
+ Release roles with handoff, retry, and an observable timeline, connected to
371
+ workspace, memory, graph, and workflow runs.
372
+ See [docs/MULTI_AGENT_RUNTIME.md](docs/MULTI_AGENT_RUNTIME.md).
373
+ - **Realtime Collaboration** — presence + an activity feed over SSE, fed
374
+ automatically from every workspace timeline event; single-user local mode and
375
+ workspace isolation preserved. See [docs/REALTIME_COLLABORATION.md](docs/REALTIME_COLLABORATION.md).
376
+ - **Cross-system integration** — workflows run plugins/skills/agents, agent runs
377
+ run plugins/workflows, and all activity surfaces in the realtime feed, the
378
+ knowledge graph, and the workspace timeline. See [docs/V2_ARCHITECTURE.md](docs/V2_ARCHITECTURE.md).
379
+ - **Compatibility preserved** — API schemas, `server:app`,
380
+ `latticeai.server_app.app`, CLI, MCP, model, workspace, chat, KG, existing
381
+ skills/snapshots/memories/agent history, and the VS Code extension remain
382
+ backward compatible. Changes are additive; no destructive migrations.
364
383
 
365
384
  | Version | Theme |
366
385
  |---|---|
367
- | **1.6.0** | Product Experience Deepening (UX + real screenshots) |
386
+ | **2.0.0** | Agentic Workspace Platform (Plugin SDK, Workflow Designer, Multi-Agent Runtime, Realtime) |
387
+ | 1.7.0 | Graph & Collaboration Release |
388
+ | 1.6.0 | Product Experience Deepening (UX + real screenshots) |
368
389
  | 1.5.0 | Unified Product Release (CI/VSIX recovery, model recommendation, Enterprise PoC) |
369
390
  | 1.4.0 | Server App final decomposition |
370
391
  | 1.1.0–1.3.0 | Organization workspaces, modularization, route safety net |
package/docs/CHANGELOG.md CHANGED
@@ -1,5 +1,112 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.0.0] - 2026-06-01
4
+
5
+ > Agentic Workspace Platform — Lattice AI becomes a local-first **Agentic
6
+ > Workspace Platform** with four integrated subsystems: Plugin SDK, Workflow
7
+ > Designer, Multi-Agent Runtime 2.0, and Realtime Collaboration. Backward
8
+ > compatible and additive: API paths/schemas, `server:app`,
9
+ > `latticeai.server_app.app`, CLI, Workspace/Chat/Model/MCP/KG APIs, existing
10
+ > skills/snapshots/memories/agent & workflow history, and VS Code extension
11
+ > commands remain stable. New Workspace OS state keys (`plugin_registry`,
12
+ > `workflow_runs`) are backfilled on load via deep-merge — no destructive
13
+ > migration.
14
+
15
+ ### Added
16
+
17
+ - **Plugin SDK** (`latticeai/core/plugins.py`, `latticeai/api/plugins.py`) —
18
+ `plugin.json` manifest, an allow-listed permission model, discovery,
19
+ validation, lifecycle (install/enable/disable/uninstall), and a permissioned
20
+ execution boundary. Plugins **extend** the existing skill registry (installing
21
+ a plugin registers its bundled skills) rather than replacing skills. Ships two
22
+ example plugins (`plugins/hello-world`, `plugins/git-insights`). Routes under
23
+ `/plugins/registry`, `/plugins/validate`, `/plugins/install`, `/plugins/enable`,
24
+ `/plugins/disable`, `/plugins/uninstall`, `/plugins/execute`, page `/plugins/sdk`.
25
+ - **Workflow Designer** (`latticeai/core/workflow_engine.py`,
26
+ `latticeai/api/workflow_designer.py`) — node-based workflows
27
+ (trigger/tool/skill/plugin/agent/condition/output), validation, a bounded
28
+ deterministic execution engine, run history, and JSON export/import. Legacy
29
+ `steps`-list workflows are auto-normalized so pre-2.0 history still runs.
30
+ Routes under `/workflows/api/*`, page `/workflows`.
31
+ - **Multi-Agent Runtime 2.0** (`latticeai/core/multi_agent.py`,
32
+ `latticeai/api/agents.py`) — Planner/Executor/Reviewer/Researcher/Release role
33
+ orchestration with handoff, bounded retry, and an observable timeline; runs
34
+ persist to agent history + knowledge graph + timeline. Deterministic by
35
+ default (no LLM required) with an injectable role runner. Routes under
36
+ `/agents/api/*`, page `/agents`.
37
+ - **Realtime Collaboration** (`latticeai/core/realtime.py`,
38
+ `latticeai/api/realtime.py`) — in-process pub/sub bus, presence, and an
39
+ activity feed over SSE. Wired as the Workspace OS `event_sink`, so every
40
+ timeline event flows to the feed automatically. Workspace isolation enforced;
41
+ single-user local mode preserved. Routes `/realtime/stream` (SSE),
42
+ `/realtime/feed`, `/realtime/presence*`, page `/activity`.
43
+ - **Cross-system integration** (`latticeai/services/platform_runtime.py`) —
44
+ workflows can run tools/skills/plugins/agents; agent runs can run
45
+ plugins/workflows; graph entities link to workflow runs and agent runs; all
46
+ activity surfaces in the unified timeline + realtime feed. Recursion is bounded
47
+ by construction.
48
+ - **Platform UI** — `static/plugins.html`, `workflows.html`, `agents.html`,
49
+ `activity.html` (+ shared `static/platform.css`, `static/scripts/platform.js`),
50
+ linked from the Workspace dashboard.
51
+ - **Docs** — `docs/V2_ARCHITECTURE.md`, `docs/PLUGIN_SDK.md`,
52
+ `docs/WORKFLOW_DESIGNER.md`, `docs/MULTI_AGENT_RUNTIME.md`,
53
+ `docs/REALTIME_COLLABORATION.md`.
54
+
55
+ ### Changed
56
+
57
+ - Python package, npm package, VS Code extension, Workspace OS, FastAPI app, and
58
+ `/health` version metadata aligned at `2.0.0`.
59
+ - `server_app` cross-system wiring extracted into
60
+ `latticeai/services/platform_runtime.py` to keep the assembly file lean.
61
+
62
+ ### Validation
63
+
64
+ - Unit (incl. new plugin/workflow/multi-agent/realtime suites), integration
65
+ smoke, startup/import, route-compatibility (full v1.x baseline preserved),
66
+ and release-artifact checks. Package-store publishing remains manual.
67
+
68
+ ## [1.7.0] - 2026-06-01
69
+
70
+ > Graph & Collaboration Release — Graph Canvas interactions, Enterprise Admin
71
+ > UI, Skill Marketplace completion, Workspace Health, screenshot automation, and
72
+ > Playwright visual smoke coverage. Backward compatible: API paths/schemas,
73
+ > `server:app`, `latticeai.server_app.app`, CLI, Workspace/Chat/Model/MCP/KG
74
+ > APIs, and VS Code extension commands remain stable.
75
+
76
+ ### Added
77
+
78
+ - **Graph Canvas** — node expand/collapse, focused subgraphs, relationship
79
+ highlighting, shortest-path visualization, URL/node click-through navigation,
80
+ and source/conversation actions. Uses existing graph/relationship APIs; no
81
+ schema change or destructive migration.
82
+ - **Enterprise Admin UI** — `/admin#enterprise` now surfaces Admin Policies,
83
+ Audit Export, SIEM Export preview, Organization Settings, and Enterprise
84
+ Capability Status. Community remains fully functional and ungated.
85
+ - **Skill Marketplace completion** — install progress (Download → Validate →
86
+ Ready), validation status, recommended/popular/update surfaces, version
87
+ metadata, and source metadata.
88
+ - **Workspace Health Dashboard** — indexed files, graph nodes, graph
89
+ relationships, installed skills, memory entries, agent runs, current model,
90
+ last sync time, and workspace status.
91
+ - **Screenshot automation** — `scripts/capture/` contains reproducible
92
+ Playwright capture scripts for workspace, graph, skills, enterprise, and
93
+ onboarding screenshots.
94
+ - **Visual smoke tests** — `tests/visual/*` plus `.github/workflows/visual.yml`
95
+ run Workspace, Graph, Skills, Organization, and Enterprise screen checks on
96
+ PR/push and nightly schedule with failure artifacts.
97
+
98
+ ### Changed
99
+
100
+ - Python package, npm package, VS Code extension, Workspace OS, FastAPI app, and
101
+ `/health` version metadata aligned at `1.7.0`.
102
+ - CI package validation is version-scoped instead of a broad `dist/*` check.
103
+
104
+ ### Validation
105
+
106
+ - Unit, integration, startup/import, route compatibility, MCP, model endpoint,
107
+ visual smoke, VSIX build, and release artifact validation are the release
108
+ target checks. Package-store publish remains manual only.
109
+
3
110
  ## [1.6.0] - 2026-06-01
4
111
 
5
112
  > Product Experience Deepening — user-facing UX (Knowledge Graph explorer,
@@ -5,10 +5,12 @@ the boundary stays predictable for contributors and users.
5
5
 
6
6
  ## Editions
7
7
 
8
- - **Community** — this repository, MIT licensed. Local-first AI Workspace OS:
9
- local LLMs, knowledge graph, Personal **and** Organization workspaces,
10
- role-based membership, snapshots, memory, agents, workflows, skills, and the
11
- auditable timeline. Community is a complete product.
8
+ - **Community** — this repository, MIT licensed. Local-first **Agentic Workspace
9
+ Platform**: local LLMs, knowledge graph, Personal **and** Organization
10
+ workspaces, role-based membership, snapshots, memory, agents, workflows,
11
+ skills, the auditable timeline, and the full v2.0 platform **Plugin SDK**,
12
+ **Workflow Designer**, **Multi-Agent Runtime 2.0**, and **Realtime
13
+ Collaboration**. Community is a complete product.
12
14
  - **Enterprise** — a separately-distributed plugin adding organization-scale
13
15
  governance, identity, compliance, and deployment capabilities. Distributed and
14
16
  licensed separately. See [ENTERPRISE.md](ENTERPRISE.md).
@@ -39,6 +41,10 @@ the boundary stays predictable for contributors and users.
39
41
  | Personal & Organization workspaces | ✅ | — |
40
42
  | Base roles (owner/admin/member/viewer) | ✅ | — |
41
43
  | Snapshots / memory / agents / workflows / skills | ✅ | — |
44
+ | Plugin SDK (manifest, lifecycle, permission boundary) | ✅ | RBAC/ABAC over plugin permissions |
45
+ | Workflow Designer (build/run/run-history) | ✅ | Org approval gates, scheduled triggers |
46
+ | Multi-Agent Runtime 2.0 (roles/handoff/retry) | ✅ | Policy-bounded autonomous runs |
47
+ | Realtime Collaboration (presence + activity feed) | ✅ | Cross-tenant fan-out, retention |
42
48
  | Audit timeline (local) | ✅ | — |
43
49
  | Capability seam & enum | ✅ (declares) | ✅ (implements) |
44
50
  | SSO/SCIM/IdP provisioning | seam only | ✅ |
@@ -50,6 +56,10 @@ the boundary stays predictable for contributors and users.
50
56
 
51
57
  - `GET /workspace/editions` → edition + per-capability matrix.
52
58
  - `GET /workspace/os` → `edition` block in the Workspace OS summary.
59
+ - `/admin#enterprise` → Admin policy, audit export, SIEM preview,
60
+ organization settings, and capability status UI.
61
+ - `GET /admin/enterprise` and `GET /admin/enterprise/siem-export` → descriptive
62
+ Community-safe Enterprise surfaces for integrations.
53
63
  - `latticeai.core.enterprise.detect_edition()` for in-process checks.
54
64
 
55
65
  In the Community build all of the above report `community` with every Enterprise
@@ -9,7 +9,9 @@ Lattice AI follows an **open-core** model:
9
9
 
10
10
  - **Community** (this repository, MIT) is fully functional on its own: local
11
11
  LLMs, knowledge graph, Personal and Organization workspaces, roles, snapshots,
12
- memory, agents, workflows, skills, and the auditable timeline.
12
+ memory, agents, workflows, skills, the auditable timeline, and the full v2.0
13
+ Agentic Workspace Platform (Plugin SDK, Workflow Designer, Multi-Agent Runtime
14
+ 2.0, Realtime Collaboration).
13
15
  - **Enterprise** is a separately-distributed plugin that attaches advanced,
14
16
  organization-scale governance and deployment capabilities through a stable
15
17
  runtime seam. It is never bundled into the Community build.
@@ -33,8 +35,14 @@ Community code consults the seam at extension points via
33
35
  `is_capability_enabled(EnterpriseCapability.X)`. In the Community build this is
34
36
  always `False`, so the Community code path is taken and nothing is gated off.
35
37
 
36
- The live edition + capability matrix is exposed at `GET /workspace/editions`
37
- and surfaced in the Workspace OS summary (`GET /workspace/os` → `edition`).
38
+ The live edition + capability matrix is exposed at `GET /workspace/editions`,
39
+ surfaced in the Workspace OS summary (`GET /workspace/os` → `edition`), and
40
+ shown in the Enterprise Admin UI at `/admin#enterprise`.
41
+
42
+ Community also exposes descriptive admin surfaces at `GET /admin/enterprise`
43
+ and `GET /admin/enterprise/siem-export`: they show policy/export/envelope
44
+ shapes while reporting Enterprise-only capabilities disabled and never
45
+ streaming external events.
38
46
 
39
47
  ## Enterprise capability roadmap
40
48