@krtclcdy/tersio 2.21.0 → 2.22.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 +19 -15
- package/cli/common.js +16 -4
- package/cli/currency.js +2 -2
- package/cli/dashboard.js +313 -52
- package/cli/doctor-fix.js +12 -12
- package/cli/doctor.js +21 -52
- package/cli/install.js +31 -60
- package/cli/profile.js +1 -1
- package/cli/settings.js +132 -9
- package/cli/uninstall.js +4 -4
- package/cli/update.js +10 -20
- package/cli/usage.js +1 -1
- package/dashboard/dist/index.html +65 -0
- package/extensions/ai-addons-updater/index.js +13 -30
- package/extensions/ai-addons-updater/index.ts +11 -29
- package/extensions/lib/utils.js +26 -1
- package/extensions/lib/utils.ts +28 -1
- package/extensions/shared/pricing.js +2 -2
- package/extensions/shared/pricing.ts +2 -1
- package/extensions/shared/usage-ledger.js +4 -3
- package/extensions/shared/usage-ledger.ts +4 -3
- package/extensions/shared/usage-store.js +7 -7
- package/extensions/shared/usage-store.ts +7 -6
- package/extensions/tersio-commands/index.js +10 -13
- package/extensions/tersio-commands/index.ts +10 -13
- package/package.json +22 -36
- package/tersio.js +9 -9
- package/dashboard/app.js +0 -1495
- package/dashboard/styles.css +0 -304
- package/dashboard/template.html +0 -410
- /package/dashboard/{brand.webp → dist/brand.webp} +0 -0
package/tersio.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// tersio.ts — Install Tersio (caveman/rtk/ponytail) add-ons on any OMP device.
|
|
3
|
-
// Usage: node tersio.js [install|update|reinstall|doctor|uninstall|version|help] [options]
|
|
3
|
+
// Usage: node tersio.js [install|update|reinstall|doctor|dashboard|uninstall|version|help] [options]
|
|
4
4
|
// Requires: node/npm and omp CLI
|
|
5
|
-
import { PACKAGE_BIN, PACKAGE_VERSION, applyUpdate, commandArg,
|
|
5
|
+
import { PACKAGE_BIN, PACKAGE_VERSION, applyUpdate, commandArg, dashboard, dashboardExport, dashboardOpen, dashboardPort, doctor, reset, settings, showHelp, showVersion, uninstall, unknownCommand, update, usage, } from './cli/common.js';
|
|
6
6
|
import { closeRL } from './cli/interactive.js';
|
|
7
7
|
import { runInstall } from './cli/install.js';
|
|
8
8
|
import { runDoctor } from './cli/doctor.js';
|
|
@@ -21,7 +21,7 @@ Commands:
|
|
|
21
21
|
reinstall Clean and reinstall the user-scope add-ons
|
|
22
22
|
doctor Check the current installation (--fix repairs, --dry-run previews)
|
|
23
23
|
usage Ledger-backed usage + savings report
|
|
24
|
-
|
|
24
|
+
dashboard Open the Dashboard (localhost only)
|
|
25
25
|
reset Clear tersio statistics (usage ledger)
|
|
26
26
|
settings View/change session-start defaults (combo, caveman, rtk, ponytail)
|
|
27
27
|
uninstall Remove the managed extensions
|
|
@@ -31,7 +31,7 @@ Commands:
|
|
|
31
31
|
Options:
|
|
32
32
|
--fix (doctor: repairs all; --fix=<scope> repairs one of extensions, registrations, rtk, ponytail, cli)
|
|
33
33
|
--scope user (legacy; accepted and ignored — user scope is the only scope)
|
|
34
|
-
--keep-ponytail (uninstall: keep the Ponytail
|
|
34
|
+
--keep-ponytail (uninstall: keep the bundled Ponytail copy — removed by default)
|
|
35
35
|
--remove-rtk (uninstall: also remove the RTK binary)
|
|
36
36
|
--combo-default off|medium|balanced|max (implies caveman, rtk, ponytail)
|
|
37
37
|
--caveman-default off|lite|full|ultra|wenyan (override; default follows combo)
|
|
@@ -40,10 +40,10 @@ Options:
|
|
|
40
40
|
--yes, -y
|
|
41
41
|
--dry-run
|
|
42
42
|
--verbose
|
|
43
|
-
--port <n> (
|
|
44
|
-
--open (
|
|
45
|
-
--export <file> (
|
|
46
|
-
--currency <code> (usage|
|
|
43
|
+
--port <n> (dashboard: pin port, default ephemeral)
|
|
44
|
+
--open (dashboard: open browser)
|
|
45
|
+
--export <file> (dashboard: write HTML file instead of serving)
|
|
46
|
+
--currency <code> (usage|dashboard: display currency; flag wins, then tersio settings default, then USD)
|
|
47
47
|
--version, -v
|
|
48
48
|
--help, -h`);
|
|
49
49
|
}
|
|
@@ -80,7 +80,7 @@ async function main() {
|
|
|
80
80
|
closeRL();
|
|
81
81
|
return;
|
|
82
82
|
}
|
|
83
|
-
if (
|
|
83
|
+
if (dashboard) {
|
|
84
84
|
await runDashboard({ port: dashboardPort, open: dashboardOpen, exportFile: dashboardExport });
|
|
85
85
|
closeRL();
|
|
86
86
|
return;
|