@kisev/agentomatic 11.0.2-dev.104.g54e3c6c4e0a4 → 11.0.2-dev.105.g184327d55f7c

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.
@@ -354,9 +354,13 @@ async function modelSelection(options, name, current) {
354
354
  return { action: "model-set", name, model, variant: variant ?? null };
355
355
  }
356
356
  catch (error) {
357
- if (error instanceof LifecycleError && error.code === "catalog_unavailable")
358
- fail("catalog_unavailable", "Model catalog unavailable. Use configure agent <name> --model provider/model [--variant value], or agent add-critic <name> --model provider/model.");
359
- throw error;
357
+ if (!(error instanceof LifecycleError && error.code === "catalog_unavailable"))
358
+ throw error;
359
+ process.stderr.write("Model catalog unavailable; enter an explicit model instead of a catalog pick.\n");
360
+ const model = validateModel(value(await promptText("Model (provider/model)")));
361
+ const answer = await promptText(current?.variant ? "Variant (empty keeps current)" : "Variant (optional)");
362
+ const variant = (answer ? validateVariant(answer) : current?.variant) ?? null;
363
+ return { action: "model-set", name, model, variant };
360
364
  }
361
365
  }
362
366
  async function profileDraft(options, names) {
@@ -804,8 +808,10 @@ async function run(args) {
804
808
  process.stdout.write(help(topic));
805
809
  return;
806
810
  }
807
- if (!commands[topic])
808
- fail("invalid_input", `Unknown command: ${topic}. Use install, configure, status, doctor, uninstall, agent, maintenance, or catalog.`);
811
+ if (!commands[topic]) {
812
+ const match = [...new Set(Object.keys(commands).map((key) => key.split(" ", 1)[0]))].find((root) => root.startsWith(topic) || topic.startsWith(root));
813
+ fail("invalid_input", `Unknown command: ${topic}.${match ? ` Did you mean '${match}'?` : ""} Use install, configure, status, doctor, uninstall, agent, maintenance, or catalog.`);
814
+ }
809
815
  const options = parse(topic, args);
810
816
  if (topic === "configure") {
811
817
  requireApply(options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kisev/agentomatic",
3
- "version": "11.0.2-dev.104.g54e3c6c4e0a4",
3
+ "version": "11.0.2-dev.105.g184327d55f7c",
4
4
  "description": "OpenCode integration and opt-in installer for portable Agent Skills.",
5
5
  "homepage": "https://github.com/kisev/skills#readme",
6
6
  "bugs": {
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@clack/prompts": "^1.8.1",
49
- "@kisev/safe-fs": "1.0.0-dev.104.g54e3c6c4e0a4",
49
+ "@kisev/safe-fs": "1.0.0-dev.105.g184327d55f7c",
50
50
  "commander": "15.0.0",
51
51
  "zod": "4.1.8"
52
52
  },