@better-vibe/branch-narrator 1.0.0 → 1.2.1
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 +464 -539
- package/dist/analyzers/index.d.ts +4 -0
- package/dist/analyzers/index.d.ts.map +1 -1
- package/dist/analyzers/lockfiles.d.ts.map +1 -1
- package/dist/analyzers/python-config.d.ts +26 -0
- package/dist/analyzers/python-config.d.ts.map +1 -0
- package/dist/analyzers/python-dependencies.d.ts +21 -0
- package/dist/analyzers/python-dependencies.d.ts.map +1 -0
- package/dist/analyzers/python-migrations.d.ts +26 -0
- package/dist/analyzers/python-migrations.d.ts.map +1 -0
- package/dist/analyzers/python-routes.d.ts +15 -0
- package/dist/analyzers/python-routes.d.ts.map +1 -0
- package/dist/cli.js +355 -13718
- package/dist/core/ids.d.ts.map +1 -1
- package/dist/core/types.d.ts +32 -2
- package/dist/core/types.d.ts.map +1 -1
- package/dist/index.js +286 -6631
- package/dist/profiles/index.d.ts +14 -1
- package/dist/profiles/index.d.ts.map +1 -1
- package/dist/profiles/python.d.ts +15 -0
- package/dist/profiles/python.d.ts.map +1 -0
- package/dist/render/markdown.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/cli.js.map +0 -101
- package/dist/index.js.map +0 -60
package/dist/profiles/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { nextProfile } from "./next.js";
|
|
|
10
10
|
import { vueProfile } from "./vue.js";
|
|
11
11
|
import { astroProfile } from "./astro.js";
|
|
12
12
|
import { libraryProfile } from "./library.js";
|
|
13
|
+
import { pythonProfile } from "./python.js";
|
|
13
14
|
/**
|
|
14
15
|
* Result of profile detection with reasons.
|
|
15
16
|
*/
|
|
@@ -74,6 +75,18 @@ export declare function hasAstroConfig(cwd?: string): boolean;
|
|
|
74
75
|
* Check if project is a library/package (has exports or publishConfig).
|
|
75
76
|
*/
|
|
76
77
|
export declare function isLibraryProject(packageJson: Record<string, unknown> | undefined): boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Check if a project is a Python project.
|
|
80
|
+
*/
|
|
81
|
+
export declare function isPythonProject(cwd?: string): boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Check if a project has Python web framework markers.
|
|
84
|
+
*/
|
|
85
|
+
export declare function hasPythonWebFramework(cwd?: string): boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Detect Python framework from changeset files.
|
|
88
|
+
*/
|
|
89
|
+
export declare function detectPythonFramework(changeSet: ChangeSet): string | null;
|
|
77
90
|
/**
|
|
78
91
|
* Detect the appropriate profile for a project with reasons.
|
|
79
92
|
*/
|
|
@@ -91,5 +104,5 @@ export declare function getProfile(name: ProfileName): Profile;
|
|
|
91
104
|
* Resolve profile name (handle 'auto').
|
|
92
105
|
*/
|
|
93
106
|
export declare function resolveProfileName(name: ProfileName, changeSet: ChangeSet, cwd?: string): ProfileName;
|
|
94
|
-
export { defaultProfile, sveltekitProfile, reactProfile, stencilProfile, nextProfile, vueProfile, astroProfile, libraryProfile };
|
|
107
|
+
export { defaultProfile, sveltekitProfile, reactProfile, stencilProfile, nextProfile, vueProfile, astroProfile, libraryProfile, pythonProfile };
|
|
95
108
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/profiles/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,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AAG,GAAE,MAAsB,GAAG,OAAO,CAa1E;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,GAAG,IAAI,CAuBzE;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,SAAS,EACpB,GAAG,GAAE,MAAsB,GAC1B,sBAAsB,CAiLxB;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,SAAS,EAAE,SAAS,EACpB,GAAG,GAAE,MAAsB,GAC1B,WAAW,CAEb;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAuBrD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,WAAW,EACjB,SAAS,EAAE,SAAS,EACpB,GAAG,GAAE,MAAsB,GAC1B,WAAW,CAKb;AAED,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Python profile - analyzers for Python projects.
|
|
3
|
+
*
|
|
4
|
+
* Supports:
|
|
5
|
+
* - FastAPI, Django, Flask web frameworks
|
|
6
|
+
* - Alembic, Django migrations
|
|
7
|
+
* - pyproject.toml, setup.py, requirements.txt
|
|
8
|
+
* - pytest, mypy, ruff configuration
|
|
9
|
+
*/
|
|
10
|
+
import type { Profile } from "../core/types.js";
|
|
11
|
+
/**
|
|
12
|
+
* Python profile with Python-specific analyzers.
|
|
13
|
+
*/
|
|
14
|
+
export declare const pythonProfile: Profile;
|
|
15
|
+
//# sourceMappingURL=python.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"python.d.ts","sourceRoot":"","sources":["../../src/profiles/python.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAoBhD;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,OAyB3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../src/render/markdown.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../src/render/markdown.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAoBV,aAAa,EAcd,MAAM,kBAAkB,CAAC;AA4hC1B;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,CAwJ7D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-vibe/branch-narrator",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "A local-first CLI that reads git diff and generates structured PR descriptions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"dist"
|
|
13
13
|
],
|
|
14
14
|
"scripts": {
|
|
15
|
-
"build": "rm -rf dist && bun build ./src/cli.ts ./src/index.ts --outdir ./dist --target node --packages external --
|
|
15
|
+
"build": "rm -rf dist && bun build ./src/cli.ts ./src/index.ts --outdir ./dist --target node --packages external --minify && tsc --emitDeclarationOnly --declaration --outDir dist",
|
|
16
16
|
"dev": "bun build ./src/cli.ts ./src/index.ts --outdir ./dist --target node --packages external --sourcemap --watch",
|
|
17
17
|
"test": "bun test tests/*.test.ts --timeout 10000",
|
|
18
18
|
"test:e2e": "bun test tests/e2e/*.test.ts --timeout 60000",
|