@blockrun/franklin 3.0.3 โ 3.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 +4 -8
- package/dist/banner.js +32 -17
- package/dist/index.js +0 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -12,8 +12,6 @@
|
|
|
12
12
|
<a href="https://npmjs.com/package/@blockrun/franklin"><img src="https://img.shields.io/npm/v/@blockrun/franklin.svg?style=flat-square&color=FFD700" alt="npm version"></a>
|
|
13
13
|
<a href="LICENSE"><img src="https://img.shields.io/badge/License-Apache_2.0-blue?style=flat-square" alt="License: Apache-2.0"></a>
|
|
14
14
|
<a href="https://x402.org"><img src="https://img.shields.io/badge/x402-Payments-10B981?style=flat-square" alt="x402"></a>
|
|
15
|
-
<a href="https://franklin.run"><img src="https://img.shields.io/badge/Marketing-franklin.run-06B6D4?style=flat-square" alt="franklin.run"></a>
|
|
16
|
-
<a href="https://franklin.bet"><img src="https://img.shields.io/badge/Trading-franklin.bet-10B981?style=flat-square" alt="franklin.bet"></a>
|
|
17
15
|
</p>
|
|
18
16
|
|
|
19
17
|
---
|
|
@@ -48,8 +46,8 @@ $ franklin marketing campaign "Launch my AI coding app to indie hackers"
|
|
|
48
46
|
|
|
49
47
|
| | | |
|
|
50
48
|
|---|---|---|
|
|
51
|
-
| ๐ฏ | **
|
|
52
|
-
| ๐ | **
|
|
49
|
+
| ๐ฏ | **Marketing agent** | Campaigns, content, outreach, growth |
|
|
50
|
+
| ๐ | **Trading agent** | Signals, research, risk analysis |
|
|
53
51
|
|
|
54
52
|
Both paid per action in USDC. Both backed by the same [BlockRun gateway](https://blockrun.ai) and x402 protocol.
|
|
55
53
|
|
|
@@ -65,8 +63,8 @@ Both paid per action in USDC. Both backed by the same [BlockRun gateway](https:/
|
|
|
65
63
|
| **Spends money autonomously** | โ | โ | โ | โ
|
|
|
66
64
|
| **Wallet-native identity** | โ | โ | โ | โ
|
|
|
67
65
|
| **Pay per action** | โ subscription | โ BYOK | โ BYOK | โ
USDC |
|
|
68
|
-
| **Marketing workflows** | โ | โ | โ | โ
|
|
69
|
-
| **Trading workflows** | โ | โ | โ | โ
|
|
66
|
+
| **Marketing workflows** | โ | โ | โ | โ
(built-in) |
|
|
67
|
+
| **Trading workflows** | โ | โ | โ | โ
(built-in) |
|
|
70
68
|
| No account / phone verification | โ | โ ๏ธ BYOK | โ ๏ธ BYOK | โ
|
|
|
71
69
|
|
|
72
70
|
**Franklin is the first AI agent in the "Autonomous Economic Agent" category** โ an agent that receives a goal, decides what to spend on, and executes autonomously within a hard budget cap enforced by the wallet.
|
|
@@ -235,8 +233,6 @@ Contributions welcome. Open an issue first to discuss meaningful changes. For pl
|
|
|
235
233
|
|
|
236
234
|
## Links
|
|
237
235
|
|
|
238
|
-
- **Marketing**: [franklin.run](https://franklin.run)
|
|
239
|
-
- **Trading**: [franklin.bet](https://franklin.bet)
|
|
240
236
|
- **Parent**: [BlockRun](https://blockrun.ai)
|
|
241
237
|
- **npm**: [@blockrun/franklin](https://npmjs.com/package/@blockrun/franklin)
|
|
242
238
|
- **Telegram**: [t.me/blockrunAI](https://t.me/blockrunAI)
|
package/dist/banner.js
CHANGED
|
@@ -8,23 +8,38 @@ const FRANKLIN_ART = [
|
|
|
8
8
|
' โโโ โโโ โโโโโโ โโโโโโ โโโโโโโโโ โโโโโโโโโโโโโโโโโ โโโโโโ',
|
|
9
9
|
' โโโ โโโ โโโโโโ โโโโโโ โโโโโโโโ โโโโโโโโโโโโโโโโโ โโโโโ',
|
|
10
10
|
];
|
|
11
|
-
// Franklin brand
|
|
12
|
-
//
|
|
13
|
-
//
|
|
14
|
-
//
|
|
15
|
-
const
|
|
16
|
-
const
|
|
11
|
+
// Franklin brand gradient: gold โ emerald
|
|
12
|
+
// Gold (#FFD700) is the $100 bill / Benjamins color โ marketing product energy
|
|
13
|
+
// Emerald (#10B981) is the trading / money-moving color
|
|
14
|
+
// The gradient between them tells the Franklin story in one glance
|
|
15
|
+
const GOLD_START = '#FFD700';
|
|
16
|
+
const EMERALD_END = '#10B981';
|
|
17
|
+
function hexToRgb(hex) {
|
|
18
|
+
const m = hex.replace('#', '');
|
|
19
|
+
return [
|
|
20
|
+
parseInt(m.slice(0, 2), 16),
|
|
21
|
+
parseInt(m.slice(2, 4), 16),
|
|
22
|
+
parseInt(m.slice(4, 6), 16),
|
|
23
|
+
];
|
|
24
|
+
}
|
|
25
|
+
function rgbToHex(r, g, b) {
|
|
26
|
+
const toHex = (n) => Math.round(n).toString(16).padStart(2, '0');
|
|
27
|
+
return `#${toHex(r)}${toHex(g)}${toHex(b)}`;
|
|
28
|
+
}
|
|
29
|
+
function interpolateHex(start, end, t) {
|
|
30
|
+
const [r1, g1, b1] = hexToRgb(start);
|
|
31
|
+
const [r2, g2, b2] = hexToRgb(end);
|
|
32
|
+
return rgbToHex(r1 + (r2 - r1) * t, g1 + (g2 - g1) * t, b1 + (b2 - b1) * t);
|
|
33
|
+
}
|
|
17
34
|
export function printBanner(version) {
|
|
18
|
-
//
|
|
19
|
-
const
|
|
20
|
-
for (
|
|
21
|
-
|
|
35
|
+
// Smooth 6-row gradient: each line gets its own interpolated color
|
|
36
|
+
const steps = FRANKLIN_ART.length;
|
|
37
|
+
for (let i = 0; i < steps; i++) {
|
|
38
|
+
const t = i / (steps - 1);
|
|
39
|
+
const color = interpolateHex(GOLD_START, EMERALD_END, t);
|
|
40
|
+
console.log(chalk.hex(color)(FRANKLIN_ART[i]));
|
|
22
41
|
}
|
|
23
|
-
console.log(chalk.bold.hex(
|
|
24
|
-
chalk.dim(' ยท The AI agent with a wallet ยท v' + version)
|
|
25
|
-
|
|
26
|
-
chalk.hex(GOLD)('franklin.run') +
|
|
27
|
-
chalk.dim(' ยท Trading: ') +
|
|
28
|
-
chalk.hex(EMERALD)('franklin.bet') +
|
|
29
|
-
chalk.dim('\n'));
|
|
42
|
+
console.log(chalk.bold.hex(GOLD_START)(' Franklin') +
|
|
43
|
+
chalk.dim(' ยท The AI agent with a wallet ยท v' + version) +
|
|
44
|
+
'\n');
|
|
30
45
|
}
|
package/dist/index.js
CHANGED
|
@@ -29,8 +29,6 @@ program
|
|
|
29
29
|
.name('franklin')
|
|
30
30
|
.description('Franklin โ The AI agent with a wallet.\n\n' +
|
|
31
31
|
'While others chat, Franklin spends โ turning your USDC into real work.\n\n' +
|
|
32
|
-
' Marketing workflows: franklin.run\n' +
|
|
33
|
-
' Trading workflows: franklin.bet\n\n' +
|
|
34
32
|
'Pay per action in USDC on Base or Solana. No subscriptions. No accounts.')
|
|
35
33
|
.version(version);
|
|
36
34
|
program
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockrun/franklin",
|
|
3
|
-
"version": "3.0
|
|
4
|
-
"description": "Franklin โ The AI agent with a wallet.
|
|
3
|
+
"version": "3.1.0",
|
|
4
|
+
"description": "Franklin โ The AI agent with a wallet. Spends USDC autonomously to get real work done. Pay per action, no subscriptions.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"type": "git",
|
|
55
55
|
"url": "https://github.com/BlockRunAI/franklin"
|
|
56
56
|
},
|
|
57
|
-
"homepage": "https://franklin
|
|
57
|
+
"homepage": "https://github.com/BlockRunAI/franklin",
|
|
58
58
|
"engines": {
|
|
59
59
|
"node": ">=20"
|
|
60
60
|
},
|