@stigmer/server-slim 3.18.0 → 3.19.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 +24 -23
- package/console/__next._head.txt +4 -4
- package/console/__next._index.txt +13 -15
- package/console/__next._tree.txt +2 -2
- package/console/_next/static/chunks/0.k18aw8l68rs.js +1 -0
- package/console/_next/static/chunks/0.wpyf_drhv8x.css +1 -0
- package/console/_next/static/chunks/0028ryyk-zcrk.js +1 -0
- package/console/_next/static/chunks/{0x.4919xjicc5.js → 004w~8qxculo~.js} +1 -1
- package/console/_next/static/chunks/05121lnteh0k4.js +1 -0
- package/console/_next/static/chunks/05hsc2apcu-66.js +1 -0
- package/console/_next/static/chunks/0625f_sg_08~p.js +1 -0
- package/console/_next/static/chunks/06rm9q_8qy6o9.js +1 -0
- package/console/_next/static/chunks/0a9_yomn052wg.js +1 -0
- package/console/_next/static/chunks/0af9vacgizdg..js +1 -0
- package/console/_next/static/chunks/0ala3mcyjvwvv.js +1 -0
- package/console/_next/static/chunks/0b8nbfovx36l5.js +1 -0
- package/console/_next/static/chunks/0dozqag.y8cvd.js +1 -0
- package/console/_next/static/chunks/{0.cr0e7bzkpoi.js → 0hjw5613u.jem.js} +3 -3
- package/console/_next/static/chunks/0id2oe7r5dozz.js +1 -0
- package/console/_next/static/chunks/0l9~uyr.vjf0t.js +2 -0
- package/console/_next/static/chunks/0mg-64_rqe3v9.js +1 -0
- package/console/_next/static/chunks/0rihzw4w1wzg3.js +1 -0
- package/console/_next/static/chunks/0s.hd0_eyzhc..js +1 -0
- package/console/_next/static/chunks/0ta6paxih8wwd.js +1 -0
- package/console/_next/static/chunks/0u9~d-cnb0w01.js +1 -0
- package/console/_next/static/chunks/0zc3nm7n~zcnb.js +3 -0
- package/console/_next/static/chunks/{0ij17mw0v0qd-.js → 0zfzrf3u6eg~~.js} +1 -1
- package/console/_next/static/chunks/12wm5jicnl6m8.js +1 -0
- package/console/_not-found/__next._full.txt +27 -26
- package/console/_not-found/__next._head.txt +4 -4
- package/console/_not-found/__next._index.txt +13 -15
- 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 +27 -26
- package/console/auth/callback/__next._full.txt +32 -31
- package/console/auth/callback/__next._head.txt +4 -4
- package/console/auth/callback/__next._index.txt +13 -15
- 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 +32 -31
- package/console/auth/github/callback/__next._full.txt +35 -34
- package/console/auth/github/callback/__next._head.txt +4 -4
- package/console/auth/github/callback/__next._index.txt +13 -15
- 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 +35 -34
- package/console/auth/oauth/callback/__next._full.txt +35 -34
- package/console/auth/oauth/callback/__next._head.txt +4 -4
- package/console/auth/oauth/callback/__next._index.txt +13 -15
- 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 +35 -34
- package/console/chat/__placeholder__/__placeholder__/__next._full.txt +30 -32
- package/console/chat/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/chat/__placeholder__/__placeholder__/__next._index.txt +13 -15
- 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 +30 -32
- package/console/conversations/__next._full.txt +28 -27
- package/console/conversations/__next._head.txt +4 -4
- package/console/conversations/__next._index.txt +13 -15
- 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 +30 -32
- package/console/conversations/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/conversations/__placeholder__/__placeholder__/__next._index.txt +13 -15
- 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 +30 -32
- package/console/conversations.html +1 -1
- package/console/conversations.txt +28 -27
- package/console/dashboard/__next._full.txt +28 -27
- package/console/dashboard/__next._head.txt +4 -4
- package/console/dashboard/__next._index.txt +13 -15
- 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 +28 -27
- package/console/executions/__placeholder__/__next._full.txt +30 -29
- package/console/executions/__placeholder__/__next._head.txt +4 -4
- package/console/executions/__placeholder__/__next._index.txt +13 -15
- 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 +30 -29
- package/console/index.html +1 -1
- package/console/index.txt +24 -23
- package/console/invite/__placeholder__/__next._full.txt +31 -30
- package/console/invite/__placeholder__/__next._head.txt +4 -4
- package/console/invite/__placeholder__/__next._index.txt +13 -15
- 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 +31 -30
- package/console/library/__next._full.txt +29 -28
- package/console/library/__next._head.txt +4 -4
- package/console/library/__next._index.txt +13 -15
- 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 +34 -33
- package/console/library/agents/__next._head.txt +4 -4
- package/console/library/agents/__next._index.txt +13 -15
- 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 +34 -36
- package/console/library/agents/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/library/agents/__placeholder__/__placeholder__/__next._index.txt +13 -15
- 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 +34 -36
- package/console/library/agents/new/__next._full.txt +38 -37
- package/console/library/agents/new/__next._head.txt +4 -4
- package/console/library/agents/new/__next._index.txt +13 -15
- 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 +38 -37
- package/console/library/agents.html +1 -1
- package/console/library/agents.txt +34 -33
- package/console/library/mcp-servers/__next._full.txt +34 -33
- package/console/library/mcp-servers/__next._head.txt +4 -4
- package/console/library/mcp-servers/__next._index.txt +13 -15
- 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 +34 -36
- package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/library/mcp-servers/__placeholder__/__placeholder__/__next._index.txt +13 -15
- 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 +34 -36
- package/console/library/mcp-servers/new/__next._full.txt +38 -37
- package/console/library/mcp-servers/new/__next._head.txt +4 -4
- package/console/library/mcp-servers/new/__next._index.txt +13 -15
- 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 +38 -37
- package/console/library/mcp-servers.html +1 -1
- package/console/library/mcp-servers.txt +34 -33
- package/console/library/plugins/__next._full.txt +34 -33
- package/console/library/plugins/__next._head.txt +4 -4
- package/console/library/plugins/__next._index.txt +13 -15
- 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 +34 -36
- package/console/library/plugins/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/library/plugins/__placeholder__/__placeholder__/__next._index.txt +13 -15
- 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 +34 -36
- package/console/library/plugins/upload/__next._full.txt +38 -37
- package/console/library/plugins/upload/__next._head.txt +4 -4
- package/console/library/plugins/upload/__next._index.txt +13 -15
- package/console/library/plugins/upload/__next._tree.txt +2 -2
- package/console/library/plugins/upload/__next.library.plugins.txt +3 -3
- package/console/library/plugins/upload/__next.library.plugins.upload.__PAGE__.txt +4 -4
- package/console/library/plugins/upload/__next.library.plugins.upload.txt +3 -3
- package/console/library/plugins/upload/__next.library.txt +5 -5
- package/console/library/plugins/upload.html +1 -1
- package/console/library/plugins/upload.txt +38 -37
- package/console/library/plugins.html +1 -1
- package/console/library/plugins.txt +34 -33
- package/console/library/schedules/__next._full.txt +34 -33
- package/console/library/schedules/__next._head.txt +4 -4
- package/console/library/schedules/__next._index.txt +13 -15
- 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 +34 -36
- package/console/library/schedules/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/library/schedules/__placeholder__/__placeholder__/__next._index.txt +13 -15
- 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 +34 -36
- package/console/library/schedules/new/__next._full.txt +38 -37
- package/console/library/schedules/new/__next._head.txt +4 -4
- package/console/library/schedules/new/__next._index.txt +13 -15
- 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 +38 -37
- package/console/library/schedules.html +1 -1
- package/console/library/schedules.txt +34 -33
- package/console/library/skills/__next._full.txt +34 -33
- package/console/library/skills/__next._head.txt +4 -4
- package/console/library/skills/__next._index.txt +13 -15
- 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 +34 -36
- package/console/library/skills/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/library/skills/__placeholder__/__placeholder__/__next._index.txt +13 -15
- 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 +34 -36
- package/console/library/skills/new/__next._full.txt +38 -37
- package/console/library/skills/new/__next._head.txt +4 -4
- package/console/library/skills/new/__next._index.txt +13 -15
- 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 +38 -37
- package/console/library/skills.html +1 -1
- package/console/library/skills.txt +34 -33
- package/console/library/workflows/__next._full.txt +34 -33
- package/console/library/workflows/__next._head.txt +4 -4
- package/console/library/workflows/__next._index.txt +13 -15
- 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 +34 -36
- package/console/library/workflows/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/library/workflows/__placeholder__/__placeholder__/__next._index.txt +13 -15
- 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 +34 -36
- package/console/library/workflows/executions/__next._full.txt +35 -34
- package/console/library/workflows/executions/__next._head.txt +4 -4
- package/console/library/workflows/executions/__next._index.txt +13 -15
- 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 +35 -34
- package/console/library/workflows/new/__next._full.txt +38 -37
- package/console/library/workflows/new/__next._head.txt +4 -4
- package/console/library/workflows/new/__next._index.txt +13 -15
- 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 +38 -37
- package/console/library/workflows.html +1 -1
- package/console/library/workflows.txt +34 -33
- package/console/library.html +1 -1
- package/console/library.txt +29 -28
- package/console/login/__next._full.txt +31 -30
- package/console/login/__next._head.txt +4 -4
- package/console/login/__next._index.txt +13 -15
- 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 +31 -30
- package/console/marketplace/__next._full.txt +28 -27
- package/console/marketplace/__next._head.txt +4 -4
- package/console/marketplace/__next._index.txt +13 -15
- package/console/marketplace/__next._tree.txt +2 -2
- package/console/marketplace/__next.marketplace.__PAGE__.txt +3 -3
- package/console/marketplace/__next.marketplace.txt +3 -3
- package/console/marketplace.html +1 -1
- package/console/marketplace.txt +28 -27
- package/console/oauth/slack/callback/__next._full.txt +35 -34
- package/console/oauth/slack/callback/__next._head.txt +4 -4
- package/console/oauth/slack/callback/__next._index.txt +13 -15
- 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 +35 -34
- package/console/sessions/__placeholder__/__next._full.txt +30 -29
- package/console/sessions/__placeholder__/__next._head.txt +4 -4
- package/console/sessions/__placeholder__/__next._index.txt +13 -15
- 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 +30 -29
- package/console/settings/__next._full.txt +31 -30
- package/console/settings/__next._head.txt +4 -4
- package/console/settings/__next._index.txt +13 -15
- 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 +33 -32
- package/console/settings/account-preferences/__next._head.txt +4 -4
- package/console/settings/account-preferences/__next._index.txt +13 -15
- 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 +33 -32
- package/console/settings/api-keys/__next._full.txt +33 -32
- package/console/settings/api-keys/__next._head.txt +4 -4
- package/console/settings/api-keys/__next._index.txt +13 -15
- 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 +33 -32
- package/console/settings/billing/__next._full.txt +36 -35
- package/console/settings/billing/__next._head.txt +4 -4
- package/console/settings/billing/__next._index.txt +13 -15
- 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 +36 -35
- package/console/settings/channel-apps/__next._full.txt +33 -32
- package/console/settings/channel-apps/__next._head.txt +4 -4
- package/console/settings/channel-apps/__next._index.txt +13 -15
- 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 +33 -32
- package/console/settings/cursor-accounts/__next._full.txt +36 -35
- package/console/settings/cursor-accounts/__next._head.txt +4 -4
- package/console/settings/cursor-accounts/__next._index.txt +13 -15
- 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 +36 -35
- package/console/settings/environments/__next._full.txt +33 -32
- package/console/settings/environments/__next._head.txt +4 -4
- package/console/settings/environments/__next._index.txt +13 -15
- 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 +33 -32
- package/console/settings/identity-providers/__next._full.txt +33 -32
- package/console/settings/identity-providers/__next._head.txt +4 -4
- package/console/settings/identity-providers/__next._index.txt +13 -15
- 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 +33 -32
- package/console/settings/invitations/__next._full.txt +33 -32
- package/console/settings/invitations/__next._head.txt +4 -4
- package/console/settings/invitations/__next._index.txt +13 -15
- 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 +33 -32
- package/console/settings/members/__next._full.txt +33 -32
- package/console/settings/members/__next._head.txt +4 -4
- package/console/settings/members/__next._index.txt +13 -15
- 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 +33 -32
- package/console/settings/memory/__next._full.txt +33 -32
- package/console/settings/memory/__next._head.txt +4 -4
- package/console/settings/memory/__next._index.txt +13 -15
- 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 +33 -32
- package/console/settings/oauth-apps/__next._full.txt +33 -32
- package/console/settings/oauth-apps/__next._head.txt +4 -4
- package/console/settings/oauth-apps/__next._index.txt +13 -15
- 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 +33 -32
- package/console/settings/org-preferences/__next._full.txt +33 -32
- package/console/settings/org-preferences/__next._head.txt +4 -4
- package/console/settings/org-preferences/__next._index.txt +13 -15
- 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 +33 -32
- package/console/settings/org-profile/__next._full.txt +33 -32
- package/console/settings/org-profile/__next._head.txt +4 -4
- package/console/settings/org-profile/__next._index.txt +13 -15
- 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 +33 -32
- package/console/settings/platform-clients/__next._full.txt +33 -32
- package/console/settings/platform-clients/__next._head.txt +4 -4
- package/console/settings/platform-clients/__next._index.txt +13 -15
- 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 +33 -32
- package/console/settings/pricing-governance/__next._full.txt +36 -35
- package/console/settings/pricing-governance/__next._head.txt +4 -4
- package/console/settings/pricing-governance/__next._index.txt +13 -15
- 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 +36 -35
- package/console/settings/provider-standing/__next._full.txt +36 -35
- package/console/settings/provider-standing/__next._head.txt +4 -4
- package/console/settings/provider-standing/__next._index.txt +13 -15
- 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 +36 -35
- package/console/settings/usage/__next._full.txt +33 -32
- package/console/settings/usage/__next._head.txt +4 -4
- package/console/settings/usage/__next._index.txt +13 -15
- 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 +33 -32
- package/console/settings.html +1 -1
- package/console/settings.txt +31 -30
- package/console/workflows/__next._full.txt +28 -27
- package/console/workflows/__next._head.txt +4 -4
- package/console/workflows/__next._index.txt +13 -15
- 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 +30 -32
- package/console/workflows/__placeholder__/__placeholder__/__next._head.txt +4 -4
- package/console/workflows/__placeholder__/__placeholder__/__next._index.txt +13 -15
- 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 +30 -32
- package/console/workflows/executions/__next._full.txt +31 -30
- package/console/workflows/executions/__next._head.txt +4 -4
- package/console/workflows/executions/__next._index.txt +13 -15
- 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 +30 -31
- package/console/workflows/executions/__placeholder__/__next._head.txt +4 -4
- package/console/workflows/executions/__placeholder__/__next._index.txt +13 -15
- 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 +30 -31
- package/console/workflows/executions.html +1 -1
- package/console/workflows/executions.txt +31 -30
- package/console/workflows.html +1 -1
- package/console/workflows.txt +28 -27
- package/main.js +21 -21
- package/package.json +6 -6
- package/console/_next/static/chunks/0-3vl848v~x7_.js +0 -1
- package/console/_next/static/chunks/0.ocu5b3uajbn.js +0 -1
- package/console/_next/static/chunks/00609po93aecc.js +0 -1
- package/console/_next/static/chunks/00o8ud2dmna2j.js +0 -1
- package/console/_next/static/chunks/02fsq8lsaeu8j.js +0 -1
- package/console/_next/static/chunks/071fdr3kvata1.js +0 -1
- package/console/_next/static/chunks/0_3utrn1at0vi.js +0 -1
- package/console/_next/static/chunks/0_j8~rfb.1ufy.js +0 -1
- package/console/_next/static/chunks/0amugang-25bm.js +0 -1
- package/console/_next/static/chunks/0c7llz2igr3w7.js +0 -1
- package/console/_next/static/chunks/0dtrm.qvfku1r.js +0 -3
- package/console/_next/static/chunks/0e7jd8wufwnu2.js +0 -1
- package/console/_next/static/chunks/0fgcvnc-b_oz_.js +0 -1
- package/console/_next/static/chunks/0g4-6iy.9p8sl.js +0 -1
- package/console/_next/static/chunks/0gz8yljnjzsmu.js +0 -1
- package/console/_next/static/chunks/0j~6628v9z3k-.js +0 -1
- package/console/_next/static/chunks/0og40-yo-nth-.js +0 -1
- package/console/_next/static/chunks/0rob~86j~8vge.js +0 -1
- package/console/_next/static/chunks/0s6bm1sujua~8.css +0 -1
- package/console/_next/static/chunks/0xq42ojv80jqz.js +0 -1
- package/console/_next/static/chunks/0xs_3fux3hsk3.js +0 -2
- package/console/_next/static/chunks/12329wyw7127c.js +0 -1
- /package/console/_next/static/{0d4BawxHa-jMy4WgCDP1P → -SJovNiHfwazArKzyL7X6}/_buildManifest.js +0 -0
- /package/console/_next/static/{0d4BawxHa-jMy4WgCDP1P → -SJovNiHfwazArKzyL7X6}/_clientMiddlewareManifest.js +0 -0
- /package/console/_next/static/{0d4BawxHa-jMy4WgCDP1P → -SJovNiHfwazArKzyL7X6}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,348990,e=>{"use strict";var t=e.i(271645),r=e.i(891287),s=e.i(95265),n=e.i(586108),a=e.i(583093);e.s(["useEnvironmentList",0,function(e,o){let i=(0,n.useStigmer)(),l=(0,t.useRef)(o);o!==l.current&&JSON.stringify(o)!==JSON.stringify(l.current)&&(l.current=o);let u=l.current,c=e?async()=>{let t=await i.environment.list((0,r.create)(s.ListEnvironmentsRequestSchema,{org:e,labels:u??{}}));return{environments:t.items,totalCount:t.totalCount}}:null,{data:d,isLoading:g,isRefetching:h,error:p,refetch:m}=(0,a.useFetch)(c,[e,u,i],{environments:[],totalCount:0});return{environments:d.environments,totalCount:d.totalCount,isLoading:g,isRefetching:h,error:p,refetch:m}}])},367539,e=>{"use strict";e.s(["generateSlug",0,function(e){return e.toLowerCase().replace(/[ .]/g,"-").replace(/[^a-z0-9-]/g,"").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"")},"generateSlugSuffix",0,function(){return crypto.randomUUID().replace(/-/g,"").slice(0,8)}])},207344,e=>{"use strict";var t=e.i(271645),r=e.i(891287),s=e.i(95265),n=e.i(621559),a=e.i(586108),o=e.i(367539),i=e.i(326283),l=e.i(348990);let u={"stigmer.ai/personal":"true"};e.s(["usePersonalEnvironment",0,function(e){let c=(0,a.useStigmer)(),{environments:d,isLoading:g,error:h,refetch:p}=(0,l.useEnvironmentList)(e,u),m=(0,t.useMemo)(()=>d[0]??null,[d]),[v,f]=(0,t.useState)(!1),[b,x]=(0,t.useState)(null),S=(0,t.useRef)(m);S.current=m;let y=(0,t.useRef)(g);y.current=g;let w=(0,t.useCallback)(async t=>{if(S.current)return S.current;if(!e)throw Error("usePersonalEnvironment: cannot call getOrCreate when org is null.");if(y.current)throw Error("usePersonalEnvironment: cannot call getOrCreate while the environment list is loading. Wait for isLoading to become false before calling getOrCreate().");f(!0),x(null);try{let r;t&&Object.keys(t).length>0&&(r=t);let s=await c.environment.create({name:"Personal Environment",slug:`env-personal-${(0,o.generateSlugSuffix)()}`,org:e,labels:u,data:r});return S.current=s,p(),s}catch(e){throw x((0,i.toError)(e)),e}finally{f(!1)}},[e,c,p]),k=(0,t.useCallback)(async e=>{let t=S.current;if(!t)throw Error("usePersonalEnvironment: personal environment does not exist. Call getOrCreate() before addVariables().");f(!0),x(null);try{let a=Object.fromEntries(Object.entries(e).map(([e,t])=>[e,(0,r.create)(n.EnvironmentValueSchema,{value:t.value,isSecret:t.isSecret,description:t.description})])),o=(0,r.create)(s.UpdateEnvironmentVariablesRequestSchema,{environmentId:t.metadata.id,variables:a}),i=await c.environment.updateVariables(o);return p(),i}catch(e){throw x((0,i.toError)(e)),e}finally{f(!1)}},[c,p]),A=(0,t.useCallback)(async e=>{let t=S.current;if(!t)throw Error("usePersonalEnvironment: personal environment does not exist. Call getOrCreate() before removeVariables().");f(!0),x(null);try{let n=(0,r.create)(s.RemoveEnvironmentVariablesRequestSchema,{environmentId:t.metadata.id,keys:e}),a=await c.environment.removeVariables(n);return p(),a}catch(e){throw x((0,i.toError)(e)),e}finally{f(!1)}},[c,p]);return{environment:m,isLoading:g,error:b??h,refetch:p,getOrCreate:w,addVariables:k,removeVariables:A,isMutating:v}}])},903198,e=>{"use strict";let t="stigmer:oauth:callback",r="stigmer:oauth:broadcast";function s(e){try{e?.close()}catch{}}e.s(["OAUTH_BROADCAST_CHANNEL",0,r,"OAUTH_CALLBACK_MESSAGE_TYPE",0,t,"closeOAuthPopup",0,s,"openOAuthPopup",0,function(){let e=window.screenX+(window.outerWidth-600)/2,t=window.screenY+(window.outerHeight-700)/2;return window.open("about:blank","stigmer_oauth",`width=600,height=700,left=${e},top=${t},popup=yes`)},"popupBlockedError",0,function(){return Error("Your browser blocked the authentication popup. Please allow popups for this site and try again.")},"waitForOAuthCallback",0,function(e,n,a){return new Promise((o,i)=>{let l,u,c=!1,d=null,g=!1;function h(e){if(!c){c=!0,l&&clearTimeout(l),u&&clearInterval(u),window.removeEventListener("message",m);try{d?.close()}catch{}e instanceof Error?i(e):o(e)}}function p(e){if(e?.type===t){if(e.state!==n)return void h(Error("OAuth state mismatch — the callback did not match the initiated flow. Please try again."));if(!e.code)return void h(Error("No authorization code received from the OAuth provider."));h({code:e.code,state:e.state})}}function m(e){e.origin===window.location.origin&&p(e.data)}a(()=>{h(Error("OAuth flow was cancelled.")),s(e)}),window.addEventListener("message",m);try{d=new BroadcastChannel(r),g=!0,d.onmessage=e=>{p(e.data)}}catch{}l=setTimeout(()=>{h(Error("OAuth authentication timed out. Ensure your callback page renders <OAuthCallbackHandler /> from @stigmer/react at the URL configured as your OAuth redirect URI.")),s(e)},12e4);let v=null;u=setInterval(()=>{!g&&(e.closed?null===v?v=Date.now():Date.now()-v>5e3&&h(Error("The authentication window was closed before completing sign-in.")):v=null)},500)})}])},230849,4144,e=>{"use strict";var t=e.i(271645);e.s(["useScrollShadows",0,function(){let e=(0,t.useRef)(null),[r,s]=(0,t.useState)(!1),[n,a]=(0,t.useState)(!1),o=(0,t.useCallback)(()=>{let t=e.current;t&&(s(t.scrollTop>0),a(t.scrollTop+t.clientHeight<t.scrollHeight-1))},[]);return(0,t.useEffect)(()=>{let t=e.current;if(!t)return;t.addEventListener("scroll",o,{passive:!0});let r=new ResizeObserver(o);return r.observe(t),o(),()=>{t.removeEventListener("scroll",o),r.disconnect()}},[o]),{scrollRef:e,canScrollUp:r,canScrollDown:n}}],230849);var r=e.i(843476);e.s(["ScrollFade",0,function({position:e}){let t="top"===e;return(0,r.jsx)("div",{className:["stg:pointer-events-none stg:absolute stg:inset-x-0 stg:z-10 stg:h-3",t?"stg:top-0":"stg:bottom-0"].join(" "),style:{background:t?"linear-gradient(to bottom, var(--color-popover, hsl(0 0% 9%)), transparent)":"linear-gradient(to top, var(--color-popover, hsl(0 0% 9%)), transparent)"},"aria-hidden":"true"})}],4144)},351240,e=>{"use strict";var t=e.i(843476),r=e.i(271645),s=e.i(893976),n=e.i(230849),a=e.i(4144),o=e.i(379410);function i(){return(0,t.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M1.5 8s2.5-4.5 6.5-4.5S14.5 8 14.5 8s-2.5 4.5-6.5 4.5S1.5 8 1.5 8z"}),(0,t.jsx)("circle",{cx:"8",cy:"8",r:"2"})]})}function l(){return(0,t.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M6.59 6.59a2 2 0 0 0 2.82 2.82"}),(0,t.jsx)("path",{d:"M10.73 10.73A6.5 6.5 0 0 1 8 12.5c-4 0-6.5-4.5-6.5-4.5a11.5 11.5 0 0 1 3.77-3.73"}),(0,t.jsx)("path",{d:"M5.71 3.56A6.3 6.3 0 0 1 8 3.5c4 0 6.5 4.5 6.5 4.5a11.5 11.5 0 0 1-1.28 1.73"}),(0,t.jsx)("path",{d:"M2 2l12 12"})]})}e.s(["EnvVarForm",0,function({variables:e,onSubmit:u,onCancel:c,isSubmitting:d,disabled:g,title:h,description:p,submitLabel:m,cancelLabel:v="Back",defaultSaveForFuture:f=!0,hideSaveToggle:b=!1,poolValues:x,className:S,ariaLabel:y}){let[w,k]=(0,r.useState)(()=>Object.fromEntries(e.map(e=>{let t=x?.(e.key);return[e.key,t?.value??""]}))),[A]=(0,r.useState)(()=>{if(!x)return new Set;let t=new Set;for(let r of e)x(r.key)&&t.add(r.key);return t}),[O,E]=(0,r.useState)(new Set),[j,C]=(0,r.useState)(f),N=(0,r.useRef)(null),I=(0,n.useScrollShadows)(),M=(0,r.useId)(),P=`${M}-save-toggle`,R=g||d,L=e.every(e=>w[e.key]?.trim()!==""),T=(0,r.useCallback)((e,t)=>{k(r=>({...r,[e]:t}))},[]),_=(0,r.useCallback)(e=>{E(t=>{let r=new Set(t);return r.has(e)?r.delete(e):r.add(e),r})},[]),U=(0,r.useCallback)(t=>{if(t.preventDefault(),!L||R)return;let r={};for(let t of e)r[t.key]={value:w[t.key],isSecret:t.isSecret,...t.description&&{description:t.description}};u(r,{saveForFuture:j})},[L,R,w,e,u,j]),V=y??(h?`Configure ${h}`:"Configure environment variables"),D=m??(j?"Save":"Use once");return(0,t.jsxs)("form",{onSubmit:U,className:(0,s.cn)("stg:w-72 stg:space-y-3",S),"aria-label":V,children:[h&&(0,t.jsxs)("div",{className:"stg:space-y-0.5",children:[(0,t.jsx)("h3",{className:"stg:text-xs stg:font-medium stg:text-foreground",children:h}),p&&(0,t.jsx)("p",{className:"stg:text-[0.65rem] stg:text-muted-foreground",children:p})]}),(0,t.jsxs)("div",{className:"stg:relative",children:[I.canScrollUp&&(0,t.jsx)(a.ScrollFade,{position:"top"}),(0,t.jsx)("div",{ref:I.scrollRef,className:"stg:max-h-64 stg:space-y-2.5 stg:overflow-y-auto",children:e.map((e,r)=>{let n=`${M}-env-${e.key}`,a=e.description?`${n}-desc`:void 0,o=O.has(e.key);return(0,t.jsxs)("div",{className:"stg:space-y-1",children:[(0,t.jsxs)("label",{htmlFor:n,className:"stg:flex stg:items-baseline stg:gap-1.5 stg:text-[0.65rem] stg:font-medium stg:text-muted-foreground",children:[(0,t.jsx)("span",{className:"stg:font-mono",children:e.key}),e.isSecret&&(0,t.jsx)("span",{className:"stg:text-[0.55rem] stg:uppercase stg:tracking-wider stg:text-muted-foreground-subtle",children:"secret"})]}),(0,t.jsxs)("div",{className:"stg:relative",children:[(0,t.jsx)("input",{ref:0===r?N:void 0,id:n,type:e.isSecret&&!o?"password":"text",value:w[e.key],onChange:t=>T(e.key,t.target.value),disabled:R,required:!0,"aria-required":!0,"aria-describedby":a,autoComplete:"off",autoFocus:0===r,className:(0,s.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-2 stg:focus-visible:ring-ring","stg:disabled:pointer-events-none stg:disabled:opacity-50",e.isSecret&&"stg:pr-8")}),e.isSecret&&(0,t.jsx)("button",{type:"button",onClick:()=>_(e.key),disabled:R,className:(0,s.cn)("stg:absolute stg:right-2 stg:top-1/2 stg:-translate-y-1/2","stg:text-muted-foreground stg:hover:text-foreground","stg:disabled:pointer-events-none stg:disabled:opacity-50"),"aria-label":o?`Hide ${e.key}`:`Show ${e.key}`,tabIndex:-1,children:o?(0,t.jsx)(l,{}):(0,t.jsx)(i,{})})]}),e.description&&(0,t.jsx)("p",{id:a,className:"stg:text-[0.6rem] stg:leading-relaxed stg:text-muted-foreground-subtle",children:e.description}),A.has(e.key)&&(0,t.jsx)("p",{className:"stg:text-[0.55rem] stg:text-primary-muted",children:"Pre-filled from session variables"})]},e.key)})}),I.canScrollDown&&(0,t.jsx)(a.ScrollFade,{position:"bottom"})]}),!b&&(0,t.jsxs)("div",{className:"stg:flex stg:items-start stg:gap-2 stg:pt-0.5",children:[(0,t.jsx)("button",{id:P,type:"button",role:"switch","aria-checked":j,onClick:()=>C(e=>!e),disabled:R,className:(0,s.cn)("stg:relative stg:mt-0.5 stg:inline-flex stg:h-4 stg:w-7 stg:shrink-0 stg:cursor-pointer stg:rounded-full stg:transition-colors","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring stg:focus-visible:ring-offset-2","stg:disabled:pointer-events-none stg:disabled:opacity-50",j?"stg:bg-primary":"stg:bg-input"),children:(0,t.jsx)("span",{className:(0,s.cn)("stg:pointer-events-none stg:block stg:h-3 stg:w-3 stg:translate-y-0.5 stg:rounded-full stg:bg-background stg:shadow-sm stg:ring-0 stg:transition-transform",j?"stg:translate-x-3.5":"stg:translate-x-0.5")})}),(0,t.jsxs)("label",{htmlFor:P,className:"stg:cursor-pointer stg:select-none stg:space-y-0.5",children:[(0,t.jsx)("span",{className:"stg:block stg:text-[0.65rem] stg:font-medium stg:text-muted-foreground",children:"Save for future runs"}),!j&&(0,t.jsx)("span",{className:"stg:block stg:text-[0.6rem] stg:leading-relaxed stg:text-muted-foreground-subtle",children:"These values will only be used for this run."})]})]}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-end stg:gap-2 stg:pt-1",children:[c&&(0,t.jsx)("button",{type:"button",onClick:c,disabled:R,className:(0,s.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:v}),(0,t.jsxs)("button",{type:"submit",disabled:!L||R,"data-cursor-target":"env-form-submit",className:(0,s.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-md stg:px-3 stg:py-1.5 stg:text-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:[d&&(0,t.jsx)(o.SpinnerIcon,{size:12}),D]})]})]})}])},793907,e=>{"use strict";var t=e.i(843476),r=e.i(893976);function s({className:e}){return(0,t.jsxs)("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M8 1.5 1 14h14L8 1.5Z"}),(0,t.jsx)("path",{d:"M8 6v3.5"}),(0,t.jsx)("circle",{cx:"8",cy:"11.5",r:"0.5",fill:"currentColor",stroke:"none"})]})}function n({className:e}){return(0,t.jsxs)("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M12 8.667v4A1.333 1.333 0 0 1 10.667 14H3.333A1.333 1.333 0 0 1 2 12.667V5.333A1.333 1.333 0 0 1 3.333 4h4"}),(0,t.jsx)("path",{d:"M10 2h4v4"}),(0,t.jsx)("path",{d:"M6.667 9.333 14 2"})]})}e.s(["VendorApprovalBlockedNotice",0,function({blocked:e,pending:a,manualEntrySupported:o,canBringOwnApp:i,docsUrl:l,onBringOwnApp:u,compact:c,className:d}){if(!e)return null;let g=a?"The platform's OAuth app is awaiting vendor approval.":"The platform's OAuth app was not approved by the vendor.",h=i?o?"You can use your own OAuth app or enter a token manually.":"You can use your own OAuth app.":o?"You can still connect by entering your own token manually.":"OAuth sign-in is temporarily unavailable for this server.",p=i&&u,m=!!l&&!i;return c?(0,t.jsxs)("div",{className:(0,r.cn)("stg:text-[0.65rem] stg:text-amber-700 stg:dark:text-amber-300",d),children:[(0,t.jsxs)("p",{children:[g," ",h]}),p&&(0,t.jsx)("button",{type:"button",onClick:u,className:"stg:mt-1 stg:inline-flex stg:items-center stg:gap-1 stg:rounded stg:bg-amber-600 stg:px-2 stg:py-0.5 stg:text-[0.6rem] stg:font-medium stg:text-white stg:hover:bg-amber-700 stg:dark:bg-amber-500 stg:dark:text-amber-950 stg:dark:hover:bg-amber-400",children:"Use your own OAuth app"}),m&&(0,t.jsx)("a",{href:l??void 0,target:"_blank",rel:"noopener noreferrer",className:"stg:underline stg:decoration-amber-600/40 stg:underline-offset-2 stg:hover:decoration-amber-600 stg:dark:decoration-amber-400/40 stg:dark:hover:decoration-amber-400",children:"Learn how to bring your own token"})]}):(0,t.jsxs)("div",{role:"status",className:(0,r.cn)("stg:flex stg:items-start stg:gap-2 stg:bg-amber-500/5 stg:px-3 stg:py-2",d),children:[(0,t.jsx)(s,{className:"stg:mt-0.5 stg:size-3.5 stg:shrink-0 stg:text-amber-600 stg:dark:text-amber-400"}),(0,t.jsxs)("div",{className:"stg:flex-1 stg:text-xs stg:text-amber-700 stg:dark:text-amber-300",children:[(0,t.jsxs)("p",{children:[g," ",h]}),p&&(0,t.jsx)("button",{type:"button",onClick:u,"data-cursor-target":"byoa-cta-button",className:"stg:mt-1.5 stg:inline-flex stg:items-center stg:gap-1 stg:rounded-md stg:bg-amber-600 stg:px-2.5 stg:py-1 stg:text-[11px] stg:font-medium stg:text-white stg:hover:bg-amber-700 stg:dark:bg-amber-500 stg:dark:text-amber-950 stg:dark:hover:bg-amber-400",children:"Use your own OAuth app"}),m&&(0,t.jsxs)("a",{href:l??void 0,target:"_blank",rel:"noopener noreferrer",className:"stg:mt-1 stg:inline-flex stg:items-center stg:gap-1 stg:underline stg:decoration-amber-600/40 stg:underline-offset-2 stg:hover:decoration-amber-600 stg:dark:decoration-amber-400/40 stg:dark:hover:decoration-amber-400",children:["Learn how to bring your own token",(0,t.jsx)(n,{className:"stg:size-3 stg:shrink-0"})]})]})]})}])},20883,e=>{"use strict";var t=e.i(939910),r=e.i(167937),s=e.i(498931),n=e.i(910304);class a extends Error{mcpServerId;constructor(e,t){super(`the connect of MCP server '${e}' is still running server-side after ${Math.round(t/1e3)}s — it will persist its result on its own; re-read the server to observe the outcome`),this.name="ConnectStillRunningError",this.mcpServerId=e}}async function o(e,o,l){let u,c=l?.pollIntervalMs??2500,d=Math.min(l?.deadlineMs??39e5,39e5);try{u=await e.startConnect(o)}catch(t){if(!(0,n.isUnimplemented)(t))throw t;return i(e,o,d)}l?.onStarted?.(u);let g=Date.now()+d;for(;;){if(Date.now()>=g)throw new a(o.mcpServerId,d);await function(e){return new Promise(t=>setTimeout(t,e))}(Math.min(c,Math.max(1,g-Date.now())));let i=await e.get(o.mcpServerId),l=i.status?.connectStatus;if(l?.phase===s.ConnectPhase.succeeded)return i;if(l?.phase===s.ConnectPhase.failed)throw function(e,s){let a=t.Code[e];return(0,n.wrapError)(new r.ConnectError(s,"number"==typeof a?a:t.Code.Unknown))}(l.failureCode,l.failureMessage)}}async function i(e,t,r){let s,n=e.connect(t);n.catch(()=>{});let o=new Promise((e,n)=>{s=setTimeout(()=>n(new a(t.mcpServerId,r)),r)});try{return await Promise.race([n,o])}finally{void 0!==s&&clearTimeout(s)}}e.s(["connectAndWait",0,o])},139666,e=>{"use strict";let t="STIGMER_SERVER_ADDRESS",r="STIGMER_API_KEY",s=new Set([t,r]);async function n(e){var s;let n=await e.getAuthCredential();return s=e.baseUrl,{[t]:{value:function(e){try{let t=new URL(e),r=t.hostname,s=t.port||("https:"===t.protocol?"443":"80");return`${r}:${s}`}catch{return e}}(s),isSecret:!1,description:"Auto-resolved from the current Stigmer connection."},[r]:{value:n||"unused",isSecret:!0,description:"Auto-resolved from the current Stigmer auth context."}}}async function a(e,t){let r=t instanceof Set?t:new Set(t);if(![...s].some(e=>r.has(e)))return{};let a=await n(e),o={};for(let[e,t]of Object.entries(a))r.has(e)&&(o[e]=t);return o}e.s(["SYSTEM_ENV_VAR_KEYS",0,s,"resolveDeclaredSystemEnvVars",0,a,"resolveSystemEnvVarValues",0,n])},168197,e=>{"use strict";var t=e.i(271645),r=e.i(891287),s=e.i(20883),n=e.i(610595),a=e.i(336973),o=e.i(586108),i=e.i(139666),l=e.i(326283),u=e.i(903198);e.s(["getOAuthConnectErrorMessage",0,function(e,t){let r=(0,n.getUserMessage)(e);return"connecting"===t?`Signed in successfully, but tool discovery failed: ${r}`:r},"useMcpServerOAuthConnect",0,function(){let e=(0,o.useStigmer)(),[n,c]=(0,t.useState)("idle"),[d,g]=(0,t.useState)(null),[h,p]=(0,t.useState)(null),m=(0,t.useRef)(null),v=(0,t.useRef)(null),f=(0,t.useRef)(!1),b=(0,t.useRef)("idle"),x=(0,t.useCallback)(e=>{b.current=e,c(e)},[]);(0,t.useEffect)(()=>()=>{v.current?.()},[]);let S=(0,t.useCallback)(()=>{(v.current||m.current)&&(f.current=!0,v.current?.(),(0,u.closeOAuthPopup)(m.current),m.current=null,v.current=null),x("idle"),g(null),p(null)},[x]);return{startOAuth:(0,t.useCallback)(async(t,n,o)=>{x("initiating"),g(null),p(null),f.current=!1,v.current?.();let c=(0,u.openOAuthPopup)();if(!c){let e=(0,u.popupBlockedError)();throw g(e),p("initiating"),x("idle"),e}m.current=c;try{let l=await e.mcpServer.initiateOAuthConnect((0,r.create)(a.InitiateOAuthConnectInputSchema,{mcpServerId:t,org:n}));c.location.href=l.authorizationUrl,x("awaiting-callback");let{code:d,state:g}=await (0,u.waitForOAuthCallback)(c,l.state,e=>{v.current=e});x("completing"),await e.mcpServer.completeOAuthConnect((0,r.create)(a.CompleteOAuthConnectInputSchema,{mcpServerId:t,authorizationCode:d,state:g})),x("connecting");let h=o?await (0,i.resolveDeclaredSystemEnvVars)(e,o):{},p={};for(let[e,t]of Object.entries(h))p[e]={value:t.value,isSecret:t.isSecret??!1};let m=(0,r.create)(a.ConnectInputSchema,{mcpServerId:t,org:n,...Object.keys(p).length>0?{runtimeEnv:p}:{}}),f=await (0,s.connectAndWait)(e.mcpServer,m);return x("done"),f}catch(t){let e=(0,l.toError)(t);throw f.current||(g(e),p(b.current),x("idle"),(0,u.closeOAuthPopup)(c)),f.current=!1,e}finally{m.current=null,v.current=null}},[e,x]),isInProgress:"idle"!==n&&"done"!==n,phase:n,error:d,failedPhase:h,clearError:S}}])},862645,e=>{"use strict";var t=e.i(271645),r=e.i(891287),s=e.i(336973),n=e.i(20883),a=e.i(586108),o=e.i(139666),i=e.i(326283);e.s(["useMcpServerConnect",0,function(){let e=(0,a.useStigmer)(),[l,u]=(0,t.useState)(!1),[c,d]=(0,t.useState)(null),g=(0,t.useCallback)(()=>d(null),[]);return{connect:(0,t.useCallback)(async(t,a,l,c)=>{u(!0),d(null);try{let i={...c?await (0,o.resolveDeclaredSystemEnvVars)(e,c):{},...l??{}},u={};for(let[e,t]of Object.entries(i))u[e]={value:t.value,isSecret:t.isSecret??!1};let d=(0,r.create)(s.ConnectInputSchema,{mcpServerId:t,org:a,...Object.keys(u).length>0?{runtimeEnv:u}:{}});return await (0,n.connectAndWait)(e.mcpServer,d)}catch(t){let e=(0,i.toError)(t);throw d(e),e}finally{u(!1)}},[e]),isConnecting:l,error:c,clearError:g}}])},727996,288270,651424,153158,e=>{"use strict";var t=e.i(910304),r=e.i(586108),s=e.i(583093);e.s(["useMcpServer",0,function(e,n){let a=(0,r.useStigmer)(),{data:o,isLoading:i,isRefetching:l,error:u,refetch:c}=(0,s.useFetch)(e&&n?async()=>{try{return await a.mcpServer.getByReference({org:e,slug:n})}catch(e){if((0,t.isNotFound)(e))return null;throw e}}:null,[e,n,a],null);return{mcpServer:o,isLoading:i,isRefetching:l,error:u,refetch:c}}],727996);var n=e.i(271645),a=e.i(498931),o=e.i(437241),i=e.i(207344);function l(e,t,r){let s=[];for(let[n,a]of Object.entries(e))!t.has(n)&&(r?.has(n)||s.push({key:n,isSecret:a.isSecret,...a.description&&{description:a.description},...a.optional&&{optional:!0}}));return s}e.s(["diffEnv",0,l],288270);var u=e.i(139666),c=e.i(891287),d=e.i(336973);let g={connected:!1,accessTokenExpiresAt:BigInt(0),targetEnvVar:"",authMethod:"",connectionHealth:d.OAuthConnectionHealth.OAUTH_CONNECTION_HEALTH_UNSPECIFIED};var h=e.i(521557),p=e.i(326283);let m={isSupported:!1,hasOverride:!1,oauthAppId:null,clientId:null},v={isSupported:!1,hasOverride:!1,oauthAppId:null,clientId:null},f={...m,isLoading:!1,isRefetching:!1,error:null,refetch:()=>{},setOrgOAuthApp:()=>Promise.resolve(""),isSetting:!1,setError:null,deleteOrgOAuthApp:()=>Promise.resolve(!1),isDeleting:!1,deleteError:null,clearErrors:()=>{}};function b(e,t){let a=(0,r.useStigmer)(),{data:o,isLoading:i,isRefetching:l,error:u,refetch:g}=(0,s.useFetch)(e&&t?async()=>{try{let r=await a.mcpServer.getOrgOAuthApp((0,c.create)(d.GetOrgOAuthAppInputSchema,{resourceId:e,org:t}));return{isSupported:!0,hasOverride:r.hasOverride,oauthAppId:r.oauthAppId||null,clientId:r.clientId||null}}catch(e){if((0,h.isUnimplemented)(e))return v;throw e}}:null,[e,t,a],m,{cacheKey:`org-oauth-app:${t}:${e}`}),[b,x]=(0,n.useState)(!1),[S,y]=(0,n.useState)(null),[w,k]=(0,n.useState)(!1),[A,O]=(0,n.useState)(null),E=(0,n.useCallback)(()=>{y(null),O(null)},[]),j=(0,n.useCallback)(async(r,s)=>{if(!e||!t)throw Error("useOrgOAuthApp: resourceId and org are required for setOrgOAuthApp");x(!0),y(null);try{return(await a.mcpServer.setOrgOAuthApp((0,c.create)(d.SetOrgOAuthAppInputSchema,{resourceId:e,org:t,clientId:r,clientSecret:s}))).oauthAppId}catch(t){let e=(0,p.toError)(t);throw y(e),e}finally{x(!1)}},[a,e,t]),C=(0,n.useCallback)(async()=>{if(!e||!t)throw Error("useOrgOAuthApp: resourceId and org are required for deleteOrgOAuthApp");k(!0),O(null);try{return(await a.mcpServer.deleteOrgOAuthApp((0,c.create)(d.DeleteOrgOAuthAppInputSchema,{resourceId:e,org:t}))).deleted}catch(t){let e=(0,p.toError)(t);throw O(e),e}finally{k(!1)}},[a,e,t]);return e&&t?{...o,isLoading:i,isRefetching:l,error:u,refetch:g,setOrgOAuthApp:j,isSetting:b,setError:S,deleteOrgOAuthApp:C,isDeleting:w,deleteError:A,clearErrors:E}:{...f,refetch:g,clearErrors:E}}e.s(["useOrgOAuthApp",0,b],651424),e.s(["useMcpServerCredentials",0,function(e,t){let h=(0,i.usePersonalEnvironment)(e),[p,m]=(0,n.useState)(!1),v=t?.spec?.auth,f=v?"oauth":"manual",x=v?.targetEnvVar||null,S=v?.tokenLifetimeHint||null,y=!v?.oauthOnly,w=p&&y,k=t?.status?.oauthStatus,A="oauth"===f&&k?.vendorApprovalStatus===o.VendorApprovalStatus.PENDING,O="oauth"===f&&(k?.vendorApprovalStatus===o.VendorApprovalStatus.PENDING||k?.vendorApprovalStatus===o.VendorApprovalStatus.REJECTED),E=k?.vendorApprovalDocsUrl||null,j=!!v?.oauthAppRef?.slug,C=b("oauth"===f&&j?t?.metadata?.id??null:null,e),N=C.hasOverride,I=C.isLoading||null!==C.error||j&&!e,M="oauth"!==f||I?a.OAuthAppSource.OAUTH_APP_SOURCE_UNSPECIFIED:N?a.OAuthAppSource.OAUTH_APP_SOURCE_ORG_OVERRIDE:j?a.OAuthAppSource.OAUTH_APP_SOURCE_PLATFORM:a.OAuthAppSource.OAUTH_APP_SOURCE_NONE,P="oauth"===f&&j&&!N&&C.isSupported,R=function(e,t){let n=(0,r.useStigmer)(),{data:a,isLoading:o,isRefetching:i,error:l,refetch:u}=(0,s.useFetch)(e&&t?async()=>{let r=await n.mcpServer.getOAuthGrantStatus((0,c.create)(d.GetOAuthGrantStatusInputSchema,{resourceId:e,org:t}));return{connected:r.connected,accessTokenExpiresAt:r.accessTokenExpiresAt,targetEnvVar:r.targetEnvVar,authMethod:r.authMethod,connectionHealth:r.connectionHealth}}:null,[e,t,n],g);return{...a,isLoading:o,isRefetching:i,error:l,refetch:u}}("oauth"===f?t?.metadata?.id??null:null,"oauth"===f?e:null),L="oauth"===f&&R.connected,T=(0,n.useMemo)(()=>new Set(Object.keys(h.environment?.spec?.data??{})),[h.environment]),_=(0,n.useMemo)(()=>{if(!t)return[];let e=t.spec?.env;return e&&0!==Object.keys(e).length?l(e,T).filter(e=>!u.SYSTEM_ENV_VAR_KEYS.has(e.key)):[]},[t,T]),U=(0,n.useMemo)(()=>_.filter(e=>!e.optional),[_]),V=(0,n.useMemo)(()=>!x||w?U:U.filter(e=>e.key!==x),[U,x,w]),D=!h.isLoading&&!R.isLoading&&0===V.length&&("manual"===f||w||L),H=(0,n.useCallback)(async e=>{await h.getOrCreate(),await h.addVariables(e)},[h]),$=(0,n.useCallback)(()=>{h.refetch(),R.refetch(),C.refetch()},[h,R,C]);return{authMode:f,oauthTargetEnvVar:x,isOAuthConnected:L,connectionHealth:R.connectionHealth,canDisconnect:L,accessTokenExpiresAt:R.accessTokenExpiresAt,tokenLifetimeHint:S,isVendorApprovalPending:A,isVendorApprovalBlocked:O,vendorApprovalDocsUrl:E,effectiveOAuthSource:M,isOrgOAuthApp:N,canBringOwnApp:P,manualEntrySupported:y,missingVariables:V,isReady:D,isLoading:h.isLoading||R.isLoading||C.isLoading,error:h.error??R.error??C.error,saveCredentials:H,isSaving:h.isMutating,refetch:$,manualOverride:w,setManualOverride:m}}],153158)},844533,801731,e=>{"use strict";var t=e.i(843476),r=e.i(893976),s=e.i(597744);function n({className:e}){return(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M2 5.5 8 2.5l6 3-6 3-6-3Z"}),(0,t.jsx)("path",{d:"M2 5.5v5l6 3 6-3v-5"}),(0,t.jsx)("path",{d:"M8 8.5v5"})]})}function a({className:e}){return(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"5",cy:"11",r:"2.5"}),(0,t.jsx)("path",{d:"M6.8 9.2 13 3"}),(0,t.jsx)("path",{d:"M11 5l1.5 1.5"}),(0,t.jsx)("path",{d:"M9 7l1.5 1.5"})]})}e.s(["StdioSandboxNotice",0,function({serverType:e,className:a}){var o;return(o=(0,s.useDeploymentMode)(),"cloud"!==o||e?.case!=="stdio")?null:(0,t.jsxs)("div",{role:"status",className:(0,r.cn)("stg:bg-muted-subtle stg:text-muted-foreground stg:flex stg:items-start stg:gap-2.5 stg:rounded-lg stg:border stg:border-transparent stg:px-4 stg:py-3",a),children:[(0,t.jsx)(n,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}),(0,t.jsx)("p",{className:"stg:text-xs stg:leading-relaxed",children:"This stdio server runs only on local runners — it won't be available to sessions on Stigmer-managed cloud compute. Run the session on a local runner (desktop app or CLI) to use it, or choose a remote (HTTP) server instead."})]})}],844533),e.s(["OAuthRequiredNotice",0,function({oauthOnly:e,className:s}){return e?(0,t.jsxs)("div",{role:"status",className:(0,r.cn)("stg:bg-muted-subtle stg:text-muted-foreground stg:flex stg:items-start stg:gap-2.5 stg:rounded-lg stg:border stg:border-transparent stg:px-4 stg:py-3",s),children:[(0,t.jsx)(a,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}),(0,t.jsx)("p",{className:"stg:text-xs stg:leading-relaxed",children:"This server requires OAuth. Sign in to connect — its hosted endpoint rejects manually-entered API tokens, so a pasted token won't work here."})]}):null}],801731)},388894,e=>{"use strict";var t=e.i(271645),r=e.i(891287),s=e.i(336973),n=e.i(586108),a=e.i(326283);e.s(["useDisconnectOAuth",0,function(){let e=(0,n.useStigmer)(),[o,i]=(0,t.useState)(!1),[l,u]=(0,t.useState)(null),c=(0,t.useCallback)(()=>u(null),[]);return{disconnect:(0,t.useCallback)(async(t,n)=>{i(!0),u(null);try{return(await e.mcpServer.disconnectOAuth((0,r.create)(s.DisconnectOAuthInputSchema,{resourceId:t,org:n}))).disconnected}catch(e){throw u((0,a.toError)(e)),e}finally{i(!1)}},[e]),isDisconnecting:o,error:l,clearError:c}}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,75786,e=>{"use strict";let t="https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",r="https://agent-plugins.org/schemas/1.0.0/mcp.schema.json",n={"agent-plugins":"plugin.json",claude:".claude-plugin/plugin.json",cursor:".cursor-plugin/plugin.json",codex:".codex-plugin/plugin.json"},s=e=>`'${e??""}'`,i=e=>void 0===e?"":` in ${s(e)}`,a={"no-manifest":()=>`no plugin manifest found: expected one of ${Object.values(n).map(e=>s(e)).join(", ")}`,"manifest-unreadable":e=>`manifest ${s(e.path)} is not valid JSON: ${e.detail??"parse error"}`,"manifest-schema-missing":e=>`manifest ${s(e.path)} is missing the required '$schema' field; an Agent Plugins manifest declares ${s(t)}`,"manifest-schema-unsupported":e=>`manifest ${s(e.path)} declares an unsupported '$schema' ${s(e.detail)}; this reader supports ${s(t)}`,"manifest-name-missing":e=>`manifest ${s(e.path)} is missing the required 'name' field`,"manifest-name-invalid":e=>`plugin name ${s(e.subject)}${i(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: ${s(e.subject)} in ${s(e.path)} versus ${e.detail??"another manifest"}`,"manifest-field-type":e=>`field ${s(e.subject)}${i(e.path)} has the wrong type: expected ${e.detail??"a different type"}`,"path-not-relative":e=>`path ${s(e.subject)}${i(e.path)} must be plugin-relative and begin with './'`,"path-escapes-root":e=>`path ${s(e.subject)}${i(e.path)} escapes the plugin root`,"path-glob-unsupported":e=>`path ${s(e.subject)}${i(e.path)} is a glob pattern; declare directories and files by path`,"path-uncontained":e=>`the reader listed a path outside the plugin root: ${s(e.path)}`,"document-too-large":e=>`${s(e.path)} is ${e.subject??"too many"} bytes, over the ${e.detail??""}-byte limit for this kind of document`,"skill-frontmatter-missing":e=>`${s(e.path)} must start with YAML frontmatter ('---')`,"skill-frontmatter-unclosed":e=>`${s(e.path)} frontmatter is not closed (missing the closing '---')`,"skill-frontmatter-unreadable":e=>`${s(e.path)} frontmatter is not valid YAML: ${e.detail??"parse error"}`,"skill-name-invalid":e=>`skill name ${s(e.subject)}${i(e.path)} is invalid: lowercase letters, digits and hyphens, optionally dot-scoped, with every segment alphanumeric`,"skill-name-duplicate":e=>`skill name ${s(e.subject)} appears more than once (again${i(e.path)})`,"mcp-config-unreadable":e=>`MCP configuration ${s(e.path)} is not valid JSON: ${e.detail??"parse error"}`,"mcp-config-shape":e=>`MCP configuration ${s(e.path)} must be an object with an 'mcpServers' object`,"mcp-config-schema-missing":e=>`MCP configuration ${s(e.path)} is missing the required '$schema' field; an Agent Plugins configuration declares ${s(r)}`,"mcp-config-schema-unsupported":e=>`MCP configuration ${s(e.path)} declares an unsupported '$schema' ${s(e.detail)}; this reader supports ${s(r)}`,"mcp-config-field-unknown":e=>`MCP configuration ${s(e.path)} has an unexpected top-level field ${s(e.subject)}; only '$schema' and 'mcpServers' are allowed`,"mcp-server-shape":e=>`MCP server ${s(e.subject)}${i(e.path)} must be an object`,"mcp-server-type-missing":e=>`MCP server ${s(e.subject)}${i(e.path)} is missing the 'type' field the Agent Plugins format requires ('stdio', 'streamable-http' or 'sse')`,"mcp-server-transport-unknown":e=>`MCP server ${s(e.subject)}${i(e.path)} has no 'type' and neither a 'command' nor a 'url' to infer it from`,"mcp-server-type-ambiguous":e=>`MCP server ${s(e.subject)}${i(e.path)} declares both 'command' and 'url'; a server is either stdio or HTTP`,"mcp-server-type-unknown":e=>`MCP server ${s(e.subject)}${i(e.path)} has an unknown 'type' ${s(e.detail)}; expected 'stdio', 'http', 'streamable-http' or 'sse'`,"mcp-server-field-unknown":e=>`MCP server ${s(e.subject)}${i(e.path)} has a field ${s(e.detail)} that its transport does not define`,"mcp-server-field-type":e=>`MCP server ${s(e.subject)}${i(e.path)} field ${s(e.detail)} has the wrong type`,"mcp-server-url-missing":e=>`MCP server ${s(e.subject)}${i(e.path)} is missing the 'url' its HTTP transport requires`,"mcp-server-url-invalid":e=>`MCP server ${s(e.subject)}${i(e.path)} has an invalid 'url' ${s(e.detail)}: expected an absolute HTTPS URL (HTTP only for localhost) with no user information or fragment`,"mcp-server-url-variable":e=>`MCP server ${s(e.subject)}${i(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 ${s(e.subject)}${i(e.path)} is missing the 'command' its stdio transport requires`,"mcp-server-command-invalid":e=>`MCP server ${s(e.subject)}${i(e.path)} has a 'command' that is not a single executable name; put arguments in 'args'`,"mcp-server-command-relative":e=>`MCP server ${s(e.subject)}${i(e.path)} runs a command bundled in the plugin ${s(e.detail)}; Stigmer runs only commands on the runner's PATH (for example 'npx' or 'uvx')`,"mcp-server-plugin-root-reference":e=>`MCP server ${s(e.subject)}${i(e.path)} references the plugin's own files through ${s(e.detail)}; Stigmer does not mount plugin files into the runner`,"mcp-server-cwd-unsupported":e=>`MCP server ${s(e.subject)}${i(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 ${s(e.subject)}${i(e.path)} sets environment variable ${s(e.detail)} to a literal value; Stigmer passes declared variables by name, so write ${s(`${e.detail??"KEY"}: "\${${e.detail??"KEY"}}"`)} and declare the variable`,"mcp-server-env-rename":e=>`MCP server ${s(e.subject)}${i(e.path)} maps environment variable ${s(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 ${s(e.subject)} appears more than once (again${i(e.path)})`,"mcp-server-header-duplicate":e=>`MCP server ${s(e.subject)}${i(e.path)} declares header ${s(e.detail)} more than once (header names are case-insensitive)`,"mcp-server-header-invalid":e=>`MCP server ${s(e.subject)}${i(e.path)} has an invalid header name ${s(e.detail)}`,"sub-agent-frontmatter-unreadable":e=>`${s(e.path)} frontmatter is not valid YAML: ${e.detail??"parse error"}`,"sub-agent-instructions-short":e=>`sub-agent ${s(e.subject)}${i(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 ${s(e.subject)} appears more than once (again${i(e.path)})`,"variable-name-invalid":e=>`variable name ${s(e.subject)}${i(e.path)} is invalid: an environment variable name is letters, digits and underscores, not starting with a digit`,"overlay-server-unknown":e=>`${s(e.path)} overlays MCP server ${s(e.subject)}, which the plugin does not declare`,"overlay-document-unknown":e=>`${s(e.path)} is not a document Stigmer reads; the 'ai.stigmer/' folder holds 'agent.yaml', 'workflows/<name>.yaml' and 'mcp-servers/<server>.yaml'`},o={"manifest-field-unknown":e=>`manifest ${s(e.path)} has an unknown field ${s(e.subject)}, ignored`,"manifest-extensions-invalid":e=>`manifest ${s(e.path)} has an 'extensions' field that is not an object, ignored`,"path-missing":e=>`path ${s(e.subject)} declared${i(e.path)} does not exist in the plugin`,"skill-name-defaulted":e=>`${s(e.path)} has no 'name' in its frontmatter; the skill is named after its directory, ${s(e.subject)}`,"skill-name-differs-from-directory":e=>`skill ${s(e.subject)}${i(e.path)} is named differently from its directory ${s(e.detail)}`,"skill-description-missing":e=>`skill ${s(e.subject)}${i(e.path)} has no 'description'`,"mcp-config-field-ignored":e=>`MCP configuration ${s(e.path)} has a top-level field ${s(e.subject)} Stigmer does not read, ignored`,"mcp-server-sse-mapped":e=>`MCP server ${s(e.subject)}${i(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 ${s(e.subject)}${i(e.path)} has a field ${s(e.detail)} Stigmer does not read, ignored`,"mcp-server-auth-ignored":e=>`MCP server ${s(e.subject)}${i(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 ${s(e.subject)} is referenced by MCP server ${s(e.detail)} but not declared; it is declared as a required secret`,"variable-unreferenced":e=>`variable ${s(e.subject)}${i(e.path)} is declared but no MCP server references it`,"variable-default-dropped":e=>`variable ${s(e.subject)}${i(e.path)} has a default value, which Stigmer does not carry; the user supplies the value`,"variable-type-narrowed":e=>`variable ${s(e.subject)}${i(e.path)} is typed ${s(e.detail)}; Stigmer variables are strings`,"variable-option-dropped":e=>`variable ${s(e.subject)}${i(e.path)} has a ${s(e.detail)} constraint, which Stigmer does not carry`,"sub-agent-name-defaulted":e=>`${s(e.path)} has no 'name' in its frontmatter; the sub-agent is named after the file, ${s(e.subject)}`,"sub-agent-skill-unknown":e=>`sub-agent ${s(e.subject)}${i(e.path)} asks for skill ${s(e.detail)}, which the plugin does not ship`,"sub-agent-model-unknown":e=>`sub-agent ${s(e.subject)}${i(e.path)} names model ${s(e.detail)}, which Stigmer cannot map; the sub-agent runs on the session's model`,"sub-agent-field-ignored":e=>`sub-agent ${s(e.subject)}${i(e.path)} has a field ${s(e.detail)} Stigmer does not read, ignored`};class l{errorSentences;warningSentences;errors=[];warnings=[];constructor(e,t){this.errorSentences=e,this.warningSentences=t}error(e,t={}){this.errors.push(d(e,t,this.errorSentences[e](t)))}warn(e,t={}){this.warnings.push(d(e,t,this.warningSentences[e](t)))}}function d(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}}e.s(["AGENT_PLUGINS_MANIFEST_SCHEMA",0,t,"AGENT_PLUGINS_MCP_SCHEMA",0,r,"FindingCollector",0,l,"Findings",0,class extends l{constructor(){super(a,o)}},"MANIFEST_LOCATIONS",0,n,"at",0,i,"q",0,s])},35167,e=>{"use strict";var t=e.i(75786);let r={stigmer:"marketplace.json",claude:".claude-plugin/marketplace.json",cursor:".cursor-plugin/marketplace.json",codex:".agents/plugins/marketplace.json"},n=Object.values(r).map(e=>(0,t.q)(e)).join(", "),s={"marketplace-not-found":()=>`no marketplace file found: expected one of ${n}`,"marketplace-too-large":e=>`${(0,t.q)(e.path)} is ${e.subject??""} bytes, above the ${e.detail??""} byte cap for a marketplace file`,"marketplace-unreadable":e=>`${(0,t.q)(e.path)} is not a readable marketplace file: ${e.detail??"parse error"}`,"marketplace-field-type":e=>`${(0,t.q)(e.path)} field ${(0,t.q)(e.subject)} must be ${e.detail??"of another type"}`,"marketplace-name-missing":e=>`${(0,t.q)(e.path)} has no 'name'; a marketplace needs one so its plugins can be addressed as '<marketplace>/<plugin>'`,"marketplace-name-invalid":e=>`${(0,t.q)(e.path)} name ${(0,t.q)(e.subject)} is invalid: 1 to 64 characters of a-z, 0-9, '-' and '.', starting and ending alphanumeric, no '--' or '..'`,"marketplace-plugins-missing":e=>`${(0,t.q)(e.path)} has no 'plugins' list`,"entry-shape":e=>`${(0,t.q)(e.path)} plugins[${e.subject??""}] must be an object with 'name' and 'source'`,"entry-name-missing":e=>`${(0,t.q)(e.path)} plugins[${e.subject??""}] has no 'name'`,"entry-name-invalid":e=>`${(0,t.q)(e.path)} plugin ${(0,t.q)(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=>`${(0,t.q)(e.path)} lists plugin ${(0,t.q)(e.subject)} more than once; 'install ${e.subject??""}' would be ambiguous`,"entry-source-missing":e=>`${(0,t.q)(e.path)} plugin ${(0,t.q)(e.subject)} has no 'source'`,"entry-source-escapes-root":e=>`${(0,t.q)(e.path)} plugin ${(0,t.q)(e.subject)} has source ${(0,t.q)(e.detail)} outside the marketplace root; a source is a directory inside the marketplace`,"default-unknown":e=>`${(0,t.q)(e.path)} names ${(0,t.q)(e.subject)} as a default but lists no plugin of that name`},i={"entry-source-unsupported":e=>`plugin ${(0,t.q)(e.subject)}${(0,t.at)(e.path)} has source ${(0,t.q)(e.detail)}, a form Stigmer does not fetch (only a directory inside the marketplace); not offered`,"entry-directory-missing":e=>`plugin ${(0,t.q)(e.subject)}${(0,t.at)(e.path)} names directory ${(0,t.q)(e.detail)}, which the marketplace does not contain; not offered`,"entry-not-a-plugin":e=>`plugin ${(0,t.q)(e.subject)}${(0,t.at)(e.path)} names directory ${(0,t.q)(e.detail)}, which holds no plugin manifest; not offered`};class a extends t.FindingCollector{constructor(){super(s,i)}}e.s(["MARKETPLACE_LOCATIONS",0,r,"MarketplaceFindings",0,a])},466531,e=>{"use strict";let t=new TextEncoder,r=new TextDecoder("utf-8",{fatal:!1});function n(e,t){return e<t?-1:+(e>t)}function s(e){return!(""===e||e.startsWith("/")||e.includes("\\"))&&e.split("/").every(e=>""!==e&&"."!==e&&".."!==e)}let i=/[*?[\]{}]/;e.s(["PLUGIN_DOCUMENT_LIMITS",0,{manifest:262144,mcpConfig:262144,skillMd:1048576,subAgent:1048576,overlay:1048576,logo:1048576,marketplace:1048576},"PluginFileIndex",0,class{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(n)}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(n)}},"basename",0,function(e){let t=e.lastIndexOf("/");return -1===t?e:e.slice(t+1)},"comparePaths",0,n,"decodeUtf8",0,function(e){let t=r.decode(e);return 65279===t.charCodeAt(0)?t.slice(1):t},"dirname",0,function(e){let t=e.lastIndexOf("/");return -1===t?"":e.slice(0,t)},"inMemoryPluginFiles",0,function(e){let r=new Map;for(let[n,s]of e)r.set(n,"string"==typeof s?t.encode(s):s);return{entries:[...r.entries()].map(([e,t])=>({path:e,size:t.length})).sort((e,t)=>n(e.path,t.path)),read(e){let t=r.get(e);if(void 0===t)throw Error(`plugin file '${e}' is not listed`);return t}}},"isContainedPath",0,s,"joinPath",0,function(e,t){return""===e?t:`${e}/${t}`},"resolveDeclaredPath",0,function(e){if(i.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:""}:s(t)?{ok:!0,path:t}:{ok:!1,kind:"path-escapes-root"}}])},782130,833811,378486,e=>{"use strict";var t=e.i(466531);function r(e,r,s,i){let a=n(e,r,s,i);return void 0===a?void 0:(0,t.decodeUtf8)(a)}function n(e,r,n,s){let i=t.PLUGIN_DOCUMENT_LIMITS[n],a=e.entry(r);if(void 0===a)throw Error(`plugin file '${r}' is not listed`);if(a.size>i)return void s.error("document-too-large",{path:r,subject:String(a.size),detail:String(i)});let o=e.files.read(r);return o.length>i?void s.error("document-too-large",{path:r,subject:String(o.length),detail:String(i)}):o}function s(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 i(s)?s:void n.error(r,{path:t,detail:"the document is not a JSON object"})}function i(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function a(e){return Array.isArray(e)&&e.every(e=>"string"==typeof e)}function o(e){return"string"==typeof e?e:JSON.stringify(e)}function l(e){return Object.entries(e)}function d(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 c(e,t,r,n){let s=e[t];if(void 0!==s)return a(s)?s:void n.error("manifest-field-type",{path:r,subject:t,detail:"an array of strings"})}function u(e,t,r,n){let s=e[t];if(void 0!==s){if("string"==typeof s)return[s];if(a(s))return s;n.error("manifest-field-type",{path:r,subject:t,detail:"a string or an array of strings"})}}function p(e,t,r,n){for(let[s]of l(e))t.has(s)||n.warn("manifest-field-unknown",{path:r,subject:s})}function f(e,t,r){let n={},s=d(e,"name",t,r);void 0!==s&&(n.name=s);let a=d(e,"version",t,r);void 0!==a&&(n.version=a);let o=d(e,"description",t,r);void 0!==o&&(n.description=o);let l=d(e,"homepage",t,r);void 0!==l&&(n.homepage=l);let u=d(e,"repository",t,r);void 0!==u&&(n.repository=u);let p=d(e,"license",t,r);void 0!==p&&(n.license=p);let f=c(e,"keywords",t,r);void 0!==f&&(n.keywords=f);let h=function(e,t,r){let n=e.author;if(void 0===n)return;if(!i(n))return void r.error("manifest-field-type",{path:t,subject:"author",detail:"an object"});let s={},a=d(n,"name",t,r);void 0!==a&&(s.name=a);let o=d(n,"email",t,r);void 0!==o&&(s.email=o);let l=d(n,"url",t,r);return void 0!==l&&(s.url=l),s}(e,t,r);return void 0!==h&&(n.author=h),n}function h(e,r,n,s){let i=u(e,r,n,s);if(void 0===i)return;let a=[];for(let e of i){let r=(0,t.resolveDeclaredPath)(e);if(!r.ok){s.error(r.kind,{path:n,subject:e});continue}a.push({path:r.path,manifest:n})}return a}function m(e,r,n,s,a){let o=e[r];if(void 0===o)return[];let l=Array.isArray(o)?o:[o],d=[];for(let e of l)if("string"==typeof e){let r=(0,t.resolveDeclaredPath)(e);if(!r.ok){a.error(r.kind,{path:n,subject:e});continue}d.push({kind:"file",path:r.path,dialect:s,manifest:n})}else i(e)?d.push({kind:"inline",manifest:n,servers:e,dialect:s}):a.error("manifest-field-type",{path:n,subject:r,detail:"a path, an object, or an array of either"});return d}e.s(["describeValue",0,o,"fields",0,l,"isJsonObject",0,i,"isStringArray",0,a,"isStringRecord",0,function(e){return i(e)&&Object.values(e).every(e=>"string"==typeof e)},"optionalString",0,d,"optionalStringArray",0,c,"parseJsonObject",0,s,"readBytes",0,n,"readText",0,r,"stringOrStringArray",0,u],833811);let g={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 v(e,t){let r=[];for(let[n,s]of l(e)){let e=g[n];if(void 0!==e&&r.push({kind:e,path:`${t}#${n}`}),"experimental"===n&&i(s))for(let[e]of l(s)){let n=b[e];void 0!==n&&r.push({kind:n,path:`${t}#experimental.${e}`})}}return r}let b={themes:"themes",monitors:"monitors",evals:"evals"},y="ai.stigmer",w=new Set(["displayName","logo","category"]);function $(e,t,r){let n=e.extensions;if(void 0===n)return[];if(!i(n))return r.warn("manifest-extensions-invalid",{path:t}),[];let s=[];for(let[e,r]of l(n)){if(i(r)&&0===l(r).length)continue;let n=`${t}#extensions.${e}`;if(e===y&&i(r)){void 0!==r.logo&&s.push({kind:"logo",path:`${n}.logo`}),l(r).some(([e])=>!w.has(e))&&s.push({kind:"extension",path:n});continue}s.push({kind:"extension",path:n})}return s}e.s(["extensionComponents",0,$,"ignoredFieldComponents",0,v,"readDeclaredPaths",0,h,"readIdentity",0,f,"readMcpSources",0,m,"stigmerExtensionOf",0,function(e){let t=e.extensions;if(!i(t))return;let r=t[y];return i(r)?r:void 0},"warnUnknownFields",0,p],378486);let j=new Set(["name","version","description","author","homepage","repository","license","keywords","skills","commands","agents","workflows","hooks","mcpServers","outputStyles","lspServers","experimental","userConfig","channels","dependencies","defaultEnabled"]),k=".mcp.json";function x(e,t,r,n,s){p(e,n,t,s);let i=f(e,t,s),a=h(e,"skills",t,s)??[],o=h(e,"agents",t,s),l=m(e,"mcpServers",t,r,s),d={dialect:r,path:t,identity:i,skillPaths:a,mcpConfigs:l,ignored:v(e,t)};return void 0!==o&&(d.agentPaths=o),void 0!==e.userConfig&&(d.variables={dialect:"claude",value:e.userConfig,manifest:t}),d}let S=new Set([...j,"apps","interface"]),P=new Set(["name","displayName","description","version","minClientVersions","author","publisher","homepage","repository","license","logo","keywords","category","tags","commands","agents","skills","rules","hooks","variables","mcpServers"]);var M=e.i(75786);let C=new Set(["$schema","name","version","description","author","homepage","repository","license","keywords","extensions"]),N="mcp.json",E=["claude","cursor","codex"],A=["agent-plugins",...E],T=/^[a-z0-9]([a-z0-9.-]*[a-z0-9])?$/;function I(e){return e.length<=64&&T.test(e)&&!e.includes("--")&&!e.includes("..")}e.s(["MANIFEST_PRECEDENCE",0,A,"detectManifests",0,function(e,t){let n=[],i=i=>{var a,l,d;let c,u=M.MANIFEST_LOCATIONS[i];if(!e.has(u))return;let g=void 0===(c=r(e,a=u,"manifest",l=t))?void 0:s(c,a,"manifest-unreadable",l),b=void 0===g?(d=i,{dialect:d,path:u,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!==M.AGENT_PLUGINS_MANIFEST_SCHEMA&&n.error("manifest-schema-unsupported",{path:r,detail:o(s)}),p(t,C,r,n),{dialect:"agent-plugins",path:r,identity:f(t,r,n),skillPaths:[],mcpConfigs:[],ignored:$(t,r,n)};case"claude":return x(t,r,"claude",j,n);case"cursor":let i,a,l,d;return p(t,P,r,n),i=f(t,r,n),a=h(t,"skills",r,n)??[],l=h(t,"agents",r,n),d={dialect:"cursor",path:r,identity:i,skillPaths:a,mcpConfigs:m(t,"mcpServers",r,"cursor",n),ignored:v(t,r)},void 0!==l&&(d.agentPaths=l),void 0!==t.variables&&(d.variables={dialect:"cursor",value:t.variables,manifest:r}),d;case"codex":return x(t,r,"codex",S,n);default:throw Error(`unknown dialect ${String(e)}`)}}(i,g,u,t);return n.push(b),b},a=i("agent-plugins"),l=E.map(i).filter(e=>void 0!==e);if(0===n.length)return void t.error("no-manifest");let d=a??l[0];if(void 0===d)throw Error("manifest set without an identity manifest");let c=[d,...n.filter(e=>e!==d)],u=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(I(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}(d,c,t);return{dialect:d.dialect,manifests:c,name:u,readsAgents:l.length>0,mcpSources:function(e,t,r){let n=[];for(let s of(void 0!==t&&e.has(N)&&n.push({kind:"file",path:N,dialect:"agent-plugins",manifest:t.path}),r))s.mcpConfigs.length>0?n.push(...s.mcpConfigs):"cursor"!==s.dialect&&e.has(k)&&n.push({kind:"file",path:k,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,a,l)}},"hasPluginManifest",0,function(e){let t=new Set(Object.values(M.MANIFEST_LOCATIONS));for(let r of e)if(t.has(r))return!0;return!1},"isValidPluginName",0,I],782130)},708162,802087,e=>{"use strict";var t,r,n,s,i=e.i(782130),a=e.i(833811),o=e.i(466531),l=e.i(35167);let d=["stigmer","claude","cursor","codex"];function c(e){return{ok:!1,errors:e.errors,warnings:e.warnings}}function u(e,t){let r=e[t];return"string"==typeof r?r:void 0}function p(e){let t=e;return"."===t||"./"===t||(t.startsWith("./")&&(t=t.slice(2)),""===(t=t.replace(/\/+$/,"")))?{ok:!0,dir:""}:(0,o.isContainedPath)(t)?{ok:!0,dir:t}:{ok:!1}}e.s(["readMarketplace",0,function(e){return function(e,t){var r,n,s;let f,h=new l.MarketplaceFindings,m=new o.PluginFileIndex(e),g=function(e){for(let t of d){let r=l.MARKETPLACE_LOCATIONS[t];if(e.has(r))return{dialect:t,path:r}}}(m);if(void 0===g)return h.error("marketplace-not-found"),c(h);let{dialect:v,path:b}=g,y=function(e,t,r){let n,s=o.PLUGIN_DOCUMENT_LIMITS.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 l=e.files.read(t);if(l.length>s)return void r.error("marketplace-too-large",{path:t,subject:String(l.length),detail:String(s)});try{n=JSON.parse((0,o.decodeUtf8)(l))}catch(e){r.error("marketplace-unreadable",{path:t,detail:e instanceof Error?e.message:String(e)});return}return(0,a.isJsonObject)(n)?n:void r.error("marketplace-unreadable",{path:t,detail:"the document is not a JSON object"})}(m,b,h);if(void 0===y)return c(h);let w=(r=y,n=b,s=h,void 0===(f=r.name)?void s.error("marketplace-name-missing",{path:n}):"string"!=typeof f?void s.error("marketplace-field-type",{path:n,subject:"name",detail:"a string"}):(0,i.isValidPluginName)(f)?f:void s.error("marketplace-name-invalid",{path:n,subject:f})),$=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 o="claude"===t?function(e){let t=e.metadata;if(!(0,a.isJsonObject)(t))return"";let r=u(t,"pluginRoot");if(void 0===r)return"";let n=p(r);return n.ok?n.dir:""}(e):"",l=[],d=new Set;return s.forEach((e,s)=>{let c;if(!(0,a.isJsonObject)(e))return void n.error("entry-shape",{path:r,subject:String(s)});let f=e.name;if(void 0===f)return void n.error("entry-name-missing",{path:r,subject:String(s)});if("string"!=typeof f||!(0,i.isValidPluginName)(f))return void n.error("entry-name-invalid",{path:r,subject:(0,a.describeValue)(f)});if(d.has(f))return void n.error("entry-name-duplicate",{path:r,subject:f});d.add(f);let h=u(e,"description");l.push({name:f,dir:function(e,t,r,n,s){var i,o,l,d;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(!(0,a.isJsonObject)(e)||"local"!==e.source||"string"!=typeof e.path){return void s.warn("entry-source-unsupported",{path:n,subject:t,detail:(o=e,(0,a.isJsonObject)(o)&&"string"==typeof o.source?o.source:(0,a.describeValue)(o))})}c=e.path}let u=p(c);return u.ok?(l=r,d=u.dir,""===l?d:""===d?l:`${l}/${d}`):void s.error("entry-source-escapes-root",{path:n,subject:t,detail:c})}(e.source,f,o,r,n),...void 0!==h&&{description:h},installedByDefault:"codex"===t&&(c=e.policy,(0,a.isJsonObject)(c)&&"INSTALLED_BY_DEFAULT"===c.installation)})}),l}(y,v,b,h),j="tree"===t?function(e,t,r,n){let s=[];for(let a of e)if(void 0!==a.dir){if(!t.isDirectory(a.dir)){n.warn("entry-directory-missing",{path:r,subject:a.name,detail:""===a.dir?".":a.dir});continue}if(!(0,i.hasPluginManifest)(function(e,t){let r=""===t?"":`${t}/`;return e.filesUnder(t).map(e=>e.slice(r.length))}(t,a.dir))){n.warn("entry-not-a-plugin",{path:r,subject:a.name,detail:""===a.dir?".":a.dir});continue}s.push({name:a.name,dir:a.dir,...void 0!==a.description&&{description:a.description}})}return s}($,m,b,h):function(e){let t=[];for(let r of e)void 0!==r.dir&&t.push({name:r.name,dir:r.dir,...void 0!==r.description&&{description:r.description}});return t}($),k=function(e,t,r,n,s,i){let o,l=new Set(t.map(e=>e.name)),d=new Set(r.map(e=>e.name));if("stigmer"===n){let t=e.defaults;void 0===t?o=[]:(0,a.isStringArray)(t)?o=t:(i.error("marketplace-field-type",{path:s,subject:"defaults",detail:"an array of strings"}),o=[])}else o="codex"===n?t.filter(e=>e.installedByDefault).map(e=>e.name):[];let c=[];for(let e of o){if(!l.has(e)){i.error("default-unknown",{path:s,subject:e});continue}d.has(e)&&!c.includes(e)&&c.push(e)}return c}(y,$,j,v,b,h);if(h.errors.length>0||void 0===w)return c(h);let x=function(e,t){switch(t){case"stigmer":return u(e,"description");case"claude":case"cursor":{let t=e.metadata;return(0,a.isJsonObject)(t)?u(t,"description"):void 0}case"codex":return;default:return t}}(y,v),S=function(e){let t=e.owner;if(!(0,a.isJsonObject)(t))return;let r=u(t,"name"),n=u(t,"email"),s=u(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}}}(y);return{ok:!0,marketplace:{name:w,...void 0!==x&&{description:x},...void 0!==S&&{owner:S},dialect:v,path:b,plugins:j,defaults:k},warnings:h.warnings}}(e,"tree")}],708162);var f=e.i(75786);let h={rules:"rules",hooks:"hooks",commands:"commands",canvases:"canvases",workflows:"workflows","output-styles":"output-styles",themes:"themes",monitors:"monitors",bin:"bin",assets:"assets",evals:"evals"},m={".lsp.json":"lsp-servers","settings.json":"settings",".app.json":"apps"},g=/\$\{([A-Za-z_][A-Za-z0-9_]*)\}/g,v=/^[A-Za-z_][A-Za-z0-9_]*$/,b=/\$\{user_config\.([A-Za-z_][A-Za-z0-9_]*)\}/g,y=new Set(["${PLUGIN_ROOT}","${PLUGIN_DATA}","${CLAUDE_PLUGIN_ROOT}","${CLAUDE_PLUGIN_DATA}","${CLAUDE_PROJECT_DIR}","${CURSOR_PLUGIN_ROOT}"]),w=new Set(["PLUGIN_ROOT","PLUGIN_DATA"]);function $(e){return e.replace(b,(e,t)=>`\${${t}}`)}function j(e){for(let t of y)if(e.includes(t))return t}function k(e){let t=[];for(let r of e.matchAll(g)){let e=r[1];void 0===e||t.includes(e)||t.push(e)}return t}let x=new Set(["$schema","mcpServers"]),S=new Set(["type","command","args","env","cwd"]),P=new Set(["type","url","headers"]),M=new Set(["type","command","args","env","cwd"]),C=new Set(["type","url","headers"]),N=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;function E(e,t){for(let r of k(e))t.add(r)}let A="ai.stigmer",T=`${A}/agent.yaml`,I=`${A}/workflows`,O=`${A}/mcp-servers`;e.i(222258);var _=e.i(967785);let z=/^[a-z0-9]+([.-][a-z0-9]+)*$/;function L(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 D(e){let t;try{t=(0,_.parse)(e)}catch(e){return{ok:!1,detail:e instanceof Error?e.message:String(e)}}return null==t?{ok:!0,fields:{}}:(0,a.isJsonObject)(t)?{ok:!0,fields:t}:{ok:!1,detail:"the frontmatter is not a mapping"}}let R="SKILL.md",U="skills",F=new Set(["name","description","model","skills"]);function q(e){let t=[e.title,e.description].filter(e=>"string"==typeof e&&""!==e);return 0===t.length?void 0:t.join(": ")}var B=e.i(229969);let J=new Date(1980,0,1);async function G(e){return Array.from(new Uint8Array(await globalThis.crypto.subtle.digest("SHA-256",e)),e=>e.toString(16).padStart(2,"0")).join("")}let W=[".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 V extends Error{}function K(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]=H(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]=H(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 V)return!1;throw e}}function H(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]=Z(e);let r=t;"-"===e[0]&&([r,e]=Z(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 V("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 Z(e){if(0===e.length||"-"===e[0]||"]"===e[0]||"\\"===e[0]&&0===(e=e.slice(1)).length)throw new V("bad pattern");let t=e[0]??"",r=e.slice(1);if(0===r.length)throw new V("bad pattern");return[t,r]}(t=n||(n={}))[t.NoMatch=0]="NoMatch",t[t.Exclude=1]="Exclude",t[t.Include=2]="Include";class Y{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(K(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),K(t,e)){r=!0;break}}else{if(!K(t,s[0]??""))return!1;r=!0,s=s.slice(1)}}return r&&this.dirOnly&&!t&&0===s.length&&(r=!1),r}}let X="defaults",Q=".gitignore",ee=".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 et{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===X?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 er(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 Y(t,r.split("/"),n,s,i)}(e,[]),source:t,raw:e})}return r}let en=new TextDecoder;async function es(e){let t=function(e){let t=new f.Findings;for(let r of e.entries)(0,o.isContainedPath)(r.path)||t.error("path-uncontained",{path:r.path});let r=new o.PluginFileIndex(e),n=(0,i.detectManifests)(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=(0,o.joinPath)(t,r);e.has((0,o.joinPath)(s,R))&&n.add(s)}};s(U);let i=t.manifests.flatMap(e=>e.skillPaths);for(let{path:t,manifest:a}of i)e.has((0,o.joinPath)(t,R))?n.add(t):e.isDirectory(t)?s(t):r.warn("path-missing",{path:a,subject:""===t?".":`./${t}`});return 0===i.length&&!e.isDirectory(U)&&e.has(R)&&n.add(""),[...n].sort(o.comparePaths)}(e,t,r)){let l=function(e,t,r,n){let s,i=(0,o.joinPath)(t,R),l=(0,a.readText)(e,i,"skillMd",n);if(void 0===l)return;let d=L(l);if(!d.ok)return void n.error("missing"===d.reason?"skill-frontmatter-missing":"skill-frontmatter-unclosed",{path:i});let c=D(d.yaml);if(!c.ok)return void n.error("skill-frontmatter-unreadable",{path:i,detail:c.detail});let u=""===t?r.name??"skill":(0,o.basename)(t);if("string"==typeof c.fields.name&&""!==c.fields.name?s=c.fields.name:(s=u,n.warn("skill-name-defaulted",{path:i,subject:s})),!z.test(s))return void n.error("skill-name-invalid",{path:i,subject:s});""!==t&&s!==u&&n.warn("skill-name-differs-from-directory",{path:i,subject:s,detail:u});let p=c.fields.description;return("string"!=typeof p||""===p)&&n.warn("skill-description-missing",{path:i,subject:s}),{name:s,..."string"==typeof p&&""!==p&&{description:p},dir:t,files:e.filesUnder(t)}}(e,i,t,r);if(void 0!==l){if(void 0!==s.get(l.name)){r.error("skill-name-duplicate",{subject:l.name,path:(0,o.joinPath)(i,R)});continue}s.set(l.name,i),n.push(l)}}return n}(r,n,t),l=function(e,t,r){let n=[],s=new Set,i=0;for(let o of t){let t=function(e,t,r){let n="agent-plugins"===t.dialect;if("inline"===t.kind){let e=(0,a.isJsonObject)(t.servers)?t.servers.mcpServers:void 0,n=(0,a.isJsonObject)(e)?e:t.servers;return(0,a.isJsonObject)(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=(0,a.readText)(e,t.path,"mcpConfig",r);if(void 0===s)return;let i=(0,a.parseJsonObject)(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!==f.AGENT_PLUGINS_MCP_SCHEMA&&r.error("mcp-config-schema-unsupported",{path:t.path,detail:(0,a.describeValue)(e)})}for(let[e]of(0,a.fields)(i))x.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 o=i.mcpServers;return(0,a.isJsonObject)(o)?{path:t.path,servers:o}:void r.error("mcp-config-shape",{path:t.path})}(e,o,r);if(void 0===t){i++;continue}for(let[e,l]of(0,a.fields)(t.servers)){if(s.has(e)){r.error("mcp-server-name-duplicate",{subject:e,path:t.path}),i++;continue}s.add(e);let d=function(e,t,r,n,s){let i={subject:e,path:r};if(!(0,a.isJsonObject)(t))return void s.error("mcp-server-shape",i);let o=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===o)return;let l="stdio"===o?n?S:M:n?P:C,d=new Set,c=!0;for(let[e,r]of(0,a.fields)(t))if(!l.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?[$(t)]:Array.isArray(t)?t.flatMap(e):(0,a.isJsonObject)(t)?Object.values(t).flatMap(e):[]}(r)))E(e,d);else s.warn("mcp-server-field-ignored",{...i,detail:e});if(c)return"stdio"===o?function(e,t,r,n,s){let i=!0,o=()=>{i=!1},l=t.command;if(void 0===l)s.error("mcp-server-command-missing",r),o();else if("string"!=typeof l)s.error("mcp-server-field-type",{...r,detail:"command"}),o();else{let e=j(l);void 0!==e?(s.error("mcp-server-plugin-root-reference",{...r,detail:e}),o()):l.startsWith("./")?(s.error("mcp-server-command-relative",{...r,detail:l}),o()):(""===l||/\s/.test(l)||l.includes("/"))&&(s.error("mcp-server-command-invalid",r),o())}let d=[],c=t.args;if(void 0!==c)if((0,a.isStringArray)(c))for(let e of c){let t=$(e),i=j(t);if(void 0!==i){s.error("mcp-server-plugin-root-reference",{...r,detail:i}),o();continue}E(t,n),d.push(t)}else s.error("mcp-server-field-type",{...r,detail:"args"}),o();let u=t.env;if(void 0!==u)if((0,a.isStringRecord)(u))for(let[e,t]of Object.entries(u)){if(w.has(e)){s.error("mcp-server-plugin-root-reference",{...r,detail:e}),o();continue}if(!v.test(e)){s.error("variable-name-invalid",{subject:e,path:r.path}),o();continue}let i=$(t),a=j(i);if(void 0!==a){s.error("mcp-server-plugin-root-reference",{...r,detail:a}),o();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}),o()):l!==e?(s.error("mcp-server-env-rename",{...r,detail:e}),o()):n.add(e)}else s.error("mcp-server-field-type",{...r,detail:"env"}),o();if(void 0!==t.cwd&&(s.error("mcp-server-cwd-unsupported",r),o()),i&&"string"==typeof l)return{name:e,transport:"stdio",command:l,args:d,env:[...n].sort()}}(e,t,i,d,s):function(e,t,r,n,s){let i,o=!0,l=()=>{o=!1},d=t.url;if(void 0===d)s.error("mcp-server-url-missing",r),l();else if("string"!=typeof d)s.error("mcp-server-field-type",{...r,detail:"url"}),l();else{let e=j(i=$(d));void 0!==e?(s.error("mcp-server-plugin-root-reference",{...r,detail:e}),l()):k(i).length>0?(s.error("mcp-server-url-variable",r),l()):!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}),l())}let c=[],u=t.headers;if(void 0!==u)if((0,a.isStringRecord)(u)){let e=new Set;for(let[t,i]of Object.entries(u)){if(!N.test(t)){s.error("mcp-server-header-invalid",{...r,detail:t}),l();continue}let a=t.toLowerCase();if(e.has(a)){s.error("mcp-server-header-duplicate",{...r,detail:t}),l();continue}e.add(a);let o=$(i),d=j(o);if(void 0!==d){s.error("mcp-server-plugin-root-reference",{...r,detail:d}),l();continue}E(o,n),c.push([t,o])}}else s.error("mcp-server-field-type",{...r,detail:"headers"}),l();if(o&&void 0!==i)return{name:e,transport:"http",url:i,headers:Object.fromEntries(c),env:[...n].sort()}}(e,t,i,d,s)}(e,l,t.path,"agent-plugins"===o.dialect,r);void 0!==d?n.push(d):i++}}return{servers:n,refused:i,declaredNames:s}}(r,n.mcpSources,t),d=l.servers,c=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(!(0,a.isJsonObject)(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(!(0,a.isJsonObject)(n))return r.error("manifest-field-type",{path:t,subject:"variables.properties",detail:"an object"}),[];let s=e.required??[];if(!(0,a.isStringArray)(s))return r.error("manifest-field-type",{path:t,subject:"variables.required",detail:"an array of strings"}),[];let i=[];for(let[e,o]of(0,a.fields)(n)){if(!v.test(e)){r.error("variable-name-invalid",{subject:e,path:t});continue}let n=(0,a.isJsonObject)(o)?o:{},l=n.type;void 0!==l&&"string"!==l&&r.warn("variable-type-narrowed",{subject:e,path:t,detail:(0,a.describeValue)(l)}),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 d=q(n);i.push({name:e,...void 0!==d&&{description:d},isSecret:!0,optional:!s.includes(e),declaredBy:"cursor"})}return i}(e.value,e.manifest,r):function(e,t,r){if(!(0,a.isJsonObject)(e))return r.error("manifest-field-type",{path:t,subject:"userConfig",detail:"an object"}),[];let n=[];for(let[s,i]of(0,a.fields)(e)){if(!v.test(s)){r.error("variable-name-invalid",{subject:s,path:t});continue}if(!(0,a.isJsonObject)(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:(0,a.describeValue)(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 o=q(i);n.push({name:s,...void 0!==o&&{description:o},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 o=[];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}),o.push({name:e,isSecret:!0,optional:!1,declaredBy:"inferred"}));return[...n.values(),...o]}(n,l,t),u=function(e,t,r,n){if(!t.readsAgents)return[];let s=new Set(r.map(e=>e.name)),i=[],l=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((0,o.joinPath)(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(o.comparePaths)}(e,t,n)){let t=function(e,t,r,n){let s,i,l=(0,a.readText)(e,t,"subAgent",n);if(void 0===l)return;let d=L(l),c={},u=l;if(d.ok){let e=D(d.yaml);if(!e.ok)return void n.error("sub-agent-frontmatter-unreadable",{path:t,detail:e.detail});c=e.fields,u=d.body}else if("unclosed"===d.reason)return void n.error("sub-agent-frontmatter-unreadable",{path:t,detail:"the frontmatter is not closed (missing the closing '---')"});let p=(0,o.basename)(t).replace(/\.md$/,"");"string"==typeof c.name&&""!==c.name?s=c.name:(s=p,n.warn("sub-agent-name-defaulted",{path:t,subject:s}));let f=u.trim();if(f.length<10)return void n.error("sub-agent-instructions-short",{path:t,subject:s,detail:String(10)});let h=c.description,m=c.skills,g=[];if(Array.isArray(m))for(let e of m)"string"==typeof e&&(r.has(e)?g.push(e):n.warn("sub-agent-skill-unknown",{path:t,subject:s,detail:e}));let v=c.model;for(let e of("string"==typeof v&&""!==v.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"}}(v)).alias&&n.warn("sub-agent-model-unknown",{path:t,subject:s,detail:v}),Object.keys(c)))F.has(e)||n.warn("sub-agent-field-ignored",{path:t,subject:s,detail:e});return{name:s,..."string"==typeof h&&""!==h&&{description:h},instructions:f,skillNames:g,...void 0!==i&&{modelHint:i},path:t}}(e,r,s,n);if(void 0!==t){if(l.has(t.name)){n.error("sub-agent-name-duplicate",{subject:t.name,path:r});continue}l.add(t.name),i.push(t)}}return i}(r,n,s,t),p=function(e,t,r){let n={workflows:[],mcpServers:[]},s=[],i=[];for(let l of e.filesUnder(A)){if(l===T){let t=(0,a.readBytes)(e,l,"overlay",r);void 0!==t&&(n.agent={path:l,bytes:t});continue}let d=function(e){let t=(0,o.basename)(e);return t.endsWith(".yaml")&&t.length>5?t.slice(0,-5):void 0}(l);if(void 0!==d&&(0,o.dirname)(l)===I){let t=(0,a.readBytes)(e,l,"overlay",r);void 0!==t&&s.push({path:l,bytes:t,name:d});continue}if(void 0!==d&&(0,o.dirname)(l)===O){if(!t.has(d)){r.error("overlay-server-unknown",{path:l,subject:d});continue}let n=(0,a.readBytes)(e,l,"overlay",r);void 0!==n&&i.push({path:l,bytes:n,server:d});continue}r.error("overlay-document-unknown",{path:l})}return n.workflows=s,n.mcpServers=i,n}(r,l.declaredNames,t),g=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=h[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=m[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 b=n.manifests[0]?.identity??{};return{ok:!0,plugin:{name:n.name,...void 0!==b.version&&{version:b.version},...void 0!==b.description&&{description:b.description},...void 0!==b.author&&{author:b.author},...void 0!==b.homepage&&{homepage:b.homepage},...void 0!==b.repository&&{repository:b.repository},...void 0!==b.license&&{license:b.license},keywords:b.keywords??[],dialect:n.dialect,manifestsFound:n.manifests.map(e=>e.path),skills:s,mcpServers:d,subAgents:u,variables:c,overlay:p,ignored:g},warnings:t.warnings}}(e.files);if(!t.ok)return{ok:!1,kind:"refused",errors:t.errors,warnings:t.warnings};let r=function(e){let t={};for(let r of e.entries)t[r.path]=e.read(r.path);return(0,B.zipSync)(t,{level:6,mtime:J})}(e.files);return{ok:!0,prepared:{plugin:t.plugin,warnings:t.warnings,files:e.files,stats:e.stats,archive:r,digest:await G(r)}}}async function ei(e,t){let r=new Map(e.map(e=>[e.path,e])),n=new Map,s=async e=>{let t=r.get(e);if(void 0===t)throw Error(`plugin file '${e}' is not listed`);n.set(e,await t.read())};await Promise.all([Q,ee].filter(e=>r.has(e)).map(e=>s(e)));let{maxBytes:i,...a}=t,o=function(e,t,r){var n,s,i;let a,o,l,d=new Map(e.map(e=>[e.path,e])),c=(a=[],(n={includeDefaults:!0,...r.respectGitignore&&d.has(Q)&&{gitignore:(s=t(Q),en.decode(s))},...d.has(ee)&&{stigmerignore:(i=t(ee),en.decode(i))},...void 0!==r.extraIgnore&&{extraIgnore:r.extraIgnore},...void 0!==r.extraInclude&&{extraInclude:r.extraInclude}}).includeDefaults&&a.push(...er(W,X)),void 0!==n.gitignore&&a.push(...er(n.gitignore.split(/\r?\n/),Q)),void 0!==n.stigmerignore&&a.push(...er(n.stigmerignore.split(/\r?\n/),ee)),o=n.extraIgnore??[],l=n.extraInclude??[],(o.length>0||l.length>0)&&a.push(...function(e,t){let r=er(e,"cli"),n=[];for(let e of t){let t=e.trim();""!==t&&n.push(t.startsWith("!")?t:`!${t}`)}return r.push(...er(n,"cli")),r}(o,l)),new et(a)),u={filesIncluded:0,filesIgnored:0,dirsSkipped:0,totalSize:0},p=new Set,f=[];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,c,p,u)){if(c.matchWithReason(t.path,!1).ignored){u.filesIgnored++;continue}f.push({path:t.path,size:t.size}),u.filesIncluded++,u.totalSize+=t.size}return{files:{entries:f,read(e){if(!d.has(e))throw Error(`plugin file '${e}' is not listed`);return t(e)}},stats:u,matcher:c}}(e,e=>{let t=n.get(e);if(void 0===t)throw Error(`plugin file '${e}' was not read before selection asked for it`);return t},a);return void 0!==i&&o.stats.totalSize>i?{ok:!1,kind:"too-large",selectedBytes:o.stats.totalSize,maxBytes:i}:(await Promise.all(o.files.entries.filter(e=>!n.has(e.path)).map(e=>s(e.path))),es(o))}e.s(["preparePluginFromTree",0,ei],802087)},321252,e=>{"use strict";e.s(["MARKETPLACE_TREE_LIMITS",0,{entries:2e4,pluginBytes:0x6400000},"MarketplaceSourceError",0,class extends Error{reason;constructor(e,t){super(e),this.reason=t,this.name="MarketplaceSourceError"}},"formatMib",0,function(e){return`${(e/1048576).toFixed(1)} MiB`}])},563212,961378,830419,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(893976),s=e.i(65642),i=e.i(476007),a=e.i(379410),o=e.i(758301),l=e.i(57330),d=e.i(869803),c=e.i(35167);e.i(466531);var u=e.i(708162),p=e.i(802087),f=e.i(321252);class h 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 m(e){let t=new Set(Object.values(c.MARKETPLACE_LOCATIONS)),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=(0,u.readMarketplace)({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 h(`${e.describe} is not a marketplace this console can read`,s.errors,s.warnings);return{tree:e,marketplace:s.marketplace,warnings:s.warnings}}function g(e,t){return e.plugins.find(e=>e.name===t)}function v(e,t){let r=""===t.dir?"":`${t.dir}/`;return e.tree.files.filter(e=>e.path.startsWith(r)).map(t=>({path:t.path.slice(r.length),size:t.size,read:()=>e.tree.fetchFile(t.path)}))}async function b(e,t){let r=v(e,t),n=r.reduce((e,t)=>e+t.size,0);if(n>f.MARKETPLACE_TREE_LIMITS.pluginBytes)throw y(t.name,n);let s=await (0,p.preparePluginFromTree)(r,{respectGitignore:!0,maxBytes:f.MARKETPLACE_TREE_LIMITS.pluginBytes});if(!s.ok)switch(s.kind){case"refused":throw new h(`'${t.name}' cannot be installed`,s.errors,s.warnings);case"too-large":throw y(t.name,s.selectedBytes);default:return s}let{plugin:i,warnings:a,stats:o,archive:l,digest:d}=s.prepared;return{origin:{kind:"source",entry:t,tree:e.tree.describe},plugin:i,warnings:a,stats:o,archive:l,digest:d}}function y(e,t){return new f.MarketplaceSourceError(`'${e}' is ${(0,f.formatMib)(t)} of files, over the ${(0,f.formatMib)(f.MARKETPLACE_TREE_LIMITS.pluginBytes)} a plugin archive may carry`,"too-large")}function w({prepared:e,relation:r,className:s}){let{plugin:i}=e;return(0,t.jsxs)("div",{className:(0,n.cn)("stg:flex stg:flex-col stg:gap-5",s),children:[(0,t.jsx)(x,{title:"Plugin",children:(0,t.jsx)(S,{rows:[["Name",i.name],["Version",i.version??""],["Format",l.DIALECT_LABELS[i.dialect]],["Files",`${e.stats.filesIncluded} read`]]})}),(0,t.jsxs)(x,{title:"Installs",children:[(0,t.jsx)(S,{rows:[["Skills",P(i.skills.map(e=>e.name))],["MCP servers",P(i.mcpServers.map(e=>`${e.name} (${e.transport})`))],["Sub-agents",P(i.subAgents.map(e=>e.name))],["Variables",P(i.variables.map(e=>`${e.name}${e.optional?" (optional)":""}${"inferred"===e.declaredBy?" (inferred)":""}`))]]}),i.variables.length>0&&(0,t.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."})]}),e.warnings.length>0&&(0,t.jsx)(x,{title:"Warnings",children:(0,t.jsx)("ul",{className:"stg:list-disc stg:space-y-1 stg:pl-5 stg:text-sm stg:text-foreground",children:e.warnings.map((e,r)=>(0,t.jsx)("li",{children:e.message},`${e.kind}:${r}`))})}),i.ignored.length>0&&(0,t.jsx)(x,{title:"Not installed",children:(0,t.jsx)("ul",{className:(0,n.cn)(d.UNSTYLED_LIST,"stg:space-y-0.5 stg:text-sm stg:text-muted-foreground"),children:i.ignored.map(e=>(0,t.jsxs)("li",{children:[e.kind," ",(0,t.jsxs)("span",{className:"stg:font-mono stg:text-xs",children:["(",e.path,")"]})]},e.path))})}),r&&(0,t.jsx)(j,{relation:r,name:i.name})]})}function $(e){switch(e.kind){case"source":return e.tree;case"upload":return"zip"===e.pick?`${e.name}${void 0===e.rerooted?"":` (read from its '${e.rerooted}/' folder)`}`:`the folder '${e.name}'`;default:return e}}function j({relation:e,name:r}){switch(e){case"installed":return(0,t.jsxs)("p",{role:"status",className:"stg:text-sm stg:text-muted-foreground",children:["This exact version of '",r,"' is already installed; there is nothing to do."]});case"upgrade":return(0,t.jsxs)("p",{role:"status",className:"stg:text-sm stg:text-foreground",children:["'",r,"' is already installed at another version. Installing replaces its skills, servers and agent with this version's, whichever source it came from; 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 k({error:e,retry:r,hint:n}){return e instanceof h?(0,t.jsxs)("div",{role:"alert",className:"stg:rounded-md stg:border stg:border-destructive stg:p-3 stg:text-sm",children:[(0,t.jsxs)("p",{className:"stg:font-medium stg:text-foreground",children:[e.subject,":"]}),(0,t.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,r)=>(0,t.jsx)("li",{children:e.message},`e${r}`))}),e.warnings.length>0&&(0,t.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,r)=>(0,t.jsx)("li",{children:e.message},`w${r}`))}),n&&(0,t.jsx)("p",{className:"stg:mt-2 stg:text-muted-foreground",children:n})]}):(0,t.jsx)(i.ErrorMessage,{error:e,...r&&{retry:r},title:"The plugin could not be read"})}function x({title:e,children:r}){return(0,t.jsxs)("section",{children:[(0,t.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,t.jsx)("div",{className:"stg:rounded-md stg:border stg:border-border stg:p-3",children:r})]})}function S({rows:e}){return(0,t.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,r])=>(0,t.jsxs)("div",{className:"stg:contents",children:[(0,t.jsx)("dt",{className:"stg:text-muted-foreground",children:e}),(0,t.jsx)("dd",{className:"stg:min-w-0 stg:break-words stg:text-foreground",children:r})]},e))})}function P(e){return 0===e.length?"none":`${e.length}: ${e.join(", ")}`}e.s(["PluginReadRefusal",0,h,"entryCandidates",0,v,"findEntry",0,g,"openMarketplace",0,m,"prepareEntry",0,b],961378);var M=e.i(468806),C=e.i(891287),N=e.i(44454),E=e.i(586108),A=e.i(326283);function T(){let e=(0,E.useStigmer)(),[t,n]=(0,r.useState)(!1),[s,i]=(0,r.useState)(null),a=(0,r.useCallback)(async(t,r)=>{n(!0),i(null);try{let n=await e.plugin.push((0,C.create)(N.PushPluginRequestSchema,{org:r.org,artifact:t.archive,message:void 0===r.installedFrom?"upload"===t.origin.kind?"uploaded from the console":"installed from the console":`installed from marketplace '${r.installedFrom}'`,...void 0!==r.visibility&&{visibility:r.visibility}})),s=(await e.plugin.listMembers(n.metadata?.id??"")).members;return{plugin:n,members:s}}catch(t){let e=(0,A.toError)(t);throw i(e),e}finally{n(!1)}},[e]),o=(0,r.useCallback)(()=>i(null),[]);return(0,r.useMemo)(()=>({install:a,isInstalling:t,error:s,clearError:o}),[a,t,s,o])}var I=e.i(583093),O=e.i(203941),_=e.i(910304);function z(e,t){let n=(0,E.useStigmer)(),s=e?.plugin.name??null,i=e?.digest??null,{data:a,isLoading:o,error:l,refetch:d}=(0,I.useFetch)(s&&t?()=>n.plugin.getByReference({org:t,slug:s}).catch(e=>{if((0,_.isNotFound)(e))return null;throw e}):null,[s,t,n],void 0),c=(0,r.useMemo)(()=>{if(void 0===a||null===i)return null;if(null===a)return"not-installed";let e=a.status;return e?.digest===i&&e.state===O.PluginState.READY?"installed":"upgrade"},[a,i]);return(0,r.useMemo)(()=>({installed:a??null,relation:c,isLoading:o,error:l,refetch:d}),[a,c,o,l,d])}function L({opened:e,entryName:n,sourceName:o,org:l,onClose:d,onInstalled:c}){let u,p,f,{prepared:h,relation:m,isPreparing:v,error:y,refetch:j}=(u=e&&n?g(e.marketplace,n):void 0,f=z((p=(0,I.useFetch)(e&&u?()=>b(e,u):null,[e,u],null)).data,l),(0,r.useMemo)(()=>({prepared:p.data,installed:f.installed,relation:f.relation,isPreparing:p.isLoading||f.isLoading,error:p.error??f.error,refetch:p.refetch}),[p.data,p.isLoading,p.error,p.refetch,f])),{install:x,isInstalling:S,error:P,clearError:M}=T(),[C,N]=(0,r.useState)(null);(0,r.useEffect)(()=>{M(),N(null)},[n,M]);let E=(0,r.useCallback)(async()=>{if(h)try{let e=await x(h,{org:l,installedFrom:o});N(e),c?.(e)}catch{}},[h,x,l,o,c]),A="upgrade"===m?`Upgrade ${n}`:`Install ${n}`;return(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-5",children:[(0,t.jsx)("header",{className:"stg:flex stg:items-start stg:justify-between stg:gap-4",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"stg:text-base stg:font-semibold stg:text-foreground",children:A}),(0,t.jsxs)("p",{className:"stg:mt-0.5 stg:text-xs stg:text-muted-foreground",children:["From ",o," (",h?$(h.origin):e.tree.describe,") into ",l]})]})}),v&&(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2 stg:text-sm stg:text-muted-foreground",role:"status",children:[(0,t.jsx)(a.SpinnerIcon,{className:"stg:size-4"}),"Reading the plugin's files…"]}),y&&(0,t.jsx)(k,{error:y,retry:j}),h&&!v&&(0,t.jsx)(w,{prepared:h,relation:m}),P&&(0,t.jsx)(i.ErrorMessage,{error:P,title:"The server refused the install"}),C&&(0,t.jsxs)("div",{role:"status",className:"stg:rounded-md stg:border stg:border-border stg:bg-muted stg:p-3 stg:text-sm stg:text-foreground",children:["Installed plugin '",C.plugin.metadata?.slug,"' (",D(C),")."]}),(0,t.jsxs)("footer",{className:"stg:flex stg:justify-end stg:gap-2 stg:pt-1",children:[(0,t.jsx)(s.Button,{variant:"outline",size:"sm",onClick:d,children:C?"Close":"Cancel"}),!C&&(0,t.jsx)(s.Button,{variant:"primary",size:"sm",onClick:E,disabled:!h||v||S||"installed"===m,children:S?"Installing…":"upgrade"===m?"Upgrade":"Install"})]})]})}function D(e){let t=e.plugin.status?.materialized,r=[[t?.skills??0,"skill"],[t?.mcpServers??0,"MCP server"],[t?.agents??0,"agent"],[t?.workflows??0,"workflow"]].filter(([e])=>e>0).map(([e,t])=>{var r,n;return r=e,n=t,`${r} ${n}${1===r?"":"s"}`});return 0===r.length?"nothing installed":r.join(", ")}e.s(["PluginInstallDialog",0,function({opened:e,entryName:r,sourceName:s,org:i,open:a,onClose:o,onInstalled:l,className:d}){return a&&null!==e&&null!==r?(0,t.jsx)(M.DialogShell,{open:!0,onOpenChange:e=>{e||o()},width:"lg",className:(0,n.cn)("stg:max-h-[85vh] stg:bg-card stg:text-foreground",d),"aria-label":`Install ${r}`,children:(0,t.jsx)("div",{className:"stg:flex stg:max-h-[85vh] stg:flex-col stg:overflow-y-auto stg:p-6",children:(0,t.jsx)(L,{opened:e,entryName:r,sourceName:s,org:i,onClose:o,onInstalled:l})})}):null},"summariseInstall",0,D],830419);var R=e.i(229969);function U(e){let t=null;for(let r of e){let e=r.indexOf("/");if(e<=0)return null;let n=r.slice(0,e);if(null===t)t=n;else if(t!==n)return null}return t}class F extends Error{reason;constructor(e,t){super(e),this.reason=t,this.name="LocalPluginError"}}let q=[80,75,3,4];function B(e,t){if(0===t.length)throw new F(`'${e}' holds no files`,"empty");return{kind:"folder",name:e,candidates:t.map(({path:e,file:t})=>({path:e,size:t.size,read:async()=>new Uint8Array(await t.arrayBuffer())}))}}async function J(e){let t=new Uint8Array(await e.arrayBuffer());if(!q.every((e,r)=>t[r]===e))throw new F(`'${e.name}' is not a zip archive`,"not-a-zip");let r=Object.entries((0,R.unzipSync)(t)).filter(([e])=>!e.endsWith("/")&&!e.startsWith("__MACOSX/"));if(0===r.length)throw new F(`'${e.name}' holds no files`,"empty");let n=U(r.map(([e])=>e)),s=null===n?0:n.length+1;return{kind:"zip",name:e.name,candidates:r.map(([e,t])=>({path:e.slice(s),size:t.length,read:async()=>t})),...null!==n&&{rerooted:n}}}async function G(e){let t=await (0,p.preparePluginFromTree)(e.candidates,{respectGitignore:!0,maxBytes:f.MARKETPLACE_TREE_LIMITS.pluginBytes});if(!t.ok)switch(t.kind){case"refused":throw new h(`'${e.name}' cannot be installed`,t.errors,t.warnings);case"too-large":throw new F(`'${e.name}' is ${(0,f.formatMib)(t.selectedBytes)} of files after ignores, over the ${(0,f.formatMib)(t.maxBytes)} a plugin archive may carry`,"too-large");default:return t}let{plugin:r,warnings:n,stats:s,archive:i,digest:a}=t.prepared;return{origin:{kind:"upload",pick:e.kind,name:e.name,...void 0!==e.rerooted&&{rerooted:e.rerooted}},plugin:r,warnings:n,stats:s,archive:i,digest:a}}let W=/\.zip$/i;async function V(e,t){let r=[],n=e.createReader();for(;;){let e=await new Promise((e,t)=>n.readEntries(e,t));if(0===e.length)break;for(let n of e){let e=""===t?n.name:`${t}/${n.name}`;if(n.isDirectory)r.push(...await V(n,e));else if(n.isFile){let t=await new Promise((e,t)=>n.file(e,t));r.push({path:e,file:t})}}}return r}function K({upload:e,onCancel:i}){let[l,d]=(0,r.useState)(!1),c=(0,r.useRef)(null),u=(0,r.useRef)(null),{phase:p}=e,f="preparing"===p.kind,m=(0,r.useCallback)(t=>{t.preventDefault(),t.stopPropagation(),d(!1),e.fromDrop(t.dataTransfer.items,t.dataTransfer.files)},[e]);return(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-3",children:[(0,t.jsxs)("div",{onDragOver:e=>{e.preventDefault(),e.stopPropagation(),d(!0)},onDragLeave:e=>{e.preventDefault(),e.stopPropagation(),d(!1)},onDrop:m,"aria-label":"Upload a plugin",className:(0,n.cn)("stg:flex stg:flex-col stg:items-center stg:justify-center stg:gap-3 stg:rounded-lg stg:border-2 stg:border-dashed stg:p-12 stg:transition-colors",l?"stg:border-primary stg:bg-muted-subtle":"stg:border-border",f&&"stg:pointer-events-none stg:opacity-60"),children:[(0,t.jsx)(o.UploadIcon,{className:(0,n.cn)("stg:size-10 stg:text-muted-foreground",l&&"stg:text-primary")}),f?(0,t.jsxs)("p",{className:"stg:flex stg:items-center stg:gap-2 stg:text-sm stg:font-medium stg:text-foreground",role:"status",children:[(0,t.jsx)(a.SpinnerIcon,{className:"stg:size-4"}),"Reading ",p.name,"…"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"stg:text-sm stg:font-medium stg:text-foreground",children:"Drop a plugin folder or a .zip of one here"}),(0,t.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,t.jsx)(s.Button,{variant:"outline",size:"sm",onClick:()=>c.current?.click(),children:"Choose a folder"}),(0,t.jsx)(s.Button,{variant:"outline",size:"sm",onClick:()=>u.current?.click(),children:"Choose a .zip"})]})]}),(0,t.jsx)("p",{className:"stg:mt-2 stg:text-[10px] stg:text-muted-foreground-subtle",children:"A Cursor, Claude Code, Codex or Agent Plugins folder installs unchanged."}),(0,t.jsx)("input",{ref:e=>{c.current=e,e?.setAttribute("webkitdirectory","")},type:"file",multiple:!0,onChange:t=>{let{files:r}=t.target;r&&r.length>0&&e.fromFolderInput(r),t.target.value=""},className:"stg:hidden","aria-hidden":"true","data-testid":"plugin-folder-input"}),(0,t.jsx)("input",{ref:u,type:"file",accept:".zip",onChange:t=>{let r=t.target.files?.[0];r&&e.fromZip(r),t.target.value=""},className:"stg:hidden","aria-hidden":"true","data-testid":"plugin-zip-input"})]}),"refused"===p.kind&&(0,t.jsx)(k,{error:p.error,..."refused"===p.kind&&"folder"===p.pick&&p.error instanceof h&&p.error.errors.some(e=>"no-manifest"===e.kind)&&{hint:"No manifest was found in the folder. Some browsers leave out files and folders whose names begin with a dot when a folder is picked, and a Cursor or Claude Code plugin keeps its manifest in one; zip the folder and upload the .zip instead."}}),i&&(0,t.jsx)("div",{className:"stg:flex stg:justify-end",children:(0,t.jsx)(s.Button,{variant:"outline",size:"sm",onClick:i,children:"Cancel"})})]})}function H({prepared:e,org:n,onBack:a,onComplete:o}){let l=z(e,n),{install:d,isInstalling:c,error:u}=T(),[p,f]=(0,r.useState)(null),h=(0,r.useCallback)(async()=>{try{let t=await d(e,{org:n});f(t),o?.(t)}catch{}},[d,e,n,o]),m="upgrade"===l.relation?"Upgrade":"Install";return(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:gap-5",children:[(0,t.jsxs)("header",{children:[(0,t.jsxs)("h2",{className:"stg:text-base stg:font-semibold stg:text-foreground",children:[m," ",e.plugin.name]}),(0,t.jsxs)("p",{className:"stg:mt-0.5 stg:text-xs stg:text-muted-foreground",children:["From ",$(e.origin)," into ",n,". The archive is rebuilt from the selected files, so its digest is the one `stigmer push plugin` prints for this folder."]})]}),(0,t.jsx)(w,{prepared:e,relation:l.relation}),l.error&&(0,t.jsx)(i.ErrorMessage,{error:l.error,title:"The organization could not be asked what it holds"}),u&&(0,t.jsx)(i.ErrorMessage,{error:u,title:"The server refused the install"}),p&&(0,t.jsxs)("div",{role:"status",className:"stg:rounded-md stg:border stg:border-border stg:bg-muted stg:p-3 stg:text-sm stg:text-foreground",children:["Installed plugin '",p.plugin.metadata?.slug,"' (",D(p),")."]}),(0,t.jsxs)("footer",{className:"stg:flex stg:justify-end stg:gap-2 stg:pt-1",children:[(0,t.jsx)(s.Button,{variant:"outline",size:"sm",onClick:a,disabled:c,children:p?"Upload another":"Choose a different plugin"}),!p&&(0,t.jsx)(s.Button,{variant:"primary",size:"sm",onClick:h,disabled:c||l.isLoading||"installed"===l.relation,children:c?"Installing…":m})]})]})}e.s(["PluginUploader",0,function({org:e,onComplete:s,onCancel:i,className:a}){let o=function(){let[e,t]=(0,r.useState)({kind:"idle"}),n=(0,r.useCallback)(async(e,r,n)=>{t({kind:"preparing",name:r});try{let r=await G(await e());t({kind:"prepared",prepared:r})}catch(e){t({kind:"refused",error:e instanceof Error?e:Error(String(e)),pick:n})}},[]),s=(0,r.useCallback)(e=>{let t=e[0];return n(async()=>(function(e){let t=Array.from(e);if(0===t.length)throw new F("no files were picked","empty");let r=t.map(e=>({path:e.webkitRelativePath||e.name,file:e})),n=U(r.map(e=>e.path)),s=null===n?r:r.map(({path:e,file:t})=>({path:e.slice(n.length+1),file:t}));return B(n??"folder",s)})(e),t?.webkitRelativePath.split("/")[0]||"folder","folder")},[n]),i=(0,r.useCallback)(e=>n(()=>J(e),e.name,"zip"),[n]),a=(0,r.useCallback)(async(e,r)=>{let s=e[0]?.webkitGetAsEntry?.()??null;if(null!==s&&s.isDirectory)return n(async()=>B(s.name,await V(s,"")),s.name,"folder");let a=r[0];if(void 0!==a&&W.test(a.name))return i(a);t({kind:"refused",error:new F("drop a plugin folder or a .zip of one","empty"),pick:null})},[n,i]),o=(0,r.useCallback)(()=>t({kind:"idle"}),[]);return(0,r.useMemo)(()=>({phase:e,fromFolderInput:s,fromZip:i,fromDrop:a,reset:o}),[e,s,i,a,o])}();return(0,t.jsx)("div",{className:(0,n.cn)("stg:flex stg:flex-col stg:gap-4",a),children:"prepared"===o.phase.kind?(0,t.jsx)(H,{prepared:o.phase.prepared,org:e,onBack:o.reset,onComplete:s}):(0,t.jsx)(K,{upload:o,onCancel:i})})}],563212)}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,691444,e=>{"use strict";var t=e.i(430182);let s={[t.IamRole.iam_role_unspecified]:"unspecified",[t.IamRole.owner]:"owner",[t.IamRole.admin]:"admin",[t.IamRole.member]:"member",[t.IamRole.viewer]:"viewer",[t.IamRole.participant]:"participant"},r={owner:t.IamRole.owner,admin:t.IamRole.admin,member:t.IamRole.member,viewer:t.IamRole.viewer,participant:t.IamRole.participant},n={[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"},i={[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 i[e]??""},"iamRoleDisplayName",0,function(e){return n[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),n=e.i(869803),i=e.i(170255),a=e.i(430182);let o=new Map([[i.ApiResourceKind.identity_provider,[a.IamRole.owner,a.IamRole.viewer]],[i.ApiResourceKind.oauth_app,[a.IamRole.owner,a.IamRole.viewer]],[i.ApiResourceKind.platform_client,[a.IamRole.owner,a.IamRole.viewer]],[i.ApiResourceKind.organization,[a.IamRole.owner,a.IamRole.admin,a.IamRole.member,a.IamRole.viewer]],[i.ApiResourceKind.agent,[a.IamRole.owner,a.IamRole.viewer]],[i.ApiResourceKind.session,[a.IamRole.owner,a.IamRole.viewer]],[i.ApiResourceKind.skill,[a.IamRole.owner,a.IamRole.viewer]],[i.ApiResourceKind.mcp_server,[a.IamRole.owner,a.IamRole.viewer]],[i.ApiResourceKind.agent_instance,[a.IamRole.owner,a.IamRole.viewer]],[i.ApiResourceKind.agent_share,[a.IamRole.owner,a.IamRole.viewer]],[i.ApiResourceKind.agent_channel,[a.IamRole.owner,a.IamRole.viewer,a.IamRole.participant]],[i.ApiResourceKind.channel_app,[a.IamRole.owner,a.IamRole.viewer]],[i.ApiResourceKind.workflow,[a.IamRole.owner,a.IamRole.viewer]],[i.ApiResourceKind.workflow_instance,[a.IamRole.owner,a.IamRole.viewer]],[i.ApiResourceKind.workflow_execution,[a.IamRole.owner,a.IamRole.viewer]],[i.ApiResourceKind.environment,[a.IamRole.owner,a.IamRole.viewer]],[i.ApiResourceKind.artifact,[a.IamRole.owner,a.IamRole.viewer]],[i.ApiResourceKind.schedule,[a.IamRole.owner,a.IamRole.viewer]],[i.ApiResourceKind.plugin,[a.IamRole.owner,a.IamRole.viewer]],[i.ApiResourceKind.project,[a.IamRole.owner,a.IamRole.viewer]]]),l=Object.freeze([]);function g(e){return o.get(e)??l}e.s(["getGrantableRoles",0,g,"hasGrantableRoles",0,function(e){let t=o.get(e);return void 0!==t&&t.length>0}],818094);var c=e.i(691444);e.s(["RoleSelector",0,function({kind:e,onSelect:i,selected:a,defaultRole:o,disabled:l=!1,className:d}){let u=(0,s.useId)(),{options:m,selected:x,select:p}=function(e,t){let[r,n]=(0,s.useState)(t??null),i=(0,s.useMemo)(()=>null===e?[]:g(e).map(e=>({role:e,label:(0,c.iamRoleDisplayName)(e),description:(0,c.iamRoleDescription)(e),value:(0,c.iamRoleToString)(e)})),[e]),a=(0,s.useMemo)(()=>null!==r?(0,c.iamRoleToString)(r):"",[r]);return{options:i,selected:r,selectedValue:a,select:(0,s.useCallback)(e=>n(e),[]),clear:(0,s.useCallback)(()=>n(null),[]),hasOptions:i.length>0}}(e,o),f=void 0!==a?a:x;return 0===m.length?null:(0,t.jsxs)("fieldset",{className:(0,r.cn)(n.UNSTYLED_FIELDSET,"stg:space-y-1.5",d),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=f===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",l&&"stg:pointer-events-none stg:opacity-50"),children:[(0,t.jsx)("input",{type:"radio",name:u,value:e.value,checked:s,disabled:l,onChange:()=>{var t;p(t=e.role),i?.(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),n=e.i(586108),i=e.i(583093);e.s(["useResourceAccess",0,function(e,a){let o=(0,n.useStigmer)(),l=e?.kind??null,g=e?.id??null,c=a?.includeInherited??!1,{data:d,isLoading:u,isRefetching:m,error:x,refetch:p}=(0,i.useFetch)(l&&g?()=>{let e=(0,t.create)(s.ListResourceAccessInputSchema,{resource:(0,t.create)(r.ApiResourceRefSchema,{kind:l,id:g}),includeInherited:c});return o.iamPolicy.listResourceAccessByPrincipal(e).then(e=>[...e.entries])}:null,[l,g,c,o],[]);return{members:d,isLoading:u,isRefetching:m,error:x,refetch:p}}],564035);var a=e.i(271645),o=e.i(326283);e.s(["useCreateIamPolicy",0,function(){let e=(0,n.useStigmer)(),[t,s]=(0,a.useState)(!1),[r,i]=(0,a.useState)(null),l=(0,a.useCallback)(()=>i(null),[]);return{create:(0,a.useCallback)(async t=>{s(!0),i(null);try{return await e.iamPolicy.create(t)}catch(e){throw i((0,o.toError)(e)),e}finally{s(!1)}},[e]),isCreating:t,error:r,clearError:l}}],288441),e.s(["useDeleteIamPolicy",0,function(){let e=(0,n.useStigmer)(),[t,s]=(0,a.useState)(!1),[r,i]=(0,a.useState)(null),l=(0,a.useCallback)(()=>i(null),[]);return{remove:(0,a.useCallback)(async t=>{s(!0),i(null);try{return await e.iamPolicy.delete(t)}catch(e){throw i((0,o.toError)(e)),e}finally{s(!1)}},[e]),isDeleting:t,error:r,clearError:l}}],890079);var l=e.i(843476),g=e.i(893976),c=e.i(188482);function d(e){return e?.identityOrigin?.providerDisplayName??""}e.s(["ProviderBadge",0,function({principal:e,className:t}){let s=d(e);return s?(0,l.jsxs)(c.Tooltip,{children:[(0,l.jsx)(c.TooltipTrigger,{render:(0,l.jsx)("span",{className:(0,g.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,l.jsx)(c.TooltipContent,{side:"top",children:`Identity provider: ${s}`})]}):null},"providerLabel",0,d],32011)},213149,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(893976),n=e.i(468806),i=e.i(818094),a=e.i(869803),o=e.i(610595),l=e.i(597744),g=e.i(891287),c=e.i(632897),d=e.i(564035),u=e.i(288441),m=e.i(890079),x=e.i(691444),p=e.i(146312),f=e.i(32011);function h({orgId:e,value:n,onChange:i,excludePrincipalIds:l,disabled:g=!1,className:c}){let u=(0,s.useId)(),{members:m,isLoading:x,error:p}=(0,d.useResourceAccess)(e?{kind:"organization",id:e}:null),[v,j]=(0,s.useState)(""),[y,w]=(0,s.useState)(!1),[N,k]=(0,s.useState)(0),R=(0,s.useRef)(null),C=(0,s.useMemo)(()=>new Set(l??[]),[l]),I=(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]),S=(0,s.useMemo)(()=>{let e=new Map;for(let t of I){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))},[I]),M=(0,s.useMemo)(()=>{let e=v.trim().toLowerCase();return e?I.filter(t=>{let s=(t.name??"").toLowerCase(),r=(t.email??"").toLowerCase();return s.includes(e)||r.includes(e)}):I},[I,v]),A=(0,s.useCallback)(e=>{C.has(e.id)||(i({id:e.id,name:e.name||e.email||e.id,email:e.email,view:e}),j(""),w(!1))},[C,i]),L=(0,s.useCallback)(e=>{if("ArrowDown"===e.key)e.preventDefault(),w(!0),k(e=>Math.min(e+1,M.length-1));else if("ArrowUp"===e.key)e.preventDefault(),k(e=>Math.max(e-1,0));else if("Enter"===e.key){e.preventDefault();let t=M[N];t&&!C.has(t.id)&&A(t)}else"Escape"===e.key&&w(!1)},[M,N,C,A]);return n?(0,t.jsxs)("div",{className:(0,r.cn)("stg:space-y-1",c),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:(n.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:n.name}),(0,t.jsx)(f.ProviderBadge,{principal:n.view})]}),n.email&&n.email!==n.name&&(0,t.jsx)("span",{className:"stg:block stg:truncate stg:text-[0.6rem] stg:text-muted-foreground",children:n.email})]})]}),(0,t.jsx)("button",{type:"button",onClick:()=>i(null),disabled:g,"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",c),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:R,type:"text",role:"combobox","aria-expanded":y,"aria-controls":u,"aria-autocomplete":"list",autoComplete:"off",value:v,onChange:e=>{j(e.target.value),w(!0),k(0)},onFocus:()=>w(!0),onBlur:()=>{window.setTimeout(()=>w(!1),120)},onKeyDown:L,placeholder:"Search by name or email",disabled:g||x,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:[x&&(0,t.jsx)("li",{className:"stg:px-2.5 stg:py-2 stg:text-xs stg:text-muted-foreground",children:"Loading members…"}),!x&&p&&(0,t.jsx)("li",{className:"stg:px-2.5 stg:py-2 stg:text-[0.65rem] stg:text-destructive",role:"alert",children:(0,o.getUserMessage)(p)}),!x&&!p&&0===M.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."}),!x&&!p&&M.map((e,s)=>{let n=C.has(e.id),i=s===N,a=e.name||e.email||e.id,o=!!(0,f.providerLabel)(e)&&(e.identityOrigin?.providerDisplayName!=="Stigmer"||!!e.email&&S.has(e.email.toLowerCase()));return(0,t.jsxs)("li",{role:"option","aria-selected":i,"aria-disabled":n,onMouseEnter:()=>k(s),onMouseDown:t=>{t.preventDefault(),n||A(e)},className:(0,r.cn)("stg:flex stg:items-center stg:justify-between stg:gap-2 stg:px-2.5 stg:py-1.5",n?"stg:cursor-not-allowed stg:opacity-50":"stg:cursor-pointer",i&&!n&&"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}),o&&(0,t.jsx)(f.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})]})]}),n&&(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 j({resourceKind:e,resourceKindString:n,resourceId:i,orgId:a,excludePrincipalIds:l,onGranted:d,onCancel:m,className:f}){let{create:b,isCreating:y,error:w,clearError:N}=(0,u.useCreateIamPolicy)(),[k,R]=(0,s.useState)(null),[C,I]=(0,s.useState)(null),S=null!==k&&null!==C&&!y,M=(0,s.useCallback)(async e=>{if(e.preventDefault(),S&&null!==C&&null!==k){N();try{let e=(0,g.create)(c.IamPolicySpecSchema,{principal:(0,g.create)(c.ApiResourceRefSchema,{kind:"identity_account",id:k.id}),resource:(0,g.create)(c.ApiResourceRefSchema,{kind:n,id:i}),relation:(0,x.iamRoleToString)(C)}),t=await b(e);d?.(t)}catch{}}},[S,C,k,n,i,b,N,d]);return(0,t.jsxs)("form",{onSubmit:M,className:(0,r.cn)("stg:space-y-3",f),children:[(0,t.jsxs)("div",{className:"stg:space-y-3",children:[(0,t.jsx)(h,{orgId:a,value:k,onChange:R,excludePrincipalIds:l,disabled:y}),(0,t.jsx)(p.RoleSelector,{kind:e,selected:C,onSelect:I,disabled:y})]}),w&&(0,t.jsx)("p",{className:"stg:text-destructive stg:text-[0.65rem]",role:"alert",children:(0,o.getUserMessage)(w)}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[(0,t.jsxs)("button",{type:"submit",disabled:!S,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 w({resource:e,resourceKindString:n,resourceKind:x,orgId:p,className:f}){let{accessList:h,isLoading:b,fetchError:v,revokeAccess:k,isRevoking:R,revokeError:C,refetch:I,hasGrantableRoles:S}=function(e){var t;let r=(0,s.useMemo)(()=>e?{kind:e.kind,id:e.id}:null,[e?.kind,e?.id]),{members:n,isLoading:a,isRefetching:o,error:l,refetch:x}=(0,d.useResourceAccess)(r),{roles:p,hasRoles:f}=(t=e?.resourceKind??null,(0,s.useMemo)(()=>null===t?{roles:[],hasRoles:!1}:{roles:(0,i.getGrantableRoles)(t),hasRoles:(0,i.hasGrantableRoles)(t)},[t])),{create:h,isCreating:b,error:v,clearError:j}=(0,u.useCreateIamPolicy)(),{remove:y,isDeleting:w,error:N,clearError:k}=(0,m.useDeleteIamPolicy)(),R=(0,s.useRef)(e);R.current=e;let C=(0,s.useCallback)(async(e,t)=>{let s=R.current;if(!s)return;let r=(0,g.create)(c.IamPolicySpecSchema,{principal:(0,g.create)(c.ApiResourceRefSchema,{kind:"identity_account",id:e}),resource:(0,g.create)(c.ApiResourceRefSchema,{kind:s.kind,id:s.id}),relation:t});await h(r),x()},[h,x]);return{accessList:n,isLoading:a,isRefetching:o,fetchError:l,grantableRoles:p,hasGrantableRoles:f,grantAccess:C,isGranting:b,grantError:v,revokeAccess:(0,s.useCallback)(async(e,t)=>{let s=R.current;if(!s)return;let r=(0,g.create)(c.IamPolicySpecSchema,{principal:(0,g.create)(c.ApiResourceRefSchema,{kind:"identity_account",id:e}),resource:(0,g.create)(c.ApiResourceRefSchema,{kind:s.kind,id:s.id}),relation:t});await y(r),x()},[y,x]),isRevoking:w,revokeError:N,refetch:x,clearErrors:(0,s.useCallback)(()=>{j(),k()},[j,k])}}(e),M=(0,l.useDeploymentMode)(),[A,L]=(0,s.useState)(!1);if("local"===M&&"organization"!==e.kind)return(0,t.jsxs)("p",{className:(0,r.cn)("stg:text-xs stg:text-muted-foreground",f),children:["This edition does not share ",n.replaceAll("_"," "),"s with individual people. Sharing with specific people is available in Stigmer Enterprise and Cloud."]});let _=h.map(e=>e.principal?.id).filter(e=>!!e),T={kind:n,id:e.id};return(0,t.jsxs)("div",{className:(0,r.cn)("stg:flex stg:flex-col stg:gap-4",f),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...":`${h.length} ${1===h.length?"person":"people"} with access`}),v&&(0,t.jsx)("p",{className:"stg:text-destructive stg:text-[0.65rem]",role:"alert",children:(0,o.getUserMessage)(v)}),!b&&h.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:h.map(e=>(0,t.jsx)(N,{entry:e,grantGate:T,onRevoke:k,isRevoking:R},e.principal?.id??"unknown"))}),C&&(0,t.jsx)("p",{className:"stg:text-destructive stg:text-[0.65rem]",role:"alert",children:(0,o.getUserMessage)(C)})]}),S&&(0,t.jsx)(y.PermissionGate,{resource:T,relation:"can_grant_access",children:(0,t.jsx)("div",{className:"stg:border-t stg:border-border stg:pt-3",children:A?(0,t.jsx)(j,{resourceKind:x,resourceKindString:n,resourceId:e.id,orgId:p,excludePrincipalIds:_,onGranted:()=>{L(!1),I()},onCancel:()=>L(!1)}):(0,t.jsx)("button",{type:"button",onClick:()=>L(!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 N({entry:e,grantGate:n,onRevoke:i,isRevoking:a}){let o=e.principal,l=e.roles,g=o?.name||o?.email||o?.id||"Unknown",c=l[0]?.role,d=(0,s.useCallback)(async()=>{o?.id&&c?.code&&await i(o.id,c.code)},[o?.id,c?.code,i]);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:(o?.name?.[0]??o?.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:g}),o?.email&&o.name&&(0,t.jsx)("p",{className:"stg:text-[0.6rem] stg:text-muted-foreground stg:truncate",children:o.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:c?.name??c?.code??"—"}),(0,t.jsx)(y.PermissionGate,{resource:n,relation:"can_grant_access",children:(0,t.jsx)("button",{type:"button",onClick:d,disabled:a,"aria-label":`Remove ${g}'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)(k,{})})})]})]})}function k(){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 R=e.i(388023);function C({title:e,description:s,children:r}){return(0,t.jsxs)("section",{className:"stg:px-6 stg:py-4",children:[(0,t.jsx)("h3",{className:"stg:text-xs stg:font-medium stg:text-muted-foreground",children:e}),s&&(0,t.jsx)("p",{className:"stg:mt-0.5 stg:text-[0.65rem] stg:text-muted-foreground",children:s}),(0,t.jsx)("div",{className:"stg:mt-2.5",children:r})]})}function I(){return(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M4 4l8 8M12 4l-8 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}e.s(["ManageAccessDialog",0,function({open:e,onOpenChange:a,resource:o,visibility:l,extraSection:g}){let c=(0,s.useId)(),d=(0,s.useCallback)(()=>{a(!1)},[a]),u=(0,i.hasGrantableRoles)(o.kind);return(0,t.jsx)(n.DialogShell,{open:e,onOpenChange:a,width:"md","aria-labelledby":c,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:c,className:"stg:text-base stg:font-semibold stg:text-foreground",children:"Manage access"}),o.name&&(0,t.jsx)("p",{className:"stg:mt-0.5 stg:truncate stg:text-xs stg:text-muted-foreground",children:o.name})]}),(0,t.jsx)("button",{type:"button",onClick:d,"aria-label":"Close",className:(0,r.cn)("stg:rounded-md stg:p-1 stg:text-muted-foreground","stg:hover:text-foreground stg:hover:bg-accent-hover","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring"),children:(0,t.jsx)(I,{})})]}),(0,t.jsxs)("div",{className:"stg:flex stg:flex-col stg:divide-y stg:divide-border",children:[l&&(0,t.jsx)(C,{title:"General access",description:"Who can find and open this resource.",children:(0,t.jsx)(R.ResourceVisibilityControl,{kind:l.kind,resourceId:o.id,visibility:l.current,org:l.org,onChanged:l.onChanged})}),u&&(0,t.jsx)(C,{title:"People with access",children:(0,t.jsx)(w,{resource:{kind:o.kindString,id:o.id,resourceKind:o.kind},resourceKindString:o.kindString,resourceKind:o.kind,orgId:o.org})}),g&&(0,t.jsx)(C,{title:g.title,description:g.description,children:g.content})]}),(0,t.jsx)("div",{className:"stg:flex stg:items-center stg:justify-end stg:border-t stg:border-border stg:px-6 stg:py-3",children:(0,t.jsx)("button",{type:"button",onClick:d,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)},10337,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(893976),n=e.i(468806);e.s(["ConfirmDialog",0,function({state:e,onConfirm:i,onCancel:a}){let o=(0,s.useCallback)(e=>{e||a()},[a]);if(!e)return null;let l="destructive"===e.variant;return(0,t.jsx)(n.DialogShell,{open:!0,onOpenChange:o,width:"sm","aria-label":e.title,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.5",children:[(0,t.jsx)("h3",{className:"stg:text-base stg:font-semibold stg:text-foreground",children:e.title}),(0,t.jsx)("p",{className:"stg:text-sm stg:text-muted-foreground",children:e.description})]}),(0,t.jsxs)("div",{className:"stg:flex stg:justify-end stg:gap-2",children:[(0,t.jsx)("button",{type:"button",onClick: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:border stg:border-input stg:bg-background stg:text-foreground","stg:hover:bg-accent stg:hover:text-accent-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:e.cancelLabel??"Cancel"}),(0,t.jsx)("button",{type:"button",onClick:i,className:(0,r.cn)("stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium stg:transition-colors","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring",l?"stg:bg-destructive stg:text-destructive-foreground stg:hover:bg-destructive-hover":"stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover"),children:e.confirmLabel??"Confirm"})]})]})})}])},966205,e=>{"use strict";var t=e.i(271645);e.s(["useConfirmAction",0,function(){let[e,s]=(0,t.useState)(null),r=(0,t.useCallback)(e=>new Promise(t=>{s({...e,resolve:t})}),[]),n=(0,t.useCallback)(()=>{e?.resolve(!0),s(null)},[e]),i=(0,t.useCallback)(()=>{e?.resolve(!1),s(null)},[e]);return(0,t.useMemo)(()=>({confirmState:e,confirm:r,handleConfirm:n,handleCancel:i}),[e,r,n,i])}])},475254,e=>{"use strict";var t=e.i(271645);let s=(...e)=>e.filter((e,t,s)=>!!e&&""!==e.trim()&&s.indexOf(e)===t).join(" ").trim(),r=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,s)=>s?s.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,t.forwardRef)(({color:e="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:o="",children:l,iconNode:g,...c},d)=>(0,t.createElement)("svg",{ref:d,...n,width:r,height:r,stroke:e,strokeWidth:a?24*Number(i)/Number(r):i,className:s("lucide",o),...!l&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(c)&&{"aria-hidden":"true"},...c},[...g.map(([e,s])=>(0,t.createElement)(e,s)),...Array.isArray(l)?l:[l]]));e.s(["default",0,(e,n)=>{let a=(0,t.forwardRef)(({className:a,...o},l)=>(0,t.createElement)(i,{ref:l,iconNode:n,className:s(`lucide-${r(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,a),...o}));return a.displayName=r(e),a}],475254)},678745,e=>{"use strict";let t=(0,e.i(475254).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["default",0,t])},845132,678784,916624,e=>{"use strict";var t=e.i(843476),s=e.i(893976),r=e.i(704077),n=e.i(678745);e.s(["CheckIcon",()=>n.default],678784);var n=n,i=e.i(364354);function a(e){return(0,t.jsx)(r.Menu.Root,{...e})}function o(e){return(0,t.jsx)(r.Menu.Trigger,{...e})}function l({align:e="start",alignOffset:n=0,side:a="bottom",sideOffset:o=4,className:g,...c}){let d=(0,i.useStigmerPortalContainer)();return(0,t.jsx)(r.Menu.Portal,{container:d,children:(0,t.jsx)(r.Menu.Positioner,{className:"stg:isolate stg:z-50 stg:outline-none",align:e,alignOffset:n,side:a,sideOffset:o,children:(0,t.jsx)(r.Menu.Popup,{className:(0,s.cn)("stg:bg-popover stg:text-popover-foreground stg:ring-foreground/10","stg:data-[side=bottom]:slide-in-from-top-2 stg:data-[side=inline-end]:slide-in-from-left-2 stg:data-[side=inline-start]:slide-in-from-right-2 stg:data-[side=left]:slide-in-from-right-2 stg:data-[side=right]:slide-in-from-left-2 stg:data-[side=top]:slide-in-from-bottom-2","stg:data-open:animate-in stg:data-open:fade-in-0 stg:data-open:zoom-in-95","stg:data-closed:animate-out stg:data-closed:fade-out-0 stg:data-closed:zoom-out-95","stg:z-50 stg:max-h-(--available-height) stg:w-(--anchor-width) stg:min-w-32 stg:origin-(--transform-origin) stg:overflow-x-hidden stg:overflow-y-auto stg:rounded-lg stg:p-1 stg:shadow-md stg:ring-1 stg:duration-100 stg:outline-none stg:data-closed:overflow-hidden",g),...c})})})}function g({className:e,variant:n="default",...i}){return(0,t.jsx)(r.Menu.Item,{"data-variant":n,className:(0,s.cn)("stg:focus:bg-accent stg:focus:text-accent-foreground stg:not-data-[variant=destructive]:focus:**:text-accent-foreground","stg:data-[variant=destructive]:text-destructive stg:data-[variant=destructive]:focus:bg-destructive-subtle stg:data-[variant=destructive]:focus:text-destructive stg:data-[variant=destructive]:*:[svg]:text-destructive","stg:relative stg:flex stg:cursor-default stg:items-center stg:gap-1.5 stg:rounded-md stg:px-1.5 stg:py-1 stg:text-sm stg:outline-hidden stg:select-none","stg:data-disabled:pointer-events-none stg:data-disabled:opacity-50","stg:[&_svg]:pointer-events-none stg:[&_svg]:shrink-0 stg:[&_svg:not([class*='size-'])]:size-4",e),...i})}function c({className:e,...n}){return(0,t.jsx)(r.Menu.Separator,{className:(0,s.cn)("stg:bg-border stg:-mx-1 stg:my-1 stg:h-px",e),...n})}function d({className:e,...s}){return(0,t.jsx)("div",{role:"group",className:e,...s})}function u({className:e,...r}){return(0,t.jsx)("span",{className:(0,s.cn)("stg:text-muted-foreground stg:block stg:px-1.5 stg:py-1 stg:text-[11px] stg:font-medium stg:uppercase stg:tracking-wider stg:select-none",e),...r})}e.s(["Menu",0,a,"MenuContent",0,l,"MenuGroup",0,d,"MenuItem",0,g,"MenuLabel",0,u,"MenuRadioGroup",0,function(e){return(0,t.jsx)(r.Menu.RadioGroup,{...e})},"MenuRadioItem",0,function({className:e,children:i,...a}){return(0,t.jsxs)(r.Menu.RadioItem,{className:(0,s.cn)("stg:focus:bg-accent stg:focus:text-accent-foreground stg:focus:**:text-accent-foreground","stg:relative stg:flex stg:cursor-default stg:items-center stg:gap-1.5 stg:rounded-md stg:py-1 stg:pr-8 stg:pl-1.5 stg:text-sm stg:outline-hidden stg:select-none","stg:data-disabled:pointer-events-none stg:data-disabled:opacity-50","stg:[&_svg]:pointer-events-none stg:[&_svg]:shrink-0 stg:[&_svg:not([class*='size-'])]:size-4",e),...a,children:[(0,t.jsx)("span",{className:"stg:pointer-events-none stg:absolute stg:right-2 stg:flex stg:items-center stg:justify-center",children:(0,t.jsx)(r.Menu.RadioItemIndicator,{children:(0,t.jsx)(n.default,{})})}),i]})},"MenuSeparator",0,c,"MenuTrigger",0,o],916624);let m=Object.assign(function({children:e}){return(0,t.jsx)(a,{children:e})},{Trigger:function({children:e,className:r,"aria-label":n="Actions"}){return(0,t.jsx)(o,{className:(0,s.cn)("stg:inline-flex stg:items-center stg:justify-center stg:rounded-md stg:p-1","stg:text-muted-foreground stg:hover:text-foreground stg:hover:bg-accent","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:data-popup-open:bg-accent stg:data-popup-open:text-foreground",r),"aria-label":n,children:e})},Content:function({children:e,align:r="end",className:n}){return(0,t.jsx)(l,{align:r,className:(0,s.cn)("stg:min-w-44",n),children:e})},Item:function({children:e,onSelect:r,icon:n,shortcut:i,variant:a="default",disabled:o,className:l}){return(0,t.jsxs)(g,{variant:a,disabled:o,onClick:r,className:(0,s.cn)("stg:justify-between",l),children:[(0,t.jsxs)("span",{className:"stg:flex stg:items-center stg:gap-2",children:[n,(0,t.jsx)("span",{children:e})]}),i&&(0,t.jsx)("kbd",{className:"stg:ml-auto stg:text-[11px] stg:tracking-widest stg:text-muted-foreground-subtle",children:i})]})},Separator:function({className:e}){return(0,t.jsx)(c,{className:e})},Group:function({children:e,label:s,className:r}){return(0,t.jsxs)(d,{className:r,children:[s&&(0,t.jsx)(u,{children:s}),e]})}});e.s(["ActionMenu",0,m],845132)},476007,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(610595),n=e.i(893976);let i={auth:"Authentication required",permission:"Access denied","not-found":"Not found",validation:"Invalid request",server:"Server error",unavailable:"Service unavailable",cancelled:"Request cancelled",unknown:"Something went wrong"};function a({className:e}){return(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M7.13 2.5a1 1 0 0 1 1.74 0l5.5 9.5A1 1 0 0 1 13.5 13.5h-11a1 1 0 0 1-.87-1.5l5.5-9.5z"}),(0,t.jsx)("path",{d:"M8 6v3"}),(0,t.jsx)("circle",{cx:"8",cy:"11",r:"0.5",fill:"currentColor",stroke:"none"})]})}function o({className:e}){return(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M8 1.5l5 2v4c0 3.5-2.5 5.5-5 6.5-2.5-1-5-3-5-6.5v-4l5-2z"}),(0,t.jsx)("path",{d:"M6 6.5l4 4M10 6.5l-4 4"})]})}function l({className:e}){return(0,t.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:(0,t.jsx)("path",{d:"M4 6l4 4 4-4"})})}function g({className:e}){return(0,t.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",className:e,"aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M2 6.5h4v-4"}),(0,t.jsx)("path",{d:"M3.5 11.5a5.5 5.5 0 1 0 .5-6l-2 1"})]})}e.s(["ErrorMessage",0,function({error:e,title:c,retry:d,className:u}){let[m,x]=(0,s.useState)(!1);if(!e)return null;let p=(0,r.classifyError)(e),f=(0,r.getUserMessage)(e),h=(0,r.getRpcMetadata)(e),b=(0,r.isRetryableError)(e);return(0,t.jsx)("div",{role:"alert",className:(0,n.cn)("stg:bg-destructive-subtle stg:border-destructive/20 stg:text-destructive stg:rounded-lg stg:border stg:p-4",u),children:(0,t.jsxs)("div",{className:"stg:flex stg:items-start stg:gap-3",children:["auth"===p||"permission"===p?(0,t.jsx)(o,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}):(0,t.jsx)(a,{className:"stg:mt-0.5 stg:size-4 stg:shrink-0"}),(0,t.jsxs)("div",{className:"stg:min-w-0 stg:flex-1 stg:space-y-1",children:[(0,t.jsx)("p",{className:"stg:text-sm stg:font-medium",children:c??i[p]}),(0,t.jsx)("p",{className:"stg:text-destructive-muted stg:text-sm",children:f}),h&&(0,t.jsxs)("div",{className:"stg:pt-1",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>x(e=>!e),className:"stg:text-destructive-muted stg:hover:text-destructive-muted stg:inline-flex stg:items-center stg:gap-1 stg:text-xs stg:transition-colors",children:[(0,t.jsx)(l,{className:(0,n.cn)("stg:size-3 stg:transition-transform",m&&"stg:rotate-180")}),"Technical details"]}),m&&(0,t.jsxs)("dl",{className:"stg:text-destructive-muted stg:mt-1.5 stg:space-y-0.5 stg:font-mono stg:text-xs",children:[(0,t.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,t.jsx)("dt",{className:"stg:shrink-0",children:"Method:"}),(0,t.jsx)("dd",{className:"stg:truncate",children:h.method})]}),(0,t.jsxs)("div",{className:"stg:flex stg:gap-2",children:[(0,t.jsx)("dt",{className:"stg:shrink-0",children:"Path:"}),(0,t.jsx)("dd",{className:"stg:truncate",children:h.path})]})]})]})]}),d&&b&&(0,t.jsxs)("button",{type:"button",onClick:d,className:(0,n.cn)("stg:inline-flex stg:shrink-0 stg:items-center stg:gap-1.5 stg:rounded-md stg:border stg:px-2.5 stg:py-1.5 stg:text-xs stg:font-medium","stg:border-destructive/20 stg:text-destructive stg:hover:bg-destructive-subtle","stg:transition-colors"),children:[(0,t.jsx)(g,{className:"stg:size-3"}),"Retry"]})]})})}])},193799,e=>{"use strict";var t=e.i(271645);e.s(["useCopyFeedback",0,function(){let[e,s]=(0,t.useState)(!1),r=(0,t.useRef)(null);(0,t.useEffect)(()=>()=>{null!==r.current&&clearTimeout(r.current)},[]);let n=(0,t.useCallback)(async e=>{try{await navigator.clipboard.writeText(e)}catch{return!1}return s(!0),null!==r.current&&clearTimeout(r.current),r.current=setTimeout(()=>s(!1),2e3),!0},[]);return(0,t.useMemo)(()=>({copy:n,copied:e}),[n,e])}])},927056,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(893976);e.s(["Tabs",0,function({tabs:e,activeTab:n,onTabChange:i,children:a,"aria-label":o,className:l}){let g=(0,s.useId)(),c=(0,s.useRef)(new Map),d=e=>`${g}-tab-${e}`,u=e=>`${g}-panel-${e}`,m=(0,s.useCallback)(e=>{c.current.get(e)?.focus(),i(e)},[i]),x=(0,s.useCallback)(t=>{let s=e.findIndex(e=>e.id===n);if(-1===s)return;let r=null;switch(t.key){case"ArrowRight":r=(s+1)%e.length;break;case"ArrowLeft":r=(s-1+e.length)%e.length;break;case"Home":r=0;break;case"End":r=e.length-1;break;default:return}t.preventDefault(),m(e[r].id)},[e,n,m]);return(0,t.jsxs)("div",{className:(0,r.cn)("stg:flex stg:flex-col",l),children:[(0,t.jsx)("div",{role:"tablist","aria-label":o,onKeyDown:x,className:"stg:flex stg:border-b stg:border-border",children:e.map(e=>{let s=e.id===n;return(0,t.jsxs)("button",{ref:t=>{t?c.current.set(e.id,t):c.current.delete(e.id)},id:d(e.id),role:"tab",type:"button","aria-selected":s,"aria-controls":u(e.id),tabIndex:s?0:-1,onClick:()=>i(e.id),"data-cursor-target":`tab-${e.id}`,className:(0,r.cn)("stg:relative stg:inline-flex stg:items-center stg:gap-1.5 stg:px-3 stg:py-2 stg:text-xs stg:font-medium stg:transition-colors","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring stg:focus-visible:ring-offset-1",s?"stg:text-foreground":"stg:text-muted-foreground stg:hover:text-foreground"),children:[e.icon,e.label,null!=e.badge&&e.badge>0&&(0,t.jsx)("span",{"aria-hidden":"true",className:(0,r.cn)("stg:inline-flex stg:min-w-[1.25rem] stg:items-center stg:justify-center stg:rounded-full stg:px-1 stg:py-px stg:text-[10px] stg:font-medium stg:leading-none",s?"stg:bg-primary-subtle stg:text-primary":"stg:bg-muted stg:text-muted-foreground"),children:e.badge}),s&&(0,t.jsx)("span",{className:"stg:absolute stg:inset-x-0 stg:-bottom-px stg:h-0.5 stg:bg-primary","aria-hidden":"true"})]},e.id)})}),(0,t.jsx)("div",{id:u(n),role:"tabpanel","aria-labelledby":d(n),tabIndex:0,className:"stg:min-h-0 stg:flex-1 stg:pt-4 stg:focus-visible:outline-none",children:a})]})}])},266442,e=>{"use strict";var t=e.i(843476),s=e.i(893976),r=e.i(188482);let n={ready:"Ready",running:"Running",pending:"Pending",degraded:"Degraded",failed:"Failed",disabled:"Disabled",draft:"Draft"};e.s(["StatusBadge",0,function({phase:e,label:i,tooltip:a,className:o}){let l=i??n[e],g=(0,t.jsxs)("span",{className:(0,s.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-full stg:px-2 stg:py-0.5 stg:text-[11px] stg:font-medium stg:leading-none",function(e){switch(e){case"ready":return"stg:bg-[var(--stgm-status-ready-subtle)] stg:text-[var(--stgm-status-ready)]";case"running":return"stg:bg-[var(--stgm-status-running-subtle)] stg:text-[var(--stgm-status-running)]";case"pending":return"stg:bg-[var(--stgm-status-pending-subtle)] stg:text-[var(--stgm-status-pending)]";case"degraded":return"stg:bg-[var(--stgm-status-degraded-subtle)] stg:text-[var(--stgm-status-degraded)]";case"failed":return"stg:bg-[var(--stgm-status-failed-subtle)] stg:text-[var(--stgm-status-failed)]";case"disabled":return"stg:bg-[var(--stgm-status-disabled-subtle)] stg:text-[var(--stgm-status-disabled)]";case"draft":return"stg:bg-[var(--stgm-status-draft-subtle)] stg:text-[var(--stgm-status-draft)]"}}(e),o),children:[(0,t.jsx)("span",{className:(0,s.cn)("stg:size-1.5 stg:shrink-0 stg:rounded-full",function(e){switch(e){case"ready":return"stg:bg-[var(--stgm-status-ready)]";case"running":return"stg:bg-[var(--stgm-status-running)]";case"pending":return"stg:bg-[var(--stgm-status-pending)]";case"degraded":return"stg:bg-[var(--stgm-status-degraded)]";case"failed":return"stg:bg-[var(--stgm-status-failed)]";case"disabled":return"stg:bg-[var(--stgm-status-disabled)]";case"draft":return"stg:bg-[var(--stgm-status-draft)]"}}(e)),"aria-hidden":"true"}),l]});return a?(0,t.jsxs)(r.Tooltip,{children:[(0,t.jsx)(r.TooltipTrigger,{render:(0,t.jsx)("span",{className:"stg:inline-flex"}),children:g}),(0,t.jsx)(r.TooltipContent,{side:"top",children:a})]}):g}])},107141,e=>{"use strict";var t=e.i(271645),s=e.i(618566);let r="__placeholder__";e.s(["useStaticRouteParam",0,function(e,n=1){let i=(0,s.useParams)()[e];return(0,t.useMemo)(()=>{if(i!==r)return i;let e=window.location.pathname.split("/").filter(Boolean),t=e[e.length-n];return t&&t!==r?t:null},[i,n])}])},668093,652337,e=>{"use strict";var t=e.i(843476),s=e.i(893976),r=e.i(266442),n=e.i(927056),i=e.i(271645),a=e.i(845132);function o({primaryAction:e,actions:r,className:n}){let i=null!=r&&r.length>0;return e||i?(0,t.jsxs)("div",{className:(0,s.cn)("stg:flex stg:items-center stg:gap-2",n),children:[e&&(0,t.jsxs)("button",{type:"button",onClick:e.onAction,disabled:e.disabled,className:(0,s.cn)("stg:inline-flex stg:items-center stg:gap-1.5 stg:rounded-md stg:px-3 stg:py-1.5 stg:text-sm stg:font-medium stg:transition-colors","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:disabled:pointer-events-none stg:disabled:opacity-50"),children:[e.icon,e.label]}),i&&(0,t.jsx)(l,{actions:r})]}):null}function l({actions:e}){var s;let r=(s=e,(0,i.useMemo)(()=>{let e=new Map;for(let t of s){let s=t.group??"__default",r=e.get(s);r?r.push(t):e.set(s,[t])}return Array.from(e.entries()).map(([e,t])=>({key:e,items:t}))},[s]));return(0,t.jsxs)(a.ActionMenu,{children:[(0,t.jsx)(a.ActionMenu.Trigger,{"aria-label":"More actions",children:(0,t.jsx)(g,{className:"stg:size-4"})}),(0,t.jsx)(a.ActionMenu.Content,{children:r.map((e,s)=>(0,t.jsxs)(a.ActionMenu.Group,{children:[s>0&&(0,t.jsx)(a.ActionMenu.Separator,{}),e.items.map(e=>(0,t.jsx)(a.ActionMenu.Item,{icon:e.icon,shortcut:e.shortcut,variant:e.variant,disabled:e.disabled,onSelect:e.onAction,children:e.label},e.id))]},e.key))})]})}function g({className:e}){return(0,t.jsxs)("svg",{className:e,viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"8",cy:"3",r:"1.25"}),(0,t.jsx)("circle",{cx:"8",cy:"8",r:"1.25"}),(0,t.jsx)("circle",{cx:"8",cy:"13",r:"1.25"})]})}function c({header:e,visibilityControl:s,metaExtra:n}){let{name:i,nameElement:a,org:o,slug:l,qualifiedSlug:g,description:m,iconUrl:x,icon:p,createdAt:f,updatedAt:h,status:b,statusLabel:v}=e,j=l&&l!==i&&!g;return(0,t.jsxs)("div",{className:"stg:flex stg:min-w-0 stg:items-start stg:gap-3",children:[x?(0,t.jsx)("img",{src:x,alt:"",className:"stg:mt-0.5 stg:size-8 stg:shrink-0 stg:rounded stg:object-cover"}):p?(0,t.jsx)("span",{className:"stg:mt-1 stg:shrink-0",children:p}):null,(0,t.jsxs)("div",{className:"stg:min-w-0 stg:flex-1",children:[(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-2",children:[a??(0,t.jsx)("h2",{className:"stg:truncate stg:text-lg stg:font-semibold stg:text-foreground",children:i}),j&&(0,t.jsx)("code",{className:"stg:shrink-0 stg:rounded stg:bg-muted stg:px-1.5 stg:py-0.5 stg:text-xs stg:font-medium stg:text-muted-foreground",children:l}),b&&(0,t.jsx)(r.StatusBadge,{phase:b,label:v}),s]}),g&&(0,t.jsx)("span",{className:"stg:mt-0.5 stg:block stg:truncate stg:font-mono stg:text-xs stg:text-muted-foreground",children:g}),(0,t.jsxs)("div",{className:"stg:mt-0.5 stg:flex stg:flex-wrap stg:items-center stg:gap-x-1.5 stg:text-xs stg:text-muted-foreground",children:[o&&(0,t.jsx)("span",{children:o}),n,f&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d,{}),(0,t.jsxs)("span",{children:["Created ",u(f)]})]}),h&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d,{}),(0,t.jsxs)("span",{children:["Updated ",u(h)]})]})]}),m&&(0,t.jsx)("p",{className:"stg:mt-2 stg:text-sm stg:text-muted-foreground",children:m})]})]})}function d(){return(0,t.jsx)("span",{className:"stg:shrink-0","aria-hidden":"true",children:"·"})}function u(e){return e.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}function m({className:e}){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M11.5 1.5a2.121 2.121 0 0 1 3 3L5 14l-4 1 1-4Z"})})}e.s(["ResourceDetailShell",0,function({header:e,visibilityControl:r,headerMetaExtra:i,headerBanner:a,primaryAction:l,actions:g,tabs:d,activeTab:u,onTabChange:m,tabsAriaLabel:x,children:p,className:f}){let h=null!=d&&d.length>0;return(0,t.jsxs)("div",{className:(0,s.cn)("stg:flex stg:flex-col stg:gap-6",f),children:[a,(0,t.jsxs)("div",{className:"stg:flex stg:items-start stg:justify-between stg:gap-4",children:[(0,t.jsx)(c,{header:e,visibilityControl:r,metaExtra:i}),(0,t.jsx)(o,{primaryAction:l,actions:g,className:"stg:shrink-0"})]}),h&&u&&m?(0,t.jsx)(n.Tabs,{tabs:d,activeTab:u,onTabChange:m,"aria-label":x,children:p}):p]})}],668093),e.s(["Section",0,function({title:e,count:r,headerActions:n,onEdit:i,scrollTarget:a,children:o,className:l}){return(0,t.jsxs)("section",{className:l,"data-scroll-target":a,children:[(0,t.jsxs)("div",{className:"stg:mb-2 stg:flex stg:items-center stg:gap-2",children:[(0,t.jsx)("h3",{className:"stg:text-xs stg:font-medium stg:uppercase stg:tracking-wider stg:text-muted-foreground",children:e}),null!=r&&r>0&&(0,t.jsx)("span",{className:"stg:inline-flex stg:size-5 stg:items-center stg:justify-center stg:rounded-full stg:bg-muted stg:text-[10px] stg:font-semibold stg:text-muted-foreground",children:r}),(n||i)&&(0,t.jsxs)("div",{className:"stg:ml-auto stg:flex stg:items-center stg:gap-1",children:[n,i&&(0,t.jsx)("button",{type:"button",onClick:i,"aria-label":`Edit ${e.toLowerCase()}`,className:(0,s.cn)("stg:inline-flex stg:size-6 stg:items-center stg:justify-center stg:rounded-md stg:text-muted-foreground","stg:hover:bg-accent-hover stg:hover:text-foreground","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring","stg:transition-colors"),children:(0,t.jsx)(m,{className:"stg:size-3.5"})})]})]}),(0,t.jsx)("div",{className:"stg:overflow-hidden stg:rounded-lg stg:border stg:border-border",children:o})]})}],652337)},261722,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(893976);function n({className:e}){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M11.5 1.5a2.121 2.121 0 0 1 3 3L5 14l-4 1 1-4Z"})})}function i(){return(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",className:"stg:animate-spin","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M8 2a6 6 0 1 0 6 6"})})}e.s(["InlineEditTextarea",0,function({value:e,onSave:a,placeholder:o="Click to edit",validate:l,minRows:g=3,disabled:c,isSaving:d,error:u,className:m}){let[x,p]=(0,s.useState)(!1),[f,h]=(0,s.useState)(e),[b,v]=(0,s.useState)(null),j=(0,s.useRef)(null);(0,s.useEffect)(()=>{x&&(h(e),v(null),requestAnimationFrame(()=>{let e=j.current;e&&(e.focus(),e.selectionStart=e.value.length)}))},[x,e]),(0,s.useEffect)(()=>{let e=j.current;e&&(e.style.height="auto",e.style.height=`${e.scrollHeight}px`)},[f,x]);let y=(0,s.useCallback)(async()=>{if(f===e)return void p(!1);if(l){let e=l(f);if(e)return void v(e)}await a(f)&&p(!1)},[f,e,l,a]),w=(0,s.useCallback)(()=>{p(!1),h(e),v(null)},[e]),N=(0,s.useCallback)(e=>{"Enter"===e.key&&(e.ctrlKey||e.metaKey)?(e.preventDefault(),y()):"Escape"===e.key&&w()},[y,w]),k=b||u;return c||!x?(0,t.jsx)("div",{className:(0,r.cn)("stg:group/inline-edit",m),children:(0,t.jsx)("button",{type:"button",onClick:()=>{c||p(!0)},disabled:c,className:(0,r.cn)("stg:w-full stg:rounded-md stg:px-2 stg:py-1.5 stg:text-left stg:transition-colors",!c&&"stg:hover:bg-accent-hover stg:cursor-pointer",c&&"stg:cursor-default","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-inset stg:focus-visible:ring-ring"),children:(0,t.jsxs)("div",{className:"stg:flex stg:items-start stg:justify-between stg:gap-2",children:[(0,t.jsx)("pre",{className:(0,r.cn)("stg:min-w-0 stg:whitespace-pre-wrap stg:break-words stg:font-mono stg:text-sm stg:text-foreground",!e&&"stg:text-muted-foreground stg:italic stg:font-sans"),children:e||o}),!c&&(0,t.jsx)(n,{className:"stg:mt-0.5 stg:size-3 stg:shrink-0 stg:text-muted-foreground stg:opacity-0 stg:transition-opacity stg:group-hover/inline-edit:opacity-100"})]})})}):(0,t.jsxs)("div",{className:(0,r.cn)("stg:flex stg:flex-col stg:gap-1.5",m),children:[(0,t.jsx)("textarea",{ref:j,value:f,onChange:e=>{h(e.target.value),v(null)},onKeyDown:N,disabled:d,placeholder:o,rows:g,className:(0,r.cn)("stg:w-full stg:resize-y stg:rounded-md stg:border stg:border-border stg:bg-input-bg stg:px-3 stg:py-2 stg:font-mono stg:text-sm stg:text-foreground","stg:focus:outline-none stg:focus:ring-2 stg:focus:ring-ring","stg:disabled:opacity-50",k&&"stg:border-destructive")}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:justify-between",children:[(0,t.jsx)("span",{className:"stg:text-[10px] stg:text-muted-foreground",children:d?"Saving...":"Ctrl+Enter to save, Escape to cancel"}),(0,t.jsxs)("div",{className:"stg:flex stg:items-center stg:gap-1.5",children:[(0,t.jsx)("button",{type:"button",onClick:w,disabled:d,className:(0,r.cn)("stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium","stg:border stg:border-border stg:bg-background stg:text-foreground stg:hover:bg-accent stg:hover:text-accent-foreground","stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:"Cancel"}),(0,t.jsxs)("button",{type:"button",onClick:y,disabled:d,className:(0,r.cn)("stg:inline-flex stg:items-center stg:gap-1 stg:rounded-md stg:px-2.5 stg:py-1 stg:text-xs stg:font-medium","stg:bg-primary stg:text-primary-foreground stg:hover:bg-primary-hover","stg:disabled:opacity-50","stg:focus-visible:outline-none stg:focus-visible:ring-2 stg:focus-visible:ring-ring"),children:[d&&(0,t.jsx)(i,{}),"Save"]})]})]}),k&&(0,t.jsx)("p",{className:"stg:px-1 stg:text-xs stg:text-destructive",role:"alert",children:k})]})}])},484763,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(981922),n=e.i(213149);e.s(["useManageAccess",0,function({resource:e,visibility:i,extraSection:a,label:o="Manage access"}){let[l,g]=(0,s.useState)(!1),{allowed:c}=(0,r.useCheckPermission)(e?{kind:e.kindString,id:e.id}:null,"can_view_access"),d=(0,s.useCallback)(()=>g(!0),[]);return{action:e&&c?{id:"manage-access",label:o,group:"sharing",onAction:d}:null,dialog:e?(0,t.jsx)(n.ManageAccessDialog,{open:l,onOpenChange:g,resource:e,visibility:i,extraSection:a}):null,open:d,isOpen:l}}])}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,730938,e=>{"use strict";e.i(113024);var t,i,a=e.i(424407),r=e.i(304532),c=e.i(761867);let n=(0,a.fileDesc)("CjNhaS9zdGlnbWVyL2FnZW50aWMvYWdlbnRjaGFubmVsL3YxL21lc3NhZ2VfaW8ucHJvdG8SImFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGNoYW5uZWwudjEivQEKF1NlbmRDaGFubmVsTWVzc2FnZUlucHV0EhgKB2NoYW5uZWwYASABKAlCB7pIBHICGD8SFAoDb3JnGAIgASgJQge6SARyAhg/Eh0KCXJlY2lwaWVudBgDIAEoCUIKukgHcgUQARiAARJTCgdwYXlsb2FkGAQgASgLMjouYWkuc3RpZ21lci5hZ2VudGljLmFnZW50Y2hhbm5lbC52MS5DaGFubmVsT3V0Ym91bmRQYXlsb2FkQga6SAPIAQEisQEKFkNoYW5uZWxPdXRib3VuZFBheWxvYWQSPwoEdGV4dBgBIAEoCzIvLmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGNoYW5uZWwudjEuVGV4dFBheWxvYWRIABJHCgh0ZW1wbGF0ZRgCIAEoCzIzLmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGNoYW5uZWwudjEuVGVtcGxhdGVQYXlsb2FkSABCDQoEa2luZBIFukgCCAEiJwoLVGV4dFBheWxvYWQSGAoEYm9keRgBIAEoCUIKukgHcgUQARiAICKBAgoPVGVtcGxhdGVQYXlsb2FkEhgKBG5hbWUYASABKAlCCrpIB3IFEAEYgAQSGQoIbGFuZ3VhZ2UYAiABKAlCB7pIBHICGBASYQoKcGFyYW1ldGVycxgDIAMoCzJDLmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGNoYW5uZWwudjEuVGVtcGxhdGVQYXlsb2FkLlBhcmFtZXRlcnNFbnRyeUIIukgFmgECEDISIwoRaGVhZGVyX2ltYWdlX2xpbmsYBCABKAlCCLpIBXIDGIAQGjEKD1BhcmFtZXRlcnNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIq0BChhTZW5kQ2hhbm5lbE1lc3NhZ2VPdXRwdXQSRwoHb3V0Y29tZRgBIAEoDjI2LmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGNoYW5uZWwudjEuQ2hhbm5lbFNlbmRPdXRjb21lEhsKE291dGJvdW5kX21lc3NhZ2VfaWQYAiABKAkSGwoTcHJvdmlkZXJfbWVzc2FnZV9pZBgDIAEoCRIOCgZkZXRhaWwYBCABKAkiYgoZTGlzdENoYW5uZWxUZW1wbGF0ZXNJbnB1dBIYCgdjaGFubmVsGAEgASgJQge6SARyAhg/EhQKA29yZxgCIAEoCUIHukgEcgIYPxIVCg1hcHByb3ZlZF9vbmx5GAMgASgIIlgKEENoYW5uZWxUZW1wbGF0ZXMSRAoHZW50cmllcxgBIAMoCzIzLmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGNoYW5uZWwudjEuQ2hhbm5lbFRlbXBsYXRlIuYBCg9DaGFubmVsVGVtcGxhdGUSDAoEbmFtZRgBIAEoCRIQCghsYW5ndWFnZRgCIAEoCRIQCghjYXRlZ29yeRgDIAEoCRIOCgZzdGF0dXMYBCABKAkSGAoQcGFyYW1ldGVyX2Zvcm1hdBgFIAEoCRIXCg9wYXJhbWV0ZXJfbmFtZXMYBiADKAkSEQoJYm9keV90ZXh0GAcgASgJEhUKDWhlYWRlcl9mb3JtYXQYCCABKAkSGAoQcmVqZWN0aW9uX3JlYXNvbhgJIAEoCRIaChJ1bnN1cHBvcnRlZF9yZWFzb24YCiABKAkiHAoaTGlzdE1lc3NhZ2luZ0NoYW5uZWxzSW5wdXQiWgoRTWVzc2FnaW5nQ2hhbm5lbHMSRQoHZW50cmllcxgBIAMoCzI0LmFpLnN0aWdtZXIuYWdlbnRpYy5hZ2VudGNoYW5uZWwudjEuTWVzc2FnaW5nQ2hhbm5lbCI1ChBNZXNzYWdpbmdDaGFubmVsEg8KB2NoYW5uZWwYASABKAkSEAoIcHJvdmlkZXIYAiABKAkqYQoSQ2hhbm5lbFNlbmRPdXRjb21lEiQKIGNoYW5uZWxfc2VuZF9vdXRjb21lX3Vuc3BlY2lmaWVkEAASDAoIYWNjZXB0ZWQQARIKCgZxdWV1ZWQQAhILCgdyZWZ1c2VkEANiBnByb3RvMw",[c.file_buf_validate_validate]),o=(0,r.messageDesc)(n,5);(i=t||(t={}))[i.channel_send_outcome_unspecified=0]="channel_send_outcome_unspecified",i[i.accepted=1]="accepted",i[i.queued=2]="queued",i[i.refused=3]="refused",e.s(["ChannelSendOutcome",0,t,"ListChannelTemplatesInputSchema",0,o,"file_ai_stigmer_agentic_agentchannel_v1_message_io",0,n])},960511,e=>{"use strict";var t,i,a,r,c,n,o,l,s,d,u,p,g,h,A,m;e.i(113024);let b=(0,e.i(424407).fileDesc)("CiBhaS9zdGlnbWVyL2JpbGxpbmcvdjEvZW51bS5wcm90bxIVYWkuc3RpZ21lci5iaWxsaW5nLnYxKrYCCg9MZWRnZXJFbnRyeVR5cGUSIQodbGVkZ2VyX2VudHJ5X3R5cGVfdW5zcGVjaWZpZWQQABITCg9wdXJjaGFzZV9jcmVkaXQQARIWChJwcm9tb3Rpb25hbF9jcmVkaXQQAhIPCgt1c2FnZV9kZWJpdBADEhQKEHJlc2VydmF0aW9uX2hvbGQQBBIXChNyZXNlcnZhdGlvbl9yZWxlYXNlEAUSFQoRYWRqdXN0bWVudF9jcmVkaXQQBhIUChBhZGp1c3RtZW50X2RlYml0EAcSEwoPcmVmdW5kX3JldmVyc2FsEAgSEAoMZGlzcHV0ZV9ob2xkEAkSEwoPZGlzcHV0ZV9yZWxlYXNlEAoSEAoMZXhwaXJ5X2RlYml0EAsSGAoUYXV0b19yZWNoYXJnZV9jcmVkaXQQDCpECgpMZWRnZXJWaWV3EhsKF2xlZGdlcl92aWV3X3Vuc3BlY2lmaWVkEAASGQoVbGVkZ2VyX3ZpZXdfc3RhdGVtZW50EAEqZAoPQ3JlZGl0R3JhbnRLaW5kEiEKHWNyZWRpdF9ncmFudF9raW5kX3Vuc3BlY2lmaWVkEAASDQoJcHVyY2hhc2VkEAESDwoLcHJvbW90aW9uYWwQAhIOCgphZGp1c3RtZW50EAMqlQEKFEJpbGxpbmdBY2NvdW50U3RhdHVzEiYKImJpbGxpbmdfYWNjb3VudF9zdGF0dXNfdW5zcGVjaWZpZWQQABIaChZiaWxsaW5nX2FjY291bnRfYWN0aXZlEAESHQoZYmlsbGluZ19hY2NvdW50X3N1c3BlbmRlZBACEhoKFmJpbGxpbmdfYWNjb3VudF9jbG9zZWQQAyqeAQoRUmVzZXJ2YXRpb25TdGF0dXMSIgoecmVzZXJ2YXRpb25fc3RhdHVzX3Vuc3BlY2lmaWVkEAASFgoScmVzZXJ2YXRpb25fYWN0aXZlEAESGQoVcmVzZXJ2YXRpb25fZmluYWxpemVkEAISFwoTcmVzZXJ2YXRpb25fZXhwaXJlZBADEhkKFXJlc2VydmF0aW9uX2NhbmNlbGxlZBAEKocBChZFeGVjdXRpb25CaWxsaW5nU2lnbmFsEigKJGV4ZWN1dGlvbl9iaWxsaW5nX3NpZ25hbF91bnNwZWNpZmllZBAAEhYKEmNvbnRpbnVlX2V4ZWN1dGlvbhABEhcKE2xvd19iYWxhbmNlX3dhcm5pbmcQAhISCg5zdG9wX2V4ZWN1dGlvbhADKrMBChRDcmVkaXRQdXJjaGFzZVN0YXR1cxImCiJjcmVkaXRfcHVyY2hhc2Vfc3RhdHVzX3Vuc3BlY2lmaWVkEAASGwoXY3JlZGl0X3B1cmNoYXNlX3BlbmRpbmcQARIdChljcmVkaXRfcHVyY2hhc2VfY29tcGxldGVkEAISGgoWY3JlZGl0X3B1cmNoYXNlX2ZhaWxlZBADEhsKF2NyZWRpdF9wdXJjaGFzZV9leHBpcmVkEAQqlwEKF0F1dG9SZWNoYXJnZUV2ZW50U3RhdHVzEioKJmF1dG9fcmVjaGFyZ2VfZXZlbnRfc3RhdHVzX3Vuc3BlY2lmaWVkEAASGQoVYXV0b19yZWNoYXJnZV9wZW5kaW5nEAESGwoXYXV0b19yZWNoYXJnZV9zdWNjZWVkZWQQAhIYChRhdXRvX3JlY2hhcmdlX2ZhaWxlZBADYgZwcm90bzM");(s=t||(t={}))[s.ledger_entry_type_unspecified=0]="ledger_entry_type_unspecified",s[s.purchase_credit=1]="purchase_credit",s[s.promotional_credit=2]="promotional_credit",s[s.usage_debit=3]="usage_debit",s[s.reservation_hold=4]="reservation_hold",s[s.reservation_release=5]="reservation_release",s[s.adjustment_credit=6]="adjustment_credit",s[s.adjustment_debit=7]="adjustment_debit",s[s.refund_reversal=8]="refund_reversal",s[s.dispute_hold=9]="dispute_hold",s[s.dispute_release=10]="dispute_release",s[s.expiry_debit=11]="expiry_debit",s[s.auto_recharge_credit=12]="auto_recharge_credit",(d=i||(i={}))[d.unspecified=0]="unspecified",d[d.statement=1]="statement",(u=a||(a={}))[u.credit_grant_kind_unspecified=0]="credit_grant_kind_unspecified",u[u.purchased=1]="purchased",u[u.promotional=2]="promotional",u[u.adjustment=3]="adjustment",(p=r||(r={}))[p.billing_account_status_unspecified=0]="billing_account_status_unspecified",p[p.billing_account_active=1]="billing_account_active",p[p.billing_account_suspended=2]="billing_account_suspended",p[p.billing_account_closed=3]="billing_account_closed",(g=c||(c={}))[g.reservation_status_unspecified=0]="reservation_status_unspecified",g[g.reservation_active=1]="reservation_active",g[g.reservation_finalized=2]="reservation_finalized",g[g.reservation_expired=3]="reservation_expired",g[g.reservation_cancelled=4]="reservation_cancelled",(h=n||(n={}))[h.execution_billing_signal_unspecified=0]="execution_billing_signal_unspecified",h[h.continue_execution=1]="continue_execution",h[h.low_balance_warning=2]="low_balance_warning",h[h.stop_execution=3]="stop_execution",(A=o||(o={}))[A.credit_purchase_status_unspecified=0]="credit_purchase_status_unspecified",A[A.credit_purchase_pending=1]="credit_purchase_pending",A[A.credit_purchase_completed=2]="credit_purchase_completed",A[A.credit_purchase_failed=3]="credit_purchase_failed",A[A.credit_purchase_expired=4]="credit_purchase_expired",(m=l||(l={}))[m.auto_recharge_event_status_unspecified=0]="auto_recharge_event_status_unspecified",m[m.auto_recharge_pending=1]="auto_recharge_pending",m[m.auto_recharge_succeeded=2]="auto_recharge_succeeded",m[m.auto_recharge_failed=3]="auto_recharge_failed",e.s(["BillingAccountStatus",0,r,"LedgerEntryType",0,t,"LedgerView",0,i,"file_ai_stigmer_billing_v1_enum",0,b])},577817,400553,707125,e=>{"use strict";var t=e.i(424407),i=e.i(304532),a=e.i(125322),r=e.i(421415),c=e.i(988158),n=e.i(761867);let o=(0,t.fileDesc)("CidhaS9zdGlnbWVyL2FnZW50aWMvc2Vzc2lvbi92MS9hcGkucHJvdG8SHWFpLnN0aWdtZXIuYWdlbnRpYy5zZXNzaW9uLnYxIqsCCgdTZXNzaW9uEjEKC2FwaV92ZXJzaW9uGAEgASgJQhy6SBlyFwoVYWdlbnRpYy5zdGlnbWVyLmFpL3YxEhwKBGtpbmQYAiABKAlCDrpIC3IJCgdTZXNzaW9uEk0KCG1ldGFkYXRhGAMgASgLMjMuYWkuc3RpZ21lci5jb21tb25zLmFwaXJlc291cmNlLkFwaVJlc291cmNlTWV0YWRhdGFCBrpIA8gBARI4CgRzcGVjGAQgASgLMiouYWkuc3RpZ21lci5hZ2VudGljLnNlc3Npb24udjEuU2Vzc2lvblNwZWMSRgoGc3RhdHVzGAUgASgLMjYuYWkuc3RpZ21lci5jb21tb25zLmFwaXJlc291cmNlLkFwaVJlc291cmNlQXVkaXRTdGF0dXNiBnByb3RvMw",[a.file_ai_stigmer_agentic_session_v1_spec,r.file_ai_stigmer_commons_apiresource_metadata,c.file_ai_stigmer_commons_apiresource_status,n.file_buf_validate_validate]),l=(0,i.messageDesc)(o,0);e.s(["SessionSchema",0,l,"file_ai_stigmer_agentic_session_v1_api",0,o],400553);let s=(0,t.fileDesc)("CiZhaS9zdGlnbWVyL2FnZW50aWMvc2Vzc2lvbi92MS9pby5wcm90bxIdYWkuc3RpZ21lci5hZ2VudGljLnNlc3Npb24udjEiIgoJU2Vzc2lvbklkEhUKBXZhbHVlGAEgASgJQga6SAPIAQEiIAoHQWdlbnRJZBIVCgV2YWx1ZRgBIAEoCUIGukgDyAEBIlsKC1Nlc3Npb25MaXN0EhMKC3RvdGFsX3BhZ2VzGAEgASgFEjcKB2VudHJpZXMYAiADKAsyJi5haS5zdGlnbWVyLmFnZW50aWMuc2Vzc2lvbi52MS5TZXNzaW9uIkoKE0xpc3RTZXNzaW9uc1JlcXVlc3QSEQoJcGFnZV9zaXplGAEgASgFEhIKCnBhZ2VfdG9rZW4YAiABKAkSDAoEdGFncxgDIAMoCSJuCiJMaXN0U2Vzc2lvbnNCeUFnZW50SW5zdGFuY2VSZXF1ZXN0EiEKEWFnZW50X2luc3RhbmNlX2lkGAEgASgJQga6SAPIAQESEQoJcGFnZV9zaXplGAIgASgFEhIKCnBhZ2VfdG9rZW4YAyABKAkiYQocTGlzdFNlc3Npb25zQnlDaGFubmVsUmVxdWVzdBIaCgpjaGFubmVsX2lkGAEgASgJQga6SAPIAQESEQoJcGFnZV9zaXplGAIgASgFEhIKCnBhZ2VfdG9rZW4YAyABKAkiQgobVXBkYXRlU2Vzc2lvblN1YmplY3RSZXF1ZXN0EhIKAmlkGAEgASgJQga6SAPIAQESDwoHc3ViamVjdBgCIAEoCWIGcHJvdG8z",[o,n.file_buf_validate_validate]),d=(0,i.messageDesc)(s,0),u=(0,i.messageDesc)(s,5);e.s(["ListSessionsByChannelRequestSchema",0,u,"SessionIdSchema",0,d,"file_ai_stigmer_agentic_session_v1_io",0,s],577817);var p=e.i(247167);let g="https://api.stigmer.com/",h=null;async function A(){if(h)return h;let e=await m()??{apiUrl:p.default.env.NEXT_PUBLIC_API_URL??"http://localhost:7234",appUrl:p.default.env.NEXT_PUBLIC_APP_URL??"",authMode:W(p.default.env.NEXT_PUBLIC_AUTH_MODE),oidcIssuer:p.default.env.NEXT_PUBLIC_OIDC_ISSUER??"",oidcClientId:p.default.env.NEXT_PUBLIC_OIDC_CLIENT_ID??"",oidcAudience:p.default.env.NEXT_PUBLIC_OIDC_AUDIENCE??g};return"oidc"===e.authMode&&function(e){if(!e.oidcClientId)throw Error("This server requires sign-in, but no OIDC client is configured for the console. Set STIGMER_OIDC_CONSOLE_CLIENT_ID on the server (or NEXT_PUBLIC_OIDC_CLIENT_ID for a container build) to the public PKCE client you registered for the console at your identity provider.");let t=[];if(e.oidcIssuer||t.push("oidcIssuer (NEXT_PUBLIC_OIDC_ISSUER)"),e.oidcAudience||t.push("oidcAudience (NEXT_PUBLIC_OIDC_AUDIENCE)"),t.length>0)throw Error(`Auth mode is "oidc" but required fields are missing: ${t.join(", ")}. Check /config.json (container) or NEXT_PUBLIC_* env vars (.env).`)}(e),h=Object.freeze(e)}async function m(){try{let e=await fetch("/config.json");if(!e.ok)return null;let t=await e.json();return{apiUrl:b(t.apiUrl,window.location.origin),appUrl:b(t.appUrl,""),authMode:W(t.authMode),oidcIssuer:b(t.oidcIssuer,""),oidcClientId:b(t.oidcClientId,""),oidcAudience:b(t.oidcAudience,g)}}catch{return null}}function b(e,t){return"string"==typeof e&&e.length>0?e:t}function W(e){return"oidc"===e?"oidc":"disabled"}e.s(["getRuntimeConfig",0,function(){if(!h)throw Error("getRuntimeConfig() called before loadRuntimeConfig(). Ensure <ConfigGate> wraps the component tree.");return h},"loadRuntimeConfig",0,A],707125)},472402,e=>{"use strict";var t=e.i(707125);e.s(["getApiBaseUrl",0,function(){return(0,t.getRuntimeConfig)().apiUrl},"getAppBaseUrl",0,function(){let e=(0,t.getRuntimeConfig)().appUrl;return e?e.replace(/\/$/,""):window.location.origin}])},78946,e=>{"use strict";var t=e.i(910304),i=e.i(292558),a=e.i(891287),r=e.i(338300),c=e.i(621559),n=e.i(71268),o=e.i(534125),l=e.i(425285),s=e.i(973955),d=e.i(170255),u=e.i(459153),p=e.i(421415),g=e.i(85849),h=e.i(798525),A=e.i(301218);function m(e){return Object.assign((0,a.create)(s.ToolApprovalPolicySchema),(0,i.stripUndefined)({toolName:e.toolName,message:e.message,fromDestructiveHint:e.fromDestructiveHint}))}function b(e){var t,r,o;let l,d;e.env&&(l=Object.fromEntries(Object.entries(e.env).map(([e,t])=>[e,Object.assign((0,a.create)(c.EnvVarDeclarationSchema),(0,i.stripUndefined)({isSecret:t.isSecret,description:t.description,optional:t.optional}))])));let g=e.pinnedToolApprovals?.map(m),h=e.auth?(t=e.auth,d=(0,a.create)(s.McpServerAuthSchema),(t.oauthAppRef?.slug||t.oauthAppRef?.org)&&(d.oauthAppRef=(0,a.create)(u.ApiResourceReferenceSchema,{...t.oauthAppRef,kind:22})),void 0!==t.targetEnvVar&&(d.targetEnvVar=t.targetEnvVar),void 0!==t.tokenLifetimeHint&&(d.tokenLifetimeHint=t.tokenLifetimeHint),t.scopeHints&&(d.scopeHints=t.scopeHints),void 0!==t.discoveryUrl&&(d.discoveryUrl=t.discoveryUrl),void 0!==t.oauthOnly&&(d.oauthOnly=t.oauthOnly),d):void 0,A=Object.assign((0,a.create)(s.McpServerSpecSchema),(0,i.stripUndefined)({description:e.description,iconUrl:e.iconUrl,tags:e.tags,defaultEnabledTools:e.defaultEnabledTools,env:l,pinnedToolApprovals:g,repositoryUrl:e.repositoryUrl,githubStars:e.githubStars,auth:h}));return e.stdio?A.serverType={case:"stdio",value:(r=e.stdio,Object.assign((0,a.create)(s.StdioServerConfigSchema),(0,i.stripUndefined)({command:r.command,args:r.args,workingDir:r.workingDir})))}:e.http&&(A.serverType={case:"http",value:(o=e.http,Object.assign((0,a.create)(s.HttpServerConfigSchema),(0,i.stripUndefined)({url:o.url,headers:o.headers,queryParams:o.queryParams,timeoutSeconds:o.timeoutSeconds})))}),Object.assign((0,a.create)(n.McpServerSchema),{apiVersion:"agentic.stigmer.ai/v1",kind:"McpServer",metadata:Object.assign((0,a.create)(p.ApiResourceMetadataSchema),{...e.id&&{id:e.id},name:e.name,org:e.org,...e.slug&&{slug:e.slug},...e.labels&&{labels:e.labels},...e.visibility&&{visibility:e.visibility}}),spec:A})}function W(e){return{toolName:e.toolName||void 0,message:e.message||void 0,fromDestructiveHint:e.fromDestructiveHint||void 0}}e.s(["McpServerClient",0,class{command;query;search;constructor(e){this.command=(0,r.createClient)(o.McpServerCommandController,e),this.query=(0,r.createClient)(l.McpServerQueryController,e),this.search=(0,r.createClient)(A.SearchService,e)}async apply(e){try{return await this.command.apply(b(e))}catch(e){throw(0,t.wrapError)(e)}}async create(e){try{return await this.command.create(b(e))}catch(e){throw(0,t.wrapError)(e)}}async update(e){try{return await this.command.update(b(e))}catch(e){throw(0,t.wrapError)(e)}}async delete(e){try{return await this.command.delete((0,a.create)(u.ApiResourceDeleteInputSchema,{resourceId:e.resourceId,versionMessage:e.versionMessage,force:e.force}))}catch(e){throw(0,t.wrapError)(e)}}async updateVisibility(e){try{return await this.command.updateVisibility(e)}catch(e){throw(0,t.wrapError)(e)}}async connect(e){try{return await this.command.connect(e)}catch(e){throw(0,t.wrapError)(e)}}async startConnect(e){try{return await this.command.startConnect(e)}catch(e){throw(0,t.wrapError)(e)}}async initiateOAuthConnect(e){try{return await this.command.initiateOAuthConnect(e)}catch(e){throw(0,t.wrapError)(e)}}async completeOAuthConnect(e){try{return await this.command.completeOAuthConnect(e)}catch(e){throw(0,t.wrapError)(e)}}async disconnectOAuth(e){try{return await this.command.disconnectOAuth(e)}catch(e){throw(0,t.wrapError)(e)}}async setOrgOAuthApp(e){try{return await this.command.setOrgOAuthApp(e)}catch(e){throw(0,t.wrapError)(e)}}async deleteOrgOAuthApp(e){try{return await this.command.deleteOrgOAuthApp(e)}catch(e){throw(0,t.wrapError)(e)}}async get(e){try{return await this.query.get((0,a.create)(u.ApiResourceIdSchema,{value:e}))}catch(e){throw(0,t.wrapError)(e)}}async getByReference(e){try{return await this.query.getByReference((0,a.create)(u.ApiResourceReferenceSchema,{...e,kind:d.ApiResourceKind.mcp_server}))}catch(e){throw(0,t.wrapError)(e)}}async getOAuthGrantStatus(e){try{return await this.query.getOAuthGrantStatus(e)}catch(e){throw(0,t.wrapError)(e)}}async getOrgOAuthApp(e){try{return await this.query.getOrgOAuthApp(e)}catch(e){throw(0,t.wrapError)(e)}}async list(e){try{let t=await this.search.search((0,a.create)(h.SearchRequestSchema,{kinds:[d.ApiResourceKind.mcp_server],query:e.query,org:e.org,excludePublic:e.excludePublic??!1,crossOrgPublic:e.crossOrgPublic??!1,page:e.page?(0,a.create)(g.PageInfoSchema,e.page):void 0}));return{entries:t.entries,totalCount:t.totalCount,totalPages:t.totalPages}}catch(e){throw(0,t.wrapError)(e)}}},"buildMcpServerProto",0,b,"toMcpServerUpdateInput",0,function(e){var t,r,c;let n=e.metadata,o=e.spec??(0,a.create)(s.McpServerSpecSchema);return{id:n?.id||void 0,name:n?.name??"",slug:n?.slug||void 0,org:n?.org??"",labels:n?.labels&&Object.keys(n.labels).length>0?{...n.labels}:void 0,visibility:n?.visibility||void 0,description:o.description||void 0,iconUrl:o.iconUrl||void 0,tags:o.tags?.length?[...o.tags]:void 0,stdio:o.serverType?.case==="stdio"?{command:(t=o.serverType.value).command??"",args:t.args?.length?[...t.args]:void 0,workingDir:t.workingDir||void 0}:void 0,http:o.serverType?.case==="http"?{url:(r=o.serverType.value).url??"",headers:Object.keys(r.headers??{}).length>0?{...r.headers}:void 0,queryParams:Object.keys(r.queryParams??{}).length>0?{...r.queryParams}:void 0,timeoutSeconds:r.timeoutSeconds||void 0}:void 0,defaultEnabledTools:o.defaultEnabledTools?.length?[...o.defaultEnabledTools]:void 0,env:Object.keys(o.env??{}).length>0?Object.fromEntries(Object.entries(o.env).map(([e,t])=>[e,{isSecret:t.isSecret||void 0,description:t.description||void 0,optional:t.optional||void 0}])):void 0,pinnedToolApprovals:o.pinnedToolApprovals?.length?o.pinnedToolApprovals.map(W):void 0,repositoryUrl:o.repositoryUrl||void 0,githubStars:o.githubStars||void 0,auth:o.auth?(c=o.auth,{oauthAppRef:(0,i.toResourceRefInput)(c.oauthAppRef),targetEnvVar:c.targetEnvVar||void 0,tokenLifetimeHint:c.tokenLifetimeHint||void 0,scopeHints:c.scopeHints?.length?[...c.scopeHints]:void 0,discoveryUrl:c.discoveryUrl||void 0,oauthOnly:c.oauthOnly||void 0}):void 0}}])},992999,e=>{"use strict";var t=e.i(910304),i=e.i(292558),a=e.i(891287),r=e.i(338300),c=e.i(243176),n=e.i(779805),o=e.i(57674),l=e.i(538634),s=e.i(711961),d=e.i(621559),u=e.i(170255),p=e.i(459153),g=e.i(421415),h=e.i(85849),A=e.i(798525),m=e.i(301218);function b(e){return Object.assign((0,a.create)(s.ToolApprovalOverrideSchema),(0,i.stripUndefined)({toolName:e.toolName,requiresApproval:e.requiresApproval,message:e.message}))}function W(e){let t=(0,a.create)(s.McpServerUsageSchema);return(e.mcpServerRef?.slug||e.mcpServerRef?.org)&&(t.mcpServerRef=(0,a.create)(p.ApiResourceReferenceSchema,{...e.mcpServerRef,kind:44})),e.enabledTools&&(t.enabledTools=e.enabledTools),e.toolApprovalOverrides&&(t.toolApprovalOverrides=e.toolApprovalOverrides.map(b)),t}function Z(e){return Object.assign((0,a.create)(s.McpAccessSchema),(0,i.stripUndefined)({mcpServer:e.mcpServer,enabledTools:e.enabledTools}))}function E(e){let t=(0,a.create)(s.SubAgentSchema);return void 0!==e.name&&(t.name=e.name),void 0!==e.description&&(t.description=e.description),void 0!==e.instructions&&(t.instructions=e.instructions),e.mcpAccess&&(t.mcpAccess=e.mcpAccess.map(Z)),e.skillRefs&&(t.skillRefs=e.skillRefs.map(e=>(0,a.create)(p.ApiResourceReferenceSchema,{...e,kind:43}))),void 0!==e.modelOverride&&(t.modelOverride=e.modelOverride),t}function v(e){let t,r=e.mcpServerUsages?.map(W),n=e.skillRefs?.map(e=>(0,a.create)(p.ApiResourceReferenceSchema,{...e,kind:43})),o=e.subAgents?.map(E);return e.env&&(t=Object.fromEntries(Object.entries(e.env).map(([e,t])=>[e,Object.assign((0,a.create)(d.EnvVarDeclarationSchema),(0,i.stripUndefined)({isSecret:t.isSecret,description:t.description,optional:t.optional}))]))),Object.assign((0,a.create)(c.AgentSchema),{apiVersion:"agentic.stigmer.ai/v1",kind:"Agent",metadata:Object.assign((0,a.create)(g.ApiResourceMetadataSchema),{...e.id&&{id:e.id},name:e.name,org:e.org,...e.slug&&{slug:e.slug},...e.labels&&{labels:e.labels},...e.visibility&&{visibility:e.visibility}}),spec:Object.assign((0,a.create)(s.AgentSpecSchema),(0,i.stripUndefined)({description:e.description,iconUrl:e.iconUrl,instructions:e.instructions,mcpServerUsages:r,skillRefs:n,subAgents:o,env:t}))})}function S(e){return{toolName:e.toolName||void 0,requiresApproval:e.requiresApproval||void 0,message:e.message||void 0}}function V(e){return{mcpServerRef:(0,i.toResourceRefInput)(e.mcpServerRef)??{org:"",slug:""},enabledTools:e.enabledTools?.length?[...e.enabledTools]:void 0,toolApprovalOverrides:e.toolApprovalOverrides?.length?e.toolApprovalOverrides.map(S):void 0}}function R(e){return{mcpServer:e.mcpServer??"",enabledTools:e.enabledTools?.length?[...e.enabledTools]:void 0}}function I(e){return{name:e.name??"",description:e.description||void 0,instructions:e.instructions||void 0,mcpAccess:e.mcpAccess?.length?e.mcpAccess.map(R):void 0,skillRefs:(0,i.toResourceRefInputs)(e.skillRefs),modelOverride:e.modelOverride||void 0}}e.s(["AgentClient",0,class{command;query;search;constructor(e){this.command=(0,r.createClient)(n.AgentCommandController,e),this.query=(0,r.createClient)(l.AgentQueryController,e),this.search=(0,r.createClient)(m.SearchService,e)}async apply(e){try{return await this.command.apply(v(e))}catch(e){throw(0,t.wrapError)(e)}}async create(e){try{return await this.command.create(v(e))}catch(e){throw(0,t.wrapError)(e)}}async update(e){try{return await this.command.update(v(e))}catch(e){throw(0,t.wrapError)(e)}}async updateVisibility(e){try{return await this.command.updateVisibility(e)}catch(e){throw(0,t.wrapError)(e)}}async delete(e){try{return await this.command.delete((0,a.create)(o.AgentIdSchema,{value:e}))}catch(e){throw(0,t.wrapError)(e)}}async get(e){try{return await this.query.get((0,a.create)(o.AgentIdSchema,{value:e}))}catch(e){throw(0,t.wrapError)(e)}}async getByReference(e){try{return await this.query.getByReference((0,a.create)(p.ApiResourceReferenceSchema,{...e,kind:u.ApiResourceKind.agent}))}catch(e){throw(0,t.wrapError)(e)}}async getDefault(e){try{return await this.query.getDefault(e)}catch(e){throw(0,t.wrapError)(e)}}async list(e){try{let t=await this.search.search((0,a.create)(A.SearchRequestSchema,{kinds:[u.ApiResourceKind.agent],query:e.query,org:e.org,excludePublic:e.excludePublic??!1,crossOrgPublic:e.crossOrgPublic??!1,page:e.page?(0,a.create)(h.PageInfoSchema,e.page):void 0}));return{entries:t.entries,totalCount:t.totalCount,totalPages:t.totalPages}}catch(e){throw(0,t.wrapError)(e)}}},"buildAgentProto",0,v,"toAgentUpdateInput",0,function(e){let t=e.metadata,r=e.spec??(0,a.create)(s.AgentSpecSchema);return{id:t?.id||void 0,name:t?.name??"",slug:t?.slug||void 0,org:t?.org??"",labels:t?.labels&&Object.keys(t.labels).length>0?{...t.labels}:void 0,visibility:t?.visibility||void 0,description:r.description||void 0,iconUrl:r.iconUrl||void 0,instructions:r.instructions||void 0,mcpServerUsages:r.mcpServerUsages?.length?r.mcpServerUsages.map(V):void 0,skillRefs:(0,i.toResourceRefInputs)(r.skillRefs),subAgents:r.subAgents?.length?r.subAgents.map(I):void 0,env:Object.keys(r.env??{}).length>0?Object.fromEntries(Object.entries(r.env).map(([e,t])=>[e,{isSecret:t.isSecret||void 0,description:t.description||void 0,optional:t.optional||void 0}])):void 0}}])},203941,e=>{"use strict";e.i(113024);var t,i,a=e.i(424407);e.i(304532);var r=e.i(988158),c=e.i(761867);let n=(0,a.fileDesc)("CilhaS9zdGlnbWVyL2FnZW50aWMvcGx1Z2luL3YxL3N0YXR1cy5wcm90bxIcYWkuc3RpZ21lci5hZ2VudGljLnBsdWdpbi52MSLqAgoMUGx1Z2luU3RhdHVzEj8KBWF1ZGl0GGMgASgLMjAuYWkuc3RpZ21lci5jb21tb25zLmFwaXJlc291cmNlLkFwaVJlc291cmNlQXVkaXQSKAoGZGlnZXN0GAEgASgJQhi6SBVyEzIRXiR8XlthLWYwLTldezY0fSQSHAoUYXJ0aWZhY3Rfc3RvcmFnZV9rZXkYAiABKAkSOAoFc3RhdGUYAyABKA4yKS5haS5zdGlnbWVyLmFnZW50aWMucGx1Z2luLnYxLlBsdWdpblN0YXRlEg0KBWVycm9yGAQgASgJEkkKDG1hdGVyaWFsaXplZBgFIAEoCzIzLmFpLnN0aWdtZXIuYWdlbnRpYy5wbHVnaW4udjEuUGx1Z2luTWF0ZXJpYWxpemF0aW9uEj0KCHdhcm5pbmdzGAYgAygLMisuYWkuc3RpZ21lci5hZ2VudGljLnBsdWdpbi52MS5QbHVnaW5XYXJuaW5nIl8KFVBsdWdpbk1hdGVyaWFsaXphdGlvbhIOCgZza2lsbHMYASABKAUSEwoLbWNwX3NlcnZlcnMYAiABKAUSDgoGYWdlbnRzGAMgASgFEhEKCXdvcmtmbG93cxgEIAEoBSI8Cg1QbHVnaW5XYXJuaW5nEgwKBGtpbmQYASABKAkSDwoHbWVzc2FnZRgCIAEoCRIMCgRwYXRoGAMgASgJKnkKC1BsdWdpblN0YXRlEhwKGFBMVUdJTl9TVEFURV9VTlNQRUNJRklFRBAAEhsKF1BMVUdJTl9TVEFURV9JTlNUQUxMSU5HEAESFgoSUExVR0lOX1NUQVRFX1JFQURZEAISFwoTUExVR0lOX1NUQVRFX0ZBSUxFRBADYgZwcm90bzM",[r.file_ai_stigmer_commons_apiresource_status,c.file_buf_validate_validate]);(i=t||(t={}))[i.UNSPECIFIED=0]="UNSPECIFIED",i[i.INSTALLING=1]="INSTALLING",i[i.READY=2]="READY",i[i.FAILED=3]="FAILED",e.s(["PluginState",0,t,"file_ai_stigmer_agentic_plugin_v1_status",0,n])},44454,e=>{"use strict";var t=e.i(424407),i=e.i(304532),a=e.i(170255),r=e.i(302933),c=e.i(988158),n=e.i(761867),o=e.i(732303);let l=(0,t.fileDesc)("CiVhaS9zdGlnbWVyL2FnZW50aWMvcGx1Z2luL3YxL2lvLnByb3RvEhxhaS5zdGlnbWVyLmFnZW50aWMucGx1Z2luLnYxIiEKCFBsdWdpbklkEhUKBXZhbHVlGAEgASgJQga6SAPIAQEi9wIKEVB1c2hQbHVnaW5SZXF1ZXN0EhMKA29yZxgBIAEoCUIGukgDyAEBEhAKCGFydGlmYWN0GAIgASgMEhsKE2FydGlmYWN0X3VwbG9hZF9yZWYYAyABKAkSUwoKdmlzaWJpbGl0eRgEIAEoDjI1LmFpLnN0aWdtZXIuY29tbW9ucy5hcGlyZXNvdXJjZS5BcGlSZXNvdXJjZVZpc2liaWxpdHlCCLpIBYIBAhABEg8KB21lc3NhZ2UYBSABKAk6twG6SLMBGrABCiNwdXNoX3BsdWdpbl9yZXF1ZXN0LmFydGlmYWN0X3NvdXJjZRJJZXhhY3RseSBvbmUgb2YgYXJ0aWZhY3QgKGlubGluZSBieXRlcykgb3IgYXJ0aWZhY3RfdXBsb2FkX3JlZiBtdXN0IGJlIHNldBo+KHRoaXMuYXJ0aWZhY3Quc2l6ZSgpID4gMCkgIT0gKHRoaXMuYXJ0aWZhY3RfdXBsb2FkX3JlZiAhPSAnJykiWAokQ3JlYXRlUGx1Z2luQXJ0aWZhY3RVcGxvYWRVcmxSZXF1ZXN0EhMKA29yZxgBIAEoCUIGukgDyAEBEhsKCnNpemVfYnl0ZXMYAiABKANCB7pIBCICIAAiWAoXUGx1Z2luQXJ0aWZhY3RVcGxvYWRVcmwSCwoDdXJsGAEgASgJEhsKE2FydGlmYWN0X3VwbG9hZF9yZWYYAiABKAkSEwoLdHRsX3NlY29uZHMYAyABKAUihQEKDFBsdWdpbk1lbWJlchJNCgRraW5kGAEgASgOMj8uYWkuc3RpZ21lci5jb21tb25zLmFwaXJlc291cmNlLmFwaXJlc291cmNla2luZC5BcGlSZXNvdXJjZUtpbmQSCgoCaWQYAiABKAkSDAoEc2x1ZxgDIAEoCRIMCgRuYW1lGAQgASgJIlgKGUxpc3RQbHVnaW5NZW1iZXJzUmVzcG9uc2USOwoHbWVtYmVycxgBIAMoCzIqLmFpLnN0aWdtZXIuYWdlbnRpYy5wbHVnaW4udjEuUGx1Z2luTWVtYmVyImsKF0xpc3RQbHVnaW5WZXJzaW9uc0lucHV0EhMKA29yZxgBIAEoCUIGukgDyAEBEhQKBHNsdWcYAiABKAlCBrpIA8gBARISCgpwYWdlX3Rva2VuGAMgASgJEhEKCXBhZ2Vfc2l6ZRgEIAEoBSLtAQoSUGx1Z2luVmVyc2lvbkVudHJ5Eg4KBmRpZ2VzdBgBIAEoCRItCglwdXNoZWRfYXQYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEkgKCXB1c2hlZF9ieRgDIAEoCzI1LmFpLnN0aWdtZXIuY29tbW9ucy5hcGlyZXNvdXJjZS5BcGlSZXNvdXJjZUF1ZGl0QWN0b3ISCwoDdGFnGAQgASgJEhIKCmlzX2N1cnJlbnQYBSABKAgSDwoHbWVzc2FnZRgGIAEoCRIcChRhcnRpZmFjdF9zdG9yYWdlX2tleRgHIAEoCSKOAQoaTGlzdFBsdWdpblZlcnNpb25zUmVzcG9uc2USQgoIdmVyc2lvbnMYASADKAsyMC5haS5zdGlnbWVyLmFnZW50aWMucGx1Z2luLnYxLlBsdWdpblZlcnNpb25FbnRyeRIXCg9uZXh0X3BhZ2VfdG9rZW4YAiABKAkSEwoLdG90YWxfY291bnQYAyABKAViBnByb3RvMw",[a.file_ai_stigmer_commons_apiresource_apiresourcekind_api_resource_kind,r.file_ai_stigmer_commons_apiresource_enum,c.file_ai_stigmer_commons_apiresource_status,n.file_buf_validate_validate,o.file_google_protobuf_timestamp]),s=(0,i.messageDesc)(l,0),d=(0,i.messageDesc)(l,1),u=(0,i.messageDesc)(l,2),p=(0,i.messageDesc)(l,6);e.s(["CreatePluginArtifactUploadUrlRequestSchema",0,u,"ListPluginVersionsInputSchema",0,p,"PluginIdSchema",0,s,"PushPluginRequestSchema",0,d,"file_ai_stigmer_agentic_plugin_v1_io",0,l])},508535,e=>{"use strict";e.i(113024);var t,i,a=e.i(424407);e.i(304532);let r=(0,a.fileDesc)("CidhaS9zdGlnbWVyL2FnZW50aWMvcGx1Z2luL3YxL3NwZWMucHJvdG8SHGFpLnN0aWdtZXIuYWdlbnRpYy5wbHVnaW4udjEigwIKClBsdWdpblNwZWMSDAoEbmFtZRgBIAEoCRIPCgd2ZXJzaW9uGAIgASgJEhMKC2Rlc2NyaXB0aW9uGAMgASgJEjoKBmF1dGhvchgEIAEoCzIqLmFpLnN0aWdtZXIuYWdlbnRpYy5wbHVnaW4udjEuUGx1Z2luQXV0aG9yEhAKCGhvbWVwYWdlGAUgASgJEhIKCnJlcG9zaXRvcnkYBiABKAkSDwoHbGljZW5zZRgHIAEoCRIQCghrZXl3b3JkcxgIIAMoCRI8CgdkaWFsZWN0GAkgASgOMisuYWkuc3RpZ21lci5hZ2VudGljLnBsdWdpbi52MS5QbHVnaW5EaWFsZWN0IjgKDFBsdWdpbkF1dGhvchIMCgRuYW1lGAEgASgJEg0KBWVtYWlsGAIgASgJEgsKA3VybBgDIAEoCSqhAQoNUGx1Z2luRGlhbGVjdBIeChpQTFVHSU5fRElBTEVDVF9VTlNQRUNJRklFRBAAEiAKHFBMVUdJTl9ESUFMRUNUX0FHRU5UX1BMVUdJTlMQARIZChVQTFVHSU5fRElBTEVDVF9DTEFVREUQAhIZChVQTFVHSU5fRElBTEVDVF9DVVJTT1IQAxIYChRQTFVHSU5fRElBTEVDVF9DT0RFWBAEYgZwcm90bzM");(i=t||(t={}))[i.UNSPECIFIED=0]="UNSPECIFIED",i[i.AGENT_PLUGINS=1]="AGENT_PLUGINS",i[i.CLAUDE=2]="CLAUDE",i[i.CURSOR=3]="CURSOR",i[i.CODEX=4]="CODEX",e.s(["PluginDialect",0,t,"file_ai_stigmer_agentic_plugin_v1_spec",0,r])}]);
|