openpond-code 0.1.2 → 0.1.4

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,17 @@
1
1
  # openpond-code
2
2
 
3
+ ## 0.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - bb79cf8: cleaned up naming
8
+
9
+ ## 0.1.3
10
+
11
+ ### Patch Changes
12
+
13
+ - 96cbdc6: depreciated templateid
14
+
3
15
  ## 0.1.2
4
16
 
5
17
  ### 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;
@@ -107,7 +105,6 @@ export type AppListItem = {
107
105
  gitRepo: string | null;
108
106
  gitProvider: string | null;
109
107
  gitHost: string | null;
110
- internalToolName: string | null;
111
108
  defaultBranch: string | null;
112
109
  createdAt: string;
113
110
  updatedAt: string;
@@ -237,7 +234,6 @@ export type AgentCreateRequest = {
237
234
  template?: {
238
235
  name?: string;
239
236
  description?: string;
240
- templateId?: string;
241
237
  templateRepoUrl?: string;
242
238
  templateBranch?: string;
243
239
  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") {
@@ -906,8 +906,6 @@ async function resolveAppTarget(apiBase, apiKey, target) {
906
906
  const candidates = [
907
907
  app.repo,
908
908
  app.gitRepo,
909
- app.internalToolName,
910
- app.name,
911
909
  app.id
912
910
  ].map(normalizeRepoName);
913
911
  return candidates.includes(normalizedRepo);
@@ -1354,7 +1352,7 @@ async function runAppsList(options) {
1354
1352
  }
1355
1353
  for (const app of filtered) {
1356
1354
  const owner = app.handle || app.gitOwner || "unknown";
1357
- const repo = app.repo || app.gitRepo || app.name || app.id;
1355
+ const repo = app.repo || app.gitRepo || app.id;
1358
1356
  const status = app.latestDeployment?.status || "no-deploy";
1359
1357
  const branch = app.latestDeployment?.gitBranch || app.defaultBranch || "-";
1360
1358
  console.log(`${owner}/${repo} ${status} ${branch} ${app.id}`);
@@ -1404,12 +1402,11 @@ async function runAppsAgentCreate(options, contentParts) {
1404
1402
  if (!prompt.trim()) {
1405
1403
  throw new Error("usage: apps agent create --prompt <text>");
1406
1404
  }
1407
- const templateId = typeof options.templateId === "string" ? options.templateId : undefined;
1408
1405
  const templateRepoUrl = typeof options.templateRepoUrl === "string" ? options.templateRepoUrl : undefined;
1409
1406
  const templateBranch = typeof options.templateBranch === "string" ? options.templateBranch : undefined;
1410
1407
  const templateLocalPath = typeof options.templateLocalPath === "string" ? options.templateLocalPath : undefined;
1411
1408
  if (templateLocalPath && String(templateLocalPath).trim().length > 0) {
1412
- throw new Error("templateLocalPath is not supported; use templateId or templateRepoUrl");
1409
+ throw new Error("templateLocalPath is not supported; use templateRepoUrl");
1413
1410
  }
1414
1411
  const envVars = typeof options.env === "string" ? parseJsonOption(options.env, "env") : undefined;
1415
1412
  if (envVars) {
@@ -1422,8 +1419,7 @@ async function runAppsAgentCreate(options, contentParts) {
1422
1419
  }
1423
1420
  }
1424
1421
  }
1425
- const template = templateId || templateRepoUrl || templateBranch || envVars ? {
1426
- templateId,
1422
+ const template = templateRepoUrl || templateBranch || envVars ? {
1427
1423
  templateRepoUrl,
1428
1424
  templateBranch,
1429
1425
  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") {
@@ -952,8 +952,6 @@ async function resolveAppTarget(params) {
952
952
  const candidates = [
953
953
  app.repo,
954
954
  app.gitRepo,
955
- app.internalToolName,
956
- app.name,
957
955
  app.id
958
956
  ].map(normalizeRepoName);
959
957
  return candidates.includes(normalizedRepo);
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.4",
4
4
  "description": "OpenPond CLI (API key only)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",