agentlang 0.3.0 → 0.3.1
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 +276 -30
- package/out/api/http.d.ts.map +1 -1
- package/out/api/http.js +5 -3
- package/out/api/http.js.map +1 -1
- package/out/language/agentlang-validator.d.ts.map +1 -1
- package/out/language/agentlang-validator.js +24 -4
- package/out/language/agentlang-validator.js.map +1 -1
- package/out/language/generated/ast.d.ts +58 -7
- package/out/language/generated/ast.d.ts.map +1 -1
- package/out/language/generated/ast.js +82 -1
- 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 +537 -216
- package/out/language/generated/grammar.js.map +1 -1
- package/out/language/main.cjs +614 -221
- package/out/language/main.cjs.map +2 -2
- package/out/runtime/agents/common.d.ts +11 -0
- package/out/runtime/agents/common.d.ts.map +1 -1
- package/out/runtime/agents/common.js +61 -1
- package/out/runtime/agents/common.js.map +1 -1
- package/out/runtime/exec-graph.d.ts.map +1 -1
- package/out/runtime/exec-graph.js +1 -7
- package/out/runtime/exec-graph.js.map +1 -1
- package/out/runtime/interpreter.d.ts.map +1 -1
- package/out/runtime/interpreter.js +45 -17
- package/out/runtime/interpreter.js.map +1 -1
- package/out/runtime/loader.d.ts +3 -4
- package/out/runtime/loader.d.ts.map +1 -1
- package/out/runtime/loader.js +91 -12
- package/out/runtime/loader.js.map +1 -1
- package/out/runtime/module.d.ts +34 -5
- package/out/runtime/module.d.ts.map +1 -1
- package/out/runtime/module.js +190 -18
- package/out/runtime/module.js.map +1 -1
- package/out/runtime/modules/ai.d.ts.map +1 -1
- package/out/runtime/modules/ai.js +15 -6
- package/out/runtime/modules/ai.js.map +1 -1
- package/out/runtime/modules/auth.d.ts.map +1 -1
- package/out/runtime/modules/auth.js +42 -43
- package/out/runtime/modules/auth.js.map +1 -1
- package/out/runtime/modules/core.js +1 -1
- 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/runtime/util.d.ts +3 -1
- package/out/runtime/util.d.ts.map +1 -1
- package/out/runtime/util.js +16 -0
- 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 +183 -182
- package/src/api/http.ts +5 -3
- package/src/language/agentlang-validator.ts +29 -4
- package/src/language/agentlang.langium +15 -3
- package/src/language/generated/ast.ts +149 -7
- package/src/language/generated/grammar.ts +537 -216
- package/src/runtime/agents/common.ts +69 -1
- package/src/runtime/exec-graph.ts +1 -8
- package/src/runtime/interpreter.ts +47 -16
- package/src/runtime/loader.ts +105 -9
- package/src/runtime/module.ts +213 -24
- package/src/runtime/modules/ai.ts +12 -5
- package/src/runtime/modules/auth.ts +42 -43
- package/src/runtime/modules/core.ts +1 -1
- package/src/runtime/util.ts +19 -0
- package/src/syntaxes/agentlang.monarch.ts +1 -1
package/package.json
CHANGED
|
@@ -1,183 +1,184 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
|
|
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.1",
|
|
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.25",
|
|
58
|
+
"@langchain/core": "^0.3.59",
|
|
59
|
+
"@langchain/openai": "^0.5.18",
|
|
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.28",
|
|
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
|
+
}
|
package/src/api/http.ts
CHANGED
|
@@ -64,10 +64,12 @@ export function startServer(appSpec: ApplicationSpec, port: number, host?: strin
|
|
|
64
64
|
});
|
|
65
65
|
|
|
66
66
|
getAllEventNames().forEach((eventNames: string[], moduleName: string) => {
|
|
67
|
+
const m = fetchModule(moduleName);
|
|
67
68
|
eventNames.forEach((n: string) => {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
if (m.eventIsPublic(n))
|
|
70
|
+
app.post(`/${moduleName}/${n}`, (req: Request, res: Response) => {
|
|
71
|
+
handleEventPost(moduleName, n, req, res);
|
|
72
|
+
});
|
|
71
73
|
});
|
|
72
74
|
});
|
|
73
75
|
|
|
@@ -31,15 +31,37 @@ export class AgentlangValidator {
|
|
|
31
31
|
// and report an error when we see one we've already seen
|
|
32
32
|
const reported = new Set();
|
|
33
33
|
module.defs.forEach(d => {
|
|
34
|
+
let n: string | undefined;
|
|
34
35
|
if (!isStandaloneStatement(d)) {
|
|
35
|
-
if (
|
|
36
|
-
|
|
36
|
+
if (
|
|
37
|
+
d.$type === 'PublicWorkflowDefinition' ||
|
|
38
|
+
d.$type === 'PublicAgentDefinition' ||
|
|
39
|
+
d.$type === 'PublicEventDefinition'
|
|
40
|
+
) {
|
|
41
|
+
n = d.def.name;
|
|
42
|
+
} else {
|
|
43
|
+
n = d.name;
|
|
44
|
+
}
|
|
45
|
+
if (
|
|
46
|
+
d.$type != 'WorkflowDefinition' &&
|
|
47
|
+
d.$type != 'PublicWorkflowDefinition' &&
|
|
48
|
+
d.$type != 'ScenarioDefinition' &&
|
|
49
|
+
d.$type != 'DirectiveDefinition' &&
|
|
50
|
+
d.$type != 'GlossaryEntryDefinition' &&
|
|
51
|
+
reported.has(n)
|
|
52
|
+
) {
|
|
53
|
+
accept('error', `Definition has non-unique name '${n}'.`, {
|
|
37
54
|
node: d,
|
|
38
55
|
property: 'name',
|
|
39
56
|
});
|
|
40
57
|
}
|
|
41
|
-
if (
|
|
42
|
-
|
|
58
|
+
if (
|
|
59
|
+
d.$type != 'FlowDefinition' &&
|
|
60
|
+
d.$type != 'ScenarioDefinition' &&
|
|
61
|
+
d.$type != 'DirectiveDefinition' &&
|
|
62
|
+
d.$type != 'GlossaryEntryDefinition'
|
|
63
|
+
) {
|
|
64
|
+
reported.add(n);
|
|
43
65
|
}
|
|
44
66
|
}
|
|
45
67
|
});
|
|
@@ -49,6 +71,9 @@ export class AgentlangValidator {
|
|
|
49
71
|
// create a set of visited functions
|
|
50
72
|
// and report an error when we see one we've already seen
|
|
51
73
|
const reported = new Set();
|
|
74
|
+
if (def.$type === 'PublicEventDefinition') {
|
|
75
|
+
def = def.def;
|
|
76
|
+
}
|
|
52
77
|
def.schema.attributes.forEach((a: AttributeDefinition) => {
|
|
53
78
|
if (reported.has(a.name)) {
|
|
54
79
|
accept('error', `'${def.name} " - attribute has non-unique name '${a.name}'.`, {
|
|
@@ -4,12 +4,13 @@ entry ModuleDefinition: 'module' name=QualifiedName (imports+=Import)* (defs+=De
|
|
|
4
4
|
|
|
5
5
|
Import: 'import' path=STRING '@as' name=ID;
|
|
6
6
|
|
|
7
|
-
Definition: SchemaDefinition | RelationshipDefinition | WorkflowDefinition | StandaloneStatement
|
|
8
|
-
| AgentDefinition | ResolverDefinition | FlowDefinition | DecisionDefinition
|
|
7
|
+
Definition: SchemaDefinition | RelationshipDefinition | WorkflowDefinition | PublicWorkflowDefinition | StandaloneStatement
|
|
8
|
+
| AgentDefinition | PublicAgentDefinition | ResolverDefinition | FlowDefinition | DecisionDefinition | ScenarioDefinition
|
|
9
|
+
| DirectiveDefinition | GlossaryEntryDefinition;
|
|
9
10
|
|
|
10
11
|
StandaloneStatement: stmt=Statement;
|
|
11
12
|
|
|
12
|
-
SchemaDefinition: EntityDefinition | EventDefinition | RecordDefinition;
|
|
13
|
+
SchemaDefinition: EntityDefinition | EventDefinition | PublicEventDefinition | RecordDefinition;
|
|
13
14
|
|
|
14
15
|
PropertyDefinition: (name=TaggedId '(' value=KvPairs ')') | name=TaggedId;
|
|
15
16
|
|
|
@@ -26,6 +27,7 @@ fragment RecDef: name=QualifiedName extends=ExtendsClause? schema=RecordSchemaDe
|
|
|
26
27
|
|
|
27
28
|
EntityDefinition: 'entity' RecDef;
|
|
28
29
|
EventDefinition: 'event' RecDef;
|
|
30
|
+
PublicEventDefinition: '@public' def=EventDefinition;
|
|
29
31
|
RecordDefinition: 'record' RecDef;
|
|
30
32
|
|
|
31
33
|
ExtendsClause: 'extends' parentName=QualifiedName;
|
|
@@ -100,6 +102,8 @@ WorkflowHeaderTag returns string: '@after' | '@before';
|
|
|
100
102
|
|
|
101
103
|
WorkflowHeaderPrefix returns string: 'create' | 'update' | 'delete';
|
|
102
104
|
|
|
105
|
+
PublicWorkflowDefinition: '@public' def=WorkflowDefinition;
|
|
106
|
+
|
|
103
107
|
Pattern: expr=Expr | crudMap=CrudMap | if=If | forEach=ForEach | delete=Delete | purge=Purge
|
|
104
108
|
| fullTextSearch=FullTextSearch | return=Return;
|
|
105
109
|
|
|
@@ -132,6 +136,8 @@ Return: 'return' pattern=Pattern;
|
|
|
132
136
|
|
|
133
137
|
AgentDefinition: 'agent' name=GenericName (body=GenericDefBody? | '{''}');
|
|
134
138
|
|
|
139
|
+
PublicAgentDefinition: '@public' def=AgentDefinition;
|
|
140
|
+
|
|
135
141
|
GenericDefBody: '{' (attributes+=GenericPropertyDef (',' attributes+=GenericPropertyDef)*)+ '}';
|
|
136
142
|
|
|
137
143
|
GenericPropertyDef: name=ID value=Literal;
|
|
@@ -150,6 +156,12 @@ DecisionDefBody: '{' (cases+=CaseEntry (cases+=CaseEntry)*)+ '}';
|
|
|
150
156
|
|
|
151
157
|
CaseEntry: 'case' '(' cond=Expr ')' Body;
|
|
152
158
|
|
|
159
|
+
ScenarioDefinition: 'scenario' name=Ref (body=MapLiteral? | '{''}');
|
|
160
|
+
|
|
161
|
+
DirectiveDefinition: 'directive' name=Ref (body=MapLiteral? | '{''}');
|
|
162
|
+
|
|
163
|
+
GlossaryEntryDefinition: 'glossaryEntry' name=Ref (body=MapLiteral? | '{''}');
|
|
164
|
+
|
|
153
165
|
ResolverDefinition: 'resolver' name=GenericName '[' (paths+=GenericName (',' paths+=GenericName)*)+ ']'
|
|
154
166
|
'{' (methods+=ResolverMethodSpec (',' methods+=ResolverMethodSpec)*)+ '}';
|
|
155
167
|
|