agent-afk 5.321.5 → 5.321.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.
- package/dist/agent/daemon/schedule-store.d.ts +6 -0
- package/dist/agent/providers/anthropic-direct/query-options.d.ts +1 -0
- package/dist/agent/providers/anthropic-direct/query-runtime.d.ts +1 -0
- package/dist/agent/providers/anthropic-direct/query-system.d.ts +1 -0
- package/dist/agent/types/config-types.d.ts +1 -0
- package/dist/cli.mjs +384 -384
- package/dist/index.mjs +191 -191
- package/dist/telegram/session-manager.d.ts +2 -1
- package/dist/telegram/session-manager.session-builder.d.ts +2 -1
- package/dist/telegram.mjs +203 -203
- package/dist/whatif/cost.d.ts +1 -0
- package/dist/whatif/run.preflight.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IAgentSession, AgentConfig, AgentModelInput, ThinkingConfig, EffortLevel, ResponseMetadata } from '../agent/types.js';
|
|
1
|
+
import type { IAgentSession, AgentConfig, AgentModelInput, ThinkingConfig, EffortLevel, PermissionMode, ResponseMetadata } from '../agent/types.js';
|
|
2
2
|
import { type TelegramRoute } from './route.js';
|
|
3
3
|
import { type SessionRegistry } from '../agent/session/session-registry.js';
|
|
4
4
|
export type RouteTarget = TelegramRoute | number;
|
|
@@ -26,6 +26,7 @@ export interface SessionManagerOptions {
|
|
|
26
26
|
settingSources?: ('user' | 'project')[];
|
|
27
27
|
thinking?: ThinkingConfig;
|
|
28
28
|
effort?: EffortLevel;
|
|
29
|
+
permissionMode?: PermissionMode;
|
|
29
30
|
botCwd?: string;
|
|
30
31
|
createSession: (config: AgentConfig) => Promise<IAgentSession>;
|
|
31
32
|
idleSessionMs?: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IAgentSession, AgentConfig, AgentModelInput, ThinkingConfig, EffortLevel } from '../agent/types.js';
|
|
1
|
+
import type { IAgentSession, AgentConfig, AgentModelInput, ThinkingConfig, EffortLevel, PermissionMode } from '../agent/types.js';
|
|
2
2
|
import { type TelegramRoute } from './route.js';
|
|
3
3
|
import type { SessionData } from './session-manager.js';
|
|
4
4
|
export interface SessionBuilderOptions {
|
|
@@ -7,6 +7,7 @@ export interface SessionBuilderOptions {
|
|
|
7
7
|
thinking?: ThinkingConfig;
|
|
8
8
|
effort?: EffortLevel;
|
|
9
9
|
botCwd?: string;
|
|
10
|
+
permissionMode?: PermissionMode;
|
|
10
11
|
createSession: (config: AgentConfig) => Promise<IAgentSession>;
|
|
11
12
|
onResumptionOffer?: (route: TelegramRoute, text: string) => void | Promise<boolean>;
|
|
12
13
|
defaultModel: AgentModelInput;
|