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
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { DivoomEvent, DivoomStatus, DivoomStatusManagerOptions, DivoomStatusUpdate, DivoomTransport } from './types';
|
|
2
|
+
export declare class DryRunDivoomTransport implements DivoomTransport {
|
|
3
|
+
sendStatus(update: DivoomStatusUpdate): Promise<void>;
|
|
4
|
+
}
|
|
5
|
+
export declare class DivoomStatusManager {
|
|
6
|
+
private readonly enabled;
|
|
7
|
+
private readonly debounceMs;
|
|
8
|
+
private readonly transport;
|
|
9
|
+
private readonly now;
|
|
10
|
+
private readonly schedule;
|
|
11
|
+
private readonly clearSchedule;
|
|
12
|
+
private readonly sessions;
|
|
13
|
+
private currentStatus;
|
|
14
|
+
private pendingStatus;
|
|
15
|
+
private pendingReason;
|
|
16
|
+
private pendingTimer;
|
|
17
|
+
private quiescentIdleTimer;
|
|
18
|
+
private readonly beforeExitHandler?;
|
|
19
|
+
constructor(options?: DivoomStatusManagerOptions);
|
|
20
|
+
handleEvent(input: {
|
|
21
|
+
event: DivoomEvent;
|
|
22
|
+
}): Promise<void>;
|
|
23
|
+
dispose(): Promise<void>;
|
|
24
|
+
getStatus(): DivoomStatus;
|
|
25
|
+
private deriveStatus;
|
|
26
|
+
private requestStatus;
|
|
27
|
+
private flushPendingStatus;
|
|
28
|
+
private scheduleQuiescentIdle;
|
|
29
|
+
private clearQuiescentIdle;
|
|
30
|
+
}
|
|
31
|
+
export declare function createDivoomStatusManager(options?: DivoomStatusManagerOptions): DivoomStatusManager;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DIVOOM_SWIFT_HELPER_SOURCE: string;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { DivoomConfig } from '../../config';
|
|
2
|
+
import type { CommandRunner, DivoomStatusUpdate, DivoomTransport } from './types';
|
|
3
|
+
export type SwiftDivoomTransportOptions = {
|
|
4
|
+
config: DivoomConfig;
|
|
5
|
+
storageDir?: string;
|
|
6
|
+
runner?: CommandRunner;
|
|
7
|
+
platform?: NodeJS.Platform;
|
|
8
|
+
};
|
|
9
|
+
export declare class SwiftDivoomTransport implements DivoomTransport {
|
|
10
|
+
private readonly deviceAddress;
|
|
11
|
+
private readonly faces;
|
|
12
|
+
private readonly storageDir;
|
|
13
|
+
private readonly runner;
|
|
14
|
+
private readonly platform;
|
|
15
|
+
private helperPath;
|
|
16
|
+
private preparePromise;
|
|
17
|
+
constructor(options: SwiftDivoomTransportOptions);
|
|
18
|
+
sendStatus(update: DivoomStatusUpdate): Promise<void>;
|
|
19
|
+
private prepareHelper;
|
|
20
|
+
private compileHelper;
|
|
21
|
+
}
|
|
22
|
+
export declare function createDivoomTransport(options: {
|
|
23
|
+
config?: DivoomConfig;
|
|
24
|
+
storageDir?: string;
|
|
25
|
+
runner?: CommandRunner;
|
|
26
|
+
}): DivoomTransport | undefined;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { DivoomConfig } from '../../config';
|
|
2
|
+
export type DivoomStatus = 'idle' | 'working' | 'alerting';
|
|
3
|
+
export type DivoomEvent = {
|
|
4
|
+
type: string;
|
|
5
|
+
properties?: {
|
|
6
|
+
info?: {
|
|
7
|
+
id?: string;
|
|
8
|
+
parentID?: string;
|
|
9
|
+
title?: string;
|
|
10
|
+
agent?: string;
|
|
11
|
+
sessionID?: string;
|
|
12
|
+
};
|
|
13
|
+
sessionID?: string;
|
|
14
|
+
status?: {
|
|
15
|
+
type: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export type DivoomStatusUpdate = {
|
|
20
|
+
status: DivoomStatus;
|
|
21
|
+
reason: string;
|
|
22
|
+
timestamp: number;
|
|
23
|
+
};
|
|
24
|
+
export interface DivoomTransport {
|
|
25
|
+
sendStatus(update: DivoomStatusUpdate): Promise<void>;
|
|
26
|
+
dispose?(): Promise<void> | void;
|
|
27
|
+
}
|
|
28
|
+
export type DivoomStatusManagerOptions = {
|
|
29
|
+
config?: DivoomConfig;
|
|
30
|
+
transport?: DivoomTransport;
|
|
31
|
+
storageDir?: string;
|
|
32
|
+
registerBeforeExit?: boolean;
|
|
33
|
+
now?: () => number;
|
|
34
|
+
schedule?: (callback: () => void, delayMs: number) => unknown;
|
|
35
|
+
clearSchedule?: (timer: unknown) => void;
|
|
36
|
+
};
|
|
37
|
+
export type DivoomStatusFaceMap = Record<DivoomStatus, number>;
|
|
38
|
+
export type CommandRunner = (command: string, args: string[]) => Promise<{
|
|
39
|
+
stdout: string;
|
|
40
|
+
stderr: string;
|
|
41
|
+
}>;
|
|
@@ -10,12 +10,17 @@ export declare class TmuxMultiplexer implements Multiplexer {
|
|
|
10
10
|
private storedLayout;
|
|
11
11
|
private storedMainPaneSize;
|
|
12
12
|
private targetPane;
|
|
13
|
+
private layoutTimer?;
|
|
14
|
+
private layoutGeneration;
|
|
13
15
|
constructor(layout?: MultiplexerLayout, mainPaneSize?: number);
|
|
14
16
|
isAvailable(): Promise<boolean>;
|
|
15
17
|
isInsideSession(): boolean;
|
|
16
18
|
spawnPane(sessionId: string, description: string, serverUrl: string, directory: string): Promise<PaneResult>;
|
|
17
19
|
closePane(paneId: string): Promise<boolean>;
|
|
18
20
|
applyLayout(layout: MultiplexerLayout, mainPaneSize: number): Promise<void>;
|
|
21
|
+
private scheduleLayout;
|
|
22
|
+
private applyLayoutNow;
|
|
23
|
+
private runTmux;
|
|
19
24
|
private getBinary;
|
|
20
25
|
private targetArgs;
|
|
21
26
|
private findBinary;
|
package/dist/tools/council.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type PluginInput, type ToolDefinition } from
|
|
2
|
-
import type { CouncilManager } from
|
|
1
|
+
import { type PluginInput, type ToolDefinition } from '@opencode-ai/plugin';
|
|
2
|
+
import type { CouncilManager } from '../council/council-manager';
|
|
3
3
|
/**
|
|
4
4
|
* Creates the council_session tool for multi-LLM orchestration.
|
|
5
5
|
*
|
package/dist/tui.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { TuiPluginModule } from '@opencode-ai/plugin/tui';
|
|
|
2
2
|
import { type TuiSnapshot } from './tui-state';
|
|
3
3
|
export declare function formatSidebarModelName(model: string): string;
|
|
4
4
|
export declare function getSidebarAgentNames(snapshot: TuiSnapshot): string[];
|
|
5
|
+
export declare function readConfigInvalid(directory: string): boolean;
|
|
5
6
|
declare const plugin: TuiPluginModule & {
|
|
6
7
|
id: string;
|
|
7
8
|
};
|