Anyone with a developer account publishes add-ons on the hub themselves; players find them in the app's Add-ons tab. Every add-on starts unverified, and Comms Array may later mark it verified or official. An add-on that isn't on the hub is a .zip the player installs by hand ("your own · unreviewed"). The add-on format itself is the agent's docs/addon-api.md (on this site: /dev/addons/reference).
Who publishes what
| Who | How | |
|---|---|---|
| A name | Whoever publishes it first (a free name, the manifest's), at most 10 per account. An admin can also grant a name to an account, or take it back | Your first publish |
| Publishing | The name's owner, with their publish token (Comms Array's own add-ons: its CI token) | POST /v1/addons/publish below |
| Beta → stable | The owner, at /me/developer (Comms Array's own: /admin/addons) | Promote / Move to beta |
| Tier | Only an admin, at /admin/addons | See "Tiers" |
| Held versions | An admin approves them at /admin/addons | See "Held for Comms Array's OK" |
| Withdraw | An admin | /admin/addons |
Publish tokens are the same ones engines use: make one at /me/developer (shown once; keep it in your CI's secrets, never in your code). One token publishes every add-on your account owns, and claims free names.
Tiers
The tier belongs to the name, and only an admin sets it; a manifest's tier is never read, Comms Array's own included. It is signed into every download, so the app shows exactly what the hub says.
| Tier | Means |
|---|---|
unverified | Where everything starts. Published by its maker; nobody at Comms Array has checked it. Players see it, labelled unverified, and the app asks them to confirm they trust whoever made it before it installs |
verified | Comms Array checked it and it seems legit. Not an endorsement, and not supported by Comms Array |
official | Comms Array's own |
Apps from before the unverified tier read any tier they don't know as official, so the hub lists and serves unverified add-ons only to apps that ask for them (?unverified=1, below).
Channels: stable and beta
Every version is on a channel, like the app's own builds. Comms Array asks for the channel its update setting is on: a player on stable sees only stable versions, a player on beta the newest of either.
- A publish lands on beta, or on stable when it asks for it (
?channel=stable) and isn't held. - The owner promotes a beta version to stable, or moves a stable one back to beta. Moving the newest stable version back gives stable players the one before it (their app offers it as an update).
- The operator can move any version back to beta (the kill switch), but promotes only his own add-ons.
Held for Comms Array's OK
Only for the tiers that carry Comms Array's check. A version of a verified or official add-on is held when it asks for a permission the add-on's newest stable version doesn't have (and its first version always is). A held version is published and on beta (beta players can test it), but it can't go to stable until an admin approves it at /admin/addons, which shows what's new. If it was published with ?channel=stable, approval puts it on stable at once; otherwise its developer promotes it as usual. Versions that ask for the same permissions or fewer are never held. Unverified add-ons, and Comms Array's own, are never held.
Publish
POST /v1/addons/publish[?channel=stable|beta]
Body: the add-on zip (Content-Type: application/zip, at most 50 MB). Authorization: Bearer <publish token>.
The hub checks the zip as the app does (the manifest rules in docs/addon-api.md), then:
- the name must be free (your publish claims it, at most 10 per account) or yours (
403"belongs to someone else" otherwise; Comms Array's token gets403for a developer's name); - the version must be numbers (
1.2.0, an optional-beta.1after) and newer than every version published before (409); - the package folder must not be another add-on's (
409).
200: {"ok": true, "name", "version", "sha256", "channel": "beta" | "stable", "held": bool}. 401 no token; 400 a bad zip or manifest (the reason is in the text); 429 more than 10 publishes an hour per account.
A CI step that publishes only when the version changed (GitHub Actions, PowerShell):
$live = (Invoke-RestMethod "https://hub.commsarray.com/v1/addons?api=1&channel=beta").addons |
Where-Object name -eq "myaddon"
if ($live.version -ne $version) {
curl --fail-with-body -sS -X POST "https://hub.commsarray.com/v1/addons/publish" `
-H "Authorization: Bearer $env:HUB_PUBLISH_TOKEN" -H "Content-Type: application/zip" `
--data-binary "@dist/myaddon-$version.zip"
}
Catalog and downloads (what Comms Array calls)
GET /v1/addons?api=1[&unverified=1][&channel=stable|beta]
The newest version of every listed add-on in the channel (stable is the default: only add-ons that have a stable version), sorted by title; unverified ones only with unverified=1: {"addons": [{"name", "package", "version", "title", "description", "author", "requires", "size", "sha256", "tier", "channel", "unlocked", "permissions", "depends"}]}. unlocked: false for an add-on that requires an account when the request isn't from a signed-in PC. Without ?api=1 (apps too old for add-on API v1) the list is empty. Any other channel is 400.
With both=1 (newer Comms Array; channel is then ignored) the list has every add-on that has any version, each once: the fields above for its newest version (what beta would list), plus "stable": the same fields for its newest stable version, or null when it has none yet. The app picks per add-on which one a player gets: each add-on follows the app's channel or is set to stable or beta on its own, and one with no stable version yet is offered as a beta.
GET /v1/addons/{name}/download?api=1[&unverified=1][&version=V][&channel=stable|beta]
The zip, with X-Addon-Signature: the hub's Ed25519 signature over {"kind": "addon", "name", "version", "sha256", "requires"}, plus "tier" when it isn't official. The version named, else the newest in the channel. 404 for an unknown or withdrawn add-on, an unverified one without unverified=1, or none in the channel; 401 / 403 for an account add-on without a signed-in PC.