fix(plugins): add missing secret-input-schema build entry and Matrix runtime export

buildSecretInputSchema was not included in plugin-sdk-entrypoints.json,
so it was never emitted to dist/plugin-sdk/secret-input-schema.js. This
caused a ReferenceError during onboard when configuring channels that use
secret input schemas (matrix, feishu, mattermost, bluebubbles, nextcloud-talk, zalo).

Additionally, the Matrix extension's hand-written runtime-api barrel was
missing the re-export, unlike other extensions that use `export *` from
their plugin-sdk subpath.

Co-authored-by: hxy91819 <masonxhuang@icloud.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Vincent Koc 2026-03-17 23:28:23 -07:00 committed by GitHub
parent c36a493e80
commit fe84354a33
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 1 deletions

View File

@ -10,6 +10,10 @@ describe("matrix runtime-api", () => {
expect(typeof helpers.resolveDefaultAccountId).toBe("function");
});
it("re-exports buildSecretInputSchema for config schema helpers", () => {
expect(typeof runtimeApi.buildSecretInputSchema).toBe("function");
});
it("does not re-export setup entrypoints that create extension cycles", () => {
expect("matrixSetupWizard" in runtimeApi).toBe(false);
expect("matrixSetupAdapter" in runtimeApi).toBe(false);

View File

@ -482,6 +482,10 @@
"types": "./dist/plugin-sdk/tool-send.d.ts",
"default": "./dist/plugin-sdk/tool-send.js"
},
"./plugin-sdk/secret-input-schema": {
"types": "./dist/plugin-sdk/secret-input-schema.d.ts",
"default": "./dist/plugin-sdk/secret-input-schema.js"
},
"./cli-entry": "./openclaw.mjs"
},
"scripts": {

View File

@ -109,5 +109,6 @@
"web-media",
"speech",
"state-paths",
"tool-send"
"tool-send",
"secret-input-schema"
]