behavior-contracts 0.11.23 → 0.12.1

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.
Files changed (63) hide show
  1. package/cli-contract.yaml +27 -20
  2. package/dist/authoring.d.ts +4 -4
  3. package/dist/authoring.d.ts.map +1 -1
  4. package/dist/authoring.js +11 -23
  5. package/dist/authoring.js.map +1 -1
  6. package/dist/behavior.d.ts +3 -3
  7. package/dist/behavior.d.ts.map +1 -1
  8. package/dist/behavior.js +7 -10
  9. package/dist/behavior.js.map +1 -1
  10. package/dist/cli.js +3 -3
  11. package/dist/cli.js.map +1 -1
  12. package/dist/generated/contract.d.ts.map +1 -1
  13. package/dist/generated/contract.js +2 -2
  14. package/dist/generated/contract.js.map +1 -1
  15. package/dist/generated/program.js +4 -4
  16. package/dist/generated/program.js.map +1 -1
  17. package/dist/generator/core.d.ts +13 -10
  18. package/dist/generator/core.d.ts.map +1 -1
  19. package/dist/generator/core.js.map +1 -1
  20. package/dist/generator/emit-native-dynamic.d.ts +203 -0
  21. package/dist/generator/emit-native-dynamic.d.ts.map +1 -0
  22. package/dist/generator/emit-native-dynamic.js +736 -0
  23. package/dist/generator/emit-native-dynamic.js.map +1 -0
  24. package/dist/generator/emit-native-php.d.ts +4 -0
  25. package/dist/generator/emit-native-php.d.ts.map +1 -0
  26. package/dist/generator/emit-native-php.js +668 -0
  27. package/dist/generator/emit-native-php.js.map +1 -0
  28. package/dist/generator/emit-native-python.d.ts +4 -0
  29. package/dist/generator/emit-native-python.d.ts.map +1 -0
  30. package/dist/generator/emit-native-python.js +592 -0
  31. package/dist/generator/emit-native-python.js.map +1 -0
  32. package/dist/generator/emit-php.d.ts +4 -0
  33. package/dist/generator/emit-php.d.ts.map +1 -1
  34. package/dist/generator/emit-php.js +6 -2
  35. package/dist/generator/emit-php.js.map +1 -1
  36. package/dist/generator/emit-python.d.ts +4 -0
  37. package/dist/generator/emit-python.d.ts.map +1 -1
  38. package/dist/generator/emit-python.js +2 -2
  39. package/dist/generator/emit-python.js.map +1 -1
  40. package/dist/generator/emit-shared-typescript.d.ts.map +1 -1
  41. package/dist/generator/emit-shared-typescript.js +15 -20
  42. package/dist/generator/emit-shared-typescript.js.map +1 -1
  43. package/dist/generator/emit-typed-native-go.d.ts.map +1 -1
  44. package/dist/generator/emit-typed-native-go.js +50 -553
  45. package/dist/generator/emit-typed-native-go.js.map +1 -1
  46. package/dist/generator/emit-typed-native-rust.d.ts.map +1 -1
  47. package/dist/generator/emit-typed-native-rust.js +43 -471
  48. package/dist/generator/emit-typed-native-rust.js.map +1 -1
  49. package/dist/generator/index.d.ts +2 -0
  50. package/dist/generator/index.d.ts.map +1 -1
  51. package/dist/generator/index.js +9 -1
  52. package/dist/generator/index.js.map +1 -1
  53. package/dist/generator/native-coverage.d.ts +162 -0
  54. package/dist/generator/native-coverage.d.ts.map +1 -0
  55. package/dist/generator/native-coverage.js +412 -0
  56. package/dist/generator/native-coverage.js.map +1 -0
  57. package/dist/generator/native-expr.d.ts +1 -1
  58. package/dist/generator/native-expr.d.ts.map +1 -1
  59. package/dist/generator/typed.d.ts +6 -0
  60. package/dist/generator/typed.d.ts.map +1 -1
  61. package/dist/generator/typed.js +17 -0
  62. package/dist/generator/typed.js.map +1 -1
  63. package/package.json +3 -2
@@ -1,5 +1,5 @@
1
1
  // Auto-generated by cli-contracts. Do not edit.
2
2
  // Embedded contract for the extract subcommand.
3
- export const CONTRACT_YAML = "# yaml-language-server: $schema=./node_modules/cli-contracts/schemas/cli-contract.schema.json\ncli_contracts: 0.1.0\n\ninfo:\n title: behavior-contracts CLI\n version: 0.1.0\n description: >-\n bc — the build-time codegen CLI over behavior-contracts' public API.\n The consumer authors behaviors in native TS only (`@behavior` / `@leaf`\n static methods with plain TS bodies) and never touches the IR. `bc generate\n --from <behaviors.ts> --behavior <ClassName>` uses the TypeScript compiler to\n read each method's SOURCE — type-extracting parameter/return types and\n lowering the body AST (`+`/`?:`/`.map`/`?.` etc.) to the component-graph IR\n (no module execution), then runs source→ir→emit end to end in-process. What\n is emitted depends on the target: the codegen targets (typed ts, native\n go/rust) terminate the IR at build time and embed none of it (IR-free), while\n the literal targets (ts/python/php) bake the IR in and punt to the runtime.\n Only the go/rust native targets import no bc runtime at all (runtime-free).\n The IR exists only inside the CLI; nothing reads it at runtime. `typescript` is a\n build-time-only optional peer dependency used solely on this `--from <.ts>`\n path; the runtime entry stays dependency-free. `--in <ir-doc.json>` (a\n pre-serialized ComponentGraphIRDoc) remains as an internal/test input\n alongside --from.\n license:\n name: MIT\n contact:\n name: foo-ogawa\n url: https://github.com/foo-ogawa/behavior-contracts\n\nartifact_slots:\n behaviors-module:\n direction: read\n description: >-\n The consumer's TS SOURCE module exporting an `@behavior` class with\n `@behavior` / `@leaf` static methods — the TS-authoring codegen input\n (`--from`). The TS compiler type-extracts each method's parameter/return\n types and lowers its body AST to IR (no module execution). BC runs\n source→ir→native.\n ir-doc:\n direction: read\n description: >-\n Serialized ComponentGraphIRDoc (unbranded JSON IR) — the internal/test\n codegen input (`--in`). The TS-authoring surface uses --from instead.\n generated-module:\n direction: write\n description: >-\n Generated module source for the requested target (literal = IR baked in;\n codegen = IR-free; go/rust native additionally runtime-free).\n\ncommand_sets:\n bc:\n summary: build-time codegen CLI over behavior-contracts' public API.\n executable: bc\n\n global_options:\n - name: version\n aliases: [V]\n description: Print version and exit.\n schema:\n type: boolean\n\n - name: help\n aliases: [h]\n description: Show help and exit.\n schema:\n type: boolean\n\n commands:\n # ── generate ─────────────────────────────────────────\n generate:\n summary: Emit a native module from a TS behavior module (--from) or a serialized IR doc (--in).\n description: >-\n TS-authoring flow (--from): reads the consumer's TS SOURCE module and\n its --behavior export (an `@behavior` class), then runs source→ir→native\n in-process (the AST reader lowers each method to IR → generateModule)\n for the --lang emitter. The IR is CLI-internal and never touches the\n consumer surface. Internal/test flow (--in): reads the\n ComponentGraphIRDoc, adopts it via loadCompiledIR, and runs the same\n generateModule. Exactly one of --from / --in is required (--from also\n requires --behavior). Writes the module source to --out if given, else\n to stdout. Rejects an unregistered --lang.\n usage:\n - bc generate --lang rust-typed-native --from behaviors.ts --behavior UserRepo --out gen.rs\n - bc generate --lang go-typed-native --from behaviors.ts --behavior UserRepo --out gen.go\n - bc generate --lang typescript-typed --in ir-doc.json --runtime-import ./runtime.js\n\n options:\n - name: lang\n required: true\n description: >-\n Target emitter (must be a registered language, e.g.\n rust-typed-native, go-typed-native, typescript-typed).\n value_name: emitter\n schema:\n type: string\n\n - name: from\n required: false\n description: >-\n TS-authoring input: the consumer's `.ts` SOURCE. The TypeScript\n compiler type-extracts each method's parameter/return types and\n lowers its body AST (`+`/`?:`/`.map`/`?.` etc.) to IR — the source\n is read, not executed. BC compiles the --behavior export's methods\n and runs the emitter. The module's `behavior-contracts` import must\n resolve to the same installed package as bc (so `@behavior`/`@leaf`\n markers are identified by declaration file). Requires the optional\n peer dependency `typescript`. Mutually exclusive with --in.\n value_name: behaviors.ts\n schema:\n type: string\n file:\n mode: read\n exists: true\n encoding: utf-8\n\n - name: behavior\n required: false\n description: >-\n (with --from) The name of the exported `@behavior` class to compile\n (one class = its public static methods, each a root Behavior).\n Required whenever --from is given.\n value_name: ClassName\n schema:\n type: string\n\n - name: in\n required: false\n description: >-\n Internal/test input: path to a serialized ComponentGraphIRDoc JSON\n file. The TS-authoring surface uses --from instead. Mutually\n exclusive with --from.\n value_name: ir-doc.json\n schema:\n type: string\n file:\n mode: read\n exists: true\n media_type: application/json\n encoding: utf-8\n\n - name: out\n required: false\n description: Write the generated covered module here instead of stdout.\n value_name: file\n schema:\n type: string\n file:\n mode: write\n\n - name: shared-types-out\n required: false\n description: >-\n (--lang go-typed-native / rust-typed-native) Write the BC-OWNED\n shared wire types module (WireValue/WireRow/WireList + probe kinds,\n rust also the shared BehaviorError; plus the cross-package/-crate\n batch ports structs) here. This is the module a covered module built\n with --shared-types-import imports. Independent of --out: a build may\n emit the covered module, the shared module, or both. For go the\n emitted package name is derived from --shared-types-import (so\n --shared-types-import is required with go). Rejected for other\n emitters. A standalone --shared-types-out does NOT print the covered\n module to stdout.\n value_name: file\n schema:\n type: string\n file:\n mode: write\n\n - name: runtime-import\n required: false\n description: Override the runtime import specifier baked into the module.\n value_name: spec\n schema:\n type: string\n\n - name: shared-types-import\n required: false\n description: >-\n (--lang go-typed-native / rust-typed-native) Package (go) / crate\n (rust) path for the BC-GENERATED shared wire types (WireValue/\n WireRow/WireList; rust also the shared BehaviorError). When set, BC\n emits those types into that shared package/crate and the covered\n module imports them (go: package-qualified; rust: use <path>::*), so\n a separate leaf-transport package/crate can return them without an\n import cycle (cross-package / cross-crate layout). Absent →\n in-package. Ignored by other emitters.\n value_name: spec\n schema:\n type: string\n\n - name: leaf-transport\n required: false\n repeatable: true\n description: >-\n (--lang rust-typed-native / go-typed-native only) Map a covered leaf\n (catalog component) to the op-agnostic transport symbol the runner\n calls directly, as <leaf>=<symbol>; repeat per leaf. A leaf not\n listed uses the in-package default name (rust leaf_<comp> / go\n Leaf_<comp>). Ignored by other emitters.\n value_name: mapping\n schema:\n type: array\n items:\n type: string\n\n - name: leaf-transport-import\n required: false\n description: >-\n (--lang rust-typed-native / go-typed-native only) Module the leaf\n transport symbols are imported from (rust `use <module>::{…}`, go\n package import + selector); absent → resolve in-scope / same\n package. Ignored by other emitters.\n value_name: module\n schema:\n type: string\n\n exits:\n '0':\n description: Module generated (written to --out, or printed to stdout).\n stdout:\n format: text\n '1':\n description: >-\n Generation failed (--from module unimportable / missing --behavior\n export / compile error; or unreadable/invalid --in; or --lang is\n not a registered emitter).\n stderr:\n format: text\n '2':\n description: >-\n Usage error — --lang omitted, neither --from nor --in given (or\n both), or --from without --behavior.\n stderr:\n format: text\n\n x-agent:\n riskLevel: low\n requiresConfirmation: false\n idempotent: true\n sideEffects:\n - file_write\n sideEffectNote: >-\n Writes to the filesystem only when --out is specified; otherwise\n output goes to stdout.\n\n # ── check ────────────────────────────────────────────\n check:\n summary: Verify a committed module matches a fresh generation (drift gate).\n description: >-\n Regenerates the module for --lang from the SAME input as generate\n (--from a TS behavior module + --behavior, or --in an IR doc) and\n byte-compares it against the committed --out file. Exits non-zero on\n drift. This is the build's codegen drift gate.\n usage:\n - bc check --lang rust-typed-native --from behaviors.ts --behavior UserRepo --out gen.rs\n - bc check --lang rust-typed-native --in ir-doc.json --out gen.rs\n\n options:\n - name: lang\n required: true\n description: Target emitter (must be a registered language).\n value_name: emitter\n schema:\n type: string\n\n - name: from\n required: false\n description: >-\n TS-authoring input (same as generate --from): the consumer's `.ts`\n SOURCE, read by the TS compiler (type-extract + AST-lower, not\n executed; needs the optional peer `typescript`). Regenerated +\n byte-compared against --out. Requires --behavior. Mutually exclusive\n with --in.\n value_name: behaviors.ts\n schema:\n type: string\n file:\n mode: read\n exists: true\n encoding: utf-8\n\n - name: behavior\n required: false\n description: >-\n (with --from) The name of the exported `@behavior` class to\n compile. Required whenever --from is given.\n value_name: ClassName\n schema:\n type: string\n\n - name: in\n required: false\n description: >-\n Internal/test input: path to a serialized ComponentGraphIRDoc JSON\n file. Mutually exclusive with --from.\n value_name: ir-doc.json\n schema:\n type: string\n file:\n mode: read\n exists: true\n media_type: application/json\n encoding: utf-8\n\n - name: out\n required: false\n description: >-\n The committed covered-module file to diff a fresh generation\n against. At least one of --out / --shared-types-out is required.\n value_name: file\n schema:\n type: string\n file:\n mode: read\n exists: true\n\n - name: shared-types-out\n required: false\n description: >-\n (--lang go-typed-native / rust-typed-native) The committed BC-OWNED\n shared wire types module to diff a fresh generation against (drift\n gate for the file emitted by `generate --shared-types-out`). May be\n checked together with --out in one invocation; at least one of\n --out / --shared-types-out is required. For go, --shared-types-import\n is required (it names the package). Rejected for other emitters.\n value_name: file\n schema:\n type: string\n file:\n mode: read\n exists: true\n\n - name: runtime-import\n required: false\n description: Override the runtime import specifier baked into the module.\n value_name: spec\n schema:\n type: string\n\n - name: shared-types-import\n required: false\n description: >-\n (--lang go-typed-native / rust-typed-native) Package (go) / crate\n (rust) path for the BC-GENERATED shared wire types (WireValue/\n WireRow/WireList; rust also the shared BehaviorError). When set, BC\n emits those types into that shared package/crate and the covered\n module imports them (go: package-qualified; rust: use <path>::*), so\n a separate leaf-transport package/crate can return them without an\n import cycle (cross-package / cross-crate layout). Absent →\n in-package. Ignored by other emitters.\n value_name: spec\n schema:\n type: string\n\n - name: leaf-transport\n required: false\n repeatable: true\n description: >-\n (--lang rust-typed-native / go-typed-native only) Map a covered leaf\n (catalog component) to the op-agnostic transport symbol the runner\n calls directly, as <leaf>=<symbol>; repeat per leaf. A leaf not\n listed uses the in-package default name (rust leaf_<comp> / go\n Leaf_<comp>). Ignored by other emitters.\n value_name: mapping\n schema:\n type: array\n items:\n type: string\n\n - name: leaf-transport-import\n required: false\n description: >-\n (--lang rust-typed-native / go-typed-native only) Module the leaf\n transport symbols are imported from (rust `use <module>::{…}`, go\n package import + selector); absent → resolve in-scope / same\n package. Ignored by other emitters.\n value_name: module\n schema:\n type: string\n\n exits:\n '0':\n description: Up to date — the committed --out matches a fresh generation.\n stdout:\n format: text\n '1':\n description: >-\n Drift detected (--out differs or does not exist), or generation\n failed (--from module unimportable / missing --behavior export /\n compile error; or unreadable/invalid --in; or unregistered --lang).\n stderr:\n format: text\n '2':\n description: >-\n Usage error — --lang omitted, neither --from nor --in given (or\n both), --from without --behavior, or neither --out nor\n --shared-types-out was given.\n stderr:\n format: text\n\n x-agent:\n riskLevel: low\n requiresConfirmation: false\n idempotent: true\n sideEffects: []\n";
4
- export const CONTRACT_JSON_STR = "{\n \"cli_contracts\": \"0.1.0\",\n \"info\": {\n \"title\": \"behavior-contracts CLI\",\n \"version\": \"0.1.0\",\n \"description\": \"bc — the build-time codegen CLI over behavior-contracts' public API. The consumer authors behaviors in native TS only (`@behavior` / `@leaf` static methods with plain TS bodies) and never touches the IR. `bc generate --from <behaviors.ts> --behavior <ClassName>` uses the TypeScript compiler to read each method's SOURCE — type-extracting parameter/return types and lowering the body AST (`+`/`?:`/`.map`/`?.` etc.) to the component-graph IR (no module execution), then runs source→ir→emit end to end in-process. What is emitted depends on the target: the codegen targets (typed ts, native go/rust) terminate the IR at build time and embed none of it (IR-free), while the literal targets (ts/python/php) bake the IR in and punt to the runtime. Only the go/rust native targets import no bc runtime at all (runtime-free). The IR exists only inside the CLI; nothing reads it at runtime. `typescript` is a build-time-only optional peer dependency used solely on this `--from <.ts>` path; the runtime entry stays dependency-free. `--in <ir-doc.json>` (a pre-serialized ComponentGraphIRDoc) remains as an internal/test input alongside --from.\",\n \"license\": {\n \"name\": \"MIT\"\n },\n \"contact\": {\n \"name\": \"foo-ogawa\",\n \"url\": \"https://github.com/foo-ogawa/behavior-contracts\"\n }\n },\n \"artifact_slots\": {\n \"behaviors-module\": {\n \"direction\": \"read\",\n \"description\": \"The consumer's TS SOURCE module exporting an `@behavior` class with `@behavior` / `@leaf` static methods — the TS-authoring codegen input (`--from`). The TS compiler type-extracts each method's parameter/return types and lowers its body AST to IR (no module execution). BC runs source→ir→native.\"\n },\n \"ir-doc\": {\n \"direction\": \"read\",\n \"description\": \"Serialized ComponentGraphIRDoc (unbranded JSON IR) — the internal/test codegen input (`--in`). The TS-authoring surface uses --from instead.\"\n },\n \"generated-module\": {\n \"direction\": \"write\",\n \"description\": \"Generated module source for the requested target (literal = IR baked in; codegen = IR-free; go/rust native additionally runtime-free).\"\n }\n },\n \"command_sets\": {\n \"bc\": {\n \"summary\": \"build-time codegen CLI over behavior-contracts' public API.\",\n \"executable\": \"bc\",\n \"global_options\": [\n {\n \"name\": \"version\",\n \"aliases\": [\n \"V\"\n ],\n \"description\": \"Print version and exit.\",\n \"schema\": {\n \"type\": \"boolean\"\n }\n },\n {\n \"name\": \"help\",\n \"aliases\": [\n \"h\"\n ],\n \"description\": \"Show help and exit.\",\n \"schema\": {\n \"type\": \"boolean\"\n }\n }\n ],\n \"commands\": {\n \"generate\": {\n \"summary\": \"Emit a native module from a TS behavior module (--from) or a serialized IR doc (--in).\",\n \"description\": \"TS-authoring flow (--from): reads the consumer's TS SOURCE module and its --behavior export (an `@behavior` class), then runs source→ir→native in-process (the AST reader lowers each method to IR → generateModule) for the --lang emitter. The IR is CLI-internal and never touches the consumer surface. Internal/test flow (--in): reads the ComponentGraphIRDoc, adopts it via loadCompiledIR, and runs the same generateModule. Exactly one of --from / --in is required (--from also requires --behavior). Writes the module source to --out if given, else to stdout. Rejects an unregistered --lang.\",\n \"usage\": [\n \"bc generate --lang rust-typed-native --from behaviors.ts --behavior UserRepo --out gen.rs\",\n \"bc generate --lang go-typed-native --from behaviors.ts --behavior UserRepo --out gen.go\",\n \"bc generate --lang typescript-typed --in ir-doc.json --runtime-import ./runtime.js\"\n ],\n \"options\": [\n {\n \"name\": \"lang\",\n \"required\": true,\n \"description\": \"Target emitter (must be a registered language, e.g. rust-typed-native, go-typed-native, typescript-typed).\",\n \"value_name\": \"emitter\",\n \"schema\": {\n \"type\": \"string\"\n }\n },\n {\n \"name\": \"from\",\n \"required\": false,\n \"description\": \"TS-authoring input: the consumer's `.ts` SOURCE. The TypeScript compiler type-extracts each method's parameter/return types and lowers its body AST (`+`/`?:`/`.map`/`?.` etc.) to IR — the source is read, not executed. BC compiles the --behavior export's methods and runs the emitter. The module's `behavior-contracts` import must resolve to the same installed package as bc (so `@behavior`/`@leaf` markers are identified by declaration file). Requires the optional peer dependency `typescript`. Mutually exclusive with --in.\",\n \"value_name\": \"behaviors.ts\",\n \"schema\": {\n \"type\": \"string\"\n },\n \"file\": {\n \"mode\": \"read\",\n \"exists\": true,\n \"encoding\": \"utf-8\"\n }\n },\n {\n \"name\": \"behavior\",\n \"required\": false,\n \"description\": \"(with --from) The name of the exported `@behavior` class to compile (one class = its public static methods, each a root Behavior). Required whenever --from is given.\",\n \"value_name\": \"ClassName\",\n \"schema\": {\n \"type\": \"string\"\n }\n },\n {\n \"name\": \"in\",\n \"required\": false,\n \"description\": \"Internal/test input: path to a serialized ComponentGraphIRDoc JSON file. The TS-authoring surface uses --from instead. Mutually exclusive with --from.\",\n \"value_name\": \"ir-doc.json\",\n \"schema\": {\n \"type\": \"string\"\n },\n \"file\": {\n \"mode\": \"read\",\n \"exists\": true,\n \"media_type\": \"application/json\",\n \"encoding\": \"utf-8\"\n }\n },\n {\n \"name\": \"out\",\n \"required\": false,\n \"description\": \"Write the generated covered module here instead of stdout.\",\n \"value_name\": \"file\",\n \"schema\": {\n \"type\": \"string\"\n },\n \"file\": {\n \"mode\": \"write\"\n }\n },\n {\n \"name\": \"shared-types-out\",\n \"required\": false,\n \"description\": \"(--lang go-typed-native / rust-typed-native) Write the BC-OWNED shared wire types module (WireValue/WireRow/WireList + probe kinds, rust also the shared BehaviorError; plus the cross-package/-crate batch ports structs) here. This is the module a covered module built with --shared-types-import imports. Independent of --out: a build may emit the covered module, the shared module, or both. For go the emitted package name is derived from --shared-types-import (so --shared-types-import is required with go). Rejected for other emitters. A standalone --shared-types-out does NOT print the covered module to stdout.\",\n \"value_name\": \"file\",\n \"schema\": {\n \"type\": \"string\"\n },\n \"file\": {\n \"mode\": \"write\"\n }\n },\n {\n \"name\": \"runtime-import\",\n \"required\": false,\n \"description\": \"Override the runtime import specifier baked into the module.\",\n \"value_name\": \"spec\",\n \"schema\": {\n \"type\": \"string\"\n }\n },\n {\n \"name\": \"shared-types-import\",\n \"required\": false,\n \"description\": \"(--lang go-typed-native / rust-typed-native) Package (go) / crate (rust) path for the BC-GENERATED shared wire types (WireValue/ WireRow/WireList; rust also the shared BehaviorError). When set, BC emits those types into that shared package/crate and the covered module imports them (go: package-qualified; rust: use <path>::*), so a separate leaf-transport package/crate can return them without an import cycle (cross-package / cross-crate layout). Absent → in-package. Ignored by other emitters.\",\n \"value_name\": \"spec\",\n \"schema\": {\n \"type\": \"string\"\n }\n },\n {\n \"name\": \"leaf-transport\",\n \"required\": false,\n \"repeatable\": true,\n \"description\": \"(--lang rust-typed-native / go-typed-native only) Map a covered leaf (catalog component) to the op-agnostic transport symbol the runner calls directly, as <leaf>=<symbol>; repeat per leaf. A leaf not listed uses the in-package default name (rust leaf_<comp> / go Leaf_<comp>). Ignored by other emitters.\",\n \"value_name\": \"mapping\",\n \"schema\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n }\n },\n {\n \"name\": \"leaf-transport-import\",\n \"required\": false,\n \"description\": \"(--lang rust-typed-native / go-typed-native only) Module the leaf transport symbols are imported from (rust `use <module>::{…}`, go package import + selector); absent → resolve in-scope / same package. Ignored by other emitters.\",\n \"value_name\": \"module\",\n \"schema\": {\n \"type\": \"string\"\n }\n }\n ],\n \"exits\": {\n \"0\": {\n \"description\": \"Module generated (written to --out, or printed to stdout).\",\n \"stdout\": {\n \"format\": \"text\"\n }\n },\n \"1\": {\n \"description\": \"Generation failed (--from module unimportable / missing --behavior export / compile error; or unreadable/invalid --in; or --lang is not a registered emitter).\",\n \"stderr\": {\n \"format\": \"text\"\n }\n },\n \"2\": {\n \"description\": \"Usage error — --lang omitted, neither --from nor --in given (or both), or --from without --behavior.\",\n \"stderr\": {\n \"format\": \"text\"\n }\n }\n },\n \"x-agent\": {\n \"riskLevel\": \"low\",\n \"requiresConfirmation\": false,\n \"idempotent\": true,\n \"sideEffects\": [\n \"file_write\"\n ],\n \"sideEffectNote\": \"Writes to the filesystem only when --out is specified; otherwise output goes to stdout.\"\n }\n },\n \"check\": {\n \"summary\": \"Verify a committed module matches a fresh generation (drift gate).\",\n \"description\": \"Regenerates the module for --lang from the SAME input as generate (--from a TS behavior module + --behavior, or --in an IR doc) and byte-compares it against the committed --out file. Exits non-zero on drift. This is the build's codegen drift gate.\",\n \"usage\": [\n \"bc check --lang rust-typed-native --from behaviors.ts --behavior UserRepo --out gen.rs\",\n \"bc check --lang rust-typed-native --in ir-doc.json --out gen.rs\"\n ],\n \"options\": [\n {\n \"name\": \"lang\",\n \"required\": true,\n \"description\": \"Target emitter (must be a registered language).\",\n \"value_name\": \"emitter\",\n \"schema\": {\n \"type\": \"string\"\n }\n },\n {\n \"name\": \"from\",\n \"required\": false,\n \"description\": \"TS-authoring input (same as generate --from): the consumer's `.ts` SOURCE, read by the TS compiler (type-extract + AST-lower, not executed; needs the optional peer `typescript`). Regenerated + byte-compared against --out. Requires --behavior. Mutually exclusive with --in.\",\n \"value_name\": \"behaviors.ts\",\n \"schema\": {\n \"type\": \"string\"\n },\n \"file\": {\n \"mode\": \"read\",\n \"exists\": true,\n \"encoding\": \"utf-8\"\n }\n },\n {\n \"name\": \"behavior\",\n \"required\": false,\n \"description\": \"(with --from) The name of the exported `@behavior` class to compile. Required whenever --from is given.\",\n \"value_name\": \"ClassName\",\n \"schema\": {\n \"type\": \"string\"\n }\n },\n {\n \"name\": \"in\",\n \"required\": false,\n \"description\": \"Internal/test input: path to a serialized ComponentGraphIRDoc JSON file. Mutually exclusive with --from.\",\n \"value_name\": \"ir-doc.json\",\n \"schema\": {\n \"type\": \"string\"\n },\n \"file\": {\n \"mode\": \"read\",\n \"exists\": true,\n \"media_type\": \"application/json\",\n \"encoding\": \"utf-8\"\n }\n },\n {\n \"name\": \"out\",\n \"required\": false,\n \"description\": \"The committed covered-module file to diff a fresh generation against. At least one of --out / --shared-types-out is required.\",\n \"value_name\": \"file\",\n \"schema\": {\n \"type\": \"string\"\n },\n \"file\": {\n \"mode\": \"read\",\n \"exists\": true\n }\n },\n {\n \"name\": \"shared-types-out\",\n \"required\": false,\n \"description\": \"(--lang go-typed-native / rust-typed-native) The committed BC-OWNED shared wire types module to diff a fresh generation against (drift gate for the file emitted by `generate --shared-types-out`). May be checked together with --out in one invocation; at least one of --out / --shared-types-out is required. For go, --shared-types-import is required (it names the package). Rejected for other emitters.\",\n \"value_name\": \"file\",\n \"schema\": {\n \"type\": \"string\"\n },\n \"file\": {\n \"mode\": \"read\",\n \"exists\": true\n }\n },\n {\n \"name\": \"runtime-import\",\n \"required\": false,\n \"description\": \"Override the runtime import specifier baked into the module.\",\n \"value_name\": \"spec\",\n \"schema\": {\n \"type\": \"string\"\n }\n },\n {\n \"name\": \"shared-types-import\",\n \"required\": false,\n \"description\": \"(--lang go-typed-native / rust-typed-native) Package (go) / crate (rust) path for the BC-GENERATED shared wire types (WireValue/ WireRow/WireList; rust also the shared BehaviorError). When set, BC emits those types into that shared package/crate and the covered module imports them (go: package-qualified; rust: use <path>::*), so a separate leaf-transport package/crate can return them without an import cycle (cross-package / cross-crate layout). Absent → in-package. Ignored by other emitters.\",\n \"value_name\": \"spec\",\n \"schema\": {\n \"type\": \"string\"\n }\n },\n {\n \"name\": \"leaf-transport\",\n \"required\": false,\n \"repeatable\": true,\n \"description\": \"(--lang rust-typed-native / go-typed-native only) Map a covered leaf (catalog component) to the op-agnostic transport symbol the runner calls directly, as <leaf>=<symbol>; repeat per leaf. A leaf not listed uses the in-package default name (rust leaf_<comp> / go Leaf_<comp>). Ignored by other emitters.\",\n \"value_name\": \"mapping\",\n \"schema\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n }\n },\n {\n \"name\": \"leaf-transport-import\",\n \"required\": false,\n \"description\": \"(--lang rust-typed-native / go-typed-native only) Module the leaf transport symbols are imported from (rust `use <module>::{…}`, go package import + selector); absent → resolve in-scope / same package. Ignored by other emitters.\",\n \"value_name\": \"module\",\n \"schema\": {\n \"type\": \"string\"\n }\n }\n ],\n \"exits\": {\n \"0\": {\n \"description\": \"Up to date — the committed --out matches a fresh generation.\",\n \"stdout\": {\n \"format\": \"text\"\n }\n },\n \"1\": {\n \"description\": \"Drift detected (--out differs or does not exist), or generation failed (--from module unimportable / missing --behavior export / compile error; or unreadable/invalid --in; or unregistered --lang).\",\n \"stderr\": {\n \"format\": \"text\"\n }\n },\n \"2\": {\n \"description\": \"Usage error — --lang omitted, neither --from nor --in given (or both), --from without --behavior, or neither --out nor --shared-types-out was given.\",\n \"stderr\": {\n \"format\": \"text\"\n }\n }\n },\n \"x-agent\": {\n \"riskLevel\": \"low\",\n \"requiresConfirmation\": false,\n \"idempotent\": true,\n \"sideEffects\": []\n }\n }\n }\n }\n }\n}";
3
+ export const CONTRACT_YAML = "# yaml-language-server: $schema=./node_modules/cli-contracts/schemas/cli-contract.schema.json\ncli_contracts: 0.1.0\n\ninfo:\n title: behavior-contracts CLI\n version: 0.1.0\n description: >-\n bc — the build-time codegen CLI over behavior-contracts' public API.\n The consumer authors behaviors in native TS only (`@behavior` / `@leaf`\n static methods with plain TS bodies) and never touches the IR. `bc generate\n --from <behaviors.ts> --behavior <ClassName>` uses the TypeScript compiler to\n read each method's SOURCE — type-extracting parameter/return types and\n lowering the body AST (`+`/`?:`/`.map`/`?.` etc.) to the component-graph IR\n (no module execution), then runs source→ir→emit end to end in-process. What\n is emitted depends on the target: the codegen targets (typed ts, native\n go/rust/python/php) terminate the IR at build time and embed none of it\n (IR-free), while the literal targets (ts/python/php) bake the IR in and punt to\n the runtime. Only the native targets (go/rust/python/php) import no bc runtime\n at all (runtime-free).\n The IR exists only inside the CLI; nothing reads it at runtime. `typescript` is a\n build-time-only optional peer dependency used solely on this `--from <.ts>`\n path; the runtime entry stays dependency-free. `--in <ir-doc.json>` (a\n pre-serialized ComponentGraphIRDoc) remains as an internal/test input\n alongside --from.\n license:\n name: MIT\n contact:\n name: foo-ogawa\n url: https://github.com/foo-ogawa/behavior-contracts\n\nartifact_slots:\n behaviors-module:\n direction: read\n description: >-\n The consumer's TS SOURCE module exporting an `@behavior` class with\n `@behavior` / `@leaf` static methods — the TS-authoring codegen input\n (`--from`). The TS compiler type-extracts each method's parameter/return\n types and lowers its body AST to IR (no module execution). BC runs\n source→ir→native.\n ir-doc:\n direction: read\n description: >-\n Serialized ComponentGraphIRDoc (unbranded JSON IR) — the internal/test\n codegen input (`--in`). The TS-authoring surface uses --from instead.\n generated-module:\n direction: write\n description: >-\n Generated module source for the requested target (literal = IR baked in;\n codegen = IR-free; go/rust/python/php native additionally runtime-free).\n\ncommand_sets:\n bc:\n summary: build-time codegen CLI over behavior-contracts' public API.\n executable: bc\n\n global_options:\n - name: version\n aliases: [V]\n description: Print version and exit.\n schema:\n type: boolean\n\n - name: help\n aliases: [h]\n description: Show help and exit.\n schema:\n type: boolean\n\n commands:\n # ── generate ─────────────────────────────────────────\n generate:\n summary: Emit a native module from a TS behavior module (--from) or a serialized IR doc (--in).\n description: >-\n TS-authoring flow (--from): reads the consumer's TS SOURCE module and\n its --behavior export (an `@behavior` class), then runs source→ir→native\n in-process (the AST reader lowers each method to IR → generateModule)\n for the --lang emitter. The IR is CLI-internal and never touches the\n consumer surface. Internal/test flow (--in): reads the\n ComponentGraphIRDoc, adopts it via loadCompiledIR, and runs the same\n generateModule. Exactly one of --from / --in is required (--from also\n requires --behavior). Writes the module source to --out if given, else\n to stdout. Rejects an unregistered --lang.\n usage:\n - bc generate --lang rust-typed-native --from behaviors.ts --behavior UserRepo --out gen.rs\n - bc generate --lang go-typed-native --from behaviors.ts --behavior UserRepo --out gen.go\n - bc generate --lang typescript-typed --in ir-doc.json --runtime-import ./runtime.js\n\n options:\n - name: lang\n required: true\n description: >-\n Target emitter (must be a registered language, e.g.\n rust-typed-native, go-typed-native, typescript-typed).\n value_name: emitter\n schema:\n type: string\n\n - name: from\n required: false\n description: >-\n TS-authoring input: the consumer's `.ts` SOURCE. The TypeScript\n compiler type-extracts each method's parameter/return types and\n lowers its body AST (`+`/`?:`/`.map`/`?.` etc.) to IR — the source\n is read, not executed. BC compiles the --behavior export's methods\n and runs the emitter. The module's `behavior-contracts` import must\n resolve to the same installed package as bc (so `@behavior`/`@leaf`\n markers are identified by declaration file). Requires the optional\n peer dependency `typescript`. Mutually exclusive with --in.\n value_name: behaviors.ts\n schema:\n type: string\n file:\n mode: read\n exists: true\n encoding: utf-8\n\n - name: behavior\n required: false\n description: >-\n (with --from) The name of the exported `@behavior` class to compile\n (one class = its public static methods, each a root Behavior).\n Required whenever --from is given.\n value_name: ClassName\n schema:\n type: string\n\n - name: in\n required: false\n description: >-\n Internal/test input: path to a serialized ComponentGraphIRDoc JSON\n file. The TS-authoring surface uses --from instead. Mutually\n exclusive with --from.\n value_name: ir-doc.json\n schema:\n type: string\n file:\n mode: read\n exists: true\n media_type: application/json\n encoding: utf-8\n\n - name: out\n required: false\n description: Write the generated covered module here instead of stdout.\n value_name: file\n schema:\n type: string\n file:\n mode: write\n\n - name: shared-types-out\n required: false\n description: >-\n (--lang go-typed-native / rust-typed-native) Write the BC-OWNED\n shared wire types module (WireValue/WireRow/WireList + probe kinds,\n rust also the shared BehaviorError; plus the cross-package/-crate\n batch ports structs) here. This is the module a covered module built\n with --shared-types-import imports. Independent of --out: a build may\n emit the covered module, the shared module, or both. For go the\n emitted package name is derived from --shared-types-import (so\n --shared-types-import is required with go). Rejected for other\n emitters. A standalone --shared-types-out does NOT print the covered\n module to stdout.\n value_name: file\n schema:\n type: string\n file:\n mode: write\n\n - name: runtime-import\n required: false\n description: Override the runtime import specifier baked into the module.\n value_name: spec\n schema:\n type: string\n\n - name: shared-types-import\n required: false\n description: >-\n (--lang go-typed-native / rust-typed-native) Package (go) / crate\n (rust) path for the BC-GENERATED shared wire types (WireValue/\n WireRow/WireList; rust also the shared BehaviorError). When set, BC\n emits those types into that shared package/crate and the covered\n module imports them (go: package-qualified; rust: use <path>::*), so\n a separate leaf-transport package/crate can return them without an\n import cycle (cross-package / cross-crate layout). Absent →\n in-package. Ignored by other emitters.\n value_name: spec\n schema:\n type: string\n\n - name: leaf-transport\n required: false\n repeatable: true\n description: >-\n (--lang rust-typed-native / go-typed-native / python-native /\n php-native only) Map a covered leaf (catalog component) to the\n op-agnostic transport symbol the runner calls directly, as\n <leaf>=<symbol>; repeat per leaf. A leaf not listed uses the\n in-package default name (rust / python / php leaf_<comp>, go\n Leaf_<comp>). Ignored by other emitters.\n value_name: mapping\n schema:\n type: array\n items:\n type: string\n\n - name: leaf-transport-import\n required: false\n description: >-\n (--lang rust-typed-native / go-typed-native / python-native /\n php-native only) Where the leaf transport symbols live: rust `use\n <module>::{…}`, go package import + selector, python `from <module>\n import …`, php the class whose static methods they are\n (`\\<Class>::<symbol>(…)`); absent → resolve in-scope / same package\n (php: global functions). Ignored by other emitters.\n value_name: module\n schema:\n type: string\n\n exits:\n '0':\n description: Module generated (written to --out, or printed to stdout).\n stdout:\n format: text\n '1':\n description: >-\n Generation failed (--from module unimportable / missing --behavior\n export / compile error; or unreadable/invalid --in; or --lang is\n not a registered emitter).\n stderr:\n format: text\n '2':\n description: >-\n Usage error — --lang omitted, neither --from nor --in given (or\n both), or --from without --behavior.\n stderr:\n format: text\n\n x-agent:\n riskLevel: low\n requiresConfirmation: false\n idempotent: true\n sideEffects:\n - file_write\n sideEffectNote: >-\n Writes to the filesystem only when --out is specified; otherwise\n output goes to stdout.\n\n # ── check ────────────────────────────────────────────\n check:\n summary: Verify a committed module matches a fresh generation (drift gate).\n description: >-\n Regenerates the module for --lang from the SAME input as generate\n (--from a TS behavior module + --behavior, or --in an IR doc) and\n byte-compares it against the committed --out file. Exits non-zero on\n drift. This is the build's codegen drift gate.\n usage:\n - bc check --lang rust-typed-native --from behaviors.ts --behavior UserRepo --out gen.rs\n - bc check --lang rust-typed-native --in ir-doc.json --out gen.rs\n\n options:\n - name: lang\n required: true\n description: Target emitter (must be a registered language).\n value_name: emitter\n schema:\n type: string\n\n - name: from\n required: false\n description: >-\n TS-authoring input (same as generate --from): the consumer's `.ts`\n SOURCE, read by the TS compiler (type-extract + AST-lower, not\n executed; needs the optional peer `typescript`). Regenerated +\n byte-compared against --out. Requires --behavior. Mutually exclusive\n with --in.\n value_name: behaviors.ts\n schema:\n type: string\n file:\n mode: read\n exists: true\n encoding: utf-8\n\n - name: behavior\n required: false\n description: >-\n (with --from) The name of the exported `@behavior` class to\n compile. Required whenever --from is given.\n value_name: ClassName\n schema:\n type: string\n\n - name: in\n required: false\n description: >-\n Internal/test input: path to a serialized ComponentGraphIRDoc JSON\n file. Mutually exclusive with --from.\n value_name: ir-doc.json\n schema:\n type: string\n file:\n mode: read\n exists: true\n media_type: application/json\n encoding: utf-8\n\n - name: out\n required: false\n description: >-\n The committed covered-module file to diff a fresh generation\n against. At least one of --out / --shared-types-out is required.\n value_name: file\n schema:\n type: string\n file:\n mode: read\n exists: true\n\n - name: shared-types-out\n required: false\n description: >-\n (--lang go-typed-native / rust-typed-native) The committed BC-OWNED\n shared wire types module to diff a fresh generation against (drift\n gate for the file emitted by `generate --shared-types-out`). May be\n checked together with --out in one invocation; at least one of\n --out / --shared-types-out is required. For go, --shared-types-import\n is required (it names the package). Rejected for other emitters.\n value_name: file\n schema:\n type: string\n file:\n mode: read\n exists: true\n\n - name: runtime-import\n required: false\n description: Override the runtime import specifier baked into the module.\n value_name: spec\n schema:\n type: string\n\n - name: shared-types-import\n required: false\n description: >-\n (--lang go-typed-native / rust-typed-native) Package (go) / crate\n (rust) path for the BC-GENERATED shared wire types (WireValue/\n WireRow/WireList; rust also the shared BehaviorError). When set, BC\n emits those types into that shared package/crate and the covered\n module imports them (go: package-qualified; rust: use <path>::*), so\n a separate leaf-transport package/crate can return them without an\n import cycle (cross-package / cross-crate layout). Absent →\n in-package. Ignored by other emitters.\n value_name: spec\n schema:\n type: string\n\n - name: leaf-transport\n required: false\n repeatable: true\n description: >-\n (--lang rust-typed-native / go-typed-native / python-native /\n php-native only) Map a covered leaf (catalog component) to the\n op-agnostic transport symbol the runner calls directly, as\n <leaf>=<symbol>; repeat per leaf. A leaf not listed uses the\n in-package default name (rust / python / php leaf_<comp>, go\n Leaf_<comp>). Ignored by other emitters.\n value_name: mapping\n schema:\n type: array\n items:\n type: string\n\n - name: leaf-transport-import\n required: false\n description: >-\n (--lang rust-typed-native / go-typed-native / python-native /\n php-native only) Where the leaf transport symbols live: rust `use\n <module>::{…}`, go package import + selector, python `from <module>\n import …`, php the class whose static methods they are\n (`\\<Class>::<symbol>(…)`); absent → resolve in-scope / same package\n (php: global functions). Ignored by other emitters.\n value_name: module\n schema:\n type: string\n\n exits:\n '0':\n description: Up to date — the committed --out matches a fresh generation.\n stdout:\n format: text\n '1':\n description: >-\n Drift detected (--out differs or does not exist), or generation\n failed (--from module unimportable / missing --behavior export /\n compile error; or unreadable/invalid --in; or unregistered --lang).\n stderr:\n format: text\n '2':\n description: >-\n Usage error — --lang omitted, neither --from nor --in given (or\n both), --from without --behavior, or neither --out nor\n --shared-types-out was given.\n stderr:\n format: text\n\n x-agent:\n riskLevel: low\n requiresConfirmation: false\n idempotent: true\n sideEffects: []\n";
4
+ export const CONTRACT_JSON_STR = "{\n \"cli_contracts\": \"0.1.0\",\n \"info\": {\n \"title\": \"behavior-contracts CLI\",\n \"version\": \"0.1.0\",\n \"description\": \"bc — the build-time codegen CLI over behavior-contracts' public API. The consumer authors behaviors in native TS only (`@behavior` / `@leaf` static methods with plain TS bodies) and never touches the IR. `bc generate --from <behaviors.ts> --behavior <ClassName>` uses the TypeScript compiler to read each method's SOURCE — type-extracting parameter/return types and lowering the body AST (`+`/`?:`/`.map`/`?.` etc.) to the component-graph IR (no module execution), then runs source→ir→emit end to end in-process. What is emitted depends on the target: the codegen targets (typed ts, native go/rust/python/php) terminate the IR at build time and embed none of it (IR-free), while the literal targets (ts/python/php) bake the IR in and punt to the runtime. Only the native targets (go/rust/python/php) import no bc runtime at all (runtime-free). The IR exists only inside the CLI; nothing reads it at runtime. `typescript` is a build-time-only optional peer dependency used solely on this `--from <.ts>` path; the runtime entry stays dependency-free. `--in <ir-doc.json>` (a pre-serialized ComponentGraphIRDoc) remains as an internal/test input alongside --from.\",\n \"license\": {\n \"name\": \"MIT\"\n },\n \"contact\": {\n \"name\": \"foo-ogawa\",\n \"url\": \"https://github.com/foo-ogawa/behavior-contracts\"\n }\n },\n \"artifact_slots\": {\n \"behaviors-module\": {\n \"direction\": \"read\",\n \"description\": \"The consumer's TS SOURCE module exporting an `@behavior` class with `@behavior` / `@leaf` static methods — the TS-authoring codegen input (`--from`). The TS compiler type-extracts each method's parameter/return types and lowers its body AST to IR (no module execution). BC runs source→ir→native.\"\n },\n \"ir-doc\": {\n \"direction\": \"read\",\n \"description\": \"Serialized ComponentGraphIRDoc (unbranded JSON IR) — the internal/test codegen input (`--in`). The TS-authoring surface uses --from instead.\"\n },\n \"generated-module\": {\n \"direction\": \"write\",\n \"description\": \"Generated module source for the requested target (literal = IR baked in; codegen = IR-free; go/rust/python/php native additionally runtime-free).\"\n }\n },\n \"command_sets\": {\n \"bc\": {\n \"summary\": \"build-time codegen CLI over behavior-contracts' public API.\",\n \"executable\": \"bc\",\n \"global_options\": [\n {\n \"name\": \"version\",\n \"aliases\": [\n \"V\"\n ],\n \"description\": \"Print version and exit.\",\n \"schema\": {\n \"type\": \"boolean\"\n }\n },\n {\n \"name\": \"help\",\n \"aliases\": [\n \"h\"\n ],\n \"description\": \"Show help and exit.\",\n \"schema\": {\n \"type\": \"boolean\"\n }\n }\n ],\n \"commands\": {\n \"generate\": {\n \"summary\": \"Emit a native module from a TS behavior module (--from) or a serialized IR doc (--in).\",\n \"description\": \"TS-authoring flow (--from): reads the consumer's TS SOURCE module and its --behavior export (an `@behavior` class), then runs source→ir→native in-process (the AST reader lowers each method to IR → generateModule) for the --lang emitter. The IR is CLI-internal and never touches the consumer surface. Internal/test flow (--in): reads the ComponentGraphIRDoc, adopts it via loadCompiledIR, and runs the same generateModule. Exactly one of --from / --in is required (--from also requires --behavior). Writes the module source to --out if given, else to stdout. Rejects an unregistered --lang.\",\n \"usage\": [\n \"bc generate --lang rust-typed-native --from behaviors.ts --behavior UserRepo --out gen.rs\",\n \"bc generate --lang go-typed-native --from behaviors.ts --behavior UserRepo --out gen.go\",\n \"bc generate --lang typescript-typed --in ir-doc.json --runtime-import ./runtime.js\"\n ],\n \"options\": [\n {\n \"name\": \"lang\",\n \"required\": true,\n \"description\": \"Target emitter (must be a registered language, e.g. rust-typed-native, go-typed-native, typescript-typed).\",\n \"value_name\": \"emitter\",\n \"schema\": {\n \"type\": \"string\"\n }\n },\n {\n \"name\": \"from\",\n \"required\": false,\n \"description\": \"TS-authoring input: the consumer's `.ts` SOURCE. The TypeScript compiler type-extracts each method's parameter/return types and lowers its body AST (`+`/`?:`/`.map`/`?.` etc.) to IR — the source is read, not executed. BC compiles the --behavior export's methods and runs the emitter. The module's `behavior-contracts` import must resolve to the same installed package as bc (so `@behavior`/`@leaf` markers are identified by declaration file). Requires the optional peer dependency `typescript`. Mutually exclusive with --in.\",\n \"value_name\": \"behaviors.ts\",\n \"schema\": {\n \"type\": \"string\"\n },\n \"file\": {\n \"mode\": \"read\",\n \"exists\": true,\n \"encoding\": \"utf-8\"\n }\n },\n {\n \"name\": \"behavior\",\n \"required\": false,\n \"description\": \"(with --from) The name of the exported `@behavior` class to compile (one class = its public static methods, each a root Behavior). Required whenever --from is given.\",\n \"value_name\": \"ClassName\",\n \"schema\": {\n \"type\": \"string\"\n }\n },\n {\n \"name\": \"in\",\n \"required\": false,\n \"description\": \"Internal/test input: path to a serialized ComponentGraphIRDoc JSON file. The TS-authoring surface uses --from instead. Mutually exclusive with --from.\",\n \"value_name\": \"ir-doc.json\",\n \"schema\": {\n \"type\": \"string\"\n },\n \"file\": {\n \"mode\": \"read\",\n \"exists\": true,\n \"media_type\": \"application/json\",\n \"encoding\": \"utf-8\"\n }\n },\n {\n \"name\": \"out\",\n \"required\": false,\n \"description\": \"Write the generated covered module here instead of stdout.\",\n \"value_name\": \"file\",\n \"schema\": {\n \"type\": \"string\"\n },\n \"file\": {\n \"mode\": \"write\"\n }\n },\n {\n \"name\": \"shared-types-out\",\n \"required\": false,\n \"description\": \"(--lang go-typed-native / rust-typed-native) Write the BC-OWNED shared wire types module (WireValue/WireRow/WireList + probe kinds, rust also the shared BehaviorError; plus the cross-package/-crate batch ports structs) here. This is the module a covered module built with --shared-types-import imports. Independent of --out: a build may emit the covered module, the shared module, or both. For go the emitted package name is derived from --shared-types-import (so --shared-types-import is required with go). Rejected for other emitters. A standalone --shared-types-out does NOT print the covered module to stdout.\",\n \"value_name\": \"file\",\n \"schema\": {\n \"type\": \"string\"\n },\n \"file\": {\n \"mode\": \"write\"\n }\n },\n {\n \"name\": \"runtime-import\",\n \"required\": false,\n \"description\": \"Override the runtime import specifier baked into the module.\",\n \"value_name\": \"spec\",\n \"schema\": {\n \"type\": \"string\"\n }\n },\n {\n \"name\": \"shared-types-import\",\n \"required\": false,\n \"description\": \"(--lang go-typed-native / rust-typed-native) Package (go) / crate (rust) path for the BC-GENERATED shared wire types (WireValue/ WireRow/WireList; rust also the shared BehaviorError). When set, BC emits those types into that shared package/crate and the covered module imports them (go: package-qualified; rust: use <path>::*), so a separate leaf-transport package/crate can return them without an import cycle (cross-package / cross-crate layout). Absent → in-package. Ignored by other emitters.\",\n \"value_name\": \"spec\",\n \"schema\": {\n \"type\": \"string\"\n }\n },\n {\n \"name\": \"leaf-transport\",\n \"required\": false,\n \"repeatable\": true,\n \"description\": \"(--lang rust-typed-native / go-typed-native / python-native / php-native only) Map a covered leaf (catalog component) to the op-agnostic transport symbol the runner calls directly, as <leaf>=<symbol>; repeat per leaf. A leaf not listed uses the in-package default name (rust / python / php leaf_<comp>, go Leaf_<comp>). Ignored by other emitters.\",\n \"value_name\": \"mapping\",\n \"schema\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n }\n },\n {\n \"name\": \"leaf-transport-import\",\n \"required\": false,\n \"description\": \"(--lang rust-typed-native / go-typed-native / python-native / php-native only) Where the leaf transport symbols live: rust `use <module>::{…}`, go package import + selector, python `from <module> import …`, php the class whose static methods they are (`\\\\<Class>::<symbol>(…)`); absent → resolve in-scope / same package (php: global functions). Ignored by other emitters.\",\n \"value_name\": \"module\",\n \"schema\": {\n \"type\": \"string\"\n }\n }\n ],\n \"exits\": {\n \"0\": {\n \"description\": \"Module generated (written to --out, or printed to stdout).\",\n \"stdout\": {\n \"format\": \"text\"\n }\n },\n \"1\": {\n \"description\": \"Generation failed (--from module unimportable / missing --behavior export / compile error; or unreadable/invalid --in; or --lang is not a registered emitter).\",\n \"stderr\": {\n \"format\": \"text\"\n }\n },\n \"2\": {\n \"description\": \"Usage error — --lang omitted, neither --from nor --in given (or both), or --from without --behavior.\",\n \"stderr\": {\n \"format\": \"text\"\n }\n }\n },\n \"x-agent\": {\n \"riskLevel\": \"low\",\n \"requiresConfirmation\": false,\n \"idempotent\": true,\n \"sideEffects\": [\n \"file_write\"\n ],\n \"sideEffectNote\": \"Writes to the filesystem only when --out is specified; otherwise output goes to stdout.\"\n }\n },\n \"check\": {\n \"summary\": \"Verify a committed module matches a fresh generation (drift gate).\",\n \"description\": \"Regenerates the module for --lang from the SAME input as generate (--from a TS behavior module + --behavior, or --in an IR doc) and byte-compares it against the committed --out file. Exits non-zero on drift. This is the build's codegen drift gate.\",\n \"usage\": [\n \"bc check --lang rust-typed-native --from behaviors.ts --behavior UserRepo --out gen.rs\",\n \"bc check --lang rust-typed-native --in ir-doc.json --out gen.rs\"\n ],\n \"options\": [\n {\n \"name\": \"lang\",\n \"required\": true,\n \"description\": \"Target emitter (must be a registered language).\",\n \"value_name\": \"emitter\",\n \"schema\": {\n \"type\": \"string\"\n }\n },\n {\n \"name\": \"from\",\n \"required\": false,\n \"description\": \"TS-authoring input (same as generate --from): the consumer's `.ts` SOURCE, read by the TS compiler (type-extract + AST-lower, not executed; needs the optional peer `typescript`). Regenerated + byte-compared against --out. Requires --behavior. Mutually exclusive with --in.\",\n \"value_name\": \"behaviors.ts\",\n \"schema\": {\n \"type\": \"string\"\n },\n \"file\": {\n \"mode\": \"read\",\n \"exists\": true,\n \"encoding\": \"utf-8\"\n }\n },\n {\n \"name\": \"behavior\",\n \"required\": false,\n \"description\": \"(with --from) The name of the exported `@behavior` class to compile. Required whenever --from is given.\",\n \"value_name\": \"ClassName\",\n \"schema\": {\n \"type\": \"string\"\n }\n },\n {\n \"name\": \"in\",\n \"required\": false,\n \"description\": \"Internal/test input: path to a serialized ComponentGraphIRDoc JSON file. Mutually exclusive with --from.\",\n \"value_name\": \"ir-doc.json\",\n \"schema\": {\n \"type\": \"string\"\n },\n \"file\": {\n \"mode\": \"read\",\n \"exists\": true,\n \"media_type\": \"application/json\",\n \"encoding\": \"utf-8\"\n }\n },\n {\n \"name\": \"out\",\n \"required\": false,\n \"description\": \"The committed covered-module file to diff a fresh generation against. At least one of --out / --shared-types-out is required.\",\n \"value_name\": \"file\",\n \"schema\": {\n \"type\": \"string\"\n },\n \"file\": {\n \"mode\": \"read\",\n \"exists\": true\n }\n },\n {\n \"name\": \"shared-types-out\",\n \"required\": false,\n \"description\": \"(--lang go-typed-native / rust-typed-native) The committed BC-OWNED shared wire types module to diff a fresh generation against (drift gate for the file emitted by `generate --shared-types-out`). May be checked together with --out in one invocation; at least one of --out / --shared-types-out is required. For go, --shared-types-import is required (it names the package). Rejected for other emitters.\",\n \"value_name\": \"file\",\n \"schema\": {\n \"type\": \"string\"\n },\n \"file\": {\n \"mode\": \"read\",\n \"exists\": true\n }\n },\n {\n \"name\": \"runtime-import\",\n \"required\": false,\n \"description\": \"Override the runtime import specifier baked into the module.\",\n \"value_name\": \"spec\",\n \"schema\": {\n \"type\": \"string\"\n }\n },\n {\n \"name\": \"shared-types-import\",\n \"required\": false,\n \"description\": \"(--lang go-typed-native / rust-typed-native) Package (go) / crate (rust) path for the BC-GENERATED shared wire types (WireValue/ WireRow/WireList; rust also the shared BehaviorError). When set, BC emits those types into that shared package/crate and the covered module imports them (go: package-qualified; rust: use <path>::*), so a separate leaf-transport package/crate can return them without an import cycle (cross-package / cross-crate layout). Absent → in-package. Ignored by other emitters.\",\n \"value_name\": \"spec\",\n \"schema\": {\n \"type\": \"string\"\n }\n },\n {\n \"name\": \"leaf-transport\",\n \"required\": false,\n \"repeatable\": true,\n \"description\": \"(--lang rust-typed-native / go-typed-native / python-native / php-native only) Map a covered leaf (catalog component) to the op-agnostic transport symbol the runner calls directly, as <leaf>=<symbol>; repeat per leaf. A leaf not listed uses the in-package default name (rust / python / php leaf_<comp>, go Leaf_<comp>). Ignored by other emitters.\",\n \"value_name\": \"mapping\",\n \"schema\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n }\n },\n {\n \"name\": \"leaf-transport-import\",\n \"required\": false,\n \"description\": \"(--lang rust-typed-native / go-typed-native / python-native / php-native only) Where the leaf transport symbols live: rust `use <module>::{…}`, go package import + selector, python `from <module> import …`, php the class whose static methods they are (`\\\\<Class>::<symbol>(…)`); absent → resolve in-scope / same package (php: global functions). Ignored by other emitters.\",\n \"value_name\": \"module\",\n \"schema\": {\n \"type\": \"string\"\n }\n }\n ],\n \"exits\": {\n \"0\": {\n \"description\": \"Up to date — the committed --out matches a fresh generation.\",\n \"stdout\": {\n \"format\": \"text\"\n }\n },\n \"1\": {\n \"description\": \"Drift detected (--out differs or does not exist), or generation failed (--from module unimportable / missing --behavior export / compile error; or unreadable/invalid --in; or unregistered --lang).\",\n \"stderr\": {\n \"format\": \"text\"\n }\n },\n \"2\": {\n \"description\": \"Usage error — --lang omitted, neither --from nor --in given (or both), --from without --behavior, or neither --out nor --shared-types-out was given.\",\n \"stderr\": {\n \"format\": \"text\"\n }\n }\n },\n \"x-agent\": {\n \"riskLevel\": \"low\",\n \"requiresConfirmation\": false,\n \"idempotent\": true,\n \"sideEffects\": []\n }\n }\n }\n }\n }\n}";
5
5
  //# sourceMappingURL=contract.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"contract.js","sourceRoot":"","sources":["../../src/generated/contract.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAChD,gDAAgD;AAEhD,MAAM,CAAC,MAAM,aAAa,GAAW,mmhBAAmmhB,CAAC;AAEzohB,MAAM,CAAC,MAAM,iBAAiB,GAAW,6/kBAA6/kB,CAAC"}
1
+ {"version":3,"file":"contract.js","sourceRoot":"","sources":["../../src/generated/contract.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAChD,gDAAgD;AAEhD,MAAM,CAAC,MAAM,aAAa,GAAW,yliBAAyliB,CAAC;AAE/niB,MAAM,CAAC,MAAM,iBAAiB,GAAW,w5lBAAw5lB,CAAC"}
@@ -18,8 +18,8 @@ export function createProgram(handlers, version, options = {}) {
18
18
  .option("--shared-types-out <file>", "(--lang go-typed-native / rust-typed-native) Write the BC-OWNED shared wire types module (WireValue/WireRow/WireList + probe kinds, rust also the shared BehaviorError; plus the cross-package/-crate batch ports structs) here. This is the module a covered module built with --shared-types-import imports. Independent of --out: a build may emit the covered module, the shared module, or both. For go the emitted package name is derived from --shared-types-import (so --shared-types-import is required with go). Rejected for other emitters. A standalone --shared-types-out does NOT print the covered module to stdout.")
19
19
  .option("--runtime-import <spec>", "Override the runtime import specifier baked into the module.")
20
20
  .option("--shared-types-import <spec>", "(--lang go-typed-native / rust-typed-native) Package (go) / crate (rust) path for the BC-GENERATED shared wire types (WireValue/ WireRow/WireList; rust also the shared BehaviorError). When set, BC emits those types into that shared package/crate and the covered module imports them (go: package-qualified; rust: use <path>::*), so a separate leaf-transport package/crate can return them without an import cycle (cross-package / cross-crate layout). Absent → in-package. Ignored by other emitters.")
21
- .option("--leaf-transport <mapping...>", "(--lang rust-typed-native / go-typed-native only) Map a covered leaf (catalog component) to the op-agnostic transport symbol the runner calls directly, as <leaf>=<symbol>; repeat per leaf. A leaf not listed uses the in-package default name (rust leaf_<comp> / go Leaf_<comp>). Ignored by other emitters.")
22
- .option("--leaf-transport-import <module>", "(--lang rust-typed-native / go-typed-native only) Module the leaf transport symbols are imported from (rust `use <module>::{…}`, go package import + selector); absent → resolve in-scope / same package. Ignored by other emitters.")
21
+ .option("--leaf-transport <mapping...>", "(--lang rust-typed-native / go-typed-native / python-native / php-native only) Map a covered leaf (catalog component) to the op-agnostic transport symbol the runner calls directly, as <leaf>=<symbol>; repeat per leaf. A leaf not listed uses the in-package default name (rust / python / php leaf_<comp>, go Leaf_<comp>). Ignored by other emitters.")
22
+ .option("--leaf-transport-import <module>", "(--lang rust-typed-native / go-typed-native / python-native / php-native only) Where the leaf transport symbols live: rust `use <module>::{…}`, go package import + selector, python `from <module> import …`, php the class whose static methods they are (`\\<Class>::<symbol>(…)`); absent → resolve in-scope / same package (php: global functions). Ignored by other emitters.")
23
23
  .action(async (opts, cmd) => {
24
24
  await handlers.generate(opts, cmd.optsWithGlobals());
25
25
  });
@@ -34,8 +34,8 @@ export function createProgram(handlers, version, options = {}) {
34
34
  .option("--shared-types-out <file>", "(--lang go-typed-native / rust-typed-native) The committed BC-OWNED shared wire types module to diff a fresh generation against (drift gate for the file emitted by `generate --shared-types-out`). May be checked together with --out in one invocation; at least one of --out / --shared-types-out is required. For go, --shared-types-import is required (it names the package). Rejected for other emitters.")
35
35
  .option("--runtime-import <spec>", "Override the runtime import specifier baked into the module.")
36
36
  .option("--shared-types-import <spec>", "(--lang go-typed-native / rust-typed-native) Package (go) / crate (rust) path for the BC-GENERATED shared wire types (WireValue/ WireRow/WireList; rust also the shared BehaviorError). When set, BC emits those types into that shared package/crate and the covered module imports them (go: package-qualified; rust: use <path>::*), so a separate leaf-transport package/crate can return them without an import cycle (cross-package / cross-crate layout). Absent → in-package. Ignored by other emitters.")
37
- .option("--leaf-transport <mapping...>", "(--lang rust-typed-native / go-typed-native only) Map a covered leaf (catalog component) to the op-agnostic transport symbol the runner calls directly, as <leaf>=<symbol>; repeat per leaf. A leaf not listed uses the in-package default name (rust leaf_<comp> / go Leaf_<comp>). Ignored by other emitters.")
38
- .option("--leaf-transport-import <module>", "(--lang rust-typed-native / go-typed-native only) Module the leaf transport symbols are imported from (rust `use <module>::{…}`, go package import + selector); absent → resolve in-scope / same package. Ignored by other emitters.")
37
+ .option("--leaf-transport <mapping...>", "(--lang rust-typed-native / go-typed-native / python-native / php-native only) Map a covered leaf (catalog component) to the op-agnostic transport symbol the runner calls directly, as <leaf>=<symbol>; repeat per leaf. A leaf not listed uses the in-package default name (rust / python / php leaf_<comp>, go Leaf_<comp>). Ignored by other emitters.")
38
+ .option("--leaf-transport-import <module>", "(--lang rust-typed-native / go-typed-native / python-native / php-native only) Where the leaf transport symbols live: rust `use <module>::{…}`, go package import + selector, python `from <module> import …`, php the class whose static methods they are (`\\<Class>::<symbol>(…)`); absent → resolve in-scope / same package (php: global functions). Ignored by other emitters.")
39
39
  .action(async (opts, cmd) => {
40
40
  await handlers.check(opts, cmd.optsWithGlobals());
41
41
  });
@@ -1 +1 @@
1
- {"version":3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;gBACvB,CAAC;YACH,CAAC;YACD,IAAI,GAAG,CAAC,UAAU;gBAAE,QAAQ,CAAC,UAAU,GAAG,GAAG,CAAC,UAAU,CAAC;YACzD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;QACjE,CAAC;QACD,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;IACvB,CAAC,CAAC,CAAC;IACL,MAAM,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC;IACjC,IAAI,YAAY,EAAE,CAAC;QACjB,8CAA8C;QAC9C,MAAM,iBAAiB,GAAG,CAAC,gBAAgB,EAAE,yBAAyB,EAAE,mBAAmB,CAAC,CAAC;QAC7F,MAAM,cAAc,GAAG,CAAC,OAAgB,EAAQ,EAAE;YAChD,OAAO,CAAC,eAAe,CAAC,EAAE,WAAW,EAAE,GAAG,EAAE,GAAE,CAAC,EAAE,CAAC,CAAC;YACnD,OAAO,CAAC,YAAY,CAAC,CAAC,KAAK,EAAE,EAAE;gBAC7B,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC;oBAAE,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;YAC1F,CAAC,CAAC,CAAC;YACH,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;QAC3C,CAAC,CAAC;QACF,cAAc,CAAC,OAAO,CAAC,CAAC;IAC1B,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC"}
@@ -21,12 +21,13 @@ export type IoModel = "sync" | "async" | {
21
21
  * consumer supplies these symbols (litedbmodel = a single `execute_sql`; graphddb = `get_item` / `query` /
22
22
  * `batch_get_item`), so consumer transport code is a fixed set of ops, not one method per behavior node.
23
23
  * - `symbols` — leaf(=catalog component) name → runtime transport symbol name. A leaf absent from the
24
- * table resolves to the in-package DEFAULT convention (rust `leaf_<sanitizedComponent>`, go
24
+ * table resolves to the in-package DEFAULT convention (rust / python / php `leaf_<sanitizedComponent>`, go
25
25
  * `Leaf_<sanitizedComponent>`).
26
26
  * - `import` — the module specifier the transport symbols live in (added to the covered module's import
27
27
  * block + used to bring the distinct resolved symbols into scope). Omit → in-package / crate-scope
28
28
  * resolution (the covered module emits no `use`/import and the symbols resolve where the module is used).
29
- * Other emitters (ts / py / php) ignore it.
29
+ * python `from <import> import …`; php: the class whose static methods the symbols are.
30
+ * The literal / typed emitters (ts / py / php) ignore it.
30
31
  */
31
32
  export interface LeafTransportOptions {
32
33
  /** leaf(=catalog component)名 → 直呼びする runtime transport シンボル名の表。 */
@@ -59,7 +60,7 @@ export interface EmitContext {
59
60
  /** #192: 生成エントリの名前空間(宣言クラス名。未指定なら emitter 既定)。 */
60
61
  namespace?: string;
61
62
  /**
62
- * codegen I/O モデル(bc#97): async/await を持つ言語(native=rust; 将来の native python)で、consumer の
63
+ * codegen I/O モデル(bc#97): async/await を持つ言語(native=rust)で、consumer の
63
64
  * terminal handler が async I/O を行う場合の宣言。emitter は per-terminal-node で `async fn` + `.await`
64
65
  * を出力する(await placement は SSoT 伝播 pass `async-plan.ts` が導出)。async/sync は language-runtime
65
66
  * concern であり IR には入らない — これは codegen INPUT(emitter option / CLI flag)。
@@ -68,7 +69,8 @@ export interface EmitContext {
68
69
  * - `{ asyncComponents }`: **per-terminal-handler granularity** — catalog `component` 名が集合に入る
69
70
  * terminal のみ async。未列挙は sync。1 runner 内で sync+async 混在可(bottom-up 伝播で runner は
70
71
  * iff async terminal を含む時 async)。
71
- * go は await 概念が無く annotation を無視(no-op)。python は native codegen surface が無く対象外。
72
+ * go は await 概念が無く annotation を無視(no-op)。python-native / php-native も同期のみで無視する(python /
73
+ * php の bc runtime に async 実行系が無く、等価の基準となる interpreter が同期であるため)。
72
74
  */
73
75
  ioModel: IoModel;
74
76
  /**
@@ -80,8 +82,8 @@ export interface EmitContext {
80
82
  sharedTypesImport?: string;
81
83
  /**
82
84
  * native codegen の op-agnostic leaf transport シンボル表({@link LeafTransportOptions})。covered runner
83
- * が各 covered node の実行点で直呼びする。未指定なら in-package 既定名(rust `leaf_<comp>` / go
84
- * `Leaf_<comp>`)。native emitter(rust/go)のみ消費、他(ts/py/php)は無視。
85
+ * が各 covered node の実行点で直呼びする。未指定なら in-package 既定名(rust / python / php `leaf_<comp>` /
86
+ * go `Leaf_<comp>`)。native emitter(rust/go/python/php)のみ消費、他(ts/py/php の literal)は無視。
85
87
  */
86
88
  leafTransport?: LeafTransportOptions;
87
89
  /**
@@ -110,9 +112,9 @@ export declare function entryPortOrder(comp: Component, declared: DeclaredEntryP
110
112
  * - `"ir-exec"` — IR 実行モデル。生成物に**可搬 IR を埋め込み**、ロード時 `loadCompiledIR` で adopt
111
113
  * して BC runtime(`runBehavior`)へ渡し**動的実行**する(literal = ts/python/php のみ)。
112
114
  * - `"codegen"` — IR を build で**終端**し、IR も dict dispatch も持たない **IR-free** コードを生成、
113
- * leaf を静的シンボルで直呼びする(typed ts + native go/rust)。**typed ts はここ**(#128/A6 で
115
+ * leaf を静的シンボルで直呼びする(typed ts + native go/rust/python/php)。**typed ts はここ**(#128/A6 で
114
116
  * ir-exec 側から codegen 側へ再分類 — 実装は 0.5.0 以降 straight-line codegen で IR 非在)。
115
- * **`runtime-free`(bc-runtime import ゼロ)は別の性質**で native go/rust だけが満たす。ts の
117
+ * **`runtime-free`(bc-runtime import ゼロ)は別の性質**で native go/rust/python/php だけが満たす。ts の
116
118
  * codegen ターゲットは意味論を runtime から import する(consumer-interface.md §0 の用語定義)。
117
119
  * conformance の grep-0(生成物 IR/dict 不在)+ 実行等価(生成 ≡ interpreter)は codegen ターゲットに課す。
118
120
  */
@@ -158,7 +160,7 @@ export interface GenerateOptions {
158
160
  * codegen I/O モデル(bc#97)を **明示指定**する(省略時の解決は下記)。`'async'`(uniform)または
159
161
  * `{ asyncComponents }`(per-terminal-handler granularity)を渡すと async/await 対応 native 言語
160
162
  * (rust-typed-native)が per-node で `async fn` + `.await` を出力する。go は await 概念が無いため
161
- * 無視(no-op)。python は native codegen surface が無く対象外。詳細は {@link IoModel} と
163
+ * 無視(no-op)。python-native / php-native も同期のみで無視する。詳細は {@link IoModel} と
162
164
  * `async-plan.ts` の SSoT 伝播 pass を参照。
163
165
  *
164
166
  * **省略時(#210・consumer の通常経路)**: `@leaf` 宣言(`static async` / `Promise<T>` 戻り型)から
@@ -175,7 +177,8 @@ export interface GenerateOptions {
175
177
  sharedTypesImport?: string;
176
178
  /**
177
179
  * native codegen の op-agnostic leaf transport シンボル表({@link LeafTransportOptions})。未指定なら
178
- * in-package 既定名(rust `leaf_<comp>` / go `Leaf_<comp>`)。native emitter(rust/go)のみ消費。
180
+ * in-package 既定名(rust / python / php `leaf_<comp>` / go `Leaf_<comp>`)。native emitter(rust/go/python/php)
181
+ * のみ消費。
179
182
  */
180
183
  leafTransport?: LeafTransportOptions;
181
184
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/generator/core.ts"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAElE;;;;;;;;;;GAUG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG;IAAE,QAAQ,CAAC,eAAe,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,CAAC;AAGzF;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,oBAAoB;IACnC,mEAAmE;IACnE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,2EAA2E;IAC3E,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAGD,MAAM,MAAM,oBAAoB,GAC5B,uBAAuB,GACvB,wBAAwB,GACxB,0BAA0B,GAC1B,UAAU,GACV,qBAAqB,GACrB,kBAAkB,GAClB,0BAA0B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iBAAiB,EAAE,OAAO,CAAC,iBAAiB;QAC5C,aAAa,EAAE,OAAO,CAAC,aAAa;QACpC,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,sBAAsB,EAAE,kBAAkB,CAAC,EAAE,CAAC,EAAE,cAAc;KAC/D,CAAC;IACF,OAAO;QACL,QAAQ,EAAE,MAAM,CAAC,QAAQ;QACzB,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;QACtB,WAAW;QACX,YAAY;QACZ,cAAc;QACd,YAAY,EAAE,MAAM,CAAC,YAAY,IAAI,sBAAsB,MAAM,CAAC,aAAa,EAAE;KAClF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,203 @@
1
+ /**
2
+ * emit-native-dynamic.ts — the ONE runner generator of the dynamically typed native targets
3
+ * (`python-native` / `php-native`, bc#330).
4
+ *
5
+ * The generated module is a STATIC MIRROR of `run_behavior` for one IR: each covered component becomes a
6
+ * native function whose body is the component's execution plan unrolled into plain statements — no
7
+ * embedded IR, no plan driver, no expression interpreter, no bc runtime import. Per node:
8
+ *
9
+ * - componentRef: the ports are lowered to native expressions (the shared `NativeExprCompiler`), packed
10
+ * into ONE payload and handed DIRECTLY to the op-agnostic leaf transport symbol; the returned value is
11
+ * de-boxed inline against the node's declared outType (the shared `buildDeBoxPlan` walk, rendered as
12
+ * flat checks — no type is walked at runtime). The Error Policy Kind is applied at the call site.
13
+ * - cond: a data join compiles `if`/`then`/`else` natively; a control gate becomes a produced flag.
14
+ * - map / fanout: the element loop, guard, batched dispatch, `into` zip-attach and fanout dedupe/drop are
15
+ * unrolled; the raw result is assembled exactly as `run_behavior` assembles it, then de-boxed once.
16
+ * - a real-concurrency stage: python dispatches its members on a thread pool and commits them in
17
+ * ascending index order (the `run_plan` protocol); php runs them in ascending order (`Plan.php`).
18
+ * - the output is assembled by the produced-aware output lowering shared with go/rust (`typed.ts`).
19
+ *
20
+ * What the language owns is only SYNTAX and the VALUE MODEL (python dict/list, php stdClass/array): the
21
+ * {@link DynBackend} renders statements, literals, value-model reads/tests and the module around the
22
+ * runners. Coverage (which components are native) is the shared `NativeCoverage` rule, so python and php
23
+ * accept exactly the inputs go and rust accept.
24
+ *
25
+ * Values that cross the module boundary in: the entry arguments are the caller's values and are NOT
26
+ * validated (the interpreter does not validate them either); a value of the wrong type is outside the
27
+ * declared contract. Every LEAF result is de-boxed exactly where `run_behavior` conforms it.
28
+ */
29
+ import type { Component } from "../behavior.js";
30
+ import { type EmitContext } from "./core.js";
31
+ import { type NativeExprBackend } from "./native-expr.js";
32
+ import { type TypePlan, type TypeRef } from "./typed.js";
33
+ /**
34
+ * Stmt — one statement of a generated runner. A string is a COMPLETE simple statement in the target
35
+ * syntax (built by the backend's statement constructors); it may span several lines whose RELATIVE
36
+ * indentation the renderer preserves (the expression compiler's guard blocks). The block forms are
37
+ * rendered by the backend with the target's block syntax.
38
+ */
39
+ export type Stmt = string | {
40
+ if: string;
41
+ then: Stmt[];
42
+ else?: Stmt[];
43
+ } | {
44
+ forEach: {
45
+ v: string;
46
+ over: string;
47
+ };
48
+ body: Stmt[];
49
+ } | {
50
+ forEnum: {
51
+ i: string;
52
+ v: string;
53
+ over: string;
54
+ };
55
+ body: Stmt[];
56
+ } | {
57
+ try: Stmt[];
58
+ err: string;
59
+ catch: Stmt[];
60
+ } | {
61
+ def: string;
62
+ body: Stmt[];
63
+ } | {
64
+ withPool: {
65
+ pool: string;
66
+ workers: number;
67
+ };
68
+ body: Stmt[];
69
+ } | {
70
+ comment: string;
71
+ };
72
+ /** the language spelling of a dynamically typed native target. */
73
+ export interface DynBackend {
74
+ readonly lang: "python" | "php";
75
+ /** the aggregated fail-closed label (`python native` / `php native`). */
76
+ readonly surface: string;
77
+ /** a real-concurrency stage runs on threads (python) or in ascending order (php). */
78
+ readonly threads: boolean;
79
+ /** a reference to the generated local `name` (php `$name`). */
80
+ local(name: string): string;
81
+ /** the entry function name of a component. */
82
+ entryName(comp: Component): string;
83
+ /** the reference to an input port's entry parameter inside the body. */
84
+ paramRef(port: string): string;
85
+ str(s: string): string;
86
+ bool(b: boolean): string;
87
+ readonly none: string;
88
+ intLit(dec: string): string;
89
+ floatLit(n: number): string;
90
+ /** a record value (python dict / php stdClass) with the given entries in order. */
91
+ recordLit(entries: {
92
+ key: string;
93
+ expr: string;
94
+ }[]): string;
95
+ /** a list value. */
96
+ listLit(items: string[]): string;
97
+ /** a string-keyed map value (the same representation as a record in both languages). */
98
+ mapLit(entries: {
99
+ key: string;
100
+ expr: string;
101
+ }[]): string;
102
+ /** the payload of ONE leaf call: port name → value (python dict / php associative array). */
103
+ payload(entries: {
104
+ key: string;
105
+ expr: string;
106
+ }[]): string;
107
+ /** one element of a batched payload's `items` (python dict / php stdClass — the interpreter's shape). */
108
+ batchItem(entries: {
109
+ key: string;
110
+ expr: string;
111
+ }[]): string;
112
+ /** a batched leaf payload `{items: <list>}`. */
113
+ batchPayload(itemsExpr: string): string;
114
+ /** read a record field that is known to be present. */
115
+ get(base: string, key: string): string;
116
+ /** is `key` present on the record `base`? */
117
+ has(base: string, key: string): string;
118
+ /** read a record field, or none when absent (`base` is known to be a record). */
119
+ getOrNone(base: string, key: string): string;
120
+ isNone(e: string): string;
121
+ isNotNone(e: string): string;
122
+ isRecord(e: string): string;
123
+ isList(e: string): string;
124
+ isString(e: string): string;
125
+ len(e: string): string;
126
+ /** a string concatenation of string expressions. */
127
+ concatStr(parts: string[]): string;
128
+ /** the message `prefix + <int expr> + suffix`. */
129
+ messageWithInt(prefix: string, intExpr: string, suffix: string): string;
130
+ not(e: string): string;
131
+ and(a: string, b: string): string;
132
+ lt(a: string, b: string): string;
133
+ eq(a: string, b: string): string;
134
+ index(list: string, i: string): string;
135
+ ternary(cond: string, t: string, e: string): string;
136
+ /** a string-keyed set value / membership / insertion (fanout dedupe). */
137
+ readonly emptySet: string;
138
+ setHas(set: string, key: string): string;
139
+ setAdd(set: string, key: string): string;
140
+ /** the zero value of a type (the unproduced arm of the produced-aware output lowering). */
141
+ zero(ref: TypeRef, plan: TypePlan): string;
142
+ assign(to: string, e: string): string;
143
+ /** `list[] = e` / `list.append(e)`. */
144
+ append(list: string, e: string): string;
145
+ /** `rec[key] = e` on a record. */
146
+ setField(rec: string, key: string, e: string): string;
147
+ /** `map[key] = e` on a map with a dynamic key expression. */
148
+ setKey(map: string, keyExpr: string, e: string): string;
149
+ /** a shallow copy of a record with `key` set to `e`, assigned to `to` ({...el, [key]: e}). */
150
+ copyWith(to: string, rec: string, key: string, e: string): Stmt[];
151
+ /** a copy of a record WITHOUT `key`, assigned to `to`. */
152
+ copyWithout(to: string, rec: string, key: string): Stmt[];
153
+ /** the statement iterating a map/record's entries: `for k, v in m.items()` / `foreach (get_object_vars($m) as $k => $v)`. */
154
+ forEntries(k: string, v: string, m: string, body: Stmt[]): Stmt;
155
+ ret(e: string): string;
156
+ /** throw `e`; `cause` (an exception local) is chained when given. */
157
+ raise(e: string, cause?: string): string;
158
+ readonly cont: string;
159
+ readonly brk: string;
160
+ error(code: string, messageExpr: string): string;
161
+ opFailed(nodeId: string, policy: "fail" | "retry", errLocal: string): string;
162
+ /** a de-box mismatch / missing field / forbidden key raise (statements). */
163
+ deMismatch(model: string, field: string, expected: string, src: string): string;
164
+ deMissing(model: string, field: string, expected: string): string;
165
+ deForbiddenKey(keyExpr: string): Stmt;
166
+ /** `"…" % (n, …)` — the batch-result mismatch message (want = expected length, got = the result). */
167
+ batchMismatch(code: string, prefix: string, wantExpr: string, gotExpr: string): string;
168
+ /** a de-boxed scalar: the helper call returning `src` as the declared scalar or raising. */
169
+ deScalar(scalar: "string" | "int" | "float" | "bool", src: string, model: string, field: string, expected: string): string;
170
+ /** call the leaf transport `sym` with `payload`. */
171
+ leafCall(sym: string, payloadExpr: string): string;
172
+ /** submit the worker `fn` to `pool`, giving the future expression; resolve a future. */
173
+ submit(pool: string, fn: string): string;
174
+ result(future: string): string;
175
+ /** a `(ok, value)` pair the python worker returns, and its unpacking. */
176
+ pair(ok: string, value: string): string;
177
+ unpack(okLocal: string, valueLocal: string, pairExpr: string): string;
178
+ exprBackend(resolveHead: (head: string) => {
179
+ expr: string;
180
+ ref: TypeRef;
181
+ } | null, plan: TypePlan, fresh: () => string): NativeExprBackend;
182
+ /** render a runner function (its statements) at module level. */
183
+ renderFunction(comp: Component, params: string[], body: Stmt[]): string;
184
+ /**
185
+ * the input port → entry parameter declaration. `omittable` marks an optional input port
186
+ * (`required:false`) in the TRAILING run of optional ports: it takes the language's null as its
187
+ * default, so a caller may omit it — the dynamic-language spelling of go's nil pointer / rust's None
188
+ * argument. An optional port followed by a required one stays positional (python rejects a default
189
+ * before a non-default; php deprecates it) and the caller passes null explicitly.
190
+ */
191
+ paramDecl(port: string, omittable: boolean): string;
192
+ /** the default in-package transport symbol of a leaf. */
193
+ defaultLeafSymbol(component: string): string;
194
+ /** the module around the runners. */
195
+ module(ctx: EmitContext, runners: string[], leafSymbols: string[], uses: {
196
+ threads: boolean;
197
+ }): string;
198
+ }
199
+ /** sanitize — the identifier fragment of a node id (shared by every generated local name). */
200
+ export declare function sanitize(id: string): string;
201
+ /** emitDynamicNative — the module of a dynamically typed native target. */
202
+ export declare function emitDynamicNative(ctx: EmitContext, be: DynBackend): string;
203
+ //# sourceMappingURL=emit-native-dynamic.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emit-native-dynamic.d.ts","sourceRoot":"","sources":["../../src/generator/emit-native-dynamic.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,OAAO,KAAK,EAAE,SAAS,EAAmD,MAAM,gBAAgB,CAAC;AAEjG,OAAO,EAAoC,KAAK,WAAW,EAA6B,MAAM,WAAW,CAAC;AAW1G,OAAO,EAAqC,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE7F,OAAO,EAWL,KAAK,QAAQ,EACb,KAAK,OAAO,EACb,MAAM,YAAY,CAAC;AAIpB;;;;;GAKG;AACH,MAAM,MAAM,IAAI,GACZ,M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