peachsim 0.1.825 → 0.1.826
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/record.ts +33 -14
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/agent-identity.cjs +1 -1
- package/dist-lib/agent-sessions.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 +1 -1
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cli-constants.cjs +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/detox/index.cjs +1 -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 +9 -1
- package/dist-lib/host/bridge-host.cjs +265 -219
- package/dist-lib/host/fetch-proxy-handler.cjs +2 -2
- 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 +2 -2
- package/dist-lib/index.cjs +1 -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.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/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/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/render-mode.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +2 -2
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +504 -456
- 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/package.json +1 -1
- package/scripts/dev-server-scanner.ts +4 -1
- package/src/home-paths.ts +8 -0
- package/src/host/bridge-host.ts +4 -1
- package/src/host/fetch-proxy-handler.ts +5 -1
- package/src/host/fetch-proxy-transport.ts +76 -18
- package/src/host/websocket-proxy.ts +3 -1
package/cli/commands/record.ts
CHANGED
|
@@ -22,6 +22,7 @@ import { rnxExit } from '../run-rnx'
|
|
|
22
22
|
import {
|
|
23
23
|
checkSimHealth,
|
|
24
24
|
createBridgeFromParsed,
|
|
25
|
+
type ParsedBridgeCliArgs,
|
|
25
26
|
parseBridgeCliArgs,
|
|
26
27
|
type WsBridge,
|
|
27
28
|
} from '../ws-bridge'
|
|
@@ -740,15 +741,39 @@ function noteSimMismatch(
|
|
|
740
741
|
}
|
|
741
742
|
}
|
|
742
743
|
|
|
743
|
-
|
|
744
|
+
// the state file mirrors a recorder that lives in the sim's page. a sim that
|
|
745
|
+
// was closed, reloaded or relaunched since (its bridge crashed) took that
|
|
746
|
+
// recorder with it, so only a recorder its sim still reports blocks a start;
|
|
747
|
+
// a file describing nothing is removed.
|
|
748
|
+
async function refuseLiveRecording(parsed: ParsedBridgeCliArgs) {
|
|
744
749
|
const existing = readRecordingState()
|
|
745
|
-
if (existing)
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
+
if (!existing) return
|
|
751
|
+
const bridge = createBridgeFromParsed({
|
|
752
|
+
...parsed,
|
|
753
|
+
simId: existing.simId ?? parsed.simId,
|
|
754
|
+
simIdSource: existing.simId ? 'saved' : parsed.simIdSource,
|
|
755
|
+
commandTimeoutMs: 8_000,
|
|
756
|
+
})
|
|
757
|
+
try {
|
|
758
|
+
const sims = await bridge.listSims()
|
|
759
|
+
const live =
|
|
760
|
+
existing.simId === null || sims.some((sim) => sim.id === existing.simId)
|
|
761
|
+
? await probeEngineRecordingState(bridge)
|
|
762
|
+
: 'idle'
|
|
763
|
+
if (live === 'idle') {
|
|
764
|
+
clearRecordingState()
|
|
765
|
+
return
|
|
766
|
+
}
|
|
767
|
+
} finally {
|
|
768
|
+
bridge.close()
|
|
750
769
|
}
|
|
770
|
+
console.error(
|
|
771
|
+
` recording already in progress (started ${existing.startedAt}, sim ${existing.simId ?? '?'}). run \`peach record stop\` first, or \`peach record cancel\` to discard.`,
|
|
772
|
+
)
|
|
773
|
+
rnxExit(1)
|
|
774
|
+
}
|
|
751
775
|
|
|
776
|
+
async function recordStart(args: string[], opts: RecordOptions) {
|
|
752
777
|
const parsed = parseBridgeCliArgs(args, {
|
|
753
778
|
port: opts.port,
|
|
754
779
|
stripBooleanFlags: ['--no-shell', '--shell-only', '--lockstep'],
|
|
@@ -762,6 +787,7 @@ async function recordStart(args: string[], opts: RecordOptions) {
|
|
|
762
787
|
'--repo',
|
|
763
788
|
],
|
|
764
789
|
})
|
|
790
|
+
await refuseLiveRecording(parsed)
|
|
765
791
|
const mode = parseMode(valueOf(args, '--mode'))
|
|
766
792
|
const layers: 'tenant' | 'shell' | undefined = args.includes('--shell-only')
|
|
767
793
|
? 'shell'
|
|
@@ -868,19 +894,12 @@ async function recordStart(args: string[], opts: RecordOptions) {
|
|
|
868
894
|
}
|
|
869
895
|
|
|
870
896
|
async function recordPreludeStart(args: string[], opts: RecordOptions) {
|
|
871
|
-
const existing = readRecordingState()
|
|
872
|
-
if (existing) {
|
|
873
|
-
console.error(
|
|
874
|
-
` recording already in progress (started ${existing.startedAt}, sim ${existing.simId ?? '?'}). run \`peach record stop\` first, or \`peach record cancel\` to discard.`,
|
|
875
|
-
)
|
|
876
|
-
rnxExit(1)
|
|
877
|
-
}
|
|
878
|
-
|
|
879
897
|
const parsed = parseBridgeCliArgs(args, {
|
|
880
898
|
port: opts.port,
|
|
881
899
|
stripBooleanFlags: [],
|
|
882
900
|
stripValueFlags: ['--origin'],
|
|
883
901
|
})
|
|
902
|
+
await refuseLiveRecording(parsed)
|
|
884
903
|
const bridge = createBridgeFromParsed({ ...parsed, commandTimeoutMs: 15_000 })
|
|
885
904
|
try {
|
|
886
905
|
await assertStoreBridgesAvailable(bridge)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.826 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.826 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.826 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.826 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.826 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.826 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.826 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/beta.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.826 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/beta.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.826 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.826 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.826 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.826 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.826 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.826 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.826 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.826 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/cloud.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.826 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/cloud.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.826 | (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
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.826 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/detox/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.826 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.826 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.826 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.826 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/home-paths.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.826 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -38,6 +38,7 @@ __export(home_paths_exports, {
|
|
|
38
38
|
DAEMON_HEARTBEAT_STALE_MS: () => DAEMON_HEARTBEAT_STALE_MS,
|
|
39
39
|
DAEMON_LOCKFILE: () => DAEMON_LOCKFILE,
|
|
40
40
|
DEV_BRIDGES_DIR: () => DEV_BRIDGES_DIR,
|
|
41
|
+
FETCH_TRANSPORT_DIR: () => FETCH_TRANSPORT_DIR,
|
|
41
42
|
PEACH_HOME_ENV: () => PEACH_HOME_ENV,
|
|
42
43
|
activeRuntimeDir: () => activeRuntimeDir,
|
|
43
44
|
activeRuntimeFile: () => activeRuntimeFile,
|
|
@@ -59,6 +60,7 @@ __export(home_paths_exports, {
|
|
|
59
60
|
electronUserDataDir: () => electronUserDataDir,
|
|
60
61
|
electronVersionDir: () => electronVersionDir,
|
|
61
62
|
ensureRnxHome: () => ensureRnxHome,
|
|
63
|
+
fetchTransportIdentityPath: () => fetchTransportIdentityPath,
|
|
62
64
|
isDaemonLockfileFresh: () => isDaemonLockfileFresh,
|
|
63
65
|
isDevBridgeLockfileFresh: () => isDevBridgeLockfileFresh,
|
|
64
66
|
isDevWorkstation: () => isDevWorkstation,
|
|
@@ -100,6 +102,7 @@ var PEACH_HOME_ENV = "PEACH_HOME";
|
|
|
100
102
|
var ACTIVE_RUNTIME_FILE = "active";
|
|
101
103
|
var DAEMON_LOCKFILE = "daemon.json";
|
|
102
104
|
var DEV_BRIDGES_DIR = "dev-bridges";
|
|
105
|
+
var FETCH_TRANSPORT_DIR = "fetch-transport";
|
|
103
106
|
var CONFIG_FILE = "config.json";
|
|
104
107
|
var CLI_UPDATE_FILE = "cli-update.json";
|
|
105
108
|
var DAEMON_HEARTBEAT_STALE_MS = 3e4;
|
|
@@ -180,6 +183,9 @@ function daemonLockfilePath() {
|
|
|
180
183
|
function devBridgesDir() {
|
|
181
184
|
return import_node_path.default.join(rnxHomeDir(), DEV_BRIDGES_DIR);
|
|
182
185
|
}
|
|
186
|
+
function fetchTransportIdentityPath(bridgePort) {
|
|
187
|
+
return import_node_path.default.join(rnxHomeDir(), FETCH_TRANSPORT_DIR, `${bridgePort}.json`);
|
|
188
|
+
}
|
|
183
189
|
function devBridgeLockfilePath(bridgePort) {
|
|
184
190
|
if (!Number.isInteger(bridgePort) || bridgePort <= 0) {
|
|
185
191
|
throw new Error(`invalid development bridge port: ${bridgePort}`);
|
|
@@ -601,6 +607,7 @@ function removeDevBridgeLockfile(owner) {
|
|
|
601
607
|
DAEMON_HEARTBEAT_STALE_MS,
|
|
602
608
|
DAEMON_LOCKFILE,
|
|
603
609
|
DEV_BRIDGES_DIR,
|
|
610
|
+
FETCH_TRANSPORT_DIR,
|
|
604
611
|
PEACH_HOME_ENV,
|
|
605
612
|
activeRuntimeDir,
|
|
606
613
|
activeRuntimeFile,
|
|
@@ -622,6 +629,7 @@ function removeDevBridgeLockfile(owner) {
|
|
|
622
629
|
electronUserDataDir,
|
|
623
630
|
electronVersionDir,
|
|
624
631
|
ensureRnxHome,
|
|
632
|
+
fetchTransportIdentityPath,
|
|
625
633
|
isDaemonLockfileFresh,
|
|
626
634
|
isDevBridgeLockfileFresh,
|
|
627
635
|
isDevWorkstation,
|