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
package/README.md
CHANGED
|
@@ -46,7 +46,10 @@ verification you can follow—without manually coordinating every agent.
|
|
|
46
46
|
- **Continuity between sessions.** Published installs include setup of
|
|
47
47
|
[thoth-mem](https://github.com/EremesNG/thoth-mem), the independent memory
|
|
48
48
|
companion for reusable decisions and project knowledge. thoth-mem owns its own
|
|
49
|
-
memory lifecycle, persistence, and storage; thoth-agents only invokes
|
|
49
|
+
memory lifecycle, persistence, and storage; thoth-agents only invokes
|
|
50
|
+
`npx -y "thoth-mem@>=0.7.0" setup <harness> --json` (adding `--plan` for
|
|
51
|
+
dry-run). Only exit 0 with `planned` for dry-run or `complete` for apply is
|
|
52
|
+
successful; see [provider outcomes](docs/installation.md#thoth-mem-companion-setup).
|
|
50
53
|
|
|
51
54
|
> [!NOTE]
|
|
52
55
|
> OpenCode is the CLI's default harness. Pi is our recommendation for the best
|
|
@@ -62,7 +65,7 @@ The commands below install at **global/user scope**.
|
|
|
62
65
|
|
|
63
66
|
| Harness | What you get | Install command |
|
|
64
67
|
| --- | --- | --- |
|
|
65
|
-
| <a href="https://github.com/anomalyco/opencode"><picture><source media="(prefers-color-scheme: dark)" srcset="https://svgl.app/library/opencode-dark.svg"><img src="https://svgl.app/library/opencode.svg" alt="OpenCode logo" width="48" height="48"></picture></a><br>**OpenCode** |
|
|
68
|
+
| <a href="https://github.com/anomalyco/opencode"><picture><source media="(prefers-color-scheme: dark)" srcset="https://svgl.app/library/opencode-dark.svg"><img src="https://svgl.app/library/opencode.svg" alt="OpenCode logo" width="48" height="48"></picture></a><br>**OpenCode** | OpenCode >=2.2.6 native v2 plugin, package skills, agent team, and memory setup. | `npx thoth-agents@latest install --agent=opencode` |
|
|
66
69
|
| <a href="https://github.com/openai/codex"><img src="https://github.com/openai.png?size=120" alt="OpenAI logo — Codex" width="48" height="48"></a><br>**Codex** | Native plugin plus the required global agent and instruction setup. **Close Codex first.** | `npx thoth-agents@latest install --agent=codex` |
|
|
67
70
|
| <a href="https://claude.com/product/claude-code"><img src="https://github.com/anthropics.png?size=120" alt="Anthropic logo — Claude Code" width="48" height="48"></a><br>**Claude Code** | Marketplace agents and skills, completed by the CLI's external skills and memory setup. | `npx thoth-agents@latest install --agent=claude` |
|
|
68
71
|
| <a href="https://github.com/earendil-works/pi"><img src="https://raw.githubusercontent.com/EremesNG/thoth-mem/master/img/pi.svg" alt="Pi logo" width="48" height="48"></a><br>**Pi** | Native package, five specialists, delegation, research, theme, sidebar and background-task extensions, workflow skills, and memory setup. **Recommended for the best experience.** | `npx thoth-agents@latest install --agent=pi` |
|
|
@@ -288,8 +291,17 @@ npx thoth-agents@latest
|
|
|
288
291
|
```
|
|
289
292
|
|
|
290
293
|
Choose models your harness and provider account can access. OpenCode ships the
|
|
291
|
-
|
|
292
|
-
|
|
294
|
+
**`openai` model profile**. Run `/subagents-model` inside OpenCode to edit named
|
|
295
|
+
model/variant profiles for all six roles, including orchestrator. Selection is
|
|
296
|
+
session → project pin → global active → read-only `default`. Profiles live in
|
|
297
|
+
`<opencode-config-dir>/thoth/profiles.json` and
|
|
298
|
+
`<project>/.opencode/thoth/profiles.json`; the CLI manages global profiles only.
|
|
299
|
+
Other harnesses use their own model configuration and capability rules.
|
|
300
|
+
|
|
301
|
+
In OpenCode, `/subagents-tools` edits global/project allow/ask/deny overrides for
|
|
302
|
+
the five specialists, independently of model profiles. Project entries replace
|
|
303
|
+
global entries per role; `subagent` stays locked. See the
|
|
304
|
+
[tool-permission guide and limits](docs/provider-configurations.md#manage-tool-permissions-inside-opencode).
|
|
293
305
|
|
|
294
306
|
See [Provider Configuration](docs/provider-configurations.md) and
|
|
295
307
|
[Codex Model Customization](docs/codex-model-customization.md).
|
|
@@ -386,7 +398,6 @@ visible foreign-overlay focus. See [question controls](pi-packages/pi-questions-
|
|
|
386
398
|
| [Codex Model Customization](docs/codex-model-customization.md) | Adjust Codex specialist models. |
|
|
387
399
|
| [Claude Code Install](docs/claude-code-install.md) | Follow marketplace setup and activation. |
|
|
388
400
|
| [Pi Setup](docs/installation.md#pi) | Check Pi dependencies, permissions, and recovery steps. |
|
|
389
|
-
| [Tmux Integration](docs/tmux-integration.md) | Configure OpenCode's optional terminal-pane integration. |
|
|
390
401
|
|
|
391
402
|
### Technical guides
|
|
392
403
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Internal role-rendering input; translated to the host's v2 Agent.Info at registration. */
|
|
2
|
+
export interface AgentConfig {
|
|
3
|
+
model?: string;
|
|
4
|
+
variant?: string;
|
|
5
|
+
temperature?: number;
|
|
6
|
+
prompt?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
mode?: 'primary' | 'subagent' | 'all';
|
|
9
|
+
hidden?: boolean;
|
|
10
|
+
color?: string;
|
|
11
|
+
steps?: number;
|
|
12
|
+
permission?: 'allow' | 'ask' | 'deny' | Record<string, 'allow' | 'ask' | 'deny' | Record<string, 'allow' | 'ask' | 'deny'>>;
|
|
13
|
+
}
|
package/dist/agents/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AgentConfig as SDKAgentConfig } from '@opencode-ai/sdk/v2';
|
|
2
1
|
import { type PluginConfig, SUBAGENT_NAMES } from '../config';
|
|
2
|
+
import type { AgentConfig as SDKAgentConfig } from './agent-config';
|
|
3
3
|
import { type AgentDefinition } from './orchestrator';
|
|
4
4
|
export type { AgentDefinition } from './orchestrator';
|
|
5
5
|
export type SubagentName = (typeof SUBAGENT_NAMES)[number];
|