Contract¶
This page states the repository's contract in full. The README has the same five lines. Where two repositories meet, each names the other, and the boundary holds in code: this repository imports only what the other publishes.
For¶
Google Workspace in OpenCode, for a person or a team who works there and for the OpenCode host we run. Google Workspace is Gmail, Calendar, Drive, Docs, Sheets, Tasks and every other service in the pinned gws 0.22.5 catalog. The plugin puts them in the agent's hands, keeps several Google accounts apart by alias, and makes every change it owns a dry-run plan followed by one matching commit. The Gmail mailbox tools are Google's own Gmail MCP server, passed through for each alias; the rest run on the pinned gws executable.
Not for¶
The OpenCode host's own code, the plugin contract or our managed deployment.
- The OpenCode host is OpenCode's. OpenCode holds the host, the sessions and the enforcement of the permission rules; the plugin declares its actions through the contract. The plugin registers Google's sign-in on the integration OpenCode gives each Gmail MCP server.
- The plugin contract is
plugin-contract's.plugin-contractholds the manifest language, the permission model and the conformance kit. This repository implements that contract and does not change it. - Our managed deployment is
deploy's. This repository publishes release artefacts; the OpenCode host that installs a release tag pins it.
Publishes¶
GitHub Releases are the only publication. There is no npm package. A release is a tag vX.Y.Z on master, after the commit's CI passed, and the tag names package.json's version. A consumer installs the tag:
Each release carries:
| Artefact | Version or schema |
|---|---|
we-the-rebel-alliance-gws-plugin-X.Y.Z.tgz | the packed package @we-the-rebel-alliance/gws-plugin at X.Y.Z, matching the tag vX.Y.Z, with the committed dist/, the skills, the assets, the manifest and the licences |
conformance.json | the plugin-contract v0 conformance report |
SHA256SUMS | the SHA-256 of every other file in the release |
gws-darwin-arm64.gz, gws-darwin-x64.gz, gws-linux-arm64-gnu.gz, gws-linux-x64-gnu.gz | the gws 0.22.5 executable for each target |
native.json | the native release manifest, schema 1, naming the release's tag |
native-provenance.json | the gws provenance record, naming its upstream SLSA provenance v1 attestation and the verified digests |
The release workflow packs these files from the tagged commit and writes native.json for the tag it releases.
Consumes¶
| What | From | Pin |
|---|---|---|
@we-the-rebel-alliance/plugin-contract | plugin-contract | v0.2.0 in package.json, commit e54279fc29ab93ccec0bf276beb7767dc7262dd5 in package-lock.json |
| OpenCode | OpenCode | >=2.4.1 <2.5.0, through @opencode/plugin 2.4.1 and @opencode/sdk 2.4.1 |
| Google's Gmail MCP server | API v1 at https://gmailmcp.googleapis.com/mcp/v1 | |
| Google Workspace APIs | the operations and their API versions in the pinned gws 0.22.5 catalog | |
the gws executable | googleworkspace/cli | 0.22.5 at commit 705fb0ecac6f4249679958f6325b809b63fdde17, with the archive and binary SHA-256 digests in native/provenance.json |
The release manifest in manifest/native.json carries the gzip digest and the executable digest for each release target.
Run by¶
Today a person's own OpenCode installs it from the release tag. The managed service's host holds its curated pin until it moves to this repository's v0.0.0 line (app#8745). A host loads the committed dist/ and needs no build step. deploy does not run this plugin.