thoth-agents 0.11.0 → 0.13.0
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 +16 -5
- package/dist/agents/agent-config.d.ts +13 -0
- package/dist/agents/index.d.ts +1 -1
- package/dist/agents/orchestrator.d.ts +1 -1
- package/dist/{chunk-I5TXGNSG.js → chunk-5MYXVRZZ.js} +634 -366
- package/dist/chunk-6O4GKDS7.js +207 -0
- package/dist/{chunk-RWQPMWEM.js → chunk-JLU3FSBT.js} +17 -2
- package/dist/chunk-MIDGZE34.js +107 -0
- package/dist/{chunk-HACUJFKI.js → chunk-NOLDFT7O.js} +4 -230
- package/dist/{chunk-5WPP6IY7.js → chunk-VVYAQTYE.js} +2 -2
- package/dist/{chunk-DNPKVFOB.js → chunk-YCWGTDFE.js} +604 -315
- package/dist/cli/config-io.d.ts +2 -2
- package/dist/cli/index.js +94 -41
- package/dist/cli/install.d.ts +1 -0
- package/dist/cli/opencode-profiles.d.ts +10 -0
- package/dist/cli/opencode-skill-consent.d.ts +5 -0
- package/dist/cli/operations/opencode.d.ts +2 -1
- package/dist/cli/operations/types.d.ts +1 -0
- package/dist/cli/owned-skills.d.ts +16 -0
- package/dist/cli/paths.d.ts +1 -1
- package/dist/cli/providers.d.ts +1 -1
- package/dist/cli/system.d.ts +3 -1
- package/dist/cli/thoth-mem-install.d.ts +10 -10
- package/dist/cli/tui/index.js +53 -5
- package/dist/cli/tui/operations.d.ts +2 -0
- package/dist/cli/types.d.ts +2 -4
- package/dist/config/loader.d.ts +2 -5
- package/dist/config/schema.d.ts +0 -53
- package/dist/harness/adapters/opencode.d.ts +1 -1
- package/dist/hooks/delegate-task-retry/hook.d.ts +8 -8
- package/dist/hooks/foreground-fallback/index.d.ts +14 -69
- package/dist/hooks/index.d.ts +0 -2
- package/dist/hooks/json-error-recovery/hook.d.ts +2 -15
- package/dist/hooks/oracle-gate-verdict/hook.d.ts +4 -11
- package/dist/index.d.ts +7 -4
- package/dist/index.js +1603 -1408
- package/dist/opencode/agents.d.ts +3 -0
- package/dist/opencode/command.d.ts +3 -0
- package/dist/opencode/context.d.ts +36 -0
- package/dist/opencode/delegation-hooks.d.ts +3 -0
- package/dist/opencode/mcp.d.ts +3 -0
- package/dist/opencode/permission-rules.d.ts +9 -0
- package/dist/opencode/permissions.d.ts +3 -0
- package/dist/opencode/profile-rpc-handlers.d.ts +3 -0
- package/dist/opencode/profile-rpc.d.ts +688 -0
- package/dist/opencode/profile-runtime.d.ts +3 -0
- package/dist/opencode/profile-sessions.d.ts +18 -0
- package/dist/opencode/profiles/editor.d.ts +44 -0
- package/dist/opencode/profiles/index.d.ts +18 -0
- package/dist/opencode/profiles/resolver.d.ts +12 -0
- package/dist/opencode/profiles/store.d.ts +63 -0
- package/dist/opencode/profiles/types.d.ts +26 -0
- package/dist/opencode/session-hooks.d.ts +3 -0
- package/dist/opencode/session-state.d.ts +39 -0
- package/dist/opencode/skills.d.ts +3 -0
- package/dist/opencode/tool-overrides/evaluator.d.ts +13 -0
- package/dist/opencode/tool-overrides/index.d.ts +5 -0
- package/dist/opencode/tool-overrides/store.d.ts +38 -0
- package/dist/opencode/tool-overrides/types.d.ts +32 -0
- package/dist/opencode/tool-overrides/validation.d.ts +5 -0
- package/dist/opencode/tool-overrides/wildcard.d.ts +3 -0
- package/dist/opencode/tool-rpc-handlers.d.ts +3 -0
- package/dist/opencode/tool-rpc.d.ts +428 -0
- package/dist/opencode/tools.d.ts +3 -0
- package/dist/pi.js +3 -3
- package/dist/tools/ast-grep/cli.d.ts +1 -0
- package/dist/tools/ast-grep/index.d.ts +108 -2
- package/dist/tools/ast-grep/tools.d.ts +107 -3
- package/dist/tools/define-tool.d.ts +23 -0
- package/dist/tools/lsp/tools.d.ts +97 -5
- package/dist/tui/fixtures.d.ts +2 -0
- package/dist/tui/flow.d.ts +16 -0
- package/dist/tui/index.d.ts +7 -0
- package/dist/tui/index.js +1384 -0
- package/dist/tui/model.d.ts +84 -0
- package/dist/tui/tools/fixtures.d.ts +3 -0
- package/dist/tui/tools/flow.d.ts +11 -0
- package/dist/tui/tools/model.d.ts +97 -0
- package/dist/utils/index.d.ts +0 -1
- package/package.json +18 -3
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/.codex-plugin/plugin.json +1 -1
- package/plugin/skills/thoth-sdd/SKILL.md +8 -2
- package/plugin/skills/thoth-sdd/scripts/validate-result.mjs +28 -2
- package/skills/thoth-sdd/SKILL.md +8 -2
- package/skills/thoth-sdd/scripts/validate-result.mjs +28 -2
- package/thoth-agents.schema.json +0 -96
- package/dist/chunk-62L3ORXN.js +0 -30
- package/dist/delegation/project-id.d.ts +0 -10
- package/dist/hooks/auto-update-checker/checker.d.ts +0 -23
- package/dist/hooks/auto-update-checker/constants.d.ts +0 -11
- package/dist/hooks/auto-update-checker/index.d.ts +0 -17
- package/dist/hooks/auto-update-checker/types.d.ts +0 -22
- package/dist/utils/tmux-session-manager.d.ts +0 -63
- package/dist/utils/tmux.d.ts +0 -32
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ToolContext } from '@opencode/plugin/promise/tool';
|
|
2
|
+
import type { z } from 'zod';
|
|
3
|
+
/** Adapt the existing text-producing tools to the host's v2 result contract. */
|
|
4
|
+
export declare function defineTool<Input extends z.ZodType>(definition: {
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
input: Input;
|
|
8
|
+
showOutput?: boolean;
|
|
9
|
+
execute: (input: z.infer<Input>, context: ToolContext) => Promise<string>;
|
|
10
|
+
}): {
|
|
11
|
+
name: string;
|
|
12
|
+
description: string;
|
|
13
|
+
input: Input;
|
|
14
|
+
execute(input: z.infer<Input>, context: ToolContext): Promise<{
|
|
15
|
+
content: string;
|
|
16
|
+
metadata: {
|
|
17
|
+
output: string;
|
|
18
|
+
};
|
|
19
|
+
} | {
|
|
20
|
+
content: string;
|
|
21
|
+
metadata?: undefined;
|
|
22
|
+
}>;
|
|
23
|
+
};
|
|
@@ -1,5 +1,97 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const lsp_goto_definition:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const lsp_goto_definition: {
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
input: z.ZodObject<{
|
|
6
|
+
filePath: z.ZodString;
|
|
7
|
+
line: z.ZodNumber;
|
|
8
|
+
character: z.ZodNumber;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
execute(input: {
|
|
11
|
+
filePath: string;
|
|
12
|
+
line: number;
|
|
13
|
+
character: number;
|
|
14
|
+
}, context: import("@opencode/plugin/promise/tool").ToolContext): Promise<{
|
|
15
|
+
content: string;
|
|
16
|
+
metadata: {
|
|
17
|
+
output: string;
|
|
18
|
+
};
|
|
19
|
+
} | {
|
|
20
|
+
content: string;
|
|
21
|
+
metadata?: undefined;
|
|
22
|
+
}>;
|
|
23
|
+
};
|
|
24
|
+
export declare const lsp_find_references: {
|
|
25
|
+
name: string;
|
|
26
|
+
description: string;
|
|
27
|
+
input: z.ZodObject<{
|
|
28
|
+
filePath: z.ZodString;
|
|
29
|
+
line: z.ZodNumber;
|
|
30
|
+
character: z.ZodNumber;
|
|
31
|
+
includeDeclaration: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
execute(input: {
|
|
34
|
+
filePath: string;
|
|
35
|
+
line: number;
|
|
36
|
+
character: number;
|
|
37
|
+
includeDeclaration?: boolean | undefined;
|
|
38
|
+
}, context: import("@opencode/plugin/promise/tool").ToolContext): Promise<{
|
|
39
|
+
content: string;
|
|
40
|
+
metadata: {
|
|
41
|
+
output: string;
|
|
42
|
+
};
|
|
43
|
+
} | {
|
|
44
|
+
content: string;
|
|
45
|
+
metadata?: undefined;
|
|
46
|
+
}>;
|
|
47
|
+
};
|
|
48
|
+
export declare const lsp_diagnostics: {
|
|
49
|
+
name: string;
|
|
50
|
+
description: string;
|
|
51
|
+
input: z.ZodObject<{
|
|
52
|
+
filePath: z.ZodString;
|
|
53
|
+
severity: z.ZodOptional<z.ZodEnum<{
|
|
54
|
+
error: "error";
|
|
55
|
+
all: "all";
|
|
56
|
+
warning: "warning";
|
|
57
|
+
information: "information";
|
|
58
|
+
hint: "hint";
|
|
59
|
+
}>>;
|
|
60
|
+
}, z.core.$strip>;
|
|
61
|
+
execute(input: {
|
|
62
|
+
filePath: string;
|
|
63
|
+
severity?: "error" | "all" | "warning" | "information" | "hint" | undefined;
|
|
64
|
+
}, context: import("@opencode/plugin/promise/tool").ToolContext): Promise<{
|
|
65
|
+
content: string;
|
|
66
|
+
metadata: {
|
|
67
|
+
output: string;
|
|
68
|
+
};
|
|
69
|
+
} | {
|
|
70
|
+
content: string;
|
|
71
|
+
metadata?: undefined;
|
|
72
|
+
}>;
|
|
73
|
+
};
|
|
74
|
+
export declare const lsp_rename: {
|
|
75
|
+
name: string;
|
|
76
|
+
description: string;
|
|
77
|
+
input: z.ZodObject<{
|
|
78
|
+
filePath: z.ZodString;
|
|
79
|
+
line: z.ZodNumber;
|
|
80
|
+
character: z.ZodNumber;
|
|
81
|
+
newName: z.ZodString;
|
|
82
|
+
}, z.core.$strip>;
|
|
83
|
+
execute(input: {
|
|
84
|
+
filePath: string;
|
|
85
|
+
line: number;
|
|
86
|
+
character: number;
|
|
87
|
+
newName: string;
|
|
88
|
+
}, context: import("@opencode/plugin/promise/tool").ToolContext): Promise<{
|
|
89
|
+
content: string;
|
|
90
|
+
metadata: {
|
|
91
|
+
output: string;
|
|
92
|
+
};
|
|
93
|
+
} | {
|
|
94
|
+
content: string;
|
|
95
|
+
metadata?: undefined;
|
|
96
|
+
}>;
|
|
97
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** `/subagents-model` flow. Talks only to injected UI and RPC ports. */
|
|
2
|
+
import type { Plugin } from '@opencode/plugin/tui';
|
|
3
|
+
import type { ProfileRpcInput, ProfileRpcMethod, ProfileRpcOutput } from '../opencode/profile-rpc';
|
|
4
|
+
export type Ui = Pick<Plugin.Context['ui']['dialog'], 'select' | 'prompt' | 'confirm' | 'alert'> & {
|
|
5
|
+
toast: Pick<Plugin.Context['ui']['toast'], 'show'>;
|
|
6
|
+
};
|
|
7
|
+
export type RpcPort = {
|
|
8
|
+
[M in ProfileRpcMethod]: (input: ProfileRpcInput<M>) => Promise<ProfileRpcOutput<M>>;
|
|
9
|
+
};
|
|
10
|
+
export interface FlowPorts {
|
|
11
|
+
ui: Ui;
|
|
12
|
+
rpc: RpcPort;
|
|
13
|
+
/** Current session, if the TUI is showing one. */
|
|
14
|
+
sessionID: () => string | undefined;
|
|
15
|
+
}
|
|
16
|
+
export declare function runModelProfilesFlow(ports: FlowPorts): Promise<void>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Plugin } from '@opencode/plugin/tui';
|
|
2
|
+
/**
|
|
3
|
+
* `Plugin.define` is an identity helper, so the definition is exported as a typed
|
|
4
|
+
* object; that keeps the bundle free of the host's UI runtime dependencies.
|
|
5
|
+
*/
|
|
6
|
+
declare const plugin: Plugin.Definition;
|
|
7
|
+
export default plugin;
|