agent-afk 5.169.2 → 5.169.3
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.
- package/dist/agent/providers/anthropic-direct/provider-grants.d.ts +0 -1
- package/dist/agent/providers/openai-compatible/index.d.ts +1 -1
- package/dist/agent/tools/dispatcher.d.ts +3 -3
- package/dist/agent/tools/grant-manager.d.ts +1 -0
- package/dist/cli.mjs +7 -7
- package/dist/index.mjs +6 -6
- package/dist/telegram.mjs +6 -6
- package/package.json +1 -1
|
@@ -2,7 +2,6 @@ import { PathGrantManager } from '../../tools/grant-manager.js';
|
|
|
2
2
|
export declare class ProviderGrantState {
|
|
3
3
|
private _readRoots;
|
|
4
4
|
private _writeRoots;
|
|
5
|
-
private _initialResolveBase;
|
|
6
5
|
private _currentCwd;
|
|
7
6
|
private _permissionMode;
|
|
8
7
|
readonly manager: PathGrantManager;
|
|
@@ -36,7 +36,7 @@ export declare class OpenAICompatibleProvider implements ModelProvider {
|
|
|
36
36
|
private _sharedReadRoots;
|
|
37
37
|
private _sharedWriteRoots;
|
|
38
38
|
private _currentPermissionMode;
|
|
39
|
-
private
|
|
39
|
+
private _sharedCurrentCwd;
|
|
40
40
|
private _presenceSessionId;
|
|
41
41
|
private _mintedSessionId;
|
|
42
42
|
constructor(opts?: OpenAICompatibleProviderOptions);
|
|
@@ -70,9 +70,9 @@ export declare class SessionToolDispatcher implements ToolDispatcher {
|
|
|
70
70
|
constructor(opts: SessionToolDispatcherOptions);
|
|
71
71
|
private get handlerContext();
|
|
72
72
|
private callHandlerContext;
|
|
73
|
-
addReadRoot(absPath: string, source?: 'slash' | 'tool'): void;
|
|
74
|
-
addWriteRoot(absPath: string, source?: 'slash' | 'tool'): void;
|
|
75
|
-
revokeRoot(absPath: string, source?: 'slash' | 'tool'): void;
|
|
73
|
+
addReadRoot(absPath: string, source?: 'slash' | 'tool', sessionId?: string): void;
|
|
74
|
+
addWriteRoot(absPath: string, source?: 'slash' | 'tool', sessionId?: string): void;
|
|
75
|
+
revokeRoot(absPath: string, source?: 'slash' | 'tool', sessionId?: string): void;
|
|
76
76
|
getGrants(): GrantSnapshot;
|
|
77
77
|
setAllowAll(allow: boolean): void;
|
|
78
78
|
setResolveBase(newCwd: string): void;
|
|
@@ -11,6 +11,7 @@ export interface PathGrantManagerHooks {
|
|
|
11
11
|
getWriteRoots(): string[] | undefined;
|
|
12
12
|
ensureInitialized?(): void;
|
|
13
13
|
getProtectedRoot(): string | undefined;
|
|
14
|
+
getDisplayResolveBase?(): string | undefined;
|
|
14
15
|
getAllowAll(): boolean;
|
|
15
16
|
getDefaultSessionId?(): string | undefined;
|
|
16
17
|
}
|