marklark 0.1.0__tar.gz
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.
- marklark-0.1.0/.gitignore +4 -0
- marklark-0.1.0/CLAUDE.md +58 -0
- marklark-0.1.0/Cargo.lock +2529 -0
- marklark-0.1.0/Cargo.toml +38 -0
- marklark-0.1.0/LICENSE +6 -0
- marklark-0.1.0/LICENSE-APACHE +176 -0
- marklark-0.1.0/LICENSE-MIT +21 -0
- marklark-0.1.0/PKG-INFO +131 -0
- marklark-0.1.0/README.md +113 -0
- marklark-0.1.0/RELEASING.md +65 -0
- marklark-0.1.0/docs/agent-guide.md +183 -0
- marklark-0.1.0/docs/decisions.md +401 -0
- marklark-0.1.0/docs/host-functions.md +289 -0
- marklark-0.1.0/docs/mdship-lessons.md +50 -0
- marklark-0.1.0/docs/open-questions.md +12 -0
- marklark-0.1.0/docs/spec.md +421 -0
- marklark-0.1.0/examples/CHANGELOG.md +10 -0
- marklark-0.1.0/examples/README.md +97 -0
- marklark-0.1.0/examples/ai.md +6 -0
- marklark-0.1.0/examples/basics.md +54 -0
- marklark-0.1.0/examples/data/app.toml +6 -0
- marklark-0.1.0/examples/data/settings.json +4 -0
- marklark-0.1.0/examples/intents.md +16 -0
- marklark-0.1.0/examples/src/greet.py +12 -0
- marklark-0.1.0/examples/style.md +3 -0
- marklark-0.1.0/examples/test.md +30 -0
- marklark-0.1.0/pyproject.toml +25 -0
- marklark-0.1.0/src/ai.rs +569 -0
- marklark-0.1.0/src/apply.rs +293 -0
- marklark-0.1.0/src/blocks.rs +450 -0
- marklark-0.1.0/src/canon.rs +597 -0
- marklark-0.1.0/src/data.rs +228 -0
- marklark-0.1.0/src/document.rs +233 -0
- marklark-0.1.0/src/eval.rs +646 -0
- marklark-0.1.0/src/extract.rs +237 -0
- marklark-0.1.0/src/fs.rs +545 -0
- marklark-0.1.0/src/guide.rs +33 -0
- marklark-0.1.0/src/host.rs +464 -0
- marklark-0.1.0/src/inline.rs +204 -0
- marklark-0.1.0/src/lang.rs +43 -0
- marklark-0.1.0/src/lib.rs +23 -0
- marklark-0.1.0/src/libs.rs +164 -0
- marklark-0.1.0/src/main.rs +412 -0
- marklark-0.1.0/src/markdown.rs +157 -0
- marklark-0.1.0/src/mcp.rs +541 -0
- marklark-0.1.0/src/splice.rs +149 -0
- marklark-0.1.0/src/stamps.rs +311 -0
- marklark-0.1.0/src/state.rs +441 -0
- marklark-0.1.0/src/tasks.rs +330 -0
- marklark-0.1.0/tests/.gitkeep +0 -0
marklark-0.1.0/CLAUDE.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# marklark — orientation for agent sessions
|
|
2
|
+
|
|
3
|
+
## What this is
|
|
4
|
+
|
|
5
|
+
marklark is a planned Rust CLI + MCP server that maintains Markdown documents. Humans write
|
|
6
|
+
`<!--INTENT-->` blocks (prose); agents write `<!--CODE-->` blocks (hermetic Starlark); marklark runs the
|
|
7
|
+
code deterministically. See [README.md](README.md) for the one-page summary.
|
|
8
|
+
|
|
9
|
+
**Status (2026-11-26): design settled; library, CLI and MCP server work.** The library (`src/lib.rs`)
|
|
10
|
+
works on documents held in memory over a `FileSystem` abstraction (`MemoryFs`, `DiskFs`): blocks,
|
|
11
|
+
stamps, groups, canonical AST hash, task declarations, the evaluation loop with block-local variables,
|
|
12
|
+
splicing with `generated` guards, host functions, states (§9), inline values (§7.7), AI blocks (§12) and
|
|
13
|
+
`intent_apply`. CLI: `update`, `check`, `intent-check`, `intent-accept`, `mcp`, `skill`. The guide for agents
|
|
14
|
+
is `docs/agent-guide.md` (compiled into the binary: MCP `guide` tool, resource `marklark://guide`, and
|
|
15
|
+
`marklark skill`); keep it in step with the host functions. `examples/` has documents to try. Not yet: a step limit for
|
|
16
|
+
long-running CODE (deliberately deferred). The repository is public (github.com/verhas/marklark).
|
|
17
|
+
Releases go to crates.io, PyPI, npm and GitHub Releases from one tag (`.github/workflows/release.yml`,
|
|
18
|
+
see [RELEASING.md](RELEASING.md)); the version is `0.1.0` (`0.0.0` on crates.io is the old name
|
|
19
|
+
placeholder). `marklark.dev` is registered (renewal due 2027-11-26).
|
|
20
|
+
|
|
21
|
+
## Where things stand
|
|
22
|
+
|
|
23
|
+
The design came out of a long discussion that started as a feature idea for mdship (an `intent:` key on
|
|
24
|
+
placeholders) and ended with the decision to build a new product. Everything decided is in
|
|
25
|
+
[docs/decisions.md](docs/decisions.md); everything undecided is in
|
|
26
|
+
[docs/open-questions.md](docs/open-questions.md). Read in this order:
|
|
27
|
+
|
|
28
|
+
1. [docs/decisions.md](docs/decisions.md) — what is settled and why. Do not re-litigate these without the
|
|
29
|
+
user raising them.
|
|
30
|
+
2. [docs/spec.md](docs/spec.md) — the specification. Sections are labelled **[decided]** or
|
|
31
|
+
**[proposed]**; proposed parts are the author's leaning, not agreed.
|
|
32
|
+
3. [docs/open-questions.md](docs/open-questions.md) — the work queue for the design.
|
|
33
|
+
4. [docs/host-functions.md](docs/host-functions.md) — the standard library draft.
|
|
34
|
+
5. [docs/mdship-lessons.md](docs/mdship-lessons.md) — hard-won lessons from mdship.
|
|
35
|
+
|
|
36
|
+
## Next steps
|
|
37
|
+
|
|
38
|
+
1. The owner reviews the `[proposed]` items in `docs/spec.md` (output text, group binding of unstamped
|
|
39
|
+
blocks, plain-data variables, inline paths, AI states and `dep` restriction, exit codes, extra MCP
|
|
40
|
+
tools) and the deny list applying inside git too.
|
|
41
|
+
2. Use marklark on real documents (mdship's documentation is the natural test bed) and fix what that
|
|
42
|
+
shows.
|
|
43
|
+
3. The first release, `v0.1.0` (RELEASING.md); after it, npm trusted publishing replaces the token.
|
|
44
|
+
4. Later: a step limit for long-running CODE (deferred by the owner).
|
|
45
|
+
|
|
46
|
+
## Conventions for this repository
|
|
47
|
+
|
|
48
|
+
- When a design decision is made, add it to `docs/decisions.md` (next `D` number, date, decision,
|
|
49
|
+
reasoning), update `docs/spec.md`, and remove or update the entry in `docs/open-questions.md`.
|
|
50
|
+
- Keep `[decided]` / `[proposed]` labels in the spec accurate.
|
|
51
|
+
- Commit or push only when the user asks.
|
|
52
|
+
|
|
53
|
+
## Relationship to mdship
|
|
54
|
+
|
|
55
|
+
- mdship lives at `~/github/mdship` (Python). It stays maintained for pip-only enterprise environments.
|
|
56
|
+
**Do not modify mdship from this project**, and do not port mdship code — carry over lessons only.
|
|
57
|
+
- mdship's placeholder documentation (`~/github/mdship/documentation/*.md`) is the best catalogue of what
|
|
58
|
+
document maintenance actually needs; `docs/host-functions.md` maps every mdship feature onto marklark.
|