@poncho-ai/sdk 1.0.2 → 1.1.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 +12 -0
- package/dist/index.d.ts +39 -11
- package/dist/index.js +27 -11
- package/package.json +1 -1
- package/src/config-registry.ts +27 -11
- package/src/index.ts +7 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @poncho-ai/sdk@1.0
|
|
2
|
+
> @poncho-ai/sdk@1.1.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[
|
|
11
|
-
[32mESM[39m ⚡️ Build success in
|
|
10
|
+
[32mESM[39m [1mdist/index.js [22m[32m10.17 KB[39m
|
|
11
|
+
[32mESM[39m ⚡️ Build success in 18ms
|
|
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 1221ms
|
|
14
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m19.05 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @poncho-ai/sdk
|
|
2
2
|
|
|
3
|
+
## 1.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`139ed89`](https://github.com/cesr/poncho-ai/commit/139ed89a5df2372cfb0a124c967f51f4d8158c3b) Thanks [@cesr](https://github.com/cesr)! - Add browser automation for Poncho agents with real-time viewport streaming, per-conversation tab management, interactive browser control in the web UI, and shared agent-level profiles for authentication persistence.
|
|
8
|
+
|
|
9
|
+
## 1.0.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`1f47bb4`](https://github.com/cesr/poncho-ai/commit/1f47bb49e5d48dc17644172012b057190b316469) Thanks [@cesr](https://github.com/cesr)! - Add conversation rename via double-click on the title in the web UI, standardize all credential config fields to the `*Env` naming pattern, and sync the init README template with the repo README.
|
|
14
|
+
|
|
3
15
|
## 1.0.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -136,29 +136,47 @@ declare const ONBOARDING_FIELDS: readonly [{
|
|
|
136
136
|
readonly envVars: ["PONCHO_DYNAMODB_TABLE"];
|
|
137
137
|
}];
|
|
138
138
|
}, {
|
|
139
|
-
readonly id: "
|
|
139
|
+
readonly id: "env.REDIS_URL";
|
|
140
140
|
readonly domain: "storage";
|
|
141
|
-
readonly target: "
|
|
142
|
-
readonly path: "
|
|
141
|
+
readonly target: "env";
|
|
142
|
+
readonly path: "REDIS_URL";
|
|
143
143
|
readonly kind: "string";
|
|
144
144
|
readonly scopes: ["full"];
|
|
145
|
-
readonly label: "
|
|
146
|
-
readonly prompt: "
|
|
145
|
+
readonly label: "Redis URL";
|
|
146
|
+
readonly prompt: "Redis connection URL";
|
|
147
147
|
readonly defaultValue: "";
|
|
148
|
+
readonly placeholder: "redis://localhost:6379";
|
|
149
|
+
readonly secret: true;
|
|
148
150
|
readonly dependsOn: {
|
|
149
151
|
readonly fieldId: "storage.provider";
|
|
150
|
-
readonly
|
|
152
|
+
readonly equals: "redis";
|
|
151
153
|
};
|
|
152
154
|
}, {
|
|
153
|
-
readonly id: "
|
|
155
|
+
readonly id: "env.UPSTASH_REDIS_REST_URL";
|
|
154
156
|
readonly domain: "storage";
|
|
155
|
-
readonly target: "
|
|
156
|
-
readonly path: "
|
|
157
|
+
readonly target: "env";
|
|
158
|
+
readonly path: "UPSTASH_REDIS_REST_URL";
|
|
157
159
|
readonly kind: "string";
|
|
158
160
|
readonly scopes: ["full"];
|
|
159
|
-
readonly label: "
|
|
160
|
-
readonly prompt: "
|
|
161
|
+
readonly label: "Upstash REST URL";
|
|
162
|
+
readonly prompt: "Upstash Redis REST URL";
|
|
161
163
|
readonly defaultValue: "";
|
|
164
|
+
readonly placeholder: "https://...";
|
|
165
|
+
readonly dependsOn: {
|
|
166
|
+
readonly fieldId: "storage.provider";
|
|
167
|
+
readonly equals: "upstash";
|
|
168
|
+
};
|
|
169
|
+
}, {
|
|
170
|
+
readonly id: "env.UPSTASH_REDIS_REST_TOKEN";
|
|
171
|
+
readonly domain: "storage";
|
|
172
|
+
readonly target: "env";
|
|
173
|
+
readonly path: "UPSTASH_REDIS_REST_TOKEN";
|
|
174
|
+
readonly kind: "string";
|
|
175
|
+
readonly scopes: ["full"];
|
|
176
|
+
readonly label: "Upstash REST token";
|
|
177
|
+
readonly prompt: "Upstash Redis REST token";
|
|
178
|
+
readonly defaultValue: "";
|
|
179
|
+
readonly secret: true;
|
|
162
180
|
readonly dependsOn: {
|
|
163
181
|
readonly fieldId: "storage.provider";
|
|
164
182
|
readonly equals: "upstash";
|
|
@@ -590,6 +608,16 @@ type AgentEvent = {
|
|
|
590
608
|
name: string;
|
|
591
609
|
input: Record<string, unknown>;
|
|
592
610
|
}>;
|
|
611
|
+
} | {
|
|
612
|
+
type: "browser:frame";
|
|
613
|
+
data: string;
|
|
614
|
+
width: number;
|
|
615
|
+
height: number;
|
|
616
|
+
} | {
|
|
617
|
+
type: "browser:status";
|
|
618
|
+
active: boolean;
|
|
619
|
+
url?: string;
|
|
620
|
+
interactionAllowed: boolean;
|
|
593
621
|
};
|
|
594
622
|
|
|
595
623
|
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/dist/index.js
CHANGED
|
@@ -88,27 +88,43 @@ var ONBOARDING_FIELDS = [
|
|
|
88
88
|
]
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
|
-
id: "
|
|
91
|
+
id: "env.REDIS_URL",
|
|
92
92
|
domain: "storage",
|
|
93
|
-
target: "
|
|
94
|
-
path: "
|
|
93
|
+
target: "env",
|
|
94
|
+
path: "REDIS_URL",
|
|
95
95
|
kind: "string",
|
|
96
96
|
scopes: ["full"],
|
|
97
|
-
label: "
|
|
98
|
-
prompt: "
|
|
97
|
+
label: "Redis URL",
|
|
98
|
+
prompt: "Redis connection URL",
|
|
99
99
|
defaultValue: "",
|
|
100
|
-
|
|
100
|
+
placeholder: "redis://localhost:6379",
|
|
101
|
+
secret: true,
|
|
102
|
+
dependsOn: { fieldId: "storage.provider", equals: "redis" }
|
|
101
103
|
},
|
|
102
104
|
{
|
|
103
|
-
id: "
|
|
105
|
+
id: "env.UPSTASH_REDIS_REST_URL",
|
|
104
106
|
domain: "storage",
|
|
105
|
-
target: "
|
|
106
|
-
path: "
|
|
107
|
+
target: "env",
|
|
108
|
+
path: "UPSTASH_REDIS_REST_URL",
|
|
109
|
+
kind: "string",
|
|
110
|
+
scopes: ["full"],
|
|
111
|
+
label: "Upstash REST URL",
|
|
112
|
+
prompt: "Upstash Redis REST URL",
|
|
113
|
+
defaultValue: "",
|
|
114
|
+
placeholder: "https://...",
|
|
115
|
+
dependsOn: { fieldId: "storage.provider", equals: "upstash" }
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
id: "env.UPSTASH_REDIS_REST_TOKEN",
|
|
119
|
+
domain: "storage",
|
|
120
|
+
target: "env",
|
|
121
|
+
path: "UPSTASH_REDIS_REST_TOKEN",
|
|
107
122
|
kind: "string",
|
|
108
123
|
scopes: ["full"],
|
|
109
|
-
label: "
|
|
110
|
-
prompt: "
|
|
124
|
+
label: "Upstash REST token",
|
|
125
|
+
prompt: "Upstash Redis REST token",
|
|
111
126
|
defaultValue: "",
|
|
127
|
+
secret: true,
|
|
112
128
|
dependsOn: { fieldId: "storage.provider", equals: "upstash" }
|
|
113
129
|
},
|
|
114
130
|
{
|
package/package.json
CHANGED
package/src/config-registry.ts
CHANGED
|
@@ -133,27 +133,43 @@ export const ONBOARDING_FIELDS = [
|
|
|
133
133
|
],
|
|
134
134
|
},
|
|
135
135
|
{
|
|
136
|
-
id: "
|
|
136
|
+
id: "env.REDIS_URL",
|
|
137
137
|
domain: "storage",
|
|
138
|
-
target: "
|
|
139
|
-
path: "
|
|
138
|
+
target: "env",
|
|
139
|
+
path: "REDIS_URL",
|
|
140
140
|
kind: "string",
|
|
141
141
|
scopes: ["full"],
|
|
142
|
-
label: "
|
|
143
|
-
prompt: "
|
|
142
|
+
label: "Redis URL",
|
|
143
|
+
prompt: "Redis connection URL",
|
|
144
144
|
defaultValue: "",
|
|
145
|
-
|
|
145
|
+
placeholder: "redis://localhost:6379",
|
|
146
|
+
secret: true,
|
|
147
|
+
dependsOn: { fieldId: "storage.provider", equals: "redis" },
|
|
146
148
|
},
|
|
147
149
|
{
|
|
148
|
-
id: "
|
|
150
|
+
id: "env.UPSTASH_REDIS_REST_URL",
|
|
149
151
|
domain: "storage",
|
|
150
|
-
target: "
|
|
151
|
-
path: "
|
|
152
|
+
target: "env",
|
|
153
|
+
path: "UPSTASH_REDIS_REST_URL",
|
|
154
|
+
kind: "string",
|
|
155
|
+
scopes: ["full"],
|
|
156
|
+
label: "Upstash REST URL",
|
|
157
|
+
prompt: "Upstash Redis REST URL",
|
|
158
|
+
defaultValue: "",
|
|
159
|
+
placeholder: "https://...",
|
|
160
|
+
dependsOn: { fieldId: "storage.provider", equals: "upstash" },
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
id: "env.UPSTASH_REDIS_REST_TOKEN",
|
|
164
|
+
domain: "storage",
|
|
165
|
+
target: "env",
|
|
166
|
+
path: "UPSTASH_REDIS_REST_TOKEN",
|
|
152
167
|
kind: "string",
|
|
153
168
|
scopes: ["full"],
|
|
154
|
-
label: "
|
|
155
|
-
prompt: "
|
|
169
|
+
label: "Upstash REST token",
|
|
170
|
+
prompt: "Upstash Redis REST token",
|
|
156
171
|
defaultValue: "",
|
|
172
|
+
secret: true,
|
|
157
173
|
dependsOn: { fieldId: "storage.provider", equals: "upstash" },
|
|
158
174
|
},
|
|
159
175
|
{
|
package/src/index.ts
CHANGED
|
@@ -153,4 +153,11 @@ export type AgentEvent =
|
|
|
153
153
|
input: Record<string, unknown>;
|
|
154
154
|
checkpointMessages: Message[];
|
|
155
155
|
pendingToolCalls: Array<{ id: string; name: string; input: Record<string, unknown> }>;
|
|
156
|
+
}
|
|
157
|
+
| { type: "browser:frame"; data: string; width: number; height: number }
|
|
158
|
+
| {
|
|
159
|
+
type: "browser:status";
|
|
160
|
+
active: boolean;
|
|
161
|
+
url?: string;
|
|
162
|
+
interactionAllowed: boolean;
|
|
156
163
|
};
|