peachsim 0.1.2406 → 0.1.2409
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/agent-note.ts +231 -0
- package/cli/cloud-client.ts +8 -3
- package/cli/cloud-dispatch.ts +1 -1
- package/cli/command-agent.ts +122 -0
- package/cli/commands/agent.ts +29 -26
- package/cli/commands/stream.ts +11 -7
- package/cli/main.ts +16 -2
- package/cli/outbound-endpoints.ts +15 -0
- package/cli/ws-bridge.ts +4 -1
- package/dist-lib/agent-daemon-client.cjs +23 -3
- 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 +205 -62
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +20 -1
- package/dist-lib/cloud-contract.mjs +18 -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 +1630 -1513
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +203 -60
- 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 +394 -102
- package/dist-lib/host/fetch-proxy-handler.cjs +5 -5
- 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 +392 -272
- 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 +5 -5
- package/dist-lib/native-app-identity-project.cjs +3 -3
- package/dist-lib/native-app-identity-project.mjs +3 -3
- 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 +70 -60
- 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 +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +1199 -821
- package/dist-lib/swift-compile.cjs +197 -55
- package/dist-lib/swift-compile.mjs +197 -55
- 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 +213 -58
- package/dist-lib/vite.cjs +5 -5
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +2 -2
- package/dist-types/packages/peach-globals/src/index.d.ts +1 -1
- package/dist-types/packages/peach-globals/src/replayBridgeContract.d.ts +7 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/skills/peach-setup/SKILL.md +8 -3
- package/src/agent-daemon-client.ts +35 -2
- package/src/agent-prompt.ts +68 -0
- package/src/bridge-contract.ts +4 -0
- package/src/canvas-agent-note-delivery.ts +83 -0
- package/src/cloud-contract.ts +30 -0
- package/src/host/agent-host.ts +128 -18
- package/src/swift-compile.ts +124 -66
- package/src/swift-host.ts +2 -1
- package/src/swift-objc-import.ts +99 -0
- package/src/swift-packages.ts +1 -0
- package/src/swift-shared-sdk.ts +2 -1
- package/src/xcode-header-search.ts +33 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2409 | (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;
|
|
@@ -22,6 +22,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
22
22
|
// src/cloud-contract.ts
|
|
23
23
|
var cloud_contract_exports = {};
|
|
24
24
|
__export(cloud_contract_exports, {
|
|
25
|
+
AGENT_IDENTITY_MAX_CHARS: () => AGENT_IDENTITY_MAX_CHARS,
|
|
25
26
|
RNX_CLOUD_ALL_COMMAND_SCOPES: () => RNX_CLOUD_ALL_COMMAND_SCOPES,
|
|
26
27
|
RNX_CLOUD_COMMAND_SCOPES: () => RNX_CLOUD_COMMAND_SCOPES,
|
|
27
28
|
RNX_CLOUD_COMMAND_TYPES: () => RNX_CLOUD_COMMAND_TYPES,
|
|
@@ -45,11 +46,27 @@ __export(cloud_contract_exports, {
|
|
|
45
46
|
isValidRnxCloudLabel: () => isValidRnxCloudLabel,
|
|
46
47
|
matchesRnxCloudLabels: () => matchesRnxCloudLabels,
|
|
47
48
|
parseRnxCloudLabels: () => parseRnxCloudLabels,
|
|
49
|
+
readAgentIdentity: () => readAgentIdentity,
|
|
48
50
|
readRnxCloudLabels: () => readRnxCloudLabels,
|
|
49
51
|
rnxCloudCommandScope: () => rnxCloudCommandScope,
|
|
50
52
|
rnxCloudScopesAllowCommand: () => rnxCloudScopesAllowCommand
|
|
51
53
|
});
|
|
52
54
|
module.exports = __toCommonJS(cloud_contract_exports);
|
|
55
|
+
var AGENT_IDENTITY_MAX_CHARS = 200;
|
|
56
|
+
function readAgentIdentity(value) {
|
|
57
|
+
if (value === void 0) return void 0;
|
|
58
|
+
if (value === null || typeof value !== "object" || Array.isArray(value)) return null;
|
|
59
|
+
const text = (key) => {
|
|
60
|
+
const field = Reflect.get(value, key);
|
|
61
|
+
return typeof field === "string" && field.trim() !== "" && field.length <= AGENT_IDENTITY_MAX_CHARS ? field : null;
|
|
62
|
+
};
|
|
63
|
+
const id = text("id");
|
|
64
|
+
const name = text("name");
|
|
65
|
+
const machine = text("machine");
|
|
66
|
+
const step = text("step");
|
|
67
|
+
if (id === null || name === null || machine === null || step === null) return null;
|
|
68
|
+
return { id, name, machine, step };
|
|
69
|
+
}
|
|
53
70
|
var RNX_CLOUD_MAX_ARTIFACT_BYTES = 40761776;
|
|
54
71
|
var RNX_CLOUD_DESIGN_MAX_STORAGE_ENTRIES = 256;
|
|
55
72
|
var RNX_CLOUD_DESIGN_MAX_STORAGE_BYTES = 1024 * 1024;
|
|
@@ -172,6 +189,7 @@ function isRnxCloudSimStatus(value) {
|
|
|
172
189
|
}
|
|
173
190
|
// Annotate the CommonJS export names for ESM import in node:
|
|
174
191
|
0 && (module.exports = {
|
|
192
|
+
AGENT_IDENTITY_MAX_CHARS,
|
|
175
193
|
RNX_CLOUD_ALL_COMMAND_SCOPES,
|
|
176
194
|
RNX_CLOUD_COMMAND_SCOPES,
|
|
177
195
|
RNX_CLOUD_COMMAND_TYPES,
|
|
@@ -195,6 +213,7 @@ function isRnxCloudSimStatus(value) {
|
|
|
195
213
|
isValidRnxCloudLabel,
|
|
196
214
|
matchesRnxCloudLabels,
|
|
197
215
|
parseRnxCloudLabels,
|
|
216
|
+
readAgentIdentity,
|
|
198
217
|
readRnxCloudLabels,
|
|
199
218
|
rnxCloudCommandScope,
|
|
200
219
|
rnxCloudScopesAllowCommand
|
|
@@ -1,6 +1,21 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2409 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/cloud-contract.ts
|
|
4
|
+
var AGENT_IDENTITY_MAX_CHARS = 200;
|
|
5
|
+
function readAgentIdentity(value) {
|
|
6
|
+
if (value === void 0) return void 0;
|
|
7
|
+
if (value === null || typeof value !== "object" || Array.isArray(value)) return null;
|
|
8
|
+
const text = (key) => {
|
|
9
|
+
const field = Reflect.get(value, key);
|
|
10
|
+
return typeof field === "string" && field.trim() !== "" && field.length <= AGENT_IDENTITY_MAX_CHARS ? field : null;
|
|
11
|
+
};
|
|
12
|
+
const id = text("id");
|
|
13
|
+
const name = text("name");
|
|
14
|
+
const machine = text("machine");
|
|
15
|
+
const step = text("step");
|
|
16
|
+
if (id === null || name === null || machine === null || step === null) return null;
|
|
17
|
+
return { id, name, machine, step };
|
|
18
|
+
}
|
|
4
19
|
var RNX_CLOUD_MAX_ARTIFACT_BYTES = 40761776;
|
|
5
20
|
var RNX_CLOUD_DESIGN_MAX_STORAGE_ENTRIES = 256;
|
|
6
21
|
var RNX_CLOUD_DESIGN_MAX_STORAGE_BYTES = 1024 * 1024;
|
|
@@ -122,6 +137,7 @@ function isRnxCloudSimStatus(value) {
|
|
|
122
137
|
return value === "creating" || value === "open" || value === "hibernated" || value === "deleting" || value === "deleted";
|
|
123
138
|
}
|
|
124
139
|
export {
|
|
140
|
+
AGENT_IDENTITY_MAX_CHARS,
|
|
125
141
|
RNX_CLOUD_ALL_COMMAND_SCOPES,
|
|
126
142
|
RNX_CLOUD_COMMAND_SCOPES,
|
|
127
143
|
RNX_CLOUD_COMMAND_TYPES,
|
|
@@ -145,6 +161,7 @@ export {
|
|
|
145
161
|
isValidRnxCloudLabel,
|
|
146
162
|
matchesRnxCloudLabels,
|
|
147
163
|
parseRnxCloudLabels,
|
|
164
|
+
readAgentIdentity,
|
|
148
165
|
readRnxCloudLabels,
|
|
149
166
|
rnxCloudCommandScope,
|
|
150
167
|
rnxCloudScopesAllowCommand
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2409 | (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/cloud.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2409 | (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/cloud.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2409 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
package/dist-lib/config.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2409 | (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/config.mjs
CHANGED