opencode-codegraph 0.1.32 → 0.1.33

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.33 - 2026-03-21
4
+
5
+ - expose workflow policy transparency in plugin summaries via `policy_version` and `priority_reason`
6
+
3
7
  ## 0.1.32 - 2026-03-21
4
8
 
5
9
  - align workflow-update blocks with the same closure-oriented framing used by other status-oriented surfaces
package/README.md CHANGED
@@ -128,6 +128,7 @@ Place in `.opencode/commands/`:
128
128
  Across status-oriented surfaces, the plugin is converging on one shared summary contract:
129
129
 
130
130
  - workflow state
131
+ - policy version / priority reason
131
132
  - primary issue
132
133
  - recovery sequence
133
134
  - blockers
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-codegraph",
3
- "version": "0.1.32",
3
+ "version": "0.1.33",
4
4
  "description": "OpenCode plugin for CodeGraph CPG-powered code analysis",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
package/src/util.ts CHANGED
@@ -46,6 +46,8 @@ export type DogfoodStatusSnapshot = {
46
46
  }
47
47
  review_trace?: ReviewTraceSnapshot | null
48
48
  workflow_state?: string
49
+ policy_version?: string
50
+ priority_reason?: string
49
51
  recommended_next_action?: string
50
52
  recommended_command?: string
51
53
  primary_issue?: string
@@ -61,6 +63,8 @@ export type DogfoodStatusSnapshot = {
61
63
 
62
64
  function workflowSummaryLines(snapshot: DogfoodStatusSnapshot): string[] {
63
65
  const workflowState = snapshot.workflow_state
66
+ const policyVersion = snapshot.policy_version
67
+ const priorityReason = snapshot.priority_reason
64
68
  const nextAction = snapshot.recommended_next_action
65
69
  const nextCommand = snapshot.recommended_command
66
70
  const primaryIssue = snapshot.primary_issue
@@ -77,6 +81,12 @@ function workflowSummaryLines(snapshot: DogfoodStatusSnapshot): string[] {
77
81
  if (workflowState) {
78
82
  lines.push(`- Workflow state: ${workflowState}`)
79
83
  }
84
+ if (policyVersion) {
85
+ lines.push(`- Policy version: ${policyVersion}`)
86
+ }
87
+ if (priorityReason) {
88
+ lines.push(`- Priority reason: ${priorityReason}`)
89
+ }
80
90
  if (nextAction) {
81
91
  lines.push(`- Next action: ${nextAction}`)
82
92
  }