alif-digest 1.1.2 → 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 CHANGED
@@ -158,21 +158,28 @@ Config is stored at `~/.config/alif/config.json`. Most values can be changed wit
158
158
 
159
159
  ## ☁️ Running on GitHub Actions (Free)
160
160
 
161
- You can run Alif entirely in the cloud for free using GitHub Actions, without ever installing it locally.
162
-
163
- 1. **Fork this repository.**
164
- 2. Navigate to your fork's **Settings > Secrets and variables > Actions**.
165
- 3. Add your sensitive API keys as **Repository Secrets**:
166
- - `ALIF_LLM_API_KEY` (or `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`)
167
- - `SLACK_WEBHOOK_URL` (or `GENERIC_WEBHOOK_URL`)
168
- 4. Configure your preferences as **Repository Variables** (optional):
169
- - `ALIF_LLM_PROVIDER` (default: anthropic)
170
- - `ALIF_LLM_MODEL`
171
- - `ALIF_SIGNAL_THRESHOLD` (default: 60)
172
- - `ALIF_MAX_ITEMS_PER_RUN` (default: 10)
173
- - `ALIF_SOURCE_COOLDOWN_MINUTES` (default: 5)
174
-
175
- The included workflow (`.github/workflows/alif-scheduled-run.yml`) automatically runs every day at 8:00 AM UTC (feel free to change the schedule in your forked version), caches your database/state, and delivers your customized digest!
161
+ To ensure your API keys and workflow logs remain completely secure and hidden from the public, we highly recommend running this in a **Private** GitHub repository.
162
+
163
+ 1. **Create a new Private Repository** on GitHub.
164
+ 2. **Copy the example workflow:** Copy the [`examples/alif-scheduled-run.yml`](./examples/alif-scheduled-run.yml) file into your new private repository at `.github/workflows/alif-scheduled-run.yml`.
165
+ 3. Navigate to your private repository's **Settings > Secrets and variables > Actions**.
166
+ 4. Add your sensitive access credentials as **Repository Secrets**.
167
+ 5. Configure your preferences as **Repository Variables** (optional).
168
+
169
+ ### Environment Variables Reference
170
+
171
+ | Variable | Type | Possible Values | Default | Description |
172
+ | ------------------------------ | -------- | ----------------------------------------- | ------------------- | ----------------------------------------------------------------------------- |
173
+ | `ALIF_LLM_PROVIDER` | Variable | `'anthropic'`, `'openrouter'`, `'ollama'` | `'anthropic'` | The AI provider to use for analysis. |
174
+ | `ALIF_LLM_API_KEY` | Secret | _Your API Key_ | - | Universal key. Alternatively use `ANTHROPIC_API_KEY` or `OPENROUTER_API_KEY`. |
175
+ | `ALIF_LLM_MODEL` | Variable | e.g. `'claude-3-5-sonnet-20240620'` | _Provider Specific_ | The specific model to use. |
176
+ | `SLACK_WEBHOOK_URL` | Secret | *https://hooks.slack.com/...* | - | Webhook URL for Slack delivery. |
177
+ | `GENERIC_WEBHOOK_URL` | Secret | _https://..._ | - | Webhook URL for generic server delivery. |
178
+ | `ALIF_SIGNAL_THRESHOLD` | Variable | `0` - `100` | `60` | Minimum score for an article to qualify. |
179
+ | `ALIF_MAX_ITEMS_PER_RUN` | Variable | `1`+ | `10` | Max articles delivered per run. |
180
+ | `ALIF_SOURCE_COOLDOWN_MINUTES` | Variable | `0`+ | `5` | Minimum gap between re-fetching a source. |
181
+
182
+ The included workflow automatically runs every day at 8:00 AM UTC (you can change the schedule in the file), caches your database state securely, and delivers your customized digest!
176
183
 
177
184
  ---
178
185
 
@@ -20,7 +20,9 @@ jobs:
20
20
  - name: Cache Alif Data Directory
21
21
  uses: actions/cache@v4
22
22
  with:
23
- path: .alif-data
23
+ path: |
24
+ .alif-data/alif.db
25
+ .alif-data/feeds.json
24
26
  key: ${{ runner.os }}-alif-data-${{ github.run_id }}
25
27
  restore-keys: |
26
28
  ${{ runner.os }}-alif-data-
@@ -64,5 +66,7 @@ jobs:
64
66
  if: always()
65
67
  uses: actions/cache/save@v4
66
68
  with:
67
- path: .alif-data
69
+ path: |
70
+ .alif-data/alif.db
71
+ .alif-data/feeds.json
68
72
  key: ${{ runner.os }}-alif-data-${{ github.run_id }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alif-digest",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "Autonomous AI Signal Digest CLI for tracking high-signal AI breakthroughs.",
5
5
  "type": "module",
6
6
  "publishConfig": {