@stigmer/server-slim 3.31.0 → 3.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/console/404.html +1 -1
- package/console/__next.__PAGE__.txt +2 -2
- package/console/__next._full.txt +14 -14
- package/console/__next._head.txt +4 -4
- package/console/__next._index.txt +9 -9
- package/console/__next._tree.txt +1 -1
- package/console/_next/static/chunks/09w-pp.814~ta.js +1 -0
- package/console/_next/static/chunks/0c38on~9yer5n.js +1 -0
- package/console/_next/static/chunks/0cw8y9mt-2g7_.js +1 -0
- package/console/_next/static/chunks/0d9piwgvkapr0.js +1 -0
- package/console/_next/static/chunks/0e7_im9k5~i9c.js +1 -0
- package/console/_next/static/chunks/{107k.7sfwlnvt.js → 0f9xh0e8xu4u8.js} +1 -1
- package/console/_next/static/chunks/0q~aca1203kmp.js +1 -0
- package/console/_next/static/chunks/{0ratu1o_8q6ei.js → 179qu67bn5k90.js} +1 -1
- package/console/_not-found/__next._full.txt +14 -14
- package/console/_not-found/__next._head.txt +4 -4
- package/console/_not-found/__next._index.txt +9 -9
- package/console/_not-found/__next._not-found.__PAGE__.txt +3 -3
- package/console/_not-found/__next._not-found.txt +3 -3
- package/console/_not-found/__next._tree.txt +1 -1
- package/console/_not-found.html +1 -1
- package/console/_not-found.txt +14 -14
- package/console/auth/callback/__next._full.txt +16 -16
- package/console/auth/callback/__next._head.txt +4 -4
- package/console/auth/callback/__next._index.txt +9 -9
- package/console/auth/callback/__next._tree.txt +1 -1
- package/console/auth/callback/__next.auth.callback.__PAGE__.txt +4 -4
- package/console/auth/callback/__next.auth.callback.txt +3 -3
- package/console/auth/callback/__next.auth.txt +3 -3
- package/console/auth/callback.html +1 -1
- package/console/auth/callback.txt +16 -16
- package/console/auth/github/callback/__next._full.txt +16 -16
- package/console/auth/github/callback/__next._head.txt +4 -4
- package/console/auth/github/callback/__next._index.txt +9 -9
- package/console/auth/github/callback/__next._tree.txt +1 -1
- package/console/auth/github/callback/__next.auth.github.callback.__PAGE__.txt +4 -4
- package/console/auth/github/callback/__next.auth.github.callback.txt +3 -3
- package/console/auth/github/callback/__next.auth.github.txt +3 -3
- package/console/auth/github/callback/__next.auth.txt +3 -3
- package/console/auth/github/callback.html +1 -1
- package/console/auth/github/callback.txt +16 -16
- package/console/auth/oauth/callback/__next._full.txt +16 -16
- package/console/auth/oauth/callback/__next._head.txt +4 -4
- package/console/auth/oauth/callback/__next._index.txt +9 -9
- package/console/auth/oauth/callback/__next._tree.txt +1 -1
- package/console/auth/oauth/callback/__next.auth.oauth.callback.__PAGE__.txt +4 -4
- package/console/auth/oauth/callback/__next.auth.oauth.callback.txt +3 -3
- package/console/auth/oauth/callback/__next.auth.oauth.txt +3 -3
- package/console/auth/oauth/callback/__next.auth.txt +3 -3
- package/console/auth/oauth/callback.html +1 -1
- package/console/auth/oauth/callback.txt +16 -16
- package/console/chat/__placeholder__/__placeholder__/__next._full.txt +15 -15
- package/console/chat/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/chat/__placeholder__/__placeholder__/__next._index.txt +9 -9
- package/console/chat/__placeholder__/__placeholder__/__next._tree.txt +1 -1
- package/console/chat/__placeholder__/__placeholder__/__next.chat.$d$org.$d$slug.__PAGE__.txt +3 -3
- package/console/chat/__placeholder__/__placeholder__/__next.chat.$d$org.$d$slug.txt +3 -3
- package/console/chat/__placeholder__/__placeholder__/__next.chat.$d$org.txt +3 -3
- package/console/chat/__placeholder__/__placeholder__/__next.chat.txt +3 -3
- package/console/chat/__placeholder__/__placeholder__.html +1 -1
- package/console/chat/__placeholder__/__placeholder__.txt +15 -15
- package/console/conversations/__next._full.txt +15 -15
- package/console/conversations/__next._head.txt +4 -4
- package/console/conversations/__next._index.txt +9 -9
- package/console/conversations/__next._tree.txt +1 -1
- package/console/conversations/__next.conversations.__PAGE__.txt +3 -3
- package/console/conversations/__next.conversations.txt +3 -3
- package/console/conversations/__placeholder__/__placeholder__/__next._full.txt +15 -15
- package/console/conversations/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/conversations/__placeholder__/__placeholder__/__next._index.txt +9 -9
- package/console/conversations/__placeholder__/__placeholder__/__next._tree.txt +1 -1
- package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.$d$key.__PAGE__.txt +3 -3
- package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.$d$key.txt +3 -3
- package/console/conversations/__placeholder__/__placeholder__/__next.conversations.$d$channelId.txt +3 -3
- package/console/conversations/__placeholder__/__placeholder__/__next.conversations.txt +3 -3
- package/console/conversations/__placeholder__/__placeholder__.html +1 -1
- package/console/conversations/__placeholder__/__placeholder__.txt +15 -15
- package/console/conversations.html +1 -1
- package/console/conversations.txt +15 -15
- package/console/dashboard/__next._full.txt +15 -15
- package/console/dashboard/__next._head.txt +4 -4
- package/console/dashboard/__next._index.txt +9 -9
- package/console/dashboard/__next._tree.txt +1 -1
- package/console/dashboard/__next.dashboard.__PAGE__.txt +3 -3
- package/console/dashboard/__next.dashboard.txt +3 -3
- package/console/dashboard.html +1 -1
- package/console/dashboard.txt +15 -15
- package/console/executions/__placeholder__/__next._full.txt +14 -14
- package/console/executions/__placeholder__/__next._head.txt +4 -4
- package/console/executions/__placeholder__/__next._index.txt +9 -9
- package/console/executions/__placeholder__/__next._tree.txt +1 -1
- package/console/executions/__placeholder__/__next.executions.$d$id.__PAGE__.txt +2 -2
- package/console/executions/__placeholder__/__next.executions.$d$id.txt +3 -3
- package/console/executions/__placeholder__/__next.executions.txt +3 -3
- package/console/executions/__placeholder__.html +1 -1
- package/console/executions/__placeholder__.txt +14 -14
- package/console/index.html +1 -1
- package/console/index.txt +14 -14
- package/console/invite/__placeholder__/__next._full.txt +15 -15
- package/console/invite/__placeholder__/__next._head.txt +4 -4
- package/console/invite/__placeholder__/__next._index.txt +9 -9
- package/console/invite/__placeholder__/__next._tree.txt +1 -1
- package/console/invite/__placeholder__/__next.invite.$d$token.__PAGE__.txt +3 -3
- package/console/invite/__placeholder__/__next.invite.$d$token.txt +3 -3
- package/console/invite/__placeholder__/__next.invite.txt +3 -3
- package/console/invite/__placeholder__.html +1 -1
- package/console/invite/__placeholder__.txt +15 -15
- package/console/library/__next._full.txt +17 -17
- package/console/library/__next._head.txt +4 -4
- package/console/library/__next._index.txt +9 -9
- package/console/library/__next._tree.txt +1 -1
- package/console/library/__next.library.__PAGE__.txt +3 -3
- package/console/library/__next.library.txt +5 -5
- package/console/library/agents/__next._full.txt +17 -17
- package/console/library/agents/__next._head.txt +4 -4
- package/console/library/agents/__next._index.txt +9 -9
- package/console/library/agents/__next._tree.txt +1 -1
- package/console/library/agents/__next.library.agents.__PAGE__.txt +3 -3
- package/console/library/agents/__next.library.agents.txt +3 -3
- package/console/library/agents/__next.library.txt +5 -5
- package/console/library/agents/__placeholder__/__placeholder__/__next._full.txt +17 -17
- package/console/library/agents/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/library/agents/__placeholder__/__placeholder__/__next._index.txt +9 -9
- package/console/library/agents/__placeholder__/__placeholder__/__next._tree.txt +1 -1
- package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.$d$slug.__PAGE__.txt +3 -3
- package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.$d$slug.txt +3 -3
- package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.$d$org.txt +3 -3
- package/console/library/agents/__placeholder__/__placeholder__/__next.library.agents.txt +3 -3
- package/console/library/agents/__placeholder__/__placeholder__/__next.library.txt +5 -5
- package/console/library/agents/__placeholder__/__placeholder__.html +1 -1
- package/console/library/agents/__placeholder__/__placeholder__.txt +17 -17
- package/console/library/agents/new/__next._full.txt +18 -18
- package/console/library/agents/new/__next._head.txt +4 -4
- package/console/library/agents/new/__next._index.txt +9 -9
- package/console/library/agents/new/__next._tree.txt +1 -1
- package/console/library/agents/new/__next.library.agents.new.__PAGE__.txt +4 -4
- package/console/library/agents/new/__next.library.agents.new.txt +3 -3
- package/console/library/agents/new/__next.library.agents.txt +3 -3
- package/console/library/agents/new/__next.library.txt +5 -5
- package/console/library/agents/new.html +1 -1
- package/console/library/agents/new.txt +18 -18
- package/console/library/agents.html +1 -1
- package/console/library/agents.txt +17 -17
- package/console/library/mcp-servers/__next._full.txt +17 -17
- package/console/library/mcp-servers/__next._head.txt +4 -4
- package/console/library/mcp-servers/__next._index.txt +9 -9
- package/console/library/mcp-servers/__next._tree.txt +1 -1
- package/console/library/mcp-servers/__next.library.mcp-servers.__PAGE__.txt +3 -3
- package/console/library/mcp-servers/__next.library.mcp-servers.txt +3 -3
- package/console/library/mcp-servers/__next.library.txt +5 -5
- package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._full.txt +17 -17
- package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._index.txt +9 -9
- package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._tree.txt +1 -1
- package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.$d$org.$d$slug.__PAGE__.txt +3 -3
- package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.$d$org.$d$slug.txt +3 -3
- package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.$d$org.txt +3 -3
- package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.mcp-servers.txt +3 -3
- package/console/library/mcp-servers/__placeholder__/__placeholder__/__next.library.txt +5 -5
- package/console/library/mcp-servers/__placeholder__/__placeholder__.html +1 -1
- package/console/library/mcp-servers/__placeholder__/__placeholder__.txt +17 -17
- package/console/library/mcp-servers/new/__next._full.txt +18 -18
- package/console/library/mcp-servers/new/__next._head.txt +4 -4
- package/console/library/mcp-servers/new/__next._index.txt +9 -9
- package/console/library/mcp-servers/new/__next._tree.txt +1 -1
- package/console/library/mcp-servers/new/__next.library.mcp-servers.new.__PAGE__.txt +4 -4
- package/console/library/mcp-servers/new/__next.library.mcp-servers.new.txt +3 -3
- package/console/library/mcp-servers/new/__next.library.mcp-servers.txt +3 -3
- package/console/library/mcp-servers/new/__next.library.txt +5 -5
- package/console/library/mcp-servers/new.html +1 -1
- package/console/library/mcp-servers/new.txt +18 -18
- package/console/library/mcp-servers.html +1 -1
- package/console/library/mcp-servers.txt +17 -17
- package/console/library/plugins/__next._full.txt +17 -17
- package/console/library/plugins/__next._head.txt +4 -4
- package/console/library/plugins/__next._index.txt +9 -9
- package/console/library/plugins/__next._tree.txt +1 -1
- package/console/library/plugins/__next.library.plugins.__PAGE__.txt +3 -3
- package/console/library/plugins/__next.library.plugins.txt +3 -3
- package/console/library/plugins/__next.library.txt +5 -5
- package/console/library/plugins/__placeholder__/__placeholder__/__next._full.txt +17 -17
- package/console/library/plugins/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/library/plugins/__placeholder__/__placeholder__/__next._index.txt +9 -9
- package/console/library/plugins/__placeholder__/__placeholder__/__next._tree.txt +1 -1
- package/console/library/plugins/__placeholder__/__placeholder__/__next.library.plugins.$d$org.$d$slug.__PAGE__.txt +3 -3
- package/console/library/plugins/__placeholder__/__placeholder__/__next.library.plugins.$d$org.$d$slug.txt +3 -3
- package/console/library/plugins/__placeholder__/__placeholder__/__next.library.plugins.$d$org.txt +3 -3
- package/console/library/plugins/__placeholder__/__placeholder__/__next.library.plugins.txt +3 -3
- package/console/library/plugins/__placeholder__/__placeholder__/__next.library.txt +5 -5
- package/console/library/plugins/__placeholder__/__placeholder__.html +1 -1
- package/console/library/plugins/__placeholder__/__placeholder__.txt +17 -17
- package/console/library/plugins/upload/__next._full.txt +18 -18
- package/console/library/plugins/upload/__next._head.txt +4 -4
- package/console/library/plugins/upload/__next._index.txt +9 -9
- package/console/library/plugins/upload/__next._tree.txt +1 -1
- package/console/library/plugins/upload/__next.library.plugins.txt +3 -3
- package/console/library/plugins/upload/__next.library.plugins.upload.__PAGE__.txt +4 -4
- package/console/library/plugins/upload/__next.library.plugins.upload.txt +3 -3
- package/console/library/plugins/upload/__next.library.txt +5 -5
- package/console/library/plugins/upload.html +1 -1
- package/console/library/plugins/upload.txt +18 -18
- package/console/library/plugins.html +1 -1
- package/console/library/plugins.txt +17 -17
- package/console/library/schedules/__next._full.txt +17 -17
- package/console/library/schedules/__next._head.txt +4 -4
- package/console/library/schedules/__next._index.txt +9 -9
- package/console/library/schedules/__next._tree.txt +1 -1
- package/console/library/schedules/__next.library.schedules.__PAGE__.txt +3 -3
- package/console/library/schedules/__next.library.schedules.txt +3 -3
- package/console/library/schedules/__next.library.txt +5 -5
- package/console/library/schedules/__placeholder__/__placeholder__/__next._full.txt +17 -17
- package/console/library/schedules/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/library/schedules/__placeholder__/__placeholder__/__next._index.txt +9 -9
- package/console/library/schedules/__placeholder__/__placeholder__/__next._tree.txt +1 -1
- package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.$d$org.$d$slug.__PAGE__.txt +3 -3
- package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.$d$org.$d$slug.txt +3 -3
- package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.$d$org.txt +3 -3
- package/console/library/schedules/__placeholder__/__placeholder__/__next.library.schedules.txt +3 -3
- package/console/library/schedules/__placeholder__/__placeholder__/__next.library.txt +5 -5
- package/console/library/schedules/__placeholder__/__placeholder__.html +1 -1
- package/console/library/schedules/__placeholder__/__placeholder__.txt +17 -17
- package/console/library/schedules/new/__next._full.txt +18 -18
- package/console/library/schedules/new/__next._head.txt +4 -4
- package/console/library/schedules/new/__next._index.txt +9 -9
- package/console/library/schedules/new/__next._tree.txt +1 -1
- package/console/library/schedules/new/__next.library.schedules.new.__PAGE__.txt +4 -4
- package/console/library/schedules/new/__next.library.schedules.new.txt +3 -3
- package/console/library/schedules/new/__next.library.schedules.txt +3 -3
- package/console/library/schedules/new/__next.library.txt +5 -5
- package/console/library/schedules/new.html +1 -1
- package/console/library/schedules/new.txt +18 -18
- package/console/library/schedules.html +1 -1
- package/console/library/schedules.txt +17 -17
- package/console/library/skills/__next._full.txt +17 -17
- package/console/library/skills/__next._head.txt +4 -4
- package/console/library/skills/__next._index.txt +9 -9
- package/console/library/skills/__next._tree.txt +1 -1
- package/console/library/skills/__next.library.skills.__PAGE__.txt +3 -3
- package/console/library/skills/__next.library.skills.txt +3 -3
- package/console/library/skills/__next.library.txt +5 -5
- package/console/library/skills/__placeholder__/__placeholder__/__next._full.txt +17 -17
- package/console/library/skills/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/library/skills/__placeholder__/__placeholder__/__next._index.txt +9 -9
- package/console/library/skills/__placeholder__/__placeholder__/__next._tree.txt +1 -1
- package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.$d$slug.__PAGE__.txt +3 -3
- package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.$d$slug.txt +3 -3
- package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.$d$org.txt +3 -3
- package/console/library/skills/__placeholder__/__placeholder__/__next.library.skills.txt +3 -3
- package/console/library/skills/__placeholder__/__placeholder__/__next.library.txt +5 -5
- package/console/library/skills/__placeholder__/__placeholder__.html +1 -1
- package/console/library/skills/__placeholder__/__placeholder__.txt +17 -17
- package/console/library/skills/new/__next._full.txt +18 -18
- package/console/library/skills/new/__next._head.txt +4 -4
- package/console/library/skills/new/__next._index.txt +9 -9
- package/console/library/skills/new/__next._tree.txt +1 -1
- package/console/library/skills/new/__next.library.skills.new.__PAGE__.txt +4 -4
- package/console/library/skills/new/__next.library.skills.new.txt +3 -3
- package/console/library/skills/new/__next.library.skills.txt +3 -3
- package/console/library/skills/new/__next.library.txt +5 -5
- package/console/library/skills/new.html +1 -1
- package/console/library/skills/new.txt +18 -18
- package/console/library/skills.html +1 -1
- package/console/library/skills.txt +17 -17
- package/console/library/workflows/__next._full.txt +17 -17
- package/console/library/workflows/__next._head.txt +4 -4
- package/console/library/workflows/__next._index.txt +9 -9
- package/console/library/workflows/__next._tree.txt +1 -1
- package/console/library/workflows/__next.library.txt +5 -5
- package/console/library/workflows/__next.library.workflows.__PAGE__.txt +3 -3
- package/console/library/workflows/__next.library.workflows.txt +3 -3
- package/console/library/workflows/__placeholder__/__placeholder__/__next._full.txt +17 -17
- package/console/library/workflows/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/library/workflows/__placeholder__/__placeholder__/__next._index.txt +9 -9
- package/console/library/workflows/__placeholder__/__placeholder__/__next._tree.txt +1 -1
- package/console/library/workflows/__placeholder__/__placeholder__/__next.library.txt +5 -5
- package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.$d$org.$d$slug.__PAGE__.txt +3 -3
- package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.$d$org.$d$slug.txt +3 -3
- package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.$d$org.txt +3 -3
- package/console/library/workflows/__placeholder__/__placeholder__/__next.library.workflows.txt +3 -3
- package/console/library/workflows/__placeholder__/__placeholder__.html +1 -1
- package/console/library/workflows/__placeholder__/__placeholder__.txt +17 -17
- package/console/library/workflows/executions/__next._full.txt +17 -17
- package/console/library/workflows/executions/__next._head.txt +4 -4
- package/console/library/workflows/executions/__next._index.txt +9 -9
- package/console/library/workflows/executions/__next._tree.txt +1 -1
- package/console/library/workflows/executions/__next.library.txt +5 -5
- package/console/library/workflows/executions/__next.library.workflows.executions.__PAGE__.txt +3 -3
- package/console/library/workflows/executions/__next.library.workflows.executions.txt +3 -3
- package/console/library/workflows/executions/__next.library.workflows.txt +3 -3
- package/console/library/workflows/executions.html +1 -1
- package/console/library/workflows/executions.txt +17 -17
- package/console/library/workflows/new/__next._full.txt +18 -18
- package/console/library/workflows/new/__next._head.txt +4 -4
- package/console/library/workflows/new/__next._index.txt +9 -9
- package/console/library/workflows/new/__next._tree.txt +1 -1
- package/console/library/workflows/new/__next.library.txt +5 -5
- package/console/library/workflows/new/__next.library.workflows.new.__PAGE__.txt +4 -4
- package/console/library/workflows/new/__next.library.workflows.new.txt +3 -3
- package/console/library/workflows/new/__next.library.workflows.txt +3 -3
- package/console/library/workflows/new.html +1 -1
- package/console/library/workflows/new.txt +18 -18
- package/console/library/workflows.html +1 -1
- package/console/library/workflows.txt +17 -17
- package/console/library.html +1 -1
- package/console/library.txt +17 -17
- package/console/login/__next._full.txt +16 -16
- package/console/login/__next._head.txt +4 -4
- package/console/login/__next._index.txt +9 -9
- package/console/login/__next._tree.txt +1 -1
- package/console/login/__next.login.__PAGE__.txt +4 -4
- package/console/login/__next.login.txt +3 -3
- package/console/login.html +1 -1
- package/console/login.txt +16 -16
- package/console/marketplace/__next._full.txt +15 -15
- package/console/marketplace/__next._head.txt +4 -4
- package/console/marketplace/__next._index.txt +9 -9
- package/console/marketplace/__next._tree.txt +1 -1
- package/console/marketplace/__next.marketplace.__PAGE__.txt +3 -3
- package/console/marketplace/__next.marketplace.txt +3 -3
- package/console/marketplace.html +1 -1
- package/console/marketplace.txt +15 -15
- package/console/oauth/slack/callback/__next._full.txt +16 -16
- package/console/oauth/slack/callback/__next._head.txt +4 -4
- package/console/oauth/slack/callback/__next._index.txt +9 -9
- package/console/oauth/slack/callback/__next._tree.txt +1 -1
- package/console/oauth/slack/callback/__next.oauth.slack.callback.__PAGE__.txt +4 -4
- package/console/oauth/slack/callback/__next.oauth.slack.callback.txt +3 -3
- package/console/oauth/slack/callback/__next.oauth.slack.txt +3 -3
- package/console/oauth/slack/callback/__next.oauth.txt +3 -3
- package/console/oauth/slack/callback.html +1 -1
- package/console/oauth/slack/callback.txt +16 -16
- package/console/sessions/__placeholder__/__next._full.txt +14 -14
- package/console/sessions/__placeholder__/__next._head.txt +4 -4
- package/console/sessions/__placeholder__/__next._index.txt +9 -9
- package/console/sessions/__placeholder__/__next._tree.txt +1 -1
- package/console/sessions/__placeholder__/__next.sessions.$d$id.__PAGE__.txt +2 -2
- package/console/sessions/__placeholder__/__next.sessions.$d$id.txt +3 -3
- package/console/sessions/__placeholder__/__next.sessions.txt +3 -3
- package/console/sessions/__placeholder__.html +1 -1
- package/console/sessions/__placeholder__.txt +14 -14
- package/console/settings/__next._full.txt +18 -18
- package/console/settings/__next._head.txt +4 -4
- package/console/settings/__next._index.txt +9 -9
- package/console/settings/__next._tree.txt +1 -1
- package/console/settings/__next.settings.__PAGE__.txt +4 -4
- package/console/settings/__next.settings.txt +5 -5
- package/console/settings/account-preferences/__next._full.txt +17 -17
- package/console/settings/account-preferences/__next._head.txt +4 -4
- package/console/settings/account-preferences/__next._index.txt +9 -9
- package/console/settings/account-preferences/__next._tree.txt +1 -1
- package/console/settings/account-preferences/__next.settings.account-preferences.__PAGE__.txt +3 -3
- package/console/settings/account-preferences/__next.settings.account-preferences.txt +3 -3
- package/console/settings/account-preferences/__next.settings.txt +5 -5
- package/console/settings/account-preferences.html +1 -1
- package/console/settings/account-preferences.txt +17 -17
- package/console/settings/api-keys/__next._full.txt +17 -17
- package/console/settings/api-keys/__next._head.txt +4 -4
- package/console/settings/api-keys/__next._index.txt +9 -9
- package/console/settings/api-keys/__next._tree.txt +1 -1
- package/console/settings/api-keys/__next.settings.api-keys.__PAGE__.txt +3 -3
- package/console/settings/api-keys/__next.settings.api-keys.txt +3 -3
- package/console/settings/api-keys/__next.settings.txt +5 -5
- package/console/settings/api-keys.html +1 -1
- package/console/settings/api-keys.txt +17 -17
- package/console/settings/billing/__next._full.txt +18 -18
- package/console/settings/billing/__next._head.txt +4 -4
- package/console/settings/billing/__next._index.txt +9 -9
- package/console/settings/billing/__next._tree.txt +1 -1
- package/console/settings/billing/__next.settings.billing.__PAGE__.txt +4 -4
- package/console/settings/billing/__next.settings.billing.txt +3 -3
- package/console/settings/billing/__next.settings.txt +5 -5
- package/console/settings/billing.html +1 -1
- package/console/settings/billing.txt +18 -18
- package/console/settings/channel-apps/__next._full.txt +17 -17
- package/console/settings/channel-apps/__next._head.txt +4 -4
- package/console/settings/channel-apps/__next._index.txt +9 -9
- package/console/settings/channel-apps/__next._tree.txt +1 -1
- package/console/settings/channel-apps/__next.settings.channel-apps.__PAGE__.txt +3 -3
- package/console/settings/channel-apps/__next.settings.channel-apps.txt +3 -3
- package/console/settings/channel-apps/__next.settings.txt +5 -5
- package/console/settings/channel-apps.html +1 -1
- package/console/settings/channel-apps.txt +17 -17
- package/console/settings/cursor-accounts/__next._full.txt +18 -18
- package/console/settings/cursor-accounts/__next._head.txt +4 -4
- package/console/settings/cursor-accounts/__next._index.txt +9 -9
- package/console/settings/cursor-accounts/__next._tree.txt +1 -1
- package/console/settings/cursor-accounts/__next.settings.cursor-accounts.__PAGE__.txt +4 -4
- package/console/settings/cursor-accounts/__next.settings.cursor-accounts.txt +3 -3
- package/console/settings/cursor-accounts/__next.settings.txt +5 -5
- package/console/settings/cursor-accounts.html +1 -1
- package/console/settings/cursor-accounts.txt +18 -18
- package/console/settings/environments/__next._full.txt +17 -17
- package/console/settings/environments/__next._head.txt +4 -4
- package/console/settings/environments/__next._index.txt +9 -9
- package/console/settings/environments/__next._tree.txt +1 -1
- package/console/settings/environments/__next.settings.environments.__PAGE__.txt +3 -3
- package/console/settings/environments/__next.settings.environments.txt +3 -3
- package/console/settings/environments/__next.settings.txt +5 -5
- package/console/settings/environments.html +1 -1
- package/console/settings/environments.txt +17 -17
- package/console/settings/identity-providers/__next._full.txt +17 -17
- package/console/settings/identity-providers/__next._head.txt +4 -4
- package/console/settings/identity-providers/__next._index.txt +9 -9
- package/console/settings/identity-providers/__next._tree.txt +1 -1
- package/console/settings/identity-providers/__next.settings.identity-providers.__PAGE__.txt +3 -3
- package/console/settings/identity-providers/__next.settings.identity-providers.txt +3 -3
- package/console/settings/identity-providers/__next.settings.txt +5 -5
- package/console/settings/identity-providers.html +1 -1
- package/console/settings/identity-providers.txt +17 -17
- package/console/settings/invitations/__next._full.txt +18 -18
- package/console/settings/invitations/__next._head.txt +4 -4
- package/console/settings/invitations/__next._index.txt +9 -9
- package/console/settings/invitations/__next._tree.txt +1 -1
- package/console/settings/invitations/__next.settings.invitations.__PAGE__.txt +3 -3
- package/console/settings/invitations/__next.settings.invitations.txt +3 -3
- package/console/settings/invitations/__next.settings.txt +5 -5
- package/console/settings/invitations.html +1 -1
- package/console/settings/invitations.txt +18 -18
- package/console/settings/licenses/__next._full.txt +18 -18
- package/console/settings/licenses/__next._head.txt +4 -4
- package/console/settings/licenses/__next._index.txt +9 -9
- package/console/settings/licenses/__next._tree.txt +1 -1
- package/console/settings/licenses/__next.settings.licenses.__PAGE__.txt +4 -4
- package/console/settings/licenses/__next.settings.licenses.txt +3 -3
- package/console/settings/licenses/__next.settings.txt +5 -5
- package/console/settings/licenses.html +1 -1
- package/console/settings/licenses.txt +18 -18
- package/console/settings/members/__next._full.txt +18 -18
- package/console/settings/members/__next._head.txt +4 -4
- package/console/settings/members/__next._index.txt +9 -9
- package/console/settings/members/__next._tree.txt +1 -1
- package/console/settings/members/__next.settings.members.__PAGE__.txt +3 -3
- package/console/settings/members/__next.settings.members.txt +3 -3
- package/console/settings/members/__next.settings.txt +5 -5
- package/console/settings/members.html +1 -1
- package/console/settings/members.txt +18 -18
- package/console/settings/memory/__next._full.txt +17 -17
- package/console/settings/memory/__next._head.txt +4 -4
- package/console/settings/memory/__next._index.txt +9 -9
- package/console/settings/memory/__next._tree.txt +1 -1
- package/console/settings/memory/__next.settings.memory.__PAGE__.txt +3 -3
- package/console/settings/memory/__next.settings.memory.txt +3 -3
- package/console/settings/memory/__next.settings.txt +5 -5
- package/console/settings/memory.html +1 -1
- package/console/settings/memory.txt +17 -17
- package/console/settings/oauth-apps/__next._full.txt +17 -17
- package/console/settings/oauth-apps/__next._head.txt +4 -4
- package/console/settings/oauth-apps/__next._index.txt +9 -9
- package/console/settings/oauth-apps/__next._tree.txt +1 -1
- package/console/settings/oauth-apps/__next.settings.oauth-apps.__PAGE__.txt +3 -3
- package/console/settings/oauth-apps/__next.settings.oauth-apps.txt +3 -3
- package/console/settings/oauth-apps/__next.settings.txt +5 -5
- package/console/settings/oauth-apps.html +1 -1
- package/console/settings/oauth-apps.txt +17 -17
- package/console/settings/org-preferences/__next._full.txt +17 -17
- package/console/settings/org-preferences/__next._head.txt +4 -4
- package/console/settings/org-preferences/__next._index.txt +9 -9
- package/console/settings/org-preferences/__next._tree.txt +1 -1
- package/console/settings/org-preferences/__next.settings.org-preferences.__PAGE__.txt +3 -3
- package/console/settings/org-preferences/__next.settings.org-preferences.txt +3 -3
- package/console/settings/org-preferences/__next.settings.txt +5 -5
- package/console/settings/org-preferences.html +1 -1
- package/console/settings/org-preferences.txt +17 -17
- package/console/settings/org-profile/__next._full.txt +17 -17
- package/console/settings/org-profile/__next._head.txt +4 -4
- package/console/settings/org-profile/__next._index.txt +9 -9
- package/console/settings/org-profile/__next._tree.txt +1 -1
- package/console/settings/org-profile/__next.settings.org-profile.__PAGE__.txt +3 -3
- package/console/settings/org-profile/__next.settings.org-profile.txt +3 -3
- package/console/settings/org-profile/__next.settings.txt +5 -5
- package/console/settings/org-profile.html +1 -1
- package/console/settings/org-profile.txt +17 -17
- package/console/settings/platform-clients/__next._full.txt +18 -18
- package/console/settings/platform-clients/__next._head.txt +4 -4
- package/console/settings/platform-clients/__next._index.txt +9 -9
- package/console/settings/platform-clients/__next._tree.txt +1 -1
- package/console/settings/platform-clients/__next.settings.platform-clients.__PAGE__.txt +3 -3
- package/console/settings/platform-clients/__next.settings.platform-clients.txt +3 -3
- package/console/settings/platform-clients/__next.settings.txt +5 -5
- package/console/settings/platform-clients.html +1 -1
- package/console/settings/platform-clients.txt +18 -18
- package/console/settings/pricing-governance/__next._full.txt +18 -18
- package/console/settings/pricing-governance/__next._head.txt +4 -4
- package/console/settings/pricing-governance/__next._index.txt +9 -9
- package/console/settings/pricing-governance/__next._tree.txt +1 -1
- package/console/settings/pricing-governance/__next.settings.pricing-governance.__PAGE__.txt +4 -4
- package/console/settings/pricing-governance/__next.settings.pricing-governance.txt +3 -3
- package/console/settings/pricing-governance/__next.settings.txt +5 -5
- package/console/settings/pricing-governance.html +1 -1
- package/console/settings/pricing-governance.txt +18 -18
- package/console/settings/provider-standing/__next._full.txt +18 -18
- package/console/settings/provider-standing/__next._head.txt +4 -4
- package/console/settings/provider-standing/__next._index.txt +9 -9
- package/console/settings/provider-standing/__next._tree.txt +1 -1
- package/console/settings/provider-standing/__next.settings.provider-standing.__PAGE__.txt +4 -4
- package/console/settings/provider-standing/__next.settings.provider-standing.txt +3 -3
- package/console/settings/provider-standing/__next.settings.txt +5 -5
- package/console/settings/provider-standing.html +1 -1
- package/console/settings/provider-standing.txt +18 -18
- package/console/settings/teams/__next._full.txt +17 -17
- package/console/settings/teams/__next._head.txt +4 -4
- package/console/settings/teams/__next._index.txt +9 -9
- package/console/settings/teams/__next._tree.txt +1 -1
- package/console/settings/teams/__next.settings.teams.__PAGE__.txt +3 -3
- package/console/settings/teams/__next.settings.teams.txt +3 -3
- package/console/settings/teams/__next.settings.txt +5 -5
- package/console/settings/teams.html +1 -1
- package/console/settings/teams.txt +17 -17
- package/console/settings/usage/__next._full.txt +17 -17
- package/console/settings/usage/__next._head.txt +4 -4
- package/console/settings/usage/__next._index.txt +9 -9
- package/console/settings/usage/__next._tree.txt +1 -1
- package/console/settings/usage/__next.settings.txt +5 -5
- package/console/settings/usage/__next.settings.usage.__PAGE__.txt +3 -3
- package/console/settings/usage/__next.settings.usage.txt +3 -3
- package/console/settings/usage.html +1 -1
- package/console/settings/usage.txt +17 -17
- package/console/settings.html +1 -1
- package/console/settings.txt +18 -18
- package/console/workflows/__next._full.txt +14 -14
- package/console/workflows/__next._head.txt +4 -4
- package/console/workflows/__next._index.txt +9 -9
- package/console/workflows/__next._tree.txt +1 -1
- package/console/workflows/__next.workflows.__PAGE__.txt +2 -2
- package/console/workflows/__next.workflows.txt +3 -3
- package/console/workflows/__placeholder__/__placeholder__/__next._full.txt +15 -15
- package/console/workflows/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/workflows/__placeholder__/__placeholder__/__next._index.txt +9 -9
- package/console/workflows/__placeholder__/__placeholder__/__next._tree.txt +1 -1
- package/console/workflows/__placeholder__/__placeholder__/__next.workflows.$d$org.$d$slug.__PAGE__.txt +3 -3
- package/console/workflows/__placeholder__/__placeholder__/__next.workflows.$d$org.$d$slug.txt +3 -3
- package/console/workflows/__placeholder__/__placeholder__/__next.workflows.$d$org.txt +3 -3
- package/console/workflows/__placeholder__/__placeholder__/__next.workflows.txt +3 -3
- package/console/workflows/__placeholder__/__placeholder__.html +1 -1
- package/console/workflows/__placeholder__/__placeholder__.txt +15 -15
- package/console/workflows/executions/__next._full.txt +14 -14
- package/console/workflows/executions/__next._head.txt +4 -4
- package/console/workflows/executions/__next._index.txt +9 -9
- package/console/workflows/executions/__next._tree.txt +1 -1
- package/console/workflows/executions/__next.workflows.executions.__PAGE__.txt +2 -2
- package/console/workflows/executions/__next.workflows.executions.txt +3 -3
- package/console/workflows/executions/__next.workflows.txt +3 -3
- package/console/workflows/executions/__placeholder__/__next._full.txt +15 -15
- package/console/workflows/executions/__placeholder__/__next._head.txt +4 -4
- package/console/workflows/executions/__placeholder__/__next._index.txt +9 -9
- package/console/workflows/executions/__placeholder__/__next._tree.txt +1 -1
- package/console/workflows/executions/__placeholder__/__next.workflows.executions.$d$id.__PAGE__.txt +3 -3
- package/console/workflows/executions/__placeholder__/__next.workflows.executions.$d$id.txt +3 -3
- package/console/workflows/executions/__placeholder__/__next.workflows.executions.txt +3 -3
- package/console/workflows/executions/__placeholder__/__next.workflows.txt +3 -3
- package/console/workflows/executions/__placeholder__.html +1 -1
- package/console/workflows/executions/__placeholder__.txt +15 -15
- package/console/workflows/executions.html +1 -1
- package/console/workflows/executions.txt +14 -14
- package/console/workflows.html +1 -1
- package/console/workflows.txt +14 -14
- package/main.js +7 -7
- package/package.json +6 -6
- package/workflow-bundle-agent-execution.js +11 -4
- package/workflow-bundle-workflow-execution.js +11 -4
- package/console/_next/static/chunks/02-y8.0mij3oo.js +0 -1
- package/console/_next/static/chunks/07cmxd02jptdy.js +0 -1
- package/console/_next/static/chunks/080_hmzn4hvil.js +0 -1
- package/console/_next/static/chunks/09ofg.rr49784.js +0 -1
- package/console/_next/static/chunks/0a0wj-awx7rg..js +0 -1
- package/console/_next/static/chunks/0vk57p0ll8d70.js +0 -1
- /package/console/_next/static/{TQdukr5rX4W2LNJFMB1sX → zec9_FSsvTK5epvHZ4seq}/_buildManifest.js +0 -0
- /package/console/_next/static/{TQdukr5rX4W2LNJFMB1sX → zec9_FSsvTK5epvHZ4seq}/_clientMiddlewareManifest.js +0 -0
- /package/console/_next/static/{TQdukr5rX4W2LNJFMB1sX → zec9_FSsvTK5epvHZ4seq}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,10337,t=>{"use strict";var e=t.i(843476),s=t.i(271645),n=t.i(893976),r=t.i(468806);t.s(["ConfirmDialog",0,function({state:t,onConfirm:i,onCancel:a}){let g=(0,s.useCallback)(t=>{t||a()},[a]);if(!t)return null;let o="destructive"===t.variant;return(0,e.jsx)(r.DialogShell,{open:!0,onOpenChange:g,width:"sm","aria-label":t.title,children:(0,e.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-4 stg:p-6",children:[(0,e.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-1.5",children:[(0,e.jsx)("h3",{className:"stg:text-base stg:font-semibold stg:text-foreground",children:t.title}),(0,e.jsx)("p",{className:"stg:text-sm stg:text-muted-foreground",children:t.description})]}),(0,e.jsxs)("div",{className:"stg:flex stg:justify-end stg:gap-2",children:[(0,e.jsx)("button",{type:"button",onClick:a,className:(0,n.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium stg:transition-colors","stg:border stg:border-input stg:bg-background stg:text-foreground","stg:hover:bg-accent stg:hover:text-accent-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:t.cancelLabel??"Cancel"}),(0,e.jsx)("button",{type:"button",onClick:i,className:(0,n.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium stg:transition-colors","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring",o?"stg:bg-destructive stg:text-destructive-foreground stg:hover:bg-destructive-hover":"stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover"),children:t.confirmLabel??"Confirm"})]})]})})}])},966205,t=>{"use strict";var e=t.i(271645);t.s(["useConfirmAction",0,function(){let[t,s]=(0,e.useState)(null),n=(0,e.useCallback)(t=>new Promise(e=>{s({...t,resolve:e})}),[]),r=(0,e.useCallback)(()=>{t?.resolve(!0),s(null)},[t]),i=(0,e.useCallback)(()=>{t?.resolve(!1),s(null)},[t]);return(0,e.useMemo)(()=>({confirmState:t,confirm:n,handleConfirm:r,handleCancel:i}),[t,n,r,i])}])},475254,t=>{"use strict";var e=t.i(271645);let s=(...t)=>t.filter((t,e,s)=>!!t&&""!==t.trim()&&s.indexOf(t)===e).join(" ").trim(),n=t=>{let e=t.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,e,s)=>s?s.toUpperCase():e.toLowerCase());return e.charAt(0).toUpperCase()+e.slice(1)};var r={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,e.forwardRef)(({color:t="currentColor",size:n=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:g="",children:o,iconNode:l,...c},d)=>(0,e.createElement)("svg",{ref:d,...r,width:n,height:n,stroke:t,strokeWidth:a?24*Number(i)/Number(n):i,className:s("lucide",g),...!o&&!(t=>{for(let e in t)if(e.startsWith("aria-")||"role"===e||"title"===e)return!0;return!1})(c)&&{"aria-hidden":"true"},...c},[...l.map(([t,s])=>(0,e.createElement)(t,s)),...Array.isArray(o)?o:[o]]));t.s(["default",0,(t,r)=>{let a=(0,e.forwardRef)(({className:a,...g},o)=>(0,e.createElement)(i,{ref:o,iconNode:r,className:s(`lucide-${n(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${t}`,a),...g}));return a.displayName=n(t),a}],475254)},678745,t=>{"use strict";let e=(0,t.i(475254).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);t.s(["default",0,e])},845132,678784,916624,t=>{"use strict";var e=t.i(843476),s=t.i(893976),n=t.i(704077),r=t.i(678745);t.s(["CheckIcon",()=>r.default],678784);var r=r,i=t.i(364354);function a(t){return(0,e.jsx)(n.Menu.Root,{...t})}function g(t){return(0,e.jsx)(n.Menu.Trigger,{...t})}function o({align:t="start",alignOffset:r=0,side:a="bottom",sideOffset:g=4,className:l,...c}){let d=(0,i.useStigmerPortalContainer)();return(0,e.jsx)(n.Menu.Portal,{container:d,children:(0,e.jsx)(n.Menu.Positioner,{className:"stg:isolate stg:z-50 stg:outline-none",align:t,alignOffset:r,side:a,sideOffset:g,children:(0,e.jsx)(n.Menu.Popup,{className:(0,s.cn)("stg:bg-popover stg:text-popover-foreground stg:ring-foreground/10","stg:data-[side=bottom]:slide-in-from-top-2 stg:data-[side=inline-end]:slide-in-from-left-2 stg:data-[side=inline-start]:slide-in-from-right-2 stg:data-[side=left]:slide-in-from-right-2 stg:data-[side=right]:slide-in-from-left-2 stg:data-[side=top]:slide-in-from-bottom-2","stg:data-open:animate-in stg:data-open:fade-in-0 stg:data-open:zoom-in-95","stg:data-closed:animate-out stg:data-closed:fade-out-0 stg:data-closed:zoom-out-95","stg:z-50 stg:max-h-(--available-height) stg:w-(--anchor-width) stg:min-w-32 stg:origin-(--transform-origin) stg:overflow-x-hidden stg:overflow-y-auto stg:rounded-lg stg:p-1 stg:shadow-md stg:ring-1 stg:duration-100 stg:outline-none stg:data-closed:overflow-hidden",l),...c})})})}function l({className:t,variant:r="default",...i}){return(0,e.jsx)(n.Menu.Item,{"data-variant":r,className:(0,s.cn)("stg:focus:bg-accent stg:focus:text-accent-foreground stg:not-data-[variant=destructive]:focus:**:text-accent-foreground","stg:data-[variant=destructive]:text-destructive stg:data-[variant=destructive]:focus:bg-destructive-subtle stg:data-[variant=destructive]:focus:text-destructive stg:data-[variant=destructive]:*:[svg]:text-destructive","stg:relative stg:flex stg:cursor-default stg:items-center stg:gap-1.5 stg:rounded-md stg:px-1.5 stg:py-1 stg:text-sm stg:outline-hidden stg:select-none","stg:data-disabled:pointer-events-none stg:data-disabled:opacity-50","stg:[&_svg]:pointer-events-none stg:[&_svg]:shrink-0 stg:[&_svg:not([class*='size-'])]:size-4",t),...i})}function c({className:t,...r}){return(0,e.jsx)(n.Menu.Separator,{className:(0,s.cn)("stg:bg-border stg:-mx-1 stg:my-1 stg:h-px",t),...r})}function d({className:t,...s}){return(0,e.jsx)("div",{role:"group",className:t,...s})}function u({className:t,...n}){return(0,e.jsx)("span",{className:(0,s.cn)("stg:text-muted-foreground stg:block stg:px-1.5 stg:py-1 stg:text-[11px] stg:font-medium stg:uppercase stg:tracking-wider stg:select-none",t),...n})}t.s(["Menu",0,a,"MenuContent",0,o,"MenuGroup",0,d,"MenuItem",0,l,"MenuLabel",0,u,"MenuRadioGroup",0,function(t){return(0,e.jsx)(n.Menu.RadioGroup,{...t})},"MenuRadioItem",0,function({className:t,children:i,...a}){return(0,e.jsxs)(n.Menu.RadioItem,{className:(0,s.cn)("stg:focus:bg-accent stg:focus:text-accent-foreground stg:focus:**:text-accent-foreground","stg:relative stg:flex stg:cursor-default stg:items-center stg:gap-1.5 stg:rounded-md stg:py-1 stg:pr-8 stg:pl-1.5 stg:text-sm stg:outline-hidden stg:select-none","stg:data-disabled:pointer-events-none stg:data-disabled:opacity-50","stg:[&_svg]:pointer-events-none stg:[&_svg]:shrink-0 stg:[&_svg:not([class*='size-'])]:size-4",t),...a,children:[(0,e.jsx)("span",{className:"stg:pointer-events-none stg:absolute stg:right-2 stg:flex stg:items-center stg:justify-center",children:(0,e.jsx)(n.Menu.RadioItemIndicator,{children:(0,e.jsx)(r.default,{})})}),i]})},"MenuSeparator",0,c,"MenuTrigger",0,g],916624);let x=Object.assign(function({children:t}){return(0,e.jsx)(a,{children:t})},{Trigger:function({children:t,className:n,"aria-label":r="Actions"}){return(0,e.jsx)(g,{className:(0,s.cn)("stg:inline-flex stg:items-center stg:justify-center stg:rounded-md stg:p-1","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:data-popup-open:bg-accent stg:data-popup-open:text-foreground",n),"aria-label":r,children:t})},Content:function({children:t,align:n="end",className:r}){return(0,e.jsx)(o,{align:n,className:(0,s.cn)("stg:min-w-44",r),children:t})},Item:function({children:t,onSelect:n,icon:r,shortcut:i,variant:a="default",disabled:g,className:o}){return(0,e.jsxs)(l,{variant:a,disabled:g,onClick:n,className:(0,s.cn)("stg:justify-between",o),children:[(0,e.jsxs)("span",{className:"stg:flex stg:items-center stg:gap-2",children:[r,(0,e.jsx)("span",{children:t})]}),i&&(0,e.jsx)("kbd",{className:"stg:ml-auto stg:text-[11px] stg:tracking-widest stg:text-muted-foreground-subtle",children:i})]})},Separator:function({className:t}){return(0,e.jsx)(c,{className:t})},Group:function({children:t,label:s,className:n}){return(0,e.jsxs)(d,{className:n,children:[s&&(0,e.jsx)(u,{children:s}),t]})}});t.s(["ActionMenu",0,x],845132)},476007,t=>{"use strict";var e=t.i(843476),s=t.i(271645),n=t.i(610595),r=t.i(893976);let i={auth:"Authentication required",permission:"Access denied","not-found":"Not found",validation:"Invalid request",server:"Server error",unavailable:"Service unavailable",cancelled:"Request cancelled",unknown:"Something went wrong"};function a({className:t}){return(0,e.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:[(0,e.jsx)("path",{d:"M7.13 2.5a1 1 0 0 1 1.74 0l5.5 9.5A1 1 0 0 1 13.5 13.5h-11a1 1 0 0 1-.87-1.5l5.5-9.5z"}),(0,e.jsx)("path",{d:"M8 6v3"}),(0,e.jsx)("circle",{cx:"8",cy:"11",r:"0.5",fill:"currentColor",stroke:"none"})]})}function g({className:t}){return(0,e.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:[(0,e.jsx)("path",{d:"M8 1.5l5 2v4c0 3.5-2.5 5.5-5 6.5-2.5-1-5-3-5-6.5v-4l5-2z"}),(0,e.jsx)("path",{d:"M6 6.5l4 4M10 6.5l-4 4"})]})}function o({className:t}){return(0,e.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:(0,e.jsx)("path",{d:"M4 6l4 4 4-4"})})}function l({className:t}){return(0,e.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:[(0,e.jsx)("path",{d:"M2 6.5h4v-4"}),(0,e.jsx)("path",{d:"M3.5 11.5a5.5 5.5 0 1 0 .5-6l-2 1"})]})}t.s(["ErrorMessage",0,function({error:t,title:c,retry:d,className:u}){let[x,m]=(0,s.useState)(!1);if(!t)return null;let f=(0,n.classifyError)(t),h=(0,n.getUserMessage)(t),p=(0,n.getRpcMetadata)(t),b=(0,n.isRetryableError)(t);return(0,e.jsx)("div",{role:"alert",className:(0,r.cn)("stg:bg-destructive-subtle stg:border-destructive/20 stg:text-destructive stg:rounded-lg stg:border stg:p-4",u),children:(0,e.jsxs)("div",{className:"stg:flex stg:items-start stg:gap-3",children:["auth"===f||"permission"===f?(0,e.jsx)(g,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}):(0,e.jsx)(a,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}),(0,e.jsxs)("div",{className:"stg:min-w-0 stg:flex-1 stg:space-y-1",children:[(0,e.jsx)("p",{className:"stg:text-sm stg:font-medium",children:c??i[f]}),(0,e.jsx)("p",{className:"stg:text-destructive-muted stg:text-sm",children:h}),p&&(0,e.jsxs)("div",{className:"stg:pt-1",children:[(0,e.jsxs)("button",{type:"button",onClick:()=>m(t=>!t),className:"stg:text-destructive-muted stg:hover:text-destructive-muted stg:inline-flex stg:items-center stg:gap-1 stg:text-xs stg:transition-colors",children:[(0,e.jsx)(o,{className:(0,r.cn)("stg:size-3 stg:transition-transform",x&&"stg:rotate-180")}),"Technical details"]}),x&&(0,e.jsxs)("dl",{className:"stg:text-destructive-muted stg:mt-1.5 stg:space-y-0.5 stg:font-mono stg:text-xs",children:[(0,e.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,e.jsx)("dt",{className:"stg:shrink-0",children:"Method:"}),(0,e.jsx)("dd",{className:"stg:truncate",children:p.method})]}),(0,e.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,e.jsx)("dt",{className:"stg:shrink-0",children:"Path:"}),(0,e.jsx)("dd",{className:"stg:truncate",children:p.path})]})]})]})]}),d&&b&&(0,e.jsxs)("button",{type:"button",onClick:d,className:(0,r.cn)("stg:inline-flex stg:shrink-0 stg:items-center stg:gap-1.5 stg:rounded-md stg:border stg:px-2.5 stg:py-1.5 stg:text-xs stg:font-medium","stg:border-destructive/20 stg:text-destructive stg:hover:bg-destructive-subtle","stg:transition-colors"),children:[(0,e.jsx)(l,{className:"stg:size-3"}),"Retry"]})]})})}])},927056,t=>{"use strict";var e=t.i(843476),s=t.i(271645),n=t.i(893976);t.s(["Tabs",0,function({tabs:t,activeTab:r,onTabChange:i,children:a,"aria-label":g,className:o}){let l=(0,s.useId)(),c=(0,s.useRef)(new Map),d=t=>`${l}-tab-${t}`,u=t=>`${l}-panel-${t}`,x=(0,s.useCallback)(t=>{c.current.get(t)?.focus(),i(t)},[i]),m=(0,s.useCallback)(e=>{let s=t.findIndex(t=>t.id===r);if(-1===s)return;let n=null;switch(e.key){case"ArrowRight":n=(s+1)%t.length;break;case"ArrowLeft":n=(s-1+t.length)%t.length;break;case"Home":n=0;break;case"End":n=t.length-1;break;default:return}e.preventDefault(),x(t[n].id)},[t,r,x]);return(0,e.jsxs)("div",{className:(0,n.cn)("stg:flex stg:flex-col",o),children:[(0,e.jsx)("div",{role:"tablist","aria-label":g,onKeyDown:m,className:"stg:flex stg:border-b stg:border-border",children:t.map(t=>{let s=t.id===r;return(0,e.jsxs)("button",{ref:e=>{e?c.current.set(t.id,e):c.current.delete(t.id)},id:d(t.id),role:"tab",type:"button","aria-selected":s,"aria-controls":u(t.id),tabIndex:s?0:-1,onClick:()=>i(t.id),"data-cursor-target":`tab-${t.id}`,className:(0,n.cn)("stg:relative stg:inline-flex stg:items-center stg:gap-1.5 stg:px-3 stg:py-2 stg:text-xs stg:font-medium stg:transition-colors","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring stg:focus-visible:ring-offset-1",s?"stg:text-foreground":"stg:text-muted-foreground stg:hover:text-foreground"),children:[t.icon,t.label,null!=t.badge&&t.badge>0&&(0,e.jsx)("span",{"aria-hidden":"true",className:(0,n.cn)("stg:inline-flex stg:min-w-[1.25rem] stg:items-center stg:justify-center stg:rounded-full stg:px-1 stg:py-px stg:text-[10px] stg:font-medium stg:leading-none",s?"stg:bg-primary-subtle stg:text-primary":"stg:bg-muted stg:text-muted-foreground"),children:t.badge}),s&&(0,e.jsx)("span",{className:"stg:absolute stg:inset-x-0 stg:-bottom-px stg:h-0.5 stg:bg-primary","aria-hidden":"true"})]},t.id)})}),(0,e.jsx)("div",{id:u(r),role:"tabpanel","aria-labelledby":d(r),tabIndex:0,className:"stg:min-h-0 stg:flex-1 stg:pt-4 stg:focus-visible:outline-none",children:a})]})}])},193799,t=>{"use strict";var e=t.i(271645);t.s(["useCopyFeedback",0,function(){let[t,s]=(0,e.useState)(!1),n=(0,e.useRef)(null);(0,e.useEffect)(()=>()=>{null!==n.current&&clearTimeout(n.current)},[]);let r=(0,e.useCallback)(async t=>{try{await navigator.clipboard.writeText(t)}catch{return!1}return s(!0),null!==n.current&&clearTimeout(n.current),n.current=setTimeout(()=>s(!1),2e3),!0},[]);return(0,e.useMemo)(()=>({copy:r,copied:t}),[r,t])}])},266442,t=>{"use strict";var e=t.i(843476),s=t.i(893976),n=t.i(188482);let r={ready:"Ready",running:"Running",pending:"Pending",degraded:"Degraded",failed:"Failed",disabled:"Disabled",draft:"Draft"};t.s(["StatusBadge",0,function({phase:t,label:i,tooltip:a,className:g}){let o=i??r[t],l=(0,e.jsxs)("span",{className:(0,s.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-full stg:px-2 stg:py-0.5 stg:text-[11px] stg:font-medium stg:leading-none",function(t){switch(t){case"ready":return"stg:bg-[var(--stgm-status-ready-subtle)] stg:text-[var(--stgm-status-ready)]";case"running":return"stg:bg-[var(--stgm-status-running-subtle)] stg:text-[var(--stgm-status-running)]";case"pending":return"stg:bg-[var(--stgm-status-pending-subtle)] stg:text-[var(--stgm-status-pending)]";case"degraded":return"stg:bg-[var(--stgm-status-degraded-subtle)] stg:text-[var(--stgm-status-degraded)]";case"failed":return"stg:bg-[var(--stgm-status-failed-subtle)] stg:text-[var(--stgm-status-failed)]";case"disabled":return"stg:bg-[var(--stgm-status-disabled-subtle)] stg:text-[var(--stgm-status-disabled)]";case"draft":return"stg:bg-[var(--stgm-status-draft-subtle)] stg:text-[var(--stgm-status-draft)]"}}(t),g),children:[(0,e.jsx)("span",{className:(0,s.cn)("stg:size-1.5 stg:shrink-0 stg:rounded-full",function(t){switch(t){case"ready":return"stg:bg-[var(--stgm-status-ready)]";case"running":return"stg:bg-[var(--stgm-status-running)]";case"pending":return"stg:bg-[var(--stgm-status-pending)]";case"degraded":return"stg:bg-[var(--stgm-status-degraded)]";case"failed":return"stg:bg-[var(--stgm-status-failed)]";case"disabled":return"stg:bg-[var(--stgm-status-disabled)]";case"draft":return"stg:bg-[var(--stgm-status-draft)]"}}(t)),"aria-hidden":"true"}),o]});return a?(0,e.jsxs)(n.Tooltip,{children:[(0,e.jsx)(n.TooltipTrigger,{render:(0,e.jsx)("span",{className:"stg:inline-flex"}),children:l}),(0,e.jsx)(n.TooltipContent,{side:"top",children:a})]}):l}])},107141,t=>{"use strict";var e=t.i(271645),s=t.i(618566);let n="__placeholder__";t.s(["useStaticRouteParam",0,function(t,r=1){let i=(0,s.useParams)()[t];return(0,e.useMemo)(()=>{if(i!==n)return i;let t=window.location.pathname.split("/").filter(Boolean),e=t[t.length-r];return e&&e!==n?e:null},[i,r])}])},668093,652337,t=>{"use strict";var e=t.i(843476),s=t.i(893976),n=t.i(266442),r=t.i(927056),i=t.i(271645),a=t.i(845132);function g({primaryAction:t,actions:n,className:r}){let i=null!=n&&n.length>0;return t||i?(0,e.jsxs)("div",{className:(0,s.cn)("stg:flex stg:items-center stg:gap-2",r),children:[t&&(0,e.jsxs)("button",{type:"button",onClick:t.onAction,disabled:t.disabled,className:(0,s.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium stg:transition-colors","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:[t.icon,t.label]}),i&&(0,e.jsx)(o,{actions:n})]}):null}function o({actions:t}){var s;let n=(s=t,(0,i.useMemo)(()=>{let t=new Map;for(let e of s){let s=e.group??"__default",n=t.get(s);n?n.push(e):t.set(s,[e])}return Array.from(t.entries()).map(([t,e])=>({key:t,items:e}))},[s]));return(0,e.jsxs)(a.ActionMenu,{children:[(0,e.jsx)(a.ActionMenu.Trigger,{"aria-label":"More actions",children:(0,e.jsx)(l,{className:"stg:size-4"})}),(0,e.jsx)(a.ActionMenu.Content,{children:n.map((t,s)=>(0,e.jsxs)(a.ActionMenu.Group,{children:[s>0&&(0,e.jsx)(a.ActionMenu.Separator,{}),t.items.map(t=>(0,e.jsx)(a.ActionMenu.Item,{icon:t.icon,shortcut:t.shortcut,variant:t.variant,disabled:t.disabled,onSelect:t.onAction,children:t.label},t.id))]},t.key))})]})}function l({className:t}){return(0,e.jsxs)("svg",{className:t,viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:[(0,e.jsx)("circle",{cx:"8",cy:"3",r:"1.25"}),(0,e.jsx)("circle",{cx:"8",cy:"8",r:"1.25"}),(0,e.jsx)("circle",{cx:"8",cy:"13",r:"1.25"})]})}function c({header:t,visibilityControl:s,metaExtra:r}){let{name:i,nameElement:a,org:g,slug:o,qualifiedSlug:l,description:x,iconUrl:m,icon:f,createdAt:h,updatedAt:p,status:b,statusLabel:v}=t,j=o&&o!==i&&!l;return(0,e.jsxs)("div",{className:"stg:flex stg:min-w-0 stg:items-start stg:gap-3",children:[m?(0,e.jsx)("img",{src:m,alt:"",className:"stg:mt-0.5 stg:size-8 stg:shrink-0 stg:rounded stg:object-cover"}):f?(0,e.jsx)("span",{className:"stg:mt-1 stg:shrink-0",children:f}):null,(0,e.jsxs)("div",{className:"stg:min-w-0 stg:flex-1",children:[(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[a??(0,e.jsx)("h2",{className:"stg:truncate stg:text-lg stg:font-semibold stg:text-foreground",children:i}),j&&(0,e.jsx)("code",{className:"stg:shrink-0 stg:rounded stg:bg-muted stg:px-1.5 stg:py-0.5 stg:text-xs stg:font-medium stg:text-muted-foreground",children:o}),b&&(0,e.jsx)(n.StatusBadge,{phase:b,label:v}),s]}),l&&(0,e.jsx)("span",{className:"stg:mt-0.5 stg:block stg:truncate stg:font-mono stg:text-xs stg:text-muted-foreground",children:l}),(0,e.jsxs)("div",{className:"stg:mt-0.5 stg:flex stg:flex-wrap stg:items-center stg:gap-x-1.5 stg:text-xs stg:text-muted-foreground",children:[g&&(0,e.jsx)("span",{children:g}),r,h&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d,{}),(0,e.jsxs)("span",{children:["Created ",u(h)]})]}),p&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d,{}),(0,e.jsxs)("span",{children:["Updated ",u(p)]})]})]}),x&&(0,e.jsx)("p",{className:"stg:mt-2 stg:text-sm stg:text-muted-foreground",children:x})]})]})}function d(){return(0,e.jsx)("span",{className:"stg:shrink-0","aria-hidden":"true",children:"·"})}function u(t){return t.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}function x({className:t}){return(0,e.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M11.5 1.5a2.121 2.121 0 0 1 3 3L5 14l-4 1 1-4Z"})})}t.s(["ResourceDetailShell",0,function({header:t,visibilityControl:n,headerMetaExtra:i,headerBanner:a,primaryAction:o,actions:l,tabs:d,activeTab:u,onTabChange:x,tabsAriaLabel:m,children:f,className:h}){let p=null!=d&&d.length>0;return(0,e.jsxs)("div",{className:(0,s.cn)("stg:flex stg:flex-col stg:gap-6",h),children:[a,(0,e.jsxs)("div",{className:"stg:flex stg:items-start stg:justify-between stg:gap-4",children:[(0,e.jsx)(c,{header:t,visibilityControl:n,metaExtra:i}),(0,e.jsx)(g,{primaryAction:o,actions:l,className:"stg:shrink-0"})]}),p&&u&&x?(0,e.jsx)(r.Tabs,{tabs:d,activeTab:u,onTabChange:x,"aria-label":m,children:f}):f]})}],668093),t.s(["Section",0,function({title:t,count:n,headerActions:r,onEdit:i,scrollTarget:a,children:g,className:o}){return(0,e.jsxs)("section",{className:o,"data-scroll-target":a,children:[(0,e.jsxs)("div",{className:"stg:mb-2 stg:flex stg:items-center stg:gap-2",children:[(0,e.jsx)("h3",{className:"stg:text-xs stg:font-medium stg:uppercase stg:tracking-wider stg:text-muted-foreground",children:t}),null!=n&&n>0&&(0,e.jsx)("span",{className:"stg:inline-flex stg:size-5 stg:items-center stg:justify-center stg:rounded-full stg:bg-muted stg:text-[10px] stg:font-semibold stg:text-muted-foreground",children:n}),(r||i)&&(0,e.jsxs)("div",{className:"stg:ml-auto stg:flex stg:items-center stg:gap-1",children:[r,i&&(0,e.jsx)("button",{type:"button",onClick:i,"aria-label":`Edit ${t.toLowerCase()}`,className:(0,s.cn)("stg:inline-flex stg:size-6 stg:items-center stg:justify-center stg:rounded-md stg:text-muted-foreground","stg:hover:bg-accent-hover stg:hover:text-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:transition-colors"),children:(0,e.jsx)(x,{className:"stg:size-3.5"})})]})]}),(0,e.jsx)("div",{className:"stg:overflow-hidden stg:rounded-lg stg:border stg:border-border",children:g})]})}],652337)},261722,t=>{"use strict";var e=t.i(843476),s=t.i(271645),n=t.i(893976);function r({className:t}){return(0,e.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M11.5 1.5a2.121 2.121 0 0 1 3 3L5 14l-4 1 1-4Z"})})}function i(){return(0,e.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",className:"stg:animate-spin","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M8 2a6 6 0 1 0 6 6"})})}t.s(["InlineEditTextarea",0,function({value:t,onSave:a,placeholder:g="Click to edit",validate:o,minRows:l=3,disabled:c,isSaving:d,error:u,className:x}){let[m,f]=(0,s.useState)(!1),[h,p]=(0,s.useState)(t),[b,v]=(0,s.useState)(null),j=(0,s.useRef)(null);(0,s.useEffect)(()=>{m&&(p(t),v(null),requestAnimationFrame(()=>{let t=j.current;t&&(t.focus(),t.selectionStart=t.value.length)}))},[m,t]),(0,s.useEffect)(()=>{let t=j.current;t&&(t.style.height="auto",t.style.height=`${t.scrollHeight}px`)},[h,m]);let y=(0,s.useCallback)(async()=>{if(h===t)return void f(!1);if(o){let t=o(h);if(t)return void v(t)}await a(h)&&f(!1)},[h,t,o,a]),k=(0,s.useCallback)(()=>{f(!1),p(t),v(null)},[t]),N=(0,s.useCallback)(t=>{"Enter"===t.key&&(t.ctrlKey||t.metaKey)?(t.preventDefault(),y()):"Escape"===t.key&&k()},[y,k]),w=b||u;return c||!m?(0,e.jsx)("div",{className:(0,n.cn)("stg:group/inline-edit",x),children:(0,e.jsx)("button",{type:"button",onClick:()=>{c||f(!0)},disabled:c,className:(0,n.cn)("stg:w-full stg:rounded-md stg:px-2 stg:py-1.5 stg:text-left stg:transition-colors",!c&&"stg:hover:bg-accent-hover stg:cursor-pointer",c&&"stg:cursor-default","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-inset stg:focus-visible:ring-ring"),children:(0,e.jsxs)("div",{className:"stg:flex stg:items-start stg:justify-between stg:gap-2",children:[(0,e.jsx)("pre",{className:(0,n.cn)("stg:min-w-0 stg:whitespace-pre-wrap stg:break-words stg:font-mono stg:text-sm stg:text-foreground",!t&&"stg:text-muted-foreground stg:italic stg:font-sans"),children:t||g}),!c&&(0,e.jsx)(r,{className:"stg:mt-0.5 stg:size-3 stg:shrink-0 stg:text-muted-foreground stg:opacity-0 stg:transition-opacity stg:group-hover/inline-edit:opacity-100"})]})})}):(0,e.jsxs)("div",{className:(0,n.cn)("stg:flex stg:flex-col stg:gap-1.5",x),children:[(0,e.jsx)("textarea",{ref:j,value:h,onChange:t=>{p(t.target.value),v(null)},onKeyDown:N,disabled:d,placeholder:g,rows:l,className:(0,n.cn)("stg:w-full stg:resize-y stg:rounded-md stg:border stg:border-border stg:bg-input-bg stg:px-3 stg:py-2 stg:font-mono stg:text-sm stg:text-foreground","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring","stg:disabled:opacity-50",w&&"stg:border-destructive")}),(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-between",children:[(0,e.jsx)("span",{className:"stg:text-[10px] stg:text-muted-foreground",children:d?"Saving...":"Ctrl+Enter to save, Escape to cancel"}),(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-1.5",children:[(0,e.jsx)("button",{type:"button",onClick:k,disabled:d,className:(0,n.cn)("stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium","stg:border stg:border-border stg:bg-background stg:text-foreground stg:hover:bg-accent stg:hover:text-accent-foreground","stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:"Cancel"}),(0,e.jsxs)("button",{type:"button",onClick:y,disabled:d,className:(0,n.cn)("stg:inline-flex stg:items-center stg:gap-1 stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:[d&&(0,e.jsx)(i,{}),"Save"]})]})]}),w&&(0,e.jsx)("p",{className:"stg:px-1 stg:text-xs stg:text-destructive",role:"alert",children:w})]})}])},484763,t=>{"use strict";var e=t.i(843476),s=t.i(271645),n=t.i(981922),r=t.i(213149);t.s(["useManageAccess",0,function({resource:t,visibility:i,extraSection:a,label:g="Manage access"}){let[o,l]=(0,s.useState)(!1),{allowed:c}=(0,n.useCheckPermission)(t?{kind:t.kindString,id:t.id}:null,"can_view_access"),d=(0,s.useCallback)(()=>l(!0),[]);return{action:t&&c?{id:"manage-access",label:g,group:"sharing",onAction:d}:null,dialog:t?(0,e.jsx)(r.ManageAccessDialog,{open:o,onOpenChange:l,resource:t,visibility:i,extraSection:a}):null,open:d,isOpen:o}}])},141249,t=>{"use strict";var e=t.i(843476);t.s(["PluginIcon",0,function({className:t}){return(0,e.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M6 2.5a1.5 1.5 0 0 1 3 0V4h2.5A1.5 1.5 0 0 1 13 5.5V8h-1.5a1.5 1.5 0 0 0 0 3H13v2.5a1.5 1.5 0 0 1-1.5 1.5H9v-1.5a1.5 1.5 0 0 0-3 0V15H3.5A1.5 1.5 0 0 1 2 13.5V11h1.5a1.5 1.5 0 0 0 0-3H2V5.5A1.5 1.5 0 0 1 3.5 4H6V2.5Z"})})}])},292420,t=>{"use strict";var e=t.i(843476),s=t.i(893976),n=t.i(141249);t.s(["ManagedByPluginNotice",0,function({plugin:t,onPluginClick:r,className:i}){if(null===t)return null;let a=t.metadata,g=a?.name||a?.slug||"a plugin",o=a?{org:a.org,slug:a.slug}:null;return(0,e.jsxs)("div",{role:"note",className:(0,s.cn)("stg:flex stg:items-start stg:gap-2 stg:rounded-md stg:border stg:border-border stg:bg-muted stg:px-3 stg:py-2 stg:text-sm stg:text-foreground",i),children:[(0,e.jsx)(n.PluginIcon,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0 stg:text-muted-foreground"}),(0,e.jsxs)("p",{children:["Installed by the plugin"," ",r&&o?(0,e.jsx)("button",{type:"button",onClick:()=>r(o),className:"stg:cursor-pointer stg:font-medium stg:underline stg:decoration-dotted stg:underline-offset-2 stg:hover:text-primary",children:g}):(0,e.jsx)("span",{className:"stg:font-medium",children:g}),". To change it, change the plugin and push it again; to customise, compose your own agent over its skills and servers."]})]})}])},473489,t=>{"use strict";var e=t.i(271645),s=t.i(910304),n=t.i(586108),r=t.i(583093);let i="stigmer.ai/plugin";t.s(["PLUGIN_LABEL",0,i,"useManagingPlugin",0,function(t){let a=(0,n.useStigmer)(),g=t?.[i]??null,{data:o,isLoading:l}=(0,r.useFetch)(g?async()=>{try{return await a.plugin.get(g)}catch(t){if((0,s.isNotFound)(t))return null;throw t}}:null,[g,a],null);return(0,e.useMemo)(()=>({plugin:o,isLoading:l}),[o,l])}])},244990,t=>{"use strict";var e=t.i(843476),s=t.i(271645),n=t.i(893976);function r({className:t}){return(0,e.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M11.5 1.5a2.121 2.121 0 0 1 3 3L5 14l-4 1 1-4Z"})})}function i({className:t}){return(0,e.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,e.jsx)("path",{d:"m3 8.5 3.5 3.5 6.5-8"})})}function a({className:t}){return(0,e.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,e.jsx)("path",{d:"m4 4 8 8M12 4l-8 8"})})}function g(){return(0,e.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",className:"stg:animate-spin","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M8 2a6 6 0 1 0 6 6"})})}t.s(["InlineEditText",0,function({value:t,onSave:o,placeholder:l="Click to edit",validate:c,variant:d="default",disabled:u,isSaving:x,error:m,className:f}){let[h,p]=(0,s.useState)(!1),[b,v]=(0,s.useState)(t),[j,y]=(0,s.useState)(null),k=(0,s.useRef)(null);(0,s.useEffect)(()=>{h&&(v(t),y(null),requestAnimationFrame(()=>k.current?.focus()))},[h,t]);let N=(0,s.useCallback)(async()=>{let e=b.trim();if(e===t)return void p(!1);if(c){let t=c(e);if(t)return void y(t)}await o(e)&&p(!1)},[b,t,c,o]),w=(0,s.useCallback)(()=>{p(!1),v(t),y(null)},[t]),C=(0,s.useCallback)(t=>{"Enter"===t.key?(t.preventDefault(),N()):"Escape"===t.key&&w()},[N,w]),M=j||m;return u||!h?(0,e.jsx)("div",{className:(0,n.cn)("stg:group/inline-edit",f),children:(0,e.jsxs)("button",{type:"button",onClick:()=>{u||p(!0)},disabled:u,className:(0,n.cn)("stg:inline-flex stg:w-full stg:items-center stg:gap-1.5 stg:rounded-md stg:px-1.5 stg:py-0.5 stg:text-left stg:transition-colors",!u&&"stg:hover:bg-accent-hover stg:cursor-pointer",u&&"stg:cursor-default","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-inset stg:focus-visible:ring-ring"),children:[(0,e.jsx)("span",{className:(0,n.cn)("stg:min-w-0 stg:truncate","heading"===d?"stg:text-lg stg:font-semibold stg:text-foreground":"stg:text-sm stg:text-foreground",!t&&"stg:text-muted-foreground stg:italic"),children:t||l}),!u&&(0,e.jsx)(r,{className:"stg:size-3 stg:shrink-0 stg:text-muted-foreground stg:opacity-0 stg:transition-opacity stg:group-hover/inline-edit:opacity-100"})]})}):(0,e.jsxs)("div",{className:(0,n.cn)("stg:flex stg:flex-col stg:gap-1",f),children:[(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-1.5",children:[(0,e.jsx)("input",{ref:k,type:"text",value:b,onChange:t=>{v(t.target.value),y(null)},onKeyDown:C,disabled:x,placeholder:l,className:(0,n.cn)("stg:flex-1 stg:rounded-md stg:border stg:border-border stg:bg-input-bg stg:px-2 stg:py-1 stg:text-sm stg:text-foreground","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring","stg:disabled:opacity-50","heading"===d&&"stg:text-lg stg:font-semibold",M&&"stg:border-destructive")}),(0,e.jsx)("button",{type:"button",onClick:N,disabled:x,"aria-label":"Save",className:(0,n.cn)("stg:inline-flex stg:size-7 stg:items-center stg:justify-center stg:rounded-md","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:x?(0,e.jsx)(g,{}):(0,e.jsx)(i,{className:"stg:size-3.5"})}),(0,e.jsx)("button",{type:"button",onClick:w,disabled:x,"aria-label":"Cancel",className:(0,n.cn)("stg:inline-flex stg:size-7 stg:items-center stg:justify-center stg:rounded-md","stg:border stg:border-border stg:bg-background stg:text-foreground stg:hover:bg-accent stg:hover:text-accent-foreground","stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:(0,e.jsx)(a,{className:"stg:size-3.5"})})]}),M&&(0,e.jsx)("p",{className:"stg:px-1 stg:text-xs stg:text-destructive",role:"alert",children:M})]})}])}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,10337,t=>{"use strict";var e=t.i(843476),s=t.i(271645),n=t.i(893976),r=t.i(468806);t.s(["ConfirmDialog",0,function({state:t,onConfirm:i,onCancel:a}){let g=(0,s.useCallback)(t=>{t||a()},[a]);if(!t)return null;let o="destructive"===t.variant;return(0,e.jsx)(r.DialogShell,{open:!0,onOpenChange:g,width:"sm","aria-label":t.title,children:(0,e.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-4 stg:p-6",children:[(0,e.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-1.5",children:[(0,e.jsx)("h3",{className:"stg:text-base stg:font-semibold stg:text-foreground",children:t.title}),(0,e.jsx)("p",{className:"stg:text-sm stg:text-muted-foreground",children:t.description})]}),(0,e.jsxs)("div",{className:"stg:flex stg:justify-end stg:gap-2",children:[(0,e.jsx)("button",{type:"button",onClick:a,className:(0,n.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium stg:transition-colors","stg:border stg:border-input stg:bg-background stg:text-foreground","stg:hover:bg-accent stg:hover:text-accent-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:t.cancelLabel??"Cancel"}),(0,e.jsx)("button",{type:"button",onClick:i,className:(0,n.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium stg:transition-colors","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring",o?"stg:bg-destructive stg:text-destructive-foreground stg:hover:bg-destructive-hover":"stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover"),children:t.confirmLabel??"Confirm"})]})]})})}])},966205,t=>{"use strict";var e=t.i(271645);t.s(["useConfirmAction",0,function(){let[t,s]=(0,e.useState)(null),n=(0,e.useCallback)(t=>new Promise(e=>{s({...t,resolve:e})}),[]),r=(0,e.useCallback)(()=>{t?.resolve(!0),s(null)},[t]),i=(0,e.useCallback)(()=>{t?.resolve(!1),s(null)},[t]);return(0,e.useMemo)(()=>({confirmState:t,confirm:n,handleConfirm:r,handleCancel:i}),[t,n,r,i])}])},475254,t=>{"use strict";var e=t.i(271645);let s=(...t)=>t.filter((t,e,s)=>!!t&&""!==t.trim()&&s.indexOf(t)===e).join(" ").trim(),n=t=>{let e=t.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,e,s)=>s?s.toUpperCase():e.toLowerCase());return e.charAt(0).toUpperCase()+e.slice(1)};var r={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,e.forwardRef)(({color:t="currentColor",size:n=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:g="",children:o,iconNode:l,...c},d)=>(0,e.createElement)("svg",{ref:d,...r,width:n,height:n,stroke:t,strokeWidth:a?24*Number(i)/Number(n):i,className:s("lucide",g),...!o&&!(t=>{for(let e in t)if(e.startsWith("aria-")||"role"===e||"title"===e)return!0;return!1})(c)&&{"aria-hidden":"true"},...c},[...l.map(([t,s])=>(0,e.createElement)(t,s)),...Array.isArray(o)?o:[o]]));t.s(["default",0,(t,r)=>{let a=(0,e.forwardRef)(({className:a,...g},o)=>(0,e.createElement)(i,{ref:o,iconNode:r,className:s(`lucide-${n(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${t}`,a),...g}));return a.displayName=n(t),a}],475254)},678745,t=>{"use strict";let e=(0,t.i(475254).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);t.s(["default",0,e])},845132,678784,916624,t=>{"use strict";var e=t.i(843476),s=t.i(893976),n=t.i(704077),r=t.i(678745);t.s(["CheckIcon",()=>r.default],678784);var r=r,i=t.i(364354);function a(t){return(0,e.jsx)(n.Menu.Root,{...t})}function g(t){return(0,e.jsx)(n.Menu.Trigger,{...t})}function o({align:t="start",alignOffset:r=0,side:a="bottom",sideOffset:g=4,className:l,...c}){let d=(0,i.useStigmerPortalContainer)();return(0,e.jsx)(n.Menu.Portal,{container:d,children:(0,e.jsx)(n.Menu.Positioner,{className:"stg:isolate stg:z-50 stg:outline-none",align:t,alignOffset:r,side:a,sideOffset:g,children:(0,e.jsx)(n.Menu.Popup,{className:(0,s.cn)("stg:bg-popover stg:text-popover-foreground stg:ring-foreground/10","stg:data-[side=bottom]:slide-in-from-top-2 stg:data-[side=inline-end]:slide-in-from-left-2 stg:data-[side=inline-start]:slide-in-from-right-2 stg:data-[side=left]:slide-in-from-right-2 stg:data-[side=right]:slide-in-from-left-2 stg:data-[side=top]:slide-in-from-bottom-2","stg:data-open:animate-in stg:data-open:fade-in-0 stg:data-open:zoom-in-95","stg:data-closed:animate-out stg:data-closed:fade-out-0 stg:data-closed:zoom-out-95","stg:z-50 stg:max-h-(--available-height) stg:w-(--anchor-width) stg:min-w-32 stg:origin-(--transform-origin) stg:overflow-x-hidden stg:overflow-y-auto stg:rounded-lg stg:p-1 stg:shadow-md stg:ring-1 stg:duration-100 stg:outline-none stg:data-closed:overflow-hidden",l),...c})})})}function l({className:t,variant:r="default",...i}){return(0,e.jsx)(n.Menu.Item,{"data-variant":r,className:(0,s.cn)("stg:focus:bg-accent stg:focus:text-accent-foreground stg:not-data-[variant=destructive]:focus:**:text-accent-foreground","stg:data-[variant=destructive]:text-destructive stg:data-[variant=destructive]:focus:bg-destructive-subtle stg:data-[variant=destructive]:focus:text-destructive stg:data-[variant=destructive]:*:[svg]:text-destructive","stg:relative stg:flex stg:cursor-default stg:items-center stg:gap-1.5 stg:rounded-md stg:px-1.5 stg:py-1 stg:text-sm stg:outline-hidden stg:select-none","stg:data-disabled:pointer-events-none stg:data-disabled:opacity-50","stg:[&_svg]:pointer-events-none stg:[&_svg]:shrink-0 stg:[&_svg:not([class*='size-'])]:size-4",t),...i})}function c({className:t,...r}){return(0,e.jsx)(n.Menu.Separator,{className:(0,s.cn)("stg:bg-border stg:-mx-1 stg:my-1 stg:h-px",t),...r})}function d({className:t,...s}){return(0,e.jsx)("div",{role:"group",className:t,...s})}function u({className:t,...n}){return(0,e.jsx)("span",{className:(0,s.cn)("stg:text-muted-foreground stg:block stg:px-1.5 stg:py-1 stg:text-[11px] stg:font-medium stg:uppercase stg:tracking-wider stg:select-none",t),...n})}t.s(["Menu",0,a,"MenuContent",0,o,"MenuGroup",0,d,"MenuItem",0,l,"MenuLabel",0,u,"MenuRadioGroup",0,function(t){return(0,e.jsx)(n.Menu.RadioGroup,{...t})},"MenuRadioItem",0,function({className:t,children:i,...a}){return(0,e.jsxs)(n.Menu.RadioItem,{className:(0,s.cn)("stg:focus:bg-accent stg:focus:text-accent-foreground stg:focus:**:text-accent-foreground","stg:relative stg:flex stg:cursor-default stg:items-center stg:gap-1.5 stg:rounded-md stg:py-1 stg:pr-8 stg:pl-1.5 stg:text-sm stg:outline-hidden stg:select-none","stg:data-disabled:pointer-events-none stg:data-disabled:opacity-50","stg:[&_svg]:pointer-events-none stg:[&_svg]:shrink-0 stg:[&_svg:not([class*='size-'])]:size-4",t),...a,children:[(0,e.jsx)("span",{className:"stg:pointer-events-none stg:absolute stg:right-2 stg:flex stg:items-center stg:justify-center",children:(0,e.jsx)(n.Menu.RadioItemIndicator,{children:(0,e.jsx)(r.default,{})})}),i]})},"MenuSeparator",0,c,"MenuTrigger",0,g],916624);let x=Object.assign(function({children:t}){return(0,e.jsx)(a,{children:t})},{Trigger:function({children:t,className:n,"aria-label":r="Actions"}){return(0,e.jsx)(g,{className:(0,s.cn)("stg:inline-flex stg:items-center stg:justify-center stg:rounded-md stg:p-1","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:data-popup-open:bg-accent stg:data-popup-open:text-foreground",n),"aria-label":r,children:t})},Content:function({children:t,align:n="end",className:r}){return(0,e.jsx)(o,{align:n,className:(0,s.cn)("stg:min-w-44",r),children:t})},Item:function({children:t,onSelect:n,icon:r,shortcut:i,variant:a="default",disabled:g,className:o}){return(0,e.jsxs)(l,{variant:a,disabled:g,onClick:n,className:(0,s.cn)("stg:justify-between",o),children:[(0,e.jsxs)("span",{className:"stg:flex stg:items-center stg:gap-2",children:[r,(0,e.jsx)("span",{children:t})]}),i&&(0,e.jsx)("kbd",{className:"stg:ml-auto stg:text-[11px] stg:tracking-widest stg:text-muted-foreground-subtle",children:i})]})},Separator:function({className:t}){return(0,e.jsx)(c,{className:t})},Group:function({children:t,label:s,className:n}){return(0,e.jsxs)(d,{className:n,children:[s&&(0,e.jsx)(u,{children:s}),t]})}});t.s(["ActionMenu",0,x],845132)},476007,t=>{"use strict";var e=t.i(843476),s=t.i(271645),n=t.i(610595),r=t.i(893976);let i={auth:"Authentication required",permission:"Access denied","not-found":"Not found",validation:"Invalid request",server:"Server error",unavailable:"Service unavailable",cancelled:"Request cancelled",unknown:"Something went wrong"};function a({className:t}){return(0,e.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:[(0,e.jsx)("path",{d:"M7.13 2.5a1 1 0 0 1 1.74 0l5.5 9.5A1 1 0 0 1 13.5 13.5h-11a1 1 0 0 1-.87-1.5l5.5-9.5z"}),(0,e.jsx)("path",{d:"M8 6v3"}),(0,e.jsx)("circle",{cx:"8",cy:"11",r:"0.5",fill:"currentColor",stroke:"none"})]})}function g({className:t}){return(0,e.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:[(0,e.jsx)("path",{d:"M8 1.5l5 2v4c0 3.5-2.5 5.5-5 6.5-2.5-1-5-3-5-6.5v-4l5-2z"}),(0,e.jsx)("path",{d:"M6 6.5l4 4M10 6.5l-4 4"})]})}function o({className:t}){return(0,e.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:(0,e.jsx)("path",{d:"M4 6l4 4 4-4"})})}function l({className:t}){return(0,e.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:[(0,e.jsx)("path",{d:"M2 6.5h4v-4"}),(0,e.jsx)("path",{d:"M3.5 11.5a5.5 5.5 0 1 0 .5-6l-2 1"})]})}t.s(["ErrorMessage",0,function({error:t,title:c,retry:d,className:u}){let[x,m]=(0,s.useState)(!1);if(!t)return null;let f=(0,n.classifyError)(t),h=(0,n.getUserMessage)(t),p=(0,n.getRpcMetadata)(t),b=(0,n.isRetryableError)(t);return(0,e.jsx)("div",{role:"alert",className:(0,r.cn)("stg:bg-destructive-subtle stg:border-destructive/20 stg:text-destructive stg:rounded-lg stg:border stg:p-4",u),children:(0,e.jsxs)("div",{className:"stg:flex stg:items-start stg:gap-3",children:["auth"===f||"permission"===f?(0,e.jsx)(g,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}):(0,e.jsx)(a,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}),(0,e.jsxs)("div",{className:"stg:min-w-0 stg:flex-1 stg:space-y-1",children:[(0,e.jsx)("p",{className:"stg:text-sm stg:font-medium",children:c??i[f]}),(0,e.jsx)("p",{className:"stg:text-destructive-muted stg:text-sm",children:h}),p&&(0,e.jsxs)("div",{className:"stg:pt-1",children:[(0,e.jsxs)("button",{type:"button",onClick:()=>m(t=>!t),className:"stg:text-destructive-muted stg:hover:text-destructive-muted stg:inline-flex stg:items-center stg:gap-1 stg:text-xs stg:transition-colors",children:[(0,e.jsx)(o,{className:(0,r.cn)("stg:size-3 stg:transition-transform",x&&"stg:rotate-180")}),"Technical details"]}),x&&(0,e.jsxs)("dl",{className:"stg:text-destructive-muted stg:mt-1.5 stg:space-y-0.5 stg:font-mono stg:text-xs",children:[(0,e.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,e.jsx)("dt",{className:"stg:shrink-0",children:"Method:"}),(0,e.jsx)("dd",{className:"stg:truncate",children:p.method})]}),(0,e.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,e.jsx)("dt",{className:"stg:shrink-0",children:"Path:"}),(0,e.jsx)("dd",{className:"stg:truncate",children:p.path})]})]})]})]}),d&&b&&(0,e.jsxs)("button",{type:"button",onClick:d,className:(0,r.cn)("stg:inline-flex stg:shrink-0 stg:items-center stg:gap-1.5 stg:rounded-md stg:border stg:px-2.5 stg:py-1.5 stg:text-xs stg:font-medium","stg:border-destructive/20 stg:text-destructive stg:hover:bg-destructive-subtle","stg:transition-colors"),children:[(0,e.jsx)(l,{className:"stg:size-3"}),"Retry"]})]})})}])},266442,t=>{"use strict";var e=t.i(843476),s=t.i(893976),n=t.i(188482);let r={ready:"Ready",running:"Running",pending:"Pending",degraded:"Degraded",failed:"Failed",disabled:"Disabled",draft:"Draft"};t.s(["StatusBadge",0,function({phase:t,label:i,tooltip:a,className:g}){let o=i??r[t],l=(0,e.jsxs)("span",{className:(0,s.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-full stg:px-2 stg:py-0.5 stg:text-[11px] stg:font-medium stg:leading-none",function(t){switch(t){case"ready":return"stg:bg-[var(--stgm-status-ready-subtle)] stg:text-[var(--stgm-status-ready)]";case"running":return"stg:bg-[var(--stgm-status-running-subtle)] stg:text-[var(--stgm-status-running)]";case"pending":return"stg:bg-[var(--stgm-status-pending-subtle)] stg:text-[var(--stgm-status-pending)]";case"degraded":return"stg:bg-[var(--stgm-status-degraded-subtle)] stg:text-[var(--stgm-status-degraded)]";case"failed":return"stg:bg-[var(--stgm-status-failed-subtle)] stg:text-[var(--stgm-status-failed)]";case"disabled":return"stg:bg-[var(--stgm-status-disabled-subtle)] stg:text-[var(--stgm-status-disabled)]";case"draft":return"stg:bg-[var(--stgm-status-draft-subtle)] stg:text-[var(--stgm-status-draft)]"}}(t),g),children:[(0,e.jsx)("span",{className:(0,s.cn)("stg:size-1.5 stg:shrink-0 stg:rounded-full",function(t){switch(t){case"ready":return"stg:bg-[var(--stgm-status-ready)]";case"running":return"stg:bg-[var(--stgm-status-running)]";case"pending":return"stg:bg-[var(--stgm-status-pending)]";case"degraded":return"stg:bg-[var(--stgm-status-degraded)]";case"failed":return"stg:bg-[var(--stgm-status-failed)]";case"disabled":return"stg:bg-[var(--stgm-status-disabled)]";case"draft":return"stg:bg-[var(--stgm-status-draft)]"}}(t)),"aria-hidden":"true"}),o]});return a?(0,e.jsxs)(n.Tooltip,{children:[(0,e.jsx)(n.TooltipTrigger,{render:(0,e.jsx)("span",{className:"stg:inline-flex"}),children:l}),(0,e.jsx)(n.TooltipContent,{side:"top",children:a})]}):l}])},193799,t=>{"use strict";var e=t.i(271645);t.s(["useCopyFeedback",0,function(){let[t,s]=(0,e.useState)(!1),n=(0,e.useRef)(null);(0,e.useEffect)(()=>()=>{null!==n.current&&clearTimeout(n.current)},[]);let r=(0,e.useCallback)(async t=>{try{await navigator.clipboard.writeText(t)}catch{return!1}return s(!0),null!==n.current&&clearTimeout(n.current),n.current=setTimeout(()=>s(!1),2e3),!0},[]);return(0,e.useMemo)(()=>({copy:r,copied:t}),[r,t])}])},927056,t=>{"use strict";var e=t.i(843476),s=t.i(271645),n=t.i(893976);t.s(["Tabs",0,function({tabs:t,activeTab:r,onTabChange:i,children:a,"aria-label":g,className:o}){let l=(0,s.useId)(),c=(0,s.useRef)(new Map),d=t=>`${l}-tab-${t}`,u=t=>`${l}-panel-${t}`,x=(0,s.useCallback)(t=>{c.current.get(t)?.focus(),i(t)},[i]),m=(0,s.useCallback)(e=>{let s=t.findIndex(t=>t.id===r);if(-1===s)return;let n=null;switch(e.key){case"ArrowRight":n=(s+1)%t.length;break;case"ArrowLeft":n=(s-1+t.length)%t.length;break;case"Home":n=0;break;case"End":n=t.length-1;break;default:return}e.preventDefault(),x(t[n].id)},[t,r,x]);return(0,e.jsxs)("div",{className:(0,n.cn)("stg:flex stg:flex-col",o),children:[(0,e.jsx)("div",{role:"tablist","aria-label":g,onKeyDown:m,className:"stg:flex stg:border-b stg:border-border",children:t.map(t=>{let s=t.id===r;return(0,e.jsxs)("button",{ref:e=>{e?c.current.set(t.id,e):c.current.delete(t.id)},id:d(t.id),role:"tab",type:"button","aria-selected":s,"aria-controls":u(t.id),tabIndex:s?0:-1,onClick:()=>i(t.id),"data-cursor-target":`tab-${t.id}`,className:(0,n.cn)("stg:relative stg:inline-flex stg:items-center stg:gap-1.5 stg:px-3 stg:py-2 stg:text-xs stg:font-medium stg:transition-colors","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring stg:focus-visible:ring-offset-1",s?"stg:text-foreground":"stg:text-muted-foreground stg:hover:text-foreground"),children:[t.icon,t.label,null!=t.badge&&t.badge>0&&(0,e.jsx)("span",{"aria-hidden":"true",className:(0,n.cn)("stg:inline-flex stg:min-w-[1.25rem] stg:items-center stg:justify-center stg:rounded-full stg:px-1 stg:py-px stg:text-[10px] stg:font-medium stg:leading-none",s?"stg:bg-primary-subtle stg:text-primary":"stg:bg-muted stg:text-muted-foreground"),children:t.badge}),s&&(0,e.jsx)("span",{className:"stg:absolute stg:inset-x-0 stg:-bottom-px stg:h-0.5 stg:bg-primary","aria-hidden":"true"})]},t.id)})}),(0,e.jsx)("div",{id:u(r),role:"tabpanel","aria-labelledby":d(r),tabIndex:0,className:"stg:min-h-0 stg:flex-1 stg:pt-4 stg:focus-visible:outline-none",children:a})]})}])},107141,t=>{"use strict";var e=t.i(271645),s=t.i(618566);let n="__placeholder__";t.s(["useStaticRouteParam",0,function(t,r=1){let i=(0,s.useParams)()[t];return(0,e.useMemo)(()=>{if(i!==n)return i;let t=window.location.pathname.split("/").filter(Boolean),e=t[t.length-r];return e&&e!==n?e:null},[i,r])}])},668093,652337,t=>{"use strict";var e=t.i(843476),s=t.i(893976),n=t.i(266442),r=t.i(927056),i=t.i(271645),a=t.i(845132);function g({primaryAction:t,actions:n,className:r}){let i=null!=n&&n.length>0;return t||i?(0,e.jsxs)("div",{className:(0,s.cn)("stg:flex stg:items-center stg:gap-2",r),children:[t&&(0,e.jsxs)("button",{type:"button",onClick:t.onAction,disabled:t.disabled,className:(0,s.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium stg:transition-colors","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:[t.icon,t.label]}),i&&(0,e.jsx)(o,{actions:n})]}):null}function o({actions:t}){var s;let n=(s=t,(0,i.useMemo)(()=>{let t=new Map;for(let e of s){let s=e.group??"__default",n=t.get(s);n?n.push(e):t.set(s,[e])}return Array.from(t.entries()).map(([t,e])=>({key:t,items:e}))},[s]));return(0,e.jsxs)(a.ActionMenu,{children:[(0,e.jsx)(a.ActionMenu.Trigger,{"aria-label":"More actions",children:(0,e.jsx)(l,{className:"stg:size-4"})}),(0,e.jsx)(a.ActionMenu.Content,{children:n.map((t,s)=>(0,e.jsxs)(a.ActionMenu.Group,{children:[s>0&&(0,e.jsx)(a.ActionMenu.Separator,{}),t.items.map(t=>(0,e.jsx)(a.ActionMenu.Item,{icon:t.icon,shortcut:t.shortcut,variant:t.variant,disabled:t.disabled,onSelect:t.onAction,children:t.label},t.id))]},t.key))})]})}function l({className:t}){return(0,e.jsxs)("svg",{className:t,viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:[(0,e.jsx)("circle",{cx:"8",cy:"3",r:"1.25"}),(0,e.jsx)("circle",{cx:"8",cy:"8",r:"1.25"}),(0,e.jsx)("circle",{cx:"8",cy:"13",r:"1.25"})]})}function c({header:t,visibilityControl:s,metaExtra:r}){let{name:i,nameElement:a,org:g,slug:o,qualifiedSlug:l,description:x,iconUrl:m,icon:f,createdAt:h,updatedAt:p,status:b,statusLabel:v}=t,j=o&&o!==i&&!l;return(0,e.jsxs)("div",{className:"stg:flex stg:min-w-0 stg:items-start stg:gap-3",children:[m?(0,e.jsx)("img",{src:m,alt:"",className:"stg:mt-0.5 stg:size-8 stg:shrink-0 stg:rounded stg:object-cover"}):f?(0,e.jsx)("span",{className:"stg:mt-1 stg:shrink-0",children:f}):null,(0,e.jsxs)("div",{className:"stg:min-w-0 stg:flex-1",children:[(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[a??(0,e.jsx)("h2",{className:"stg:truncate stg:text-lg stg:font-semibold stg:text-foreground",children:i}),j&&(0,e.jsx)("code",{className:"stg:shrink-0 stg:rounded stg:bg-muted stg:px-1.5 stg:py-0.5 stg:text-xs stg:font-medium stg:text-muted-foreground",children:o}),b&&(0,e.jsx)(n.StatusBadge,{phase:b,label:v}),s]}),l&&(0,e.jsx)("span",{className:"stg:mt-0.5 stg:block stg:truncate stg:font-mono stg:text-xs stg:text-muted-foreground",children:l}),(0,e.jsxs)("div",{className:"stg:mt-0.5 stg:flex stg:flex-wrap stg:items-center stg:gap-x-1.5 stg:text-xs stg:text-muted-foreground",children:[g&&(0,e.jsx)("span",{children:g}),r,h&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d,{}),(0,e.jsxs)("span",{children:["Created ",u(h)]})]}),p&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(d,{}),(0,e.jsxs)("span",{children:["Updated ",u(p)]})]})]}),x&&(0,e.jsx)("p",{className:"stg:mt-2 stg:text-sm stg:text-muted-foreground",children:x})]})]})}function d(){return(0,e.jsx)("span",{className:"stg:shrink-0","aria-hidden":"true",children:"·"})}function u(t){return t.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}function x({className:t}){return(0,e.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M11.5 1.5a2.121 2.121 0 0 1 3 3L5 14l-4 1 1-4Z"})})}t.s(["ResourceDetailShell",0,function({header:t,visibilityControl:n,headerMetaExtra:i,headerBanner:a,primaryAction:o,actions:l,tabs:d,activeTab:u,onTabChange:x,tabsAriaLabel:m,children:f,className:h}){let p=null!=d&&d.length>0;return(0,e.jsxs)("div",{className:(0,s.cn)("stg:flex stg:flex-col stg:gap-6",h),children:[a,(0,e.jsxs)("div",{className:"stg:flex stg:items-start stg:justify-between stg:gap-4",children:[(0,e.jsx)(c,{header:t,visibilityControl:n,metaExtra:i}),(0,e.jsx)(g,{primaryAction:o,actions:l,className:"stg:shrink-0"})]}),p&&u&&x?(0,e.jsx)(r.Tabs,{tabs:d,activeTab:u,onTabChange:x,"aria-label":m,children:f}):f]})}],668093),t.s(["Section",0,function({title:t,count:n,headerActions:r,onEdit:i,scrollTarget:a,children:g,className:o}){return(0,e.jsxs)("section",{className:o,"data-scroll-target":a,children:[(0,e.jsxs)("div",{className:"stg:mb-2 stg:flex stg:items-center stg:gap-2",children:[(0,e.jsx)("h3",{className:"stg:text-xs stg:font-medium stg:uppercase stg:tracking-wider stg:text-muted-foreground",children:t}),null!=n&&n>0&&(0,e.jsx)("span",{className:"stg:inline-flex stg:size-5 stg:items-center stg:justify-center stg:rounded-full stg:bg-muted stg:text-[10px] stg:font-semibold stg:text-muted-foreground",children:n}),(r||i)&&(0,e.jsxs)("div",{className:"stg:ml-auto stg:flex stg:items-center stg:gap-1",children:[r,i&&(0,e.jsx)("button",{type:"button",onClick:i,"aria-label":`Edit ${t.toLowerCase()}`,className:(0,s.cn)("stg:inline-flex stg:size-6 stg:items-center stg:justify-center stg:rounded-md stg:text-muted-foreground","stg:hover:bg-accent-hover stg:hover:text-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:transition-colors"),children:(0,e.jsx)(x,{className:"stg:size-3.5"})})]})]}),(0,e.jsx)("div",{className:"stg:overflow-hidden stg:rounded-lg stg:border stg:border-border",children:g})]})}],652337)},261722,t=>{"use strict";var e=t.i(843476),s=t.i(271645),n=t.i(893976);function r({className:t}){return(0,e.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M11.5 1.5a2.121 2.121 0 0 1 3 3L5 14l-4 1 1-4Z"})})}function i(){return(0,e.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",className:"stg:animate-spin","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M8 2a6 6 0 1 0 6 6"})})}t.s(["InlineEditTextarea",0,function({value:t,onSave:a,placeholder:g="Click to edit",validate:o,minRows:l=3,disabled:c,isSaving:d,error:u,className:x}){let[m,f]=(0,s.useState)(!1),[h,p]=(0,s.useState)(t),[b,v]=(0,s.useState)(null),j=(0,s.useRef)(null);(0,s.useEffect)(()=>{m&&(p(t),v(null),requestAnimationFrame(()=>{let t=j.current;t&&(t.focus(),t.selectionStart=t.value.length)}))},[m,t]),(0,s.useEffect)(()=>{let t=j.current;t&&(t.style.height="auto",t.style.height=`${t.scrollHeight}px`)},[h,m]);let y=(0,s.useCallback)(async()=>{if(h===t)return void f(!1);if(o){let t=o(h);if(t)return void v(t)}await a(h)&&f(!1)},[h,t,o,a]),k=(0,s.useCallback)(()=>{f(!1),p(t),v(null)},[t]),N=(0,s.useCallback)(t=>{"Enter"===t.key&&(t.ctrlKey||t.metaKey)?(t.preventDefault(),y()):"Escape"===t.key&&k()},[y,k]),w=b||u;return c||!m?(0,e.jsx)("div",{className:(0,n.cn)("stg:group/inline-edit",x),children:(0,e.jsx)("button",{type:"button",onClick:()=>{c||f(!0)},disabled:c,className:(0,n.cn)("stg:w-full stg:rounded-md stg:px-2 stg:py-1.5 stg:text-left stg:transition-colors",!c&&"stg:hover:bg-accent-hover stg:cursor-pointer",c&&"stg:cursor-default","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-inset stg:focus-visible:ring-ring"),children:(0,e.jsxs)("div",{className:"stg:flex stg:items-start stg:justify-between stg:gap-2",children:[(0,e.jsx)("pre",{className:(0,n.cn)("stg:min-w-0 stg:whitespace-pre-wrap stg:break-words stg:font-mono stg:text-sm stg:text-foreground",!t&&"stg:text-muted-foreground stg:italic stg:font-sans"),children:t||g}),!c&&(0,e.jsx)(r,{className:"stg:mt-0.5 stg:size-3 stg:shrink-0 stg:text-muted-foreground stg:opacity-0 stg:transition-opacity stg:group-hover/inline-edit:opacity-100"})]})})}):(0,e.jsxs)("div",{className:(0,n.cn)("stg:flex stg:flex-col stg:gap-1.5",x),children:[(0,e.jsx)("textarea",{ref:j,value:h,onChange:t=>{p(t.target.value),v(null)},onKeyDown:N,disabled:d,placeholder:g,rows:l,className:(0,n.cn)("stg:w-full stg:resize-y stg:rounded-md stg:border stg:border-border stg:bg-input-bg stg:px-3 stg:py-2 stg:font-mono stg:text-sm stg:text-foreground","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring","stg:disabled:opacity-50",w&&"stg:border-destructive")}),(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-between",children:[(0,e.jsx)("span",{className:"stg:text-[10px] stg:text-muted-foreground",children:d?"Saving...":"Ctrl+Enter to save, Escape to cancel"}),(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-1.5",children:[(0,e.jsx)("button",{type:"button",onClick:k,disabled:d,className:(0,n.cn)("stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium","stg:border stg:border-border stg:bg-background stg:text-foreground stg:hover:bg-accent stg:hover:text-accent-foreground","stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:"Cancel"}),(0,e.jsxs)("button",{type:"button",onClick:y,disabled:d,className:(0,n.cn)("stg:inline-flex stg:items-center stg:gap-1 stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:[d&&(0,e.jsx)(i,{}),"Save"]})]})]}),w&&(0,e.jsx)("p",{className:"stg:px-1 stg:text-xs stg:text-destructive",role:"alert",children:w})]})}])},484763,t=>{"use strict";var e=t.i(843476),s=t.i(271645),n=t.i(981922),r=t.i(213149);t.s(["useManageAccess",0,function({resource:t,visibility:i,extraSection:a,label:g="Manage access"}){let[o,l]=(0,s.useState)(!1),{allowed:c}=(0,n.useCheckPermission)(t?{kind:t.kindString,id:t.id}:null,"can_view_access"),d=(0,s.useCallback)(()=>l(!0),[]);return{action:t&&c?{id:"manage-access",label:g,group:"sharing",onAction:d}:null,dialog:t?(0,e.jsx)(r.ManageAccessDialog,{open:o,onOpenChange:l,resource:t,visibility:i,extraSection:a}):null,open:d,isOpen:o}}])},141249,t=>{"use strict";var e=t.i(843476);t.s(["PluginIcon",0,function({className:t}){return(0,e.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M6 2.5a1.5 1.5 0 0 1 3 0V4h2.5A1.5 1.5 0 0 1 13 5.5V8h-1.5a1.5 1.5 0 0 0 0 3H13v2.5a1.5 1.5 0 0 1-1.5 1.5H9v-1.5a1.5 1.5 0 0 0-3 0V15H3.5A1.5 1.5 0 0 1 2 13.5V11h1.5a1.5 1.5 0 0 0 0-3H2V5.5A1.5 1.5 0 0 1 3.5 4H6V2.5Z"})})}])},292420,t=>{"use strict";var e=t.i(843476),s=t.i(893976),n=t.i(141249);t.s(["ManagedByPluginNotice",0,function({plugin:t,onPluginClick:r,className:i}){if(null===t)return null;let a=t.metadata,g=a?.name||a?.slug||"a plugin",o=a?{org:a.org,slug:a.slug}:null;return(0,e.jsxs)("div",{role:"note",className:(0,s.cn)("stg:flex stg:items-start stg:gap-2 stg:rounded-md stg:border stg:border-border stg:bg-muted stg:px-3 stg:py-2 stg:text-sm stg:text-foreground",i),children:[(0,e.jsx)(n.PluginIcon,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0 stg:text-muted-foreground"}),(0,e.jsxs)("p",{children:["Installed by the plugin"," ",r&&o?(0,e.jsx)("button",{type:"button",onClick:()=>r(o),className:"stg:cursor-pointer stg:font-medium stg:underline stg:decoration-dotted stg:underline-offset-2 stg:hover:text-primary",children:g}):(0,e.jsx)("span",{className:"stg:font-medium",children:g}),". To change it, change the plugin and push it again; to customise, compose your own agent over its skills and servers."]})]})}])},473489,t=>{"use strict";var e=t.i(271645),s=t.i(910304),n=t.i(586108),r=t.i(583093);let i="stigmer.ai/plugin";t.s(["PLUGIN_LABEL",0,i,"useManagingPlugin",0,function(t){let a=(0,n.useStigmer)(),g=t?.[i]??null,{data:o,isLoading:l}=(0,r.useFetch)(g?async()=>{try{return await a.plugin.get(g)}catch(t){if((0,s.isNotFound)(t))return null;throw t}}:null,[g,a],null);return(0,e.useMemo)(()=>({plugin:o,isLoading:l}),[o,l])}])},244990,t=>{"use strict";var e=t.i(843476),s=t.i(271645),n=t.i(893976);function r({className:t}){return(0,e.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M11.5 1.5a2.121 2.121 0 0 1 3 3L5 14l-4 1 1-4Z"})})}function i({className:t}){return(0,e.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,e.jsx)("path",{d:"m3 8.5 3.5 3.5 6.5-8"})})}function a({className:t}){return(0,e.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,e.jsx)("path",{d:"m4 4 8 8M12 4l-8 8"})})}function g(){return(0,e.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",className:"stg:animate-spin","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M8 2a6 6 0 1 0 6 6"})})}t.s(["InlineEditText",0,function({value:t,onSave:o,placeholder:l="Click to edit",validate:c,variant:d="default",disabled:u,isSaving:x,error:m,className:f}){let[h,p]=(0,s.useState)(!1),[b,v]=(0,s.useState)(t),[j,y]=(0,s.useState)(null),k=(0,s.useRef)(null);(0,s.useEffect)(()=>{h&&(v(t),y(null),requestAnimationFrame(()=>k.current?.focus()))},[h,t]);let N=(0,s.useCallback)(async()=>{let e=b.trim();if(e===t)return void p(!1);if(c){let t=c(e);if(t)return void y(t)}await o(e)&&p(!1)},[b,t,c,o]),w=(0,s.useCallback)(()=>{p(!1),v(t),y(null)},[t]),C=(0,s.useCallback)(t=>{"Enter"===t.key?(t.preventDefault(),N()):"Escape"===t.key&&w()},[N,w]),M=j||m;return u||!h?(0,e.jsx)("div",{className:(0,n.cn)("stg:group/inline-edit",f),children:(0,e.jsxs)("button",{type:"button",onClick:()=>{u||p(!0)},disabled:u,className:(0,n.cn)("stg:inline-flex stg:w-full stg:items-center stg:gap-1.5 stg:rounded-md stg:px-1.5 stg:py-0.5 stg:text-left stg:transition-colors",!u&&"stg:hover:bg-accent-hover stg:cursor-pointer",u&&"stg:cursor-default","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-inset stg:focus-visible:ring-ring"),children:[(0,e.jsx)("span",{className:(0,n.cn)("stg:min-w-0 stg:truncate","heading"===d?"stg:text-lg stg:font-semibold stg:text-foreground":"stg:text-sm stg:text-foreground",!t&&"stg:text-muted-foreground stg:italic"),children:t||l}),!u&&(0,e.jsx)(r,{className:"stg:size-3 stg:shrink-0 stg:text-muted-foreground stg:opacity-0 stg:transition-opacity stg:group-hover/inline-edit:opacity-100"})]})}):(0,e.jsxs)("div",{className:(0,n.cn)("stg:flex stg:flex-col stg:gap-1",f),children:[(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-1.5",children:[(0,e.jsx)("input",{ref:k,type:"text",value:b,onChange:t=>{v(t.target.value),y(null)},onKeyDown:C,disabled:x,placeholder:l,className:(0,n.cn)("stg:flex-1 stg:rounded-md stg:border stg:border-border stg:bg-input-bg stg:px-2 stg:py-1 stg:text-sm stg:text-foreground","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring","stg:disabled:opacity-50","heading"===d&&"stg:text-lg stg:font-semibold",M&&"stg:border-destructive")}),(0,e.jsx)("button",{type:"button",onClick:N,disabled:x,"aria-label":"Save",className:(0,n.cn)("stg:inline-flex stg:size-7 stg:items-center stg:justify-center stg:rounded-md","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:x?(0,e.jsx)(g,{}):(0,e.jsx)(i,{className:"stg:size-3.5"})}),(0,e.jsx)("button",{type:"button",onClick:w,disabled:x,"aria-label":"Cancel",className:(0,n.cn)("stg:inline-flex stg:size-7 stg:items-center stg:justify-center stg:rounded-md","stg:border stg:border-border stg:bg-background stg:text-foreground stg:hover:bg-accent stg:hover:text-accent-foreground","stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:(0,e.jsx)(a,{className:"stg:size-3.5"})})]}),M&&(0,e.jsx)("p",{className:"stg:px-1 stg:text-xs stg:text-destructive",role:"alert",children:M})]})}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,691444,e=>{"use strict";var t=e.i(430182);let s={[t.IamRole.iam_role_unspecified]:"unspecified",[t.IamRole.owner]:"owner",[t.IamRole.admin]:"admin",[t.IamRole.member]:"member",[t.IamRole.viewer]:"viewer",[t.IamRole.participant]:"participant"},r={owner:t.IamRole.owner,admin:t.IamRole.admin,member:t.IamRole.member,viewer:t.IamRole.viewer,participant:t.IamRole.participant},i={[t.IamRole.iam_role_unspecified]:"Unspecified",[t.IamRole.owner]:"Owner",[t.IamRole.admin]:"Admin",[t.IamRole.member]:"Member",[t.IamRole.viewer]:"Viewer",[t.IamRole.participant]:"Participant"},n={[t.IamRole.iam_role_unspecified]:"",[t.IamRole.owner]:"Full access including delete and access management",[t.IamRole.admin]:"Edit access and member management",[t.IamRole.member]:"Standard access to organization resources",[t.IamRole.viewer]:"Read-only access",[t.IamRole.participant]:"Reply to customers and manage conversation takeover"};e.s(["iamRoleDescription",0,function(e){return n[e]??""},"iamRoleDisplayName",0,function(e){return i[e]??"Unknown"},"iamRoleFromString",0,function(e){return r[e]},"iamRoleToString",0,function(e){return s[e]??"unspecified"}])},818094,e=>{"use strict";var t=e.i(170255),s=e.i(430182);let r=new Map([[t.ApiResourceKind.identity_provider,[s.IamRole.viewer]],[t.ApiResourceKind.oauth_app,[s.IamRole.owner,s.IamRole.viewer]],[t.ApiResourceKind.platform_client,[s.IamRole.owner,s.IamRole.viewer]],[t.ApiResourceKind.team,[s.IamRole.member]],[t.ApiResourceKind.organization,[s.IamRole.owner,s.IamRole.admin,s.IamRole.member,s.IamRole.viewer]],[t.ApiResourceKind.agent,[s.IamRole.owner,s.IamRole.viewer]],[t.ApiResourceKind.session,[s.IamRole.owner,s.IamRole.viewer]],[t.ApiResourceKind.skill,[s.IamRole.owner,s.IamRole.viewer]],[t.ApiResourceKind.mcp_server,[s.IamRole.owner,s.IamRole.viewer]],[t.ApiResourceKind.agent_instance,[s.IamRole.owner,s.IamRole.viewer]],[t.ApiResourceKind.agent_share,[s.IamRole.owner,s.IamRole.viewer]],[t.ApiResourceKind.agent_channel,[s.IamRole.owner,s.IamRole.viewer,s.IamRole.participant]],[t.ApiResourceKind.channel_app,[s.IamRole.owner,s.IamRole.viewer]],[t.ApiResourceKind.workflow,[s.IamRole.owner,s.IamRole.viewer]],[t.ApiResourceKind.workflow_instance,[s.IamRole.owner,s.IamRole.viewer]],[t.ApiResourceKind.workflow_execution,[s.IamRole.owner,s.IamRole.viewer]],[t.ApiResourceKind.environment,[s.IamRole.owner,s.IamRole.viewer]],[t.ApiResourceKind.artifact,[s.IamRole.owner,s.IamRole.viewer]],[t.ApiResourceKind.schedule,[s.IamRole.owner,s.IamRole.viewer]],[t.ApiResourceKind.plugin,[s.IamRole.owner,s.IamRole.viewer]]]),i=new Map([[t.ApiResourceKind.agent,[s.IamRole.viewer]],[t.ApiResourceKind.skill,[s.IamRole.viewer]],[t.ApiResourceKind.mcp_server,[s.IamRole.viewer]],[t.ApiResourceKind.agent_instance,[s.IamRole.viewer]],[t.ApiResourceKind.agent_channel,[s.IamRole.viewer,s.IamRole.participant]],[t.ApiResourceKind.workflow,[s.IamRole.viewer]],[t.ApiResourceKind.workflow_instance,[s.IamRole.viewer]],[t.ApiResourceKind.workflow_execution,[s.IamRole.viewer]],[t.ApiResourceKind.schedule,[s.IamRole.viewer]],[t.ApiResourceKind.plugin,[s.IamRole.viewer]]]),n=Object.freeze([]);e.s(["getGrantableRoles",0,function(e){return r.get(e)??n},"getTeamGrantableRoles",0,function(e){return i.get(e)??n},"hasGrantableRoles",0,function(e){let t=r.get(e);return void 0!==t&&t.length>0},"hasTeamGrantableRoles",0,function(e){let t=i.get(e);return void 0!==t&&t.length>0},"isRoleGrantable",0,function(e,t){let s=r.get(e);return void 0!==s&&s.includes(t)},"isRoleTeamGrantable",0,function(e,t){let s=i.get(e);return void 0!==s&&s.includes(t)}],818094)},146312,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(893976),i=e.i(869803),n=e.i(818094),a=e.i(691444);let l=[];e.s(["RoleSelector",0,function({kind:e,onSelect:o,selected:c,defaultRole:d,disabled:g=!1,granteeKind:u="identity_account",omitRoles:m,className:p}){let x=(0,s.useId)(),{options:h,selected:f,select:b}=function(e,t,r="identity_account",i=l){let[o,c]=(0,s.useState)(t??null),d=(0,s.useMemo)(()=>{if(null===e)return[];let t=new Set(i);return("team"===r?(0,n.getTeamGrantableRoles)(e):(0,n.getGrantableRoles)(e)).filter(e=>!t.has(e)).map(e=>({role:e,label:(0,a.iamRoleDisplayName)(e),description:(0,a.iamRoleDescription)(e),value:(0,a.iamRoleToString)(e)}))},[e,r,i]),g=(0,s.useMemo)(()=>null!==o?(0,a.iamRoleToString)(o):"",[o]),u=(0,s.useCallback)(e=>c(e),[]),m=(0,s.useCallback)(()=>c(null),[]);return(0,s.useMemo)(()=>({options:d,selected:o,selectedValue:g,select:u,clear:m,hasOptions:d.length>0}),[d,o,g,u,m])}(e,d,u,m),v=void 0!==c?c:f;return 0===h.length?null:(0,t.jsxs)("fieldset",{className:(0,r.cn)(i.UNSTYLED_FIELDSET,"stg:space-y-1.5",p),children:[(0,t.jsx)("legend",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:"Role"}),(0,t.jsx)("div",{className:"stg:flex stg:flex-wrap stg:gap-2",children:h.map(e=>{let s=v===e.role;return(0,t.jsxs)("label",{className:(0,r.cn)("stg:inline-flex stg:cursor-pointer stg:flex-col stg:rounded-md stg:border stg:px-3 stg:py-1.5 stg:text-xs stg:transition-colors",s?"stg:border-primary stg:bg-primary-subtle stg:text-primary stg:font-medium":"stg:border-input stg:bg-background stg:text-muted-foreground stg:hover:border-border stg:hover:text-foreground",g&&"stg:pointer-events-none stg:opacity-50"),children:[(0,t.jsx)("input",{type:"radio",name:x,value:e.value,checked:s,disabled:g,onChange:()=>{var t;b(t=e.role),o?.(t)},className:"stg:sr-only"}),(0,t.jsx)("span",{children:e.label}),(0,t.jsx)("span",{className:"stg:text-[0.625rem] stg:text-muted-foreground stg:font-normal stg:mt-0.5",children:e.description})]},e.value)})})]})}],146312)},3422,11493,554212,e=>{"use strict";var t=e.i(424407),s=e.i(304532),r=e.i(421415),i=e.i(988158),n=e.i(761867);let a=(0,t.fileDesc)("CiFhaS9zdGlnbWVyL2lhbS90ZWFtL3YxL3NwZWMucHJvdG8SFmFpLnN0aWdtZXIuaWFtLnRlYW0udjEiKQoIVGVhbVNwZWMSHQoLZGVzY3JpcHRpb24YASABKAlCCLpIBXIDGPQDYgZwcm90bzM",[n.file_buf_validate_validate]),l=(0,s.messageDesc)(a,0);e.s(["TeamSpecSchema",0,l,"file_ai_stigmer_iam_team_v1_spec",0,a],11493);let o=(0,t.fileDesc)("CiBhaS9zdGlnbWVyL2lhbS90ZWFtL3YxL2FwaS5wcm90bxIWYWkuc3RpZ21lci5pYW0udGVhbS52MSKXAgoEVGVhbRItCgthcGlfdmVyc2lvbhgBIAEoCUIYukgVchMKEWlhbS5zdGlnbWVyLmFpL3YxEhkKBGtpbmQYAiABKAlCC7pICHIGCgRUZWFtEk0KCG1ldGFkYXRhGAMgASgLMjMuYWkuc3RpZ21lci5jb21tb25zLmFwaXJlc291cmNlLkFwaVJlc291cmNlTWV0YWRhdGFCBrpIA8gBARIuCgRzcGVjGAQgASgLMiAuYWkuc3RpZ21lci5pYW0udGVhbS52MS5UZWFtU3BlYxJGCgZzdGF0dXMYBSABKAsyNi5haS5zdGlnbWVyLmNvbW1vbnMuYXBpcmVzb3VyY2UuQXBpUmVzb3VyY2VBdWRpdFN0YXR1c2IGcHJvdG8z",[r.file_ai_stigmer_commons_apiresource_metadata,i.file_ai_stigmer_commons_apiresource_status,a,n.file_buf_validate_validate]),c=(0,s.messageDesc)(o,0);e.s(["TeamSchema",0,c,"file_ai_stigmer_iam_team_v1_api",0,o],554212);let d=(0,t.fileDesc)("Ch9haS9zdGlnbWVyL2lhbS90ZWFtL3YxL2lvLnByb3RvEhZhaS5zdGlnbWVyLmlhbS50ZWFtLnYxIjYKBVRlYW1zEi0KB2VudHJpZXMYASADKAsyHC5haS5zdGlnbWVyLmlhbS50ZWFtLnYxLlRlYW0iKwoTTGlzdFRlYW1zQnlPcmdJbnB1dBIUCgNvcmcYASABKAlCB7pIBHICEAFiBnByb3RvMw",[o,n.file_buf_validate_validate]),g=(0,s.messageDesc)(d,1);e.s(["ListTeamsByOrgInputSchema",0,g,"file_ai_stigmer_iam_team_v1_io",0,d],3422)},564035,288441,890079,e=>{"use strict";var t=e.i(891287),s=e.i(452026),r=e.i(632897),i=e.i(586108),n=e.i(583093);e.s(["useResourceAccess",0,function(e,a){let l=(0,i.useStigmer)(),o=e?.kind??null,c=e?.id??null,d=a?.includeInherited??!1,{data:g,isLoading:u,isRefetching:m,error:p,refetch:x}=(0,n.useFetch)(o&&c?()=>{let e=(0,t.create)(s.ListResourceAccessInputSchema,{resource:(0,t.create)(r.ApiResourceRefSchema,{kind:o,id:c}),includeInherited:d});return l.iamPolicy.listResourceAccessByPrincipal(e).then(e=>[...e.entries])}:null,[o,c,d,l],[]);return{members:g,isLoading:u,isRefetching:m,error:p,refetch:x}}],564035);var a=e.i(271645),l=e.i(326283);e.s(["useCreateIamPolicy",0,function(){let e=(0,i.useStigmer)(),[t,s]=(0,a.useState)(!1),[r,n]=(0,a.useState)(null),o=(0,a.useCallback)(()=>n(null),[]);return{create:(0,a.useCallback)(async t=>{s(!0),n(null);try{return await e.iamPolicy.create(t)}catch(e){throw n((0,l.toError)(e)),e}finally{s(!1)}},[e]),isCreating:t,error:r,clearError:o}}],288441),e.s(["useDeleteIamPolicy",0,function(){let e=(0,i.useStigmer)(),[t,s]=(0,a.useState)(!1),[r,n]=(0,a.useState)(null),o=(0,a.useCallback)(()=>n(null),[]);return{remove:(0,a.useCallback)(async t=>{s(!0),n(null);try{return await e.iamPolicy.delete(t)}catch(e){throw n((0,l.toError)(e)),e}finally{s(!1)}},[e]),isDeleting:t,error:r,clearError:o}}],890079)},32011,e=>{"use strict";var t=e.i(843476),s=e.i(893976),r=e.i(188482);function i(e){return e?.identityOrigin?.providerDisplayName??""}e.s(["ProviderBadge",0,function({principal:e,className:n}){let a=i(e);return a?(0,t.jsxs)(r.Tooltip,{children:[(0,t.jsx)(r.TooltipTrigger,{render:(0,t.jsx)("span",{className:(0,s.cn)("stg:inline-flex stg:items-center stg:rounded stg:px-1.5 stg:py-0.5 stg:text-[0.6rem] stg:font-medium","stg:bg-muted-subtle stg:text-muted-foreground",n)}),children:a}),(0,t.jsx)(r.TooltipContent,{side:"top",children:`Identity provider: ${a}`})]}):null},"providerLabel",0,i])},14606,e=>{"use strict";let t=(0,e.i(475254).default)("users-round",[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]]);e.s(["UsersRound",0,t],14606)},884561,e=>{"use strict";var t=e.i(891287),s=e.i(170255),r=e.i(632897);let i=s.ApiResourceKind[s.ApiResourceKind.identity_account],n=s.ApiResourceKind[s.ApiResourceKind.team],a="member";function l(e){return{kind:"identity_account",id:e}}function o(e){return{kind:"team",id:e}}e.s(["granteeFromView",0,function(e){if(e.id){if(e.kind===i&&""===e.relation)return l(e.id);if(e.kind===n&&e.relation===a)return o(e.id)}},"granteeKey",0,function(e){return`${e.kind}:${e.id}`},"granteeRef",0,function(e){switch(e.kind){case"identity_account":return(0,t.create)(r.ApiResourceRefSchema,{kind:i,id:e.id});case"team":return(0,t.create)(r.ApiResourceRefSchema,{kind:n,id:e.id,relation:a});default:return e}},"personGrantee",0,l,"teamGrantee",0,o])},681094,e=>{"use strict";var t=e.i(271645),s=e.i(891287),r=e.i(170255),i=e.i(632897),n=e.i(818094),a=e.i(884561),l=e.i(691444),o=e.i(597744),c=e.i(326283),d=e.i(564035),g=e.i(288441),u=e.i(890079);e.s(["useShareFlow",0,function(e){let m=(0,t.useMemo)(()=>e?{kind:e.kind,id:e.id}:null,[e?.kind,e?.id]),{members:p,isLoading:x,isRefetching:h,error:f,refetch:b}=(0,d.useResourceAccess)(m),v=e?.resourceKind??null,{roles:R,hasRoles:w}=(0,t.useMemo)(()=>null===v?{roles:[],hasRoles:!1}:{roles:(0,n.getGrantableRoles)(v),hasRoles:(0,n.hasGrantableRoles)(v)},[v]),y=(0,o.useResourceAvailable)(r.ApiResourceKind.team),j=(0,t.useMemo)(()=>null===v?[]:(0,n.getTeamGrantableRoles)(v),[v]),k=y&&j.length>0,{create:I,isCreating:S,error:N,clearError:A}=(0,g.useCreateIamPolicy)(),{remove:_}=(0,u.useDeleteIamPolicy)(),[C,K]=(0,t.useState)(!1),[M,G]=(0,t.useState)(null),L=(0,t.useRef)(e);L.current=e;let T=(0,t.useRef)(p);T.current=p;let B=(0,t.useCallback)(async(e,t)=>{let r=L.current;r&&(await I((0,s.create)(i.IamPolicySpecSchema,{principal:(0,a.granteeRef)(e),resource:(0,s.create)(i.ApiResourceRefSchema,{kind:r.kind,id:r.id}),relation:(0,l.iamRoleToString)(t)})),b())},[I,b]),W=(0,t.useCallback)(async e=>{let t=L.current;if(!t)return;let r=(0,a.granteeKey)(e),n=T.current.filter(e=>{let t=e.principal?(0,a.granteeFromView)(e.principal):void 0;return void 0!==t&&(0,a.granteeKey)(t)===r}).flatMap(e=>e.roles).filter(e=>!e.isInherited&&e.role?.code).map(e=>e.role?.code??"");K(!0),G(null);try{for(let r of new Set(n))await _((0,s.create)(i.IamPolicySpecSchema,{principal:(0,a.granteeRef)(e),resource:(0,s.create)(i.ApiResourceRefSchema,{kind:t.kind,id:t.id}),relation:r}))}catch(e){throw G((0,c.toError)(e)),e}finally{K(!1),b()}},[_,b]),F=(0,t.useCallback)(()=>{A(),G(null)},[A]);return(0,t.useMemo)(()=>({accessList:p,isLoading:x,isRefetching:h,fetchError:f,grantableRoles:R,hasGrantableRoles:w,teamGrantableRoles:j,canShareWithTeams:k,grant:B,isGranting:S,grantError:N,revoke:W,isRevoking:C,revokeError:M,refetch:b,clearErrors:F}),[p,x,h,f,R,w,j,k,B,S,N,W,C,M,b,F])}],681094)},540279,9531,982943,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(893976),i=e.i(884561),n=e.i(14606);function a({kind:e,name:s,className:i}){return(0,t.jsx)("div",{className:(0,r.cn)("stg:flex stg:h-6 stg:w-6 stg:shrink-0 stg:items-center stg:justify-center stg:rounded-full stg:bg-avatar stg:text-[0.6rem] stg:font-medium stg:text-muted-foreground",i),"aria-hidden":"true",children:"team"===e?(0,t.jsx)(n.UsersRound,{className:"stg:h-3.5 stg:w-3.5"}):(s[0]??"?").toUpperCase()})}var l=e.i(590150);function o(){return(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M4 4l8 8M12 4l-8 8"})})}e.s(["AccessRow",0,function({entry:e,grantGate:n,onRemove:c,isRemoving:d,showRoles:g=!0}){let u=e.principal,m=u?(0,i.granteeFromView)(u):void 0,p=m?.kind==="team",x=u?.name||u?.email||u?.id||"Unknown",h=[...new Set(e.roles.map(e=>e.role?.name||e.role?.code).filter(Boolean))].join(", "),f=p?"Team":u?.email&&u.name?u.email:"",b=(0,s.useCallback)(async()=>{if(m)try{await c(m)}catch{}},[m,c]);return(0,t.jsxs)("li",{className:"stg:flex stg:items-center stg:justify-between stg:gap-2 stg:rounded-md stg:px-2 stg:py-1.5 stg:hover:bg-accent-hover stg:group",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2 stg:min-w-0",children:[(0,t.jsx)(a,{kind:p?"team":"identity_account",name:u?.name||u?.email||"?"}),(0,t.jsxs)("div",{className:"stg:min-w-0",children:[(0,t.jsx)("p",{className:"stg:text-xs stg:text-foreground stg:truncate",children:x}),f&&(0,t.jsx)("p",{className:"stg:text-[0.6rem] stg:text-muted-foreground stg:truncate",children:f})]})]}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-1.5 stg:shrink-0",children:[g&&(0,t.jsx)("span",{className:"stg:text-[0.6rem] stg:text-muted-foreground stg:capitalize",children:h||"—"}),m&&(0,t.jsx)(l.PermissionGate,{resource:n,relation:"can_grant_access",children:(0,t.jsx)("button",{type:"button",onClick:b,disabled:d,"aria-label":`Remove ${x}'s access`,className:(0,r.cn)("stg:rounded stg:p-0.5 stg:text-muted-foreground stg:opacity-0 stg:group-hover:opacity-100 stg:focus-visible:opacity-100","stg:hover:text-destructive stg:hover:bg-destructive-subtle","stg:disabled:pointer-events-none stg:disabled:opacity-50","stg:transition-opacity"),children:(0,t.jsx)(o,{})})})]})]})},"accessEntryKey",0,function(e){let t=e.principal;return t?`${t.kind}:${t.id}#${t.relation}`:"unknown"}],540279);var c=e.i(610595),d=e.i(869803),g=e.i(32011),u=e.i(891287),m=e.i(3422),p=e.i(586108),x=e.i(583093);let h=[];function f(e){let t=(0,p.useStigmer)(),{data:r,isLoading:i,isRefetching:n,error:a,refetch:l}=(0,x.useFetch)(e?()=>t.team.listByOrg((0,u.create)(m.ListTeamsByOrgInputSchema,{org:e})).then(e=>[...e.entries]):null,[e,t],h);return(0,s.useMemo)(()=>({teams:r,isLoading:i,isRefetching:n,error:a,refetch:l}),[r,i,n,a,l])}e.s(["useTeamList",0,f],9531);var b=e.i(564035);function v({label:e,count:r,children:i}){let n=(0,s.useId)();return 0===r?null:(0,t.jsxs)("li",{role:"presentation",children:[(0,t.jsx)("div",{id:n,className:"stg:px-2.5 stg:pt-1.5 stg:pb-1 stg:text-[0.6rem] stg:font-medium stg:uppercase stg:tracking-wide stg:text-muted-foreground",children:e}),(0,t.jsx)("ul",{role:"group","aria-labelledby":n,className:d.UNSTYLED_LIST,children:i})]})}function R({candidate:e}){let s="team"===e.kind?e.description:e.email!==e.name?e.email:"";return s?(0,t.jsx)("span",{className:"stg:block stg:truncate stg:text-[0.6rem] stg:text-muted-foreground",children:s}):null}function w({value:e}){return"team"===e.kind?(0,t.jsx)("span",{className:"stg:block stg:truncate stg:text-[0.6rem] stg:text-muted-foreground",children:"Team"}):(0,t.jsx)(R,{candidate:e})}function y(){return(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M4 4l8 8M12 4l-8 8"})})}e.s(["PrincipalPicker",0,function({orgId:e,value:n,onChange:l,includeTeams:o=!1,excludeGrantees:u,disabled:m=!1,label:p,autoFocus:x=!0,className:h}){let j=(0,s.useId)(),{people:k,teams:I,isLoading:S,error:N}=function({orgId:e,includeTeams:t}){let r=(0,b.useResourceAccess)(e?{kind:"organization",id:e}:null),n=f(t?e:null),a=(0,s.useMemo)(()=>{let e=new Map;for(let t of r.members){let s=t.principal,r=s?(0,i.granteeFromView)(s):void 0;!s||r?.kind!=="identity_account"||e.has(r.id)||e.set(r.id,{kind:"identity_account",grantee:(0,i.personGrantee)(r.id),name:s.name||s.email||s.id,email:s.email,view:s})}return[...e.values()]},[r.members]),l=(0,s.useMemo)(()=>t?n.teams.flatMap(e=>{let t=e.metadata?.id;return t?[{kind:"team",grantee:(0,i.teamGrantee)(t),name:e.metadata?.name||t,description:e.spec?.description??"",team:e}]:[]}):[],[t,n.teams]),o=r.isLoading||t&&n.isLoading,c=r.error??(t?n.error:null);return(0,s.useMemo)(()=>({people:a,teams:l,isLoading:o,error:c}),[a,l,o,c])}({orgId:e||null,includeTeams:o}),[A,_]=(0,s.useState)(""),[C,K]=(0,s.useState)(!1),[M,G]=(0,s.useState)(0),L=(0,s.useRef)(null),T=(0,s.useMemo)(()=>new Set((u??[]).map(i.granteeKey)),[u]),B=(0,s.useCallback)(e=>T.has((0,i.granteeKey)(e.grantee)),[T]),W=(0,s.useMemo)(()=>{let e=new Map;for(let t of k){let s=t.email.toLowerCase();s&&e.set(s,(e.get(s)??0)+1)}return new Set([...e.entries()].filter(([,e])=>e>1).map(([e])=>e))},[k]),{matchingPeople:F,matchingTeams:Y}=(0,s.useMemo)(()=>{let e=A.trim().toLowerCase();return{matchingPeople:e?k.filter(t=>t.name.toLowerCase().includes(e)||t.email.toLowerCase().includes(e)):k,matchingTeams:e?I.filter(t=>t.name.toLowerCase().includes(e)||t.description.toLowerCase().includes(e)):I}},[k,I,A]),D=(0,s.useMemo)(()=>[...Y,...F],[F,Y]),V=(0,s.useCallback)(e=>{B(e)||(l(e),_(""),K(!1))},[B,l]),P=(0,s.useCallback)(e=>{if("ArrowDown"===e.key)e.preventDefault(),K(!0),G(e=>Math.min(e+1,D.length-1));else if("ArrowUp"===e.key)e.preventDefault(),G(e=>Math.max(e-1,0));else if("Enter"===e.key){e.preventDefault();let t=D[M];t&&V(t)}else"Escape"===e.key&&K(!1)},[D,M,V]),z=p??(o?"Person or team":"Person");if(n)return(0,t.jsxs)("div",{className:(0,r.cn)("stg:space-y-1",h),children:[(0,t.jsx)("span",{className:"stg:block stg:text-xs stg:font-medium stg:text-foreground",children:z}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-between stg:gap-2 stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-2.5 stg:py-1.5",children:[(0,t.jsxs)("div",{className:"stg:flex stg:min-w-0 stg:items-center stg:gap-2",children:[(0,t.jsx)(a,{kind:n.kind,name:n.name}),(0,t.jsxs)("div",{className:"stg:min-w-0",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-1.5",children:[(0,t.jsx)("span",{className:"stg:truncate stg:text-xs stg:text-foreground",children:n.name}),"identity_account"===n.kind&&(0,t.jsx)(g.ProviderBadge,{principal:n.view})]}),(0,t.jsx)(w,{value:n})]})]}),(0,t.jsx)("button",{type:"button",onClick:()=>l(null),disabled:m,"aria-label":"team"===n.kind?"Clear selected team":"Clear selected person",className:(0,r.cn)("stg:shrink-0 stg:rounded stg:p-0.5 stg:text-muted-foreground","stg:hover:text-foreground stg:hover:bg-accent-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:(0,t.jsx)(y,{})})]})]});let E=(e,s)=>{var n,l;let o=B(e),c=s===M;return(0,t.jsxs)("li",{role:"option","aria-selected":c,"aria-disabled":o,onMouseEnter:()=>G(s),onMouseDown:t=>{t.preventDefault(),V(e)},className:(0,r.cn)("stg:flex stg:items-center stg:justify-between stg:gap-2 stg:px-2.5 stg:py-1.5",o?"stg:cursor-not-allowed stg:opacity-50":"stg:cursor-pointer",c&&!o&&"stg:bg-accent-hover"),children:[(0,t.jsxs)("div",{className:"stg:flex stg:min-w-0 stg:items-center stg:gap-2",children:[(0,t.jsx)(a,{kind:e.kind,name:e.name}),(0,t.jsxs)("div",{className:"stg:min-w-0",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-1.5",children:[(0,t.jsx)("span",{className:"stg:truncate stg:text-xs stg:text-foreground",children:e.name}),"identity_account"===e.kind&&(n=e,l=W,!!(0,g.providerLabel)(n.view)&&(n.view.identityOrigin?.providerDisplayName!=="Stigmer"||!!n.email&&l.has(n.email.toLowerCase())))&&(0,t.jsx)(g.ProviderBadge,{principal:e.view})]}),(0,t.jsx)(R,{candidate:e})]})]}),o&&(0,t.jsx)("span",{className:"stg:shrink-0 stg:text-[0.6rem] stg:text-muted-foreground",children:"Has access"})]},(0,i.granteeKey)(e.grantee))},U=0===D.length;return(0,t.jsxs)("div",{className:(0,r.cn)("stg:space-y-1",h),children:[(0,t.jsx)("label",{htmlFor:`${j}-input`,className:"stg:block stg:text-xs stg:font-medium stg:text-foreground",children:z}),(0,t.jsxs)("div",{className:"stg:relative",children:[(0,t.jsx)("input",{id:`${j}-input`,ref:L,type:"text",role:"combobox","aria-expanded":C,"aria-controls":j,"aria-autocomplete":"list",autoComplete:"off",value:A,onChange:e=>{_(e.target.value),K(!0),G(0)},onFocus:()=>K(!0),onBlur:()=>{window.setTimeout(()=>K(!1),120)},onKeyDown:P,placeholder:o?"Search people or teams":"Search by name or email",disabled:m||S,autoFocus:x,className:(0,r.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-2.5 stg:py-1.5 stg:text-xs stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50")}),C&&(0,t.jsxs)("ul",{id:j,role:"listbox","aria-label":o?"People and teams":"Organization members",className:(0,r.cn)(d.UNSTYLED_LIST,"stg:absolute stg:z-10 stg:mt-1 stg:max-h-56 stg:w-full stg:overflow-auto stg:rounded-md stg:border stg:border-border stg:bg-popover stg:py-1 stg:shadow-md"),children:[S&&(0,t.jsx)("li",{className:"stg:px-2.5 stg:py-2 stg:text-xs stg:text-muted-foreground",children:o?"Loading people and teams…":"Loading members…"}),!S&&N&&(0,t.jsx)("li",{className:"stg:px-2.5 stg:py-2 stg:text-[0.65rem] stg:text-destructive",role:"alert",children:(0,c.getUserMessage)(N)}),!S&&!N&&U&&(0,t.jsx)("li",{className:"stg:px-2.5 stg:py-2 stg:text-xs stg:text-muted-foreground",children:A.trim()?"No one matches your search.":"No one to share with."}),!S&&!N&&!U&&!o&&F.map((e,t)=>E(e,t)),!S&&!N&&!U&&o&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(v,{label:"Teams",count:Y.length,children:Y.map((e,t)=>E(e,t))}),(0,t.jsx)(v,{label:"People",count:F.length,children:F.map((e,t)=>E(e,Y.length+t))})]})]})]})]})}],982943)},213149,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(893976),i=e.i(468806),n=e.i(170255),a=e.i(818094),l=e.i(597744),o=e.i(610595),c=e.i(884561),d=e.i(869803),g=e.i(681094),u=e.i(540279),m=e.i(891287),p=e.i(632897),x=e.i(691444),h=e.i(288441),f=e.i(146312),b=e.i(982943),v=e.i(379410);function R({resourceKind:e,resourceKindString:i,resourceId:n,orgId:l,includeTeams:d=!1,excludeGrantees:g,onGranted:u,onCancel:w,className:y}){let{create:j,isCreating:k,error:I,clearError:S}=(0,h.useCreateIamPolicy)(),[N,A]=(0,s.useState)(null),[_,C]=(0,s.useState)(null),K=(0,s.useCallback)(t=>{A(t),C(s=>null===s||null===t||("team"===t.kind?(0,a.isRoleTeamGrantable)(e,s):(0,a.isRoleGrantable)(e,s))?s:null)},[e]),M=null!==N&&null!==_&&!k,G=(0,s.useCallback)(async e=>{if(e.preventDefault(),M&&null!==_&&null!==N){S();try{let e=(0,m.create)(p.IamPolicySpecSchema,{principal:(0,c.granteeRef)(N.grantee),resource:(0,m.create)(p.ApiResourceRefSchema,{kind:i,id:n}),relation:(0,x.iamRoleToString)(_)}),t=await j(e);u?.(t)}catch{}}},[M,_,N,i,n,j,S,u]);return(0,t.jsxs)("form",{onSubmit:G,className:(0,r.cn)("stg:space-y-3",y),children:[(0,t.jsxs)("div",{className:"stg:space-y-3",children:[(0,t.jsx)(b.PrincipalPicker,{orgId:l,value:N,onChange:K,includeTeams:d,excludeGrantees:g,disabled:k}),(0,t.jsx)(f.RoleSelector,{kind:e,granteeKind:N?.kind??"identity_account",selected:_,onSelect:C,disabled:k})]}),I&&(0,t.jsx)("p",{className:"stg:text-destructive stg:text-[0.65rem]",role:"alert",children:(0,o.getUserMessage)(I)}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,t.jsxs)("button",{type:"submit",disabled:!M,className:(0,r.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-md stg:px-3 stg:py-1.5 stg:text-xs stg:font-medium","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:disabled:pointer-events-none stg:disabled:opacity-40"),children:[k&&(0,t.jsx)(v.SpinnerIcon,{size:12}),"Grant access"]}),w&&(0,t.jsx)("button",{type:"button",onClick:w,disabled:k,className:(0,r.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-xs","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:"Cancel"})]})]})}var w=e.i(590150);function y({resource:e,resourceKindString:i,resourceKind:n,orgId:a,className:m}){let{accessList:p,isLoading:x,fetchError:h,revoke:f,isRevoking:b,revokeError:v,refetch:j,hasGrantableRoles:k,canShareWithTeams:I}=(0,g.useShareFlow)(e),S=(0,l.useDeploymentMode)(),[N,A]=(0,s.useState)(!1),_=(0,s.useMemo)(()=>p.flatMap(e=>{let t=e.principal?(0,c.granteeFromView)(e.principal):void 0;return t?[t]:[]}),[p]);if("local"===S&&"organization"!==e.kind)return(0,t.jsxs)("p",{className:(0,r.cn)("stg:text-xs stg:text-muted-foreground",m),children:["This edition does not share ",i.replaceAll("_"," "),"s with individual people. Sharing with specific people is available in Stigmer Enterprise and Cloud."]});let C={kind:i,id:e.id};return(0,t.jsxs)("div",{className:(0,r.cn)("stg:flex stg:flex-col stg:gap-4",m),children:[(0,t.jsxs)("div",{className:"stg:space-y-1",children:[(0,t.jsx)("p",{className:"stg:text-xs stg:text-muted-foreground",children:x?"Loading access list...":`${p.length} with access`}),h&&(0,t.jsx)("p",{className:"stg:text-destructive stg:text-[0.65rem]",role:"alert",children:(0,o.getUserMessage)(h)}),!x&&p.length>0&&(0,t.jsx)("ul",{className:(0,r.cn)(d.UNSTYLED_LIST,"stg:space-y-1 stg:mt-2"),"aria-label":"Who has access",children:p.map(e=>(0,t.jsx)(u.AccessRow,{entry:e,grantGate:C,onRemove:f,isRemoving:b},(0,u.accessEntryKey)(e)))}),v&&(0,t.jsx)("p",{className:"stg:text-destructive stg:text-[0.65rem]",role:"alert",children:(0,o.getUserMessage)(v)})]}),k&&(0,t.jsx)(w.PermissionGate,{resource:C,relation:"can_grant_access",children:(0,t.jsx)("div",{className:"stg:border-t stg:border-border stg:pt-3",children:N?(0,t.jsx)(R,{resourceKind:n,resourceKindString:i,resourceId:e.id,orgId:a,includeTeams:I,excludeGrantees:_,onGranted:()=>{A(!1),j()},onCancel:()=>A(!1)}):(0,t.jsx)("button",{type:"button",onClick:()=>A(!0),className:(0,r.cn)("stg:w-full stg:rounded-md stg:px-3 stg:py-1.5 stg:text-xs stg:font-medium stg:text-center","stg:border stg:border-dashed stg:border-border","stg:text-muted-foreground stg:hover:text-foreground stg:hover:border-border-prominent","stg:hover:bg-accent-hover stg:transition-colors"),children:I?"+ Add people or teams":"+ Add people"})})})]})}var j=e.i(388023);function k({title:e,description:s,children:r}){return(0,t.jsxs)("section",{className:"stg:px-6 stg:py-4",children:[(0,t.jsx)("h3",{className:"stg:text-xs stg:font-medium stg:text-muted-foreground",children:e}),s&&(0,t.jsx)("p",{className:"stg:mt-0.5 stg:text-[0.65rem] stg:text-muted-foreground",children:s}),(0,t.jsx)("div",{className:"stg:mt-2.5",children:r})]})}function I(){return(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M4 4l8 8M12 4l-8 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}e.s(["ManageAccessDialog",0,function({open:e,onOpenChange:o,resource:c,visibility:d,extraSection:g}){let u=(0,s.useId)(),m=(0,s.useCallback)(()=>{o(!1)},[o]),p=(0,a.hasGrantableRoles)(c.kind),x=(0,l.useResourceAvailable)(n.ApiResourceKind.team)&&(0,a.hasTeamGrantableRoles)(c.kind)?"People and teams with access":"People with access";return(0,t.jsx)(i.DialogShell,{open:e,onOpenChange:o,width:"md","aria-labelledby":u,children:e&&(0,t.jsxs)("div",{className:"stg:flex stg:flex-col",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-start stg:justify-between stg:border-b stg:border-border stg:px-6 stg:py-4",children:[(0,t.jsxs)("div",{className:"stg:min-w-0",children:[(0,t.jsx)("h2",{id:u,className:"stg:text-base stg:font-semibold stg:text-foreground",children:"Manage access"}),c.name&&(0,t.jsx)("p",{className:"stg:mt-0.5 stg:truncate stg:text-xs stg:text-muted-foreground",children:c.name})]}),(0,t.jsx)("button",{type:"button",onClick:m,"aria-label":"Close",className:(0,r.cn)("stg:rounded-md stg:p-1 stg:text-muted-foreground","stg:hover:text-foreground stg:hover:bg-accent-hover","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring"),children:(0,t.jsx)(I,{})})]}),(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:divide-y stg:divide-border",children:[d&&(0,t.jsx)(k,{title:"General access",description:"Who can find and open this resource.",children:(0,t.jsx)(j.ResourceVisibilityControl,{kind:d.kind,resourceId:c.id,visibility:d.current,org:d.org,onChanged:d.onChanged})}),p&&(0,t.jsx)(k,{title:x,children:(0,t.jsx)(y,{resource:{kind:c.kindString,id:c.id,resourceKind:c.kind},resourceKindString:c.kindString,resourceKind:c.kind,orgId:c.org})}),g&&(0,t.jsx)(k,{title:g.title,description:g.description,children:g.content})]}),(0,t.jsx)("div",{className:"stg:flex stg:items-center stg:justify-end stg:border-t stg:border-border stg:px-6 stg:py-3",children:(0,t.jsx)("button",{type:"button",onClick:m,className:(0,r.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring stg:focus:ring-offset-2"),children:"Done"})})]})})}],213149)}]);
|