oh-my-opencode-slim 1.0.6 → 1.0.7
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/README.md +22 -14
- package/dist/cli/divoom.d.ts +23 -0
- package/dist/cli/doctor.d.ts +38 -0
- package/dist/cli/index.js +306 -13
- package/dist/cli/providers.d.ts +3 -0
- package/dist/config/council-schema.d.ts +2 -2
- package/dist/config/index.d.ts +1 -1
- package/dist/config/loader.d.ts +46 -1
- package/dist/config/schema.d.ts +23 -0
- package/dist/divoom/council.gif +0 -0
- package/dist/divoom/designer.gif +0 -0
- package/dist/divoom/explorer.gif +0 -0
- package/dist/divoom/fixer.gif +0 -0
- package/dist/divoom/input.gif +0 -0
- package/dist/divoom/intro.gif +0 -0
- package/dist/divoom/librarian.gif +0 -0
- package/dist/divoom/manager.d.ts +57 -0
- package/dist/divoom/oracle.gif +0 -0
- package/dist/divoom/orchestrator.gif +0 -0
- package/dist/index.js +722 -237
- package/dist/integrations/divoom/index.d.ts +3 -0
- package/dist/integrations/divoom/status-manager.d.ts +31 -0
- package/dist/integrations/divoom/swift-helper-source.d.ts +1 -0
- package/dist/integrations/divoom/swift-transport.d.ts +26 -0
- package/dist/integrations/divoom/types.d.ts +41 -0
- package/dist/multiplexer/tmux/index.d.ts +5 -0
- package/dist/tools/council.d.ts +2 -2
- package/dist/tui.d.ts +1 -0
- package/dist/tui.js +623 -11
- package/dist/utils/session.d.ts +10 -4
- package/oh-my-opencode-slim.schema.json +59 -0
- package/package.json +3 -2
package/dist/utils/session.d.ts
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shared session utilities for council and background managers.
|
|
3
3
|
*/
|
|
4
|
-
import type { PluginInput } from
|
|
5
|
-
type OpencodeClient = PluginInput[
|
|
4
|
+
import type { PluginInput } from '@opencode-ai/plugin';
|
|
5
|
+
type OpencodeClient = PluginInput['client'];
|
|
6
|
+
export declare const SESSION_ABORT_TIMEOUT_MS = 1000;
|
|
7
|
+
export declare class OperationTimeoutError extends Error {
|
|
8
|
+
constructor(message: string);
|
|
9
|
+
}
|
|
10
|
+
export declare function withTimeout<T>(operation: Promise<T>, timeoutMs: number, message: string): Promise<T>;
|
|
11
|
+
export declare function abortSessionWithTimeout(client: OpencodeClient, sessionId: string, timeoutMs?: number): Promise<void>;
|
|
6
12
|
/**
|
|
7
13
|
* Extract the short model label from a "provider/model" string.
|
|
8
14
|
* E.g. "openai/gpt-5.4-mini" → "gpt-5.4-mini"
|
|
@@ -21,7 +27,7 @@ export type PromptBody = {
|
|
|
21
27
|
[key: string]: boolean;
|
|
22
28
|
};
|
|
23
29
|
parts: Array<{
|
|
24
|
-
type:
|
|
30
|
+
type: 'text';
|
|
25
31
|
text: string;
|
|
26
32
|
}>;
|
|
27
33
|
variant?: string;
|
|
@@ -43,7 +49,7 @@ export declare function parseModelReference(model: string): {
|
|
|
43
49
|
* @param timeoutMs - Timeout in milliseconds (0 = no timeout)
|
|
44
50
|
* @throws Error if timeout is exceeded
|
|
45
51
|
*/
|
|
46
|
-
export declare function promptWithTimeout(client: OpencodeClient, args: Parameters<OpencodeClient[
|
|
52
|
+
export declare function promptWithTimeout(client: OpencodeClient, args: Parameters<OpencodeClient['session']['prompt']>[0], timeoutMs: number): Promise<void>;
|
|
47
53
|
/**
|
|
48
54
|
* Result of extracting session content.
|
|
49
55
|
* `empty` is true when the assistant produced zero text content —
|
|
@@ -509,6 +509,65 @@
|
|
|
509
509
|
}
|
|
510
510
|
}
|
|
511
511
|
},
|
|
512
|
+
"divoom": {
|
|
513
|
+
"type": "object",
|
|
514
|
+
"properties": {
|
|
515
|
+
"enabled": {
|
|
516
|
+
"default": false,
|
|
517
|
+
"type": "boolean"
|
|
518
|
+
},
|
|
519
|
+
"python": {
|
|
520
|
+
"default": "/Applications/Divoom MiniToo.app/Contents/Resources/.venv/bin/python",
|
|
521
|
+
"type": "string",
|
|
522
|
+
"minLength": 1
|
|
523
|
+
},
|
|
524
|
+
"script": {
|
|
525
|
+
"default": "/Applications/Divoom MiniToo.app/Contents/Resources/tools/divoom_send.py",
|
|
526
|
+
"type": "string",
|
|
527
|
+
"minLength": 1
|
|
528
|
+
},
|
|
529
|
+
"size": {
|
|
530
|
+
"default": 128,
|
|
531
|
+
"type": "integer",
|
|
532
|
+
"minimum": 1,
|
|
533
|
+
"maximum": 1024
|
|
534
|
+
},
|
|
535
|
+
"fps": {
|
|
536
|
+
"default": 8,
|
|
537
|
+
"type": "integer",
|
|
538
|
+
"minimum": 1,
|
|
539
|
+
"maximum": 60
|
|
540
|
+
},
|
|
541
|
+
"speed": {
|
|
542
|
+
"default": 125,
|
|
543
|
+
"type": "integer",
|
|
544
|
+
"minimum": 1,
|
|
545
|
+
"maximum": 10000
|
|
546
|
+
},
|
|
547
|
+
"maxFrames": {
|
|
548
|
+
"default": 24,
|
|
549
|
+
"type": "integer",
|
|
550
|
+
"minimum": 1,
|
|
551
|
+
"maximum": 500
|
|
552
|
+
},
|
|
553
|
+
"posterizeBits": {
|
|
554
|
+
"default": 3,
|
|
555
|
+
"type": "integer",
|
|
556
|
+
"minimum": 1,
|
|
557
|
+
"maximum": 8
|
|
558
|
+
},
|
|
559
|
+
"gifs": {
|
|
560
|
+
"type": "object",
|
|
561
|
+
"propertyNames": {
|
|
562
|
+
"type": "string"
|
|
563
|
+
},
|
|
564
|
+
"additionalProperties": {
|
|
565
|
+
"type": "string",
|
|
566
|
+
"minLength": 1
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
},
|
|
512
571
|
"todoContinuation": {
|
|
513
572
|
"type": "object",
|
|
514
573
|
"properties": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oh-my-opencode-slim",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "Lightweight agent orchestration plugin for OpenCode - a slimmed-down fork of oh-my-opencode",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -48,7 +48,8 @@
|
|
|
48
48
|
"scripts": {
|
|
49
49
|
"build:plugin": "bun build src/index.ts src/tui.ts --outdir dist --target node --format esm --external @ast-grep/napi --external @opencode-ai/plugin --external @opencode-ai/sdk --external @opentui/core --external @opentui/solid --external jsdom --external zod",
|
|
50
50
|
"build:cli": "bun build src/cli/index.ts --outdir dist/cli --target node --format esm --external @ast-grep/napi --external @opencode-ai/plugin --external @opencode-ai/sdk --external jsdom --external zod",
|
|
51
|
-
"
|
|
51
|
+
"copy:divoom-assets": "bun run scripts/copy-divoom-assets.ts",
|
|
52
|
+
"build": "bun run build:plugin && bun run build:cli && bun run copy:divoom-assets && tsc --emitDeclarationOnly && bun run generate-schema",
|
|
52
53
|
"prepare": "bun run build",
|
|
53
54
|
"contributors:add": "all-contributors add",
|
|
54
55
|
"contributors:check": "all-contributors check",
|