@bohuyeshan/openagent-labforge-core 3.11.1 → 3.11.3
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 +34 -27
- package/README.ko.md +34 -27
- package/README.md +245 -188
- package/README.ru.md +28 -21
- package/README.zh-cn.md +245 -188
- package/bin/platform.test.ts +21 -20
- 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-pipeline-operator.d.ts +1 -1
- package/dist/agents/builtin-agents/general-agents.d.ts +1 -0
- package/dist/agents/dynamic-agent-prompt-builder.d.ts +2 -0
- package/dist/agents/env-context.d.ts +1 -1
- package/dist/agents/index.d.ts +1 -0
- package/dist/agents/metis.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/types.d.ts +1 -1
- package/dist/cli/config-manager/bun-install.d.ts +6 -1
- package/dist/cli/config-manager/plugin-name-with-version.d.ts +1 -1
- package/dist/cli/doctor/constants.d.ts +1 -1
- package/dist/cli/index.js +763 -467
- package/dist/cli/install-validators.d.ts +1 -0
- package/dist/cli/model-fallback-types.d.ts +1 -0
- package/dist/cli/openai-only-model-catalog.d.ts +3 -0
- package/dist/cli/run/index.d.ts +1 -0
- package/dist/cli/run/model-resolver.d.ts +4 -0
- package/dist/cli/run/types.d.ts +1 -0
- package/dist/cli/types.d.ts +3 -0
- package/dist/config/schema/agent-names.d.ts +3 -1
- package/dist/config/schema/background-task.d.ts +2 -0
- package/dist/config/schema/git-env-prefix.d.ts +5 -0
- package/dist/config/schema/git-master.d.ts +1 -0
- package/dist/config/schema/hooks.d.ts +2 -0
- package/dist/config/schema/oh-my-opencode-config.d.ts +54 -1
- package/dist/config/schema.d.ts +1 -0
- package/dist/create-hooks.d.ts +13 -0
- package/dist/features/background-agent/compaction-aware-message-resolver.d.ts +16 -1
- package/dist/features/background-agent/constants.d.ts +1 -1
- package/dist/features/background-agent/manager.d.ts +20 -4
- package/dist/features/background-agent/process-cleanup.d.ts +1 -1
- package/dist/features/background-agent/remove-task-toast-tracking.d.ts +1 -0
- package/dist/features/background-agent/subagent-spawn-limits.d.ts +23 -0
- package/dist/features/background-agent/task-history.d.ts +1 -0
- package/dist/features/background-agent/task-poller.d.ts +1 -0
- package/dist/features/background-agent/types.d.ts +4 -0
- package/dist/features/claude-code-agent-loader/claude-model-mapper.d.ts +4 -0
- package/dist/features/claude-code-agent-loader/loader.d.ts +3 -3
- package/dist/features/claude-code-agent-loader/types.d.ts +8 -1
- 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/opencode-skill-loader/git-master-template-injection.d.ts +1 -1
- package/dist/features/skill-mcp-manager/types.d.ts +4 -0
- package/dist/features/tmux-subagent/index.d.ts +1 -0
- package/dist/features/tmux-subagent/manager.d.ts +5 -0
- package/dist/features/tmux-subagent/pane-state-parser.d.ts +8 -0
- package/dist/features/tmux-subagent/tracked-session-state.d.ts +8 -0
- package/dist/features/tmux-subagent/types.d.ts +2 -0
- package/dist/hooks/atlas/boulder-session-lineage.d.ts +6 -0
- package/dist/hooks/atlas/final-wave-approval-gate.d.ts +4 -0
- package/dist/hooks/atlas/idle-event.d.ts +8 -0
- package/dist/hooks/atlas/resolve-active-boulder-session.d.ts +11 -0
- package/dist/hooks/atlas/tool-execute-after.d.ts +2 -0
- package/dist/hooks/atlas/types.d.ts +2 -0
- package/dist/hooks/atlas/verification-reminders.d.ts +4 -0
- package/dist/hooks/auto-slash-command/hook.d.ts +7 -0
- package/dist/hooks/auto-slash-command/processed-command-store.d.ts +7 -0
- package/dist/hooks/auto-update-checker/checker/sync-package-json.d.ts +7 -0
- package/dist/hooks/auto-update-checker/checker.d.ts +3 -1
- 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/compaction-context-prompt.d.ts +1 -0
- package/dist/hooks/compaction-context-injector/constants.d.ts +5 -0
- package/dist/hooks/compaction-context-injector/hook.d.ts +5 -1
- package/dist/hooks/compaction-context-injector/recovery-prompt-config.d.ts +6 -0
- package/dist/hooks/compaction-context-injector/recovery.d.ts +6 -0
- package/dist/hooks/compaction-context-injector/session-id.d.ts +2 -0
- package/dist/hooks/compaction-context-injector/session-prompt-config-resolver.d.ts +16 -0
- package/dist/hooks/compaction-context-injector/tail-monitor.d.ts +13 -0
- package/dist/hooks/compaction-context-injector/types.d.ts +43 -0
- package/dist/hooks/compaction-context-injector/validated-model.d.ts +13 -0
- package/dist/hooks/context-window-monitor.d.ts +2 -5
- package/dist/hooks/delegate-task-english-directive/hook.d.ts +14 -0
- package/dist/hooks/delegate-task-english-directive/index.d.ts +1 -0
- package/dist/hooks/gpt-permission-continuation/assistant-message.d.ts +23 -0
- package/dist/hooks/gpt-permission-continuation/constants.d.ts +4 -0
- package/dist/hooks/gpt-permission-continuation/detector.d.ts +1 -0
- package/dist/hooks/gpt-permission-continuation/handler.d.ts +12 -0
- package/dist/hooks/gpt-permission-continuation/index.d.ts +13 -0
- package/dist/hooks/gpt-permission-continuation/session-state.d.ts +15 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/keyword-detector/hook.d.ts +1 -0
- package/dist/hooks/preemptive-compaction.d.ts +2 -5
- package/dist/hooks/ralph-loop/pending-verification-handler.d.ts +16 -0
- package/dist/hooks/runtime-fallback/fallback-bootstrap-model.d.ts +10 -0
- package/dist/hooks/runtime-fallback/fallback-retry-dispatcher.d.ts +11 -0
- package/dist/hooks/runtime-fallback/hook.d.ts +2 -3
- package/dist/hooks/runtime-fallback/last-user-retry-parts.d.ts +4 -0
- package/dist/hooks/runtime-fallback/message-update-handler.d.ts +1 -2
- package/dist/hooks/runtime-fallback/retry-model-payload.d.ts +7 -0
- package/dist/hooks/runtime-fallback/session-messages.d.ts +9 -0
- package/dist/hooks/runtime-fallback/session-status-handler.d.ts +3 -0
- package/dist/hooks/runtime-fallback/types.d.ts +57 -3
- package/dist/hooks/runtime-fallback/visible-assistant-response.d.ts +3 -0
- package/dist/hooks/session-notification-content.d.ts +30 -0
- package/dist/hooks/session-notification-scheduler.d.ts +5 -3
- package/dist/hooks/session-notification.d.ts +2 -0
- package/dist/hooks/start-work/index.d.ts +1 -1
- package/dist/hooks/start-work/worktree-detector.d.ts +7 -0
- package/dist/hooks/todo-continuation-enforcer/constants.d.ts +6 -2
- package/dist/hooks/todo-continuation-enforcer/handler.d.ts +1 -0
- package/dist/hooks/todo-continuation-enforcer/idle-event.d.ts +1 -0
- package/dist/hooks/todo-continuation-enforcer/session-state.d.ts +10 -1
- package/dist/hooks/todo-continuation-enforcer/stagnation-detection.d.ts +6 -0
- package/dist/hooks/todo-continuation-enforcer/types.d.ts +5 -0
- package/dist/hooks/tool-output-truncator.d.ts +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +10581 -7245
- package/dist/openagent-labforge.schema.json +70 -4
- package/dist/plugin/hooks/create-continuation-hooks.d.ts +2 -1
- package/dist/plugin/hooks/create-core-hooks.d.ts +1 -0
- package/dist/plugin/hooks/create-session-hooks.d.ts +2 -1
- package/dist/plugin/normalize-tool-arg-schemas.d.ts +2 -0
- package/dist/plugin/ultrawork-model-override.d.ts +1 -15
- package/dist/plugin/ultrawork-variant-availability.d.ts +6 -0
- package/dist/plugin-dispose.d.ts +10 -0
- package/dist/plugin-handlers/agent-override-protection.d.ts +3 -0
- package/dist/plugin-state.d.ts +5 -0
- package/dist/shared/compaction-agent-config-checkpoint.d.ts +11 -0
- package/dist/shared/context-limit-resolver.d.ts +5 -0
- package/dist/shared/data-path.d.ts +2 -2
- package/dist/shared/dynamic-truncator.d.ts +4 -7
- package/dist/shared/external-plugin-detector.d.ts +1 -1
- package/dist/shared/fallback-chain-from-models.d.ts +3 -0
- package/dist/shared/index.d.ts +3 -0
- package/dist/shared/model-error-classifier.d.ts +2 -1
- package/dist/shared/opencode-command-dirs.d.ts +3 -0
- package/dist/shared/plugin-identity.d.ts +7 -0
- package/dist/shared/question-denied-session-permission.d.ts +6 -0
- package/dist/shared/retry-status-utils.d.ts +2 -0
- package/dist/shared/system-directive.d.ts +6 -5
- package/dist/shared/vision-capable-models-cache.d.ts +4 -0
- package/dist/tools/call-omo-agent/background-executor.d.ts +2 -1
- package/dist/tools/call-omo-agent/constants.d.ts +1 -1
- package/dist/tools/call-omo-agent/sync-executor.d.ts +11 -3
- package/dist/tools/call-omo-agent/tools.d.ts +2 -1
- package/dist/tools/delegate-task/cancel-unstable-agent-task.d.ts +2 -0
- package/dist/tools/delegate-task/model-selection.d.ts +1 -0
- package/dist/tools/delegate-task/model-string-parser.d.ts +1 -3
- package/dist/tools/look-at/multimodal-fallback-chain.d.ts +4 -0
- package/dist/tools/lsp/constants.d.ts +1 -0
- package/dist/tools/lsp/directory-diagnostics.d.ts +1 -0
- package/dist/tools/lsp/lsp-client-transport.d.ts +4 -2
- package/dist/tools/lsp/lsp-client-wrapper.d.ts +2 -1
- package/dist/tools/lsp/server-path-bases.d.ts +1 -0
- package/generated/skills-bundles/catalog.json +282 -39
- package/generated/skills-bundles/full/INDEX.md +38 -10
- package/generated/skills-bundles/full/skills/data-analysis/experiment-monitoring/auto-claude__monitor-experiment/SKILL.md +63 -0
- package/generated/skills-bundles/full/skills/data-analysis/experiment-ops/auto-claude__run-experiment/SKILL.md +112 -0
- package/generated/skills-bundles/full/skills/data-analysis/optimization/auto-claude__dse-loop/SKILL.md +279 -0
- package/generated/skills-bundles/full/skills/data-analysis/statistics/auto-claude__analyze-results/SKILL.md +47 -0
- package/generated/skills-bundles/full/skills/data-analysis/visualization/auto-claude__paper-figure/SKILL.md +281 -0
- package/generated/skills-bundles/full/skills/productivity/communication/auto-claude__feishu-notify/SKILL.md +154 -0
- package/generated/skills-bundles/full/skills/productivity/visual-design/auto-claude__pixel-art/SKILL.md +138 -0
- package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-compile/SKILL.md +252 -0
- package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-plan/SKILL.md +254 -0
- package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-write/SKILL.md +310 -0
- package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-write/templates/iclr2026.tex +84 -0
- package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-write/templates/icml2025.tex +87 -0
- package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-write/templates/math_commands.tex +48 -0
- package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-write/templates/neurips2025.tex +80 -0
- package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-writing/SKILL.md +255 -0
- package/generated/skills-bundles/full/skills/research/literature-and-web-search/auto-claude__arxiv/SKILL.md +133 -0
- package/generated/skills-bundles/full/skills/research/literature-and-web-search/auto-claude__novelty-check/SKILL.md +87 -0
- package/generated/skills-bundles/full/skills/research/literature-and-web-search/auto-claude__research-lit/SKILL.md +194 -0
- package/generated/skills-bundles/full/skills/research/research-ideation/auto-claude__idea-creator/SKILL.md +228 -0
- package/generated/skills-bundles/full/skills/research/research-ideation/auto-claude__idea-discovery/SKILL.md +186 -0
- package/generated/skills-bundles/full/skills/research/research-ideation/auto-claude__idea-discovery-robot/SKILL.md +351 -0
- package/generated/skills-bundles/full/skills/research/research-ideation/auto-claude__research-pipeline/SKILL.md +174 -0
- package/generated/skills-bundles/full/skills/research/theory-writing/auto-claude__proof-writer/SKILL.md +224 -0
- package/generated/skills-bundles/paper/INDEX.md +40 -0
- package/generated/skills-bundles/paper/skills/data-analysis/experiment-monitoring/auto-claude__monitor-experiment/SKILL.md +63 -0
- package/generated/skills-bundles/paper/skills/data-analysis/experiment-ops/auto-claude__run-experiment/SKILL.md +112 -0
- package/generated/skills-bundles/paper/skills/data-analysis/optimization/auto-claude__dse-loop/SKILL.md +279 -0
- package/generated/skills-bundles/paper/skills/data-analysis/statistics/auto-claude__analyze-results/SKILL.md +47 -0
- package/generated/skills-bundles/paper/skills/data-analysis/visualization/auto-claude__paper-figure/SKILL.md +281 -0
- package/generated/skills-bundles/paper/skills/productivity/communication/auto-claude__feishu-notify/SKILL.md +154 -0
- package/generated/skills-bundles/paper/skills/productivity/visual-design/auto-claude__pixel-art/SKILL.md +138 -0
- package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-compile/SKILL.md +252 -0
- package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-plan/SKILL.md +254 -0
- package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-write/SKILL.md +310 -0
- package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-write/templates/iclr2026.tex +84 -0
- package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-write/templates/icml2025.tex +87 -0
- package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-write/templates/math_commands.tex +48 -0
- package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-write/templates/neurips2025.tex +80 -0
- package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-writing/SKILL.md +255 -0
- package/generated/skills-bundles/paper/skills/research/literature-and-web-search/auto-claude__arxiv/SKILL.md +133 -0
- package/generated/skills-bundles/paper/skills/research/literature-and-web-search/auto-claude__novelty-check/SKILL.md +87 -0
- package/generated/skills-bundles/paper/skills/research/literature-and-web-search/auto-claude__research-lit/SKILL.md +194 -0
- package/generated/skills-bundles/paper/skills/research/research-ideation/auto-claude__idea-creator/SKILL.md +228 -0
- package/generated/skills-bundles/paper/skills/research/research-ideation/auto-claude__idea-discovery/SKILL.md +186 -0
- package/generated/skills-bundles/paper/skills/research/research-ideation/auto-claude__idea-discovery-robot/SKILL.md +351 -0
- package/generated/skills-bundles/paper/skills/research/research-ideation/auto-claude__research-pipeline/SKILL.md +174 -0
- package/generated/skills-bundles/paper/skills/research/theory-writing/auto-claude__proof-writer/SKILL.md +224 -0
- package/package.json +21 -21
- package/generated/skills-bundles/full/skills/engineering/virtualization/skills-main__virtualbox/LICENSE.txt +0 -21
- package/generated/skills-bundles/full/skills/engineering/virtualization/skills-main__virtualbox/SKILL.md +0 -615
- package/generated/skills-bundles/full/skills/engineering/virtualization/skills-main__virtualbox/_meta.json +0 -11
- package/generated/skills-bundles/full/skills/engineering/virtualization/skills-main__virtualbox/scripts/virtualbox-utils.ts +0 -586
- package/generated/skills-bundles/full/skills/productivity/voice-and-accessibility/skills-main__voiceclaw/.clawhubsafe +0 -0
- package/generated/skills-bundles/full/skills/productivity/voice-and-accessibility/skills-main__voiceclaw/LICENSE +0 -21
- package/generated/skills-bundles/full/skills/productivity/voice-and-accessibility/skills-main__voiceclaw/README.md +0 -127
- package/generated/skills-bundles/full/skills/productivity/voice-and-accessibility/skills-main__voiceclaw/SECURITY.md +0 -68
- package/generated/skills-bundles/full/skills/productivity/voice-and-accessibility/skills-main__voiceclaw/SKILL.md +0 -141
- package/generated/skills-bundles/full/skills/productivity/voice-and-accessibility/skills-main__voiceclaw/_meta.json +0 -11
- package/generated/skills-bundles/full/skills/productivity/voice-and-accessibility/skills-main__voiceclaw/scripts/speak.sh +0 -52
- package/generated/skills-bundles/full/skills/productivity/voice-and-accessibility/skills-main__voiceclaw/scripts/transcribe.sh +0 -50
- package/generated/skills-bundles/full/skills/research/media-search/skills-main__youtube-search/LICENSE.txt +0 -21
- package/generated/skills-bundles/full/skills/research/media-search/skills-main__youtube-search/SKILL.md +0 -416
- package/generated/skills-bundles/full/skills/research/media-search/skills-main__youtube-search/_meta.json +0 -11
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://raw.githubusercontent.com/
|
|
3
|
+
"$id": "https://raw.githubusercontent.com/bohuyeshan/openagent-labforge/dev/assets/openagent-labforge.schema.json",
|
|
4
4
|
"title": "OpenAgent Labforge Configuration",
|
|
5
|
-
"description": "Configuration schema for @
|
|
5
|
+
"description": "Configuration schema for @bohuyeshan/openagent-labforge-core",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"properties": {
|
|
8
8
|
"$schema": {
|
|
@@ -131,7 +131,58 @@
|
|
|
131
131
|
"disabled_hooks": {
|
|
132
132
|
"type": "array",
|
|
133
133
|
"items": {
|
|
134
|
-
"type": "string"
|
|
134
|
+
"type": "string",
|
|
135
|
+
"enum": [
|
|
136
|
+
"gpt-permission-continuation",
|
|
137
|
+
"todo-continuation-enforcer",
|
|
138
|
+
"context-window-monitor",
|
|
139
|
+
"session-recovery",
|
|
140
|
+
"session-notification",
|
|
141
|
+
"comment-checker",
|
|
142
|
+
"tool-output-truncator",
|
|
143
|
+
"question-label-truncator",
|
|
144
|
+
"directory-agents-injector",
|
|
145
|
+
"directory-readme-injector",
|
|
146
|
+
"empty-task-response-detector",
|
|
147
|
+
"think-mode",
|
|
148
|
+
"model-fallback",
|
|
149
|
+
"anthropic-context-window-limit-recovery",
|
|
150
|
+
"preemptive-compaction",
|
|
151
|
+
"rules-injector",
|
|
152
|
+
"background-notification",
|
|
153
|
+
"auto-update-checker",
|
|
154
|
+
"startup-toast",
|
|
155
|
+
"keyword-detector",
|
|
156
|
+
"agent-usage-reminder",
|
|
157
|
+
"non-interactive-env",
|
|
158
|
+
"interactive-bash-session",
|
|
159
|
+
"thinking-block-validator",
|
|
160
|
+
"ralph-loop",
|
|
161
|
+
"category-skill-reminder",
|
|
162
|
+
"compaction-context-injector",
|
|
163
|
+
"compaction-todo-preserver",
|
|
164
|
+
"claude-code-hooks",
|
|
165
|
+
"auto-slash-command",
|
|
166
|
+
"edit-error-recovery",
|
|
167
|
+
"json-error-recovery",
|
|
168
|
+
"delegate-task-retry",
|
|
169
|
+
"prometheus-md-only",
|
|
170
|
+
"sisyphus-junior-notepad",
|
|
171
|
+
"no-sisyphus-gpt",
|
|
172
|
+
"no-hephaestus-non-gpt",
|
|
173
|
+
"start-work",
|
|
174
|
+
"atlas",
|
|
175
|
+
"unstable-agent-babysitter",
|
|
176
|
+
"task-resume-info",
|
|
177
|
+
"stop-continuation-guard",
|
|
178
|
+
"tasks-todowrite-disabler",
|
|
179
|
+
"runtime-fallback",
|
|
180
|
+
"write-existing-file-guard",
|
|
181
|
+
"anthropic-effort",
|
|
182
|
+
"hashline-read-enhancer",
|
|
183
|
+
"read-image-resizer",
|
|
184
|
+
"delegate-task-english-directive"
|
|
185
|
+
]
|
|
135
186
|
}
|
|
136
187
|
},
|
|
137
188
|
"disabled_commands": {
|
|
@@ -3785,6 +3836,16 @@
|
|
|
3785
3836
|
"minimum": 0
|
|
3786
3837
|
}
|
|
3787
3838
|
},
|
|
3839
|
+
"maxDepth": {
|
|
3840
|
+
"type": "integer",
|
|
3841
|
+
"minimum": 1,
|
|
3842
|
+
"maximum": 9007199254740991
|
|
3843
|
+
},
|
|
3844
|
+
"maxDescendants": {
|
|
3845
|
+
"type": "integer",
|
|
3846
|
+
"minimum": 1,
|
|
3847
|
+
"maximum": 9007199254740991
|
|
3848
|
+
},
|
|
3788
3849
|
"staleTimeoutMs": {
|
|
3789
3850
|
"type": "number",
|
|
3790
3851
|
"minimum": 60000
|
|
@@ -3875,11 +3936,16 @@
|
|
|
3875
3936
|
"include_co_authored_by": {
|
|
3876
3937
|
"default": true,
|
|
3877
3938
|
"type": "boolean"
|
|
3939
|
+
},
|
|
3940
|
+
"git_env_prefix": {
|
|
3941
|
+
"default": "GIT_MASTER=1",
|
|
3942
|
+
"type": "string"
|
|
3878
3943
|
}
|
|
3879
3944
|
},
|
|
3880
3945
|
"required": [
|
|
3881
3946
|
"commit_footer",
|
|
3882
|
-
"include_co_authored_by"
|
|
3947
|
+
"include_co_authored_by",
|
|
3948
|
+
"git_env_prefix"
|
|
3883
3949
|
],
|
|
3884
3950
|
"additionalProperties": false
|
|
3885
3951
|
},
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { HookName, OhMyOpenCodeConfig } from "../../config";
|
|
2
2
|
import type { BackgroundManager } from "../../features/background-agent";
|
|
3
3
|
import type { PluginContext } from "../types";
|
|
4
|
-
import { createTodoContinuationEnforcer, createBackgroundNotificationHook, createStopContinuationGuardHook, createCompactionContextInjector, createCompactionTodoPreserverHook, createAtlasHook } from "../../hooks";
|
|
4
|
+
import { createGptPermissionContinuationHook, createTodoContinuationEnforcer, createBackgroundNotificationHook, createStopContinuationGuardHook, createCompactionContextInjector, createCompactionTodoPreserverHook, createAtlasHook } from "../../hooks";
|
|
5
5
|
import { createUnstableAgentBabysitter } from "../unstable-agent-babysitter";
|
|
6
6
|
export type ContinuationHooks = {
|
|
7
|
+
gptPermissionContinuation: ReturnType<typeof createGptPermissionContinuationHook> | null;
|
|
7
8
|
stopContinuationGuard: ReturnType<typeof createStopContinuationGuardHook> | null;
|
|
8
9
|
compactionContextInjector: ReturnType<typeof createCompactionContextInjector> | null;
|
|
9
10
|
compactionTodoPreserver: ReturnType<typeof createCompactionTodoPreserverHook> | null;
|
|
@@ -46,4 +46,5 @@ export declare function createCoreHooks(args: {
|
|
|
46
46
|
taskResumeInfo: ReturnType<typeof import("../../hooks").createTaskResumeInfoHook> | null;
|
|
47
47
|
anthropicEffort: ReturnType<typeof import("../../hooks/anthropic-effort").createAnthropicEffortHook> | null;
|
|
48
48
|
runtimeFallback: ReturnType<typeof import("../../hooks").createRuntimeFallbackHook> | null;
|
|
49
|
+
delegateTaskEnglishDirective: ReturnType<typeof import("../../hooks").createDelegateTaskEnglishDirectiveHook> | null;
|
|
49
50
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { OhMyOpenCodeConfig, HookName } from "../../config";
|
|
2
2
|
import type { ModelCacheState } from "../../plugin-state";
|
|
3
3
|
import type { PluginContext } from "../types";
|
|
4
|
-
import { createContextWindowMonitorHook, createSessionRecoveryHook, createSessionNotification, createThinkModeHook, createModelFallbackHook, createAnthropicContextWindowLimitRecoveryHook, createAutoUpdateCheckerHook, createAgentUsageReminderHook, createNonInteractiveEnvHook, createInteractiveBashSessionHook, createRalphLoopHook, createEditErrorRecoveryHook, createDelegateTaskRetryHook, createTaskResumeInfoHook, createStartWorkHook, createPrometheusMdOnlyHook, createSisyphusJuniorNotepadHook, createNoSisyphusGptHook, createNoHephaestusNonGptHook, createQuestionLabelTruncatorHook, createPreemptiveCompactionHook, createRuntimeFallbackHook } from "../../hooks";
|
|
4
|
+
import { createContextWindowMonitorHook, createSessionRecoveryHook, createSessionNotification, createThinkModeHook, createModelFallbackHook, createAnthropicContextWindowLimitRecoveryHook, createAutoUpdateCheckerHook, createAgentUsageReminderHook, createNonInteractiveEnvHook, createInteractiveBashSessionHook, createRalphLoopHook, createEditErrorRecoveryHook, createDelegateTaskRetryHook, createDelegateTaskEnglishDirectiveHook, createTaskResumeInfoHook, createStartWorkHook, createPrometheusMdOnlyHook, createSisyphusJuniorNotepadHook, createNoSisyphusGptHook, createNoHephaestusNonGptHook, createQuestionLabelTruncatorHook, createPreemptiveCompactionHook, createRuntimeFallbackHook } from "../../hooks";
|
|
5
5
|
import { createAnthropicEffortHook } from "../../hooks/anthropic-effort";
|
|
6
6
|
export type SessionHooks = {
|
|
7
7
|
contextWindowMonitor: ReturnType<typeof createContextWindowMonitorHook> | null;
|
|
@@ -27,6 +27,7 @@ export type SessionHooks = {
|
|
|
27
27
|
taskResumeInfo: ReturnType<typeof createTaskResumeInfoHook> | null;
|
|
28
28
|
anthropicEffort: ReturnType<typeof createAnthropicEffortHook> | null;
|
|
29
29
|
runtimeFallback: ReturnType<typeof createRuntimeFallbackHook> | null;
|
|
30
|
+
delegateTaskEnglishDirective: ReturnType<typeof createDelegateTaskEnglishDirectiveHook> | null;
|
|
30
31
|
};
|
|
31
32
|
export declare function createSessionHooks(args: {
|
|
32
33
|
ctx: PluginContext;
|
|
@@ -5,10 +5,6 @@ export type UltraworkOverrideResult = {
|
|
|
5
5
|
modelID?: string;
|
|
6
6
|
variant?: string;
|
|
7
7
|
};
|
|
8
|
-
/**
|
|
9
|
-
* Resolves the ultrawork model override config for the given agent and prompt text.
|
|
10
|
-
* Returns null if no override should be applied.
|
|
11
|
-
*/
|
|
12
8
|
export declare function resolveUltraworkOverride(pluginConfig: OhMyOpenCodeConfig, inputAgentName: string | undefined, output: {
|
|
13
9
|
message: Record<string, unknown>;
|
|
14
10
|
parts: Array<{
|
|
@@ -17,16 +13,6 @@ export declare function resolveUltraworkOverride(pluginConfig: OhMyOpenCodeConfi
|
|
|
17
13
|
[key: string]: unknown;
|
|
18
14
|
}>;
|
|
19
15
|
}, sessionID?: string): UltraworkOverrideResult | null;
|
|
20
|
-
/**
|
|
21
|
-
* Applies ultrawork model override using a deferred DB update strategy.
|
|
22
|
-
*
|
|
23
|
-
* Instead of directly mutating output.message.model (which would cause the TUI
|
|
24
|
-
* bottom bar to show the override model), this schedules a queueMicrotask that
|
|
25
|
-
* updates the message model directly in SQLite AFTER Session.updateMessage()
|
|
26
|
-
* saves the original model, but BEFORE loop() reads it for the API call.
|
|
27
|
-
*
|
|
28
|
-
* Result: API call uses opus, TUI bottom bar stays on sonnet.
|
|
29
|
-
*/
|
|
30
16
|
export declare function applyUltraworkModelOverrideOnMessage(pluginConfig: OhMyOpenCodeConfig, inputAgentName: string | undefined, output: {
|
|
31
17
|
message: Record<string, unknown>;
|
|
32
18
|
parts: Array<{
|
|
@@ -34,4 +20,4 @@ export declare function applyUltraworkModelOverrideOnMessage(pluginConfig: OhMyO
|
|
|
34
20
|
text?: string;
|
|
35
21
|
[key: string]: unknown;
|
|
36
22
|
}>;
|
|
37
|
-
}, tui: unknown, sessionID?: string, manualModelChangeDetected?: boolean): void
|
|
23
|
+
}, tui: unknown, sessionID?: string, manualModelChangeDetected?: boolean, client?: unknown): void | Promise<void>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type PluginDispose = () => Promise<void>;
|
|
2
|
+
export declare function createPluginDispose(args: {
|
|
3
|
+
backgroundManager: {
|
|
4
|
+
shutdown: () => void | Promise<void>;
|
|
5
|
+
};
|
|
6
|
+
skillMcpManager: {
|
|
7
|
+
disconnectAll: () => Promise<void>;
|
|
8
|
+
};
|
|
9
|
+
disposeHooks: () => void;
|
|
10
|
+
}): PluginDispose;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare function normalizeProtectedAgentName(agentName: string): string;
|
|
2
|
+
export declare function createProtectedAgentNameSet(agentNames: Iterable<string>): Set<string>;
|
|
3
|
+
export declare function filterProtectedAgentOverrides<TAgent>(agents: Record<string, TAgent>, protectedAgentNames: ReadonlySet<string>): Record<string, TAgent>;
|
package/dist/plugin-state.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
export type VisionCapableModel = {
|
|
2
|
+
providerID: string;
|
|
3
|
+
modelID: string;
|
|
4
|
+
};
|
|
1
5
|
export interface ModelCacheState {
|
|
2
6
|
modelContextLimitsCache: Map<string, number>;
|
|
7
|
+
visionCapableModelsCache?: Map<string, VisionCapableModel>;
|
|
3
8
|
anthropicContext1MEnabled: boolean;
|
|
4
9
|
}
|
|
5
10
|
export declare function createModelCacheState(): ModelCacheState;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type CompactionAgentConfigCheckpoint = {
|
|
2
|
+
agent?: string;
|
|
3
|
+
model?: {
|
|
4
|
+
providerID: string;
|
|
5
|
+
modelID: string;
|
|
6
|
+
};
|
|
7
|
+
tools?: Record<string, boolean>;
|
|
8
|
+
};
|
|
9
|
+
export declare function setCompactionAgentConfigCheckpoint(sessionID: string, checkpoint: CompactionAgentConfigCheckpoint): void;
|
|
10
|
+
export declare function getCompactionAgentConfigCheckpoint(sessionID: string): CompactionAgentConfigCheckpoint | undefined;
|
|
11
|
+
export declare function clearCompactionAgentConfigCheckpoint(sessionID: string): void;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type ContextLimitModelCacheState = {
|
|
2
|
+
anthropicContext1MEnabled: boolean;
|
|
3
|
+
modelContextLimitsCache?: Map<string, number>;
|
|
4
|
+
};
|
|
5
|
+
export declare function resolveActualContextLimit(providerID: string, modelID: string, modelCacheState?: ContextLimitModelCacheState): number | null;
|
|
@@ -19,8 +19,8 @@ export declare function getOpenCodeStorageDir(): string;
|
|
|
19
19
|
*/
|
|
20
20
|
export declare function getCacheDir(): string;
|
|
21
21
|
/**
|
|
22
|
-
* Returns the
|
|
23
|
-
* All platforms: ~/.cache/
|
|
22
|
+
* Returns the openagent-labforge cache directory.
|
|
23
|
+
* All platforms: ~/.cache/openagent-labforge
|
|
24
24
|
*/
|
|
25
25
|
export declare function getOmoOpenCodeCacheDir(): string;
|
|
26
26
|
/**
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
-
type
|
|
3
|
-
anthropicContext1MEnabled: boolean;
|
|
4
|
-
};
|
|
2
|
+
import { type ContextLimitModelCacheState } from "./context-limit-resolver";
|
|
5
3
|
export interface TruncationResult {
|
|
6
4
|
result: string;
|
|
7
5
|
truncated: boolean;
|
|
@@ -13,13 +11,13 @@ export interface TruncationOptions {
|
|
|
13
11
|
contextWindowLimit?: number;
|
|
14
12
|
}
|
|
15
13
|
export declare function truncateToTokenLimit(output: string, maxTokens: number, preserveHeaderLines?: number): TruncationResult;
|
|
16
|
-
export declare function getContextWindowUsage(ctx: PluginInput, sessionID: string, modelCacheState?:
|
|
14
|
+
export declare function getContextWindowUsage(ctx: PluginInput, sessionID: string, modelCacheState?: ContextLimitModelCacheState): Promise<{
|
|
17
15
|
usedTokens: number;
|
|
18
16
|
remainingTokens: number;
|
|
19
17
|
usagePercentage: number;
|
|
20
18
|
} | null>;
|
|
21
|
-
export declare function dynamicTruncate(ctx: PluginInput, sessionID: string, output: string, options?: TruncationOptions, modelCacheState?:
|
|
22
|
-
export declare function createDynamicTruncator(ctx: PluginInput, modelCacheState?:
|
|
19
|
+
export declare function dynamicTruncate(ctx: PluginInput, sessionID: string, output: string, options?: TruncationOptions, modelCacheState?: ContextLimitModelCacheState): Promise<TruncationResult>;
|
|
20
|
+
export declare function createDynamicTruncator(ctx: PluginInput, modelCacheState?: ContextLimitModelCacheState): {
|
|
23
21
|
truncate: (sessionID: string, output: string, options?: TruncationOptions) => Promise<TruncationResult>;
|
|
24
22
|
getUsage: (sessionID: string) => Promise<{
|
|
25
23
|
usedTokens: number;
|
|
@@ -28,4 +26,3 @@ export declare function createDynamicTruncator(ctx: PluginInput, modelCacheState
|
|
|
28
26
|
} | null>;
|
|
29
27
|
truncateSync: (output: string, maxTokens: number, preserveHeaderLines?: number) => TruncationResult;
|
|
30
28
|
};
|
|
31
|
-
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Detects external plugins that may conflict with
|
|
2
|
+
* Detects external plugins that may conflict with openagent-labforge features.
|
|
3
3
|
* Used to prevent crashes from concurrent notification plugins.
|
|
4
4
|
*/
|
|
5
5
|
export interface ExternalNotifierResult {
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { FallbackEntry } from "./model-requirements";
|
|
2
|
+
export declare function parseFallbackModelEntry(model: string, contextProviderID: string | undefined, defaultProviderID?: string): FallbackEntry | undefined;
|
|
3
|
+
export declare function buildFallbackChainFromModels(fallbackModels: string | string[] | undefined, contextProviderID: string | undefined, defaultProviderID?: string): FallbackEntry[] | undefined;
|
package/dist/shared/index.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ export type { ModelResolutionRequest, ModelResolutionProvenance, ModelResolution
|
|
|
37
37
|
export * from "./model-availability";
|
|
38
38
|
export * from "./fallback-model-availability";
|
|
39
39
|
export * from "./connected-providers-cache";
|
|
40
|
+
export * from "./context-limit-resolver";
|
|
40
41
|
export * from "./session-utils";
|
|
41
42
|
export * from "./tmux";
|
|
42
43
|
export * from "./model-suggestion-retry";
|
|
@@ -48,9 +49,11 @@ export * from "./safe-create-hook";
|
|
|
48
49
|
export * from "./truncate-description";
|
|
49
50
|
export * from "./opencode-storage-paths";
|
|
50
51
|
export * from "./opencode-message-dir";
|
|
52
|
+
export * from "./opencode-command-dirs";
|
|
51
53
|
export * from "./normalize-sdk-response";
|
|
52
54
|
export * from "./session-directory-resolver";
|
|
53
55
|
export * from "./prompt-tools";
|
|
54
56
|
export * from "./internal-initiator-marker";
|
|
55
57
|
export * from "./plugin-command-discovery";
|
|
56
58
|
export { SessionCategoryRegistry } from "./session-category-registry";
|
|
59
|
+
export * from "./plugin-identity";
|
|
@@ -26,6 +26,7 @@ export declare function hasMoreFallbacks(fallbackChain: FallbackEntry[], attempt
|
|
|
26
26
|
* Selects the best provider for a fallback entry.
|
|
27
27
|
* Priority:
|
|
28
28
|
* 1) First connected provider in the entry's provider preference order
|
|
29
|
-
* 2)
|
|
29
|
+
* 2) Preferred provider when connected (and entry providers are unavailable)
|
|
30
|
+
* 3) First provider listed in the fallback entry
|
|
30
31
|
*/
|
|
31
32
|
export declare function selectFallbackProvider(providers: string[], preferredProviderID?: string): string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const PLUGIN_NAME = "openagent-labforge";
|
|
2
|
+
export declare const LEGACY_PLUGIN_NAME = "openagent-labforge";
|
|
3
|
+
export declare const CONFIG_BASENAME = "openagent-labforge";
|
|
4
|
+
export declare const LEGACY_CONFIG_BASENAME = "openagent-labforge";
|
|
5
|
+
export declare const LOG_FILENAME = "openagent-labforge.log";
|
|
6
|
+
export declare const CACHE_DIR_NAME = "openagent-labforge";
|
|
7
|
+
export declare const LEGACY_CACHE_DIR_NAME = "openagent-labforge";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Unified system directive prefix for
|
|
2
|
+
* Unified system directive prefix for openagent-labforge internal messages.
|
|
3
3
|
* All system-generated messages should use this prefix for consistent filtering.
|
|
4
4
|
*
|
|
5
|
-
* Format: [SYSTEM DIRECTIVE:
|
|
5
|
+
* Format: [SYSTEM DIRECTIVE: openagent-labforge - {TYPE}]
|
|
6
6
|
*/
|
|
7
|
-
export declare const SYSTEM_DIRECTIVE_PREFIX = "[SYSTEM DIRECTIVE:
|
|
7
|
+
export declare const SYSTEM_DIRECTIVE_PREFIX = "[SYSTEM DIRECTIVE: openagent-labforge";
|
|
8
8
|
/**
|
|
9
9
|
* Creates a system directive header with the given type.
|
|
10
10
|
* @param type - The directive type (e.g., "TODO CONTINUATION", "RALPH LOOP")
|
|
11
|
-
* @returns Formatted directive string like "[SYSTEM DIRECTIVE:
|
|
11
|
+
* @returns Formatted directive string like "[SYSTEM DIRECTIVE: openagent-labforge - TODO CONTINUATION]"
|
|
12
12
|
*/
|
|
13
13
|
export declare function createSystemDirective(type: string): string;
|
|
14
14
|
/**
|
|
15
|
-
* Checks if a message starts with the
|
|
15
|
+
* Checks if a message starts with the openagent-labforge system directive prefix.
|
|
16
16
|
* Used by keyword-detector and other hooks to skip system-generated messages.
|
|
17
17
|
* @param text - The message text to check
|
|
18
18
|
* @returns true if the message is a system directive
|
|
@@ -34,6 +34,7 @@ export declare function hasSystemReminder(text: string): boolean;
|
|
|
34
34
|
export declare function removeSystemReminders(text: string): string;
|
|
35
35
|
export declare const SystemDirectiveTypes: {
|
|
36
36
|
readonly TODO_CONTINUATION: "TODO CONTINUATION";
|
|
37
|
+
readonly TOOL_INTENT_RECOVERY: "TOOL INTENT RECOVERY";
|
|
37
38
|
readonly RALPH_LOOP: "RALPH LOOP";
|
|
38
39
|
readonly BOULDER_CONTINUATION: "BOULDER CONTINUATION";
|
|
39
40
|
readonly DELEGATION_REQUIRED: "DELEGATION REQUIRED";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { VisionCapableModel } from "../plugin-state";
|
|
2
|
+
export declare function setVisionCapableModelsCache(cache: Map<string, VisionCapableModel>): void;
|
|
3
|
+
export declare function readVisionCapableModelsCache(): VisionCapableModel[];
|
|
4
|
+
export declare function clearVisionCapableModelsCache(): void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { CallOmoAgentArgs } from "./types";
|
|
2
2
|
import type { BackgroundManager } from "../../features/background-agent";
|
|
3
3
|
import type { PluginInput } from "@opencode-ai/plugin";
|
|
4
|
+
import type { FallbackEntry } from "../../shared/model-requirements";
|
|
4
5
|
export declare function executeBackground(args: CallOmoAgentArgs, toolContext: {
|
|
5
6
|
sessionID: string;
|
|
6
7
|
messageID: string;
|
|
@@ -10,4 +11,4 @@ export declare function executeBackground(args: CallOmoAgentArgs, toolContext: {
|
|
|
10
11
|
title?: string;
|
|
11
12
|
metadata?: Record<string, unknown>;
|
|
12
13
|
}) => void;
|
|
13
|
-
}, manager: BackgroundManager, client: PluginInput["client"]): Promise<string>;
|
|
14
|
+
}, manager: BackgroundManager, client: PluginInput["client"], fallbackChain?: FallbackEntry[]): Promise<string>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const ALLOWED_AGENTS: readonly ["explore", "librarian", "oracle", "hephaestus", "metis", "momus", "multimodal-looker"];
|
|
2
|
-
export declare const CALL_OMO_AGENT_DESCRIPTION = "Spawn explore/librarian agent. run_in_background REQUIRED (true=async with task_id, false=sync).\n\nAvailable: {agents}\n\nPass `session_id=<id>` to continue previous agent with full context. Prompts MUST be in English. Use `background_output` for async results.";
|
|
2
|
+
export declare const CALL_OMO_AGENT_DESCRIPTION = "Spawn explore/librarian agent. run_in_background REQUIRED (true=async with task_id, false=sync).\n\nAvailable: {agents}\n\nPass `session_id=<id>` to continue previous agent with full context. Nested subagent depth is tracked automatically and blocked past the configured limit. Prompts MUST be in English. Use `background_output` for async results.";
|
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
import type { CallOmoAgentArgs } from "./types";
|
|
2
2
|
import type { PluginInput } from "@opencode-ai/plugin";
|
|
3
|
-
import {
|
|
3
|
+
import { clearSessionFallbackChain, setSessionFallbackChain } from "../../hooks/model-fallback/hook";
|
|
4
|
+
import type { FallbackEntry } from "../../shared/model-requirements";
|
|
4
5
|
import { waitForCompletion } from "./completion-poller";
|
|
5
6
|
import { processMessages } from "./message-processor";
|
|
7
|
+
import { createOrGetSession } from "./session-creator";
|
|
6
8
|
type ExecuteSyncDeps = {
|
|
7
9
|
createOrGetSession: typeof createOrGetSession;
|
|
8
10
|
waitForCompletion: typeof waitForCompletion;
|
|
9
11
|
processMessages: typeof processMessages;
|
|
12
|
+
setSessionFallbackChain: typeof setSessionFallbackChain;
|
|
13
|
+
clearSessionFallbackChain: typeof clearSessionFallbackChain;
|
|
14
|
+
};
|
|
15
|
+
type SpawnReservation = {
|
|
16
|
+
commit: () => number;
|
|
17
|
+
rollback: () => void;
|
|
10
18
|
};
|
|
11
19
|
export declare function executeSync(args: CallOmoAgentArgs, toolContext: {
|
|
12
20
|
sessionID: string;
|
|
@@ -16,6 +24,6 @@ export declare function executeSync(args: CallOmoAgentArgs, toolContext: {
|
|
|
16
24
|
metadata?: (input: {
|
|
17
25
|
title?: string;
|
|
18
26
|
metadata?: Record<string, unknown>;
|
|
19
|
-
}) => void
|
|
20
|
-
}, ctx: PluginInput, deps?: ExecuteSyncDeps): Promise<string>;
|
|
27
|
+
}) => void | Promise<void>;
|
|
28
|
+
}, ctx: PluginInput, deps?: ExecuteSyncDeps, fallbackChain?: FallbackEntry[], spawnReservation?: SpawnReservation): Promise<string>;
|
|
21
29
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { type PluginInput, type ToolDefinition } from "@opencode-ai/plugin";
|
|
2
2
|
import type { BackgroundManager } from "../../features/background-agent";
|
|
3
|
-
|
|
3
|
+
import type { CategoriesConfig, AgentOverrides } from "../../config/schema";
|
|
4
|
+
export declare function createCallOmoAgent(ctx: PluginInput, backgroundManager: BackgroundManager, disabledAgents?: string[], agentOverrides?: AgentOverrides, userCategories?: CategoriesConfig): ToolDefinition;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { FallbackEntry } from "../../shared/model-requirements";
|
|
2
2
|
export declare function resolveModelForDelegateTask(input: {
|
|
3
3
|
userModel?: string;
|
|
4
|
+
userFallbackModels?: string[];
|
|
4
5
|
categoryDefaultModel?: string;
|
|
5
6
|
fallbackChain?: FallbackEntry[];
|
|
6
7
|
availableModels: Set<string>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { FallbackEntry } from "../../shared/model-requirements";
|
|
2
|
+
import type { VisionCapableModel } from "../../plugin-state";
|
|
3
|
+
export declare function isHardcodedMultimodalFallbackModel(model: VisionCapableModel): boolean;
|
|
4
|
+
export declare function buildMultimodalLookerFallbackChain(visionCapableModels: VisionCapableModel[]): FallbackEntry[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const DEFAULT_MAX_REFERENCES = 200;
|
|
2
2
|
export declare const DEFAULT_MAX_SYMBOLS = 200;
|
|
3
3
|
export declare const DEFAULT_MAX_DIAGNOSTICS = 200;
|
|
4
|
+
export declare const DEFAULT_MAX_DIRECTORY_FILES = 50;
|
|
4
5
|
export { SYMBOL_KIND_MAP, SEVERITY_MAP, EXT_TO_LANG } from "./language-mappings";
|
|
5
6
|
export { BUILTIN_SERVERS, LSP_INSTALL_HINTS } from "./server-definitions";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function aggregateDiagnosticsForDirectory(directory: string, extension: string, severity?: "error" | "warning" | "information" | "hint" | "all", maxFiles?: number): Promise<string>;
|
|
@@ -13,8 +13,10 @@ export declare class LSPClientTransport {
|
|
|
13
13
|
constructor(root: string, server: ResolvedServer);
|
|
14
14
|
start(): Promise<void>;
|
|
15
15
|
protected startStderrReading(): void;
|
|
16
|
-
protected sendRequest<T>(method: string
|
|
17
|
-
protected
|
|
16
|
+
protected sendRequest<T>(method: string): Promise<T>;
|
|
17
|
+
protected sendRequest<T>(method: string, params: unknown): Promise<T>;
|
|
18
|
+
protected sendNotification(method: string): void;
|
|
19
|
+
protected sendNotification(method: string, params: unknown): void;
|
|
18
20
|
isAlive(): boolean;
|
|
19
21
|
stop(): Promise<void>;
|
|
20
22
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { LSPClient } from "./client";
|
|
2
2
|
import type { ServerLookupResult } from "./types";
|
|
3
|
-
export declare function
|
|
3
|
+
export declare function isDirectoryPath(filePath: string): boolean;
|
|
4
4
|
export declare function uriToPath(uri: string): string;
|
|
5
|
+
export declare function findWorkspaceRoot(filePath: string): string;
|
|
5
6
|
export declare function formatServerLookupError(result: Exclude<ServerLookupResult, {
|
|
6
7
|
status: "found";
|
|
7
8
|
}>): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getLspServerAdditionalPathBases(workingDirectory: string): string[];
|