Repository navigation
Conversation
… input Ask: /ask/<token> personal link (hashed token, cookie, re-issue/revoke), big plain page with full history newest first and the last schema pre-filled. Questions are answered in the background (poll), grounded in the engine's summary, review findings and exact SQL; the exact checker output is appended for convert/review questions. c0mpute first via @profullstack/ai-providers, OpenAI/Anthropic fallback when keys are set. 5 cents per answered question, failures free. Prepaid balance in SQLite in /data (c0mpute state), ledger with unique refs, CoinPay hosted checkout top-ups (5/10/20) credited by the signed webhook or the return page. Operator API + bin/admin.js (create, credit, link, revoke, costs, backup). Provider, tokens and cost per answer are stored for repricing. Fix: SQL to DBML on DBML input. The playground no longer posts DBML to sql-to-dbml (it says so and offers an SQL example); the API, convert, MCP and CLI add the hint 'input looks like DBML, not SQL; use /api/v1/dbml-to-sql'. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…reasoning, 2500 tokens
- Refs imported from SQL carry optional relations ('0..*'); the review read
the foreign key on the wrong side and flagged a false ref_target_not_unique.
- A peer node can drop a job; retry with the other 4B model on a fresh router
(the shared one parks c0mpute for 30 s).
- qwen3 streams its reasoning as text ending in </think>: keep what follows;
reasoning-only text is not an answer. maxTokens 900 cut answers short.
- Prompt: PostgreSQL when no database is named.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e live 4B models Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ralyodio
marked this pull request as ready for review
November 30, 2026 20:16
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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 free
to 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.
Ask: pay-as-you-go AI answers for a person, by personal link
/ask/<token>: the personal link signs in (only a SHA-256 of the token is stored; a cookie keeps/askworking too). Operator can re-issue (old link dies) or revoke.@profullstack/ai-providers, c0mpute first (4B models that are live), OpenAI/Anthropic alternating fallback when keys are set. Provider, model, tokens, cost and time stored per answer (/admin/api/costs).ASK_PRICE_CENTS); failures and timeouts are free and say so. One question at a time per account. Questions caught by a restart are marked failed, not charged.dbml.dbbusiness; credited by the signed webhook (verifyWebhook) or by the return page checking the session. No subscriptions.node:sqlite) in/data, the c0mpute app state dir (--state /data --snapshot-secs 30);/admin/api/backup+bin/admin.js backupfor an off-node copy./admin/api/*withADMIN_KEY(vault),bin/admin.js create|list|credit|link|revoke|costs|backup.Fix: SQL to DBML on DBML input
The playground posted the default DBML sample to
/api/v1/sql-to-dbmland showed a parser error. Now the page detects DBML and says "That's DBML. Paste SQL (CREATE TABLE ...) to convert it, or use DBML to SQL." with a link that loads an SQL example. The API,/convert, thesql_to_dbmlMCP tool anddbml from-sqladd the hintinput looks like DBML, not SQL; use /api/v1/dbml-to-sql.Tests: 28 pass (Ask flow with a stubbed model: grounding, charge, no charge on failure, low balance, webhook signature and idempotency, link re-issue; DBML detection shared by page and server; API/convert/MCP hint).
🤖 Generated with Claude Code