qlogicagent 2.10.1 → 2.10.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/cli.js +2 -2
- package/dist/index.js +2 -2
- package/dist/types/agent/agent.d.ts +1 -1
- package/dist/types/agent/tool-loop.d.ts +1 -1
- package/dist/types/agent/types.d.ts +1 -1
- package/dist/types/cli/handlers/turn-handler.d.ts +1 -1
- package/dist/types/cli/tool-bootstrap.d.ts +3 -3
- package/dist/types/index.d.ts +2 -2
- package/dist/types/llm/index.d.ts +1 -1
- package/dist/types/orchestration/tool-cascade.d.ts +2 -2
- package/dist/types/provider-core/adapters/aliyun-oss-file-upload-adapter.d.ts +44 -0
- package/dist/types/provider-core/adapters/gemini-file-upload-adapter.d.ts +26 -0
- package/dist/types/provider-core/adapters/hub-oss-file-upload-adapter.d.ts +29 -0
- package/dist/types/provider-core/adapters/index.d.ts +10 -0
- package/dist/types/provider-core/adapters/openai-file-upload-adapter.d.ts +38 -0
- package/dist/types/provider-core/adapters/volcengine-file-upload-adapter.d.ts +24 -0
- package/dist/types/provider-core/builtin-providers.d.ts +10 -0
- package/dist/types/provider-core/constants.d.ts +1 -0
- package/dist/types/provider-core/credentials.d.ts +1 -0
- package/dist/types/provider-core/debug-transport.d.ts +12 -0
- package/dist/types/provider-core/errors.d.ts +11 -0
- package/dist/types/provider-core/events.d.ts +48 -0
- package/dist/types/provider-core/file-upload-service.d.ts +68 -0
- package/dist/types/provider-core/gemini-schema-utils.d.ts +17 -0
- package/dist/types/provider-core/index.d.ts +37 -0
- package/dist/types/provider-core/llm-client.d.ts +43 -0
- package/dist/types/provider-core/media-client.d.ts +42 -0
- package/dist/types/provider-core/media-transport.d.ts +176 -0
- package/dist/types/provider-core/media.d.ts +2 -0
- package/dist/types/provider-core/model-catalog.d.ts +82 -0
- package/dist/types/provider-core/model-detection.d.ts +22 -0
- package/dist/types/provider-core/paths.d.ts +2 -0
- package/dist/types/provider-core/provider-def.d.ts +214 -0
- package/dist/types/provider-core/provider-registry.d.ts +59 -0
- package/dist/types/provider-core/provider-tool-api.d.ts +44 -0
- package/dist/types/provider-core/retry.d.ts +37 -0
- package/dist/types/provider-core/transport.d.ts +281 -0
- package/dist/types/provider-core/transports/anthropic-messages.d.ts +65 -0
- package/dist/types/provider-core/transports/gemini-cache-api.d.ts +86 -0
- package/dist/types/provider-core/transports/gemini-file-api.d.ts +90 -0
- package/dist/types/provider-core/transports/gemini-generatecontent.d.ts +56 -0
- package/dist/types/provider-core/transports/gemini-lyria-realtime.d.ts +117 -0
- package/dist/types/provider-core/transports/gemini-media.d.ts +53 -0
- package/dist/types/provider-core/transports/media-resolve.d.ts +50 -0
- package/dist/types/provider-core/transports/minimax-media.d.ts +55 -0
- package/dist/types/provider-core/transports/openai-chat.d.ts +81 -0
- package/dist/types/provider-core/transports/openai-media.d.ts +24 -0
- package/dist/types/provider-core/transports/openai-responses.d.ts +63 -0
- package/dist/types/provider-core/transports/qwen-media.d.ts +50 -0
- package/dist/types/provider-core/transports/realtime-transport.d.ts +183 -0
- package/dist/types/provider-core/transports/volcengine-grounding.d.ts +58 -0
- package/dist/types/provider-core/transports/volcengine-media.d.ts +93 -0
- package/dist/types/provider-core/transports/volcengine-responses.d.ts +64 -0
- package/dist/types/provider-core/transports/zhipu-media.d.ts +82 -0
- package/dist/types/provider-core/transports/zhipu-tool-api.d.ts +35 -0
- package/dist/types/provider-core/wire-types.d.ts +51 -0
- package/dist/types/runtime/execution/dream-agent.d.ts +1 -1
- package/dist/types/runtime/execution/forked-agent.d.ts +1 -1
- package/dist/types/runtime/hooks/context-compression.d.ts +1 -1
- package/dist/types/runtime/session/session-persistence.d.ts +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Volcengine Media Transport 鈥?Doubao Seedream (image), Seedance (video), 3D generation.
|
|
3
|
+
*
|
|
4
|
+
* API reference:
|
|
5
|
+
* Image: POST /v3/images/generations (sync)
|
|
6
|
+
* Video: POST /v3/contents/generations/tasks (async job)
|
|
7
|
+
* 3D: POST /v3/contents/generations/tasks (async job, same endpoint as video)
|
|
8
|
+
*
|
|
9
|
+
* Auth: Authorization: Bearer $ARK_API_KEY
|
|
10
|
+
* Docs: https://www.volcengine.com/docs/82379/1330310
|
|
11
|
+
* https://www.volcengine.com/docs/82379/1874993 (3D)
|
|
12
|
+
*/
|
|
13
|
+
import type { AsyncMediaTransport, MediaRequest, MediaResult, MediaType } from "../media-transport.js";
|
|
14
|
+
export interface VolcengineMediaConfig {
|
|
15
|
+
/** Base URL, e.g. "https://ark.cn-beijing.volces.com/api" */
|
|
16
|
+
baseUrl: string;
|
|
17
|
+
timeoutMs?: number;
|
|
18
|
+
}
|
|
19
|
+
export declare class VolcengineMediaTransport implements AsyncMediaTransport {
|
|
20
|
+
readonly supportedTypes: readonly MediaType[];
|
|
21
|
+
private baseUrl;
|
|
22
|
+
private timeoutMs;
|
|
23
|
+
constructor(config: VolcengineMediaConfig);
|
|
24
|
+
generate(request: MediaRequest, apiKey: string, signal?: AbortSignal): Promise<MediaResult>;
|
|
25
|
+
/**
|
|
26
|
+
* Check if this transport can handle a given operation.
|
|
27
|
+
* Video edit/merge/upscale are routed through the same video endpoint.
|
|
28
|
+
*/
|
|
29
|
+
canHandle(request: MediaRequest): boolean;
|
|
30
|
+
private generateImage;
|
|
31
|
+
/**
|
|
32
|
+
* Parse streaming image SSE 鈥?yields progressive image quality upgrades.
|
|
33
|
+
* Final event contains the full-quality image URL.
|
|
34
|
+
*/
|
|
35
|
+
private parseStreamingImage;
|
|
36
|
+
private generateVideo;
|
|
37
|
+
private generate3D;
|
|
38
|
+
/**
|
|
39
|
+
* Query a single video generation task by ID.
|
|
40
|
+
* GET /v3/contents/generations/tasks/{taskId}
|
|
41
|
+
*/
|
|
42
|
+
getTaskStatus(taskId: string, apiKey: string, signal?: AbortSignal): Promise<{
|
|
43
|
+
status: string;
|
|
44
|
+
task: Record<string, unknown>;
|
|
45
|
+
}>;
|
|
46
|
+
/**
|
|
47
|
+
* List video generation tasks with optional filters.
|
|
48
|
+
* GET /v3/contents/generations/tasks
|
|
49
|
+
*/
|
|
50
|
+
listVideoTasks(apiKey: string, options?: {
|
|
51
|
+
after?: string;
|
|
52
|
+
limit?: number;
|
|
53
|
+
status?: string;
|
|
54
|
+
}, signal?: AbortSignal): Promise<Record<string, unknown>>;
|
|
55
|
+
/**
|
|
56
|
+
* Cancel or delete a video generation task.
|
|
57
|
+
* DELETE /v3/contents/generations/tasks/{taskId}
|
|
58
|
+
*/
|
|
59
|
+
deleteVideoTask(taskId: string, apiKey: string, signal?: AbortSignal): Promise<void>;
|
|
60
|
+
/**
|
|
61
|
+
* Upload a file to Volcengine Files API for reuse in multimodal requests.
|
|
62
|
+
* POST /v3/files
|
|
63
|
+
*/
|
|
64
|
+
uploadFile(file: Blob | Buffer, apiKey: string, options?: {
|
|
65
|
+
purpose?: string;
|
|
66
|
+
filename?: string;
|
|
67
|
+
}, signal?: AbortSignal): Promise<{
|
|
68
|
+
id: string;
|
|
69
|
+
status: string;
|
|
70
|
+
}>;
|
|
71
|
+
/**
|
|
72
|
+
* Get file info by ID.
|
|
73
|
+
* GET /v3/files/{fileId}
|
|
74
|
+
*/
|
|
75
|
+
getFile(fileId: string, apiKey: string, signal?: AbortSignal): Promise<Record<string, unknown>>;
|
|
76
|
+
/**
|
|
77
|
+
* List uploaded files.
|
|
78
|
+
* GET /v3/files
|
|
79
|
+
*/
|
|
80
|
+
listFiles(apiKey: string, options?: {
|
|
81
|
+
after?: string;
|
|
82
|
+
limit?: number;
|
|
83
|
+
purpose?: string;
|
|
84
|
+
order?: "asc" | "desc";
|
|
85
|
+
}, signal?: AbortSignal): Promise<Record<string, unknown>>;
|
|
86
|
+
/**
|
|
87
|
+
* Delete a file.
|
|
88
|
+
* DELETE /v3/files/{fileId}
|
|
89
|
+
*/
|
|
90
|
+
deleteFile(fileId: string, apiKey: string, signal?: AbortSignal): Promise<void>;
|
|
91
|
+
private submitTask;
|
|
92
|
+
private pollTask;
|
|
93
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Volcengine Responses API TransportSSE streaming implementation.
|
|
3
|
+
*
|
|
4
|
+
* Implements the fire mountain ark Responses API (`/api/v3/responses`),
|
|
5
|
+
* which is the officially recommended primary path for Doubao LLM text generation
|
|
6
|
+
* (250615+ models: doubao-seed-2.0 series).
|
|
7
|
+
*
|
|
8
|
+
* Key differences from OpenAI Chat Completions:
|
|
9
|
+
* - Endpoint: POST {baseUrl}/v3/responses
|
|
10
|
+
* - Request body uses `input` (not `messages`), `instructions`, `thinking`, `reasoning`
|
|
11
|
+
* - SSE events: response.output_text.delta, response.reasoning_summary_text.delta,
|
|
12
|
+
* response.function_call_arguments.delta, response.completed, etc.
|
|
13
|
+
* - Tool calling: function_call / function_call_output with call_id
|
|
14
|
+
* - Context persistence: previous_response_id for server-side session continuation
|
|
15
|
+
* - Deep thinking: thinking.type (enabled/disabled/auto) + reasoning.effort
|
|
16
|
+
*
|
|
17
|
+
* Docs: https://www.volcengine.com/docs/82379/1399008
|
|
18
|
+
*/
|
|
19
|
+
import type { LLMChunk, LLMRequest, LLMTransport } from "../transport.js";
|
|
20
|
+
import type { ProviderQuirks } from "../provider-def.js";
|
|
21
|
+
import type { FileUploadAdapter } from "../file-upload-service.js";
|
|
22
|
+
export interface VolcengineResponsesTransportConfig {
|
|
23
|
+
baseUrl: string;
|
|
24
|
+
extraHeaders?: Record<string, string>;
|
|
25
|
+
timeoutMs?: number;
|
|
26
|
+
quirks?: ProviderQuirks;
|
|
27
|
+
/** File upload adapter for resolving local media URLs via upload instead of base64. */
|
|
28
|
+
fileUploadAdapter?: FileUploadAdapter;
|
|
29
|
+
}
|
|
30
|
+
export declare class VolcengineResponsesTransport implements LLMTransport {
|
|
31
|
+
private baseUrl;
|
|
32
|
+
private extraHeaders;
|
|
33
|
+
private timeoutMs;
|
|
34
|
+
private quirks;
|
|
35
|
+
private fileUploadAdapter?;
|
|
36
|
+
constructor(config: VolcengineResponsesTransportConfig);
|
|
37
|
+
stream(request: LLMRequest, apiKey: string, signal?: AbortSignal): AsyncGenerator<LLMChunk>;
|
|
38
|
+
/**
|
|
39
|
+
* Resolve known Volcengine Responses API incompatibilities:
|
|
40
|
+
* - instructions + caching 閳?drop caching (鎼?0.7)
|
|
41
|
+
* - caching + json_schema 閳?downgrade to json_object (鎼?0.10)
|
|
42
|
+
* - caching + builtin_web_search/image_process 閳?drop those builtin tools
|
|
43
|
+
* Returns a shallow copy with fields adjusted; never mutates the original.
|
|
44
|
+
*/
|
|
45
|
+
private resolveConstraints;
|
|
46
|
+
private buildRequestBody;
|
|
47
|
+
private fetchAndStream;
|
|
48
|
+
private handleNonStreamingResponse;
|
|
49
|
+
/**
|
|
50
|
+
* Parse Volcengine Responses API SSE stream.
|
|
51
|
+
*
|
|
52
|
+
* Event format: "event: <type>\ndata: <json>\n\n"
|
|
53
|
+
* Key events:
|
|
54
|
+
* - response.output_text.delta 閳?text content delta
|
|
55
|
+
* - response.reasoning_summary_text.delta 閳?thinking/reasoning text
|
|
56
|
+
* - response.function_call_arguments.delta 閳?tool call arguments streaming
|
|
57
|
+
* - response.output_item.added 閳?new output item started
|
|
58
|
+
* - response.output_item.done 閳?output item completed
|
|
59
|
+
* - response.completed 閳?full response complete with usage
|
|
60
|
+
* - response.failed 閳?error
|
|
61
|
+
*/
|
|
62
|
+
private parseSSEStream;
|
|
63
|
+
private processEvent;
|
|
64
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zhipu (GLM) Media Transport 鈥?CogView (image), CogVideoX (video), TTS, STT, Embedding.
|
|
3
|
+
*
|
|
4
|
+
* API reference (docs.bigmodel.cn):
|
|
5
|
+
* Image sync: POST /images/generations (CogView-4, cogview-3-flash)
|
|
6
|
+
* Image async: POST /async/images/generations (glm-image)
|
|
7
|
+
* Video async: POST /videos/generations (CogVideoX)
|
|
8
|
+
* TTS sync: POST /audio/speech (glm-tts, returns audio bytes)
|
|
9
|
+
* STT sync: POST /audio/transcriptions (glm-asr, multipart/form-data)
|
|
10
|
+
* Embedding: POST /embeddings (embedding-3/2)
|
|
11
|
+
* Async poll: GET /async-result/{id} (unified poll for all async tasks)
|
|
12
|
+
*
|
|
13
|
+
* Base URL: https://open.bigmodel.cn/api/paas/v4
|
|
14
|
+
* Auth: Authorization: Bearer $ZHIPU_API_KEY
|
|
15
|
+
*/
|
|
16
|
+
import type { AsyncMediaTransport, MediaRequest, MediaResult, MediaType } from "../media-transport.js";
|
|
17
|
+
export interface ZhipuMediaConfig {
|
|
18
|
+
/** Base URL, e.g. "https://open.bigmodel.cn/api/paas/v4" */
|
|
19
|
+
baseUrl: string;
|
|
20
|
+
timeoutMs?: number;
|
|
21
|
+
}
|
|
22
|
+
export declare class ZhipuMediaTransport implements AsyncMediaTransport {
|
|
23
|
+
readonly supportedTypes: readonly MediaType[];
|
|
24
|
+
private baseUrl;
|
|
25
|
+
private timeoutMs;
|
|
26
|
+
constructor(config: ZhipuMediaConfig);
|
|
27
|
+
generate(request: MediaRequest, apiKey: string, signal?: AbortSignal): Promise<MediaResult>;
|
|
28
|
+
private generateImage;
|
|
29
|
+
/** CogView-4 / cogview-3-flash 鈥?sync, returns URL directly */
|
|
30
|
+
private generateImageSync;
|
|
31
|
+
/** glm-image 鈥?async submit + poll */
|
|
32
|
+
private generateImageAsync;
|
|
33
|
+
private generateVideo;
|
|
34
|
+
private generateTTS;
|
|
35
|
+
private generateSTT;
|
|
36
|
+
private generateEmbedding;
|
|
37
|
+
private generateVoiceClone;
|
|
38
|
+
private generateDocumentParsing;
|
|
39
|
+
private generateRerank;
|
|
40
|
+
private postJSON;
|
|
41
|
+
/**
|
|
42
|
+
* Unified async result polling 鈥?GET /async-result/{id}
|
|
43
|
+
* Returns the result object when task_status === "SUCCESS".
|
|
44
|
+
* Throws on "FAIL" or timeout.
|
|
45
|
+
*/
|
|
46
|
+
private pollAsyncResult;
|
|
47
|
+
/**
|
|
48
|
+
* Query a single task status 鈥?GET /async-result/{id}
|
|
49
|
+
* Zhipu uses a unified async result endpoint for all task types.
|
|
50
|
+
*/
|
|
51
|
+
getTaskStatus(taskId: string, apiKey: string, signal?: AbortSignal): Promise<{
|
|
52
|
+
status: string;
|
|
53
|
+
task: Record<string, unknown>;
|
|
54
|
+
}>;
|
|
55
|
+
/**
|
|
56
|
+
* List recent tasks 鈥?Zhipu does not have a native list endpoint.
|
|
57
|
+
* Returns empty since individual task query via getTaskStatus() is the primary API.
|
|
58
|
+
*/
|
|
59
|
+
listVideoTasks(_apiKey: string, _options?: {
|
|
60
|
+
after?: string;
|
|
61
|
+
limit?: number;
|
|
62
|
+
status?: string;
|
|
63
|
+
}, _signal?: AbortSignal): Promise<Record<string, unknown>>;
|
|
64
|
+
/**
|
|
65
|
+
* Cancel/delete is not supported by Zhipu's async API 鈥?throws informative error.
|
|
66
|
+
* The /async-result/{id} endpoint is read-only.
|
|
67
|
+
*/
|
|
68
|
+
deleteVideoTask(_taskId: string, _apiKey: string, _signal?: AbortSignal): Promise<void>;
|
|
69
|
+
/**
|
|
70
|
+
* List cloned voices 鈥?GET /voice/
|
|
71
|
+
* Returns all voice clones for the current user.
|
|
72
|
+
*/
|
|
73
|
+
listVoices(apiKey: string, signal?: AbortSignal): Promise<Array<{
|
|
74
|
+
voice_id: string;
|
|
75
|
+
voice_name: string;
|
|
76
|
+
status: string;
|
|
77
|
+
}>>;
|
|
78
|
+
/**
|
|
79
|
+
* Delete a cloned voice 鈥?DELETE /voice/{voice_id}
|
|
80
|
+
*/
|
|
81
|
+
deleteVoice(voiceId: string, apiKey: string, signal?: AbortSignal): Promise<void>;
|
|
82
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ZhipuToolAPI 鈥?Zhipu-specific utility endpoints.
|
|
3
|
+
*
|
|
4
|
+
* Implements ProviderToolAPI for Zhipu GLM platform independent APIs:
|
|
5
|
+
* C1: Web Search 鈥?POST /tools/web-search
|
|
6
|
+
* C2: Reader 鈥?POST /tools/reader (extract web page content)
|
|
7
|
+
* C3: Tokenizer 鈥?POST /tokenizer
|
|
8
|
+
* C4: Moderations 鈥?POST /moderations
|
|
9
|
+
*
|
|
10
|
+
* Base URL: https://open.bigmodel.cn/api/paas/v4
|
|
11
|
+
* Auth: Authorization: Bearer $ZHIPU_API_KEY
|
|
12
|
+
*
|
|
13
|
+
* C5 (File Parser) is handled by document_parsing media handler.
|
|
14
|
+
* C6 (Realtime API) requires WebSocket 鈥?out of scope for this interface.
|
|
15
|
+
*/
|
|
16
|
+
import type { ProviderToolAPI, ProviderToolCapability, WebSearchResult, ReaderResult, TokenizerResult, ModerationResult } from "../provider-tool-api.js";
|
|
17
|
+
export interface ZhipuToolAPIConfig {
|
|
18
|
+
baseUrl: string;
|
|
19
|
+
apiKey: string;
|
|
20
|
+
timeoutMs?: number;
|
|
21
|
+
}
|
|
22
|
+
export declare class ZhipuToolAPI implements ProviderToolAPI {
|
|
23
|
+
readonly capabilities: readonly ProviderToolCapability[];
|
|
24
|
+
private baseUrl;
|
|
25
|
+
private apiKey;
|
|
26
|
+
private timeoutMs;
|
|
27
|
+
constructor(config: ZhipuToolAPIConfig);
|
|
28
|
+
webSearch(query: string, options?: {
|
|
29
|
+
maxResults?: number;
|
|
30
|
+
}): Promise<WebSearchResult[]>;
|
|
31
|
+
reader(pageUrl: string): Promise<ReaderResult>;
|
|
32
|
+
tokenize(text: string, model: string): Promise<TokenizerResult>;
|
|
33
|
+
moderate(text: string): Promise<ModerationResult>;
|
|
34
|
+
private postJSON;
|
|
35
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export type ChatMessageRole = "system" | "user" | "assistant" | "tool";
|
|
2
|
+
export interface ThinkingBlock {
|
|
3
|
+
thinking: string;
|
|
4
|
+
signature: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ToolCallMessage {
|
|
7
|
+
id: string;
|
|
8
|
+
type: "function";
|
|
9
|
+
function: {
|
|
10
|
+
name: string;
|
|
11
|
+
arguments: string;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export interface ChatMessage {
|
|
15
|
+
role: ChatMessageRole;
|
|
16
|
+
content: string | null;
|
|
17
|
+
tool_calls?: ToolCallMessage[];
|
|
18
|
+
tool_call_id?: string;
|
|
19
|
+
name?: string;
|
|
20
|
+
thinkingBlocks?: ThinkingBlock[];
|
|
21
|
+
imageUrls?: string[];
|
|
22
|
+
imageDetail?: "auto" | "low" | "high" | "xhigh";
|
|
23
|
+
imagePixelLimit?: {
|
|
24
|
+
minPixels?: number;
|
|
25
|
+
maxPixels?: number;
|
|
26
|
+
};
|
|
27
|
+
videoUrls?: string[];
|
|
28
|
+
videoFps?: number;
|
|
29
|
+
audioFormat?: "mp3" | "wav" | "aac" | "m4a";
|
|
30
|
+
audioUrls?: string[];
|
|
31
|
+
fileIds?: Array<{
|
|
32
|
+
id: string;
|
|
33
|
+
mimeType?: string;
|
|
34
|
+
size?: number;
|
|
35
|
+
}>;
|
|
36
|
+
}
|
|
37
|
+
export interface ToolDefinition {
|
|
38
|
+
type: "function";
|
|
39
|
+
function: {
|
|
40
|
+
name: string;
|
|
41
|
+
description: string;
|
|
42
|
+
parameters?: Record<string, unknown>;
|
|
43
|
+
};
|
|
44
|
+
meta?: {
|
|
45
|
+
serialOnly?: boolean;
|
|
46
|
+
parallelSafe?: boolean;
|
|
47
|
+
requiresApproval?: boolean;
|
|
48
|
+
isReadOnly?: boolean;
|
|
49
|
+
isDangerous?: boolean;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import type { DreamTaskState, DreamTurn } from "../../orchestration/subagent/task-types.js";
|
|
14
14
|
import type { ToolDefinition, ToolInvoker, AgentLogger, HookRegistry } from "../../agent/types.js";
|
|
15
|
-
import type { LLMTransport } from "
|
|
15
|
+
import type { LLMTransport } from "../../provider-core/index.js";
|
|
16
16
|
export interface DreamTriggerConfig {
|
|
17
17
|
/** Minimum hours since last consolidation. Default: 24. */
|
|
18
18
|
minHours: number;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* Reference: claude-code src/utils/forkedAgent.ts
|
|
19
19
|
*/
|
|
20
20
|
import type { AgentLogger, ChatMessage, ToolDefinition, ToolInvoker, TokenUsage, TurnEvent, HookRegistry } from "../../agent/types.js";
|
|
21
|
-
import type { LLMTransport } from "
|
|
21
|
+
import type { LLMTransport } from "../../provider-core/index.js";
|
|
22
22
|
import type { AgentProgress } from "./progress-tracker.js";
|
|
23
23
|
/**
|
|
24
24
|
* Tool permission check function — CC canUseTool parity.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ContextEngineRegistry, type CompressibleMessage, type CompressionResult, type CompressionStrategy, type AsyncCompressionStrategy, type SummarizeFn } from "../../orchestration/index.js";
|
|
2
2
|
import type { HookRegistry } from "./hook-registry.js";
|
|
3
3
|
import type { RuntimeLogger } from "./hook-registry.js";
|
|
4
|
-
import type { LLMTransport } from "
|
|
4
|
+
import type { LLMTransport } from "../../provider-core/index.js";
|
|
5
5
|
/** Rough token estimate: ~4 chars per token for mixed CJK/English. */
|
|
6
6
|
export declare function estimateTokens(msg: CompressibleMessage): number;
|
|
7
7
|
/** Estimate total tokens for a message array. */
|
|
@@ -107,7 +107,7 @@ export declare function deleteSession(sessionId: string, projectRoot: string): P
|
|
|
107
107
|
*/
|
|
108
108
|
export declare function pruneOldSessions(projectRoot: string): Promise<number>;
|
|
109
109
|
export interface TaskSummaryDeps {
|
|
110
|
-
transport: import("
|
|
110
|
+
transport: import("../../provider-core/index.js").LLMTransport;
|
|
111
111
|
apiKey: string;
|
|
112
112
|
model: string;
|
|
113
113
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qlogicagent",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.3",
|
|
4
4
|
"description": "XiaozhiClaw Agent CLI — subprocess architecture (JSON-RPC over stdio)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -62,7 +62,6 @@
|
|
|
62
62
|
"node": ">=22.0.0"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@qlogic/provider-core": "workspace:*",
|
|
66
65
|
"better-sqlite3": "^12.10.0",
|
|
67
66
|
"dotenv": "^17.3.1",
|
|
68
67
|
"nanoid": "^5.1.5",
|
|
@@ -75,6 +74,7 @@
|
|
|
75
74
|
"devDependencies": {
|
|
76
75
|
"@types/better-sqlite3": "^7.6.13",
|
|
77
76
|
"@types/node": "^22.15.0",
|
|
77
|
+
"@qlogic/provider-core": "workspace:*",
|
|
78
78
|
"esbuild": "^0.28.0",
|
|
79
79
|
"tsx": "^4.19.0",
|
|
80
80
|
"typescript": "^5.9.0",
|