@blockrun/franklin 3.0.0 → 3.0.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
@@ -216,8 +216,8 @@ src/
216
216
  ## Development
217
217
 
218
218
  ```bash
219
- git clone https://github.com/BlockRunAI/runcode.git
220
- cd runcode
219
+ git clone https://github.com/BlockRunAI/franklin.git
220
+ cd franklin
221
221
  npm install
222
222
  npm run build
223
223
  npm test # Deterministic local tests (no API calls)
package/dist/banner.js CHANGED
@@ -8,20 +8,37 @@ const FRANKLIN_ART = [
8
8
  ' ██║ ██║ ██║██║ ██║██║ ╚████║██║ ██╗███████╗██║██║ ╚████║',
9
9
  ' ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝╚══════╝╚═╝╚═╝ ╚═══╝',
10
10
  ];
11
+ // Gradient anchors: gold → emerald green (money colors)
12
+ const GOLD = '#FFD700';
13
+ const EMERALD = '#10B981';
14
+ /** Linearly interpolate between two hex colors. t ∈ [0, 1]. */
15
+ function interpolateHex(start, end, t) {
16
+ const s = parseInt(start.slice(1), 16);
17
+ const e = parseInt(end.slice(1), 16);
18
+ const sr = (s >> 16) & 0xff;
19
+ const sg = (s >> 8) & 0xff;
20
+ const sb = s & 0xff;
21
+ const er = (e >> 16) & 0xff;
22
+ const eg = (e >> 8) & 0xff;
23
+ const eb = e & 0xff;
24
+ const r = Math.round(sr + (er - sr) * t);
25
+ const g = Math.round(sg + (eg - sg) * t);
26
+ const b = Math.round(sb + (eb - sb) * t);
27
+ return '#' + [r, g, b].map(v => v.toString(16).padStart(2, '0')).join('');
28
+ }
11
29
  export function printBanner(version) {
12
- // Gold green gradient: money colors for "the agent with a wallet"
13
- const gold = chalk.hex('#FFD700');
14
- const green = chalk.hex('#10B981');
15
- for (let i = 0; i < FRANKLIN_ART.length; i++) {
16
- // Alternate lines between gold and green for subtle depth
17
- const color = i < 3 ? gold : green;
18
- console.log(color(FRANKLIN_ART[i]));
30
+ // Smooth gradient across all rows: row 0 = pure gold, last row = emerald
31
+ const n = FRANKLIN_ART.length;
32
+ for (let i = 0; i < n; i++) {
33
+ const t = n === 1 ? 0 : i / (n - 1);
34
+ const hex = interpolateHex(GOLD, EMERALD, t);
35
+ console.log(chalk.hex(hex)(FRANKLIN_ART[i]));
19
36
  }
20
- console.log(chalk.bold.hex('#FFD700')(' Franklin') +
37
+ console.log(chalk.bold.hex(GOLD)(' Franklin') +
21
38
  chalk.dim(' · The AI agent with a wallet · v' + version));
22
39
  console.log(chalk.dim(' Marketing: ') +
23
- chalk.cyan('franklin.run') +
40
+ chalk.hex(GOLD)('franklin.run') +
24
41
  chalk.dim(' · Trading: ') +
25
- chalk.hex('#10B981')('franklin.bet') +
42
+ chalk.hex(EMERALD)('franklin.bet') +
26
43
  chalk.dim('\n'));
27
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockrun/franklin",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Franklin — The AI agent with a wallet. Marketing at franklin.run, trading at franklin.bet. Pay per action in USDC.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -52,7 +52,7 @@
52
52
  "license": "Apache-2.0",
53
53
  "repository": {
54
54
  "type": "git",
55
- "url": "https://github.com/BlockRunAI/runcode"
55
+ "url": "https://github.com/BlockRunAI/franklin"
56
56
  },
57
57
  "homepage": "https://franklin.run",
58
58
  "engines": {