@protolabsai/proto 0.18.2 → 0.18.4
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/cli.js +42 -17
- package/package.json +2 -2
package/cli.js
CHANGED
|
@@ -148519,6 +148519,8 @@ var init_tokenLimits = __esm({
|
|
|
148519
148519
|
// -------------------
|
|
148520
148520
|
// MiniMax
|
|
148521
148521
|
// -------------------
|
|
148522
|
+
[/^minimax-m2\.7/i, LIMITS["200k"]],
|
|
148523
|
+
// MiniMax-M2.7: 200K
|
|
148522
148524
|
[/^minimax-m2\.5/i, LIMITS["192k"]],
|
|
148523
148525
|
// MiniMax-M2.5: 196,608
|
|
148524
148526
|
[/^minimax-/i, LIMITS["200k"]],
|
|
@@ -148567,6 +148569,7 @@ var init_tokenLimits = __esm({
|
|
|
148567
148569
|
[/^glm-5/, LIMITS["16k"]],
|
|
148568
148570
|
[/^glm-4\.7/, LIMITS["16k"]],
|
|
148569
148571
|
// MiniMax
|
|
148572
|
+
[/^minimax-m2\.7/i, LIMITS["64k"]],
|
|
148570
148573
|
[/^minimax-m2\.5/i, LIMITS["64k"]],
|
|
148571
148574
|
// Kimi
|
|
148572
148575
|
[/^kimi-k2\.5/, LIMITS["32k"]]
|
|
@@ -170762,7 +170765,7 @@ __export(geminiContentGenerator_exports, {
|
|
|
170762
170765
|
createGeminiContentGenerator: () => createGeminiContentGenerator
|
|
170763
170766
|
});
|
|
170764
170767
|
function createGeminiContentGenerator(config2, gcConfig) {
|
|
170765
|
-
const version2 = "0.18.
|
|
170768
|
+
const version2 = "0.18.4";
|
|
170766
170769
|
const userAgent2 = config2.userAgent || `QwenCode/${version2} (${process.platform}; ${process.arch})`;
|
|
170767
170770
|
const baseHeaders = {
|
|
170768
170771
|
"User-Agent": userAgent2
|
|
@@ -402591,6 +402594,15 @@ var SETTINGS_SCHEMA = {
|
|
|
402591
402594
|
default: "http://localhost:8000/v1/audio/transcriptions",
|
|
402592
402595
|
description: "OpenAI-compatible speech-to-text endpoint URL (e.g. a local faster-whisper server).",
|
|
402593
402596
|
showInDialog: true
|
|
402597
|
+
},
|
|
402598
|
+
sttEnvKey: {
|
|
402599
|
+
type: "string",
|
|
402600
|
+
label: "STT API Key Env Var",
|
|
402601
|
+
category: "Voice",
|
|
402602
|
+
requiresRestart: false,
|
|
402603
|
+
default: void 0,
|
|
402604
|
+
description: "Name of the environment variable holding the API key for the STT endpoint (e.g. GATEWAY_API_KEY).",
|
|
402605
|
+
showInDialog: true
|
|
402594
402606
|
}
|
|
402595
402607
|
}
|
|
402596
402608
|
},
|
|
@@ -411767,7 +411779,7 @@ __name(getPackageJson, "getPackageJson");
|
|
|
411767
411779
|
// packages/cli/src/utils/version.ts
|
|
411768
411780
|
async function getCliVersion() {
|
|
411769
411781
|
const pkgJson = await getPackageJson();
|
|
411770
|
-
return "0.18.
|
|
411782
|
+
return "0.18.4";
|
|
411771
411783
|
}
|
|
411772
411784
|
__name(getCliVersion, "getCliVersion");
|
|
411773
411785
|
|
|
@@ -419539,7 +419551,7 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
|
|
|
419539
419551
|
|
|
419540
419552
|
// packages/cli/src/generated/git-commit.ts
|
|
419541
419553
|
init_esbuild_shims();
|
|
419542
|
-
var GIT_COMMIT_INFO = "
|
|
419554
|
+
var GIT_COMMIT_INFO = "5f66aefe7";
|
|
419543
419555
|
|
|
419544
419556
|
// packages/cli/src/utils/systemInfo.ts
|
|
419545
419557
|
async function getNpmVersion() {
|
|
@@ -427881,14 +427893,7 @@ async function startRecording(outputPath, backend) {
|
|
|
427881
427893
|
"signed",
|
|
427882
427894
|
"-b",
|
|
427883
427895
|
"16",
|
|
427884
|
-
outputPath
|
|
427885
|
-
"silence",
|
|
427886
|
-
"1",
|
|
427887
|
-
"0.1",
|
|
427888
|
-
"1%",
|
|
427889
|
-
"1",
|
|
427890
|
-
"1.5",
|
|
427891
|
-
"1%"
|
|
427896
|
+
outputPath
|
|
427892
427897
|
]);
|
|
427893
427898
|
} else if (backend === "arecord") {
|
|
427894
427899
|
return spawn10("arecord", [
|
|
@@ -480590,14 +480595,19 @@ import fs126 from "node:fs";
|
|
|
480590
480595
|
// packages/cli/src/services/sttClient.ts
|
|
480591
480596
|
init_esbuild_shims();
|
|
480592
480597
|
import fs125 from "node:fs";
|
|
480593
|
-
async function transcribe(audioPath, endpoint, model = "whisper-1") {
|
|
480598
|
+
async function transcribe(audioPath, endpoint, model = "whisper-1", apiKey) {
|
|
480594
480599
|
const audioBuffer = fs125.readFileSync(audioPath);
|
|
480595
480600
|
const blob = new Blob([audioBuffer], { type: "audio/wav" });
|
|
480596
480601
|
const form = new FormData();
|
|
480597
480602
|
form.append("file", blob, "audio.wav");
|
|
480598
480603
|
form.append("model", model);
|
|
480604
|
+
const headers = {};
|
|
480605
|
+
if (apiKey) {
|
|
480606
|
+
headers["Authorization"] = `Bearer ${apiKey}`;
|
|
480607
|
+
}
|
|
480599
480608
|
const response = await fetch(endpoint, {
|
|
480600
480609
|
method: "POST",
|
|
480610
|
+
headers,
|
|
480601
480611
|
body: form
|
|
480602
480612
|
});
|
|
480603
480613
|
if (!response.ok) {
|
|
@@ -480611,7 +480621,7 @@ async function transcribe(audioPath, endpoint, model = "whisper-1") {
|
|
|
480611
480621
|
__name(transcribe, "transcribe");
|
|
480612
480622
|
|
|
480613
480623
|
// packages/cli/src/ui/hooks/useVoice.ts
|
|
480614
|
-
function useVoice(sttEndpoint) {
|
|
480624
|
+
function useVoice(sttEndpoint, sttApiKey) {
|
|
480615
480625
|
const [voiceState, setVoiceState] = (0, import_react163.useState)("idle");
|
|
480616
480626
|
const [error40, setError] = (0, import_react163.useState)(null);
|
|
480617
480627
|
const procRef = (0, import_react163.useRef)(null);
|
|
@@ -480638,7 +480648,20 @@ function useVoice(sttEndpoint) {
|
|
|
480638
480648
|
const audioPath = audioPathRef.current;
|
|
480639
480649
|
try {
|
|
480640
480650
|
await stopRecording(procRef.current);
|
|
480641
|
-
const
|
|
480651
|
+
const stat12 = fs126.statSync(audioPath);
|
|
480652
|
+
if (stat12.size <= 44) {
|
|
480653
|
+
setVoiceState("idle");
|
|
480654
|
+
fs126.unlink(audioPath, () => {
|
|
480655
|
+
});
|
|
480656
|
+
audioPathRef.current = null;
|
|
480657
|
+
return "";
|
|
480658
|
+
}
|
|
480659
|
+
const text = await transcribe(
|
|
480660
|
+
audioPath,
|
|
480661
|
+
sttEndpoint,
|
|
480662
|
+
"whisper-1",
|
|
480663
|
+
sttApiKey
|
|
480664
|
+
);
|
|
480642
480665
|
setVoiceState("idle");
|
|
480643
480666
|
fs126.unlink(audioPath, () => {
|
|
480644
480667
|
});
|
|
@@ -480649,7 +480672,7 @@ function useVoice(sttEndpoint) {
|
|
|
480649
480672
|
setError(e4 instanceof Error ? e4.message : String(e4));
|
|
480650
480673
|
return "";
|
|
480651
480674
|
}
|
|
480652
|
-
}, [voiceState, sttEndpoint]);
|
|
480675
|
+
}, [voiceState, sttEndpoint, sttApiKey]);
|
|
480653
480676
|
const reset = (0, import_react163.useCallback)(() => {
|
|
480654
480677
|
setVoiceState("idle");
|
|
480655
480678
|
setError(null);
|
|
@@ -481147,7 +481170,9 @@ var AppContainer = /* @__PURE__ */ __name((props) => {
|
|
|
481147
481170
|
const { messageQueue, addMessage, popLast, drain } = useMessageQueue();
|
|
481148
481171
|
const voiceEnabled = settings.merged.voice?.enabled ?? false;
|
|
481149
481172
|
const sttEndpoint = settings.merged.voice?.sttEndpoint ?? DEFAULT_STT_ENDPOINT;
|
|
481150
|
-
const
|
|
481173
|
+
const sttEnvKey = settings.merged.voice?.sttEnvKey;
|
|
481174
|
+
const sttApiKey = sttEnvKey ? process47.env[sttEnvKey] : void 0;
|
|
481175
|
+
const voice = useVoice(sttEndpoint, sttApiKey);
|
|
481151
481176
|
const {
|
|
481152
481177
|
streamingState,
|
|
481153
481178
|
submitQuery,
|
|
@@ -486312,7 +486337,7 @@ var QwenAgent = class {
|
|
|
486312
486337
|
async initialize(args2) {
|
|
486313
486338
|
this.clientCapabilities = args2.clientCapabilities;
|
|
486314
486339
|
const authMethods = buildAuthMethods();
|
|
486315
|
-
const version2 = "0.18.
|
|
486340
|
+
const version2 = "0.18.4";
|
|
486316
486341
|
return {
|
|
486317
486342
|
protocolVersion: PROTOCOL_VERSION,
|
|
486318
486343
|
agentInfo: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protolabsai/proto",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.4",
|
|
4
4
|
"description": "proto - AI-powered coding agent",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"bundled"
|
|
22
22
|
],
|
|
23
23
|
"config": {
|
|
24
|
-
"sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.18.
|
|
24
|
+
"sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.18.4"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {},
|
|
27
27
|
"optionalDependencies": {
|