pymtheg 0.0.0-stage → 0.1.0
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.
- package/LICENSE +18 -0
- package/README.md +245 -2
- package/THIRD-PARTY-NOTICES +3649 -0
- package/dist/analysis/budget.d.ts +25 -0
- package/dist/analysis/budget.js +173 -0
- package/dist/analysis/budget.js.map +1 -0
- package/dist/analysis/contract-candidate.d.ts +5 -0
- package/dist/analysis/contract-candidate.js +87 -0
- package/dist/analysis/contract-candidate.js.map +1 -0
- package/dist/analysis/contract-witness.d.ts +15 -0
- package/dist/analysis/contract-witness.js +262 -0
- package/dist/analysis/contract-witness.js.map +1 -0
- package/dist/analysis/contracts.d.ts +3 -0
- package/dist/analysis/contracts.js +450 -0
- package/dist/analysis/contracts.js.map +1 -0
- package/dist/analysis/cost.d.ts +24 -0
- package/dist/analysis/cost.js +457 -0
- package/dist/analysis/cost.js.map +1 -0
- package/dist/analysis/facts.d.ts +44 -0
- package/dist/analysis/facts.js +690 -0
- package/dist/analysis/facts.js.map +1 -0
- package/dist/analysis/feasibility.d.ts +15 -0
- package/dist/analysis/feasibility.js +165 -0
- package/dist/analysis/feasibility.js.map +1 -0
- package/dist/analysis/index.d.ts +8 -0
- package/dist/analysis/index.js +46 -0
- package/dist/analysis/index.js.map +1 -0
- package/dist/analysis/ownership.d.ts +3 -0
- package/dist/analysis/ownership.js +398 -0
- package/dist/analysis/ownership.js.map +1 -0
- package/dist/analysis/repeated.d.ts +3 -0
- package/dist/analysis/repeated.js +134 -0
- package/dist/analysis/repeated.js.map +1 -0
- package/dist/analysis/rules.d.ts +3 -0
- package/dist/analysis/rules.js +83 -0
- package/dist/analysis/rules.js.map +1 -0
- package/dist/analysis/witness-inputs.d.ts +12 -0
- package/dist/analysis/witness-inputs.js +389 -0
- package/dist/analysis/witness-inputs.js.map +1 -0
- package/dist/architecture/acknowledgements.d.ts +56 -0
- package/dist/architecture/acknowledgements.js +90 -0
- package/dist/architecture/acknowledgements.js.map +1 -0
- package/dist/architecture/branches.d.ts +12 -0
- package/dist/architecture/branches.js +21 -0
- package/dist/architecture/branches.js.map +1 -0
- package/dist/architecture/code-links.d.ts +303 -0
- package/dist/architecture/code-links.js +1216 -0
- package/dist/architecture/code-links.js.map +1 -0
- package/dist/architecture/diff.d.ts +17 -0
- package/dist/architecture/diff.js +56 -0
- package/dist/architecture/diff.js.map +1 -0
- package/dist/architecture/draft-writer.d.ts +86 -0
- package/dist/architecture/draft-writer.js +81 -0
- package/dist/architecture/draft-writer.js.map +1 -0
- package/dist/architecture/draft.d.ts +163 -0
- package/dist/architecture/draft.js +44 -0
- package/dist/architecture/draft.js.map +1 -0
- package/dist/architecture/heading-identities.d.ts +12 -0
- package/dist/architecture/heading-identities.js +294 -0
- package/dist/architecture/heading-identities.js.map +1 -0
- package/dist/architecture/headings.d.ts +29 -0
- package/dist/architecture/headings.js +157 -0
- package/dist/architecture/headings.js.map +1 -0
- package/dist/architecture/history.d.ts +250 -0
- package/dist/architecture/history.js +204 -0
- package/dist/architecture/history.js.map +1 -0
- package/dist/architecture/import-merge.d.ts +88 -0
- package/dist/architecture/import-merge.js +326 -0
- package/dist/architecture/import-merge.js.map +1 -0
- package/dist/architecture/import-policy.d.ts +45 -0
- package/dist/architecture/import-policy.js +185 -0
- package/dist/architecture/import-policy.js.map +1 -0
- package/dist/architecture/json.d.ts +6 -0
- package/dist/architecture/json.js +18 -0
- package/dist/architecture/json.js.map +1 -0
- package/dist/architecture/limits.d.ts +18 -0
- package/dist/architecture/limits.js +24 -0
- package/dist/architecture/limits.js.map +1 -0
- package/dist/architecture/manifest.d.ts +15 -0
- package/dist/architecture/manifest.js +27 -0
- package/dist/architecture/manifest.js.map +1 -0
- package/dist/architecture/model.d.ts +25 -0
- package/dist/architecture/model.js +762 -0
- package/dist/architecture/model.js.map +1 -0
- package/dist/architecture/planning-integrity.d.ts +3 -0
- package/dist/architecture/planning-integrity.js +31 -0
- package/dist/architecture/planning-integrity.js.map +1 -0
- package/dist/architecture/planning.d.ts +14 -0
- package/dist/architecture/planning.js +42 -0
- package/dist/architecture/planning.js.map +1 -0
- package/dist/architecture/relationship-text.d.ts +2 -0
- package/dist/architecture/relationship-text.js +94 -0
- package/dist/architecture/relationship-text.js.map +1 -0
- package/dist/architecture/runner.d.ts +259 -0
- package/dist/architecture/runner.js +65 -0
- package/dist/architecture/runner.js.map +1 -0
- package/dist/architecture/schema.d.ts +839 -0
- package/dist/architecture/schema.js +412 -0
- package/dist/architecture/schema.js.map +1 -0
- package/dist/architecture/source-baselines.d.ts +12 -0
- package/dist/architecture/source-baselines.js +58 -0
- package/dist/architecture/source-baselines.js.map +1 -0
- package/dist/architecture/source-contracts.d.ts +28 -0
- package/dist/architecture/source-contracts.js +280 -0
- package/dist/architecture/source-contracts.js.map +1 -0
- package/dist/architecture/source-work.d.ts +15 -0
- package/dist/architecture/source-work.js +88 -0
- package/dist/architecture/source-work.js.map +1 -0
- package/dist/architecture/store.d.ts +589 -0
- package/dist/architecture/store.js +1185 -0
- package/dist/architecture/store.js.map +1 -0
- package/dist/architecture/text-change.d.ts +15 -0
- package/dist/architecture/text-change.js +30 -0
- package/dist/architecture/text-change.js.map +1 -0
- package/dist/architecture/work.d.ts +32 -0
- package/dist/architecture/work.js +213 -0
- package/dist/architecture/work.js.map +1 -0
- package/dist/architecture/worker.d.ts +1 -0
- package/dist/architecture/worker.js +23 -0
- package/dist/architecture/worker.js.map +1 -0
- package/dist/backends/adapter.d.ts +16 -0
- package/dist/backends/adapter.js +179 -0
- package/dist/backends/adapter.js.map +1 -0
- package/dist/backends/process.d.ts +23 -0
- package/dist/backends/process.js +124 -0
- package/dist/backends/process.js.map +1 -0
- package/dist/behaviour/explore-runner.d.ts +30 -0
- package/dist/behaviour/explore-runner.js +78 -0
- package/dist/behaviour/explore-runner.js.map +1 -0
- package/dist/behaviour/explore-worker.d.ts +1 -0
- package/dist/behaviour/explore-worker.js +14 -0
- package/dist/behaviour/explore-worker.js.map +1 -0
- package/dist/behaviour/explore.d.ts +43 -0
- package/dist/behaviour/explore.js +272 -0
- package/dist/behaviour/explore.js.map +1 -0
- package/dist/behaviour/flow.d.ts +107 -0
- package/dist/behaviour/flow.js +959 -0
- package/dist/behaviour/flow.js.map +1 -0
- package/dist/behaviour/lower-worker.d.ts +1 -0
- package/dist/behaviour/lower-worker.js +11 -0
- package/dist/behaviour/lower-worker.js.map +1 -0
- package/dist/behaviour/model.d.ts +71 -0
- package/dist/behaviour/model.js +347 -0
- package/dist/behaviour/model.js.map +1 -0
- package/dist/behaviour/runner.d.ts +3 -0
- package/dist/behaviour/runner.js +32 -0
- package/dist/behaviour/runner.js.map +1 -0
- package/dist/behaviour/trial-runner.d.ts +3 -0
- package/dist/behaviour/trial-runner.js +39 -0
- package/dist/behaviour/trial-runner.js.map +1 -0
- package/dist/behaviour/trial-schema.d.ts +31 -0
- package/dist/behaviour/trial-schema.js +36 -0
- package/dist/behaviour/trial-schema.js.map +1 -0
- package/dist/behaviour/trial-worker.d.ts +1 -0
- package/dist/behaviour/trial-worker.js +5 -0
- package/dist/behaviour/trial-worker.js.map +1 -0
- package/dist/behaviour/trial.d.ts +13 -0
- package/dist/behaviour/trial.js +67 -0
- package/dist/behaviour/trial.js.map +1 -0
- package/dist/behaviour/values.d.ts +19 -0
- package/dist/behaviour/values.js +105 -0
- package/dist/behaviour/values.js.map +1 -0
- package/dist/cli/coordinator.d.ts +16 -0
- package/dist/cli/coordinator.js +83 -0
- package/dist/cli/coordinator.js.map +1 -0
- package/dist/cli/errors.d.ts +3 -0
- package/dist/cli/errors.js +20 -0
- package/dist/cli/errors.js.map +1 -0
- package/dist/cli/graph.d.ts +4 -0
- package/dist/cli/graph.js +175 -0
- package/dist/cli/graph.js.map +1 -0
- package/dist/cli/help.d.ts +2 -0
- package/dist/cli/help.js +70 -0
- package/dist/cli/help.js.map +1 -0
- package/dist/cli/import-summary.d.ts +26 -0
- package/dist/cli/import-summary.js +45 -0
- package/dist/cli/import-summary.js.map +1 -0
- package/dist/cli/link.d.ts +2 -0
- package/dist/cli/link.js +291 -0
- package/dist/cli/link.js.map +1 -0
- package/dist/cli/main.d.ts +2 -0
- package/dist/cli/main.js +793 -0
- package/dist/cli/main.js.map +1 -0
- package/dist/cli/quiet-warnings.d.ts +7 -0
- package/dist/cli/quiet-warnings.js +41 -0
- package/dist/cli/quiet-warnings.js.map +1 -0
- package/dist/cli/worker.d.ts +1 -0
- package/dist/cli/worker.js +29 -0
- package/dist/cli/worker.js.map +1 -0
- package/dist/contracts/document.d.ts +88 -0
- package/dist/contracts/document.js +175 -0
- package/dist/contracts/document.js.map +1 -0
- package/dist/contracts/expression.d.ts +3 -0
- package/dist/contracts/expression.js +35 -0
- package/dist/contracts/expression.js.map +1 -0
- package/dist/contracts/implementation-check.d.ts +25 -0
- package/dist/contracts/implementation-check.js +107 -0
- package/dist/contracts/implementation-check.js.map +1 -0
- package/dist/contracts/layout.d.ts +14 -0
- package/dist/contracts/layout.js +85 -0
- package/dist/contracts/layout.js.map +1 -0
- package/dist/contracts/manifest.d.ts +40 -0
- package/dist/contracts/manifest.js +289 -0
- package/dist/contracts/manifest.js.map +1 -0
- package/dist/contracts/plugin-runner.d.ts +1 -0
- package/dist/contracts/plugin-runner.js +54 -0
- package/dist/contracts/plugin-runner.js.map +1 -0
- package/dist/contracts/plugins.d.ts +17 -0
- package/dist/contracts/plugins.js +189 -0
- package/dist/contracts/plugins.js.map +1 -0
- package/dist/contracts/portable.d.ts +3 -0
- package/dist/contracts/portable.js +84 -0
- package/dist/contracts/portable.js.map +1 -0
- package/dist/contracts/registry.d.ts +31 -0
- package/dist/contracts/registry.js +124 -0
- package/dist/contracts/registry.js.map +1 -0
- package/dist/contracts/scaffold.d.ts +34 -0
- package/dist/contracts/scaffold.js +140 -0
- package/dist/contracts/scaffold.js.map +1 -0
- package/dist/contracts/targets.d.ts +5 -0
- package/dist/contracts/targets.js +263 -0
- package/dist/contracts/targets.js.map +1 -0
- package/dist/graph/analysis.d.ts +10 -0
- package/dist/graph/analysis.js +118 -0
- package/dist/graph/analysis.js.map +1 -0
- package/dist/graph/command-checkpoint.d.ts +29 -0
- package/dist/graph/command-checkpoint.js +84 -0
- package/dist/graph/command-checkpoint.js.map +1 -0
- package/dist/graph/command-locations.d.ts +20 -0
- package/dist/graph/command-locations.js +77 -0
- package/dist/graph/command-locations.js.map +1 -0
- package/dist/graph/command-possible.d.ts +12 -0
- package/dist/graph/command-possible.js +56 -0
- package/dist/graph/command-possible.js.map +1 -0
- package/dist/graph/command-queries.d.ts +11 -0
- package/dist/graph/command-queries.js +513 -0
- package/dist/graph/command-queries.js.map +1 -0
- package/dist/graph/command-snapshot.d.ts +17 -0
- package/dist/graph/command-snapshot.js +130 -0
- package/dist/graph/command-snapshot.js.map +1 -0
- package/dist/graph/command-toolchain.d.ts +50 -0
- package/dist/graph/command-toolchain.js +103 -0
- package/dist/graph/command-toolchain.js.map +1 -0
- package/dist/graph/commands.d.ts +90 -0
- package/dist/graph/commands.js +445 -0
- package/dist/graph/commands.js.map +1 -0
- package/dist/graph/conformance.d.ts +43 -0
- package/dist/graph/conformance.js +157 -0
- package/dist/graph/conformance.js.map +1 -0
- package/dist/graph/identity.d.ts +10 -0
- package/dist/graph/identity.js +105 -0
- package/dist/graph/identity.js.map +1 -0
- package/dist/graph/index.d.ts +7 -0
- package/dist/graph/index.js +9 -0
- package/dist/graph/index.js.map +1 -0
- package/dist/graph/indexer.d.ts +54 -0
- package/dist/graph/indexer.js +323 -0
- package/dist/graph/indexer.js.map +1 -0
- package/dist/graph/languages/go/extract.d.ts +116 -0
- package/dist/graph/languages/go/extract.js +1712 -0
- package/dist/graph/languages/go/extract.js.map +1 -0
- package/dist/graph/languages/go/failure.d.ts +13 -0
- package/dist/graph/languages/go/failure.js +275 -0
- package/dist/graph/languages/go/failure.js.map +1 -0
- package/dist/graph/languages/go/gomod.d.ts +66 -0
- package/dist/graph/languages/go/gomod.js +304 -0
- package/dist/graph/languages/go/gomod.js.map +1 -0
- package/dist/graph/languages/go/index.d.ts +3 -0
- package/dist/graph/languages/go/index.js +396 -0
- package/dist/graph/languages/go/index.js.map +1 -0
- package/dist/graph/languages/go/model.d.ts +231 -0
- package/dist/graph/languages/go/model.js +90 -0
- package/dist/graph/languages/go/model.js.map +1 -0
- package/dist/graph/languages/go/resolve.d.ts +96 -0
- package/dist/graph/languages/go/resolve.js +3078 -0
- package/dist/graph/languages/go/resolve.js.map +1 -0
- package/dist/graph/languages/go/toolchain-facts.d.ts +49 -0
- package/dist/graph/languages/go/toolchain-facts.js +230 -0
- package/dist/graph/languages/go/toolchain-facts.js.map +1 -0
- package/dist/graph/languages/go/toolchain.d.ts +49 -0
- package/dist/graph/languages/go/toolchain.js +318 -0
- package/dist/graph/languages/go/toolchain.js.map +1 -0
- package/dist/graph/languages/rust/cargo.d.ts +26 -0
- package/dist/graph/languages/rust/cargo.js +481 -0
- package/dist/graph/languages/rust/cargo.js.map +1 -0
- package/dist/graph/languages/rust/cfg.d.ts +2 -0
- package/dist/graph/languages/rust/cfg.js +91 -0
- package/dist/graph/languages/rust/cfg.js.map +1 -0
- package/dist/graph/languages/rust/index.d.ts +3 -0
- package/dist/graph/languages/rust/index.js +160 -0
- package/dist/graph/languages/rust/index.js.map +1 -0
- package/dist/graph/languages/rust/macro-catalog.d.ts +10 -0
- package/dist/graph/languages/rust/macro-catalog.js +125 -0
- package/dist/graph/languages/rust/macro-catalog.js.map +1 -0
- package/dist/graph/languages/rust/macro-rules.d.ts +100 -0
- package/dist/graph/languages/rust/macro-rules.js +589 -0
- package/dist/graph/languages/rust/macro-rules.js.map +1 -0
- package/dist/graph/languages/rust/parse.d.ts +24 -0
- package/dist/graph/languages/rust/parse.js +1864 -0
- package/dist/graph/languages/rust/parse.js.map +1 -0
- package/dist/graph/languages/rust/resolve.d.ts +4 -0
- package/dist/graph/languages/rust/resolve.js +3449 -0
- package/dist/graph/languages/rust/resolve.js.map +1 -0
- package/dist/graph/languages/rust/toml.d.ts +10 -0
- package/dist/graph/languages/rust/toml.js +282 -0
- package/dist/graph/languages/rust/toml.js.map +1 -0
- package/dist/graph/languages/toy/index.d.ts +4 -0
- package/dist/graph/languages/toy/index.js +81 -0
- package/dist/graph/languages/toy/index.js.map +1 -0
- package/dist/graph/languages/typescript/extract.d.ts +39 -0
- package/dist/graph/languages/typescript/extract.js +1236 -0
- package/dist/graph/languages/typescript/extract.js.map +1 -0
- package/dist/graph/languages/typescript/index.d.ts +36 -0
- package/dist/graph/languages/typescript/index.js +756 -0
- package/dist/graph/languages/typescript/index.js.map +1 -0
- package/dist/graph/languages/typescript/judge.d.ts +97 -0
- package/dist/graph/languages/typescript/judge.js +1936 -0
- package/dist/graph/languages/typescript/judge.js.map +1 -0
- package/dist/graph/languages/typescript/project.d.ts +95 -0
- package/dist/graph/languages/typescript/project.js +722 -0
- package/dist/graph/languages/typescript/project.js.map +1 -0
- package/dist/graph/languages/typescript/rename.d.ts +72 -0
- package/dist/graph/languages/typescript/rename.js +1014 -0
- package/dist/graph/languages/typescript/rename.js.map +1 -0
- package/dist/graph/languages/typescript/symbols.d.ts +39 -0
- package/dist/graph/languages/typescript/symbols.js +414 -0
- package/dist/graph/languages/typescript/symbols.js.map +1 -0
- package/dist/graph/languages/typescript/taint.d.ts +64 -0
- package/dist/graph/languages/typescript/taint.js +604 -0
- package/dist/graph/languages/typescript/taint.js.map +1 -0
- package/dist/graph/languages/typescript/untrusted.d.ts +12 -0
- package/dist/graph/languages/typescript/untrusted.js +24 -0
- package/dist/graph/languages/typescript/untrusted.js.map +1 -0
- package/dist/graph/registry.d.ts +10 -0
- package/dist/graph/registry.js +96 -0
- package/dist/graph/registry.js.map +1 -0
- package/dist/graph/store.d.ts +95 -0
- package/dist/graph/store.js +647 -0
- package/dist/graph/store.js.map +1 -0
- package/dist/graph/tree-sitter.d.ts +36 -0
- package/dist/graph/tree-sitter.js +123 -0
- package/dist/graph/tree-sitter.js.map +1 -0
- package/dist/graph/types.d.ts +209 -0
- package/dist/graph/types.js +2 -0
- package/dist/graph/types.js.map +1 -0
- package/dist/implementation/capture-child.d.ts +1 -0
- package/dist/implementation/capture-child.js +35 -0
- package/dist/implementation/capture-child.js.map +1 -0
- package/dist/implementation/capture-lease.d.ts +16 -0
- package/dist/implementation/capture-lease.js +155 -0
- package/dist/implementation/capture-lease.js.map +1 -0
- package/dist/implementation/capture-process.d.ts +9 -0
- package/dist/implementation/capture-process.js +86 -0
- package/dist/implementation/capture-process.js.map +1 -0
- package/dist/implementation/capture-supervisor.d.ts +1 -0
- package/dist/implementation/capture-supervisor.js +103 -0
- package/dist/implementation/capture-supervisor.js.map +1 -0
- package/dist/implementation/capture.d.ts +9 -0
- package/dist/implementation/capture.js +145 -0
- package/dist/implementation/capture.js.map +1 -0
- package/dist/implementation/cli.d.ts +1 -0
- package/dist/implementation/cli.js +122 -0
- package/dist/implementation/cli.js.map +1 -0
- package/dist/implementation/code-difference.d.ts +26 -0
- package/dist/implementation/code-difference.js +140 -0
- package/dist/implementation/code-difference.js.map +1 -0
- package/dist/implementation/comparison-protocol.d.ts +136 -0
- package/dist/implementation/comparison-protocol.js +121 -0
- package/dist/implementation/comparison-protocol.js.map +1 -0
- package/dist/implementation/comparison.d.ts +122 -0
- package/dist/implementation/comparison.js +145 -0
- package/dist/implementation/comparison.js.map +1 -0
- package/dist/implementation/dependencies.d.ts +20 -0
- package/dist/implementation/dependencies.js +157 -0
- package/dist/implementation/dependencies.js.map +1 -0
- package/dist/implementation/design-attention.d.ts +19 -0
- package/dist/implementation/design-attention.js +56 -0
- package/dist/implementation/design-attention.js.map +1 -0
- package/dist/implementation/files.d.ts +50 -0
- package/dist/implementation/files.js +193 -0
- package/dist/implementation/files.js.map +1 -0
- package/dist/implementation/mutations.d.ts +21 -0
- package/dist/implementation/mutations.js +554 -0
- package/dist/implementation/mutations.js.map +1 -0
- package/dist/implementation/part-codec.d.ts +32 -0
- package/dist/implementation/part-codec.js +210 -0
- package/dist/implementation/part-codec.js.map +1 -0
- package/dist/implementation/partitions.d.ts +7 -0
- package/dist/implementation/partitions.js +526 -0
- package/dist/implementation/partitions.js.map +1 -0
- package/dist/implementation/plan-display.d.ts +6 -0
- package/dist/implementation/plan-display.js +29 -0
- package/dist/implementation/plan-display.js.map +1 -0
- package/dist/implementation/plan-hash.d.ts +3 -0
- package/dist/implementation/plan-hash.js +87 -0
- package/dist/implementation/plan-hash.js.map +1 -0
- package/dist/implementation/protocol.d.ts +215 -0
- package/dist/implementation/protocol.js +184 -0
- package/dist/implementation/protocol.js.map +1 -0
- package/dist/implementation/query-runner.d.ts +234 -0
- package/dist/implementation/query-runner.js +74 -0
- package/dist/implementation/query-runner.js.map +1 -0
- package/dist/implementation/query-worker.d.ts +1 -0
- package/dist/implementation/query-worker.js +77 -0
- package/dist/implementation/query-worker.js.map +1 -0
- package/dist/implementation/relationship-difference.d.ts +18 -0
- package/dist/implementation/relationship-difference.js +82 -0
- package/dist/implementation/relationship-difference.js.map +1 -0
- package/dist/implementation/schema.d.ts +199 -0
- package/dist/implementation/schema.js +317 -0
- package/dist/implementation/schema.js.map +1 -0
- package/dist/implementation/storage.d.ts +7 -0
- package/dist/implementation/storage.js +153 -0
- package/dist/implementation/storage.js.map +1 -0
- package/dist/implementation/typescript.d.ts +9 -0
- package/dist/implementation/typescript.js +2477 -0
- package/dist/implementation/typescript.js.map +1 -0
- package/dist/implementation/version-sources.d.ts +4 -0
- package/dist/implementation/version-sources.js +13 -0
- package/dist/implementation/version-sources.js.map +1 -0
- package/dist/implementation/versions.d.ts +62 -0
- package/dist/implementation/versions.js +75 -0
- package/dist/implementation/versions.js.map +1 -0
- package/dist/implementation/worker.d.ts +1 -0
- package/dist/implementation/worker.js +14 -0
- package/dist/implementation/worker.js.map +1 -0
- package/dist/implementation/workspace.d.ts +476 -0
- package/dist/implementation/workspace.js +483 -0
- package/dist/implementation/workspace.js.map +1 -0
- package/dist/language/ast.d.ts +231 -0
- package/dist/language/ast.js +54 -0
- package/dist/language/ast.js.map +1 -0
- package/dist/language/format.d.ts +4 -0
- package/dist/language/format.js +49 -0
- package/dist/language/format.js.map +1 -0
- package/dist/language/lexer.d.ts +10 -0
- package/dist/language/lexer.js +79 -0
- package/dist/language/lexer.js.map +1 -0
- package/dist/language/parser.d.ts +6 -0
- package/dist/language/parser.js +716 -0
- package/dist/language/parser.js.map +1 -0
- package/dist/language/project.d.ts +48 -0
- package/dist/language/project.js +298 -0
- package/dist/language/project.js.map +1 -0
- package/dist/language/source-selection.d.ts +2 -0
- package/dist/language/source-selection.js +9 -0
- package/dist/language/source-selection.js.map +1 -0
- package/dist/mcp/architecture.d.ts +4 -0
- package/dist/mcp/architecture.js +260 -0
- package/dist/mcp/architecture.js.map +1 -0
- package/dist/mcp/check-findings.d.ts +12 -0
- package/dist/mcp/check-findings.js +58 -0
- package/dist/mcp/check-findings.js.map +1 -0
- package/dist/mcp/emissions.d.ts +62 -0
- package/dist/mcp/emissions.js +141 -0
- package/dist/mcp/emissions.js.map +1 -0
- package/dist/mcp/graph-jobs.d.ts +27 -0
- package/dist/mcp/graph-jobs.js +104 -0
- package/dist/mcp/graph-jobs.js.map +1 -0
- package/dist/mcp/graph-view.d.ts +38 -0
- package/dist/mcp/graph-view.js +384 -0
- package/dist/mcp/graph-view.js.map +1 -0
- package/dist/mcp/graph-wait.d.ts +8 -0
- package/dist/mcp/graph-wait.js +32 -0
- package/dist/mcp/graph-wait.js.map +1 -0
- package/dist/mcp/graph-worker.d.ts +1 -0
- package/dist/mcp/graph-worker.js +22 -0
- package/dist/mcp/graph-worker.js.map +1 -0
- package/dist/mcp/graph.d.ts +6 -0
- package/dist/mcp/graph.js +205 -0
- package/dist/mcp/graph.js.map +1 -0
- package/dist/mcp/identities.d.ts +31 -0
- package/dist/mcp/identities.js +109 -0
- package/dist/mcp/identities.js.map +1 -0
- package/dist/mcp/implementation.d.ts +3 -0
- package/dist/mcp/implementation.js +117 -0
- package/dist/mcp/implementation.js.map +1 -0
- package/dist/mcp/inventories.d.ts +162 -0
- package/dist/mcp/inventories.js +178 -0
- package/dist/mcp/inventories.js.map +1 -0
- package/dist/mcp/limits.d.ts +17 -0
- package/dist/mcp/limits.js +20 -0
- package/dist/mcp/limits.js.map +1 -0
- package/dist/mcp/links-jobs.d.ts +29 -0
- package/dist/mcp/links-jobs.js +113 -0
- package/dist/mcp/links-jobs.js.map +1 -0
- package/dist/mcp/links-view.d.ts +10 -0
- package/dist/mcp/links-view.js +180 -0
- package/dist/mcp/links-view.js.map +1 -0
- package/dist/mcp/links-worker.d.ts +1 -0
- package/dist/mcp/links-worker.js +32 -0
- package/dist/mcp/links-worker.js.map +1 -0
- package/dist/mcp/links.d.ts +3 -0
- package/dist/mcp/links.js +264 -0
- package/dist/mcp/links.js.map +1 -0
- package/dist/mcp/operation-errors.d.ts +7 -0
- package/dist/mcp/operation-errors.js +45 -0
- package/dist/mcp/operation-errors.js.map +1 -0
- package/dist/mcp/server.d.ts +5 -0
- package/dist/mcp/server.js +728 -0
- package/dist/mcp/server.js.map +1 -0
- package/dist/mcp/text-pages.d.ts +1 -0
- package/dist/mcp/text-pages.js +3 -0
- package/dist/mcp/text-pages.js.map +1 -0
- package/dist/mcp/workspace.d.ts +369 -0
- package/dist/mcp/workspace.js +306 -0
- package/dist/mcp/workspace.js.map +1 -0
- package/dist/project/config.d.ts +10 -0
- package/dist/project/config.js +31 -0
- package/dist/project/config.js.map +1 -0
- package/dist/project/doctor.d.ts +20 -0
- package/dist/project/doctor.js +259 -0
- package/dist/project/doctor.js.map +1 -0
- package/dist/project/documents.d.ts +139 -0
- package/dist/project/documents.js +73 -0
- package/dist/project/documents.js.map +1 -0
- package/dist/project/setup.d.ts +141 -0
- package/dist/project/setup.js +25 -0
- package/dist/project/setup.js.map +1 -0
- package/dist/project/workspace.d.ts +36 -0
- package/dist/project/workspace.js +193 -0
- package/dist/project/workspace.js.map +1 -0
- package/dist/reporting/compare.d.ts +20 -0
- package/dist/reporting/compare.js +91 -0
- package/dist/reporting/compare.js.map +1 -0
- package/dist/reporting/explain.d.ts +33 -0
- package/dist/reporting/explain.js +484 -0
- package/dist/reporting/explain.js.map +1 -0
- package/dist/reporting/publish.d.ts +1 -0
- package/dist/reporting/publish.js +28 -0
- package/dist/reporting/publish.js.map +1 -0
- package/dist/reporting/report.d.ts +68 -0
- package/dist/reporting/report.js +157 -0
- package/dist/reporting/report.js.map +1 -0
- package/dist/reporting/scope-issues.d.ts +4 -0
- package/dist/reporting/scope-issues.js +22 -0
- package/dist/reporting/scope-issues.js.map +1 -0
- package/dist/reporting/selection.d.ts +4 -0
- package/dist/reporting/selection.js +83 -0
- package/dist/reporting/selection.js.map +1 -0
- package/dist/reporting/status.d.ts +5 -0
- package/dist/reporting/status.js +79 -0
- package/dist/reporting/status.js.map +1 -0
- package/dist/reporting/trace.d.ts +14 -0
- package/dist/reporting/trace.js +48 -0
- package/dist/reporting/trace.js.map +1 -0
- package/dist/semantic/core.d.ts +68 -0
- package/dist/semantic/core.js +1068 -0
- package/dist/semantic/core.js.map +1 -0
- package/dist/shared/config.d.ts +34 -0
- package/dist/shared/config.js +112 -0
- package/dist/shared/config.js.map +1 -0
- package/dist/shared/display-paths.d.ts +2 -0
- package/dist/shared/display-paths.js +7 -0
- package/dist/shared/display-paths.js.map +1 -0
- package/dist/shared/document-selection.d.ts +8 -0
- package/dist/shared/document-selection.js +30 -0
- package/dist/shared/document-selection.js.map +1 -0
- package/dist/shared/error-message.d.ts +2 -0
- package/dist/shared/error-message.js +42 -0
- package/dist/shared/error-message.js.map +1 -0
- package/dist/shared/identity-values.d.ts +13 -0
- package/dist/shared/identity-values.js +18 -0
- package/dist/shared/identity-values.js.map +1 -0
- package/dist/shared/identity.d.ts +18 -0
- package/dist/shared/identity.js +26 -0
- package/dist/shared/identity.js.map +1 -0
- package/dist/shared/integer-literal.d.ts +3 -0
- package/dist/shared/integer-literal.js +11 -0
- package/dist/shared/integer-literal.js.map +1 -0
- package/dist/shared/judgements.d.ts +6 -0
- package/dist/shared/judgements.js +9 -0
- package/dist/shared/judgements.js.map +1 -0
- package/dist/shared/names.d.ts +4 -0
- package/dist/shared/names.js +51 -0
- package/dist/shared/names.js.map +1 -0
- package/dist/shared/operators.d.ts +5 -0
- package/dist/shared/operators.js +67 -0
- package/dist/shared/operators.js.map +1 -0
- package/dist/shared/order.d.ts +2 -0
- package/dist/shared/order.js +4 -0
- package/dist/shared/order.js.map +1 -0
- package/dist/shared/outputs.d.ts +18 -0
- package/dist/shared/outputs.js +28 -0
- package/dist/shared/outputs.js.map +1 -0
- package/dist/shared/project-setup.d.ts +119 -0
- package/dist/shared/project-setup.js +31 -0
- package/dist/shared/project-setup.js.map +1 -0
- package/dist/shared/protocol.d.ts +21 -0
- package/dist/shared/protocol.js +2 -0
- package/dist/shared/protocol.js.map +1 -0
- package/dist/shared/scalar-expression.d.ts +4 -0
- package/dist/shared/scalar-expression.js +25 -0
- package/dist/shared/scalar-expression.js.map +1 -0
- package/dist/shared/source-contracts.d.ts +242 -0
- package/dist/shared/source-contracts.js +126 -0
- package/dist/shared/source-contracts.js.map +1 -0
- package/dist/shared/source-limits.d.ts +1 -0
- package/dist/shared/source-limits.js +3 -0
- package/dist/shared/source-limits.js.map +1 -0
- package/dist/shared/source-policy.d.ts +8 -0
- package/dist/shared/source-policy.js +59 -0
- package/dist/shared/source-policy.js.map +1 -0
- package/dist/shared/source-read.d.ts +8 -0
- package/dist/shared/source-read.js +71 -0
- package/dist/shared/source-read.js.map +1 -0
- package/dist/shared/text-pages.d.ts +8 -0
- package/dist/shared/text-pages.js +29 -0
- package/dist/shared/text-pages.js.map +1 -0
- package/dist/shared/text.d.ts +3 -0
- package/dist/shared/text.js +12 -0
- package/dist/shared/text.js.map +1 -0
- package/dist/shared/workspace.d.ts +8 -0
- package/dist/shared/workspace.js +11 -0
- package/dist/shared/workspace.js.map +1 -0
- package/dist/storage/graph.d.ts +3 -0
- package/dist/storage/graph.js +8 -0
- package/dist/storage/graph.js.map +1 -0
- package/dist/storage/layout.d.ts +10 -0
- package/dist/storage/layout.js +11 -0
- package/dist/storage/layout.js.map +1 -0
- package/dist/storage/legacy.d.ts +2 -0
- package/dist/storage/legacy.js +33 -0
- package/dist/storage/legacy.js.map +1 -0
- package/dist/storage/local.d.ts +16 -0
- package/dist/storage/local.js +98 -0
- package/dist/storage/local.js.map +1 -0
- package/dist/storage/paths.d.ts +4 -0
- package/dist/storage/paths.js +31 -0
- package/dist/storage/paths.js.map +1 -0
- package/dist/storage/recorded-history.d.ts +50 -0
- package/dist/storage/recorded-history.js +193 -0
- package/dist/storage/recorded-history.js.map +1 -0
- package/dist/storage/writer.d.ts +9 -0
- package/dist/storage/writer.js +73 -0
- package/dist/storage/writer.js.map +1 -0
- package/dist/studio/authoring-expression.d.ts +2 -0
- package/dist/studio/authoring-expression.js +15 -0
- package/dist/studio/authoring-expression.js.map +1 -0
- package/dist/studio/block-document.d.ts +115 -0
- package/dist/studio/block-document.js +282 -0
- package/dist/studio/block-document.js.map +1 -0
- package/dist/studio/block-model.d.ts +3 -0
- package/dist/studio/block-model.js +399 -0
- package/dist/studio/block-model.js.map +1 -0
- package/dist/studio/buffer-base.d.ts +15 -0
- package/dist/studio/buffer-base.js +26 -0
- package/dist/studio/buffer-base.js.map +1 -0
- package/dist/studio/completion-position.d.ts +17 -0
- package/dist/studio/completion-position.js +54 -0
- package/dist/studio/completion-position.js.map +1 -0
- package/dist/studio/completion.d.ts +3 -0
- package/dist/studio/completion.js +51 -0
- package/dist/studio/completion.js.map +1 -0
- package/dist/studio/declaration-authoring.d.ts +67 -0
- package/dist/studio/declaration-authoring.js +152 -0
- package/dist/studio/declaration-authoring.js.map +1 -0
- package/dist/studio/declaration-data.d.ts +516 -0
- package/dist/studio/declaration-data.js +186 -0
- package/dist/studio/declaration-data.js.map +1 -0
- package/dist/studio/declaration-imports.d.ts +74 -0
- package/dist/studio/declaration-imports.js +114 -0
- package/dist/studio/declaration-imports.js.map +1 -0
- package/dist/studio/declaration-references.d.ts +2 -0
- package/dist/studio/declaration-references.js +23 -0
- package/dist/studio/declaration-references.js.map +1 -0
- package/dist/studio/declaration-type-inventory.d.ts +27 -0
- package/dist/studio/declaration-type-inventory.js +113 -0
- package/dist/studio/declaration-type-inventory.js.map +1 -0
- package/dist/studio/declaration-type-protocol.d.ts +83 -0
- package/dist/studio/declaration-type-protocol.js +39 -0
- package/dist/studio/declaration-type-protocol.js.map +1 -0
- package/dist/studio/document-links.d.ts +13 -0
- package/dist/studio/document-links.js +43 -0
- package/dist/studio/document-links.js.map +1 -0
- package/dist/studio/generate.d.ts +4 -0
- package/dist/studio/generate.js +9 -0
- package/dist/studio/generate.js.map +1 -0
- package/dist/studio/implementation-draft.d.ts +22 -0
- package/dist/studio/implementation-draft.js +20 -0
- package/dist/studio/implementation-draft.js.map +1 -0
- package/dist/studio/interface-builder.d.ts +60 -0
- package/dist/studio/interface-builder.js +203 -0
- package/dist/studio/interface-builder.js.map +1 -0
- package/dist/studio/interface-data.d.ts +113 -0
- package/dist/studio/interface-data.js +308 -0
- package/dist/studio/interface-data.js.map +1 -0
- package/dist/studio/interface-description.d.ts +5 -0
- package/dist/studio/interface-description.js +35 -0
- package/dist/studio/interface-description.js.map +1 -0
- package/dist/studio/interface-merge.d.ts +13 -0
- package/dist/studio/interface-merge.js +53 -0
- package/dist/studio/interface-merge.js.map +1 -0
- package/dist/studio/interface-search.d.ts +5 -0
- package/dist/studio/interface-search.js +21 -0
- package/dist/studio/interface-search.js.map +1 -0
- package/dist/studio/interface-syntax.d.ts +5 -0
- package/dist/studio/interface-syntax.js +20 -0
- package/dist/studio/interface-syntax.js.map +1 -0
- package/dist/studio/machine-authoring.d.ts +2 -0
- package/dist/studio/machine-authoring.js +50 -0
- package/dist/studio/machine-authoring.js.map +1 -0
- package/dist/studio/machine-data.d.ts +29 -0
- package/dist/studio/machine-data.js +35 -0
- package/dist/studio/machine-data.js.map +1 -0
- package/dist/studio/numeric-range.d.ts +5 -0
- package/dist/studio/numeric-range.js +13 -0
- package/dist/studio/numeric-range.js.map +1 -0
- package/dist/studio/operation-contract.d.ts +71 -0
- package/dist/studio/operation-contract.js +271 -0
- package/dist/studio/operation-contract.js.map +1 -0
- package/dist/studio/operation-data.d.ts +155 -0
- package/dist/studio/operation-data.js +67 -0
- package/dist/studio/operation-data.js.map +1 -0
- package/dist/studio/protocol.d.ts +84 -0
- package/dist/studio/protocol.js +2 -0
- package/dist/studio/protocol.js.map +1 -0
- package/dist/studio/range-data.d.ts +49 -0
- package/dist/studio/range-data.js +96 -0
- package/dist/studio/range-data.js.map +1 -0
- package/dist/studio/recipes.d.ts +74 -0
- package/dist/studio/recipes.js +194 -0
- package/dist/studio/recipes.js.map +1 -0
- package/dist/studio/recovery.d.ts +240 -0
- package/dist/studio/recovery.js +345 -0
- package/dist/studio/recovery.js.map +1 -0
- package/dist/studio/resource-authoring.d.ts +58 -0
- package/dist/studio/resource-authoring.js +87 -0
- package/dist/studio/resource-authoring.js.map +1 -0
- package/dist/studio/resource-definition.d.ts +12 -0
- package/dist/studio/resource-definition.js +34 -0
- package/dist/studio/resource-definition.js.map +1 -0
- package/dist/studio/resource-merge.d.ts +16 -0
- package/dist/studio/resource-merge.js +99 -0
- package/dist/studio/resource-merge.js.map +1 -0
- package/dist/studio/server.d.ts +13 -0
- package/dist/studio/server.js +715 -0
- package/dist/studio/server.js.map +1 -0
- package/dist/studio/service.d.ts +2272 -0
- package/dist/studio/service.js +2594 -0
- package/dist/studio/service.js.map +1 -0
- package/dist/studio/shape-description.d.ts +2 -0
- package/dist/studio/shape-description.js +25 -0
- package/dist/studio/shape-description.js.map +1 -0
- package/dist/studio/shapes.d.ts +49 -0
- package/dist/studio/shapes.js +143 -0
- package/dist/studio/shapes.js.map +1 -0
- package/dist/studio/signature-source.d.ts +8 -0
- package/dist/studio/signature-source.js +35 -0
- package/dist/studio/signature-source.js.map +1 -0
- package/dist/studio/signature.d.ts +48 -0
- package/dist/studio/signature.js +285 -0
- package/dist/studio/signature.js.map +1 -0
- package/dist/studio/source-edit.d.ts +32 -0
- package/dist/studio/source-edit.js +88 -0
- package/dist/studio/source-edit.js.map +1 -0
- package/dist/studio/state.d.ts +2 -0
- package/dist/studio/state.js +7 -0
- package/dist/studio/state.js.map +1 -0
- package/dist/studio/type-authoring.d.ts +25 -0
- package/dist/studio/type-authoring.js +161 -0
- package/dist/studio/type-authoring.js.map +1 -0
- package/dist/studio/type-choices.d.ts +23 -0
- package/dist/studio/type-choices.js +40 -0
- package/dist/studio/type-choices.js.map +1 -0
- package/dist/studio/type-edit-data.d.ts +24 -0
- package/dist/studio/type-edit-data.js +92 -0
- package/dist/studio/type-edit-data.js.map +1 -0
- package/dist/studio/type-edit.d.ts +26 -0
- package/dist/studio/type-edit.js +34 -0
- package/dist/studio/type-edit.js.map +1 -0
- package/dist/studio/unsaved-buffers.d.ts +7 -0
- package/dist/studio/unsaved-buffers.js +13 -0
- package/dist/studio/unsaved-buffers.js.map +1 -0
- package/dist-web/assets/editor-DPqUEO-b.js +13 -0
- package/dist-web/assets/index-BqVh2Gmm.css +1 -0
- package/dist-web/assets/index-Ds5D7TkX.js +234 -0
- package/dist-web/assets/react-Con9QuWu.js +22 -0
- package/dist-web/index.html +7 -0
- package/docs/agent-workflow.md +69 -0
- package/docs/code-guide.md +370 -0
- package/docs/grammar.md +73 -0
- package/docs/journeys.md +18 -0
- package/docs/licences.md +266 -0
- package/docs/mcp.md +357 -0
- package/docs/output-plugins.md +236 -0
- package/docs/project-init.md +200 -0
- package/docs/report.schema.json +362 -0
- package/docs/studio.md +314 -0
- package/docs/support.md +1807 -0
- package/examples/mvp/algorithm.pym +7 -0
- package/examples/mvp/checkout-double-charge.pym +17 -0
- package/examples/mvp/checkout-fixed.pym +17 -0
- package/examples/mvp/checkout-late.pym +20 -0
- package/examples/mvp/checkout-missing-refund.pym +17 -0
- package/examples/mvp/checkout-stock-leak.pym +17 -0
- package/examples/mvp/checkout.pym +21 -0
- package/examples/mvp/files-buggy.pym +14 -0
- package/examples/mvp/files-fixed.pym +14 -0
- package/examples/mvp/flow-assertion.pym +6 -0
- package/examples/mvp/library.pym +12 -0
- package/examples/mvp/library.scope.json +1 -0
- package/examples/mvp/task-buggy.pym +15 -0
- package/examples/mvp/task-fixed.pym +15 -0
- package/examples/mvp/task-local.pym +23 -0
- package/examples/mvp/task-protocol.pym +38 -0
- package/examples/plugins/javascript.mjs +126 -0
- package/examples/self/architecture-storage.pym +26 -0
- package/examples/self/authoring.pym +31 -0
- package/examples/self/contract-authoring.pym +85 -0
- package/examples/self/discovery.pym +23 -0
- package/examples/self/initialization.pym +38 -0
- package/examples/self/output.pym +18 -0
- package/examples/self/pipeline.pym +23 -0
- package/examples/self/publication.pym +10 -0
- package/examples/self/source-reviews.pym +80 -0
- package/examples/self/studio.pym +31 -0
- package/examples/self/type-discovery.pym +46 -0
- package/examples/workbench/billing.pym +14 -0
- package/examples/workbench/catalogue.pym +3 -0
- package/examples/workbench/domain.pym +5 -0
- package/examples/workbench/fulfilment.pym +14 -0
- package/examples/workbench/policy.pym +4 -0
- package/examples/workbench/quote.pym +11 -0
- package/examples/workbench/system.pym +12 -0
- package/grammars/README.md +85 -0
- package/grammars/go/LICENSE +21 -0
- package/grammars/go/manifest.json +41 -0
- package/grammars/go/tree-sitter-go.wasm +0 -0
- package/grammars/rust/LICENSE +21 -0
- package/grammars/rust/manifest.json +111 -0
- package/grammars/rust/tree-sitter-rust.wasm +0 -0
- package/package.json +108 -4
- package/pymtheg +3 -0
- package/src/graph/languages/go/toolchain/golinks.go +1279 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Karl Livesey
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
|
6
|
+
associated documentation files (the "Software"), to deal in the Software without restriction, including
|
|
7
|
+
without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
|
|
9
|
+
following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial
|
|
12
|
+
portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
|
15
|
+
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
|
|
16
|
+
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
17
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
18
|
+
USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,246 @@
|
|
|
1
|
-
|
|
1
|
+
<img src="assets/icon.svg" width="64" height="64" alt="">
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# Pymtheg
|
|
4
|
+
|
|
5
|
+
Pymtheg is a local tool for planning and checking software designs and for
|
|
6
|
+
answering questions about existing code. You write a design in small `.pym`
|
|
7
|
+
files and Pymtheg checks it before any code exists. For TypeScript, Go and Rust
|
|
8
|
+
code it builds a call graph and keeps track of which requirement each piece of
|
|
9
|
+
code serves. A coding agent can drive all of it over MCP (the Model Context
|
|
10
|
+
Protocol, which coding agents use to call tools).
|
|
11
|
+
|
|
12
|
+
What it does today:
|
|
13
|
+
|
|
14
|
+
- **Designs and design documents.** Keep requirements, decisions and design
|
|
15
|
+
documents with their revision history. Write `.pym` designs and check them for
|
|
16
|
+
missing outcomes, resources that are never cleaned up, work multiplied by
|
|
17
|
+
loops and retries, and the same rule copied in several places. Explore
|
|
18
|
+
behaviour with a built-in exhaustive search (`verify`) or a seeded sampler
|
|
19
|
+
(`simulate`: random runs where the same seed and limits give the same
|
|
20
|
+
result), and follow each counterexample back to the design.
|
|
21
|
+
- **Code graph** for TypeScript/JavaScript, Go and Rust: search, callers, callees,
|
|
22
|
+
paths between two symbols, and the impact of a change. Every call says how
|
|
23
|
+
certain it is.
|
|
24
|
+
- **Requirement links** between requirements and code symbols. `link check`
|
|
25
|
+
reports which links are still `ok` and which code has changed, moved or gone.
|
|
26
|
+
- **MCP server** (`pymtheg mcp`) so a coding agent can check designs, read
|
|
27
|
+
findings and counterexamples, query the graph and manage requirement links.
|
|
28
|
+
- **Studio**, a local web workspace for designs, documents and requirements.
|
|
29
|
+
- **Scaffolds**: TypeScript, Rust or Go types and signatures from a checked
|
|
30
|
+
design, with stubs that fail until you write the body.
|
|
31
|
+
|
|
32
|
+
## Why it exists
|
|
33
|
+
|
|
34
|
+
Someone changing code, person or agent, needs answers before the edit: what
|
|
35
|
+
calls this, what does a change here affect, and which requirement does this
|
|
36
|
+
code serve? Reading files by hand gives partial answers and no warning when
|
|
37
|
+
they are incomplete. Pymtheg answers from a graph of the whole project and says
|
|
38
|
+
which answers are certain.
|
|
39
|
+
|
|
40
|
+
A design is cheaper to fix than code. Pymtheg checks a design for the faults
|
|
41
|
+
that are expensive later: an error path that leaks a file, a retry that charges
|
|
42
|
+
a customer twice, a loop that makes 600 remote calls against a budget of 500.
|
|
43
|
+
The intended loop is short: write or generate a design, check it, read the
|
|
44
|
+
finding, correct it, check again, then write the code.
|
|
45
|
+
|
|
46
|
+
Requirement links keep the "why" next to the code. When the linked code
|
|
47
|
+
changes, moves or disappears, `link check` says so instead of the link silently
|
|
48
|
+
going stale.
|
|
49
|
+
|
|
50
|
+
## Who it is for
|
|
51
|
+
|
|
52
|
+
- Developers working on TypeScript/JavaScript, Go or Rust code who want to
|
|
53
|
+
plan, check and trace their work locally.
|
|
54
|
+
- Coding agents (through MCP) that need reliable answers about a codebase and a
|
|
55
|
+
way to check a design before writing code.
|
|
56
|
+
|
|
57
|
+
It is not for you if you need:
|
|
58
|
+
|
|
59
|
+
- other languages (Python, Java, C#, Lua and others are not supported);
|
|
60
|
+
- a proof that production code does what a design says (Pymtheg does not
|
|
61
|
+
check that);
|
|
62
|
+
- a hosted or team-synchronised service (everything is local; teams share by
|
|
63
|
+
committing files and exporting history).
|
|
64
|
+
|
|
65
|
+
## When to use it, and when not to
|
|
66
|
+
|
|
67
|
+
Use it before a change, to see callers and impact; when planning a feature, to
|
|
68
|
+
check the design first; and to keep requirements tied to the code that serves them.
|
|
69
|
+
|
|
70
|
+
Read the answers with their limits:
|
|
71
|
+
|
|
72
|
+
- **Definite, candidate, unresolved, failed.** A definite call has exactly one
|
|
73
|
+
target. A candidate set lists the possible targets in the project and never
|
|
74
|
+
picks one; a set marked open may have further targets outside the project or
|
|
75
|
+
in a file that could not be read, or members that are not verified. An
|
|
76
|
+
unresolved call has no target. A failed link depends on a file that could
|
|
77
|
+
not be read; Pymtheg never guesses its target.
|
|
78
|
+
- Graph answers come from reading source. Pymtheg never runs your code. Only Go
|
|
79
|
+
can optionally use the project's own `go` toolchain for more definite answers.
|
|
80
|
+
- A sampled `simulate` run that finds nothing is not a proof. Only a completed
|
|
81
|
+
`verify` covers every reachable state, and only of the finite design you wrote.
|
|
82
|
+
- A design check is not a proof that production code follows the design.
|
|
83
|
+
- Not built yet: toolchain-backed Rust links, a Studio screen for the graph,
|
|
84
|
+
links from `.pym` declarations to code, live team synchronisation.
|
|
85
|
+
|
|
86
|
+
The full support matrix is in [docs/support.md](docs/support.md).
|
|
87
|
+
|
|
88
|
+
## Where it runs and where things live
|
|
89
|
+
|
|
90
|
+
- Runs on your machine. Requires **Node 24 or newer**. No Java, no account and
|
|
91
|
+
no cloud service.
|
|
92
|
+
- After install it needs no network. The release acceptance gate installs the
|
|
93
|
+
package, cuts the network, then runs `init`, `doctor`, design checks, `verify`,
|
|
94
|
+
`simulate`, graph indexing and queries, requirement links, the MCP server and
|
|
95
|
+
Studio.
|
|
96
|
+
- `pymtheg init` creates `.pymtheg/project.json`, `.pymtheg/settings.json` and
|
|
97
|
+
`.pymtheg/.gitignore` in the project folder, and nothing else. Commit those
|
|
98
|
+
three. Databases are created later, only when a feature needs them, under
|
|
99
|
+
`.pymtheg/shared/` (requirements, decisions, history) and
|
|
100
|
+
`.pymtheg/rebuildable/` (graph cache), which the generated `.gitignore`
|
|
101
|
+
excludes. Details: [docs/project-init.md](docs/project-init.md#local-state-and-sharing).
|
|
102
|
+
- The acceptance gate checks that a whole session creates or changes no file
|
|
103
|
+
outside the project folders, npm's own cache and Node's compile cache, and
|
|
104
|
+
nothing inside the installed package.
|
|
105
|
+
- Optional toolchains: with `go` (1.22 or newer) installed and the Go toolchain
|
|
106
|
+
route turned on in `.pymtheg/settings.json`, indexing also asks `go` for type
|
|
107
|
+
facts, which can make more Go calls definite. It runs with network off. Rust
|
|
108
|
+
is source-only: `cargo` and `rustc` are not used.
|
|
109
|
+
|
|
110
|
+
## Quick start
|
|
111
|
+
|
|
112
|
+
Create the project files, then check the setup:
|
|
113
|
+
|
|
114
|
+
```sh
|
|
115
|
+
cd /path/to/my-project
|
|
116
|
+
npx pymtheg init . --name "My project"
|
|
117
|
+
npx pymtheg doctor
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
`init` works in an empty folder too. It never invents source or plans. If the
|
|
121
|
+
folder has documentation, it offers a preview; `--import-docs` keeps it.
|
|
122
|
+
|
|
123
|
+
Index the code and ask a question:
|
|
124
|
+
|
|
125
|
+
```sh
|
|
126
|
+
npx pymtheg graph index --root .
|
|
127
|
+
npx pymtheg graph callers total --root .
|
|
128
|
+
npx pymtheg graph impact total --root .
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
Link a requirement to the code that serves it, and check the link later:
|
|
132
|
+
|
|
133
|
+
```sh
|
|
134
|
+
npx pymtheg link requirement R1 --title "The basket shows its total" --root .
|
|
135
|
+
npx pymtheg link add R1 render --root .
|
|
136
|
+
npx pymtheg link check --root .
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
Connect a coding agent. The agent starts the server itself and talks to it
|
|
140
|
+
over stdio (its standard input and output). Started inside an initialised
|
|
141
|
+
project, the server finds the project from any subfolder. For an agent, install
|
|
142
|
+
once so the server starts quickly:
|
|
143
|
+
|
|
144
|
+
```sh
|
|
145
|
+
npm install --global pymtheg
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
Then add it to your agent's MCP configuration (formats vary by client):
|
|
149
|
+
|
|
150
|
+
```json
|
|
151
|
+
{
|
|
152
|
+
"mcpServers": {
|
|
153
|
+
"pymtheg": { "command": "pymtheg", "args": ["mcp", "/absolute/path/to/my-project"] }
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
Studio's **Connect agent** button shows the exact configuration for your
|
|
159
|
+
installation, with a **Copy configuration** button. Agents start with
|
|
160
|
+
[docs/agent-workflow.md](docs/agent-workflow.md) and
|
|
161
|
+
[docs/code-guide.md](docs/code-guide.md); both are also served as MCP resources.
|
|
162
|
+
|
|
163
|
+
Open Studio, then open the printed private session URL in Firefox:
|
|
164
|
+
|
|
165
|
+
```sh
|
|
166
|
+
npx pymtheg studio .
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
### From source
|
|
170
|
+
|
|
171
|
+
For contributors, from a clone of this repository:
|
|
172
|
+
|
|
173
|
+
```sh
|
|
174
|
+
npm ci --ignore-scripts
|
|
175
|
+
npm run build
|
|
176
|
+
./pymtheg doctor
|
|
177
|
+
./pymtheg check examples/mvp/files-buggy.pym
|
|
178
|
+
./pymtheg init /path/to/my-project --name "My project"
|
|
179
|
+
./pymtheg studio /path/to/my-project
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
`files-buggy.pym` is a deliberately faulty example and exits 1. The examples
|
|
183
|
+
are walked through in [docs/journeys.md](docs/journeys.md).
|
|
184
|
+
|
|
185
|
+
## Documentation
|
|
186
|
+
|
|
187
|
+
- [docs/code-guide.md](docs/code-guide.md): a worked MCP session with the code graph and requirement links.
|
|
188
|
+
- [docs/mcp.md](docs/mcp.md): starting the MCP server, and every tool with a tested example.
|
|
189
|
+
- [docs/agent-workflow.md](docs/agent-workflow.md): how a coding agent works on a design.
|
|
190
|
+
- [docs/project-init.md](docs/project-init.md): `init`, importing documents, local state and sharing.
|
|
191
|
+
- [docs/studio.md](docs/studio.md): the Studio workspace.
|
|
192
|
+
- [docs/grammar.md](docs/grammar.md): the `.pym` language.
|
|
193
|
+
- [docs/journeys.md](docs/journeys.md): five worked design examples.
|
|
194
|
+
- [docs/output-plugins.md](docs/output-plugins.md): scaffolds, contracts and adding output languages.
|
|
195
|
+
- [docs/support.md](docs/support.md): what is supported, and the exact meaning of each result.
|
|
196
|
+
- [docs/licences.md](docs/licences.md): licences of everything the package ships.
|
|
197
|
+
|
|
198
|
+
## More detail
|
|
199
|
+
|
|
200
|
+
**Exit codes** for `check`, `verify` and `simulate`: **0** the requested
|
|
201
|
+
checks completed without errors; **1** design errors or a counterexample;
|
|
202
|
+
**2** incomplete, unsupported, timed out or stale; **3** invocation, file,
|
|
203
|
+
integration or internal failure; **130** cancelled. When several apply,
|
|
204
|
+
cancellation wins, then a failure (3), then errors (1), then incomplete (2).
|
|
205
|
+
`verify` stops at `--state-budget` distinct states (default 1,000,000);
|
|
206
|
+
properties it has not violated by then are inconclusive (exit 2), never passed.
|
|
207
|
+
`--format json` gives versioned output; every behaviour result carries
|
|
208
|
+
`exhaustive`, which is `true` only for a search that covered every reachable
|
|
209
|
+
state.
|
|
210
|
+
|
|
211
|
+
**Options for `check`, `verify` and `simulate`.** `--out report.json` also
|
|
212
|
+
writes the JSON report to a file, atomically, and still prints the findings.
|
|
213
|
+
`--verbose` prints progress phases on stderr, so stdout stays clean. For
|
|
214
|
+
`verify` and `simulate` only, `--timeout 500ms` or `45s` bounds the behavioural
|
|
215
|
+
exploration (default 45s, 1ms to 120s); running out leaves the result
|
|
216
|
+
incomplete (exit 2). It does not bound `check` or the whole invocation.
|
|
217
|
+
|
|
218
|
+
**Running under `npx`.** Each `npx` call costs a few seconds and some memory
|
|
219
|
+
before any work, so prefer the MCP server (one long-running process) or a global
|
|
220
|
+
install for agents. `pymtheg studio` and `pymtheg mcp` stop cleanly on SIGINT
|
|
221
|
+
and SIGTERM. Under `npx`, npm passes a signal only to its own child shell; where
|
|
222
|
+
that shell stays as the parent (as in some Debian-based images) the signal never
|
|
223
|
+
reaches Pymtheg. A terminal's Ctrl-C is not affected. A supervisor that stops
|
|
224
|
+
the server by PID should signal the process group (`kill -INT -- -PGID`) or run
|
|
225
|
+
the installed `pymtheg` binary directly.
|
|
226
|
+
|
|
227
|
+
**What the install brings.** Five runtime dependencies (ten packages in all)
|
|
228
|
+
and no install scripts. Studio's browser app and the code-graph grammars ship
|
|
229
|
+
prebuilt.
|
|
230
|
+
|
|
231
|
+
**Installing from a local tarball.** After `npm run build`, `npm pack
|
|
232
|
+
--ignore-scripts` writes a tarball. Write it as `./name.tgz` or
|
|
233
|
+
`file:/absolute/path/name.tgz` (for example `npx ./pymtheg-<version>.tgz
|
|
234
|
+
--help`): npm treats a bare absolute path as a command and fails with exit 126.
|
|
235
|
+
|
|
236
|
+
## Status, contributing and licence
|
|
237
|
+
|
|
238
|
+
Version 0.1.0 is the first public release. It is early: commands, MCP tools
|
|
239
|
+
and file formats may change before 1.0.
|
|
240
|
+
|
|
241
|
+
Contributions are welcome; see [CONTRIBUTING.md](CONTRIBUTING.md). Tests run
|
|
242
|
+
with `npm test`.
|
|
243
|
+
|
|
244
|
+
Pymtheg is licensed under the MIT License; see [LICENSE](LICENSE). Third-party
|
|
245
|
+
components and their licences are listed in [docs/licences.md](docs/licences.md),
|
|
246
|
+
with full notices in [THIRD-PARTY-NOTICES](THIRD-PARTY-NOTICES).
|