Skip to content

Commit 6204fb1

Browse files
committed
chore: resolve merge conflicts with main
2 parents 95af8eb + 630c591 commit 6204fb1

17 files changed

Lines changed: 1028 additions & 148 deletions

File tree

.github/workflows/publish-homebrew.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- name: Generate GitHub App token
1818
id: app-token
19-
uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1
19+
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
2020
with:
2121
app-id: ${{ secrets.HOTDATA_AUTOMATION_APP_ID }}
2222
private-key: ${{ secrets.HOTDATA_AUTOMATION_PRIVATE_KEY }}

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,14 @@ jobs:
276276
# Write and read notes from a file to avoid quoting breaking things
277277
echo "$ANNOUNCEMENT_BODY" > $RUNNER_TEMP/notes.txt
278278
279-
gh release create "${{ needs.plan.outputs.tag }}" --target "$RELEASE_COMMIT" $PRERELEASE_FLAG --title "$ANNOUNCEMENT_TITLE" --notes-file "$RUNNER_TEMP/notes.txt" artifacts/*
279+
# The plan job runs `dist host --steps=create` which pre-creates the draft release.
280+
# If the release already exists, edit it in place; otherwise create it fresh.
281+
if gh release view "${{ needs.plan.outputs.tag }}" > /dev/null 2>&1; then
282+
gh release edit "${{ needs.plan.outputs.tag }}" $PRERELEASE_FLAG --title "$ANNOUNCEMENT_TITLE" --notes-file "$RUNNER_TEMP/notes.txt"
283+
gh release upload "${{ needs.plan.outputs.tag }}" artifacts/* --clobber
284+
else
285+
gh release create "${{ needs.plan.outputs.tag }}" --target "$RELEASE_COMMIT" $PRERELEASE_FLAG --title "$ANNOUNCEMENT_TITLE" --notes-file "$RUNNER_TEMP/notes.txt" artifacts/*
286+
fi
280287
281288
custom-publish-homebrew:
282289
needs:

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [0.3.3] - 2026-05-28
2+
3+
### 🐛 Bug Fixes
4+
5+
- *(databases)* Use name not description for API alignment (#112)
6+
17
## [0.3.2] - 2026-05-27
28

39
### 🐛 Bug Fixes

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "hotdata-cli"
3-
version = "0.3.2"
3+
version = "0.3.3"
44
edition = "2024"
55
repository = "https://github.com/hotdata-dev/hotdata-cli"
66
description = "CLI tool for Hotdata.dev"

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<br>
66
Command line interface for <a href="https://www.hotdata.dev">Hotdata</a>.
77
<br><br>
8-
<img src="https://img.shields.io/badge/version-0.3.2-blue" alt="version">
8+
<img src="https://img.shields.io/badge/version-0.3.3-blue" alt="version">
99
<a href="https://github.com/hotdata-dev/hotdata-cli/actions/workflows/ci.yml"><img src="https://github.com/hotdata-dev/hotdata-cli/actions/workflows/ci.yml/badge.svg" alt="build"></a>
1010
<a href="https://codecov.io/gh/hotdata-dev/hotdata-cli"><img src="https://codecov.io/gh/hotdata-dev/hotdata-cli/branch/main/graph/badge.svg" alt="coverage"></a>
1111
</p>
@@ -137,6 +137,8 @@ hotdata databases list [-w <id>] [-o table|json|yaml]
137137
hotdata databases create --name <name> [--table <table> ...] [--schema public] [-o table|json|yaml]
138138
hotdata databases <name_or_id> [-o table|json|yaml]
139139
hotdata databases delete <name_or_id>
140+
hotdata databases run [--database <id>] [--description <label>] [--schema public] [--table <table> ...] [--expires-at <duration|timestamp>] <cmd> [args...]
141+
hotdata databases <id> run <cmd> [args...]
140142

141143
hotdata databases tables list <database> [--schema <name>] [-o table|json|yaml]
142144
hotdata databases tables load <database> <table> --file ./data.parquet [--schema public]
@@ -146,7 +148,8 @@ hotdata databases tables delete <database> <table> [--schema public]
146148

147149
- `create` registers a managed connection (`source_type: managed`) with no external credentials. Use `--table` to declare tables up front (required before `tables load` on the current API).
148150
- `tables load` uploads a **parquet** file (or uses a staged `upload_id` from `POST /v1/files`) and publishes it as the table generation (`replace` mode).
149-
- For SQL-query materializations without a managed database, use `hotdata views create` instead (`views.main.*`).
151+
- `run` mints a database-scoped JWT and execs `<cmd>` with `HOTDATA_DATABASE_TOKEN`, `HOTDATA_DATABASE_REFRESH_TOKEN`, `HOTDATA_DATABASE`, `HOTDATA_WORKSPACE`, and `HOTDATA_API_URL` injected into its environment. Pass a database id (group-positional `<id>` like `sandbox run`, or `--database <id>`) to scope an existing database; omit both to auto-create a scratch one using `--description` / `--schema` / `--table` / `--expires-at`. Useful for launching an agent or child process whose API access is restricted to a single database.
152+
- For CSV/JSON uploads without a managed database, use `hotdata datasets create` instead (`datasets.main.*`).
150153

151154
Example:
152155

dist-workspace.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ members = ["cargo:."]
77
cargo-dist-version = "0.31.0"
88
# CI backends to support
99
ci = "github"
10+
# Allow the release workflow to be hand-customized without dist regenerating it
11+
allow-dirty = ["ci"]
1012
# The installers to generate for each app
1113
installers = ["shell", "homebrew"]
1214
# Target platforms to build apps for (Rust target-triple syntax)

skills/hotdata-analytics/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: hotdata-analytics
3-
description: Use this skill when the user wants OLAP-style SQL analytics in Hotdata — aggregations, GROUP BY, JOINs, reporting, exploratory queries, query run history, stored results, or materialized follow-up tables (Chain via views or managed databases). Activate for "analyze", "aggregate", "rollup", "pivot", "report", "metrics", "GROUP BY", "query history", "past queries", "query runs", "stored results", "materialize", "chain", "intermediate table", or sorted indexes for filters/range scans. Do not load for BM25/vector search or geospatial SQL — use hotdata-search or hotdata-geospatial. Requires the core hotdata skill for connections, tables, views, and auth.
4-
version: 0.3.2
3+
description: Use this skill when the user wants OLAP-style SQL analytics in Hotdata — aggregations, GROUP BY, JOINs, reporting, exploratory queries, query run history, stored results, or materialized follow-up tables (Chain via datasets or managed databases). Activate for "analyze", "aggregate", "rollup", "pivot", "report", "metrics", "GROUP BY", "query history", "past queries", "query runs", "stored results", "materialize", "chain", "intermediate table", or sorted indexes for filters/range scans. Do not load for BM25/vector search or geospatial SQL — use hotdata-search or hotdata-geospatial. Requires the core hotdata skill for connections, tables, datasets, and auth.
4+
version: 0.3.3
55
---
66

77
# Hotdata Analytics Skill

skills/hotdata-geospatial/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: hotdata-geospatial
33
description: Use this skill only when the user is working with geospatial data in Hotdata (PostGIS-style SQL like ST_* functions, geometry/WKB, bbox filtering, point-in-polygon, distance/area, lat/lon, spatial joins, “geospatial”, “GIS”, “PostGIS”). Do not load this skill for non-geospatial SQL or general Hotdata usage.
4-
version: 0.3.2
4+
version: 0.3.3
55
---
66

77
# Hotdata Geospatial Skill

skills/hotdata-search/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: hotdata-search
33
description: Use this skill when the user wants full-text search, BM25 keyword search, vector similarity search, semantic search, embeddings, or retrieval indexes in Hotdata. Activate for "hotdata search", "BM25", "full-text", "vector search", "semantic search", "similarity", "embedding", "embedding provider", "create an index" (bm25 or vector), "list indexes" for search, or SQL using bm25_search or vector_distance. Do not load for general SQL analytics (aggregations, GROUP BY) or geospatial work — use hotdata-analytics or hotdata-geospatial instead. Requires the core hotdata skill for auth and workspace basics.
4-
version: 0.3.2
4+
version: 0.3.3
55
---
66

77
# Hotdata Search Skill

0 commit comments

Comments
 (0)