feat: migrate corpus to file-scoped occlusion

This commit is contained in:
cflmy committed 2026-10-23 12:45:01 +00:00
1 parent c773503938
commit aea86746e7
485 files changed
+1160 -340

No files matched your search

+1
View File
@@ -1,4 +1,5 @@
---
markup: occlusion
title: ext/web/_capability
description: Internal — load native web plugin once. Authors must not call this; import web = capability (ADR 0007).
import:
+1
View File
@@ -1,4 +1,5 @@
---
markup: occlusion
title: ext/web/client
description: Browser Runtime helpers (WASM bridge). Prefer lib/browser for effect tables (ADR 0007).
import:
+1
View File
@@ -1,4 +1,5 @@
---
markup: occlusion
title: ext/web/component
description: Reusable Document fragments as View node tables (ADR 0007).
import:
+4 -3
View File
@@ -1,4 +1,5 @@
---
markup: occlusion
title: ext/web/dom
description: DOM Artifact — Markdown/body to structure; raw HTML is escape hatch only (ADR 0007).
import:
@@ -30,10 +31,10 @@ Escape hatch — wrap a raw HTML string. Prefer Markdown / View nodes.
Render a DOM Artifact (markdown or raw) to HTML via native plugin.
> cap.load
**kind = [kind](dom)**
**kind = [kind](access(dom, "kind"))**
1. `kind` == "raw"
**html = [html](dom)**
**html = [html](access(dom, "html"))**
*html*
2. *
**text = [text](dom)**
**text = [text](access(dom, "text"))**
*> web_dom_markdown text=`text`*
+3 -2
View File
@@ -1,4 +1,5 @@
---
markup: occlusion
title: ext/web/page
description: Document → View. Sole compose path is render(nodes=) with unified View schema (ADR 0007).
import:
@@ -37,13 +38,13 @@ Render Document to HTML. `nodes` is the unified View table; when omitted, uses `
> cap.load
**n = nodes**
1. `n` == None
**n = [nodes](self)**
**n = [nodes](access(self, "nodes"))**
2. *
**_ = 1**
1. `n`
*> web_render_nodes page=`self` nodes=`n` db=`db`*
2. *
**body = [body](self)**
**body = [body](access(self, "body"))**
*> web_render_document page=`self` body=`body` db=`db`*
## css
+9 -8
View File
@@ -1,4 +1,5 @@
---
markup: occlusion
title: ext/web/route
description: Declared Endpoint / Document route registration (ADR 0007).
import:
@@ -43,19 +44,19 @@ Register this declared route on an app handle.
> cap.load
**a = app**
1. `a` == None
**a = [app](self)**
**a = [app](access(self, "app"))**
2. *
**_ = 1**
**page = [page](self)**
**fn = [fn](self)**
**page = [page](access(self, "page"))**
**fn = [fn](access(self, "fn"))**
1. `page`
**path = [path](self)**
**path = [path](access(self, "path"))**
*> web_app_route app=`a` path=`path` page=`page`*
2. `fn`
**path = [path](self)**
**method = [method](self)**
**request = [request](self)**
**response = [response](self)**
**path = [path](access(self, "path"))**
**method = [method](access(self, "method"))**
**request = [request](access(self, "request"))**
**response = [response](access(self, "response"))**
*> web_app_invoke app=`a` path=`path` method=`method` fn=`fn` body=`request` return=`response`*
3. *
*> table.put in=None at="ok" value=False*
+1
View File
@@ -1,4 +1,5 @@
---
markup: occlusion
title: ext/web/web
description: >-
Web Artifact facade (ADR 0007) — page · route · serve · render · inspect · use.
+1
View File
@@ -1,4 +1,5 @@
---
markup: occlusion
title: ext/web/网页
description: >-
Web Artifact 中文 facade(ADR 0007)— 页面 · 路由 · 服务 · 渲染 · 检视 · 使用。