@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.
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-WSQ5QNIY.js";
4
4
  import {
5
5
  ErrorCode
6
- } from "./chunk-YVON2BHN.js";
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 requirements = [...config.readinessRequirements ?? []];
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
- return requirements.map((key) => ({
234
- key,
235
- ready: false,
236
- message: "readiness status is not available in the core facade"
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-YVON2BHN.js";
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,
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-AQBXNPMD.js";
5
5
  import {
6
6
  ErrorCode
7
- } from "./chunk-YVON2BHN.js";
7
+ } from "./chunk-CCNXYCD5.js";
8
8
 
9
9
  // src/server/harness/pi-coding-agent/createHarness.ts
10
10
  import { AsyncLocalStorage } from "async_hooks";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ErrorCode
3
- } from "./chunk-YVON2BHN.js";
3
+ } from "./chunk-CCNXYCD5.js";
4
4
 
5
5
  // src/shared/tool-ui.ts
6
6
  function isRecord(value) {