Skip to content

The package's wire format; default_framing moves to config.idp - #101

Merged
Kinflou merged 2 commits into
mainfrom
feat/package-wire
Oct 24, 2026
Merged

Kinflou merged 2 commits into
mainfrom
feat/package-wire

Conversation

@Kinflou

@Kinflou Kinflou commented Oct 24, 2026

Copy link
Copy Markdown
Member

Closes #100. The cli half of Stage 3 of the package wire defaults (proposal).

  • GenRequest.wire_format: each generated version gets its own wire.format. That's the working tree's config, or, for a built version, the config the CAS stored it with (history::load_config).
  • default_framing, in [generate] or in a target, is now an error with a ready-to-paste hint:
    `default_framing` moved from comline.toml to config.idp
      help: drop it here, and declare the package's framing in config.idp:
          wire = { framing = "jsonrpc" }
    
  • comline build checks the declared wire.format against each declared target, the same way it checks the schemas' features. A TypeScript target with msgpack@1 is refused there.
  • The async = true warning now names the only remaining cases. Every protocol is on a connection by default, so it fires only when every protocol is lockstep.
  • comline new writes // wire = { format = "packed@1" framing = "datagram@2" } into config.idp and drops the default_framing line from comline.toml. Heads-up: the local cli/ checkout has uncommitted changes to src/commands/new.rs, which will need a rebase over this.
  • End-to-end tests serve through the package's serve(transport, Services { .. }) and connect, over packed@1.
  • Pins: core 2ba38df, generation dfd3bdb, comline-rust 5927244, comline-typescript 52c004f. They move to the merge commits once those PRs land.

Kinflou added 2 commits October 25, 2026 06:24
- Each generated version gets its own `wire.format`: the working tree's
  config, or the config a built version was stored with.
- `default_framing` in comline.toml is an error that hands back the
  `wire = { framing = ... }` line for config.idp.
- `comline build` checks the declared `wire.format` against each
  declared target, as it does the schemas' features.
- The async-unused warning names the cases left: lockstep framings.
- `comline new` writes a commented `wire` line with the defaults.
- The end-to-end drivers serve through the package's `serve`/`connect`.
- Pins core 2ba38df, generation dfd3bdb, comline-rust 5927244,
  comline-typescript 52c004f.
@Kinflou
Kinflou merged commit 6ff1798 into main Oct 24, 2026
2 checks passed
@Kinflou
Kinflou deleted the feat/package-wire branch October 24, 2026 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move default_framing to config.idp's wire key; pass the format to generators

1 participant