poe-code 4.0.15 → 4.0.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poe-code",
3
- "version": "4.0.15",
3
+ "version": "4.0.16",
4
4
  "description": "CLI tool to configure Poe API for developer workflows.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -9,7 +9,6 @@ export declare function runPlanBrowser(options: {
9
9
  fs: DiscoveryFs & Partial<ActionFs>;
10
10
  kind?: PlanKind;
11
11
  variables?: Record<string, string | undefined>;
12
- onCreatePlan?: () => Promise<void>;
13
12
  runExplorerImpl?: RunExplorerImpl;
14
13
  }): Promise<void>;
15
14
  export {};
@@ -28,8 +28,7 @@ export async function runPlanBrowser(options) {
28
28
  plans,
29
29
  fs: options.fs,
30
30
  variables: options.variables ?? process.env,
31
- onRefresh: discover,
32
- onCreatePlan: options.onCreatePlan
31
+ onRefresh: discover
33
32
  });
34
33
  await (options.runExplorerImpl ?? runExplorer)(config);
35
34
  }
@@ -5,7 +5,6 @@ export interface BuildPlanExplorerConfigOptions {
5
5
  fs: ActionFs & DiscoveryFs;
6
6
  variables: Record<string, string | undefined>;
7
7
  onRefresh: () => Promise<PlanEntry[]>;
8
- onCreatePlan?: () => Promise<void>;
9
8
  promptSaveReason?: (entry: PlanEntry) => Promise<string | null>;
10
9
  loadDetailMarkdown?: (entry: PlanEntry, fs: ActionFs & DiscoveryFs) => Promise<string>;
11
10
  }
@@ -98,19 +98,6 @@ export function buildPlanExplorerConfig(options) {
98
98
  }
99
99
  }
100
100
  ];
101
- if (options.onCreatePlan !== undefined) {
102
- actions.push({
103
- id: "new",
104
- key: "n",
105
- primary: true,
106
- label: "New plan",
107
- predicate: () => options.onCreatePlan != null,
108
- handler: async (ctx) => {
109
- await ctx.suspendAnd(() => options.onCreatePlan());
110
- await ctx.refresh();
111
- }
112
- });
113
- }
114
101
  return {
115
102
  title: "Plans",
116
103
  rows: async () => rows,