Skip to content

Tencil 0.6.0: find source code from preview pins

Give agents source locations on Tencil Cloud previews and follow a run’s steps from its pin.

tencil@0.6.0 on npm

Point agents to source files on previews

Pins on Tencil Cloud previews can now tell the agent where an element’s code lives, just as they do in development. Preview builds tag elements with their file, line and component using data-tencil-src and data-tencil-component.

The Vite plugin adds these tags automatically. For Next.js, wrap the config in withTencil() from tencil/next; tencil init --cloud sets this up for you. Builds without TENCIL_CLOUD stay unchanged.

next.config.ts

import { withTencil } from 'tencil/next';

export default withTencil({
  // your config
});

Follow the steps of a cloud run

Click “Working…” on a Tencil Cloud pin to follow sandbox startup, cloning, installing, file reads and edits, committing and pushing. After the run finishes, open the “steps” toggle to review the steps and elapsed time.

Install or update Tencil

Run npx tencil in your project to get started. To update an existing install, run the command below. On Tencil 0.8.0 or later, you can also update from the overlay’s settings (About in 0.10.0 or later).

terminal

npx tencil@latest setup

Back to the changelog