@chrisromp/copilot-bridge 0.6.0-dev.2 → 0.6.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/package.json
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chrisromp/copilot-bridge",
|
|
3
|
-
"version": "0.6.0
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Mattermost ↔ GitHub Copilot bridge",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
|
-
"repository": {
|
|
8
|
-
"type": "git",
|
|
9
|
-
"url": "https://github.com/ChrisRomp/copilot-bridge.git"
|
|
10
|
-
},
|
|
11
7
|
"bin": {
|
|
12
8
|
"copilot-bridge": "bin/copilot-bridge.js"
|
|
13
9
|
},
|
|
@@ -18,13 +14,11 @@
|
|
|
18
14
|
"scripts/lib/*.ts",
|
|
19
15
|
"!scripts/**/*.test.ts",
|
|
20
16
|
"!scripts/test-admin-api.ts",
|
|
21
|
-
"scripts/com.copilot-bridge.plist",
|
|
22
|
-
"scripts/copilot-bridge.service",
|
|
23
17
|
"templates/",
|
|
24
18
|
"config.sample.json"
|
|
25
19
|
],
|
|
26
20
|
"publishConfig": {
|
|
27
|
-
"access": "
|
|
21
|
+
"access": "restricted"
|
|
28
22
|
},
|
|
29
23
|
"engines": {
|
|
30
24
|
"node": ">=20"
|
|
@@ -45,7 +39,7 @@
|
|
|
45
39
|
"@github/copilot-sdk": "^0.1.32",
|
|
46
40
|
"@mattermost/client": "^10.3.0",
|
|
47
41
|
"@mattermost/types": "^10.3.0",
|
|
48
|
-
"better-sqlite3": "^
|
|
42
|
+
"better-sqlite3": "^11.7.0",
|
|
49
43
|
"cron": "^4.4.0",
|
|
50
44
|
"cronstrue": "^3.13.0",
|
|
51
45
|
"luxon": "^3.7.2",
|
|
@@ -56,6 +50,6 @@
|
|
|
56
50
|
"@types/better-sqlite3": "^7.6.12",
|
|
57
51
|
"@types/ws": "^8.5.14",
|
|
58
52
|
"typescript": "^5.7.3",
|
|
59
|
-
"vitest": "^
|
|
53
|
+
"vitest": "^3.2.1"
|
|
60
54
|
}
|
|
61
55
|
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>Label</key>
|
|
6
|
-
<string>com.copilot-bridge</string>
|
|
7
|
-
|
|
8
|
-
<key>ProgramArguments</key>
|
|
9
|
-
<array>
|
|
10
|
-
<string>/opt/homebrew/bin/npx</string>
|
|
11
|
-
<string>tsx</string>
|
|
12
|
-
<string>src/index.ts</string>
|
|
13
|
-
</array>
|
|
14
|
-
|
|
15
|
-
<key>WorkingDirectory</key>
|
|
16
|
-
<string>/Users/USERNAME/path/to/copilot-bridge</string>
|
|
17
|
-
|
|
18
|
-
<key>EnvironmentVariables</key>
|
|
19
|
-
<dict>
|
|
20
|
-
<key>PATH</key>
|
|
21
|
-
<string>/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
|
|
22
|
-
<key>HOME</key>
|
|
23
|
-
<string>/Users/USERNAME</string>
|
|
24
|
-
</dict>
|
|
25
|
-
|
|
26
|
-
<key>RunAtLoad</key>
|
|
27
|
-
<true/>
|
|
28
|
-
|
|
29
|
-
<key>KeepAlive</key>
|
|
30
|
-
<true/>
|
|
31
|
-
|
|
32
|
-
<key>ThrottleInterval</key>
|
|
33
|
-
<integer>10</integer>
|
|
34
|
-
|
|
35
|
-
<key>StandardOutPath</key>
|
|
36
|
-
<string>/tmp/copilot-bridge.log</string>
|
|
37
|
-
|
|
38
|
-
<key>StandardErrorPath</key>
|
|
39
|
-
<string>/tmp/copilot-bridge.log</string>
|
|
40
|
-
</dict>
|
|
41
|
-
</plist>
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# copilot-bridge systemd service
|
|
2
|
-
#
|
|
3
|
-
# Install:
|
|
4
|
-
# sudo cp scripts/copilot-bridge.service /etc/systemd/system/
|
|
5
|
-
# # Edit ExecStart, WorkingDirectory, User, and HOME below
|
|
6
|
-
# sudo systemctl daemon-reload
|
|
7
|
-
# sudo systemctl enable --now copilot-bridge
|
|
8
|
-
#
|
|
9
|
-
# Logs:
|
|
10
|
-
# sudo journalctl -u copilot-bridge -f
|
|
11
|
-
#
|
|
12
|
-
# Restart:
|
|
13
|
-
# sudo systemctl restart copilot-bridge
|
|
14
|
-
|
|
15
|
-
[Unit]
|
|
16
|
-
Description=Copilot Bridge
|
|
17
|
-
After=network.target
|
|
18
|
-
|
|
19
|
-
[Service]
|
|
20
|
-
Type=simple
|
|
21
|
-
User=username
|
|
22
|
-
ExecStart=/usr/local/bin/node /path/to/copilot-bridge/node_modules/.bin/tsx dist/index.js
|
|
23
|
-
WorkingDirectory=/path/to/copilot-bridge
|
|
24
|
-
Environment=HOME=/home/username
|
|
25
|
-
Environment=PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
|
|
26
|
-
Restart=always
|
|
27
|
-
RestartSec=10
|
|
28
|
-
|
|
29
|
-
[Install]
|
|
30
|
-
WantedBy=multi-user.target
|