@colbymchenry/codegraph 1.1.0 → 1.1.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.
package/README.md CHANGED
@@ -747,6 +747,8 @@ Framework routing is validated the same way, on a canonical app per framework: E
747
747
 
748
748
  **MCP server not connecting** — Your agent starts the server itself, so you don't launch it by hand. Make sure the project is initialized and indexed (`codegraph status`) and that the path in your MCP config is correct. If it still won't connect, re-run `codegraph install` to rewrite the config.
749
749
 
750
+ **MCP tool calls fail with `Transport closed` while `codegraph status`/`sync` are healthy** — almost always WSL2 with the project on a Windows drive (a `/mnt/c` or `/mnt/d` path), where the local socket CodeGraph uses to share one background server across sessions is unreliable. CodeGraph now falls back to serving the session in-process instead of dropping the connection, but if you still hit it, set `CODEGRAPH_NO_DAEMON=1` in your MCP server's environment to skip the shared server entirely (each session runs in its own process). Moving the project onto the Linux-native filesystem (e.g. under `~/` instead of `/mnt/`) restores the shared server.
751
+
750
752
  **Missing symbols** — The MCP server auto-syncs on save (wait a couple seconds). Run `codegraph sync` manually if needed. Check that the file's language is supported and isn't inside a `.gitignore`d or default-excluded directory (e.g. `node_modules`, `dist`).
751
753
 
752
754
  **Sharing one checkout between Windows and WSL** — Don't point both at the same `.codegraph/`: the background-server lock and the SQLite index are tied to the OS that wrote them, and SQLite locking across the WSL2/Windows filesystem boundary is unreliable. Give each side its own index in the same tree by setting `CODEGRAPH_DIR` to a distinct name on one of them — e.g. `CODEGRAPH_DIR=.codegraph-win` on Windows, leaving WSL on the default `.codegraph`. CodeGraph skips any sibling `.codegraph-*` directory when indexing and watching, so the two never trip over each other.
@@ -82,9 +82,12 @@ export declare class ScopeIgnore {
82
82
  export declare function buildScopeIgnore(rootDir: string, embeddedRoots?: Iterable<string>): ScopeIgnore;
83
83
  /**
84
84
  * Standalone discovery of every embedded repo root under `rootDir` (relative,
85
- * trailing-slashed) — both the untracked kind (#193) and the gitignored kind
86
- * (#514), recursively (an embedded repo can embed further repos). Returns []
87
- * for non-git roots: the filesystem walk handles nested repos there already.
85
+ * trailing-slashed) — the untracked kind (#193) always, and the gitignored kind
86
+ * (#514) only for directories the project opted in via `codegraph.json`
87
+ * `includeIgnored` (#622, #699); otherwise `.gitignore` is respected and they
88
+ * are not discovered (#970, #976). Recursive (an embedded repo can embed further
89
+ * repos). Returns [] for non-git roots: the filesystem walk handles nested repos
90
+ * there already.
88
91
  */
89
92
  export declare function discoverEmbeddedRepoRoots(rootDir: string): string[];
90
93
  /**
@@ -4,6 +4,14 @@ export declare const PROJECT_CONFIG_FILENAME = "codegraph.json";
4
4
  export interface ProjectConfig {
5
5
  /** Map of custom file extension (`.foo`) to a supported language id. */
6
6
  extensions?: Record<string, string>;
7
+ /**
8
+ * Gitignore-style patterns naming gitignored directories whose embedded git
9
+ * repositories should be indexed anyway — the explicit opt-in to override
10
+ * `.gitignore` for nested-repo discovery (#622, #699). Absent/empty (the
11
+ * default) means `.gitignore` is fully respected: gitignored embedded repos
12
+ * are never discovered or indexed (#970, #976).
13
+ */
14
+ includeIgnored?: string[];
7
15
  }
8
16
  /**
9
17
  * Load the validated extension overrides for a project, mtime-cached.
@@ -14,6 +22,15 @@ export interface ProjectConfig {
14
22
  * map when there is no `codegraph.json` (the zero-config default).
15
23
  */
16
24
  export declare function loadExtensionOverrides(rootDir: string): Record<string, Language>;
25
+ /**
26
+ * Load the validated `includeIgnored` patterns for a project, mtime-cached.
27
+ *
28
+ * These name gitignored directories whose embedded git repositories should be
29
+ * indexed despite `.gitignore` (#622, #699). An empty result — the zero-config
30
+ * default — means `.gitignore` is fully respected: gitignored embedded repos
31
+ * are never discovered or indexed (#970, #976).
32
+ */
33
+ export declare function loadIncludeIgnoredPatterns(rootDir: string): string[];
17
34
  /** Test/maintenance hook: forget cached config (e.g. after rewriting it in a test). */
18
35
  export declare function clearProjectConfigCache(): void;
19
36
  //# sourceMappingURL=project-config.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colbymchenry/codegraph",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Local-first code intelligence for AI agents (MCP). Self-contained — bundles its own runtime.",
5
5
  "bin": {
6
6
  "codegraph": "npm-shim.js"
@@ -15,12 +15,12 @@
15
15
  "./package.json": "./package.json"
16
16
  },
17
17
  "optionalDependencies": {
18
- "@colbymchenry/codegraph-darwin-arm64": "1.1.0",
19
- "@colbymchenry/codegraph-darwin-x64": "1.1.0",
20
- "@colbymchenry/codegraph-linux-arm64": "1.1.0",
21
- "@colbymchenry/codegraph-linux-x64": "1.1.0",
22
- "@colbymchenry/codegraph-win32-arm64": "1.1.0",
23
- "@colbymchenry/codegraph-win32-x64": "1.1.0"
18
+ "@colbymchenry/codegraph-darwin-arm64": "1.1.1",
19
+ "@colbymchenry/codegraph-darwin-x64": "1.1.1",
20
+ "@colbymchenry/codegraph-linux-arm64": "1.1.1",
21
+ "@colbymchenry/codegraph-linux-x64": "1.1.1",
22
+ "@colbymchenry/codegraph-win32-arm64": "1.1.1",
23
+ "@colbymchenry/codegraph-win32-x64": "1.1.1"
24
24
  },
25
25
  "files": [
26
26
  "npm-shim.js",