@cicctencent/agent-core 0.1.13 → 0.1.14
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/cjs/a2a/client.d.ts +1 -1
- package/dist/cjs/a2a/client.d.ts.map +1 -1
- package/dist/cjs/a2a/client.js +0 -2
- package/dist/cjs/a2a/client.js.map +1 -1
- package/dist/cjs/a2a/index.d.ts +4 -4
- package/dist/cjs/a2a/runner.d.ts +3 -3
- package/dist/cjs/agent/engine.d.ts +4 -4
- package/dist/cjs/agent/history-manager.d.ts +2 -2
- package/dist/cjs/agent/llm-caller.d.ts +6 -6
- package/dist/cjs/agent/tool-executor.d.ts +7 -7
- package/dist/cjs/agent/types.d.ts +9 -9
- package/dist/cjs/context/collector.d.ts +1 -1
- package/dist/cjs/context/manager.d.ts +2 -2
- package/dist/cjs/context/types.d.ts +1 -1
- package/dist/cjs/hooks/types.d.ts +2 -2
- package/dist/cjs/index.d.ts +76 -76
- package/dist/cjs/llm/anthropic-provider.d.ts +1 -1
- package/dist/cjs/llm/factory.d.ts +1 -1
- package/dist/cjs/llm/ollama-provider.d.ts +2 -2
- package/dist/cjs/llm/openai-provider.d.ts +1 -1
- package/dist/cjs/llm/provider.d.ts +6 -6
- package/dist/cjs/llm/types.d.ts +2 -2
- package/dist/cjs/mcp/base-client.d.ts +2 -2
- package/dist/cjs/mcp/client.d.ts +2 -2
- package/dist/cjs/mcp/factory.d.ts +1 -1
- package/dist/cjs/mcp/http-client.d.ts +2 -2
- package/dist/cjs/mcp/stdio-client.d.ts +2 -2
- package/dist/cjs/mcp/types.d.ts +2 -2
- package/dist/cjs/memory/extractor.d.ts +2 -2
- package/dist/cjs/memory/persona.d.ts +2 -2
- package/dist/cjs/memory/pipeline.d.ts +4 -4
- package/dist/cjs/memory/recall.d.ts +1 -1
- package/dist/cjs/memory/scene.d.ts +1 -1
- package/dist/cjs/middleware/audit-log.d.ts +2 -2
- package/dist/cjs/middleware/timing.d.ts +2 -2
- package/dist/cjs/middleware/tool-guard.d.ts +2 -2
- package/dist/cjs/middleware/types.d.ts +1 -1
- package/dist/cjs/pool/engine-pool.d.ts +1 -1
- package/dist/cjs/runtime/run-registry.d.ts +1 -1
- package/dist/cjs/sandbox/types.d.ts +2 -2
- package/dist/cjs/security/guard.d.ts +1 -1
- package/dist/cjs/security/permission.d.ts +1 -1
- package/dist/cjs/skill/manager.d.ts +1 -1
- package/dist/cjs/skill/router.d.ts +2 -2
- package/dist/cjs/store/file-tool-result-store.d.ts +1 -1
- package/dist/cjs/tool/delegate.d.ts +2 -2
- package/dist/cjs/tool/registry.d.ts +1 -1
- package/dist/cjs/tool/types.d.ts +1 -1
- package/dist/cjs/utils/event-collector.d.ts +1 -1
- package/dist/cjs/utils/token-counter.d.ts +1 -1
- package/dist/esm/a2a/client.d.ts +1 -1
- package/dist/esm/a2a/client.d.ts.map +1 -1
- package/dist/esm/a2a/client.js +0 -2
- package/dist/esm/a2a/client.js.map +1 -1
- package/dist/esm/a2a/index.d.ts +4 -4
- package/dist/esm/a2a/runner.d.ts +3 -3
- package/dist/esm/agent/engine.d.ts +4 -4
- package/dist/esm/agent/history-manager.d.ts +2 -2
- package/dist/esm/agent/llm-caller.d.ts +6 -6
- package/dist/esm/agent/tool-executor.d.ts +7 -7
- package/dist/esm/agent/types.d.ts +9 -9
- package/dist/esm/context/collector.d.ts +1 -1
- package/dist/esm/context/manager.d.ts +2 -2
- package/dist/esm/context/types.d.ts +1 -1
- package/dist/esm/hooks/types.d.ts +2 -2
- package/dist/esm/index.d.ts +76 -76
- package/dist/esm/llm/anthropic-provider.d.ts +1 -1
- package/dist/esm/llm/factory.d.ts +1 -1
- package/dist/esm/llm/ollama-provider.d.ts +2 -2
- package/dist/esm/llm/openai-provider.d.ts +1 -1
- package/dist/esm/llm/provider.d.ts +6 -6
- package/dist/esm/llm/types.d.ts +2 -2
- package/dist/esm/mcp/base-client.d.ts +2 -2
- package/dist/esm/mcp/client.d.ts +2 -2
- package/dist/esm/mcp/factory.d.ts +1 -1
- package/dist/esm/mcp/http-client.d.ts +2 -2
- package/dist/esm/mcp/stdio-client.d.ts +2 -2
- package/dist/esm/mcp/types.d.ts +2 -2
- package/dist/esm/memory/extractor.d.ts +2 -2
- package/dist/esm/memory/persona.d.ts +2 -2
- package/dist/esm/memory/pipeline.d.ts +4 -4
- package/dist/esm/memory/recall.d.ts +1 -1
- package/dist/esm/memory/scene.d.ts +1 -1
- package/dist/esm/middleware/audit-log.d.ts +2 -2
- package/dist/esm/middleware/timing.d.ts +2 -2
- package/dist/esm/middleware/tool-guard.d.ts +2 -2
- package/dist/esm/middleware/types.d.ts +1 -1
- package/dist/esm/pool/engine-pool.d.ts +1 -1
- package/dist/esm/runtime/run-registry.d.ts +1 -1
- package/dist/esm/sandbox/types.d.ts +2 -2
- package/dist/esm/security/guard.d.ts +1 -1
- package/dist/esm/security/permission.d.ts +1 -1
- package/dist/esm/skill/manager.d.ts +1 -1
- package/dist/esm/skill/router.d.ts +2 -2
- package/dist/esm/store/file-tool-result-store.d.ts +1 -1
- package/dist/esm/tool/delegate.d.ts +2 -2
- package/dist/esm/tool/registry.d.ts +1 -1
- package/dist/esm/tool/types.d.ts +1 -1
- package/dist/esm/utils/event-collector.d.ts +1 -1
- package/dist/esm/utils/token-counter.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Middleware, MiddlewareContext } from '../middleware/types.
|
|
2
|
-
import type { HookContext, HookResult } from '../hooks/types.
|
|
1
|
+
import type { Middleware, MiddlewareContext } from '../middleware/types.js';
|
|
2
|
+
import type { HookContext, HookResult } from '../hooks/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* 记录每轮迭代和工具调用的审计日志
|
|
5
5
|
* - before/after: 记录迭代开始/结束 + 消息数量
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Middleware, MiddlewareContext } from '../middleware/types.
|
|
2
|
-
import type { HookContext, HookResult } from '../hooks/types.
|
|
1
|
+
import type { Middleware, MiddlewareContext } from '../middleware/types.js';
|
|
2
|
+
import type { HookContext, HookResult } from '../hooks/types.js';
|
|
3
3
|
export interface TimingReport {
|
|
4
4
|
type: 'iteration' | 'tool';
|
|
5
5
|
sessionId?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Middleware } from '../middleware/types.
|
|
2
|
-
import type { HookContext, HookResult } from '../hooks/types.
|
|
1
|
+
import type { Middleware } from '../middleware/types.js';
|
|
2
|
+
import type { HookContext, HookResult } from '../hooks/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* 工具调用守卫:对指定工具进行拦截
|
|
5
5
|
* - 可配置需要拦截的工具名列表
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SecurityRule } from '../security/types.
|
|
2
|
-
import type { ShellExecutor, FileSystemExecutor } from '../tool/types.
|
|
1
|
+
import type { SecurityRule } from '../security/types.js';
|
|
2
|
+
import type { ShellExecutor, FileSystemExecutor } from '../tool/types.js';
|
|
3
3
|
/** 沙箱配置 */
|
|
4
4
|
export interface SandboxConfig {
|
|
5
5
|
/** 沙箱根目录(默认 ~/.workai/sandboxes/{id}) */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { RouteResult, RouteStrategy } from './types.
|
|
2
|
-
import type { SkillManager } from './manager.
|
|
1
|
+
import type { RouteResult, RouteStrategy } from './types.js';
|
|
2
|
+
import type { SkillManager } from './manager.js';
|
|
3
3
|
export declare class SkillRouter {
|
|
4
4
|
private strategies;
|
|
5
5
|
private skillManager;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { RegisteredTool, ToolContext } from './types.
|
|
2
|
-
import type { StructuredAgentOutput, WorkflowRole } from '../agent/workflow.
|
|
1
|
+
import type { RegisteredTool, ToolContext } from './types.js';
|
|
2
|
+
import type { StructuredAgentOutput, WorkflowRole } from '../agent/workflow.js';
|
|
3
3
|
/**
|
|
4
4
|
* 子 Agent 执行器接口
|
|
5
5
|
* 由上层(agent.service.ts)实现,Core 层只定义接口
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ToolDefinition, ToolExecutor, ToolContext, RegisteredTool, ToolCategory } from './types.
|
|
1
|
+
import type { ToolDefinition, ToolExecutor, ToolContext, RegisteredTool, ToolCategory } from './types.js';
|
|
2
2
|
/** defineTool 简化参数 */
|
|
3
3
|
export interface DefineToolOptions {
|
|
4
4
|
name: string;
|
package/dist/esm/tool/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cicctencent/agent-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"description": "Core engine for AI agent — LLM orchestration, tool execution, MCP, skill routing, security, and memory pipeline.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|