Commit Graph
645 Commits
Author SHA1 Message Date
James RussoandClaude Fable 5.2 99ccd54c63 fix(cli): speak a narration line as written in local voice and tts (#8706)
* fix(cli): speak a narration line as written in local voice and tts

The local voice provider hands the line to tts in a file of its own, so a
line that names a .txt file or starts with dashes is spoken, not read or
taken as an option. tts and heygen-tts treat a word starting with two path
separators as text without looking it up.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(skills): pass the audio skill's own text file to tts with --text-file

Its temp folder can be on a network share, and tts no longer reads such a
path when it is given as a plain word.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(cli): remove the local voice run folder when its text file cannot be written

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(cli): refuse a .txt path on a network share instead of speaking it

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* test(cli): name the share paths outright so the tts cases hold on Windows

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-24 13:51:57 +00:00
Miguel Ángel 5e1a490c80 fix(cli): check keeps copy windows for videos with #, ? or % in the name (#8669) 2026-11-24 08:39:25 +00:00
Miguel Ángel 29a7d471ac fix(cli): check finding captures probe only the project's own videos (#8647) 2026-11-24 07:37:34 +00:00
Michael Wang de3e6153cc fix(cli): read every media path a command is given as that one file (#8650)
* fix(cli): read every media path a command is given as that one file

* test(cli): the hanging ffmpeg stand-in answers the demuxer listing
2026-11-24 07:35:57 +00:00
James RussoandClaude Fable 5.2 8948e63cb7 fix(cli): show control characters as text in more lines that repeat a stored value (#8603)
* fix(cli): show control characters as text in more lines that repeat a stored value

Lines printed by the timeline edit commands, check, diff, preview --list,
telemetry status, the update and skills notices, the FFmpeg install hint, the
cloud render data-fps warning, the capture font summary, the project key notice
and the plain progress lines of a run with no terminal now pass the repeated
value through the text helpers, as the other commands' lines do.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(cli): leave Windows line endings out of a planned diff

A file saved with CRLF line endings had every changed line of the
planned diff end in a visible \x0d. The line ending is now dropped
before the line is shown; a carriage return inside a line still shows.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 16:58:39 +00:00
Miguel Ángel 76a6bacdf7 fix(cli): a cloud upload leaves out a file it cannot read instead of failing (#8575)
* fix(cli): a cloud upload leaves out a file it cannot read instead of failing

* docs(cli): list the unreadable left-out reason and its cause
2026-11-23 10:50:16 +00:00
Miguel Ángel 7f54fded08 fix(skills): ask before usage notes and destroy, and keep media downloads on public hosts (#8555)
* fix(skills): ask before usage notes and destroy, and keep media downloads on public hosts

Media downloads now connect only to an address the host name resolved to after checking it is public; a name that points at a private address is refused before connecting. Skills tell the person once before sending usage notes and honour a no; a catalog gap report no longer carries the search text. Reverse says plainly it needs a HyperFrames Pro sign-in, and cloudrun/lambda destroy wait for the person's yes.

* fix(media-use): give each media download its own connection

* chore(skills): refresh the skills manifest and split out the gap report step
2026-11-23 07:12:36 +00:00
Miguel Ángel 0d624100c7 test(cli): snapshot, render and check capture skip a held history this run cannot write (#8532) 2026-11-22 21:44:20 +00:00
WaterrrForeverandClaude Opus 5.5 675e3a876e fix(cli): pinned-file downloaders check the cache folder is private before reading or writing it (#8486)
* fix(cli): make the cache folder private before a pinned download writes into it (SECOPS-2745)

The measuring tools' pinned-file downloader (measure/pinnedFiles.ts, for the
MediaPipe hand landmarker) made its folder with a plain mkdir, downloaded into
it, and only checked the folder was private in the seal afterwards. A folder
another account owned, a group/world-writable one, or a link out of the cache
received the bytes before the refusal. The model downloaders were worse: the
TTS and background-removal models (utils/pinnedFile.ts) and the whisper models
never checked at all, and trusted a cached copy from such a folder.

Every pinned download into the HyperFrames cache now runs
ensurePrivateCacheDir first: a new folder is made 0700, the person's own
group/world-writable folder loses those bits, and a link, a foreign owner or a
folder another account can change is refused before any partial or final file
is written or any cached copy is used. Temp files stay inside the verified
folder and are renamed into place. opencv.ts, which already did this, now
shares ensurePinnedFiles instead of its own copy of the loop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cli): keep the pinned downloaders' comment share at the base (SECOPS-2745)

Cuts the comment lines the private-cache fix added to pinnedFiles.ts,
pinnedFile.ts and whisper/manager.ts so each file's comment share is back
at or under its merge-base share, and names ensurePinnedFile's root
cacheRoot so the call reads without the comment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:05:10 +00:00
WaterrrForeverandClaude Opus 5.5 886f609c43 fix(cli): publish updates a committed project only when this machine linked the folder (#8487)
* fix(cli): publish updates a committed project only when this machine linked the folder (SECOPS-2048)

.hyperframes/project.json travels with every copy of a project (a clone,
a zip, a download), yet publish took its project id and space id as the
update target, and with --yes overwrote any project the recipient could
write without asking.

Publish now updates the descriptor's project, and uses its space, only
when this machine's own link record (outside the folder, keyed by its
path) names the same project and space. The link record now keeps the
space it published into; records from before keep linking their own
project. Otherwise:

- interactively, publish asks "Update project <id> in place? No
  publishes this folder as its own project." with No as the default;
  No publishes a new project and rewrites the descriptor to it
- with --yes, publish refuses (publish_target_unconfirmed) and points
  to --update <id> [--space <space>]
- --update <id> still names the project explicitly, but the
  descriptor's space is not used unless --space names it

checkPublishTransition counts the descriptor as a legacy update under
the same rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(cli): carry the publish link rules in names, not comments (SECOPS-2048)

The comment ratchet allows a file's comment share only to go down. Drop
the comments the fix added and name the meaning instead: PERSONAL_SPACE
for the "" space id, recordPredatesSpaces for a link record written
before the space was kept, teamLinkedHere in the publish transition.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(cli): keep projectLink's real exports in the publishProject mock (SECOPS-2048)

publishProject now imports PERSONAL_SPACE from projectLink; the mock
replaced the whole module, so the constant was missing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:00:42 +00:00
WaterrrForeverandClaude Opus 5.5 4202462ca5 fix(cli): print project file names in check's stderr notes as visible escapes (#8485)
* fix(cli): print project file names in check's stderr notes as visible escapes (SECOPS-2752)

The text_over_face note printed the unread video's reason raw, and that
reason carries the project's file name and the decoder's own error text,
so a video named with ESC, BEL or CR could drive the terminal during
`hyperframes check`. The same check output path had four more lines
printing project-derived text raw: the project-lock waiting notice (the
holder is read from the project's lock file), the "images did not load"
warning (image addresses read back from the page), the font-localization
warning (the injector's error text), and the saved report's Revision line
(read from the project's history).

Each now goes through the existing @hyperframes/core terminal-text helper:
terminalLines where the text is an error message whose line breaks are
kept, terminalText for one-line notices. Plain names print as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cli): keep check's escape fix within the comment ratchet and testable on Windows (SECOPS-2752)

Drop the three comment lines the escape fix added to source files, which
raised their comment share. The text_over_face hostile-name test now feeds
the name through the candidate and an injected reader, so it runs on every
platform; the real-reader case, which needs a file named with control
characters, runs everywhere but Windows, whose file names cannot hold them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 16:56:27 +00:00
Miguel Ángel 680c9a5402 test(cli): run the PowerShell round-trip names in one shell so slow Windows runners stay in time (#8498) 2026-11-22 12:43:29 +00:00
Michael Wang 4a5a5eb27e fix(cli): show copy file names in check progress lines as visible text (#8407)
The still-copying heartbeat that check prints while it makes
browser-playable copies now passes the video's file name through
terminalText, so control characters show as escapes and the line stays
on one line. check --prepare-media prints a failed file's name the same
way, while the reason keeps its own lines.

The printed-text wiring test now also covers the media-copy progress
lines in checkBrowser.ts.
2026-11-21 23:03:59 +00:00
Miguel Ángel 66156bf35e revert(cli): hold the proxy fix and its Node floor for v0.10.0 (#8391)
* revert(cli): hold the proxy fix and its Node floor for v0.10.0

This reverts commit 2960319749 (#8311), except a stale fallow-ignore line it had removed.

* chore(ci): allow the revert to delete the three files the proxy fix added
2026-11-21 19:08:49 +00:00
James RussoandClaude Fable 5.2 c75860ddf3 fix(cli): show control characters as text in notices that repeat a failure reason (#8387)
* fix(cli): show control characters as text in notices that repeat a failure reason

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(cli): keep a usage hint on one line

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(cli): show control characters as text in prompt-log notices that repeat a failure reason

The source check now also reads clack.log calls. The five notices it
found (play and present port messages, the file approval notice) go
through terminalText.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 18:49:19 +00:00
Miguel Ángel 2960319749 fix(cli)!: a proxy that drops the connection fails a request once instead of retrying nonstop (#8311)
* fix(cli): a proxy that drops the connection fails a request once instead of retrying nonstop

Raises the minimum Node.js to 22.19, which undici 8 requires.

* fix(cli): drop the comments the comment-share check refuses

* docs: the engine, producer and CLI skill say Node.js 22.19

* test(engine): the dropping proxy matches its host exactly

* chore(skills): rehash the CLI skill after the merge

* docs(skills): keep the CLI skill within its size budget

* chore(skills): rehash the CLI skill after the trim
2026-11-21 18:05:46 +00:00
James RussoandClaude Fable 5.2 f01d1f32b0 fix(core): show text direction marks and typed text as visible text in printed lines (#8384)
* fix(core): show text direction marks as visible text in printed lines

The unknown-command line and its suggestion follow the same rule.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* test(cli): move the unknown-command text test to a file of its own

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* test(cli): write the direction mark in the test as an escape

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* test(cli): run the unknown command text test with the default test group

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(cli): keep the suggestion under an unknown command on one line

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(cli): show typed and project text as visible text in every line cli.ts prints

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(cli): show typed text as visible text in the missing-value and extra-argument lines

The two argument checks that print their own line now show control
characters and line breaks in the repeated word as visible text. JSON
output keeps the message as built. A usage error from the argument
parser prints on one line like the CLI's own.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 18:03:26 +00:00
Miguel Ángel 63e700de1e fix(studio-server): history keeps undo steps in order when file times and its clock disagree (#8383)
* fix(studio-server): history keeps undo steps in order when file times and its clock disagree

* fix(studio-server): a removal made while a turn was closed can join that turn
2026-11-21 17:55:42 +00:00
Miguel Ángel d78e9a5f33 fix(cli): check reports its own deadlines as check_deadline (#8378)
* test(cli): both of check's deadlines report check_deadline

* fix(cli): check reports its own deadlines as check_deadline

* test(cli): the --timeout idle window also reports check_deadline
2026-11-21 16:41:56 +00:00
Miguel Ángel 93f2fcca49 fix(cli): Windows kills end only the process the CLI started, never a reused pid (#8382)
* test(cli): the Windows Chrome watchdog spares a pid that now runs another program

* fix(cli): the Windows Chrome watchdog kills only its own Chrome, never a reused pid

* test(cli): no preview lifecycle test may end a real process by a made-up pid

* fix(cli): the log-path preview test stops its made-up child through a fake, not a real kill

* test(cli): the Windows child reaper spares a held pid that now runs another program

* fix(cli): the Windows child reaper kills only the child it started, never a reused pid

* test(cli): the reaper's stand-ins outlive the fixture, so only the reaper can end them

* test(cli): the kill-failure test keeps processTree's other exports, which the reaper reads
2026-11-21 16:25:40 +00:00
James RussoandClaude Fable 5.2 88f7d4052d fix(cli): print check and validate setup commands on their own lines (#8381)
* fix(cli): print check and validate setup commands on their own lines

When no browser can be set up on Linux ARM64, check and validate now
print the setup commands on lines of their own after the reason.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(cli): split setup commands only for a stopped check

A finding with any other code keeps its whole message on one line.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 15:45:43 +00:00
James RussoandClaude Fable 5.2 281f1a2a48 fix(cli): print capture setup commands on their own lines (#8374)
* fix(cli): print capture setup commands on their own lines

When a capture fails because no browser can be set up on Linux ARM64, the
reason stays on the `Capture failed:` line and the setup commands this CLI
writes follow it on separate lines, instead of being joined to it with
`\x0a`. The design style extraction notice now keeps its reason on one line
like the other capture warnings. JSON output and BLOCKED.md are unchanged.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* refactor(cli): name the setup lines field for what it holds

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 14:20:57 +00:00
James RussoandClaude Fable 5.2 9a618b798f fix(cli): read --json before the command name the same as after it (#8365)
* fix(cli): read --json before the command name the same as after it

`hyperframes --json <command>` turned on the JSON failure answer but never
reached the command, so the command printed for people. The flag now moves
behind the command's own arguments before anything reads them, so both
spellings are one run: a command with a `json` flag answers in JSON, and a
command without one refuses the flag as it already did after its name.

A `--json` behind `--` is an argument and no longer turns the JSON failure
answer on.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* test(cli): follow --json to its one meaning in the entry-point cases

Rows that put --json before the command name to see a command's lines
for people now run without it, and the word-tier catalog case checks
the ready-to-paste command.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(cli): drop init's handling for a JSON run that can no longer start

init has no JSON output, and --json is now refused in both positions before
init runs. The status holding, the JSON-run check and init's own answer text
had no caller left. Its tests run without --json and assert the printed line.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* test(cli): let the command table load preview where the studio packages are not built

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(cli): read --json before `help <command>` the same as after it

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* test(cli): cover command words run with no subcommand in the --json table

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 13:31:44 +00:00
James RussoandClaude Fable 5.2 7fcc4909b4 fix(cli): show control characters as text in capture, figma, usage and notice lines (#8366)
* fix(cli): keep notices and capture warnings to the line they are printed on

A warning or failure reason from capture, and the command named in the
left-out-files notice, could carry a line break and start a line of
their own. They are printed as one line now, control characters shown
as text. The figma component, usage and measure hands status lines go
through the same helper.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* docs(cli): describe how printed lines show control characters and line breaks

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* docs(cli): name the commands whose printed lines changed

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 12:35:15 +00:00
Miguel Ángel f74e1545c0 fix(cli): a received-files write waits out a held lock instead of failing on Windows (#8367)
* test(cli): a received-files write waits while Windows still holds the lock file

* fix(cli): a received-files write waits out a held lock instead of failing on Windows

* test(cli): the held-lock test matches the lock by its ending, as Windows spells temp short
2026-11-21 11:33:20 +00:00
Miguel Ángel a2df08e49e fix(cli): a stop reads the process tree from /proc on Linux, so load cannot hide a child (#8363)
* test(cli): a stop finds the process its child started even when pgrep fails

* fix(cli): a stop reads the process tree from /proc on Linux, so load cannot hide a child
2026-11-21 10:38:23 +00:00
James RussoandClaude Fable 5.2 8bc73a0bd3 fix(cli): show control characters as text in init, skills and render printed lines (#8352)
* fix(cli): show control characters as text in init, skills and render printed lines

Lines that quote a name, a path, a flag value, a tool's reply or a caught
message now pass it through terminalText / terminalLines before printing.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* test(cli): build the expected init path with the platform separator

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(cli): init prints only commands that run as written; one line per render progress update

A project name or old-flag value with a control character is left out of the
printed commands: the next steps say to go into the project folder, and the
renamed-flag examples use a placeholder. A render progress update whose text
has line breaks is written as one line.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(cli): init answers a --json run with a refused value as given

With --json before the command name, a refused --resolution, a missing --video
or --audio file, a folder that is not empty and a failed example now report
the value as it was given in the answer, and as visible text on the terminal.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(cli): init's renamed-flag refusals answer --json with the value as given

The two lines keep the example people see. A --json answer now names the flag
and the value as typed. One entry-point case per init failure line, and a check
that a new failure line cannot be added with a bare console.error.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(cli): answer a --json init failure with the value exactly as given

A failure line's values now reach the answer untouched, line breaks and
trailing spaces included. Status lines wait until the project is made, so
a later failure still answers in JSON, and a run that asked for JSON no
longer stops to ask questions. Next steps for a folder name that cannot
be typed back are printed as bare commands under a prose line.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(cli): hold a converted video's status lines with the rest of init's

With every answer given by flags, init printed the two lines about
converting a video through a spinner, apart from its other status lines.
At a terminal that drew on stdout ahead of the JSON answer to a failed
run. They now go the same way as the other status lines; the run that
asks questions keeps its spinner.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* test(cli): cover a failed project after a converted video in a JSON run

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 10:19:08 +00:00
James RussoandClaude Fable 5.2 a744f5c3f5 fix(cli): show control characters as text in four more commands' printed lines (#8346)
* fix(cli): show control characters as text in five more commands' printed lines

browser, models, templates, transcribe and lambda policies now write
control characters out as visible text in the lines they print for
people: failure lines and the path, name and pattern lines. JSON output
and the bare path that browser path prints for scripts are unchanged.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(cli): show control characters as text in a transcription status line

The status line a runner reports beside the spinner is rewritten the same
way as the label next to it. The lambda policies change moves to the pull
request that covers the rest of the lambda commands.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(cli): show control characters in more local-input warnings, keep --json messages as given

The warnings printed by the browser cache and download code, the media
probe, the speech runtime loader and the optional-package installer now
show control characters as text. A failed --json run that takes its
message from stderr gets the text as given again.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* test(cli): run the probe case from an inline script

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 06:45:37 +00:00
James RussoandClaude Fable 5.2 183bc10807 fix(cli): show control characters in failure messages as text (#8336)
* fix(cli): show control characters in failure messages as text

A failure message can quote text from the project, such as a file name or a
data-composition-src value. `compare`, `grade-compare` and `add` printed that
message to the terminal as it was, so a control character in the quoted text
reached the terminal instead of being shown.

- failCaught now prints the message with control characters written out
  (\x1b, \x07, ...), the same way errorBox does. The --json envelope is
  unchanged.
- The composition size limit messages write the file label the same way, so
  every caller and the render server's logs get readable text.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* refactor(cli): carry the reason in the helper's name instead of a comment

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 02:04:59 +00:00
Michael Wang 8ace95ce94 fix(cli): a project .env provider key gives way only in a received project (#8099)
* fix(cli): a project .env provider key gives way only in a received project

Your own or a cloned project's .env provider keys are used as set again, as
the docs describe. Capture no longer drops a project .env vision key next to
a shell credential, and the audio scripts no longer drop an own project's
Gemini key next to the shell's other Gemini key. A received project's keys
still give way to your own credential, and the notes that name a project
key when it is used stay.

* test(cli): check the note for a cloned project's key; say when a received key is ignored
2026-11-18 22:45:29 +00:00
James RussoandClaude Opus 5.5 e0470b0add feat(capture): accept a short-lived Vertex access token for image captioning (#8215)
Capture's image captioner can now authenticate to Vertex AI with
HYPERFRAMES_VERTEX_PROJECT_ID plus HYPERFRAMES_VERTEX_ACCESS_TOKEN, as an
alternative to a service-account JSON. A caller that mints a short-lived
token per run no longer has to hand the CLI a long-lived key. The token is
used as given and never refreshed; when both are set, the token is used.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 21:46:06 +00:00
Michael Wang e83ddaed28 fix(cli): escape remaining project and sign-in text, ignore stateless callbacks (#8177)
* fix(cli): batch render, cloud render and publish print project text as visible escapes

A batch render printed each failed row's error straight to the terminal. The
error can quote file names and attribute values from the project, so control
characters in them could move the cursor, rewrite earlier lines, set the
window title or write the clipboard. That line, and the manifest path in the
batch header, now go through terminalLines() and terminalText(), which keep
real line breaks and show every other control character as an escape.

cloud render does the same for the media lines it offloads, the "also stays in
the zip" line, the largest-files list, the aspect-ratio detection line and the
names of fonts that are not on this computer. publish does the same for the
composition path in the blank-entry hint and for the publish failure message.

The manifest file and --json output are unchanged.

* fix(cli): sign-in callback ignores requests without the login's state

The browser sign-in listens on a local port for the redirect back from the
sign-in page. It acted on an error in that redirect before checking the
state value, so any page or local process that reached the port could end a
pending sign-in and put its own text in the terminal. A request with a
missing or wrong state also ended the sign-in.

Now only a request carrying the login's state can end it. Any other request
gets the same 400 page as before and the listener keeps waiting for the real
redirect or the timeout. A sign-in that is cancelled or fails on the sign-in
page still carries the state, so it reports the failure as it does today.

The error text from the redirect, and the "Sign-in failed" line, now show
control characters as visible escapes.

* fix(cli): variable issues and oversize file list print control characters as escapes

Variable issue lines from render and render --batch printed the variable ids
and allowed options from the project's data-composition-variables as they
were. Each line now goes through terminalText(), so control characters,
line feeds included, show as visible escapes. The issue objects and their
messages are unchanged for other callers.

When a cloud render project is over the upload limit, the list of its largest
files now escapes each path, line feeds included, so a file name cannot add a
line of its own.

Font names in the cloud render notice are looked up as written and escaped
only when printed, so a name with a trailing control character keeps its
look-alike suggestion.

* fix(cli): a callback from another sign-in says the terminal is still waiting

The 400 page for a callback without the login's state now tells the person to finish signing in
from the newest tab, since the terminal keeps waiting instead of ending the login.
2026-11-18 17:19:49 +00:00
DeanandClaude Opus 5.5 559499453b fix(cli): reject bad billing --timeout and --needed values as usage errors (#7910)
* fix(cli): reject bad billing --timeout and --needed values as usage errors

Closes #7909

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(cli): share one positive-integer flag parser across billing, compare and share

Refs #7909

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 16:33:18 +00:00
wonjangandClaude Fable 5.2 7a63b10d76 fix(check): a number with a separator counts as one word in line reading time (#8084)
"1,080" and "3.5%" were split at the separator and counted as two words,
so a two-word line such as "1,080억 달러" was timed as three and its
shortest allowed hold went from 0.4 s to 1.05 s.

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-18 16:11:38 +00:00
Wenbo ZhuandClaude Opus 5.5 fc289b0dfc fix(cli): play and present answer unknown paths with an inert refusal (SECOPS-2642 part 3) (#8160)
* fix(cli): play and present answer unknown paths with an inert refusal (SECOPS-2642 part 3)

An OAuth return that lands on the play or present port was a 404 document on
the same origin as the composition frame, so project script could read its
?code=&state= through a frame, a popup or the authorize redirect. Unknown
paths, missing composition files and any request carrying code or state now
get a fixed text/plain 404 on an opaque origin (CSP sandbox) that cannot be
framed and drops its opener (COOP same-origin).

play's app setup moves into an exported buildPlayApp so tests can serve it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(cli): trim the inert refusal's comments to the package share

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 14:55:42 +00:00
Miguel Ángel 3db2da06c9 fix(cli): the very-many-files received-render test stops timing out on Windows (#8179)
* test(cli): time where the very-many-files case spends its time on each runner

* fix(cli): the received-render size tests cap the walk instead of writing 20,000 entries
2026-11-18 12:48:24 +00:00
Michael Wang 3e788fb15a fix(cli): show control characters in printed names as visible escapes (#8008)
* fix(cli): project folder names print control characters as visible escapes

check, info, compositions, benchmark, play, present and preview printed the
project folder name, and in places the project path, straight to the
terminal. A folder name can hold escape bytes on Linux and macOS, so a
received project could move the cursor, rewrite earlier lines, set the
window title or write the clipboard. Those lines now go through
terminalText(), as validate, snapshot, layout and lint already do. This
covers the preview summary, --status, --stop, --list and --kill-all lines,
and the check report path. The CLI's own colours stay, and --json output is
unchanged.

The play page also HTML-escapes the name in its title and footer, as the
present page does.

* fix(cli): preview --selection and --context print Studio text as visible escapes

The human output of preview --selection and --context printed the selected
element's label, source file, target and thumbnail URL, and the preview
server's project name, straight to the terminal. These come from the
composition or from whichever preview server answers, so control characters
in them could move the cursor, rewrite earlier lines, set the window title
or write the clipboard. They now go through terminalText(), as do the
failure messages these commands print. The CLI's own colours stay, and
--json output is unchanged.

* fix(cli): cloud get, list and delete print server fields as visible escapes

The human output of cloud get printed render fields from the server, such
as the failure message, title, composition and URLs, straight to the
terminal. A failure message can quote text from the rendered project, so
control characters in it could move the cursor, rewrite earlier lines, set
the window title or write the clipboard. cloud get, cloud list (rows and
the next-page token) and cloud delete now pass those fields through
terminalText(). The CLI's own colours stay, and --json output is unchanged.

* fix(inspector): the live inspection stamp gives the page only the generation id

prepareLiveInspection wrote the project's absolute path into the preview
page as window.__hfLiveInspection.project. Nothing in the page reads it, but
any composition script on that page could, which told it the account name
and folder layout. The page now gets only the generation id; the project
path stays with the host that prepared the page.

* fix(skills): locate.mjs keeps its grid font in a private per-run folder

locate.mjs drew its grid labels with a font at the fixed shared path
/tmp/locate-font.ttf. It used whatever file was already there and copied a
system font onto that path otherwise, following any link in its place. On a
machine shared with other accounts, someone else could plant that file
first, so the grid showed wrong numbers, a file appeared where they chose,
or every run failed.

The font is now copied into a folder made with mkdtemp (mode 0700) for each
run and removed when the run ends, so no file another account can create is
read or written. The skills manifest hash is regenerated.

* fix: escape the check report path and lint warnings, and harden locate.mjs font cleanup

check's report path notice and its not-recorded warning, and preview's
"Lint did not finish" warning, now print control characters as visible
escapes, like the other lines that carry the project path.

locate.mjs escapes the font path for ffmpeg's filter syntax, so a temp
folder with ':', ',', quotes or brackets in its name still works, and it
removes its font folder when the run is stopped by SIGINT or SIGTERM before
re-raising the signal.

play and present share one HTML escape helper.

* refactor(cli): keep the shared HTML escape helper within the comment budget

* fix: one HTML escape helper for the CLI, and locate.mjs escapes its font path in one pass

The sign-in callback page uses the shared escapeHtml helper, which now also
escapes single quotes.

locate.mjs escapes the font path for ffmpeg's option list and filtergraph
in a single replacement with the same result as before, and removes its
font folder on SIGHUP as well as SIGINT and SIGTERM.

* fix(cli): escape render output paths and cloud upload names

A finished render printed its output path and the desktop app hint raw.
The default output path sits under the project folder and is named after
it, so the folder name reached the terminal on every render. Batch renders
printed row output paths and the manifest path raw, and cloud render
printed the archive name in its upload progress lines and walked file
names in its left-out warnings raw. These lines now go through
terminalText() or terminalLines(). --json output is unchanged.
2026-11-18 09:30:01 +00:00
terencecho e99cd75b42 fix(cli): run global updates from the home directory (#8131)
* fix(cli): run global updates from the home directory

* fix(cli): skip self-updates inside package scripts and explain unsafe homes
2026-11-18 04:41:57 +00:00
Michael Wang 63c8f8ef66 fix(skills): the launcher never starts a CLI older than its security floor (#8125)
The skill launcher raises its floor to 0.9.64, the oldest release with every
protection for projects received from someone else. The floor applies to a
plugin pin, to --cli-version and to HYPERFRAMES_STANDALONE_CLI_VERSION. A
release below it is refused with a message that names the floor.

The skill lifecycle reference no longer sends the agent back to the project's
pinned release after a failed check. The agent stops and reports, and runs
the old release only when the person asks for it. The CLI notice for a
project that pins a newer release now says the pin is the person's choice.
2026-11-18 00:56:38 +00:00
Michael Wang 59fbb22eba fix(cli): say when check's face pass stopped a source at its time limit (#8122)
When the 30 s limit stops a guarded ffprobe or ffmpeg run, the line check prints for the
skipped source now ends "stopped after 30 s" instead of a generic read failure. Every
other message is unchanged.

A new test decodes a text-art file through readSamples's guarded path and expects
ffmpeg to refuse it, so dropping the demuxer list from that run fails the suite.
2026-11-17 23:57:15 +00:00
Michael Wang c27adb35ff fix(cli): media-use scripts read the host's kept record copy as the CLI does (#8119)
The media-use copy of the received-files rule now reads the host app's kept
copy of an expected project's record, as the CLI does. It adds back each kept
entry whose path still holds something, checks the folder identity for a
project found only by dev and ino, and counts every file as received when the
copy has no list, is doubted, a link, oversized, unparsable or another
project's.

In both the CLI and the copy:
- a kept copy whose identity names another folder counts every file as
  received instead of being ignored;
- a kept copy that fails its first read, for example because the app replaced
  it mid-read, is read once more before every file counts as received;
- a kept copy named both by path and by dev and ino is read once.

The docs no longer suggest that the app's next read restores a kept entry
whose file is gone.
2026-11-17 23:57:13 +00:00
Michael Wang cb2b51525e fix(cli): a rename keeps the received-files record listing the moved file (#8112)
* fix(cli): a rename keeps the received-files record listing the moved file

On a disk that tells letter case or Unicode forms apart, a Studio rename to a
name differing only in case or form followed the old spelling, so the record
dropped the file's only line while the file moved to the new name.

- onDiskPath folds a requested name onto an existing entry only when the disk
  opens the same file under both spellings, so the record follows the exact
  path the rename creates, spelled as the move spells it.
- After a move, an old non-media line goes only when the file left its old
  path, sits at the planned path (same identity or content), and another line
  lists that path. Otherwise the line stays, as it does for a delete.
- A refused move keeps a new line for a file another move already put there.

* docs(cli): word a rename helper comment as what it checks now

* test(cli): build the rename test folder by its native real path

On Windows the temp folder can carry an 8.3 short name, which onDiskPath
spells in full, as the native real path does.
2026-11-17 23:27:17 +00:00
Michael Wang c4a4167aac fix(cli): check's face pass reads only media the page may load (#8116)
The text-over-face pass now treats a page-named source as missing when it
is a private project file, by its name or through a link, or is not a
regular file. Before any ffprobe or ffmpeg run, it refuses a document,
pipe or playlist that names files outside its folder or private in it.
Every probe and decode then uses render's demuxer list and a 30 s limit.
measure reads files named on the command line as before.
2026-11-17 22:27:57 +00:00
terencecho 414adffb82 fix(skills): select standalone CLI releases through the launcher (#8102)
* fix(skills): select standalone CLI releases through the launcher

* fix(cli): clarify release commands and share launcher validation
2026-11-17 21:41:22 +00:00
Miguel Ángel b930c4d2d7 fix(cli): Windows Chrome cleanup and process reads no longer pass PowerShell command text (#8085)
* fix(cli): Windows process reads and Chrome cleanup no longer pass PowerShell command text

* fix(cli): a forced Chrome close on Windows ends what Chrome started

* test(cli): the forced-close test's child holds no pipe to the browser

* test(cli): the forced-close test's child outlives a dead parent, as Chrome's do

* test(cli): forced-close test waits for the kill; PowerShell starts only via processReadArgs

* fix(cli): Windows cleanup ends only a process the CLI started, never a pid it was handed
2026-11-17 20:27:58 +00:00
Michael Wang bc5259d2d3 fix(media-use): audio scripts judge a received .env by the CLI's rule (#8086)
* fix(cli): a project .env provider key prints a note when it is used

A provider key from a project .env is still used when no own credential
competes. Capture vision (OpenRouter, Gemini, Google and both Vertex parts),
snapshot --describe, Gemini speech and Lyria music now print one note per key
before it is first used, naming the variable and the escaped .env path, as
the ElevenLabs note does. The ignoring notes escape the path too, and the
media-use skill gets a generated copy of the CLI's terminal-text helper.

* fix(media-use): the audio scripts read a received .env by the CLI's full rule

The audio scripts judged a project .env as received only from
received-files.json at or above it. They now use a generated copy of the
CLI's rule, which also reads the host's received-state file, nested records
and the received content hashes, and treats an unreadable one as received.
A parity test runs the CLI and the copy over the same projects.

A key the CLI unset from a .env is now passed to the scripts it launches,
so they do not load it again from the same file.

* fix(media-use): match the CLI's folder walk and judge a parent .env by itself

The received-rule copy now skips folders by the CLI's exact private-path rule,
so a hidden Studio folder with an asset-like name is walked as the CLI walks
it. A .env the scripts find in a folder above the working one is judged only
by records and host state at or above that folder, so a received sibling or
a large parent folder cannot flip the person's own key. Keys the CLI unset
are matched by the folder's real path.

* fix(media-use): match the received rule's narrowed private-file check

The CLI's private-file rule now treats a hidden file as private whatever its type,
and framework build-output folders and service-account key names as private.
The media-use copy of the rule follows it, so the parity cases for hidden
asset-named Studio folders agree again.
2026-11-17 19:26:39 +00:00
Michael Wang 183bf2a416 fix(cli): keep files received that a host's kept record still lists (#8100)
* fix(cli): keep files received that a host's kept record still lists

When the received-state file names a project as expected and the host
keeps its own copy of that project's record beside the state file, the
received-file checks read the record together with each entry that copy
lists whose path still holds something. A record shortened or emptied
outside the host no longer makes those files read as the person's own.
A kept copy with no list, a doubted one, a link or one that cannot be
read counts every file as received; with no kept copy, nothing changes.

* fix(cli): keep a record's own lines when the host's kept copy cannot be read

A kept copy with no list, or one that cannot be read, now counts every
file as received through its own entry, named by the kept copy's path,
instead of hiding the record's lines from Studio's rename and move
tracking. A copy found only by folder identity counts only when its
identity matches the folder, and a copy that disappears mid-read counts
as no copy.

* docs(cli): say a kept entry whose file is gone is not added back
2026-11-17 19:04:26 +00:00
Michael Wang 4a59fef2d0 fix(cli): say a listed received file is gone, and drop a media file's line on rename (#8098)
* fix(cli): say a listed received file is gone, and drop a media file's line on rename

Follow-up to the change that keeps a deleted received page listed.

- The render warning for a listed file that no longer exists now says it
  is gone and how to clear it.
- A listed file whose name was already a media name drops its old line
  when renamed to another media name, so repeated renames leave no
  dead lines.
- The docs say that any listed file that is not media by its first bytes
  stays listed after a delete, and that the line can sit in a record
  above or inside the project.
- A test restores content after a plain Studio delete and checks that
  outside files stay refused.

* test(cli): match the gone-file warning without a POSIX path, for Windows
2026-11-17 18:50:20 +00:00
Michael Wang e099c7d0cb fix(cli): keep a deleted received page listed in the received-files record (#8090)
A Studio delete took a received page's line off the record, and files
created afterwards were not followed. A script in the preview could
delete every received page and create it again with new bytes, so the
project no longer counted as received and outside files were read.

A deleted page, stylesheet or script now stays listed, so whatever is
written in its place counts as received. A received page renamed to a
media name keeps its old line too. Deleted or renamed media, fonts and
images still drop off, so a media-only project keeps working.
2026-11-17 17:42:25 +00:00
WaterrrForeverandClaude Fable 5.2 820d63d7f9 feat(cli): check finds text over a face, measure cuts names resumed takes, measure hands (#8074)
* feat(cli): check reports text drawn over a face in a video

The layout audit reports text painted in front of an opaque video with its
word boxes and where the video's frame lands; Node finds the faces in the
video file with the detector `measure face` uses and adds a `text_over_face`
finding (info from 5% of the face covered, warning from 30%) with
`coveredFraction` and `faceRect`. `layout.faceCheck` in the report says
whether the pass looked. `data-layout-allow-on-face` waives it.

Also reads a two-token `object-position` whose first token is "50%" as the
horizontal one.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* feat(cli): measure cuts names the shot a take resumes

A shot that returns to an earlier camera setup after at least one other
shot (a wide take, a close-up cut into it, the wide take again) carries
`continues`: the index in `shots` of the shot it resumes. It is read from
the signatures `cuts` already decodes, by the scene's edges, so a person
who has moved or an exposure that drifted does not hide the match.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* feat(cli): measure hands follows a hand through a clip

`measure hands <video>` reports where a hand's palm (with the hand's
size), index fingertip or pinch is in each sampled frame of a stretch of
up to 15 s, from MediaPipe's hand landmarker. A frame with no such hand
is null, never filled in. The landmarker runs in the CLI's headless
Chrome on a page answered from disk; its code and model are not shipped
and are downloaded on first use, pinned by size and sha256, into the
trusted cache.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* fix(cli): text_over_face is info only, and a stalled OpenCV download no longer stalls check

The face detector can take texture for a face, so text_over_face is
reported as info however much of the face is covered and never fails
--strict.

check passes its deadline and a 30 s limit into the detector's first-use
OpenCV download. A download that does not answer costs the face pass
only: faceCheck is { ran: false, reason }, the other findings are kept
and the process exits.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-17 17:16:20 +00:00