@blockrun/franklin 3.0.1 → 3.0.2

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.
Files changed (2) hide show
  1. package/dist/banner.js +7 -22
  2. package/package.json +1 -1
package/dist/banner.js CHANGED
@@ -8,31 +8,16 @@ const FRANKLIN_ART = [
8
8
  ' ██║ ██║ ██║██║ ██║██║ ╚████║██║ ██╗███████╗██║██║ ╚████║',
9
9
  ' ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝╚══════╝╚═╝╚═╝ ╚═══╝',
10
10
  ];
11
- // Gradient anchors: gold → emerald green (money colors)
11
+ // Franklin brand colors
12
+ // Gold is the brand anchor — $100 bill, "Benjamins", wealth, Benjamin Franklin himself
13
+ // Emerald is the secondary, reserved for franklin.bet (trading) product color
12
14
  const GOLD = '#FFD700';
13
15
  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
- }
29
16
  export function printBanner(version) {
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]));
17
+ // Pure gold FRANKLIN single brand color, maximum signature strength
18
+ const goldFn = chalk.hex(GOLD);
19
+ for (const line of FRANKLIN_ART) {
20
+ console.log(goldFn(line));
36
21
  }
37
22
  console.log(chalk.bold.hex(GOLD)(' Franklin') +
38
23
  chalk.dim(' · The AI agent with a wallet · v' + version));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockrun/franklin",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
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": {