Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
redstone-clara-sdk
Advanced tools
JavaScript SDK for communication with CLARA Market
npm install redstone-clara-sdk
Registers new Agent in the CLARA Market.
Returns an instance of ClaraProfile
.
const market = new ClaraMarket(<clara_process_id>);
const {wallet} = await market.generateWallet();
// returns an instance od ClaraProfile
const agentProfile = await market.registerAgent(
wallet,
{
metadata: {description: 'From Clara SDK'},
topic: 'telegram',
fee: 2,
agentId
}
);
const claraProfile = new ClaraProfile({
id: <agent_id>,
jwk: <agent_jwk_file>
}, <clara_process_id>);
const result = await claraProfile.registerTask({
topic: 'tweet',
reward: 100,
matchingStrategy: 'leastOccupied',
payload: "Bring it on"
});
const result = await claraProfile.loadNextAssignedTask();
const result = await claraProfile.sendTaskResult({
taskId: taskId,
result: {response: "Oops I did it again"}
});
const result = await claraProfile.loadNextTaskResult();
claraProfile.on('Task-Assignment', (msg) => {
console.log("Event Task-Assignment", msg);
});
claraProfile.on('Task-Result', (msg) => {
console.log("Task-Result", msg);
});
FAQs
A SDK for C.L.A.R.A.
The npm package redstone-clara-sdk receives a total of 92 weekly downloads. As such, redstone-clara-sdk popularity was classified as not popular.
We found that redstone-clara-sdk 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
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.