@supatest/cli 0.0.34 → 0.0.36

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.js +32 -13
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -304,8 +304,11 @@ var init_config = __esm({
304
304
  isDevelopment = process.env.NODE_ENV === "development";
305
305
  if (isDevelopment) {
306
306
  const envFile = process.env.ENV_NAME ? `.env.${process.env.ENV_NAME}` : ".env";
307
- const dotenv = await import("dotenv");
308
- dotenv.config({ path: resolve(process.cwd(), envFile) });
307
+ try {
308
+ const dotenv = await import("dotenv");
309
+ dotenv.config({ path: resolve(process.cwd(), envFile) });
310
+ } catch (error) {
311
+ }
309
312
  }
310
313
  getEnvVar = (key, defaultValue) => {
311
314
  if (process.env.ENV_NAME) {
@@ -607,14 +610,30 @@ function getToolDisplayName(toolName) {
607
610
  }
608
611
  function getToolCategory(toolName) {
609
612
  const name = toolName.toLowerCase();
610
- if (name.includes("read")) return "Read";
611
- if (name.includes("write")) return "Write";
612
- if (name.includes("edit")) return "Edit";
613
- if (name.includes("bash") || name.includes("command")) return "Bash";
614
- if (name.includes("glob")) return "Glob";
615
- if (name.includes("grep")) return "Grep";
616
- if (name.includes("task")) return "Task";
617
- if (name.includes("todo")) return "Todo";
613
+ if (name.includes("read")) {
614
+ return "Read";
615
+ }
616
+ if (name.includes("write")) {
617
+ return "Write";
618
+ }
619
+ if (name.includes("edit")) {
620
+ return "Edit";
621
+ }
622
+ if (name.includes("bash") || name.includes("command")) {
623
+ return "Command";
624
+ }
625
+ if (name.includes("glob")) {
626
+ return "Glob";
627
+ }
628
+ if (name.includes("grep")) {
629
+ return "Grep";
630
+ }
631
+ if (name.includes("task")) {
632
+ return "Task";
633
+ }
634
+ if (name.includes("todo")) {
635
+ return "Todo";
636
+ }
618
637
  return getToolDisplayName(toolName);
619
638
  }
620
639
  function getToolGroupCounts(tools) {
@@ -5365,7 +5384,7 @@ var CLI_VERSION;
5365
5384
  var init_version = __esm({
5366
5385
  "src/version.ts"() {
5367
5386
  "use strict";
5368
- CLI_VERSION = "0.0.34";
5387
+ CLI_VERSION = "0.0.36";
5369
5388
  }
5370
5389
  });
5371
5390
 
@@ -8256,7 +8275,7 @@ var init_MessageList = __esm({
8256
8275
  return { ...group.messages[0], _isMessage: true };
8257
8276
  })
8258
8277
  ], [completedGroups]);
8259
- return /* @__PURE__ */ React13.createElement(Box12, { flexDirection: "column" }, /* @__PURE__ */ React13.createElement(Static, { items: staticItems, key: staticRemountKey }, (item) => {
8278
+ return /* @__PURE__ */ React13.createElement(Box12, { flexDirection: "column" }, /* @__PURE__ */ React13.createElement(Static, { items: staticItems, key: `${staticRemountKey}-${toolGroupsExpanded ? "expanded" : "collapsed"}` }, (item) => {
8260
8279
  if (item.type === "header") {
8261
8280
  return /* @__PURE__ */ React13.createElement(Box12, { flexDirection: "column", key: "header" }, /* @__PURE__ */ React13.createElement(Header, { currentFolder, gitBranch, headless }));
8262
8281
  }
@@ -8278,7 +8297,7 @@ var init_MessageList = __esm({
8278
8297
  return null;
8279
8298
  }
8280
8299
  return /* @__PURE__ */ React13.createElement(Box12, { flexDirection: "column", key: group.type === "group" ? `current-group-${idx}` : group.messages[0].id, width: "100%" }, content);
8281
- }), /* @__PURE__ */ React13.createElement(QueuedMessageDisplay, { messageQueue: queuedTasks }), isAgentRunning && !hasPendingAssistant && /* @__PURE__ */ React13.createElement(LoadingMessage, { headless, key: "loading" }));
8300
+ }), /* @__PURE__ */ React13.createElement(QueuedMessageDisplay, { messageQueue: queuedTasks }), isAgentRunning && !hasPendingAssistant && /* @__PURE__ */ React13.createElement(LoadingMessage, { headless, key: "loading" }), /* @__PURE__ */ React13.createElement(Box12, { height: 1 }));
8282
8301
  };
8283
8302
  }
8284
8303
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supatest/cli",
3
- "version": "0.0.34",
3
+ "version": "0.0.36",
4
4
  "description": "Supatest CLI - AI-powered task automation for CI/CD",
5
5
  "type": "module",
6
6
  "bin": {