oh-my-opencode 4.2.3 → 4.3.1
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 +1 -0
- package/README.ko.md +1 -0
- package/README.md +3 -2
- package/README.zh-cn.md +1 -0
- package/dist/agents/atlas/default-prompt-sections.d.ts +1 -1
- package/dist/agents/builtin-agents/available-skills.d.ts +1 -1
- package/dist/agents/builtin-agents/model-resolution.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/prometheus/spec-driven-mode.d.ts +7 -0
- package/dist/cli/doctor/checks/system-binary.d.ts +1 -1
- package/dist/cli/doctor/checks/tui-plugin-config.d.ts +14 -0
- package/dist/cli/doctor/constants.d.ts +1 -0
- package/dist/cli/index.js +3203 -2368
- package/dist/cli/provider-model-id-transform.d.ts +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/config/schema/agent-overrides.d.ts +147 -1
- package/dist/config/schema/background-task.d.ts +1 -0
- package/dist/config/schema/default-mode.d.ts +6 -0
- package/dist/config/schema/hooks.d.ts +2 -0
- package/dist/config/schema/i18n.d.ts +5 -0
- package/dist/config/schema/keyword-detector.d.ts +8 -0
- package/dist/config/schema/oh-my-opencode-config.d.ts +163 -1
- package/dist/config/schema.d.ts +2 -0
- package/dist/create-hooks.d.ts +2 -0
- package/dist/features/background-agent/fallback-retry-handler.d.ts +3 -0
- package/dist/features/background-agent/manager.d.ts +0 -1
- package/dist/features/background-agent/parent-wake-notifier.d.ts +5 -0
- package/dist/features/background-agent/session-activity.d.ts +12 -0
- package/dist/features/background-agent/session-existence.d.ts +2 -0
- package/dist/features/background-agent/session-stream-activity.d.ts +18 -0
- package/dist/features/background-agent/task-activity-refresh.d.ts +11 -0
- package/dist/features/background-agent/task-poller.d.ts +2 -0
- package/dist/features/boulder-state/constants.d.ts +1 -10
- package/dist/features/boulder-state/format-duration.d.ts +1 -1
- package/dist/features/boulder-state/storage.d.ts +1 -83
- package/dist/features/boulder-state/top-level-task.d.ts +1 -2
- package/dist/features/boulder-state/types.d.ts +1 -100
- package/dist/features/task-toast-manager/manager.d.ts +1 -1
- package/dist/features/team-mode/team-state-store/locks.d.ts +7 -4
- package/dist/features/tmux-subagent/manager.d.ts +2 -0
- package/dist/hooks/atlas/system-reminder-templates.d.ts +1 -1
- package/dist/hooks/claude-code-hooks/config-loader.d.ts +7 -0
- package/dist/hooks/claude-code-hooks/config.d.ts +4 -1
- package/dist/hooks/claude-code-hooks/types.d.ts +17 -1
- package/dist/hooks/comment-checker/cli.d.ts +2 -22
- package/dist/hooks/comment-checker/types.d.ts +1 -31
- package/dist/hooks/directory-agents-injector/finder.d.ts +2 -7
- package/dist/hooks/directory-agents-injector/injector.d.ts +1 -18
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/keyword-detector/analyze/default.d.ts +1 -1
- package/dist/hooks/keyword-detector/constants.d.ts +10 -5
- package/dist/hooks/keyword-detector/detector.d.ts +2 -2
- package/dist/hooks/keyword-detector/hook.d.ts +2 -1
- package/dist/hooks/keyword-detector/hyperplan/default.d.ts +5 -0
- package/dist/hooks/notepad-write-guard/index.d.ts +2 -0
- package/dist/hooks/plan-format-validator/hook.d.ts +21 -0
- package/dist/hooks/plan-format-validator/index.d.ts +1 -0
- package/dist/hooks/prometheus-md-only/constants.d.ts +8 -0
- package/dist/hooks/rules-injector/constants.d.ts +1 -7
- package/dist/hooks/rules-injector/matcher.d.ts +2 -2
- package/dist/hooks/rules-injector/parser.d.ts +2 -2
- package/dist/hooks/rules-injector/project-root-finder.d.ts +1 -1
- package/dist/hooks/rules-injector/rule-distance.d.ts +1 -1
- package/dist/hooks/rules-injector/rule-file-finder.d.ts +2 -2
- package/dist/hooks/rules-injector/rule-file-scanner.d.ts +1 -1
- package/dist/hooks/rules-injector/rule-scan-cache.d.ts +2 -2
- package/dist/hooks/rules-injector/types.d.ts +1 -1
- package/dist/hooks/session-todo-status.d.ts +1 -0
- package/dist/hooks/sisyphus-junior-notepad/constants.d.ts +1 -1
- package/dist/hooks/start-work/context-info-builder.d.ts +1 -0
- package/dist/hooks/start-work/session-plan-affinity.d.ts +7 -0
- package/dist/hooks/todo-continuation-enforcer/types.d.ts +1 -0
- package/dist/index.js +18290 -16069
- package/dist/locales/en.d.ts +18 -0
- package/dist/locales/index.d.ts +6 -0
- package/dist/locales/zh.d.ts +17 -0
- package/dist/mcp/ast-grep.d.ts +2 -0
- package/dist/mcp/cli-suffix.d.ts +1 -0
- package/dist/mcp/index.d.ts +2 -0
- package/dist/mcp/lsp.d.ts +2 -0
- package/dist/mcp/runtime-executable.d.ts +11 -0
- package/dist/oh-my-opencode.schema.json +449 -1
- package/dist/plugin/hooks/create-core-hooks.d.ts +2 -0
- package/dist/plugin/hooks/create-tool-guard-hooks.d.ts +3 -1
- package/dist/plugin/system-transform.d.ts +2 -1
- package/dist/plugin/tool-definition.d.ts +9 -0
- package/dist/plugin-handlers/agent-key-remapper.d.ts +5 -1
- package/dist/plugin-handlers/hook-config-handler.d.ts +7 -0
- package/dist/plugin-handlers/index.d.ts +1 -0
- package/dist/plugin-handlers/plugin-components-loader.d.ts +2 -3
- package/dist/shared/agent-display-names.d.ts +10 -2
- package/dist/shared/bun-spawn-shim.d.ts +3 -0
- package/dist/shared/command-executor/execute-hook-command.d.ts +2 -0
- package/dist/shared/contains-path.d.ts +1 -2
- package/dist/shared/context-limit-resolver.d.ts +2 -5
- package/dist/shared/deep-merge.d.ts +1 -13
- package/dist/shared/disabled-providers.d.ts +14 -0
- package/dist/shared/extract-semver.d.ts +1 -1
- package/dist/shared/fallback-chain-from-models.d.ts +1 -12
- package/dist/shared/file-utils.d.ts +1 -7
- package/dist/shared/frontmatter.d.ts +1 -7
- package/dist/shared/i18n.d.ts +9 -0
- package/dist/shared/index.d.ts +0 -1
- package/dist/shared/jsonc-parser.d.ts +1 -23
- package/dist/shared/model-availability.d.ts +18 -5
- package/dist/shared/model-capabilities/index.d.ts +6 -3
- package/dist/shared/model-capabilities-cache.d.ts +4 -8
- package/dist/shared/model-error-classifier.d.ts +4 -33
- package/dist/shared/model-format-normalizer.d.ts +1 -7
- package/dist/shared/model-normalization.d.ts +1 -2
- package/dist/shared/model-requirements.d.ts +2 -22
- package/dist/shared/model-resolution-pipeline.d.ts +5 -30
- package/dist/shared/model-resolution-types.d.ts +1 -36
- package/dist/shared/model-resolver.d.ts +8 -35
- package/dist/shared/model-sanitizer.d.ts +1 -3
- package/dist/shared/model-settings-compatibility.d.ts +2 -40
- package/dist/shared/model-string-parser.d.ts +1 -9
- package/dist/shared/model-suggestion-retry.d.ts +3 -7
- package/dist/shared/opencode-config-dir.d.ts +1 -0
- package/dist/shared/port-utils.d.ts +1 -9
- package/dist/shared/process-stream-reader.d.ts +3 -0
- package/dist/shared/prompt-async-gate/pending-tool-turn.d.ts +9 -0
- package/dist/shared/prompt-async-gate/queue.d.ts +8 -0
- package/dist/shared/prompt-async-gate/reservations.d.ts +9 -0
- package/dist/shared/prompt-async-gate/session-idle-dispatch.d.ts +15 -0
- package/dist/shared/prompt-async-gate/timing.d.ts +8 -0
- package/dist/shared/prompt-async-gate/types.d.ts +120 -0
- package/dist/shared/prompt-async-gate.d.ts +3 -90
- package/dist/shared/provider-model-id-transform.d.ts +1 -1
- package/dist/shared/record-type-guard.d.ts +1 -1
- package/dist/shared/replace-tool-args.d.ts +1 -13
- package/dist/shared/session-idle-settle.d.ts +2 -1
- package/dist/shared/shell-env.d.ts +7 -5
- package/dist/shared/snake-case.d.ts +1 -5
- package/dist/shared/tool-name.d.ts +1 -1
- package/dist/testing/create-plugin-module.d.ts +2 -0
- package/dist/tools/delegate-task/constants.d.ts +19 -0
- package/dist/tools/delegate-task/skill-resolver.d.ts +9 -2
- package/dist/tools/delegate-task/types.d.ts +32 -0
- package/dist/tools/glob/cli.d.ts +3 -1
- package/dist/tools/glob/constants.d.ts +1 -1
- package/dist/tools/grep/cli.d.ts +4 -2
- package/dist/tools/grep/constants.d.ts +1 -1
- package/dist/tools/hashline-edit/autocorrect-replacement-lines.d.ts +1 -6
- package/dist/tools/hashline-edit/constants.d.ts +1 -4
- package/dist/tools/hashline-edit/diff-utils.d.ts +1 -6
- package/dist/tools/hashline-edit/edit-deduplication.d.ts +1 -5
- package/dist/tools/hashline-edit/edit-operation-primitives.d.ts +1 -10
- package/dist/tools/hashline-edit/edit-operations.d.ts +2 -8
- package/dist/tools/hashline-edit/edit-ordering.d.ts +1 -4
- package/dist/tools/hashline-edit/edit-text-normalization.d.ts +1 -7
- package/dist/tools/hashline-edit/file-text-canonicalization.d.ts +2 -7
- package/dist/tools/hashline-edit/hash-computation.d.ts +2 -11
- package/dist/tools/hashline-edit/hashline-chunk-formatter.d.ts +2 -10
- package/dist/tools/hashline-edit/hashline-edit-diff.d.ts +1 -1
- package/dist/tools/hashline-edit/normalize-edits.d.ts +2 -10
- package/dist/tools/hashline-edit/types.d.ts +1 -17
- package/dist/tools/hashline-edit/validation.d.ts +2 -20
- package/dist/tools/look-at/assistant-message-extractor.d.ts +7 -0
- package/dist/tools/look-at/session-poller.d.ts +9 -1
- package/dist/tools/shared/search-process-output.d.ts +7 -0
- package/dist/tools/skill/tools.d.ts +1 -1
- package/dist/tools/skill/types.d.ts +2 -0
- package/package.json +31 -16
- package/packages/ast-grep-mcp/dist/cli.js +272 -248
- package/dist/hooks/comment-checker/apply-patch-edits.d.ts +0 -2
- package/dist/shared/known-variants.d.ts +0 -6
- package/dist/shared/model-capabilities/bundled-snapshot.d.ts +0 -2
- package/dist/shared/model-capabilities/get-model-capabilities.d.ts +0 -2
- package/dist/shared/model-capabilities/runtime-model-readers.d.ts +0 -11
- package/dist/shared/model-capabilities/supplemental-entries.d.ts +0 -2
- package/dist/shared/model-capabilities/types.d.ts +0 -94
- package/dist/shared/model-capability-aliases.d.ts +0 -21
- package/dist/shared/model-capability-guardrails.d.ts +0 -38
- package/dist/shared/model-capability-heuristics.d.ts +0 -11
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
+
/**
|
|
3
|
+
* Programmatic plan format validator.
|
|
4
|
+
*
|
|
5
|
+
* After any agent writes to a `.omo/plans/*.md` file, compares the
|
|
6
|
+
* raw top-level checkbox count against `getPlanProgress()` to detect
|
|
7
|
+
* malformed task labels. Warns the agent when some or all tasks
|
|
8
|
+
* will be skipped by the progress counter.
|
|
9
|
+
*/
|
|
10
|
+
export declare function createPlanFormatValidatorHook(_ctx: PluginInput): {
|
|
11
|
+
"tool.execute.after": (input: {
|
|
12
|
+
tool: string;
|
|
13
|
+
sessionID: string;
|
|
14
|
+
callID: string;
|
|
15
|
+
args?: Record<string, unknown>;
|
|
16
|
+
}, output: {
|
|
17
|
+
title: string;
|
|
18
|
+
output: string;
|
|
19
|
+
metadata: unknown;
|
|
20
|
+
}) => Promise<void>;
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createPlanFormatValidatorHook } from "./hook";
|
|
@@ -3,5 +3,13 @@ export declare const PROMETHEUS_AGENT = "prometheus";
|
|
|
3
3
|
export declare const ALLOWED_EXTENSIONS: string[];
|
|
4
4
|
export declare const ALLOWED_PATH_PREFIX = ".omo";
|
|
5
5
|
export declare const BLOCKED_TOOLS: string[];
|
|
6
|
+
/**
|
|
7
|
+
* XML-tag wrapper used to mark the planning-context boundary in prompts
|
|
8
|
+
* forwarded to external LLMs via task(). This format intentionally avoids
|
|
9
|
+
* the `[SYSTEM DIRECTIVE: ...]` bracket syntax that Azure OpenAI Prompt Shield
|
|
10
|
+
* flags as indirect prompt injection in user-role content (#4036).
|
|
11
|
+
*/
|
|
12
|
+
export declare const PLANNING_CONTEXT_OPEN = "<planning-context source=\"prometheus-read-only\">";
|
|
13
|
+
export declare const PLANNING_CONTEXT_CLOSE = "</planning-context>";
|
|
6
14
|
export declare const PLANNING_CONSULT_WARNING: string;
|
|
7
15
|
export declare const PROMETHEUS_WORKFLOW_REMINDER: string;
|
|
@@ -1,8 +1,2 @@
|
|
|
1
1
|
export declare const RULES_INJECTOR_STORAGE: string;
|
|
2
|
-
export
|
|
3
|
-
export declare const PROJECT_RULE_SUBDIRS: [string, string][];
|
|
4
|
-
export declare const PROJECT_RULE_FILES: string[];
|
|
5
|
-
export declare const GITHUB_INSTRUCTIONS_PATTERN: RegExp;
|
|
6
|
-
export declare const USER_RULE_DIR = ".claude/rules";
|
|
7
|
-
export declare const OPENCODE_USER_RULE_DIRS: string[];
|
|
8
|
-
export declare const RULE_EXTENSIONS: string[];
|
|
2
|
+
export { GITHUB_INSTRUCTIONS_PATTERN, OPENCODE_USER_RULE_DIRS, PROJECT_MARKERS, PROJECT_RULE_FILES, PROJECT_RULE_SUBDIRS, RULE_EXTENSIONS, USER_RULE_DIR, } from "@oh-my-opencode/rules-engine";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { createContentHash, getMatcherCacheStats, isDuplicateByContentHash, isDuplicateByRealPath, resetMatcherCache, shouldApplyRule, } from "@oh-my-opencode/rules-
|
|
2
|
-
export type { MatchResult } from "@oh-my-opencode/rules-
|
|
1
|
+
export { createContentHash, getMatcherCacheStats, isDuplicateByContentHash, isDuplicateByRealPath, resetMatcherCache, shouldApplyRule, } from "@oh-my-opencode/rules-engine";
|
|
2
|
+
export type { MatchResult } from "@oh-my-opencode/rules-engine";
|
|
3
3
|
export interface MatcherCacheStats {
|
|
4
4
|
readonly entries: number;
|
|
5
5
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { parseRuleFrontmatter } from "@oh-my-opencode/rules-
|
|
2
|
-
export type { RuleFrontmatterResult } from "@oh-my-opencode/rules-
|
|
1
|
+
export { parseRuleFrontmatter } from "@oh-my-opencode/rules-engine";
|
|
2
|
+
export type { RuleFrontmatterResult } from "@oh-my-opencode/rules-engine";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { clearProjectRootCache, findProjectRoot } from "@oh-my-opencode/rules-
|
|
1
|
+
export { clearProjectRootCache, findProjectRoot } from "@oh-my-opencode/rules-engine";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { calculateDistance } from "@oh-my-opencode/rules-
|
|
1
|
+
export { calculateDistance } from "@oh-my-opencode/rules-engine";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { findRuleFiles } from "@oh-my-opencode/rules-
|
|
2
|
-
export type { FindRuleFilesOptions } from "@oh-my-opencode/rules-
|
|
1
|
+
export { findRuleFiles } from "@oh-my-opencode/rules-engine";
|
|
2
|
+
export type { FindRuleFilesOptions } from "@oh-my-opencode/rules-engine";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { createRuleScanCache } from "@oh-my-opencode/rules-
|
|
2
|
-
export type { DirectoryScanEntry, RuleScanCache } from "@oh-my-opencode/rules-
|
|
1
|
+
export { createRuleScanCache } from "@oh-my-opencode/rules-engine";
|
|
2
|
+
export type { DirectoryScanEntry, RuleScanCache } from "@oh-my-opencode/rules-engine";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const HOOK_NAME = "sisyphus-junior-notepad";
|
|
2
|
-
export declare const NOTEPAD_DIRECTIVE = "\n<Work_Context>\n## Notepad Location (for recording learnings)\nNOTEPAD PATH: .omo/notepads/{plan-name}/\n- learnings.md: Record patterns, conventions, successful approaches\n- issues.md: Record problems, blockers, gotchas encountered\n- decisions.md: Record architectural choices and rationales\n- problems.md: Record unresolved issues, technical debt\n\nYou SHOULD append findings to notepad files after completing work.\nIMPORTANT: Always APPEND to notepad files - never overwrite or use Edit tool.\n\n## Plan Location (READ ONLY)\nPLAN PATH: .omo/plans/{plan-name}.md\n\
|
|
2
|
+
export declare const NOTEPAD_DIRECTIVE = "\n<Work_Context>\n## Notepad Location (for recording learnings)\nNOTEPAD PATH: .omo/notepads/{plan-name}/\n- learnings.md: Record patterns, conventions, successful approaches\n- issues.md: Record problems, blockers, gotchas encountered\n- decisions.md: Record architectural choices and rationales\n- problems.md: Record unresolved issues, technical debt\n\nYou SHOULD append findings to notepad files after completing work.\nIMPORTANT: Always APPEND to notepad files - never overwrite or use Edit tool.\n\n## Plan Location (subagent: READ ONLY)\nPLAN PATH: .omo/plans/{plan-name}.md\n\nSUBAGENT PLAN RESTRICTION (applies to YOU, the delegated worker \u2014 NOT to the Orchestrator):\n- You may READ the plan to understand your assigned tasks\n- You may READ checkbox items to know what to work on\n- You MUST NOT edit the plan file or mark checkboxes \u2014 that is the Orchestrator's job\n- The Orchestrator (Atlas) updates checkboxes after verifying your completed work\n</Work_Context>\n";
|