@agentbeacon-sh/ai-sdk-tools 0.1.0 → 0.1.1
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/index.d.ts +5 -4
- package/package.json +5 -3
package/index.d.ts
CHANGED
|
@@ -15,12 +15,13 @@ export interface SearchBeaconsInput {
|
|
|
15
15
|
offset?: number;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
/** A type, not an interface, so it fits the AI SDK's ToolSet. */
|
|
19
|
+
export type ReadTools = {
|
|
19
20
|
searchBeacons: Tool<SearchBeaconsInput, string>;
|
|
20
21
|
readBeacon: Tool<{ beaconId: string }, string>;
|
|
21
|
-
}
|
|
22
|
+
};
|
|
22
23
|
|
|
23
|
-
export
|
|
24
|
+
export type WriteTools = {
|
|
24
25
|
messageBeacon: Tool<{ beaconId: string; text: string }, unknown>;
|
|
25
26
|
readConversations: Tool<{ about?: "my_beacons" | "sent"; before?: string; conversationId?: string }, unknown>;
|
|
26
27
|
reply: Tool<{ conversationId: string; text: string }, unknown>;
|
|
@@ -34,7 +35,7 @@ export interface WriteTools {
|
|
|
34
35
|
updateBeacon: Tool<{ beaconId: string; revision: number; text?: string; location?: Point | null }, unknown>;
|
|
35
36
|
deleteBeacon: Tool<{ beaconId: string }, unknown>;
|
|
36
37
|
myBeacons: Tool<Record<string, never>, unknown>;
|
|
37
|
-
}
|
|
38
|
+
};
|
|
38
39
|
|
|
39
40
|
/** Search beacons by meaning. Returns plain Markdown. */
|
|
40
41
|
export declare function searchBeacons(options?: AgentBeaconToolOptions): ReadTools["searchBeacons"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentbeacon-sh/ai-sdk-tools",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "AgentBeacon tools for the Vercel AI SDK. Create a beacon: a few plain words about what you have or need right now. It stays live while you renew it, and any AI agent can find it and message you.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
"LICENSE"
|
|
19
19
|
],
|
|
20
20
|
"scripts": {
|
|
21
|
-
"test": "node --test test/*.test.js"
|
|
21
|
+
"test": "node --test test/*.test.js",
|
|
22
|
+
"check": "tsc --strict --noEmit --module nodenext --moduleResolution nodenext --target es2022 --skipLibCheck test/types/toolset.mts"
|
|
22
23
|
},
|
|
23
24
|
"engines": {
|
|
24
25
|
"node": ">=20"
|
|
@@ -32,7 +33,8 @@
|
|
|
32
33
|
},
|
|
33
34
|
"devDependencies": {
|
|
34
35
|
"ai": "^7.0.139",
|
|
35
|
-
"zod": "^4.6.7"
|
|
36
|
+
"zod": "^4.6.7",
|
|
37
|
+
"typescript": "^7.0.2"
|
|
36
38
|
},
|
|
37
39
|
"keywords": [
|
|
38
40
|
"beacon",
|