@towles/tool 0.0.96 → 0.0.104

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/README.md CHANGED
@@ -17,8 +17,8 @@ claude plugin update tt@towles-tool
17
17
  ```bash
18
18
  git clone https://github.com/ChrisTowles/towles-tool.git
19
19
  cd towles-tool
20
- pnpm install
21
- pnpm start
20
+ bun install
21
+ bun start
22
22
  ```
23
23
 
24
24
  ## CLI Commands
package/bin/run.ts CHANGED
@@ -1,5 +1,6 @@
1
- #!/usr/bin/env tsx
1
+ #!/usr/bin/env bun
2
2
 
3
- import { execute } from "@oclif/core";
3
+ import { runMain } from "citty";
4
+ import { main } from "../src/cli.js";
4
5
 
5
- await execute({ dir: import.meta.url });
6
+ runMain(main);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@towles/tool",
3
- "version": "0.0.96",
3
+ "version": "0.0.104",
4
4
  "description": "One off quality of life scripts that I use on a daily basis.",
5
5
  "homepage": "https://github.com/ChrisTowles/towles-tool#readme",
6
6
  "bugs": {
@@ -29,27 +29,24 @@
29
29
  "access": "public"
30
30
  },
31
31
  "scripts": {
32
- "version:sync": "pnpm tsx scripts/sync-versions.ts",
33
- "prepublishOnly": "pnpm run version:sync",
34
- "dev": "tsx bin/run.ts",
32
+ "version:sync": "bun run scripts/sync-versions.ts",
33
+ "prepublishOnly": "bun run version:sync",
34
+ "dev": "bun run bin/run.ts",
35
35
  "format": "oxfmt --write .",
36
36
  "format:check": "oxfmt --check .",
37
37
  "lint": "oxlint",
38
38
  "lint:fix": "oxlint --fix",
39
39
  "test": "vitest run",
40
- "test:prompts": "promptfoo eval && promptfoo eval -c plugins/tt-core/promptfooconfig.yaml && promptfoo eval -c plugins/tt-auto-claude/promptfooconfig.yaml",
41
- "test:prompts:root": "promptfoo eval",
42
- "test:prompts:tt-core": "promptfoo eval -c plugins/tt-core/promptfooconfig.yaml",
43
- "test:prompts:tt-core:llm": "promptfoo eval -c plugins/tt-core/promptfooconfig.llm.yaml",
44
- "test:prompts:tt-auto-claude": "promptfoo eval -c plugins/tt-auto-claude/promptfooconfig.yaml",
45
40
  "test:watch": "CI=DisableCallingClaude vitest watch",
46
41
  "typecheck": "tsgo --noEmit --incremental",
42
+ "link": "bun link",
43
+ "link:show": "readlink -f $(which towles-tool)",
47
44
  "prepare": "simple-git-hooks"
48
45
  },
49
46
  "dependencies": {
50
47
  "@anthropic-ai/claude-code": "^2.1.4",
51
48
  "@anthropic-ai/sdk": "^0.56.0",
52
- "@oclif/core": "^4.3.2",
49
+ "citty": "^0.1.6",
53
50
  "consola": "^3.4.2",
54
51
  "d3-hierarchy": "^3.1.2",
55
52
  "fzf": "^0.5.2",
@@ -62,7 +59,6 @@
62
59
  "zod": "^4.0.5"
63
60
  },
64
61
  "devDependencies": {
65
- "@oclif/test": "^4.1.10",
66
62
  "@types/d3-hierarchy": "^3.1.7",
67
63
  "@types/luxon": "^3.6.2",
68
64
  "@types/node": "^22.16.3",
@@ -71,38 +67,15 @@
71
67
  "bumpp": "^10.4.0",
72
68
  "oxfmt": "^0.24.0",
73
69
  "oxlint": "^1.7.0",
74
- "promptfoo": "^0.121.2",
75
70
  "simple-git-hooks": "^2.13.0",
76
- "tsx": "^4.19.4",
77
71
  "typescript": "^5.8.3",
78
72
  "vitest": "^4.0.17"
79
73
  },
80
74
  "simple-git-hooks": {
81
- "pre-commit": "pnpm format && pnpm lint:fix && pnpm typecheck && claude plugin validate ."
75
+ "pre-commit": "bun run format && bun run lint:fix && bun run typecheck && claude plugin validate ."
82
76
  },
83
- "oclif": {
84
- "bin": "tt",
85
- "commands": "./src/commands",
86
- "dirname": "towles-tool",
87
- "topicSeparator": " "
88
- },
89
- "packageManager": "pnpm@10.27.0",
90
- "pnpm": {
91
- "patchedDependencies": {
92
- "prompts@2.4.2": "patches/prompts.patch"
93
- },
94
- "onlyBuiltDependencies": [
95
- "@anthropic-ai/claude-code",
96
- "@parcel/watcher",
97
- "@playwright/browser-chromium",
98
- "@swc/core",
99
- "better-sqlite3",
100
- "esbuild",
101
- "onnxruntime-node",
102
- "protobufjs",
103
- "sharp",
104
- "simple-git-hooks"
105
- ]
77
+ "patchedDependencies": {
78
+ "prompts@2.4.2": "patches/prompts.patch"
106
79
  },
107
80
  "trustedDependencies": [
108
81
  "@anthropic-ai/claude-code"
package/src/cli.ts ADDED
@@ -0,0 +1,19 @@
1
+ import { defineCommand } from "citty";
2
+
3
+ export const main = defineCommand({
4
+ meta: { name: "tt", description: "towles-tool — personal CLI utilities" },
5
+ subCommands: {
6
+ config: () => import("./commands/config.js").then((m) => m.default),
7
+ doctor: () => import("./commands/doctor.js").then((m) => m.default),
8
+ install: () => import("./commands/install.js").then((m) => m.default),
9
+ agentboard: () => import("./commands/agentboard.js").then((m) => m.default),
10
+ ag: () => import("./commands/agentboard.js").then((m) => m.default),
11
+ gh: () => import("./commands/gh/index.js").then((m) => m.default),
12
+ pr: () => import("./commands/gh/pr.js").then((m) => m.default),
13
+ journal: () => import("./commands/journal/index.js").then((m) => m.default),
14
+ today: () => import("./commands/journal/daily-notes.js").then((m) => m.default),
15
+ "auto-claude": () => import("./commands/auto-claude/index.js").then((m) => m.default),
16
+ ac: () => import("./commands/auto-claude/index.js").then((m) => m.default),
17
+ graph: () => import("./commands/graph/index.js").then((m) => m.default),
18
+ },
19
+ });