@poncho-ai/sdk 0.4.0 → 0.6.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 +14 -0
- package/dist/index.d.ts +27 -1
- package/dist/index.js +19 -0
- package/package.json +1 -1
- package/src/config-registry.ts +20 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @poncho-ai/sdk@0.
|
|
2
|
+
> @poncho-ai/sdk@0.6.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
|
|
@@ -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[32m6.16 KB[39m
|
|
11
|
+
[32mESM[39m ⚡️ Build success in 64ms
|
|
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 947ms
|
|
14
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m12.51 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @poncho-ai/sdk
|
|
2
2
|
|
|
3
|
+
## 0.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`a1df23f`](https://github.com/cesr/poncho-ai/commit/a1df23f339d815c30948ebcd275209366a3d2a72) Thanks [@cesr](https://github.com/cesr)! - Add cooperative run cancellation: stop active runs via Ctrl+C (CLI), stop button (Web UI), or the /stop API endpoint. Partial output is preserved and empty assistant messages are skipped to prevent conversation corruption.
|
|
8
|
+
|
|
9
|
+
## 0.5.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- Improve deployment scaffolding and init onboarding for production targets.
|
|
14
|
+
|
|
15
|
+
The CLI now scaffolds deployment files directly in project roots (including Vercel `api/index.mjs` + `vercel.json`), adds safer overwrite behavior with `--force`, and normalizes runtime dependencies for deployable projects. Onboarding now captures `deploy.target` so new projects can scaffold the selected platform during `poncho init`.
|
|
16
|
+
|
|
3
17
|
## 0.2.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
type OnboardingScope = "light" | "full";
|
|
2
|
-
type FeatureDomain = "model" | "storage" | "memory" | "auth" | "telemetry" | "mcp";
|
|
2
|
+
type FeatureDomain = "model" | "deploy" | "storage" | "memory" | "auth" | "telemetry" | "mcp";
|
|
3
3
|
type OnboardingFieldTarget = "agent" | "config" | "env";
|
|
4
4
|
type OnboardingFieldKind = "select" | "boolean" | "string" | "number";
|
|
5
5
|
type OnboardingFieldCondition = {
|
|
@@ -80,6 +80,32 @@ declare const ONBOARDING_FIELDS: readonly [{
|
|
|
80
80
|
readonly fieldId: "model.provider";
|
|
81
81
|
readonly equals: "openai";
|
|
82
82
|
};
|
|
83
|
+
}, {
|
|
84
|
+
readonly id: "deploy.target";
|
|
85
|
+
readonly domain: "deploy";
|
|
86
|
+
readonly target: "agent";
|
|
87
|
+
readonly path: "deploy.target";
|
|
88
|
+
readonly kind: "select";
|
|
89
|
+
readonly scopes: ["light", "full"];
|
|
90
|
+
readonly label: "Deploy target";
|
|
91
|
+
readonly prompt: "Choose a deploy target (optional)";
|
|
92
|
+
readonly defaultValue: "none";
|
|
93
|
+
readonly options: [{
|
|
94
|
+
readonly value: "none";
|
|
95
|
+
readonly label: "None (local dev only)";
|
|
96
|
+
}, {
|
|
97
|
+
readonly value: "vercel";
|
|
98
|
+
readonly label: "Vercel";
|
|
99
|
+
}, {
|
|
100
|
+
readonly value: "docker";
|
|
101
|
+
readonly label: "Docker";
|
|
102
|
+
}, {
|
|
103
|
+
readonly value: "fly";
|
|
104
|
+
readonly label: "Fly.io";
|
|
105
|
+
}, {
|
|
106
|
+
readonly value: "lambda";
|
|
107
|
+
readonly label: "AWS Lambda";
|
|
108
|
+
}];
|
|
83
109
|
}, {
|
|
84
110
|
readonly id: "storage.provider";
|
|
85
111
|
readonly domain: "storage";
|
package/dist/index.js
CHANGED
|
@@ -43,6 +43,24 @@ var ONBOARDING_FIELDS = [
|
|
|
43
43
|
secret: true,
|
|
44
44
|
dependsOn: { fieldId: "model.provider", equals: "openai" }
|
|
45
45
|
},
|
|
46
|
+
{
|
|
47
|
+
id: "deploy.target",
|
|
48
|
+
domain: "deploy",
|
|
49
|
+
target: "agent",
|
|
50
|
+
path: "deploy.target",
|
|
51
|
+
kind: "select",
|
|
52
|
+
scopes: ["light", "full"],
|
|
53
|
+
label: "Deploy target",
|
|
54
|
+
prompt: "Choose a deploy target (optional)",
|
|
55
|
+
defaultValue: "none",
|
|
56
|
+
options: [
|
|
57
|
+
{ value: "none", label: "None (local dev only)" },
|
|
58
|
+
{ value: "vercel", label: "Vercel" },
|
|
59
|
+
{ value: "docker", label: "Docker" },
|
|
60
|
+
{ value: "fly", label: "Fly.io" },
|
|
61
|
+
{ value: "lambda", label: "AWS Lambda" }
|
|
62
|
+
]
|
|
63
|
+
},
|
|
46
64
|
{
|
|
47
65
|
id: "storage.provider",
|
|
48
66
|
domain: "storage",
|
|
@@ -206,6 +224,7 @@ var ONBOARDING_FIELDS = [
|
|
|
206
224
|
];
|
|
207
225
|
var FEATURE_DOMAIN_ORDER = [
|
|
208
226
|
"model",
|
|
227
|
+
"deploy",
|
|
209
228
|
"storage",
|
|
210
229
|
"memory",
|
|
211
230
|
"auth",
|
package/package.json
CHANGED
package/src/config-registry.ts
CHANGED
|
@@ -2,6 +2,7 @@ export type OnboardingScope = "light" | "full";
|
|
|
2
2
|
|
|
3
3
|
export type FeatureDomain =
|
|
4
4
|
| "model"
|
|
5
|
+
| "deploy"
|
|
5
6
|
| "storage"
|
|
6
7
|
| "memory"
|
|
7
8
|
| "auth"
|
|
@@ -86,6 +87,24 @@ export const ONBOARDING_FIELDS = [
|
|
|
86
87
|
secret: true,
|
|
87
88
|
dependsOn: { fieldId: "model.provider", equals: "openai" },
|
|
88
89
|
},
|
|
90
|
+
{
|
|
91
|
+
id: "deploy.target",
|
|
92
|
+
domain: "deploy",
|
|
93
|
+
target: "agent",
|
|
94
|
+
path: "deploy.target",
|
|
95
|
+
kind: "select",
|
|
96
|
+
scopes: ["light", "full"],
|
|
97
|
+
label: "Deploy target",
|
|
98
|
+
prompt: "Choose a deploy target (optional)",
|
|
99
|
+
defaultValue: "none",
|
|
100
|
+
options: [
|
|
101
|
+
{ value: "none", label: "None (local dev only)" },
|
|
102
|
+
{ value: "vercel", label: "Vercel" },
|
|
103
|
+
{ value: "docker", label: "Docker" },
|
|
104
|
+
{ value: "fly", label: "Fly.io" },
|
|
105
|
+
{ value: "lambda", label: "AWS Lambda" },
|
|
106
|
+
],
|
|
107
|
+
},
|
|
89
108
|
{
|
|
90
109
|
id: "storage.provider",
|
|
91
110
|
domain: "storage",
|
|
@@ -250,6 +269,7 @@ export const ONBOARDING_FIELDS = [
|
|
|
250
269
|
|
|
251
270
|
export const FEATURE_DOMAIN_ORDER: readonly FeatureDomain[] = [
|
|
252
271
|
"model",
|
|
272
|
+
"deploy",
|
|
253
273
|
"storage",
|
|
254
274
|
"memory",
|
|
255
275
|
"auth",
|