@bohuyeshan/openagent-labforge-core 3.11.5 → 3.13.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 +130 -343
- package/README.ko.md +128 -337
- package/README.md +229 -584
- package/README.ru.md +131 -364
- package/README.zh-cn.md +231 -547
- package/bin/openagent-labforge.js +95 -9
- package/bin/platform.test.ts +20 -21
- package/dist/agents/article-writer.d.ts +7 -0
- package/dist/agents/atlas/default.d.ts +1 -1
- package/dist/agents/atlas/gemini.d.ts +1 -1
- package/dist/agents/atlas/gpt.d.ts +1 -1
- package/dist/agents/bio-methodologist.d.ts +1 -1
- package/dist/agents/bio-orchestrator.d.ts +7 -0
- package/dist/agents/bio-skill-guidance.d.ts +1 -0
- package/dist/agents/builtin-agents/general-agents.d.ts +0 -1
- package/dist/agents/builtin-agents/sisyphus-agent.d.ts +16 -0
- package/dist/agents/dynamic-agent-prompt-builder.d.ts +0 -2
- package/dist/agents/engineering-capability.d.ts +7 -0
- package/dist/agents/env-context.d.ts +1 -1
- package/dist/agents/github-scout.d.ts +7 -0
- package/dist/agents/index.d.ts +0 -1
- package/dist/agents/metis.d.ts +1 -1
- package/dist/agents/momus.d.ts +1 -1
- package/dist/agents/prometheus/behavioral-summary.d.ts +1 -1
- package/dist/agents/prometheus/gemini.d.ts +1 -1
- package/dist/agents/prometheus/gpt.d.ts +1 -1
- package/dist/agents/prometheus/interview-mode.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/system-prompt.d.ts +1 -1
- package/dist/agents/scientific-writer.d.ts +7 -0
- package/dist/agents/sisyphus-junior/gpt-5-3-codex.d.ts +1 -1
- package/dist/agents/sisyphus-junior/gpt-5-4.d.ts +1 -1
- package/dist/agents/sisyphus-junior/gpt.d.ts +1 -1
- package/dist/agents/tech-scout.d.ts +7 -0
- package/dist/agents/types.d.ts +1 -1
- package/dist/agents/wase.d.ts +8 -0
- package/dist/agents/wet-lab-designer.d.ts +7 -0
- package/dist/agents/writing-style-rules.d.ts +1 -0
- package/dist/cli/config-manager/bun-install.d.ts +1 -6
- package/dist/cli/config-manager/cleanup-managed-mcp-from-opencode-config.d.ts +2 -0
- package/dist/cli/config-manager/cleanup-stale-managed-agents.d.ts +2 -0
- package/dist/cli/config-manager/parse-opencode-config-file.d.ts +2 -0
- package/dist/cli/config-manager/plugin-name-with-version.d.ts +1 -1
- package/dist/cli/config-manager/sync-static-agent-to-opencode-config.d.ts +2 -0
- package/dist/cli/config-manager/sync-static-mcp-to-opencode-config.d.ts +2 -0
- package/dist/cli/config-manager/write-bootstrap-skill.d.ts +15 -0
- package/dist/cli/config-manager.d.ts +5 -0
- package/dist/cli/index.js +24986 -15362
- package/dist/cli/install-validators.d.ts +0 -1
- package/dist/cli/model-fallback-types.d.ts +0 -1
- package/dist/cli/run/index.d.ts +0 -1
- package/dist/cli/run/types.d.ts +0 -1
- package/dist/cli/types.d.ts +0 -3
- package/dist/config/schema/agent-names.d.ts +36 -3
- package/dist/config/schema/agent-overrides.d.ts +504 -0
- package/dist/config/schema/background-task.d.ts +0 -2
- package/dist/config/schema/experimental.d.ts +5 -0
- package/dist/config/schema/git-master.d.ts +0 -1
- package/dist/config/schema/hooks.d.ts +0 -2
- package/dist/config/schema/mcp-policy.d.ts +1 -0
- package/dist/config/schema/oh-my-opencode-config.d.ts +526 -54
- package/dist/config/schema.d.ts +0 -1
- package/dist/create-hooks.d.ts +0 -13
- package/dist/features/background-agent/compaction-aware-message-resolver.d.ts +1 -16
- package/dist/features/background-agent/constants.d.ts +2 -1
- package/dist/features/background-agent/manager.d.ts +5 -20
- package/dist/features/background-agent/process-cleanup.d.ts +1 -1
- package/dist/features/background-agent/task-history.d.ts +0 -1
- package/dist/features/background-agent/task-poller.d.ts +0 -1
- package/dist/features/background-agent/types.d.ts +0 -4
- package/dist/features/builtin-commands/commands.d.ts +4 -1
- package/dist/features/builtin-skills/skills/bio-methods.d.ts +2 -0
- package/dist/features/builtin-skills/skills/bio-pipeline.d.ts +2 -0
- package/dist/features/builtin-skills/skills/bio-tools.d.ts +2 -0
- package/dist/features/builtin-skills/skills/bio-visualization.d.ts +2 -0
- package/dist/features/builtin-skills/skills/cell-annotation.d.ts +2 -0
- package/dist/features/builtin-skills/skills/differential-expression.d.ts +2 -0
- package/dist/features/builtin-skills/skills/geo-query.d.ts +2 -0
- package/dist/features/builtin-skills/skills/index.d.ts +14 -0
- package/dist/features/builtin-skills/skills/paper-evidence.d.ts +2 -0
- package/dist/features/builtin-skills/skills/pubmed-search.d.ts +2 -0
- package/dist/features/builtin-skills/skills/scrna-preprocessing.d.ts +2 -0
- package/dist/features/builtin-skills/skills/sequence-analysis.d.ts +2 -0
- package/dist/features/builtin-skills/skills/structural-biology.d.ts +2 -0
- package/dist/features/builtin-skills/skills/vector-design.d.ts +2 -0
- package/dist/features/builtin-skills/skills/wet-lab-design.d.ts +2 -0
- package/dist/features/claude-code-agent-loader/loader.d.ts +3 -3
- package/dist/features/claude-code-agent-loader/types.d.ts +1 -8
- 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/types.d.ts +3 -0
- package/dist/features/claude-code-plugin-loader/agent-loader.d.ts +2 -2
- package/dist/features/claude-code-plugin-loader/loader.d.ts +2 -2
- package/dist/features/claude-code-plugin-loader/types.d.ts +1 -1
- package/dist/features/claude-code-session-state/state.d.ts +5 -0
- package/dist/features/opencode-skill-loader/git-master-template-injection.d.ts +1 -1
- package/dist/features/opencode-skill-loader/project-skill-directory-discovery.d.ts +1 -0
- package/dist/features/opencode-skill-loader/skill-metadata-validator.d.ts +8 -0
- package/dist/features/skill-mcp-manager/types.d.ts +0 -4
- package/dist/features/tmux-subagent/index.d.ts +0 -1
- package/dist/features/tmux-subagent/manager.d.ts +0 -5
- package/dist/features/tmux-subagent/types.d.ts +0 -2
- package/dist/hooks/atlas/tool-execute-after.d.ts +0 -2
- package/dist/hooks/atlas/types.d.ts +0 -2
- package/dist/hooks/atlas/verification-reminders.d.ts +0 -4
- package/dist/hooks/auto-slash-command/hook.d.ts +0 -7
- package/dist/hooks/auto-update-checker/checker.d.ts +1 -3
- package/dist/hooks/auto-update-checker/constants.d.ts +2 -2
- package/dist/hooks/comment-checker/downloader.d.ts +1 -1
- package/dist/hooks/compaction-context-injector/hook.d.ts +1 -5
- package/dist/hooks/context-window-monitor.d.ts +5 -2
- package/dist/hooks/index.d.ts +0 -2
- package/dist/hooks/keyword-detector/detector.d.ts +1 -1
- package/dist/hooks/keyword-detector/hook.d.ts +2 -2
- package/dist/hooks/keyword-detector/index.d.ts +1 -0
- package/dist/hooks/keyword-detector/semantic-hint.d.ts +4 -0
- package/dist/hooks/keyword-detector/ultrawork/autonomous.d.ts +8 -0
- package/dist/hooks/preemptive-compaction.d.ts +5 -2
- package/dist/hooks/runtime-fallback/hook.d.ts +3 -2
- package/dist/hooks/runtime-fallback/message-update-handler.d.ts +2 -1
- package/dist/hooks/runtime-fallback/types.d.ts +3 -56
- package/dist/hooks/session-notification-scheduler.d.ts +3 -5
- package/dist/hooks/session-notification.d.ts +0 -2
- package/dist/hooks/session-recovery/tool-pairing.d.ts +16 -0
- package/dist/hooks/start-work/index.d.ts +1 -1
- package/dist/hooks/start-work/worktree-detector.d.ts +0 -7
- package/dist/hooks/todo-continuation-enforcer/compaction-guard.d.ts +4 -0
- package/dist/hooks/todo-continuation-enforcer/constants.d.ts +6 -5
- package/dist/hooks/todo-continuation-enforcer/handler.d.ts +0 -1
- package/dist/hooks/todo-continuation-enforcer/idle-event.d.ts +0 -1
- package/dist/hooks/todo-continuation-enforcer/resolve-message-info.d.ts +3 -0
- package/dist/hooks/todo-continuation-enforcer/session-state.d.ts +1 -1
- package/dist/hooks/todo-continuation-enforcer/types.d.ts +8 -3
- package/dist/hooks/tool-output-truncator.d.ts +0 -1
- package/dist/index.js +56627 -56933
- package/dist/mcp/extended.d.ts +4 -2
- package/dist/mcp/index.d.ts +2 -1
- package/dist/mcp/types.d.ts +2 -3
- package/dist/openagent-labforge.schema.json +1362 -83
- package/dist/plugin/hooks/create-continuation-hooks.d.ts +1 -2
- package/dist/plugin/hooks/create-core-hooks.d.ts +0 -1
- package/dist/plugin/hooks/create-session-hooks.d.ts +1 -2
- package/dist/plugin/ultrawork-model-override.d.ts +11 -1
- package/dist/plugin-dispose.d.ts +12 -10
- package/dist/plugin-handlers/agent-config-handler.d.ts +0 -1
- package/dist/plugin-handlers/prometheus-agent-config-builder.d.ts +1 -1
- package/dist/plugin-state.d.ts +0 -5
- package/dist/shared/agent-display-names.d.ts +1 -0
- package/dist/shared/data-path.d.ts +1 -1
- package/dist/shared/dynamic-truncator.d.ts +7 -4
- package/dist/shared/external-plugin-detector.d.ts +7 -0
- package/dist/shared/index.d.ts +5 -3
- package/dist/shared/jsonc-parser.d.ts +4 -0
- package/dist/shared/mcp-local-command-normalizer.d.ts +1 -0
- package/dist/shared/migrate-legacy-config-file.d.ts +1 -0
- package/dist/shared/model-error-classifier.d.ts +1 -2
- package/dist/shared/opencode-command-dirs.d.ts +0 -1
- package/dist/shared/plugin-identity.d.ts +2 -3
- package/dist/shared/project-discovery-dirs.d.ts +4 -0
- package/dist/shared/session-model-state.d.ts +1 -2
- package/dist/shared/system-directive.d.ts +5 -6
- package/dist/tools/call-omo-agent/background-executor.d.ts +1 -2
- package/dist/tools/call-omo-agent/constants.d.ts +2 -2
- package/dist/tools/call-omo-agent/sync-executor.d.ts +3 -11
- package/dist/tools/call-omo-agent/tools.d.ts +2 -2
- package/dist/tools/call-omo-agent/types.d.ts +13 -0
- package/dist/tools/delegate-task/constants.d.ts +1 -1
- package/dist/tools/delegate-task/model-selection.d.ts +0 -1
- package/dist/tools/delegate-task/model-string-parser.d.ts +3 -1
- package/dist/tools/delegate-task/parent-context-resolver.d.ts +22 -0
- package/dist/tools/lsp/constants.d.ts +0 -1
- package/dist/tools/lsp/lsp-client-transport.d.ts +2 -4
- package/dist/tools/lsp/lsp-client-wrapper.d.ts +1 -2
- package/generated/skills-bundles/catalog.json +1 -1
- package/generated/skills-bundles/full/skills/data-analysis/experiment-monitoring/auto-claude__monitor-experiment/SKILL.md +56 -55
- package/generated/skills-bundles/full/skills/data-analysis/experiment-ops/auto-claude__run-experiment/SKILL.md +105 -104
- package/generated/skills-bundles/full/skills/data-analysis/optimization/auto-claude__dse-loop/SKILL.md +272 -271
- package/generated/skills-bundles/full/skills/data-analysis/statistics/auto-claude__analyze-results/SKILL.md +40 -39
- package/generated/skills-bundles/full/skills/data-analysis/visualization/auto-claude__paper-figure/SKILL.md +274 -273
- package/generated/skills-bundles/full/skills/productivity/visual-design/auto-claude__pixel-art/SKILL.md +131 -130
- package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-compile/SKILL.md +245 -244
- package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-plan/SKILL.md +247 -246
- package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-write/SKILL.md +303 -302
- package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-write/templates/iclr2026.tex +84 -84
- package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-write/templates/icml2025.tex +87 -87
- package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-write/templates/math_commands.tex +48 -48
- package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-write/templates/neurips2025.tex +80 -80
- package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-writing/SKILL.md +31 -31
- package/generated/skills-bundles/full/skills/research/literature-and-web-search/auto-claude__arxiv/SKILL.md +126 -125
- package/generated/skills-bundles/full/skills/research/literature-and-web-search/auto-claude__novelty-check/SKILL.md +80 -79
- package/generated/skills-bundles/full/skills/research/literature-and-web-search/auto-claude__research-lit/SKILL.md +187 -186
- package/generated/skills-bundles/full/skills/research/research-ideation/auto-claude__idea-creator/SKILL.md +11 -11
- package/generated/skills-bundles/full/skills/research/research-ideation/auto-claude__idea-discovery/SKILL.md +18 -18
- package/generated/skills-bundles/full/skills/research/research-ideation/auto-claude__idea-discovery-robot/SKILL.md +20 -20
- package/generated/skills-bundles/full/skills/research/research-ideation/auto-claude__research-pipeline/SKILL.md +15 -15
- package/generated/skills-bundles/full/skills/research/theory-writing/auto-claude__proof-writer/SKILL.md +217 -216
- package/generated/skills-bundles/paper/skills/data-analysis/experiment-monitoring/auto-claude__monitor-experiment/SKILL.md +56 -55
- package/generated/skills-bundles/paper/skills/data-analysis/experiment-ops/auto-claude__run-experiment/SKILL.md +105 -104
- package/generated/skills-bundles/paper/skills/data-analysis/optimization/auto-claude__dse-loop/SKILL.md +272 -271
- package/generated/skills-bundles/paper/skills/data-analysis/statistics/auto-claude__analyze-results/SKILL.md +40 -39
- package/generated/skills-bundles/paper/skills/data-analysis/visualization/auto-claude__paper-figure/SKILL.md +274 -273
- package/generated/skills-bundles/paper/skills/productivity/visual-design/auto-claude__pixel-art/SKILL.md +131 -130
- package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-compile/SKILL.md +245 -244
- package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-plan/SKILL.md +247 -246
- package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-write/SKILL.md +303 -302
- package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-write/templates/iclr2026.tex +84 -84
- package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-write/templates/icml2025.tex +87 -87
- package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-write/templates/math_commands.tex +48 -48
- package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-write/templates/neurips2025.tex +80 -80
- package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-writing/SKILL.md +31 -31
- package/generated/skills-bundles/paper/skills/research/literature-and-web-search/auto-claude__arxiv/SKILL.md +126 -125
- package/generated/skills-bundles/paper/skills/research/literature-and-web-search/auto-claude__novelty-check/SKILL.md +80 -79
- package/generated/skills-bundles/paper/skills/research/literature-and-web-search/auto-claude__research-lit/SKILL.md +187 -186
- package/generated/skills-bundles/paper/skills/research/research-ideation/auto-claude__idea-creator/SKILL.md +11 -11
- package/generated/skills-bundles/paper/skills/research/research-ideation/auto-claude__idea-discovery/SKILL.md +18 -18
- package/generated/skills-bundles/paper/skills/research/research-ideation/auto-claude__idea-discovery-robot/SKILL.md +20 -20
- package/generated/skills-bundles/paper/skills/research/research-ideation/auto-claude__research-pipeline/SKILL.md +15 -15
- package/generated/skills-bundles/paper/skills/research/theory-writing/auto-claude__proof-writer/SKILL.md +217 -216
- package/package.json +36 -32
- package/dist/cli/openai-only-model-catalog.d.ts +0 -3
- package/dist/cli/run/model-resolver.d.ts +0 -4
- package/dist/config/schema/git-env-prefix.d.ts +0 -5
- package/dist/features/background-agent/remove-task-toast-tracking.d.ts +0 -1
- package/dist/features/background-agent/subagent-spawn-limits.d.ts +0 -23
- package/dist/features/claude-code-agent-loader/claude-model-mapper.d.ts +0 -4
- package/dist/features/tmux-subagent/pane-state-parser.d.ts +0 -8
- package/dist/features/tmux-subagent/tracked-session-state.d.ts +0 -8
- package/dist/hooks/atlas/boulder-session-lineage.d.ts +0 -6
- package/dist/hooks/atlas/final-wave-approval-gate.d.ts +0 -4
- package/dist/hooks/atlas/idle-event.d.ts +0 -8
- package/dist/hooks/atlas/resolve-active-boulder-session.d.ts +0 -11
- package/dist/hooks/auto-slash-command/processed-command-store.d.ts +0 -7
- package/dist/hooks/auto-update-checker/checker/sync-package-json.d.ts +0 -7
- package/dist/hooks/compaction-context-injector/compaction-context-prompt.d.ts +0 -1
- package/dist/hooks/compaction-context-injector/constants.d.ts +0 -5
- package/dist/hooks/compaction-context-injector/recovery-prompt-config.d.ts +0 -6
- package/dist/hooks/compaction-context-injector/recovery.d.ts +0 -6
- package/dist/hooks/compaction-context-injector/session-id.d.ts +0 -2
- package/dist/hooks/compaction-context-injector/session-prompt-config-resolver.d.ts +0 -16
- package/dist/hooks/compaction-context-injector/tail-monitor.d.ts +0 -13
- package/dist/hooks/compaction-context-injector/types.d.ts +0 -43
- package/dist/hooks/compaction-context-injector/validated-model.d.ts +0 -13
- package/dist/hooks/delegate-task-english-directive/hook.d.ts +0 -14
- package/dist/hooks/delegate-task-english-directive/index.d.ts +0 -1
- package/dist/hooks/gpt-permission-continuation/assistant-message.d.ts +0 -23
- package/dist/hooks/gpt-permission-continuation/constants.d.ts +0 -4
- package/dist/hooks/gpt-permission-continuation/detector.d.ts +0 -1
- package/dist/hooks/gpt-permission-continuation/handler.d.ts +0 -12
- package/dist/hooks/gpt-permission-continuation/index.d.ts +0 -13
- package/dist/hooks/gpt-permission-continuation/session-state.d.ts +0 -15
- package/dist/hooks/ralph-loop/pending-verification-handler.d.ts +0 -16
- package/dist/hooks/runtime-fallback/fallback-bootstrap-model.d.ts +0 -10
- package/dist/hooks/runtime-fallback/fallback-retry-dispatcher.d.ts +0 -11
- package/dist/hooks/runtime-fallback/last-user-retry-parts.d.ts +0 -4
- package/dist/hooks/runtime-fallback/retry-model-payload.d.ts +0 -7
- package/dist/hooks/runtime-fallback/session-messages.d.ts +0 -9
- package/dist/hooks/runtime-fallback/session-status-handler.d.ts +0 -3
- package/dist/hooks/runtime-fallback/visible-assistant-response.d.ts +0 -3
- package/dist/hooks/session-notification-content.d.ts +0 -30
- package/dist/plugin/normalize-tool-arg-schemas.d.ts +0 -2
- package/dist/plugin/ultrawork-variant-availability.d.ts +0 -6
- package/dist/shared/compaction-agent-config-checkpoint.d.ts +0 -11
- package/dist/shared/context-limit-resolver.d.ts +0 -5
- package/dist/shared/fallback-chain-from-models.d.ts +0 -3
- package/dist/shared/question-denied-session-permission.d.ts +0 -6
- package/dist/shared/retry-status-utils.d.ts +0 -2
- package/dist/shared/vision-capable-models-cache.d.ts +0 -4
- package/dist/tools/delegate-task/cancel-unstable-agent-task.d.ts +0 -2
- package/dist/tools/look-at/multimodal-fallback-chain.d.ts +0 -4
- package/dist/tools/lsp/directory-diagnostics.d.ts +0 -1
- package/dist/tools/lsp/server-path-bases.d.ts +0 -1
package/dist/create-hooks.d.ts
CHANGED
|
@@ -5,15 +5,6 @@ import type { BackgroundManager } from "./features/background-agent";
|
|
|
5
5
|
import type { PluginContext } from "./plugin/types";
|
|
6
6
|
import type { ModelCacheState } from "./plugin-state";
|
|
7
7
|
export type CreatedHooks = ReturnType<typeof createHooks>;
|
|
8
|
-
type DisposableHook = {
|
|
9
|
-
dispose?: () => void;
|
|
10
|
-
} | null | undefined;
|
|
11
|
-
export type DisposableCreatedHooks = {
|
|
12
|
-
runtimeFallback?: DisposableHook;
|
|
13
|
-
todoContinuationEnforcer?: DisposableHook;
|
|
14
|
-
autoSlashCommand?: DisposableHook;
|
|
15
|
-
};
|
|
16
|
-
export declare function disposeCreatedHooks(hooks: DisposableCreatedHooks): void;
|
|
17
8
|
export declare function createHooks(args: {
|
|
18
9
|
ctx: PluginContext;
|
|
19
10
|
pluginConfig: OhMyOpenCodeConfig;
|
|
@@ -24,10 +15,8 @@ export declare function createHooks(args: {
|
|
|
24
15
|
getMergedSkills: () => Promise<LoadedSkill[]>;
|
|
25
16
|
availableSkills: AvailableSkill[];
|
|
26
17
|
}): {
|
|
27
|
-
disposeHooks: () => void;
|
|
28
18
|
categorySkillReminder: ReturnType<typeof import("./hooks").createCategorySkillReminderHook> | null;
|
|
29
19
|
autoSlashCommand: ReturnType<typeof import("./hooks").createAutoSlashCommandHook> | null;
|
|
30
|
-
gptPermissionContinuation: ReturnType<typeof import("./hooks").createGptPermissionContinuationHook> | null;
|
|
31
20
|
stopContinuationGuard: ReturnType<typeof import("./hooks").createStopContinuationGuardHook> | null;
|
|
32
21
|
compactionContextInjector: ReturnType<typeof import("./hooks").createCompactionContextInjector> | null;
|
|
33
22
|
compactionTodoPreserver: ReturnType<typeof import("./hooks").createCompactionTodoPreserverHook> | null;
|
|
@@ -73,6 +62,4 @@ export declare function createHooks(args: {
|
|
|
73
62
|
taskResumeInfo: ReturnType<typeof import("./hooks").createTaskResumeInfoHook> | null;
|
|
74
63
|
anthropicEffort: ReturnType<typeof import("./hooks/anthropic-effort").createAnthropicEffortHook> | null;
|
|
75
64
|
runtimeFallback: ReturnType<typeof import("./hooks").createRuntimeFallbackHook> | null;
|
|
76
|
-
delegateTaskEnglishDirective: ReturnType<typeof import("./hooks").createDelegateTaskEnglishDirectiveHook> | null;
|
|
77
65
|
};
|
|
78
|
-
export {};
|
|
@@ -1,18 +1,3 @@
|
|
|
1
1
|
import type { StoredMessage } from "../hook-message-injector";
|
|
2
|
-
type SessionMessage = {
|
|
3
|
-
info?: {
|
|
4
|
-
agent?: string;
|
|
5
|
-
model?: {
|
|
6
|
-
providerID?: string;
|
|
7
|
-
modelID?: string;
|
|
8
|
-
variant?: string;
|
|
9
|
-
};
|
|
10
|
-
providerID?: string;
|
|
11
|
-
modelID?: string;
|
|
12
|
-
tools?: StoredMessage["tools"];
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
2
|
export declare function isCompactionAgent(agent: string | undefined): boolean;
|
|
16
|
-
export declare function
|
|
17
|
-
export declare function findNearestMessageExcludingCompaction(messageDir: string, sessionID?: string): StoredMessage | null;
|
|
18
|
-
export {};
|
|
3
|
+
export declare function findNearestMessageExcludingCompaction(messageDir: string): StoredMessage | null;
|
|
@@ -3,8 +3,9 @@ import type { BackgroundTask, LaunchInput } from "./types";
|
|
|
3
3
|
export declare const TASK_TTL_MS: number;
|
|
4
4
|
export declare const MIN_STABILITY_TIME_MS: number;
|
|
5
5
|
export declare const DEFAULT_STALE_TIMEOUT_MS = 180000;
|
|
6
|
-
export declare const DEFAULT_MESSAGE_STALENESS_TIMEOUT_MS =
|
|
6
|
+
export declare const DEFAULT_MESSAGE_STALENESS_TIMEOUT_MS = 600000;
|
|
7
7
|
export declare const MIN_RUNTIME_BEFORE_STALE_MS = 30000;
|
|
8
|
+
export declare const RUNNING_SESSION_STALENESS_TIMEOUT_MS: number;
|
|
8
9
|
export declare const MIN_IDLE_TIME_MS = 5000;
|
|
9
10
|
export declare const POLLING_INTERVAL_MS = 3000;
|
|
10
11
|
export declare const TASK_CLEANUP_DELAY_MS: number;
|
|
@@ -2,7 +2,6 @@ import type { PluginInput } from "@opencode-ai/plugin";
|
|
|
2
2
|
import type { BackgroundTask, LaunchInput, ResumeInput } from "./types";
|
|
3
3
|
import { TaskHistory } from "./task-history";
|
|
4
4
|
import type { BackgroundTaskConfig, TmuxConfig } from "../../config/schema";
|
|
5
|
-
import { type SubagentSpawnContext } from "./subagent-spawn-limits";
|
|
6
5
|
interface EventProperties {
|
|
7
6
|
sessionID?: string;
|
|
8
7
|
info?: {
|
|
@@ -38,31 +37,16 @@ export declare class BackgroundManager {
|
|
|
38
37
|
private queuesByKey;
|
|
39
38
|
private processingKeys;
|
|
40
39
|
private completionTimers;
|
|
41
|
-
private completedTaskSummaries;
|
|
42
40
|
private idleDeferralTimers;
|
|
43
41
|
private notificationQueueByParent;
|
|
44
|
-
private rootDescendantCounts;
|
|
45
|
-
private preStartDescendantReservations;
|
|
46
42
|
private enableParentSessionNotifications;
|
|
47
43
|
readonly taskHistory: TaskHistory;
|
|
48
44
|
constructor(ctx: PluginInput, config?: BackgroundTaskConfig, options?: {
|
|
49
45
|
tmuxConfig?: TmuxConfig;
|
|
50
46
|
onSubagentSessionCreated?: OnSubagentSessionCreated;
|
|
51
|
-
onShutdown?: () => void
|
|
47
|
+
onShutdown?: () => void;
|
|
52
48
|
enableParentSessionNotifications?: boolean;
|
|
53
49
|
});
|
|
54
|
-
assertCanSpawn(parentSessionID: string): Promise<SubagentSpawnContext>;
|
|
55
|
-
reserveSubagentSpawn(parentSessionID: string): Promise<{
|
|
56
|
-
spawnContext: SubagentSpawnContext;
|
|
57
|
-
descendantCount: number;
|
|
58
|
-
commit: () => number;
|
|
59
|
-
rollback: () => void;
|
|
60
|
-
}>;
|
|
61
|
-
private registerRootDescendant;
|
|
62
|
-
private unregisterRootDescendant;
|
|
63
|
-
private markPreStartDescendantReservation;
|
|
64
|
-
private settlePreStartDescendantReservation;
|
|
65
|
-
private rollbackPreStartDescendantReservation;
|
|
66
50
|
launch(input: LaunchInput): Promise<BackgroundTask>;
|
|
67
51
|
private processKey;
|
|
68
52
|
private startTask;
|
|
@@ -88,6 +72,7 @@ export declare class BackgroundManager {
|
|
|
88
72
|
private checkSessionTodos;
|
|
89
73
|
handleEvent(event: Event): void;
|
|
90
74
|
private tryFallbackRetry;
|
|
75
|
+
private clearTaskSessionState;
|
|
91
76
|
markForNotification(task: BackgroundTask): void;
|
|
92
77
|
getPendingNotifications(sessionID: string): BackgroundTask[];
|
|
93
78
|
clearNotifications(sessionID: string): void;
|
|
@@ -110,8 +95,6 @@ export declare class BackgroundManager {
|
|
|
110
95
|
* Cleans up the parent entry if no pending tasks remain.
|
|
111
96
|
*/
|
|
112
97
|
private cleanupPendingByParent;
|
|
113
|
-
private clearTaskHistoryWhenParentTasksGone;
|
|
114
|
-
private scheduleTaskRemoval;
|
|
115
98
|
cancelTask(taskId: string, options?: {
|
|
116
99
|
source?: string;
|
|
117
100
|
reason?: string;
|
|
@@ -141,6 +124,8 @@ export declare class BackgroundManager {
|
|
|
141
124
|
*/
|
|
142
125
|
private tryCompleteTask;
|
|
143
126
|
private notifyParentSession;
|
|
127
|
+
private formatDuration;
|
|
128
|
+
private isAbortedSessionError;
|
|
144
129
|
private hasRunningTasks;
|
|
145
130
|
private pruneStaleTasksAndNotifications;
|
|
146
131
|
private checkAndInterruptStaleTasks;
|
|
@@ -150,7 +135,7 @@ export declare class BackgroundManager {
|
|
|
150
135
|
* Cancels all pending concurrency waiters and clears timers.
|
|
151
136
|
* Should be called when the plugin is unloaded.
|
|
152
137
|
*/
|
|
153
|
-
shutdown():
|
|
138
|
+
shutdown(): void;
|
|
154
139
|
private enqueueNotificationForParent;
|
|
155
140
|
}
|
|
156
141
|
export {};
|
|
@@ -14,6 +14,5 @@ export declare class TaskHistory {
|
|
|
14
14
|
record(parentSessionID: string | undefined, entry: TaskHistoryEntry): void;
|
|
15
15
|
getByParentSession(parentSessionID: string): TaskHistoryEntry[];
|
|
16
16
|
clearSession(parentSessionID: string): void;
|
|
17
|
-
clearAll(): void;
|
|
18
17
|
formatForCompaction(parentSessionID: string): string | null;
|
|
19
18
|
}
|
|
@@ -17,5 +17,4 @@ export declare function checkAndInterruptStaleTasks(args: {
|
|
|
17
17
|
concurrencyManager: ConcurrencyManager;
|
|
18
18
|
notifyParentSession: (task: BackgroundTask) => Promise<void>;
|
|
19
19
|
sessionStatuses?: SessionStatusMap;
|
|
20
|
-
onTaskInterrupted?: (task: BackgroundTask) => void;
|
|
21
20
|
}): Promise<void>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { FallbackEntry } from "../../shared/model-requirements";
|
|
2
|
-
import type { SessionPermissionRule } from "../../shared/question-denied-session-permission";
|
|
3
2
|
export type BackgroundTaskStatus = "pending" | "running" | "completed" | "error" | "cancelled" | "interrupt";
|
|
4
3
|
export interface TaskProgress {
|
|
5
4
|
toolCalls: number;
|
|
@@ -11,13 +10,11 @@ export interface TaskProgress {
|
|
|
11
10
|
export interface BackgroundTask {
|
|
12
11
|
id: string;
|
|
13
12
|
sessionID?: string;
|
|
14
|
-
rootSessionID?: string;
|
|
15
13
|
parentSessionID: string;
|
|
16
14
|
parentMessageID: string;
|
|
17
15
|
description: string;
|
|
18
16
|
prompt: string;
|
|
19
17
|
agent: string;
|
|
20
|
-
spawnDepth?: number;
|
|
21
18
|
status: BackgroundTaskStatus;
|
|
22
19
|
queuedAt?: Date;
|
|
23
20
|
startedAt?: Date;
|
|
@@ -78,7 +75,6 @@ export interface LaunchInput {
|
|
|
78
75
|
skills?: string[];
|
|
79
76
|
skillContent?: string;
|
|
80
77
|
category?: string;
|
|
81
|
-
sessionPermission?: SessionPermissionRule[];
|
|
82
78
|
}
|
|
83
79
|
export interface ResumeInput {
|
|
84
80
|
sessionId: string;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
import type { BuiltinCommandName, BuiltinCommands } from "./types";
|
|
2
|
-
export
|
|
2
|
+
export interface LoadBuiltinCommandsOptions {
|
|
3
|
+
useRegisteredAgents?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare function loadBuiltinCommands(disabledCommands?: BuiltinCommandName[], options?: LoadBuiltinCommandsOptions): BuiltinCommands;
|
|
@@ -9,3 +9,17 @@ export { pptxSkill } from "./pptx";
|
|
|
9
9
|
export { xlsxSkill } from "./xlsx";
|
|
10
10
|
export { webResearchSkill } from "./web-research";
|
|
11
11
|
export { dataAnalysisSkill } from "./data-analysis";
|
|
12
|
+
export { bioToolsSkill } from "./bio-tools";
|
|
13
|
+
export { bioMethodsSkill } from "./bio-methods";
|
|
14
|
+
export { bioVisualizationSkill } from "./bio-visualization";
|
|
15
|
+
export { wetLabDesignSkill } from "./wet-lab-design";
|
|
16
|
+
export { bioPipelineSkill } from "./bio-pipeline";
|
|
17
|
+
export { paperEvidenceSkill } from "./paper-evidence";
|
|
18
|
+
export { differentialExpressionSkill } from "./differential-expression";
|
|
19
|
+
export { scrnaPreprocessingSkill } from "./scrna-preprocessing";
|
|
20
|
+
export { cellAnnotationSkill } from "./cell-annotation";
|
|
21
|
+
export { pubmedSearchSkill } from "./pubmed-search";
|
|
22
|
+
export { geoQuerySkill } from "./geo-query";
|
|
23
|
+
export { sequenceAnalysisSkill } from "./sequence-analysis";
|
|
24
|
+
export { structuralBiologySkill } from "./structural-biology";
|
|
25
|
+
export { vectorDesignSkill } from "./vector-design";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare function loadUserAgents(): Record<string,
|
|
3
|
-
export declare function loadProjectAgents(directory?: string): Record<string,
|
|
1
|
+
import type { AgentConfig } from "@opencode-ai/sdk";
|
|
2
|
+
export declare function loadUserAgents(): Record<string, AgentConfig>;
|
|
3
|
+
export declare function loadProjectAgents(directory?: string): Record<string, AgentConfig>;
|
|
@@ -1,21 +1,14 @@
|
|
|
1
1
|
import type { AgentConfig } from "@opencode-ai/sdk";
|
|
2
2
|
export type AgentScope = "user" | "project";
|
|
3
|
-
export type ClaudeCodeAgentConfig = Omit<AgentConfig, "model"> & {
|
|
4
|
-
model?: string | {
|
|
5
|
-
providerID: string;
|
|
6
|
-
modelID: string;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
3
|
export interface AgentFrontmatter {
|
|
10
4
|
name?: string;
|
|
11
5
|
description?: string;
|
|
12
6
|
model?: string;
|
|
13
7
|
tools?: string;
|
|
14
|
-
mode?: "subagent" | "primary" | "all";
|
|
15
8
|
}
|
|
16
9
|
export interface LoadedAgent {
|
|
17
10
|
name: string;
|
|
18
11
|
path: string;
|
|
19
|
-
config:
|
|
12
|
+
config: AgentConfig;
|
|
20
13
|
scope: AgentScope;
|
|
21
14
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare function getAllowedMcpEnvVars(): Set<string>;
|
|
2
|
+
export declare function isSensitiveMcpEnvVar(varName: string): boolean;
|
|
3
|
+
export declare function isAllowedMcpEnvVar(varName: string): boolean;
|
|
4
|
+
export declare function setAdditionalAllowedMcpEnvVars(varNames: string[]): void;
|
|
5
|
+
export declare function resetAdditionalAllowedMcpEnvVars(): void;
|
|
@@ -6,6 +6,7 @@ export interface ClaudeCodeMcpServer {
|
|
|
6
6
|
args?: string[];
|
|
7
7
|
env?: Record<string, string>;
|
|
8
8
|
headers?: Record<string, string>;
|
|
9
|
+
timeout?: number;
|
|
9
10
|
oauth?: {
|
|
10
11
|
clientId?: string;
|
|
11
12
|
scopes?: string[];
|
|
@@ -20,12 +21,14 @@ export interface McpLocalConfig {
|
|
|
20
21
|
command: string[];
|
|
21
22
|
environment?: Record<string, string>;
|
|
22
23
|
enabled?: boolean;
|
|
24
|
+
timeout?: number;
|
|
23
25
|
}
|
|
24
26
|
export interface McpRemoteConfig {
|
|
25
27
|
type: "remote";
|
|
26
28
|
url: string;
|
|
27
29
|
headers?: Record<string, string>;
|
|
28
30
|
enabled?: boolean;
|
|
31
|
+
timeout?: number;
|
|
29
32
|
}
|
|
30
33
|
export type McpServerConfig = McpLocalConfig | McpRemoteConfig;
|
|
31
34
|
export interface LoadedMcpServer {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AgentConfig } from "@opencode-ai/sdk";
|
|
2
2
|
import type { LoadedPlugin } from "./types";
|
|
3
|
-
export declare function loadPluginAgents(plugins: LoadedPlugin[]): Record<string,
|
|
3
|
+
export declare function loadPluginAgents(plugins: LoadedPlugin[]): Record<string, AgentConfig>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { AgentConfig } from "@opencode-ai/sdk";
|
|
1
2
|
import type { CommandDefinition } from "../claude-code-command-loader/types";
|
|
2
3
|
import type { McpServerConfig } from "../claude-code-mcp-loader/types";
|
|
3
|
-
import type { ClaudeCodeAgentConfig } from "../claude-code-agent-loader/types";
|
|
4
4
|
import type { HooksConfig, LoadedPlugin, PluginLoadError, PluginLoaderOptions } from "./types";
|
|
5
5
|
export { discoverInstalledPlugins } from "./discovery";
|
|
6
6
|
export { loadPluginCommands } from "./command-loader";
|
|
@@ -11,7 +11,7 @@ export { loadPluginHooksConfigs } from "./hook-loader";
|
|
|
11
11
|
export interface PluginComponentsResult {
|
|
12
12
|
commands: Record<string, CommandDefinition>;
|
|
13
13
|
skills: Record<string, CommandDefinition>;
|
|
14
|
-
agents: Record<string,
|
|
14
|
+
agents: Record<string, AgentConfig>;
|
|
15
15
|
mcpServers: Record<string, McpServerConfig>;
|
|
16
16
|
hooksConfigs: HooksConfig[];
|
|
17
17
|
plugins: LoadedPlugin[];
|
|
@@ -186,7 +186,7 @@ export interface ClaudeSettings {
|
|
|
186
186
|
*/
|
|
187
187
|
export interface PluginLoaderOptions {
|
|
188
188
|
/**
|
|
189
|
-
* Override enabled plugins from
|
|
189
|
+
* Override enabled plugins from oh-my-opencode config.
|
|
190
190
|
* Key format: "pluginName@marketplace" (e.g., "shell-scripting@claude-code-workflows")
|
|
191
191
|
* Value: true = enabled, false = disabled
|
|
192
192
|
*
|
|
@@ -2,9 +2,14 @@ export declare const subagentSessions: Set<string>;
|
|
|
2
2
|
export declare const syncSubagentSessions: Set<string>;
|
|
3
3
|
export declare function setMainSession(id: string | undefined): void;
|
|
4
4
|
export declare function getMainSessionID(): string | undefined;
|
|
5
|
+
export declare function registerAgentName(name: string): void;
|
|
6
|
+
export declare function isAgentRegistered(name: string): boolean;
|
|
5
7
|
/** @internal For testing only */
|
|
6
8
|
export declare function _resetForTesting(): void;
|
|
7
9
|
export declare function setSessionAgent(sessionID: string, agent: string): void;
|
|
8
10
|
export declare function updateSessionAgent(sessionID: string, agent: string): void;
|
|
9
11
|
export declare function getSessionAgent(sessionID: string): string | undefined;
|
|
10
12
|
export declare function clearSessionAgent(sessionID: string): void;
|
|
13
|
+
export declare function setUltraworkAutonomousSession(sessionID: string, enabled: boolean): void;
|
|
14
|
+
export declare function isUltraworkAutonomousSession(sessionID: string): boolean;
|
|
15
|
+
export declare function clearUltraworkAutonomousSession(sessionID: string): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { GitMasterConfig } from "../../config/schema";
|
|
2
2
|
export declare function injectGitMasterConfig(template: string, config?: GitMasterConfig): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function discoverProjectSkillDirectories(startDirectory: string, skillDirectoryName: string): string[];
|
|
@@ -41,15 +41,11 @@ export interface ProcessCleanupHandler {
|
|
|
41
41
|
export interface SkillMcpManagerState {
|
|
42
42
|
clients: Map<string, ManagedClient>;
|
|
43
43
|
pendingConnections: Map<string, Promise<Client>>;
|
|
44
|
-
disconnectedSessions: Map<string, number>;
|
|
45
44
|
authProviders: Map<string, McpOAuthProvider>;
|
|
46
45
|
cleanupRegistered: boolean;
|
|
47
46
|
cleanupInterval: ReturnType<typeof setInterval> | null;
|
|
48
47
|
cleanupHandlers: ProcessCleanupHandler[];
|
|
49
48
|
idleTimeoutMs: number;
|
|
50
|
-
shutdownGeneration: number;
|
|
51
|
-
inFlightConnections: Map<string, number>;
|
|
52
|
-
disposed: boolean;
|
|
53
49
|
}
|
|
54
50
|
export interface SkillMcpClientConnectionParams {
|
|
55
51
|
state: SkillMcpManagerState;
|
|
@@ -10,7 +10,6 @@ export * from "./session-status-parser";
|
|
|
10
10
|
export * from "./session-message-count";
|
|
11
11
|
export * from "./session-ready-waiter";
|
|
12
12
|
export * from "./types";
|
|
13
|
-
export * from "./pane-state-parser";
|
|
14
13
|
export * from "./pane-state-querier";
|
|
15
14
|
export * from "./decision-engine";
|
|
16
15
|
export * from "./action-executor";
|
|
@@ -45,11 +45,6 @@ export declare class TmuxSessionManager {
|
|
|
45
45
|
private isEnabled;
|
|
46
46
|
private getCapacityConfig;
|
|
47
47
|
private getSessionMappings;
|
|
48
|
-
private removeTrackedSession;
|
|
49
|
-
private markSessionClosePending;
|
|
50
|
-
private queryWindowStateSafely;
|
|
51
|
-
private tryCloseTrackedSession;
|
|
52
|
-
private retryPendingCloses;
|
|
53
48
|
private enqueueDeferredSession;
|
|
54
49
|
private removeDeferredSession;
|
|
55
50
|
private startDeferredAttachLoop;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
-
import type { SessionState } from "./types";
|
|
3
2
|
import type { ToolExecuteAfterInput, ToolExecuteAfterOutput } from "./types";
|
|
4
3
|
export declare function createToolExecuteAfterHandler(input: {
|
|
5
4
|
ctx: PluginInput;
|
|
6
5
|
pendingFilePaths: Map<string, string>;
|
|
7
6
|
autoCommit: boolean;
|
|
8
|
-
getState: (sessionID: string) => SessionState;
|
|
9
7
|
}): (toolInput: ToolExecuteAfterInput, toolOutput: ToolExecuteAfterOutput) => Promise<void>;
|
|
@@ -8,7 +8,6 @@ export interface AtlasHookOptions {
|
|
|
8
8
|
directory: string;
|
|
9
9
|
backgroundManager?: BackgroundManager;
|
|
10
10
|
isContinuationStopped?: (sessionID: string) => boolean;
|
|
11
|
-
shouldSkipContinuation?: (sessionID: string) => boolean;
|
|
12
11
|
agentOverrides?: AgentOverrides;
|
|
13
12
|
/** Enable auto-commit after each atomic task completion (default: true) */
|
|
14
13
|
autoCommit?: boolean;
|
|
@@ -29,5 +28,4 @@ export interface SessionState {
|
|
|
29
28
|
promptFailureCount: number;
|
|
30
29
|
lastFailureAt?: number;
|
|
31
30
|
pendingRetryTimer?: ReturnType<typeof setTimeout>;
|
|
32
|
-
waitingForFinalWaveApproval?: boolean;
|
|
33
31
|
}
|
|
@@ -3,8 +3,4 @@ export declare function buildOrchestratorReminder(planName: string, progress: {
|
|
|
3
3
|
total: number;
|
|
4
4
|
completed: number;
|
|
5
5
|
}, sessionId: string, autoCommit?: boolean, includeCompletionGate?: boolean): string;
|
|
6
|
-
export declare function buildFinalWaveApprovalReminder(planName: string, progress: {
|
|
7
|
-
total: number;
|
|
8
|
-
completed: number;
|
|
9
|
-
}, sessionId: string): string;
|
|
10
6
|
export declare function buildStandaloneVerificationReminder(sessionId: string): string;
|
|
@@ -9,11 +9,4 @@ export interface AutoSlashCommandHookOptions {
|
|
|
9
9
|
export declare function createAutoSlashCommandHook(options?: AutoSlashCommandHookOptions): {
|
|
10
10
|
"chat.message": (input: AutoSlashCommandHookInput, output: AutoSlashCommandHookOutput) => Promise<void>;
|
|
11
11
|
"command.execute.before": (input: CommandExecuteBeforeInput, output: CommandExecuteBeforeOutput) => Promise<void>;
|
|
12
|
-
event: ({ event, }: {
|
|
13
|
-
event: {
|
|
14
|
-
type: string;
|
|
15
|
-
properties?: unknown;
|
|
16
|
-
};
|
|
17
|
-
}) => Promise<void>;
|
|
18
|
-
dispose: () => void;
|
|
19
12
|
};
|
|
@@ -3,8 +3,6 @@ export { getLocalDevVersion } from "./checker/local-dev-version";
|
|
|
3
3
|
export { findPluginEntry } from "./checker/plugin-entry";
|
|
4
4
|
export type { PluginEntryInfo } from "./checker/plugin-entry";
|
|
5
5
|
export { getCachedVersion } from "./checker/cached-version";
|
|
6
|
-
export { updatePinnedVersion } from "./checker/pinned-version-updater";
|
|
6
|
+
export { updatePinnedVersion, revertPinnedVersion } from "./checker/pinned-version-updater";
|
|
7
7
|
export { getLatestVersion } from "./checker/latest-version";
|
|
8
8
|
export { checkForUpdate } from "./checker/check-for-update";
|
|
9
|
-
export { syncCachePackageJsonToIntent } from "./checker/sync-package-json";
|
|
10
|
-
export type { SyncResult } from "./checker/sync-package-json";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const PACKAGE_NAME = "openagent-labforge";
|
|
2
|
-
export declare const NPM_REGISTRY_URL
|
|
1
|
+
export declare const PACKAGE_NAME = "@bohuyeshan/openagent-labforge-core";
|
|
2
|
+
export declare const NPM_REGISTRY_URL: string;
|
|
3
3
|
export declare const NPM_FETCH_TIMEOUT = 5000;
|
|
4
4
|
export declare const CACHE_DIR: string;
|
|
5
5
|
export declare const VERSION_FILE: string;
|
|
@@ -1,6 +1,2 @@
|
|
|
1
1
|
import type { BackgroundManager } from "../../features/background-agent";
|
|
2
|
-
|
|
3
|
-
export declare function createCompactionContextInjector(options?: {
|
|
4
|
-
ctx?: CompactionContextClient;
|
|
5
|
-
backgroundManager?: BackgroundManager;
|
|
6
|
-
}): CompactionContextInjector;
|
|
2
|
+
export declare function createCompactionContextInjector(backgroundManager?: BackgroundManager): (sessionID?: string) => string;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
type ModelCacheStateLike = {
|
|
3
|
+
anthropicContext1MEnabled: boolean;
|
|
4
|
+
};
|
|
5
|
+
export declare function createContextWindowMonitorHook(_ctx: PluginInput, modelCacheState?: ModelCacheStateLike): {
|
|
4
6
|
"tool.execute.after": (input: {
|
|
5
7
|
tool: string;
|
|
6
8
|
sessionID: string;
|
|
@@ -17,3 +19,4 @@ export declare function createContextWindowMonitorHook(_ctx: PluginInput, modelC
|
|
|
17
19
|
};
|
|
18
20
|
}) => Promise<void>;
|
|
19
21
|
};
|
|
22
|
+
export {};
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -27,7 +27,6 @@ export { createCategorySkillReminderHook } from "./category-skill-reminder";
|
|
|
27
27
|
export { createRalphLoopHook, type RalphLoopHook } from "./ralph-loop";
|
|
28
28
|
export { createNoSisyphusGptHook } from "./no-sisyphus-gpt";
|
|
29
29
|
export { createNoHephaestusNonGptHook } from "./no-hephaestus-non-gpt";
|
|
30
|
-
export { createGptPermissionContinuationHook, type GptPermissionContinuationHook } from "./gpt-permission-continuation";
|
|
31
30
|
export { createAutoSlashCommandHook } from "./auto-slash-command";
|
|
32
31
|
export { createEditErrorRecoveryHook } from "./edit-error-recovery";
|
|
33
32
|
export { createPrometheusMdOnlyHook } from "./prometheus-md-only";
|
|
@@ -48,4 +47,3 @@ export { createWriteExistingFileGuardHook } from "./write-existing-file-guard";
|
|
|
48
47
|
export { createHashlineReadEnhancerHook } from "./hashline-read-enhancer";
|
|
49
48
|
export { createJsonErrorRecoveryHook, JSON_ERROR_TOOL_EXCLUDE_LIST, JSON_ERROR_PATTERNS, JSON_ERROR_REMINDER } from "./json-error-recovery";
|
|
50
49
|
export { createReadImageResizerHook } from "./read-image-resizer";
|
|
51
|
-
export { createDelegateTaskEnglishDirectiveHook } from "./delegate-task-english-directive";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
+
import type { OhMyOpenCodeConfig } from "../../config";
|
|
2
3
|
import type { ContextCollector } from "../../features/context-injector";
|
|
3
|
-
export declare function createKeywordDetectorHook(ctx: PluginInput, _collector?: ContextCollector): {
|
|
4
|
+
export declare function createKeywordDetectorHook(ctx: PluginInput, _collector?: ContextCollector, pluginConfig?: OhMyOpenCodeConfig): {
|
|
4
5
|
"chat.message": (input: {
|
|
5
6
|
sessionID: string;
|
|
6
7
|
agent?: string;
|
|
@@ -9,7 +10,6 @@ export declare function createKeywordDetectorHook(ctx: PluginInput, _collector?:
|
|
|
9
10
|
modelID: string;
|
|
10
11
|
};
|
|
11
12
|
messageID?: string;
|
|
12
|
-
variant?: string;
|
|
13
13
|
}, output: {
|
|
14
14
|
message: Record<string, unknown>;
|
|
15
15
|
parts: Array<{
|