agent-afk 5.321.9 → 5.321.10
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/openai-compatible/query/turn-driver.emit-terminal.d.ts +6 -0
- package/dist/agent/types/config-types.d.ts +1 -0
- package/dist/agent/types/sdk-types.d.ts +2 -0
- package/dist/cli/commands/chat.action-body.d.ts +2 -0
- package/dist/cli/commands/interactive/shared.d.ts +3 -1
- package/dist/cli.mjs +389 -389
- package/dist/index.mjs +197 -197
- package/dist/remote/hosts.d.ts +2 -0
- package/dist/remote/remote-run.d.ts +2 -0
- package/dist/remote/remote-script.d.ts +2 -0
- package/dist/telegram/bg-result-notifier.d.ts +2 -0
- package/dist/telegram/handlers/message.d.ts +1 -0
- package/dist/telegram/handlers/message.wake-idle.d.ts +13 -0
- package/dist/telegram/session-context.d.ts +1 -0
- package/dist/telegram/session-manager.d.ts +1 -0
- package/dist/telegram/session-manager.session-builder.d.ts +1 -0
- package/dist/telegram/wire-telegram-executors.d.ts +1 -0
- package/dist/telegram.mjs +211 -211
- package/package.json +1 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ProviderEvent, ProviderUsage } from '../../../provider.js';
|
|
2
|
+
import { TOOL_USE_LOOP_CAPPED } from '../../shared/tool-loop-cap.js';
|
|
3
|
+
import { SOFT_DEADLINE_WIND_DOWN } from '../../shared/soft-deadline.js';
|
|
4
|
+
import { CONTEXT_PRESSURE_WIND_DOWN } from '../../shared/context-pressure.js';
|
|
5
|
+
import type { TurnDriverContext } from './turn-driver.js';
|
|
6
|
+
export declare function emitTurnTerminal(ctx: TurnDriverContext, finalAssistantText: string, droppedToolNames: string[], accumulatedUsage: ProviderUsage, windDownReason: typeof TOOL_USE_LOOP_CAPPED | typeof SOFT_DEADLINE_WIND_DOWN | typeof CONTEXT_PRESSURE_WIND_DOWN | null, turnStartTime: number): AsyncGenerator<ProviderEvent>;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export type EffortLevel = 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
2
2
|
export type PermissionMode = 'default' | 'acceptEdits' | 'bypassPermissions' | 'plan' | 'dontAsk' | 'auto' | 'autonomous';
|
|
3
|
+
export declare const VALID_PERMISSION_MODES: ReadonlySet<string>;
|
|
4
|
+
export declare function isValidPermissionMode(value: string): value is PermissionMode;
|
|
3
5
|
export type SettingSource = 'user' | 'project' | 'local';
|
|
4
6
|
export type ApiKeySource = 'user' | 'project' | 'org' | 'temporary' | 'oauth';
|
|
5
7
|
export type SDKStatus = 'compacting' | 'requesting' | null;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { AgentSession } from '../../agent/session.js';
|
|
2
2
|
import type { AgentModelInput } from '../../agent/types.js';
|
|
3
|
+
import type { PermissionMode } from '../../agent/types/sdk-types.js';
|
|
3
4
|
import { parseThinking, parseEffort } from '../shared-helpers.js';
|
|
4
5
|
import { setupWorktree } from './interactive/worktree.js';
|
|
5
6
|
import { resolveResumeTarget, resumeConfigFor } from '../resume-session.js';
|
|
@@ -30,6 +31,7 @@ export interface ChatActionOptions {
|
|
|
30
31
|
sessionId?: string;
|
|
31
32
|
post?: string;
|
|
32
33
|
postPr?: string;
|
|
34
|
+
permissionMode?: PermissionMode;
|
|
33
35
|
dangerouslySkipPermissions?: boolean;
|
|
34
36
|
}
|
|
35
37
|
export declare function resolvePostTargets(post: string | undefined): PostTarget[];
|
|
@@ -6,6 +6,7 @@ import type { SessionRef } from '../../../agent/session-ref.js';
|
|
|
6
6
|
import type { MemoryStore } from '../../../agent/memory/index.js';
|
|
7
7
|
import type { StateStore } from '../../../agent/state/state-store.js';
|
|
8
8
|
import type { AgentModelInput } from '../../../agent/types.js';
|
|
9
|
+
import type { PermissionMode } from '../../../agent/types/sdk-types.js';
|
|
9
10
|
import type { BackgroundAgentRegistry } from '../../../agent/background-registry.js';
|
|
10
11
|
import type { BackgroundSummarizer } from '../../../agent/background-summarizer.js';
|
|
11
12
|
import type { SubagentControl } from '../../../agent/tools/subagent-executor.js';
|
|
@@ -36,6 +37,7 @@ export interface CliOptions {
|
|
|
36
37
|
continue?: boolean;
|
|
37
38
|
debug?: boolean;
|
|
38
39
|
dangerouslySkipPermissions?: boolean;
|
|
40
|
+
permissionMode?: PermissionMode;
|
|
39
41
|
worktree?: string | true;
|
|
40
42
|
worktreeAutoname?: boolean;
|
|
41
43
|
worktreeBase?: string;
|
|
@@ -169,5 +171,5 @@ export declare function formatStatusFields(stats: SessionStats, sampler?: Contex
|
|
|
169
171
|
contextLimit: number;
|
|
170
172
|
contextUsedTokens: number | undefined;
|
|
171
173
|
contextSparkline: string | undefined;
|
|
172
|
-
permissionMode:
|
|
174
|
+
permissionMode: PermissionMode;
|
|
173
175
|
};
|