CLI workspace for many apps and studios, credential profiles, release trains (release status / plan)
- storebound.workspace.json: app folders (globs), studios with accounts by credential profile, ignore list, the desktop's pairing overrides; ws init | list | status | check | validate | run | apps import | desktop export/import - credential profiles in ~/.storebound/credentials/<profile>.json or env, --account <profile> on any command - release status / release plan <version>, table or --json; MCP workspace_list, workspace_status, release_status, release_plan (read-only) - pairing rules (cli/lib/identity.ts), release lanes (cli/lib/train.ts) and the per-app status read (cli/lib/app-status.ts) shared with the desktop instead of copied - tests with sanitized fixtures, README, skills, CHANGELOG
This commit is contained in:
parent
02d90de77a
commit
7d70e58d76
26 changed files with 2220 additions and 292 deletions
101
README.md
101
README.md
|
|
@ -170,6 +170,9 @@ Read from environment variables, or from `.storebound/credentials.json` in your
|
|||
| `reviewContact` | (file only) App Review contact name / phone / email |
|
||||
| `reviewDemoAccount` / `REVIEW_DEMO_USER`, `REVIEW_DEMO_PASSWORD` | demo account for App Review (`reviewAccess.signInRequired`); never in the config or the repo, masked in logs |
|
||||
|
||||
Several store accounts on one machine: credential profiles (`~/.storebound/credentials/<profile>.json`, the same names)
|
||||
picked with `--account <profile>` or by a workspace ([Many apps and studios](#many-apps-and-studios)).
|
||||
|
||||
## Install for your AI tool
|
||||
|
||||
Every route gives the agent the same skills and the same MCP tools. Nothing here requires Claude: the skills are
|
||||
|
|
@ -304,6 +307,97 @@ run in the background with a log (`storebound shots render > .storebound/render.
|
|||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary><b>Many apps and release trains</b></summary>
|
||||
|
||||
| command | kind | what |
|
||||
|---|---|---|
|
||||
| `ws init` | local | find the app folders below and write `storebound.workspace.json` (globs like `games/*`) |
|
||||
| `ws list [--all]` | local | apps (folders + store-only apps), studios, accounts and whether each credential profile has its keys |
|
||||
| `ws status [--offline] [--apps a,b]` | API, read-only | portfolio table: every app x both stores (live / rollout % / next version), catalog parity, check; parallel |
|
||||
| `ws check`, `ws validate [--apps a,b]` | local / API, read-only | the offline check / the readiness report of every app in one table |
|
||||
| `ws run <command> --apps a,b \| --all [--apply]` | per command | any read command in every app; writes as dry runs unless `--apply`; never submit / release / rollout / send |
|
||||
| `ws apps import --account <profile>` | API, read-only + local cache | the apps a store account sees, paired with the folders (the desktop's rules) |
|
||||
| `ws desktop export [--out f \| --merge [--apply]]`, `ws desktop import` | local | the workspace to and from the desktop app's state (labels, never keys) |
|
||||
| `release status [--app a,b] [--versions]` | API, read-only | both stores on one train per version: build > testing > review > live > rollout % |
|
||||
| `release plan <version> [--app a]` | API, read-only | what is left for that version on each store, in fix order, with the owner's next step |
|
||||
|
||||
</details>
|
||||
|
||||
## Many apps and studios
|
||||
|
||||
A studio with twenty games, or a developer with apps under two store accounts, works from one folder above the app
|
||||
folders. `storebound ws init` writes `storebound.workspace.json`:
|
||||
|
||||
```json
|
||||
{
|
||||
"apps": ["games/*", { "path": "apps/notes", "apple": "solo-apple" }],
|
||||
"studios": [
|
||||
{ "name": "Acme Games", "color": "indigo", "apps": ["games/*"],
|
||||
"accounts": [{ "store": "apple", "profile": "acme-apple" }, { "store": "play", "profile": "acme-play" }] }
|
||||
],
|
||||
"accounts": [{ "store": "apple", "profile": "solo-apple", "label": "Solo" }],
|
||||
"ignore": ["games/old-*"],
|
||||
"overrides": { "pairs": [], "unpairs": [], "links": [], "appStudio": [] },
|
||||
"concurrency": 4
|
||||
}
|
||||
```
|
||||
|
||||
- **apps**: folders or globs (only folders with a `storebound.config.*` count; `node_modules` and dot folders are
|
||||
skipped). An object entry names the folder's own credential profiles.
|
||||
- **studios**: name, colour (the desktop's set), the store accounts and the app folders (globs) that belong to it.
|
||||
- **accounts**: store accounts without a studio. An account is a store and a **credential profile** name, never a key.
|
||||
- **ignore**: folder globs, `app:<store app key>` and `account:<profile>`, as in the desktop's ignore list.
|
||||
- **overrides**: the desktop's pairing corrections (`pairs`, `unpairs`, `links` of a store app to a folder,
|
||||
`appStudio`), with folders named by their path. A `storebound.workspace.ts` with `export default { ... }` works too.
|
||||
|
||||
Which keys an app uses: its own entry's profiles, else the single account of that store in its studio, else the
|
||||
single account of that store in the workspace, else the folder's own credentials (env or `.storebound/`).
|
||||
|
||||
**Credential profiles** keep many accounts apart on one machine: `~/.storebound/credentials/<profile>.json` with the
|
||||
same four names as `.storebound/credentials.json` (`PLAY_SERVICE_ACCOUNT`, `ASC_KEY_ID`, `ASC_ISSUER_ID`, `ASC_P8`;
|
||||
relative key paths are relative to that folder, which `STOREBOUND_CREDENTIALS_DIR` can move), or env
|
||||
`STOREBOUND_PROFILE_<NAME>_<KEY>` (for CI). Any command takes `--account <profile>`. `ws list` shows per account whether
|
||||
its profile has keys; no command prints a key.
|
||||
|
||||
`ws status`, `ws check`, `ws validate` and `ws run` read the apps a few at a time (`concurrency`, 1-8, or
|
||||
`--concurrency`), each app with its own keys handed to its child process only. `ws run` takes any read command and
|
||||
the MCP tool set; write commands get `--dry` unless `--apply`, and submit, release, rollout, send, start / stop,
|
||||
testers and `--yes` are refused: those stay with the owner in the app folder.
|
||||
|
||||
`ws apps import --account <profile>` lists the apps a store account sees (as `apps list`) into
|
||||
`.storebound/workspace/` and pairs them with the folders by the desktop's rules (`cli/lib/identity.ts`, the same code):
|
||||
a folder takes the store apps its config names, the remaining iOS and Android apps pair by id, close id or name,
|
||||
`unpairs` keep two apart, and the rest are store-only apps that `ws status` reads too.
|
||||
|
||||
**The desktop app** keeps the same model (studios, accounts, folders, overrides). `ws desktop import` turns its
|
||||
`state.json` (or `--state <file>`) into a workspace file and lists the credential profiles to create: the desktop's
|
||||
keychain is never read. `ws desktop export` prints the workspace as a desktop state (`--out <file>`), and
|
||||
`--merge --apply` adds it to the desktop's `state.json` while the app is closed (a backup is kept; nothing is
|
||||
removed; new accounts get their keys in the desktop's Accounts screen).
|
||||
|
||||
MCP: `workspace_list` (offline) and `workspace_status` (read-only).
|
||||
|
||||
## Release trains
|
||||
|
||||
One version, both stores, one track: **build > testing > review > live > rollout**. The CLI and the desktop's Releases
|
||||
tab share the code (`cli/lib/train.ts`, `cli/lib/portfolio.ts`), so both show the same stage for the same store state.
|
||||
|
||||
```
|
||||
$ storebound release status
|
||||
app version train App Store Google Play
|
||||
------ ------- ------- ---------------------- -----------------------------
|
||||
Puzzle 2.3.0 current rollout 20% (build 45) rollout 10% (build 230)
|
||||
Puzzle 2.4.0 next build testing (build 240, internal)
|
||||
```
|
||||
|
||||
`release plan <version>` lists what is left for that version on each store in fix order: config problems (`check`),
|
||||
the version on the store (how to create it when it is missing), store blockers (`validate`, while nothing is
|
||||
submitted), the next move and the warnings. Owner steps (submit for review, promote to production, release an approved
|
||||
version, raise or complete a rollout) are named with where the owner does them; storebound does not do them. A store
|
||||
it cannot read is "unknown", never "not there". Both commands work in an app folder (that app) and in a workspace
|
||||
(every app, or `--app a,b`); `--json` gives the structured result. MCP: `release_status`, `release_plan` (read-only).
|
||||
|
||||
## Store art
|
||||
|
||||
Screenshots and previews are one step of the journey, but the one that takes the longest by hand, so storebound
|
||||
|
|
@ -377,8 +471,8 @@ navigation.
|
|||
| `app-icons` | one artwork to every icon, adaptive / legacy launcher pitfalls |
|
||||
| `store-screenshots` | capture from any engine, copy, fonts, render, checks, gallery, variants, App Store product page tests, Play experiments, upload |
|
||||
| `app-previews` | app or gameplay clips, App Store previews, Play promo video, checks, upload |
|
||||
| `store-preflight` | run and read `check`, `check --aso`, `validate`, `privacy-manifest` before submitting |
|
||||
| `release-management` | updates: Apple phased + manual release, Play staged rollout, halt / pause (not a rollback), review wait |
|
||||
| `store-preflight` | run and read `check`, `check --aso`, `validate`, `privacy-manifest` and `release plan` before submitting; `ws check` / `ws validate` for many apps |
|
||||
| `release-management` | updates: release trains (`release status`, `release plan`), Apple phased + manual release, Play staged rollout, halt / pause (not a rollback), review wait |
|
||||
| `store-health` | crash / ANR vitals vs Play's bad behavior thresholds, App Store diagnostics, weekly report |
|
||||
| `review-replies` | reply drafts, tone, no incentives, store limits, the owner approves and sends |
|
||||
| `store-analytics` | App Store analytics reports, Play reports bucket, before / after listing changes |
|
||||
|
|
@ -396,7 +490,8 @@ per-request `_meta`, `resultType`, cacheable `tools/list`) and, on the same proc
|
|||
|
||||
- One tool per command. Read-only: `check`, `check_aso`, `validate`, `catalog_diff`, `health`, `reviews_list`, `prices_diff`,
|
||||
`analytics_compare`, `apple_status`, `apple_next_build`, `apple_testflight_status`, `apple_ppo_status`,
|
||||
`play_status`, `play_next_version_code`, `privacy_manifest`, `shots_check`. Local writes: `import_fastlane`, `whats_new`, `icons`,
|
||||
`play_status`, `play_next_version_code`, `privacy_manifest`, `shots_check`, `workspace_list`, `workspace_status`,
|
||||
`release_status`, `release_plan`. Local writes: `import_fastlane`, `whats_new`, `icons`,
|
||||
`health_report`, `reviews_draft`, `prices_export`, `analytics_snapshot`, `shots_capture`, `shots_render`,
|
||||
`shots_gallery`, `shots_record`, `shots_video`. Store writes: `play_listing`, `play_images`, `play_products`,
|
||||
`play_data_safety`, `play_subscriptions`, `play_release_testing`, `apple_bundle`, `apple_iap`, `apple_iap_review`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue