@cremini/skillpack 1.1.3 → 1.1.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/README.md +87 -47
- package/dist/cli.js +1602 -339
- package/package.json +17 -9
- package/templates/start.bat +3 -0
- package/templates/start.sh +3 -0
- package/runtime/README.md +0 -51
- package/runtime/server/dist/adapters/markdown.js +0 -74
- package/runtime/server/dist/adapters/markdown.js.map +0 -1
- package/runtime/server/dist/adapters/slack.js +0 -369
- package/runtime/server/dist/adapters/slack.js.map +0 -1
- package/runtime/server/dist/adapters/telegram.js +0 -199
- package/runtime/server/dist/adapters/telegram.js.map +0 -1
- package/runtime/server/dist/adapters/types.js +0 -2
- package/runtime/server/dist/adapters/types.js.map +0 -1
- package/runtime/server/dist/adapters/web.js +0 -201
- package/runtime/server/dist/adapters/web.js.map +0 -1
- package/runtime/server/dist/agent.js +0 -245
- package/runtime/server/dist/agent.js.map +0 -1
- package/runtime/server/dist/config.js +0 -79
- package/runtime/server/dist/config.js.map +0 -1
- package/runtime/server/dist/index.js +0 -146
- package/runtime/server/dist/index.js.map +0 -1
- package/runtime/server/dist/lifecycle.js +0 -85
- package/runtime/server/dist/lifecycle.js.map +0 -1
- package/runtime/server/dist/memory.js +0 -195
- package/runtime/server/dist/memory.js.map +0 -1
- package/runtime/server/package-lock.json +0 -8433
- package/runtime/server/package.json +0 -23
- package/runtime/start.bat +0 -51
- package/runtime/start.sh +0 -50
- /package/{runtime/web → web}/index.html +0 -0
- /package/{runtime/web → web}/js/api-key-dialog.js +0 -0
- /package/{runtime/web → web}/js/api.js +0 -0
- /package/{runtime/web → web}/js/chat-apps-dialog.js +0 -0
- /package/{runtime/web → web}/js/chat.js +0 -0
- /package/{runtime/web → web}/js/config.js +0 -0
- /package/{runtime/web → web}/js/main.js +0 -0
- /package/{runtime/web → web}/js/settings.js +0 -0
- /package/{runtime/web → web}/marked.min.js +0 -0
- /package/{runtime/web → web}/styles.css +0 -0
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "skillpack-server",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"type": "module",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"build": "tsc",
|
|
7
|
-
"start": "node dist/index.js"
|
|
8
|
-
},
|
|
9
|
-
"dependencies": {
|
|
10
|
-
"@mariozechner/pi-coding-agent": "^0.57.1",
|
|
11
|
-
"@slack/bolt": "^4.6.0",
|
|
12
|
-
"express": "^5.1.0",
|
|
13
|
-
"node-telegram-bot-api": "^0.66.0",
|
|
14
|
-
"ws": "^8.19.0"
|
|
15
|
-
},
|
|
16
|
-
"devDependencies": {
|
|
17
|
-
"@types/express": "^5.0.0",
|
|
18
|
-
"@types/node": "^22.0.0",
|
|
19
|
-
"@types/node-telegram-bot-api": "^0.64.0",
|
|
20
|
-
"@types/ws": "^8.18.0",
|
|
21
|
-
"typescript": "^5.9.3"
|
|
22
|
-
}
|
|
23
|
-
}
|
package/runtime/start.bat
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
@echo off
|
|
2
|
-
cd /d "%~dp0"
|
|
3
|
-
|
|
4
|
-
rem Read the pack name
|
|
5
|
-
set "PACK_NAME=Skills Pack"
|
|
6
|
-
where node >nul 2>nul
|
|
7
|
-
if %errorlevel% equ 0 (
|
|
8
|
-
if exist "skillpack.json" (
|
|
9
|
-
for /f "delims=" %%i in ('node -e "console.log(JSON.parse(require('fs').readFileSync('skillpack.json','utf-8')).name)" 2^>nul') do set "PACK_NAME=%%i"
|
|
10
|
-
)
|
|
11
|
-
)
|
|
12
|
-
|
|
13
|
-
echo.
|
|
14
|
-
echo Starting %PACK_NAME%...
|
|
15
|
-
echo.
|
|
16
|
-
|
|
17
|
-
rem Install dependencies
|
|
18
|
-
if not exist "server\node_modules" (
|
|
19
|
-
echo Installing dependencies...
|
|
20
|
-
cd server && npm install --omit=dev && cd ..
|
|
21
|
-
echo.
|
|
22
|
-
)
|
|
23
|
-
|
|
24
|
-
rem First-run flag
|
|
25
|
-
set "FIRST_RUN=1"
|
|
26
|
-
|
|
27
|
-
:loop
|
|
28
|
-
set "SKILLPACK_FIRST_RUN=%FIRST_RUN%"
|
|
29
|
-
set "PACK_ROOT=%~dp0"
|
|
30
|
-
set "NODE_ENV=production"
|
|
31
|
-
node server\dist\index.js
|
|
32
|
-
set "EXIT_CODE=%errorlevel%"
|
|
33
|
-
|
|
34
|
-
set "FIRST_RUN=0"
|
|
35
|
-
|
|
36
|
-
rem Only restart on exit code 75 (/restart command)
|
|
37
|
-
if %EXIT_CODE% equ 75 (
|
|
38
|
-
echo.
|
|
39
|
-
echo Restarting...
|
|
40
|
-
timeout /t 1 /nobreak >nul
|
|
41
|
-
goto loop
|
|
42
|
-
)
|
|
43
|
-
|
|
44
|
-
rem All other exit codes → stop
|
|
45
|
-
if %EXIT_CODE% equ 64 (
|
|
46
|
-
echo.
|
|
47
|
-
echo Shutdown complete.
|
|
48
|
-
) else if %EXIT_CODE% neq 0 (
|
|
49
|
-
echo.
|
|
50
|
-
echo Process exited with code %EXIT_CODE%.
|
|
51
|
-
)
|
package/runtime/start.sh
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
cd "$(dirname "$0")"
|
|
3
|
-
|
|
4
|
-
# Read the pack name
|
|
5
|
-
PACK_NAME="Skills Pack"
|
|
6
|
-
if [ -f "skillpack.json" ] && command -v node &> /dev/null; then
|
|
7
|
-
PACK_NAME=$(node -e "console.log(JSON.parse(require('fs').readFileSync('skillpack.json','utf-8')).name)" 2>/dev/null || echo "Skills Pack")
|
|
8
|
-
fi
|
|
9
|
-
|
|
10
|
-
echo ""
|
|
11
|
-
echo " Starting ${PACK_NAME}..."
|
|
12
|
-
echo ""
|
|
13
|
-
|
|
14
|
-
# Install dependencies
|
|
15
|
-
if [ ! -d "server/node_modules" ]; then
|
|
16
|
-
echo " Installing dependencies..."
|
|
17
|
-
cd server && npm install --omit=dev && cd ..
|
|
18
|
-
echo ""
|
|
19
|
-
fi
|
|
20
|
-
|
|
21
|
-
# First-run flag (controls browser auto-open on first launch only)
|
|
22
|
-
FIRST_RUN=1
|
|
23
|
-
|
|
24
|
-
while true; do
|
|
25
|
-
SKILLPACK_FIRST_RUN="$FIRST_RUN" \
|
|
26
|
-
PACK_ROOT="$(pwd)" \
|
|
27
|
-
NODE_ENV="production" \
|
|
28
|
-
node server/dist/index.js
|
|
29
|
-
EXIT_CODE=$?
|
|
30
|
-
|
|
31
|
-
FIRST_RUN=0
|
|
32
|
-
|
|
33
|
-
# Only restart on exit code 75 (/restart command)
|
|
34
|
-
if [ "$EXIT_CODE" -eq 75 ]; then
|
|
35
|
-
echo ""
|
|
36
|
-
echo " Restarting..."
|
|
37
|
-
sleep 1
|
|
38
|
-
continue
|
|
39
|
-
fi
|
|
40
|
-
|
|
41
|
-
# All other exit codes (0, 64, crash, Ctrl+C, kill, etc.) → stop
|
|
42
|
-
if [ "$EXIT_CODE" -eq 64 ]; then
|
|
43
|
-
echo ""
|
|
44
|
-
echo " Shutdown complete."
|
|
45
|
-
elif [ "$EXIT_CODE" -ne 0 ]; then
|
|
46
|
-
echo ""
|
|
47
|
-
echo " Process exited with code $EXIT_CODE."
|
|
48
|
-
fi
|
|
49
|
-
break
|
|
50
|
-
done
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|