Sign In

@cafitac/agent-learner

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cafitac/agent-learner - npm Package Compare versions

Comparing version
0.3.28
to
0.3.29
+12
-5
lib/wrapper.cjs

@@ -681,7 +681,14 @@ const fs = require('node:fs');

}
const siblingNpm = candidateDirs
.map((dir) => path.join(dir, npmBasename))
.find((candidate) => fs.existsSync(candidate));
const tool = siblingNpm || 'npm';
const result = runner(tool, ['install', '-g', '@cafitac/agent-learner@latest'], {
const npmCandidate = candidateDirs
.map((dir) => ({
tool: path.join(dir, npmBasename),
prefix: path.dirname(dir)
}))
.find((candidate) => fs.existsSync(candidate.tool));
const tool = npmCandidate?.tool || 'npm';
const args = ['install', '-g', '@cafitac/agent-learner@latest'];
if (npmCandidate?.prefix) {
args.push('--prefix', npmCandidate.prefix);
}
const result = runner(tool, args, {
stdio,

@@ -688,0 +695,0 @@ encoding: 'utf-8'

{
"name": "@cafitac/agent-learner",
"version": "0.3.28",
"version": "0.3.29",
"description": "npm delivery wrapper for the agent-learner Python core",

@@ -5,0 +5,0 @@ "license": "MIT",