@poncho-ai/sdk 0.2.0 → 0.3.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/.turbo/turbo-build.log +4 -4
- package/dist/index.d.ts +4 -1
- package/package.json +2 -2
- package/src/index.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @poncho-ai/sdk@0.
|
|
2
|
+
> @poncho-ai/sdk@0.3.0 build /Users/cesar/Dev/latitude/poncho-ai/packages/sdk
|
|
3
3
|
> tsup src/index.ts --format esm --dts
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
[34mCLI[39m Target: es2022
|
|
9
9
|
[34mESM[39m Build start
|
|
10
10
|
[32mESM[39m [1mdist/index.js [22m[32m5.65 KB[39m
|
|
11
|
-
[32mESM[39m ⚡️ Build success in
|
|
11
|
+
[32mESM[39m ⚡️ Build success in 55ms
|
|
12
12
|
[34mDTS[39m Build start
|
|
13
|
-
[32mDTS[39m ⚡️ Build success in
|
|
14
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m11.
|
|
13
|
+
[32mDTS[39m ⚡️ Build success in 1013ms
|
|
14
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m11.65 KB[39m
|
package/dist/index.d.ts
CHANGED
|
@@ -285,6 +285,10 @@ interface Message {
|
|
|
285
285
|
tokenCount?: number;
|
|
286
286
|
step?: number;
|
|
287
287
|
toolActivity?: string[];
|
|
288
|
+
sections?: Array<{
|
|
289
|
+
type: "text" | "tools";
|
|
290
|
+
content: string | string[];
|
|
291
|
+
}>;
|
|
288
292
|
};
|
|
289
293
|
}
|
|
290
294
|
interface ToolContext {
|
|
@@ -303,7 +307,6 @@ interface ToolDefinition<TInput extends Record<string, unknown> = Record<string,
|
|
|
303
307
|
timeout?: number;
|
|
304
308
|
retries?: number;
|
|
305
309
|
isolated?: boolean;
|
|
306
|
-
requiresApproval?: boolean;
|
|
307
310
|
handler: ToolHandler<TInput, TOutput>;
|
|
308
311
|
}
|
|
309
312
|
declare const defineTool: <TInput extends Record<string, unknown>, TOutput = unknown>(definition: ToolDefinition<TInput, TOutput>) => ToolDefinition<TInput, TOutput>;
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poncho-ai/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Core types and utilities for building Poncho skills",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "https://github.com/
|
|
7
|
+
"url": "https://github.com/cesr/poncho-ai.git",
|
|
8
8
|
"directory": "packages/sdk"
|
|
9
9
|
},
|
|
10
10
|
"publishConfig": {
|
package/src/index.ts
CHANGED
|
@@ -20,6 +20,7 @@ export interface Message {
|
|
|
20
20
|
tokenCount?: number;
|
|
21
21
|
step?: number;
|
|
22
22
|
toolActivity?: string[];
|
|
23
|
+
sections?: Array<{ type: "text" | "tools"; content: string | string[] }>;
|
|
23
24
|
};
|
|
24
25
|
}
|
|
25
26
|
|
|
@@ -47,7 +48,6 @@ export interface ToolDefinition<
|
|
|
47
48
|
timeout?: number;
|
|
48
49
|
retries?: number;
|
|
49
50
|
isolated?: boolean;
|
|
50
|
-
requiresApproval?: boolean;
|
|
51
51
|
handler: ToolHandler<TInput, TOutput>;
|
|
52
52
|
}
|
|
53
53
|
|