oh-my-opencode 5.0.0-beta.13 → 5.0.0-beta.14
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.ja.md +25 -21
- package/README.ko.md +25 -21
- package/README.md +26 -22
- package/README.ru.md +24 -20
- package/README.zh-cn.md +25 -21
- package/dist/cli/index.js +12628 -13558
- package/dist/cli-node/index.js +12628 -13558
- package/dist/features/btw-side/tui-controller-types.d.ts +5 -0
- package/dist/features/btw-side/tui-controller.d.ts +8 -3
- package/dist/features/btw-side/tui-escape-return.d.ts +12 -0
- package/dist/features/btw-side/tui-keymap.d.ts +8 -1
- package/dist/features/btw-side/tui-picker-options.d.ts +20 -0
- package/dist/features/btw-side/tui-picker.d.ts +9 -0
- package/dist/features/btw-side/tui-session-catalog.d.ts +35 -0
- package/dist/features/btw-side/tui-side-start.d.ts +1 -1
- package/dist/features/opengateway-provider/index.d.ts +13 -0
- package/dist/index.js +8462 -6318
- package/dist/skills/frontend/SKILL.md +1 -0
- package/dist/skills/frontend/references/design/print-paged-media.md +76 -0
- package/dist/skills/ulw-research/SKILL.md +1 -1
- package/dist/skills/visual-qa/SKILL.md +3 -2
- package/dist/tui.js +3993 -5513
- package/package.json +22 -22
- package/packages/git-bash-mcp/package.json +1 -1
- package/packages/lsp-daemon/dist/cli.js +81 -113
- package/packages/lsp-daemon/dist/client.js +82 -117
- package/packages/lsp-daemon/dist/ensure-daemon.js +1 -0
- package/packages/lsp-daemon/dist/index.js +88 -122
- package/packages/lsp-daemon/dist/version-reap.js +1 -1
- package/packages/lsp-tools-mcp/dist/cli.js +62 -93
- package/packages/lsp-tools-mcp/dist/lsp/manager.js +62 -92
- package/packages/lsp-tools-mcp/dist/mcp.js +64 -95
- package/packages/lsp-tools-mcp/dist/request-context.js +11 -12
- package/packages/lsp-tools-mcp/dist/tools.js +73 -104
- package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/dist/cli.js +30 -29
- package/packages/omo-codex/plugin/components/bootstrap/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/package.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/src/hook.ts +1 -0
- package/packages/omo-codex/plugin/components/codegraph/dist/cli.js +81 -64
- package/packages/omo-codex/plugin/components/codegraph/dist/serve.js +81 -65
- package/packages/omo-codex/plugin/components/codegraph/package.json +4 -4
- package/packages/omo-codex/plugin/components/codegraph/src/mcp-bridge.ts +1 -0
- package/packages/omo-codex/plugin/components/codegraph/src/session-start-hook-runtime.ts +1 -0
- package/packages/omo-codex/plugin/components/comment-checker/dist/cli.js +2 -1
- package/packages/omo-codex/plugin/components/comment-checker/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/comment-checker/package.json +5 -5
- package/packages/omo-codex/plugin/components/comment-checker/src/runner.ts +1 -0
- package/packages/omo-codex/plugin/components/git-bash/AGENTS.md +1 -1
- package/packages/omo-codex/plugin/components/git-bash/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/git-bash/package.json +3 -4
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/package.json +5 -5
- package/packages/omo-codex/plugin/components/lsp/dist/.omo-runtime-manifest.json +3 -3
- package/packages/omo-codex/plugin/components/lsp/dist/cli.js +70 -107
- package/packages/omo-codex/plugin/components/lsp/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/lsp/package.json +5 -5
- package/packages/omo-codex/plugin/components/lsp/src/cli.ts +1 -1
- package/packages/omo-codex/plugin/components/rules/dist/cli.js +14 -12
- package/packages/omo-codex/plugin/components/rules/hooks/hooks.json +4 -4
- package/packages/omo-codex/plugin/components/rules/package.json +7 -7
- package/packages/omo-codex/plugin/components/start-work-continuation/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/start-work-continuation/package.json +5 -5
- package/packages/omo-codex/plugin/components/teammode/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/teammode/package.json +5 -5
- package/packages/omo-codex/plugin/components/telemetry/dist/cli.js +25 -25
- package/packages/omo-codex/plugin/components/telemetry/dist/posthog.js +31 -31
- package/packages/omo-codex/plugin/components/telemetry/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/telemetry/package.json +5 -5
- package/packages/omo-codex/plugin/components/ultrawork/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/package.json +5 -5
- package/packages/omo-codex/plugin/components/ulw-loop/dist/cli.js +1 -3
- package/packages/omo-codex/plugin/components/ulw-loop/dist/paths.js +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +4 -4
- package/packages/omo-codex/plugin/components/ulw-loop/package.json +5 -5
- package/packages/omo-codex/plugin/components/ulw-loop/src/paths.ts +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/test/cli-create-goals.test.ts +25 -0
- package/packages/omo-codex/plugin/components/ulw-loop/test/paths.test.ts +9 -0
- package/packages/omo-codex/plugin/components/ulw-loop/vitest.config.ts +1 -0
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-git-bash-mcp-reminder.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-lsp-diagnostics-cache.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-project-rule-cache.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-codegraph-init-guidance.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-comments.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-lsp-diagnostics.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-thread-title-hygiene.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-matching-project-rules.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-guarding-ulw-loop-spawns.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-recommending-git-bash-mcp.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-auto-update.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-bootstrap-provisioning.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-codegraph-bootstrap.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-loading-project-rules.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-recording-session-telemetry.json +1 -1
- package/packages/omo-codex/plugin/hooks/stop-checking-start-work-continuation.json +1 -1
- package/packages/omo-codex/plugin/hooks/stop-checking-ulw-loop-resume.json +1 -1
- package/packages/omo-codex/plugin/hooks/subagent-stop-checking-start-work-continuation.json +1 -1
- package/packages/omo-codex/plugin/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ultrawork-trigger.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ulw-loop-steering.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-loading-project-rules.json +1 -1
- package/packages/omo-codex/plugin/package-lock.json +661 -375
- package/packages/omo-codex/plugin/package.json +1 -1
- package/packages/omo-codex/plugin/shared/package.json +2 -3
- package/packages/omo-codex/plugin/skills/frontend/SKILL.md +1 -0
- package/packages/omo-codex/plugin/skills/frontend/references/design/print-paged-media.md +76 -0
- package/packages/omo-codex/plugin/skills/ulw-research/SKILL.md +1 -1
- package/packages/omo-codex/plugin/skills/visual-qa/SKILL.md +3 -2
- package/packages/omo-codex/scripts/install-dist/install-local.mjs +53 -53
- package/packages/shared-skills/skills/frontend/SKILL.md +1 -0
- package/packages/shared-skills/skills/frontend/references/design/print-paged-media.md +76 -0
- package/packages/shared-skills/skills/ulw-research/SKILL.md +1 -1
- package/packages/shared-skills/skills/visual-qa/SKILL.md +3 -2
- package/script/qa/web-terminal-visual-qa.mjs +2 -0
- package/script/qa/xterm-live-terminal.mjs +18 -2
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
import type { BtwPromptRef, BtwSideControllerDependencies, BtwSideState } from "./tui-controller-types";
|
|
1
|
+
import type { BtwPromptRef, BtwSideControllerDependencies, BtwSideRecord, BtwSideState } from "./tui-controller-types";
|
|
2
2
|
export declare function createBtwSideController(dependencies: BtwSideControllerDependencies): {
|
|
3
3
|
state: () => BtwSideState;
|
|
4
|
-
|
|
4
|
+
sides: () => BtwSideRecord[];
|
|
5
|
+
side: (sessionID: string) => BtwSideRecord | undefined;
|
|
6
|
+
sideNumber: (sessionID: string) => number | undefined;
|
|
7
|
+
rootParent: (sessionID: string) => string;
|
|
8
|
+
startFromPrompt: (promptRef: BtwPromptRef, parentSessionID?: string | undefined) => Promise<boolean>;
|
|
5
9
|
attachPromptRef: (sessionID: string, promptRef: BtwPromptRef | undefined) => void;
|
|
6
10
|
toggle: () => void;
|
|
7
11
|
close: () => Promise<void>;
|
|
12
|
+
returnToParent: () => void;
|
|
8
13
|
handleNavigation: (sessionID: string) => Promise<void>;
|
|
9
14
|
handleSessionDeleted: (sessionID: string) => void;
|
|
10
15
|
canCloseCurrentSide: () => boolean;
|
|
11
|
-
adopt: (parentSessionID: string, sideSessionID: string) => void;
|
|
16
|
+
adopt: (parentSessionID: string, sideSessionID: string, sideNumber?: number) => void;
|
|
12
17
|
waitUntilClosed: () => Promise<void>;
|
|
13
18
|
dispose: () => Promise<void>;
|
|
14
19
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { KeyEvent } from "@opentui/core";
|
|
2
|
+
import type { KeyInputContext } from "@opentui/keymap";
|
|
3
|
+
export declare function createBtwEscapeReturn(args: {
|
|
4
|
+
isCurrentSideIdle: () => boolean;
|
|
5
|
+
isDialogOpen: () => boolean;
|
|
6
|
+
clearPending: () => void;
|
|
7
|
+
returnToParent: () => void;
|
|
8
|
+
now?: () => number;
|
|
9
|
+
}): {
|
|
10
|
+
handle: (context: KeyInputContext<KeyEvent>) => void;
|
|
11
|
+
reset: () => void;
|
|
12
|
+
};
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import type { TuiPluginApi, TuiPromptRef } from "@opencode-ai/plugin/tui";
|
|
2
2
|
import type { createBtwSideController } from "./tui-controller";
|
|
3
3
|
type BtwSideController = ReturnType<typeof createBtwSideController>;
|
|
4
|
+
export type BtwSideKeymapRegistration = {
|
|
5
|
+
unregister: Array<() => void>;
|
|
6
|
+
resetEscapeSequence: () => void;
|
|
7
|
+
};
|
|
4
8
|
export declare function registerBtwSideKeymap(args: {
|
|
5
9
|
api: TuiPluginApi;
|
|
6
10
|
controller: BtwSideController;
|
|
7
11
|
activePromptRef: () => TuiPromptRef | undefined;
|
|
8
12
|
openBtw: () => Promise<void>;
|
|
9
|
-
|
|
13
|
+
openPicker: () => Promise<void>;
|
|
14
|
+
isCurrentSideIdle: () => boolean;
|
|
15
|
+
returnToParent: () => void;
|
|
16
|
+
}): BtwSideKeymapRegistration;
|
|
10
17
|
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { BtwSessionCatalog } from "./tui-session-catalog";
|
|
2
|
+
export type BtwPickerOption = {
|
|
3
|
+
title: string;
|
|
4
|
+
value: string;
|
|
5
|
+
description: string;
|
|
6
|
+
category: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export type BtwPickerSelection = {
|
|
10
|
+
type: "session";
|
|
11
|
+
sessionID: string;
|
|
12
|
+
} | {
|
|
13
|
+
type: "new";
|
|
14
|
+
parentSessionID: string;
|
|
15
|
+
};
|
|
16
|
+
export declare function parseBtwPickerValue(value: string): BtwPickerSelection | undefined;
|
|
17
|
+
export declare function buildBtwPickerOptions(catalog: BtwSessionCatalog, currentSessionID: string): {
|
|
18
|
+
options: BtwPickerOption[];
|
|
19
|
+
current: string;
|
|
20
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TuiPluginApi, TuiPromptRef } from "@opencode-ai/plugin/tui";
|
|
2
|
+
import type { createBtwSideController } from "./tui-controller";
|
|
3
|
+
type BtwSideController = ReturnType<typeof createBtwSideController>;
|
|
4
|
+
export declare function openBtwPicker(args: {
|
|
5
|
+
api: TuiPluginApi;
|
|
6
|
+
controller: BtwSideController;
|
|
7
|
+
activePromptRef: () => TuiPromptRef | undefined;
|
|
8
|
+
}): Promise<boolean>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export type BtwCatalogSession = {
|
|
2
|
+
id: string;
|
|
3
|
+
title: string;
|
|
4
|
+
metadata?: Record<string, unknown>;
|
|
5
|
+
time: {
|
|
6
|
+
created: number;
|
|
7
|
+
updated: number;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export type BtwSessionCatalog = {
|
|
11
|
+
main: BtwCatalogSession;
|
|
12
|
+
sides: BtwCatalogSession[];
|
|
13
|
+
};
|
|
14
|
+
type BtwSessionListInput = {
|
|
15
|
+
directory: string;
|
|
16
|
+
roots: false;
|
|
17
|
+
limit: number;
|
|
18
|
+
};
|
|
19
|
+
type BtwSessionListResponse = {
|
|
20
|
+
data?: BtwCatalogSession[];
|
|
21
|
+
error?: unknown;
|
|
22
|
+
};
|
|
23
|
+
type LoadBtwSessionCatalogInput = {
|
|
24
|
+
currentSessionID: string;
|
|
25
|
+
directory: string;
|
|
26
|
+
listSessions: (input: BtwSessionListInput) => Promise<BtwSessionListResponse>;
|
|
27
|
+
initialLimit?: number;
|
|
28
|
+
maximumLimit?: number;
|
|
29
|
+
};
|
|
30
|
+
export declare function classifyBtwSessionCatalog(sessions: BtwCatalogSession[], currentSessionID: string): BtwSessionCatalog | undefined;
|
|
31
|
+
export declare function loadBtwSessionCatalog(input: LoadBtwSessionCatalogInput): Promise<{
|
|
32
|
+
catalog: BtwSessionCatalog | undefined;
|
|
33
|
+
truncated: boolean;
|
|
34
|
+
}>;
|
|
35
|
+
export {};
|
|
@@ -6,4 +6,4 @@ export type PreparedBtwSideStart = {
|
|
|
6
6
|
question: string;
|
|
7
7
|
createInput: BtwCreateSessionInput;
|
|
8
8
|
};
|
|
9
|
-
export declare function prepareBtwSideStart(dependencies: BtwSideControllerDependencies, promptRef: BtwPromptRef): PreparedBtwSideStart | undefined;
|
|
9
|
+
export declare function prepareBtwSideStart(dependencies: BtwSideControllerDependencies, promptRef: BtwPromptRef, parentSessionID?: string | undefined): PreparedBtwSideStart | undefined;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Injects OpenGateway into opencode's live config so its models appear without
|
|
3
|
+
* the user hand-writing a provider block.
|
|
4
|
+
*
|
|
5
|
+
* opencode activates every `config.provider` entry regardless of credentials, so
|
|
6
|
+
* the injection is gated on an actual credential: the API key env var, or an
|
|
7
|
+
* `opengateway` entry in opencode's auth.json. Without one, the config is left
|
|
8
|
+
* exactly as it came in.
|
|
9
|
+
*/
|
|
10
|
+
export declare const OPENGATEWAY_PROVIDER_ID = "opengateway";
|
|
11
|
+
export declare const OPENGATEWAY_BASE_URL = "https://apis.opengateway.ai/v1";
|
|
12
|
+
export declare const OPENGATEWAY_ENV_VAR = "OPENGATEWAY_API_KEY";
|
|
13
|
+
export declare function applyOpenGatewayProviderConfig(config: Record<string, unknown>): void;
|