Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@forwardimpact/libagent

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@forwardimpact/libagent - npm Package Compare versions

Comparing version
0.1.47
to
0.1.49
+30
-6
bin/fit-process-agents.js
#!/usr/bin/env node
import { readFileSync } from "node:fs";
import { createCli } from "@forwardimpact/libcli";
import { createResourceIndex } from "@forwardimpact/libresource";

@@ -8,14 +10,32 @@ import { createStorage } from "@forwardimpact/libstorage";

const { version: VERSION } = JSON.parse(
readFileSync(new URL("../package.json", import.meta.url), "utf8"),
);
const definition = {
name: "fit-process-agents",
version: VERSION,
description:
"Process agent configurations from config/agents/*.agent.md and generate Agent resources",
options: {
help: { type: "boolean", short: "h", description: "Show this help" },
version: { type: "boolean", description: "Show version" },
json: { type: "boolean", description: "Output help as JSON" },
},
};
const cli = createCli(definition);
const logger = createLogger("agents");
/**
* Process agent configurations from config/agents/*.agent.md and generate Agent resources
* using the AgentProcessor
* Process agent configurations and generate Agent resources
* @returns {Promise<void>}
*/
async function main() {
const parsed = cli.parse(process.argv.slice(2));
if (!parsed) process.exit(0);
const configStorage = createStorage("config");
const logger = createLogger("agents");
const resourceIndex = createResourceIndex("resources");
// Process agents using AgentProcessor
const agentProcessor = new AgentProcessor(

@@ -29,2 +49,6 @@ resourceIndex,

main();
main().catch((error) => {
logger.exception("main", error);
cli.error(error.message);
process.exit(1);
});
+2
-1
{
"name": "@forwardimpact/libagent",
"version": "0.1.47",
"version": "0.1.49",
"description": "Agent orchestration library for Guide",

@@ -20,2 +20,3 @@ "license": "Apache-2.0",

"dependencies": {
"@forwardimpact/libcli": "^0.1.0",
"@forwardimpact/libdoc": "^0.2.0",

@@ -22,0 +23,0 @@ "@forwardimpact/libsecret": "^0.1.3",