@poncho-ai/sdk 0.2.0 → 0.2.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @poncho-ai/sdk@0.2.0 build /Users/cesar/Dev/latitude/poncho-ai/packages/sdk
2
+ > @poncho-ai/sdk@0.2.1 build /Users/cesar/Dev/latitude/poncho-ai/packages/sdk
3
3
  > tsup src/index.ts --format esm --dts
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -8,7 +8,7 @@
8
8
  CLI Target: es2022
9
9
  ESM Build start
10
10
  ESM dist/index.js 5.65 KB
11
- ESM ⚡️ Build success in 40ms
11
+ ESM ⚡️ Build success in 56ms
12
12
  DTS Build start
13
- DTS ⚡️ Build success in 937ms
14
- DTS dist/index.d.ts 11.57 KB
13
+ DTS ⚡️ Build success in 1022ms
14
+ DTS dist/index.d.ts 11.65 KB
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.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Core types and utilities for building Poncho skills",
5
5
  "repository": {
6
6
  "type": "git",
7
- "url": "https://github.com/latitude-dev/poncho-ai.git",
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