@cuylabs/agent-core 0.6.0 → 0.7.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-BRvqCcIk.d.ts} +2 -2
- package/dist/{resolver-DOfZ-xuk.d.ts → capability-resolver-CgRGsWVX.d.ts} +1 -1
- package/dist/{chunk-3C4VKG4P.js → chunk-3HNO5SVI.js} +273 -807
- package/dist/chunk-5K7AQVOU.js +619 -0
- package/dist/{chunk-QAQADS4X.js → chunk-BNSHUWCV.js} +1 -0
- package/dist/{chunk-O2ZCFQL6.js → chunk-CDTV2UYU.js} +86 -1
- package/dist/chunk-IEFIQENH.js +73 -0
- package/dist/chunk-N7P4PN3O.js +84 -0
- package/dist/{chunk-QWFMX226.js → chunk-QGOGIP7T.js} +148 -15
- package/dist/chunk-VNQBHPCT.js +398 -0
- package/dist/{chunk-X635CM2F.js → chunk-ZPMACVZK.js} +1 -1
- package/dist/context/index.js +1 -1
- package/dist/host/index.d.ts +45 -0
- package/dist/host/index.js +8 -0
- package/dist/{index-DZQJD_hp.d.ts → index-C33hlD6H.d.ts} +12 -7
- package/dist/{index-ipP3_ztp.d.ts → index-CfBGYrpd.d.ts} +121 -2
- package/dist/index.d.ts +107 -126
- package/dist/index.js +321 -601
- package/dist/inference/index.d.ts +59 -0
- package/dist/inference/index.js +25 -0
- package/dist/middleware/index.d.ts +7 -4
- package/dist/middleware/index.js +5 -3
- package/dist/models/index.d.ts +104 -2
- package/dist/models/index.js +40 -6
- package/dist/prompt/index.d.ts +9 -6
- package/dist/reasoning/index.d.ts +54 -8
- package/dist/reasoning/index.js +2 -3
- package/dist/{registry-CuRWWtcT.d.ts → registry-BDLIHOQB.d.ts} +1 -1
- package/dist/{runner-G1wxEgac.d.ts → runner-DSKaEz3z.d.ts} +35 -8
- package/dist/runtime/index.d.ts +41 -7
- package/dist/runtime/index.js +15 -6
- 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/skill/index.d.ts +7 -5
- package/dist/storage/index.d.ts +2 -2
- package/dist/sub-agent/index.d.ts +12 -8
- package/dist/tool/index.d.ts +7 -4
- package/dist/tool/index.js +4 -3
- package/dist/{tool-pFAnJc5Y.d.ts → tool-Db1Ue-1U.d.ts} +1 -1
- package/dist/{tool-DYp6-cC3.d.ts → tool-HUtkiVBx.d.ts} +5 -99
- package/dist/tracking/index.d.ts +3 -1
- package/dist/types-9jGQUjqW.d.ts +29 -0
- package/dist/types-CHiPh8U2.d.ts +100 -0
- package/dist/types-CqDZTh4d.d.ts +335 -0
- package/dist/types-FRpzzg_9.d.ts +355 -0
- package/package.json +19 -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-DWYX7ASF.js +0 -26
- 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/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-DSKaEz3z.js';
|
|
2
|
+
import { S as SkillRegistry } from './registry-BDLIHOQB.js';
|
|
3
3
|
|
|
4
4
|
interface PromptSectionPreview {
|
|
5
5
|
id: string;
|
|
@@ -251,4 +251,4 @@ declare function getDefaultResolver(): ModelCapabilityResolver;
|
|
|
251
251
|
*/
|
|
252
252
|
declare function configureResolver(options: Partial<ResolverOptions>): void;
|
|
253
253
|
|
|
254
|
-
export { type CapabilitySource as C, DEFAULT_RESOLVER_OPTIONS as D, type InputModality as I, type
|
|
254
|
+
export { type CapabilitySource as C, DEFAULT_RESOLVER_OPTIONS as D, type InputModality as I, type ModelCapabilities as M, type NetworkStatus as N, type OutputModality as O, type ProviderCompatibility as P, type ResolutionResult as R, SourcePriority as S, ModelCapabilityResolver as a, type ModelEntry as b, type ResolverOptions as c, type SourceResult as d, configureResolver as e, extractModelId as f, extractProvider as g, getDefaultResolver as h };
|