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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # openpond-code
2
2
 
3
+ ## 0.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 96cbdc6: depreciated templateid
8
+
3
9
  ## 0.1.2
4
10
 
5
11
  ### Patch Changes
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 templateId = typeof item.templateId === "string" ? item.templateId : null;
629
- const suffix = templateId ? ` template=${templateId}` : "";
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 templateId or templateRepoUrl");
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 = templateId || templateRepoUrl || templateBranch || envVars ? {
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 templateId = typeof item.templateId === "string" ? item.templateId : null;
648
- const suffix = templateId ? ` template=${templateId}` : "";
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
@@ -32,7 +32,6 @@ export type UsageInfo = {
32
32
  export type TemplateBootstrap = {
33
33
  name?: string;
34
34
  description?: string;
35
- templateId?: string;
36
35
  templateRepoUrl?: string;
37
36
  templateBranch?: string;
38
37
  envVars?: Record<string, string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openpond-code",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "OpenPond CLI (API key only)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",