@hachej/boring-agent 0.1.95 → 0.1.97

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 (45) hide show
  1. package/dist/DebugDrawer-2TO5SE2D.js +7 -0
  2. package/dist/{chunk-NITBKFG6.js → chunk-3OEDBRKY.js} +93 -58
  3. package/dist/{chunk-BOIV2I3N.js → chunk-46HJK2ES.js} +31 -16
  4. package/dist/{chunk-AQBXNPMD.js → chunk-4IQ4HHBG.js} +4 -0
  5. package/dist/{chunk-2EMAKBVR.js → chunk-CXMM24NW.js} +9039 -7788
  6. package/dist/{chunk-OFQ7J6SI.js → chunk-LSO2AO6Q.js} +57 -1
  7. package/dist/{chunk-2GBHYJVC.js → chunk-VXF5DWS6.js} +34 -0
  8. package/dist/{chunk-2TMS2RU2.js → chunk-WC5KBGP2.js} +518 -165
  9. package/dist/chunk-YGRQ4Q5P.js +20 -0
  10. package/dist/core/index.d.ts +5 -5
  11. package/dist/core/index.js +604 -7
  12. package/dist/{createHarness-UCD74XXK.js → createHarness-PW3A2MRB.js} +3 -3
  13. package/dist/{errors-G6T6S7PQ.d.ts → errors-cNC4HMpV.d.ts} +14 -7
  14. package/dist/eval/index.d.ts +5 -3
  15. package/dist/eval/index.js +31 -23
  16. package/dist/file-search-QxnanNjO.d.ts +87 -0
  17. package/dist/front/index.d.ts +86 -16
  18. package/dist/front/index.js +839 -343
  19. package/dist/front/styles.css +1171 -2129
  20. package/dist/{harness-Cc48o6uS.d.ts → harness-DS8jLKIx.d.ts} +4 -2
  21. package/dist/{lease-CusB-uLg.d.ts → lease-D8WC6pQl.d.ts} +10 -89
  22. package/dist/{middleware-CzW8n7B7.d.ts → middleware-Cq_cYHjJ.d.ts} +1 -1
  23. package/dist/piChatEvent-B3ehh9V0.d.ts +384 -0
  24. package/dist/{piChatSessionService-C0KbcGw9.d.ts → piChatSessionService-xnv8rcdh.d.ts} +1 -1
  25. package/dist/{sandbox-DAD8cWQR.d.ts → sandbox-KQiEdz4W.d.ts} +12 -1
  26. package/dist/server/agent-host/testing/compositionRouteProof.d.ts +8 -0
  27. package/dist/server/agent-host/testing/compositionRouteProof.js +78 -0
  28. package/dist/server/agent-host/testing/gatewayConformance.d.ts +6 -6
  29. package/dist/server/agent-host/testing/gatewayConformance.js +17 -9
  30. package/dist/server/index.d.ts +572 -370
  31. package/dist/server/index.js +69 -17
  32. package/dist/server/worker/index.d.ts +2 -2
  33. package/dist/server/worker/index.js +9 -9
  34. package/dist/shared/index.d.ts +212 -56
  35. package/dist/shared/index.js +43 -7
  36. package/dist/{types-C-Eroi__.d.ts → types-D_SD-7_l.d.ts} +304 -87
  37. package/docs/AGENT_GATEWAY_V0.md +6 -3
  38. package/docs/AGENT_PACKAGES.md +80 -0
  39. package/docs/ERROR_CODES.md +58 -0
  40. package/docs/README.md +1 -0
  41. package/docs/runtime.md +19 -2
  42. package/package.json +34 -29
  43. package/dist/DebugDrawer-RYEBQ6CO.js +0 -6
  44. package/dist/chunk-EOMY2HDT.js +0 -619
  45. package/dist/piChatEvent-BsMp3MSo.d.ts +0 -368
@@ -3,16 +3,26 @@ import {
3
3
  AgentFleetCompilationError,
4
4
  AgentFleetCompilationErrorCode,
5
5
  AuthoredAgentMaterializationError,
6
+ DEFAULT_PI_RESOURCE_DIGEST_LIMITS,
7
+ DEFAULT_READONLY_WORKSPACE_PATHS,
6
8
  EmbeddedAgentGateway,
9
+ FleetConfigError,
7
10
  InMemoryAgentRequestLedger,
11
+ LEGACY_DEFAULT_AGENT_FLEET,
8
12
  MANAGED_AGENT_MCP_DELIVERY_RULE,
9
13
  MANAGED_AGENT_MCP_ORIGIN_SURFACE,
10
14
  ManagedAgentMcpDelegateController,
11
15
  ManagedAgentMcpError,
12
16
  REMOTE_WORKER_PROVIDER,
13
17
  REMOTE_WORKER_RUNTIME_CWD,
18
+ RUNTIME_FILESYSTEM_BINDING_DUPLICATE_CODE,
19
+ RUNTIME_READONLY_FILESYSTEM_POLICY_INVALID_CODE,
14
20
  RemoteWorkerClient,
15
21
  RemoteWorkerClientError,
22
+ RuntimeFilesystemBindingConfigurationError,
23
+ RuntimeReadonlyFilesystemPolicyError,
24
+ SqliteAgentRequestLedger,
25
+ TrustedAgentCompositionError,
16
26
  UV_SETUP_COMMANDS,
17
27
  WORKER_INTERNAL_TOKEN_HEADER,
18
28
  WORKER_REQUEST_ID_HEADER,
@@ -21,12 +31,13 @@ import {
21
31
  autoDetectMode,
22
32
  buildDeploymentSnapshotRecipe,
23
33
  compileAgentDirectory,
34
+ compilePersonaPackageDirectory,
24
35
  constantTimeTokenEqual,
25
- createAgent,
26
- createAgentApp,
27
36
  createAgentHost,
28
- createAgentHostLegacyRoutePolicy,
29
37
  createAuthMiddleware,
38
+ createBlaxelSandboxModeAdapter,
39
+ createBoundWorkspaceAgentDispatcher,
40
+ createConfiguredAgentHostAgentSpec,
30
41
  createDirectModeAdapter,
31
42
  createEnvironmentProvisioningFingerprint,
32
43
  createFakeAuthorityVerifierV1,
@@ -36,6 +47,9 @@ import {
36
47
  createManagedAgentMcpDelegateController,
37
48
  createManagedAgentMcpHttpHandler,
38
49
  createManagedAgentMcpServer,
50
+ createPiResourceDigestFence,
51
+ createPiResourceDigestInput,
52
+ createPluginDiagnosticsTool,
39
53
  createProviderRuntimeModeAdapter,
40
54
  createRemoteWorkerModeAdapter,
41
55
  createRemoteWorkerSandbox,
@@ -43,46 +57,62 @@ import {
43
57
  createResolvedAgentDigest,
44
58
  createResolvedRuntimeScopeIdentity,
45
59
  createSandboxRuntimeModeAdapter,
60
+ createStandaloneAgentHostApp,
61
+ createUserFilesystemBinding,
46
62
  createValidatingAgentFleetCompiler,
47
63
  createVercelSandboxModeAdapter,
48
64
  decodeBytesFromWorker,
65
+ deepLinkRoutes,
66
+ digestPiResourceInputs,
49
67
  encodeBytesForWorker,
50
68
  hasBwrap,
69
+ loadConfiguredAgentFleet,
51
70
  materializeAgentDirectory,
71
+ mergeRuntimeFilesystemBindings,
52
72
  normalizeMeteringUsage,
73
+ normalizeRuntimeReadonlyFilesystemPolicy,
74
+ parseSkillMetadataFrontmatter,
53
75
  prepareDeploymentSnapshot,
76
+ projectAuthorizedSessionRunDetails,
54
77
  provisionRuntimeWorkspace,
55
78
  provisionWorkspaceRuntime,
56
- registerAgentRoutes,
79
+ registerAgentHostEnvironmentRoutes,
57
80
  registerShareEntryResources,
58
81
  resolveAgentDeployment,
59
82
  resolveBuiltinRuntimeLayoutRoot,
83
+ resolveDefaultAgentFleet,
60
84
  resolveMode,
85
+ resolveRuntimeReadonlyFilesystemAccess,
61
86
  resolveWorkspaceRoot,
62
87
  sandboxRuntimeHostOperations,
63
88
  shareResourceUri,
64
- withResolvedCredential
65
- } from "../chunk-2EMAKBVR.js";
89
+ withResolvedCredential,
90
+ withRuntimeEnvContributions
91
+ } from "../chunk-CXMM24NW.js";
66
92
  import {
67
93
  PI_PACKAGE_RESOURCE_FILTERS,
68
94
  compactPiPackages,
69
95
  createResourceSettingsManager,
70
96
  mergePiPackageSources,
71
97
  piPackageSourceKey
72
- } from "../chunk-2TMS2RU2.js";
73
- import "../chunk-EOMY2HDT.js";
74
- import "../chunk-NITBKFG6.js";
75
- import "../chunk-AQBXNPMD.js";
98
+ } from "../chunk-WC5KBGP2.js";
99
+ import "../chunk-3OEDBRKY.js";
100
+ import "../chunk-4IQ4HHBG.js";
76
101
  import "../chunk-WSQ5QNIY.js";
77
- import "../chunk-OFQ7J6SI.js";
78
- import "../chunk-2GBHYJVC.js";
102
+ import "../chunk-LSO2AO6Q.js";
103
+ import "../chunk-YGRQ4Q5P.js";
104
+ import "../chunk-VXF5DWS6.js";
79
105
  export {
80
106
  AgentDirectoryCompilerError,
81
107
  AgentFleetCompilationError,
82
108
  AgentFleetCompilationErrorCode,
83
109
  AuthoredAgentMaterializationError,
110
+ DEFAULT_PI_RESOURCE_DIGEST_LIMITS,
111
+ DEFAULT_READONLY_WORKSPACE_PATHS,
84
112
  EmbeddedAgentGateway,
113
+ FleetConfigError,
85
114
  InMemoryAgentRequestLedger,
115
+ LEGACY_DEFAULT_AGENT_FLEET,
86
116
  MANAGED_AGENT_MCP_DELIVERY_RULE,
87
117
  MANAGED_AGENT_MCP_ORIGIN_SURFACE,
88
118
  ManagedAgentMcpDelegateController,
@@ -90,8 +120,14 @@ export {
90
120
  PI_PACKAGE_RESOURCE_FILTERS,
91
121
  REMOTE_WORKER_PROVIDER,
92
122
  REMOTE_WORKER_RUNTIME_CWD,
123
+ RUNTIME_FILESYSTEM_BINDING_DUPLICATE_CODE,
124
+ RUNTIME_READONLY_FILESYSTEM_POLICY_INVALID_CODE,
93
125
  RemoteWorkerClient,
94
126
  RemoteWorkerClientError,
127
+ RuntimeFilesystemBindingConfigurationError,
128
+ RuntimeReadonlyFilesystemPolicyError,
129
+ SqliteAgentRequestLedger,
130
+ TrustedAgentCompositionError,
95
131
  UV_SETUP_COMMANDS,
96
132
  WORKER_INTERNAL_TOKEN_HEADER,
97
133
  WORKER_REQUEST_ID_HEADER,
@@ -101,12 +137,13 @@ export {
101
137
  buildDeploymentSnapshotRecipe,
102
138
  compactPiPackages,
103
139
  compileAgentDirectory,
140
+ compilePersonaPackageDirectory,
104
141
  constantTimeTokenEqual,
105
- createAgent,
106
- createAgentApp,
107
142
  createAuthMiddleware as createAgentAuthMiddleware,
108
143
  createAgentHost,
109
- createAgentHostLegacyRoutePolicy,
144
+ createBlaxelSandboxModeAdapter,
145
+ createBoundWorkspaceAgentDispatcher,
146
+ createConfiguredAgentHostAgentSpec,
110
147
  createDirectModeAdapter,
111
148
  createEnvironmentProvisioningFingerprint,
112
149
  createFakeAuthorityVerifierV1,
@@ -116,6 +153,9 @@ export {
116
153
  createManagedAgentMcpDelegateController,
117
154
  createManagedAgentMcpHttpHandler,
118
155
  createManagedAgentMcpServer,
156
+ createPiResourceDigestFence,
157
+ createPiResourceDigestInput,
158
+ createPluginDiagnosticsTool,
119
159
  createProviderRuntimeModeAdapter,
120
160
  createRemoteWorkerModeAdapter,
121
161
  createRemoteWorkerSandbox,
@@ -124,25 +164,37 @@ export {
124
164
  createResolvedRuntimeScopeIdentity,
125
165
  createResourceSettingsManager,
126
166
  createSandboxRuntimeModeAdapter,
167
+ createStandaloneAgentHostApp,
168
+ createUserFilesystemBinding,
127
169
  createValidatingAgentFleetCompiler,
128
170
  createVercelSandboxModeAdapter,
129
171
  decodeBytesFromWorker,
172
+ deepLinkRoutes,
173
+ digestPiResourceInputs,
130
174
  encodeBytesForWorker,
131
175
  hasBwrap,
176
+ loadConfiguredAgentFleet,
132
177
  materializeAgentDirectory,
133
178
  mergePiPackageSources,
179
+ mergeRuntimeFilesystemBindings,
134
180
  normalizeMeteringUsage,
181
+ normalizeRuntimeReadonlyFilesystemPolicy,
182
+ parseSkillMetadataFrontmatter,
135
183
  piPackageSourceKey,
136
184
  prepareDeploymentSnapshot,
185
+ projectAuthorizedSessionRunDetails,
137
186
  provisionRuntimeWorkspace,
138
187
  provisionWorkspaceRuntime,
139
- registerAgentRoutes,
188
+ registerAgentHostEnvironmentRoutes,
140
189
  registerShareEntryResources,
141
190
  resolveAgentDeployment,
142
191
  resolveBuiltinRuntimeLayoutRoot,
192
+ resolveDefaultAgentFleet,
143
193
  resolveMode,
194
+ resolveRuntimeReadonlyFilesystemAccess,
144
195
  resolveWorkspaceRoot,
145
196
  sandboxRuntimeHostOperations,
146
197
  shareResourceUri,
147
- withResolvedCredential
198
+ withResolvedCredential,
199
+ withRuntimeEnvContributions
148
200
  };
@@ -1,8 +1,8 @@
1
1
  import { FastifyInstance, FastifyRequest, FastifyReply, FastifyServerOptions } from 'fastify';
2
2
  import { BwrapResourceLimits } from '@hachej/boring-sandbox/providers/bwrap';
3
3
  import { SandboxProviderV1 } from '@hachej/boring-sandbox/shared';
4
- import { b as Workspace, S as Sandbox } from '../../sandbox-DAD8cWQR.js';
5
- import { R as RemoteWorkerWorkspaceOp, a as RemoteWorkerWorkspaceResult } from '../../middleware-CzW8n7B7.js';
4
+ import { b as Workspace, S as Sandbox } from '../../sandbox-KQiEdz4W.js';
5
+ import { R as RemoteWorkerWorkspaceOp, a as RemoteWorkerWorkspaceResult } from '../../middleware-Cq_cYHjJ.js';
6
6
 
7
7
  interface WorkerConfig {
8
8
  workspaceRoot: string;
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  WORKER_INTERNAL_TOKEN_HEADER,
3
3
  constantTimeTokenEqual
4
- } from "../../chunk-2EMAKBVR.js";
5
- import "../../chunk-2TMS2RU2.js";
6
- import "../../chunk-EOMY2HDT.js";
7
- import "../../chunk-NITBKFG6.js";
8
- import "../../chunk-AQBXNPMD.js";
4
+ } from "../../chunk-CXMM24NW.js";
5
+ import "../../chunk-WC5KBGP2.js";
6
+ import "../../chunk-3OEDBRKY.js";
7
+ import "../../chunk-4IQ4HHBG.js";
9
8
  import "../../chunk-WSQ5QNIY.js";
10
- import "../../chunk-OFQ7J6SI.js";
11
- import "../../chunk-2GBHYJVC.js";
9
+ import "../../chunk-LSO2AO6Q.js";
10
+ import "../../chunk-YGRQ4Q5P.js";
11
+ import "../../chunk-VXF5DWS6.js";
12
12
 
13
13
  // src/server/worker/index.ts
14
14
  import Fastify from "fastify";
@@ -119,8 +119,8 @@ function buildExecEnv(input) {
119
119
  }
120
120
 
121
121
  // src/server/worker/workspace.ts
122
- import { mkdir } from "fs/promises";
123
- import { join } from "path";
122
+ import { mkdir } from "node:fs/promises";
123
+ import { join } from "node:path";
124
124
  var WORKSPACE_UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
125
125
  function assertSafeWorkspaceId(workspaceId) {
126
126
  const normalized = workspaceId.trim().toLowerCase();