zapmyco 0.1.0
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/LICENSE +21 -0
- package/README.md +149 -0
- package/dist/agent-PR6zGvgA.d.mts +323 -0
- package/dist/agent-PR6zGvgA.d.mts.map +1 -0
- package/dist/cli/index.d.mts +1 -0
- package/dist/cli/index.mjs +1428 -0
- package/dist/cli/index.mjs.map +1 -0
- package/dist/index.d.mts +2502 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +22 -0
- package/dist/index.mjs.map +1 -0
- package/dist/loader-D1dTKHK4.mjs +1030 -0
- package/dist/loader-D1dTKHK4.mjs.map +1 -0
- package/dist/protocol/index.d.mts +2 -0
- package/dist/protocol/index.mjs +1 -0
- package/package.json +96 -0
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { C as dispatchToEventBus, E as __VERSION__, S as createEventBridgeListener, _ as createToolFromCapability, a as Logger, b as toAgentTools, c as DecomposeError, d as SchedulerError, f as ZapmycoError, g as createRequestFromSubTask, h as createLlmBasedAgent, i as costTracker, l as IntentError, m as LlmBasedAgent, n as DEFAULT_CONFIG, o as logger, p as ZapmycoErrorCode, r as CostTracker, s as AgentError, t as loadConfig, u as LlmError, v as createToolsFromCapabilities, w as eventBus, x as adaptAgentEvent, y as toAgentTool } from "./loader-D1dTKHK4.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/index.ts
|
|
4
|
+
/**
|
|
5
|
+
* zapmyco - AI 原生并行任务编排系统
|
|
6
|
+
*
|
|
7
|
+
* 公共 API 导出入口。
|
|
8
|
+
*
|
|
9
|
+
* @packageDocumentation
|
|
10
|
+
*/
|
|
11
|
+
/** 当前版本号 */
|
|
12
|
+
const VERSION = __VERSION__;
|
|
13
|
+
/** 应用名称 */
|
|
14
|
+
const APP_NAME = "zapmyco";
|
|
15
|
+
var src_default = {
|
|
16
|
+
VERSION,
|
|
17
|
+
APP_NAME
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { APP_NAME, AgentError, CostTracker, DEFAULT_CONFIG, DecomposeError, IntentError, LlmBasedAgent, LlmError, Logger, SchedulerError, VERSION, ZapmycoError, ZapmycoErrorCode, adaptAgentEvent, costTracker, createEventBridgeListener, createLlmBasedAgent, createRequestFromSubTask, createToolFromCapability, createToolsFromCapabilities, src_default as default, dispatchToEventBus, eventBus, loadConfig, logger, toAgentTool, toAgentTools };
|
|
22
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/**\n * zapmyco - AI 原生并行任务编排系统\n *\n * 公共 API 导出入口。\n *\n * @packageDocumentation\n */\n\n// __VERSION__ 由 tsdown 构建时从 package.json 注入\nimport { __VERSION__ } from '@/infra/constants';\n\n/** 当前版本号 */\nexport const VERSION: string = __VERSION__;\n\n/** 应用名称 */\nexport const APP_NAME = 'zapmyco';\n\n// ============ Protocol 层导出(核心契约) ============\n\nexport type {\n AgentExecuteOptions,\n AgentExecuteRequest,\n AgentHealthStatus,\n AgentRegistration,\n AgentRegistrationStatus,\n AgentStatus,\n Capability,\n CapabilityCategory,\n IAgent,\n IStreamingAgent,\n} from '@/protocol/agent';\n\n// ============ Core 类型导出 ============\n\nexport type {\n ProgressEvent,\n ProgressEventType,\n ProgressPayload,\n} from '@/core/aggregator/types';\nexport type {\n Goal,\n GoalConstraints,\n GoalType,\n ProjectContext,\n} from '@/core/intent/types';\nexport type {\n Artifact,\n ArtifactType,\n FinalResult,\n TaskError,\n TaskResult,\n TokenUsage,\n} from '@/core/result/types';\nexport type {\n SubTask,\n TaskGraph,\n TaskStatus,\n} from '@/core/task/types';\n\n// ============ Agent Runtime 导出(pi-agent-core 集成层) ============\n\nexport type {\n AdaptedAgentEvent,\n AgentAdapterOptions,\n AgentRuntimeConfig,\n ToolExecutionMode,\n ToolRegistration,\n} from '@/core/agent-runtime';\nexport {\n adaptAgentEvent,\n createEventBridgeListener,\n createLlmBasedAgent,\n createRequestFromSubTask,\n createToolFromCapability,\n createToolsFromCapabilities,\n dispatchToEventBus,\n LlmBasedAgent,\n toAgentTool,\n toAgentTools,\n} from '@/core/agent-runtime';\n\n// ============ LLM 层导出 ============\n\nexport { CostTracker, costTracker } from '@/llm/cost-tracker';\nexport type { ILlmProvider } from '@/llm/provider';\nexport type {\n ChatMessage,\n ChatRole,\n LlmCallOptions,\n LlmResponse,\n StructuredOutputSchema,\n} from '@/llm/types';\n\n// ============ Config 层导出 ============\n\nexport { DEFAULT_CONFIG } from '@/config/defaults';\nexport { loadConfig } from '@/config/loader';\nexport type { ZapmycoConfig } from '@/config/types';\n\n// ============ Infra 层导出 ============\n\nexport {\n AgentError,\n DecomposeError,\n IntentError,\n LlmError,\n SchedulerError,\n ZapmycoError,\n ZapmycoErrorCode,\n} from '@/infra/errors';\nexport type { EventMap } from '@/infra/event-bus';\nexport { eventBus } from '@/infra/event-bus';\nexport type { LogEntry, LogLevel } from '@/infra/logger';\nexport { Logger, logger } from '@/infra/logger';\n\n// 默认导出\nexport default {\n VERSION,\n APP_NAME,\n};\n"],"mappings":";;;;;;;;;;;AAYA,MAAa,UAAkB;;AAG/B,MAAa,WAAW;AAqGxB,kBAAe;CACb;CACA;CACD"}
|