idlebench 1.0.1 → 1.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.
- package/dist/commands/run.d.ts.map +1 -1
- package/dist/commands/run.js +5 -3
- package/dist/index.js +3 -1
- package/package.json +3 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/commands/run.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/commands/run.ts"],"names":[],"mappings":"AA8IA,wBAAsB,mBAAmB,kBAgMxC"}
|
package/dist/commands/run.js
CHANGED
|
@@ -9,7 +9,9 @@ import { getNetworkInfo } from '../lib/network.js';
|
|
|
9
9
|
import { runBenchmark } from '../lib/benchmark.js';
|
|
10
10
|
import { calculateGpuScore, calculateRuntimeScore, calculateNetworkScore, calculateInferenceScore, calculateStabilityScore, calculateFinalScore, getGrade, } from '../lib/scoring.js';
|
|
11
11
|
import { buildReport, saveReportLocally } from '../lib/report.js';
|
|
12
|
-
|
|
12
|
+
import { createRequire } from 'module';
|
|
13
|
+
const require = createRequire(import.meta.url);
|
|
14
|
+
const { version: CLI_VERSION } = require('../../package.json');
|
|
13
15
|
const DEFAULT_API_URL = 'https://idlebench.vercel.app';
|
|
14
16
|
function line() {
|
|
15
17
|
console.log(chalk.dim(' ─────────────────────────────────────────'));
|
|
@@ -99,7 +101,7 @@ async function promptSetup() {
|
|
|
99
101
|
{
|
|
100
102
|
type: 'input',
|
|
101
103
|
name: 'idleGatewayUrl',
|
|
102
|
-
message: 'IDLE
|
|
104
|
+
message: 'IDLE endpoint URL (from earnidle.com, optional — press Enter to skip):',
|
|
103
105
|
default: '',
|
|
104
106
|
validate: (input) => {
|
|
105
107
|
if (!input.trim())
|
|
@@ -109,7 +111,7 @@ async function promptSetup() {
|
|
|
109
111
|
return true;
|
|
110
112
|
}
|
|
111
113
|
catch {
|
|
112
|
-
return 'Enter a valid URL or leave blank';
|
|
114
|
+
return 'Enter a valid URL (e.g. https://gateway.earnidle.com/ep/...) or leave blank';
|
|
113
115
|
}
|
|
114
116
|
},
|
|
115
117
|
},
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { Command } from 'commander';
|
|
3
3
|
import chalk from 'chalk';
|
|
4
|
+
import { createRequire } from 'module';
|
|
4
5
|
import { runBenchmarkCommand } from './commands/run.js';
|
|
5
6
|
import { runDoctor } from './commands/doctor.js';
|
|
6
7
|
import { runUpload } from './commands/upload.js';
|
|
7
|
-
const
|
|
8
|
+
const require = createRequire(import.meta.url);
|
|
9
|
+
const { version: VERSION } = require('../package.json');
|
|
8
10
|
const program = new Command();
|
|
9
11
|
program
|
|
10
12
|
.name('idlebench')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "idlebench",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Benchmark and verify idle compute before it earns. The CLI for IDLE compute providers.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "IdleBench",
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
"files": [
|
|
22
22
|
"dist",
|
|
23
23
|
"README.md",
|
|
24
|
-
"LICENSE"
|
|
24
|
+
"LICENSE",
|
|
25
|
+
"package.json"
|
|
25
26
|
],
|
|
26
27
|
"scripts": {
|
|
27
28
|
"build": "tsc",
|