@iinm/plain-agent 1.14.5 → 1.14.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +3 -3
- package/src/providers/anthropic.mjs +1 -1
- package/src/utils/matchValue.mjs +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Plain Agent
|
|
2
2
|
|
|
3
3
|
[](https://github.com/iinm/plain-agent/actions/workflows/github-code-scanning/codeql)
|
|
4
|
-
[](https://socket.dev/npm/package/@iinm/plain-agent)
|
|
5
5
|
[](https://packagephobia.com/result?p=@iinm/plain-agent)
|
|
6
6
|
|
|
7
7
|
A lightweight terminal-based coding agent focused on safety and low token cost
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iinm/plain-agent",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.6",
|
|
4
4
|
"description": "A lightweight terminal-based coding agent focused on safety and low token cost",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@biomejs/biome": "^2.
|
|
47
|
+
"@biomejs/biome": "^2.5.2",
|
|
48
48
|
"@types/node": "^22.19.17",
|
|
49
49
|
"c8": "^11.0.0",
|
|
50
|
-
"typescript": "^
|
|
50
|
+
"typescript": "^7.0.2"
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -89,7 +89,7 @@ export async function callAnthropicModel(
|
|
|
89
89
|
/** @type {AnthropicRequestInput} */
|
|
90
90
|
const request = {
|
|
91
91
|
...platformRequest,
|
|
92
|
-
system:
|
|
92
|
+
system: cacheEnabledMessages
|
|
93
93
|
.filter((m) => m.role === "system")
|
|
94
94
|
.flatMap((m) => m.content),
|
|
95
95
|
messages: cacheEnabledMessages.filter((m) => m.role !== "system"),
|
package/src/utils/matchValue.mjs
CHANGED
|
@@ -31,7 +31,7 @@ export function matchValue(value, pattern) {
|
|
|
31
31
|
typeof value === "object" &&
|
|
32
32
|
value !== null &&
|
|
33
33
|
Object.entries(pattern).every(([k, p]) =>
|
|
34
|
-
matchValue(
|
|
34
|
+
matchValue(/** @type {Record<string, unknown>} */ (value)[k], p),
|
|
35
35
|
)
|
|
36
36
|
);
|
|
37
37
|
}
|