md2okf 0.3.0__tar.gz → 0.3.2__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.
- {md2okf-0.3.0 → md2okf-0.3.2}/.cspell.json +6 -2
- {md2okf-0.3.0 → md2okf-0.3.2}/.github/workflows/ci.yml +4 -2
- {md2okf-0.3.0 → md2okf-0.3.2}/.mcp.json +1 -1
- {md2okf-0.3.0 → md2okf-0.3.2}/AGENTS.md +15 -13
- {md2okf-0.3.0 → md2okf-0.3.2}/CHANGELOG.md +198 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/CONTRIBUTING.md +9 -6
- {md2okf-0.3.0 → md2okf-0.3.2}/Makefile +2 -2
- {md2okf-0.3.0 → md2okf-0.3.2}/PKG-INFO +10 -15
- {md2okf-0.3.0 → md2okf-0.3.2}/README.md +9 -14
- md2okf-0.3.2/SBX_VERSION +1 -0
- md2okf-0.3.2/VERSION +1 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/docs/configuration.md +16 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/extras/pdf2md/pyproject.toml +1 -1
- {md2okf-0.3.0 → md2okf-0.3.2}/extras/pdf2md/uv.lock +1 -1
- {md2okf-0.3.0 → md2okf-0.3.2}/extras/web2md/pyproject.toml +1 -1
- {md2okf-0.3.0 → md2okf-0.3.2}/extras/web2md/uv.lock +1 -1
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/claude/spec.yaml +6 -4
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/codex/spec.yaml +6 -4
- md2okf-0.3.2/kits/pi/README.md +250 -0
- md2okf-0.3.2/kits/pi/files/home/.pi/agent/mcp.json +11 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/pi/files/home/.pi/agent/models.json +1 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/pi/files/home/.pi/agent/settings.json +3 -1
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/pi/spec.yaml +132 -38
- {md2okf-0.3.0 → md2okf-0.3.2}/pyproject.toml +5 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/inspectmd/pyproject.toml +1 -1
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/inspectmd/uv.lock +1 -1
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/inspectokf/pyproject.toml +1 -1
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/inspectokf/uv.lock +1 -1
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/merkleokf/pyproject.toml +1 -1
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/merkleokf/uv.lock +1 -1
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/sizeokf/pyproject.toml +1 -1
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/sizeokf/uv.lock +1 -1
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/validate-spec.sh +10 -7
- {md2okf-0.3.0 → md2okf-0.3.2}/src/md2okf/agents.py +9 -5
- {md2okf-0.3.0 → md2okf-0.3.2}/src/md2okf/cli.py +1 -1
- {md2okf-0.3.0 → md2okf-0.3.2}/src/md2okf/sandbox.py +1 -1
- {md2okf-0.3.0 → md2okf-0.3.2}/tests/conftest.py +1 -1
- md2okf-0.3.2/tests/fixtures/protocols/pi/README.md +44 -0
- md2okf-0.3.2/tests/fixtures/protocols/pi/success-bash.jsonl +31 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/tests/test-mount-state.sh +5 -3
- md2okf-0.3.2/tests/test-sandbox-guest-pi.sh +347 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/tests/test-sandbox.sh +10 -1
- {md2okf-0.3.0 → md2okf-0.3.2}/tests/test_agents.py +28 -5
- {md2okf-0.3.0 → md2okf-0.3.2}/tests/test_cli.py +11 -10
- {md2okf-0.3.0 → md2okf-0.3.2}/tests/test_compile.py +10 -1
- {md2okf-0.3.0 → md2okf-0.3.2}/tests/test_protocol_pi.py +58 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/tests/test_sandbox.py +2 -2
- {md2okf-0.3.0 → md2okf-0.3.2}/tests/test_workbench.py +4 -4
- md2okf-0.3.0/SBX_VERSION +0 -1
- md2okf-0.3.0/VERSION +0 -1
- md2okf-0.3.0/kits/pi/README.md +0 -128
- md2okf-0.3.0/tests/test-sandbox-guest-pi.sh +0 -69
- {md2okf-0.3.0 → md2okf-0.3.2}/.coderabbit.yaml +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/.codex/config.toml +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/.codex/plans/.gitkeep +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/.editorconfig +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/.env.example +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/.github/workflows/release.yml +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/.gitignore +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/.markdownlint-cli2.yaml +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/.python-version +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/.shellcheckrc +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/.vscode/extensions.json +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/.vscode/mcp.json +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/.vscode/settings.json +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/.yamllint +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/CLAUDE.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/LICENSE +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/LICENSE-OKF-SPEC.txt +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/NOTICE-OKF-SPEC.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/SPEC.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/docs/architecture.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/docs/usage.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/extras/pdf2md/README.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/extras/web2md/README.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/extras/web2md/src/web2md.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/extras/web2md/tests/conftest.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/extras/web2md/tests/test_assemble.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/extras/web2md/tests/test_cleaning.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/extras/web2md/tests/test_cli.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/extras/web2md/tests/test_constants.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/extras/web2md/tests/test_converter.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/extras/web2md/tests/test_discovery.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/extras/web2md/tests/test_fetch.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/extras/web2md/tests/test_links.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/extras/web2md/tests/test_run.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/extras/web2md/tests/test_slugs.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/extras/web2md/tests/test_validate.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/claude/README.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/claude/files/home/.claude/skills/compile-okf/SKILL.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/claude/files/home/.claude/skills/compile-okf/scripts/check-okf.sh +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/claude/files/home/.claude/skills/compile-okf/scripts/frontmatter-guard.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/claude/files/home/.claude/skills/curate-okf/SKILL.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/claude/files/home/.claude/skills/inspect-md/SKILL.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/claude/files/home/.claude/skills/inspect-okf/SKILL.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/claude/files/home/.claude/skills/merkle-okf/SKILL.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/claude/files/home/.claude/skills/size-okf/SKILL.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/claude/files/home/.local/lib/md2okf/md2okf-agent.sh +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/claude/files/home/.local/lib/md2okf/mount-state.sh +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/codex/README.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/codex/files/home/.agents/skills/compile-okf/SKILL.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/codex/files/home/.agents/skills/compile-okf/scripts/check-okf.sh +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/codex/files/home/.agents/skills/compile-okf/scripts/frontmatter-guard.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/codex/files/home/.agents/skills/curate-okf/SKILL.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/codex/files/home/.agents/skills/inspect-md/SKILL.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/codex/files/home/.agents/skills/inspect-okf/SKILL.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/codex/files/home/.agents/skills/merkle-okf/SKILL.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/codex/files/home/.agents/skills/size-okf/SKILL.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/codex/files/home/.codex/AGENTS.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/codex/files/home/.local/lib/md2okf/md2okf-agent.sh +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/codex/files/home/.local/lib/md2okf/mount-state.sh +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/pi/files/home/.local/lib/md2okf/md2okf-agent.sh +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/pi/files/home/.local/lib/md2okf/mount-state.sh +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/pi/files/home/.pi/agent/AGENTS.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/pi/files/home/.pi/agent/skills/compile-okf/SKILL.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/pi/files/home/.pi/agent/skills/compile-okf/scripts/check-okf.sh +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/pi/files/home/.pi/agent/skills/compile-okf/scripts/frontmatter-guard.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/pi/files/home/.pi/agent/skills/curate-okf/SKILL.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/pi/files/home/.pi/agent/skills/inspect-md/SKILL.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/pi/files/home/.pi/agent/skills/inspect-okf/SKILL.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/pi/files/home/.pi/agent/skills/merkle-okf/SKILL.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/kits/pi/files/home/.pi/agent/skills/size-okf/SKILL.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/md/.gitkeep +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/md/GoogleStyleGuide-abridged.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/check-release-tag.sh +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/inspectmd/README.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/inspectmd/src/inspectmd/__init__.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/inspectmd/src/inspectmd/__main__.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/inspectmd/src/inspectmd/cli.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/inspectmd/src/inspectmd/parse.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/inspectmd/tests/test_cli.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/inspectmd/tests/test_parse.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/inspectokf/README.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/inspectokf/src/inspectokf/__init__.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/inspectokf/src/inspectokf/__main__.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/inspectokf/src/inspectokf/cli.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/inspectokf/tests/test_cli.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/merkleokf/README.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/merkleokf/src/merkleokf/__init__.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/merkleokf/src/merkleokf/__main__.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/merkleokf/src/merkleokf/cli.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/merkleokf/src/merkleokf/merkle.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/merkleokf/tests/test_cli.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/merkleokf/tests/test_merkle.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/release-notes.sh +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/sizeokf/README.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/sizeokf/src/sizeokf/__init__.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/sizeokf/src/sizeokf/__main__.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/sizeokf/src/sizeokf/cli.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/sizeokf/src/sizeokf/sizes.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/sizeokf/tests/test_cli.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/sizeokf/tests/test_sizes.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/scripts/sync-versions.sh +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/src/md2okf/__init__.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/src/md2okf/compile.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/src/md2okf/protocols/__init__.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/src/md2okf/protocols/claude.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/src/md2okf/protocols/codex.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/src/md2okf/protocols/pi.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/src/md2okf/resources.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/src/md2okf/workbench.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/tests/fixtures/protocols/claude/README.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/tests/fixtures/protocols/claude/error-max-turns.jsonl +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/tests/fixtures/protocols/claude/error-unknown-model.jsonl +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/tests/fixtures/protocols/claude/error-unknown-model.stderr +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/tests/fixtures/protocols/claude/success-no-tool-calls.jsonl +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/tests/fixtures/protocols/claude/success-write.jsonl +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/tests/fixtures/protocols/codex/README.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/tests/fixtures/protocols/codex/error-unknown-model.jsonl +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/tests/fixtures/protocols/codex/stderr.txt +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/tests/fixtures/protocols/codex/success-commands.jsonl +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/tests/fixtures/protocols/codex/success-write.jsonl +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/tests/fixtures/smoke.md +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/tests/test-sandbox-guest-claude.sh +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/tests/test-sandbox-guest-codex.sh +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/tests/test-sandbox-guest-common.sh +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/tests/test_frontmatter_guard.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/tests/test_kits.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/tests/test_package.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/tests/test_protocol_claude.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/tests/test_protocol_codex.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/tests/test_resources.py +0 -0
- {md2okf-0.3.0 → md2okf-0.3.2}/uv.lock +0 -0
|
@@ -13,10 +13,12 @@
|
|
|
13
13
|
"scripts/inspectokf/tests/**",
|
|
14
14
|
"scripts/sizeokf/tests/**",
|
|
15
15
|
"scripts/merkleokf/tests/**",
|
|
16
|
-
"tests/**"
|
|
16
|
+
"tests/**",
|
|
17
|
+
"tmp/**"
|
|
17
18
|
],
|
|
18
19
|
"words": [
|
|
19
20
|
"okf",
|
|
21
|
+
"dagre",
|
|
20
22
|
"mktemp",
|
|
21
23
|
"frontmatter",
|
|
22
24
|
"deepseek",
|
|
@@ -41,6 +43,8 @@
|
|
|
41
43
|
"pipefail",
|
|
42
44
|
"psutil",
|
|
43
45
|
"fdfind",
|
|
46
|
+
"buildx",
|
|
47
|
+
"codemode",
|
|
44
48
|
"venv",
|
|
45
49
|
"pyvenv",
|
|
46
50
|
"execvp",
|
|
@@ -103,4 +107,4 @@
|
|
|
103
107
|
"okflintrc",
|
|
104
108
|
"cwest"
|
|
105
109
|
]
|
|
106
|
-
}
|
|
110
|
+
}
|
|
@@ -152,7 +152,9 @@ jobs:
|
|
|
152
152
|
run: make dist
|
|
153
153
|
|
|
154
154
|
# Validate every kits/*/spec.yaml against the schema in the pinned sbx CLI.
|
|
155
|
-
#
|
|
155
|
+
# `make validate` runs `sbx kit validate --offline` (sbx 0.49.2 and newer),
|
|
156
|
+
# which needs neither a daemon nor `sbx login`, so a CI runner can do it
|
|
157
|
+
# (https://github.com/docker/sbx-releases/issues/685).
|
|
156
158
|
validate-kit:
|
|
157
159
|
runs-on: ubuntu-latest
|
|
158
160
|
timeout-minutes: 10
|
|
@@ -173,7 +175,7 @@ jobs:
|
|
|
173
175
|
set -euo pipefail
|
|
174
176
|
sbx_version="$(<SBX_VERSION)"
|
|
175
177
|
archive=/tmp/DockerSandboxes-linux.tar.gz
|
|
176
|
-
expected_sha256=
|
|
178
|
+
expected_sha256=a3f363998cd9f6caa7b02323a5d671987a9887a278fb888aca20fa9f80851e87
|
|
177
179
|
curl -fsSL \
|
|
178
180
|
"https://github.com/docker/sbx-releases/releases/download/v${sbx_version}/DockerSandboxes-linux.tar.gz" \
|
|
179
181
|
-o "${archive}"
|
|
@@ -123,7 +123,7 @@ generic modules. An agent is registered only once its kit ships.
|
|
|
123
123
|
|
|
124
124
|
Pi runs in one runtime: the Docker Sandbox (sbx) kit rooted at `kits/pi/`.
|
|
125
125
|
Its spec is `kits/pi/spec.yaml` and its Pi config (`AGENTS.md`,
|
|
126
|
-
`settings.json`, `models.json`, `skills/`) lives in
|
|
126
|
+
`settings.json`, `models.json`, `mcp.json`, `skills/`) lives in
|
|
127
127
|
`kits/pi/files/home/.pi/agent/`. The agent has `bash`, so it lints
|
|
128
128
|
its own output and dates its log entries, and the OpenRouter key stays outside
|
|
129
129
|
the VM (proxy-managed by sbx). Config is copied in at kit build time, so edits
|
|
@@ -235,10 +235,10 @@ CI because `okf/` is gitignored output, and the driver does not call it.
|
|
|
235
235
|
`make test-sandbox` is host-only for the other reason — it needs an sbx runtime
|
|
236
236
|
— and asks the driver for a sandbox, reusing the existing one when it is still
|
|
237
237
|
ours and still matches. `md2okf` takes `OPENROUTER_API_KEY` from `sbx secret`,
|
|
238
|
-
not from your shell (see the README for the
|
|
238
|
+
not from your shell (see the README for the setup). Anything that
|
|
239
239
|
touches a sandbox — `md2okf`, `make test-sandbox`, `sbx exec` — needs an active
|
|
240
|
-
`sbx login` session
|
|
241
|
-
static and do not.
|
|
240
|
+
`sbx login` session. `make validate` (offline), `make dist` and the pytest
|
|
241
|
+
suites are static and do not.
|
|
242
242
|
|
|
243
243
|
Pushing a `vX.Y.Z` tag triggers `.github/workflows/release.yml`: it verifies the
|
|
244
244
|
tag against `VERSION`, builds the wheel and sdist once, publishes them to PyPI
|
|
@@ -255,15 +255,17 @@ Sandbox Kit specs before considering the task complete:
|
|
|
255
255
|
./scripts/validate-spec.sh # or: make validate
|
|
256
256
|
```
|
|
257
257
|
|
|
258
|
-
This checks every `kits/*/spec.yaml` against the installed Sandbox Kit schema
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
`
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
258
|
+
This checks every `kits/*/spec.yaml` against the installed Sandbox Kit schema
|
|
259
|
+
after enforcing the minimum in `SBX_VERSION`. It runs `sbx kit validate
|
|
260
|
+
--offline`, which needs neither a daemon nor an `sbx login`
|
|
261
|
+
([docker/sbx-releases#685](https://github.com/docker/sbx-releases/issues/685),
|
|
262
|
+
fixed in sbx 0.49.2), so it works inside a sandbox, on the host and in CI,
|
|
263
|
+
where the `validate-kit` job (`.github/workflows/ci.yml`) runs it. Do not
|
|
264
|
+
finish a task until it passes. If the `sbx` CLI is
|
|
265
|
+
not installed, install it with `brew install docker/tap/sbx`; upgrade an older
|
|
266
|
+
installation through Homebrew or APT.
|
|
267
|
+
|
|
268
|
+
`make validate` only checks the spec against the schema. If you changed what the sandbox
|
|
267
269
|
installs or what it carries in `kits/pi/files/`, also run `sbx rm --force md2okf-pi &&
|
|
268
270
|
make test-sandbox AGENT=pi` — on its own `make test-sandbox` reuses whatever sandbox
|
|
269
271
|
is running, which may predate your edit.
|
|
@@ -8,6 +8,204 @@ and this project adheres to
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## [0.3.2] - 2026-10-22
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- **Pi can use GitHub's MCP server in `md2okf --agent`.** Pi has had a
|
|
16
|
+
built-in MCP client since 0.99.0
|
|
17
|
+
([earendil-works/pi#10040](https://github.com/earendil-works/pi/pull/10040)).
|
|
18
|
+
The kit now installs `github-mcp-server` `1.12.2` (pinned by SHA-256) and
|
|
19
|
+
configures it in `~/.pi/agent/mcp.json`. Its tools are deferred: `tool_search`,
|
|
20
|
+
switched on in `settings.json`, loads the ones a task needs.
|
|
21
|
+
`autoEnableCodemode` is off, so MCP does not switch codemode on by itself.
|
|
22
|
+
Compile turns get none of this: they run with `--no-mcp --tools -tool_search`,
|
|
23
|
+
the counterpart of Claude's `--strict-mcp-config` and Codex's gateway
|
|
24
|
+
override, so their tool set is the one they had on Pi 0.86.1.
|
|
25
|
+
- **The Pi kit declares an optional `github` credential.** `GH_TOKEN` is the
|
|
26
|
+
proxy-managed sentinel, injected as a bearer token on `api.github.com` and as
|
|
27
|
+
`x-access-token` basic auth on `github.com`. The entrypoint and the Pi kit's
|
|
28
|
+
`md2okf-agent` shim export it as `GITHUB_TOKEN` and
|
|
29
|
+
`GITHUB_PERSONAL_ACCESS_TOKEN` for `mcp.json`. Binding it is optional, and
|
|
30
|
+
`api.github.com` joins the allowlist. See
|
|
31
|
+
[GitHub MCP server](https://github.com/lars20070/md2okf/blob/master/kits/pi/README.md#github-mcp-server)
|
|
32
|
+
in the Pi kit guide.
|
|
33
|
+
- `settings.json` and `models.json` declare Pi's published `$schema`, for editor
|
|
34
|
+
completion and validation. Pi itself ignores it.
|
|
35
|
+
- `make test-sandbox AGENT=pi` checks the image's provenance (exactly one Pi,
|
|
36
|
+
at the pinned version), the new config, and the token exports through
|
|
37
|
+
`md2okf-agent`. With a GitHub secret bound, it also checks `gh`, the MCP
|
|
38
|
+
server's connection and one authenticated, read-only `get_me` call.
|
|
39
|
+
`REQUIRE_GITHUB=1` turns a missing secret from a skip into a failure.
|
|
40
|
+
- The Pi parser is now tested against a real Pi 1.4.0 `--mode json` stream
|
|
41
|
+
(`tests/fixtures/protocols/pi/`), run with the compile's own flags against a
|
|
42
|
+
scripted local model. It confirmed that md2okf's view is unchanged. 1.4.0
|
|
43
|
+
adds a `role: "system"` message, which the parser drops, as it should.
|
|
44
|
+
|
|
45
|
+
### Changed
|
|
46
|
+
|
|
47
|
+
- **md2okf now requires sbx 0.49.2 (was 0.48.0).** `SBX_VERSION`, CI's pinned
|
|
48
|
+
checksum and the README move together. sbx 0.49.2 is a security release that
|
|
49
|
+
rebuilds its built-in template images with updated CA certificates, after a
|
|
50
|
+
certificate authority compromise; it changes no kit-spec or CLI
|
|
51
|
+
flags. The kit fingerprint hashes the sbx version, so every existing sandbox
|
|
52
|
+
is rebuilt once, automatically, on its first use after the upgrade, and the
|
|
53
|
+
rebuild is what picks up the new images.
|
|
54
|
+
- **`make validate` runs `sbx kit validate --offline`, and CI's `validate-kit`
|
|
55
|
+
job is switched back on.** sbx 0.49.2 fixes
|
|
56
|
+
[docker/sbx-releases#685](https://github.com/docker/sbx-releases/issues/685):
|
|
57
|
+
`--offline` skips the daemon-backed kit policy, so validating a kit needs
|
|
58
|
+
neither a running daemon nor an `sbx login`. `make validate` therefore works
|
|
59
|
+
inside a sandbox and on a CI runner as well as on a signed-in host, and the
|
|
60
|
+
job (deleted `if: false`) checks every `kits/*/spec.yaml` on each pull request
|
|
61
|
+
against the schema of the exact sbx release in `SBX_VERSION`. Checked with
|
|
62
|
+
sbx 0.49.2 against all three kits. This reverses the 0.3.1 entry that
|
|
63
|
+
switched the job off.
|
|
64
|
+
- `make lint` skips a `tmp/` folder: markdownlint and cspell leave tracked
|
|
65
|
+
Markdown under it alone, and cspell ignores `tmp/**`. For scratch notes and
|
|
66
|
+
plans.
|
|
67
|
+
- **Pi `1.4.0`, up from `0.86.1`.** Pi now comes prebuilt in Docker's own Pi
|
|
68
|
+
image, `docker.io/sbx/pi-image`
|
|
69
|
+
([`docker/sbx-kits-contrib`](https://github.com/docker/sbx-kits-contrib/tree/main/pi)),
|
|
70
|
+
pinned by digest, instead of a kit-time `npm install -g`. Pi stopped shipping
|
|
71
|
+
a lockfile in 1.0.1, so npm no longer pins Pi's dependencies: the image's
|
|
72
|
+
install resolved them when Docker built it, and the digest freezes that. The
|
|
73
|
+
digest also freezes the `shell-docker` template beneath it, which used to
|
|
74
|
+
float, so template fixes now arrive only with a digest bump. `fd` comes from
|
|
75
|
+
the image too, as both `fd` and `fdfind`. Pi's changelog shows no change to
|
|
76
|
+
the `--mode json` events md2okf reads, or to the session format (still
|
|
77
|
+
version 3). Since Pi
|
|
78
|
+
1.0.0 the TUI in `md2okf --agent` runs fullscreen; set `tuiMode` to
|
|
79
|
+
`"regular"` to keep the terminal's own scrollback. Everything else is in
|
|
80
|
+
[Pi's changelog](https://github.com/earendil-works/pi/blob/v1.4.0/packages/coding-agent/CHANGELOG.md),
|
|
81
|
+
0.87.0 to 1.4.0.
|
|
82
|
+
- The Context7 Pi package is `0.1.3`, up from `0.1.2`. Upstream only updated
|
|
83
|
+
the examples in its tool descriptions.
|
|
84
|
+
- `read-pi-session-traces` reads Pi `1.4.0` traces. `inspect` now counts
|
|
85
|
+
standalone `usage` entries, such as prompt-cache warming, under a new
|
|
86
|
+
`auxiliary` source and in a new `usage.total`; before, that spend was
|
|
87
|
+
silently left out. It counts a codemode script's inner tool calls under
|
|
88
|
+
`nestedTools`, apart from direct calls. `show` lists system messages by
|
|
89
|
+
section and tool names only, never their prompt text, and marks an entry
|
|
90
|
+
that a later `context_edit` hides or replaces. Its examples point at
|
|
91
|
+
md2okf's own session directory.
|
|
92
|
+
- The Pi kit README no longer warns off `deepseek/deepseek-v4-flash` for its
|
|
93
|
+
4.1K output cap: Pi 1.4.0's catalogue lists 943.7K. It now says to check a
|
|
94
|
+
model's limits with `pi --list-models` before switching.
|
|
95
|
+
|
|
96
|
+
### Security
|
|
97
|
+
|
|
98
|
+
- **A bound GitHub secret is usable by every process in the `md2okf-pi`
|
|
99
|
+
sandbox, compile turns included.** The sbx proxy injects it into every
|
|
100
|
+
request to `api.github.com` and `github.com`, and a compile turn has `bash`,
|
|
101
|
+
so a source document that steers one could make authenticated GitHub requests
|
|
102
|
+
with `curl`, `gh` or `git`, with the token's full scope. `--no-mcp` keeps the
|
|
103
|
+
MCP tools out of a compile; it is not a credential boundary. Bind a
|
|
104
|
+
fine-grained, read-only token scoped to the repositories you need, or none.
|
|
105
|
+
`gh auth token | sbx secret set github` hands over the GitHub CLI's own
|
|
106
|
+
credential with every scope it has.
|
|
107
|
+
- GitHub MCP results are not inspected or filtered. Treat them as untrusted
|
|
108
|
+
input, like a source document.
|
|
109
|
+
- Trusting a project in `md2okf --agent` now also applies its `.pi/mcp.json`,
|
|
110
|
+
which can add MCP servers (a stdio server is an arbitrary command), override
|
|
111
|
+
the kit's, and switch `autoEnableCodemode` back on. Pi asks before it trusts
|
|
112
|
+
a project, and compile turns run in JSON mode, which skips project config.
|
|
113
|
+
The wiki is written by compile turns, so decline unless you put that file
|
|
114
|
+
there yourself.
|
|
115
|
+
|
|
116
|
+
### Upgrading
|
|
117
|
+
|
|
118
|
+
- Upgrade sbx to 0.49.2 or newer first (`brew upgrade sbx`): md2okf refuses an
|
|
119
|
+
older one. To rebuild a sandbox at once instead, run `md2okf --fresh` or
|
|
120
|
+
`sbx rm --force md2okf-<agent>`.
|
|
121
|
+
- The next run rebuilds `md2okf-pi` on its own, because the kit changed.
|
|
122
|
+
- A `github` secret you already set globally, for another sbx kit, binds to
|
|
123
|
+
`md2okf-pi` at that rebuild. Check with `sbx secret ls`, and read the
|
|
124
|
+
Security entry above before keeping it.
|
|
125
|
+
|
|
126
|
+
## [0.3.1] - 2026-10-18
|
|
127
|
+
|
|
128
|
+
### Added
|
|
129
|
+
|
|
130
|
+
- **A `/read-pi-session-traces` skill for Claude Code** (`.claude/skills/`, a
|
|
131
|
+
development tool that is not shipped in the wheel or sdist). It lists,
|
|
132
|
+
searches and summarises Pi's JSON Lines session traces by streaming them,
|
|
133
|
+
so a long trace is never loaded whole, and has its own offline test suite.
|
|
134
|
+
|
|
135
|
+
### Changed
|
|
136
|
+
|
|
137
|
+
- **md2okf now requires sbx 0.48.0 (was 0.45.0).** `SBX_VERSION`, CI's pinned
|
|
138
|
+
checksum and the README move together. The kit fingerprint hashes the sbx
|
|
139
|
+
version, so every existing sandbox is rebuilt once, automatically, on its
|
|
140
|
+
first use after the upgrade.
|
|
141
|
+
- **Sandboxes are created with `sbx run --detach`.** sbx 0.48 renamed the flag
|
|
142
|
+
and rejects the old `--detached`, so an older md2okf cannot create a sandbox
|
|
143
|
+
on sbx 0.48. `--dry-run` prints the new spelling.
|
|
144
|
+
- **The OpenRouter key needs only one secret.** Until now the README and Pi's
|
|
145
|
+
credential remedy also asked for a sandbox-scoped copy,
|
|
146
|
+
`sbx secret set-custom --sandbox md2okf-pi --host openrouter.ai …`, and cited
|
|
147
|
+
[docker/sbx-releases#25](https://github.com/docker/sbx-releases/issues/25) as
|
|
148
|
+
the reason. That issue was about GitHub credentials, not OpenRouter, and sbx
|
|
149
|
+
fixed it in 0.38.0. On sbx 0.48.0, the global `sbx secret set openrouter` alone
|
|
150
|
+
is enough. This was checked live, with no custom secret in any scope: a
|
|
151
|
+
freshly built `md2okf-pi` passed `make test-sandbox`, and a real compile of
|
|
152
|
+
`tests/fixtures/smoke.md` went through OpenRouter. The README and the remedy
|
|
153
|
+
now name only the global secret. See Upgrading to remove an old copy.
|
|
154
|
+
- **`make validate` needs an active `sbx login`, and CI no longer validates
|
|
155
|
+
the kits.** Since sbx 0.47, `sbx kit validate` needs a running daemon and a
|
|
156
|
+
Docker sign-in, even for a local directory
|
|
157
|
+
([docker/sbx-releases#685](https://github.com/docker/sbx-releases/issues/685)).
|
|
158
|
+
Upstream has closed the issue, but its `--offline` flag exists only in a dev
|
|
159
|
+
build and did not make it into 0.48.0. CI's `validate-kit` job is therefore
|
|
160
|
+
switched off (`if: false`), with its checksum still pinned to `SBX_VERSION`.
|
|
161
|
+
It comes back once a stable release ships `kit validate --offline`. Until
|
|
162
|
+
then, run `make validate` on a signed-in host. Inside a sandbox,
|
|
163
|
+
`sbx kit pack` is an offline stand-in.
|
|
164
|
+
- **The trace-bind call sites stay, although their upstream bug is fixed.**
|
|
165
|
+
[docker/sbx-releases#420](https://github.com/docker/sbx-releases/issues/420),
|
|
166
|
+
where `sbx daemon restart` stopped a kit's startup steps from running, was
|
|
167
|
+
fixed upstream after our old 0.45.0 floor, so 0.48.0 has the fix. The kit's
|
|
168
|
+
startup step therefore now also binds the
|
|
169
|
+
agent's trace directory after a daemon restart, including for sessions that
|
|
170
|
+
start no agent, such as `md2okf --shell`. The two other call sites still
|
|
171
|
+
bind as before, and were never only a workaround for #420. The kit
|
|
172
|
+
entrypoint binds synchronously for `sbx run`, and `md2okf-agent` does the
|
|
173
|
+
same for compile turns and `md2okf --agent`. Docker documents that startup
|
|
174
|
+
commands do not gate the entrypoint, and documents no ordering guarantee for
|
|
175
|
+
`sbx exec` at all. So both guards remain, and an agent starts only after a
|
|
176
|
+
successful bind: either guard refuses to start it when the bind fails. The
|
|
177
|
+
driver's other `sbx exec` calls, such as the `merkleokf` hash and the
|
|
178
|
+
credential check, start no agent and go through neither. Only the comments in
|
|
179
|
+
each `kits/*/spec.yaml` and `tests/test-mount-state.sh` that justified them
|
|
180
|
+
with #420 changed.
|
|
181
|
+
- The Context7 MCP server for host development tools (`.mcp.json`) moves from
|
|
182
|
+
`@upstash/context7-mcp` 4.0.0 to 4.1.1. Pi's separate sandbox integration,
|
|
183
|
+
`@upstash/context7-pi`, is unchanged.
|
|
184
|
+
- The README overview diagram pins Mermaid's `dagre` layout, so it keeps
|
|
185
|
+
rendering as before. The diagram's caption is now spell-checked, because the
|
|
186
|
+
`cspell:enable` marker moved up to directly after the diagram.
|
|
187
|
+
|
|
188
|
+
### Fixed
|
|
189
|
+
|
|
190
|
+
- **`uv run md2okf --version` no longer reports a stale version after
|
|
191
|
+
`VERSION` changes.** uv rebuilds a project only when a cache key changes, and
|
|
192
|
+
`VERSION` was not one, so a checkout kept its old build. `pyproject.toml` now
|
|
193
|
+
lists `VERSION` beside itself in `[tool.uv] cache-keys`.
|
|
194
|
+
|
|
195
|
+
### Upgrading
|
|
196
|
+
|
|
197
|
+
- Upgrade sbx to 0.48.0 or newer first: md2okf refuses an older one, and the
|
|
198
|
+
next run rebuilds each agent's sandbox on its own.
|
|
199
|
+
- If you set the OpenRouter key twice, remove the custom copy before that
|
|
200
|
+
rebuild. Find its placeholder with `sbx secret ls --sandbox md2okf-pi`, run
|
|
201
|
+
`sbx secret rm --sandbox md2okf-pi --placeholder <placeholder>`, and check
|
|
202
|
+
that `sbx secret ls --sandbox md2okf-pi` no longer lists it. Then run
|
|
203
|
+
`sbx rm --force md2okf-pi`. Name the sandbox both times: without
|
|
204
|
+
`--sandbox`, `sbx secret rm --placeholder` searches only the global scope,
|
|
205
|
+
and exits 0 even when it finds nothing there. A sandbox-scoped
|
|
206
|
+
secret overrides the global one, so a stale copy would keep being used even
|
|
207
|
+
after you rotate the global key. Keep the global `sbx secret set openrouter`.
|
|
208
|
+
|
|
11
209
|
## [0.3.0] - 2026-09-28
|
|
12
210
|
|
|
13
211
|
### Added
|
|
@@ -41,18 +41,19 @@ markdownlint needs `brew install markdownlint-cli2`; yamllint and ruff run via
|
|
|
41
41
|
`make check-okf` needs `okfctl`: `brew install cwest/tap/okfctl`.
|
|
42
42
|
|
|
43
43
|
CI (`.github/workflows/ci.yml`) runs seven jobs on every pull request: `lint`,
|
|
44
|
-
`test-shell`, `test-web2md`, `test-clis`, `test-md2okf`, `build-package
|
|
44
|
+
`test-shell`, `test-web2md`, `test-clis`, `test-md2okf`, `build-package` and
|
|
45
45
|
`validate-kit`. Each one reuses the matching make target, so a green
|
|
46
|
-
`make lint && make
|
|
47
|
-
make test-
|
|
46
|
+
`make lint && make test-shell && make test-web2md && make test-clis &&
|
|
47
|
+
make test-md2okf && make dist && make validate` locally means a green build.
|
|
48
48
|
|
|
49
49
|
## Validate the kit spec before you finish
|
|
50
50
|
|
|
51
51
|
Touch anything under `kits/` or `scripts/*.sh` and run `make validate`
|
|
52
52
|
before you call the job done. It checks every kit spec against the schema bundled
|
|
53
|
-
in your `sbx` binary,
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
in your `sbx` binary, using `sbx kit validate --offline`, so it needs no running
|
|
54
|
+
sbx daemon and no `sbx login`, and works on the host and inside a sandbox alike.
|
|
55
|
+
It first checks your `sbx` against the minimum below; upgrade through Homebrew
|
|
56
|
+
or APT when it reports an older install.
|
|
56
57
|
|
|
57
58
|
### The sbx minimum
|
|
58
59
|
|
|
@@ -62,6 +63,8 @@ The driver refuses an older `sbx` (the wheel carries the file, so an installed
|
|
|
62
63
|
same. CI's `validate-kit` job installs exactly that release, verified by
|
|
63
64
|
checksum, so the kits are always checked against one known schema. Local
|
|
64
65
|
installations may be newer, and those newer releases are not tested by CI.
|
|
66
|
+
The job runs `make validate`, which uses `sbx kit validate --offline`, so it
|
|
67
|
+
needs no daemon and no `sbx login`.
|
|
65
68
|
|
|
66
69
|
To raise the minimum, change all of these together:
|
|
67
70
|
|
|
@@ -56,12 +56,12 @@ endif
|
|
|
56
56
|
# '*/pyproject.toml' subprojects; its own [tool.ruff] scopes that walk away
|
|
57
57
|
# from md/, okf/, and everything else that isn't its source.
|
|
58
58
|
lint:
|
|
59
|
-
git ls-files -z -- '*.md' ':!md/' ':!.claude/' ':!.cursor/' ':!CLAUDE.md' ':!SPEC.md' \
|
|
59
|
+
git ls-files -z -- '*.md' ':!md/' ':!.claude/' ':!.cursor/' ':!CLAUDE.md' ':!SPEC.md' ':!tmp/*' \
|
|
60
60
|
| xargs -0 $(MARKDOWNLINT)
|
|
61
61
|
git ls-files -z -- '*.json' | xargs -0 -n1 jq empty
|
|
62
62
|
git ls-files -z -- '*.yaml' '*.yml' | xargs -0 $(YAMLLINT)
|
|
63
63
|
git ls-files -z -- '*.sh' | xargs -0 shellcheck
|
|
64
|
-
git ls-files -z -- '*.md' ':!md/' ':!.claude/' ':!.cursor/' ':!CLAUDE.md' ':!SPEC.md' \
|
|
64
|
+
git ls-files -z -- '*.md' ':!md/' ':!.claude/' ':!.cursor/' ':!CLAUDE.md' ':!SPEC.md' ':!tmp/*' \
|
|
65
65
|
| xargs -0 $(CSPELL) --no-progress
|
|
66
66
|
git ls-files -- 'pyproject.toml' '*/pyproject.toml' | xargs -n1 dirname | xargs $(RUFF) check
|
|
67
67
|
if [ ! -f VERSION ]; then \
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: md2okf
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: Compile Markdown into an OKF wiki with a coding agent (Pi, Claude Code or Codex), via a sandboxed sbx runtime
|
|
5
5
|
Project-URL: Homepage, https://github.com/lars20070/md2okf
|
|
6
6
|
Project-URL: Changelog, https://github.com/lars20070/md2okf/blob/master/CHANGELOG.md
|
|
@@ -46,6 +46,7 @@ other instructions.
|
|
|
46
46
|
```mermaid
|
|
47
47
|
---
|
|
48
48
|
config:
|
|
49
|
+
layout: dagre
|
|
49
50
|
flowchart:
|
|
50
51
|
nodeSpacing: 35
|
|
51
52
|
rankSpacing: 45
|
|
@@ -106,6 +107,8 @@ flowchart LR
|
|
|
106
107
|
style OUT fill:none,stroke:none
|
|
107
108
|
```
|
|
108
109
|
|
|
110
|
+
<!-- cspell:enable -->
|
|
111
|
+
|
|
109
112
|
<br>*Host tooling (amber) builds the microVM from the kit and drives it with one
|
|
110
113
|
`sbx exec` per source document. Inside, the coding agent (red) runs the
|
|
111
114
|
`/compile-okf` skill: it reads the source documents and `SPEC.md` (blue) and writes the wiki into `okf/` (blue), the
|
|
@@ -116,8 +119,6 @@ state (blue) is mounted from the host, so transcripts outlive the sandbox.
|
|
|
116
119
|
Model calls leave the VM only through the sbx credential proxy (teal), which
|
|
117
120
|
injects the API key; OpenRouter routes them to DeepInfra or other providers (gray).*
|
|
118
121
|
|
|
119
|
-
<!-- cspell:enable -->
|
|
120
|
-
|
|
121
122
|
## Contents
|
|
122
123
|
|
|
123
124
|
- [Quickstart](#quickstart)
|
|
@@ -163,7 +164,7 @@ The first flag opens a shell inside the sandbox, at the wiki root; the second op
|
|
|
163
164
|
|
|
164
165
|
## Install sbx
|
|
165
166
|
|
|
166
|
-
Install the `sbx` command-line tool, version 0.
|
|
167
|
+
Install the `sbx` command-line tool, version 0.49.2 or newer, and sign in.
|
|
167
168
|
`md2okf` refuses an older `sbx`.
|
|
168
169
|
|
|
169
170
|
[macOS:](https://docs.docker.com/ai/sandboxes/install/#install-on-macos)
|
|
@@ -187,23 +188,17 @@ sbx login
|
|
|
187
188
|
|
|
188
189
|
`sbx` keeps the key out of the virtual machine. It holds the real key on the
|
|
189
190
|
host and swaps it into requests at its proxy, so inside the sandbox
|
|
190
|
-
`$OPENROUTER_API_KEY` reads `proxy-managed`. Store the key with `sbx`
|
|
191
|
+
`$OPENROUTER_API_KEY` reads `proxy-managed`. Store the key with `sbx` once:
|
|
191
192
|
|
|
192
193
|
```bash
|
|
193
194
|
export OPENROUTER_API_KEY=sk-or-...
|
|
194
195
|
echo "$OPENROUTER_API_KEY" | sbx secret set openrouter
|
|
195
|
-
|
|
196
|
-
# And again as a custom secret, to work around a known sbx issue:
|
|
197
|
-
# https://github.com/docker/sbx-releases/issues/25
|
|
198
|
-
sbx secret set-custom --sandbox md2okf-pi \
|
|
199
|
-
--host openrouter.ai \
|
|
200
|
-
--env OPENROUTER_API_KEY \
|
|
201
|
-
--value "$OPENROUTER_API_KEY"
|
|
202
196
|
```
|
|
203
197
|
|
|
204
|
-
`md2okf-pi
|
|
205
|
-
`md2okf-<agent>`. The `export` only passes the key
|
|
206
|
-
`md2okf` reads it from `sbx secret`, never from your
|
|
198
|
+
The secret is global, so it reaches `md2okf-pi`, the sandbox Pi runs in; each
|
|
199
|
+
agent gets its own, called `md2okf-<agent>`. The `export` only passes the key
|
|
200
|
+
to the `sbx` command: `md2okf` reads it from `sbx secret`, never from your
|
|
201
|
+
shell environment.
|
|
207
202
|
|
|
208
203
|
## Further documentation
|
|
209
204
|
|
|
@@ -23,6 +23,7 @@ other instructions.
|
|
|
23
23
|
```mermaid
|
|
24
24
|
---
|
|
25
25
|
config:
|
|
26
|
+
layout: dagre
|
|
26
27
|
flowchart:
|
|
27
28
|
nodeSpacing: 35
|
|
28
29
|
rankSpacing: 45
|
|
@@ -83,6 +84,8 @@ flowchart LR
|
|
|
83
84
|
style OUT fill:none,stroke:none
|
|
84
85
|
```
|
|
85
86
|
|
|
87
|
+
<!-- cspell:enable -->
|
|
88
|
+
|
|
86
89
|
<br>*Host tooling (amber) builds the microVM from the kit and drives it with one
|
|
87
90
|
`sbx exec` per source document. Inside, the coding agent (red) runs the
|
|
88
91
|
`/compile-okf` skill: it reads the source documents and `SPEC.md` (blue) and writes the wiki into `okf/` (blue), the
|
|
@@ -93,8 +96,6 @@ state (blue) is mounted from the host, so transcripts outlive the sandbox.
|
|
|
93
96
|
Model calls leave the VM only through the sbx credential proxy (teal), which
|
|
94
97
|
injects the API key; OpenRouter routes them to DeepInfra or other providers (gray).*
|
|
95
98
|
|
|
96
|
-
<!-- cspell:enable -->
|
|
97
|
-
|
|
98
99
|
## Contents
|
|
99
100
|
|
|
100
101
|
- [Quickstart](#quickstart)
|
|
@@ -140,7 +141,7 @@ The first flag opens a shell inside the sandbox, at the wiki root; the second op
|
|
|
140
141
|
|
|
141
142
|
## Install sbx
|
|
142
143
|
|
|
143
|
-
Install the `sbx` command-line tool, version 0.
|
|
144
|
+
Install the `sbx` command-line tool, version 0.49.2 or newer, and sign in.
|
|
144
145
|
`md2okf` refuses an older `sbx`.
|
|
145
146
|
|
|
146
147
|
[macOS:](https://docs.docker.com/ai/sandboxes/install/#install-on-macos)
|
|
@@ -164,23 +165,17 @@ sbx login
|
|
|
164
165
|
|
|
165
166
|
`sbx` keeps the key out of the virtual machine. It holds the real key on the
|
|
166
167
|
host and swaps it into requests at its proxy, so inside the sandbox
|
|
167
|
-
`$OPENROUTER_API_KEY` reads `proxy-managed`. Store the key with `sbx`
|
|
168
|
+
`$OPENROUTER_API_KEY` reads `proxy-managed`. Store the key with `sbx` once:
|
|
168
169
|
|
|
169
170
|
```bash
|
|
170
171
|
export OPENROUTER_API_KEY=sk-or-...
|
|
171
172
|
echo "$OPENROUTER_API_KEY" | sbx secret set openrouter
|
|
172
|
-
|
|
173
|
-
# And again as a custom secret, to work around a known sbx issue:
|
|
174
|
-
# https://github.com/docker/sbx-releases/issues/25
|
|
175
|
-
sbx secret set-custom --sandbox md2okf-pi \
|
|
176
|
-
--host openrouter.ai \
|
|
177
|
-
--env OPENROUTER_API_KEY \
|
|
178
|
-
--value "$OPENROUTER_API_KEY"
|
|
179
173
|
```
|
|
180
174
|
|
|
181
|
-
`md2okf-pi
|
|
182
|
-
`md2okf-<agent>`. The `export` only passes the key
|
|
183
|
-
`md2okf` reads it from `sbx secret`, never from your
|
|
175
|
+
The secret is global, so it reaches `md2okf-pi`, the sandbox Pi runs in; each
|
|
176
|
+
agent gets its own, called `md2okf-<agent>`. The `export` only passes the key
|
|
177
|
+
to the `sbx` command: `md2okf` reads it from `sbx secret`, never from your
|
|
178
|
+
shell environment.
|
|
184
179
|
|
|
185
180
|
## Further documentation
|
|
186
181
|
|
md2okf-0.3.2/SBX_VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.49.2
|
md2okf-0.3.2/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.3.2
|
|
@@ -71,6 +71,22 @@ remove that agent's sandbox as described in
|
|
|
71
71
|
Pi uses an OpenRouter API key; see
|
|
72
72
|
[Set up the OpenRouter key](../README.md#set-up-the-openrouter-key).
|
|
73
73
|
|
|
74
|
+
A GitHub token is optional. It authenticates the GitHub MCP server that
|
|
75
|
+
`md2okf --agent` offers, along with `gh` and `git` over HTTPS. Pass it on stdin,
|
|
76
|
+
before the sandbox is created:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
printf '%s\n' "$MD2OKF_GITHUB_TOKEN" | sbx secret set github
|
|
80
|
+
sbx rm --force md2okf-pi
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
A bound token is usable by every process in the Pi sandbox, compile turns
|
|
84
|
+
included: the `sbx` proxy injects it into every request to GitHub, and a
|
|
85
|
+
compile turn has a shell. So use a fine-grained, read-only token scoped to the
|
|
86
|
+
repositories you need, or leave it unbound; a compile does not use it. See
|
|
87
|
+
[GitHub MCP server](../kits/pi/README.md#github-mcp-server) in the Pi kit
|
|
88
|
+
guide.
|
|
89
|
+
|
|
74
90
|
### Claude Code
|
|
75
91
|
|
|
76
92
|
Claude Code signs in with the host's `anthropic` secret:
|
|
@@ -408,10 +408,12 @@ setup:
|
|
|
408
408
|
chmod 0755 "$scripts/check-okf.sh"
|
|
409
409
|
description: Make the compile-okf check script executable
|
|
410
410
|
|
|
411
|
-
# Bind mounts do not survive a sandbox stop. The startup hook
|
|
412
|
-
#
|
|
413
|
-
#
|
|
414
|
-
#
|
|
411
|
+
# Bind mounts do not survive a sandbox stop. The startup hook does not gate
|
|
412
|
+
# the entrypoint or sbx exec; it covers sessions that launch no agent, such
|
|
413
|
+
# as a shell. The entrypoint above (for sbx run) and md2okf-agent.sh (see
|
|
414
|
+
# files below; for every process the driver starts with sbx exec) each bind
|
|
415
|
+
# synchronously and refuse to start the agent if the bind fails. The helper
|
|
416
|
+
# is idempotent.
|
|
415
417
|
startup:
|
|
416
418
|
- command:
|
|
417
419
|
- sh
|
|
@@ -179,10 +179,12 @@ setup:
|
|
|
179
179
|
chmod 0755 "$scripts/check-okf.sh"
|
|
180
180
|
description: Make the compile-okf check script executable
|
|
181
181
|
|
|
182
|
-
# Bind mounts do not survive a sandbox stop. The startup hook
|
|
183
|
-
#
|
|
184
|
-
#
|
|
185
|
-
#
|
|
182
|
+
# Bind mounts do not survive a sandbox stop. The startup hook does not gate
|
|
183
|
+
# the entrypoint or sbx exec; it covers sessions that launch no agent, such
|
|
184
|
+
# as a shell. The entrypoint above (for sbx run) and md2okf-agent.sh (see
|
|
185
|
+
# files below; for every process the driver starts with sbx exec) each bind
|
|
186
|
+
# synchronously and refuse to start the agent if the bind fails. The helper
|
|
187
|
+
# is idempotent.
|
|
186
188
|
startup:
|
|
187
189
|
- command:
|
|
188
190
|
- sh
|