mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
chore(lint): no-named-as-default use named imports for ws and openai
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import WebSocket from "ws";
|
||||
import { WebSocket } from "ws";
|
||||
|
||||
interface WebSocketLike {
|
||||
readyState: number;
|
||||
|
||||
@@ -2,7 +2,7 @@ import "dotenv/config";
|
||||
import { writeFile, mkdir } from "node:fs/promises";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import OpenAI from "openai";
|
||||
import { OpenAI } from "openai";
|
||||
|
||||
function requireEnv(name: string): string {
|
||||
const value = process.env[name];
|
||||
|
||||
@@ -3,7 +3,7 @@ import { homedir, tmpdir } from "node:os";
|
||||
import path from "node:path";
|
||||
import pino from "pino";
|
||||
import { beforeAll, beforeEach, describe, expect, test } from "vitest";
|
||||
import WebSocket from "ws";
|
||||
import { WebSocket } from "ws";
|
||||
import { ClaudeAgentClient } from "../agent/providers/claude-agent.js";
|
||||
import { DaemonClient } from "../test-utils/daemon-client.js";
|
||||
import { createTestPaseoDaemon } from "../test-utils/paseo-daemon.js";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { describe, expect, test } from "vitest";
|
||||
import WebSocket from "ws";
|
||||
import { WebSocket } from "ws";
|
||||
import pino from "pino";
|
||||
import { Writable } from "node:stream";
|
||||
import net from "node:net";
|
||||
|
||||
@@ -2,7 +2,7 @@ import { afterEach, beforeEach, describe, expect, test } from "vitest";
|
||||
import { mkdtempSync, rmSync } from "fs";
|
||||
import { tmpdir } from "os";
|
||||
import path from "path";
|
||||
import WebSocket from "ws";
|
||||
import { WebSocket } from "ws";
|
||||
import { DaemonClient } from "../../client/daemon-client.js";
|
||||
import {
|
||||
WSOutboundMessageSchema,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/// <reference lib="dom" />
|
||||
import { EventEmitter } from "node:events";
|
||||
import WebSocket from "ws";
|
||||
import { WebSocket } from "ws";
|
||||
import type pino from "pino";
|
||||
import {
|
||||
createDaemonChannel,
|
||||
|
||||
@@ -2,7 +2,7 @@ import { it, expect, afterEach } from "vitest";
|
||||
import http from "node:http";
|
||||
import net from "node:net";
|
||||
import express from "express";
|
||||
import WebSocket, { WebSocketServer } from "ws";
|
||||
import { WebSocket, WebSocketServer } from "ws";
|
||||
import pino from "pino";
|
||||
import {
|
||||
ScriptRouteStore,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type pino from "pino";
|
||||
import WebSocket from "ws";
|
||||
import { WebSocket } from "ws";
|
||||
import { EventEmitter } from "node:events";
|
||||
import type { StreamingTranscriptionSession } from "../../speech-provider.js";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { EventEmitter } from "node:events";
|
||||
import type pino from "pino";
|
||||
import OpenAI from "openai";
|
||||
import { OpenAI } from "openai";
|
||||
import { writeFile, unlink } from "fs/promises";
|
||||
import { join } from "path";
|
||||
import { tmpdir } from "os";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type pino from "pino";
|
||||
import OpenAI from "openai";
|
||||
import { OpenAI } from "openai";
|
||||
import { Readable } from "node:stream";
|
||||
import type { SpeechStreamResult, TextToSpeechProvider } from "../../speech-provider.js";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import WebSocket from "ws";
|
||||
import { WebSocket } from "ws";
|
||||
import {
|
||||
DaemonClient as SharedDaemonClient,
|
||||
type DaemonClientConfig as SharedDaemonClientConfig,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { mkdtempSync, writeFileSync, rmSync, existsSync } from "node:fs";
|
||||
import { tmpdir } from "node:os";
|
||||
import path from "node:path";
|
||||
import OpenAI from "openai";
|
||||
import { OpenAI } from "openai";
|
||||
|
||||
export function requireEnv(name: string): string {
|
||||
const value = process.env[name];
|
||||
|
||||
Reference in New Issue
Block a user