@hachej/boring-agent 0.1.79 → 0.1.80
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/dist/{chunk-LCEBDU6G.js → chunk-BNZIE26N.js} +13 -7
- package/dist/{chunk-YVON2BHN.js → chunk-CCNXYCD5.js} +3 -0
- package/dist/{chunk-Q42DWR3T.js → chunk-CUF7ELFO.js} +3 -1
- package/dist/{chunk-X4WT3TPU.js → chunk-N4ES6PVX.js} +1 -1
- package/dist/{chunk-P23XFC4W.js → chunk-UJQXCOHR.js} +1 -1
- package/dist/{chunk-RFHSFIHF.js → chunk-URRIDA6O.js} +553 -88
- package/dist/core/index.d.ts +5 -4
- package/dist/core/index.js +2 -2
- package/dist/{createHarness-XHMR3QN3.js → createHarness-EEA63XRC.js} +2 -2
- package/dist/front/index.d.ts +1 -1
- package/dist/front/index.js +2 -2
- package/dist/{harness-DD0zj704.d.ts → harness-BZW5Jiy3.d.ts} +8 -2
- package/dist/{piChatEvent-D0yuLiJh.d.ts → piChatEvent-CpoTZau1.d.ts} +13 -13
- package/dist/server/index.d.ts +95 -19
- package/dist/server/index.js +8 -6
- package/dist/server/worker/index.js +6 -6
- package/dist/shared/index.d.ts +24 -24
- package/dist/shared/index.js +7 -3
- package/dist/{workspaceAgentDispatcher-D3ZEBsH1.d.ts → workspaceAgentDispatcher-Wi6NIh2G.d.ts} +6 -3
- package/docs/ERROR_CODES.md +3 -0
- package/package.json +2 -2
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-WSQ5QNIY.js";
|
|
4
4
|
import {
|
|
5
5
|
ErrorCode
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CCNXYCD5.js";
|
|
7
7
|
|
|
8
8
|
// src/core/createAgent.ts
|
|
9
9
|
var DEFAULT_LIVE_BUFFER_SIZE = 1e3;
|
|
@@ -225,16 +225,22 @@ function createRuntimeLoader(runtimeFactory) {
|
|
|
225
225
|
};
|
|
226
226
|
}
|
|
227
227
|
function createReadiness(config, assertActive) {
|
|
228
|
-
const
|
|
228
|
+
const reporter = config.readiness;
|
|
229
|
+
const requirements = [...reporter?.requirements ?? config.readinessRequirements ?? []];
|
|
229
230
|
return {
|
|
230
231
|
requirements,
|
|
231
232
|
async status() {
|
|
232
233
|
assertActive();
|
|
233
|
-
|
|
234
|
-
key
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
234
|
+
if (!reporter) {
|
|
235
|
+
return requirements.map((key) => ({
|
|
236
|
+
key,
|
|
237
|
+
ready: false,
|
|
238
|
+
message: "readiness status is not available in the core facade"
|
|
239
|
+
}));
|
|
240
|
+
}
|
|
241
|
+
const statuses = await reporter.status();
|
|
242
|
+
assertActive();
|
|
243
|
+
return statuses;
|
|
238
244
|
}
|
|
239
245
|
};
|
|
240
246
|
}
|
|
@@ -48,6 +48,9 @@ var ErrorCode = z.enum([
|
|
|
48
48
|
"TOOL_NOT_FOUND",
|
|
49
49
|
"TOOL_INVALID_INPUT",
|
|
50
50
|
"TOOL_EXECUTION_ERROR",
|
|
51
|
+
"MCP_AGENT_ARTIFACT_INVALID",
|
|
52
|
+
"MCP_AGENT_ARTIFACT_TOO_LARGE",
|
|
53
|
+
"MCP_AGENT_ARTIFACT_UNAVAILABLE",
|
|
51
54
|
// Plugin
|
|
52
55
|
"PLUGIN_LOAD_FAILED",
|
|
53
56
|
"PLUGIN_NAME_COLLISION",
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
AgentDefinitionErrorCode,
|
|
3
3
|
AgentDeploymentErrorCode,
|
|
4
4
|
ErrorCode
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-CCNXYCD5.js";
|
|
6
6
|
|
|
7
7
|
// src/shared/agent-definition.ts
|
|
8
8
|
import { z } from "zod";
|
|
@@ -253,6 +253,8 @@ function validateTool(tool) {
|
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
export {
|
|
256
|
+
OpaqueRefSchema,
|
|
257
|
+
Sha256DigestSchema,
|
|
256
258
|
validateAgentDefinition,
|
|
257
259
|
validateAgentDeployment,
|
|
258
260
|
createAgentAssetDigest,
|