@cuylabs/agent-core 4.4.0 → 4.5.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.
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-TPZ37IWI.js";
4
4
  import {
5
5
  createLocalDispatchRuntime
6
- } from "./chunk-5YUO2GT2.js";
6
+ } from "./chunk-HSUPTXNV.js";
7
7
  import {
8
8
  Tool
9
9
  } from "./chunk-Q742PSH3.js";
@@ -7,7 +7,6 @@ import {
7
7
  ensureNonEmpty,
8
8
  mergeInspection
9
9
  } from "../chunk-JZRLCTSD.js";
10
- import "../chunk-SZ2XBPTW.js";
11
10
  import {
12
11
  DEFAULT_DISPATCH_TOOL_IDS,
13
12
  DEFAULT_LOCAL_DISPATCH_CONCURRENCY,
@@ -16,9 +15,10 @@ import {
16
15
  DISPATCH_STATES,
17
16
  createDispatchTools,
18
17
  createLocalDispatchRuntime
19
- } from "../chunk-5YUO2GT2.js";
20
- import "../chunk-H3GRHFFG.js";
18
+ } from "../chunk-HSUPTXNV.js";
19
+ import "../chunk-SZ2XBPTW.js";
21
20
  import "../chunk-Q742PSH3.js";
21
+ import "../chunk-H3GRHFFG.js";
22
22
  export {
23
23
  DEFAULT_DISPATCH_TOOL_IDS,
24
24
  DEFAULT_LOCAL_DISPATCH_CONCURRENCY,
package/dist/index.js CHANGED
@@ -1,3 +1,40 @@
1
+ import {
2
+ DEFAULT_SUBAGENT_CONCURRENCY,
3
+ DEFAULT_SUBAGENT_DEPTH,
4
+ DEFAULT_SUBAGENT_SESSION_PREFIX,
5
+ LOCAL_SUBAGENT_BACKEND,
6
+ SUBAGENT_TOOL_IDS,
7
+ clearInstalledSubAgents,
8
+ configureSubAgents,
9
+ createCloseAgentTool,
10
+ createInvokeAgentTool,
11
+ createSubAgentTools,
12
+ createWaitAgentTool,
13
+ discoverSubAgentRoles,
14
+ formatAsyncSpawnedResult,
15
+ formatCancelledAgentResult,
16
+ formatCloseAlreadyResolvedResult,
17
+ formatCloseMissingAgentResult,
18
+ formatInvalidAgentTypeResult,
19
+ formatMissingAgentsResult,
20
+ formatSpawnBlockedResult,
21
+ formatSyncSubAgentErrorResult,
22
+ formatSyncSubAgentResult,
23
+ formatWaitErrorResult,
24
+ formatWaitResult,
25
+ formatWaitTimeoutResult,
26
+ getConfiguredSubAgents,
27
+ getInstalledSubAgentBackend,
28
+ getProjectSubAgentRolesDir,
29
+ getUserSubAgentRolesDir,
30
+ installLocalSubAgents,
31
+ installSubAgentTools,
32
+ isMarkdownSubAgentRole,
33
+ parseMarkdownSubAgentRole,
34
+ parseSubAgentRoleFrontmatter,
35
+ parseSubAgentToolSpec,
36
+ toSubAgentRole
37
+ } from "./chunk-BJC46FIF.js";
1
38
  import {
2
39
  InMemoryMailboxStore,
3
40
  InMemoryTaskBoardStore,
@@ -50,6 +87,16 @@ import {
50
87
  filterTools,
51
88
  mergeProfiles
52
89
  } from "./chunk-TIHPYVAJ.js";
90
+ import {
91
+ Profiles,
92
+ careful,
93
+ code,
94
+ explore,
95
+ plan,
96
+ quick,
97
+ review,
98
+ watch
99
+ } from "./chunk-TPZ37IWI.js";
53
100
  import {
54
101
  DEFAULT_INSTRUCTION_PATTERNS,
55
102
  DEFAULT_MAX_DEPTH,
@@ -93,53 +140,6 @@ import {
93
140
  loadSkillMetadata,
94
141
  parseFrontmatter
95
142
  } from "./chunk-I7EJGKUP.js";
96
- import {
97
- DEFAULT_SUBAGENT_CONCURRENCY,
98
- DEFAULT_SUBAGENT_DEPTH,
99
- DEFAULT_SUBAGENT_SESSION_PREFIX,
100
- LOCAL_SUBAGENT_BACKEND,
101
- SUBAGENT_TOOL_IDS,
102
- clearInstalledSubAgents,
103
- configureSubAgents,
104
- createCloseAgentTool,
105
- createInvokeAgentTool,
106
- createSubAgentTools,
107
- createWaitAgentTool,
108
- discoverSubAgentRoles,
109
- formatAsyncSpawnedResult,
110
- formatCancelledAgentResult,
111
- formatCloseAlreadyResolvedResult,
112
- formatCloseMissingAgentResult,
113
- formatInvalidAgentTypeResult,
114
- formatMissingAgentsResult,
115
- formatSpawnBlockedResult,
116
- formatSyncSubAgentErrorResult,
117
- formatSyncSubAgentResult,
118
- formatWaitErrorResult,
119
- formatWaitResult,
120
- formatWaitTimeoutResult,
121
- getConfiguredSubAgents,
122
- getInstalledSubAgentBackend,
123
- getProjectSubAgentRolesDir,
124
- getUserSubAgentRolesDir,
125
- installLocalSubAgents,
126
- installSubAgentTools,
127
- isMarkdownSubAgentRole,
128
- parseMarkdownSubAgentRole,
129
- parseSubAgentRoleFrontmatter,
130
- parseSubAgentToolSpec,
131
- toSubAgentRole
132
- } from "./chunk-3NHYWR2V.js";
133
- import {
134
- Profiles,
135
- careful,
136
- code,
137
- explore,
138
- plan,
139
- quick,
140
- review,
141
- watch
142
- } from "./chunk-TPZ37IWI.js";
143
143
  import {
144
144
  createCompositeDispatchTaskExecutor,
145
145
  createDispatchExternalTaskControl,
@@ -149,9 +149,6 @@ import {
149
149
  ensureNonEmpty,
150
150
  mergeInspection
151
151
  } from "./chunk-JZRLCTSD.js";
152
- import {
153
- sleep
154
- } from "./chunk-SZ2XBPTW.js";
155
152
  import {
156
153
  DEFAULT_DISPATCH_TOOL_IDS,
157
154
  DEFAULT_LOCAL_DISPATCH_CONCURRENCY,
@@ -164,7 +161,17 @@ import {
164
161
  ensureSessionLoaded,
165
162
  getVisibleSessionMessages,
166
163
  repairOrphanedToolCalls
167
- } from "./chunk-5YUO2GT2.js";
164
+ } from "./chunk-HSUPTXNV.js";
165
+ import {
166
+ sleep
167
+ } from "./chunk-SZ2XBPTW.js";
168
+ import {
169
+ MAX_BYTES,
170
+ MAX_LINES,
171
+ Tool,
172
+ normalizeToolReplayPolicy,
173
+ truncateOutput
174
+ } from "./chunk-Q742PSH3.js";
168
175
  import {
169
176
  FileStorage,
170
177
  LocalSessionTurnLock,
@@ -193,13 +200,6 @@ import {
193
200
  toJSONL,
194
201
  toJSONLBatch
195
202
  } from "./chunk-H3GRHFFG.js";
196
- import {
197
- MAX_BYTES,
198
- MAX_LINES,
199
- Tool,
200
- normalizeToolReplayPolicy,
201
- truncateOutput
202
- } from "./chunk-Q742PSH3.js";
203
203
  import {
204
204
  createEventBus
205
205
  } from "./chunk-2TTOLHBT.js";
@@ -34,11 +34,11 @@ import {
34
34
  parseSubAgentRoleFrontmatter,
35
35
  parseSubAgentToolSpec,
36
36
  toSubAgentRole
37
- } from "../chunk-3NHYWR2V.js";
37
+ } from "../chunk-BJC46FIF.js";
38
38
  import "../chunk-TPZ37IWI.js";
39
- import "../chunk-5YUO2GT2.js";
40
- import "../chunk-H3GRHFFG.js";
39
+ import "../chunk-HSUPTXNV.js";
41
40
  import "../chunk-Q742PSH3.js";
41
+ import "../chunk-H3GRHFFG.js";
42
42
  export {
43
43
  DEFAULT_SUBAGENT_CONCURRENCY,
44
44
  DEFAULT_SUBAGENT_DEPTH,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuylabs/agent-core",
3
- "version": "4.4.0",
3
+ "version": "4.5.0",
4
4
  "description": "Embeddable AI agent infrastructure — execution, sessions, tools, skills, dispatch, tracing",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,10 +1,10 @@
1
+ import {
2
+ Tool
3
+ } from "./chunk-Q742PSH3.js";
1
4
  import {
2
5
  buildEntryPath,
3
6
  deserializeMessage
4
7
  } from "./chunk-H3GRHFFG.js";
5
- import {
6
- Tool
7
- } from "./chunk-Q742PSH3.js";
8
8
 
9
9
  // src/agent/session.ts
10
10
  async function ensureSessionLoaded(options) {