@eldrforge/commands-audio 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.
@@ -0,0 +1,3 @@
1
+ import { Config } from '@eldrforge/core';
2
+ export declare const execute: (runConfig: Config) => Promise<string>;
3
+ //# sourceMappingURL=audio-commit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"audio-commit.d.ts","sourceRoot":"","sources":["../../../src/commands/audio-commit.ts"],"names":[],"mappings":";AAIA,OAAO,EAA8B,MAAM,EAA0E,MAAM,iBAAiB,CAAC;AA8I7I,eAAO,MAAM,OAAO,GAAU,WAAW,MAAM,KAAG,OAAO,CAAC,MAAM,CAmB/D,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Config } from '@eldrforge/core';
2
+ export declare const execute: (runConfig: Config) => Promise<string>;
3
+ //# sourceMappingURL=audio-review.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"audio-review.d.ts","sourceRoot":"","sources":["../../../src/commands/audio-review.ts"],"names":[],"mappings":";AAEA,OAAO,EAA8B,MAAM,EAA0E,MAAM,iBAAiB,CAAC;AA6G7I,eAAO,MAAM,OAAO,GAAU,WAAW,MAAM,KAAG,OAAO,CAAC,MAAM,CAyM/D,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Config } from '@eldrforge/core';
2
+ export declare const execute: (runConfig: Config) => Promise<string>;
3
+ //# sourceMappingURL=select-audio.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select-audio.d.ts","sourceRoot":"","sources":["../../../src/commands/select-audio.ts"],"names":[],"mappings":";AAGA,OAAO,EAAmB,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAW1D,eAAO,MAAM,OAAO,GAAU,WAAW,MAAM,KAAG,OAAO,CAAC,MAAM,CA+B/D,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { execute as selectAudio } from './commands/select-audio';
2
+ export { execute as audioCommit } from './commands/audio-commit';
3
+ export { execute as audioReview } from './commands/audio-review';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,yBAAyB,CAAC"}
package/guide/index.md ADDED
@@ -0,0 +1,56 @@
1
+ # @eldrforge/commands-audio - Agentic Guide
2
+
3
+ ## Purpose
4
+
5
+ Audio transcription and voice commands for kodrdriv. Provides:
6
+ - Audio device selection and configuration
7
+ - Audio-based commit message generation
8
+ - Audio-enhanced code review
9
+
10
+ ## Quick Reference
11
+
12
+ For AI agents working with this package:
13
+ - select-audio: Configure audio input device
14
+ - audio-commit: Record/transcribe for commit messages
15
+ - audio-review: Record/transcribe for review context
16
+
17
+ ## Key Exports
18
+
19
+ ```typescript
20
+ // Audio commands
21
+ import { selectAudio, audioCommit, audioReview } from '@eldrforge/commands-audio';
22
+
23
+ // Execute commands
24
+ await selectAudio(config);
25
+ await audioCommit(config);
26
+ await audioReview(config);
27
+ ```
28
+
29
+ ## Dependencies
30
+
31
+ - @eldrforge/core - Core utilities
32
+ - @eldrforge/audio-tools - Audio processing
33
+ - @eldrforge/ai-service - Transcription
34
+ - @theunwalked/unplayable - Audio capture
35
+
36
+ ## Command Workflows
37
+
38
+ ### select-audio
39
+
40
+ 1. List available audio devices
41
+ 2. Prompt user to select device
42
+ 3. Save configuration
43
+
44
+ ### audio-commit
45
+
46
+ 1. Record audio (or use provided file)
47
+ 2. Transcribe using AI
48
+ 3. Generate commit message
49
+ 4. Delegate to commit command
50
+
51
+ ### audio-review
52
+
53
+ 1. Record audio (or use provided files)
54
+ 2. Transcribe using AI
55
+ 3. Add context to review workflow
56
+
package/package.json ADDED
@@ -0,0 +1,71 @@
1
+ {
2
+ "name": "@eldrforge/commands-audio",
3
+ "version": "0.1.0",
4
+ "description": "Audio transcription and voice commands for kodrdriv (transcribe, voice-note)",
5
+ "main": "dist/index.js",
6
+ "type": "module",
7
+ "exports": {
8
+ ".": {
9
+ "import": "./dist/index.js",
10
+ "types": "./dist/index.d.ts"
11
+ }
12
+ },
13
+ "files": [
14
+ "dist",
15
+ "guide"
16
+ ],
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/grunnverk/commands-audio.git"
20
+ },
21
+ "scripts": {
22
+ "build": "npm run lint && tsc --noEmit && vite build",
23
+ "dev": "vite",
24
+ "watch": "vite build --watch",
25
+ "test": "vitest run --coverage",
26
+ "lint": "eslint . --ext .ts",
27
+ "lint:fix": "eslint . --ext .ts --fix",
28
+ "clean": "rm -rf dist",
29
+ "precommit": "npm run clean && npm run build && npm run lint && npm run test",
30
+ "prepublishOnly": "npm run clean && npm run lint && npm run build && npm run test"
31
+ },
32
+ "keywords": [
33
+ "kodrdriv",
34
+ "audio",
35
+ "transcription",
36
+ "voice",
37
+ "commands"
38
+ ],
39
+ "author": "Tim O'Brien <tobrien@discursive.com>",
40
+ "license": "Apache-2.0",
41
+ "dependencies": {
42
+ "@eldrforge/ai-service": "^0.1.17",
43
+ "@eldrforge/audio-tools": "^0.1.11",
44
+ "@eldrforge/commands-git": "^0.1.0",
45
+ "@eldrforge/core": "^0.1.0",
46
+ "@eldrforge/shared": "^0.1.6",
47
+ "@riotprompt/riotprompt": "^0.0.10",
48
+ "@theunwalked/unplayable": "^0.0.21",
49
+ "dotenv": "^17.2.1"
50
+ },
51
+ "devDependencies": {
52
+ "@eslint/eslintrc": "^3.3.1",
53
+ "@eslint/js": "^9.33.0",
54
+ "@swc/core": "^1.13.3",
55
+ "@types/node": "^25.0.3",
56
+ "@typescript-eslint/eslint-plugin": "^8.39.1",
57
+ "@typescript-eslint/parser": "^8.47.0",
58
+ "@vitest/coverage-v8": "^4.0.13",
59
+ "ajv": "^8.17.1",
60
+ "esbuild": "0.27.2",
61
+ "eslint": "^9.33.0",
62
+ "eslint-plugin-import": "^2.32.0",
63
+ "globals": "^16.3.0",
64
+ "mockdate": "^3.0.5",
65
+ "typescript": "^5.9.2",
66
+ "vite": "^7.2.4",
67
+ "vite-plugin-dts": "^4.3.0",
68
+ "vite-plugin-node": "^7.0.0",
69
+ "vitest": "^4.0.13"
70
+ }
71
+ }