fix(FN-4486): complete Step 5 — restore workspace verification gates

Fusion-Task-Id: FN-4486
Fusion-Task-Lineage: 7d3b40b2-883f-450c-96ec-796f8af4fa45
This commit is contained in:
Fusion
2026-05-14 10:13:12 -07:00
committed by gsxdsm
parent d7bb7452f9
commit 0ecd46727f
8 changed files with 17 additions and 9 deletions

View File

@@ -1,12 +1,12 @@
declare module "node-pty" {
export interface IPty {
[key: string]: any;
[key: string]: unknown;
}
export interface IPtyForkOptions {
[key: string]: any;
[key: string]: unknown;
}
export interface IWindowsPtyForkOptions extends IPtyForkOptions {
[key: string]: any;
[key: string]: unknown;
}
export function spawn(...args: any[]): IPty;
export function spawn(...args: unknown[]): IPty;
}

View File

@@ -13,6 +13,7 @@ import { installFusionSkillIntoHermesHome } from "./fusion-skill-install.js";
import { HermesRuntimeAdapter } from "./runtime-adapter.js";
import type {
FusionPlugin,
PluginContext,
PluginRuntimeFactory,
PluginRuntimeManifestMetadata,
} from "@fusion/plugin-sdk";
@@ -50,7 +51,7 @@ const plugin: FusionPlugin = definePlugin({
},
state: "installed",
hooks: {
onLoad: (ctx) => {
onLoad: (ctx: PluginContext) => {
const settings = resolveCliSettings(ctx.settings);
const skillInstall = installFusionSkillIntoHermesHome({ profile: settings.profile });

View File

@@ -13,6 +13,7 @@ import { installFusionSkillIntoHermesHome } from "./fusion-skill-install.js";
import { HermesRuntimeAdapter } from "./runtime-adapter.js";
import type {
FusionPlugin,
PluginContext,
PluginRuntimeFactory,
PluginRuntimeManifestMetadata,
} from "@fusion/plugin-sdk";
@@ -50,7 +51,7 @@ const plugin: FusionPlugin = definePlugin({
},
state: "installed",
hooks: {
onLoad: (ctx) => {
onLoad: (ctx: PluginContext) => {
const settings = resolveCliSettings(ctx.settings);
const skillInstall = installFusionSkillIntoHermesHome({ profile: settings.profile });

View File

@@ -13,6 +13,7 @@ import { installFusionSkillIntoHermesHome } from "./fusion-skill-install.js";
import { HermesRuntimeAdapter } from "./runtime-adapter.js";
import type {
FusionPlugin,
PluginContext,
PluginRuntimeFactory,
PluginRuntimeManifestMetadata,
} from "@fusion/plugin-sdk";
@@ -50,7 +51,7 @@ const plugin: FusionPlugin = definePlugin({
},
state: "installed",
hooks: {
onLoad: (ctx) => {
onLoad: (ctx: PluginContext) => {
const settings = resolveCliSettings(ctx.settings);
const skillInstall = installFusionSkillIntoHermesHome({ profile: settings.profile });

View File

@@ -43,7 +43,7 @@ const plugin: FusionPlugin = definePlugin({
},
state: "installed",
hooks: {
onLoad: async (ctx) => {
onLoad: async (ctx: PluginContext) => {
const config = resolveCliConfig(ctx.settings);
const probe = await probeOpenClawBinary({ binaryPath: config.binaryPath });

View File

@@ -1,4 +1,5 @@
import { definePlugin } from "@fusion/plugin-sdk";
import type { PluginContext } from "@fusion/plugin-sdk";
import {
probePaperclipConnection,
resolvePaperclipConfig,
@@ -80,7 +81,7 @@ const plugin: FusionPlugin = definePlugin({
state: "installed",
runtime: paperclipRuntime,
hooks: {
onLoad: async (ctx) => {
onLoad: async (ctx: PluginContext) => {
const config = getSettingsConfig(ctx.settings);
ctx.logger.info(`Paperclip Runtime Plugin loaded (apiUrl=${config.apiUrl})`);

3
tsconfig.json Normal file
View File

@@ -0,0 +1,3 @@
{
"files": ["./tsconfig.placeholder.d.ts"]
}

1
tsconfig.placeholder.d.ts vendored Normal file
View File

@@ -0,0 +1 @@
export {};