evil-omo 3.17.0 → 3.17.5
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 +6 -2
- package/README.ko.md +6 -2
- package/README.ru.md +6 -2
- package/README.zh-cn.md +6 -2
- package/dist/__tests__/perf/fixtures/in-tree/packages/pkg-one/src/file-16.d.ts +1 -0
- package/dist/__tests__/perf/fixtures/in-tree/packages/pkg-one/src/file-17.d.ts +1 -0
- package/dist/__tests__/perf/fixtures/in-tree/packages/pkg-one/src/file-18.d.ts +1 -0
- package/dist/__tests__/perf/fixtures/in-tree/packages/pkg-one/src/file-19.d.ts +1 -0
- package/dist/__tests__/perf/fixtures/in-tree/packages/pkg-one/src/file-20.d.ts +1 -0
- package/dist/__tests__/perf/fixtures/in-tree/src/app/file-01.d.ts +1 -0
- package/dist/__tests__/perf/fixtures/in-tree/src/app/file-02.d.ts +1 -0
- package/dist/__tests__/perf/fixtures/in-tree/src/app/file-03.d.ts +1 -0
- package/dist/__tests__/perf/fixtures/in-tree/src/app/file-04.d.ts +1 -0
- package/dist/__tests__/perf/fixtures/in-tree/src/app/file-05.d.ts +1 -0
- package/dist/__tests__/perf/fixtures/in-tree/src/app/file-06.d.ts +1 -0
- package/dist/__tests__/perf/fixtures/in-tree/src/app/file-07.d.ts +1 -0
- package/dist/__tests__/perf/fixtures/in-tree/src/app/file-08.d.ts +1 -0
- package/dist/__tests__/perf/fixtures/in-tree/src/app/file-09.d.ts +1 -0
- package/dist/__tests__/perf/fixtures/in-tree/src/app/file-10.d.ts +1 -0
- package/dist/__tests__/perf/fixtures/in-tree/src/lib/file-11.d.ts +1 -0
- package/dist/__tests__/perf/fixtures/in-tree/src/lib/file-12.d.ts +1 -0
- package/dist/__tests__/perf/fixtures/in-tree/src/lib/file-13.d.ts +1 -0
- package/dist/__tests__/perf/fixtures/in-tree/src/lib/file-14.d.ts +1 -0
- package/dist/__tests__/perf/fixtures/in-tree/src/lib/file-15.d.ts +1 -0
- package/dist/agents/atlas/default-prompt-sections.d.ts +2 -2
- package/dist/agents/atlas/gemini-prompt-sections.d.ts +1 -1
- package/dist/agents/atlas/gpt-prompt-sections.d.ts +1 -1
- package/dist/agents/types.d.ts +1 -1
- package/dist/cli/doctor/spawn-with-timeout.d.ts +8 -0
- package/dist/cli/index.js +18440 -16031
- package/dist/cli/install-validators.d.ts +1 -0
- package/dist/cli/model-fallback-types.d.ts +1 -0
- package/dist/cli/provider-model-id-transform.d.ts +1 -1
- package/dist/cli/types.d.ts +3 -0
- package/dist/config/schema/agent-definitions.d.ts +3 -0
- package/dist/config/schema/background-task.d.ts +0 -1
- package/dist/config/schema/evil-omo-config.d.ts +11 -3
- package/dist/create-hooks.d.ts +2 -0
- package/dist/create-managers.d.ts +2 -0
- package/dist/create-tools.d.ts +3 -2
- package/dist/evil-omo.schema.json +24 -6
- package/dist/features/background-agent/index.d.ts +2 -0
- package/dist/features/background-agent/process-cleanup.test-helpers.d.ts +4 -0
- package/dist/features/background-agent/session-existence.d.ts +1 -1
- package/dist/features/background-agent/subagent-spawn-limits.d.ts +1 -8
- package/dist/features/background-agent/task-poller.d.ts +1 -0
- package/dist/features/background-agent/wait-for-task-session.d.ts +17 -0
- package/dist/features/builtin-commands/commands.d.ts +2 -1
- package/dist/features/claude-code-agent-loader/agent-definitions-loader.d.ts +3 -0
- package/dist/features/claude-code-agent-loader/index.d.ts +3 -0
- package/dist/features/claude-code-agent-loader/json-agent-loader.d.ts +2 -0
- package/dist/features/claude-code-agent-loader/loader.d.ts +2 -0
- package/dist/features/claude-code-agent-loader/opencode-config-agents-reader.d.ts +2 -0
- package/dist/features/claude-code-agent-loader/types.d.ts +9 -1
- package/dist/features/claude-code-command-loader/loader-cache.d.ts +6 -0
- package/dist/features/claude-code-command-loader/loader.d.ts +2 -0
- package/dist/features/team-mode/index.d.ts +2 -0
- package/dist/features/team-mode/team-layout-tmux/index.d.ts +1 -0
- package/dist/features/team-mode/team-layout-tmux/layout.d.ts +15 -0
- package/dist/features/team-mode/team-worktree/cleanup.d.ts +3 -0
- package/dist/features/team-mode/team-worktree/index.d.ts +2 -0
- package/dist/features/team-mode/team-worktree/manager.d.ts +15 -0
- package/dist/features/team-mode/types.d.ts +210 -0
- package/dist/features/tmux-subagent/event-handlers.d.ts +0 -4
- package/dist/features/tmux-subagent/index.d.ts +0 -3
- package/dist/features/tmux-subagent/manager.d.ts +4 -0
- package/dist/features/tmux-subagent/polling-manager.d.ts +2 -1
- package/dist/features/tool-metadata-store/index.d.ts +7 -0
- package/dist/features/tool-metadata-store/publish-tool-metadata.d.ts +9 -0
- package/dist/features/tool-metadata-store/recover-tool-metadata.d.ts +3 -0
- package/dist/features/tool-metadata-store/resolve-tool-call-id.d.ts +6 -0
- package/dist/features/tool-metadata-store/task-metadata-contract.d.ts +10 -0
- package/dist/hooks/atlas/system-reminder-templates.d.ts +2 -2
- package/dist/hooks/auto-update-checker/hook/deferred-startup-check.d.ts +1 -0
- package/dist/hooks/comment-checker/initialization-gate.d.ts +1 -0
- package/dist/hooks/directory-agents-injector/finder.d.ts +1 -1
- package/dist/hooks/directory-agents-injector/hook.d.ts +7 -7
- package/dist/hooks/directory-readme-injector/finder.d.ts +1 -1
- package/dist/hooks/directory-readme-injector/hook.d.ts +7 -7
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/keyword-detector/ultrawork/planner.d.ts +1 -1
- package/dist/hooks/model-fallback/controller-accessor.d.ts +8 -0
- package/dist/hooks/model-fallback/fallback-state-controller.d.ts +26 -0
- package/dist/hooks/model-fallback/hook.d.ts +21 -16
- package/dist/hooks/model-fallback/index.d.ts +2 -0
- package/dist/hooks/model-fallback/next-fallback.d.ts +8 -0
- package/dist/hooks/preemptive-compaction-trigger.d.ts +13 -0
- package/dist/hooks/preemptive-compaction-types.d.ts +53 -0
- package/dist/hooks/preemptive-compaction.d.ts +3 -15
- package/dist/hooks/rules-injector/cache.d.ts +5 -0
- package/dist/hooks/rules-injector/injector.d.ts +2 -0
- package/dist/hooks/rules-injector/project-root-finder.d.ts +1 -0
- package/dist/hooks/rules-injector/rule-file-finder.d.ts +2 -19
- package/dist/hooks/rules-injector/rule-scan-cache.d.ts +6 -0
- package/dist/hooks/session-notification-event-properties.d.ts +5 -0
- package/dist/hooks/session-notification-init.d.ts +7 -0
- package/dist/hooks/todo-continuation-enforcer/session-state.d.ts +1 -0
- package/dist/hooks/write-existing-file-guard/tool-execute-before-handler.d.ts +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +70250 -92660
- package/dist/openclaw/config.d.ts +1 -1
- package/dist/openclaw/dispatcher.d.ts +0 -1
- package/dist/openclaw/gateway-url-validation.d.ts +1 -0
- package/dist/plugin/hooks/create-core-hooks.d.ts +2 -0
- package/dist/plugin/hooks/create-session-hooks.d.ts +2 -0
- package/dist/plugin/tool-registry.d.ts +1 -1
- package/dist/shared/agent-tool-restrictions.d.ts +0 -5
- package/dist/shared/excluded-dirs.d.ts +1 -0
- package/dist/shared/index.d.ts +5 -0
- package/dist/shared/jsonc-parser.d.ts +8 -5
- package/dist/shared/load-opencode-plugins.d.ts +1 -0
- package/dist/shared/migration/migrations-sidecar.d.ts +1 -1
- package/dist/shared/model-capabilities/supplemental-entries.d.ts +2 -0
- package/dist/shared/opencode-provider-auth.d.ts +3 -0
- package/dist/shared/parse-tools-config.d.ts +6 -0
- package/dist/shared/permission-compat.d.ts +1 -1
- package/dist/shared/project-discovery-dirs.d.ts +2 -0
- package/dist/shared/resolve-agent-definition-paths.d.ts +1 -0
- package/dist/shared/ripgrep-cli.d.ts +8 -0
- package/dist/shared/tmux/tmux-utils/index.d.ts +1 -0
- package/dist/shared/tmux/tmux-utils/session-kill.d.ts +1 -0
- package/dist/shared/tmux/tmux-utils/session-spawn.d.ts +1 -0
- package/dist/shared/tmux/tmux-utils/spawn-process.d.ts +1 -0
- package/dist/shared/tmux/tmux-utils/stale-session-sweep.d.ts +11 -0
- package/dist/shared/tmux/tmux-utils.d.ts +3 -1
- package/dist/tools/ast-grep/pattern-hints.d.ts +4 -0
- package/dist/tools/ast-grep/tool-descriptions.d.ts +3 -0
- package/dist/tools/call-omo-agent/agent-resolver.d.ts +17 -0
- package/dist/tools/call-omo-agent/constants.d.ts +1 -1
- package/dist/tools/call-omo-agent/sync-executor.d.ts +2 -3
- package/dist/tools/call-omo-agent/tools.d.ts +2 -1
- package/dist/tools/delegate-task/background-continuation.d.ts +1 -1
- package/dist/tools/delegate-task/delegated-model-config.d.ts +3 -0
- package/dist/tools/delegate-task/executor-types.d.ts +2 -0
- package/dist/tools/delegate-task/fallback-entry-resolution.d.ts +12 -0
- package/dist/tools/delegate-task/fallback-entry-settings.d.ts +7 -0
- package/dist/tools/delegate-task/resolve-metadata-model.d.ts +9 -0
- package/dist/tools/delegate-task/subagent-discovery.d.ts +15 -0
- package/dist/tools/delegate-task/sync-continuation.d.ts +2 -2
- package/dist/tools/delegate-task/sync-task-fallback.d.ts +12 -0
- package/dist/tools/delegate-task/task-id.d.ts +2 -0
- package/dist/tools/delegate-task/tool-argument-preparation.d.ts +2 -0
- package/dist/tools/delegate-task/tool-description.d.ts +9 -0
- package/dist/tools/delegate-task/types.d.ts +4 -5
- package/dist/tools/glob/constants.d.ts +1 -1
- package/dist/tools/grep/cli.d.ts +1 -1
- package/dist/tools/grep/constants.d.ts +0 -8
- package/dist/tools/look-at/look-at-input-preparer.d.ts +22 -0
- package/dist/tools/look-at/look-at-prompt.d.ts +2 -0
- package/dist/tools/look-at/look-at-session-runner.d.ts +12 -0
- package/dist/tools/skill/constants.d.ts +1 -1
- package/dist/tools/skill/description-formatter.d.ts +1 -1
- package/dist/tools/skill/session-skill-cache.d.ts +1 -0
- package/dist/tools/skill-mcp/parse-skill-mcp-arguments.d.ts +1 -0
- package/package.json +20 -17
- package/dist/features/tmux-subagent/cleanup.d.ts +0 -9
- package/dist/features/tmux-subagent/session-created-handler.d.ts +0 -22
- package/dist/features/tmux-subagent/session-deleted-handler.d.ts +0 -15
- package/dist/plugin-dispose.d.ts +0 -13
- package/dist/tools/delegate-task/resolve-call-id.d.ts +0 -2
- /package/dist/{tools/delegate-task → shared}/model-string-parser.d.ts +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { OpenClawConfig, OpenClawGateway } from "./types";
|
|
2
|
+
export { validateGatewayUrl } from "./gateway-url-validation";
|
|
2
3
|
export declare function normalizeReplyListenerConfig(config: OpenClawConfig): OpenClawConfig;
|
|
3
4
|
export declare function resolveGateway(config: OpenClawConfig, event: string): {
|
|
4
5
|
gatewayName: string;
|
|
5
6
|
gateway: OpenClawGateway;
|
|
6
7
|
instruction: string;
|
|
7
8
|
} | null;
|
|
8
|
-
export declare function validateGatewayUrl(url: string): boolean;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { OpenClawGateway, WakeResult } from "./types";
|
|
2
|
-
export declare function validateGatewayUrl(url: string): boolean;
|
|
3
2
|
export declare function interpolateInstruction(template: string, variables: Record<string, string | undefined>): string;
|
|
4
3
|
export declare function shellEscapeArg(value: string): string;
|
|
5
4
|
export declare function resolveCommandTimeoutMs(gatewayTimeout?: number, envTimeoutRaw?: string | undefined): number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function validateGatewayUrl(url: string): boolean;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { HookName, OhMyOpenCodeConfig } from "../../config";
|
|
2
|
+
import type { ModelFallbackControllerAccessor } from "../../hooks/model-fallback";
|
|
2
3
|
import type { PluginContext } from "../types";
|
|
3
4
|
import type { ModelCacheState } from "../../plugin-state";
|
|
4
5
|
export declare function createCoreHooks(args: {
|
|
5
6
|
ctx: PluginContext;
|
|
6
7
|
pluginConfig: OhMyOpenCodeConfig;
|
|
7
8
|
modelCacheState: ModelCacheState;
|
|
9
|
+
modelFallbackControllerAccessor?: ModelFallbackControllerAccessor;
|
|
8
10
|
isHookEnabled: (hookName: HookName) => boolean;
|
|
9
11
|
safeHookEnabled: boolean;
|
|
10
12
|
}): {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { OhMyOpenCodeConfig, HookName } from "../../config";
|
|
2
|
+
import type { ModelFallbackControllerAccessor } from "../../hooks/model-fallback";
|
|
2
3
|
import type { ModelCacheState } from "../../plugin-state";
|
|
3
4
|
import type { PluginContext } from "../types";
|
|
4
5
|
import { createContextWindowMonitorHook, createSessionRecoveryHook, createSessionNotification, createThinkModeHook, createModelFallbackHook, createAnthropicContextWindowLimitRecoveryHook, createAutoUpdateCheckerHook, createAgentUsageReminderHook, createNonInteractiveEnvHook, createInteractiveBashSessionHook, createRalphLoopHook, createEditErrorRecoveryHook, createDelegateTaskRetryHook, createTaskResumeInfoHook, createStartWorkHook, createPrometheusMdOnlyHook, createSisyphusJuniorNotepadHook, createNoSisyphusGptHook, createNoHephaestusNonGptHook, createQuestionLabelTruncatorHook, createPreemptiveCompactionHook, createRuntimeFallbackHook, createLegacyPluginToastHook } from "../../hooks";
|
|
@@ -33,6 +34,7 @@ export declare function createSessionHooks(args: {
|
|
|
33
34
|
ctx: PluginContext;
|
|
34
35
|
pluginConfig: OhMyOpenCodeConfig;
|
|
35
36
|
modelCacheState: ModelCacheState;
|
|
37
|
+
modelFallbackControllerAccessor?: ModelFallbackControllerAccessor;
|
|
36
38
|
isHookEnabled: (hookName: HookName) => boolean;
|
|
37
39
|
safeHookEnabled: boolean;
|
|
38
40
|
}): SessionHooks;
|
|
@@ -32,7 +32,7 @@ export declare function trimToolsToCap(filteredTools: ToolsRecord, maxTools: num
|
|
|
32
32
|
export declare function createToolRegistry(args: {
|
|
33
33
|
ctx: PluginContext;
|
|
34
34
|
pluginConfig: OhMyOpenCodeConfig;
|
|
35
|
-
managers: Pick<Managers, "backgroundManager" | "tmuxSessionManager" | "skillMcpManager">;
|
|
35
|
+
managers: Pick<Managers, "backgroundManager" | "tmuxSessionManager" | "skillMcpManager" | "modelFallbackControllerAccessor">;
|
|
36
36
|
skillContext: SkillContext;
|
|
37
37
|
availableCategories: AvailableCategory[];
|
|
38
38
|
interactiveBashEnabled?: boolean;
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Agent tool restrictions for session.prompt calls.
|
|
3
|
-
* OpenCode SDK's session.prompt `tools` parameter expects boolean values.
|
|
4
|
-
* true = tool allowed, false = tool denied.
|
|
5
|
-
*/
|
|
6
1
|
export declare function getAgentToolRestrictions(agentName: string): Record<string, boolean>;
|
|
7
2
|
export declare function hasAgentToolRestrictions(agentName: string): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EXCLUDED_DIRS: ReadonlySet<string>;
|
package/dist/shared/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export * from "./claude-config-dir";
|
|
|
17
17
|
export * from "./jsonc-parser";
|
|
18
18
|
export * from "./migration";
|
|
19
19
|
export * from "./opencode-config-dir";
|
|
20
|
+
export * from "./resolve-agent-definition-paths";
|
|
20
21
|
export type { OpenCodeBinaryType, OpenCodeConfigDirOptions, OpenCodeConfigPaths, } from "./opencode-config-dir-types";
|
|
21
22
|
export * from "./opencode-version";
|
|
22
23
|
export * from "./opencode-storage-detection";
|
|
@@ -48,6 +49,7 @@ export * from "./session-utils";
|
|
|
48
49
|
export * from "./tmux";
|
|
49
50
|
export * from "./model-suggestion-retry";
|
|
50
51
|
export * from "./opencode-server-auth";
|
|
52
|
+
export * from "./opencode-provider-auth";
|
|
51
53
|
export * from "./opencode-http-api";
|
|
52
54
|
export * from "./port-utils";
|
|
53
55
|
export * from "./git-worktree";
|
|
@@ -67,3 +69,6 @@ export { SessionCategoryRegistry } from "./session-category-registry";
|
|
|
67
69
|
export * from "./plugin-identity";
|
|
68
70
|
export * from "./log-legacy-plugin-startup-warning";
|
|
69
71
|
export * from "./task-system-enabled";
|
|
72
|
+
export * from "./parse-tools-config";
|
|
73
|
+
export { parseModelString } from "./model-string-parser";
|
|
74
|
+
export { EXCLUDED_DIRS } from "./excluded-dirs";
|
|
@@ -6,6 +6,11 @@ export interface JsoncParseResult<T> {
|
|
|
6
6
|
length: number;
|
|
7
7
|
}>;
|
|
8
8
|
}
|
|
9
|
+
type DetectPluginConfigResult = {
|
|
10
|
+
format: "json" | "jsonc" | "none";
|
|
11
|
+
path: string;
|
|
12
|
+
legacyPath?: string;
|
|
13
|
+
};
|
|
9
14
|
export declare function parseJsonc<T = unknown>(content: string): T;
|
|
10
15
|
export declare function parseJsoncSafe<T = unknown>(content: string): JsoncParseResult<T>;
|
|
11
16
|
export declare function readJsoncFile<T = unknown>(filePath: string): T | null;
|
|
@@ -13,8 +18,6 @@ export declare function detectConfigFile(basePath: string): {
|
|
|
13
18
|
format: "json" | "jsonc" | "none";
|
|
14
19
|
path: string;
|
|
15
20
|
};
|
|
16
|
-
export declare function
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
legacyPath?: string;
|
|
20
|
-
};
|
|
21
|
+
export declare function clearPluginConfigFileDetectionCache(): void;
|
|
22
|
+
export declare function detectPluginConfigFile(dir: string): DetectPluginConfigResult;
|
|
23
|
+
export {};
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* {
|
|
18
18
|
* "appliedMigrations": [
|
|
19
19
|
* "model-version:openai/gpt-5.3-codex->openai/gpt-5.4",
|
|
20
|
-
* "model-version:anthropic/claude-opus-4-5->anthropic/claude-opus-4-
|
|
20
|
+
* "model-version:anthropic/claude-opus-4-5->anthropic/claude-opus-4-7"
|
|
21
21
|
* ]
|
|
22
22
|
* }
|
|
23
23
|
*/
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parses a tools configuration value into a boolean record.
|
|
3
|
+
* Accepts comma-separated strings, string arrays, or unknown values from config files.
|
|
4
|
+
* Returns undefined when input is empty or invalid.
|
|
5
|
+
*/
|
|
6
|
+
export declare function parseToolsConfig(toolsValue: unknown): Record<string, boolean> | undefined;
|
|
@@ -9,7 +9,7 @@ export interface PermissionFormat {
|
|
|
9
9
|
/**
|
|
10
10
|
* Creates tool restrictions that deny specified tools.
|
|
11
11
|
*/
|
|
12
|
-
export declare function createAgentToolRestrictions(denyTools: string[]): PermissionFormat;
|
|
12
|
+
export declare function createAgentToolRestrictions(denyTools: string[], allowTools?: string[]): PermissionFormat;
|
|
13
13
|
/**
|
|
14
14
|
* Creates tool restrictions that ONLY allow specified tools.
|
|
15
15
|
* All other tools are denied by default using `*: deny` pattern.
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export declare function clearWorktreeCache(): void;
|
|
2
|
+
export declare function detectWorktreePath(directory: string): string | undefined;
|
|
1
3
|
export declare function findProjectClaudeSkillDirs(startDirectory: string, stopDirectory?: string): string[];
|
|
2
4
|
export declare function findProjectAgentsSkillDirs(startDirectory: string, stopDirectory?: string): string[];
|
|
3
5
|
export declare function findProjectOpencodeSkillDirs(startDirectory: string, stopDirectory?: string): string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function resolveAgentDefinitionPaths(paths: string[], baseDir: string, containmentDir: string | null): string[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type GrepBackend = "rg" | "grep";
|
|
2
|
+
export interface ResolvedCli {
|
|
3
|
+
path: string;
|
|
4
|
+
backend: GrepBackend;
|
|
5
|
+
}
|
|
6
|
+
export declare const DEFAULT_RG_THREADS = 4;
|
|
7
|
+
export declare function resolveGrepCli(): ResolvedCli;
|
|
8
|
+
export declare function resolveGrepCliWithAutoInstall(): Promise<ResolvedCli>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { killTmuxSessionIfExists } from "./session-kill";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function killTmuxSessionIfExists(sessionName: string): Promise<boolean>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { TmuxConfig } from "../../../config/schema";
|
|
2
2
|
import type { SpawnPaneResult } from "../types";
|
|
3
|
+
export declare function getIsolatedSessionName(pid?: number): string;
|
|
3
4
|
export declare function spawnTmuxSession(sessionId: string, description: string, config: TmuxConfig, serverUrl: string, sourcePaneId?: string): Promise<SpawnPaneResult>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { spawn } from "bun";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type SweepDeps = {
|
|
2
|
+
isInsideTmux: () => boolean;
|
|
3
|
+
getTmuxPath: () => Promise<string | null | undefined>;
|
|
4
|
+
listCandidateSessions: (tmux: string) => Promise<string[]>;
|
|
5
|
+
killSession: (sessionName: string) => Promise<boolean>;
|
|
6
|
+
processAlive: (pid: number) => boolean;
|
|
7
|
+
currentPid: number;
|
|
8
|
+
log: (message: string, payload?: unknown) => void;
|
|
9
|
+
};
|
|
10
|
+
export declare function sweepStaleOmoAgentSessionsWith(deps: SweepDeps): Promise<number>;
|
|
11
|
+
export declare function sweepStaleOmoAgentSessions(): Promise<number>;
|
|
@@ -7,5 +7,7 @@ export { spawnTmuxPane } from "./tmux-utils/pane-spawn";
|
|
|
7
7
|
export { closeTmuxPane } from "./tmux-utils/pane-close";
|
|
8
8
|
export { replaceTmuxPane } from "./tmux-utils/pane-replace";
|
|
9
9
|
export { spawnTmuxWindow } from "./tmux-utils/window-spawn";
|
|
10
|
-
export { spawnTmuxSession } from "./tmux-utils/session-spawn";
|
|
10
|
+
export { spawnTmuxSession, getIsolatedSessionName } from "./tmux-utils/session-spawn";
|
|
11
|
+
export { killTmuxSessionIfExists } from "./tmux-utils/session-kill";
|
|
12
|
+
export { sweepStaleOmoAgentSessions } from "./tmux-utils/stale-session-sweep";
|
|
11
13
|
export { applyLayout, enforceMainPaneWidth } from "./tmux-utils/layout";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CliLanguage } from "./types";
|
|
2
|
+
export declare function detectRegexMisuse(pattern: string): string | null;
|
|
3
|
+
export declare function detectLanguageSpecificMistake(pattern: string, lang: CliLanguage): string | null;
|
|
4
|
+
export declare function getPatternHint(pattern: string, lang: CliLanguage): string | null;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const AST_GREP_SEARCH_DESCRIPTION: string;
|
|
2
|
+
export declare const AST_GREP_SEARCH_PATTERN_PARAM = "AST pattern - valid, parseable code using $VAR (one node) and $$$ (many nodes). NOT regex: no `|`, no `.*`, no `\\w`, no `[a-z]`. For text or alternation, use grep instead.";
|
|
3
|
+
export declare const AST_GREP_REPLACE_DESCRIPTION: string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
+
export declare function clearCallableAgentsCache(): void;
|
|
3
|
+
/**
|
|
4
|
+
* Resolves the set of callable agent names at execute-time by merging the
|
|
5
|
+
* hardcoded `ALLOWED_AGENTS` with any additional agents discovered dynamically
|
|
6
|
+
* via `client.app.agents()`. Custom agents loaded from registered agent
|
|
7
|
+
* directories appear here alongside built-ins.
|
|
8
|
+
*
|
|
9
|
+
* Results are cached per session for 30s to avoid redundant SDK IPC calls.
|
|
10
|
+
*
|
|
11
|
+
* Falls back to `ALLOWED_AGENTS` alone if the dynamic lookup fails.
|
|
12
|
+
*
|
|
13
|
+
* @param client - The plugin client with access to the agent registry
|
|
14
|
+
* @param sessionId - Optional session ID for cache scoping
|
|
15
|
+
* @returns Array of lowercase callable agent names (excludes primary-mode agents)
|
|
16
|
+
*/
|
|
17
|
+
export declare function resolveCallableAgents(client: PluginInput["client"], sessionId?: string): Promise<string[]>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const ALLOWED_AGENTS: readonly ["explore", "librarian", "oracle", "hephaestus", "metis", "momus", "multimodal-looker"];
|
|
2
|
-
export declare const CALL_OMO_AGENT_DESCRIPTION = "Spawn explore/librarian agent. run_in_background REQUIRED (true=async with task_id, false=sync).\n\
|
|
2
|
+
export declare const CALL_OMO_AGENT_DESCRIPTION = "Spawn explore/librarian agent or custom agents. run_in_background REQUIRED (true=async with task_id, false=sync).\n\nBuilt-in agents:\n{agents}\n\nCustom agents registered via user or project agent directories are also supported.\n\nPass `session_id=<id>` to continue previous agent with full context. Nested subagent depth is tracked automatically and blocked past the configured limit. Prompts MUST be in English. Use `background_output` for async results.";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { CallOmoAgentArgs } from "./types";
|
|
2
2
|
import type { PluginInput } from "@opencode-ai/plugin";
|
|
3
|
-
import { clearSessionFallbackChain, setSessionFallbackChain } from "../../hooks/model-fallback/hook";
|
|
4
3
|
import type { DelegatedModelConfig } from "../../shared/model-resolution-types";
|
|
5
4
|
import type { FallbackEntry } from "../../shared/model-requirements";
|
|
6
5
|
import { waitForCompletion } from "./completion-poller";
|
|
@@ -10,8 +9,8 @@ type ExecuteSyncDeps = {
|
|
|
10
9
|
createOrGetSession: typeof createOrGetSession;
|
|
11
10
|
waitForCompletion: typeof waitForCompletion;
|
|
12
11
|
processMessages: typeof processMessages;
|
|
13
|
-
setSessionFallbackChain:
|
|
14
|
-
clearSessionFallbackChain:
|
|
12
|
+
setSessionFallbackChain: (sessionID: string, fallbackChain: FallbackEntry[] | undefined) => void;
|
|
13
|
+
clearSessionFallbackChain: (sessionID: string) => void;
|
|
15
14
|
};
|
|
16
15
|
type SpawnReservation = {
|
|
17
16
|
commit: () => number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type PluginInput, type ToolDefinition } from "@opencode-ai/plugin";
|
|
2
2
|
import type { BackgroundManager } from "../../features/background-agent";
|
|
3
|
+
import type { ModelFallbackControllerAccessor } from "../../hooks/model-fallback";
|
|
3
4
|
import type { CategoriesConfig, AgentOverrides } from "../../config/schema";
|
|
4
|
-
export declare function createCallOmoAgent(ctx: PluginInput, backgroundManager: BackgroundManager, disabledAgents?: string[], agentOverrides?: AgentOverrides, userCategories?: CategoriesConfig): ToolDefinition;
|
|
5
|
+
export declare function createCallOmoAgent(ctx: PluginInput, backgroundManager: BackgroundManager, disabledAgents?: string[], agentOverrides?: AgentOverrides, userCategories?: CategoriesConfig, modelFallbackControllerAccessor?: ModelFallbackControllerAccessor): ToolDefinition;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { DelegateTaskArgs, ToolContextWithMetadata } from "./types";
|
|
2
2
|
import type { ExecutorContext, ParentContext } from "./executor-types";
|
|
3
|
-
export declare function executeBackgroundContinuation(args: DelegateTaskArgs, ctx: ToolContextWithMetadata, executorCtx: ExecutorContext, parentContext: ParentContext): Promise<string>;
|
|
3
|
+
export declare function executeBackgroundContinuation(args: DelegateTaskArgs, ctx: ToolContextWithMetadata, executorCtx: ExecutorContext, parentContext: ParentContext, systemContent?: string): Promise<string>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { BackgroundManager } from "../../features/background-agent";
|
|
2
2
|
import type { CategoriesConfig, GitMasterConfig, BrowserAutomationProvider, AgentOverrides, SisyphusAgentConfig } from "../../config/schema";
|
|
3
|
+
import type { ModelFallbackControllerAccessor } from "../../hooks/model-fallback";
|
|
3
4
|
import type { OpencodeClient } from "./types";
|
|
4
5
|
export interface ExecutorContext {
|
|
5
6
|
manager: BackgroundManager;
|
|
@@ -11,6 +12,7 @@ export interface ExecutorContext {
|
|
|
11
12
|
browserProvider?: BrowserAutomationProvider;
|
|
12
13
|
agentOverrides?: AgentOverrides;
|
|
13
14
|
sisyphusAgentConfig?: SisyphusAgentConfig;
|
|
15
|
+
modelFallbackControllerAccessor?: ModelFallbackControllerAccessor;
|
|
14
16
|
onSyncSessionCreated?: (event: {
|
|
15
17
|
sessionID: string;
|
|
16
18
|
parentID: string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FallbackEntry } from "../../shared/model-requirements";
|
|
2
|
+
import type { DelegatedModelConfig } from "./types";
|
|
3
|
+
export declare function resolveEffectiveFallbackEntry(input: {
|
|
4
|
+
categoryModel: DelegatedModelConfig | undefined;
|
|
5
|
+
configuredFallbackChain: FallbackEntry[] | undefined;
|
|
6
|
+
resolution: {
|
|
7
|
+
skipped: true;
|
|
8
|
+
} | {
|
|
9
|
+
fallbackEntry?: FallbackEntry;
|
|
10
|
+
matchedFallback?: boolean;
|
|
11
|
+
} | undefined;
|
|
12
|
+
}): FallbackEntry | undefined;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DelegatedModelConfig } from "./types";
|
|
2
|
+
import type { FallbackEntry } from "../../shared/model-requirements";
|
|
3
|
+
export declare function applyFallbackEntrySettings(input: {
|
|
4
|
+
categoryModel: DelegatedModelConfig;
|
|
5
|
+
effectiveEntry: FallbackEntry;
|
|
6
|
+
variantOverride?: string;
|
|
7
|
+
}): DelegatedModelConfig;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DelegatedModelConfig } from "./types";
|
|
2
|
+
interface MetadataModel {
|
|
3
|
+
providerID: string;
|
|
4
|
+
modelID: string;
|
|
5
|
+
variant?: string;
|
|
6
|
+
}
|
|
7
|
+
type ModelLike = Pick<DelegatedModelConfig, "providerID" | "modelID" | "variant"> | MetadataModel;
|
|
8
|
+
export declare function resolveMetadataModel(primary: ModelLike | undefined, fallback: ModelLike | undefined): MetadataModel | undefined;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type AgentMode = "subagent" | "primary" | "all" | undefined;
|
|
2
|
+
export type AgentInfo = {
|
|
3
|
+
name: string;
|
|
4
|
+
mode?: "subagent" | "primary" | "all";
|
|
5
|
+
model?: string | {
|
|
6
|
+
providerID: string;
|
|
7
|
+
modelID: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare function sanitizeSubagentType(subagentType: string): string;
|
|
11
|
+
export declare function mergeWithClaudeCodeAgents(serverAgents: AgentInfo[], directory: string | undefined): AgentInfo[];
|
|
12
|
+
export declare function isTaskCallableAgentMode(mode: AgentMode): boolean;
|
|
13
|
+
export declare function findPrimaryAgentMatch(agents: AgentInfo[], requestedAgentName: string): AgentInfo | undefined;
|
|
14
|
+
export declare function findCallableAgentMatch(agents: AgentInfo[], requestedAgentName: string): AgentInfo | undefined;
|
|
15
|
+
export declare function listCallableAgentNames(agents: AgentInfo[]): string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { DelegateTaskArgs, ToolContextWithMetadata } from "./types";
|
|
2
|
-
import type { ExecutorContext } from "./executor-types";
|
|
2
|
+
import type { ExecutorContext, ParentContext } from "./executor-types";
|
|
3
3
|
import { type SyncContinuationDeps } from "./sync-continuation-deps";
|
|
4
|
-
export declare function executeSyncContinuation(args: DelegateTaskArgs, ctx: ToolContextWithMetadata, executorCtx: ExecutorContext, deps?: SyncContinuationDeps): Promise<string>;
|
|
4
|
+
export declare function executeSyncContinuation(args: DelegateTaskArgs, ctx: ToolContextWithMetadata, executorCtx: ExecutorContext, parentContext: ParentContext, deps?: SyncContinuationDeps, systemContent?: string): Promise<string>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FallbackEntry } from "../../shared/model-requirements";
|
|
2
|
+
import type { DelegatedModelConfig } from "./types";
|
|
3
|
+
export declare function retrySyncPromptWithFallbacks(input: {
|
|
4
|
+
sessionID: string;
|
|
5
|
+
initialError: string;
|
|
6
|
+
categoryModel: DelegatedModelConfig | undefined;
|
|
7
|
+
fallbackChain: FallbackEntry[] | undefined;
|
|
8
|
+
sendPrompt: (categoryModel: DelegatedModelConfig) => Promise<string | null>;
|
|
9
|
+
}): Promise<{
|
|
10
|
+
promptError: string | null;
|
|
11
|
+
categoryModel: DelegatedModelConfig | undefined;
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AvailableCategory, AvailableSkill } from "../../agents/dynamic-agent-prompt-builder";
|
|
2
|
+
import type { DelegateTaskToolOptions } from "./types";
|
|
3
|
+
export interface DelegateTaskPresentation {
|
|
4
|
+
availableCategories: AvailableCategory[];
|
|
5
|
+
availableSkills: AvailableSkill[];
|
|
6
|
+
categoryExamples: string;
|
|
7
|
+
description: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function createDelegateTaskPresentation(options: DelegateTaskToolOptions): DelegateTaskPresentation;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
2
|
import type { BackgroundManager } from "../../features/background-agent";
|
|
3
3
|
import type { CategoriesConfig, GitMasterConfig, BrowserAutomationProvider, AgentOverrides, SisyphusAgentConfig } from "../../config/schema";
|
|
4
|
+
import type { ModelFallbackControllerAccessor } from "../../hooks/model-fallback";
|
|
4
5
|
import type { AvailableCategory, AvailableSkill } from "../../agents/dynamic-agent-prompt-builder";
|
|
5
6
|
export type OpencodeClient = PluginInput["client"];
|
|
6
7
|
export interface DelegateTaskArgs {
|
|
@@ -8,14 +9,11 @@ export interface DelegateTaskArgs {
|
|
|
8
9
|
prompt: string;
|
|
9
10
|
category?: string;
|
|
10
11
|
subagent_type?: string;
|
|
12
|
+
requested_subagent_type?: string;
|
|
11
13
|
run_in_background: boolean;
|
|
12
|
-
|
|
14
|
+
task_id?: string;
|
|
13
15
|
command?: string;
|
|
14
16
|
load_skills: string[];
|
|
15
|
-
execute?: {
|
|
16
|
-
task_id: string;
|
|
17
|
-
task_dir?: string;
|
|
18
|
-
};
|
|
19
17
|
}
|
|
20
18
|
export interface ToolContextWithMetadata {
|
|
21
19
|
sessionID: string;
|
|
@@ -63,6 +61,7 @@ export interface DelegateTaskToolOptions {
|
|
|
63
61
|
availableSkills?: AvailableSkill[];
|
|
64
62
|
agentOverrides?: AgentOverrides;
|
|
65
63
|
sisyphusAgentConfig?: SisyphusAgentConfig;
|
|
64
|
+
modelFallbackControllerAccessor?: ModelFallbackControllerAccessor;
|
|
66
65
|
onSyncSessionCreated?: (event: SyncSessionCreatedEvent) => Promise<void>;
|
|
67
66
|
syncPollTimeoutMs?: number;
|
|
68
67
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { resolveGrepCli, resolveGrepCliWithAutoInstall, type GrepBackend, DEFAULT_RG_THREADS } from "
|
|
1
|
+
export { resolveGrepCli, resolveGrepCliWithAutoInstall, type GrepBackend, DEFAULT_RG_THREADS } from "../../shared/ripgrep-cli";
|
|
2
2
|
export declare const DEFAULT_TIMEOUT_MS = 60000;
|
|
3
3
|
export declare const DEFAULT_LIMIT = 100;
|
|
4
4
|
export declare const DEFAULT_MAX_DEPTH = 20;
|
package/dist/tools/grep/cli.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ResolvedCli } from "
|
|
1
|
+
import { type ResolvedCli } from "../../shared/ripgrep-cli";
|
|
2
2
|
import type { GrepOptions, GrepResult, CountResult } from "./types";
|
|
3
3
|
export declare function runRg(options: GrepOptions, resolvedCli?: ResolvedCli): Promise<GrepResult>;
|
|
4
4
|
export declare function runRgCount(options: Omit<GrepOptions, "context">, resolvedCli?: ResolvedCli): Promise<CountResult[]>;
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
export type GrepBackend = "rg" | "grep";
|
|
2
|
-
export interface ResolvedCli {
|
|
3
|
-
path: string;
|
|
4
|
-
backend: GrepBackend;
|
|
5
|
-
}
|
|
6
|
-
export declare function resolveGrepCli(): ResolvedCli;
|
|
7
|
-
export declare function resolveGrepCliWithAutoInstall(): Promise<ResolvedCli>;
|
|
8
1
|
export declare const DEFAULT_MAX_DEPTH = 20;
|
|
9
2
|
export declare const DEFAULT_MAX_FILESIZE = "10M";
|
|
10
3
|
export declare const DEFAULT_MAX_COUNT = 500;
|
|
@@ -12,6 +5,5 @@ export declare const DEFAULT_MAX_COLUMNS = 1000;
|
|
|
12
5
|
export declare const DEFAULT_CONTEXT = 2;
|
|
13
6
|
export declare const DEFAULT_TIMEOUT_MS = 60000;
|
|
14
7
|
export declare const DEFAULT_MAX_OUTPUT_BYTES: number;
|
|
15
|
-
export declare const DEFAULT_RG_THREADS = 4;
|
|
16
8
|
export declare const RG_SAFETY_FLAGS: readonly ["--no-follow", "--color=never", "--no-heading", "--line-number", "--with-filename"];
|
|
17
9
|
export declare const GREP_SAFETY_FLAGS: readonly ["-n", "-H", "--color=never"];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { LookAtArgs } from "./types";
|
|
2
|
+
export interface LookAtFilePart {
|
|
3
|
+
type: "file";
|
|
4
|
+
mime: string;
|
|
5
|
+
url: string;
|
|
6
|
+
filename: string;
|
|
7
|
+
}
|
|
8
|
+
export interface PreparedLookAtInput {
|
|
9
|
+
readonly filePart: LookAtFilePart;
|
|
10
|
+
readonly isBase64Input: boolean;
|
|
11
|
+
readonly sourceDescription: string;
|
|
12
|
+
cleanup(): void;
|
|
13
|
+
}
|
|
14
|
+
type PrepareLookAtInputResult = {
|
|
15
|
+
ok: true;
|
|
16
|
+
value: PreparedLookAtInput;
|
|
17
|
+
} | {
|
|
18
|
+
ok: false;
|
|
19
|
+
error: string;
|
|
20
|
+
};
|
|
21
|
+
export declare function prepareLookAtInput(args: LookAtArgs): PrepareLookAtInputResult;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
+
import type { ToolContext } from "@opencode-ai/plugin/tool";
|
|
3
|
+
import type { LookAtFilePart } from "./look-at-input-preparer";
|
|
4
|
+
interface RunLookAtSessionInput {
|
|
5
|
+
ctx: PluginInput;
|
|
6
|
+
toolContext: ToolContext;
|
|
7
|
+
goal: string;
|
|
8
|
+
filePart: LookAtFilePart;
|
|
9
|
+
isBase64Input: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function runLookAtSession({ ctx, toolContext, goal, filePart, isBase64Input, }: RunLookAtSessionInput): Promise<string>;
|
|
12
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const TOOL_NAME: "skill";
|
|
2
2
|
export declare const TOOL_DESCRIPTION_NO_SKILLS = "Load a skill or execute a slash command to get detailed instructions for a specific task. No skills are currently available.";
|
|
3
|
-
export declare const TOOL_DESCRIPTION_PREFIX = "Load a skill or execute a slash command to get detailed instructions for a specific task.\n\nSkills and commands provide specialized knowledge and step-by-step guidance.\nUse this when a task matches an available skill's or command's description.\n\n**How to use:**\n- Call with a skill name: name='
|
|
3
|
+
export declare const TOOL_DESCRIPTION_PREFIX = "Load a skill or execute a slash command to get detailed instructions for a specific task.\n\nSkills and commands provide specialized knowledge and step-by-step guidance.\nUse this when a task matches an available skill's or command's description.\n\n**How to use:**\n- Call with a skill name: name='review-work'\n- Call with a command name (without leading slash): name='publish'\n- The tool will return detailed instructions with your context applied.\n";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { SkillInfo } from "./types";
|
|
2
2
|
import type { CommandInfo } from "../slashcommand/types";
|
|
3
|
-
export declare function formatCombinedDescription(skills
|
|
3
|
+
export declare function formatCombinedDescription(skills?: SkillInfo[], commands?: CommandInfo[]): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function shouldInvalidateSkillCacheForSession(sessionID?: string): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function parseSkillMcpArguments(argsJson: string | Record<string, unknown> | undefined): Record<string, unknown>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "evil-omo",
|
|
3
|
-
"version": "3.17.
|
|
3
|
+
"version": "3.17.5",
|
|
4
4
|
"description": "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"./schema.json": "./dist/evil-omo.schema.json"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
|
-
"build": "bun build src/index.ts --outdir dist --target bun --format esm --external @ast-grep/napi && tsc --emitDeclarationOnly && bun build src/cli/index.ts --outdir dist/cli --target bun --format esm --external @ast-grep/napi && bun run build:schema",
|
|
24
|
+
"build": "bun build src/index.ts --outdir dist --target bun --format esm --external @ast-grep/napi --external zod && tsc --emitDeclarationOnly && bun build src/cli/index.ts --outdir dist/cli --target bun --format esm --external @ast-grep/napi && bun run build:schema",
|
|
25
25
|
"build:all": "bun run build && bun run build:binaries",
|
|
26
26
|
"build:binaries": "bun run script/build-binaries.ts",
|
|
27
27
|
"build:schema": "bun run script/build-schema.ts",
|
|
@@ -69,32 +69,35 @@
|
|
|
69
69
|
"picocolors": "^1.1.1",
|
|
70
70
|
"picomatch": "^4.0.2",
|
|
71
71
|
"posthog-node": "^5.29.2",
|
|
72
|
-
"vscode-jsonrpc": "^8.2.0"
|
|
73
|
-
"zod": "^4.3.0"
|
|
72
|
+
"vscode-jsonrpc": "^8.2.0"
|
|
74
73
|
},
|
|
75
74
|
"devDependencies": {
|
|
76
75
|
"@types/js-yaml": "^4.0.9",
|
|
77
76
|
"@types/picomatch": "^3.0.2",
|
|
78
77
|
"bun-types": "1.3.11",
|
|
79
|
-
"typescript": "^5.7.3"
|
|
78
|
+
"typescript": "^5.7.3",
|
|
79
|
+
"zod": "^4.3.0"
|
|
80
80
|
},
|
|
81
81
|
"optionalDependencies": {
|
|
82
|
-
"evil-omo-darwin-arm64": "3.17.
|
|
83
|
-
"evil-omo-darwin-x64": "3.17.
|
|
84
|
-
"evil-omo-darwin-x64-baseline": "3.17.
|
|
85
|
-
"evil-omo-linux-x64": "3.17.
|
|
86
|
-
"evil-omo-linux-x64-baseline": "3.17.
|
|
87
|
-
"evil-omo-linux-arm64": "3.17.
|
|
88
|
-
"evil-omo-linux-x64-musl": "3.17.
|
|
89
|
-
"evil-omo-linux-x64-musl-baseline": "3.17.
|
|
90
|
-
"evil-omo-linux-arm64-musl": "3.17.
|
|
91
|
-
"evil-omo-windows-x64": "3.17.
|
|
92
|
-
"evil-omo-windows-x64-baseline": "3.17.
|
|
82
|
+
"evil-omo-darwin-arm64": "3.17.5",
|
|
83
|
+
"evil-omo-darwin-x64": "3.17.5",
|
|
84
|
+
"evil-omo-darwin-x64-baseline": "3.17.5",
|
|
85
|
+
"evil-omo-linux-x64": "3.17.5",
|
|
86
|
+
"evil-omo-linux-x64-baseline": "3.17.5",
|
|
87
|
+
"evil-omo-linux-arm64": "3.17.5",
|
|
88
|
+
"evil-omo-linux-x64-musl": "3.17.5",
|
|
89
|
+
"evil-omo-linux-x64-musl-baseline": "3.17.5",
|
|
90
|
+
"evil-omo-linux-arm64-musl": "3.17.5",
|
|
91
|
+
"evil-omo-windows-x64": "3.17.5",
|
|
92
|
+
"evil-omo-windows-x64-baseline": "3.17.5"
|
|
93
93
|
},
|
|
94
94
|
"overrides": {},
|
|
95
95
|
"trustedDependencies": [
|
|
96
96
|
"@ast-grep/cli",
|
|
97
97
|
"@ast-grep/napi",
|
|
98
98
|
"@code-yeongyu/comment-checker"
|
|
99
|
-
]
|
|
99
|
+
],
|
|
100
|
+
"peerDependencies": {
|
|
101
|
+
"zod": "^4.0.0"
|
|
102
|
+
}
|
|
100
103
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { TmuxConfig } from "../../config/schema";
|
|
2
|
-
import type { TrackedSession } from "./types";
|
|
3
|
-
export declare function cleanupTmuxSessions(params: {
|
|
4
|
-
tmuxConfig: TmuxConfig;
|
|
5
|
-
serverUrl: string;
|
|
6
|
-
sourcePaneId: string | undefined;
|
|
7
|
-
sessions: Map<string, TrackedSession>;
|
|
8
|
-
stopPolling: () => void;
|
|
9
|
-
}): Promise<void>;
|