peachsim 0.1.1827 → 0.1.1830
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/cli/commands/inspect/core.ts +5 -1
- package/cli/dev-build-freshness.ts +2 -0
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +46 -25
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +2 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +1 -1
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +46 -25
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +2 -1
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +1 -1
- package/dist-lib/native-app-identity-project.cjs +1 -1
- package/dist-lib/native-app-identity-project.mjs +1 -1
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +53 -53
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +4 -2
- package/dist-lib/sdk.mjs +4 -2
- package/dist-lib/skills.cjs +47 -25
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +1 -1
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +1 -1
- package/dist-lib/vite.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/inspect-info.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +6 -0
- package/dist-types/packages/peach-globals/src/nodeContract.d.ts +7 -0
- package/dist-types/packages/peach-kit/src/internal.d.ts +1 -1
- package/package.json +1 -1
- package/src/swift-installed-targets.ts +56 -31
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1830 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1830 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1830 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1830 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1830 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1830 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -17,7 +17,7 @@ export declare function isInspectColorKey(key: string): boolean;
|
|
|
17
17
|
export declare function isInspectableNode(node: SootSimNode, query?: VisibleFrameQuery): boolean;
|
|
18
18
|
export { INSPECT_APP_ROOT_TEST_ID, INSPECT_OVERLAY_TEST_ID, pickInspectTarget, shouldOutlineInspectNode, };
|
|
19
19
|
export declare function collectInspectTree(root: SootSimNode): SootSimInspectTreeNode[];
|
|
20
|
-
export declare function getUIKitAccessibilityFrame(node: SootSimNode, painted?: InspectInfo['absolute']): InspectInfo['absolute'] | undefined;
|
|
20
|
+
export declare function getUIKitAccessibilityFrame(node: SootSimNode, painted?: InspectInfo['absolute'], query?: VisibleFrameQuery): InspectInfo['absolute'] | undefined;
|
|
21
21
|
export declare function collectBackgroundPlaybackNodeIds(root: SootSimNode, drivenIds: ReadonlySet<number>, nodeId: (node: SootSimNode) => number | undefined): Set<number>;
|
|
22
22
|
export declare function markBackgroundPlaybackInspectInfos<T>(infos: T[], nodeIds: ReadonlySet<number>): T[];
|
|
23
23
|
export declare function collectInspectInfo(node: SootSimNode, query?: VisibleFrameQuery): InspectInfo;
|
|
@@ -1503,6 +1503,9 @@ export type ShellToCompositorMessage = {
|
|
|
1503
1503
|
} | {
|
|
1504
1504
|
type: 'panRecognized';
|
|
1505
1505
|
epochMs: number;
|
|
1506
|
+
} | {
|
|
1507
|
+
type: 'presentationFence';
|
|
1508
|
+
requestId: number;
|
|
1506
1509
|
} | {
|
|
1507
1510
|
type: 'foldMotion';
|
|
1508
1511
|
active: boolean;
|
|
@@ -1936,6 +1939,9 @@ export type CompositorToShellMessage = {
|
|
|
1936
1939
|
epochMs: number;
|
|
1937
1940
|
} | EngineResourceRequest | {
|
|
1938
1941
|
type: 'shellInboxAccepted';
|
|
1942
|
+
} | {
|
|
1943
|
+
type: 'presentationFenced';
|
|
1944
|
+
requestId: number;
|
|
1939
1945
|
} | {
|
|
1940
1946
|
type: 'keyboardWarm';
|
|
1941
1947
|
phase: KeyboardWarmCompositorPhase;
|
|
@@ -340,6 +340,13 @@ export interface SootSimInspectInfo {
|
|
|
340
340
|
label?: string;
|
|
341
341
|
accessibilityLabel?: string;
|
|
342
342
|
accessibilityHidden?: true;
|
|
343
|
+
disabled?: true;
|
|
344
|
+
hitSlop?: {
|
|
345
|
+
top: number;
|
|
346
|
+
right: number;
|
|
347
|
+
bottom: number;
|
|
348
|
+
left: number;
|
|
349
|
+
};
|
|
343
350
|
readsFirst?: true;
|
|
344
351
|
readsChildren?: true;
|
|
345
352
|
accessibilityContainer?: true;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { setEngineConfig, setEngineConfigInitializer, resetCapabilityStore, type SootSimEngineConfig, } from './capabilities.d.ts';
|
|
2
2
|
export { bindReact } from './react-bridge.d.ts';
|
|
3
|
-
export { POPOVER_ARROWS, POPOVER_CORNER_RADIUS, placePopover, centerArrowlessPopover, popoverGlassArrow, popoverRegion, } from './ui/popover-placement.d.ts';
|
|
3
|
+
export { POPOVER_ARROWS, POPOVER_ARROW_DEPTH, POPOVER_CORNER_RADIUS, placePopover, centerArrowlessPopover, popoverGlassArrow, popoverRegion, } from './ui/popover-placement.d.ts';
|
|
4
4
|
export { KeyboardToolbarAccessoryContext, type KeyboardToolbarAccessory, } from './ui/keyboard-toolbar.d.ts';
|
|
5
5
|
export { childControllerLayoutMargin, HostingSafeAreaContext, systemLayoutMargin, type HostingSafeAreaContainer, } from './ui/hosting-safe-area.d.ts';
|
package/package.json
CHANGED
|
@@ -89,6 +89,49 @@ export function applyInstalledSwiftTargets(
|
|
|
89
89
|
collection.libraries[target.name] = library
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
+
// a header the installed search paths already supply, and its module covers,
|
|
93
|
+
// must not also reach a generated target as a second textual copy. returns the
|
|
94
|
+
// search roots that now supply what the target lost
|
|
95
|
+
const dropSuppliedHeaders = (
|
|
96
|
+
generated: SwiftPackageTarget,
|
|
97
|
+
native: NonNullable<SwiftCompileInput['nativeTargets']>[number],
|
|
98
|
+
// the generated copies this may replace, by path
|
|
99
|
+
copies = '',
|
|
100
|
+
) => {
|
|
101
|
+
const supplied = new Map<string, { content: string; root: string }[]>()
|
|
102
|
+
for (const [key, content] of Object.entries(snapshot.input.files))
|
|
103
|
+
for (const root of native.headerSearchPaths)
|
|
104
|
+
if (key.startsWith(`${root}/`)) {
|
|
105
|
+
const name = key.slice(root.length + 1)
|
|
106
|
+
supplied.set(name, [...(supplied.get(name) ?? []), { content, root }])
|
|
107
|
+
}
|
|
108
|
+
const prefix = `${generated.path}/include/`
|
|
109
|
+
// a module map resolves its headers beside itself, so the ones it names stay
|
|
110
|
+
const moduleHeaders = new Set(
|
|
111
|
+
[
|
|
112
|
+
...(collection.files[`${prefix}module.modulemap`] ?? '').matchAll(
|
|
113
|
+
/\bheader\s+"([^"]+)"/g,
|
|
114
|
+
),
|
|
115
|
+
].map((match) => path.posix.join(prefix, match[1]!)),
|
|
116
|
+
)
|
|
117
|
+
const roots = new Set<string>()
|
|
118
|
+
for (const file of Object.keys(collection.files)) {
|
|
119
|
+
if (!file.startsWith(prefix) || moduleHeaders.has(file)) continue
|
|
120
|
+
const target = /^#\s*include "([^"]+)"/m.exec(collection.files[file]!)?.[1]
|
|
121
|
+
const copy =
|
|
122
|
+
target && path.posix.normalize(path.posix.join(path.posix.dirname(file), target))
|
|
123
|
+
const source = copy && originalSources.get(copy)
|
|
124
|
+
if (!source || !copy.includes(copies)) continue
|
|
125
|
+
const content = fs.readFileSync(source, 'utf8')
|
|
126
|
+
const match = supplied
|
|
127
|
+
.get(file.slice(prefix.length))
|
|
128
|
+
?.find((candidate) => candidate.content === content)
|
|
129
|
+
if (!match) continue
|
|
130
|
+
roots.add(match.root)
|
|
131
|
+
delete collection.files[file]
|
|
132
|
+
}
|
|
133
|
+
return roots
|
|
134
|
+
}
|
|
92
135
|
for (const native of nativeTargets) {
|
|
93
136
|
const installedTarget = installedTargets.find(
|
|
94
137
|
(target) => target.name === native.name,
|
|
@@ -100,6 +143,18 @@ export function applyInstalledSwiftTargets(
|
|
|
100
143
|
collection.nativeTargets.push(native)
|
|
101
144
|
for (const [file, source] of Object.entries(snapshot.input.files))
|
|
102
145
|
if (file.startsWith(`${installedTarget.path}/`)) collection.files[file] = source
|
|
146
|
+
for (const generated of collection.targets) {
|
|
147
|
+
if (!generatedTargets.has(generated.name)) continue
|
|
148
|
+
const search = [
|
|
149
|
+
...dropSuppliedHeaders(generated, native, '/upstream/ReactCodegen/'),
|
|
150
|
+
].flatMap((root) => ['-I', `$(PEACH_INPUT_ROOT)/${root}`])
|
|
151
|
+
if (search.length === 0) continue
|
|
152
|
+
generated.clangSettings = [
|
|
153
|
+
...(generated.clangSettings ?? []),
|
|
154
|
+
{ tool: 'c', flags: search },
|
|
155
|
+
{ tool: 'cxx', flags: search },
|
|
156
|
+
]
|
|
157
|
+
}
|
|
103
158
|
continue
|
|
104
159
|
}
|
|
105
160
|
target.cxxInterop = installedTarget.cxxInterop
|
|
@@ -140,37 +195,7 @@ export function applyInstalledSwiftTargets(
|
|
|
140
195
|
const module = moduleMapName(snapshot.input.files[file] ?? '')
|
|
141
196
|
return !collection.targets.some((target) => target.name === module)
|
|
142
197
|
})
|
|
143
|
-
|
|
144
|
-
// must not also reach the target as a second textual copy
|
|
145
|
-
const prefix = `${generated.path}/include/`
|
|
146
|
-
const supplied = new Map<string, Set<string>>()
|
|
147
|
-
for (const [key, content] of Object.entries(snapshot.input.files)) {
|
|
148
|
-
if (!native.headerSearchPaths.includes(path.posix.dirname(key))) continue
|
|
149
|
-
const name = path.posix.basename(key)
|
|
150
|
-
supplied.set(name, (supplied.get(name) ?? new Set()).add(content))
|
|
151
|
-
}
|
|
152
|
-
// a module map resolves its headers beside itself, so the ones it names stay
|
|
153
|
-
const moduleHeaders = new Set(
|
|
154
|
-
[
|
|
155
|
-
...(collection.files[`${prefix}module.modulemap`] ?? '').matchAll(
|
|
156
|
-
/\bheader\s+"([^"]+)"/g,
|
|
157
|
-
),
|
|
158
|
-
].map((match) => path.posix.join(prefix, match[1]!)),
|
|
159
|
-
)
|
|
160
|
-
for (const file of Object.keys(collection.files)) {
|
|
161
|
-
if (!file.startsWith(prefix) || moduleHeaders.has(file)) continue
|
|
162
|
-
const target = /^#\s*include "([^"]+)"/m.exec(collection.files[file]!)?.[1]
|
|
163
|
-
const source =
|
|
164
|
-
target &&
|
|
165
|
-
originalSources.get(
|
|
166
|
-
path.posix.normalize(path.posix.join(path.posix.dirname(file), target)),
|
|
167
|
-
)
|
|
168
|
-
if (
|
|
169
|
-
source &&
|
|
170
|
-
supplied.get(path.posix.basename(file))?.has(fs.readFileSync(source, 'utf8'))
|
|
171
|
-
)
|
|
172
|
-
delete collection.files[file]
|
|
173
|
-
}
|
|
198
|
+
dropSuppliedHeaders(generated, native)
|
|
174
199
|
const flags = originalModuleFlags(native.flags)
|
|
175
200
|
generated.clangSettings = [
|
|
176
201
|
{ tool: 'c', flags: [...flags, ...ndebug, ...search] },
|