subto 8.0.5 → 8.0.6

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.
Files changed (2) hide show
  1. package/index.js +2 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -11,7 +11,7 @@ const chalk = (_chalk && _chalk.default) ? _chalk.default : _chalk;
11
11
  const CONFIG_DIR = path.join(os.homedir(), '.subto');
12
12
  const CONFIG_PATH = path.join(CONFIG_DIR, 'config.json');
13
13
  const DEFAULT_API_BASE = 'https://subto.one/api/v1';
14
- const CLIENT_META = { name: 'subto-cli', version: '8.0.5' };
14
+ const CLIENT_META = { name: 'subto-cli', version: '8.0.6' };
15
15
  const cp = require('child_process');
16
16
 
17
17
  // Normalize SUBTO API base so callers can set either
@@ -447,7 +447,6 @@ async function callOpenAI(prompt){
447
447
  const j = await res.json();
448
448
  const msg = j && j.choices && j.choices[0] && (j.choices[0].message && j.choices[0].message.content || j.choices[0].text);
449
449
  return String(msg || '').trim();
450
- }
451
450
 
452
451
  if (openrouterKey) {
453
452
  // Use OpenRouter chat completions endpoint
@@ -570,7 +569,7 @@ async function startChatREPL(scanData){
570
569
 
571
570
  async function run(argv) {
572
571
  const program = new Command();
573
- program.name('subto').description('Subto CLI — wrapper around Subto.One API').version(CLIENT_META.version || '8.0.5');
572
+ program.name('subto').description('Subto CLI — wrapper around Subto.One API').version(CLIENT_META.version || '8.0.6');
574
573
  program.option('-v, --verbose', 'Show verbose HTTP logs');
575
574
  program.option('--debug', 'Show debug HTTP headers and responses');
576
575
  program.option('--chat', 'Start local AI assistant (no command required)');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "subto",
3
- "version": "8.0.5",
3
+ "version": "8.0.6",
4
4
  "description": "Subto CLI — thin wrapper around the Subto.One API",
5
5
  "bin": {
6
6
  "subto": "bin/subto.js"