@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 CHANGED
@@ -1,7 +1,7 @@
1
1
  # Plain Agent
2
2
 
3
3
  [![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)
4
- [![Socket Badge](https://badge.socket.dev/npm/package/@iinm/plain-agent/1.14.5)](https://socket.dev/npm/package/@iinm/plain-agent)
4
+ [![Socket Badge](https://badge.socket.dev/npm/package/@iinm/plain-agent/1.14.6)](https://socket.dev/npm/package/@iinm/plain-agent)
5
5
  [![install size](https://packagephobia.com/badge?p=@iinm/plain-agent)](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.5",
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.4.12",
47
+ "@biomejs/biome": "^2.5.2",
48
48
  "@types/node": "^22.19.17",
49
49
  "c8": "^11.0.0",
50
- "typescript": "^6.0.2"
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: messages
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"),
@@ -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(value[/** @type {keyof value} */ (k)], p),
34
+ matchValue(/** @type {Record<string, unknown>} */ (value)[k], p),
35
35
  )
36
36
  );
37
37
  }