UNPKG

agentlang

Version:

The easiest way to build the most reliable AI agents - enterprise-grade teams of AI agents that collaborate with each other and humans

20 lines (14 loc) 616 B
import { EmptyFileSystem } from 'langium'; import { startLanguageServer } from 'langium/lsp'; import { BrowserMessageReader, BrowserMessageWriter, createConnection, } from 'vscode-languageserver/browser.js'; import { createAgentlangServices } from './agentlang-module.js'; declare const self: DedicatedWorkerGlobalScope; const messageReader = new BrowserMessageReader(self); const messageWriter = new BrowserMessageWriter(self); const connection = createConnection(messageReader, messageWriter); const { shared } = createAgentlangServices({ connection, ...EmptyFileSystem }); startLanguageServer(shared);