tryflop 0.1.0 → 0.2.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 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.0 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):
@@ -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.0",
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.0",
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.0",
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/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
  /**
@@ -186,7 +188,32 @@ export const NETWORKS = Object.freeze({
186
188
  explorer: 'https://testnet.flopscan.io',
187
189
  indexer: '',
188
190
  genesis: '0x918abd58fb16306b30ef3886514cfaebffecb4de43e82b6f8ec4795c43cfd800',
189
- miners: Object.freeze([]),
191
+ miners: Object.freeze([
192
+ // Operator-published (#1651, the same account and host in #1562). Paid through this app on 28 Nov 2026 and
193
+ // judged from the chain: channel 0xa9c2be7f…f669 settled cooperatively at block 336,243 (three answers,
194
+ // 0.3999 of a 0.4704 FLOP escrow to the miner); it settled small channels with other buyers that day too.
195
+ Object.freeze({
196
+ id: 'ariabrain-m1',
197
+ address: '5EZ1QVRE3gbSxupfYMreegFAgvmL4mhe5pCgHJaRUFvaZUTW',
198
+ endpoint: 'https://m1.flop.ariabrain.com',
199
+ model: 'qwen/qwen3-8b',
200
+ modelHash: '0x2dc476dabd39fb86d216e04f3c50313a22fa9e5bfa65f8e236557c30ddfaba55',
201
+ source: 'https://github.com/flop-labs/network/issues/1651',
202
+ checked: '2026-11-28',
203
+ }),
204
+ // Operator-published (#935, the comment that corrects the account; the host is named in it). Paid through this
205
+ // app on 28 Nov 2026 and judged from the chain: channel 0x63934132…2fa9 settled cooperatively at block 337,870
206
+ // (two answers, 0.8034 of a 0.9452 FLOP escrow to the miner).
207
+ Object.freeze({
208
+ id: 'ecamli-testnet',
209
+ address: '5Gjy2TuHGNkojLggYFMcXVrZvWq8hx9qt2bQKYfW9MomYWgn',
210
+ endpoint: 'https://testnet.ecamliflop.fyi',
211
+ model: 'qwen/qwen3-8b',
212
+ modelHash: '0x2dc476dabd39fb86d216e04f3c50313a22fa9e5bfa65f8e236557c30ddfaba55',
213
+ source: 'https://github.com/flop-labs/network/issues/935#issuecomment-7198236370',
214
+ checked: '2026-11-28',
215
+ }),
216
+ ]),
190
217
  }),
191
218
  });
192
219
 
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
  '',