behavior-contracts 0.8.9 → 0.8.11
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 +49 -1
- package/cli-contract.yaml +76 -0
- package/dist/cli.js +14 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/codegen.d.ts +5 -3
- package/dist/commands/codegen.d.ts.map +1 -1
- package/dist/commands/codegen.js +10 -3
- package/dist/commands/codegen.js.map +1 -1
- package/dist/generated/commands.d.ts.map +1 -1
- package/dist/generated/commands.js +16 -0
- package/dist/generated/commands.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/generated/program.d.ts +8 -0
- package/dist/generated/program.d.ts.map +1 -1
- package/dist/generated/program.js +8 -0
- package/dist/generated/program.js.map +1 -1
- package/dist/generated/types.d.ts +8 -0
- package/dist/generated/types.d.ts.map +1 -1
- package/dist/generator/core.d.ts +33 -1
- package/dist/generator/core.d.ts.map +1 -1
- package/dist/generator/core.js +1 -0
- package/dist/generator/core.js.map +1 -1
- package/dist/generator/emit-shared-go-typed.d.ts +11 -1
- package/dist/generator/emit-shared-go-typed.d.ts.map +1 -1
- package/dist/generator/emit-shared-go-typed.js +26 -3
- package/dist/generator/emit-shared-go-typed.js.map +1 -1
- package/dist/generator/emit-shared-rust-typed.d.ts +11 -1
- package/dist/generator/emit-shared-rust-typed.d.ts.map +1 -1
- package/dist/generator/emit-shared-rust-typed.js +26 -3
- 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 +55 -7
- package/dist/generator/emit-straightline-typed-typescript.js.map +1 -1
- package/dist/generator/emit-typed-native-go.d.ts +9 -7
- package/dist/generator/emit-typed-native-go.d.ts.map +1 -1
- package/dist/generator/emit-typed-native-go.js +247 -221
- package/dist/generator/emit-typed-native-go.js.map +1 -1
- package/dist/generator/emit-typed-native-rust.d.ts +27 -22
- package/dist/generator/emit-typed-native-rust.d.ts.map +1 -1
- package/dist/generator/emit-typed-native-rust.js +261 -272
- package/dist/generator/emit-typed-native-rust.js.map +1 -1
- package/dist/generator/index.d.ts +1 -1
- package/dist/generator/index.d.ts.map +1 -1
- package/dist/generator/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/package.json +3 -2
|
@@ -43,16 +43,18 @@
|
|
|
43
43
|
* relation READS #323 needs are the componentRef + relationKind:single shape, which this covers).
|
|
44
44
|
* A component with a map/cond node is not native-eligible and falls through to the generic body.
|
|
45
45
|
*/
|
|
46
|
-
import type { EmitterPlugin } from "./core.js";
|
|
46
|
+
import type { EmitterPlugin, LeafTransportOptions } from "./core.js";
|
|
47
47
|
/**
|
|
48
48
|
* goTypedNativeObserve — the TEST-ONLY observe companion (a SEPARATE file in the SAME package as the
|
|
49
|
-
* covered module). It carries the typed->Value serializers (ser_*) +
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
49
|
+
* covered module). It carries the typed->Value serializers (ser_*) + the SCRIPTED analog of the consumer's
|
|
50
|
+
* leaf transport symbols: free Leaf_<comp> funcs (same package, so the covered module's transport calls
|
|
51
|
+
* resolve) that drain a shared package-level scripted queue, + an ObserveNativeRaw dispatch that fills the
|
|
52
|
+
* queue from the per-case spec, drives the module-private struct runner, and serializes its result to a
|
|
53
|
+
* canonical Value for the equivalence pin. This lives OUTSIDE the covered module so the module stays literal
|
|
54
|
+
* whole-file zero (the ser_* NewObj is test glue, never on the consumer's read hot path). Emitted only for
|
|
55
|
+
* the fully-covered case (the equivalence harness); production consumers never use it.
|
|
54
56
|
*/
|
|
55
|
-
export declare function goTypedNativeObserve(ir: unknown, runtimeImport?: string): string;
|
|
57
|
+
export declare function goTypedNativeObserve(ir: unknown, runtimeImport?: string, leaf?: LeafTransportOptions): string;
|
|
56
58
|
/**
|
|
57
59
|
* goTypedNativeEmitter — language id `go-typed-native` (bc#77). Emits the generic straight-line
|
|
58
60
|
* body (for non-covered components / helpers) plus the COMBINED READ layer (native ports struct
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emit-typed-native-go.d.ts","sourceRoot":"","sources":["../../src/generator/emit-typed-native-go.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,OAAO,KAAK,EAAe,aAAa,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"emit-typed-native-go.d.ts","sourceRoot":"","sources":["../../src/generator/emit-typed-native-go.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,OAAO,KAAK,EAAe,aAAa,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AA6mFlF;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,OAAO,EAAE,aAAa,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,oBAAoB,GAAG,MAAM,CA2e7G;AAED;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,EAAE,aAOlC,CAAC"}
|