behavior-contracts 0.11.18 → 0.11.20
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/README.md +14 -6
- package/cli-contract.yaml +9 -4
- package/dist/behavior.d.ts +16 -7
- package/dist/behavior.d.ts.map +1 -1
- package/dist/behavior.js +19 -8
- package/dist/behavior.js.map +1 -1
- package/dist/cli.js +4 -2
- package/dist/cli.js.map +1 -1
- package/dist/expr-eval.d.ts +8 -1
- package/dist/expr-eval.d.ts.map +1 -1
- package/dist/expr-eval.js +11 -2
- package/dist/expr-eval.js.map +1 -1
- package/dist/generated/contract.d.ts.map +1 -1
- package/dist/generated/contract.js +2 -2
- package/dist/generated/contract.js.map +1 -1
- package/dist/generator/core.d.ts +4 -2
- package/dist/generator/core.d.ts.map +1 -1
- package/dist/generator/core.js.map +1 -1
- package/dist/generator/emit-shared-go-typed.d.ts +8 -12
- package/dist/generator/emit-shared-go-typed.d.ts.map +1 -1
- package/dist/generator/emit-shared-go-typed.js +40 -25
- package/dist/generator/emit-shared-go-typed.js.map +1 -1
- package/dist/generator/emit-shared-rust-typed.d.ts +12 -16
- package/dist/generator/emit-shared-rust-typed.d.ts.map +1 -1
- package/dist/generator/emit-shared-rust-typed.js +45 -30
- package/dist/generator/emit-shared-rust-typed.js.map +1 -1
- package/dist/generator/emit-straightline-typed-typescript.d.ts.map +1 -1
- package/dist/generator/emit-straightline-typed-typescript.js +15 -23
- package/dist/generator/emit-straightline-typed-typescript.js.map +1 -1
- package/dist/generator/emit-typed-native-go.d.ts.map +1 -1
- package/dist/generator/emit-typed-native-go.js +188 -160
- package/dist/generator/emit-typed-native-go.js.map +1 -1
- package/dist/generator/emit-typed-native-rust.d.ts.map +1 -1
- package/dist/generator/emit-typed-native-rust.js +550 -285
- package/dist/generator/emit-typed-native-rust.js.map +1 -1
- package/dist/generator/native-expr.d.ts +49 -6
- package/dist/generator/native-expr.d.ts.map +1 -1
- package/dist/generator/native-expr.js +87 -21
- package/dist/generator/native-expr.js.map +1 -1
- package/dist/generator/typed.d.ts +149 -0
- package/dist/generator/typed.d.ts.map +1 -1
- package/dist/generator/typed.js +106 -1
- package/dist/generator/typed.js.map +1 -1
- package/package.json +1 -1
|
@@ -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→native end to end in-process,\n emitting a runtime-free native module (data baked as literals). The IR exists\n 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: Generated native module source (baked-literal, 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→native end to end in-process, emitting a runtime-free native module (data baked as literals). 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 native module source (baked-literal, 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) 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}";
|
|
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,
|
|
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"}
|
package/dist/generator/core.d.ts
CHANGED
|
@@ -109,9 +109,11 @@ export declare function entryPortOrder(comp: Component, declared: DeclaredEntryP
|
|
|
109
109
|
* emitter ターゲット分類(consumer-interface.md §0/§1・#128/A6)。BC の実行モデルは根本 2 つ:
|
|
110
110
|
* - `"ir-exec"` — IR 実行モデル。生成物に**可搬 IR を埋め込み**、ロード時 `loadCompiledIR` で adopt
|
|
111
111
|
* して BC runtime(`runBehavior`)へ渡し**動的実行**する(literal = ts/python/php のみ)。
|
|
112
|
-
* - `"codegen"` — IR を build で**終端**し、IR も dict dispatch も持たない
|
|
112
|
+
* - `"codegen"` — IR を build で**終端**し、IR も dict dispatch も持たない **IR-free** コードを生成、
|
|
113
113
|
* leaf を静的シンボルで直呼びする(typed ts + native go/rust)。**typed ts はここ**(#128/A6 で
|
|
114
114
|
* ir-exec 側から codegen 側へ再分類 — 実装は 0.5.0 以降 straight-line codegen で IR 非在)。
|
|
115
|
+
* **`runtime-free`(bc-runtime import ゼロ)は別の性質**で native go/rust だけが満たす。ts の
|
|
116
|
+
* codegen ターゲットは意味論を runtime から import する(consumer-interface.md §0 の用語定義)。
|
|
115
117
|
* conformance の grep-0(生成物 IR/dict 不在)+ 実行等価(生成 ≡ interpreter)は codegen ターゲットに課す。
|
|
116
118
|
*/
|
|
117
119
|
export type EmitterClassification = "ir-exec" | "codegen";
|
|
@@ -121,7 +123,7 @@ export interface EmitterPlugin {
|
|
|
121
123
|
language: string;
|
|
122
124
|
/**
|
|
123
125
|
* ターゲット分類(consumer-interface.md §0/§1・#128/A6)。`"ir-exec"`(IR を埋め込み動的実行 —
|
|
124
|
-
* literal)か `"codegen"`(IR を build で終端し
|
|
126
|
+
* literal)か `"codegen"`(IR を build で終端し **IR-free** コード生成 — typed ts / native go/rust)。
|
|
125
127
|
*/
|
|
126
128
|
classification: EmitterClassification;
|
|
127
129
|
/** 生成ファイルの拡張子(`.ts` / `.py` …)。 */
|
|
@@ -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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AAI,SAAS,CAAC,UAAU;QAAE,4BAA4B,CAAC,IAAI,CAAC,CAAC;IAC5E,MAAM,WAAW,GAAG,yBAAyB,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,YAAY,GAAG;QACnB,QAAQ,EAAE,aAAa,CAAC,QAAQ;QAChC,UAAU,EAAE,aAAa,CAAC,UAAU;QACpC,IAAI,EAAE,aAAa,CAAC,IAAI;KACzB,CAAC;IACF,MAAM,cAAc,GAAG,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC/D,MAAM,GAAG,GAAgB;QACvB,EAAE,EAAE,SAAS;QACb,WAAW;QACX,YAAY;QACZ,cAAc;QACd,aAAa,EAAE,OAAO,CAAC,aAAa,IAAI,MAAM,CAAC,oBAAoB;QACnE,OAAO,EAAE,OAAO,CAAC,OAAO,IAAI,eAAe,CAAC,EAAE,CAAC,IAAI,MAAM;QACzD,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"}
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
* byte-identical(後方互換 pin)。
|
|
31
31
|
*/
|
|
32
32
|
import type { EmitContext } from "./core.js";
|
|
33
|
-
import { type TypePlan, type TypeRef } from "./typed.js";
|
|
33
|
+
import { type SlotRefLowering, type TypePlan, type TypeRef } from "./typed.js";
|
|
34
34
|
import { setGoForceRunPlanHelpers } from "./emit-shared-go.js";
|
|
35
35
|
import type { Component } from "../behavior.js";
|
|
36
36
|
/** 可搬スカラ → Go の具体型名(de-box 後の struct field 型)。int/float は int64/float64 で区別。 */
|
|
@@ -74,15 +74,6 @@ declare function serializeTyped(typedExpr: string, ref: TypeRef, _plan: TypePlan
|
|
|
74
74
|
declare function sanitize(name: string): string;
|
|
75
75
|
/** 生成コード内の typed ローカル変数名(materialize 済み struct)。 */
|
|
76
76
|
declare function typedLocal(nodeId: string): string;
|
|
77
|
-
/**
|
|
78
|
-
* checkOutputFieldType — fail-closed (bc#151) at the output-struct assembly. `fieldType` is the field's
|
|
79
|
-
* DECLARED type (from comp.outputType's derived struct decl); `valueType` is the type of the node-result /
|
|
80
|
-
* value expression placed into it. Both are rendered via the SAME renderTypeRef the emitter uses, so an
|
|
81
|
-
* inequality is EXACTLY the type mismatch the Go compiler reports — it fires IFF the emitted module would
|
|
82
|
-
* not compile, never on a legit vector. Root cause is an inconsistent input IR (comp.outputType disagrees
|
|
83
|
-
* with the node-result type SSoT for this field).
|
|
84
|
-
*/
|
|
85
|
-
declare function checkOutputFieldType(compName: string, fieldPath: string, fieldType: TypeRef | undefined, valueType: TypeRef | undefined, plan: TypePlan): void;
|
|
86
77
|
/**
|
|
87
78
|
* emitTypedValue — output(Φ 合流式)IR を、期待型 `expected` の **具体 Go typed 値**式へ再帰 lower し、
|
|
88
79
|
* `{ expr, ref }` を返す。これが AC2 の「exec が具体 struct を保持」の実体:
|
|
@@ -92,8 +83,13 @@ declare function checkOutputFieldType(compName: string, fieldPath: string, field
|
|
|
92
83
|
* - `{arr:[…]}` → 具体 slice literal(要素は要素型で lower)。
|
|
93
84
|
* - scalar literal → 具体 Go 値。
|
|
94
85
|
* - 演算子(concat/…)→ straight-line 生値を expected へ materialize(意味論は SSoT が持つ)。
|
|
86
|
+
*
|
|
87
|
+
* `slotRef`({@link SlotRefLowering})は node 結果参照位置の per-emitter lowering seam。**この 1 本の再帰が
|
|
88
|
+
* 降りる全スロット**(component 出力 / struct field / 配列要素 / 演算子オペランド)で自分の `ref` 処理より
|
|
89
|
+
* 先に consult される。produced-aware 出力 lowering(#86 pt1)はこれで乗る — 以前は obj 分岐を逐語コピー
|
|
90
|
+
* した **2 本目の再帰**で、配列要素に届かなかった(#293/#295)。
|
|
95
91
|
*/
|
|
96
|
-
declare function emitTypedValue(node: unknown, expected: TypeRef | undefined, typedNodes: Map<string, TypeRef>, plan: TypePlan, compName?: string, fieldPath?: string): {
|
|
92
|
+
declare function emitTypedValue(node: unknown, expected: TypeRef | undefined, typedNodes: Map<string, TypeRef>, plan: TypePlan, compName?: string, fieldPath?: string, slotRef?: SlotRefLowering): {
|
|
97
93
|
expr: string;
|
|
98
94
|
ref: TypeRef | undefined;
|
|
99
95
|
};
|
|
@@ -136,7 +132,7 @@ export declare const goTypedInternals: {
|
|
|
136
132
|
serializeTyped: typeof serializeTyped;
|
|
137
133
|
typedFieldAccess: typeof typedFieldAccess;
|
|
138
134
|
emitTypedValue: typeof emitTypedValue;
|
|
139
|
-
checkOutputFieldType:
|
|
135
|
+
checkOutputFieldType: import("./typed.js").OutputFieldTypeCheck;
|
|
140
136
|
arrHelperKey: typeof arrHelperKey;
|
|
141
137
|
emitArrOptNodeHelpers: typeof emitArrOptNodeHelpers;
|
|
142
138
|
buildComponentPlanForTyped: (comp: Component) => import("./straightline.js").ComponentPlan;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emit-shared-go-typed.d.ts","sourceRoot":"","sources":["../../src/generator/emit-shared-go-typed.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,
|
|
1
|
+
{"version":3,"file":"emit-shared-go-typed.d.ts","sourceRoot":"","sources":["../../src/generator/emit-shared-go-typed.ts"],"names":[],"mappings":"AAAA;;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ieldTypeCheck, } from "./typed.js";
|
|
2
2
|
import { goStraightlineInternals, setGoForceRunPlanHelpers } from "./emit-shared-go.js";
|
|
3
3
|
import { buildComponentPlan } from "./straightline.js";
|
|
4
4
|
import { GeneratorFailure } from "./core.js";
|
|
@@ -320,23 +320,13 @@ function refPathOf(node) {
|
|
|
320
320
|
return path;
|
|
321
321
|
}
|
|
322
322
|
/**
|
|
323
|
-
* checkOutputFieldType —
|
|
324
|
-
*
|
|
325
|
-
*
|
|
326
|
-
*
|
|
327
|
-
*
|
|
328
|
-
* with the node-result type SSoT for this field).
|
|
323
|
+
* checkOutputFieldType — the shared OUTPUT_TYPE_INCONSISTENT gate (bc#151) at the output-struct assembly,
|
|
324
|
+
* bound to this emitter's `renderTypeRef`. `fieldType` is the field's DECLARED type (from comp.outputType's
|
|
325
|
+
* derived struct decl); `valueType` is the type of the value ACTUALLY PLACED into it. The rule, the message
|
|
326
|
+
* and the admitted lowerings live in `typed.ts` ({@link makeOutputFieldTypeCheck} /
|
|
327
|
+
* {@link lowerIntoOutputSlot}) — one gate for all typed emitters.
|
|
329
328
|
*/
|
|
330
|
-
|
|
331
|
-
void plan;
|
|
332
|
-
if (fieldType === undefined || valueType === undefined)
|
|
333
|
-
return;
|
|
334
|
-
const ft = renderTypeRef(fieldType);
|
|
335
|
-
const vt = renderTypeRef(valueType);
|
|
336
|
-
if (ft !== vt) {
|
|
337
|
-
throw new GeneratorFailure("OUTPUT_TYPE_INCONSISTENT", `go typed-native output assembly: component '${compName}' output field '${fieldPath}' is declared type '${ft}', but the node-result value placed into it has type '${vt}'. The emitted module would not compile (Go type mismatch). The input IR's comp.outputType disagrees with the node-result type SSoT for this field — fix the consumer IR so the output field type matches the node's built value type.`);
|
|
338
|
-
}
|
|
339
|
-
}
|
|
329
|
+
const checkOutputFieldType = makeOutputFieldTypeCheck("go typed-native", "Go type mismatch", renderTypeRef);
|
|
340
330
|
/**
|
|
341
331
|
* emitTypedValue — output(Φ 合流式)IR を、期待型 `expected` の **具体 Go typed 値**式へ再帰 lower し、
|
|
342
332
|
* `{ expr, ref }` を返す。これが AC2 の「exec が具体 struct を保持」の実体:
|
|
@@ -346,8 +336,16 @@ function checkOutputFieldType(compName, fieldPath, fieldType, valueType, plan) {
|
|
|
346
336
|
* - `{arr:[…]}` → 具体 slice literal(要素は要素型で lower)。
|
|
347
337
|
* - scalar literal → 具体 Go 値。
|
|
348
338
|
* - 演算子(concat/…)→ straight-line 生値を expected へ materialize(意味論は SSoT が持つ)。
|
|
339
|
+
*
|
|
340
|
+
* `slotRef`({@link SlotRefLowering})は node 結果参照位置の per-emitter lowering seam。**この 1 本の再帰が
|
|
341
|
+
* 降りる全スロット**(component 出力 / struct field / 配列要素 / 演算子オペランド)で自分の `ref` 処理より
|
|
342
|
+
* 先に consult される。produced-aware 出力 lowering(#86 pt1)はこれで乗る — 以前は obj 分岐を逐語コピー
|
|
343
|
+
* した **2 本目の再帰**で、配列要素に届かなかった(#293/#295)。
|
|
349
344
|
*/
|
|
350
|
-
function emitTypedValue(node, expected, typedNodes, plan, compName = "", fieldPath = "") {
|
|
345
|
+
function emitTypedValue(node, expected, typedNodes, plan, compName = "", fieldPath = "", slotRef) {
|
|
346
|
+
const lowered = slotRef?.(node, expected, fieldPath);
|
|
347
|
+
if (lowered !== undefined)
|
|
348
|
+
return lowered;
|
|
351
349
|
const path = refPathOf(node);
|
|
352
350
|
if (path && path.length >= 1) {
|
|
353
351
|
const head = path[0];
|
|
@@ -372,17 +370,31 @@ function emitTypedValue(node, expected, typedNodes, plan, compName = "", fieldPa
|
|
|
372
370
|
const fields = node.obj;
|
|
373
371
|
const inits = decl.fields.map((f) => {
|
|
374
372
|
const childPath = fieldPath === "" ? f.name : `${fieldPath}.${f.name}`;
|
|
375
|
-
const sub = emitTypedValue(fields[f.name], f.type, typedNodes, plan, compName, childPath);
|
|
376
|
-
// Output-struct field assembly (bc#151):
|
|
377
|
-
//
|
|
378
|
-
|
|
373
|
+
const sub = emitTypedValue(fields[f.name], f.type, typedNodes, plan, compName, childPath, slotRef);
|
|
374
|
+
// Output-struct field assembly (bc#151): this site emits the value BARE into `T{field: <value>}`,
|
|
375
|
+
// so it performs no lowering — the value's own type is what Go sees, and anything but an exact
|
|
376
|
+
// match fails closed here.
|
|
377
|
+
checkOutputFieldType(compName, childPath, f.type, sub.ref);
|
|
379
378
|
return `${goFieldName(f.name)}: ${sub.expr}`;
|
|
380
379
|
});
|
|
381
380
|
return { expr: `${expected.name}{${inits.join(", ")}}`, ref: expected };
|
|
382
381
|
}
|
|
383
382
|
if (keys.length === 1 && keys[0] === "arr" && expected && expected.kind === "arr") {
|
|
384
383
|
const elems = node.arr;
|
|
385
|
-
const items = elems.map((e, i) =>
|
|
384
|
+
const items = elems.map((e, i) => {
|
|
385
|
+
const elemPath = `${fieldPath}[${i}]`;
|
|
386
|
+
const sub = emitTypedValue(e, expected.elem, typedNodes, plan, compName, elemPath, slotRef);
|
|
387
|
+
// Output-ARRAY element assembly (bc#151/#293): the SAME kind of site as the obj-field assembly
|
|
388
|
+
// above — the element is emitted BARE into `[]T{…}`, so this site performs no lowering and the
|
|
389
|
+
// value's own type is what Go sees. It therefore runs the same gate with the value's own type
|
|
390
|
+
// (typed.ts: a site that cannot lower fails closed rather than blessing code go rejects).
|
|
391
|
+
// `type-gate.ts` resolveOutputType descends array elements as `<field>[i]` as well, so the
|
|
392
|
+
// emitter checks every position the semantic gate descends into — with the struct NAME included.
|
|
393
|
+
// A site that CAN lower does so through `slotRef` above (#295: the produced-aware read reaches an
|
|
394
|
+
// array element because there is ONE recursion), and then this check sees the LOWERED type.
|
|
395
|
+
checkOutputFieldType(compName, elemPath, expected.elem, sub.ref);
|
|
396
|
+
return sub.expr;
|
|
397
|
+
});
|
|
386
398
|
return { expr: `[]${renderTypeRef(expected.elem)}{${items.join(", ")}}`, ref: expected };
|
|
387
399
|
}
|
|
388
400
|
// concat 演算子: operand を **de-box された typed 値**(typed field access なら concrete string)で
|
|
@@ -390,8 +402,11 @@ function emitTypedValue(node, expected, typedNodes, plan, compName = "", fieldPa
|
|
|
390
402
|
// これで scalar-output-via-typed-field-access vector も **具体 struct field を経由した de-box** になる。
|
|
391
403
|
if (keys.length === 1 && keys[0] === "concat" && expected && expected.kind === "scalar" && expected.scalar === "string") {
|
|
392
404
|
const parts = node.concat;
|
|
393
|
-
const partExprs = parts.map((p) => {
|
|
394
|
-
|
|
405
|
+
const partExprs = parts.map((p, i) => {
|
|
406
|
+
// an operand is a slot the recursion descends into as well, so `slotRef` reaches it (#295). It is NOT
|
|
407
|
+
// a DECLARED slot — `type-gate.ts` resolveOutputType stops descending at an operator — so a
|
|
408
|
+
// produced-aware read here fails closed in the shared rule rather than substituting a zero.
|
|
409
|
+
const sub = emitTypedValue(p, { kind: "scalar", scalar: "string" }, typedNodes, plan, compName, `${fieldPath}(concat operand ${i})`, slotRef);
|
|
395
410
|
return sub.expr;
|
|
396
411
|
});
|
|
397
412
|
return { expr: partExprs.join(" + "), ref: expected };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emit-shared-go-typed.js","sourceRoot":"","sources":["../../src/generator/emit-shared-go-typed.ts"],"names":[],"mappings":"AAgCA,OAAO,EACL,aAAa,EACb,QAAQ,EACR,gBAAgB,GAIjB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAGrD,uEAAuE;AACvE,MAAM,GAAG,GAAG,cAAc,CAAC;AAE3B,6EAA6E;AAE7E,gFAAgF;AAChF,SAAS,QAAQ,CAAC,MAAoD;IACpE,QAAQ,MAAM,EAAE,CAAC;QACf,KAAK,QAAQ;YACX,OAAO,QAAQ,CAAC;QAClB,KAAK,KAAK;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QAAQ,GAAG,CAAC,IAAI,EAAE,CAAC;QACjB,KAAK,OAAO;YACV,wEAAwE;YACxE,MAAM,IAAI,KAAK,CAAC,iFAAiF,OAAO,GAAG,CAAC,CAAC;QAC/G,KAAK,OAAO;YACV,OAAO,eAAe,GAAG,CAAC,IAAI,IAAI,OAAO,GAAG,CAAC;QAC/C,KAAK,QAAQ;YACX,OAAO,cAAc,GAAG,CAAC,MAAM,IAAI,OAAO,GAAG,CAAC;QAChD,KAAK,KAAK;YACR,OAAO,WAAW,YAAY,CAAC,GAAG,CAAC,IAAI,OAAO,GAAG,CAAC;QACpD,KAAK,KAAK;YACR,OAAO,WAAW,YAAY,CAAC,GAAG,CAAC,IAAI,OAAO,GAAG,CAAC;QACpD,KAAK,KAAK;YACR,OAAO,WAAW,YAAY,CAAC,GAAG,CAAC,IAAI,OAAO,GAAG,CAAC;IACtD,CAAC;AACH,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,GAAG;IACH,QAAQ;IACR,WAAW;IACX,aAAa;IACb,kBAAkB;IAClB,QAAQ;IACR,UAAU;IACV,gBAAgB;IAChB,iBAAiB;IACjB,oBAAoB;IACpB,aAAa;IACb,eAAe;IACf,eAAe;IACf,cAAc;IACd,gBAAgB;IAChB,cAAc;IACd,oBAAoB;IACpB,YAAY;IACZ,qBAAqB;IACrB,0BAA0B,EAAE,CAAC,IAAe,EAAE,EAAE,CAC9C,kBAAkB,CAAC,IAAI,EAAE,uBAAuB,CAAC,OAAO,EAAE,UAAU,CAAC;IACvE,cAAc,EAAE,uBAAuB,CAAC,cAAc;IACtD,uBAAuB,EAAE,uBAAuB,CAAC,uBAAuB;IACxE,SAAS,EAAE,uBAAuB,CAAC,SAAS;IAC5C,wBAAwB;CACzB,CAAC"}
|
|
1
|
+
{"version":3,"file":"emit-shared-go-typed.js","sourceRoot":"","sources":["../../src/generator/emit-shared-go-typed.ts"],"names":[],"mappings":"AAgCA,OAAO,EACL,aA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