liteagents 2.4.0 → 2.4.1

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.
@@ -1,158 +0,0 @@
1
- # GitHub Packages - First Time Setup
2
-
3
- Follow these steps ONE TIME to enable publishing to GitHub Packages.
4
-
5
- ## Step 1: Create GitHub Personal Access Token
6
-
7
- 1. **Open GitHub Settings:**
8
- - Go to: https://github.com/settings/tokens
9
- - Or: GitHub → Settings (top right) → Developer settings → Personal access tokens → Tokens (classic)
10
-
11
- 2. **Generate New Token:**
12
- - Click **"Generate new token"** button
13
- - Select **"Generate new token (classic)"**
14
-
15
- 3. **Configure Token:**
16
- - **Note:** `Publish agentic-kit to GitHub Packages`
17
- - **Expiration:** Select `90 days` (or your preference)
18
- - **Select scopes:** ✅ Check these boxes:
19
- - ✅ `write:packages` - Upload packages to GitHub Package Registry
20
- - ✅ `read:packages` - Download packages from GitHub Package Registry
21
- - ✅ `delete:packages` - Delete packages (optional, but recommended)
22
-
23
- 4. **Generate and Copy:**
24
- - Click **"Generate token"** at the bottom
25
- - **IMPORTANT:** Copy the token immediately (starts with `ghp_`)
26
- - You won't be able to see it again!
27
-
28
- ## Step 2: Set Environment Variable
29
-
30
- Add the token to your shell environment:
31
-
32
- ### On Linux/macOS:
33
-
34
- **Temporary (current session only):**
35
- ```bash
36
- export GITHUB_TOKEN=ghp_YOUR_TOKEN_HERE
37
- ```
38
-
39
- **Permanent (add to shell config):**
40
- ```bash
41
- # For bash users (add to ~/.bashrc)
42
- echo 'export GITHUB_TOKEN=ghp_YOUR_TOKEN_HERE' >> ~/.bashrc
43
- source ~/.bashrc
44
-
45
- # For zsh users (add to ~/.zshrc)
46
- echo 'export GITHUB_TOKEN=ghp_YOUR_TOKEN_HERE' >> ~/.zshrc
47
- source ~/.zshrc
48
- ```
49
-
50
- ### On Windows:
51
-
52
- **Command Prompt:**
53
- ```cmd
54
- set GITHUB_TOKEN=ghp_YOUR_TOKEN_HERE
55
- ```
56
-
57
- **PowerShell:**
58
- ```powershell
59
- $env:GITHUB_TOKEN="ghp_YOUR_TOKEN_HERE"
60
- ```
61
-
62
- **Permanent (Windows):**
63
- 1. Search for "Environment Variables" in Start Menu
64
- 2. Click "Edit the system environment variables"
65
- 3. Click "Environment Variables" button
66
- 4. Under "User variables", click "New"
67
- 5. Variable name: `GITHUB_TOKEN`
68
- 6. Variable value: `ghp_YOUR_TOKEN_HERE`
69
- 7. Click OK to save
70
-
71
- ## Step 3: Verify Setup
72
-
73
- Check that the token is set correctly:
74
-
75
- ```bash
76
- # Linux/macOS
77
- echo $GITHUB_TOKEN
78
-
79
- # Windows CMD
80
- echo %GITHUB_TOKEN%
81
-
82
- # Windows PowerShell
83
- echo $env:GITHUB_TOKEN
84
- ```
85
-
86
- You should see your token starting with `ghp_`
87
-
88
- ## Step 4: Test Publishing
89
-
90
- Now you're ready! Try publishing:
91
-
92
- ```bash
93
- cd /home/hamr/PycharmProjects/agentflow
94
-
95
- # Publish to both registries
96
- npm run publish:both
97
-
98
- # Or just GitHub Packages
99
- npm run publish:github
100
- ```
101
-
102
- ## Verification
103
-
104
- After publishing to GitHub Packages:
105
-
106
- 1. Go to: https://github.com/amrhas82/agentflow
107
- 2. Look for **"Packages"** on the right sidebar
108
- 3. You should see `agentflow` listed
109
-
110
- ## Troubleshooting
111
-
112
- ### Error: 401 Unauthorized
113
-
114
- **Cause:** Token not set or incorrect
115
-
116
- **Fix:**
117
- ```bash
118
- # Verify token is set
119
- echo $GITHUB_TOKEN
120
-
121
- # If empty, set it again
122
- export GITHUB_TOKEN=ghp_YOUR_TOKEN_HERE
123
- ```
124
-
125
- ### Error: 403 Forbidden
126
-
127
- **Cause:** Token doesn't have correct permissions
128
-
129
- **Fix:**
130
- 1. Go back to https://github.com/settings/tokens
131
- 2. Find your token and click it
132
- 3. Ensure `write:packages` is checked
133
- 4. If not, create a new token with correct permissions
134
-
135
- ### Error: 404 Not Found
136
-
137
- **Cause:** Repository doesn't exist or name mismatch
138
-
139
- **Fix:**
140
- - Verify repository exists: https://github.com/amrhas82/agentflow
141
- - Check package.json has correct name: `agentflow`
142
-
143
- ### Token Expired
144
-
145
- **When:** After 90 days (or your chosen expiration)
146
-
147
- **Fix:**
148
- 1. Go to https://github.com/settings/tokens
149
- 2. Generate a new token (same process as Step 1)
150
- 3. Update your environment variable with new token
151
-
152
- ---
153
-
154
- **That's it!** Once set up, you can publish to both registries with one command:
155
-
156
- ```bash
157
- npm run publish:both
158
- ```