fix(cli): announce publish deprecation for new projects (#8629)

* fix(cli): announce publish deprecation for new projects

* test(cli): handle an absent publish notice in strict typechecks

* fix(cli): clarify ongoing publishes and migrate review guides
This commit is contained in:
terencecho
2026-11-24 02:07:04 +00:00
committed by GitHub
parent e2fe0e6f53
commit 57ffe0b07d
13 changed files with 78 additions and 77 deletions
+1 -1
View File
@@ -202,7 +202,7 @@ Include:
- the item directory;
- the matching entry in `registry/registry.json`;
- regenerated Catalog output;
- a `hyperframes.studio` preview from `npx hyperframes publish`;
- a video review link from `npx hyperframes share` (run it from the preview project and choose an audience that includes the reviewers);
- when to use it, its useful duration range, and any known pitfalls.
External contributors should attach the preview MP4. A maintainer will publish
+2 -2
View File
@@ -1,6 +1,6 @@
---
title: "CLI guide"
description: "Find the HyperFrames command for creating, checking, rendering, publishing, and automating projects."
description: "Find the HyperFrames command for creating, checking, rendering, sharing, and automating projects."
---
Use this page to choose a command. The [CLI reference](/packages/cli) contains
@@ -17,7 +17,7 @@ remains authoritative: run `npx hyperframes <command> --help`.
| Run browser, layout, motion, and contrast checks | `npx hyperframes check` |
| Capture review frames | `npx hyperframes snapshot --at 0,2,5` |
| Render a video | `npx hyperframes render --output output.mp4` |
| Publish a browser link | `npx hyperframes publish` |
| Share a video for review | `npx hyperframes share` |
| Diagnose the machine | `npx hyperframes doctor` |
| Free disk space HyperFrames used | `npx hyperframes clean` |
+10 -9
View File
@@ -5,8 +5,7 @@ description: "Sign in to HeyGen and understand how agent workflows choose voice,
You can create and render locally without an account. Voice and music can fall
back to local engines when no provider key is available. Sign in when you want
HeyGen voice and music, managed cloud rendering, hosted MCP, or ownership of a
published project that you can update later.
HeyGen voice and music, managed cloud rendering, hosted MCP, or a video review link.
## Sign in
@@ -130,15 +129,17 @@ Local engines do not call a hosted generation API after setup. Their first use
may download model files. HeyGen provides managed voices and a produced music
library; sign in when you want those services or cloud rendering.
## Publishing without an account
## Share a video for review
`npx hyperframes publish` works while signed out. It uploads the project and
prints a URL containing a claim token. Open that URL and authenticate in the web
app to claim the project.
Sign in with `npx hyperframes auth login`, then run `npx hyperframes share`
from your project directory and choose who can open the review.
Sign in with `npx hyperframes auth login` before publishing when you want the CLI
to own the project immediately, update the same URL with `--update`, or publish
to a shared space with `--space`.
### Existing published projects
`publish` is deprecated for new projects. If you previously published while
signed out, open the claim URL and sign in to claim the project. To update an
existing publication, sign in to the CLI and run
`npx hyperframes publish --update <url-or-id>`.
## Environment variables
+11 -6
View File
@@ -115,18 +115,23 @@ is correct.
| The recipient needs | Send |
| ------------------------------------- | --------------------------------- |
| A video to watch or upload | The rendered MP4, WebM, or MOV |
| A browser link to the current project | A published project URL |
| A browser link to review the video | A video review link |
| The ability to continue editing | The source project and its assets |
Publish the project when a browser link is more useful than a file:
To create a video review link, sign in, then run the following command from your
project directory and choose who can open the link.
```bash
npx hyperframes publish
npx hyperframes share
```
The command uploads the project and returns a stable URL. An anonymous first
publish creates a claimable link. Sign in when the CLI should own the project
immediately, update an existing link, or publish into a shared space.
For scripts, pass an explicit audience as described in the [CLI sharing reference](/packages/cli#share).
### Update an existing published project
`hyperframes publish` is deprecated for new projects. Existing published links
still work. To update a project at its current URL, sign in and run
`npx hyperframes publish --update <url-or-id>`.
A local video poster referenced with a relative path, such as
`../shared/poster.png`, can be copied into the published project even when it
+2 -1
View File
@@ -1236,7 +1236,8 @@ sign-in that returns to their port leaves nothing the project's own script can r
### `publish`
For new video reviews, use [`share`](#share). Legacy source publishing stays
**`hyperframes publish` is deprecated for new projects.** For a new video review,
run [`hyperframes share`](#share) and choose who can open the link. Legacy source publishing stays
available with a notice for 60 days from an announced notice release. That
release date has not been scheduled. After the window, new `publish` runs guide
you to `share`, where you choose a new audience; old flags are never silently
+11 -18
View File
@@ -112,31 +112,24 @@ blur summary. Consumers must ignore unknown versions and fields. A `--docker` re
launcher. In batch mode each manifest row carries the same `reference_background` value (`null` until the row completes, and for a
row that failed).
### `publish`
### `share`
Upload a project directory and get a hosted URL that keeps working after the CLI exits.
Published projects are private by default:
To share a rendered video for review, sign in and run `share` from your project
directory. Choose who can open the review when prompted.
```bash
npx hyperframes publish
npx hyperframes publish ./my-video
npx hyperframes publish --public
npx hyperframes publish --yes
npx hyperframes auth login
npx hyperframes share
```
Signed-out publishing returns an authentication-required claim URL; opening it
lets someone sign in and claim the project. Sign in first with
`npx hyperframes auth login` to publish an owned project you can update. Use
`--public` to make the claimed project visible to anyone. `--yes` only skips the
confirmation prompt and does not change visibility.
In scripts, pass an explicit audience. See the [share reference](https://hyperframes.heygen.com/packages/cli#share) for the options.
Signed-in publishers can use `--update <url-or-id>` to target an existing project
or `--space <space-id>` to publish into a shared team space. If the requested
project is missing or inaccessible, publishing can create a new project instead;
check the printed URL and status.
### `publish`
See the [publish reference](https://hyperframes.heygen.com/packages/cli#publish)
for all options, including video proxy settings.
`publish` is deprecated for new projects. Existing published URLs still work.
To update one, sign in and run `npx hyperframes publish --update <url-or-id>`.
If the target is missing or inaccessible, check the printed URL and status:
the service can create a new project. See the [legacy publish options](https://hyperframes.heygen.com/packages/cli#publish).
### `lint`
+1 -1
View File
@@ -86,7 +86,7 @@ export function parseUpdateTarget(value: string): string {
export default defineCommand({
meta: {
name: "publish",
description: "Legacy source publishing; use share for new video reviews",
description: "Deprecated for new projects. Use share for new video reviews.",
},
args: {
dir: { type: "positional", description: "Project directory", required: false },
+2 -2
View File
@@ -27,7 +27,7 @@ const GROUPS: Group[] = [
["preview", "Start the studio for previewing compositions"],
["present", "Open a slideshow deck in presenter mode (with audience sync)"],
["share", "Share a rendered video for review"],
["publish", "Upload a project to a stable URL (private by default)"],
["publish", "Deprecated for new projects. Use share for new video reviews."],
["render", "Render a composition to MP4 or WebM"],
["open", "Open a project in the HyperFrames desktop app"],
["catch-up", "See what was done in the desktop app since you last looked"],
@@ -129,7 +129,7 @@ import type { Example } from "./commands/_examples.js";
const ROOT_EXAMPLES: Example[] = [
["Create a new project", "hyperframes init my-video"],
["Start the live preview studio", "hyperframes preview"],
["Publish to hyperframes.studio", "hyperframes publish"],
["Share a video for review", "hyperframes share"],
["Render to MP4", "hyperframes render -o out.mp4"],
["Transparent WebM overlay", "hyperframes render --format webm -o out.webm"],
["Validate your composition", "hyperframes lint"],
@@ -48,10 +48,20 @@ describe("publish transition guard", () => {
});
it("leaves the shipped window unscheduled even far in the future", () => {
vi.setSystemTime(new Date("2099-01-01T00:00:00.000Z"));
expect(() => checkPublishTransition({ dir })).not.toThrow();
expect(process.stderr.write).toHaveBeenCalledWith(
expect.stringContaining("not been scheduled"),
);
expect(checkPublishTransition({ dir })).toBe("unscheduled");
const notice = vi.mocked(process.stderr.write).mock.calls[0]?.[0];
expect(notice).toContain("hyperframes publish is deprecated for new projects");
expect(notice).toContain("This run continues with the usual publish steps.");
expect(notice).toContain("hyperframes share");
expect(notice).toContain("hyperframes publish --update <url-or-id>");
expect(notice).not.toContain("60-day");
});
it("announces the compatibility window once it starts", () => {
vi.setSystemTime(new Date(start));
expect(checkPublishTransition({ dir }, start)).toBe("compatibility");
const notice = vi.mocked(process.stderr.write).mock.calls[0]?.[0];
expect(notice).toContain("60-day");
expect(notice).toContain("This run continues with the usual publish steps.");
});
it("guides new projects without changing their audience or uploading", () => {
expect(() => checkPublishTransition({ dir }, start)).toThrowError(CliUsageError);
+9 -12
View File
@@ -61,21 +61,18 @@ export function assertLegacyPublishOwner(
);
}
function publishNotice(phase: ReturnType<typeof publishPhase>, update: boolean): string {
const kept = update
? " This run uses the legacy update workflow."
: " This run keeps legacy publishing behavior.";
if (phase === "unscheduled")
if (phase !== "share") {
const timing = phase === "compatibility" ? " The 60-day compatibility window is now open." : "";
return (
"For new video reviews, use hyperframes share. The legacy publish transition date has not been scheduled." +
kept
);
if (phase === "compatibility")
return (
"Legacy publish is in its 60-day compatibility window. Use hyperframes share for new video reviews." +
kept
"hyperframes publish is deprecated for new projects." +
(update ? "" : " This run continues with the usual publish steps.") +
timing +
" For a new video review, run hyperframes share and choose who can open the link." +
" Existing published links still work. To update one, sign in and run hyperframes publish --update <url-or-id>."
);
}
return (
"New projects use hyperframes share. Existing published URLs and explicit legacy updates remain supported." +
(update ? kept : "")
(update ? " This run uses the legacy update workflow." : "")
);
}
+2 -2
View File
@@ -10,11 +10,11 @@
"files": 81
},
"hyperframes-cli": {
"hash": "1c07f61f895849bb",
"hash": "36ed7b39fe73ede2",
"files": 14
},
"hyperframes-registry": {
"hash": "3f1f608741d537fd",
"hash": "09559f0d178c08f5",
"files": 13
},
"media-use": {
@@ -1,4 +1,4 @@
# preview, play, render, publish
# preview, play, render, share, publish
Serve, render, and share commands.
@@ -189,14 +189,10 @@ Hit a reproducible bug? Add `--file-issue` (optionally `--dir <project>` and `--
## publish
```bash
npx hyperframes publish # upload current project privately, return stable URL
npx hyperframes publish ./my-video # specific project
npx hyperframes publish --public # allow anyone with the URL to view the claimed project
npx hyperframes publish --yes # skip the confirmation prompt (scripts/CI)
```
Uploads the project's source (HTML + assets) and returns a stable hosted URL that renders in the browser. A fresh publish is private by default and requires authentication plus access to view. Use `--public` to allow anyone with the URL to view the claimed project. Updating a project in place keeps its existing visibility: re-publishing without `--public` never turns a public project private. `--yes` only skips the confirmation prompt; it does not change visibility. A signed-out publish returns an authentication-required claim URL rather than a public playback URL. Lint findings are surfaced before upload but do not block.
`publish` is deprecated for new projects. For a new review, follow
[Share a video for review](#share-a-video-for-review). To update a project at
its existing published URL, sign in with `hyperframes auth login` and run
`hyperframes publish --update <url-or-id>`.
## Where to render, and skill attribution
@@ -122,8 +122,9 @@ hyperframes render -o preview.mp4
# Snapshot for visual QA
hyperframes snapshot --at "1.0,3.0,5.0,7.0"
# Publish to hyperframes.studio for review
npx hyperframes publish
# From the preview project, sign in and choose who can open the video review
npx hyperframes auth login
npx hyperframes share
```
**Catalog preview image** — For the default PNG preview, save your snapshot at `docs/images/catalog/{kind}/{name}.png` in the repository checkout (`{kind}` is `blocks` or `components`). After upload, the catalog serves it from `https://static.heygen.ai/hyperframes-oss/docs/images/catalog/{kind}/{name}.png`. If `registry-item.json` declares `preview`, the card uses its `poster` URL; a `preview` without `poster` has no image fallback.
@@ -154,18 +155,15 @@ npx tsx scripts/generate-registry-items.ts
# 4. Generate catalog docs page
npx tsx scripts/generate-catalog-pages.ts
# 5. Publish to hyperframes.studio so reviewers can preview
npx hyperframes publish
# 6. Stage everything
# 5. Stage everything
git add registry/{kind}/{name}/ registry/registry.json docs/catalog/
# 7. Commit
# 6. Commit
git commit -m "feat(registry): add {name} — {one sentence}"
# 8. Push and open PR with hyperframes.studio link
# 7. Push and open the PR with the review link from the preview step
git push origin feat/registry-{name}
gh pr create --title "feat(registry): {name}" --body "preview: {hyperframes.studio-url}"
gh pr create --title "feat(registry): {name}" --body "preview: {review-url}"
```
**If you don't have a GitHub account:** you need one to open a PR. Sign up at https://github.com/signup, then run `gh auth login`.
@@ -177,6 +175,6 @@ gh pr create --title "feat(registry): {name}" --body "preview: {hyperframes.stud
- [ ] `npx oxfmt --check` passes
- [ ] `registry/registry.json` updated with new entry
- [ ] `scripts/generate-catalog-pages.ts` run (docs page generated)
- [ ] `npx hyperframes publish` run (claim your project URL)
- [ ] Video review link included in the PR and accessible to its reviewers
- [ ] Preview MP4 attached to PR (external) or catalog PNG uploaded (internal)
- [ ] All IDs unique and prefixed