matryca-logseq 1.4.1__py3-none-any.whl
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.
- matryca_logseq-1.4.1.dist-info/METADATA +279 -0
- matryca_logseq-1.4.1.dist-info/RECORD +81 -0
- matryca_logseq-1.4.1.dist-info/WHEEL +5 -0
- matryca_logseq-1.4.1.dist-info/entry_points.txt +3 -0
- matryca_logseq-1.4.1.dist-info/licenses/LICENSE +201 -0
- matryca_logseq-1.4.1.dist-info/licenses/NOTICE +5 -0
- matryca_logseq-1.4.1.dist-info/top_level.txt +2 -0
- src/__init__.py +1 -0
- src/agent/__init__.py +1 -0
- src/agent/alias_state.py +94 -0
- src/agent/git_snapshot.py +118 -0
- src/agent/graph_dispatch.py +762 -0
- src/agent/graph_tool_helpers.py +244 -0
- src/agent/l1_memory.py +147 -0
- src/agent/mcp_server.py +322 -0
- src/agent/mcp_telemetry.py +80 -0
- src/agent/mcp_tool_guard.py +57 -0
- src/agent/quality_gate.py +139 -0
- src/agent/routing_hint.py +54 -0
- src/cli.py +224 -0
- src/config.py +99 -0
- src/graph/__init__.py +7 -0
- src/graph/advanced_query_block.py +94 -0
- src/graph/alias_index.py +197 -0
- src/graph/block_ref_lint.py +130 -0
- src/graph/dashboard.py +108 -0
- src/graph/flashcards.py +171 -0
- src/graph/generational_cache.py +173 -0
- src/graph/global_fence_scanner.py +129 -0
- src/graph/hubs.py +46 -0
- src/graph/journal_task_scan.py +282 -0
- src/graph/link_tag_hop.py +319 -0
- src/graph/logseq_uuid.py +68 -0
- src/graph/markdown_blocks.py +207 -0
- src/graph/mldoc_guards.py +62 -0
- src/graph/mldoc_properties.py +178 -0
- src/graph/moc_page.py +109 -0
- src/graph/page_write_lock.py +92 -0
- src/graph/path_sandbox.py +48 -0
- src/graph/property_line_edit.py +605 -0
- src/graph/reparent_blocks.py +254 -0
- src/graph/split_large_blocks.py +268 -0
- src/graph/tag_unify.py +321 -0
- src/graph/templates.py +97 -0
- src/graph/unlinked_mentions.py +160 -0
- src/graph/wiki_lint.py +172 -0
- src/main.py +67 -0
- src/rag/__init__.py +1 -0
- src/rag/local_query.py +119 -0
- src/rag/matryca_hooks.py +354 -0
- tests/__init__.py +1 -0
- tests/conftest.py +12 -0
- tests/test_advanced_query_block.py +40 -0
- tests/test_adversarial_security.py +61 -0
- tests/test_alias_index.py +28 -0
- tests/test_alias_state.py +71 -0
- tests/test_block_ref_lint.py +76 -0
- tests/test_cli.py +254 -0
- tests/test_config.py +50 -0
- tests/test_dashboard.py +29 -0
- tests/test_git_snapshot.py +53 -0
- tests/test_graph_dispatch_search.py +24 -0
- tests/test_hardening_final.py +168 -0
- tests/test_hubs.py +19 -0
- tests/test_ironclad_phase8.py +181 -0
- tests/test_journal_task_scan.py +83 -0
- tests/test_l1_memory.py +81 -0
- tests/test_link_tag_hop.py +75 -0
- tests/test_local_query.py +46 -0
- tests/test_logseq_uuid.py +45 -0
- tests/test_markdown_blocks_hygiene.py +56 -0
- tests/test_matryca_hooks.py +77 -0
- tests/test_mcp_server.py +177 -0
- tests/test_mcp_telemetry.py +41 -0
- tests/test_mldoc_phase7.py +110 -0
- tests/test_phase_5_6_graph_tools.py +135 -0
- tests/test_property_line_edit.py +108 -0
- tests/test_quality_gate.py +59 -0
- tests/test_routing_hint.py +17 -0
- tests/test_templates.py +26 -0
- tests/test_wiki_lint.py +26 -0
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: matryca-logseq
|
|
3
|
+
Version: 1.4.1
|
|
4
|
+
Summary: MCP bridge between AI agents and Logseq OG (pure Markdown outliner).
|
|
5
|
+
License: Apache-2.0
|
|
6
|
+
Requires-Python: >=3.12
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
License-File: NOTICE
|
|
10
|
+
Requires-Dist: logseq-matryca-parser==0.3.3
|
|
11
|
+
Requires-Dist: pydantic<3.0.0,>=2.0.0
|
|
12
|
+
Requires-Dist: python-dotenv<2.0.0,>=1.0.0
|
|
13
|
+
Requires-Dist: loguru<1.0.0,>=0.7.0
|
|
14
|
+
Requires-Dist: mcp<2.0.0,>=1.0.0
|
|
15
|
+
Requires-Dist: pyyaml<7.0.0,>=6.0.0
|
|
16
|
+
Provides-Extra: dev
|
|
17
|
+
Requires-Dist: pytest<9.0.0,>=8.0.0; extra == "dev"
|
|
18
|
+
Requires-Dist: pytest-asyncio<1.0.0,>=0.24.0; extra == "dev"
|
|
19
|
+
Requires-Dist: ruff<1.0.0,>=0.8.0; extra == "dev"
|
|
20
|
+
Requires-Dist: mypy<2.0.0,>=1.13.0; extra == "dev"
|
|
21
|
+
Dynamic: license-file
|
|
22
|
+
|
|
23
|
+
# Matryca Logseq LLM Wiki (v1.4.0 — Headless Edition)
|
|
24
|
+
|
|
25
|
+
> Agentic Knowledge Management for Logseq OG. An MCP server that turns your favorite AI into a spatial Knowledge Architect. It treats your vault as a tree of blocks, not a flat document store. Local-first, database-free, and Markdown-purist.
|
|
26
|
+
|
|
27
|
+
[](https://github.com/MarcoPorcellato/matryca-logseq-llm-wiki/actions/workflows/ci.yml)
|
|
28
|
+
[](https://github.com/MarcoPorcellato/matryca-logseq-llm-wiki/actions/workflows/ci.yml)
|
|
29
|
+
[](https://www.python.org/downloads/)
|
|
30
|
+
[](LICENSE)
|
|
31
|
+
|
|
32
|
+

|
|
33
|
+
|
|
34
|
+
Matryca is a **100% Headless, sandboxed** MCP server and CLI built to turn your local Logseq graph into a high token-density agentic workspace — **with no network APIs and no background desktop app required**.
|
|
35
|
+
|
|
36
|
+
The shift from a **stateful, network-bounded** architecture (Logseq Electron + JSON-RPC) to a **local-first, zero-dependency** model is the milestone of **v1.4.0 — The Headless Revolution**: one required variable (`LOGSEQ_GRAPH_PATH`), atomic AST writes via `logseq-matryca-parser==0.3.3`, and X-Ray persistence in `.matryca_xray_state.json`.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## ✨ Core Features
|
|
41
|
+
|
|
42
|
+
* 🌌 **AST Spatial Intelligence:** understands Logseq’s native parent-child block structure via a deterministic parser.
|
|
43
|
+
* 🤖 **100% Headless & Local-First:** does not require the Logseq desktop app to be open. Mutations use atomic file I/O directly on `.md` sources.
|
|
44
|
+
* 🩻 **X-Ray Token Economy (Printing Press Mode):** compresses Markdown trees and maps UUIDs to persistent aliases like `[0]`, `[1]` — up to ~35× less context noise.
|
|
45
|
+
* 🔒 **Sandboxed Privacy:** mathematically blocks path-traversal attempts outside the graph root (`path_sandbox.py`).
|
|
46
|
+
* ⚡ **Agent-Native CLI:** fast, minimal `matryca` command optimized for terminal scripts and local LLMs.
|
|
47
|
+
* 🧱 **Ironclad Data Plane:** transactional swaps, code-block fence scanning, optional Git snapshots before mutations.
|
|
48
|
+
* 📊 **Zero-DB Lexical Engine:** in-memory Okapi BM25 and structural BFS traversals — no vector store.
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## ⚙️ Configuration (Zero-Friction)
|
|
53
|
+
|
|
54
|
+
Forget API tokens and port configuration. The only **required** variable is the absolute path to your graph:
|
|
55
|
+
|
|
56
|
+
### Claude Desktop
|
|
57
|
+
|
|
58
|
+
Add this block to `claude_desktop_config.json`:
|
|
59
|
+
|
|
60
|
+
```json
|
|
61
|
+
{
|
|
62
|
+
"mcpServers": {
|
|
63
|
+
"matryca-logseq-llm-wiki": {
|
|
64
|
+
"command": "uv",
|
|
65
|
+
"args": ["run", "python", "-m", "src.main"],
|
|
66
|
+
"cwd": "/absolute/path/to/matryca-logseq-llm-wiki",
|
|
67
|
+
"env": {
|
|
68
|
+
"LOGSEQ_GRAPH_PATH": "/absolute/path/to/your/Logseq/graph"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Restart the MCP host after edits. Optional: `MATRYCA_GIT_SNAPSHOT_ON_WRITE=true` for automatic commits before writes on git-backed graphs.
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## 🧪 Stability Markers
|
|
80
|
+
|
|
81
|
+
* **152 strict passing tests** (unit, integration, subprocess).
|
|
82
|
+
* **100% strict MyPy** type checking and **Ruff** compliance on `src/` and `tests/`.
|
|
83
|
+
* The same bar on `main` in [`.github/workflows/ci.yml`](.github/workflows/ci.yml) — run `make check` locally.
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## Architecture stack
|
|
88
|
+
|
|
89
|
+
```mermaid
|
|
90
|
+
flowchart TB
|
|
91
|
+
subgraph host["Host machine"]
|
|
92
|
+
IDE["MCP client\n(Claude Desktop, Cursor, …)"]
|
|
93
|
+
end
|
|
94
|
+
subgraph proc["matryca-logseq-llm-wiki process"]
|
|
95
|
+
MCP["FastMCP stdio"]
|
|
96
|
+
SRV["MatrycaMCPServer\n+ Pydantic validators"]
|
|
97
|
+
GD["graph_dispatch.py\n(headless CRUD)"]
|
|
98
|
+
QG["quality_gate\n(credential / key scans)"]
|
|
99
|
+
MCP --> SRV
|
|
100
|
+
SRV --> GD
|
|
101
|
+
SRV --> QG
|
|
102
|
+
end
|
|
103
|
+
subgraph data["Data plane (headless)"]
|
|
104
|
+
FS[("LOGSEQ_GRAPH_PATH\npages/ · journals/ · templates/")]
|
|
105
|
+
PAR["logseq-matryca-parser==0.3.3\n(spatial read + agent_writer)"]
|
|
106
|
+
SBX["path_sandbox\n(is_relative_to graph root)"]
|
|
107
|
+
LOCK["page_rmw_lock\n(per-page RMW)"]
|
|
108
|
+
GFS["global_fence_scanner\n(dead-zone line index)"]
|
|
109
|
+
ATW["atomic_write_bytes\n(tmp + fsync + replace)"]
|
|
110
|
+
GC["generational_cache\n(mtime_ns signatures)"]
|
|
111
|
+
XRAY[".matryca_xray_state.json\n(SessionAliasRegistry)"]
|
|
112
|
+
end
|
|
113
|
+
subgraph delivery["Delivery gates (repo)"]
|
|
114
|
+
CI["GitHub Actions\nRuff · Mypy · Pytest"]
|
|
115
|
+
DB["Dependabot\npip + Actions"]
|
|
116
|
+
REL["tag v* → uv build\ngh release create"]
|
|
117
|
+
end
|
|
118
|
+
IDE <-->|JSON-RPC MCP| MCP
|
|
119
|
+
GD <-->|AST splice + read| FS
|
|
120
|
+
GD --> PAR
|
|
121
|
+
GD --> LOCK
|
|
122
|
+
SRV --> SBX
|
|
123
|
+
SRV --> GFS
|
|
124
|
+
SRV --> ATW
|
|
125
|
+
SRV --> GC
|
|
126
|
+
SRV --> XRAY
|
|
127
|
+
CI -.->|enforces| proc
|
|
128
|
+
DB -.->|updates| delivery
|
|
129
|
+
REL -.->|artifacts| delivery
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### L1 versus L2 (two-layer context)
|
|
133
|
+
|
|
134
|
+
```mermaid
|
|
135
|
+
flowchart TB
|
|
136
|
+
subgraph L1["L1 — session rules (small, capped)"]
|
|
137
|
+
M1["MATRYCA_L1_PATH\nor matryca-l1/*.md\nor matryca-wiki.yml memory_path"]
|
|
138
|
+
end
|
|
139
|
+
subgraph L2["L2 — the graph"]
|
|
140
|
+
M2["pages/ · journals/ · templates/"]
|
|
141
|
+
end
|
|
142
|
+
A[Agent] --> R{High-stakes\nbefore vault?}
|
|
143
|
+
R -->|yes| T[read_l1_memory]
|
|
144
|
+
R -->|no| Q[query_logseq_pages_local\nBM25 + generational cache]
|
|
145
|
+
T --> M1
|
|
146
|
+
Q --> M2
|
|
147
|
+
M1 --> M2
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
### Runtime agent loop (search → gate)
|
|
151
|
+
|
|
152
|
+
```mermaid
|
|
153
|
+
flowchart LR
|
|
154
|
+
S[Search\nBM25 / hops] --> C[Scan\nread_logseq_page · lint]
|
|
155
|
+
C --> U[Refactor\nheadless AST mutators]
|
|
156
|
+
U --> G[Garden\nMOC · tags · split]
|
|
157
|
+
G --> Q[Quality gate\nsecrets · fan-out · routing_hint]
|
|
158
|
+
subgraph iron["Ironclad sub-loop"]
|
|
159
|
+
F[fence scanner] --> A2[atomic swap]
|
|
160
|
+
A2 --> I[incremental cache]
|
|
161
|
+
end
|
|
162
|
+
U -.-> iron
|
|
163
|
+
G -.-> iron
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
## Feature matrix: architectural phases
|
|
169
|
+
|
|
170
|
+
Each phase adds capabilities; later phases **harden** earlier tools without necessarily renaming the MCP surface. **Phase** is the product narrative; **modules** are what you grep in `src/`.
|
|
171
|
+
|
|
172
|
+
| Phase | Core capabilities | MCP tools (exposed names) |
|
|
173
|
+
|:-----:|-------------------|---------------------------|
|
|
174
|
+
| **1 — Baseline bridge** | FastMCP server, **`OutlineNode`** validation, DFS **`write_logseq_outline`**, spatial **`read_logseq_page`**, block-ref integrity scan, dashboard aggregation | `read_logseq_page`, `write_logseq_outline`, `lint_logseq_block_refs`, `render_logseq_dashboard` |
|
|
175
|
+
| **2 — L1 / L2 routing** | Capped **`read_l1_memory`** from configurable paths; **routing hints** on read/write responses for traceability (`routing_hint.py`) | `read_l1_memory` *(hints on other tools’ payloads)* |
|
|
176
|
+
| **3 — PKM refinements** | BM25 and substring local query; structural BFS hops and hub/orphan reports; surgical **`key::`** property edits; templates; wiki-prefix lint; namespace index; optional **git snapshot** on outline and heavy mutators | `query_logseq_pages_local`, `traverse_logseq_structural_hops`, `report_structural_hubs_orphans`, `patch_logseq_block_property_lines`, `list_logseq_templates`, `read_logseq_template`, `lint_matryca_wiki_pages`, `list_logseq_namespace_index`, `snapshot_logseq_graph_git` |
|
|
177
|
+
| **4 — Logseq superpowers** | Advanced Query injection with preset or raw EDN; journal task mining; entity resolution via alias index; page alias append | `search_graph` / `method=resolve_entity`, `mutate_graph` / `inject_query`, `append_journal` |
|
|
178
|
+
| **5 — Graph gardener** | SRS-style flashcards from `::` pairs; vault-wide tag unify; same-page reparent refactor | `generate_logseq_flashcards`, `lint_unify_logseq_tags`, `refactor_logseq_blocks` |
|
|
179
|
+
| **6 — Synthesis engine** | Unlinked mention discovery; MOC generation; long-bullet split; manual git snapshot | `resolve_unlinked_mentions`, `generate_moc_page`, `refactor_large_blocks`, `snapshot_logseq_graph_git` |
|
|
180
|
+
| **7 — Mldoc guards** | **`mldoc_properties`** (property grammar, CSV / wikilink / quote semantics); **`mldoc_guards`** (drawers, fences, macros) wired into property edit, tag unify, alias append, large-block split | *Same tool names as phases 3–6; strengthened internals* |
|
|
181
|
+
| **8 — Ironclad data plane** | **`compute_page_protected_line_indices`** (global fence lexer); **`atomic_write_bytes`** on mutators; **`generational_cache`** (`st_mtime_ns` keyed alias + BM25 corpus reuse, Salsa-style invalidation) | *Same tool names; dead-zone and cache behavior upgraded* |
|
|
182
|
+
| **9 — Trust and policy plane** | **`quality_gate`**: blocks credential-like outline properties and raw query EDN; **`lint_matryca_wiki_pages`** for configurable wiki discipline; structured dry-run / apply responses | Enforcement inside `write_logseq_outline`, `inject_logseq_advanced_query`; governance tools listed in phase 3 |
|
|
183
|
+
| **10 — Delivery and community** | **GitHub Actions** (`ci.yml`): `uv sync --locked`, Ruff lint + format check, **Mypy** on `src` and `tests`, Pytest; **Dependabot** (pip + Actions); **`release.yml`** on `v*` tags (`uv build`, `gh release create`); **`SECURITY.md`**; **Contributor Covenant** (`CODE_OF_CONDUCT.md`); issue and PR templates | *Repository operations — no additional MCP tools* |
|
|
184
|
+
| **11 — Fortress (`v1.3.0`)** | **`path_sandbox.py`** traversal gate on all FS paths; **`mcp_tool_guard`** LLM-safe errors; lifespan lock and telemetry teardown | *Same MCP tool names; adversarial path hardening* |
|
|
185
|
+
| **12 — Headless Revolution (`v1.4.0`)** | Removed **`httpx`** / **`LogseqClient`**; **`graph_dispatch.py`** + **`agent_writer.append_child_to_node`** for atomic AST writes; **`.matryca_xray_state.json`** via **`SessionAliasRegistry`**; **`LogseqGraph.get_broken_references()`** for in-memory ref lint | *Same MCP tool names; 100% disk-native persistence* |
|
|
186
|
+
|
|
187
|
+
**Roadmaps and design history:** [`docs/roadmaps/`](docs/roadmaps/) (LLM Wiki, Phase 3, Logseq superpowers, Phase 5–6, mldoc compliance, Ironclad Shield).
|
|
188
|
+
|
|
189
|
+
---
|
|
190
|
+
|
|
191
|
+
## Zero-install execution (`uvx`)
|
|
192
|
+
|
|
193
|
+
You do **not** need to clone this repository to run the published console script. **[uv](https://docs.astral.sh/uv/)** can materialize an ephemeral environment from the Git VCS URL (the package depends on **`logseq-matryca-parser`** via `git+https` in `pyproject.toml`, so the practical install path remains VCS-backed).
|
|
194
|
+
|
|
195
|
+
```bash
|
|
196
|
+
uvx --from git+https://github.com/MarcoPorcellato/matryca-logseq-llm-wiki.git matryca-logseq-llm-wiki
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
Set **`LOGSEQ_GRAPH_PATH`** to the absolute root of your Logseq graph (the folder containing `pages/`) in your MCP host’s server definition. For **responsible vulnerability disclosure**, see [`SECURITY.md`](SECURITY.md).
|
|
200
|
+
|
|
201
|
+
---
|
|
202
|
+
|
|
203
|
+
## Safe testing on a copy of your graph
|
|
204
|
+
|
|
205
|
+
Because Matryca reads and writes **the same folder** pointed to by `LOGSEQ_GRAPH_PATH`, always point agents at a **dedicated test graph** before experimenting:
|
|
206
|
+
|
|
207
|
+
1. **Clone the graph.** Copy your real Logseq folder to a dedicated location (for example `Logseq_Matryca_Test`). Use a full copy, not a symlink.
|
|
208
|
+
2. **Set the path.** In `.env` or your MCP host `env` block, set `LOGSEQ_GRAPH_PATH` to that copy’s absolute path.
|
|
209
|
+
3. **Optional rollback.** With `MATRYCA_GIT_SNAPSHOT_ON_WRITE=true`, selected writes also create a local **git commit** on the test graph so you can revert experiments.
|
|
210
|
+
|
|
211
|
+
<details>
|
|
212
|
+
<summary><b>🛠️ Using Logseq Sync? Click here if Logseq refuses to open the test folder.</b></summary>
|
|
213
|
+
<br>
|
|
214
|
+
If you use Logseq Sync, the app tracks graphs by hidden UUIDs, not folder paths. A direct copy-paste will cause a UUID clash. Do a <b>Clean Transplant</b> instead:
|
|
215
|
+
<ol>
|
|
216
|
+
<li>Create a brand new, empty folder (e.g., <code>Logseq_Matryca_Test</code>).</li>
|
|
217
|
+
<li>Open Logseq, click "Add new graph", and select this empty folder to initialize a clean state.</li>
|
|
218
|
+
<li>Close Logseq completely.</li>
|
|
219
|
+
<li>Copy <b>ONLY</b> the <code>pages/</code>, <code>journals/</code>, and <code>assets/</code> folders from your real graph into the test folder. (Do NOT copy the <code>logseq/</code> folder or hidden git files).</li>
|
|
220
|
+
<li>Reopen Logseq and click <b>Re-index</b>.</li>
|
|
221
|
+
</ol>
|
|
222
|
+
</details>
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
## Quickstart (clone and develop)
|
|
227
|
+
|
|
228
|
+
### Prerequisites
|
|
229
|
+
|
|
230
|
+
- **Python 3.12+**
|
|
231
|
+
- **[uv](https://docs.astral.sh/uv/)**
|
|
232
|
+
- A **Logseq OG** graph on disk (the directory containing `pages/`)
|
|
233
|
+
|
|
234
|
+
### Install
|
|
235
|
+
|
|
236
|
+
```bash
|
|
237
|
+
git clone https://github.com/MarcoPorcellato/matryca-logseq-llm-wiki.git
|
|
238
|
+
cd matryca-logseq-llm-wiki
|
|
239
|
+
make install
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
### Environment
|
|
243
|
+
|
|
244
|
+
Copy **`.env.example`** to **`.env`** and set at minimum:
|
|
245
|
+
|
|
246
|
+
| Variable | Role |
|
|
247
|
+
|----------|------|
|
|
248
|
+
| `LOGSEQ_GRAPH_PATH` | **Required.** Absolute graph root (directory containing `pages/`) |
|
|
249
|
+
| `MATRYCA_L1_PATH` | Optional: file or directory of small Markdown “L1” session rules |
|
|
250
|
+
| `MATRYCA_WIKI_CONFIG` | Optional: path to `matryca-wiki.yml` (else `$LOGSEQ_GRAPH_PATH/matryca-wiki.yml`) |
|
|
251
|
+
| `MATRYCA_GIT_SNAPSHOT_ON_WRITE` | `true` or `false` — opt-in automatic **`git add -A` + `git commit`** before selected writes when the graph is a git checkout |
|
|
252
|
+
|
|
253
|
+
Optional graph orchestration: copy [`matryca-wiki.example.yml`](matryca-wiki.example.yml) to your graph as **`matryca-wiki.yml`** for namespaces, template subdirectory, wiki lint prefix, and dashboard title.
|
|
254
|
+
|
|
255
|
+
### Verify
|
|
256
|
+
|
|
257
|
+
```bash
|
|
258
|
+
make check
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
Runs Ruff (format + lint), **strict Mypy** on `src/` and `tests/`, and **pytest** (**152** strict passing tests). The same bar is enforced on **`main`** in [`.github/workflows/ci.yml`](.github/workflows/ci.yml).
|
|
262
|
+
|
|
263
|
+
---
|
|
264
|
+
|
|
265
|
+
## Documentation map
|
|
266
|
+
|
|
267
|
+
| Document | Audience |
|
|
268
|
+
|----------|----------|
|
|
269
|
+
| [`SYSTEM_PROMPT.md`](SYSTEM_PROMPT.md) | Agent operators — outline discipline, Search → Scan → Update, dry-run-first mutators |
|
|
270
|
+
| [`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md) | Engineers — headless CRUD plane, Ironclad data plane, phase history |
|
|
271
|
+
| [`CONTRIBUTING.md`](CONTRIBUTING.md) | Contributors — `uv`, `make check`, MCP testing notes |
|
|
272
|
+
| [`CODE_OF_CONDUCT.md`](CODE_OF_CONDUCT.md) | Community standards (Contributor Covenant 2.1) |
|
|
273
|
+
| [`SECURITY.md`](SECURITY.md) | Private reporting via GitHub Security Advisories |
|
|
274
|
+
|
|
275
|
+
---
|
|
276
|
+
|
|
277
|
+
## License
|
|
278
|
+
|
|
279
|
+
Apache-2.0 — see [LICENSE](LICENSE).
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
matryca_logseq-1.4.1.dist-info/licenses/LICENSE,sha256=Mhg-e6quei6cAjXg0IjKmlVp33X_95lzV5EGT48BzQQ,11335
|
|
2
|
+
matryca_logseq-1.4.1.dist-info/licenses/NOTICE,sha256=cxxK0OSK5osbO3_Z07E9NF-d64wZ3fgilryRE_sIlzg,311
|
|
3
|
+
src/__init__.py,sha256=KyK-Uw-sdu7LeTL7S5KTYaifwmuSLOfnm7CS71Q-xDg,70
|
|
4
|
+
src/cli.py,sha256=Ww8Kh6uvaC1ZH0HRG-U25aJ5A3Dabpu15qpb8KAgxi0,5888
|
|
5
|
+
src/config.py,sha256=OHuh1tpsvRZQ8S81OWvW3HaizxVMjobGcqsyMae9_ME,3439
|
|
6
|
+
src/main.py,sha256=0PMV-czOnBeNjS5gOQKZ86taAzD-zqDZ14Psm4PaCEY,2047
|
|
7
|
+
src/agent/__init__.py,sha256=f5ek1QNYAXhJIxM_SoOQosoA_WIhV57enbSug0_ZAUI,36
|
|
8
|
+
src/agent/alias_state.py,sha256=zeiG4qyOK8I7Y4_s_qnRz-rx5UW1s_iN0KKs6_CbaBo,3540
|
|
9
|
+
src/agent/git_snapshot.py,sha256=UkNEVgq6Ofazd4SuNNh2saEGeIOKDjZBidufx0S8lfE,3629
|
|
10
|
+
src/agent/graph_dispatch.py,sha256=5JO6HdmIiBDZB0pOKBw7cRnkzMKrKqP_ilMc9l0_MNg,27208
|
|
11
|
+
src/agent/graph_tool_helpers.py,sha256=bRV4OP0uBFTnmzUaXWeux_B0E67u66Y9Nyji32HL5fM,8429
|
|
12
|
+
src/agent/l1_memory.py,sha256=Diuvbzg6x296y2ctGVl7b6m0yGlG-S_61QLxbTqg_hg,4858
|
|
13
|
+
src/agent/mcp_server.py,sha256=kY1ctW51j2pHJjonG1F1WQf23JBDqvzopJRWup97_f0,13144
|
|
14
|
+
src/agent/mcp_telemetry.py,sha256=qKVxhtfb7JFKNRJKLJXy40REFdiNc0Kr2TRsGCJsnyQ,2230
|
|
15
|
+
src/agent/mcp_tool_guard.py,sha256=BCaAuEnzjq_vpmzF32QcOtijZvP1U-fL8cg0ZeXij04,1946
|
|
16
|
+
src/agent/quality_gate.py,sha256=MYmXUdviz81vNFo_8lJuiIJUjUn98k0UzAhKl3Y_AOo,4941
|
|
17
|
+
src/agent/routing_hint.py,sha256=HC62xVjzgegyeboMbnIpLHic_MAv43ZxkZtJyv94IUM,1614
|
|
18
|
+
src/graph/__init__.py,sha256=WPDqP0sR1f07AU_Qbg2tT_EBHq6Fc8mZNIc3G5ea_pA,251
|
|
19
|
+
src/graph/advanced_query_block.py,sha256=GCz70ej976dtpk1timJxKneJnzkEXRnmOStEUu4_Xl8,3116
|
|
20
|
+
src/graph/alias_index.py,sha256=ONFLRv89uY5i5CNiWJonQN_JPXxgNrmaSjwRwOtUAZw,6934
|
|
21
|
+
src/graph/block_ref_lint.py,sha256=Hpjz3jXHKbawqG8wQTQR6XlZwhW9XBOQA7zjKEfSBXo,4209
|
|
22
|
+
src/graph/dashboard.py,sha256=XtiRA4qX43e9UaFs8NizECLhKopvMD_wZ8QL8ZcdCUw,3480
|
|
23
|
+
src/graph/flashcards.py,sha256=qOIDSckxNGdvfNnAitN4gURQZRvgVE2VMiGhh2yujMA,5292
|
|
24
|
+
src/graph/generational_cache.py,sha256=7ssb4El_gUdPfYX0gB5YzLfXRRnIjUnKhfyDVMu6iws,5137
|
|
25
|
+
src/graph/global_fence_scanner.py,sha256=JjeB1H5sEjSzM2j4WajEcTRi7te_so00CmetBMA6gPQ,3809
|
|
26
|
+
src/graph/hubs.py,sha256=WSwmMUzSzMunJrOvma-ySNL8V9t6HyyZqnL8XmV1tdc,1449
|
|
27
|
+
src/graph/journal_task_scan.py,sha256=1VIVfEzbygQ3KDckvJinnpBCbnDvRamloMdm2ZbGS6Y,8824
|
|
28
|
+
src/graph/link_tag_hop.py,sha256=iy1KbKEsyDTUt9n-Qa6MNGHquQ21-A8PA2fFeZN1PL0,10245
|
|
29
|
+
src/graph/logseq_uuid.py,sha256=hnzEF8cMe5M4WlKYek0q9IxqXa6tljv6gKWmG_wDg6I,2096
|
|
30
|
+
src/graph/markdown_blocks.py,sha256=HmKta_Ph3h5eNipIHYyAjuznDJEiWwTNm6crxW4vDQM,6589
|
|
31
|
+
src/graph/mldoc_guards.py,sha256=6BxoHjBVhuFi76L8hBFqPi8DXHWm2Ol5tyu1T7pjZA0,1984
|
|
32
|
+
src/graph/mldoc_properties.py,sha256=2m2ui3I-WBt9ItLOcvQc9Zn5FsG72CElCBYVxzMzrc8,5355
|
|
33
|
+
src/graph/moc_page.py,sha256=W9NdRyi4EAIU3jnaUBC1hziBfv3TtJzAcDO_Mrf_3rM,3510
|
|
34
|
+
src/graph/page_write_lock.py,sha256=1G_PYoMGJvuBOXBvBoq_rrTZQMUy2N7SgJDu-39ODJg,2663
|
|
35
|
+
src/graph/path_sandbox.py,sha256=hTheq7QdmSBOAWFK-snYV_HHFEzUux9Ih2NL8f8_7yw,1614
|
|
36
|
+
src/graph/property_line_edit.py,sha256=6EluQvQxq1g8ZiB3sSgjzZkX954kPYbsM45hms-GWt8,20177
|
|
37
|
+
src/graph/reparent_blocks.py,sha256=JWXyQ2FoGNmwacdiaHSt30Lr46Um8odJh_wOFCea5GA,8484
|
|
38
|
+
src/graph/split_large_blocks.py,sha256=DSOOUNX9QcC70n3yKVkoFjbRfLzdPx9-qKODrvooU6s,8011
|
|
39
|
+
src/graph/tag_unify.py,sha256=UtYHWZcNh01wXOZxWqcz3Y_wU7JCQ2uf0r0YMhsYiuA,9934
|
|
40
|
+
src/graph/templates.py,sha256=2fTAH1SxssHfSDiJQyB2_2KqAF7UuglG3R_VmeEpj4c,3368
|
|
41
|
+
src/graph/unlinked_mentions.py,sha256=fLlkZl6s3j-lk6I1i6nsxQK0qn3H6oVs2Cx_OuFcGsM,5286
|
|
42
|
+
src/graph/wiki_lint.py,sha256=O9pJ4k4RwS7exhjTPPawXjQEwP7OnrvFXEczUK9NkLE,5330
|
|
43
|
+
src/rag/__init__.py,sha256=MRkCy2Q_rhA_bAC6GTgJJ-BrW45Z_xGKWu-SRDjv-VE,61
|
|
44
|
+
src/rag/local_query.py,sha256=xjqRqx4nThyJxAdCKY8g5BSOVQo9E6xI-t2f4klBjgQ,3513
|
|
45
|
+
src/rag/matryca_hooks.py,sha256=CO4GEa5cuuAGVFHk7apbF6F6ffBWS6jqKbkp2bOEA9w,12894
|
|
46
|
+
tests/__init__.py,sha256=XLb0nA9t3At7Z6_3wB2_L5GagN2YIsdG9517gs-XK7s,46
|
|
47
|
+
tests/conftest.py,sha256=wK3bVBUZ0dkhZ9wn5NgCUpzhMzTQtxEcRbRgiRtSi80,378
|
|
48
|
+
tests/test_advanced_query_block.py,sha256=6kVBni2f7Hd6YksymQDJSijPzOLi5PBKedglQ-7gZ6k,1245
|
|
49
|
+
tests/test_adversarial_security.py,sha256=HZrGJZLc2IN6OqHkGNtlIWsudwO3CPteJCl8Avw8enk,2181
|
|
50
|
+
tests/test_alias_index.py,sha256=1y3HhZlxWBpPwYxM9f2TFgGA23SwBVViBvNDvR77_DE,959
|
|
51
|
+
tests/test_alias_state.py,sha256=gyel09Uad6gFHzE-xDkB2-lmKFPgHqnyClat_MFgarI,2486
|
|
52
|
+
tests/test_block_ref_lint.py,sha256=_aKvTV5jmrmNkYGjCz4zVXOoCz6wekMkLuMCMVqzXdc,2415
|
|
53
|
+
tests/test_cli.py,sha256=-fFLxWGhN813vKwD09tZ66xXh4EtKem6aRVgFVtxbXI,7789
|
|
54
|
+
tests/test_config.py,sha256=6-p_S7yTK6-hCh9miIsYZhcJIL6kzN1vXQgxkJLR390,1519
|
|
55
|
+
tests/test_dashboard.py,sha256=JYF36nfSv8w8yWyYt6kiowA5xEPzcplFYJ60K1omXGc,952
|
|
56
|
+
tests/test_git_snapshot.py,sha256=fYhtgEmwTeISCJUZgrvIaf7IH6iU0MyRxhGwh8mRqjI,1853
|
|
57
|
+
tests/test_graph_dispatch_search.py,sha256=DPvm8TLx7tlsFXLKbB9hYMtK2qficrtbi4lyDB5sc2o,715
|
|
58
|
+
tests/test_hardening_final.py,sha256=csNuGy2XeEK2rrQETxFXDSB_4shuPmH_g95PuwFcZ1E,5509
|
|
59
|
+
tests/test_hubs.py,sha256=vfFb-5gLqERqm1NMoRzSmg0KBI2DstwyNbWoWrY-hXA,643
|
|
60
|
+
tests/test_ironclad_phase8.py,sha256=0LRFnSqyCu2NqMxFpKndEGVw-340T6aI2QGCqtIZ6N4,5358
|
|
61
|
+
tests/test_journal_task_scan.py,sha256=JTEIb6LkHI7YLF4KsJGj2YnMrXedo6gy2ESPAx727tw,2514
|
|
62
|
+
tests/test_l1_memory.py,sha256=d0nTCTlKFhwEE0dFfFIALhexuv1J7ZH9FYZIHLH4Bh4,2981
|
|
63
|
+
tests/test_link_tag_hop.py,sha256=3z4DDHu9vBMgmbCs50v_Ab4lFd-h8UkyZgtdVYMzbG4,2518
|
|
64
|
+
tests/test_local_query.py,sha256=_KdHLpHxVJ8nlmien5mYEaRx2WT4RrcYGvEtua89y5E,1554
|
|
65
|
+
tests/test_logseq_uuid.py,sha256=9SSsQxAdKKN--hLBKhouFpOHAaPgilrFHSTMBSJYHAY,1516
|
|
66
|
+
tests/test_markdown_blocks_hygiene.py,sha256=AksD7IbbeLoRzaquR9w0ATHtsVpKlTPmRHp_pvsa_tE,1860
|
|
67
|
+
tests/test_matryca_hooks.py,sha256=iTprK9gUuASrKhu5R1Cy0P0XnrynpWPKzAP_QutWINk,2869
|
|
68
|
+
tests/test_mcp_server.py,sha256=iB23hCk4JpxV2qN7g2UMFRG6fRsth3Ue1lP7_8TUwsk,6081
|
|
69
|
+
tests/test_mcp_telemetry.py,sha256=4kVXcAN_otsGAo1SRROD0Hi_MyRGAt3dWFAfgn-CY4Y,1206
|
|
70
|
+
tests/test_mldoc_phase7.py,sha256=UqLpe-IsOevro5XmhjlSBRngQS8KmUespGlYUtIjQUo,3585
|
|
71
|
+
tests/test_phase_5_6_graph_tools.py,sha256=JoeHNoElaNOKNBVSv4nWppSmO_XpaL1nmr4yRE3d7nk,4417
|
|
72
|
+
tests/test_property_line_edit.py,sha256=Qy0i7_qNfu7QJ5Jn7haBZQNSuEZI-C8SYWurILSqoIY,3228
|
|
73
|
+
tests/test_quality_gate.py,sha256=wj3wXRy2Z0T6FSugJBtQmnhKPiaIq67OchD6otSDimg,1949
|
|
74
|
+
tests/test_routing_hint.py,sha256=yOGZyNlrKR6h7KnXJ-NUVii7xUYJAH6fa41tfnd9vgM,576
|
|
75
|
+
tests/test_templates.py,sha256=5USDdeyoH6P-o8hAVkagb4crpRDr7DdTTXgAzvy3qUs,803
|
|
76
|
+
tests/test_wiki_lint.py,sha256=QJjPlhBiYdiH9FKXtDh0dI7CNEXVVR4kKU5sATbbT5s,888
|
|
77
|
+
matryca_logseq-1.4.1.dist-info/METADATA,sha256=sX1_WlyUgZo2lU-GYsGQo1Jwg5zDLFYbM7jg8s1Kb3M,14723
|
|
78
|
+
matryca_logseq-1.4.1.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
79
|
+
matryca_logseq-1.4.1.dist-info/entry_points.txt,sha256=_V0q1KOC0yLvkzvPzwKceB6_P_zNwY54k5nZrQvkGTw,81
|
|
80
|
+
matryca_logseq-1.4.1.dist-info/top_level.txt,sha256=KW3xgkz9NLMTcmmzgKvW8RFpCFkRIQ085qzq2diFf68,10
|
|
81
|
+
matryca_logseq-1.4.1.dist-info/RECORD,,
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf
|
|
53
|
+
of the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly provide otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 Marco Porcellato & Matryca.ai
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
matryca-logseq-llm-wiki
|
|
2
|
+
Copyright 2026 Marco Porcellato and Matryca.ai
|
|
3
|
+
|
|
4
|
+
This product includes software developed by Marco Porcellato and Matryca.ai.
|
|
5
|
+
The "Matryca logseq llm wiki" and "Logseq Matryca Parser" logic and the atomic-block outliner paradigm are intellectual property linked to the Matryca ecosystem.
|
src/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Matryca Logseq LLM Wiki: MCP and bridge packages for Logseq OG."""
|
src/agent/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Agent-facing MCP integration."""
|