refactor: expose extension sdk boundary seams

This commit is contained in:
Peter Steinberger
2026-04-27 21:58:04 +01:00
parent 3e497f5e2b
commit 662de55e07
20 changed files with 154 additions and 25 deletions

View File

@@ -1,4 +1,4 @@
import type { AgentMessage } from "@mariozechner/pi-agent-core";
import type { AgentMessage } from "openclaw/plugin-sdk/agent-harness-runtime";
export type CodexContextProjection = {
developerInstructionAddition?: string;

View File

@@ -1,4 +1,3 @@
import type { AgentMessage } from "@mariozechner/pi-agent-core";
import type { AssistantMessage, Usage } from "@mariozechner/pi-ai";
import { SessionManager } from "@mariozechner/pi-coding-agent";
import {
@@ -13,6 +12,7 @@ import {
runAgentHarnessAfterCompactionHook,
runAgentHarnessBeforeCompactionHook,
TOOL_PROGRESS_OUTPUT_MAX_CHARS,
type AgentMessage,
type EmbeddedRunAttemptParams,
type EmbeddedRunAttemptResult,
type MessagingToolSend,

View File

@@ -1,5 +1,4 @@
import fs from "node:fs/promises";
import type { AgentMessage } from "@mariozechner/pi-agent-core";
import { SessionManager } from "@mariozechner/pi-coding-agent";
import {
assembleHarnessContextEngine,
@@ -29,6 +28,7 @@ import {
registerNativeHookRelay,
setActiveEmbeddedRun,
supportsModelTools,
type AgentMessage,
type EmbeddedRunAttemptParams,
type EmbeddedRunAttemptResult,
type NativeHookRelayEvent,

View File

@@ -1,11 +1,11 @@
import fs from "node:fs/promises";
import path from "node:path";
import type { AgentMessage } from "@mariozechner/pi-agent-core";
import { SessionManager } from "@mariozechner/pi-coding-agent";
import {
acquireSessionWriteLock,
emitSessionTranscriptUpdate,
runAgentHarnessBeforeMessageWriteHook,
type AgentMessage,
} from "openclaw/plugin-sdk/agent-harness-runtime";
export async function mirrorCodexAppServerTranscript(params: {