@cuylabs/agent-core 0.6.0 → 0.8.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/README.md +5 -1
- package/dist/{builder-BKkipazh.d.ts → builder-UpOWQMW3.d.ts} +2 -2
- package/dist/{chunk-3C4VKG4P.js → chunk-4BDA7DQY.js} +273 -807
- package/dist/chunk-7VKQ4WPB.js +73 -0
- package/dist/chunk-BFM2YHNM.js +222 -0
- package/dist/chunk-CAA7FHIH.js +280 -0
- package/dist/chunk-KUVSERLJ.js +50 -0
- package/dist/chunk-N6HWIEEA.js +423 -0
- package/dist/chunk-N7P4PN3O.js +84 -0
- package/dist/{chunk-QWFMX226.js → chunk-RFEKJKTO.js} +252 -13
- package/dist/chunk-RZITT45F.js +202 -0
- package/dist/{chunk-X635CM2F.js → chunk-SQU2AJHO.js} +1 -1
- package/dist/chunk-VNQBHPCT.js +398 -0
- package/dist/{chunk-QAQADS4X.js → chunk-WWYYNWEW.js} +2 -1
- package/dist/{chunk-O2ZCFQL6.js → chunk-YSLSEQ6B.js} +105 -220
- package/dist/context/index.js +1 -1
- package/dist/errors/index.d.ts +11 -0
- package/dist/errors/index.js +16 -0
- package/dist/events-CE72w8W4.d.ts +149 -0
- package/dist/host/index.d.ts +45 -0
- package/dist/host/index.js +8 -0
- package/dist/{index-DZQJD_hp.d.ts → index-CWSchSql.d.ts} +42 -51
- package/dist/index.d.ts +98 -190
- package/dist/index.js +476 -939
- package/dist/inference/index.d.ts +62 -0
- package/dist/inference/index.js +27 -0
- package/dist/llm-error-D93FNNLY.d.ts +32 -0
- package/dist/middleware/index.d.ts +246 -5
- package/dist/middleware/index.js +7 -3
- package/dist/models/index.d.ts +226 -3
- package/dist/models/index.js +41 -3
- package/dist/presets/index.d.ts +53 -0
- package/dist/presets/index.js +28 -0
- package/dist/prompt/index.d.ts +12 -7
- package/dist/reasoning/index.d.ts +53 -8
- package/dist/reasoning/index.js +2 -7
- package/dist/{registry-CuRWWtcT.d.ts → registry-DwYqsQkX.d.ts} +1 -1
- package/dist/{runner-G1wxEgac.d.ts → runner-e2YRcUoX.d.ts} +82 -148
- package/dist/runtime/index.d.ts +44 -7
- package/dist/runtime/index.js +16 -5
- package/dist/safety/index.d.ts +38 -0
- package/dist/safety/index.js +12 -0
- package/dist/scope/index.d.ts +10 -0
- package/dist/scope/index.js +14 -0
- package/dist/{session-manager-Uawm2Le7.d.ts → session-manager-B_CWGTsl.d.ts} +1 -1
- package/dist/signal/index.d.ts +28 -0
- package/dist/signal/index.js +6 -0
- package/dist/skill/index.d.ts +8 -5
- package/dist/storage/index.d.ts +2 -2
- package/dist/sub-agent/index.d.ts +17 -8
- package/dist/tool/index.d.ts +9 -4
- package/dist/tool/index.js +4 -3
- package/dist/tool-BHbyUAy3.d.ts +150 -0
- package/dist/{tool-DYp6-cC3.d.ts → tool-DLXAR9Ce.d.ts} +5 -99
- package/dist/tracking/index.d.ts +3 -1
- package/dist/{tool-pFAnJc5Y.d.ts → types-BfNpU8NS.d.ts} +1 -150
- package/dist/types-BnpEOYV-.d.ts +50 -0
- package/dist/types-CHiPh8U2.d.ts +100 -0
- package/dist/types-CQL-SvTn.d.ts +29 -0
- package/dist/types-CWm-7rvB.d.ts +55 -0
- package/dist/types-KKDrdU9Y.d.ts +325 -0
- package/dist/{resolver-DOfZ-xuk.d.ts → types-QA4WhEfz.d.ts} +1 -117
- package/dist/types-QKHHQLLq.d.ts +336 -0
- package/dist/types-YuWV4ag7.d.ts +72 -0
- package/package.json +74 -8
- package/dist/capabilities/index.d.ts +0 -97
- package/dist/capabilities/index.js +0 -46
- package/dist/chunk-6TDTQJ4P.js +0 -116
- package/dist/chunk-FG4MD5MU.js +0 -54
- package/dist/config-D2xeGEHK.d.ts +0 -52
- package/dist/identifiers-BLUxFqV_.d.ts +0 -12
- package/dist/index-ipP3_ztp.d.ts +0 -198
- package/dist/network-D76DS5ot.d.ts +0 -5
- package/dist/types-BWo810L_.d.ts +0 -648
package/README.md
CHANGED
|
@@ -109,15 +109,18 @@ structure when you want clearer boundaries:
|
|
|
109
109
|
```typescript
|
|
110
110
|
import { createAgent, Tool } from "@cuylabs/agent-core";
|
|
111
111
|
import type { AgentMiddleware } from "@cuylabs/agent-core/middleware";
|
|
112
|
+
import { Inference } from "@cuylabs/agent-core/inference";
|
|
112
113
|
import { createAgentTaskRunner } from "@cuylabs/agent-core/runtime";
|
|
114
|
+
import { localHost } from "@cuylabs/agent-core/host";
|
|
113
115
|
import { createPromptBuilder } from "@cuylabs/agent-core/prompt";
|
|
116
|
+
import { withinScope } from "@cuylabs/agent-core/scope";
|
|
114
117
|
import { createSkillRegistry } from "@cuylabs/agent-core/skill";
|
|
115
118
|
import { createSubAgentTools } from "@cuylabs/agent-core/sub-agent";
|
|
116
119
|
import { createMCPManager } from "@cuylabs/agent-core/mcp";
|
|
117
120
|
```
|
|
118
121
|
|
|
119
122
|
Additional focused entrypoints are available for `tool`, `tracking`, `storage`,
|
|
120
|
-
`context`, `reasoning`, `
|
|
123
|
+
`context`, `reasoning`, `models`, `mcp`, `inference`, `host`, and `scope`.
|
|
121
124
|
|
|
122
125
|
## Relationship To The Runtime Packages
|
|
123
126
|
|
|
@@ -148,6 +151,7 @@ Start with the package docs:
|
|
|
148
151
|
- [docs/README.md](./docs/README.md) for the learning path
|
|
149
152
|
- [docs/agent.md](./docs/agent.md) for the main `Agent` API
|
|
150
153
|
- [docs/middleware.md](./docs/middleware.md) for model/tool hooks and lifecycle middleware
|
|
154
|
+
- [docs/scope.md](./docs/scope.md) for nested execution lineage and scope snapshots
|
|
151
155
|
- [docs/tools.md](./docs/tools.md) for tool definition and execution
|
|
152
156
|
- [docs/runtime-integration.md](./docs/runtime-integration.md) for task/turn/workflow runtime integration
|
|
153
157
|
- [docs/tracing.md](./docs/tracing.md) for tracing setup
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PromptConfig, a as PromptBuildContext, M as MiddlewareRunner, b as PromptSection, c as ModelFamily } from './runner-
|
|
2
|
-
import { S as SkillRegistry } from './registry-
|
|
1
|
+
import { P as PromptConfig, a as PromptBuildContext, M as MiddlewareRunner, b as PromptSection, c as ModelFamily } from './runner-e2YRcUoX.js';
|
|
2
|
+
import { S as SkillRegistry } from './registry-DwYqsQkX.js';
|
|
3
3
|
|
|
4
4
|
interface PromptSectionPreview {
|
|
5
5
|
id: string;
|