subto 9.0.5 → 9.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.
@@ -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';
14
- const CLIENT_META = { name: 'subto-cli', version: '9.0.3' };
14
+ const CLIENT_META = { name: 'subto-cli', version: '9.0.5' };
15
15
 
16
16
  function configFilePath() { return CONFIG_PATH; }
17
17
 
@@ -167,7 +167,7 @@ function printAccountSummary(payload) {
167
167
 
168
168
  async function run(argv) {
169
169
  const program = new Command();
170
- program.name('subto').description('Subto CLI — wrapper around Subto.One API').version(CLIENT_META.version || '9.0.3');
170
+ program.name('subto').description('Subto CLI — wrapper around Subto.One API').version(CLIENT_META.version || '9.0.5');
171
171
 
172
172
  program.command('login').description('Store your API key in ~/.subto/config.json').action(async () => {
173
173
  try {
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: '9.0.3' };
14
+ const CLIENT_META = { name: 'subto-cli', version: '9.0.5' };
15
15
  const cp = require('child_process');
16
16
 
17
17
  // Normalize SUBTO API base so callers can set either
@@ -405,8 +405,10 @@ async function printFullReport(data) {
405
405
  // Malware reporting via VirusTotal has been disabled in API responses.
406
406
 
407
407
  // Video link
408
- if (scan.videoUrl || scan.videoPath || scan.hasVideo) {
409
- const vurl = scan.videoUrl || ((scan.videoPath) ? `${SUBTO_HOST_BASE}/video/${scan.scanId || scan.id}` : null);
408
+ const nestedVideoUrl = scan.comprehensive?.videoMp4Url || scan.comprehensive?.videoUrl || null;
409
+ const nestedVideoPath = scan.comprehensive?.videoPath || null;
410
+ if (scan.videoUrl || scan.videoPath || scan.hasVideo || nestedVideoUrl || nestedVideoPath || scan.comprehensive?.hasVideo) {
411
+ const vurl = scan.videoUrl || nestedVideoUrl || ((scan.videoPath || nestedVideoPath) ? `${SUBTO_HOST_BASE}/video/${scan.scanId || scan.id}` : null);
410
412
  if (vurl) {
411
413
  // attempt to HEAD the video URL to detect expiry / 404
412
414
  let note = '';
@@ -569,7 +571,7 @@ async function answerFromScan(scan, question){
569
571
  // Local heuristic fallback
570
572
  const lq = q.toLowerCase();
571
573
  if(lq.includes('video')||lq.includes('record')){
572
- const url = scan.videoUrl || (scan.videoPath? `${SUBTO_HOST_BASE}/video/${scan.scanId||scan.id}` : null);
574
+ const url = scan.videoUrl || scan.comprehensive?.videoMp4Url || scan.comprehensive?.videoUrl || ((scan.videoPath || scan.comprehensive?.videoPath) ? `${SUBTO_HOST_BASE}/video/${scan.scanId||scan.id}` : null);
573
575
  return url? `Session video: ${url}` : 'No session video available for this scan.';
574
576
  }
575
577
  if(lq.includes('issues')||lq.includes('problem')){
@@ -618,7 +620,7 @@ async function startChatREPL(scanData){
618
620
 
619
621
  async function run(argv) {
620
622
  const program = new Command();
621
- program.name('subto').description('Subto CLI — wrapper around Subto.One API').version(CLIENT_META.version || '9.0.3');
623
+ program.name('subto').description('Subto CLI — wrapper around Subto.One API').version(CLIENT_META.version || '9.0.5');
622
624
  program.addHelpText('after', `
623
625
 
624
626
  Common commands:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "subto",
3
- "version": "9.0.5",
3
+ "version": "9.0.6",
4
4
  "description": "Subto CLI — thin wrapper around the Subto.One API",
5
5
  "bin": {
6
6
  "subto": "bin/subto.js"