@things-factory/operato-codelingua 8.0.0-beta.8 → 8.0.0
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/.dockerignore +6 -24
- package/client/bootstrap.ts +206 -0
- package/client/icons/menu-icons.ts +91 -0
- package/client/index.ts +0 -0
- package/client/pages/git-project/git-project-list-page.ts +427 -0
- package/client/route.ts +8 -0
- package/client/themes/dark.css +51 -0
- package/client/themes/light.css +51 -0
- package/client/tsconfig.json +12 -0
- package/client/viewparts/menu-tools.ts +170 -0
- package/client/viewparts/user-circle.ts +24 -0
- package/db.sqlite +0 -0
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/installer/config.production.js +40 -0
- package/installer/docker-compose.yml +42 -0
- package/installer/install.sh +54 -0
- package/installer/migrate.sh +1 -0
- package/installer/start.sh +18 -0
- package/installer/stop.sh +1 -0
- package/installer/upgrade.sh +1 -0
- package/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +25 -0
- package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +50 -0
- package/logs/application-2024-07-12-23.log +81 -0
- package/logs/application-2024-07-13-00.log +1 -0
- package/logs/application-2024-07-13-01.log +168 -0
- package/logs/connections-2024-07-07-17.log +41 -0
- package/logs/connections-2024-07-07-20.log +41 -0
- package/logs/connections-2024-07-08-00.log +41 -0
- package/logs/connections-2024-07-08-01.log +41 -0
- package/logs/connections-2024-07-08-02.log +41 -0
- package/logs/connections-2024-07-08-19.log +41 -0
- package/logs/connections-2024-07-12-23.log +41 -0
- package/logs/connections-2024-07-13-01.log +82 -0
- package/package.json +48 -48
- package/server/controllers/github-controller.ts +98 -0
- package/server/controllers/index.ts +0 -0
- package/server/index.ts +7 -0
- package/server/middlewares/index.ts +3 -0
- package/server/migrations/index.ts +9 -0
- package/server/routers/github-webhook-router.ts +45 -0
- package/server/routes.ts +30 -0
- package/server/service/git-project/git-project-mutation.ts +179 -0
- package/server/service/git-project/git-project-query.ts +48 -0
- package/server/service/git-project/git-project-type.ts +76 -0
- package/server/service/git-project/git-project.ts +114 -0
- package/server/service/git-project/index.ts +7 -0
- package/server/service/index.ts +21 -0
- package/server/tsconfig.json +9 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
2024-07-08T01:04:17+09:00 info: Initializing ConnectionManager...
|
|
2
|
+
2024-07-08T01:04:17+09:00 info: Connector 'echo-back-server' started to ready
|
|
3
|
+
2024-07-08T01:04:17+09:00 info: Connector 'echo-back' started to ready
|
|
4
|
+
2024-07-08T01:04:17+09:00 info: Connector 'http-connector' started to ready
|
|
5
|
+
2024-07-08T01:04:17+09:00 info: Connector 'graphql-connector' started to ready
|
|
6
|
+
2024-07-08T01:04:17+09:00 info: Connector 'sqlite-connector' started to ready
|
|
7
|
+
2024-07-08T01:04:17+09:00 info: Connector 'postgresql-connector' started to ready
|
|
8
|
+
2024-07-08T01:04:17+09:00 info: Connector 'mqtt-connector' started to ready
|
|
9
|
+
2024-07-08T01:04:17+09:00 info: Connector 'mssql-connector' started to ready
|
|
10
|
+
2024-07-08T01:04:17+09:00 info: Connector 'oracle-connector' started to ready
|
|
11
|
+
2024-07-08T01:04:17+09:00 info: Connector 'mysql-connector' started to ready
|
|
12
|
+
2024-07-08T01:04:17+09:00 info: Connector 'socket-server' started to ready
|
|
13
|
+
2024-07-08T01:04:17+09:00 info: Connector 'operato-connector' started to ready
|
|
14
|
+
2024-07-08T01:04:17+09:00 info: Connector 'proxy-connector' started to ready
|
|
15
|
+
2024-07-08T01:04:17+09:00 info: echo-back-servers are ready
|
|
16
|
+
2024-07-08T01:04:17+09:00 info: echo-back connections are ready
|
|
17
|
+
2024-07-08T01:04:17+09:00 info: http-connector connections are ready
|
|
18
|
+
2024-07-08T01:04:17+09:00 info: graphql-connector connections are ready
|
|
19
|
+
2024-07-08T01:04:17+09:00 info: sqlite-connector connections are ready
|
|
20
|
+
2024-07-08T01:04:17+09:00 info: postgresql-connector connections are ready
|
|
21
|
+
2024-07-08T01:04:17+09:00 info: mqtt-connector connections are ready
|
|
22
|
+
2024-07-08T01:04:17+09:00 info: mssql-connector connections are ready
|
|
23
|
+
2024-07-08T01:04:17+09:00 info: oracle-connector connections are ready
|
|
24
|
+
2024-07-08T01:04:17+09:00 info: mysql-connector connections are ready
|
|
25
|
+
2024-07-08T01:04:17+09:00 info: socket servers are ready
|
|
26
|
+
2024-07-08T01:04:17+09:00 info: operato-connector connections are ready
|
|
27
|
+
2024-07-08T01:04:17+09:00 info: proxy-connector connections are ready
|
|
28
|
+
2024-07-08T01:04:17+09:00 info: All connector for 'echo-back-server' ready
|
|
29
|
+
2024-07-08T01:04:17+09:00 info: All connector for 'echo-back' ready
|
|
30
|
+
2024-07-08T01:04:17+09:00 info: All connector for 'http-connector' ready
|
|
31
|
+
2024-07-08T01:04:17+09:00 info: All connector for 'graphql-connector' ready
|
|
32
|
+
2024-07-08T01:04:17+09:00 info: All connector for 'sqlite-connector' ready
|
|
33
|
+
2024-07-08T01:04:17+09:00 info: All connector for 'postgresql-connector' ready
|
|
34
|
+
2024-07-08T01:04:17+09:00 info: All connector for 'mqtt-connector' ready
|
|
35
|
+
2024-07-08T01:04:17+09:00 info: All connector for 'mssql-connector' ready
|
|
36
|
+
2024-07-08T01:04:17+09:00 info: All connector for 'oracle-connector' ready
|
|
37
|
+
2024-07-08T01:04:17+09:00 info: All connector for 'mysql-connector' ready
|
|
38
|
+
2024-07-08T01:04:17+09:00 info: All connector for 'socket-server' ready
|
|
39
|
+
2024-07-08T01:04:17+09:00 info: All connector for 'operato-connector' ready
|
|
40
|
+
2024-07-08T01:04:17+09:00 info: All connector for 'proxy-connector' ready
|
|
41
|
+
2024-07-08T01:04:17+09:00 info: ConnectionManager initialization done:
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
2024-07-08T02:56:44+09:00 info: Initializing ConnectionManager...
|
|
2
|
+
2024-07-08T02:56:44+09:00 info: Connector 'echo-back-server' started to ready
|
|
3
|
+
2024-07-08T02:56:44+09:00 info: Connector 'echo-back' started to ready
|
|
4
|
+
2024-07-08T02:56:44+09:00 info: Connector 'http-connector' started to ready
|
|
5
|
+
2024-07-08T02:56:44+09:00 info: Connector 'graphql-connector' started to ready
|
|
6
|
+
2024-07-08T02:56:44+09:00 info: Connector 'sqlite-connector' started to ready
|
|
7
|
+
2024-07-08T02:56:44+09:00 info: Connector 'postgresql-connector' started to ready
|
|
8
|
+
2024-07-08T02:56:44+09:00 info: Connector 'mqtt-connector' started to ready
|
|
9
|
+
2024-07-08T02:56:44+09:00 info: Connector 'mssql-connector' started to ready
|
|
10
|
+
2024-07-08T02:56:44+09:00 info: Connector 'oracle-connector' started to ready
|
|
11
|
+
2024-07-08T02:56:44+09:00 info: Connector 'mysql-connector' started to ready
|
|
12
|
+
2024-07-08T02:56:44+09:00 info: Connector 'socket-server' started to ready
|
|
13
|
+
2024-07-08T02:56:44+09:00 info: Connector 'operato-connector' started to ready
|
|
14
|
+
2024-07-08T02:56:44+09:00 info: Connector 'proxy-connector' started to ready
|
|
15
|
+
2024-07-08T02:56:44+09:00 info: echo-back-servers are ready
|
|
16
|
+
2024-07-08T02:56:44+09:00 info: echo-back connections are ready
|
|
17
|
+
2024-07-08T02:56:44+09:00 info: http-connector connections are ready
|
|
18
|
+
2024-07-08T02:56:44+09:00 info: graphql-connector connections are ready
|
|
19
|
+
2024-07-08T02:56:44+09:00 info: sqlite-connector connections are ready
|
|
20
|
+
2024-07-08T02:56:44+09:00 info: postgresql-connector connections are ready
|
|
21
|
+
2024-07-08T02:56:44+09:00 info: mqtt-connector connections are ready
|
|
22
|
+
2024-07-08T02:56:44+09:00 info: mssql-connector connections are ready
|
|
23
|
+
2024-07-08T02:56:44+09:00 info: oracle-connector connections are ready
|
|
24
|
+
2024-07-08T02:56:44+09:00 info: mysql-connector connections are ready
|
|
25
|
+
2024-07-08T02:56:44+09:00 info: socket servers are ready
|
|
26
|
+
2024-07-08T02:56:44+09:00 info: operato-connector connections are ready
|
|
27
|
+
2024-07-08T02:56:44+09:00 info: proxy-connector connections are ready
|
|
28
|
+
2024-07-08T02:56:44+09:00 info: All connector for 'echo-back-server' ready
|
|
29
|
+
2024-07-08T02:56:44+09:00 info: All connector for 'echo-back' ready
|
|
30
|
+
2024-07-08T02:56:44+09:00 info: All connector for 'http-connector' ready
|
|
31
|
+
2024-07-08T02:56:44+09:00 info: All connector for 'graphql-connector' ready
|
|
32
|
+
2024-07-08T02:56:44+09:00 info: All connector for 'sqlite-connector' ready
|
|
33
|
+
2024-07-08T02:56:44+09:00 info: All connector for 'postgresql-connector' ready
|
|
34
|
+
2024-07-08T02:56:44+09:00 info: All connector for 'mqtt-connector' ready
|
|
35
|
+
2024-07-08T02:56:44+09:00 info: All connector for 'mssql-connector' ready
|
|
36
|
+
2024-07-08T02:56:44+09:00 info: All connector for 'oracle-connector' ready
|
|
37
|
+
2024-07-08T02:56:44+09:00 info: All connector for 'mysql-connector' ready
|
|
38
|
+
2024-07-08T02:56:44+09:00 info: All connector for 'socket-server' ready
|
|
39
|
+
2024-07-08T02:56:44+09:00 info: All connector for 'operato-connector' ready
|
|
40
|
+
2024-07-08T02:56:44+09:00 info: All connector for 'proxy-connector' ready
|
|
41
|
+
2024-07-08T02:56:44+09:00 info: ConnectionManager initialization done:
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
2024-07-08T19:06:31+09:00 info: Initializing ConnectionManager...
|
|
2
|
+
2024-07-08T19:06:31+09:00 info: Connector 'echo-back-server' started to ready
|
|
3
|
+
2024-07-08T19:06:31+09:00 info: Connector 'echo-back' started to ready
|
|
4
|
+
2024-07-08T19:06:31+09:00 info: Connector 'http-connector' started to ready
|
|
5
|
+
2024-07-08T19:06:31+09:00 info: Connector 'graphql-connector' started to ready
|
|
6
|
+
2024-07-08T19:06:31+09:00 info: Connector 'sqlite-connector' started to ready
|
|
7
|
+
2024-07-08T19:06:31+09:00 info: Connector 'postgresql-connector' started to ready
|
|
8
|
+
2024-07-08T19:06:31+09:00 info: Connector 'mqtt-connector' started to ready
|
|
9
|
+
2024-07-08T19:06:31+09:00 info: Connector 'mssql-connector' started to ready
|
|
10
|
+
2024-07-08T19:06:31+09:00 info: Connector 'oracle-connector' started to ready
|
|
11
|
+
2024-07-08T19:06:31+09:00 info: Connector 'mysql-connector' started to ready
|
|
12
|
+
2024-07-08T19:06:31+09:00 info: Connector 'socket-server' started to ready
|
|
13
|
+
2024-07-08T19:06:31+09:00 info: Connector 'operato-connector' started to ready
|
|
14
|
+
2024-07-08T19:06:31+09:00 info: Connector 'proxy-connector' started to ready
|
|
15
|
+
2024-07-08T19:06:31+09:00 info: echo-back-servers are ready
|
|
16
|
+
2024-07-08T19:06:31+09:00 info: echo-back connections are ready
|
|
17
|
+
2024-07-08T19:06:31+09:00 info: http-connector connections are ready
|
|
18
|
+
2024-07-08T19:06:31+09:00 info: graphql-connector connections are ready
|
|
19
|
+
2024-07-08T19:06:31+09:00 info: sqlite-connector connections are ready
|
|
20
|
+
2024-07-08T19:06:31+09:00 info: postgresql-connector connections are ready
|
|
21
|
+
2024-07-08T19:06:31+09:00 info: mqtt-connector connections are ready
|
|
22
|
+
2024-07-08T19:06:31+09:00 info: mssql-connector connections are ready
|
|
23
|
+
2024-07-08T19:06:31+09:00 info: oracle-connector connections are ready
|
|
24
|
+
2024-07-08T19:06:31+09:00 info: mysql-connector connections are ready
|
|
25
|
+
2024-07-08T19:06:31+09:00 info: socket servers are ready
|
|
26
|
+
2024-07-08T19:06:31+09:00 info: operato-connector connections are ready
|
|
27
|
+
2024-07-08T19:06:31+09:00 info: proxy-connector connections are ready
|
|
28
|
+
2024-07-08T19:06:31+09:00 info: All connector for 'echo-back-server' ready
|
|
29
|
+
2024-07-08T19:06:31+09:00 info: All connector for 'echo-back' ready
|
|
30
|
+
2024-07-08T19:06:31+09:00 info: All connector for 'http-connector' ready
|
|
31
|
+
2024-07-08T19:06:31+09:00 info: All connector for 'graphql-connector' ready
|
|
32
|
+
2024-07-08T19:06:31+09:00 info: All connector for 'sqlite-connector' ready
|
|
33
|
+
2024-07-08T19:06:31+09:00 info: All connector for 'postgresql-connector' ready
|
|
34
|
+
2024-07-08T19:06:31+09:00 info: All connector for 'mqtt-connector' ready
|
|
35
|
+
2024-07-08T19:06:31+09:00 info: All connector for 'mssql-connector' ready
|
|
36
|
+
2024-07-08T19:06:31+09:00 info: All connector for 'oracle-connector' ready
|
|
37
|
+
2024-07-08T19:06:31+09:00 info: All connector for 'mysql-connector' ready
|
|
38
|
+
2024-07-08T19:06:31+09:00 info: All connector for 'socket-server' ready
|
|
39
|
+
2024-07-08T19:06:31+09:00 info: All connector for 'operato-connector' ready
|
|
40
|
+
2024-07-08T19:06:31+09:00 info: All connector for 'proxy-connector' ready
|
|
41
|
+
2024-07-08T19:06:31+09:00 info: ConnectionManager initialization done:
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
2024-07-12T23:34:43+09:00 info: Initializing ConnectionManager...
|
|
2
|
+
2024-07-12T23:34:43+09:00 info: Connector 'echo-back-server' started to ready
|
|
3
|
+
2024-07-12T23:34:43+09:00 info: Connector 'echo-back' started to ready
|
|
4
|
+
2024-07-12T23:34:43+09:00 info: Connector 'http-connector' started to ready
|
|
5
|
+
2024-07-12T23:34:43+09:00 info: Connector 'graphql-connector' started to ready
|
|
6
|
+
2024-07-12T23:34:43+09:00 info: Connector 'sqlite-connector' started to ready
|
|
7
|
+
2024-07-12T23:34:43+09:00 info: Connector 'postgresql-connector' started to ready
|
|
8
|
+
2024-07-12T23:34:43+09:00 info: Connector 'mqtt-connector' started to ready
|
|
9
|
+
2024-07-12T23:34:43+09:00 info: Connector 'mssql-connector' started to ready
|
|
10
|
+
2024-07-12T23:34:43+09:00 info: Connector 'oracle-connector' started to ready
|
|
11
|
+
2024-07-12T23:34:43+09:00 info: Connector 'mysql-connector' started to ready
|
|
12
|
+
2024-07-12T23:34:43+09:00 info: Connector 'socket-server' started to ready
|
|
13
|
+
2024-07-12T23:34:43+09:00 info: Connector 'operato-connector' started to ready
|
|
14
|
+
2024-07-12T23:34:43+09:00 info: Connector 'proxy-connector' started to ready
|
|
15
|
+
2024-07-12T23:34:43+09:00 info: echo-back-servers are ready
|
|
16
|
+
2024-07-12T23:34:43+09:00 info: echo-back connections are ready
|
|
17
|
+
2024-07-12T23:34:43+09:00 info: http-connector connections are ready
|
|
18
|
+
2024-07-12T23:34:43+09:00 info: graphql-connector connections are ready
|
|
19
|
+
2024-07-12T23:34:43+09:00 info: sqlite-connector connections are ready
|
|
20
|
+
2024-07-12T23:34:43+09:00 info: postgresql-connector connections are ready
|
|
21
|
+
2024-07-12T23:34:43+09:00 info: mqtt-connector connections are ready
|
|
22
|
+
2024-07-12T23:34:43+09:00 info: mssql-connector connections are ready
|
|
23
|
+
2024-07-12T23:34:43+09:00 info: oracle-connector connections are ready
|
|
24
|
+
2024-07-12T23:34:43+09:00 info: mysql-connector connections are ready
|
|
25
|
+
2024-07-12T23:34:43+09:00 info: socket servers are ready
|
|
26
|
+
2024-07-12T23:34:43+09:00 info: operato-connector connections are ready
|
|
27
|
+
2024-07-12T23:34:43+09:00 info: proxy-connector connections are ready
|
|
28
|
+
2024-07-12T23:34:43+09:00 info: All connector for 'echo-back-server' ready
|
|
29
|
+
2024-07-12T23:34:43+09:00 info: All connector for 'echo-back' ready
|
|
30
|
+
2024-07-12T23:34:43+09:00 info: All connector for 'http-connector' ready
|
|
31
|
+
2024-07-12T23:34:43+09:00 info: All connector for 'graphql-connector' ready
|
|
32
|
+
2024-07-12T23:34:43+09:00 info: All connector for 'sqlite-connector' ready
|
|
33
|
+
2024-07-12T23:34:43+09:00 info: All connector for 'postgresql-connector' ready
|
|
34
|
+
2024-07-12T23:34:43+09:00 info: All connector for 'mqtt-connector' ready
|
|
35
|
+
2024-07-12T23:34:43+09:00 info: All connector for 'mssql-connector' ready
|
|
36
|
+
2024-07-12T23:34:43+09:00 info: All connector for 'oracle-connector' ready
|
|
37
|
+
2024-07-12T23:34:43+09:00 info: All connector for 'mysql-connector' ready
|
|
38
|
+
2024-07-12T23:34:43+09:00 info: All connector for 'socket-server' ready
|
|
39
|
+
2024-07-12T23:34:43+09:00 info: All connector for 'operato-connector' ready
|
|
40
|
+
2024-07-12T23:34:43+09:00 info: All connector for 'proxy-connector' ready
|
|
41
|
+
2024-07-12T23:34:43+09:00 info: ConnectionManager initialization done:
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
2024-07-13T01:42:41+09:00 info: Initializing ConnectionManager...
|
|
2
|
+
2024-07-13T01:42:41+09:00 info: Connector 'echo-back-server' started to ready
|
|
3
|
+
2024-07-13T01:42:41+09:00 info: Connector 'echo-back' started to ready
|
|
4
|
+
2024-07-13T01:42:41+09:00 info: Connector 'http-connector' started to ready
|
|
5
|
+
2024-07-13T01:42:41+09:00 info: Connector 'graphql-connector' started to ready
|
|
6
|
+
2024-07-13T01:42:41+09:00 info: Connector 'sqlite-connector' started to ready
|
|
7
|
+
2024-07-13T01:42:41+09:00 info: Connector 'postgresql-connector' started to ready
|
|
8
|
+
2024-07-13T01:42:41+09:00 info: Connector 'mqtt-connector' started to ready
|
|
9
|
+
2024-07-13T01:42:41+09:00 info: Connector 'mssql-connector' started to ready
|
|
10
|
+
2024-07-13T01:42:41+09:00 info: Connector 'oracle-connector' started to ready
|
|
11
|
+
2024-07-13T01:42:41+09:00 info: Connector 'mysql-connector' started to ready
|
|
12
|
+
2024-07-13T01:42:41+09:00 info: Connector 'socket-server' started to ready
|
|
13
|
+
2024-07-13T01:42:41+09:00 info: Connector 'operato-connector' started to ready
|
|
14
|
+
2024-07-13T01:42:41+09:00 info: Connector 'proxy-connector' started to ready
|
|
15
|
+
2024-07-13T01:42:41+09:00 info: echo-back-servers are ready
|
|
16
|
+
2024-07-13T01:42:41+09:00 info: echo-back connections are ready
|
|
17
|
+
2024-07-13T01:42:41+09:00 info: http-connector connections are ready
|
|
18
|
+
2024-07-13T01:42:41+09:00 info: graphql-connector connections are ready
|
|
19
|
+
2024-07-13T01:42:41+09:00 info: sqlite-connector connections are ready
|
|
20
|
+
2024-07-13T01:42:41+09:00 info: postgresql-connector connections are ready
|
|
21
|
+
2024-07-13T01:42:41+09:00 info: mqtt-connector connections are ready
|
|
22
|
+
2024-07-13T01:42:41+09:00 info: mssql-connector connections are ready
|
|
23
|
+
2024-07-13T01:42:41+09:00 info: oracle-connector connections are ready
|
|
24
|
+
2024-07-13T01:42:41+09:00 info: mysql-connector connections are ready
|
|
25
|
+
2024-07-13T01:42:41+09:00 info: socket servers are ready
|
|
26
|
+
2024-07-13T01:42:41+09:00 info: operato-connector connections are ready
|
|
27
|
+
2024-07-13T01:42:41+09:00 info: proxy-connector connections are ready
|
|
28
|
+
2024-07-13T01:42:41+09:00 info: All connector for 'echo-back-server' ready
|
|
29
|
+
2024-07-13T01:42:41+09:00 info: All connector for 'echo-back' ready
|
|
30
|
+
2024-07-13T01:42:41+09:00 info: All connector for 'http-connector' ready
|
|
31
|
+
2024-07-13T01:42:41+09:00 info: All connector for 'graphql-connector' ready
|
|
32
|
+
2024-07-13T01:42:41+09:00 info: All connector for 'sqlite-connector' ready
|
|
33
|
+
2024-07-13T01:42:41+09:00 info: All connector for 'postgresql-connector' ready
|
|
34
|
+
2024-07-13T01:42:41+09:00 info: All connector for 'mqtt-connector' ready
|
|
35
|
+
2024-07-13T01:42:41+09:00 info: All connector for 'mssql-connector' ready
|
|
36
|
+
2024-07-13T01:42:41+09:00 info: All connector for 'oracle-connector' ready
|
|
37
|
+
2024-07-13T01:42:41+09:00 info: All connector for 'mysql-connector' ready
|
|
38
|
+
2024-07-13T01:42:41+09:00 info: All connector for 'socket-server' ready
|
|
39
|
+
2024-07-13T01:42:41+09:00 info: All connector for 'operato-connector' ready
|
|
40
|
+
2024-07-13T01:42:41+09:00 info: All connector for 'proxy-connector' ready
|
|
41
|
+
2024-07-13T01:42:41+09:00 info: ConnectionManager initialization done:
|
|
42
|
+
2024-07-13T01:50:05+09:00 info: Initializing ConnectionManager...
|
|
43
|
+
2024-07-13T01:50:05+09:00 info: Connector 'echo-back-server' started to ready
|
|
44
|
+
2024-07-13T01:50:05+09:00 info: Connector 'echo-back' started to ready
|
|
45
|
+
2024-07-13T01:50:05+09:00 info: Connector 'http-connector' started to ready
|
|
46
|
+
2024-07-13T01:50:05+09:00 info: Connector 'graphql-connector' started to ready
|
|
47
|
+
2024-07-13T01:50:05+09:00 info: Connector 'sqlite-connector' started to ready
|
|
48
|
+
2024-07-13T01:50:05+09:00 info: Connector 'postgresql-connector' started to ready
|
|
49
|
+
2024-07-13T01:50:05+09:00 info: Connector 'mqtt-connector' started to ready
|
|
50
|
+
2024-07-13T01:50:05+09:00 info: Connector 'mssql-connector' started to ready
|
|
51
|
+
2024-07-13T01:50:05+09:00 info: Connector 'oracle-connector' started to ready
|
|
52
|
+
2024-07-13T01:50:05+09:00 info: Connector 'mysql-connector' started to ready
|
|
53
|
+
2024-07-13T01:50:05+09:00 info: Connector 'socket-server' started to ready
|
|
54
|
+
2024-07-13T01:50:05+09:00 info: Connector 'operato-connector' started to ready
|
|
55
|
+
2024-07-13T01:50:05+09:00 info: Connector 'proxy-connector' started to ready
|
|
56
|
+
2024-07-13T01:50:05+09:00 info: echo-back-servers are ready
|
|
57
|
+
2024-07-13T01:50:05+09:00 info: echo-back connections are ready
|
|
58
|
+
2024-07-13T01:50:05+09:00 info: http-connector connections are ready
|
|
59
|
+
2024-07-13T01:50:05+09:00 info: graphql-connector connections are ready
|
|
60
|
+
2024-07-13T01:50:05+09:00 info: sqlite-connector connections are ready
|
|
61
|
+
2024-07-13T01:50:05+09:00 info: postgresql-connector connections are ready
|
|
62
|
+
2024-07-13T01:50:05+09:00 info: mqtt-connector connections are ready
|
|
63
|
+
2024-07-13T01:50:05+09:00 info: mssql-connector connections are ready
|
|
64
|
+
2024-07-13T01:50:05+09:00 info: oracle-connector connections are ready
|
|
65
|
+
2024-07-13T01:50:05+09:00 info: mysql-connector connections are ready
|
|
66
|
+
2024-07-13T01:50:05+09:00 info: socket servers are ready
|
|
67
|
+
2024-07-13T01:50:05+09:00 info: operato-connector connections are ready
|
|
68
|
+
2024-07-13T01:50:05+09:00 info: proxy-connector connections are ready
|
|
69
|
+
2024-07-13T01:50:05+09:00 info: All connector for 'echo-back-server' ready
|
|
70
|
+
2024-07-13T01:50:05+09:00 info: All connector for 'echo-back' ready
|
|
71
|
+
2024-07-13T01:50:05+09:00 info: All connector for 'http-connector' ready
|
|
72
|
+
2024-07-13T01:50:05+09:00 info: All connector for 'graphql-connector' ready
|
|
73
|
+
2024-07-13T01:50:05+09:00 info: All connector for 'sqlite-connector' ready
|
|
74
|
+
2024-07-13T01:50:05+09:00 info: All connector for 'postgresql-connector' ready
|
|
75
|
+
2024-07-13T01:50:05+09:00 info: All connector for 'mqtt-connector' ready
|
|
76
|
+
2024-07-13T01:50:05+09:00 info: All connector for 'mssql-connector' ready
|
|
77
|
+
2024-07-13T01:50:05+09:00 info: All connector for 'oracle-connector' ready
|
|
78
|
+
2024-07-13T01:50:05+09:00 info: All connector for 'mysql-connector' ready
|
|
79
|
+
2024-07-13T01:50:05+09:00 info: All connector for 'socket-server' ready
|
|
80
|
+
2024-07-13T01:50:05+09:00 info: All connector for 'operato-connector' ready
|
|
81
|
+
2024-07-13T01:50:05+09:00 info: All connector for 'proxy-connector' ready
|
|
82
|
+
2024-07-13T01:50:05+09:00 info: ConnectionManager initialization done:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/operato-codelingua",
|
|
3
|
-
"version": "8.0.0
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "dist-client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -40,54 +40,54 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@material/web": "^2.0.0",
|
|
43
|
-
"@operato/data-grist": "^8.0.0
|
|
44
|
-
"@operato/property-editor": "^8.0.0
|
|
45
|
-
"@operato/scene-chartjs": "^8.0.0
|
|
46
|
-
"@operato/scene-clock": "^8.0.0
|
|
47
|
-
"@operato/scene-data-transform": "^8.0.0
|
|
48
|
-
"@operato/scene-excel": "^8.0.0
|
|
49
|
-
"@operato/scene-form": "^8.0.0
|
|
50
|
-
"@operato/scene-gantt": "^8.0.0
|
|
51
|
-
"@operato/scene-gauge": "^8.0.0
|
|
52
|
-
"@operato/scene-half-roundrect": "^8.0.0
|
|
53
|
-
"@operato/scene-image-slider": "^8.0.0
|
|
54
|
-
"@operato/scene-integration": "^8.0.0
|
|
55
|
-
"@operato/scene-label": "^8.0.0
|
|
56
|
-
"@operato/scene-manufacturing": "^8.0.0
|
|
57
|
-
"@operato/scene-news-ticker": "^8.0.0
|
|
58
|
-
"@operato/scene-progressbar": "^8.0.0
|
|
59
|
-
"@operato/scene-random": "^8.0.0
|
|
60
|
-
"@operato/scene-restful": "^8.0.0
|
|
61
|
-
"@operato/scene-scichart": "^8.0.0
|
|
62
|
-
"@operato/scene-switch": "^8.0.0
|
|
63
|
-
"@operato/scene-table": "^8.0.0
|
|
64
|
-
"@operato/scene-timer": "^8.0.0
|
|
65
|
-
"@things-factory/api": "^8.0.0
|
|
66
|
-
"@things-factory/apptool-ui": "^8.0.0
|
|
67
|
-
"@things-factory/auth-ui": "^8.0.0
|
|
68
|
-
"@things-factory/board-service": "^8.0.0
|
|
69
|
-
"@things-factory/board-ui": "^8.0.0
|
|
70
|
-
"@things-factory/codelingua": "^8.0.0
|
|
71
|
-
"@things-factory/context-ui": "^8.0.0
|
|
72
|
-
"@things-factory/dashboard": "^8.0.0
|
|
73
|
-
"@things-factory/evaluation": "^8.0.0
|
|
74
|
-
"@things-factory/export-ui": "^8.0.0
|
|
75
|
-
"@things-factory/help": "^8.0.0
|
|
76
|
-
"@things-factory/i18n-base": "^8.0.0
|
|
77
|
-
"@things-factory/integration-ui": "^8.0.0
|
|
78
|
-
"@things-factory/lite-menu": "^8.0.0
|
|
79
|
-
"@things-factory/more-ui": "^8.0.0
|
|
80
|
-
"@things-factory/notification": "^8.0.0
|
|
81
|
-
"@things-factory/oauth2-client": "^8.0.0
|
|
82
|
-
"@things-factory/print-ui": "^8.0.0
|
|
83
|
-
"@things-factory/resource-ui": "^8.0.0
|
|
84
|
-
"@things-factory/setting-base": "^8.0.0
|
|
85
|
-
"@things-factory/setting-ui": "^8.0.0
|
|
86
|
-
"@things-factory/shell": "^8.0.0
|
|
87
|
-
"@things-factory/system": "^8.0.0
|
|
43
|
+
"@operato/data-grist": "^8.0.0",
|
|
44
|
+
"@operato/property-editor": "^8.0.0",
|
|
45
|
+
"@operato/scene-chartjs": "^8.0.0",
|
|
46
|
+
"@operato/scene-clock": "^8.0.0",
|
|
47
|
+
"@operato/scene-data-transform": "^8.0.0",
|
|
48
|
+
"@operato/scene-excel": "^8.0.0",
|
|
49
|
+
"@operato/scene-form": "^8.0.0",
|
|
50
|
+
"@operato/scene-gantt": "^8.0.0",
|
|
51
|
+
"@operato/scene-gauge": "^8.0.0",
|
|
52
|
+
"@operato/scene-half-roundrect": "^8.0.0",
|
|
53
|
+
"@operato/scene-image-slider": "^8.0.0",
|
|
54
|
+
"@operato/scene-integration": "^8.0.0",
|
|
55
|
+
"@operato/scene-label": "^8.0.0",
|
|
56
|
+
"@operato/scene-manufacturing": "^8.0.0",
|
|
57
|
+
"@operato/scene-news-ticker": "^8.0.0",
|
|
58
|
+
"@operato/scene-progressbar": "^8.0.0",
|
|
59
|
+
"@operato/scene-random": "^8.0.0",
|
|
60
|
+
"@operato/scene-restful": "^8.0.0",
|
|
61
|
+
"@operato/scene-scichart": "^8.0.0",
|
|
62
|
+
"@operato/scene-switch": "^8.0.0",
|
|
63
|
+
"@operato/scene-table": "^8.0.0",
|
|
64
|
+
"@operato/scene-timer": "^8.0.0",
|
|
65
|
+
"@things-factory/api": "^8.0.0",
|
|
66
|
+
"@things-factory/apptool-ui": "^8.0.0",
|
|
67
|
+
"@things-factory/auth-ui": "^8.0.0",
|
|
68
|
+
"@things-factory/board-service": "^8.0.0",
|
|
69
|
+
"@things-factory/board-ui": "^8.0.0",
|
|
70
|
+
"@things-factory/codelingua": "^8.0.0",
|
|
71
|
+
"@things-factory/context-ui": "^8.0.0",
|
|
72
|
+
"@things-factory/dashboard": "^8.0.0",
|
|
73
|
+
"@things-factory/evaluation": "^8.0.0",
|
|
74
|
+
"@things-factory/export-ui": "^8.0.0",
|
|
75
|
+
"@things-factory/help": "^8.0.0",
|
|
76
|
+
"@things-factory/i18n-base": "^8.0.0",
|
|
77
|
+
"@things-factory/integration-ui": "^8.0.0",
|
|
78
|
+
"@things-factory/lite-menu": "^8.0.0",
|
|
79
|
+
"@things-factory/more-ui": "^8.0.0",
|
|
80
|
+
"@things-factory/notification": "^8.0.0",
|
|
81
|
+
"@things-factory/oauth2-client": "^8.0.0",
|
|
82
|
+
"@things-factory/print-ui": "^8.0.0",
|
|
83
|
+
"@things-factory/resource-ui": "^8.0.0",
|
|
84
|
+
"@things-factory/setting-base": "^8.0.0",
|
|
85
|
+
"@things-factory/setting-ui": "^8.0.0",
|
|
86
|
+
"@things-factory/shell": "^8.0.0",
|
|
87
|
+
"@things-factory/system": "^8.0.0"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
|
-
"@things-factory/builder": "^8.0.0
|
|
90
|
+
"@things-factory/builder": "^8.0.0"
|
|
91
91
|
},
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "07ef27d272dd9a067a9648ac7013748510556a18"
|
|
93
93
|
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import fetch, { Response } from 'node-fetch'
|
|
2
|
+
|
|
3
|
+
const GITHUB_API_URL = 'https://api.github.com'
|
|
4
|
+
|
|
5
|
+
const fetchOptions = (token: string) => ({
|
|
6
|
+
headers: {
|
|
7
|
+
'Content-Type': 'application/json',
|
|
8
|
+
Authorization: `token ${token}`
|
|
9
|
+
}
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
const handleFetchError = (response: Response, action: string) => {
|
|
13
|
+
if (!response.ok) {
|
|
14
|
+
console.error(`Failed to ${action}:`, response.statusText)
|
|
15
|
+
throw new Error(`Failed to ${action}`)
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const getWebhooks = async (repoFullName: string, token: string): Promise<any[]> => {
|
|
20
|
+
const response: Response = await fetch(`${GITHUB_API_URL}/repos/${repoFullName}/hooks`, fetchOptions(token))
|
|
21
|
+
handleFetchError(response, 'fetch webhooks')
|
|
22
|
+
return response.json()
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const webhookExists = async (
|
|
26
|
+
repoFullName: string,
|
|
27
|
+
webhookUrl: string,
|
|
28
|
+
token: string
|
|
29
|
+
): Promise<{ exists: boolean; id?: number }> => {
|
|
30
|
+
try {
|
|
31
|
+
const hooks: any[] = await getWebhooks(repoFullName, token)
|
|
32
|
+
const hook = hooks.find((hook: any) => hook.config.url === webhookUrl)
|
|
33
|
+
return hook ? { exists: true, id: hook.id } : { exists: false }
|
|
34
|
+
} catch (error) {
|
|
35
|
+
console.error('Error checking webhook existence:', error)
|
|
36
|
+
return { exists: false }
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export const postGitHubComment = async (repoFullName: string, commitId: string, comment: string): Promise<void> => {
|
|
41
|
+
try {
|
|
42
|
+
const response: Response = await fetch(`${GITHUB_API_URL}/repos/${repoFullName}/commits/${commitId}/comments`, {
|
|
43
|
+
method: 'POST',
|
|
44
|
+
...fetchOptions(process.env.GITHUB_API_KEY!),
|
|
45
|
+
body: JSON.stringify({ body: comment })
|
|
46
|
+
})
|
|
47
|
+
handleFetchError(response, 'post GitHub comment')
|
|
48
|
+
} catch (error) {
|
|
49
|
+
console.error('Error posting GitHub comment:', error)
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export const registerWebhook = async (accessToken: string, repoFullName: string, webhookUrl: string) => {
|
|
54
|
+
const { exists } = await webhookExists(repoFullName, webhookUrl, accessToken)
|
|
55
|
+
if (exists) {
|
|
56
|
+
console.log('Webhook already registered.')
|
|
57
|
+
return
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
try {
|
|
61
|
+
const response: Response = await fetch(`${GITHUB_API_URL}/repos/${repoFullName}/hooks`, {
|
|
62
|
+
method: 'POST',
|
|
63
|
+
...fetchOptions(accessToken),
|
|
64
|
+
body: JSON.stringify({
|
|
65
|
+
name: 'web',
|
|
66
|
+
active: true,
|
|
67
|
+
events: ['push'],
|
|
68
|
+
config: {
|
|
69
|
+
url: webhookUrl,
|
|
70
|
+
content_type: 'json'
|
|
71
|
+
}
|
|
72
|
+
})
|
|
73
|
+
})
|
|
74
|
+
handleFetchError(response, 'register webhook')
|
|
75
|
+
console.log('Webhook registered successfully.')
|
|
76
|
+
} catch (error) {
|
|
77
|
+
console.error('Error registering webhook:', error)
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export const unregisterWebhook = async (accessToken: string, repoFullName: string, webhookUrl: string) => {
|
|
82
|
+
const { exists, id } = await webhookExists(repoFullName, webhookUrl, accessToken)
|
|
83
|
+
if (!exists || !id) {
|
|
84
|
+
console.log('Webhook not found.')
|
|
85
|
+
return
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
try {
|
|
89
|
+
const deleteResponse: Response = await fetch(`${GITHUB_API_URL}/repos/${repoFullName}/hooks/${id}`, {
|
|
90
|
+
method: 'DELETE',
|
|
91
|
+
...fetchOptions(accessToken)
|
|
92
|
+
})
|
|
93
|
+
handleFetchError(deleteResponse, 'unregister webhook')
|
|
94
|
+
console.log('Webhook unregistered successfully.')
|
|
95
|
+
} catch (error) {
|
|
96
|
+
console.error('Error unregistering webhook:', error)
|
|
97
|
+
}
|
|
98
|
+
}
|
|
File without changes
|
package/server/index.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const glob = require('glob')
|
|
2
|
+
const path = require('path')
|
|
3
|
+
|
|
4
|
+
export var migrations = []
|
|
5
|
+
|
|
6
|
+
glob.sync(path.resolve(__dirname, '.', '**', '*.js')).forEach(function(file) {
|
|
7
|
+
if (file.indexOf('index.js') !== -1) return
|
|
8
|
+
migrations = migrations.concat(Object.values(require(path.resolve(file))) || [])
|
|
9
|
+
})
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import Router from 'koa-router'
|
|
2
|
+
import { codereviewCompletion } from '@things-factory/codelingua'
|
|
3
|
+
|
|
4
|
+
import { postGitHubComment } from '../controllers/github-controller'
|
|
5
|
+
import { getRepository } from '@things-factory/shell'
|
|
6
|
+
import { GitProject } from '../service/git-project/git-project'
|
|
7
|
+
|
|
8
|
+
export const githubWebhookRouter = new Router()
|
|
9
|
+
|
|
10
|
+
githubWebhookRouter.post('/github-webhook/:projectId', async (context, next) => {
|
|
11
|
+
const { payload, head_commit } = context.request.body
|
|
12
|
+
const { commitDiff } = head_commit.diff
|
|
13
|
+
// const { commits, pull_request } = payload
|
|
14
|
+
const projectId = context.params.projectId
|
|
15
|
+
|
|
16
|
+
const project = await getRepository(GitProject).findOne({
|
|
17
|
+
where: {
|
|
18
|
+
id: projectId
|
|
19
|
+
}
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
if (!project) {
|
|
23
|
+
context.status = 404
|
|
24
|
+
context.body = 'Project not found'
|
|
25
|
+
return
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// for (const commit of commits) {
|
|
29
|
+
// const codeDiff = `diff of the changed code here` // 실제 diff 데이터를 가져오는 로직 필요
|
|
30
|
+
// const reviewFeedback = await codereviewCompletion(codeDiff)
|
|
31
|
+
// const pullNumber = pull_request.number // 풀 리퀘스트 번호를 받아옴
|
|
32
|
+
// await postGitHubComment(project.repositoryUrl, pullNumber, reviewFeedback)
|
|
33
|
+
// }
|
|
34
|
+
|
|
35
|
+
const reviewFeedback = await codereviewCompletion(commitDiff)
|
|
36
|
+
|
|
37
|
+
await postGitHubComment(
|
|
38
|
+
context.request.body.repository.full_name,
|
|
39
|
+
context.request.body.head_commit.id,
|
|
40
|
+
reviewFeedback
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
context.status = 200
|
|
44
|
+
context.body = 'Success'
|
|
45
|
+
})
|
package/server/routes.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { githubWebhookRouter } from './routers/github-webhook-router'
|
|
2
|
+
|
|
3
|
+
process.on('bootstrap-module-global-public-route' as any, (app, globalPublicRouter) => {
|
|
4
|
+
/*
|
|
5
|
+
* can add global public routes to application (auth not required, tenancy not required)
|
|
6
|
+
*
|
|
7
|
+
* ex) routes.get('/path', async(context, next) => {})
|
|
8
|
+
* ex) routes.post('/path', async(context, next) => {})
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
globalPublicRouter.use('', githubWebhookRouter.routes(), githubWebhookRouter.allowedMethods())
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
process.on('bootstrap-module-global-private-route' as any, (app, globalPrivateRouter) => {
|
|
15
|
+
/*
|
|
16
|
+
* can add global private routes to application (auth required, tenancy not required)
|
|
17
|
+
*/
|
|
18
|
+
})
|
|
19
|
+
|
|
20
|
+
process.on('bootstrap-module-domain-public-route' as any, (app, domainPublicRouter) => {
|
|
21
|
+
/*
|
|
22
|
+
* can add domain public routes to application (auth not required, tenancy required)
|
|
23
|
+
*/
|
|
24
|
+
})
|
|
25
|
+
|
|
26
|
+
process.on('bootstrap-module-domain-private-route' as any, (app, domainPrivateRouter) => {
|
|
27
|
+
/*
|
|
28
|
+
* can add domain private routes to application (auth required, tenancy required)
|
|
29
|
+
*/
|
|
30
|
+
})
|