oh-my-opencode 3.17.0 → 3.17.2
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 +4 -0
- package/README.ko.md +4 -0
- package/README.ru.md +4 -0
- package/README.zh-cn.md +4 -0
- package/dist/cli/doctor/spawn-with-timeout.d.ts +8 -0
- package/dist/cli/index.js +714 -460
- 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/create-tools.d.ts +2 -1
- package/dist/features/background-agent/session-existence.d.ts +1 -1
- package/dist/features/background-agent/subagent-spawn-limits.d.ts +1 -1
- package/dist/features/background-agent/task-poller.d.ts +1 -0
- package/dist/features/builtin-commands/commands.d.ts +2 -1
- package/dist/hooks/atlas/system-reminder-templates.d.ts +2 -2
- package/dist/hooks/directory-agents-injector/hook.d.ts +7 -7
- package/dist/hooks/directory-readme-injector/hook.d.ts +7 -7
- package/dist/hooks/model-fallback/next-fallback.d.ts +8 -0
- package/dist/index.js +752 -446
- 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/tools/delegate-task/delegated-model-config.d.ts +3 -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/subagent-discovery.d.ts +15 -0
- package/dist/tools/delegate-task/sync-task-fallback.d.ts +12 -0
- package/dist/tools/skill/constants.d.ts +1 -1
- package/package.json +12 -12
|
@@ -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;
|
|
@@ -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,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;
|
|
@@ -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
|
+
}>;
|
|
@@ -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";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oh-my-opencode",
|
|
3
|
-
"version": "3.17.
|
|
3
|
+
"version": "3.17.2",
|
|
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",
|
|
@@ -79,17 +79,17 @@
|
|
|
79
79
|
"typescript": "^5.7.3"
|
|
80
80
|
},
|
|
81
81
|
"optionalDependencies": {
|
|
82
|
-
"oh-my-opencode-darwin-arm64": "3.17.
|
|
83
|
-
"oh-my-opencode-darwin-x64": "3.17.
|
|
84
|
-
"oh-my-opencode-darwin-x64-baseline": "3.17.
|
|
85
|
-
"oh-my-opencode-linux-arm64": "3.17.
|
|
86
|
-
"oh-my-opencode-linux-arm64-musl": "3.17.
|
|
87
|
-
"oh-my-opencode-linux-x64": "3.17.
|
|
88
|
-
"oh-my-opencode-linux-x64-baseline": "3.17.
|
|
89
|
-
"oh-my-opencode-linux-x64-musl": "3.17.
|
|
90
|
-
"oh-my-opencode-linux-x64-musl-baseline": "3.17.
|
|
91
|
-
"oh-my-opencode-windows-x64": "3.17.
|
|
92
|
-
"oh-my-opencode-windows-x64-baseline": "3.17.
|
|
82
|
+
"oh-my-opencode-darwin-arm64": "3.17.2",
|
|
83
|
+
"oh-my-opencode-darwin-x64": "3.17.2",
|
|
84
|
+
"oh-my-opencode-darwin-x64-baseline": "3.17.2",
|
|
85
|
+
"oh-my-opencode-linux-arm64": "3.17.2",
|
|
86
|
+
"oh-my-opencode-linux-arm64-musl": "3.17.2",
|
|
87
|
+
"oh-my-opencode-linux-x64": "3.17.2",
|
|
88
|
+
"oh-my-opencode-linux-x64-baseline": "3.17.2",
|
|
89
|
+
"oh-my-opencode-linux-x64-musl": "3.17.2",
|
|
90
|
+
"oh-my-opencode-linux-x64-musl-baseline": "3.17.2",
|
|
91
|
+
"oh-my-opencode-windows-x64": "3.17.2",
|
|
92
|
+
"oh-my-opencode-windows-x64-baseline": "3.17.2"
|
|
93
93
|
},
|
|
94
94
|
"overrides": {},
|
|
95
95
|
"trustedDependencies": [
|