@ceraph/react-native-mcp 0.3.3 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +335 -68
- package/dist/babel-plugin/index.cjs +1 -0
- package/dist/babel-plugin/index.js +1 -0
- package/dist/cli.d.ts +3 -1
- package/dist/cli.js +1 -47
- package/dist/index.d.ts +106 -1
- package/dist/index.js +2 -1651
- package/dist/shim/async-storage-ops.d.ts +26 -0
- package/dist/shim/async-storage-ops.js +1 -0
- package/dist/shim/boot.d.ts +9 -0
- package/dist/shim/boot.js +1 -141
- package/dist/shim/camera.js +1 -62
- package/dist/shim/command-poll.d.ts +18 -0
- package/dist/shim/command-poll.js +1 -0
- package/dist/shim/config.js +1 -56
- package/dist/shim/console-capture.d.ts +16 -0
- package/dist/shim/console-capture.js +1 -0
- package/dist/shim/deep-link.js +1 -25
- package/dist/shim/dev-guard.js +1 -3
- package/dist/shim/dev-host.d.ts +1 -0
- package/dist/shim/dev-host.js +1 -0
- package/dist/shim/error-handler.js +1 -66
- package/dist/shim/fetch-interceptor.js +1 -93
- package/dist/shim/index.d.ts +3 -0
- package/dist/shim/index.js +1 -6
- package/dist/shim/keep-awake.js +1 -118
- package/dist/shim/network-ownership.d.ts +4 -0
- package/dist/shim/network-ownership.js +1 -0
- package/dist/shim/optimistic-observer.d.ts +29 -0
- package/dist/shim/optimistic-observer.js +1 -0
- package/dist/shim/reload.js +1 -76
- package/dist/shim/reset.d.ts +30 -0
- package/dist/shim/reset.js +1 -0
- package/dist/shim/signal-capture.d.ts +8 -0
- package/dist/shim/signal-capture.js +1 -15
- package/dist/shim/signal-transport.d.ts +14 -1
- package/dist/shim/signal-transport.js +1 -43
- package/dist/shim/xhr-interceptor.d.ts +39 -0
- package/dist/shim/xhr-interceptor.js +1 -0
- package/package.json +40 -11
- package/dist/app-lifecycle.d.ts +0 -50
- package/dist/app-lifecycle.js +0 -487
- package/dist/camera-image-writer.d.ts +0 -43
- package/dist/camera-image-writer.js +0 -280
- package/dist/camera-registry-sync.d.ts +0 -18
- package/dist/camera-registry-sync.js +0 -117
- package/dist/device-autonomy.d.ts +0 -30
- package/dist/device-autonomy.js +0 -117
- package/dist/error-parser.d.ts +0 -51
- package/dist/error-parser.js +0 -275
- package/dist/expo-manager.d.ts +0 -62
- package/dist/expo-manager.js +0 -447
- package/dist/init/ast-camera.d.ts +0 -29
- package/dist/init/ast-camera.js +0 -267
- package/dist/init/ast-layout.d.ts +0 -15
- package/dist/init/ast-layout.js +0 -167
- package/dist/init/claude-hook-constants.d.ts +0 -9
- package/dist/init/claude-hook-constants.js +0 -91
- package/dist/init/lan-ip.d.ts +0 -11
- package/dist/init/lan-ip.js +0 -51
- package/dist/init/monorepo.d.ts +0 -13
- package/dist/init/monorepo.js +0 -185
- package/dist/init/oauth.d.ts +0 -52
- package/dist/init/oauth.js +0 -220
- package/dist/init/package-manager.d.ts +0 -11
- package/dist/init/package-manager.js +0 -60
- package/dist/init/prompt.d.ts +0 -12
- package/dist/init/prompt.js +0 -68
- package/dist/init/shell-profile.d.ts +0 -22
- package/dist/init/shell-profile.js +0 -85
- package/dist/init/steps.d.ts +0 -135
- package/dist/init/steps.js +0 -399
- package/dist/init/url-scheme.d.ts +0 -42
- package/dist/init/url-scheme.js +0 -187
- package/dist/init/walkthrough.d.ts +0 -76
- package/dist/init/walkthrough.js +0 -340
- package/dist/init.d.ts +0 -8
- package/dist/init.js +0 -395
- package/dist/iproxy-manager.d.ts +0 -32
- package/dist/iproxy-manager.js +0 -216
- package/dist/mac-caffeinate.d.ts +0 -10
- package/dist/mac-caffeinate.js +0 -56
- package/dist/permission-interceptor.d.ts +0 -29
- package/dist/permission-interceptor.js +0 -185
- package/dist/prebuild-detector.d.ts +0 -19
- package/dist/prebuild-detector.js +0 -174
- package/dist/preflight.d.ts +0 -34
- package/dist/preflight.js +0 -847
- package/dist/screen.d.ts +0 -184
- package/dist/screen.js +0 -931
- package/dist/signal-listener.d.ts +0 -27
- package/dist/signal-listener.js +0 -135
- package/dist/simulator-boot.d.ts +0 -52
- package/dist/simulator-boot.js +0 -227
- package/dist/target.d.ts +0 -48
- package/dist/target.js +0 -267
- package/dist/uninstall/cli-runner.d.ts +0 -32
- package/dist/uninstall/cli-runner.js +0 -223
- package/dist/uninstall/footprint.d.ts +0 -40
- package/dist/uninstall/footprint.js +0 -288
- package/dist/uninstall/mcp-tools.d.ts +0 -14
- package/dist/uninstall/mcp-tools.js +0 -175
- package/dist/uninstall/revert-auth.d.ts +0 -22
- package/dist/uninstall/revert-auth.js +0 -31
- package/dist/uninstall/revert-boot.d.ts +0 -24
- package/dist/uninstall/revert-boot.js +0 -242
- package/dist/uninstall/revert-camera.d.ts +0 -12
- package/dist/uninstall/revert-camera.js +0 -199
- package/dist/uninstall/revert-ceraph-dir.d.ts +0 -27
- package/dist/uninstall/revert-ceraph-dir.js +0 -38
- package/dist/uninstall/revert-claude-hooks.d.ts +0 -19
- package/dist/uninstall/revert-claude-hooks.js +0 -191
- package/dist/uninstall/revert-gitignore.d.ts +0 -17
- package/dist/uninstall/revert-gitignore.js +0 -43
- package/dist/uninstall/revert-mcp-clients.d.ts +0 -57
- package/dist/uninstall/revert-mcp-clients.js +0 -194
- package/dist/uninstall/revert-package.d.ts +0 -34
- package/dist/uninstall/revert-package.js +0 -98
- package/dist/uninstall/revert-scheme.d.ts +0 -36
- package/dist/uninstall/revert-scheme.js +0 -139
- package/dist/uninstall/revert-signal-host-env.d.ts +0 -31
- package/dist/uninstall/revert-signal-host-env.js +0 -61
- package/dist/uninstall/walkthrough.d.ts +0 -80
- package/dist/uninstall/walkthrough.js +0 -1244
- package/dist/utils/atomic-write.d.ts +0 -1
- package/dist/utils/atomic-write.js +0 -30
- package/dist/wait-for-device.d.ts +0 -68
- package/dist/wait-for-device.js +0 -368
- package/dist/wda-manager.d.ts +0 -38
- package/dist/wda-manager.js +0 -186
- package/dist/wda-simulator.d.ts +0 -28
- package/dist/wda-simulator.js +0 -257
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,107 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
type LockState = "unlocked" | "locked" | "screen-off" | "unknown";
|
|
3
|
+
interface AwakeResult {
|
|
4
|
+
awake: boolean;
|
|
5
|
+
lockState: LockState;
|
|
6
|
+
remediation?: string;
|
|
7
|
+
details?: Record<string, unknown>;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
interface MobileObjectiveSignal {
|
|
11
|
+
kind: "native-crash" | "js-exception" | "network-failure" | "server-error";
|
|
12
|
+
message: string;
|
|
13
|
+
detail?: string;
|
|
14
|
+
flowId?: string;
|
|
15
|
+
}
|
|
16
|
+
interface MobileWitness {
|
|
17
|
+
kind: "http-client-error" | "verify-observation" | "error-banner" | "navigation-back-recovery" | "response-error-shape" | "response-ui-divergence" | "scope-regression" | "console-error" | "transformed-field" | "disclosure-open";
|
|
18
|
+
message: string;
|
|
19
|
+
detail?: string;
|
|
20
|
+
flowId?: string;
|
|
21
|
+
}
|
|
22
|
+
interface MobileReloadRecoveryWitness {
|
|
23
|
+
kind: "reload-recovery";
|
|
24
|
+
outcome: "reload-not-needed" | "stale-but-recoverable" | "stale-unrecoverable" | "inconclusive";
|
|
25
|
+
expectedRoutes: string[];
|
|
26
|
+
reachableBeforeReload: string[];
|
|
27
|
+
reachableAfterReload?: string[];
|
|
28
|
+
reloadMechanism?: "dev-settings-reload";
|
|
29
|
+
reason?: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
interface StepResultTarget {
|
|
33
|
+
text?: string;
|
|
34
|
+
accessibilityLabel?: string;
|
|
35
|
+
type?: string;
|
|
36
|
+
source?: string;
|
|
37
|
+
}
|
|
38
|
+
interface StepResult {
|
|
39
|
+
stepIndex: number;
|
|
40
|
+
action: string;
|
|
41
|
+
success: boolean;
|
|
42
|
+
durationMs: number;
|
|
43
|
+
error?: string;
|
|
44
|
+
target?: StepResultTarget;
|
|
45
|
+
value?: string;
|
|
46
|
+
screenshotBase64?: string;
|
|
47
|
+
runtimeErrorsCaptured?: Array<{
|
|
48
|
+
message: string;
|
|
49
|
+
stack: string;
|
|
50
|
+
}>;
|
|
51
|
+
details?: Record<string, unknown>;
|
|
52
|
+
objectiveSignals?: MobileObjectiveSignal[];
|
|
53
|
+
witnesses?: MobileWitness[];
|
|
54
|
+
reloadRecoveryWitness?: MobileReloadRecoveryWitness;
|
|
55
|
+
}
|
|
56
|
+
interface FlowResult {
|
|
57
|
+
flow: string;
|
|
58
|
+
flowId?: string;
|
|
59
|
+
success: boolean;
|
|
60
|
+
totalDurationMs: number;
|
|
61
|
+
steps: StepResult[];
|
|
62
|
+
runtimeErrors: Array<{
|
|
63
|
+
message: string;
|
|
64
|
+
stack: string;
|
|
65
|
+
timestamp: string;
|
|
66
|
+
}>;
|
|
67
|
+
awake?: AwakeResult;
|
|
68
|
+
objectiveSignals?: MobileObjectiveSignal[];
|
|
69
|
+
witnesses?: MobileWitness[];
|
|
70
|
+
reloadRecoveryWitnesses?: MobileReloadRecoveryWitness[];
|
|
71
|
+
chainId?: string;
|
|
72
|
+
chainPosition?: number;
|
|
73
|
+
skippedDueToChainAbort?: boolean;
|
|
74
|
+
screenshotsAvailable?: number;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
interface SkippedFlowResult {
|
|
78
|
+
flow: string;
|
|
79
|
+
flowId: string;
|
|
80
|
+
skipped: true;
|
|
81
|
+
requiresEnv: string[];
|
|
82
|
+
}
|
|
83
|
+
type FlowExecutionResult = FlowResult | SkippedFlowResult;
|
|
84
|
+
interface ExecutedRunResult {
|
|
85
|
+
runId: string | null;
|
|
86
|
+
status: "planned" | "no-flows";
|
|
87
|
+
results: FlowExecutionResult[];
|
|
88
|
+
failedAt?: number;
|
|
89
|
+
hint?: string;
|
|
90
|
+
requiresEnv?: string[];
|
|
91
|
+
warning?: string;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
type McpContentEntry = {
|
|
95
|
+
type: "text";
|
|
96
|
+
text: string;
|
|
97
|
+
} | {
|
|
98
|
+
type: "image";
|
|
99
|
+
data: string;
|
|
100
|
+
mimeType: string;
|
|
101
|
+
};
|
|
102
|
+
declare function stripScreenshotBlobs<T>(value: T): T;
|
|
103
|
+
declare function buildRunResultContent(summary: unknown, results: ExecutedRunResult["results"], warning?: string): {
|
|
104
|
+
content: McpContentEntry[];
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
export { buildRunResultContent, stripScreenshotBlobs };
|