@blockrun/franklin 3.29.15 → 3.29.16
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/dist/commands/start.js +4 -10
- package/dist/stats/insights.js +1 -3
- package/package.json +1 -1
package/dist/commands/start.js
CHANGED
|
@@ -5,7 +5,7 @@ import { getOrCreateWallet, getOrCreateSolanaWallet } from '@blockrun/llm';
|
|
|
5
5
|
import { BLOCKRUN_DIR, loadChain, API_URLS } from '../config.js';
|
|
6
6
|
import { retryFetchBalance } from './balance-retry.js';
|
|
7
7
|
import { flushStats, loadStats } from '../stats/tracker.js';
|
|
8
|
-
import { OPUS_PRICING
|
|
8
|
+
import { OPUS_PRICING } from '../pricing.js';
|
|
9
9
|
import { loadConfig } from './config.js';
|
|
10
10
|
import { printBanner } from '../banner.js';
|
|
11
11
|
import { assembleInstructions } from '../agent/context.js';
|
|
@@ -190,15 +190,9 @@ export async function startCommand(options) {
|
|
|
190
190
|
process.exitCode = exitCode;
|
|
191
191
|
return;
|
|
192
192
|
}
|
|
193
|
-
//
|
|
194
|
-
//
|
|
195
|
-
|
|
196
|
-
const pricing = MODEL_PRICING[model];
|
|
197
|
-
const isFree = pricing != null && pricing.input === 0 && pricing.output === 0 && (pricing.perCall ?? 0) === 0;
|
|
198
|
-
if (!isFree) {
|
|
199
|
-
console.log(chalk.yellow(` Model: ${model} (paid — charges from your wallet per call)`));
|
|
200
|
-
console.log(chalk.dim(` Switch to free with: /model free\n`));
|
|
201
|
-
}
|
|
193
|
+
// Show the active model at startup. No paid/free framing — Franklin is the
|
|
194
|
+
// agent with a wallet; spending is the point, not a warning.
|
|
195
|
+
console.log(chalk.dim(` Model: ${model}\n`));
|
|
202
196
|
// Auto-create wallet if needed (no interruption — free models work without funding)
|
|
203
197
|
let walletAddress = '';
|
|
204
198
|
if (chain === 'solana') {
|
package/dist/stats/insights.js
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* - Cost projections and efficiency metrics
|
|
12
12
|
*/
|
|
13
13
|
import { loadStats } from './tracker.js';
|
|
14
|
-
import { OPUS_PRICING
|
|
14
|
+
import { OPUS_PRICING } from '../pricing.js';
|
|
15
15
|
import { formatTokens, formatUsd, shortModelName } from './format.js';
|
|
16
16
|
// ─── Generate Report ──────────────────────────────────────────────────────
|
|
17
17
|
export function generateInsights(days = 30) {
|
|
@@ -193,5 +193,3 @@ export function formatInsights(report, days) {
|
|
|
193
193
|
lines.push('');
|
|
194
194
|
return lines.join('\n');
|
|
195
195
|
}
|
|
196
|
-
// Silence unused import warning
|
|
197
|
-
void MODEL_PRICING;
|
package/package.json
CHANGED