@lydia-agent/core 0.1.1 → 0.1.3

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,6 +1,6 @@
1
- {
1
+ {
2
2
  "name": "@lydia-agent/core",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Lydia Core Strategy Engine",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -15,18 +15,19 @@
15
15
  "access": "public"
16
16
  },
17
17
  "scripts": {
18
- "build": "tsup src/index.ts --format cjs,esm --dts --tsconfig tsconfig.json --shims --external better-sqlite3",
19
- "dev": "tsup src/index.ts --format cjs,esm --dts --watch --tsconfig tsconfig.json --shims --external better-sqlite3",
20
- "test": "vitest run --passWithNoTests",
21
- "lint": "biome check .",
22
- "clean": "rm -rf dist node_modules"
23
- },
18
+ "build": "tsup src/index.ts --format cjs,esm --dts --tsconfig tsconfig.json --shims --external better-sqlite3 --external playwright",
19
+ "dev": "tsup src/index.ts --format cjs,esm --dts --watch --tsconfig tsconfig.json --shims --external better-sqlite3 --external playwright",
20
+ "test": "vitest run --passWithNoTests",
21
+ "lint": "biome check .",
22
+ "clean": "rm -rf dist node_modules"
23
+ },
24
24
  "dependencies": {
25
25
  "@anthropic-ai/sdk": "^0.73.0",
26
26
  "@lydia-agent/shared": "workspace:*",
27
27
  "@modelcontextprotocol/sdk": "^0.6.0",
28
28
  "better-sqlite3": "^12.6.2",
29
29
  "openai": "^4.0.0",
30
+ "playwright": "^1.58.2",
30
31
  "simple-git": "^3.30.0",
31
32
  "yaml": "^2.3.4",
32
33
  "zod": "^3.22.4"
@@ -34,7 +35,7 @@
34
35
  "devDependencies": {
35
36
  "@types/better-sqlite3": "^7.6.9",
36
37
  "tsup": "^8.0.1",
37
- "typescript": "^5.3.3",
38
- "vitest": "^1.2.2"
39
- }
38
+ "typescript": "^5.3.3",
39
+ "vitest": "^1.2.2"
40
+ }
40
41
  }
package/skills/README.md CHANGED
@@ -1,7 +1,7 @@
1
- # Built-in Skills
2
-
3
- This folder contains built-in skills shipped with Lydia.
4
-
1
+ # Built-in Skills
2
+
3
+ This folder contains built-in skills shipped with Lydia.
4
+
5
5
  ## Guidelines
6
6
  - Use English only.
7
7
  - Include YAML frontmatter.
@@ -1,36 +1,36 @@
1
- ---
2
- name: docker-container-management
3
- description: Manage Docker containers and images
4
- tags: [docker, containers, devops]
5
- ---
6
-
7
- # Docker Container Management
8
-
9
- This skill helps you build, run, and manage Docker containers.
10
-
11
- ## Common Tasks
12
-
13
- ### 1. Build Image
14
- - Look for `Dockerfile`.
15
- - Run: `docker build -t <image-name> .`
16
-
17
- ### 2. Run Container
18
- - Run: `docker run -d --name <container-name> -p <host-port>:<container-port> <image-name>`
19
- - Example: `docker run -d --name my-redis -p 6379:6379 redis`
20
-
21
- ### 3. Manage State
22
- - **List Running**: `docker ps`
23
- - **List All**: `docker ps -a`
24
- - **Stop**: `docker stop <container-id>`
25
- - **Remove**: `docker rm <container-id>`
26
- - **Logs**: `docker logs -f <container-id>`
27
-
28
- ### 4. Cleanup
29
- - **Prune Stopped Containers**: `docker container prune`
30
- - **Prune Unused Images**: `docker image prune`
31
-
32
- ## Docker Compose
33
- - IF `docker-compose.yml` exists:
34
- - Start: `docker-compose up -d`
35
- - Stop: `docker-compose down`
36
- - Logs: `docker-compose logs -f`
1
+ ---
2
+ name: docker-container-management
3
+ description: Manage Docker containers and images
4
+ tags: [docker, containers, devops]
5
+ ---
6
+
7
+ # Docker Container Management
8
+
9
+ This skill helps you build, run, and manage Docker containers.
10
+
11
+ ## Common Tasks
12
+
13
+ ### 1. Build Image
14
+ - Look for `Dockerfile`.
15
+ - Run: `docker build -t <image-name> .`
16
+
17
+ ### 2. Run Container
18
+ - Run: `docker run -d --name <container-name> -p <host-port>:<container-port> <image-name>`
19
+ - Example: `docker run -d --name my-redis -p 6379:6379 redis`
20
+
21
+ ### 3. Manage State
22
+ - **List Running**: `docker ps`
23
+ - **List All**: `docker ps -a`
24
+ - **Stop**: `docker stop <container-id>`
25
+ - **Remove**: `docker rm <container-id>`
26
+ - **Logs**: `docker logs -f <container-id>`
27
+
28
+ ### 4. Cleanup
29
+ - **Prune Stopped Containers**: `docker container prune`
30
+ - **Prune Unused Images**: `docker image prune`
31
+
32
+ ## Docker Compose
33
+ - IF `docker-compose.yml` exists:
34
+ - Start: `docker-compose up -d`
35
+ - Stop: `docker-compose down`
36
+ - Logs: `docker-compose logs -f`
@@ -1,43 +1,43 @@
1
- ---
2
- name: git-advanced-workflow
3
- description: Advanced Git workflows (branching, merging, rebasing, stashing)
4
- tags: [git, version-control]
5
- ---
6
-
7
- # Git Advanced Workflow
8
-
9
- This skill guides you through advanced Git operations beyond simple commits.
10
-
11
- ## Feature Branch Workflow
12
-
13
- 1. **Start Feature**:
14
- - `git checkout -b feat/feature-name`
15
- - Work on changes...
16
-
17
- 2. **Sync with Main**:
18
- - `git checkout main`
19
- - `git pull`
20
- - `git checkout feat/feature-name`
21
- - `git rebase main` (Preferred over merge for clean history)
22
-
23
- 3. **Handle Conflicts**:
24
- - IF conflicts during rebase:
25
- - Fix files
26
- - `git add <file>`
27
- - `git rebase --continue`
28
-
29
- 4. **Finish Feature**:
30
- - Ensure tests pass
31
- - `git push -u origin feat/feature-name`
32
- - Open Pull Request (via gh cli if available, or manual)
33
-
34
- ## Stashing
35
-
36
- - IF you need to switch context but aren't ready to commit:
37
- - `git stash push -m "WIP: description"`
38
- - To retrieve:
39
- - `git stash pop`
40
-
41
- ## Clean Up
42
-
43
- - Delete local branch after merge: `git branch -d feat/feature-name`
1
+ ---
2
+ name: git-advanced-workflow
3
+ description: Advanced Git workflows (branching, merging, rebasing, stashing)
4
+ tags: [git, version-control]
5
+ ---
6
+
7
+ # Git Advanced Workflow
8
+
9
+ This skill guides you through advanced Git operations beyond simple commits.
10
+
11
+ ## Feature Branch Workflow
12
+
13
+ 1. **Start Feature**:
14
+ - `git checkout -b feat/feature-name`
15
+ - Work on changes...
16
+
17
+ 2. **Sync with Main**:
18
+ - `git checkout main`
19
+ - `git pull`
20
+ - `git checkout feat/feature-name`
21
+ - `git rebase main` (Preferred over merge for clean history)
22
+
23
+ 3. **Handle Conflicts**:
24
+ - IF conflicts during rebase:
25
+ - Fix files
26
+ - `git add <file>`
27
+ - `git rebase --continue`
28
+
29
+ 4. **Finish Feature**:
30
+ - Ensure tests pass
31
+ - `git push -u origin feat/feature-name`
32
+ - Open Pull Request (via gh cli if available, or manual)
33
+
34
+ ## Stashing
35
+
36
+ - IF you need to switch context but aren't ready to commit:
37
+ - `git stash push -m "WIP: description"`
38
+ - To retrieve:
39
+ - `git stash pop`
40
+
41
+ ## Clean Up
42
+
43
+ - Delete local branch after merge: `git branch -d feat/feature-name`
@@ -1,15 +1,15 @@
1
- ---
2
- name: hello-world
3
- description: A simple skill to verify the skill system integration. Use this when the user says "hello world" or asks to verify skills.
4
- allowedTools: [shell_execute]
5
- ---
6
-
7
- # Hello World Skill
8
-
9
- This is a test skill to verify that Lydia can load and use skills.
10
-
11
- 1. **Say Hello**
12
- - Execute `echo "Hello from the Skill System!"` using the shell tool.
13
-
14
- 2. **Verify Environment**
15
- - Execute `pwd` to show where we are running.
1
+ ---
2
+ name: hello-world
3
+ description: A simple skill to verify the skill system integration. Use this when the user says "hello world" or asks to verify skills.
4
+ allowedTools: [shell_execute]
5
+ ---
6
+
7
+ # Hello World Skill
8
+
9
+ This is a test skill to verify that Lydia can load and use skills.
10
+
11
+ 1. **Say Hello**
12
+ - Execute `echo "Hello from the Skill System!"` using the shell tool.
13
+
14
+ 2. **Verify Environment**
15
+ - Execute `pwd` to show where we are running.
@@ -1,37 +1,37 @@
1
- ---
2
- name: node-project-management
3
- description: Manage Node.js projects (init, install, test, run)
4
- tags: [node, npm, pnpm, yarn, javascript, typescript]
5
- ---
6
-
7
- # Node.js Project Management
8
-
9
- This skill helps you manage Node.js projects, including initialization, dependency management, and running scripts.
10
-
11
- ## Capabilities
12
-
13
- - Initialize new projects
14
- - Install dependencies (detects package manager)
15
- - Run scripts (test, build, dev)
16
- - Check outdated packages
17
-
18
- ## Decision Tree
19
-
20
- 1. **Initialize Project**:
21
- - IF no `package.json`: Run `npm init -y` (or `pnpm init`).
22
- - IF TypeScript requested: Add `typescript`, `tsx`, `@types/node` and create `tsconfig.json`.
23
-
24
- 2. **Install Dependencies**:
25
- - Detect lockfile (`pnpm-lock.yaml`, `yarn.lock`, `package-lock.json`).
26
- - Use the corresponding package manager (`pnpm`, `yarn`, `npm`).
27
- - IF installing dev dependencies, use `-D`.
28
-
29
- 3. **Run Scripts**:
30
- - Check `package.json` "scripts" section.
31
- - Run `npm run <script>` (or `pnpm <script>`).
32
-
33
- ## Best Practices
34
-
35
- - Always prefer `pnpm` if available.
36
- - Use `tsx` for running TypeScript files directly.
37
- - Ensure `.gitignore` includes `node_modules`.
1
+ ---
2
+ name: node-project-management
3
+ description: Manage Node.js projects (init, install, test, run)
4
+ tags: [node, npm, pnpm, yarn, javascript, typescript]
5
+ ---
6
+
7
+ # Node.js Project Management
8
+
9
+ This skill helps you manage Node.js projects, including initialization, dependency management, and running scripts.
10
+
11
+ ## Capabilities
12
+
13
+ - Initialize new projects
14
+ - Install dependencies (detects package manager)
15
+ - Run scripts (test, build, dev)
16
+ - Check outdated packages
17
+
18
+ ## Decision Tree
19
+
20
+ 1. **Initialize Project**:
21
+ - IF no `package.json`: Run `npm init -y` (or `pnpm init`).
22
+ - IF TypeScript requested: Add `typescript`, `tsx`, `@types/node` and create `tsconfig.json`.
23
+
24
+ 2. **Install Dependencies**:
25
+ - Detect lockfile (`pnpm-lock.yaml`, `yarn.lock`, `package-lock.json`).
26
+ - Use the corresponding package manager (`pnpm`, `yarn`, `npm`).
27
+ - IF installing dev dependencies, use `-D`.
28
+
29
+ 3. **Run Scripts**:
30
+ - Check `package.json` "scripts" section.
31
+ - Run `npm run <script>` (or `pnpm <script>`).
32
+
33
+ ## Best Practices
34
+
35
+ - Always prefer `pnpm` if available.
36
+ - Use `tsx` for running TypeScript files directly.
37
+ - Ensure `.gitignore` includes `node_modules`.
@@ -1,15 +1,15 @@
1
- ---
2
- name: system-health-check
3
- version: "1.0.0"
4
- description: Basic system health checks (disk, memory, uptime)
5
- tags:
6
- - system
7
- - diagnostics
8
- ---
9
-
10
- # System Health Check
11
-
12
- ## Steps
13
- 1. Show disk usage.
14
- 2. Show memory usage.
15
- 3. Show system uptime.
1
+ ---
2
+ name: system-health-check
3
+ version: "1.0.0"
4
+ description: Basic system health checks (disk, memory, uptime)
5
+ tags:
6
+ - system
7
+ - diagnostics
8
+ ---
9
+
10
+ # System Health Check
11
+
12
+ ## Steps
13
+ 1. Show disk usage.
14
+ 2. Show memory usage.
15
+ 3. Show system uptime.