thoth-agents 0.2.7 → 0.2.9
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/dist/{chunk-32672NLJ.js → chunk-6NMPKYWY.js} +1004 -166
- package/dist/{chunk-4AC2TTUO.js → chunk-75JOF37E.js} +1 -1
- package/dist/{chunk-N7GFXGFJ.js → chunk-YLRPDTU7.js} +234 -203
- package/dist/cli/claude-code-install.d.ts +7 -2
- package/dist/cli/codex-install.d.ts +6 -0
- package/dist/cli/commands.d.ts +13 -3
- package/dist/cli/index.js +83 -15
- package/dist/cli/managed-state-io.d.ts +1 -0
- package/dist/cli/model-catalog/cache.d.ts +29 -0
- package/dist/cli/model-catalog/index.d.ts +18 -0
- package/dist/cli/model-catalog/models-dev.d.ts +12 -0
- package/dist/cli/model-catalog/types.d.ts +19 -0
- package/dist/cli/model-effort.d.ts +11 -0
- package/dist/cli/opencode-effort.d.ts +10 -0
- package/dist/cli/operations/claude-code.d.ts +9 -0
- package/dist/cli/operations/codex.d.ts +9 -1
- package/dist/cli/operations/types.d.ts +4 -0
- package/dist/cli/paths.d.ts +1 -0
- package/dist/cli/providers.d.ts +9 -9
- package/dist/cli/tui/components/ModelChoiceScreen.d.ts +8 -0
- package/dist/cli/tui/components/ModelScreen.d.ts +1 -0
- package/dist/cli/tui/index.js +250 -335
- package/dist/cli/tui/model-catalog.d.ts +4 -8
- package/dist/cli/tui/operations.d.ts +1 -1
- package/dist/cli/types.d.ts +3 -1
- package/dist/config/constants.d.ts +26 -0
- package/dist/harness/writers/claude-code-subagent.d.ts +2 -0
- package/dist/index.js +2 -2
- package/package.json +1 -1
|
@@ -1,20 +1,16 @@
|
|
|
1
1
|
import type { HarnessId } from '../../harness/types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
label: string;
|
|
5
|
-
provider: string;
|
|
6
|
-
}
|
|
2
|
+
import { type ModelOption } from '../model-catalog';
|
|
3
|
+
export type { ModelOption } from '../model-catalog';
|
|
7
4
|
interface ModelCommandInvocation {
|
|
8
5
|
command: string;
|
|
9
6
|
args: string[];
|
|
10
7
|
options: {
|
|
11
8
|
encoding: 'utf8';
|
|
12
|
-
maxBuffer?: number;
|
|
13
9
|
shell?: boolean;
|
|
14
10
|
stdio: ['ignore', 'pipe', 'ignore'];
|
|
15
11
|
timeout: number;
|
|
16
12
|
};
|
|
17
13
|
}
|
|
14
|
+
export declare function effortChoicesForModel(option: ModelOption | undefined): readonly string[];
|
|
18
15
|
export declare function getOpenCodeModelsInvocation(platform?: typeof process.platform): ModelCommandInvocation;
|
|
19
|
-
export declare function getModelOptions(harness: HarnessId): ModelOption[]
|
|
20
|
-
export {};
|
|
16
|
+
export declare function getModelOptions(harness: HarnessId): Promise<ModelOption[]>;
|
|
@@ -7,7 +7,7 @@ export type TuiAction = 'status' | 'list' | 'install' | 'update' | 'sync' | 'mod
|
|
|
7
7
|
export interface TuiOperations {
|
|
8
8
|
status(harness: HarnessId): HarnessStatusReport;
|
|
9
9
|
modelRoles(harness: HarnessId): ModelRoleInput[];
|
|
10
|
-
modelOptions(harness: HarnessId): ModelOption[]
|
|
10
|
+
modelOptions(harness: HarnessId): Promise<ModelOption[]>;
|
|
11
11
|
plan(harness: HarnessId, action: Exclude<TuiAction, 'status' | 'list'>): OperationPlan;
|
|
12
12
|
modelPlan(harness: HarnessId, roles: ModelRoleInput[]): OperationPlan;
|
|
13
13
|
apply(plan: OperationPlan): OperationApplyResult;
|
package/dist/cli/types.d.ts
CHANGED
|
@@ -16,8 +16,9 @@ export interface GenerateArgs {
|
|
|
16
16
|
export type OperationHarnessArg = 'opencode' | 'codex' | 'claude';
|
|
17
17
|
export interface CliModelRoleArg {
|
|
18
18
|
role: string;
|
|
19
|
-
model
|
|
19
|
+
model?: string;
|
|
20
20
|
provider?: string;
|
|
21
|
+
effort?: EffortSelection;
|
|
21
22
|
}
|
|
22
23
|
export interface OperationArgs {
|
|
23
24
|
harness?: OperationHarnessArg;
|
|
@@ -75,3 +76,4 @@ export interface DetectedConfig {
|
|
|
75
76
|
hasOpencodeZen: boolean;
|
|
76
77
|
hasTmux: boolean;
|
|
77
78
|
}
|
|
79
|
+
import type { EffortSelection } from './model-effort';
|
|
@@ -6,6 +6,32 @@ export declare const ORCHESTRATOR_NAME: "orchestrator";
|
|
|
6
6
|
export declare const ALL_AGENT_NAMES: readonly BuiltinAgentName[];
|
|
7
7
|
export declare const SUBAGENT_DELEGATION_RULES: Record<AgentName, readonly string[]>;
|
|
8
8
|
export declare const DEFAULT_MODELS: Record<AgentName, string | undefined>;
|
|
9
|
+
export declare const CONFIRMED_OPENAI_SUBAGENT_PRESET: {
|
|
10
|
+
readonly oracle: {
|
|
11
|
+
readonly model: "gpt-5.6-sol";
|
|
12
|
+
readonly effort: "high";
|
|
13
|
+
};
|
|
14
|
+
readonly librarian: {
|
|
15
|
+
readonly model: "gpt-5.6-luna";
|
|
16
|
+
readonly effort: "low";
|
|
17
|
+
};
|
|
18
|
+
readonly explorer: {
|
|
19
|
+
readonly model: "gpt-5.6-luna";
|
|
20
|
+
readonly effort: "low";
|
|
21
|
+
};
|
|
22
|
+
readonly designer: {
|
|
23
|
+
readonly model: "gpt-5.6-terra";
|
|
24
|
+
readonly effort: "high";
|
|
25
|
+
};
|
|
26
|
+
readonly quick: {
|
|
27
|
+
readonly model: "gpt-5.6-luna";
|
|
28
|
+
readonly effort: "medium";
|
|
29
|
+
};
|
|
30
|
+
readonly deep: {
|
|
31
|
+
readonly model: "gpt-5.6-terra";
|
|
32
|
+
readonly effort: "xhigh";
|
|
33
|
+
};
|
|
34
|
+
};
|
|
9
35
|
export declare const POLL_INTERVAL_MS = 500;
|
|
10
36
|
export declare const POLL_INTERVAL_SLOW_MS = 1000;
|
|
11
37
|
export declare const POLL_INTERVAL_BACKGROUND_MS = 2000;
|
|
@@ -16,6 +16,8 @@ export interface ClaudeCodeSubagentInput {
|
|
|
16
16
|
tools?: string;
|
|
17
17
|
/** Per-role model alias for the subagent frontmatter. */
|
|
18
18
|
model: ClaudeCodeModel;
|
|
19
|
+
/** Optional Claude Code reasoning effort for the selected model. */
|
|
20
|
+
effort?: string;
|
|
19
21
|
/** Rendered system prompt body (role prompt + governance). */
|
|
20
22
|
instructions: string;
|
|
21
23
|
}
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
renderOpenCodeAgentConfigs,
|
|
4
4
|
spawn,
|
|
5
5
|
spawnSync
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-75JOF37E.js";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_THOTH_COMMAND,
|
|
9
9
|
POLL_INTERVAL_BACKGROUND_MS,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
installCustomSkills,
|
|
15
15
|
loadPluginConfig,
|
|
16
16
|
stripJsonComments
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YLRPDTU7.js";
|
|
18
18
|
|
|
19
19
|
// src/index.ts
|
|
20
20
|
import path4 from "path";
|
package/package.json
CHANGED