growth extras: MCP safe tools, README and CHANGELOG, socialMedia age rating defaults, regenerated adapters and API coverage
This commit is contained in:
parent
743fd0ddc6
commit
ce94cbaef7
13 changed files with 159 additions and 22 deletions
|
|
@ -112,11 +112,13 @@ export const WRAPPED: { apple: Record<string, string>; play: Record<string, stri
|
|||
'builds_updateInstance': 'apple/encryption lib/build-ops',
|
||||
'bundleIdCapabilities_createInstance': 'lib/signing',
|
||||
'bundleIds_createInstance': 'apple/bundle',
|
||||
'bundleIds_getCollection': 'apple/bundle apple/signing',
|
||||
'bundleIds_profiles_getToManyRelated': 'apple/signing',
|
||||
'bundleIds_getCollection': 'apple/adhoc apple/bundle apple/signing',
|
||||
'bundleIds_profiles_getToManyRelated': 'apple/adhoc apple/signing',
|
||||
'certificates_createInstance': 'apple/signing lib/signing',
|
||||
'certificates_getCollection': 'apple/signing',
|
||||
'certificates_getCollection': 'apple/adhoc apple/signing',
|
||||
'customerReviewResponses_createInstance': 'lib/reviews',
|
||||
'devices_createInstance': 'apple/adhoc',
|
||||
'devices_getCollection': 'apple/adhoc',
|
||||
'endAppAvailabilityPreOrders_createInstance': 'lib/offers',
|
||||
'financeReports_getCollection': 'lib/reports',
|
||||
'inAppPurchaseAppStoreReviewScreenshots_createInstance': 'apple/iap-review',
|
||||
|
|
@ -142,10 +144,11 @@ export const WRAPPED: { apple: Record<string, string>; play: Record<string, stri
|
|||
'inAppPurchasesV2_inAppPurchaseAvailability_getToOneRelated': 'apple/iap',
|
||||
'inAppPurchasesV2_inAppPurchaseLocalizations_getToManyRelated': 'apple/iap catalog',
|
||||
'inAppPurchasesV2_offerCodes_getToManyRelated': 'apple/offer-codes',
|
||||
'inAppPurchasesV2_pricePoints_getToManyRelated': 'apple/iap apple/offer-codes prices',
|
||||
'inAppPurchasesV2_pricePoints_getToManyRelated': 'apple/iap apple/offer-codes prices prices-ppp',
|
||||
'inAppPurchasesV2_versions_getToManyRelated': 'apple/iap-submit',
|
||||
'profiles_certificates_getToManyRelationship': 'apple/signing',
|
||||
'profiles_createInstance': 'lib/signing',
|
||||
'profiles_createInstance': 'apple/adhoc lib/signing',
|
||||
'profiles_devices_getToManyRelated': 'apple/adhoc',
|
||||
'profiles_getInstance': 'apple/signing',
|
||||
'promotedPurchases_createInstance': 'lib/offers',
|
||||
'promotedPurchases_updateInstance': 'lib/offers',
|
||||
|
|
@ -205,7 +208,8 @@ export const WRAPPED: { apple: Record<string, string>; play: Record<string, stri
|
|||
'androidpublisher.edits.tracks.list': 'play/next-version-code play/status validate',
|
||||
'androidpublisher.edits.tracks.update': 'play/release play/rollout play/upload',
|
||||
'androidpublisher.edits.validate': 'play/client',
|
||||
'androidpublisher.monetization.convertRegionPrices': 'play/products play/subscriptions prices',
|
||||
'androidpublisher.generatedapks.list': 'web',
|
||||
'androidpublisher.monetization.convertRegionPrices': 'play/products play/subscriptions prices prices-ppp',
|
||||
'androidpublisher.monetization.onetimeproducts.get': 'prices',
|
||||
'androidpublisher.monetization.onetimeproducts.list': 'play/products',
|
||||
'androidpublisher.monetization.onetimeproducts.patch': 'play/products prices',
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ export const AGE_RATING_NONE: Record<string, string | boolean | null> = {
|
|||
advertising: false, ageAssurance: false, alcoholTobaccoOrDrugUseOrReferences: 'NONE', contests: 'NONE', gambling: false,
|
||||
gamblingSimulated: 'NONE', gunsOrOtherWeapons: 'NONE', healthOrWellnessTopics: false, horrorOrFearThemes: 'NONE', lootBox: false,
|
||||
matureOrSuggestiveThemes: 'NONE', medicalOrTreatmentInformation: 'NONE', messagingAndChat: false, parentalControls: false,
|
||||
profanityOrCrudeHumor: 'NONE', sexualContentGraphicAndNudity: 'NONE', sexualContentOrNudity: 'NONE', unrestrictedWebAccess: false,
|
||||
profanityOrCrudeHumor: 'NONE', socialMedia: false, socialMediaAgeRestricted: false, sexualContentGraphicAndNudity: 'NONE', sexualContentOrNudity: 'NONE', unrestrictedWebAccess: false,
|
||||
userGeneratedContent: false, violenceCartoonOrFantasy: 'NONE', violenceRealistic: 'NONE',
|
||||
violenceRealisticProlongedGraphicOrSadistic: 'NONE', kidsAgeBand: null,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ function appRecord(config: ShipConfig): Answer[] {
|
|||
}
|
||||
|
||||
/** Every question of the API's ageRatingDeclarations (checked October 2026); appinfo.ts AGE_RATING_NONE plus the newer ones. */
|
||||
export const AGE_RATING_API = [...Object.keys(AGE_RATING_NONE), 'socialMedia', 'socialMediaAgeRestricted'];
|
||||
export const AGE_RATING_API = [...new Set([...Object.keys(AGE_RATING_NONE), 'socialMedia', 'socialMediaAgeRestricted'])];
|
||||
|
||||
function ageRating(config: ShipConfig): Answer[] {
|
||||
const o = config.apple?.info?.ageRating;
|
||||
|
|
|
|||
|
|
@ -73,6 +73,37 @@ export const TOOLS: ToolDef[] = [
|
|||
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' } },
|
||||
args: i => [...opt('csv', i.csv), ...opt('store', i.store), ...opt('only', i.only), ...flag('all', i.all), '--dry'] },
|
||||
{ name: 'prices_ppp', title: 'Purchasing power price sheet', command: ['prices', 'ppp'], write: true, network: true, idempotent: true,
|
||||
description: 'Proposes per-region prices adjusted for purchasing power (bundled World Bank ICP PPP factors, CC BY 4.0, or the Big Mac index / a CSV), clamped to floor..ceiling of the US price and snapped to store price points, and writes a price sheet in the prices import format (default store/prices-ppp.csv) with a diff against the current store prices. Writes only that local file; nothing goes to a store (prices import does, after the owner confirms in a terminal).',
|
||||
props: { base: { type: 'number', minimum: 0.01, description: 'USD base price for every selected product (default: each product\'s usd)' }, source: { type: 'string', enum: ['worldbank', 'bigmac', 'file'] },
|
||||
store: { type: 'string', enum: ['apple', 'play'] }, only, floor: { type: 'number', minimum: 0.01, maximum: 5 }, ceiling: { type: 'number', minimum: 0.01, maximum: 5 },
|
||||
offline: { type: 'boolean', default: false, description: 'No store reads: snap with the local ending rules only' } },
|
||||
args: i => [...opt('base', i.base), ...opt('source', i.source), ...opt('store', i.store), ...opt('only', i.only), ...opt('floor', i.floor), ...opt('ceiling', i.ceiling), ...flag('offline', i.offline)] },
|
||||
{ name: 'ads_apple_status', title: 'Apple Ads access', command: ['ads', 'apple', 'status'], write: false, network: true,
|
||||
description: 'Read-only: does the Apple Ads API key work, which ad accounts and roles it has, and which one storebound uses.' },
|
||||
{ name: 'ads_apple_campaigns', title: 'Apple Ads campaigns', command: ['ads', 'apple', 'campaigns'], write: false, network: true,
|
||||
description: 'Read-only list of Apple Ads campaigns (status, daily budget, countries, app) for the config\'s app, or every app with all.',
|
||||
props: { all: { type: 'boolean', default: false } }, args: i => flag('all', i.all) },
|
||||
{ name: 'ads_apple_report', title: 'Apple Ads report', command: ['ads', 'apple', 'report'], write: false, network: true,
|
||||
description: 'Read-only Apple Ads report per campaign or keyword: spend, impressions, taps, installs, TTR, conversion rate, CPA, average CPT and totals. Bids, budgets and pausing are owner decisions in a terminal, never here.',
|
||||
props: { days: { type: 'integer', minimum: 1, maximum: 90, default: 7 }, by: { type: 'string', enum: ['campaign', 'keyword'], default: 'campaign' },
|
||||
campaign: { type: 'string', pattern: '^\\d{1,20}$' }, all: { type: 'boolean', default: false } },
|
||||
args: i => [...opt('days', i.days), ...opt('by', i.by), ...opt('campaign', i.campaign), ...flag('all', i.all)] },
|
||||
{ name: 'web_init', title: 'Universal / app links files', command: ['web', 'init'], write: true, network: false, idempotent: true,
|
||||
description: 'Writes apple-app-site-association, .well-known/assetlinks.json, the Smart App Banner tag and optionally a minimal landing page (store badges, privacy and support links) into a local folder (default web/) from the config. Local files only; deploying them is the owner\'s step.',
|
||||
props: { out: { type: 'string', pattern: '^[A-Za-z0-9._/-]{1,200}$', description: 'Output folder (default web.out or web)' }, landing: { type: 'boolean', default: false } },
|
||||
args: i => [...opt('out', i.out), ...flag('landing', i.landing)] },
|
||||
{ name: 'web_check', title: 'Check the live link files', command: ['web', 'check'], write: false, network: true,
|
||||
description: 'Read-only check of https://<domain>/.well-known/apple-app-site-association and assetlinks.json: HTTP 200 without redirects, JSON content type, valid JSON, team / bundle id and package / signing fingerprint match the config.',
|
||||
props: { domain: { type: 'string', pattern: '^[a-z0-9.-]{1,253}$', description: 'Default: web.domain of the config' } }, args: i => (i.domain ? [String(i.domain)] : []) },
|
||||
{ name: 'apple_adhoc_devices', title: 'Registered test devices', command: ['apple', 'adhoc', 'devices'], write: false, network: true,
|
||||
description: 'Read-only list of the devices registered for ad-hoc / development builds (UDIDs masked) and the yearly slots used. Registering devices stays a terminal command.',
|
||||
props: { platform: { type: 'string', enum: ['IOS', 'MAC_OS'] } }, args: i => opt('platform', i.platform) },
|
||||
{ name: 'apple_adhoc_options', title: 'Ad-hoc ExportOptions.plist', command: ['apple', 'adhoc', 'options'], write: true, network: false, idempotent: true,
|
||||
description: 'Writes an ExportOptions.plist for an ad-hoc / release-testing export (method, team id, signing style) to build/ExportOptions.plist. Local file only.',
|
||||
props: { method: { type: 'string', enum: ['release-testing', 'ad-hoc'] } }, args: i => opt('method', i.method) },
|
||||
{ name: 'revenuecat_diff', title: 'RevenueCat parity', command: ['revenuecat', 'diff'], write: false, network: true,
|
||||
description: 'Read-only parity report between the config catalog and the RevenueCat project: products, entitlements and their products, the default offering and its packages. Syncing is a terminal command the owner confirms.' },
|
||||
{ name: 'prices_export', title: 'Export prices to CSV', command: ['prices', 'export'], write: true, network: true, idempotent: true,
|
||||
description: 'Read the current prices of every product on both stores and write them as the prices CSV (local file only; Apple equalized prices with with_automatic, marked kind=auto). dry_run prints the CSV.',
|
||||
props: { out: { type: 'string', description: 'CSV path' }, store: { type: 'string', enum: ['apple', 'play'] }, only, with_automatic: { type: 'boolean', default: false } },
|
||||
|
|
@ -365,7 +396,7 @@ export function validateInput(t: ToolDef, input: unknown): string[] {
|
|||
for (const [k, v] of Object.entries(i)) {
|
||||
const p = s.properties[k];
|
||||
if (!p) { e.push(`${k}: unknown argument`); continue; }
|
||||
const ok = p.type === 'integer' ? Number.isInteger(v) : p.type === 'boolean' ? typeof v === 'boolean' : p.type === 'string' ? typeof v === 'string'
|
||||
const ok = p.type === 'integer' ? Number.isInteger(v) : p.type === 'number' ? typeof v === 'number' && Number.isFinite(v) : p.type === 'boolean' ? typeof v === 'boolean' : p.type === 'string' ? typeof v === 'string'
|
||||
: p.type === 'object' ? typeof v === 'object' && v !== null && !Array.isArray(v) && Object.entries(v).every(([pk, pv]) => /^[A-Za-z][A-Za-z0-9_.[\]+-]{0,100}$/.test(pk) && ['string', 'number', 'boolean'].includes(typeof pv) && !/[\n\r]/.test(String(pv)))
|
||||
: true;
|
||||
if (!ok) { e.push(`${k}: must be ${p.type === 'object' ? 'an object of name -> string / number / boolean' : p.type}`); continue; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue