fix: export RPC utilities from pi-coding-agent public API
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
99c3375f18
commit
a8b9030560
2 changed files with 10 additions and 4 deletions
|
|
@ -302,7 +302,16 @@ export {
|
|||
type PrintModeOptions,
|
||||
runPrintMode,
|
||||
runRpcMode,
|
||||
type ModelInfo,
|
||||
RpcClient,
|
||||
type RpcClientOptions,
|
||||
type RpcEventListener,
|
||||
type RpcCommand,
|
||||
type RpcResponse,
|
||||
type RpcSessionState,
|
||||
} from "./modes/index.js";
|
||||
// RPC JSONL utilities
|
||||
export { attachJsonlLineReader, serializeJsonLine } from "./modes/rpc/jsonl.js";
|
||||
// UI components for extensions
|
||||
export {
|
||||
ArminComponent,
|
||||
|
|
|
|||
|
|
@ -15,10 +15,7 @@ import { existsSync, readFileSync, mkdirSync, writeFileSync } from 'node:fs'
|
|||
import { join, resolve } from 'node:path'
|
||||
import { ChildProcess } from 'node:child_process'
|
||||
|
||||
// RpcClient is not in @gsd/pi-coding-agent's public exports — import from dist directly.
|
||||
// This relative path resolves correctly from both src/ (via tsx) and dist/ (compiled).
|
||||
import { RpcClient } from '../packages/pi-coding-agent/dist/modes/rpc/rpc-client.js'
|
||||
import { attachJsonlLineReader, serializeJsonLine } from '../packages/pi-coding-agent/dist/modes/rpc/jsonl.js'
|
||||
import { RpcClient, attachJsonlLineReader, serializeJsonLine } from '@gsd/pi-coding-agent'
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Types
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue