@iinm/plain-agent
Advanced tools
+1
-1
| { | ||
| "name": "@iinm/plain-agent", | ||
| "version": "1.15.4", | ||
| "version": "1.15.5", | ||
| "description": "A lightweight terminal-based coding agent focused on safety and low token cost", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
+1
-1
| # 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) | ||
@@ -6,0 +6,0 @@ |
+11
-7
@@ -7,7 +7,13 @@ /** | ||
| import { appendUsageRecord, buildUsageRecord } from "../metrics/usageStore.mjs"; | ||
| import { | ||
| PERSISTED_SESSION_EVENT_TYPES, | ||
| persistSessionEvent, | ||
| } from "../sessionStore.mjs"; | ||
| import { persistSessionEvent } from "../sessionStore.mjs"; | ||
| const BATCH_OUTPUT_EVENT_TYPES = new Set([ | ||
| "session_start", | ||
| "message", | ||
| "token_usage", | ||
| "subagent_switched", | ||
| "session_end", | ||
| "error", | ||
| ]); | ||
| /** | ||
@@ -45,6 +51,4 @@ * @typedef {object} BatchSessionOptions | ||
| if (PERSISTED_SESSION_EVENT_TYPES.has(event.type)) { | ||
| if (BATCH_OUTPUT_EVENT_TYPES.has(event.type)) { | ||
| outputEvent(event); | ||
| } else if (event.type === "error") { | ||
| outputEvent(event); | ||
| } | ||
@@ -51,0 +55,0 @@ |
@@ -12,4 +12,3 @@ /** | ||
| /** Event types that are persisted in session JSONL streams. */ | ||
| export const PERSISTED_SESSION_EVENT_TYPES = new Set([ | ||
| const PERSISTED_SESSION_EVENT_TYPES = new Set([ | ||
| "session_start", | ||
@@ -16,0 +15,0 @@ "message", |
Sorry, the diff of this file is too big to display
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
607571
0.09%17292
0.15%