sootsim 0.1.83 → 0.1.84
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 +0 -1
- package/detox/colors.ts +54 -0
- package/detox/config-loader.ts +135 -0
- package/detox/expectations.ts +477 -0
- package/detox/gestures.ts +442 -0
- package/detox/index.ts +1436 -0
- package/detox/jest-environment.ts +86 -0
- package/detox/jest-preset.cjs +50 -0
- package/detox/matchers.ts +29 -0
- package/detox/navigation.ts +43 -0
- package/detox/run-test.ts +113 -0
- package/detox/screenshots/animated-color-test-rest-norngh.png +0 -0
- package/detox/screenshots/color-test-after-drag-norngh.png +0 -0
- package/detox/screenshots/color-test-rest-norngh.png +0 -0
- package/detox/screenshots/theme-blue-toggle.png +0 -0
- package/detox/screenshots/theme-blue.png +0 -0
- package/detox/screenshots/theme-red-toggle.png +0 -0
- package/detox/screenshots/theme-red.png +0 -0
- package/dist-cli/bin.js +3 -3
- package/dist-cli/chunks/{agent-MQ7GLVIB.js → agent-2CWD6W6P.js} +2 -2
- package/dist-cli/chunks/{agent-wrapper-7KAFDQCN.js → agent-wrapper-5W3LOX6S.js} +2 -2
- package/dist-cli/chunks/{assert-TV46GUNU.js → assert-ZOMAMKRT.js} +2 -2
- package/dist-cli/chunks/auto-bootstrap-NYYSMTIM.js +2 -0
- package/dist-cli/chunks/beta-4K2SQACK.js +2 -0
- package/dist-cli/chunks/chunk-3HXQ7MJK.js +79 -0
- package/dist-cli/chunks/{chunk-4LS5MZAI.js → chunk-4K7BH2D4.js} +3 -3
- package/dist-cli/chunks/{chunk-FJYT7XL2.js → chunk-4OPRODFA.js} +2 -2
- package/dist-cli/chunks/{chunk-DP7O5MHK.js → chunk-4OWVPRZV.js} +2 -2
- package/dist-cli/chunks/{chunk-PM5NVKLP.js → chunk-5XCXOLG2.js} +2 -2
- package/dist-cli/chunks/chunk-67ZZ2CM5.js +1 -0
- package/dist-cli/chunks/{chunk-WN7M3QON.js → chunk-73UZXB4B.js} +2 -2
- package/dist-cli/chunks/{chunk-5DJXZIFZ.js → chunk-7NWNTUJF.js} +1 -1
- package/dist-cli/chunks/{chunk-Y2VJBRSP.js → chunk-7YHDJLO2.js} +1 -1
- package/dist-cli/chunks/{chunk-6NN2D4EJ.js → chunk-AJVTY6KY.js} +1 -1
- package/dist-cli/chunks/chunk-AWSQUOAS.js +67 -0
- package/dist-cli/chunks/{chunk-CJY3AVI7.js → chunk-BCBNVJVG.js} +1 -1
- package/dist-cli/chunks/{chunk-OYMFNU3M.js → chunk-BKBL6K2G.js} +1 -1
- package/dist-cli/chunks/{chunk-IBNRRAES.js → chunk-C3DPQZ4J.js} +2 -2
- package/dist-cli/chunks/chunk-D3ZSBIIY.js +2 -0
- package/dist-cli/chunks/{chunk-2AWQ7OB2.js → chunk-D4HUVLZR.js} +1 -1
- package/dist-cli/chunks/{chunk-F3HP444U.js → chunk-DUUSJDES.js} +1 -1
- package/dist-cli/chunks/{chunk-277XAALA.js → chunk-ELJLF4SG.js} +3 -3
- package/dist-cli/chunks/{chunk-RH4F2TF7.js → chunk-EQ7TFQ2F.js} +1 -1
- package/dist-cli/chunks/{chunk-HNWEELAE.js → chunk-EQCKGC4B.js} +1 -1
- package/dist-cli/chunks/chunk-FUCGLWNN.js +1 -0
- package/dist-cli/chunks/{chunk-FRM355UL.js → chunk-HYPJW65U.js} +2 -2
- package/dist-cli/chunks/chunk-IILJQCZA.js +2 -0
- package/dist-cli/chunks/{chunk-Y4BUVURT.js → chunk-KU6MSPAH.js} +2 -2
- package/dist-cli/chunks/{chunk-DM6WT7QM.js → chunk-OOOR7NT2.js} +1 -1
- package/dist-cli/chunks/{chunk-HAWOAQAG.js → chunk-P7WDNKOS.js} +3 -3
- package/dist-cli/chunks/{chunk-6TNANCQC.js → chunk-PPKKA5VW.js} +2 -2
- package/dist-cli/chunks/{chunk-JQ7ZXOXJ.js → chunk-PS2G44GT.js} +2 -2
- package/dist-cli/chunks/{chunk-ECJBV65H.js → chunk-QMSJR5R2.js} +2 -2
- package/dist-cli/chunks/{chunk-J2GYISVJ.js → chunk-RF4R2U46.js} +2 -2
- package/dist-cli/chunks/{chunk-VMXWC2JO.js → chunk-RIXUH3NK.js} +2 -2
- package/dist-cli/chunks/{chunk-2PY3UZVO.js → chunk-SFGUPL2X.js} +2 -2
- package/dist-cli/chunks/{chunk-572VSFNP.js → chunk-SQX5CAYG.js} +1 -1
- package/dist-cli/chunks/{chunk-NXATOWWF.js → chunk-SQZAC7C4.js} +1 -1
- package/dist-cli/chunks/{chunk-WTKTOL3C.js → chunk-SV7FOGJ3.js} +2 -2
- package/dist-cli/chunks/{chunk-JHJNODXN.js → chunk-TK3OJSEO.js} +2 -2
- package/dist-cli/chunks/{chunk-KASUZ5XV.js → chunk-TL7SIZ7S.js} +1 -1
- package/dist-cli/chunks/{chunk-6XZOEBTZ.js → chunk-V2GQ4WXJ.js} +2 -2
- package/dist-cli/chunks/{chunk-IP3QJLRH.js → chunk-VH7F45CN.js} +1 -1
- package/dist-cli/chunks/chunk-WNVNU2OW.js +4 -0
- package/dist-cli/chunks/{chunk-YUELRHGB.js → chunk-XQ2OBHBE.js} +2 -2
- package/dist-cli/chunks/{chunk-CYV6Y6YV.js → chunk-YCIA4BHJ.js} +2 -2
- package/dist-cli/chunks/chunk-ZSMMJMPA.js +1 -0
- package/dist-cli/chunks/cli-version-QB4VH24H.js +2 -0
- package/dist-cli/chunks/{compat-QLLWBTS3.js → compat-FWSEEGEH.js} +3 -3
- package/dist-cli/chunks/{config-2DSLDCXV.js → config-CYI2WAGP.js} +2 -2
- package/dist-cli/chunks/control-UXY7YQVX.js +2 -0
- package/dist-cli/chunks/{cpu-profile-GEIKHCPC.js → cpu-profile-IKAE3KTY.js} +2 -2
- package/dist-cli/chunks/{daemon-4EBUFN4D.js → daemon-ZUMF53YB.js} +2 -2
- package/dist-cli/chunks/{debug-WGD6XWOF.js → debug-P6KULKKS.js} +3 -3
- package/dist-cli/chunks/{detox-LNKGRZU6.js → detox-SPWAZCYG.js} +2 -2
- package/dist-cli/chunks/{device-AYKXKVIQ.js → device-JWEPK6I2.js} +2 -2
- package/dist-cli/chunks/{diagnose-TMXSDOOC.js → diagnose-IZODTXV2.js} +2 -2
- package/dist-cli/chunks/drivers-MK6WJKBC.js +2 -0
- package/dist-cli/chunks/{electron-QFPF7TBY.js → electron-R5GP6RVB.js} +3 -3
- package/dist-cli/chunks/flow-6O4GEOPJ.js +2 -0
- package/dist-cli/chunks/{hints-MXKRR4TG.js → hints-DYDNYX7N.js} +2 -2
- package/dist-cli/chunks/{home-paths-REMWQDAO.js → home-paths-GLMX5OKL.js} +2 -2
- package/dist-cli/chunks/{inspect-XGSQNFV7.js → inspect-FJOPCTY2.js} +3 -3
- package/dist-cli/chunks/install-A3TUGGHN.js +2 -0
- package/dist-cli/chunks/{install-desktop-NQG3RZSA.js → install-desktop-YPJZMZM5.js} +3 -3
- package/dist-cli/chunks/{keys-5QZWXL3F.js → keys-GSYPHWNY.js} +2 -2
- package/dist-cli/chunks/{launch-SBXOZWKO.js → launch-4G2PKW5X.js} +3 -3
- package/dist-cli/chunks/{login-EACQXE24.js → login-KJQGHA64.js} +4 -4
- package/dist-cli/chunks/{logout-IBQLMUML.js → logout-XM2SYH5C.js} +2 -2
- package/dist-cli/chunks/{maestro-LFYXUX7O.js → maestro-EOWGI7DG.js} +2 -2
- package/dist-cli/chunks/{preview-U4SBOEGQ.js → preview-F73TKK37.js} +2 -2
- package/dist-cli/chunks/{profile-GWS5ECMY.js → profile-22FDKBUO.js} +2 -2
- package/dist-cli/chunks/{react-QDHLMVYL.js → react-5L6VPFUP.js} +2 -2
- package/dist-cli/chunks/{record-BUEUWPDI.js → record-JZXCQ4IN.js} +2 -2
- package/dist-cli/chunks/runtime-EEBX7CFV.js +2 -0
- package/dist-cli/chunks/{runtime-delivery-G7L6RVZ7.js → runtime-delivery-LXUM3R4A.js} +2 -2
- package/dist-cli/chunks/{screenshot-T2HBA3VI.js → screenshot-HDRRG33Q.js} +2 -2
- package/dist-cli/chunks/{screenshot-mode-EG5HMIH3.js → screenshot-mode-WY63LZIX.js} +2 -2
- package/dist-cli/chunks/{screenshots-S52AFHTV.js → screenshots-MPV2ENL5.js} +2 -2
- package/dist-cli/chunks/{server-MFFVYUGG.js → server-5LBMCJ3G.js} +2 -2
- package/dist-cli/chunks/setup-repo-SZSYNKNI.js +2 -0
- package/dist-cli/chunks/{skills-HQGWBS2O.js → skills-BQ73YOBF.js} +2 -2
- package/dist-cli/chunks/{start-E3DRYY7W.js → start-2WU4W6ZU.js} +4 -4
- package/dist-cli/chunks/store-RE45SUBF.js +2 -0
- package/dist-cli/chunks/telemetry-DG6GJLCP.js +2 -0
- package/dist-cli/chunks/{test-ZY3EF62K.js → test-OVO4CQTG.js} +3 -3
- package/dist-cli/chunks/{three-mode-WSPKQCJ5.js → three-mode-BKM3KFM7.js} +2 -2
- package/dist-cli/chunks/{timeline-3XAB5EWZ.js → timeline-MDXGEDQL.js} +2 -2
- package/dist-cli/chunks/{upgrade-WNENPFM5.js → upgrade-JGQABWVF.js} +2 -2
- package/dist-cli/chunks/upload-UJNUA4ZV.js +2 -0
- package/dist-cli/chunks/{web-D2AOZY44.js → web-WYFAYQ72.js} +2 -2
- package/dist-cli/chunks/{what-happened-F43KNSG6.js → what-happened-PZW2KW6A.js} +2 -2
- package/dist-cli/chunks/{whoami-T22VBR7C.js → whoami-7ATWJQS6.js} +2 -2
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.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 +44 -0
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/cli-constants.cjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/detox/index.cjs +1770 -0
- package/dist-lib/detox/jest-preset.cjs +50 -0
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +1 -1
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/index.cjs +1 -1
- package/dist-lib/metro.cjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/render-mode.cjs +1 -1
- package/dist-lib/scripts/demo-app-registry.cjs +809 -0
- package/dist-lib/scripts/dev-server-scanner.cjs +1269 -0
- package/dist-lib/skills.cjs +8322 -0
- package/dist-lib/vite-base.cjs +3 -3
- package/dist-lib/vite.cjs +1 -1
- package/package.json +39 -10
- package/scripts/demo-app-registry.ts +989 -0
- package/scripts/dev-server-scanner.ts +674 -0
- package/src/agent-daemon-client.ts +390 -0
- package/src/agent-events.ts +71 -0
- package/src/agent-prompt.ts +71 -0
- package/src/agent-sessions.ts +572 -0
- package/src/attached-projects.ts +536 -0
- package/src/auth/shared-session.ts +199 -0
- package/src/backend-origin.ts +49 -0
- package/src/beta.ts +21 -0
- package/src/bridge-constants.ts +10 -0
- package/src/cli-constants.ts +1 -0
- package/src/cli-version.ts +30 -0
- package/src/codex-client.ts +215 -0
- package/src/config.ts +110 -0
- package/src/dev-bundle-resolution.ts +180 -0
- package/src/home-paths.ts +382 -0
- package/src/host/agent-host.ts +576 -0
- package/src/host/bridge-host.ts +2293 -0
- package/src/host/fetch-proxy-handler.ts +288 -0
- package/src/host/fetch-proxy-overrides.ts +39 -0
- package/src/host/open-url.ts +234 -0
- package/src/index.ts +9 -0
- package/src/metro-plugin.ts +207 -0
- package/src/native-dev-bundle-url.ts +62 -0
- package/src/native-seam-manifest.ts +313 -0
- package/src/profiles.ts +179 -0
- package/src/render-mode.ts +27 -0
- package/src/runtime-delivery.ts +334 -0
- package/src/screenshots/compose.ts +422 -0
- package/src/screenshots/frame-compose.ts +438 -0
- package/src/screenshots/orchestrate.ts +244 -0
- package/src/screenshots/registry.ts +58 -0
- package/src/screenshots/schema.ts +364 -0
- package/src/skills/builtin/a11y-review.ts +126 -0
- package/src/skills/builtin/compat-check.ts +104 -0
- package/src/skills/builtin/perf-profile.ts +84 -0
- package/src/skills/builtin/screenshot-all.ts +46 -0
- package/src/skills/builtin/test-flow.ts +118 -0
- package/src/skills/builtin/visual-diff.ts +94 -0
- package/src/skills/registry.ts +107 -0
- package/src/skills/types.ts +41 -0
- package/src/vite-plugin-one.ts +187 -0
- package/src/vite-plugin.ts +1381 -0
- package/src/worklets-babel.ts +132 -0
- package/dist-cli/chunks/auto-bootstrap-FQS4ZD2K.js +0 -2
- package/dist-cli/chunks/beta-VG7CDY2U.js +0 -2
- package/dist-cli/chunks/chunk-2OIBDYHW.js +0 -1
- package/dist-cli/chunks/chunk-6BNLVMXA.js +0 -1
- package/dist-cli/chunks/chunk-6XD6CBJM.js +0 -2
- package/dist-cli/chunks/chunk-CHQTO426.js +0 -1
- package/dist-cli/chunks/chunk-FAPYGVIU.js +0 -4
- package/dist-cli/chunks/chunk-PEHFE3LG.js +0 -64
- package/dist-cli/chunks/chunk-RXH2SLKF.js +0 -2
- package/dist-cli/chunks/chunk-UXQWC5ZR.js +0 -79
- package/dist-cli/chunks/chunk-XFQL74PF.js +0 -5
- package/dist-cli/chunks/cli-version-PWF6I6LY.js +0 -2
- package/dist-cli/chunks/control-UIOXGYXU.js +0 -2
- package/dist-cli/chunks/demo-app-registry-G3BDOFWC.js +0 -2
- package/dist-cli/chunks/drivers-IDQF34HP.js +0 -2
- package/dist-cli/chunks/flow-3JN3Y7RF.js +0 -2
- package/dist-cli/chunks/install-2N3YOOSN.js +0 -2
- package/dist-cli/chunks/runtime-PVB4VGUH.js +0 -2
- package/dist-cli/chunks/setup-repo-YOF7NV5D.js +0 -2
- package/dist-cli/chunks/store-MAI6D3UO.js +0 -2
- package/dist-cli/chunks/telemetry-RCQKCJTH.js +0 -2
- package/dist-cli/chunks/upload-YLJ4RA73.js +0 -2
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { createRequire } from 'node:module'
|
|
2
|
+
import path from 'node:path'
|
|
3
|
+
import { fileURLToPath } from 'node:url'
|
|
4
|
+
import type { TransformOptions } from '@babel/core'
|
|
5
|
+
import type { TransformResult } from 'vite'
|
|
6
|
+
|
|
7
|
+
const sootsimPluginRequire = createRequire(import.meta.url)
|
|
8
|
+
const sootsimRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..')
|
|
9
|
+
const workspaceRoot = path.resolve(sootsimRoot, '..', '..')
|
|
10
|
+
|
|
11
|
+
// handle files containing upstream reanimated/worklets worklet directives and
|
|
12
|
+
// inline updaters to auto-workletizable hooks. the babel transform lifts those
|
|
13
|
+
// into functions carrying `__closure`, `__workletHash`, and `__initData`.
|
|
14
|
+
export const REANIMATED_AUTOWORKLETIZATION_KEYWORDS = [
|
|
15
|
+
'worklet',
|
|
16
|
+
'useAnimatedGestureHandler',
|
|
17
|
+
'useAnimatedScrollHandler',
|
|
18
|
+
'useFrameCallback',
|
|
19
|
+
'useAnimatedStyle',
|
|
20
|
+
'useAnimatedProps',
|
|
21
|
+
'createAnimatedPropAdapter',
|
|
22
|
+
'useDerivedValue',
|
|
23
|
+
'useAnimatedReaction',
|
|
24
|
+
'useWorkletCallback',
|
|
25
|
+
'withTiming',
|
|
26
|
+
'withSpring',
|
|
27
|
+
'withDecay',
|
|
28
|
+
'withRepeat',
|
|
29
|
+
'runOnUI',
|
|
30
|
+
'executeOnUIRuntimeSync',
|
|
31
|
+
]
|
|
32
|
+
|
|
33
|
+
const REANIMATED_REGEX = new RegExp(REANIMATED_AUTOWORKLETIZATION_KEYWORDS.join('|'))
|
|
34
|
+
// false-positive packages: they mention the keywords in strings/comments but
|
|
35
|
+
// don't actually use worklets, or transforming them causes circular deps /
|
|
36
|
+
// breaks the build. keep this minimal; the regex above is already
|
|
37
|
+
// content-gated so most of node_modules skips for free.
|
|
38
|
+
const REANIMATED_IGNORED_PATHS_REGEX =
|
|
39
|
+
/node_modules\/(react|react-dom|react-native|react-native-web)\//
|
|
40
|
+
const SOOTSIM_ENGINE_SRC_PATH = '/packages/sootsim-engine/src/'
|
|
41
|
+
const SOOTSIM_ENGINE_TEST_FIXTURE_PATH = '/packages/sootsim-engine/src/test-fixtures/'
|
|
42
|
+
const REANIMATED_IMPORT_REGEX =
|
|
43
|
+
/(?:from\s+['"]react-native-reanimated(?:\/[^'"]*)?['"]|require\(\s*['"]react-native-reanimated(?:\/[^'"]*)?['"]\s*\))/
|
|
44
|
+
|
|
45
|
+
let workletsPluginPath: string | null = null
|
|
46
|
+
let babelCorePromise: Promise<typeof import('@babel/core')> | null = null
|
|
47
|
+
|
|
48
|
+
export function shouldApplyWorkletsPlugin(id: string, code: string): boolean {
|
|
49
|
+
if (!/\.(tsx?|jsx?|mjs|cjs|mts|cts)$/.test(id)) return false
|
|
50
|
+
if (REANIMATED_IGNORED_PATHS_REGEX.test(id)) return false
|
|
51
|
+
// sootsim engine source has local helpers named like upstream reanimated
|
|
52
|
+
// hooks. only transform engine files that actually import upstream
|
|
53
|
+
// react-native-reanimated; otherwise the plugin rewrites callbacks for our
|
|
54
|
+
// own engine hooks and expects a `this.__closure` binding they never provide.
|
|
55
|
+
if (
|
|
56
|
+
id.includes(SOOTSIM_ENGINE_SRC_PATH) &&
|
|
57
|
+
!id.includes(SOOTSIM_ENGINE_TEST_FIXTURE_PATH) &&
|
|
58
|
+
!REANIMATED_IMPORT_REGEX.test(code)
|
|
59
|
+
) {
|
|
60
|
+
return false
|
|
61
|
+
}
|
|
62
|
+
return REANIMATED_REGEX.test(code)
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
function getWorkletsPluginPath(): string {
|
|
66
|
+
if (!workletsPluginPath) {
|
|
67
|
+
workletsPluginPath = path.resolve(
|
|
68
|
+
workspaceRoot,
|
|
69
|
+
'node_modules',
|
|
70
|
+
'react-native-worklets',
|
|
71
|
+
'plugin',
|
|
72
|
+
)
|
|
73
|
+
}
|
|
74
|
+
return workletsPluginPath
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
function isTypescriptFile(id: string): boolean {
|
|
78
|
+
return /\.(tsx?|mts|cts)$/.test(id)
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function createWorkletsBabelOptions(
|
|
82
|
+
id: string,
|
|
83
|
+
sourceMaps: TransformOptions['sourceMaps'],
|
|
84
|
+
): TransformOptions {
|
|
85
|
+
const isTSX = id.endsWith('.tsx')
|
|
86
|
+
const isTS = isTypescriptFile(id)
|
|
87
|
+
return {
|
|
88
|
+
filename: id,
|
|
89
|
+
babelrc: false,
|
|
90
|
+
configFile: false,
|
|
91
|
+
sourceMaps,
|
|
92
|
+
presets: isTS
|
|
93
|
+
? [
|
|
94
|
+
[
|
|
95
|
+
sootsimPluginRequire.resolve('@babel/preset-typescript'),
|
|
96
|
+
{ isTSX, allExtensions: isTSX, allowDeclareFields: true },
|
|
97
|
+
],
|
|
98
|
+
]
|
|
99
|
+
: [],
|
|
100
|
+
plugins: [
|
|
101
|
+
[sootsimPluginRequire.resolve('@babel/plugin-syntax-jsx')],
|
|
102
|
+
[getWorkletsPluginPath(), { processNestedWorklets: true }],
|
|
103
|
+
],
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export async function transformWorkletsCode(
|
|
108
|
+
code: string,
|
|
109
|
+
id: string,
|
|
110
|
+
sourceMaps: TransformOptions['sourceMaps'] = true,
|
|
111
|
+
): Promise<Pick<TransformResult, 'code' | 'map'> | null> {
|
|
112
|
+
if (!babelCorePromise) {
|
|
113
|
+
babelCorePromise = import('@babel/core') as Promise<typeof import('@babel/core')>
|
|
114
|
+
}
|
|
115
|
+
const { transformAsync } = await babelCorePromise
|
|
116
|
+
const result = await transformAsync(code, createWorkletsBabelOptions(id, sourceMaps))
|
|
117
|
+
if (!result?.code) return null
|
|
118
|
+
return { code: result.code, map: (result.map ?? null) as TransformResult['map'] }
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export function transformWorkletsCodeSync(
|
|
122
|
+
code: string,
|
|
123
|
+
id: string,
|
|
124
|
+
sourceMaps: TransformOptions['sourceMaps'] = false,
|
|
125
|
+
): Pick<TransformResult, 'code' | 'map'> | null {
|
|
126
|
+
const { transformSync } = sootsimPluginRequire(
|
|
127
|
+
'@babel/core',
|
|
128
|
+
) as typeof import('@babel/core')
|
|
129
|
+
const result = transformSync(code, createWorkletsBabelOptions(id, sourceMaps))
|
|
130
|
+
if (!result?.code) return null
|
|
131
|
+
return { code: result.code, map: (result.map ?? null) as TransformResult['map'] }
|
|
132
|
+
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.83 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a,b,c,d}from"./chunk-4LS5MZAI.js";import"./chunk-YUELRHGB.js";import"./chunk-HNWEELAE.js";import"./chunk-6XD6CBJM.js";import"./chunk-2AWQ7OB2.js";import"./chunk-OYMFNU3M.js";export{c as ensureDaemonRunning,a as ensureRuntimeInstalled,d as ensureSootsimReady,b as resolveBootstrapPort};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.83 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.83 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.83 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.83 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a as R}from"./chunk-CJY3AVI7.js";import{l as D}from"./chunk-2AWQ7OB2.js";import{a as T}from"./chunk-OYMFNU3M.js";function Y(e){if(!e||typeof e!="object")return!1;let t=e;return typeof t.type=="string"&&typeof t.ts=="number"}function I(e){let t=e.trim();if(!t)return null;try{let r=JSON.parse(t);return Y(r)?r:null}catch{return null}}import{randomBytes as G,createHash as q}from"node:crypto";import m from"node:fs";import y from"node:path";var N=null;function _(){if(N)return N;let e=process.env.SOOTSIM_USER_DATA_DIR;return e||D()}function h(){return _()}function U(){return y.join(_(),"attached-projects.json")}function $(){return{version:1,attachedProjects:[],previewAttachments:[],agentSessions:[]}}function S(){let e=U(),t;try{t=m.readFileSync(e,"utf8")}catch(r){if(r.code==="ENOENT")return $();throw r}try{let r=JSON.parse(t);if(!r||typeof r!="object")throw new Error("not an object");return{version:1,attachedProjects:Array.isArray(r.attachedProjects)?r.attachedProjects:[],previewAttachments:Array.isArray(r.previewAttachments)?r.previewAttachments:[],agentSessions:Array.isArray(r.agentSessions)?r.agentSessions:[]}}catch(r){let n=`${e}.corrupt-${Date.now()}`;try{m.renameSync(e,n),console.warn(`[sootsim] attached-projects.json was unparseable; quarantined to ${n}. original error: ${r.message}`)}catch{}return $()}}function X(e){let t=U();m.mkdirSync(y.dirname(t),{recursive:!0});let r=`${t}.tmp-${process.pid}-${Date.now()}`,n=m.openSync(r,"w",384);try{m.writeFileSync(n,JSON.stringify(e,null,2)),m.fsyncSync(n)}finally{m.closeSync(n)}m.renameSync(r,t)}function w(e){let t=S();return e(t),X(t),t}function B(e){return q("sha256").update(y.resolve(e)).digest("hex").slice(0,16)}function K(){return`s_${G(10).toString("hex")}`}function ge(e){let t=y.resolve(e.cwd),r=B(t),n;return w(o=>{let s=o.attachedProjects.find(c=>c.id===r);if(s){let c={...s,...e,id:r,cwd:t,sourceRoots:e.sourceRoots??s.sourceRoots,knownBundleUrls:e.knownBundleUrls??s.knownBundleUrls,pinnedSourceResolutions:e.pinnedSourceResolutions??s.pinnedSourceResolutions,telemetry:e.telemetry??s.telemetry,updatedAt:Date.now(),createdAt:s.createdAt},g=o.attachedProjects.indexOf(s);o.attachedProjects[g]=c,n=c;return}let a=Date.now(),d={id:r,name:e.name??y.basename(t),cwd:t,repoRoot:e.repoRoot,sourceRoots:e.sourceRoots??[t],framework:e.framework??"unknown",bundleId:e.bundleId,knownBundleUrls:e.knownBundleUrls??[],preferredProvider:e.preferredProvider??"codex",preferredTransport:e.preferredTransport??"tmux",editorOpenCommand:e.editorOpenCommand,moshiWebhookToken:e.moshiWebhookToken,pinnedSourceResolutions:e.pinnedSourceResolutions??{},isolateDiscovery:e.isolateDiscovery,git:e.git,telemetry:e.telemetry??{lastOpened:0,runsCompleted:0},createdAt:a,updatedAt:a};o.attachedProjects.push(d),n=d}),n}function F(e){return S().attachedProjects.find(t=>t.id===e)??null}function ye(){return S().attachedProjects}var Q=336*60*60*1e3;function he(e,t={}){w(r=>{let n=r.attachedProjects.find(s=>s.id===e);if(!n)return;let o=t.ts??Date.now();if(n.telemetry.runsCompleted=(n.telemetry.runsCompleted??0)+1,typeof t.usd=="number"&&Number.isFinite(t.usd)&&t.usd>=0){let s=n.telemetry.costHistory??[],a=o-Q,d=s.filter(c=>c.ts>=a);d.push({ts:o,usd:t.usd}),n.telemetry.costHistory=d}n.updatedAt=o})}function Se(e,t=Date.now()){let r=t-6048e5,n=e.telemetry.costHistory??[],o=0;for(let s of n)s.ts>=r&&(o+=s.usd);return o}function we(e){w(t=>{t.attachedProjects=t.attachedProjects.filter(r=>r.id!==e),t.agentSessions=t.agentSessions.filter(r=>r.projectId!==e),t.previewAttachments=t.previewAttachments.filter(r=>r.projectId!==e)})}function M(e){let t;return w(r=>{if(e.id){let a=r.agentSessions.find(d=>d.id===e.id);if(a){let d={...a,...e,lastSeenAt:Date.now()},c=r.agentSessions.indexOf(a);r.agentSessions[c]=d,t=d;return}}let n=r.attachedProjects.find(a=>a.id===e.projectId);if(!n)throw new Error(`upsertSession: no AttachedProject with id=${e.projectId}`);let o=Date.now(),s={id:e.id??K(),projectId:e.projectId,provider:e.provider,transport:e.transport??n.preferredTransport,cwd:e.cwd??n.cwd,claudeSessionUuid:e.claudeSessionUuid,tmuxSessionName:e.tmuxSessionName,wrapperPid:e.wrapperPid,status:e.status??"idle",needsAttention:e.needsAttention??!1,lastPrompt:e.lastPrompt,lastSummary:e.lastSummary,lastTurnFiles:e.lastTurnFiles,currentlyEditing:e.currentlyEditing,lastSeenAt:o,createdAt:o};r.agentSessions.push(s),t=s}),t}function k(e){return S().agentSessions.find(t=>t.id===e)??null}function C(e){let t=S().agentSessions;return e?t.filter(r=>r.projectId===e):t}function v(e,t){w(r=>{let n=r.agentSessions.find(s=>s.id===e);if(!n)return;let o=r.agentSessions.indexOf(n);r.agentSessions[o]={...n,...t,id:n.id,projectId:n.projectId,createdAt:n.createdAt,lastSeenAt:Date.now()}})}async function ve(){if(S().attachedProjects.length>0)return;let t;try{t=(await import("./demo-app-registry-G3BDOFWC.js")).APPS}catch(n){console.warn("[sootsim] seedFromDemoAppRegistry: could not load demo registry:",n.message);return}if(!Array.isArray(t))return;let r=t;w(n=>{for(let o of r){if(!m.existsSync(o.dir))continue;let s=y.resolve(o.dir),a=B(s);if(n.attachedProjects.some(c=>c.id===a))continue;let d=Date.now();n.attachedProjects.push({id:a,name:o.label,cwd:s,sourceRoots:[s],framework:o.framework,knownBundleUrls:[`http://localhost:${o.preferredPort}/index.bundle`],preferredProvider:"codex",preferredTransport:"tmux",pinnedSourceResolutions:{},telemetry:{lastOpened:0,runsCompleted:0},createdAt:d,updatedAt:d})}})}import{spawn as V,spawnSync as z}from"node:child_process";import{randomUUID as Z}from"node:crypto";import i,{constants as f}from"node:fs";import u from"node:path";import ee from"node:readline";function j(e){return u.join(h(),"sessions",e)}function W(e){return u.join(j(e),"prompt.in")}function J(e){return u.join(j(e),"events.out")}function te(e){return u.join(h(),"transcripts",`${e}.log`)}function O(e,t){if(!e)return!1;try{process.kill(e,0)}catch{return!1}return!(t&&!i.existsSync(j(t)))}function re(){if(process.env.SOOTSIM_BIN)return{cmd:process.env.SOOTSIM_BIN,prefixArgs:[]};if(process.versions.electron){let n=process.resourcesPath;if(n){let o=[u.join(n,"bin","sootsim"),u.join(n,"bin",`sootsim-${process.platform}-${process.arch}`)];for(let s of o)if(i.existsSync(s))return{cmd:s,prefixArgs:[]}}}let e=ne();if(e)return e;let t=process.argv[0],r=process.argv[1];if(r&&/\.(ts|tsx|mjs|cjs|js)$/.test(r))return{cmd:t,prefixArgs:[r]};if(!r||r.includes("/.bin/"))throw new Error("sootsim CLI not found. set SOOTSIM_BIN to the path of the sootsim binary, or build the workspace CLI via `bun run --cwd packages/sootsim build:cli`.");return{cmd:t,prefixArgs:[]}}function ne(){try{let e=se();if(!e)return null;let t=`sootsim-${process.platform}-${process.arch}`,r=u.join(e,"dist-bin",t);if(i.existsSync(r))return{cmd:r,prefixArgs:[]};let n=u.join(e,"dist-cli","bin.js");if(i.existsSync(n)){try{let o=u.join(e,"cli","commands","agent-wrapper.ts");if(i.existsSync(o)){let s=i.statSync(o).mtimeMs;i.statSync(n).mtimeMs<s&&console.warn("[sootsim] dist-cli/bin.js is older than agent-wrapper.ts \u2014 rebuild with `bun run --cwd packages/sootsim build:cli` (watch:cli:binary builds dist-bin/ instead).")}}catch{}return{cmd:process.execPath,prefixArgs:[n]}}return null}catch{return null}}function se(){try{let r=T.resolve("sootsim/package.json");return u.dirname(r)}catch{}let e=oe();if(!e)return null;let t=u.dirname(e);for(let r=0;r<8;r++){let n=u.join(t,"package.json");try{if(i.existsSync(n)&&JSON.parse(i.readFileSync(n,"utf8")).name==="sootsim")return t}catch{}let o=u.dirname(t);if(o===t)break;t=o}return null}function oe(){try{let e=import.meta.url;return!e||!e.startsWith("file://")?null:decodeURIComponent(e.slice(7))}catch{return null}}async function ie(e,t,r){let n=u.join(h(),"locks");i.mkdirSync(n,{recursive:!0});try{i.chmodSync(n,448)}catch{}let o=u.join(n,`start-${e}-${t}.lock`),s=Date.now()+4e3,a=null;for(;a===null;)try{a=i.openSync(o,f.O_WRONLY|f.O_CREAT|f.O_EXCL,384)}catch(d){if(d.code!=="EEXIST")throw d;try{let c=Number(i.readFileSync(o,"utf8").trim());if(c&&!ce(c)){i.unlinkSync(o);continue}}catch{}if(Date.now()>s)throw new Error(`another start is in progress for project=${e} provider=${t} (lock: ${o})`);await new Promise(c=>setTimeout(c,50))}try{return i.writeFileSync(a,String(process.pid)),await r()}finally{try{i.closeSync(a)}catch{}try{i.unlinkSync(o)}catch{}}}function ce(e){try{return process.kill(e,0),!0}catch{return!1}}function L(e){let t=u.dirname(e);i.mkdirSync(t,{recursive:!0});try{i.chmodSync(t,448)}catch{}if(i.existsSync(e))try{if(i.statSync(e).isFIFO()){try{i.chmodSync(e,384)}catch{}return}i.unlinkSync(e)}catch{i.unlinkSync(e)}let r=z("mkfifo",["-m","600",e]);if(r.status!==0)throw new Error(`mkfifo(${e}) failed: ${r.stderr?.toString().trim()||"unknown error"}`)}var l=class extends Error{code;constructor(t,r){super(r),this.code=t}};async function Te(e){let t=F(e.projectId);if(!t)throw new l("NO_PROJECT",`no project with id=${e.projectId}`);let r=e.provider||t.preferredProvider||"codex";return ie(t.id,r,async()=>{let n=C(t.id).find(p=>p.provider===r&&p.status!=="ended"&&O(p.wrapperPid,p.id));if(n)throw new l("ALREADY_RUNNING",`session already running for project=${t.id} provider=${r} (session ${n.id}, pid ${n.wrapperPid}). end it first with \`sootsim agent end <sessionId>\`.`);let o=r==="claude"?Z():void 0,s=M({projectId:t.id,provider:r,transport:"pty",cwd:t.cwd,status:"idle",claudeSessionUuid:o}),a=W(s.id),d=J(s.id),c=te(s.id);L(a),L(d);let g=u.dirname(c);i.mkdirSync(g,{recursive:!0});try{i.chmodSync(g,448)}catch{}let{cmd:A,prefixArgs:H}=re(),P=[...H,"agent-wrapper","--session-id",s.id,"--project-id",t.id,"--provider",r,"--cwd",t.cwd,"--prompt-in",a,"--events-out",d,"--transcript",c];e.codexBin&&P.push("--codex-bin",e.codexBin),e.claudeBin&&P.push("--claude-bin",e.claudeBin),e.freshThread&&P.push("--fresh-thread"),o&&P.push("--claude-session-uuid",o);let x=V(A,P,{detached:!0,stdio:"ignore",env:{...process.env,SOOTSIM_USER_DATA_DIR:h()}});x.unref();let E=e.readyTimeoutMs??6e3,b=await ae(d,p=>p.type==="ready"||p.type==="error",E);if(!b||b.type==="error"){if(x.pid)try{process.kill(x.pid,"SIGTERM")}catch{}try{i.rmSync(j(s.id),{recursive:!0,force:!0})}catch{}v(s.id,{status:"ended"});let p=b&&b.type==="error"?b.message:`no ready event within ${E}ms`;throw new l("WRAPPER_FAILED",p)}return v(s.id,{wrapperPid:x.pid,status:"idle"}),{session:k(s.id),wrapperPid:x.pid}})}async function De(e,t){let r=k(e);if(!r)throw new l("NO_SESSION",`no session with id=${e}`);if(!O(r.wrapperPid,e))throw v(e,{status:"ended"}),new l("NOT_ALIVE",`session wrapper is not alive (pid=${r.wrapperPid}). start a new session.`);let n=W(e);if(!i.existsSync(n))throw new l("NO_FIFO",`prompt FIFO missing: ${n}`);let o=i.openSync(n,f.O_WRONLY);try{let s=R(t);if(!s)throw new l("EMPTY_PROMPT","prompt text is empty");i.writeSync(o,s+`
|
|
3
|
-
`)}finally{i.closeSync(o)}v(e,{lastPrompt:t.displayText??t.text,status:"working"})}async function Re(e){let t=k(e);if(!t)throw new l("NO_SESSION",`no session with id=${e}`);if(O(t.wrapperPid,e))try{process.kill(t.wrapperPid,"SIGTERM")}catch{}let r=j(e),n=h();if(r.startsWith(n))try{i.rmSync(r,{recursive:!0,force:!0})}catch{}v(e,{status:"ended",wrapperPid:void 0})}function Ne(e,t){let r=J(e);if(!i.existsSync(r))throw new l("NO_FIFO",`events FIFO missing: ${r}`);let n=i.openSync(r,f.O_RDWR),o=i.createReadStream("",{fd:n,autoClose:!0}),s=ee.createInterface({input:o,crlfDelay:1/0});s.on("line",d=>{let c=I(d);c&&t(c)});let a=!1;return()=>{if(!a){a=!0;try{s.close()}catch{}try{o.destroy()}catch{}}}}async function ae(e,t,r){let n=i.openSync(e,f.O_RDWR|f.O_NONBLOCK),o=Buffer.alloc(8192),s="",a=Date.now()+r;try{for(;Date.now()<a;){let d=0;try{d=i.readSync(n,o,0,o.length,null)}catch(c){if(c.code!=="EAGAIN")throw c;d=0}if(d>0){s+=o.subarray(0,d).toString("utf8");let c;for(;(c=s.indexOf(`
|
|
4
|
-
`))>=0;){let g=s.slice(0,c);s=s.slice(c+1);let A=I(g);if(A&&t(A))return A}}else await new Promise(c=>setTimeout(c,30))}return null}finally{i.closeSync(n)}}export{I as a,h as b,ge as c,F as d,ye as e,he as f,Se as g,we as h,k as i,C as j,v as k,ve as l,j as m,W as n,J as o,te as p,O as q,re as r,l as s,Te as t,De as u,Re as v,Ne as w};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.83 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a as v}from"./chunk-OYMFNU3M.js";import{existsSync as o,readFileSync as p,writeFileSync as d}from"node:fs";import{homedir as j}from"node:os";import{dirname as $,join as s,resolve as P}from"node:path";var _=j();function Q(e){let t=e;for(;;){if(o(s(t,"pnpm-workspace.yaml"))||o(s(t,"turbo.json"))||o(s(t,"nx.json"))||o(s(t,"lerna.json")))return t;let r=s(t,"package.json");if(o(r))try{if(JSON.parse(p(r,"utf8")).workspaces)return t}catch{}let n=$(t);if(n===t)return null;t=n}}function A(e,t){let r=Q(process.cwd()),n=[r?P(r,e):null,P(process.cwd(),e),P(process.cwd(),t)].filter(a=>!!a);for(let a of n)if(o(a))return a;return n[0]??P(process.cwd(),e)}var X=()=>A("packages/sootsim-engine/scripts/expensify-web-proxy.ts","scripts/expensify-web-proxy.ts"),z=()=>A("packages/sootsim-engine/scripts/rainbow-metadata-proxy.ts","scripts/rainbow-metadata-proxy.ts"),Z=()=>A("packages/compat/src/stubs/mattermost-rnutils-native.ts","../compat/src/stubs/mattermost-rnutils-native.ts"),ee=()=>A("packages/compat/src/stubs/native-seams/react-native-keychain-manager.ts","../compat/src/stubs/native-seams/react-native-keychain-manager.ts"),L=()=>A("packages/compat/src/stubs/mattermost-network-client-native.ts","../compat/src/stubs/mattermost-network-client-native.ts"),te=()=>A("packages/sootsim-engine/scripts/mattermost-preview-server.ts","scripts/mattermost-preview-server.ts"),y={USE_NGROK:"true",NGROK_URL:"http://localhost:9000/",SECURE_NGROK_URL:"http://localhost:9000/"},ne=s(_,"github/mattermost-mobile"),I=s(_,"github/uniswap-interface"),re=s(I,"apps/mobile"),T=s(I,".env.defaults.local"),se="stored-in-.env.local",W="# sootsim demo env overrides",oe=s(I,"packages/uniswap/src/features/forceUpgrade/hooks/useForceUpgradeStatus.ts"),ae=s(I,"apps/mobile/src/notification-service/data-sources/createForceUpgradeNotificationDataSource.ts"),M="SOOTSIM_DEMO_DISABLE_FORCE_UPGRADE";function B(e){if(!o(e))return{};let t={},r=p(e,"utf8");for(let n of r.split(/\r?\n/)){let a=n.trim();if(!a||a.startsWith("#"))continue;let u=a.match(/^([A-Za-z_][A-Za-z0-9_]*)\s*=\s*(.*)$/);if(!u)continue;let i=u[2].trim();(i.startsWith('"')&&i.endsWith('"')||i.startsWith("'")&&i.endsWith("'"))&&(i=i.slice(1,-1)),t[u[1]]=i}return t}function w(e){if(!e)return!1;let t=e.trim();return!(!t||t.includes(se)||t==="TRADING_API_KEY"||t==="UNISWAP_API_KEY")}function Y(e,t){for(let r of e)for(let n of t){let a=r[n];if(w(a))return a.trim()}}function J(){let e=B(T),t=B(s(I,"apps/web/.env")),r=[process.env,e,t],n={},a=[["AMPLITUDE_PROXY_URL_OVERRIDE",["REACT_APP_AMPLITUDE_PROXY_URL"]],["QUICKNODE_ENDPOINT_NAME",["REACT_APP_QUICKNODE_ENDPOINT_NAME"]],["QUICKNODE_ENDPOINT_TOKEN",["REACT_APP_QUICKNODE_ENDPOINT_TOKEN"]],["INFURA_KEY",["REACT_APP_INFURA_KEY"]],["STATSIG_API_KEY",["REACT_APP_STATSIG_API_KEY"]],["STATSIG_PROXY_URL_OVERRIDE",["REACT_APP_STATSIG_PROXY_URL"]],["WALLETCONNECT_PROJECT_ID",["REACT_APP_WALLET_CONNECT_PROJECT_ID"]],["WALLETCONNECT_PROJECT_ID_BETA",["REACT_APP_WALLET_CONNECT_PROJECT_ID"]],["WALLETCONNECT_PROJECT_ID_DEV",["REACT_APP_WALLET_CONNECT_PROJECT_ID"]],["TRADING_API_KEY",["REACT_APP_TRADING_API_KEY"]],["UNISWAP_API_KEY",[]]];for(let[i,l]of a){let R=Y(r,[i,...l]);if(R){n[i]=R;for(let f of l)n[f]=R}}if(!(w(n.TRADING_API_KEY)&&w(n.UNISWAP_API_KEY))){let i=Y(r,["GRAPHQL_URL_OVERRIDE","REACT_APP_AWS_API_ENDPOINT"])||"https://interface.gateway.uniswap.org/v1/graphql";n.API_BASE_URL_OVERRIDE="https://interface.gateway.uniswap.org",n.API_BASE_URL_V2_OVERRIDE="https://interface.gateway.uniswap.org/v2",n.GRAPHQL_URL_OVERRIDE=i,n.TRADING_API_URL_OVERRIDE="https://trading-api-labs.interface.gateway.uniswap.org",n.FOR_API_URL_OVERRIDE="https://for.interface.gateway.uniswap.org/v2/FOR.v1.FORService"}return n}function ie(){let e=o(T)?p(T,"utf8"):"";if(e&&!e.includes(W))return;let t=J(),r=[W];for(let[n,a]of Object.entries(t).sort(([u],[i])=>u.localeCompare(i)))r.push(`${n}=${JSON.stringify(a)}`);r.push(""),d(T,`${r.join(`
|
|
3
|
-
`)}
|
|
4
|
-
`)}function ce(){let e=`export function useForceUpgradeStatus(): ForceUpgradeStatus {
|
|
5
|
-
`,t=` // sootsim demo: bypass the force-upgrade gate during local engine demos.
|
|
6
|
-
return 'not-required'
|
|
7
|
-
|
|
8
|
-
`,r=` // sootsim demo: bypass the force-upgrade gate during local engine demos.
|
|
9
|
-
if (process.env.${M} === 'true') {
|
|
10
|
-
return 'not-required'
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
`,n=` const getForceUpgradeStatus = (): ForceUpgradeStatus => {
|
|
14
|
-
`,a=` // sootsim demo: bypass the force-upgrade gate during local engine demos.
|
|
15
|
-
return 'not-required'
|
|
16
|
-
|
|
17
|
-
`,u=` // sootsim demo: bypass the force-upgrade gate during local engine demos.
|
|
18
|
-
if (process.env.${M} === 'true') {
|
|
19
|
-
return 'not-required'
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
`,i=(l,R,f,U)=>{let g=p(l,"utf8");if(!g.includes(f)){if(g.includes(U)){d(l,g.replace(U,f));return}if(!g.includes(R))throw new Error(`uniswap demo patch failed: expected snippet not found in ${l}`);d(l,g.replace(R,`${R}${f}`))}};i(oe,e,t,r),i(ae,n,a,u)}var E=s(_,"github/joplin"),_e=s(E,"packages/app-mobile"),de=["packages/lib","packages/renderer","packages/turndown","packages/turndown-plugin-gfm","packages/editor","packages/tools","packages/utils","packages/fork-htmlparser2","packages/fork-uslug","packages/fork-sax","packages/htmlpack","packages/react-native-saf-x","packages/react-native-alarm-notification"];function pe(){if(o(E))for(let e of de){let t=s(E,e);if(!o(t))continue;let r=s(t,".watchmanconfig");o(r)||d(r,`{}
|
|
23
|
-
`)}}var x=["packages/lib/models/Setting.js","packages/turndown/lib/turndown.cjs.js","packages/app-mobile/pluginAssets/index.js"];function ue(){if(!o(E)||x.filter(n=>!o(s(E,n))).length===0)return;let{execSync:t}=v("node:child_process");t("yarn buildParallel",{cwd:E,stdio:"inherit",env:{...process.env,NO_FLIPPER:"1",CI:""}});let r=x.filter(n=>!o(s(E,n)));if(r.length>0)throw new Error(`joplin demo: yarn buildParallel did not produce: ${r.join(", ")}`)}var m=s(_,"github/rainbow"),O=s(m,"src/graphql"),D=s(O,"config.js"),N=s(m,"src/references/networks.json"),S="https://metadata.p.rainbow.me",k=9011,C=`http://127.0.0.1:${k}`,K="https://api.thegraph.com/subgraphs/name/ensdomains/ens",H="0x0000000000000000000000000000000000000000",le="https://relay.rainbow.me",Re="sootsim-rainbow-demo-master-key-do-not-use-for-real-wallets",Ee="https://rpc.rainbow.me/v1",me="",V={1:"https://ethereum-rpc.publicnode.com"},G="sootsim-rainbow-demo-api-key",Ae="0x736f6f7473696d2d7261696e626f772d64656d6f2d686173682d6b6579000000",fe=["src/graphql/__generated__/ens.ts","src/graphql/__generated__/metadata.ts","src/graphql/__generated__/metadataPOST.ts"];function b(e,t){let{execSync:r}=v("node:child_process");r(e,{cwd:t,stdio:"inherit",env:{...process.env,METADATA_BASE_URL:S,RAINBOW_RELAY_QUOTE_SIGNER:process.env.RAINBOW_RELAY_QUOTE_SIGNER??H}})}function ge(){if(!o(O))return;let e=o(D)?p(D,"utf8"):"";e.includes(K)&&e.includes(S)||d(D,`exports.config = {
|
|
24
|
-
ens: {
|
|
25
|
-
__name: 'ens',
|
|
26
|
-
document: './queries/ens.graphql',
|
|
27
|
-
schema: {
|
|
28
|
-
method: 'POST',
|
|
29
|
-
url: '${K}',
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
metadata: {
|
|
33
|
-
__name: 'metadata',
|
|
34
|
-
document: './queries/metadata.graphql',
|
|
35
|
-
schema: { method: 'GET', url: '${S}/v1/graph' },
|
|
36
|
-
},
|
|
37
|
-
metadataPOST: {
|
|
38
|
-
__name: 'metadataPOST',
|
|
39
|
-
document: './queries/metadata.graphql',
|
|
40
|
-
schema: { method: 'POST', url: '${S}/v1/graph' },
|
|
41
|
-
},
|
|
42
|
-
arc: {
|
|
43
|
-
__name: 'arc',
|
|
44
|
-
document: './queries/arc.graphql',
|
|
45
|
-
schema: {
|
|
46
|
-
method: 'GET',
|
|
47
|
-
url: 'https://arc-graphql.rainbow.me/graphql',
|
|
48
|
-
headers: {
|
|
49
|
-
'x-api-key': 'ARC_GRAPHQL_API_KEY',
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
arcDev: {
|
|
54
|
-
__name: 'arcDev',
|
|
55
|
-
document: './queries/arc.graphql',
|
|
56
|
-
schema: {
|
|
57
|
-
method: 'GET',
|
|
58
|
-
url: 'https://arc-graphql.rainbowdotme.workers.dev/graphql',
|
|
59
|
-
headers: {},
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
};
|
|
63
|
-
`)}function Oe(){let e={ENABLE_DEV_MODE:"1",IS_TESTING:"false",METADATA_BASE_URL:process.env.RAINBOW_METADATA_BASE_URL??C,ADDYS_API_KEY:process.env.ADDYS_API_KEY??G,ADDYS_BASE_URL:process.env.ADDYS_BASE_URL??C,PLATFORM_API_KEY:process.env.PLATFORM_API_KEY??G,PLATFORM_BASE_URL:process.env.PLATFORM_BASE_URL??C,RAINBOW_MASTER_KEY:process.env.RAINBOW_MASTER_KEY??Re,RAINBOW_RELAY_QUOTE_SIGNER:process.env.RAINBOW_RELAY_QUOTE_SIGNER??H,RAINBOW_RELAY_URL:process.env.RAINBOW_RELAY_URL??le,RPC_PROXY_API_KEY_PROD:me,RPC_PROXY_BASE_URL_PROD:process.env.RAINBOW_RPC_PROXY_BASE_URL??process.env.RPC_PROXY_BASE_URL_PROD??Ee,SECURE_WALLET_HASH_KEY:process.env.SECURE_WALLET_HASH_KEY??Ae},t=["ADDYS_API_KEY","ADDYS_BASE_URL","IMGIX_DOMAIN","IMGIX_TOKEN","PLATFORM_API_KEY","PLATFORM_BASE_URL","RAINBOW_TEST_WALLET","RAINBOW_RELAY_API_KEY","RAINBOW_RELAY_URL","SECURE_WALLET_HASH_KEY","TOKEN_SEARCH_URL","WC_PROJECT_ID"];for(let r of t){let n=process.env[r];n&&(e[r]=n)}return!e.WC_PROJECT_ID&&process.env.RAINBOW_WALLETCONNECT_PROJECT_ID&&(e.WC_PROJECT_ID=process.env.RAINBOW_WALLETCONNECT_PROJECT_ID),e}function Se(){if(!o(N))return;let e=JSON.parse(p(N,"utf8"));if(!Array.isArray(e.networks))return;let t=!1;for(let r of e.networks){let n=r.id?V[r.id]:void 0;!n||!r.defaultRPC||r.defaultRPC.url!==n&&(r.defaultRPC.url=n,t=!0)}t&&d(N,`${JSON.stringify(e)}
|
|
64
|
-
`)}function Ie(){if(!o(m))return;ge(),o(s(O,"node_modules/.bin/graphql-codegen"))||b("fnm exec --using=22 yarn install",O),fe.some(t=>!o(s(m,t)))&&b("fnm exec --using=22 yarn codegen",O),o(N)||b("fnm exec --using=22 yarn fetch:networks",m),Se()}var c=s(_,"github/eigen"),h=s(c,"keys.shared.json"),F=s(c,"metaflags.json"),q=s(c,"src/__generated__/.relay-complete");function Pe(){if(o(h))try{let e=JSON.parse(p(h,"utf8"));if(!e||typeof e!="object")return;let t=e.secure&&typeof e.secure=="object"?e.secure:void 0,r=e.public&&typeof e.public=="object"?e.public:void 0;return!t&&!r?void 0:{secure:t,public:r}}catch{return}}function Te(){let e=process.env.SOOTSIM_ARTSY_EMAIL??process.env.MAESTRO_TEST_EMAIL,t=process.env.SOOTSIM_ARTSY_PASSWORD??process.env.MAESTRO_TEST_PASSWORD,r=Pe(),n={};if(e&&t&&(n.SOOTSIM_LAUNCH_ARGUMENTS=JSON.stringify({email:e,password:t,useMaestroInit:!0})),r&&(n.SOOTSIM_REACT_NATIVE_KEYS_JSON=JSON.stringify(r)),Object.keys(n).length!==0)return{env:n}}function Ne(){if(!o(c))return;let{execSync:e}=v("node:child_process"),t=s(c,".yarn/releases/yarn-4.10.3.cjs");if(o(t)){let n=p(t,"utf8"),a='["clone","-c core.autocrlf=false",';n.includes(a)&&d(t,n.replace(a,'["clone","-c","core.autocrlf=false",'))}if(o(s(c,"node_modules/.yarn-state.yml"))||e("yarn install",{cwd:c,stdio:"inherit",env:{...process.env,YARN_CHECKSUM_BEHAVIOR:"update"}}),!o(h)||!o(F))try{e("yarn setup:oss",{cwd:c,stdio:"inherit"})}catch{if(!o(h)||!o(F))throw new Error("artsy demo: setup:oss did not create keys/metaflags")}let r=s(c,"node_modules/react-native-launch-arguments/package.json");if(o(r)){let n=p(r,"utf8");n.includes('"dist/index.js"')&&d(r,n.replace('"dist/index.js"','"src/index.ts"'))}o(q)||(e("yarn relay",{cwd:c,stdio:"inherit"}),d(q,""))}var ye=[{name:"bluesky",label:"Bluesky",dir:s(_,"github/bluesky"),preferredPort:8082,framework:"expo",command:e=>({cmd:`npx expo start --port ${e}`}),credentials:{envVars:["SOOTSIM_BLUESKY_PASSWORD"],known:{HANDLE:"natew.bsky.social"}}},{name:"3pc",label:"3PunchConvo",dir:s(_,"lightstrike-labs/three-punch-convo-app/apps/one"),preferredPort:8081,framework:"one",command:e=>({cmd:"npx one dev",env:{ONE_PORT:String(e)}})},{name:"uniswap",label:"Uniswap",dir:re,preferredPort:8085,framework:"expo",prepare:()=>{ie(),ce()},command:e=>({cmd:`npx expo start --clear --port ${e}`,env:J()})},{name:"takeout",label:"Takeout",dir:s(_,"takeout"),preferredPort:8086,framework:"one",readyTimeoutMs:24e4,command:e=>({cmd:"bun lite",env:{PORT_OFFSET:String(e-8081),OREZ_DATA_DIR:`${_}/.cache/sootsim-demo/takeout-orez`}})},{name:"expensify",label:"Expensify",dir:s(_,"github/expensify"),preferredPort:8087,framework:"rock",runtimeConfig:{env:y},sidecars:[{name:"web-proxy",port:9e3,readyPath:"/api/Ping",command:()=>({cmd:`bun ${JSON.stringify(X())}`,env:y})}],command:e=>({cmd:`fnm exec --using=20.20.0 npx rock start --port ${e} --no-interactive`,env:y})},{name:"artsy",label:"Artsy",dir:c,preferredPort:8088,framework:"expo",runtimeConfig:Te(),prepare:()=>{Ne()},command:e=>({cmd:`npx react-native start --port ${e}`}),credentials:{envVars:["SOOTSIM_ARTSY_EMAIL","SOOTSIM_ARTSY_PASSWORD"],note:"auto-login reuses Artsy\u2019s built-in Maestro launch-arguments hook"}},{name:"rainbow",label:"Rainbow",dir:m,preferredPort:8089,framework:"rock",sidecars:[{name:"metadata-proxy",port:k,readyPath:"/health",command:()=>({cmd:`bun ${JSON.stringify(z())}`,env:{PORT:String(k),RAINBOW_PUBLIC_RPC_URLS:JSON.stringify(V),RAINBOW_UPSTREAM_METADATA_BASE_URL:S}})}],prepare:()=>{Ie()},command:e=>({cmd:`fnm exec --using=22 yarn start --port ${e} --reset-cache`,env:Oe()}),credentials:{envVars:["RAINBOW_TEST_WALLET","RAINBOW_WALLETCONNECT_PROJECT_ID","WC_PROJECT_ID","IMGIX_DOMAIN","IMGIX_TOKEN"],note:"launcher supplies a demo encryption key and public mainnet RPC; use only a public throwaway mnemonic for RAINBOW_TEST_WALLET"}},{name:"rocket-chat",label:"Rocket.Chat",dir:s(_,"github/Rocket.Chat.ReactNative"),preferredPort:8093,framework:"expo",command:e=>({cmd:`npx react-native start --port ${e}`,env:{RUNNING_E2E_TESTS:"true"}}),credentials:{envVars:["ROCKET_CHAT_DEMO_SERVER","ROCKET_CHAT_DEMO_USERNAME","ROCKET_CHAT_DEMO_PASSWORD"],known:{SERVER:"https://mobile.qa.rocket.chat"},note:"use packages/sootsim-engine/scripts/rocket-chat-demo-auth.ts to create/login a disposable QA user and print the rocketchat://auth deep link"}},{name:"mattermost",label:"Mattermost",dir:ne,preferredPort:8090,framework:"expo",sidecars:[{name:"preview-server",port:8065,readyPath:"/api/v4/system/ping",command:()=>({cmd:`bun ${JSON.stringify(te())}`})}],runtimeConfig:{modules:{"react-native-keychain":!1,"dist/assets/config.json":{inline:{AuthUrlScheme:"mmauth://",AuthUrlSchemeDev:"mmauthbeta://",DefaultServerUrl:"http://localhost:8065",DefaultServerName:"Mattermost Demo",TestServerUrl:"http://localhost:8065",AutoSelectServerUrl:!0,WebsiteURL:"https://mattermost.com",ServerNoticeURL:"https://github.com/mattermost/mattermost-server/blob/master/NOTICE.txt",MobileNoticeURL:"https://github.com/mattermost/mattermost-mobile/blob/master/NOTICE.txt",RudderApiKey:"",SentryEnabled:!1,SentryDsnIos:"",SentryDsnAndroid:"",SentryOptions:{deactivateStacktraceMerging:!0,autoBreadcrumbs:{xhr:!1,console:!0},severityLevelFilter:["fatal"]},ShowReview:!1,ShowOnboarding:!1,ExperimentalNormalizeMarkdownLinks:!1,CustomRequestHeaders:{},CollectNetworkMetrics:!1}}},nativeModules:{RNKeychainManager:{file:ee()},RNUtils:{file:Z()},GenericClient:{file:L()},ApiClient:{file:L()},WebSocketClient:{file:L()}}},command:e=>({cmd:`npx react-native start --host 127.0.0.1 --port ${e}`}),credentials:{known:{SERVER:"http://localhost:8065",USERNAME:"demo",PASSWORD:"DemoPassword1!"},note:"local mattermost-preview seeded through the real REST API; no signup or OTP needed"}},{name:"joplin",label:"Joplin",dir:_e,preferredPort:8084,framework:"expo",prepare:()=>{pe(),ue()},command:e=>({cmd:`npx expo start --port ${e}`,env:{BROWSERSLIST_IGNORE_OLD_DATA:"true"}}),credentials:{note:"no login required \u2014 sync.target=0 (None), seed via WelcomeUtils"}}];export{ye as a};
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.83 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{d as ae,e as le,f as ue}from"./chunk-DP7O5MHK.js";import{d as se}from"./chunk-5DJXZIFZ.js";import{a as re,b as T}from"./chunk-VMXWC2JO.js";import{a as ne}from"./chunk-2PY3UZVO.js";import{c as oe,e as ie,g as I}from"./chunk-YUELRHGB.js";import{createHash as ze}from"crypto";import{readFileSync as D}from"fs";import{gzipSync as pe}from"zlib";function ce(e){let t=(e||"").toLowerCase().split(";")[0].trim();return t?!(t.startsWith("image/")||t.startsWith("video/")||t.startsWith("audio/")||t==="font/woff2"||t==="application/font-woff2"||t==="application/zip"||t==="application/gzip"):!0}function q(e,t){let r=new AbortController,s=setTimeout(()=>r.abort(new Error(`${t} timed out after ${e/1e3}s`)),e);return{signal:r.signal,cancel:()=>clearTimeout(s)}}async function Oe(e){let t=q(12e4,`PUT ${e.url}`),r;try{r=await fetch(e.url,{method:"PUT",headers:{"content-type":e.contentType},body:e.bytes,signal:t.signal})}finally{t.cancel()}if(!r.ok){let s=await r.text().catch(()=>"");throw new Error(`PUT ${e.url} failed ${r.status}: ${s.slice(0,200)}`)}}async function _e(e,t=8,r){let s=0,o=0,i=e.length;await Promise.all(Array.from({length:Math.min(t,i)},async()=>{for(;s<i;){let l=e[s++];await Oe(l),o++,r?.(o,i)}}))}function $e(e,t,r,s){let o=[];o.push({url:e.bundle.putUrl,contentType:e.bundle.contentType,bytes:t});for(let i of e.files){let l=r.get(i.urlhash);l&&o.push({url:i.putUrl,contentType:i.contentType,bytes:l})}e.events&&s?.eventsBytes&&o.push({url:e.events.putUrl,contentType:e.events.contentType,bytes:s.eventsBytes}),e.flowVideo&&s?.videoBytes&&o.push({url:e.flowVideo.putUrl,contentType:e.flowVideo.contentType,bytes:s.videoBytes}),e.storage&&s?.storageBytes&&o.push({url:e.storage.putUrl,contentType:e.storage.contentType,bytes:s.storageBytes});for(let i of e.snapshots??[]){let l=s?.snapshotBytes?.get(i.id);l&&o.push({url:i.putUrl,contentType:i.contentType,bytes:l})}return o}function ke(e){return e.replace(/\/+$/,"")}var A=class extends Error{constructor(r,s,o,i=""){super(r);this.status=s;this.phase=o;this.responseText=i;this.name="PresignedUploadError"}};async function de(e){let t=ke(e.originBase),r={"content-type":"application/json"};e.authHeader&&(r.authorization=e.authHeader),e.adminBypassToken&&(r["x-soot-admin-upload-bypass"]=e.adminBypassToken);let s=q(3e4,"init"),o;try{o=await fetch(`${t}/api/preview/upload/init`,{method:"POST",headers:r,body:JSON.stringify(e.initBody),signal:s.signal})}finally{s.cancel()}if(!o.ok){let p=await o.text().catch(()=>"");throw new A(`init failed: ${o.status} ${p.slice(0,200)}`,o.status,"init",p)}let i=await o.json(),l=$e(i,e.bundleBytes,e.filesByHash,e.extras);await _e(l,e.concurrency??8,e.onPutProgress);let f=q(3e4,"finalize"),c;try{c=await fetch(`${t}/api/preview/upload/finalize`,{method:"POST",headers:r,body:JSON.stringify({token:i.token}),signal:f.signal})}finally{f.cancel()}if(!c.ok){let p=await c.text().catch(()=>"");throw new A(`finalize failed: ${c.status} ${p.slice(0,200)}`,c.status,"finalize",p)}let O=await c.json();return{init:i,finalize:O}}function Ee(e){if(!e)return null;try{let t=JSON.parse(e);return typeof t.message=="string"&&t.message?t.message:null}catch{return null}}var ye=process.env.SOOTSIM_UPLOAD_ORIGIN||"https://sootbean.com",me=process.env.SOOTSIM_PREVIEW_ORIGIN||"https://sootsim.com",K="http://localhost:3000";async function Ae(e){if(e)return e;if(process.env.SOOTSIM_UPLOAD_ORIGIN)return process.env.SOOTSIM_UPLOAD_ORIGIN;try{let t=await fetch(`${K}/api/preview/upload/init`,{method:"OPTIONS"});if(t.ok||t.status===204||t.status===405)return K}catch{}return ye}function R(e){return e.replace(/\/$/,"")}function Le(e){try{let r=new URL(e).hostname.replace(/^\[|\]$/g,"").toLowerCase();return r==="localhost"||r.endsWith(".localhost")||r==="0.0.0.0"||r==="::1"||/^127(?:\.\d{1,3}){3}$/.test(r)}catch{return!1}}function He(e){try{let t=new URL(e).hostname.toLowerCase();return t==="sootbean.com"||t.endsWith(".sootbean.com")}catch{return!1}}function Fe(e,t){return t?R(t):process.env.SOOTSIM_PREVIEW_ORIGIN?R(process.env.SOOTSIM_PREVIEW_ORIGIN):Le(e)?R(e):He(e)?R(me):R(e)}function Me(){console.log(`
|
|
3
|
-
sootsim upload \u2014 publish the current recorded bundle as a /preview/<id> link
|
|
4
|
-
|
|
5
|
-
usage:
|
|
6
|
-
sootsim upload [--origin <url>] [--public-origin <url>] (--events <path> | --video <path>) [--screenshot <path>] [--owner <org> --repo <repo>] [--sim <sim>] [--open] [--assets-only]
|
|
7
|
-
|
|
8
|
-
options:
|
|
9
|
-
--origin <url> upload target (default: auto)
|
|
10
|
-
prefers ${K} when available, otherwise
|
|
11
|
-
falls back to ${ye}
|
|
12
|
-
override with SOOTSIM_UPLOAD_ORIGIN env var
|
|
13
|
-
--public-origin <url>
|
|
14
|
-
public /preview link origin (default: ${me}
|
|
15
|
-
for prod uploads, upload origin for localhost/custom origins).
|
|
16
|
-
override with SOOTSIM_PREVIEW_ORIGIN env var
|
|
17
|
-
--events <path> path to a gzipped events .jsonl.gz file to attach
|
|
18
|
-
required unless --video is present; previews must
|
|
19
|
-
have replay or recording playback data
|
|
20
|
-
--screenshot <path>
|
|
21
|
-
path to a PNG thumbnail to attach to the share
|
|
22
|
-
--video <path> path to a webm/mp4/gif flow recording. embedded inline
|
|
23
|
-
in the pr sticky comment served at
|
|
24
|
-
/api/preview/flow-video?id=<share-id>
|
|
25
|
-
--video-duration-ms <ms>
|
|
26
|
-
duration hint for attached flow video
|
|
27
|
-
--owner <org> associate a session upload with a linked org repo
|
|
28
|
-
--repo <repo> repo name for --owner; the signed-in user must belong
|
|
29
|
-
to the local/org team that owns the link
|
|
30
|
-
--sim <sim> target a specific sim (see: sootsim list)
|
|
31
|
-
--open open the resulting /preview/<id> url in the browser
|
|
32
|
-
--assets-only drop API/JSON/HTML records before upload; keep images,
|
|
33
|
-
fonts, css, js, and binary blobs. live-data demos hit
|
|
34
|
-
the real network at replay time instead of serving
|
|
35
|
-
recorded API snapshots
|
|
36
|
-
-h, --help
|
|
37
|
-
|
|
38
|
-
examples:
|
|
39
|
-
sootsim upload --events ./my-session.jsonl.gz
|
|
40
|
-
sootsim upload --origin http://localhost:3000 --events ./my-session.jsonl.gz --open
|
|
41
|
-
sootsim upload --video /tmp/soot-flow.webm --video-duration-ms 12000
|
|
42
|
-
`)}function b(e,t){let r=e.findIndex(o=>o===t);if(r<0)return;let s=e[r+1];return e.splice(r,2),s}function ge(e,t){let r=e.findIndex(s=>s===t);return r<0?!1:(e.splice(r,1),!0)}function he(e){let t=(e||"").toLowerCase().split(";")[0].trim();return t?!!(t.startsWith("image/")||t.startsWith("font/")||t.startsWith("video/")||t.startsWith("audio/")||t.startsWith("model/")||t==="text/css"||t==="application/javascript"||t==="text/javascript"||t==="application/wasm"||t==="application/font-woff"||t==="application/font-woff2"||t==="application/octet-stream"):!1}async function fe(e){let t=await fetch(e);if(!t.ok)throw new Error(`fetch ${e} -> ${t.status} ${t.statusText}`);return new Uint8Array(await t.arrayBuffer())}function Ce(e){return/\.bundle($|\?)/.test(e)||/\.js($|\?)/.test(e)?"application/javascript":/\.zip($|\?)/.test(e)?"application/zip":"application/javascript"}function Ne(e){try{let t=new URL(e);return t.searchParams.get("lazy")==="true"?(t.searchParams.set("lazy","false"),t.toString()):e}catch{return e}}async function We(e,t){let s=[];for(let o=0;o<t;o+=15e5){let i=Math.min(o+15e5,t),l=await I(e,`(window.__sootsimLastTransformedBundle?.text || "").slice(${o}, ${i})`);if(typeof l!="string")return null;s.push(l)}return s.join("")}function G(e){let t=new Map;for(let r of e)t.set(r.urlhash||r.url,r);return Array.from(t.values())}async function nt(e,t){(e.includes("--help")||e.includes("-h"))&&(Me(),process.exit(0));let r=[...e],s=await Ae(b(r,"--origin")),o=Fe(s,b(r,"--public-origin")),i=b(r,"--events"),l=b(r,"--screenshot"),f=b(r,"--video"),c=b(r,"--video-duration-ms"),O=b(r,"--owner"),p=b(r,"--repo"),be=ge(r,"--open");(O&&!p||!O&&p)&&(console.error(" --owner and --repo must be provided together"),process.exit(1)),!i&&!f&&(console.error(" preview uploads require playback data: pass --events or --video.\n for a normal local preview, use `sootsim record --mode combined --open`\n or `sootsim flow --preview` instead of uploading a bundle-only snapshot."),process.exit(1));let j=ge(r,"--assets-only"),we=oe(r,{stripBooleanFlags:[],stripValueFlags:[]}),w=ie(we),u,J=[],y=[],L=null;try{if(u=await I(w,'(typeof window.__sootsimCaptureBundle === "function") ? window.__sootsimCaptureBundle() : null'),u?.bundleUrl){let n=new URL(u.bundleUrl).origin,[a,N]=await Promise.all([I(w,`(window.__sootsimPreviewRecorder?.list?.(${JSON.stringify(n)}) || [])`),I(w,`(async () => {
|
|
43
|
-
const list = window.__sootsimListWorkerFetchRecorder
|
|
44
|
-
return typeof list === 'function'
|
|
45
|
-
? await list(${JSON.stringify(n)})
|
|
46
|
-
: []
|
|
47
|
-
})()`)]);J=G([...a,...N]).filter(d=>{try{return!new URL(d.url).pathname.startsWith("/api/")}catch{return!0}});let $=await I(w,`(async () => {
|
|
48
|
-
const rec = window.__sootsimPreviewRecorder
|
|
49
|
-
const workerList = window.__sootsimListWorkerFetchRecorder
|
|
50
|
-
return {
|
|
51
|
-
main: rec?.list ? rec.list() : [],
|
|
52
|
-
worker: typeof workerList === 'function' ? await workerList() : [],
|
|
53
|
-
}
|
|
54
|
-
})()`),P=($?G([...$.main,...$.worker]):[]).filter(d=>{try{return new URL(d.url).origin!==n}catch{return!1}}),B=P.length>0?{count:P.length,totalBytes:P.reduce((d,S)=>d+(S.size||0),0)}:null;if(B&&B.count>0){console.log(` ${B.count} recorded cross-origin responses (${(B.totalBytes/1024).toFixed(1)} KiB)`);let d=await I(w,`(async () => {
|
|
55
|
-
const rec = window.__sootsimPreviewRecorder
|
|
56
|
-
const workerDump = window.__sootsimDumpWorkerFetchRecorder
|
|
57
|
-
const bundleUrl = ${JSON.stringify(u.bundleUrl)}
|
|
58
|
-
const keep = (r) => {
|
|
59
|
-
try {
|
|
60
|
-
const u = new URL(r.url)
|
|
61
|
-
if (u.origin !== ${JSON.stringify(n)}) return true
|
|
62
|
-
// bundle-origin api responses came from the rewritten
|
|
63
|
-
// /__app-api proxy at record time (re-keyed by the
|
|
64
|
-
// recorder's unwrap step). they need bodies attached the
|
|
65
|
-
// same way as cross-origin records \u2014 direct re-fetch from
|
|
66
|
-
// the dev server lacks the bundle's session cookies.
|
|
67
|
-
if (r.url !== bundleUrl && u.pathname.startsWith('/api/')) return true
|
|
68
|
-
return false
|
|
69
|
-
} catch { return false }
|
|
70
|
-
}
|
|
71
|
-
return {
|
|
72
|
-
main: rec?.dump ? rec.dump().filter(keep) : [],
|
|
73
|
-
worker: typeof workerDump === 'function'
|
|
74
|
-
? (await workerDump()).filter(keep)
|
|
75
|
-
: [],
|
|
76
|
-
}
|
|
77
|
-
})()`);if(y=G([...d.main,...d.worker]),j){let S=y.length;y=y.filter(V=>he(V.contentType));let W=B.totalBytes-y.reduce((V,Re)=>V+(Re.size||0),0);console.log(` --assets-only: kept ${y.length}/${S} records (dropped ${(W/1024).toFixed(1)} KiB of API responses)`)}}}u?.transformedBundle&&(L=await We(w,u.transformedBundle.byteLength))}finally{w.close()}u||(console.error(" could not read bundle snapshot \u2014 is sootsim running and is the bundle loaded?"),process.exit(2)),u.bundleUrl||(console.error(` no ?bundle= URL on the current sootsim tab.
|
|
78
|
-
open the app you want to share first (e.g. sootsim open 8082), then run upload.`),process.exit(2));let g,H=!1;if(L!==null)g=new TextEncoder().encode(L),H=!0,console.log(` using post-transform bundle: ${(g.byteLength/1024).toFixed(1)} KiB`);else{let n=Ne(u.bundleUrl);n!==u.bundleUrl&&console.log(" forcing lazy=false for self-contained bundle"),console.log(` capturing: ${n}`),g=await fe(n),console.log(` main bundle: ${(g.byteLength/1024).toFixed(1)} KiB`)}let k=J.filter(n=>n.url!==u.bundleUrl);j&&(k=k.filter(n=>he(n.contentType))),console.log(` fetching ${k.length} extra files\u2026`);let z=(await Promise.all(k.map(async n=>{try{let a=await fe(n.url);return{...n,bytes:a}}catch(a){return console.error(` warning: failed to re-fetch ${n.url}: ${a instanceof Error?a.message:a}`),null}}))).filter(n=>!!n),ve=z.reduce((n,a)=>n+a.bytes.byteLength,0);console.log(` ${z.length} extra files: ${(ve/1024).toFixed(1)} KiB`);let v;i&&(v=D(i));let h;l&&(h=D(l),console.log(` attaching screenshot: ${(h.byteLength/1024).toFixed(1)} KiB`));let m,E,Y;if(f){if(m=D(f),E=f.endsWith(".mp4")?"video/mp4":f.endsWith(".gif")?"image/gif":"video/webm",c){let n=Number(c);(!Number.isFinite(n)||n<=0)&&(console.error(` invalid --video-duration-ms: ${c}`),await T(),process.exit(1)),Y=Math.round(n)}console.log(` attaching flow video: ${(m.byteLength/1024).toFixed(1)} KiB (${E})`)}let U=ae(),x=ue(U),Be=ne();re({event:"preview_upload_started",identity:{userId:U?.kind==="session"?Be?.user?.id??null:null,repoId:x?.repoId??null,installationId:x?.installationId??null},properties:{origin:s,hasAuth:!!U,authMode:U?.kind??"none",bundleBytes:g.byteLength,isTransformed:H,extraFiles:z.length,recordedFetches:y.length,hasEvents:!!v,hasScreenshot:!!h,hasVideo:!!m}}),U||(console.error(" preview uploads need auth."),console.error(" set SOOTSIM_API_KEY=sk_sootsim_..., run `sootsim login`, or use the soot github runner."),await T(),process.exit(1));let Te=le(U),Ie=(()=>{try{return new URL(u.bundleUrl).origin}catch{return null}})(),Q=(n,a,N,$,te,P,B,d)=>{let S=ce(P),W=S?pe(n):n;return{url:a,urlhash:N,method:$,bodyHash:te,requestVaryHash:d,contentType:P,responseHeaders:B,bytes:W,encoding:S?"gzip":void 0}},F=[...z.map(n=>Q(n.bytes,n.url,n.urlhash,"GET","-",n.contentType,n.responseHeaders,n.requestVaryHash)),...y.map(n=>Q(Buffer.from(n.bodyBase64,"base64"),n.url,n.urlhash,n.method||"GET",n.bodyHash||"-",n.contentType,n.responseHeaders,n.requestVaryHash))],M=pe(g),Ue=ze("sha256").update(g).digest("hex");console.log(` bundle raw=${(g.byteLength/1024).toFixed(1)} KiB gz=${(M.byteLength/1024).toFixed(1)} KiB`);let xe={contentHash:Ue,bundleSizeBytes:g.byteLength,bundleContentType:Ce(u.bundleUrl),bundleEncoding:"gzip",bundleOrigin:Ie,entry:u.entry,isTransformed:H,deviceSpec:u.deviceSpec,installationId:x?.installationId??void 0,repoId:x?.repoId,owner:O??x?.owner,repo:p??x?.repo,files:F.map(n=>({url:n.url,urlhash:n.urlhash,method:n.method,bodyHash:n.bodyHash,contentType:n.contentType,responseHeaders:n.responseHeaders,requestVaryHash:n.requestVaryHash,encoding:n.encoding,sizeBytes:n.bytes.byteLength})),events:v?{sizeBytes:v.byteLength}:void 0,snapshots:h?[{id:"landing",label:"Landing",kind:"landing",t:0,contentType:"image/png",sizeBytes:h.byteLength}]:void 0,flowVideo:m&&E?{sizeBytes:m.byteLength,contentType:E,durationMs:Y}:void 0},X=new Map;for(let n of F)X.set(n.urlhash,n.bytes);let Z=new Map;h&&Z.set("landing",h);let Pe=Date.now(),_=M.byteLength;for(let n of F)_+=n.bytes.byteLength;v&&(_+=v.byteLength),h&&(_+=h.byteLength),m&&(_+=m.byteLength);let Se=`${R(s)}/api/preview/upload/init`;console.log(` init: ${Se}`);let C;try{let n=await de({originBase:s,initBody:xe,bundleBytes:M,filesByHash:X,extras:{eventsBytes:v,videoBytes:m,snapshotBytes:Z},authHeader:Te,concurrency:16});C=n.finalize;let a=1+n.init.files.length+(n.init.events?1:0)+n.init.snapshots.length+(n.init.flowVideo?1:0);console.log(` PUT ${a} objects in ${Date.now()-Pe}ms (${(_/1024).toFixed(1)} KiB)`)}catch(n){let a=n;a.phase==="init"&&a.status===401&&(console.error(" preview upload requires a valid login."),console.error(" run `sootsim login` and retry."),await T(),process.exit(1)),a.status===402&&(console.error(` ${Ee(a.responseText)??"preview uploads require Personal, Team, or an active trial \u2014 upgrade from the billing dialog."}`),await T(),process.exit(1)),console.error(` ${a.message??`${a.phase??"upload"} failed: ${String(n)}`}`),await T(),process.exit(1)}let ee=`${o}${C.url}`;console.log(`
|
|
79
|
-
stored ${C.filesStored??0} extra files`),console.log(` preview: ${ee}`),be&&await se(ee),await T()}export{Ae as a,Fe as b,nt as c};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.83 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a as R}from"./chunk-PEHFE3LG.js";var C="sootsimConfig";function m(e){return!!e&&Object.keys(e).length>0}function U(e){return e?m(e.modules)||m(e.turboModules)||m(e.nativeModules)||m(e.env)||m(e.settings)||m(e.initialState):!1}function x(e,r){let t=new URL(e);return U(r)?t.searchParams.set(C,JSON.stringify(r)):t.searchParams.delete(C),t.toString()}import{exec as E}from"child_process";import A from"http";import N from"net";import{promisify as L}from"util";var ee="/index.bundle?platform=ios&dev=true&hot=true&minify=false";function _(e){return/^https?:\/\//i.test(e)}function D(e){return e.endsWith(".bundle")}function T(e){process.env.SOOTSIM_PREVIEW_PROD_BUNDLE&&(e.searchParams.set("dev","false"),e.searchParams.set("minify","true"),e.searchParams.has("hot")&&e.searchParams.set("hot","false"))}function k(e){try{let r=_(e),t=new URL(e,"http://soot.local");return t.pathname=t.pathname.replace(/\.\.bundle$/,".bundle"),D(t.pathname)?(t.searchParams.delete("transform.bytecode"),T(t),r?t.toString():`${t.pathname}${t.search}${t.hash}`):e}catch{return e}}var v=L(E),$=250,O=1500,I=120;function B(e,r=I){return new Promise(t=>{let o=new N.Socket,s=!1,i=a=>{s||(s=!0,o.destroy(),t(a))};o.setTimeout(r),o.once("connect",()=>i(!0)),o.once("timeout",()=>i(!1)),o.once("error",()=>i(!1)),o.connect(e,"localhost")})}function h(e,r,t="GET",o=$,s={}){return new Promise(i=>{let a=A.request({hostname:"localhost",port:e,path:r,method:t,timeout:o,headers:s},n=>{let u="";n.on("data",l=>u+=l.toString());let c=(()=>{let l=n.headers["content-type"];if(typeof l=="string")return l;if(Array.isArray(l))return l[0]})();n.on("end",()=>i({statusCode:n.statusCode||0,body:u,contentType:c}))});a.on("error",()=>i(null)),a.setTimeout(o,()=>{a.destroy(),i(null)}),a.end()})}var H=[8081,8082,8083,8084,8085,8086,3e3,3001,19e3].map(e=>({port:e,pid:0}));function P(e,r){return!(e<=0||e>=2e4||r.has(e)||e>=5170&&e<=5200)}async function j(e=[]){let r=new Set(e);try{let{stdout:t}=await v("lsof -iTCP -sTCP:LISTEN -P -n 2>/dev/null | grep -E '^(node|bun)'",{encoding:"utf8",timeout:2e3});if(t.trim()){let o=new Map;for(let s of t.trim().split(`
|
|
3
|
-
`)){let i=s.trim().split(/\s+/);if(i.length<9)continue;let a=Number(i[1]),u=i[8].match(/:(\d+)$/);if(!u)continue;let c=Number(u[1]);P(c,r)&&(o.has(c)||o.set(c,a))}if(o.size>0)return[...o.entries()].map(([s,i])=>({port:s,pid:i}))}}catch{}try{let{stdout:t}=await v(`ss -tlnp 2>/dev/null | grep -E '"(node|bun)"'`,{encoding:"utf8",timeout:2e3});if(t.trim()){let o=new Map;for(let s of t.trim().split(`
|
|
4
|
-
`)){let i=s.match(/:(\d+)\s/),a=s.match(/pid=(\d+)/);if(!i)continue;let n=Number(i[1]),u=a?Number(a[1]):0;P(n,r)&&(o.has(n)||o.set(n,u))}if(o.size>0)return[...o.entries()].map(([s,i])=>({port:s,pid:i}))}}catch{}return H.filter(t=>P(t.port,r))}var y=new Map;async function W(e){if(e<=0)return null;let r=y.get(e);if(r)return r;try{let{stdout:t}=await v(`lsof -p ${e} -a -d cwd -Fn 2>/dev/null`,{encoding:"utf8",timeout:1500});for(let o of t.split(`
|
|
5
|
-
`))if(o.startsWith("n")&&o.length>1){let s=o.slice(1).trim();if(s)return y.set(e,s),s}}catch{}return null}function F(e,r){return{port:e,framework:r,bundleUrl:p(e,`http://localhost:${e}/index.bundle?platform=ios&dev=true&hot=true&minify=false`),hmrUrl:`ws://localhost:${e}/hot`,lastSeen:Date.now()}}function p(e,r){let t=R.find(s=>s.preferredPort===e),o=t?.runtimeConfig?x(r,t.runtimeConfig):r;return k(o)}function G(e){return e.includes("/node_modules/one/metro-entry.bundle")}function z(e){try{let r=JSON.parse(e);return r&&typeof r=="object"?r:null}catch{return null}}function b(e,r,t){if(!r)return e;try{let o=JSON.parse(r.body),s=o?.extra?.expoClient||o?.extra||{};s.name&&(e.projectName=s.name),s.ios?.bundleIdentifier&&(e.bundleId=s.ios.bundleIdentifier),e.framework==="metro"&&s.sdkVersion&&(e.framework="expo");let i=o?.launchAsset?.url;i&&!e.patched&&!G(e.bundleUrl)&&(e.bundleUrl=p(e.port,i));let a=s.iconUrl||s.ios?.iconUrl||s.icon||s.ios?.icon;if(a)if(e.iconPath=a,t)if(a.startsWith("http"))e.iconUrl=t(a);else{let n=a.replace(/^\.\//,"");e.iconUrl=t(`http://localhost:${e.port}/assets/${n}`)}else e.iconUrl=a.startsWith("http")?a:`http://localhost:${e.port}/assets/${a.replace(/^\.\//,"")}`}catch{}return e}var d=new Set,f=new Set,S=new Set;async function J(e,r){if(!await B(e))return null;let t="/node_modules/one/metro-entry.bundle?platform=ios&dev=true",[o,s,i,a]=await Promise.all([d.has(e)?Promise.resolve(null):h(e,"/__soot/"),h(e,"/status"),S.has(e)?Promise.resolve(null):h(e,"/","GET",O,{"expo-platform":"ios"}),f.has(e)?Promise.resolve(null):h(e,"/_expo/status")]);a&&a.statusCode===200?f.delete(e):f.has(e)||f.add(e);let n=i?z(i.body):null,u=typeof n?.launchAsset?.url=="string"?n.launchAsset.url:null,c=n?.extra?.expoClient||n?.extra||{};if(n&&(u||typeof c.name=="string")){d.add(e);let g=u||`http://localhost:${e}/index.bundle?platform=ios&dev=true&hot=true&minify=false`,M=g.includes("/one/metro-entry.bundle")?"one":"expo";return b({port:e,framework:M,bundleUrl:p(e,g),hmrUrl:`ws://localhost:${e}/hot`,lastSeen:Date.now()},i,r)}if(s&&s.body.includes("packager-status:running"))return d.add(e),b(F(e,a&&a.statusCode===200?"expo":"metro"),i,r);if(o&&o.statusCode===200&&o.body.includes("sootsim-patched"))return d.delete(e),b({port:e,framework:"one",bundleUrl:p(e,`http://localhost:${e}/__soot/bundle.js`),hmrUrl:`ws://localhost:${e}/hot`,lastSeen:Date.now(),patched:!0},i,r);let l=await h(e,t,"HEAD");return l&&l.statusCode>0&&l.statusCode<400&&/application\/javascript/i.test(l.contentType||"")?(d.add(e),S.add(e),b({port:e,framework:"one",bundleUrl:p(e,`http://localhost:${e}${t}&minify=false`),hmrUrl:`ws://localhost:${e}/hot`,lastSeen:Date.now()},i,r)):(d.add(e),null)}function K(e){let r=e.projectName?.trim().toLowerCase();return!!(r==="soot"||r==="sootsim"||e.bundleId?.trim().toLowerCase()?.startsWith("dev.soot"))}var w=new Map,V=3e4,q=1500;function Q(e){return!e||e.framework==="metro"||e.framework==="unknown"}function Y(e){return e?p(e.port,e.bundleUrl)===e.bundleUrl:!0}function X(e,r,t=Date.now()){if(r===0||e.pid!==r||!Y(e.result))return!1;let o=t-e.cachedAt;return!(e.result===null&&o>=V||Q(e.result)&&o>=q)}async function ce(e={}){let r=await j(e.excludePorts),t=new Set(r.map(n=>n.port));for(let n of[...w.keys()])t.has(n)||w.delete(n);for(let n of[...d])t.has(n)||d.delete(n);for(let n of[...f])t.has(n)||f.delete(n);for(let n of[...S])t.has(n)||S.delete(n);let o=[],s=[];for(let{port:n,pid:u}of r){let c=w.get(n);if(c&&X(c,u)){c.result&&o.push(c.result);continue}c&&c.pid!==u&&(d.delete(n),f.delete(n),S.delete(n)),s.push({port:n,pid:u})}s.length>0&&(await Promise.all(s.map(u=>J(u.port,e.buildIconProxyUrl)))).forEach((u,c)=>{let{port:l,pid:g}=s[c];g!==0&&w.set(l,{pid:g,result:u,cachedAt:Date.now()}),u&&o.push(u)});let i=new Map;for(let{port:n,pid:u}of r)u>0&&i.set(n,u);await Promise.all(o.map(async n=>{let u=i.get(n.port);if(!u)return;n.pid=u;let c=await W(u);c&&(n.cwd=c)}));let a=new Set(i.values());for(let n of[...y.keys()])a.has(n)||y.delete(n);return o.filter(n=>!K(n))}export{x as a,ee as b,k as c,J as d,ce as e};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.83 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{d as a,e as b,f as c,g as d,h as e,i as f,j as g,k as h,l as i,m as j,n as k,o as l,p as m,q as n,r as o,s as p,t as q,u as r}from"./chunk-JHJNODXN.js";import"./chunk-XFQL74PF.js";import"./chunk-IBNRRAES.js";import"./chunk-RH4F2TF7.js";import"./chunk-PEHFE3LG.js";import"./chunk-CYV6Y6YV.js";import"./chunk-6NN2D4EJ.js";import"./chunk-CHQTO426.js";import"./chunk-FJYT7XL2.js";import"./chunk-5DJXZIFZ.js";import"./chunk-RXH2SLKF.js";import"./chunk-YUELRHGB.js";import"./chunk-HNWEELAE.js";import"./chunk-6XD6CBJM.js";import"./chunk-2AWQ7OB2.js";import"./chunk-OYMFNU3M.js";export{d as buildOpenUrl,c as buildShellUrl,p as closeSimsBulk,q as planBulkCloseTargets,h as playwrightHostPidForSim,f as printConnectedSims,a as resolveBundleTarget,b as resolveDefaultShellBaseUrl,o as runClaimCommand,r as runCloseCommand,n as runFocusCommand,k as runListCommand,l as runOpenCommand,m as runUseCommand,i as signalDriverLaunchConnected,e as summarizeSimUrl,j as terminatePlaywrightHostsForSims,g as waitForSimMatch};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.83 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import"./chunk-2OIBDYHW.js";import{a,b,c,d,e,f,g,h,i}from"./chunk-CYV6Y6YV.js";import"./chunk-6NN2D4EJ.js";import"./chunk-CHQTO426.js";import"./chunk-FJYT7XL2.js";import"./chunk-5DJXZIFZ.js";import"./chunk-2AWQ7OB2.js";import"./chunk-OYMFNU3M.js";export{e as ALL_DRIVERS,i as buildDriverListRows,a as chromiumDriver,b as electronDriver,f as getAllDrivers,g as getDriver,c as playwrightDriver,h as resolveDriver,d as systemDriver};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.83 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a as c,b as d,c as e,d as f}from"./chunk-277XAALA.js";import"./chunk-FRM355UL.js";import"./chunk-6BNLVMXA.js";import"./chunk-Y4BUVURT.js";import"./chunk-UXQWC5ZR.js";import"./chunk-DP7O5MHK.js";import{d as a,e as b}from"./chunk-6XZOEBTZ.js";import"./chunk-JHJNODXN.js";import"./chunk-XFQL74PF.js";import"./chunk-IBNRRAES.js";import"./chunk-RH4F2TF7.js";import"./chunk-PEHFE3LG.js";import"./chunk-CYV6Y6YV.js";import"./chunk-6NN2D4EJ.js";import"./chunk-CHQTO426.js";import"./chunk-FJYT7XL2.js";import"./chunk-5DJXZIFZ.js";import"./chunk-ECJBV65H.js";import"./chunk-RXH2SLKF.js";import"./chunk-VMXWC2JO.js";import"./chunk-2PY3UZVO.js";import"./chunk-WN7M3QON.js";import"./chunk-NXATOWWF.js";import"./chunk-YUELRHGB.js";import"./chunk-HNWEELAE.js";import"./chunk-6XD6CBJM.js";import"./chunk-2AWQ7OB2.js";import"./chunk-OYMFNU3M.js";export{c as discoverSootsimUrl,e as hoistLeadingSimFlag,a as parseFlowFile,f as runFlow,d as runFlowPlayback,b as validateFlowFile};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.83 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a as o}from"./chunk-J2GYISVJ.js";import"./chunk-F3HP444U.js";import"./chunk-4LS5MZAI.js";import"./chunk-VMXWC2JO.js";import"./chunk-2PY3UZVO.js";import"./chunk-YUELRHGB.js";import"./chunk-HNWEELAE.js";import"./chunk-6XD6CBJM.js";import"./chunk-2AWQ7OB2.js";import"./chunk-OYMFNU3M.js";async function t(n){console.error(" note: `sootsim install` is now `sootsim setup-repo`. forwarding\u2026\n"),await o(n)}export{t as runInstall};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.83 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a}from"./chunk-HAWOAQAG.js";import"./chunk-YUELRHGB.js";import"./chunk-HNWEELAE.js";import"./chunk-6XD6CBJM.js";import"./chunk-WTKTOL3C.js";import"./chunk-2AWQ7OB2.js";import"./chunk-OYMFNU3M.js";export{a as runRuntime};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.83 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a}from"./chunk-J2GYISVJ.js";import"./chunk-F3HP444U.js";import"./chunk-4LS5MZAI.js";import"./chunk-VMXWC2JO.js";import"./chunk-2PY3UZVO.js";import"./chunk-YUELRHGB.js";import"./chunk-HNWEELAE.js";import"./chunk-6XD6CBJM.js";import"./chunk-2AWQ7OB2.js";import"./chunk-OYMFNU3M.js";export{a as runSetupRepo};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.83 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a,b,c}from"./chunk-UXQWC5ZR.js";import"./chunk-DP7O5MHK.js";import"./chunk-CHQTO426.js";import"./chunk-5DJXZIFZ.js";import"./chunk-VMXWC2JO.js";import"./chunk-2PY3UZVO.js";import"./chunk-YUELRHGB.js";import"./chunk-HNWEELAE.js";import"./chunk-6XD6CBJM.js";import"./chunk-2AWQ7OB2.js";import"./chunk-OYMFNU3M.js";export{a as resolveDefaultUploadOrigin,b as resolvePublicPreviewOrigin,c as runUpload};
|