opencode-extended-sidebar 0.2.90 → 0.2.91

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.
Files changed (108) hide show
  1. package/.oesignore +17 -17
  2. package/CHANGELOG.md +96 -95
  3. package/LICENSE +21 -21
  4. package/README.md +150 -235
  5. package/oes.json +13 -11
  6. package/package.json +100 -100
  7. package/scripts/install-git-hooks.mjs +29 -29
  8. package/src/pware.oc.core/constants/index.ts +18 -18
  9. package/src/pware.oc.core/constants/pware.oc.core.constants.eventKind.ts +29 -29
  10. package/src/pware.oc.core/constants/pware.oc.core.constants.eventName.ts +15 -13
  11. package/src/pware.oc.core/constants/pware.oc.core.constants.eventType.ts +241 -241
  12. package/src/pware.oc.core/constants/pware.oc.core.constants.myWork.ts +55 -55
  13. package/src/pware.oc.core/constants/pware.oc.core.constants.partType.ts +65 -65
  14. package/src/pware.oc.core/constants/pware.oc.core.constants.phase.ts +58 -58
  15. package/src/pware.oc.core/constants/pware.oc.core.constants.pulse.ts +63 -63
  16. package/src/pware.oc.core/constants/pware.oc.core.constants.rowKind.ts +34 -34
  17. package/src/pware.oc.core/constants/pware.oc.core.constants.status.ts +74 -74
  18. package/src/pware.oc.core/constants/pware.oc.core.constants.toolName.ts +69 -69
  19. package/src/pware.oc.core/git/index.ts +7 -7
  20. package/src/pware.oc.core/git/pware.oc.core.git.ts +237 -237
  21. package/src/pware.oc.core/git/pware.oc.core.gitignore.ts +87 -87
  22. package/src/pware.oc.core/index.ts +19 -18
  23. package/src/pware.oc.core/pware.oc.core.bus.ts +42 -42
  24. package/src/pware.oc.core/pware.oc.core.cache.ts +48 -48
  25. package/src/pware.oc.core/pware.oc.core.clipboard.ts +97 -97
  26. package/src/pware.oc.core/pware.oc.core.debug.ts +280 -280
  27. package/src/pware.oc.core/pware.oc.core.events.ts +79 -79
  28. package/src/pware.oc.core/pware.oc.core.glyph.ts +135 -135
  29. package/src/pware.oc.core/pware.oc.core.layout.ts +234 -234
  30. package/src/pware.oc.core/pware.oc.core.oes.ts +99 -89
  31. package/src/pware.oc.core/pware.oc.core.paths.ts +240 -240
  32. package/src/pware.oc.core/pware.oc.core.preview.ts +74 -74
  33. package/src/pware.oc.core/pware.oc.core.pulse.ts +726 -726
  34. package/src/pware.oc.core/pware.oc.core.runtimeConfig.ts +41 -0
  35. package/src/pware.oc.core/pware.oc.core.sqlite.ts +164 -175
  36. package/src/pware.oc.core/pware.oc.core.sqliteGateway.ts +89 -0
  37. package/src/pware.oc.core/pware.oc.core.status.ts +214 -214
  38. package/src/pware.oc.core/pware.oc.core.timing.ts +63 -63
  39. package/src/pware.oc.core/pware.oc.core.width.ts +215 -215
  40. package/src/pware.oc.omo/constants/index.ts +15 -15
  41. package/src/pware.oc.omo/constants/pware.oc.omo.constants.backgroundTask.ts +18 -18
  42. package/src/pware.oc.omo/constants/pware.oc.omo.constants.boulderStatus.ts +49 -49
  43. package/src/pware.oc.omo/constants/pware.oc.omo.constants.docKind.ts +29 -29
  44. package/src/pware.oc.omo/constants/pware.oc.omo.constants.eventName.ts +11 -11
  45. package/src/pware.oc.omo/constants/pware.oc.omo.constants.planStatus.ts +60 -60
  46. package/src/pware.oc.omo/constants/pware.oc.omo.constants.reviewStatus.ts +49 -49
  47. package/src/pware.oc.omo/constants/pware.oc.omo.constants.startWork.ts +25 -25
  48. package/src/pware.oc.omo/constants/pware.oc.omo.constants.verdict.ts +38 -38
  49. package/src/pware.oc.omo/index.ts +7 -7
  50. package/src/pware.oc.omo/resolver/index.ts +19 -19
  51. package/src/pware.oc.omo/resolver/pware.oc.omo.resolver.approval.ts +179 -179
  52. package/src/pware.oc.omo/resolver/pware.oc.omo.resolver.approvalGroup.ts +116 -116
  53. package/src/pware.oc.omo/resolver/pware.oc.omo.resolver.approvalState.ts +34 -34
  54. package/src/pware.oc.omo/resolver/pware.oc.omo.resolver.boulder.ts +503 -503
  55. package/src/pware.oc.omo/resolver/pware.oc.omo.resolver.config.ts +40 -40
  56. package/src/pware.oc.omo/resolver/pware.oc.omo.resolver.doc.ts +269 -269
  57. package/src/pware.oc.omo/resolver/pware.oc.omo.resolver.draftFile.ts +18 -18
  58. package/src/pware.oc.omo/resolver/pware.oc.omo.resolver.notepadsFile.ts +18 -18
  59. package/src/pware.oc.omo/resolver/pware.oc.omo.resolver.plan.ts +155 -155
  60. package/src/pware.oc.omo/resolver/pware.oc.omo.resolver.planFile.ts +363 -361
  61. package/src/pware.oc.omo/resolver/pware.oc.omo.resolver.proofFile.ts +18 -18
  62. package/src/pware.oc.omo/resolver/pware.oc.omo.resolver.rulesFile.ts +11 -11
  63. package/src/pware.oc.omo/resolver/pware.oc.omo.resolver.runContinuationFile.ts +14 -14
  64. package/src/pware.oc.opencode/constants/index.ts +10 -10
  65. package/src/pware.oc.opencode/constants/pware.oc.opencode.constants.eventName.ts +15 -15
  66. package/src/pware.oc.opencode/constants/pware.oc.opencode.constants.fileTouch.ts +18 -18
  67. package/src/pware.oc.opencode/constants/pware.oc.opencode.constants.questionKind.ts +45 -45
  68. package/src/pware.oc.opencode/constants/pware.oc.opencode.constants.sessionStatus.ts +58 -58
  69. package/src/pware.oc.opencode/index.ts +8 -8
  70. package/src/pware.oc.opencode/pware.oc.opencode.events.ts +182 -182
  71. package/src/pware.oc.opencode/pware.oc.opencode.files.ts +399 -399
  72. package/src/pware.oc.opencode/resolver/index.ts +223 -170
  73. package/src/pware.oc.opencode/resolver/pware.oc.opencode.resolver.file.ts +150 -162
  74. package/src/pware.oc.opencode/resolver/pware.oc.opencode.resolver.question.ts +149 -185
  75. package/src/pware.oc.opencode/resolver/pware.oc.opencode.resolver.session.ts +248 -211
  76. package/src/pware.oc.opencode/resolver/pware.oc.opencode.resolver.todo.ts +22 -26
  77. package/src/pware.oc.opencode/resolver/pware.oc.opencode.resolver.tool.ts +224 -236
  78. package/src/pware.oc.perf/index.ts +14 -14
  79. package/src/pware.oc.perf/pware.oc.perf.asciichart.d.ts +15 -15
  80. package/src/pware.oc.perf/pware.oc.perf.charts.ts +284 -284
  81. package/src/pware.oc.perf/pware.oc.perf.reader.ts +962 -927
  82. package/src/pware.oc.perf/pware.oc.perf.realtime.ts +88 -88
  83. package/src/pware.oc.perf/pware.oc.perf.realtimeBlock.ts +118 -118
  84. package/src/pware.oc.perf/pware.oc.perf.realtimeCpuRam.ts +79 -79
  85. package/src/pware.oc.perf/pware.oc.perf.realtimeSampler.ts +71 -71
  86. package/src/pware.oc.perf/pware.oc.perf.realtimeTimeline.ts +214 -214
  87. package/src/pware.oc.perf/pware.oc.perf.self.ts +179 -179
  88. package/src/pware.oc.perf/pware.oc.perf.view.tsx +463 -462
  89. package/src/pware.oc.runtime/index.ts +13 -13
  90. package/src/pware.oc.runtime/pware.oc.runtime.monitor.ts +142 -142
  91. package/src/pware.oc.runtime/pware.oc.runtime.mywork-enrich.ts +87 -79
  92. package/src/pware.oc.runtime/pware.oc.runtime.mywork.ts +282 -253
  93. package/src/pware.oc.runtime/pware.oc.runtime.omoRead.ts +37 -0
  94. package/src/pware.oc.runtime/pware.oc.runtime.questions.ts +83 -95
  95. package/src/pware.oc.runtime/pware.oc.runtime.snapshotClient.ts +130 -129
  96. package/src/pware.oc.runtime/pware.oc.runtime.source.ts +105 -105
  97. package/src/pware.oc.runtime/pware.oc.runtime.worker.ts +44 -43
  98. package/src/pware.oc.runtime/resolver/index.ts +268 -224
  99. package/src/pware.oc.runtime/resolver/pware.oc.runtime.resolver.delegate.ts +146 -146
  100. package/src/pware.oc.ui/index.ts +12 -12
  101. package/src/pware.oc.ui/pware.oc.ui.chrome.tsx +381 -339
  102. package/src/pware.oc.ui/pware.oc.ui.glyphs.tsx +144 -144
  103. package/src/pware.oc.ui/pware.oc.ui.host.tsx +111 -111
  104. package/src/pware.oc.ui/pware.oc.ui.live.tsx +82 -82
  105. package/src/pware.oc.ui/pware.oc.ui.menudialogs.tsx +843 -843
  106. package/src/pware.oc.ui/pware.oc.ui.sections.tsx +552 -526
  107. package/src/pware.oc.ui/pware.oc.ui.sidebar.tsx +1718 -1629
  108. package/src/pware.oc.ui.tsx +98 -98
@@ -1,241 +1,241 @@
1
- /**
2
- * pware.oc.core.constants.eventtype
3
- *
4
- * OpenCode host event `type` strings (SDK `Event` union, `@opencode-ai/sdk`
5
- * dist/gen/types.gen.d.ts). The plugin only classifies a subset via
6
- * `includes()`/`endsWith()`, so this exports BOTH the full SDK literal set AND
7
- * the specific stream substrings the code matches on.
8
- */
9
-
10
- /** Event: a message's metadata changed. */
11
- export const EVENT_MESSAGE_UPDATED = "message.updated"
12
-
13
- /** Event: a message was removed. */
14
- export const EVENT_MESSAGE_REMOVED = "message.removed"
15
-
16
- /** Event: a part within a message was updated. */
17
- export const EVENT_MESSAGE_PART_UPDATED = "message.part.updated"
18
-
19
- /** Event: a part within a message was removed. */
20
- export const EVENT_MESSAGE_PART_REMOVED = "message.part.removed"
21
-
22
- /** Event: the session status changed. */
23
- export const EVENT_SESSION_STATUS = "session.status"
24
-
25
- /** Event: the session became idle. */
26
- export const EVENT_SESSION_IDLE = "session.idle"
27
-
28
- /** Event: a new session was created. */
29
- export const EVENT_SESSION_CREATED = "session.created"
30
-
31
- /** Event: session metadata changed. */
32
- export const EVENT_SESSION_UPDATED = "session.updated"
33
-
34
- /** Event: a session was deleted. */
35
- export const EVENT_SESSION_DELETED = "session.deleted"
36
-
37
- /** Event: the session diff changed. */
38
- export const EVENT_SESSION_DIFF = "session.diff"
39
-
40
- /** Event: the session was compacted. */
41
- export const EVENT_SESSION_COMPACTED = "session.compacted"
42
-
43
- /** Event: the session errored. */
44
- export const EVENT_SESSION_ERROR = "session.error"
45
-
46
- /** Event: a file was edited. */
47
- export const EVENT_FILE_EDITED = "file.edited"
48
-
49
- /** Event: the file watcher reported a change. */
50
- export const EVENT_FILE_WATCHER_UPDATED = "file.watcher.updated"
51
-
52
- /** Event: a todo changed. */
53
- export const EVENT_TODO_UPDATED = "todo.updated"
54
-
55
- /** Event: a permission was requested or changed. */
56
- export const EVENT_PERMISSION_UPDATED = "permission.updated"
57
-
58
- /** Event: the user replied to a permission request. */
59
- export const EVENT_PERMISSION_REPLIED = "permission.replied"
60
-
61
- /** Event: a command was executed. */
62
- export const EVENT_COMMAND_EXECUTED = "command.executed"
63
-
64
- /** Event: a PTY was created. */
65
- export const EVENT_PTY_CREATED = "pty.created"
66
-
67
- /** Event: a PTY was updated. */
68
- export const EVENT_PTY_UPDATED = "pty.updated"
69
-
70
- /** Event: a PTY was deleted. */
71
- export const EVENT_PTY_DELETED = "pty.deleted"
72
-
73
- /** Event: a PTY exited. */
74
- export const EVENT_PTY_EXITED = "pty.exited"
75
-
76
- /** Event: an LSP server changed state. */
77
- export const EVENT_LSP_UPDATED = "lsp.updated"
78
-
79
- /** Event: LSP client diagnostics arrived. */
80
- export const EVENT_LSP_CLIENT_DIAGNOSTICS = "lsp.client.diagnostics"
81
-
82
- /** Event: installation state changed. */
83
- export const EVENT_INSTALLATION_UPDATED = "installation.updated"
84
-
85
- /** Event: an installation update is available. */
86
- export const EVENT_INSTALLATION_UPDATE_AVAILABLE = "installation.update.available"
87
-
88
- /** Event: a server connected. */
89
- export const EVENT_SERVER_CONNECTED = "server.connected"
90
-
91
- /** Event: a server instance was disposed. */
92
- export const EVENT_SERVER_INSTANCE_DISPOSED = "server.instance.disposed"
93
-
94
- /** Event: the VCS branch changed. */
95
- export const EVENT_VCS_BRANCH_UPDATED = "vcs.branch.updated"
96
-
97
- /** Event: the TUI appended text to the prompt. */
98
- export const EVENT_TUI_PROMPT_APPEND = "tui.prompt.append"
99
-
100
- /** Event: the TUI executed a command. */
101
- export const EVENT_TUI_COMMAND_EXECUTE = "tui.command.execute"
102
-
103
- /** Event: the TUI showed a toast. */
104
- export const EVENT_TUI_TOAST_SHOW = "tui.toast.show"
105
-
106
- // Stream events below come from OpenCode's live stream (delta/step/tool), not
107
- // the SDK `Event` union — the plugin matches them by substring in events.ts.
108
-
109
- /** Stream event: a text delta token streamed in. */
110
- export const EVENT_TEXT_DELTA = "text.delta"
111
-
112
- /** Stream event: a reasoning delta token streamed in. */
113
- export const EVENT_REASONING_DELTA = "reasoning.delta"
114
-
115
- /** Stream event: a generic part delta streamed in. */
116
- export const EVENT_PART_DELTA = "part.delta"
117
-
118
- /** Stream event: a step started. */
119
- export const EVENT_STEP_STARTED = "step.started"
120
-
121
- /** Stream event: a step ended. */
122
- export const EVENT_STEP_ENDED = "step.ended"
123
-
124
- /** Stream event: a step failed. */
125
- export const EVENT_STEP_FAILED = "step.failed"
126
-
127
- /** Stream event: a tool was called. */
128
- export const EVENT_TOOL_CALLED = "tool.called"
129
-
130
- /** Stream event: a tool call succeeded. */
131
- export const EVENT_TOOL_SUCCESS = "tool.success"
132
-
133
- /** Stream event: a tool call failed. */
134
- export const EVENT_TOOL_FAILED = "tool.failed"
135
-
136
- /** Stream event: a tool call ended. */
137
- export const EVENT_TOOL_ENDED = "tool.ended"
138
-
139
- /** Stream event: text streaming started. */
140
- export const EVENT_TEXT_STARTED = "text.started"
141
-
142
- /** Stream event: reasoning streaming started. */
143
- export const EVENT_REASONING_STARTED = "reasoning.started"
144
-
145
- export const EVENT_SESSION_NEXT_STEP_STARTED = "session.next.step.started"
146
-
147
- export const EVENT_SESSION_NEXT_STEP_ENDED = "session.next.step.ended"
148
-
149
- export const EVENT_SESSION_NEXT_STEP_FAILED = "session.next.step.failed"
150
-
151
- export const EVENT_SESSION_NEXT_TEXT_STARTED = "session.next.text.started"
152
-
153
- export const EVENT_SESSION_NEXT_TEXT_DELTA = "session.next.text.delta"
154
-
155
- export const EVENT_SESSION_NEXT_REASONING_STARTED = "session.next.reasoning.started"
156
-
157
- export const EVENT_SESSION_NEXT_REASONING_DELTA = "session.next.reasoning.delta"
158
-
159
- export const EVENT_SESSION_NEXT_TOOL_CALLED = "session.next.tool.called"
160
-
161
- export const EVENT_SESSION_NEXT_TOOL_SUCCESS = "session.next.tool.success"
162
-
163
- export const EVENT_SESSION_NEXT_TOOL_FAILED = "session.next.tool.failed"
164
-
165
- export const EVENT_TUI_SESSION_SELECT = "tui.session.select"
166
-
167
- /** Every OpenCode host event type the plugin recognizes: SDK set first, then stream events. */
168
- export const EVENT_TYPES = [
169
- EVENT_MESSAGE_UPDATED,
170
- EVENT_MESSAGE_REMOVED,
171
- EVENT_MESSAGE_PART_UPDATED,
172
- EVENT_MESSAGE_PART_REMOVED,
173
- EVENT_SESSION_STATUS,
174
- EVENT_SESSION_IDLE,
175
- EVENT_SESSION_CREATED,
176
- EVENT_SESSION_UPDATED,
177
- EVENT_SESSION_DELETED,
178
- EVENT_SESSION_DIFF,
179
- EVENT_SESSION_COMPACTED,
180
- EVENT_SESSION_ERROR,
181
- EVENT_FILE_EDITED,
182
- EVENT_FILE_WATCHER_UPDATED,
183
- EVENT_TODO_UPDATED,
184
- EVENT_PERMISSION_UPDATED,
185
- EVENT_PERMISSION_REPLIED,
186
- EVENT_COMMAND_EXECUTED,
187
- EVENT_PTY_CREATED,
188
- EVENT_PTY_UPDATED,
189
- EVENT_PTY_DELETED,
190
- EVENT_PTY_EXITED,
191
- EVENT_LSP_UPDATED,
192
- EVENT_LSP_CLIENT_DIAGNOSTICS,
193
- EVENT_INSTALLATION_UPDATED,
194
- EVENT_INSTALLATION_UPDATE_AVAILABLE,
195
- EVENT_SERVER_CONNECTED,
196
- EVENT_SERVER_INSTANCE_DISPOSED,
197
- EVENT_VCS_BRANCH_UPDATED,
198
- EVENT_TUI_PROMPT_APPEND,
199
- EVENT_TUI_COMMAND_EXECUTE,
200
- EVENT_TUI_TOAST_SHOW,
201
- EVENT_TEXT_DELTA,
202
- EVENT_REASONING_DELTA,
203
- EVENT_PART_DELTA,
204
- EVENT_STEP_STARTED,
205
- EVENT_STEP_ENDED,
206
- EVENT_STEP_FAILED,
207
- EVENT_TOOL_CALLED,
208
- EVENT_TOOL_SUCCESS,
209
- EVENT_TOOL_FAILED,
210
- EVENT_TOOL_ENDED,
211
- EVENT_TEXT_STARTED,
212
- EVENT_REASONING_STARTED,
213
- ] as const
214
-
215
- export const PANEL_HOST_TYPES = [
216
- EVENT_MESSAGE_UPDATED,
217
- EVENT_MESSAGE_PART_UPDATED,
218
- "message.part.delta",
219
- EVENT_SESSION_STATUS,
220
- EVENT_SESSION_IDLE,
221
- EVENT_SESSION_CREATED,
222
- EVENT_SESSION_UPDATED,
223
- EVENT_SESSION_NEXT_STEP_STARTED,
224
- EVENT_SESSION_NEXT_STEP_ENDED,
225
- EVENT_SESSION_NEXT_STEP_FAILED,
226
- EVENT_SESSION_NEXT_TEXT_STARTED,
227
- EVENT_SESSION_NEXT_TEXT_DELTA,
228
- EVENT_SESSION_NEXT_REASONING_STARTED,
229
- EVENT_SESSION_NEXT_REASONING_DELTA,
230
- EVENT_SESSION_NEXT_TOOL_CALLED,
231
- EVENT_SESSION_NEXT_TOOL_SUCCESS,
232
- EVENT_SESSION_NEXT_TOOL_FAILED,
233
- EVENT_SESSION_DIFF,
234
- EVENT_FILE_EDITED,
235
- EVENT_TUI_SESSION_SELECT,
236
- ] as const
237
-
238
- export type PanelHostType = (typeof PANEL_HOST_TYPES)[number]
239
-
240
- /** A single OpenCode host event `type` value. */
241
- export type EventType = (typeof EVENT_TYPES)[number]
1
+ /**
2
+ * pware.oc.core.constants.eventtype
3
+ *
4
+ * OpenCode host event `type` strings (SDK `Event` union, `@opencode-ai/sdk`
5
+ * dist/gen/types.gen.d.ts). The plugin only classifies a subset via
6
+ * `includes()`/`endsWith()`, so this exports BOTH the full SDK literal set AND
7
+ * the specific stream substrings the code matches on.
8
+ */
9
+
10
+ /** Event: a message's metadata changed. */
11
+ export const EVENT_MESSAGE_UPDATED = "message.updated"
12
+
13
+ /** Event: a message was removed. */
14
+ export const EVENT_MESSAGE_REMOVED = "message.removed"
15
+
16
+ /** Event: a part within a message was updated. */
17
+ export const EVENT_MESSAGE_PART_UPDATED = "message.part.updated"
18
+
19
+ /** Event: a part within a message was removed. */
20
+ export const EVENT_MESSAGE_PART_REMOVED = "message.part.removed"
21
+
22
+ /** Event: the session status changed. */
23
+ export const EVENT_SESSION_STATUS = "session.status"
24
+
25
+ /** Event: the session became idle. */
26
+ export const EVENT_SESSION_IDLE = "session.idle"
27
+
28
+ /** Event: a new session was created. */
29
+ export const EVENT_SESSION_CREATED = "session.created"
30
+
31
+ /** Event: session metadata changed. */
32
+ export const EVENT_SESSION_UPDATED = "session.updated"
33
+
34
+ /** Event: a session was deleted. */
35
+ export const EVENT_SESSION_DELETED = "session.deleted"
36
+
37
+ /** Event: the session diff changed. */
38
+ export const EVENT_SESSION_DIFF = "session.diff"
39
+
40
+ /** Event: the session was compacted. */
41
+ export const EVENT_SESSION_COMPACTED = "session.compacted"
42
+
43
+ /** Event: the session errored. */
44
+ export const EVENT_SESSION_ERROR = "session.error"
45
+
46
+ /** Event: a file was edited. */
47
+ export const EVENT_FILE_EDITED = "file.edited"
48
+
49
+ /** Event: the file watcher reported a change. */
50
+ export const EVENT_FILE_WATCHER_UPDATED = "file.watcher.updated"
51
+
52
+ /** Event: a todo changed. */
53
+ export const EVENT_TODO_UPDATED = "todo.updated"
54
+
55
+ /** Event: a permission was requested or changed. */
56
+ export const EVENT_PERMISSION_UPDATED = "permission.updated"
57
+
58
+ /** Event: the user replied to a permission request. */
59
+ export const EVENT_PERMISSION_REPLIED = "permission.replied"
60
+
61
+ /** Event: a command was executed. */
62
+ export const EVENT_COMMAND_EXECUTED = "command.executed"
63
+
64
+ /** Event: a PTY was created. */
65
+ export const EVENT_PTY_CREATED = "pty.created"
66
+
67
+ /** Event: a PTY was updated. */
68
+ export const EVENT_PTY_UPDATED = "pty.updated"
69
+
70
+ /** Event: a PTY was deleted. */
71
+ export const EVENT_PTY_DELETED = "pty.deleted"
72
+
73
+ /** Event: a PTY exited. */
74
+ export const EVENT_PTY_EXITED = "pty.exited"
75
+
76
+ /** Event: an LSP server changed state. */
77
+ export const EVENT_LSP_UPDATED = "lsp.updated"
78
+
79
+ /** Event: LSP client diagnostics arrived. */
80
+ export const EVENT_LSP_CLIENT_DIAGNOSTICS = "lsp.client.diagnostics"
81
+
82
+ /** Event: installation state changed. */
83
+ export const EVENT_INSTALLATION_UPDATED = "installation.updated"
84
+
85
+ /** Event: an installation update is available. */
86
+ export const EVENT_INSTALLATION_UPDATE_AVAILABLE = "installation.update.available"
87
+
88
+ /** Event: a server connected. */
89
+ export const EVENT_SERVER_CONNECTED = "server.connected"
90
+
91
+ /** Event: a server instance was disposed. */
92
+ export const EVENT_SERVER_INSTANCE_DISPOSED = "server.instance.disposed"
93
+
94
+ /** Event: the VCS branch changed. */
95
+ export const EVENT_VCS_BRANCH_UPDATED = "vcs.branch.updated"
96
+
97
+ /** Event: the TUI appended text to the prompt. */
98
+ export const EVENT_TUI_PROMPT_APPEND = "tui.prompt.append"
99
+
100
+ /** Event: the TUI executed a command. */
101
+ export const EVENT_TUI_COMMAND_EXECUTE = "tui.command.execute"
102
+
103
+ /** Event: the TUI showed a toast. */
104
+ export const EVENT_TUI_TOAST_SHOW = "tui.toast.show"
105
+
106
+ // Stream events below come from OpenCode's live stream (delta/step/tool), not
107
+ // the SDK `Event` union — the plugin matches them by substring in events.ts.
108
+
109
+ /** Stream event: a text delta token streamed in. */
110
+ export const EVENT_TEXT_DELTA = "text.delta"
111
+
112
+ /** Stream event: a reasoning delta token streamed in. */
113
+ export const EVENT_REASONING_DELTA = "reasoning.delta"
114
+
115
+ /** Stream event: a generic part delta streamed in. */
116
+ export const EVENT_PART_DELTA = "part.delta"
117
+
118
+ /** Stream event: a step started. */
119
+ export const EVENT_STEP_STARTED = "step.started"
120
+
121
+ /** Stream event: a step ended. */
122
+ export const EVENT_STEP_ENDED = "step.ended"
123
+
124
+ /** Stream event: a step failed. */
125
+ export const EVENT_STEP_FAILED = "step.failed"
126
+
127
+ /** Stream event: a tool was called. */
128
+ export const EVENT_TOOL_CALLED = "tool.called"
129
+
130
+ /** Stream event: a tool call succeeded. */
131
+ export const EVENT_TOOL_SUCCESS = "tool.success"
132
+
133
+ /** Stream event: a tool call failed. */
134
+ export const EVENT_TOOL_FAILED = "tool.failed"
135
+
136
+ /** Stream event: a tool call ended. */
137
+ export const EVENT_TOOL_ENDED = "tool.ended"
138
+
139
+ /** Stream event: text streaming started. */
140
+ export const EVENT_TEXT_STARTED = "text.started"
141
+
142
+ /** Stream event: reasoning streaming started. */
143
+ export const EVENT_REASONING_STARTED = "reasoning.started"
144
+
145
+ export const EVENT_SESSION_NEXT_STEP_STARTED = "session.next.step.started"
146
+
147
+ export const EVENT_SESSION_NEXT_STEP_ENDED = "session.next.step.ended"
148
+
149
+ export const EVENT_SESSION_NEXT_STEP_FAILED = "session.next.step.failed"
150
+
151
+ export const EVENT_SESSION_NEXT_TEXT_STARTED = "session.next.text.started"
152
+
153
+ export const EVENT_SESSION_NEXT_TEXT_DELTA = "session.next.text.delta"
154
+
155
+ export const EVENT_SESSION_NEXT_REASONING_STARTED = "session.next.reasoning.started"
156
+
157
+ export const EVENT_SESSION_NEXT_REASONING_DELTA = "session.next.reasoning.delta"
158
+
159
+ export const EVENT_SESSION_NEXT_TOOL_CALLED = "session.next.tool.called"
160
+
161
+ export const EVENT_SESSION_NEXT_TOOL_SUCCESS = "session.next.tool.success"
162
+
163
+ export const EVENT_SESSION_NEXT_TOOL_FAILED = "session.next.tool.failed"
164
+
165
+ export const EVENT_TUI_SESSION_SELECT = "tui.session.select"
166
+
167
+ /** Every OpenCode host event type the plugin recognizes: SDK set first, then stream events. */
168
+ export const EVENT_TYPES = [
169
+ EVENT_MESSAGE_UPDATED,
170
+ EVENT_MESSAGE_REMOVED,
171
+ EVENT_MESSAGE_PART_UPDATED,
172
+ EVENT_MESSAGE_PART_REMOVED,
173
+ EVENT_SESSION_STATUS,
174
+ EVENT_SESSION_IDLE,
175
+ EVENT_SESSION_CREATED,
176
+ EVENT_SESSION_UPDATED,
177
+ EVENT_SESSION_DELETED,
178
+ EVENT_SESSION_DIFF,
179
+ EVENT_SESSION_COMPACTED,
180
+ EVENT_SESSION_ERROR,
181
+ EVENT_FILE_EDITED,
182
+ EVENT_FILE_WATCHER_UPDATED,
183
+ EVENT_TODO_UPDATED,
184
+ EVENT_PERMISSION_UPDATED,
185
+ EVENT_PERMISSION_REPLIED,
186
+ EVENT_COMMAND_EXECUTED,
187
+ EVENT_PTY_CREATED,
188
+ EVENT_PTY_UPDATED,
189
+ EVENT_PTY_DELETED,
190
+ EVENT_PTY_EXITED,
191
+ EVENT_LSP_UPDATED,
192
+ EVENT_LSP_CLIENT_DIAGNOSTICS,
193
+ EVENT_INSTALLATION_UPDATED,
194
+ EVENT_INSTALLATION_UPDATE_AVAILABLE,
195
+ EVENT_SERVER_CONNECTED,
196
+ EVENT_SERVER_INSTANCE_DISPOSED,
197
+ EVENT_VCS_BRANCH_UPDATED,
198
+ EVENT_TUI_PROMPT_APPEND,
199
+ EVENT_TUI_COMMAND_EXECUTE,
200
+ EVENT_TUI_TOAST_SHOW,
201
+ EVENT_TEXT_DELTA,
202
+ EVENT_REASONING_DELTA,
203
+ EVENT_PART_DELTA,
204
+ EVENT_STEP_STARTED,
205
+ EVENT_STEP_ENDED,
206
+ EVENT_STEP_FAILED,
207
+ EVENT_TOOL_CALLED,
208
+ EVENT_TOOL_SUCCESS,
209
+ EVENT_TOOL_FAILED,
210
+ EVENT_TOOL_ENDED,
211
+ EVENT_TEXT_STARTED,
212
+ EVENT_REASONING_STARTED,
213
+ ] as const
214
+
215
+ export const PANEL_HOST_TYPES = [
216
+ EVENT_MESSAGE_UPDATED,
217
+ EVENT_MESSAGE_PART_UPDATED,
218
+ "message.part.delta",
219
+ EVENT_SESSION_STATUS,
220
+ EVENT_SESSION_IDLE,
221
+ EVENT_SESSION_CREATED,
222
+ EVENT_SESSION_UPDATED,
223
+ EVENT_SESSION_NEXT_STEP_STARTED,
224
+ EVENT_SESSION_NEXT_STEP_ENDED,
225
+ EVENT_SESSION_NEXT_STEP_FAILED,
226
+ EVENT_SESSION_NEXT_TEXT_STARTED,
227
+ EVENT_SESSION_NEXT_TEXT_DELTA,
228
+ EVENT_SESSION_NEXT_REASONING_STARTED,
229
+ EVENT_SESSION_NEXT_REASONING_DELTA,
230
+ EVENT_SESSION_NEXT_TOOL_CALLED,
231
+ EVENT_SESSION_NEXT_TOOL_SUCCESS,
232
+ EVENT_SESSION_NEXT_TOOL_FAILED,
233
+ EVENT_SESSION_DIFF,
234
+ EVENT_FILE_EDITED,
235
+ EVENT_TUI_SESSION_SELECT,
236
+ ] as const
237
+
238
+ export type PanelHostType = (typeof PANEL_HOST_TYPES)[number]
239
+
240
+ /** A single OpenCode host event `type` value. */
241
+ export type EventType = (typeof EVENT_TYPES)[number]
@@ -1,55 +1,55 @@
1
- /**
2
- * pware.oc.core.constants.mywork
3
- *
4
- * The "My work" queue's own grouping vocabulary. A plan lands in one of these
5
- * groups from its OMO status plus whether it is still a draft;
6
- * `pware.oc.runtime/pware.oc.runtime.mywork.ts` is the only place that
7
- * decides the group.
8
- */
9
-
10
- /**
11
- * My work group: sessions the user pinned to the top of the queue. Empty for
12
- * now the pin affordance is a placeholder until the backend is wired.
13
- */
14
- export const MY_WORK_GROUP_PINNED = "pinned"
15
-
16
- /** My work group: a draft still being written — preview it, nothing to sign yet. */
17
- export const MY_WORK_GROUP_DRAFTING = "drafting"
18
-
19
- /** My work group: written and waiting for the user's review (sign-off). */
20
- export const MY_WORK_GROUP_READY_REVIEW = "ready-to-review"
21
-
22
- /** My work group: approved and ready for the user to start work. */
23
- export const MY_WORK_GROUP_READY_START = "ready-to-start"
24
-
25
- /** My work group: done — a follow-up only if something remains. */
26
- export const MY_WORK_GROUP_FINISHED = "finished"
27
- export const MY_WORK_GROUP_DISMISSED = "dismissed"
28
-
29
- /**
30
- * My work group: draft documents that no action group covers — a draft file
31
- * whose status is approved/done (superseded), unknown, or absent. Listed for
32
- * browsing (preview), never for an action.
33
- */
34
- export const MY_WORK_GROUP_DRAFT_DOCS = "draft-docs"
35
-
36
- /**
37
- * My work group: plan documents that no action group covers — a `.omo/plans/`
38
- * file whose status is unknown or absent. Listed for browsing (preview), never
39
- * for an action.
40
- */
41
- export const MY_WORK_GROUP_PLANS = "plans"
42
-
43
- /** My work group: the project's recent sessions — jump straight back into any of them. */
44
- export const MY_WORK_GROUP_SESSIONS = "sessions"
45
-
46
- /** Every "My work" approval group. */
47
- export const MY_WORK_GROUPS = [
48
- MY_WORK_GROUP_READY_REVIEW,
49
- MY_WORK_GROUP_READY_START,
50
- MY_WORK_GROUP_FINISHED,
51
- MY_WORK_GROUP_DRAFTING,
52
- ] as const
53
-
54
- /** A "My work" approval group. */
55
- export type ApprovalGroupKind = (typeof MY_WORK_GROUPS)[number]
1
+ /**
2
+ * pware.oc.core.constants.mywork
3
+ *
4
+ * The "My work" queue's own grouping vocabulary. A plan lands in one of these
5
+ * groups from its OMO status plus whether it is still a draft;
6
+ * `pware.oc.runtime/pware.oc.runtime.mywork.ts` is the only place that
7
+ * decides the group.
8
+ */
9
+
10
+ /**
11
+ * My work group: sessions the user pinned to the top of the queue (`P` / `U`).
12
+ * Pins persist in kv `oes.config` via `pinSession` / `unpinSession`.
13
+ */
14
+ export const MY_WORK_GROUP_PINNED = "pinned"
15
+
16
+ /** My work group: a draft still being written — preview it, nothing to sign yet. */
17
+ export const MY_WORK_GROUP_DRAFTING = "drafting"
18
+
19
+ /** My work group: written and waiting for the user's review (sign-off). */
20
+ export const MY_WORK_GROUP_READY_REVIEW = "ready-to-review"
21
+
22
+ /** My work group: approved and ready for the user to start work. */
23
+ export const MY_WORK_GROUP_READY_START = "ready-to-start"
24
+
25
+ /** My work group: done — a follow-up only if something remains. */
26
+ export const MY_WORK_GROUP_FINISHED = "finished"
27
+ export const MY_WORK_GROUP_DISMISSED = "dismissed"
28
+
29
+ /**
30
+ * My work group: draft documents that no action group covers — a draft file
31
+ * whose status is approved/done (superseded), unknown, or absent. Listed for
32
+ * browsing (preview), never for an action.
33
+ */
34
+ export const MY_WORK_GROUP_DRAFT_DOCS = "draft-docs"
35
+
36
+ /**
37
+ * My work group: plan documents that no action group covers — a `.omo/plans/`
38
+ * file whose status is unknown or absent. Listed for browsing (preview), never
39
+ * for an action.
40
+ */
41
+ export const MY_WORK_GROUP_PLANS = "plans"
42
+
43
+ /** My work group: the project's recent sessions — jump straight back into any of them. */
44
+ export const MY_WORK_GROUP_SESSIONS = "sessions"
45
+
46
+ /** Every "My work" approval group. */
47
+ export const MY_WORK_GROUPS = [
48
+ MY_WORK_GROUP_READY_REVIEW,
49
+ MY_WORK_GROUP_READY_START,
50
+ MY_WORK_GROUP_FINISHED,
51
+ MY_WORK_GROUP_DRAFTING,
52
+ ] as const
53
+
54
+ /** A "My work" approval group. */
55
+ export type ApprovalGroupKind = (typeof MY_WORK_GROUPS)[number]