opencode-token-tracker 1.6.0 → 1.6.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.
@@ -534,13 +534,12 @@ function cmdConfig(positional) {
534
534
  console.log("\n Usage: opencode-tokens config get <key>\n");
535
535
  return;
536
536
  }
537
- const value = resolveConfigKey(config, key);
538
- if (value === undefined) {
537
+ if (!SETTABLE_KEYS[key]) {
539
538
  console.log(`\n Unknown key: ${key}\n Available: ${Object.keys(SETTABLE_KEYS).join(", ")}\n`);
539
+ return;
540
540
  }
541
- else {
542
- console.log(`\n ${key} = ${JSON.stringify(value)}\n`);
543
- }
541
+ const value = resolveConfigKey(config, key);
542
+ console.log(`\n ${key} = ${JSON.stringify(value)} (default: ${JSON.stringify(SETTABLE_KEYS[key].default)})\n`);
544
543
  return;
545
544
  }
546
545
  if (action === "set") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-token-tracker",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "Real-time token usage and cost tracking plugin for OpenCode with Toast notifications and CLI stats",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",