pluidr 0.7.3 → 0.7.4

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 CHANGED
@@ -321,7 +321,7 @@ Checks installation health and reports ✓/✗ for each component:
321
321
  - `opencode.jsonc` exists
322
322
  - All 18 prompt files present
323
323
  - Both plugin files present
324
- - `pluidr-contrast` theme file present
324
+ - `pluidr-contrast` theme configured
325
325
  - `package.json` with `@opencode-ai/plugin` dependency
326
326
  - squeeze binary available
327
327
  - Config is valid JSON
@@ -330,7 +330,7 @@ Exits with code `0` if all pass, `1` if any fail.
330
330
 
331
331
  ### `pluidr update`
332
332
 
333
- Checks the npm registry for a newer version of pluidr and prompts to install it.
333
+ Checks the npm registry for a newer version of pluidr and prompts to automatically install the upgrade globally. If an update is successfully completed, the running CLI process exits to let you start fresh on the new version.
334
334
 
335
335
  ### `pluidr uninstall`
336
336
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pluidr",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "description": "Opinionated Engineering Workflow for OpenCode — Plan, Build, Review.",
5
5
  "keywords": [
6
6
  "opencode",
@@ -1,6 +1,6 @@
1
1
  import { existsSync, readFileSync, readdirSync } from "node:fs"
2
2
  import { join } from "node:path"
3
- import { getConfigDir, getConfigPath, getPromptsDir, getThemesDir } from "../../core/paths.js"
3
+ import { getConfigDir, getConfigPath, getPromptsDir, getThemesDir, getTuiConfigPath } from "../../core/paths.js"
4
4
  import { findSqueezePath } from "../../core/squeezeInstaller.js"
5
5
 
6
6
  const EXPECTED_PROMPT_COUNT = 18
@@ -47,9 +47,30 @@ export function collectChecks() {
47
47
  }
48
48
  checks.push({ component: "plugin files", pass: pluginsFound === PLUGIN_FILES.length, detail: `${pluginsFound}/${PLUGIN_FILES.length}` })
49
49
 
50
- // 3b. Custom theme exists
50
+ // 3b. Theme configuration verification
51
51
  const themeExists = existsSync(join(themesDir, "pluidr-contrast.json"))
52
- checks.push({ component: "pluidr-contrast theme file", pass: themeExists })
52
+ const tuiConfigPath = getTuiConfigPath()
53
+ let tuiConfigValid = false
54
+ let tuiDetail = "missing mapping"
55
+ if (existsSync(tuiConfigPath)) {
56
+ try {
57
+ const content = readFileSync(tuiConfigPath, "utf-8")
58
+ const parsed = JSON.parse(content)
59
+ if (parsed.theme === "pluidr-contrast") {
60
+ tuiConfigValid = true
61
+ tuiDetail = ""
62
+ } else {
63
+ tuiDetail = `theme: ${parsed.theme || "none"}`
64
+ }
65
+ } catch {
66
+ tuiDetail = "corrupted tui.json"
67
+ }
68
+ }
69
+ checks.push({
70
+ component: themeExists && tuiConfigValid ? "pluidr-contrast theme configured" : "pluidr-contrast theme not configured",
71
+ pass: themeExists && tuiConfigValid,
72
+ detail: !themeExists ? "missing theme file" : tuiDetail
73
+ })
53
74
 
54
75
  // 4. package.json with @opencode-ai/plugin dependency
55
76
  let pkgValid = false
@@ -7,7 +7,11 @@ import { runInit } from "./init.js"
7
7
 
8
8
  export async function runLaunch() {
9
9
  // 1. Update check
10
- await checkAndPromptUpdate(version)
10
+ const updated = await checkAndPromptUpdate(version)
11
+ if (updated) {
12
+ console.log("Update successful. Please run pluidr again to start the new version.")
13
+ process.exit(0)
14
+ }
11
15
 
12
16
  // 2. Doctor check
13
17
  process.stdout.write("Running doctor... ")
@@ -2,5 +2,8 @@ import { checkAndPromptUpdate } from "../../core/versionCheck.js"
2
2
  import { version } from "../../core/version.js"
3
3
 
4
4
  export async function runUpdate() {
5
- await checkAndPromptUpdate(version)
5
+ const updated = await checkAndPromptUpdate(version)
6
+ if (updated) {
7
+ console.log("Update successful. Please run pluidr again to start the new version.")
8
+ }
6
9
  }
@@ -297,18 +297,8 @@ After presenting the Compose-Reporter's completion report to the user, you MUST:
297
297
  state returns to the starting point. The next user message triggers a
298
298
  fresh EXPLORE cycle.
299
299
 
300
- 2. **Present handoff guidance** using the `question` tool:
301
- - "Pipeline complete. What would you like to do next?"
302
- - Options:
303
- - "New feature / idea" — restart from EXPLORE (default path)
304
- - "Bug / defect found" — suggest switching to Debugger tab
305
- - "Iterate on this result" — re-enter EXPLORE with the current
306
- result as context (treat as a new request)
307
-
308
- 3. **If the user selects "Bug / defect found"**, respond with:
309
- "For bugs and defects, switch to the Debugger tab — it uses
310
- Brooks-Lint methodology for root-cause analysis. Debugger is
311
- standalone and does not depend on Composer."
300
+ 2. **Ask naturally in text** (do NOT use the `question` tool):
301
+ Ask the user if they are finished or if they need to continue the session to iterate on this result. Keep it brief, conversational, and natural.
312
302
 
313
303
  Do NOT automatically start a new pipeline without user confirmation.
314
304
  Do NOT stay in BUILD phase after presenting the report — the pipeline
@@ -59,17 +59,8 @@ After presenting the outcome to the user, you MUST:
59
59
  returns to the starting point. The next user message triggers a fresh
60
60
  debugging cycle.
61
61
 
62
- 2. **Present handoff guidance** using the `question` tool:
63
- - "Investigation complete. What would you like to do next?"
64
- - Options:
65
- - "New bug / defect" — start a fresh debugging cycle
66
- - "Feature work" — suggest switching to Composer tab
67
- - "Re-investigate" — re-enter with new information or context
68
-
69
- 3. **If the user selects "Feature work"**, respond with:
70
- "For feature work, switch to the Composer tab — it handles the full
71
- Explore → Plan → Build pipeline. Composer is standalone and does not
72
- depend on Debugger."
62
+ 2. **Ask naturally in text** (do NOT use the `question` tool):
63
+ Ask the user if they are finished or if they need to continue the session to investigate further or try another fix. Keep it brief, conversational, and natural.
73
64
 
74
65
  Do NOT automatically start a new investigation without user confirmation.
75
66
  Do NOT remain in a completed state without offering next steps.
@@ -60,16 +60,8 @@ After presenting the audit report to the user, you MUST:
60
60
  1. **Reset your internal state.** The audit is complete — your state returns to TRACE.
61
61
  The next user message triggers a fresh security audit cycle.
62
62
 
63
- 2. **Present handoff guidance** using the `question` tool:
64
- - "Security audit complete. What would you like to do next?"
65
- - Options:
66
- - "New security audit" — start a fresh TRACE cycle
67
- - "Feature work" — suggest switching to Composer tab
68
- - "Bug investigation" — suggest switching to Debugger tab
69
-
70
- 3. **If the user selects "Feature work"**, respond with:
71
- "For feature work, switch to the Composer tab — it handles the full
72
- Explore → Plan → Build pipeline."
63
+ 2. **Ask naturally in text** (do NOT use the `question` tool):
64
+ Ask the user if they are finished or if they need to continue the session to run a new audit or review other areas. Keep it brief, conversational, and natural.
73
65
 
74
66
  Do NOT automatically start a new audit without user confirmation.
75
67
  Do NOT remain in a completed state without offering next steps.