@basestream/cli 0.2.9 → 0.2.10

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/cli.mjs +6 -6
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -250,7 +250,7 @@ async function login() {
250
250
  // src/cli/commands/init.ts
251
251
  var CLAUDE_DIR = path2.join(os2.homedir(), ".claude");
252
252
  var CLAUDE_SETTINGS_PATH = path2.join(CLAUDE_DIR, "settings.json");
253
- var CLAUDE_SKILLS_PATH = path2.join(CLAUDE_DIR, "skills", "bs-summarize.md");
253
+ var CLAUDE_SKILLS_PATH = path2.join(CLAUDE_DIR, "skills", "bs-summarize", "SKILL.md");
254
254
  var CLAUDE_MD_PATH = path2.join(CLAUDE_DIR, "CLAUDE.md");
255
255
  var HOOK_COMMAND = "npx --yes @basestream/cli@latest _hook-stop";
256
256
  var HOOK_MARKER = "_hook-stop";
@@ -684,16 +684,16 @@ function categorizeWork(acc) {
684
684
  const configFiles = files.filter(
685
685
  (f) => f.includes("Dockerfile") || f.includes(".yml") || f.includes(".yaml") || f.includes("ci")
686
686
  );
687
- if (testFiles.length > fileCount / 2) category = WorkCategory.TESTING;
688
- else if (docFiles.length > fileCount / 2) category = WorkCategory.DOCS;
689
- else if (configFiles.length > fileCount / 2) category = WorkCategory.DEVOPS;
687
+ if (testFiles.length >= fileCount / 2) category = WorkCategory.TESTING;
688
+ else if (docFiles.length >= fileCount / 2) category = WorkCategory.DOCS;
689
+ else if (configFiles.length >= fileCount / 2) category = WorkCategory.DEVOPS;
690
690
  else category = WorkCategory.FEATURE;
691
691
  } else {
692
692
  const tools = acc.toolCalls.map((t) => t.tool);
693
693
  const readTools = tools.filter(
694
694
  (t) => ["Read", "Grep", "Glob", "WebFetch", "WebSearch"].includes(t)
695
695
  );
696
- if (readTools.length > tools.length / 2) category = WorkCategory.REFACTOR;
696
+ if (readTools.length >= tools.length / 2) category = WorkCategory.REFACTOR;
697
697
  }
698
698
  let complexity = Complexity.LOW;
699
699
  if (fileCount >= 7 || acc.toolCalls.length >= 30) complexity = Complexity.HIGH;
@@ -982,7 +982,7 @@ async function main() {
982
982
  process.exit(0);
983
983
  }
984
984
  if (command === "--version" || command === "-v") {
985
- console.log(true ? "0.2.9" : "dev");
985
+ console.log(true ? "0.2.10" : "dev");
986
986
  process.exit(0);
987
987
  }
988
988
  switch (command || "init") {
package/package.json CHANGED
@@ -18,5 +18,5 @@
18
18
  "unlink:cli": "npm unlink -g @basestream/cli"
19
19
  },
20
20
  "type": "module",
21
- "version": "0.2.9"
21
+ "version": "0.2.10"
22
22
  }