Repository navigation
Conversation
GET /me now says cloudSync.enabled (a platform without the field means on). A service with a connected account reads it at most every 30 s; while it is off the mode is 'paused': no automatic push, push() answers ok:false with CLOUD_SYNC_OFF, and the status carries manageUrl (the Connections & API Key page). A sync the platform refuses with CLOUD_SYNC_OFF pauses the service without another request. Keyed statuses carry manageUrl too. CLOUD_SYNC_OFF has a message in English and Chinese. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Clipcat-ai <a2888409@gmail.com>
…tion), the upload ticket is gone
Without an account, POST /api/cloud/start (and the Studio's /api/studio/cloud/start) now starts the
same device authorization as 'popost auth login', or resumes the request that command left in its
.pending file. It answers { connected: false, authorizeUrl: <origin>/workspace/device?code=<code>,
userCode, expiresAt }, the status is 'waiting' with the same facts under 'connect', and the service
polls at the site's interval until the request is approved, declined or expired. On approval the
grant is saved where the CLI keeps it, the service turns keyed and the project is synced once. An
approval found for an earlier request answers { connected: true }. A host without persistent user
storage and an explicit POPOST_API_KEY get a clear error (CONNECT_UNAVAILABLE).
device-login.ts is split into steps (deviceTarget, readDevicePending, startDevice, pollDevice,
finishDevice); login() prints and behaves as before.
Removed from the editor service and the video preview server: the one-project upload ticket login
(state / verifier / callback), GET /api/cloud/callback, /cloud-done.html and cloud/auth-flow.ts.
'--cloud login' holds a service in anonymous mode until an account is connected from it. No answer,
print or log carries the grant or a token.
Server side: nothing new is needed; /workspace/cloud-save and the push ticket are no longer used
by this Skill version.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Clipcat-ai <a2888409@gmail.com>
…d sync is on' or 'off'
Canvas editor (packages/canvas-editor, built into skills/popost/assets/canvas):
- no account: 'Save to Cloud' (same tooltip) starts the account connection; while it waits the
bar shows the device code and 'Copy link', and the link in a field when the window was blocked
- connected and synced: '已打开云端同步' / 'Cloud sync is on', hover '如需取消请到平台「连接与 API Key」处
设置关闭' / 'To turn it off, go to Connections & API Key on the platform', with the Open link
- the account's switch is off: '云端同步已关闭' / 'Cloud sync is off', a link to the page with the
switch (status.manageUrl), hover says to turn it on there
- syncing, failed and conflict are as before; a declined or expired connection and a place that
cannot keep one have their own words
- the mode shown is the service's current one (status.mode), not the one the page was served
with; the status is read again when the window gets the focus back
Embedding contract: window.__POPOST_LOCAL__.cloud.mode may also be 'paused'; CloudStatus gains
manageUrl and connect; CloudAdapter.start resolves { connected, authorizeUrl, userCode, expiresAt }.
Hosts with store=host never have this control: nothing changes for them. POST /api/cloud/start
adds 'code' to a refusal.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Clipcat-ai <a2888409@gmail.com>
…nd shows the switch Same states and words as the image editor: 'Save to Cloud' starts the account connection and shows the device code with a copyable link while it waits; connected and synced reads '已打开云端同步' / 'Cloud sync is on' (hover: where to turn it off) with the Open link; an account whose switch is off reads '云端同步已关闭' / 'Cloud sync is off', a link to status.manageUrl. Syncing, failed and conflict are unchanged. The shell bundle is regenerated. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Clipcat-ai <a2888409@gmail.com>
…ount
With a connected account whose cloud-sync switch is on, 'popost export --final' pushes the project
to the user's popost.ai projects once the files are written, whether or not an editor was opened.
The command's JSON gains cloud: { state: 'saved', webUrl } | { state: 'failed', error: { code,
message } } | { state: 'paused', manageUrl }; a failed sync never changes the exit code or the
export. Nothing is sent, and no 'cloud' field is printed, without an account, without --final, or
with the new --cloud off (default auto). A project the web copy already has is not sent again.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Clipcat-ai <a2888409@gmail.com>
…cted account After the MP4 is written, a connected account whose cloud-sync switch is on gets the project (video.json and the files it names), through the Studio's own adapter: same files, same uploads by content hash, same .studio/cloud.json. The JSON gains the same 'cloud' field as export --final; the render never fails or changes because of it. --cloud off (default auto) sends nothing; without an account nothing is sent and nothing is printed about the cloud. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Clipcat-ai <a2888409@gmail.com>
…paused
present reads the account's switch from the GET /me it already makes. Off: nothing is exported or
synced; the local editor is handed off with cloud: { mode: 'paused', state: 'idle', manageUrl },
and its service is an ordinary one of a connected account, so it follows the switch when the user
turns it on again. A running service is reused whether it reports keyed or paused.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Clipcat-ai <a2888409@gmail.com>
… popost.ai; the button connects the account SKILL.md (Review and deliver), references/host-editor.md (云端保存), image-workflow.md (step 9), video-step-7-deliver.md, video-editing.md, the repo AGENTS.md and the --cloud help texts: export --final and video render report 'cloud' (saved / failed / paused), the cloud-sync switch lives on the Connections & API Key page, paused means nothing is synced, and Save to Cloud in the canvas and the Studio starts the device authorization of popost auth login. The one-project upload ticket is no longer described. Skill docs changed: the server side syncs them. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Clipcat-ai <a2888409@gmail.com>
…de elsewhere Two editors (the canvas and the Studio) or the editor and 'popost auth login' can wait on the same saved request. The one that does not finish it now sees that the account is connected, turns keyed and syncs, instead of reporting the used-up request as expired. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Clipcat-ai <a2888409@gmail.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Clipcat-ai <a2888409@gmail.com>
…-final or video render The popost.ai workbench runs the Skill with a credential of its own and keeps the project itself. The delivery sync treated that credential as a connected account: every final export there asked the platform to sync a second copy, or reported a cloud failure that was none. present already leaves such a host alone; the delivery sync now does the same (no cloud field, no request). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Clipcat-ai <a2888409@gmail.com>
…led sync, not a hung command
The upload PUT of a video project's file had no time limit, so a connection that stalled kept popost video render
(and the Studio's save) from ever returning. Every request of the video sync now has one: a minute plus a second
per MB it carries or refers to, fifteen minutes at most. A timed-out upload is reported as
cloud: { state: 'failed', error: { code: 'UPLOAD_TIMEOUT', … } } naming the file; a timed-out sync request as
NETWORK. The render's own output stands either way, and the next attempt uploads only what is still missing.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Clipcat-ai <a2888409@gmail.com>
At most once a day a command asks the npm registry which version is published (the registry npm is set to use; 2.5 s limit, beside the command, dropped 300 ms after the command ends) and keeps the answer in <popost home>/update/check.json. The next command says it on stderr and in an update field of its JSON object, once a day for one version. Only the published package installed globally with npm takes part: not a host, a source checkout, a supplied build, a copy inside a project, a version the registry does not have, CI, or POPOST_NO_UPDATE_CHECK=1. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Clipcat-ai <a2888409@gmail.com>
…the Skill copies popost update runs npm install -g popost@latest into the npm prefix the running copy is in (npm's own script with the running Node, else the npm on PATH), then starts the NEW package's popost install as a process, and prints one JSON document: previous and new version, what install reported, and to restart the agent if it does not see the new Skill. --check compares versions and changes nothing; --dry-run shows the two commands. One update at a time (a lock in the popost home). It refuses, with the reason, for a source checkout or linked build, a supplied build (dist/distribution.json) or pre-release, a version the registry does not have, a copy inside a project or the npx cache, and popost inside a host. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Clipcat-ai <a2888409@gmail.com>
When a command knows of a newer patch or minor version, it ends by starting popost update as a detached process (--background --to X, the same code as the command typed by hand, for that exact version), so the next command runs the new version and says once, on stderr and in the update field, that popost was updated, or that the update failed and why. A new major version is only announced. It starts only for the published global npm package, outside CI and hosts, not on Windows, when the user may write the npm directories (no sudo, no prompt), not after update, install, serve, present or a video render/preview/capture, not while another popost process of the same installation runs (each command notes itself in update/running/), not beside another update (a lock), once per 24 hours and once per version (a failed one waits 7 days or the next version). POPOST_NO_AUTO_UPDATE=1 and popost update --auto off leave only the notice. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Clipcat-ai <a2888409@gmail.com>
npm installs the new package into a staging directory in the global node_modules, the staged command line is started once (--version), and only then the installed directory is replaced: two renames directly after each other, the first undone when the second fails. A failed download, a registry that is down or a package that does not start under this Node leaves the installation as it was, and a command that starts while an update is at work finds the old package or the new one, never npm half way through replacing it (seen in a run against a local registry: with npm installing in place a command failed to load its modules; with the swap 64 back-to-back commands over three updates all ran). An older or equal version is never swapped in. popost update reports the agents that are not on the machine by id. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Clipcat-ai <a2888409@gmail.com>
SKILL.md and onboarding.md: the standard npm installation updates itself (patch and minor versions, in the background), popost update by hand, the two environment switches, which builds are left alone, and that an agent tells the user in one line and continues. READMEs: one sentence. release-skill.md: what publishing to latest now does on users' machines and what that asks of a release. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Clipcat-ai <a2888409@gmail.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Clipcat-ai <a2888409@gmail.com>
…'s switch Signed-off-by: Clipcat-ai <a2888409@gmail.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> # Conflicts: # skills/popost/SOURCE-MANIFEST.sha256 # skills/popost/src/video/preview/shell-bundle.ts
With a popost home that cannot be written, the time of the last request was never stored, so every command asked the registry again and waited for it up to the grace. A check that cannot be recorded is now not made. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Clipcat-ai <a2888409@gmail.com>
…ain before the swap The command that starts the update checks that no other popost process is running, but npm then downloads for seconds to minutes. An editor service or a render that started in that time was swapped under. The background update now asks again directly before the swap and records a failed attempt instead, with the installation unchanged. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Clipcat-ai <a2888409@gmail.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Clipcat-ai <a2888409@gmail.com>
# Conflicts: # skills/popost/SOURCE-MANIFEST.sha256
…m, Yarn, Bun or Volta is announced with that manager's command The package directory, with links resolved, must be exactly <npm's global node_modules>/popost: worked out from the running Node, from the prefix npm is configured with, and otherwise from npm root -g (asked once, kept 30 days). On Windows a pnpm store or any other layout was taken for an npm installation before. Programs started by the CLI can now be given a time limit (npm root -g uses it). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Clipcat-ai <a2888409@gmail.com>
A container or sudo popost: the newer version is announced, and popost update typed by hand still installs it. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Clipcat-ai <a2888409@gmail.com>
…ies that exist, and popost update uses it An update ran the bare popost install, which installs for every agent it detects: it could create a Skill copy where the user never had one, and it never reached a copy installed with --dir. Every popost install now records its targets in <popost home>/installs.json (entries whose directory no longer holds the Skill are dropped), and --existing refreshes the known agents' directories that already hold the Skill plus the recorded ones, keeping each copy's sign-in profile. With no copy anywhere it changes nothing and says so; popost update then updates the command line only. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Clipcat-ai <a2888409@gmail.com>
…nd never installed automatically npm deprecate is how a bad release is stopped: the daily check reads the mark with the version, the background update does not start for it, and popost update --check shows it. Taking the mark away lets the update through. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Clipcat-ai <a2888409@gmail.com>
…aces the installation For popost update and the background update alike: the registry's entry for the exact version is read with npm (npm view), the package is downloaded as one file into the staging directory (npm pack), and that file's sha512 must be the registry's dist.integrity; then the registry's signature over name@version:integrity is verified against the registry's key list. npm installs from the checked file. A check that fails or cannot be made ends the update with the installation untouched. With the official registry a missing or invalid signature is a failure (npm's published keys are used when the key list cannot be fetched from this process); a registry of the user's own without a key list is checked by integrity only, and the result says which check was made. The background update also asks for the deprecation mark again here, directly before it downloads. npm audit signatures is not used: it needs a project with a lockfile around the package, and npm 9 fails it for every package signed with a registry key that has since expired. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Clipcat-ai <a2888409@gmail.com>
…f this installation is running The same check the background update makes, at the start and again directly before the swap: replacing the package under a running service leaves it without the files it has not loaded yet. The message names the process; --force updates anyway. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Clipcat-ai <a2888409@gmail.com>
…lock, safe npm output, request wording - npm is ended after ten minutes (one minute for a registry question) and the update counts as failed. - A leftover lock is moved away under its own name, compared with what was judged stale and put back when it was another update's; the new lock is created exclusively and must name this process when read back, and again directly before the swap. - A background update that finds popost update typed by hand holding the lock closes its attempt without news, so it is not reported as unfinished half an hour later. - What npm printed is shown by its last 300 characters, without tokens, credentials or the home directory. - Comments and help say which registry requests are made and when a failed one is retried. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Clipcat-ai <a2888409@gmail.com>
…s only, who is never updated, how to stop a bad release Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Clipcat-ai <a2888409@gmail.com>
…ines are left out, a version deprecated since the check ends without a failure notice Found in the run against a local registry: npm itself refuses a tampered download (EINTEGRITY), and the last 300 characters of its output were the name of its log file. The background log line now says how the package was checked. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Clipcat-ai <a2888409@gmail.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Clipcat-ai <a2888409@gmail.com>
…tic updates Signed-off-by: Clipcat-ai <a2888409@gmail.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> # Conflicts: # skills/popost/SOURCE-MANIFEST.sha256
…a parse run The platform's import window grew from 10 to 15 minutes, so the default --timeout of link parse, link status, inspiration add and inspiration status is now 900 (was 600; the range stays 1-3600). One constant, TIMEOUT_DEFAULT_SEC; the help and the two references name the new default. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Clipcat-ai <a2888409@gmail.com>
…oves a project's caches A project's .cache/video (the frames extracted from its video materials) only ever grew: a changed file or size got a new directory and nothing removed the old ones. On one machine it reached 46 GB in 109 directories. - Every directory carries a mark (.used): the clip it came from and when a build last used it. At the end of a build the directories of clips the project no longer has are removed, the ones unused for a day, and above the cap (2 GB, POPOST_VIDEO_CACHE_MAX_MB) the least recently used ones the build does not show. Frames the timeline needs stay even above the cap, with one warning in the command's problems. - A whole render removes the frames it extracted once the MP4 is written (framesFreedBytes). The next render, frame or Studio extracts them again; the kept shots are still reused, and the video is frame-identical. - Nothing is removed that a running preview or render page shows: each keeps a small file in .cache/video/.holds, rewritten every 30 s and forgotten after 2 minutes (cache/holds.ts). Nor a directory another run used after this one started, one behind a link, or one that holds anything but frames. - Every command that takes a project directory removes, on its way out, frame directories and render-chunk sets nothing used for a day (chunk sets were bounded per setting, but the number of settings was not). - popost video clean [project...] [--all DIR] [--dry-run] removes the frame cache, the render chunks and .studio/drafts of projects and prints the bytes freed per project; popost video doctor, run in a project, prints what its caches take. Tests: tests/video/frame-cache.test.ts (the selection rules, the memory file system, a real two-clip render that ends with no frame cache and renders again to the same frames, the Studio opened afterwards). Two older tests read the cache after a render and now read it before (make-video), or leave the new mark out of their listing (render-chunks). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Clipcat-ai <a2888409@gmail.com>
…anel as a drawer Reported from an agent's side panel: at 820 px and below the Studio set the side panel's column to 0 and hid the panel, but the rail buttons (Media, Elements, Subtitles, Code) stayed lit and clickable, so a click did nothing. The app was also wider than the window there: the top bar's buttons and the right part of the stage lay outside it. - Below 820 px a rail button opens its panel as a drawer over the stage. The close button, Escape (before it clears a selection), a click outside and the same rail button close it; another rail button switches the panel. A button is lit only while its panel is on screen. - Below 640 px the properties are a drawer too, opened with a Properties button above the stage once something is selected: a selection no longer takes 220 px from a 400 px window. - The app keeps to the window from 360 px up: one grid column that cannot grow, a top bar whose actions shrink, timeline tools that scroll sideways, a transport that wraps without cutting its last row, a timeline no taller than 38% of the window (34% without the footer in a short one). - At 820 px and wider nothing changes: the measured boxes of the panel, the stage and the picture at 1280x720 are the ones from before. Tests: tests/video/preview-narrow.test.ts drives the shell in Chrome at 400x700, 600x800, 820x900 (every rail button, every way to close), 360x640 and 400x480, and 1280x720 for the unchanged layout. The shell bundle is regenerated with npm run build:video -w popost. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Clipcat-ai <a2888409@gmail.com>
…ide it Whether the Studio is opened locally by the agent or as the cloud project on the web: a project that has a reference video is a replication of it and now opens with the comparison on (reference left, video right). A project without a reference opens with it off, as before. - The default comes from the shell itself (shell/studio/compare.ts), from the first state it loads, so the local preview and a page that embeds the shell get it without any change on their side. - The Compare button is the user's own choice: it is kept for that project in localStorage (one map, the 50 projects switched last) and wins the next time the project is opened. A project is known by its directory; a host that serves projects from changing directories can name it by setting sessionStorage['popost-studio-project'] before the shell starts. Without that the default still applies on every open. - Where the two pictures come out at least 15% larger above each other than side by side (a landscape video in a narrow, tall panel) they are stacked, the reference on top; everywhere else, and at desktop width, they stay side by side with the sizes from before. Tests: tests/video/preview-compare-default.test.ts (with and without a reference, the kept switch across reloads, a host-named project, stacked and side by side in a narrow window). The shell bundle is regenerated. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Clipcat-ai <a2888409@gmail.com>
Sync GitHub discovery copy to develop
Follow-up to the frame cache clean-up (item 1): a render page records the frame directories it shows in .cache/video/.holds before it extracts. With a .cache that links out of the project that file was written through the link before the extraction refused the link. The directories are now made (and the link refused) first, and holds behind a link are neither read nor removed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Clipcat-ai <a2888409@gmail.com>
…ompare by default Signed-off-by: Clipcat-ai <a2888409@gmail.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Restore the original README copy on develop
…eck by eye
A selling video must show the product of the user's picture: the same shape,
proportions, size against the hand, printed text, colours, parts and count in
every frame. A recorded run lost it: the clips were asked for with words alone
("serum tube"), the user's picture went to no request, and the review looked
at the presenter, not at the product.
popost video product:
- init: copies every picture the user gave into the project byte for byte
(sha256 kept) and writes the skeleton of production/product.json.
- check: validates the sheet (every picture is the recorded file, every fact
filled, a user fact carries the user's words, nothing shared between two
products) and prints the product block: one text built from the sheet
alone, the same in every clip, stated as what is there.
- confirm: facts read from the picture or from how such a product is used are
inferred; the user is shown them in one line and the answer is bound to
those facts by a hash (an edited fact is asked about again).
- sheet / review / check --deliver: the user's picture beside frames from the
opening, middle and end of a clip or of the finished video, the verdict
bound to the bytes that were looked at. Only "passed" delivers; an agent
that cannot look at pictures records "unseen", which does not pass.
Tests: tests/video/product-sheet.test.ts, product-review.test.ts (the sheets
need ffmpeg and are skipped without it).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Clipcat-ai <a2888409@gmail.com>
In a project with production/product.json every material request says "products": the ids it shows, or [] for none. A request that shows a product is sent with all the user's pictures of it as reference pictures, unchanged, and with the sheet's product block after its own words; what it was sent with is kept beside the clip (<clip>.product.json). materials --check and every run refuse, before anything is paid: - a request that does not say (the message names the product when the prompt does), or that lists an unknown id; - a model that takes no reference pictures, or fewer than the product has (the limit is read from the video models list, only for a list that shows a product), with what to do instead: another model, or a shot from the real picture; - a clip from a frame whose first frame is not one of the user's pictures or a still composed from one; - a sheet with errors, and, once the list is to be paid for, inferred facts the user has not confirmed (a warning while the list is only priced). Reference pictures have an order when a model takes few: the product's, the cast's identity pictures, the request's own, the anchor frame. Only the anchor is left out, with a note; everything else is an error, so no picture is dropped silently. The anchor sentence no longer speaks for the product of a product request, and the product's own picture given as --anchor-image is not sent twice. A file made before the sheet, or before it changed, is reported instead of being passed off as made with it. --check also warns about a long clip that handles the product in several actions, a clip that continues a generated frame, and a list that reads like a product while the project has no sheet. Behaviour for projects without a product sheet is unchanged. Tests: tests/video/product-materials.test.ts (in memory, the built-in generator against the video API fake). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Clipcat-ai <a2888409@gmail.com>
New page references/video-product.md: the product sheet, confirming what was inferred, planning shots so that the real picture carries the product (packshots, close-ups and label shots in a scene with motion; generated clips only where it is held or used, one clip per product action), requests marked "products", and the product check before delivery. video.md (rule and index), step 1 (the inferred facts go into the cost overview), step 3 (the product is not carried by the anchor), step 7 (the product check comes before any other review; a mismatch is regenerated or replaced, never delivered with a note; an agent that cannot look at pictures says so), video-performers.md (a person who holds the product), video-tools.md (the "products" field, the order of reference pictures) and the development guides say the same. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Clipcat-ai <a2888409@gmail.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Clipcat-ai <a2888409@gmail.com>
…same product Signed-off-by: Clipcat-ai <a2888409@gmail.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… by themselves
In the local image editor (resolutions above 1x, SVG / PSD / PDF) and the local
video Studio (4K), a paid option showed a link to the pricing page. Inside an
agent's side panel that link opened in the panel, where the user is not signed
in, and a user without a connected account was always treated as free.
Service (skills/popost/src/cloud/entitlement.ts): one entitlement per running
editor service, unknown (no account) / free / paid, read from GET /me
(plan.premiumExport; any tier other than free on a platform without the field),
kept for a few minutes per credential and re-read on a fresh request.
GET /api/export-options answers { state, connected, premium, verified, tier,
pricingUrl, canOpenExternal, canConnect } (the old fields stay). New
POST /api/open-pricing, origin-checked like every write, opens the pricing page
in the system browser: its address is the configured site plus one of the two
languages, never anything from the request. POST /api/cloud/start (Studio:
/api/studio/cloud/start) takes open: true and opens the approval page the same
way.
Editors (skills/popost/src/cloud/paid-gate.ts, one state machine for both): a
locked option that is clicked is remembered and a prompt appears in place.
Paid: selected at once. Free: "See plans" asks the service to open pricing in
the system browser; the address is shown to copy when no browser can be opened.
No account: "Connect account" starts the device authorization of the cloud
button, with the code in place; once approved the flow goes on by itself. The
plan is read again on window focus and every few seconds while a prompt is
pending, so the option selects itself after the user has paid, without a reload
and without touching the other export settings. Hosted editors keep the host's
answer and link to pricing in a new tab.
The cloud button and the Studio's cloud control open the approval page through
the service as well when it can open a browser (as popost auth login does), and
keep their own new window otherwise. The paid mark is a plain lock.
Host contract: export-options is unchanged; a host is now asked again while a
prompt is pending and on focus (EMBEDDING.md). Agents: see
skills/popost/references/host-editor.md, "付费导出项" (never open pricing or the
approval page in the side panel). Needs popost-server's plan.premiumExport only
as an improvement: an older server works through the tier rule.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Clipcat-ai <a2888409@gmail.com>
…ount or open pricing in the browser Signed-off-by: Clipcat-ai <a2888409@gmail.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Clipcat-ai <a2888409@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cloud sync follows the account's switch and the editor's cloud button connects the account; update notice,
popost updateand automatic updates; the video frame cache cleans itself (popost video clean); the Studio works in narrow panels; replications open with the comparison on; paid export options connect the account or open pricing in the browser; a product sheet keeps the user's product consistent in generated clips;link parsewaits 15 minutes.🤖 Generated with Claude Code