qlogicagent 2.23.5 → 2.23.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -11,6 +11,8 @@ export interface PermissionCheckerDeps {
|
|
|
11
11
|
hookRegistry: HookRegistry;
|
|
12
12
|
/** Returns the current workspace root for operation classification. */
|
|
13
13
|
getWorkspaceRoot(): string;
|
|
14
|
+
/** Host-owned, session-scoped roots that read-only tools may consume directly. */
|
|
15
|
+
getTrustedReadRoots?: () => readonly string[];
|
|
14
16
|
/**
|
|
15
17
|
* Callback to send an approval request to the host (Gateway/Electron).
|
|
16
18
|
* Must return a promise that resolves when the user responds.
|
|
@@ -63,6 +65,7 @@ export declare class PermissionChecker {
|
|
|
63
65
|
private readonly ruleEngine;
|
|
64
66
|
private readonly hookRegistry;
|
|
65
67
|
private readonly getWorkspaceRoot;
|
|
68
|
+
private readonly getTrustedReadRoots;
|
|
66
69
|
private readonly onRequestApproval;
|
|
67
70
|
private readonly onDenied;
|
|
68
71
|
private readonly classifierLLMCall;
|
|
@@ -24,6 +24,8 @@ export interface OperationClassification {
|
|
|
24
24
|
}
|
|
25
25
|
export interface ClassifyContext {
|
|
26
26
|
workspaceRoot: string;
|
|
27
|
+
/** Host-owned, session-scoped roots that read-only tools may consume without a user prompt. */
|
|
28
|
+
trustedReadRoots?: readonly string[];
|
|
27
29
|
}
|
|
28
30
|
/**
|
|
29
31
|
* Canonical set of shell-command tool names. This is the single source of truth,
|