Skip to content

feat(cli): type headless scratch scripts - #549

Draft
pgherveou wants to merge 5 commits into
mainfrom
feat/headless-script-types
Draft

feat(cli): type headless scratch scripts#549
pgherveou wants to merge 5 commits into
mainfrom
feat/headless-script-types

Conversation

@pgherveou

@pgherveou pgherveou commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • generate a standalone declaration for the truapi, host, and assert
    globals injected into headless host scripts
  • copy the matching declaration beside each managed scratch script and reference
    it with a portable relative path
  • ship and verify the declaration in source packages and prebuilt CLI archives

Verification

  • cargo test -p truapi-host-cli
  • make cli-runner
  • cargo +nightly fmt --check --package truapi-host-cli
  • cargo +nightly clippy -p truapi-host-cli --all-targets --all-features -- -D warnings
  • regenerated truapi-dts.ts and script-types.d.ts with no diff
  • make e2e-cli-update
  • live Cargo-installed /script flow with Neovim diagnostics returning no errors

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