thoth-agents 0.1.16 → 0.1.18

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.
@@ -75,6 +75,7 @@ function ensureOpenCodeConfigDir() {
75
75
  }
76
76
 
77
77
  // src/cli/providers.ts
78
+ var THOTH_AGENTS_CONFIG_SCHEMA_URL = "https://unpkg.com/thoth-agents@latest/thoth-agents.schema.json";
78
79
  var MODEL_MAPPINGS = {
79
80
  openai: {
80
81
  orchestrator: { model: "openai/gpt-5.4" },
@@ -118,6 +119,7 @@ var MODEL_MAPPINGS = {
118
119
  };
119
120
  function generateLiteConfig(installConfig) {
120
121
  const config = {
122
+ $schema: THOTH_AGENTS_CONFIG_SCHEMA_URL,
121
123
  preset: "openai",
122
124
  presets: {}
123
125
  };
@@ -464,6 +466,7 @@ var FailoverConfigSchema = z.object({
464
466
  chains: FallbackChainsSchema.default({})
465
467
  });
466
468
  var PluginConfigSchema = z.object({
469
+ $schema: z.string().optional(),
467
470
  preset: z.string().optional(),
468
471
  setDefaultAgent: z.boolean().optional(),
469
472
  scoringEngineVersion: z.enum(["v1", "v2-shadow", "v2"]).optional(),
@@ -643,7 +646,7 @@ var DEFAULT_MODELS = {
643
646
  var POLL_INTERVAL_BACKGROUND_MS = 2e3;
644
647
  var DEFAULT_TIMEOUT_MS = 2 * 60 * 1e3;
645
648
  var MAX_POLL_TIME_MS = 5 * 60 * 1e3;
646
- var DEFAULT_THOTH_COMMAND = ["npx", "-y", "thoth-mem"];
649
+ var DEFAULT_THOTH_COMMAND = ["npx", "-y", "thoth-mem", "mcp"];
647
650
 
648
651
  // src/config/utils.ts
649
652
  function getAgentOverride(config, name) {
@@ -31,7 +31,7 @@ import {
31
31
  renderRolePrompt,
32
32
  writeConfig,
33
33
  writeLiteConfig
34
- } from "./chunk-XTLXC2CM.js";
34
+ } from "./chunk-6K3ZXIMC.js";
35
35
 
36
36
  // src/harness/adapters/codex.ts
37
37
  import { existsSync as existsSync2, readFileSync as readFileSync2 } from "fs";
package/dist/cli/index.js CHANGED
@@ -25,7 +25,7 @@ import {
25
25
  getOperationHarness,
26
26
  installRecommendedSkill,
27
27
  listOperationHarnesses
28
- } from "../chunk-HFKZF2ZB.js";
28
+ } from "../chunk-SOT5ZY53.js";
29
29
  import {
30
30
  ALL_AGENT_NAMES,
31
31
  CUSTOM_SKILLS,
@@ -37,7 +37,7 @@ import {
37
37
  getExistingLiteConfigPath,
38
38
  installCustomSkills,
39
39
  writeLiteConfig
40
- } from "../chunk-XTLXC2CM.js";
40
+ } from "../chunk-6K3ZXIMC.js";
41
41
 
42
42
  // src/cli/index.ts
43
43
  import { pathToFileURL } from "url";
@@ -1,4 +1,5 @@
1
1
  import type { InstallConfig } from './types';
2
+ export declare const THOTH_AGENTS_CONFIG_SCHEMA_URL = "https://unpkg.com/thoth-agents@latest/thoth-agents.schema.json";
2
3
  export declare const MODEL_MAPPINGS: {
3
4
  readonly openai: {
4
5
  readonly orchestrator: {
@@ -15,13 +15,13 @@ import {
15
15
  getOpenCodeStatus,
16
16
  listOperationHarnesses,
17
17
  parseRoleTomlModel
18
- } from "../../chunk-HFKZF2ZB.js";
18
+ } from "../../chunk-SOT5ZY53.js";
19
19
  import {
20
20
  ALL_AGENT_NAMES,
21
21
  DEFAULT_MODELS,
22
22
  getExistingLiteConfigPath,
23
23
  parseConfig
24
- } from "../../chunk-XTLXC2CM.js";
24
+ } from "../../chunk-6K3ZXIMC.js";
25
25
 
26
26
  // src/cli/tui/index.tsx
27
27
  import { render } from "ink";
@@ -159,6 +159,7 @@ export declare const FailoverConfigSchema: z.ZodObject<{
159
159
  }, z.core.$strip>;
160
160
  export type FailoverConfig = z.infer<typeof FailoverConfigSchema>;
161
161
  export declare const PluginConfigSchema: z.ZodObject<{
162
+ $schema: z.ZodOptional<z.ZodString>;
162
163
  preset: z.ZodOptional<z.ZodString>;
163
164
  setDefaultAgent: z.ZodOptional<z.ZodBoolean>;
164
165
  scoringEngineVersion: z.ZodOptional<z.ZodEnum<{
package/dist/index.js CHANGED
@@ -26,7 +26,7 @@ import {
26
26
  loadPluginConfig,
27
27
  renderRolePrompt,
28
28
  stripJsonComments
29
- } from "./chunk-XTLXC2CM.js";
29
+ } from "./chunk-6K3ZXIMC.js";
30
30
 
31
31
  // src/index.ts
32
32
  import path4 from "path";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thoth-agents",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "description": "Delegate-first OpenCode plugin with seven agents, thoth-mem persistence, and bundled SDD skills.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -2,6 +2,9 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "type": "object",
4
4
  "properties": {
5
+ "$schema": {
6
+ "type": "string"
7
+ },
5
8
  "preset": {
6
9
  "type": "string"
7
10
  },