b3-prosaic 0.4.1__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.
- b3_prosaic-0.4.1/AGENTS.md +16 -0
- b3_prosaic-0.4.1/CHANGELOG.md +138 -0
- b3_prosaic-0.4.1/LICENSE +202 -0
- b3_prosaic-0.4.1/MANIFEST.in +6 -0
- b3_prosaic-0.4.1/NOTICE +5 -0
- b3_prosaic-0.4.1/PKG-INFO +209 -0
- b3_prosaic-0.4.1/README.md +187 -0
- b3_prosaic-0.4.1/conformance-fixtures/companion-file/github-copilot/command/.github/prompts/deploy.metadata.json +4 -0
- b3_prosaic-0.4.1/conformance-fixtures/companion-file/github-copilot/command/.github/prompts/deploy.prompt.md +6 -0
- b3_prosaic-0.4.1/conformance-fixtures/companion-file/github-copilot/rule/.github/instructions/style-guide.instructions.md +8 -0
- b3_prosaic-0.4.1/conformance-fixtures/companion-file/github-copilot/rule/.github/instructions/style-guide.metadata.json +4 -0
- b3_prosaic-0.4.1/conformance-fixtures/import-foreign/claude-code/.claude/team-guardrails.md +8 -0
- b3_prosaic-0.4.1/conformance-fixtures/import-foreign/cline/.clinerules/safety-rules.md +8 -0
- b3_prosaic-0.4.1/conformance-fixtures/import-foreign/codex-cli/.codex/prompts/summarize.toml +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/import-foreign/cursor/.cursor/rules/review-checklist.mdc +8 -0
- b3_prosaic-0.4.1/conformance-fixtures/import-foreign/gemini-cli/.gemini/commands/explain.toml +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/import-foreign/github-copilot/.github/instructions/test-guidance.instructions.md +9 -0
- b3_prosaic-0.4.1/conformance-fixtures/import-foreign/goose/.goose/recipes/refactor.yaml +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/import-foreign/roo-code/.roo/rules/commit-rules.md +8 -0
- b3_prosaic-0.4.1/conformance-fixtures/import-foreign/windsurf/.windsurf/rules/style-rules.md +8 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-frontmatter/aider/rule/.aider/rules/style-guide.md +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-frontmatter/amazon-q/rule/.amazonq/rules/style-guide.md +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-frontmatter/claude-code/command/.claude/commands/deploy.md +5 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-frontmatter/claude-code/rule/.claude/style-guide.md +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-frontmatter/claude-code/skill/.claude/skills/greeter.md +6 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-frontmatter/claude-code/skill/.claude/skills/reference.md +3 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-frontmatter/claude-code/subagent/.claude/agents/reviewer.md +8 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-frontmatter/cline/rule/.clinerules/style-guide.md +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-frontmatter/continue/rule/.continue/rules/style-guide.md +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-frontmatter/cursor/command/.cursor/commands/deploy.md +5 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-frontmatter/cursor/rule/.cursor/rules/style-guide.mdc +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-frontmatter/kilo-code/command/.kilocode/workflows/deploy.md +5 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-frontmatter/kilo-code/rule/.kilocode/rules/style-guide.md +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-frontmatter/roo-code/rule/.roo/rules/style-guide.md +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-frontmatter/windsurf/command/.windsurf/workflows/deploy.md +5 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-frontmatter/windsurf/rule/.windsurf/rules/style-guide.md +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-frontmatter/zed/rule/.rules/style-guide.md +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-longtail/agents-md/rule/style-guide.md +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-longtail/aide/rule/.aide/rules/style-guide.md +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-longtail/antigravity/rule/.antigravity/rules/style-guide.md +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-longtail/augmentcode/rule/.augment/rules/style-guide.md +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-longtail/bolt/rule/.bolt/rules/style-guide.md +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-longtail/cody/rule/.sourcegraph/rules/style-guide.md +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-longtail/crush/rule/.crush/rules/style-guide.md +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-longtail/devin/rule/.devin/rules/style-guide.md +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-longtail/firebase-studio/rule/.idx/airules/style-guide.md +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-longtail/gemini-code-assist/rule/.gemini/rules/style-guide.md +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-longtail/jules/rule/.jules/rules/style-guide.md +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-longtail/junie/rule/.junie/guidelines/style-guide.md +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-longtail/kiro/rule/.kiro/steering/style-guide.md +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-longtail/melty/rule/.melty/rules/style-guide.md +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-longtail/opencode/command/.opencode/command/deploy.md +5 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-longtail/opencode/rule/.opencode/rules/style-guide.md +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-longtail/openhands/rule/.openhands/microagents/style-guide.md +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-longtail/pearai/rule/.pearai/rules/style-guide.md +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-longtail/q-cli/command/.q/commands/deploy.md +5 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-longtail/q-cli/rule/.q/rules/style-guide.md +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-longtail/qwen-code/command/.qwen/commands/deploy.md +5 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-longtail/qwen-code/rule/.qwen/rules/style-guide.md +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-longtail/replit/rule/.replit/rules/style-guide.md +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-longtail/sweep/rule/.sweep/rules/style-guide.md +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-longtail/tabnine/rule/.tabnine/rules/style-guide.md +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-longtail/trae/rule/.trae/rules/style-guide.md +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-longtail/void/rule/.void/rules/style-guide.md +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-longtail/warp/rule/.warp/rules/style-guide.md +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/markdown-longtail/windsurf-next/rule/.windsurf-next/rules/style-guide.md +7 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/companion-file/github-copilot/command/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/companion-file/github-copilot/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-frontmatter/aider/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-frontmatter/amazon-q/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-frontmatter/claude-code/command/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-frontmatter/claude-code/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-frontmatter/claude-code/skill/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-frontmatter/claude-code/subagent/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-frontmatter/cline/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-frontmatter/continue/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-frontmatter/cursor/command/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-frontmatter/cursor/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-frontmatter/kilo-code/command/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-frontmatter/kilo-code/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-frontmatter/roo-code/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-frontmatter/windsurf/command/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-frontmatter/windsurf/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-frontmatter/zed/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-longtail/agents-md/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-longtail/aide/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-longtail/antigravity/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-longtail/augmentcode/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-longtail/bolt/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-longtail/cody/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-longtail/crush/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-longtail/devin/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-longtail/firebase-studio/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-longtail/gemini-code-assist/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-longtail/jules/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-longtail/junie/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-longtail/kiro/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-longtail/melty/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-longtail/opencode/command/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-longtail/opencode/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-longtail/openhands/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-longtail/pearai/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-longtail/q-cli/command/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-longtail/q-cli/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-longtail/qwen-code/command/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-longtail/qwen-code/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-longtail/replit/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-longtail/sweep/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-longtail/tabnine/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-longtail/trae/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-longtail/void/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-longtail/warp/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/markdown-longtail/windsurf-next/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/toml-command/codex-cli/command/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/toml-command/gemini-cli/command/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/yaml-recipe/goose/command/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/resolve/yaml-recipe/goose/rule/resolved.json +17 -0
- b3_prosaic-0.4.1/conformance-fixtures/toml-command/codex-cli/command/.codex/prompts/deploy.toml +4 -0
- b3_prosaic-0.4.1/conformance-fixtures/toml-command/gemini-cli/command/.gemini/commands/deploy.toml +4 -0
- b3_prosaic-0.4.1/conformance-fixtures/yaml-recipe/goose/command/.goose/recipes/deploy.yaml +4 -0
- b3_prosaic-0.4.1/conformance-fixtures/yaml-recipe/goose/rule/.goose/recipes/style-guide.yaml +6 -0
- b3_prosaic-0.4.1/docs/add-a-target.md +34 -0
- b3_prosaic-0.4.1/docs/contract-matrix.md +48 -0
- b3_prosaic-0.4.1/docs/contract-matrix.sources.md +40 -0
- b3_prosaic-0.4.1/docs/live-trial.md +81 -0
- b3_prosaic-0.4.1/docs/migration.md +39 -0
- b3_prosaic-0.4.1/docs/package-index.md +106 -0
- b3_prosaic-0.4.1/docs/packages.md +132 -0
- b3_prosaic-0.4.1/docs/parity-status.md +70 -0
- b3_prosaic-0.4.1/docs/release-0.3.0.md +55 -0
- b3_prosaic-0.4.1/docs/release-0.3.2.md +16 -0
- b3_prosaic-0.4.1/docs/review-findings.md +52 -0
- b3_prosaic-0.4.1/docs/superpowers/plans/2026-10-01-python-parity.md +64 -0
- b3_prosaic-0.4.1/docs/superpowers/plans/2026-10-10-core-production.md +151 -0
- b3_prosaic-0.4.1/docs/superpowers/plans/2026-10-10-ecosystem-distribution.md +121 -0
- b3_prosaic-0.4.1/docs/superpowers/plans/2026-10-10-ecosystem-hardening.md +107 -0
- b3_prosaic-0.4.1/docs/superpowers/specs/2026-10-10-ecosystem-production-design.md +558 -0
- b3_prosaic-0.4.1/docs/target-contracts.md +37 -0
- b3_prosaic-0.4.1/docs/tool-choice-diagnosis.md +86 -0
- b3_prosaic-0.4.1/docs/validation.md +59 -0
- b3_prosaic-0.4.1/docs/workflow-factory-core-implementation.md +42 -0
- b3_prosaic-0.4.1/examples/01-basic-write-preview-revert/.prosaic/commands/release.md +5 -0
- b3_prosaic-0.4.1/examples/01-basic-write-preview-revert/.prosaic/rules/style.md +6 -0
- b3_prosaic-0.4.1/examples/01-basic-write-preview-revert/README.md +53 -0
- b3_prosaic-0.4.1/examples/01-basic-write-preview-revert/example.manifest.json +29 -0
- b3_prosaic-0.4.1/examples/01-basic-write-preview-revert/prosaic.config.yaml +5 -0
- b3_prosaic-0.4.1/examples/02-multi-artifact-type/.prosaic/commands/changelog.md +5 -0
- b3_prosaic-0.4.1/examples/02-multi-artifact-type/.prosaic/rules/api-conventions.md +6 -0
- b3_prosaic-0.4.1/examples/02-multi-artifact-type/.prosaic/skills/onboarding.md +6 -0
- b3_prosaic-0.4.1/examples/02-multi-artifact-type/.prosaic/subagents/reviewer.md +6 -0
- b3_prosaic-0.4.1/examples/02-multi-artifact-type/README.md +31 -0
- b3_prosaic-0.4.1/examples/02-multi-artifact-type/example.manifest.json +17 -0
- b3_prosaic-0.4.1/examples/02-multi-artifact-type/prosaic.config.yaml +5 -0
- b3_prosaic-0.4.1/examples/03-import/README.md +32 -0
- b3_prosaic-0.4.1/examples/03-import/example.manifest.json +11 -0
- b3_prosaic-0.4.1/examples/03-import/foreign-fixture/.claude/broken-notes.md +5 -0
- b3_prosaic-0.4.1/examples/03-import/foreign-fixture/.claude/team-guardrails.md +8 -0
- b3_prosaic-0.4.1/examples/04-resolve/.prosaic/rules/style.md +4 -0
- b3_prosaic-0.4.1/examples/04-resolve/README.md +34 -0
- b3_prosaic-0.4.1/examples/04-resolve/example.manifest.json +17 -0
- b3_prosaic-0.4.1/examples/04-resolve/prosaic.config.yaml +2 -0
- b3_prosaic-0.4.1/examples/05-multi-repository/README.md +53 -0
- b3_prosaic-0.4.1/examples/05-multi-repository/company-source/.prosaic/rules/shared-style.md +4 -0
- b3_prosaic-0.4.1/examples/05-multi-repository/consuming-app/prosaic.config.yaml +5 -0
- b3_prosaic-0.4.1/examples/05-multi-repository/example.manifest.json +11 -0
- b3_prosaic-0.4.1/examples/README.md +34 -0
- b3_prosaic-0.4.1/pyproject.toml +33 -0
- b3_prosaic-0.4.1/scripts/audit_live_harness.py +76 -0
- b3_prosaic-0.4.1/scripts/diagnose_tool_choice.py +110 -0
- b3_prosaic-0.4.1/scripts/reference-cli-adapter.cjs +9 -0
- b3_prosaic-0.4.1/scripts/release_artifacts.py +442 -0
- b3_prosaic-0.4.1/scripts/verify_live_consumers.py +129 -0
- b3_prosaic-0.4.1/scripts/verify_migration.py +107 -0
- b3_prosaic-0.4.1/scripts/wheel_smoke.py +61 -0
- b3_prosaic-0.4.1/setup.cfg +4 -0
- b3_prosaic-0.4.1/src/b3_prosaic.egg-info/PKG-INFO +209 -0
- b3_prosaic-0.4.1/src/b3_prosaic.egg-info/SOURCES.txt +214 -0
- b3_prosaic-0.4.1/src/b3_prosaic.egg-info/dependency_links.txt +1 -0
- b3_prosaic-0.4.1/src/b3_prosaic.egg-info/entry_points.txt +2 -0
- b3_prosaic-0.4.1/src/b3_prosaic.egg-info/requires.txt +10 -0
- b3_prosaic-0.4.1/src/b3_prosaic.egg-info/top_level.txt +1 -0
- b3_prosaic-0.4.1/src/prosaic/__init__.py +39 -0
- b3_prosaic-0.4.1/src/prosaic/__main__.py +3 -0
- b3_prosaic-0.4.1/src/prosaic/cli.py +247 -0
- b3_prosaic-0.4.1/src/prosaic/compat.py +448 -0
- b3_prosaic-0.4.1/src/prosaic/config.py +158 -0
- b3_prosaic-0.4.1/src/prosaic/core.py +271 -0
- b3_prosaic-0.4.1/src/prosaic/data/help.json +13 -0
- b3_prosaic-0.4.1/src/prosaic/filesystem.py +363 -0
- b3_prosaic-0.4.1/src/prosaic/import_toml.py +468 -0
- b3_prosaic-0.4.1/src/prosaic/importing.py +673 -0
- b3_prosaic-0.4.1/src/prosaic/lifecycle.py +157 -0
- b3_prosaic-0.4.1/src/prosaic/locking.py +121 -0
- b3_prosaic-0.4.1/src/prosaic/packages.py +176 -0
- b3_prosaic-0.4.1/src/prosaic/pipeline.py +301 -0
- b3_prosaic-0.4.1/src/prosaic/registry.py +271 -0
- b3_prosaic-0.4.1/src/prosaic/toml_types.py +113 -0
- b3_prosaic-0.4.1/src/prosaic/tools.py +128 -0
- b3_prosaic-0.4.1/src/prosaic/validation.py +84 -0
- b3_prosaic-0.4.1/tests/test_cli.py +56 -0
- b3_prosaic-0.4.1/tests/test_core.py +167 -0
- b3_prosaic-0.4.1/tests/test_distribution_metadata.py +40 -0
- b3_prosaic-0.4.1/tests/test_filesystem_failures.py +262 -0
- b3_prosaic-0.4.1/tests/test_fixtures.py +58 -0
- b3_prosaic-0.4.1/tests/test_importing.py +271 -0
- b3_prosaic-0.4.1/tests/test_lifecycle.py +200 -0
- b3_prosaic-0.4.1/tests/test_live_trial_audit.py +24 -0
- b3_prosaic-0.4.1/tests/test_packages.py +143 -0
- b3_prosaic-0.4.1/tests/test_pipeline.py +133 -0
- b3_prosaic-0.4.1/tests/test_project_lock.py +252 -0
- b3_prosaic-0.4.1/tests/test_project_validation.py +261 -0
- b3_prosaic-0.4.1/tests/test_public_validation.py +106 -0
- b3_prosaic-0.4.1/tests/test_release_artifacts.py +322 -0
- b3_prosaic-0.4.1/tests/test_resolve.py +58 -0
- b3_prosaic-0.4.1/tests/test_review_regressions.py +145 -0
- b3_prosaic-0.4.1/tests/test_tools.py +100 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Prosaic
|
|
2
|
+
|
|
3
|
+
Prosaic is a Python 3.11+ canonical Markdown distribution engine. Generic prose
|
|
4
|
+
parsing, target adapters, rendering, configuration, import, manifests, packages,
|
|
5
|
+
and read-only tool catalogue discovery belong here. Model execution belongs in
|
|
6
|
+
Prosaic Runtime; workflow orchestration belongs in Prosaic Harness or consumers.
|
|
7
|
+
|
|
8
|
+
Production code is under `src/prosaic/` and must not execute TypeScript or Node.
|
|
9
|
+
Keep serialized camelCase contracts and existing on-disk formats compatible.
|
|
10
|
+
Never execute catalogue manifests here; discovery is read-only configuration.
|
|
11
|
+
|
|
12
|
+
Use apply_patch for edits. Run `.venv/bin/python -m pytest` for the full suite.
|
|
13
|
+
For differential tests, bootstrap the immutable v0.2.0 TypeScript reference with
|
|
14
|
+
`.venv/bin/python scripts/verify_migration.py`. Node/npm are test-only oracles.
|
|
15
|
+
Build with `.venv/bin/python -m build`, and verify the installed wheel using
|
|
16
|
+
`scripts/wheel_smoke.py`. Preserve unrelated user changes and historic evidence.
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
- Abort apply and package deployment before output reconciliation when source
|
|
11
|
+
enumeration or reads fail; a missing canonical source cannot remove managed outputs.
|
|
12
|
+
- Replace generated files atomically, preserve file permissions, and retain
|
|
13
|
+
correctly sequenced backups through symlink project aliases.
|
|
14
|
+
- Add read-only project validation and safe versioned CI diagnostics, with
|
|
15
|
+
CommonMark bundle links, explicit source failures and configured loss severity.
|
|
16
|
+
- Serialize project provenance mutations with persistent OS-backed locks and
|
|
17
|
+
reserve their coordination inode throughout filesystem operations.
|
|
18
|
+
- Prepare `b3-prosaic` 0.4.1 for the public package-index channel, preserving
|
|
19
|
+
Python imports, CLI commands and historical artifact identities.
|
|
20
|
+
|
|
21
|
+
## [0.3.2] - 2026-10-10
|
|
22
|
+
|
|
23
|
+
- Export pure validate_artifact_definition for explicit canonical kinds and
|
|
24
|
+
frontmatter, preserving existing validation/discovery contracts and extensions.
|
|
25
|
+
|
|
26
|
+
## [0.3.0] - 2026-10-01
|
|
27
|
+
|
|
28
|
+
### Changed
|
|
29
|
+
|
|
30
|
+
- Replaced the TypeScript implementation with Python 3.11+, retaining the
|
|
31
|
+
`prosaic` distribution, repository, import module, and CLI names.
|
|
32
|
+
- Installation now uses pip, pipx, or uv; npm distribution and the JavaScript
|
|
33
|
+
library API are retired. Python APIs use snake_case; serialized contract keys,
|
|
34
|
+
Markdown/configuration formats, ownership manifests, and CLI commands remain.
|
|
35
|
+
- Python CI, wheel/source distributions, frozen TypeScript differential checks,
|
|
36
|
+
original CLI suites, and installed-wheel checks replace the Node build.
|
|
37
|
+
- Preserved the 0.2.0 read-only `tools` catalogue and its safety limits.
|
|
38
|
+
- Reject dangling symlink escapes and bound cyclic package-directory traversal.
|
|
39
|
+
|
|
40
|
+
### Migration evidence and limits
|
|
41
|
+
|
|
42
|
+
- Fresh local checks: 432 Python tests, 55 original CLI tests across 13 suites,
|
|
43
|
+
265 Runtime tests, 107 Harness tests, and ten installed-wheel smoke checks.
|
|
44
|
+
- Runtime/Harness offline and live workflow trials exercised Python Prosaic.
|
|
45
|
+
- Echelon with Codex authored, reviewed, repaired, and validated the reverse-text
|
|
46
|
+
CLI spec, stopping at the expected semi-mode human approval checkpoint.
|
|
47
|
+
- Full Echelon design/planning/publication and Claude remain untested. Local
|
|
48
|
+
forced-read tool-choice limitations occur with both TS and Python inspectors.
|
|
49
|
+
- Previous TypeScript sources and releases remain recoverable in Git history
|
|
50
|
+
and the v0.2.0 tag; production consumer pins/installers are not changed here.
|
|
51
|
+
|
|
52
|
+
## [0.2.0] - 2026-10-01
|
|
53
|
+
|
|
54
|
+
### Added
|
|
55
|
+
|
|
56
|
+
- Read-only neutral CLI-tool catalogue: `prosaic tools`, `discoverTools` and
|
|
57
|
+
`ToolManifest`; bounded YAML manifests, closed string-argument schemas,
|
|
58
|
+
deterministic discovery and fail-closed duplicate/symlink checks. Discovery
|
|
59
|
+
never installs, probes, executes or grants tool access.
|
|
60
|
+
|
|
61
|
+
### Changed
|
|
62
|
+
|
|
63
|
+
- Apache-2.0 licensing, with third-party attribution retained.
|
|
64
|
+
- CI uses the installed default Jest reporter rather than an unavailable reporter.
|
|
65
|
+
- Refreshed the tracked verification receipts with the full release test suite.
|
|
66
|
+
|
|
67
|
+
The earlier entries below describe features already included in v0.1.0; they
|
|
68
|
+
were previously left in the Unreleased section.
|
|
69
|
+
|
|
70
|
+
### Added
|
|
71
|
+
|
|
72
|
+
- `prosaic import` CLI command for reverse-engineering existing tool-specific prose files into neutral source.
|
|
73
|
+
- Auto-detection of tool format from directory conventions (e.g., `.claude/`, `.cursor/`) with fallback to explicit `--format` flag.
|
|
74
|
+
- Round-trip verification: after import, re-deploys neutralized artifacts to the originating tool and compares byte-for-byte against the original, reporting fidelity per file.
|
|
75
|
+
- Portability warnings for absolute paths, project-relative paths, unknown frontmatter keys, and tool-only data with concrete remediation suggestions.
|
|
76
|
+
- Per-target `overrides:` section for non-invertible or unknown keys, ensuring zero silent data loss.
|
|
77
|
+
- Support for multi-file skill and subagent bundles with resource re-association and internal reference rewriting.
|
|
78
|
+
- Companion metadata file consumption and per-target fidelity level reporting (fully-invertible, invertible-with-overrides, normalized-equivalent).
|
|
79
|
+
- Genuine-foreign round-trip conformance oracle (SC-003): round-trips against hand-authored/captured foreign files committed under `conformance-fixtures/import-foreign/` — one static artifact per import-stable target — so re-deploying the neutralized artifact must reproduce the committed original byte-for-byte. Decoupled from the live serializer, this oracle catches serializer drift the self-referential conformance oracle cannot.
|
|
80
|
+
- Testing commands documented: `npm run test:benchmark`, `npm run test:cross-env`, `npm run test:deterministic` for NFR verification.
|
|
81
|
+
- Measured-runtime import-safety evidence under `tests/safety/import/`: the real end-to-end `importRun` is exercised against a genuinely-foreign corpus (`conformance-fixtures/import-foreign/`, never produced by the tool's own forward pipeline) with syscall-level filesystem instrumentation (`fs-instrument.ts`) rather than hand-maintained counters. Covers source-level idempotency (NFR-002, SC-006), no-silent-drop across the full registry (NFR-005, SC-002), single-command auto-detect import per target (SC-001), the neutralize→gate→round-trip conformance gate (NFR-008), and preview/dry-run zero-mutation guarantees (FR-069).
|
|
82
|
+
- All 48 delivery tasks complete (100%); all 114 canonical requirements fulfilled or deferred-safe per spec-guard audit.
|
|
83
|
+
- `prosaic resolve <artifactId> --target <targetId>` CLI subcommand: resolves an artifact-target pair's execution settings (model, reasoning effort, tools, execution type) as structured JSON on stdout, without writing any file or invoking a network call or LLM. Exits 1 with an `error: <message>` line on an unregistered target or an unresolvable artifact.
|
|
84
|
+
- Library API export `resolveExecutionData(opts: ResolveOptions): ResolveExecutionResult` and the lower-level pure function `resolveExecution(artifact, descriptor): ResolvedExecutionData`, both newly exported from the package root, for external orchestrators (e.g. Echelon) that need resolved execution settings without parsing generated provider files. `resolveExecutionData` never throws; callers branch on `result.ok` and, on failure, `result.errorKind` (`'unregistered-target' | 'artifact-not-found' | 'internal'`).
|
|
85
|
+
- New exported types: `ResolvedExecutionData`, `ResolveExecutionResult`, `ResolveOptions`, and the `ArtifactNotFoundError` error class.
|
|
86
|
+
- Resolution reuses the same neutral-to-concrete translation logic already used for file presentation (`translateNeutral`/`applyOverrides`/`resolveDeploymentType`), so resolved values never diverge from what `apply` would generate for the same artifact-target pair; an untranslatable neutral property is reported with `status: "unresolved"` rather than omitted.
|
|
87
|
+
- Library API export `runtimeCapabilityFor(desc: TargetDescriptor): RuntimeCapabilityDeclaration`, newly exported from the package root, plus `Registry.runtimeCapability(id: string)`, for querying a target's declared runtime-invocation acceptance (model, reasoning effort, tools, execution type) ahead of calling `resolveExecutionData`/`resolveExecution`. Each of the 4 fields reports `'accepts' | 'rejects' | 'unknown'`; an absent declaration, or an absent individual field, always reports `'unknown'` rather than assuming `'accepts'`. `Registry.runtimeCapability` throws `UnknownTargetError` for an unregistered target id, matching `.get()`/`.supports()`. New exported types: `RuntimeCapabilityDeclaration`, `RuntimeCapabilityFlag`, and the `RUNTIME_CAPABILITY_FLAGS` const. No built-in target currently declares a `runtimeCapability` value, so every built-in target reports all-`'unknown'` today; declaring per-target values is a separate follow-up.
|
|
88
|
+
- `examples/` directory with five self-contained, runnable example projects — `01-basic-write-preview-revert`, `02-multi-artifact-type`, `03-import`, `04-resolve`, and `05-multi-repository` — each pairing a narrative `README.md` with a project runnable using only files inside its own directory and no network access. Discoverable from a new `## Examples` section in the root `README.md` and indexed in `examples/README.md`.
|
|
89
|
+
- Example Verification Check (`tests/examples/examples.test.ts`, auto-discovered by the existing Jest `testMatch`): runs every example's declared CLI steps and byte-diffs live output against a committed Expected-Output Record, reporting a coverage gap (never a silent pass) for any example missing its `example.manifest.json`, and naming exactly one divergence-failure per byte-mismatched step.
|
|
90
|
+
- `prosaic inspect <artifactId>` CLI subcommand and library API export `inspectArtifact(opts: InspectOptions): InspectionResult`, both newly exported from the package root: a supported, machine-readable "inspect" capability that returns one discovered artifact's full neutral data (identifier, type, frontmatter, body, bundle root, bundled resources) as structured JSON, without writing any file or invoking a network call. Follows the same never-throws, discover-then-find, JSON-on-stdout pattern as `resolve`; an optional `--json` CLI flag is accepted for compatibility but never changes output, since output is unconditionally machine-readable. `resources`/`bundleRoot` are always present (`[]`/`null` for a standalone artifact), never omitted. Identifier lookup is exact case-sensitive comparison; a nonexistent identifier and a discovery-validation-dropped identifier both report the same `errorKind: 'artifact-not-found'` result in this release — distinguishing the two causes is deferred to a future revision. New exported types: `InspectedArtifact`, `InspectedResource`, `InspectionResult`, `InspectOptions`. No `--target` option exists on this command; inspect returns target-neutral, pre-translation data only.
|
|
91
|
+
- `model_tier` optional frontmatter field (rule, skill, subagent, command): a permissive-string field for declaring a coarse capability tier (e.g. `fast`, `balanced`, `strong`, `ultra`, or any other string) without naming a concrete model. Validated at Discovery identically to `effort`; visible verbatim via `inspect`; passed through unchanged into every target's rendered output with no Prosaic-defined tier-to-model mapping — deliberately excluded from the Neutral Behavior Vocabulary (`NEUTRAL_KEYS`), so it is never translated or stripped. See [Target On-Disk Contracts](docs/target-contracts.md) for the full neutral-adjacent frontmatter vocabulary.
|
|
92
|
+
- `prosaic package deploy <packageId> [--dry-run]` CLI subcommand: a generic, application-agnostic package deployment mechanism, distinct from and coexisting unmodified alongside `apply`/`render`/`inspect`/`import`/`revert`. An application maintainer declares one or more named packages (`id`, `sourceRoot`, `destinationRoot`) under a new optional `packages:` config array; `packages` is fully optional and a project declaring none behaves identically to a project without this feature. Deployment copies a declared package's Neutral Artifact Tree (`commands/`, `subagents/`) byte-identical with no render-pipeline translation, and its Package Runtime Tree (every other top-level entry, any file type) verbatim, never parsed or classified as a Prosaic artifact. Provenance-tracked via the existing manifest (package-specific identifier), idempotent, dry-run previewable, reconciles obsolete files on redeploy without ever touching an unmanaged Foreign Path, and backs up content-changing overwrites (up to 3 prior versions, matching render-target retention). Every filesystem mutation is containment-checked and destination-isolated from sibling packages and existing render targets. See [Package Deployment](docs/packages.md).
|
|
93
|
+
- `prosaic package revert <packageId> [--dry-run]` CLI subcommand (Should-Have): mirrors the provenance-guarded revert behavior already provided for render-target output, removing exactly the files recorded as belonging to the declared package while never touching a Foreign Path; `--dry-run` previews the removal, writing 0 files.
|
|
94
|
+
- Library API export `deployPackage(opts: PackageDeployOptions): PackageDeployReport` and `revertPackage(opts: PackageRevertOptions): PackageRevertReport`, both from `src/package/run.ts`, plus the `PackageDeclaration`, `PackageDeployOptions`, `PackageDeployReport`, `PackageRevertOptions`, `PackageRevertReport`, `PackageValidationError`, and `UnknownPackageError` types/classes, for programmatic package deployment and revert.
|
|
95
|
+
- Global `--color` / `--no-color` CLI flag to force terminal color on or off (auto-detected by default), accepted by `apply`, `import`, and `revert`.
|
|
96
|
+
- Standard `NO_COLOR` and `FORCE_COLOR` environment support, including `FORCE_COLOR=0` (disable) and `NO_COLOR`-wins-over-`FORCE_COLOR` precedence.
|
|
97
|
+
- Per-stream TTY-gated ANSI color styling of previews, run summaries, warnings, and errors (stdout and stderr resolved independently) via a plain-by-default, zero-runtime-dependency ANSI helper.
|
|
98
|
+
- Per-state color coding (created / overwrite / error / unchanged) plus an underlined path style, each paired with a non-color text/glyph signal for accessibility.
|
|
99
|
+
- ASCII glyph fallback (`[ok]`, `[drop]`, `->`) so non-interactive and legacy/non-UTF terminals stay ASCII-only.
|
|
100
|
+
- Aligned run-summary counts and a grouped portability report with one remediation line per warning, deterministic at any terminal width.
|
|
101
|
+
|
|
102
|
+
### Changed
|
|
103
|
+
|
|
104
|
+
- README "Existing Repositories" adoption guide now points at the shipped `prosaic import` command for reverse-importing native tool directories, replacing the earlier "no import command yet" / "reverse import is not in the current CLI" notes that predated the import feature.
|
|
105
|
+
- Warning lines now use the structured format `warning[<kind>] <artifact> → <target>: <message>` (the arrow is `->` in plain mode); error lines consistently begin with `error: `.
|
|
106
|
+
|
|
107
|
+
### Performance
|
|
108
|
+
|
|
109
|
+
- Measured: 100 artifacts × 30 targets distributed in ~816 ms (threshold: 30 000 ms); byte-identical output verified across 510 files on darwin/Node 26.
|
|
110
|
+
- Cross-environment reproducibility confirmed: deterministic render verified across Linux and macOS (NFR-007, NFR-009).
|
|
111
|
+
- Measured-runtime coverage evidence for resolve (NFR-002, NFR-004): 51 runtime-capable targets compared field-by-field against the FR-003 presentation translation outcome across 153 field comparisons with 0 divergent values, and all 51 targets carry at least 1 passing fixture test — both captured to `test-results/resolve-presentation-parity-nfr002.json` and `test-results/resolve-conformance-nfr004.json`.
|
|
112
|
+
- Measured-runtime crash-resilience evidence for resolve (NFR-001): `resolveExecutionData()` driven over a 39-case multi-axis malformed-input corpus (malformed frontmatter YAML, malformed `prosaic.config.yaml`, binary/NUL/huge/deeply-nested content, adversarial target/artifact ids, non-`Error` registry faults) with 0 uncaught crashes — every attempt yields either a valid resolution or a structured `errorKind` — captured to `test-results/resolve-malformed-input-nfr001.json`.
|
|
113
|
+
- Measured-runtime crash-resilience evidence for inspect (NFR-001): `inspectArtifact()` driven over a 40-case multi-axis malformed-input corpus (malformed frontmatter YAML, malformed `prosaic.config.yaml`, binary/NUL/huge/deeply-nested content, adversarial artifact ids, an unreadable-config fault) with 0 uncaught crashes — every attempt yields either a valid inspection or a structured `errorKind` — captured to `test-results/inspect-malformed-input-nfr001.json`.
|
|
114
|
+
- Benchmark artifacts committed to `test-results/` for auditable CI history across iterations.
|
|
115
|
+
- Full `test-results/` suite re-verified with no regressions; all NFR/SC evidence artifacts refreshed with new `recordedAt` timestamps and unchanged pass outcomes.
|
|
116
|
+
- Verified styled-run wall-clock stays within 5% of the plain baseline (NFR-006).
|
|
117
|
+
|
|
118
|
+
## [0.1.0] - 2026-07-09
|
|
119
|
+
|
|
120
|
+
### Added
|
|
121
|
+
|
|
122
|
+
- `prosaic apply` CLI command with `--dry-run`, `--targets`, and `--types` flags for distributing MD-prose artifacts to AI coding tool targets.
|
|
123
|
+
- `prosaic revert` CLI command for removing only Prosaic-managed files using the recorded path manifest.
|
|
124
|
+
- `prosaic.config.yaml` configuration schema: `source`, `targets`, `artifactTypes`, `lossyPolicy`, `backupRetention`.
|
|
125
|
+
- Support for four artifact types: `rule`, `skill`, `subagent`, `command` — classified by source directory or explicit `type:` frontmatter.
|
|
126
|
+
- First-class skill and subagent bundle distribution with internal reference rewriting to prevent broken links.
|
|
127
|
+
- Neutral behavior vocabulary (`execution`, `visibility`, `tools`, `color`, …) translated into per-target concrete frontmatter, with a per-target `overrides:` escape hatch.
|
|
128
|
+
- 40+ AI coding tool targets with per-target path, name, frontmatter, argument, and whole-file format rewriting.
|
|
129
|
+
- Idempotent apply: byte-identical output on re-apply with zero changed files.
|
|
130
|
+
- Non-destructive backup strategy: backups before every overwrite; missing or corrupt manifest aborts all deletion.
|
|
131
|
+
- Project-root containment: all writes and deletes confined to the project root; symlink escapes are refused.
|
|
132
|
+
- Lossy transformation detection: every skipped or lossy transformation emits a named warning.
|
|
133
|
+
- Managed-paths manifest tracking all Prosaic-written files for safe selective revert.
|
|
134
|
+
- Extension workflow: adding a target requires only a data edit plus a conformance fixture (see `docs/add-a-target.md`).
|
|
135
|
+
|
|
136
|
+
### Security
|
|
137
|
+
|
|
138
|
+
- Symlink escape prevention: path resolution refuses any write or delete outside the project root.
|
b3_prosaic-0.4.1/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
b3_prosaic-0.4.1/NOTICE
ADDED
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: b3-prosaic
|
|
3
|
+
Version: 0.4.1
|
|
4
|
+
Summary: Canonical Markdown prose distribution engine
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
Project-URL: Repository, https://github.com/B3Cognition/prosaic
|
|
7
|
+
Project-URL: Issues, https://github.com/B3Cognition/prosaic/issues
|
|
8
|
+
Requires-Python: >=3.11
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
License-File: NOTICE
|
|
12
|
+
Requires-Dist: PyYAML>=6.0
|
|
13
|
+
Requires-Dist: pyuca>=1.2
|
|
14
|
+
Requires-Dist: markdown-it-py<5,>=3.0
|
|
15
|
+
Provides-Extra: test
|
|
16
|
+
Requires-Dist: pytest>=8; extra == "test"
|
|
17
|
+
Requires-Dist: build>=1; extra == "test"
|
|
18
|
+
Requires-Dist: setuptools>=77; extra == "test"
|
|
19
|
+
Requires-Dist: wheel>=0.45; extra == "test"
|
|
20
|
+
Requires-Dist: packaging>=24; extra == "test"
|
|
21
|
+
Dynamic: license-file
|
|
22
|
+
|
|
23
|
+
# Prosaic
|
|
24
|
+
|
|
25
|
+
Author canonical Markdown-with-YAML prose once; distribute it to 40 AI coding
|
|
26
|
+
targets. Prosaic also inspects neutral artifacts for Prosaic Runtime and Harness.
|
|
27
|
+
|
|
28
|
+
## Install
|
|
29
|
+
|
|
30
|
+
Prosaic 0.4.1 is a Python 3.11+ candidate. Its public distribution is `b3-prosaic`; the
|
|
31
|
+
repository, Python import module and CLI remain `prosaic`. There is no Node.js
|
|
32
|
+
runtime dependency. The normal package-index channel starts with this release.
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
uv tool install 'b3-prosaic==0.4.1'
|
|
36
|
+
# Alternative:
|
|
37
|
+
pipx install 'b3-prosaic==0.4.1'
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
The GitHub release provides the same qualified wheel and source archive as the
|
|
41
|
+
package index. Use a fresh virtual environment or reinstall a pipx/uv tool when
|
|
42
|
+
migrating from the old `prosaic` distribution: old and new distributions share
|
|
43
|
+
import files and must not coexist. PyPI's unrelated `prosaic` project is not this
|
|
44
|
+
SDK. Historical release names and bytes remain unchanged. npm installation and
|
|
45
|
+
the JavaScript library API are retired; remove its old CLI and check
|
|
46
|
+
`command -v prosaic` when switching a global installation.
|
|
47
|
+
|
|
48
|
+
## Quick start
|
|
49
|
+
|
|
50
|
+
Create `.prosaic/commands/greet.md`:
|
|
51
|
+
|
|
52
|
+
```markdown
|
|
53
|
+
---
|
|
54
|
+
description: Greet the user
|
|
55
|
+
---
|
|
56
|
+
Say hello to $ARGUMENTS.
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Then preview and distribute it:
|
|
60
|
+
|
|
61
|
+
```sh
|
|
62
|
+
prosaic apply --targets claude-code --dry-run
|
|
63
|
+
prosaic apply --targets claude-code
|
|
64
|
+
prosaic inspect commands/greet.md
|
|
65
|
+
prosaic resolve commands/greet.md --target claude-code
|
|
66
|
+
prosaic revert --targets claude-code --dry-run
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Canonical source directories are `rules/`, `skills/`, `subagents/`, and
|
|
70
|
+
`commands/`. Skill/subagent bundles retain their companion resources and
|
|
71
|
+
internal references.
|
|
72
|
+
|
|
73
|
+
## Configuration and commands
|
|
74
|
+
|
|
75
|
+
Existing filenames and keys remain supported: `prosaic.config.yaml`,
|
|
76
|
+
`prosaic.config.yml`, `.prosaic.yaml`, `source`, `targets`, `artifactTypes`,
|
|
77
|
+
`lossyPolicy`, `backupRetention`, and `packages`. Markdown and manifest formats
|
|
78
|
+
are unchanged.
|
|
79
|
+
|
|
80
|
+
```yaml
|
|
81
|
+
source: .prosaic
|
|
82
|
+
targets: [claude-code, codex-cli]
|
|
83
|
+
artifactTypes: [rule, skill, subagent, command]
|
|
84
|
+
lossyPolicy: warn
|
|
85
|
+
backupRetention: 3
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
```sh
|
|
89
|
+
prosaic apply --dry-run
|
|
90
|
+
prosaic apply
|
|
91
|
+
prosaic revert --dry-run
|
|
92
|
+
prosaic revert
|
|
93
|
+
prosaic import ./foreign --format claude-code --dry-run
|
|
94
|
+
prosaic resolve commands/deploy.md --target claude-code
|
|
95
|
+
prosaic inspect subagents/reviewer.md --json
|
|
96
|
+
prosaic validate --json --strict --targets claude-code
|
|
97
|
+
prosaic tools --source .prosaic
|
|
98
|
+
prosaic package deploy my-package --dry-run
|
|
99
|
+
prosaic package revert my-package --dry-run
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
`inspect`, `resolve`, and `tools` emit JSON. Import warnings go to stderr;
|
|
103
|
+
apply warnings remain on stdout. Explicit `--color` / `--no-color`,
|
|
104
|
+
`NO_COLOR`, and `FORCE_COLOR` retain the CLI presentation contract.
|
|
105
|
+
|
|
106
|
+
See [read-only validation](docs/validation.md), [package deployment](docs/packages.md), [target contracts](docs/target-contracts.md),
|
|
107
|
+
[adding a target](docs/add-a-target.md), and [examples](examples/README.md).
|
|
108
|
+
|
|
109
|
+
## Neutral CLI-tool catalogue
|
|
110
|
+
|
|
111
|
+
`prosaic tools` lists sorted YAML/YML manifests from `<source>/tools`;
|
|
112
|
+
`--directory <path>` selects an explicit directory. Discovery is bounded,
|
|
113
|
+
non-recursive and read-only. It never resolves executables, probes, installs,
|
|
114
|
+
executes, or grants access. Malformed/duplicate/oversized/symlinked manifests
|
|
115
|
+
fail closed. The Python API is `discover_tools(directory)`.
|
|
116
|
+
|
|
117
|
+
Execution belongs in Prosaic Runtime with operator-configured grants.
|
|
118
|
+
See the [companion CLI-tool guide](https://github.com/B3Cognition/prosaic-runtime/blob/main/docs/cli-tools.md).
|
|
119
|
+
|
|
120
|
+
### Declarations are not permission grants
|
|
121
|
+
|
|
122
|
+
When executing through the companion Runtime/Harness, an agent can declare
|
|
123
|
+
`tools: [analyze_spec]` in Markdown frontmatter. That requests a tool; it does
|
|
124
|
+
not install it, trust its manifest, grant filesystem/network access, or enable
|
|
125
|
+
an OS sandbox. Installing an executable or listing it with `prosaic tools` also
|
|
126
|
+
grants nothing.
|
|
127
|
+
|
|
128
|
+
The operator must independently configure Runtime `allowed_tools` and trust
|
|
129
|
+
the manifest directory via `tool_directories`. The host then grants the tool
|
|
130
|
+
and narrow `read_roots` in a Runtime invocation or Harness agent step. Missing
|
|
131
|
+
grants deny access. Markdown and model output cannot expand these permissions.
|
|
132
|
+
|
|
133
|
+
Runtime 0.5.2+ and Harness 0.4.2+ support `cli_sandbox: {mode: required}`
|
|
134
|
+
in **Runtime YAML, not Markdown**. This isolates custom CLI subprocesses/probes
|
|
135
|
+
with macOS Seatbelt or Linux Bubblewrap, not Python callbacks or native coding
|
|
136
|
+
providers. It defaults to off;
|
|
137
|
+
upgrading Prosaic alone does not activate it. See the
|
|
138
|
+
[sandboxed Runtime example](https://github.com/B3Cognition/prosaic-runtime/blob/main/examples/README.md#sandboxed-cli-tools-runtime-052)
|
|
139
|
+
or [sandboxed Harness workflow](https://github.com/B3Cognition/prosaic-harness/blob/main/examples/README.md#sandboxed-cli-workflow-harness-042)
|
|
140
|
+
for installation, all permission layers and offline verification.
|
|
141
|
+
|
|
142
|
+
## Python API
|
|
143
|
+
|
|
144
|
+
```python
|
|
145
|
+
from pathlib import Path
|
|
146
|
+
from prosaic import (apply, inspect_artifact, resolve_execution_data, discover_tools,
|
|
147
|
+
validate_artifact_definition, validate_project)
|
|
148
|
+
|
|
149
|
+
root = Path('/path/to/project')
|
|
150
|
+
inspection = inspect_artifact(root, 'subagents/reviewer.md')
|
|
151
|
+
preview = apply(root, cli={'targets': ['claude-code']}, dry_run=True)
|
|
152
|
+
project_report = validate_project(root, {'targets': ['claude-code']}, strict=True)
|
|
153
|
+
resolved = resolve_execution_data(root, 'commands/deploy.md', 'claude-code')
|
|
154
|
+
catalogue = discover_tools(root / '.prosaic/tools')
|
|
155
|
+
validation = validate_artifact_definition('subagent', {
|
|
156
|
+
'name': 'reviewer', 'description': 'Review supplied prose',
|
|
157
|
+
})
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
`validate_artifact_definition(kind, frontmatter)` performs pure canonical validation
|
|
161
|
+
for explicit `rule`, `skill`, `subagent`, or `command` definitions. It returns
|
|
162
|
+
`{'ok': True, 'frontmatter': ...}` with a shallow metadata copy, or
|
|
163
|
+
`{'ok': False, 'field': ..., 'reason': ...}`. A supplied `type` must match `kind`;
|
|
164
|
+
an absent `type` stays absent. Validation retains extension metadata and never
|
|
165
|
+
reads files or executes tools. Runtime applies its execution constraints separately.
|
|
166
|
+
|
|
167
|
+
Python function names use snake_case; serialized contract keys retain camelCase.
|
|
168
|
+
Registry injection, configuration precedence, target registration and pipeline
|
|
169
|
+
operations remain available. This package distributes/inspects prose; it does
|
|
170
|
+
not execute models or orchestrate application workflows.
|
|
171
|
+
|
|
172
|
+
## Development and verification
|
|
173
|
+
|
|
174
|
+
```sh
|
|
175
|
+
python3 -m venv .venv
|
|
176
|
+
.venv/bin/python -m pip install -e '.[test]'
|
|
177
|
+
.venv/bin/python scripts/verify_migration.py
|
|
178
|
+
.venv/bin/python -m pytest
|
|
179
|
+
.venv/bin/python -m build
|
|
180
|
+
python3 -m venv .wheel-test
|
|
181
|
+
.wheel-test/bin/python -m pip install dist/b3_prosaic-0.4.1-py3-none-any.whl
|
|
182
|
+
.wheel-test/bin/python scripts/wheel_smoke.py
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
The verifier restores immutable TS v0.2.0 from this repository's Git history,
|
|
186
|
+
runs Python differential/golden tests and original CLI suites through Python,
|
|
187
|
+
and records `parity-results/latest.json`. Node/npm are required only for the
|
|
188
|
+
frozen oracle, never for installed usage. Python CI covers 3.11, 3.12 and 3.13.
|
|
189
|
+
Use `--consumers ../prosaic-runtime ../prosaic-harness --freeze-consumers`
|
|
190
|
+
for tests against immutable consumer snapshots.
|
|
191
|
+
|
|
192
|
+
[Validation history](docs/parity-status.md) and
|
|
193
|
+
[0.3.0 migration notes](docs/release-0.3.0.md) distinguish completed trials
|
|
194
|
+
from untested workflows. Runtime/Harness live staged/preloaded workflows passed.
|
|
195
|
+
Echelon + Codex authored, reviewed, repaired, and validated a reverse-text CLI
|
|
196
|
+
spec, stopping at its expected human approval checkpoint. Full design/planning/
|
|
197
|
+
publication, Claude, and delivery remain untested. The local endpoint's direct
|
|
198
|
+
forced-read limitation reproduced with TS and Python inspectors; see
|
|
199
|
+
[diagnosis](docs/tool-choice-diagnosis.md).
|
|
200
|
+
|
|
201
|
+
## Safety and license
|
|
202
|
+
|
|
203
|
+
Ownership manifests, integrity checks, contained paths, bounded backups, and
|
|
204
|
+
read-only dry runs protect application files. Python additionally rejects
|
|
205
|
+
dangling symlink escapes and bounds cyclic package-directory traversal. No
|
|
206
|
+
production consumer pin or global CLI installation is changed by this release.
|
|
207
|
+
The previous TS implementation remains recoverable from `v0.2.0`.
|
|
208
|
+
|
|
209
|
+
Apache-2.0; original attribution is retained in LICENSE and NOTICE.
|