oh-my-opencode 3.17.5 → 3.17.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ja.md +1 -1
- package/README.ko.md +1 -1
- package/README.md +1 -1
- package/README.ru.md +1 -1
- package/README.zh-cn.md +1 -1
- package/dist/agents/agent-builder.d.ts +2 -3
- package/dist/agents/agent-skill-resolution.d.ts +7 -0
- package/dist/agents/frontier-tool-schema-guard.d.ts +3 -0
- package/dist/agents/hephaestus/agent.d.ts +1 -1
- package/dist/agents/hephaestus/gpt-5-5.d.ts +12 -0
- package/dist/agents/sisyphus/claude-opus-4-7.d.ts +20 -0
- package/dist/agents/sisyphus/gpt-5-5.d.ts +20 -0
- package/dist/agents/sisyphus/index.d.ts +5 -0
- package/dist/agents/sisyphus/kimi-k2-6.d.ts +32 -0
- package/dist/agents/sisyphus-junior/agent.d.ts +1 -1
- package/dist/agents/sisyphus-junior/gpt-5-5.d.ts +14 -0
- package/dist/agents/sisyphus-junior/index.d.ts +2 -0
- package/dist/agents/sisyphus-junior/kimi-k2-6.d.ts +13 -0
- package/dist/agents/types.d.ts +17 -1
- package/dist/cli/doctor/checks/model-resolution.d.ts +4 -0
- package/dist/cli/index.js +141 -86
- package/dist/features/background-agent/attempt-lifecycle.d.ts +12 -0
- package/dist/features/background-agent/background-task-notification-template.d.ts +2 -1
- package/dist/features/background-agent/constants.d.ts +1 -0
- package/dist/features/background-agent/fallback-retry-handler.d.ts +8 -0
- package/dist/features/background-agent/manager.d.ts +9 -0
- package/dist/features/background-agent/types.d.ts +24 -0
- package/dist/hooks/model-fallback/controller-accessor.d.ts +1 -0
- package/dist/hooks/model-fallback/fallback-state-controller.d.ts +1 -0
- package/dist/hooks/model-fallback/hook.d.ts +2 -1
- package/dist/hooks/preemptive-compaction-degradation-monitor.d.ts +1 -0
- package/dist/hooks/preemptive-compaction-no-text-tail.d.ts +1 -0
- package/dist/hooks/ralph-loop/ralph-loop-event-handler.d.ts +1 -6
- package/dist/hooks/ralph-loop/session-event-handler.d.ts +2 -6
- package/dist/hooks/ralph-loop/types.d.ts +5 -0
- package/dist/index.js +3533 -667
- package/dist/plugin/event.d.ts +1 -0
- package/dist/plugin/hooks/create-core-hooks.d.ts +2 -0
- package/dist/plugin/hooks/create-session-hooks.d.ts +2 -0
- package/dist/shared/agent-display-names.d.ts +7 -2
- package/dist/shared/agent-sort-shim.d.ts +28 -0
- package/dist/shared/dynamic-truncator.d.ts +9 -10
- package/dist/shared/file-reference-resolver.d.ts +1 -0
- package/dist/shared/model-error-classifier.d.ts +2 -2
- package/dist/shared/posthog-activity-state.d.ts +5 -2
- package/dist/shared/posthog.d.ts +5 -0
- package/dist/tools/background-task/clients.d.ts +1 -0
- package/dist/tools/delegate-task/builtin-categories.d.ts +1 -0
- package/dist/tools/delegate-task/builtin-category-definition.d.ts +1 -0
- package/dist/tools/delegate-task/constants.d.ts +1 -1
- package/dist/tools/delegate-task/executor-types.d.ts +1 -0
- package/dist/tools/delegate-task/openai-categories.d.ts +3 -0
- package/dist/tools/delegate-task/sync-task-fallback.d.ts +3 -0
- package/dist/tools/slashcommand/command-discovery-deps.d.ts +6 -0
- package/package.json +12 -12
- package/dist/hooks/ralph-loop/loop-session-recovery.d.ts +0 -7
package/README.ja.md
CHANGED
|
@@ -141,7 +141,7 @@ Read this and tell me why it's not just another boilerplate: https://raw.githubu
|
|
|
141
141
|
|
|
142
142
|
以下のサブスクリプションだけでも、ultraworkは十分に機能します(このプロジェクトとは無関係であり、個人的な推奨にすぎません):
|
|
143
143
|
- [ChatGPT サブスクリプション ($20)](https://chatgpt.com/)
|
|
144
|
-
- [Kimi Code サブスクリプション ($
|
|
144
|
+
- [Kimi Code サブスクリプション ($19)](https://www.kimi.com/code)
|
|
145
145
|
- [GLM Coding プラン ($10)](https://z.ai/subscribe)
|
|
146
146
|
- 従量課金(pay-per-token)の対象であれば、kimiやgeminiモデルを使っても費用はほとんどかかりません。
|
|
147
147
|
|
package/README.ko.md
CHANGED
|
@@ -135,7 +135,7 @@ Read this and tell me why it's not just another boilerplate: https://raw.githubu
|
|
|
135
135
|
|
|
136
136
|
다음 구독만 있어도 ultrawork는 충분히 잘 돌아갑니다 (본 프로젝트와 무관하며, 개인적인 추천일 뿐입니다):
|
|
137
137
|
- [ChatGPT 구독 ($20)](https://chatgpt.com/)
|
|
138
|
-
- [Kimi Code 구독 ($
|
|
138
|
+
- [Kimi Code 구독 ($19)](https://www.kimi.com/code)
|
|
139
139
|
- [GLM Coding 요금제 ($10)](https://z.ai/subscribe)
|
|
140
140
|
- 종량제(pay-per-token) 대상자라면 kimi와 gemini 모델을 써도 비용이 별로 안 나옵니다.
|
|
141
141
|
|
package/README.md
CHANGED
|
@@ -137,7 +137,7 @@ Everything below, every feature, every optimization, you don't need to know it.
|
|
|
137
137
|
|
|
138
138
|
Even only with following subscriptions, ultrawork will work well (this project is not affiliated, this is just personal recommendation):
|
|
139
139
|
- [ChatGPT Subscription ($20)](https://chatgpt.com/)
|
|
140
|
-
- [Kimi Code Subscription ($
|
|
140
|
+
- [Kimi Code Subscription ($19)](https://www.kimi.com/code)
|
|
141
141
|
- [GLM Coding Plan ($10)](https://z.ai/subscribe)
|
|
142
142
|
- If you are eligible for pay-per-token, using kimi and gemini models won't cost you that much.
|
|
143
143
|
|
package/README.ru.md
CHANGED
|
@@ -128,7 +128,7 @@ Read this and tell me why it's not just another boilerplate: https://raw.githubu
|
|
|
128
128
|
Даже при наличии только следующих подписок ultrawork будет работать отлично (проект не аффилирован с ними, это личная рекомендация):
|
|
129
129
|
|
|
130
130
|
- [Подписка ChatGPT ($20)](https://chatgpt.com/)
|
|
131
|
-
- [Подписка Kimi Code ($
|
|
131
|
+
- [Подписка Kimi Code ($19)](https://www.kimi.com/code)
|
|
132
132
|
- [Тариф GLM Coding ($10)](https://z.ai/subscribe)
|
|
133
133
|
- При доступе к оплате за токены использование моделей Kimi и Gemini обойдётся недорого.
|
|
134
134
|
|
package/README.zh-cn.md
CHANGED
|
@@ -142,7 +142,7 @@ Read this and tell me why it's not just another boilerplate: https://raw.githubu
|
|
|
142
142
|
|
|
143
143
|
只需以下订阅之一,ultrawork 就能顺畅工作(本项目与它们没有任何关联,纯属个人推荐):
|
|
144
144
|
- [ChatGPT 订阅 ($20)](https://chatgpt.com/)
|
|
145
|
-
- [Kimi Code 订阅 ($
|
|
145
|
+
- [Kimi Code 订阅 ($19)](https://www.kimi.com/code)
|
|
146
146
|
- [GLM Coding 套餐 ($10)](https://z.ai/subscribe)
|
|
147
147
|
- 如果你能使用按 token 计费的方式,用 kimi 和 gemini 模型花不了多少钱。
|
|
148
148
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { AgentConfig } from "@opencode-ai/sdk";
|
|
2
2
|
import type { AgentFactory } from "./types";
|
|
3
|
-
import type { CategoriesConfig
|
|
4
|
-
import type { BrowserAutomationProvider } from "../config/schema";
|
|
3
|
+
import type { CategoriesConfig } from "../config/schema";
|
|
5
4
|
export type AgentSource = AgentFactory | AgentConfig;
|
|
6
5
|
export declare function isFactory(source: AgentSource): source is AgentFactory;
|
|
7
|
-
export declare function buildAgent(source: AgentSource, model: string, categories?: CategoriesConfig
|
|
6
|
+
export declare function buildAgent(source: AgentSource, model: string, categories?: CategoriesConfig): AgentConfig;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AgentConfig } from "@opencode-ai/sdk";
|
|
2
|
+
import type { BrowserAutomationProvider, GitMasterConfig } from "../config/schema";
|
|
3
|
+
export declare function resolveAgentSkills(config: AgentConfig, options?: {
|
|
4
|
+
gitMasterConfig?: GitMasterConfig;
|
|
5
|
+
browserProvider?: BrowserAutomationProvider;
|
|
6
|
+
disabledSkills?: Set<string>;
|
|
7
|
+
}): AgentConfig;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { AgentConfig } from "@opencode-ai/sdk";
|
|
2
|
+
export declare function getFrontierToolSchemaPermission(model: string): Record<string, "deny">;
|
|
3
|
+
export declare function applyFrontierToolSchemaPermission(permission: AgentConfig["permission"] | undefined, model: string, explicitPermission?: AgentConfig["permission"], explicitTools?: Record<string, boolean>): AgentConfig["permission"] | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AgentConfig } from "@opencode-ai/sdk";
|
|
2
2
|
import type { AgentPromptMetadata } from "../types";
|
|
3
3
|
import type { AvailableAgent, AvailableTool, AvailableSkill, AvailableCategory } from "../dynamic-agent-prompt-builder";
|
|
4
|
-
export type HephaestusPromptSource = "gpt-5-4" | "gpt-5-3-codex" | "gpt";
|
|
4
|
+
export type HephaestusPromptSource = "gpt-5-5" | "gpt-5-4" | "gpt-5-3-codex" | "gpt";
|
|
5
5
|
export declare function getHephaestusPromptSource(model?: string): HephaestusPromptSource;
|
|
6
6
|
export interface HephaestusContext {
|
|
7
7
|
model?: string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GPT-5.5 Hephaestus prompt - outcome-first, manual-QA-gated.
|
|
3
|
+
*
|
|
4
|
+
* Lifts Sisyphus's "FULL DELEGATION -> FULL MANUAL QA" rule into
|
|
5
|
+
* the Delegation Contract: on every delegated task, re-read code,
|
|
6
|
+
* run lsp/tests, and drive the artifact through its matching
|
|
7
|
+
* surface (interactive_bash for TUI/CLI, playwright for browser,
|
|
8
|
+
* curl for HTTP, driver script for library). Decision rules over
|
|
9
|
+
* absolutes; hard invariants live in Stop Rules.
|
|
10
|
+
*/
|
|
11
|
+
import type { AvailableAgent, AvailableTool, AvailableSkill, AvailableCategory } from "../dynamic-agent-prompt-builder";
|
|
12
|
+
export declare function buildGpt55HephaestusPrompt(_availableAgents: AvailableAgent[], _availableTools?: AvailableTool[], _availableSkills?: AvailableSkill[], _availableCategories?: AvailableCategory[], useTaskSystem?: boolean): string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Claude Opus 4.7-native Sisyphus prompt - tuned for Opus 4.7 behaviors.
|
|
3
|
+
*
|
|
4
|
+
* Design principles (Anthropic Opus 4.7 prompting best practices + SMART distillation):
|
|
5
|
+
* - LITERAL instruction following: state scope explicitly. 4.7 does not silently
|
|
6
|
+
* generalize "first item" into "every item".
|
|
7
|
+
* - FEWER subagents by default: explicit triggers + positive examples to fan out.
|
|
8
|
+
* - PARALLEL tool calling re-enabled via canonical `<use_parallel_tool_calls>` snippet.
|
|
9
|
+
* - DIRECT tone, strong directives. Reinforced with bold/CAPS for load-bearing rules.
|
|
10
|
+
* - PROSE-DENSE sections borrowed from SMART production agent prompt
|
|
11
|
+
* (autonomy/persistence, investigation, subagents, verification, pragmatism,
|
|
12
|
+
* reversibility, file links) - rewritten tighter and stronger.
|
|
13
|
+
* - XML-tagged anchors throughout, Phase 0/1/2A/2B/2C/3 mental model preserved.
|
|
14
|
+
* - Shared dynamic helpers (key triggers, tool selection, delegation tables)
|
|
15
|
+
* reused so content stays in sync across variants.
|
|
16
|
+
*/
|
|
17
|
+
import type { AvailableAgent, AvailableTool, AvailableSkill, AvailableCategory } from "../dynamic-agent-prompt-builder";
|
|
18
|
+
import { categorizeTools } from "../dynamic-agent-prompt-builder";
|
|
19
|
+
export declare function buildClaudeOpus47SisyphusPrompt(model: string, availableAgents: AvailableAgent[], availableTools?: AvailableTool[], availableSkills?: AvailableSkill[], availableCategories?: AvailableCategory[], useTaskSystem?: boolean): string;
|
|
20
|
+
export { categorizeTools };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GPT-5.5 native Sisyphus prompt - ground-up rewrite styled after OpenAI Codex's
|
|
3
|
+
* gpt-5.4 prompt architecture, tuned for GPT-5.5 instruction following.
|
|
4
|
+
*
|
|
5
|
+
* Design principles (from drafts/gpt-5-5/sisyphus.md):
|
|
6
|
+
* - Codex-style section structure: `# General` -> `## Autonomy and Persistence`
|
|
7
|
+
* -> `## Task execution` -> `## Validating your work` -> `# Working with the user`
|
|
8
|
+
* -> `# Tool Guidelines`.
|
|
9
|
+
* - Single `{{ personality }}` slot for per-user persona variants (default /
|
|
10
|
+
* friendly / pragmatic). Empty string today; reserved for future substitution.
|
|
11
|
+
* - `{{ taskSystemGuide }}` slot switches between todo-based and task-based
|
|
12
|
+
* tracking tools depending on harness configuration.
|
|
13
|
+
* - Prose-first output, bullets only when content is inherently list-shaped.
|
|
14
|
+
* - Contract frames (not threat frames). GPT-5.5 follows instructions well.
|
|
15
|
+
* - Explicit opener blacklist to block "Done -", "Got it", "Great question", etc.
|
|
16
|
+
* - Agent identity XML block is prepended to override OpenCode's default
|
|
17
|
+
* "You are Claude" system prompt.
|
|
18
|
+
*/
|
|
19
|
+
import type { AvailableAgent, AvailableTool, AvailableSkill, AvailableCategory } from "../dynamic-agent-prompt-builder";
|
|
20
|
+
export declare function buildGpt55SisyphusPrompt(_model: string, _availableAgents: AvailableAgent[], _availableTools?: AvailableTool[], _availableSkills?: AvailableSkill[], _availableCategories?: AvailableCategory[], useTaskSystem?: boolean): string;
|
|
@@ -3,9 +3,14 @@
|
|
|
3
3
|
*
|
|
4
4
|
* This directory contains model-specific prompt variants:
|
|
5
5
|
* - default.ts: Base implementation for Claude and general models
|
|
6
|
+
* - claude-opus-4-7.ts: Native Claude Opus 4.7 prompt with literal-instruction tuning
|
|
6
7
|
* - gemini.ts: Corrective overlays for Gemini's aggressive tendencies
|
|
7
8
|
* - gpt-5-4.ts: Native GPT-5.4 prompt with block-structured guidance
|
|
9
|
+
* - gpt-5-5.ts: Native GPT-5.5 prompt with Codex-style sections
|
|
8
10
|
*/
|
|
9
11
|
export { buildDefaultSisyphusPrompt, buildTaskManagementSection } from "./default";
|
|
12
|
+
export { buildClaudeOpus47SisyphusPrompt } from "./claude-opus-4-7";
|
|
10
13
|
export { buildGeminiToolMandate, buildGeminiDelegationOverride, buildGeminiVerificationOverride, buildGeminiIntentGateEnforcement, buildGeminiToolGuide, buildGeminiToolCallExamples, } from "./gemini";
|
|
11
14
|
export { buildGpt54SisyphusPrompt } from "./gpt-5-4";
|
|
15
|
+
export { buildGpt55SisyphusPrompt } from "./gpt-5-5";
|
|
16
|
+
export { buildKimiK26SisyphusPrompt } from "./kimi-k2-6";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kimi K2.x-native Sisyphus prompt — rewritten with 8-block architecture.
|
|
3
|
+
*
|
|
4
|
+
* Design principles (derived from kimi.com/blog/kimi-k2-6 + arxiv 2602.02276 §4.4.2):
|
|
5
|
+
* - K2.x was post-trained with Toggle RL (~25-30% token reduction) and a Generative Reward
|
|
6
|
+
* Model (GRM) that scores: appropriate level of detail, helpfulness, response readiness,
|
|
7
|
+
* strict instruction following, intent inference.
|
|
8
|
+
* - The model already has strong intent inference from RL training. Adding Claude-style
|
|
9
|
+
* "re-verify everything" gates DOUBLE-TAXES the model: external strictness on top of
|
|
10
|
+
* RL-learned strictness → self-second-guessing, redundant verification loops, and
|
|
11
|
+
* over-deliberation on already-resolved requests.
|
|
12
|
+
* - Key fixes over gpt-5-4.ts:
|
|
13
|
+
* 1. <re_entry_rule>: suppress re-verbalization for already-decided/confirmed turns
|
|
14
|
+
* 2. <exploration_budget>: hard stop conditions alongside aggressive parallelism
|
|
15
|
+
* 3. Tiered <verification_loop> (V1/V2/V3): trivial fixes don't trigger full
|
|
16
|
+
* lsp+tests+build+QA loop — V3 keeps FULL RIGOR with harsh enforcement language
|
|
17
|
+
* 4. <token_economy>: verbalization explicitly EXCLUDED from trim mandate
|
|
18
|
+
*
|
|
19
|
+
* Architecture (8 blocks, same as gpt-5-4.ts):
|
|
20
|
+
* 1. <identity> - Role + K2.x-specific training hint
|
|
21
|
+
* 2. <constraints> - Hard blocks + anti-patterns
|
|
22
|
+
* 3. <intent> - Intent gate + verbalization + re_entry_rule
|
|
23
|
+
* 4. <explore> - Codebase assessment + research + tool rules + exploration_budget
|
|
24
|
+
* 5. <execution_loop> - EXPLORE→PLAN→ROUTE→EXECUTE_OR_SUPERVISE→VERIFY→RETRY→DONE
|
|
25
|
+
* 6. <delegation> - Category+skills, 6-section prompt, session continuity, oracle
|
|
26
|
+
* 7. <tasks> - Task/todo management (scoped threshold for K2.x)
|
|
27
|
+
* 8. <style> - Tone + output contract + token_economy
|
|
28
|
+
*/
|
|
29
|
+
import type { AvailableAgent, AvailableTool, AvailableSkill, AvailableCategory } from "../dynamic-agent-prompt-builder";
|
|
30
|
+
import { categorizeTools } from "../dynamic-agent-prompt-builder";
|
|
31
|
+
export declare function buildKimiK26SisyphusPrompt(model: string, availableAgents: AvailableAgent[], availableTools?: AvailableTool[], availableSkills?: AvailableSkill[], availableCategories?: AvailableCategory[], useTaskSystem?: boolean): string;
|
|
32
|
+
export { categorizeTools };
|
|
@@ -15,7 +15,7 @@ export declare const SISYPHUS_JUNIOR_DEFAULTS: {
|
|
|
15
15
|
readonly model: "anthropic/claude-sonnet-4-6";
|
|
16
16
|
readonly temperature: 0.1;
|
|
17
17
|
};
|
|
18
|
-
export type SisyphusJuniorPromptSource = "default" | "gpt" | "gpt-5-4" | "gpt-5-3-codex" | "gemini";
|
|
18
|
+
export type SisyphusJuniorPromptSource = "default" | "kimi-k2" | "gpt" | "gpt-5-5" | "gpt-5-4" | "gpt-5-3-codex" | "gemini";
|
|
19
19
|
export declare function getSisyphusJuniorPromptSource(model?: string): SisyphusJuniorPromptSource;
|
|
20
20
|
/**
|
|
21
21
|
* Builds the appropriate Sisyphus-Junior prompt based on model.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GPT-5.5 native Sisyphus-Junior prompt - ground-up rewrite styled after
|
|
3
|
+
* OpenAI Codex's gpt-5.4 prompt architecture, tuned for GPT-5.5.
|
|
4
|
+
*
|
|
5
|
+
* Derived from drafts/gpt-5-5/sisyphus-junior.md (reviewed 2026-04).
|
|
6
|
+
*
|
|
7
|
+
* Why a separate module: Sisyphus-Junior is the category-spawned counterpart
|
|
8
|
+
* to Hephaestus. The base prompt is category-agnostic; the actual category
|
|
9
|
+
* context (deep, quick, ultrabrain, writing) is appended at runtime via the
|
|
10
|
+
* `promptAppend` parameter. GPT-5.5 is expected to integrate the category
|
|
11
|
+
* context and base instructions coherently without explicit framing beyond
|
|
12
|
+
* the "Category context" closing section.
|
|
13
|
+
*/
|
|
14
|
+
export declare function buildGpt55SisyphusJuniorPrompt(useTaskSystem: boolean, promptAppend?: string): string;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export { buildDefaultSisyphusJuniorPrompt } from "./default";
|
|
2
|
+
export { buildKimiK26SisyphusJuniorPrompt } from "./kimi-k2-6";
|
|
2
3
|
export { buildGptSisyphusJuniorPrompt } from "./gpt";
|
|
3
4
|
export { buildGpt54SisyphusJuniorPrompt } from "./gpt-5-4";
|
|
5
|
+
export { buildGpt55SisyphusJuniorPrompt } from "./gpt-5-5";
|
|
4
6
|
export { buildGpt53CodexSisyphusJuniorPrompt } from "./gpt-5-3-codex";
|
|
5
7
|
export { buildGeminiSisyphusJuniorPrompt } from "./gemini";
|
|
6
8
|
export { SISYPHUS_JUNIOR_DEFAULTS, getSisyphusJuniorPromptSource, buildSisyphusJuniorPrompt, createSisyphusJuniorAgentWithOverrides, } from "./agent";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kimi K2.x Optimized Sisyphus-Junior System Prompt
|
|
3
|
+
*
|
|
4
|
+
* Tuned for Kimi K2.x characteristics (kimi.com/blog/kimi-k2-6, arxiv 2602.02276 §4.4.2):
|
|
5
|
+
* - Post-trained with Toggle RL (~25-30% token reduction) and GRM scoring appropriate detail
|
|
6
|
+
* and intent inference. Trust the RL prior — don't double-tax with re-verification loops
|
|
7
|
+
* on already-resolved context.
|
|
8
|
+
* - Adds <re_entry_rule> for already-confirmed/decided turns.
|
|
9
|
+
* - Adds <exploration_budget> with hard stop conditions alongside aggressive parallelism.
|
|
10
|
+
* - Tiered verification (V1/V2/V3) — V3 keeps FULL RIGOR with explicit harsh enforcement.
|
|
11
|
+
* - <token_economy> excludes intent verbalization from the trim mandate.
|
|
12
|
+
*/
|
|
13
|
+
export declare function buildKimiK26SisyphusJuniorPrompt(useTaskSystem: boolean, promptAppend?: string): string;
|
package/dist/agents/types.d.ts
CHANGED
|
@@ -53,8 +53,21 @@ export interface AgentPromptMetadata {
|
|
|
53
53
|
keyTrigger?: string;
|
|
54
54
|
}
|
|
55
55
|
export declare function isGptModel(model: string): boolean;
|
|
56
|
-
export declare function
|
|
56
|
+
export declare function isGptNativeSisyphusModel(model: string): boolean;
|
|
57
|
+
export declare function isGpt5_5Model(model: string): boolean;
|
|
57
58
|
export declare function isGpt5_3CodexModel(model: string): boolean;
|
|
59
|
+
export declare function isClaudeOpus47Model(model: string): boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Kimi K2.x model detection (K2.5 / K2.6 family).
|
|
62
|
+
*
|
|
63
|
+
* Matches model IDs containing any of:
|
|
64
|
+
* - "kimi" (provider/family signal — kimi-k2.6, moonshotai/Kimi-K2.6, etc.)
|
|
65
|
+
* - "k2p5" / "k2-p5" / "k2.p5"
|
|
66
|
+
* - "k2p6" / "k2-p6" / "k2.p6"
|
|
67
|
+
*
|
|
68
|
+
* Match is case-insensitive on the model name (last path segment).
|
|
69
|
+
*/
|
|
70
|
+
export declare function isKimiK2Model(model: string): boolean;
|
|
58
71
|
export declare function isMiniMaxModel(model: string): boolean;
|
|
59
72
|
export declare function isGlmModel(model: string): boolean;
|
|
60
73
|
export declare function isGeminiModel(model: string): boolean;
|
|
@@ -62,7 +75,10 @@ export type BuiltinAgentName = "sisyphus" | "hephaestus" | "oracle" | "librarian
|
|
|
62
75
|
export type OverridableAgentName = "build" | BuiltinAgentName;
|
|
63
76
|
export type AgentName = BuiltinAgentName;
|
|
64
77
|
export type AgentOverrideConfig = Partial<AgentConfig> & {
|
|
78
|
+
category?: string;
|
|
65
79
|
prompt_append?: string;
|
|
80
|
+
skills?: string[];
|
|
81
|
+
tools?: Record<string, boolean>;
|
|
66
82
|
variant?: string;
|
|
67
83
|
fallback_models?: string | (string | import("../config/schema/fallback-models").FallbackModelObject)[];
|
|
68
84
|
};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type { CheckResult, DoctorIssue } from "../types";
|
|
2
2
|
import type { ModelResolutionInfo, OmoConfig } from "./model-resolution-types";
|
|
3
|
+
export declare function parseProviderModel(value: string): {
|
|
4
|
+
providerID: string;
|
|
5
|
+
modelID: string;
|
|
6
|
+
} | null;
|
|
3
7
|
export declare function getModelResolutionInfo(): ModelResolutionInfo;
|
|
4
8
|
export declare function getModelResolutionInfoWithOverrides(config: OmoConfig): ModelResolutionInfo;
|
|
5
9
|
export declare function collectCapabilityResolutionIssues(info: ModelResolutionInfo): DoctorIssue[];
|