oh-my-opencode-unguarded 3.10.2 → 3.10.4
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 +6 -0
- package/dist/cli/doctor/checks/system-loaded-version.d.ts +1 -0
- package/dist/cli/index.js +96 -18
- package/dist/config/schema/background-task.d.ts +1 -0
- package/dist/config/schema/oh-my-opencode-config.d.ts +4 -0
- package/dist/config/schema/start-work.d.ts +5 -0
- package/dist/hooks/atlas/tool-execute-after.d.ts +1 -0
- package/dist/hooks/atlas/types.d.ts +2 -0
- package/dist/hooks/atlas/verification-reminders.d.ts +1 -1
- package/dist/hooks/auto-slash-command/executor.d.ts +2 -0
- package/dist/hooks/auto-slash-command/hook.d.ts +2 -0
- package/dist/hooks/preemptive-compaction.d.ts +1 -0
- package/dist/hooks/session-notification-utils.d.ts +1 -0
- package/dist/index.js +1690 -1365
- package/dist/oh-my-opencode.schema.json +17 -0
- package/dist/plugin/hooks/create-skill-hooks.d.ts +2 -1
- package/dist/shared/index.d.ts +2 -0
- package/dist/shared/model-format-normalizer.d.ts +7 -0
- package/dist/shared/model-normalization.d.ts +2 -0
- package/dist/shared/plugin-command-discovery.d.ts +6 -0
- package/dist/tools/delegate-task/executor-types.d.ts +1 -0
- package/dist/tools/delegate-task/sync-session-poller.d.ts +1 -1
- package/dist/tools/delegate-task/timing.d.ts +2 -0
- package/dist/tools/delegate-task/types.d.ts +1 -0
- package/dist/tools/hashline-edit/tool-description.d.ts +1 -1
- package/dist/tools/look-at/image-converter.d.ts +7 -0
- package/dist/tools/skill/types.d.ts +4 -0
- package/dist/tools/skill-mcp/constants.d.ts +1 -0
- package/dist/tools/slashcommand/command-discovery.d.ts +5 -1
- package/dist/tools/slashcommand/types.d.ts +1 -1
- package/package.json +2 -2
- package/dist/shared/model-name-matcher.d.ts +0 -1
|
@@ -3685,6 +3685,10 @@
|
|
|
3685
3685
|
"messageStalenessTimeoutMs": {
|
|
3686
3686
|
"type": "number",
|
|
3687
3687
|
"minimum": 60000
|
|
3688
|
+
},
|
|
3689
|
+
"syncPollTimeoutMs": {
|
|
3690
|
+
"type": "number",
|
|
3691
|
+
"minimum": 60000
|
|
3688
3692
|
}
|
|
3689
3693
|
},
|
|
3690
3694
|
"additionalProperties": false
|
|
@@ -3837,6 +3841,19 @@
|
|
|
3837
3841
|
},
|
|
3838
3842
|
"additionalProperties": false
|
|
3839
3843
|
},
|
|
3844
|
+
"start_work": {
|
|
3845
|
+
"type": "object",
|
|
3846
|
+
"properties": {
|
|
3847
|
+
"auto_commit": {
|
|
3848
|
+
"default": true,
|
|
3849
|
+
"type": "boolean"
|
|
3850
|
+
}
|
|
3851
|
+
},
|
|
3852
|
+
"required": [
|
|
3853
|
+
"auto_commit"
|
|
3854
|
+
],
|
|
3855
|
+
"additionalProperties": false
|
|
3856
|
+
},
|
|
3840
3857
|
"_migrations": {
|
|
3841
3858
|
"type": "array",
|
|
3842
3859
|
"items": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AvailableSkill } from "../../agents/dynamic-agent-prompt-builder";
|
|
2
|
-
import type { HookName } from "../../config";
|
|
2
|
+
import type { HookName, OhMyOpenCodeConfig } from "../../config";
|
|
3
3
|
import type { LoadedSkill } from "../../features/opencode-skill-loader/types";
|
|
4
4
|
import type { PluginContext } from "../types";
|
|
5
5
|
import { createAutoSlashCommandHook, createCategorySkillReminderHook } from "../../hooks";
|
|
@@ -9,6 +9,7 @@ export type SkillHooks = {
|
|
|
9
9
|
};
|
|
10
10
|
export declare function createSkillHooks(args: {
|
|
11
11
|
ctx: PluginContext;
|
|
12
|
+
pluginConfig: OhMyOpenCodeConfig;
|
|
12
13
|
isHookEnabled: (hookName: HookName) => boolean;
|
|
13
14
|
safeHookEnabled: boolean;
|
|
14
15
|
mergedSkills: LoadedSkill[];
|
package/dist/shared/index.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ export * from "./system-directive";
|
|
|
30
30
|
export * from "./agent-tool-restrictions";
|
|
31
31
|
export * from "./model-requirements";
|
|
32
32
|
export * from "./model-resolver";
|
|
33
|
+
export { normalizeModel, normalizeModelID } from "./model-normalization";
|
|
33
34
|
export { normalizeFallbackModels } from "./model-resolver";
|
|
34
35
|
export { resolveModelPipeline } from "./model-resolution-pipeline";
|
|
35
36
|
export type { ModelResolutionRequest, ModelResolutionProvenance, ModelResolutionResult, } from "./model-resolution-types";
|
|
@@ -51,4 +52,5 @@ export * from "./normalize-sdk-response";
|
|
|
51
52
|
export * from "./session-directory-resolver";
|
|
52
53
|
export * from "./prompt-tools";
|
|
53
54
|
export * from "./internal-initiator-marker";
|
|
55
|
+
export * from "./plugin-command-discovery";
|
|
54
56
|
export { SessionCategoryRegistry } from "./session-category-registry";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CommandDefinition } from "../features/claude-code-command-loader/types";
|
|
2
|
+
export interface PluginCommandDiscoveryOptions {
|
|
3
|
+
pluginsEnabled?: boolean;
|
|
4
|
+
enabledPluginsOverride?: Record<string, boolean>;
|
|
5
|
+
}
|
|
6
|
+
export declare function discoverPluginCommandDefinitions(options?: PluginCommandDiscoveryOptions): Record<string, CommandDefinition>;
|
|
@@ -63,6 +63,7 @@ export interface DelegateTaskToolOptions {
|
|
|
63
63
|
availableSkills?: AvailableSkill[];
|
|
64
64
|
agentOverrides?: AgentOverrides;
|
|
65
65
|
onSyncSessionCreated?: (event: SyncSessionCreatedEvent) => Promise<void>;
|
|
66
|
+
syncPollTimeoutMs?: number;
|
|
66
67
|
}
|
|
67
68
|
export interface BuildSystemContentInput {
|
|
68
69
|
skillContent?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const HASHLINE_EDIT_DESCRIPTION = "Edit files using LINE#ID format for precise, safe modifications.\n\nWORKFLOW:\n1. Read target file/range and copy exact LINE#ID tags.\n2. Pick the smallest operation per logical mutation site.\n3. Submit one edit call per file with all related operations.\n4. If same file needs another call, re-read first.\n5. Use anchors as \"LINE#ID\" only (never include trailing \"|content\").\n\nVALIDATION:\n Payload shape: { \"filePath\": string, \"edits\": [...], \"delete\"?: boolean, \"rename\"?: string }\n Each edit must be one of: replace, append, prepend\n Edit shape: { \"op\": \"replace\"|\"append\"|\"prepend\", \"pos\"?: \"LINE#ID\", \"end\"?: \"LINE#ID\", \"lines\": string|string[]|null }\n lines must contain plain replacement text only (no LINE#ID prefixes, no diff + markers)\n CRITICAL: all operations validate against the same pre-edit file snapshot and apply bottom-up. Refs/tags are interpreted against the last-read version of the file.\n\nLINE#ID FORMAT (CRITICAL):\n Each line reference must be in \"{line_number}#{hash_id}\" format where:\n {line_number}: 1-based line number\n {hash_id}: Two CID letters from the set ZPMQVRWSNKTXJBYH\n\nFILE MODES:\n delete=true deletes file and requires edits=[] with no rename\n rename moves final content to a new path and removes old path\n\nCONTENT FORMAT:\n lines can be a string (single line) or string[] (multi-line, preferred).\n If you pass a multi-line string, it is split by real newline characters.\n Literal \"\\n\" is preserved as text.\n\nFILE CREATION:\n append without anchors adds content at EOF. If file does not exist, creates it.\n prepend without anchors adds content at BOF. If file does not exist, creates it.\n CRITICAL: only unanchored append/prepend can create a missing file.\n\nOPERATION CHOICE:\n replace with pos only -> replace one line at pos
|
|
1
|
+
export declare const HASHLINE_EDIT_DESCRIPTION = "Edit files using LINE#ID format for precise, safe modifications.\n\nWORKFLOW:\n1. Read target file/range and copy exact LINE#ID tags.\n2. Pick the smallest operation per logical mutation site.\n3. Submit one edit call per file with all related operations.\n4. If same file needs another call, re-read first.\n5. Use anchors as \"LINE#ID\" only (never include trailing \"|content\").\n\nVALIDATION:\n Payload shape: { \"filePath\": string, \"edits\": [...], \"delete\"?: boolean, \"rename\"?: string }\n Each edit must be one of: replace, append, prepend\n Edit shape: { \"op\": \"replace\"|\"append\"|\"prepend\", \"pos\"?: \"LINE#ID\", \"end\"?: \"LINE#ID\", \"lines\": string|string[]|null }\n lines must contain plain replacement text only (no LINE#ID prefixes, no diff + markers)\n CRITICAL: all operations validate against the same pre-edit file snapshot and apply bottom-up. Refs/tags are interpreted against the last-read version of the file.\n\nLINE#ID FORMAT (CRITICAL):\n Each line reference must be in \"{line_number}#{hash_id}\" format where:\n {line_number}: 1-based line number\n {hash_id}: Two CID letters from the set ZPMQVRWSNKTXJBYH\n\nFILE MODES:\n delete=true deletes file and requires edits=[] with no rename\n rename moves final content to a new path and removes old path\n\nCONTENT FORMAT:\n lines can be a string (single line) or string[] (multi-line, preferred).\n If you pass a multi-line string, it is split by real newline characters.\n Literal \"\\n\" is preserved as text.\n\nFILE CREATION:\n append without anchors adds content at EOF. If file does not exist, creates it.\n prepend without anchors adds content at BOF. If file does not exist, creates it.\n CRITICAL: only unanchored append/prepend can create a missing file.\n\nOPERATION CHOICE:\n replace with pos only -> replace one line at pos\n replace with pos+end -> replace ENTIRE range pos..end as a block (ranges MUST NOT overlap across edits)\n append with pos/end anchor -> insert after that anchor\n prepend with pos/end anchor -> insert before that anchor\n append/prepend without anchors -> EOF/BOF insertion\n\nRULES (CRITICAL):\n 1. Minimize scope: one logical mutation site per operation.\n 2. Preserve formatting: keep indentation, punctuation, line breaks, trailing commas, brace style.\n 3. Prefer insertion over neighbor rewrites: anchor to structural boundaries (}, ], },), not interior property lines.\n 4. No no-ops: replacement content must differ from current content.\n 5. Touch only requested code: avoid incidental edits.\n 6. Use exact current tokens: NEVER rewrite approximately.\n 7. For swaps/moves: prefer one range operation over multiple single-line operations.\n 8. Output tool calls only; no prose or commentary between them.\n\nTAG CHOICE (ALWAYS):\n - Copy tags exactly from read output or >>> mismatch output.\n - NEVER guess tags.\n - Anchor to structural lines (function/class/brace), NEVER blank lines.\n - Anti-pattern warning: blank/whitespace anchors are fragile.\n - Re-read after each successful edit call before issuing another on the same file.\n\nAUTOCORRECT (built-in - you do NOT need to handle these):\n Merged lines are auto-expanded back to original line count.\n Indentation is auto-restored from original lines.\n BOM and CRLF line endings are preserved automatically.\n Hashline prefixes and diff markers in text are auto-stripped.\n\nRECOVERY (when >>> mismatch error appears):\n Copy the updated LINE#ID tags shown in the error output directly.\n Re-read only if the needed tags are missing from the error snippet.\n ALWAYS batch all edits for one file in a single call.";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function needsConversion(mimeType: string): boolean;
|
|
2
|
+
export declare function convertImageToJpeg(inputPath: string, mimeType: string): string;
|
|
3
|
+
export declare function cleanupConvertedImage(filePath: string): void;
|
|
4
|
+
export declare function convertBase64ImageToJpeg(base64Data: string, mimeType: string): {
|
|
5
|
+
base64: string;
|
|
6
|
+
tempFiles: string[];
|
|
7
|
+
};
|
|
@@ -30,4 +30,8 @@ export interface SkillLoadOptions {
|
|
|
30
30
|
/** Git master configuration for watermark/co-author settings */
|
|
31
31
|
gitMasterConfig?: GitMasterConfig;
|
|
32
32
|
disabledSkills?: Set<string>;
|
|
33
|
+
/** Include Claude marketplace plugin commands in discovery (default: true) */
|
|
34
|
+
pluginsEnabled?: boolean;
|
|
35
|
+
/** Override plugin enablement from Claude settings by plugin key */
|
|
36
|
+
enabledPluginsOverride?: Record<string, boolean>;
|
|
33
37
|
}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export declare const SKILL_MCP_TOOL_NAME = "skill_mcp";
|
|
2
2
|
export declare const SKILL_MCP_DESCRIPTION = "Invoke MCP server operations from skill-embedded MCPs. Requires mcp_name plus exactly one of: tool_name, resource_name, or prompt_name.";
|
|
3
|
+
export declare const BUILTIN_MCP_TOOL_HINTS: Record<string, string[]>;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import type { CommandInfo } from "./types";
|
|
2
|
-
export
|
|
2
|
+
export interface CommandDiscoveryOptions {
|
|
3
|
+
pluginsEnabled?: boolean;
|
|
4
|
+
enabledPluginsOverride?: Record<string, boolean>;
|
|
5
|
+
}
|
|
6
|
+
export declare function discoverCommandsSync(directory?: string, options?: CommandDiscoveryOptions): CommandInfo[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { LazyContentLoader } from "../../features/opencode-skill-loader";
|
|
2
|
-
export type CommandScope = "builtin" | "config" | "user" | "project" | "opencode" | "opencode-project";
|
|
2
|
+
export type CommandScope = "builtin" | "config" | "user" | "project" | "opencode" | "opencode-project" | "plugin";
|
|
3
3
|
export interface CommandMetadata {
|
|
4
4
|
name: string;
|
|
5
5
|
description: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oh-my-opencode-unguarded",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.4",
|
|
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",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@ast-grep/cli": "^0.40.0",
|
|
55
55
|
"@ast-grep/napi": "^0.40.0",
|
|
56
56
|
"@clack/prompts": "^0.11.0",
|
|
57
|
-
"@code-yeongyu/comment-checker": "^0.
|
|
57
|
+
"@code-yeongyu/comment-checker": "^0.7.0",
|
|
58
58
|
"@modelcontextprotocol/sdk": "^1.25.2",
|
|
59
59
|
"@opencode-ai/plugin": "^1.1.19",
|
|
60
60
|
"@opencode-ai/sdk": "^1.1.19",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function fuzzyMatchModel(target: string, available: Set<string>, providers?: string[]): string | null;
|