fix: clean up remaining pre-existing TypeScript errors
- dictation.ts: Uint8Array cast for getByteTimeDomainData - user-help-vibe.test.ts + user-profile-harvest.test.ts: computerHost 'evo' → null - executor-utils.ts: import AgentRunRequest from adapter-kit, MessageBlock from contracts - pi-model-config.ts: import AgentToolExecutionResult from adapter-kit Results: apps/web 0 TS errors (was 4), packages/adapters 15→6 errors
This commit is contained in:
parent
e3853fab86
commit
a3eac211bd
@ -479,7 +479,7 @@ function cancelResponse(response: Response): void {
|
||||
}
|
||||
|
||||
function rmsFromAnalyser(analyser: AnalyserNode, data: Uint8Array): number {
|
||||
analyser.getByteTimeDomainData(data);
|
||||
analyser.getByteTimeDomainData(data as unknown as Uint8Array<ArrayBuffer>);
|
||||
let sum = 0;
|
||||
for (const sample of data) {
|
||||
const n = (sample - 128) / 128;
|
||||
|
||||
@ -31,7 +31,7 @@ describe("user-help-vibe", () => {
|
||||
email: "d@b.c",
|
||||
defaultProvider: null,
|
||||
defaultModel: null,
|
||||
computerHost: "evo",
|
||||
computerHost: null,
|
||||
}),
|
||||
);
|
||||
expect(hints.suggestedLanes).toContain("builder");
|
||||
@ -63,7 +63,7 @@ describe("user-help-vibe", () => {
|
||||
email: "i@b.c",
|
||||
defaultProvider: "openai-compatible",
|
||||
defaultModel: "local",
|
||||
computerHost: "evo",
|
||||
computerHost: null,
|
||||
}),
|
||||
{ focusChoiceId: "crew" },
|
||||
),
|
||||
|
||||
@ -77,7 +77,7 @@ describe("user-profile-harvest", () => {
|
||||
email: "ingo@example.com",
|
||||
defaultProvider: null,
|
||||
defaultModel: null,
|
||||
computerHost: "evo",
|
||||
computerHost: null,
|
||||
}),
|
||||
);
|
||||
expect(updates).toHaveLength(1);
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import type { AgentRunRequest, MessageBlock } from "@rakazo/contracts";
|
||||
import type { AgentRunRequest } from "@rakazo/adapter-kit";
|
||||
import type { MessageBlock } from "@rakazo/contracts";
|
||||
import { isAttachmentImageMimeType } from "@rakazo/contracts";
|
||||
import type { ExecutorDeps } from "./executor-types.js";
|
||||
|
||||
|
||||
@ -12,8 +12,8 @@ import { builtinModels } from "@earendil-works/pi-ai/providers/all";
|
||||
import { type Agent, type AgentToolResult } from "@earendil-works/pi-agent-core";
|
||||
import {
|
||||
type AgentMessage,
|
||||
type AgentToolExecutionResult,
|
||||
} from "@earendil-works/pi-agent-core";
|
||||
import type { AgentToolExecutionResult } from "@rakazo/adapter-kit";
|
||||
import type {
|
||||
AgentRuntimeEvent,
|
||||
AgentRunRequest,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user