+1
-1
| { | ||
| "name": "dphelper", | ||
| "version": "3.1.0", | ||
| "version": "3.1.1", | ||
| "type": "module", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
+0
-47
@@ -341,48 +341,2 @@ /*! | ||
| // --- sandbox --- | ||
| interface SandboxOptions { | ||
| timeout?: number | ||
| memoryLimit?: number | ||
| allowGlobals?: boolean | ||
| allowConsole?: boolean | ||
| } | ||
| interface AgentSandboxOptions { | ||
| maxTokens?: number | ||
| maxOperations?: number | ||
| allowRead?: boolean | ||
| allowWrite?: boolean | ||
| allowNetwork?: boolean | ||
| blockedAPIs?: string[] | ||
| } | ||
| interface AgentContext { | ||
| id: string | ||
| created: number | ||
| operations: number | ||
| tokens: number | ||
| blocked: boolean | ||
| data: Record<string, any> | ||
| } | ||
| interface IsolatedSandbox { | ||
| run: (code: string) => any | ||
| eval: (expr: string) => any | ||
| setGlobal: (key: string, value: any) => void | ||
| getGlobal: (key: string) => any | ||
| } | ||
| interface SandboxTool { | ||
| run: (code: string, options?: SandboxOptions) => Promise<any> | ||
| eval: (expr: string) => any | ||
| createAgent: (options?: AgentSandboxOptions) => string | ||
| agentRun: (agentId: string, code: string) => Promise<any> | ||
| blockFS: () => void | ||
| blockNetwork: () => void | ||
| isolate: (globals?: Record<string, any>) => IsolatedSandbox | ||
| reset: () => void | ||
| listAgents: () => AgentContext[] | ||
| killAgent: (agentId: string) => boolean | ||
| } | ||
| // --- sanitize --- | ||
@@ -638,3 +592,2 @@ interface SanitizeTool { | ||
| promise: PromiseTool | ||
| sandbox: SandboxTool | ||
| sanitize: SanitizeTool | ||
@@ -641,0 +594,0 @@ screen: ScreenTool |
| interface SandboxOptions { | ||
| timeout?: number | ||
| memoryLimit?: number | ||
| allowGlobals?: boolean | ||
| allowConsole?: boolean | ||
| } | ||
| interface AgentSandboxOptions { | ||
| maxTokens?: number | ||
| maxOperations?: number | ||
| allowRead?: boolean | ||
| allowWrite?: boolean | ||
| allowNetwork?: boolean | ||
| blockedAPIs?: string[] | ||
| } | ||
| interface AgentContext { | ||
| id: string | ||
| created: number | ||
| operations: number | ||
| tokens: number | ||
| blocked: boolean | ||
| data: Record<string, any> | ||
| } | ||
| interface IsolatedSandbox { | ||
| run: (code: string) => any | ||
| eval: (expr: string) => any | ||
| setGlobal: (key: string, value: any) => void | ||
| getGlobal: (key: string) => any | ||
| } | ||
| interface SandboxTool { | ||
| run: (code: string, options?: SandboxOptions) => Promise<any> | ||
| eval: (expr: string) => any | ||
| createAgent: (options?: AgentSandboxOptions) => string | ||
| agentRun: (agentId: string, code: string) => Promise<any> | ||
| blockFS: () => void | ||
| blockNetwork: () => void | ||
| isolate: (globals?: Record<string, any>) => IsolatedSandbox | ||
| reset: () => void | ||
| listAgents: () => AgentContext[] | ||
| killAgent: (agentId: string) => boolean | ||
| } |
| export {}; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
18
-40%411255
-3.49%109
-1.8%2735
-4.54%