🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@iinm/plain-agent

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iinm/plain-agent - npm Package Compare versions

Comparing version
1.14.7
to
1.14.8
+1
-2
package.json
{
"name": "@iinm/plain-agent",
"version": "1.14.7",
"version": "1.14.8",
"description": "A lightweight terminal-based coding agent focused on safety and low token cost",

@@ -16,3 +16,2 @@ "license": "MIT",

"plain": "bin/plain",
"plain-notify-desktop": "bin/plain-notify-desktop",
"plain-sandbox": "sandbox/bin/plain-sandbox"

@@ -19,0 +18,0 @@ },

# Plain Agent
[![CodeQL](https://github.com/iinm/plain-agent/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/iinm/plain-agent/actions/workflows/github-code-scanning/codeql)
[![Socket Badge](https://badge.socket.dev/npm/package/@iinm/plain-agent/1.14.7)](https://socket.dev/npm/package/@iinm/plain-agent)
[![Socket Badge](https://badge.socket.dev/npm/package/@iinm/plain-agent/1.14.8)](https://socket.dev/npm/package/@iinm/plain-agent)
[![install size](https://packagephobia.com/badge?p=@iinm/plain-agent)](https://packagephobia.com/result?p=@iinm/plain-agent)

@@ -773,4 +773,4 @@

// Override the default notification command
"notifyCmd": { "command": "plain-notify-desktop", "args": [] }
// Command to run when the agent is waiting for input
"notifyCmd": { "command": "/path/to/your/notify-script", "args": [] }
}

@@ -777,0 +777,0 @@ ```

@@ -70,10 +70,6 @@ /**

const original = await fs.readFile(filePath, "utf8");
const originalLines = splitLines(original);
const newContent = applyBlocks(original, blocks);
await fs.writeFile(filePath, newContent);
const diff = blocks
.map((block) => renderPatchBlock(block, originalLines, nonce))
.join("\n\n");
return `Patched file: ${filePath}\n${diff}`;
return `Patched file: ${filePath}`;
}),

@@ -449,16 +445,1 @@

}
/**
* Split file content into lines the same way applyBlocks does: drop the
* trailing empty element produced by split() when the content ends with a
* newline (or is empty), so line numbers match read_file.
* @param {string} content
* @returns {string[]}
*/
function splitLines(content) {
const lines = content.split("\n");
if (lines.length > 0 && lines[lines.length - 1] === "") {
lines.pop();
}
return lines;
}

Sorry, the diff of this file is not supported yet