@telorun/ide-support 0.107.0 → 0.108.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.
@@ -1 +1 @@
1
- {"version":3,"file":"symbols.d.ts","sourceRoot":"","sources":["../../src/cel/symbols.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD;;;iCAGiC;AACjC,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,iFAAiF;IACjF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6DAA6D;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,oEAAoE;IACpE,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB;;6DAEyD;IACzD,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;4CACwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;uEACuE;AACvE,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAgB1F;AASD;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,QAAQ,GAAG,SAAS,EAAE,CAoB3D;AAcD;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS,EAAE,CAc/E;AAED;;2CAE2C;AAC3C,wBAAgB,WAAW,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,SAAS,GAAG,SAAS,CAanF;AAED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AC,KAAK,EAAE,QAAQ,GAAG,iBAAiB,EAAE,CAkBjE"}
@@ -1,3 +1,4 @@
1
+ import { formatType } from "@telorun/cel";
1
2
  import { navigateSchema } from "../completions/detect-context.js";
2
3
  /** The type a schema node declares, rendered for display. Unions are joined
3
4
  * rather than collapsed — a slot admitting several shapes says so. */
@@ -40,10 +41,11 @@ function contextProperties(scope) {
40
41
  */
41
42
  export function celRootSymbols(scope) {
42
43
  const out = new Map();
43
- for (const variable of scope.env.getDefinitions().variables) {
44
+ for (const variable of scope.env.definitions().variables) {
44
45
  out.set(variable.name, {
45
46
  name: variable.name,
46
- type: variable.type,
47
+ // The listing carries the type's own spelling; a `CelType` is the engine's object.
48
+ type: formatType(variable.type),
47
49
  description: variable.description ?? undefined,
48
50
  });
49
51
  }
@@ -127,7 +129,7 @@ export function celSymbolAt(scope, parts) {
127
129
  */
128
130
  export function celFunctions(scope) {
129
131
  const byKey = new Map();
130
- for (const fn of scope.env.getDefinitions().functions) {
132
+ for (const fn of scope.env.definitions().functions) {
131
133
  const key = `${fn.receiverType ?? ""}.${fn.name}`;
132
134
  const existing = byKey.get(key);
133
135
  if (existing) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telorun/ide-support",
3
- "version": "0.107.0",
3
+ "version": "0.108.0",
4
4
  "description": "Editor-host-agnostic IDE support (completions, diagnostic normalization) for Telo manifests.",
5
5
  "keywords": [
6
6
  "telo",
@@ -37,15 +37,16 @@
37
37
  ],
38
38
  "dependencies": {
39
39
  "yaml": "^2.8.3",
40
- "@telorun/analyzer": "0.107.0",
41
- "@telorun/templating": "0.107.0"
40
+ "@telorun/analyzer": "0.108.0",
41
+ "@telorun/cel": "0.108.0",
42
+ "@telorun/templating": "0.108.0"
42
43
  },
43
44
  "devDependencies": {
44
45
  "@types/node": "^20.0.0",
45
46
  "typescript": "^5.0.0",
46
47
  "vitest": "^2.1.8",
47
48
  "@telorun/glob": "0.3.0",
48
- "@telorun/sdk": "0.107.0"
49
+ "@telorun/sdk": "0.108.0"
49
50
  },
50
51
  "peerDependencies": {
51
52
  "@telorun/sdk": "*"
@@ -1,3 +1,4 @@
1
+ import { formatType } from "@telorun/cel";
1
2
  /**
2
3
  * **What a name means inside a CEL expression.**
3
4
  *
@@ -85,10 +86,11 @@ function contextProperties(scope: CelScope): Record<string, any> {
85
86
  */
86
87
  export function celRootSymbols(scope: CelScope): CelSymbol[] {
87
88
  const out = new Map<string, CelSymbol>();
88
- for (const variable of scope.env.getDefinitions().variables) {
89
+ for (const variable of scope.env.definitions().variables) {
89
90
  out.set(variable.name, {
90
91
  name: variable.name,
91
- type: variable.type,
92
+ // The listing carries the type's own spelling; a `CelType` is the engine's object.
93
+ type: formatType(variable.type),
92
94
  description: variable.description ?? undefined,
93
95
  });
94
96
  }
@@ -170,7 +172,7 @@ export function celSymbolAt(scope: CelScope, parts: string[]): CelSymbol | undef
170
172
  */
171
173
  export function celFunctions(scope: CelScope): CelFunctionSymbol[] {
172
174
  const byKey = new Map<string, CelFunctionSymbol>();
173
- for (const fn of scope.env.getDefinitions().functions) {
175
+ for (const fn of scope.env.definitions().functions) {
174
176
  const key = `${fn.receiverType ?? ""}.${fn.name}`;
175
177
  const existing = byKey.get(key);
176
178
  if (existing) {