mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-13 10:59:39 +00:00
feat(plugin-sdk): export plugin hook types
Add `openclaw/plugin-sdk/types` entrypoint that re-exports plugin hook types, so external plugins can import typed hook interfaces without reaching into internal paths. Also export `resolveActiveEmbeddedRunSessionId` from `agent-harness-runtime` for session resolution in embedded runs.
This commit is contained in:
parent
26c7da2d02
commit
68c77bb55d
4 changed files with 13 additions and 1 deletions
|
|
@ -499,6 +499,10 @@
|
|||
"types": "./dist/plugin-sdk/host-runtime.d.ts",
|
||||
"default": "./dist/plugin-sdk/host-runtime.js"
|
||||
},
|
||||
"./plugin-sdk/types": {
|
||||
"types": "./dist/plugin-sdk/types.d.ts",
|
||||
"default": "./dist/plugin-sdk/types.js"
|
||||
},
|
||||
"./plugin-sdk/process-runtime": {
|
||||
"types": "./dist/plugin-sdk/process-runtime.d.ts",
|
||||
"default": "./dist/plugin-sdk/process-runtime.js"
|
||||
|
|
|
|||
|
|
@ -101,6 +101,7 @@
|
|||
"agent-harness-runtime",
|
||||
"hook-runtime",
|
||||
"host-runtime",
|
||||
"types",
|
||||
"process-runtime",
|
||||
"windows-spawn",
|
||||
"acp-runtime",
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import {
|
|||
abortEmbeddedPiRun,
|
||||
clearActiveEmbeddedRun,
|
||||
queueEmbeddedPiMessageWithOutcome,
|
||||
resolveActiveEmbeddedRunSessionId,
|
||||
setActiveEmbeddedRun,
|
||||
type EmbeddedPiQueueMessageOptions,
|
||||
} from "../agents/pi-embedded-runner/runs.js";
|
||||
|
|
@ -105,7 +106,12 @@ export { resolveModelAuthMode } from "../agents/model-auth.js";
|
|||
export { supportsModelTools } from "../agents/model-tool-support.js";
|
||||
export { resolveAttemptSpawnWorkspaceDir } from "../agents/pi-embedded-runner/run/attempt.thread-helpers.js";
|
||||
export { buildEmbeddedAttemptToolRunContext } from "../agents/pi-embedded-runner/run/attempt.tool-run-context.js";
|
||||
export { abortEmbeddedPiRun as abortAgentHarnessRun, clearActiveEmbeddedRun, setActiveEmbeddedRun };
|
||||
export {
|
||||
abortEmbeddedPiRun as abortAgentHarnessRun,
|
||||
clearActiveEmbeddedRun,
|
||||
resolveActiveEmbeddedRunSessionId,
|
||||
setActiveEmbeddedRun,
|
||||
};
|
||||
|
||||
/**
|
||||
* @deprecated Active-run queueing is an internal runtime concern. Use current
|
||||
|
|
|
|||
1
src/plugin-sdk/types.ts
Normal file
1
src/plugin-sdk/types.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export * from "../plugins/types.js";
|
||||
Loading…
Add table
Reference in a new issue