packages/media-shared-assets (added earlier, version 2.0.0, with a
vitest devDependency) was never reflected in the root lockfile - it
looks like npm install was never re-run at the workspace root after
the package was added. `npm ci` therefore failed everywhere with
"Missing: @gabriel20xx/media-shared-assets@2.0.0 from lock file" plus
a cascade of missing vitest/chai transitive deps.
This is the shared source of truth every consumer project vendors a
snapshot of via sync-consumers.ps1, so the stale lockfile was breaking
`npm ci` in every consumer's CI too (confirmed via GameStream's Tests
workflow, which has been red since the media-shared-assets sync
landed). Regenerated with `npm install`; verified `npm ci`
(both with and without --omit=dev) and the full lint/test suite
(Node/Svelte, Go x2, Python) all pass clean.
Next: re-sync this fixed shared/ snapshot into every consumer via
sync-consumers.ps1 -Commit -Push.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Adds Register/Login/Logout/Me/TOTP(Enable/Verify/Disable)/password-reset/
admin-user-management (List/Create/Update/DeleteManagedUser) methods,
APIError, SessionResult, and ForwardCookies - everything a Go service
needs to fully retire its own local auth in favor of proxying to
AuthGuard, not just validate an existing session.
Cookie-forwarding pattern: a service passes AuthGuard's own Set-Cookie
straight through via ForwardCookies rather than minting its own session
token, so the browser holds one real AuthGuard cookie under whatever
AUTH_COOKIE_DOMAIN scope was configured - no double session-mapping,
correct cross-project SSO for free. Documented in the package doc comment.
First real consumer: GameStream's cutover (separate commit, that repo).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Java 8-compatible (not 11+/records as originally suggested) - verified
MegaBasterd's pom.xml compiles this source directly via
build-helper-maven-plugin rather than depending on a packaged jar, and
is pinned to source/target 1.8, so newer APIs would have broken its
real build. Uses HttpURLConnection instead of java.net.http.HttpClient,
a plain final class instead of a record.
No JSON dependency added (defensive regex parsing of AuthGuard's small
fixed response shape) - java-backend has zero runtime dependencies
today and this is the only class that would need one otherwise.
Also added this package's first pom.xml, README.md, and test directory
- none existed before.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Async (asyncpg-consistent with the rest of this package), stdlib-only
HTTP via urllib + asyncio.to_thread (no new dependency for one GET
call). Framework-agnostic by design: read the two real consumers
(HordeWorker's aiohttp webui, Heretic's FastAPI app) and they don't
share a framework, so token_from_request/resolve_user work over plain
headers/cookies mappings rather than shipping a framework adapter.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Lets any Node service validate requests against AuthGuard instead of
maintaining its own local user table - the missing piece needed to
wire AuthGuard into OutdoorGamesPlatform/server-node and any other
Node service, matching what authclient already provides for Go.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Merged from MediaCollection's root README.md before deleting that repo -
the rest of that README (repository layout, docker build commands)
described the now-superseded monorepo structure and would be misleading
to keep verbatim.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The original MediaEngine extraction (later folded into this repo) had
been done BEFORE the owner's decision to revert the MediaViewer/Forge/
etc. rename, and was never re-extracted afterward like the other 7
service repos were - it silently carried stale renamed-era text
(e.g. 'Porter' instead of 'MediaServant') into Go doc comments, WebUI
prose, project-icons.json, and app-config.ts. Re-copied both directories
fresh from the current (correctly reverted) MediaCollection/backend and
MediaCollection/WebUI, then re-applied the go.mod replace-directive fix
and re-added SECURITY_AUDIT.md (also newly migrated from MediaCollection
root - a real deployment security checklist that would otherwise have
been lost when MediaCollection is deleted).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Per owner decision: MediaEngine (the Media product family's Go backend
and SvelteKit frontend, previously its own repo referenced by 7 thin
service repos via git submodule) is folded directly into shared/ as
media-backend/ and media-webui/, rather than staying separate.
media-backend/go.mod's replace directive now points at ../backend (a
true sibling within this repo) instead of a vendored ../shared/backend
copy, since there's no more nested vendoring - it's the real thing.
Also moved MediaEngine's own CI (media-backend-lint.yml,
media-backend-tests.yml) and dev tooling scripts (scripts/media/*,
audit/lint/enforce scripts for the media-backend+media-webui content),
fixing their path assumptions for the new layout, and dropped
scripts/media/sync-shared.mjs (confirmed dead code, and now doubly
obsolete since there's no more vendored shared/ subfolder for it to
check). Added media:* script aliases to package.json for the moved
tooling, namespaced to avoid colliding with this repo's own scripts.
Also fixed sync-consumers.ps1's workspace-root resolution to walk up
until it finds a directory containing both Original/ and Forks/,
instead of assuming shared/ is always a direct child of the workspace
root - it broke when shared/ moved from Web/shared to Web/Central/shared
earlier in this same restructuring. Removed the now-obsolete
Original/MediaEngine entry from its consumer list.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Browser theme CSS/JS assets shared across MediaCollection's client apps,
moved here per owner request to centralize shared components. The
build:theme sync script now lives inside the package itself rather than
assuming a monorepo-root scripts/ sibling; its 'test' script is a no-op
placeholder since the package has no tests of its own yet.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Wires a pageHeaderActions snippet prop through to PageHeader's actions
slot, so consumers can render content (e.g. stats, buttons) in the
page title container alongside the title/description.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
AutoCode's actions page depends on a Pagination component that only
ever existed in its consumer-side shared/ snapshot, never in this
canonical repo. Every sync-consumers.ps1 run deleted it as stale,
repeatedly breaking AutoCode's lint and Docker builds. Adding it here
makes the sync idempotent instead of destructive.
The folder was renamed from HordeWorkerReGen to HordeWorker; the sync
script's project list still pointed at the old name, so that consumer
silently stopped receiving shared-package syncs.
The page title box and the content below it (e.g. a search/filter
panel) were separated by 24px, and main had 32px/48px top/bottom
padding around that stack. Both now use a consistent 16px.
- Add a dedicated admin entry (with icon) to the header profile dropdown, visible only to admins
- Move all user-management settings from SettingsDialog/ProfileDialog into a new AdminDialog
- Export AdminDialog from the package index
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
One line was wrapped as if for an 88-column budget, violating the
100-column ruff line-length this package declares in its own
pyproject.toml - ruff format (which respects that nested config)
correctly flagged it as unformatted.
The brand <img> sized itself with width/height:100%, but it isn't
wrapped in a sized container like the fallback letter-mark is, and its
flex-item parent has no definite size for the percentage to resolve
against - so it rendered at whatever intrinsic size the favicon
happened to report instead of a consistent icon size.
OpenAI Codex v0.147.0
--------
workdir: /workspace/Personal/Web/shared
model: gpt-5.6-luna
provider: openai
approval: never
sandbox: read-only
reasoning effort: xhigh
reasoning summaries: none
session id: 019febcc-0ed6-7d22-87cb-e6ad13926ec6
--------
user
Write a concise git commit message for the following diff. Use the Conventional Commits style (e.g. "feat: ...", "fix: ..."), a summary line under 72 characters, optionally followed by a blank line and up to 3 short bullet points for notable details. Output only the commit message itself - no preamble, no explanation, no markdown fences.
diff --git a/scripts/sync-consumers.ps1 b/scripts/sync-consumers.ps1
index fd6591f..1895c21 100644
--- a/scripts/sync-consumers.ps1
+++ b/scripts/sync-consumers.ps1
@@ -103,7 +103,12 @@ function Convert-ToConsumerWebUiPackage {
$manifest = Get-Content -LiteralPath $PackagePath -Raw | ConvertFrom-Json
$manifest.files = @('src', 'README.md')
- $manifest.dependencies = [pscustomobject]@{}
+ if ($null -ne $manifest.dependencies) {
+ $designTokensDependency = $manifest.dependencies.PSObject.Properties['@gabriel20xx/design-tokens']
+ if ($null -ne $designTokensDependency) {
+ $manifest.dependencies.PSObject.Properties.Remove('@gabriel20xx/design-tokens')
+ }
+ }
$manifest.svelte = './src/index.ts'
$manifest.types = './src/index.ts'
@@ -133,6 +138,7 @@ function Convert-ToConsumerWebUiSources {
if (Test-Path -LiteralPath $stylesPath) {
$styles = Get-Content -LiteralPath $stylesPath -Raw
$styles = $styles.Replace("@import '@gabriel20xx/design-tokens/theme.css';", "@import '../../../design-tokens/theme.css';")
+ $styles = $styles.Replace('@import "@gabriel20xx/design-tokens/theme.css";', "@import '../../../design-tokens/theme.css';")
Write-Utf8NoBom -Path $stylesPath -Content $styles
}
warning: Codex could not find bubblewrap on PATH. Install bubblewrap with your OS package manager. See the sandbox prerequisites: https://developers.openai.com/codex/concepts/sandboxing#prerequisites. Codex will use the bundled bubblewrap in the meantime.
codex
fix: preserve consumer dependencies and rewrite token imports
- Remove only the design-tokens dependency
- Support single- and double-quoted CSS imports
tokens used
10,345
fix: preserve consumer dependencies and rewrite token imports
- Remove only the design-tokens dependency
- Support single- and double-quoted CSS imports
- Added @lucide/svelte as a dependency for icon support in various components.
- Updated AboutDialog, AppShell, AuthPage, Header, SettingsDialog, and styles for improved functionality and UI consistency.
- Introduced new props and state management for better user experience.
- Refactored CSS for cleaner styling and improved layout.
- Added TOTP support for two-factor authentication in the auth module.
- Introduced new types and interfaces for TOTP setup and token actions in the web UI.
- Created backend logic for generating and verifying TOTP secrets and tokens.
- Implemented user management features including role assignments and user CRUD operations.
- Enhanced UI components for managing users and TOTP settings.
- Added styles for optional labels and authentication reset links.
- Implemented reset code generation and validation for admin accounts.