@cam5/baby-bird 0.1.0
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 +205 -0
- package/dist/chunk-RWSCST2I.js +1753 -0
- package/dist/chunk-RWSCST2I.js.map +1 -0
- package/dist/cli.js +326 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.d.ts +648 -0
- package/dist/index.js +107 -0
- package/dist/index.js.map +1 -0
- package/package.json +62 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BUILTIN_PRESETS,
|
|
3
|
+
BadLlmOutputError,
|
|
4
|
+
BbError,
|
|
5
|
+
CliRenderer,
|
|
6
|
+
CommandProvider,
|
|
7
|
+
ConfigError,
|
|
8
|
+
ConfigSchema,
|
|
9
|
+
DEFAULT_CONFIG,
|
|
10
|
+
GhCodeHost,
|
|
11
|
+
GitError,
|
|
12
|
+
LlmFailedError,
|
|
13
|
+
LlmTourOutputSchema,
|
|
14
|
+
NoChangesError,
|
|
15
|
+
NoCodeHost,
|
|
16
|
+
NotARepoError,
|
|
17
|
+
OTHER_CHANGES_TITLE,
|
|
18
|
+
PROMPT_VERSION,
|
|
19
|
+
PartialConfigSchema,
|
|
20
|
+
TourCache,
|
|
21
|
+
TourSchema,
|
|
22
|
+
UsageError,
|
|
23
|
+
allPresets,
|
|
24
|
+
buildPrompt,
|
|
25
|
+
collectCommits,
|
|
26
|
+
collectDiff,
|
|
27
|
+
createCodeHost,
|
|
28
|
+
createProvider,
|
|
29
|
+
currentBranch,
|
|
30
|
+
deepMerge,
|
|
31
|
+
defaultCacheDir,
|
|
32
|
+
describeSource,
|
|
33
|
+
detectDefaultBranch,
|
|
34
|
+
diffStats,
|
|
35
|
+
extractJson,
|
|
36
|
+
formatIssues,
|
|
37
|
+
generateTour,
|
|
38
|
+
gitRoot,
|
|
39
|
+
loadConfig,
|
|
40
|
+
materializeTour,
|
|
41
|
+
parseDiff,
|
|
42
|
+
prepareTour,
|
|
43
|
+
projectConfigPath,
|
|
44
|
+
relativeTime,
|
|
45
|
+
resolveLlm,
|
|
46
|
+
resolveRange,
|
|
47
|
+
revParse,
|
|
48
|
+
shellSplit,
|
|
49
|
+
sliceHunk,
|
|
50
|
+
userConfigPath,
|
|
51
|
+
wrap,
|
|
52
|
+
writeMaybePaged
|
|
53
|
+
} from "./chunk-RWSCST2I.js";
|
|
54
|
+
export {
|
|
55
|
+
BUILTIN_PRESETS,
|
|
56
|
+
BadLlmOutputError,
|
|
57
|
+
BbError,
|
|
58
|
+
CliRenderer,
|
|
59
|
+
CommandProvider,
|
|
60
|
+
ConfigError,
|
|
61
|
+
ConfigSchema,
|
|
62
|
+
DEFAULT_CONFIG,
|
|
63
|
+
GhCodeHost,
|
|
64
|
+
GitError,
|
|
65
|
+
LlmFailedError,
|
|
66
|
+
LlmTourOutputSchema,
|
|
67
|
+
NoChangesError,
|
|
68
|
+
NoCodeHost,
|
|
69
|
+
NotARepoError,
|
|
70
|
+
OTHER_CHANGES_TITLE,
|
|
71
|
+
PROMPT_VERSION,
|
|
72
|
+
PartialConfigSchema,
|
|
73
|
+
TourCache,
|
|
74
|
+
TourSchema,
|
|
75
|
+
UsageError,
|
|
76
|
+
allPresets,
|
|
77
|
+
buildPrompt,
|
|
78
|
+
collectCommits,
|
|
79
|
+
collectDiff,
|
|
80
|
+
createCodeHost,
|
|
81
|
+
createProvider,
|
|
82
|
+
currentBranch,
|
|
83
|
+
deepMerge,
|
|
84
|
+
defaultCacheDir,
|
|
85
|
+
describeSource,
|
|
86
|
+
detectDefaultBranch,
|
|
87
|
+
diffStats,
|
|
88
|
+
extractJson,
|
|
89
|
+
formatIssues,
|
|
90
|
+
generateTour,
|
|
91
|
+
gitRoot,
|
|
92
|
+
loadConfig,
|
|
93
|
+
materializeTour,
|
|
94
|
+
parseDiff,
|
|
95
|
+
prepareTour,
|
|
96
|
+
projectConfigPath,
|
|
97
|
+
relativeTime,
|
|
98
|
+
resolveLlm,
|
|
99
|
+
resolveRange,
|
|
100
|
+
revParse,
|
|
101
|
+
shellSplit,
|
|
102
|
+
sliceHunk,
|
|
103
|
+
userConfigPath,
|
|
104
|
+
wrap,
|
|
105
|
+
writeMaybePaged
|
|
106
|
+
};
|
|
107
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cam5/baby-bird",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Guided code tours for git changes, on the command line.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/cam5/baby-bird.git"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [
|
|
12
|
+
"git",
|
|
13
|
+
"code-review",
|
|
14
|
+
"diff",
|
|
15
|
+
"llm",
|
|
16
|
+
"cli",
|
|
17
|
+
"code-tour"
|
|
18
|
+
],
|
|
19
|
+
"bin": {
|
|
20
|
+
"bb": "dist/cli.js",
|
|
21
|
+
"baby-bird": "dist/cli.js"
|
|
22
|
+
},
|
|
23
|
+
"main": "./dist/index.js",
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"import": "./dist/index.js"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"dist",
|
|
33
|
+
"README.md"
|
|
34
|
+
],
|
|
35
|
+
"engines": {
|
|
36
|
+
"node": ">=22"
|
|
37
|
+
},
|
|
38
|
+
"packageManager": "pnpm@10.33.0",
|
|
39
|
+
"scripts": {
|
|
40
|
+
"dev": "tsx src/cli/main.ts",
|
|
41
|
+
"build": "tsup",
|
|
42
|
+
"test": "vitest run",
|
|
43
|
+
"test:watch": "vitest",
|
|
44
|
+
"typecheck": "tsc --noEmit",
|
|
45
|
+
"prepublishOnly": "pnpm typecheck && pnpm test && pnpm build"
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"commander": "^15.0.0",
|
|
49
|
+
"picocolors": "^1.1.1",
|
|
50
|
+
"zod": "^4.6.2"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@types/node": "^22.20.2",
|
|
54
|
+
"tsup": "^8.5.1",
|
|
55
|
+
"tsx": "^4.23.13",
|
|
56
|
+
"typescript": "^5.9.3",
|
|
57
|
+
"vitest": "^5.0.0"
|
|
58
|
+
},
|
|
59
|
+
"publishConfig": {
|
|
60
|
+
"access": "public"
|
|
61
|
+
}
|
|
62
|
+
}
|