@poncho-ai/sdk 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/.turbo/turbo-build.log +5 -5
- package/CHANGELOG.md +9 -0
- package/dist/index.d.ts +21 -4
- package/dist/index.js +13 -0
- package/package.json +1 -1
- package/src/config-registry.ts +13 -0
- package/src/index.ts +6 -4
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @poncho-ai/sdk@1.
|
|
2
|
+
> @poncho-ai/sdk@1.4.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
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
[34mCLI[39m tsup v8.5.1
|
|
8
8
|
[34mCLI[39m Target: es2022
|
|
9
9
|
[34mESM[39m Build start
|
|
10
|
-
[32mESM[39m [1mdist/index.js [22m[32m10.
|
|
11
|
-
[32mESM[39m ⚡️ Build success in
|
|
10
|
+
[32mESM[39m [1mdist/index.js [22m[32m10.57 KB[39m
|
|
11
|
+
[32mESM[39m ⚡️ Build success in 17ms
|
|
12
12
|
[34mDTS[39m Build start
|
|
13
|
-
[32mDTS[39m ⚡️ Build success in
|
|
14
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
|
13
|
+
[32mDTS[39m ⚡️ Build success in 1324ms
|
|
14
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m20.32 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @poncho-ai/sdk
|
|
2
2
|
|
|
3
|
+
## 1.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`075b9ac`](https://github.com/cesr/poncho-ai/commit/075b9ac3556847af913bf2b58f030575c3b99852) Thanks [@cesr](https://github.com/cesr)! - Batch tool approvals, fix serverless session persistence and adapter init
|
|
8
|
+
- Batch tool approvals: all approval-requiring tool calls in a single step are now collected and presented together instead of one at a time.
|
|
9
|
+
- Fix messaging adapter route registration: routes are only registered after successful initialization, preventing "Adapter not initialised" errors on Vercel.
|
|
10
|
+
- Add stateless signed-cookie sessions so web UI auth survives serverless cold starts.
|
|
11
|
+
|
|
3
12
|
## 1.3.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -403,6 +403,21 @@ declare const ONBOARDING_FIELDS: readonly [{
|
|
|
403
403
|
readonly fieldId: "messaging.platform";
|
|
404
404
|
readonly equals: "resend";
|
|
405
405
|
};
|
|
406
|
+
}, {
|
|
407
|
+
readonly id: "env.RESEND_REPLY_TO";
|
|
408
|
+
readonly domain: "messaging";
|
|
409
|
+
readonly target: "env";
|
|
410
|
+
readonly path: "RESEND_REPLY_TO";
|
|
411
|
+
readonly kind: "string";
|
|
412
|
+
readonly scopes: ["full"];
|
|
413
|
+
readonly label: "Reply-To Address";
|
|
414
|
+
readonly prompt: "Reply-To address for outgoing emails (optional, defaults to From address)";
|
|
415
|
+
readonly defaultValue: "";
|
|
416
|
+
readonly placeholder: "support@yourdomain.com";
|
|
417
|
+
readonly dependsOn: {
|
|
418
|
+
readonly fieldId: "messaging.platform";
|
|
419
|
+
readonly equals: "resend";
|
|
420
|
+
};
|
|
406
421
|
}, {
|
|
407
422
|
readonly id: "messaging.resend.mode";
|
|
408
423
|
readonly domain: "messaging";
|
|
@@ -604,10 +619,12 @@ type AgentEvent = {
|
|
|
604
619
|
reason?: string;
|
|
605
620
|
} | {
|
|
606
621
|
type: "tool:approval:checkpoint";
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
622
|
+
approvals: Array<{
|
|
623
|
+
approvalId: string;
|
|
624
|
+
tool: string;
|
|
625
|
+
toolCallId: string;
|
|
626
|
+
input: Record<string, unknown>;
|
|
627
|
+
}>;
|
|
611
628
|
checkpointMessages: Message[];
|
|
612
629
|
pendingToolCalls: Array<{
|
|
613
630
|
id: string;
|
package/dist/index.js
CHANGED
|
@@ -321,6 +321,19 @@ var ONBOARDING_FIELDS = [
|
|
|
321
321
|
placeholder: "Agent <agent@yourdomain.com>",
|
|
322
322
|
dependsOn: { fieldId: "messaging.platform", equals: "resend" }
|
|
323
323
|
},
|
|
324
|
+
{
|
|
325
|
+
id: "env.RESEND_REPLY_TO",
|
|
326
|
+
domain: "messaging",
|
|
327
|
+
target: "env",
|
|
328
|
+
path: "RESEND_REPLY_TO",
|
|
329
|
+
kind: "string",
|
|
330
|
+
scopes: ["full"],
|
|
331
|
+
label: "Reply-To Address",
|
|
332
|
+
prompt: "Reply-To address for outgoing emails (optional, defaults to From address)",
|
|
333
|
+
defaultValue: "",
|
|
334
|
+
placeholder: "support@yourdomain.com",
|
|
335
|
+
dependsOn: { fieldId: "messaging.platform", equals: "resend" }
|
|
336
|
+
},
|
|
324
337
|
{
|
|
325
338
|
id: "messaging.resend.mode",
|
|
326
339
|
domain: "messaging",
|
package/package.json
CHANGED
package/src/config-registry.ts
CHANGED
|
@@ -366,6 +366,19 @@ export const ONBOARDING_FIELDS = [
|
|
|
366
366
|
placeholder: "Agent <agent@yourdomain.com>",
|
|
367
367
|
dependsOn: { fieldId: "messaging.platform", equals: "resend" },
|
|
368
368
|
},
|
|
369
|
+
{
|
|
370
|
+
id: "env.RESEND_REPLY_TO",
|
|
371
|
+
domain: "messaging",
|
|
372
|
+
target: "env",
|
|
373
|
+
path: "RESEND_REPLY_TO",
|
|
374
|
+
kind: "string",
|
|
375
|
+
scopes: ["full"],
|
|
376
|
+
label: "Reply-To Address",
|
|
377
|
+
prompt: "Reply-To address for outgoing emails (optional, defaults to From address)",
|
|
378
|
+
defaultValue: "",
|
|
379
|
+
placeholder: "support@yourdomain.com",
|
|
380
|
+
dependsOn: { fieldId: "messaging.platform", equals: "resend" },
|
|
381
|
+
},
|
|
369
382
|
{
|
|
370
383
|
id: "messaging.resend.mode",
|
|
371
384
|
domain: "messaging",
|
package/src/index.ts
CHANGED
|
@@ -149,10 +149,12 @@ export type AgentEvent =
|
|
|
149
149
|
| { type: "tool:approval:denied"; approvalId: string; reason?: string }
|
|
150
150
|
| {
|
|
151
151
|
type: "tool:approval:checkpoint";
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
152
|
+
approvals: Array<{
|
|
153
|
+
approvalId: string;
|
|
154
|
+
tool: string;
|
|
155
|
+
toolCallId: string;
|
|
156
|
+
input: Record<string, unknown>;
|
|
157
|
+
}>;
|
|
156
158
|
checkpointMessages: Message[];
|
|
157
159
|
pendingToolCalls: Array<{ id: string; name: string; input: Record<string, unknown> }>;
|
|
158
160
|
}
|