stan-language-server 0.2.0-beta.1 → 0.3.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,17 +1,6 @@
1
+ import type { FileContent, Filename } from "../handlers/compilation/includes";
1
2
  export interface Position {
2
3
  line: number;
3
4
  character: number;
4
5
  }
5
- type StancSuccess = {
6
- errors: undefined;
7
- result: string;
8
- warnings?: string[];
9
- };
10
- type StancFailure = {
11
- errors: string[];
12
- result: undefined;
13
- warnings?: string[];
14
- };
15
- export type StancReturn = StancSuccess | StancFailure;
16
- export type StancFunction = (filename: string, code: string, options: string[], includes?: Record<string, string>) => StancReturn;
17
- export {};
6
+ export type FileSystemReader = (filename: Filename) => Promise<FileContent>;
@@ -1,4 +1,2 @@
1
1
  export * from './common';
2
2
  export * from './completion';
3
- export * from './diagnostics';
4
- export * from './formatting';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stan-language-server",
3
- "version": "0.2.0-beta.1",
3
+ "version": "0.3.0",
4
4
  "description": "Language Server Protocol implementation for the Stan probabilistic programming language",
5
5
  "main": "dist/server/index.js",
6
6
  "module": "src/server/index.ts",
@@ -46,8 +46,8 @@
46
46
  "node": ">=18.0.0"
47
47
  },
48
48
  "scripts": {
49
- "build": "bun build src/server/cli.ts --outdir dist/server --target node --format esm && bun build src/server/index.ts --outdir dist/server --target node --format esm && bun build src/types/index.ts --outdir dist/types --target node --format esm && tsc --emitDeclarationOnly --outDir dist",
50
- "build:binary": "bun build src/server/cli.ts --compile --outfile bin/stan-language-server",
49
+ "build": "bun build src/server/index.ts --outdir dist/server --packages external --target browser --format esm && tsc --emitDeclarationOnly --outDir dist",
50
+ "build:binary": "bun build src/server/cli.ts --drop=console --compile --outfile bin/stan-language-server",
51
51
  "prepublishOnly": "bun run build",
52
52
  "version:set": "bun run scripts/set-version.ts",
53
53
  "publish:npm": "npm publish --access public --provenance",
@@ -64,13 +64,14 @@
64
64
  },
65
65
  "devDependencies": {
66
66
  "@types/bun": "latest",
67
- "@types/node": "24.4.0",
67
+ "@types/node": "24.7.0",
68
68
  "@typescript-eslint/eslint-plugin": "^8.0.0",
69
69
  "@typescript-eslint/parser": "^8.0.0",
70
70
  "eslint": "^9.0.0",
71
- "typescript": "5.9.2"
71
+ "typescript": "5.9.3"
72
72
  },
73
73
  "dependencies": {
74
+ "stanc3": "^2.37.0",
74
75
  "trie-search": "2.2.0",
75
76
  "vscode-languageserver": "9.0.1",
76
77
  "vscode-languageserver-textdocument": "1.0.12",
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- export { provideDiagnostics } from "./provider";
2
- export { rangeFromMessage, getWarningMessage, getErrorMessage } from "./linter";
@@ -1,5 +0,0 @@
1
- import type { Range } from "../../types/diagnostics";
2
- declare function rangeFromMessage(message: string): Range | undefined;
3
- declare function getWarningMessage(message: string): string;
4
- declare function getErrorMessage(message: string): string;
5
- export { rangeFromMessage, getWarningMessage, getErrorMessage };
@@ -1 +0,0 @@
1
- export { provideFormatting } from "./provider";
@@ -1,2 +0,0 @@
1
- import type { FormattingContext, FormattingResult } from "../../types/formatting";
2
- export declare function provideFormatting(context: FormattingContext): FormattingResult;