Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: update fal free allowance guidance
[._.]/ Adam Eivy5ee5509f3e2e
diff --git a/client/src/components/fableloom/LoomSceneMedia.jsx b/client/src/components/fableloom/LoomSceneMedia.jsxindex 6ecaf22151..26eb3c0198 100644--- a/client/src/components/fableloom/LoomSceneMedia.jsx+++ b/client/src/components/fableloom/LoomSceneMedia.jsx@@ -9,6 +9,7 @@import { useState } from 'react';import { AlertCircle, ImagePlus, Loader2, Sparkles, Upload, Video } from 'lucide-react';+import { FAL_H3_MAX_FREE_ALLOWANCE_NOTE } from '../../lib/falVideoHandoff.js';import MediaImage from '../MediaImage';import GalleryVideoPicker from '../videoGen/GalleryVideoPicker';@@ -224,6 +225,11 @@ export default function LoomSceneMedia({Generate a scene image first to use it as fal.ai's starting frame.</p>)}+ {onAutomateFalVideo && !compact && (+ <p className="text-xs text-port-text-muted" role="note">+ {FAL_H3_MAX_FREE_ALLOWANCE_NOTE}+ </p>+ )}{!compact && (<GalleryVideoPickeropen={videoPickerOpen}diff --git a/client/src/lib/README.md b/client/src/lib/README.mdindex 26b891da3c..e25b6831d0 100644--- a/client/src/lib/README.md+++ b/client/src/lib/README.md@@ -113,7 +113,7 @@ grep -i "what you want to do" client/src/lib/README.md| `clinicianReport.js` | Pure builders for the MeatSpace clinician-export view (`/meatspace/export`). `buildClinicianReport({ tests, config })` → structured report model (blood panels grouped by category with reference ranges + out-of-range flags, plus a lifestyle summary); `reportToMarkdown(report)` → copy-paste markdown. Reuses the Blood tab's `REFERENCE_RANGES` / `getBloodValueStatus` so printed flags match the UI. Also exports `buildBloodTestModel`, `buildLifestyleModel`, `getCategoryForKey`, `formatRange`. || `quotaBurnPatch.js` | `mergeQuotaBurnPatch(base, patch)` — mirrors the server's quota-burn config merge (top-level + per-family keys merge, a family's `jobs` array replaces) so the Quota Burn page can apply an edit optimistically and accumulate debounced edits into one PUT body. `applyQuotaBurnPreset(job, preset)` / `jobFromPreset(preset, { id, appId })` — copy a catalog prompt preset into a job, preserving the user's own step name and app choice. `quotaBurnJobIsSpent(job, ranAt)` — whether a `run once` step has had its one dispatch, gated on the optimistic config's own `runOnce` so a just-ticked checkbox reads as spent before the save round-trips (the client mirror of the server's `jobIsSpent`). `UNLIMITED_DISPATCHES` / `isUnlimitedDispatchCap(cap)` / `dispatchCapInput(value)` — the -1 "no dispatch cap" sentinel (the default), mirrored from the server. || `clipboard.js` | `copyToClipboard`, `writeClipboardSilently`, `readClipboard` — safe across insecure-origin contexts. Use these instead of `navigator.clipboard.writeText` inline. |-| `falVideoHandoff.js` | `openFalH3MaxFreeTool({prompt, negativePrompt})` opens fal's free MiniMax H3 Max browser tool under the originating click and copies a prepared shot prompt; `buildFalH3MaxPrompt` and `FAL_H3_MAX_FREE_URL` expose the pure prompt/URL contract. The free web allowance is deliberately a handoff, not the separately metered fal API. |+| `falVideoHandoff.js` | `openFalH3MaxFreeTool({prompt, negativePrompt})` opens fal's free MiniMax H3 Max browser tool under the originating click and copies a prepared shot prompt; `buildFalH3MaxPrompt`, `FAL_H3_MAX_FREE_URL`, and `FAL_H3_MAX_FREE_ALLOWANCE_NOTE` expose the handoff contract and current vendor allowance copy. The free web allowance is deliberately a handoff, not the separately metered fal API. || `compareHelpers.js` | `equalByKeys(a, b, keys)` / `equalListByKeys(a, b, keys)` — typed key-based equality for `useAutoRefetch`'s `compare`. Keys are property names, dotted paths (`'context.running'`), or `(item) => value` accessors. The typed alternative to `sameJsonShape` when a monotonic timestamp or unrendered field would break stringify-equality dedup. || `consoleFilters.js` | `installConsoleFilters()` — drops a small allow-list of known-noise console strings (THREE.js `Clock` deprecation, expected WebGL `Context Lost.`) from `console.{warn,log,debug}`. Idempotent; auto-installed on import. Imported for its side effect from `main.jsx`. || `cosTaskType.js` | CoS task-learning bucket resolver for ETA surfaces: `extractCosTaskType(task)` mirrors the server's metadata-first `extractTaskType` handling for live tasks and archived-agent projections, so `self-improve:*`, `user-task`, and fallback estimates use the same history bucket that recorded the run. |diff --git a/client/src/lib/falVideoHandoff.js b/client/src/lib/falVideoHandoff.jsindex 2b7badcd82..b21d22a9a4 100644--- a/client/src/lib/falVideoHandoff.js+++ b/client/src/lib/falVideoHandoff.js@@ -1,6 +1,8 @@import { copyToClipboard } from './clipboard.js';export const FAL_H3_MAX_FREE_URL = 'https://fal.ai/tools/minimax-h3-max';+export const FAL_H3_MAX_FREE_ALLOWANCE_NOTE =+ 'fal.ai currently advertises up to 5 free videos per day with an account; this vendor-controlled allowance may change.';/*** fal's free H3 Max allowance lives in its browser tool rather than itsdiff --git a/client/src/pages/VideoGen.composeWhileBusy.test.jsx b/client/src/pages/VideoGen.composeWhileBusy.test.jsxindex 0967fdac96..387e9fc80c 100644--- a/client/src/pages/VideoGen.composeWhileBusy.test.jsx+++ b/client/src/pages/VideoGen.composeWhileBusy.test.jsx@@ -202,6 +202,8 @@ describe('VideoGen compose-while-busy', () => {);});+ expect(screen.getByText(/fal\.ai currently advertises up to 5 free videos per day with an account/))+ .toBeInTheDocument();fireEvent.change(await screen.findByLabelText('Prompt'), { target: { value: 'A clockwork bird takes flight.' } });fireEvent.click(screen.getByRole('button', { name: 'Copy prompt & open fal.ai' }));diff --git a/client/src/pages/VideoGen.jsx b/client/src/pages/VideoGen.jsxindex 4cd88fb729..8cba840995 100644--- a/client/src/pages/VideoGen.jsx+++ b/client/src/pages/VideoGen.jsx@@ -101,7 +101,9 @@ import ResolutionField from '../components/media/ResolutionField';import { VIDEO_EDGE_BOUNDS, videoEdgeBoundsForModel, IC_LORA_MODES } from '../lib/videoGenParams.js';import { finishTargetForRecord, isDeliveryVideoModel } from '../lib/videoFinish.js';import { peerModelRequiresInput } from '../lib/federatedMediaReadiness.js';-import { openFalH3MaxFreeTool } from '../lib/falVideoHandoff.js';+import {+ FAL_H3_MAX_FREE_ALLOWANCE_NOTE, openFalH3MaxFreeTool,+} from '../lib/falVideoHandoff.js';const MODES = [{ id: 'text', label: 'Text', icon: Type, desc: 'Text-to-video' },{ id: 'image', label: 'Image', icon: ImageIcon, desc: 'Image-to-video (start frame)' },@@ -892,7 +894,7 @@ export default function VideoGen() {<div className="min-w-0"><p className="text-sm font-medium text-port-text">MiniMax H3 Max on fal.ai</p><p className="mt-0.5 text-xs text-port-text-muted">- fal offers up to 15 free browser-tool renders per day with an account. PortOS copies this form’s composed prompt and opens that tool; download the MP4, then upload it to Media History. fal’s app API is separately metered.+ {FAL_H3_MAX_FREE_ALLOWANCE_NOTE} PortOS copies this form’s composed prompt and opens that tool; download the MP4, then upload it to Media History. fal’s app API is separately metered.</p>{!falFreeSupported && (<p className="mt-1 text-xs text-port-warning" role="status">