Skip to content

refactor: migrate to ucantone typed Binding[Args, OK]#31

Merged
frrist merged 1 commit into
mainfrom
frrist/ucantone-binding-migration
May 21, 2026
Merged

refactor: migrate to ucantone typed Binding[Args, OK]#31
frrist merged 1 commit into
mainfrom
frrist/ucantone-binding-migration

Conversation

@frrist
Copy link
Copy Markdown
Member

@frrist frrist commented May 21, 2026

Adopt the ucantone changes from #17 (Binding[Args, OK]), #18 (big ints), and

  • Drop commands/bind.go: the MustParse wrapper was a pass-through to binding.Bind(command.MustParse(...)), so command declarations now call ucantone directly as binding.Bind*Args, *OK.
  • Pair every command with its existing OK result type as the second type parameter (feat: port DID resolvers #17).
  • Regenerate commands/access cbor/json: the Command field now marshals via command.Command's own methods rather than as a string (refactor(capabilities): inline datamodel structs into parent packages #21).
  • Update retrieval tests from validator/bindcom to binding.Bind.

Adopt the ucantone changes from #17 (Binding[Args, OK]), #18 (big ints), and

- Drop commands/bind.go: the MustParse wrapper was a pass-through to
  binding.Bind(command.MustParse(...)), so command declarations now call
  ucantone directly as binding.Bind[*Args, *OK](command.MustParse("/x")).
- Pair every command with its existing OK result type as the second type
  parameter (#17).
- Regenerate commands/access cbor/json: the Command field now marshals via
  command.Command's own methods rather than as a string (#21).
- Update retrieval tests from validator/bindcom to binding.Bind.
@frrist frrist force-pushed the frrist/ucantone-binding-migration branch from 66f4009 to 1634476 Compare May 21, 2026 21:32
@frrist frrist requested a review from alanshaw May 21, 2026 21:32
@frrist frrist self-assigned this May 21, 2026
@frrist frrist merged commit 0f7fa19 into main May 21, 2026
5 checks passed
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.

1 participant