poe-code 4.0.50 → 4.0.51

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/index.js CHANGED
@@ -76961,6 +76961,21 @@ function buildPlanExplorerConfig(options) {
76961
76961
  }
76962
76962
  }
76963
76963
  },
76964
+ {
76965
+ id: "unarchive",
76966
+ accelerator: "a",
76967
+ label: "Unarchive",
76968
+ handler: async (ctx) => {
76969
+ const entry = getEntry(entryByRowId, ctx.row.id);
76970
+ await unarchivePlan(entry, options.fs);
76971
+ try {
76972
+ await ctx.refresh();
76973
+ ctx.toast(`Unarchived ${path91.basename(entry.path)}`, "info");
76974
+ } catch {
76975
+ ctx.toast(`Unarchived ${path91.basename(entry.path)}; refresh failed`, "info");
76976
+ }
76977
+ }
76978
+ },
76964
76979
  {
76965
76980
  id: "delete",
76966
76981
  accelerator: "x",
@@ -77006,7 +77021,9 @@ function buildPlanExplorerConfig(options) {
77006
77021
  }
77007
77022
  ],
77008
77023
  refresh,
77009
- actions: options.archived ? actions.filter((action) => action.id === "edit" || action.id === "delete") : actions,
77024
+ actions: options.archived ? actions.filter(
77025
+ (action) => action.id === "edit" || action.id === "unarchive" || action.id === "delete"
77026
+ ) : actions.filter((action) => action.id !== "unarchive"),
77010
77027
  ...options.archived ? {} : {
77011
77028
  reorder: {
77012
77029
  onReorder: async (orderedIds, ctx) => {
@@ -152819,7 +152836,7 @@ var init_package2 = __esm({
152819
152836
  "package.json"() {
152820
152837
  package_default2 = {
152821
152838
  name: "poe-code",
152822
- version: "4.0.50",
152839
+ version: "4.0.51",
152823
152840
  description: "CLI tool to configure Poe API for developer workflows.",
152824
152841
  license: "MIT",
152825
152842
  type: "module",