@anmezing/lce-cloud 1.4.2 → 1.6.0
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 +64 -54
- package/lce-cloud.cjs +13 -287
- package/package.json +23 -23
package/README.md
CHANGED
|
@@ -50,19 +50,29 @@ The client resolves project roots in this order:
|
|
|
50
50
|
1. Repeatable `--repo <absolute-git-repository>` arguments.
|
|
51
51
|
2. Standard workspace roots reported by the MCP client through `roots/list`.
|
|
52
52
|
3. A safety-validated process directory when it is itself a Git repository.
|
|
53
|
-
4. An absolute `repo_path` supplied on an LCE tool call. This fallback registers and
|
|
54
|
-
starts indexing that repository without restarting the MCP server.
|
|
55
|
-
|
|
56
|
-
Each root indexes its own working tree. Scanning stops at nested repositories,
|
|
57
|
-
including linked worktrees and initialized submodules with a `.git` file. Register
|
|
58
|
-
those repositories separately with another `--repo` or workspace root to index them.
|
|
59
|
-
Ordinary monorepo package directories without their own `.git` remain included.
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
`
|
|
65
|
-
|
|
53
|
+
4. An absolute `repo_path` supplied on an LCE tool call. This fallback registers and
|
|
54
|
+
starts indexing that repository without restarting the MCP server.
|
|
55
|
+
|
|
56
|
+
Each root indexes its own working tree. Scanning stops at nested repositories,
|
|
57
|
+
including linked worktrees and initialized submodules with a `.git` file. Register
|
|
58
|
+
those repositories separately with another `--repo` or workspace root to index them.
|
|
59
|
+
Ordinary monorepo package directories without their own `.git` remain included.
|
|
60
|
+
|
|
61
|
+
With several roots, a `codebase-retrieval` call that carries neither `root_id` nor
|
|
62
|
+
`repo_path` searches every ready root and merges the ranked lists by rank: each file
|
|
63
|
+
carries its `rootId`, `payload.multiRoot` lists every root with its status (`ready`,
|
|
64
|
+
`not_ready`, `error`, `omitted`), and the file list is capped to one root's worth with
|
|
65
|
+
the overflow reported in `omissions`. At most 8 roots are queried per call. The
|
|
66
|
+
symbol-graph and deep-graph tools stay scoped to one root — the first resolved root
|
|
67
|
+
unless `root_id` or `repo_path` says otherwise — so read `available_roots` from
|
|
68
|
+
`codebase_index_status` and pass `root_id` to target another repository, or pass it
|
|
69
|
+
to retrieval when one root should be read in full.
|
|
70
|
+
|
|
71
|
+
Cloud upload exclusions are mandatory: Git ignore negations cannot re-include
|
|
72
|
+
lockfiles such as `package-lock.json`, environment files, or generated/binary paths
|
|
73
|
+
rejected by Relay. The client and Relay share the versioned
|
|
74
|
+
`cloud-index-path-policy.json` contract. Local-only indexing retains its normal
|
|
75
|
+
configurable ignore rules.
|
|
66
76
|
|
|
67
77
|
Some MCP hosts do not implement `roots/list` and start servers from the editor's
|
|
68
78
|
installation directory. For those hosts, add the project root explicitly:
|
|
@@ -89,46 +99,46 @@ Use the native absolute path for Windows, macOS, or Linux. LCE refuses relative
|
|
|
89
99
|
paths, non-Git directories, home directories, and filesystem roots. `repo_path` is
|
|
90
100
|
handled only by the local npm client and is never forwarded to Relay.
|
|
91
101
|
|
|
92
|
-
## Automatic Swift compiler synchronization
|
|
93
|
-
|
|
94
|
-
After source publication, the client automatically collects Swift semantic facts
|
|
95
|
-
on the development/build host and uploads them to the server. Ubuntu publishes
|
|
96
|
-
them through the existing index-publication-worker and Neo4j projector. No manual
|
|
97
|
-
snapshot export or transfer is needed for subsequent source updates.
|
|
98
|
-
|
|
99
|
-
The build host needs SourceKit-LSP and an existing repository-root `buildServer.json`,
|
|
100
|
-
`compile_commands.json`, or `Package.swift`. Apple SDK projects need the development
|
|
101
|
-
Mac with Xcode and a SourceKit-compatible build-server configuration for the selected
|
|
102
|
-
scheme. LCE reuses that configuration; it does not install Xcode, choose a scheme,
|
|
103
|
-
or run arbitrary project build commands. A project without build context remains
|
|
104
|
-
searchable through its source index and reports compiler status `unavailable`.
|
|
105
|
-
Linux-buildable Swift can use a Linux build host. Other languages keep their existing
|
|
106
|
-
server compiler backends. The computer issuing queries does not need to be a Mac.
|
|
107
|
-
|
|
108
|
-
`codebase_index_status` exposes independent `compiler_status` states: `collecting`,
|
|
109
|
-
`uploading`, `publishing`, `ready`, `unavailable`, `failed`, and `disabled`. `ready`
|
|
110
|
-
means the validated compiler snapshot was published; graph projection freshness and
|
|
111
|
-
per-file semantic coverage still apply. It does not certify a successful application
|
|
112
|
-
build or complete runtime dispatch coverage. Set `LCE_SWIFT_SYNC=off` to disable.
|
|
113
|
-
|
|
114
|
-
Collection is serialized per client process, with at most 32 waiting roots, a 15-minute
|
|
115
|
-
compiler deadline and a 30-minute collection/upload deadline. A snapshot is limited
|
|
116
|
-
to 5,000 Swift files, 20,000 manifest files, 64 MiB of verified source, and 128 MiB of
|
|
117
|
-
artifact data, uploaded in 256 KiB parts. Source/config changes cancel stale work.
|
|
118
|
-
State checks run at most once per minute. Three collection attempts per source/config
|
|
119
|
-
fingerprint persist across restart; correcting the source or build configuration
|
|
120
|
-
enables fresh attempts. The server permits three active uploads per tenant, 64
|
|
121
|
-
globally, and one Swift publication at a time with three bounded attempts. Expired
|
|
122
|
-
uploads are cleaned up, and accepted publications survive client disconnects.
|
|
123
|
-
Synchronization makes no embedding or reranking provider calls. Its MCP requests
|
|
124
|
-
remain subject to Relay's existing request quota: preparation uses one plan request
|
|
125
|
-
per Swift file, plus bounded upload parts and publication checks.
|
|
126
|
-
|
|
127
|
-
Deploy the matching LCE server and Relay versions before updating build-host clients.
|
|
128
|
-
The client synchronization tool is internal to this workflow and is not included in
|
|
129
|
-
the eight tools exposed by the npm client to the coding agent.
|
|
130
|
-
|
|
131
|
-
## Exposed tools
|
|
102
|
+
## Automatic Swift compiler synchronization
|
|
103
|
+
|
|
104
|
+
After source publication, the client automatically collects Swift semantic facts
|
|
105
|
+
on the development/build host and uploads them to the server. Ubuntu publishes
|
|
106
|
+
them through the existing index-publication-worker and Neo4j projector. No manual
|
|
107
|
+
snapshot export or transfer is needed for subsequent source updates.
|
|
108
|
+
|
|
109
|
+
The build host needs SourceKit-LSP and an existing repository-root `buildServer.json`,
|
|
110
|
+
`compile_commands.json`, or `Package.swift`. Apple SDK projects need the development
|
|
111
|
+
Mac with Xcode and a SourceKit-compatible build-server configuration for the selected
|
|
112
|
+
scheme. LCE reuses that configuration; it does not install Xcode, choose a scheme,
|
|
113
|
+
or run arbitrary project build commands. A project without build context remains
|
|
114
|
+
searchable through its source index and reports compiler status `unavailable`.
|
|
115
|
+
Linux-buildable Swift can use a Linux build host. Other languages keep their existing
|
|
116
|
+
server compiler backends. The computer issuing queries does not need to be a Mac.
|
|
117
|
+
|
|
118
|
+
`codebase_index_status` exposes independent `compiler_status` states: `collecting`,
|
|
119
|
+
`uploading`, `publishing`, `ready`, `unavailable`, `failed`, and `disabled`. `ready`
|
|
120
|
+
means the validated compiler snapshot was published; graph projection freshness and
|
|
121
|
+
per-file semantic coverage still apply. It does not certify a successful application
|
|
122
|
+
build or complete runtime dispatch coverage. Set `LCE_SWIFT_SYNC=off` to disable.
|
|
123
|
+
|
|
124
|
+
Collection is serialized per client process, with at most 32 waiting roots, a 15-minute
|
|
125
|
+
compiler deadline and a 30-minute collection/upload deadline. A snapshot is limited
|
|
126
|
+
to 5,000 Swift files, 20,000 manifest files, 64 MiB of verified source, and 128 MiB of
|
|
127
|
+
artifact data, uploaded in 256 KiB parts. Source/config changes cancel stale work.
|
|
128
|
+
State checks run at most once per minute. Three collection attempts per source/config
|
|
129
|
+
fingerprint persist across restart; correcting the source or build configuration
|
|
130
|
+
enables fresh attempts. The server permits three active uploads per tenant, 64
|
|
131
|
+
globally, and one Swift publication at a time with three bounded attempts. Expired
|
|
132
|
+
uploads are cleaned up, and accepted publications survive client disconnects.
|
|
133
|
+
Synchronization makes no embedding or reranking provider calls. Its MCP requests
|
|
134
|
+
remain subject to Relay's existing request quota: preparation uses one plan request
|
|
135
|
+
per Swift file, plus bounded upload parts and publication checks.
|
|
136
|
+
|
|
137
|
+
Deploy the matching LCE server and Relay versions before updating build-host clients.
|
|
138
|
+
The client synchronization tool is internal to this workflow and is not included in
|
|
139
|
+
the eight tools exposed by the npm client to the coding agent.
|
|
140
|
+
|
|
141
|
+
## Exposed tools
|
|
132
142
|
|
|
133
143
|
The npm client exposes eight tools to the coding agent. Six use the tenant-safe
|
|
134
144
|
server index or its synchronization state, while two run against the local Git checkout:
|
|
@@ -137,7 +147,7 @@ server index or its synchronization state, while two run against the local Git c
|
|
|
137
147
|
| --- | --- | --- |
|
|
138
148
|
| `codebase-retrieval` | LCE server + local npm client | Semantic retrieval, coarse ranking, and reranking, complemented by local Graphify/OKF evidence when present |
|
|
139
149
|
| `codebase_symbol_graph` | LCE server | Symbol definitions, references, call chains, dependencies, and shallow change impact |
|
|
140
|
-
| `codebase_deep_graph` | LCE server | Bounded Neo4j deep traversal for multi-hop impact, paths, cycles, SCC, and centrality;
|
|
150
|
+
| `codebase_deep_graph` | LCE server | Bounded Neo4j deep traversal for multi-hop impact, paths, cycles, SCC, and centrality; `query_type=global_dependencies` returns the tenant-wide repository dependency graph derived from declared route keys over one published branch view per repository |
|
|
141
151
|
| `codebase_graph_algorithm` | LCE server | Submit or inspect generation-bound asynchronous SCC/centrality jobs; a separately deployed Neo4j GDS worker executes them only after a successful capability probe and fresh heartbeat |
|
|
142
152
|
| `codebase_enhance_prompt` | LCE server | Convert a natural-language task into a code-grounded implementation brief |
|
|
143
153
|
| `codebase_index_status` | LCE client + Relay | Report readiness, synchronization progress, and failure details for one or all project roots |
|