@pnds/pond 1.3.0 → 1.4.0
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 +3 -3
- package/src/wiki-tools.ts +2 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnds/pond",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "OpenClaw channel plugin for Pond IM",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@sinclair/typebox": "^0.34.48",
|
|
19
|
-
"@pnds/
|
|
20
|
-
"@pnds/
|
|
19
|
+
"@pnds/cli": "1.4.0",
|
|
20
|
+
"@pnds/sdk": "1.4.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/node": "^22.0.0",
|
package/src/wiki-tools.ts
CHANGED
|
@@ -142,15 +142,8 @@ function formatWikiBlobResult(result: Awaited<ReturnType<typeof getWikiBlob>>) {
|
|
|
142
142
|
slug: result.wiki.slug,
|
|
143
143
|
name: result.wiki.name,
|
|
144
144
|
},
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
ref: result.blob.ref,
|
|
148
|
-
size: result.blob.size,
|
|
149
|
-
mime_type: result.blob.mime_type,
|
|
150
|
-
is_binary: result.blob.is_binary,
|
|
151
|
-
encoding: result.blob.encoding,
|
|
152
|
-
},
|
|
153
|
-
text: result.text,
|
|
145
|
+
content: result.content,
|
|
146
|
+
size: result.size,
|
|
154
147
|
};
|
|
155
148
|
}
|
|
156
149
|
|
|
@@ -223,7 +216,6 @@ function createWikiTools(toolCtx: ToolSessionContext): AnyAgentTool[] {
|
|
|
223
216
|
return jsonResult(
|
|
224
217
|
await getWikiTree(pondContext(), readStringParam(params, "wiki", { required: true }), {
|
|
225
218
|
path: readStringParam(params, "path"),
|
|
226
|
-
ref: readStringParam(params, "ref"),
|
|
227
219
|
}),
|
|
228
220
|
);
|
|
229
221
|
},
|
|
@@ -236,7 +228,6 @@ function createWikiTools(toolCtx: ToolSessionContext): AnyAgentTool[] {
|
|
|
236
228
|
execute: async (_toolCallId, params) => {
|
|
237
229
|
const result = await getWikiBlob(pondContext(), readStringParam(params, "wiki", { required: true }), {
|
|
238
230
|
path: readStringParam(params, "path", { required: true }),
|
|
239
|
-
ref: readStringParam(params, "ref"),
|
|
240
231
|
});
|
|
241
232
|
return jsonResult(formatWikiBlobResult(result));
|
|
242
233
|
},
|