openpond-code 0.1.2 → 0.1.3
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/CHANGELOG.md +6 -0
- package/dist/api.d.ts +0 -3
- package/dist/cli.js +4 -6
- package/dist/index.js +2 -2
- package/dist/types.d.ts +0 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/api.d.ts
CHANGED
|
@@ -24,7 +24,6 @@ export declare function startDeviceLogin(baseUrl: string): Promise<DeviceStartRe
|
|
|
24
24
|
export declare function pollDeviceLogin(baseUrl: string, deviceCode?: string, userCode?: string): Promise<DevicePollResponse>;
|
|
25
25
|
export type CreateLocalProjectInput = {
|
|
26
26
|
name: string;
|
|
27
|
-
templateId?: string;
|
|
28
27
|
templateRepoUrl?: string;
|
|
29
28
|
templateBranch?: string;
|
|
30
29
|
envVars?: Record<string, string>;
|
|
@@ -50,7 +49,6 @@ export type CreateRepoResponse = {
|
|
|
50
49
|
export type HeadlessAppRequest = {
|
|
51
50
|
name?: string;
|
|
52
51
|
description?: string;
|
|
53
|
-
templateId?: string;
|
|
54
52
|
templateRepoUrl?: string;
|
|
55
53
|
templateBranch?: string;
|
|
56
54
|
templateName?: string;
|
|
@@ -237,7 +235,6 @@ export type AgentCreateRequest = {
|
|
|
237
235
|
template?: {
|
|
238
236
|
name?: string;
|
|
239
237
|
description?: string;
|
|
240
|
-
templateId?: string;
|
|
241
238
|
templateRepoUrl?: string;
|
|
242
239
|
templateBranch?: string;
|
|
243
240
|
envVars?: Record<string, string>;
|
package/dist/cli.js
CHANGED
|
@@ -625,8 +625,8 @@ function formatStreamItem(item) {
|
|
|
625
625
|
return null;
|
|
626
626
|
if (type === "app_creation_started") {
|
|
627
627
|
const name = item.appName || item.name || item.appId || "app";
|
|
628
|
-
const
|
|
629
|
-
const suffix =
|
|
628
|
+
const templateRepoUrl = typeof item.templateRepoUrl === "string" ? item.templateRepoUrl : null;
|
|
629
|
+
const suffix = templateRepoUrl ? ` template=${templateRepoUrl}` : "";
|
|
630
630
|
return `app_creation_started: ${name}${suffix}`;
|
|
631
631
|
}
|
|
632
632
|
if (type === "app_created") {
|
|
@@ -1404,12 +1404,11 @@ async function runAppsAgentCreate(options, contentParts) {
|
|
|
1404
1404
|
if (!prompt.trim()) {
|
|
1405
1405
|
throw new Error("usage: apps agent create --prompt <text>");
|
|
1406
1406
|
}
|
|
1407
|
-
const templateId = typeof options.templateId === "string" ? options.templateId : undefined;
|
|
1408
1407
|
const templateRepoUrl = typeof options.templateRepoUrl === "string" ? options.templateRepoUrl : undefined;
|
|
1409
1408
|
const templateBranch = typeof options.templateBranch === "string" ? options.templateBranch : undefined;
|
|
1410
1409
|
const templateLocalPath = typeof options.templateLocalPath === "string" ? options.templateLocalPath : undefined;
|
|
1411
1410
|
if (templateLocalPath && String(templateLocalPath).trim().length > 0) {
|
|
1412
|
-
throw new Error("templateLocalPath is not supported; use
|
|
1411
|
+
throw new Error("templateLocalPath is not supported; use templateRepoUrl");
|
|
1413
1412
|
}
|
|
1414
1413
|
const envVars = typeof options.env === "string" ? parseJsonOption(options.env, "env") : undefined;
|
|
1415
1414
|
if (envVars) {
|
|
@@ -1422,8 +1421,7 @@ async function runAppsAgentCreate(options, contentParts) {
|
|
|
1422
1421
|
}
|
|
1423
1422
|
}
|
|
1424
1423
|
}
|
|
1425
|
-
const template =
|
|
1426
|
-
templateId,
|
|
1424
|
+
const template = templateRepoUrl || templateBranch || envVars ? {
|
|
1427
1425
|
templateRepoUrl,
|
|
1428
1426
|
templateBranch,
|
|
1429
1427
|
envVars
|
package/dist/index.js
CHANGED
|
@@ -644,8 +644,8 @@ function formatStreamItem(item) {
|
|
|
644
644
|
return null;
|
|
645
645
|
if (type === "app_creation_started") {
|
|
646
646
|
const name = item.appName || item.name || item.appId || "app";
|
|
647
|
-
const
|
|
648
|
-
const suffix =
|
|
647
|
+
const templateRepoUrl = typeof item.templateRepoUrl === "string" ? item.templateRepoUrl : null;
|
|
648
|
+
const suffix = templateRepoUrl ? ` template=${templateRepoUrl}` : "";
|
|
649
649
|
return `app_creation_started: ${name}${suffix}`;
|
|
650
650
|
}
|
|
651
651
|
if (type === "app_created") {
|
package/dist/types.d.ts
CHANGED