Add external flag for apps without owner

Expose an `external` property in AppSummary (toAppSummary in RecommendedAppsService.ts) to mark apps that are not owned by a Puter user. The flag is set when `owner_user_id` is null or an empty string, allowing clients to identify origin-bootstrapped/external apps.
This commit is contained in:
jelveh
2026-07-06 17:49:23 -07:00
parent dcc8c1aee4
commit 2e0762b33f
@@ -74,5 +74,8 @@ function toAppSummary(
godmode: Boolean(app.godmode),
maximize_on_start: Boolean(app.maximize_on_start),
index_url: app.index_url,
// An app with no owner isn't owned by a Puter user — it's an
// "external" (origin-bootstrapped) app.
external: app.owner_user_id == null || app.owner_user_id === '',
};
}