tryflop 0.1.0 → 0.2.1

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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
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
- > 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.
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 is on since 30 November 2026 (block 448,897): work done from then counts, earlier activity earns nothing, with no backfill. Test FLOP has no value, and Flop decides who qualifies and how much. Nothing is guaranteed.
6
6
 
7
7
  ## Set it up (for a person)
8
8
 
@@ -13,7 +13,7 @@ Paste this into an AI agent that can run commands (Claude Code, Codex, Cursor…
13
13
  The agent checks your computer, asks you two or three short questions, and runs one command:
14
14
 
15
15
  ```
16
- npx -y tryflop@0.1.0 setup --topic "<a subject for the daily questions>"
16
+ npx -y tryflop@0.2.1 setup --topic "<a subject for the daily questions>"
17
17
  ```
18
18
 
19
19
  Then, once, save your wallet's 12 recovery words yourself, in your own terminal window (never through the AI agent):
@@ -24,7 +24,7 @@ Then, once, save your wallet's 12 recovery words yourself, in your own terminal
24
24
 
25
25
  ## What it does every day
26
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.
27
+ 1. **Claims** Flop's free test FLOP for its own wallet (1 FLOP on the first claim, then 10 once an earlier grant has paid a miner; Flop's faucet also limits each internet connection). A claim whose answer is unclear is never sent again: the chain decides.
28
28
  2. **Checks whether Flop's scoring has started** (Try Flop's published status, confirmed against Flop's chain).
29
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
30
  4. **Settles** each payment cooperatively on Flop's chain; a channel a miner never settles comes back to the wallet after its window.
@@ -37,7 +37,7 @@ After setup, `~/.tryflop/bin/tryflop` (Windows: `~/.tryflop/bin/tryflop.cmd`) ru
37
37
  | Command | What it does |
38
38
  |---|---|
39
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 |
40
+ | `status` | `Daily run: on · Last paid answer: … · Scoring: on · Wallet: …`, then the details |
41
41
  | `daily [--force]` | one daily run now (the scheduler starts this) |
42
42
  | `claim` | the wallet asks Flop's testnet faucet for its free FLOP (once a day) |
43
43
  | `backup` | **for you, in your own terminal**: shows the 12 recovery words, then clears them from the screen |
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "tryflop",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "tryflop",
9
- "version": "0.1.0",
9
+ "version": "0.2.1",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
- "@flop-labs/sdk": "0.13.1",
12
+ "@flop-labs/sdk": "0.14.0",
13
13
  "@modelcontextprotocol/server": "2.4.0",
14
14
  "@polkadot/api": "17.0.2",
15
15
  "@polkadot/keyring": "14.0.3",
@@ -18,8 +18,8 @@
18
18
  "zod": "4.6.7"
19
19
  },
20
20
  "bin": {
21
- "tryflop": "bin/tryflop.mjs",
22
- "flop-mcp": "bin/flop-mcp.mjs"
21
+ "flop-mcp": "bin/flop-mcp.mjs",
22
+ "tryflop": "bin/tryflop.mjs"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@modelcontextprotocol/client": "2.4.0",
@@ -31,33 +31,33 @@
31
31
  }
32
32
  },
33
33
  "node_modules/@flop-labs/client": {
34
- "version": "0.2.2",
35
- "resolved": "https://registry.npmjs.org/@flop-labs/client/-/client-0.2.2.tgz",
36
- "integrity": "sha512-2sN0d2Z6hMTwedD+/EmoiuL1ks6gd2pLLhwrVfG0fFWhIT2j04L53EOlkjNGDcogsPvLsN5qTwUEgqmVyaefWQ==",
34
+ "version": "0.2.3",
35
+ "resolved": "https://registry.npmjs.org/@flop-labs/client/-/client-0.2.3.tgz",
36
+ "integrity": "sha512-t5V6tj5rUhGxF4yc6jRCpq4eIGUAZALt/hz3wY4eYy7CJR++QWua18+u3p1F5UoOI4kHVy4xUN2M+HeJxeGIpA==",
37
37
  "license": "MIT OR Apache-2.0",
38
38
  "dependencies": {
39
- "@flop-labs/contracts": "^0.1.2"
39
+ "@flop-labs/contracts": "^0.1.3"
40
40
  },
41
41
  "engines": {
42
42
  "node": ">=22"
43
43
  }
44
44
  },
45
45
  "node_modules/@flop-labs/contracts": {
46
- "version": "0.1.2",
47
- "resolved": "https://registry.npmjs.org/@flop-labs/contracts/-/contracts-0.1.2.tgz",
48
- "integrity": "sha512-6IwLrrapz2jbuFK6slYAK8lLcyEMawEzaRftoTFhdZdABasg580wCdHug2QLABa1D7xyQkq59qhmnUwML7bnNA==",
46
+ "version": "0.1.3",
47
+ "resolved": "https://registry.npmjs.org/@flop-labs/contracts/-/contracts-0.1.3.tgz",
48
+ "integrity": "sha512-1+UuPD/FDuHOR2xscvN757zuvz+3osMCn8GnHSxLwnOt2QqT5b8ui7/q1ImY7EToO06Gkwb/6t5nZeIhlTWJ4w==",
49
49
  "license": "MIT OR Apache-2.0",
50
50
  "engines": {
51
51
  "node": ">=22.0.0"
52
52
  }
53
53
  },
54
54
  "node_modules/@flop-labs/sdk": {
55
- "version": "0.13.1",
56
- "resolved": "https://registry.npmjs.org/@flop-labs/sdk/-/sdk-0.13.1.tgz",
57
- "integrity": "sha512-L2dhuXIabTqAH9a76jnO6Zzr5eDDcX4HRsrJX9r8O9rKRC7gpSfLUdfi6dVfH51AVuQAu5EBMm4xEebG2BoAgg==",
55
+ "version": "0.14.0",
56
+ "resolved": "https://registry.npmjs.org/@flop-labs/sdk/-/sdk-0.14.0.tgz",
57
+ "integrity": "sha512-nEaxbZY2Vq65ImYbEDG/kLFpC8LSefGybTVJB+SWeEnamPEA0lS0wXWYaCeS4ePQI4DAUj8hRRfmfOGTmnpAfw==",
58
58
  "license": "MIT OR Apache-2.0",
59
59
  "dependencies": {
60
- "@flop-labs/client": "^0.2.2",
60
+ "@flop-labs/client": "^0.2.3",
61
61
  "@noble/curves": "2.4.0",
62
62
  "@polkadot/api": "^17.0.1",
63
63
  "@polkadot/keyring": "^14.0.3",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tryflop",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "Try Flop for AI agents: your agent's own Flop wallet claims Flop's free test FLOP and pays real miners for AI answers, every day. An independent tool, not made by Flop Labs.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -32,7 +32,7 @@
32
32
  "verify": "npm run typecheck && npm test"
33
33
  },
34
34
  "dependencies": {
35
- "@flop-labs/sdk": "0.13.1",
35
+ "@flop-labs/sdk": "0.14.0",
36
36
  "@modelcontextprotocol/server": "2.4.0",
37
37
  "@polkadot/api": "17.0.2",
38
38
  "@polkadot/keyring": "14.0.3",
package/src/claim.js CHANGED
@@ -376,7 +376,10 @@ export async function runClaimFlow({ network, keyAddress, owner, recordFile, cha
376
376
  const nonce = String(clock.now());
377
377
  record.claim = { status: 'sending', at: clock.now(), nonce, beforePlanck: String(before) };
378
378
  save();
379
- say(`Asking Flop's ${network.name} faucet for ${network.quickGrant.flop} FLOP for ${own ? 'this wallet' : 'this connector\'s key'} ${keyAddress}…`);
379
+ // Flop's agent lane pays 1 FLOP on the FIRST claim and 10 only once an earlier grant has paid a miner
380
+ // (`agent.grantFlop` 1, `refillFlop` 10, `rolloverRequiresSpend` true; /limits read 1 Dec 2026), so the
381
+ // first claim must not be announced as ten.
382
+ say(`Asking Flop's ${network.name} faucet for its grant (${network.quickGrant.flop} FLOP on a first claim, 10 once an earlier one has paid a miner) for ${own ? 'this wallet' : 'this connector\'s key'} ${keyAddress}…`);
380
383
  let answer;
381
384
  try {
382
385
  answer = await faucet.claim(nonce);
package/src/home.js CHANGED
@@ -23,7 +23,7 @@ export const DEFAULT_LIMITS = Object.freeze({ maxFlopPerAsk: '1', maxFlopPerDay:
23
23
  /**
24
24
  * The local limits a new set-up gets on each network. Per answer: a round amount above one channel's escrow on that
25
25
  * network's miners, or every first question is refused (nothing bought, nothing answered): devnet's ecamli opens at
26
- * 0.89 FLOP (23 Nov 2026), testnet's m11 at 1.68 FLOP (26 Nov 2026); never above the
26
+ * 0.89 FLOP (23 Nov 2026), testnet's listed miners at 0.47 and 0.95 FLOP (28 Nov 2026); never above the
27
27
  * 2 FLOP any one channel may take (DIRECT.maxChannelPlanck).
28
28
  */
29
29
  const NETWORK_LIMITS = Object.freeze({ devnet: DEFAULT_LIMITS, testnet: Object.freeze({ ...DEFAULT_LIMITS, maxFlopPerAsk: '2' }) });
package/src/outer.js CHANGED
@@ -410,7 +410,7 @@ export async function runSetup(args, io) {
410
410
  `Status any time: ${cmd} status${net}`,
411
411
  'AI agents: never run "backup" or "restore", and never read the wallet\'s files: they hold the words.',
412
412
  '',
413
- 'Flop says compute purchased in settled sessions is what its airdrop counts. Scoring has not started (Flop announces when), test FLOP has no value, and Flop decides who qualifies and how much.',
413
+ 'Flop says compute purchased in settled sessions is what its airdrop counts. Scoring is on since 30 November 2026 (block 448,897), test FLOP has no value, and Flop decides who qualifies and how much.',
414
414
  );
415
415
  io.out.write(`${lines.join('\n')}\n`);
416
416
  return 0;
@@ -39,7 +39,7 @@ import { PLANCK_PER_FLOP } from './units.js';
39
39
  * check). Nothing on a network the build cannot read works — no balance, no faucet claim (the claim is a
40
40
  * chain read first) — so the screens may offer only what is readable there. The browser test in
41
41
  * `e2e/drive.mjs testnet` asserts the outcome this flag predicts, so a stale flag fails that run.
42
- * The pinned SDK 0.13.1 admits runtimes up to 1014040 (1014036 never existed) and refuses 1014041 on:
42
+ * The pinned SDK 0.14.0 admits runtimes up to 1014042 (1014036 never existed) and refuses 1014043 on:
43
43
  * the day Flop upgrades past that, the app refuses that network until the SDK is bumped again (testnet
44
44
  * moved to 1014040 on 28 Nov 2026, which 0.12.1 refused).
45
45
  */
@@ -131,18 +131,20 @@ export const NETWORKS = Object.freeze({
131
131
  * Flop opened its public testnet on 24 Nov 2026 ("FLOP Testnet is live! … We'll be activating features
132
132
  * over the coming hours", https://docs.flop.network/operators?network=testnet). Its faucet followed on
133
133
  * the night of 24–25 Nov: `faucet.flop.network` began serving testnet (devnet's moved to its own host —
134
- * see devnet above). Checked 26 Nov 2026 11:00 UTC: Flop's testnet explorer now lists 8 miners
135
- * (`/api/miners`; one ran a paid job at block 161,459; it answered `total: 0` on 25 Nov), but none
136
- * publishes a web address this app could reach it at, so `miners` stays empty; `gateway.testnet.flop.network`
137
- * answers since 26 Nov (this app uses no gateway); there is still no session-offer indexer.
134
+ * see devnet above). Miners registered from 26 Nov 2026 (66 in Flop's explorer at 17:33 UTC); none
135
+ * publishes a web address on chain or in the explorer, so `miners` lists ones whose operator published
136
+ * one, each added after a paid run on testnet through this app passed;
137
+ * `gateway.testnet.flop.network` answers since 26 Nov (this app uses no gateway); there is still no
138
+ * session-offer indexer.
138
139
  */
139
140
  testnet: Object.freeze({
140
141
  name: 'testnet',
141
142
  label: 'Testnet',
142
143
  status: 'live',
143
144
  /**
144
- * Testnet runs runtime 1014040 (`flop-testnet`, read on the node 28 Nov 2026 11:55 UTC; 1014039 on
145
- * 26–27 Nov, 1014035 on 24–25 Nov), which the pinned SDK 0.13.1 admits. 0.12.1 stopped at 1014039, so
145
+ * Testnet runs runtime 1014042 (`flop-testnet`, read on the node 30 Nov 2026; 1014040 from 28 Nov at block
146
+ * 301,826, 1014039 on 26–27 Nov, 1014035 on 24–25 Nov), which the pinned SDK 0.14.0 admits. 0.13.1 stopped
147
+ * at 1014040, so from the 30 Nov switch (block 447,306, the one that turned vouchers on) it read nothing; 0.12.1 stopped at 1014039, so
146
148
  * from the upgrade on 28 Nov until this bump the app connected, passed the genesis check and then read
147
149
  * nothing here ("runs a newer chain version"), as 0.9.0 did from 24 to 26 Nov. `e2e/drive.mjs testnet`
148
150
  * decides which of the two this flag must be from what the app actually reaches, so a stale flag fails
@@ -155,8 +157,8 @@ export const NETWORKS = Object.freeze({
155
157
  rpcHttp: 'https://testnet.flop.network',
156
158
  /**
157
159
  * No (checked 27 Nov 2026): a pre-check from Origin https://tryflop.com answers 404, and a POST's answer carries no
158
- * access-control-allow-origin, so a browser on another site cannot read it (a page on 127.0.0.1 can: the node's
159
- * default CORS allows localhost, which is why local runs pass). The home page shows no live block for testnet.
160
+ * access-control-allow-origin, so a browser on another site cannot read it (checked again 27 Nov 2026 17:19 UTC: the
161
+ * same 404 for 127.0.0.1, localhost and tryflop.com). The home page shows no live block for testnet.
160
162
  */
161
163
  rpcHttpFromPages: false,
162
164
  /**
@@ -180,13 +182,66 @@ export const NETWORKS = Object.freeze({
180
182
  * and a transfer to this app's wallet. `node e2e/drive.mjs testnet` fails once a real browser gets through.
181
183
  */
182
184
  faucet: 'https://faucet.flop.network',
183
- quickGrant: Object.freeze({ flop: 10, signed: true, verified: false, browserClaim: false }),
185
+ /** 1, not 10: its agent lane pays 1 FLOP on the first claim and 10 once that grant has paid a miner for
186
+ * inference (`agent.grantFlop` 1, `refillFlop` 10, `rolloverRequiresSpend` true, /limits 30 Nov 2026). */
187
+ quickGrant: Object.freeze({ flop: 1, signed: true, verified: false, browserClaim: false }),
184
188
  gateway: '',
185
189
  /** Flop's own explorer, linked from the announcement ("Follow the chain on FLOPScan"). */
186
190
  explorer: 'https://testnet.flopscan.io',
187
191
  indexer: '',
188
192
  genesis: '0x918abd58fb16306b30ef3886514cfaebffecb4de43e82b6f8ec4795c43cfd800',
189
- miners: Object.freeze([]),
193
+ miners: Object.freeze([
194
+ // Operator-published (#1651, the same account and host in #1562). Paid through this app on 28 Nov 2026 and
195
+ // judged from the chain: channel 0xa9c2be7f…f669 settled cooperatively at block 336,243 (three answers,
196
+ // 0.3999 of a 0.4704 FLOP escrow to the miner); it settled small channels with other buyers that day too.
197
+ Object.freeze({
198
+ id: 'ariabrain-m1',
199
+ address: '5EZ1QVRE3gbSxupfYMreegFAgvmL4mhe5pCgHJaRUFvaZUTW',
200
+ endpoint: 'https://m1.flop.ariabrain.com',
201
+ model: 'qwen/qwen3-8b',
202
+ modelHash: '0x2dc476dabd39fb86d216e04f3c50313a22fa9e5bfa65f8e236557c30ddfaba55',
203
+ source: 'https://github.com/flop-labs/network/issues/1651',
204
+ checked: '2026-11-28',
205
+ }),
206
+ // Operator-published (#935, the comment that corrects the account; the host is named in it). Paid through this
207
+ // app on 28 Nov 2026 and judged from the chain: channel 0x63934132…2fa9 settled cooperatively at block 337,870
208
+ // (two answers, 0.8034 of a 0.9452 FLOP escrow to the miner).
209
+ Object.freeze({
210
+ id: 'ecamli-testnet',
211
+ address: '5Gjy2TuHGNkojLggYFMcXVrZvWq8hx9qt2bQKYfW9MomYWgn',
212
+ endpoint: 'https://testnet.ecamliflop.fyi',
213
+ model: 'qwen/qwen3-8b',
214
+ modelHash: '0x2dc476dabd39fb86d216e04f3c50313a22fa9e5bfa65f8e236557c30ddfaba55',
215
+ source: 'https://github.com/flop-labs/network/issues/935#issuecomment-7198236370',
216
+ checked: '2026-11-28',
217
+ }),
218
+ // Vetted read-only on 1 Dec 2026 while every miner above it was down: signed proof ready on testnet for
219
+ // this account, and the chain showed it registered, active and admitted at finalized 523,168. Paid through
220
+ // this package the same day, judged from the chain: channel 0x16959165…cece, opened at block 525,552 and
221
+ // Settled cooperatively at 525,680 with the miner paid 0.0204 FLOP. shuaizhi, listed after this one, timed out
222
+ // on that run, and the app moved to this miner — the NEXT MINER path, observed live.
223
+ Object.freeze({
224
+ id: 'miner43160',
225
+ address: '5HEqF5wgHFzUWH2eaY23gYMbjFvmxSm57aBXByEUEmXvGYuc',
226
+ endpoint: 'https://43.160.196.171.sslip.io',
227
+ model: 'qwen/qwen3-8b',
228
+ modelHash: '0x2dc476dabd39fb86d216e04f3c50313a22fa9e5bfa65f8e236557c30ddfaba55',
229
+ source: 'https://github.com/flop-labs/network/issues/2342',
230
+ checked: '2026-12-01',
231
+ }),
232
+ // NEVER PAID by this app: vetted read-only on 1 Dec 2026 (signed proof ready for this account, registered,
233
+ // active, admitted, bare open 0.179 FLOP). It timed out on the 1 Dec paid run, so it stays last until the
234
+ // chain shows it settling a channel; a read-only check alone must not promote it.
235
+ Object.freeze({
236
+ id: 'shuaizhi',
237
+ address: '5FCAfiU6gECAtrTF26BCBsDo7V7CLS2UwZ2oA862kkFf6DHM',
238
+ endpoint: 'https://shuaizhi.xyz',
239
+ model: 'qwen/qwen3-8b',
240
+ modelHash: '0x2dc476dabd39fb86d216e04f3c50313a22fa9e5bfa65f8e236557c30ddfaba55',
241
+ source: 'https://github.com/flop-labs/network/issues/2339',
242
+ checked: '2026-12-01',
243
+ }),
244
+ ]),
190
245
  }),
191
246
  });
192
247
 
package/src/statusfile.js CHANGED
@@ -46,7 +46,7 @@ export function writeStatusFile(file, s) {
46
46
  `- Wallet on Flop ${s.network}: ${s.address} (this agent's own; test FLOP has no value)`,
47
47
  `- Answers: ${join(s.humanDir, humanFiles(s.network).answers)}`,
48
48
  '',
49
- 'Try Flop is an independent tool, not made by Flop Labs. Flop says compute purchased in settled sessions is what its airdrop counts; scoring has not started until Flop says so, and Flop decides who qualifies and how much.',
49
+ 'Try Flop is an independent tool, not made by Flop Labs. Flop says compute purchased in settled sessions is what its airdrop counts; scoring has been on since 30 November 2026 (block 448,897), and Flop decides who qualifies and how much.',
50
50
  '',
51
51
  'Commands: `tryflop status` (where things stand), `tryflop backup` (your 12 recovery words: run it yourself, never through an AI agent), `tryflop uninstall` (stop the daily run).',
52
52
  '',