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,65 +1,65 @@
1
- /**
2
- * pware.oc.core.constants.parttype
3
- *
4
- * OpenCode `part.data.type` values from the SDK `Part` union
5
- * (`@opencode-ai/sdk` types.gen.d.ts): TextPart "text", ReasoningPart
6
- * "reasoning", ToolPart "tool", StepStartPart "step-start", StepFinishPart
7
- * "step-finish", SnapshotPart "snapshot", PatchPart "patch", AgentPart "agent",
8
- * subtask "subtask", RetryPart "retry", CompactionPart "compaction",
9
- * FilePart "file".
10
- */
11
-
12
- /** Part.data.type for a model text response. */
13
- export const PART_TYPE_TEXT = "text"
14
-
15
- /** Part.data.type for a model reasoning/thinking step. */
16
- export const PART_TYPE_REASONING = "reasoning"
17
-
18
- /** Part.data.type for a tool invocation. */
19
- export const PART_TYPE_TOOL = "tool"
20
-
21
- /** Part.data.type for a step-start marker. */
22
- export const PART_TYPE_STEP_START = "step-start"
23
-
24
- /** Part.data.type for a step-finish marker. */
25
- export const PART_TYPE_STEP_FINISH = "step-finish"
26
-
27
- /** Part.data.type for a snapshot of the session state. */
28
- export const PART_TYPE_SNAPSHOT = "snapshot"
29
-
30
- /** Part.data.type for a unified diff patch. */
31
- export const PART_TYPE_PATCH = "patch"
32
-
33
- /** Part.data.type for an agent boundary marker. */
34
- export const PART_TYPE_AGENT = "agent"
35
-
36
- /** Part.data.type for a subtask boundary marker. */
37
- export const PART_TYPE_SUBTASK = "subtask"
38
-
39
- /** Part.data.type for a retry marker. */
40
- export const PART_TYPE_RETRY = "retry"
41
-
42
- /** Part.data.type for a compaction marker. */
43
- export const PART_TYPE_COMPACTION = "compaction"
44
-
45
- /** Part.data.type for a file artifact. */
46
- export const PART_TYPE_FILE = "file"
47
-
48
- /** Every SDK `Part` data type the plugin recognizes. */
49
- export const PART_TYPES = [
50
- PART_TYPE_TEXT,
51
- PART_TYPE_REASONING,
52
- PART_TYPE_TOOL,
53
- PART_TYPE_STEP_START,
54
- PART_TYPE_STEP_FINISH,
55
- PART_TYPE_SNAPSHOT,
56
- PART_TYPE_PATCH,
57
- PART_TYPE_AGENT,
58
- PART_TYPE_SUBTASK,
59
- PART_TYPE_RETRY,
60
- PART_TYPE_COMPACTION,
61
- PART_TYPE_FILE,
62
- ] as const
63
-
64
- /** A single OpenCode `part.data.type` value. */
65
- export type PartType = (typeof PART_TYPES)[number]
1
+ /**
2
+ * pware.oc.core.constants.parttype
3
+ *
4
+ * OpenCode `part.data.type` values from the SDK `Part` union
5
+ * (`@opencode-ai/sdk` types.gen.d.ts): TextPart "text", ReasoningPart
6
+ * "reasoning", ToolPart "tool", StepStartPart "step-start", StepFinishPart
7
+ * "step-finish", SnapshotPart "snapshot", PatchPart "patch", AgentPart "agent",
8
+ * subtask "subtask", RetryPart "retry", CompactionPart "compaction",
9
+ * FilePart "file".
10
+ */
11
+
12
+ /** Part.data.type for a model text response. */
13
+ export const PART_TYPE_TEXT = "text"
14
+
15
+ /** Part.data.type for a model reasoning/thinking step. */
16
+ export const PART_TYPE_REASONING = "reasoning"
17
+
18
+ /** Part.data.type for a tool invocation. */
19
+ export const PART_TYPE_TOOL = "tool"
20
+
21
+ /** Part.data.type for a step-start marker. */
22
+ export const PART_TYPE_STEP_START = "step-start"
23
+
24
+ /** Part.data.type for a step-finish marker. */
25
+ export const PART_TYPE_STEP_FINISH = "step-finish"
26
+
27
+ /** Part.data.type for a snapshot of the session state. */
28
+ export const PART_TYPE_SNAPSHOT = "snapshot"
29
+
30
+ /** Part.data.type for a unified diff patch. */
31
+ export const PART_TYPE_PATCH = "patch"
32
+
33
+ /** Part.data.type for an agent boundary marker. */
34
+ export const PART_TYPE_AGENT = "agent"
35
+
36
+ /** Part.data.type for a subtask boundary marker. */
37
+ export const PART_TYPE_SUBTASK = "subtask"
38
+
39
+ /** Part.data.type for a retry marker. */
40
+ export const PART_TYPE_RETRY = "retry"
41
+
42
+ /** Part.data.type for a compaction marker. */
43
+ export const PART_TYPE_COMPACTION = "compaction"
44
+
45
+ /** Part.data.type for a file artifact. */
46
+ export const PART_TYPE_FILE = "file"
47
+
48
+ /** Every SDK `Part` data type the plugin recognizes. */
49
+ export const PART_TYPES = [
50
+ PART_TYPE_TEXT,
51
+ PART_TYPE_REASONING,
52
+ PART_TYPE_TOOL,
53
+ PART_TYPE_STEP_START,
54
+ PART_TYPE_STEP_FINISH,
55
+ PART_TYPE_SNAPSHOT,
56
+ PART_TYPE_PATCH,
57
+ PART_TYPE_AGENT,
58
+ PART_TYPE_SUBTASK,
59
+ PART_TYPE_RETRY,
60
+ PART_TYPE_COMPACTION,
61
+ PART_TYPE_FILE,
62
+ ] as const
63
+
64
+ /** A single OpenCode `part.data.type` value. */
65
+ export type PartType = (typeof PART_TYPES)[number]
@@ -1,58 +1,58 @@
1
- /**
2
- * pware.oc.core.constants.phase
3
- *
4
- * The plugin's own timing vocabulary: Perf phases of the wall clock, the Perf
5
- * log kinds, and the self-cost phases. Pure measurement labels — the Perf tab
6
- * (`pware.oc.perf`) renders them, nothing else decides what a phase is.
7
- */
8
-
9
- /** Perf phase: waiting on the model. */
10
- export const PERF_PHASE_WAIT = "wait"
11
-
12
- /** Perf phase: the model was reasoning/thinking. */
13
- export const PERF_PHASE_THINK = "think"
14
-
15
- /** Perf phase: tokens were streaming in. */
16
- export const PERF_PHASE_RECV = "recv"
17
-
18
- /** Perf phase: a tool call was in flight. */
19
- export const PERF_PHASE_TOOL = "tool"
20
-
21
- /** Perf phase: a quiet gap between turns. */
22
- export const PERF_PHASE_IDLE = "idle"
23
-
24
- /** Every Perf phase of the wall clock. */
25
- export const PERF_PHASES = [
26
- PERF_PHASE_WAIT,
27
- PERF_PHASE_THINK,
28
- PERF_PHASE_RECV,
29
- PERF_PHASE_TOOL,
30
- PERF_PHASE_IDLE,
31
- ] as const
32
-
33
- /** A Perf phase of the wall clock. */
34
- export type PerfPhase = (typeof PERF_PHASES)[number]
35
-
36
- /** Perf log kind: the model-summary table. */
37
- export const PERF_LOG_KIND_MODELS = "models"
38
-
39
- /** Perf log kind: the chronological timeline. */
40
- export const PERF_LOG_KIND_TIME = "time"
41
-
42
- /** A Perf log section kind: a phase, the model table, or the timeline. */
43
- export type PerfLogKind = PerfPhase | typeof PERF_LOG_KIND_MODELS | typeof PERF_LOG_KIND_TIME
44
-
45
- /** Self-cost phase: a host event handler. */
46
- export const SELF_PHASE_EVENT = "event"
47
-
48
- /** Self-cost phase: a scan (fingerprint + snapshot). */
49
- export const SELF_PHASE_SCAN = "scan"
50
-
51
- /** Self-cost phase: a TUI tick. */
52
- export const SELF_PHASE_TICK = "tick"
53
-
54
- /** Every self-cost phase. */
55
- export const SELF_PHASES = [SELF_PHASE_EVENT, SELF_PHASE_SCAN, SELF_PHASE_TICK] as const
56
-
57
- /** A self-cost phase. */
58
- export type SelfPhase = (typeof SELF_PHASES)[number]
1
+ /**
2
+ * pware.oc.core.constants.phase
3
+ *
4
+ * The plugin's own timing vocabulary: Perf phases of the wall clock, the Perf
5
+ * log kinds, and the self-cost phases. Pure measurement labels — the Perf tab
6
+ * (`pware.oc.perf`) renders them, nothing else decides what a phase is.
7
+ */
8
+
9
+ /** Perf phase: waiting on the model. */
10
+ export const PERF_PHASE_WAIT = "wait"
11
+
12
+ /** Perf phase: the model was reasoning/thinking. */
13
+ export const PERF_PHASE_THINK = "think"
14
+
15
+ /** Perf phase: tokens were streaming in. */
16
+ export const PERF_PHASE_RECV = "recv"
17
+
18
+ /** Perf phase: a tool call was in flight. */
19
+ export const PERF_PHASE_TOOL = "tool"
20
+
21
+ /** Perf phase: a quiet gap between turns. */
22
+ export const PERF_PHASE_IDLE = "idle"
23
+
24
+ /** Every Perf phase of the wall clock. */
25
+ export const PERF_PHASES = [
26
+ PERF_PHASE_WAIT,
27
+ PERF_PHASE_THINK,
28
+ PERF_PHASE_RECV,
29
+ PERF_PHASE_TOOL,
30
+ PERF_PHASE_IDLE,
31
+ ] as const
32
+
33
+ /** A Perf phase of the wall clock. */
34
+ export type PerfPhase = (typeof PERF_PHASES)[number]
35
+
36
+ /** Perf log kind: the model-summary table. */
37
+ export const PERF_LOG_KIND_MODELS = "models"
38
+
39
+ /** Perf log kind: the chronological timeline. */
40
+ export const PERF_LOG_KIND_TIME = "time"
41
+
42
+ /** A Perf log section kind: a phase, the model table, or the timeline. */
43
+ export type PerfLogKind = PerfPhase | typeof PERF_LOG_KIND_MODELS | typeof PERF_LOG_KIND_TIME
44
+
45
+ /** Self-cost phase: a host event handler. */
46
+ export const SELF_PHASE_EVENT = "event"
47
+
48
+ /** Self-cost phase: a scan (fingerprint + snapshot). */
49
+ export const SELF_PHASE_SCAN = "scan"
50
+
51
+ /** Self-cost phase: a TUI tick. */
52
+ export const SELF_PHASE_TICK = "tick"
53
+
54
+ /** Every self-cost phase. */
55
+ export const SELF_PHASES = [SELF_PHASE_EVENT, SELF_PHASE_SCAN, SELF_PHASE_TICK] as const
56
+
57
+ /** A self-cost phase. */
58
+ export type SelfPhase = (typeof SELF_PHASES)[number]
@@ -1,63 +1,63 @@
1
- /**
2
- * pware.oc.core.constants.pulse
3
- *
4
- * The plugin's own pulse / flow / mark vocabulary: how fresh a row is, which
5
- * way the agent is streaming, and the combined visual mark the panel colors.
6
- * These are ours — OpenCode never emits them; `pware.oc.core.pulse.ts`
7
- * derives them from stamps and events.
8
- */
9
- import { STATUS_ARCHIVED, STATUS_ERROR } from "./pware.oc.core.constants.status.js"
10
-
11
- /** Pulse: active within the live window. */
12
- export const PULSE_LIVE = "live"
13
-
14
- /** Pulse: active in the stale window — still alive, getting old. */
15
- export const PULSE_STALE = "stale"
16
-
17
- /** Pulse: idle — no recent activity. */
18
- export const PULSE_IDLE = "idle"
19
-
20
- /** Every pulse freshness value. */
21
- export const PULSES = [PULSE_LIVE, PULSE_STALE, PULSE_IDLE] as const
22
-
23
- /** Pulse freshness: how old the last activity is. */
24
- export type Pulse = (typeof PULSES)[number]
25
-
26
- /** Flow: waiting for the model. */
27
- export const FLOW_WAIT = "wait"
28
-
29
- /** Flow: tokens streaming in. */
30
- export const FLOW_RECV = "recv"
31
-
32
- /** Flow: a tool call in flight. */
33
- export const FLOW_TOOL = "tool"
34
-
35
- /** Every flow direction. */
36
- export const FLOW_DIRS = [FLOW_WAIT, FLOW_RECV, FLOW_TOOL] as const
37
-
38
- /** Flow direction: the way the agent is currently moving. */
39
- export type FlowDir = (typeof FLOW_DIRS)[number]
40
-
41
- /** Flow hint: clear the current direction. */
42
- export const FLOW_HINT_CLEAR = "clear"
43
-
44
- /** A flow update: set a direction, or clear it. */
45
- export type FlowHint = FlowDir | typeof FLOW_HINT_CLEAR
46
-
47
- /** Mark: queued — waiting for a slot, shown with a clock not a dot. */
48
- export const MARK_QUEUED = "queued"
49
-
50
- /** Mark: ready — finished or quiet, the plain dot. */
51
- export const MARK_READY = "ready"
52
-
53
- /** Every agent mark value. */
54
- export const AGENT_MARKS = [
55
- ...PULSES,
56
- MARK_QUEUED,
57
- MARK_READY,
58
- STATUS_ERROR,
59
- STATUS_ARCHIVED,
60
- ] as const
61
-
62
- /** Visual mark for an agent row: pulse, lifecycle, or an error/archive state. */
63
- export type AgentMark = (typeof AGENT_MARKS)[number]
1
+ /**
2
+ * pware.oc.core.constants.pulse
3
+ *
4
+ * The plugin's own pulse / flow / mark vocabulary: how fresh a row is, which
5
+ * way the agent is streaming, and the combined visual mark the panel colors.
6
+ * These are ours — OpenCode never emits them; `pware.oc.core.pulse.ts`
7
+ * derives them from stamps and events.
8
+ */
9
+ import { STATUS_ARCHIVED, STATUS_ERROR } from "./pware.oc.core.constants.status.js"
10
+
11
+ /** Pulse: active within the live window. */
12
+ export const PULSE_LIVE = "live"
13
+
14
+ /** Pulse: active in the stale window — still alive, getting old. */
15
+ export const PULSE_STALE = "stale"
16
+
17
+ /** Pulse: idle — no recent activity. */
18
+ export const PULSE_IDLE = "idle"
19
+
20
+ /** Every pulse freshness value. */
21
+ export const PULSES = [PULSE_LIVE, PULSE_STALE, PULSE_IDLE] as const
22
+
23
+ /** Pulse freshness: how old the last activity is. */
24
+ export type Pulse = (typeof PULSES)[number]
25
+
26
+ /** Flow: waiting for the model. */
27
+ export const FLOW_WAIT = "wait"
28
+
29
+ /** Flow: tokens streaming in. */
30
+ export const FLOW_RECV = "recv"
31
+
32
+ /** Flow: a tool call in flight. */
33
+ export const FLOW_TOOL = "tool"
34
+
35
+ /** Every flow direction. */
36
+ export const FLOW_DIRS = [FLOW_WAIT, FLOW_RECV, FLOW_TOOL] as const
37
+
38
+ /** Flow direction: the way the agent is currently moving. */
39
+ export type FlowDir = (typeof FLOW_DIRS)[number]
40
+
41
+ /** Flow hint: clear the current direction. */
42
+ export const FLOW_HINT_CLEAR = "clear"
43
+
44
+ /** A flow update: set a direction, or clear it. */
45
+ export type FlowHint = FlowDir | typeof FLOW_HINT_CLEAR
46
+
47
+ /** Mark: queued — waiting for a slot, shown with a clock not a dot. */
48
+ export const MARK_QUEUED = "queued"
49
+
50
+ /** Mark: ready — finished or quiet, the plain dot. */
51
+ export const MARK_READY = "ready"
52
+
53
+ /** Every agent mark value. */
54
+ export const AGENT_MARKS = [
55
+ ...PULSES,
56
+ MARK_QUEUED,
57
+ MARK_READY,
58
+ STATUS_ERROR,
59
+ STATUS_ARCHIVED,
60
+ ] as const
61
+
62
+ /** Visual mark for an agent row: pulse, lifecycle, or an error/archive state. */
63
+ export type AgentMark = (typeof AGENT_MARKS)[number]
@@ -1,34 +1,34 @@
1
- /**
2
- * pware.oc.core.constants.rowkind
3
- *
4
- * The plugin's own row taxonomy — what a sidebar row represents. `RowData` in
5
- * `pware.oc.ui.sections.tsx` is the only place a row is built; the kinds live
6
- * here.
7
- */
8
-
9
- /** Row kind: an agent / delegate row. */
10
- export const ROW_KIND_AGENT = "agent"
11
-
12
- /** Row kind: a tool-call row. */
13
- export const ROW_KIND_TOOL = "tool"
14
-
15
- /** Row kind: a file row. */
16
- export const ROW_KIND_FILE = "file"
17
-
18
- /** Row kind: a delegate row. */
19
- export const ROW_KIND_DELEGATE = "delegate"
20
-
21
- /** Row kind: a group header row. */
22
- export const ROW_KIND_GROUP = "group"
23
-
24
- /** Every row kind the panel renders. */
25
- export const ROW_KINDS = [
26
- ROW_KIND_AGENT,
27
- ROW_KIND_TOOL,
28
- ROW_KIND_FILE,
29
- ROW_KIND_DELEGATE,
30
- ROW_KIND_GROUP,
31
- ] as const
32
-
33
- /** A sidebar row kind. */
34
- export type RowKind = (typeof ROW_KINDS)[number]
1
+ /**
2
+ * pware.oc.core.constants.rowkind
3
+ *
4
+ * The plugin's own row taxonomy — what a sidebar row represents. `RowData` in
5
+ * `pware.oc.ui.sections.tsx` is the only place a row is built; the kinds live
6
+ * here.
7
+ */
8
+
9
+ /** Row kind: an agent / delegate row. */
10
+ export const ROW_KIND_AGENT = "agent"
11
+
12
+ /** Row kind: a tool-call row. */
13
+ export const ROW_KIND_TOOL = "tool"
14
+
15
+ /** Row kind: a file row. */
16
+ export const ROW_KIND_FILE = "file"
17
+
18
+ /** Row kind: a delegate row. */
19
+ export const ROW_KIND_DELEGATE = "delegate"
20
+
21
+ /** Row kind: a group header row. */
22
+ export const ROW_KIND_GROUP = "group"
23
+
24
+ /** Every row kind the panel renders. */
25
+ export const ROW_KINDS = [
26
+ ROW_KIND_AGENT,
27
+ ROW_KIND_TOOL,
28
+ ROW_KIND_FILE,
29
+ ROW_KIND_DELEGATE,
30
+ ROW_KIND_GROUP,
31
+ ] as const
32
+
33
+ /** A sidebar row kind. */
34
+ export type RowKind = (typeof ROW_KINDS)[number]
@@ -1,74 +1,74 @@
1
- /**
2
- * pware.oc.core.constants.status
3
- *
4
- * The plugin's canonical status vocabulary: lifecycle states normalized from
5
- * both domains (OpenCode session/tool statuses and OMO boulder/plan statuses)
6
- * plus the tool-status subset the panel renders. Every mapper in the panel
7
- * goes through `pware.oc.core.status.ts`; the raw strings live here.
8
- */
9
-
10
- /** Canonical status: work in progress. */
11
- export const STATUS_RUNNING = "running"
12
-
13
- /** Canonical status: waiting for a slot or a user decision. */
14
- export const STATUS_PENDING = "pending"
15
-
16
- /** Canonical status: finished successfully. */
17
- export const STATUS_COMPLETED = "completed"
18
-
19
- /** Canonical status: failed. */
20
- export const STATUS_ERROR = "error"
21
-
22
- /** Canonical status: deliberately stopped, resumable. */
23
- export const STATUS_PAUSED = "paused"
24
-
25
- /** Canonical status: deliberately stopped, not coming back. */
26
- export const STATUS_ABANDONED = "abandoned"
27
-
28
- /** Canonical status: archived by the host. */
29
- export const STATUS_ARCHIVED = "archived"
30
-
31
- /** Canonical status: quiet / no active work. */
32
- export const STATUS_IDLE = "idle"
33
-
34
- /** Canonical status: no state could be determined. */
35
- export const STATUS_UNKNOWN = "unknown"
36
-
37
- /** Every canonical lifecycle status the panel recognizes. */
38
- export const CANONICAL_STATUSES = [
39
- STATUS_RUNNING,
40
- STATUS_PENDING,
41
- STATUS_COMPLETED,
42
- STATUS_ERROR,
43
- STATUS_PAUSED,
44
- STATUS_ABANDONED,
45
- STATUS_ARCHIVED,
46
- STATUS_IDLE,
47
- STATUS_UNKNOWN,
48
- ] as const
49
-
50
- /** A canonical lifecycle status value. */
51
- export type CanonicalStatus = (typeof CANONICAL_STATUSES)[number]
52
-
53
- /** Tool status: a tool call is live. */
54
- export const TOOL_STATUS_RUNNING = STATUS_RUNNING
55
-
56
- /** Tool status: a tool call finished successfully. */
57
- export const TOOL_STATUS_COMPLETED = STATUS_COMPLETED
58
-
59
- /** Tool status: a tool call failed. */
60
- export const TOOL_STATUS_ERROR = STATUS_ERROR
61
-
62
- /** Tool status: a tool call is queued or its state is unknown. */
63
- export const TOOL_STATUS_PENDING = STATUS_PENDING
64
-
65
- /** The tool-status subset of the canonical statuses. */
66
- export const TOOL_STATUSES = [
67
- TOOL_STATUS_RUNNING,
68
- TOOL_STATUS_COMPLETED,
69
- TOOL_STATUS_ERROR,
70
- TOOL_STATUS_PENDING,
71
- ] as const
72
-
73
- /** A tool status value the panel renders. */
74
- export type ToolStatus = (typeof TOOL_STATUSES)[number]
1
+ /**
2
+ * pware.oc.core.constants.status
3
+ *
4
+ * The plugin's canonical status vocabulary: lifecycle states normalized from
5
+ * both domains (OpenCode session/tool statuses and OMO boulder/plan statuses)
6
+ * plus the tool-status subset the panel renders. Every mapper in the panel
7
+ * goes through `pware.oc.core.status.ts`; the raw strings live here.
8
+ */
9
+
10
+ /** Canonical status: work in progress. */
11
+ export const STATUS_RUNNING = "running"
12
+
13
+ /** Canonical status: waiting for a slot or a user decision. */
14
+ export const STATUS_PENDING = "pending"
15
+
16
+ /** Canonical status: finished successfully. */
17
+ export const STATUS_COMPLETED = "completed"
18
+
19
+ /** Canonical status: failed. */
20
+ export const STATUS_ERROR = "error"
21
+
22
+ /** Canonical status: deliberately stopped, resumable. */
23
+ export const STATUS_PAUSED = "paused"
24
+
25
+ /** Canonical status: deliberately stopped, not coming back. */
26
+ export const STATUS_ABANDONED = "abandoned"
27
+
28
+ /** Canonical status: archived by the host. */
29
+ export const STATUS_ARCHIVED = "archived"
30
+
31
+ /** Canonical status: quiet / no active work. */
32
+ export const STATUS_IDLE = "idle"
33
+
34
+ /** Canonical status: no state could be determined. */
35
+ export const STATUS_UNKNOWN = "unknown"
36
+
37
+ /** Every canonical lifecycle status the panel recognizes. */
38
+ export const CANONICAL_STATUSES = [
39
+ STATUS_RUNNING,
40
+ STATUS_PENDING,
41
+ STATUS_COMPLETED,
42
+ STATUS_ERROR,
43
+ STATUS_PAUSED,
44
+ STATUS_ABANDONED,
45
+ STATUS_ARCHIVED,
46
+ STATUS_IDLE,
47
+ STATUS_UNKNOWN,
48
+ ] as const
49
+
50
+ /** A canonical lifecycle status value. */
51
+ export type CanonicalStatus = (typeof CANONICAL_STATUSES)[number]
52
+
53
+ /** Tool status: a tool call is live. */
54
+ export const TOOL_STATUS_RUNNING = STATUS_RUNNING
55
+
56
+ /** Tool status: a tool call finished successfully. */
57
+ export const TOOL_STATUS_COMPLETED = STATUS_COMPLETED
58
+
59
+ /** Tool status: a tool call failed. */
60
+ export const TOOL_STATUS_ERROR = STATUS_ERROR
61
+
62
+ /** Tool status: a tool call is queued or its state is unknown. */
63
+ export const TOOL_STATUS_PENDING = STATUS_PENDING
64
+
65
+ /** The tool-status subset of the canonical statuses. */
66
+ export const TOOL_STATUSES = [
67
+ TOOL_STATUS_RUNNING,
68
+ TOOL_STATUS_COMPLETED,
69
+ TOOL_STATUS_ERROR,
70
+ TOOL_STATUS_PENDING,
71
+ ] as const
72
+
73
+ /** A tool status value the panel renders. */
74
+ export type ToolStatus = (typeof TOOL_STATUSES)[number]