@constela/language-server 0.1.5 → 0.1.9

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/dist/index.js +6 -1
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -114,7 +114,8 @@ var ACTION_STEPS = [
114
114
  { label: "interval", detail: "Interval step - executes an action repeatedly (setInterval equivalent)", kind: CompletionItemKind.Function },
115
115
  { label: "clearTimer", detail: "ClearTimer step - clears a timer (clearTimeout/clearInterval equivalent)", kind: CompletionItemKind.Function },
116
116
  { label: "focus", detail: "Focus step - manages form element focus", kind: CompletionItemKind.Function },
117
- { label: "if", detail: "If step - conditional action execution", kind: CompletionItemKind.Function }
117
+ { label: "if", detail: "If step - conditional action execution", kind: CompletionItemKind.Function },
118
+ { label: "generate", detail: "Generate step - generates DSL using AI at runtime", kind: CompletionItemKind.Function }
118
119
  ];
119
120
  var VIEW_NODES = [
120
121
  { label: "element", detail: "Element node - represents an HTML element", kind: CompletionItemKind.Class },
@@ -384,6 +385,10 @@ var ACTION_DOCS = {
384
385
  if: {
385
386
  signature: '{ "do": "if", "condition": Expression, "then": ActionStep[], "else"?: ActionStep[] }',
386
387
  description: "If step - conditional action execution"
388
+ },
389
+ generate: {
390
+ signature: '{ "do": "generate", "provider": AiProviderType, "prompt": Expression, "output": AiOutputType, "result": string, "model"?: string, "onSuccess"?: ActionStep[], "onError"?: ActionStep[] }',
391
+ description: "Generate step - generates DSL using AI at runtime"
387
392
  }
388
393
  };
389
394
  var VIEW_DOCS = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constela/language-server",
3
- "version": "0.1.5",
3
+ "version": "0.1.9",
4
4
  "description": "Language Server Protocol implementation for Constela DSL",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -23,8 +23,8 @@
23
23
  "vscode-languageserver-textdocument": "^1.0.12",
24
24
  "vscode-jsonrpc": "^8.2.1",
25
25
  "jsonc-parser": "^3.3.1",
26
- "@constela/core": "0.15.2",
27
- "@constela/compiler": "0.14.3"
26
+ "@constela/compiler": "0.14.7",
27
+ "@constela/core": "0.16.2"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/node": "^20.10.0",