@stigmer/server-slim 3.17.0 → 3.18.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 +16 -16
- package/console/__next._head.txt +4 -4
- package/console/__next._index.txt +10 -10
- package/console/__next._tree.txt +2 -2
- package/console/_next/static/chunks/{04hrkprhk3cjo.js → 0.cr0e7bzkpoi.js} +3 -3
- package/console/_next/static/chunks/0.ocu5b3uajbn.js +1 -0
- package/console/_next/static/chunks/{16ukgtm3fhab~.js → 06qoer~dl1svs.js} +2 -2
- package/console/_next/static/chunks/071fdr3kvata1.js +1 -0
- package/console/_next/static/chunks/{0s5t77.~jqey1.js → 0_3utrn1at0vi.js} +1 -1
- package/console/_next/static/chunks/0_j8~rfb.1ufy.js +1 -0
- package/console/_next/static/chunks/0auyo62rglco8.js +1 -0
- package/console/_next/static/chunks/{0xp6mamoqde.n.js → 0fgcvnc-b_oz_.js} +1 -1
- package/console/_next/static/chunks/0gz8yljnjzsmu.js +1 -0
- package/console/_next/static/chunks/{107065384mt73.js → 0hc-53ypd.8xp.js} +1 -1
- package/console/_next/static/chunks/0hca-f9-nua.e.js +1 -0
- package/console/_next/static/chunks/0j~6628v9z3k-.js +1 -0
- package/console/_next/static/chunks/0pxd7smgb31vs.js +1 -0
- package/console/_next/static/chunks/0rs1tuslqwnz3.js +1 -0
- package/console/_next/static/chunks/0s6bm1sujua~8.css +1 -0
- package/console/_next/static/chunks/0xq42ojv80jqz.js +1 -0
- package/console/_next/static/chunks/{0dmmn-x2crcuv.js → 0xs_3fux3hsk3.js} +2 -2
- package/console/_next/static/chunks/{127-4s-8utcan.js → 0yheev3nzjrip.js} +1 -1
- package/console/_next/static/chunks/0yuo~koxf.2fn.js +1 -0
- package/console/_next/static/chunks/0zzf3a9srn32x.js +1 -0
- package/console/_next/static/chunks/110bry9pdkk8s.js +5 -0
- package/console/_next/static/chunks/17pusweun3t84.js +1 -0
- package/console/_not-found/__next._full.txt +16 -16
- package/console/_not-found/__next._head.txt +4 -4
- package/console/_not-found/__next._index.txt +10 -10
- 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 +2 -2
- package/console/_not-found.html +1 -1
- package/console/_not-found.txt +16 -16
- package/console/auth/callback/__next._full.txt +18 -18
- package/console/auth/callback/__next._head.txt +4 -4
- package/console/auth/callback/__next._index.txt +10 -10
- package/console/auth/callback/__next._tree.txt +2 -2
- 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 +18 -18
- package/console/auth/github/callback/__next._full.txt +18 -18
- package/console/auth/github/callback/__next._head.txt +4 -4
- package/console/auth/github/callback/__next._index.txt +10 -10
- package/console/auth/github/callback/__next._tree.txt +2 -2
- 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 +18 -18
- package/console/auth/oauth/callback/__next._full.txt +18 -18
- package/console/auth/oauth/callback/__next._head.txt +4 -4
- package/console/auth/oauth/callback/__next._index.txt +10 -10
- package/console/auth/oauth/callback/__next._tree.txt +2 -2
- 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 +18 -18
- package/console/chat/__placeholder__/__placeholder__/__next._full.txt +17 -17
- package/console/chat/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/chat/__placeholder__/__placeholder__/__next._index.txt +10 -10
- package/console/chat/__placeholder__/__placeholder__/__next._tree.txt +2 -2
- 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 +17 -17
- package/console/conversations/__next._full.txt +17 -17
- package/console/conversations/__next._head.txt +4 -4
- package/console/conversations/__next._index.txt +10 -10
- package/console/conversations/__next._tree.txt +2 -2
- 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 +17 -17
- package/console/conversations/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/conversations/__placeholder__/__placeholder__/__next._index.txt +10 -10
- package/console/conversations/__placeholder__/__placeholder__/__next._tree.txt +2 -2
- 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 +17 -17
- package/console/conversations.html +1 -1
- package/console/conversations.txt +17 -17
- package/console/dashboard/__next._full.txt +17 -17
- package/console/dashboard/__next._head.txt +4 -4
- package/console/dashboard/__next._index.txt +10 -10
- package/console/dashboard/__next._tree.txt +2 -2
- 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 +17 -17
- package/console/executions/__placeholder__/__next._full.txt +16 -16
- package/console/executions/__placeholder__/__next._head.txt +4 -4
- package/console/executions/__placeholder__/__next._index.txt +10 -10
- package/console/executions/__placeholder__/__next._tree.txt +2 -2
- 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 +16 -16
- package/console/index.html +1 -1
- package/console/index.txt +16 -16
- package/console/invite/__placeholder__/__next._full.txt +17 -17
- package/console/invite/__placeholder__/__next._head.txt +4 -4
- package/console/invite/__placeholder__/__next._index.txt +10 -10
- package/console/invite/__placeholder__/__next._tree.txt +2 -2
- 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 +17 -17
- package/console/library/__next._full.txt +21 -21
- package/console/library/__next._head.txt +4 -4
- package/console/library/__next._index.txt +10 -10
- package/console/library/__next._tree.txt +2 -2
- package/console/library/__next.library.__PAGE__.txt +3 -3
- package/console/library/__next.library.txt +5 -5
- package/console/library/agents/__next._full.txt +21 -21
- package/console/library/agents/__next._head.txt +4 -4
- package/console/library/agents/__next._index.txt +10 -10
- package/console/library/agents/__next._tree.txt +2 -2
- 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 +20 -20
- package/console/library/agents/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/library/agents/__placeholder__/__placeholder__/__next._index.txt +10 -10
- package/console/library/agents/__placeholder__/__placeholder__/__next._tree.txt +2 -2
- 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 +20 -20
- package/console/library/agents/new/__next._full.txt +21 -21
- package/console/library/agents/new/__next._head.txt +4 -4
- package/console/library/agents/new/__next._index.txt +10 -10
- package/console/library/agents/new/__next._tree.txt +2 -2
- 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 +21 -21
- package/console/library/agents.html +1 -1
- package/console/library/agents.txt +21 -21
- package/console/library/mcp-servers/__next._full.txt +21 -21
- package/console/library/mcp-servers/__next._head.txt +4 -4
- package/console/library/mcp-servers/__next._index.txt +10 -10
- package/console/library/mcp-servers/__next._tree.txt +2 -2
- 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 +20 -20
- package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._index.txt +10 -10
- package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._tree.txt +2 -2
- 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 +20 -20
- package/console/library/mcp-servers/new/__next._full.txt +21 -21
- package/console/library/mcp-servers/new/__next._head.txt +4 -4
- package/console/library/mcp-servers/new/__next._index.txt +10 -10
- package/console/library/mcp-servers/new/__next._tree.txt +2 -2
- 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 +21 -21
- package/console/library/mcp-servers.html +1 -1
- package/console/library/mcp-servers.txt +21 -21
- package/console/library/plugins/__next._full.txt +21 -21
- package/console/library/plugins/__next._head.txt +4 -4
- package/console/library/plugins/__next._index.txt +10 -10
- package/console/library/plugins/__next._tree.txt +2 -2
- 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 +20 -20
- package/console/library/plugins/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/library/plugins/__placeholder__/__placeholder__/__next._index.txt +10 -10
- package/console/library/plugins/__placeholder__/__placeholder__/__next._tree.txt +2 -2
- 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 +20 -20
- package/console/library/plugins/upload/__next._full.txt +41 -0
- package/console/library/plugins/upload/__next._head.txt +6 -0
- package/console/library/plugins/upload/__next._index.txt +17 -0
- package/console/library/plugins/{install → upload}/__next._tree.txt +2 -2
- package/console/library/plugins/upload/__next.library.plugins.txt +5 -0
- package/console/library/plugins/upload/__next.library.plugins.upload.__PAGE__.txt +9 -0
- package/console/library/plugins/upload/__next.library.plugins.upload.txt +5 -0
- package/console/library/plugins/upload/__next.library.txt +7 -0
- package/console/library/plugins/upload.html +1 -0
- package/console/library/plugins/upload.txt +41 -0
- package/console/library/plugins.html +1 -1
- package/console/library/plugins.txt +21 -21
- package/console/library/schedules/__next._full.txt +20 -20
- package/console/library/schedules/__next._head.txt +4 -4
- package/console/library/schedules/__next._index.txt +10 -10
- package/console/library/schedules/__next._tree.txt +2 -2
- 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 +20 -20
- package/console/library/schedules/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/library/schedules/__placeholder__/__placeholder__/__next._index.txt +10 -10
- package/console/library/schedules/__placeholder__/__placeholder__/__next._tree.txt +2 -2
- 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 +20 -20
- package/console/library/schedules/new/__next._full.txt +21 -21
- package/console/library/schedules/new/__next._head.txt +4 -4
- package/console/library/schedules/new/__next._index.txt +10 -10
- package/console/library/schedules/new/__next._tree.txt +2 -2
- 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 +21 -21
- package/console/library/schedules.html +1 -1
- package/console/library/schedules.txt +20 -20
- package/console/library/skills/__next._full.txt +20 -20
- package/console/library/skills/__next._head.txt +4 -4
- package/console/library/skills/__next._index.txt +10 -10
- package/console/library/skills/__next._tree.txt +2 -2
- 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 +20 -20
- package/console/library/skills/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/library/skills/__placeholder__/__placeholder__/__next._index.txt +10 -10
- package/console/library/skills/__placeholder__/__placeholder__/__next._tree.txt +2 -2
- 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 +20 -20
- package/console/library/skills/new/__next._full.txt +22 -22
- package/console/library/skills/new/__next._head.txt +4 -4
- package/console/library/skills/new/__next._index.txt +10 -10
- package/console/library/skills/new/__next._tree.txt +2 -2
- 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 +22 -22
- package/console/library/skills.html +1 -1
- package/console/library/skills.txt +20 -20
- package/console/library/workflows/__next._full.txt +21 -21
- package/console/library/workflows/__next._head.txt +4 -4
- package/console/library/workflows/__next._index.txt +10 -10
- package/console/library/workflows/__next._tree.txt +2 -2
- 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 +20 -20
- package/console/library/workflows/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/library/workflows/__placeholder__/__placeholder__/__next._index.txt +10 -10
- package/console/library/workflows/__placeholder__/__placeholder__/__next._tree.txt +2 -2
- 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 +20 -20
- package/console/library/workflows/executions/__next._full.txt +20 -20
- package/console/library/workflows/executions/__next._head.txt +4 -4
- package/console/library/workflows/executions/__next._index.txt +10 -10
- package/console/library/workflows/executions/__next._tree.txt +2 -2
- 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 +20 -20
- package/console/library/workflows/new/__next._full.txt +22 -22
- package/console/library/workflows/new/__next._head.txt +4 -4
- package/console/library/workflows/new/__next._index.txt +10 -10
- package/console/library/workflows/new/__next._tree.txt +2 -2
- 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 +22 -22
- package/console/library/workflows.html +1 -1
- package/console/library/workflows.txt +21 -21
- package/console/library.html +1 -1
- package/console/library.txt +21 -21
- package/console/login/__next._full.txt +18 -18
- package/console/login/__next._head.txt +4 -4
- package/console/login/__next._index.txt +10 -10
- package/console/login/__next._tree.txt +2 -2
- 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 +18 -18
- package/console/marketplace/__next._full.txt +32 -0
- package/console/marketplace/__next._head.txt +6 -0
- package/console/marketplace/__next._index.txt +17 -0
- package/console/marketplace/__next._tree.txt +5 -0
- package/console/marketplace/__next.marketplace.__PAGE__.txt +6 -0
- package/console/marketplace/__next.marketplace.txt +5 -0
- package/console/marketplace.html +1 -0
- package/console/marketplace.txt +32 -0
- package/console/oauth/slack/callback/__next._full.txt +18 -18
- package/console/oauth/slack/callback/__next._head.txt +4 -4
- package/console/oauth/slack/callback/__next._index.txt +10 -10
- package/console/oauth/slack/callback/__next._tree.txt +2 -2
- 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 +18 -18
- package/console/sessions/__placeholder__/__next._full.txt +16 -16
- package/console/sessions/__placeholder__/__next._head.txt +4 -4
- package/console/sessions/__placeholder__/__next._index.txt +10 -10
- package/console/sessions/__placeholder__/__next._tree.txt +2 -2
- 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 +16 -16
- package/console/settings/__next._full.txt +20 -20
- package/console/settings/__next._head.txt +4 -4
- package/console/settings/__next._index.txt +10 -10
- package/console/settings/__next._tree.txt +2 -2
- 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 +19 -19
- package/console/settings/account-preferences/__next._head.txt +4 -4
- package/console/settings/account-preferences/__next._index.txt +10 -10
- package/console/settings/account-preferences/__next._tree.txt +2 -2
- 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 +19 -19
- package/console/settings/api-keys/__next._full.txt +19 -19
- package/console/settings/api-keys/__next._head.txt +4 -4
- package/console/settings/api-keys/__next._index.txt +10 -10
- package/console/settings/api-keys/__next._tree.txt +2 -2
- 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 +19 -19
- package/console/settings/billing/__next._full.txt +20 -20
- package/console/settings/billing/__next._head.txt +4 -4
- package/console/settings/billing/__next._index.txt +10 -10
- package/console/settings/billing/__next._tree.txt +2 -2
- 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 +20 -20
- package/console/settings/channel-apps/__next._full.txt +19 -19
- package/console/settings/channel-apps/__next._head.txt +4 -4
- package/console/settings/channel-apps/__next._index.txt +10 -10
- package/console/settings/channel-apps/__next._tree.txt +2 -2
- 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 +19 -19
- package/console/settings/cursor-accounts/__next._full.txt +20 -20
- package/console/settings/cursor-accounts/__next._head.txt +4 -4
- package/console/settings/cursor-accounts/__next._index.txt +10 -10
- package/console/settings/cursor-accounts/__next._tree.txt +2 -2
- 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 +20 -20
- package/console/settings/environments/__next._full.txt +19 -19
- package/console/settings/environments/__next._head.txt +4 -4
- package/console/settings/environments/__next._index.txt +10 -10
- package/console/settings/environments/__next._tree.txt +2 -2
- 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 +19 -19
- package/console/settings/identity-providers/__next._full.txt +19 -19
- package/console/settings/identity-providers/__next._head.txt +4 -4
- package/console/settings/identity-providers/__next._index.txt +10 -10
- package/console/settings/identity-providers/__next._tree.txt +2 -2
- 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 +19 -19
- package/console/settings/invitations/__next._full.txt +19 -19
- package/console/settings/invitations/__next._head.txt +4 -4
- package/console/settings/invitations/__next._index.txt +10 -10
- package/console/settings/invitations/__next._tree.txt +2 -2
- 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 +19 -19
- package/console/settings/members/__next._full.txt +19 -19
- package/console/settings/members/__next._head.txt +4 -4
- package/console/settings/members/__next._index.txt +10 -10
- package/console/settings/members/__next._tree.txt +2 -2
- 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 +19 -19
- package/console/settings/memory/__next._full.txt +19 -19
- package/console/settings/memory/__next._head.txt +4 -4
- package/console/settings/memory/__next._index.txt +10 -10
- package/console/settings/memory/__next._tree.txt +2 -2
- 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 +19 -19
- package/console/settings/oauth-apps/__next._full.txt +19 -19
- package/console/settings/oauth-apps/__next._head.txt +4 -4
- package/console/settings/oauth-apps/__next._index.txt +10 -10
- package/console/settings/oauth-apps/__next._tree.txt +2 -2
- 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 +19 -19
- package/console/settings/org-preferences/__next._full.txt +19 -19
- package/console/settings/org-preferences/__next._head.txt +4 -4
- package/console/settings/org-preferences/__next._index.txt +10 -10
- package/console/settings/org-preferences/__next._tree.txt +2 -2
- 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 +19 -19
- package/console/settings/org-profile/__next._full.txt +19 -19
- package/console/settings/org-profile/__next._head.txt +4 -4
- package/console/settings/org-profile/__next._index.txt +10 -10
- package/console/settings/org-profile/__next._tree.txt +2 -2
- 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 +19 -19
- package/console/settings/platform-clients/__next._full.txt +19 -19
- package/console/settings/platform-clients/__next._head.txt +4 -4
- package/console/settings/platform-clients/__next._index.txt +10 -10
- package/console/settings/platform-clients/__next._tree.txt +2 -2
- 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 +19 -19
- package/console/settings/pricing-governance/__next._full.txt +20 -20
- package/console/settings/pricing-governance/__next._head.txt +4 -4
- package/console/settings/pricing-governance/__next._index.txt +10 -10
- package/console/settings/pricing-governance/__next._tree.txt +2 -2
- 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 +20 -20
- package/console/settings/provider-standing/__next._full.txt +20 -20
- package/console/settings/provider-standing/__next._head.txt +4 -4
- package/console/settings/provider-standing/__next._index.txt +10 -10
- package/console/settings/provider-standing/__next._tree.txt +2 -2
- 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 +20 -20
- package/console/settings/usage/__next._full.txt +19 -19
- package/console/settings/usage/__next._head.txt +4 -4
- package/console/settings/usage/__next._index.txt +10 -10
- package/console/settings/usage/__next._tree.txt +2 -2
- 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 +19 -19
- package/console/settings.html +1 -1
- package/console/settings.txt +20 -20
- package/console/workflows/__next._full.txt +16 -16
- package/console/workflows/__next._head.txt +4 -4
- package/console/workflows/__next._index.txt +10 -10
- package/console/workflows/__next._tree.txt +2 -2
- 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 +17 -17
- package/console/workflows/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/workflows/__placeholder__/__placeholder__/__next._index.txt +10 -10
- package/console/workflows/__placeholder__/__placeholder__/__next._tree.txt +2 -2
- 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 +17 -17
- package/console/workflows/executions/__next._full.txt +16 -16
- package/console/workflows/executions/__next._head.txt +4 -4
- package/console/workflows/executions/__next._index.txt +10 -10
- package/console/workflows/executions/__next._tree.txt +2 -2
- 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 +17 -17
- package/console/workflows/executions/__placeholder__/__next._head.txt +4 -4
- package/console/workflows/executions/__placeholder__/__next._index.txt +10 -10
- package/console/workflows/executions/__placeholder__/__next._tree.txt +2 -2
- 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 +17 -17
- package/console/workflows/executions.html +1 -1
- package/console/workflows/executions.txt +16 -16
- package/console/workflows.html +1 -1
- package/console/workflows.txt +16 -16
- package/main.js +6 -6
- package/package.json +6 -6
- package/workflow-bundle-agent-execution.js +1 -1
- package/workflow-bundle-workflow-execution.js +1 -1
- package/console/_next/static/chunks/0-rl_~-k4zneu.js +0 -1
- package/console/_next/static/chunks/00d~s.n2ue-_h.js +0 -1
- package/console/_next/static/chunks/03y0rf3oc7s.8.js +0 -1
- package/console/_next/static/chunks/05hwz_mbqzf1o.js +0 -1
- package/console/_next/static/chunks/08tdiho~eajic.js +0 -1
- package/console/_next/static/chunks/0h5_gexj.8ede.js +0 -1
- package/console/_next/static/chunks/0hb.-vcj2w6kf.js +0 -1
- package/console/_next/static/chunks/0n_eq4ve3k9iw.js +0 -5
- package/console/_next/static/chunks/0uvbqsa~x3_x6.js +0 -1
- package/console/_next/static/chunks/0~t6-khw6kbrz.js +0 -1
- package/console/_next/static/chunks/148.037r-t498.js +0 -1
- package/console/_next/static/chunks/16ql-tt25wyl~.css +0 -1
- package/console/_next/static/chunks/17h3h-dhcyv24.js +0 -1
- package/console/library/plugins/install/__next._full.txt +0 -41
- package/console/library/plugins/install/__next._head.txt +0 -6
- package/console/library/plugins/install/__next._index.txt +0 -17
- package/console/library/plugins/install/__next.library.plugins.install.__PAGE__.txt +0 -9
- package/console/library/plugins/install/__next.library.plugins.install.txt +0 -5
- package/console/library/plugins/install/__next.library.plugins.txt +0 -5
- package/console/library/plugins/install/__next.library.txt +0 -7
- package/console/library/plugins/install.html +0 -1
- package/console/library/plugins/install.txt +0 -41
- /package/console/_next/static/{nsysxL2UYvxTUeX1Z93Nk → 0d4BawxHa-jMy4WgCDP1P}/_buildManifest.js +0 -0
- /package/console/_next/static/{nsysxL2UYvxTUeX1Z93Nk → 0d4BawxHa-jMy4WgCDP1P}/_clientMiddlewareManifest.js +0 -0
- /package/console/_next/static/{nsysxL2UYvxTUeX1Z93Nk → 0d4BawxHa-jMy4WgCDP1P}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,310057,t=>{"use strict";var e=t.i(843476),s=t.i(271645);let r=(0,s.createContext)(null);t.s(["LibraryBreadcrumbProvider",0,function({children:t}){let[n,i]=(0,s.useState)(null),a=(0,s.useCallback)(t=>i(t),[]),g=(0,s.useMemo)(()=>({label:n,setLabel:a}),[n,a]);return(0,e.jsx)(r.Provider,{value:g,children:t})},"useBreadcrumbLabel",0,function(){return(0,s.useContext)(r)?.label??null},"useBreadcrumbOverride",0,function(){let t=(0,s.useContext)(r),e=(0,s.useCallback)(t=>{},[]);return{setLabel:t?.setLabel??e}}])},927056,t=>{"use strict";var e=t.i(843476),s=t.i(271645),r=t.i(893976);t.s(["Tabs",0,function({tabs:t,activeTab:n,onTabChange:i,children:a,"aria-label":g,className:l}){let o=(0,s.useId)(),d=(0,s.useRef)(new Map),c=t=>`${o}-tab-${t}`,u=t=>`${o}-panel-${t}`,x=(0,s.useCallback)(t=>{d.current.get(t)?.focus(),i(t)},[i]),m=(0,s.useCallback)(e=>{let s=t.findIndex(t=>t.id===n);if(-1===s)return;let r=null;switch(e.key){case"ArrowRight":r=(s+1)%t.length;break;case"ArrowLeft":r=(s-1+t.length)%t.length;break;case"Home":r=0;break;case"End":r=t.length-1;break;default:return}e.preventDefault(),x(t[r].id)},[t,n,x]);return(0,e.jsxs)("div",{className:(0,r.cn)("stg:flex stg:flex-col",l),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===n;return(0,e.jsxs)("button",{ref:e=>{e?d.current.set(t.id,e):d.current.delete(t.id)},id:c(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,r.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,r.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(n),role:"tabpanel","aria-labelledby":c(n),tabIndex:0,className:"stg:min-h-0 stg:flex-1 stg:pt-4 stg:focus-visible:outline-none",children:a})]})}])},476007,t=>{"use strict";var e=t.i(843476),s=t.i(271645),r=t.i(610595),n=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 l({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 o({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:d,retry:c,className:u}){let[x,m]=(0,s.useState)(!1);if(!t)return null;let b=(0,r.classifyError)(t),h=(0,r.getUserMessage)(t),f=(0,r.getRpcMetadata)(t),p=(0,r.isRetryableError)(t);return(0,e.jsx)("div",{role:"alert",className:(0,n.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"===b||"permission"===b?(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:d??i[b]}),(0,e.jsx)("p",{className:"stg:text-destructive-muted stg:text-sm",children:h}),f&&(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)(l,{className:(0,n.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:f.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:f.path})]})]})]})]}),c&&p&&(0,e.jsxs)("button",{type:"button",onClick:c,className:(0,n.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)(o,{className:"stg:size-3"}),"Retry"]})]})})}])},266442,t=>{"use strict";var e=t.i(843476),s=t.i(893976),r=t.i(188482);let n={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 l=i??n[t],o=(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"}),l]});return a?(0,e.jsxs)(r.Tooltip,{children:[(0,e.jsx)(r.TooltipTrigger,{render:(0,e.jsx)("span",{className:"stg:inline-flex"}),children:o}),(0,e.jsx)(r.TooltipContent,{side:"top",children:a})]}):o}])},154752,t=>{"use strict";var e=t.i(271645),s=t.i(846696),r=t.i(193799);t.s(["useCopyResource",0,function(){let{copy:t}=(0,r.useCopyFeedback)(),n=(0,e.useCallback)(async(e,r)=>{await t(e)?s.toast.success(`${r} copied`):s.toast.error(`Couldn't copy ${r}`)},[t]),i=(0,e.useCallback)(t=>n(t,"ID"),[n]),a=(0,e.useCallback)(t=>n(t,"Slug"),[n]),g=(0,e.useCallback)((t,e)=>n(`${t}/${e}`,"Qualified slug"),[n]);return(0,e.useMemo)(()=>({copy:n,copyId:i,copySlug:a,copyQualifiedSlug:g}),[n,i,a,g])}])},668093,652337,t=>{"use strict";var e=t.i(843476),s=t.i(893976),r=t.i(266442),n=t.i(927056),i=t.i(271645),a=t.i(845132);function g({primaryAction:t,actions:r,className:n}){let i=null!=r&&r.length>0;return t||i?(0,e.jsxs)("div",{className:(0,s.cn)("stg:flex stg:items-center stg:gap-2",n),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)(l,{actions:r})]}):null}function l({actions:t}){var s;let r=(s=t,(0,i.useMemo)(()=>{let t=new Map;for(let e of s){let s=e.group??"__default",r=t.get(s);r?r.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)(o,{className:"stg:size-4"})}),(0,e.jsx)(a.ActionMenu.Content,{children:r.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 o({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 d({header:t,visibilityControl:s,metaExtra:n}){let{name:i,nameElement:a,org:g,slug:l,qualifiedSlug:o,description:x,iconUrl:m,icon:b,createdAt:h,updatedAt:f,status:p,statusLabel:v}=t,j=l&&l!==i&&!o;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"}):b?(0,e.jsx)("span",{className:"stg:mt-1 stg:shrink-0",children:b}):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:l}),p&&(0,e.jsx)(r.StatusBadge,{phase:p,label:v}),s]}),o&&(0,e.jsx)("span",{className:"stg:mt-0.5 stg:block stg:truncate stg:font-mono stg:text-xs stg:text-muted-foreground",children:o}),(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}),n,h&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(c,{}),(0,e.jsxs)("span",{children:["Created ",u(h)]})]}),f&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(c,{}),(0,e.jsxs)("span",{children:["Updated ",u(f)]})]})]}),x&&(0,e.jsx)("p",{className:"stg:mt-2 stg:text-sm stg:text-muted-foreground",children:x})]})]})}function c(){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:r,headerMetaExtra:i,headerBanner:a,primaryAction:l,actions:o,tabs:c,activeTab:u,onTabChange:x,tabsAriaLabel:m,children:b,className:h}){let f=null!=c&&c.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)(d,{header:t,visibilityControl:r,metaExtra:i}),(0,e.jsx)(g,{primaryAction:l,actions:o,className:"stg:shrink-0"})]}),f&&u&&x?(0,e.jsx)(n.Tabs,{tabs:c,activeTab:u,onTabChange:x,"aria-label":m,children:b}):b]})}],668093),t.s(["Section",0,function({title:t,count:r,headerActions:n,onEdit:i,scrollTarget:a,children:g,className:l}){return(0,e.jsxs)("section",{className:l,"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!=r&&r>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:r}),(n||i)&&(0,e.jsxs)("div",{className:"stg:ml-auto stg:flex stg:items-center stg:gap-1",children:[n,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)},582321,t=>{"use strict";var e=t.i(271645),s=t.i(586108),r=t.i(326283),n=t.i(846696);function i(t){switch(t){case"agent":return"agent";case"skill":return"skill";case"mcpServer":return"MCP server";case"workflow":return"workflow";case"schedule":return"schedule";case"plugin":return"plugin"}}t.s(["useDeleteResource",0,function(t,a,g){let l=(0,s.useStigmer)(),[o,d]=(0,e.useState)(!1),[c,u]=(0,e.useState)(null),x=(0,e.useCallback)(async()=>{if(a){d(!0),u(null);try{switch(t){case"agent":await l.agent.delete(a);break;case"skill":await l.skill.delete(a);break;case"mcpServer":await l.mcpServer.delete({resourceId:a});break;case"workflow":await l.workflow.delete(a);break;case"schedule":await l.schedule.delete(a);break;case"plugin":await l.plugin.delete(a)}n.toast.success(g?`${g} deleted`:`${i(t)} deleted`)}catch(s){let e=(0,r.toError)(s);throw u(e),n.toast.error(`Failed to delete ${i(t)}`),e}finally{d(!1)}}},[l,t,a,g]);return(0,e.useMemo)(()=>({deleteResource:x,isDeleting:o,error:c}),[x,o,c])}])},267912,t=>{"use strict";var e=t.i(271645);t.s(["useDetailTabs",0,function({builtInTabs:t,additionalTabs:s,activeTab:r,onTabChange:n,defaultTab:i}){let a=void 0!==r&&void 0!==n,g=(0,e.useMemo)(()=>s&&0!==s.length?[...t,...s]:t,[t,s]),l=i??t[0]?.id??"",[o,d]=(0,e.useState)(l),c=a?r:o,u=(0,e.useCallback)(t=>{a?n(t):d(t)},[a,n]),x=g.length>1?g:void 0,m=(0,e.useMemo)(()=>{if(s)return s.find(t=>t.id===c)},[s,c]);return{effectiveTabs:x,effectiveActiveTab:c,effectiveOnTabChange:u,activeAdditionalTab:m}}])},373351,t=>{"use strict";var e=t.i(843476),s=t.i(271645),r=t.i(893976),n=t.i(869803),i=t.i(348990);function a({value:t,disabled:s,resolveEnvName:i,resolveEnvDescription:l,onRemove:o,onMoveUp:c,onMoveDown:u,total:x}){return(0,e.jsx)("ol",{className:(0,r.cn)(n.UNSTYLED_LIST,"stg:space-y-1.5"),"aria-label":"Selected environments (merge order)",children:t.map((t,n)=>(0,e.jsxs)("li",{className:(0,r.cn)("stg:flex stg:items-center stg:gap-2 stg:rounded-md stg:border stg:border-border stg:px-3 stg:py-2","stg:bg-muted/30"),children:[(0,e.jsxs)("span",{className:"stg:shrink-0 stg:w-5 stg:text-xs stg:font-medium stg:text-muted-foreground stg:text-right",children:[n+1,"."]}),(0,e.jsxs)("div",{className:"stg:flex-1 stg:min-w-0",children:[(0,e.jsx)("span",{className:"stg:text-sm stg:font-medium stg:text-foreground stg:truncate stg:block",children:i(t)}),l(t)&&(0,e.jsx)("span",{className:"stg:text-[0.65rem] stg:text-muted-foreground stg:truncate stg:block",children:l(t)})]}),!s&&(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-0.5 stg:shrink-0",children:[(0,e.jsx)(g,{direction:"up",disabled:0===n,onClick:()=>c(n),label:`Move ${i(t)} up`}),(0,e.jsx)(g,{direction:"down",disabled:n===x-1,onClick:()=>u(n),label:`Move ${i(t)} down`}),(0,e.jsx)("button",{type:"button",onClick:()=>o(n),"aria-label":`Remove ${i(t)}`,className:(0,r.cn)("stg:rounded stg:p-1 stg:text-muted-foreground","stg:hover:text-destructive stg:hover:bg-destructive/10","stg:focus:outline-none stg:focus:ring-1 stg:focus:ring-ring"),children:(0,e.jsx)(d,{})})]})]},`${t.org}-${t.slug}-${n}`))})}function g({direction:t,disabled:s,onClick:n,label:i}){return(0,e.jsx)("button",{type:"button",disabled:s,onClick:n,"aria-label":i,className:(0,r.cn)("stg:rounded stg:p-1 stg:text-muted-foreground","stg:hover:text-foreground stg:hover:bg-accent-hover","stg:focus:outline-none stg:focus:ring-1 stg:focus:ring-ring","stg:disabled:opacity-30 stg:disabled:cursor-not-allowed stg:disabled:hover:bg-transparent"),children:"up"===t?(0,e.jsx)(l,{}):(0,e.jsx)(o,{})})}function l(){return(0,e.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M6 2.5v7M6 2.5L3 5.5M6 2.5l3 3",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function o(){return(0,e.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M6 9.5v-7M6 9.5L3 6.5M6 9.5l3-3",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function d(){return(0,e.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M3 3l6 6M9 3l-6 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}t.s(["EnvironmentPicker",0,function({org:t,value:n,onChange:g,disabled:l=!1,filterEnvironment:o,className:d}){let{environments:c,isLoading:u}=(0,i.useEnvironmentList)(t),x=(0,s.useId)(),m=(0,s.useMemo)(()=>new Set(n.map(t=>t.slug)),[n]),b=(0,s.useMemo)(()=>c.filter(t=>!m.has(t.metadata?.slug??"")&&(o?.(t)??!0)),[c,m,o]),h=(0,s.useCallback)(e=>{let s=c.find(t=>t.metadata?.slug===e);s&&g([...n,{org:t,slug:s.metadata.slug}])},[c,g,t,n]),f=(0,s.useCallback)(t=>{let e=[...n];e.splice(t,1),g(e)},[g,n]),p=(0,s.useCallback)(t=>{if(0===t)return;let e=[...n];[e[t-1],e[t]]=[e[t],e[t-1]],g(e)},[g,n]),v=(0,s.useCallback)(t=>{if(t>=n.length-1)return;let e=[...n];[e[t],e[t+1]]=[e[t+1],e[t]],g(e)},[g,n]),j=(0,s.useCallback)(t=>{let e=c.find(e=>e.metadata?.slug===t.slug);return e?.metadata?.name??t.slug},[c]),k=(0,s.useCallback)(t=>{let e=c.find(e=>e.metadata?.slug===t.slug);return e?.spec?.description??""},[c]);return(0,e.jsxs)("div",{className:(0,r.cn)("stg:space-y-3",d),role:"group","aria-label":"Environment bindings",children:[n.length>0&&(0,e.jsx)(a,{value:n,disabled:l,resolveEnvName:j,resolveEnvDescription:k,onRemove:f,onMoveUp:p,onMoveDown:v,total:n.length}),n.length>1&&(0,e.jsx)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:"Environments are merged in order. Later entries override earlier ones when keys conflict."}),(0,e.jsxs)("div",{children:[(0,e.jsx)("label",{htmlFor:x,className:"stg:sr-only",children:"Add environment"}),(0,e.jsxs)("select",{id:x,disabled:l||0===b.length,value:"",onChange:t=>{t.target.value&&h(t.target.value)},className:(0,r.cn)("stg:w-full stg:rounded-md stg:border stg:border-border stg:bg-background stg:px-3 stg:py-1.5 stg:text-sm","stg:text-foreground stg:placeholder:text-muted-foreground","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring","stg:disabled:cursor-not-allowed stg:disabled:opacity-50"),children:[(0,e.jsx)("option",{value:"",children:u?"Loading environments...":0===b.length?n.length===c.length&&c.length>0?"All environments selected":"No environments available":"+ Add environment"}),b.map(t=>(0,e.jsx)("option",{value:t.metadata?.slug,children:t.metadata?.name??t.metadata?.slug},t.metadata?.slug))]})]})]})}])},261722,t=>{"use strict";var e=t.i(843476),s=t.i(271645),r=t.i(893976);function n({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:l,minRows:o=3,disabled:d,isSaving:c,error:u,className:x}){let[m,b]=(0,s.useState)(!1),[h,f]=(0,s.useState)(t),[p,v]=(0,s.useState)(null),j=(0,s.useRef)(null);(0,s.useEffect)(()=>{m&&(f(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 k=(0,s.useCallback)(async()=>{if(h===t)return void b(!1);if(l){let t=l(h);if(t)return void v(t)}await a(h)&&b(!1)},[h,t,l,a]),y=(0,s.useCallback)(()=>{b(!1),f(t),v(null)},[t]),N=(0,s.useCallback)(t=>{"Enter"===t.key&&(t.ctrlKey||t.metaKey)?(t.preventDefault(),k()):"Escape"===t.key&&y()},[k,y]),C=p||u;return d||!m?(0,e.jsx)("div",{className:(0,r.cn)("stg:group/inline-edit",x),children:(0,e.jsx)("button",{type:"button",onClick:()=>{d||b(!0)},disabled:d,className:(0,r.cn)("stg:w-full stg:rounded-md stg:px-2 stg:py-1.5 stg:text-left stg:transition-colors",!d&&"stg:hover:bg-accent-hover stg:cursor-pointer",d&&"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,r.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}),!d&&(0,e.jsx)(n,{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,r.cn)("stg:flex stg:flex-col stg:gap-1.5",x),children:[(0,e.jsx)("textarea",{ref:j,value:h,onChange:t=>{f(t.target.value),v(null)},onKeyDown:N,disabled:c,placeholder:g,rows:o,className:(0,r.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",C&&"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:c?"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:y,disabled:c,className:(0,r.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:k,disabled:c,className:(0,r.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:[c&&(0,e.jsx)(i,{}),"Save"]})]})]}),C&&(0,e.jsx)("p",{className:"stg:px-1 stg:text-xs stg:text-destructive",role:"alert",children:C})]})}])},352371,t=>{"use strict";var e=t.i(271645);t.i(222258);var s=t.i(967785),r=t.i(590745),n=t.i(846696),i=t.i(745176),a=t.i(193799),g=t.i(926059);t.s(["useExportResource",0,function({kind:t,resource:l}){let o=(0,e.useMemo)(()=>l?"Workflow"===t?(0,g.serializeWorkflowYaml)(l):(0,r.serializeManifest)(l):null,[t,l]),d=(0,e.useMemo)(()=>o?JSON.stringify((0,s.parse)(o),null,2):null,[o]),c=(0,e.useMemo)(()=>l&&(l.metadata?.slug||l.metadata?.name)||"resource",[l]),{copy:u}=(0,a.useCopyFeedback)(),x=(0,e.useCallback)(async()=>{o&&(await u(o)?n.toast.success("YAML copied to clipboard"):n.toast.error("Couldn't copy YAML"))},[u,o]),m=(0,e.useCallback)(async()=>{d&&(await u(d)?n.toast.success("JSON copied to clipboard"):n.toast.error("Couldn't copy JSON"))},[u,d]),b=(0,e.useCallback)(()=>{o&&(0,i.downloadTextFile)(o,`${c}.yaml`,"text/yaml")},[o,c]),h=(0,e.useCallback)(()=>{d&&(0,i.downloadTextFile)(d,`${c}.json`,"application/json")},[d,c]);return(0,e.useMemo)(()=>({copyYaml:x,copyJson:m,downloadYaml:b,downloadJson:h,yaml:o,json:d}),[x,m,b,h,o,d])}])},52595,t=>{"use strict";var e=t.i(843476),s=t.i(271645),r=t.i(893976);function n({className:t}){return(0,e.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M8 3v10M3 8h10"})})}function i({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:"M2 4h12M5.333 4V2.667a1.333 1.333 0 0 1 1.334-1.334h2.666a1.333 1.333 0 0 1 1.334 1.334V4M12.667 4v9.333a1.333 1.333 0 0 1-1.334 1.334H4.667a1.333 1.333 0 0 1-1.334-1.334V4"})})}function a(){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(["InlineEditKeyValue",0,function({value:t,onSave:g,keyLabel:l="Key",showValue:o=!1,valueLabel:d="Value",showSecretToggle:c=!1,showOptionalToggle:u=!1,showDescription:x=!1,editing:m,onEditingChange:b,disabled:h,isSaving:f,error:p,className:v}){let[j,k]=(0,s.useState)(!1),y=m??j,N=(0,s.useCallback)(t=>{k(t),b?.(t)},[b]);(0,s.useEffect)(()=>{void 0!==m&&k(m)},[m]);let[C,w]=(0,s.useState)([...t]);(0,s.useCallback)(()=>{w([...t]),N(!0)},[t,N]);let M=(0,s.useCallback)(()=>{N(!1),w([...t])},[t,N]),S=(0,s.useCallback)(async()=>{let t=C.filter(t=>t.key.trim());await g(t)&&N(!1)},[C,g,N]),L=(0,s.useCallback)((t,e)=>{w(s=>s.map((s,r)=>r===t?{...s,...e}:s))},[]),A=(0,s.useCallback)(t=>{w(e=>e.filter((e,s)=>s!==t))},[]),E=(0,s.useCallback)(()=>{w(t=>[...t,{key:"",value:"",isSecret:!1,description:""}])},[]);return h||!y?(0,e.jsx)("div",{className:(0,r.cn)("stg:flex stg:flex-col",v),children:t.length>0?(0,e.jsx)("div",{className:"stg:flex stg:flex-col stg:divide-y stg:divide-border",children:t.map(t=>(0,e.jsxs)("div",{className:"stg:flex stg:items-start stg:gap-3 stg:px-3 stg:py-2.5",children:[(0,e.jsx)("code",{className:"stg:shrink-0 stg:font-mono stg:text-sm stg:font-medium stg:text-foreground",children:t.key}),o&&(0,e.jsx)("span",{className:"stg:min-w-0 stg:break-all stg:font-mono stg:text-xs stg:text-muted-foreground",children:t.value}),c&&(0,e.jsx)("span",{className:"stg:shrink-0 stg:rounded stg:bg-muted stg:px-1.5 stg:py-0.5 stg:text-[10px] stg:font-medium stg:text-muted-foreground",children:t.isSecret?"secret":"config"}),u&&t.optional&&(0,e.jsx)("span",{className:"stg:shrink-0 stg:rounded stg:bg-muted stg:px-1.5 stg:py-0.5 stg:text-[10px] stg:font-medium stg:text-muted-foreground-subtle",children:"optional"}),t.description&&(0,e.jsx)("span",{className:"stg:text-xs stg:text-muted-foreground",children:t.description})]},t.key))}):(0,e.jsx)("p",{className:"stg:px-3 stg:py-3 stg:text-xs stg:text-muted-foreground stg:italic",children:"No entries"})}):(0,e.jsxs)("div",{className:(0,r.cn)("stg:flex stg:flex-col stg:gap-3",v),children:[C.map((t,s)=>(0,e.jsxs)("div",{className:"stg:flex stg:items-start stg:gap-2 stg:rounded-md stg:border stg:border-border stg:bg-muted-faint stg:p-2.5",children:[(0,e.jsxs)("div",{className:"stg:flex stg:flex-1 stg:flex-col stg:gap-1.5",children:[(0,e.jsx)("input",{type:"text",value:t.key,onChange:t=>L(s,{key:t.target.value}),placeholder:l,className:(0,r.cn)("stg:rounded-md stg:border stg:border-border stg:bg-input-bg stg:px-2 stg:py-1 stg:font-mono stg:text-sm stg:text-foreground","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring")}),o&&(0,e.jsx)("input",{type:"text",value:t.value,onChange:t=>L(s,{value:t.target.value}),placeholder:d,className:(0,r.cn)("stg:rounded-md stg:border stg:border-border stg:bg-input-bg stg:px-2 stg:py-1 stg:font-mono stg:text-sm stg:text-foreground","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring")}),x&&(0,e.jsx)("input",{type:"text",value:t.description??"",onChange:t=>L(s,{description:t.target.value}),placeholder:"Description",className:(0,r.cn)("stg:rounded-md stg:border stg:border-border stg:bg-input-bg stg:px-2 stg:py-1 stg:text-xs stg:text-foreground","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring")}),(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-3",children:[c&&(0,e.jsxs)("label",{className:"stg:inline-flex stg:items-center stg:gap-1.5 stg:text-xs stg:text-muted-foreground stg:cursor-pointer",children:[(0,e.jsx)("input",{type:"checkbox",checked:t.isSecret??!1,onChange:t=>L(s,{isSecret:t.target.checked}),className:"stg:size-3.5 stg:rounded stg:border-border"}),"Secret"]}),u&&(0,e.jsxs)("label",{className:"stg:inline-flex stg:items-center stg:gap-1.5 stg:text-xs stg:text-muted-foreground stg:cursor-pointer",children:[(0,e.jsx)("input",{type:"checkbox",checked:t.optional??!1,onChange:t=>L(s,{optional:t.target.checked}),className:"stg:size-3.5 stg:rounded stg:border-border"}),"Optional"]})]})]}),(0,e.jsx)("button",{type:"button",onClick:()=>A(s),"aria-label":`Remove ${t.key||"entry"}`,className:(0,r.cn)("stg:mt-1 stg:inline-flex stg:size-6 stg:items-center stg:justify-center stg:rounded-md stg:text-muted-foreground","stg:hover:bg-destructive-subtle stg:hover:text-destructive","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:(0,e.jsx)(i,{className:"stg:size-3.5"})})]},s)),(0,e.jsxs)("button",{type:"button",onClick:E,className:(0,r.cn)("stg:inline-flex stg:items-center stg:gap-1 stg:rounded-md stg:px-2.5 stg:py-1.5 stg:text-xs stg:font-medium","stg:border stg:border-dashed stg:border-border stg:text-muted-foreground","stg:hover:border-muted-foreground stg:hover:text-foreground stg:hover:bg-muted-subtle","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:transition-colors"),children:[(0,e.jsx)(n,{className:"stg:size-3"}),"Add entry"]}),(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-end stg:gap-1.5",children:[(0,e.jsx)("button",{type:"button",onClick:M,disabled:f,className:(0,r.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: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:S,disabled:f,className:(0,r.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:[f&&(0,e.jsx)(a,{}),"Save changes"]})]}),p&&(0,e.jsx)("p",{className:"stg:px-1 stg:text-xs stg:text-destructive",role:"alert",children:p})]})}])},330815,t=>{"use strict";var e=t.i(843476),s=t.i(758960),r=t.i(973532),n=t.i(853793);t.s(["InstanceVisibilitySelector",0,function({visibility:t,onVisibilityChange:i,mode:a,isPending:g=!1,disabled:l=!1,className:o}){let d=(0,r.useCanSetPublicVisibility)();return(0,e.jsx)(s.VisibilitySelector,{visibility:t,options:(0,n.instanceVisibilityLevels)({canSetPublicVisibility:d.allowed}),onVisibilityChange:i,mode:a,isPending:g,disabled:l,ariaLabel:"Instance visibility",className:o})}])}]);
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,476007,t=>{"use strict";var e=t.i(843476),s=t.i(271645),r=t.i(610595),n=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 l({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 o({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:d,retry:c,className:u}){let[x,m]=(0,s.useState)(!1);if(!t)return null;let b=(0,r.classifyError)(t),h=(0,r.getUserMessage)(t),f=(0,r.getRpcMetadata)(t),p=(0,r.isRetryableError)(t);return(0,e.jsx)("div",{role:"alert",className:(0,n.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"===b||"permission"===b?(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:d??i[b]}),(0,e.jsx)("p",{className:"stg:text-destructive-muted stg:text-sm",children:h}),f&&(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)(l,{className:(0,n.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:f.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:f.path})]})]})]})]}),c&&p&&(0,e.jsxs)("button",{type:"button",onClick:c,className:(0,n.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)(o,{className:"stg:size-3"}),"Retry"]})]})})}])},310057,t=>{"use strict";var e=t.i(843476),s=t.i(271645);let r=(0,s.createContext)(null);t.s(["LibraryBreadcrumbProvider",0,function({children:t}){let[n,i]=(0,s.useState)(null),a=(0,s.useCallback)(t=>i(t),[]),g=(0,s.useMemo)(()=>({label:n,setLabel:a}),[n,a]);return(0,e.jsx)(r.Provider,{value:g,children:t})},"useBreadcrumbLabel",0,function(){return(0,s.useContext)(r)?.label??null},"useBreadcrumbOverride",0,function(){let t=(0,s.useContext)(r),e=(0,s.useCallback)(t=>{},[]);return{setLabel:t?.setLabel??e}}])},927056,t=>{"use strict";var e=t.i(843476),s=t.i(271645),r=t.i(893976);t.s(["Tabs",0,function({tabs:t,activeTab:n,onTabChange:i,children:a,"aria-label":g,className:l}){let o=(0,s.useId)(),d=(0,s.useRef)(new Map),c=t=>`${o}-tab-${t}`,u=t=>`${o}-panel-${t}`,x=(0,s.useCallback)(t=>{d.current.get(t)?.focus(),i(t)},[i]),m=(0,s.useCallback)(e=>{let s=t.findIndex(t=>t.id===n);if(-1===s)return;let r=null;switch(e.key){case"ArrowRight":r=(s+1)%t.length;break;case"ArrowLeft":r=(s-1+t.length)%t.length;break;case"Home":r=0;break;case"End":r=t.length-1;break;default:return}e.preventDefault(),x(t[r].id)},[t,n,x]);return(0,e.jsxs)("div",{className:(0,r.cn)("stg:flex stg:flex-col",l),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===n;return(0,e.jsxs)("button",{ref:e=>{e?d.current.set(t.id,e):d.current.delete(t.id)},id:c(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,r.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,r.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(n),role:"tabpanel","aria-labelledby":c(n),tabIndex:0,className:"stg:min-h-0 stg:flex-1 stg:pt-4 stg:focus-visible:outline-none",children:a})]})}])},266442,t=>{"use strict";var e=t.i(843476),s=t.i(893976),r=t.i(188482);let n={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 l=i??n[t],o=(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"}),l]});return a?(0,e.jsxs)(r.Tooltip,{children:[(0,e.jsx)(r.TooltipTrigger,{render:(0,e.jsx)("span",{className:"stg:inline-flex"}),children:o}),(0,e.jsx)(r.TooltipContent,{side:"top",children:a})]}):o}])},154752,t=>{"use strict";var e=t.i(271645),s=t.i(846696),r=t.i(193799);t.s(["useCopyResource",0,function(){let{copy:t}=(0,r.useCopyFeedback)(),n=(0,e.useCallback)(async(e,r)=>{await t(e)?s.toast.success(`${r} copied`):s.toast.error(`Couldn't copy ${r}`)},[t]),i=(0,e.useCallback)(t=>n(t,"ID"),[n]),a=(0,e.useCallback)(t=>n(t,"Slug"),[n]),g=(0,e.useCallback)((t,e)=>n(`${t}/${e}`,"Qualified slug"),[n]);return(0,e.useMemo)(()=>({copy:n,copyId:i,copySlug:a,copyQualifiedSlug:g}),[n,i,a,g])}])},668093,652337,t=>{"use strict";var e=t.i(843476),s=t.i(893976),r=t.i(266442),n=t.i(927056),i=t.i(271645),a=t.i(845132);function g({primaryAction:t,actions:r,className:n}){let i=null!=r&&r.length>0;return t||i?(0,e.jsxs)("div",{className:(0,s.cn)("stg:flex stg:items-center stg:gap-2",n),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)(l,{actions:r})]}):null}function l({actions:t}){var s;let r=(s=t,(0,i.useMemo)(()=>{let t=new Map;for(let e of s){let s=e.group??"__default",r=t.get(s);r?r.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)(o,{className:"stg:size-4"})}),(0,e.jsx)(a.ActionMenu.Content,{children:r.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 o({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 d({header:t,visibilityControl:s,metaExtra:n}){let{name:i,nameElement:a,org:g,slug:l,qualifiedSlug:o,description:x,iconUrl:m,icon:b,createdAt:h,updatedAt:f,status:p,statusLabel:v}=t,j=l&&l!==i&&!o;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"}):b?(0,e.jsx)("span",{className:"stg:mt-1 stg:shrink-0",children:b}):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:l}),p&&(0,e.jsx)(r.StatusBadge,{phase:p,label:v}),s]}),o&&(0,e.jsx)("span",{className:"stg:mt-0.5 stg:block stg:truncate stg:font-mono stg:text-xs stg:text-muted-foreground",children:o}),(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}),n,h&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(c,{}),(0,e.jsxs)("span",{children:["Created ",u(h)]})]}),f&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(c,{}),(0,e.jsxs)("span",{children:["Updated ",u(f)]})]})]}),x&&(0,e.jsx)("p",{className:"stg:mt-2 stg:text-sm stg:text-muted-foreground",children:x})]})]})}function c(){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:r,headerMetaExtra:i,headerBanner:a,primaryAction:l,actions:o,tabs:c,activeTab:u,onTabChange:x,tabsAriaLabel:m,children:b,className:h}){let f=null!=c&&c.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)(d,{header:t,visibilityControl:r,metaExtra:i}),(0,e.jsx)(g,{primaryAction:l,actions:o,className:"stg:shrink-0"})]}),f&&u&&x?(0,e.jsx)(n.Tabs,{tabs:c,activeTab:u,onTabChange:x,"aria-label":m,children:b}):b]})}],668093),t.s(["Section",0,function({title:t,count:r,headerActions:n,onEdit:i,scrollTarget:a,children:g,className:l}){return(0,e.jsxs)("section",{className:l,"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!=r&&r>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:r}),(n||i)&&(0,e.jsxs)("div",{className:"stg:ml-auto stg:flex stg:items-center stg:gap-1",children:[n,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)},582321,t=>{"use strict";var e=t.i(271645),s=t.i(586108),r=t.i(326283),n=t.i(846696);function i(t){switch(t){case"agent":return"agent";case"skill":return"skill";case"mcpServer":return"MCP server";case"workflow":return"workflow";case"schedule":return"schedule";case"plugin":return"plugin"}}t.s(["useDeleteResource",0,function(t,a,g){let l=(0,s.useStigmer)(),[o,d]=(0,e.useState)(!1),[c,u]=(0,e.useState)(null),x=(0,e.useCallback)(async()=>{if(a){d(!0),u(null);try{switch(t){case"agent":await l.agent.delete(a);break;case"skill":await l.skill.delete(a);break;case"mcpServer":await l.mcpServer.delete({resourceId:a});break;case"workflow":await l.workflow.delete(a);break;case"schedule":await l.schedule.delete(a);break;case"plugin":await l.plugin.delete(a)}n.toast.success(g?`${g} deleted`:`${i(t)} deleted`)}catch(s){let e=(0,r.toError)(s);throw u(e),n.toast.error(`Failed to delete ${i(t)}`),e}finally{d(!1)}}},[l,t,a,g]);return(0,e.useMemo)(()=>({deleteResource:x,isDeleting:o,error:c}),[x,o,c])}])},267912,t=>{"use strict";var e=t.i(271645);t.s(["useDetailTabs",0,function({builtInTabs:t,additionalTabs:s,activeTab:r,onTabChange:n,defaultTab:i}){let a=void 0!==r&&void 0!==n,g=(0,e.useMemo)(()=>s&&0!==s.length?[...t,...s]:t,[t,s]),l=i??t[0]?.id??"",[o,d]=(0,e.useState)(l),c=a?r:o,u=(0,e.useCallback)(t=>{a?n(t):d(t)},[a,n]),x=g.length>1?g:void 0,m=(0,e.useMemo)(()=>{if(s)return s.find(t=>t.id===c)},[s,c]);return{effectiveTabs:x,effectiveActiveTab:c,effectiveOnTabChange:u,activeAdditionalTab:m}}])},373351,t=>{"use strict";var e=t.i(843476),s=t.i(271645),r=t.i(893976),n=t.i(869803),i=t.i(348990);function a({value:t,disabled:s,resolveEnvName:i,resolveEnvDescription:l,onRemove:o,onMoveUp:c,onMoveDown:u,total:x}){return(0,e.jsx)("ol",{className:(0,r.cn)(n.UNSTYLED_LIST,"stg:space-y-1.5"),"aria-label":"Selected environments (merge order)",children:t.map((t,n)=>(0,e.jsxs)("li",{className:(0,r.cn)("stg:flex stg:items-center stg:gap-2 stg:rounded-md stg:border stg:border-border stg:px-3 stg:py-2","stg:bg-muted/30"),children:[(0,e.jsxs)("span",{className:"stg:shrink-0 stg:w-5 stg:text-xs stg:font-medium stg:text-muted-foreground stg:text-right",children:[n+1,"."]}),(0,e.jsxs)("div",{className:"stg:flex-1 stg:min-w-0",children:[(0,e.jsx)("span",{className:"stg:text-sm stg:font-medium stg:text-foreground stg:truncate stg:block",children:i(t)}),l(t)&&(0,e.jsx)("span",{className:"stg:text-[0.65rem] stg:text-muted-foreground stg:truncate stg:block",children:l(t)})]}),!s&&(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-0.5 stg:shrink-0",children:[(0,e.jsx)(g,{direction:"up",disabled:0===n,onClick:()=>c(n),label:`Move ${i(t)} up`}),(0,e.jsx)(g,{direction:"down",disabled:n===x-1,onClick:()=>u(n),label:`Move ${i(t)} down`}),(0,e.jsx)("button",{type:"button",onClick:()=>o(n),"aria-label":`Remove ${i(t)}`,className:(0,r.cn)("stg:rounded stg:p-1 stg:text-muted-foreground","stg:hover:text-destructive stg:hover:bg-destructive/10","stg:focus:outline-none stg:focus:ring-1 stg:focus:ring-ring"),children:(0,e.jsx)(d,{})})]})]},`${t.org}-${t.slug}-${n}`))})}function g({direction:t,disabled:s,onClick:n,label:i}){return(0,e.jsx)("button",{type:"button",disabled:s,onClick:n,"aria-label":i,className:(0,r.cn)("stg:rounded stg:p-1 stg:text-muted-foreground","stg:hover:text-foreground stg:hover:bg-accent-hover","stg:focus:outline-none stg:focus:ring-1 stg:focus:ring-ring","stg:disabled:opacity-30 stg:disabled:cursor-not-allowed stg:disabled:hover:bg-transparent"),children:"up"===t?(0,e.jsx)(l,{}):(0,e.jsx)(o,{})})}function l(){return(0,e.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M6 2.5v7M6 2.5L3 5.5M6 2.5l3 3",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function o(){return(0,e.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M6 9.5v-7M6 9.5L3 6.5M6 9.5l3-3",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function d(){return(0,e.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M3 3l6 6M9 3l-6 6",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}t.s(["EnvironmentPicker",0,function({org:t,value:n,onChange:g,disabled:l=!1,filterEnvironment:o,className:d}){let{environments:c,isLoading:u}=(0,i.useEnvironmentList)(t),x=(0,s.useId)(),m=(0,s.useMemo)(()=>new Set(n.map(t=>t.slug)),[n]),b=(0,s.useMemo)(()=>c.filter(t=>!m.has(t.metadata?.slug??"")&&(o?.(t)??!0)),[c,m,o]),h=(0,s.useCallback)(e=>{let s=c.find(t=>t.metadata?.slug===e);s&&g([...n,{org:t,slug:s.metadata.slug}])},[c,g,t,n]),f=(0,s.useCallback)(t=>{let e=[...n];e.splice(t,1),g(e)},[g,n]),p=(0,s.useCallback)(t=>{if(0===t)return;let e=[...n];[e[t-1],e[t]]=[e[t],e[t-1]],g(e)},[g,n]),v=(0,s.useCallback)(t=>{if(t>=n.length-1)return;let e=[...n];[e[t],e[t+1]]=[e[t+1],e[t]],g(e)},[g,n]),j=(0,s.useCallback)(t=>{let e=c.find(e=>e.metadata?.slug===t.slug);return e?.metadata?.name??t.slug},[c]),k=(0,s.useCallback)(t=>{let e=c.find(e=>e.metadata?.slug===t.slug);return e?.spec?.description??""},[c]);return(0,e.jsxs)("div",{className:(0,r.cn)("stg:space-y-3",d),role:"group","aria-label":"Environment bindings",children:[n.length>0&&(0,e.jsx)(a,{value:n,disabled:l,resolveEnvName:j,resolveEnvDescription:k,onRemove:f,onMoveUp:p,onMoveDown:v,total:n.length}),n.length>1&&(0,e.jsx)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:"Environments are merged in order. Later entries override earlier ones when keys conflict."}),(0,e.jsxs)("div",{children:[(0,e.jsx)("label",{htmlFor:x,className:"stg:sr-only",children:"Add environment"}),(0,e.jsxs)("select",{id:x,disabled:l||0===b.length,value:"",onChange:t=>{t.target.value&&h(t.target.value)},className:(0,r.cn)("stg:w-full stg:rounded-md stg:border stg:border-border stg:bg-background stg:px-3 stg:py-1.5 stg:text-sm","stg:text-foreground stg:placeholder:text-muted-foreground","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring","stg:disabled:cursor-not-allowed stg:disabled:opacity-50"),children:[(0,e.jsx)("option",{value:"",children:u?"Loading environments...":0===b.length?n.length===c.length&&c.length>0?"All environments selected":"No environments available":"+ Add environment"}),b.map(t=>(0,e.jsx)("option",{value:t.metadata?.slug,children:t.metadata?.name??t.metadata?.slug},t.metadata?.slug))]})]})]})}])},261722,t=>{"use strict";var e=t.i(843476),s=t.i(271645),r=t.i(893976);function n({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:l,minRows:o=3,disabled:d,isSaving:c,error:u,className:x}){let[m,b]=(0,s.useState)(!1),[h,f]=(0,s.useState)(t),[p,v]=(0,s.useState)(null),j=(0,s.useRef)(null);(0,s.useEffect)(()=>{m&&(f(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 k=(0,s.useCallback)(async()=>{if(h===t)return void b(!1);if(l){let t=l(h);if(t)return void v(t)}await a(h)&&b(!1)},[h,t,l,a]),y=(0,s.useCallback)(()=>{b(!1),f(t),v(null)},[t]),N=(0,s.useCallback)(t=>{"Enter"===t.key&&(t.ctrlKey||t.metaKey)?(t.preventDefault(),k()):"Escape"===t.key&&y()},[k,y]),C=p||u;return d||!m?(0,e.jsx)("div",{className:(0,r.cn)("stg:group/inline-edit",x),children:(0,e.jsx)("button",{type:"button",onClick:()=>{d||b(!0)},disabled:d,className:(0,r.cn)("stg:w-full stg:rounded-md stg:px-2 stg:py-1.5 stg:text-left stg:transition-colors",!d&&"stg:hover:bg-accent-hover stg:cursor-pointer",d&&"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,r.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}),!d&&(0,e.jsx)(n,{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,r.cn)("stg:flex stg:flex-col stg:gap-1.5",x),children:[(0,e.jsx)("textarea",{ref:j,value:h,onChange:t=>{f(t.target.value),v(null)},onKeyDown:N,disabled:c,placeholder:g,rows:o,className:(0,r.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",C&&"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:c?"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:y,disabled:c,className:(0,r.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:k,disabled:c,className:(0,r.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:[c&&(0,e.jsx)(i,{}),"Save"]})]})]}),C&&(0,e.jsx)("p",{className:"stg:px-1 stg:text-xs stg:text-destructive",role:"alert",children:C})]})}])},352371,t=>{"use strict";var e=t.i(271645);t.i(222258);var s=t.i(967785),r=t.i(590745),n=t.i(846696),i=t.i(745176),a=t.i(193799),g=t.i(926059);t.s(["useExportResource",0,function({kind:t,resource:l}){let o=(0,e.useMemo)(()=>l?"Workflow"===t?(0,g.serializeWorkflowYaml)(l):(0,r.serializeManifest)(l):null,[t,l]),d=(0,e.useMemo)(()=>o?JSON.stringify((0,s.parse)(o),null,2):null,[o]),c=(0,e.useMemo)(()=>l&&(l.metadata?.slug||l.metadata?.name)||"resource",[l]),{copy:u}=(0,a.useCopyFeedback)(),x=(0,e.useCallback)(async()=>{o&&(await u(o)?n.toast.success("YAML copied to clipboard"):n.toast.error("Couldn't copy YAML"))},[u,o]),m=(0,e.useCallback)(async()=>{d&&(await u(d)?n.toast.success("JSON copied to clipboard"):n.toast.error("Couldn't copy JSON"))},[u,d]),b=(0,e.useCallback)(()=>{o&&(0,i.downloadTextFile)(o,`${c}.yaml`,"text/yaml")},[o,c]),h=(0,e.useCallback)(()=>{d&&(0,i.downloadTextFile)(d,`${c}.json`,"application/json")},[d,c]);return(0,e.useMemo)(()=>({copyYaml:x,copyJson:m,downloadYaml:b,downloadJson:h,yaml:o,json:d}),[x,m,b,h,o,d])}])},52595,t=>{"use strict";var e=t.i(843476),s=t.i(271645),r=t.i(893976);function n({className:t}){return(0,e.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:(0,e.jsx)("path",{d:"M8 3v10M3 8h10"})})}function i({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:"M2 4h12M5.333 4V2.667a1.333 1.333 0 0 1 1.334-1.334h2.666a1.333 1.333 0 0 1 1.334 1.334V4M12.667 4v9.333a1.333 1.333 0 0 1-1.334 1.334H4.667a1.333 1.333 0 0 1-1.334-1.334V4"})})}function a(){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(["InlineEditKeyValue",0,function({value:t,onSave:g,keyLabel:l="Key",showValue:o=!1,valueLabel:d="Value",showSecretToggle:c=!1,showOptionalToggle:u=!1,showDescription:x=!1,editing:m,onEditingChange:b,disabled:h,isSaving:f,error:p,className:v}){let[j,k]=(0,s.useState)(!1),y=m??j,N=(0,s.useCallback)(t=>{k(t),b?.(t)},[b]);(0,s.useEffect)(()=>{void 0!==m&&k(m)},[m]);let[C,w]=(0,s.useState)([...t]);(0,s.useCallback)(()=>{w([...t]),N(!0)},[t,N]);let M=(0,s.useCallback)(()=>{N(!1),w([...t])},[t,N]),S=(0,s.useCallback)(async()=>{let t=C.filter(t=>t.key.trim());await g(t)&&N(!1)},[C,g,N]),L=(0,s.useCallback)((t,e)=>{w(s=>s.map((s,r)=>r===t?{...s,...e}:s))},[]),A=(0,s.useCallback)(t=>{w(e=>e.filter((e,s)=>s!==t))},[]),E=(0,s.useCallback)(()=>{w(t=>[...t,{key:"",value:"",isSecret:!1,description:""}])},[]);return h||!y?(0,e.jsx)("div",{className:(0,r.cn)("stg:flex stg:flex-col",v),children:t.length>0?(0,e.jsx)("div",{className:"stg:flex stg:flex-col stg:divide-y stg:divide-border",children:t.map(t=>(0,e.jsxs)("div",{className:"stg:flex stg:items-start stg:gap-3 stg:px-3 stg:py-2.5",children:[(0,e.jsx)("code",{className:"stg:shrink-0 stg:font-mono stg:text-sm stg:font-medium stg:text-foreground",children:t.key}),o&&(0,e.jsx)("span",{className:"stg:min-w-0 stg:break-all stg:font-mono stg:text-xs stg:text-muted-foreground",children:t.value}),c&&(0,e.jsx)("span",{className:"stg:shrink-0 stg:rounded stg:bg-muted stg:px-1.5 stg:py-0.5 stg:text-[10px] stg:font-medium stg:text-muted-foreground",children:t.isSecret?"secret":"config"}),u&&t.optional&&(0,e.jsx)("span",{className:"stg:shrink-0 stg:rounded stg:bg-muted stg:px-1.5 stg:py-0.5 stg:text-[10px] stg:font-medium stg:text-muted-foreground-subtle",children:"optional"}),t.description&&(0,e.jsx)("span",{className:"stg:text-xs stg:text-muted-foreground",children:t.description})]},t.key))}):(0,e.jsx)("p",{className:"stg:px-3 stg:py-3 stg:text-xs stg:text-muted-foreground stg:italic",children:"No entries"})}):(0,e.jsxs)("div",{className:(0,r.cn)("stg:flex stg:flex-col stg:gap-3",v),children:[C.map((t,s)=>(0,e.jsxs)("div",{className:"stg:flex stg:items-start stg:gap-2 stg:rounded-md stg:border stg:border-border stg:bg-muted-faint stg:p-2.5",children:[(0,e.jsxs)("div",{className:"stg:flex stg:flex-1 stg:flex-col stg:gap-1.5",children:[(0,e.jsx)("input",{type:"text",value:t.key,onChange:t=>L(s,{key:t.target.value}),placeholder:l,className:(0,r.cn)("stg:rounded-md stg:border stg:border-border stg:bg-input-bg stg:px-2 stg:py-1 stg:font-mono stg:text-sm stg:text-foreground","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring")}),o&&(0,e.jsx)("input",{type:"text",value:t.value,onChange:t=>L(s,{value:t.target.value}),placeholder:d,className:(0,r.cn)("stg:rounded-md stg:border stg:border-border stg:bg-input-bg stg:px-2 stg:py-1 stg:font-mono stg:text-sm stg:text-foreground","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring")}),x&&(0,e.jsx)("input",{type:"text",value:t.description??"",onChange:t=>L(s,{description:t.target.value}),placeholder:"Description",className:(0,r.cn)("stg:rounded-md stg:border stg:border-border stg:bg-input-bg stg:px-2 stg:py-1 stg:text-xs stg:text-foreground","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring")}),(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-3",children:[c&&(0,e.jsxs)("label",{className:"stg:inline-flex stg:items-center stg:gap-1.5 stg:text-xs stg:text-muted-foreground stg:cursor-pointer",children:[(0,e.jsx)("input",{type:"checkbox",checked:t.isSecret??!1,onChange:t=>L(s,{isSecret:t.target.checked}),className:"stg:size-3.5 stg:rounded stg:border-border"}),"Secret"]}),u&&(0,e.jsxs)("label",{className:"stg:inline-flex stg:items-center stg:gap-1.5 stg:text-xs stg:text-muted-foreground stg:cursor-pointer",children:[(0,e.jsx)("input",{type:"checkbox",checked:t.optional??!1,onChange:t=>L(s,{optional:t.target.checked}),className:"stg:size-3.5 stg:rounded stg:border-border"}),"Optional"]})]})]}),(0,e.jsx)("button",{type:"button",onClick:()=>A(s),"aria-label":`Remove ${t.key||"entry"}`,className:(0,r.cn)("stg:mt-1 stg:inline-flex stg:size-6 stg:items-center stg:justify-center stg:rounded-md stg:text-muted-foreground","stg:hover:bg-destructive-subtle stg:hover:text-destructive","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:(0,e.jsx)(i,{className:"stg:size-3.5"})})]},s)),(0,e.jsxs)("button",{type:"button",onClick:E,className:(0,r.cn)("stg:inline-flex stg:items-center stg:gap-1 stg:rounded-md stg:px-2.5 stg:py-1.5 stg:text-xs stg:font-medium","stg:border stg:border-dashed stg:border-border stg:text-muted-foreground","stg:hover:border-muted-foreground stg:hover:text-foreground stg:hover:bg-muted-subtle","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:transition-colors"),children:[(0,e.jsx)(n,{className:"stg:size-3"}),"Add entry"]}),(0,e.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-end stg:gap-1.5",children:[(0,e.jsx)("button",{type:"button",onClick:M,disabled:f,className:(0,r.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: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:S,disabled:f,className:(0,r.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:[f&&(0,e.jsx)(a,{}),"Save changes"]})]}),p&&(0,e.jsx)("p",{className:"stg:px-1 stg:text-xs stg:text-destructive",role:"alert",children:p})]})}])},330815,t=>{"use strict";var e=t.i(843476),s=t.i(758960),r=t.i(973532),n=t.i(853793);t.s(["InstanceVisibilitySelector",0,function({visibility:t,onVisibilityChange:i,mode:a,isPending:g=!1,disabled:l=!1,className:o}){let d=(0,r.useCanSetPublicVisibility)();return(0,e.jsx)(s.VisibilitySelector,{visibility:t,options:(0,n.instanceVisibilityLevels)({canSetPublicVisibility:d.allowed}),onVisibilityChange:i,mode:a,isPending:g,disabled:l,ariaLabel:"Instance visibility",className:o})}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,758301,e=>{"use strict";var t=e.i(843476);e.s(["UploadIcon",0,function({className:e}){return(0,t.jsxs)("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,t.jsx)("polyline",{points:"17 8 12 3 7 8"}),(0,t.jsx)("line",{x1:"12",y1:"3",x2:"12",y2:"15"})]})}])},461439,e=>{"use strict";var t=e.i(843476),r=e.i(271645),s=e.i(618566),n=e.i(893976),a=e.i(65642),i=e.i(476007),l=e.i(379410),o=e.i(758301),d=e.i(427187),u=e.i(830419),g=e.i(775106),c=e.i(816053),p=e.i(229969),f=e.i(802087);function m(e){let t=null;for(let r of e){let e=r.indexOf("/");if(e<=0)return null;let s=r.slice(0,e);if(null===t)t=s;else if(t!==s)return null}return t}var h=e.i(321252),x=e.i(961378);class k extends Error{reason;constructor(e,t){super(e),this.reason=t,this.name="LocalPluginError"}}let y=[80,75,3,4];function b(e,t){if(0===t.length)throw new k(`'${e}' holds no files`,"empty");return{kind:"folder",name:e,candidates:t.map(({path:e,file:t})=>({path:e,size:t.size,read:async()=>new Uint8Array(await t.arrayBuffer())}))}}async function j(e){let t=new Uint8Array(await e.arrayBuffer());if(!y.every((e,r)=>t[r]===e))throw new k(`'${e.name}' is not a zip archive`,"not-a-zip");let r=Object.entries((0,p.unzipSync)(t)).filter(([e])=>!e.endsWith("/")&&!e.startsWith("__MACOSX/"));if(0===r.length)throw new k(`'${e.name}' holds no files`,"empty");let s=m(r.map(([e])=>e)),n=null===s?0:s.length+1;return{kind:"zip",name:e.name,candidates:r.map(([e,t])=>({path:e.slice(n),size:t.length,read:async()=>t})),...null!==s&&{rerooted:s}}}async function v(e){let t=await (0,f.preparePluginFromTree)(e.candidates,{respectGitignore:!0,maxBytes:h.MARKETPLACE_TREE_LIMITS.pluginBytes});if(!t.ok)switch(t.kind){case"refused":throw new x.PluginReadRefusal(`'${e.name}' cannot be installed`,t.errors,t.warnings);case"too-large":throw new k(`'${e.name}' is ${(0,h.formatMib)(t.selectedBytes)} of files after ignores, over the ${(0,h.formatMib)(t.maxBytes)} a plugin archive may carry`,"too-large");default:return t}let{plugin:r,warnings:s,stats:n,archive:a,digest:i}=t.prepared;return{origin:{kind:"upload",pick:e.kind,name:e.name,...void 0!==e.rerooted&&{rerooted:e.rerooted}},plugin:r,warnings:s,stats:n,archive:a,digest:i}}let w=/\.zip$/i;async function C(e,t){let r=[],s=e.createReader();for(;;){let e=await new Promise((e,t)=>s.readEntries(e,t));if(0===e.length)break;for(let s of e){let e=""===t?s.name:`${t}/${s.name}`;if(s.isDirectory)r.push(...await C(s,e));else if(s.isFile){let t=await new Promise((e,t)=>s.file(e,t));r.push({path:e,file:t})}}}return r}function z({org:e,onComplete:s,onCancel:a,className:i}){let l=function(){let[e,t]=(0,r.useState)({kind:"idle"}),s=(0,r.useCallback)(async(e,r,s)=>{t({kind:"preparing",name:r});try{let r=await v(await e());t({kind:"prepared",prepared:r})}catch(e){t({kind:"refused",error:e instanceof Error?e:Error(String(e)),pick:s})}},[]),n=(0,r.useCallback)(e=>{let t=e[0];return s(async()=>(function(e){let t=Array.from(e);if(0===t.length)throw new k("no files were picked","empty");let r=t.map(e=>({path:e.webkitRelativePath||e.name,file:e})),s=m(r.map(e=>e.path)),n=null===s?r:r.map(({path:e,file:t})=>({path:e.slice(s.length+1),file:t}));return b(s??"folder",n)})(e),t?.webkitRelativePath.split("/")[0]||"folder","folder")},[s]),a=(0,r.useCallback)(e=>s(()=>j(e),e.name,"zip"),[s]),i=(0,r.useCallback)(async(e,r)=>{let n=e[0]?.webkitGetAsEntry?.()??null;if(null!==n&&n.isDirectory)return s(async()=>b(n.name,await C(n,"")),n.name,"folder");let i=r[0];if(void 0!==i&&w.test(i.name))return a(i);t({kind:"refused",error:new k("drop a plugin folder or a .zip of one","empty"),pick:null})},[s,a]),l=(0,r.useCallback)(()=>t({kind:"idle"}),[]);return(0,r.useMemo)(()=>({phase:e,fromFolderInput:n,fromZip:a,fromDrop:i,reset:l}),[e,n,a,i,l])}();return(0,t.jsx)("div",{className:(0,n.cn)("stg:flex stg:flex-col stg:gap-4",i),children:"prepared"===l.phase.kind?(0,t.jsx)(P,{prepared:l.phase.prepared,org:e,onBack:l.reset,onComplete:s}):(0,t.jsx)(N,{upload:l,onCancel:a})})}function N({upload:e,onCancel:s}){let[i,u]=(0,r.useState)(!1),g=(0,r.useRef)(null),c=(0,r.useRef)(null),{phase:p}=e,f="preparing"===p.kind,m=(0,r.useCallback)(t=>{t.preventDefault(),t.stopPropagation(),u(!1),e.fromDrop(t.dataTransfer.items,t.dataTransfer.files)},[e]);return(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-3",children:[(0,t.jsxs)("div",{onDragOver:e=>{e.preventDefault(),e.stopPropagation(),u(!0)},onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),u(!1)},onDrop:m,"aria-label":"Upload a plugin",className:(0,n.cn)("stg:flex stg:flex-col stg:items-center stg:justify-center stg:gap-3 stg:rounded-lg stg:border-2 stg:border-dashed stg:p-12 stg:transition-colors",i?"stg:border-primary stg:bg-muted-subtle":"stg:border-border",f&&"stg:pointer-events-none stg:opacity-60"),children:[(0,t.jsx)(o.UploadIcon,{className:(0,n.cn)("stg:size-10 stg:text-muted-foreground",i&&"stg:text-primary")}),f?(0,t.jsxs)("p",{className:"stg:flex stg:items-center stg:gap-2 stg:text-sm stg:font-medium stg:text-foreground",role:"status",children:[(0,t.jsx)(l.SpinnerIcon,{className:"stg:size-4"}),"Reading ",p.name,"…"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"stg:text-sm stg:font-medium stg:text-foreground",children:"Drop a plugin folder or a .zip of one here"}),(0,t.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,t.jsx)(a.Button,{variant:"outline",size:"sm",onClick:()=>g.current?.click(),children:"Choose a folder"}),(0,t.jsx)(a.Button,{variant:"outline",size:"sm",onClick:()=>c.current?.click(),children:"Choose a .zip"})]})]}),(0,t.jsx)("p",{className:"stg:mt-2 stg:text-[10px] stg:text-muted-foreground-subtle",children:"A Cursor, Claude Code, Codex or Agent Plugins folder installs unchanged."}),(0,t.jsx)("input",{ref:e=>{g.current=e,e?.setAttribute("webkitdirectory","")},type:"file",multiple:!0,onChange:t=>{let{files:r}=t.target;r&&r.length>0&&e.fromFolderInput(r),t.target.value=""},className:"stg:hidden","aria-hidden":"true","data-testid":"plugin-folder-input"}),(0,t.jsx)("input",{ref:c,type:"file",accept:".zip",onChange:t=>{let r=t.target.files?.[0];r&&e.fromZip(r),t.target.value=""},className:"stg:hidden","aria-hidden":"true","data-testid":"plugin-zip-input"})]}),"refused"===p.kind&&(0,t.jsx)(d.PrepareRefusal,{error:p.error,..."refused"===p.kind&&"folder"===p.pick&&p.error instanceof x.PluginReadRefusal&&p.error.errors.some(e=>"no-manifest"===e.kind)&&{hint:"No manifest was found in the folder. Some browsers leave out files and folders whose names begin with a dot when a folder is picked, and a Cursor or Claude Code plugin keeps its manifest in one; zip the folder and upload the .zip instead."}}),s&&(0,t.jsx)("div",{className:"stg:flex stg:justify-end",children:(0,t.jsx)(a.Button,{variant:"outline",size:"sm",onClick:s,children:"Cancel"})})]})}function P({prepared:e,org:s,onBack:n,onComplete:l}){let o=(0,c.useInstallRelation)(e,s),{install:p,isInstalling:f,error:m}=(0,g.useInstallPlugin)(),[h,x]=(0,r.useState)(null),k=(0,r.useCallback)(async()=>{try{let t=await p(e,{org:s});x(t),l?.(t)}catch{}},[p,e,s,l]),y="upgrade"===o.relation?"Upgrade":"Install";return(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-5",children:[(0,t.jsxs)("header",{children:[(0,t.jsxs)("h2",{className:"stg:text-base stg:font-semibold stg:text-foreground",children:[y," ",e.plugin.name]}),(0,t.jsxs)("p",{className:"stg:mt-0.5 stg:text-xs stg:text-muted-foreground",children:["From ",(0,d.describeOrigin)(e.origin)," into ",s,". The archive is rebuilt from the selected files, so its digest is the one `stigmer push plugin` prints for this folder."]})]}),(0,t.jsx)(d.InstallPreview,{prepared:e,relation:o.relation}),o.error&&(0,t.jsx)(i.ErrorMessage,{error:o.error,title:"The organization could not be asked what it holds"}),m&&(0,t.jsx)(i.ErrorMessage,{error:m,title:"The server refused the install"}),h&&(0,t.jsxs)("div",{role:"status",className:"stg:rounded-md stg:border stg:border-border stg:bg-muted stg:p-3 stg:text-sm stg:text-foreground",children:["Installed plugin '",h.plugin.metadata?.slug,"' (",(0,u.summariseInstall)(h),")."]}),(0,t.jsxs)("footer",{className:"stg:flex stg:justify-end stg:gap-2 stg:pt-1",children:[(0,t.jsx)(a.Button,{variant:"outline",size:"sm",onClick:n,disabled:f,children:h?"Upload another":"Choose a different plugin"}),!h&&(0,t.jsx)(a.Button,{variant:"primary",size:"sm",onClick:k,disabled:f||o.isLoading||"installed"===o.relation,children:f?"Installing…":y})]})]})}var R=e.i(297629),A=e.i(310057);e.s(["PluginUploadPage",0,function(){let e=(0,R.useActiveOrgSlug)(),n=(0,s.useRouter)(),{setLabel:a}=(0,A.useBreadcrumbOverride)();return((0,r.useEffect)(()=>{a("Upload plugin")},[a]),e)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsx)("h1",{className:"text-foreground text-xl font-semibold",children:"Upload a plugin"}),(0,t.jsxs)("p",{className:"text-muted-foreground mt-1 text-sm",children:["A plugin folder from your computer, or a .zip of one, installed into ",e,". A Cursor, Claude Code, Codex or Agent Plugins folder installs unchanged."]})]}),(0,t.jsx)(z,{org:e,onComplete:({plugin:e})=>n.push(`/library/plugins/${e.metadata?.org}/${e.metadata?.slug}`),onCancel:()=>n.push("/library/plugins")})]}):null}],461439)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,940069,e=>{"use strict";let s={agents:"stigmer:library:agents:scope",skills:"stigmer:library:skills:scope","mcp-servers":"stigmer:library:mcp-servers:scope",workflows:"stigmer:workflows:scope",plugins:"stigmer:library:plugins:scope"};e.s(["readPersistedScope",0,function(e){return"all"===localStorage.getItem(s[e])?"all":"org"},"writePersistedScope",0,function(e,i){localStorage.setItem(s[e],i)}])},569074,e=>{"use strict";let s=(0,e.i(475254).default)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]);e.s(["Upload",0,s],569074)},961888,e=>{"use strict";let s=(0,e.i(475254).default)("blocks",[["path",{d:"M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2",key:"1ah6g2"}],["rect",{x:"14",y:"2",width:"8",height:"8",rx:"1",key:"88lufb"}]]);e.s(["Blocks",0,s],961888)},249953,e=>{"use strict";var s=e.i(843476),i=e.i(271645),t=e.i(522016),r=e.i(961888),n=e.i(174886),l=e.i(778917),a=e.i(541071),o=e.i(223945),c=e.i(727612),u=e.i(569074),d=e.i(451241),m=e.i(940069),g=e.i(610008),p=e.i(845132),h=e.i(586108),x=e.i(297629),f=e.i(966205),v=e.i(10337),b=e.i(846696);let j=[{id:"name",header:"Name",cell:e=>(0,s.jsx)("span",{className:"font-medium text-foreground",children:e.name||e.slug}),sortable:!0,flex:2},{id:"org",header:"Organization",cell:e=>(0,s.jsx)("span",{className:"text-muted-foreground",children:e.org}),flex:1},{id:"description",header:"Description",cell:e=>(0,s.jsx)("span",{className:"line-clamp-1 text-muted-foreground",children:e.description||"—"}),flex:3}];function y({size:e}){let i="sm"===e?"text-sm":"text-xs";return(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsxs)(t.default,{href:"/marketplace",className:`inline-flex items-center gap-1.5 rounded-md bg-primary px-3 py-1.5 font-medium text-primary-foreground transition-colors hover:bg-primary-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${i}`,children:[(0,s.jsx)(o.Store,{className:"size-3.5","aria-hidden":"true"}),"Browse Marketplace"]}),(0,s.jsxs)(t.default,{href:"/library/plugins/upload",className:`inline-flex items-center gap-1.5 rounded-md border border-border px-3 py-1.5 font-medium text-foreground transition-colors hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ${i}`,children:[(0,s.jsx)(u.Upload,{className:"size-3.5","aria-hidden":"true"}),"Upload plugin"]})]})}e.s(["PluginListPage",0,function(){let e=(0,x.useActiveOrgSlug)(),t=(0,h.useStigmer)(),{navigateToDetail:o}=(0,d.useLibraryNavigation)(),{confirmState:u,confirm:k,handleConfirm:w,handleCancel:M}=(0,f.useConfirmAction)(),[N,S]=(0,i.useState)(()=>(0,m.readPersistedScope)("plugins")),[C,A]=(0,i.useReducer)(e=>e+1,0),P=(0,i.useCallback)(async e=>{if(await k({title:`Remove ${e.name||e.slug}?`,description:"Removes the plugin and every skill, MCP server and agent it installed. The server refuses if something outside the plugin still uses one of them.",confirmLabel:"Remove",variant:"destructive"}))try{await t.plugin.delete(e.id),b.toast.success(`${e.name||e.slug} removed`),A()}catch(e){b.toast.error(e instanceof Error?e.message:"Failed to remove plugin")}},[k,t]),z=(0,i.useCallback)(e=>{S(e),(0,m.writePersistedScope)("plugins",e)},[]),I=(0,i.useMemo)(()=>e=>t.plugin.list(e),[t]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"mb-6",children:[(0,s.jsx)("h1",{className:"text-foreground text-xl font-semibold",children:"Plugins"}),(0,s.jsx)("p",{className:"text-muted-foreground mt-1 text-sm",children:"What you have installed. A plugin is what you install; the agent it installs is what runs."})]}),(0,s.jsx)(g.ResourceWorkbench,{refetchToken:C,listFn:I,org:e,columns:j,scope:N,onScopeChange:z,defaultViewMode:"cards",viewModes:["table","cards"],viewModeStorageKey:"stigmer:workbench:plugins:viewMode",searchPlaceholder:"Search plugins…",emptyIcon:(0,s.jsx)(r.Blocks,{className:"size-10","aria-hidden":"true"}),emptyTitle:"No plugins installed",emptyDescription:"Install a plugin from the Marketplace, or upload one from your computer, to add skills, MCP servers and an agent that uses them, as one unit.",headerAction:(0,s.jsx)(y,{size:"sm"}),emptyAction:(0,s.jsx)(y,{size:"xs"}),onItemClick:e=>o("plugins",e.org,e.slug),renderItemAction:e=>(0,s.jsx)("div",{onClick:e=>e.stopPropagation(),children:(0,s.jsxs)(p.ActionMenu,{children:[(0,s.jsx)(p.ActionMenu.Trigger,{"aria-label":`Actions for ${e.name||e.slug}`,children:(0,s.jsx)(a.MoreHorizontal,{className:"size-4"})}),(0,s.jsxs)(p.ActionMenu.Content,{children:[(0,s.jsx)(p.ActionMenu.Item,{icon:(0,s.jsx)(l.ExternalLink,{className:"size-4"}),onSelect:()=>o("plugins",e.org,e.slug),children:"View details"}),(0,s.jsx)(p.ActionMenu.Item,{icon:(0,s.jsx)(n.Copy,{className:"size-4"}),onSelect:()=>{navigator.clipboard.writeText(`${e.org}/${e.slug}`),b.toast.success("Copied plugin ID")},children:"Copy ID"}),(0,s.jsx)(p.ActionMenu.Separator,{}),(0,s.jsx)(p.ActionMenu.Item,{icon:(0,s.jsx)(c.Trash2,{className:"size-4"}),variant:"destructive",onSelect:()=>P(e),children:"Remove"})]})]})}),"aria-label":"Plugin workbench"}),(0,s.jsx)(v.ConfirmDialog,{state:u,onConfirm:w,onCancel:M})]})}])}]);
|