@theagenticguy/microvms 0.5.0 → 0.7.0
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/README.md +21 -3
- package/index.d.ts +190 -4
- package/index.js +88 -82
- package/microvms.darwin-arm64.node +0 -0
- package/microvms.linux-arm64-gnu.node +0 -0
- package/microvms.linux-x64-gnu.node +0 -0
- package/microvms.win32-x64-msvc.node +0 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -24,11 +24,29 @@ The constraints the platform enforces at runtime are shapes this package refuses
|
|
|
24
24
|
construct: a raw token cannot be passed where a session is expected, and a dollar amount is
|
|
25
25
|
never a bare float. Each planted bypass has a test that goes red if the door reopens.
|
|
26
26
|
|
|
27
|
+
## Coding agents in a VM
|
|
28
|
+
|
|
29
|
+
`AgentVm` is the L3 layer over the sandbox: an image with Claude Code and/or Codex CLI in
|
|
30
|
+
it, a launch with egress, a Bedrock bearer token minted in process and installed as a file
|
|
31
|
+
the agent sources, and one method that hands the agent a task as uid 1000 in `/workspace`.
|
|
32
|
+
|
|
33
|
+
```ts
|
|
34
|
+
const vm = await AgentVm.create(Region.usEast1(), [{ agent: 'codex' }]);
|
|
35
|
+
await vm.launch({ imageIdentifier: imageArn, executionRoleArn: role });
|
|
36
|
+
await vm.installAccess();
|
|
37
|
+
console.log((await vm.promptSync('codex', 'Create hello.py that prints hello, run it.')).stdout);
|
|
38
|
+
await vm.terminate();
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
`findImage`, `imageName`, `buildArtifact`, and `buildImage` cover the image, with the S3
|
|
42
|
+
upload left to you. `installedAgents`, `installAgentAccess`, and `promptAgent` do the same
|
|
43
|
+
over a bare `Session` for a process that holds only the identifier triple.
|
|
44
|
+
|
|
27
45
|
## Reading
|
|
28
46
|
|
|
29
|
-
- [Documentation](https://
|
|
30
|
-
- [`docs/EMBEDDING.md`](https://github.com/
|
|
31
|
-
- [`docs/TRUST.md`](https://github.com/
|
|
47
|
+
- [Documentation](https://laithalsaadoon.github.io/microvms-agentd/)
|
|
48
|
+
- [`docs/EMBEDDING.md`](https://github.com/laithalsaadoon/microvms-agentd/blob/main/docs/EMBEDDING.md)
|
|
49
|
+
- [`docs/TRUST.md`](https://github.com/laithalsaadoon/microvms-agentd/blob/main/docs/TRUST.md)
|
|
32
50
|
|
|
33
51
|
## License
|
|
34
52
|
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,77 @@
|
|
|
1
1
|
/* auto-generated by NAPI-RS */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* One VM with coding agents in it: the sandbox plus the specs it is built for.
|
|
6
|
+
*
|
|
7
|
+
* The sequence is the CLI's `agent-up` and `agent-prompt`, one method per step: `findImage`
|
|
8
|
+
* or `buildArtifact` + your upload + `buildImage`; `launch`; `installAccess`; `prompt` or
|
|
9
|
+
* `promptSync`; `terminate`. `sandbox()` and `session()` reach the same VM for suspend,
|
|
10
|
+
* resume, file transfer, and any other exec.
|
|
11
|
+
*/
|
|
12
|
+
export declare class AgentVm {
|
|
13
|
+
/**
|
|
14
|
+
* Resolves credentials for `region` and returns a VM with nothing built or launched.
|
|
15
|
+
*
|
|
16
|
+
* `agents` defaults to Claude Code alone. An empty list or a repeated agent is refused by
|
|
17
|
+
* the core before any AWS call.
|
|
18
|
+
*/
|
|
19
|
+
static create(region: Region, agents?: Array<AgentSpecInput> | undefined | null): Promise<AgentVm>
|
|
20
|
+
/** The specs this VM carries, resolved, in profile order. */
|
|
21
|
+
agents(): Array<AgentSpec>
|
|
22
|
+
region(): Region
|
|
23
|
+
/**
|
|
24
|
+
* The sandbox this VM drives, for suspend, resume, and the lifecycle getters. The same
|
|
25
|
+
* lock: a call here and a call there cannot interleave.
|
|
26
|
+
*/
|
|
27
|
+
sandbox(): Sandbox
|
|
28
|
+
/** The session, once `launch` has resolved. */
|
|
29
|
+
session(): Promise<Session | null>
|
|
30
|
+
/**
|
|
31
|
+
* The Dockerfile `buildImage` will send: the client's agentd stanza plus the agent
|
|
32
|
+
* layers. Nothing in it is a secret.
|
|
33
|
+
*/
|
|
34
|
+
dockerfile(): Promise<string>
|
|
35
|
+
/**
|
|
36
|
+
* The image name for these specs and this daemon binary: `agent-vm-<agents>-<hash12>`.
|
|
37
|
+
* Content-addressed, so an unchanged binary and spec set name the image a previous run
|
|
38
|
+
* built; `findImage` looks it up.
|
|
39
|
+
*/
|
|
40
|
+
imageName(options: AgentImageOptions, size?: SizeClass | undefined | null): Promise<string>
|
|
41
|
+
/** The ARN of an existing image named per `imageName`, or `null` when there is none. */
|
|
42
|
+
findImage(options: AgentImageOptions, size?: SizeClass | undefined | null): Promise<string | null>
|
|
43
|
+
/** The artifact bytes to upload to `s3://<bucket>/<imageName>.zip` before `buildImage`. */
|
|
44
|
+
buildArtifact(options: AgentImageOptions, size?: SizeClass | undefined | null): Promise<Buffer>
|
|
45
|
+
/**
|
|
46
|
+
* Builds the image and waits for it to become usable. `codeArtifactUri` is where you
|
|
47
|
+
* uploaded `buildArtifact`'s bytes. Several minutes, server-side.
|
|
48
|
+
*/
|
|
49
|
+
buildImage(options: AgentImageOptions, size?: SizeClass | undefined | null): Promise<Image>
|
|
50
|
+
/**
|
|
51
|
+
* Launches with egress and waits for the daemon to answer.
|
|
52
|
+
*
|
|
53
|
+
* Egress is not optional: neither agent reaches Bedrock without it. The idle knobs default
|
|
54
|
+
* to the core's figures (ten-minute idle and suspended windows, a one-hour ceiling).
|
|
55
|
+
*/
|
|
56
|
+
launch(options: AgentLaunchOptions): Promise<Session>
|
|
57
|
+
/**
|
|
58
|
+
* Mints a token (or takes yours) and installs Bedrock access for this VM's agents.
|
|
59
|
+
*
|
|
60
|
+
* Resolves with the token used, so `expiresAt` says when to call this again. Re-runnable
|
|
61
|
+
* on a running VM: that call is the credential refresh.
|
|
62
|
+
*/
|
|
63
|
+
installAccess(token?: BearerToken | undefined | null, ttlSeconds?: number | undefined | null): Promise<BearerToken>
|
|
64
|
+
/** Starts one task for `agent` and resolves with its handle. Does not wait. */
|
|
65
|
+
prompt(agent: string, task: string, options?: PromptOptions | undefined | null): Promise<ExecHandle>
|
|
66
|
+
/**
|
|
67
|
+
* Start, wait, ack: one task's whole result. `timeoutSec` defaults to 900 seconds,
|
|
68
|
+
* because agent tasks run minutes, and is also the daemon-side budget.
|
|
69
|
+
*/
|
|
70
|
+
promptSync(agent: string, task: string, options?: PromptOptions | undefined | null): Promise<ExecResult>
|
|
71
|
+
/** Tears down, best-effort, never rejecting; see `Sandbox.terminate`. */
|
|
72
|
+
terminate(options?: TeardownOptions | undefined | null): Promise<TeardownReport>
|
|
73
|
+
}
|
|
74
|
+
|
|
3
75
|
/**
|
|
4
76
|
* What a line item's cost can be: an estimate, or unpriced.
|
|
5
77
|
*
|
|
@@ -20,6 +92,26 @@ export declare class Amount {
|
|
|
20
92
|
toString(): string
|
|
21
93
|
}
|
|
22
94
|
|
|
95
|
+
/**
|
|
96
|
+
* A Bedrock bearer token, the region it was minted for, and when it stops working.
|
|
97
|
+
*
|
|
98
|
+
* A class rather than an object because it carries a secret: `JSON.stringify` gives `{}` and
|
|
99
|
+
* only `expose()` returns the text.
|
|
100
|
+
*/
|
|
101
|
+
export declare class BearerToken {
|
|
102
|
+
/** The token text, for a caller writing it into an environment themselves. */
|
|
103
|
+
expose(): string
|
|
104
|
+
/**
|
|
105
|
+
* The presign's expiry, seconds since the epoch. An upper bound: the service also caps
|
|
106
|
+
* validity at the signing credentials' own expiry.
|
|
107
|
+
*/
|
|
108
|
+
get expiresAt(): number
|
|
109
|
+
/** The region the token was minted for. */
|
|
110
|
+
get region(): Region
|
|
111
|
+
/** The length of the token, never the token. */
|
|
112
|
+
toString(): string
|
|
113
|
+
}
|
|
114
|
+
|
|
23
115
|
/** A timeout for the `ready` or `validate` image-build hook: 1..=3600 seconds. */
|
|
24
116
|
export declare class BuildHookTimeout {
|
|
25
117
|
/** A build-family timeout, or a refusal naming both ceilings. */
|
|
@@ -256,9 +348,7 @@ export declare class ExecProcess {
|
|
|
256
348
|
*
|
|
257
349
|
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#the_async_iterator_and_async_iterable_protocols
|
|
258
350
|
*/
|
|
259
|
-
export declare class ExecStream {
|
|
260
|
-
|
|
261
|
-
}
|
|
351
|
+
export declare class ExecStream {}
|
|
262
352
|
|
|
263
353
|
/** One phase's one billing line: what was consumed, and what that costs. */
|
|
264
354
|
export declare class LineItem {
|
|
@@ -750,6 +840,59 @@ export declare class Unpriced {
|
|
|
750
840
|
toString(): string
|
|
751
841
|
}
|
|
752
842
|
|
|
843
|
+
/** The layer's fixed values as JSON, for a caller that wants to reason about the guest. */
|
|
844
|
+
export declare function agentConstants(): string
|
|
845
|
+
|
|
846
|
+
/** What an agent image is derived from: the daemon binary and the build role. */
|
|
847
|
+
export interface AgentImageOptions {
|
|
848
|
+
/** The daemon binary's bytes, zipped into the artifact. */
|
|
849
|
+
binary: Uint8Array
|
|
850
|
+
/** The build role, which must grant logs on `/aws/lambda-microvms/*`. */
|
|
851
|
+
buildRoleArn: string
|
|
852
|
+
/**
|
|
853
|
+
* Where `buildArtifact`'s bytes were uploaded. Required by `buildImage`, ignored by the
|
|
854
|
+
* name and artifact calls.
|
|
855
|
+
*/
|
|
856
|
+
codeArtifactUri?: string
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
/** Everything a launch takes beyond what the layer fixes (egress on, the image). */
|
|
860
|
+
export interface AgentLaunchOptions {
|
|
861
|
+
/** The image ARN from `findImage` or `buildImage`. */
|
|
862
|
+
imageIdentifier: string
|
|
863
|
+
/** The execution role. Optional in the model; every real launch needs one. */
|
|
864
|
+
executionRoleArn?: string
|
|
865
|
+
maxIdleSec?: number
|
|
866
|
+
suspendedSec?: number
|
|
867
|
+
autoResume?: boolean
|
|
868
|
+
maxDurationSec?: number
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
/** A resolved spec: the model it will use and the command `prompt` runs. */
|
|
872
|
+
export interface AgentSpec {
|
|
873
|
+
/** `"claude-code"` or `"codex"`. */
|
|
874
|
+
agent: string
|
|
875
|
+
/** The model this spec resolves to: the override, or the profile's default. */
|
|
876
|
+
model: string
|
|
877
|
+
/** The pinned CLI version, or `null` for the registry's latest at build time. */
|
|
878
|
+
cliVersion?: string
|
|
879
|
+
/** The exact command `prompt` runs, with `<TASK>` where the quoted task goes. */
|
|
880
|
+
headlessCommand: string
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
/**
|
|
884
|
+
* One agent to install: its name, and the two defaults a caller may override.
|
|
885
|
+
*
|
|
886
|
+
* `agent` is `"claude-code"` or `"codex"`; anything else is refused by the core with the
|
|
887
|
+
* list. `model` defaults to the profile's row (an inference-profile id), `cliVersion` to the
|
|
888
|
+
* registry's latest at build time; a pin changes the image name.
|
|
889
|
+
*/
|
|
890
|
+
export interface AgentSpecInput {
|
|
891
|
+
agent: string
|
|
892
|
+
model?: string
|
|
893
|
+
cliVersion?: string
|
|
894
|
+
}
|
|
895
|
+
|
|
753
896
|
/**
|
|
754
897
|
* The platform's managed base image, paired with the Dockerfile `FROM` it goes with.
|
|
755
898
|
*
|
|
@@ -948,7 +1091,7 @@ export declare const enum GapPolicy {
|
|
|
948
1091
|
* For a caller that wants the surviving bytes more than the completeness guarantee. The
|
|
949
1092
|
* consumer is then responsible for reading `gaps`, and nothing forces it to.
|
|
950
1093
|
*/
|
|
951
|
-
Event = 'event'
|
|
1094
|
+
Event = 'event',
|
|
952
1095
|
}
|
|
953
1096
|
|
|
954
1097
|
/** The daemon's liveness answer. `bootstrapped` is the useful field. */
|
|
@@ -1032,6 +1175,33 @@ export interface Image {
|
|
|
1032
1175
|
logStream?: string
|
|
1033
1176
|
}
|
|
1034
1177
|
|
|
1178
|
+
/**
|
|
1179
|
+
* Installs Bedrock access for `agents` into a running VM over `session`.
|
|
1180
|
+
*
|
|
1181
|
+
* Three uploads (the environment file, Codex's config when Codex is among the agents, the
|
|
1182
|
+
* marker) and one root `chown` of `/workspace` to uid 1000. Re-runnable: a fresh token
|
|
1183
|
+
* overwrites the same files, which is how a twelve-hour token is refreshed.
|
|
1184
|
+
*/
|
|
1185
|
+
export declare function installAgentAccess(session: Session, agents: Array<AgentSpecInput>, token: BearerToken): Promise<void>
|
|
1186
|
+
|
|
1187
|
+
/**
|
|
1188
|
+
* The agents a running VM was provisioned with, read from its guest marker.
|
|
1189
|
+
*
|
|
1190
|
+
* For a process holding only a session (`Session.direct` from the identifier triple): how a
|
|
1191
|
+
* credential refresh learns which agents and models to re-provision. A VM with no marker is
|
|
1192
|
+
* refused as a precondition, naming `agent-up`.
|
|
1193
|
+
*/
|
|
1194
|
+
export declare function installedAgents(session: Session): Promise<Array<AgentSpec>>
|
|
1195
|
+
|
|
1196
|
+
/**
|
|
1197
|
+
* Mints a Bedrock bearer token from the default credential chain.
|
|
1198
|
+
*
|
|
1199
|
+
* A SigV4 presign of `POST https://bedrock.amazonaws.com/?Action=CallWithBearerToken`,
|
|
1200
|
+
* base64, prefixed `bedrock-api-key-` — the reference generator's recipe, in process.
|
|
1201
|
+
* `ttlSeconds` defaults to the ceiling, twelve hours; more is refused by the core.
|
|
1202
|
+
*/
|
|
1203
|
+
export declare function mintBedrockToken(region: Region, ttlSeconds?: number | undefined | null): Promise<BearerToken>
|
|
1204
|
+
|
|
1035
1205
|
/**
|
|
1036
1206
|
* One byte range the daemon could not replay.
|
|
1037
1207
|
*
|
|
@@ -1096,6 +1266,17 @@ export interface ProcessExit {
|
|
|
1096
1266
|
signal?: number
|
|
1097
1267
|
}
|
|
1098
1268
|
|
|
1269
|
+
/** Starts one task for `agent` over `session` and resolves with its handle. Does not wait. */
|
|
1270
|
+
export declare function promptAgent(session: Session, agent: AgentSpecInput, task: string, options?: PromptOptions | undefined | null): Promise<ExecHandle>
|
|
1271
|
+
|
|
1272
|
+
/** The knobs on one prompt. */
|
|
1273
|
+
export interface PromptOptions {
|
|
1274
|
+
/** A daemon-side wall-clock budget for the agent process, in seconds. */
|
|
1275
|
+
timeoutSec?: number
|
|
1276
|
+
/** A stable exec id, for a retry that must not spawn twice. */
|
|
1277
|
+
execId?: string
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1099
1280
|
/** Everything a launch needs. */
|
|
1100
1281
|
export interface RunOptions {
|
|
1101
1282
|
/** The image to launch, or omitted for the one `buildImage` built. */
|
|
@@ -1131,6 +1312,11 @@ export interface RunOptions {
|
|
|
1131
1312
|
launchEnv?: Record<string, string>
|
|
1132
1313
|
/** Whether to request the egress connector. Off means no outbound network. */
|
|
1133
1314
|
egress?: boolean
|
|
1315
|
+
/**
|
|
1316
|
+
* Whether to launch shell-capable: the ingress set becomes the measured pair
|
|
1317
|
+
* `[HTTP_INGRESS, SHELL_INGRESS]`, which is what `microvm shell` attaches to.
|
|
1318
|
+
*/
|
|
1319
|
+
shell?: boolean
|
|
1134
1320
|
maxIdleSec?: number
|
|
1135
1321
|
/**
|
|
1136
1322
|
* The window a resume is refused past (STATE-12). Exists **only** in the launch request:
|
package/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// prettier-ignore
|
|
2
1
|
/* eslint-disable */
|
|
3
2
|
// @ts-nocheck
|
|
4
3
|
/* auto-generated by NAPI-RS */
|
|
@@ -63,7 +62,7 @@ const isMuslFromChildProcess = () => {
|
|
|
63
62
|
function requireNative() {
|
|
64
63
|
if (process.env.NAPI_RS_NATIVE_LIBRARY_PATH) {
|
|
65
64
|
try {
|
|
66
|
-
return require(process.env.NAPI_RS_NATIVE_LIBRARY_PATH)
|
|
65
|
+
return require(process.env.NAPI_RS_NATIVE_LIBRARY_PATH)
|
|
67
66
|
} catch (err) {
|
|
68
67
|
loadErrors.push(err)
|
|
69
68
|
}
|
|
@@ -77,8 +76,8 @@ function requireNative() {
|
|
|
77
76
|
try {
|
|
78
77
|
const binding = require('@theagenticguy/microvms-android-arm64')
|
|
79
78
|
const bindingPackageVersion = require('@theagenticguy/microvms-android-arm64/package.json').version
|
|
80
|
-
if (bindingPackageVersion !== '0.
|
|
81
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
79
|
+
if (bindingPackageVersion !== '0.7.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
80
|
+
throw new Error(`Native binding package version mismatch, expected 0.7.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
82
81
|
}
|
|
83
82
|
return binding
|
|
84
83
|
} catch (e) {
|
|
@@ -93,8 +92,8 @@ function requireNative() {
|
|
|
93
92
|
try {
|
|
94
93
|
const binding = require('@theagenticguy/microvms-android-arm-eabi')
|
|
95
94
|
const bindingPackageVersion = require('@theagenticguy/microvms-android-arm-eabi/package.json').version
|
|
96
|
-
if (bindingPackageVersion !== '0.
|
|
97
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
95
|
+
if (bindingPackageVersion !== '0.7.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
96
|
+
throw new Error(`Native binding package version mismatch, expected 0.7.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
98
97
|
}
|
|
99
98
|
return binding
|
|
100
99
|
} catch (e) {
|
|
@@ -107,36 +106,36 @@ function requireNative() {
|
|
|
107
106
|
if (process.arch === 'x64') {
|
|
108
107
|
if ((process.config && process.config.variables && process.config.variables.shlib_suffix === 'dll.a') || (process.config && process.config.variables && process.config.variables.node_target_type === 'shared_library')) {
|
|
109
108
|
try {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
109
|
+
return require('./microvms.win32-x64-gnu.node')
|
|
110
|
+
} catch (e) {
|
|
111
|
+
loadErrors.push(e)
|
|
112
|
+
}
|
|
113
|
+
try {
|
|
114
|
+
const binding = require('@theagenticguy/microvms-win32-x64-gnu')
|
|
115
|
+
const bindingPackageVersion = require('@theagenticguy/microvms-win32-x64-gnu/package.json').version
|
|
116
|
+
if (bindingPackageVersion !== '0.7.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
117
|
+
throw new Error(`Native binding package version mismatch, expected 0.7.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
118
|
+
}
|
|
119
|
+
return binding
|
|
120
|
+
} catch (e) {
|
|
121
|
+
loadErrors.push(e)
|
|
119
122
|
}
|
|
120
|
-
return binding
|
|
121
|
-
} catch (e) {
|
|
122
|
-
loadErrors.push(e)
|
|
123
|
-
}
|
|
124
123
|
} else {
|
|
125
124
|
try {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
125
|
+
return require('./microvms.win32-x64-msvc.node')
|
|
126
|
+
} catch (e) {
|
|
127
|
+
loadErrors.push(e)
|
|
128
|
+
}
|
|
129
|
+
try {
|
|
130
|
+
const binding = require('@theagenticguy/microvms-win32-x64-msvc')
|
|
131
|
+
const bindingPackageVersion = require('@theagenticguy/microvms-win32-x64-msvc/package.json').version
|
|
132
|
+
if (bindingPackageVersion !== '0.7.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
133
|
+
throw new Error(`Native binding package version mismatch, expected 0.7.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
134
|
+
}
|
|
135
|
+
return binding
|
|
136
|
+
} catch (e) {
|
|
137
|
+
loadErrors.push(e)
|
|
135
138
|
}
|
|
136
|
-
return binding
|
|
137
|
-
} catch (e) {
|
|
138
|
-
loadErrors.push(e)
|
|
139
|
-
}
|
|
140
139
|
}
|
|
141
140
|
} else if (process.arch === 'ia32') {
|
|
142
141
|
try {
|
|
@@ -147,8 +146,8 @@ function requireNative() {
|
|
|
147
146
|
try {
|
|
148
147
|
const binding = require('@theagenticguy/microvms-win32-ia32-msvc')
|
|
149
148
|
const bindingPackageVersion = require('@theagenticguy/microvms-win32-ia32-msvc/package.json').version
|
|
150
|
-
if (bindingPackageVersion !== '0.
|
|
151
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
149
|
+
if (bindingPackageVersion !== '0.7.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
150
|
+
throw new Error(`Native binding package version mismatch, expected 0.7.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
152
151
|
}
|
|
153
152
|
return binding
|
|
154
153
|
} catch (e) {
|
|
@@ -163,8 +162,8 @@ function requireNative() {
|
|
|
163
162
|
try {
|
|
164
163
|
const binding = require('@theagenticguy/microvms-win32-arm64-msvc')
|
|
165
164
|
const bindingPackageVersion = require('@theagenticguy/microvms-win32-arm64-msvc/package.json').version
|
|
166
|
-
if (bindingPackageVersion !== '0.
|
|
167
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
165
|
+
if (bindingPackageVersion !== '0.7.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
166
|
+
throw new Error(`Native binding package version mismatch, expected 0.7.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
168
167
|
}
|
|
169
168
|
return binding
|
|
170
169
|
} catch (e) {
|
|
@@ -182,8 +181,8 @@ function requireNative() {
|
|
|
182
181
|
try {
|
|
183
182
|
const binding = require('@theagenticguy/microvms-darwin-universal')
|
|
184
183
|
const bindingPackageVersion = require('@theagenticguy/microvms-darwin-universal/package.json').version
|
|
185
|
-
if (bindingPackageVersion !== '0.
|
|
186
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
184
|
+
if (bindingPackageVersion !== '0.7.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
185
|
+
throw new Error(`Native binding package version mismatch, expected 0.7.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
187
186
|
}
|
|
188
187
|
return binding
|
|
189
188
|
} catch (e) {
|
|
@@ -198,8 +197,8 @@ function requireNative() {
|
|
|
198
197
|
try {
|
|
199
198
|
const binding = require('@theagenticguy/microvms-darwin-x64')
|
|
200
199
|
const bindingPackageVersion = require('@theagenticguy/microvms-darwin-x64/package.json').version
|
|
201
|
-
if (bindingPackageVersion !== '0.
|
|
202
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
200
|
+
if (bindingPackageVersion !== '0.7.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
201
|
+
throw new Error(`Native binding package version mismatch, expected 0.7.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
203
202
|
}
|
|
204
203
|
return binding
|
|
205
204
|
} catch (e) {
|
|
@@ -214,8 +213,8 @@ function requireNative() {
|
|
|
214
213
|
try {
|
|
215
214
|
const binding = require('@theagenticguy/microvms-darwin-arm64')
|
|
216
215
|
const bindingPackageVersion = require('@theagenticguy/microvms-darwin-arm64/package.json').version
|
|
217
|
-
if (bindingPackageVersion !== '0.
|
|
218
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
216
|
+
if (bindingPackageVersion !== '0.7.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
217
|
+
throw new Error(`Native binding package version mismatch, expected 0.7.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
219
218
|
}
|
|
220
219
|
return binding
|
|
221
220
|
} catch (e) {
|
|
@@ -234,8 +233,8 @@ function requireNative() {
|
|
|
234
233
|
try {
|
|
235
234
|
const binding = require('@theagenticguy/microvms-freebsd-x64')
|
|
236
235
|
const bindingPackageVersion = require('@theagenticguy/microvms-freebsd-x64/package.json').version
|
|
237
|
-
if (bindingPackageVersion !== '0.
|
|
238
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
236
|
+
if (bindingPackageVersion !== '0.7.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
237
|
+
throw new Error(`Native binding package version mismatch, expected 0.7.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
239
238
|
}
|
|
240
239
|
return binding
|
|
241
240
|
} catch (e) {
|
|
@@ -250,8 +249,8 @@ function requireNative() {
|
|
|
250
249
|
try {
|
|
251
250
|
const binding = require('@theagenticguy/microvms-freebsd-arm64')
|
|
252
251
|
const bindingPackageVersion = require('@theagenticguy/microvms-freebsd-arm64/package.json').version
|
|
253
|
-
if (bindingPackageVersion !== '0.
|
|
254
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
252
|
+
if (bindingPackageVersion !== '0.7.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
253
|
+
throw new Error(`Native binding package version mismatch, expected 0.7.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
255
254
|
}
|
|
256
255
|
return binding
|
|
257
256
|
} catch (e) {
|
|
@@ -271,8 +270,8 @@ function requireNative() {
|
|
|
271
270
|
try {
|
|
272
271
|
const binding = require('@theagenticguy/microvms-linux-x64-musl')
|
|
273
272
|
const bindingPackageVersion = require('@theagenticguy/microvms-linux-x64-musl/package.json').version
|
|
274
|
-
if (bindingPackageVersion !== '0.
|
|
275
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
273
|
+
if (bindingPackageVersion !== '0.7.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
274
|
+
throw new Error(`Native binding package version mismatch, expected 0.7.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
276
275
|
}
|
|
277
276
|
return binding
|
|
278
277
|
} catch (e) {
|
|
@@ -287,8 +286,8 @@ function requireNative() {
|
|
|
287
286
|
try {
|
|
288
287
|
const binding = require('@theagenticguy/microvms-linux-x64-gnu')
|
|
289
288
|
const bindingPackageVersion = require('@theagenticguy/microvms-linux-x64-gnu/package.json').version
|
|
290
|
-
if (bindingPackageVersion !== '0.
|
|
291
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
289
|
+
if (bindingPackageVersion !== '0.7.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
290
|
+
throw new Error(`Native binding package version mismatch, expected 0.7.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
292
291
|
}
|
|
293
292
|
return binding
|
|
294
293
|
} catch (e) {
|
|
@@ -305,8 +304,8 @@ function requireNative() {
|
|
|
305
304
|
try {
|
|
306
305
|
const binding = require('@theagenticguy/microvms-linux-arm64-musl')
|
|
307
306
|
const bindingPackageVersion = require('@theagenticguy/microvms-linux-arm64-musl/package.json').version
|
|
308
|
-
if (bindingPackageVersion !== '0.
|
|
309
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
307
|
+
if (bindingPackageVersion !== '0.7.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
308
|
+
throw new Error(`Native binding package version mismatch, expected 0.7.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
310
309
|
}
|
|
311
310
|
return binding
|
|
312
311
|
} catch (e) {
|
|
@@ -321,8 +320,8 @@ function requireNative() {
|
|
|
321
320
|
try {
|
|
322
321
|
const binding = require('@theagenticguy/microvms-linux-arm64-gnu')
|
|
323
322
|
const bindingPackageVersion = require('@theagenticguy/microvms-linux-arm64-gnu/package.json').version
|
|
324
|
-
if (bindingPackageVersion !== '0.
|
|
325
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
323
|
+
if (bindingPackageVersion !== '0.7.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
324
|
+
throw new Error(`Native binding package version mismatch, expected 0.7.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
326
325
|
}
|
|
327
326
|
return binding
|
|
328
327
|
} catch (e) {
|
|
@@ -339,8 +338,8 @@ function requireNative() {
|
|
|
339
338
|
try {
|
|
340
339
|
const binding = require('@theagenticguy/microvms-linux-arm-musleabihf')
|
|
341
340
|
const bindingPackageVersion = require('@theagenticguy/microvms-linux-arm-musleabihf/package.json').version
|
|
342
|
-
if (bindingPackageVersion !== '0.
|
|
343
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
341
|
+
if (bindingPackageVersion !== '0.7.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
342
|
+
throw new Error(`Native binding package version mismatch, expected 0.7.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
344
343
|
}
|
|
345
344
|
return binding
|
|
346
345
|
} catch (e) {
|
|
@@ -355,8 +354,8 @@ function requireNative() {
|
|
|
355
354
|
try {
|
|
356
355
|
const binding = require('@theagenticguy/microvms-linux-arm-gnueabihf')
|
|
357
356
|
const bindingPackageVersion = require('@theagenticguy/microvms-linux-arm-gnueabihf/package.json').version
|
|
358
|
-
if (bindingPackageVersion !== '0.
|
|
359
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
357
|
+
if (bindingPackageVersion !== '0.7.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
358
|
+
throw new Error(`Native binding package version mismatch, expected 0.7.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
360
359
|
}
|
|
361
360
|
return binding
|
|
362
361
|
} catch (e) {
|
|
@@ -373,8 +372,8 @@ function requireNative() {
|
|
|
373
372
|
try {
|
|
374
373
|
const binding = require('@theagenticguy/microvms-linux-loong64-musl')
|
|
375
374
|
const bindingPackageVersion = require('@theagenticguy/microvms-linux-loong64-musl/package.json').version
|
|
376
|
-
if (bindingPackageVersion !== '0.
|
|
377
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
375
|
+
if (bindingPackageVersion !== '0.7.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
376
|
+
throw new Error(`Native binding package version mismatch, expected 0.7.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
378
377
|
}
|
|
379
378
|
return binding
|
|
380
379
|
} catch (e) {
|
|
@@ -389,8 +388,8 @@ function requireNative() {
|
|
|
389
388
|
try {
|
|
390
389
|
const binding = require('@theagenticguy/microvms-linux-loong64-gnu')
|
|
391
390
|
const bindingPackageVersion = require('@theagenticguy/microvms-linux-loong64-gnu/package.json').version
|
|
392
|
-
if (bindingPackageVersion !== '0.
|
|
393
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
391
|
+
if (bindingPackageVersion !== '0.7.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
392
|
+
throw new Error(`Native binding package version mismatch, expected 0.7.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
394
393
|
}
|
|
395
394
|
return binding
|
|
396
395
|
} catch (e) {
|
|
@@ -407,8 +406,8 @@ function requireNative() {
|
|
|
407
406
|
try {
|
|
408
407
|
const binding = require('@theagenticguy/microvms-linux-riscv64-musl')
|
|
409
408
|
const bindingPackageVersion = require('@theagenticguy/microvms-linux-riscv64-musl/package.json').version
|
|
410
|
-
if (bindingPackageVersion !== '0.
|
|
411
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
409
|
+
if (bindingPackageVersion !== '0.7.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
410
|
+
throw new Error(`Native binding package version mismatch, expected 0.7.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
412
411
|
}
|
|
413
412
|
return binding
|
|
414
413
|
} catch (e) {
|
|
@@ -423,8 +422,8 @@ function requireNative() {
|
|
|
423
422
|
try {
|
|
424
423
|
const binding = require('@theagenticguy/microvms-linux-riscv64-gnu')
|
|
425
424
|
const bindingPackageVersion = require('@theagenticguy/microvms-linux-riscv64-gnu/package.json').version
|
|
426
|
-
if (bindingPackageVersion !== '0.
|
|
427
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
425
|
+
if (bindingPackageVersion !== '0.7.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
426
|
+
throw new Error(`Native binding package version mismatch, expected 0.7.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
428
427
|
}
|
|
429
428
|
return binding
|
|
430
429
|
} catch (e) {
|
|
@@ -440,8 +439,8 @@ function requireNative() {
|
|
|
440
439
|
try {
|
|
441
440
|
const binding = require('@theagenticguy/microvms-linux-ppc64-gnu')
|
|
442
441
|
const bindingPackageVersion = require('@theagenticguy/microvms-linux-ppc64-gnu/package.json').version
|
|
443
|
-
if (bindingPackageVersion !== '0.
|
|
444
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
442
|
+
if (bindingPackageVersion !== '0.7.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
443
|
+
throw new Error(`Native binding package version mismatch, expected 0.7.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
445
444
|
}
|
|
446
445
|
return binding
|
|
447
446
|
} catch (e) {
|
|
@@ -456,8 +455,8 @@ function requireNative() {
|
|
|
456
455
|
try {
|
|
457
456
|
const binding = require('@theagenticguy/microvms-linux-s390x-gnu')
|
|
458
457
|
const bindingPackageVersion = require('@theagenticguy/microvms-linux-s390x-gnu/package.json').version
|
|
459
|
-
if (bindingPackageVersion !== '0.
|
|
460
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
458
|
+
if (bindingPackageVersion !== '0.7.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
459
|
+
throw new Error(`Native binding package version mismatch, expected 0.7.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
461
460
|
}
|
|
462
461
|
return binding
|
|
463
462
|
} catch (e) {
|
|
@@ -476,8 +475,8 @@ function requireNative() {
|
|
|
476
475
|
try {
|
|
477
476
|
const binding = require('@theagenticguy/microvms-openharmony-arm64')
|
|
478
477
|
const bindingPackageVersion = require('@theagenticguy/microvms-openharmony-arm64/package.json').version
|
|
479
|
-
if (bindingPackageVersion !== '0.
|
|
480
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
478
|
+
if (bindingPackageVersion !== '0.7.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
479
|
+
throw new Error(`Native binding package version mismatch, expected 0.7.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
481
480
|
}
|
|
482
481
|
return binding
|
|
483
482
|
} catch (e) {
|
|
@@ -492,8 +491,8 @@ function requireNative() {
|
|
|
492
491
|
try {
|
|
493
492
|
const binding = require('@theagenticguy/microvms-openharmony-x64')
|
|
494
493
|
const bindingPackageVersion = require('@theagenticguy/microvms-openharmony-x64/package.json').version
|
|
495
|
-
if (bindingPackageVersion !== '0.
|
|
496
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
494
|
+
if (bindingPackageVersion !== '0.7.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
495
|
+
throw new Error(`Native binding package version mismatch, expected 0.7.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
497
496
|
}
|
|
498
497
|
return binding
|
|
499
498
|
} catch (e) {
|
|
@@ -508,8 +507,8 @@ function requireNative() {
|
|
|
508
507
|
try {
|
|
509
508
|
const binding = require('@theagenticguy/microvms-openharmony-arm')
|
|
510
509
|
const bindingPackageVersion = require('@theagenticguy/microvms-openharmony-arm/package.json').version
|
|
511
|
-
if (bindingPackageVersion !== '0.
|
|
512
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
510
|
+
if (bindingPackageVersion !== '0.7.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
511
|
+
throw new Error(`Native binding package version mismatch, expected 0.7.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
513
512
|
}
|
|
514
513
|
return binding
|
|
515
514
|
} catch (e) {
|
|
@@ -550,7 +549,7 @@ function createLoadErrorChain(errors) {
|
|
|
550
549
|
//
|
|
551
550
|
// NAPI_RS_WASI_FLAVOR selects one exact generated flavor and implies strict
|
|
552
551
|
// WASI loading. It never crosses into another flavor or falls back to native.
|
|
553
|
-
const __napiWasiFlavors = [
|
|
552
|
+
const __napiWasiFlavors = ['wasm32-wasi']
|
|
554
553
|
const __napiWasiFlavor = process.env.NAPI_RS_WASI_FLAVOR
|
|
555
554
|
const __napiWasiFlavorRequested =
|
|
556
555
|
typeof __napiWasiFlavor === 'string' && __napiWasiFlavor.length > 0
|
|
@@ -619,11 +618,11 @@ if (!nativeBinding || forceWasi) {
|
|
|
619
618
|
}
|
|
620
619
|
return null
|
|
621
620
|
}
|
|
622
|
-
if (!wasiBindingLoaded && (!__napiWasiFlavorRequested || __napiWasiFlavor ===
|
|
621
|
+
if (!wasiBindingLoaded && (!__napiWasiFlavorRequested || __napiWasiFlavor === 'wasm32-wasi')) {
|
|
623
622
|
let candidateError = null
|
|
624
623
|
let candidateFailed = false
|
|
625
624
|
try {
|
|
626
|
-
candidateError = __napiWasiResolveCandidate('./microvms.wasi.cjs', false, [
|
|
625
|
+
candidateError = __napiWasiResolveCandidate('./microvms.wasi.cjs', false, ['./microvms.wasm32-wasi.debug.wasm', './microvms.wasm32-wasi.wasm'])
|
|
627
626
|
candidateFailed = candidateError !== null
|
|
628
627
|
if (!candidateFailed) {
|
|
629
628
|
wasiBinding = require('./microvms.wasi.cjs')
|
|
@@ -639,7 +638,7 @@ if (!nativeBinding || forceWasi) {
|
|
|
639
638
|
loadErrors.push(candidateError)
|
|
640
639
|
}
|
|
641
640
|
}
|
|
642
|
-
if (!wasiBindingLoaded && (!__napiWasiFlavorRequested || __napiWasiFlavor ===
|
|
641
|
+
if (!wasiBindingLoaded && (!__napiWasiFlavorRequested || __napiWasiFlavor === 'wasm32-wasi')) {
|
|
643
642
|
let candidateError = null
|
|
644
643
|
let candidateFailed = false
|
|
645
644
|
try {
|
|
@@ -648,8 +647,8 @@ if (!nativeBinding || forceWasi) {
|
|
|
648
647
|
if (!candidateFailed) {
|
|
649
648
|
if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
650
649
|
const bindingPackageVersion = require('@theagenticguy/microvms-wasm32-wasi/package.json').version
|
|
651
|
-
if (bindingPackageVersion !== '0.
|
|
652
|
-
throw new Error(`WASI binding package version mismatch, expected 0.
|
|
650
|
+
if (bindingPackageVersion !== '0.7.0') {
|
|
651
|
+
throw new Error(`WASI binding package version mismatch, expected 0.7.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
653
652
|
}
|
|
654
653
|
}
|
|
655
654
|
wasiBinding = require('@theagenticguy/microvms-wasm32-wasi')
|
|
@@ -700,7 +699,9 @@ if (!nativeBinding) {
|
|
|
700
699
|
}
|
|
701
700
|
|
|
702
701
|
module.exports = nativeBinding
|
|
702
|
+
module.exports.AgentVm = nativeBinding.AgentVm
|
|
703
703
|
module.exports.Amount = nativeBinding.Amount
|
|
704
|
+
module.exports.BearerToken = nativeBinding.BearerToken
|
|
704
705
|
module.exports.BuildHookTimeout = nativeBinding.BuildHookTimeout
|
|
705
706
|
module.exports.CostReport = nativeBinding.CostReport
|
|
706
707
|
module.exports.Duration = nativeBinding.Duration
|
|
@@ -718,6 +719,7 @@ module.exports.Session = nativeBinding.Session
|
|
|
718
719
|
module.exports.SizeClass = nativeBinding.SizeClass
|
|
719
720
|
module.exports.Total = nativeBinding.Total
|
|
720
721
|
module.exports.Unpriced = nativeBinding.Unpriced
|
|
722
|
+
module.exports.agentConstants = nativeBinding.agentConstants
|
|
721
723
|
module.exports.buildUnpricedReason = nativeBinding.buildUnpricedReason
|
|
722
724
|
module.exports.compareResidency = nativeBinding.compareResidency
|
|
723
725
|
module.exports.coreVersion = nativeBinding.coreVersion
|
|
@@ -726,6 +728,10 @@ module.exports.defaultBaseImage = nativeBinding.defaultBaseImage
|
|
|
726
728
|
module.exports.errorCodes = nativeBinding.errorCodes
|
|
727
729
|
module.exports.estimateRun = nativeBinding.estimateRun
|
|
728
730
|
module.exports.GapPolicy = nativeBinding.GapPolicy
|
|
731
|
+
module.exports.installAgentAccess = nativeBinding.installAgentAccess
|
|
732
|
+
module.exports.installedAgents = nativeBinding.installedAgents
|
|
733
|
+
module.exports.mintBedrockToken = nativeBinding.mintBedrockToken
|
|
734
|
+
module.exports.promptAgent = nativeBinding.promptAgent
|
|
729
735
|
module.exports.runReport = nativeBinding.runReport
|
|
730
736
|
module.exports.sessionConstants = nativeBinding.sessionConstants
|
|
731
737
|
module.exports.wireKinds = nativeBinding.wireKinds
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theagenticguy/microvms",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Node bindings over microvms-core: the MicroVMs client with every trap closure",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Laith Al-Saadoon",
|
|
7
|
-
"homepage": "https://
|
|
7
|
+
"homepage": "https://laithalsaadoon.github.io/microvms-agentd/",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "git+https://github.com/
|
|
10
|
+
"url": "git+https://github.com/laithalsaadoon/microvms-agentd.git",
|
|
11
11
|
"directory": "microvms-js"
|
|
12
12
|
},
|
|
13
13
|
"bugs": {
|
|
14
|
-
"url": "https://github.com/
|
|
14
|
+
"url": "https://github.com/laithalsaadoon/microvms-agentd/issues"
|
|
15
15
|
},
|
|
16
16
|
"keywords": [
|
|
17
17
|
"microvms",
|