@nebutra/agent-runtime 0.2.2 → 3.0.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 +33 -10
- package/dist/{chunk-KCNN4QUQ.js → chunk-5UGIUYJR.js} +4 -4
- package/dist/chunk-7ELA4SWE.js +73 -0
- package/dist/chunk-7ELA4SWE.js.map +1 -0
- package/dist/chunk-VXILZAXK.js +541 -0
- package/dist/chunk-VXILZAXK.js.map +1 -0
- package/dist/command-exec.d.ts +45 -0
- package/dist/command-exec.js +15 -0
- package/dist/command-exec.js.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +68 -12
- package/dist/index.js.map +1 -1
- package/dist/pulsar.js +2 -2
- package/dist/sandbox-DfcRttXt.d.ts +219 -0
- package/dist/sandbox.d.ts +2 -64
- package/dist/sandbox.js +25 -3
- package/package.json +8 -7
- package/dist/chunk-R5HOSQUW.js +0 -58
- package/dist/chunk-R5HOSQUW.js.map +0 -1
- /package/dist/{chunk-KCNN4QUQ.js.map → chunk-5UGIUYJR.js.map} +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
COMMAND_EXEC_TOOL_NAME,
|
|
3
|
+
buildSandboxToolRegistry,
|
|
4
|
+
registerCommandExecTool
|
|
5
|
+
} from "./chunk-7ELA4SWE.js";
|
|
6
|
+
import "./chunk-VXILZAXK.js";
|
|
7
|
+
import "./chunk-CGRCUKGT.js";
|
|
8
|
+
import "./chunk-4Y25ZTKI.js";
|
|
9
|
+
import "./chunk-424PT5DM.js";
|
|
10
|
+
export {
|
|
11
|
+
COMMAND_EXEC_TOOL_NAME,
|
|
12
|
+
buildSandboxToolRegistry,
|
|
13
|
+
registerCommandExecTool
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=command-exec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { C as CARINA_MIN_PROTOCOL_VERSION, a as CODEPLOY_CARINA_BIN_DIR, b as CODEPLOY_CARINA_SOCKET_PATH, c as CODEPLOY_CARINA_STATE_DIR, d as CODEPLOY_CARINA_WORKSPACE_ROOT, e as CarinaApprovalResolveRequest, f as CarinaEnsureSessionRequest, g as CarinaEnv, h as CarinaNdjsonError, i as CarinaProtocolError, j as CarinaSandbox, k as CarinaSandboxOptions, E as ExternalSandbox, N as NdjsonRpcClient, l as NoExecutorConfiguredError, R as REFUSING_SANDBOX, S as SandboxDelegationError, m as SandboxExecRequest, n as SandboxExecResult, o as assertSafePosture, p as createCarinaNdjsonClient, q as createCarinaSandbox, r as createHttpSandbox, s as defaultCarinaSocketPath, t as isCarinaCodeployEnabled, u as isCarinaSandbox, v as resolveCarinaSandboxFromEnv, w as resolveCarinaWorkspaceRoot, x as resolveCarinaWorkspaceRootWithCodeploy } from './sandbox-DfcRttXt.js';
|
|
2
|
+
export { COMMAND_EXEC_TOOL_NAME, CommandExecToolInput, CommandExecToolOutput, RegisterCommandExecToolOptions, buildSandboxToolRegistry, registerCommandExecTool } from './command-exec.js';
|
|
1
3
|
export { BodyLoader, CommandRecord, CommandRegistry, ContentBlock, ExpandedCommand, expandCommand } from './commands.js';
|
|
2
4
|
import { z } from 'zod';
|
|
3
5
|
import { BaseTokenEstimator } from '@nebutra/ai-primitives';
|
|
@@ -15,7 +17,6 @@ export { METHOD_REGISTRY, MethodName, MethodSpec, NOTIFICATIONS, NotificationNam
|
|
|
15
17
|
export { Pulsar, PulsarBranchRecord, PulsarBuilder, PulsarDeps, PulsarEventInput, PulsarEventLogPort, PulsarThread, StartThreadOptions } from './pulsar.js';
|
|
16
18
|
export { EventPersistenceMode, InMemoryRolloutStore, PERSISTED_OUTPUT_MAX_BYTES, RolloutLine, RolloutStore, ThreadProjection, isPersisted, replay, sanitizeForPersist } from './rollout.js';
|
|
17
19
|
export { PersistentRolloutStore, RolloutPersistencePort, RoundTripError } from './rollout-store-persistent.js';
|
|
18
|
-
export { ExternalSandbox, NoExecutorConfiguredError, REFUSING_SANDBOX, SandboxDelegationError, SandboxExecRequest, SandboxExecResult, assertSafePosture, createHttpSandbox } from './sandbox.js';
|
|
19
20
|
export { ExpandContext, ExpandedSkill, SkillListing, SkillListingEntry, SkillListingOptions, SkillMessage, SkillRecord, buildSkillListing, expandSkill } from './skills.js';
|
|
20
21
|
export { DeferredEnvelope, DispatchCtx, DispatchEnvelope, DispatchMode, PrepareDispatchInput, PreparedDispatch, SettleDeferredTarget, SubagentRecord, SyncEnvelope, TASK_KINDS, TASK_STATUSES, TaskKind, TaskRecord, TaskRegistry, TaskStatus, assertNotPeeking, makeDeferred, prepareDispatch, resolveSubagentTools, settleDeferred } from './subagents.js';
|
|
21
22
|
export { McpClientLike, RegisteredTool, RuntimeToolRegistry, ToolDefinition, ToolDispatchContext, ToolHandler, ToolHooks, ToolOrigin, RuntimeToolRegistry as ToolRegistry, adaptMcpTool } from './tools.js';
|
package/dist/index.js
CHANGED
|
@@ -2,18 +2,11 @@ import {
|
|
|
2
2
|
Pulsar,
|
|
3
3
|
PulsarBuilder,
|
|
4
4
|
PulsarThread
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5UGIUYJR.js";
|
|
6
6
|
import {
|
|
7
7
|
PersistentRolloutStore,
|
|
8
8
|
RoundTripError
|
|
9
9
|
} from "./chunk-2DA6Q6TN.js";
|
|
10
|
-
import {
|
|
11
|
-
NoExecutorConfiguredError,
|
|
12
|
-
REFUSING_SANDBOX,
|
|
13
|
-
SandboxDelegationError,
|
|
14
|
-
assertSafePosture,
|
|
15
|
-
createHttpSandbox
|
|
16
|
-
} from "./chunk-R5HOSQUW.js";
|
|
17
10
|
import {
|
|
18
11
|
buildSkillListing,
|
|
19
12
|
expandSkill
|
|
@@ -60,10 +53,6 @@ import {
|
|
|
60
53
|
import {
|
|
61
54
|
activateMcpTools
|
|
62
55
|
} from "./chunk-NI4EDT4T.js";
|
|
63
|
-
import {
|
|
64
|
-
RuntimeToolRegistry,
|
|
65
|
-
adaptMcpTool
|
|
66
|
-
} from "./chunk-4Y25ZTKI.js";
|
|
67
56
|
import {
|
|
68
57
|
isTurnTerminal,
|
|
69
58
|
mergeTurnConfig
|
|
@@ -75,6 +64,33 @@ import {
|
|
|
75
64
|
planWaves,
|
|
76
65
|
runAgentWaves
|
|
77
66
|
} from "./chunk-Q62VKHIT.js";
|
|
67
|
+
import {
|
|
68
|
+
COMMAND_EXEC_TOOL_NAME,
|
|
69
|
+
buildSandboxToolRegistry,
|
|
70
|
+
registerCommandExecTool
|
|
71
|
+
} from "./chunk-7ELA4SWE.js";
|
|
72
|
+
import {
|
|
73
|
+
CARINA_MIN_PROTOCOL_VERSION,
|
|
74
|
+
CODEPLOY_CARINA_BIN_DIR,
|
|
75
|
+
CODEPLOY_CARINA_SOCKET_PATH,
|
|
76
|
+
CODEPLOY_CARINA_STATE_DIR,
|
|
77
|
+
CODEPLOY_CARINA_WORKSPACE_ROOT,
|
|
78
|
+
CarinaNdjsonError,
|
|
79
|
+
CarinaProtocolError,
|
|
80
|
+
NoExecutorConfiguredError,
|
|
81
|
+
REFUSING_SANDBOX,
|
|
82
|
+
SandboxDelegationError,
|
|
83
|
+
assertSafePosture,
|
|
84
|
+
createCarinaNdjsonClient,
|
|
85
|
+
createCarinaSandbox,
|
|
86
|
+
createHttpSandbox,
|
|
87
|
+
defaultCarinaSocketPath,
|
|
88
|
+
isCarinaCodeployEnabled,
|
|
89
|
+
isCarinaSandbox,
|
|
90
|
+
resolveCarinaSandboxFromEnv,
|
|
91
|
+
resolveCarinaWorkspaceRoot,
|
|
92
|
+
resolveCarinaWorkspaceRootWithCodeploy
|
|
93
|
+
} from "./chunk-VXILZAXK.js";
|
|
78
94
|
import {
|
|
79
95
|
DEFAULT_APPROVAL_POLICY,
|
|
80
96
|
DEFAULT_CAPABILITY_POLICY,
|
|
@@ -86,6 +102,10 @@ import {
|
|
|
86
102
|
resolveRuleDecision,
|
|
87
103
|
writableRootSchema
|
|
88
104
|
} from "./chunk-CGRCUKGT.js";
|
|
105
|
+
import {
|
|
106
|
+
RuntimeToolRegistry,
|
|
107
|
+
adaptMcpTool
|
|
108
|
+
} from "./chunk-4Y25ZTKI.js";
|
|
89
109
|
import {
|
|
90
110
|
CommandRegistry,
|
|
91
111
|
expandCommand
|
|
@@ -108,11 +128,19 @@ __export(src_exports, {
|
|
|
108
128
|
ActionRunner: () => ActionRunner,
|
|
109
129
|
ArtifactStreamParser: () => ArtifactStreamParser,
|
|
110
130
|
BUDGET_RATIO: () => BUDGET_RATIO,
|
|
131
|
+
CARINA_MIN_PROTOCOL_VERSION: () => CARINA_MIN_PROTOCOL_VERSION,
|
|
111
132
|
CLIP_TEXT_CHARS: () => CLIP_TEXT_CHARS,
|
|
112
133
|
CLIP_TOOL_CHARS: () => CLIP_TOOL_CHARS,
|
|
134
|
+
CODEPLOY_CARINA_BIN_DIR: () => CODEPLOY_CARINA_BIN_DIR,
|
|
135
|
+
CODEPLOY_CARINA_SOCKET_PATH: () => CODEPLOY_CARINA_SOCKET_PATH,
|
|
136
|
+
CODEPLOY_CARINA_STATE_DIR: () => CODEPLOY_CARINA_STATE_DIR,
|
|
137
|
+
CODEPLOY_CARINA_WORKSPACE_ROOT: () => CODEPLOY_CARINA_WORKSPACE_ROOT,
|
|
138
|
+
COMMAND_EXEC_TOOL_NAME: () => COMMAND_EXEC_TOOL_NAME,
|
|
113
139
|
COMPACT_SENTINEL: () => COMPACT_SENTINEL,
|
|
114
140
|
CONCURRENCY: () => CONCURRENCY,
|
|
115
141
|
CONVERSATIONS_DIR: () => CONVERSATIONS_DIR,
|
|
142
|
+
CarinaNdjsonError: () => CarinaNdjsonError,
|
|
143
|
+
CarinaProtocolError: () => CarinaProtocolError,
|
|
116
144
|
ChannelGateway: () => ChannelGateway,
|
|
117
145
|
ChannelRegistry: () => ChannelRegistry,
|
|
118
146
|
CommandRegistry: () => CommandRegistry,
|
|
@@ -188,6 +216,7 @@ __export(src_exports, {
|
|
|
188
216
|
buildImprovementPrompt: () => buildImprovementPrompt,
|
|
189
217
|
buildMemoryContextBlock: () => buildMemoryContextBlock,
|
|
190
218
|
buildReviewPrompt: () => buildReviewPrompt,
|
|
219
|
+
buildSandboxToolRegistry: () => buildSandboxToolRegistry,
|
|
191
220
|
buildSkillListing: () => buildSkillListing,
|
|
192
221
|
capabilityPolicySchema: () => capabilityPolicySchema,
|
|
193
222
|
classifyMatch: () => classifyMatch,
|
|
@@ -196,9 +225,12 @@ __export(src_exports, {
|
|
|
196
225
|
computeBudget: () => computeBudget,
|
|
197
226
|
constantTimeEquals: () => constantTimeEquals,
|
|
198
227
|
costReport: () => costReport,
|
|
228
|
+
createCarinaNdjsonClient: () => createCarinaNdjsonClient,
|
|
229
|
+
createCarinaSandbox: () => createCarinaSandbox,
|
|
199
230
|
createDurableTurn: () => createDurableTurn,
|
|
200
231
|
createHttpSandbox: () => createHttpSandbox,
|
|
201
232
|
dedupeByText: () => dedupeByText,
|
|
233
|
+
defaultCarinaSocketPath: () => defaultCarinaSocketPath,
|
|
202
234
|
deriveLatestStatus: () => deriveLatestStatus,
|
|
203
235
|
deriveTimelineFromCommits: () => deriveTimelineFromCommits,
|
|
204
236
|
diffProjects: () => diffProjects,
|
|
@@ -223,6 +255,8 @@ __export(src_exports, {
|
|
|
223
255
|
improveSkill: () => improveSkill,
|
|
224
256
|
ingestDesignContext: () => ingestDesignContext,
|
|
225
257
|
isApproval: () => isApproval,
|
|
258
|
+
isCarinaCodeployEnabled: () => isCarinaCodeployEnabled,
|
|
259
|
+
isCarinaSandbox: () => isCarinaSandbox,
|
|
226
260
|
isDistillable: () => isDistillable,
|
|
227
261
|
isPersisted: () => isPersisted,
|
|
228
262
|
isTurnTerminal: () => isTurnTerminal,
|
|
@@ -253,6 +287,7 @@ __export(src_exports, {
|
|
|
253
287
|
rankByFuzzy: () => rankByFuzzy,
|
|
254
288
|
rankSuggestions: () => rankSuggestions,
|
|
255
289
|
recordHistory: () => recordHistory,
|
|
290
|
+
registerCommandExecTool: () => registerCommandExecTool,
|
|
256
291
|
removeFile: () => removeFile,
|
|
257
292
|
renderClipped: () => renderClipped,
|
|
258
293
|
replay: () => replay,
|
|
@@ -260,6 +295,9 @@ __export(src_exports, {
|
|
|
260
295
|
requestEnvelopeSchema: () => requestEnvelopeSchema,
|
|
261
296
|
requiresMention: () => requiresMention,
|
|
262
297
|
resolveBranchBase: () => resolveBranchBase,
|
|
298
|
+
resolveCarinaSandboxFromEnv: () => resolveCarinaSandboxFromEnv,
|
|
299
|
+
resolveCarinaWorkspaceRoot: () => resolveCarinaWorkspaceRoot,
|
|
300
|
+
resolveCarinaWorkspaceRootWithCodeploy: () => resolveCarinaWorkspaceRootWithCodeploy,
|
|
263
301
|
resolveRuleDecision: () => resolveRuleDecision,
|
|
264
302
|
resolveScope: () => resolveScope,
|
|
265
303
|
resolveSessionKey: () => resolveSessionKey,
|
|
@@ -3051,11 +3089,19 @@ export {
|
|
|
3051
3089
|
ActionRunner,
|
|
3052
3090
|
ArtifactStreamParser,
|
|
3053
3091
|
BUDGET_RATIO,
|
|
3092
|
+
CARINA_MIN_PROTOCOL_VERSION,
|
|
3054
3093
|
CLIP_TEXT_CHARS,
|
|
3055
3094
|
CLIP_TOOL_CHARS,
|
|
3095
|
+
CODEPLOY_CARINA_BIN_DIR,
|
|
3096
|
+
CODEPLOY_CARINA_SOCKET_PATH,
|
|
3097
|
+
CODEPLOY_CARINA_STATE_DIR,
|
|
3098
|
+
CODEPLOY_CARINA_WORKSPACE_ROOT,
|
|
3099
|
+
COMMAND_EXEC_TOOL_NAME,
|
|
3056
3100
|
COMPACT_SENTINEL,
|
|
3057
3101
|
CONCURRENCY,
|
|
3058
3102
|
CONVERSATIONS_DIR,
|
|
3103
|
+
CarinaNdjsonError,
|
|
3104
|
+
CarinaProtocolError,
|
|
3059
3105
|
ChannelGateway,
|
|
3060
3106
|
ChannelRegistry,
|
|
3061
3107
|
CommandRegistry,
|
|
@@ -3131,6 +3177,7 @@ export {
|
|
|
3131
3177
|
buildImprovementPrompt,
|
|
3132
3178
|
buildMemoryContextBlock,
|
|
3133
3179
|
buildReviewPrompt,
|
|
3180
|
+
buildSandboxToolRegistry,
|
|
3134
3181
|
buildSkillListing,
|
|
3135
3182
|
capabilityPolicySchema,
|
|
3136
3183
|
classifyMatch,
|
|
@@ -3139,9 +3186,12 @@ export {
|
|
|
3139
3186
|
computeBudget,
|
|
3140
3187
|
constantTimeEquals,
|
|
3141
3188
|
costReport,
|
|
3189
|
+
createCarinaNdjsonClient,
|
|
3190
|
+
createCarinaSandbox,
|
|
3142
3191
|
createDurableTurn,
|
|
3143
3192
|
createHttpSandbox,
|
|
3144
3193
|
dedupeByText,
|
|
3194
|
+
defaultCarinaSocketPath,
|
|
3145
3195
|
deriveLatestStatus,
|
|
3146
3196
|
deriveTimelineFromCommits,
|
|
3147
3197
|
diffProjects,
|
|
@@ -3166,6 +3216,8 @@ export {
|
|
|
3166
3216
|
improveSkill,
|
|
3167
3217
|
ingestDesignContext,
|
|
3168
3218
|
isApproval,
|
|
3219
|
+
isCarinaCodeployEnabled,
|
|
3220
|
+
isCarinaSandbox,
|
|
3169
3221
|
isDistillable,
|
|
3170
3222
|
isPersisted,
|
|
3171
3223
|
isTurnTerminal,
|
|
@@ -3196,6 +3248,7 @@ export {
|
|
|
3196
3248
|
rankByFuzzy,
|
|
3197
3249
|
rankSuggestions,
|
|
3198
3250
|
recordHistory,
|
|
3251
|
+
registerCommandExecTool,
|
|
3199
3252
|
removeFile,
|
|
3200
3253
|
renderClipped,
|
|
3201
3254
|
replay,
|
|
@@ -3203,6 +3256,9 @@ export {
|
|
|
3203
3256
|
requestEnvelopeSchema,
|
|
3204
3257
|
requiresMention,
|
|
3205
3258
|
resolveBranchBase,
|
|
3259
|
+
resolveCarinaSandboxFromEnv,
|
|
3260
|
+
resolveCarinaWorkspaceRoot,
|
|
3261
|
+
resolveCarinaWorkspaceRootWithCodeploy,
|
|
3206
3262
|
resolveRuleDecision,
|
|
3207
3263
|
resolveScope,
|
|
3208
3264
|
resolveSessionKey,
|