agent-afk 5.320.4 → 5.320.5
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/query-system.d.ts +4 -0
- package/dist/agent/workspace/index.d.ts +1 -1
- package/dist/agent/workspace/workspace-preamble.d.ts +4 -0
- package/dist/cli.mjs +387 -384
- package/dist/index.mjs +193 -190
- package/dist/telegram.mjs +204 -201
- package/package.json +1 -1
|
@@ -5,6 +5,10 @@ export declare function splitAtEnvironmentBoundary(assembled: string): {
|
|
|
5
5
|
stablePrefix: string;
|
|
6
6
|
volatileTail: string;
|
|
7
7
|
} | null;
|
|
8
|
+
export declare function splitAtWorkspacePreamble(stable: string): {
|
|
9
|
+
sharedHead: string;
|
|
10
|
+
preambleTail: string;
|
|
11
|
+
} | null;
|
|
8
12
|
export declare function composeQuerySystem(options: {
|
|
9
13
|
state: SessionState;
|
|
10
14
|
systemPrefix: ContentBlockParam[] | null;
|
|
@@ -4,4 +4,4 @@ export { workspacePublishTool, workspaceQueryTool, workspaceSubscribeTool, works
|
|
|
4
4
|
export { WORKSPACE_DELIVERY_RING_CAPACITY, WORKSPACE_DELIVERY_MAX_BYTES, } from './workspace-subscription-constants.js';
|
|
5
5
|
export type { WorkspaceSubscription } from './workspace-subscription.js';
|
|
6
6
|
export { notifySubscribers, formatWorkspaceDeliveryEnvelope, generateSubscriptionId, } from './workspace-subscription.js';
|
|
7
|
-
export { renderWorkspacePreamble, injectWorkspacePreamble, } from './workspace-preamble.js';
|
|
7
|
+
export { renderWorkspacePreamble, injectWorkspacePreamble, WORKSPACE_PREAMBLE_MARKERS, } from './workspace-preamble.js';
|
|
@@ -2,3 +2,7 @@ import type { AgentConfig } from '../types/config-types.js';
|
|
|
2
2
|
import type { WorkspaceEntry } from './workspace-store.js';
|
|
3
3
|
export declare function renderWorkspacePreamble(entries: WorkspaceEntry[]): string;
|
|
4
4
|
export declare function injectWorkspacePreamble(config: AgentConfig, entries: WorkspaceEntry[]): AgentConfig;
|
|
5
|
+
export declare const WORKSPACE_CONTEXT_HEADER = "# Workspace context (shared findings from sibling agents)";
|
|
6
|
+
export declare const WORKSPACE_COLD_START_HEADER = "# Workspace (shared agent scratchpad)";
|
|
7
|
+
export declare const WORKSPACE_TRUNCATED_NOTICE = "[Workspace preamble truncated: too many entries. Earlier entries omitted.]";
|
|
8
|
+
export declare const WORKSPACE_PREAMBLE_MARKERS: readonly string[];
|