11 Commits
Author SHA1 Message Date
alamin-br 1106a141fc feat(agent): carry identities in templates and import/export (#6807)
* feat(agent): skip Agents when importing with the feature flag off

* feat(agent): use an enabled model when an imported Agent's model isn't available

* feat(agent): keep an imported Agent's tool choices until an identity is picked

* feat(agent): tell the editor an imported Agent's tools turn on with an identity

* feat(agent): let template previews read an Agent's configuration

* feat(agent): show Agents in the template preview

* fix(agent): check the configuration permission when copying an Agent into a user template

* fix(agent): let signed out visitors preview an Agent in a template

* fix(agent): sync a template again once its Agents can be imported

* fix(agent): make an installed Agent's data-changing tools ask first

* fix(agent): list only MCP servers as connected apps in the template preview

* test(agent): cover blank imported models and duplicates without their identity

* fix(agent): keep pending tools when tools are saved without an identity

Tools stay off without an identity, so a full-config save from an API client
shouldn't throw away the choices an imported Agent is waiting to apply.

* fix(agent): fail a template install when every application is left out

With the agent builder flag off, a template holding only Agents installed
nothing yet reported success and counted the install.

* fix(agent): say why a template with nothing to install fails

"The content of the template was removed" sent people looking for a broken
template when the real cause is a feature turned off on this instance.

* docs(agent): say a user template copy refuses an Agent the owner can't read

* fix(agent): import Agents for users granted the flag

Feature flags can now be granted per user, so the import checks the user it's for instead of only the instance.

* fix(agent): sign up with a template of only Agents while their flag is off

The signup install raised TemplateHasNothingToInstall and returned a 500 without creating the account.

* fix(agent): refuse a user template when none of its applications can be copied

An owner without the Agent flag got an empty template that no one could install.

* fix(agent): refuse a user template that would leave out a selected Agent

A mixed selection lost its Agents without notice, and every update lost them again.

* fix(agent): skip templates with nothing to install in fill_workspaces

* feat(agent): create a scoped identity for each Agent a template installs

An installed Agent waits for an identity before its tools work. An admin with
roles can now get one per Agent at install, with access to only the template's
databases, instead of picking a workspace-wide identity by hand.

* fix(agent): name the applications a user template can't copy

The job failed with a generic message, and checking before the copy creates nothing.

* fix(agent): don't offer hidden applications to export or save as a template

Agents without their feature flag were listed, so Select all always failed.

* chore(agent): log the templates fill_workspaces skips

* fix(agent): filter pickers by type availability, not by permissions

Permissions can load after the update form preselects, which dropped builders and automations.

* fix(agent): keep the count check after a user template copy

* fix(agent): don't count unusable applications as template content

* feat(agent): offer a scoped identity per Agent when installing a template

Only shown where the installer has roles and may create identities and assign
their roles, so the default flow stays as it was everywhere else.

* fix(agent): skip the identity when a template installs no database

An identity scoped to nothing can't run the Agent's tools, so it's left waiting for one to be picked.

* fix(agent): audit binding an installed Agent to its new identity

The Agent gets the identity's access, so the bind is recorded like one made by hand.

* fix(agent): import Agents whatever the importer's feature flags

A user's early access must not change what an import saves. Agents are
now kept by template sync, template installs, user template copies and
workspace file imports, so someone who gets the flag later finds them
with their configuration. Also moves is_template_storage after the
existing ImportExportConfig fields, so positional arguments keep their
meaning.

* fix(agent): hide Agents in template previews and install toasts without the flag

The preview opens another application when the preferred one is a hidden
Agent, and the install toast links to the first application the user can
see.

* fix(agent): hide the identity option for a template without databases

The backend skips the identity when nothing would grant it access, so the option did nothing.

* feat(agent): let builders scope template identities and keep their roles

Builders install templates but can't create identities, so a narrower permission covers one with no workspace access and a role only on what they installed.
Templates now carry the application roles of an Agent's identity, so an install recreates them.

* feat(agent): offer template identities to builders for any application

The identity now gets a role on every application of the template, not only databases.

* fix(agent): recreate only builder or viewer roles from a template identity

An exported role list is now applied exactly, so an empty one no longer falls back to access on every application, and malformed entries are skipped.

* fix(agent): only skip role permissions when scoping template identities

Licence, subject and scope checks still run, an identity that would get no
role isn't created, and expected failures are logged as warnings.

* fix(agent): keep the identity roles of a user template's Agent

The template copy of an Agent waits for an identity, so its export dropped
the roles it was imported with and installs fell back to tool-based roles.

* fix(agent): hide unreadable roles of an Agent waiting for an identity

An export by a user leaves out the carried roles they can't read, like
those of a bound Agent's identity.

* fix(agent): create no install identities while the Agent builder is off

The installer can't see the Agents or manage their identities then.

* fix(agent): recreate exact template identity roles on install

Editor and commenter roles are kept, admin only when the installer may change roles.
Agent-only templates get an identity without access; names with links get none.
Identities are created through a scoped identity action; unexpected failures reach Sentry.

* fix(agent): show the full install identity option and what it gets

The option wraps instead of being cut, explains the identity's access, and shows for Agent-only templates.
The user template form no longer says the Agent identity roles aren't copied.

* fix(agent): never export more identity access than the template had

An application with table or view roles, or roles the exporter can't read, is left out, so the install gives no access to it instead of the tools' defaults.

* chore: renumber the install template job migration to 0144

Develop added 0142 and 0143 core migrations.

* feat(agent): export the identity of an Agent as an object with a key

Other application types can refer to the same identity later, and Agents
that ran as one identity share the new one an install creates.

* feat(agent): carry identities in templates and exports as workspace objects

Identities are described beside the applications and created before them, so
rows, view owners and filters that point at an identity keep pointing at one.
Creation needs no install option, since identities take no license seat.

* fix(agent): renumber the identity definition migration to 0023

* fix(agent): make the identity definition migration follow 0022

* feat(agent): let applications report and bind the identities they refer to

An identity keeps the role it had on its workspace instead of a role guessed
from its Agent's tools, and an application can refer to several identities.
Also carries team and per-application roles, and Agents with only triggers.
2026-11-24 19:14:28 +01:00
dimmur-brw d17c292916 fix: import workspace crashes on retry after failed backend import (#5141)
* Fix import workspace crashes on retry after failed backend import

* Review changes
2026-04-09 09:19:02 +02:00
dimmur-brw 8559165172 fix: harden workspace import ZIP extraction against malformed archives (#5112)
* Harden workspace import ZIP extraction against malformed archives

* Review feedback

* Review feedback v2

* Fix i18n
2026-04-07 17:32:11 +02:00
dimmur-brw 3a431d246c fix (nuxt): instance unavailable errors (#5064) 2026-04-07 07:18:29 +02:00
716d43a9a8 Nuxt 3 migration (#4342)
Update the nuxt3 version.

Co-authored-by: Jonathan Adeline <jonathan@baserow.io>
Co-authored-by: Bram Wiepjes <bramw@protonmail.com>
Co-authored-by: Cezary <cezary@baserow.io>
Co-authored-by: Tsering Paljor <tsering@baserow.io>
Co-authored-by: Przemyslaw Kukulski <przemyslaw+gh@baserow.io>
Co-authored-by: Bram <bram2w@users.noreply.github.com>
2026-01-22 10:27:19 +01:00
Przemyslaw Kukulski ffbb8c8863 Select the applications to import/export - import part 2025-08-22 09:56:47 +00:00
Davide Silvestri b84e9494e9 Fix import progress bar percentage 2025-03-10 09:38:02 +01:00
Przemyslaw Kukulski 37a99fbddd Creating snapshot triggers infinite loop for checking status update 2025-03-07 09:56:38 +00:00
Jonathan Adeline a58e6a3300 Vuelidate upgrade 2025-02-17 13:17:35 +00:00
Przemyslaw Kukulski 04f6109f8a Improve the export progress update 2024-12-27 16:23:15 +00:00
Przemyslaw Kukulski 5a156f64e3 Import and export workspace applications 2024-11-11 10:50:20 +00:00