@opencode_weave/weave 0.7.4-preview.1 → 0.7.5

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.
@@ -14,10 +14,8 @@ export declare function buildTapestryDisciplineSection(): string;
14
14
  export declare function buildTapestrySidebarTodosSection(): string;
15
15
  export declare function buildTapestryPlanExecutionSection(disabled?: Set<string>): string;
16
16
  export declare function buildTapestryVerificationSection(): string;
17
- export declare function buildTapestryVerificationGateSection(): string;
18
17
  export declare function buildTapestryPostExecutionReviewSection(disabled: Set<string>): string;
19
18
  export declare function buildTapestryExecutionSection(): string;
20
- export declare function buildTapestryDebuggingSection(): string;
21
19
  export declare function buildTapestryStyleSection(): string;
22
20
  /**
23
21
  * Compose the full Tapestry system prompt from sections.
@@ -1,2 +1,21 @@
1
1
  import { type WeaveConfig } from "./schema";
2
+ export interface ConfigDiagnostic {
3
+ level: "warn" | "error";
4
+ section: string;
5
+ message: string;
6
+ /** Individual field-level issues within the section */
7
+ fields?: Array<{
8
+ path: string;
9
+ message: string;
10
+ }>;
11
+ }
12
+ export interface ConfigLoadResult {
13
+ config: WeaveConfig;
14
+ /** Config files that were found and loaded (may be empty) */
15
+ loadedFiles: string[];
16
+ /** Validation diagnostics — empty when config is fully valid */
17
+ diagnostics: ConfigDiagnostic[];
18
+ }
19
+ /** Retrieve the most recent config load result (for /weave-health command). */
20
+ export declare function getLastConfigLoadResult(): ConfigLoadResult | null;
2
21
  export declare function loadWeaveConfig(directory: string, _ctx?: unknown, _homeDir?: string): WeaveConfig;
@@ -265,6 +265,12 @@ export declare const WeaveConfigSchema: z.ZodObject<{
265
265
  disabled_workflows: z.ZodOptional<z.ZodArray<z.ZodString>>;
266
266
  directories: z.ZodOptional<z.ZodArray<z.ZodString>>;
267
267
  }, z.core.$strip>>;
268
+ log_level: z.ZodOptional<z.ZodEnum<{
269
+ DEBUG: "DEBUG";
270
+ INFO: "INFO";
271
+ WARN: "WARN";
272
+ ERROR: "ERROR";
273
+ }>>;
268
274
  }, z.core.$strip>;
269
275
  export type AgentOverrideConfig = z.infer<typeof AgentOverrideConfigSchema>;
270
276
  export type AgentOverrides = z.infer<typeof AgentOverridesSchema>;
@@ -13,4 +13,4 @@ export interface BuiltinCommand {
13
13
  /** Hint shown for the argument (e.g., "[plan-name]") */
14
14
  argumentHint?: string;
15
15
  }
16
- export type BuiltinCommandName = "start-work" | "token-report" | "metrics" | "run-workflow";
16
+ export type BuiltinCommandName = "start-work" | "token-report" | "metrics" | "run-workflow" | "weave-health";
@@ -0,0 +1,7 @@
1
+ import type { ConfigLoadResult } from "../config/loader";
2
+ /**
3
+ * Generate a human-readable health report from the config load result.
4
+ * Surfaced via the /weave-health command so the user can diagnose
5
+ * config issues directly in the TUI.
6
+ */
7
+ export declare function generateHealthReport(loadResult: ConfigLoadResult | null, agents: Record<string, unknown>): string;