coreyhaines31/treg
OpenRouter for agent tools. Join community here: https://discord.gg/6mQYYfFMAn
https://skillcdn.ai/gh/coreyhaines31/tregConnect this address to your AI to use these skills. How to connect
- Unverified
- Default branch
main - Commit
91d1953 - License
Apache-2.0 - Searchwords
Explore this repository
Searches the original text of skills and documents, and the translations of skills when you search in their language.
Documents
- Google Ads conversion tracking — capture, outbox, uploadOff unless google_ads_customer_id and ads_conv_refresh_token are both set (adsconv.enabled()) — keeps the test suite and self-hosted instances from starting machinery that cannot upload. When off, /a…docs/context/architecture/ads-conversions.md
- Archive - versioned history and cache admissionAsync settlement archives terminal provider JSON under treg://asynctasks/<call_id> using the original endpoint and provider. This mandatory evidence may contain expiring result URLs; the worker never…docs/context/architecture/archive.md
- Auth & secrets — injectors, encryption, OAuth freshness, healthFetchin uses a pasted X-API-Key at https://api.fetchin.io. Its free internal GET /api/v1/subscription probe rejects invalid credentials and accepts a valid account even when its credit balance is zer…docs/context/architecture/auth-secrets.md
- Endpoint catalog — what you can DO with a connected key, and which provider should do itfetchinio.yaml curates Fetchin's seven public LinkedIn data routes: profile, company, member posts and reactions, post comments and reactions, and the combined engagement read. All seven are strict-q…docs/context/architecture/catalog.md
- Application composition and deployment rolesThe standalone Enrich Arena pages (/enrich-arena and /enrich-arena/leaderboard) and /arena/ routes are control-role surfaces. Paid interactive runs use the ordinary call application internally. Shutd…docs/context/architecture/composition.md
- Data model — the registry tables, async DB, audit writerMigration 0043 adds ProviderResource, the durable organization-owned counterpart to the existing async ownership rows. It stores provider, resource kind, upstream id, display name, creator, source ca…docs/context/architecture/data-model.md
- Feedback - private intake for problems and suggestionsFeedbackCategory is the shared four-value vocabulary: quality, pricing, friction, other. FeedbackIn accepts only category, message (trimmed, 1-2,000 characters), optional call_ids (at most 100 bounde…docs/context/architecture/feedback.md
- Find tools for a job - /catalog/find, recall by job and one judge requestGET /catalog/find?q= (application/catalog_find.py) answers a person who describes what they want done: the dashboard's Catalog search box (Enter, or a pause in typing) and the public /search page. It…docs/context/architecture/find.md
- The tool hub — tools a maker publishes, made of other toolsA hub tool is a tool a maker publishes on treg, made of other tools: either a JSON list of steps, or a script that runs in a sandbox. Every step is an ordinary treg call, so identity, the access rule…docs/context/architecture/hub.md
- Enforced import boundariesImport Linter reads the contracts under tool.importlinter in pyproject.toml. The main CI test job installs the lock with uv sync --locked (failing on a stale lock), then runs uv run --locked lint-imp…docs/context/architecture/import-boundaries.md
- Instagram OAuth — direct Login and optional Facebook Page toolsinstagram is one catalog provider with two separate grants:docs/context/architecture/instagram-oauth.md
- Local proxy — catch a program's own outgoing calls (`treg <command>`)Every other way into treg requires the caller to know about treg — treg call, treg run, the /call/ URL. The moment a program writes its own request to api.stripe.com, treg is invisible to it and it h…docs/context/architecture/local-proxy.md
- Local CLI runs — run a vendor CLI as a dedicated user with a server-held credential (`treg run`)A member runs a vendor CLI (stripe, gh, flyctl, gcloud, …) on their own machine while the credential stays in treg custody. The security goal: no other program of the same user may read the credentia…docs/context/architecture/local-run.md
- MCP — the front door for assistants, and treg as an OAuth authorization serverThe team /mcp/ exposes feedback(category, message, call_ids?, endpoint_id?), using a four-value category enum and the shared HTTP intake. This is an additive, non-destructive write on treg, not an up…docs/context/architecture/mcp-oauth.md
- Media hosting - reference files a vendor can fetch (`treg host`)AIGC endpoints (reAPI, PiAPI, OpenRouter video) take reference images, voice clips and videos as public URLs that the vendor's fetcher downloads. An agent on a laptop has no host, and every paste hos…docs/context/architecture/media.md
- Money — prepaid balance, the ledger, Stripe, and the reports that check itTrestleIQ charges USD 0.015 for Phone Validation, USD 0.03 for Real Contact, and USD 0.01 for Address Validation. Every HTTP 200 response is billable, including a negative verdict; 4xx and 5xx respon…docs/context/architecture/money.md
- Multi-tenancy — orgs, memberships, invites, per-org scopingThe registry is tenant-isolated: an Org owns resources, a User is a global identity, and a Membership links them with a role and IS where the caller's token lives. A token = a (user, org) pair, so ev…docs/context/architecture/multi-tenancy.md
- Optional organization concurrent-request admissionrouters.call.run_call_surface optionally admits one root request after trusted Caller resolution and context creation, before execute_call can reserve, enter money admission or call a provider. /call…docs/context/architecture/org-concurrency.md
- Process-local organization traffic logsorg_traffic.RequestLogMiddleware emits one application-owned request JSON line for each /call/, /catalog/call/ and /table/ request. The existing Uvicorn transport access log has no resolved Caller an…docs/context/architecture/org-traffic.md
- Policy extensions — decision points a private abuse policy can plug intoEvery defense mechanism in treg is public, and self-hosters need all of them: the rate limiter, the email-domain blocklist, Turnstile, the one-credit-per-inbox claim. The values those mechanisms are…docs/context/architecture/policy-extensions.md
- The proxy — faithful credential-injecting relay + tool resolutionapplication.call.service orchestrates resolution, authorization, reservation, relay and finalization. application.call.resolve selects the target and credential; infra.upstream.relay.relay only injec…docs/context/architecture/proxy-model.md
- Discovery experiment — a relevance judge behind catalog search, measured on what the caller does next; the job-first answer served to agentscatalog_search is token matching (see catalog — search scoring). It is reproducible and explainable, and the SearchMiss log shows where that is not enough: a task-phrased query whose words are parame…docs/context/architecture/search-experiment.md
- Super-admin — cross-tenant read + controlEverything else is org-scoped; super-admin is the one capability that sees across all orgs. It's deliberately separate from org roles.docs/context/architecture/super-admin.md
- The table layer — one call, answered as rows and columns (`/table/`)/table/{rest:path} takes exactly the request /call/<tool id> takes (method, query, body, key, Idempotency-Key) and answers the same call as {shape, columns, rows, ...}, for clients that want a grid:…docs/context/architecture/table.md
Skipped (3)
These manifests were not served. Fix them and push: the next commit is indexed again.
README.mdlink_missinga link names no file of the repository (examples/claude-code-mods/jev-memory)docs/DASHBOARD-TOUR.mdimage_without_alt21 images have no alternative text (../src/treg/web/tour/img/01-signin.webp, ../src/treg/web/tour/img/02-email-code.webp, ../src/treg/web/tour/img/03-dashboard-empty.webp, ...): an agent reads a picture by the words the document gives itdocs/context/interface/cli.mdlink_missing2 links name no file of the repository (cli-audit-2026-07-28.md, ../../CLI-RUN-PLAN.md)