agentlang 0.9.6 → 0.9.7

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 (78) hide show
  1. package/out/cli/main.d.ts.map +1 -1
  2. package/out/cli/main.js +8 -3
  3. package/out/cli/main.js.map +1 -1
  4. package/out/extension/main.cjs +250 -250
  5. package/out/extension/main.cjs.map +2 -2
  6. package/out/language/generated/ast.js +1 -0
  7. package/out/language/generated/ast.js.map +1 -1
  8. package/out/language/main.cjs +2420 -776
  9. package/out/language/main.cjs.map +4 -4
  10. package/out/runtime/docs.d.ts.map +1 -1
  11. package/out/runtime/docs.js +109 -7
  12. package/out/runtime/docs.js.map +1 -1
  13. package/out/runtime/embeddings/chunker.d.ts +9 -0
  14. package/out/runtime/embeddings/chunker.d.ts.map +1 -0
  15. package/out/runtime/embeddings/chunker.js +41 -0
  16. package/out/runtime/embeddings/chunker.js.map +1 -0
  17. package/out/runtime/embeddings/index.d.ts +6 -0
  18. package/out/runtime/embeddings/index.d.ts.map +1 -0
  19. package/out/runtime/embeddings/index.js +6 -0
  20. package/out/runtime/embeddings/index.js.map +1 -0
  21. package/out/runtime/embeddings/openai.d.ts +15 -0
  22. package/out/runtime/embeddings/openai.d.ts.map +1 -0
  23. package/out/runtime/embeddings/openai.js +34 -0
  24. package/out/runtime/embeddings/openai.js.map +1 -0
  25. package/out/runtime/embeddings/provider.d.ts +20 -0
  26. package/out/runtime/embeddings/provider.d.ts.map +1 -0
  27. package/out/runtime/embeddings/provider.js +17 -0
  28. package/out/runtime/embeddings/provider.js.map +1 -0
  29. package/out/runtime/embeddings/registry.d.ts +3 -0
  30. package/out/runtime/embeddings/registry.d.ts.map +1 -0
  31. package/out/runtime/embeddings/registry.js +16 -0
  32. package/out/runtime/embeddings/registry.js.map +1 -0
  33. package/out/runtime/interpreter.d.ts.map +1 -1
  34. package/out/runtime/interpreter.js +8 -4
  35. package/out/runtime/interpreter.js.map +1 -1
  36. package/out/runtime/module.d.ts +5 -2
  37. package/out/runtime/module.d.ts.map +1 -1
  38. package/out/runtime/module.js +14 -6
  39. package/out/runtime/module.js.map +1 -1
  40. package/out/runtime/modules/ai.d.ts +2 -0
  41. package/out/runtime/modules/ai.d.ts.map +1 -1
  42. package/out/runtime/modules/ai.js +62 -16
  43. package/out/runtime/modules/ai.js.map +1 -1
  44. package/out/runtime/resolvers/sqldb/database.d.ts +1 -1
  45. package/out/runtime/resolvers/sqldb/database.d.ts.map +1 -1
  46. package/out/runtime/resolvers/sqldb/database.js +127 -46
  47. package/out/runtime/resolvers/sqldb/database.js.map +1 -1
  48. package/out/runtime/resolvers/sqldb/impl.d.ts +21 -1
  49. package/out/runtime/resolvers/sqldb/impl.d.ts.map +1 -1
  50. package/out/runtime/resolvers/sqldb/impl.js +176 -45
  51. package/out/runtime/resolvers/sqldb/impl.js.map +1 -1
  52. package/package.json +188 -185
  53. package/public/pdf.worker.mjs +65152 -0
  54. package/src/cli/main.ts +7 -2
  55. package/src/language/generated/ast.ts +1 -1
  56. package/src/runtime/docs.ts +120 -9
  57. package/src/runtime/embeddings/chunker.ts +50 -0
  58. package/src/runtime/embeddings/index.ts +5 -0
  59. package/src/runtime/embeddings/openai.ts +49 -0
  60. package/src/runtime/embeddings/provider.ts +37 -0
  61. package/src/runtime/embeddings/registry.ts +17 -0
  62. package/src/runtime/interpreter.ts +16 -12
  63. package/src/runtime/module.ts +48 -39
  64. package/src/runtime/modules/ai.ts +76 -19
  65. package/src/runtime/resolvers/sqldb/database.ts +133 -51
  66. package/src/runtime/resolvers/sqldb/impl.ts +235 -58
  67. package/out/setupClassic.d.ts +0 -98
  68. package/out/setupClassic.d.ts.map +0 -1
  69. package/out/setupClassic.js +0 -38
  70. package/out/setupClassic.js.map +0 -1
  71. package/out/setupCommon.d.ts +0 -2
  72. package/out/setupCommon.d.ts.map +0 -1
  73. package/out/setupCommon.js +0 -33
  74. package/out/setupCommon.js.map +0 -1
  75. package/out/setupExtended.d.ts +0 -40
  76. package/out/setupExtended.d.ts.map +0 -1
  77. package/out/setupExtended.js +0 -67
  78. package/out/setupExtended.js.map +0 -1
package/package.json CHANGED
@@ -1,186 +1,189 @@
1
1
  {
2
- "name": "agentlang",
3
- "description": "The easiest way to build the most reliable AI agents - enterprise-grade teams of AI agents that collaborate with each other and humans",
4
- "version": "0.9.6",
5
- "license": "Sustainable Use License",
6
- "author": "agentlang-ai",
7
- "homepage": "https://github.com/agentlang-ai/agentlang#readme",
8
- "repository": {
9
- "type": "git",
10
- "url": "git+https://github.com/agentlang-ai/agentlang.git"
11
- },
12
- "bugs": {
13
- "url": "https://github.com/agentlang-ai/agentlang/issues"
14
- },
15
- "keywords": [
16
- "agentlang",
17
- "agents-generation",
18
- "ai-agents",
19
- "enterprise",
20
- "multi-agent",
21
- "no-code",
22
- "agent-teams",
23
- "production-ready"
24
- ],
25
- "files": [
26
- "bin",
27
- "out",
28
- "src",
29
- "LICENSE"
30
- ],
31
- "type": "module",
32
- "publishConfig": {
33
- "access": "public",
34
- "registry": "https://registry.npmjs.org/"
35
- },
36
- "scripts": {
37
- "build": "tsc -b tsconfig.src.json && tsc -b tsconfig.declarations.json && node esbuild.mjs",
38
- "build:ts": "tsc -b tsconfig.src.json",
39
- "watch": "concurrently -n tsc,esbuild -c blue,yellow \"tsc -b tsconfig.src.json --watch\" \"node esbuild.mjs --watch\"",
40
- "lint": "eslint . --ext .ts",
41
- "lint:fix": "eslint . --ext .ts --fix",
42
- "format": "prettier --write \"src/**/*.{js,ts,tsx,json,md}\"",
43
- "format:check": "prettier --check \"src/**/*.{js,ts,tsx,json,md}\"",
44
- "langium:generate": "langium generate",
45
- "langium:generate:production": "langium generate --mode=production",
46
- "langium:watch": "langium generate --watch",
47
- "vscode:prepublish": "npm run build && npm run lint",
48
- "dev": "vite",
49
- "test": "vitest run",
50
- "test:verbose": "VITEST_VERBOSE=true vitest run"
51
- },
52
- "dependencies": {
53
- "@aws-sdk/client-cognito-identity": "^3.975.0",
54
- "@aws-sdk/client-cognito-identity-provider": "^3.975.0",
55
- "@aws-sdk/credential-providers": "^3.975.0",
56
- "@isomorphic-git/lightning-fs": "^4.6.2",
57
- "@langchain/anthropic": "^1.3.12",
58
- "@langchain/core": "^1.1.17",
59
- "@langchain/openai": "^1.2.3",
60
- "@modelcontextprotocol/sdk": "^1.25.3",
61
- "@types/multer": "^2.0.0",
62
- "amazon-cognito-identity-js": "^6.3.16",
63
- "aws-jwt-verify": "^5.1.1",
64
- "bcryptjs": "^3.0.3",
65
- "better-sqlite3": "^12.6.2",
66
- "buffer": "^6.0.3",
67
- "chalk": "~5.6.2",
68
- "commander": "~14.0.2",
69
- "deep-object-diff": "^1.1.9",
70
- "express": "^5.2.1",
71
- "handlebars": "^4.7.8",
72
- "langium": "^4.1.3",
73
- "multer": "^2.0.2",
74
- "openapi-client-axios": "^7.8.0",
75
- "pg": "^8.17.2",
76
- "pgvector": "^0.2.1",
77
- "reflect-metadata": "^0.2.2",
78
- "sql.js": "^1.13.0",
79
- "typeorm": "^0.3.28",
80
- "vscode-languageserver": "^9.0.1",
81
- "winston": "^3.19.0",
82
- "winston-daily-rotate-file": "^5.0.0",
83
- "zod": "^4.3.6"
84
- },
85
- "overrides": {
86
- "semver": "^7.5.3",
87
- "trim-newlines": ">=3.0.1"
88
- },
89
- "devDependencies": {
90
- "@codingame/esbuild-import-meta-url-plugin": "~1.0.3",
91
- "@eslint/js": "^9.39.2",
92
- "@types/cookie-parser": "^1.4.10",
93
- "@types/express": "^5.0.6",
94
- "@types/node": "^25.0.10",
95
- "@types/sql.js": "^1.4.9",
96
- "@types/vscode": "^1.108.1",
97
- "@typescript-eslint/eslint-plugin": "~8.54.0",
98
- "@typescript-eslint/parser": "~8.54.0",
99
- "brace-expansion": ">=4.0.1",
100
- "concurrently": "~9.2.1",
101
- "esbuild": "^0.27.2",
102
- "eslint": "^9.39.2",
103
- "http-server": "~14.1.1",
104
- "langium-cli": "^4.1.0",
105
- "nodemon": "^3.1.11",
106
- "prettier": "^3.8.1",
107
- "typescript": "^5.9.3",
108
- "typescript-eslint": "^8.54.0",
109
- "vite": "^7.3.1",
110
- "vite-plugin-node-polyfills": "^0.25.0",
111
- "vitest": "^4.0.18",
112
- "vscode-languageclient": "^9.0.1",
113
- "vscode-uri": "^3.1.0"
114
- },
115
- "volta": {
116
- "node": ">=20.0.0",
117
- "npm": ">=10.8.2"
118
- },
119
- "displayName": "agentlang",
120
- "engines": {
121
- "vscode": "^1.67.0",
122
- "node": ">=20.0.0"
123
- },
124
- "categories": [
125
- "Programming Languages"
126
- ],
127
- "contributes": {
128
- "languages": [
129
- {
130
- "id": "agentlang",
131
- "aliases": [
132
- "Agentlang",
133
- "agentlang"
134
- ],
135
- "extensions": [
136
- ".al"
137
- ],
138
- "configuration": "./language-configuration.json"
139
- }
140
- ],
141
- "grammars": [
142
- {
143
- "language": "agentlang",
144
- "scopeName": "source.agentlang",
145
- "path": "syntaxes/agentlang.tmLanguage.json"
146
- }
147
- ]
148
- },
149
- "activationEvents": [
150
- "onLanguage:agentlang"
151
- ],
152
- "main": "./out/extension/main.cjs",
153
- "types": "./out/index.d.ts",
154
- "exports": {
155
- ".": {
156
- "types": "./out/index.d.ts",
157
- "import": "./out/extension/main.cjs",
158
- "require": "./out/extension/main.cjs"
159
- },
160
- "./browser": {
161
- "types": "./out/browser.d.ts",
162
- "import": "./out/browser.js",
163
- "default": "./out/browser.js"
164
- },
165
- "./src/*": {
166
- "types": "./out/*.d.ts",
167
- "import": "./out/*.js",
168
- "require": "./out/*.js",
169
- "default": "./out/*.js"
170
- },
171
- "./out/*": "./out/*"
172
- },
173
- "bin": {
174
- "agentlang-cli": "./bin/cli.js"
175
- },
176
- "lint-staged": {
177
- "*.{js,ts,tsx}": [
178
- "eslint --fix --cache",
179
- "prettier --write"
180
- ],
181
- "*.{json,md,yml,yaml}": [
182
- "prettier --write"
183
- ]
184
- },
185
- "packageManager": "pnpm@10.28.2"
186
- }
2
+ "name": "agentlang",
3
+ "description": "The easiest way to build the most reliable AI agents - enterprise-grade teams of AI agents that collaborate with each other and humans",
4
+ "version": "0.9.7",
5
+ "license": "Sustainable Use License",
6
+ "author": "agentlang-ai",
7
+ "homepage": "https://github.com/agentlang-ai/agentlang#readme",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/agentlang-ai/agentlang.git"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/agentlang-ai/agentlang/issues"
14
+ },
15
+ "keywords": [
16
+ "agentlang",
17
+ "agents-generation",
18
+ "ai-agents",
19
+ "enterprise",
20
+ "multi-agent",
21
+ "no-code",
22
+ "agent-teams",
23
+ "production-ready"
24
+ ],
25
+ "files": [
26
+ "bin",
27
+ "out",
28
+ "src",
29
+ "public",
30
+ "LICENSE"
31
+ ],
32
+ "type": "module",
33
+ "publishConfig": {
34
+ "access": "public",
35
+ "registry": "https://registry.npmjs.org/"
36
+ },
37
+ "dependencies": {
38
+ "@aws-sdk/client-cognito-identity": "^3.975.0",
39
+ "@aws-sdk/client-cognito-identity-provider": "^3.975.0",
40
+ "@aws-sdk/credential-providers": "^3.975.0",
41
+ "@isomorphic-git/lightning-fs": "^4.6.2",
42
+ "@langchain/anthropic": "^1.3.12",
43
+ "@langchain/core": "^1.1.17",
44
+ "@langchain/openai": "^1.2.3",
45
+ "@modelcontextprotocol/sdk": "^1.25.3",
46
+ "@types/multer": "^2.0.0",
47
+ "amazon-cognito-identity-js": "^6.3.16",
48
+ "aws-jwt-verify": "^5.1.1",
49
+ "bcryptjs": "^3.0.3",
50
+ "better-sqlite3": "^12.6.2",
51
+ "buffer": "^6.0.3",
52
+ "chalk": "~5.6.2",
53
+ "commander": "~14.0.2",
54
+ "deep-object-diff": "^1.1.9",
55
+ "express": "^5.2.1",
56
+ "handlebars": "^4.7.8",
57
+ "langium": "^4.1.3",
58
+ "marked": "^17.0.1",
59
+ "multer": "^2.0.2",
60
+ "openapi-client-axios": "^7.8.0",
61
+ "pdf-parse": "^2.4.5",
62
+ "pg": "^8.17.2",
63
+ "pgvector": "^0.2.1",
64
+ "reflect-metadata": "^0.2.2",
65
+ "sql.js": "^1.13.0",
66
+ "sqlite-vec": "^0.1.7-alpha.2",
67
+ "typeorm": "^0.3.28",
68
+ "vscode-languageserver": "^9.0.1",
69
+ "winston": "^3.19.0",
70
+ "winston-daily-rotate-file": "^5.0.0",
71
+ "zod": "^4.3.6"
72
+ },
73
+ "overrides": {
74
+ "semver": "^7.5.3",
75
+ "trim-newlines": ">=3.0.1"
76
+ },
77
+ "devDependencies": {
78
+ "@codingame/esbuild-import-meta-url-plugin": "~1.0.3",
79
+ "@eslint/js": "^9.39.2",
80
+ "@types/cookie-parser": "^1.4.10",
81
+ "@types/express": "^5.0.6",
82
+ "@types/node": "^25.0.10",
83
+ "@types/sql.js": "^1.4.9",
84
+ "@types/vscode": "^1.108.1",
85
+ "@typescript-eslint/eslint-plugin": "~8.54.0",
86
+ "@typescript-eslint/parser": "~8.54.0",
87
+ "brace-expansion": ">=4.0.1",
88
+ "concurrently": "~9.2.1",
89
+ "esbuild": "^0.27.2",
90
+ "eslint": "^9.39.2",
91
+ "http-server": "~14.1.1",
92
+ "langium-cli": "^4.1.0",
93
+ "nodemon": "^3.1.11",
94
+ "prettier": "^3.8.1",
95
+ "typescript": "^5.9.3",
96
+ "typescript-eslint": "^8.54.0",
97
+ "vite": "^7.3.1",
98
+ "vite-plugin-node-polyfills": "^0.25.0",
99
+ "vitest": "^4.0.18",
100
+ "vscode-languageclient": "^9.0.1",
101
+ "vscode-uri": "^3.1.0"
102
+ },
103
+ "volta": {
104
+ "node": ">=20.0.0",
105
+ "npm": ">=10.8.2"
106
+ },
107
+ "displayName": "agentlang",
108
+ "engines": {
109
+ "vscode": "^1.67.0",
110
+ "node": ">=20.0.0"
111
+ },
112
+ "categories": [
113
+ "Programming Languages"
114
+ ],
115
+ "contributes": {
116
+ "languages": [
117
+ {
118
+ "id": "agentlang",
119
+ "aliases": [
120
+ "Agentlang",
121
+ "agentlang"
122
+ ],
123
+ "extensions": [
124
+ ".al"
125
+ ],
126
+ "configuration": "./language-configuration.json"
127
+ }
128
+ ],
129
+ "grammars": [
130
+ {
131
+ "language": "agentlang",
132
+ "scopeName": "source.agentlang",
133
+ "path": "syntaxes/agentlang.tmLanguage.json"
134
+ }
135
+ ]
136
+ },
137
+ "activationEvents": [
138
+ "onLanguage:agentlang"
139
+ ],
140
+ "main": "./out/extension/main.cjs",
141
+ "types": "./out/index.d.ts",
142
+ "exports": {
143
+ ".": {
144
+ "types": "./out/index.d.ts",
145
+ "import": "./out/extension/main.cjs",
146
+ "require": "./out/extension/main.cjs"
147
+ },
148
+ "./browser": {
149
+ "types": "./out/browser.d.ts",
150
+ "import": "./out/browser.js",
151
+ "default": "./out/browser.js"
152
+ },
153
+ "./src/*": {
154
+ "types": "./out/*.d.ts",
155
+ "import": "./out/*.js",
156
+ "require": "./out/*.js",
157
+ "default": "./out/*.js"
158
+ },
159
+ "./out/*": "./out/*"
160
+ },
161
+ "bin": {
162
+ "agentlang-cli": "./bin/cli.js"
163
+ },
164
+ "lint-staged": {
165
+ "*.{js,ts,tsx}": [
166
+ "eslint --fix --cache",
167
+ "prettier --write"
168
+ ],
169
+ "*.{json,md,yml,yaml}": [
170
+ "prettier --write"
171
+ ]
172
+ },
173
+ "scripts": {
174
+ "build": "tsc -b tsconfig.src.json && tsc -b tsconfig.declarations.json && node esbuild.mjs",
175
+ "build:ts": "tsc -b tsconfig.src.json",
176
+ "watch": "concurrently -n tsc,esbuild -c blue,yellow \"tsc -b tsconfig.src.json --watch\" \"node esbuild.mjs --watch\"",
177
+ "lint": "eslint . --ext .ts",
178
+ "lint:fix": "eslint . --ext .ts --fix",
179
+ "format": "prettier --write \"src/**/*.{js,ts,tsx,json,md}\"",
180
+ "format:check": "prettier --check \"src/**/*.{js,ts,tsx,json,md}\"",
181
+ "langium:generate": "langium generate",
182
+ "langium:generate:production": "langium generate --mode=production",
183
+ "langium:watch": "langium generate --watch",
184
+ "vscode:prepublish": "npm run build && npm run lint",
185
+ "dev": "vite",
186
+ "test": "vitest run",
187
+ "test:verbose": "VITEST_VERBOSE=true vitest run"
188
+ }
189
+ }