@hachej/boring-agent 0.1.90 → 0.1.91
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-4PKGVPJA.js → chunk-2GBHYJVC.js} +27 -5
- package/dist/{chunk-5CYVBVP3.js → chunk-BHH5NH7P.js} +4766 -2153
- package/dist/{chunk-BEFJNMKQ.js → chunk-CJ2BW2W2.js} +23 -8
- package/dist/{chunk-F7ZS27HE.js → chunk-IWBC6SF7.js} +93 -19
- package/dist/chunk-NITBKFG6.js +1246 -0
- package/dist/{chunk-JEDRQAR5.js → chunk-PZC76CIA.js} +7 -1
- package/dist/core/index.d.ts +5 -5
- package/dist/core/index.js +2 -2
- package/dist/{createHarness-UCCGMVQJ.js → createHarness-PMYRKDE4.js} +2 -2
- package/dist/errors-BEmw9HMp.d.ts +200 -0
- package/dist/front/index.d.ts +20 -4
- package/dist/front/index.js +172 -44
- package/dist/{harness-Rbkdpvse.d.ts → harness-Bt_GMNYR.d.ts} +2 -2
- package/dist/{workspaceAgentDispatcher-50Uzuxhs.d.ts → lease-2aXepSBL.d.ts} +266 -57
- package/dist/{protocol-CDA4bcP9.d.ts → middleware-CzW8n7B7.d.ts} +20 -2
- package/dist/piChatEvent-DBO3M5lu.d.ts +367 -0
- package/dist/{piChatSessionService-DDKPOj4x.d.ts → piChatSessionService-BaaVWke7.d.ts} +5 -1
- package/dist/{sandbox-OEG_l9GE.d.ts → sandbox-DAD8cWQR.d.ts} +14 -1
- package/dist/server/agent-host/testing/gatewayConformance.d.ts +41 -0
- package/dist/server/agent-host/testing/gatewayConformance.js +465 -0
- package/dist/server/index.d.ts +451 -528
- package/dist/server/index.js +43 -9
- package/dist/server/worker/index.d.ts +2 -2
- package/dist/server/worker/index.js +7 -7
- package/dist/shared/index.d.ts +109 -41
- package/dist/shared/index.js +65 -282
- package/dist/types-jcMapYr9.d.ts +759 -0
- package/docs/ACCESSIBILITY.md +4 -5
- package/docs/API.md +3 -0
- package/docs/AUTHORING.md +68 -0
- package/docs/ERROR_CODES.md +27 -6
- package/docs/README.md +1 -0
- package/package.json +17 -8
- package/dist/chunk-CFQQXJKK.js +0 -385
- package/dist/chunk-DGRKMMXO.js +0 -8
- package/dist/piChatEvent-CHgln6yx.d.ts +0 -367
package/dist/server/index.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentDirectoryCompilerError,
|
|
3
|
+
AgentFleetCompilationError,
|
|
4
|
+
AgentFleetCompilationErrorCode,
|
|
3
5
|
AuthoredAgentMaterializationError,
|
|
6
|
+
EmbeddedAgentGateway,
|
|
7
|
+
InMemoryAgentRequestLedger,
|
|
4
8
|
MANAGED_AGENT_MCP_DELIVERY_RULE,
|
|
5
9
|
MANAGED_AGENT_MCP_ORIGIN_SURFACE,
|
|
6
10
|
ManagedAgentMcpDelegateController,
|
|
@@ -20,7 +24,14 @@ import {
|
|
|
20
24
|
constantTimeTokenEqual,
|
|
21
25
|
createAgent,
|
|
22
26
|
createAgentApp,
|
|
27
|
+
createAgentHost,
|
|
28
|
+
createAgentHostLegacyRoutePolicy,
|
|
29
|
+
createAuthMiddleware,
|
|
23
30
|
createDirectModeAdapter,
|
|
31
|
+
createEnvironmentProvisioningFingerprint,
|
|
32
|
+
createFakeAuthorityVerifierV1,
|
|
33
|
+
createHostSideCredentialResolverV1,
|
|
34
|
+
createInMemoryCredentialBackendV1,
|
|
24
35
|
createLocalModeAdapter,
|
|
25
36
|
createManagedAgentMcpDelegateController,
|
|
26
37
|
createManagedAgentMcpHttpHandler,
|
|
@@ -30,6 +41,9 @@ import {
|
|
|
30
41
|
createRemoteWorkerSandbox,
|
|
31
42
|
createRemoteWorkerWorkspace,
|
|
32
43
|
createResolvedAgentDigest,
|
|
44
|
+
createResolvedRuntimeScopeIdentity,
|
|
45
|
+
createSandboxRuntimeModeAdapter,
|
|
46
|
+
createValidatingAgentFleetCompiler,
|
|
33
47
|
createVercelSandboxModeAdapter,
|
|
34
48
|
decodeBytesFromWorker,
|
|
35
49
|
encodeBytesForWorker,
|
|
@@ -42,26 +56,33 @@ import {
|
|
|
42
56
|
registerAgentRoutes,
|
|
43
57
|
registerShareEntryResources,
|
|
44
58
|
resolveAgentDeployment,
|
|
59
|
+
resolveBuiltinRuntimeLayoutRoot,
|
|
45
60
|
resolveMode,
|
|
46
61
|
resolveWorkspaceRoot,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
import "../chunk-WSQ5QNIY.js";
|
|
52
|
-
import "../chunk-JEDRQAR5.js";
|
|
62
|
+
sandboxRuntimeHostOperations,
|
|
63
|
+
shareResourceUri,
|
|
64
|
+
withResolvedCredential
|
|
65
|
+
} from "../chunk-BHH5NH7P.js";
|
|
53
66
|
import {
|
|
54
67
|
PI_PACKAGE_RESOURCE_FILTERS,
|
|
55
68
|
compactPiPackages,
|
|
56
69
|
createResourceSettingsManager,
|
|
57
70
|
mergePiPackageSources,
|
|
58
71
|
piPackageSourceKey
|
|
59
|
-
} from "../chunk-
|
|
72
|
+
} from "../chunk-IWBC6SF7.js";
|
|
73
|
+
import "../chunk-CJ2BW2W2.js";
|
|
74
|
+
import "../chunk-NITBKFG6.js";
|
|
60
75
|
import "../chunk-AQBXNPMD.js";
|
|
61
|
-
import "../chunk-
|
|
76
|
+
import "../chunk-WSQ5QNIY.js";
|
|
77
|
+
import "../chunk-PZC76CIA.js";
|
|
78
|
+
import "../chunk-2GBHYJVC.js";
|
|
62
79
|
export {
|
|
63
80
|
AgentDirectoryCompilerError,
|
|
81
|
+
AgentFleetCompilationError,
|
|
82
|
+
AgentFleetCompilationErrorCode,
|
|
64
83
|
AuthoredAgentMaterializationError,
|
|
84
|
+
EmbeddedAgentGateway,
|
|
85
|
+
InMemoryAgentRequestLedger,
|
|
65
86
|
MANAGED_AGENT_MCP_DELIVERY_RULE,
|
|
66
87
|
MANAGED_AGENT_MCP_ORIGIN_SURFACE,
|
|
67
88
|
ManagedAgentMcpDelegateController,
|
|
@@ -83,7 +104,14 @@ export {
|
|
|
83
104
|
constantTimeTokenEqual,
|
|
84
105
|
createAgent,
|
|
85
106
|
createAgentApp,
|
|
107
|
+
createAuthMiddleware as createAgentAuthMiddleware,
|
|
108
|
+
createAgentHost,
|
|
109
|
+
createAgentHostLegacyRoutePolicy,
|
|
86
110
|
createDirectModeAdapter,
|
|
111
|
+
createEnvironmentProvisioningFingerprint,
|
|
112
|
+
createFakeAuthorityVerifierV1,
|
|
113
|
+
createHostSideCredentialResolverV1,
|
|
114
|
+
createInMemoryCredentialBackendV1,
|
|
87
115
|
createLocalModeAdapter,
|
|
88
116
|
createManagedAgentMcpDelegateController,
|
|
89
117
|
createManagedAgentMcpHttpHandler,
|
|
@@ -93,7 +121,10 @@ export {
|
|
|
93
121
|
createRemoteWorkerSandbox,
|
|
94
122
|
createRemoteWorkerWorkspace,
|
|
95
123
|
createResolvedAgentDigest,
|
|
124
|
+
createResolvedRuntimeScopeIdentity,
|
|
96
125
|
createResourceSettingsManager,
|
|
126
|
+
createSandboxRuntimeModeAdapter,
|
|
127
|
+
createValidatingAgentFleetCompiler,
|
|
97
128
|
createVercelSandboxModeAdapter,
|
|
98
129
|
decodeBytesFromWorker,
|
|
99
130
|
encodeBytesForWorker,
|
|
@@ -108,7 +139,10 @@ export {
|
|
|
108
139
|
registerAgentRoutes,
|
|
109
140
|
registerShareEntryResources,
|
|
110
141
|
resolveAgentDeployment,
|
|
142
|
+
resolveBuiltinRuntimeLayoutRoot,
|
|
111
143
|
resolveMode,
|
|
112
144
|
resolveWorkspaceRoot,
|
|
113
|
-
|
|
145
|
+
sandboxRuntimeHostOperations,
|
|
146
|
+
shareResourceUri,
|
|
147
|
+
withResolvedCredential
|
|
114
148
|
};
|
|
@@ -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 {
|
|
5
|
-
import { R as RemoteWorkerWorkspaceOp, a as RemoteWorkerWorkspaceResult } from '../../
|
|
4
|
+
import { b as Workspace, S as Sandbox } from '../../sandbox-DAD8cWQR.js';
|
|
5
|
+
import { R as RemoteWorkerWorkspaceOp, a as RemoteWorkerWorkspaceResult } from '../../middleware-CzW8n7B7.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-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-JEDRQAR5.js";
|
|
9
|
-
import "../../chunk-F7ZS27HE.js";
|
|
4
|
+
} from "../../chunk-BHH5NH7P.js";
|
|
5
|
+
import "../../chunk-IWBC6SF7.js";
|
|
6
|
+
import "../../chunk-CJ2BW2W2.js";
|
|
7
|
+
import "../../chunk-NITBKFG6.js";
|
|
10
8
|
import "../../chunk-AQBXNPMD.js";
|
|
11
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-WSQ5QNIY.js";
|
|
10
|
+
import "../../chunk-PZC76CIA.js";
|
|
11
|
+
import "../../chunk-2GBHYJVC.js";
|
|
12
12
|
|
|
13
13
|
// src/server/worker/index.ts
|
|
14
14
|
import Fastify from "fastify";
|