serve --stdio: desktop JSON-RPC profile on the MCP core, confirm tokens, --json results, sidecar builds
- cli/serve.ts: session.hello with a per-session secret, typed methods per tool, project.inspect, portfolio.status over many project folders, progress notifications, cancellation - cli/lib/confirm-token.ts: single-use HMAC tokens bound to method + canonical params + expiry; writes are dry runs without one; no submit / release / publish method exists - cli/lib/runner.ts: shared child runner for mcp and serve, works from a compiled binary - --json on check, testflight / ppo status, next-build, next-version-code, analytics compare, prices import; inspect command; confirm() always answers no under serve - tools/build-sidecars.ts: bun build --compile for five targets, ad-hoc re-sign on macOS, path leak check - tests/serve.test.ts: methods, token binding / expiry / replay, shared vector, stdio and compiled smoke
This commit is contained in:
parent
c6360812b8
commit
3454a9aadb
28 changed files with 1048 additions and 42 deletions
|
|
@ -19,7 +19,7 @@ import type { Ctx } from './lib/ctx';
|
|||
import { checkUrl } from './lib/http';
|
||||
import { collectHealth } from './health';
|
||||
import { healthFindings } from './lib/health';
|
||||
import { log, warn } from './lib/log';
|
||||
import { log, printJson, warn } from './lib/log';
|
||||
import { type AppleSnapshot, appleRules, type Finding, formatFindings, PLAY_REQUIRED_IMAGES, type PlaySnapshot, playRules, type ProfileFacts, rendersFindings, sortFindings } from './lib/validate-rules';
|
||||
import { rendersCheck } from './shots/check';
|
||||
import { playClient } from './play/client';
|
||||
|
|
@ -177,7 +177,7 @@ export async function run(ctx: Ctx): Promise<void> {
|
|||
findings.push(...sortFindings(healthFindings(h, { unreadable: 'ok' })));
|
||||
}
|
||||
const blockers = findings.filter(f => f.level === 'blocker').length;
|
||||
if (a.has('json')) console.log(JSON.stringify({ blockers, findings }, null, 2));
|
||||
if (a.has('json')) printJson({ blockers, findings });
|
||||
else {
|
||||
console.log(formatFindings(findings));
|
||||
log('validate', blockers ? `${blockers} blocker(s)` : 'no blockers (UI-only steps are not visible to the API: App Privacy, Play App content)');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue