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/dist/cli/commands/plan.d.ts +0 -6
- package/dist/cli/commands/plan.js +26 -156
- package/dist/cli/commands/plan.js.map +1 -1
- package/dist/cli/commands/traces.js +1 -0
- package/dist/cli/commands/traces.js.map +1 -1
- package/dist/cli/program.js +4 -0
- package/dist/cli/program.js.map +1 -1
- package/dist/index.js +35 -207
- package/dist/index.js.map +3 -3
- package/dist/metafile.json +1 -1
- package/package.json +1 -1
- package/packages/plan-browser/dist/browser.d.ts +0 -1
- package/packages/plan-browser/dist/browser.js +1 -2
- package/packages/plan-browser/dist/explorer-config.d.ts +0 -1
- package/packages/plan-browser/dist/explorer-config.js +0 -13
package/package.json
CHANGED
|
@@ -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,
|