@mrclrchtr/supi-code-runtime 8.0.1 → 9.0.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/types.ts +10 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrclrchtr/supi-code-runtime",
3
- "version": "8.0.1",
3
+ "version": "9.0.0",
4
4
  "description": "Shared workspace context and capability contracts for code intelligence",
5
5
  "license": "MIT",
6
6
  "repository": {
package/src/types.ts CHANGED
@@ -94,6 +94,10 @@ export type ConfidenceMode = "semantic" | "structural" | "heuristic" | "unavaila
94
94
  export interface OutlineData {
95
95
  name: string;
96
96
  kind: string;
97
+ /** Exact 1-based start of the declaration name token, when known. */
98
+ nameAnchor?: SymbolAnchor;
99
+ /** Exclusive 1-based end of a verified literal name span, when known. */
100
+ nameEndAnchor?: SymbolAnchor;
97
101
  startLine: number;
98
102
  startCharacter: number;
99
103
  endLine: number;
@@ -216,7 +220,12 @@ export type RefactorResult =
216
220
  authorizedMutationRoots: string[];
217
221
  }
218
222
  | { kind: "ambiguous"; candidates: DisambiguationCandidate[] }
219
- | { kind: "unavailable"; reason: string };
223
+ | {
224
+ kind: "unavailable";
225
+ reason: string;
226
+ /** Roots authorized by the routed LSP client, when a route returned no edit. */
227
+ authorizedMutationRoots?: string[];
228
+ };
220
229
 
221
230
  // ── Structural data shapes (value types, range-flattened) ──────────────
222
231