flows, listing translate, scan 2.2 + --originality, prices export with subscriptions, site sections
- storebound flow list|validate|run: repo-local workflows (store/workflows/*.yml, storebound.workflows.*), writes dry unless --apply, owner steps never run, --from / --resume; init templates for app and game; MCP flow_list + dry flow_run; release-flows skill - storebound listing translate|check|reviewed: per-language listing drafts with store limits and keyword rules, agent or --translate hook, marked until reviewed; MCP listing_translate / listing_check; listing-localization skill - scan: Apple 2.2 beta/demo/test wording rule; scan --originality [--against] - prices export includes subscriptions; prices import skips their rows - site: rejection scan section, Desktop app section with fixture-mode screenshots, Everything else grid, FAQ 4.3 answer - README, CHANGELOG, adapters, API tables
This commit is contained in:
parent
e44897ca4e
commit
526dfd3b09
45 changed files with 2176 additions and 53 deletions
19
cli/scan.ts
19
cli/scan.ts
|
|
@ -1,6 +1,8 @@
|
|||
// Offline, read-only scan of the project itself for App Store and Google Play rejection risks, before you submit.
|
||||
// storebound scan [--dir <project>] [--config <file>] [--store apple|play] [--json] [--no-declarations]
|
||||
// storebound scan --write also write the detected dataSafety / appPrivacy answers into the config
|
||||
// storebound scan --originality [--against <folders>] [--threshold 0.7] also the 4.3 / Play repetitive content
|
||||
// check against your other apps (storebound originality; folders default to originality.against in the config)
|
||||
// Reads the project files (Xcode project, Info.plist, entitlements, privacy manifests, Podfile.lock, Package.resolved,
|
||||
// Gradle files, AndroidManifest.xml and a local build's merged manifest, res/xml and strings.xml, CMake / ndk-build
|
||||
// files, package.json, app.json, capacitor.config, pubspec, Unity and Godot settings and ProjectVersion.txt), the
|
||||
|
|
@ -9,12 +11,13 @@
|
|||
// answers as a diff against the config. Nothing is written without --write (and --dry always wins). No network.
|
||||
// Exit 1 while an open blocker is left.
|
||||
import { existsSync, readFileSync, writeFileSync } from 'node:fs';
|
||||
import { dirname, join, resolve } from 'node:path';
|
||||
import { dirname, join, relative, resolve } from 'node:path';
|
||||
import type { Args } from './lib/args';
|
||||
import { CONFIG_NAMES } from './lib/config';
|
||||
import { log, printJson, warn } from './lib/log';
|
||||
import { upsertBlock } from './lib/scan/config-edit';
|
||||
import { formatScan, runScan } from './lib/scan';
|
||||
import { addOriginality, formatScan, runScan } from './lib/scan';
|
||||
import { compareAgainst } from './originality';
|
||||
|
||||
/** Project folder: --dir, else the folder of the nearest storebound.config.* above the working directory, else it. */
|
||||
function projectDir(args: Args): string {
|
||||
|
|
@ -28,7 +31,17 @@ function projectDir(args: Args): string {
|
|||
export async function run(args: Args): Promise<void> {
|
||||
const dir = projectDir(args);
|
||||
if (!existsSync(dir)) throw new Error(`${dir} does not exist`);
|
||||
const { report, configPath } = await runScan(dir, { config: args.get('config') });
|
||||
const { report, configPath, config } = await runScan(dir, { config: args.get('config') });
|
||||
if (args.has('originality')) {
|
||||
if (!config || !configPath) report.originality = { error: 'no storebound.config.ts loaded in this project' };
|
||||
else {
|
||||
const base = dirname(configPath);
|
||||
try {
|
||||
const { report: o } = await compareAgainst({ config, root: base, resolve: p => resolve(base, p) }, args.list('against'), args.has('threshold') ? args.num('threshold', 0.7) : undefined, m => warn('scan', m));
|
||||
addOriginality(report, o, { apple: !!config.apple, play: !!config.play }, config, p => relative(dir, p));
|
||||
} catch (e) { report.originality = { error: (e as Error).message }; }
|
||||
}
|
||||
}
|
||||
const store = args.get('store');
|
||||
if (store === 'apple' || store === 'play') {
|
||||
report.findings = report.findings.filter(f => f.store === store);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue