fix(FN-4893): type resolvedScope scopes as SecretScope
Fusion-Task-Id: FN-4893 Fusion-Task-Lineage: 14912482-9b55-47ae-831e-03e149714d72
This commit is contained in:
committed by
gsxdsm
parent
72834ebcb1
commit
0360dd193d
@@ -22,6 +22,7 @@ import {
|
||||
resolveAgentProvisioningPolicy,
|
||||
TASK_PRIORITIES,
|
||||
resolveSecretAccessPolicy,
|
||||
type SecretScope,
|
||||
} from "@fusion/core";
|
||||
import {
|
||||
getGhErrorMessage,
|
||||
@@ -1521,7 +1522,7 @@ export default function kbExtension(pi: ExtensionAPI) {
|
||||
async execute(_toolCallId, params, _signal, _onUpdate, ctx) {
|
||||
const store = await getStore(ctx.cwd);
|
||||
const secretsStore = await store.getSecretsStore();
|
||||
const scopes = params.scope ? [params.scope] : ["project", "global"];
|
||||
const scopes: SecretScope[] = params.scope ? [params.scope] : ["project", "global"];
|
||||
|
||||
let record: import("@fusion/core").SecretRecord | null = null;
|
||||
let resolvedScope: "project" | "global" | null = null;
|
||||
|
||||
Reference in New Issue
Block a user