@runtypelabs/cli 2.6.0 → 2.6.1

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.
package/dist/index.js CHANGED
@@ -31687,8 +31687,7 @@ import { Command as Command17 } from "commander";
31687
31687
  import chalk23 from "chalk";
31688
31688
  import readline3 from "readline";
31689
31689
  import open5 from "open";
31690
- import { execFile as execFileCallback } from "child_process";
31691
- import { promisify } from "util";
31690
+ import { execFileSync } from "child_process";
31692
31691
 
31693
31692
  // src/lib/persona-init.ts
31694
31693
  init_credential_store();
@@ -31826,7 +31825,11 @@ async function runPersonaInit(options) {
31826
31825
  const client = new ApiClient(options.apiKey, options.apiUrl);
31827
31826
  const agent = await client.post("/agents", {
31828
31827
  name: options.agentName,
31829
- description: options.agentDescription
31828
+ description: options.agentDescription || "A Persona test agent",
31829
+ config: {
31830
+ model: "qwen3.5-35b-a3b",
31831
+ systemPrompt: "You are a helpful assistant."
31832
+ }
31830
31833
  });
31831
31834
  const tokenBody = {
31832
31835
  name: options.tokenName,
@@ -31867,7 +31870,6 @@ async function runPersonaInit(options) {
31867
31870
  }
31868
31871
 
31869
31872
  // src/commands/persona.ts
31870
- var execFile = promisify(execFileCallback);
31871
31873
  var FORMAT_CYCLE = [
31872
31874
  "script-installer",
31873
31875
  "react",
@@ -31897,19 +31899,19 @@ async function promptConfirm2(rl, message, defaultYes = false) {
31897
31899
  if (t === "") return defaultYes;
31898
31900
  return t === "y" || t === "yes";
31899
31901
  }
31900
- async function copyToClipboard2(text) {
31902
+ function copyToClipboard2(text) {
31901
31903
  if (process.platform === "darwin") {
31902
- await execFile("pbcopy", [], { input: text });
31904
+ execFileSync("pbcopy", [], { input: text });
31903
31905
  return;
31904
31906
  }
31905
31907
  if (process.platform === "win32") {
31906
- await execFile("clip", [], { shell: true, input: text });
31908
+ execFileSync("clip", [], { shell: true, input: text });
31907
31909
  return;
31908
31910
  }
31909
31911
  try {
31910
- await execFile("xclip", ["-selection", "clipboard"], { input: text });
31912
+ execFileSync("xclip", ["-selection", "clipboard"], { input: text });
31911
31913
  } catch {
31912
- await execFile("wl-copy", [], { input: text });
31914
+ execFileSync("wl-copy", [], { input: text });
31913
31915
  }
31914
31916
  }
31915
31917
  function isProbablyLocalDev(origins) {
@@ -31954,9 +31956,11 @@ Dashboard: ${initial.dashboardUrl}`));
31954
31956
  if (process.stdin.isTTY) {
31955
31957
  process.stdin.setRawMode(true);
31956
31958
  }
31959
+ process.stdin.resume();
31957
31960
  const cleanup = () => {
31958
31961
  process.stdin.setRawMode(false);
31959
31962
  process.stdin.removeAllListeners("keypress");
31963
+ process.stdin.pause();
31960
31964
  };
31961
31965
  await new Promise((resolve8) => {
31962
31966
  const onKeypress = async (_str, key) => {
@@ -31974,7 +31978,7 @@ Dashboard: ${initial.dashboardUrl}`));
31974
31978
  }
31975
31979
  if (name === "c") {
31976
31980
  try {
31977
- await copyToClipboard2(currentCode);
31981
+ copyToClipboard2(currentCode);
31978
31982
  console.log(chalk23.green("Snippet copied to clipboard."));
31979
31983
  } catch {
31980
31984
  console.log(chalk23.red("Could not copy (install xclip/wl-copy on Linux, or use p)."));
@@ -32069,7 +32073,7 @@ personaCommand.command("init").description("Create agent + client token and outp
32069
32073
  }
32070
32074
  } else {
32071
32075
  if (!agentName) {
32072
- agentName = await promptLine(rl, "Agent name");
32076
+ agentName = await promptLine(rl, "Agent name", "Persona Test");
32073
32077
  if (!agentName) {
32074
32078
  console.error(chalk23.red("Agent name is required"));
32075
32079
  process.exit(1);