thoth-agents 0.12.0 → 0.13.1

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 (43) hide show
  1. package/README.md +11 -2
  2. package/dist/{chunk-7F33WUSD.js → chunk-422L76R5.js} +2 -2
  3. package/dist/chunk-6O4GKDS7.js +207 -0
  4. package/dist/{chunk-SEF6PFM6.js → chunk-A7IGKE4R.js} +132 -157
  5. package/dist/{chunk-NY2IPJ7V.js → chunk-HFBCW4MD.js} +554 -236
  6. package/dist/{chunk-QOA2AETX.js → chunk-KUA3F4D6.js} +3 -3
  7. package/dist/cli/index.js +6 -6
  8. package/dist/cli/opencode-profiles.d.ts +10 -0
  9. package/dist/cli/tui/index.js +3 -3
  10. package/dist/config/loader.d.ts +1 -4
  11. package/dist/config/schema.d.ts +0 -22
  12. package/dist/index.js +824 -30
  13. package/dist/opencode/context.d.ts +16 -0
  14. package/dist/opencode/profile-rpc-handlers.d.ts +3 -0
  15. package/dist/opencode/profile-rpc.d.ts +688 -0
  16. package/dist/opencode/profile-runtime.d.ts +3 -0
  17. package/dist/opencode/profile-sessions.d.ts +18 -0
  18. package/dist/opencode/profiles/editor.d.ts +44 -0
  19. package/dist/opencode/profiles/index.d.ts +18 -0
  20. package/dist/opencode/profiles/resolver.d.ts +12 -0
  21. package/dist/opencode/profiles/store.d.ts +63 -0
  22. package/dist/opencode/profiles/types.d.ts +26 -0
  23. package/dist/opencode/tool-overrides/evaluator.d.ts +13 -0
  24. package/dist/opencode/tool-overrides/index.d.ts +5 -0
  25. package/dist/opencode/tool-overrides/store.d.ts +38 -0
  26. package/dist/opencode/tool-overrides/types.d.ts +32 -0
  27. package/dist/opencode/tool-overrides/validation.d.ts +5 -0
  28. package/dist/opencode/tool-overrides/wildcard.d.ts +3 -0
  29. package/dist/opencode/tool-rpc-handlers.d.ts +3 -0
  30. package/dist/opencode/tool-rpc.d.ts +428 -0
  31. package/dist/pi.js +2 -2
  32. package/dist/tui/fixtures.d.ts +2 -0
  33. package/dist/tui/flow.d.ts +16 -0
  34. package/dist/tui/index.d.ts +7 -0
  35. package/dist/tui/index.js +1386 -0
  36. package/dist/tui/model.d.ts +84 -0
  37. package/dist/tui/tools/fixtures.d.ts +3 -0
  38. package/dist/tui/tools/flow.d.ts +11 -0
  39. package/dist/tui/tools/model.d.ts +97 -0
  40. package/package.json +5 -1
  41. package/plugin/.claude-plugin/plugin.json +1 -1
  42. package/plugin/.codex-plugin/plugin.json +1 -1
  43. package/thoth-agents.schema.json +0 -70
@@ -2,6 +2,8 @@ import type { Plugin } from '@opencode/plugin';
2
2
  import { type AgentDefinition } from '../agents';
3
3
  import { type PluginConfig } from '../config';
4
4
  import { renderOpenCodeAgentConfigs } from '../harness/adapters/opencode';
5
+ import { type EffectiveRoster, type ModelProfileSelection, ModelProfileStore, type ProfileRole, type RoleProfile } from './profiles';
6
+ import { ToolsOverrideStore, type ToolsState } from './tool-overrides';
5
7
  type ModelEntry = {
6
8
  id: string;
7
9
  variant?: string;
@@ -15,6 +17,20 @@ export interface OpenCodeDependencies {
15
17
  modelArrayMap: Record<string, ModelEntry[]>;
16
18
  effectiveModelArrays: Record<string, ModelEntry[]>;
17
19
  runtimeChains: Record<string, string[]>;
20
+ toolState: {
21
+ store: ToolsOverrideStore;
22
+ state: ToolsState;
23
+ /** Re-read global/project overrides for the next agent transform. */
24
+ refresh(): void;
25
+ };
26
+ profileState: {
27
+ store: ModelProfileStore;
28
+ roster: EffectiveRoster;
29
+ selection: ModelProfileSelection;
30
+ roles: Partial<Record<ProfileRole, RoleProfile>>;
31
+ /** Re-read global/project selection and update the transform's mutable defaults. */
32
+ refresh(): void;
33
+ };
18
34
  }
19
35
  export declare function loadOpenCodeDependencies(ctx: Plugin.Context): OpenCodeDependencies;
20
36
  export {};
@@ -0,0 +1,3 @@
1
+ import type { Plugin } from '@opencode/plugin';
2
+ import type { OpenCodeDependencies } from './context';
3
+ export declare function registerProfileRpc(ctx: Plugin.Context, deps: OpenCodeDependencies): Promise<void>;