@orgsdk/cli 1.1.1 → 2.0.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/README.md +3 -3
- package/dist/server/index.js +41 -2
- package/dist/server/out/_next/static/chunks/0sp215n9c1io-.js +1 -0
- package/dist/server/out/_next/static/chunks/{12ro_nqb83zku.js → 1d-3ziz_810o8.js} +1 -1
- package/dist/server/out/_next/static/chunks/1r6fntqlmum9s.js +1 -0
- package/dist/server/out/_next/static/chunks/230w_ftm3ontp.js +10 -0
- package/dist/server/out/_next/static/chunks/{1tnzhqkfwk7l8.js → 23e6jep2anmtk.js} +1 -1
- package/dist/server/out/_next/static/chunks/27nl6dxk63itx.js +1 -0
- package/dist/server/out/_next/static/chunks/2vlk6pv7w2mqf.js +1 -0
- package/dist/server/out/_next/static/chunks/{1c1ayx3fqtub5.js → 310vm2bl3xxpt.js} +2 -2
- package/dist/server/out/_next/static/chunks/32whft3914fyd.js +1 -0
- package/dist/server/out/_next/static/chunks/3fotzxv1-f1pv.js +1 -0
- package/dist/server/out/_next/static/chunks/{2ngzwwqeitkk7.js → 3qfy96eoyh-ek.js} +1 -1
- package/dist/server/out/_next/static/chunks/3wbj1zftre8tm.js +1 -0
- package/dist/server/out/_next/static/chunks/3zt_16xndew4w.js +1 -0
- package/dist/server/out/accounts/2fa/__next._full.txt +23 -25
- package/dist/server/out/accounts/2fa/__next._tree.txt +1 -1
- package/dist/server/out/accounts/2fa/__next.accounts.2fa.__PAGE__.txt +26 -28
- package/dist/server/out/accounts/2fa/index.html +1 -1
- package/dist/server/out/accounts/2fa/index.txt +23 -25
- package/dist/server/out/accounts/email/__next._full.txt +23 -25
- package/dist/server/out/accounts/email/__next._tree.txt +1 -1
- package/dist/server/out/accounts/email/__next.accounts.email.__PAGE__.txt +26 -28
- package/dist/server/out/accounts/email/index.html +1 -1
- package/dist/server/out/accounts/email/index.txt +23 -25
- package/dist/server/out/accounts/login/__next._full.txt +23 -25
- package/dist/server/out/accounts/login/__next._tree.txt +1 -1
- package/dist/server/out/accounts/login/__next.accounts.login.__PAGE__.txt +26 -28
- package/dist/server/out/accounts/login/index.html +1 -1
- package/dist/server/out/accounts/login/index.txt +23 -25
- package/dist/server/out/accounts/logout/__next._full.txt +23 -25
- package/dist/server/out/accounts/logout/__next._tree.txt +1 -1
- package/dist/server/out/accounts/logout/__next.accounts.logout.__PAGE__.txt +26 -28
- package/dist/server/out/accounts/logout/index.html +1 -1
- package/dist/server/out/accounts/logout/index.txt +23 -25
- package/dist/server/out/accounts/password/change/__next._full.txt +24 -26
- package/dist/server/out/accounts/password/change/__next._tree.txt +1 -1
- package/dist/server/out/accounts/password/change/__next.accounts.password.change.__PAGE__.txt +28 -30
- package/dist/server/out/accounts/password/change/index.html +1 -1
- package/dist/server/out/accounts/password/change/index.txt +24 -26
- package/dist/server/out/accounts/password/reset/__next._full.txt +23 -25
- package/dist/server/out/accounts/password/reset/__next._tree.txt +1 -1
- package/dist/server/out/accounts/password/reset/__next.accounts.password.reset.__PAGE__.txt +27 -29
- package/dist/server/out/accounts/password/reset/index.html +1 -1
- package/dist/server/out/accounts/password/reset/index.txt +23 -25
- package/dist/server/out/accounts/signup/__next._full.txt +23 -25
- package/dist/server/out/accounts/signup/__next._tree.txt +1 -1
- package/dist/server/out/accounts/signup/__next.accounts.signup.__PAGE__.txt +26 -28
- package/dist/server/out/accounts/signup/index.html +1 -1
- package/dist/server/out/accounts/signup/index.txt +23 -25
- package/dist/server/out/setup/__next._full.txt +25 -27
- package/dist/server/out/setup/__next._tree.txt +1 -1
- package/dist/server/out/setup/__next.setup.__PAGE__.txt +28 -30
- package/dist/server/out/setup/index.html +1 -1
- package/dist/server/out/setup/index.txt +25 -27
- package/dist/server/out/studio/approve/__next._full.txt +26 -28
- package/dist/server/out/studio/approve/__next._tree.txt +1 -1
- package/dist/server/out/studio/approve/__next.studio.approve.__PAGE__.txt +29 -31
- package/dist/server/out/studio/approve/index.html +1 -1
- package/dist/server/out/studio/approve/index.txt +26 -28
- package/dist/server/out/workspaces/invite/__next._full.txt +26 -28
- package/dist/server/out/workspaces/invite/__next._tree.txt +1 -1
- package/dist/server/out/workspaces/invite/__next.workspaces.invite.__PAGE__.txt +29 -31
- package/dist/server/out/workspaces/invite/index.html +1 -1
- package/dist/server/out/workspaces/invite/index.txt +26 -28
- package/docs/npm-distribution.md +4 -4
- package/docs/studio.md +10 -4
- package/package.json +5 -4
- package/dist/server/out/192.png +0 -0
- package/dist/server/out/404/index.html +0 -1
- package/dist/server/out/404.html +0 -1
- package/dist/server/out/512.png +0 -0
- package/dist/server/out/LICENSE.txt +0 -122
- package/dist/server/out/__next.!KHdvcmtzcGFjZSk.__PAGE__.txt +0 -36
- package/dist/server/out/__next._full.txt +0 -30
- package/dist/server/out/__next._tree.txt +0 -4
- package/dist/server/out/_next/static/chunks/08j8vkv6c63tl.js +0 -1
- package/dist/server/out/_next/static/chunks/08mhtndhqtap6.js +0 -1
- package/dist/server/out/_next/static/chunks/0_4g944_32yce.js +0 -1
- package/dist/server/out/_next/static/chunks/0c-3k17txbh0-.js +0 -1
- package/dist/server/out/_next/static/chunks/0huhp5j8dlai8.js +0 -1
- package/dist/server/out/_next/static/chunks/0ldil27yuop5w.js +0 -1
- package/dist/server/out/_next/static/chunks/0ml0xmlylpypc.js +0 -1
- package/dist/server/out/_next/static/chunks/0pnz1790dyskl.js +0 -1
- package/dist/server/out/_next/static/chunks/0vvzjn6qqroc-.js +0 -1
- package/dist/server/out/_next/static/chunks/1-rdwquujn9vu.js +0 -1
- package/dist/server/out/_next/static/chunks/10aam78qxauw0.js +0 -1
- package/dist/server/out/_next/static/chunks/119rk6qs93dvi.js +0 -402
- package/dist/server/out/_next/static/chunks/1mvslk_7tkoql.js +0 -1
- package/dist/server/out/_next/static/chunks/1qo38zfnwh7m8.js +0 -1
- package/dist/server/out/_next/static/chunks/1wzgdpm-y6pr7.js +0 -1
- package/dist/server/out/_next/static/chunks/1ybinna1i7_ih.js +0 -1
- package/dist/server/out/_next/static/chunks/1z4_it-ka8j5y.js +0 -1
- package/dist/server/out/_next/static/chunks/23_jxnb5bd655.js +0 -1
- package/dist/server/out/_next/static/chunks/26xwt7opuq5ra.js +0 -1
- package/dist/server/out/_next/static/chunks/2_mjw80no8x2k.js +0 -1
- package/dist/server/out/_next/static/chunks/2bbfbmv0vf3j0.js +0 -1
- package/dist/server/out/_next/static/chunks/2e3acf42jw52v.js +0 -1
- package/dist/server/out/_next/static/chunks/2isb6m1ll4dfq.js +0 -3
- package/dist/server/out/_next/static/chunks/2lxgam-nk-e9a.js +0 -3
- package/dist/server/out/_next/static/chunks/2q18r9vstryqj.js +0 -3
- package/dist/server/out/_next/static/chunks/2zwn2yzygk1de.js +0 -1
- package/dist/server/out/_next/static/chunks/36wd29nar_zo_.js +0 -1
- package/dist/server/out/_next/static/chunks/37a4b-pq_bp3z.js +0 -1
- package/dist/server/out/_next/static/chunks/37ulwyxnek-f9.js +0 -1
- package/dist/server/out/_next/static/chunks/38qp_i6ue7fcy.js +0 -1
- package/dist/server/out/_next/static/chunks/3a4y69p5pl3_7.js +0 -10
- package/dist/server/out/_next/static/chunks/3l2yelj-blib4.js +0 -1
- package/dist/server/out/_next/static/chunks/3u6154viqt17v.js +0 -1
- package/dist/server/out/_next/static/chunks/3w6l6p3ylx6oq.js +0 -55
- package/dist/server/out/_next/static/chunks/3xs2ji0dgkbmc.js +0 -1
- package/dist/server/out/_next/static/chunks/3yetoibj5lso8.js +0 -1
- package/dist/server/out/_next/static/chunks/42mg-r2kufm8n.js +0 -1
- package/dist/server/out/_not-found/__next._full.txt +0 -24
- package/dist/server/out/_not-found/__next._not-found.__PAGE__.txt +0 -30
- package/dist/server/out/_not-found/__next._tree.txt +0 -4
- package/dist/server/out/_not-found/index.html +0 -1
- package/dist/server/out/_not-found/index.txt +0 -24
- package/dist/server/out/actions/__next.!KHdvcmtzcGFjZSk.actions.__PAGE__.txt +0 -44
- package/dist/server/out/actions/__next._full.txt +0 -37
- package/dist/server/out/actions/__next._tree.txt +0 -5
- package/dist/server/out/actions/index.html +0 -1
- package/dist/server/out/actions/index.txt +0 -37
- package/dist/server/out/agents/__next.!KHdvcmtzcGFjZSk.agents.__PAGE__.txt +0 -40
- package/dist/server/out/agents/__next._full.txt +0 -33
- package/dist/server/out/agents/__next._tree.txt +0 -5
- package/dist/server/out/agents/index.html +0 -1
- package/dist/server/out/agents/index.txt +0 -33
- package/dist/server/out/app-icon.svg +0 -7
- package/dist/server/out/approvals/__next.!KHdvcmtzcGFjZSk.approvals.__PAGE__.txt +0 -40
- package/dist/server/out/approvals/__next._full.txt +0 -33
- package/dist/server/out/approvals/__next._tree.txt +0 -5
- package/dist/server/out/approvals/index.html +0 -1
- package/dist/server/out/approvals/index.txt +0 -33
- package/dist/server/out/artifacts/__next.!KHdvcmtzcGFjZSk.artifacts.__PAGE__.txt +0 -41
- package/dist/server/out/artifacts/__next._full.txt +0 -34
- package/dist/server/out/artifacts/__next._tree.txt +0 -5
- package/dist/server/out/artifacts/index.html +0 -1
- package/dist/server/out/artifacts/index.txt +0 -34
- package/dist/server/out/audit/__next.!KHdvcmtzcGFjZSk.audit.__PAGE__.txt +0 -37
- package/dist/server/out/audit/__next._full.txt +0 -30
- package/dist/server/out/audit/__next._tree.txt +0 -5
- package/dist/server/out/audit/index.html +0 -1
- package/dist/server/out/audit/index.txt +0 -30
- package/dist/server/out/brand/logo/README.md +0 -92
- package/dist/server/out/brand/logo/app-icon.svg +0 -7
- package/dist/server/out/brand/logo/favicon.svg +0 -8
- package/dist/server/out/brand/logo/fonts/Inter-Bold.ttf +0 -0
- package/dist/server/out/brand/logo/fonts/Inter-Regular.ttf +0 -0
- package/dist/server/out/brand/logo/lockup-dark.svg +0 -11
- package/dist/server/out/brand/logo/lockup-integrated.svg +0 -14
- package/dist/server/out/brand/logo/lockup-light.svg +0 -11
- package/dist/server/out/brand/logo/og-image.svg +0 -20
- package/dist/server/out/brand/logo/primary-solid.svg +0 -6
- package/dist/server/out/brand/logo/primary.svg +0 -7
- package/dist/server/out/brand/logo/raster/banner-1500x500.png +0 -0
- package/dist/server/out/brand/logo/raster/profile-1024.png +0 -0
- package/dist/server/out/brand/logo/raster/profile-512.png +0 -0
- package/dist/server/out/brand/logo/raster/square-1080.png +0 -0
- package/dist/server/out/brand/tokens.md +0 -74
- package/dist/server/out/chat/__next.!KHdvcmtzcGFjZSk.chat.__PAGE__.txt +0 -36
- package/dist/server/out/chat/__next._full.txt +0 -29
- package/dist/server/out/chat/__next._tree.txt +0 -5
- package/dist/server/out/chat/index.html +0 -1
- package/dist/server/out/chat/index.txt +0 -29
- package/dist/server/out/connections/__next.!KHdvcmtzcGFjZSk.connections.__PAGE__.txt +0 -40
- package/dist/server/out/connections/__next._full.txt +0 -33
- package/dist/server/out/connections/__next._tree.txt +0 -5
- package/dist/server/out/connections/index.html +0 -1
- package/dist/server/out/connections/index.txt +0 -33
- package/dist/server/out/credentials/__next.!KHdvcmtzcGFjZSk.credentials.__PAGE__.txt +0 -40
- package/dist/server/out/credentials/__next._full.txt +0 -33
- package/dist/server/out/credentials/__next._tree.txt +0 -5
- package/dist/server/out/credentials/index.html +0 -1
- package/dist/server/out/credentials/index.txt +0 -33
- package/dist/server/out/documents/__next.!KHdvcmtzcGFjZSk.documents.__PAGE__.txt +0 -40
- package/dist/server/out/documents/__next._full.txt +0 -33
- package/dist/server/out/documents/__next._tree.txt +0 -5
- package/dist/server/out/documents/index.html +0 -1
- package/dist/server/out/documents/index.txt +0 -33
- package/dist/server/out/favicon.svg +0 -5
- package/dist/server/out/index.html +0 -1
- package/dist/server/out/index.txt +0 -30
- package/dist/server/out/logo.svg +0 -12
- package/dist/server/out/monaco/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/dist/server/out/monaco/vs/base/worker/workerMain.js +0 -31
- package/dist/server/out/monaco/vs/basic-languages/abap/abap.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/apex/apex.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/azcli/azcli.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/bat/bat.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/bicep/bicep.js +0 -11
- package/dist/server/out/monaco/vs/basic-languages/cameligo/cameligo.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/clojure/clojure.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/coffee/coffee.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/cpp/cpp.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/csharp/csharp.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/csp/csp.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/css/css.js +0 -12
- package/dist/server/out/monaco/vs/basic-languages/cypher/cypher.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/dart/dart.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/dockerfile/dockerfile.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/ecl/ecl.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/elixir/elixir.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/flow9/flow9.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/freemarker2/freemarker2.js +0 -12
- package/dist/server/out/monaco/vs/basic-languages/fsharp/fsharp.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/go/go.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/graphql/graphql.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/handlebars/handlebars.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/hcl/hcl.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/html/html.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/ini/ini.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/java/java.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/javascript/javascript.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/julia/julia.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/kotlin/kotlin.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/less/less.js +0 -11
- package/dist/server/out/monaco/vs/basic-languages/lexon/lexon.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/liquid/liquid.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/lua/lua.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/m3/m3.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/markdown/markdown.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/mdx/mdx.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/mips/mips.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/msdax/msdax.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/mysql/mysql.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/objective-c/objective-c.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/pascal/pascal.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/pascaligo/pascaligo.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/perl/perl.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/pgsql/pgsql.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/php/php.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/pla/pla.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/postiats/postiats.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/powerquery/powerquery.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/powershell/powershell.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/protobuf/protobuf.js +0 -11
- package/dist/server/out/monaco/vs/basic-languages/pug/pug.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/python/python.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/qsharp/qsharp.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/r/r.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/razor/razor.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/redis/redis.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/redshift/redshift.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/restructuredtext/restructuredtext.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/ruby/ruby.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/rust/rust.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/sb/sb.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/scala/scala.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/scheme/scheme.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/scss/scss.js +0 -12
- package/dist/server/out/monaco/vs/basic-languages/shell/shell.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/solidity/solidity.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/sophia/sophia.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/sparql/sparql.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/sql/sql.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/st/st.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/swift/swift.js +0 -13
- package/dist/server/out/monaco/vs/basic-languages/systemverilog/systemverilog.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/tcl/tcl.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/twig/twig.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/typescript/typescript.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/typespec/typespec.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/vb/vb.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/wgsl/wgsl.js +0 -307
- package/dist/server/out/monaco/vs/basic-languages/xml/xml.js +0 -10
- package/dist/server/out/monaco/vs/basic-languages/yaml/yaml.js +0 -10
- package/dist/server/out/monaco/vs/editor/editor.main.css +0 -8
- package/dist/server/out/monaco/vs/editor/editor.main.js +0 -798
- package/dist/server/out/monaco/vs/language/css/cssMode.js +0 -13
- package/dist/server/out/monaco/vs/language/css/cssWorker.js +0 -77
- package/dist/server/out/monaco/vs/language/html/htmlMode.js +0 -13
- package/dist/server/out/monaco/vs/language/html/htmlWorker.js +0 -454
- package/dist/server/out/monaco/vs/language/json/jsonMode.js +0 -19
- package/dist/server/out/monaco/vs/language/json/jsonWorker.js +0 -42
- package/dist/server/out/monaco/vs/language/typescript/tsMode.js +0 -20
- package/dist/server/out/monaco/vs/language/typescript/tsWorker.js +0 -51328
- package/dist/server/out/monaco/vs/loader.js +0 -11
- package/dist/server/out/monaco/vs/nls.messages.de.js +0 -21
- package/dist/server/out/monaco/vs/nls.messages.es.js +0 -21
- package/dist/server/out/monaco/vs/nls.messages.fr.js +0 -19
- package/dist/server/out/monaco/vs/nls.messages.it.js +0 -19
- package/dist/server/out/monaco/vs/nls.messages.ja.js +0 -21
- package/dist/server/out/monaco/vs/nls.messages.ko.js +0 -19
- package/dist/server/out/monaco/vs/nls.messages.ru.js +0 -21
- package/dist/server/out/monaco/vs/nls.messages.zh-cn.js +0 -21
- package/dist/server/out/monaco/vs/nls.messages.zh-tw.js +0 -19
- package/dist/server/out/og-image.png +0 -0
- package/dist/server/out/people/__next.!KHdvcmtzcGFjZSk.people.__PAGE__.txt +0 -40
- package/dist/server/out/people/__next._full.txt +0 -33
- package/dist/server/out/people/__next._tree.txt +0 -5
- package/dist/server/out/people/index.html +0 -1
- package/dist/server/out/people/index.txt +0 -33
- package/dist/server/out/plugins/__next.!KHdvcmtzcGFjZSk.plugins.__PAGE__.txt +0 -42
- package/dist/server/out/plugins/__next._full.txt +0 -35
- package/dist/server/out/plugins/__next._tree.txt +0 -5
- package/dist/server/out/plugins/icons/SOURCES.md +0 -24
- package/dist/server/out/plugins/icons/asana.ico +0 -0
- package/dist/server/out/plugins/icons/browser-cdp.png +0 -0
- package/dist/server/out/plugins/icons/chromium-license.txt +0 -27
- package/dist/server/out/plugins/icons/data.svg +0 -1
- package/dist/server/out/plugins/icons/facebook.svg +0 -1
- package/dist/server/out/plugins/icons/github.svg +0 -10
- package/dist/server/out/plugins/icons/gmail.svg +0 -1
- package/dist/server/out/plugins/icons/google-drive.svg +0 -1
- package/dist/server/out/plugins/icons/google-sheets.svg +0 -1
- package/dist/server/out/plugins/icons/google-tasks.svg +0 -1
- package/dist/server/out/plugins/icons/harvest.svg +0 -7
- package/dist/server/out/plugins/icons/linkedin.png +0 -0
- package/dist/server/out/plugins/icons/llm.svg +0 -1
- package/dist/server/out/plugins/icons/lucide-license.txt +0 -43
- package/dist/server/out/plugins/icons/serper.png +0 -0
- package/dist/server/out/plugins/icons/servicem8.png +0 -0
- package/dist/server/out/plugins/icons/shippo.png +0 -0
- package/dist/server/out/plugins/icons/shopify.png +0 -0
- package/dist/server/out/plugins/icons/twitter.svg +0 -1
- package/dist/server/out/plugins/icons/xero.svg +0 -15
- package/dist/server/out/plugins/icons/zendesk.svg +0 -6
- package/dist/server/out/plugins/index.html +0 -1
- package/dist/server/out/plugins/index.txt +0 -35
- package/dist/server/out/projects/__next.!KHdvcmtzcGFjZSk.projects.__PAGE__.txt +0 -40
- package/dist/server/out/projects/__next._full.txt +0 -33
- package/dist/server/out/projects/__next._tree.txt +0 -5
- package/dist/server/out/projects/index.html +0 -1
- package/dist/server/out/projects/index.txt +0 -33
- package/dist/server/out/runs/__next.!KHdvcmtzcGFjZSk.runs.__PAGE__.txt +0 -41
- package/dist/server/out/runs/__next._full.txt +0 -34
- package/dist/server/out/runs/__next._tree.txt +0 -5
- package/dist/server/out/runs/index.html +0 -1
- package/dist/server/out/runs/index.txt +0 -34
- package/dist/server/out/schedules/__next.!KHdvcmtzcGFjZSk.schedules.__PAGE__.txt +0 -41
- package/dist/server/out/schedules/__next._full.txt +0 -34
- package/dist/server/out/schedules/__next._tree.txt +0 -5
- package/dist/server/out/schedules/index.html +0 -1
- package/dist/server/out/schedules/index.txt +0 -34
- package/dist/server/out/settings/__next.!KHdvcmtzcGFjZSk.settings.__PAGE__.txt +0 -40
- package/dist/server/out/settings/__next._full.txt +0 -33
- package/dist/server/out/settings/__next._tree.txt +0 -5
- package/dist/server/out/settings/index.html +0 -1
- package/dist/server/out/settings/index.txt +0 -33
- package/dist/server/out/tables/__next.!KHdvcmtzcGFjZSk.tables.__PAGE__.txt +0 -37
- package/dist/server/out/tables/__next._full.txt +0 -30
- package/dist/server/out/tables/__next._tree.txt +0 -5
- package/dist/server/out/tables/index.html +0 -1
- package/dist/server/out/tables/index.txt +0 -30
- package/dist/server/out/webhooks/__next.!KHdvcmtzcGFjZSk.webhooks.__PAGE__.txt +0 -40
- package/dist/server/out/webhooks/__next._full.txt +0 -33
- package/dist/server/out/webhooks/__next._tree.txt +0 -5
- package/dist/server/out/webhooks/index.html +0 -1
- package/dist/server/out/webhooks/index.txt +0 -33
- /package/dist/server/out/_next/static/{Y8vBpuSNi3rgSMMl9XHGn → nuueL_zaptsiP6lJ6gOqq}/_buildManifest.js +0 -0
- /package/dist/server/out/_next/static/{Y8vBpuSNi3rgSMMl9XHGn → nuueL_zaptsiP6lJ6gOqq}/_clientMiddlewareManifest.js +0 -0
- /package/dist/server/out/_next/static/{Y8vBpuSNi3rgSMMl9XHGn → nuueL_zaptsiP6lJ6gOqq}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,13581,29487,e=>{"use strict";var s=e.i(71645),a=e.i(95813);e.s(["f",0,function(e,t=0){let[r,n]=(0,s.useState)(),[i,l]=(0,s.useState)(""),[c,d]=(0,s.useState)(!0),o=(0,s.useRef)(void 0),u=(0,s.useRef)(!1),h=(0,s.useCallback)(async()=>{o.current?.abort();let s=new AbortController;o.current=s;try{let a=await e(s.signal);if(s.signal.aborted||!u.current)return;n(a),l("")}catch(e){!s.signal.aborted&&u.current&&l((0,a.f)(e))}finally{!s.signal.aborted&&u.current&&d(!1)}},[e]);return(0,s.useEffect)(()=>{u.current=!0,queueMicrotask(()=>{u.current&&h()});let e=t>0?setInterval(()=>{h()},t):void 0;return()=>{u.current=!1,o.current?.abort(),clearInterval(e)}},[h,t]),{data:r,error:i,isLoading:c,refresh:h}}],13581);var t=e.i(18050),r=e.i(19455);e.s(["f",0,function({isLoading:e,error:s,refresh:a}){return(0,t.jsxs)(t.Fragment,{children:[e?(0,t.jsx)("p",{role:"status",children:"Loading workspace data…"}):void 0,s?(0,t.jsxs)("div",{className:"error",role:"alert",children:[(0,t.jsx)("p",{children:s}),(0,t.jsx)(r.f,{variant:"outline",onClick:()=>{a()},children:"Try again"})]}):void 0]})}],29487)},40067,e=>{"use strict";var s=e.i(18050),a=e.i(18566),t=e.i(26067),r=e.i(77071),n=e.i(71645),i=e.i(73656),l=e.i(95813),c=e.i(19455),d=e.i(93479),o=e.i(15080),u=e.i(13581),h=e.i(1101),m=e.i(87309);function p({project:e,refresh:a}){let[t,r]=(0,n.useState)("http://localhost"),[d,o]=(0,n.useState)(""),[u,h]=(0,n.useState)(!1),[j,x]=(0,n.useState)(""),[f,b]=(0,n.useState)(""),g=(0,m.h)(),v=async(s,t=!1)=>{if(await g({title:s?"Revoke this project’s runner?":"Register a replacement runner?",description:"The current runner will lose access. Running tasks may stop. This affects only this project.",actionLabel:s?"Revoke runner":"Generate token"})){h(!0),x(""),b(""),o("");try{if(s)await i.V.projects.disconnectExecutor.mutate({id:e.id}),b("Runner access revoked.");else{let s=await i.V.projects.connectExecutor.mutate({id:e.id,locally_managed:t});t?b("Local runner enabled. It will connect when the installation’s runner is running."):o(s.token)}await a()}catch(e){x((0,l.f)(e))}finally{h(!1)}}},w="orgsdk executor register --url "+t+"\norgsdk executor start --mode docker",[N,y]=(0,n.useState)(0);(0,n.useEffect)(()=>{let e=()=>{y(Date.now())};e();let s=setInterval(()=>{e(),a().catch(e=>{x((0,l.f)(e))})},1e4);return()=>{clearInterval(s)}},[a]);let k=e.runner.last_seen_at?new Date(e.runner.last_seen_at).getTime():void 0,C="Registered · waiting for connection";return void 0!==k&&(C=N-k>6e4?"Unavailable · no recent heartbeat":"Available"),e.runner.enabled||(C="Revoked"),(0,s.jsxs)("section",{className:"panel",children:[(0,s.jsx)("h2",{children:"Project runner"}),(0,s.jsxs)("p",{className:"mb-4",children:["This project uses its own runner to execute actions in its persistent working folder. Starting OrgSDK with ",(0,s.jsx)("code",{children:"orgsdk start"})," also starts the local runner."]}),(0,s.jsxs)("p",{children:[e.runner.registered?C:"Not registered"," ·"," ",e.runner.locally_managed?"Managed by this installation":"Linked runner"]}),e.runner.last_seen_at?(0,s.jsxs)("p",{className:"small",children:["Last connected:"," ",new Date(e.runner.last_seen_at).toLocaleString()]}):(0,s.jsx)("p",{className:"small",children:"Waiting for the runner to connect."}),(0,s.jsxs)("div",{className:"mt-5 flex flex-wrap gap-3",children:[(0,s.jsx)(c.f,{disabled:u,onClick:()=>{v(!1)},children:"Generate registration token"}),(0,s.jsx)(c.f,{variant:"outline",disabled:u,onClick:()=>{v(!1,!0)},children:"Use local runner"}),(0,s.jsx)(c.f,{variant:"outline",disabled:u||!e.runner.registered||!e.runner.enabled,onClick:()=>{v(!0)},children:"Revoke runner"})]}),d?(0,s.jsxs)("div",{className:"mt-5 grid gap-3",children:[(0,s.jsx)("p",{children:"Copy this token now. It is shown once. Paste it at the registration prompt."}),(0,s.jsx)("code",{className:"break-all",children:d}),(0,s.jsx)(c.f,{variant:"outline",onClick:()=>{navigator.clipboard.writeText(d).then(()=>{b("Token copied.")}).catch(()=>{x("Clipboard unavailable. Select and copy the token.")})},children:"Copy token"})]}):null,(0,s.jsxs)("details",{className:"mt-4",onToggle:()=>{r((0,i.U)())},children:[(0,s.jsx)("summary",{children:"Link a separate runner"}),(0,s.jsx)("p",{className:"mt-4",children:"The npm-installed OrgSDK command includes the runner. A separate runner machine needs Linux and Node.js 22.22 or newer. Docker mode also requires Docker and an executor image, network and storage configured by your administrator."}),(0,s.jsx)("pre",{className:"my-4 overflow-auto",children:w}),(0,s.jsx)(c.f,{variant:"outline",onClick:()=>{navigator.clipboard.writeText(w).then(()=>{b("Commands copied.")}).catch(()=>{x("Clipboard unavailable. Select and copy the commands.")})},children:"Copy commands"}),(0,s.jsxs)("p",{className:"small mt-3",children:["Use ",(0,s.jsx)("code",{children:"--mode host"})," only when you intend to let tools run directly under your operating system account."]})]}),j?(0,s.jsx)("p",{role:"alert",className:"error",children:j}):null,f?(0,s.jsx)("p",{role:"status",className:"notice",children:f}):null]})}var j=e.i(59037),x=e.i(94757),f=e.i(75016),b=e.i(29487);let g=[{id:"overview",label:"Overview"},{id:"access",label:"Data access"},{id:"runner",label:"Runner"},{id:"settings",label:"Settings"}],v=[{field:"readable_tables",label:"Read tables",resource:"tables"},{field:"writable_tables",label:"Write tables",resource:"tables"},{field:"readable_documents",label:"Read documents",resource:"documents"},{field:"writable_documents",label:"Write documents",resource:"documents"}];async function w(e){let[s,a]=await Promise.all([(0,o.f)(e),(0,o.t)(e)]);return{runs:s,actions:a}}async function N(e){let[s,a,t]=await Promise.all([(0,o.p)(e),(0,o.l)(e),i.V.tables.list.query(void 0,{signal:e})]);return{plugins:s,documents:a,tables:t.results}}function y({project:e,tab:a,refresh:t,onDirtyChange:r}){let{canManage:n}=(0,x.useWorkspace)(),i=`project=${encodeURIComponent(e.id)}`;return(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsxs)("div",{className:"mb-5 flex flex-wrap items-center justify-between gap-3",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"!mb-1 !text-xl",children:e.name}),(0,s.jsx)("p",{className:"small",children:"Configure the tools and data your MCP agent can use."})]}),(0,s.jsx)("span",{className:"badge",children:e.enabled?"Enabled":"Disabled"})]}),(0,s.jsx)("nav",{className:"mb-6 flex flex-wrap gap-2 border-b border-slate-200 pb-4","aria-label":"Project configuration",children:g.map(e=>(0,s.jsx)(c.f,{asChild:!0,variant:a===e.id?"secondary":"ghost",children:(0,s.jsx)(f.f,{href:`/projects/?${i}${"overview"===e.id?"":`&tab=${e.id}`}`,"aria-current":a===e.id?"page":void 0,children:e.label})},e.id))}),"overview"===a?(0,s.jsx)(k,{project:e}):void 0,"access"===a?(0,s.jsx)(S,{project:e,refresh:t,onDirtyChange:r}):void 0,"runner"===a?n?(0,s.jsx)(p,{project:e,refresh:t}):(0,s.jsxs)("section",{className:"panel",children:[(0,s.jsx)("h2",{children:"Project runner"}),(0,s.jsxs)("p",{children:[e.runner.registered?"Registered":"Not registered"," ·"," ",e.runner.enabled?"Enabled":"Revoked"]}),(0,s.jsx)("p",{className:"small mt-3",children:"An owner or admin can configure this project’s runner."})]}):void 0,"settings"===a?(0,s.jsx)(_,{project:e,refresh:t,onDirtyChange:r}):void 0]})}function k({project:e}){let a=(0,u.f)(w),t=`project=${encodeURIComponent(e.id)}`,r=a.data?.actions.filter(s=>s.project===e.id),n=a.data?.runs.filter(s=>s.project===e.id).slice(0,5);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("section",{className:"panel",children:[(0,s.jsxs)("div",{className:"grid gap-5 lg:grid-cols-[minmax(0,1fr)_auto] lg:items-center",children:[(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsx)("h2",{className:"!mb-0",children:"Connect your agent over MCP"}),(0,s.jsx)("p",{className:"max-w-2xl",children:"Connect an external agent to this project to build and run actions. Choose the plugins and workspace data it can access, then use saved actions to review runs, add schedules and receive webhooks."})]}),(0,s.jsx)(c.f,{asChild:!0,children:(0,s.jsx)(f.f,{href:`/connections/?${t}`,children:"Connect agent"})})]}),(0,s.jsxs)("div",{className:"mt-5 flex flex-wrap gap-3 border-t border-slate-200 pt-4",children:[(0,s.jsx)(c.f,{asChild:!0,variant:"outline",children:(0,s.jsx)(f.f,{href:`/projects/?${t}&tab=access`,children:"Configure data access"})}),(0,s.jsx)(c.f,{asChild:!0,variant:"outline",children:(0,s.jsx)(f.f,{href:`/plugins/?${t}`,children:"Manage plugins"})}),(0,s.jsx)(c.f,{asChild:!0,variant:"outline",children:(0,s.jsx)(f.f,{href:`/projects/?${t}&tab=runner`,children:e.runner.registered?"Manage runner":"Set up runner"})})]})]}),(0,s.jsx)(b.f,{...a}),(0,s.jsxs)("section",{className:"panel","aria-labelledby":"project-actions-heading",children:[(0,s.jsxs)("div",{className:"mb-4 flex flex-wrap items-center justify-between gap-3",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{id:"project-actions-heading",className:"!mb-1",children:"Saved actions"}),(0,s.jsx)("p",{className:"small",children:"Open an action to manage its code, runs, schedule and webhook."})]}),(0,s.jsx)(c.f,{asChild:!0,variant:"outline",children:(0,s.jsx)(f.f,{href:`/actions/?${t}`,children:"View all actions"})})]}),(0,s.jsx)("div",{className:"grid gap-3 xl:grid-cols-2",children:r?.slice(0,4).map(e=>(0,s.jsx)(h.f,{action:e},e.id))}),r?.length===0?(0,s.jsxs)("div",{className:"rounded-lg border border-dashed border-slate-200 p-5",children:[(0,s.jsx)("h3",{children:"No saved actions yet"}),(0,s.jsx)("p",{className:"small mt-2",children:"Create an action or ask your connected agent to build one."}),(0,s.jsx)(c.f,{asChild:!0,variant:"outline",className:"mt-4",children:(0,s.jsx)(f.f,{href:`/actions/?${t}&new=1`,children:"Create action"})})]}):void 0]}),(0,s.jsxs)("section",{className:"panel","aria-labelledby":"project-runs-heading",children:[(0,s.jsxs)("div",{className:"mb-4 flex flex-wrap items-center justify-between gap-3",children:[(0,s.jsx)("h2",{id:"project-runs-heading",className:"!mb-0",children:"Recent runs"}),(0,s.jsx)(c.f,{asChild:!0,variant:"outline",children:(0,s.jsx)(f.f,{href:`/runs/?${t}`,children:"View all runs"})})]}),(0,s.jsx)("div",{className:"grid gap-3",children:n?.map(e=>(0,s.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3 rounded-lg border border-slate-200 p-4",children:[(0,s.jsxs)("div",{className:"min-w-0",children:[(0,s.jsxs)("span",{className:"text-sm font-medium",children:[e.operation," · ",e.status]}),(0,s.jsx)("p",{className:"small mt-1",children:new Date(e.created_at).toLocaleString()})]}),(0,s.jsx)(c.f,{asChild:!0,variant:"outline",children:(0,s.jsx)(f.f,{href:`/runs/?${t}&run=${encodeURIComponent(e.id)}`,children:"Inspect run"})})]},e.id))}),n?.length===0?(0,s.jsx)("p",{children:"No runs yet. Run an action to see its results here."}):void 0]})]})}function C(e){return{readable_tables:"readable_tables"in e?e.readable_tables:[],writable_tables:"writable_tables"in e?e.writable_tables:[],readable_documents:"readable_documents"in e?e.readable_documents:[],writable_documents:"writable_documents"in e?e.writable_documents:[]}}function S({project:e,refresh:a,onDirtyChange:t}){let{canManage:r}=(0,x.useWorkspace)(),d=(0,u.f)(N),o=C(e),[h,m]=(0,n.useState)(()=>C(e)),[p,g]=(0,n.useState)(!1),[w,y]=(0,n.useState)(""),[k,_]=(0,n.useState)("");(0,j.f)(v.some(({field:e})=>JSON.stringify(h[e])!==JSON.stringify(o[e])),t);let R=async()=>{g(!0),y(""),_("");try{let s=await i.V.projects.update.mutate({id:e.id,...h});await a(),m(C(s)),_("Project data access saved.")}catch(e){y((0,l.f)(e))}finally{g(!1)}},D=d.data?.plugins.filter(s=>s.project===e.id);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("section",{className:"panel",children:[(0,s.jsx)("h2",{children:"Workspace data access"}),(0,s.jsx)("p",{className:"mb-5 max-w-3xl",children:"Choose the shared tables and documents available to this project’s actions. Changes apply to new runs; adding access cannot widen a run that has already been submitted."}),r?void 0:(0,s.jsx)("p",{className:"small mb-5",children:"Only owners and admins can change project data access."}),(0,s.jsx)(b.f,{...d}),(0,s.jsxs)("form",{onSubmit:e=>{e.preventDefault(),R()},children:[(0,s.jsx)("div",{className:"grid gap-4 md:grid-cols-2",children:v.map(({field:e,label:a,resource:t})=>{let n=d.data?.[t];return(0,s.jsx)("div",{className:"min-w-0 rounded-lg border border-slate-200 p-4",children:(0,s.jsxs)("fieldset",{className:"!m-0 min-w-0 !border-0 !p-0",disabled:!r||p,children:[(0,s.jsx)("legend",{className:"!mb-3 !text-sm font-semibold",children:a}),(0,s.jsx)("div",{className:"grid gap-3",children:n?.map(a=>(0,s.jsxs)("label",{className:"check !m-0 !items-start gap-2",children:[(0,s.jsx)("input",{type:"checkbox",className:"mt-1 shrink-0",checked:h[e].includes(a.id),onChange:s=>{m(t=>({...t,[e]:s.target.checked?[...t[e],a.id]:t[e].filter(e=>e!==a.id)}))}}),(0,s.jsx)("span",{className:"min-w-0 break-words",children:"name"in a?a.name:a.title})]},a.id))}),n?.length===0?(0,s.jsxs)("p",{className:"small",children:["No workspace ",t," yet."]}):void 0]})},e)})}),(0,s.jsxs)("div",{className:"mt-5 flex flex-wrap items-center gap-3",children:[r?(0,s.jsx)(c.f,{type:"submit",disabled:p||d.isLoading||!d.data,children:p?"Saving…":"Save data access"}):void 0,(0,s.jsx)(f.f,{href:"/tables/",children:"Manage workspace tables"}),(0,s.jsx)(f.f,{href:"/documents/",children:"Manage workspace documents"})]})]}),w?(0,s.jsx)("p",{className:"error mt-4",role:"alert",children:w}):void 0,k?(0,s.jsx)("p",{className:"notice mt-4",role:"status",children:k}):void 0]}),(0,s.jsxs)("section",{className:"panel",children:[(0,s.jsx)("h2",{children:"Project plugins"}),(0,s.jsx)("p",{children:"Plugins add tools your agent can use in this project. Configure each plugin’s credentials separately."}),(0,s.jsxs)("div",{className:"my-4 grid gap-2",children:[D?.map(e=>(0,s.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2 rounded-md border border-slate-200 p-3",children:[(0,s.jsxs)("span",{className:"text-sm",children:[e.slug," · ",e.version]}),(0,s.jsx)("span",{className:"badge",children:e.enabled?"Enabled":"Disabled"})]},e.id)),D?.length===0?(0,s.jsx)("p",{className:"small",children:"No plugins installed in this project."}):void 0]}),(0,s.jsx)(c.f,{asChild:!0,variant:"outline",children:(0,s.jsx)(f.f,{href:`/plugins/?project=${encodeURIComponent(e.id)}`,children:"Manage project plugins"})})]})]})}function _({project:e,refresh:a,onDirtyChange:t}){let{canManage:r,navigateTo:o}=(0,x.useWorkspace)(),[u,h]=(0,n.useState)(e.name),[p,f]=(0,n.useState)(e.enabled),[b,g]=(0,n.useState)(!1),[v,w]=(0,n.useState)(""),[N,y]=(0,n.useState)(""),k=(0,m.h)();(0,j.f)(u!==e.name||p!==e.enabled,t);let C=async()=>{g(!0),w(""),y("");try{let s=await i.V.projects.update.mutate({id:e.id,name:u.trim(),enabled:p});await a(),h(s.name),y("Project settings saved.")}catch(e){w((0,l.f)(e))}finally{g(!1)}},S=async()=>{if(await k({title:"Delete this project?",description:"Its actions and versions will be removed. Projects referenced by retained run history cannot be deleted.",actionLabel:"Delete project"})){g(!0),w(""),y("");try{await i.V.projects.delete.mutate({id:e.id}),t(!1),await a(),await o("/projects/")}catch(e){w((0,l.f)(e))}finally{g(!1)}}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("section",{className:"panel",children:[(0,s.jsx)("h2",{children:"Project settings"}),(0,s.jsxs)("form",{className:"max-w-2xl",onSubmit:e=>{e.preventDefault(),C()},children:[(0,s.jsxs)("label",{children:["Project name",(0,s.jsx)(d.f,{value:u,disabled:b,onChange:e=>{h(e.target.value)},required:!0})]}),(0,s.jsxs)("label",{className:"check",children:[(0,s.jsx)("input",{type:"checkbox",disabled:b,checked:p,onChange:e=>{f(e.target.checked)}}),"Enabled for new work"]}),(0,s.jsx)("p",{className:"small mt-2",children:"Actions execute serially in this project’s persistent working folder."}),(0,s.jsx)(c.f,{className:"mt-5",type:"submit",disabled:b||!u.trim(),children:b?"Saving…":"Save project"})]}),v?(0,s.jsx)("p",{className:"error mt-4",role:"alert",children:v}):void 0,N?(0,s.jsx)("p",{className:"notice mt-4",role:"status",children:N}):void 0]}),r?(0,s.jsxs)("section",{className:"panel",children:[(0,s.jsx)("h2",{children:"Delete project"}),(0,s.jsx)("p",{children:"Delete this project and its saved actions. Projects with retained run history cannot be deleted."}),(0,s.jsx)(c.f,{className:"mt-4",variant:"outline",disabled:b,onClick:()=>{S()},children:"Delete project"})]}):void 0]})}function R({onCancel:e}){let{setSelected:t,setDirty:r,refresh:o}=(0,x.useWorkspace)(),u=(0,a.useRouter)(),[h,m]=(0,n.useState)(""),[p,f]=(0,n.useState)(!1),[b,g]=(0,n.useState)("");(0,j.f)(""!==h.trim(),r);let v=async()=>{f(!0),g("");try{let e=await i.V.projects.create.mutate({name:h.trim()});t(e.id),await o(),r(!1),u.push(`/projects/?project=${encodeURIComponent(e.id)}`)}catch(e){g((0,l.f)(e))}finally{f(!1)}};return(0,s.jsxs)("section",{className:"panel",children:[(0,s.jsx)("h2",{children:"Create a project"}),(0,s.jsx)("p",{className:"small mb-5",children:"Give your project a name, configure its runner and data access, then connect your agent over MCP."}),(0,s.jsxs)("form",{className:"max-w-2xl",onSubmit:e=>{e.preventDefault(),v()},children:[(0,s.jsxs)("label",{children:["Project name",(0,s.jsx)(d.f,{autoFocus:!0,required:!0,value:h,disabled:p,placeholder:"e.g. Operations",onChange:e=>{m(e.target.value)}})]}),(0,s.jsxs)("div",{className:"row",children:[(0,s.jsx)(c.f,{type:"submit",disabled:p||!h.trim(),children:p?"Creating…":"Create project"}),(0,s.jsx)(c.f,{type:"button",variant:"outline",disabled:p,onClick:e,children:"Cancel"})]})]}),b?(0,s.jsx)("p",{role:"alert",className:"error mt-4",children:b}):void 0]})}e.s(["default",0,function(){let{projects:e,selected:n,setDirty:i,refresh:l,navigateTo:d}=(0,x.useWorkspace)(),o=(0,a.useSearchParams)(),u=e.find(e=>e.id===n);if("1"===o.get("new"))return(0,s.jsx)(R,{onCancel:()=>{d(u?`/projects/?project=${encodeURIComponent(u.id)}`:"/projects/")}});if(u){let e=["access","runner","settings"].find(e=>e===o.get("tab"))??"overview";return(0,s.jsx)(y,{project:u,tab:e,refresh:l,onDirtyChange:i},u.id)}return(0,s.jsxs)("section",{className:"empty",children:[(0,s.jsx)(t.f,{className:"mx-auto",size:32}),(0,s.jsx)("h2",{className:"!mt-4",children:"Create your first project"}),(0,s.jsx)("p",{children:"A project gives your MCP agent a place to build actions, run work and access the data you choose."}),(0,s.jsx)(c.f,{asChild:!0,className:"mt-5",children:(0,s.jsxs)(f.f,{href:"/projects/?new=1",children:[(0,s.jsx)(r.f,{size:16}),"Create project"]})})]})}],40067)},1101,75775,e=>{"use strict";var s=e.i(18050),a=e.i(56420);let t={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};t.node;let r=(0,a.f)(t);e.s(["f",0,r],75775);var n=e.i(52330),i=e.i(75016);e.s(["f",0,function({action:e}){let a=e.description.trim(),t=new URLSearchParams({project:e.project,action:e.id}).toString();return(0,s.jsxs)("article",{className:"flex min-w-0 flex-col gap-4 rounded-xl border border-slate-200 bg-white p-5",children:[(0,s.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,s.jsx)(n.f,{size:20,className:"shrink-0 text-indigo-600","aria-hidden":"true"}),(0,s.jsx)("span",{className:e.enabled?"rounded-full bg-emerald-50 px-2.5 py-1 text-xs font-medium text-emerald-700":"rounded-full bg-slate-100 px-2.5 py-1 text-xs font-medium text-slate-600",children:e.enabled?"Enabled":"Disabled"})]}),(0,s.jsxs)("div",{className:"min-w-0 flex-1 space-y-2",children:[(0,s.jsx)("h3",{className:"text-base font-semibold",children:(0,s.jsxs)(i.f,{href:`/actions/?${t}`,className:"flex items-start justify-between gap-3 hover:underline",children:[(0,s.jsx)("span",{className:"break-words",children:e.name}),(0,s.jsx)(r,{size:17,className:"mt-0.5 shrink-0","aria-hidden":"true"})]})}),(0,s.jsx)("p",{className:"text-sm leading-relaxed",children:a.length>0?a:"Open this action to review its code, inputs and saved versions."})]}),(0,s.jsxs)("nav",{className:"flex flex-wrap gap-x-4 gap-y-2 border-t border-slate-100 pt-3 text-sm","aria-label":`${e.name} related records`,children:[(0,s.jsx)(i.f,{href:`/runs/?${t}`,className:"hover:underline",children:"Runs"}),(0,s.jsx)(i.f,{href:`/schedules/?${t}`,className:"hover:underline",children:"Schedules"}),(0,s.jsx)(i.f,{href:`/webhooks/?${t}`,className:"hover:underline",children:"Webhooks"})]})]})}],1101)},59037,e=>{"use strict";var s=e.i(71645);e.s(["f",0,function(e,a){(0,s.useEffect)(()=>{a(e);let s=e=>{e.preventDefault()};return e&&addEventListener("beforeunload",s),()=>{removeEventListener("beforeunload",s),a(!1)}},[e,a])}])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,18566,(e,i,t)=>{i.exports=e.r(76562)},95813,e=>{"use strict";e.s(["f",0,function(e,i="The request failed. Please try again."){return e instanceof Error?e.message:i}])},18707,e=>{"use strict";var i=e.i(18050),t=e.i(19455),n=e.i(71645),s=e.i(18566),a=e.i(73656),r=e.i(95813);function c(){let e=(0,s.useSearchParams)().get("token")??"",c=(0,s.useRouter)(),[o,l]=(0,n.useState)("Sign in with the invited email address before accepting.");return(0,i.jsx)("main",{children:(0,i.jsxs)("section",{className:"panel",children:[(0,i.jsx)("h1",{children:"Join this workspace"}),(0,i.jsx)("p",{role:"status",children:o}),(0,i.jsxs)("div",{className:"row",children:[(0,i.jsx)("a",{className:"button",href:`/accounts/login/?next=${encodeURIComponent(`/workspaces/invite/?token=${e}`)}`,children:"Sign in"}),(0,i.jsx)(t.f,{disabled:!e,onClick:()=>{(async()=>{try{await (0,a.m)(),await a.V.workspace.acceptInvitation.mutate({token:e}),c.push("/")}catch(e){l((0,r.f)(e))}})()},children:"Accept invitation"})]})]})})}e.s(["default",0,function(){return(0,i.jsx)(n.Suspense,{fallback:(0,i.jsx)("p",{children:"Loading invitation…"}),children:(0,i.jsx)(c,{})})}])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,68877,e=>{"use strict";var s=e.i(56420);let a={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};a.node;let i=(0,s.f)(a);e.s(["f",0,i],68877)},51757,e=>{"use strict";var s=e.i(56420);let a={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};a.node;let i=(0,s.f)(a);e.s(["f",0,i],51757)},45320,e=>{"use strict";var s=e.i(18050),a=e.i(94591),i=e.i(75016),l=e.i(18879),n=e.i(68877),r=e.i(51757),t=e.i(71645),c=e.i(73656),o=e.i(95813),d=e.i(93479),h=e.i(19455);let u=[{label:"Projects and persistent execution",view:"work"},{label:"External clients and saved actions",view:"work"},{label:"Versioned TypeScript actions",view:"actions"},{label:"Runs, approvals and artifacts",view:"runs"},{label:"Scheduled workflows",view:"schedules"},{label:"Webhook triggers and delivery health",view:"webhooks"},{label:"Custom plugins and credentials",view:"plugins"},{label:"MCP and API clients with local activity",view:"connections"},{label:"Documents and memory",view:"documents"},{label:"Workspace database tables",view:"tables"},{label:"Workspace audit log (owners and admins)",view:"audit"}];function m({workspace:e,role:p,navigate:x,refreshWorkspace:j}){let[v,f]=(0,t.useState)(!1),[w,b]=(0,t.useState)(""),[k,g]=(0,t.useState)("");return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("section",{className:"panel",children:[(0,s.jsx)("h2",{children:"Workspace administration"}),(0,s.jsx)("p",{className:"small",children:"Manage access, connections and the tools your projects use."}),(0,s.jsx)("nav",{className:"settings-navigation","aria-label":"Workspace settings",children:a.i.map(e=>(0,s.jsxs)(i.f,{className:"settings-link",href:e.href,children:[(0,s.jsx)(e.icon,{size:19}),(0,s.jsx)("span",{children:e.label}),(0,s.jsx)(n.f,{size:15})]},e.id))})]}),(0,s.jsxs)("section",{className:"panel",children:[(0,s.jsx)("h2",{children:"Workspace settings"}),(0,s.jsxs)("div",{className:"resource-row",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("strong",{children:e}),(0,s.jsxs)("small",{children:["Your role: ",p]})]}),(0,s.jsx)(h.f,{variant:"outline",onClick:()=>{x("members")},children:"Manage people"})]}),"owner"===p||"admin"===p?(0,s.jsxs)("form",{className:"mt-4",onSubmit:e=>{e.preventDefault();let s=new FormData(e.currentTarget),a=(0,l.f)(s,"workspace-name");f(!0),b(""),g(""),(async()=>{try{await c.V.workspace.update.mutate({name:a}),await j(),g("Workspace name saved.")}catch(e){b((0,o.f)(e))}finally{f(!1)}})()},children:[(0,s.jsxs)("label",{children:["Workspace name",(0,s.jsx)(d.f,{name:"workspace-name",defaultValue:e,required:!0,disabled:v},e)]}),(0,s.jsx)(h.f,{type:"submit",disabled:v,children:"Save workspace name"})]}):void 0,w?(0,s.jsx)("p",{className:"error",role:"alert",children:w}):void 0,k?(0,s.jsx)("p",{className:"notice",role:"status",children:k}):void 0,(0,s.jsx)("p",{className:"small",children:"Manage your email address, password and two-factor authentication."}),(0,s.jsx)(h.f,{asChild:!0,variant:"link",children:(0,s.jsxs)("a",{href:(0,c.S)("/accounts/email/"),children:["Account settings ",(0,s.jsx)(n.f,{size:13})]})})]}),(0,s.jsxs)("section",{className:"panel",children:[(0,s.jsx)("h2",{children:"Available in this installation"}),u.map(e=>(0,s.jsxs)("div",{className:"resource-row",children:[(0,s.jsx)(r.f,{size:17}),(0,s.jsx)("strong",{children:e.label}),(0,s.jsxs)(h.f,{variant:"ghost",size:"sm",onClick:()=>{x(e.view)},children:["Open ",(0,s.jsx)(n.f,{size:13})]})]},e.label))]})]})}var p=e.i(94757);e.s(["default",0,function(){let{workspace:e,role:a,goTo:i,refresh:l}=(0,p.useWorkspace)();return(0,s.jsx)(m,{workspace:e,role:a,navigate:i,refreshWorkspace:l})}],45320)},18879,e=>{"use strict";e.s(["f",0,function(e,s){let a=e.get(s);return"string"==typeof a?a:""}])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,68877,e=>{"use strict";var n=e.i(56420);let s={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};s.node;let i=(0,n.f)(s);e.s(["f",0,i],68877)},51757,e=>{"use strict";var n=e.i(56420);let s={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};s.node;let i=(0,n.f)(s);e.s(["f",0,i],51757)},13581,29487,e=>{"use strict";var n=e.i(71645),s=e.i(95813);e.s(["f",0,function(e,i=0){let[t,r]=(0,n.useState)(),[a,l]=(0,n.useState)(""),[c,o]=(0,n.useState)(!0),d=(0,n.useRef)(void 0),u=(0,n.useRef)(!1),h=(0,n.useCallback)(async()=>{d.current?.abort();let n=new AbortController;d.current=n;try{let s=await e(n.signal);if(n.signal.aborted||!u.current)return;r(s),l("")}catch(e){!n.signal.aborted&&u.current&&l((0,s.f)(e))}finally{!n.signal.aborted&&u.current&&o(!1)}},[e]);return(0,n.useEffect)(()=>{u.current=!0,queueMicrotask(()=>{u.current&&h()});let e=i>0?setInterval(()=>{h()},i):void 0;return()=>{u.current=!1,d.current?.abort(),clearInterval(e)}},[h,i]),{data:t,error:a,isLoading:c,refresh:h}}],13581);var i=e.i(18050),t=e.i(19455);e.s(["f",0,function({isLoading:e,error:n,refresh:s}){return(0,i.jsxs)(i.Fragment,{children:[e?(0,i.jsx)("p",{role:"status",children:"Loading workspace data…"}):void 0,n?(0,i.jsxs)("div",{className:"error",role:"alert",children:[(0,i.jsx)("p",{children:n}),(0,i.jsx)(t.f,{variant:"outline",onClick:()=>{s()},children:"Try again"})]}):void 0]})}],29487)},295,e=>{"use strict";var n=e.i(18050),s=e.i(79432),i=e.i(70812),t=e.i(26067),r=e.i(67965),a=e.i(52330),l=e.i(68877),c=e.i(51757),o=e.i(71645),d=e.i(13581),u=e.i(15080),h=e.i(94757),p=e.i(19455),x=e.i(29487),j=e.i(10505);function f({label:e,value:s,hint:i,onClick:t,hasWarning:r=!1}){return(0,n.jsxs)("button",{type:"button",onClick:t,className:`signal-card ${r?"has-warning":""}`,children:[(0,n.jsx)("span",{className:"eyebrow",children:e}),(0,n.jsx)("strong",{children:s}),(0,n.jsx)("span",{children:i})]})}function g({icon:e,label:s,description:i,onClick:t}){return(0,n.jsxs)("button",{type:"button",className:"quick-action",onClick:t,children:[(0,n.jsx)(e,{size:19,"aria-hidden":"true"}),(0,n.jsx)("strong",{children:s}),(0,n.jsx)("span",{children:i})]})}async function v(e,n){let[s,i,t,r,a,l]=await Promise.all([(0,u.f)(e),(0,u.q)(e),(0,u.t)(e),(0,u.i)(e),n?(0,u.h)(e):Promise.resolve([]),(0,u.p)(e)]);return{runs:s,projects:i,actions:t,approvals:r,tokens:a,plugins:l}}function m({navigate:e,openRun:u}){let{canManage:k}=(0,h.useWorkspace)(),b=(0,o.useCallback)(e=>v(e,k),[k]),y=(0,d.f)(b,1e4),w=y.data,C=w?.approvals.filter(e=>"pending"===e.status)??[],N=w?.runs.filter(e=>j.B.includes(e.status))??[],z=w?.runs.find(e=>"failed"===e.status||"interrupted"===e.status),R=[{label:"Create a project",done:(w?.projects.length??0)>0,view:"work"},{label:"Connect an external client",done:(w?.tokens.length??0)>0,view:"connections"},{label:"Create your first action",done:(w?.actions.length??0)>0,view:"actions"},{label:"Complete a run",done:w?.runs.some(e=>"succeeded"===e.status)??!1,view:"runs"}];return(0,n.jsxs)("div",{className:"overview",children:[(0,n.jsx)(x.f,{...y}),w?(0,n.jsxs)(n.Fragment,{children:[R.some(e=>!e.done)?(0,n.jsxs)("section",{className:"panel first-run",children:[(0,n.jsxs)("div",{className:"panel-title",children:[(0,n.jsx)("h2",{children:"Get your workspace running"}),(0,n.jsxs)("span",{className:"badge",children:[R.filter(e=>e.done).length," of ",R.length," ","complete"]})]}),(0,n.jsx)("p",{className:"small",children:"Connect your tools, publish an action and inspect its first result."}),(0,n.jsx)("div",{className:"onboarding-steps",children:R.map(s=>(0,n.jsxs)("button",{className:s.done?"is-complete":"",onClick:()=>{e(s.view)},children:[(0,n.jsx)(c.f,{size:17}),s.label,(0,n.jsx)(l.f,{size:14})]},s.label))})]}):void 0,(0,n.jsxs)("section",{className:"signal-grid","aria-label":"Workspace signals",children:[(0,n.jsx)(f,{label:"Actions",value:String(w.actions.length),hint:"Reusable workflows",onClick:()=>{e("actions")}}),(0,n.jsx)(f,{label:"Pending approvals",value:String(C.length),hint:"Decisions waiting for you",hasWarning:C.length>0,onClick:()=>{e("approvals")}}),(0,n.jsx)(f,{label:"Runs in progress",value:String(N.length),hint:`${String(w.runs.length)} total runs`,onClick:()=>{e("runs")}}),(0,n.jsx)(f,{label:"Projects",value:String(w.projects.length),hint:`${String(w.plugins.length)} installed plugins`,onClick:()=>{e("work")}})]}),C.length>0?(0,n.jsxs)("section",{className:"next-action",children:[(0,n.jsx)(i.f,{size:20}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("h2",{children:[C.length," approval",1===C.length?"":"s"," ","waiting"]}),(0,n.jsx)("p",{children:"Review the requested work before it proceeds."})]}),(0,n.jsx)(p.f,{onClick:()=>{e("approvals")},children:"Review approvals"})]}):void 0,z&&0===C.length?(0,n.jsxs)("section",{className:"next-action",children:[(0,n.jsx)(s.f,{size:20}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{children:"Review the latest failed run"}),(0,n.jsx)("p",{children:"Inspect the result and trace before deciding whether to retry."})]}),(0,n.jsx)(p.f,{onClick:()=>{u(z.id)},children:"Open run"})]}):void 0,N.length>0?(0,n.jsxs)("section",{className:"panel running-region","aria-label":"Running now",children:[(0,n.jsxs)("h2",{children:[(0,n.jsx)(s.f,{size:17})," Running now"]}),N.map(e=>(0,n.jsxs)("div",{className:"resource-row",children:[(0,n.jsx)("span",{children:(0,j.N)(e,w.projects)}),(0,n.jsx)(j.k,{status:e.status}),(0,n.jsx)(p.f,{variant:"outline",size:"sm",onClick:()=>{u(e.id)},children:"View run"})]},e.id))]}):void 0,(0,n.jsxs)("section",{className:"panel",children:[(0,n.jsxs)("div",{className:"panel-title",children:[(0,n.jsx)("h2",{children:"Recent runs"}),(0,n.jsxs)(p.f,{variant:"ghost",size:"sm",onClick:()=>{e("runs")},children:["All runs ",(0,n.jsx)(l.f,{size:14})]})]}),0===w.runs.length?(0,n.jsxs)("div",{className:"resource-empty",children:[(0,n.jsx)(c.f,{size:28}),(0,n.jsx)("h3",{children:"Ready for your first run"}),(0,n.jsx)("p",{children:"Connect an external client or create an action to get started."}),(0,n.jsx)(p.f,{onClick:()=>{e("connections")},children:"Connect a client"})]}):w.runs.slice(0,5).map(e=>(0,n.jsxs)("div",{className:"resource-row",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("strong",{children:(0,j.N)(e,w.projects)}),(0,n.jsx)("small",{children:new Date(e.created_at).toLocaleString()})]}),(0,n.jsx)(j.k,{status:e.status}),(0,n.jsx)(p.f,{variant:"ghost",size:"sm",onClick:()=>{u(e.id)},children:"Open"})]},e.id))]}),(0,n.jsxs)("section",{className:"quick-grid","aria-label":"Quick actions",children:[(0,n.jsx)(g,{icon:a.f,label:"Build an action",description:"Write, version and run a workflow.",onClick:()=>{e("actions")}}),(0,n.jsx)(g,{icon:t.f,label:"Configure a project",description:"Set up its runner, integrations and data access.",onClick:()=>{e("work")}}),(0,n.jsx)(g,{icon:r.f,label:"Manage connections",description:"Connect clients and secure credentials.",onClick:()=>{e("connections")}})]})]}):void 0]})}e.s(["default",0,function(){let{goTo:e,openRun:s}=(0,h.useWorkspace)();return(0,n.jsx)(m,{navigate:e,openRun:s})}],295)},10505,79432,e=>{"use strict";var n=e.i(18050),s=e.i(56420);let i={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]};i.node;let t=(0,s.f)(i);e.s(["f",0,t],79432);var r=e.i(51757);let a={name:"clock-3",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]]};a.node;let l=(0,s.f)(a),c={name:"shield-exclamation-point",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],aliases:["shield-alert"]};c.node;let o=(0,s.f)(c),d={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-circle"]};d.node;let u=(0,s.f)(d);function h(e){return({chat:"Chat task",code:"Code execution",session:"Execution session",action:"Action run",validate:"Code validation",test:"Action tests"})[e]??e.replaceAll("_"," ")}e.s(["k",0,function({status:e}){let s={succeeded:r.f,waiting_approval:o,running:t,queued:l,failed:u,cancelled:u,interrupted:u}[e]??l;return(0,n.jsxs)("span",{className:`run-status status-${e}`,children:[(0,n.jsx)(s,{size:13,"aria-hidden":"true"}),e.replaceAll("_"," ")]})},"B",0,["queued","running","waiting_approval"],"A",0,function(e){return void 0===e?"":"string"==typeof e?e:JSON.stringify(e,void 0,2)},"N",0,function(e,n){let s=n.find(n=>n.id===e.project)?.name??"Project";return"chat"===e.operation?`${s} \xb7 ${(function(e,n){if(null!==e&&"object"==typeof e&&Object.hasOwn(e,n)){let s=Reflect.get(e,n);if("string"==typeof s)return s}return""})(e.inputs,"message").slice(0,70)}`:`${s} \xb7 ${h(e.operation)}`},"T",0,h],10505)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,91918,20783,7670,e=>{"use strict";var r=e.i(71645),o=Object.defineProperty,t=(e,r)=>o(e,"name",{value:r,configurable:!0});function l(e,r){if("function"==typeof e)return e(r);null!=e&&(e.current=r)}function n(...e){return r=>{let o=!1,t=e.map(e=>{let t=l(e,r);return o||"function"!=typeof t||(o=!0),t});if(o)return()=>{for(let r=0;r<t.length;r++){let o=t[r];"function"==typeof o?o():l(e[r],null)}}}}function s(...e){return r.useCallback(n(...e),e)}t(l,"setRef"),t(n,"composeRefs"),t(s,"useComposedRefs"),e.s(["f",0,s],20783);var a=Object.defineProperty,i=(e,r)=>a(e,"name",{value:r,configurable:!0});function c(e){let o=r.forwardRef((o,t)=>{let{children:l,...n}=o,a=null,i=!1,c=[];l=v(l),r.Children.forEach(l,e=>{if(f(e)){i=!0;let r="child"in e.props?e.props.child:e.props.children;for(;h(r)&&"function"==typeof z;)r=z(r._payload);a=p(e,r),c.push(a?.props?.children)}else c.push(e)}),a?a=r.cloneElement(a,void 0,c):!i&&1===r.Children.count(l)&&r.isValidElement(l)&&(a=l);let d=a?u(a):void 0,m=s(t,d);if(!a){if(l||0===l)throw Error(i?w(e):x(e));return l}let g=b(n,a.props??{});return a.type!==r.Fragment&&(g.ref=t?m:d),r.cloneElement(a,g)});return o.displayName=`${e}.Slot`,o}i(c,"createSlot");var d=c("Slot"),m=Symbol.for("radix.slottable");i(function(e){let r=i(e=>"child"in e?e.children(e.child):e.children,"Slottable");return r.displayName=`${e}.Slottable`,r.__radixId=m,r},"createSlottable");var p=i((e,o)=>"child"in e.props?r.isValidElement(o)?r.cloneElement(o,void 0,e.props.children(o.props.children)):null:r.isValidElement(o)?o:null,"getSlottableElementFromSlottable");function b(e,r){let o={...r};for(let t in r){let l=e[t],n=r[t];/^on[A-Z]/.test(t)?l&&n?o[t]=(...e)=>{let r=n(...e);return l(...e),r}:l&&(o[t]=l):"style"===t?o[t]={...l,...n}:"className"===t?o[t]=[l,n].filter(Boolean).join(" "):"aria-describedby"===t&&(o[t]=k(n,l))}return{...e,...o}}function u(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}function f(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===m}i(b,"mergeProps"),i(u,"getElementRef"),i(f,"isSlottable");var g=Symbol.for("react.lazy");function h(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===g&&"_payload"in e&&y(e._payload)}function y(e){return"object"==typeof e&&null!==e&&"then"in e}function v(e){let r=e;for(;h(r)&&"function"==typeof z;)r=z(r._payload);return r}function k(...e){let r=new Set;for(let o of e)if("string"==typeof o)for(let e of String(o).trim().split(/\s+/))e&&r.add(e);return r.size>0?Array.from(r).join(" "):void 0}i(h,"isLazyComponent"),i(y,"isPromiseLike"),i(v,"useUnwrappedLazy"),i(k,"concatAriaDescribedby");var x=i(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),w=i(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),z=r[" use ".trim().toString()];e.s(["M",0,d,"B",0,c],91918),e.s(["f",0,function(){for(var e,r,o=0,t="",l=arguments.length;o<l;o++)(e=arguments[o])&&(r=function e(r){var o,t,l="";if("string"==typeof r||"number"==typeof r)l+=r;else if("object"==typeof r)if(Array.isArray(r)){var n=r.length;for(o=0;o<n;o++)r[o]&&(t=e(r[o]))&&(l&&(l+=" "),l+=t)}else for(t in r)r[t]&&(l&&(l+=" "),l+=t);return l}(e))&&(t&&(t+=" "),t+=r);return t}],7670)},25913,e=>{"use strict";var r=e.i(7670);let o=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,t=r.f;e.s(["f",0,(e,r)=>l=>{var n;if((null==r?void 0:r.variants)==null)return t(e,null==l?void 0:l.class,null==l?void 0:l.className);let{variants:s,defaultVariants:a}=r,i=Object.keys(s).map(e=>{let r=null==l?void 0:l[e],t=null==a?void 0:a[e];if(null===r)return null;let n=o(r)||o(t);return s[e][n]}),c=l&&Object.entries(l).reduce((e,r)=>{let[o,t]=r;return void 0===t||(e[o]=t),e},{});return t(e,i,null==r||null==(n=r.compoundVariants)?void 0:n.reduce((e,r)=>{let{class:o,className:t,...l}=r;return Object.entries(l).every(e=>{let[r,o]=e;return Array.isArray(o)?o.includes({...a,...c}[r]):({...a,...c})[r]===o})?[...e,o,t]:e},[]),null==l?void 0:l.class,null==l?void 0:l.className)}])},19455,e=>{"use strict";var r=e.i(18050),o=e.i(91918),t=e.i(25913),l=e.i(71645),n=e.i(39689);let s=(0,t.f)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),a=l.forwardRef(({className:e,variant:t,size:l,asChild:a=!1,...i},c)=>{let d=a?o.M:"button";return(0,r.jsx)(d,{"data-slot":"button",className:(0,n.f)(s({variant:t,size:l,className:e})),ref:c,...i})});a.displayName="Button",e.s(["f",0,a])},39689,e=>{"use strict";let r,o,t,l,n;var s,a=e.i(7670);let i=(e=new Map,r=null,o)=>({nextPart:e,validators:r,classGroupId:o}),c=[],d=(e,r,o)=>{if(0==e.length-r)return o.classGroupId;let t=e[r],l=o.nextPart.get(t);if(l){let o=d(e,r+1,l);if(o)return o}let n=o.validators;if(null===n)return;let s=0===r?e.join("-"):e.slice(r).join("-"),a=n.length;for(let e=0;e<a;e++){let r=n[e];if(r.validator(s))return r.classGroupId}},m=(e,r)=>{let o=i();for(let t in e)p(e[t],o,t,r);return o},p=(e,r,o,t)=>{let l=e.length;for(let n=0;n<l;n++)b(e[n],r,o,t)},b=(e,r,o,t)=>{"string"==typeof e?u(e,r,o):"function"==typeof e?f(e,r,o,t):g(e,r,o,t)},u=(e,r,o)=>{(""===e?r:h(r,e)).classGroupId=o},f=(e,r,o,t)=>{y(e)?p(e(t),r,o,t):(null===r.validators&&(r.validators=[]),r.validators.push({classGroupId:o,validator:e}))},g=(e,r,o,t)=>{let l=Object.entries(e),n=l.length;for(let e=0;e<n;e++){let[n,s]=l[e];p(s,h(r,n),o,t)}},h=(e,r)=>{let o=e,t=r.split("-"),l=t.length;for(let e=0;e<l;e++){let r=t[e],l=o.nextPart.get(r);l||(l=i(),o.nextPart.set(r,l)),o=l}return o},y=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,v=[],k=(e,r,o,t,l)=>({modifiers:e,hasImportantModifier:r,baseClassName:o,maybePostfixModifierPosition:t,isExternal:l}),x=/\s+/,w=e=>{let r;if("string"==typeof e)return e;let o="";for(let t=0;t<e.length;t++)e[t]&&(r=w(e[t]))&&(o&&(o+=" "),o+=r);return o},z=[],j=e=>{let r=r=>r[e]||z;return r.isThemeGetter=!0,r.themeKey=e,r},S=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,O=/^\((?:(\w[\w-]*):)?(.+)\)$/i,C=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,E=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,N=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,$=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,G=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,R=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,W=e=>C.test(e),_=e=>!!e&&!Number.isNaN(Number(e)),I=e=>!!e&&Number.isInteger(Number(e)),P=e=>e.endsWith("%")&&_(e.slice(0,-1)),A=e=>E.test(e),M=()=>!0,T=e=>N.test(e)&&!$.test(e),L=()=>!1,V=e=>G.test(e),B=e=>R.test(e),D=e=>!q(e)&&!ee(e),K=e=>e.startsWith("@container")&&("/"===e[10]&&void 0!==e[11]||"s"===e[11]&&void 0!==e[16]&&e.startsWith("-size/",10)||"n"===e[11]&&void 0!==e[18]&&e.startsWith("-normal/",10)),U=e=>ei(e,ep,L),q=e=>S.test(e),F=e=>ei(e,eb,T),Z=e=>ei(e,eu,_),H=e=>ei(e,eg,M),J=e=>ei(e,ef,L),Q=e=>ei(e,ed,L),X=e=>ei(e,em,B),Y=e=>ei(e,eh,V),ee=e=>O.test(e),er=e=>ec(e,eb),eo=e=>ec(e,ef),et=e=>ec(e,ed),el=e=>ec(e,ep),en=e=>ec(e,em),es=e=>ec(e,eh,!0),ea=e=>ec(e,eg,!0),ei=(e,r,o)=>{let t=S.exec(e);return!!t&&(t[1]?r(t[1]):o(t[2]))},ec=(e,r,o=!1)=>{let t=O.exec(e);return!!t&&(t[1]?r(t[1]):o)},ed=e=>"position"===e||"percentage"===e,em=e=>"image"===e||"url"===e,ep=e=>"length"===e||"size"===e||"bg-size"===e,eb=e=>"length"===e,eu=e=>"number"===e,ef=e=>"family-name"===e,eg=e=>"number"===e||"weight"===e,eh=e=>"shadow"===e,ey=(s=()=>{let e=j("color"),r=j("font"),o=j("text"),t=j("font-weight"),l=j("tracking"),n=j("leading"),s=j("breakpoint"),a=j("container"),i=j("spacing"),c=j("radius"),d=j("shadow"),m=j("inset-shadow"),p=j("text-shadow"),b=j("drop-shadow"),u=j("blur"),f=j("perspective"),g=j("aspect"),h=j("ease"),y=j("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],x=()=>[...k(),ee,q],w=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto","contain","none"],S=()=>[ee,q,i],O=()=>[W,"full","auto",...S()],C=()=>[I,"none","subgrid",ee,q],E=()=>["auto",{span:["full",I,ee,q]},I,ee,q],N=()=>[I,"auto",ee,q],$=()=>["auto","min","max","fr",ee,q],G=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],R=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...S()],L=()=>[W,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],V=()=>[a,W,"screen","full","dvw","lvw","svw","min","max","fit",...S()],B=()=>[W,"screen","full","lh","dvh","lvh","svh","min","max","fit",...S()],ei=()=>[e,ee,q],ec=()=>[...k(),et,Q,{position:[ee,q]}],ed=()=>["no-repeat",{repeat:["","x","y","space","round"]}],em=()=>["auto","cover","contain",el,U,{size:[ee,q]}],ep=()=>[P,er,F],eb=()=>["","none","full",c,ee,q],eu=()=>["",_,er,F],ef=()=>["solid","dashed","dotted","double"],eg=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],eh=()=>[_,P,et,Q],ey=()=>["","none",u,ee,q],ev=()=>["none",_,ee,q],ek=()=>["none",_,ee,q],ex=()=>[_,ee,q],ew=()=>[W,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[A],breakpoint:[A],color:[M],container:[A],"drop-shadow":[A],ease:["in","out","in-out"],font:[D],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[A],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[A],shadow:[A],spacing:["px",_],text:[A],"text-shadow":[A],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",W,q,ee,g]}],container:["container"],"container-type":[{"@container":["","normal","size",ee,q]}],"container-named":[K],columns:[{columns:[_,"auto",q,ee,a]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:x()}],overflow:[{overflow:w()}],"overflow-x":[{"overflow-x":w()}],"overflow-y":[{"overflow-y":w()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:O()}],"inset-x":[{"inset-x":O()}],"inset-y":[{"inset-y":O()}],start:[{"inset-s":O(),start:O()}],end:[{"inset-e":O(),end:O()}],"inset-bs":[{"inset-bs":O()}],"inset-be":[{"inset-be":O()}],top:[{top:O()}],right:[{right:O()}],bottom:[{bottom:O()}],left:[{left:O()}],visibility:["visible","invisible","collapse"],z:[{z:[I,"auto",ee,q]}],basis:[{basis:[W,"full","auto",a,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_,W,"auto","initial","none",q]}],grow:[{grow:["",_,ee,q]}],shrink:[{shrink:["",_,ee,q]}],order:[{order:[I,"first","last","none",ee,q]}],"grid-cols":[{"grid-cols":C()}],"col-start-end":[{col:E()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":C()}],"row-start-end":[{row:E()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":$()}],"auto-rows":[{"auto-rows":$()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...G(),"normal"]}],"justify-items":[{"justify-items":[...R(),"normal"]}],"justify-self":[{"justify-self":["auto",...R()]}],"align-content":[{content:["normal",...G()]}],"align-items":[{items:[...R(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...R(),{baseline:["","last"]}]}],"place-content":[{"place-content":G()}],"place-items":[{"place-items":[...R(),"baseline"]}],"place-self":[{"place-self":["auto",...R()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pbs:[{pbs:S()}],pbe:[{pbe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mbs:[{mbs:T()}],mbe:[{mbe:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:L()}],"inline-size":[{inline:["auto",...V()]}],"min-inline-size":[{"min-inline":["auto",...V()]}],"max-inline-size":[{"max-inline":["none",...V()]}],"block-size":[{block:["auto",...B()]}],"min-block-size":[{"min-block":["auto",...B()]}],"max-block-size":[{"max-block":["none",...B()]}],w:[{w:[a,"screen",...L()]}],"min-w":[{"min-w":[a,"screen","none",...L()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...L()]}],h:[{h:["screen","lh",...L()]}],"min-h":[{"min-h":["screen","lh","none",...L()]}],"max-h":[{"max-h":["screen","lh","none",...L()]}],"font-size":[{text:["base",o,er,F]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,ea,H]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",P,q]}],"font-family":[{font:[eo,J,r]}],"font-features":[{"font-features":[q]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[l,ee,q]}],"line-clamp":[{"line-clamp":[_,"none",ee,Z]}],leading:[{leading:["none",n,...S()]}],"list-image":[{"list-image":["none",ee,q]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ee,q]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ei()}],"text-color":[{text:ei()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ef(),"wavy"]}],"text-decoration-thickness":[{decoration:[_,"from-font","auto",ee,F]}],"text-decoration-color":[{decoration:ei()}],"underline-offset":[{"underline-offset":[_,"auto",ee,q]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"tab-size":[{tab:[I,ee,q]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ee,q]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ee,q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ec()}],"bg-repeat":[{bg:ed()}],"bg-size":[{bg:em()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},I,ee,q],radial:["",ee,q],conic:["",I,ee,q]},en,X]}],"bg-color":[{bg:ei()}],"gradient-from-pos":[{from:ep()}],"gradient-via-pos":[{via:ep()}],"gradient-to-pos":[{to:ep()}],"gradient-from":[{from:ei()}],"gradient-via":[{via:ei()}],"gradient-to":[{to:ei()}],rounded:[{rounded:eb()}],"rounded-s":[{"rounded-s":eb()}],"rounded-e":[{"rounded-e":eb()}],"rounded-t":[{"rounded-t":eb()}],"rounded-r":[{"rounded-r":eb()}],"rounded-b":[{"rounded-b":eb()}],"rounded-l":[{"rounded-l":eb()}],"rounded-ss":[{"rounded-ss":eb()}],"rounded-se":[{"rounded-se":eb()}],"rounded-ee":[{"rounded-ee":eb()}],"rounded-es":[{"rounded-es":eb()}],"rounded-tl":[{"rounded-tl":eb()}],"rounded-tr":[{"rounded-tr":eb()}],"rounded-br":[{"rounded-br":eb()}],"rounded-bl":[{"rounded-bl":eb()}],"border-w":[{border:eu()}],"border-w-x":[{"border-x":eu()}],"border-w-y":[{"border-y":eu()}],"border-w-s":[{"border-s":eu()}],"border-w-e":[{"border-e":eu()}],"border-w-bs":[{"border-bs":eu()}],"border-w-be":[{"border-be":eu()}],"border-w-t":[{"border-t":eu()}],"border-w-r":[{"border-r":eu()}],"border-w-b":[{"border-b":eu()}],"border-w-l":[{"border-l":eu()}],"divide-x":[{"divide-x":eu()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":eu()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ef(),"hidden","none"]}],"divide-style":[{divide:[...ef(),"hidden","none"]}],"border-color":[{border:ei()}],"border-color-x":[{"border-x":ei()}],"border-color-y":[{"border-y":ei()}],"border-color-s":[{"border-s":ei()}],"border-color-e":[{"border-e":ei()}],"border-color-bs":[{"border-bs":ei()}],"border-color-be":[{"border-be":ei()}],"border-color-t":[{"border-t":ei()}],"border-color-r":[{"border-r":ei()}],"border-color-b":[{"border-b":ei()}],"border-color-l":[{"border-l":ei()}],"divide-color":[{divide:ei()}],"outline-style":[{outline:[...ef(),"none","hidden"]}],"outline-offset":[{"outline-offset":[_,ee,q]}],"outline-w":[{outline:["",_,er,F]}],"outline-color":[{outline:ei()}],shadow:[{shadow:["","inner","none",d,es,Y]}],"shadow-color":[{shadow:ei()}],"inset-shadow":[{"inset-shadow":["none",m,es,Y]}],"inset-shadow-color":[{"inset-shadow":ei()}],"ring-w":[{ring:eu()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ei()}],"ring-offset-w":[{"ring-offset":[_,F]}],"ring-offset-color":[{"ring-offset":ei()}],"inset-ring-w":[{"inset-ring":eu()}],"inset-ring-color":[{"inset-ring":ei()}],"text-shadow":[{"text-shadow":["none",p,es,Y]}],"text-shadow-color":[{"text-shadow":ei()}],opacity:[{opacity:[_,ee,q]}],"mix-blend":[{"mix-blend":[...eg(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":eg()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[_]}],"mask-image-linear-from-pos":[{"mask-linear-from":eh()}],"mask-image-linear-to-pos":[{"mask-linear-to":eh()}],"mask-image-linear-from-color":[{"mask-linear-from":ei()}],"mask-image-linear-to-color":[{"mask-linear-to":ei()}],"mask-image-t-from-pos":[{"mask-t-from":eh()}],"mask-image-t-to-pos":[{"mask-t-to":eh()}],"mask-image-t-from-color":[{"mask-t-from":ei()}],"mask-image-t-to-color":[{"mask-t-to":ei()}],"mask-image-r-from-pos":[{"mask-r-from":eh()}],"mask-image-r-to-pos":[{"mask-r-to":eh()}],"mask-image-r-from-color":[{"mask-r-from":ei()}],"mask-image-r-to-color":[{"mask-r-to":ei()}],"mask-image-b-from-pos":[{"mask-b-from":eh()}],"mask-image-b-to-pos":[{"mask-b-to":eh()}],"mask-image-b-from-color":[{"mask-b-from":ei()}],"mask-image-b-to-color":[{"mask-b-to":ei()}],"mask-image-l-from-pos":[{"mask-l-from":eh()}],"mask-image-l-to-pos":[{"mask-l-to":eh()}],"mask-image-l-from-color":[{"mask-l-from":ei()}],"mask-image-l-to-color":[{"mask-l-to":ei()}],"mask-image-x-from-pos":[{"mask-x-from":eh()}],"mask-image-x-to-pos":[{"mask-x-to":eh()}],"mask-image-x-from-color":[{"mask-x-from":ei()}],"mask-image-x-to-color":[{"mask-x-to":ei()}],"mask-image-y-from-pos":[{"mask-y-from":eh()}],"mask-image-y-to-pos":[{"mask-y-to":eh()}],"mask-image-y-from-color":[{"mask-y-from":ei()}],"mask-image-y-to-color":[{"mask-y-to":ei()}],"mask-image-radial":[{"mask-radial":[ee,q]}],"mask-image-radial-from-pos":[{"mask-radial-from":eh()}],"mask-image-radial-to-pos":[{"mask-radial-to":eh()}],"mask-image-radial-from-color":[{"mask-radial-from":ei()}],"mask-image-radial-to-color":[{"mask-radial-to":ei()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[_]}],"mask-image-conic-from-pos":[{"mask-conic-from":eh()}],"mask-image-conic-to-pos":[{"mask-conic-to":eh()}],"mask-image-conic-from-color":[{"mask-conic-from":ei()}],"mask-image-conic-to-color":[{"mask-conic-to":ei()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ec()}],"mask-repeat":[{mask:ed()}],"mask-size":[{mask:em()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ee,q]}],filter:[{filter:["","none",ee,q]}],blur:[{blur:ey()}],brightness:[{brightness:[_,ee,q]}],contrast:[{contrast:[_,ee,q]}],"drop-shadow":[{"drop-shadow":["","none",b,es,Y]}],"drop-shadow-color":[{"drop-shadow":ei()}],grayscale:[{grayscale:["",_,ee,q]}],"hue-rotate":[{"hue-rotate":[_,ee,q]}],invert:[{invert:["",_,ee,q]}],saturate:[{saturate:[_,ee,q]}],sepia:[{sepia:["",_,ee,q]}],"backdrop-filter":[{"backdrop-filter":["","none",ee,q]}],"backdrop-blur":[{"backdrop-blur":ey()}],"backdrop-brightness":[{"backdrop-brightness":[_,ee,q]}],"backdrop-contrast":[{"backdrop-contrast":[_,ee,q]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_,ee,q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_,ee,q]}],"backdrop-invert":[{"backdrop-invert":["",_,ee,q]}],"backdrop-opacity":[{"backdrop-opacity":[_,ee,q]}],"backdrop-saturate":[{"backdrop-saturate":[_,ee,q]}],"backdrop-sepia":[{"backdrop-sepia":["",_,ee,q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ee,q]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_,"initial",ee,q]}],ease:[{ease:["linear","initial",h,ee,q]}],delay:[{delay:[_,ee,q]}],animate:[{animate:["none",y,ee,q]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,ee,q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ev()}],"rotate-x":[{"rotate-x":ev()}],"rotate-y":[{"rotate-y":ev()}],"rotate-z":[{"rotate-z":ev()}],scale:[{scale:ek()}],"scale-x":[{"scale-x":ek()}],"scale-y":[{"scale-y":ek()}],"scale-z":[{"scale-z":ek()}],"scale-3d":["scale-3d"],skew:[{skew:ex()}],"skew-x":[{"skew-x":ex()}],"skew-y":[{"skew-y":ex()}],transform:[{transform:[ee,q,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ew()}],"translate-x":[{"translate-x":ew()}],"translate-y":[{"translate-y":ew()}],"translate-z":[{"translate-z":ew()}],"translate-none":["translate-none"],zoom:[{zoom:[I,ee,q]}],accent:[{accent:ei()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ei()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ee,q]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":ei()}],"scrollbar-track-color":[{"scrollbar-track":ei()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mbs":[{"scroll-mbs":S()}],"scroll-mbe":[{"scroll-mbe":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pbs":[{"scroll-pbs":S()}],"scroll-pbe":[{"scroll-pbe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ee,q]}],fill:[{fill:["none",...ei()]}],"stroke-w":[{stroke:[_,er,F,Z]}],stroke:[{stroke:["none",...ei()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},n=e=>{let l=o(e);if(l)return l;let n=((e,r)=>{let{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:l,sortModifiers:n,postfixLookupClassGroupIds:s}=r,a=[],i=e.trim().split(x),c="";for(let e=i.length-1;e>=0;e-=1){let r,d=i[e],{isExternal:m,modifiers:p,hasImportantModifier:b,baseClassName:u,maybePostfixModifierPosition:f}=o(d);if(m){c=d+(c.length>0?" "+c:c);continue}let g=!!f;if(g){let e=(r=t(u.substring(0,f)))&&s[r]?t(u):void 0;e&&e!==r&&(r=e,g=!1)}else r=t(u);if(!r){if(!g||!(r=t(u))){c=d+(c.length>0?" "+c:c);continue}g=!1}let h=0===p.length?"":1===p.length?p[0]:n(p).join(":"),y=b?h+"!":h,v=y+r;if(a.indexOf(v)>-1)continue;a.push(v);let k=l(r,g);for(let e=0;e<k.length;++e){let r=k[e];a.push(y+r)}c=d+(c.length>0?" "+c:c)}return c})(e,r);return t(e,n),n},l=e=>{var a;let i;return o=(r={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let r=0,o=Object.create(null),t=Object.create(null),l=(l,n)=>{o[l]=n,++r>e&&(r=0,t=o,o=Object.create(null))};return{get(e){let r=o[e];return void 0!==r?r:void 0!==(r=t[e])?(l(e,r),r):void 0},set(e,r){e in o?o[e]=r:l(e,r)}}})((a=[].reduce((e,r)=>r(e),s())).cacheSize),parseClassName:(e=>{let{prefix:r,experimentalParseClassName:o}=e,t=e=>{let r,o=[],t=0,l=0,n=0,s=e.length;for(let a=0;a<s;a++){let s=e[a];if(0===t&&0===l){if(":"===s){o.push(e.slice(n,a)),n=a+1;continue}if("/"===s){r=a;continue}}"["===s?t++:"]"===s?t--:"("===s?l++:")"===s&&l--}let a=0===o.length?e:e.slice(n),i=a,c=!1;return a.endsWith("!")?(i=a.slice(0,-1),c=!0):a.startsWith("!")&&(i=a.slice(1),c=!0),k(o,c,i,r&&r>n?r-n:void 0)};if(r){let e=r+":",o=t;t=r=>r.startsWith(e)?o(r.slice(e.length)):k(v,!1,r,void 0,!0)}if(o){let e=t;t=r=>o({className:r,parseClassName:e})}return t})(a),sortModifiers:(i=new Map,a.orderSensitiveModifiers.forEach((e,r)=>{i.set(e,1e6+r)}),e=>{let r=[],o=[];for(let t=0;t<e.length;t++){let l=e[t],n="["===l[0],s=i.has(l);n||s?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(l)):o.push(l)}return o.length>0&&(o.sort(),r.push(...o)),r}),postfixLookupClassGroupIds:(e=>{let r=Object.create(null),o=e.postfixLookupClassGroups;if(o)for(let e=0;e<o.length;e++)r[o[e]]=!0;return r})(a),...(e=>{let r=(e=>{let{theme:r,classGroups:o}=e;return m(o,r)})(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]")){var o;let r,t,l;return -1===(o=e).slice(1,-1).indexOf(":")?void 0:(t=(r=o.slice(1,-1)).indexOf(":"),(l=r.slice(0,t))?"arbitrary.."+l:void 0)}let t=e.split("-"),l=+(""===t[0]&&t.length>1);return d(t,l,r)},getConflictingClassGroupIds:(e,r)=>{if(r){let r=t[e],l=o[e];if(r){if(l){let e=Array(l.length+r.length);for(let r=0;r<l.length;r++)e[r]=l[r];for(let o=0;o<r.length;o++)e[l.length+o]=r[o];return e}return r}return l||c}return o[e]||c}}})(a)}).cache.get,t=r.cache.set,l=n,n(e)},(...e)=>l(((...e)=>{let r,o,t=0,l="";for(;t<e.length;)(r=e[t++])&&(o=w(r))&&(l&&(l+=" "),l+=o);return l})(...e)));e.s(["f",0,function(...e){return ey((0,a.f)(e))}],39689)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,43776,e=>{"use strict";var s=e.i(18050),a=e.i(18566),t=e.i(19455),i=e.i(93479),n=e.i(24687),l=e.i(67489),r=e.i(69212),c=e.i(59037),o=e.i(90350),d=e.i(31084),u=e.i(94757),h=e.i(71645),m=e.i(12102);e.i(44362);var p=e.i(42765),p=p,x=e.i(11382),j=e.i(68217),f=e.i(73656),v=e.i(95813),g=e.i(90409),b=e.i(59241),y=e.i(10505);function N({id:e}){let a=(0,g.f)(e);return(0,s.jsxs)("div",{"aria-live":"polite",children:[a.error?(0,s.jsx)("p",{role:"alert",children:a.error}):null,a.data?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("p",{children:["test"===a.data.run.operation?"Mocked tests":"Semantic validation"," ",(0,s.jsx)(y.k,{status:a.data.run.status})]}),a.data.run.error?(0,s.jsx)("p",{role:"alert",children:a.data.run.error}):null,(0,s.jsx)(b.f,{output:a.data.run.output})]}):(0,s.jsx)("p",{children:"Loading check…"})]})}function w({project:e,action:a,version:i,source:l,inputSchema:r,outputSchema:c,dirty:o,onDirtyChange:d}){let[u,g]=(0,h.useState)('[\n {"name":"example", "inputs":{}, "expected":null, "mocks":[], "forbidden_calls":[]}\n]'),[b,y]=(0,h.useState)(""),[S,k]=(0,h.useState)(),[C,$]=(0,h.useState)(!!i),[z,A]=(0,h.useState)(!1),[_,T]=(0,h.useState)(""),[R,P]=(0,h.useState)("");async function V(s){A(!0),T("");try{if("validate"===s){let s=await f.V.actions.validateCode.mutate({project:e,source:l,input_schema:(0,m.J)(r),output_schema:(0,m.J)(c),idempotency_key:crypto.randomUUID()});P(s.id);return}if(!a||!i||o)throw Error("Save the source version before editing or running its tests.");if("save"===s){let e=await f.V.actions.saveTests.mutate({id:a.id,version:i.number,cases:(0,m.z)(u)});k(e.revision),y(u),d(!1);return}if(void 0===S||u!==b)throw Error("Save the test suite before running it.");let t=await f.V.actions.runTests.mutate({id:a.id,version:i.number,suite_revision:S,idempotency_key:crypto.randomUUID()});P(t.id)}catch(e){T((0,v.f)(e))}finally{A(!1)}}return(0,h.useEffect)(()=>{if(!a||!i)return;let e=new AbortController;return(async()=>{try{let s=await f.V.actions.tests.query({id:a.id,version:i.number},{signal:e.signal});if(e.signal.aborted)return;let t=JSON.stringify(s.cases,null,2);g(t),y(t),k(s.revision)}catch(a){let s;e.signal.aborted||(s=a instanceof p.t?a.data:void 0,x.z.object({code:j.z.literal("NOT_FOUND")}).safeParse(s).success)||T((0,v.f)(a))}finally{e.signal.aborted||$(!1)}})(),()=>{e.abort()}},[a,i]),(0,s.jsxs)("section",{className:"panel","aria-label":"Validation and mocked tests",children:[(0,s.jsx)("h3",{children:"Validation and mocked tests"}),(0,s.jsx)(t.f,{variant:"outline",disabled:z||!e||!l.trim(),onClick:()=>{V("validate")},children:"Validate source"}),(0,s.jsx)("p",{className:"small",children:"Semantic validation checks this editor’s source and both contracts against the project SDK. It executes no integrations."}),i?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("h4",{children:["Version ",i.number," ·"," ",void 0===S?"No saved test suite":`Test suite revision ${String(S)}`]}),(0,s.jsx)("p",{className:"small",children:"Mocked tests run in isolation without network, project files or live credentials. Mocks declare expected calls; unexpected calls fail."}),(0,s.jsxs)("label",{children:["Test cases (JSON)",(0,s.jsx)(n.f,{className:"code",rows:12,value:u,disabled:C||z||o,onChange:e=>{g(e.target.value),d(e.target.value!==b)}})]}),(0,s.jsxs)("div",{className:"row",children:[(0,s.jsx)(t.f,{variant:"outline",disabled:C||z||o,onClick:()=>{V("save")},children:"Save test suite revision"}),(0,s.jsx)(t.f,{disabled:C||z||o||void 0===S||u!==b,onClick:()=>{V("test")},children:"Run mocked tests"})]}),o?(0,s.jsx)("p",{children:"Save a new source version before saving its tests."}):null]}):(0,s.jsx)("p",{children:"Save a source version to add mocked regression tests."}),_?(0,s.jsx)("p",{className:"error",role:"alert",children:_}):null,R?(0,s.jsx)(N,{id:R},R):null]})}var S=e.i(18879);function k({action:e,isBusy:a,save:n}){return(0,s.jsxs)("details",{className:"panel",children:[(0,s.jsx)("summary",{children:"Action settings"}),(0,s.jsxs)("form",{className:"mt-4",onSubmit:e=>{e.preventDefault();let s=new FormData(e.currentTarget);n({name:(0,S.f)(s,"name"),description:(0,S.f)(s,"description"),enabled:s.has("enabled")})},children:[(0,s.jsxs)("label",{children:["Action name",(0,s.jsx)(i.f,{name:"name",required:!0,defaultValue:e.name,disabled:a})]}),(0,s.jsxs)("label",{children:["Description",(0,s.jsx)(i.f,{name:"description",defaultValue:e.description,disabled:a})]}),(0,s.jsxs)("label",{className:"check",children:[(0,s.jsx)("input",{name:"enabled",type:"checkbox",defaultChecked:e.enabled,disabled:a}),"Enabled for new runs"]}),(0,s.jsx)("p",{className:"small",children:"Disable an action to prevent new runs while preserving its saved versions and run history."}),(0,s.jsx)("div",{className:"row",children:(0,s.jsx)(t.f,{type:"submit",disabled:a,children:"Save action settings"})})]})]})}var C=e.i(87309),$=e.i(70703),z=e.i(56420);let A={name:"braces",size:24,node:[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],aliases:["curly-braces"]};A.node;let _=(0,z.f)(A);var T=e.i(6501),R=e.i(52330);let P={name:"maximize-2",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]};P.node;let V=(0,z.f)(P),O={name:"minimize-2",size:24,node:[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]]};O.node;let D=(0,z.f)(O);var M=e.i(21357),L=e.i(77071);let I={name:"save",size:24,node:[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]};I.node;let U=(0,z.f)(I);var J=e.i(15080),B=e.i(13581),E=e.i(26495),E=E,q=e.i(79258),F=e.i(66595),K=e.i(29487),H=e.i(78688),W=e.i(75016),G=e.i(23920);async function Y(s){let a,t=await (0,J.p)(s);t.some(e=>"inline"===e.distribution)&&(a=(await e.A(67426)).inspectInlinePlugin);let i=new Map;for(let e of t)i.set(e.id,"inline"===e.distribution?a?.(e.source)??{tools:[],isComplete:!1}:(0,H.o)(e.tools));return{plugins:t,tools:i}}function Q({project:e}){let a=(0,B.f)(Y),[t,n]=(0,h.useState)(""),l=a.data?.plugins.filter(s=>s.project===e?.id)??[],r=l.map(e=>{let s=a.data?.tools.get(e.id)??{tools:[],isComplete:!1},i=s.tools,n="string"==typeof e.display_name?e.display_name:e.slug,l=t.trim().toLowerCase(),r=`${n} ${e.description}`.toLowerCase().includes(l);return{plugin:e,name:n,isComplete:s.isComplete,totalTools:i.length,tools:r?i:i.filter(e=>`${e.name} ${e.description}`.toLowerCase().includes(l)),visible:r||i.some(e=>`${e.name} ${e.description}`.toLowerCase().includes(l))}}).filter(e=>e.visible);return(0,s.jsxs)("section",{className:"action-plugin-panel action-card","aria-label":"Action plugins",children:[(0,s.jsxs)("div",{className:"action-panel-heading",children:[(0,s.jsxs)("h3",{children:["Plugins ",(0,s.jsx)("span",{className:"count",children:l.length})]}),(0,s.jsxs)(W.f,{className:"action-text-link",href:`/plugins/?project=${encodeURIComponent(e?.id??"")}`,children:[(0,s.jsx)(L.f,{size:14})," ",l.length>0?"Manage":"Add plugin"]})]}),l.length>0?(0,s.jsxs)("label",{className:"search-field",children:[(0,s.jsx)(F.f,{size:15,"aria-hidden":"true"}),(0,s.jsx)(i.f,{"aria-label":"Search plugins or tools",placeholder:"Search plugins or tools…",value:t,onChange:e=>{n(e.target.value)}})]}):null,(0,s.jsx)("p",{className:"small action-panel-caption",children:e?`Available to ${e.name}`:"Choose a project to see its plugins."}),(0,s.jsx)(K.f,{...a}),a.isLoading||a.error||0!==r.length?null:(0,s.jsxs)("div",{className:"action-empty action-plugin-empty",children:[(0,s.jsx)("span",{className:"plugin-empty-symbol",children:(0,s.jsx)(q.f,{size:28})}),(0,s.jsx)("h4",{children:t?"No matching tools":"Add tools to your action"}),(0,s.jsx)("p",{children:t?"Try another plugin or tool name.":"Explore the marketplace, then assign plugins to this action’s project to use them in your workflow."}),t?null:(0,s.jsxs)(W.f,{className:"button plugin-marketplace-button",href:"/plugins/",children:[(0,s.jsx)(L.f,{size:15})," Browse marketplace"]})]}),(0,s.jsx)("div",{className:"action-plugin-list",hidden:0===r.length,children:r.map(({plugin:e,name:a,tools:i,isComplete:n,totalTools:l})=>{var r;return(0,s.jsxs)("details",{className:"action-plugin",open:!0,children:[(0,s.jsxs)("summary",{children:[(0,s.jsx)(E.f,{className:"plugin-chevron",size:16}),(0,s.jsx)("span",{className:`plugin-symbol plugin-symbol-${e.slug}`,children:(0,s.jsx)(G.f,{catalogSlug:"external"===e.distribution?e.slug:void 0,url:e.icon_url,size:23})}),(0,s.jsxs)("span",{className:"plugin-name",children:[(0,s.jsx)("strong",{children:a}),(0,s.jsx)("small",{children:`${String(l)} ${1===l?"function":"functions"}${!n&&"inline"===e.distribution?" declared":""}`})]}),(0,s.jsxs)("span",{className:`plugin-state ${e.enabled?"is-enabled":""}`,children:[(0,s.jsx)("i",{}),e.enabled?"Enabled":"Disabled"]})]}),i.length>0?(0,s.jsx)("ul",{className:"plugin-tools",children:i.map(e=>(0,s.jsxs)("li",{title:e.description,children:[(0,s.jsx)(_,{size:14}),(0,s.jsxs)("div",{children:[(0,s.jsx)("strong",{children:e.name}),e.description?(0,s.jsx)("p",{className:"small",children:e.description}):null,e.parameters.length>0?(0,s.jsxs)("p",{className:"small",children:["Parameters:"," ",e.parameters.map(e=>`${e.name}${e.optional?"?":""}${e.type?`: ${e.type}`:""}${e.description?` — ${e.description}`:""}`).join("; ")]}):null,e.returnType?(0,s.jsxs)("p",{className:"small",children:["Returns: ",e.returnType]}):null]})]},e.name))}):(0,s.jsx)("p",{className:"small plugin-tool-note",children:(r="inline"===e.distribution,n?"This plugin declares no tools.":r?"Tool definitions are dynamic or could not be read. Their names cannot be listed without running the plugin.":"This installed release does not include tool information.")}),!n&&i.length>0?(0,s.jsx)("p",{className:"small plugin-tool-note",children:"inline"===e.distribution?"Showing statically declared tools. Additional dynamic definitions cannot be listed without running the plugin.":"Showing available tool information. This installed release includes incomplete metadata."}):null]},`${e.id}-${t}`)})}),l.length>0?(0,s.jsx)(W.f,{className:"action-catalog-link",href:"/plugins/",children:"Browse plugin marketplace →"}):null]})}var X=e.i(75775),Z=e.i(62368);let ee={name:"file-braces",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],aliases:["file-json"]};ee.node;let es=(0,z.f)(ee);var ea=e.i(26091),et=e.i(94508);let ei={name:"terminal",size:24,node:[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]};ei.node;let en=(0,z.f)(ei);var el=e.i(36174);function er({runs:e,selectedId:a,onSelect:t,compact:i=!1}){return 0===e.length?(0,s.jsxs)("div",{className:"action-empty",children:[(0,s.jsx)(en,{size:24}),(0,s.jsx)("p",{children:"No runs yet. Save and run this action to see its activity."})]}):(0,s.jsx)("div",{className:"action-run-table",children:(0,s.jsxs)("table",{children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:"Run"}),(0,s.jsx)("th",{children:"Status"}),(0,s.jsx)("th",{children:"Created"})]})}),(0,s.jsx)("tbody",{children:(i?e.slice(0,5):e).map(e=>(0,s.jsxs)("tr",{className:a===e.id?"is-selected":"",children:[(0,s.jsx)("td",{children:(0,s.jsxs)("button",{type:"button",className:"action-run-link","aria-label":`Inspect run ${e.id.slice(0,8)}`,"aria-pressed":a===e.id,onClick:()=>{t(e.id)},children:["#",e.id.slice(0,8)]})}),(0,s.jsx)("td",{children:(0,s.jsx)(y.k,{status:e.status})}),(0,s.jsx)("td",{children:(0,s.jsxs)("time",{dateTime:e.created_at,title:new Date(e.created_at).toLocaleString(),children:[new Date(e.created_at).toLocaleDateString(void 0,{month:"short",day:"numeric"}),(0,s.jsx)("small",{children:new Date(e.created_at).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})})]})})]},e.id))})]})})}function ec({run:e}){let a=(0,h.useCallback)(async s=>(await (0,J.K)(s)).filter(s=>s.run===e.id),[e.id]),i=(0,B.f)(a,5e3*!!y.B.includes(e.status));return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(K.f,{...i}),i.data?.length===0?(0,s.jsxs)("div",{className:"action-empty",children:[(0,s.jsx)(et.f,{size:24}),(0,s.jsx)("p",{children:"No artifacts saved by this run."}),(0,s.jsx)("span",{children:"Files created by the action will appear here."})]}):null,(0,s.jsx)("div",{className:"action-artifact-grid",children:i.data?.map(e=>{let a=e.media_type.includes("json")?es:ea.f;return(0,s.jsxs)("article",{className:"action-artifact",children:[(0,s.jsxs)("header",{children:[(0,s.jsx)("span",{className:"artifact-symbol",children:(0,s.jsx)(a,{size:20})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("strong",{title:e.name,children:e.name}),(0,s.jsxs)("small",{children:[e.media_type," ·"," ",new Blob([e.content]).size.toLocaleString()," B"]})]}),(0,s.jsx)(t.f,{variant:"ghost",size:"icon","aria-label":`Download ${e.name}`,onClick:()=>{(0,el.t)(e)},children:(0,s.jsx)(Z.f,{size:15})})]}),(0,s.jsxs)("details",{children:[(0,s.jsx)("summary",{children:"Preview file"}),(0,s.jsx)("pre",{children:e.content})]}),(0,s.jsx)("pre",{className:"artifact-excerpt","aria-hidden":"true",children:e.content.slice(0,450)})]},e.id)})})]})}function eo({run:e}){let a=(0,h.useCallback)(async s=>f.V.runs.events.query({id:e.id},{signal:s}),[e.id]),t=(0,B.f)(a,3e3*!!y.B.includes(e.status));return(0,s.jsxs)("div",{className:"action-logs",children:[(0,s.jsx)(K.f,{...t}),e.error?(0,s.jsx)("p",{className:"error",role:"alert",children:e.error}):null,t.data?.length===0?(0,s.jsx)("p",{className:"small",children:"No execution events yet."}):null,t.data?.map(e=>(0,s.jsxs)("div",{className:"action-log-line",children:[(0,s.jsx)("time",{children:new Date(e.created_at).toLocaleTimeString()}),(0,s.jsxs)("details",{children:[(0,s.jsx)("summary",{children:e.kind.replaceAll("."," ")}),(0,s.jsx)("pre",{children:(0,y.A)(e.data)})]})]},e.sequence))]})}let ed=["Run artifacts","Previous runs","Logs","Output"];function eu({runs:e,run:a,onSelect:t}){let[i,n]=(0,h.useState)("Run artifacts"),l="Previous runs"!==i&&!a;return(0,s.jsxs)("section",{className:"action-card action-results","aria-label":"Action run results",children:[(0,s.jsx)("div",{className:"action-tab-bar",role:"tablist","aria-label":"Run information",children:ed.map((e,a)=>(0,s.jsx)("button",{id:`result-tab-${String(a)}`,role:"tab","aria-selected":i===e,"aria-controls":"action-result-panel",tabIndex:i===e?0:-1,onClick:()=>{n(e)},onKeyDown:e=>{let s={ArrowRight:(a+1)%ed.length,ArrowLeft:(a+ed.length-1)%ed.length,Home:0,End:ed.length-1}[e.key];void 0!==s&&(e.preventDefault(),n(ed[s]??"Run artifacts"),document.querySelector(`#result-tab-${String(s)}`)?.focus())},children:e},e))}),(0,s.jsxs)("div",{id:"action-result-panel",role:"tabpanel","aria-labelledby":`result-tab-${String(ed.indexOf(i))}`,tabIndex:0,children:[a?(0,s.jsxs)("div",{className:"action-result-context",children:[(0,s.jsxs)("span",{children:["Run #",a.id.slice(0,8)," ",(0,s.jsx)(y.k,{status:a.status})]}),(0,s.jsxs)(W.f,{href:`/runs/?run=${a.id}`,children:["Run details ",(0,s.jsx)(X.f,{size:13})]})]}):null,"Previous runs"===i?(0,s.jsx)(er,{runs:e,selectedId:a?.id??"",onSelect:t}):null,l?(0,s.jsxs)("div",{className:"action-empty",children:[(0,s.jsx)(et.f,{size:26}),(0,s.jsx)("p",{children:"Your run results will appear here."}),(0,s.jsx)("span",{children:"Save your action, then choose Run selected version to get started."})]}):null,"Run artifacts"===i&&a?(0,s.jsx)(ec,{run:a},`${a.id}-${a.status}`):null,"Logs"===i&&a?(0,s.jsx)(eo,{run:a},a.id):null,"Output"===i&&a?(0,s.jsx)("pre",{className:"action-output",children:y.B.includes(a.status)?"This run is in progress. Its output will appear here.":a.error||(0,y.A)(a.output)||"This run completed without output."}):null]})]})}var eh=e.i(59140);let em=(0,$.default)(async()=>{let s=await e.A(96001);return s.configureMonaco(),s.default},{loadableGenerated:{modules:[160]},ssr:!1}),ep='const { name } = actionParams;\nreturn `Hello, ${name ?? "world"}!`;';function ex({projects:e,onDirtyChange:p,selectedId:x,onSelect:j}){let{selected:g}=(0,u.useWorkspace)(),b=(0,a.useRouter)(),N=(0,C.h)(),[S,$]=(0,h.useState)([]),[z,A]=(0,h.useState)(),[P,O]=(0,h.useState)(g||(e[0]?.id??"")),[I,E]=(0,h.useState)(""),[q,F]=(0,h.useState)(ep),[H,G]=(0,h.useState)(ep),[Y,X]=(0,h.useState)([]),[Z,ee]=(0,h.useState)(""),es='{"type":"object"}',[ea,et]=(0,h.useState)(!1),[ei,en]=(0,h.useState)(es),[el,ec]=(0,h.useState)(es),[eo,ed]=(0,h.useState)("{}"),[ej,ef]=(0,h.useState)("{}"),[ev,eg]=(0,h.useState)('{"name": "team"}'),[eb,ey]=(0,h.useState)(o.A),[eN,ew]=(0,h.useState)(!1),[eS,ek]=(0,h.useState)(""),[eC,e$]=(0,h.useState)(""),[ez,eA]=(0,h.useState)(!0),[e_,eT]=(0,h.useState)(""),[eR,eP]=(0,h.useState)(0),[eV,eO]=(0,h.useState)("source"),[eD,eM]=(0,h.useState)(!1),[eL,eI]=(0,h.useState)(""),eU=z?.id,eJ=(0,h.useCallback)(async e=>eU?(0,J.f)(e):[],[eU]),eB=(0,B.f)(eJ,5e3*!!eU),eE=new Set(Y.map(e=>e.id)),eq=(eB.data??[]).filter(e=>null!==e.action_version&&eE.has(e.action_version)).toSorted((e,s)=>s.created_at.localeCompare(e.created_at)),eF=eq[0],eK=eq.find(e=>e.id===eL)??eF,eH=q!==H||ei!==el||eo!==ej||!z&&""!==I,eW=Y[0],eG=eW?"Saved":"Draft",eY=eH?"Unsaved changes":eG,eQ=!!Z&&Z!==eW?.id,eX=!!z&&z.enabled&&!!Z&&!eH;if((0,c.f)(eH||ea,p),(0,h.useEffect)(()=>{let e=new AbortController;return(async()=>{try{let s=await (0,J.t)(e.signal);e.signal.throwIfAborted();let a=s.filter(e=>e.project===g);if($(a),x){let s=a.find(e=>e.id===x);if(!s)throw Error("This action does not exist or is not available in this workspace.");let t=await f.V.actions.versions.query({id:s.id},{signal:e.signal});e.signal.throwIfAborted();let i=t.toSorted((e,s)=>s.number-e.number),n=i[0];A(s),O(s.project),E(s.name),X(i),ee(n?.id??""),F(n?.source??ep),G(n?.source??ep);let l=JSON.stringify(n?.input_schema??{type:"object"});en(l),ec(l);let r=JSON.stringify(n?.output_schema??{});ed(r),ef(r),ek("")}}catch(s){e.signal.aborted||eT((0,v.f)(s))}finally{e.signal.aborted||eA(!1)}})(),()=>{e.abort()}},[x,g,eR]),ez)return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.K,{children:(0,s.jsx)("strong",{children:"Actions"})}),(0,s.jsx)("p",{role:"status",children:"Loading actions…"})]});if(e_)return(0,s.jsxs)("section",{className:"panel space-y-4",children:[(0,s.jsx)("h1",{children:"Action unavailable"}),(0,s.jsx)("p",{className:"error",role:"alert",children:e_}),(0,s.jsxs)("div",{className:"flex flex-wrap gap-3",children:[(0,s.jsx)(t.f,{variant:"outline",asChild:!0,children:(0,s.jsx)(W.f,{href:`/actions/?project=${encodeURIComponent(g)}`,children:"Back to actions"})}),(0,s.jsx)(t.f,{onClick:()=>{eT(""),eA(!0),eP(e=>e+1)},children:"Try again"})]})]});let eZ=async e=>{ew(!0),ek(""),e$("");try{await e()}catch(e){ek((0,v.f)(e))}finally{ew(!1)}},e0=async()=>!(eH||ea)||await N(),e1=async e=>{e||x?j(e?.id??""):await e0()&&(et(!1),A(void 0),X([]),ee(""),E(""),F(ep),G(ep),en(es),ec(es),ed("{}"),ef("{}"),eI(""),eO("source"),ek(""),e$(""))},e2=async e=>{if(!await e0())return;let s=Y.find(s=>s.id===e);if(!s)return;et(!1),ee(s.id),F(s.source),G(s.source);let a=JSON.stringify(s.input_schema);en(a),ec(a);let t=JSON.stringify(s.output_schema);ed(t),ef(t)},e4=async()=>{if(ea&&!await N())return;if(!z&&(await f.V.actions.list.query()).results.some(e=>e.project===P&&e.name===I.trim()))throw Error("An action with this name already exists in this project. Open that action or choose a different name.");let e=await f.V.actions.saveAction.mutate({project:P,...z&&{action:z.id},name:I.trim(),source:q,input_schema:(0,m.J)(ei),output_schema:(0,m.J)(eo)}),s=z??await f.V.actions.get.query({id:e.action}),a=e.version;if(z||(A(s),$(e=>[...e,s])),et(!1),X(e=>[a,...e.filter(e=>e.id!==a.id)]),ee(a.id),G(q),ec(ei),ef(eo),e$(`Version ${String(a.number)} saved.`),x)return;let t=new URLSearchParams({project:P,action:s.id});b.replace(`/actions/?${t.toString()}`)},e5=async()=>{let e=Y.find(e=>e.id===Z);z&&eX&&e&&(eI((await f.V.runs.create.mutate({project:P,action:z.id,operation:"action",version:e.number,inputs:(0,m.J)(ev),idempotency_key:crypto.randomUUID()})).id),await eB.refresh(),e$("Run queued. Follow its progress and results below."))},e6={schema:{description:"Define the JSON Schema used to validate this version’s run inputs.",label:"Input schema (JSON)",value:ei},output:{description:"Define the JSON Schema used to validate this version’s returned output.",label:"Output schema (JSON)",value:eo},inputs:{description:"Provide the JSON inputs for your next run or schedule.",label:"Run inputs (JSON)",value:ev}}[eV];return(0,s.jsx)("div",{className:"actions-workspace",children:(0,s.jsxs)("section",{className:"action-detail","aria-label":"Action editor",children:[(0,s.jsx)(r.K,{children:(0,s.jsxs)("div",{className:"action-toolbar",children:[(0,s.jsx)("h1",{className:"sr-only",children:z?.name??"New action"}),(0,s.jsxs)("nav",{className:"action-breadcrumb","aria-label":"Action navigation",children:[(0,s.jsx)(R.f,{size:16,"aria-hidden":"true"}),(0,s.jsx)(W.f,{href:`/actions/?project=${encodeURIComponent(g)}`,children:"Actions"}),(0,s.jsx)("span",{"aria-hidden":"true",children:"/"}),(0,s.jsxs)(l.d,{value:z?.id??"new",disabled:eN,onValueChange:e=>{e1(S.find(s=>s.id===e))},children:[(0,s.jsx)(l.P,{"aria-label":"Choose action",className:"action-selector",children:(0,s.jsx)(l.U,{})}),(0,s.jsxs)(l.r,{children:[(0,s.jsx)(l.T,{value:"new",children:"New action"}),S.map(e=>(0,s.jsx)(l.T,{value:e.id,children:e.name},e.id))]})]}),(0,s.jsx)("span",{className:`action-save-status ${eH?"is-dirty":""}`,children:eY}),z?.enabled===!1?(0,s.jsx)("span",{className:"badge",children:"Disabled"}):null,(0,s.jsx)(t.f,{variant:"ghost",size:"icon",disabled:eN,"aria-label":"New action",title:"New action",onClick:()=>{e1()},children:(0,s.jsx)(L.f,{size:15})})]}),(0,s.jsxs)("div",{className:"row action-header-controls",children:[eF?(0,s.jsxs)("div",{className:"action-last-run",children:[(0,s.jsx)("span",{children:"Last run"}),(0,s.jsx)(y.k,{status:eF.status}),(0,s.jsx)("small",{children:new Date(eF.created_at).toLocaleString()})]}):null,(0,s.jsxs)(t.f,{variant:"outline",disabled:eN||!q.trim()||!z&&(!I.trim()||!P),onClick:()=>{eZ(e4)},children:[(0,s.jsx)(U,{size:15})," ",eQ?"Save as new version":"Save version"]}),(0,s.jsxs)(t.f,{className:"secondary",disabled:eN||!eX,onClick:()=>{eZ(e5)},children:[(0,s.jsx)(M.f,{size:15})," Run selected version"]})]})]})}),z?(0,s.jsx)(eh.F,{action:z,current:"editor"}):(0,s.jsxs)("div",{className:"mb-5 space-y-2",children:[(0,s.jsx)(W.f,{href:`/actions/?project=${encodeURIComponent(g)}`,children:"Back to actions"}),(0,s.jsx)("h1",{children:"New action"}),(0,s.jsx)("p",{children:"Save reusable code for your connected MCP client to run."})]}),eS?(0,s.jsx)("p",{className:"error",role:"alert",children:eS}):void 0,eC?(0,s.jsx)("p",{className:"notice",role:"status",children:eC}):void 0,z?void 0:(0,s.jsxs)("div",{className:"panel row action-create-fields",children:[(0,s.jsxs)("label",{children:["Action name",(0,s.jsx)(i.f,{value:I,disabled:eN,onChange:e=>{E(e.target.value)},placeholder:"e.g. Daily report"})]}),(0,s.jsxs)("label",{children:["Project",(0,s.jsx)(i.f,{readOnly:!0,value:e.find(e=>e.id===g)?.name??"No project selected"}),(0,s.jsx)("small",{children:"Choose a project in the sidebar before creating an action."})]})]}),0===e.length?(0,s.jsx)("p",{className:"notice",children:"Create a project from Projects before saving an action."}):void 0,(0,s.jsx)(K.f,{...eB}),(0,s.jsxs)("div",{className:`action-content-grid ${eD?"is-editor-expanded":""}`,children:[(0,s.jsxs)("div",{className:"action-editor-column",children:[(0,s.jsxs)("div",{className:"source-pane action-source-pane",children:[(0,s.jsxs)("div",{className:"source-toolbar",children:[(0,s.jsxs)("div",{className:"action-editor-tabs",role:"group","aria-label":"Action configuration",children:[(0,s.jsxs)("button",{type:"button",className:"source"===eV?"is-active":"","aria-pressed":"source"===eV,onClick:()=>{eO("source")},children:[(0,s.jsx)("span",{className:"typescript-icon",children:"TS"})," action.ts"," ",eH?(0,s.jsx)("span",{className:"unsaved-dot",title:"Unsaved changes"}):null]}),(0,s.jsxs)("button",{type:"button",className:"schema"===eV?"is-active":"","aria-pressed":"schema"===eV,onClick:()=>{eO("schema")},children:[(0,s.jsx)(_,{size:14})," Input schema"]}),(0,s.jsxs)("button",{type:"button",className:"output"===eV?"is-active":"","aria-pressed":"output"===eV,onClick:()=>{eO("output")},children:[(0,s.jsx)(_,{size:14})," Output schema"]}),(0,s.jsxs)("button",{type:"button",className:"inputs"===eV?"is-active":"","aria-pressed":"inputs"===eV,onClick:()=>{eO("inputs")},children:[(0,s.jsx)(_,{size:14})," Run inputs"]}),(0,s.jsxs)("button",{type:"button",className:"schedule"===eV?"is-active":"","aria-pressed":"schedule"===eV,onClick:()=>{eO("schedule")},children:[(0,s.jsx)(T.f,{size:14})," Schedule"]})]}),(0,s.jsxs)("div",{className:"row",children:[Y.length>0?(0,s.jsxs)(l.d,{value:Z,disabled:eN,onValueChange:e=>{e2(e)},children:[(0,s.jsx)(l.P,{"aria-label":"Action version",className:"action-version-selector",children:(0,s.jsx)(l.U,{})}),(0,s.jsx)(l.r,{children:Y.map(e=>(0,s.jsxs)(l.T,{value:e.id,children:["Version ",e.number,e.id===eW?.id?" (latest)":""]},e.id))})]}):null,(0,s.jsx)(t.f,{variant:"ghost",size:"icon","aria-label":eD?"Collapse editor":"Expand editor","aria-pressed":eD,onClick:()=>{eM(!eD)},children:eD?(0,s.jsx)(D,{size:15}):(0,s.jsx)(V,{size:15})})]})]}),"source"===eV?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"desktop-editor",children:(0,s.jsx)(em,{value:q,onChange:F,readOnly:eN,actionId:`${P}:${z?.id??"new"}:${Z}`,projectId:P,theme:"light",height:"100%"})}),(0,s.jsx)("div",{className:"mobile-editor",children:(0,s.jsxs)("label",{children:["TypeScript source",(0,s.jsx)(n.f,{className:"code",rows:18,spellCheck:!1,value:q,readOnly:eN,onChange:e=>{F(e.target.value)}})]})})]}):null,"schedule"===eV?(0,s.jsxs)("section",{className:"action-schedule-editor","aria-labelledby":"action-schedule-title",children:[(0,s.jsx)("h3",{id:"action-schedule-title",children:"Schedule action"}),z?(0,s.jsx)(W.f,{href:`/schedules/?${new URLSearchParams({project:P,action:z.id}).toString()}`,children:"View saved schedules"}):null,(0,s.jsx)("p",{className:"small",children:"Creating a schedule copies the current Run inputs. Scheduled runs use this action’s latest saved version."}),eX&&!eQ?null:(0,s.jsx)("p",{className:"notice",role:"status",children:z&&eW?z.enabled?eQ?"Choose the latest version before creating a schedule.":"Save your changes before creating a schedule.":"Enable this action before creating a schedule.":"Save this action before creating a schedule."}),(0,s.jsx)(d.f,{value:eb,onChange:ey,disabled:eN}),(0,s.jsx)(t.f,{className:"secondary",disabled:eN||!eX||eQ,onClick:()=>{eZ(async()=>{z&&eX&&(await f.V.schedules.create.mutate({action:z.id,cron:eb,inputs:(0,m.J)(ev)}),e$("Schedule created."))})},children:"Create schedule"})]}):null,e6?(0,s.jsxs)("div",{className:"action-json-editor",children:[(0,s.jsx)("p",{className:"small",children:e6.description}),(0,s.jsxs)("label",{children:[e6.label,(0,s.jsx)(n.f,{className:"code",spellCheck:!1,value:e6.value,readOnly:eN,onChange:e=>{"schema"===eV?en(e.target.value):"output"===eV?ed(e.target.value):eg(e.target.value)}})]})]}):null,(0,s.jsxs)("footer",{className:"source-footer",children:[(0,s.jsx)("span",{children:"schedule"===eV?"Schedule":"source"===eV?"TypeScript":"JSON"}),(0,s.jsx)("span",{children:eQ?"Historical version · edits save a new version":eY})]})]}),(0,s.jsx)(eu,{runs:eq,run:eK,onSelect:eI})]}),(0,s.jsxs)("aside",{className:"action-context-column","aria-label":"Plugins and recent runs",children:[(0,s.jsx)(Q,{project:e.find(e=>e.id===P)},P),(0,s.jsxs)("section",{className:"action-card action-recent-runs","aria-label":"Recent action runs",children:[(0,s.jsxs)("div",{className:"action-panel-heading",children:[(0,s.jsx)("h3",{children:"Previous runs"}),(0,s.jsxs)("span",{className:"count",children:[eq.length," ",1===eq.length?"run":"runs"]})]}),(0,s.jsx)(er,{runs:eq,selectedId:eK?.id??"",onSelect:eI})]})]})]}),(0,s.jsx)(w,{project:P,action:z,version:Y.find(e=>e.id===Z),source:q,inputSchema:ei,outputSchema:eo,dirty:eH,onDirtyChange:et},`${P}:${z?.id??"new"}:${Z}`),Y.find(e=>e.id===Z)?.promoted_from?(0,s.jsxs)("p",{className:"small",children:["Promoted from run"," ",Y.find(e=>e.id===Z)?.promoted_from]}):null,eH||eQ?(0,s.jsx)("p",{className:"small",role:"status",children:eQ?"Running uses the selected saved version. Editing and saving creates a new immutable version.":"Save your changes before running or scheduling this action."}):void 0,(0,s.jsx)("div",{className:"action-configuration",children:z?(0,s.jsx)(k,{action:z,isBusy:eN,save:e=>{eZ(async()=>{let s=await f.V.actions.update.mutate({id:z.id,...e});A(s),$(e=>e.map(e=>e.id===s.id?s:e)),e$("Action settings saved.")})}},z.id):void 0})]})})}function ej(e){let{selected:a}=(0,u.useWorkspace)();return(0,s.jsx)(ex,{...e},`${a}:${e.selectedId}`)}var ef=e.i(67965),ev=e.i(1101);function eg(){let{projects:e,selected:a}=(0,u.useWorkspace)(),n=e.find(e=>e.id===a),l=(0,B.f)(J.t),[c,o]=(0,h.useState)("");if(!n)return(0,s.jsxs)("section",{className:"panel space-y-4",children:[(0,s.jsx)(r.K,{children:(0,s.jsx)("strong",{children:"Actions"})}),(0,s.jsx)("h1",{children:"Actions"}),(0,s.jsx)("p",{children:"Create a project to give your MCP client a place to build and run saved actions."}),(0,s.jsx)(t.f,{asChild:!0,children:(0,s.jsx)(W.f,{href:"/projects/?new=1",children:"Create project"})})]});let d=(l.data??[]).filter(e=>e.project===a),m=c.trim().toLowerCase(),p=d.filter(e=>`${e.name} ${e.description}`.toLowerCase().includes(m)),x=new URLSearchParams({project:a}).toString();return(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsx)(r.K,{children:(0,s.jsxs)("div",{className:"flex min-w-0 items-center gap-3 text-sm",children:[(0,s.jsx)(W.f,{href:`/projects/?${x}`,className:"truncate",children:n.name}),(0,s.jsx)("span",{"aria-hidden":"true",className:"text-slate-300",children:"/"}),(0,s.jsx)("strong",{children:"Actions"})]})}),(0,s.jsxs)("header",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)("p",{className:"text-sm font-medium",children:n.name}),(0,s.jsx)("h1",{children:"Actions"}),(0,s.jsx)("p",{children:"Build what your connected MCP client can run in this project."})]}),(0,s.jsx)(t.f,{asChild:!0,children:(0,s.jsxs)(W.f,{href:`/actions/?${x}&new=1`,children:[(0,s.jsx)(L.f,{size:16,"aria-hidden":"true"})," New action"]})})]}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-4 rounded-xl border border-indigo-100 bg-indigo-50/50 p-4",children:[(0,s.jsxs)("div",{className:"flex items-start gap-3",children:[(0,s.jsx)(ef.f,{size:20,className:"mt-0.5 shrink-0 text-indigo-600","aria-hidden":"true"}),(0,s.jsxs)("div",{className:"space-y-1",children:[(0,s.jsx)("p",{className:"text-sm font-medium text-slate-900",children:"Built with your MCP client"}),(0,s.jsx)("p",{className:"text-sm",children:"Save reusable actions, inspect their runs, then add schedules or webhooks."})]})]}),(0,s.jsx)(t.f,{variant:"outline",asChild:!0,children:(0,s.jsx)(W.f,{href:`/connections/?${x}`,children:"Connect client"})})]}),(0,s.jsx)(K.f,{...l}),l.data&&d.length>0?(0,s.jsxs)("section",{className:"space-y-4","aria-label":"Saved actions",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,s.jsxs)("p",{className:"text-sm",children:[d.length," saved"," ",1===d.length?"action":"actions"]}),(0,s.jsxs)("label",{className:"relative block w-full sm:max-w-xs",children:[(0,s.jsx)("span",{className:"sr-only",children:"Search actions"}),(0,s.jsx)(F.f,{size:16,className:"absolute top-2.5 left-3 text-slate-400","aria-hidden":"true"}),(0,s.jsx)(i.f,{value:c,onChange:e=>{o(e.target.value)},placeholder:"Search actions",className:"pl-9!"})]})]}),(0,s.jsx)("div",{className:"grid gap-4 md:grid-cols-2 xl:grid-cols-3",children:p.map(e=>(0,s.jsx)(ev.f,{action:e},e.id))}),0===p.length?(0,s.jsxs)("p",{role:"status",children:["No actions match “",c,"”."]}):null]}):null,l.isLoading||l.error||0!==d.length?null:(0,s.jsxs)("section",{className:"flex flex-col items-start gap-4 rounded-xl border border-dashed border-slate-300 bg-white p-6",children:[(0,s.jsx)(R.f,{size:24,className:"text-indigo-600","aria-hidden":"true"}),(0,s.jsx)("h2",{className:"mb-0!",children:"No saved actions yet"}),(0,s.jsx)("p",{children:"Ask your connected MCP client to create an action, or start one here. Each action keeps its code versions, runs, schedules and webhooks together."}),(0,s.jsx)(t.f,{variant:"outline",asChild:!0,children:(0,s.jsx)(W.f,{href:`/actions/?${x}&new=1`,children:"Create an action"})})]})]})}e.s(["default",0,function(){let{projects:e,selected:t,setDirty:i,navigateTo:n}=(0,u.useWorkspace)(),l=(0,a.useSearchParams)(),r=l.get("action")??"",c="1"===l.get("new");return r||c?(0,s.jsx)(ej,{projects:e,onDirtyChange:i,selectedId:r,onSelect:e=>{let s=new URLSearchParams({project:t});e?s.set("action",e):s.set("new","1"),n(`/actions/?${s.toString()}`)}},r):(0,s.jsx)(eg,{},t)}],43776)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,18566,(t,e,n)=>{e.exports=t.r(76562)},76046,t=>{"use strict";t.i(44362);var e=t.i(14778);t.s(["k",0,function(){location.assign(function(t){let e=new URLSearchParams(t).get("next");if(!e||!e.startsWith("/")||e.startsWith("//")||e.includes("\\"))return"/";for(let t of e)if((t.codePointAt(0)??0)<=32)return"/";let n=new URL(e,location.origin);return n.origin===location.origin?`${n.pathname}${n.search}${n.hash}`:"/"}(location.search))},"z",0,"Confirm your identity below, then retry your change.","$",0,function(t){return(0,e.f)(t)&&t.data?.code==="UNAUTHORIZED"},"y",0,function(){let t=`${location.pathname}${location.search}${location.hash}`;location.replace(`/accounts/login/?next=${encodeURIComponent(t)}`)},"u",0,function(t){return!t.is_authenticated&&t.flows.some(t=>"mfa_authenticate"===t.id)}])},95813,t=>{"use strict";t.s(["f",0,function(t,e="The request failed. Please try again."){return t instanceof Error?t.message:e}])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,95813,e=>{"use strict";e.s(["f",0,function(e,s="The request failed. Please try again."){return e instanceof Error?e.message:s}])},70307,e=>{"use strict";var s=e.i(18050),a=e.i(22016),t=e.i(71645),r=e.i(73656),i=e.i(95813),n=e.i(15448),l=e.i(19455),o=e.i(93479),c=e.i(18879);e.s(["default",0,function(){let[e,d]=(0,t.useState)(),[m,u]=(0,t.useState)(""),[p,f]=(0,t.useState)(!1),[h,x]=(0,t.useState)(!1),[j,g]=(0,t.useState)(0);return(0,t.useEffect)(()=>{let e=new AbortController;return r.V.auth.setupStatus.query(void 0,{signal:e.signal}).then(s=>{e.signal.aborted||d(s)}).catch(s=>{e.signal.aborted||u((0,i.f)(s))}),()=>{e.abort()}},[j]),(0,s.jsxs)(n.f,{title:"Set up your workspace",description:"Create your local administrator and first project. Configure a runner and connect your external client after signing in.",children:[h&&(0,s.jsxs)("div",{role:"status",children:[(0,s.jsx)("p",{children:"Your workspace is ready. Sign in to get started."}),(0,s.jsx)(l.f,{asChild:!0,children:(0,s.jsx)(a.default,{href:"/accounts/login/",children:"Sign in"})})]}),!h&&e?.setup_required===!1&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{children:"This server is already set up."}),(0,s.jsx)(l.f,{asChild:!0,children:(0,s.jsx)(a.default,{href:"/accounts/login/",children:"Sign in"})})]}),!h&&e?.setup_required&&(0,s.jsx)("form",{className:"space-y-4",onSubmit:s=>{s.preventDefault();let a=new FormData(s.currentTarget);f(!0),u(""),(async()=>{try{let s=(0,c.f)(a,"password1");if(s!==(0,c.f)(a,"password2"))throw Error("The passwords do not match.");await r.V.auth.setup.mutate({domain:e.hostname,workspace_name:(0,c.f)(a,"workspace_name"),username:(0,c.f)(a,"username"),email:(0,c.f)(a,"email"),password1:s,password2:(0,c.f)(a,"password2"),project_name:(0,c.f)(a,"project_name")}),x(!0)}catch(e){u((0,i.f)(e))}finally{f(!1)}})()},children:(0,s.jsxs)("fieldset",{disabled:p,className:"space-y-4 border-0 p-0",children:[(0,s.jsxs)("label",{className:"block text-sm font-medium",children:["Workspace name",(0,s.jsx)(o.f,{name:"workspace_name",autoComplete:"organization",required:!0,maxLength:100})]}),(0,s.jsxs)("label",{className:"block text-sm font-medium",children:["Username",(0,s.jsx)(o.f,{name:"username",autoComplete:"username",required:!0,maxLength:150})]}),(0,s.jsxs)("label",{className:"block text-sm font-medium",children:["Email",(0,s.jsx)(o.f,{name:"email",type:"email",autoComplete:"email",required:!0})]}),(0,s.jsx)("p",{className:"small",children:"Use this email to sign in. No email verification is needed."}),(0,s.jsxs)("label",{className:"block text-sm font-medium",children:["Password",(0,s.jsx)(o.f,{name:"password1",type:"password",autoComplete:"new-password",required:!0})]}),(0,s.jsxs)("label",{className:"block text-sm font-medium",children:["Confirm password",(0,s.jsx)(o.f,{name:"password2",type:"password",autoComplete:"new-password",required:!0})]}),(0,s.jsxs)("label",{className:"block text-sm font-medium",children:["First project name",(0,s.jsx)(o.f,{name:"project_name",defaultValue:"My project",maxLength:100})]}),(0,s.jsx)(l.f,{type:"submit",children:p?"Creating workspace…":"Create workspace"})]})}),!h&&!e&&!m&&(0,s.jsx)("p",{role:"status",children:"Checking this installation…"}),m&&(0,s.jsxs)("div",{role:"alert",children:[(0,s.jsx)("p",{className:"error",children:m}),!e&&(0,s.jsx)(l.f,{variant:"outline",onClick:()=>{u(""),g(e=>e+1)},children:"Try again"})]})]})}])},18879,e=>{"use strict";e.s(["f",0,function(e,s){let a=e.get(s);return"string"==typeof a?a:""}])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,51757,e=>{"use strict";var t=e.i(56420);let a={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};a.node;let i=(0,t.f)(a);e.s(["f",0,i],51757)},13581,29487,e=>{"use strict";var t=e.i(71645),a=e.i(95813);e.s(["f",0,function(e,i=0){let[s,l]=(0,t.useState)(),[n,r]=(0,t.useState)(""),[d,o]=(0,t.useState)(!0),c=(0,t.useRef)(void 0),u=(0,t.useRef)(!1),h=(0,t.useCallback)(async()=>{c.current?.abort();let t=new AbortController;c.current=t;try{let a=await e(t.signal);if(t.signal.aborted||!u.current)return;l(a),r("")}catch(e){!t.signal.aborted&&u.current&&r((0,a.f)(e))}finally{!t.signal.aborted&&u.current&&o(!1)}},[e]);return(0,t.useEffect)(()=>{u.current=!0,queueMicrotask(()=>{u.current&&h()});let e=i>0?setInterval(()=>{h()},i):void 0;return()=>{u.current=!1,c.current?.abort(),clearInterval(e)}},[h,i]),{data:s,error:n,isLoading:d,refresh:h}}],13581);var i=e.i(18050),s=e.i(19455);e.s(["f",0,function({isLoading:e,error:t,refresh:a}){return(0,i.jsxs)(i.Fragment,{children:[e?(0,i.jsx)("p",{role:"status",children:"Loading workspace data…"}):void 0,t?(0,i.jsxs)("div",{className:"error",role:"alert",children:[(0,i.jsx)("p",{children:t}),(0,i.jsx)(s.f,{variant:"outline",onClick:()=>{a()},children:"Try again"})]}):void 0]})}],29487)},10505,79432,e=>{"use strict";var t=e.i(18050),a=e.i(56420);let i={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]};i.node;let s=(0,a.f)(i);e.s(["f",0,s],79432);var l=e.i(51757);let n={name:"clock-3",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]]};n.node;let r=(0,a.f)(n),d={name:"shield-exclamation-point",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],aliases:["shield-alert"]};d.node;let o=(0,a.f)(d),c={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-circle"]};c.node;let u=(0,a.f)(c);function h(e){return({chat:"Chat task",code:"Code execution",session:"Execution session",action:"Action run",validate:"Code validation",test:"Action tests"})[e]??e.replaceAll("_"," ")}e.s(["k",0,function({status:e}){let a={succeeded:l.f,waiting_approval:o,running:s,queued:r,failed:u,cancelled:u,interrupted:u}[e]??r;return(0,t.jsxs)("span",{className:`run-status status-${e}`,children:[(0,t.jsx)(a,{size:13,"aria-hidden":"true"}),e.replaceAll("_"," ")]})},"B",0,["queued","running","waiting_approval"],"A",0,function(e){return void 0===e?"":"string"==typeof e?e:JSON.stringify(e,void 0,2)},"N",0,function(e,t){let a=t.find(t=>t.id===e.project)?.name??"Project";return"chat"===e.operation?`${a} \xb7 ${(function(e,t){if(null!==e&&"object"==typeof e&&Object.hasOwn(e,t)){let a=Reflect.get(e,t);if("string"==typeof a)return a}return""})(e.inputs,"message").slice(0,70)}`:`${a} \xb7 ${h(e.operation)}`},"T",0,h],10505)},57743,e=>{"use strict";var t=e.i(18050),a=e.i(71645),i=e.i(73656),s=e.i(95813),l=e.i(13581),n=e.i(19455),r=e.i(93479),d=e.i(94757),o=e.i(87309),c=e.i(29487),u=e.i(10505);let h={key:"name",type:"text",required:!0};function v({table:e,onSaved:l}){let o=(0,a.useId)(),{setDirty:c}=(0,d.useWorkspace)(),[u,x]=(0,a.useState)(e?.name??""),[m,p]=(0,a.useState)(e?.columns??[h]),[y,f]=(0,a.useState)(!1),[b,j]=(0,a.useState)(""),[w,k]=(0,a.useState)("");function g(e,t){p(a=>a.map((a,i)=>i===e?{...a,...t}:a))}return(0,t.jsxs)("form",{onChange:()=>{c(!0)},onSubmit:t=>{t.preventDefault(),f(!0),j(""),k(""),(async()=>{try{let t={name:u,columns:m};e?await i.V.tables.update.mutate({id:e.id,...t,revision:e.revision}):(await i.V.tables.create.mutate(t),x(""),p([h])),c(!1),await l(),k("Table saved.")}catch(e){j((0,s.f)(e))}finally{f(!1)}})()},children:[(0,t.jsxs)("fieldset",{disabled:y,className:"space-y-3",children:[(0,t.jsx)("legend",{className:"mb-3 font-semibold",children:e?"Edit table definition":"Create a table"}),(0,t.jsxs)("label",{children:["Table name",(0,t.jsx)(r.f,{required:!0,maxLength:120,value:u,onChange:e=>{x(e.target.value)}})]}),(0,t.jsx)("p",{className:"small",children:"Column keys use lowercase letters, digits and underscores, starting with a letter. Existing rows must remain valid when a definition changes."}),m.map((e,a)=>(0,t.jsxs)("div",{className:"table-column-fields",children:[(0,t.jsxs)("label",{className:"table-column-key",children:["Column ",a+1," key",(0,t.jsx)(r.f,{required:!0,pattern:"[a-z][a-z0-9_]{0,47}",maxLength:48,value:e.key,onChange:e=>{g(a,{key:e.target.value})}})]}),(0,t.jsxs)("div",{className:"table-column-type",children:[(0,t.jsx)("label",{htmlFor:`${o}-type-${String(a)}`,children:"Type"}),(0,t.jsxs)("select",{id:`${o}-type-${String(a)}`,value:e.type,onChange:e=>{let t=e.target.value;["text","number","boolean","date"].includes(t)&&g(a,{type:t})},children:[(0,t.jsx)("option",{value:"text",children:"Text"}),(0,t.jsx)("option",{value:"number",children:"Number"}),(0,t.jsx)("option",{value:"boolean",children:"Boolean"}),(0,t.jsx)("option",{value:"date",children:"Date"})]})]}),(0,t.jsxs)("label",{className:"check",children:[(0,t.jsx)("input",{type:"checkbox",checked:e.required,onChange:e=>{g(a,{required:e.target.checked})}}),"Required"]}),(0,t.jsxs)(n.f,{type:"button",variant:"outline",disabled:1===m.length,onClick:()=>{c(!0),p(e=>e.filter((e,t)=>t!==a))},children:["Remove column ",a+1]})]},a)),(0,t.jsxs)("div",{className:"row",children:[(0,t.jsx)(n.f,{type:"button",variant:"outline",disabled:m.length>=50,onClick:()=>{c(!0),p(e=>[...e,{key:"",type:"text",required:!1}])},children:"Add column"}),(0,t.jsx)(n.f,{type:"submit",children:y?"Saving…":"Save table"})]})]}),b?(0,t.jsx)("p",{className:"error",role:"alert",children:b}):void 0,w?(0,t.jsx)("p",{className:"notice",role:"status",children:w}):void 0]})}function x({table:e,row:l,onSaved:o,onCancel:c}){let h=(0,a.useId)(),{setDirty:v}=(0,d.useWorkspace)(),[m,p]=(0,a.useState)(()=>Object.fromEntries(e.columns.map(e=>[e.key,l?.values[e.key]===void 0||null===l.values[e.key]?"":(0,u.A)(l.values[e.key])]))),[y,f]=(0,a.useState)(!1),[b,j]=(0,a.useState)("");return(0,t.jsxs)("form",{className:"panel",onChange:()=>{v(!0)},onSubmit:t=>{t.preventDefault(),f(!0),j(""),(async()=>{try{let t=Object.fromEntries(e.columns.map(e=>{let t=m[e.key]??"";return""!==t||e.required?"boolean"===e.type?[e.key,"true"===t]:"number"===e.type?[e.key,Number(t)]:[e.key,t]:[e.key,null]})),a={table_revision:e.revision,values:t};l?await i.V.tables.updateRow.mutate({id:e.id,rowId:l.id,...a,revision:l.revision}):await i.V.tables.createRow.mutate({id:e.id,...a}),v(!1),await o()}catch(e){j((0,s.f)(e))}finally{f(!1)}})()},children:[(0,t.jsx)("h3",{children:l?"Edit row":"Add row"}),(0,t.jsxs)("fieldset",{disabled:y,className:"space-y-3",children:[e.columns.map(e=>(0,t.jsxs)("div",{children:[(0,t.jsxs)("label",{htmlFor:`${h}-${e.key}`,children:[e.key,e.required?" (required)":" (optional)"]}),"boolean"===e.type?(0,t.jsxs)("select",{id:`${h}-${e.key}`,required:e.required,value:m[e.key]??"",onChange:t=>{p(a=>({...a,[e.key]:t.target.value}))},children:[(0,t.jsx)("option",{value:"",children:"No value"}),(0,t.jsx)("option",{value:"true",children:"True"}),(0,t.jsx)("option",{value:"false",children:"False"})]}):(0,t.jsx)(r.f,{id:`${h}-${e.key}`,type:"text"===e.type?"text":e.type,required:e.required,step:"number"===e.type?"any":void 0,maxLength:"text"===e.type?1e4:void 0,value:m[e.key]??"",onChange:t=>{p(a=>({...a,[e.key]:t.target.value}))}})]},e.key)),(0,t.jsxs)("div",{className:"row",children:[(0,t.jsx)(n.f,{type:"submit",children:y?"Saving…":"Save row"}),(0,t.jsx)(n.f,{type:"button",variant:"outline",onClick:c,children:"Cancel"})]})]}),b?(0,t.jsxs)("p",{className:"error",role:"alert",children:[b," After a conflict, cancel this edit, reload rows and definition, then reopen the row to reconcile your changes."]}):void 0]})}function m({table:e,refreshTables:r}){let{canManage:h,isDirty:p,setDirty:y}=(0,d.useWorkspace)(),f=(0,o.h)(),[b,j]=(0,a.useState)(1),[w,k]=(0,a.useState)(),[g,N]=(0,a.useState)(!1),[C,S]=(0,a.useState)(""),[q,A]=(0,a.useState)(!1),$=(0,a.useCallback)(async t=>{let a=await i.V.tables.listRows.query({id:e.id},{signal:t});return{...a,results:a.results.slice((b-1)*50,50*b),next:a.count>50*b}},[e.id,b]),T=(0,l.f)($);async function R(t){if(await f({title:"Delete this row?",description:"The saved values in this row will be permanently deleted.",actionLabel:"Delete row"})){A(!0),S("");try{await i.V.tables.deleteRow.mutate({id:e.id,rowId:t.id,revision:t.revision}),T.data?.results.length===1&&b>1?j(b-1):await T.refresh()}catch(e){S((0,s.f)(e))}finally{A(!1)}}}return(0,t.jsxs)("section",{className:"panel",children:[(0,t.jsxs)("div",{className:"panel-title",children:[(0,t.jsx)("h2",{children:e.name}),(0,t.jsx)(n.f,{disabled:q||void 0!==w||g,onClick:()=>{k("new")},children:"Add row"})]}),(0,t.jsx)(c.f,{...T}),(0,t.jsxs)("div",{className:"row",children:[(0,t.jsx)(n.f,{variant:"outline",disabled:q,onClick:()=>{(async()=>{(!p||await f())&&(y(!1),k(void 0),N(!1),await T.refresh(),await r())})()},children:"Reload rows and definition"}),(0,t.jsxs)("span",{children:[T.data?.count??0," rows · Page ",b]})]}),T.data?.results.length===0?(0,t.jsx)("p",{children:"No rows on this page. Add a row to start collecting data."}):void 0,(0,t.jsx)("div",{className:"overflow-x-auto",children:(0,t.jsxs)("table",{className:"w-full text-left",children:[(0,t.jsxs)("caption",{className:"sr-only",children:["Rows in ",e.name]}),(0,t.jsx)("thead",{children:(0,t.jsxs)("tr",{children:[e.columns.map(e=>(0,t.jsxs)("th",{className:"p-2",scope:"col",children:[e.key," ",(0,t.jsxs)("small",{children:["(",e.type,")"]})]},e.key)),(0,t.jsx)("th",{scope:"col",children:"Actions"})]})}),(0,t.jsx)("tbody",{children:T.data?.results.map(a=>(0,t.jsxs)("tr",{className:"border-t",children:[e.columns.map(e=>(0,t.jsx)("td",{className:"max-w-72 break-words p-2",children:void 0===a.values[e.key]||null===a.values[e.key]?"—":(0,u.A)(a.values[e.key])},e.key)),(0,t.jsx)("td",{children:(0,t.jsxs)("div",{className:"row",children:[(0,t.jsx)(n.f,{variant:"outline",disabled:q||void 0!==w||g,onClick:()=>{k(a)},children:"Edit row"}),(0,t.jsx)(n.f,{variant:"destructive",disabled:q,onClick:()=>{R(a)},children:"Delete row"})]})})]},a.id))})]})}),(0,t.jsxs)("div",{className:"row",children:[(0,t.jsx)(n.f,{variant:"outline",disabled:1===b||void 0!==w,onClick:()=>{j(b-1)},children:"Previous rows"}),(0,t.jsx)(n.f,{variant:"outline",disabled:!T.data?.next||void 0!==w,onClick:()=>{j(b+1)},children:"Next rows"})]}),void 0===w?void 0:(0,t.jsx)(x,{table:e,..."new"===w?{}:{row:w},onCancel:()=>{(async()=>{(!p||await f())&&(y(!1),k(void 0))})()},onSaved:async()=>{k(void 0),await T.refresh()}},"new"===w?"new":w.id),C?(0,t.jsx)("p",{className:"error",role:"alert",children:C}):void 0,h?(0,t.jsxs)("div",{className:"mt-5",children:[(0,t.jsx)(n.f,{variant:"outline",disabled:void 0!==w,onClick:()=>{(async()=>{(!g||!p||await f())&&(y(!1),N(!g))})()},children:g?"Close definition editor":"Edit table definition"}),g?(0,t.jsx)(v,{table:e,onSaved:r}):void 0]}):(0,t.jsx)("p",{className:"small",children:"Owners and admins manage table definitions. Members can edit rows."})]})}e.s(["Tables",0,function(){let{canManage:e,isDirty:r,setDirty:u}=(0,d.useWorkspace)();(0,a.useEffect)(()=>()=>{u(!1)},[u]);let h=(0,o.h)(),[x,p]=(0,a.useState)(1),[y,f]=(0,a.useState)(""),[b,j]=(0,a.useState)(""),[w,k]=(0,a.useState)(!1),g=(0,a.useCallback)(async e=>{let t=await i.V.tables.list.query(void 0,{signal:e});return{...t,results:t.results.slice((x-1)*50,50*x),next:t.count>50*x}},[x]),N=(0,l.f)(g),C=N.data?.results.find(e=>e.id===y);async function S(){if(C&&await h({title:`Delete ${C.name}?`,description:"This permanently deletes the table definition and every row in this table.",actionLabel:"Delete table"})){k(!0),j("");try{await i.V.tables.delete.mutate({id:C.id,revision:C.revision}),u(!1),f(""),N.data?.results.length===1&&x>1?p(x-1):await N.refresh()}catch(e){j((0,s.f)(e))}finally{k(!1)}}}return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("section",{className:"panel",children:[(0,t.jsx)("h2",{children:"Workspace tables"}),(0,t.jsx)("p",{children:"Store shared records in tables with text, number, boolean and date columns."}),(0,t.jsx)(c.f,{...N}),N.isLoading||N.data?.count!==0?void 0:(0,t.jsx)("p",{children:"No tables yet. A workspace owner or admin can create your first table below."}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"workspace-table",children:"Table"}),(0,t.jsxs)("select",{id:"workspace-table",value:C?.id??"",disabled:w,onChange:e=>{let t=e.target.value;(async()=>{(!r||await h())&&(u(!1),f(t))})()},children:[(0,t.jsx)("option",{value:"",children:"Choose a table"}),N.data?.results.map(e=>(0,t.jsx)("option",{value:e.id,children:e.name},e.id))]})]}),(0,t.jsxs)("div",{className:"row",children:[(0,t.jsx)(n.f,{variant:"outline",disabled:1===x||w||r,onClick:()=>{f(""),p(x-1)},children:"Previous tables"}),(0,t.jsxs)("span",{children:["Page ",x]}),(0,t.jsx)(n.f,{variant:"outline",disabled:!N.data?.next||w||r,onClick:()=>{f(""),p(x+1)},children:"Next tables"}),e&&C?(0,t.jsx)(n.f,{variant:"destructive",disabled:w,onClick:()=>{S()},children:"Delete table"}):void 0]}),b?(0,t.jsx)("p",{className:"error",role:"alert",children:b}):void 0]}),C?(0,t.jsx)(m,{table:C,refreshTables:N.refresh},`${C.id}:${String(C.revision)}`):void 0,e&&!C?(0,t.jsx)("section",{className:"panel",children:(0,t.jsx)(v,{onSaved:N.refresh})}):void 0]})}])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,11241,e=>{"use strict";var s=e.i(56420);let i={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};i.node;let t=(0,s.f)(i);e.s(["f",0,t],11241)},51757,e=>{"use strict";var s=e.i(56420);let i={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};i.node;let t=(0,s.f)(i);e.s(["f",0,t],51757)},62368,e=>{"use strict";var s=e.i(56420);let i={name:"download",size:24,node:[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]};i.node;let t=(0,s.f)(i);e.s(["f",0,t],62368)},26091,e=>{"use strict";var s=e.i(56420);let i={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};i.node;let t=(0,s.f)(i);e.s(["f",0,t],26091)},95925,29272,e=>{"use strict";var s=e.i(56420);let i={name:"rotate-ccw",size:24,node:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]};i.node;let t=(0,s.f)(i);e.s(["f",0,t],95925);let a={name:"square",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]};a.node;let r=(0,s.f)(a);e.s(["f",0,r],29272)},66595,e=>{"use strict";var s=e.i(56420);let i={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};i.node;let t=(0,s.f)(i);e.s(["f",0,t],66595)},40192,54105,19877,e=>{"use strict";var s=e.i(22219);e.s(["z",0,s],40192),e.s(["z",0,s],54105),e.s(["z",0,s],19877)},13581,29487,e=>{"use strict";var s=e.i(71645),i=e.i(95813);e.s(["f",0,function(e,t=0){let[a,r]=(0,s.useState)(),[n,l]=(0,s.useState)(""),[c,d]=(0,s.useState)(!0),o=(0,s.useRef)(void 0),u=(0,s.useRef)(!1),h=(0,s.useCallback)(async()=>{o.current?.abort();let s=new AbortController;o.current=s;try{let i=await e(s.signal);if(s.signal.aborted||!u.current)return;r(i),l("")}catch(e){!s.signal.aborted&&u.current&&l((0,i.f)(e))}finally{!s.signal.aborted&&u.current&&d(!1)}},[e]);return(0,s.useEffect)(()=>{u.current=!0,queueMicrotask(()=>{u.current&&h()});let e=t>0?setInterval(()=>{h()},t):void 0;return()=>{u.current=!1,o.current?.abort(),clearInterval(e)}},[h,t]),{data:a,error:n,isLoading:c,refresh:h}}],13581);var t=e.i(18050),a=e.i(19455);e.s(["f",0,function({isLoading:e,error:s,refresh:i}){return(0,t.jsxs)(t.Fragment,{children:[e?(0,t.jsx)("p",{role:"status",children:"Loading workspace data…"}):void 0,s?(0,t.jsxs)("div",{className:"error",role:"alert",children:[(0,t.jsx)("p",{children:s}),(0,t.jsx)(a.f,{variant:"outline",onClick:()=>{i()},children:"Try again"})]}):void 0]})}],29487)},39372,e=>{"use strict";var s=e.i(18050),i=e.i(62368),t=e.i(26091),a=e.i(66595),r=e.i(71645),n=e.i(13581),l=e.i(15080),c=e.i(19455),d=e.i(93479),o=e.i(85951),u=e.i(29487),h=e.i(36174);function p({openRun:e}){let x=(0,n.f)(l.K),[j,f]=(0,r.useState)(""),[m,v]=(0,r.useState)(""),y=x.data?.filter(e=>e.name.toLowerCase().includes(j.toLowerCase()))??[],g=x.data?.find(e=>e.id===m);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("section",{className:"panel",children:[(0,s.jsxs)("div",{className:"panel-title",children:[(0,s.jsx)("h2",{children:"Saved artifacts"}),(0,s.jsxs)("span",{className:"badge",children:[x.data?.length??0," files"]})]}),(0,s.jsx)("p",{className:"small",children:"Markdown, JSON and text produced by your projects and actions."}),(0,s.jsxs)("label",{className:"search-field",children:[(0,s.jsx)(a.f,{size:15}),(0,s.jsx)(d.f,{"aria-label":"Search artifacts",value:j,placeholder:"Search files…",onChange:e=>{f(e.target.value)}})]}),(0,s.jsx)(u.f,{...x}),x.isLoading||0!==y.length?void 0:(0,s.jsxs)("div",{className:"resource-empty",children:[(0,s.jsx)(t.f,{size:30}),(0,s.jsx)("h3",{children:"No artifacts found"}),(0,s.jsx)("p",{children:"Files saved during runs appear here."})]}),y.map(e=>(0,s.jsxs)("div",{className:"resource-row",children:[(0,s.jsx)(t.f,{size:18}),(0,s.jsxs)("div",{children:[(0,s.jsx)("strong",{children:e.name}),(0,s.jsxs)("small",{children:[e.media_type," · ",new Blob([e.content]).size," bytes"]})]}),(0,s.jsx)(c.f,{variant:"outline",size:"sm",onClick:()=>{v(e.id)},children:"Open"})]},e.id))]}),g?(0,s.jsxs)("section",{className:"panel",children:[(0,s.jsxs)("div",{className:"panel-title",children:[(0,s.jsx)("h2",{children:g.name}),(0,s.jsxs)("div",{className:"row",children:[(0,s.jsx)(c.f,{variant:"outline",onClick:()=>{e(g.run)},children:"View producing run"}),(0,s.jsxs)(c.f,{onClick:()=>{(0,h.t)(g)},children:[(0,s.jsx)(i.f,{size:14}),"Download"]})]})]}),g.media_type.includes("markdown")||g.name.endsWith(".md")?(0,s.jsx)(o.f,{content:g.content}):(0,s.jsx)("pre",{children:g.content})]}):void 0]})}var x=e.i(94757);e.s(["default",0,function(){let{openRun:e}=(0,x.useWorkspace)();return(0,s.jsx)(p,{openRun:e})}],39372)},24687,e=>{"use strict";var s=e.i(18050),i=e.i(71645),t=e.i(39689);let a=i.forwardRef(({className:e,...i},a)=>(0,s.jsx)("textarea",{className:(0,t.f)("flex min-h-[60px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...i}));a.displayName="Textarea",e.s(["f",0,a])},12102,e=>{"use strict";var s=e.i(40192),i=e.i(54105),t=e.i(19877),a=e.i(22219),a=a;let r=s.z.record(i.z.string(),t.z.json());e.s(["z",0,function(e){let s=JSON.parse(e);return a.array(r).min(1).max(50).parse(s)},"J",0,function(e){let s=JSON.parse(e);return r.parse(s)}],12102)},44555,e=>{"use strict";var s=e.i(18050),i=e.i(56420);let t={name:"shield-check",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]};t.node;let a=(0,i.f)(t);var r=e.i(71645),n=e.i(73656),l=e.i(95813),c=e.i(13581),d=e.i(15080),o=e.i(19455),u=e.i(29487);e.s(["f",0,function({runId:e,openRun:i}){let t=(0,c.f)(d.i,5e3),[h,p]=(0,r.useState)(""),[x,j]=(0,r.useState)(""),f=t.data?.filter(s=>"pending"===s.status&&(!e||s.run===e))??[],m=async(e,s)=>{p(e),j("");try{await n.V.approvals.decide.mutate({id:e,decision:s}),await t.refresh()}catch(e){j((0,l.f)(e))}finally{p("")}};return(0,s.jsxs)("section",{className:"panel",children:[(0,s.jsxs)("div",{className:"panel-title",children:[(0,s.jsxs)("h2",{children:[(0,s.jsx)(a,{size:18})," ",e?"Run approvals":"Approval queue"]}),(0,s.jsxs)("span",{className:"badge",children:[f.length," pending"]})]}),(0,s.jsx)(u.f,{...t}),x?(0,s.jsx)("p",{className:"error",role:"alert",children:x}):void 0,t.isLoading||0!==f.length?void 0:(0,s.jsxs)("div",{className:"resource-empty",children:[(0,s.jsx)(a,{size:28}),(0,s.jsx)("h3",{children:"All caught up"}),(0,s.jsx)("p",{children:"No decisions are waiting for you."})]}),f.map(e=>(0,s.jsxs)("article",{className:"approval-card",children:[(0,s.jsx)("span",{className:"eyebrow",children:"Human approval required"}),(0,s.jsx)("p",{className:"approval-prompt",children:e.prompt}),(0,s.jsxs)("div",{className:"row",children:[(0,s.jsx)(o.f,{disabled:!!h,onClick:()=>{m(e.id,"approved")},children:h===e.id?"Saving decision…":"Approve"}),(0,s.jsx)(o.f,{variant:"outline",disabled:!!h,onClick:()=>{m(e.id,"denied")},children:"Deny"}),i?(0,s.jsx)(o.f,{variant:"ghost",onClick:()=>{i(e.run)},children:"Inspect run"}):void 0]})]},e.id))]})}],44555)},36174,e=>{"use strict";var s=e.i(18050),i=e.i(11241),t=e.i(62368),a=e.i(95925),r=e.i(29272),n=e.i(71645),l=e.i(73656),c=e.i(95813),d=e.i(13581),o=e.i(15080),u=e.i(19455),h=e.i(85951),p=e.i(10505),x=e.i(29487),j=e.i(90409),f=e.i(59241),m=e.i(12102),v=e.i(75016),y=e.i(93479),g=e.i(24687);function k({id:e}){let[i,t]=(0,n.useState)(""),[a,r]=(0,n.useState)('{"type":"object"}'),[d,o]=(0,n.useState)("{}"),[h,p]=(0,n.useState)(!1),[x,j]=(0,n.useState)(""),[f,b]=(0,n.useState)(""),[w,N]=(0,n.useState)("");async function z(){p(!0),N(""),j("");try{let s=await l.V.runs.promote.mutate({id:e,name:i.trim(),input_schema:(0,m.J)(a),output_schema:(0,m.J)(d)});b(s.action),j(`Saved exact run source as version ${String(s.version.number)} of ${i.trim()} (action ${s.action}).`)}catch(e){N((0,c.f)(e))}finally{p(!1)}}return(0,s.jsxs)("details",{children:[(0,s.jsx)("summary",{children:"Promote accepted source to a saved action"}),(0,s.jsx)("p",{children:"The server copies this run’s exact source and SDK provenance. Run inputs remain examples and are not saved as defaults."}),(0,s.jsxs)("label",{children:["New action name",(0,s.jsx)(y.f,{value:i,disabled:h,onChange:e=>{t(e.target.value)}})]}),(0,s.jsxs)("label",{children:["Input schema (JSON)",(0,s.jsx)(g.f,{className:"code",value:a,disabled:h,onChange:e=>{r(e.target.value)}})]}),(0,s.jsxs)("label",{children:["Output schema (JSON)",(0,s.jsx)(g.f,{className:"code",value:d,disabled:h,onChange:e=>{o(e.target.value)}})]}),(0,s.jsx)(u.f,{disabled:h||!i.trim(),onClick:()=>{z()},children:"Promote exact source"}),w?(0,s.jsx)("p",{role:"alert",className:"error",children:w}):null,x?(0,s.jsx)("p",{role:"status",children:x}):null,f?(0,s.jsx)(v.f,{href:`/actions/?action=${encodeURIComponent(f)}`,children:"Open saved action"}):null]})}var b=e.i(44555);function w(e){let s=new Blob([e.content],{type:e.media_type}),i=URL.createObjectURL(s),t=document.createElement("a");t.href=i,t.download=e.name,t.click(),URL.revokeObjectURL(i)}function N({run:e,hasCheckReport:i}){return i?(0,s.jsx)(f.f,{output:e.output}):"succeeded"!==e.status?(0,s.jsx)("p",{children:p.B.includes(e.status)?"This run is still in progress. Its result will appear here.":`This run ${e.status}. Review the trace before retrying.`}):"chat"===e.operation?(0,s.jsx)(h.f,{content:(0,p.A)(e.output)}):(0,s.jsx)("pre",{children:(0,p.A)(e.output)||"Completed without output."})}let z={session:"Session result",test:"Mocked test results",validate:"Semantic validation diagnostics"};e.s(["T",0,function({id:e,projects:h,back:f,openRun:m}){let v=(0,j.f)(e),y=(0,d.f)(o.K),[g,A]=(0,n.useState)(!1),[C,S]=(0,n.useState)(""),_=v.data?.run,O=void 0!==_&&("test"===_.operation||"validate"===_.operation)&&null!==_.output&&"object"==typeof _.output&&Object.hasOwn(_.output,"result"),R=async s=>{A(!0),S("");try{if("cancel"===s)await l.V.runs.cancel.mutate({id:e});else{let s=await l.V.runs.retry.mutate({id:e,idempotency_key:crypto.randomUUID()});m(s.id)}await v.refresh()}catch(e){S((0,c.f)(e))}finally{A(!1)}};return(0,s.jsxs)("div",{className:"run-detail",children:[(0,s.jsxs)(u.f,{variant:"ghost",onClick:f,children:[(0,s.jsx)(i.f,{size:14})," All runs"]}),(0,s.jsx)(x.f,{...v}),C?(0,s.jsx)("p",{className:"error",role:"alert",children:C}):void 0,_?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("section",{className:"panel",children:[(0,s.jsxs)("div",{className:"panel-title",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("p",{className:"eyebrow",children:["RUN ",_.id.slice(0,8)]}),(0,s.jsxs)("h2",{children:[h.find(e=>e.id===_.project)?.name??"Project"," ","· ",(0,p.T)(_.operation)]})]}),(0,s.jsxs)("div",{className:"row",children:[(0,s.jsx)(p.k,{status:_.status}),p.B.includes(_.status)?(0,s.jsxs)(u.f,{variant:"outline",disabled:g||_.cancel_requested,onClick:()=>{R("cancel")},children:[(0,s.jsx)(r.f,{size:13}),_.cancel_requested?"Cancellation requested":"Cancel run"]}):void 0,["action","code","validate","test"].includes(_.operation)&&["failed","interrupted","cancelled"].includes(_.status)?(0,s.jsxs)(u.f,{variant:"outline",disabled:g,onClick:()=>{R("retry")},children:[(0,s.jsx)(a.f,{size:13})," Retry run"]}):void 0]})]}),(0,s.jsxs)("p",{className:"small",children:["Created ",new Date(_.created_at).toLocaleString()," · Updated"," ",new Date(_.updated_at).toLocaleString()]}),_.retry_of?(0,s.jsx)(u.f,{variant:"link",onClick:()=>{m(_.retry_of??"")},children:"View original run"}):void 0,_.error?(0,s.jsx)("div",{className:"error",role:"alert",children:_.error}):void 0,(0,s.jsxs)("dl",{children:[(0,s.jsx)("dt",{children:"Origin"}),(0,s.jsxs)("dd",{children:[_.origin," ",_.origin_reference]}),(0,s.jsx)("dt",{children:"Originating client"}),(0,s.jsx)("dd",{children:_.client_token??"No client token (historical attribution may be unknown)"}),(0,s.jsx)("dt",{children:"SDK revision"}),(0,s.jsx)("dd",{children:(0,p.A)(_.sdk_revision)||"Unknown"}),(0,s.jsx)("dt",{children:"Configuration revision"}),(0,s.jsx)("dd",{children:(0,p.A)(_.configuration_revision)||"Unknown"}),(0,s.jsx)("dt",{children:"Immutable action version"}),(0,s.jsx)("dd",{children:_.action_version??"One-off source / none"}),(0,s.jsx)("dt",{children:"Source digest"}),(0,s.jsx)("dd",{children:(0,p.A)(_.source_digest)||"Unknown"})]}),null===_.source?null:(0,s.jsxs)("details",{children:[(0,s.jsx)("summary",{children:"Accepted source"}),(0,s.jsx)("pre",{children:(0,p.A)(_.source)})]}),"code"===_.operation&&null!==_.source?(0,s.jsx)(k,{id:_.id},_.id):null,(0,s.jsx)("h3",{children:z[_.operation]??"Outcome"}),(0,s.jsx)(N,{run:_,hasCheckReport:O}),(0,s.jsxs)("details",{children:[(0,s.jsx)("summary",{children:"Run inputs"}),(0,s.jsx)("pre",{children:(0,p.A)(_.inputs)})]})]}),"waiting_approval"===_.status?(0,s.jsx)(b.f,{runId:e}):void 0,(0,s.jsxs)("section",{className:"panel",children:[(0,s.jsx)("h2",{children:"Artifacts"}),(0,s.jsx)(x.f,{...y}),y.data?.filter(s=>s.run===e).length===0?(0,s.jsx)("p",{className:"small",children:"No artifacts were saved by this run."}):void 0,y.data?.filter(s=>s.run===e).map(e=>(0,s.jsxs)("details",{children:[(0,s.jsx)("summary",{children:e.name}),(0,s.jsxs)(u.f,{variant:"outline",size:"sm",onClick:()=>{w(e)},children:[(0,s.jsx)(t.f,{size:13}),"Download"]}),(0,s.jsx)("pre",{children:e.content})]},e.id))]}),"session"===_.operation?null:(0,s.jsxs)("section",{className:"panel",children:[(0,s.jsx)("h2",{children:"Execution trace"}),v.data?.events.length===0?(0,s.jsx)("p",{className:"small",children:"Waiting for the first execution event."}):void 0,(0,s.jsx)("ol",{className:"run-timeline",children:v.data?.events.map(e=>(0,s.jsxs)("li",{children:[(0,s.jsx)("span",{className:"timeline-dot"}),(0,s.jsxs)("details",{children:[(0,s.jsxs)("summary",{children:[(0,s.jsx)("strong",{children:e.kind.replaceAll("."," ")}),(0,s.jsx)("time",{children:new Date(e.created_at).toLocaleTimeString()})]}),(0,s.jsx)("pre",{children:(0,p.A)(e.data)})]})]},e.sequence))})]})]}):void 0]})},"t",0,w],36174)},10505,79432,e=>{"use strict";var s=e.i(18050),i=e.i(56420);let t={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]};t.node;let a=(0,i.f)(t);e.s(["f",0,a],79432);var r=e.i(51757);let n={name:"clock-3",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]]};n.node;let l=(0,i.f)(n),c={name:"shield-exclamation-point",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],aliases:["shield-alert"]};c.node;let d=(0,i.f)(c),o={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-circle"]};o.node;let u=(0,i.f)(o);function h(e){return({chat:"Chat task",code:"Code execution",session:"Execution session",action:"Action run",validate:"Code validation",test:"Action tests"})[e]??e.replaceAll("_"," ")}e.s(["k",0,function({status:e}){let i={succeeded:r.f,waiting_approval:d,running:a,queued:l,failed:u,cancelled:u,interrupted:u}[e]??l;return(0,s.jsxs)("span",{className:`run-status status-${e}`,children:[(0,s.jsx)(i,{size:13,"aria-hidden":"true"}),e.replaceAll("_"," ")]})},"B",0,["queued","running","waiting_approval"],"A",0,function(e){return void 0===e?"":"string"==typeof e?e:JSON.stringify(e,void 0,2)},"N",0,function(e,s){let i=s.find(s=>s.id===e.project)?.name??"Project";return"chat"===e.operation?`${i} \xb7 ${(function(e,s){if(null!==e&&"object"==typeof e&&Object.hasOwn(e,s)){let i=Reflect.get(e,s);if("string"==typeof i)return i}return""})(e.inputs,"message").slice(0,70)}`:`${i} \xb7 ${h(e.operation)}`},"T",0,h],10505)},90409,59241,e=>{"use strict";var s=e.i(71645),i=e.i(73656),t=e.i(13581);e.s(["f",0,function(e){let a=(0,s.useCallback)(async s=>{let[t,a]=await Promise.all([i.V.runs.get.query({id:e},{signal:s}),i.V.runs.events.query({id:e},{signal:s})]);return{run:t,events:a}},[e]),r=(0,t.f)(a,3e3),n=r.data?.run.id===e?r.data:void 0,l=void 0!==n,{refresh:c}=r;return(0,s.useEffect)(()=>{if(l)return function(e,s,t=i.V.runs.stream.subscribe){let a,r=!0,n=()=>{r&&!a&&(a=setTimeout(()=>{a=void 0,r&&s()},400))},l=t({id:e},{onData:n,onComplete(){r&&(clearTimeout(a),a=void 0,s())},onError:n});return()=>{r=!1,clearTimeout(a),l.unsubscribe()}}(e,c)},[e,l,c]),{...r,data:n}}],90409);var a=e.i(18050),r=e.i(10505);function n(e){return"object"!=typeof e||null===e||Array.isArray(e)?void 0:e}e.s(["f",0,function({output:e}){let s=n(e),i=n(s?.result)??s;if(!i)return null;let t=n(i.validation)??i,l=Array.isArray(t.diagnostics)?t.diagnostics:[],c=Array.isArray(i.cases)?i.cases:[];return(0,a.jsxs)("div",{children:["boolean"==typeof t.valid?(0,a.jsx)("p",{children:t.valid?"Source passed semantic validation.":"Source failed semantic validation."}):null,l.length>0?(0,a.jsx)("ul",{children:l.map((e,s)=>{let i=n(e);return(0,a.jsxs)("li",{children:["Line ",(0,r.A)(i?.line),", column"," ",(0,r.A)(i?.column),":"," ",(0,r.A)(i?.message)]},s)})}):null,c.length>0?(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Case"}),(0,a.jsx)("th",{children:"Result"}),(0,a.jsx)("th",{children:"Details"})]})}),(0,a.jsx)("tbody",{children:c.map((e,s)=>{let i=n(e);return(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:(0,r.A)(i?.name)}),(0,a.jsx)("td",{children:i?.passed===!0?"Passed":"Failed"}),(0,a.jsxs)("td",{children:["string"==typeof i?.error&&""!==i.error?(0,a.jsx)("p",{children:i.error}):null,Array.isArray(i?.violations)?(0,a.jsx)("pre",{children:(0,r.A)(i.violations)}):null,(0,a.jsxs)("details",{children:[(0,a.jsx)("summary",{children:"Actual output and logs"}),(0,a.jsx)("pre",{children:(0,r.A)(i?.actual)}),(0,a.jsx)("pre",{children:(0,r.A)(i?.logs)})]})]})]},s)})})]}):null]})}],59241)}]);
|