@agent-vm/gondolin-vm-adapter 0.0.115
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/LICENSE +21 -0
- package/dist/index.d.ts +78 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1772 -0
- package/dist/index.js.map +1 -0
- package/package.json +42 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025-2026 Shravan Sunder
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { ManagedVmProvider } from "@agent-vm/managed-vm";
|
|
2
|
+
//#region src/managed-vm-provider.d.ts
|
|
3
|
+
declare function createGondolinManagedVmProvider(): ManagedVmProvider;
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region src/host-network-defaults.d.ts
|
|
6
|
+
interface HostNetworkDefaultsResult {
|
|
7
|
+
readonly autoSelectFamily: false | 'unavailable';
|
|
8
|
+
readonly dnsResultOrder: 'ipv4first' | 'unavailable';
|
|
9
|
+
}
|
|
10
|
+
interface HostNetworkDefaultsDependencies {
|
|
11
|
+
readonly setDefaultAutoSelectFamily?: ((value: boolean) => void) | undefined;
|
|
12
|
+
readonly setDefaultResultOrder?: ((order: 'ipv4first') => void) | undefined;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Gondolin raw tcpHosts passthrough sockets are opened by the host-side Node
|
|
16
|
+
* process, not by guest Node processes. VM NODE_OPTIONS cannot affect those
|
|
17
|
+
* sockets, so host processes that create Gondolin VMs also force deterministic
|
|
18
|
+
* IPv4-first behavior before network state is constructed.
|
|
19
|
+
*/
|
|
20
|
+
declare function configureHostNetworkDefaults(dependencies?: HostNetworkDefaultsDependencies): HostNetworkDefaultsResult;
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/rootfs-init-extra.d.ts
|
|
23
|
+
/**
|
|
24
|
+
* Backend projection of the domain-owned managed Gateway boot contract.
|
|
25
|
+
*
|
|
26
|
+
* The projection is deliberately closed: callers select the framework image
|
|
27
|
+
* entry, while executable paths, arguments, environment-input paths, and log
|
|
28
|
+
* identities remain adapter-owned image behavior.
|
|
29
|
+
*/
|
|
30
|
+
interface GondolinManagedGatewayBootProjection {
|
|
31
|
+
readonly frameworkBootEntry: 'hermes-framework-service' | 'openclaw-framework-service';
|
|
32
|
+
readonly kind: 'managed-gateway-exact-two-role';
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region src/build-pipeline.d.ts
|
|
36
|
+
interface BuildOutput {
|
|
37
|
+
write(chunk: string | Uint8Array): boolean;
|
|
38
|
+
}
|
|
39
|
+
interface BuildImageResult {
|
|
40
|
+
readonly built: boolean;
|
|
41
|
+
readonly fingerprint: string;
|
|
42
|
+
readonly imagePath: string;
|
|
43
|
+
}
|
|
44
|
+
interface GondolinImageBuildToolingOptions {
|
|
45
|
+
readonly buildConfig: unknown;
|
|
46
|
+
readonly cacheDir: string;
|
|
47
|
+
readonly configDir?: string;
|
|
48
|
+
readonly fullReset?: boolean;
|
|
49
|
+
readonly fingerprintInput?: unknown;
|
|
50
|
+
readonly managedGatewayBoot?: GondolinManagedGatewayBootProjection;
|
|
51
|
+
readonly output?: BuildOutput;
|
|
52
|
+
}
|
|
53
|
+
interface GondolinImageFingerprintOptions {
|
|
54
|
+
readonly buildConfig: unknown;
|
|
55
|
+
readonly configDir?: string;
|
|
56
|
+
readonly fingerprintInput?: unknown;
|
|
57
|
+
readonly gondolinVersion?: string;
|
|
58
|
+
readonly managedGatewayBoot?: GondolinManagedGatewayBootProjection;
|
|
59
|
+
}
|
|
60
|
+
interface GondolinImageBuildTooling {
|
|
61
|
+
buildImage(options: GondolinImageBuildToolingOptions, dependencies?: {
|
|
62
|
+
readonly gondolinVersion?: string;
|
|
63
|
+
}): Promise<BuildImageResult>;
|
|
64
|
+
computeFingerprint(options: GondolinImageFingerprintOptions): Promise<string>;
|
|
65
|
+
}
|
|
66
|
+
declare const buildImageAssetFileNames: readonly ["manifest.json", "rootfs.ext4", "initramfs.cpio.lz4", "vmlinuz-virt"];
|
|
67
|
+
declare function createGondolinImageBuildTooling(): GondolinImageBuildTooling;
|
|
68
|
+
declare function hasBuiltImageAssets(outputDirectoryPath: string): Promise<boolean>;
|
|
69
|
+
//#endregion
|
|
70
|
+
//#region src/gondolin-package.d.ts
|
|
71
|
+
declare function resolveGondolinPackageSpec(): Promise<string>;
|
|
72
|
+
interface ResolveGondolinMinimumZigVersionOptions {
|
|
73
|
+
readonly buildZigZonPath?: string;
|
|
74
|
+
}
|
|
75
|
+
declare function resolveGondolinMinimumZigVersion(options?: ResolveGondolinMinimumZigVersionOptions): Promise<string>;
|
|
76
|
+
//#endregion
|
|
77
|
+
export { type GondolinManagedGatewayBootProjection, buildImageAssetFileNames, configureHostNetworkDefaults, createGondolinImageBuildTooling, createGondolinManagedVmProvider, hasBuiltImageAssets, resolveGondolinMinimumZigVersion, resolveGondolinPackageSpec };
|
|
78
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/managed-vm-provider.ts","../src/host-network-defaults.ts","../src/rootfs-init-extra.ts","../src/build-pipeline.ts","../src/gondolin-package.ts"],"mappings":";;iBAwegB,+BAAA,CAAA,GAAmC,iBAAA;;;UCrelC,yBAAA;EAAA,SACP,gBAAA;EAAA,SACA,cAAA;AAAA;AAAA,UAGO,+BAAA;EAAA,SACP,0BAAA,KAA+B,KAAA;EAAA,SAC/B,qBAAA,KAA0B,KAAA;AAAA;;;;;AAPpC;;iBAgBgB,4BAAA,CACf,YAAA,GAAc,+BAAA,GACZ,yBAAA;;;AAlBH;;;;;AAKA;;AALA,UCiCiB,oCAAA;EAAA,SACP,kBAAA;EAAA,SACA,IAAA;AAAA;;;UCXO,WAAA;EAChB,KAAA,CAAM,KAAA,WAAgB,UAAA;AAAA;AAAA,UAGN,gBAAA;EAAA,SACP,KAAA;EAAA,SACA,WAAA;EAAA,SACA,SAAA;AAAA;AAAA,UAGO,gCAAA;EAAA,SACP,WAAA;EAAA,SACA,QAAA;EAAA,SACA,SAAA;EAAA,SACA,SAAA;EAAA,SACA,gBAAA;EAAA,SACA,kBAAA,GAAqB,oCAAA;EAAA,SACrB,MAAA,GAAS,WAAA;AAAA;AAAA,UAGF,+BAAA;EAAA,SACP,WAAA;EAAA,SACA,SAAA;EAAA,SACA,gBAAA;EAAA,SACA,eAAA;EAAA,SACA,kBAAA,GAAqB,oCAAA;AAAA;AAAA,UAGd,yBAAA;EAChB,UAAA,CACC,OAAA,EAAS,gCAAA,EACT,YAAA;IAAA,SAA0B,eAAA;EAAA,IACxB,OAAA,CAAQ,gBAAA;EACX,kBAAA,CAAmB,OAAA,EAAS,+BAAA,GAAkC,OAAA;AAAA;AAAA,cAGlD,wBAAA;AAAA,iBAcG,+BAAA,CAAA,GAAmC,yBAAA;AAAA,iBAwE7B,mBAAA,CAAoB,mBAAA,WAA8B,OAAA;;;iBC9GlD,0BAAA,CAAA,GAA8B,OAAA;AAAA,UAOnC,uCAAA;EAAA,SACP,eAAA;AAAA;AAAA,iBAQY,gCAAA,CACrB,OAAA,GAAS,uCAAA,GACP,OAAA"}
|