@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 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,468806,t=>{"use strict";var e=t.i(843476),a=t.i(271645),o=t.i(893976);let r={sm:"stg:max-w-sm",md:"stg:max-w-md",lg:"stg:max-w-lg",xl:"stg:max-w-xl","2xl":"stg:max-w-2xl","3xl":"stg:max-w-3xl","4xl":"stg:max-w-4xl"};t.s(["DialogShell",0,function({open:t,onOpenChange:n,width:s="md",modal:i=!0,dismissOnBackdrop:l=!1,className:d,children:u,"aria-label":c,"aria-labelledby":f}){let m=(0,a.useRef)(null);(0,a.useEffect)(()=>{let e=m.current;e&&i&&(t&&!e.open?e.showModal():!t&&e.open&&e.close())},[t,i]);let p=(0,a.useCallback)(t=>{t.preventDefault(),n(!1)},[n]),g=(0,a.useCallback)(()=>{t&&n(!1)},[t,n]),h=(0,a.useCallback)(t=>{t.target===t.currentTarget&&n(!1)},[n]);return(0,e.jsx)("dialog",{ref:m,open:i?void 0:t||void 0,onCancel:i?p:void 0,onClose:i?g:void 0,onClick:i&&l?h:void 0,"aria-label":c,"aria-labelledby":f,className:(0,o.cn)("stg:w-full stg:rounded-xl stg:border stg:border-border stg:bg-popover stg:p-0 stg:text-popover-foreground stg:shadow-xl",i?(0,o.cn)("stg:fixed stg:inset-0 stg:z-50 stg:m-auto","stg:backdrop:bg-backdrop","stg:open:animate-in stg:open:fade-in-0 stg:open:zoom-in-95"):"stg:relative",r[s],d),children:u})}])},846696,t=>{"use strict";var e=t.i(271645),a=t.i(174080);let o=Array(12).fill(0),r=({visible:t,className:a})=>e.default.createElement("div",{className:["sonner-loading-wrapper",a].filter(Boolean).join(" "),"data-visible":t},e.default.createElement("div",{className:"sonner-spinner"},o.map((t,a)=>e.default.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${a}`})))),n=e.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},e.default.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),s=e.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},e.default.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),i=e.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},e.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),l=e.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},e.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),d=e.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},e.default.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.default.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),u=1,c=new class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let e=this.subscribers.indexOf(t);this.subscribers.splice(e,1)}),this.publish=t=>{this.subscribers.forEach(e=>e(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var e;let{message:a,...o}=t,r="number"==typeof(null==t?void 0:t.id)||(null==(e=t.id)?void 0:e.length)>0?t.id:u++,n=this.toasts.find(t=>t.id===r),s=void 0===t.dismissible||t.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),n?this.toasts=this.toasts.map(e=>e.id===r?(this.publish({...e,...t,id:r,title:a}),{...e,...t,id:r,dismissible:s,title:a}):e):this.addToast({title:a,...o,dismissible:s,id:r}),r},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(e=>e({id:t,dismiss:!0})))):this.toasts.forEach(t=>{this.subscribers.forEach(e=>e({id:t.id,dismiss:!0}))}),t),this.message=(t,e)=>this.create({...e,message:t}),this.error=(t,e)=>this.create({...e,message:t,type:"error"}),this.success=(t,e)=>this.create({...e,type:"success",message:t}),this.info=(t,e)=>this.create({...e,type:"info",message:t}),this.warning=(t,e)=>this.create({...e,type:"warning",message:t}),this.loading=(t,e)=>this.create({...e,type:"loading",message:t}),this.promise=(t,a)=>{let o,r;if(!a)return;void 0!==a.loading&&(r=this.create({...a,promise:t,type:"loading",message:a.loading,description:"function"!=typeof a.description?a.description:void 0}));let n=Promise.resolve(t instanceof Function?t():t),s=void 0!==r,i=n.then(async t=>{if(o=["resolve",t],e.default.isValidElement(t))s=!1,this.create({id:r,type:"default",message:t});else if(f(t)&&!t.ok){s=!1;let o="function"==typeof a.error?await a.error(`HTTP error! status: ${t.status}`):a.error,n="function"==typeof a.description?await a.description(`HTTP error! status: ${t.status}`):a.description,i="object"!=typeof o||e.default.isValidElement(o)?{message:o}:o;this.create({id:r,type:"error",description:n,...i})}else if(t instanceof Error){s=!1;let o="function"==typeof a.error?await a.error(t):a.error,n="function"==typeof a.description?await a.description(t):a.description,i="object"!=typeof o||e.default.isValidElement(o)?{message:o}:o;this.create({id:r,type:"error",description:n,...i})}else if(void 0!==a.success){s=!1;let o="function"==typeof a.success?await a.success(t):a.success,n="function"==typeof a.description?await a.description(t):a.description,i="object"!=typeof o||e.default.isValidElement(o)?{message:o}:o;this.create({id:r,type:"success",description:n,...i})}}).catch(async t=>{if(o=["reject",t],void 0!==a.error){s=!1;let o="function"==typeof a.error?await a.error(t):a.error,n="function"==typeof a.description?await a.description(t):a.description,i="object"!=typeof o||e.default.isValidElement(o)?{message:o}:o;this.create({id:r,type:"error",description:n,...i})}}).finally(()=>{s&&(this.dismiss(r),r=void 0),null==a.finally||a.finally.call(a)}),l=()=>new Promise((t,e)=>i.then(()=>"reject"===o[0]?e(o[1]):t(o[1])).catch(e));return"string"!=typeof r&&"number"!=typeof r?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,e)=>{let a=(null==e?void 0:e.id)||u++;return this.create({jsx:t(a),id:a,...e}),a},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},f=t=>t&&"object"==typeof t&&"ok"in t&&"boolean"==typeof t.ok&&"status"in t&&"number"==typeof t.status,m=Object.assign((t,e)=>{let a=(null==e?void 0:e.id)||u++;return c.addToast({title:t,...e,id:a}),a},{success:c.success,info:c.info,warning:c.warning,error:c.error,custom:c.custom,message:c.message,promise:c.promise,dismiss:c.dismiss,loading:c.loading},{getHistory:()=>c.toasts,getToasts:()=>c.getActiveToasts()});function p(t){return void 0!==t.label}function g(...t){return t.filter(Boolean).join(" ")}!function(t){if(!t||"u"<typeof document)return;let e=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",e.appendChild(a),a.styleSheet?a.styleSheet.cssText=t:a.appendChild(document.createTextNode(t))}("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");let h=t=>{var a,o,u,c,f,m,h,b,v,y,x,w,E;let{invert:k,toast:N,unstyled:T,interacting:M,setHeights:S,visibleToasts:C,heights:B,index:z,toasts:j,expanded:R,removeToast:D,defaultRichColors:Y,closeButton:I,style:P,cancelButtonStyle:$,actionButtonStyle:A,className:L="",descriptionClassName:H="",duration:V,position:U,gap:X,expandByDefault:O,classNames:F,icons:K,closeButtonAriaLabel:q="Close toast"}=t,[W,G]=e.default.useState(null),[J,Q]=e.default.useState(null),[Z,_]=e.default.useState(!1),[tt,te]=e.default.useState(!1),[ta,to]=e.default.useState(!1),[tr,tn]=e.default.useState(!1),[ts,ti]=e.default.useState(!1),[tl,td]=e.default.useState(0),[tu,tc]=e.default.useState(0),tf=e.default.useRef(N.duration||V||4e3),tm=e.default.useRef(null),tp=e.default.useRef(null),tg=0===z,th=z+1<=C,tb=N.type,tv=!1!==N.dismissible,ty=N.className||"",tx=N.descriptionClassName||"",tw=e.default.useMemo(()=>B.findIndex(t=>t.toastId===N.id)||0,[B,N.id]),tE=e.default.useMemo(()=>{var t;return null!=(t=N.closeButton)?t:I},[N.closeButton,I]),tk=e.default.useMemo(()=>N.duration||V||4e3,[N.duration,V]),tN=e.default.useRef(0),tT=e.default.useRef(0),tM=e.default.useRef(0),tS=e.default.useRef(null),[tC,tB]=U.split("-"),tz=e.default.useMemo(()=>B.reduce((t,e,a)=>a>=tw?t:t+e.height,0),[B,tw]),tj=(()=>{let[t,a]=e.default.useState(document.hidden);return e.default.useEffect(()=>{let t=()=>{a(document.hidden)};return document.addEventListener("visibilitychange",t),()=>window.removeEventListener("visibilitychange",t)},[]),t})(),tR=N.invert||k,tD="loading"===tb;tT.current=e.default.useMemo(()=>tw*X+tz,[tw,tz]),e.default.useEffect(()=>{tf.current=tk},[tk]),e.default.useEffect(()=>{_(!0)},[]),e.default.useEffect(()=>{let t=tp.current;if(t){let e=t.getBoundingClientRect().height;return tc(e),S(t=>[{toastId:N.id,height:e,position:N.position},...t]),()=>S(t=>t.filter(t=>t.toastId!==N.id))}},[S,N.id]),e.default.useLayoutEffect(()=>{if(!Z)return;let t=tp.current,e=t.style.height;t.style.height="auto";let a=t.getBoundingClientRect().height;t.style.height=e,tc(a),S(t=>t.find(t=>t.toastId===N.id)?t.map(t=>t.toastId===N.id?{...t,height:a}:t):[{toastId:N.id,height:a,position:N.position},...t])},[Z,N.title,N.description,S,N.id,N.jsx,N.action,N.cancel]);let tY=e.default.useCallback(()=>{te(!0),td(tT.current),S(t=>t.filter(t=>t.toastId!==N.id)),setTimeout(()=>{D(N)},200)},[N,D,S,tT]);e.default.useEffect(()=>{let t;if((!N.promise||"loading"!==tb)&&N.duration!==1/0&&"loading"!==N.type){if(R||M||tj){if(tM.current<tN.current){let t=new Date().getTime()-tN.current;tf.current=tf.current-t}tM.current=new Date().getTime()}else tf.current!==1/0&&(tN.current=new Date().getTime(),t=setTimeout(()=>{null==N.onAutoClose||N.onAutoClose.call(N,N),tY()},tf.current));return()=>clearTimeout(t)}},[R,M,N,tb,tj,tY]),e.default.useEffect(()=>{N.delete&&(tY(),null==N.onDismiss||N.onDismiss.call(N,N))},[tY,N.delete]);let tI=N.icon||(null==K?void 0:K[tb])||(t=>{switch(t){case"success":return n;case"info":return i;case"warning":return s;case"error":return l;default:return null}})(tb);return e.default.createElement("li",{tabIndex:0,ref:tp,className:g(L,ty,null==F?void 0:F.toast,null==N||null==(a=N.classNames)?void 0:a.toast,null==F?void 0:F.default,null==F?void 0:F[tb],null==N||null==(o=N.classNames)?void 0:o[tb]),"data-sonner-toast":"","data-rich-colors":null!=(y=N.richColors)?y:Y,"data-styled":!(N.jsx||N.unstyled||T),"data-mounted":Z,"data-promise":!!N.promise,"data-swiped":ts,"data-removed":tt,"data-visible":th,"data-y-position":tC,"data-x-position":tB,"data-index":z,"data-front":tg,"data-swiping":ta,"data-dismissible":tv,"data-type":tb,"data-invert":tR,"data-swipe-out":tr,"data-swipe-direction":J,"data-expanded":!!(R||O&&Z),"data-testid":N.testId,style:{"--index":z,"--toasts-before":z,"--z-index":j.length-z,"--offset":`${tt?tl:tT.current}px`,"--initial-height":O?"auto":`${tu}px`,...P,...N.style},onDragEnd:()=>{to(!1),G(null),tS.current=null},onPointerDown:t=>{2===t.button||tD||!tv||(tm.current=new Date,td(tT.current),t.target.setPointerCapture(t.pointerId),"BUTTON"!==t.target.tagName&&(to(!0),tS.current={x:t.clientX,y:t.clientY}))},onPointerUp:()=>{var t,e,a,o,r;if(tr||!tv)return;tS.current=null;let n=Number((null==(t=tp.current)?void 0:t.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),s=Number((null==(e=tp.current)?void 0:e.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),i=new Date().getTime()-(null==(a=tm.current)?void 0:a.getTime()),l="x"===W?n:s,d=Math.abs(l)/i;if(Math.abs(l)>=45||d>.11){td(tT.current),null==N.onDismiss||N.onDismiss.call(N,N),"x"===W?Q(n>0?"right":"left"):Q(s>0?"down":"up"),tY(),tn(!0);return}null==(o=tp.current)||o.style.setProperty("--swipe-amount-x","0px"),null==(r=tp.current)||r.style.setProperty("--swipe-amount-y","0px"),ti(!1),to(!1),G(null)},onPointerMove:e=>{var a,o,r,n;if(!tS.current||!tv||(null==(a=window.getSelection())?void 0:a.toString().length)>0)return;let s=e.clientY-tS.current.y,i=e.clientX-tS.current.x,l=null!=(n=t.swipeDirections)?n:function(t){let[e,a]=t.split("-"),o=[];return e&&o.push(e),a&&o.push(a),o}(U);!W&&(Math.abs(i)>1||Math.abs(s)>1)&&G(Math.abs(i)>Math.abs(s)?"x":"y");let d={x:0,y:0},u=t=>1/(1.5+Math.abs(t)/20);if("y"===W){if(l.includes("top")||l.includes("bottom"))if(l.includes("top")&&s<0||l.includes("bottom")&&s>0)d.y=s;else{let t=s*u(s);d.y=Math.abs(t)<Math.abs(s)?t:s}}else if("x"===W&&(l.includes("left")||l.includes("right")))if(l.includes("left")&&i<0||l.includes("right")&&i>0)d.x=i;else{let t=i*u(i);d.x=Math.abs(t)<Math.abs(i)?t:i}(Math.abs(d.x)>0||Math.abs(d.y)>0)&&ti(!0),null==(o=tp.current)||o.style.setProperty("--swipe-amount-x",`${d.x}px`),null==(r=tp.current)||r.style.setProperty("--swipe-amount-y",`${d.y}px`)}},tE&&!N.jsx&&"loading"!==tb?e.default.createElement("button",{"aria-label":q,"data-disabled":tD,"data-close-button":!0,onClick:tD||!tv?()=>{}:()=>{tY(),null==N.onDismiss||N.onDismiss.call(N,N)},className:g(null==F?void 0:F.closeButton,null==N||null==(u=N.classNames)?void 0:u.closeButton)},null!=(x=null==K?void 0:K.close)?x:d):null,(tb||N.icon||N.promise)&&null!==N.icon&&((null==K?void 0:K[tb])!==null||N.icon)?e.default.createElement("div",{"data-icon":"",className:g(null==F?void 0:F.icon,null==N||null==(c=N.classNames)?void 0:c.icon)},N.promise||"loading"===N.type&&!N.icon?N.icon||((null==K?void 0:K.loading)?e.default.createElement("div",{className:g(null==F?void 0:F.loader,null==N||null==(E=N.classNames)?void 0:E.loader,"sonner-loader"),"data-visible":"loading"===tb},K.loading):e.default.createElement(r,{className:g(null==F?void 0:F.loader,null==N||null==(w=N.classNames)?void 0:w.loader),visible:"loading"===tb})):null,"loading"!==N.type?tI:null):null,e.default.createElement("div",{"data-content":"",className:g(null==F?void 0:F.content,null==N||null==(f=N.classNames)?void 0:f.content)},e.default.createElement("div",{"data-title":"",className:g(null==F?void 0:F.title,null==N||null==(m=N.classNames)?void 0:m.title)},N.jsx?N.jsx:"function"==typeof N.title?N.title():N.title),N.description?e.default.createElement("div",{"data-description":"",className:g(H,tx,null==F?void 0:F.description,null==N||null==(h=N.classNames)?void 0:h.description)},"function"==typeof N.description?N.description():N.description):null),e.default.isValidElement(N.cancel)?N.cancel:N.cancel&&p(N.cancel)?e.default.createElement("button",{"data-button":!0,"data-cancel":!0,style:N.cancelButtonStyle||$,onClick:t=>{!p(N.cancel)||tv&&(null==N.cancel.onClick||N.cancel.onClick.call(N.cancel,t),tY())},className:g(null==F?void 0:F.cancelButton,null==N||null==(b=N.classNames)?void 0:b.cancelButton)},N.cancel.label):null,e.default.isValidElement(N.action)?N.action:N.action&&p(N.action)?e.default.createElement("button",{"data-button":!0,"data-action":!0,style:N.actionButtonStyle||A,onClick:t=>{!p(N.action)||(null==N.action.onClick||N.action.onClick.call(N.action,t),t.defaultPrevented||tY())},className:g(null==F?void 0:F.actionButton,null==N||null==(v=N.classNames)?void 0:v.actionButton)},N.action.label):null)};function b(){if("u"<typeof window||"u"<typeof document)return"ltr";let t=document.documentElement.getAttribute("dir");return"auto"!==t&&t?t:window.getComputedStyle(document.documentElement).direction}let v=e.default.forwardRef(function(t,o){let{id:r,invert:n,position:s="bottom-right",hotkey:i=["altKey","KeyT"],expand:l,closeButton:d,className:u,offset:f,mobileOffset:m,theme:p="light",richColors:g,duration:v,style:y,visibleToasts:x=3,toastOptions:w,dir:E=b(),gap:k=14,icons:N,containerAriaLabel:T="Notifications"}=t,[M,S]=e.default.useState([]),C=e.default.useMemo(()=>r?M.filter(t=>t.toasterId===r):M.filter(t=>!t.toasterId),[M,r]),B=e.default.useMemo(()=>Array.from(new Set([s].concat(C.filter(t=>t.position).map(t=>t.position)))),[C,s]),[z,j]=e.default.useState([]),[R,D]=e.default.useState(!1),[Y,I]=e.default.useState(!1),[P,$]=e.default.useState("system"!==p?p:"u">typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),A=e.default.useRef(null),L=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),H=e.default.useRef(null),V=e.default.useRef(!1),U=e.default.useCallback(t=>{S(e=>{var a;return(null==(a=e.find(e=>e.id===t.id))?void 0:a.delete)||c.dismiss(t.id),e.filter(({id:e})=>e!==t.id)})},[]);return e.default.useEffect(()=>c.subscribe(t=>{t.dismiss?requestAnimationFrame(()=>{S(e=>e.map(e=>e.id===t.id?{...e,delete:!0}:e))}):setTimeout(()=>{a.default.flushSync(()=>{S(e=>{let a=e.findIndex(e=>e.id===t.id);return -1!==a?[...e.slice(0,a),{...e[a],...t},...e.slice(a+1)]:[t,...e]})})})}),[M]),e.default.useEffect(()=>{if("system"!==p)return void $(p);if("system"===p&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?$("dark"):$("light")),"u"<typeof window)return;let t=window.matchMedia("(prefers-color-scheme: dark)");try{t.addEventListener("change",({matches:t})=>{t?$("dark"):$("light")})}catch(e){t.addListener(({matches:t})=>{try{t?$("dark"):$("light")}catch(t){console.error(t)}})}},[p]),e.default.useEffect(()=>{M.length<=1&&D(!1)},[M]),e.default.useEffect(()=>{let t=t=>{var e,a;i.every(e=>t[e]||t.code===e)&&(D(!0),null==(a=A.current)||a.focus()),"Escape"===t.code&&(document.activeElement===A.current||(null==(e=A.current)?void 0:e.contains(document.activeElement)))&&D(!1)};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[i]),e.default.useEffect(()=>{if(A.current)return()=>{H.current&&(H.current.focus({preventScroll:!0}),H.current=null,V.current=!1)}},[A.current]),e.default.createElement("section",{ref:o,"aria-label":`${T} ${L}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},B.map((a,o)=>{var r;let s,[i,c]=a.split("-");return C.length?e.default.createElement("ol",{key:a,dir:"auto"===E?b():E,tabIndex:-1,ref:A,className:u,"data-sonner-toaster":!0,"data-sonner-theme":P,"data-y-position":i,"data-x-position":c,style:{"--front-toast-height":`${(null==(r=z[0])?void 0:r.height)||0}px`,"--width":"356px","--gap":`${k}px`,...y,...(s={},[f,m].forEach((t,e)=>{let a=1===e,o=a?"--mobile-offset":"--offset",r=a?"16px":"24px";function n(t){["top","right","bottom","left"].forEach(e=>{s[`${o}-${e}`]="number"==typeof t?`${t}px`:t})}"number"==typeof t||"string"==typeof t?n(t):"object"==typeof t?["top","right","bottom","left"].forEach(e=>{void 0===t[e]?s[`${o}-${e}`]=r:s[`${o}-${e}`]="number"==typeof t[e]?`${t[e]}px`:t[e]}):n(r)}),s)},onBlur:t=>{V.current&&!t.currentTarget.contains(t.relatedTarget)&&(V.current=!1,H.current&&(H.current.focus({preventScroll:!0}),H.current=null))},onFocus:t=>{!(t.target instanceof HTMLElement&&"false"===t.target.dataset.dismissible)&&(V.current||(V.current=!0,H.current=t.relatedTarget))},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{Y||D(!1)},onDragEnd:()=>D(!1),onPointerDown:t=>{t.target instanceof HTMLElement&&"false"===t.target.dataset.dismissible||I(!0)},onPointerUp:()=>I(!1)},C.filter(t=>!t.position&&0===o||t.position===a).map((o,r)=>{var s,i;return e.default.createElement(h,{key:o.id,icons:N,index:r,toast:o,defaultRichColors:g,duration:null!=(s=null==w?void 0:w.duration)?s:v,className:null==w?void 0:w.className,descriptionClassName:null==w?void 0:w.descriptionClassName,invert:n,visibleToasts:x,closeButton:null!=(i=null==w?void 0:w.closeButton)?i:d,interacting:Y,position:a,style:null==w?void 0:w.style,unstyled:null==w?void 0:w.unstyled,classNames:null==w?void 0:w.classNames,cancelButtonStyle:null==w?void 0:w.cancelButtonStyle,actionButtonStyle:null==w?void 0:w.actionButtonStyle,closeButtonAriaLabel:null==w?void 0:w.closeButtonAriaLabel,removeToast:U,toasts:C.filter(t=>t.position==o.position),heights:z.filter(t=>t.position==o.position),setHeights:j,expandByDefault:l,gap:k,expanded:R,swipeDirections:t.swipeDirections})})):null}))});t.s(["Toaster",0,v,"toast",0,m])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59309,e=>{"use strict";var t=e.i(271645),r=e.i(155917),n=e.i(586108),o=e.i(326283),s=e.i(287237),i=e.i(159877),a=e.i(433732);e.s(["useCreateSession",0,function(){let e=(0,n.useStigmer)(),d=(0,a.useExecutionTarget)(),[l,h]=(0,t.useState)(!1),[u,c]=(0,t.useState)(null),g=(0,t.useCallback)(()=>c(null),[]);return{create:(0,t.useCallback)(async t=>{h(!0),c(null);try{let n;if(t.agentInstanceId)n=t.agentInstanceId;else if(t.agentRef){let r=await e.agent.getByReference(t.agentRef),o=r.status?.defaultInstanceId;if(!o)throw Error(`Agent "${t.agentRef.org}/${t.agentRef.slug}" does not have a default instance. Pass an explicit agentInstanceId instead.`);n=o}else throw Error("useCreateSession requires either agentInstanceId or agentRef. Provide one to specify which agent this session should use.");let o=t.executionTarget??d;return{sessionId:(await e.session.create({name:`session-${Date.now()}`,org:t.org,subject:t.subject??r.PENDING_SUBJECT,workspaceEntries:t.workspaceEntries,mcpServerUsages:t.mcpServerUsages,skillRefs:t.skillRefs,metadata:(0,r.mergeSessionContext)(t.metadata,t.sessionContext),agentInstanceId:n,harness:t.harness?(0,s.toProtoHarness)(t.harness):void 0,executionTarget:o?(0,i.toProtoExecutionTarget)(o):void 0})).metadata.id}}catch(e){throw c((0,o.toError)(e)),e}finally{h(!1)}},[e,d]),isCreating:l,error:u,clearError:g}}])},145995,e=>{"use strict";var t=e.i(661438);let r=/```ya?ml\s*\n([\s\S]*?)```/g;e.s(["extractWorkflowYaml",0,function(e){if(!e?.status?.messages?.length)return null;let n=e.status.messages;for(let e=n.length-1;e>=0;e--){let o=n[e];if(o.type!==t.MessageType.MESSAGE_AI)continue;let s=o.content;if(!s)continue;let i=function(e){let t,n=[],o=RegExp(r.source,"g");for(;null!==(t=o.exec(e));)t[1]&&n.push(t[1]);return n}(s);if(0===i.length)continue;let a=i[i.length-1],d=function(e,t){let r=e;for(let e of t){let t=RegExp("```ya?ml\\s*\\n"+e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"```","g");r=r.replace(t,"")}return r.split("\n").map(e=>e.trim()).filter(e=>e.length>0).join("\n")}(s,i);return{yaml:a.trim(),explanation:d.trim()}}return null}])},839329,953520,e=>{"use strict";e.s(["WORKFLOW_ARCHITECT_RESPONSE_SCHEMA",0,{type:"object",properties:{action:{type:"string",enum:["generated_yaml","clarification","no_changes"]},yaml:{type:"string"},explanation:{type:"string"}},required:["action","explanation"]},"WORKFLOW_DIAGNOSIS_RESPONSE_SCHEMA",0,{type:"object",properties:{action:{type:"string",enum:["diagnosis","fix_yaml","clarification"]},diagnosis:{type:"string"},yaml:{type:"string"},explanation:{type:"string"}},required:["action","explanation"]}],839329),e.s(["computeUnifiedDiff",0,function(e,t){return(function(e,t){let r=e.length,n=t.length,o=r+n;if(0===o)return[];let s=new Int32Array(2*o+1);s.fill(-1);let i=[],a=e=>e+o;s[a(1)]=0;e:for(let d=0;d<=o;d++){i.push(s.slice());for(let o=-d;o<=d;o+=2){let i,l=(i=o===-d||o!==d&&s[a(o-1)]<s[a(o+1)]?s[a(o+1)]:s[a(o-1)]+1)-o;for(;i<r&&l<n&&e[i]===t[l];)i++,l++;if(s[a(o)]=i,i>=r&&l>=n)break e}}return function(e,t,r,n){let o=e=>e+n,s=[],i=t.length,a=r.length;for(let n=e.length-1;n>=0;n--){let d,l=e[n],h=i-a;d=h===-n||h!==n&&l[o(h-1)]<l[o(h+1)]?h+1:h-1;let u=l[o(d)],c=u-d;for(;i>u&&a>c;)i--,a--,s.push(["equal",t[i]]);n>0&&(i===u?(a--,s.push(["added",r[a]])):(i--,s.push(["removed",t[i]])))}return s.reverse()}(i,e,t,o)})(e.split("\n"),t.split("\n")).map(([e,t])=>({type:e,content:t}))}],953520)},575621,(e,t,r)=>{"use strict";function n(e,t){e[t]?e[t]++:e[t]=1}function o(e,t){--e[t]||delete e[t]}function s(e,t,r,n){var o=""+t,s=""+r;if(!e&&o>s){var i=o;o=s,s=i}return o+"\x01"+s+"\x01"+(void 0===n?"\0":n)}function i(e,t){return s(e,t.v,t.w,t.name)}t.exports=class{_isDirected=!0;_isMultigraph=!1;_isCompound=!1;_label;_defaultNodeLabelFn=()=>void 0;_defaultEdgeLabelFn=()=>void 0;_nodes={};_in={};_preds={};_out={};_sucs={};_edgeObjs={};_edgeLabels={};_nodeCount=0;_edgeCount=0;_parent;_children;constructor(e){e&&(this._isDirected=!Object.hasOwn(e,"directed")||e.directed,this._isMultigraph=!!Object.hasOwn(e,"multigraph")&&e.multigraph,this._isCompound=!!Object.hasOwn(e,"compound")&&e.compound),this._isCompound&&(this._parent={},this._children={},this._children["\0"]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return this._defaultNodeLabelFn=e,"function"!=typeof e&&(this._defaultNodeLabelFn=()=>e),this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){var e=this;return this.nodes().filter(t=>0===Object.keys(e._in[t]).length)}sinks(){var e=this;return this.nodes().filter(t=>0===Object.keys(e._out[t]).length)}setNodes(e,t){var r=arguments,n=this;return e.forEach(function(e){r.length>1?n.setNode(e,t):n.setNode(e)}),this}setNode(e,t){return Object.hasOwn(this._nodes,e)?arguments.length>1&&(this._nodes[e]=t):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]="\0",this._children[e]={},this._children["\0"][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount),this}node(e){return this._nodes[e]}hasNode(e){return Object.hasOwn(this._nodes,e)}removeNode(e){var t=this;if(Object.hasOwn(this._nodes,e)){var r=e=>t.removeEdge(t._edgeObjs[e]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],this.children(e).forEach(function(e){t.setParent(e)}),delete this._children[e]),Object.keys(this._in[e]).forEach(r),delete this._in[e],delete this._preds[e],Object.keys(this._out[e]).forEach(r),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(void 0===t)t="\0";else{t+="";for(var r=t;void 0!==r;r=this.parent(r))if(r===e)throw Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if("\0"!==t)return t}}children(e="\0"){if(this._isCompound){var t=this._children[e];if(t)return Object.keys(t)}else if("\0"===e)return this.nodes();else if(this.hasNode(e))return[]}predecessors(e){var t=this._preds[e];if(t)return Object.keys(t)}successors(e){var t=this._sucs[e];if(t)return Object.keys(t)}neighbors(e){var t=this.predecessors(e);if(t){let n=new Set(t);for(var r of this.successors(e))n.add(r);return Array.from(n.values())}}isLeaf(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var r=this;Object.entries(this._nodes).forEach(function([r,n]){e(r)&&t.setNode(r,n)}),Object.values(this._edgeObjs).forEach(function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,r.edge(e))});var n={};return this._isCompound&&t.nodes().forEach(e=>t.setParent(e,function e(o){var s=r.parent(o);return void 0===s||t.hasNode(s)?(n[o]=s,s):s in n?n[s]:e(s)}(e))),t}setDefaultEdgeLabel(e){return this._defaultEdgeLabelFn=e,"function"!=typeof e&&(this._defaultEdgeLabelFn=()=>e),this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(e,t){var r=this,n=arguments;return e.reduce(function(e,o){return n.length>1?r.setEdge(e,o,t):r.setEdge(e,o),o}),this}setEdge(){var e,t,r,o,i=!1,a=arguments[0];"object"==typeof a&&null!==a&&"v"in a?(e=a.v,t=a.w,r=a.name,2==arguments.length&&(o=arguments[1],i=!0)):(e=a,t=arguments[1],r=arguments[3],arguments.length>2&&(o=arguments[2],i=!0)),e=""+e,t=""+t,void 0!==r&&(r=""+r);var d=s(this._isDirected,e,t,r);if(Object.hasOwn(this._edgeLabels,d))return i&&(this._edgeLabels[d]=o),this;if(void 0!==r&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[d]=i?o:this._defaultEdgeLabelFn(e,t,r);var l=function(e,t,r,n){var o=""+t,s=""+r;if(!e&&o>s){var i=o;o=s,s=i}var a={v:o,w:s};return n&&(a.name=n),a}(this._isDirected,e,t,r);return e=l.v,t=l.w,Object.freeze(l),this._edgeObjs[d]=l,n(this._preds[t],e),n(this._sucs[e],t),this._in[t][d]=l,this._out[e][d]=l,this._edgeCount++,this}edge(e,t,r){var n=1==arguments.length?i(this._isDirected,arguments[0]):s(this._isDirected,e,t,r);return this._edgeLabels[n]}edgeAsObj(){let e=this.edge(...arguments);return"object"!=typeof e?{label:e}:e}hasEdge(e,t,r){var n=1==arguments.length?i(this._isDirected,arguments[0]):s(this._isDirected,e,t,r);return Object.hasOwn(this._edgeLabels,n)}removeEdge(e,t,r){var n=1==arguments.length?i(this._isDirected,arguments[0]):s(this._isDirected,e,t,r),a=this._edgeObjs[n];return a&&(e=a.v,t=a.w,delete this._edgeLabels[n],delete this._edgeObjs[n],o(this._preds[t],e),o(this._sucs[e],t),delete this._in[t][n],delete this._out[e][n],this._edgeCount--),this}inEdges(e,t){var r=this._in[e];if(r){var n=Object.values(r);return t?n.filter(e=>e.v===t):n}}outEdges(e,t){var r=this._out[e];if(r){var n=Object.values(r);return t?n.filter(e=>e.w===t):n}}nodeEdges(e,t){var r=this.inEdges(e,t);if(r)return r.concat(this.outEdges(e,t))}}},595446,(e,t,r)=>{t.exports="2.2.4"},696950,(e,t,r)=>{t.exports={Graph:e.r(575621),version:e.r(595446)}},171636,(e,t,r)=>{var n=e.r(575621);t.exports={write:function(e){var t,r,n={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:(t=e).nodes().map(function(e){var r=t.node(e),n=t.parent(e),o={v:e};return void 0!==r&&(o.value=r),void 0!==n&&(o.parent=n),o}),edges:(r=e).edges().map(function(e){var t=r.edge(e),n={v:e.v,w:e.w};return void 0!==e.name&&(n.name=e.name),void 0!==t&&(n.value=t),n})};return void 0!==e.graph()&&(n.value=structuredClone(e.graph())),n},read:function(e){var t=new n(e.options).setGraph(e.value);return e.nodes.forEach(function(e){t.setNode(e.v,e.value),e.parent&&t.setParent(e.v,e.parent)}),e.edges.forEach(function(e){t.setEdge({v:e.v,w:e.w,name:e.name},e.value)}),t}}},316131,(e,t,r)=>{t.exports=function(e){var t,r={},n=[];return e.nodes().forEach(function(o){t=[],function n(o){Object.hasOwn(r,o)||(r[o]=!0,t.push(o),e.successors(o).forEach(n),e.predecessors(o).forEach(n))}(o),t.length&&n.push(t)}),n}},388532,(e,t,r)=>{t.exports=class{_arr=[];_keyIndices={};size(){return this._arr.length}keys(){return this._arr.map(function(e){return e.key})}has(e){return Object.hasOwn(this._keyIndices,e)}priority(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority}min(){if(0===this.size())throw Error("Queue underflow");return this._arr[0].key}add(e,t){var r=this._keyIndices;if(!Object.hasOwn(r,e=String(e))){var n=this._arr,o=n.length;return r[e]=o,n.push({key:e,priority:t}),this._decrease(o),!0}return!1}removeMin(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key}decrease(e,t){var r=this._keyIndices[e];if(t>this._arr[r].priority)throw Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[r].priority+" New: "+t);this._arr[r].priority=t,this._decrease(r)}_heapify(e){var t=this._arr,r=2*e,n=r+1,o=e;r<t.length&&(o=t[r].priority<t[o].priority?r:o,n<t.length&&(o=t[n].priority<t[o].priority?n:o),o!==e&&(this._swap(e,o),this._heapify(o)))}_decrease(e){for(var t,r=this._arr,n=r[e].priority;0!==e&&!(r[t=e>>1].priority<n);)this._swap(e,t),e=t}_swap(e,t){var r=this._arr,n=this._keyIndices,o=r[e],s=r[t];r[e]=s,r[t]=o,n[s.key]=e,n[o.key]=t}}},28998,(e,t,r)=>{var n=e.r(388532);t.exports=function(e,t,r,s){return function(e,t,r,o){var s,i,a={},d=new n,l=function(e){var t=e.v!==s?e.v:e.w,n=a[t],o=r(e),l=i.distance+o;if(o<0)throw Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+o);l<n.distance&&(n.distance=l,n.predecessor=s,d.decrease(t,l))};for(e.nodes().forEach(function(e){var r=e===t?0:1/0;a[e]={distance:r},d.add(e,r)});d.size()>0&&(i=a[s=d.removeMin()]).distance!==1/0;)o(s).forEach(l);return a}(e,String(t),r||o,s||function(t){return e.outEdges(t)})};var o=()=>1},630492,(e,t,r)=>{var n=e.r(28998);t.exports=function(e,t,r){return e.nodes().reduce(function(o,s){return o[s]=n(e,s,t,r),o},{})}},892771,(e,t,r)=>{t.exports=function(e){var t=0,r=[],n={},o=[];return e.nodes().forEach(function(s){Object.hasOwn(n,s)||function s(i){var a=n[i]={onStack:!0,lowlink:t,index:t++};if(r.push(i),e.successors(i).forEach(function(e){Object.hasOwn(n,e)?n[e].onStack&&(a.lowlink=Math.min(a.lowlink,n[e].index)):(s(e),a.lowlink=Math.min(a.lowlink,n[e].lowlink))}),a.lowlink===a.index){var d,l=[];do n[d=r.pop()].onStack=!1,l.push(d);while(i!==d)o.push(l)}}(s)}),o}},548327,(e,t,r)=>{var n=e.r(892771);t.exports=function(e){return n(e).filter(function(t){return t.length>1||1===t.length&&e.hasEdge(t[0],t[0])})}},202975,(e,t,r)=>{t.exports=function(e,t,r){var o,s,i,a,d;return o=e,s=t||n,i=r||function(t){return e.outEdges(t)},a={},(d=o.nodes()).forEach(function(e){a[e]={},a[e][e]={distance:0},d.forEach(function(t){e!==t&&(a[e][t]={distance:1/0})}),i(e).forEach(function(t){var r=t.v===e?t.w:t.v,n=s(t);a[e][r]={distance:n,predecessor:e}})}),d.forEach(function(e){var t=a[e];d.forEach(function(r){var n=a[r];d.forEach(function(r){var o=n[e],s=t[r],i=n[r],a=o.distance+s.distance;a<i.distance&&(i.distance=a,i.predecessor=s.predecessor)})})}),a};var n=()=>1},348251,(e,t,r)=>{function n(e){var t={},r={},n=[];if(e.sinks().forEach(function s(i){if(Object.hasOwn(r,i))throw new o;Object.hasOwn(t,i)||(r[i]=!0,t[i]=!0,e.predecessors(i).forEach(s),delete r[i],n.push(i))}),Object.keys(t).length!==e.nodeCount())throw new o;return n}class o extends Error{constructor(){super(...arguments)}}t.exports=n,n.CycleException=o},200622,(e,t,r)=>{var n=e.r(348251);t.exports=function(e){try{n(e)}catch(e){if(e instanceof n.CycleException)return!1;throw e}return!0}},582493,(e,t,r)=>{function n(e,t,r,n){for(var o=[[e,!1]];o.length>0;){var i=o.pop();i[1]?n.push(i[0]):Object.hasOwn(r,i[0])||(r[i[0]]=!0,o.push([i[0],!0]),s(t(i[0]),e=>o.push([e,!1])))}}function o(e,t,r,n){for(var o=[e];o.length>0;){var i=o.pop();Object.hasOwn(r,i)||(r[i]=!0,n.push(i),s(t(i),e=>o.push(e)))}}function s(e,t){for(var r=e.length;r--;)t(e[r],r,e);return e}t.exports=function(e,t,r){Array.isArray(t)||(t=[t]);var s=e.isDirected()?t=>e.successors(t):t=>e.neighbors(t),i="post"===r?n:o,a=[],d={};return t.forEach(t=>{if(!e.hasNode(t))throw Error("Graph does not have node: "+t);i(t,s,d,a)}),a}},988994,(e,t,r)=>{var n=e.r(582493);t.exports=function(e,t){return n(e,t,"post")}},660947,(e,t,r)=>{var n=e.r(582493);t.exports=function(e,t){return n(e,t,"pre")}},358646,(e,t,r)=>{var n=e.r(575621),o=e.r(388532);t.exports=function(e,t){var r,s=new n,i={},a=new o;function d(e){var n=e.v===r?e.w:e.v,o=a.priority(n);if(void 0!==o){var s=t(e);s<o&&(i[n]=r,a.decrease(n,s))}}if(0===e.nodeCount())return s;e.nodes().forEach(function(e){a.add(e,1/0),s.setNode(e)}),a.decrease(e.nodes()[0],0);for(var l=!1;a.size()>0;){if(Object.hasOwn(i,r=a.removeMin()))s.setEdge(r,i[r]);else if(l)throw Error("Input graph is not connected: "+e);else l=!0;e.nodeEdges(r).forEach(d)}return s}},469527,(e,t,r)=>{t.exports={components:e.r(316131),dijkstra:e.r(28998),dijkstraAll:e.r(630492),findCycles:e.r(548327),floydWarshall:e.r(202975),isAcyclic:e.r(200622),postorder:e.r(988994),preorder:e.r(660947),prim:e.r(358646),tarjan:e.r(892771),topsort:e.r(348251)}},892353,(e,t,r)=>{var n=e.r(696950);t.exports={Graph:n.Graph,json:e.r(171636),alg:e.r(469527),version:n.version}},916370,(e,t,r)=>{function n(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function o(e,t){if("_next"!==e&&"_prev"!==e)return t}t.exports=class{constructor(){let e={};e._next=e._prev=e,this._sentinel=e}dequeue(){let e=this._sentinel,t=e._prev;if(t!==e)return n(t),t}enqueue(e){let t=this._sentinel;e._prev&&e._next&&n(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t}toString(){let e=[],t=this._sentinel,r=t._prev;for(;r!==t;)e.push(JSON.stringify(r,o)),r=r._prev;return"["+e.join(", ")+"]"}}},850395,(e,t,r)=>{let n=e.r(892353).Graph,o=e.r(916370);t.exports=function(e,t){var r,d;let l,h,u,c,g;if(1>=e.nodeCount())return[];let f=(r=e,d=t||s,l=new n,h=0,u=0,r.nodes().forEach(e=>{l.setNode(e,{v:e,in:0,out:0})}),r.edges().forEach(e=>{let t=l.edge(e.v,e.w)||0,r=d(e);l.setEdge(e.v,e.w,t+r),u=Math.max(u,l.node(e.v).out+=r),h=Math.max(h,l.node(e.w).in+=r)}),c=(function(e){let t=[];for(let r=0;r<e;r++)t.push(r);return t})(u+h+3).map(()=>new o),g=h+1,l.nodes().forEach(e=>{a(c,g,l.node(e))}),{graph:l,buckets:c,zeroIdx:g});return(function(e,t,r){let n,o=[],s=t[t.length-1],a=t[0];for(;e.nodeCount();){for(;n=a.dequeue();)i(e,t,r,n);for(;n=s.dequeue();)i(e,t,r,n);if(e.nodeCount()){for(let s=t.length-2;s>0;--s)if(n=t[s].dequeue()){o=o.concat(i(e,t,r,n,!0));break}}}return o})(f.graph,f.buckets,f.zeroIdx).flatMap(t=>e.outEdges(t.v,t.w))};let s=()=>1;function i(e,t,r,n,o){let s=o?[]:void 0;return e.inEdges(n.v).forEach(n=>{let i=e.edge(n),d=e.node(n.v);o&&s.push({v:n.v,w:n.w}),d.out-=i,a(t,r,d)}),e.outEdges(n.v).forEach(n=>{let o=e.edge(n),s=n.w,i=e.node(s);i.in-=o,a(t,r,i)}),e.removeNode(n.v),s}function a(e,t,r){r.out?r.in?e[r.out-r.in+t].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}},698298,(e,t,r)=>{"use strict";let n=e.r(892353).Graph;function o(e,t,r,n){for(var o=n;e.hasNode(o);)o=d(n);return r.dummy=t,e.setNode(o,r),o}t.exports={addBorderNode:function(e,t,r,n){let s={width:0,height:0};return arguments.length>=4&&(s.rank=r,s.order=n),o(e,"border",s,t)},addDummyNode:o,applyWithChunking:s,asNonCompoundGraph:function(e){let t=new n({multigraph:e.isMultigraph()}).setGraph(e.graph());return e.nodes().forEach(r=>{e.children(r).length||t.setNode(r,e.node(r))}),e.edges().forEach(r=>{t.setEdge(r,e.edge(r))}),t},buildLayerMatrix:function(e){let t=l(i(e)+1).map(()=>[]);return e.nodes().forEach(r=>{let n=e.node(r),o=n.rank;void 0!==o&&(t[o][n.order]=r)}),t},intersectRect:function(e,t){let r,n,o=e.x,s=e.y,i=t.x-o,a=t.y-s,d=e.width/2,l=e.height/2;if(!i&&!a)throw Error("Not possible to find intersection inside of the rectangle");return Math.abs(a)*d>Math.abs(i)*l?(a<0&&(l=-l),r=l*i/a,n=l):(i<0&&(d=-d),r=d,n=d*a/i),{x:o+r,y:s+n}},mapValues:function(e,t){let r=t;return"string"==typeof t&&(r=e=>e[t]),Object.entries(e).reduce((e,[t,n])=>(e[t]=r(n,t),e),{})},maxRank:i,normalizeRanks:function(e){let t=s(Math.min,e.nodes().map(t=>{let r=e.node(t).rank;return void 0===r?Number.MAX_VALUE:r}));e.nodes().forEach(r=>{let n=e.node(r);Object.hasOwn(n,"rank")&&(n.rank-=t)})},notime:function(e,t){return t()},partition:function(e,t){let r={lhs:[],rhs:[]};return e.forEach(e=>{t(e)?r.lhs.push(e):r.rhs.push(e)}),r},pick:function(e,t){let r={};for(let n of t)void 0!==e[n]&&(r[n]=e[n]);return r},predecessorWeights:function(e){let t=e.nodes().map(t=>{let r={};return e.inEdges(t).forEach(t=>{r[t.v]=(r[t.v]||0)+e.edge(t).weight}),r});return h(e.nodes(),t)},range:l,removeEmptyRanks:function(e){let t=s(Math.min,e.nodes().map(t=>e.node(t).rank)),r=[];e.nodes().forEach(n=>{let o=e.node(n).rank-t;r[o]||(r[o]=[]),r[o].push(n)});let n=0,o=e.graph().nodeRankFactor;Array.from(r).forEach((t,r)=>{void 0===t&&r%o!=0?--n:void 0!==t&&n&&t.forEach(t=>e.node(t).rank+=n)})},simplify:function(e){let t=new n().setGraph(e.graph());return e.nodes().forEach(r=>t.setNode(r,e.node(r))),e.edges().forEach(r=>{let n=t.edge(r.v,r.w)||{weight:0,minlen:1},o=e.edge(r);t.setEdge(r.v,r.w,{weight:n.weight+o.weight,minlen:Math.max(n.minlen,o.minlen)})}),t},successorWeights:function(e){let t=e.nodes().map(t=>{let r={};return e.outEdges(t).forEach(t=>{r[t.w]=(r[t.w]||0)+e.edge(t).weight}),r});return h(e.nodes(),t)},time:function(e,t){let r=Date.now();try{return t()}finally{console.log(e+" time: "+(Date.now()-r)+"ms")}},uniqueId:d,zipObject:h};function s(e,t){if(!(t.length>65535))return e.apply(null,t);{let r=function(e,t=65535){let r=[];for(let n=0;n<e.length;n+=t){let o=e.slice(n,n+t);r.push(o)}return r}(t);return e.apply(null,r.map(t=>e.apply(null,t)))}}function i(e){return s(Math.max,e.nodes().map(t=>{let r=e.node(t).rank;return void 0===r?5e-324:r}))}let a=0;function d(e){return e+""+ ++a}function l(e,t,r=1){null==t&&(t=e,e=0);let n=e=>e<t;r<0&&(n=e=>t<e);let o=[];for(let t=e;n(t);t+=r)o.push(t);return o}function h(e,t){return e.reduce((e,r,n)=>(e[r]=t[n],e),{})}},196218,(e,t,r)=>{"use strict";let n=e.r(850395),o=e.r(698298).uniqueId;t.exports={run:function(e){var t,r;let s,i,a;("greedy"===e.graph().acyclicer?n(e,(t=e,e=>t.edge(e).weight)):(s=[],i={},a={},(r=e).nodes().forEach(function e(t){Object.hasOwn(a,t)||(a[t]=!0,i[t]=!0,r.outEdges(t).forEach(t=>{Object.hasOwn(i,t.w)?s.push(t):e(t.w)}),delete i[t])}),s)).forEach(t=>{let r=e.edge(t);e.removeEdge(t),r.forwardName=t.name,r.reversed=!0,e.setEdge(t.w,t.v,r,o("rev"))})},undo:function(e){e.edges().forEach(t=>{let r=e.edge(t);if(r.reversed){e.removeEdge(t);let n=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(t.w,t.v,r,n)}})}}},360908,(e,t,r)=>{"use strict";let n=e.r(698298);t.exports={run:function(e){e.graph().dummyChains=[],e.edges().forEach(t=>(function(e,t){let r,o,s,i=t.v,a=e.node(i).rank,d=t.w,l=e.node(d).rank,h=t.name,u=e.edge(t),c=u.labelRank;if(l!==a+1){for(e.removeEdge(t),s=0,++a;a<l;++s,++a)u.points=[],o={width:0,height:0,edgeLabel:u,edgeObj:t,rank:a},r=n.addDummyNode(e,"edge",o,"_d"),a===c&&(o.width=u.width,o.height=u.height,o.dummy="edge-label",o.labelpos=u.labelpos),e.setEdge(i,r,{weight:u.weight},h),0===s&&e.graph().dummyChains.push(r),i=r;e.setEdge(i,d,{weight:u.weight},h)}})(e,t))},undo:function(e){e.graph().dummyChains.forEach(t=>{let r,n=e.node(t),o=n.edgeLabel;for(e.setEdge(n.edgeObj,o);n.dummy;)r=e.successors(t)[0],e.removeNode(t),o.points.push({x:n.x,y:n.y}),"edge-label"===n.dummy&&(o.x=n.x,o.y=n.y,o.width=n.width,o.height=n.height),t=r,n=e.node(t)})}}},200570,(e,t,r)=>{"use strict";let{applyWithChunking:n}=e.r(698298);t.exports={longestPath:function(e){var t={};e.sources().forEach(function r(o){var s=e.node(o);if(Object.hasOwn(t,o))return s.rank;t[o]=!0;var i=n(Math.min,e.outEdges(o).map(t=>null==t?1/0:r(t.w)-e.edge(t).minlen));return i===1/0&&(i=0),s.rank=i})},slack:function(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}}},348438,(e,t,r)=>{"use strict";var n=e.r(892353).Graph,o=e.r(200570).slack;t.exports=function(e){var t,r,s,i,a=new n({directed:!1}),d=e.nodes()[0],l=e.nodeCount();for(a.setNode(d,{});t=a,r=e,t.nodes().forEach(function e(n){r.nodeEdges(n).forEach(s=>{var i=s.v,a=n===i?s.w:i;t.hasNode(a)||o(r,s)||(t.setNode(a,{}),t.setEdge(n,a,{}),e(a))})}),t.nodeCount()<l;)s=function(e,t){return t.edges().reduce((r,n)=>{let s=1/0;return(e.hasNode(n.v)!==e.hasNode(n.w)&&(s=o(t,n)),s<r[0])?[s,n]:r},[1/0,null])[1]}(a,e),i=a.hasNode(s.v)?o(e,s):-o(e,s),function(e,t,r){e.nodes().forEach(e=>t.node(e).rank+=r)}(a,e,i);return a}},6654,(e,t,r)=>{"use strict";var n=e.r(348438),o=e.r(200570).slack,s=e.r(200570).longestPath,i=e.r(892353).alg.preorder,a=e.r(892353).alg.postorder,d=e.r(698298).simplify;function l(e){s(e=d(e));var t,r,o=n(e);for(c(o),h(o,e);t=g(o);)r=f(o,e,t),p(o,e,t,r)}function h(e,t){var r=a(e,e.nodes());(r=r.slice(0,r.length-1)).forEach(r=>{var n,o,s,i;return n=e,o=t,s=r,i=n.node(s).parent,void(n.edge(s,i).cutvalue=u(n,o,s))})}function u(e,t,r){var n=e.node(r).parent,o=!0,s=t.edge(r,n),i=0;return s||(o=!1,s=t.edge(n,r)),i=s.weight,t.nodeEdges(r).forEach(s=>{var a=s.v===r,d=a?s.w:s.v;if(d!==n){var l,h,u,c=a===o,g=t.edge(s).weight;if(i+=c?g:-g,l=e,h=r,u=d,l.hasEdge(h,u)){var f=e.edge(r,d).cutvalue;i+=c?-f:f}}}),i}function c(e,t){arguments.length<2&&(t=e.nodes()[0]),function e(t,r,n,o,s){var i=n,a=t.node(o);return r[o]=!0,t.neighbors(o).forEach(s=>{Object.hasOwn(r,s)||(n=e(t,r,n,s,o))}),a.low=i,a.lim=n++,s?a.parent=s:delete a.parent,n}(e,{},1,t)}function g(e){return e.edges().find(t=>e.edge(t).cutvalue<0)}function f(e,t,r){var n=r.v,s=r.w;t.hasEdge(n,s)||(n=r.w,s=r.v);var i=e.node(n),a=e.node(s),d=i,l=!1;return i.lim>a.lim&&(d=a,l=!0),t.edges().filter(t=>l===m(e,e.node(t.v),d)&&l!==m(e,e.node(t.w),d)).reduce((e,r)=>o(t,r)<o(t,e)?r:e)}function p(e,t,r,n){var o,s,a,d,l=r.v,u=r.w;e.removeEdge(l,u),e.setEdge(n.v,n.w,{}),c(e),h(e,t),o=e,s=t,a=o.nodes().find(e=>!s.node(e).parent),(d=(d=i(o,a)).slice(1)).forEach(e=>{var t=o.node(e).parent,r=s.edge(e,t),n=!1;r||(r=s.edge(t,e),n=!0),s.node(e).rank=s.node(t).rank+(n?r.minlen:-r.minlen)})}function m(e,t,r){return r.low<=t.lim&&t.lim<=r.lim}t.exports=l,l.initLowLimValues=c,l.initCutValues=h,l.calcCutValue=u,l.leaveEdge=g,l.enterEdge=f,l.exchangeEdges=p},393534,(e,t,r)=>{"use strict";var n=e.r(200570).longestPath,o=e.r(348438),s=e.r(6654);t.exports=function(e){var t,r=e.graph().ranker;if(r instanceof Function)return r(e);switch(e.graph().ranker){case"network-simplex":default:s(e);break;case"tight-tree":n(t=e),o(t);break;case"longest-path":i(e);case"none":}};var i=n},284179,(e,t,r)=>{t.exports=function(e){var t;let r,n,o=(r={},n=0,(t=e).children().forEach(function e(o){let s=n;t.children(o).forEach(e),r[o]={low:s,lim:n++}}),r);e.graph().dummyChains.forEach(t=>{let r=e.node(t),n=r.edgeObj,s=function(e,t,r,n){let o,s,i=[],a=[],d=Math.min(t[r].low,t[n].low),l=Math.max(t[r].lim,t[n].lim);o=r;do i.push(o=e.parent(o));while(o&&(t[o].low>d||l>t[o].lim))for(s=o,o=n;(o=e.parent(o))!==s;)a.push(o);return{path:i.concat(a.reverse()),lca:s}}(e,o,n.v,n.w),i=s.path,a=s.lca,d=0,l=i[0],h=!0;for(;t!==n.w;){if(r=e.node(t),h){for(;(l=i[d])!==a&&e.node(l).maxRank<r.rank;)d++;l===a&&(h=!1)}if(!h){for(;d<i.length-1&&e.node(l=i[d+1]).minRank<=r.rank;)d++;l=i[d]}e.setParent(t,l),t=e.successors(t)[0]}})}},245128,(e,t,r)=>{let n=e.r(698298);t.exports={run:function(e){var t,r,o;let s=n.addDummyNode(e,"root",{},"_root"),i=(r={},(t=e).children().forEach(e=>(function e(n,o){var s=t.children(n);s&&s.length&&s.forEach(t=>e(t,o+1)),r[n]=o})(e,1)),r),a=Object.values(i),d=n.applyWithChunking(Math.max,a)-1,l=2*d+1;e.graph().nestingRoot=s,e.edges().forEach(t=>e.edge(t).minlen*=l);let h=(o=e).edges().reduce((e,t)=>e+o.edge(t).weight,0)+1;e.children().forEach(t=>(function e(t,r,o,s,i,a,d){let l=t.children(d);if(!l.length){d!==r&&t.setEdge(r,d,{weight:0,minlen:o});return}let h=n.addBorderNode(t,"_bt"),u=n.addBorderNode(t,"_bb"),c=t.node(d);t.setParent(h,d),c.borderTop=h,t.setParent(u,d),c.borderBottom=u,l.forEach(n=>{e(t,r,o,s,i,a,n);let l=t.node(n),c=l.borderTop?l.borderTop:n,g=l.borderBottom?l.borderBottom:n,f=l.borderTop?s:2*s,p=c!==g?1:i-a[d]+1;t.setEdge(h,c,{weight:f,minlen:p,nestingEdge:!0}),t.setEdge(g,u,{weight:f,minlen:p,nestingEdge:!0})}),t.parent(d)||t.setEdge(r,h,{weight:0,minlen:i+a[d]})})(e,s,l,h,d,i,t)),e.graph().nodeRankFactor=l},cleanup:function(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,e.edges().forEach(t=>{e.edge(t).nestingEdge&&e.removeEdge(t)})}}},436561,(e,t,r)=>{let n=e.r(698298);function o(e,t,r,o,s,i){let a=s[t][i-1],d=n.addDummyNode(e,"border",{width:0,height:0,rank:i,borderType:t},r);s[t][i]=d,e.setParent(d,o),a&&e.setEdge(a,d,{weight:1})}t.exports=function(e){e.children().forEach(function t(r){let n=e.children(r),s=e.node(r);if(n.length&&n.forEach(t),Object.hasOwn(s,"minRank")){s.borderLeft=[],s.borderRight=[];for(let t=s.minRank,n=s.maxRank+1;t<n;++t)o(e,"borderLeft","_bl",r,s,t),o(e,"borderRight","_br",r,s,t)}})}},614872,(e,t,r)=>{"use strict";function n(e){e.nodes().forEach(t=>o(e.node(t))),e.edges().forEach(t=>o(e.edge(t)))}function o(e){let t=e.width;e.width=e.height,e.height=t}function s(e){e.y=-e.y}function i(e){let t=e.x;e.x=e.y,e.y=t}t.exports={adjust:function(e){let t=e.graph().rankdir.toLowerCase();("lr"===t||"rl"===t)&&n(e)},undo:function(e){var t,r;let o=e.graph().rankdir.toLowerCase();("bt"===o||"rl"===o)&&((t=e).nodes().forEach(e=>s(t.node(e))),t.edges().forEach(e=>{let r=t.edge(e);r.points.forEach(s),Object.hasOwn(r,"y")&&s(r)})),("lr"===o||"rl"===o)&&((r=e).nodes().forEach(e=>i(r.node(e))),r.edges().forEach(e=>{let t=r.edge(e);t.points.forEach(i),Object.hasOwn(t,"x")&&i(t)}),n(e))}}},255396,(e,t,r)=>{"use strict";let n=e.r(698298);t.exports=function(e){let t={},r=e.nodes().filter(t=>!e.children(t).length),o=r.map(t=>e.node(t).rank),s=n.applyWithChunking(Math.max,o),i=n.range(s+1).map(()=>[]);return r.sort((t,r)=>e.node(t).rank-e.node(r).rank).forEach(function r(n){t[n]||(t[n]=!0,i[e.node(n).rank].push(n),e.successors(n).forEach(r))}),i}},705762,(e,t,r)=>{"use strict";let n=e.r(698298).zipObject;t.exports=function(e,t){let r=0;for(let o=1;o<t.length;++o)r+=function(e,t,r){let o=n(r,r.map((e,t)=>t)),s=t.flatMap(t=>e.outEdges(t).map(t=>({pos:o[t.w],weight:e.edge(t).weight})).sort((e,t)=>e.pos-t.pos)),i=1;for(;i<r.length;)i<<=1;let a=2*i-1;i-=1;let d=Array(a).fill(0),l=0;return s.forEach(e=>{let t=e.pos+i;d[t]+=e.weight;let r=0;for(;t>0;)t%2&&(r+=d[t+1]),t=t-1>>1,d[t]+=e.weight;l+=e.weight*r}),l}(e,t[o-1],t[o]);return r}},893763,(e,t,r)=>{t.exports=function(e,t=[]){return t.map(t=>{let r=e.inEdges(t);if(!r.length)return{v:t};{let n=r.reduce((t,r)=>{let n=e.edge(r),o=e.node(r.v);return{sum:t.sum+n.weight*o.order,weight:t.weight+n.weight}},{sum:0,weight:0});return{v:t,barycenter:n.sum/n.weight,weight:n.weight}}})}},354053,(e,t,r)=>{"use strict";let n=e.r(698298);t.exports=function(e,t){let r={};return e.forEach((e,t)=>{let n=r[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};void 0!==e.barycenter&&(n.barycenter=e.barycenter,n.weight=e.weight)}),t.edges().forEach(e=>{let t=r[e.v],n=r[e.w];void 0!==t&&void 0!==n&&(n.indegree++,t.out.push(r[e.w]))}),function(e){let t=[];for(;e.length;){let r=e.pop();t.push(r),r.in.reverse().forEach(function(e){return t=>{!t.merged&&(void 0===t.barycenter||void 0===e.barycenter||t.barycenter>=e.barycenter)&&function(e,t){let r=0,n=0;e.weight&&(r+=e.barycenter*e.weight,n+=e.weight),t.weight&&(r+=t.barycenter*t.weight,n+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=r/n,e.weight=n,e.i=Math.min(t.i,e.i),t.merged=!0}(e,t)}}(r)),r.out.forEach(function(t){return r=>{r.in.push(t),0==--r.indegree&&e.push(r)}}(r))}return t.filter(e=>!e.merged).map(e=>n.pick(e,["vs","i","barycenter","weight"]))}(Object.values(r).filter(e=>!e.indegree))}},299139,(e,t,r)=>{let n=e.r(698298);function o(e,t,r){let n;for(;t.length&&(n=t[t.length-1]).i<=r;)t.pop(),e.push(n.vs),r++;return r}t.exports=function(e,t){var r;let s=n.partition(e,e=>Object.hasOwn(e,"barycenter")),i=s.lhs,a=s.rhs.sort((e,t)=>t.i-e.i),d=[],l=0,h=0,u=0;i.sort((r=!!t,(e,t)=>e.barycenter<t.barycenter?-1:e.barycenter>t.barycenter?1:r?t.i-e.i:e.i-t.i)),u=o(d,a,u),i.forEach(e=>{u+=e.vs.length,d.push(e.vs),l+=e.barycenter*e.weight,h+=e.weight,u=o(d,a,u)});let c={vs:d.flat(!0)};return h&&(c.barycenter=l/h,c.weight=h),c}},768818,(e,t,r)=>{let n=e.r(893763),o=e.r(354053),s=e.r(299139);t.exports=function e(t,r,i,a){var d,l;let h=t.children(r),u=t.node(r),c=u?u.borderLeft:void 0,g=u?u.borderRight:void 0,f={};c&&(h=h.filter(e=>e!==c&&e!==g));let p=n(t,h);p.forEach(r=>{if(t.children(r.v).length){var n,o;let s=e(t,r.v,i,a);f[r.v]=s,Object.hasOwn(s,"barycenter")&&(n=r,o=s,void 0!==n.barycenter?(n.barycenter=(n.barycenter*n.weight+o.barycenter*o.weight)/(n.weight+o.weight),n.weight+=o.weight):(n.barycenter=o.barycenter,n.weight=o.weight))}});let m=o(p,i);d=m,l=f,d.forEach(e=>{e.vs=e.vs.flatMap(e=>l[e]?l[e].vs:e)});let v=s(m,a);if(c&&(v.vs=[c,v.vs,g].flat(!0),t.predecessors(c).length)){let e=t.node(t.predecessors(c)[0]),r=t.node(t.predecessors(g)[0]);Object.hasOwn(v,"barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+e.order+r.order)/(v.weight+2),v.weight+=2}return v}},862782,(e,t,r)=>{let n=e.r(892353).Graph,o=e.r(698298);t.exports=function(e,t,r,s){s||(s=e.nodes());let i=function(e){for(var t;e.hasNode(t=o.uniqueId("_root")););return t}(e),a=new n({compound:!0}).setGraph({root:i}).setDefaultNodeLabel(t=>e.node(t));return s.forEach(n=>{let o=e.node(n),s=e.parent(n);(o.rank===t||o.minRank<=t&&t<=o.maxRank)&&(a.setNode(n),a.setParent(n,s||i),e[r](n).forEach(t=>{let r=t.v===n?t.w:t.v,o=a.edge(r,n),s=void 0!==o?o.weight:0;a.setEdge(r,n,{weight:e.edge(t).weight+s})}),Object.hasOwn(o,"minRank")&&a.setNode(n,{borderLeft:o.borderLeft[t],borderRight:o.borderRight[t]}))}),a}},735403,(e,t,r)=>{t.exports=function(e,t,r){let n={},o;r.forEach(r=>{let s=e.parent(r),i,a;for(;s;){if((i=e.parent(s))?(a=n[i],n[i]=s):(a=o,o=s),a&&a!==s)return void t.setEdge(a,s);s=i}})}},205461,(e,t,r)=>{"use strict";let n=e.r(255396),o=e.r(705762),s=e.r(768818),i=e.r(862782),a=e.r(735403),d=e.r(892353).Graph,l=e.r(698298);function h(e,t,r){let n=new Map,o=(e,t)=>{n.has(e)||n.set(e,[]),n.get(e).push(t)};for(let t of e.nodes()){let r=e.node(t);if("number"==typeof r.rank&&o(r.rank,t),"number"==typeof r.minRank&&"number"==typeof r.maxRank)for(let e=r.minRank;e<=r.maxRank;e++)e!==r.rank&&o(e,t)}return t.map(function(t){return i(e,t,r,n.get(t)||[])})}function u(e,t){Object.values(t).forEach(t=>t.forEach((t,r)=>e.node(t).order=r))}t.exports=function e(t,r){if(r&&"function"==typeof r.customOrder)return void r.customOrder(t,e);let i=l.maxRank(t),c=h(t,l.range(1,i+1),"inEdges"),g=h(t,l.range(i-1,-1,-1),"outEdges"),f=n(t);if(u(t,f),r&&r.disableOptimalOrderHeuristic)return;let p=1/0,m;for(let e=0,r=0;r<4;++e,++r){(function(e,t){let r=new d;e.forEach(function(e){let n=e.graph().root,o=s(e,n,r,t);o.vs.forEach((t,r)=>e.node(t).order=r),a(e,r,o.vs)})})(e%2?c:g,e%4>=2),f=l.buildLayerMatrix(t);let n=o(t,f);n<p&&(r=0,m=Object.assign({},f),p=n)}u(t,m)}},190741,(e,t,r)=>{"use strict";let n=e.r(892353).Graph,o=e.r(698298);function s(e,t){let r={};return t.length&&t.reduce(function(t,n){let o=0,s=0,i=t.length,d=n[n.length-1];return n.forEach((t,l)=>{let h=function(e,t){if(e.node(t).dummy)return e.predecessors(t).find(t=>e.node(t).dummy)}(e,t),u=h?e.node(h).order:i;(h||t===d)&&(n.slice(s,l+1).forEach(t=>{e.predecessors(t).forEach(n=>{let s=e.node(n),i=s.order;(i<o||u<i)&&!(s.dummy&&e.node(t).dummy)&&a(r,n,t)})}),s=l+1,o=u)}),n}),r}function i(e,t){let r={};function n(t,n,s,i,d){let l;o.range(n,s).forEach(n=>{l=t[n],e.node(l).dummy&&e.predecessors(l).forEach(t=>{let n=e.node(t);n.dummy&&(n.order<i||n.order>d)&&a(r,t,l)})})}return t.length&&t.reduce(function(t,r){let o=-1,s,i=0;return r.forEach((a,d)=>{if("border"===e.node(a).dummy){let t=e.predecessors(a);t.length&&(s=e.node(t[0]).order,n(r,i,d,o,s),i=d,o=s)}n(r,i,r.length,s,t.length)}),r}),r}function a(e,t,r){if(t>r){let e=t;t=r,r=e}let n=e[t];n||(e[t]=n={}),n[r]=!0}function d(e,t,r){if(t>r){let e=t;t=r,r=e}return!!e[t]&&Object.hasOwn(e[t],r)}function l(e,t,r,n){let o={},s={},i={};return t.forEach(e=>{e.forEach((e,t)=>{o[e]=e,s[e]=e,i[e]=t})}),t.forEach(e=>{let t=-1;e.forEach(e=>{let a=n(e);if(a.length){let n=((a=a.sort((e,t)=>i[e]-i[t])).length-1)/2;for(let l=Math.floor(n),h=Math.ceil(n);l<=h;++l){let n=a[l];s[e]===e&&t<i[n]&&!d(r,e,n)&&(s[n]=e,s[e]=o[e]=o[n],t=i[n])}}})}),{root:o,align:s}}function h(e,t,r,o,s){var i,a,d,l,h,u,c;let g,f,p,m={},v=(i=e,a=t,d=r,l=s,g=new n,p=(h=(f=i.graph()).nodesep,u=f.edgesep,c=l,(e,t,r)=>{let n,o,s=e.node(t),i=e.node(r);if(n=0+s.width/2,Object.hasOwn(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":o=-s.width/2;break;case"r":o=s.width/2}if(o&&(n+=c?o:-o),o=0,n+=(s.dummy?u:h)/2,n+=(i.dummy?u:h)/2,n+=i.width/2,Object.hasOwn(i,"labelpos"))switch(i.labelpos.toLowerCase()){case"l":o=i.width/2;break;case"r":o=-i.width/2}return o&&(n+=c?o:-o),o=0,n}),a.forEach(e=>{let t;e.forEach(e=>{let r=d[e];if(g.setNode(r),t){var n=d[t],o=g.edge(n,r);g.setEdge(n,r,Math.max(p(i,e,t),o||0))}t=e})}),g),w=s?"borderLeft":"borderRight";function b(e,t){let r=v.nodes(),n=r.pop(),o={};for(;n;)o[n]?e(n):(o[n]=!0,r.push(n),r=r.concat(t(n))),n=r.pop()}return b(function(e){m[e]=v.inEdges(e).reduce((e,t)=>Math.max(e,m[t.v]+v.edge(t)),0)},v.predecessors.bind(v)),b(function(t){let r=v.outEdges(t).reduce((e,t)=>Math.min(e,m[t.w]-v.edge(t)),1/0),n=e.node(t);r!==1/0&&n.borderType!==w&&(m[t]=Math.max(m[t],r))},v.successors.bind(v)),Object.keys(o).forEach(e=>m[e]=m[r[e]]),m}function u(e,t){return Object.values(t).reduce((t,r)=>{let n=-1/0,o=1/0;Object.entries(r).forEach(([t,r])=>{var s,i;let a=(s=e,i=t,s.node(i).width/2);n=Math.max(r+a,n),o=Math.min(r-a,o)});let s=n-o;return s<t[0]&&(t=[s,r]),t},[1/0,null])[1]}function c(e,t){let r=Object.values(t),n=o.applyWithChunking(Math.min,r),s=o.applyWithChunking(Math.max,r);["u","d"].forEach(r=>{["l","r"].forEach(i=>{let a=r+i,d=e[a];if(d===t)return;let l=Object.values(d),h=n-o.applyWithChunking(Math.min,l);"l"!==i&&(h=s-o.applyWithChunking(Math.max,l)),h&&(e[a]=o.mapValues(d,e=>e+h))})})}function g(e,t){return o.mapValues(e.ul,(r,n)=>{if(t)return e[t.toLowerCase()][n];{let t=Object.values(e).map(e=>e[n]).sort((e,t)=>e-t);return(t[1]+t[2])/2}})}t.exports={positionX:function(e){let t,r=o.buildLayerMatrix(e),n=Object.assign(s(e,r),i(e,r)),a={};["u","d"].forEach(s=>{t="u"===s?r:Object.values(r).reverse(),["l","r"].forEach(r=>{"r"===r&&(t=t.map(e=>Object.values(e).reverse()));let i=("u"===s?e.predecessors:e.successors).bind(e),d=l(e,t,n,i),u=h(e,t,d.root,d.align,"r"===r);"r"===r&&(u=o.mapValues(u,e=>-e)),a[s+r]=u})});let d=u(e,a);return c(a,d),g(a,e.graph().align)},findType1Conflicts:s,findType2Conflicts:i,addConflict:a,hasConflict:d,verticalAlignment:l,horizontalCompaction:h,alignCoordinates:c,findSmallestWidthAlignment:u,balance:g}},914314,(e,t,r)=>{"use strict";let n=e.r(698298),o=e.r(190741).positionX;t.exports=function(e){var t;let r,s,i;t=e=n.asNonCompoundGraph(e),r=n.buildLayerMatrix(t),s=t.graph().ranksep,i=0,r.forEach(e=>{let r=e.reduce((e,r)=>{let n=t.node(r).height;return e>n?e:n},0);e.forEach(e=>t.node(e).y=i+r/2),i+=r+s}),Object.entries(o(e)).forEach(([t,r])=>e.node(t).x=r)}},752654,(e,t,r)=>{"use strict";let n=e.r(196218),o=e.r(360908),s=e.r(393534),i=e.r(698298).normalizeRanks,a=e.r(284179),d=e.r(698298).removeEmptyRanks,l=e.r(245128),h=e.r(436561),u=e.r(614872),c=e.r(205461),g=e.r(914314),f=e.r(698298),p=e.r(892353).Graph;t.exports=function(e,t){let r=t&&t.debugTiming?f.time:f.notime;r("layout",()=>{let j=r(" buildLayoutGraph",()=>{var t;let r,n;return t=e,r=new p({multigraph:!0,compound:!0}),n=O(t.graph()),r.setGraph(Object.assign({},v,k(n,m),f.pick(n,w))),t.nodes().forEach(e=>{let n=k(O(t.node(e)),b);Object.keys(E).forEach(e=>{void 0===n[e]&&(n[e]=E[e])}),r.setNode(e,n),r.setParent(e,t.parent(e))}),t.edges().forEach(e=>{let n=O(t.edge(e));r.setEdge(e,Object.assign({},x,k(n,y),f.pick(n,_)))}),r});r(" runLayout",()=>{var e,p,m;return e=j,p=r,m=t,void(p(" makeSpaceForEdgeLabels",()=>{var t;let r;return r=(t=e).graph(),void(r.ranksep/=2,t.edges().forEach(e=>{let n=t.edge(e);n.minlen*=2,"c"!==n.labelpos.toLowerCase()&&("TB"===r.rankdir||"BT"===r.rankdir?n.width+=n.labeloffset:n.height+=n.labeloffset)}))}),p(" removeSelfEdges",()=>{var t;(t=e).edges().forEach(e=>{if(e.v===e.w){var r=t.node(e.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}})}),p(" acyclic",()=>n.run(e)),p(" nestingGraph.run",()=>l.run(e)),p(" rank",()=>s(f.asNonCompoundGraph(e))),p(" injectEdgeLabelProxies",()=>{var t;(t=e).edges().forEach(e=>{let r=t.edge(e);if(r.width&&r.height){let r=t.node(e.v),n={rank:(t.node(e.w).rank-r.rank)/2+r.rank,e:e};f.addDummyNode(t,"edge-proxy",n,"_ep")}})}),p(" removeEmptyRanks",()=>d(e)),p(" nestingGraph.cleanup",()=>l.cleanup(e)),p(" normalizeRanks",()=>i(e)),p(" assignRankMinMax",()=>{var t;let r;return r=0,void((t=e).nodes().forEach(e=>{let n=t.node(e);n.borderTop&&(n.minRank=t.node(n.borderTop).rank,n.maxRank=t.node(n.borderBottom).rank,r=Math.max(r,n.maxRank))}),t.graph().maxRank=r)}),p(" removeEdgeLabelProxies",()=>{var t;(t=e).nodes().forEach(e=>{let r=t.node(e);"edge-proxy"===r.dummy&&(t.edge(r.e).labelRank=r.rank,t.removeNode(e))})}),p(" normalize.run",()=>o.run(e)),p(" parentDummyChains",()=>a(e)),p(" addBorderSegments",()=>h(e)),p(" order",()=>c(e,m)),p(" insertSelfEdges",()=>{var t;return t=e,void f.buildLayerMatrix(t).forEach(e=>{var r=0;e.forEach((e,n)=>{var o=t.node(e);o.order=n+r,(o.selfEdges||[]).forEach(e=>{f.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:o.rank,order:n+ ++r,e:e.e,label:e.label},"_se")}),delete o.selfEdges})})}),p(" adjustCoordinateSystem",()=>u.adjust(e)),p(" position",()=>g(e)),p(" positionSelfEdges",()=>{var t;(t=e).nodes().forEach(e=>{var r=t.node(e);if("selfedge"===r.dummy){var n=t.node(r.e.v),o=n.x+n.width/2,s=n.y,i=r.x-o,a=n.height/2;t.setEdge(r.e,r.label),t.removeNode(e),r.label.points=[{x:o+2*i/3,y:s-a},{x:o+5*i/6,y:s-a},{x:o+i,y:s},{x:o+5*i/6,y:s+a},{x:o+2*i/3,y:s+a}],r.label.x=r.x,r.label.y=r.y}})}),p(" removeBorderNodes",()=>{var t;(t=e).nodes().forEach(e=>{if(t.children(e).length){let r=t.node(e),n=t.node(r.borderTop),o=t.node(r.borderBottom),s=t.node(r.borderLeft[r.borderLeft.length-1]),i=t.node(r.borderRight[r.borderRight.length-1]);r.width=Math.abs(i.x-s.x),r.height=Math.abs(o.y-n.y),r.x=s.x+r.width/2,r.y=n.y+r.height/2}}),t.nodes().forEach(e=>{"border"===t.node(e).dummy&&t.removeNode(e)})}),p(" normalize.undo",()=>o.undo(e)),p(" fixupEdgeLabelCoords",()=>{var t;(t=e).edges().forEach(e=>{let r=t.edge(e);if(Object.hasOwn(r,"x"))switch(("l"===r.labelpos||"r"===r.labelpos)&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset}})}),p(" undoCoordinateSystem",()=>u.undo(e)),p(" translateGraph",()=>(function(e){let t=1/0,r=0,n=1/0,o=0,s=e.graph(),i=s.marginx||0,a=s.marginy||0;function d(e){let s=e.x,i=e.y,a=e.width,d=e.height;t=Math.min(t,s-a/2),r=Math.max(r,s+a/2),n=Math.min(n,i-d/2),o=Math.max(o,i+d/2)}e.nodes().forEach(t=>d(e.node(t))),e.edges().forEach(t=>{let r=e.edge(t);Object.hasOwn(r,"x")&&d(r)}),t-=i,n-=a,e.nodes().forEach(r=>{let o=e.node(r);o.x-=t,o.y-=n}),e.edges().forEach(r=>{let o=e.edge(r);o.points.forEach(e=>{e.x-=t,e.y-=n}),Object.hasOwn(o,"x")&&(o.x-=t),Object.hasOwn(o,"y")&&(o.y-=n)}),s.width=r-t+i,s.height=o-n+a})(e)),p(" assignNodeIntersects",()=>{var t;(t=e).edges().forEach(e=>{let r,n,o=t.edge(e),s=t.node(e.v),i=t.node(e.w);o.points?(r=o.points[0],n=o.points[o.points.length-1]):(o.points=[],r=i,n=s),o.points.unshift(f.intersectRect(s,r)),o.points.push(f.intersectRect(i,n))})}),p(" reversePoints",()=>{var t;(t=e).edges().forEach(e=>{let r=t.edge(e);r.reversed&&r.points.reverse()})}),p(" acyclic.undo",()=>n.undo(e)))}),r(" updateInputGraph",()=>{var t,r;return t=e,r=j,void(t.nodes().forEach(e=>{let n=t.node(e),o=r.node(e);n&&(n.x=o.x,n.y=o.y,n.rank=o.rank,r.children(e).length&&(n.width=o.width,n.height=o.height))}),t.edges().forEach(e=>{let n=t.edge(e),o=r.edge(e);n.points=o.points,Object.hasOwn(o,"x")&&(n.x=o.x,n.y=o.y)}),t.graph().width=r.graph().width,t.graph().height=r.graph().height)})})};let m=["nodesep","edgesep","ranksep","marginx","marginy"],v={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},w=["acyclicer","ranker","rankdir","align"],b=["width","height","rank"],E={width:0,height:0},y=["minlen","weight","width","height","labeloffset"],x={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},_=["labelpos"];function k(e,t){return f.mapValues(f.pick(e,t),Number)}function O(e){var t={};return e&&Object.entries(e).forEach(([e,r])=>{"string"==typeof e&&(e=e.toLowerCase()),t[e]=r}),t}},513515,(e,t,r)=>{let n=e.r(698298),o=e.r(892353).Graph;t.exports={debugOrdering:function(e){let t=n.buildLayerMatrix(e),r=new o({compound:!0,multigraph:!0}).setGraph({});return e.nodes().forEach(t=>{r.setNode(t,{label:t}),r.setParent(t,"layer"+e.node(t).rank)}),e.edges().forEach(e=>r.setEdge(e.v,e.w,{},e.name)),t.forEach((e,t)=>{r.setNode("layer"+t,{rank:"same"}),e.reduce((e,t)=>(r.setEdge(e,t,{style:"invis"}),t))}),r}}},922596,(e,t,r)=>{t.exports="1.1.8"},165825,(e,t,r)=>{t.exports={graphlib:e.r(892353),layout:e.r(752654),debug:e.r(513515),util:{time:e.r(698298).time,notime:e.r(698298).notime},version:e.r(922596)}},286872,455665,e=>{"use strict";var t=e.i(165825),r=e.i(207425),n=e.i(549139),o=e.i(714028);function s(e){let t=(0,n.getVisualSpec)((0,o.graphNodeKindString)(e));return{width:t.defaultWidth,height:t.defaultHeight+t.captionHeight}}e.s(["registryNodeDimensions",0,s],455665),e.s(["applyDagreLayout",0,function(e,n=r.DAGRE_CONFIG){let o=new t.default.graphlib.Graph;for(let t of(o.setGraph({rankdir:n.rankdir,ranksep:n.ranksep,nodesep:n.nodesep}),o.setDefaultEdgeLabel(()=>({})),e.nodes)){let{width:e,height:r}=s(t);o.setNode(t.id,{width:e,height:r})}for(let t of e.edges)o.setEdge(t.source,t.target);t.default.layout(o);let i=e.nodes.map(e=>{let t=o.node(e.id),{width:r,height:n}=s(e);return{...e,position:{x:(t?.x??0)-r/2,y:(t?.y??0)-n/2}}});return{...e,nodes:i}}],286872)},163732,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(154548),o=e.i(30590),s=e.i(893976),i=e.i(882267),a=e.i(144905),d=e.i(714028),l=e.i(678321),h=e.i(286872),u=e.i(242792);function c(e,t){if(e===t)return!0;if(null===e||null===t||typeof e!=typeof t)return!1;if("bigint"==typeof e||"bigint"==typeof t)return String(e)===String(t);if("object"!=typeof e)return!1;if(Array.isArray(e))return!!Array.isArray(t)&&e.length===t.length&&e.every((e,r)=>c(e,t[r]));if(Array.isArray(t))return!1;let r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&r.every(r=>r in t&&c(e[r],t[r]))}function g(e,t,r){return r?`${e}|${t}|${r}`:`${e}|${t}`}function f(e,t){let r=new Set([u.START_NODE_ID,u.END_NODE_ID]),n=new Map(e.nodes.filter(e=>!r.has(e.id)).map(e=>[e.id,e])),o=new Map(t.nodes.filter(e=>!r.has(e.id)).map(e=>[e.id,e])),s=new Map,i=0,a=0,d=0;for(let[e,t]of o){let r=n.get(e);if(r){var l,h;let n=(l=r,h=t,l.kind===h.kind&&c(l.config,h.config)&&(l.export?.as??"")===(h.export?.as??"")?"unchanged":"modified"),o="modified"===n?function(e,t){let r=new Set([...Object.keys(e),...Object.keys(t)]),n=[];for(let o of r)c(e[o],t[o])||n.push(o);return n}(r.config,t.config):void 0;s.set(e,{taskName:t.taskName,status:n,beforeNode:r,afterNode:t,changedFields:o}),"modified"===n&&d++}else s.set(e,{taskName:t.taskName,status:"added",afterNode:t}),i++}for(let[e,t]of n)!o.has(e)&&(s.set(e,{taskName:t.taskName,status:"removed",beforeNode:t}),a++);let f=new Map(e.edges.map(e=>[g(e.source,e.target,e.sourceHandle),e])),p=new Map(t.edges.map(e=>[g(e.source,e.target,e.sourceHandle),e])),m=new Map;for(let[e]of p){let t=f.has(e)?"unchanged":"added";m.set(e,{edgeKey:e,status:t})}for(let[e]of f)p.has(e)||m.set(e,{edgeKey:e,status:"removed"});return{nodes:s,edges:m,summary:{added:i,removed:a,modified:d}}}function p(e,t,r){let n=new Set(t.nodes.map(e=>e.id)),o=[...t.nodes];for(let[e,t]of r.nodes)"removed"===t.status&&t.beforeNode&&!n.has(e)&&o.push(t.beforeNode);let s=new Set(t.edges.map(e=>m(e.source,e.target,e.sourceHandle))),i=[...t.edges],a=t.edges.length;for(let[t,n]of r.edges)if("removed"===n.status){let r=e.edges.find(e=>m(e.source,e.target,e.sourceHandle)===t);r&&!s.has(t)&&i.push({...r,id:`diff_removed_${a++}`})}return{document:t.document,description:t.description,env:t.env,budget:t.budget,nodes:o,edges:i}}function m(e,t,r){return r?`${e}|${t}|${r}`:`${e}|${t}`}let v=[],w=[];function b(e,t){return{nodes:e.nodes.map(e=>{let r=e.data,n=t.nodes.get(e.id);return n?{...e,data:{...r,diffState:{status:n.status,changedFields:n.changedFields}},draggable:!1,connectable:!1,deletable:!1}:e}),edges:e.edges.map(e=>{let r=e.data??{},n=e.data?.sourceHandle?`${e.source}|${e.target}|${e.sourceHandle}`:`${e.source}|${e.target}`,o=t.edges.get(n);return o?{...e,data:{...r,diffState:o.status}}:e})}}let E=(0,r.memo)(function({diff:e,className:r}){let{added:n,removed:o,modified:i}=e.summary;return 0===n&&0===o&&0===i?(0,t.jsx)("div",{className:(0,s.cn)("stg:flex stg:items-center stg:gap-2 stg:rounded-md stg:border stg:border-[var(--stgm-border,#e5e5e5)] stg:bg-[var(--stgm-card,var(--stgm-background,#fff))] stg:px-3 stg:py-1.5 stg:text-xs stg:text-[var(--stgm-muted-foreground,#737373)] stg:shadow-sm",r),children:"No changes detected"}):(0,t.jsxs)("div",{className:(0,s.cn)("stg:flex stg:items-center stg:gap-3 stg:rounded-md stg:border stg:border-[var(--stgm-border,#e5e5e5)] stg:bg-[var(--stgm-card,var(--stgm-background,#fff))] stg:px-3 stg:py-1.5 stg:text-xs stg:font-medium stg:shadow-sm",r),role:"status","aria-label":`Diff summary: ${n} added, ${o} removed, ${i} modified`,children:[n>0&&(0,t.jsxs)("span",{className:"stg:flex stg:items-center stg:gap-1 stg:text-[var(--stgm-success,#22c55e)]",children:[(0,t.jsx)("span",{"aria-hidden":"true",children:"+"}),n," added"]}),o>0&&(0,t.jsxs)("span",{className:"stg:flex stg:items-center stg:gap-1 stg:text-[var(--stgm-destructive,#ef4444)]",children:[(0,t.jsx)("span",{"aria-hidden":"true",children:"−"}),o," removed"]}),i>0&&(0,t.jsxs)("span",{className:"stg:flex stg:items-center stg:gap-1 stg:text-[var(--stgm-warning,#f59e0b)]",children:[(0,t.jsx)("span",{"aria-hidden":"true",children:"~"}),i," modified"]})]})}),y={[d.CANVAS_TASK_NODE_TYPE]:i.WorkflowNode},x={[d.CANVAS_TRANSITION_EDGE_TYPE]:a.CanvasTransitionEdge},_={markerEnd:{type:o.MarkerType.ArrowClosed,width:16,height:16}},k=(0,r.memo)(function(e){return(0,t.jsx)(n.ReactFlowProvider,{children:(0,t.jsx)(O,{...e})})});function O({beforeYaml:e,afterYaml:o,onTaskClick:i,className:a}){let u=(0,r.useId)(),{nodes:c,edges:g,diff:m,error:k,selectedTaskName:j,setSelectedTaskName:N}=function(e){let{beforeYaml:t,afterYaml:n}=e,[o,s]=(0,r.useState)(null),i=(0,r.useMemo)(()=>{if(!n.trim())return{nodes:v,edges:w,diff:null,error:null};try{let e=(0,d.yamlToGraph)(n);if(!t.trim()){let t={document:e.document,nodes:[],edges:[]},r=f(t,e),n=p(t,e,r),o=(0,h.applyDagreLayout)(n),s=(0,d.toReactFlowElements)(o);return{...b(s,r),diff:r,error:null}}let r=(0,d.yamlToGraph)(t),o=f(r,e),s=p(r,e,o),i=(0,h.applyDagreLayout)(s),a=(0,d.toReactFlowElements)(i);return{...b(a,o),diff:o,error:null}}catch(e){return{nodes:v,edges:w,diff:null,error:e instanceof Error?e.message:"Failed to compute diff"}}},[t,n]);return{nodes:i.nodes,edges:i.edges,diff:i.diff,error:i.error,selectedTaskName:o,setSelectedTaskName:s}}({beforeYaml:e,afterYaml:o}),{fitView:C}=(0,n.useReactFlow)(),M=(0,r.useRef)(!1);(0,r.useEffect)(()=>{c.length>0&&!M.current&&(M.current=!0,setTimeout(()=>C({padding:.15,duration:300}),50))},[c.length,C]);let R=(0,r.useCallback)((e,t)=>{let r=t.data;if(r.isSentinel)return;let n=r.taskName,o=n===j?null:n;if(N(o),o&&i&&m){let e=m.nodes.get(t.id);e&&i(o,e)}},[j,N,i,m]),L=(0,r.useCallback)(()=>{N(null)},[N]),S=(0,r.useMemo)(()=>c.map(e=>({...e,selected:e.data.taskName===j})),[c,j]);return k?(0,t.jsx)("div",{className:(0,s.cn)("stg:flex stg:h-full stg:flex-col stg:items-center stg:justify-center stg:gap-2 stg:px-6 stg:text-center",a),children:(0,t.jsx)("p",{className:"stg:text-sm stg:text-[var(--stgm-muted-foreground,#737373)]",children:k})}):0===c.length?(0,t.jsx)("div",{className:(0,s.cn)("stg:flex stg:h-full stg:items-center stg:justify-center stg:text-sm stg:text-[var(--stgm-muted-foreground,#737373)]",a),children:"No changes to display"}):(0,t.jsx)(l.WorkflowGraphModeProvider,{mode:"diff",children:(0,t.jsxs)("div",{className:(0,s.cn)("stg:relative stg:h-full stg:w-full",a),children:[m&&(0,t.jsx)("div",{className:"stg:absolute stg:left-3 stg:top-3 stg:z-50",children:(0,t.jsx)(E,{diff:m})}),(0,t.jsxs)(n.ReactFlow,{id:u,nodes:S,edges:g,nodeTypes:y,edgeTypes:x,defaultEdgeOptions:_,onNodeClick:R,onPaneClick:L,nodesDraggable:!1,nodesConnectable:!1,elementsSelectable:!0,panOnDrag:!0,zoomOnScroll:!0,fitView:!1,minZoom:.2,maxZoom:2,proOptions:{hideAttribution:!0},children:[(0,t.jsx)(n.Background,{variant:n.BackgroundVariant.Dots,gap:16,size:1}),(0,t.jsx)(n.Controls,{showInteractive:!1})]})]})})}e.s(["WorkflowDiffGraph",0,k],163732)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,940069,e=>{"use strict";let t={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(t[e])?"all":"org"},"writePersistedScope",0,function(e,s){localStorage.setItem(t[e],s)}])},658653,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(893976),i=e.i(468806),n=e.i(869803),l=e.i(846696),a=e.i(774079),o=e.i(901501),c=e.i(864652),g=e.i(586108),d=e.i(326283);let u=(0,s.lazy)(()=>e.A(573374).then(e=>({default:e.YamlEditor})));function m(){return(0,t.jsx)("div",{className:"stg:flex stg:h-56 stg:items-center stg:justify-center stg:rounded-md stg:border stg:border-border stg:bg-muted stg:text-sm stg:text-muted-foreground",children:"Loading editor…"})}function p({entry:e}){return(0,t.jsxs)("li",{className:"stg:rounded-md stg:border stg:border-border stg:bg-card stg:px-3 stg:py-2",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,t.jsx)("span",{className:"stg:inline-flex stg:rounded stg:bg-muted stg:px-1.5 stg:py-0.5 stg:text-xs stg:font-medium stg:text-muted-foreground",children:e.document.handler.displayName}),(0,t.jsx)("span",{className:"stg:text-sm stg:font-medium stg:text-foreground",children:e.document.name}),(0,t.jsx)(f,{entry:e}),(0,t.jsx)("span",{className:"stg:ml-auto stg:text-xs stg:text-muted-foreground",children:e.document.org})]}),e.document.warning&&(0,t.jsx)("p",{className:"stg:mt-1 stg:text-xs stg:text-muted-foreground",children:e.document.warning}),"failed"===e.status&&e.errorMessage&&(0,t.jsx)("p",{role:"alert",className:"stg:mt-1 stg:text-xs stg:text-destructive",children:e.errorMessage})]})}function f({entry:e}){let s=function(e){switch(e.status){case"applying":return"Applying…";case"applied":return"Applied";case"failed":return"Failed";case"skipped":return"Skipped";case"pending":switch(e.action){case"create":return"Will create";case"update":return"Will update";case"unknown":return"Create or update"}}}(e);return(0,t.jsx)("span",{className:(0,r.cn)("stg:inline-flex stg:rounded stg:px-1.5 stg:py-0.5 stg:text-xs stg:font-medium","failed"===e.status?"stg:bg-card stg:text-destructive stg:border stg:border-destructive":"stg:bg-muted stg:text-muted-foreground"),children:s})}e.s(["ApplyManifestDialog",0,function({open:e,onOpenChange:f,org:x,onApplied:h}){var b;let y=(0,s.useRef)(null),v=function(e){let t=(0,g.useStigmer)(),[r,i]=(0,s.useState)(""),[n,l]=(0,s.useState)(null),[a,u]=(0,s.useState)(null),[m,p]=(0,s.useState)(!1),[f,x]=(0,s.useState)(!1),h=(0,s.useRef)(e);h.current=e;let b=(0,s.useCallback)(e=>{i(e)},[]),y=(0,s.useCallback)(async e=>{let t;try{t=await e.text()}catch{i(""),l(null),u(`Failed to read ${e.name}.`);return}i(t)},[]),v=(0,s.useCallback)(()=>{i(""),l(null),u(null),p(!1),x(!1)},[]),w=(0,s.useRef)(0);(0,s.useEffect)(()=>{if(f)return;let e=++w.current;if(!r.trim()){l(null),u(null),p(!1);return}p(!0);let s=setTimeout(async()=>{let s;try{s=(0,c.parseManifest)(r,{org:h.current})}catch(t){w.current===e&&(l(null),u((0,d.toError)(t).message),p(!1));return}let i=await Promise.all(s.map(async e=>{let s;try{let r=await t.manifest.getByReference(e.handler.yamlKind,e.org,e.slug);s=null!==r?"update":"create"}catch{s="unknown"}return{document:e,action:s,status:"pending"}}));w.current===e&&(l(i),u(null),p(!1))},500);return()=>clearTimeout(s)},[r,t,f]);let j=(0,s.useCallback)(async()=>{if(!n||0===n.length)return[];w.current++,x(!0);let e=n.map(e=>({...e,status:"pending"})),s=()=>l([...e]),r=!1;for(let i=0;i<e.length;i++){if(r){e[i]={...e[i],status:"skipped"};continue}e[i]={...e[i],status:"applying"},s();try{let s=await t.manifest.apply(e[i].document);e[i]={...e[i],status:"applied",result:s}}catch(t){e[i]={...e[i],status:"failed",errorMessage:(0,d.toError)(t).message},r=!0}s()}return s(),x(!1),e},[n,t]),k=(0,s.useMemo)(()=>(0,o.containsRedactedSecrets)(r),[r]);return(0,s.useMemo)(()=>({content:r,setContent:b,readFile:y,entries:n,validationError:a,isValidating:m,hasRedactedSecrets:k,applyAll:j,isApplying:f,reset:v}),[r,b,y,n,a,m,k,j,f,v])}(x),{reset:w}=v;(0,s.useEffect)(()=>{e&&(w(),y.current&&(y.current.value=""))},[e,w]);let j=(0,s.useCallback)(()=>{f(!1);let e=(v.entries??[]).filter(e=>"applied"===e.status);e.length>0&&h?.(e)},[f,v.entries,h]),k=(0,s.useCallback)(e=>{e||j()},[j]),N=(0,s.useCallback)(e=>{let t=e.target.files?.[0];t&&v.readFile(t)},[v]),C=(0,s.useCallback)(async()=>{let e=await v.applyAll(),t=e.filter(e=>"applied"===e.status);e.length>0&&t.length===e.length&&(l.toast.success(1===t.length?"Resource applied":`${t.length} resources applied`),f(!1),h?.(t))},[v,f,h]),A=null!==v.entries&&v.entries.length>0&&!v.isValidating&&!v.isApplying;return(0,t.jsx)(i.DialogShell,{open:e,onOpenChange:k,width:"3xl","aria-label":"Apply YAML",children:(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-4 stg:p-6",children:[(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-1",children:[(0,t.jsx)("h3",{className:"stg:text-base stg:font-semibold stg:text-foreground",children:"Apply YAML"}),(0,t.jsx)("p",{className:"stg:text-sm stg:text-muted-foreground",children:"Paste a resource manifest or upload a file. Resources are created when new and updated when they already exist."})]}),(0,t.jsx)("input",{ref:y,type:"file",accept:".yaml,.yml,.json",onChange:N,className:(0,r.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-3 stg:py-2 stg:text-sm stg:text-foreground","stg:file:mr-3 stg:file:rounded-md stg:file:border-0 stg:file:bg-primary stg:file:px-2.5 stg:file:py-1 stg:file:text-xs stg:file:font-medium stg:file:text-primary-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),"aria-label":"Select manifest file"}),(0,t.jsx)(s.Suspense,{fallback:(0,t.jsx)(m,{}),children:(0,t.jsx)(u,{value:v.content,onChange:v.setContent,className:"stg:h-56"})}),v.hasRedactedSecrets&&(0,t.jsx)(a.RedactedSecretsNotice,{}),v.validationError&&(0,t.jsx)("div",{role:"alert",className:"stg:rounded-md stg:border stg:border-destructive stg:bg-card stg:px-3 stg:py-2.5 stg:text-sm stg:text-destructive",children:v.validationError}),v.entries&&v.entries.length>0&&(0,t.jsx)("ul",{className:(0,r.cn)(n.UNSTYLED_LIST,"stg:flex stg:max-h-48 stg:flex-col stg:gap-2 stg:overflow-y-auto"),"aria-label":"Resources to apply",children:v.entries.map((e,s)=>(0,t.jsx)(p,{entry:e},`${e.document.handler.yamlKind}/${e.document.org}/${e.document.slug}/${s}`))}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-between stg:gap-3",children:[(0,t.jsx)("p",{className:"stg:text-xs stg:text-muted-foreground","aria-live":"polite",children:v.isValidating?"Validating…":""}),(0,t.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:j,disabled:v.isApplying,className:(0,r.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium stg:transition-colors","stg:border stg:border-input stg:bg-background stg:text-foreground","stg:hover:bg-accent stg:hover:text-accent-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:"Cancel"}),(0,t.jsx)("button",{type:"button",onClick:C,disabled:!A,className:(0,r.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium stg:transition-colors","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:v.isApplying?"Applying…":(b=v.entries?.length??0)<=1?"Apply":`Apply ${b} resources`})]})]})]})})}],658653)},569074,e=>{"use strict";let t=(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,t],569074)},566338,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(522016);let i=(0,e.i(475254).default)("git-branch",[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]);var n=e.i(541071),l=e.i(174886),a=e.i(778917),o=e.i(727612),c=e.i(107233),g=e.i(569074),d=e.i(451241),u=e.i(940069),m=e.i(610008),p=e.i(845132),f=e.i(658653),x=e.i(586108),h=e.i(297629),b=e.i(966205),y=e.i(10337),v=e.i(846696);let w=[{id:"name",header:"Name",cell:e=>(0,t.jsx)("span",{className:"font-medium text-foreground",children:e.name||e.slug}),sortable:!0,flex:2},{id:"org",header:"Organization",cell:e=>(0,t.jsx)("span",{className:"text-muted-foreground",children:e.org}),flex:1},{id:"description",header:"Description",cell:e=>(0,t.jsx)("span",{className:"line-clamp-1 text-muted-foreground",children:e.description||"—"}),flex:3}];e.s(["WorkflowListPage",0,function(){let e=(0,h.useActiveOrgSlug)(),j=(0,x.useStigmer)(),{navigateToDetail:k}=(0,d.useLibraryNavigation)(),{confirmState:N,confirm:C,handleConfirm:A,handleCancel:S}=(0,b.useConfirmAction)(),[M,T]=(0,s.useState)(()=>(0,u.readPersistedScope)("workflows")),[P,R]=(0,s.useState)(!1),[$,z]=(0,s.useReducer)(e=>e+1,0),D="/library/workflows/new",L=(0,s.useCallback)(async e=>{if(await C({title:`Delete ${e.name||e.slug}?`,description:"This permanently removes the workflow and all of its instances. Past executions are preserved in the execution history. This action cannot be undone.",confirmLabel:"Delete",variant:"destructive"}))try{await j.workflow.delete(e.id),v.toast.success(`${e.name||e.slug} deleted`),z()}catch{v.toast.error("Failed to delete workflow")}},[C,j]),E=(0,s.useCallback)(e=>{T(e),(0,u.writePersistedScope)("workflows",e)},[]),I=(0,s.useMemo)(()=>e=>j.workflow.list(e),[j]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsx)("h1",{className:"text-xl font-semibold text-foreground",children:"Workflows"}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:"Browse and manage multi-step orchestration workflows."})]}),(0,t.jsx)(m.ResourceWorkbench,{refetchToken:$,listFn:I,org:e,columns:w,scope:M,onScopeChange:E,defaultViewMode:"cards",viewModes:["table","cards"],viewModeStorageKey:"stigmer:workbench:workflows:viewMode",searchPlaceholder:"Search workflows…",emptyIcon:(0,t.jsx)(i,{className:"size-10","aria-hidden":"true"}),emptyTitle:"No workflows yet",emptyDescription:"Workflows define multi-step orchestration for agents. Create one to get started.",headerAction:(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("button",{type:"button",onClick:()=>R(!0),"aria-label":"Apply YAML",className:"inline-flex items-center justify-center rounded-md border border-input bg-background p-1.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:(0,t.jsx)(g.Upload,{className:"size-3.5","aria-hidden":"true"})}),(0,t.jsxs)(r.default,{href:D,className:"inline-flex items-center gap-1.5 rounded-md bg-primary px-3 py-1.5 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,t.jsx)(c.Plus,{className:"size-3.5","aria-hidden":"true"}),"Create workflow"]})]}),emptyAction:(0,t.jsxs)(r.default,{href:D,className:"inline-flex items-center gap-1.5 rounded-md bg-primary px-3 py-1.5 text-xs font-medium text-primary-foreground transition-colors hover:bg-primary-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,t.jsx)(c.Plus,{className:"size-3.5","aria-hidden":"true"}),"Create workflow"]}),onItemClick:e=>k("workflows",e.org,e.slug),renderItemAction:e=>(0,t.jsx)("div",{onClick:e=>e.stopPropagation(),children:(0,t.jsxs)(p.ActionMenu,{children:[(0,t.jsx)(p.ActionMenu.Trigger,{"aria-label":`Actions for ${e.name||e.slug}`,children:(0,t.jsx)(n.MoreHorizontal,{className:"size-4"})}),(0,t.jsxs)(p.ActionMenu.Content,{children:[(0,t.jsx)(p.ActionMenu.Item,{icon:(0,t.jsx)(a.ExternalLink,{className:"size-4"}),onSelect:()=>k("workflows",e.org,e.slug),children:"View details"}),(0,t.jsx)(p.ActionMenu.Item,{icon:(0,t.jsx)(l.Copy,{className:"size-4"}),onSelect:()=>{navigator.clipboard.writeText(`${e.org}/${e.slug}`),v.toast.success("Copied workflow reference")},children:"Copy reference"}),(0,t.jsx)(p.ActionMenu.Separator,{}),(0,t.jsx)(p.ActionMenu.Item,{icon:(0,t.jsx)(o.Trash2,{className:"size-4"}),variant:"destructive",onSelect:()=>L(e),children:"Delete"})]})]})}),"aria-label":"Workflow workbench"}),(0,t.jsx)(f.ApplyManifestDialog,{open:P,onOpenChange:R,org:e??"",onApplied:z}),(0,t.jsx)(y.ConfirmDialog,{state:N,onConfirm:A,onCancel:S})]})}],566338)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,27805,e=>{"use strict";var t,r,n,s,i=e.i(843476),a=e.i(271645),o=e.i(618566),l=e.i(893976);let c="stigmer",d=/^https?:\/\/(?:www\.)?github\.com\/([^/\s]+)\/([^/\s#?]+?)(?:\.git)?(?:\/tree\/([^\s#?]+))?\/?$/;function u(e){let t=d.exec(e);if(null!==t){let r=`${t[1]??""}/${t[2]??""}`;if(!f(r))return{ok:!1,message:`'${e}' does not name a GitHub repository`};let n=t[3];return{ok:!0,source:{type:"github",repo:r,...void 0!==n&&""!==n&&{ref:n}}}}let r=e.indexOf("@"),n=-1===r?e:e.slice(0,r),s=-1===r?void 0:e.slice(r+1);return f(n)&&(void 0===s||""!==s)?{ok:!0,source:{type:"github",repo:n,...void 0!==s&&{ref:s}}}:{ok:!1,message:`'${e}' is not a GitHub 'owner/repo'`}}function p(e){return void 0===e.ref?`github.com/${e.repo}`:`github.com/${e.repo}@${e.ref}`}let h=/^[A-Za-z0-9][A-Za-z0-9._-]*$/;function f(e){let t=e.split("/");return 2===t.length&&t.every(e=>h.test(e)&&"."!==e&&".."!==e)}var m=e.i(65642),g=e.i(476007),v=e.i(869803),b=e.i(933221),$=e.i(379410),w=e.i(927056),y=e.i(57330),j=e.i(468806);let k="https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",x="https://agent-plugins.org/schemas/1.0.0/mcp.schema.json",S={"agent-plugins":"plugin.json",claude:".claude-plugin/plugin.json",cursor:".cursor-plugin/plugin.json",codex:".codex-plugin/plugin.json"},N=e=>`'${e??""}'`,C=e=>void 0===e?"":` in ${N(e)}`,M={"no-manifest":()=>`no plugin manifest found: expected one of ${Object.values(S).map(e=>N(e)).join(", ")}`,"manifest-unreadable":e=>`manifest ${N(e.path)} is not valid JSON: ${e.detail??"parse error"}`,"manifest-schema-missing":e=>`manifest ${N(e.path)} is missing the required '$schema' field; an Agent Plugins manifest declares ${N(k)}`,"manifest-schema-unsupported":e=>`manifest ${N(e.path)} declares an unsupported '$schema' ${N(e.detail)}; this reader supports ${N(k)}`,"manifest-name-missing":e=>`manifest ${N(e.path)} is missing the required 'name' field`,"manifest-name-invalid":e=>`plugin name ${N(e.subject)}${C(e.path)} is invalid: 1 to 64 characters of lowercase letters, digits, hyphens and periods, starting and ending alphanumeric, with no '--' or '..'`,"manifest-name-conflict":e=>`manifests disagree on the plugin name: ${N(e.subject)} in ${N(e.path)} versus ${e.detail??"another manifest"}`,"manifest-field-type":e=>`field ${N(e.subject)}${C(e.path)} has the wrong type: expected ${e.detail??"a different type"}`,"path-not-relative":e=>`path ${N(e.subject)}${C(e.path)} must be plugin-relative and begin with './'`,"path-escapes-root":e=>`path ${N(e.subject)}${C(e.path)} escapes the plugin root`,"path-glob-unsupported":e=>`path ${N(e.subject)}${C(e.path)} is a glob pattern; declare directories and files by path`,"path-uncontained":e=>`the reader listed a path outside the plugin root: ${N(e.path)}`,"document-too-large":e=>`${N(e.path)} is ${e.subject??"too many"} bytes, over the ${e.detail??""}-byte limit for this kind of document`,"skill-frontmatter-missing":e=>`${N(e.path)} must start with YAML frontmatter ('---')`,"skill-frontmatter-unclosed":e=>`${N(e.path)} frontmatter is not closed (missing the closing '---')`,"skill-frontmatter-unreadable":e=>`${N(e.path)} frontmatter is not valid YAML: ${e.detail??"parse error"}`,"skill-name-invalid":e=>`skill name ${N(e.subject)}${C(e.path)} is invalid: lowercase letters, digits and hyphens, optionally dot-scoped, with every segment alphanumeric`,"skill-name-duplicate":e=>`skill name ${N(e.subject)} appears more than once (again${C(e.path)})`,"mcp-config-unreadable":e=>`MCP configuration ${N(e.path)} is not valid JSON: ${e.detail??"parse error"}`,"mcp-config-shape":e=>`MCP configuration ${N(e.path)} must be an object with an 'mcpServers' object`,"mcp-config-schema-missing":e=>`MCP configuration ${N(e.path)} is missing the required '$schema' field; an Agent Plugins configuration declares ${N(x)}`,"mcp-config-schema-unsupported":e=>`MCP configuration ${N(e.path)} declares an unsupported '$schema' ${N(e.detail)}; this reader supports ${N(x)}`,"mcp-config-field-unknown":e=>`MCP configuration ${N(e.path)} has an unexpected top-level field ${N(e.subject)}; only '$schema' and 'mcpServers' are allowed`,"mcp-server-shape":e=>`MCP server ${N(e.subject)}${C(e.path)} must be an object`,"mcp-server-type-missing":e=>`MCP server ${N(e.subject)}${C(e.path)} is missing the 'type' field the Agent Plugins format requires ('stdio', 'streamable-http' or 'sse')`,"mcp-server-transport-unknown":e=>`MCP server ${N(e.subject)}${C(e.path)} has no 'type' and neither a 'command' nor a 'url' to infer it from`,"mcp-server-type-ambiguous":e=>`MCP server ${N(e.subject)}${C(e.path)} declares both 'command' and 'url'; a server is either stdio or HTTP`,"mcp-server-type-unknown":e=>`MCP server ${N(e.subject)}${C(e.path)} has an unknown 'type' ${N(e.detail)}; expected 'stdio', 'http', 'streamable-http' or 'sse'`,"mcp-server-field-unknown":e=>`MCP server ${N(e.subject)}${C(e.path)} has a field ${N(e.detail)} that its transport does not define`,"mcp-server-field-type":e=>`MCP server ${N(e.subject)}${C(e.path)} field ${N(e.detail)} has the wrong type`,"mcp-server-url-missing":e=>`MCP server ${N(e.subject)}${C(e.path)} is missing the 'url' its HTTP transport requires`,"mcp-server-url-invalid":e=>`MCP server ${N(e.subject)}${C(e.path)} has an invalid 'url' ${N(e.detail)}: expected an absolute HTTPS URL (HTTP only for localhost) with no user information or fragment`,"mcp-server-url-variable":e=>`MCP server ${N(e.subject)}${C(e.path)} has a variable in its 'url'; Stigmer sends the URL as written, so write the URL out and put variables in 'headers'`,"mcp-server-command-missing":e=>`MCP server ${N(e.subject)}${C(e.path)} is missing the 'command' its stdio transport requires`,"mcp-server-command-invalid":e=>`MCP server ${N(e.subject)}${C(e.path)} has a 'command' that is not a single executable name; put arguments in 'args'`,"mcp-server-command-relative":e=>`MCP server ${N(e.subject)}${C(e.path)} runs a command bundled in the plugin ${N(e.detail)}; Stigmer runs only commands on the runner's PATH (for example 'npx' or 'uvx')`,"mcp-server-plugin-root-reference":e=>`MCP server ${N(e.subject)}${C(e.path)} references the plugin's own files through ${N(e.detail)}; Stigmer does not mount plugin files into the runner`,"mcp-server-cwd-unsupported":e=>`MCP server ${N(e.subject)}${C(e.path)} sets a working directory; Stigmer does not mount plugin files, so a bundled directory cannot be reached`,"mcp-server-env-literal":e=>`MCP server ${N(e.subject)}${C(e.path)} sets environment variable ${N(e.detail)} to a literal value; Stigmer passes declared variables by name, so write ${N(`${e.detail??"KEY"}: "\${${e.detail??"KEY"}}"`)} and declare the variable`,"mcp-server-env-rename":e=>`MCP server ${N(e.subject)}${C(e.path)} maps environment variable ${N(e.detail)} to a differently named variable; Stigmer passes declared variables by name, so use the same name on both sides`,"mcp-server-name-duplicate":e=>`MCP server name ${N(e.subject)} appears more than once (again${C(e.path)})`,"mcp-server-header-duplicate":e=>`MCP server ${N(e.subject)}${C(e.path)} declares header ${N(e.detail)} more than once (header names are case-insensitive)`,"mcp-server-header-invalid":e=>`MCP server ${N(e.subject)}${C(e.path)} has an invalid header name ${N(e.detail)}`,"sub-agent-frontmatter-unreadable":e=>`${N(e.path)} frontmatter is not valid YAML: ${e.detail??"parse error"}`,"sub-agent-instructions-short":e=>`sub-agent ${N(e.subject)}${C(e.path)} has instructions under ${e.detail??""} characters; the body of the file is the sub-agent's prompt`,"sub-agent-name-duplicate":e=>`sub-agent name ${N(e.subject)} appears more than once (again${C(e.path)})`,"variable-name-invalid":e=>`variable name ${N(e.subject)}${C(e.path)} is invalid: an environment variable name is letters, digits and underscores, not starting with a digit`,"overlay-server-unknown":e=>`${N(e.path)} overlays MCP server ${N(e.subject)}, which the plugin does not declare`,"overlay-document-unknown":e=>`${N(e.path)} is not a document Stigmer reads; the 'ai.stigmer/' folder holds 'agent.yaml', 'workflows/<name>.yaml' and 'mcp-servers/<server>.yaml'`},P={"manifest-field-unknown":e=>`manifest ${N(e.path)} has an unknown field ${N(e.subject)}, ignored`,"manifest-extensions-invalid":e=>`manifest ${N(e.path)} has an 'extensions' field that is not an object, ignored`,"path-missing":e=>`path ${N(e.subject)} declared${C(e.path)} does not exist in the plugin`,"skill-name-defaulted":e=>`${N(e.path)} has no 'name' in its frontmatter; the skill is named after its directory, ${N(e.subject)}`,"skill-name-differs-from-directory":e=>`skill ${N(e.subject)}${C(e.path)} is named differently from its directory ${N(e.detail)}`,"skill-description-missing":e=>`skill ${N(e.subject)}${C(e.path)} has no 'description'`,"mcp-config-field-ignored":e=>`MCP configuration ${N(e.path)} has a top-level field ${N(e.subject)} Stigmer does not read, ignored`,"mcp-server-sse-mapped":e=>`MCP server ${N(e.subject)}${C(e.path)} declares the legacy 'sse' transport; Stigmer connects over Streamable HTTP and falls back to SSE only when the server rejects it`,"mcp-server-field-ignored":e=>`MCP server ${N(e.subject)}${C(e.path)} has a field ${N(e.detail)} Stigmer does not read, ignored`,"mcp-server-auth-ignored":e=>`MCP server ${N(e.subject)}${C(e.path)} has an 'auth' block Stigmer does not read; OAuth for a server is declared in 'ai.stigmer/mcp-servers/${e.subject??"<server>"}.yaml'`,"variable-inferred":e=>`variable ${N(e.subject)} is referenced by MCP server ${N(e.detail)} but not declared; it is declared as a required secret`,"variable-unreferenced":e=>`variable ${N(e.subject)}${C(e.path)} is declared but no MCP server references it`,"variable-default-dropped":e=>`variable ${N(e.subject)}${C(e.path)} has a default value, which Stigmer does not carry; the user supplies the value`,"variable-type-narrowed":e=>`variable ${N(e.subject)}${C(e.path)} is typed ${N(e.detail)}; Stigmer variables are strings`,"variable-option-dropped":e=>`variable ${N(e.subject)}${C(e.path)} has a ${N(e.detail)} constraint, which Stigmer does not carry`,"sub-agent-name-defaulted":e=>`${N(e.path)} has no 'name' in its frontmatter; the sub-agent is named after the file, ${N(e.subject)}`,"sub-agent-skill-unknown":e=>`sub-agent ${N(e.subject)}${C(e.path)} asks for skill ${N(e.detail)}, which the plugin does not ship`,"sub-agent-model-unknown":e=>`sub-agent ${N(e.subject)}${C(e.path)} names model ${N(e.detail)}, which Stigmer cannot map; the sub-agent runs on the session's model`,"sub-agent-field-ignored":e=>`sub-agent ${N(e.subject)}${C(e.path)} has a field ${N(e.detail)} Stigmer does not read, ignored`};class A{errorSentences;warningSentences;errors=[];warnings=[];constructor(e,t){this.errorSentences=e,this.warningSentences=t}error(e,t={}){this.errors.push(E(e,t,this.errorSentences[e](t)))}warn(e,t={}){this.warnings.push(E(e,t,this.warningSentences[e](t)))}}class I extends A{constructor(){super(M,P)}}function E(e,t,r){return{kind:e,...void 0!==t.path&&{path:t.path},...void 0!==t.subject&&{subject:t.subject},...void 0!==t.detail&&{detail:t.detail},message:r}}let T={stigmer:"marketplace.json",claude:".claude-plugin/marketplace.json",cursor:".cursor-plugin/marketplace.json",codex:".agents/plugins/marketplace.json"},_=Object.values(T).map(e=>N(e)).join(", "),z={"marketplace-not-found":()=>`no marketplace file found: expected one of ${_}`,"marketplace-too-large":e=>`${N(e.path)} is ${e.subject??""} bytes, above the ${e.detail??""} byte cap for a marketplace file`,"marketplace-unreadable":e=>`${N(e.path)} is not a readable marketplace file: ${e.detail??"parse error"}`,"marketplace-field-type":e=>`${N(e.path)} field ${N(e.subject)} must be ${e.detail??"of another type"}`,"marketplace-name-missing":e=>`${N(e.path)} has no 'name'; a marketplace needs one so its plugins can be addressed as '<marketplace>/<plugin>'`,"marketplace-name-invalid":e=>`${N(e.path)} name ${N(e.subject)} is invalid: 1 to 64 characters of a-z, 0-9, '-' and '.', starting and ending alphanumeric, no '--' or '..'`,"marketplace-plugins-missing":e=>`${N(e.path)} has no 'plugins' list`,"entry-shape":e=>`${N(e.path)} plugins[${e.subject??""}] must be an object with 'name' and 'source'`,"entry-name-missing":e=>`${N(e.path)} plugins[${e.subject??""}] has no 'name'`,"entry-name-invalid":e=>`${N(e.path)} plugin ${N(e.subject)} has an invalid name: 1 to 64 characters of a-z, 0-9, '-' and '.', starting and ending alphanumeric, no '--' or '..'`,"entry-name-duplicate":e=>`${N(e.path)} lists plugin ${N(e.subject)} more than once; 'install ${e.subject??""}' would be ambiguous`,"entry-source-missing":e=>`${N(e.path)} plugin ${N(e.subject)} has no 'source'`,"entry-source-escapes-root":e=>`${N(e.path)} plugin ${N(e.subject)} has source ${N(e.detail)} outside the marketplace root; a source is a directory inside the marketplace`,"default-unknown":e=>`${N(e.path)} names ${N(e.subject)} as a default but lists no plugin of that name`},O={"entry-source-unsupported":e=>`plugin ${N(e.subject)}${C(e.path)} has source ${N(e.detail)}, a form Stigmer does not fetch (only a directory inside the marketplace); not offered`,"entry-directory-missing":e=>`plugin ${N(e.subject)}${C(e.path)} names directory ${N(e.detail)}, which the marketplace does not contain; not offered`,"entry-not-a-plugin":e=>`plugin ${N(e.subject)}${C(e.path)} names directory ${N(e.detail)}, which holds no plugin manifest; not offered`};class D extends A{constructor(){super(z,O)}}let L={manifest:262144,mcpConfig:262144,skillMd:1048576,subAgent:1048576,overlay:1048576,marketplace:1048576};new TextEncoder;let U=new TextDecoder("utf-8",{fatal:!1});function R(e,t){return e<t?-1:+(e>t)}function F(e){let t=U.decode(e);return 65279===t.charCodeAt(0)?t.slice(1):t}function G(e){return!(""===e||e.startsWith("/")||e.includes("\\"))&&e.split("/").every(e=>""!==e&&"."!==e&&".."!==e)}let B=/[*?[\]{}]/;function W(e){if(B.test(e))return{ok:!1,kind:"path-glob-unsupported"};if("."===e||"./"===e)return{ok:!0,path:""};if(!e.startsWith("./"))return{ok:!1,kind:"path-not-relative"};let t=e.slice(2).replace(/\/+$/,"");return""===t?{ok:!0,path:""}:G(t)?{ok:!0,path:t}:{ok:!1,kind:"path-escapes-root"}}function H(e,t){return""===e?t:`${e}/${t}`}function J(e){let t=e.lastIndexOf("/");return -1===t?e:e.slice(t+1)}function q(e){let t=e.lastIndexOf("/");return -1===t?"":e.slice(0,t)}class Z{files;byPath;constructor(e){this.files=e,this.byPath=new Map(e.entries.map(e=>[e.path,e]))}has(e){return this.byPath.has(e)}entry(e){return this.byPath.get(e)}filesUnder(e){if(""===e)return this.files.entries.map(e=>e.path);let t=`${e}/`;return this.files.entries.filter(e=>e.path.startsWith(t)).map(e=>e.path)}isDirectory(e){if(""===e)return this.files.entries.length>0;let t=`${e}/`;return this.files.entries.some(e=>e.path.startsWith(t))}childDirectories(e){let t=""===e?"":`${e}/`,r=new Set;for(let e of this.files.entries){if(!e.path.startsWith(t))continue;let n=e.path.slice(t.length),s=n.indexOf("/");-1!==s&&r.add(n.slice(0,s))}return[...r].sort(R)}childFiles(e){let t=""===e?"":`${e}/`,r=[];for(let e of this.files.entries){if(!e.path.startsWith(t))continue;let n=e.path.slice(t.length);n.includes("/")||r.push(n)}return r.sort(R)}}function Y(e,t,r,n){let s=V(e,t,r,n);return void 0===s?void 0:F(s)}function V(e,t,r,n){let s=L[r],i=e.entry(t);if(void 0===i)throw Error(`plugin file '${t}' is not listed`);if(i.size>s)return void n.error("document-too-large",{path:t,subject:String(i.size),detail:String(s)});let a=e.files.read(t);return a.length>s?void n.error("document-too-large",{path:t,subject:String(a.length),detail:String(s)}):a}function K(e,t,r,n){let s;try{s=JSON.parse(e)}catch(e){n.error(r,{path:t,detail:e instanceof Error?e.message:String(e)});return}return Q(s)?s:void n.error(r,{path:t,detail:"the document is not a JSON object"})}function Q(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function X(e){return Array.isArray(e)&&e.every(e=>"string"==typeof e)}function ee(e){return Q(e)&&Object.values(e).every(e=>"string"==typeof e)}function et(e){return"string"==typeof e?e:JSON.stringify(e)}function er(e){return Object.entries(e)}function en(e,t,r,n){let s=e[t];if(void 0!==s)return"string"!=typeof s?void n.error("manifest-field-type",{path:r,subject:t,detail:"a string"}):s}function es(e,t,r,n){for(let[s]of er(e))t.has(s)||n.warn("manifest-field-unknown",{path:r,subject:s})}function ei(e,t,r){let n={},s=en(e,"name",t,r);void 0!==s&&(n.name=s);let i=en(e,"version",t,r);void 0!==i&&(n.version=i);let a=en(e,"description",t,r);void 0!==a&&(n.description=a);let o=en(e,"homepage",t,r);void 0!==o&&(n.homepage=o);let l=en(e,"repository",t,r);void 0!==l&&(n.repository=l);let c=en(e,"license",t,r);void 0!==c&&(n.license=c);let d=function(e,t,r,n){let s=e[t];if(void 0!==s)return X(s)?s:void n.error("manifest-field-type",{path:r,subject:t,detail:"an array of strings"})}(e,"keywords",t,r);void 0!==d&&(n.keywords=d);let u=function(e,t,r){let n=e.author;if(void 0===n)return;if(!Q(n))return void r.error("manifest-field-type",{path:t,subject:"author",detail:"an object"});let s={},i=en(n,"name",t,r);void 0!==i&&(s.name=i);let a=en(n,"email",t,r);void 0!==a&&(s.email=a);let o=en(n,"url",t,r);return void 0!==o&&(s.url=o),s}(e,t,r);return void 0!==u&&(n.author=u),n}function ea(e,t,r,n){let s=function(e,t,r,n){let s=e[t];if(void 0!==s){if("string"==typeof s)return[s];if(X(s))return s;n.error("manifest-field-type",{path:r,subject:t,detail:"a string or an array of strings"})}}(e,t,r,n);if(void 0===s)return;let i=[];for(let e of s){let t=W(e);if(!t.ok){n.error(t.kind,{path:r,subject:e});continue}i.push({path:t.path,manifest:r})}return i}function eo(e,t,r,n,s){let i=e[t];if(void 0===i)return[];let a=Array.isArray(i)?i:[i],o=[];for(let e of a)if("string"==typeof e){let t=W(e);if(!t.ok){s.error(t.kind,{path:r,subject:e});continue}o.push({kind:"file",path:t.path,dialect:n,manifest:r})}else Q(e)?o.push({kind:"inline",manifest:r,servers:e,dialect:n}):s.error("manifest-field-type",{path:r,subject:t,detail:"a path, an object, or an array of either"});return o}let el={hooks:"hooks",rules:"rules",commands:"commands",workflows:"workflows",outputStyles:"output-styles",lspServers:"lsp-servers",channels:"channels",dependencies:"dependencies",defaultEnabled:"default-enabled",minClientVersions:"min-client-versions",logo:"logo",apps:"apps"};function ec(e,t){let r=[];for(let[n,s]of er(e)){let e=el[n];if(void 0!==e&&r.push({kind:e,path:`${t}#${n}`}),"experimental"===n&&Q(s))for(let[e]of er(s)){let n=ed[e];void 0!==n&&r.push({kind:n,path:`${t}#experimental.${e}`})}}return r}let ed={themes:"themes",monitors:"monitors",evals:"evals"},eu=new Set(["name","version","description","author","homepage","repository","license","keywords","skills","commands","agents","workflows","hooks","mcpServers","outputStyles","lspServers","experimental","userConfig","channels","dependencies","defaultEnabled"]),ep=".mcp.json";function eh(e,t,r,n,s){es(e,n,t,s);let i=ei(e,t,s),a=ea(e,"skills",t,s)??[],o=ea(e,"agents",t,s),l=eo(e,"mcpServers",t,r,s),c={dialect:r,path:t,identity:i,skillPaths:a,mcpConfigs:l,ignored:ec(e,t)};return void 0!==o&&(c.agentPaths=o),void 0!==e.userConfig&&(c.variables={dialect:"claude",value:e.userConfig,manifest:t}),c}let ef=new Set([...eu,"apps","interface"]),em=new Set(["name","displayName","description","version","minClientVersions","author","publisher","homepage","repository","license","logo","keywords","category","tags","commands","agents","skills","rules","hooks","variables","mcpServers"]),eg=new Set(["$schema","name","version","description","author","homepage","repository","license","keywords","extensions"]),ev="mcp.json",eb=["claude","cursor","codex"],e$=/^[a-z0-9]([a-z0-9.-]*[a-z0-9])?$/;function ew(e){return e.length<=64&&e$.test(e)&&!e.includes("--")&&!e.includes("..")}let ey=["stigmer","claude","cursor","codex"];function ej(e){return{ok:!1,errors:e.errors,warnings:e.warnings}}function ek(e,t){let r=e[t];return"string"==typeof r?r:void 0}function ex(e){let t=e;return"."===t||"./"===t||(t.startsWith("./")&&(t=t.slice(2)),""===(t=t.replace(/\/+$/,"")))?{ok:!0,dir:""}:G(t)?{ok:!0,dir:t}:{ok:!1}}let eS={rules:"rules",hooks:"hooks",commands:"commands",canvases:"canvases",workflows:"workflows","output-styles":"output-styles",themes:"themes",monitors:"monitors",bin:"bin",assets:"assets",evals:"evals"},eN={".lsp.json":"lsp-servers","settings.json":"settings",".app.json":"apps"},eC=/\$\{([A-Za-z_][A-Za-z0-9_]*)\}/g,eM=/^[A-Za-z_][A-Za-z0-9_]*$/,eP=/\$\{user_config\.([A-Za-z_][A-Za-z0-9_]*)\}/g,eA=new Set(["${PLUGIN_ROOT}","${PLUGIN_DATA}","${CLAUDE_PLUGIN_ROOT}","${CLAUDE_PLUGIN_DATA}","${CLAUDE_PROJECT_DIR}","${CURSOR_PLUGIN_ROOT}"]),eI=new Set(["PLUGIN_ROOT","PLUGIN_DATA"]);function eE(e){return e.replace(eP,(e,t)=>`\${${t}}`)}function eT(e){for(let t of eA)if(e.includes(t))return t}function e_(e){let t=[];for(let r of e.matchAll(eC)){let e=r[1];void 0===e||t.includes(e)||t.push(e)}return t}let ez=new Set(["$schema","mcpServers"]),eO=new Set(["type","command","args","env","cwd"]),eD=new Set(["type","url","headers"]),eL=new Set(["type","command","args","env","cwd"]),eU=new Set(["type","url","headers"]),eR=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;function eF(e,t){for(let r of e_(e))t.add(r)}let eG="ai.stigmer",eB=`${eG}/agent.yaml`,eW=`${eG}/workflows`,eH=`${eG}/mcp-servers`;e.i(222258);var eJ=e.i(967785);let eq=/^[a-z0-9]+([.-][a-z0-9]+)*$/;function eZ(e){let t=e.split(/\r?\n/);if(0===t.length||t[0]?.trim()!=="---")return{ok:!1,reason:"missing"};for(let e=1;e<t.length;e++)if(t[e]?.trim()==="---")return{ok:!0,yaml:t.slice(1,e).join("\n"),body:t.slice(e+1).join("\n")};return{ok:!1,reason:"unclosed"}}function eY(e){let t;try{t=(0,eJ.parse)(e)}catch(e){return{ok:!1,detail:e instanceof Error?e.message:String(e)}}return null==t?{ok:!0,fields:{}}:Q(t)?{ok:!0,fields:t}:{ok:!1,detail:"the frontmatter is not a mapping"}}let eV="SKILL.md",eK="skills",eQ=new Set(["name","description","model","skills"]);function eX(e){let t=[e.title,e.description].filter(e=>"string"==typeof e&&""!==e);return 0===t.length?void 0:t.join(": ")}var e0=e.i(229969);let e1=new Date(1980,0,1);async function e2(e){return Array.from(new Uint8Array(await globalThis.crypto.subtle.digest("SHA-256",e)),e=>e.toString(16).padStart(2,"0")).join("")}let e4=[".git/",".svn/",".hg/",".bzr/",".env",".env.*","!.env.example","!.env.template","!.env.sample","*.pem","*.key","*.p12","*.pfx","*.keystore","*.jks","id_rsa","id_rsa.*","id_ed25519","id_ed25519.*","id_dsa","id_dsa.*","credentials.json","service-account*.json","gcp-credentials*.json","aws-credentials",".aws/credentials",".aws/config",".secrets",".secrets/","*.secret",".credentials/","secrets.yaml","secrets.yml","secrets.json",".npmrc",".pypirc",".gem/credentials",".docker/config.json",".idea/",".vscode/","*.swp","*.swo","*.swn","*~",".project",".classpath",".settings/","*.sublime-workspace","*.sublime-project",".vs/",".DS_Store",".DS_Store?","._*",".Spotlight-V100",".Trashes","Thumbs.db","Thumbs.db:encryptable","desktop.ini","ehthumbs.db","ehthumbs_vista.db","node_modules/","npm-debug.log*","yarn-debug.log*","yarn-error.log*",".npm/",".yarn/cache/",".yarn/unplugged/",".pnp.*","__pycache__/","*.py[cod]","*$py.class",".Python","*.so",".venv/","venv/","env/","ENV/",".pytest_cache/",".mypy_cache/",".ruff_cache/",".tox/",".nox/","*.egg-info/",".eggs/","dist/","build/","develop-eggs/",".installed.cfg","*.manifest","*.spec","pip-log.txt","pip-delete-this-directory.txt","target/","*.class","*.jar","*.war","*.ear",".gradle/","gradle-app.setting",".gradletasknamecache","vendor/","target/","Cargo.lock","coverage/",".coverage","htmlcov/",".nyc_output/","coverage.xml","*.cover",".hypothesis/","*.log","logs/","tmp/","temp/","*.tmp","*.temp","*.bak","*.backup"];class e5 extends Error{}function e6(e,t){try{var r=e,n=t;e:for(;r.length>0;){let[e,t,s]=function(e){let t=!1;for(;e.length>0&&"*"===e[0];)e=e.slice(1),t=!0;let r=!1,n=0;t:for(n=0;n<e.length;n++)switch(e[n]){case"\\":n+1<e.length&&n++;break;case"[":r=!0;break;case"]":r=!1;break;case"*":if(!r)break t}return[t,e.slice(0,n),e.slice(n)]}(r);if(r=s,e&&""===t)return!n.includes("/");let[i,a]=e9(t,n);if(a&&(0===i.length||r.length>0)){n=i;continue}if(e)for(let e=0;e<n.length&&"/"!==n[e];e++){let[s,i]=e9(t,n.slice(e+1));if(i){if(0===r.length&&s.length>0)continue;n=s;continue e}}return!1}return 0===n.length}catch(e){if(e instanceof e5)return!1;throw e}}function e9(e,t){let r=!1;for(;e.length>0;){r||0!==t.length||(r=!0);let n=e[0];if("["===n){let n="";r||(n=t[0]??"",t=t.slice(1));let s=!1;(e=e.slice(1)).length>0&&"^"===e[0]&&(s=!0,e=e.slice(1));let i=!1,a=0;for(;;){let t;if(e.length>0&&"]"===e[0]&&a>0){e=e.slice(1);break}[t,e]=e8(e);let r=t;"-"===e[0]&&([r,e]=e8(e.slice(1))),t<=n&&n<=r&&(i=!0),a++}i===s&&(r=!0)}else if("?"===n)r||("/"===t[0]&&(r=!0),t=t.slice(1)),e=e.slice(1);else if("\\"===n){if(0===(e=e.slice(1)).length)throw new e5("bad pattern");r||(e[0]!==t[0]&&(r=!0),t=t.slice(1)),e=e.slice(1)}else r||(e[0]!==t[0]&&(r=!0),t=t.slice(1)),e=e.slice(1)}return r?["",!1]:[t,!0]}function e8(e){if(0===e.length||"-"===e[0]||"]"===e[0]||"\\"===e[0]&&0===(e=e.slice(1)).length)throw new e5("bad pattern");let t=e[0]??"",r=e.slice(1);if(0===r.length)throw new e5("bad pattern");return[t,r]}(t=n||(n={}))[t.NoMatch=0]="NoMatch",t[t.Exclude=1]="Exclude",t[t.Include=2]="Include";class e3{inclusion;domain;parts;dirOnly;isGlob;constructor(e,t,r,n,s){this.domain=e,this.parts=t,this.inclusion=r,this.dirOnly=n,this.isGlob=s}match(e,t){let r=this.inclusion?n.Include:n.Exclude;if(e.length<=this.domain.length)return n.NoMatch;for(let t=0;t<this.domain.length;t++)if(e[t]!==this.domain[t])return n.NoMatch;let s=e.slice(this.domain.length);return(this.isGlob?this.globMatch(s,t):this.simpleNameMatch(s,t))?r:n.NoMatch}simpleNameMatch(e,t){for(let r=0;r<e.length;r++)if(e6(this.parts[0]??"",e[r]??"")){if(this.dirOnly&&!t&&r===e.length-1)return!1;return!0}return!1}globMatch(e,t){let r=!1,n=!1,s=e;for(let e=0;e<this.parts.length;e++){let t=this.parts[e]??"";if(""===t){n=!1;continue}if("**"===t){if(e===this.parts.length-1)break;n=!0;continue}if(t.includes("**")||0===s.length)return!1;if(n)for(n=!1;;){if(0===s.length){r=!1;break}let e=s[0]??"";if(s=s.slice(1),e6(t,e)){r=!0;break}}else{if(!e6(t,s[0]??""))return!1;r=!0,s=s.slice(1)}}return r&&this.dirOnly&&!t&&0===s.length&&(r=!1),r}}let e7="defaults",te=".gitignore",tt=".stigmerignore";(r=s||(s={}))[r.NoMatch=0]="NoMatch",r[r.Excluded=1]="Excluded",r[r.Included=2]="Included",r[r.DefaultDeny=3]="DefaultDeny",s.NoMatch,s.Excluded,s.Included,s.DefaultDeny;class tr{entries;constructor(e){this.entries=e}matchWithReason(e,t){let r,i,a=""===(r=e.replace(/\\/g,"/").replace(/^\.\//,""))||"."===r?[]:r.split("/");if(0===a.length)return{ignored:!1,reason:s.NoMatch,source:"",pattern:""};let o=n.NoMatch;for(let e of this.entries){let r=e.pattern.match(a,t);r!==n.NoMatch&&(i=e,o=r)}return void 0===i?{ignored:!1,reason:s.NoMatch,source:"",pattern:""}:o===n.Exclude?{ignored:!0,reason:i.source===e7?s.DefaultDeny:s.Excluded,source:i.source,pattern:i.raw}:{ignored:!1,reason:s.Included,source:i.source,pattern:i.raw}}match(e,t){return this.matchWithReason(e,t).ignored}patterns(){return this.entries.map(e=>`[${e.source}] ${e.raw}`)}}function tn(e,t){let r=[];for(let n of e){let e=n.trim();""===e||e.startsWith("#")||r.push({pattern:function(e,t){let r=e,n=!1;r.startsWith("!")&&(n=!0,r=r.slice(1)),r.endsWith("\\ ")||(r=r.replace(/ +$/,""));let s=!1;r.endsWith("/")&&(s=!0,r=r.slice(0,-1));let i=r.includes("/");return new e3(t,r.split("/"),n,s,i)}(e,[]),source:t,raw:e})}return r}let ts=new TextDecoder;class ti extends Error{reason;constructor(e,t){super(e),this.reason=t,this.name="MarketplaceSourceError"}}class ta extends Error{subject;errors;warnings;constructor(e,t,r){super(`${e}: ${1===t.length?"1 problem":`${t.length} problems`} found`),this.subject=e,this.errors=t,this.warnings=r,this.name="PluginReadRefusal"}}async function to(e){let t=new Set(Object.values(T)),r=e.files.filter(e=>t.has(e.path)),n=new Map;await Promise.all(r.map(async t=>{n.set(t.path,await e.fetchFile(t.path))}));let s=function(e){var t,r,n;let s,i=new D,a=new Z(e),o=function(e){for(let t of ey){let r=T[t];if(e.has(r))return{dialect:t,path:r}}}(a);if(void 0===o)return i.error("marketplace-not-found"),ej(i);let{dialect:l,path:c}=o,d=function(e,t,r){let n,s=L.marketplace,i=e.entry(t);if(void 0===i)throw Error(`marketplace file '${t}' is not listed`);if(i.size>s)return void r.error("marketplace-too-large",{path:t,subject:String(i.size),detail:String(s)});let a=e.files.read(t);if(a.length>s)return void r.error("marketplace-too-large",{path:t,subject:String(a.length),detail:String(s)});try{n=JSON.parse(F(a))}catch(e){r.error("marketplace-unreadable",{path:t,detail:e instanceof Error?e.message:String(e)});return}return Q(n)?n:void r.error("marketplace-unreadable",{path:t,detail:"the document is not a JSON object"})}(a,c,i);if(void 0===d)return ej(i);let u=(t=d,r=c,n=i,void 0===(s=t.name)?void n.error("marketplace-name-missing",{path:r}):"string"!=typeof s?void n.error("marketplace-field-type",{path:r,subject:"name",detail:"a string"}):ew(s)?s:void n.error("marketplace-name-invalid",{path:r,subject:s})),p=function(e,t,r,n){let s=e.plugins;if(void 0===s)return n.error("marketplace-plugins-missing",{path:r}),[];if(!Array.isArray(s))return n.error("marketplace-field-type",{path:r,subject:"plugins",detail:"an array"}),[];let i="claude"===t?function(e){let t=e.metadata;if(!Q(t))return"";let r=ek(t,"pluginRoot");if(void 0===r)return"";let n=ex(r);return n.ok?n.dir:""}(e):"",a=[],o=new Set;return s.forEach((e,s)=>{let l;if(!Q(e))return void n.error("entry-shape",{path:r,subject:String(s)});let c=e.name;if(void 0===c)return void n.error("entry-name-missing",{path:r,subject:String(s)});if("string"!=typeof c||!ew(c))return void n.error("entry-name-invalid",{path:r,subject:et(c)});if(o.has(c))return void n.error("entry-name-duplicate",{path:r,subject:c});o.add(c);let d=ek(e,"description");a.push({name:c,dir:function(e,t,r,n,s){var i,a,o,l;let c;if(void 0===e)return void s.error("entry-source-missing",{path:n,subject:t});if("string"==typeof e){if(i=e,/^[a-z][a-z0-9+.-]*:\/\//i.test(i))return void s.warn("entry-source-unsupported",{path:n,subject:t,detail:e});c=e}else{if(!Q(e)||"local"!==e.source||"string"!=typeof e.path){return void s.warn("entry-source-unsupported",{path:n,subject:t,detail:Q(a=e)&&"string"==typeof a.source?a.source:et(a)})}c=e.path}let d=ex(c);return d.ok?(o=r,l=d.dir,""===o?l:""===l?o:`${o}/${l}`):void s.error("entry-source-escapes-root",{path:n,subject:t,detail:c})}(e.source,c,i,r,n),...void 0!==d&&{description:d},installedByDefault:"codex"===t&&Q(l=e.policy)&&"INSTALLED_BY_DEFAULT"===l.installation})}),a}(d,l,c,i),h=function(e,t,r,n){let s=[];for(let i of e)if(void 0!==i.dir){if(!t.isDirectory(i.dir)){n.warn("entry-directory-missing",{path:r,subject:i.name,detail:""===i.dir?".":i.dir});continue}if(!function(e){let t=new Set(Object.values(S));for(let r of e)if(t.has(r))return!0;return!1}(function(e,t){let r=""===t?"":`${t}/`;return e.filesUnder(t).map(e=>e.slice(r.length))}(t,i.dir))){n.warn("entry-not-a-plugin",{path:r,subject:i.name,detail:""===i.dir?".":i.dir});continue}s.push({name:i.name,dir:i.dir,...void 0!==i.description&&{description:i.description}})}return s}(p,a,c,i),f=function(e,t,r,n,s,i){let a,o=new Set(t.map(e=>e.name)),l=new Set(r.map(e=>e.name));if("stigmer"===n){let t=e.defaults;void 0===t?a=[]:X(t)?a=t:(i.error("marketplace-field-type",{path:s,subject:"defaults",detail:"an array of strings"}),a=[])}else a="codex"===n?t.filter(e=>e.installedByDefault).map(e=>e.name):[];let c=[];for(let e of a){if(!o.has(e)){i.error("default-unknown",{path:s,subject:e});continue}l.has(e)&&!c.includes(e)&&c.push(e)}return c}(d,p,h,l,c,i);if(i.errors.length>0||void 0===u)return ej(i);let m=function(e,t){switch(t){case"stigmer":return ek(e,"description");case"claude":case"cursor":{let t=e.metadata;return Q(t)?ek(t,"description"):void 0}case"codex":return;default:return t}}(d,l),g=function(e){let t=e.owner;if(!Q(t))return;let r=ek(t,"name"),n=ek(t,"email"),s=ek(t,"url");if(void 0!==r||void 0!==n||void 0!==s)return{...void 0!==r&&{name:r},...void 0!==n&&{email:n},...void 0!==s&&{url:s}}}(d);return{ok:!0,marketplace:{name:u,...void 0!==m&&{description:m},...void 0!==g&&{owner:g},dialect:l,path:c,plugins:h,defaults:f},warnings:i.warnings}}({entries:[...e.files].sort((e,t)=>e.path<t.path?-1:+(e.path>t.path)),read(e){let t=n.get(e);if(void 0===t)throw Error(`marketplace read asked for '${e}', which is not a marketplace file`);return t}});if(!s.ok)throw new ta(`${e.describe} is not a marketplace this console can read`,s.errors,s.warnings);return{tree:e,marketplace:s.marketplace,warnings:s.warnings}}async function tl(e,t){let r=""===t.dir?"":`${t.dir}/`,n=e.tree.files.filter(e=>e.path.startsWith(r)).map(e=>({path:e.path.slice(r.length),size:e.size})),s=n.reduce((e,t)=>e+t.size,0);if(s>0x6400000)throw new ti(`'${t.name}' is ${tc(s)} of files, over the ${tc(0x6400000)} a plugin archive may carry`,"too-large");let i=new Map;await Promise.all(n.map(async t=>{i.set(t.path,await e.tree.fetchFile(`${r}${t.path}`))}));let a=function(e,t,r){var n,s,i;let a,o,l,c=new Map(e.map(e=>[e.path,e])),d=(a=[],(n={includeDefaults:!0,...r.respectGitignore&&c.has(te)&&{gitignore:(s=t(te),ts.decode(s))},...c.has(tt)&&{stigmerignore:(i=t(tt),ts.decode(i))},...void 0!==r.extraIgnore&&{extraIgnore:r.extraIgnore},...void 0!==r.extraInclude&&{extraInclude:r.extraInclude}}).includeDefaults&&a.push(...tn(e4,e7)),void 0!==n.gitignore&&a.push(...tn(n.gitignore.split(/\r?\n/),te)),void 0!==n.stigmerignore&&a.push(...tn(n.stigmerignore.split(/\r?\n/),tt)),o=n.extraIgnore??[],l=n.extraInclude??[],(o.length>0||l.length>0)&&a.push(...function(e,t){let r=tn(e,"cli"),n=[];for(let e of t){let t=e.trim();""!==t&&n.push(t.startsWith("!")?t:`!${t}`)}return r.push(...tn(n,"cli")),r}(o,l)),new tr(a)),u={filesIncluded:0,filesIgnored:0,dirsSkipped:0,totalSize:0},p=new Set,h=[];for(let t of[...e].sort((e,t)=>(function(e,t){let r=e.split("/"),n=t.split("/"),s=Math.min(r.length,n.length);for(let e=0;e<s;e++){let t=r[e]??"",s=n[e]??"";if(t!==s)return t<s?-1:1}return r.length-n.length})(e.path,t.path)))if(!function(e,t,r,n){let s=e.split("/"),i="";for(let e=0;e<s.length-1;e++){if(i=""===i?s[e]??"":`${i}/${s[e]??""}`,r.has(i))return!0;if(t.matchWithReason(i,!0).ignored)return r.add(i),n.dirsSkipped++,!0}return!1}(t.path,d,p,u)){if(d.matchWithReason(t.path,!1).ignored){u.filesIgnored++;continue}h.push({path:t.path,size:t.size}),u.filesIncluded++,u.totalSize+=t.size}return{files:{entries:h,read(e){if(!c.has(e))throw Error(`plugin file '${e}' is not listed`);return t(e)}},stats:u,matcher:d}}(n,e=>{let t=i.get(e);if(void 0===t)throw Error(`plugin file '${e}' was not fetched`);return t},{respectGitignore:!0}),o=function(e){let t=new I;for(let r of e.entries)G(r.path)||t.error("path-uncontained",{path:r.path});let r=new Z(e),n=function(e,t){let r=[],n=n=>{var s,i,a;let o,l=S[n];if(!e.has(l))return;let c=void 0===(o=Y(e,s=l,"manifest",i=t))?void 0:K(o,s,"manifest-unreadable",i),d=void 0===c?(a=n,{dialect:a,path:l,identity:{},skillPaths:[],mcpConfigs:[],ignored:[]}):function(e,t,r,n){switch(e){case"agent-plugins":let s;return void 0===(s=t.$schema)?n.error("manifest-schema-missing",{path:r}):s!==k&&n.error("manifest-schema-unsupported",{path:r,detail:et(s)}),es(t,eg,r,n),{dialect:"agent-plugins",path:r,identity:ei(t,r,n),skillPaths:[],mcpConfigs:[],ignored:function(e,t,r){let n=e.extensions;if(void 0===n)return[];if(!Q(n))return r.warn("manifest-extensions-invalid",{path:t}),[];let s=[];for(let[e,r]of er(n))Q(r)&&0===er(r).length||s.push({kind:"extension",path:`${t}#extensions.${e}`});return s}(t,r,n)};case"claude":return eh(t,r,"claude",eu,n);case"cursor":let i,a,o,l;return es(t,em,r,n),i=ei(t,r,n),a=ea(t,"skills",r,n)??[],o=ea(t,"agents",r,n),l={dialect:"cursor",path:r,identity:i,skillPaths:a,mcpConfigs:eo(t,"mcpServers",r,"cursor",n),ignored:ec(t,r)},void 0!==o&&(l.agentPaths=o),void 0!==t.variables&&(l.variables={dialect:"cursor",value:t.variables,manifest:r}),l;case"codex":return eh(t,r,"codex",ef,n);default:throw Error(`unknown dialect ${String(e)}`)}}(n,c,l,t);return r.push(d),d},s=n("agent-plugins"),i=eb.map(n).filter(e=>void 0!==e);if(0===r.length)return void t.error("no-manifest");let a=s??i[0];if(void 0===a)throw Error("manifest set without an identity manifest");let o=[a,...r.filter(e=>e!==a)],l=function(e,t,r){let n=e.identity.name;if(void 0===n){if(r.errors.some(t=>"manifest-unreadable"===t.kind&&t.path===e.path))return;r.error("manifest-name-missing",{path:e.path});return}let s=!0;for(let i of(ew(n)||(r.error("manifest-name-invalid",{path:e.path,subject:n}),s=!1),t)){if(i===e)continue;let t=i.identity.name;void 0!==t&&t!==n&&(r.error("manifest-name-conflict",{path:e.path,subject:n,detail:`'${t}' in '${i.path}'`}),s=!1)}return s?n:void 0}(a,o,t);return{dialect:a.dialect,manifests:o,name:l,readsAgents:i.length>0,mcpSources:function(e,t,r){let n=[];for(let s of(void 0!==t&&e.has(ev)&&n.push({kind:"file",path:ev,dialect:"agent-plugins",manifest:t.path}),r))s.mcpConfigs.length>0?n.push(...s.mcpConfigs):"cursor"!==s.dialect&&e.has(ep)&&n.push({kind:"file",path:ep,dialect:s.dialect,manifest:s.path});let s=new Set;return n.filter(e=>"inline"===e.kind||!s.has(e.path)&&(s.add(e.path),!0))}(e,s,i)}}(r,t);if(void 0===n)return{ok:!1,errors:t.errors,warnings:t.warnings};let s=function(e,t,r){let n=[],s=new Map;for(let i of function(e,t,r){let n=new Set,s=t=>{for(let r of e.childDirectories(t)){let s=H(t,r);e.has(H(s,eV))&&n.add(s)}};s(eK);let i=t.manifests.flatMap(e=>e.skillPaths);for(let{path:t,manifest:a}of i)e.has(H(t,eV))?n.add(t):e.isDirectory(t)?s(t):r.warn("path-missing",{path:a,subject:""===t?".":`./${t}`});return 0===i.length&&!e.isDirectory(eK)&&e.has(eV)&&n.add(""),[...n].sort(R)}(e,t,r)){let a=function(e,t,r,n){let s,i=H(t,eV),a=Y(e,i,"skillMd",n);if(void 0===a)return;let o=eZ(a);if(!o.ok)return void n.error("missing"===o.reason?"skill-frontmatter-missing":"skill-frontmatter-unclosed",{path:i});let l=eY(o.yaml);if(!l.ok)return void n.error("skill-frontmatter-unreadable",{path:i,detail:l.detail});let c=""===t?r.name??"skill":J(t);if("string"==typeof l.fields.name&&""!==l.fields.name?s=l.fields.name:(s=c,n.warn("skill-name-defaulted",{path:i,subject:s})),!eq.test(s))return void n.error("skill-name-invalid",{path:i,subject:s});""!==t&&s!==c&&n.warn("skill-name-differs-from-directory",{path:i,subject:s,detail:c});let d=l.fields.description;return("string"!=typeof d||""===d)&&n.warn("skill-description-missing",{path:i,subject:s}),{name:s,..."string"==typeof d&&""!==d&&{description:d},dir:t,files:e.filesUnder(t)}}(e,i,t,r);if(void 0!==a){if(void 0!==s.get(a.name)){r.error("skill-name-duplicate",{subject:a.name,path:H(i,eV)});continue}s.set(a.name,i),n.push(a)}}return n}(r,n,t),i=function(e,t,r){let n=[],s=new Set,i=0;for(let a of t){let t=function(e,t,r){let n="agent-plugins"===t.dialect;if("inline"===t.kind){let e=Q(t.servers)?t.servers.mcpServers:void 0,n=Q(e)?e:t.servers;return Q(n)?{path:t.manifest,servers:n}:void r.error("mcp-config-shape",{path:t.manifest})}if(!e.has(t.path))return void r.warn("path-missing",{path:t.manifest,subject:`./${t.path}`});let s=Y(e,t.path,"mcpConfig",r);if(void 0===s)return;let i=K(s,t.path,"mcp-config-unreadable",r);if(void 0===i)return;if(n){let e=i.$schema;void 0===e?r.error("mcp-config-schema-missing",{path:t.path}):e!==x&&r.error("mcp-config-schema-unsupported",{path:t.path,detail:et(e)})}for(let[e]of er(i))ez.has(e)||(n?r.error("mcp-config-field-unknown",{path:t.path,subject:e}):r.warn("mcp-config-field-ignored",{path:t.path,subject:e}));let a=i.mcpServers;return Q(a)?{path:t.path,servers:a}:void r.error("mcp-config-shape",{path:t.path})}(e,a,r);if(void 0===t){i++;continue}for(let[e,o]of er(t.servers)){if(s.has(e)){r.error("mcp-server-name-duplicate",{subject:e,path:t.path}),i++;continue}s.add(e);let l=function(e,t,r,n,s){let i={subject:e,path:r};if(!Q(t))return void s.error("mcp-server-shape",i);let a=function(e,t,r,n){let s=e.type;if(void 0!==s&&"string"!=typeof s)return void n.error("mcp-server-field-type",{...t,detail:"type"});if(void 0===s){if(r)return void n.error("mcp-server-type-missing",t);let s=void 0!==e.command,i=void 0!==e.url;return s&&i?void n.error("mcp-server-type-ambiguous",t):s?"stdio":i?"http":void n.error("mcp-server-transport-unknown",t)}switch(s){case"stdio":return"stdio";case"streamable-http":return"http";case"http":if(r)return void n.error("mcp-server-type-unknown",{...t,detail:s});return"http";case"sse":return n.warn("mcp-server-sse-mapped",t),"http";default:n.error("mcp-server-type-unknown",{...t,detail:s});return}}(t,i,n,s);if(void 0===a)return;let o="stdio"===a?n?eO:eL:n?eD:eU,l=new Set,c=!0;for(let[e,r]of er(t))if(!o.has(e))if(n)s.error("mcp-server-field-unknown",{...i,detail:e}),c=!1;else if("auth"===e)for(let e of(s.warn("mcp-server-auth-ignored",i),function e(t){return"string"==typeof t?[eE(t)]:Array.isArray(t)?t.flatMap(e):Q(t)?Object.values(t).flatMap(e):[]}(r)))eF(e,l);else s.warn("mcp-server-field-ignored",{...i,detail:e});if(c)return"stdio"===a?function(e,t,r,n,s){let i=!0,a=()=>{i=!1},o=t.command;if(void 0===o)s.error("mcp-server-command-missing",r),a();else if("string"!=typeof o)s.error("mcp-server-field-type",{...r,detail:"command"}),a();else{let e=eT(o);void 0!==e?(s.error("mcp-server-plugin-root-reference",{...r,detail:e}),a()):o.startsWith("./")?(s.error("mcp-server-command-relative",{...r,detail:o}),a()):(""===o||/\s/.test(o)||o.includes("/"))&&(s.error("mcp-server-command-invalid",r),a())}let l=[],c=t.args;if(void 0!==c)if(X(c))for(let e of c){let t=eE(e),i=eT(t);if(void 0!==i){s.error("mcp-server-plugin-root-reference",{...r,detail:i}),a();continue}eF(t,n),l.push(t)}else s.error("mcp-server-field-type",{...r,detail:"args"}),a();let d=t.env;if(void 0!==d)if(ee(d))for(let[e,t]of Object.entries(d)){if(eI.has(e)){s.error("mcp-server-plugin-root-reference",{...r,detail:e}),a();continue}if(!eM.test(e)){s.error("variable-name-invalid",{subject:e,path:r.path}),a();continue}let i=eE(t),o=eT(i);if(void 0!==o){s.error("mcp-server-plugin-root-reference",{...r,detail:o}),a();continue}let l=function(e){let t=/^\$\{([A-Za-z_][A-Za-z0-9_]*)\}$/.exec(e);return t?.[1]}(i);void 0===l?(s.error("mcp-server-env-literal",{...r,detail:e}),a()):l!==e?(s.error("mcp-server-env-rename",{...r,detail:e}),a()):n.add(e)}else s.error("mcp-server-field-type",{...r,detail:"env"}),a();if(void 0!==t.cwd&&(s.error("mcp-server-cwd-unsupported",r),a()),i&&"string"==typeof o)return{name:e,transport:"stdio",command:o,args:l,env:[...n].sort()}}(e,t,i,l,s):function(e,t,r,n,s){let i,a=!0,o=()=>{a=!1},l=t.url;if(void 0===l)s.error("mcp-server-url-missing",r),o();else if("string"!=typeof l)s.error("mcp-server-field-type",{...r,detail:"url"}),o();else{let e=eT(i=eE(l));void 0!==e?(s.error("mcp-server-plugin-root-reference",{...r,detail:e}),o()):e_(i).length>0?(s.error("mcp-server-url-variable",r),o()):!function(e){var t;let r;try{r=new URL(e)}catch{return!1}return""===r.username&&""===r.password&&""===r.hash&&("https:"===r.protocol||"http:"===r.protocol&&("localhost"===(t=r.hostname)||"[::1]"===t||"::1"===t||/^127\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(t)))}(i)&&(s.error("mcp-server-url-invalid",{...r,detail:i}),o())}let c=[],d=t.headers;if(void 0!==d)if(ee(d)){let e=new Set;for(let[t,i]of Object.entries(d)){if(!eR.test(t)){s.error("mcp-server-header-invalid",{...r,detail:t}),o();continue}let a=t.toLowerCase();if(e.has(a)){s.error("mcp-server-header-duplicate",{...r,detail:t}),o();continue}e.add(a);let l=eE(i),d=eT(l);if(void 0!==d){s.error("mcp-server-plugin-root-reference",{...r,detail:d}),o();continue}eF(l,n),c.push([t,l])}}else s.error("mcp-server-field-type",{...r,detail:"headers"}),o();if(a&&void 0!==i)return{name:e,transport:"http",url:i,headers:Object.fromEntries(c),env:[...n].sort()}}(e,t,i,l,s)}(e,o,t.path,"agent-plugins"===a.dialect,r);void 0!==l?n.push(l):i++}}return{servers:n,refused:i,declaredNames:s}}(r,n.mcpSources,t),a=i.servers,o=function(e,t,r){let n=new Map,s=new Map;for(let t of e.manifests){let e=t.variables;if(void 0!==e)for(let t of"cursor"===e.dialect?function(e,t,r){if(!Q(e)||"object"!==e.type)return r.error("manifest-field-type",{path:t,subject:"variables",detail:"a JSON Schema object with type 'object'"}),[];let n=e.properties??{};if(!Q(n))return r.error("manifest-field-type",{path:t,subject:"variables.properties",detail:"an object"}),[];let s=e.required??[];if(!X(s))return r.error("manifest-field-type",{path:t,subject:"variables.required",detail:"an array of strings"}),[];let i=[];for(let[e,a]of er(n)){if(!eM.test(e)){r.error("variable-name-invalid",{subject:e,path:t});continue}let n=Q(a)?a:{},o=n.type;void 0!==o&&"string"!==o&&r.warn("variable-type-narrowed",{subject:e,path:t,detail:et(o)}),void 0!==n.default&&r.warn("variable-default-dropped",{subject:e,path:t}),void 0!==n.enum&&r.warn("variable-option-dropped",{subject:e,path:t,detail:"enum"});let l=eX(n);i.push({name:e,...void 0!==l&&{description:l},isSecret:!0,optional:!s.includes(e),declaredBy:"cursor"})}return i}(e.value,e.manifest,r):function(e,t,r){if(!Q(e))return r.error("manifest-field-type",{path:t,subject:"userConfig",detail:"an object"}),[];let n=[];for(let[s,i]of er(e)){if(!eM.test(s)){r.error("variable-name-invalid",{subject:s,path:t});continue}if(!Q(i)){r.error("manifest-field-type",{path:t,subject:`userConfig.${s}`,detail:"an object"});continue}let e=i.type;for(let n of(void 0!==e&&"string"!==e&&r.warn("variable-type-narrowed",{subject:s,path:t,detail:et(e)}),void 0!==i.default&&r.warn("variable-default-dropped",{subject:s,path:t}),["options","multiple","min","max"]))void 0!==i[n]&&r.warn("variable-option-dropped",{subject:s,path:t,detail:n});let a=eX(i);n.push({name:s,...void 0!==a&&{description:a},isSecret:!0===i.sensitive,optional:!0!==i.required,declaredBy:"claude"})}return n}(e.value,e.manifest,r))n.has(t.name)||(n.set(t.name,t),s.set(t.name,e.manifest))}let i=new Map;for(let e of t.servers)for(let t of e.env)i.has(t)||i.set(t,e.name);if(0===t.refused)for(let[e,t]of n)i.has(e)||r.warn("variable-unreferenced",{subject:t.name,path:s.get(e)});let a=[];for(let[e,t]of[...i].sort(([e],[t])=>e<t?-1:+(e>t)))n.has(e)||(r.warn("variable-inferred",{subject:e,detail:t}),a.push({name:e,isSecret:!0,optional:!1,declaredBy:"inferred"}));return[...n.values(),...a]}(n,i,t),l=function(e,t,r,n){if(!t.readsAgents)return[];let s=new Set(r.map(e=>e.name)),i=[],a=new Set;for(let r of function(e,t,r){let n=new Set,s=t=>{for(let r of e.childFiles(t))r.endsWith(".md")&&n.add(H(t,r))},i=t.manifests.flatMap(e=>e.agentPaths??[]);for(let{path:a,manifest:o}of(t.manifests.every(e=>void 0===e.agentPaths)&&s("agents"),i))""!==a&&e.has(a)&&a.endsWith(".md")?n.add(a):e.isDirectory(a)?s(a):r.warn("path-missing",{path:o,subject:""===a?".":`./${a}`});return[...n].sort(R)}(e,t,n)){let t=function(e,t,r,n){let s,i,a=Y(e,t,"subAgent",n);if(void 0===a)return;let o=eZ(a),l={},c=a;if(o.ok){let e=eY(o.yaml);if(!e.ok)return void n.error("sub-agent-frontmatter-unreadable",{path:t,detail:e.detail});l=e.fields,c=o.body}else if("unclosed"===o.reason)return void n.error("sub-agent-frontmatter-unreadable",{path:t,detail:"the frontmatter is not closed (missing the closing '---')"});let d=J(t).replace(/\.md$/,"");"string"==typeof l.name&&""!==l.name?s=l.name:(s=d,n.warn("sub-agent-name-defaulted",{path:t,subject:s}));let u=c.trim();if(u.length<10)return void n.error("sub-agent-instructions-short",{path:t,subject:s,detail:String(10)});let p=l.description,h=l.skills,f=[];if(Array.isArray(h))for(let e of h)"string"==typeof e&&(r.has(e)?f.push(e):n.warn("sub-agent-skill-unknown",{path:t,subject:s,detail:e}));let m=l.model;for(let e of("string"==typeof m&&""!==m.trim()&&"unknown"===(i=function(e){let t=e.trim().toLowerCase();return{raw:e,alias:"inherit"===t?"inherit":"fast"===t?"fast":t.includes("haiku")?"haiku":t.includes("sonnet")?"sonnet":t.includes("opus")?"opus":"unknown"}}(m)).alias&&n.warn("sub-agent-model-unknown",{path:t,subject:s,detail:m}),Object.keys(l)))eQ.has(e)||n.warn("sub-agent-field-ignored",{path:t,subject:s,detail:e});return{name:s,..."string"==typeof p&&""!==p&&{description:p},instructions:u,skillNames:f,...void 0!==i&&{modelHint:i},path:t}}(e,r,s,n);if(void 0!==t){if(a.has(t.name)){n.error("sub-agent-name-duplicate",{subject:t.name,path:r});continue}a.add(t.name),i.push(t)}}return i}(r,n,s,t),c=function(e,t,r){let n={workflows:[],mcpServers:[]},s=[],i=[];for(let a of e.filesUnder(eG)){if(a===eB){let t=V(e,a,"overlay",r);void 0!==t&&(n.agent={path:a,bytes:t});continue}let o=function(e){let t=J(e);return t.endsWith(".yaml")&&t.length>5?t.slice(0,-5):void 0}(a);if(void 0!==o&&q(a)===eW){let t=V(e,a,"overlay",r);void 0!==t&&s.push({path:a,bytes:t,name:o});continue}if(void 0!==o&&q(a)===eH){if(!t.has(o)){r.error("overlay-server-unknown",{path:a,subject:o});continue}let n=V(e,a,"overlay",r);void 0!==n&&i.push({path:a,bytes:n,server:o});continue}r.error("overlay-document-unknown",{path:a})}return n.workflows=s,n.mcpServers=i,n}(r,i.declaredNames,t),d=function(e){let t=new Set,r=[];for(let n of e)for(let e of n){let n=`${e.kind}\u0000${e.path}`;t.has(n)||(t.add(n),r.push(e))}return r}([function(e,t){let r=[];for(let n of e.childDirectories("")){let e=eS[n];void 0!==e&&r.push({kind:e,path:`${n}/`}),"agents"!==n||t||r.push({kind:"agents",path:`${n}/`})}for(let t of e.childFiles("")){let e=eN[t];void 0!==e&&r.push({kind:e,path:t})}return r}(r,n.readsAgents),...n.manifests.map(e=>e.ignored)]);if(t.errors.length>0||void 0===n.name)return{ok:!1,errors:t.errors,warnings:t.warnings};let u=n.manifests[0]?.identity??{};return{ok:!0,plugin:{name:n.name,...void 0!==u.version&&{version:u.version},...void 0!==u.description&&{description:u.description},...void 0!==u.author&&{author:u.author},...void 0!==u.homepage&&{homepage:u.homepage},...void 0!==u.repository&&{repository:u.repository},...void 0!==u.license&&{license:u.license},keywords:u.keywords??[],dialect:n.dialect,manifestsFound:n.manifests.map(e=>e.path),skills:s,mcpServers:a,subAgents:l,variables:o,overlay:c,ignored:d},warnings:t.warnings}}(a.files);if(!o.ok)throw new ta(`'${t.name}' cannot be installed`,o.errors,o.warnings);let l=function(e){let t={};for(let r of e.entries)t[r.path]=e.read(r.path);return(0,e0.zipSync)(t,{level:6,mtime:e1})}(a.files);return{entry:t,plugin:o.plugin,warnings:o.warnings,stats:a.stats,archive:l,digest:await e2(l)}}function tc(e){return`${(e/1048576).toFixed(1)} MiB`}var td=e.i(891287),tu=e.i(44454),tp=e.i(586108),th=e.i(326283),tf=e.i(203941),tm=e.i(910304),tg=e.i(583093);function tv({opened:e,entryName:t,marketplaceName:r,org:n,open:s,onClose:a,onInstalled:o,className:c}){return s&&null!==e&&null!==t?(0,i.jsx)(j.DialogShell,{open:!0,onOpenChange:e=>{e||a()},width:"lg",className:(0,l.cn)("stg:max-h-[85vh] stg:bg-card stg:text-foreground",c),"aria-label":`Install ${t}`,children:(0,i.jsx)("div",{className:"stg:flex stg:max-h-[85vh] stg:flex-col stg:overflow-y-auto stg:p-6",children:(0,i.jsx)(tb,{opened:e,entryName:t,marketplaceName:r,org:n,onClose:a,onInstalled:o})})}):null}function tb({opened:e,entryName:t,marketplaceName:r,org:n,onClose:s,onInstalled:o}){var c;let d,u,{prepared:p,relation:h,isPreparing:f,error:b,refetch:w}=function(e,t,r){var n;let s=(0,tp.useStigmer)(),i=e&&t?(n=e.marketplace,n.plugins.find(e=>e.name===t)):void 0,{data:o,isLoading:l,error:c,refetch:d}=(0,tg.useFetch)(e&&i&&r?async()=>{let[t,n]=await Promise.all([tl(e,i),s.plugin.getByReference({org:r,slug:i.name}).catch(e=>{if((0,tm.isNotFound)(e))return null;throw e})]);return{prepared:t,installed:n}}:null,[e,i,r,s],null),u=(0,a.useMemo)(()=>{if(null===o)return null;if(null===o.installed)return"not-installed";let e=o.installed.status;return e?.digest===o.prepared.digest&&e.state===tf.PluginState.READY?"installed":"upgrade"},[o]);return(0,a.useMemo)(()=>({prepared:o?.prepared??null,installed:o?.installed??null,relation:u,isPreparing:l,error:c,refetch:d}),[o,u,l,c,d])}(e,t,n),{install:y,isInstalling:j,error:k,clearError:x}=function(){let e=(0,tp.useStigmer)(),[t,r]=(0,a.useState)(!1),[n,s]=(0,a.useState)(null),i=(0,a.useCallback)(async(t,n)=>{r(!0),s(null);try{let r=await e.plugin.push((0,td.create)(tu.PushPluginRequestSchema,{org:n.org,artifact:t.archive,message:void 0===n.installedFrom?"installed from the console":`installed from marketplace '${n.installedFrom}'`,...void 0!==n.visibility&&{visibility:n.visibility}})),s=(await e.plugin.listMembers(r.metadata?.id??"")).members;return{plugin:r,members:s}}catch(t){let e=(0,th.toError)(t);throw s(e),e}finally{r(!1)}},[e]),o=(0,a.useCallback)(()=>s(null),[]);return(0,a.useMemo)(()=>({install:i,isInstalling:t,error:n,clearError:o}),[i,t,n,o])}(),[S,N]=(0,a.useState)(null);(0,a.useEffect)(()=>{x(),N(null)},[t,x]);let C=(0,a.useCallback)(async()=>{if(p)try{let e=await y(p,{org:n,installedFrom:r});N(e),o?.(e)}catch{}},[p,y,n,r,o]),M="upgrade"===h?`Upgrade ${t}`:`Install ${t}`;return(0,i.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-5",children:[(0,i.jsx)("header",{className:"stg:flex stg:items-start stg:justify-between stg:gap-4",children:(0,i.jsxs)("div",{children:[(0,i.jsx)("h2",{className:"stg:text-base stg:font-semibold stg:text-foreground",children:M}),(0,i.jsxs)("p",{className:"stg:mt-0.5 stg:text-xs stg:text-muted-foreground",children:["From ",r," (",e.tree.describe,") into ",n]})]})}),f&&(0,i.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2 stg:text-sm stg:text-muted-foreground",role:"status",children:[(0,i.jsx)($.SpinnerIcon,{className:"stg:size-4"}),"Reading the plugin's files…"]}),b&&(0,i.jsx)(ty,{error:b,retry:w}),p&&!f&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t$,{plugin:p.plugin,filesIncluded:p.stats.filesIncluded}),p.warnings.length>0&&(0,i.jsx)(tj,{title:"Warnings",children:(0,i.jsx)("ul",{className:"stg:list-disc stg:space-y-1 stg:pl-5 stg:text-sm stg:text-foreground",children:p.warnings.map((e,t)=>(0,i.jsx)("li",{children:e.message},`${e.kind}:${t}`))})}),p.plugin.ignored.length>0&&(0,i.jsx)(tj,{title:"Not installed",children:(0,i.jsx)("ul",{className:(0,l.cn)(v.UNSTYLED_LIST,"stg:space-y-0.5 stg:text-sm stg:text-muted-foreground"),children:p.plugin.ignored.map(e=>(0,i.jsxs)("li",{children:[e.kind," ",(0,i.jsxs)("span",{className:"stg:font-mono stg:text-xs",children:["(",e.path,")"]})]},e.path))})}),h&&(0,i.jsx)(tw,{relation:h,name:p.plugin.name})]}),k&&(0,i.jsx)(g.ErrorMessage,{error:k,title:"The server refused the install"}),S&&(0,i.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 '",S.plugin.metadata?.slug,"' (",(c=S,d=c.plugin.status?.materialized,u=[tS(d?.skills??0,"skill"),tS(d?.mcpServers??0,"MCP server"),tS(d?.agents??0,"agent")],void 0!==d&&d.workflows>0&&u.push(tS(d.workflows,"workflow")),u.join(", ")),")."]}),(0,i.jsxs)("footer",{className:"stg:flex stg:justify-end stg:gap-2 stg:pt-1",children:[(0,i.jsx)(m.Button,{variant:"outline",size:"sm",onClick:s,children:S?"Close":"Cancel"}),!S&&(0,i.jsx)(m.Button,{variant:"primary",size:"sm",onClick:C,disabled:!p||f||j||"installed"===h,children:j?"Installing…":"upgrade"===h?"Upgrade":"Install"})]})]})}function t$({plugin:e,filesIncluded:t}){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(tj,{title:"Plugin",children:(0,i.jsx)(tk,{rows:[["Name",e.name],["Version",e.version??""],["Format",y.DIALECT_LABELS[e.dialect]],["Files",`${t} read`]]})}),(0,i.jsxs)(tj,{title:"Installs",children:[(0,i.jsx)(tk,{rows:[["Skills",tx(e.skills.map(e=>e.name))],["MCP servers",tx(e.mcpServers.map(e=>`${e.name} (${e.transport})`))],["Sub-agents",tx(e.subAgents.map(e=>e.name))],["Variables",tx(e.variables.map(e=>`${e.name}${e.optional?" (optional)":""}${"inferred"===e.declaredBy?" (inferred)":""}`))]]}),e.variables.length>0&&(0,i.jsx)("p",{className:"stg:mt-2 stg:text-xs stg:text-muted-foreground",children:"The agent asks for these the first time you start a session on it, and saves them to your personal environment."})]})]})}function tw({relation:e,name:t}){switch(e){case"installed":return(0,i.jsxs)("p",{role:"status",className:"stg:text-sm stg:text-muted-foreground",children:["This exact version of '",t,"' is already installed; there is nothing to do."]});case"upgrade":return(0,i.jsxs)("p",{role:"status",className:"stg:text-sm stg:text-foreground",children:["'",t,"' is already installed at another version. Upgrading replaces its skills, servers and agent with this version's; the agent is re-created, so a session bound to the previous one does not follow."]});case"not-installed":return null;default:return e}}function ty({error:e,retry:t}){return e instanceof ta?(0,i.jsxs)("div",{role:"alert",className:"stg:rounded-md stg:border stg:border-destructive stg:p-3 stg:text-sm",children:[(0,i.jsxs)("p",{className:"stg:font-medium stg:text-foreground",children:[e.subject,":"]}),(0,i.jsx)("ul",{className:"stg:mt-1 stg:list-disc stg:space-y-0.5 stg:pl-5 stg:text-foreground",children:e.errors.map((e,t)=>(0,i.jsx)("li",{children:e.message},`e${t}`))}),e.warnings.length>0&&(0,i.jsx)("ul",{className:"stg:mt-2 stg:list-disc stg:space-y-0.5 stg:pl-5 stg:text-muted-foreground",children:e.warnings.map((e,t)=>(0,i.jsx)("li",{children:e.message},`w${t}`))})]}):(0,i.jsx)(g.ErrorMessage,{error:e,retry:t,title:"The plugin could not be read"})}function tj({title:e,children:t}){return(0,i.jsxs)("section",{children:[(0,i.jsx)("h3",{className:"stg:mb-1.5 stg:text-xs stg:font-medium stg:uppercase stg:tracking-wider stg:text-muted-foreground",children:e}),(0,i.jsx)("div",{className:"stg:rounded-md stg:border stg:border-border stg:p-3",children:t})]})}function tk({rows:e}){return(0,i.jsx)("dl",{className:"stg:grid stg:grid-cols-[auto_1fr] stg:gap-x-4 stg:gap-y-1 stg:text-sm",children:e.filter(([,e])=>""!==e).map(([e,t])=>(0,i.jsxs)("div",{className:"stg:contents",children:[(0,i.jsx)("dt",{className:"stg:text-muted-foreground",children:e}),(0,i.jsx)("dd",{className:"stg:min-w-0 stg:break-words stg:text-foreground",children:t})]},e))})}function tx(e){return 0===e.length?"none":`${e.length}: ${e.join(", ")}`}function tS(e,t){return`${e} ${t}${1===e?"":"s"}`}let tN="HEAD",tC=new Map;async function tM(e,t){let r=await tP(e,t);if(r.truncated)throw new ti(`${p(e)} lists more files than GitHub returns in one tree, so it cannot be read as a marketplace`,"too-large");let n=r.tree.filter(e=>"blob"===e.type).map(e=>({path:e.path,size:e.size??0}));if(n.length>2e4)throw new ti(`${p(e)} holds ${n.length} files, over the 20000 a marketplace may carry`,"too-large");let s=r.sha,i=new Map(n.map(e=>[e.path,e.size]));return{describe:`${p(e)} (${s.slice(0,7)})`,files:n,fetchFile:r=>tA(e.repo,s,r,i.get(r),t)}}async function tP(e,t){let r,n=`${e.repo}@${e.ref??tN}`,s=tC.get(n),i={accept:"application/vnd.github+json"};s?.etag&&(i["if-none-match"]=s.etag);try{r=await t(`https://api.github.com/repos/${e.repo}/git/trees/${encodeURIComponent(e.ref??tN)}?recursive=1`,{headers:i})}catch(t){throw new ti(`could not reach GitHub for ${p(e)}: ${t instanceof Error?t.message:String(t)}`,"unreachable")}if(304===r.status&&void 0!==s)return s.listing;if(404===r.status)throw new ti(`GitHub has no public repository ${p(e)}; private repositories are not marketplaces`,"not-found");if(403===r.status||429===r.status)throw new ti(`GitHub is rate-limiting this browser (${r.status}); try again in a while, or install with the CLI`,"unreachable");if(!r.ok)throw new ti(`GitHub answered ${r.status} for ${p(e)}`,"unreachable");let a=await r.json();return tC.set(n,{etag:r.headers.get("etag"),listing:a}),a}async function tA(e,t,r,n,s){let i;try{i=await s(`https://raw.githubusercontent.com/${e}/${t}/${r.split("/").map(encodeURIComponent).join("/")}`)}catch(e){throw new ti(`could not read '${r}' from GitHub: ${e instanceof Error?e.message:String(e)}`,"unreachable")}if(!i.ok)throw new ti(`GitHub answered ${i.status} for '${r}'`,"unreachable");let a=new Uint8Array(await i.arrayBuffer());if(void 0!==n&&a.length!==n)throw new ti(`'${r}' came back ${a.length} bytes where the tree listed ${n}; the repository changed under the read`,"refused");return a}let tI="@stigmer/plugins";async function tE(e,t){let r;if(!/^\d+\.\d+\.\d+$/.test(e))throw new ti(`the official marketplace is published with each release, and this server runs a development build (${e}); add a GitHub marketplace to install from, or use the CLI`,"unavailable-on-dev-server");try{r=await t(`https://data.jsdelivr.com/v1/package/npm/${tI}@${e}/flat`)}catch(t){throw new ti(`could not reach the npm CDN for ${tI}@${e}: ${t instanceof Error?t.message:String(t)}`,"unreachable")}if(404===r.status)throw new ti(`${tI}@${e} is not published; the catalogue for this server's release is not available yet`,"not-found");if(!r.ok)throw new ti(`the npm CDN answered ${r.status} for ${tI}@${e}`,"unreachable");let n=(await r.json()).files.map(e=>({path:e.name.replace(/^\//,""),size:e.size}));if(n.length>2e4)throw new ti(`${tI}@${e} holds ${n.length} files, over the 20000 a marketplace may carry`,"too-large");let s=new Map(n.map(e=>[e.path,e.size]));return{describe:`${tI}@${e}`,files:n,fetchFile:async r=>{let n;try{n=await t(`https://cdn.jsdelivr.net/npm/${tI}@${e}/${r.split("/").map(encodeURIComponent).join("/")}`)}catch(e){throw new ti(`could not read '${r}' from the npm CDN: ${e instanceof Error?e.message:String(e)}`,"unreachable")}if(!n.ok)throw new ti(`the npm CDN answered ${n.status} for '${r}'`,"unreachable");let i=new Uint8Array(await n.arrayBuffer()),a=s.get(r);if(void 0!==a&&i.length!==a)throw new ti(`'${r}' came back ${i.length} bytes where the listing said ${a}`,"refused");return i}}}async function tT(e,t,r={}){let n=r.fetchImpl??globalThis.fetch.bind(globalThis);switch(e.type){case"official":{let e=await t.platform.getServerInfo();return to(await tE(e.version,n))}case"github":return to(await tM(e,n));default:throw Error(`unknown marketplace source ${JSON.stringify(e)}`)}}let t_=[],tz="stigmer:plugins:marketplaces:v1",tO={name:c,source:{type:"official"}},tD=new Set;function tL(e){tD.add(e);let t=t=>{t.key===tz&&e()};return window.addEventListener("storage",t),()=>{tD.delete(e),window.removeEventListener("storage",t)}}function tU(){try{return window.localStorage.getItem(tz)??""}catch{return""}}function tR(e){try{0===Object.keys(e).length?window.localStorage.removeItem(tz):window.localStorage.setItem(tz,JSON.stringify(e))}catch{}for(let e of tD)e()}function tF(e){if(""===e)return{};try{let t=JSON.parse(e);return"object"!=typeof t||null===t||Array.isArray(t)?{}:t}catch{return{}}}function tG({org:e,onInstalled:t,fetchImpl:r,className:n}){let{marketplaces:s,unreadable:o,add:d,remove:p}=function(){let e=(0,a.useSyncExternalStore)(tL,tU,()=>""),{marketplaces:t,unreadable:r}=(0,a.useMemo)(()=>{let t=[tO],r=[];for(let[n,s]of Object.entries(tF(e))){if(n===c)continue;let e=function(e){if("object"!=typeof e||null===e)return{ok:!1,reason:"not an object"};switch(e.type){case"github":{let t=e.repo;if("string"!=typeof t||!f(t))return{ok:!1,reason:"type 'github' needs 'repo: owner/repo'"};let r=e.ref;if(void 0!==r&&("string"!=typeof r||""===r))return{ok:!1,reason:"'ref' must be a non-empty branch, tag or commit"};return{ok:!0,source:{type:"github",repo:t,..."string"==typeof r&&{ref:r}}}}case void 0:return{ok:!1,reason:"no 'type' (expected 'github')"};default:return{ok:!1,reason:`unknown type '${String(e.type)}' (expected 'github')`}}}(s);e.ok?t.push({name:n,source:e.source}):r.push({name:n,reason:e.reason})}return{marketplaces:t,unreadable:r}},[e]),n=(0,a.useCallback)((e,t)=>{if(e===c)return`'${c}' is the built-in marketplace and cannot be added or replaced; choose another name`;if(!ew(e))return`'${e}' is not a marketplace name; use lowercase letters, digits, '.' and '-'`;let r=u(t.trim());if(!r.ok)return r.message;let n=tF(tU());return void 0!==n[e]?`a marketplace named '${e}' is already configured; remove it first or choose another name`:(tR({...n,[e]:r.source}),null)},[]),s=(0,a.useCallback)(e=>{if(e===c)return`'${c}' is the built-in marketplace and cannot be removed`;let t=tF(tU());if(void 0===t[e])return`no marketplace named '${e}' is configured`;let{[e]:r,...n}=t;return tR(n),null},[]),i=(0,a.useCallback)(e=>u(e.trim()),[]);return(0,a.useMemo)(()=>({marketplaces:t,unreadable:r,add:n,remove:s,parseSource:i}),[t,r,n,s,i])}(),[h,g]=(0,a.useState)(c),b=s.find(e=>e.name===h)??s[0],[$,y]=(0,a.useState)(null),j=function(e,t={}){let r=(0,tp.useStigmer)(),{fetchImpl:n}=t,s=null===e?null:"official"===e.type?"official":`${e.repo}@${e.ref??""}`,{data:i,isLoading:a,error:o,refetch:l}=(0,tg.useFetch)(e?()=>tT(e,r,n?{fetchImpl:n}:{}):null,[s,r,n],null);return{marketplace:i?.marketplace??null,warnings:i?.warnings??t_,opened:i,isLoading:a,error:o,refetch:l}}(b?.source??null,r?{fetchImpl:r}:{}),k=(0,a.useMemo)(()=>s.map(e=>({id:e.name,label:e.name})),[s]),x=(0,a.useCallback)(e=>{let t=p(e);return null===t&&h===e&&g(c),t},[p,h]);return(0,i.jsxs)("div",{className:(0,l.cn)("stg:flex stg:flex-col stg:gap-6",n),children:[(0,i.jsx)(tJ,{onAdd:(e,t)=>{let r=d(e,t);return null===r&&g(e),r}}),o.length>0&&(0,i.jsxs)("div",{role:"alert",className:"stg:rounded-md stg:border stg:border-border stg:p-3 stg:text-sm",children:[(0,i.jsx)("p",{className:"stg:font-medium stg:text-foreground",children:"Remembered but unreadable:"}),(0,i.jsx)("ul",{className:(0,l.cn)(v.UNSTYLED_LIST,"stg:mt-1 stg:space-y-1"),children:o.map(e=>(0,i.jsxs)("li",{className:"stg:flex stg:items-center stg:justify-between stg:gap-3 stg:text-muted-foreground",children:[(0,i.jsxs)("span",{children:[(0,i.jsx)("span",{className:"stg:font-medium stg:text-foreground",children:e.name}),": ",e.reason]}),(0,i.jsx)(m.Button,{variant:"ghost",size:"xs",onClick:()=>p(e.name),children:"Forget"})]},e.name))})]}),b&&(0,i.jsx)(w.Tabs,{tabs:k,activeTab:b.name,onTabChange:g,"aria-label":"Marketplaces",children:(0,i.jsx)(tB,{marketplace:b,read:j,onInstall:y,onRemove:b.name===c?void 0:()=>x(b.name)})}),b&&(0,i.jsx)(tv,{opened:j.opened,entryName:$,marketplaceName:b.name,org:e,open:null!==$,onClose:()=>y(null),onInstalled:t})]})}function tB({marketplace:e,read:{marketplace:t,warnings:r,isLoading:n,error:s,refetch:a},onInstall:o,onRemove:c}){return(0,i.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-4 stg:pt-4",children:[(0,i.jsxs)("div",{className:"stg:flex stg:items-start stg:justify-between stg:gap-4",children:[(0,i.jsxs)("div",{className:"stg:min-w-0",children:[(0,i.jsx)("p",{className:"stg:text-sm stg:text-foreground",children:t?.description??(t?`Marketplace '${t.name}'`:"")}),(0,i.jsx)("p",{className:"stg:mt-0.5 stg:font-mono stg:text-xs stg:text-muted-foreground",children:function(e){switch(e.type){case"official":return"built in";case"github":return p(e);default:return e}}(e.source)})]}),c&&(0,i.jsx)(m.Button,{variant:"ghost",size:"sm",onClick:c,children:"Remove marketplace"})]}),n&&(0,i.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2 stg:text-sm stg:text-muted-foreground",role:"status",children:[(0,i.jsx)($.SpinnerIcon,{className:"stg:size-4"}),"Reading the marketplace…"]}),s&&(0,i.jsx)(g.ErrorMessage,{error:s,retry:a,title:"This marketplace cannot be read"}),t&&(0,i.jsxs)(i.Fragment,{children:[0===t.plugins.length?(0,i.jsx)("p",{className:"stg:text-sm stg:text-muted-foreground",children:"It offers no plugins this console can install."}):(0,i.jsx)("ul",{className:(0,l.cn)(v.UNSTYLED_LIST,"stg:divide-y stg:divide-border stg:overflow-hidden stg:rounded-lg stg:border stg:border-border"),"aria-label":"Plugins offered",children:t.plugins.map(e=>(0,i.jsx)(tW,{entry:e,onInstall:()=>o(e.name)},e.name))}),r.length>0&&(0,i.jsx)(tH,{warnings:r})]})]})}function tW({entry:e,onInstall:t}){return(0,i.jsxs)("li",{className:"stg:flex stg:items-center stg:justify-between stg:gap-4 stg:px-3 stg:py-2.5",children:[(0,i.jsxs)("div",{className:"stg:min-w-0",children:[(0,i.jsx)("p",{className:"stg:text-sm stg:font-medium stg:text-foreground",children:e.name}),e.description&&(0,i.jsx)("p",{className:"stg:mt-0.5 stg:line-clamp-2 stg:text-xs stg:text-muted-foreground",children:e.description})]}),(0,i.jsx)(m.Button,{variant:"outline",size:"sm",onClick:t,"aria-label":`Install ${e.name}`,children:"Install"})]})}function tH({warnings:e}){return(0,i.jsxs)("details",{className:"stg:text-sm",children:[(0,i.jsx)("summary",{className:"stg:cursor-pointer stg:text-muted-foreground",children:1===e.length?"1 entry cannot be installed":`${e.length} entries cannot be installed`}),(0,i.jsx)("ul",{className:"stg:mt-2 stg:list-disc stg:space-y-1 stg:pl-5 stg:text-muted-foreground",children:e.map((e,t)=>(0,i.jsx)("li",{children:e.message},`${e.kind}:${t}`))})]})}function tJ({onAdd:e}){let[t,r]=(0,a.useState)(""),[n,s]=(0,a.useState)(""),[o,l]=(0,a.useState)(null),c=`${(0,a.useId)()}-source-hint`;return(0,i.jsxs)("form",{className:"stg:flex stg:flex-col stg:gap-2",onSubmit:i=>{i.preventDefault();let a=e(t.trim(),n);l(a),null===a&&(r(""),s(""))},"aria-label":"Add a marketplace",children:[(0,i.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-2 stg:sm:flex-row stg:sm:items-end",children:[(0,i.jsx)(b.Field,{label:"GitHub repository",className:"stg:flex-1",children:(0,i.jsx)("input",{className:b.INPUT_CLASSES,value:n,onChange:e=>s(e.target.value),placeholder:"owner/repo or https://github.com/owner/repo","aria-describedby":c})}),(0,i.jsx)(b.Field,{label:"Name",className:"stg:sm:w-48",children:(0,i.jsx)("input",{className:b.INPUT_CLASSES,value:t,onChange:e=>r(e.target.value),placeholder:"cursor-plugins"})}),(0,i.jsx)(m.Button,{type:"submit",variant:"outline",size:"sm",disabled:""===t.trim()||""===n.trim(),children:"Add marketplace"})]}),(0,i.jsxs)("p",{id:c,className:"stg:text-xs stg:text-muted-foreground",children:["A source is ","a GitHub repository as 'owner/repo' or 'owner/repo@ref', or that repository's URL (https://github.com/owner/repo)",". It is remembered in this browser, as the CLI remembers its own."]}),o&&(0,i.jsx)("p",{role:"alert",className:"stg:text-xs stg:text-destructive",children:o})]})}var tq=e.i(297629),tZ=e.i(310057);e.s(["PluginInstallPage",0,function(){let e=(0,tq.useActiveOrgSlug)(),t=(0,o.useRouter)(),{setLabel:r}=(0,tZ.useBreadcrumbOverride)();return((0,a.useEffect)(()=>{r("Install plugin")},[r]),e)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"mb-6",children:[(0,i.jsx)("h1",{className:"text-foreground text-xl font-semibold",children:"Install a plugin"}),(0,i.jsxs)("p",{className:"text-muted-foreground mt-1 text-sm",children:["Browse a marketplace and install a plugin into ",e,". A Cursor, Claude Code or Codex plugin installs unchanged."]})]}),(0,i.jsx)(tG,{org:e,onInstalled:({plugin:e})=>t.push(`/library/plugins/${e.metadata?.org}/${e.metadata?.slug}`)})]}):null}],27805)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,297629,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(586108),i=e.i(941693);let n=(0,s.createContext)(null),a="stigmer:activeOrgSlug";function l(e){try{localStorage.setItem(a,e)}catch{}}function o(){let e=(0,s.useContext)(n);if(!e)throw Error("useOrg must be used within <OrgProvider>. Wrap your component tree with <OrgProvider> inside a <StigmerProvider>.");return e}e.s(["OrgProvider",0,function({children:e}){let o=(0,r.useStigmer)(),c=(0,i.useFetchCache)(),[d,g]=(0,s.useState)([]),[u,m]=(0,s.useState)(null),[p,x]=(0,s.useState)(!0),[h,f]=(0,s.useState)(null),b=(0,s.useRef)(0),v=(0,s.useCallback)(async e=>{let t=++b.current;x(!0),f(null);try{let s=(await o.organization.findMyOrganizations()).entries;if(t!==b.current)return;if(g(s),0===s.length)return void m(null);let r=e??function(){try{return localStorage.getItem(a)}catch{return null}}(),i=(r?s.find(e=>e.metadata?.slug===r):void 0)??s[0];m(i),i.metadata?.slug&&l(i.metadata.slug)}catch(e){if(t!==b.current)return;f(e instanceof Error?e.message:"Failed to load organizations"),g([]),m(null)}finally{t===b.current&&x(!1)}},[o]);(0,s.useEffect)(()=>{v()},[v]);let R=(0,s.useCallback)(e=>{m(e),e.metadata?.slug&&l(e.metadata.slug)},[]),y=(0,s.useRef)(null),I=u?.metadata?.slug??null;(0,s.useEffect)(()=>{let e=y.current;y.current=I,null!==e&&null!==I&&e!==I&&c?.clear()},[I,c]);let w=(0,s.useMemo)(()=>({orgs:d,activeOrg:u,setActiveOrg:R,isLoading:p,error:h,retry:v,refresh:v}),[d,u,R,p,h,v]);return(0,t.jsx)(n.Provider,{value:w,children:e})},"useActiveOrgId",0,function(){let{activeOrg:e}=o();return e?.metadata?.id??""},"useActiveOrgSlug",0,function(){let{activeOrg:e}=o();return e?.metadata?.slug??""},"useOrg",0,o])},618566,(e,t,s)=>{t.exports=e.r(976562)},869803,e=>{"use strict";e.s(["UNSTYLED_FIELDSET",0,"stg:m-0 stg:min-w-0 stg:p-0","UNSTYLED_LIST",0,"stg:m-0 stg:list-none stg:p-0"])},725842,122244,128486,e=>{"use strict";var t=e.i(424407),s=e.i(304532),r=e.i(421415),i=e.i(988158),n=e.i(430182),a=e.i(761867);let l=(0,t.fileDesc)("Ci1haS9zdGlnbWVyL2lhbS9pZGVudGl0eXByb3ZpZGVyL3YxL3NwZWMucHJvdG8SImFpLnN0aWdtZXIuaWFtLmlkZW50aXR5cHJvdmlkZXIudjEioAMKFElkZW50aXR5UHJvdmlkZXJTcGVjEh4KDGRpc3BsYXlfbmFtZRgBIAEoCUIIukgFcgMYyAESGgoIandrc191cmkYAiABKAlCCLpIBXIDGIAQEhcKD2FsbG93ZWRfaXNzdWVycxgDIAMoCRIjChFleHBlY3RlZF9hdWRpZW5jZRgEIAEoCUIIukgFcgMYyAESGQoRcmF0ZV9saW1pdF9idWRnZXQYBSABKAUSIwoRdXNlcmluZm9fZW5kcG9pbnQYBiABKAlCCLpIBXIDGIAQEhcKD2lzX3Nzb19wcm92aWRlchgHIAEoCBIgCg5vaWRjX2NsaWVudF9pZBgIIAEoCUIIukgFcgMYgAISHwoXYXV0b19wcm92aXNpb25fYWNjb3VudHMYCSABKAgSGQoRYXV0b19ncmFudF9vbl9vcmcYCiABKAgSMwoPYXV0b19ncmFudF9yb2xlGAsgASgOMhouYWkuc3RpZ21lci5pYW0udjEuSWFtUm9sZRIiChB0ZW5hbnRfb3JnX2NsYWltGAwgASgJQgi6SAVyAxiAAmIGcHJvdG8z",[n.file_ai_stigmer_iam_v1_enum,a.file_buf_validate_validate]),o=(0,s.messageDesc)(l,0);e.s(["IdentityProviderSpecSchema",0,o,"file_ai_stigmer_iam_identityprovider_v1_spec",0,l],122244);let c=(0,t.fileDesc)("CixhaS9zdGlnbWVyL2lhbS9pZGVudGl0eXByb3ZpZGVyL3YxL2FwaS5wcm90bxIiYWkuc3RpZ21lci5pYW0uaWRlbnRpdHlwcm92aWRlci52MSLHAgoQSWRlbnRpdHlQcm92aWRlchItCgthcGlfdmVyc2lvbhgBIAEoCUIYukgVchMKEWlhbS5zdGlnbWVyLmFpL3YxEiUKBGtpbmQYAiABKAlCF7pIFHISChBJZGVudGl0eVByb3ZpZGVyEk0KCG1ldGFkYXRhGAMgASgLMjMuYWkuc3RpZ21lci5jb21tb25zLmFwaXJlc291cmNlLkFwaVJlc291cmNlTWV0YWRhdGFCBrpIA8gBARJGCgRzcGVjGAQgASgLMjguYWkuc3RpZ21lci5pYW0uaWRlbnRpdHlwcm92aWRlci52MS5JZGVudGl0eVByb3ZpZGVyU3BlYxJGCgZzdGF0dXMYBSABKAsyNi5haS5zdGlnbWVyLmNvbW1vbnMuYXBpcmVzb3VyY2UuQXBpUmVzb3VyY2VBdWRpdFN0YXR1c2IGcHJvdG8z",[r.file_ai_stigmer_commons_apiresource_metadata,i.file_ai_stigmer_commons_apiresource_status,l,a.file_buf_validate_validate]),d=(0,s.messageDesc)(c,0);e.s(["IdentityProviderSchema",0,d,"file_ai_stigmer_iam_identityprovider_v1_api",0,c],128486);let g=(0,t.fileDesc)("CithaS9zdGlnbWVyL2lhbS9pZGVudGl0eXByb3ZpZGVyL3YxL2lvLnByb3RvEiJhaS5zdGlnbWVyLmlhbS5pZGVudGl0eXByb3ZpZGVyLnYxIi4KEklkZW50aXR5UHJvdmlkZXJJZBIYCgV2YWx1ZRgBIAEoCUIJukgGcgQQARhAIloKEUlkZW50aXR5UHJvdmlkZXJzEkUKB2VudHJpZXMYASADKAsyNC5haS5zdGlnbWVyLmlhbS5pZGVudGl0eXByb3ZpZGVyLnYxLklkZW50aXR5UHJvdmlkZXIicgoUSWRlbnRpdHlQcm92aWRlckxpc3QSEwoLdG90YWxfcGFnZXMYASABKAUSRQoHZW50cmllcxgCIAMoCzI0LmFpLnN0aWdtZXIuaWFtLmlkZW50aXR5cHJvdmlkZXIudjEuSWRlbnRpdHlQcm92aWRlciI3Ch9MaXN0SWRlbnRpdHlQcm92aWRlcnNCeU9yZ0lucHV0EhQKA29yZxgBIAEoCUIHukgEcgIQASItChVPcmdhbml6YXRpb25Tc29Mb29rdXASFAoDb3JnGAEgASgJQge6SARyAhABImoKD1Nzb1Byb3ZpZGVySW5mbxIUCgxkaXNwbGF5X25hbWUYASABKAkSFgoOb2lkY19jbGllbnRfaWQYAiABKAkSDgoGaXNzdWVyGAMgASgJEhkKEWV4cGVjdGVkX2F1ZGllbmNlGAQgASgJYgZwcm90bzM",[c,a.file_buf_validate_validate]),u=(0,s.messageDesc)(g,3),m=(0,s.messageDesc)(g,4);e.s(["ListIdentityProvidersByOrgInputSchema",0,u,"OrganizationSsoLookupSchema",0,m,"file_ai_stigmer_iam_identityprovider_v1_io",0,g],725842)},63209,e=>{"use strict";let t=(0,e.i(475254).default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);e.s(["AlertCircle",0,t],63209)},361353,e=>{"use strict";e.s(["formatRelativeTime",0,function(e,t){let s=t??new Date,r=s.getTime()-e.getTime();if(r<6e4)return"now";let i=Math.floor(r/6e4);if(i<60)return`${i}m`;let n=Math.floor(i/60);if(n<24)return`${n}h`;let a=Math.floor(n/24);if(a<7)return`${a}d`;let l=e.getFullYear()===s.getFullYear();return e.toLocaleDateString(void 0,{month:"short",day:"numeric",...l?{}:{year:"numeric"}})}])},691444,e=>{"use strict";var t=e.i(430182);let s={[t.IamRole.iam_role_unspecified]:"unspecified",[t.IamRole.owner]:"owner",[t.IamRole.admin]:"admin",[t.IamRole.member]:"member",[t.IamRole.viewer]:"viewer",[t.IamRole.participant]:"participant"},r={owner:t.IamRole.owner,admin:t.IamRole.admin,member:t.IamRole.member,viewer:t.IamRole.viewer,participant:t.IamRole.participant},i={[t.IamRole.iam_role_unspecified]:"Unspecified",[t.IamRole.owner]:"Owner",[t.IamRole.admin]:"Admin",[t.IamRole.member]:"Member",[t.IamRole.viewer]:"Viewer",[t.IamRole.participant]:"Participant"},n={[t.IamRole.iam_role_unspecified]:"",[t.IamRole.owner]:"Full access including delete and access management",[t.IamRole.admin]:"Edit access and member management",[t.IamRole.member]:"Standard access to organization resources",[t.IamRole.viewer]:"Read-only access",[t.IamRole.participant]:"Reply to customers and manage conversation takeover"};e.s(["iamRoleDescription",0,function(e){return n[e]??""},"iamRoleDisplayName",0,function(e){return i[e]??"Unknown"},"iamRoleFromString",0,function(e){return r[e]},"iamRoleToString",0,function(e){return s[e]??"unspecified"}])},146312,818094,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(893976),i=e.i(869803),n=e.i(170255),a=e.i(430182);let l=new Map([[n.ApiResourceKind.identity_provider,[a.IamRole.owner,a.IamRole.viewer]],[n.ApiResourceKind.oauth_app,[a.IamRole.owner,a.IamRole.viewer]],[n.ApiResourceKind.platform_client,[a.IamRole.owner,a.IamRole.viewer]],[n.ApiResourceKind.organization,[a.IamRole.owner,a.IamRole.admin,a.IamRole.member,a.IamRole.viewer]],[n.ApiResourceKind.agent,[a.IamRole.owner,a.IamRole.viewer]],[n.ApiResourceKind.session,[a.IamRole.owner,a.IamRole.viewer]],[n.ApiResourceKind.skill,[a.IamRole.owner,a.IamRole.viewer]],[n.ApiResourceKind.mcp_server,[a.IamRole.owner,a.IamRole.viewer]],[n.ApiResourceKind.agent_instance,[a.IamRole.owner,a.IamRole.viewer]],[n.ApiResourceKind.agent_share,[a.IamRole.owner,a.IamRole.viewer]],[n.ApiResourceKind.agent_channel,[a.IamRole.owner,a.IamRole.viewer,a.IamRole.participant]],[n.ApiResourceKind.channel_app,[a.IamRole.owner,a.IamRole.viewer]],[n.ApiResourceKind.workflow,[a.IamRole.owner,a.IamRole.viewer]],[n.ApiResourceKind.workflow_instance,[a.IamRole.owner,a.IamRole.viewer]],[n.ApiResourceKind.workflow_execution,[a.IamRole.owner,a.IamRole.viewer]],[n.ApiResourceKind.environment,[a.IamRole.owner,a.IamRole.viewer]],[n.ApiResourceKind.artifact,[a.IamRole.owner,a.IamRole.viewer]],[n.ApiResourceKind.schedule,[a.IamRole.owner,a.IamRole.viewer]],[n.ApiResourceKind.plugin,[a.IamRole.owner,a.IamRole.viewer]],[n.ApiResourceKind.project,[a.IamRole.owner,a.IamRole.viewer]]]),o=Object.freeze([]);function c(e){return l.get(e)??o}e.s(["getGrantableRoles",0,c,"hasGrantableRoles",0,function(e){let t=l.get(e);return void 0!==t&&t.length>0}],818094);var d=e.i(691444);e.s(["RoleSelector",0,function({kind:e,onSelect:n,selected:a,defaultRole:l,disabled:o=!1,className:g}){let u=(0,s.useId)(),{options:m,selected:p,select:x}=function(e,t){let[r,i]=(0,s.useState)(t??null),n=(0,s.useMemo)(()=>null===e?[]:c(e).map(e=>({role:e,label:(0,d.iamRoleDisplayName)(e),description:(0,d.iamRoleDescription)(e),value:(0,d.iamRoleToString)(e)})),[e]),a=(0,s.useMemo)(()=>null!==r?(0,d.iamRoleToString)(r):"",[r]);return{options:n,selected:r,selectedValue:a,select:(0,s.useCallback)(e=>i(e),[]),clear:(0,s.useCallback)(()=>i(null),[]),hasOptions:n.length>0}}(e,l),h=void 0!==a?a:p;return 0===m.length?null:(0,t.jsxs)("fieldset",{className:(0,r.cn)(i.UNSTYLED_FIELDSET,"stg:space-y-1.5",g),children:[(0,t.jsx)("legend",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:"Role"}),(0,t.jsx)("div",{className:"stg:flex stg:flex-wrap stg:gap-2",children:m.map(e=>{let s=h===e.role;return(0,t.jsxs)("label",{className:(0,r.cn)("stg:inline-flex stg:cursor-pointer stg:flex-col stg:rounded-md stg:border stg:px-3 stg:py-1.5 stg:text-xs stg:transition-colors",s?"stg:border-primary stg:bg-primary-subtle stg:text-primary stg:font-medium":"stg:border-input stg:bg-background stg:text-muted-foreground stg:hover:border-border stg:hover:text-foreground",o&&"stg:pointer-events-none stg:opacity-50"),children:[(0,t.jsx)("input",{type:"radio",name:u,value:e.value,checked:s,disabled:o,onChange:()=>{var t;x(t=e.role),n?.(t)},className:"stg:sr-only"}),(0,t.jsx)("span",{children:e.label}),(0,t.jsx)("span",{className:"stg:text-[0.625rem] stg:text-muted-foreground stg:font-normal stg:mt-0.5",children:e.description})]},e.value)})})]})}],146312)},564035,288441,890079,32011,e=>{"use strict";var t=e.i(891287),s=e.i(452026),r=e.i(632897),i=e.i(586108),n=e.i(583093);e.s(["useResourceAccess",0,function(e,a){let l=(0,i.useStigmer)(),o=e?.kind??null,c=e?.id??null,d=a?.includeInherited??!1,{data:g,isLoading:u,isRefetching:m,error:p,refetch:x}=(0,n.useFetch)(o&&c?()=>{let e=(0,t.create)(s.ListResourceAccessInputSchema,{resource:(0,t.create)(r.ApiResourceRefSchema,{kind:o,id:c}),includeInherited:d});return l.iamPolicy.listResourceAccessByPrincipal(e).then(e=>[...e.entries])}:null,[o,c,d,l],[]);return{members:g,isLoading:u,isRefetching:m,error:p,refetch:x}}],564035);var a=e.i(271645),l=e.i(326283);e.s(["useCreateIamPolicy",0,function(){let e=(0,i.useStigmer)(),[t,s]=(0,a.useState)(!1),[r,n]=(0,a.useState)(null),o=(0,a.useCallback)(()=>n(null),[]);return{create:(0,a.useCallback)(async t=>{s(!0),n(null);try{return await e.iamPolicy.create(t)}catch(e){throw n((0,l.toError)(e)),e}finally{s(!1)}},[e]),isCreating:t,error:r,clearError:o}}],288441),e.s(["useDeleteIamPolicy",0,function(){let e=(0,i.useStigmer)(),[t,s]=(0,a.useState)(!1),[r,n]=(0,a.useState)(null),o=(0,a.useCallback)(()=>n(null),[]);return{remove:(0,a.useCallback)(async t=>{s(!0),n(null);try{return await e.iamPolicy.delete(t)}catch(e){throw n((0,l.toError)(e)),e}finally{s(!1)}},[e]),isDeleting:t,error:r,clearError:o}}],890079);var o=e.i(843476),c=e.i(893976),d=e.i(188482);function g(e){return e?.identityOrigin?.providerDisplayName??""}e.s(["ProviderBadge",0,function({principal:e,className:t}){let s=g(e);return s?(0,o.jsxs)(d.Tooltip,{children:[(0,o.jsx)(d.TooltipTrigger,{render:(0,o.jsx)("span",{className:(0,c.cn)("stg:inline-flex stg:items-center stg:rounded stg:px-1.5 stg:py-0.5 stg:text-[0.6rem] stg:font-medium","stg:bg-muted-subtle stg:text-muted-foreground",t)}),children:s}),(0,o.jsx)(d.TooltipContent,{side:"top",children:`Identity provider: ${s}`})]}):null},"providerLabel",0,g],32011)},213149,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(893976),i=e.i(468806),n=e.i(818094),a=e.i(869803),l=e.i(610595),o=e.i(597744),c=e.i(891287),d=e.i(632897),g=e.i(564035),u=e.i(288441),m=e.i(890079),p=e.i(691444),x=e.i(146312),h=e.i(32011);function f({orgId:e,value:i,onChange:n,excludePrincipalIds:o,disabled:c=!1,className:d}){let u=(0,s.useId)(),{members:m,isLoading:p,error:x}=(0,g.useResourceAccess)(e?{kind:"organization",id:e}:null),[v,R]=(0,s.useState)(""),[y,I]=(0,s.useState)(!1),[w,S]=(0,s.useState)(0),k=(0,s.useRef)(null),j=(0,s.useMemo)(()=>new Set(o??[]),[o]),A=(0,s.useMemo)(()=>{let e=new Map;for(let t of m){let s=t.principal;s&&"identity_account"===s.kind&&s.id&&(e.has(s.id)||e.set(s.id,s))}return[...e.values()]},[m]),N=(0,s.useMemo)(()=>{let e=new Map;for(let t of A){let s=t.email?.toLowerCase();s&&e.set(s,(e.get(s)??0)+1)}return new Set([...e.entries()].filter(([,e])=>e>1).map(([e])=>e))},[A]),C=(0,s.useMemo)(()=>{let e=v.trim().toLowerCase();return e?A.filter(t=>{let s=(t.name??"").toLowerCase(),r=(t.email??"").toLowerCase();return s.includes(e)||r.includes(e)}):A},[A,v]),G=(0,s.useCallback)(e=>{j.has(e.id)||(n({id:e.id,name:e.name||e.email||e.id,email:e.email,view:e}),R(""),I(!1))},[j,n]),_=(0,s.useCallback)(e=>{if("ArrowDown"===e.key)e.preventDefault(),I(!0),S(e=>Math.min(e+1,C.length-1));else if("ArrowUp"===e.key)e.preventDefault(),S(e=>Math.max(e-1,0));else if("Enter"===e.key){e.preventDefault();let t=C[w];t&&!j.has(t.id)&&G(t)}else"Escape"===e.key&&I(!1)},[C,w,j,G]);return i?(0,t.jsxs)("div",{className:(0,r.cn)("stg:space-y-1",d),children:[(0,t.jsx)("span",{className:"stg:block stg:text-xs stg:font-medium stg:text-foreground",children:"Person"}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-between stg:gap-2 stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-2.5 stg:py-1.5",children:[(0,t.jsxs)("div",{className:"stg:flex stg:min-w-0 stg:items-center stg:gap-2",children:[(0,t.jsx)("div",{className:"stg:flex stg:h-6 stg:w-6 stg:shrink-0 stg:items-center stg:justify-center stg:rounded-full stg:bg-muted stg:text-[0.6rem] stg:font-medium stg:text-muted-foreground","aria-hidden":"true",children:(i.name[0]??"?").toUpperCase()}),(0,t.jsxs)("div",{className:"stg:min-w-0",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-1.5",children:[(0,t.jsx)("span",{className:"stg:truncate stg:text-xs stg:text-foreground",children:i.name}),(0,t.jsx)(h.ProviderBadge,{principal:i.view})]}),i.email&&i.email!==i.name&&(0,t.jsx)("span",{className:"stg:block stg:truncate stg:text-[0.6rem] stg:text-muted-foreground",children:i.email})]})]}),(0,t.jsx)("button",{type:"button",onClick:()=>n(null),disabled:c,"aria-label":"Clear selected person",className:(0,r.cn)("stg:shrink-0 stg:rounded stg:p-0.5 stg:text-muted-foreground","stg:hover:text-foreground stg:hover:bg-accent-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:(0,t.jsx)(b,{})})]})]}):(0,t.jsxs)("div",{className:(0,r.cn)("stg:space-y-1",d),children:[(0,t.jsx)("label",{htmlFor:`${u}-input`,className:"stg:block stg:text-xs stg:font-medium stg:text-foreground",children:"Person"}),(0,t.jsxs)("div",{className:"stg:relative",children:[(0,t.jsx)("input",{id:`${u}-input`,ref:k,type:"text",role:"combobox","aria-expanded":y,"aria-controls":u,"aria-autocomplete":"list",autoComplete:"off",value:v,onChange:e=>{R(e.target.value),I(!0),S(0)},onFocus:()=>I(!0),onBlur:()=>{window.setTimeout(()=>I(!1),120)},onKeyDown:_,placeholder:"Search by name or email",disabled:c||p,autoFocus:!0,className:(0,r.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-2.5 stg:py-1.5 stg:text-xs stg:text-foreground","stg:placeholder:text-muted-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-1 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50")}),y&&(0,t.jsxs)("ul",{id:u,role:"listbox","aria-label":"Organization members",className:(0,r.cn)(a.UNSTYLED_LIST,"stg:absolute stg:z-10 stg:mt-1 stg:max-h-56 stg:w-full stg:overflow-auto stg:rounded-md stg:border stg:border-border stg:bg-popover stg:py-1 stg:shadow-md"),children:[p&&(0,t.jsx)("li",{className:"stg:px-2.5 stg:py-2 stg:text-xs stg:text-muted-foreground",children:"Loading members…"}),!p&&x&&(0,t.jsx)("li",{className:"stg:px-2.5 stg:py-2 stg:text-[0.65rem] stg:text-destructive",role:"alert",children:(0,l.getUserMessage)(x)}),!p&&!x&&0===C.length&&(0,t.jsx)("li",{className:"stg:px-2.5 stg:py-2 stg:text-xs stg:text-muted-foreground",children:v.trim()?"No members match your search.":"No members to share with."}),!p&&!x&&C.map((e,s)=>{let i=j.has(e.id),n=s===w,a=e.name||e.email||e.id,l=!!(0,h.providerLabel)(e)&&(e.identityOrigin?.providerDisplayName!=="Stigmer"||!!e.email&&N.has(e.email.toLowerCase()));return(0,t.jsxs)("li",{role:"option","aria-selected":n,"aria-disabled":i,onMouseEnter:()=>S(s),onMouseDown:t=>{t.preventDefault(),i||G(e)},className:(0,r.cn)("stg:flex stg:items-center stg:justify-between stg:gap-2 stg:px-2.5 stg:py-1.5",i?"stg:cursor-not-allowed stg:opacity-50":"stg:cursor-pointer",n&&!i&&"stg:bg-accent-hover"),children:[(0,t.jsxs)("div",{className:"stg:flex stg:min-w-0 stg:items-center stg:gap-2",children:[(0,t.jsx)("div",{className:"stg:flex stg:h-6 stg:w-6 stg:shrink-0 stg:items-center stg:justify-center stg:rounded-full stg:bg-muted stg:text-[0.6rem] stg:font-medium stg:text-muted-foreground","aria-hidden":"true",children:(a[0]??"?").toUpperCase()}),(0,t.jsxs)("div",{className:"stg:min-w-0",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-1.5",children:[(0,t.jsx)("span",{className:"stg:truncate stg:text-xs stg:text-foreground",children:a}),l&&(0,t.jsx)(h.ProviderBadge,{principal:e})]}),e.email&&e.email!==a&&(0,t.jsx)("span",{className:"stg:block stg:truncate stg:text-[0.6rem] stg:text-muted-foreground",children:e.email})]})]}),i&&(0,t.jsx)("span",{className:"stg:shrink-0 stg:text-[0.6rem] stg:text-muted-foreground",children:"Has access"})]},e.id)})]})]})]})}function b(){return(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M4 4l8 8M12 4l-8 8"})})}var v=e.i(379410);function R({resourceKind:e,resourceKindString:i,resourceId:n,orgId:a,excludePrincipalIds:o,onGranted:g,onCancel:m,className:h}){let{create:b,isCreating:y,error:I,clearError:w}=(0,u.useCreateIamPolicy)(),[S,k]=(0,s.useState)(null),[j,A]=(0,s.useState)(null),N=null!==S&&null!==j&&!y,C=(0,s.useCallback)(async e=>{if(e.preventDefault(),N&&null!==j&&null!==S){w();try{let e=(0,c.create)(d.IamPolicySpecSchema,{principal:(0,c.create)(d.ApiResourceRefSchema,{kind:"identity_account",id:S.id}),resource:(0,c.create)(d.ApiResourceRefSchema,{kind:i,id:n}),relation:(0,p.iamRoleToString)(j)}),t=await b(e);g?.(t)}catch{}}},[N,j,S,i,n,b,w,g]);return(0,t.jsxs)("form",{onSubmit:C,className:(0,r.cn)("stg:space-y-3",h),children:[(0,t.jsxs)("div",{className:"stg:space-y-3",children:[(0,t.jsx)(f,{orgId:a,value:S,onChange:k,excludePrincipalIds:o,disabled:y}),(0,t.jsx)(x.RoleSelector,{kind:e,selected:j,onSelect:A,disabled:y})]}),I&&(0,t.jsx)("p",{className:"stg:text-destructive stg:text-[0.65rem]",role:"alert",children:(0,l.getUserMessage)(I)}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,t.jsxs)("button",{type:"submit",disabled:!N,className:(0,r.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-md stg:px-3 stg:py-1.5 stg:text-xs stg:font-medium","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:disabled:pointer-events-none stg:disabled:opacity-40"),children:[y&&(0,t.jsx)(v.SpinnerIcon,{size:12}),"Grant access"]}),m&&(0,t.jsx)("button",{type:"button",onClick:m,disabled:y,className:(0,r.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-xs","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:"Cancel"})]})]})}var y=e.i(590150);function I({resource:e,resourceKindString:i,resourceKind:p,orgId:x,className:h}){let{accessList:f,isLoading:b,fetchError:v,revokeAccess:S,isRevoking:k,revokeError:j,refetch:A,hasGrantableRoles:N}=function(e){var t;let r=(0,s.useMemo)(()=>e?{kind:e.kind,id:e.id}:null,[e?.kind,e?.id]),{members:i,isLoading:a,isRefetching:l,error:o,refetch:p}=(0,g.useResourceAccess)(r),{roles:x,hasRoles:h}=(t=e?.resourceKind??null,(0,s.useMemo)(()=>null===t?{roles:[],hasRoles:!1}:{roles:(0,n.getGrantableRoles)(t),hasRoles:(0,n.hasGrantableRoles)(t)},[t])),{create:f,isCreating:b,error:v,clearError:R}=(0,u.useCreateIamPolicy)(),{remove:y,isDeleting:I,error:w,clearError:S}=(0,m.useDeleteIamPolicy)(),k=(0,s.useRef)(e);k.current=e;let j=(0,s.useCallback)(async(e,t)=>{let s=k.current;if(!s)return;let r=(0,c.create)(d.IamPolicySpecSchema,{principal:(0,c.create)(d.ApiResourceRefSchema,{kind:"identity_account",id:e}),resource:(0,c.create)(d.ApiResourceRefSchema,{kind:s.kind,id:s.id}),relation:t});await f(r),p()},[f,p]);return{accessList:i,isLoading:a,isRefetching:l,fetchError:o,grantableRoles:x,hasGrantableRoles:h,grantAccess:j,isGranting:b,grantError:v,revokeAccess:(0,s.useCallback)(async(e,t)=>{let s=k.current;if(!s)return;let r=(0,c.create)(d.IamPolicySpecSchema,{principal:(0,c.create)(d.ApiResourceRefSchema,{kind:"identity_account",id:e}),resource:(0,c.create)(d.ApiResourceRefSchema,{kind:s.kind,id:s.id}),relation:t});await y(r),p()},[y,p]),isRevoking:I,revokeError:w,refetch:p,clearErrors:(0,s.useCallback)(()=>{R(),S()},[R,S])}}(e),C=(0,o.useDeploymentMode)(),[G,_]=(0,s.useState)(!1);if("local"===C&&"organization"!==e.kind)return(0,t.jsxs)("p",{className:(0,r.cn)("stg:text-xs stg:text-muted-foreground",h),children:["This edition does not share ",i.replaceAll("_"," "),"s with individual people. Sharing with specific people is available in Stigmer Enterprise and Cloud."]});let W=f.map(e=>e.principal?.id).filter(e=>!!e),Z={kind:i,id:e.id};return(0,t.jsxs)("div",{className:(0,r.cn)("stg:flex stg:flex-col stg:gap-4",h),children:[(0,t.jsxs)("div",{className:"stg:space-y-1",children:[(0,t.jsx)("p",{className:"stg:text-xs stg:text-muted-foreground",children:b?"Loading access list...":`${f.length} ${1===f.length?"person":"people"} with access`}),v&&(0,t.jsx)("p",{className:"stg:text-destructive stg:text-[0.65rem]",role:"alert",children:(0,l.getUserMessage)(v)}),!b&&f.length>0&&(0,t.jsx)("ul",{className:(0,r.cn)(a.UNSTYLED_LIST,"stg:space-y-1 stg:mt-2"),"aria-label":"People with access",children:f.map(e=>(0,t.jsx)(w,{entry:e,grantGate:Z,onRevoke:S,isRevoking:k},e.principal?.id??"unknown"))}),j&&(0,t.jsx)("p",{className:"stg:text-destructive stg:text-[0.65rem]",role:"alert",children:(0,l.getUserMessage)(j)})]}),N&&(0,t.jsx)(y.PermissionGate,{resource:Z,relation:"can_grant_access",children:(0,t.jsx)("div",{className:"stg:border-t stg:border-border stg:pt-3",children:G?(0,t.jsx)(R,{resourceKind:p,resourceKindString:i,resourceId:e.id,orgId:x,excludePrincipalIds:W,onGranted:()=>{_(!1),A()},onCancel:()=>_(!1)}):(0,t.jsx)("button",{type:"button",onClick:()=>_(!0),className:(0,r.cn)("stg:w-full stg:rounded-md stg:px-3 stg:py-1.5 stg:text-xs stg:font-medium stg:text-center","stg:border stg:border-dashed stg:border-border","stg:text-muted-foreground stg:hover:text-foreground stg:hover:border-foreground/30","stg:hover:bg-accent-hover stg:transition-colors"),children:"+ Add people"})})})]})}function w({entry:e,grantGate:i,onRevoke:n,isRevoking:a}){let l=e.principal,o=e.roles,c=l?.name||l?.email||l?.id||"Unknown",d=o[0]?.role,g=(0,s.useCallback)(async()=>{l?.id&&d?.code&&await n(l.id,d.code)},[l?.id,d?.code,n]);return(0,t.jsxs)("li",{className:"stg:flex stg:items-center stg:justify-between stg:gap-2 stg:rounded-md stg:px-2 stg:py-1.5 stg:hover:bg-accent-hover stg:group",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2 stg:min-w-0",children:[(0,t.jsx)("div",{className:"stg:h-6 stg:w-6 stg:rounded-full stg:bg-muted stg:flex stg:items-center stg:justify-center stg:text-[0.6rem] stg:font-medium stg:text-muted-foreground stg:shrink-0","aria-hidden":"true",children:(l?.name?.[0]??l?.email?.[0]??"?").toUpperCase()}),(0,t.jsxs)("div",{className:"stg:min-w-0",children:[(0,t.jsx)("p",{className:"stg:text-xs stg:text-foreground stg:truncate",children:c}),l?.email&&l.name&&(0,t.jsx)("p",{className:"stg:text-[0.6rem] stg:text-muted-foreground stg:truncate",children:l.email})]})]}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-1.5 stg:shrink-0",children:[(0,t.jsx)("span",{className:"stg:text-[0.6rem] stg:text-muted-foreground stg:capitalize",children:d?.name??d?.code??"—"}),(0,t.jsx)(y.PermissionGate,{resource:i,relation:"can_grant_access",children:(0,t.jsx)("button",{type:"button",onClick:g,disabled:a,"aria-label":`Remove ${c}'s access`,className:(0,r.cn)("stg:rounded stg:p-0.5 stg:text-muted-foreground stg:opacity-0 stg:group-hover:opacity-100","stg:hover:text-destructive stg:hover:bg-destructive/10","stg:disabled:pointer-events-none stg:disabled:opacity-50","stg:transition-opacity"),children:(0,t.jsx)(S,{})})})]})]})}function S(){return(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M4 4l8 8M12 4l-8 8"})})}var k=e.i(388023);function j({title:e,description:s,children:r}){return(0,t.jsxs)("section",{className:"stg:px-6 stg:py-4",children:[(0,t.jsx)("h3",{className:"stg:text-xs stg:font-medium stg:text-muted-foreground",children:e}),s&&(0,t.jsx)("p",{className:"stg:mt-0.5 stg:text-[0.65rem] stg:text-muted-foreground",children:s}),(0,t.jsx)("div",{className:"stg:mt-2.5",children:r})]})}function A(){return(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M4 4l8 8M12 4l-8 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}e.s(["ManageAccessDialog",0,function({open:e,onOpenChange:a,resource:l,visibility:o,extraSection:c}){let d=(0,s.useId)(),g=(0,s.useCallback)(()=>{a(!1)},[a]),u=(0,n.hasGrantableRoles)(l.kind);return(0,t.jsx)(i.DialogShell,{open:e,onOpenChange:a,width:"md","aria-labelledby":d,children:e&&(0,t.jsxs)("div",{className:"stg:flex stg:flex-col",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-start stg:justify-between stg:border-b stg:border-border stg:px-6 stg:py-4",children:[(0,t.jsxs)("div",{className:"stg:min-w-0",children:[(0,t.jsx)("h2",{id:d,className:"stg:text-base stg:font-semibold stg:text-foreground",children:"Manage access"}),l.name&&(0,t.jsx)("p",{className:"stg:mt-0.5 stg:truncate stg:text-xs stg:text-muted-foreground",children:l.name})]}),(0,t.jsx)("button",{type:"button",onClick:g,"aria-label":"Close",className:(0,r.cn)("stg:rounded-md stg:p-1 stg:text-muted-foreground","stg:hover:text-foreground stg:hover:bg-accent-hover","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring"),children:(0,t.jsx)(A,{})})]}),(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:divide-y stg:divide-border",children:[o&&(0,t.jsx)(j,{title:"General access",description:"Who can find and open this resource.",children:(0,t.jsx)(k.ResourceVisibilityControl,{kind:o.kind,resourceId:l.id,visibility:o.current,org:o.org,onChanged:o.onChanged})}),u&&(0,t.jsx)(j,{title:"People with access",children:(0,t.jsx)(I,{resource:{kind:l.kindString,id:l.id,resourceKind:l.kind},resourceKindString:l.kindString,resourceKind:l.kind,orgId:l.org})}),c&&(0,t.jsx)(j,{title:c.title,description:c.description,children:c.content})]}),(0,t.jsx)("div",{className:"stg:flex stg:items-center stg:justify-end stg:border-t stg:border-border stg:px-6 stg:py-3",children:(0,t.jsx)("button",{type:"button",onClick:g,className:(0,r.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring stg:focus:ring-offset-2"),children:"Done"})})]})})}],213149)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,940069,e=>{"use strict";let t={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(t[e])?"all":"org"},"writePersistedScope",0,function(e,s){localStorage.setItem(t[e],s)}])},531245,e=>{"use strict";let t=(0,e.i(475254).default)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);e.s(["Bot",0,t],531245)},658653,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(893976),n=e.i(468806),i=e.i(869803),a=e.i(846696),l=e.i(774079),o=e.i(901501),g=e.i(864652),c=e.i(586108),d=e.i(326283);let u=(0,s.lazy)(()=>e.A(573374).then(e=>({default:e.YamlEditor})));function m(){return(0,t.jsx)("div",{className:"stg:flex stg:h-56 stg:items-center stg:justify-center stg:rounded-md stg:border stg:border-border stg:bg-muted stg:text-sm stg:text-muted-foreground",children:"Loading editor…"})}function p({entry:e}){return(0,t.jsxs)("li",{className:"stg:rounded-md stg:border stg:border-border stg:bg-card stg:px-3 stg:py-2",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,t.jsx)("span",{className:"stg:inline-flex stg:rounded stg:bg-muted stg:px-1.5 stg:py-0.5 stg:text-xs stg:font-medium stg:text-muted-foreground",children:e.document.handler.displayName}),(0,t.jsx)("span",{className:"stg:text-sm stg:font-medium stg:text-foreground",children:e.document.name}),(0,t.jsx)(x,{entry:e}),(0,t.jsx)("span",{className:"stg:ml-auto stg:text-xs stg:text-muted-foreground",children:e.document.org})]}),e.document.warning&&(0,t.jsx)("p",{className:"stg:mt-1 stg:text-xs stg:text-muted-foreground",children:e.document.warning}),"failed"===e.status&&e.errorMessage&&(0,t.jsx)("p",{role:"alert",className:"stg:mt-1 stg:text-xs stg:text-destructive",children:e.errorMessage})]})}function x({entry:e}){let s=function(e){switch(e.status){case"applying":return"Applying…";case"applied":return"Applied";case"failed":return"Failed";case"skipped":return"Skipped";case"pending":switch(e.action){case"create":return"Will create";case"update":return"Will update";case"unknown":return"Create or update"}}}(e);return(0,t.jsx)("span",{className:(0,r.cn)("stg:inline-flex stg:rounded stg:px-1.5 stg:py-0.5 stg:text-xs stg:font-medium","failed"===e.status?"stg:bg-card stg:text-destructive stg:border stg:border-destructive":"stg:bg-muted stg:text-muted-foreground"),children:s})}e.s(["ApplyManifestDialog",0,function({open:e,onOpenChange:x,org:f,onApplied:h}){var b;let y=(0,s.useRef)(null),v=function(e){let t=(0,c.useStigmer)(),[r,n]=(0,s.useState)(""),[i,a]=(0,s.useState)(null),[l,u]=(0,s.useState)(null),[m,p]=(0,s.useState)(!1),[x,f]=(0,s.useState)(!1),h=(0,s.useRef)(e);h.current=e;let b=(0,s.useCallback)(e=>{n(e)},[]),y=(0,s.useCallback)(async e=>{let t;try{t=await e.text()}catch{n(""),a(null),u(`Failed to read ${e.name}.`);return}n(t)},[]),v=(0,s.useCallback)(()=>{n(""),a(null),u(null),p(!1),f(!1)},[]),j=(0,s.useRef)(0);(0,s.useEffect)(()=>{if(x)return;let e=++j.current;if(!r.trim()){a(null),u(null),p(!1);return}p(!0);let s=setTimeout(async()=>{let s;try{s=(0,g.parseManifest)(r,{org:h.current})}catch(t){j.current===e&&(a(null),u((0,d.toError)(t).message),p(!1));return}let n=await Promise.all(s.map(async e=>{let s;try{let r=await t.manifest.getByReference(e.handler.yamlKind,e.org,e.slug);s=null!==r?"update":"create"}catch{s="unknown"}return{document:e,action:s,status:"pending"}}));j.current===e&&(a(n),u(null),p(!1))},500);return()=>clearTimeout(s)},[r,t,x]);let N=(0,s.useCallback)(async()=>{if(!i||0===i.length)return[];j.current++,f(!0);let e=i.map(e=>({...e,status:"pending"})),s=()=>a([...e]),r=!1;for(let n=0;n<e.length;n++){if(r){e[n]={...e[n],status:"skipped"};continue}e[n]={...e[n],status:"applying"},s();try{let s=await t.manifest.apply(e[n].document);e[n]={...e[n],status:"applied",result:s}}catch(t){e[n]={...e[n],status:"failed",errorMessage:(0,d.toError)(t).message},r=!0}s()}return s(),f(!1),e},[i,t]),k=(0,s.useMemo)(()=>(0,o.containsRedactedSecrets)(r),[r]);return(0,s.useMemo)(()=>({content:r,setContent:b,readFile:y,entries:i,validationError:l,isValidating:m,hasRedactedSecrets:k,applyAll:N,isApplying:x,reset:v}),[r,b,y,i,l,m,k,N,x,v])}(f),{reset:j}=v;(0,s.useEffect)(()=>{e&&(j(),y.current&&(y.current.value=""))},[e,j]);let N=(0,s.useCallback)(()=>{x(!1);let e=(v.entries??[]).filter(e=>"applied"===e.status);e.length>0&&h?.(e)},[x,v.entries,h]),k=(0,s.useCallback)(e=>{e||N()},[N]),w=(0,s.useCallback)(e=>{let t=e.target.files?.[0];t&&v.readFile(t)},[v]),A=(0,s.useCallback)(async()=>{let e=await v.applyAll(),t=e.filter(e=>"applied"===e.status);e.length>0&&t.length===e.length&&(a.toast.success(1===t.length?"Resource applied":`${t.length} resources applied`),x(!1),h?.(t))},[v,x,h]),C=null!==v.entries&&v.entries.length>0&&!v.isValidating&&!v.isApplying;return(0,t.jsx)(n.DialogShell,{open:e,onOpenChange:k,width:"3xl","aria-label":"Apply YAML",children:(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-4 stg:p-6",children:[(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-1",children:[(0,t.jsx)("h3",{className:"stg:text-base stg:font-semibold stg:text-foreground",children:"Apply YAML"}),(0,t.jsx)("p",{className:"stg:text-sm stg:text-muted-foreground",children:"Paste a resource manifest or upload a file. Resources are created when new and updated when they already exist."})]}),(0,t.jsx)("input",{ref:y,type:"file",accept:".yaml,.yml,.json",onChange:w,className:(0,r.cn)("stg:w-full stg:rounded-md stg:border stg:border-input stg:bg-background stg:px-3 stg:py-2 stg:text-sm stg:text-foreground","stg:file:mr-3 stg:file:rounded-md stg:file:border-0 stg:file:bg-primary stg:file:px-2.5 stg:file:py-1 stg:file:text-xs stg:file:font-medium stg:file:text-primary-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),"aria-label":"Select manifest file"}),(0,t.jsx)(s.Suspense,{fallback:(0,t.jsx)(m,{}),children:(0,t.jsx)(u,{value:v.content,onChange:v.setContent,className:"stg:h-56"})}),v.hasRedactedSecrets&&(0,t.jsx)(l.RedactedSecretsNotice,{}),v.validationError&&(0,t.jsx)("div",{role:"alert",className:"stg:rounded-md stg:border stg:border-destructive stg:bg-card stg:px-3 stg:py-2.5 stg:text-sm stg:text-destructive",children:v.validationError}),v.entries&&v.entries.length>0&&(0,t.jsx)("ul",{className:(0,r.cn)(i.UNSTYLED_LIST,"stg:flex stg:max-h-48 stg:flex-col stg:gap-2 stg:overflow-y-auto"),"aria-label":"Resources to apply",children:v.entries.map((e,s)=>(0,t.jsx)(p,{entry:e},`${e.document.handler.yamlKind}/${e.document.org}/${e.document.slug}/${s}`))}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-between stg:gap-3",children:[(0,t.jsx)("p",{className:"stg:text-xs stg:text-muted-foreground","aria-live":"polite",children:v.isValidating?"Validating…":""}),(0,t.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:N,disabled:v.isApplying,className:(0,r.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium stg:transition-colors","stg:border stg:border-input stg:bg-background stg:text-foreground","stg:hover:bg-accent stg:hover:text-accent-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:"Cancel"}),(0,t.jsx)("button",{type:"button",onClick:A,disabled:!C,className:(0,r.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium stg:transition-colors","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:v.isApplying?"Applying…":(b=v.entries?.length??0)<=1?"Apply":`Apply ${b} resources`})]})]})]})})}],658653)},569074,e=>{"use strict";let t=(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,t],569074)},866677,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(522016),n=e.i(531245),i=e.i(107233),a=e.i(569074),l=e.i(541071),o=e.i(174886),g=e.i(778917),c=e.i(727612),d=e.i(451241),u=e.i(940069),m=e.i(610008),p=e.i(845132),x=e.i(658653),f=e.i(586108),h=e.i(297629),b=e.i(966205),y=e.i(10337),v=e.i(846696);let j=[{id:"name",header:"Name",cell:e=>(0,t.jsx)("span",{className:"font-medium text-foreground",children:e.name||e.slug}),sortable:!0,flex:2},{id:"org",header:"Organization",cell:e=>(0,t.jsx)("span",{className:"text-muted-foreground",children:e.org}),flex:1},{id:"description",header:"Description",cell:e=>(0,t.jsx)("span",{className:"line-clamp-1 text-muted-foreground",children:e.description||"—"}),flex:3}];e.s(["AgentListPage",0,function(){let e=(0,h.useActiveOrgSlug)(),N=(0,f.useStigmer)(),{navigateToDetail:k}=(0,d.useLibraryNavigation)(),{confirmState:w,confirm:A,handleConfirm:C,handleCancel:S}=(0,b.useConfirmAction)(),[M,T]=(0,s.useState)(()=>(0,u.readPersistedScope)("agents")),[P,R]=(0,s.useState)(!1),[z,D]=(0,s.useReducer)(e=>e+1,0),$=(0,s.useCallback)(async e=>{if(await A({title:`Delete ${e.name||e.slug}?`,description:"This permanently removes the agent and all of its instances. Past sessions and executions are preserved. This action cannot be undone.",confirmLabel:"Delete",variant:"destructive"}))try{await N.agent.delete(e.id),v.toast.success(`${e.name||e.slug} deleted`),D()}catch{v.toast.error("Failed to delete agent")}},[A,N]),I=(0,s.useCallback)(e=>{T(e),(0,u.writePersistedScope)("agents",e)},[]),L=(0,s.useMemo)(()=>e=>N.agent.list(e),[N]),E="/library/agents/new";return(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:"Agents"}),(0,t.jsx)("p",{className:"text-muted-foreground mt-1 text-sm",children:"Browse and manage agents in your organization."})]}),(0,t.jsx)(m.ResourceWorkbench,{refetchToken:z,listFn:L,org:e,columns:j,scope:M,onScopeChange:I,defaultViewMode:"cards",viewModes:["table","cards"],viewModeStorageKey:"stigmer:workbench:agents:viewMode",searchPlaceholder:"Search agents…",emptyIcon:(0,t.jsx)(n.Bot,{className:"size-10","aria-hidden":"true"}),emptyTitle:"No agents yet",emptyDescription:"Create an agent to define instructions, tools, skills, and execution behavior.",headerAction:(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("button",{type:"button",onClick:()=>R(!0),"aria-label":"Apply YAML",className:"inline-flex items-center justify-center rounded-md border border-input bg-background p-1.5 text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:(0,t.jsx)(a.Upload,{className:"size-3.5","aria-hidden":"true"})}),(0,t.jsxs)(r.default,{href:E,className:"inline-flex items-center gap-1.5 rounded-md bg-primary px-3 py-1.5 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,t.jsx)(i.Plus,{className:"size-3.5","aria-hidden":"true"}),"Create agent"]})]}),emptyAction:(0,t.jsxs)(r.default,{href:E,className:"inline-flex items-center gap-1.5 rounded-md bg-primary px-3 py-1.5 text-xs font-medium text-primary-foreground transition-colors hover:bg-primary-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[(0,t.jsx)(i.Plus,{className:"size-3.5","aria-hidden":"true"}),"Create agent"]}),onItemClick:e=>k("agents",e.org,e.slug),renderItemAction:e=>(0,t.jsx)("div",{onClick:e=>e.stopPropagation(),children:(0,t.jsxs)(p.ActionMenu,{children:[(0,t.jsx)(p.ActionMenu.Trigger,{"aria-label":`Actions for ${e.name||e.slug}`,children:(0,t.jsx)(l.MoreHorizontal,{className:"size-4"})}),(0,t.jsxs)(p.ActionMenu.Content,{children:[(0,t.jsx)(p.ActionMenu.Item,{icon:(0,t.jsx)(g.ExternalLink,{className:"size-4"}),onSelect:()=>k("agents",e.org,e.slug),children:"View details"}),(0,t.jsx)(p.ActionMenu.Item,{icon:(0,t.jsx)(o.Copy,{className:"size-4"}),onSelect:()=>{navigator.clipboard.writeText(`${e.org}/${e.slug}`),v.toast.success("Copied agent ID")},children:"Copy ID"}),(0,t.jsx)(p.ActionMenu.Separator,{}),(0,t.jsx)(p.ActionMenu.Item,{icon:(0,t.jsx)(c.Trash2,{className:"size-4"}),variant:"destructive",onSelect:()=>$(e),children:"Delete"})]})]})}),"aria-label":"Agent workbench"}),(0,t.jsx)(x.ApplyManifestDialog,{open:P,onOpenChange:R,org:e??"",onApplied:D}),(0,t.jsx)(y.ConfirmDialog,{state:w,onConfirm:C,onCancel:S})]})}])}]);
|