oh-my-opencode 4.2.2 → 4.3.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.ja.md +8 -0
- package/README.ko.md +8 -0
- package/README.md +16 -2
- package/README.ru.md +7 -0
- package/README.zh-cn.md +8 -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/tools-lsp.d.ts +6 -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 +5295 -3353
- 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 -1
- 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/hook.d.ts +1 -0
- package/dist/hooks/comment-checker/initialization-gate.d.ts +1 -0
- package/dist/hooks/comment-checker/types.d.ts +1 -31
- package/dist/hooks/directory-agents-injector/finder.d.ts +2 -5
- package/dist/hooks/directory-agents-injector/injector.d.ts +1 -16
- 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/injector.d.ts +7 -3
- package/dist/hooks/rules-injector/matcher.d.ts +3 -24
- package/dist/hooks/rules-injector/parser.d.ts +2 -18
- package/dist/hooks/rules-injector/project-root-finder.d.ts +1 -13
- package/dist/hooks/rules-injector/rule-distance.d.ts +1 -10
- package/dist/hooks/rules-injector/rule-file-finder.d.ts +2 -6
- package/dist/hooks/rules-injector/rule-file-scanner.d.ts +2 -13
- package/dist/hooks/rules-injector/rule-scan-cache.d.ts +2 -13
- package/dist/hooks/rules-injector/transcript-hydration.d.ts +18 -0
- package/dist/hooks/rules-injector/types.d.ts +2 -38
- package/dist/hooks/runtime-fallback/types.d.ts +1 -0
- 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/team-session-events/team-member-error-handler.d.ts +14 -1
- package/dist/hooks/todo-continuation-enforcer/types.d.ts +1 -0
- package/dist/hooks/unstable-agent-babysitter/unstable-agent-babysitter-hook.d.ts +0 -21
- package/dist/index.js +20128 -17181
- 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 +11 -0
- package/dist/mcp/cli-suffix.d.ts +1 -0
- package/dist/mcp/index.d.ts +6 -1
- package/dist/mcp/lsp.d.ts +2 -0
- package/dist/mcp/runtime-executable.d.ts +11 -0
- package/dist/mcp/types.d.ts +1 -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/tool-execute-after.d.ts +15 -9
- package/dist/plugin/tool-registry.d.ts +1 -2
- 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/mcp-config-handler.d.ts +3 -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/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 +1 -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/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 +4 -79
- package/dist/shared/prompt-failure-classifier.d.ts +9 -0
- package/dist/shared/prompt-timeout-context.d.ts +1 -0
- 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/sync-prompt-sender.d.ts +1 -2
- package/dist/tools/delegate-task/types.d.ts +32 -0
- package/dist/tools/glob/constants.d.ts +1 -1
- 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/index.d.ts +0 -1
- 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/skill/tools.d.ts +1 -1
- package/dist/tools/skill/types.d.ts +2 -0
- package/package.json +53 -28
- package/packages/ast-grep-mcp/dist/cli.js +885 -0
- package/packages/lsp-tools-mcp/dist/cli.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/cli.js +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/cleanup-errors.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/cleanup-errors.js +1 -2
- package/packages/lsp-tools-mcp/dist/lsp/client-wrapper.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/client-wrapper.js +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/client.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/client.js +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/config-loader.d.ts +1 -10
- package/packages/lsp-tools-mcp/dist/lsp/config-loader.js +55 -10
- package/packages/lsp-tools-mcp/dist/lsp/connection.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/connection.js +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/constants.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/constants.js +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/directory-diagnostics.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/directory-diagnostics.js +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/errors.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/errors.js +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/formatters.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/formatters.js +7 -10
- package/packages/lsp-tools-mcp/dist/lsp/infer-extension.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/infer-extension.js +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/json-rpc-connection.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/json-rpc-connection.js +10 -11
- package/packages/lsp-tools-mcp/dist/lsp/language-mappings.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/language-mappings.js +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/manager.d.ts +1 -3
- package/packages/lsp-tools-mcp/dist/lsp/manager.js +6 -23
- package/packages/lsp-tools-mcp/dist/lsp/process-signal-cleanup.d.ts +1 -0
- package/packages/lsp-tools-mcp/dist/lsp/process-signal-cleanup.js +17 -0
- package/packages/lsp-tools-mcp/dist/lsp/process.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/process.js +41 -12
- package/packages/lsp-tools-mcp/dist/lsp/server-definitions.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/server-definitions.js +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/server-installation.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/server-installation.js +3 -4
- package/packages/lsp-tools-mcp/dist/lsp/server-resolution.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/server-resolution.js +18 -7
- package/packages/lsp-tools-mcp/dist/lsp/transport.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/transport.js +20 -11
- package/packages/lsp-tools-mcp/dist/lsp/types.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/types.js +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/utils.d.ts +0 -2
- package/packages/lsp-tools-mcp/dist/lsp/utils.js +0 -8
- package/packages/lsp-tools-mcp/dist/lsp/workspace-edit.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/workspace-edit.js +0 -1
- package/packages/lsp-tools-mcp/dist/mcp.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/mcp.js +14 -14
- package/packages/lsp-tools-mcp/dist/tools.d.ts +0 -1
- package/packages/lsp-tools-mcp/dist/tools.js +21 -14
- 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
- package/dist/tools/ast-grep/cli-binary-path-resolution.d.ts +0 -5
- package/dist/tools/ast-grep/cli.d.ts +0 -12
- package/dist/tools/ast-grep/constants.d.ts +0 -5
- package/dist/tools/ast-grep/downloader.d.ts +0 -5
- package/dist/tools/ast-grep/environment-check.d.ts +0 -20
- package/dist/tools/ast-grep/index.d.ts +0 -5
- package/dist/tools/ast-grep/language-support.d.ts +0 -6
- package/dist/tools/ast-grep/pattern-hints.d.ts +0 -4
- package/dist/tools/ast-grep/process-output-timeout.d.ts +0 -12
- package/dist/tools/ast-grep/result-formatter.d.ts +0 -5
- package/dist/tools/ast-grep/sg-cli-path.d.ts +0 -3
- package/dist/tools/ast-grep/sg-compact-json-output.d.ts +0 -2
- package/dist/tools/ast-grep/tool-descriptions.d.ts +0 -3
- package/dist/tools/ast-grep/tools.d.ts +0 -3
- package/dist/tools/ast-grep/types.d.ts +0 -58
- package/packages/lsp-tools-mcp/dist/cli.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/cli.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/cleanup-errors.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/cleanup-errors.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/client-wrapper.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/client-wrapper.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/client.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/client.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/config-loader.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/config-loader.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/connection.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/connection.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/constants.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/constants.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/directory-diagnostics.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/directory-diagnostics.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/errors.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/errors.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/formatters.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/formatters.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/infer-extension.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/infer-extension.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/json-rpc-connection.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/json-rpc-connection.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/language-mappings.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/language-mappings.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/manager.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/manager.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/process.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/process.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/server-definitions.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/server-definitions.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/server-installation.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/server-installation.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/server-resolution.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/server-resolution.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/transport.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/transport.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/types.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/types.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/utils.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/utils.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/workspace-edit.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/lsp/workspace-edit.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/mcp.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/mcp.js.map +0 -1
- package/packages/lsp-tools-mcp/dist/tools.d.ts.map +0 -1
- package/packages/lsp-tools-mcp/dist/tools.js.map +0 -1
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
content: string;
|
|
4
|
-
noopEdits: number;
|
|
5
|
-
deduplicatedEdits: number;
|
|
6
|
-
}
|
|
7
|
-
export declare function applyHashlineEditsWithReport(content: string, edits: HashlineEdit[]): HashlineApplyReport;
|
|
8
|
-
export declare function applyHashlineEdits(content: string, edits: HashlineEdit[]): string;
|
|
1
|
+
export { applyHashlineEdits, applyHashlineEditsWithReport, } from "@oh-my-opencode/hashline-core";
|
|
2
|
+
export type { HashlineApplyReport } from "@oh-my-opencode/hashline-core";
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function getEditLineNumber(edit: HashlineEdit): number;
|
|
3
|
-
export declare function collectLineRefs(edits: HashlineEdit[]): string[];
|
|
4
|
-
export declare function detectOverlappingRanges(edits: HashlineEdit[]): string | null;
|
|
1
|
+
export { getEditLineNumber, collectLineRefs, detectOverlappingRanges } from "@oh-my-opencode/hashline-core";
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare function toNewLines(input: string | string[]): string[];
|
|
3
|
-
export declare function restoreLeadingIndent(templateLine: string, line: string): string;
|
|
4
|
-
export declare function stripInsertAnchorEcho(anchorLine: string, newLines: string[]): string[];
|
|
5
|
-
export declare function stripInsertBeforeEcho(anchorLine: string, newLines: string[]): string[];
|
|
6
|
-
export declare function stripInsertBoundaryEcho(afterLine: string, beforeLine: string, newLines: string[]): string[];
|
|
7
|
-
export declare function stripRangeBoundaryEcho(lines: string[], startLine: number, endLine: number, newLines: string[]): string[];
|
|
1
|
+
export { stripLinePrefixes, toNewLines, restoreLeadingIndent, stripInsertAnchorEcho, stripInsertBeforeEcho, stripInsertBoundaryEcho, stripRangeBoundaryEcho, } from "@oh-my-opencode/hashline-core";
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
hadBom: boolean;
|
|
4
|
-
lineEnding: "\n" | "\r\n";
|
|
5
|
-
}
|
|
6
|
-
export declare function canonicalizeFileText(content: string): FileTextEnvelope;
|
|
7
|
-
export declare function restoreFileText(content: string, envelope: FileTextEnvelope): string;
|
|
1
|
+
export { canonicalizeFileText, restoreFileText } from "@oh-my-opencode/hashline-core";
|
|
2
|
+
export type { FileTextEnvelope } from "@oh-my-opencode/hashline-core";
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export declare function formatHashLine(lineNumber: number, content: string): string;
|
|
4
|
-
export declare function formatHashLines(content: string): string;
|
|
5
|
-
export interface HashlineStreamOptions {
|
|
6
|
-
startLine?: number;
|
|
7
|
-
maxChunkLines?: number;
|
|
8
|
-
maxChunkBytes?: number;
|
|
9
|
-
}
|
|
10
|
-
export declare function streamHashLinesFromUtf8(source: ReadableStream<Uint8Array> | AsyncIterable<Uint8Array>, options?: HashlineStreamOptions): AsyncGenerator<string>;
|
|
11
|
-
export declare function streamHashLinesFromLines(lines: Iterable<string> | AsyncIterable<string>, options?: HashlineStreamOptions): AsyncGenerator<string>;
|
|
1
|
+
export { computeLineHash, computeLegacyLineHash, formatHashLine, formatHashLines, streamHashLinesFromUtf8, streamHashLinesFromLines, } from "@oh-my-opencode/hashline-core";
|
|
2
|
+
export type { HashlineStreamOptions } from "@oh-my-opencode/hashline-core";
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
flush(): string | undefined;
|
|
4
|
-
}
|
|
5
|
-
interface HashlineChunkFormatterOptions {
|
|
6
|
-
maxChunkLines: number;
|
|
7
|
-
maxChunkBytes: number;
|
|
8
|
-
}
|
|
9
|
-
export declare function createHashlineChunkFormatter(options: HashlineChunkFormatterOptions): HashlineChunkFormatter;
|
|
10
|
-
export {};
|
|
1
|
+
export { createHashlineChunkFormatter } from "@oh-my-opencode/hashline-core";
|
|
2
|
+
export type { HashlineChunkFormatter } from "@oh-my-opencode/hashline-core";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { generateHashlineDiff } from "@oh-my-opencode/hashline-core";
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
type
|
|
3
|
-
export interface RawHashlineEdit {
|
|
4
|
-
op?: HashlineToolOp;
|
|
5
|
-
pos?: string;
|
|
6
|
-
end?: string;
|
|
7
|
-
lines?: string | string[] | null;
|
|
8
|
-
}
|
|
9
|
-
export declare function normalizeHashlineEdits(rawEdits: RawHashlineEdit[]): HashlineEdit[];
|
|
10
|
-
export {};
|
|
1
|
+
export { normalizeHashlineEdits } from "@oh-my-opencode/hashline-core";
|
|
2
|
+
export type { RawHashlineEdit } from "@oh-my-opencode/hashline-core";
|
|
@@ -1,17 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
op: "replace";
|
|
3
|
-
pos: string;
|
|
4
|
-
end?: string;
|
|
5
|
-
lines: string | string[];
|
|
6
|
-
}
|
|
7
|
-
export interface AppendEdit {
|
|
8
|
-
op: "append";
|
|
9
|
-
pos?: string;
|
|
10
|
-
lines: string | string[];
|
|
11
|
-
}
|
|
12
|
-
export interface PrependEdit {
|
|
13
|
-
op: "prepend";
|
|
14
|
-
pos?: string;
|
|
15
|
-
lines: string | string[];
|
|
16
|
-
}
|
|
17
|
-
export type HashlineEdit = ReplaceEdit | AppendEdit | PrependEdit;
|
|
1
|
+
export type { ReplaceEdit, AppendEdit, PrependEdit, HashlineEdit } from "@oh-my-opencode/hashline-core";
|
|
@@ -1,20 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
hash: string;
|
|
4
|
-
}
|
|
5
|
-
interface HashMismatch {
|
|
6
|
-
line: number;
|
|
7
|
-
expected: string;
|
|
8
|
-
}
|
|
9
|
-
export declare function normalizeLineRef(ref: string): string;
|
|
10
|
-
export declare function parseLineRef(ref: string): LineRef;
|
|
11
|
-
export declare function validateLineRef(lines: string[], ref: string): void;
|
|
12
|
-
export declare class HashlineMismatchError extends Error {
|
|
13
|
-
private readonly mismatches;
|
|
14
|
-
private readonly fileLines;
|
|
15
|
-
readonly remaps: ReadonlyMap<string, string>;
|
|
16
|
-
constructor(mismatches: HashMismatch[], fileLines: string[]);
|
|
17
|
-
static formatMessage(mismatches: HashMismatch[], fileLines: string[]): string;
|
|
18
|
-
}
|
|
19
|
-
export declare function validateLineRefs(lines: string[], refs: string[]): void;
|
|
20
|
-
export {};
|
|
1
|
+
export { parseLineRef, validateLineRef, validateLineRefs, HashlineMismatchError, normalizeLineRef, } from "@oh-my-opencode/hashline-core";
|
|
2
|
+
export type { LineRef } from "@oh-my-opencode/hashline-core";
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -1 +1,8 @@
|
|
|
1
1
|
export declare function extractLatestAssistantText(messages: unknown): string | null;
|
|
2
|
+
export interface AssistantOutcome {
|
|
3
|
+
text: string | null;
|
|
4
|
+
errorName: string | null;
|
|
5
|
+
hasAssistant: boolean;
|
|
6
|
+
completed: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function extractLatestAssistantOutcome(messages: unknown): AssistantOutcome;
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import type { createOpencodeClient } from "@opencode-ai/sdk";
|
|
2
|
+
import { type AssistantOutcome } from "./assistant-message-extractor";
|
|
2
3
|
type Client = ReturnType<typeof createOpencodeClient>;
|
|
3
4
|
export interface PollOptions {
|
|
4
5
|
pollIntervalMs?: number;
|
|
5
6
|
timeoutMs?: number;
|
|
7
|
+
abortSignal?: AbortSignal;
|
|
8
|
+
allowStableIdleWithoutActivity?: boolean;
|
|
9
|
+
allowEmptyStableIdleWithoutActivity?: boolean;
|
|
6
10
|
}
|
|
7
|
-
export declare function
|
|
11
|
+
export declare function waitForLookAtSessionResult(client: Client, sessionID: string, options?: PollOptions): Promise<{
|
|
12
|
+
messages: unknown[];
|
|
13
|
+
outcome: AssistantOutcome;
|
|
14
|
+
statusType: string | null;
|
|
15
|
+
}>;
|
|
8
16
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type ToolDefinition } from "@opencode-ai/plugin";
|
|
2
2
|
import type { SkillLoadOptions } from "./types";
|
|
3
|
-
export declare function createSkillTool(options
|
|
3
|
+
export declare function createSkillTool(options: SkillLoadOptions): ToolDefinition;
|
|
4
4
|
export declare const skill: ToolDefinition;
|
|
@@ -30,6 +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
|
+
/** Project directory for skill discovery and base directory resolution. Must be ctx.directory from PluginContext — process.cwd() is unsafe in OpenCode. */
|
|
34
|
+
directory: string;
|
|
33
35
|
/** Browser automation provider for provider-gated skill filtering */
|
|
34
36
|
browserProvider?: BrowserAutomationProvider;
|
|
35
37
|
/** Whether team mode built-in docs should be exposed */
|
package/package.json
CHANGED
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oh-my-opencode",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
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",
|
|
7
7
|
"type": "module",
|
|
8
|
+
"workspaces": [
|
|
9
|
+
"packages/rules-engine",
|
|
10
|
+
"packages/ast-grep-core",
|
|
11
|
+
"packages/ast-grep-mcp",
|
|
12
|
+
"packages/utils",
|
|
13
|
+
"packages/model-core",
|
|
14
|
+
"packages/comment-checker-core",
|
|
15
|
+
"packages/hashline-core",
|
|
16
|
+
"packages/boulder-state",
|
|
17
|
+
"packages/agents-md-core"
|
|
18
|
+
],
|
|
8
19
|
"bin": {
|
|
9
20
|
"oh-my-opencode": "bin/oh-my-opencode.js",
|
|
10
21
|
"oh-my-openagent": "bin/oh-my-opencode.js"
|
|
@@ -13,17 +24,19 @@
|
|
|
13
24
|
"dist",
|
|
14
25
|
"bin",
|
|
15
26
|
"postinstall.mjs",
|
|
16
|
-
"packages/lsp-tools-mcp/dist"
|
|
27
|
+
"packages/lsp-tools-mcp/dist",
|
|
28
|
+
"packages/ast-grep-mcp/dist"
|
|
17
29
|
],
|
|
18
30
|
"exports": {
|
|
19
31
|
".": {
|
|
20
32
|
"types": "./dist/index.d.ts",
|
|
21
33
|
"import": "./dist/index.js"
|
|
22
34
|
},
|
|
35
|
+
"./server": "./dist/index.js",
|
|
23
36
|
"./schema.json": "./dist/oh-my-opencode.schema.json"
|
|
24
37
|
},
|
|
25
38
|
"scripts": {
|
|
26
|
-
"build": "bun build src/index.ts --outdir dist --target bun --format esm --external @ast-grep/napi --external zod && bun run build:node-require-shim && tsc --emitDeclarationOnly && bun build src/cli/index.ts --outdir dist/cli --target bun --format esm --external @ast-grep/napi && bun run build:schema",
|
|
39
|
+
"build": "bun run build:ast-grep-mcp && bun build src/index.ts --outdir dist --target bun --format esm --external @ast-grep/napi --external zod && bun run build:node-require-shim && tsc --emitDeclarationOnly && bun build src/cli/index.ts --outdir dist/cli --target bun --format esm --external @ast-grep/napi && bun run build:schema",
|
|
27
40
|
"build:lsp-tools-mcp": "npm --prefix packages/lsp-tools-mcp ci && npm --prefix packages/lsp-tools-mcp run build",
|
|
28
41
|
"build:node-require-shim": "bun run script/patch-node-require-shim.ts",
|
|
29
42
|
"build:all": "bun run build && bun run build:binaries",
|
|
@@ -35,9 +48,11 @@
|
|
|
35
48
|
"postinstall": "node postinstall.mjs",
|
|
36
49
|
"prepublishOnly": "bun run clean && bun run build:lsp-tools-mcp && bun run build",
|
|
37
50
|
"test:model-capabilities": "bun test src/shared/model-capability-aliases.test.ts src/shared/model-capability-guardrails.test.ts src/shared/model-capabilities.test.ts src/cli/doctor/checks/model-resolution.test.ts --bail",
|
|
38
|
-
"typecheck": "tsgo --noEmit",
|
|
51
|
+
"typecheck": "tsgo --noEmit && bun run typecheck:packages",
|
|
52
|
+
"typecheck:packages": "tsgo --noEmit -p packages/rules-engine/tsconfig.json && tsgo --noEmit -p packages/ast-grep-core/tsconfig.json && tsgo --noEmit -p packages/ast-grep-mcp/tsconfig.json && tsgo --noEmit -p packages/utils/tsconfig.json && tsgo --noEmit -p packages/model-core/tsconfig.json && tsgo --noEmit -p packages/comment-checker-core/tsconfig.json && tsgo --noEmit -p packages/hashline-core/tsconfig.json && tsgo --noEmit -p packages/boulder-state/tsconfig.json && tsgo --noEmit -p packages/agents-md-core/tsconfig.json",
|
|
39
53
|
"typecheck:script": "tsgo --noEmit -p script/tsconfig.json",
|
|
40
|
-
"test": "bun test"
|
|
54
|
+
"test": "bun test",
|
|
55
|
+
"build:ast-grep-mcp": "bun run --cwd packages/ast-grep-mcp build"
|
|
41
56
|
},
|
|
42
57
|
"keywords": [
|
|
43
58
|
"opencode",
|
|
@@ -59,43 +74,53 @@
|
|
|
59
74
|
},
|
|
60
75
|
"homepage": "https://github.com/code-yeongyu/oh-my-openagent#readme",
|
|
61
76
|
"dependencies": {
|
|
62
|
-
"@ast-grep/cli": "^0.
|
|
63
|
-
"@ast-grep/napi": "^0.
|
|
64
|
-
"@clack/prompts": "^
|
|
65
|
-
"@code-yeongyu/comment-checker": "^0.
|
|
77
|
+
"@ast-grep/cli": "^0.42.2",
|
|
78
|
+
"@ast-grep/napi": "^0.42.2",
|
|
79
|
+
"@clack/prompts": "^1.4.0",
|
|
80
|
+
"@code-yeongyu/comment-checker": "^0.8.0",
|
|
66
81
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
67
|
-
"@opencode-ai/plugin": "^1.4
|
|
68
|
-
"@opencode-ai/sdk": "^1.4
|
|
82
|
+
"@opencode-ai/plugin": "^1.15.4",
|
|
83
|
+
"@opencode-ai/sdk": "^1.15.4",
|
|
69
84
|
"commander": "^14.0.3",
|
|
70
85
|
"detect-libc": "^2.1.2",
|
|
71
|
-
"diff": "^
|
|
86
|
+
"diff": "^9.0.0",
|
|
87
|
+
"effect": "4.0.0-beta.65",
|
|
72
88
|
"js-yaml": "^4.1.1",
|
|
73
89
|
"jsonc-parser": "^3.3.1",
|
|
74
90
|
"picocolors": "^1.1.1",
|
|
75
91
|
"picomatch": "^4.0.4",
|
|
76
|
-
"posthog-node": "^5.34.
|
|
92
|
+
"posthog-node": "^5.34.3",
|
|
77
93
|
"vscode-jsonrpc": "^8.2.1"
|
|
78
94
|
},
|
|
79
95
|
"devDependencies": {
|
|
80
|
-
"@
|
|
96
|
+
"@oh-my-opencode/ast-grep-core": "workspace:*",
|
|
97
|
+
"@oh-my-opencode/ast-grep-mcp": "workspace:*",
|
|
98
|
+
"@oh-my-opencode/agents-md-core": "workspace:*",
|
|
99
|
+
"@oh-my-opencode/boulder-state": "workspace:*",
|
|
100
|
+
"@oh-my-opencode/comment-checker-core": "workspace:*",
|
|
101
|
+
"@oh-my-opencode/hashline-core": "workspace:*",
|
|
102
|
+
"@oh-my-opencode/model-core": "workspace:*",
|
|
103
|
+
"@oh-my-opencode/rules-engine": "workspace:*",
|
|
104
|
+
"@oh-my-opencode/utils": "workspace:*",
|
|
105
|
+
"@typescript/native-preview": "7.0.0-dev.20260518.1",
|
|
81
106
|
"@types/js-yaml": "^4.0.9",
|
|
82
|
-
"@types/picomatch": "^
|
|
83
|
-
"bun-types": "1.3.
|
|
84
|
-
"typescript": "^
|
|
107
|
+
"@types/picomatch": "^4.0.3",
|
|
108
|
+
"bun-types": "1.3.14",
|
|
109
|
+
"typescript": "^6.0.3",
|
|
85
110
|
"zod": "^4.4.3"
|
|
86
111
|
},
|
|
87
112
|
"optionalDependencies": {
|
|
88
|
-
"oh-my-opencode-darwin-arm64": "4.
|
|
89
|
-
"oh-my-opencode-darwin-x64": "4.
|
|
90
|
-
"oh-my-opencode-darwin-x64-baseline": "4.
|
|
91
|
-
"oh-my-opencode-linux-arm64": "4.
|
|
92
|
-
"oh-my-opencode-linux-arm64-musl": "4.
|
|
93
|
-
"oh-my-opencode-linux-x64": "4.
|
|
94
|
-
"oh-my-opencode-linux-x64-baseline": "4.
|
|
95
|
-
"oh-my-opencode-linux-x64-musl": "4.
|
|
96
|
-
"oh-my-opencode-linux-x64-musl-baseline": "4.
|
|
97
|
-
"oh-my-opencode-windows-x64": "4.
|
|
98
|
-
"oh-my-opencode-windows-x64-baseline": "4.
|
|
113
|
+
"oh-my-opencode-darwin-arm64": "4.3.0",
|
|
114
|
+
"oh-my-opencode-darwin-x64": "4.3.0",
|
|
115
|
+
"oh-my-opencode-darwin-x64-baseline": "4.3.0",
|
|
116
|
+
"oh-my-opencode-linux-arm64": "4.3.0",
|
|
117
|
+
"oh-my-opencode-linux-arm64-musl": "4.3.0",
|
|
118
|
+
"oh-my-opencode-linux-x64": "4.3.0",
|
|
119
|
+
"oh-my-opencode-linux-x64-baseline": "4.3.0",
|
|
120
|
+
"oh-my-opencode-linux-x64-musl": "4.3.0",
|
|
121
|
+
"oh-my-opencode-linux-x64-musl-baseline": "4.3.0",
|
|
122
|
+
"oh-my-opencode-windows-x64": "4.3.0",
|
|
123
|
+
"oh-my-opencode-windows-x64-baseline": "4.3.0"
|
|
99
124
|
},
|
|
100
125
|
"overrides": {
|
|
101
126
|
"hono": "^4.12.18",
|