@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.
Files changed (57) hide show
  1. package/README.md +5 -1
  2. package/dist/{builder-BKkipazh.d.ts → builder-BRvqCcIk.d.ts} +2 -2
  3. package/dist/{resolver-DOfZ-xuk.d.ts → capability-resolver-CgRGsWVX.d.ts} +1 -1
  4. package/dist/{chunk-3C4VKG4P.js → chunk-3HNO5SVI.js} +273 -807
  5. package/dist/chunk-5K7AQVOU.js +619 -0
  6. package/dist/{chunk-QAQADS4X.js → chunk-BNSHUWCV.js} +1 -0
  7. package/dist/{chunk-O2ZCFQL6.js → chunk-CDTV2UYU.js} +86 -1
  8. package/dist/chunk-IEFIQENH.js +73 -0
  9. package/dist/chunk-N7P4PN3O.js +84 -0
  10. package/dist/{chunk-QWFMX226.js → chunk-QGOGIP7T.js} +148 -15
  11. package/dist/chunk-VNQBHPCT.js +398 -0
  12. package/dist/{chunk-X635CM2F.js → chunk-ZPMACVZK.js} +1 -1
  13. package/dist/context/index.js +1 -1
  14. package/dist/host/index.d.ts +45 -0
  15. package/dist/host/index.js +8 -0
  16. package/dist/{index-DZQJD_hp.d.ts → index-C33hlD6H.d.ts} +12 -7
  17. package/dist/{index-ipP3_ztp.d.ts → index-CfBGYrpd.d.ts} +121 -2
  18. package/dist/index.d.ts +107 -126
  19. package/dist/index.js +321 -601
  20. package/dist/inference/index.d.ts +59 -0
  21. package/dist/inference/index.js +25 -0
  22. package/dist/middleware/index.d.ts +7 -4
  23. package/dist/middleware/index.js +5 -3
  24. package/dist/models/index.d.ts +104 -2
  25. package/dist/models/index.js +40 -6
  26. package/dist/prompt/index.d.ts +9 -6
  27. package/dist/reasoning/index.d.ts +54 -8
  28. package/dist/reasoning/index.js +2 -3
  29. package/dist/{registry-CuRWWtcT.d.ts → registry-BDLIHOQB.d.ts} +1 -1
  30. package/dist/{runner-G1wxEgac.d.ts → runner-DSKaEz3z.d.ts} +35 -8
  31. package/dist/runtime/index.d.ts +41 -7
  32. package/dist/runtime/index.js +15 -6
  33. package/dist/scope/index.d.ts +10 -0
  34. package/dist/scope/index.js +14 -0
  35. package/dist/{session-manager-Uawm2Le7.d.ts → session-manager-B_CWGTsl.d.ts} +1 -1
  36. package/dist/skill/index.d.ts +7 -5
  37. package/dist/storage/index.d.ts +2 -2
  38. package/dist/sub-agent/index.d.ts +12 -8
  39. package/dist/tool/index.d.ts +7 -4
  40. package/dist/tool/index.js +4 -3
  41. package/dist/{tool-pFAnJc5Y.d.ts → tool-Db1Ue-1U.d.ts} +1 -1
  42. package/dist/{tool-DYp6-cC3.d.ts → tool-HUtkiVBx.d.ts} +5 -99
  43. package/dist/tracking/index.d.ts +3 -1
  44. package/dist/types-9jGQUjqW.d.ts +29 -0
  45. package/dist/types-CHiPh8U2.d.ts +100 -0
  46. package/dist/types-CqDZTh4d.d.ts +335 -0
  47. package/dist/types-FRpzzg_9.d.ts +355 -0
  48. package/package.json +19 -8
  49. package/dist/capabilities/index.d.ts +0 -97
  50. package/dist/capabilities/index.js +0 -46
  51. package/dist/chunk-6TDTQJ4P.js +0 -116
  52. package/dist/chunk-DWYX7ASF.js +0 -26
  53. package/dist/chunk-FG4MD5MU.js +0 -54
  54. package/dist/config-D2xeGEHK.d.ts +0 -52
  55. package/dist/identifiers-BLUxFqV_.d.ts +0 -12
  56. package/dist/network-D76DS5ot.d.ts +0 -5
  57. 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`, `capabilities`, and `models`.
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-G1wxEgac.js';
2
- import { S as SkillRegistry } from './registry-CuRWWtcT.js';
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 ModelEntry as M, type NetworkStatus as N, type OutputModality as O, type ProviderCompatibility as P, type ResolverOptions as R, SourcePriority as S, extractProvider as a, type SourceResult as b, type ModelCapabilities as c, ModelCapabilityResolver as d, extractModelId as e, type ResolutionResult as f, configureResolver as g, getDefaultResolver as h };
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 };