
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
A Node.js client for the Bradie LLM service, providing project initialization, messaging, streaming responses, and log retrieval.
npm install @agentic-kit/bradie
# or
yarn add @agentic-kit/bradie
import { Bradie } from '@agentic-kit/bradie';
// 1. Configure callbacks and create client
const client = new Bradie({
domain: 'http://localhost:3000',
onSystemMessage: (msg) => console.log('[system]', msg),
onAssistantReply: (msg) => console.log('[assistant]', msg),
onError: (err) => console.error('[error]', err),
onComplete: () => console.log('[complete]'),
});
// 2. Initialize a project (creates session & project IDs)
const { sessionId, projectId } = await client.initProject(
'my-project',
'/path/to/project'
);
console.log('Session ID:', sessionId, 'Project ID:', projectId);
// 3. Send a message and get a request ID
const requestId = await client.sendMessage('Hello, Bradie!');
console.log('Request ID:', requestId);
// 4. Subscribe to streaming logs (chat messages & system events)
await client.subscribeToResponse(requestId);
Retrieve the complete array of command logs for a given request:
const logs = await client.fetchOnce(requestId);
console.log(logs);
A helper script is included to subscribe to a request from the command line:
cd packages/bradie
npm run subscribe -- \
--sessionId <SESSION_ID> \
--requestId <REQUEST_ID> \
[--domain http://localhost:3000]
new Bradie(config: { domain: string; onSystemMessage: (msg: string) => void; onAssistantReply: (msg: string) => void; onError?: (err: Error) => void; onComplete?: () => void; })
.initProject(projectName: string, projectPath: string): Promise<{ sessionId: string; projectId: string }>
.sendMessage(message: string): Promise<string>
.subscribeToResponse(requestId: string, opts?: { pollInterval?: number; maxPolls?: number }): Promise<void>
.fetchOnce(requestId: string): Promise<AgentCommandLog[]>
Please open issues or pull requests on GitHub.
© Hyperweb (formerly Cosmology). See LICENSE for full licensing and disclaimer.
FAQs
Bradie
We found that bradie demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.