naider 1.24.4 → 2.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.
- package/README.md +28 -83
- package/SPEC.naide +8 -6
- package/bin/naide.js +42 -103
- package/bin/postinstall.js +5 -15
- package/examples/model.naide +1 -1
- package/lsp/server.js +1 -2
- package/mcp/server.js +2 -2
- package/package.json +2 -4
- package/src/gen.js +975 -273
- package/src/generator.js +5 -1
- package/src/index.js +34 -14
- package/src/parser.js +15 -14
- package/src/typechecker.js +60 -13
- package/vscode-naide/README.md +4 -6
- package/vscode-naide/extension.js +1 -2
- package/vscode-naide/package-lock.json +2 -2
- package/vscode-naide/package.json +3 -15
- package/SPEC-X.nx +0 -276
- package/assets/nx.ico +0 -0
- package/assets/nx_check.png +0 -0
- package/examples/ai-app.nx +0 -21
- package/examples/async.nx +0 -40
- package/examples/crud.nx +0 -64
- package/examples/fullapp.nx +0 -74
- package/examples/hello.nx +0 -29
- package/examples/server.nx +0 -27
- package/examples/sql-app.nx +0 -23
- package/examples/todo-api.nx +0 -31
- package/src/preprocess.js +0 -308
- package/vscode-naide/language-configuration-nx.json +0 -32
- package/vscode-naide/naide-lang-1.1.0.vsix +0 -0
- package/vscode-naide/syntaxes/naidex.tmLanguage.json +0 -287
package/mcp/server.js
CHANGED
|
@@ -33,7 +33,7 @@ function respondError(id, code, message) {
|
|
|
33
33
|
const TOOLS = [
|
|
34
34
|
{
|
|
35
35
|
name: 'naide_compile',
|
|
36
|
-
description: 'Compile NAIDE code to a target language.
|
|
36
|
+
description: 'Compile readable NAIDE source code to a target language.',
|
|
37
37
|
inputSchema: {
|
|
38
38
|
type: 'object',
|
|
39
39
|
properties: {
|
|
@@ -192,7 +192,7 @@ async function handleMessage(msg) {
|
|
|
192
192
|
respond(msg.id, {
|
|
193
193
|
protocolVersion: '2024-11-05',
|
|
194
194
|
capabilities: { tools: {} },
|
|
195
|
-
serverInfo: { name: 'naide-mcp', version: '
|
|
195
|
+
serverInfo: { name: 'naide-mcp', version: '2.0.0' }
|
|
196
196
|
});
|
|
197
197
|
break;
|
|
198
198
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "naider",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "NAIDE
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "NAIDE is a readable, practical programming language with a single syntax, a compiler, type checking, and batteries-included development tools.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": "./src/index.js",
|
|
@@ -21,14 +21,12 @@
|
|
|
21
21
|
"examples/",
|
|
22
22
|
"vscode-naide/",
|
|
23
23
|
"SPEC.naide",
|
|
24
|
-
"SPEC-X.nx",
|
|
25
24
|
"README.md",
|
|
26
25
|
"LICENSE"
|
|
27
26
|
],
|
|
28
27
|
"scripts": {
|
|
29
28
|
"test": "node --test test/test.js",
|
|
30
29
|
"example": "node bin/naide.js examples/hello.naide",
|
|
31
|
-
"example:x": "node bin/naide.js examples/hello.nx",
|
|
32
30
|
"postinstall": "node bin/postinstall.js"
|
|
33
31
|
},
|
|
34
32
|
"keywords": [
|