Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@best/agent
Advanced tools
A Best agent is a machine used to run BEST tests in an isolated environment, ensuring nothing changes. The agent usually runs with an specific best runner (ex: @best/runner-headless
or @best/runner-webdriver
) with the specific config
When the best agent starts, if env.HUB_CONFIG
is set, it will try to auto register with the specified hub.
env.HUB_CONFIG
is a JSON string representing an object in the following form:
const hubConfig = {
hub: {
// Hub Connection settings.
host: 'http://localhost:6000',
authToken: 'agent token used for authentication with the hub',
pingTimeout: 180000, // Optional: 180000ms (3 minutes) is the default ping timout.
},
agentConfig: {
spec: {
// Only benchmarks with this spec can run in this agent.
browser: 'chrome',
version: '76',
},
host: 'http://localhost:5000', // Required. Url used by the hub to connect to this agent.
options: { path: '/best' }, // Connection Options
remoteRunner: '@best/runner-headless', // Required. The runner which this agent will use when running the job.
remoteRunnerConfig: {}, // Required (may be an empty object). The Runner config for this agent.
},
};
// set env.HUB_CONFIG=JSON.stringify(hubConfig)
When the agent starts, with a hub config, it will start the communication with the hub in the following protocol:
hubConfig.pingTimeout
the agent will do a ping request to the hub, and the hub can reply with
FAQs
Best Agent
We found that @best/agent demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.