@hachej/boring-agent 0.1.105 → 0.1.108

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 (34) hide show
  1. package/dist/{chunk-K25PK5EC.js → chunk-3JFPS2O6.js} +1 -0
  2. package/dist/{chunk-JNEKOVMJ.js → chunk-6OANSUEI.js} +1 -1
  3. package/dist/{chunk-4IQ4HHBG.js → chunk-7XAOVFSN.js} +7 -0
  4. package/dist/{chunk-F2OJI2LX.js → chunk-GS4ADE34.js} +863 -358
  5. package/dist/{chunk-LFN45QDZ.js → chunk-KDXIXVF6.js} +5076 -3640
  6. package/dist/{chunk-6DRHERVK.js → chunk-MVKXLMH3.js} +44 -2
  7. package/dist/chunk-YTUZFKB3.js +78 -0
  8. package/dist/core/index.d.ts +5 -5
  9. package/dist/core/index.js +2 -2
  10. package/dist/{createHarness-GMBZZPTN.js → createHarness-AHWSC36D.js} +3 -3
  11. package/dist/{errors-DH7C01Pm.d.ts → errors-CEU4iujR.d.ts} +59 -4
  12. package/dist/{file-search-qcD5zItr.d.ts → file-search-BGUHnW9o.d.ts} +3 -3
  13. package/dist/front/index.d.ts +36 -7
  14. package/dist/front/index.js +1491 -727
  15. package/dist/front/styles.css +57 -0
  16. package/dist/{harness-Dcd08yKr.d.ts → harness-Ct0e4RWc.d.ts} +6 -3
  17. package/dist/{lease-DffrPrQn.d.ts → lease-nASWv2tU.d.ts} +1 -1
  18. package/dist/{piChatEvent-iNSXiFQq.d.ts → piChatEvent-BUWIzw5l.d.ts} +67 -36
  19. package/dist/{piChatSessionService-DQSQ_kWZ.d.ts → piChatSessionService-nvroRAVk.d.ts} +13 -11
  20. package/dist/server/agent-host/testing/gatewayConformance.d.ts +6 -5
  21. package/dist/server/agent-host/testing/gatewayConformance.js +57 -8
  22. package/dist/server/index.d.ts +167 -212
  23. package/dist/server/index.js +13 -9
  24. package/dist/server/worker/index.js +7 -7
  25. package/dist/shared/index.d.ts +34 -28
  26. package/dist/shared/index.js +8 -8
  27. package/dist/{types-BTsdaAQ2.d.ts → types-B7-PN5jV.d.ts} +47 -14
  28. package/docs/AGENT_GATEWAY_V0.md +40 -2
  29. package/docs/ERROR_CODES.md +1 -0
  30. package/docs/README.md +1 -0
  31. package/docs/SESSION_IDENTITY.md +91 -0
  32. package/docs/tools.md +4 -0
  33. package/package.json +11 -10
  34. package/dist/chunk-WSQ5QNIY.js +0 -18
@@ -83,6 +83,7 @@ var ErrorCode = z.enum([
83
83
  // Billing / metering
84
84
  "PAYMENT_REQUIRED",
85
85
  "MODEL_BUDGET_EXCEEDED",
86
+ "MODEL_CONTEXT_WINDOW_EXCEEDED",
86
87
  "METERING_UNSUPPORTED_COMMAND",
87
88
  // Session / bridge
88
89
  "SESSION_NOT_FOUND",
@@ -6,7 +6,7 @@ import {
6
6
  AgentDefinitionErrorCode,
7
7
  AgentDeploymentErrorCode,
8
8
  ErrorCode
9
- } from "./chunk-K25PK5EC.js";
9
+ } from "./chunk-3JFPS2O6.js";
10
10
 
11
11
  // src/shared/skill-resource.ts
12
12
  var AGENT_RESOURCES_FILESYSTEM_ID = "agent_resources";
@@ -1,5 +1,11 @@
1
1
  // src/shared/session.ts
2
2
  var SAFE_NATIVE_SESSION_ID = /^[a-zA-Z0-9_-]+(?:\.[a-zA-Z0-9_-]+)*$/;
3
+ function compareSessionOrder(left, right) {
4
+ return right[0] - left[0] || compareSessionIdentity(left[1], right[1]) || compareSessionIdentity(left[2], right[2]);
5
+ }
6
+ function compareSessionIdentity(left, right) {
7
+ return left < right ? -1 : left > right ? 1 : 0;
8
+ }
3
9
 
4
10
  // src/shared/telemetry.ts
5
11
  var noopTelemetry = {
@@ -16,6 +22,7 @@ function safeCapture(telemetry, event) {
16
22
 
17
23
  export {
18
24
  SAFE_NATIVE_SESSION_ID,
25
+ compareSessionOrder,
19
26
  noopTelemetry,
20
27
  safeCapture
21
28
  };