Skip to content

Commit a053328

Browse files
authored
Merge branch 'main' into improve-ai-do
2 parents bc5264a + f48d1b6 commit a053328

File tree

6 files changed

+409
-2
lines changed

6 files changed

+409
-2
lines changed

.github/workflows/python-publish.yml

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# This workflow will upload a Python Package using Twine when a release is created
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
name: Upload Python Package
10+
11+
on:
12+
pull_request:
13+
types: [closed]
14+
branches:
15+
- main
16+
17+
permissions:
18+
contents: write # Changed to write to allow version update commit
19+
20+
jobs:
21+
deploy:
22+
if: github.event.pull_request.merged == true # Only run if PR was merged
23+
runs-on: ubuntu-latest
24+
25+
steps:
26+
- uses: actions/checkout@v4
27+
with:
28+
fetch-depth: 0 # Fetch all history for version calculation
29+
30+
- name: Set up Python
31+
uses: actions/setup-python@v3
32+
with:
33+
python-version: '3.x'
34+
35+
- name: Install dependencies
36+
run: |
37+
python -m pip install --upgrade pip
38+
pip install poetry python-semantic-release
39+
poetry install
40+
41+
- name: Update version
42+
id: version
43+
run: |
44+
git config --local user.email "github-actions[bot]@users.noreply.github.com"
45+
git config --local user.name "github-actions[bot]"
46+
semantic-release version
47+
echo "new_version=$(semantic-release print-version)" >> $GITHUB_OUTPUT
48+
49+
- name: Build package
50+
run: poetry build
51+
52+
- name: Publish package
53+
env:
54+
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }}
55+
run: poetry publish

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,14 @@ Voice-based task organization tool that:
8484
ai prioritize
8585
```
8686

87+
### 7. Marketing Plan Generator (`ai marketing-plan`)
88+
89+
Use a swarm of AI agents to generate a marketing plan for your business.
90+
91+
```bash
92+
ai marketing-plan
93+
```
94+
8795
## Tool Use Tools (`tooluse` command)
8896

8997
### 1. Podcast RSS Reader (`tooluse`)

pyproject.toml

+7-1
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,10 @@ build-backend = "poetry.core.masonry.api"
4343

4444
[tool.poetry.scripts]
4545
ai = "tool_use.cli:main"
46-
tooluse = "tool_use.tooluse.cli:main"
46+
tooluse = "tool_use.tooluse.cli:main"
47+
48+
[tool.semantic_release]
49+
version_variable = ["pyproject.toml:tool.poetry.version"]
50+
branch = "main"
51+
commit_message = "chore: bump version to {version}"
52+
build_command = "poetry build"

src/tool_use/cli.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import subprocess
44
import pkg_resources
55
from .scripts._script_dependencies import SCRIPT_DEPENDENCIES
6-
from .scripts import ai_cli, cal, obsidian_plugin, convert, transcribe, prioritize, activity_tracker
6+
from .scripts import ai_cli, cal, obsidian_plugin, convert, transcribe, prioritize, activity_tracker, marketing_agency
77
from .utils.config_wizard import setup_wizard, SCRIPT_INFO
88

99

@@ -43,6 +43,7 @@ def main():
4343
"transcribe": "Transcribe and analyze audio",
4444
"prioritize": "Brain dump and prioritize tasks",
4545
"log": "Track your activities",
46+
"marketing-plan": "Use a marketing agency of AI agents to create a marketing plan",
4647
}
4748

4849
for name, help_text in all_scripts.items():
@@ -77,6 +78,7 @@ def main():
7778
"transcribe": transcribe,
7879
"prioritize": prioritize,
7980
"log": activity_tracker,
81+
"marketing-plan": marketing_agency,
8082
}
8183

8284
# Run the appropriate script

src/tool_use/scripts/_script_dependencies.py

+1
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@
3030
"openai>=1.12.0",
3131
],
3232
"log": [],
33+
"marketing-plan": ["rich", "openai", "swarm"],
3334
}

0 commit comments

Comments
 (0)