@eldrforge/kodrdriv 0.0.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/.gitcarve/config.yaml +11 -0
- package/.gitcarve/context/people/context.md +5 -0
- package/.gitcarve/context/projects/context.md +3 -0
- package/.gitcarve/instructions/INACTIVE-release-pre.md +1 -0
- package/LICENSE +190 -0
- package/README.md +337 -0
- package/dist/arguments.js +252 -0
- package/dist/arguments.js.map +1 -0
- package/dist/commands/commit.js +54 -0
- package/dist/commands/commit.js.map +1 -0
- package/dist/commands/release.js +27 -0
- package/dist/commands/release.js.map +1 -0
- package/dist/constants.js +95 -0
- package/dist/constants.js.map +1 -0
- package/dist/content/diff.js +53 -0
- package/dist/content/diff.js.map +1 -0
- package/dist/content/log.js +34 -0
- package/dist/content/log.js.map +1 -0
- package/dist/error/ExitError.js +9 -0
- package/dist/error/ExitError.js.map +1 -0
- package/dist/logging.js +46 -0
- package/dist/logging.js.map +1 -0
- package/dist/main.js +53 -0
- package/dist/main.js.map +1 -0
- package/dist/prompt/instructions/commit.md +48 -0
- package/dist/prompt/instructions/release.md +31 -0
- package/dist/prompt/personas/you.md +11 -0
- package/dist/prompt/prompts.js +55 -0
- package/dist/prompt/prompts.js.map +1 -0
- package/dist/types.js +29 -0
- package/dist/types.js.map +1 -0
- package/dist/util/child.js +11 -0
- package/dist/util/child.js.map +1 -0
- package/dist/util/openai.js +55 -0
- package/dist/util/openai.js.map +1 -0
- package/dist/util/storage.js +126 -0
- package/dist/util/storage.js.map +1 -0
- package/eslint.config.mjs +82 -0
- package/nodemon.json +14 -0
- package/package.json +74 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/vite.config.ts +90 -0
- package/vitest.config.ts +21 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { defineConfig, globalIgnores } from "eslint/config";
|
|
2
|
+
import typescriptEslint from "@typescript-eslint/eslint-plugin";
|
|
3
|
+
import importPlugin from "eslint-plugin-import";
|
|
4
|
+
import globals from "globals";
|
|
5
|
+
import tsParser from "@typescript-eslint/parser";
|
|
6
|
+
import path from "node:path";
|
|
7
|
+
import { fileURLToPath } from "node:url";
|
|
8
|
+
import js from "@eslint/js";
|
|
9
|
+
import { FlatCompat } from "@eslint/eslintrc";
|
|
10
|
+
|
|
11
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
12
|
+
const __dirname = path.dirname(__filename);
|
|
13
|
+
const compat = new FlatCompat({
|
|
14
|
+
baseDirectory: __dirname,
|
|
15
|
+
recommendedConfig: js.configs.recommended,
|
|
16
|
+
allConfig: js.configs.all
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
export default defineConfig([
|
|
20
|
+
globalIgnores([
|
|
21
|
+
"dist/**",
|
|
22
|
+
"node_modules/**",
|
|
23
|
+
"**/*.test.ts",
|
|
24
|
+
]),
|
|
25
|
+
{
|
|
26
|
+
extends: compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended"),
|
|
27
|
+
|
|
28
|
+
plugins: {
|
|
29
|
+
"@typescript-eslint": typescriptEslint,
|
|
30
|
+
"import": importPlugin,
|
|
31
|
+
},
|
|
32
|
+
|
|
33
|
+
languageOptions: {
|
|
34
|
+
globals: {
|
|
35
|
+
...globals.node,
|
|
36
|
+
},
|
|
37
|
+
|
|
38
|
+
parser: tsParser,
|
|
39
|
+
ecmaVersion: "latest",
|
|
40
|
+
sourceType: "module",
|
|
41
|
+
},
|
|
42
|
+
|
|
43
|
+
rules: {
|
|
44
|
+
"@typescript-eslint/no-explicit-any": "off",
|
|
45
|
+
"@typescript-eslint/explicit-function-return-type": "off",
|
|
46
|
+
|
|
47
|
+
"@typescript-eslint/no-unused-vars": ["warn", {
|
|
48
|
+
argsIgnorePattern: "^_",
|
|
49
|
+
}],
|
|
50
|
+
|
|
51
|
+
indent: ["error", 4, {
|
|
52
|
+
SwitchCase: 1,
|
|
53
|
+
}],
|
|
54
|
+
|
|
55
|
+
"import/extensions": ["error", "never", {
|
|
56
|
+
ignorePackages: true,
|
|
57
|
+
pattern: {
|
|
58
|
+
"js": "never",
|
|
59
|
+
"ts": "never",
|
|
60
|
+
"d": "always"
|
|
61
|
+
}
|
|
62
|
+
}],
|
|
63
|
+
|
|
64
|
+
"import/no-extraneous-dependencies": ["error", {
|
|
65
|
+
devDependencies: true,
|
|
66
|
+
optionalDependencies: false,
|
|
67
|
+
peerDependencies: false,
|
|
68
|
+
}],
|
|
69
|
+
|
|
70
|
+
"no-console": ["error"],
|
|
71
|
+
|
|
72
|
+
"no-restricted-imports": ["error", {
|
|
73
|
+
paths: ["dayjs", "fs", "moment-timezone"],
|
|
74
|
+
patterns: [
|
|
75
|
+
{
|
|
76
|
+
group: ["src/**"],
|
|
77
|
+
message: "Use absolute imports instead of relative imports"
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
}]
|
|
81
|
+
},
|
|
82
|
+
}]);
|
package/nodemon.json
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@eldrforge/kodrdriv",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Create Intelligent Release Notes or Change Logs from Git",
|
|
5
|
+
"main": "dist/main.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"bin": {
|
|
8
|
+
"kodrdriv": "./dist/main.js"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/calenvarek/kodrdriv.git"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"git",
|
|
16
|
+
"genai",
|
|
17
|
+
"release",
|
|
18
|
+
"changelog",
|
|
19
|
+
"analysis"
|
|
20
|
+
],
|
|
21
|
+
"author": "Calen Varek <calenvarek@gmail.com>",
|
|
22
|
+
"license": "Apache-2.0",
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@theunwalked/cardigantime": "^0.0.1",
|
|
25
|
+
"@riotprompt/riotprompt": "^0.0.1",
|
|
26
|
+
"commander": "^14.0.0",
|
|
27
|
+
"dayjs": "^1.11.13",
|
|
28
|
+
"dotenv": "^16.5.0",
|
|
29
|
+
"glob": "^11.0.2",
|
|
30
|
+
"js-yaml": "^4.1.0",
|
|
31
|
+
"luxon": "^3.6.1",
|
|
32
|
+
"moment-timezone": "^0.5.48",
|
|
33
|
+
"openai": "^4.98.0",
|
|
34
|
+
"shell-escape": "^0.2.0",
|
|
35
|
+
"winston": "^3.17.0",
|
|
36
|
+
"zod": "^3.24.4"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@eslint/eslintrc": "^3.3.1",
|
|
40
|
+
"@eslint/js": "^9.26.0",
|
|
41
|
+
"@rollup/plugin-replace": "^6.0.2",
|
|
42
|
+
"@swc/core": "^1.11.24",
|
|
43
|
+
"@types/js-yaml": "^4.0.9",
|
|
44
|
+
"@types/luxon": "^3.6.2",
|
|
45
|
+
"@types/node": "^22.15.18",
|
|
46
|
+
"@types/shell-escape": "^0.2.3",
|
|
47
|
+
"@types/winston": "^2.4.4",
|
|
48
|
+
"@typescript-eslint/eslint-plugin": "^8.32.1",
|
|
49
|
+
"@typescript-eslint/parser": "^8.32.1",
|
|
50
|
+
"@vitest/coverage-v8": "^3.1.4",
|
|
51
|
+
"copyfiles": "^2.4.1",
|
|
52
|
+
"esbuild": "0.25.3",
|
|
53
|
+
"eslint": "^9.26.0",
|
|
54
|
+
"eslint-plugin-import": "^2.31.0",
|
|
55
|
+
"globals": "^16.1.0",
|
|
56
|
+
"mockdate": "^3.0.5",
|
|
57
|
+
"rollup-plugin-preserve-shebang": "^1.0.1",
|
|
58
|
+
"rollup-plugin-visualizer": "^5.14.0",
|
|
59
|
+
"typescript": "^5.8.3",
|
|
60
|
+
"vite": "^6.3.5",
|
|
61
|
+
"vite-plugin-node": "^5.0.1",
|
|
62
|
+
"vitest": "^3.0.0"
|
|
63
|
+
},
|
|
64
|
+
"scripts": {
|
|
65
|
+
"build": "tsc --noEmit && vite build && copyfiles -u 1 \"src/**/*.md\" dist",
|
|
66
|
+
"start": "dist/main.js",
|
|
67
|
+
"dev": "vite",
|
|
68
|
+
"watch": "vite build --watch",
|
|
69
|
+
"test": "vitest run --coverage",
|
|
70
|
+
"lint": "eslint . --ext .ts",
|
|
71
|
+
"lint:fix": "eslint . --ext .ts --fix",
|
|
72
|
+
"clean": "rm -rf dist"
|
|
73
|
+
}
|
|
74
|
+
}
|