thoth-agents 0.1.6 → 0.1.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.md +28 -1
- package/dist/chunk-DYGVRAMS.js +182 -0
- package/dist/chunk-OES76C67.js +1898 -0
- package/dist/chunk-OJCEGZSA.js +3735 -0
- package/dist/cli/codex-install.d.ts +15 -0
- package/dist/cli/commands.d.ts +9 -0
- package/dist/cli/index.d.ts +3 -2
- package/dist/cli/index.js +543 -4154
- package/dist/cli/operations/codex.d.ts +22 -0
- package/dist/cli/operations/index.d.ts +8 -0
- package/dist/cli/operations/opencode.d.ts +14 -0
- package/dist/cli/operations/types.d.ts +126 -0
- package/dist/cli/parser.d.ts +6 -0
- package/dist/cli/runtime.d.ts +21 -0
- package/dist/cli/skills.d.ts +17 -0
- package/dist/cli/tui/App.d.ts +7 -0
- package/dist/cli/tui/components/Header.d.ts +6 -0
- package/dist/cli/tui/components/Menu.d.ts +12 -0
- package/dist/cli/tui/components/ModelChoiceScreen.d.ts +9 -0
- package/dist/cli/tui/components/ModelScreen.d.ts +14 -0
- package/dist/cli/tui/components/PathLine.d.ts +8 -0
- package/dist/cli/tui/components/PlanPreview.d.ts +8 -0
- package/dist/cli/tui/components/StatusView.d.ts +7 -0
- package/dist/cli/tui/index.d.ts +3 -0
- package/dist/cli/tui/index.js +1285 -0
- package/dist/cli/tui/model-catalog.d.ts +20 -0
- package/dist/cli/tui/operations.d.ts +18 -0
- package/dist/cli/tui/theme.d.ts +9 -0
- package/dist/cli/types.d.ts +19 -0
- package/dist/index.js +156 -1693
- package/package.json +5 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { HarnessId } from '../../harness/types';
|
|
2
|
+
export interface ModelOption {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
provider: string;
|
|
6
|
+
}
|
|
7
|
+
interface ModelCommandInvocation {
|
|
8
|
+
command: string;
|
|
9
|
+
args: string[];
|
|
10
|
+
options: {
|
|
11
|
+
encoding: 'utf8';
|
|
12
|
+
maxBuffer?: number;
|
|
13
|
+
shell?: boolean;
|
|
14
|
+
stdio: ['ignore', 'pipe', 'ignore'];
|
|
15
|
+
timeout: number;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export declare function getOpenCodeModelsInvocation(platform?: typeof process.platform): ModelCommandInvocation;
|
|
19
|
+
export declare function getModelOptions(harness: HarnessId): ModelOption[];
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { HarnessId } from '../../harness/types';
|
|
2
|
+
import { type CodexOperationContext } from '../operations/codex';
|
|
3
|
+
import type { HarnessStatusReport, ModelRoleInput, OperationApplyResult, OperationPlan } from '../operations/types';
|
|
4
|
+
import { type ModelOption } from './model-catalog';
|
|
5
|
+
export type TuiAction = 'status' | 'list' | 'install' | 'update' | 'sync' | 'model';
|
|
6
|
+
export interface TuiOperations {
|
|
7
|
+
status(harness: HarnessId): HarnessStatusReport;
|
|
8
|
+
modelRoles(harness: HarnessId): ModelRoleInput[];
|
|
9
|
+
modelOptions(harness: HarnessId): ModelOption[];
|
|
10
|
+
plan(harness: HarnessId, action: Exclude<TuiAction, 'status' | 'list'>): OperationPlan;
|
|
11
|
+
modelPlan(harness: HarnessId, roles: ModelRoleInput[]): OperationPlan;
|
|
12
|
+
apply(plan: OperationPlan): OperationApplyResult;
|
|
13
|
+
}
|
|
14
|
+
export declare const opencodeModelRoles: ModelRoleInput[];
|
|
15
|
+
export declare const codexModelRoles: ModelRoleInput[];
|
|
16
|
+
export declare function getCodexModelRoles(source?: CodexOperationContext): ModelRoleInput[];
|
|
17
|
+
export declare function getOpenCodeModelRoles(): ModelRoleInput[];
|
|
18
|
+
export declare const defaultTuiOperations: TuiOperations;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const theme: {
|
|
2
|
+
readonly accent: "cyan";
|
|
3
|
+
readonly danger: "red";
|
|
4
|
+
readonly dim: "gray";
|
|
5
|
+
readonly ok: "green";
|
|
6
|
+
readonly title: "white";
|
|
7
|
+
readonly warning: "yellow";
|
|
8
|
+
};
|
|
9
|
+
export declare function stateColor(state: string | undefined): 'green' | 'yellow' | 'red' | 'gray';
|
package/dist/cli/types.d.ts
CHANGED
|
@@ -13,12 +13,31 @@ export interface GenerateArgs {
|
|
|
13
13
|
dryRun?: boolean;
|
|
14
14
|
outputRoot?: string;
|
|
15
15
|
}
|
|
16
|
+
export type OperationHarnessArg = 'opencode' | 'codex';
|
|
17
|
+
export interface CliModelRoleArg {
|
|
18
|
+
role: string;
|
|
19
|
+
model: string;
|
|
20
|
+
provider?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface OperationArgs {
|
|
23
|
+
harness?: OperationHarnessArg;
|
|
24
|
+
all?: boolean;
|
|
25
|
+
apply?: boolean;
|
|
26
|
+
dryRun?: boolean;
|
|
27
|
+
roles: CliModelRoleArg[];
|
|
28
|
+
}
|
|
29
|
+
export type CliOperationCommand = 'status' | 'list' | 'update' | 'sync' | 'model';
|
|
16
30
|
export type CliParseResult = {
|
|
17
31
|
command: 'install';
|
|
18
32
|
installArgs: InstallArgs;
|
|
19
33
|
} | {
|
|
20
34
|
command: 'generate';
|
|
21
35
|
generateArgs: GenerateArgs;
|
|
36
|
+
} | {
|
|
37
|
+
command: 'tui';
|
|
38
|
+
} | {
|
|
39
|
+
command: CliOperationCommand;
|
|
40
|
+
operationArgs: OperationArgs;
|
|
22
41
|
} | {
|
|
23
42
|
command: 'help';
|
|
24
43
|
} | {
|