<commit_before>import { types as apps, loadApp } from '../apps';

import CliCommand from './cli-command';
import { buildLogger } from 'log-factory';

const logger = buildLogger();

class ManifestCommand extends CliCommand {
  constructor() {
    super('manifest', 'get a hash of the pie names and versions');
  }

  public async run(args) {
    const opts = apps.ManifestOpts.build(args);
    logger.info('[run] opts: ', opts);
    const a: apps.App = await loadApp(args);
    logger.silly('[run] app: ', a);

    if (apps.isManifestable(a)) {
      const manifest = await a.manifest(opts);
      return JSON.stringify(manifest);
    } else {
      throw new Error('this app isnt buildable');
    }
  }
}

export default new ManifestCommand();
<commit_msg>feat(manifest): disable manifest command for now<commit_after>import CliCommand from './cli-command';

class ManifestCommand extends CliCommand {
  constructor() {
    super('manifest', 'get a hash of the pie names and versions');
  }

  public async run(args) {
    return Promise.reject(new Error('manifest has been disabled while its under review (6.2.0+)'));
  }
}

export default new ManifestCommand();

{'fraction_non_alphanumeric': 0.12886597938144329, 'fraction_numerical': 0.002577319587628866, 'mean_word_length': 3.8140495867768593, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2315360', 'n_tokens_mistral': 349, 'n_tokens_neox': 337, 'n_words': 111}