fix: no dynamic imports
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import { existsSync, unlinkSync } from "node:fs";
|
import { existsSync, unlinkSync } from "node:fs";
|
||||||
import { createConnection, createServer, type Server } from "node:net";
|
import { createConnection, createServer, type Server } from "node:net";
|
||||||
|
import type { AgentSessionEvent, RpcExtensionUIRequest, RpcResponse } from "@earendil-works/pi-coding-agent";
|
||||||
import { getSocketPath } from "../config.ts";
|
import { getSocketPath } from "../config.ts";
|
||||||
import {
|
import {
|
||||||
type ErrorResponse,
|
type ErrorResponse,
|
||||||
@@ -32,9 +33,9 @@ export interface IpcRequestHandler {
|
|||||||
(request: OrchestratorRequest): Promise<OrchestratorResponse> | OrchestratorResponse;
|
(request: OrchestratorRequest): Promise<OrchestratorResponse> | OrchestratorResponse;
|
||||||
openRpcStream(
|
openRpcStream(
|
||||||
instanceId: string,
|
instanceId: string,
|
||||||
onResponse: (response: import("@earendil-works/pi-coding-agent").RpcResponse) => void,
|
onResponse: (response: RpcResponse) => void,
|
||||||
onSessionEvent: (event: import("@earendil-works/pi-coding-agent").AgentSessionEvent) => void,
|
onSessionEvent: (event: AgentSessionEvent) => void,
|
||||||
onUiRequest: (request: import("@earendil-works/pi-coding-agent").RpcExtensionUIRequest) => void,
|
onUiRequest: (request: RpcExtensionUIRequest) => void,
|
||||||
):
|
):
|
||||||
| {
|
| {
|
||||||
handleRequest(request: RpcClientMessage): Promise<void>;
|
handleRequest(request: RpcClientMessage): Promise<void>;
|
||||||
|
|||||||
Reference in New Issue
Block a user