@cyber-dash-tech/revela 0.15.2 → 0.15.3
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/README.md +58 -104
- package/README.zh-CN.md +59 -104
- package/designs/starter/DESIGN.md +33 -14
- package/designs/starter/preview.html +23 -16
- package/designs/summit/DESIGN.md +35 -42
- package/designs/summit/preview.html +49 -49
- package/lib/commands/brief.ts +1 -1
- package/lib/commands/designs-new.ts +6 -6
- package/lib/commands/designs.ts +9 -9
- package/lib/commands/domains.ts +9 -9
- package/lib/commands/edit.ts +1 -1
- package/lib/commands/help.ts +34 -37
- package/lib/commands/init.ts +1 -1
- package/lib/commands/inspect.ts +2 -20
- package/lib/commands/narrative.ts +3 -3
- package/lib/commands/pdf.ts +3 -3
- package/lib/commands/pptx.ts +2 -2
- package/lib/commands/review.ts +13 -6
- package/lib/decks-state.ts +6 -6
- package/lib/edit/deck-state.ts +1 -1
- package/lib/edit/resolve-deck.ts +1 -1
- package/lib/inspect/server.ts +2 -2
- package/lib/prompt-builder.ts +20 -14
- package/package.json +1 -1
- package/plugin.ts +133 -283
- package/skill/NARRATIVE_SKILL.md +15 -17
- package/skill/SKILL.md +220 -477
- package/tools/edit.ts +1 -1
- package/tools/inspection-result.ts +1 -1
- package/lib/commands/disable.ts +0 -14
- package/lib/commands/enable.ts +0 -48
package/tools/edit.ts
CHANGED
|
@@ -13,7 +13,7 @@ export function createEditTool(options: { client: any; workspaceRoot: string; op
|
|
|
13
13
|
"Open Revela Refine in Edit mode for an existing slide deck. " +
|
|
14
14
|
"Use this when the user asks to edit, revise, annotate, or visually comment on a deck, " +
|
|
15
15
|
"including when they reference the current deck. " +
|
|
16
|
-
"This is a compatibility tool for the older edit-only workflow; the user-facing entry is /revela refine. " +
|
|
16
|
+
"This is a compatibility tool for the older edit-only workflow; the user-facing entry is /revela refine --deck. " +
|
|
17
17
|
"It opens a local browser workspace where the user can Ctrl/Cmd-click deck elements, use the Edit tab, " +
|
|
18
18
|
"and send precise edit requests back to the current OpenCode session.",
|
|
19
19
|
args: {},
|
|
@@ -15,7 +15,7 @@ const evidenceSourceItemSchema = tool.schema.object({
|
|
|
15
15
|
|
|
16
16
|
export default tool({
|
|
17
17
|
description:
|
|
18
|
-
"Submit the final structured Evidence Inspector result for a pending /revela
|
|
18
|
+
"Submit the final structured Evidence Inspector result for a pending /revela refine --deck Inspect request. " +
|
|
19
19
|
"Use only when responding to an inspection prompt. This updates the local browser inspector; it does not mutate DECKS.json or deck files.",
|
|
20
20
|
args: {
|
|
21
21
|
requestId: tool.schema.string().describe("Pending inspection request id from the inspection prompt."),
|
package/lib/commands/disable.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* lib/commands/disable.ts
|
|
3
|
-
*
|
|
4
|
-
* Handler for `/revela disable` — deactivates slide generation mode.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import { ctx } from "../ctx"
|
|
8
|
-
|
|
9
|
-
export async function handleDisable(
|
|
10
|
-
send: (text: string) => Promise<void>,
|
|
11
|
-
): Promise<void> {
|
|
12
|
-
ctx.enabled = false
|
|
13
|
-
await send(`**Revela disabled.** Slide generation mode is off.`)
|
|
14
|
-
}
|
package/lib/commands/enable.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* lib/commands/enable.ts
|
|
3
|
-
*
|
|
4
|
-
* Handler for `/revela enable` — activates Revela ambient narrative mode.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import { existsSync } from "fs"
|
|
8
|
-
import { activeDesign } from "../design/designs"
|
|
9
|
-
import { activeDomain } from "../domain/domains"
|
|
10
|
-
import { ctx } from "../ctx"
|
|
11
|
-
import { ACTIVE_PROMPT_FILE } from "../config"
|
|
12
|
-
import { buildPrompt } from "../prompt-builder"
|
|
13
|
-
import { log } from "../log"
|
|
14
|
-
|
|
15
|
-
export async function handleEnable(
|
|
16
|
-
send: (text: string) => Promise<void>,
|
|
17
|
-
): Promise<void> {
|
|
18
|
-
ctx.enabled = true
|
|
19
|
-
const design = activeDesign()
|
|
20
|
-
const domain = activeDomain()
|
|
21
|
-
|
|
22
|
-
// Always rebuild narrative mode on enable. A prior `/revela make deck` handoff may
|
|
23
|
-
// have intentionally switched the active prompt to deck-render mode.
|
|
24
|
-
if (!existsSync(ACTIVE_PROMPT_FILE)) {
|
|
25
|
-
log.warn("active prompt file missing on enable — rebuilding", { promptFile: ACTIVE_PROMPT_FILE })
|
|
26
|
-
}
|
|
27
|
-
try {
|
|
28
|
-
buildPrompt({ mode: "narrative" })
|
|
29
|
-
log.info("narrative prompt rebuilt on enable", { design, domain, promptFile: ACTIVE_PROMPT_FILE })
|
|
30
|
-
} catch (e) {
|
|
31
|
-
log.error("prompt rebuild failed on enable", { error: e instanceof Error ? e.message : String(e) })
|
|
32
|
-
await send(
|
|
33
|
-
`**Revela ambient mode enabled (with warnings).** Narrative mode is active for normal chat, ` +
|
|
34
|
-
`but the prompt file could not be built. ` +
|
|
35
|
-
`Try \`/revela disable\` then \`/revela enable\` again, or check that the package is correctly installed.\n\n` +
|
|
36
|
-
`Design: \`${design}\` · Domain: \`${domain}\``
|
|
37
|
-
)
|
|
38
|
-
return
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
log.info("revela enabled", { design, domain })
|
|
42
|
-
await send(
|
|
43
|
-
`**Revela ambient mode enabled.** Normal chat will stay in Revela narrative mode.\n` +
|
|
44
|
-
`Design: \`${design}\` · Domain: \`${domain}\`\n\n` +
|
|
45
|
-
`Explicit workflow commands like \`/revela init\`, \`/revela story\`, and \`/revela make deck\` work without enabling first. ` +
|
|
46
|
-
`Use \`/revela disable\` to return normal chat to plain OpenCode mode.`
|
|
47
|
-
)
|
|
48
|
-
}
|