* fix: gracefully handle remote HTTP URLs for MCP and cache production static assets
* test(mcp): add remote http mcp integration test and fix static etag normalization and fallback error
* fix(security): improve access control and storage security
* fix(security): set NODE_ENV in dockerfiles and sign local storage get urls with lru cache
* feat(storage): add team auto-archive assets policy and background job
* fix(storage): address code review feedback on lock safety, starvation, and permissions
* docs: update readme and expand archive storage documentation with auto-archive details
* feat(storage): log info message on auto-archive job start and finish with archived count
* style(storage): stack age threshold and grace period vertically with updated grace period description
* fix(storage): only log auto-archive info messages when candidate assets are found to process
* feat(storage): add archive storage support for assets
* fix(webui): show archive icon in front of file name in breadcrumb bar
* fix(webui): display archive icon in breadcrumbs when restoring
* refactor(transcode): simplify restore asset workflow to single while loop
* docs(configuration): add archive storage documentation and readme entries
* fix(webui): show archive icon in front of version names and prevent version card overflow
* fix(webui): fix overflow in manage versions dialog scroll area
* fix(webui): prevent manage versions dialog overflow on long file names
* docs(configuration): fix archive storage environment variables and defaults
* fix(storage): address code review findings for archive storage
* feat(file): optimize upload and transcoding status polling with batch api
* fix(webui): throttle search invalidation during upload and fix stuck 100% progress ring
* fix(webui): deduplicate upload search invalidation and stabilize batch polling
* fix(core): strip trailing slashes when normalizing auth and MCP resource URLs
* docs: document BETTER_AUTH_URL in README and quickstart guides
* docs: prioritize AWS_ENDPOINT_URL_S3 and clarify applicability to local storage
* docs: refine AWS_ENDPOINT_URL_S3 guidance for local storage deployments
* feat(mcp): add OAuth 2.1 support with dynamic client registration
* feat(api): alias bare oauth-authorization-server discovery endpoint
* fix(auth): preserve user session on OAuth sign-in redirect to consent
* feat(operations): move MCP to /mcp and add search, comment, metadata, version, and upload operations
- Serve the MCP server at /mcp instead of /api/mcp
- Add search_assets, copy_assets, get_folder_instructions, list_comments,
create_comment, resolve_comment, list_metadata_fields,
update_asset_metadata, create_version_stack, list_versions, and
remove_version on the agent, MCP, and CLI
- Add create_file and create_version (agent, MCP) with Creation Context
metadata, and complete_upload (MCP) for presigned two-step uploads
- Replace the native agent create_file/create_version tools with
Operation-backed ones
- Route the comment-complete, metadata, copy, version stack, and
AGENTS.md read REST endpoints through their Operations
* docs(readme): add built-in MCP server and CLI to features list
* feat(asset-read): expose read_asset on MCP and the CLI
Enable the mcp and cli surfaces for read_asset and get_asset_render.
- MCP: add per-Operation tool extensions. The read presenter attaches up
to 8 images (2 MB each) inline, lists image links, supports
inlineImages: false, and tells the model to call get_asset_render when
a render is pending. Storage keys are stripped from the result.
- CLI: generated commands can flatten object inputs into prefixed flags
(cli.flatten) and omit fields (cli.omit); add per-command extensions.
New `read` and `render` commands print image links, download them with
--out, and support --no-wait with a printed `render <taskId>` hint.
- Round frame timestamps in labels to 3 decimals.
* fix(mcp): make tool input schemas portable to single-type dialects
Nullable inputs were emitted as `type: ["number", "null"]` (or a `null`
anyOf branch), which clients that map tool schemas onto an OpenAPI-style
subset (e.g. Gemini function declarations) may reject.
- Make read_asset's startPage, endPage, and degree optional instead of
nullable.
- Move null handling into a shared dropNullOptionals helper in
@shumai/operations that also strips nulls inside nested config
objects. The agent uses it, and the MCP server applies it before the
SDK validates arguments, so models that send null keep working.
- Test that no Operation input schema (and no listed MCP tool) uses a
nullable type.
* feat(asset-download): share download_asset across agent, MCP and CLI
Turn the agent-only download_asset tool into an Operation on all three
surfaces.
- download_asset takes up to 50 file or version stack IDs and returns
presigned links. proxy (default true) picks the web preview when there
is one, as the agent always did; proxy: false returns the original.
Folders are rejected. Read is checked on every ID before anything runs.
- Agent: an extension saves the files into the .pi sandbox and keeps the
agent-only storage key mode (e.g. frames from read_asset). Agent tool
extensions gain description, parameterOverrides and intercept.
- CLI: `shumai-cli download <assetId...> [--out <dir>] [--original]`
streams files to disk without overwriting existing names.
- read_asset's unsupported-type error now names the right way to
download on each surface (download_asset, or `shumai-cli download`).
- Add the Download Asset toggle to agent settings.
Add a stateless Streamable HTTP MCP server at /api/mcp that exposes every
mcp-surface Operation with its input/output schemas and annotations, and
POST /api/ops/:name for the CLI. Both require an API token (session
cookies are rejected), run Operations as the token's user, honor demo
read-only mode, and record via mcp/cli/api in audit logs.
Also make list_projects toggleable in agent settings and document MCP
client setup.
Introduce @shumai/operations (pure definitions: Zod schemas, metadata,
CLI hints) and @shumai/core/src/operations (implementOperation and the
runOperation pipeline: validate, authorize, prepare, execute, validate
output, audit).
Migrate list_assets, create_folder, rename_asset, move_assets and
delete_asset to Operations, and add list_projects. The agent now builds
these tools from the registry, and the folder create/rename, file
rename and reparent routes call the same Operations.
Audit logs gain a nullable via column recording the surface. A lint
rule keeps the Prisma client out of Operation implementations.
New tokens are 32 random bytes with a shumai_ prefix and are returned
only once at creation. The list endpoint returns a 4-character hint
instead of the plaintext. A migration hashes existing tokens in place so
they keep authenticating.
* feat(dashboard): add workflow tasks monitoring and stopping to team dashboard
* fix(asset): retain workflow tasks on asset purge and mark active tasks as failed
* style(webui): add edge padding to audit logs and workflow tasks tables
* fix(workflow): atomically update asset status to failed when task is stopped
* fix(workflow): propagate cancellation errors, guard concurrent task stop, and localize UI
* docs(changelog): keep only added log for workflow tasks dashboard
* test(provider): mock upstream catalog api calls using saved fixtures
* feat(dashboard): show file name, size, and project name in workflow tasks list
* feat(embedding): update compose tiers, docs, and add regenerate-embeddings CLI
- Add Lite, Embedding, and Full Docker Compose configurations (and Aliyun mirrors)
- Set CONCURRENCY_AGENT to 1 for compose files containing embedding-server
- Update README and README_CN with compose options, recommended RAM, and semantic search links
- Add LiteRT-LM Embedding Server setup guide in docs/using-shumai/embedding-server.mdx
- Add shumai regenerate-embeddings CLI command and EmbeddingService to regenerate embeddings across teams
- Add comprehensive test coverage for EmbeddingService
* fix(docker): remove basic auth for turntable-renderer in full compose
* fix(agent): lock and disable embedding agent when ENABLE_EMBEDDING_AGENT is false
Ensure that when ENABLE_EMBEDDING_AGENT is set to 'false', existing embedding agents are automatically disabled on startup, marked as read-only, and blocked from manual API modifications or creations. Additionally guard background task creation and semantic search when the environment variable disables embedding agents.
* test(upload): remove flaky status assertion on workflow tasks
* feat(agent): support gemma-embedding-2-openai provider
Add support for local LiteRT-LM Gemma Embedding 2 provider with 768-dimensional vector embeddings, environment-configured read-only embedding agents, 16-frame uniform sampling for video chunks, and automatic WebP-to-JPEG conversion.
* refactor(agent): remove unused legacy generateEmbeddingActivity
* chore(agent): align sharp version to 0.35.4
* refactor(agent): rename embedding server env to GEMMA_EMBEDDING_OPENAI_BASE_URL
* refactor(agent,transcode): use native Bun.Archive for video chunk frames
* fix(transcode,agent): populate buffer entries in Bun.Archive and validate frame sizes
* feat(team): add integrations settings with turntable and gotenberg
* fix(upload): pass teamId to gotenberg availability check during upload preflight
* feat(transcode): add 3D asset support and turntable viewer
* perf(turntable): stream file via Bun.file and increase upload timeout
* feat(turntable): increase upload timeout to 15m to support 5GB uploads
* fix(webui): align 3D model viewer layout and full-width control bar with video viewer
* feat(webui): unify 3D viewer bottom bar and redesign cyclic ruler slider
- Place RulerSlider in single row with playback and zoom controls, centered with max 320px width
- Flank RulerSlider with minus and plus buttons to step angle by 15°
- Redesign RulerSlider with fixed center indicator and moving cyclic track with continuous 360° wrapping
- Render major ticks longer at 60° intervals without numeric text labels on track
- Display floating degree tooltip above center indicator only during dragging
* fix(webui): prevent RulerSlider from collapsing to 0px width in control bar
- Use flex layout with flex-1 on left and right clusters to preserve center cluster width
- Enforce min-w-[140px] and w-full on RulerSlider
- Fix tooltip positioning and remove outer overflow-hidden
* feat(webui): snap RulerSlider track directly to discrete 15° ticks during drag
* fix(webui): prevent ruler snap-back caused by floating point second truncation
- Use Math.round instead of Math.floor in secondToDegree to avoid 0.999996 dropping to previous frame
- Ensure final dragDegree is committed on pointer up
* fix(webui): fix arrow key frame rounding and duplicate event bubbling
- Use Math.round instead of Math.floor for keyboard arrow frame navigation in ModelViewer
- Add e.stopPropagation() to RulerSlider keyboard events to prevent duplicate bubbling to window listener
* feat(webui): redesign RulerSlider with encapsulated step buttons and capsule pill track
* feat(webui): make RulerSlider responsive on mobile and remove bottom bar reset button
* fix(webui): load 3d video directly without poster and invert drag rotation to counterclockwise
* fix(webui): fix 3d asset viewer frame seeking and drag jitter
* feat(transcode): show 3D asset poster preview immediately after render start
* fix(viewer): synchronize 3D turntable playback via frame callback to prevent skipped degrees
* fix(viewer): handle touchpad zoom gestures and prevent page zoom in 3D viewer
* fix(viewer): eliminate 3D model rotation jitter at 345 degrees
* fix(share): watermark 3D asset turntable video on share links
* fix(share): preserve video transcode resolution on watermarked share links
* fix(viewer): download original 3D model file instead of rendered turntable MP4
* feat(transcode): add multi-resolution strategy with configurable ladders and fallback
* feat(settings): show toast on settings update and add manual verification plan to PR template
* fix(webui): preserve video resolution and fix 480p label in download dropdowns
* fix(webui): display standard short-side resolution for vertical videos in seekbar
* fix(webui): fix portrait transcode resolution labeling and serialize settings toggles
* feat(transcode): add HDR output proxy support
* fix(transcode): auto-detect MoltenVK Vulkan ICD on macOS for libplacebo filters
* fix(transcode): split filter in generateSprite to ensure poster uses tone-mapped stream
* docs(changelog): update docs/changelog.mdx and ignore in prettier
* fix(transcode): respect video rotation metadata to preserve display aspect ratio
* fix(webui): render native video with hardware EDR acceleration instead of 2D canvas
* fix(webui): show HDR label on mobile video control bar
* fix(share): preserve hdr flag on watermarked video transcodes
* fix(webui): differentiate HDR download options in video player
* fix(transcode): handle Dolby Vision Profile 5 via standard HDR pipeline without libplacebo
* fix(transcode): prepend setparams filter to prevent zscale colorspace path error for DV P5
* refactor(transcode): simplify HDR proxies to always produce HDR without SDR setting
* feat(settings): add team appearance setting to hide agent features
Add an Appearance subpage under Team Settings allowing team owners to toggle appearance.hideAgent for the team. Return appearance.hideAgent in the user-metadata API, and conditionally hide the AGENTS.md button, agent chatbot sidebar, and chatbot trigger button in the WebUI.
* refactor(settings): add strongly typed TeamSettingsResponse to remove explicit any
Introduce TeamSettingsResponse and TeamAppearanceSettings in @shumai/dtos, type TeamService.getSettings and updateSettings, and eliminate the explicit any cast in AppearanceSettings.tsx.
* feat(premiere-uxp): use native Bun bundler and build script instead of Vite
* feat(premiere-uxp): switch FileListView to use Search API consistent with WebUI
* feat(premiere-uxp): add on-demand jpeg preview conversion for uxp compatibility
* feat(premiere-uxp): integrate spectrum web components (swc)
* fix(premiere-uxp): align swc packages with 0.37.0 and fix auth layout
* feat(premiere-uxp): use horizontal 2-column card view for projects and files
* style(premiere-uxp): enlarge file preview by 20% and add row padding
* fix(premiere-uxp): prevent card squishing and overflow with large item counts
* fix(premiere-uxp): change host in manifest to single object
* docs(premiere-uxp): add AGENTS.md with SWC preferences and UXP layout rules
* feat(premiere-uxp): integrate spectrum web components across plugin views
* fix(premiere-uxp): remove breadcrumb icons and use slash separator
* feat(premiere-uxp): add collapsible folder and file sections with infinite scroll
* feat(premiere-uxp): update file card layout with right column info and clean preview
* fix(premiere-uxp): use raw text for file card details and fix black icons
* style(premiere-uxp): use contain object-fit and black background for file card preview
* fix(premiere-uxp): refine header logo, sticky title bars, circular badges, and controls
* fix(premiere-uxp): replace stroke icons with spectrum workflow icons
* fix(premiere-uxp): switch icon buttons to swc sp-button with icon-only and slot=icon
* fix(premiere-uxp): vertically center endpoint text in header
* feat(premiere-uxp): add asset and proxy import support into Premiere Pro
- Implement context menu on file cards with left-click, right-click, and more action button triggers
- Support raw file import for non-video assets and video assets
- Support video proxy submenu listing ready transcode resolutions
- Add UXP native file picker save dialog and binary download orchestration
- Call Premiere Pro project.importFiles API to import downloaded assets into active project
- Add non-blocking toast notification banner for progress and status reporting
- Add unit tests for premiere host service and import orchestration
* fix(premiere-uxp): anchor import menu directly to file card using sp-action-menu
- Replace custom fixed-position ContextMenu with native SWC sp-action-menu
- Anchor menu directly to the triggered file card rather than the top-left window corner
- Support programmatic opening on file card click/contextmenu via imperative handle
- Support video submenu with Original and ready proxy options inside sp-action-menu
- Lazy load video proxies on menu open or hover
- Clean up obsolete fixed-position styles and unused backdrop overlays
* fix(premiere-uxp): align SWC packages to 0.37.0 and guard custom element registry
- Downgrade action-menu and menu SWC packages to 0.37.0 to match the rest of the workspace
- Eliminate duplicate icons-ui and sp-icon-chevron100 customElements.define calls
- Add polyfill guard to customElements.define to prevent duplicate registration errors during UXP reload
* fix(premiere-uxp): polyfill window.matchMedia for Adobe UXP
- Add window.matchMedia polyfill in polyfills.ts
- Satisfies SWC MatchMediaController used by ActionMenu and PickerBase in UXP
- Prevents TypeError when opening files page
* feat(premiere-uxp): replace context menu with card download action and video import dialog
* fix(premiere-uxp): resolve download url before save, pass null targetBin, and center download icon
* fix(premiere-uxp): resolve raw download url via download-url endpoint with fallback
* feat(premiere-uxp): use native folder picker and auto-increment conflict suffixes
* feat(premiere-uxp): add sequence linking, comment-marker sync, and navigation tabs
- Add sequence-to-asset linking with persistent project metadata storage
- Support one-way comment-to-marker timeline synchronization
- Add two-tab navigation (Sequences and Browse) using Spectrum buttons
- Add LinkSequenceDialog, SequencesView, and autoSyncService background engine
- Enforce Spectrum Workflow Icons and UXP layout rules
* feat(premiere-uxp): refine UI layouts, card interactions, and search box activation
* fix(premiere-uxp): set compact fixed width for file list search box
* fix(premiere-uxp): ensure search box click activation across full width in UXP
* fix(premiere-uxp): revert search box hacks and restore simple default sp-search layout
* feat(premiere-uxp): sync non-timestamped comments as markers at time 0
* feat(premiere-uxp): change link icon to unlink when asset is linked in file card
* fix(premiere-uxp): sync linked sequences between host project and browse view
* feat(premiere-uxp): remove synced markers on sequence unlink matching Frame.io
* fix(premiere-uxp): ensure reliable marker GUID capture, normalization, and fallback on unlink
* fix(premiere-uxp): use official Shumai logo for plugin manifest icons
* fix(premiere-uxp): use official PNG icons for manifest and plugin entrypoints
* refactor(premiere-uxp): use single 114x114 icon for plugin and panel
* feat(premiere-uxp): show file version in file list page file card
* build(premiere-uxp): check in built ccx package and update packaging configuration
* fix(premiere-uxp): address code review findings for media conversion, marker sync, and link scoping
- Reset hasJpegCover on project cover update and hasJpegPreview on asset media transcode
- Only advance synced comment metadata after confirmed marker transaction
- Normalize GUID keys and lookups in AutoSyncService map
- Restrict cached sequence link lookups to project-specific keys and prevent cross-project leakage on empty sequences
- Update built CCX distribution package
* feat(comment): add emoji reaction support for comments
* fix(webui): adjust emoji picker trigger icon size to match mark-done icon
* fix(webui): prevent search icon and placeholder overlap in emoji picker
* fix(webui): use normal text color for reaction count
* feat(db): limit comment reaction code column to VarChar(32)
* feat(core): export comments to FCP, Premiere, Media Composer, and Resolve
Add backend support to export video comments matching Frame.io export capabilities:
- DaVinci Resolve (.edl): CMX 3600 EDL with ResolveColorPurple markers and reply threading
- Avid Media Composer (.xml): OMFI StreamItems XML with TC1 / V1 track allocation and sequential frame positioning
- Adobe Premiere Pro (.xml): FCP7 XML sequence with dual marker placement on sequence and generatoritem
- Final Cut Pro 10.4.0+ (.fiojson): Flattened JSON schema with frame, timestamp, and annotation serialization
Includes DTO schema validation, AssetService export method, API route (GET /files/:fileId/comments/export), SMPTE drop-frame timecode calculations, unit tests, golden master tests, service integration tests, and API endpoint tests.
* test(core): move comments export test fixtures to test directory
* fix(core): escape asset name in Premiere XML, align Resolve FCM, and support CJK
- Escape XML special characters in <name> tag for Premiere Pro XML sequence
- Harmonize Resolve EDL FCM header and emitted timecodes using getEffectiveDropFrame
- Use RFC 5987 / RFC 6266 buildContentDisposition for CJK filenames in download headers
- Add test coverage for CJK filenames, comments, and author names across all 4 NLE formats
* fix(core): implement timezone-aware comment exports and sanitize resolve edl
* fix(s3): stream downloadToFile and putObject to prevent OOM on large files
* fix(agent): preserve file MIME detection on download_asset and align local download directory creation
* feat(agent): add built-in image and video generation tools and settings
* fix(settings): refine media generation layout and expose media tools in agent and quota forms
* feat(media-generation): add alibaba, bytedance, minimax, prodia, and azure providers
* feat(agent): support s3 key references for media generation and s3KeyOnly in read_asset
* feat(asset): record and display agent provenance on assets and audit logs
* style(webui): apply 30% translucent frosted glass background to bot badges
* style(webui): match bot icon badge style to thumbnail media overlay (bg-black/60 text-white)
* style(webui): use "AI" text badge with pdf overlay style instead of bot icon
* feat(provider): vendor and adapt pi model generator
- Vendor generate-models.ts, model-data.ts, and models-dev-reasoning-options.ts from @earendil-works/pi tag v0.82.1
- Adapt imports to use @earendil-works/pi-ai and expose generateModels programmatic function
- Add compare.test.ts to verify vendored generator against original built-in catalog
- Add packages/core/src/provider/generator to eslint ignores
* feat(provider): add provider and model sync api and ui
* feat(webui): add checkbox for existing providers and clean dialog description
* feat(webui): add expand all and collapse all to sync providers dialog
* refactor(provider): remove compare.test.ts and cli overhead from generate-models
* fix(provider): add 30s timeout and strict error handling to sync catalog fetching
* fix(e2e): eliminate drag-and-drop race condition on webkit
Allow requestAnimationFrame collision updates to settle in dragCard helper before releasing pointer, and scope fileCard locator via data-testid to avoid matching sidebar tree items.
* feat(provider): optimize provider and model configuration management
* style(provider): use default tabs variant in provider settings dialog
* style(provider): make tabs list full width
* feat(provider): make model card row clickable and remove pencil edit icon
* feat(settings): persist active settings tab in url hash
* feat(agent): add search box and alphabetical sorting for provider and model selectors
* refactor(providers): remove frontend pagination and display all models in scrollable list
* fix(providers): address code review findings for model editing, i18n, and api protocol propagation
* feat(chat): support markups, attachments, and timestamps in agent 1-to-1 chat
* feat(chat): improve message card layout with inline badges and integrated assets
* fix(chat): enable image attachment thumbnails in 1-to-1 chat cards
* fix(chat): address code review feedback on input state, mentions, i18n, and session deletion
* fix(chat): replace ring with border color on selected message card
* feat(transcode): add hardware-accelerated video transcoding support
* feat(transcode): use encoder quality modes and source-capped maxrate for video transcode
* fix(transcode): scale max bitrate for downsampled preview framerates
* fix(transcode): propagate videoBitRate in getMediaInfoActivity and update auto description
* feat(project): add recent viewed files section to project folder tree
* feat(webui): disable toolbar buttons and context menu in recents page
* test(core): optimize recents cap test execution time
* feat(webui): show hint text in recents page top toolbar
* feat(webui): rename recents section to Recently Viewed
* refactor(core): consolidate recents methods into AssetService
* fix(api): forward pagination parameters in folder children endpoint (#349)
* fix(project-recents): scope views and disable recents mutations
* fix(api): allow recent views in demo mode
* fix(api): limit demo recent view exception to post
* feat(kanban): allow editors to change task status and default reporter to creator
* fix(kanban): hide create task button for reviewers and eliminate duplicate error toast
* feat(kanban): implement AI-native kanban database models, services, and REST APIs
* feat(webui): implement team kanban board and task management
* style(webui): increase kanban dialog widths and form container
* fix(webui): ensure kanban dialogs override sm:max-w-lg base class
* style(webui): set edit task dialog max width to 5xl
* chore: untrack kanban plan markdown files
* feat(webui): update kanban page layout to 2 columns and refine task activity UI
* fix(webui): constrain kanban column and board heights for vertical scrolling
* feat(kanban): unify task status transition into updateTask API and allow unconstrained human task transitions
* fix(webui): add optimistic updates to kanban drag-and-drop to eliminate flash
* refactor(webui): remove client-side search box from kanban header
* feat(kanban): redesign task dialog comments area and add attachment support
* refactor(webui): remove top status action bar from task info dialog
* fix(webui): narrow query cache predicate and add defensive guards for kanban drag optimistic update
* feat(kanban): add drag-and-drop task reordering with fractional indexing (#331)
* feat(kanban): add drag-and-drop task reordering with fractional indexing
* fix(kanban): improve card drop zones, snap indicators, and column highlight
* fix(kanban): enable card droppables only during active drag
* fix(kanban): refine hover styles and drop indicators for column boundaries
* fix(kanban): unify bottom drop indicator and fix top indicator clipping
* fix(kanban): ensure full column highlight and full coverage drop target
* minor change
* feat(kanban): allow agent tasks free drag-and-drop and enforce status change permissions (#332)
* refactor(kanban): rename task_type_agentic translation keys to task_type_agent
* feat(kanban): refactor task type enum to isAgentTask boolean (#333)
* refactor(kanban): remove phase 2 agent execution logic and streamline phase 1 kanban
* feat(kanban): add notifications and audit logging for kanban (#334)
* feat(kanban): redesign config area layout and add parent tasks multi-selector (#335)
* feat(webui): redesign kanban task dialog config area
* feat(kanban): simplify task dependencies with parent tasks multi-selector
* refactor(kanban): remove unused links routes and legacy dependency methods
* feat(kanban): connect assets and kanban tasks with many-to-many relationship (#336)
* feat(kanban): connect assets and kanban tasks with many-to-many relationship
* feat(kanban): improve asset picker layout, infinite scrolling, and breadcrumb icon styling
* fix(kanban): ensure asset picker scrollarea is scrollable with min-h-0 and shrink-0 flex styling
* fix(kanban): hide recently deleted in folder tree picker and adjust header padding
* fix(kanban): use lucide files icon instead of paperclip for linked assets
* feat(kanban): improve task deletion, goal sidebar interaction, and card styling (#337)
* feat(kanban): improve task deletion, goal sidebar interaction, and card styling
* feat(kanban): move agent task badge after priority and update to orange style
* feat(kanban): add status Compare-And-Swap (CAS) to prevent drag-and-drop race conditions (#338)
* feat(kanban): add status Compare-And-Swap (CAS) to prevent drag-and-drop race conditions
* style(kanban): rotate kanban icon 180 degrees in sidebar and top nav
* style(kanban): remove rotate-180 from SquareKanban icons
* feat(kanban): add unassigned goal record and fix all tasks count (#339)
* feat(kanban): add unassigned goal record and fix all tasks count
* feat(kanban): toggle task count with three-dot action button on goal card hover
* fix(ci): pin bun version to 1.3.14 across CI and Docker (#340)
* fix(webui): truncate goal name to max 2 lines in kanban sidebar (#341)
* feat(quota): add database-backed resource quota system
* feat(webui): add resource quota management in team settings (#319)
* feat(webui): add resource quota settings in team management
* refactor(webui): update quotas list to full row layout and restrict skill/mcp to select list
* feat(quota): refactor quota system to 2-level rules and records
* fix(webui): fix overflow and scroll area in quota usage records dialog
* fix(webui): ensure quota records scroll area has explicit max height
* feat(webui): improve quota cards interaction and restrict editable fields in edit mode
* fix(quota): serialize initial records, validate merged updates, and reset on dimension changes (#320)
* feat(quota): replace network quota with agent tools quota (#321)
* feat(webui): show remaining time until next refresh in quota usage records
* fix(webui): rename bash quota resource to Agent Bash Calls
* refactor(quota): remove unused reserved field from quota records
* refactor(quota): remove quota rule cache (#322)
* feat(authz): enforce project-aware roles for agent/skill/mcp permissions
Introduce a shared resolveEffectiveRole helper that mirrors AuthzService
precedence rules (projectMember.role override -> team role for team-scoped
members -> restricted), and route all agent/skill/mcp runtime permission
checks through it. Previously these checks used the raw teamMember.role,
which let project-only members execute team-level agents/skills/MCP tools
and ignored per-project role overrides.
Changes:
- authz: add resolveEffectiveRole(teamId, projectId, userId, db) and
refactor hasPermission to use it (behavior-preserving)
- chat/asset/agent-activity: gate agent usage by the effective project role
- read_skill: enforce skill permission via effective role (projectId
threaded from the agent session)
- mcp-service: checkPermission and buildAgentTools filter by effective
role; un-permitted servers' tools are no longer advertised to the model
- agent activity: only advertise skills the user's effective role permits
- listProjectMembers: filter included agent bots by the requester's
effective project role
- new GET /projects/:projectId/chat-agents API returning chat agents
scoped to the project and the user's effective role; WebUI chat selector
now uses it (settings keeps the team-level API)
- tests: effective-role resolver, chat/mention/MCP/skill project-role
matrices, listProjectChatAgents, listProjectMembers filter, API route
* fix(agent): forward projectId to getAgentChatContextActivity in agentChat workflow
The agentChat workflow called getAgentChatContextActivity without passing
projectId from the task payload, so project-scoped members (scope:
'project') resolved a null effective role in the activity and were denied
with 'Insufficient role to use agent' even though the chat selector and
chat.ts both authorized them. Forward payload.projectId so the activity
enforces the user's effective project role, and assert the forwarding in
the workflow unit test (fails without the fix).
* feat(agent): add permission controls for chat agents
* refactor(agent): extract shared agent permission helpers
Consolidate the duplicated role-hierarchy logic into
packages/core/src/agent/permissions.ts:
- getRoleLevel(): numeric level for a team role (fail closed at 0)
- getAgentRequiredLevel(): required level for an agent permission
(defaults to reviewer/1)
- getAllowedAgentRoles(): inclusive role set for filtering
The typed Record over TeamMemberRole makes the mapping exhaustive,
so adding a new role fails compilation until all sites are updated.
Used by ChatService.startOrContinueChat, AssetService comment
mentions, getAgentChatContextActivity, AgentService.listAgents, and
TeamService.getTeamMembers, replacing four inline copies of the
hierarchy and the allowed-roles conditionals.
Also fix the API permission-denial test to mock HTTPException(403)
and assert a 403 response instead of a generic Error/500, matching
real authzService behavior.
* test(agent): fix flaky comment DAG tests by spacing ULID id generation
ULID ids have 1ms timestamp granularity; back-to-back comment creates
frequently land in the same millisecond, in which case Prisma ULIDs sort
by their random suffix instead of creation order. The DAG spine in
initializeAgentSessionActivity chains top-level comments by id, so a
shuffled order produces paths that omit preceding comments, making the
path-to-root assertions flaky (~80% of full-file runs locally).
Add a 2ms sleep between consecutive comment creates in the affected
tests, guaranteeing strictly increasing ULID timestamps. A 2ms delay is
sufficient because the next create always fires at least 2ms after the
previous ULID was generated. Production is unaffected: real comments
arrive seconds apart via separate requests.
* feat(version-stack): add manage versions dialog and version removal
* fix(webui): remove ellipsis and add pointer cursor to manage versions button
* fix(version-stack): handle symlink deduplication and name sync for share links
* refactor(version-stack): extract shared symlink dedup helper
The 'repoint first symlink per share folder, delete duplicates with
fileCount decrement' logic was triplicated across createVersionStack,
reparentAssets, and reparentFileToFile with subtle variations. Extract
it into dedupeSymlinksToTarget() in packages/core/src/asset/symlink.ts
and call it from all three sites (behavior unchanged), with a dedicated
test suite covering the edge cases.