@cyber-dash-tech/revela 0.6.1 → 0.7.0

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": "@cyber-dash-tech/revela",
3
- "version": "0.6.1",
3
+ "version": "0.7.0",
4
4
  "description": "OpenCode plugin that turns AI into an HTML slide deck generator",
5
5
  "type": "module",
6
6
  "main": "./index.ts",
package/plugin.ts CHANGED
@@ -45,6 +45,7 @@ import {
45
45
  } from "./lib/commands/domains"
46
46
  import { handlePdf } from "./lib/commands/pdf"
47
47
  import { handlePptx } from "./lib/commands/pptx"
48
+ import { handleEdit } from "./lib/commands/edit"
48
49
  import { handleDesignsPreview } from "./lib/commands/designs-preview"
49
50
  import {
50
51
  parseDesignsNewArgs,
@@ -56,10 +57,8 @@ import { buildInitPrompt } from "./lib/commands/init"
56
57
  import { parseRememberArgs, buildRememberPrompt } from "./lib/commands/remember"
57
58
  import { buildReviewPrompt } from "./lib/commands/review"
58
59
  import {
59
- buildDecksMemoryLayer,
60
60
  extractDeckHtmlTargetsFromPatch,
61
61
  extractPatchTextArg,
62
- hasDecksMemory,
63
62
  isDeckHtmlPath,
64
63
  setPatchTextArg,
65
64
  } from "./lib/decks-memory"
@@ -220,7 +219,7 @@ const server: Plugin = (async (pluginCtx) => {
220
219
  output.parts.length = 0
221
220
  output.parts.push({
222
221
  type: "text",
223
- text: buildInitPrompt({ exists: hasDecksState(workspaceRoot), legacyExists: hasDecksMemory(workspaceRoot), workspaceRoot }),
222
+ text: buildInitPrompt({ exists: hasDecksState(workspaceRoot), workspaceRoot }),
224
223
  } as any)
225
224
  return
226
225
  }
@@ -233,7 +232,7 @@ const server: Plugin = (async (pluginCtx) => {
233
232
  output.parts.length = 0
234
233
  output.parts.push({
235
234
  type: "text",
236
- text: buildRememberPrompt({ memory: parsed.memory, exists: hasDecksState(workspaceRoot), legacyExists: hasDecksMemory(workspaceRoot) }),
235
+ text: buildRememberPrompt({ memory: parsed.memory, exists: hasDecksState(workspaceRoot) }),
237
236
  } as any)
238
237
  return
239
238
  }
@@ -241,10 +240,14 @@ const server: Plugin = (async (pluginCtx) => {
241
240
  output.parts.length = 0
242
241
  output.parts.push({
243
242
  type: "text",
244
- text: buildReviewPrompt({ slug: param || undefined, exists: hasDecksState(workspaceRoot), legacyExists: hasDecksMemory(workspaceRoot), workspaceRoot }),
243
+ text: buildReviewPrompt({ slug: param || undefined, exists: hasDecksState(workspaceRoot), workspaceRoot }),
245
244
  } as any)
246
245
  return
247
246
  }
247
+ if (sub === "edit") {
248
+ await handleEdit(param, { client, sessionID, workspaceRoot }, send)
249
+ throw new Error("__REVELA_EDIT_HANDLED__")
250
+ }
248
251
  if (sub === "designs" && !param) {
249
252
  await handleDesignsList(send)
250
253
  throw new Error("__REVELA_DESIGNS_LIST_HANDLED__")
@@ -420,14 +423,6 @@ const server: Plugin = (async (pluginCtx) => {
420
423
  error: e instanceof Error ? e.message : String(e),
421
424
  })
422
425
  }
423
- try {
424
- const memoryLayer = buildDecksMemoryLayer(workspaceRoot)
425
- if (memoryLayer) prompt += "\n\n" + memoryLayer
426
- } catch (e) {
427
- childLog("decks-memory").warn("failed to load DECKS.md memory", {
428
- error: e instanceof Error ? e.message : String(e),
429
- })
430
- }
431
426
  if (output.system.length > 0) {
432
427
  output.system[output.system.length - 1] += "\n\n" + prompt
433
428
  } else {