Uh oh!
There was an error while loading. Please reload this page.
Prepare for tinycloud 0.3.17: structured queries — the query verb (skill floor → 0.3.17) - #26
Merged
Merged
Conversation
…skill floor → 0.3.17) 0.3.17 adds the `query` verb: analytical read-only SQL — or a natural- language question compiled to SQL server-side — over a collection's structured data (file attributes, user metadata, connector source_metadata, extracted entities) via three per-request virtual tables (files / entities / segment_entities). probe/ask FIND content; query MEASURES it. Includes --dry-run, --max-rows, gzipped CSV/JSONL exports (--export, --background + `query show`), and free schema/list/show/cancel subcommands. Features 40→42 (query.v1, query.export.v1); verbs 16→17. Skill surfaces updated: SKILL.md cheat sheet + gotcha (when to reach for query vs probe/ask, schema-first flow, latest-extraction caveat), reference/verbs.md (table row + full section), glossary (structured query, virtual tables), pipelines (entities-collection analytics example, cache-flags note), README (commands table + examples), CLAUDE.md history. Floor raised to 0.3.17 (min_version/preflight + query.v1/query.export.v1 in required_features — CI-diffed pair kept in sync). Same merge gate as 0.3.12–0.3.16 floor raises: merge only after the live CDN serves channels.stable = 0.3.17.
amyxst
approved these changes
Aug 3, 2026
…orts with SQL LIMIT)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Teaches the agent skills the new
queryverb shipping in tinycloud 0.3.17 (built from the private source repo; SDK 0.7.23): analytical read-only SQL — or a natural-language question compiled to SQL server-side — over a collection's structured data. Whereprobe/askFIND content semantically,queryMEASURES it: counts, group-bys, joins, and aggregates over file attributes, user metadata, connectorsource_metadata, and extracted entities, via three per-request virtual tables (files/entities/segment_entities).Surfaces updated
--sql, exports), cloud-verb billing line, collections section (queryreads any type), and a gotcha: when to reach forqueryoverprobe/ask, the latest-extraction-only caveat, metadata collections having no extraction (queryfiles.metadata/files.source_metadata),--max-rows/data.truncated→--export, and what bills vs what's free.### querysection: virtual-table schema, join rule (USING (file_id, collection_id), LEFT JOIN), schema-first guidance, exactly-one-of question/--sql, dry-run, export lifecycle (--background→query show→-odownload, 24h link), run store (list/show/cancel), billing + server limits; shared cache-flags note now includesquery.query.v1+query.export.v1added to required features (CI-diffed pair kept in sync;skill_versionbumped).Verification
npm test— full offline unit + e2e suite passes.shellcheckclean on install.sh, smoke-test.sh, preflight.sh.claude plugin validate .passes.This PR raises the skill floor to 0.3.17, so it must merge only after the live CDN serves
channels.stable= 0.3.17 (otherwise every preflight fails with exit 11). Hold until the 0.3.17 release lands on the CDN.Note
Low Risk
Documentation and version-metadata only; no runtime code changes. Main operational risk is merging before the 0.3.17 CDN release, which would break skill preflight for users still on 0.3.16.
Overview
Prepares the 0.3.17 public dist and agent skills for the new
queryverb: read-only SQL or NL-compiled analytics over collections (files/entities/segment_entities), withschema/list/show/canceland CSV/JSONL export flows documented across SKILL.md, verbs.md, glossary, pipelines, and README.Compatibility gate:
tinycloud-skill.jsonandpreflight.shraisemin_versionto 0.3.17 and requirequery.v1+query.export.v1; plugin/marketplace and package.json versions match. Agents are steered to usequeryfor count/group/join tasks vsprobe/ask, with schema-first guidance and billing/export gotchas called out in the skill.Merge only after CDN
channels.stable= 0.3.17, or preflight will fail on older binaries.Reviewed by Cursor Bugbot for commit 6e61442. Bugbot is set up for automated code reviews on this repo. Configure here.