@iinm/plain-agent
Advanced tools
+1
-2
| { | ||
| "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 @@ }, |
+3
-3
| # Plain Agent | ||
| [](https://github.com/iinm/plain-agent/actions/workflows/github-code-scanning/codeql) | ||
| [](https://socket.dev/npm/package/@iinm/plain-agent) | ||
| [](https://socket.dev/npm/package/@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
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
590909
-0.21%95
-1.04%16729
-0.11%