| 1 | # First-party plugin marketplace |
| 2 | |
| 3 | Codewhale includes an offline snapshot of the `codewhale` catalog in the same |
| 4 | marketplace store consumed by the terminal screen, recommendations, and |
| 5 | Runtime API. Browse the [public first-party marketplace](https://github.com/codewhale-hq/codewhale-plugin-marketplace) |
| 6 | for current entries and their prerequisites. Its contents can be newer than |
| 7 | the snapshot in your installed CLI. Browsing a catalog does not fetch or |
| 8 | execute a plugin. |
| 9 | |
| 10 | ```text |
| 11 | /plugin marketplace list |
| 12 | /plugin marketplace show codewhale |
| 13 | /plugin marketplace install codewhale whalewiki |
| 14 | /plugin show whalewiki |
| 15 | /plugin trust whalewiki |
| 16 | ``` |
| 17 | |
| 18 | The last command prints a review. Run its exact confirmation command containing |
| 19 | both full hashes, then `/plugin enable whalewiki`. Review the manifest and |
| 20 | capabilities before trust and enablement. Installation |
| 21 | uses the existing size-limited, traversal-safe installer and starts disabled |
| 22 | and untrusted. An update with changed bytes requires review again. Official |
| 23 | catalog provenance grants no execution or network permission. Removing the |
| 24 | catalog persists the choice and leaves installed plugins untouched; a locally |
| 25 | added catalog named `codewhale` takes precedence over the bundled snapshot. |
| 26 | |
| 27 | The bundle source uses a gzip tarball URL with `#path=plugins/whalewiki` (or |
| 28 | `#path=skills`). The fragment selects exactly one bundle inside the shared |
| 29 | repository archive. Only that subtree is installed. Empty paths, traversal, |
| 30 | ambiguous roots, links, oversized archives, and changed plugin identities are |
| 31 | rejected. The install receipt preserves the source, including its selector, |
| 32 | so `/plugin update` retains the same bundle selector and reviewed revision. |
| 33 | |
| 34 | ## Catalog freshness and pinned installs |
| 35 | |
| 36 | The bundled catalog is a build-time snapshot and can trail the public |
| 37 | marketplace. Use `/plugin marketplace show codewhale` to inspect the catalog |
| 38 | your session actually has. |
| 39 | |
| 40 | It does not poll the public repository. To use a separately reviewed catalog revision, obtain a local copy |
| 41 | of the public marketplace, inspect its changes, then add its local document: |
| 42 | |
| 43 | ```text |
| 44 | /plugin marketplace add codewhale /absolute/path/codewhale-plugin-marketplace/marketplace.json |
| 45 | /plugin marketplace show codewhale |
| 46 | ``` |
| 47 | |
| 48 | Re-adding the same document refreshes its saved contents. If `codewhale` already |
| 49 | names a different local source, remove that catalog first with |
| 50 | `/plugin marketplace remove codewhale`, then add the intended document. Catalog |
| 51 | removal does not remove installed plugins or change their trust. |
| 52 | |
| 53 | Repository entries in the bundled snapshot pin an immutable marketplace commit. |
| 54 | Remote entries keep their declared URL and any archive checksum. The current |
| 55 | public Computer Use entry pins a versioned `computer-use.tar.gz` asset and its |
| 56 | SHA-256; it does not follow GitHub's latest-release address. `/plugin update` |
| 57 | re-reads the installed bundle's recorded source, including its pin. It does not |
| 58 | select a new source from a refreshed catalog. |
| 59 | |
| 60 | ### Changing an installed pin |
| 61 | |
| 62 | For a user-scope bundle installed by Codewhale, retain its original source and |
| 63 | any local changes before replacing it: uninstall deletes the installed copy. |
| 64 | After refreshing and reviewing the catalog, this example selects its current |
| 65 | WhaleWiki entry: |
| 66 | |
| 67 | ```text |
| 68 | /plugin show whalewiki |
| 69 | /plugin disable whalewiki |
| 70 | /plugin uninstall whalewiki |
| 71 | /plugin marketplace install codewhale whalewiki |
| 72 | /plugin trust whalewiki |
| 73 | ``` |
| 74 | |
| 75 | Run the exact hash-bound confirmation printed by the new review, then |
| 76 | `/plugin enable whalewiki`. Do not apply this sequence to built-in or workspace |
| 77 | bundles: update and uninstall accept only user-scope installed bundles. A local |
| 78 | catalog's `path:` source records that local directory, so keep it available for |
| 79 | future `/plugin update` calls. A changed source still needs review and does not |
| 80 | silently inherit an earlier receipt. |
| 81 | |
| 82 | ## Computer Use across versions |
| 83 | |
| 84 | Current Codewhale installs `computer-use` from the catalog as an ordinary user |
| 85 | plugin, then reviews, trusts, and enables it. It no longer creates or discovers |
| 86 | an embedded built-in copy; any old built-in snapshots and receipts remain |
| 87 | intact, and a built-in receipt cannot authorize a downloaded bundle. |
| 88 | |
| 89 | Older CLI releases (such as `v0.10.2`) embedded an older built-in copy of |
| 90 | Computer Use. On those older releases, follow the |
| 91 | [direct MCP setup](https://github.com/codewhale-hq/codewhale-cu-plugin#codewhale-cli-setup) |
| 92 | (disabling any enabled built-in first) or upgrade Codewhale to install the |
| 93 | catalog bundle. Built-in bundles cannot be updated or uninstalled through the |
| 94 | user-plugin commands. |
| 95 | |
| 96 | Computer Use has its own [published releases](https://github.com/codewhale-hq/codewhale-cu-plugin/releases) |
| 97 | and [contribution guide](https://github.com/codewhale-hq/codewhale-cu-plugin/blob/main/CONTRIBUTING.md). |
| 98 | Install the native Mac helper separately using the |
| 99 | [setup guide](https://codewhale.net/computer-use) for system permissions and |
| 100 | Pause/Stop controls. A helper release, a plugin bundle and an Engine release |
| 101 | have separate versions; their presence alone does not qualify a combination. |
| 102 | |
| 103 | ## Chromewhale |
| 104 | |
| 105 | Chromewhale (listed as "Codewhale for Chrome") is in the catalog bundled with |
| 106 | Core from marketplace revision `ae3dd22` on, where its checks pass on macOS, |
| 107 | Linux and Windows. It is a developer preview: installing the plugin does not |
| 108 | install the browser side, so you load its bundled Chrome extension unpacked |
| 109 | yourself. It then reads and acts on the tab you are looking at, one granted |
| 110 | site at a time. Like every catalog entry, it installs disabled and untrusted |
| 111 | until you review it. |
| 112 | |
| 113 | ## Keeping the repositories current |
| 114 | |
| 115 | | Content | Authoritative source | Copies to check | |
| 116 | | --- | --- | --- | |
| 117 | | Catalog, WhaleWiki, Whalesong, Cloudflare Docs | `codewhale-hq/codewhale-plugin-marketplace` | Core catalog snapshot | |
| 118 | | Bundled skills | Core active catalog and `crates/tui/assets/skills` | Marketplace `skills` and `skills/upstream.json` | |
| 119 | | Computer Use | `codewhale-hq/codewhale-cu-plugin` | Versioned release archive and checksum in the catalog; no current runtime mirror | |
| 120 | |
| 121 | The `Marketplace connection` workflow validates the exact catalog revision on |
| 122 | catalog changes. Its weekly and manual runs compare the current public |
| 123 | marketplace, bundled snapshot, and skills. Drift fails |
| 124 | the check with a maintenance instruction; it does not rewrite user installs |
| 125 | or grant new permissions. It uses read-only repository access. |
| 126 | |
| 127 | For each intentional update, review the upstream diff, synchronize the |
| 128 | source-owned copies, and run the marketplace checks: |
| 129 | |
| 130 | ```sh |
| 131 | # From codewhale-plugin-marketplace, with sibling source checkouts: |
| 132 | # After committing canonical skill changes, when intentionally updating skills: |
| 133 | npm run sync:skills |
| 134 | npm run check -- --core ../codewhale |
| 135 | npm test && npm run check:web |
| 136 | ``` |
| 137 | |
| 138 | Commit the reviewed marketplace changes, then update Core from that committed |
| 139 | revision (the generator never copies an uncommitted marketplace document): |
| 140 | |
| 141 | ```sh |
| 142 | # From codewhale: |
| 143 | python3 scripts/sync-marketplace.py --marketplace ../codewhale-plugin-marketplace |
| 144 | python3 scripts/sync-marketplace.py --marketplace ../codewhale-plugin-marketplace --check |
| 145 | npm test && npm run check:web |
| 146 | ``` |
| 147 | |
| 148 | Review the generated snapshot and rebuild Core. Its provenance records the |
| 149 | exact marketplace commit. Local bundle URLs pin that immutable revision; remote |
| 150 | entries retain their declared source. Remote archives require a version, SHA-256 |
| 151 | and an explicit host OS filter. A DSH npm archive can omit the filter when its |
| 152 | canonical URL, version and digest match an admitted Engine intake pin whose |
| 153 | package manifest declares no OS filter. The snapshot preserves cost-meter’s |
| 154 | declared macOS, Linux and Windows list. Host eligibility describes where a |
| 155 | package can be considered for installation. Activation, native dependencies and |
| 156 | client panels have separate [qualification results](DSH_COMPATIBILITY.md). |
| 157 | |
| 158 | Updating the bundled catalog requires a |
| 159 | new Core snapshot; users may explicitly add a reviewed local catalog without |
| 160 | rebuilding Core. Neither change retargets an existing pinned install. Push the |
| 161 | reviewed marketplace revision before publishing a Core release that references it. Hosted CI must be green for the |
| 162 | actual published revisions; local checks do not prove a public URL works. |
| 163 | |
| 164 | Computer Use source and checks belong to its canonical repository. Publish its |
| 165 | qualified `computer-use.tar.gz` release asset before publishing a catalog that |
| 166 | references that address. Do not copy its runtime or native helper into Core. |
| 167 | |
| 168 | Skill wording changes also need behavioral evaluation before claiming better |
| 169 | outcomes. See [Skill evaluation](SKILL_EVALUATION.md). |
| 170 |