0.5.0: mobile apps and games positioning (README, site, og image, skills, CLI, MCP, adapters), MCP tools for subscriptions and catalog diff, tests, changelog
This commit is contained in:
parent
531eac5f21
commit
c6360812b8
51 changed files with 960 additions and 318 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// App-level App Store settings (idempotent), from apple.info in storebound.config.ts:
|
||||
// storebound apple appinfo [--dry]
|
||||
// - categories (primary + up to two game subcategories, secondary)
|
||||
// - categories (primary + up to two subcategories for games, secondary)
|
||||
// - age rating declaration: every content question NONE / false unless overridden in apple.info.ageRating
|
||||
// - content rights declaration
|
||||
// - price Free (USA base) and availability in every territory + new ones (when apple.info.free !== false)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// Register the bundle id (Certificates, Identifiers & Profiles) through the API. Idempotent.
|
||||
// storebound apple bundle [--name "My Game"] [--dry]
|
||||
// storebound apple bundle [--name "My App"] [--dry]
|
||||
// The App Store Connect app record itself can NOT be created through the API: do that in the web UI afterwards
|
||||
// (Apps > + > New App, pick this bundle id), see the appstore-first-release skill.
|
||||
import type { Ctx } from '../lib/ctx';
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import { ascClient, type J } from './asc';
|
|||
export async function run(ctx: Ctx): Promise<void> {
|
||||
const { config, root } = ctx.loaded;
|
||||
const answer = config.apple?.usesNonExemptEncryption;
|
||||
if (answer === undefined) throw new Error('apple.usesNonExemptEncryption is not set in storebound.config.ts. Decide it with the export-compliance skill (false only if the game uses no encryption beyond the OS); storebound never guesses it.');
|
||||
if (answer === undefined) throw new Error('apple.usesNonExemptEncryption is not set in storebound.config.ts. Decide it with the export-compliance skill (false only if the app uses no encryption beyond the OS); storebound never guesses it.');
|
||||
const dry = ctx.args.has('dry');
|
||||
const c = await ascClient(root, need(config.apple?.bundleId, 'apple.bundleId'), config.apple?.appId);
|
||||
const appId = await c.app();
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
// create: one test (v2 experiment, platform IOS) with one treatment per variant (named after the variant, at most 3)
|
||||
// and a treatment localization per App Store locale of the config. upload: the variant renders
|
||||
// (<renders>/<variant>/<lang>/ios69 ... from `storebound shots render --variant b`) into each treatment localization's
|
||||
// screenshot sets, MD5-idempotent like `apple screenshots`. start / stop change what players see (stop is final, a test
|
||||
// screenshot sets, MD5-idempotent like `apple screenshots`. start / stop change what users see (stop is final, a test
|
||||
// cannot be restarted) and ask first; they are not MCP tools. Google Play store listing experiments have no API: they
|
||||
// stay in Play Console (store-screenshots skill). Pure planners: cli/lib/ppo.ts.
|
||||
import { existsSync } from 'node:fs';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Crash and vitals health of the released game, read-only on both stores.
|
||||
// Crash and vitals health of the released app or game, read-only on both stores.
|
||||
// storebound health [--apple] [--play] [--days 7] [--json]
|
||||
// storebound health --weekly [--out .storebound/health] [--dry] also writes <date>.md (+ <date>.json for the next
|
||||
// comparison); --dry prints the report instead of writing it
|
||||
|
|
|
|||
19
cli/index.ts
19
cli/index.ts
|
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env bun
|
||||
// storebound: ship a mobile game to Google Play and the App Store from the terminal.
|
||||
// storebound: ship a mobile app or game to Google Play and the App Store from the terminal.
|
||||
// Run `storebound help` for the command list. Config: storebound.config.ts; credentials: env or .storebound/.
|
||||
import { parseArgs } from './lib/args';
|
||||
import { loadConfig } from './lib/config';
|
||||
|
|
@ -9,20 +9,22 @@ type Mod = { run(ctx: Ctx): Promise<void> };
|
|||
type Plain = { run(args: ReturnType<typeof parseArgs>): Promise<void> };
|
||||
/** Commands that work without a storebound.config.ts. */
|
||||
const PLAIN: Record<string, [() => Promise<Plain>, string]> = {
|
||||
'init': [() => import('./init'), 'copy the templates (config, listing, copy, privacy policy) into this project'],
|
||||
'init': [() => import('./init'), 'copy the templates (config, listing, copy, declarations, privacy policy) into this project; --profile app|game|subscription-app (default app)'],
|
||||
'install': [() => import('./install'), 'skills + MCP server for --agent claude|codex|cursor|copilot|windsurf|gemini|opencode'],
|
||||
'mcp': [async () => ({ run: async () => (await import('./mcp')).serve() }), 'stdio MCP server wrapping these commands (for any MCP-capable AI tool)'],
|
||||
'privacy-manifest': [() => import('./privacy-manifest'), 'iOS PrivacyInfo.xcprivacy + required-reason API + SDK manifest scan (--ios <path>)'],
|
||||
};
|
||||
const COMMANDS: Record<string, [() => Promise<Mod>, string]> = {
|
||||
'check': [() => import('./check'), 'validate config, copy files, data safety answers and products (offline); --aso keyword audit'],
|
||||
'check': [() => import('./check'), 'validate config, copy files, data safety answers, products, subscriptions and the app profile (offline); --aso keyword audit'],
|
||||
'validate': [() => import('./validate'), 'read-only store readiness report with ordered blockers (--apple / --play), plus local renders checks (--no-local skips); exit 1 on blockers'],
|
||||
'analytics': [() => import('./analytics'), 'setup (App Store report request) | snapshot (impressions, page views, installs, conversion -> .storebound/analytics) | compare (vs listing changes in git)'],
|
||||
'health': [() => import('./health'), 'crash / ANR vitals (Play) and diagnostics (App Store), read-only; --weekly writes a markdown report; exit 1 over a threshold'],
|
||||
'catalog': [() => import('./catalog'), 'diff: cross-store parity of products + subscriptions (missing / extra / mismatched, prices per region, offers); read-only, exit 1 on mismatches'],
|
||||
'prices': [() => import('./prices'), 'export | import a CSV of product x store x region prices (diff first, asks before writing; Apple future-dated changes)'],
|
||||
'reviews': [() => import('./reviews'), 'list | draft (local reply drafts in .storebound/replies) | send (approved drafts only, asks first)'],
|
||||
'whats-new': [() => import('./whats-new'), 'draft player-facing release notes from git log into the listing files (--since <tag>)'],
|
||||
'whats-new': [() => import('./whats-new'), 'draft user-facing release notes from git log into the listing files (--since <tag>)'],
|
||||
'play products': [() => import('./play/products'), 'one-time products: create / update, regional prices, activate'],
|
||||
'play subscriptions': [() => import('./play/subscriptions'), 'auto-renewable subscriptions: listings, base plan, regional prices, intro offer, activate (--csv prices sheet; asks first)'],
|
||||
'play listing': [() => import('./play/listing'), 'app details + title / short / full description per language'],
|
||||
'play images': [() => import('./play/images'), 'icon, feature graphic, phone / 7" / 10" screenshots per language; --variant <id>'],
|
||||
'play data-safety': [() => import('./play/data-safety'), 'Data safety form (CSV import through the API)'],
|
||||
|
|
@ -32,11 +34,12 @@ const COMMANDS: Record<string, [() => Promise<Mod>, string]> = {
|
|||
'play next-version-code': [() => import('./play/next-version-code'), 'next free versionCode (prints the number)'],
|
||||
'apple bundle': [() => import('./apple/bundle'), 'register the bundle id; finds the app record'],
|
||||
'apple iap': [() => import('./apple/iap'), 'in-app purchases, localizations, price schedules, availability'],
|
||||
'apple subscriptions': [() => import('./apple/subscriptions'), 'subscription groups, subscriptions, localizations, prices (equalized + overrides + --csv), intro offers, availability, review screenshot (asks first)'],
|
||||
'apple iap-review': [() => import('./apple/iap-review'), 'IAP review screenshots + product states'],
|
||||
'apple listing': [() => import('./apple/listing'), 'version, build, name / subtitle / description / keywords per locale'],
|
||||
'apple screenshots': [() => import('./apple/screenshots'), '6.9" + 6.5" (+ 13" iPad) screenshots per locale; --variant <id>'],
|
||||
'apple appinfo': [() => import('./apple/appinfo'), 'categories, age rating, content rights, Free price, territories'],
|
||||
'apple review-details': [() => import('./apple/review-details'), 'App Review contact + notes'],
|
||||
'apple review-details': [() => import('./apple/review-details'), 'App Review contact, demo account (from .storebound/, masked) + notes'],
|
||||
'apple status': [() => import('./apple/status'), 'versions, builds, IAPs, review submissions (--wait-review, --cancel-submission <id>)'],
|
||||
'apple previews': [() => import('./apple/previews'), 'app preview videos per locale (MD5-idempotent, poster frame time code); --dry'],
|
||||
'apple release': [() => import('./apple/release'), 'phased release on|pause|resume|complete, --manual-release (asks first)'],
|
||||
|
|
@ -50,13 +53,13 @@ const COMMANDS: Record<string, [() => Promise<Mod>, string]> = {
|
|||
'shots render': [() => import('./shots/render'), 'store screenshots + feature graphic in every size and language'],
|
||||
'shots jpeg': [() => import('./shots/jpeg'), 'JPEG q92 copies of the Play renders (4x faster uploads)'],
|
||||
'shots check': [() => import('./shots/check'), 'local store checks of the renders (size, alpha, counts, overflow) and folder frames; --variants, --json'],
|
||||
'shots record': [() => import('./shots/record'), 'gameplay clips for app previews: --source web (playwright video) | ios-sim (simctl recordVideo) | android-emu (screenrecord) | folder; --dry'],
|
||||
'shots record': [() => import('./shots/record'), 'app or gameplay clips for app previews: --source web (playwright video) | ios-sim (simctl recordVideo) | android-emu (screenrecord) | folder; --dry'],
|
||||
'shots video': [() => import('./shots/video'), 'App Store app previews (886x1920, 1200x1600) + YouTube promo video from the clips, captions, poster, store checks; --dry'],
|
||||
'shots gallery': [() => import('./shots/gallery'), 'review page <renders>/index.html: every language, size, scene and variant, issues highlighted'],
|
||||
};
|
||||
|
||||
function help(): void {
|
||||
console.log(`storebound · ship mobile games to Google Play and the App Store
|
||||
console.log(`storebound · take mobile apps and games from nothing to Submit for review on Google Play and the App Store
|
||||
|
||||
usage: storebound <command> [options]
|
||||
|
||||
|
|
@ -64,7 +67,7 @@ ${Object.entries(PLAIN).map(([k, [, d]]) => ` ${k.padEnd(25)} ${d}`).join('\n')
|
|||
${Object.entries(COMMANDS).map(([k, [, d]]) => ` ${k.padEnd(25)} ${d}`).join('\n')}
|
||||
|
||||
common options: --config <path> --dry (no writes) --only <ids> --yes (skip confirmations)
|
||||
credentials: PLAY_SERVICE_ACCOUNT, ASC_KEY_ID, ASC_ISSUER_ID, ASC_P8 (env or .storebound/credentials.json)
|
||||
credentials: PLAY_SERVICE_ACCOUNT, ASC_KEY_ID, ASC_ISSUER_ID, ASC_P8, REVIEW_DEMO_USER / REVIEW_DEMO_PASSWORD (env or .storebound/credentials.json)
|
||||
docs: README.md and the skills/ folder of the toolchain`);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Put the storebound skills and MCP server into a game project for one or more AI coding tools.
|
||||
// Put the storebound skills and MCP server into an app or game project for one or more AI coding tools.
|
||||
// storebound install --agent claude|codex|cursor|copilot|windsurf|gemini|opencode[,...] [--dir .] [--dry]
|
||||
// [--no-skills] [--no-mcp] [--command "bunx storebound"]
|
||||
// Skills are copied to the tool's skills folder (our own skill folders are updated, nothing else is touched). The MCP
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Crash and vitals health of a released game, as pure parts: request builders, response parsers, threshold findings
|
||||
// Crash and vitals health of a released app or game, as pure parts: request builders, response parsers, threshold findings
|
||||
// and the report. `storebound health` and `storebound validate` collect the data (read-only) and use these.
|
||||
//
|
||||
// Google Play Developer Reporting API v1beta1 (scope playdeveloperreporting; the service account needs "View app
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ export const REQUIRED_REASON_APIS: Record<string, { symbols: RegExp; reasons: st
|
|||
NSPrivacyAccessedAPICategoryUserDefaults: {
|
||||
symbols: /\b(NSUserDefaults|UserDefaults)\b/,
|
||||
reasons: ['CA92.1', '1C8F.1', 'C56D.1', 'AC6B.1'],
|
||||
note: 'CA92.1 = read / write data only this app uses (typical for game saves and settings)',
|
||||
note: 'CA92.1 = read / write data only this app uses (typical for app data, game saves and settings)',
|
||||
},
|
||||
NSPrivacyAccessedAPICategoryFileTimestamp: {
|
||||
symbols: /\b(creationDate|modificationDate|fileModificationDate|contentModificationDateKey|creationDateKey|NSFileCreationDate|NSFileModificationDate|getattrlist|fstatat|lstat)\b/,
|
||||
|
|
@ -28,7 +28,7 @@ export const REQUIRED_REASON_APIS: Record<string, { symbols: RegExp; reasons: st
|
|||
NSPrivacyAccessedAPICategoryActiveKeyboards: {
|
||||
symbols: /\bactiveInputModes\b/,
|
||||
reasons: ['3EC4.1', '54BD.1'],
|
||||
note: 'rare in games',
|
||||
note: 'rare in apps and games',
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ export function filterReviews(rs: Review[], o: { since?: string; unanswered?: bo
|
|||
/** File name of a draft: <store>-<review id>.md with unsafe characters replaced. */
|
||||
export const draftName = (r: Pick<Review, 'store' | 'id'>): string => `${r.store}-${r.id.replace(/[^A-Za-z0-9._-]/g, '_').slice(0, 120)}.md`;
|
||||
|
||||
export const REPLY_PLACEHOLDER = '<!-- Write the reply below. Plain text, the player\'s language. -->';
|
||||
export const REPLY_PLACEHOLDER = '<!-- Write the reply below. Plain text, the reviewer\'s language. -->';
|
||||
|
||||
/** A new draft: front matter (approved: false), the review as a quote, an empty "## Reply" section. */
|
||||
export function draftMarkdown(r: Review): string {
|
||||
|
|
@ -125,7 +125,7 @@ export function checkReply(reply: string, store: ReviewStore): ReplyIssue[] {
|
|||
if (store === 'play' && n > REPLY_LIMITS.play) e.push({ level: 'error', msg: `${n} > ${REPLY_LIMITS.play} characters (Google Play limit)` });
|
||||
if (store === 'apple' && n > REPLY_LIMITS.apple) e.push({ level: 'warn', msg: `${n} characters: App Store Connect is reported to stop at ${REPLY_LIMITS.apple}` });
|
||||
if (INCENTIVE.some(re => re.test(text))) e.push({ level: 'error', msg: 'offers something for a rating or asks to change / give stars: not allowed (no incentives, no rating manipulation)' });
|
||||
if (/[^@\s]+@[^@\s]+\.[a-z]{2,}/i.test(text)) e.push({ level: 'warn', msg: 'contains an email address: only your public support address, never a player\'s' });
|
||||
if (/[^@\s]+@[^@\s]+\.[a-z]{2,}/i.test(text)) e.push({ level: 'warn', msg: 'contains an email address: only your public support address, never a user\'s' });
|
||||
if (/(\+?\d[\d\s().-]{7,}\d)/.test(text)) e.push({ level: 'warn', msg: 'contains a phone-like number: no personal data in public replies' });
|
||||
if (/https?:\/\//i.test(text)) e.push({ level: 'warn', msg: 'contains a link: support pages only, no marketing' });
|
||||
if (/[A-Z]{6,}/.test(text) || /!{3,}/.test(text)) e.push({ level: 'warn', msg: 'shouting (caps / !!!): keep it calm' });
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// Player-facing release notes from commit subjects, and writing them into the two listing files. Pure.
|
||||
// The draft is a starting point for a human: commit messages are written for developers, notes are for players.
|
||||
// User-facing release notes from commit subjects, and writing them into the two listing files. Pure.
|
||||
// The draft is a starting point for a human: commit messages are written for developers, notes are for users.
|
||||
import { len, PLAY_LIMITS } from './copy';
|
||||
|
||||
export const NOTES_LIMITS = { play: PLAY_LIMITS.whatsNew, apple: 4000 } as const;
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ export const TOOLS: ToolDef[] = [
|
|||
props: { storefront: { type: 'string', description: 'App Store storefront for the cross-locale hint', default: 'US' } },
|
||||
args: i => ['--aso', ...opt('storefront', i.storefront)] },
|
||||
{ name: 'validate', title: 'Store readiness report', command: ['validate'], write: false, network: true,
|
||||
description: 'Read-only readiness report for App Store Connect and/or Google Play with ordered blockers (build, encryption, metadata, screenshots, review details, age rating, prices, IAPs, privacy URL, app-ads.txt, tracks, products).',
|
||||
description: 'Read-only readiness report for App Store Connect and/or Google Play with ordered blockers (build, encryption, metadata, screenshots, review details and demo account, age rating, prices, IAPs, subscriptions, privacy, delete-account and terms URLs, app-ads.txt, tracks, products, base plans).',
|
||||
props: { store: { type: 'string', enum: ['both', 'apple', 'play'], default: 'both' } },
|
||||
args: i => (i.store === 'apple' ? ['--apple'] : i.store === 'play' ? ['--play'] : []) },
|
||||
{ name: 'health', title: 'Crash and vitals health', command: ['health'], write: false, network: true,
|
||||
|
|
@ -60,6 +60,10 @@ export const TOOLS: ToolDef[] = [
|
|||
props: { store: { type: 'string', enum: ['apple', 'play'], description: 'Default: both' }, days: { type: 'integer', minimum: 1, maximum: 365, default: 14 },
|
||||
rating: { type: 'string', pattern: '^[1-5](,[1-5])*$', description: 'Only these star ratings, e.g. 1,2,3' } },
|
||||
args: i => [...opt('store', i.store), ...opt('days', i.days), ...opt('rating', i.rating)] },
|
||||
{ name: 'catalog_diff', title: 'Cross-store catalog parity', command: ['catalog', 'diff'], write: false, network: true,
|
||||
description: 'Read-only parity report: the products and subscriptions of the config against App Store Connect and Google Play (missing / extra items, type, billing period, level, US and override prices, localizations, offers) plus regions where the two stores price the same product differently (same currency, over the threshold).',
|
||||
props: { store: { type: 'string', enum: ['apple', 'play'] }, threshold: { type: 'integer', minimum: 0, maximum: 100, default: 10, description: 'Percent difference between the stores to report' }, json: { type: 'boolean', default: false } },
|
||||
args: i => [...opt('store', i.store), ...opt('threshold', i.threshold), ...flag('json', i.json)] },
|
||||
{ name: 'prices_diff', title: 'Price sheet diff', command: ['prices', 'import'], write: false, network: true,
|
||||
description: 'Read-only: compare the prices CSV (product, store, region, currency, price, start_date) with the current App Store and Google Play prices and print the diff table. Applying it is an owner-only terminal command (storebound prices import, asks first).',
|
||||
props: { csv: { type: 'string', description: 'CSV path (default prices.csv in the config, else store/prices.csv)' }, store: { type: 'string', enum: ['apple', 'play'] }, only, all: { type: 'boolean', default: false, description: 'Also list unchanged rows' } },
|
||||
|
|
@ -96,7 +100,7 @@ export const TOOLS: ToolDef[] = [
|
|||
required: ['ios'], args: i => [...opt('ios', i.ios), ...opt('sdk-dirs', i.sdk_dirs)] },
|
||||
|
||||
{ name: 'whats_new', title: 'Draft release notes', command: ['whats-new'], write: true, network: false, idempotent: true,
|
||||
description: 'Draft player-facing release notes from the git log since a tag; with dry_run false writes the draft into the listing files (local text only, nothing is sent to a store).',
|
||||
description: 'Draft user-facing release notes from the git log since a tag; with dry_run false writes the draft into the listing files (local text only, nothing is sent to a store).',
|
||||
props: { since: { type: 'string', description: 'Git tag or ref (default: latest tag)' }, lang: { type: 'string' }, all_languages: { type: 'boolean', default: false } },
|
||||
args: i => [...opt('since', i.since), ...opt('lang', i.lang), ...flag('all', i.all_languages)] },
|
||||
{ name: 'play_listing', title: 'Push Play listing text', command: ['play', 'listing'], write: true, network: true, idempotent: true,
|
||||
|
|
@ -108,6 +112,10 @@ export const TOOLS: ToolDef[] = [
|
|||
{ name: 'play_products', title: 'Sync Play one-time products', command: ['play', 'products'], write: true, network: true, idempotent: true,
|
||||
description: 'Create / update one-time products with regional prices and activate their purchase option.',
|
||||
props: { only }, args: i => opt('only', i.only) },
|
||||
{ name: 'play_subscriptions', title: 'Sync Play subscriptions', command: ['play', 'subscriptions'], write: true, network: true, idempotent: true,
|
||||
description: 'Auto-renewable subscriptions on Google Play from the config: listings per language (title, description, benefits), one auto-renewing base plan with regional prices (convertRegionPrices + overrides + optional prices CSV), activation, and the introductory offer for new subscribers. dry_run prints the plan. Without a terminal it creates only what is new; price changes of existing base plans are an owner terminal run.',
|
||||
props: { only, csv: { type: 'string', description: 'Prices CSV with rows for subscription ids' } },
|
||||
args: i => [...opt('only', i.only), ...opt('csv', i.csv)] },
|
||||
{ name: 'play_data_safety', title: 'Push Play Data safety', command: ['play', 'data-safety'], write: true, destructive: true, network: true, idempotent: true,
|
||||
description: 'Replace the whole Play Data safety form with the answers from the config (CSV import). dry_run prints the CSV.' },
|
||||
{ name: 'play_release_testing', title: 'Release to a Play testing track', command: ['play', 'release'], write: true, network: true,
|
||||
|
|
@ -120,6 +128,10 @@ export const TOOLS: ToolDef[] = [
|
|||
{ name: 'apple_iap', title: 'Sync App Store IAPs', command: ['apple', 'iap'], write: true, network: true, idempotent: true,
|
||||
description: 'Create missing in-app purchases, localizations, price schedules and availability. Never submits.',
|
||||
props: { only }, args: i => opt('only', i.only) },
|
||||
{ name: 'apple_subscriptions', title: 'Sync App Store subscriptions', command: ['apple', 'subscriptions'], write: true, network: true, idempotent: true,
|
||||
description: 'Auto-renewable subscriptions from the config: subscription groups and display names, subscriptions (period, level), localizations, availability, prices (USA price point + equalizations + overrides, optional prices CSV), introductory offers, review screenshot. dry_run prints the plan. Without a terminal it creates only what is new; price changes of existing subscriptions are an owner terminal run. Never submits.',
|
||||
props: { only, csv: { type: 'string', description: 'Prices CSV (product, store, region, currency, price, start_date) with rows for subscription ids' } },
|
||||
args: i => [...opt('only', i.only), ...opt('csv', i.csv)] },
|
||||
{ name: 'apple_iap_review', title: 'IAP review screenshots', command: ['apple', 'iap-review'], write: true, destructive: true, network: true, idempotent: true,
|
||||
description: 'Upload (replace when changed) the App Review screenshot of every in-app purchase. Never submits.' },
|
||||
{ name: 'apple_listing', title: 'Push App Store version + text', command: ['apple', 'listing'], write: true, network: true, idempotent: true,
|
||||
|
|
@ -132,7 +144,7 @@ export const TOOLS: ToolDef[] = [
|
|||
{ name: 'apple_appinfo', title: 'App Store app info', command: ['apple', 'appinfo'], write: true, network: true, idempotent: true,
|
||||
description: 'Categories, age rating declaration, content rights, Free price and availability (when missing).' },
|
||||
{ name: 'apple_review_details', title: 'App Review information', command: ['apple', 'review-details'], write: true, network: true, idempotent: true,
|
||||
description: 'App Review contact (from .storebound/credentials.json) and review notes from the config.' },
|
||||
description: 'App Review contact and, when reviewAccess.signInRequired, the demo account (both from .storebound/credentials.json or env, masked in the output), plus the review notes (apple.info.reviewNotes, sign-in instructions, where account deletion is).' },
|
||||
{ name: 'apple_encryption', title: 'Export compliance answer', command: ['apple', 'encryption'], write: true, network: true, idempotent: true,
|
||||
description: 'Answer export compliance for builds from apple.usesNonExemptEncryption in the config (never guesses).',
|
||||
props: { build: { type: 'string', description: 'Build number (default: every build without an answer)' } }, args: i => opt('build', i.build) },
|
||||
|
|
@ -141,7 +153,7 @@ export const TOOLS: ToolDef[] = [
|
|||
props: { action: { type: 'string', enum: ['on', 'pause'] }, version: { type: 'string' } }, required: ['action'],
|
||||
args: i => ['--phased', String(i.action), ...opt('version', i.version)] },
|
||||
{ name: 'shots_capture', title: 'Capture raw frames', command: ['shots', 'capture'], write: true, network: false, idempotent: true,
|
||||
description: 'Raw game frames per language into shots.frames from a web build (Playwright), the iOS Simulator (simctl), an Android emulator / device (adb) or a folder check. Local files only; a simulator it boots is shut down again, an emulator is never booted. dry_run lists the plan and the simctl / adb commands.',
|
||||
description: 'Raw app or game frames per language into shots.frames from a web build (Playwright), the iOS Simulator (simctl), an Android emulator / device (adb) or a folder check. Local files only; a simulator it boots is shut down again, an emulator is never booted. dry_run lists the plan and the simctl / adb commands.',
|
||||
props: { lang, only: { type: 'string', description: 'Comma-separated shot names' }, device: { type: 'string', enum: ['phone', 'tablet'] }, source },
|
||||
args: i => [...opt('lang', i.lang), ...opt('only', i.only), ...opt('device', i.device), ...opt('source', i.source)] },
|
||||
{ name: 'shots_render', title: 'Render store screenshots', command: ['shots', 'render'], write: true, network: false, idempotent: true,
|
||||
|
|
@ -152,8 +164,8 @@ export const TOOLS: ToolDef[] = [
|
|||
{ name: 'shots_gallery', title: 'Review gallery', command: ['shots', 'gallery'], write: true, network: false, idempotent: true,
|
||||
description: 'Write <renders>/index.html: one self-contained page with every language, size, scene, variant and app preview, store check issues highlighted. Open it in a browser to review before uploading.',
|
||||
props: { lang }, args: i => opt('lang', i.lang) },
|
||||
{ name: 'shots_record', title: 'Record gameplay clips', command: ['shots', 'record'], write: true, network: false, idempotent: true,
|
||||
description: 'Gameplay clips for app previews from shots.video.record: web build (Chromium screencast), iOS Simulator (simctl recordVideo), Android emulator / device (screenrecord, never booted) or a folder listing. Local files only.',
|
||||
{ name: 'shots_record', title: 'Record app or gameplay clips', command: ['shots', 'record'], write: true, network: false, idempotent: true,
|
||||
description: 'App or gameplay clips for app previews from shots.video.record: web build (Chromium screencast), iOS Simulator (simctl recordVideo), Android emulator / device (screenrecord, never booted) or a folder listing. Local files only.',
|
||||
props: { lang, only: { type: 'string', description: 'Comma-separated clip names' }, source },
|
||||
args: i => [...opt('lang', i.lang), ...opt('only', i.only), ...opt('source', i.source)] },
|
||||
{ name: 'shots_video', title: 'Cut app previews', command: ['shots', 'video'], write: true, network: false, idempotent: true,
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ export const UNSUPPORTED_PROTOCOL_VERSION = -32022;
|
|||
export const TOOLS_TTL_MS = 300_000;
|
||||
|
||||
export const INSTRUCTIONS = [
|
||||
'storebound ships mobile games to Google Play and the App Store.',
|
||||
'storebound takes mobile apps and games from nothing to Submit for review on Google Play and the App Store (app profiles: game, app, subscription-app).',
|
||||
'Write tools default to dry_run: show the dry run to the owner and only call again with dry_run false after they agree.',
|
||||
'Nothing here submits for review, releases, cancels, deletes or sends anything public (review replies, tester invitations, price changes, experiment starts): tell the owner which terminal command or console click does that.',
|
||||
'Credentials come only from env or .storebound/ in the project; never ask for keys in chat or write them into files.',
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ export async function run(ctx: Ctx): Promise<void> {
|
|||
if (!plan.send.length) { done(TAG, 'nothing to send'); return; }
|
||||
console.log(textTable(['store', 'review', 'chars', 'reply'], plan.send.map(d => [d.store, d.reviewId, [...d.reply].length, d.reply.replace(/\s+/g, ' ').slice(0, 70)])));
|
||||
if (a.has('dry')) { done(TAG, `${plan.send.length} reply(ies) would be sent (dry run)`); return; }
|
||||
if (!(await confirm(ctx, `Send ${plan.send.length} public reply(ies)? Players are notified and the replies show on the store.`))) return;
|
||||
if (!(await confirm(ctx, `Send ${plan.send.length} public reply(ies)? Users are notified and the replies show on the store.`))) return;
|
||||
const { config, root } = ctx.loaded;
|
||||
const c = plan.send.some(d => d.store === 'apple') ? await ascClient(root, config.apple!.bundleId, config.apple?.appId) : null;
|
||||
const play = plan.send.some(d => d.store === 'play') ? await playClient(root, config.play!.packageName) : null;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Draft player-facing release notes from the git log and write them into the listing files (text only; nothing is
|
||||
// Draft user-facing release notes from the git log and write them into the listing files (text only; nothing is
|
||||
// sent to a store). A human (or an agent with the whats-new skill) rewrites and translates before `play release` /
|
||||
// `apple listing` push them.
|
||||
// storebound whats-new [--since v1.1.0] [--lang en-US] [--all] [--hook "text"] [--dry]
|
||||
|
|
@ -23,7 +23,7 @@ export async function run(ctx: Ctx): Promise<void> {
|
|||
const range = since ? `${since}..HEAD` : 'HEAD';
|
||||
const subjects = git(['log', range, '--no-merges', '--format=%s'], root).split('\n').filter(Boolean);
|
||||
const items = noteItems(subjects);
|
||||
log('whats-new', `${subjects.length} commits since ${since || 'the first commit'} -> ${items.length} player-facing items`);
|
||||
log('whats-new', `${subjects.length} commits since ${since || 'the first commit'} -> ${items.length} user-facing items`);
|
||||
const hook = a.get('hook');
|
||||
const play = formatNotes(items, { hook, limit: NOTES_LIMITS.play });
|
||||
const apple = formatNotes(items, { hook, limit: NOTES_LIMITS.apple });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue