@poncho-ai/sdk 1.1.1 → 1.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/CHANGELOG.md +15 -0
- package/dist/index.d.ts +31 -0
- package/package.json +1 -1
- package/src/index.ts +15 -1
- package/.turbo/turbo-lint.log +0 -6
- package/.turbo/turbo-test.log +0 -14
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @poncho-ai/sdk@1.
|
|
2
|
+
> @poncho-ai/sdk@1.3.0 build /home/runner/work/poncho-ai/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[32m10.17 KB[39m
|
|
11
|
-
[32mESM[39m ⚡️ Build success in
|
|
11
|
+
[32mESM[39m ⚡️ Build success in 23ms
|
|
12
12
|
[34mDTS[39m Build start
|
|
13
|
-
[32mDTS[39m ⚡️ Build success in
|
|
14
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m19.
|
|
13
|
+
[32mDTS[39m ⚡️ Build success in 1272ms
|
|
14
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m19.74 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @poncho-ai/sdk
|
|
2
2
|
|
|
3
|
+
## 1.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`cd6ccd7`](https://github.com/cesr/poncho-ai/commit/cd6ccd7846e16fbaf17167617666796320ec29ce) Thanks [@cesr](https://github.com/cesr)! - Add MCP custom headers support, tool:generating streaming feedback, and cross-owner subagent recovery
|
|
8
|
+
- **MCP custom headers**: `poncho mcp add --header "Name: value"` and `headers` config field let servers like Arcade receive extra HTTP headers alongside bearer auth.
|
|
9
|
+
- **tool:generating event**: the harness now emits `tool:generating` events when the model begins writing tool-call arguments, so the web UI shows real-time "preparing <tool>" feedback instead of appearing stuck during large tool calls.
|
|
10
|
+
- **Subagent recovery**: `list`/`listSummaries` accept optional `ownerId` so stale-subagent recovery on server restart scans across all owners.
|
|
11
|
+
|
|
12
|
+
## 1.2.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [#16](https://github.com/cesr/poncho-ai/pull/16) [`972577d`](https://github.com/cesr/poncho-ai/commit/972577d255ab43c2c56f3c3464042a8a617b7f9e) Thanks [@cesr](https://github.com/cesr)! - Add subagent support: agents can spawn recursive copies of themselves as independent sub-conversations with blocking tool calls, read-only memory, approval tunneling to the parent thread, and nested sidebar display in the web UI. Also adds ConversationStore.listSummaries() for fast sidebar loading without reading full conversation files from disk.
|
|
17
|
+
|
|
3
18
|
## 1.1.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -490,6 +490,7 @@ interface ToolContext {
|
|
|
490
490
|
workingDir: string;
|
|
491
491
|
parameters: Record<string, unknown>;
|
|
492
492
|
abortSignal?: AbortSignal;
|
|
493
|
+
conversationId?: string;
|
|
493
494
|
}
|
|
494
495
|
type ToolHandler<TInput extends Record<string, unknown>, TOutput> = (input: TInput, context: ToolContext) => Promise<TOutput> | TOutput;
|
|
495
496
|
interface ToolDefinition<TInput extends Record<string, unknown> = Record<string, unknown>, TOutput = unknown> {
|
|
@@ -570,6 +571,10 @@ type AgentEvent = {
|
|
|
570
571
|
} | {
|
|
571
572
|
type: "model:response";
|
|
572
573
|
usage: TokenUsage;
|
|
574
|
+
} | {
|
|
575
|
+
type: "tool:generating";
|
|
576
|
+
tool: string;
|
|
577
|
+
toolCallId: string;
|
|
573
578
|
} | {
|
|
574
579
|
type: "tool:started";
|
|
575
580
|
tool: string;
|
|
@@ -579,6 +584,7 @@ type AgentEvent = {
|
|
|
579
584
|
tool: string;
|
|
580
585
|
output: unknown;
|
|
581
586
|
duration: number;
|
|
587
|
+
outputTokenEstimate?: number;
|
|
582
588
|
} | {
|
|
583
589
|
type: "tool:error";
|
|
584
590
|
tool: string;
|
|
@@ -618,6 +624,31 @@ type AgentEvent = {
|
|
|
618
624
|
active: boolean;
|
|
619
625
|
url?: string;
|
|
620
626
|
interactionAllowed: boolean;
|
|
627
|
+
} | {
|
|
628
|
+
type: "subagent:spawned";
|
|
629
|
+
subagentId: string;
|
|
630
|
+
conversationId: string;
|
|
631
|
+
task: string;
|
|
632
|
+
} | {
|
|
633
|
+
type: "subagent:completed";
|
|
634
|
+
subagentId: string;
|
|
635
|
+
conversationId: string;
|
|
636
|
+
} | {
|
|
637
|
+
type: "subagent:error";
|
|
638
|
+
subagentId: string;
|
|
639
|
+
conversationId: string;
|
|
640
|
+
error: string;
|
|
641
|
+
} | {
|
|
642
|
+
type: "subagent:stopped";
|
|
643
|
+
subagentId: string;
|
|
644
|
+
conversationId: string;
|
|
645
|
+
} | {
|
|
646
|
+
type: "subagent:approval_needed";
|
|
647
|
+
subagentId: string;
|
|
648
|
+
conversationId: string;
|
|
649
|
+
tool: string;
|
|
650
|
+
approvalId: string;
|
|
651
|
+
input?: Record<string, unknown>;
|
|
621
652
|
};
|
|
622
653
|
|
|
623
654
|
export { type AgentEvent, type AgentFailure, type ContentPart, FEATURE_DOMAIN_ORDER, type FeatureDomain, type FileContentPart, type FileInput, type JsonSchema, type Message, ONBOARDING_FIELDS, type OnboardingField, type OnboardingFieldCondition, type OnboardingFieldKind, type OnboardingFieldTarget, type OnboardingOption, type OnboardingScope, type Role, type RunInput, type RunResult, type TextContentPart, type TokenUsage, type ToolContext, type ToolDefinition, type ToolHandler, defineTool, fieldsForScope, getTextContent };
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -55,6 +55,7 @@ export interface ToolContext {
|
|
|
55
55
|
workingDir: string;
|
|
56
56
|
parameters: Record<string, unknown>;
|
|
57
57
|
abortSignal?: AbortSignal;
|
|
58
|
+
conversationId?: string;
|
|
58
59
|
}
|
|
59
60
|
|
|
60
61
|
export type ToolHandler<TInput extends Record<string, unknown>, TOutput> = (
|
|
@@ -134,8 +135,9 @@ export type AgentEvent =
|
|
|
134
135
|
| { type: "model:request"; tokens: number }
|
|
135
136
|
| { type: "model:chunk"; content: string }
|
|
136
137
|
| { type: "model:response"; usage: TokenUsage }
|
|
138
|
+
| { type: "tool:generating"; tool: string; toolCallId: string }
|
|
137
139
|
| { type: "tool:started"; tool: string; input: unknown }
|
|
138
|
-
| { type: "tool:completed"; tool: string; output: unknown; duration: number }
|
|
140
|
+
| { type: "tool:completed"; tool: string; output: unknown; duration: number; outputTokenEstimate?: number }
|
|
139
141
|
| { type: "tool:error"; tool: string; error: string; recoverable: boolean }
|
|
140
142
|
| {
|
|
141
143
|
type: "tool:approval:required";
|
|
@@ -160,4 +162,16 @@ export type AgentEvent =
|
|
|
160
162
|
active: boolean;
|
|
161
163
|
url?: string;
|
|
162
164
|
interactionAllowed: boolean;
|
|
165
|
+
}
|
|
166
|
+
| { type: "subagent:spawned"; subagentId: string; conversationId: string; task: string }
|
|
167
|
+
| { type: "subagent:completed"; subagentId: string; conversationId: string }
|
|
168
|
+
| { type: "subagent:error"; subagentId: string; conversationId: string; error: string }
|
|
169
|
+
| { type: "subagent:stopped"; subagentId: string; conversationId: string }
|
|
170
|
+
| {
|
|
171
|
+
type: "subagent:approval_needed";
|
|
172
|
+
subagentId: string;
|
|
173
|
+
conversationId: string;
|
|
174
|
+
tool: string;
|
|
175
|
+
approvalId: string;
|
|
176
|
+
input?: Record<string, unknown>;
|
|
163
177
|
};
|
package/.turbo/turbo-lint.log
DELETED
package/.turbo/turbo-test.log
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> @poncho-ai/sdk@1.0.3 test /Users/cesar/Dev/latitude/poncho-ai/packages/sdk
|
|
3
|
-
> vitest
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
[7m[1m[36m RUN [39m[22m[27m [36mv1.6.1[39m [90m/Users/cesar/Dev/latitude/poncho-ai/packages/sdk[39m
|
|
7
|
-
|
|
8
|
-
[32m✓[39m test/sdk.test.ts [2m ([22m[2m1 test[22m[2m)[22m[90m 2[2mms[22m[39m
|
|
9
|
-
|
|
10
|
-
[2m Test Files [22m [1m[32m1 passed[39m[22m[90m (1)[39m
|
|
11
|
-
[2m Tests [22m [1m[32m1 passed[39m[22m[90m (1)[39m
|
|
12
|
-
[2m Start at [22m 12:36:34
|
|
13
|
-
[2m Duration [22m 938ms[2m (transform 227ms, setup 1ms, collect 248ms, tests 2ms, environment 0ms, prepare 139ms)[22m
|
|
14
|
-
|