@smart-tinker/kayla 0.1.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 ADDED
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "@smart-tinker/kayla",
3
+ "version": "0.1.0",
4
+ "description": "Telegram -> Claude Code CLI orchestrator (Z.AI backend configured in Claude Code).",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/smart-tinker/kayla.git"
9
+ },
10
+ "bugs": {
11
+ "url": "https://github.com/smart-tinker/kayla/issues"
12
+ },
13
+ "homepage": "https://github.com/smart-tinker/kayla#readme",
14
+ "scripts": {
15
+ "dev": "tsx watch src/index.ts",
16
+ "build": "node -e \"require('fs').rmSync('dist', { recursive: true, force: true })\" && tsc -p tsconfig.build.json",
17
+ "start": "node dist/index.js",
18
+ "cli": "tsx src/cli.ts",
19
+ "typecheck": "tsc -p tsconfig.json --noEmit",
20
+ "test": "vitest run",
21
+ "lint": "eslint .",
22
+ "prepublishOnly": "npm run build"
23
+ },
24
+ "bin": {
25
+ "kayla": "dist/cli.js"
26
+ },
27
+ "files": [
28
+ "dist/",
29
+ "scripts/systemd/kayla.service.template",
30
+ "LICENSE",
31
+ "README.md"
32
+ ],
33
+ "publishConfig": {
34
+ "access": "public"
35
+ },
36
+ "dependencies": {
37
+ "better-sqlite3": "^11.0.0",
38
+ "grammy": "^1.36.0",
39
+ "pino": "^9.0.0",
40
+ "uuid": "^11.0.0",
41
+ "yaml": "^2.5.0"
42
+ },
43
+ "devDependencies": {
44
+ "@types/better-sqlite3": "^7.6.0",
45
+ "@types/node": "^22.0.0",
46
+ "@typescript-eslint/eslint-plugin": "^8.0.0",
47
+ "@typescript-eslint/parser": "^8.0.0",
48
+ "eslint": "^9.0.0",
49
+ "tsx": "^4.0.0",
50
+ "typescript": "^5.6.0",
51
+ "vitest": "^2.0.0"
52
+ }
53
+ }
@@ -0,0 +1,44 @@
1
+ # Kayla systemd unit template.
2
+ #
3
+ # This file is intended to be rendered by `kayla setup` via placeholder substitution.
4
+ # Placeholders:
5
+ # - @KAYLA_USER@
6
+ # - @KAYLA_HOME@
7
+ # - @KAYLA_CONFIG@
8
+ # - @KAYLA_EXEC_START@
9
+ #
10
+ # Conventions:
11
+ # - XDG config dir: @KAYLA_HOME@/.config/kayla/
12
+ # - XDG data dir: @KAYLA_HOME@/.local/share/kayla/
13
+ # - `claude` must be installed and configured by the installing user; Kayla does not manage its auth.
14
+
15
+ [Unit]
16
+ Description=Kayla Telegram bot (Claude Code CLI orchestrator)
17
+ Wants=network-online.target
18
+ After=network-online.target
19
+
20
+ [Service]
21
+ Type=simple
22
+
23
+ # Run as the installing user (requires a system unit + sudo during setup).
24
+ User=@KAYLA_USER@
25
+
26
+ # Ensure user-scoped tools can be found (e.g., ~/.local/bin/claude).
27
+ Environment=HOME=@KAYLA_HOME@
28
+ Environment=PATH=@KAYLA_PATH@
29
+
30
+ # Config path is provided via env; config overrides KAYLA_* env vars.
31
+ Environment=KAYLA_CONFIG=@KAYLA_CONFIG@
32
+
33
+ WorkingDirectory=@KAYLA_HOME@
34
+
35
+ ExecStart=@KAYLA_EXEC_START@
36
+
37
+ Restart=always
38
+ RestartSec=2
39
+
40
+ # Give Node/claude time to exit cleanly (SIGTERM -> SIGKILL handled by systemd).
41
+ TimeoutStopSec=30
42
+
43
+ [Install]
44
+ WantedBy=multi-user.target