@slopus/happy-agent-supervisor 0.0.12-win32-x64 → 0.0.12
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/SupervisorPolicy.d.ts +77 -0
- package/dist/SupervisorPolicy.d.ts.map +1 -0
- package/dist/SupervisorPolicy.js +61 -0
- package/dist/SupervisorPolicy.js.map +1 -0
- package/dist/SupervisorServicePolicy.d.ts +25 -0
- package/dist/SupervisorServicePolicy.d.ts.map +1 -0
- package/dist/SupervisorServicePolicy.js +24 -0
- package/dist/SupervisorServicePolicy.js.map +1 -0
- package/dist/impl/resolveBinaryForTarget.d.ts +3 -0
- package/dist/impl/resolveBinaryForTarget.d.ts.map +1 -0
- package/dist/impl/resolveBinaryForTarget.js +39 -0
- package/dist/impl/resolveBinaryForTarget.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/platform.d.ts +43 -0
- package/dist/platform.d.ts.map +1 -0
- package/dist/platform.js +46 -0
- package/dist/platform.js.map +1 -0
- package/dist/resolveLinuxSupervisorBinary.d.ts +3 -0
- package/dist/resolveLinuxSupervisorBinary.d.ts.map +1 -0
- package/dist/resolveLinuxSupervisorBinary.js +11 -0
- package/dist/resolveLinuxSupervisorBinary.js.map +1 -0
- package/dist/resolveSupervisorBinary.d.ts +2 -0
- package/dist/resolveSupervisorBinary.d.ts.map +1 -0
- package/dist/resolveSupervisorBinary.js +14 -0
- package/dist/resolveSupervisorBinary.js.map +1 -0
- package/package.json +31 -18
- package/SHA256SUMS +0 -5
- package/vendor/x86_64-pc-windows-gnu/bin/LICENSE.codex +0 -201
- package/vendor/x86_64-pc-windows-gnu/bin/NOTICE.codex +0 -6
- package/vendor/x86_64-pc-windows-gnu/bin/happy-agent-supervisor.exe +0 -0
- package/vendor/x86_64-pc-windows-gnu/bin/happy-sandbox-runner.exe +0 -0
- package/vendor/x86_64-pc-windows-gnu/bin/happy-sandbox-setup.exe +0 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { type Static } from "@sinclair/typebox";
|
|
2
|
+
export declare const supervisorPermissionModeSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"read_only">, import("@sinclair/typebox").TLiteral<"workspace_write">, import("@sinclair/typebox").TLiteral<"auto">, import("@sinclair/typebox").TLiteral<"full_access">]>;
|
|
3
|
+
export type SupervisorPermissionMode = Static<typeof supervisorPermissionModeSchema>;
|
|
4
|
+
export declare const supervisorProxyFrontEndSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"http">, import("@sinclair/typebox").TLiteral<"socks5">]>;
|
|
5
|
+
export type SupervisorProxyFrontEnd = Static<typeof supervisorProxyFrontEndSchema>;
|
|
6
|
+
/**
|
|
7
|
+
* The front-ends to expose inside the sandbox.
|
|
8
|
+
*
|
|
9
|
+
* The supervisor provides the proxy itself. It forks an egress process before the sandbox exists
|
|
10
|
+
* and joins the two with a socketpair, so nothing inside the sandbox reaches the proxy — or
|
|
11
|
+
* anything else — by address, and the caller supplies neither a descriptor nor a token. Which hosts
|
|
12
|
+
* that egress process may reach comes from `network.allowedHosts`.
|
|
13
|
+
*/
|
|
14
|
+
export declare const supervisorOutgoingProxySchema: import("@sinclair/typebox").TObject<{
|
|
15
|
+
frontEnds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"http">, import("@sinclair/typebox").TLiteral<"socks5">]>>;
|
|
16
|
+
}>;
|
|
17
|
+
export type SupervisorOutgoingProxy = Static<typeof supervisorOutgoingProxySchema>;
|
|
18
|
+
export declare const supervisorNetworkPolicySchema: import("@sinclair/typebox").TObject<{
|
|
19
|
+
egress: import("@sinclair/typebox").TBoolean;
|
|
20
|
+
allowedHosts: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
21
|
+
localBinding: import("@sinclair/typebox").TBoolean;
|
|
22
|
+
outgoingProxy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
23
|
+
frontEnds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"http">, import("@sinclair/typebox").TLiteral<"socks5">]>>;
|
|
24
|
+
}>>;
|
|
25
|
+
}>;
|
|
26
|
+
export type SupervisorNetworkPolicy = Static<typeof supervisorNetworkPolicySchema>;
|
|
27
|
+
/**
|
|
28
|
+
* The native supervisor's input. Its names intentionally match ComputePermissions one-for-one.
|
|
29
|
+
*
|
|
30
|
+
* The working directory is the workspace root for `workspace_write` and `auto`; keeping it out of
|
|
31
|
+
* the document prevents two sources of truth for the process cwd. A non-empty `allowedHosts`
|
|
32
|
+
* requires `network.outgoingProxy`, because the host list is enforced in the egress process the
|
|
33
|
+
* proxy creates, and without a proxy there would be nothing enforcing it. Each entry names one host
|
|
34
|
+
* or one `*.suffix`; a bare `*` is refused, and open egress is expressed by configuring no proxy.
|
|
35
|
+
*/
|
|
36
|
+
export declare const supervisorPolicySchema: import("@sinclair/typebox").TObject<{
|
|
37
|
+
mode: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"read_only">, import("@sinclair/typebox").TLiteral<"workspace_write">, import("@sinclair/typebox").TLiteral<"auto">, import("@sinclair/typebox").TLiteral<"full_access">]>;
|
|
38
|
+
allowedReadPaths: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
39
|
+
deniedReadPaths: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
40
|
+
allowedWritePaths: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
41
|
+
deniedWritePaths: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
42
|
+
/** Windows placeholder type for protected project files that may be absent. */
|
|
43
|
+
deniedWriteFilePaths: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
44
|
+
network: import("@sinclair/typebox").TObject<{
|
|
45
|
+
egress: import("@sinclair/typebox").TBoolean;
|
|
46
|
+
allowedHosts: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
47
|
+
localBinding: import("@sinclair/typebox").TBoolean;
|
|
48
|
+
outgoingProxy: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
49
|
+
frontEnds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"http">, import("@sinclair/typebox").TLiteral<"socks5">]>>;
|
|
50
|
+
}>>;
|
|
51
|
+
}>;
|
|
52
|
+
/** Mandatory service isolation; never interpreted as ordinary shell permissions. */
|
|
53
|
+
service: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
54
|
+
root: import("@sinclair/typebox").TString;
|
|
55
|
+
cwd: import("@sinclair/typebox").TString;
|
|
56
|
+
inputs: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
57
|
+
source: import("@sinclair/typebox").TString;
|
|
58
|
+
destination: import("@sinclair/typebox").TString;
|
|
59
|
+
}>>;
|
|
60
|
+
scratch: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
61
|
+
cgroupParent: import("@sinclair/typebox").TString;
|
|
62
|
+
executionId: import("@sinclair/typebox").TString;
|
|
63
|
+
controllerPid: import("@sinclair/typebox").TInteger;
|
|
64
|
+
bridgeSocket: import("@sinclair/typebox").TString;
|
|
65
|
+
bridgeToken: import("@sinclair/typebox").TString;
|
|
66
|
+
port: import("@sinclair/typebox").TInteger;
|
|
67
|
+
memoryMiB: import("@sinclair/typebox").TInteger;
|
|
68
|
+
processes: import("@sinclair/typebox").TInteger;
|
|
69
|
+
outbound: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
70
|
+
hostname: import("@sinclair/typebox").TString;
|
|
71
|
+
port: import("@sinclair/typebox").TInteger;
|
|
72
|
+
}>>;
|
|
73
|
+
}>>;
|
|
74
|
+
}>;
|
|
75
|
+
export type SupervisorPolicy = Static<typeof supervisorPolicySchema>;
|
|
76
|
+
export declare function parseSupervisorPolicy(value: unknown): SupervisorPolicy;
|
|
77
|
+
//# sourceMappingURL=SupervisorPolicy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SupervisorPolicy.d.ts","sourceRoot":"","sources":["../sources/SupervisorPolicy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,mBAAmB,CAAC;AAItD,eAAO,MAAM,8BAA8B,qPAKzC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAErF,eAAO,MAAM,6BAA6B,oIAGxC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEnF;;;;;;;GAOG;AACH,eAAO,MAAM,6BAA6B;;EAKzC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEnF,eAAO,MAAM,6BAA6B;;;;;;;EAQzC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEnF;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB;;;;;;IAO3B,+EAA+E;;;;;;;;;;IAG/E,oFAAoF;;;;;;;;;;;;;;;;;;;;;;EAI3F,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAErE,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,gBAAgB,CAQtE"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Type } from "@sinclair/typebox";
|
|
2
|
+
import { Value } from "@sinclair/typebox/value";
|
|
3
|
+
import { supervisorServicePolicySchema } from "./SupervisorServicePolicy.js";
|
|
4
|
+
export const supervisorPermissionModeSchema = Type.Union([
|
|
5
|
+
Type.Literal("read_only"),
|
|
6
|
+
Type.Literal("workspace_write"),
|
|
7
|
+
Type.Literal("auto"),
|
|
8
|
+
Type.Literal("full_access"),
|
|
9
|
+
]);
|
|
10
|
+
export const supervisorProxyFrontEndSchema = Type.Union([
|
|
11
|
+
Type.Literal("http"),
|
|
12
|
+
Type.Literal("socks5"),
|
|
13
|
+
]);
|
|
14
|
+
/**
|
|
15
|
+
* The front-ends to expose inside the sandbox.
|
|
16
|
+
*
|
|
17
|
+
* The supervisor provides the proxy itself. It forks an egress process before the sandbox exists
|
|
18
|
+
* and joins the two with a socketpair, so nothing inside the sandbox reaches the proxy — or
|
|
19
|
+
* anything else — by address, and the caller supplies neither a descriptor nor a token. Which hosts
|
|
20
|
+
* that egress process may reach comes from `network.allowedHosts`.
|
|
21
|
+
*/
|
|
22
|
+
export const supervisorOutgoingProxySchema = Type.Object({
|
|
23
|
+
frontEnds: Type.Array(supervisorProxyFrontEndSchema, { minItems: 1 }),
|
|
24
|
+
}, { additionalProperties: false });
|
|
25
|
+
export const supervisorNetworkPolicySchema = Type.Object({
|
|
26
|
+
egress: Type.Boolean(),
|
|
27
|
+
allowedHosts: Type.Optional(Type.Array(Type.String())),
|
|
28
|
+
localBinding: Type.Boolean(),
|
|
29
|
+
outgoingProxy: Type.Optional(supervisorOutgoingProxySchema),
|
|
30
|
+
}, { additionalProperties: false });
|
|
31
|
+
/**
|
|
32
|
+
* The native supervisor's input. Its names intentionally match ComputePermissions one-for-one.
|
|
33
|
+
*
|
|
34
|
+
* The working directory is the workspace root for `workspace_write` and `auto`; keeping it out of
|
|
35
|
+
* the document prevents two sources of truth for the process cwd. A non-empty `allowedHosts`
|
|
36
|
+
* requires `network.outgoingProxy`, because the host list is enforced in the egress process the
|
|
37
|
+
* proxy creates, and without a proxy there would be nothing enforcing it. Each entry names one host
|
|
38
|
+
* or one `*.suffix`; a bare `*` is refused, and open egress is expressed by configuring no proxy.
|
|
39
|
+
*/
|
|
40
|
+
export const supervisorPolicySchema = Type.Object({
|
|
41
|
+
mode: supervisorPermissionModeSchema,
|
|
42
|
+
allowedReadPaths: Type.Optional(Type.Array(Type.String())),
|
|
43
|
+
deniedReadPaths: Type.Optional(Type.Array(Type.String())),
|
|
44
|
+
allowedWritePaths: Type.Optional(Type.Array(Type.String())),
|
|
45
|
+
deniedWritePaths: Type.Optional(Type.Array(Type.String())),
|
|
46
|
+
/** Windows placeholder type for protected project files that may be absent. */
|
|
47
|
+
deniedWriteFilePaths: Type.Optional(Type.Array(Type.String())),
|
|
48
|
+
network: supervisorNetworkPolicySchema,
|
|
49
|
+
/** Mandatory service isolation; never interpreted as ordinary shell permissions. */
|
|
50
|
+
service: Type.Optional(supervisorServicePolicySchema),
|
|
51
|
+
}, { additionalProperties: false });
|
|
52
|
+
export function parseSupervisorPolicy(value) {
|
|
53
|
+
if (!Value.Check(supervisorPolicySchema, value)) {
|
|
54
|
+
const details = [...Value.Errors(supervisorPolicySchema, value)]
|
|
55
|
+
.map((error) => `${error.path || "/"} ${error.message}`)
|
|
56
|
+
.join("; ");
|
|
57
|
+
throw new Error(`Invalid supervisor policy: ${details}`);
|
|
58
|
+
}
|
|
59
|
+
return Value.Parse(supervisorPolicySchema, value);
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=SupervisorPolicy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SupervisorPolicy.js","sourceRoot":"","sources":["../sources/SupervisorPolicy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAChD,OAAO,EAAE,6BAA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ller input, never a model-facing policy or service resource. */
|
|
3
|
+
export declare const supervisorServicePolicySchema: import("@sinclair/typebox").TObject<{
|
|
4
|
+
root: import("@sinclair/typebox").TString;
|
|
5
|
+
cwd: import("@sinclair/typebox").TString;
|
|
6
|
+
inputs: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
7
|
+
source: import("@sinclair/typebox").TString;
|
|
8
|
+
destination: import("@sinclair/typebox").TString;
|
|
9
|
+
}>>;
|
|
10
|
+
scratch: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
11
|
+
cgroupParent: import("@sinclair/typebox").TString;
|
|
12
|
+
executionId: import("@sinclair/typebox").TString;
|
|
13
|
+
controllerPid: import("@sinclair/typebox").TInteger;
|
|
14
|
+
bridgeSocket: import("@sinclair/typebox").TString;
|
|
15
|
+
bridgeToken: import("@sinclair/typebox").TString;
|
|
16
|
+
port: import("@sinclair/typebox").TInteger;
|
|
17
|
+
memoryMiB: import("@sinclair/typebox").TInteger;
|
|
18
|
+
processes: import("@sinclair/typebox").TInteger;
|
|
19
|
+
outbound: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
20
|
+
hostname: import("@sinclair/typebox").TString;
|
|
21
|
+
port: import("@sinclair/typebox").TInteger;
|
|
22
|
+
}>>;
|
|
23
|
+
}>;
|
|
24
|
+
export type SupervisorServicePolicy = Static<typeof supervisorServicePolicySchema>;
|
|
25
|
+
//# sourceMappingURL=SupervisorServicePolicy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SupervisorServicePolicy.d.ts","sourceRoot":"","sources":["../sources/SupervisorServicePolicy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEtD,iFAAiF;AACjF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;EAmCzC,CAAC;AACF,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Type } from "@sinclair/typebox";
|
|
2
|
+
/** Trusted controller input, never a model-facing policy or service resource. */
|
|
3
|
+
export const supervisorServicePolicySchema = Type.Object({
|
|
4
|
+
root: Type.String({ minLength: 2 }),
|
|
5
|
+
cwd: Type.String({ minLength: 1 }),
|
|
6
|
+
inputs: Type.Array(Type.Object({
|
|
7
|
+
source: Type.String({ minLength: 2 }),
|
|
8
|
+
destination: Type.String({ minLength: 1 }),
|
|
9
|
+
}, { additionalProperties: false }), { minItems: 1, maxItems: 128 }),
|
|
10
|
+
scratch: Type.Array(Type.String({ minLength: 1 }), { maxItems: 32 }),
|
|
11
|
+
cgroupParent: Type.String({ minLength: 2 }),
|
|
12
|
+
executionId: Type.String({ pattern: "^[a-z0-9]{16,64}$" }),
|
|
13
|
+
controllerPid: Type.Integer({ minimum: 2, maximum: 2147483647 }),
|
|
14
|
+
bridgeSocket: Type.String({ minLength: 2, maxLength: 100 }),
|
|
15
|
+
bridgeToken: Type.String({ pattern: "^[a-f0-9]{64}$" }),
|
|
16
|
+
port: Type.Integer({ minimum: 1024, maximum: 65535 }),
|
|
17
|
+
memoryMiB: Type.Integer({ minimum: 128, maximum: 1024 }),
|
|
18
|
+
processes: Type.Integer({ minimum: 1, maximum: 64 }),
|
|
19
|
+
outbound: Type.Array(Type.Object({
|
|
20
|
+
hostname: Type.String({ minLength: 1, maxLength: 253 }),
|
|
21
|
+
port: Type.Integer({ minimum: 1, maximum: 65535 }),
|
|
22
|
+
}, { additionalProperties: false }), { maxItems: 32 }),
|
|
23
|
+
}, { additionalProperties: false });
|
|
24
|
+
//# sourceMappingURL=SupervisorServicePolicy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SupervisorServicePolicy.js","sourceRoot":"","sources":["../sources/SupervisorServicePolicy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAe,MAAM,m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AE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IACrD,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IACxD,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IACpD,QAAQ,EAAE,IAAI,CAAC,KAAK,CAChB,IAAI,CAAC,MAAM,CACP;QACI,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;QACvD,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;KACrD,EACD,EAAE,oBAAoB,EAAE,KAAK,EAAE,CAClC,EACD,EAAE,QAAQ,EAAE,EAAE,EAAE,CACnB;CACJ,EACD,EAAE,oBAAoB,EAAE,KAAK,EAAE,CAClC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveBinaryForTarget.d.ts","sourceRoot":"","sources":["../../sources/impl/resolveBinaryForTarget.ts"],"names":[],"mappings":"AAKA,OAAO,EAAoB,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAIpE,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,WAAW,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAwCpF"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { existsSync } from "node:fs";
|
|
2
|
+
import { createRequire } from "node:module";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
import { fileURLToPath } from "node:url";
|
|
5
|
+
import { PLATFORM_TARGETS } from "../platform.js";
|
|
6
|
+
const require = createRequire(import.meta.url);
|
|
7
|
+
export function resolveBinaryForTarget(key, binaryPath) {
|
|
8
|
+
if (binaryPath !== undefined) {
|
|
9
|
+
const explicit = path.resolve(binaryPath);
|
|
10
|
+
if (!existsSync(explicit)) {
|
|
11
|
+
throw new Error(`Happy agent supervisor binary does not exist: ${explicit}`);
|
|
12
|
+
}
|
|
13
|
+
return explicit;
|
|
14
|
+
}
|
|
15
|
+
const platform = PLATFORM_TARGETS[key];
|
|
16
|
+
const executable = platform.os === "win32" ? "happy-agent-supervisor.exe" : "happy-agent-supervisor";
|
|
17
|
+
try {
|
|
18
|
+
const manifest = require.resolve(`${platform.alias}/package.json`);
|
|
19
|
+
const installed = path.join(path.dirname(manifest), "vendor", platform.target, "bin", executable);
|
|
20
|
+
if (existsSync(installed))
|
|
21
|
+
return installed;
|
|
22
|
+
}
|
|
23
|
+
catch {
|
|
24
|
+
// Fall through to repository-local native build locations.
|
|
25
|
+
}
|
|
26
|
+
const packageRoot = fileURLToPath(new URL("../../", import.meta.url));
|
|
27
|
+
const localCandidates = [
|
|
28
|
+
path.join(packageRoot, "native", "target", platform.target, "release", executable),
|
|
29
|
+
path.join(packageRoot, "native", "target", platform.target, "debug", executable),
|
|
30
|
+
path.join(packageRoot, "native", "target", "release", executable),
|
|
31
|
+
path.join(packageRoot, "native", "target", "debug", executable),
|
|
32
|
+
];
|
|
33
|
+
const local = localCandidates.find((candidate) => existsSync(candidate));
|
|
34
|
+
if (local !== undefined)
|
|
35
|
+
return local;
|
|
36
|
+
throw new Error(`The optional binary package ${platform.alias} is missing. Reinstall ` +
|
|
37
|
+
"@slopus/happy-agent-supervisor or build the matching native target.");
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=resolveBinaryForTarget.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveBinaryForTarget.js","sourceRoot":"","sources":["../../sources/impl/resolveBinaryForTarget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OA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I,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC,MAAM,EAAE,SAAS,EAAE,UAAU,CAAC;QAClF,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,CAAC;QAChF,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,CAAC;QACjE,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,CAAC;KAClE,CAAC;IACF,MAAM,KAAK,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC;IACzE,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAEtC,MAAM,IAAI,KAAK,CACX,+BAA+B,QAAQ,CAAC,KAAK,yBAAyB;QAClE,qEAAqE,CAC5E,CAAC;AACN,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { parseSupervisorPolicy, supervisorNetworkPolicySchema, supervisorPermissionModeSchema, supervisorPolicySchema, type SupervisorNetworkPolicy, type SupervisorPermissionMode, type SupervisorPolicy, } from "./SupervisorPolicy.js";
|
|
2
|
+
export { linuxSupervisorArchitectureSchema, type LinuxSupervisorArchitecture } from "./platform.js";
|
|
3
|
+
export { resolveLinuxSupervisorBinary } from "./resolveLinuxSupervisorBinary.js";
|
|
4
|
+
export { resolveSupervisorBinary } from "./resolveSupervisorBinary.js";
|
|
5
|
+
export { supervisorServicePolicySchema, type SupervisorServicePolicy, } from "./SupervisorServicePolicy.js";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../sources/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,qBAAqB,EACrB,6BAA6B,EAC7B,8BAA8B,EAC9B,sBAAsB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,GACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iCAAiC,EAAE,KAAK,2BAA2B,EAAE,MAAM,eAAe,CAAC;AACpG,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EACH,6BAA6B,EAC7B,KAAK,uBAAuB,GAC/B,MAAM,8BAA8B,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { parseSupervisorPolicy, supervisorNetworkPolicySchema, supervisorPermissionModeSchema, supervisorPolicySchema, } from "./SupervisorPolicy.js";
|
|
2
|
+
export { linuxSupervisorArchitectureSchema } from "./platform.js";
|
|
3
|
+
export { resolveLinuxSupervisorBinary } from "./resolveLinuxSupervisorBinary.js";
|
|
4
|
+
export { resolveSupervisorBinary } from "./resolveSupervisorBinary.js";
|
|
5
|
+
export { supervisorServicePolicySchema, } from "./SupervisorServicePolicy.js";
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../sources/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,qBAAqB,EACrB,6BAA6B,EAC7B,8BAA8B,EAC9B,sBAAsB,GAIzB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iCAAiC,EAAoC,MAAM,eAAe,CAAC;AACpG,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EACH,6BAA6B,GAEhC,MAAM,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type Static } from "@sinclair/typebox";
|
|
2
|
+
export declare const PLATFORM_TARGETS: {
|
|
3
|
+
readonly "win32-x64": {
|
|
4
|
+
readonly alias: "@slopus/happy-agent-supervisor-win32-x64";
|
|
5
|
+
readonly arch: "x64";
|
|
6
|
+
readonly os: "win32";
|
|
7
|
+
readonly tag: "win32-x64";
|
|
8
|
+
readonly target: "x86_64-pc-windows-gnu";
|
|
9
|
+
};
|
|
10
|
+
readonly "darwin-arm64": {
|
|
11
|
+
readonly alias: "@slopus/happy-agent-supervisor-darwin-arm64";
|
|
12
|
+
readonly arch: "arm64";
|
|
13
|
+
readonly os: "darwin";
|
|
14
|
+
readonly tag: "darwin-arm64";
|
|
15
|
+
readonly target: "aarch64-apple-darwin";
|
|
16
|
+
};
|
|
17
|
+
readonly "darwin-x64": {
|
|
18
|
+
readonly alias: "@slopus/happy-agent-supervisor-darwin-x64";
|
|
19
|
+
readonly arch: "x64";
|
|
20
|
+
readonly os: "darwin";
|
|
21
|
+
readonly tag: "darwin-x64";
|
|
22
|
+
readonly target: "x86_64-apple-darwin";
|
|
23
|
+
};
|
|
24
|
+
readonly "linux-arm64": {
|
|
25
|
+
readonly alias: "@slopus/happy-agent-supervisor-linux-arm64";
|
|
26
|
+
readonly arch: "arm64";
|
|
27
|
+
readonly os: "linux";
|
|
28
|
+
readonly tag: "linux-arm64";
|
|
29
|
+
readonly target: "aarch64-unknown-linux-musl";
|
|
30
|
+
};
|
|
31
|
+
readonly "linux-x64": {
|
|
32
|
+
readonly alias: "@slopus/happy-agent-supervisor-linux-x64";
|
|
33
|
+
readonly arch: "x64";
|
|
34
|
+
readonly os: "linux";
|
|
35
|
+
readonly tag: "linux-x64";
|
|
36
|
+
readonly target: "x86_64-unknown-linux-musl";
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export type PlatformKey = keyof typeof PLATFORM_TARGETS;
|
|
40
|
+
export declare const linuxSupervisorArchitectureSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"amd64">, import("@sinclair/typebox").TLiteral<"x64">, import("@sinclair/typebox").TLiteral<"x86_64">, import("@sinclair/typebox").TLiteral<"arm64">, import("@sinclair/typebox").TLiteral<"aarch64">]>;
|
|
41
|
+
/** Architecture spellings used by OCI, Node.js, and Rust target triples. */
|
|
42
|
+
export type LinuxSupervisorArchitecture = Static<typeof linuxSupervisorArchitectureSchema>;
|
|
43
|
+
//# sourceMappingURL=platform.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../sources/platform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,mBAAmB,CAAC;AAEtD,eAAO,MAAM,gBAAgB;aACzB,WAAW;iBACP,KAAK,EAAE,0CAA0C;iBACjD,IAAI,EAAE,KAAK;iBACX,EAAE,EAAE,OAAO;iBACX,GAAG,EAAE,WAAW;iBAChB,MAAM,EAAE,uBAAuB;;aAEnC,cAAc;iBACV,KAAK,EAAE,6CAA6C;iBACpD,IAAI,EAAE,OAAO;iBACb,EAAE,EAAE,QAAQ;iBACZ,GAAG,EAAE,cAAc;iBACnB,MAAM,EAAE,sBAAsB;;aAElC,YAAY;iBACR,KAAK,EAAE,2CAA2C;iBAClD,IAAI,EAAE,KAAK;iBACX,EAAE,EAAE,QAAQ;iBACZ,GAAG,EAAE,YAAY;iBACjB,MAAM,EAAE,qBAAqB;;aAEjC,aAAa;iBACT,KAAK,EAAE,4CAA4C;iBACnD,IAAI,EAAE,OAAO;iBACb,EAAE,EAAE,OAAO;iBACX,GAAG,EAAE,aAAa;iBAClB,MAAM,EAAE,4BAA4B;;aAExC,WAAW;iBACP,KAAK,EAAE,0CAA0C;iBACjD,IAAI,EAAE,KAAK;iBACX,EAAE,EAAE,OAAO;iBACX,GAAG,EAAE,WAAW;iBAChB,MAAM,EAAE,2BAA2B;;CAEjC,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,gBAAgB,CAAC;AAExD,eAAO,MAAM,iCAAiC,kRAM5C,CAAC;AAEH,4EAA4E;AAC5E,MAAM,MAAM,2BAA2B,GAAG,MAAM,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
|
package/dist/platform.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Type } from "@sinclair/typebox";
|
|
2
|
+
export const PLATFORM_TARGETS = {
|
|
3
|
+
"win32-x64": {
|
|
4
|
+
alias: "@slopus/happy-agent-supervisor-win32-x64",
|
|
5
|
+
arch: "x64",
|
|
6
|
+
os: "win32",
|
|
7
|
+
tag: "win32-x64",
|
|
8
|
+
target: "x86_64-pc-windows-gnu",
|
|
9
|
+
},
|
|
10
|
+
"darwin-arm64": {
|
|
11
|
+
alias: "@slopus/happy-agent-supervisor-darwin-arm64",
|
|
12
|
+
arch: "arm64",
|
|
13
|
+
os: "darwin",
|
|
14
|
+
tag: "darwin-arm64",
|
|
15
|
+
target: "aarch64-apple-darwin",
|
|
16
|
+
},
|
|
17
|
+
"darwin-x64": {
|
|
18
|
+
alias: "@slopus/happy-agent-supervisor-darwin-x64",
|
|
19
|
+
arch: "x64",
|
|
20
|
+
os: "darwin",
|
|
21
|
+
tag: "darwin-x64",
|
|
22
|
+
target: "x86_64-apple-darwin",
|
|
23
|
+
},
|
|
24
|
+
"linux-arm64": {
|
|
25
|
+
alias: "@slopus/happy-agent-supervisor-linux-arm64",
|
|
26
|
+
arch: "arm64",
|
|
27
|
+
os: "linux",
|
|
28
|
+
tag: "linux-arm64",
|
|
29
|
+
target: "aarch64-unknown-linux-musl",
|
|
30
|
+
},
|
|
31
|
+
"linux-x64": {
|
|
32
|
+
alias: "@slopus/happy-agent-supervisor-linux-x64",
|
|
33
|
+
arch: "x64",
|
|
34
|
+
os: "linux",
|
|
35
|
+
tag: "linux-x64",
|
|
36
|
+
target: "x86_64-unknown-linux-musl",
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
export const linuxSupervisorArchitectureSchema = Type.Union([
|
|
40
|
+
Type.Literal("amd64"),
|
|
41
|
+
Type.Literal("x64"),
|
|
42
|
+
Type.Literal("x86_64"),
|
|
43
|
+
Type.Literal("arm64"),
|
|
44
|
+
Type.Literal("aarch64"),
|
|
45
|
+
]);
|
|
46
|
+
//# sourceMappingURL=platform.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform.js","sourceRoot":"","sources":["../sources/platform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC5B,WAAW,EAAE;QACT,KAAK,EAAE,0CAA0C;QACjD,IAAI,EAAE,KAAK;QACX,EAAE,EAAE,OAAO;QACX,GAAG,EAAE,WAAW;QAChB,MAAM,EAAE,uBAAuB;KAClC;IACD,cAAc,EAAE;QACZ,KAAK,EAAE,6CAA6C;QACpD,IAAI,EAAE,OAAO;QACb,EAAE,EAAE,QAAQ;QACZ,GAAG,EAAE,cAAc;QACnB,MAAM,EAAE,sBAAsB;KACjC;IACD,YAAY,EAAE;QACV,KAAK,EAAE,2CAA2C;QAClD,IAAI,EAAE,KAAK;QACX,EAAE,EAAE,QAAQ;QACZ,GAAG,EAAE,YAAY;QACjB,MAAM,EAAE,qBAAqB;KAChC;IACD,aAAa,EAAE;QACX,KAAK,EAAE,4CAA4C;QACnD,IAAI,EAAE,OAAO;QACb,EAAE,EAAE,OAAO;QACX,GAAG,EAAE,aAAa;QAClB,MAAM,EAAE,4BAA4B;KACvC;IACD,WAAW,EAAE;QACT,KAAK,EAAE,0CAA0C;QACjD,IAAI,EAAE,KAAK;QACX,EAAE,EAAE,OAAO;QACX,GAAG,EAAE,WAAW;QAChB,MAAM,EAAE,2BAA2B;KACtC;CACK,CAAC;AAIX,MAAM,CAAC,MAAM,iCAAiC,GAAG,IAAI,CAAC,KAAK,CAAC;IACxD,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;IACrB,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC;IACnB,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;IACtB,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;IACrB,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC;CAC1B,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveLinuxSupervisorBinary.d.ts","sourceRoot":"","sources":["../sources/resolveLinuxSupervisorBinary.ts"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,2BAA2B,EAEnC,MAAM,eAAe,CAAC;AAGvB,wBAAgB,4BAA4B,CACxC,YAAY,EAAE,2BAA2B,EACzC,UAAU,CAAC,EAAE,MAAM,GACpB,MAAM,CAOR"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Value } from "@sinclair/typebox/value";
|
|
2
|
+
import { linuxSupervisorArchitectureSchema, } from "./platform.js";
|
|
3
|
+
import { resolveBinaryForTarget } from "./impl/resolveBinaryForTarget.js";
|
|
4
|
+
export function resolveLinuxSupervisorBinary(architecture, binaryPath) {
|
|
5
|
+
if (!Value.Check(linuxSupervisorArchitectureSchema, architecture)) {
|
|
6
|
+
throw new Error(`Unsupported Linux supervisor architecture: ${String(architecture)}.`);
|
|
7
|
+
}
|
|
8
|
+
const key = architecture === "arm64" || architecture === "aarch64" ? "linux-arm64" : "linux-x64";
|
|
9
|
+
return resolveBinaryForTarget(key, binaryPath);
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=resolveLinuxSupervisorBinary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveLinuxSupervisorBinary.js","sourceRoot":"","sources":["../sources/resolveLinuxSupervisorBinary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAEhD,OAAO,EACH,iCAAiC,GAGpC,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAE1E,MAAM,UAAU,4BAA4B,CACxC,YAAyC,EACzC,UAAmB;IAEnB,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,iCAAiC,EAAE,YAAY,CAAC,EAAE,CAAC;QAChE,MAAM,IAAI,KAAK,CAAC,8CAA8C,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;IAC3F,CAAC;IACD,MAAM,GAAG,GACL,YAAY,KAAK,OAAO,IAAI,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC;IACzF,OAAO,sBAAsB,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC;AACnD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveSupervisorBinary.d.ts","sourceRoot":"","sources":["../sources/resolveSupervisorBinary.ts"],"names":[],"mappings":"AAGA,wBAAgB,uBAAuB,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAcnE"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {} from "./platform.js";
|
|
2
|
+
import { resolveBinaryForTarget } from "./impl/resolveBinaryForTarget.js";
|
|
3
|
+
export function resolveSupervisorBinary(binaryPath) {
|
|
4
|
+
const key = `${process.platform}-${process.arch}`;
|
|
5
|
+
if (key !== "darwin-arm64" &&
|
|
6
|
+
key !== "darwin-x64" &&
|
|
7
|
+
key !== "linux-arm64" &&
|
|
8
|
+
key !== "linux-x64" &&
|
|
9
|
+
key !== "win32-x64") {
|
|
10
|
+
throw new Error(`The Happy agent supervisor does not support ${process.platform} ${process.arch}.`);
|
|
11
|
+
}
|
|
12
|
+
return resolveBinaryForTarget(key, binaryPath);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=resolveSupervisorBinary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveSupervisorBinary.js","sourceRoot":"","sources":["../sources/resolveSupervisorBinary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAE1E,MAAM,UAAU,uBAAuB,CAAC,UAAmB;IACvD,MAAM,GAAG,GAAG,GAAG,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,IAAI,EAAiB,CAAC;IACjE,IACI,GAAG,KAAK,cAAc;QACtB,GAAG,KAAK,YAAY;QACpB,GAAG,KAAK,aAAa;QACrB,GAAG,KAAK,WAAW;QACnB,GAAG,KAAK,WAAW,EACrB,CAAC;QACC,MAAM,IAAI,KAAK,CACX,+CAA+C,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,IAAI,GAAG,CACrF,CAAC;IACN,CAAC;IACD,OAAO,sBAAsB,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC;AACnD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,33 +1,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slopus/happy-agent-supervisor",
|
|
3
|
-
"version": "0.0.12
|
|
4
|
-
"description": "Trusted native sandbox boundary for Happy agent workloads.
|
|
3
|
+
"version": "0.0.12",
|
|
4
|
+
"description": "Trusted native sandbox boundary for Happy agent workloads.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"sandbox",
|
|
7
|
+
"seatbelt",
|
|
8
|
+
"seccomp",
|
|
9
|
+
"supervisor"
|
|
10
|
+
],
|
|
5
11
|
"license": "MIT",
|
|
6
12
|
"repository": {
|
|
7
13
|
"type": "git",
|
|
8
14
|
"url": "git+https://github.com/slopus/happy-agent.git",
|
|
9
15
|
"directory": "packages/happy-agent-supervisor"
|
|
10
16
|
},
|
|
11
|
-
"engines": {
|
|
12
|
-
"node": ">=22.19.0"
|
|
13
|
-
},
|
|
14
|
-
"os": [
|
|
15
|
-
"win32"
|
|
16
|
-
],
|
|
17
|
-
"cpu": [
|
|
18
|
-
"x64"
|
|
19
|
-
],
|
|
20
|
-
"bin": {
|
|
21
|
-
"happy-agent-supervisor": "vendor/x86_64-pc-windows-gnu/bin/happy-agent-supervisor.exe"
|
|
22
|
-
},
|
|
23
17
|
"files": [
|
|
24
|
-
"
|
|
25
|
-
"SHA256SUMS",
|
|
18
|
+
"dist",
|
|
26
19
|
"LICENSE",
|
|
27
20
|
"README.md"
|
|
28
21
|
],
|
|
22
|
+
"type": "module",
|
|
23
|
+
"exports": {
|
|
24
|
+
".": {
|
|
25
|
+
"types": "./dist/index.d.ts",
|
|
26
|
+
"import": "./dist/index.js",
|
|
27
|
+
"default": "./dist/index.js"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
29
30
|
"publishConfig": {
|
|
30
|
-
"access": "public"
|
|
31
|
-
|
|
31
|
+
"access": "public"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@sinclair/typebox": "^0.34.49"
|
|
35
|
+
},
|
|
36
|
+
"engines": {
|
|
37
|
+
"node": ">=22.19.0"
|
|
38
|
+
},
|
|
39
|
+
"optionalDependencies": {
|
|
40
|
+
"@slopus/happy-agent-supervisor-win32-x64": "npm:@slopus/happy-agent-supervisor@0.0.12-win32-x64",
|
|
41
|
+
"@slopus/happy-agent-supervisor-darwin-arm64": "npm:@slopus/happy-agent-supervisor@0.0.12-darwin-arm64",
|
|
42
|
+
"@slopus/happy-agent-supervisor-darwin-x64": "npm:@slopus/happy-agent-supervisor@0.0.12-darwin-x64",
|
|
43
|
+
"@slopus/happy-agent-supervisor-linux-arm64": "npm:@slopus/happy-agent-supervisor@0.0.12-linux-arm64",
|
|
44
|
+
"@slopus/happy-agent-supervisor-linux-x64": "npm:@slopus/happy-agent-supervisor@0.0.12-linux-x64"
|
|
32
45
|
}
|
|
33
46
|
}
|
package/SHA256SUMS
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
337cbdbe1846b5775b967d727c040ea5038cb708db958dcb6013e735b24fa7f3 vendor/x86_64-pc-windows-gnu/bin/happy-agent-supervisor.exe
|
|
2
|
-
95c8ea67df5db3e7ba3bed1144d279d2894d98c4d590d67993ebae758d4e67f3 vendor/x86_64-pc-windows-gnu/bin/happy-sandbox-runner.exe
|
|
3
|
-
b90b68c953abfa56aae71fbbb0be208beef13ce101d479553e7c223e84d1ed88 vendor/x86_64-pc-windows-gnu/bin/happy-sandbox-setup.exe
|
|
4
|
-
d17f227e4df5da1600391338865ce0f3055211760a36688f816941d58232d8dc vendor/x86_64-pc-windows-gnu/bin/LICENSE.codex
|
|
5
|
-
9d71575ecfd9a843fc1677b0efb08053c6ba9fd686a0de1a6f5382fd3c220915 vendor/x86_64-pc-windows-gnu/bin/NOTICE.codex
|
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
Apache License
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
4
|
-
|
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
-
|
|
7
|
-
1. Definitions.
|
|
8
|
-
|
|
9
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
-
|
|
12
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
-
the copyright owner that is granting the License.
|
|
14
|
-
|
|
15
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
-
other entities that control, are controlled by, or are under common
|
|
17
|
-
control with that entity. For the purposes of this definition,
|
|
18
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
-
direction or management of such entity, whether by contract or
|
|
20
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
-
exercising permissions granted by this License.
|
|
25
|
-
|
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
-
including but not limited to software source code, documentation
|
|
28
|
-
source, and configuration files.
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
-
(an example is provided in the Appendix below).
|
|
39
|
-
|
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
-
the Work and Derivative Works thereof.
|
|
47
|
-
|
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
|
49
|
-
the original version of the Work and any modifications or additions
|
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
-
means any form of electronic, verbal, or written communication sent
|
|
55
|
-
to the Licensor or its representatives, including but not limited to
|
|
56
|
-
communication on electronic mailing lists, source code control systems,
|
|
57
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
-
excluding communication that is conspicuously marked or otherwise
|
|
60
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
-
|
|
62
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
-
subsequently incorporated within the Work.
|
|
65
|
-
|
|
66
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
-
Work and such Derivative Works in Source or Object form.
|
|
72
|
-
|
|
73
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
-
(except as stated in this section) patent license to make, have made,
|
|
77
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
-
where such license applies only to those patent claims licensable
|
|
79
|
-
by such Contributor that are necessarily infringed by their
|
|
80
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
-
institute patent litigation against any entity (including a
|
|
83
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
-
or contributory patent infringement, then any patent licenses
|
|
86
|
-
granted to You under this License for that Work shall terminate
|
|
87
|
-
as of the date such litigation is filed.
|
|
88
|
-
|
|
89
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
-
modifications, and in Source or Object form, provided that You
|
|
92
|
-
meet the following conditions:
|
|
93
|
-
|
|
94
|
-
(a) You must give any other recipients of the Work or
|
|
95
|
-
Derivative Works a copy of this License; and
|
|
96
|
-
|
|
97
|
-
(b) You must cause any modified files to carry prominent notices
|
|
98
|
-
stating that You changed the files; and
|
|
99
|
-
|
|
100
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
-
that You distribute, all copyright, patent, trademark, and
|
|
102
|
-
attribution notices from the Source form of the Work,
|
|
103
|
-
excluding those notices that do not pertain to any part of
|
|
104
|
-
the Derivative Works; and
|
|
105
|
-
|
|
106
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
-
distribution, then any Derivative Works that You distribute must
|
|
108
|
-
include a readable copy of the attribution notices contained
|
|
109
|
-
within such NOTICE file, excluding those notices that do not
|
|
110
|
-
pertain to any part of the Derivative Works, in at least one
|
|
111
|
-
of the following places: within a NOTICE text file distributed
|
|
112
|
-
as part of the Derivative Works; within the Source form or
|
|
113
|
-
documentation, if provided along with the Derivative Works; or,
|
|
114
|
-
within a display generated by the Derivative Works, if and
|
|
115
|
-
wherever such third-party notices normally appear. The contents
|
|
116
|
-
of the NOTICE file are for informational purposes only and
|
|
117
|
-
do not modify the License. You may add Your own attribution
|
|
118
|
-
notices within Derivative Works that You distribute, alongside
|
|
119
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
-
that such additional attribution notices cannot be construed
|
|
121
|
-
as modifying the License.
|
|
122
|
-
|
|
123
|
-
You may add Your own copyright statement to Your modifications and
|
|
124
|
-
may provide additional or different license terms and conditions
|
|
125
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
-
the conditions stated in this License.
|
|
129
|
-
|
|
130
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
-
this License, without any additional terms or conditions.
|
|
134
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
-
the terms of any separate license agreement you may have executed
|
|
136
|
-
with Licensor regarding such Contributions.
|
|
137
|
-
|
|
138
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
-
except as required for reasonable and customary use in describing the
|
|
141
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
-
|
|
143
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
-
implied, including, without limitation, any warranties or conditions
|
|
148
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
-
appropriateness of using or redistributing the Work and assume any
|
|
151
|
-
risks associated with Your exercise of permissions under this License.
|
|
152
|
-
|
|
153
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
-
unless required by applicable law (such as deliberate and grossly
|
|
156
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
-
liable to You for damages, including any direct, indirect, special,
|
|
158
|
-
incidental, or consequential damages of any character arising as a
|
|
159
|
-
result of this License or out of the use or inability to use the
|
|
160
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
-
other commercial damages or losses), even if such Contributor
|
|
163
|
-
has been advised of the possibility of such damages.
|
|
164
|
-
|
|
165
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
-
or other liability obligations and/or rights consistent with this
|
|
169
|
-
License. However, in accepting such obligations, You may act only
|
|
170
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
-
defend, and hold each Contributor harmless for any liability
|
|
173
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
-
of your accepting any such warranty or additional liability.
|
|
175
|
-
|
|
176
|
-
END OF TERMS AND CONDITIONS
|
|
177
|
-
|
|
178
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
-
|
|
180
|
-
To apply the Apache License to your work, attach the following
|
|
181
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
-
replaced with your own identifying information. (Don't include
|
|
183
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
-
comment syntax for the file format. We also recommend that a
|
|
185
|
-
file or class name and description of purpose be included on the
|
|
186
|
-
same "printed page" as the copyright notice for easier
|
|
187
|
-
identification within third-party archives.
|
|
188
|
-
|
|
189
|
-
Copyright 2025 OpenAI
|
|
190
|
-
|
|
191
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
-
you may not use this file except in compliance with the License.
|
|
193
|
-
You may obtain a copy of the License at
|
|
194
|
-
|
|
195
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
-
|
|
197
|
-
Unless required by applicable law or agreed to in writing, software
|
|
198
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
-
See the License for the specific language governing permissions and
|
|
201
|
-
limitations under the License.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|