@dealdeploy/skl 0.1.2 → 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/index.ts +17 -0
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -1,4 +1,15 @@
1
1
  #!/usr/bin/env bun
2
+
3
+ process.on("uncaughtException", (err) => {
4
+ console.error(`skl: ${err.message}`);
5
+ process.exit(1);
6
+ });
7
+
8
+ process.on("unhandledRejection", (err) => {
9
+ console.error(`skl: ${err instanceof Error ? err.message : err}`);
10
+ process.exit(1);
11
+ });
12
+
2
13
  // ── Subcommand routing ───────────────────────────────────────────────
3
14
  const [subcommand] = process.argv.slice(2);
4
15
  if (subcommand === "add") {
@@ -32,6 +43,12 @@ import { homedir } from "os";
32
43
  const LIBRARY = join(homedir(), "dotfiles/skills");
33
44
  const GLOBAL_DIR = join(homedir(), ".agents/skills");
34
45
 
46
+ if (!existsSync(LIBRARY)) {
47
+ console.error(`skl: library not found at ${LIBRARY}`);
48
+ console.error("Create it with: mkdir -p ~/dotfiles/skills");
49
+ process.exit(1);
50
+ }
51
+
35
52
  function ellipsize(text: string, max: number): string {
36
53
  if (max <= 0) return "";
37
54
  if (text.length <= max) return text;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dealdeploy/skl",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "TUI skill manager for Claude Code agents",
5
5
  "module": "index.ts",
6
6
  "bin": {