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/package.json
CHANGED
|
@@ -1,100 +1,100 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "opencode-extended-sidebar",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "OpenCode TUI sidebar: session switcher, live tools/files, click-for-detail dialogs with scrollable file preview, perf timing logs and a chart dialog with trend lines, histograms and gauges, debug/profile mode banners with a resolved log-path hint, a live self-cost status line (event/scan latency + renderer FPS), height-aware row trimming, an action-based My work queue (open questions + plan approvals grouped by ready-to-review / ready-to-start / finished / drafting / draft-docs and plans archives, a pinned-sessions group, and a review-state suffix), per-tab transient status rows (session-switch spinner, cold-tab loading, error and empty notes), a new-session jump exposed as command-palette `nw` and slash `/nw`, and optional OMO plan approvals with a delegate view (read-only)",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"author": "PWare <pawel@pware.ai>",
|
|
8
|
-
"repository": {
|
|
9
|
-
"type": "git",
|
|
10
|
-
"url": "git+https://github.com/pleware/opencode-extended-sidebar.git"
|
|
11
|
-
},
|
|
12
|
-
"homepage": "https://github.com/pleware/opencode-extended-sidebar#readme",
|
|
13
|
-
"bugs": {
|
|
14
|
-
"url": "https://github.com/pleware/opencode-extended-sidebar/issues"
|
|
15
|
-
},
|
|
16
|
-
"keywords": [
|
|
17
|
-
"opencode",
|
|
18
|
-
"plugin",
|
|
19
|
-
"tui",
|
|
20
|
-
"sidebar",
|
|
21
|
-
"session-switcher",
|
|
22
|
-
"token-usage",
|
|
23
|
-
"latency",
|
|
24
|
-
"observability",
|
|
25
|
-
"charts",
|
|
26
|
-
"statistics",
|
|
27
|
-
"asciichart",
|
|
28
|
-
"perf-charts",
|
|
29
|
-
"profile-logs",
|
|
30
|
-
"self-cost",
|
|
31
|
-
"fps",
|
|
32
|
-
"oh-my-openagent",
|
|
33
|
-
"markdown-preview",
|
|
34
|
-
"my-work",
|
|
35
|
-
"work-queue",
|
|
36
|
-
"tab-status",
|
|
37
|
-
"loading-indicator",
|
|
38
|
-
"command-palette",
|
|
39
|
-
"slash-command",
|
|
40
|
-
"plan-resolution",
|
|
41
|
-
"session-status",
|
|
42
|
-
"phrouros"
|
|
43
|
-
],
|
|
44
|
-
"oc-plugin": [
|
|
45
|
-
"tui"
|
|
46
|
-
],
|
|
47
|
-
"exports": {
|
|
48
|
-
"./tui": "./src/pware.oc.ui.tsx"
|
|
49
|
-
},
|
|
50
|
-
"files": [
|
|
51
|
-
"src",
|
|
52
|
-
"oes.json",
|
|
53
|
-
".oesignore",
|
|
54
|
-
"scripts/install-git-hooks.mjs",
|
|
55
|
-
"README.md",
|
|
56
|
-
"CHANGELOG.md",
|
|
57
|
-
"LICENSE"
|
|
58
|
-
],
|
|
59
|
-
"publishConfig": {
|
|
60
|
-
"access": "public"
|
|
61
|
-
},
|
|
62
|
-
"peerDependencies": {
|
|
63
|
-
"@opencode-ai/plugin": ">=1.3.7",
|
|
64
|
-
"@opentui/core": ">=0.5.8",
|
|
65
|
-
"@opentui/solid": ">=0.5.8",
|
|
66
|
-
"solid-js": ">=1.9.0"
|
|
67
|
-
},
|
|
68
|
-
"devDependencies": {
|
|
69
|
-
"@opentui/core": "^0.5.9",
|
|
70
|
-
"@opentui/solid": "^0.5.9",
|
|
71
|
-
"@types/bun": "^1.4.0",
|
|
72
|
-
"solid-js": "^1.9.15"
|
|
73
|
-
},
|
|
74
|
-
"peerDependenciesMeta": {
|
|
75
|
-
"@opentui/core": {
|
|
76
|
-
"optional": true
|
|
77
|
-
},
|
|
78
|
-
"@opentui/solid": {
|
|
79
|
-
"optional": true
|
|
80
|
-
},
|
|
81
|
-
"solid-js": {
|
|
82
|
-
"optional": true
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
"engines": {
|
|
86
|
-
"node": ">=20"
|
|
87
|
-
},
|
|
88
|
-
"scripts": {
|
|
89
|
-
"prepare": "node scripts/install-git-hooks.mjs",
|
|
90
|
-
"test": "bun test test/unit test/snapshot",
|
|
91
|
-
"typecheck": "tsc --noEmit",
|
|
92
|
-
"bench": "bun test test/bench"
|
|
93
|
-
},
|
|
94
|
-
"dependencies": {
|
|
95
|
-
"ignore": "^7.0.7",
|
|
96
|
-
"asciichart": "^1.5.25",
|
|
97
|
-
"simple-statistics": "^7.11.0",
|
|
98
|
-
"@crafter/charts": "^0.2.5"
|
|
99
|
-
}
|
|
100
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "opencode-extended-sidebar",
|
|
3
|
+
"version": "0.2.91",
|
|
4
|
+
"description": "OpenCode TUI sidebar: session switcher, live tools/files, click-for-detail dialogs with scrollable file preview, perf timing logs and a chart dialog with trend lines, histograms and gauges, debug/profile mode banners with a resolved log-path hint, a live self-cost status line (event/scan latency + renderer FPS), height-aware row trimming, an action-based My work queue (open questions + plan approvals grouped by ready-to-review / ready-to-start / finished / drafting / draft-docs and plans archives, a pinned-sessions group, and a review-state suffix), per-tab transient status rows (session-switch spinner, cold-tab loading, error and empty notes), a new-session jump exposed as command-palette `nw` and slash `/nw`, and optional OMO plan approvals with a delegate view (read-only)",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "PWare <pawel@pware.ai>",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/pleware/opencode-extended-sidebar.git"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://github.com/pleware/opencode-extended-sidebar#readme",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/pleware/opencode-extended-sidebar/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"opencode",
|
|
18
|
+
"plugin",
|
|
19
|
+
"tui",
|
|
20
|
+
"sidebar",
|
|
21
|
+
"session-switcher",
|
|
22
|
+
"token-usage",
|
|
23
|
+
"latency",
|
|
24
|
+
"observability",
|
|
25
|
+
"charts",
|
|
26
|
+
"statistics",
|
|
27
|
+
"asciichart",
|
|
28
|
+
"perf-charts",
|
|
29
|
+
"profile-logs",
|
|
30
|
+
"self-cost",
|
|
31
|
+
"fps",
|
|
32
|
+
"oh-my-openagent",
|
|
33
|
+
"markdown-preview",
|
|
34
|
+
"my-work",
|
|
35
|
+
"work-queue",
|
|
36
|
+
"tab-status",
|
|
37
|
+
"loading-indicator",
|
|
38
|
+
"command-palette",
|
|
39
|
+
"slash-command",
|
|
40
|
+
"plan-resolution",
|
|
41
|
+
"session-status",
|
|
42
|
+
"phrouros"
|
|
43
|
+
],
|
|
44
|
+
"oc-plugin": [
|
|
45
|
+
"tui"
|
|
46
|
+
],
|
|
47
|
+
"exports": {
|
|
48
|
+
"./tui": "./src/pware.oc.ui.tsx"
|
|
49
|
+
},
|
|
50
|
+
"files": [
|
|
51
|
+
"src",
|
|
52
|
+
"oes.json",
|
|
53
|
+
".oesignore",
|
|
54
|
+
"scripts/install-git-hooks.mjs",
|
|
55
|
+
"README.md",
|
|
56
|
+
"CHANGELOG.md",
|
|
57
|
+
"LICENSE"
|
|
58
|
+
],
|
|
59
|
+
"publishConfig": {
|
|
60
|
+
"access": "public"
|
|
61
|
+
},
|
|
62
|
+
"peerDependencies": {
|
|
63
|
+
"@opencode-ai/plugin": ">=1.3.7",
|
|
64
|
+
"@opentui/core": ">=0.5.8",
|
|
65
|
+
"@opentui/solid": ">=0.5.8",
|
|
66
|
+
"solid-js": ">=1.9.0"
|
|
67
|
+
},
|
|
68
|
+
"devDependencies": {
|
|
69
|
+
"@opentui/core": "^0.5.9",
|
|
70
|
+
"@opentui/solid": "^0.5.9",
|
|
71
|
+
"@types/bun": "^1.4.0",
|
|
72
|
+
"solid-js": "^1.9.15"
|
|
73
|
+
},
|
|
74
|
+
"peerDependenciesMeta": {
|
|
75
|
+
"@opentui/core": {
|
|
76
|
+
"optional": true
|
|
77
|
+
},
|
|
78
|
+
"@opentui/solid": {
|
|
79
|
+
"optional": true
|
|
80
|
+
},
|
|
81
|
+
"solid-js": {
|
|
82
|
+
"optional": true
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"engines": {
|
|
86
|
+
"node": ">=20"
|
|
87
|
+
},
|
|
88
|
+
"scripts": {
|
|
89
|
+
"prepare": "node scripts/install-git-hooks.mjs",
|
|
90
|
+
"test": "bun test test/unit test/snapshot",
|
|
91
|
+
"typecheck": "tsc --noEmit",
|
|
92
|
+
"bench": "bun test test/bench"
|
|
93
|
+
},
|
|
94
|
+
"dependencies": {
|
|
95
|
+
"ignore": "^7.0.7",
|
|
96
|
+
"asciichart": "^1.5.25",
|
|
97
|
+
"simple-statistics": "^7.11.0",
|
|
98
|
+
"@crafter/charts": "^0.2.5"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Ustawia core.hooksPath=.githooks tylko gdy ten pakiet jest samym klonem repo
|
|
4
|
-
* (nie gdy leży w node_modules innego projektu).
|
|
5
|
-
*/
|
|
6
|
-
import { execSync } from "node:child_process"
|
|
7
|
-
import { existsSync } from "node:fs"
|
|
8
|
-
import { dirname, resolve } from "node:path"
|
|
9
|
-
import { fileURLToPath } from "node:url"
|
|
10
|
-
|
|
11
|
-
const pkgRoot = resolve(dirname(fileURLToPath(import.meta.url)), "..")
|
|
12
|
-
const hook = resolve(pkgRoot, ".githooks/commit-msg")
|
|
13
|
-
if (!existsSync(hook)) process.exit(0)
|
|
14
|
-
|
|
15
|
-
try {
|
|
16
|
-
const top = execSync("git rev-parse --show-toplevel", {
|
|
17
|
-
cwd: pkgRoot,
|
|
18
|
-
encoding: "utf8",
|
|
19
|
-
stdio: ["ignore", "pipe", "ignore"],
|
|
20
|
-
}).trim()
|
|
21
|
-
if (resolve(top) !== pkgRoot) process.exit(0)
|
|
22
|
-
|
|
23
|
-
execSync("git config core.hooksPath .githooks", {
|
|
24
|
-
cwd: pkgRoot,
|
|
25
|
-
stdio: "ignore",
|
|
26
|
-
})
|
|
27
|
-
} catch {
|
|
28
|
-
// brak gita / poza klonem — nic nie rób
|
|
29
|
-
}
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Ustawia core.hooksPath=.githooks tylko gdy ten pakiet jest samym klonem repo
|
|
4
|
+
* (nie gdy leży w node_modules innego projektu).
|
|
5
|
+
*/
|
|
6
|
+
import { execSync } from "node:child_process"
|
|
7
|
+
import { existsSync } from "node:fs"
|
|
8
|
+
import { dirname, resolve } from "node:path"
|
|
9
|
+
import { fileURLToPath } from "node:url"
|
|
10
|
+
|
|
11
|
+
const pkgRoot = resolve(dirname(fileURLToPath(import.meta.url)), "..")
|
|
12
|
+
const hook = resolve(pkgRoot, ".githooks/commit-msg")
|
|
13
|
+
if (!existsSync(hook)) process.exit(0)
|
|
14
|
+
|
|
15
|
+
try {
|
|
16
|
+
const top = execSync("git rev-parse --show-toplevel", {
|
|
17
|
+
cwd: pkgRoot,
|
|
18
|
+
encoding: "utf8",
|
|
19
|
+
stdio: ["ignore", "pipe", "ignore"],
|
|
20
|
+
}).trim()
|
|
21
|
+
if (resolve(top) !== pkgRoot) process.exit(0)
|
|
22
|
+
|
|
23
|
+
execSync("git config core.hooksPath .githooks", {
|
|
24
|
+
cwd: pkgRoot,
|
|
25
|
+
stdio: "ignore",
|
|
26
|
+
})
|
|
27
|
+
} catch {
|
|
28
|
+
// brak gita / poza klonem — nic nie rób
|
|
29
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* pware.oc.core.constants
|
|
3
|
-
*
|
|
4
|
-
* Single source of truth for the plugin's string literals: OpenCode host
|
|
5
|
-
* literals (part types, host event types, tool names) plus the plugin's own
|
|
6
|
-
* canonical vocabularies (statuses, pulse/marks, row kinds, event kinds,
|
|
7
|
-
* My work groups, Perf/self phases).
|
|
8
|
-
*/
|
|
9
|
-
export * from "./pware.oc.core.constants.partType.js"
|
|
10
|
-
export * from "./pware.oc.core.constants.eventType.js"
|
|
11
|
-
export * from "./pware.oc.core.constants.toolName.js"
|
|
12
|
-
export * from "./pware.oc.core.constants.status.js"
|
|
13
|
-
export * from "./pware.oc.core.constants.pulse.js"
|
|
14
|
-
export * from "./pware.oc.core.constants.eventKind.js"
|
|
15
|
-
export * from "./pware.oc.core.constants.rowKind.js"
|
|
16
|
-
export * from "./pware.oc.core.constants.myWork.js"
|
|
17
|
-
export * from "./pware.oc.core.constants.phase.js"
|
|
18
|
-
export * from "./pware.oc.core.constants.eventName.js"
|
|
1
|
+
/**
|
|
2
|
+
* pware.oc.core.constants
|
|
3
|
+
*
|
|
4
|
+
* Single source of truth for the plugin's string literals: OpenCode host
|
|
5
|
+
* literals (part types, host event types, tool names) plus the plugin's own
|
|
6
|
+
* canonical vocabularies (statuses, pulse/marks, row kinds, event kinds,
|
|
7
|
+
* My work groups, Perf/self phases).
|
|
8
|
+
*/
|
|
9
|
+
export * from "./pware.oc.core.constants.partType.js"
|
|
10
|
+
export * from "./pware.oc.core.constants.eventType.js"
|
|
11
|
+
export * from "./pware.oc.core.constants.toolName.js"
|
|
12
|
+
export * from "./pware.oc.core.constants.status.js"
|
|
13
|
+
export * from "./pware.oc.core.constants.pulse.js"
|
|
14
|
+
export * from "./pware.oc.core.constants.eventKind.js"
|
|
15
|
+
export * from "./pware.oc.core.constants.rowKind.js"
|
|
16
|
+
export * from "./pware.oc.core.constants.myWork.js"
|
|
17
|
+
export * from "./pware.oc.core.constants.phase.js"
|
|
18
|
+
export * from "./pware.oc.core.constants.eventName.js"
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* pware.oc.core.constants.eventkind
|
|
3
|
-
*
|
|
4
|
-
* The plugin's own classification of host events — the four buckets the panel
|
|
5
|
-
* reacts to. `pware.oc.core.events.ts` maps raw event types onto these.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/** Event kind: model flow (delta / step / status). */
|
|
9
|
-
export const EVENT_KIND_FLOW = "flow"
|
|
10
|
-
|
|
11
|
-
/** Event kind: a tool call. */
|
|
12
|
-
export const EVENT_KIND_TOOL = "tool"
|
|
13
|
-
|
|
14
|
-
/** Event kind: a file was edited. */
|
|
15
|
-
export const EVENT_KIND_FILE = "file"
|
|
16
|
-
|
|
17
|
-
/** Event kind: the database should be re-read. */
|
|
18
|
-
export const EVENT_KIND_DB_REFRESH = "db-refresh"
|
|
19
|
-
|
|
20
|
-
/** Every host event kind the plugin recognizes. */
|
|
21
|
-
export const EVENT_KINDS = [
|
|
22
|
-
EVENT_KIND_FLOW,
|
|
23
|
-
EVENT_KIND_TOOL,
|
|
24
|
-
EVENT_KIND_FILE,
|
|
25
|
-
EVENT_KIND_DB_REFRESH,
|
|
26
|
-
] as const
|
|
27
|
-
|
|
28
|
-
/** A host event kind. */
|
|
29
|
-
export type EventKind = (typeof EVENT_KINDS)[number]
|
|
1
|
+
/**
|
|
2
|
+
* pware.oc.core.constants.eventkind
|
|
3
|
+
*
|
|
4
|
+
* The plugin's own classification of host events — the four buckets the panel
|
|
5
|
+
* reacts to. `pware.oc.core.events.ts` maps raw event types onto these.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/** Event kind: model flow (delta / step / status). */
|
|
9
|
+
export const EVENT_KIND_FLOW = "flow"
|
|
10
|
+
|
|
11
|
+
/** Event kind: a tool call. */
|
|
12
|
+
export const EVENT_KIND_TOOL = "tool"
|
|
13
|
+
|
|
14
|
+
/** Event kind: a file was edited. */
|
|
15
|
+
export const EVENT_KIND_FILE = "file"
|
|
16
|
+
|
|
17
|
+
/** Event kind: the database should be re-read. */
|
|
18
|
+
export const EVENT_KIND_DB_REFRESH = "db-refresh"
|
|
19
|
+
|
|
20
|
+
/** Every host event kind the plugin recognizes. */
|
|
21
|
+
export const EVENT_KINDS = [
|
|
22
|
+
EVENT_KIND_FLOW,
|
|
23
|
+
EVENT_KIND_TOOL,
|
|
24
|
+
EVENT_KIND_FILE,
|
|
25
|
+
EVENT_KIND_DB_REFRESH,
|
|
26
|
+
] as const
|
|
27
|
+
|
|
28
|
+
/** A host event kind. */
|
|
29
|
+
export type EventKind = (typeof EVENT_KINDS)[number]
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
export const EV_OES_REFRESH_HINT = "pware.oes.refresh.hint"
|
|
2
|
-
export const EV_OES_SNAPSHOT = "pware.oes.snapshot"
|
|
3
|
-
export const EV_OES_SESSION_SELECT = "pware.oes.session.select"
|
|
4
|
-
export const EV_OES_QUESTION_HINT = "pware.oes.question.hint"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
export const EV_OES_REFRESH_HINT = "pware.oes.refresh.hint"
|
|
2
|
+
export const EV_OES_SNAPSHOT = "pware.oes.snapshot"
|
|
3
|
+
export const EV_OES_SESSION_SELECT = "pware.oes.session.select"
|
|
4
|
+
export const EV_OES_QUESTION_HINT = "pware.oes.question.hint"
|
|
5
|
+
export const EV_OES_REFRESH_MY_WORK = "pware.oes.mywork.refresh"
|
|
6
|
+
|
|
7
|
+
export const OES_EVENT_NAMES = [
|
|
8
|
+
EV_OES_REFRESH_HINT,
|
|
9
|
+
EV_OES_SNAPSHOT,
|
|
10
|
+
EV_OES_SESSION_SELECT,
|
|
11
|
+
EV_OES_QUESTION_HINT,
|
|
12
|
+
EV_OES_REFRESH_MY_WORK,
|
|
13
|
+
] as const
|
|
14
|
+
|
|
15
|
+
export type OesEventName = (typeof OES_EVENT_NAMES)[number]
|