tryflop 0.0.1 → 0.1.0
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 +66 -2
- package/bin/flop-mcp.mjs +22 -0
- package/bin/tryflop.mjs +36 -0
- package/e2e/sandbox-smoke.mjs +136 -0
- package/npm-shrinkwrap.json +2648 -0
- package/package.json +52 -5
- package/src/agent-settings.js +76 -0
- package/src/claim.js +516 -0
- package/src/cli.js +428 -0
- package/src/daily.js +363 -0
- package/src/files.js +104 -0
- package/src/flop-core.js +189 -0
- package/src/flop-node.js +346 -0
- package/src/format.js +180 -0
- package/src/gate.js +19 -0
- package/src/guard.js +231 -0
- package/src/home.js +96 -0
- package/src/install.js +110 -0
- package/src/keyfile.js +70 -0
- package/src/layout.js +55 -0
- package/src/miners.js +65 -0
- package/src/moments.js +50 -0
- package/src/outcome.js +128 -0
- package/src/outer.js +969 -0
- package/src/payer.js +834 -0
- package/src/questions.js +47 -0
- package/src/requests.js +178 -0
- package/src/roots.js +48 -0
- package/src/sandbox.js +223 -0
- package/src/scheduler.js +221 -0
- package/src/scoring.js +67 -0
- package/src/secrets.js +41 -0
- package/src/server.js +13 -0
- package/src/shared/config.js +366 -0
- package/src/shared/direct-core.js +226 -0
- package/src/shared/grants-core.js +69 -0
- package/src/shared/units.js +47 -0
- package/src/statusfile.js +70 -0
- package/src/tools.js +107 -0
- package/src/tryflop.js +622 -0
- package/src/wallet.js +123 -0
- package/bin/tryflop.js +0 -5
package/README.md
CHANGED
|
@@ -1,5 +1,69 @@
|
|
|
1
1
|
# tryflop
|
|
2
2
|
|
|
3
|
-
Try Flop's
|
|
3
|
+
**Try Flop for AI agents.** Your AI agent gets its own wallet on Flop's public testnet. Every day it claims Flop's free test FLOP, pays an independent Flop miner for a real AI answer, and settles the payment on Flop's chain, with no human needed after setup. An independent tool, not made by Flop Labs.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
> Flop's published airdrop terms say the agents' share is earned by "compute purchased in settled sessions" ([flop.finance/airdrop](https://flop.finance/airdrop/)). Testnet scoring has not started yet: activity before Flop's announced activation block earns nothing, with no backfill. Test FLOP has no value, and Flop decides who qualifies and how much. Nothing is guaranteed.
|
|
6
|
+
|
|
7
|
+
## Set it up (for a person)
|
|
8
|
+
|
|
9
|
+
Paste this into an AI agent that can run commands (Claude Code, Codex, Cursor…):
|
|
10
|
+
|
|
11
|
+
> Set up Try Flop for me by following https://tryflop.com/agent.md
|
|
12
|
+
|
|
13
|
+
The agent checks your computer, asks you two or three short questions, and runs one command:
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
npx -y tryflop@0.1.0 setup --topic "<a subject for the daily questions>"
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Then, once, save your wallet's 12 recovery words yourself, in your own terminal window (never through the AI agent):
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
~/.tryflop/bin/tryflop backup
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## What it does every day
|
|
26
|
+
|
|
27
|
+
1. **Claims** Flop's free test FLOP for its own wallet (10 FLOP per wallet per 24 hours; Flop's faucet also limits each internet connection). A claim whose answer is unclear is never sent again: the chain decides.
|
|
28
|
+
2. **Checks whether Flop's scoring has started** (Try Flop's published status, confirmed against Flop's chain).
|
|
29
|
+
3. **Spends**: before scoring starts, the least that keeps the faucet flowing (one paid channel, one short question); once scoring is on, the day's grant, on a daily brief about your chosen subject (at most 8 channels a run). Answers go to `~/TryFlop/answers/`.
|
|
30
|
+
4. **Settles** each payment cooperatively on Flop's chain; a channel a miner never settles comes back to the wallet after its window.
|
|
31
|
+
5. **Writes** `~/TryFlop/status.md`, and notifies you only when you must act: save the backup; the faucet's limit for your connection is used up for the day; Flop opens a bigger grant for verified humans (your agent asks you first); scoring has started; the daily run failed three days in a row. Plus one summary line a week.
|
|
32
|
+
|
|
33
|
+
## Commands
|
|
34
|
+
|
|
35
|
+
After setup, `~/.tryflop/bin/tryflop` (Windows: `~/.tryflop/bin/tryflop.cmd`) runs the copy setup installed:
|
|
36
|
+
|
|
37
|
+
| Command | What it does |
|
|
38
|
+
|---|---|
|
|
39
|
+
| `setup [--daily on\|off] [--topic "…"]` | makes the wallet (one per person; an existing one is kept), adds the `ask_flop` tool to Claude Code, and with your yes, the daily run |
|
|
40
|
+
| `status` | `Daily run: on · Last paid answer: … · Scoring: not started · Wallet: …`, then the details |
|
|
41
|
+
| `daily [--force]` | one daily run now (the scheduler starts this) |
|
|
42
|
+
| `claim` | the wallet asks Flop's testnet faucet for its free FLOP (once a day) |
|
|
43
|
+
| `backup` | **for you, in your own terminal**: shows the 12 recovery words, then clears them from the screen |
|
|
44
|
+
| `restore` | **for you, in your own terminal**: brings your wallet to a new computer from its 12 words |
|
|
45
|
+
| `uninstall` | removes the daily run, the Claude Code tool and the copied code; never the wallet |
|
|
46
|
+
| `serve` | the MCP server Claude Code starts (`ask_flop`, `flop_status`, `flop_result`, `flop_settle`) |
|
|
47
|
+
|
|
48
|
+
The daily run is a launchd agent on macOS, a Task Scheduler task on Windows, and a systemd user timer on Linux when it keeps running after you log out (lingering), otherwise an hourly cron line (with no cron either, setup prints the one command that keeps the timer running): at a random minute chosen at setup, again 6 and 12 hours later if a run could not finish, and right after the computer wakes if it slept through the time.
|
|
49
|
+
|
|
50
|
+
## Safety
|
|
51
|
+
|
|
52
|
+
- **One wallet, its own.** No transfer between wallets ever happens; the wallet only claims from Flop's faucet and pays miners. Never make a second one (Flop scores wallets under common control as one participant).
|
|
53
|
+
- **The 12 words** are in `~/.flop-mcp/testnet/wallet/wallet.json` (readable only by your user, like `~/.ssh`), because the daily run must sign without you. `backup` and `restore` refuse to run where an AI agent's command tool starts them (no terminal, or an agent's marker such as Claude Code's), and agents are told never to run them. An agent that drives a real terminal window cannot be told apart from you, so run them in a terminal window no AI tool is attached to.
|
|
54
|
+
- **macOS:** Flop's code runs inside macOS's own sandbox: it cannot read your files, write outside its folders, start other programs or load native code. Setup refuses Homebrew's or MacPorts' Node (the sandbox cannot run it) and prints one line that installs Node 22 with nvm instead, no admin password needed.
|
|
55
|
+
- **Windows and Linux:** Try Flop runs without an operating-system sandbox there: Flop's code runs with your user's permissions.
|
|
56
|
+
- **Limits:** at most 2 FLOP in any one channel, at most the faucet's daily grant per day, and a hard number of channels per daily run, checked right before each purchase is signed. A payment whose outcome is unknown is never sent again; the next run reads the chain.
|
|
57
|
+
- **Questions go to third-party miners:** never put private data in them. Answers are a third party's text.
|
|
58
|
+
|
|
59
|
+
## The other route: `flop-mcp` (your browser wallet's spending limit)
|
|
60
|
+
|
|
61
|
+
`flop-mcp` (in this same package) is the earlier route: Claude Code pays from a wallet you already have, through a capped spending key that your wallet grants on Flop's chain (the Try Flop app's "AI agents" screen does this). It runs on macOS only. `flop-mcp init --owner <your wallet address>`, then follow what it prints; `flop-mcp claim --network testnet` lets its key claim the faucet's grant and pass it on to your wallet.
|
|
62
|
+
|
|
63
|
+
## For developers
|
|
64
|
+
|
|
65
|
+
- State diagrams (the source of truth for the money rules): `SPEC.md` in the repository.
|
|
66
|
+
- Checks: `npm run verify` (types and the unit tests; tests never load the Flop SDK); `node bin/flop-mcp.mjs sandbox-check` (the real SDK inside the sandbox, devnet, no money); `node e2e/stdio-smoke.mjs`.
|
|
67
|
+
- A paid run is judged from Flop's chain, never from the tool's own summary: `node apps/agent-app/e2e/verify-channel.mjs testnet <channel> <wallet> --own-wallet --miner <miner address>`.
|
|
68
|
+
|
|
69
|
+
MIT licence. https://tryflop.com
|
package/bin/flop-mcp.mjs
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// flop-mcp: the Flop connector for Claude. Every command runs inside the sandbox (src/sandbox.js), so
|
|
3
|
+
// this file statically loads nothing but the sandbox: everything else is imported after
|
|
4
|
+
// ensureSandboxed() has re-executed the command inside it.
|
|
5
|
+
import { ensureSandboxed } from '../src/sandbox.js';
|
|
6
|
+
|
|
7
|
+
const argv = process.argv.slice(2);
|
|
8
|
+
try {
|
|
9
|
+
ensureSandboxed(argv);
|
|
10
|
+
} catch (error) {
|
|
11
|
+
process.stderr.write(`flop-mcp: ${error instanceof Error ? error.message : String(error)}\n`);
|
|
12
|
+
process.exit(1);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
try {
|
|
16
|
+
const { main } = await import('../src/cli.js');
|
|
17
|
+
process.exitCode = await main(argv);
|
|
18
|
+
} catch (error) {
|
|
19
|
+
// The message only: a stack could quote values the code was handling.
|
|
20
|
+
process.stderr.write(`flop-mcp: ${error instanceof Error ? error.message : String(error)}\n`);
|
|
21
|
+
process.exitCode = 1;
|
|
22
|
+
}
|
package/bin/tryflop.mjs
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// tryflop: Try Flop for AI agents (SPEC.md "tryflop"). An independent tool, not made by Flop Labs.
|
|
3
|
+
// Two kinds of command. OUTER ones (setup, daily, uninstall, help) manage the operating system and load only Node's
|
|
4
|
+
// built-ins and this package's own built-in-only modules. INNER ones (everything that touches the wallet or Flop's
|
|
5
|
+
// chain) first re-execute themselves inside macOS's sandbox (natively on Windows and Linux) and only then load
|
|
6
|
+
// third-party code. This file statically loads nothing but the sandbox and the words gate.
|
|
7
|
+
import { ensureSandboxed } from '../src/sandbox.js';
|
|
8
|
+
import { wordsGate } from '../src/gate.js';
|
|
9
|
+
|
|
10
|
+
const argv = process.argv.slice(2);
|
|
11
|
+
const command = argv[0];
|
|
12
|
+
const OUTER = new Set(['setup', 'daily', 'uninstall', 'help', '--help', '-h', 'version', '--version']);
|
|
13
|
+
|
|
14
|
+
try {
|
|
15
|
+
if (command === undefined || OUTER.has(command)) {
|
|
16
|
+
const { mainOuter } = await import('../src/outer.js');
|
|
17
|
+
process.exitCode = await mainOuter(argv);
|
|
18
|
+
} else {
|
|
19
|
+
// The recovery words pass only between a person and their own terminal: checked here, before the sandbox filters
|
|
20
|
+
// the environment (an AI agent's tool marks it), and again inside.
|
|
21
|
+
if (command === 'backup' || command === 'restore') {
|
|
22
|
+
const refusal = wordsGate({ stdinTTY: Boolean(process.stdin.isTTY), stdoutTTY: Boolean(process.stdout.isTTY), env: process.env });
|
|
23
|
+
if (refusal) {
|
|
24
|
+
process.stderr.write(`tryflop: ${refusal}\n`);
|
|
25
|
+
process.exit(2);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
ensureSandboxed(argv, { allowUnsandboxed: true, human: command === 'daily-run' });
|
|
29
|
+
const { mainInner } = await import('../src/tryflop.js');
|
|
30
|
+
process.exitCode = await mainInner(argv);
|
|
31
|
+
}
|
|
32
|
+
} catch (error) {
|
|
33
|
+
// The message only: a stack could quote values the code was handling.
|
|
34
|
+
process.stderr.write(`tryflop: ${error instanceof Error ? error.message : String(error)}\n`);
|
|
35
|
+
process.exitCode = 1;
|
|
36
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
// Gate: the real Flop SDK runs inside the sandbox, and the sandbox refuses what it
|
|
2
|
+
// should. No money moves. Run either way:
|
|
3
|
+
// FLOP_MCP_HOME=$(mktemp -d) FLOP_MCP_PAYERS=$(mktemp -d) node bin/flop-mcp.mjs sandbox-check
|
|
4
|
+
// FLOP_MCP_HOME=$(mktemp -d) FLOP_MCP_PAYERS=$(mktemp -d) node e2e/sandbox-smoke.mjs
|
|
5
|
+
// Static imports: Node built-ins and the sandbox only; the SDK is loaded after ensureSandboxed().
|
|
6
|
+
import { readFileSync, readdirSync, writeFileSync } from 'node:fs';
|
|
7
|
+
import { homedir } from 'node:os';
|
|
8
|
+
import { join } from 'node:path';
|
|
9
|
+
import { fileURLToPath } from 'node:url';
|
|
10
|
+
import { ensureSandboxed } from '../src/sandbox.js';
|
|
11
|
+
|
|
12
|
+
const REFUSED = new Set(['EPERM', 'EACCES', 'ERR_ACCESS_DENIED']);
|
|
13
|
+
|
|
14
|
+
/** @template T @param {Promise<T>} promise @param {number} ms @param {string} what @returns {Promise<T>} */
|
|
15
|
+
function within(promise, ms, what) {
|
|
16
|
+
let timer;
|
|
17
|
+
return Promise.race([promise, new Promise((_, reject) => { timer = setTimeout(() => reject(new Error(`${what}: no answer within ${ms / 1000} s`)), ms); })])
|
|
18
|
+
.finally(() => clearTimeout(timer));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** @returns {Promise<number>} exit code: 0 when every check passed */
|
|
22
|
+
export async function runSandboxSmoke() {
|
|
23
|
+
let failed = 0;
|
|
24
|
+
/** @param {string} name @param {boolean} ok @param {unknown} [detail] */
|
|
25
|
+
const check = (name, ok, detail) => {
|
|
26
|
+
if (!ok) failed += 1;
|
|
27
|
+
process.stdout.write(`${ok ? 'ok ' : 'FAIL'} ${name}${detail === undefined ? '' : `: ${String(detail)}`}\n`);
|
|
28
|
+
};
|
|
29
|
+
const started = Date.now();
|
|
30
|
+
check('running inside the sandbox', process.env.FLOP_MCP_SANDBOX === 'seatbelt', process.env.FLOP_MCP_SANDBOX);
|
|
31
|
+
|
|
32
|
+
// 1. The user's own files stay closed.
|
|
33
|
+
/** @param {string} name @param {() => unknown} attempt */
|
|
34
|
+
const refused = (name, attempt) => {
|
|
35
|
+
try {
|
|
36
|
+
attempt();
|
|
37
|
+
check(name, false, 'it was allowed');
|
|
38
|
+
} catch (error) {
|
|
39
|
+
check(name, REFUSED.has(/** @type {any} */ (error).code), /** @type {any} */ (error).code);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
refused('reading ~/.zshrc is refused', () => readFileSync(join(homedir(), '.zshrc')));
|
|
43
|
+
refused('listing ~/.ssh is refused', () => readdirSync(join(homedir(), '.ssh')));
|
|
44
|
+
refused('listing the home folder is refused', () => readdirSync(homedir()));
|
|
45
|
+
|
|
46
|
+
// 2. Nothing written outside the data folders, and no other programs.
|
|
47
|
+
refused('writing next to the connector\'s code is refused', () => writeFileSync(fileURLToPath(new URL('./smoke-written.txt', import.meta.url)), 'x'));
|
|
48
|
+
try {
|
|
49
|
+
(await import('node:child_process')).execFileSync('/usr/bin/true');
|
|
50
|
+
check('starting another program is refused', false, 'it ran');
|
|
51
|
+
} catch (error) {
|
|
52
|
+
check('starting another program is refused', REFUSED.has(/** @type {any} */ (error).code), /** @type {any} */ (error).code);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// 3. The real SDK and @polkadot/api load and talk to devnet.
|
|
56
|
+
const { NETWORKS } = await import('../src/shared/config.js');
|
|
57
|
+
const net = NETWORKS.devnet;
|
|
58
|
+
const sdk = await import('@flop-labs/sdk');
|
|
59
|
+
const { ApiPromise, WsProvider } = await import('@polkadot/api');
|
|
60
|
+
const { Keyring } = await import('@polkadot/keyring');
|
|
61
|
+
const { cryptoWaitReady, randomAsU8a } = await import('@polkadot/util-crypto');
|
|
62
|
+
const { u8aToHex } = await import('@polkadot/util');
|
|
63
|
+
const provider = new WsProvider(net.rpc, 2_500);
|
|
64
|
+
const t0 = Date.now();
|
|
65
|
+
const api = await within(ApiPromise.create({ provider, noInitWarn: true, throwOnConnect: true }), 60_000, net.rpc);
|
|
66
|
+
try {
|
|
67
|
+
check('connected to devnet', true, `${((Date.now() - t0) / 1000).toFixed(1)} s`);
|
|
68
|
+
check('genesis matches the shared config', api.genesisHash.toHex() === net.genesis, api.genesisHash.toHex());
|
|
69
|
+
let admitted = false;
|
|
70
|
+
try {
|
|
71
|
+
admitted = Boolean(sdk.FlopClient.fromApiReadOnly(api).api);
|
|
72
|
+
} catch (error) {
|
|
73
|
+
check('the SDK admits this runtime', false, /** @type {any} */ (error).code ?? /** @type {any} */ (error).message);
|
|
74
|
+
}
|
|
75
|
+
if (admitted) check('the SDK admits this runtime', true, api.runtimeVersion.specVersion.toString());
|
|
76
|
+
|
|
77
|
+
// 4. Session reads, and the live shape of allowed_pallets (flop-core.js decodes exactly this shape).
|
|
78
|
+
await cryptoWaitReady();
|
|
79
|
+
const keyring = new Keyring({ type: 'sr25519', ss58Format: 42 });
|
|
80
|
+
const owner = keyring.addFromSeed(randomAsU8a(32)).address;
|
|
81
|
+
const delegate = keyring.addFromSeed(randomAsU8a(32)).address;
|
|
82
|
+
check('no session for two fresh addresses', (await sdk.getSession(api, owner, delegate)) === null);
|
|
83
|
+
const page = await /** @type {any} */ (api.query).flopSessionKeys.sessions.entriesPaged({ args: [], pageSize: 200 });
|
|
84
|
+
const palletsOf = (/** @type {any} */ entry) => { const json = entry[1]?.toJSON?.(); return json?.allowed_pallets ?? json?.allowedPallets; };
|
|
85
|
+
const sample = page.find((/** @type {any} */ entry) => palletsOf(entry)?.length > 0) ?? page[0];
|
|
86
|
+
const pallets = palletsOf(sample);
|
|
87
|
+
check('an existing session is readable', Array.isArray(pallets), `allowed_pallets as stored (1 of ${page.length} read): ${JSON.stringify(pallets)}`);
|
|
88
|
+
const decoded = (await sdk.getSession(api, sample[0].args[0].toString(), sample[0].args[1].toString()))?.allowedPallets;
|
|
89
|
+
check('getSession returns the same allowedPallets shape', JSON.stringify(decoded) === JSON.stringify(pallets), JSON.stringify(decoded));
|
|
90
|
+
|
|
91
|
+
// 5. The SDK's own spend journal works in the data folders (its lock lives under the payers root).
|
|
92
|
+
const { homeRoot, payersRoot } = await import('../src/roots.js');
|
|
93
|
+
const journal = new sdk.computeChannel.FileSpendJournal(join(homeRoot(), 'devnet', 'journal-smoke'), net.genesis, owner, { payersRoot: payersRoot() });
|
|
94
|
+
await journal.acquire();
|
|
95
|
+
check('the SDK spend journal takes its lock', journal.state().owner === owner);
|
|
96
|
+
await journal.release();
|
|
97
|
+
|
|
98
|
+
// 6. The network reaches a miner (any HTTP answer will do; this check spends nothing).
|
|
99
|
+
const status = await fetch(`${net.miners[0].endpoint}/session/info-proof`, {
|
|
100
|
+
method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify({ challenge: u8aToHex(randomAsU8a(32)).slice(2) }),
|
|
101
|
+
redirect: 'error', signal: AbortSignal.timeout(25_000),
|
|
102
|
+
}).then((r) => r.status, (error) => /** @type {Error} */ (error).message);
|
|
103
|
+
check(`the network reaches miner ${net.miners[0].id}`, typeof status === 'number', `HTTP ${status}`);
|
|
104
|
+
|
|
105
|
+
// 7. The connector's own SDK adapter on the same live chain (read-only).
|
|
106
|
+
const adapter = await import('../src/flop-node.js');
|
|
107
|
+
const own = await adapter.connect(net);
|
|
108
|
+
try {
|
|
109
|
+
const { number, timestampMs } = await adapter.finalizedInfo(own);
|
|
110
|
+
check('adapter: finalized head and its time', number > 0n && Math.abs(Date.now() - timestampMs) < 300_000, `block ${number}, ${((Date.now() - timestampMs) / 1000).toFixed(1)} s old`);
|
|
111
|
+
const view = await adapter.readSession(own, sample[0].args[0].toString(), sample[0].args[1].toString());
|
|
112
|
+
check('adapter: a granted session decodes its pallets to names', view.found && view.allowedPallets.every((p) => /^[A-Za-z]+$/.test(p)), JSON.stringify(view.allowedPallets));
|
|
113
|
+
const proven = '0x14ed787915c77ee4279b3a520ed9ad32217c5924458f7d4fe6b9a62e710fc2b0'; // the agent app's settled devnet channel (23 Nov)
|
|
114
|
+
const state = await adapter.channelState(own, proven);
|
|
115
|
+
check('adapter: a settled channel reads Closed or gone', state === 'Closed' || state === 'gone', state);
|
|
116
|
+
const proof = await adapter.readInfoProof(net.miners[0], net.genesis).then(() => 'ready', (error) => /** @type {Error} */ (error).message);
|
|
117
|
+
check('adapter: the miner readiness check answers (ready, or a clear reason)', typeof proof === 'string', proof);
|
|
118
|
+
} finally {
|
|
119
|
+
await own.disconnect();
|
|
120
|
+
}
|
|
121
|
+
} finally {
|
|
122
|
+
await api.disconnect();
|
|
123
|
+
}
|
|
124
|
+
process.stdout.write(`${failed ? `${failed} check(s) failed` : 'sandbox smoke passed'} in ${((Date.now() - started) / 1000).toFixed(1)} s (${process.platform}, Node ${process.version})\n`);
|
|
125
|
+
return failed ? 1 : 0;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
if (process.argv[1] === fileURLToPath(import.meta.url)) {
|
|
129
|
+
try {
|
|
130
|
+
ensureSandboxed(process.argv.slice(2));
|
|
131
|
+
} catch (error) {
|
|
132
|
+
process.stderr.write(`${/** @type {Error} */ (error).message}\n`);
|
|
133
|
+
process.exit(1);
|
|
134
|
+
}
|
|
135
|
+
process.exitCode = await runSandboxSmoke();
|
|
136
|
+
}
|