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.
- package/.oesignore +17 -17
- package/CHANGELOG.md +96 -95
- package/LICENSE +21 -21
- package/README.md +150 -235
- package/oes.json +13 -11
- package/package.json +100 -100
- package/scripts/install-git-hooks.mjs +29 -29
- package/src/pware.oc.core/constants/index.ts +18 -18
- package/src/pware.oc.core/constants/pware.oc.core.constants.eventKind.ts +29 -29
- package/src/pware.oc.core/constants/pware.oc.core.constants.eventName.ts +15 -13
- package/src/pware.oc.core/constants/pware.oc.core.constants.eventType.ts +241 -241
- package/src/pware.oc.core/constants/pware.oc.core.constants.myWork.ts +55 -55
- package/src/pware.oc.core/constants/pware.oc.core.constants.partType.ts +65 -65
- package/src/pware.oc.core/constants/pware.oc.core.constants.phase.ts +58 -58
- package/src/pware.oc.core/constants/pware.oc.core.constants.pulse.ts +63 -63
- package/src/pware.oc.core/constants/pware.oc.core.constants.rowKind.ts +34 -34
- package/src/pware.oc.core/constants/pware.oc.core.constants.status.ts +74 -74
- package/src/pware.oc.core/constants/pware.oc.core.constants.toolName.ts +69 -69
- package/src/pware.oc.core/git/index.ts +7 -7
- package/src/pware.oc.core/git/pware.oc.core.git.ts +237 -237
- package/src/pware.oc.core/git/pware.oc.core.gitignore.ts +87 -87
- package/src/pware.oc.core/index.ts +19 -18
- package/src/pware.oc.core/pware.oc.core.bus.ts +42 -42
- package/src/pware.oc.core/pware.oc.core.cache.ts +48 -48
- package/src/pware.oc.core/pware.oc.core.clipboard.ts +97 -97
- package/src/pware.oc.core/pware.oc.core.debug.ts +280 -280
- package/src/pware.oc.core/pware.oc.core.events.ts +79 -79
- package/src/pware.oc.core/pware.oc.core.glyph.ts +135 -135
- package/src/pware.oc.core/pware.oc.core.layout.ts +234 -234
- package/src/pware.oc.core/pware.oc.core.oes.ts +99 -89
- package/src/pware.oc.core/pware.oc.core.paths.ts +240 -240
- package/src/pware.oc.core/pware.oc.core.preview.ts +74 -74
- package/src/pware.oc.core/pware.oc.core.pulse.ts +726 -726
- package/src/pware.oc.core/pware.oc.core.runtimeConfig.ts +41 -0
- package/src/pware.oc.core/pware.oc.core.sqlite.ts +164 -175
- package/src/pware.oc.core/pware.oc.core.sqliteGateway.ts +89 -0
- package/src/pware.oc.core/pware.oc.core.status.ts +214 -214
- package/src/pware.oc.core/pware.oc.core.timing.ts +63 -63
- package/src/pware.oc.core/pware.oc.core.width.ts +215 -215
- package/src/pware.oc.omo/constants/index.ts +15 -15
- package/src/pware.oc.omo/constants/pware.oc.omo.constants.backgroundTask.ts +18 -18
- package/src/pware.oc.omo/constants/pware.oc.omo.constants.boulderStatus.ts +49 -49
- package/src/pware.oc.omo/constants/pware.oc.omo.constants.docKind.ts +29 -29
- package/src/pware.oc.omo/constants/pware.oc.omo.constants.eventName.ts +11 -11
- package/src/pware.oc.omo/constants/pware.oc.omo.constants.planStatus.ts +60 -60
- package/src/pware.oc.omo/constants/pware.oc.omo.constants.reviewStatus.ts +49 -49
- package/src/pware.oc.omo/constants/pware.oc.omo.constants.startWork.ts +25 -25
- package/src/pware.oc.omo/constants/pware.oc.omo.constants.verdict.ts +38 -38
- package/src/pware.oc.omo/index.ts +7 -7
- package/src/pware.oc.omo/resolver/index.ts +19 -19
- package/src/pware.oc.omo/resolver/pware.oc.omo.resolver.approval.ts +179 -179
- package/src/pware.oc.omo/resolver/pware.oc.omo.resolver.approvalGroup.ts +116 -116
- package/src/pware.oc.omo/resolver/pware.oc.omo.resolver.approvalState.ts +34 -34
- package/src/pware.oc.omo/resolver/pware.oc.omo.resolver.boulder.ts +503 -503
- package/src/pware.oc.omo/resolver/pware.oc.omo.resolver.config.ts +40 -40
- package/src/pware.oc.omo/resolver/pware.oc.omo.resolver.doc.ts +269 -269
- package/src/pware.oc.omo/resolver/pware.oc.omo.resolver.draftFile.ts +18 -18
- package/src/pware.oc.omo/resolver/pware.oc.omo.resolver.notepadsFile.ts +18 -18
- package/src/pware.oc.omo/resolver/pware.oc.omo.resolver.plan.ts +155 -155
- package/src/pware.oc.omo/resolver/pware.oc.omo.resolver.planFile.ts +363 -361
- package/src/pware.oc.omo/resolver/pware.oc.omo.resolver.proofFile.ts +18 -18
- package/src/pware.oc.omo/resolver/pware.oc.omo.resolver.rulesFile.ts +11 -11
- package/src/pware.oc.omo/resolver/pware.oc.omo.resolver.runContinuationFile.ts +14 -14
- package/src/pware.oc.opencode/constants/index.ts +10 -10
- package/src/pware.oc.opencode/constants/pware.oc.opencode.constants.eventName.ts +15 -15
- package/src/pware.oc.opencode/constants/pware.oc.opencode.constants.fileTouch.ts +18 -18
- package/src/pware.oc.opencode/constants/pware.oc.opencode.constants.questionKind.ts +45 -45
- package/src/pware.oc.opencode/constants/pware.oc.opencode.constants.sessionStatus.ts +58 -58
- package/src/pware.oc.opencode/index.ts +8 -8
- package/src/pware.oc.opencode/pware.oc.opencode.events.ts +182 -182
- package/src/pware.oc.opencode/pware.oc.opencode.files.ts +399 -399
- package/src/pware.oc.opencode/resolver/index.ts +223 -170
- package/src/pware.oc.opencode/resolver/pware.oc.opencode.resolver.file.ts +150 -162
- package/src/pware.oc.opencode/resolver/pware.oc.opencode.resolver.question.ts +149 -185
- package/src/pware.oc.opencode/resolver/pware.oc.opencode.resolver.session.ts +248 -211
- package/src/pware.oc.opencode/resolver/pware.oc.opencode.resolver.todo.ts +22 -26
- package/src/pware.oc.opencode/resolver/pware.oc.opencode.resolver.tool.ts +224 -236
- package/src/pware.oc.perf/index.ts +14 -14
- package/src/pware.oc.perf/pware.oc.perf.asciichart.d.ts +15 -15
- package/src/pware.oc.perf/pware.oc.perf.charts.ts +284 -284
- package/src/pware.oc.perf/pware.oc.perf.reader.ts +962 -927
- package/src/pware.oc.perf/pware.oc.perf.realtime.ts +88 -88
- package/src/pware.oc.perf/pware.oc.perf.realtimeBlock.ts +118 -118
- package/src/pware.oc.perf/pware.oc.perf.realtimeCpuRam.ts +79 -79
- package/src/pware.oc.perf/pware.oc.perf.realtimeSampler.ts +71 -71
- package/src/pware.oc.perf/pware.oc.perf.realtimeTimeline.ts +214 -214
- package/src/pware.oc.perf/pware.oc.perf.self.ts +179 -179
- package/src/pware.oc.perf/pware.oc.perf.view.tsx +463 -462
- package/src/pware.oc.runtime/index.ts +13 -13
- package/src/pware.oc.runtime/pware.oc.runtime.monitor.ts +142 -142
- package/src/pware.oc.runtime/pware.oc.runtime.mywork-enrich.ts +87 -79
- package/src/pware.oc.runtime/pware.oc.runtime.mywork.ts +282 -253
- package/src/pware.oc.runtime/pware.oc.runtime.omoRead.ts +37 -0
- package/src/pware.oc.runtime/pware.oc.runtime.questions.ts +83 -95
- package/src/pware.oc.runtime/pware.oc.runtime.snapshotClient.ts +130 -129
- package/src/pware.oc.runtime/pware.oc.runtime.source.ts +105 -105
- package/src/pware.oc.runtime/pware.oc.runtime.worker.ts +44 -43
- package/src/pware.oc.runtime/resolver/index.ts +268 -224
- package/src/pware.oc.runtime/resolver/pware.oc.runtime.resolver.delegate.ts +146 -146
- package/src/pware.oc.ui/index.ts +12 -12
- package/src/pware.oc.ui/pware.oc.ui.chrome.tsx +381 -339
- package/src/pware.oc.ui/pware.oc.ui.glyphs.tsx +144 -144
- package/src/pware.oc.ui/pware.oc.ui.host.tsx +111 -111
- package/src/pware.oc.ui/pware.oc.ui.live.tsx +82 -82
- package/src/pware.oc.ui/pware.oc.ui.menudialogs.tsx +843 -843
- package/src/pware.oc.ui/pware.oc.ui.sections.tsx +552 -526
- package/src/pware.oc.ui/pware.oc.ui.sidebar.tsx +1718 -1629
- package/src/pware.oc.ui.tsx +98 -98
package/src/pware.oc.ui.tsx
CHANGED
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
/** @jsxImportSource @opentui/solid */
|
|
2
|
-
import type { TuiPlugin } from "@opencode-ai/plugin/tui"
|
|
3
|
-
import { stripSessionPrefix } from "./pware.oc.core/pware.oc.core.pulse.js"
|
|
4
|
-
import { SidebarPanel } from "./pware.oc.ui/pware.oc.ui.sidebar.js"
|
|
5
|
-
import { openNewSessionPrompt } from "./pware.oc.ui/pware.oc.ui.host.js"
|
|
6
|
-
|
|
7
|
-
const id = "opencode-extended-sidebar" as const
|
|
8
|
-
|
|
9
|
-
type NwCommand = {
|
|
10
|
-
name: string
|
|
11
|
-
title: string
|
|
12
|
-
desc?: string
|
|
13
|
-
category?: string
|
|
14
|
-
namespace: "palette"
|
|
15
|
-
slashName: string
|
|
16
|
-
slashAliases?: readonly string[]
|
|
17
|
-
suggested?: boolean
|
|
18
|
-
run: () => void | Promise<void>
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
type NwLayer = {
|
|
22
|
-
priority: number
|
|
23
|
-
commands: readonly NwCommand[]
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export function nwCommandLayer(onPick: () => void): NwLayer {
|
|
27
|
-
return {
|
|
28
|
-
priority: 10,
|
|
29
|
-
commands: [
|
|
30
|
-
{
|
|
31
|
-
name: "oes.nw",
|
|
32
|
-
title: "nw",
|
|
33
|
-
desc: "Open new session prompt",
|
|
34
|
-
category: "OES",
|
|
35
|
-
namespace: "palette",
|
|
36
|
-
slashName: "nw",
|
|
37
|
-
slashAliases: ["new"],
|
|
38
|
-
suggested: true,
|
|
39
|
-
run: () => onPick(),
|
|
40
|
-
},
|
|
41
|
-
],
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
function tryRegisterNwCommand(api: Parameters<TuiPlugin>[0]): (() => void) | null {
|
|
46
|
-
try {
|
|
47
|
-
return api.keymap.registerLayer(
|
|
48
|
-
nwCommandLayer(() => openNewSessionPrompt(api)),
|
|
49
|
-
)
|
|
50
|
-
} catch {
|
|
51
|
-
}
|
|
52
|
-
return null
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
const tui: TuiPlugin = async (api) => {
|
|
56
|
-
const dispose = tryRegisterNwCommand(api)
|
|
57
|
-
if (dispose) {
|
|
58
|
-
api.lifecycle.onDispose(() => {
|
|
59
|
-
try {
|
|
60
|
-
dispose()
|
|
61
|
-
} catch {
|
|
62
|
-
}
|
|
63
|
-
})
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
try {
|
|
67
|
-
api.slots.register({
|
|
68
|
-
order: 320,
|
|
69
|
-
slots: {
|
|
70
|
-
sidebar_content: (_ctx, props) => {
|
|
71
|
-
try {
|
|
72
|
-
return (
|
|
73
|
-
<SidebarPanel
|
|
74
|
-
sessionId={stripSessionPrefix(props.session_id) ?? ""}
|
|
75
|
-
api={api}
|
|
76
|
-
theme={api.theme}
|
|
77
|
-
/>
|
|
78
|
-
)
|
|
79
|
-
} catch (err) {
|
|
80
|
-
const msg = err instanceof Error ? err.message : "render failed"
|
|
81
|
-
return <text>{`Extended · ${msg}`}</text>
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
})
|
|
86
|
-
} catch (err) {
|
|
87
|
-
const msg = err instanceof Error ? err.message : "plugin failed"
|
|
88
|
-
api.slots.register({
|
|
89
|
-
order: 320,
|
|
90
|
-
slots: {
|
|
91
|
-
sidebar_content: () => <text>{`Extended · ${msg}`}</text>,
|
|
92
|
-
},
|
|
93
|
-
})
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export default { id, tui }
|
|
1
|
+
/** @jsxImportSource @opentui/solid */
|
|
2
|
+
import type { TuiPlugin } from "@opencode-ai/plugin/tui"
|
|
3
|
+
import { stripSessionPrefix } from "./pware.oc.core/pware.oc.core.pulse.js"
|
|
4
|
+
import { SidebarPanel } from "./pware.oc.ui/pware.oc.ui.sidebar.js"
|
|
5
|
+
import { openNewSessionPrompt } from "./pware.oc.ui/pware.oc.ui.host.js"
|
|
6
|
+
|
|
7
|
+
const id = "opencode-extended-sidebar" as const
|
|
8
|
+
|
|
9
|
+
type NwCommand = {
|
|
10
|
+
name: string
|
|
11
|
+
title: string
|
|
12
|
+
desc?: string
|
|
13
|
+
category?: string
|
|
14
|
+
namespace: "palette"
|
|
15
|
+
slashName: string
|
|
16
|
+
slashAliases?: readonly string[]
|
|
17
|
+
suggested?: boolean
|
|
18
|
+
run: () => void | Promise<void>
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
type NwLayer = {
|
|
22
|
+
priority: number
|
|
23
|
+
commands: readonly NwCommand[]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function nwCommandLayer(onPick: () => void): NwLayer {
|
|
27
|
+
return {
|
|
28
|
+
priority: 10,
|
|
29
|
+
commands: [
|
|
30
|
+
{
|
|
31
|
+
name: "oes.nw",
|
|
32
|
+
title: "nw",
|
|
33
|
+
desc: "Open new session prompt",
|
|
34
|
+
category: "OES",
|
|
35
|
+
namespace: "palette",
|
|
36
|
+
slashName: "nw",
|
|
37
|
+
slashAliases: ["new"],
|
|
38
|
+
suggested: true,
|
|
39
|
+
run: () => onPick(),
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function tryRegisterNwCommand(api: Parameters<TuiPlugin>[0]): (() => void) | null {
|
|
46
|
+
try {
|
|
47
|
+
return api.keymap.registerLayer(
|
|
48
|
+
nwCommandLayer(() => openNewSessionPrompt(api)),
|
|
49
|
+
)
|
|
50
|
+
} catch {
|
|
51
|
+
}
|
|
52
|
+
return null
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const tui: TuiPlugin = async (api) => {
|
|
56
|
+
const dispose = tryRegisterNwCommand(api)
|
|
57
|
+
if (dispose) {
|
|
58
|
+
api.lifecycle.onDispose(() => {
|
|
59
|
+
try {
|
|
60
|
+
dispose()
|
|
61
|
+
} catch {
|
|
62
|
+
}
|
|
63
|
+
})
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
try {
|
|
67
|
+
api.slots.register({
|
|
68
|
+
order: 320,
|
|
69
|
+
slots: {
|
|
70
|
+
sidebar_content: (_ctx, props) => {
|
|
71
|
+
try {
|
|
72
|
+
return (
|
|
73
|
+
<SidebarPanel
|
|
74
|
+
sessionId={stripSessionPrefix(props.session_id) ?? ""}
|
|
75
|
+
api={api}
|
|
76
|
+
theme={api.theme}
|
|
77
|
+
/>
|
|
78
|
+
)
|
|
79
|
+
} catch (err) {
|
|
80
|
+
const msg = err instanceof Error ? err.message : "render failed"
|
|
81
|
+
return <text>{`Extended · ${msg}`}</text>
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
})
|
|
86
|
+
} catch (err) {
|
|
87
|
+
const msg = err instanceof Error ? err.message : "plugin failed"
|
|
88
|
+
api.slots.register({
|
|
89
|
+
order: 320,
|
|
90
|
+
slots: {
|
|
91
|
+
sidebar_content: () => <text>{`Extended · ${msg}`}</text>,
|
|
92
|
+
},
|
|
93
|
+
})
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export default { id, tui }
|