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.
Files changed (95) hide show
  1. package/README.md +16 -5
  2. package/dist/agents/agent-config.d.ts +13 -0
  3. package/dist/agents/index.d.ts +1 -1
  4. package/dist/agents/orchestrator.d.ts +1 -1
  5. package/dist/{chunk-I5TXGNSG.js → chunk-5MYXVRZZ.js} +634 -366
  6. package/dist/chunk-6O4GKDS7.js +207 -0
  7. package/dist/{chunk-RWQPMWEM.js → chunk-JLU3FSBT.js} +17 -2
  8. package/dist/chunk-MIDGZE34.js +107 -0
  9. package/dist/{chunk-HACUJFKI.js → chunk-NOLDFT7O.js} +4 -230
  10. package/dist/{chunk-5WPP6IY7.js → chunk-VVYAQTYE.js} +2 -2
  11. package/dist/{chunk-DNPKVFOB.js → chunk-YCWGTDFE.js} +604 -315
  12. package/dist/cli/config-io.d.ts +2 -2
  13. package/dist/cli/index.js +94 -41
  14. package/dist/cli/install.d.ts +1 -0
  15. package/dist/cli/opencode-profiles.d.ts +10 -0
  16. package/dist/cli/opencode-skill-consent.d.ts +5 -0
  17. package/dist/cli/operations/opencode.d.ts +2 -1
  18. package/dist/cli/operations/types.d.ts +1 -0
  19. package/dist/cli/owned-skills.d.ts +16 -0
  20. package/dist/cli/paths.d.ts +1 -1
  21. package/dist/cli/providers.d.ts +1 -1
  22. package/dist/cli/system.d.ts +3 -1
  23. package/dist/cli/thoth-mem-install.d.ts +10 -10
  24. package/dist/cli/tui/index.js +53 -5
  25. package/dist/cli/tui/operations.d.ts +2 -0
  26. package/dist/cli/types.d.ts +2 -4
  27. package/dist/config/loader.d.ts +2 -5
  28. package/dist/config/schema.d.ts +0 -53
  29. package/dist/harness/adapters/opencode.d.ts +1 -1
  30. package/dist/hooks/delegate-task-retry/hook.d.ts +8 -8
  31. package/dist/hooks/foreground-fallback/index.d.ts +14 -69
  32. package/dist/hooks/index.d.ts +0 -2
  33. package/dist/hooks/json-error-recovery/hook.d.ts +2 -15
  34. package/dist/hooks/oracle-gate-verdict/hook.d.ts +4 -11
  35. package/dist/index.d.ts +7 -4
  36. package/dist/index.js +1603 -1408
  37. package/dist/opencode/agents.d.ts +3 -0
  38. package/dist/opencode/command.d.ts +3 -0
  39. package/dist/opencode/context.d.ts +36 -0
  40. package/dist/opencode/delegation-hooks.d.ts +3 -0
  41. package/dist/opencode/mcp.d.ts +3 -0
  42. package/dist/opencode/permission-rules.d.ts +9 -0
  43. package/dist/opencode/permissions.d.ts +3 -0
  44. package/dist/opencode/profile-rpc-handlers.d.ts +3 -0
  45. package/dist/opencode/profile-rpc.d.ts +688 -0
  46. package/dist/opencode/profile-runtime.d.ts +3 -0
  47. package/dist/opencode/profile-sessions.d.ts +18 -0
  48. package/dist/opencode/profiles/editor.d.ts +44 -0
  49. package/dist/opencode/profiles/index.d.ts +18 -0
  50. package/dist/opencode/profiles/resolver.d.ts +12 -0
  51. package/dist/opencode/profiles/store.d.ts +63 -0
  52. package/dist/opencode/profiles/types.d.ts +26 -0
  53. package/dist/opencode/session-hooks.d.ts +3 -0
  54. package/dist/opencode/session-state.d.ts +39 -0
  55. package/dist/opencode/skills.d.ts +3 -0
  56. package/dist/opencode/tool-overrides/evaluator.d.ts +13 -0
  57. package/dist/opencode/tool-overrides/index.d.ts +5 -0
  58. package/dist/opencode/tool-overrides/store.d.ts +38 -0
  59. package/dist/opencode/tool-overrides/types.d.ts +32 -0
  60. package/dist/opencode/tool-overrides/validation.d.ts +5 -0
  61. package/dist/opencode/tool-overrides/wildcard.d.ts +3 -0
  62. package/dist/opencode/tool-rpc-handlers.d.ts +3 -0
  63. package/dist/opencode/tool-rpc.d.ts +428 -0
  64. package/dist/opencode/tools.d.ts +3 -0
  65. package/dist/pi.js +3 -3
  66. package/dist/tools/ast-grep/cli.d.ts +1 -0
  67. package/dist/tools/ast-grep/index.d.ts +108 -2
  68. package/dist/tools/ast-grep/tools.d.ts +107 -3
  69. package/dist/tools/define-tool.d.ts +23 -0
  70. package/dist/tools/lsp/tools.d.ts +97 -5
  71. package/dist/tui/fixtures.d.ts +2 -0
  72. package/dist/tui/flow.d.ts +16 -0
  73. package/dist/tui/index.d.ts +7 -0
  74. package/dist/tui/index.js +1384 -0
  75. package/dist/tui/model.d.ts +84 -0
  76. package/dist/tui/tools/fixtures.d.ts +3 -0
  77. package/dist/tui/tools/flow.d.ts +11 -0
  78. package/dist/tui/tools/model.d.ts +97 -0
  79. package/dist/utils/index.d.ts +0 -1
  80. package/package.json +18 -3
  81. package/plugin/.claude-plugin/plugin.json +1 -1
  82. package/plugin/.codex-plugin/plugin.json +1 -1
  83. package/plugin/skills/thoth-sdd/SKILL.md +8 -2
  84. package/plugin/skills/thoth-sdd/scripts/validate-result.mjs +28 -2
  85. package/skills/thoth-sdd/SKILL.md +8 -2
  86. package/skills/thoth-sdd/scripts/validate-result.mjs +28 -2
  87. package/thoth-agents.schema.json +0 -96
  88. package/dist/chunk-62L3ORXN.js +0 -30
  89. package/dist/delegation/project-id.d.ts +0 -10
  90. package/dist/hooks/auto-update-checker/checker.d.ts +0 -23
  91. package/dist/hooks/auto-update-checker/constants.d.ts +0 -11
  92. package/dist/hooks/auto-update-checker/index.d.ts +0 -17
  93. package/dist/hooks/auto-update-checker/types.d.ts +0 -22
  94. package/dist/utils/tmux-session-manager.d.ts +0 -63
  95. 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 its setup.
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** | Native plugin, agent team, workflow skills, and memory setup. | `npx thoth-agents@latest install --agent=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
- **OpenAI preset**; per-role overrides let you customize it. Other harnesses use
292
- their own model configuration and capability rules.
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
+ }
@@ -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];
@@ -1,4 +1,4 @@
1
- import type { AgentConfig } from '@opencode-ai/sdk/v2';
1
+ import type { AgentConfig } from './agent-config';
2
2
  export interface AgentDefinition {
3
3
  name: string;
4
4
  description?: string;