@hasna/oldpal 0.1.5 → 0.1.7
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 +24 -89
- package/dist/index.js +8278 -65161
- package/dist/index.js.map +12 -273
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,45 +1,42 @@
|
|
|
1
1
|
# oldpal
|
|
2
2
|
|
|
3
|
-
Your personal AI assistant - terminal first,
|
|
3
|
+
Your personal AI assistant - terminal first, connector powered.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
|
|
9
|
-
bun install -g @hasna/oldpal
|
|
10
|
-
|
|
11
|
-
# Or with npm
|
|
12
|
-
npm install -g @hasna/oldpal
|
|
13
|
-
|
|
14
|
-
# Run
|
|
15
|
-
oldpal
|
|
8
|
+
bun add -g @hasna/oldpal
|
|
16
9
|
```
|
|
17
10
|
|
|
18
11
|
**Requirements:**
|
|
19
|
-
- [Bun](https://bun.sh) 1.0+
|
|
20
|
-
- `ANTHROPIC_API_KEY` environment variable
|
|
21
|
-
|
|
22
|
-
## Features
|
|
23
|
-
|
|
24
|
-
- **Terminal-first**: Beautiful Ink-based TUI, just like Claude Code
|
|
25
|
-
- **Connector-powered**: Uses your existing `connect-*` CLIs (Notion, Google Drive, Gmail, etc.)
|
|
26
|
-
- **Skills**: Reusable instruction sets with `SKILL.md` files (Claude Code compatible)
|
|
27
|
-
- **Hooks**: Event-driven automation with command/prompt/agent hooks
|
|
28
|
-
- **Voice-ready**: ElevenLabs TTS + Whisper STT (coming soon)
|
|
12
|
+
- [Bun](https://bun.sh) 1.0+
|
|
29
13
|
|
|
30
14
|
## Quick Start
|
|
31
15
|
|
|
32
16
|
```bash
|
|
33
|
-
# Set your API key
|
|
34
|
-
export ANTHROPIC_API_KEY="your-key
|
|
17
|
+
# Set your API key (or add to ~/.secrets)
|
|
18
|
+
export ANTHROPIC_API_KEY="your-key"
|
|
35
19
|
|
|
36
|
-
# Run
|
|
20
|
+
# Run
|
|
37
21
|
oldpal
|
|
38
22
|
```
|
|
39
23
|
|
|
24
|
+
Or add to `~/.secrets`:
|
|
25
|
+
```bash
|
|
26
|
+
export ANTHROPIC_API_KEY="your-key"
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Features
|
|
30
|
+
|
|
31
|
+
- **Terminal-first**: Ink-based TUI
|
|
32
|
+
- **Connector-powered**: Uses `connect-*` CLIs (Notion, Google Drive, Gmail, etc.)
|
|
33
|
+
- **Skills**: Reusable instructions with `SKILL.md` files
|
|
34
|
+
- **Hooks**: Event-driven automation
|
|
35
|
+
|
|
40
36
|
## Configuration
|
|
41
37
|
|
|
42
|
-
|
|
38
|
+
User config: `~/.oldpal/settings.json`
|
|
39
|
+
Project config: `.oldpal/settings.json`
|
|
43
40
|
|
|
44
41
|
```json
|
|
45
42
|
{
|
|
@@ -51,83 +48,21 @@ oldpal
|
|
|
51
48
|
}
|
|
52
49
|
```
|
|
53
50
|
|
|
54
|
-
### Project config (`.oldpal/settings.json`)
|
|
55
|
-
|
|
56
|
-
Override settings per-project.
|
|
57
|
-
|
|
58
51
|
## Skills
|
|
59
52
|
|
|
60
|
-
Skills are
|
|
53
|
+
Skills are `SKILL.md` files with YAML frontmatter:
|
|
61
54
|
|
|
62
55
|
```yaml
|
|
63
56
|
---
|
|
64
57
|
name: daily-standup
|
|
65
|
-
description: Generate daily standup
|
|
66
|
-
argument-hint: [date]
|
|
58
|
+
description: Generate daily standup
|
|
67
59
|
allowed-tools: bash, googlecalendar, linear
|
|
68
60
|
---
|
|
69
61
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
Generate a daily standup report for $ARGUMENTS...
|
|
62
|
+
Generate a daily standup report for $ARGUMENTS
|
|
73
63
|
```
|
|
74
64
|
|
|
75
|
-
Invoke with `/skill-name
|
|
76
|
-
|
|
77
|
-
## Hooks
|
|
78
|
-
|
|
79
|
-
Hooks run at specific lifecycle points:
|
|
80
|
-
|
|
81
|
-
```json
|
|
82
|
-
{
|
|
83
|
-
"hooks": {
|
|
84
|
-
"PreToolUse": [
|
|
85
|
-
{
|
|
86
|
-
"matcher": "bash",
|
|
87
|
-
"hooks": [
|
|
88
|
-
{
|
|
89
|
-
"type": "command",
|
|
90
|
-
"command": "./scripts/validate-command.sh"
|
|
91
|
-
}
|
|
92
|
-
]
|
|
93
|
-
}
|
|
94
|
-
]
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
## Development
|
|
100
|
-
|
|
101
|
-
```bash
|
|
102
|
-
# Clone the repo
|
|
103
|
-
git clone https://github.com/hasna/oldpal.git
|
|
104
|
-
cd oldpal
|
|
105
|
-
|
|
106
|
-
# Install dependencies
|
|
107
|
-
pnpm install
|
|
108
|
-
|
|
109
|
-
# Run in development
|
|
110
|
-
pnpm dev
|
|
111
|
-
|
|
112
|
-
# Type check
|
|
113
|
-
pnpm typecheck
|
|
114
|
-
|
|
115
|
-
# Run tests
|
|
116
|
-
pnpm test
|
|
117
|
-
|
|
118
|
-
# Build
|
|
119
|
-
pnpm build
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
## Architecture
|
|
123
|
-
|
|
124
|
-
```
|
|
125
|
-
packages/
|
|
126
|
-
├── core/ # Agent loop, tools, skills, hooks, memory
|
|
127
|
-
├── terminal/ # Ink-based TUI
|
|
128
|
-
├── web/ # React web UI (future)
|
|
129
|
-
└── shared/ # Shared types and utilities
|
|
130
|
-
```
|
|
65
|
+
Invoke with `/skill-name`.
|
|
131
66
|
|
|
132
67
|
## License
|
|
133
68
|
|