@getfamiliar/plugin-transcribe-whisper 0.1.4 → 0.1.6
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/build/Commands.d.ts +1 -1
- package/build/Commands.js +2 -2
- package/build/index.d.ts +1 -1
- package/build/index.js +1 -1
- package/package.json +3 -2
package/build/Commands.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { type CommandDef } from "citty";
|
|
|
2
2
|
import type { HostContext } from "@getfamiliar/shared";
|
|
3
3
|
/**
|
|
4
4
|
* Build the citty subcommands exposed under
|
|
5
|
-
*
|
|
5
|
+
* `familiar transcribe-whisper`. Currently a single smoke-test
|
|
6
6
|
* command; future operational commands (e.g. `cost`, `models`) land
|
|
7
7
|
* here.
|
|
8
8
|
*/
|
package/build/Commands.js
CHANGED
|
@@ -4,7 +4,7 @@ import { defineCommand } from "citty";
|
|
|
4
4
|
import { transcribeAudio } from "./Whisper.js";
|
|
5
5
|
/**
|
|
6
6
|
* Build the citty subcommands exposed under
|
|
7
|
-
*
|
|
7
|
+
* `familiar transcribe-whisper`. Currently a single smoke-test
|
|
8
8
|
* command; future operational commands (e.g. `cost`, `models`) land
|
|
9
9
|
* here.
|
|
10
10
|
*/
|
|
@@ -13,7 +13,7 @@ export function buildCommands(_ctx) {
|
|
|
13
13
|
return [testCommand()];
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* `familiar transcribe-whisper test <path>` — read a local audio
|
|
17
17
|
* file, send it through {@link transcribeAudio}, and print the
|
|
18
18
|
* transcript. The operator's smoke test for
|
|
19
19
|
* "is `inference.apiKeys.openai` set up correctly?" without needing
|
package/build/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export { transcribeAudio } from "./Whisper.js";
|
|
|
17
17
|
*
|
|
18
18
|
* "Library plugin": no event subscription, no workspace template;
|
|
19
19
|
* its purpose is to expose {@link transcribeAudio} to other plugins.
|
|
20
|
-
* The CLI subcommand (
|
|
20
|
+
* The CLI subcommand (`familiar transcribe-whisper test <path>`) is
|
|
21
21
|
* a smoke test for the OpenAI API key.
|
|
22
22
|
*
|
|
23
23
|
* The `prepare(ctx)` hook reads the OpenAI key from the host config
|
package/build/index.js
CHANGED
|
@@ -20,7 +20,7 @@ export { transcribeAudio } from "./Whisper.js";
|
|
|
20
20
|
*
|
|
21
21
|
* "Library plugin": no event subscription, no workspace template;
|
|
22
22
|
* its purpose is to expose {@link transcribeAudio} to other plugins.
|
|
23
|
-
* The CLI subcommand (
|
|
23
|
+
* The CLI subcommand (`familiar transcribe-whisper test <path>`) is
|
|
24
24
|
* a smoke test for the OpenAI API key.
|
|
25
25
|
*
|
|
26
26
|
* The `prepare(ctx)` hook reads the OpenAI key from the host config
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getfamiliar/plugin-transcribe-whisper",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.6",
|
|
5
5
|
"description": "Familiar plugin: transcribeAudio() backed by OpenAI's Whisper API.",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"main": "build/index.js",
|
|
10
10
|
"types": "build/index.d.ts",
|
|
11
11
|
"familiar": {
|
|
12
|
+
"plugin": true,
|
|
12
13
|
"bundled": true
|
|
13
14
|
},
|
|
14
15
|
"files": [
|
|
@@ -28,7 +29,7 @@
|
|
|
28
29
|
"license": "MIT",
|
|
29
30
|
"dependencies": {
|
|
30
31
|
"citty": "^0.1.6",
|
|
31
|
-
"@getfamiliar/shared": "0.1.
|
|
32
|
+
"@getfamiliar/shared": "0.1.6",
|
|
32
33
|
"openai": "^4.77.0"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|