opencode-overclock 0.1.0
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/LICENSE +21 -0
- package/README.md +120 -0
- package/package.json +49 -0
- package/src/config.ts +19 -0
- package/src/features/checkpoints.ts +127 -0
- package/src/features/guard.ts +227 -0
- package/src/features/index.ts +10 -0
- package/src/features/sandbox.ts +102 -0
- package/src/features/sched.ts +162 -0
- package/src/features/tasks.ts +345 -0
- package/src/features/usage.ts +270 -0
- package/src/index.ts +39 -0
- package/src/lib/busy.ts +25 -0
- package/src/lib/inject.ts +56 -0
- package/src/lib/probe.ts +15 -0
- package/src/lib/state.ts +27 -0
- package/src/merge.ts +35 -0
- package/src/tui.ts +227 -0
- package/src/types.ts +21 -0
package/src/types.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Hooks, PluginInput } from "@opencode-ai/plugin"
|
|
2
|
+
|
|
3
|
+
/** Per-feature config from .opencode/overclock.json. `false` = off, object = options. */
|
|
4
|
+
export type FeatureConfig = boolean | Record<string, unknown>
|
|
5
|
+
|
|
6
|
+
export interface OverclockConfig {
|
|
7
|
+
features?: Record<string, FeatureConfig>
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* One feature = one module.
|
|
12
|
+
* init returns partial Hooks. Same hook from many modules -> composed in registry order.
|
|
13
|
+
*/
|
|
14
|
+
export interface FeatureModule {
|
|
15
|
+
name: string
|
|
16
|
+
/** on by default? */
|
|
17
|
+
defaultEnabled: boolean
|
|
18
|
+
/** SDK client surfaces (dot-paths) the module needs. Missing -> module skipped + warn. */
|
|
19
|
+
requires?: string[]
|
|
20
|
+
init(ctx: PluginInput, options: Record<string, unknown>): Promise<Partial<Hooks>>
|
|
21
|
+
}
|