@iinm/plain-agent
Advanced tools
@@ -1161,3 +1161,3 @@ { | ||
| { | ||
| "name": "gemini-3.5-flash", | ||
| "name": "gemini-3.6-flash", | ||
| "variant": "thinking-medium", | ||
@@ -1172,3 +1172,3 @@ "platform": { | ||
| "config": { | ||
| "model": "gemini-3.5-flash", | ||
| "model": "gemini-3.6-flash", | ||
| "generationConfig": { | ||
@@ -1189,3 +1189,3 @@ "maxOutputTokens": 32768, | ||
| "cachedContentTokenCount": -1.35, | ||
| "candidatesTokenCount": 9 | ||
| "candidatesTokenCount": 7.5 | ||
| } | ||
@@ -1196,3 +1196,3 @@ }, | ||
| { | ||
| "name": "gemini-3.5-flash", | ||
| "name": "gemini-3.6-flash", | ||
| "variant": "thinking-high", | ||
@@ -1207,3 +1207,3 @@ "platform": { | ||
| "config": { | ||
| "model": "gemini-3.5-flash", | ||
| "model": "gemini-3.6-flash", | ||
| "generationConfig": { | ||
@@ -1224,3 +1224,3 @@ "maxOutputTokens": 65536, | ||
| "cachedContentTokenCount": -1.35, | ||
| "candidatesTokenCount": 9 | ||
| "candidatesTokenCount": 7.5 | ||
| } | ||
@@ -1296,3 +1296,3 @@ }, | ||
| { | ||
| "name": "gemini-3.5-flash", | ||
| "name": "gemini-3.6-flash", | ||
| "variant": "thinking-medium-vertex-ai", | ||
@@ -1306,3 +1306,3 @@ "platform": { | ||
| "config": { | ||
| "model": "gemini-3.5-flash", | ||
| "model": "gemini-3.6-flash", | ||
| "generationConfig": { | ||
@@ -1323,3 +1323,3 @@ "maxOutputTokens": 32768, | ||
| "cachedContentTokenCount": -1.35, | ||
| "candidatesTokenCount": 9 | ||
| "candidatesTokenCount": 7.5 | ||
| } | ||
@@ -1330,3 +1330,3 @@ }, | ||
| { | ||
| "name": "gemini-3.5-flash", | ||
| "name": "gemini-3.6-flash", | ||
| "variant": "thinking-high-vertex-ai", | ||
@@ -1340,3 +1340,3 @@ "platform": { | ||
| "config": { | ||
| "model": "gemini-3.5-flash", | ||
| "model": "gemini-3.6-flash", | ||
| "generationConfig": { | ||
@@ -1357,3 +1357,3 @@ "maxOutputTokens": 65536, | ||
| "cachedContentTokenCount": -1.35, | ||
| "candidatesTokenCount": 9 | ||
| "candidatesTokenCount": 7.5 | ||
| } | ||
@@ -1550,2 +1550,3 @@ }, | ||
| "model": "gpt-5.6-sol", | ||
| "prompt_cache_key": { "$env": "PLAIN_AGENT_SESSION_ID" }, | ||
| "reasoning": { "effort": "medium", "summary": "auto" }, | ||
@@ -1562,2 +1563,3 @@ "store": false, | ||
| "input_tokens_details.cached_tokens": -4.5, | ||
| "input_tokens_details.cache_write_tokens": 1.25, | ||
| "output_tokens": 30 | ||
@@ -1580,2 +1582,3 @@ } | ||
| "model": "gpt-5.6-sol", | ||
| "prompt_cache_key": { "$env": "PLAIN_AGENT_SESSION_ID" }, | ||
| "reasoning": { "effort": "high", "summary": "auto" }, | ||
@@ -1592,2 +1595,3 @@ "store": false, | ||
| "input_tokens_details.cached_tokens": -4.5, | ||
| "input_tokens_details.cache_write_tokens": 1.25, | ||
| "output_tokens": 30 | ||
@@ -1610,2 +1614,3 @@ } | ||
| "model": "gpt-5.6-terra", | ||
| "prompt_cache_key": { "$env": "PLAIN_AGENT_SESSION_ID" }, | ||
| "reasoning": { "effort": "medium", "summary": "auto" }, | ||
@@ -1622,2 +1627,3 @@ "store": false, | ||
| "input_tokens_details.cached_tokens": -2.25, | ||
| "input_tokens_details.cache_write_tokens": 0.625, | ||
| "output_tokens": 15 | ||
@@ -1640,2 +1646,3 @@ } | ||
| "model": "gpt-5.6-terra", | ||
| "prompt_cache_key": { "$env": "PLAIN_AGENT_SESSION_ID" }, | ||
| "reasoning": { "effort": "high", "summary": "auto" }, | ||
@@ -1652,2 +1659,3 @@ "store": false, | ||
| "input_tokens_details.cached_tokens": -2.25, | ||
| "input_tokens_details.cache_write_tokens": 0.625, | ||
| "output_tokens": 15 | ||
@@ -1670,2 +1678,3 @@ } | ||
| "model": "gpt-5.6-luna", | ||
| "prompt_cache_key": { "$env": "PLAIN_AGENT_SESSION_ID" }, | ||
| "reasoning": { "effort": "medium", "summary": "auto" }, | ||
@@ -1682,2 +1691,3 @@ "store": false, | ||
| "input_tokens_details.cached_tokens": -0.9, | ||
| "input_tokens_details.cache_write_tokens": 0.25, | ||
| "output_tokens": 6 | ||
@@ -1700,2 +1710,3 @@ } | ||
| "model": "gpt-5.6-luna", | ||
| "prompt_cache_key": { "$env": "PLAIN_AGENT_SESSION_ID" }, | ||
| "reasoning": { "effort": "high", "summary": "auto" }, | ||
@@ -1712,2 +1723,3 @@ "store": false, | ||
| "input_tokens_details.cached_tokens": -0.9, | ||
| "input_tokens_details.cache_write_tokens": 0.25, | ||
| "output_tokens": 6 | ||
@@ -1838,2 +1850,3 @@ } | ||
| "model": "gpt-5.6-sol", | ||
| "prompt_cache_key": { "$env": "PLAIN_AGENT_SESSION_ID" }, | ||
| "reasoning": { "effort": "medium", "summary": "auto" }, | ||
@@ -1848,4 +1861,4 @@ "store": false, | ||
| "prices": { | ||
| "input_tokens": 5, | ||
| "input_tokens_details.cached_tokens": -4.5, | ||
| "input_tokens": 6.25, | ||
| "input_tokens_details.cached_tokens": -5.75, | ||
| "output_tokens": 30 | ||
@@ -1867,2 +1880,3 @@ } | ||
| "model": "gpt-5.6-sol", | ||
| "prompt_cache_key": { "$env": "PLAIN_AGENT_SESSION_ID" }, | ||
| "reasoning": { "effort": "high", "summary": "auto" }, | ||
@@ -1877,4 +1891,4 @@ "store": false, | ||
| "prices": { | ||
| "input_tokens": 5, | ||
| "input_tokens_details.cached_tokens": -4.5, | ||
| "input_tokens": 6.25, | ||
| "input_tokens_details.cached_tokens": -5.75, | ||
| "output_tokens": 30 | ||
@@ -1896,2 +1910,3 @@ } | ||
| "model": "gpt-5.6-terra", | ||
| "prompt_cache_key": { "$env": "PLAIN_AGENT_SESSION_ID" }, | ||
| "reasoning": { "effort": "medium", "summary": "auto" }, | ||
@@ -1906,4 +1921,4 @@ "store": false, | ||
| "prices": { | ||
| "input_tokens": 2.5, | ||
| "input_tokens_details.cached_tokens": -2.25, | ||
| "input_tokens": 3.125, | ||
| "input_tokens_details.cached_tokens": -2.875, | ||
| "output_tokens": 15 | ||
@@ -1925,2 +1940,3 @@ } | ||
| "model": "gpt-5.6-terra", | ||
| "prompt_cache_key": { "$env": "PLAIN_AGENT_SESSION_ID" }, | ||
| "reasoning": { "effort": "high", "summary": "auto" }, | ||
@@ -1935,4 +1951,4 @@ "store": false, | ||
| "prices": { | ||
| "input_tokens": 2.5, | ||
| "input_tokens_details.cached_tokens": -2.25, | ||
| "input_tokens": 3.125, | ||
| "input_tokens_details.cached_tokens": -2.875, | ||
| "output_tokens": 15 | ||
@@ -1954,2 +1970,3 @@ } | ||
| "model": "gpt-5.6-luna", | ||
| "prompt_cache_key": { "$env": "PLAIN_AGENT_SESSION_ID" }, | ||
| "reasoning": { "effort": "medium", "summary": "auto" }, | ||
@@ -1964,4 +1981,4 @@ "store": false, | ||
| "prices": { | ||
| "input_tokens": 1, | ||
| "input_tokens_details.cached_tokens": -0.9, | ||
| "input_tokens": 1.25, | ||
| "input_tokens_details.cached_tokens": -1.15, | ||
| "output_tokens": 6 | ||
@@ -1983,2 +2000,3 @@ } | ||
| "model": "gpt-5.6-luna", | ||
| "prompt_cache_key": { "$env": "PLAIN_AGENT_SESSION_ID" }, | ||
| "reasoning": { "effort": "high", "summary": "auto" }, | ||
@@ -1993,4 +2011,4 @@ "store": false, | ||
| "prices": { | ||
| "input_tokens": 1, | ||
| "input_tokens_details.cached_tokens": -0.9, | ||
| "input_tokens": 1.25, | ||
| "input_tokens_details.cached_tokens": -1.15, | ||
| "output_tokens": 6 | ||
@@ -1997,0 +2015,0 @@ } |
+1
-1
| { | ||
| "name": "@iinm/plain-agent", | ||
| "version": "1.15.1", | ||
| "version": "1.15.2", | ||
| "description": "A lightweight terminal-based coding agent focused on safety and low token cost", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
+4
-4
| # 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) | ||
@@ -292,3 +292,3 @@ | ||
| "apiKey": "<GEMINI_API_KEY>", | ||
| "model": "gemini-3.5-flash" | ||
| "model": "gemini-3.6-flash" | ||
@@ -298,3 +298,3 @@ // Or use Vertex AI (requires the gcloud CLI for authentication) | ||
| // "baseURL": "https://aiplatform.googleapis.com/v1beta1/projects/<project_id>/locations/<location>", | ||
| // "model": "gemini-3.5-flash" | ||
| // "model": "gemini-3.6-flash" | ||
@@ -310,3 +310,3 @@ // Or use a custom command | ||
| "apiKey": "<GEMINI_API_KEY>", | ||
| "model": "gemini-3.5-flash" | ||
| "model": "gemini-3.6-flash" | ||
@@ -313,0 +313,0 @@ // Or use Vertex AI (requires the gcloud CLI for authentication) |
+9
-1
@@ -51,2 +51,6 @@ /** | ||
| const cliArgs = parseCliArgs(argv); | ||
| // Ensure PLAIN_AGENT_SESSION_ID is set for $env resolution in config files. | ||
| process.env.PLAIN_AGENT_SESSION_ID = generateSessionId(); | ||
| if (cliArgs.subcommand.type === "help") { | ||
@@ -183,3 +187,7 @@ printHelp(); | ||
| : new Date(); | ||
| const sessionId = resumedState ? resumedState.sessionId : generateSessionId(); | ||
| const sessionId = resumedState | ||
| ? resumedState.sessionId | ||
| : process.env.PLAIN_AGENT_SESSION_ID; | ||
| process.env.PLAIN_AGENT_SESSION_ID = sessionId; | ||
| const isBatchMode = cliArgs.subcommand.type === "batch"; | ||
@@ -186,0 +194,0 @@ /** @type {string[]} */ |
@@ -10,2 +10,4 @@ /* Model */ | ||
| include?: ["reasoning.encrypted_content"]; | ||
| // Prompt-cache routing key. See https://developers.openai.com/api/docs/guides/prompt-caching | ||
| prompt_cache_key?: string; | ||
| }; | ||
@@ -119,2 +121,5 @@ | ||
| cached_tokens: number; | ||
| // Tokens written to cache this request. Reported by GPT-5.6+ models, | ||
| // where cache writes are billed at 1.25x the uncached input rate. | ||
| cache_write_tokens?: number; | ||
| }; | ||
@@ -121,0 +126,0 @@ output_tokens: number; |
@@ -267,3 +267,3 @@ /** | ||
| async function webFetchViaGemini(config, input, retryCount) { | ||
| const model = config.model ?? "gemini-3.5-flash"; | ||
| const model = config.model ?? "gemini-3.6-flash"; | ||
| const url = | ||
@@ -270,0 +270,0 @@ config.provider === "gemini-vertex-ai" |
@@ -333,3 +333,3 @@ /** | ||
| async function webSearchViaGemini(config, input, retryCount) { | ||
| const model = config.model ?? "gemini-3.5-flash"; | ||
| const model = config.model ?? "gemini-3.6-flash"; | ||
| const url = | ||
@@ -336,0 +336,0 @@ config.provider === "gemini-vertex-ai" |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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.
605649
0.28%17158
0.16%46
6.98%