picocode-core 0.9.165 → 0.9.167
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/package.json +2 -2
- package/src/agent.js +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "picocode-core",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.167",
|
|
4
4
|
"description": "The agent runtime behind pico: sessions, tools, subagents, MCP, memory, and model access",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@modelcontextprotocol/sdk": "^1.12.0",
|
|
28
|
-
"@prsm/ai": "^1.7.
|
|
28
|
+
"@prsm/ai": "^1.7.2",
|
|
29
29
|
"diff": "^7.0.0",
|
|
30
30
|
"fast-glob": "^3.3.0",
|
|
31
31
|
"proper-lockfile": "^4.1.2",
|
package/src/agent.js
CHANGED
|
@@ -43,6 +43,9 @@ async function hydratePart(part) {
|
|
|
43
43
|
if (!mediaType) return { type: 'text', text: `[image unavailable: ${part.source.path}]` }
|
|
44
44
|
try {
|
|
45
45
|
const data = await readFile(part.source.path)
|
|
46
|
+
// an empty file is not an image; sent as one it fails every request
|
|
47
|
+
// that carries this history from then on
|
|
48
|
+
if (!data.length) return { type: 'text', text: `[image unavailable: ${part.source.path} is empty]` }
|
|
46
49
|
return {
|
|
47
50
|
type: 'image',
|
|
48
51
|
source: { kind: 'base64', mediaType, data: data.toString('base64') },
|