agentlang 0.3.1 → 0.3.3
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 +78 -60
- package/out/runtime/agents/common.d.ts +4 -1
- package/out/runtime/agents/common.d.ts.map +1 -1
- package/out/runtime/agents/common.js +10 -1
- package/out/runtime/agents/common.js.map +1 -1
- package/out/runtime/loader.d.ts.map +1 -1
- package/out/runtime/loader.js +17 -11
- package/out/runtime/loader.js.map +1 -1
- package/out/runtime/module.d.ts +19 -11
- package/out/runtime/module.d.ts.map +1 -1
- package/out/runtime/module.js +96 -49
- package/out/runtime/module.js.map +1 -1
- package/out/runtime/modules/ai.js +1 -1
- package/out/runtime/modules/ai.js.map +1 -1
- package/package.json +182 -183
- package/src/runtime/agents/common.ts +27 -2
- package/src/runtime/loader.ts +17 -12
- package/src/runtime/module.ts +107 -52
- package/src/runtime/modules/ai.ts +1 -1
- package/out/runtime/modules/files.d.ts +0 -18
- package/out/runtime/modules/files.d.ts.map +0 -1
- package/out/runtime/modules/files.js +0 -116
- package/out/runtime/modules/files.js.map +0 -1
- package/out/setupClassic.d.ts +0 -98
- package/out/setupClassic.d.ts.map +0 -1
- package/out/setupClassic.js +0 -38
- package/out/setupClassic.js.map +0 -1
- package/out/setupCommon.d.ts +0 -2
- package/out/setupCommon.d.ts.map +0 -1
- package/out/setupCommon.js +0 -33
- package/out/setupCommon.js.map +0 -1
- package/out/setupExtended.d.ts +0 -40
- package/out/setupExtended.d.ts.map +0 -1
- package/out/setupExtended.js +0 -67
- package/out/setupExtended.js.map +0 -1
package/out/setupExtended.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
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
|
package/out/setupExtended.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setupExtended.js","sourceRoot":"","sources":["../src/setupExtended.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAsB,MAAM,uBAAuB,CAAC;AAE9F,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,EAAE;IACtC,MAAM,wBAAwB,GAAG,IAAI,GAAG,EAAE,CAAC;IAC3C,wBAAwB,CAAC,GAAG,CAC1B,8BAA8B,EAC9B,IAAI,GAAG,CAAC,gCAAgC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAC3D,CAAC;IACF,wBAAwB,CAAC,GAAG,CAC1B,yBAAyB,EACzB,IAAI,GAAG,CAAC,uCAAuC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAClE,CAAC;IAEF,OAAO;QACL,KAAK,EAAE,UAAU;QACjB,eAAe,EAAE;YACf,aAAa,EAAE;gBACb,QAAQ,EAAE;oBACR,GAAG,EAAE,uBAAuB;oBAC5B,IAAI,EAAE,qCAAqC;iBAC5C;aACF;YACD,aAAa,EAAE,KAAK;YACpB,UAAU,EAAE;gBACV;oBACE,MAAM,EAAE;wBACN,IAAI,EAAE,eAAe;wBACrB,SAAS,EAAE,mBAAmB;wBAC9B,OAAO,EAAE,OAAO;wBAChB,OAAO,EAAE;4BACP,MAAM,EAAE,GAAG;yBACZ;wBACD,WAAW,EAAE;4BACX,SAAS,EAAE;gCACT;oCACE,EAAE,EAAE,WAAW;oCACf,UAAU,EAAE,CAAC,YAAY,C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