agentlang 0.7.9 → 0.7.11
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/out/api/http.d.ts.map +1 -1
- package/out/api/http.js +8 -1
- package/out/api/http.js.map +1 -1
- package/out/cli/main.d.ts.map +1 -1
- package/out/cli/main.js +33 -2
- package/out/cli/main.js.map +1 -1
- package/out/extension/main.cjs +250 -250
- package/out/extension/main.cjs.map +2 -2
- package/out/language/agentlang-validator.d.ts +1 -2
- package/out/language/agentlang-validator.d.ts.map +1 -1
- package/out/language/agentlang-validator.js +0 -39
- package/out/language/agentlang-validator.js.map +1 -1
- package/out/language/generated/ast.d.ts +62 -11
- package/out/language/generated/ast.d.ts.map +1 -1
- package/out/language/generated/ast.js +75 -3
- package/out/language/generated/ast.js.map +1 -1
- package/out/language/generated/grammar.d.ts.map +1 -1
- package/out/language/generated/grammar.js +758 -239
- package/out/language/generated/grammar.js.map +1 -1
- package/out/language/main.cjs +1370 -824
- package/out/language/main.cjs.map +4 -4
- package/out/language/parser.d.ts +1 -0
- package/out/language/parser.d.ts.map +1 -1
- package/out/language/parser.js +44 -7
- package/out/language/parser.js.map +1 -1
- package/out/language/syntax.d.ts +1 -1
- package/out/language/syntax.d.ts.map +1 -1
- package/out/language/syntax.js +22 -13
- package/out/language/syntax.js.map +1 -1
- package/out/runtime/api.d.ts +2 -0
- package/out/runtime/api.d.ts.map +1 -1
- package/out/runtime/api.js +5 -0
- package/out/runtime/api.js.map +1 -1
- package/out/runtime/auth/cognito.d.ts.map +1 -1
- package/out/runtime/auth/cognito.js +4 -4
- package/out/runtime/auth/cognito.js.map +1 -1
- package/out/runtime/defs.d.ts +5 -0
- package/out/runtime/defs.d.ts.map +1 -1
- package/out/runtime/defs.js +16 -0
- package/out/runtime/defs.js.map +1 -1
- package/out/runtime/exec-graph.js +1 -1
- package/out/runtime/exec-graph.js.map +1 -1
- package/out/runtime/interpreter.d.ts +6 -1
- package/out/runtime/interpreter.d.ts.map +1 -1
- package/out/runtime/interpreter.js +144 -112
- package/out/runtime/interpreter.js.map +1 -1
- package/out/runtime/loader.d.ts +1 -1
- package/out/runtime/loader.d.ts.map +1 -1
- package/out/runtime/loader.js +74 -27
- package/out/runtime/loader.js.map +1 -1
- package/out/runtime/module.d.ts +41 -11
- package/out/runtime/module.d.ts.map +1 -1
- package/out/runtime/module.js +238 -50
- package/out/runtime/module.js.map +1 -1
- package/out/runtime/modules/ai.d.ts.map +1 -1
- package/out/runtime/modules/ai.js +13 -6
- package/out/runtime/modules/ai.js.map +1 -1
- package/out/runtime/modules/auth.d.ts +2 -1
- package/out/runtime/modules/auth.d.ts.map +1 -1
- package/out/runtime/modules/auth.js +93 -3
- package/out/runtime/modules/auth.js.map +1 -1
- package/out/runtime/modules/core.d.ts +7 -5
- package/out/runtime/modules/core.d.ts.map +1 -1
- package/out/runtime/modules/core.js +93 -16
- package/out/runtime/modules/core.js.map +1 -1
- package/out/runtime/monitor.d.ts.map +1 -1
- package/out/runtime/monitor.js +1 -0
- package/out/runtime/monitor.js.map +1 -1
- package/out/runtime/resolvers/interface.d.ts +6 -1
- package/out/runtime/resolvers/interface.d.ts.map +1 -1
- package/out/runtime/resolvers/interface.js +2 -2
- package/out/runtime/resolvers/interface.js.map +1 -1
- package/out/runtime/resolvers/sqldb/database.d.ts +19 -2
- package/out/runtime/resolvers/sqldb/database.d.ts.map +1 -1
- package/out/runtime/resolvers/sqldb/database.js +107 -21
- package/out/runtime/resolvers/sqldb/database.js.map +1 -1
- package/out/runtime/resolvers/sqldb/dbutil.d.ts +1 -0
- package/out/runtime/resolvers/sqldb/dbutil.d.ts.map +1 -1
- package/out/runtime/resolvers/sqldb/dbutil.js +25 -3
- package/out/runtime/resolvers/sqldb/dbutil.js.map +1 -1
- package/out/runtime/resolvers/sqldb/impl.d.ts +3 -2
- package/out/runtime/resolvers/sqldb/impl.d.ts.map +1 -1
- package/out/runtime/resolvers/sqldb/impl.js +80 -6
- package/out/runtime/resolvers/sqldb/impl.js.map +1 -1
- package/out/runtime/state.d.ts +58 -0
- package/out/runtime/state.d.ts.map +1 -1
- package/out/runtime/state.js +12 -0
- package/out/runtime/state.js.map +1 -1
- package/out/runtime/util.d.ts +1 -1
- package/out/runtime/util.d.ts.map +1 -1
- package/out/runtime/util.js +27 -13
- package/out/runtime/util.js.map +1 -1
- package/out/setupClassic.d.ts +98 -0
- package/out/setupClassic.d.ts.map +1 -0
- package/out/setupClassic.js +38 -0
- package/out/setupClassic.js.map +1 -0
- package/out/setupCommon.d.ts +2 -0
- package/out/setupCommon.d.ts.map +1 -0
- package/out/setupCommon.js +33 -0
- package/out/setupCommon.js.map +1 -0
- package/out/setupExtended.d.ts +40 -0
- package/out/setupExtended.d.ts.map +1 -0
- package/out/setupExtended.js +67 -0
- package/out/setupExtended.js.map +1 -0
- package/out/syntaxes/agentlang.monarch.js +1 -1
- package/out/syntaxes/agentlang.monarch.js.map +1 -1
- package/package.json +187 -185
- package/src/api/http.ts +8 -0
- package/src/cli/main.ts +38 -2
- package/src/language/agentlang-validator.ts +1 -51
- package/src/language/agentlang.langium +17 -4
- package/src/language/generated/ast.ts +147 -13
- package/src/language/generated/grammar.ts +758 -239
- package/src/language/parser.ts +43 -8
- package/src/language/syntax.ts +25 -12
- package/src/runtime/api.ts +8 -0
- package/src/runtime/defs.ts +8 -0
- package/src/runtime/interpreter.ts +104 -76
- package/src/runtime/loader.ts +75 -25
- package/src/runtime/module.ts +194 -32
- package/src/runtime/modules/ai.ts +10 -4
- package/src/runtime/modules/auth.ts +1 -0
- package/src/runtime/modules/core.ts +99 -23
- package/src/runtime/monitor.ts +1 -0
- package/src/runtime/resolvers/interface.ts +9 -2
- package/src/runtime/resolvers/sqldb/database.ts +68 -17
- package/src/runtime/resolvers/sqldb/dbutil.ts +28 -6
- package/src/runtime/resolvers/sqldb/impl.ts +86 -14
- package/src/runtime/state.ts +14 -0
- package/src/runtime/util.ts +25 -12
- package/src/syntaxes/agentlang.monarch.ts +1 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { MonacoEditorLanguageClientWrapper } from 'monaco-editor-wrapper';
|
|
2
|
+
import monarchSyntax from './syntaxes/agentlang.monarch.js';
|
|
3
|
+
export const setupConfigClassic = () => {
|
|
4
|
+
return {
|
|
5
|
+
$type: 'classic',
|
|
6
|
+
editorAppConfig: {
|
|
7
|
+
codeResources: {
|
|
8
|
+
modified: {
|
|
9
|
+
uri: '/workspace/example.al',
|
|
10
|
+
text: `// Agentlang is running in the web!`,
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
useDiffEditor: false,
|
|
14
|
+
languageDef: {
|
|
15
|
+
languageExtensionConfig: { id: 'agentlang' },
|
|
16
|
+
monarchLanguage: monarchSyntax,
|
|
17
|
+
},
|
|
18
|
+
editorOptions: {
|
|
19
|
+
'semanticHighlighting.enabled': true,
|
|
20
|
+
theme: 'vs-dark',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export const executeClassic = async (htmlElement) => {
|
|
26
|
+
try {
|
|
27
|
+
const config = setupConfigClassic();
|
|
28
|
+
const wrapper = new MonacoEditorLanguageClientWrapper();
|
|
29
|
+
// Add the HTML container to the config
|
|
30
|
+
const wrapperConfig = Object.assign(Object.assign({}, config), { htmlContainer: htmlElement });
|
|
31
|
+
// Initialize and start the wrapper
|
|
32
|
+
await wrapper.initAndStart(wrapperConfig);
|
|
33
|
+
}
|
|
34
|
+
catch (error) {
|
|
35
|
+
console.error('Error initializing monaco editor:', error);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=setupClassic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setupClassic.js","sourceRoot":"","sources":["../src/setupClassic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAsB,MAAM,uBAAuB,CAAC;AAC9F,OAAO,aAAa,MAAM,iCAAiC,CAAC;AAE5D,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,OAAO;QACL,KAAK,EAAE,SAAS;QAChB,eAAe,EAAE;YACf,aAAa,EAAE;gBACb,QAAQ,EAAE;oBACR,GAAG,EAAE,uBAAuB;oBAC5B,IAAI,EAAE,qCAAqC;iBAC5C;aACF;YACD,aAAa,EAAE,KAAK;YACpB,WAAW,EAAE;gBACX,uBAAuB,EAAE,EAAE,EAAE,EAAE,WAAW,EAAE;gBAC5C,eAAe,EAAE,aAAa;aAC/B;YACD,aAAa,EAAE;gBACb,8BAA8B,EAAE,IAAI;gBACpC,KAAK,EAAE,SAAS;aACjB;SACF;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,EAAE,WAAwB,EAAE,EAAE;IAC/D,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,kBAAkB,EAAE,CAAC;QACpC,MAAM,OAAO,GAAG,IAAI,iCAAiC,EAAE,CAAC;QAExD,uCAAuC;QACvC,MAAM,aAAa,GAAG,gCACjB,MAAM,KACT,aAAa,EAAE,WAAW,GACV,CAAC;QAEnB,mCAAmC;QACnC,MAAM,OAAO,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;IAC5C,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,mCAAmC,EAAE,KAAK,CAAC,CAAC;IAC5D,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setupCommon.d.ts","sourceRoot":"","sources":["../src/setupCommon.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// This file is kept for reference but is not used directly anymore
|
|
2
|
+
// The monaco-editor-wrapper API has changed significantly in v6+
|
|
3
|
+
export {};
|
|
4
|
+
// These functions are kept for reference but not used directly anymore
|
|
5
|
+
/*
|
|
6
|
+
export const defineUserServices = () => {
|
|
7
|
+
return {
|
|
8
|
+
userServices: {
|
|
9
|
+
// This API has changed in the latest version
|
|
10
|
+
},
|
|
11
|
+
debugLogging: true,
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const configureMonacoWorkers = () => {
|
|
16
|
+
// This function is kept for compatibility, but implementation has changed
|
|
17
|
+
// Use configureDefaultWorkerFactory from monaco-editor-wrapper/workers/workerLoaders in newer code
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export const configureWorker = () => {
|
|
21
|
+
// vite does not extract the worker properly if it is URL is a variable
|
|
22
|
+
const lsWorker = new Worker(new URL('./language/main-browser', import.meta.url), {
|
|
23
|
+
type: 'module',
|
|
24
|
+
name: 'Agentlang Language Server',
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
return {
|
|
28
|
+
type: 'WorkerDirect',
|
|
29
|
+
worker: lsWorker,
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
*/
|
|
33
|
+
//# sourceMappingURL=setupCommon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setupCommon.js","sourceRoot":"","sources":["../src/setupCommon.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,iEAAiE;;AAEjE,uEAAuE;AAEvE;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BE"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export declare const setupConfigExtended: () => {
|
|
2
|
+
$type: string;
|
|
3
|
+
editorAppConfig: {
|
|
4
|
+
codeResources: {
|
|
5
|
+
modified: {
|
|
6
|
+
uri: string;
|
|
7
|
+
text: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
useDiffEditor: boolean;
|
|
11
|
+
extensions: {
|
|
12
|
+
config: {
|
|
13
|
+
name: string;
|
|
14
|
+
publisher: string;
|
|
15
|
+
version: string;
|
|
16
|
+
engines: {
|
|
17
|
+
vscode: string;
|
|
18
|
+
};
|
|
19
|
+
contributes: {
|
|
20
|
+
languages: {
|
|
21
|
+
id: string;
|
|
22
|
+
extensions: string[];
|
|
23
|
+
configuration: string;
|
|
24
|
+
}[];
|
|
25
|
+
grammars: {
|
|
26
|
+
language: string;
|
|
27
|
+
scopeName: string;
|
|
28
|
+
path: string;
|
|
29
|
+
}[];
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
filesOrContents: Map<any, any>;
|
|
33
|
+
}[];
|
|
34
|
+
userConfiguration: {
|
|
35
|
+
json: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export declare const executeExtended: (htmlElement: HTMLElement) => Promise<void>;
|
|
40
|
+
//# sourceMappingURL=setupExtended.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setupExtended.d.ts","sourceRoot":"","sources":["../src/setupExtended.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0D/B,CAAC;AAEF,eAAO,MAAM,eAAe,GAAU,aAAa,WAAW,kBAgB7D,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { MonacoEditorLanguageClientWrapper } from 'monaco-editor-wrapper';
|
|
2
|
+
export const setupConfigExtended = () => {
|
|
3
|
+
const extensionFilesOrContents = new Map();
|
|
4
|
+
extensionFilesOrContents.set('/language-configuration.json', new URL('../language-configuration.json', import.meta.url));
|
|
5
|
+
extensionFilesOrContents.set('/agentlang-grammar.json', new URL('../syntaxes/agentlang.tmLanguage.json', import.meta.url));
|
|
6
|
+
return {
|
|
7
|
+
$type: 'extended',
|
|
8
|
+
editorAppConfig: {
|
|
9
|
+
codeResources: {
|
|
10
|
+
modified: {
|
|
11
|
+
uri: '/workspace/example.al',
|
|
12
|
+
text: `// Agentlang is running in the web!`,
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
useDiffEditor: false,
|
|
16
|
+
extensions: [
|
|
17
|
+
{
|
|
18
|
+
config: {
|
|
19
|
+
name: 'agentlang-web',
|
|
20
|
+
publisher: 'generator-langium',
|
|
21
|
+
version: '1.0.0',
|
|
22
|
+
engines: {
|
|
23
|
+
vscode: '*',
|
|
24
|
+
},
|
|
25
|
+
contributes: {
|
|
26
|
+
languages: [
|
|
27
|
+
{
|
|
28
|
+
id: 'agentlang',
|
|
29
|
+
extensions: ['.agentlang'],
|
|
30
|
+
configuration: './language-configuration.json',
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
grammars: [
|
|
34
|
+
{
|
|
35
|
+
language: 'agentlang',
|
|
36
|
+
scopeName: 'source.agentlang',
|
|
37
|
+
path: './agentlang-grammar.json',
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
filesOrContents: extensionFilesOrContents,
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
userConfiguration: {
|
|
46
|
+
json: JSON.stringify({
|
|
47
|
+
'workbench.colorTheme': 'Default Dark Modern',
|
|
48
|
+
'editor.semanticHighlighting.enabled': true,
|
|
49
|
+
}),
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
export const executeExtended = async (htmlElement) => {
|
|
55
|
+
try {
|
|
56
|
+
const config = setupConfigExtended();
|
|
57
|
+
const wrapper = new MonacoEditorLanguageClientWrapper();
|
|
58
|
+
// Add the HTML container to the config
|
|
59
|
+
const wrapperConfig = Object.assign(Object.assign({}, config), { htmlContainer: htmlElement });
|
|
60
|
+
// Initialize and start the wrapper
|
|
61
|
+
await wrapper.initAndStart(wrapperConfig);
|
|
62
|
+
}
|
|
63
|
+
catch (error) {
|
|
64
|
+
console.error('Error initializing monaco editor:', error);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
//# sourceMappingURL=setupExtended.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setupExtended.js","sourceRoot":"","sources":["../src/setupEx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C5C,CAAC;aACH;SACF;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,EAAE,WAAwB,EAAE,EAAE;IAChE,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,mBAAmB,EAAE,CAAC;QACrC,MAAM,OAAO,GAAG,IAAI,iCAAiC,EAAE,CAAC;QAExD,uCAAuC;QACvC,MAAM,aAAa,GAAG,gCACjB,MAAM,KACT,aAAa,EAAE,WAAW,GACV,CAAC;QAEnB,mCAAmC;QACnC,MAAM,OAAO,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;IAC5C,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,mCAAmC,EAAE,KAAK,CAAC,CAAC;IAC5D,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Monarch syntax highlighting for the agentlang language.
|
|
2
2
|
export default {
|
|
3
3
|
keywords: [
|
|
4
|
-
'@actions', '@after', '@as', '@async', '@before', '@catch', '@distinct', '@enum', '@expr', '@from', '@full_join', '@inner_join', '@into', '@join', '@left_join', '@meta', '@oneof', '@public', '@rbac', '@ref', '@right_join', '@then', '@upsert', '@with_unique', 'agent', 'agentlang/retry', 'allow', 'and', 'attempts', 'await', 'backoff', 'between', 'case', 'commitTransaction', 'contains', 'create', 'decision', 'delete', 'directive', 'else', 'entity', 'error', 'event', 'extends', 'false', 'flow', 'for', 'glossaryEntry', 'if', 'import', 'in', 'like', 'module', 'not', 'not_found', 'onSubscription', 'or', 'purge', 'query', 'read', 'record', 'relationship', 'resolver', 'return', 'roles', 'rollbackTransaction', 'scenario', 'startTransaction', 'subscribe', 'throw', 'true', 'update', 'upsert', 'where', 'workflow'
|
|
4
|
+
'@actions', '@after', '@as', '@asc', '@async', '@before', '@catch', '@desc', '@distinct', '@enum', '@expr', '@from', '@full_join', '@groupBy', '@inner_join', '@into', '@join', '@left_join', '@meta', '@oneof', '@orderBy', '@public', '@rbac', '@ref', '@right_join', '@then', '@upsert', '@where', '@with_unique', 'agent', 'agentlang/retry', 'allow', 'and', 'attempts', 'await', 'backoff', 'between', 'case', 'commitTransaction', 'contains', 'create', 'decision', 'delete', 'directive', 'else', 'entity', 'error', 'event', 'extends', 'false', 'flow', 'for', 'glossaryEntry', 'if', 'import', 'in', 'like', 'module', 'not', 'not_found', 'onSubscription', 'or', 'purge', 'query', 'read', 'record', 'relationship', 'resolver', 'return', 'roles', 'rollbackTransaction', 'scenario', 'startTransaction', 'subscribe', 'throw', 'true', 'update', 'upsert', 'where', 'workflow'
|
|
5
5
|
],
|
|
6
6
|
operators: [
|
|
7
7
|
'!=', '*', '+', ',', '-', '-->', '.', '/', ':', ';', '<', '<=', '<>', '=', '==', '>', '>=', '?', '@'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentlang.monarch.js","sourceRoot":"","sources":["../../src/syntaxes/agentlang.monarch.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,eAAe;IACX,QAAQ,EAAE;QACN,UAAU,EAAC,QAAQ,EAAC,KAAK,EAAC,QAAQ,EAAC,SAAS,EAAC,QAAQ,EAAC,WAAW,EAAC,OAAO,EAAC,OAAO,EAAC,OAAO,EAAC,YAAY,EAAC,aAAa,EAAC,OAAO,EAAC,OAAO,EAAC,YAAY,EAAC,OAAO,EAAC,QAAQ,EAAC,SAAS,EAAC,OAAO,EAAC,MAAM,EAAC,aAAa,EAAC,OAAO,EAAC,SAAS,EAAC,cAAc,EAAC,OAAO,EAAC,iBAAiB,EAAC,OAAO,EAAC,KAAK,EAAC,UAAU,EAAC,OAAO,EAAC,SAAS,EAAC,SAAS,EAAC,MAAM,EAAC,mBAAmB,EAAC,UAAU,EAAC,QAAQ,EAAC,UAAU,EAAC,QAAQ,EAAC,WAAW,EAAC,MAAM,EAAC,QAAQ,EAAC,OAAO,EAAC,OAAO,EAAC,SAAS,EAAC,OAAO,EAAC,MAAM,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
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
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.7.11",
|
|
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.828.0",
|
|
54
|
+
"@aws-sdk/client-cognito-identity-provider": "^3.828.0",
|
|
55
|
+
"@aws-sdk/credential-providers": "^3.828.0",
|
|
56
|
+
"@isomorphic-git/lightning-fs": "^4.6.1",
|
|
57
|
+
"@langchain/anthropic": "^0.3.32",
|
|
58
|
+
"@langchain/core": "^0.3.78",
|
|
59
|
+
"@langchain/openai": "^0.6.16",
|
|
60
|
+
"@types/jsonwebtoken": "^9.0.10",
|
|
61
|
+
"@types/multer": "^1.4.5-lts.1",
|
|
62
|
+
"amazon-cognito-identity-js": "^6.3.15",
|
|
63
|
+
"aws-jwt-verify": "^5.1.0",
|
|
64
|
+
"bcryptjs": "^3.0.2",
|
|
65
|
+
"buffer": "^6.0.3",
|
|
66
|
+
"chalk": "~5.3.0",
|
|
67
|
+
"commander": "~11.0.0",
|
|
68
|
+
"deep-object-diff": "^1.1.9",
|
|
69
|
+
"express": "^5.1.0",
|
|
70
|
+
"handlebars": "^4.7.8",
|
|
71
|
+
"jsonwebtoken": "^9.0.2",
|
|
72
|
+
"langchain": "^0.3.36",
|
|
73
|
+
"langium": "^3.5.0",
|
|
74
|
+
"multer": "^1.4.5-lts.1",
|
|
75
|
+
"openapi-client-axios": "^7.6.0",
|
|
76
|
+
"pg": "^8.16.1",
|
|
77
|
+
"pgvector": "^0.2.1",
|
|
78
|
+
"sql.js": "^1.13.0",
|
|
79
|
+
"sqlite3": "^5.1.7",
|
|
80
|
+
"typeorm": "^0.3.25",
|
|
81
|
+
"vscode-languageserver": "^9.0.1",
|
|
82
|
+
"winston": "^3.17.0",
|
|
83
|
+
"winston-daily-rotate-file": "^5.0.0",
|
|
84
|
+
"zod": "^3.25.55"
|
|
85
|
+
},
|
|
86
|
+
"overrides": {
|
|
87
|
+
"semver": "^7.5.3",
|
|
88
|
+
"trim-newlines": ">=3.0.1"
|
|
89
|
+
},
|
|
90
|
+
"devDependencies": {
|
|
91
|
+
"@codingame/esbuild-import-meta-url-plugin": "~1.0.2",
|
|
92
|
+
"@eslint/js": "^9.26.0",
|
|
93
|
+
"@types/cookie-parser": "^1.4.9",
|
|
94
|
+
"@types/express": "^5.0.1",
|
|
95
|
+
"@types/node": "^18.19.110",
|
|
96
|
+
"@types/sql.js": "^1.4.9",
|
|
97
|
+
"@types/vscode": "^1.100.0",
|
|
98
|
+
"@typescript-eslint/eslint-plugin": "~8.32.1",
|
|
99
|
+
"@typescript-eslint/parser": "~8.32.1",
|
|
100
|
+
"brace-expansion": ">=2.0.2",
|
|
101
|
+
"concurrently": "~8.2.1",
|
|
102
|
+
"esbuild": "^0.25.4",
|
|
103
|
+
"eslint": "^9.39.1",
|
|
104
|
+
"generator-langium": "^3.0.0",
|
|
105
|
+
"http-server": "~14.1.1",
|
|
106
|
+
"langium-cli": "^3.5.0",
|
|
107
|
+
"nodemon": "^3.1.10",
|
|
108
|
+
"prettier": "^3.5.3",
|
|
109
|
+
"typescript": "^5.8.3",
|
|
110
|
+
"typescript-eslint": "^8.32.1",
|
|
111
|
+
"vite": "^6.3.5",
|
|
112
|
+
"vite-plugin-node-polyfills": "^0.24.0",
|
|
113
|
+
"vitest": "^3.1.3",
|
|
114
|
+
"vscode-languageclient": "^9.0.1",
|
|
115
|
+
"vscode-uri": "^3.1.0"
|
|
116
|
+
},
|
|
117
|
+
"volta": {
|
|
118
|
+
"node": ">=20.0.0",
|
|
119
|
+
"npm": ">=10.8.2"
|
|
120
|
+
},
|
|
121
|
+
"displayName": "agentlang",
|
|
122
|
+
"engines": {
|
|
123
|
+
"vscode": "^1.67.0",
|
|
124
|
+
"node": ">=20.0.0"
|
|
125
|
+
},
|
|
126
|
+
"categories": [
|
|
127
|
+
"Programming Languages"
|
|
128
|
+
],
|
|
129
|
+
"contributes": {
|
|
130
|
+
"languages": [
|
|
131
|
+
{
|
|
132
|
+
"id": "agentlang",
|
|
133
|
+
"aliases": [
|
|
134
|
+
"Agentlang",
|
|
135
|
+
"agentlang"
|
|
136
|
+
],
|
|
137
|
+
"extensions": [
|
|
138
|
+
".al"
|
|
139
|
+
],
|
|
140
|
+
"configuration": "./language-configuration.json"
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
"grammars": [
|
|
144
|
+
{
|
|
145
|
+
"language": "agentlang",
|
|
146
|
+
"scopeName": "source.agentlang",
|
|
147
|
+
"path": "syntaxes/agentlang.tmLanguage.json"
|
|
148
|
+
}
|
|
149
|
+
]
|
|
150
|
+
},
|
|
151
|
+
"activationEvents": [
|
|
152
|
+
"onLanguage:agentlang"
|
|
153
|
+
],
|
|
154
|
+
"main": "./out/extension/main.cjs",
|
|
155
|
+
"types": "./out/index.d.ts",
|
|
156
|
+
"exports": {
|
|
157
|
+
".": {
|
|
158
|
+
"types": "./out/index.d.ts",
|
|
159
|
+
"import": "./out/extension/main.cjs",
|
|
160
|
+
"require": "./out/extension/main.cjs"
|
|
161
|
+
},
|
|
162
|
+
"./browser": {
|
|
163
|
+
"types": "./out/browser.d.ts",
|
|
164
|
+
"import": "./out/browser.js",
|
|
165
|
+
"default": "./out/browser.js"
|
|
166
|
+
},
|
|
167
|
+
"./src/*": {
|
|
168
|
+
"types": "./out/*.d.ts",
|
|
169
|
+
"import": "./out/*.js",
|
|
170
|
+
"require": "./out/*.js",
|
|
171
|
+
"default": "./out/*.js"
|
|
172
|
+
},
|
|
173
|
+
"./out/*": "./out/*"
|
|
174
|
+
},
|
|
175
|
+
"bin": {
|
|
176
|
+
"agentlang-cli": "./bin/cli.js"
|
|
177
|
+
},
|
|
178
|
+
"lint-staged": {
|
|
179
|
+
"*.{js,ts,tsx}": [
|
|
180
|
+
"eslint --fix --cache",
|
|
181
|
+
"prettier --write"
|
|
182
|
+
],
|
|
183
|
+
"*.{json,md,yml,yaml}": [
|
|
184
|
+
"prettier --write"
|
|
185
|
+
]
|
|
186
|
+
},
|
|
187
|
+
"packageManager": "pnpm@10.22.0"
|
|
188
|
+
}
|