@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 +2 -2
- package/bin/run.ts +4 -3
- package/package.json +10 -37
- package/src/cli.ts +19 -0
- package/src/commands/agentboard.ts +386 -214
- package/src/commands/auto-claude/index.ts +74 -91
- package/src/commands/auto-claude/list.ts +33 -43
- package/src/commands/auto-claude/retry.test.ts +10 -6
- package/src/commands/auto-claude/retry.ts +26 -39
- package/src/commands/auto-claude/status.ts +10 -17
- package/src/commands/config.test.ts +4 -10
- package/src/commands/config.ts +14 -28
- package/src/commands/doctor.ts +156 -178
- package/src/commands/gh/branch-clean.ts +28 -43
- package/src/commands/gh/branch.ts +22 -37
- package/src/commands/gh/index.ts +10 -0
- package/src/commands/gh/pr.ts +82 -100
- package/src/commands/graph/index.ts +59 -70
- package/src/commands/install.ts +91 -115
- package/src/commands/journal/daily-notes.ts +16 -24
- package/src/commands/journal/index.ts +10 -0
- package/src/commands/journal/meeting.ts +16 -34
- package/src/commands/journal/note.ts +16 -34
- package/src/commands/shared.ts +21 -0
- package/src/lib/auto-claude/templates.test.ts +16 -11
- package/src/lib/graph/parser.test.ts +11 -10
- package/src/utils/git/gh-cli-wrapper.test.ts +6 -5
- package/src/commands/base.ts +0 -32
package/README.md
CHANGED
package/bin/run.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@towles/tool",
|
|
3
|
-
"version": "0.0.
|
|
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": "
|
|
33
|
-
"prepublishOnly": "
|
|
34
|
-
"dev": "
|
|
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
|
-
"
|
|
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": "
|
|
75
|
+
"pre-commit": "bun run format && bun run lint:fix && bun run typecheck && claude plugin validate ."
|
|
82
76
|
},
|
|
83
|
-
"
|
|
84
|
-
"
|
|
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
|
+
});
|