@telepath-computer/television 0.1.162 → 0.1.164
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +2 -2
- package/dist/skills/television/SKILL.md +3 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -52613,8 +52613,8 @@ function resolveVercelSkillsInstallerBin() {
|
|
|
52613
52613
|
return localRequire.resolve("skills/bin/cli.mjs");
|
|
52614
52614
|
}
|
|
52615
52615
|
function readCLIVersion() {
|
|
52616
|
-
if ("0.1.
|
|
52617
|
-
return "0.1.
|
|
52616
|
+
if ("0.1.164".length > 0) {
|
|
52617
|
+
return "0.1.164";
|
|
52618
52618
|
}
|
|
52619
52619
|
const devPackageJsonPath = import_node_path12.default.join(getDevPackageDir(), "package.json");
|
|
52620
52620
|
if (!(0, import_node_fs10.existsSync)(devPackageJsonPath)) {
|
|
@@ -444,6 +444,8 @@ To share a path artifact from one Television server to another, build a producer
|
|
|
444
444
|
http://<producer-host>:<port>/artifact/<artifact-id>/<basename>
|
|
445
445
|
```
|
|
446
446
|
|
|
447
|
+
**CRITICAL — the share URL carries NO token.** Do not append the server's main `tv` bearer token (or any `?token=`/`Authorization` value) to a share URL, and never include it when telling the recipient how to reach the artifact. The `/artifact/<id>/*` proxy is bearerless: the unguessable artifact id in the path *is* the capability. The recipient is authorized by holding the artifact-id URL, not by holding the producer's main token. Leaking the main token would hand over full read/write control of the entire producer server; the artifact id only grants read access to that one artifact's rendered content. A correct share URL is exactly the form above — host, port, `/artifact/<artifact-id>/`, basename — and nothing else.
|
|
448
|
+
|
|
447
449
|
First run `tv status` on the producer. Its JSON reports the server `bindAddresses` and `port`. Choose the host that the recipient can actually reach:
|
|
448
450
|
|
|
449
451
|
- Prefer a Tailscale CGNAT address (`100.64.0.0/10`) when one is present.
|
|
@@ -454,7 +456,7 @@ First run `tv status` on the producer. Its JSON reports the server `bindAddresse
|
|
|
454
456
|
|
|
455
457
|
For directory artifacts, use the directory proxy URL ending in `/artifact/<artifact-id>/`. For file artifacts, include the encoded basename. The recipient adds that URL with `tv create-url-artifact`; Television recognizes the `/artifact/<id>/...` shape, renders it inline, and reloads it from the producer when the producer content changes.
|
|
456
458
|
|
|
457
|
-
Markdown artifacts shared this way render as read-only HTML. Anyone with the artifact proxy URL can read the rendered artifact content, matching the HTML artifact capability model.
|
|
459
|
+
Markdown artifacts shared this way render as read-only HTML. Anyone with the artifact proxy URL can read the rendered artifact content, matching the HTML artifact capability model — and that read works with no token at all, because the artifact id alone authorizes the read.
|
|
458
460
|
|
|
459
461
|
There is no separate `share-artifact` command. To "share" a URL artifact, pass along the underlying URL and let the recipient create their own URL artifact.
|
|
460
462
|
|