alys-akusa 0.1.3 → 0.1.4

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/dist/index.cjs +14 -10
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -4908,6 +4908,8 @@ var CONFIG_DIR = import_node_path.default.join(import_node_os.default.homedir(),
4908
4908
  var CONFIG_PATH = import_node_path.default.join(CONFIG_DIR, "config.json");
4909
4909
  var ALYS_APP_URL = process.env.ALYS_APP_URL || process.env.NEXT_PUBLIC_SITE_URL || "https://alys.akusa.dev";
4910
4910
  var MAX_DATASETS_PER_RUN = 5;
4911
+ var MAX_SOURCES_PER_RUN = 8;
4912
+ var MAX_ROWS_PER_DATASET = 125;
4911
4913
  var FIGLET_LOGO = [
4912
4914
  " o ooooo ooooo oooo oooooooo8 ",
4913
4915
  " 888 888 888 88 888 ",
@@ -4942,8 +4944,8 @@ Flags:
4942
4944
  --type instruction|rag|qa
4943
4945
  --datasets 1
4944
4946
  --depth shallow|medium|deep
4945
- --sources 12
4946
- --rows 1000
4947
+ --sources 8
4948
+ --rows 125
4947
4949
  --workspace ~/Desktop/alys-output
4948
4950
  --verify
4949
4951
  --no-verify
@@ -5204,7 +5206,7 @@ function printRunPlan(args) {
5204
5206
  console.log(`${paint("\u2502", "gray")} Topic ${paint(args.topic.slice(0, 58), "white")}`);
5205
5207
  console.log(`${paint("\u2502", "gray")} Account ${paint(account.slice(0, 58), "white")}`);
5206
5208
  console.log(`${paint("\u2502", "gray")} Type ${paint(args.datasetType, "cyan")} Depth ${paint(args.depth, "cyan")} Mode ${paint("Alys runtime", "yellow")}`);
5207
- console.log(`${paint("\u2502", "gray")} Datasets ${formatInt(args.datasetCount)} / ${MAX_DATASETS_PER_RUN} max Rows/dataset ${formatInt(effectiveRows)}`);
5209
+ console.log(`${paint("\u2502", "gray")} Datasets ${formatInt(args.datasetCount)} / ${MAX_DATASETS_PER_RUN} max Rows/dataset ${formatInt(effectiveRows)} max`);
5208
5210
  console.log(`${paint("\u2502", "gray")} Total rows ${paint(formatInt(totalRows), "green")} Formats ${args.exportFormats.join(", ")}`);
5209
5211
  console.log(`${paint("\u2502", "gray")} Credits ${args.profile.usage.isUnlimited ? "Unlimited" : `${args.profile.usage.remaining ?? 0} remaining before run`}`);
5210
5212
  console.log(`${paint("\u2502", "gray")} Output ${resolveHome(args.workspaceRoot)}`);
@@ -5445,19 +5447,21 @@ async function handleGenerate(args, command) {
5445
5447
  { title: "Deep", value: "deep" }
5446
5448
  ]
5447
5449
  })).depth;
5448
- const sourceLimit = values.sources ? Math.max(1, Number(values.sources)) : (await (0, import_prompts.default)({
5450
+ const sourceLimit = values.sources ? Math.min(MAX_SOURCES_PER_RUN, Math.max(1, Number(values.sources))) : (await (0, import_prompts.default)({
5449
5451
  type: "number",
5450
5452
  name: "sourceLimit",
5451
5453
  message: "How many sources?",
5452
- initial: 12,
5453
- min: 1
5454
+ initial: MAX_SOURCES_PER_RUN,
5455
+ min: 1,
5456
+ max: MAX_SOURCES_PER_RUN
5454
5457
  })).sourceLimit;
5455
- const targetRows = values.rows ? Math.max(1, Number(values.rows)) : (await (0, import_prompts.default)({
5458
+ const targetRows = values.rows ? Math.min(MAX_ROWS_PER_DATASET, Math.max(1, Number(values.rows))) : (await (0, import_prompts.default)({
5456
5459
  type: "number",
5457
5460
  name: "targetRows",
5458
5461
  message: "Rows per dataset?",
5459
- initial: 1e3,
5460
- min: 1
5462
+ initial: MAX_ROWS_PER_DATASET,
5463
+ min: 1,
5464
+ max: MAX_ROWS_PER_DATASET
5461
5465
  })).targetRows;
5462
5466
  const workspaceRoot = (values.workspace ? String(values.workspace) : "").trim() || (await (0, import_prompts.default)({
5463
5467
  type: "text",
@@ -5496,7 +5500,7 @@ async function handleGenerate(args, command) {
5496
5500
  }
5497
5501
  console.log(paint("Runtime", "white"));
5498
5502
  printStage("AUTH", "OK", "Usage linked", appUrl());
5499
- printStage("PLAN", "OK", "Generations reserved only after successful completion", `${datasetCount} requested`);
5503
+ printStage("PLAN", "OK", "Generations charged only after successful completion", `${datasetCount} requested`);
5500
5504
  printStage("SRC", "RUN", "Research pipeline starting", `${sourceLimit} source target`);
5501
5505
  const response = await withSpinner(
5502
5506
  "Alys research runtime executing",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alys-akusa",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "private": false,
5
5
  "description": "Alys local CLI runtime for autonomous dataset generation.",
6
6
  "license": "UNLICENSED",