Document standalone CLI installation and host discovery

This commit is contained in:
Peter Willemsen
2026-10-21 12:31:05 +00:00
parent b8fda81e00
commit 34fec292ba
2 changed files with 50 additions and 0 deletions
@@ -0,0 +1,48 @@
# Standalone extension development
Extension source, dependencies, tests, releases, and agent instructions belong in each extension repository. Updating an extension does not require rebuilding or publishing the host app unless the documented bridge contract itself changes.
- RSX matching and quote generation: [isa-match-rsx-to-quote](https://git.isawarden.com/ISAWarden/isa-match-rsx-to-quote).
- Generic starter and worker example: [hello-world-extension](https://git.isawarden.com/peter/hello-world-extension). The monorepo keeps its Hello World host-compatibility example; the standalone repository is a self-contained template.
- Shared agent skills: [extension-skills](https://git.isawarden.com/ISAWarden/extension-skills), intentionally public.
## Install shared skills
From the monorepo, install the CLI once:
```bash
cargo install --path chat-ui-3/extensions/isa-ext --locked
```
From a standalone extension root:
```bash
isa-ext update-skill
```
The standalone repositories also bundle a pinned CLI and manifest crate under `tools/`, so no monorepo checkout is needed for builds or skill installation:
```bash
npm run isa-ext -- update-skill
npm test
npm run build
```
The command fetches `https://git.isawarden.com/ISAWarden/extension-skills`, reads its `skills/<name>/SKILL.md` folders, and installs them into `.agents/skills`. It preserves unrelated skills and refuses to overwrite locally changed managed files. Review the downloaded instructions and commit the snapshot when adopting an update. The public source must never contain credentials or private customer data.
The `isa-extension-development` skill includes a versioned specification snapshot for bridge contracts, styling, persistence, workers, and packaging. The `isa-extension-ui-control` skill covers native app interaction through the host's current selector automation workflow. Keep project-specific RSX behavior and validation instructions in that project's `AGENTS.md`; shared skills remain generic.
## Locate the optional native host
```bash
isa-ext find-monorepo
isa-ext find-monorepo --monorepo /absolute/path/to/monorepo
```
Discovery checks ancestor and adjacent directories for a valid host checkout. `ISA_WARDEN_MONOREPO` provides an explicit override. Multiple matching adjacent checkouts require explicit selection. If none is found, the UI-control skill asks for the location; it does not require a host checkout for extension build or unit tests.
Use the discovered checkout's `.agents/skills/control-chat-ui/SKILL.md` to install/start the native automation build. Mount the standalone project through the app's developer-extension folder picker, then select it by manifest ID. Native folder pickers and permission prompts require user interaction. Only mounted developer extensions expose automation contexts; marketplace installations do not. Stop the app session after validation and report any untested host interactions.
## Maintain independent releases
Keep local SDK/theme/packaging snapshots pinned. Update them deliberately when adopting a host contract change and rerun the extension's complete package command and relevant tests. Do not add sibling-monorepo imports or packaging paths. Publish extension changes only to their own repository; host compatibility tests should exercise the generic local example rather than depending on an RSX application checkout.