mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-17 12:43:05 +00:00
- Remove .claude/skills (symlinks) e a árvore .cursor (rules, hooks, skills) - Adiciona .agents/ com skills (+ references/), rules/, hooks/ e scripts - Adiciona .codex/hooks.json (hook do impeccable) - Corrige referências .cursor → .agents em environment.json, hooks.json e AGENTS.md
17 lines
699 B
JavaScript
17 lines
699 B
JavaScript
/**
|
|
* The one place that builds the `/live.js` URL the browser loads.
|
|
*
|
|
* Every injection path needs it (the generic script tag, the Nuxt client
|
|
* plugin, the SvelteKit root component, the TanStack mount component), and a
|
|
* separate module keeps that shared leaf free of import cycles: the framework
|
|
* entries import it, and nothing here imports a framework entry.
|
|
*/
|
|
|
|
/**
|
|
* When a token is supplied it rides as a `?token=...` query param so the
|
|
* server's token-gated /live.js handler authorizes the fetch.
|
|
*/
|
|
export function buildLiveScriptSrc(port, token) {
|
|
const base = 'http://localhost:' + port + '/live.js';
|
|
return token ? base + '?token=' + encodeURIComponent(token) : base;
|
|
}
|