agentreceipt-voice 0.0.0-stage → 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/LICENSE +21 -0
- package/README.md +38 -2
- package/bin/cli.js +4 -0
- package/package.json +25 -4
- package/src/cli.js +30 -0
- package/src/index.js +5 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Ayush Pund
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,39 @@
|
|
|
1
|
-
#
|
|
1
|
+
# agentreceipt-voice
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A small toolkit for people who dictate a lot. One install, four tools, each also available as its own package.
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npx agentreceipt-voice packs export developer # ready-made snippets and dictionary words
|
|
7
|
+
npx agentreceipt-voice check my-dictionary.csv # see what the app would skip, before you import
|
|
8
|
+
npx agentreceipt-voice vocab ./my-repo # build a dictionary from the names in your code
|
|
9
|
+
npx agentreceipt-voice snippets init # keep snippets as files in git
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
| Command | What it does | Also available as |
|
|
13
|
+
|---|---|---|
|
|
14
|
+
| `check <file>` | Checks a dictionary CSV or a snippets JSON and lists every row the app would silently skip | [agentreceipt-voice-check](https://www.npmjs.com/package/agentreceipt-voice-check) |
|
|
15
|
+
| `packs list` / `packs export` | Writes ready-made snippet and dictionary packs for developers, founders, support and sales | [agentreceipt-voice-packs](https://www.npmjs.com/package/agentreceipt-voice-packs) |
|
|
16
|
+
| `snippets init` / `snippets build` | Keeps your snippets and dictionary as plain files in a repo, and builds the import files | [agentreceipt-voice-snippets](https://www.npmjs.com/package/agentreceipt-voice-snippets) |
|
|
17
|
+
| `vocab [folder]` | Scans a repo for package names and identifiers dictation gets wrong, and writes a dictionary CSV | [agentreceipt-voice-vocab](https://www.npmjs.com/package/agentreceipt-voice-vocab) |
|
|
18
|
+
|
|
19
|
+
Everything runs on your computer. Nothing is uploaded.
|
|
20
|
+
|
|
21
|
+
## Good to know
|
|
22
|
+
|
|
23
|
+
- **Unofficial.** This is not made by, or affiliated with, any dictation app. The files follow the bulk-import format that Wispr Flow's help centre describes: a dictionary CSV with no header row (one column, or `misspelling,correction`), and a snippets JSON array of `{ "name", "text" }`, with at most 1,000 entries and 3 MB per file. It has not been tested inside the app itself, so run `check` and look at the app's own import preview before you confirm.
|
|
24
|
+
- **Triggers start with "insert".** Dictation apps match triggers as whole words, so a plain phrase like "bug report" would expand in the middle of normal speech. "insert bug report" will not.
|
|
25
|
+
- If the app changes its import rules, `check` will need to change too.
|
|
26
|
+
|
|
27
|
+
## Use it from code
|
|
28
|
+
|
|
29
|
+
```js
|
|
30
|
+
import { check, packs } from 'agentreceipt-voice';
|
|
31
|
+
|
|
32
|
+
const result = check.checkDictionary('Supabase\nsuper base,Supabase\n');
|
|
33
|
+
console.log(result.ok, result.valid.length);
|
|
34
|
+
console.log(packs.listPacks());
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Licence
|
|
38
|
+
|
|
39
|
+
MIT. Made by the team behind [AgentReceipt](https://www.agentreceipt.online), which records what AI coding agents change in your code.
|
package/bin/cli.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentreceipt-voice",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "A toolkit for voice dictation power users: check import files, keep snippets as code, install ready-made snippet packs, and build a dictionary from your repo. One command, four tools. Unofficial; works with the Wispr Flow import format.",
|
|
5
|
+
"keywords": ["dictation", "voice", "snippets", "dictionary", "wispr-flow", "speech-to-text", "voice-typing", "developer-tools", "toolkit"],
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "Ayush Pund <founders@agentreceipt.online> (https://www.agentreceipt.online)",
|
|
8
|
+
"homepage": "https://www.agentreceipt.online",
|
|
9
|
+
"bugs": { "email": "founders@agentreceipt.online" },
|
|
10
|
+
"type": "module",
|
|
11
|
+
"main": "src/index.js",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": "./src/index.js",
|
|
14
|
+
"./package.json": "./package.json"
|
|
15
|
+
},
|
|
16
|
+
"bin": { "agentreceipt-voice": "bin/cli.js" },
|
|
17
|
+
"files": ["bin", "src", "README.md", "LICENSE"],
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"agentreceipt-voice-check": "^0.1.0",
|
|
20
|
+
"agentreceipt-voice-packs": "^0.1.0",
|
|
21
|
+
"agentreceipt-voice-snippets": "^0.1.0",
|
|
22
|
+
"agentreceipt-voice-vocab": "^0.1.0"
|
|
23
|
+
},
|
|
24
|
+
"engines": { "node": ">=18" },
|
|
25
|
+
"publishConfig": { "access": "public" },
|
|
26
|
+
"scripts": { "test": "node --test" }
|
|
27
|
+
}
|
package/src/cli.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { readFileSync } from 'node:fs';
|
|
2
|
+
import { run as check } from 'agentreceipt-voice-check/cli';
|
|
3
|
+
import { run as packs } from 'agentreceipt-voice-packs/cli';
|
|
4
|
+
import { run as snippets } from 'agentreceipt-voice-snippets/cli';
|
|
5
|
+
import { run as vocab } from 'agentreceipt-voice-vocab/cli';
|
|
6
|
+
|
|
7
|
+
const USAGE = `agentreceipt-voice <command> [options]
|
|
8
|
+
|
|
9
|
+
check <file>... check a dictionary CSV or snippets JSON before you import it
|
|
10
|
+
packs list | export ready-made snippet and dictionary packs (developer, founder, support, sales)
|
|
11
|
+
snippets init | build keep snippets as files in git and build the import files
|
|
12
|
+
vocab [folder] build a dictionary CSV from the names in a code repository
|
|
13
|
+
|
|
14
|
+
Each command is also its own package: agentreceipt-voice-check, -packs, -snippets and -vocab.
|
|
15
|
+
Run a command with --help for its options. Unofficial: not made by or affiliated with any dictation app.`;
|
|
16
|
+
|
|
17
|
+
const COMMANDS = { check, packs, snippets, vocab };
|
|
18
|
+
|
|
19
|
+
export async function run(argv, io = { out: (s) => process.stdout.write(s), err: (s) => process.stderr.write(s) }) {
|
|
20
|
+
const [cmd, ...rest] = argv;
|
|
21
|
+
if (cmd === '--version' || cmd === '-v') {
|
|
22
|
+
const pkg = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8'));
|
|
23
|
+
io.out(`${pkg.version}\n`);
|
|
24
|
+
return 0;
|
|
25
|
+
}
|
|
26
|
+
if (!cmd || cmd === '--help' || cmd === '-h') return (cmd ? io.out : io.err)(`${USAGE}\n`), cmd ? 0 : 2;
|
|
27
|
+
const fn = COMMANDS[cmd];
|
|
28
|
+
if (!fn) return io.err(`Unknown command "${cmd}".\n${USAGE}\n`), 2;
|
|
29
|
+
return fn(rest, io);
|
|
30
|
+
}
|
package/src/index.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// The parent package: one install that brings its four children, which can also be used alone.
|
|
2
|
+
export * as check from 'agentreceipt-voice-check';
|
|
3
|
+
export * as snippets from 'agentreceipt-voice-snippets';
|
|
4
|
+
export * as packs from 'agentreceipt-voice-packs';
|
|
5
|
+
export * as vocab from 'agentreceipt-voice-vocab';
|