oh-my-opencode 3.14.0 → 3.15.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/README.md +14 -6
- package/bin/oh-my-opencode.js +11 -0
- package/bin/platform.js +13 -13
- package/bin/platform.test.ts +15 -0
- package/dist/agents/atlas/agent.d.ts +1 -1
- package/dist/agents/atlas/default-prompt-sections.d.ts +6 -0
- package/dist/agents/atlas/default.d.ts +0 -9
- package/dist/agents/atlas/gemini-prompt-sections.d.ts +6 -0
- package/dist/agents/atlas/gemini.d.ts +0 -9
- package/dist/agents/atlas/gpt-prompt-sections.d.ts +6 -0
- package/dist/agents/atlas/gpt.d.ts +0 -9
- package/dist/agents/atlas/shared-prompt.d.ts +9 -0
- package/dist/agents/dynamic-agent-category-skills-guide.d.ts +2 -0
- package/dist/agents/dynamic-agent-core-sections.d.ts +10 -0
- package/dist/agents/dynamic-agent-policy-sections.d.ts +6 -0
- package/dist/agents/dynamic-agent-prompt-builder.d.ts +5 -35
- package/dist/agents/dynamic-agent-prompt-types.d.ts +20 -0
- package/dist/agents/dynamic-agent-tool-categorization.d.ts +3 -0
- package/dist/agents/hephaestus/agent.d.ts +1 -1
- package/dist/agents/hephaestus/gpt-5-3-codex.d.ts +1 -1
- package/dist/agents/hephaestus/gpt.d.ts +1 -1
- package/dist/agents/momus.d.ts +2 -2
- package/dist/agents/prometheus/behavioral-summary.d.ts +1 -1
- package/dist/agents/prometheus/identity-constraints.d.ts +1 -1
- package/dist/agents/prometheus/plan-generation.d.ts +1 -1
- package/dist/agents/prometheus/plan-template.d.ts +1 -1
- package/dist/agents/sisyphus/gpt-5-4.d.ts +14 -14
- package/dist/agents/sisyphus/index.d.ts +1 -1
- package/dist/agents/sisyphus.d.ts +1 -1
- package/dist/agents/types.d.ts +1 -0
- package/dist/cli/index.js +715 -429
- package/dist/cli/mcp-oauth/login.d.ts +6 -1
- package/dist/cli/run/event-state.d.ts +0 -2
- package/dist/cli/run/types.d.ts +0 -1
- package/dist/config/schema/agent-names.d.ts +2 -0
- package/dist/config/schema/agent-overrides.d.ts +330 -15
- package/dist/config/schema/background-task.d.ts +2 -0
- package/dist/config/schema/categories.d.ts +44 -2
- package/dist/config/schema/commands.d.ts +1 -0
- package/dist/config/schema/experimental.d.ts +1 -0
- package/dist/config/schema/fallback-models.d.ts +67 -1
- package/dist/config/schema/hooks.d.ts +3 -0
- package/dist/config/schema/oh-my-opencode-config.d.ts +344 -16
- package/dist/config/schema/sisyphus-agent.d.ts +1 -0
- package/dist/config/schema/tmux.d.ts +11 -0
- package/dist/create-hooks.d.ts +6 -0
- package/dist/create-runtime-tmux-config.d.ts +9 -0
- package/dist/features/background-agent/abort-with-timeout.d.ts +2 -0
- package/dist/features/background-agent/background-task-notification-template.d.ts +10 -4
- package/dist/features/background-agent/constants.d.ts +1 -0
- package/dist/features/background-agent/fallback-retry-handler.d.ts +1 -1
- package/dist/features/background-agent/manager.d.ts +10 -0
- package/dist/features/background-agent/process-cleanup.d.ts +1 -1
- package/dist/features/background-agent/session-existence.d.ts +3 -0
- package/dist/features/background-agent/task-poller.d.ts +1 -0
- package/dist/features/background-agent/types.d.ts +2 -0
- package/dist/features/builtin-commands/commands.d.ts +4 -1
- package/dist/features/builtin-commands/templates/handoff.d.ts +1 -1
- package/dist/features/builtin-commands/templates/init-deep.d.ts +1 -1
- package/dist/features/builtin-commands/templates/remove-ai-slops.d.ts +1 -0
- package/dist/features/builtin-commands/templates/start-work.d.ts +1 -1
- package/dist/features/builtin-commands/types.d.ts +1 -1
- package/dist/features/builtin-skills/skills/ai-slop-remover.d.ts +2 -0
- package/dist/features/builtin-skills/skills/git-master-sections/commit-workflow.d.ts +1 -0
- package/dist/features/builtin-skills/skills/git-master-sections/history-search-workflow.d.ts +1 -0
- package/dist/features/builtin-skills/skills/git-master-sections/overview.d.ts +1 -0
- package/dist/features/builtin-skills/skills/git-master-sections/quick-reference.d.ts +1 -0
- package/dist/features/builtin-skills/skills/git-master-sections/rebase-workflow.d.ts +1 -0
- package/dist/features/builtin-skills/skills/index.d.ts +2 -0
- package/dist/features/builtin-skills/skills/playwright-cli.d.ts +1 -1
- package/dist/features/builtin-skills/skills/review-work.d.ts +2 -0
- package/dist/features/claude-code-mcp-loader/configure-allowed-env-vars.d.ts +5 -0
- package/dist/features/claude-code-mcp-loader/index.d.ts +1 -0
- package/dist/features/claude-code-mcp-loader/scope-filter.d.ts +2 -0
- package/dist/features/claude-code-mcp-loader/types.d.ts +8 -4
- package/dist/features/claude-code-session-state/state.d.ts +2 -0
- package/dist/features/context-injector/collector.d.ts +1 -0
- package/dist/features/opencode-skill-loader/async-loader.d.ts +2 -2
- package/dist/features/skill-mcp-manager/manager.d.ts +4 -1
- package/dist/features/skill-mcp-manager/oauth-handler.d.ts +5 -4
- package/dist/features/skill-mcp-manager/types.d.ts +7 -0
- package/dist/features/tmux-subagent/manager.d.ts +15 -13
- package/dist/features/tmux-subagent/polling-manager.d.ts +5 -0
- package/dist/features/tmux-subagent/types.d.ts +2 -0
- package/dist/hooks/agent-usage-reminder/constants.d.ts +1 -1
- package/dist/hooks/anthropic-context-window-limit-recovery/message-builder.d.ts +4 -1
- package/dist/hooks/anthropic-context-window-limit-recovery/recovery-hook.d.ts +10 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/recovery-hook.test-support.d.ts +29 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/session-timeout-map.d.ts +2 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/state.d.ts +2 -0
- package/dist/hooks/anthropic-context-window-limit-recovery/types.d.ts +1 -0
- package/dist/hooks/atlas/subagent-session-id.d.ts +1 -0
- package/dist/hooks/atlas/system-reminder-templates.d.ts +2 -2
- package/dist/hooks/auto-slash-command/executor.d.ts +1 -0
- package/dist/hooks/auto-slash-command/hook.d.ts +1 -0
- package/dist/hooks/auto-update-checker/hook/background-update-check.d.ts +29 -1
- package/dist/hooks/bash-file-read-guard.d.ts +2 -0
- package/dist/hooks/claude-code-hooks/claude-code-hooks-hook.d.ts +1 -0
- package/dist/hooks/claude-code-hooks/config-loader.d.ts +1 -0
- package/dist/hooks/claude-code-hooks/config.d.ts +1 -0
- package/dist/hooks/claude-code-hooks/handlers/session-event-handler.d.ts +3 -1
- package/dist/hooks/claude-code-hooks/session-hook-state.d.ts +1 -0
- package/dist/hooks/claude-code-hooks/tool-input-cache.d.ts +2 -0
- package/dist/hooks/claude-code-hooks/transcript.d.ts +1 -3
- package/dist/hooks/comment-checker/hook.d.ts +1 -0
- package/dist/hooks/comment-checker/pending-calls.d.ts +1 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/keyword-detector/ultrawork/default.d.ts +1 -1
- package/dist/hooks/keyword-detector/ultrawork/gemini.d.ts +1 -1
- package/dist/hooks/keyword-detector/ultrawork/gpt.d.ts +1 -1
- package/dist/hooks/legacy-plugin-toast/auto-migrate-runner.d.ts +2 -0
- package/dist/hooks/legacy-plugin-toast/auto-migrate.d.ts +7 -0
- package/dist/hooks/legacy-plugin-toast/hook.d.ts +18 -0
- package/dist/hooks/legacy-plugin-toast/index.d.ts +1 -0
- package/dist/hooks/legacy-plugin-toast/plugin-entry-migrator.d.ts +1 -0
- package/dist/hooks/model-fallback/chat-message-fallback-handler.d.ts +23 -0
- package/dist/hooks/model-fallback/next-fallback.d.ts +6 -0
- package/dist/hooks/ralph-loop/completion-promise-detector-test-input.d.ts +11 -0
- package/dist/hooks/rules-injector/constants.d.ts +1 -0
- package/dist/hooks/rules-injector/finder.d.ts +1 -1
- package/dist/hooks/rules-injector/hook.d.ts +2 -0
- package/dist/hooks/rules-injector/injector.d.ts +2 -0
- package/dist/hooks/rules-injector/rule-file-finder.d.ts +9 -1
- package/dist/hooks/runtime-fallback/fallback-models.d.ts +1 -1
- package/dist/hooks/runtime-fallback/retry-model-payload.d.ts +5 -1
- package/dist/hooks/start-work/context-info-builder.d.ts +12 -0
- package/dist/hooks/start-work/start-work-hook.d.ts +6 -0
- package/dist/hooks/start-work/worktree-block.d.ts +1 -0
- package/dist/hooks/todo-continuation-enforcer/resolve-message-info.d.ts +2 -2
- package/dist/hooks/todo-continuation-enforcer/types.d.ts +4 -0
- package/dist/hooks/todo-description-override/description.d.ts +1 -1
- package/dist/hooks/tool-pair-validator/hook.d.ts +28 -0
- package/dist/hooks/tool-pair-validator/index.d.ts +1 -0
- package/dist/hooks/write-existing-file-guard/hook.d.ts +12 -0
- package/dist/hooks/write-existing-file-guard/session-read-permissions.d.ts +3 -0
- package/dist/hooks/write-existing-file-guard/tool-execute-before-handler.d.ts +15 -0
- package/dist/index.js +9525 -5020
- package/dist/mcp/websearch.d.ts +2 -2
- package/dist/oh-my-opencode.schema.json +1052 -3
- package/dist/openclaw/dispatcher.d.ts +6 -0
- package/dist/plugin/command-execute-before.d.ts +17 -0
- package/dist/plugin/hooks/create-core-hooks.d.ts +3 -0
- package/dist/plugin/hooks/create-session-hooks.d.ts +2 -1
- package/dist/plugin/hooks/create-tool-guard-hooks.d.ts +2 -1
- package/dist/plugin/hooks/create-transform-hooks.d.ts +2 -1
- package/dist/plugin/tool-registry.d.ts +1 -0
- package/dist/plugin/types.d.ts +1 -0
- package/dist/plugin-dispose.d.ts +3 -0
- package/dist/shared/agent-display-names.d.ts +8 -0
- package/dist/shared/archive-entry-validator.d.ts +6 -0
- package/dist/shared/background-output-consumption.d.ts +5 -0
- package/dist/shared/connected-providers-cache.d.ts +2 -1
- package/dist/shared/contains-path.d.ts +2 -0
- package/dist/shared/external-plugin-detector.d.ts +14 -0
- package/dist/shared/index.d.ts +3 -0
- package/dist/shared/is-abort-error.d.ts +1 -0
- package/dist/shared/json-file-cache-store.d.ts +16 -0
- package/dist/shared/jsonc-parser.d.ts +1 -0
- package/dist/shared/legacy-plugin-warning.d.ts +1 -0
- package/dist/shared/load-opencode-plugins.d.ts +1 -0
- package/dist/shared/log-legacy-plugin-startup-warning.d.ts +10 -1
- package/dist/shared/migrate-legacy-config-file.d.ts +1 -0
- package/dist/shared/migrate-legacy-plugin-entry.d.ts +1 -0
- package/dist/shared/model-capabilities/bundled-snapshot.d.ts +2 -0
- package/dist/shared/model-capabilities/get-model-capabilities.d.ts +2 -0
- package/dist/shared/model-capabilities/index.d.ts +3 -0
- package/dist/shared/model-capabilities/runtime-model-readers.d.ts +11 -0
- package/dist/shared/{model-capabilities.d.ts → model-capabilities/types.d.ts} +35 -32
- package/dist/shared/model-suggestion-retry.d.ts +0 -9
- package/dist/shared/plugin-entry-migrator.d.ts +3 -0
- package/dist/shared/session-category-registry.d.ts +0 -24
- package/dist/shared/session-cursor.d.ts +6 -0
- package/dist/shared/skill-path-resolver.d.ts +0 -8
- package/dist/shared/task-system-enabled.d.ts +6 -0
- package/dist/shared/tmux/tmux-utils/server-health.d.ts +1 -0
- package/dist/shared/tmux/tmux-utils/session-spawn.d.ts +3 -0
- package/dist/shared/tmux/tmux-utils/window-spawn.d.ts +3 -0
- package/dist/shared/tmux/tmux-utils.d.ts +3 -1
- package/dist/shared/write-file-atomically.d.ts +1 -0
- package/dist/shared/zip-entry-listing/powershell-zip-entry-listing.d.ts +4 -0
- package/dist/shared/zip-entry-listing/python-zip-entry-listing.d.ts +3 -0
- package/dist/shared/zip-entry-listing/read-zip-symlink-target.d.ts +1 -0
- package/dist/shared/zip-entry-listing/tar-zip-entry-listing.d.ts +3 -0
- package/dist/shared/zip-entry-listing/zipinfo-zip-entry-listing.d.ts +4 -0
- package/dist/shared/zip-entry-listing.d.ts +4 -0
- package/dist/tools/call-omo-agent/background-executor.d.ts +2 -1
- package/dist/tools/call-omo-agent/sync-executor.d.ts +2 -1
- package/dist/tools/delegate-task/anthropic-categories.d.ts +2 -0
- package/dist/tools/delegate-task/builtin-categories.d.ts +4 -0
- package/dist/tools/delegate-task/builtin-category-definition.d.ts +7 -0
- package/dist/tools/delegate-task/constants.d.ts +1 -12
- package/dist/tools/delegate-task/executor-types.d.ts +2 -1
- package/dist/tools/delegate-task/google-categories.d.ts +2 -0
- package/dist/tools/delegate-task/kimi-categories.d.ts +2 -0
- package/dist/tools/delegate-task/openai-categories.d.ts +2 -0
- package/dist/tools/delegate-task/prompt-builder.d.ts +1 -1
- package/dist/tools/delegate-task/sync-prompt-sender.d.ts +2 -0
- package/dist/tools/delegate-task/types.d.ts +2 -1
- package/dist/tools/grep/cli.d.ts +3 -2
- package/dist/tools/grep/constants.d.ts +1 -2
- package/dist/tools/hashline-edit/tool-description.d.ts +1 -1
- package/dist/tools/look-at/constants.d.ts +1 -1
- package/dist/tools/lsp/infer-extension.d.ts +1 -0
- package/dist/tools/session-manager/file-storage.d.ts +8 -0
- package/dist/tools/session-manager/sdk-storage.d.ts +8 -0
- package/dist/tools/session-manager/sdk-unavailable.d.ts +1 -0
- package/dist/tools/session-manager/storage.d.ts +1 -1
- package/dist/tools/skill/description-formatter.d.ts +3 -0
- package/dist/tools/skill/mcp-capability-formatter.d.ts +3 -0
- package/dist/tools/skill/native-skills.d.ts +12 -0
- package/dist/tools/skill/scope-priority.d.ts +4 -0
- package/dist/tools/skill/skill-body.d.ts +2 -0
- package/dist/tools/skill/skill-matcher.d.ts +5 -0
- package/dist/tools/skill/types.d.ts +30 -2
- package/dist/tools/skill-mcp/tools.d.ts +1 -1
- package/package.json +14 -14
- package/postinstall.mjs +12 -0
- package/dist/hooks/openclaw.d.ts +0 -11
|
@@ -14,3 +14,9 @@ export declare function wakeCommandGateway(gatewayName: string, gatewayConfig: O
|
|
|
14
14
|
success: boolean;
|
|
15
15
|
error?: string;
|
|
16
16
|
}>;
|
|
17
|
+
type KillableProcess = {
|
|
18
|
+
pid?: number;
|
|
19
|
+
kill: (signal?: NodeJS.Signals) => void;
|
|
20
|
+
};
|
|
21
|
+
export declare function terminateCommandProcess(proc: KillableProcess, signal: NodeJS.Signals): void;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { CreatedHooks } from "../create-hooks";
|
|
2
|
+
type CommandExecuteBeforeInput = {
|
|
3
|
+
command: string;
|
|
4
|
+
sessionID: string;
|
|
5
|
+
arguments: string;
|
|
6
|
+
};
|
|
7
|
+
type CommandExecuteBeforeOutput = {
|
|
8
|
+
parts: Array<{
|
|
9
|
+
type: string;
|
|
10
|
+
text?: string;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}>;
|
|
13
|
+
};
|
|
14
|
+
export declare function createCommandExecuteBeforeHandler(args: {
|
|
15
|
+
hooks: CreatedHooks;
|
|
16
|
+
}): (input: CommandExecuteBeforeInput, output: CommandExecuteBeforeOutput) => Promise<void>;
|
|
17
|
+
export {};
|
|
@@ -12,6 +12,7 @@ export declare function createCoreHooks(args: {
|
|
|
12
12
|
keywordDetector: ReturnType<typeof import("../../hooks").createKeywordDetectorHook> | null;
|
|
13
13
|
contextInjectorMessagesTransform: ReturnType<typeof import("../../features/context-injector").createContextInjectorMessagesTransformHook>;
|
|
14
14
|
thinkingBlockValidator: ReturnType<typeof import("../../hooks").createThinkingBlockValidatorHook> | null;
|
|
15
|
+
toolPairValidator: ReturnType<typeof import("../../hooks").createToolPairValidatorHook> | null;
|
|
15
16
|
commentChecker: ReturnType<typeof import("../../hooks").createCommentCheckerHooks> | null;
|
|
16
17
|
toolOutputTruncator: ReturnType<typeof import("../../hooks").createToolOutputTruncatorHook> | null;
|
|
17
18
|
directoryAgentsInjector: ReturnType<typeof import("../../hooks").createDirectoryAgentsInjectorHook> | null;
|
|
@@ -20,6 +21,7 @@ export declare function createCoreHooks(args: {
|
|
|
20
21
|
rulesInjector: ReturnType<typeof import("../../hooks").createRulesInjectorHook> | null;
|
|
21
22
|
tasksTodowriteDisabler: ReturnType<typeof import("../../hooks").createTasksTodowriteDisablerHook> | null;
|
|
22
23
|
writeExistingFileGuard: ReturnType<typeof import("../../hooks").createWriteExistingFileGuardHook> | null;
|
|
24
|
+
bashFileReadGuard: ReturnType<typeof import("../../hooks").createBashFileReadGuardHook> | null;
|
|
23
25
|
hashlineReadEnhancer: ReturnType<typeof import("../../hooks").createHashlineReadEnhancerHook> | null;
|
|
24
26
|
jsonErrorRecovery: ReturnType<typeof import("../../hooks").createJsonErrorRecoveryHook> | null;
|
|
25
27
|
readImageResizer: ReturnType<typeof import("../../hooks").createReadImageResizerHook> | null;
|
|
@@ -48,4 +50,5 @@ export declare function createCoreHooks(args: {
|
|
|
48
50
|
taskResumeInfo: ReturnType<typeof import("../../hooks").createTaskResumeInfoHook> | null;
|
|
49
51
|
anthropicEffort: ReturnType<typeof import("../../hooks/anthropic-effort").createAnthropicEffortHook> | null;
|
|
50
52
|
runtimeFallback: ReturnType<typeof import("../../hooks").createRuntimeFallbackHook> | null;
|
|
53
|
+
legacyPluginToast: ReturnType<typeof import("../../hooks").createLegacyPluginToastHook> | null;
|
|
51
54
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { OhMyOpenCodeConfig, HookName } from "../../config";
|
|
2
2
|
import type { ModelCacheState } from "../../plugin-state";
|
|
3
3
|
import type { PluginContext } from "../types";
|
|
4
|
-
import { createContextWindowMonitorHook, createSessionRecoveryHook, createSessionNotification, createThinkModeHook, createModelFallbackHook, createAnthropicContextWindowLimitRecoveryHook, createAutoUpdateCheckerHook, createAgentUsageReminderHook, createNonInteractiveEnvHook, createInteractiveBashSessionHook, createRalphLoopHook, createEditErrorRecoveryHook, createDelegateTaskRetryHook, createTaskResumeInfoHook, createStartWorkHook, createPrometheusMdOnlyHook, createSisyphusJuniorNotepadHook, createNoSisyphusGptHook, createNoHephaestusNonGptHook, createQuestionLabelTruncatorHook, createPreemptiveCompactionHook, createRuntimeFallbackHook } from "../../hooks";
|
|
4
|
+
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";
|
|
5
5
|
import { createAnthropicEffortHook } from "../../hooks/anthropic-effort";
|
|
6
6
|
export type SessionHooks = {
|
|
7
7
|
contextWindowMonitor: ReturnType<typeof createContextWindowMonitorHook> | null;
|
|
@@ -27,6 +27,7 @@ export type SessionHooks = {
|
|
|
27
27
|
taskResumeInfo: ReturnType<typeof createTaskResumeInfoHook> | null;
|
|
28
28
|
anthropicEffort: ReturnType<typeof createAnthropicEffortHook> | null;
|
|
29
29
|
runtimeFallback: ReturnType<typeof createRuntimeFallbackHook> | null;
|
|
30
|
+
legacyPluginToast: ReturnType<typeof createLegacyPluginToastHook> | null;
|
|
30
31
|
};
|
|
31
32
|
export declare function createSessionHooks(args: {
|
|
32
33
|
ctx: PluginContext;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { HookName, OhMyOpenCodeConfig } from "../../config";
|
|
2
2
|
import type { ModelCacheState } from "../../plugin-state";
|
|
3
3
|
import type { PluginContext } from "../types";
|
|
4
|
-
import { createCommentCheckerHooks, createToolOutputTruncatorHook, createDirectoryAgentsInjectorHook, createDirectoryReadmeInjectorHook, createEmptyTaskResponseDetectorHook, createRulesInjectorHook, createTasksTodowriteDisablerHook, createWriteExistingFileGuardHook, createHashlineReadEnhancerHook, createReadImageResizerHook, createJsonErrorRecoveryHook, createTodoDescriptionOverrideHook, createWebFetchRedirectGuardHook } from "../../hooks";
|
|
4
|
+
import { createCommentCheckerHooks, createToolOutputTruncatorHook, createDirectoryAgentsInjectorHook, createDirectoryReadmeInjectorHook, createEmptyTaskResponseDetectorHook, createRulesInjectorHook, createTasksTodowriteDisablerHook, createWriteExistingFileGuardHook, createBashFileReadGuardHook, createHashlineReadEnhancerHook, createReadImageResizerHook, createJsonErrorRecoveryHook, createTodoDescriptionOverrideHook, createWebFetchRedirectGuardHook } from "../../hooks";
|
|
5
5
|
export type ToolGuardHooks = {
|
|
6
6
|
commentChecker: ReturnType<typeof createCommentCheckerHooks> | null;
|
|
7
7
|
toolOutputTruncator: ReturnType<typeof createToolOutputTruncatorHook> | null;
|
|
@@ -11,6 +11,7 @@ export type ToolGuardHooks = {
|
|
|
11
11
|
rulesInjector: ReturnType<typeof createRulesInjectorHook> | null;
|
|
12
12
|
tasksTodowriteDisabler: ReturnType<typeof createTasksTodowriteDisablerHook> | null;
|
|
13
13
|
writeExistingFileGuard: ReturnType<typeof createWriteExistingFileGuardHook> | null;
|
|
14
|
+
bashFileReadGuard: ReturnType<typeof createBashFileReadGuardHook> | null;
|
|
14
15
|
hashlineReadEnhancer: ReturnType<typeof createHashlineReadEnhancerHook> | null;
|
|
15
16
|
jsonErrorRecovery: ReturnType<typeof createJsonErrorRecoveryHook> | null;
|
|
16
17
|
readImageResizer: ReturnType<typeof createReadImageResizerHook> | null;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { OhMyOpenCodeConfig } from "../../config";
|
|
2
2
|
import type { PluginContext } from "../types";
|
|
3
|
-
import { createClaudeCodeHooksHook, createKeywordDetectorHook, createThinkingBlockValidatorHook } from "../../hooks";
|
|
3
|
+
import { createClaudeCodeHooksHook, createKeywordDetectorHook, createThinkingBlockValidatorHook, createToolPairValidatorHook } from "../../hooks";
|
|
4
4
|
import { createContextInjectorMessagesTransformHook } from "../../features/context-injector";
|
|
5
5
|
export type TransformHooks = {
|
|
6
6
|
claudeCodeHooks: ReturnType<typeof createClaudeCodeHooksHook> | null;
|
|
7
7
|
keywordDetector: ReturnType<typeof createKeywordDetectorHook> | null;
|
|
8
8
|
contextInjectorMessagesTransform: ReturnType<typeof createContextInjectorMessagesTransformHook>;
|
|
9
9
|
thinkingBlockValidator: ReturnType<typeof createThinkingBlockValidatorHook> | null;
|
|
10
|
+
toolPairValidator: ReturnType<typeof createToolPairValidatorHook> | null;
|
|
10
11
|
};
|
|
11
12
|
export declare function createTransformHooks(args: {
|
|
12
13
|
ctx: PluginContext;
|
|
@@ -7,6 +7,7 @@ export type ToolRegistryResult = {
|
|
|
7
7
|
filteredTools: ToolsRecord;
|
|
8
8
|
taskSystemEnabled: boolean;
|
|
9
9
|
};
|
|
10
|
+
export declare function trimToolsToCap(filteredTools: ToolsRecord, maxTools: number): void;
|
|
10
11
|
export declare function createToolRegistry(args: {
|
|
11
12
|
ctx: PluginContext;
|
|
12
13
|
pluginConfig: OhMyOpenCodeConfig;
|
package/dist/plugin/types.d.ts
CHANGED
package/dist/plugin-dispose.d.ts
CHANGED
|
@@ -10,8 +10,16 @@ export declare const AGENT_DISPLAY_NAMES: Record<string, string>;
|
|
|
10
10
|
* Returns original key if not found.
|
|
11
11
|
*/
|
|
12
12
|
export declare function getAgentDisplayName(configKey: string): string;
|
|
13
|
+
export declare function getAgentListDisplayName(configKey: string): string;
|
|
13
14
|
/**
|
|
14
15
|
* Resolve an agent name (display name or config key) to its lowercase config key.
|
|
15
16
|
* "Atlas (Plan Executor)" → "atlas", "atlas" → "atlas", "unknown" → "unknown"
|
|
16
17
|
*/
|
|
17
18
|
export declare function getAgentConfigKey(agentName: string): string;
|
|
19
|
+
/**
|
|
20
|
+
* Normalize an agent name for prompt APIs.
|
|
21
|
+
* - Known display names -> canonical display names
|
|
22
|
+
* - Known config keys (any case) -> canonical display names
|
|
23
|
+
* - Unknown/custom names -> preserved as-is (trimmed)
|
|
24
|
+
*/
|
|
25
|
+
export declare function normalizeAgentForPrompt(agentName: string | undefined): string | undefined;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function recordBackgroundOutputConsumption(parentSessionID: string | undefined, parentMessageID: string | undefined, taskSessionID: string | undefined): void;
|
|
2
|
+
export declare function restoreBackgroundOutputConsumption(parentSessionID: string | undefined, parentMessageID: string | undefined): void;
|
|
3
|
+
export declare function clearBackgroundOutputConsumptionsForParentSession(sessionID: string | undefined): void;
|
|
4
|
+
export declare function clearBackgroundOutputConsumptionsForTaskSession(taskSessionID: string | undefined): void;
|
|
5
|
+
export declare function clearBackgroundOutputConsumptionState(): void;
|
|
@@ -47,6 +47,7 @@ export declare function createConnectedProvidersCacheStore(getCacheDir?: () => s
|
|
|
47
47
|
}>;
|
|
48
48
|
};
|
|
49
49
|
}) => Promise<void>;
|
|
50
|
+
_resetMemCacheForTesting: () => void;
|
|
50
51
|
};
|
|
51
52
|
export declare function findProviderModelMetadata(providerID: string, modelID: string, cache?: ProviderModelsCache | null): ModelMetadata | undefined;
|
|
52
53
|
export declare const readConnectedProvidersCache: () => string[] | null, hasConnectedProvidersCache: () => boolean, readProviderModelsCache: () => ProviderModelsCache | null, hasProviderModelsCache: () => boolean, writeProviderModelsCache: (data: {
|
|
@@ -64,4 +65,4 @@ export declare const readConnectedProvidersCache: () => string[] | null, hasConn
|
|
|
64
65
|
};
|
|
65
66
|
}>;
|
|
66
67
|
};
|
|
67
|
-
}) => Promise<void
|
|
68
|
+
}) => Promise<void>, _resetMemCacheForTesting: () => void;
|
|
@@ -7,12 +7,26 @@ export interface ExternalNotifierResult {
|
|
|
7
7
|
pluginName: string | null;
|
|
8
8
|
allPlugins: string[];
|
|
9
9
|
}
|
|
10
|
+
export interface ExternalSkillPluginResult {
|
|
11
|
+
detected: boolean;
|
|
12
|
+
pluginName: string | null;
|
|
13
|
+
allPlugins: string[];
|
|
14
|
+
}
|
|
10
15
|
/**
|
|
11
16
|
* Detect if any external notification plugin is configured.
|
|
12
17
|
* Returns information about detected plugins for logging/warning.
|
|
13
18
|
*/
|
|
14
19
|
export declare function detectExternalNotificationPlugin(directory: string): ExternalNotifierResult;
|
|
20
|
+
/**
|
|
21
|
+
* Detect if any external skill plugin is configured.
|
|
22
|
+
* Returns information about detected plugins for logging/warning.
|
|
23
|
+
*/
|
|
24
|
+
export declare function detectExternalSkillPlugin(directory: string): ExternalSkillPluginResult;
|
|
15
25
|
/**
|
|
16
26
|
* Generate a warning message for users with conflicting notification plugins.
|
|
17
27
|
*/
|
|
18
28
|
export declare function getNotificationConflictWarning(pluginName: string): string;
|
|
29
|
+
/**
|
|
30
|
+
* Generate a warning message for users with conflicting skill plugins.
|
|
31
|
+
*/
|
|
32
|
+
export declare function getSkillPluginConflictWarning(pluginName: string): string;
|
package/dist/shared/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./frontmatter";
|
|
2
2
|
export * from "./command-executor";
|
|
3
|
+
export * from "./contains-path";
|
|
3
4
|
export * from "./file-reference-resolver";
|
|
4
5
|
export * from "./model-sanitizer";
|
|
5
6
|
export * from "./logger";
|
|
@@ -23,6 +24,7 @@ export * from "./permission-compat";
|
|
|
23
24
|
export * from "./external-plugin-detector";
|
|
24
25
|
export * from "./zip-extractor";
|
|
25
26
|
export * from "./binary-downloader";
|
|
27
|
+
export * from "./write-file-atomically";
|
|
26
28
|
export * from "./agent-variant";
|
|
27
29
|
export * from "./session-cursor";
|
|
28
30
|
export * from "./shell-env";
|
|
@@ -63,3 +65,4 @@ export * from "./plugin-command-discovery";
|
|
|
63
65
|
export { SessionCategoryRegistry } from "./session-category-registry";
|
|
64
66
|
export * from "./plugin-identity";
|
|
65
67
|
export * from "./log-legacy-plugin-startup-warning";
|
|
68
|
+
export * from "./task-system-enabled";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isAbortError(error: unknown): boolean;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type JsonFileCacheStoreOptions<TValue> = {
|
|
2
|
+
getCacheDir: () => string;
|
|
3
|
+
filename: string;
|
|
4
|
+
logPrefix: string;
|
|
5
|
+
cacheLabel: string;
|
|
6
|
+
describe: (value: TValue) => Record<string, unknown>;
|
|
7
|
+
serialize?: (value: TValue) => string;
|
|
8
|
+
};
|
|
9
|
+
type JsonFileCacheStore<TValue> = {
|
|
10
|
+
read: () => TValue | null;
|
|
11
|
+
has: () => boolean;
|
|
12
|
+
write: (value: TValue) => void;
|
|
13
|
+
resetMemory: () => void;
|
|
14
|
+
};
|
|
15
|
+
export declare function createJsonFileCacheStore<TValue>(options: JsonFileCacheStoreOptions<TValue>): JsonFileCacheStore<TValue>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function loadOpencodePlugins(directory: string): string[];
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { checkForLegacyPluginEntry } from "./legacy-plugin-warning";
|
|
2
|
+
import { log } from "./logger";
|
|
3
|
+
import { migrateLegacyPluginEntry } from "./migrate-legacy-plugin-entry";
|
|
4
|
+
type LogLegacyPluginStartupWarningDeps = {
|
|
5
|
+
checkForLegacyPluginEntry?: typeof checkForLegacyPluginEntry;
|
|
6
|
+
log?: typeof log;
|
|
7
|
+
migrateLegacyPluginEntry?: typeof migrateLegacyPluginEntry;
|
|
8
|
+
};
|
|
9
|
+
export declare function logLegacyPluginStartupWarning(deps?: LogLegacyPluginStartupWarningDeps): void;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function migrateLegacyConfigFile(legacyPath: string): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function migrateLegacyPluginEntry(configPath: string): boolean;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { getBundledModelCapabilitiesSnapshot } from "./bundled-snapshot";
|
|
2
|
+
export { getModelCapabilities } from "./get-model-capabilities";
|
|
3
|
+
export type { GetModelCapabilitiesInput, ModelCapabilities, ModelCapabilitiesDiagnostics, ModelCapabilitiesSnapshot, ModelCapabilitiesSnapshotEntry, } from "./types";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ModelMetadata } from "../connected-providers-cache";
|
|
2
|
+
import type { ModelCapabilities } from "./types";
|
|
3
|
+
export declare function readRuntimeModel(runtimeModel: ModelMetadata | Record<string, unknown> | undefined): Record<string, unknown> | undefined;
|
|
4
|
+
export declare function readRuntimeModelVariants(runtimeModel: Record<string, unknown> | undefined): string[] | undefined;
|
|
5
|
+
export declare function readRuntimeModelModalities(runtimeModel: Record<string, unknown> | undefined): ModelCapabilities["modalities"] | undefined;
|
|
6
|
+
export declare function readRuntimeModelReasoningSupport(runtimeModel: Record<string, unknown> | undefined): boolean | undefined;
|
|
7
|
+
export declare function readRuntimeModelThinkingSupport(runtimeModel: Record<string, unknown> | undefined): boolean | undefined;
|
|
8
|
+
export declare function readRuntimeModelTemperatureSupport(runtimeModel: Record<string, unknown> | undefined): boolean | undefined;
|
|
9
|
+
export declare function readRuntimeModelTopPSupport(runtimeModel: Record<string, unknown> | undefined): boolean | undefined;
|
|
10
|
+
export declare function readRuntimeModelToolCallSupport(runtimeModel: Record<string, unknown> | undefined): boolean | undefined;
|
|
11
|
+
export declare function readRuntimeModelLimitOutput(runtimeModel: Record<string, unknown> | undefined): number | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ModelMetadata } from "../connected-providers-cache";
|
|
2
2
|
export type ModelCapabilitiesSnapshotEntry = {
|
|
3
3
|
id: string;
|
|
4
4
|
family?: string;
|
|
@@ -20,32 +20,6 @@ export type ModelCapabilitiesSnapshot = {
|
|
|
20
20
|
sourceUrl: string;
|
|
21
21
|
models: Record<string, ModelCapabilitiesSnapshotEntry>;
|
|
22
22
|
};
|
|
23
|
-
export type ModelCapabilities = {
|
|
24
|
-
requestedModelID: string;
|
|
25
|
-
canonicalModelID: string;
|
|
26
|
-
family?: string;
|
|
27
|
-
variants?: string[];
|
|
28
|
-
reasoningEfforts?: string[];
|
|
29
|
-
reasoning?: boolean;
|
|
30
|
-
supportsThinking?: boolean;
|
|
31
|
-
supportsTemperature?: boolean;
|
|
32
|
-
supportsTopP?: boolean;
|
|
33
|
-
maxOutputTokens?: number;
|
|
34
|
-
toolCall?: boolean;
|
|
35
|
-
modalities?: {
|
|
36
|
-
input?: string[];
|
|
37
|
-
output?: string[];
|
|
38
|
-
};
|
|
39
|
-
diagnostics: ModelCapabilitiesDiagnostics;
|
|
40
|
-
};
|
|
41
|
-
type GetModelCapabilitiesInput = {
|
|
42
|
-
providerID: string;
|
|
43
|
-
modelID: string;
|
|
44
|
-
runtimeModel?: ModelMetadata | Record<string, unknown>;
|
|
45
|
-
runtimeSnapshot?: ModelCapabilitiesSnapshot;
|
|
46
|
-
bundledSnapshot?: ModelCapabilitiesSnapshot;
|
|
47
|
-
};
|
|
48
|
-
type DiagnosticSource = "none" | "runtime" | "runtime-snapshot" | "bundled-snapshot" | "override" | "heuristic" | "canonical" | "exact-alias" | "pattern-alias";
|
|
49
23
|
export type ModelCapabilitiesDiagnostics = {
|
|
50
24
|
resolutionMode: "snapshot-backed" | "alias-backed" | "heuristic-backed" | "unknown";
|
|
51
25
|
canonicalization: {
|
|
@@ -59,10 +33,10 @@ export type ModelCapabilitiesDiagnostics = {
|
|
|
59
33
|
source: "snapshot" | "heuristic" | "none";
|
|
60
34
|
};
|
|
61
35
|
variants: {
|
|
62
|
-
source:
|
|
36
|
+
source: "none" | "runtime" | "override" | "heuristic" | "canonical";
|
|
63
37
|
};
|
|
64
38
|
reasoningEfforts: {
|
|
65
|
-
source:
|
|
39
|
+
source: "none" | "override" | "heuristic";
|
|
66
40
|
};
|
|
67
41
|
reasoning: {
|
|
68
42
|
source: "runtime" | "runtime-snapshot" | "bundled-snapshot" | "none";
|
|
@@ -86,6 +60,35 @@ export type ModelCapabilitiesDiagnostics = {
|
|
|
86
60
|
source: "runtime" | "runtime-snapshot" | "bundled-snapshot" | "none";
|
|
87
61
|
};
|
|
88
62
|
};
|
|
89
|
-
export
|
|
90
|
-
|
|
91
|
-
|
|
63
|
+
export type ModelCapabilities = {
|
|
64
|
+
requestedModelID: string;
|
|
65
|
+
canonicalModelID: string;
|
|
66
|
+
family?: string;
|
|
67
|
+
variants?: string[];
|
|
68
|
+
reasoningEfforts?: string[];
|
|
69
|
+
reasoning?: boolean;
|
|
70
|
+
supportsThinking?: boolean;
|
|
71
|
+
supportsTemperature?: boolean;
|
|
72
|
+
supportsTopP?: boolean;
|
|
73
|
+
maxOutputTokens?: number;
|
|
74
|
+
toolCall?: boolean;
|
|
75
|
+
modalities?: {
|
|
76
|
+
input?: string[];
|
|
77
|
+
output?: string[];
|
|
78
|
+
};
|
|
79
|
+
diagnostics: ModelCapabilitiesDiagnostics;
|
|
80
|
+
};
|
|
81
|
+
export type GetModelCapabilitiesInput = {
|
|
82
|
+
providerID: string;
|
|
83
|
+
modelID: string;
|
|
84
|
+
runtimeModel?: ModelMetadata | Record<string, unknown>;
|
|
85
|
+
runtimeSnapshot?: ModelCapabilitiesSnapshot;
|
|
86
|
+
bundledSnapshot?: ModelCapabilitiesSnapshot;
|
|
87
|
+
};
|
|
88
|
+
export type ModelCapabilityOverride = {
|
|
89
|
+
variants?: string[];
|
|
90
|
+
reasoningEfforts?: string[];
|
|
91
|
+
supportsThinking?: boolean;
|
|
92
|
+
supportsTemperature?: boolean;
|
|
93
|
+
supportsTopP?: boolean;
|
|
94
|
+
};
|
|
@@ -23,14 +23,5 @@ interface PromptArgs {
|
|
|
23
23
|
[key: string]: unknown;
|
|
24
24
|
}
|
|
25
25
|
export declare function promptWithModelSuggestionRetry(client: Client, args: PromptArgs, options?: PromptRetryOptions): Promise<void>;
|
|
26
|
-
/**
|
|
27
|
-
* Synchronous variant of promptWithModelSuggestionRetry.
|
|
28
|
-
*
|
|
29
|
-
* Uses `session.prompt` (blocking HTTP call that waits for the LLM response)
|
|
30
|
-
* instead of `promptAsync` (fire-and-forget HTTP 204).
|
|
31
|
-
*
|
|
32
|
-
* Required by callers that need the response to be available immediately after
|
|
33
|
-
* the call returns — e.g. look_at, which reads session messages right away.
|
|
34
|
-
*/
|
|
35
26
|
export declare function promptSyncWithModelSuggestionRetry(client: Client, args: PromptArgs, options?: PromptRetryOptions): Promise<void>;
|
|
36
27
|
export {};
|
|
@@ -1,32 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Session Category Registry
|
|
3
|
-
*
|
|
4
|
-
* Maintains a mapping of session IDs to their assigned categories.
|
|
5
|
-
* Used by runtime-fallback hook to lookup category-specific fallback_models.
|
|
6
|
-
*/
|
|
7
1
|
export declare const SessionCategoryRegistry: {
|
|
8
|
-
/**
|
|
9
|
-
* Register a session with its category
|
|
10
|
-
*/
|
|
11
2
|
register: (sessionID: string, category: string) => void;
|
|
12
|
-
/**
|
|
13
|
-
* Get the category for a session
|
|
14
|
-
*/
|
|
15
3
|
get: (sessionID: string) => string | undefined;
|
|
16
|
-
/**
|
|
17
|
-
* Remove a session from the registry (cleanup)
|
|
18
|
-
*/
|
|
19
4
|
remove: (sessionID: string) => void;
|
|
20
|
-
/**
|
|
21
|
-
* Check if a session is registered
|
|
22
|
-
*/
|
|
23
5
|
has: (sessionID: string) => boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Get the size of the registry (for debugging)
|
|
26
|
-
*/
|
|
27
6
|
size: () => number;
|
|
28
|
-
/**
|
|
29
|
-
* Clear all entries (use with caution, mainly for testing)
|
|
30
|
-
*/
|
|
31
7
|
clear: () => void;
|
|
32
8
|
};
|
|
@@ -8,6 +8,12 @@ type MessageInfo = {
|
|
|
8
8
|
export type CursorMessage = {
|
|
9
9
|
info?: MessageInfo;
|
|
10
10
|
};
|
|
11
|
+
export interface CursorState {
|
|
12
|
+
lastKey?: string;
|
|
13
|
+
lastCount: number;
|
|
14
|
+
}
|
|
11
15
|
export declare function consumeNewMessages<T extends CursorMessage>(sessionID: string | undefined, messages: T[]): T[];
|
|
12
16
|
export declare function resetMessageCursor(sessionID?: string): void;
|
|
17
|
+
export declare function getMessageCursor(sessionID: string | undefined): CursorState | undefined;
|
|
18
|
+
export declare function restoreMessageCursor(sessionID: string | undefined, cursor: CursorState | undefined): void;
|
|
13
19
|
export {};
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Resolves @path references in skill content to absolute paths.
|
|
3
|
-
*
|
|
4
|
-
* Matches @references that contain at least one slash (e.g., @scripts/search.py, @data/)
|
|
5
|
-
* to avoid false positives with decorators (@param), JSDoc tags (@ts-ignore), etc.
|
|
6
|
-
*
|
|
7
|
-
* Email addresses are excluded since they have alphanumeric characters before @.
|
|
8
|
-
*/
|
|
9
1
|
export declare function resolveSkillPathReferences(content: string, basePath: string): string;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { TmuxConfig } from "../../../config/schema";
|
|
2
|
+
import type { SpawnPaneResult } from "../types";
|
|
3
|
+
export declare function spawnTmuxSession(sessionId: string, description: string, config: TmuxConfig, serverUrl: string, sourcePaneId?: string): Promise<SpawnPaneResult>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export { isInsideTmux, getCurrentPaneId } from "./tmux-utils/environment";
|
|
2
2
|
export type { SplitDirection } from "./tmux-utils/environment";
|
|
3
|
-
export { isServerRunning, resetServerCheck } from "./tmux-utils/server-health";
|
|
3
|
+
export { isServerRunning, resetServerCheck, markServerRunningInProcess } from "./tmux-utils/server-health";
|
|
4
4
|
export { getPaneDimensions } from "./tmux-utils/pane-dimensions";
|
|
5
5
|
export type { PaneDimensions } from "./tmux-utils/pane-dimensions";
|
|
6
6
|
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
|
+
export { spawnTmuxWindow } from "./tmux-utils/window-spawn";
|
|
10
|
+
export { spawnTmuxSession } from "./tmux-utils/session-spawn";
|
|
9
11
|
export { applyLayout, enforceMainPaneWidth } from "./tmux-utils/layout";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function writeFileAtomically(filePath: string, content: string): void;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ArchiveEntry } from "../archive-entry-validator";
|
|
2
|
+
export type PowerShellZipExtractor = "pwsh" | "powershell";
|
|
3
|
+
export declare function parsePowerShellZipEntryLine(line: string): ArchiveEntry | null;
|
|
4
|
+
export declare function listZipEntriesWithPowerShell(archivePath: string, escapePowerShellPath: (path: string) => string, extractor: PowerShellZipExtractor): Promise<ArchiveEntry[]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function readZipSymlinkTarget(archivePath: string, entryPath: string): Promise<string | undefined>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ArchiveEntry } from "../archive-entry-validator";
|
|
2
|
+
export declare function parseZipInfoListedEntry(line: string): ArchiveEntry | null;
|
|
3
|
+
export declare function isZipInfoZipListingAvailable(): boolean;
|
|
4
|
+
export declare function listZipEntriesWithZipInfo(archivePath: string): Promise<ArchiveEntry[]>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { isPythonZipListingAvailable, listZipEntriesWithPython, } from "./zip-entry-listing/python-zip-entry-listing";
|
|
2
|
+
export { listZipEntriesWithPowerShell, type PowerShellZipExtractor, } from "./zip-entry-listing/powershell-zip-entry-listing";
|
|
3
|
+
export { listZipEntriesWithTar } from "./zip-entry-listing/tar-zip-entry-listing";
|
|
4
|
+
export { isZipInfoZipListingAvailable, listZipEntriesWithZipInfo, } from "./zip-entry-listing/zipinfo-zip-entry-listing";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { CallOmoAgentArgs } from "./types";
|
|
2
2
|
import type { BackgroundManager } from "../../features/background-agent";
|
|
3
3
|
import type { PluginInput } from "@opencode-ai/plugin";
|
|
4
|
+
import type { DelegatedModelConfig } from "../../shared/model-resolution-types";
|
|
4
5
|
import type { FallbackEntry } from "../../shared/model-requirements";
|
|
5
6
|
export declare function executeBackground(args: CallOmoAgentArgs, toolContext: {
|
|
6
7
|
sessionID: string;
|
|
@@ -11,4 +12,4 @@ export declare function executeBackground(args: CallOmoAgentArgs, toolContext: {
|
|
|
11
12
|
title?: string;
|
|
12
13
|
metadata?: Record<string, unknown>;
|
|
13
14
|
}) => void;
|
|
14
|
-
}, manager: BackgroundManager, client: PluginInput["client"], fallbackChain?: FallbackEntry[]): Promise<string>;
|
|
15
|
+
}, manager: BackgroundManager, client: PluginInput["client"], fallbackChain?: FallbackEntry[], model?: DelegatedModelConfig): Promise<string>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { CallOmoAgentArgs } from "./types";
|
|
2
2
|
import type { PluginInput } from "@opencode-ai/plugin";
|
|
3
3
|
import { clearSessionFallbackChain, setSessionFallbackChain } from "../../hooks/model-fallback/hook";
|
|
4
|
+
import type { DelegatedModelConfig } from "../../shared/model-resolution-types";
|
|
4
5
|
import type { FallbackEntry } from "../../shared/model-requirements";
|
|
5
6
|
import { waitForCompletion } from "./completion-poller";
|
|
6
7
|
import { processMessages } from "./message-processor";
|
|
@@ -25,5 +26,5 @@ export declare function executeSync(args: CallOmoAgentArgs, toolContext: {
|
|
|
25
26
|
title?: string;
|
|
26
27
|
metadata?: Record<string, unknown>;
|
|
27
28
|
}) => void | Promise<void>;
|
|
28
|
-
}, ctx: PluginInput, deps?: ExecuteSyncDeps, fallbackChain?: FallbackEntry[], spawnReservation?: SpawnReservation): Promise<string>;
|
|
29
|
+
}, ctx: PluginInput, deps?: ExecuteSyncDeps, fallbackChain?: FallbackEntry[], spawnReservation?: SpawnReservation, model?: DelegatedModelConfig): Promise<string>;
|
|
29
30
|
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CategoryConfig } from "../../config/schema";
|
|
2
|
+
export declare const DEFAULT_CATEGORIES: Record<string, CategoryConfig>;
|
|
3
|
+
export declare const CATEGORY_PROMPT_APPENDS: Record<string, string>;
|
|
4
|
+
export declare const CATEGORY_DESCRIPTIONS: Record<string, string>;
|