agentlang 0.3.2 → 0.3.4
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/runtime/modules/files.d.ts +18 -0
- package/out/runtime/modules/files.d.ts.map +1 -0
- package/out/runtime/modules/files.js +116 -0
- package/out/runtime/modules/files.js.map +1 -0
- 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/package.json +183 -182
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Result, Environment } from '../interpreter.js';
|
|
2
|
+
import { ActiveSessionInfo } from '../auth/defs.js';
|
|
3
|
+
export declare const CoreFilesModuleName: string;
|
|
4
|
+
declare const _default: string;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare function createFileRecord(fileInfo: {
|
|
7
|
+
filename: string;
|
|
8
|
+
originalName: string;
|
|
9
|
+
mimetype: string;
|
|
10
|
+
size: number;
|
|
11
|
+
path: string;
|
|
12
|
+
uploadedBy?: string;
|
|
13
|
+
}, sessionInfo?: ActiveSessionInfo, callback?: (result: Result) => void, env?: Environment): Promise<Result>;
|
|
14
|
+
export declare function findFileByFilename(filename: string, sessionInfo?: ActiveSessionInfo, callback?: (result: Result) => void, env?: Environment): Promise<Result>;
|
|
15
|
+
export declare function deleteFileRecord(filename: string, sessionInfo?: ActiveSessionInfo, callback?: (result: Result) => void, env?: Environment): Promise<Result>;
|
|
16
|
+
export declare function listAllFiles(sessionInfo?: ActiveSessionInfo, callback?: (result: Result) => void, env?: Environment): Promise<Result>;
|
|
17
|
+
export declare function listUserFiles(userId: string, sessionInfo?: ActiveSessionInfo, callback?: (result: Result) => void, env?: Environment): Promise<Result>;
|
|
18
|
+
//# sourceMappingURL=files.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../src/runtime/modules/files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAY,MAAM,mBAAmB,CAAC;AAIlE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD,eAAO,MAAM,mBAAmB,QAA8B,CAAC;;AAE/D,wBA2DE;AAEF,wBAAsB,gBAAgB,CACpC,QAAQ,EAAE;IACR,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,EACD,WAAW,CAAC,EAAE,iBAAiB,EAC/B,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,EACnC,GAAG,CAAC,EAAE,WAAW,GAChB,OAAO,CAAC,MAAM,CAAC,CAqBjB;AAED,wBAAsB,kBAAkB,CACtC,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,iBAAiB,EAC/B,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,EACnC,GAAG,CAAC,EAAE,WAAW,GAChB,OAAO,CAAC,MAAM,CAAC,CAcjB;AAED,wBAAsB,gBAAgB,CACpC,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,iBAAiB,EAC/B,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,EACnC,GAAG,CAAC,EAAE,WAAW,GAChB,OAAO,CAAC,MAAM,CAAC,CAcjB;AAED,wBAAsB,YAAY,CAChC,WAAW,CAAC,EAAE,iBAAiB,EAC/B,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,EACnC,GAAG,CAAC,EAAE,WAAW,GAChB,OAAO,CAAC,MAAM,CAAC,CAYjB;AAED,wBAAsB,aAAa,CACjC,MAAM,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,iBAAiB,EAC/B,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,EACnC,GAAG,CAAC,EAAE,WAAW,GAChB,OAAO,CAAC,MAAM,CAAC,CAcjB"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { evaluate } from '../interpreter.js';
|
|
2
|
+
import { makeCoreModuleName } from '../util.js';
|
|
3
|
+
import { makeInstance, objectAsInstanceAttributes } from '../module.js';
|
|
4
|
+
import crypto from 'crypto';
|
|
5
|
+
export const CoreFilesModuleName = makeCoreModuleName('files');
|
|
6
|
+
export default `module ${CoreFilesModuleName}
|
|
7
|
+
|
|
8
|
+
entity File {
|
|
9
|
+
id String @id,
|
|
10
|
+
filename String @unique @indexed,
|
|
11
|
+
originalName String @optional,
|
|
12
|
+
mimetype String @default("application/octet-stream"),
|
|
13
|
+
size Int @optional,
|
|
14
|
+
uploadedBy String @optional,
|
|
15
|
+
uploadedAt DateTime @default(now()),
|
|
16
|
+
path String @optional,
|
|
17
|
+
@rbac [(roles: [*], allow: [create])
|
|
18
|
+
(allow: [read, delete], where: auth.user = this.uploadedBy)]
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
workflow CreateFile {
|
|
22
|
+
{File {id CreateFile.id,
|
|
23
|
+
filename CreateFile.filename,
|
|
24
|
+
originalName CreateFile.originalName,
|
|
25
|
+
mimetype CreateFile.mimetype,
|
|
26
|
+
size CreateFile.size,
|
|
27
|
+
uploadedBy CreateFile.uploadedBy,
|
|
28
|
+
uploadedAt CreateFile.uploadedAt,
|
|
29
|
+
path CreateFile.path},
|
|
30
|
+
@upsert}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
workflow FindFile {
|
|
34
|
+
{File {id? FindFile.id}} @as [file];
|
|
35
|
+
file
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
workflow FindFileByFilename {
|
|
39
|
+
{File {filename? FindFileByFilename.filename}} @as [file];
|
|
40
|
+
file
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
workflow ListFiles {
|
|
44
|
+
{File? {}}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
workflow ListUserFiles {
|
|
48
|
+
{File {uploadedBy? ListUserFiles.userId}}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
workflow DeleteFile {
|
|
52
|
+
delete {File {id? DeleteFile.id}}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
workflow DeleteFileByFilename {
|
|
56
|
+
delete {File {filename? DeleteFileByFilename.filename}}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
workflow UpdateFile {
|
|
60
|
+
{File {id? UpdateFile.id,
|
|
61
|
+
originalName UpdateFile.originalName,
|
|
62
|
+
mimetype UpdateFile.mimetype,
|
|
63
|
+
size UpdateFile.size}}
|
|
64
|
+
}
|
|
65
|
+
`;
|
|
66
|
+
export async function createFileRecord(fileInfo, sessionInfo, callback, env) {
|
|
67
|
+
let inst = makeInstance(CoreFilesModuleName, 'CreateFile', objectAsInstanceAttributes({
|
|
68
|
+
id: crypto.randomUUID(),
|
|
69
|
+
filename: fileInfo.filename,
|
|
70
|
+
originalName: fileInfo.originalName,
|
|
71
|
+
mimetype: fileInfo.mimetype,
|
|
72
|
+
size: fileInfo.size,
|
|
73
|
+
path: fileInfo.path,
|
|
74
|
+
uploadedBy: fileInfo.uploadedBy || '',
|
|
75
|
+
uploadedAt: new Date().toISOString(),
|
|
76
|
+
}));
|
|
77
|
+
if (sessionInfo) {
|
|
78
|
+
inst = inst.setAuthContext(sessionInfo);
|
|
79
|
+
}
|
|
80
|
+
return await evaluate(inst, callback, env);
|
|
81
|
+
}
|
|
82
|
+
export async function findFileByFilename(filename, sessionInfo, callback, env) {
|
|
83
|
+
let inst = makeInstance(CoreFilesModuleName, 'FindFileByFilename', objectAsInstanceAttributes({
|
|
84
|
+
filename: filename,
|
|
85
|
+
}));
|
|
86
|
+
if (sessionInfo) {
|
|
87
|
+
inst = inst.setAuthContext(sessionInfo);
|
|
88
|
+
}
|
|
89
|
+
return await evaluate(inst, callback, env);
|
|
90
|
+
}
|
|
91
|
+
export async function deleteFileRecord(filename, sessionInfo, callback, env) {
|
|
92
|
+
let inst = makeInstance(CoreFilesModuleName, 'DeleteFileByFilename', objectAsInstanceAttributes({
|
|
93
|
+
filename: filename,
|
|
94
|
+
}));
|
|
95
|
+
if (sessionInfo) {
|
|
96
|
+
inst = inst.setAuthContext(sessionInfo);
|
|
97
|
+
}
|
|
98
|
+
return await evaluate(inst, callback, env);
|
|
99
|
+
}
|
|
100
|
+
export async function listAllFiles(sessionInfo, callback, env) {
|
|
101
|
+
let inst = makeInstance(CoreFilesModuleName, 'ListFiles', objectAsInstanceAttributes({}));
|
|
102
|
+
if (sessionInfo) {
|
|
103
|
+
inst = inst.setAuthContext(sessionInfo);
|
|
104
|
+
}
|
|
105
|
+
return await evaluate(inst, callback, env);
|
|
106
|
+
}
|
|
107
|
+
export async function listUserFiles(userId, sessionInfo, callback, env) {
|
|
108
|
+
let inst = makeInstance(CoreFilesModuleName, 'ListUserFiles', objectAsInstanceAttributes({
|
|
109
|
+
userId: userId,
|
|
110
|
+
}));
|
|
111
|
+
if (sessionInfo) {
|
|
112
|
+
inst = inst.setAuthContext(sessionInfo);
|
|
113
|
+
}
|
|
114
|
+
return await evaluate(inst, callback, env);
|
|
115
|
+
}
|
|
116
|
+
//# sourceMappingURL=files.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../../src/runtime/modules/files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,QAAQ,EAAE,MAAM,mBAAmB,CAA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IAEF,IAAI,WAAW,EAAE,CAAC;QAChB,IAAI,GAAG,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;IAC1C,CAAC;IAED,OAAO,MAAM,QAAQ,CAAC,IAAI,EAAE,QAAQ,EAAE,GAAG,CAAC,CAAC;AAC7C,CAAC"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
export declare const setupConfigClassic: () => {
|
|
2
|
+
$type: string;
|
|
3
|
+
editorAppConfig: {
|
|
4
|
+
codeResources: {
|
|
5
|
+
modified: {
|
|
6
|
+
uri: string;
|
|
7
|
+
text: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
useDiffEditor: boolean;
|
|
11
|
+
languageDef: {
|
|
12
|
+
languageExtensionConfig: {
|
|
13
|
+
id: string;
|
|
14
|
+
};
|
|
15
|
+
monarchLanguage: {
|
|
16
|
+
keywords: string[];
|
|
17
|
+
operators: string[];
|
|
18
|
+
symbols: RegExp;
|
|
19
|
+
tokenizer: {
|
|
20
|
+
initial: ({
|
|
21
|
+
regex: RegExp;
|
|
22
|
+
action: {
|
|
23
|
+
cases: {
|
|
24
|
+
'@keywords': {
|
|
25
|
+
token: string;
|
|
26
|
+
};
|
|
27
|
+
'@default': {
|
|
28
|
+
token: string;
|
|
29
|
+
};
|
|
30
|
+
'@operators'?: undefined;
|
|
31
|
+
};
|
|
32
|
+
token?: undefined;
|
|
33
|
+
};
|
|
34
|
+
include?: undefined;
|
|
35
|
+
} | {
|
|
36
|
+
regex: RegExp;
|
|
37
|
+
action: {
|
|
38
|
+
token: string;
|
|
39
|
+
cases?: undefined;
|
|
40
|
+
};
|
|
41
|
+
include?: undefined;
|
|
42
|
+
} | {
|
|
43
|
+
include: string;
|
|
44
|
+
regex?: undefined;
|
|
45
|
+
action?: undefined;
|
|
46
|
+
} | {
|
|
47
|
+
regex: RegExp;
|
|
48
|
+
action: {
|
|
49
|
+
cases: {
|
|
50
|
+
'@operators': {
|
|
51
|
+
token: string;
|
|
52
|
+
};
|
|
53
|
+
'@default': {
|
|
54
|
+
token: string;
|
|
55
|
+
};
|
|
56
|
+
'@keywords'?: undefined;
|
|
57
|
+
};
|
|
58
|
+
token?: undefined;
|
|
59
|
+
};
|
|
60
|
+
include?: undefined;
|
|
61
|
+
})[];
|
|
62
|
+
whitespace: ({
|
|
63
|
+
regex: RegExp;
|
|
64
|
+
action: {
|
|
65
|
+
token: string;
|
|
66
|
+
next?: undefined;
|
|
67
|
+
};
|
|
68
|
+
} | {
|
|
69
|
+
regex: RegExp;
|
|
70
|
+
action: {
|
|
71
|
+
token: string;
|
|
72
|
+
next: string;
|
|
73
|
+
};
|
|
74
|
+
})[];
|
|
75
|
+
comment: ({
|
|
76
|
+
regex: RegExp;
|
|
77
|
+
action: {
|
|
78
|
+
token: string;
|
|
79
|
+
next?: undefined;
|
|
80
|
+
};
|
|
81
|
+
} | {
|
|
82
|
+
regex: RegExp;
|
|
83
|
+
action: {
|
|
84
|
+
token: string;
|
|
85
|
+
next: string;
|
|
86
|
+
};
|
|
87
|
+
})[];
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
editorOptions: {
|
|
92
|
+
'semanticHighlighting.enabled': boolean;
|
|
93
|
+
theme: string;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
export declare const executeClassic: (htmlElement: HTMLElement) => Promise<void>;
|
|
98
|
+
//# sourceMappingURL=setupClassic.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setupClassic.d.ts","sourceRoot":"","sources":["../src/setupClassic.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqB9B,CAAC;AAEF,eAAO,MAAM,cAAc,GAAU,aAAa,WAAW,kBAgB5D,CAAC"}
|
|
@@ -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/setupExtended.ts"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
|
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
|
-
|
|
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.3.4",
|
|
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
|
+
"amazon-cognito-identity-js": "^6.3.15",
|
|
61
|
+
"aws-jwt-verify": "^5.1.0",
|
|
62
|
+
"bcryptjs": "^3.0.2",
|
|
63
|
+
"buffer": "^6.0.3",
|
|
64
|
+
"chalk": "~5.3.0",
|
|
65
|
+
"commander": "~11.0.0",
|
|
66
|
+
"express": "^5.1.0",
|
|
67
|
+
"handlebars": "^4.7.8",
|
|
68
|
+
"langchain": "^0.3.36",
|
|
69
|
+
"langium": "^3.5.0",
|
|
70
|
+
"openapi-client-axios": "^7.6.0",
|
|
71
|
+
"pg": "^8.16.1",
|
|
72
|
+
"pgvector": "^0.2.1",
|
|
73
|
+
"sqlite3": "^5.1.7",
|
|
74
|
+
"sql.js": "^1.13.0",
|
|
75
|
+
"typeorm": "^0.3.25",
|
|
76
|
+
"vscode-languageserver": "^9.0.1",
|
|
77
|
+
"winston": "^3.17.0",
|
|
78
|
+
"winston-daily-rotate-file": "^5.0.0",
|
|
79
|
+
"zod": "^3.25.55"
|
|
80
|
+
},
|
|
81
|
+
"optionalDependencies": {},
|
|
82
|
+
"overrides": {
|
|
83
|
+
"semver": "^7.5.3",
|
|
84
|
+
"trim-newlines": ">=3.0.1"
|
|
85
|
+
},
|
|
86
|
+
"devDependencies": {
|
|
87
|
+
"@codingame/esbuild-import-meta-url-plugin": "~1.0.2",
|
|
88
|
+
"@eslint/js": "^9.26.0",
|
|
89
|
+
"@types/cookie-parser": "^1.4.9",
|
|
90
|
+
"@types/express": "^5.0.1",
|
|
91
|
+
"@types/node": "^18.19.110",
|
|
92
|
+
"@types/sql.js": "^1.4.9",
|
|
93
|
+
"@types/vscode": "^1.100.0",
|
|
94
|
+
"@typescript-eslint/eslint-plugin": "~8.32.1",
|
|
95
|
+
"@typescript-eslint/parser": "~8.32.1",
|
|
96
|
+
"brace-expansion": ">=2.0.2",
|
|
97
|
+
"concurrently": "~8.2.1",
|
|
98
|
+
"esbuild": "^0.25.4",
|
|
99
|
+
"eslint": "~9.26.0",
|
|
100
|
+
"generator-langium": "^3.0.0",
|
|
101
|
+
"http-server": "~14.1.1",
|
|
102
|
+
"langium-cli": "^3.5.0",
|
|
103
|
+
"nodemon": "^3.1.10",
|
|
104
|
+
"prettier": "^3.5.3",
|
|
105
|
+
"typescript": "^5.8.3",
|
|
106
|
+
"typescript-eslint": "^8.32.1",
|
|
107
|
+
"vite": "^6.3.5",
|
|
108
|
+
"vite-plugin-node-polyfills": "^0.24.0",
|
|
109
|
+
"vitest": "^3.1.3",
|
|
110
|
+
"vscode-languageclient": "^9.0.1",
|
|
111
|
+
"vscode-uri": "^3.1.0"
|
|
112
|
+
},
|
|
113
|
+
"volta": {
|
|
114
|
+
"node": ">=20.0.0",
|
|
115
|
+
"npm": ">=10.8.2"
|
|
116
|
+
},
|
|
117
|
+
"displayName": "agentlang",
|
|
118
|
+
"engines": {
|
|
119
|
+
"vscode": "^1.67.0",
|
|
120
|
+
"node": ">=20.0.0"
|
|
121
|
+
},
|
|
122
|
+
"categories": [
|
|
123
|
+
"Programming Languages"
|
|
124
|
+
],
|
|
125
|
+
"contributes": {
|
|
126
|
+
"languages": [
|
|
127
|
+
{
|
|
128
|
+
"id": "agentlang",
|
|
129
|
+
"aliases": [
|
|
130
|
+
"Agentlang",
|
|
131
|
+
"agentlang"
|
|
132
|
+
],
|
|
133
|
+
"extensions": [
|
|
134
|
+
".al"
|
|
135
|
+
],
|
|
136
|
+
"configuration": "./language-configuration.json"
|
|
137
|
+
}
|
|
138
|
+
],
|
|
139
|
+
"grammars": [
|
|
140
|
+
{
|
|
141
|
+
"language": "agentlang",
|
|
142
|
+
"scopeName": "source.agentlang",
|
|
143
|
+
"path": "syntaxes/agentlang.tmLanguage.json"
|
|
144
|
+
}
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
"activationEvents": [
|
|
148
|
+
"onLanguage:agentlang"
|
|
149
|
+
],
|
|
150
|
+
"main": "./out/extension/main.cjs",
|
|
151
|
+
"types": "./out/index.d.ts",
|
|
152
|
+
"exports": {
|
|
153
|
+
".": {
|
|
154
|
+
"types": "./out/index.d.ts",
|
|
155
|
+
"import": "./out/extension/main.cjs",
|
|
156
|
+
"require": "./out/extension/main.cjs"
|
|
157
|
+
},
|
|
158
|
+
"./browser": {
|
|
159
|
+
"types": "./out/browser.d.ts",
|
|
160
|
+
"import": "./out/browser.js",
|
|
161
|
+
"default": "./out/browser.js"
|
|
162
|
+
},
|
|
163
|
+
"./src/*": {
|
|
164
|
+
"types": "./out/*.d.ts",
|
|
165
|
+
"import": "./out/*.js",
|
|
166
|
+
"require": "./out/*.js",
|
|
167
|
+
"default": "./out/*.js"
|
|
168
|
+
},
|
|
169
|
+
"./out/*": "./out/*"
|
|
170
|
+
},
|
|
171
|
+
"bin": {
|
|
172
|
+
"agentlang-cli": "./bin/cli.js"
|
|
173
|
+
},
|
|
174
|
+
"lint-staged": {
|
|
175
|
+
"*.{js,ts,tsx}": [
|
|
176
|
+
"eslint --fix --cache",
|
|
177
|
+
"prettier --write"
|
|
178
|
+
],
|
|
179
|
+
"*.{json,md,yml,yaml}": [
|
|
180
|
+
"prettier --write"
|
|
181
|
+
]
|
|
182
|
+
},
|
|
183
|
+
"packageManager": "pnpm@10.13.1+sha512.37ebf1a5c7a30d5fabe0c5df44ee8da4c965ca0c5af3dbab28c3a1681b70a256218d05c81c9c0dcf767ef6b8551eb5b960042b9ed4300c59242336377e01cfad"
|
|
184
|
+
}
|