Skip to content

Debugging and validation ​

An ordinary Cordis plugin uses ordinary test tooling. Cover at least:

  1. strict TypeScript typecheck and lint;
  2. a real Cordis Context mounting required services and the entry;
  3. native dsh command/projection/tool behavior;
  4. exact Host invocation Agent identity and Remote HostKey + SessionRef isolation, including missing Agents, selection changes, detach, and disposal;
  5. pane/status/overlay/editor-extension definitions and render output;
  6. complete registration, listener, and timer cleanup on Fiber disposal;
  7. async callback abort, timeout, and late results;
  8. bounded UI at 20/40/80/120 columns.

Package gate:

sh
npm pack --dry-run

Install the real tarball into an empty directory, import its public entry, and verify exports, types, files, peer resolution, and absence of leaked workspace:, link:, or machine-local paths.

Install Host bundles into a dedicated profile; add TUI entries to a source composition (run(argv, { plugins })). Build and launch both processes, then accept startup, the primary workflow, narrow width, session switching, unload, and restart. TUI behavior needs real HTTP/WebSocket plus PTY evidence; shared renderer tests alone do not establish split workflow parity.

Preview · v0.1.7-rc.2