Skip to content

Commit 5b98ec1

Browse files
vobuCopilot
andauthored
chore: update src/plugin-loader.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 8dcdf5a commit 5b98ec1

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/plugin-loader.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,10 @@ export async function loadInstalledPlugins(): Promise<void> {
123123
const logger = getLogger();
124124

125125
// Make c8ctl runtime available globally for plugins
126-
const pluginRuntime: C8ctlPluginRuntime = {
127-
...(c8ctl as unknown as object),
128-
createClient,
129-
resolveTenantId,
130-
getLogger,
131-
};
126+
const pluginRuntime = c8ctl as C8ctlPluginRuntime;
127+
(pluginRuntime as any).createClient = createClient;
128+
(pluginRuntime as any).resolveTenantId = resolveTenantId;
129+
(pluginRuntime as any).getLogger = getLogger;
132130
globalThis.c8ctl = pluginRuntime;
133131

134132
// Load default plugins first

0 commit comments

Comments
 (0)