thoth-agents 0.1.5 → 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.
@@ -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';
@@ -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
  } | {
@@ -1,3 +1,4 @@
1
+ import type { AgentRoleName } from './agent-pack';
1
2
  export type SddPipelineType = 'direct' | 'accelerated' | 'full';
2
3
  export type SddPhaseId = 'requirements-interview' | 'proposal' | 'spec' | 'design' | 'tasks' | 'plan-review' | 'implementation-confirmation' | 'apply' | 'verify' | 'archive';
3
4
  export interface SddPhaseContract {
@@ -8,6 +9,10 @@ export interface SddPhaseContract {
8
9
  producesArtifact: boolean;
9
10
  gate?: 'oracle-review' | 'user-confirmation';
10
11
  owner: 'orchestrator' | 'write-capable-agent' | 'oracle' | 'user';
12
+ artifactSkill?: string;
13
+ artifactMeaning?: string;
14
+ defaultAgentRole?: AgentRoleName;
15
+ alternateAgentRoles?: AgentRoleName[];
11
16
  }
12
17
  export interface SddWorkflowContract {
13
18
  phases: SddPhaseContract[];
@@ -30,6 +35,8 @@ export declare const SDD_PHASES: readonly [{
30
35
  readonly prerequisites: ["requirements-interview"];
31
36
  readonly producesArtifact: true;
32
37
  readonly owner: "write-capable-agent";
38
+ readonly artifactSkill: "sdd-propose";
39
+ readonly defaultAgentRole: "deep";
33
40
  }, {
34
41
  readonly id: "spec";
35
42
  readonly order: 2;
@@ -37,6 +44,8 @@ export declare const SDD_PHASES: readonly [{
37
44
  readonly prerequisites: ["proposal"];
38
45
  readonly producesArtifact: true;
39
46
  readonly owner: "write-capable-agent";
47
+ readonly artifactSkill: "sdd-spec";
48
+ readonly defaultAgentRole: "deep";
40
49
  }, {
41
50
  readonly id: "design";
42
51
  readonly order: 3;
@@ -44,6 +53,9 @@ export declare const SDD_PHASES: readonly [{
44
53
  readonly prerequisites: ["proposal", "spec"];
45
54
  readonly producesArtifact: true;
46
55
  readonly owner: "write-capable-agent";
56
+ readonly artifactSkill: "sdd-design";
57
+ readonly artifactMeaning: "technical-solution-design";
58
+ readonly defaultAgentRole: "deep";
47
59
  }, {
48
60
  readonly id: "tasks";
49
61
  readonly order: 4;
@@ -51,6 +63,8 @@ export declare const SDD_PHASES: readonly [{
51
63
  readonly prerequisites: ["proposal", "spec", "design"];
52
64
  readonly producesArtifact: true;
53
65
  readonly owner: "write-capable-agent";
66
+ readonly artifactSkill: "sdd-tasks";
67
+ readonly defaultAgentRole: "deep";
54
68
  }, {
55
69
  readonly id: "plan-review";
56
70
  readonly order: 5;
@@ -74,6 +88,8 @@ export declare const SDD_PHASES: readonly [{
74
88
  readonly prerequisites: ["implementation-confirmation"];
75
89
  readonly producesArtifact: false;
76
90
  readonly owner: "write-capable-agent";
91
+ readonly defaultAgentRole: "deep";
92
+ readonly alternateAgentRoles: ["quick", "designer"];
77
93
  }, {
78
94
  readonly id: "verify";
79
95
  readonly order: 8;
@@ -81,6 +97,8 @@ export declare const SDD_PHASES: readonly [{
81
97
  readonly prerequisites: ["apply"];
82
98
  readonly producesArtifact: true;
83
99
  readonly owner: "write-capable-agent";
100
+ readonly artifactSkill: "sdd-verify";
101
+ readonly defaultAgentRole: "deep";
84
102
  }, {
85
103
  readonly id: "archive";
86
104
  readonly order: 9;
@@ -88,6 +106,8 @@ export declare const SDD_PHASES: readonly [{
88
106
  readonly prerequisites: ["verify"];
89
107
  readonly producesArtifact: true;
90
108
  readonly owner: "write-capable-agent";
109
+ readonly artifactSkill: "sdd-archive";
110
+ readonly defaultAgentRole: "deep";
91
111
  }];
92
112
  export declare const SDD_WORKFLOW_CONTRACT: SddWorkflowContract;
93
113
  export declare function getSddWorkflowContract(): SddWorkflowContract;
@@ -53,7 +53,7 @@ export declare const BUNDLED_SKILL_REGISTRY: readonly [{
53
53
  readonly purpose: "sdd";
54
54
  }, {
55
55
  readonly name: "sdd-design";
56
- readonly description: "Create technical design artifacts for changes";
56
+ readonly description: "Create technical solution design artifacts for changes";
57
57
  readonly allowedRoles: AgentRoleName[];
58
58
  readonly sourcePath: "src/skills/sdd-design";
59
59
  readonly kind: "skill";
@@ -138,7 +138,7 @@ export declare const SKILL_REGISTRY: readonly [{
138
138
  readonly purpose: "sdd";
139
139
  }, {
140
140
  readonly name: "sdd-design";
141
- readonly description: "Create technical design artifacts for changes";
141
+ readonly description: "Create technical solution design artifacts for changes";
142
142
  readonly allowedRoles: AgentRoleName[];
143
143
  readonly sourcePath: "src/skills/sdd-design";
144
144
  readonly kind: "skill";