@zqagent/core 0.2.5 → 0.2.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/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { E as EngineHook, C as CompactionStartInfo, a as CompactionDoneInfo, b as EventType, c as EngineErrorInfo, T as TurnEngine, P as ProviderClient, M as Mode } from './explore-Dj1j_GyN.cjs';
2
- export { A as ApprovalOutcome, d as Approver, e as CompactionTrigger, D as Decision, O as OpenAIProvider, f as PermissionEngine, g as PermissionRequest, h as TurnEngineOpts, W as WsEvent, r as registerExploreTool } from './explore-Dj1j_GyN.cjs';
1
+ import { E as EngineHook, C as CompactionStartInfo, a as CompactionDoneInfo, b as EventType, c as EngineErrorInfo, T as TurnEngine, P as ProviderClient, M as Mode } from './explore-COqHKDoK.cjs';
2
+ export { A as ApprovalOutcome, d as Approver, e as CompactionTrigger, D as Decision, O as OpenAIProvider, f as PermissionEngine, g as PermissionRequest, h as TurnEngineOpts, W as WsEvent, r as registerExploreTool } from './explore-COqHKDoK.cjs';
3
3
  import { a as TokenUsage, M as Message, T as ToolRegistry, R as ReasoningEffort } from './ToolRegistry-C3pTFiaJ.cjs';
4
4
  export { A as AssistantTurn, d as RiskClass, S as StreamChunk, e as ToolCall, b as ToolMetadata, c as ToolSchema, f as ToolSpec } from './ToolRegistry-C3pTFiaJ.cjs';
5
5
  export { registerFileTools, registerReadOnlyFileTools } from './tools/files.cjs';
@@ -730,8 +730,18 @@ interface CreateEngineOpts {
730
730
  contextWindow?: number;
731
731
  /** 压缩触发阈值比例(占窗口比例,默认 0.8) */
732
732
  thresholdPct?: number;
733
+ /**
734
+ * 软阈值比例(占窗口比例):达到它只淘汰旧工具结果,不调用 LLM。
735
+ * 缺省为硬阈值的 75%(即默认 60% 窗口)。
736
+ */
737
+ softThresholdPct?: number;
733
738
  /** 压缩触发阈值绝对上限(token 数;缺省不限制) */
734
739
  capTokens?: number | null;
740
+ /**
741
+ * 超预算工具结果的落盘目录(可选)。
742
+ * 缺省为状态目录下的 `tool-results`;Server 建议指向租户/会话目录。
743
+ */
744
+ toolResultDir?: string;
735
745
  /** LLM 请求日志根目录(按日期分目录),不传则不记录 */
736
746
  logDir?: string;
737
747
  }
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { E as EngineHook, C as CompactionStartInfo, a as CompactionDoneInfo, b as EventType, c as EngineErrorInfo, T as TurnEngine, P as ProviderClient, M as Mode } from './explore-D4lCKXbA.js';
2
- export { A as ApprovalOutcome, d as Approver, e as CompactionTrigger, D as Decision, O as OpenAIProvider, f as PermissionEngine, g as PermissionRequest, h as TurnEngineOpts, W as WsEvent, r as registerExploreTool } from './explore-D4lCKXbA.js';
1
+ import { E as EngineHook, C as CompactionStartInfo, a as CompactionDoneInfo, b as EventType, c as EngineErrorInfo, T as TurnEngine, P as ProviderClient, M as Mode } from './explore-B_bIPzmB.js';
2
+ export { A as ApprovalOutcome, d as Approver, e as CompactionTrigger, D as Decision, O as OpenAIProvider, f as PermissionEngine, g as PermissionRequest, h as TurnEngineOpts, W as WsEvent, r as registerExploreTool } from './explore-B_bIPzmB.js';
3
3
  import { a as TokenUsage, M as Message, T as ToolRegistry, R as ReasoningEffort } from './ToolRegistry-C3pTFiaJ.js';
4
4
  export { A as AssistantTurn, d as RiskClass, S as StreamChunk, e as ToolCall, b as ToolMetadata, c as ToolSchema, f as ToolSpec } from './ToolRegistry-C3pTFiaJ.js';
5
5
  export { registerFileTools, registerReadOnlyFileTools } from './tools/files.js';
@@ -730,8 +730,18 @@ interface CreateEngineOpts {
730
730
  contextWindow?: number;
731
731
  /** 压缩触发阈值比例(占窗口比例,默认 0.8) */
732
732
  thresholdPct?: number;
733
+ /**
734
+ * 软阈值比例(占窗口比例):达到它只淘汰旧工具结果,不调用 LLM。
735
+ * 缺省为硬阈值的 75%(即默认 60% 窗口)。
736
+ */
737
+ softThresholdPct?: number;
733
738
  /** 压缩触发阈值绝对上限(token 数;缺省不限制) */
734
739
  capTokens?: number | null;
740
+ /**
741
+ * 超预算工具结果的落盘目录(可选)。
742
+ * 缺省为状态目录下的 `tool-results`;Server 建议指向租户/会话目录。
743
+ */
744
+ toolResultDir?: string;
735
745
  /** LLM 请求日志根目录(按日期分目录),不传则不记录 */
736
746
  logDir?: string;
737
747
  }