@agentrix/cli 0.0.12 → 0.0.14
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/{index-A8QO7gdw.cjs → index-CCpqyHjv.cjs} +579 -239
- package/dist/{index-BdFjpsoN.cjs → index-DDSUzta4.cjs} +8 -90
- package/dist/{index-D1ipaIV_.mjs → index-DoalEmuX.mjs} +8 -90
- package/dist/{index-Dzjo3uhE.mjs → index-Dtz97eJO.mjs} +580 -240
- package/dist/index.cjs +6 -3
- package/dist/index.mjs +6 -3
- package/dist/lib.cjs +5 -1
- package/dist/lib.d.cts +111 -0
- package/dist/lib.d.mts +111 -0
- package/dist/lib.mjs +5 -1
- package/dist/{logger-D-ioMWe6.mjs → logger-BRmB311i.mjs} +158 -24
- package/dist/{logger---ZD5a2u.cjs → logger-DFD0a_cW.cjs} +140 -5
- package/dist/sandbox/node-proxy-boot.js +13 -0
- package/package.json +6 -4
package/dist/index.cjs
CHANGED
|
@@ -3,12 +3,11 @@
|
|
|
3
3
|
require('yargs');
|
|
4
4
|
require('yargs/helpers');
|
|
5
5
|
require('chalk');
|
|
6
|
-
require('./index-
|
|
7
|
-
require('./logger
|
|
6
|
+
require('./index-CCpqyHjv.cjs');
|
|
7
|
+
require('./logger-DFD0a_cW.cjs');
|
|
8
8
|
require('@agentrix/shared');
|
|
9
9
|
require('node:crypto');
|
|
10
10
|
require('axios');
|
|
11
|
-
require('node:fs');
|
|
12
11
|
require('node:readline');
|
|
13
12
|
require('fs');
|
|
14
13
|
require('path');
|
|
@@ -16,10 +15,13 @@ require('node:os');
|
|
|
16
15
|
require('open');
|
|
17
16
|
require('socket.io-client');
|
|
18
17
|
require('node:events');
|
|
18
|
+
require('node:fs');
|
|
19
19
|
require('node:path');
|
|
20
20
|
require('child_process');
|
|
21
21
|
require('ps-list');
|
|
22
22
|
require('cross-spawn');
|
|
23
|
+
require('@xmz-ai/sandbox-runtime');
|
|
24
|
+
require('@xmz-ai/sandbox-runtime/dist/utils/platform.js');
|
|
23
25
|
require('fastify');
|
|
24
26
|
require('zod');
|
|
25
27
|
require('fastify-type-provider-zod');
|
|
@@ -32,4 +34,5 @@ require('crypto');
|
|
|
32
34
|
require('@openai/codex-sdk');
|
|
33
35
|
require('zod/v3');
|
|
34
36
|
require('winston');
|
|
37
|
+
require('os');
|
|
35
38
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import 'yargs';
|
|
2
2
|
import 'yargs/helpers';
|
|
3
3
|
import 'chalk';
|
|
4
|
-
import './index-
|
|
5
|
-
import './logger-
|
|
4
|
+
import './index-Dtz97eJO.mjs';
|
|
5
|
+
import './logger-BRmB311i.mjs';
|
|
6
6
|
import '@agentrix/shared';
|
|
7
7
|
import 'node:crypto';
|
|
8
8
|
import 'axios';
|
|
9
|
-
import 'node:fs';
|
|
10
9
|
import 'node:readline';
|
|
11
10
|
import 'fs';
|
|
12
11
|
import 'path';
|
|
@@ -14,10 +13,13 @@ import 'node:os';
|
|
|
14
13
|
import 'open';
|
|
15
14
|
import 'socket.io-client';
|
|
16
15
|
import 'node:events';
|
|
16
|
+
import 'node:fs';
|
|
17
17
|
import 'node:path';
|
|
18
18
|
import 'child_process';
|
|
19
19
|
import 'ps-list';
|
|
20
20
|
import 'cross-spawn';
|
|
21
|
+
import '@xmz-ai/sandbox-runtime';
|
|
22
|
+
import '@xmz-ai/sandbox-runtime/dist/utils/platform.js';
|
|
21
23
|
import 'fastify';
|
|
22
24
|
import 'zod';
|
|
23
25
|
import 'fastify-type-provider-zod';
|
|
@@ -30,3 +32,4 @@ import 'crypto';
|
|
|
30
32
|
import '@openai/codex-sdk';
|
|
31
33
|
import 'zod/v3';
|
|
32
34
|
import 'winston';
|
|
35
|
+
import 'os';
|
package/dist/lib.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var _package = require('./logger
|
|
3
|
+
var _package = require('./logger-DFD0a_cW.cjs');
|
|
4
4
|
require('winston');
|
|
5
5
|
require('chalk');
|
|
6
6
|
require('node:os');
|
|
@@ -11,6 +11,10 @@ require('node:path');
|
|
|
11
11
|
require('@agentrix/shared');
|
|
12
12
|
require('path');
|
|
13
13
|
require('url');
|
|
14
|
+
require('zod');
|
|
15
|
+
require('@xmz-ai/sandbox-runtime');
|
|
16
|
+
require('os');
|
|
17
|
+
require('@xmz-ai/sandbox-runtime/dist/utils/platform.js');
|
|
14
18
|
|
|
15
19
|
|
|
16
20
|
|
package/dist/lib.d.cts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import winston from 'winston';
|
|
2
2
|
import { FileHandle } from 'node:fs/promises';
|
|
3
3
|
import { AgentContext, CreateTaskEventData, ResumeTaskEventData } from '@agentrix/shared';
|
|
4
|
+
import { z } from 'zod';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* Winston-based logging system for agentrix CLI
|
|
@@ -16,6 +17,99 @@ import { AgentContext, CreateTaskEventData, ResumeTaskEventData } from '@agentri
|
|
|
16
17
|
|
|
17
18
|
declare let logger: winston.Logger;
|
|
18
19
|
|
|
20
|
+
declare const SandboxSettingsSchema: z.ZodObject<{
|
|
21
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
22
|
+
network: z.ZodObject<{
|
|
23
|
+
allowedDomains: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
|
|
24
|
+
deniedDomains: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
|
|
25
|
+
allowUnixSockets: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
26
|
+
allowAllUnixSockets: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
+
allowLocalBinding: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
+
httpProxyPort: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
socksProxyPort: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
noProxyAddresses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
allowedDomains: string[] | "*";
|
|
33
|
+
deniedDomains: string[] | "*";
|
|
34
|
+
httpProxyPort?: number | undefined;
|
|
35
|
+
socksProxyPort?: number | undefined;
|
|
36
|
+
allowAllUnixSockets?: boolean | undefined;
|
|
37
|
+
noProxyAddresses?: string[] | undefined;
|
|
38
|
+
allowUnixSockets?: string[] | undefined;
|
|
39
|
+
allowLocalBinding?: boolean | undefined;
|
|
40
|
+
}, {
|
|
41
|
+
allowedDomains: string[] | "*";
|
|
42
|
+
deniedDomains: string[] | "*";
|
|
43
|
+
httpProxyPort?: number | undefined;
|
|
44
|
+
socksProxyPort?: number | undefined;
|
|
45
|
+
allowAllUnixSockets?: boolean | undefined;
|
|
46
|
+
noProxyAddresses?: string[] | undefined;
|
|
47
|
+
allowUnixSockets?: string[] | undefined;
|
|
48
|
+
allowLocalBinding?: boolean | undefined;
|
|
49
|
+
}>;
|
|
50
|
+
filesystem: z.ZodOptional<z.ZodObject<{
|
|
51
|
+
denyRead: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
52
|
+
allowRead: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
53
|
+
autoAllowSystemPaths: z.ZodOptional<z.ZodBoolean>;
|
|
54
|
+
allowWrite: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
55
|
+
denyWrite: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
56
|
+
}, "strip", z.ZodTypeAny, {
|
|
57
|
+
denyRead?: string[] | undefined;
|
|
58
|
+
allowRead?: string[] | undefined;
|
|
59
|
+
autoAllowSystemPaths?: boolean | undefined;
|
|
60
|
+
allowWrite?: string[] | undefined;
|
|
61
|
+
denyWrite?: string[] | undefined;
|
|
62
|
+
}, {
|
|
63
|
+
denyRead?: string[] | undefined;
|
|
64
|
+
allowRead?: string[] | undefined;
|
|
65
|
+
autoAllowSystemPaths?: boolean | undefined;
|
|
66
|
+
allowWrite?: string[] | undefined;
|
|
67
|
+
denyWrite?: string[] | undefined;
|
|
68
|
+
}>>;
|
|
69
|
+
env: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
enabled: boolean;
|
|
72
|
+
network: {
|
|
73
|
+
allowedDomains: string[] | "*";
|
|
74
|
+
deniedDomains: string[] | "*";
|
|
75
|
+
httpProxyPort?: number | undefined;
|
|
76
|
+
socksProxyPort?: number | undefined;
|
|
77
|
+
allowAllUnixSockets?: boolean | undefined;
|
|
78
|
+
noProxyAddresses?: string[] | undefined;
|
|
79
|
+
allowUnixSockets?: string[] | undefined;
|
|
80
|
+
allowLocalBinding?: boolean | undefined;
|
|
81
|
+
};
|
|
82
|
+
filesystem?: {
|
|
83
|
+
denyRead?: string[] | undefined;
|
|
84
|
+
allowRead?: string[] | undefined;
|
|
85
|
+
autoAllowSystemPaths?: boolean | undefined;
|
|
86
|
+
allowWrite?: string[] | undefined;
|
|
87
|
+
denyWrite?: string[] | undefined;
|
|
88
|
+
} | undefined;
|
|
89
|
+
env?: Record<string, string | null> | undefined;
|
|
90
|
+
}, {
|
|
91
|
+
network: {
|
|
92
|
+
allowedDomains: string[] | "*";
|
|
93
|
+
deniedDomains: string[] | "*";
|
|
94
|
+
httpProxyPort?: number | undefined;
|
|
95
|
+
socksProxyPort?: number | undefined;
|
|
96
|
+
allowAllUnixSockets?: boolean | undefined;
|
|
97
|
+
noProxyAddresses?: string[] | undefined;
|
|
98
|
+
allowUnixSockets?: string[] | undefined;
|
|
99
|
+
allowLocalBinding?: boolean | undefined;
|
|
100
|
+
};
|
|
101
|
+
enabled?: boolean | undefined;
|
|
102
|
+
filesystem?: {
|
|
103
|
+
denyRead?: string[] | undefined;
|
|
104
|
+
allowRead?: string[] | undefined;
|
|
105
|
+
autoAllowSystemPaths?: boolean | undefined;
|
|
106
|
+
allowWrite?: string[] | undefined;
|
|
107
|
+
denyWrite?: string[] | undefined;
|
|
108
|
+
} | undefined;
|
|
109
|
+
env?: Record<string, string | null> | undefined;
|
|
110
|
+
}>;
|
|
111
|
+
type SandboxSettings = z.infer<typeof SandboxSettingsSchema>;
|
|
112
|
+
|
|
19
113
|
interface DaemonState {
|
|
20
114
|
pid: number;
|
|
21
115
|
port: number;
|
|
@@ -47,6 +141,7 @@ declare class Machine implements AgentContext {
|
|
|
47
141
|
readonly disableCaffeinate: boolean;
|
|
48
142
|
readonly statePaths: MachineStatePaths;
|
|
49
143
|
secretKey?: Uint8Array<ArrayBufferLike>;
|
|
144
|
+
private sandboxSettings;
|
|
50
145
|
constructor();
|
|
51
146
|
generateMachineId(): string;
|
|
52
147
|
metadata(): any;
|
|
@@ -60,6 +155,7 @@ declare class Machine implements AgentContext {
|
|
|
60
155
|
acquireDaemonLock(maxAttempts?: number, delayIncrementMs?: number): Promise<FileHandle | null>;
|
|
61
156
|
releaseDaemonLock(lockHandle: FileHandle): Promise<void>;
|
|
62
157
|
ensureDir(target: string): string;
|
|
158
|
+
resolveTaskDir(userId: string, taskId: string): string;
|
|
63
159
|
resolveProjectDir(cwd: string | undefined, userId: string, taskId: string): string;
|
|
64
160
|
resolveDataDir(userId: string, taskId: string): string;
|
|
65
161
|
resolveAttachmentsDir(userId: string, taskId: string): string;
|
|
@@ -73,6 +169,21 @@ declare class Machine implements AgentContext {
|
|
|
73
169
|
writeTaskInput(data: CreateTaskEventData | ResumeTaskEventData): void;
|
|
74
170
|
readTaskInput(userId: string, taskId: string): (CreateTaskEventData | ResumeTaskEventData);
|
|
75
171
|
getSecretKey(): Promise<Uint8Array<ArrayBufferLike> | undefined>;
|
|
172
|
+
/**
|
|
173
|
+
* Read settings file, returns null if file doesn't exist
|
|
174
|
+
*/
|
|
175
|
+
readSettings(): any | null;
|
|
176
|
+
/**
|
|
177
|
+
* Write settings to file, creating parent directories if needed
|
|
178
|
+
*/
|
|
179
|
+
writeSettings(settings: any): void;
|
|
180
|
+
/**
|
|
181
|
+
* Read or initialize settings with default value
|
|
182
|
+
* If file doesn't exist, writes defaultSettings and returns it
|
|
183
|
+
*/
|
|
184
|
+
readOrInitSettings(defaultSettings: any): any;
|
|
185
|
+
private loadSandboxSettings;
|
|
186
|
+
getSandboxSettings(): SandboxSettings;
|
|
76
187
|
}
|
|
77
188
|
declare const machine: Machine;
|
|
78
189
|
|
package/dist/lib.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import winston from 'winston';
|
|
2
2
|
import { FileHandle } from 'node:fs/promises';
|
|
3
3
|
import { AgentContext, CreateTaskEventData, ResumeTaskEventData } from '@agentrix/shared';
|
|
4
|
+
import { z } from 'zod';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* Winston-based logging system for agentrix CLI
|
|
@@ -16,6 +17,99 @@ import { AgentContext, CreateTaskEventData, ResumeTaskEventData } from '@agentri
|
|
|
16
17
|
|
|
17
18
|
declare let logger: winston.Logger;
|
|
18
19
|
|
|
20
|
+
declare const SandboxSettingsSchema: z.ZodObject<{
|
|
21
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
22
|
+
network: z.ZodObject<{
|
|
23
|
+
allowedDomains: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
|
|
24
|
+
deniedDomains: z.ZodUnion<[z.ZodLiteral<"*">, z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">]>;
|
|
25
|
+
allowUnixSockets: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
26
|
+
allowAllUnixSockets: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
+
allowLocalBinding: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
+
httpProxyPort: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
socksProxyPort: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
noProxyAddresses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
allowedDomains: string[] | "*";
|
|
33
|
+
deniedDomains: string[] | "*";
|
|
34
|
+
httpProxyPort?: number | undefined;
|
|
35
|
+
socksProxyPort?: number | undefined;
|
|
36
|
+
allowAllUnixSockets?: boolean | undefined;
|
|
37
|
+
noProxyAddresses?: string[] | undefined;
|
|
38
|
+
allowUnixSockets?: string[] | undefined;
|
|
39
|
+
allowLocalBinding?: boolean | undefined;
|
|
40
|
+
}, {
|
|
41
|
+
allowedDomains: string[] | "*";
|
|
42
|
+
deniedDomains: string[] | "*";
|
|
43
|
+
httpProxyPort?: number | undefined;
|
|
44
|
+
socksProxyPort?: number | undefined;
|
|
45
|
+
allowAllUnixSockets?: boolean | undefined;
|
|
46
|
+
noProxyAddresses?: string[] | undefined;
|
|
47
|
+
allowUnixSockets?: string[] | undefined;
|
|
48
|
+
allowLocalBinding?: boolean | undefined;
|
|
49
|
+
}>;
|
|
50
|
+
filesystem: z.ZodOptional<z.ZodObject<{
|
|
51
|
+
denyRead: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
52
|
+
allowRead: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
53
|
+
autoAllowSystemPaths: z.ZodOptional<z.ZodBoolean>;
|
|
54
|
+
allowWrite: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
55
|
+
denyWrite: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
56
|
+
}, "strip", z.ZodTypeAny, {
|
|
57
|
+
denyRead?: string[] | undefined;
|
|
58
|
+
allowRead?: string[] | undefined;
|
|
59
|
+
autoAllowSystemPaths?: boolean | undefined;
|
|
60
|
+
allowWrite?: string[] | undefined;
|
|
61
|
+
denyWrite?: string[] | undefined;
|
|
62
|
+
}, {
|
|
63
|
+
denyRead?: string[] | undefined;
|
|
64
|
+
allowRead?: string[] | undefined;
|
|
65
|
+
autoAllowSystemPaths?: boolean | undefined;
|
|
66
|
+
allowWrite?: string[] | undefined;
|
|
67
|
+
denyWrite?: string[] | undefined;
|
|
68
|
+
}>>;
|
|
69
|
+
env: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
enabled: boolean;
|
|
72
|
+
network: {
|
|
73
|
+
allowedDomains: string[] | "*";
|
|
74
|
+
deniedDomains: string[] | "*";
|
|
75
|
+
httpProxyPort?: number | undefined;
|
|
76
|
+
socksProxyPort?: number | undefined;
|
|
77
|
+
allowAllUnixSockets?: boolean | undefined;
|
|
78
|
+
noProxyAddresses?: string[] | undefined;
|
|
79
|
+
allowUnixSockets?: string[] | undefined;
|
|
80
|
+
allowLocalBinding?: boolean | undefined;
|
|
81
|
+
};
|
|
82
|
+
filesystem?: {
|
|
83
|
+
denyRead?: string[] | undefined;
|
|
84
|
+
allowRead?: string[] | undefined;
|
|
85
|
+
autoAllowSystemPaths?: boolean | undefined;
|
|
86
|
+
allowWrite?: string[] | undefined;
|
|
87
|
+
denyWrite?: string[] | undefined;
|
|
88
|
+
} | undefined;
|
|
89
|
+
env?: Record<string, string | null> | undefined;
|
|
90
|
+
}, {
|
|
91
|
+
network: {
|
|
92
|
+
allowedDomains: string[] | "*";
|
|
93
|
+
deniedDomains: string[] | "*";
|
|
94
|
+
httpProxyPort?: number | undefined;
|
|
95
|
+
socksProxyPort?: number | undefined;
|
|
96
|
+
allowAllUnixSockets?: boolean | undefined;
|
|
97
|
+
noProxyAddresses?: string[] | undefined;
|
|
98
|
+
allowUnixSockets?: string[] | undefined;
|
|
99
|
+
allowLocalBinding?: boolean | undefined;
|
|
100
|
+
};
|
|
101
|
+
enabled?: boolean | undefined;
|
|
102
|
+
filesystem?: {
|
|
103
|
+
denyRead?: string[] | undefined;
|
|
104
|
+
allowRead?: string[] | undefined;
|
|
105
|
+
autoAllowSystemPaths?: boolean | undefined;
|
|
106
|
+
allowWrite?: string[] | undefined;
|
|
107
|
+
denyWrite?: string[] | undefined;
|
|
108
|
+
} | undefined;
|
|
109
|
+
env?: Record<string, string | null> | undefined;
|
|
110
|
+
}>;
|
|
111
|
+
type SandboxSettings = z.infer<typeof SandboxSettingsSchema>;
|
|
112
|
+
|
|
19
113
|
interface DaemonState {
|
|
20
114
|
pid: number;
|
|
21
115
|
port: number;
|
|
@@ -47,6 +141,7 @@ declare class Machine implements AgentContext {
|
|
|
47
141
|
readonly disableCaffeinate: boolean;
|
|
48
142
|
readonly statePaths: MachineStatePaths;
|
|
49
143
|
secretKey?: Uint8Array<ArrayBufferLike>;
|
|
144
|
+
private sandboxSettings;
|
|
50
145
|
constructor();
|
|
51
146
|
generateMachineId(): string;
|
|
52
147
|
metadata(): any;
|
|
@@ -60,6 +155,7 @@ declare class Machine implements AgentContext {
|
|
|
60
155
|
acquireDaemonLock(maxAttempts?: number, delayIncrementMs?: number): Promise<FileHandle | null>;
|
|
61
156
|
releaseDaemonLock(lockHandle: FileHandle): Promise<void>;
|
|
62
157
|
ensureDir(target: string): string;
|
|
158
|
+
resolveTaskDir(userId: string, taskId: string): string;
|
|
63
159
|
resolveProjectDir(cwd: string | undefined, userId: string, taskId: string): string;
|
|
64
160
|
resolveDataDir(userId: string, taskId: string): string;
|
|
65
161
|
resolveAttachmentsDir(userId: string, taskId: string): string;
|
|
@@ -73,6 +169,21 @@ declare class Machine implements AgentContext {
|
|
|
73
169
|
writeTaskInput(data: CreateTaskEventData | ResumeTaskEventData): void;
|
|
74
170
|
readTaskInput(userId: string, taskId: string): (CreateTaskEventData | ResumeTaskEventData);
|
|
75
171
|
getSecretKey(): Promise<Uint8Array<ArrayBufferLike> | undefined>;
|
|
172
|
+
/**
|
|
173
|
+
* Read settings file, returns null if file doesn't exist
|
|
174
|
+
*/
|
|
175
|
+
readSettings(): any | null;
|
|
176
|
+
/**
|
|
177
|
+
* Write settings to file, creating parent directories if needed
|
|
178
|
+
*/
|
|
179
|
+
writeSettings(settings: any): void;
|
|
180
|
+
/**
|
|
181
|
+
* Read or initialize settings with default value
|
|
182
|
+
* If file doesn't exist, writes defaultSettings and returns it
|
|
183
|
+
*/
|
|
184
|
+
readOrInitSettings(defaultSettings: any): any;
|
|
185
|
+
private loadSandboxSettings;
|
|
186
|
+
getSandboxSettings(): SandboxSettings;
|
|
76
187
|
}
|
|
77
188
|
declare const machine: Machine;
|
|
78
189
|
|
package/dist/lib.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { M as Machine, l as logger, m as machine } from './logger-
|
|
1
|
+
export { M as Machine, l as logger, m as machine } from './logger-BRmB311i.mjs';
|
|
2
2
|
import 'winston';
|
|
3
3
|
import 'chalk';
|
|
4
4
|
import 'node:os';
|
|
@@ -9,3 +9,7 @@ import 'node:path';
|
|
|
9
9
|
import '@agentrix/shared';
|
|
10
10
|
import 'path';
|
|
11
11
|
import 'url';
|
|
12
|
+
import 'zod';
|
|
13
|
+
import '@xmz-ai/sandbox-runtime';
|
|
14
|
+
import 'os';
|
|
15
|
+
import '@xmz-ai/sandbox-runtime/dist/utils/platform.js';
|