@adhdev/mesh-shared 1.0.60-rc.72 → 1.0.60-rc.74

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.
@@ -5,10 +5,8 @@
5
5
  * per-difficulty "brain" preset resolves that into a concrete provider / model /
6
6
  * thinking-level for the launched session. The goal is token economy: an `easy`
7
7
  * task runs on a cheaper model at low reasoning effort; a `difficult` task gets a
8
- * stronger model at high effort. This is a separate axis from MAGI's review kinds
9
- * (rca/design/…) — MAGI fans out review replicas; this picks the single brain that
10
- * *executes* a task — but it reuses the same slot shape (provider/model) and the
11
- * same machine-local storage (`~/.adhdev/meshes.json`).
8
+ * stronger model at high effort. This picks the single brain that *executes* a
9
+ * task, stored machine-local (`~/.adhdev/meshes.json`).
12
10
  */
13
11
  /** The fixed difficulty axis the coordinator classifies a task into. */
14
12
  export type MeshTaskDifficulty = 'easy' | 'medium' | 'difficult' | 'freeform';
@@ -29,8 +27,8 @@ export interface BrainSlot {
29
27
  }
30
28
  /**
31
29
  * Per-difficulty brain bindings for ONE mesh, stored machine-local in
32
- * `~/.adhdev/meshes.json` under that mesh's entry (`meshes[].difficultyBrains`,
33
- * sibling of `magiKindPanels`). The scope is per mesh: two meshes on the same
30
+ * `~/.adhdev/meshes.json` under that mesh's entry (`meshes[].difficultyBrains`).
31
+ * The scope is per mesh: two meshes on the same
34
32
  * machine hold independent presets, so one can pin `difficult` to a cheaper model
35
33
  * without changing what any other mesh runs. (It formerly sat at the config root
36
34
  * keyed by difficulty alone — and since this map picks the MODEL a task runs on,
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Projection of a daemon `git_diff_file` answer into the per-file row the MCP
3
+ * `git_diff` tool and the cloud git-diff shortcut both return: the diff text
4
+ * capped at `maxLines` (with a visible truncation marker), plus the file's
5
+ * change metadata from the diff summary.
6
+ */
7
+ export interface GitFileDiffRow {
8
+ path: string;
9
+ old_path?: string | null;
10
+ status?: string;
11
+ diff: string;
12
+ truncated: boolean;
13
+ binary: boolean;
14
+ error?: string;
15
+ }
16
+ /** One changed file's row from its `git_diff_file` answer (either `{ diff: {...} }` or the bare diff record). */
17
+ export declare function projectFileDiffRow(file: {
18
+ path: string;
19
+ oldPath?: string | null;
20
+ status?: string;
21
+ }, rawResult: unknown, maxLines: number): GitFileDiffRow;
package/dist/index.d.ts CHANGED
@@ -18,7 +18,7 @@ export * from './node-facts';
18
18
  export * from './workspace-normalize';
19
19
  export * from './daemon-normalize';
20
20
  export * from './git-summarize';
21
- export * from './magi';
21
+ export * from './git-diff';
22
22
  export * from './brain-routing';
23
23
  export * from './slot-proposal';
24
24
  export * from './interpolation';