@eldrforge/kodrdriv 0.0.15 → 0.0.18

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.
Files changed (82) hide show
  1. package/README.md +1 -9
  2. package/dist/arguments.js +38 -63
  3. package/dist/arguments.js.map +1 -1
  4. package/dist/audio/devices.js +284 -0
  5. package/dist/audio/devices.js.map +1 -0
  6. package/dist/audio/index.js +31 -0
  7. package/dist/audio/index.js.map +1 -0
  8. package/dist/audio/processor.js +766 -0
  9. package/dist/audio/processor.js.map +1 -0
  10. package/dist/audio/types.js +16 -0
  11. package/dist/audio/types.js.map +1 -0
  12. package/dist/audio/validation.js +35 -0
  13. package/dist/audio/validation.js.map +1 -0
  14. package/dist/commands/audio-commit.js +59 -634
  15. package/dist/commands/audio-commit.js.map +1 -1
  16. package/dist/commands/audio-review.js +68 -632
  17. package/dist/commands/audio-review.js.map +1 -1
  18. package/dist/commands/commit.js +23 -15
  19. package/dist/commands/commit.js.map +1 -1
  20. package/dist/commands/release.js +20 -12
  21. package/dist/commands/release.js.map +1 -1
  22. package/dist/commands/review.js +64 -13
  23. package/dist/commands/review.js.map +1 -1
  24. package/dist/commands/select-audio.js +265 -0
  25. package/dist/commands/select-audio.js.map +1 -0
  26. package/dist/constants.js +17 -9
  27. package/dist/constants.js.map +1 -1
  28. package/dist/content/issues.js +16 -0
  29. package/dist/content/issues.js.map +1 -1
  30. package/dist/main.js +9 -3
  31. package/dist/main.js.map +1 -1
  32. package/dist/prompt/commit.js +64 -0
  33. package/dist/prompt/commit.js.map +1 -0
  34. package/dist/prompt/personas/you.md +49 -5
  35. package/dist/prompt/release.js +52 -0
  36. package/dist/prompt/release.js.map +1 -0
  37. package/dist/prompt/review.js +64 -0
  38. package/dist/prompt/review.js.map +1 -0
  39. package/dist/types.js +5 -3
  40. package/dist/types.js.map +1 -1
  41. package/dist/util/openai.js +34 -3
  42. package/dist/util/openai.js.map +1 -1
  43. package/package.json +2 -2
  44. package/.kodrdriv/config.yaml +0 -20
  45. package/.kodrdriv/context/content.md +0 -7
  46. package/RELEASE_NOTES.md +0 -14
  47. package/dist/prompt/personas/committer.md +0 -29
  48. package/dist/prompt/personas/reviewer.md +0 -29
  49. package/dist/prompt/prompts.js +0 -160
  50. package/dist/prompt/prompts.js.map +0 -1
  51. package/docs/index.html +0 -17
  52. package/docs/package.json +0 -36
  53. package/docs/pnpm-lock.yaml +0 -3441
  54. package/docs/public/README.md +0 -132
  55. package/docs/public/advanced-usage.md +0 -188
  56. package/docs/public/code-icon.svg +0 -4
  57. package/docs/public/commands.md +0 -136
  58. package/docs/public/configuration.md +0 -274
  59. package/docs/public/examples.md +0 -352
  60. package/docs/public/kodrdriv-logo.svg +0 -62
  61. package/docs/src/App.css +0 -387
  62. package/docs/src/App.tsx +0 -60
  63. package/docs/src/components/DocumentPage.tsx +0 -56
  64. package/docs/src/components/ErrorMessage.tsx +0 -15
  65. package/docs/src/components/LoadingSpinner.tsx +0 -14
  66. package/docs/src/components/MarkdownRenderer.tsx +0 -56
  67. package/docs/src/components/Navigation.css +0 -73
  68. package/docs/src/components/Navigation.tsx +0 -36
  69. package/docs/src/index.css +0 -61
  70. package/docs/src/main.tsx +0 -10
  71. package/docs/src/test/setup.ts +0 -1
  72. package/docs/src/vite-env.d.ts +0 -10
  73. package/docs/tsconfig.node.json +0 -13
  74. package/docs/vite.config.ts +0 -15
  75. package/docs/vitest.config.ts +0 -15
  76. package/eslint.config.mjs +0 -83
  77. package/nodemon.json +0 -14
  78. package/output/kodrdriv/250702-0552-release-notes.md +0 -3
  79. package/pnpm-workspace.yaml +0 -5
  80. package/tsconfig.tsbuildinfo +0 -1
  81. package/vite.config.ts +0 -90
  82. package/vitest.config.ts +0 -24
package/vite.config.ts DELETED
@@ -1,90 +0,0 @@
1
- import { defineConfig } from 'vite';
2
- import { VitePluginNode } from 'vite-plugin-node';
3
- import replace from '@rollup/plugin-replace';
4
- // import { visualizer } from 'rollup-plugin-visualizer';
5
- import { execSync } from 'child_process';
6
- import shebang from 'rollup-plugin-preserve-shebang';
7
-
8
- let gitInfo = {
9
- branch: '',
10
- commit: '',
11
- tags: '',
12
- commitDate: '',
13
- };
14
-
15
- try {
16
- gitInfo = {
17
- branch: execSync('git rev-parse --abbrev-ref HEAD').toString().trim(),
18
- commit: execSync('git rev-parse --short HEAD').toString().trim(),
19
- tags: '',
20
- commitDate: execSync('git log -1 --format=%cd --date=iso').toString().trim(),
21
- };
22
-
23
- try {
24
- gitInfo.tags = execSync('git tag --points-at HEAD | paste -sd "," -').toString().trim();
25
- } catch {
26
- gitInfo.tags = '';
27
- }
28
- } catch {
29
- // eslint-disable-next-line no-console
30
- console.log('Directory does not have a Git repository, skipping git info');
31
- }
32
-
33
-
34
- export default defineConfig({
35
- server: {
36
- port: 3000
37
- },
38
- plugins: [
39
- ...VitePluginNode({
40
- adapter: 'express',
41
- appPath: './src/main.ts',
42
- exportName: 'viteNodeApp',
43
- tsCompiler: 'swc',
44
- swcOptions: {
45
- sourceMaps: true,
46
- },
47
- }),
48
- // visualizer({
49
- // template: 'network',
50
- // filename: 'network.html',
51
- // projectRoot: process.cwd(),
52
- // }),
53
- replace({
54
- '__VERSION__': process.env.npm_package_version,
55
- '__GIT_BRANCH__': gitInfo.branch,
56
- '__GIT_COMMIT__': gitInfo.commit,
57
- '__GIT_TAGS__': gitInfo.tags === '' ? '' : `T:${gitInfo.tags}`,
58
- '__GIT_COMMIT_DATE__': gitInfo.commitDate,
59
- '__SYSTEM_INFO__': `${process.platform} ${process.arch} ${process.version}`,
60
- preventAssignment: true,
61
- }),
62
- ],
63
- build: {
64
- target: 'esnext',
65
- outDir: 'dist',
66
- lib: {
67
- entry: './src/main.ts',
68
- formats: ['es'],
69
- },
70
- rollupOptions: {
71
- external: ['@theunwalked/dreadcabinet', '@theunwalked/cardigantime', '@riotprompt/riotprompt', '@riotprompt/riotprompt/formatter', '@riotprompt/riotprompt/chat'],
72
- input: 'src/main.ts',
73
- output: {
74
- format: 'esm',
75
- entryFileNames: '[name].js',
76
- preserveModules: true,
77
- exports: 'named',
78
- },
79
- plugins: [
80
- shebang({
81
- shebang: '#!/usr/bin/env node',
82
- }),
83
- ],
84
- },
85
- // Make sure Vite generates ESM-compatible code
86
- modulePreload: false,
87
- minify: false,
88
- sourcemap: true
89
- },
90
- });
package/vitest.config.ts DELETED
@@ -1,24 +0,0 @@
1
- import { defineConfig } from 'vitest/config';
2
-
3
- export default defineConfig({
4
- test: {
5
- globals: false,
6
- environment: 'node',
7
- include: ['tests/**/*.test.ts'],
8
- env: {
9
- TZ: 'America/New_York'
10
- },
11
- coverage: {
12
- provider: 'v8',
13
- reporter: ['text', 'lcov', 'html'],
14
- all: true,
15
- include: ['src/**/*.ts'],
16
- thresholds: {
17
- statements: 47,
18
- branches: 87,
19
- functions: 87,
20
- lines: 47,
21
- }
22
- },
23
- },
24
- });