Lightweight CLI and SDK for remote Intent Hub APIs
Project description
intent-hub-cli
Lightweight CLI and Python SDK for remote Intent Hub deployments.
Install
If you want to use the published CLI or Python SDK, install the released package:
pip install intent-hub-cli==0.1.0
Editable install for package development:
cd intent-hub-cli
pip install -e .
Build and install a wheel:
cd intent-hub-cli
python -m pip install -U build
python -m build
pip install dist/intent_hub_cli-0.1.0-py3-none-any.whl
This produces:
dist/intent_hub_cli-0.1.0-py3-none-any.whldist/intent_hub_cli-0.1.0.tar.gz
After publishing:
pip install intent-hub-cli==0.1.0
Publishing
Release validation:
cd intent-hub-cli
python -m pip install -e .[dev]
pytest tests -q
python -m build
python -m twine check dist/*
Manual upload to PyPI:
python -m twine upload -u __token__ -p <PYPI_TOKEN> dist/*
Manual upload to TestPyPI:
python -m twine upload \
--repository-url https://test.pypi.org/legacy/ \
-u __token__ \
-p <TEST_PYPI_TOKEN> \
dist/*
See PUBLISH.md for the full release flow. The repository also contains the GitHub Actions workflow for tag-based publishing.
Usage
CLI
intent-hub login --endpoint https://api.example.com --code <access_code>
intent-hub whoami
intent-hub route "help me organize a wiki"
intent-hub route "help me organize a wiki" --json
intent-hub dispatch "help me organize a wiki"
intent-hub dispatch "help me organize a wiki" --json
intent-hub skills scan --source-path ./skills
intent-hub skills scan --source-path D:/skills --source-label team-skills
intent-hub skills apply --draft-file /path/to/draft.json
intenthub is available as an alias.
Python SDK
from intent_hub_cli import IntentHubClient
client = IntentHubClient(
endpoint="https://api.example.com",
access_code="ih_live_team_alpha_xxx",
)
print(client.whoami())
print(client.route("help me organize a wiki"))
print(client.dispatch("help me organize a wiki"))
scan_result = client.skills_scan_uploaded(
source_id=None,
source_label="team-skills",
client_path_hint="./skills",
skills=[
{
"relative_path": "wiki-builder/SKILL.md",
"content": "# wiki-builder\n...",
}
],
)
print(scan_result)
print(client.skills_apply("draft.json"))
Configuration
The CLI stores credentials at ~/.intent-hub/config.json:
{
"endpoint": "https://api.example.com",
"access_code": "ih_live_team_alpha_xxx"
}
Notes
- Dependency footprint is intentionally small:
requests>=2.31.0 - This package does not ship backend dependencies such as Flask or Qdrant client
- Use this package for remote access; use
intent-hub-backendwhen you are running or developing the server itself - Skill scanning runs against the user's local directories and uploads
SKILL.mdcontent to the backend
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file intent_hub_cli-0.1.1.tar.gz.
File metadata
- Download URL: intent_hub_cli-0.1.1.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c956ef1d2032b4cc918e2bbdcb512fc1223209a49b14a888b87a8e689706f84e
|
|
| MD5 |
2bdee00b0fd2935444fb38cc9ddaf76c
|
|
| BLAKE2b-256 |
ed384ff496209393dc118d74bea10ec2f1147737027b63a29581b15a5ad0002a
|
File details
Details for the file intent_hub_cli-0.1.1-py3-none-any.whl.
File metadata
- Download URL: intent_hub_cli-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23a2236d78760fac0e676e618d476b1fc9285c0be4db01a5b7a5311a932bced0
|
|
| MD5 |
434563c859cbbcef8122c7116367110d
|
|
| BLAKE2b-256 |
893cc7e3f19adc324163db0567dedb90b764b69581213c079aa5418df807b56a
|