mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-20 21:51:28 +00:00
feat(plugin-sdk): export OpenClawSchema via plugin-sdk/config-schema
Add a public export path for the root Zod config schema so external tools can import it for validation and introspection without reaching into internal bundle chunks. Import path: `openclaw/plugin-sdk/config-schema`
This commit is contained in:
@@ -119,6 +119,10 @@
|
||||
"types": "./dist/plugin-sdk/config-runtime.d.ts",
|
||||
"default": "./dist/plugin-sdk/config-runtime.js"
|
||||
},
|
||||
"./plugin-sdk/config-schema": {
|
||||
"types": "./dist/plugin-sdk/config-schema.d.ts",
|
||||
"default": "./dist/plugin-sdk/config-schema.js"
|
||||
},
|
||||
"./plugin-sdk/reply-runtime": {
|
||||
"types": "./dist/plugin-sdk/reply-runtime.d.ts",
|
||||
"default": "./dist/plugin-sdk/reply-runtime.js"
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
"approval-reply-runtime",
|
||||
"approval-runtime",
|
||||
"config-runtime",
|
||||
"config-schema",
|
||||
"reply-runtime",
|
||||
"reply-dispatch-runtime",
|
||||
"reply-reference",
|
||||
|
||||
2
src/plugin-sdk/config-schema.ts
Normal file
2
src/plugin-sdk/config-schema.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
/** Root OpenClaw configuration Zod schema — the full `openclaw.json` shape. */
|
||||
export { OpenClawSchema } from "../config/zod-schema.js";
|
||||
Reference in New Issue
Block a user