An open-source, faster Devin alternative
TypeScript
feat: make infrastructure the default product (#604)
Mohamed Habib5ab3e23289e8
diff --git a/cloudflare-workers/api-edge/src/cli_auth.test.ts b/cloudflare-workers/api-edge/src/cli_auth.test.tsindex 7d27a60b..c94f2ed8 100644--- a/cloudflare-workers/api-edge/src/cli_auth.test.ts+++ b/cloudflare-workers/api-edge/src/cli_auth.test.ts@@ -537,7 +537,7 @@ describe("CLI device authorization edge contract", () => {expect(userInsert).toBeDefined();expect(userInsert?.sql).toContain("durable_sessions_enabled");expect(userInsert?.sql).toContain("infrastructure_enabled");- expect(userInsert?.sql).toMatch(/VALUES\s*\(\?1, \?2, \?3, \?4, \?5, 1, 1\)/);+ expect(userInsert?.sql).toMatch(/VALUES\s*\(\?1, \?2, \?3, \?4, \?5, 0, 1\)/);expect(orgInsert?.args[3]).toBe("azure-us-east-2-a");expect(membershipInsert?.args[0]).toBe(body.org.id);expect(membershipInsert?.args[1]).toBe(body.user.id);diff --git a/cloudflare-workers/api-edge/src/index.ts b/cloudflare-workers/api-edge/src/index.tsindex 90898f0e..ba6ef98e 100644--- a/cloudflare-workers/api-edge/src/index.ts+++ b/cloudflare-workers/api-edge/src/index.ts@@ -1954,7 +1954,7 @@ async function provisionWorkOSIdentity(durable_sessions_enabled,infrastructure_enabled)- VALUES (?1, ?2, ?3, ?4, ?5, 1, 1)+ VALUES (?1, ?2, ?3, ?4, ?5, 0, 1)ON CONFLICT(email) DO UPDATE SET workos_user_id = excluded.workos_user_id`,).bind(candidateID, profile.email, profile.id, displayName, nowSec)diff --git a/web/package-lock.json b/web/package-lock.jsonindex 7e0e0599..99c87f1f 100644--- a/web/package-lock.json+++ b/web/package-lock.json@@ -24,9 +24,7 @@"radix-ui": "^1.6.0","react": "^19.2.7","react-dom": "^19.2.7",- "react-markdown": "^10.1.0","react-router-dom": "^7.18.0",- "remark-gfm": "^4.0.1","sonner": "^2.0.7","tailwind-merge": "^3.6.0","tw-animate-css": "^1.4.0",@@ -3564,15 +3562,6 @@"assertion-error": "^2.0.1"}},- "node_modules/@types/debug": {- "version": "4.1.13",- "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.13.tgz",- "integrity": "sha512-KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw==",- "license": "MIT",- "dependencies": {- "@types/ms": "*"- }- },"node_modules/@types/deep-eql": {"version": "4.0.2","resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz",@@ -3584,26 +3573,9 @@"version": "1.0.9","resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz","integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==",+ "dev": true,"license": "MIT"},- "node_modules/@types/estree-jsx": {- "version": "1.0.5",- "resolved": "https://registry.npmjs.org/@types/estree-jsx/-/estree-jsx-1.0.5.tgz",- "integrity": "sha512-52CcUVNFyfb1A2ALocQw/Dd1BQFNmSdkuC3BkZ6iqhdMfQz7JWOFRuJFloOzjk+6WijU56m9oKXFAXc7o3Towg==",- "license": "MIT",- "dependencies": {- "@types/estree": "*"- }- },- "node_modules/@types/hast": {- "version": "3.0.5",- "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.5.tgz",- "integrity": "sha512-rp/ezSWaD1m44dPKICGhiskI13nVr7qTloFwDa/IYkhhf5nzwP+zIQcIJh3WIFSBOy/H1PzB40jPjMDksN4F+g==",- "license": "MIT",- "dependencies": {- "@types/unist": "*"- }- },"node_modules/@types/json-schema": {"version": "7.0.15","resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",@@ -3611,21 +3583,6 @@"dev": true,"license": "MIT"},- "node_modules/@types/mdast": {- "version": "4.0.4",- "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz",- "integrity": "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==",- "license": "MIT",- "dependencies": {- "@types/unist": "*"- }- },- "node_modules/@types/ms": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz",- "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==",- "license": "MIT"- },"node_modules/@types/node": {"version": "26.1.1","resolved": "https://registry.npmjs.org/@types/node/-/node-26.1.1.tgz",@@ -3640,6 +3597,7 @@"version": "19.2.17","resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.17.tgz","integrity": "sha512-MXfmqaVPEVgkBT/aY0aGCkRWWtByiYQXo3xdQ8r5RzuFrPiRn8Gar2tQdXSUQ2GKV3bkXckek89V8wQBY2Q/Aw==",+ "devOptional": true,"license": "MIT","dependencies": {"csstype": "^3.2.2"@@ -3662,12 +3620,6 @@"license": "MIT","optional": true},- "node_modules/@types/unist": {- "version": "3.0.3",- "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz",- "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==",- "license": "MIT"- },"node_modules/@types/validate-npm-package-name": {"version": "4.0.2","resolved": "https://registry.npmjs.org/@types/validate-npm-package-name/-/validate-npm-package-name-4.0.2.tgz",@@ -3948,12 +3900,6 @@"url": "https://opencollective.com/eslint"}},- "node_modules/@ungap/structured-clone": {- "version": "1.3.3",- "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.3.tgz",- "integrity": "sha512-60YRaenCQcVjYEKOcG824+DRGGIQ3VKErcBoAEDJZz5bKIs2ZG+X/H9Nk+Q6EVkwJk5QNApxbrc5QtBSwtrXAg==",- "license": "ISC"- },"node_modules/@vercel/oidc": {"version": "3.2.0","resolved": "https://registry.npmjs.org/@vercel/oidc/-/oidc-3.2.0.tgz",@@ -4464,16 +4410,6 @@"node": ">= 0.4"}},- "node_modules/bail": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz",- "integrity": "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },"node_modules/balanced-match": {"version": "4.0.4","resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz",@@ -4713,16 +4649,6 @@],"license": "CC-BY-4.0"},- "node_modules/ccount": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz",- "integrity": "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },"node_modules/chai": {"version": "6.2.2","resolved": "https://registry.npmjs.org/chai/-/chai-6.2.2.tgz",@@ -4746,46 +4672,6 @@"url": "https://github.com/chalk/chalk?sponsor=1"}},- "node_modules/character-entities": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz",- "integrity": "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/character-entities-html4": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-2.1.0.tgz",- "integrity": "sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/character-entities-legacy": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz",- "integrity": "sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/character-reference-invalid": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-2.0.1.tgz",- "integrity": "sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },"node_modules/class-variance-authority": {"version": "0.7.1","resolved": "https://registry.npmjs.org/class-variance-authority/-/class-variance-authority-0.7.1.tgz",@@ -4863,16 +4749,6 @@"dev": true,"license": "MIT"},- "node_modules/comma-separated-tokens": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz",- "integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },"node_modules/commander": {"version": "14.0.3","resolved": "https://registry.npmjs.org/commander/-/commander-14.0.3.tgz",@@ -5115,6 +4991,7 @@"version": "3.2.3","resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz","integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",+ "devOptional": true,"license": "MIT"},"node_modules/damerau-levenshtein": {@@ -5198,6 +5075,7 @@"version": "4.4.3","resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz","integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",+ "dev": true,"license": "MIT","dependencies": {"ms": "^2.1.3"@@ -5211,19 +5089,6 @@}}},- "node_modules/decode-named-character-reference": {- "version": "1.3.0",- "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.3.0.tgz",- "integrity": "sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q==",- "license": "MIT",- "dependencies": {- "character-entities": "^2.0.0"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },"node_modules/dedent": {"version": "1.7.2","resolved": "https://registry.npmjs.org/dedent/-/dedent-1.7.2.tgz",@@ -5370,19 +5235,6 @@"integrity": "sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==","license": "MIT"},- "node_modules/devlop": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz",- "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==",- "license": "MIT",- "dependencies": {- "dequal": "^2.0.0"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },"node_modules/diff": {"version": "8.0.4","resolved": "https://registry.npmjs.org/diff/-/diff-8.0.4.tgz",@@ -6178,16 +6030,6 @@"node": ">=4.0"}},- "node_modules/estree-util-is-identifier-name": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/estree-util-is-identifier-name/-/estree-util-is-identifier-name-3.0.0.tgz",- "integrity": "sha512-hFtqIDZTIUZ9BXLb8y4pYGyk6+wekIivNVTcmvk8NoOh+VeRn5y6cEHzbURrWbfp1fIqdVipilzj+lfaadNZmg==",- "license": "MIT",- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },"node_modules/estree-walker": {"version": "3.0.3","resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",@@ -6340,12 +6182,6 @@"express": ">= 4.11"}},- "node_modules/extend": {- "version": "3.0.2",- "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",- "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==",- "license": "MIT"- },"node_modules/fast-deep-equal": {"version": "3.1.3","resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",@@ -6955,46 +6791,6 @@"node": ">= 0.4"}},- "node_modules/hast-util-to-jsx-runtime": {- "version": "2.3.6",- "resolved": "https://registry.npmjs.org/hast-util-to-jsx-runtime/-/hast-util-to-jsx-runtime-2.3.6.tgz",- "integrity": "sha512-zl6s8LwNyo1P9uw+XJGvZtdFF1GdAkOg8ujOw+4Pyb76874fLps4ueHXDhXWdk6YHQ6OgUtinliG7RsYvCbbBg==",- "license": "MIT",- "dependencies": {- "@types/estree": "^1.0.0",- "@types/hast": "^3.0.0",- "@types/unist": "^3.0.0",- "comma-separated-tokens": "^2.0.0",- "devlop": "^1.0.0",- "estree-util-is-identifier-name": "^3.0.0",- "hast-util-whitespace": "^3.0.0",- "mdast-util-mdx-expression": "^2.0.0",- "mdast-util-mdx-jsx": "^3.0.0",- "mdast-util-mdxjs-esm": "^2.0.0",- "property-information": "^7.0.0",- "space-separated-tokens": "^2.0.0",- "style-to-js": "^1.0.0",- "unist-util-position": "^5.0.0",- "vfile-message": "^4.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/hast-util-whitespace": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz",- "integrity": "sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==",- "license": "MIT",- "dependencies": {- "@types/hast": "^3.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },"node_modules/hermes-estree": {"version": "0.25.1","resolved": "https://registry.npmjs.org/hermes-estree/-/hermes-estree-0.25.1.tgz",@@ -7022,16 +6818,6 @@"node": ">=16.9.0"}},- "node_modules/html-url-attributes": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/html-url-attributes/-/html-url-attributes-3.0.1.tgz",- "integrity": "sha512-ol6UPyBWqsrO6EJySPz2O7ZSr856WDrEzM5zMqp+FJJLGMW35cLYmmZnl0vztAZxRUoNZJFTCohfjuIJ8I4QBQ==",- "license": "MIT",- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },"node_modules/http-errors": {"version": "2.0.1","resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz",@@ -7124,12 +6910,6 @@"dev": true,"license": "ISC"},- "node_modules/inline-style-parser": {- "version": "0.2.7",- "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.2.7.tgz",- "integrity": "sha512-Nb2ctOyNR8DqQoR0OwRG95uNWIC0C1lCgf5Naz5H6Ji72KZ8OcFZLz2P5sNgwlyoJ8Yif11oMuYs5pBQa86csA==",- "license": "MIT"- },"node_modules/internal-slot": {"version": "1.1.0","resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.1.0.tgz",@@ -7165,30 +6945,6 @@"node": ">= 0.10"}},- "node_modules/is-alphabetical": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-2.0.1.tgz",- "integrity": "sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/is-alphanumerical": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-2.0.1.tgz",- "integrity": "sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw==",- "license": "MIT",- "dependencies": {- "is-alphabetical": "^2.0.0",- "is-decimal": "^2.0.0"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },"node_modules/is-array-buffer": {"version": "3.0.5","resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.5.tgz",@@ -7315,16 +7071,6 @@"url": "https://github.com/sponsors/ljharb"}},- "node_modules/is-decimal": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-2.0.1.tgz",- "integrity": "sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },"node_modules/is-docker": {"version": "3.0.0","resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz",@@ -7416,16 +7162,6 @@"node": ">=0.10.0"}},- "node_modules/is-hexadecimal": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-2.0.1.tgz",- "integrity": "sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },"node_modules/is-in-ssh": {"version": "1.0.0","resolved": "https://registry.npmjs.org/is-in-ssh/-/is-in-ssh-1.0.0.tgz",@@ -7538,6 +7274,7 @@"version": "4.1.0","resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz","integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==",+ "dev": true,"license": "MIT","engines": {"node": ">=12"@@ -8289,16 +8026,6 @@"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/longest-streak": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz",- "integrity": "sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },"node_modules/lru-cache": {"version": "5.1.1","resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",@@ -8328,16 +8055,6 @@"@jridgewell/sourcemap-codec": "^1.5.5"}},- "node_modules/markdown-table": {- "version": "3.0.4",- "resolved": "https://registry.npmjs.org/markdown-table/-/markdown-table-3.0.4.tgz",- "integrity": "sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },"node_modules/math-intrinsics": {"version": "1.1.0","resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",@@ -8348,943 +8065,98 @@"node": ">= 0.4"}},- "node_modules/mdast-util-find-and-replace": {- "version": "3.0.2",- "resolved": "https://registry.npmjs.org/mdast-util-find-and-replace/-/mdast-util-find-and-replace-3.0.2.tgz",- "integrity": "sha512-Tmd1Vg/m3Xz43afeNxDIhWRtFZgM2VLyaf4vSTYwudTyeuTneoL3qtWMA5jeLyz/O1vDJmmV4QuScFCA2tBPwg==",+ "node_modules/media-typer": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz",+ "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==",+ "dev": true,"license": "MIT",- "dependencies": {- "@types/mdast": "^4.0.0",- "escape-string-regexp": "^5.0.0",- "unist-util-is": "^6.0.0",- "unist-util-visit-parents": "^6.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"+ "engines": {+ "node": ">= 0.8"}},- "node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz",- "integrity": "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==",+ "node_modules/merge-descriptors": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz",+ "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==",+ "dev": true,"license": "MIT","engines": {- "node": ">=12"+ "node": ">=18"},"funding": {"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/mdast-util-from-markdown": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-2.0.3.tgz",- "integrity": "sha512-W4mAWTvSlKvf8L6J+VN9yLSqQ9AOAAvHuoDAmPkz4dHf553m5gVj2ejadHJhoJmcmxEnOv6Pa8XJhpxE93kb8Q==",- "license": "MIT",- "dependencies": {- "@types/mdast": "^4.0.0",- "@types/unist": "^3.0.0",- "decode-named-character-reference": "^1.0.0",- "devlop": "^1.0.0",- "mdast-util-to-string": "^4.0.0",- "micromark": "^4.0.0",- "micromark-util-decode-numeric-character-reference": "^2.0.0",- "micromark-util-decode-string": "^2.0.0",- "micromark-util-normalize-identifier": "^2.0.0",- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0",- "unist-util-stringify-position": "^4.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }+ "node_modules/merge-stream": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",+ "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==",+ "dev": true,+ "license": "MIT"},- "node_modules/mdast-util-gfm": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/mdast-util-gfm/-/mdast-util-gfm-3.1.0.tgz",- "integrity": "sha512-0ulfdQOM3ysHhCJ1p06l0b0VKlhU0wuQs3thxZQagjcjPrlFRqY215uZGHHJan9GEAXd9MbfPjFJz+qMkVR6zQ==",+ "node_modules/merge2": {+ "version": "1.4.1",+ "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",+ "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",+ "dev": true,"license": "MIT",- "dependencies": {- "mdast-util-from-markdown": "^2.0.0",- "mdast-util-gfm-autolink-literal": "^2.0.0",- "mdast-util-gfm-footnote": "^2.0.0",- "mdast-util-gfm-strikethrough": "^2.0.0",- "mdast-util-gfm-table": "^2.0.0",- "mdast-util-gfm-task-list-item": "^2.0.0",- "mdast-util-to-markdown": "^2.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"+ "engines": {+ "node": ">= 8"}},- "node_modules/mdast-util-gfm-autolink-literal": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-2.0.1.tgz",- "integrity": "sha512-5HVP2MKaP6L+G6YaxPNjuL0BPrq9orG3TsrZ9YXbA3vDw/ACI4MEsnoDpn6ZNm7GnZgtAcONJyPhOP8tNJQavQ==",+ "node_modules/micromatch": {+ "version": "4.0.8",+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",+ "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",+ "dev": true,"license": "MIT","dependencies": {- "@types/mdast": "^4.0.0",- "ccount": "^2.0.0",- "devlop": "^1.0.0",- "mdast-util-find-and-replace": "^3.0.0",- "micromark-util-character": "^2.0.0"+ "braces": "^3.0.3",+ "picomatch": "^2.3.1"},- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"+ "engines": {+ "node": ">=8.6"}},- "node_modules/mdast-util-gfm-footnote": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/mdast-util-gfm-footnote/-/mdast-util-gfm-footnote-2.1.0.tgz",- "integrity": "sha512-sqpDWlsHn7Ac9GNZQMeUzPQSMzR6Wv0WKRNvQRg0KqHh02fpTz69Qc1QSseNX29bhz1ROIyNyxExfawVKTm1GQ==",+ "node_modules/micromatch/node_modules/picomatch": {+ "version": "2.3.2",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz",+ "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==",+ "dev": true,"license": "MIT",- "dependencies": {- "@types/mdast": "^4.0.0",- "devlop": "^1.1.0",- "mdast-util-from-markdown": "^2.0.0",- "mdast-util-to-markdown": "^2.0.0",- "micromark-util-normalize-identifier": "^2.0.0"+ "engines": {+ "node": ">=8.6"},"funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"+ "url": "https://github.com/sponsors/jonschlinkert"}},- "node_modules/mdast-util-gfm-strikethrough": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/mdast-util-gfm-strikethrough/-/mdast-util-gfm-strikethrough-2.0.0.tgz",- "integrity": "sha512-mKKb915TF+OC5ptj5bJ7WFRPdYtuHv0yTRxK2tJvi+BDqbkiG7h7u/9SI89nRAYcmap2xHQL9D+QG/6wSrTtXg==",+ "node_modules/mime-db": {+ "version": "1.54.0",+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz",+ "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==",+ "dev": true,"license": "MIT",- "dependencies": {- "@types/mdast": "^4.0.0",- "mdast-util-from-markdown": "^2.0.0",- "mdast-util-to-markdown": "^2.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"+ "engines": {+ "node": ">= 0.6"}},- "node_modules/mdast-util-gfm-table": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/mdast-util-gfm-table/-/mdast-util-gfm-table-2.0.0.tgz",- "integrity": "sha512-78UEvebzz/rJIxLvE7ZtDd/vIQ0RHv+3Mh5DR96p7cS7HsBhYIICDBCu8csTNWNO6tBWfqXPWekRuj2FNOGOZg==",+ "node_modules/mime-types": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz",+ "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==",+ "dev": true,"license": "MIT","dependencies": {- "@types/mdast": "^4.0.0",- "devlop": "^1.0.0",- "markdown-table": "^3.0.0",- "mdast-util-from-markdown": "^2.0.0",- "mdast-util-to-markdown": "^2.0.0"+ "mime-db": "^1.54.0"+ },+ "engines": {+ "node": ">=18"},"funding": {"type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/mdast-util-gfm-task-list-item": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/mdast-util-gfm-task-list-item/-/mdast-util-gfm-task-list-item-2.0.0.tgz",- "integrity": "sha512-IrtvNvjxC1o06taBAVJznEnkiHxLFTzgonUdy8hzFVeDun0uTjxxrRGVaNFqkU1wJR3RBPEfsxmU6jDWPofrTQ==",- "license": "MIT",- "dependencies": {- "@types/mdast": "^4.0.0",- "devlop": "^1.0.0",- "mdast-util-from-markdown": "^2.0.0",- "mdast-util-to-markdown": "^2.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/mdast-util-mdx-expression": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/mdast-util-mdx-expression/-/mdast-util-mdx-expression-2.0.1.tgz",- "integrity": "sha512-J6f+9hUp+ldTZqKRSg7Vw5V6MqjATc+3E4gf3CFNcuZNWD8XdyI6zQ8GqH7f8169MM6P7hMBRDVGnn7oHB9kXQ==",- "license": "MIT",- "dependencies": {- "@types/estree-jsx": "^1.0.0",- "@types/hast": "^3.0.0",- "@types/mdast": "^4.0.0",- "devlop": "^1.0.0",- "mdast-util-from-markdown": "^2.0.0",- "mdast-util-to-markdown": "^2.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/mdast-util-mdx-jsx": {- "version": "3.2.0",- "resolved": "https://registry.npmjs.org/mdast-util-mdx-jsx/-/mdast-util-mdx-jsx-3.2.0.tgz",- "integrity": "sha512-lj/z8v0r6ZtsN/cGNNtemmmfoLAFZnjMbNyLzBafjzikOM+glrjNHPlf6lQDOTccj9n5b0PPihEBbhneMyGs1Q==",- "license": "MIT",- "dependencies": {- "@types/estree-jsx": "^1.0.0",- "@types/hast": "^3.0.0",- "@types/mdast": "^4.0.0",- "@types/unist": "^3.0.0",- "ccount": "^2.0.0",- "devlop": "^1.1.0",- "mdast-util-from-markdown": "^2.0.0",- "mdast-util-to-markdown": "^2.0.0",- "parse-entities": "^4.0.0",- "stringify-entities": "^4.0.0",- "unist-util-stringify-position": "^4.0.0",- "vfile-message": "^4.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/mdast-util-mdxjs-esm": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/mdast-util-mdxjs-esm/-/mdast-util-mdxjs-esm-2.0.1.tgz",- "integrity": "sha512-EcmOpxsZ96CvlP03NghtH1EsLtr0n9Tm4lPUJUBccV9RwUOneqSycg19n5HGzCf+10LozMRSObtVr3ee1WoHtg==",- "license": "MIT",- "dependencies": {- "@types/estree-jsx": "^1.0.0",- "@types/hast": "^3.0.0",- "@types/mdast": "^4.0.0",- "devlop": "^1.0.0",- "mdast-util-from-markdown": "^2.0.0",- "mdast-util-to-markdown": "^2.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/mdast-util-phrasing": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-4.1.0.tgz",- "integrity": "sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==",- "license": "MIT",- "dependencies": {- "@types/mdast": "^4.0.0",- "unist-util-is": "^6.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/mdast-util-to-hast": {- "version": "13.2.1",- "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.2.1.tgz",- "integrity": "sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA==",- "license": "MIT",- "dependencies": {- "@types/hast": "^3.0.0",- "@types/mdast": "^4.0.0",- "@ungap/structured-clone": "^1.0.0",- "devlop": "^1.0.0",- "micromark-util-sanitize-uri": "^2.0.0",- "trim-lines": "^3.0.0",- "unist-util-position": "^5.0.0",- "unist-util-visit": "^5.0.0",- "vfile": "^6.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/mdast-util-to-markdown": {- "version": "2.1.2",- "resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-2.1.2.tgz",- "integrity": "sha512-xj68wMTvGXVOKonmog6LwyJKrYXZPvlwabaryTjLh9LuvovB/KAH+kvi8Gjj+7rJjsFi23nkUxRQv1KqSroMqA==",- "license": "MIT",- "dependencies": {- "@types/mdast": "^4.0.0",- "@types/unist": "^3.0.0",- "longest-streak": "^3.0.0",- "mdast-util-phrasing": "^4.0.0",- "mdast-util-to-string": "^4.0.0",- "micromark-util-classify-character": "^2.0.0",- "micromark-util-decode-string": "^2.0.0",- "unist-util-visit": "^5.0.0",- "zwitch": "^2.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/mdast-util-to-string": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-4.0.0.tgz",- "integrity": "sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==",- "license": "MIT",- "dependencies": {- "@types/mdast": "^4.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/media-typer": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz",- "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 0.8"- }- },- "node_modules/merge-descriptors": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz",- "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=18"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/merge-stream": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",- "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==",- "dev": true,- "license": "MIT"- },- "node_modules/merge2": {- "version": "1.4.1",- "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",- "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 8"- }- },- "node_modules/micromark": {- "version": "4.0.2",- "resolved": "https://registry.npmjs.org/micromark/-/micromark-4.0.2.tgz",- "integrity": "sha512-zpe98Q6kvavpCr1NPVSCMebCKfD7CA2NqZ+rykeNhONIJBpc1tFKt9hucLGwha3jNTNI8lHpctWJWoimVF4PfA==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "@types/debug": "^4.0.0",- "debug": "^4.0.0",- "decode-named-character-reference": "^1.0.0",- "devlop": "^1.0.0",- "micromark-core-commonmark": "^2.0.0",- "micromark-factory-space": "^2.0.0",- "micromark-util-character": "^2.0.0",- "micromark-util-chunked": "^2.0.0",- "micromark-util-combine-extensions": "^2.0.0",- "micromark-util-decode-numeric-character-reference": "^2.0.0",- "micromark-util-encode": "^2.0.0",- "micromark-util-normalize-identifier": "^2.0.0",- "micromark-util-resolve-all": "^2.0.0",- "micromark-util-sanitize-uri": "^2.0.0",- "micromark-util-subtokenize": "^2.0.0",- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-core-commonmark": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-2.0.3.tgz",- "integrity": "sha512-RDBrHEMSxVFLg6xvnXmb1Ayr2WzLAWjeSATAoxwKYJV94TeNavgoIdA0a9ytzDSVzBy2YKFK+emCPOEibLeCrg==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "decode-named-character-reference": "^1.0.0",- "devlop": "^1.0.0",- "micromark-factory-destination": "^2.0.0",- "micromark-factory-label": "^2.0.0",- "micromark-factory-space": "^2.0.0",- "micromark-factory-title": "^2.0.0",- "micromark-factory-whitespace": "^2.0.0",- "micromark-util-character": "^2.0.0",- "micromark-util-chunked": "^2.0.0",- "micromark-util-classify-character": "^2.0.0",- "micromark-util-html-tag-name": "^2.0.0",- "micromark-util-normalize-identifier": "^2.0.0",- "micromark-util-resolve-all": "^2.0.0",- "micromark-util-subtokenize": "^2.0.0",- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-extension-gfm": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/micromark-extension-gfm/-/micromark-extension-gfm-3.0.0.tgz",- "integrity": "sha512-vsKArQsicm7t0z2GugkCKtZehqUm31oeGBV/KVSorWSy8ZlNAv7ytjFhvaryUiCUJYqs+NoE6AFhpQvBTM6Q4w==",- "license": "MIT",- "dependencies": {- "micromark-extension-gfm-autolink-literal": "^2.0.0",- "micromark-extension-gfm-footnote": "^2.0.0",- "micromark-extension-gfm-strikethrough": "^2.0.0",- "micromark-extension-gfm-table": "^2.0.0",- "micromark-extension-gfm-tagfilter": "^2.0.0",- "micromark-extension-gfm-task-list-item": "^2.0.0",- "micromark-util-combine-extensions": "^2.0.0",- "micromark-util-types": "^2.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/micromark-extension-gfm-autolink-literal": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/micromark-extension-gfm-autolink-literal/-/micromark-extension-gfm-autolink-literal-2.1.0.tgz",- "integrity": "sha512-oOg7knzhicgQ3t4QCjCWgTmfNhvQbDDnJeVu9v81r7NltNCVmhPy1fJRX27pISafdjL+SVc4d3l48Gb6pbRypw==",- "license": "MIT",- "dependencies": {- "micromark-util-character": "^2.0.0",- "micromark-util-sanitize-uri": "^2.0.0",- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/micromark-extension-gfm-footnote": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/micromark-extension-gfm-footnote/-/micromark-extension-gfm-footnote-2.1.0.tgz",- "integrity": "sha512-/yPhxI1ntnDNsiHtzLKYnE3vf9JZ6cAisqVDauhp4CEHxlb4uoOTxOCJ+9s51bIB8U1N1FJ1RXOKTIlD5B/gqw==",- "license": "MIT",- "dependencies": {- "devlop": "^1.0.0",- "micromark-core-commonmark": "^2.0.0",- "micromark-factory-space": "^2.0.0",- "micromark-util-character": "^2.0.0",- "micromark-util-normalize-identifier": "^2.0.0",- "micromark-util-sanitize-uri": "^2.0.0",- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/micromark-extension-gfm-strikethrough": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/micromark-extension-gfm-strikethrough/-/micromark-extension-gfm-strikethrough-2.1.0.tgz",- "integrity": "sha512-ADVjpOOkjz1hhkZLlBiYA9cR2Anf8F4HqZUO6e5eDcPQd0Txw5fxLzzxnEkSkfnD0wziSGiv7sYhk/ktvbf1uw==",- "license": "MIT",- "dependencies": {- "devlop": "^1.0.0",- "micromark-util-chunked": "^2.0.0",- "micromark-util-classify-character": "^2.0.0",- "micromark-util-resolve-all": "^2.0.0",- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/micromark-extension-gfm-table": {- "version": "2.1.1",- "resolved": "https://registry.npmjs.org/micromark-extension-gfm-table/-/micromark-extension-gfm-table-2.1.1.tgz",- "integrity": "sha512-t2OU/dXXioARrC6yWfJ4hqB7rct14e8f7m0cbI5hUmDyyIlwv5vEtooptH8INkbLzOatzKuVbQmAYcbWoyz6Dg==",- "license": "MIT",- "dependencies": {- "devlop": "^1.0.0",- "micromark-factory-space": "^2.0.0",- "micromark-util-character": "^2.0.0",- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/micromark-extension-gfm-tagfilter": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/micromark-extension-gfm-tagfilter/-/micromark-extension-gfm-tagfilter-2.0.0.tgz",- "integrity": "sha512-xHlTOmuCSotIA8TW1mDIM6X2O1SiX5P9IuDtqGonFhEK0qgRI4yeC6vMxEV2dgyr2TiD+2PQ10o+cOhdVAcwfg==",- "license": "MIT",- "dependencies": {- "micromark-util-types": "^2.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/micromark-extension-gfm-task-list-item": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/micromark-extension-gfm-task-list-item/-/micromark-extension-gfm-task-list-item-2.1.0.tgz",- "integrity": "sha512-qIBZhqxqI6fjLDYFTBIa4eivDMnP+OZqsNwmQ3xNLE4Cxwc+zfQEfbs6tzAo2Hjq+bh6q5F+Z8/cksrLFYWQQw==",- "license": "MIT",- "dependencies": {- "devlop": "^1.0.0",- "micromark-factory-space": "^2.0.0",- "micromark-util-character": "^2.0.0",- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/micromark-factory-destination": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-2.0.1.tgz",- "integrity": "sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-util-character": "^2.0.0",- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-factory-label": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-factory-label/-/micromark-factory-label-2.0.1.tgz",- "integrity": "sha512-VFMekyQExqIW7xIChcXn4ok29YE3rnuyveW3wZQWWqF4Nv9Wk5rgJ99KzPvHjkmPXF93FXIbBp6YdW3t71/7Vg==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "devlop": "^1.0.0",- "micromark-util-character": "^2.0.0",- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-factory-space": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.0.1.tgz",- "integrity": "sha512-zRkxjtBxxLd2Sc0d+fbnEunsTj46SWXgXciZmHq0kDYGnck/ZSGj9/wULTV95uoeYiK5hRXP2mJ98Uo4cq/LQg==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-util-character": "^2.0.0",- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-factory-title": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-factory-title/-/micromark-factory-title-2.0.1.tgz",- "integrity": "sha512-5bZ+3CjhAd9eChYTHsjy6TGxpOFSKgKKJPJxr293jTbfry2KDoWkhBb6TcPVB4NmzaPhMs1Frm9AZH7OD4Cjzw==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-factory-space": "^2.0.0",- "micromark-util-character": "^2.0.0",- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-factory-whitespace": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-factory-whitespace/-/micromark-factory-whitespace-2.0.1.tgz",- "integrity": "sha512-Ob0nuZ3PKt/n0hORHyvoD9uZhr+Za8sFoP+OnMcnWK5lngSzALgQYKMr9RJVOWLqQYuyn6ulqGWSXdwf6F80lQ==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-factory-space": "^2.0.0",- "micromark-util-character": "^2.0.0",- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-util-character": {- "version": "2.1.1",- "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz",- "integrity": "sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-util-chunked": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-util-chunked/-/micromark-util-chunked-2.0.1.tgz",- "integrity": "sha512-QUNFEOPELfmvv+4xiNg2sRYeS/P84pTW0TCgP5zc9FpXetHY0ab7SxKyAQCNCc1eK0459uoLI1y5oO5Vc1dbhA==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-util-symbol": "^2.0.0"- }- },- "node_modules/micromark-util-classify-character": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-util-classify-character/-/micromark-util-classify-character-2.0.1.tgz",- "integrity": "sha512-K0kHzM6afW/MbeWYWLjoHQv1sgg2Q9EccHEDzSkxiP/EaagNzCm7T/WMKZ3rjMbvIpvBiZgwR3dKMygtA4mG1Q==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-util-character": "^2.0.0",- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-util-combine-extensions": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-util-combine-extensions/-/micromark-util-combine-extensions-2.0.1.tgz",- "integrity": "sha512-OnAnH8Ujmy59JcyZw8JSbK9cGpdVY44NKgSM7E9Eh7DiLS2E9RNQf0dONaGDzEG9yjEl5hcqeIsj4hfRkLH/Bg==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-util-chunked": "^2.0.0",- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-util-decode-numeric-character-reference": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-2.0.2.tgz",- "integrity": "sha512-ccUbYk6CwVdkmCQMyr64dXz42EfHGkPQlBj5p7YVGzq8I7CtjXZJrubAYezf7Rp+bjPseiROqe7G6foFd+lEuw==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-util-symbol": "^2.0.0"- }- },- "node_modules/micromark-util-decode-string": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-util-decode-string/-/micromark-util-decode-string-2.0.1.tgz",- "integrity": "sha512-nDV/77Fj6eH1ynwscYTOsbK7rR//Uj0bZXBwJZRfaLEJ1iGBR6kIfNmlNqaqJf649EP0F3NWNdeJi03elllNUQ==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "decode-named-character-reference": "^1.0.0",- "micromark-util-character": "^2.0.0",- "micromark-util-decode-numeric-character-reference": "^2.0.0",- "micromark-util-symbol": "^2.0.0"- }- },- "node_modules/micromark-util-encode": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz",- "integrity": "sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT"- },- "node_modules/micromark-util-html-tag-name": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-util-html-tag-name/-/micromark-util-html-tag-name-2.0.1.tgz",- "integrity": "sha512-2cNEiYDhCWKI+Gs9T0Tiysk136SnR13hhO8yW6BGNyhOC4qYFnwF1nKfD3HFAIXA5c45RrIG1ub11GiXeYd1xA==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT"- },- "node_modules/micromark-util-normalize-identifier": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-2.0.1.tgz",- "integrity": "sha512-sxPqmo70LyARJs0w2UclACPUUEqltCkJ6PhKdMIDuJ3gSf/Q+/GIe3WKl0Ijb/GyH9lOpUkRAO2wp0GVkLvS9Q==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-util-symbol": "^2.0.0"- }- },- "node_modules/micromark-util-resolve-all": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-util-resolve-all/-/micromark-util-resolve-all-2.0.1.tgz",- "integrity": "sha512-VdQyxFWFT2/FGJgwQnJYbe1jjQoNTS4RjglmSjTUlpUMa95Htx9NHeYW4rGDJzbjvCsl9eLjMQwGeElsqmzcHg==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-util-sanitize-uri": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz",- "integrity": "sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-util-character": "^2.0.0",- "micromark-util-encode": "^2.0.0",- "micromark-util-symbol": "^2.0.0"- }- },- "node_modules/micromark-util-subtokenize": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/micromark-util-subtokenize/-/micromark-util-subtokenize-2.1.0.tgz",- "integrity": "sha512-XQLu552iSctvnEcgXw6+Sx75GflAPNED1qx7eBJ+wydBb2KCbRZe+NwvIEEMM83uml1+2WSXpBAcp9IUCgCYWA==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "devlop": "^1.0.0",- "micromark-util-chunked": "^2.0.0",- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-util-symbol": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz",- "integrity": "sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT"- },- "node_modules/micromark-util-types": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.2.tgz",- "integrity": "sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT"- },- "node_modules/micromatch": {- "version": "4.0.8",- "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",- "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",- "dev": true,- "license": "MIT",- "dependencies": {- "braces": "^3.0.3",- "picomatch": "^2.3.1"- },- "engines": {- "node": ">=8.6"- }- },- "node_modules/micromatch/node_modules/picomatch": {- "version": "2.3.2",- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz",- "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8.6"- },- "funding": {- "url": "https://github.com/sponsors/jonschlinkert"- }- },- "node_modules/mime-db": {- "version": "1.54.0",- "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz",- "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 0.6"- }- },- "node_modules/mime-types": {- "version": "3.0.2",- "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz",- "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==",- "dev": true,- "license": "MIT",- "dependencies": {- "mime-db": "^1.54.0"- },- "engines": {- "node": ">=18"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/express"+ "url": "https://opencollective.com/express"}},"node_modules/mimic-fn": {@@ -9340,6 +8212,7 @@"version": "2.1.3","resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz","integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",+ "dev": true,"license": "MIT"},"node_modules/nanoid": {@@ -9742,31 +8615,6 @@"node": ">=6"}},- "node_modules/parse-entities": {- "version": "4.0.2",- "resolved": "https://registry.npmjs.org/parse-entities/-/parse-entities-4.0.2.tgz",- "integrity": "sha512-GG2AQYWoLgL877gQIKeRPGO1xF9+eG1ujIb5soS5gPvLQ1y2o8FL90w2QWNdf9I361Mpp7726c+lj3U0qK1uGw==",- "license": "MIT",- "dependencies": {- "@types/unist": "^2.0.0",- "character-entities-legacy": "^3.0.0",- "character-reference-invalid": "^2.0.0",- "decode-named-character-reference": "^1.0.0",- "is-alphanumerical": "^2.0.0",- "is-decimal": "^2.0.0",- "is-hexadecimal": "^2.0.0"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/parse-entities/node_modules/@types/unist": {- "version": "2.0.11",- "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.11.tgz",- "integrity": "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==",- "license": "MIT"- },"node_modules/parse-json": {"version": "5.2.0","resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz",@@ -10133,16 +8981,6 @@"node": ">=6"}},- "node_modules/property-information": {- "version": "7.2.0",- "resolved": "https://registry.npmjs.org/property-information/-/property-information-7.2.0.tgz",- "integrity": "sha512-IAtzIB6sUiWaJYrX9smp3V46pBGbBeLFRGdh25kg1334VcBlD8HzhPeNIWQH9zhGmo2itIe25EHt9dQP7G5hmg==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },"node_modules/proxy-addr": {"version": "2.0.7","resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",@@ -10339,33 +9177,6 @@"react": "^19.2.7"}},- "node_modules/react-markdown": {- "version": "10.1.0",- "resolved": "https://registry.npmjs.org/react-markdown/-/react-markdown-10.1.0.tgz",- "integrity": "sha512-qKxVopLT/TyA6BX3Ue5NwabOsAzm0Q7kAPwq6L+wWDwisYs7R8vZ0nRXqq6rkueboxpkjvLGU9fWifiX/ZZFxQ==",- "license": "MIT",- "dependencies": {- "@types/hast": "^3.0.0",- "@types/mdast": "^4.0.0",- "devlop": "^1.0.0",- "hast-util-to-jsx-runtime": "^2.0.0",- "html-url-attributes": "^3.0.0",- "mdast-util-to-hast": "^13.0.0",- "remark-parse": "^11.0.0",- "remark-rehype": "^11.0.0",- "unified": "^11.0.0",- "unist-util-visit": "^5.0.0",- "vfile": "^6.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- },- "peerDependencies": {- "@types/react": ">=18",- "react": ">=18"- }- },"node_modules/react-refresh": {"version": "0.18.0","resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.18.0.tgz",@@ -10557,72 +9368,6 @@"url": "https://github.com/sponsors/ljharb"}},- "node_modules/remark-gfm": {- "version": "4.0.1",- "resolved": "https://registry.npmjs.org/remark-gfm/-/remark-gfm-4.0.1.tgz",- "integrity": "sha512-1quofZ2RQ9EWdeN34S79+KExV1764+wCUGop5CPL1WGdD0ocPpu91lzPGbwWMECpEpd42kJGQwzRfyov9j4yNg==",- "license": "MIT",- "dependencies": {- "@types/mdast": "^4.0.0",- "mdast-util-gfm": "^3.0.0",- "micromark-extension-gfm": "^3.0.0",- "remark-parse": "^11.0.0",- "remark-stringify": "^11.0.0",- "unified": "^11.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/remark-parse": {- "version": "11.0.0",- "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-11.0.0.tgz",- "integrity": "sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA==",- "license": "MIT",- "dependencies": {- "@types/mdast": "^4.0.0",- "mdast-util-from-markdown": "^2.0.0",- "micromark-util-types": "^2.0.0",- "unified": "^11.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/remark-rehype": {- "version": "11.1.2",- "resolved": "https://registry.npmjs.org/remark-rehype/-/remark-rehype-11.1.2.tgz",- "integrity": "sha512-Dh7l57ianaEoIpzbp0PC9UKAdCSVklD8E5Rpw7ETfbTl3FqcOOgq5q2LVDhgGCkaBv7p24JXikPdvhhmHvKMsw==",- "license": "MIT",- "dependencies": {- "@types/hast": "^3.0.0",- "@types/mdast": "^4.0.0",- "mdast-util-to-hast": "^13.0.0",- "unified": "^11.0.0",- "vfile": "^6.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/remark-stringify": {- "version": "11.0.0",- "resolved": "https://registry.npmjs.org/remark-stringify/-/remark-stringify-11.0.0.tgz",- "integrity": "sha512-1OSmLd3awB/t8qdoEOMazZkNsfVTeY4fTsgzcQFdXNq8ToTN4ZGwrMnlda4K6smTFKD+GRV6O48i6Z4iKgPPpw==",- "license": "MIT",- "dependencies": {- "@types/mdast": "^4.0.0",- "mdast-util-to-markdown": "^2.0.0",- "unified": "^11.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },"node_modules/require-from-string": {"version": "2.0.2","resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz",@@ -11182,16 +9927,6 @@"node": ">=0.10.0"}},- "node_modules/space-separated-tokens": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz",- "integrity": "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },"node_modules/stackback": {"version": "0.0.2","resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz",@@ -11365,20 +10100,6 @@"url": "https://github.com/sponsors/ljharb"}},- "node_modules/stringify-entities": {- "version": "4.0.4",- "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.4.tgz",- "integrity": "sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==",- "license": "MIT",- "dependencies": {- "character-entities-html4": "^2.0.0",- "character-entities-legacy": "^3.0.0"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },"node_modules/stringify-object": {"version": "5.0.0","resolved": "https://registry.npmjs.org/stringify-object/-/stringify-object-5.0.0.tgz",@@ -11459,24 +10180,6 @@"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/style-to-js": {- "version": "1.1.21",- "resolved": "https://registry.npmjs.org/style-to-js/-/style-to-js-1.1.21.tgz",- "integrity": "sha512-RjQetxJrrUJLQPHbLku6U/ocGtzyjbJMP9lCNK7Ag0CNh690nSH8woqWH9u16nMjYBAok+i7JO1NP2pOy8IsPQ==",- "license": "MIT",- "dependencies": {- "style-to-object": "1.0.14"- }- },- "node_modules/style-to-object": {- "version": "1.0.14",- "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-1.0.14.tgz",- "integrity": "sha512-LIN7rULI0jBscWQYaSswptyderlarFkjQ+t79nzty8tcIAceVomEVlLzH5VP4Cmsv6MtKhs7qaAiwlcp+Mgaxw==",- "license": "MIT",- "dependencies": {- "inline-style-parser": "0.2.7"- }- },"node_modules/supports-color": {"version": "7.2.0","resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",@@ -11647,26 +10350,6 @@"node": ">=0.6"}},- "node_modules/trim-lines": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz",- "integrity": "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/trough": {- "version": "2.2.0",- "resolved": "https://registry.npmjs.org/trough/-/trough-2.2.0.tgz",- "integrity": "sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },"node_modules/ts-api-utils": {"version": "2.5.0","resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.5.0.tgz",@@ -11931,93 +10614,6 @@"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/unified": {- "version": "11.0.5",- "resolved": "https://registry.npmjs.org/unified/-/unified-11.0.5.tgz",- "integrity": "sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==",- "license": "MIT",- "dependencies": {- "@types/unist": "^3.0.0",- "bail": "^2.0.0",- "devlop": "^1.0.0",- "extend": "^3.0.0",- "is-plain-obj": "^4.0.0",- "trough": "^2.0.0",- "vfile": "^6.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/unist-util-is": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.1.tgz",- "integrity": "sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==",- "license": "MIT",- "dependencies": {- "@types/unist": "^3.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/unist-util-position": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-5.0.0.tgz",- "integrity": "sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==",- "license": "MIT",- "dependencies": {- "@types/unist": "^3.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/unist-util-stringify-position": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz",- "integrity": "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==",- "license": "MIT",- "dependencies": {- "@types/unist": "^3.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/unist-util-visit": {- "version": "5.1.0",- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.1.0.tgz",- "integrity": "sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg==",- "license": "MIT",- "dependencies": {- "@types/unist": "^3.0.0",- "unist-util-is": "^6.0.0",- "unist-util-visit-parents": "^6.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/unist-util-visit-parents": {- "version": "6.0.2",- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.0.2.tgz",- "integrity": "sha512-goh1s1TBrqSqukSc8wrjwWhL0hiJxgA8m4kFxGlQ+8FYQ3C/m11FcTs4YYem7V664AhHVvgoQLk890Ssdsr2IQ==",- "license": "MIT",- "dependencies": {- "@types/unist": "^3.0.0",- "unist-util-is": "^6.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },"node_modules/universalify": {"version": "2.0.1","resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz",@@ -12158,34 +10754,6 @@"node": ">= 0.8"}},- "node_modules/vfile": {- "version": "6.0.3",- "resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz",- "integrity": "sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==",- "license": "MIT",- "dependencies": {- "@types/unist": "^3.0.0",- "vfile-message": "^4.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/vfile-message": {- "version": "4.0.3",- "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.3.tgz",- "integrity": "sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==",- "license": "MIT",- "dependencies": {- "@types/unist": "^3.0.0",- "unist-util-stringify-position": "^4.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },"node_modules/vite": {"version": "8.1.0","resolved": "https://registry.npmjs.org/vite/-/vite-8.1.0.tgz",@@ -12628,16 +11196,6 @@"peerDependencies": {"zod": "^3.25.0 || ^4.0.0"}- },- "node_modules/zwitch": {- "version": "2.0.4",- "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz",- "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }}}}diff --git a/web/package.json b/web/package.jsonindex 339b88cb..7eeff492 100644--- a/web/package.json+++ b/web/package.json@@ -34,9 +34,7 @@"radix-ui": "^1.6.0","react": "^19.2.7","react-dom": "^19.2.7",- "react-markdown": "^10.1.0","react-router-dom": "^7.18.0",- "remark-gfm": "^4.0.1","sonner": "^2.0.7","tailwind-merge": "^3.6.0","tw-animate-css": "^1.4.0",diff --git a/web/src/App.tsx b/web/src/App.tsxindex 0a34d0cd..47261a55 100644--- a/web/src/App.tsx+++ b/web/src/App.tsx@@ -3,11 +3,9 @@ import { Routes, Route, Navigate } from 'react-router-dom'import { AuthProvider } from './hooks/auth-provider'import ProtectedRoute from './components/ProtectedRoute'import AppShell from './components/app-shell'-import { managedAgentsExperimentEnabled } from './managed-agents/feature'// Route pages are code-split so the initial bundle stays small; the heaviest// deps (xterm, in Terminal/LogsPanel) only load on SandboxDetail when opened.-const Dashboard = lazy(() => import('./pages/Dashboard'))const Agents = lazy(() => import('./pages/Agents'))const AgentNew = lazy(() => import('./pages/AgentNew'))const AgentDetail = lazy(() => import('./pages/AgentDetail'))@@ -26,12 +24,6 @@ const Billing = lazy(() => import('./pages/Billing'))const SandboxDetail = lazy(() => import('./pages/SandboxDetail'))const SandboxWebhooks = lazy(() => import('./pages/SandboxWebhooks'))const DeferredAction = lazy(() => import('./pages/DeferredAction'))-const ManagedAgentsHome = lazy(() => import('./managed-agents/Home'))-const ManagedAgentDetail = lazy(() => import('./managed-agents/Detail'))-const ManagedAgentConnections = lazy(- () => import('./managed-agents/Connections'),-)-const ManagedAgentChannels = lazy(() => import('./managed-agents/Channels'))export default function App() {return (@@ -42,41 +34,10 @@ export default function App() {<Route path="do" element={<DeferredAction />} /><Route element={<ProtectedRoute />}><Route element={<AppShell />}>- <Route- index- element={- managedAgentsExperimentEnabled ? (- <ManagedAgentsHome />- ) : (- <Dashboard />- )- }- />+ <Route index element={<Navigate to="/sandboxes" replace />} /><Routepath="getting-started"- element={- managedAgentsExperimentEnabled ? (- <ManagedAgentsHome />- ) : (- <Dashboard />- )- }- />- <Route- path="managed-agents/connections"- element={<ManagedAgentConnections />}- />- <Route- path="managed-agents/channels"- element={<ManagedAgentChannels />}- />- <Route- path="managed-agents/new"- element={<ManagedAgentsHome startersOnly />}- />- <Route- path="managed-agents/:agentId"- element={<ManagedAgentDetail />}+ element={<Navigate to="/sandboxes" replace />}/>{/* Agent plane */}<Route path="agents" element={<Agents />} />diff --git a/web/src/api/mock.ts b/web/src/api/mock.tsindex 74a62687..2a50a72d 100644--- a/web/src/api/mock.ts+++ b/web/src/api/mock.ts@@ -21,7 +21,7 @@ const me = {id: 'user_2abc',email: '[email protected]',orgId: 'org_digger',- durableSessionsEnabled: true,+ durableSessionsEnabled: false,infrastructureEnabled: true,orgs: [{ id: 'org_digger', name: 'Digger', isPersonal: false, isActive: true },@@ -1210,50 +1210,6 @@ type Handler = () => unknown// missing resource) — used for an agent with no deployment-source link.const NOT_FOUND = Symbol('not_found')-const managedAgentTemplates = [- {- id: 'email-triage',- name: 'Email triage',- description:- 'Summarize your inbox, surface messages that need replies, and leave every action under your control.',- category: 'Comms',- integrations: ['Gmail', 'OpenComputer'],- suggestedPrompts: [- "Triage today's inbox and show me the messages that need a reply.",- ],- },- {- id: 'github-changelog',- name: 'GitHub changelog',- description:- 'Turn merged work into a clear changelog and keep product documentation current.',- category: 'Operations',- integrations: ['GitHub', 'Confluence'],- suggestedPrompts: [- "Draft this week's changelog from merged pull requests.",- ],- },- {- id: 'collect-receipts',- name: 'Collect receipts',- description:- 'Find purchase receipts, name them consistently, and file them in the correct expense folder.',- category: 'Admin',- integrations: ['Gmail', 'Google Drive'],- suggestedPrompts: ["Find this month's receipts and prepare a filing plan."],- },-]--let managedAgentItems: Array<{- id: string- name: string- activeAlias: string- activeDeploymentId: string- deploymentCount: number- createdAt: string- updatedAt: string-}> = []-// Ordered most-specific first. Matched against the path (without /api/dashboard).const ROUTES: Array<[RegExp, Handler]> = [[/^\/me$/, () => me],@@ -1261,121 +1217,6 @@ const ROUTES: Array<[RegExp, Handler]> = [/^\/agent-security-notifications(?:\?.*)?$/,() => ({ data: [], next_cursor: null }),],- [- /^\/managed-agents\/templates$/,- () => ({ templates: managedAgentTemplates }),- ],- [/^\/managed-agents\/agents$/, () => ({ agents: managedAgentItems })],- [- /^\/managed-agents\/connections$/,- () => ({- connections: [- {- id: 'connection_google_preview',- kind: 'tool',- provider: 'google',- label: 'gmail',- agentId: 'email-triage',- alias: 'production',- displayName: 'Gmail',- status: 'connected',- createdAt: new Date(BASE).toISOString(),- updatedAt: new Date(BASE).toISOString(),- },- ],- }),- ],- [- /^\/managed-agents\/channels$/,- () => ({- channels: [- {- id: 'channel_slack_preview',- channel: 'slack',- agentId: 'research-assistant',- alias: 'production',- teamName: 'OpenComputer',- status: 'connected',- createdAt: new Date(BASE).toISOString(),- updatedAt: new Date(BASE).toISOString(),- },- ],- }),- ],- [- /^\/managed-agents\/deployments\?agentId=[^&]+$/,- () => ({- deployments: [- {- id: 'research-assistant:preview',- agentId: 'research-assistant',- alias: 'production',- channels: ['slack'],- connections: ['gmail'],- createdAt: new Date(BASE).toISOString(),- },- ],- }),- ],- [- /^\/managed-agents\/deployments\/[^/]+$/,- () => ({- id: 'research-assistant:preview',- agentId: 'research-assistant',- alias: 'production',- channels: [],- connections: [],- createdAt: new Date(BASE).toISOString(),- }),- ],- [- /^\/managed-agents\/sessions$/,- () => ({- sessions: [- {- id: 'session_preview',- agentId: 'research-assistant',- deploymentId: 'research-assistant:preview',- status: 'suspended',- source: 'channel',- microvmState: 'suspended',- createdAt: new Date(BASE).toISOString(),- updatedAt: new Date(BASE).toISOString(),- turns: [],- },- ],- }),- ],- [- /^\/managed-agents\/sessions\/[^/]+\/events(?:\?.*)?$/,- () => ({- events: [- { seq: 1, type: 'runtime.connected', data: {} },- {- seq: 2,- type: 'message.completed',- data: {- text: 'Here is a concise response from your deployed agent.',- },- },- { seq: 3, type: 'turn.completed', data: {} },- ],- }),- ],- [- /^\/managed-agents\/sessions\/[^/]+$/,- () => ({- id: 'session_preview',- agentId: 'research-assistant',- deploymentId: 'research-assistant:preview',- status: 'suspended',- source: 'playground',- microvmState: 'suspended',- createdAt: new Date(BASE).toISOString(),- updatedAt: new Date(BASE).toISOString(),- turns: [],- }),- ],[/^\/sessions\/[^/]+\/stats$/, () => sandboxStats],[/^\/sessions\/[^/]+$/, () => sessionDetail],[/^\/sessions(\?.*)?$/, () => sandboxes],@@ -1472,57 +1313,6 @@ const ROUTES: Array<[RegExp, Handler]> = [// Mutations the preview needs to echo something parseable (e.g. the Slack// wizard's POST …/slack/manifest → manifest+steps). Everything else 204-ish.const POST_ROUTES: [RegExp, () => unknown][] = [- [- /^\/managed-agents\/templates\/[^/]+\/deploy$/,- () => {- const template = managedAgentTemplates[0]- const timestamp = new Date(BASE).toISOString()- managedAgentItems = [- {- id: template.id,- name: template.name,- activeAlias: 'production',- activeDeploymentId: `${template.id}:preview`,- deploymentCount: 1,- createdAt: timestamp,- updatedAt: timestamp,- },- ]- return {- template,- deployment: {- id: `${template.id}:preview`,- agentId: template.id,- alias: 'production',- channels: [],- connections: [],- createdAt: timestamp,- },- }- },- ],- [- /^\/managed-agents\/sessions$/,- () => ({- session: { id: 'session_preview', status: 'connecting' },- deployment: {- id: 'research-assistant:preview',- agentId: 'research-assistant',- alias: 'production',- channels: [],- connections: [],- createdAt: new Date(BASE).toISOString(),- },- }),- ],- [- /^\/managed-agents\/sessions\/[^/]+\/turns$/,- () => ({ turnId: 'turn_preview', duplicate: false }),- ],- [- /^\/managed-agents\/sessions\/[^/]+\/suspend$/,- () => ({ id: 'session_preview', status: 'suspended' }),- ],[/^\/v3\/agents\/[^/]+\/repository-access$/, () => repositoryAccess],[/^\/v3\/github\/deploy-app\/inspect$/, () => flueInspection],[diff --git a/web/src/components/app-shell.test.ts b/web/src/components/app-shell.test.tsindex b9b4533a..58f98c1c 100644--- a/web/src/components/app-shell.test.ts+++ b/web/src/components/app-shell.test.ts@@ -1,31 +1,28 @@import { describe, expect, it } from 'vitest'-import { managedAgentsNav } from './app-shell'+import { productNav } from './app-shell'-describe('managed agents navigation', () => {- it('shows only unlabeled agents and connections by default', () => {- const nav = managedAgentsNav({+describe('product navigation', () => {+ it('shows only infrastructure for new-user preferences', () => {+ const nav = productNav({durableSessionsEnabled: false,- infrastructureEnabled: false,+ infrastructureEnabled: true,})- expect(nav.map((group) => group.label)).toEqual([undefined])- expect(nav[0]?.collapsible).toBeUndefined()- expect(nav[0]?.items.map((item) => item.label)).toEqual([- 'Agents',- 'Connections',- ])+ expect(nav.map((group) => group.label)).toEqual(['Infrastructure'])+ expect(nav[0]?.collapsible).toBe(true)+ expect(nav[0]?.items[0]?.label).toBe('Sandboxes')})it('reveals each advanced group independently', () => {expect(- managedAgentsNav({+ productNav({durableSessionsEnabled: true,infrastructureEnabled: false,}).map((group) => group.label),).toContain('Durable sessions')expect(- managedAgentsNav({+ productNav({durableSessionsEnabled: false,infrastructureEnabled: true,}).map((group) => group.label),diff --git a/web/src/components/app-shell.tsx b/web/src/components/app-shell.tsxindex f45ed1e4..8a130f86 100644--- a/web/src/components/app-shell.tsx+++ b/web/src/components/app-shell.tsx@@ -8,8 +8,6 @@ import {} from 'react-router-dom'import { useQuery } from '@tanstack/react-query'import {- LayoutGrid,- Rocket,Bot,MessagesSquare,Monitor,@@ -28,7 +26,6 @@ import {Loader2,CircleAlert,ChevronRight,- Plug,type LucideIcon,} from 'lucide-react'import { useAuth } from '@/hooks/useAuth'@@ -51,7 +48,6 @@ import {import { ErrorBoundary } from '@/components/error-boundary'import { AgentSecurityAlertBanner } from '@/components/agent-security-alert'import { cn } from '@/lib/utils'-import { managedAgentsExperimentEnabled } from '@/managed-agents/feature'type NavItem = {to: string@@ -67,73 +63,17 @@ type NavGroup = {landingTo?: string}-// Two planes, subtly separated: the durable-agent plane and the raw-compute-// (sandbox) plane, plus account/org. Groups render with spacing + a small muted-// label rather than hard dividers.-const LEGACY_NAV: NavGroup[] = [+const PRODUCT_NAV: NavGroup[] = [{- items: [- { to: '/', label: 'Dashboard', icon: LayoutGrid, end: true },- { to: '/getting-started', label: 'Getting started', icon: Rocket },- ],- },- {- label: 'Agents',- items: [- { to: '/agents', label: 'Agents', icon: Bot, preview: true },- {- to: '/sessions',- label: 'Sessions',- icon: MessagesSquare,- preview: true,- },- {- to: '/credentials',- label: 'Credentials',- icon: KeySquare,- preview: true,- },- ],- },- {- label: 'Browser Sessions',- items: [- {- to: '/browsers',- label: 'Browsers',- icon: Monitor,- preview: true,- },- ],- },- {- label: 'Sandboxes',+ label: 'Infrastructure',+ collapsible: true,+ landingTo: '/sandboxes',items: [{ to: '/sandboxes', label: 'Sandboxes', icon: Boxes },{ to: '/checkpoints', label: 'Checkpoints', icon: Layers },- { to: '/templates', label: 'Templates', icon: Package },+ { to: '/templates', label: 'Sandbox templates', icon: Package },{ to: '/sandbox-webhooks', label: 'Webhooks', icon: Webhook },- ],- },- {- label: 'Account',- items: [- { to: '/api-keys', label: 'API Keys', icon: KeyRound },- { to: '/billing', label: 'Billing', icon: CreditCard },- { to: '/settings', label: 'Settings', icon: Settings },- ],- },-]--const MANAGED_AGENTS_NAV: NavGroup[] = [- {- items: [- { to: '/', label: 'Agents', icon: Bot, end: true },- {- to: '/managed-agents/connections',- label: 'Connections',- icon: Plug,- },+ { to: '/browsers', label: 'Browsers', icon: Monitor },],},{@@ -156,25 +96,13 @@ const MANAGED_AGENTS_NAV: NavGroup[] = [},],},- {- label: 'Infrastructure',- collapsible: true,- landingTo: '/sandboxes',- items: [- { to: '/sandboxes', label: 'Sandboxes', icon: Boxes },- { to: '/checkpoints', label: 'Checkpoints', icon: Layers },- { to: '/templates', label: 'Sandbox templates', icon: Package },- { to: '/sandbox-webhooks', label: 'Webhooks', icon: Webhook },- { to: '/browsers', label: 'Browsers', icon: Monitor },- ],- },]-export function managedAgentsNav(preferences: {+export function productNav(preferences: {durableSessionsEnabled: booleaninfrastructureEnabled: boolean}): NavGroup[] {- return MANAGED_AGENTS_NAV.filter((group) => {+ return PRODUCT_NAV.filter((group) => {if (group.label === 'Durable sessions') {return preferences.durableSessionsEnabled}@@ -315,12 +243,10 @@ function SidebarNav({ onNavigate }: { onNavigate?: () => void }) {const { user } = useAuth()const location = useLocation()const navigate = useNavigate()- const nav = managedAgentsExperimentEnabled- ? managedAgentsNav({- durableSessionsEnabled: user?.durableSessionsEnabled ?? false,- infrastructureEnabled: user?.infrastructureEnabled ?? false,- })- : LEGACY_NAV+ const nav = productNav({+ durableSessionsEnabled: user?.durableSessionsEnabled ?? false,+ infrastructureEnabled: user?.infrastructureEnabled ?? true,+ })const activeCollapsibleGroup = nav.find((group) =>group.collapsible &&@@ -331,9 +257,14 @@ function SidebarNav({ onNavigate }: { onNavigate?: () => void }) {(item.to !== '/' && location.pathname.startsWith(`${item.to}/`)),),)?.label- const [openGroups, setOpenGroups] = useState<Set<string>>(- () => new Set(activeCollapsibleGroup ? [activeCollapsibleGroup] : []),- )+ const [openGroups, setOpenGroups] = useState<Set<string>>(() => {+ const groups = new Set<string>()+ if (nav.some((group) => group.label === 'Infrastructure')) {+ groups.add('Infrastructure')+ }+ if (activeCollapsibleGroup) groups.add(activeCollapsibleGroup)+ return groups+ })useEffect(() => {if (!activeCollapsibleGroup) return@@ -417,28 +348,7 @@ function SidebarNav({ onNavigate }: { onNavigate?: () => void }) {</nav><div className="border-t p-3">- {managedAgentsExperimentEnabled ? (- <ManagedProfileMenu onNavigate={onNavigate} />- ) : (- <div className="flex items-center gap-2.5">- <span className="bg-secondary text-muted-foreground flex size-7 shrink-0 items-center justify-center rounded-full text-xs font-medium">- {user?.email?.charAt(0).toUpperCase() || '?'}- </span>- <span className="text-foreground min-w-0 flex-1 truncate text-xs">- {user?.email}- </span>- {user?.capabilities?.signOut !== false ? (- <button- onClick={() => void logout()}- aria-label="Sign out"- title="Sign out"- className="text-muted-foreground/40 hover:text-foreground flex size-7 shrink-0 items-center justify-center transition-colors"- >- <LogOut className="size-4" strokeWidth={1.5} aria-hidden />- </button>- ) : null}- </div>- )}+ <ManagedProfileMenu onNavigate={onNavigate} /></div></div>)@@ -524,14 +434,7 @@ export default function AppShell() {<HaltBanner /><AgentSecurityAlertBanner /></div>- <main- className={cn(- 'mx-auto px-4 py-6 sm:px-8',- location.pathname.startsWith('/managed-agents/')- ? 'max-w-[1600px]'- : 'max-w-7xl',- )}- >+ <main className="mx-auto max-w-7xl px-4 py-6 sm:px-8">{/* Keyed by org + route: clears a page error on navigation ANDremounts org-scoped pages on org switch so local draft/filterstate can't bleed across orgs. */}diff --git a/web/src/managed-agents/Channels.tsx b/web/src/managed-agents/Channels.tsxdeleted file mode 100644index b90586d9..00000000--- a/web/src/managed-agents/Channels.tsx+++ /dev/null@@ -1,103 +0,0 @@-import { useQuery } from '@tanstack/react-query'-import { Loader2, Radio } from 'lucide-react'-import { PageHeader } from '@/components/page-header'-import { Panel, PanelContent } from '@/components/panel'-import { StatusBadge } from '@/components/status-badge'-import { Button } from '@/components/ui/button'-import {- displayManagedAgentName,- getManagedAgentChannels,- getManagedAgents,-} from './api'--function displayResourceName(value: string) {- return value- .replace(/[-_]+/g, ' ')- .replace(/\b\w/g, (character) => character.toUpperCase())-}--export default function ManagedAgentChannels() {- const channels = useQuery({- queryKey: ['managed-agent-channels'],- queryFn: getManagedAgentChannels,- })- const agents = useQuery({- queryKey: ['managed-agents'],- queryFn: getManagedAgents,- })- const agentNames = new Map(- (agents.data ?? []).map((agent) => [- agent.id,- displayManagedAgentName(agent),- ]),- )-- return (- <div>- <PageHeader- title="Channels"- description="Places where agents can receive and send messages."- />-- {channels.isLoading ? (- <div className="flex min-h-48 items-center justify-center">- <Loader2 className="text-muted-foreground size-5 animate-spin" />- </div>- ) : channels.isError ? (- <Panel>- <PanelContent className="flex min-h-40 flex-col items-center justify-center gap-4 text-center">- <div>- <p className="text-sm font-medium">- Channels are temporarily unavailable- </p>- <p className="text-muted-foreground mt-1 text-sm">- Try loading this page again.- </p>- </div>- <Button variant="outline" onClick={() => void channels.refetch()}>- Try again- </Button>- </PanelContent>- </Panel>- ) : channels.data?.length ? (- <div className="grid gap-3 md:grid-cols-2">- {channels.data.map((channel) => {- const agentName = agentNames.get(channel.agentId)- return (- <Panel key={channel.id}>- <PanelContent className="flex items-center gap-3">- <div className="bg-muted text-muted-foreground flex size-9 shrink-0 items-center justify-center rounded-md">- <Radio className="size-4" aria-hidden />- </div>- <div className="min-w-0 flex-1">- <p className="truncate text-sm font-medium">- {channel.teamName ||- `${displayResourceName(channel.channel)} workspace`}- </p>- <p className="text-muted-foreground truncate text-xs">- {displayResourceName(channel.channel)}- {agentName ? ` · ${agentName}` : ''}- </p>- </div>- <StatusBadge status={channel.status} />- </PanelContent>- </Panel>- )- })}- </div>- ) : (- <Panel>- <PanelContent className="flex min-h-40 flex-col items-center justify-center text-center">- <div className="bg-muted text-muted-foreground mb-3 flex size-10 items-center justify-center rounded-full">- <Radio className="size-4" aria-hidden />- </div>- <p className="text-sm font-medium">No channels yet</p>- <p className="text-muted-foreground mt-1 max-w-sm text-sm">- Add a channel with the OpenComputer CLI and it will appear here.- </p>- </PanelContent>- </Panel>- )}- </div>- )-}diff --git a/web/src/managed-agents/Connections.tsx b/web/src/managed-agents/Connections.tsxdeleted file mode 100644index 2fb939b3..00000000--- a/web/src/managed-agents/Connections.tsx+++ /dev/null@@ -1,220 +0,0 @@-import { useEffect, useRef, useState } from 'react'-import { useQuery } from '@tanstack/react-query'-import { Loader2, Plug } from 'lucide-react'-import { useSearchParams } from 'react-router-dom'-import { PageHeader } from '@/components/page-header'-import { Panel, PanelContent } from '@/components/panel'-import { StatusBadge } from '@/components/status-badge'-import { Button } from '@/components/ui/button'-import {- displayManagedAgentName,- claimManagedAgentChannelIdentity,- getManagedAgentConnections,- getManagedAgents,- linkManagedAgentConnection,-} from './api'--function displayResourceName(value: string) {- return value- .replace(/[-_]+/g, ' ')- .replace(/\b\w/g, (character) => character.toUpperCase())-}--function connectionService(connection: { provider: string; scopes: string[] }) {- if (- connection.scopes.some((scope) =>- scope.toLowerCase().includes('/auth/calendar'),- )- ) {- return 'Google Calendar'- }- if (- connection.scopes.some((scope) =>- scope.toLowerCase().includes('/auth/gmail.'),- )- ) {- return 'Gmail'- }- return displayResourceName(connection.provider)-}--export default function ManagedAgentConnections() {- const [searchParams, setSearchParams] = useSearchParams()- const channelLinkStarted = useRef(false)- const connectionStarted = useRef(false)- const [channelLinkState, setChannelLinkState] = useState<- 'idle' | 'linking' | 'linked' | 'failed'- >('idle')- const [connectionRequestState, setConnectionRequestState] = useState<- 'idle' | 'connecting' | 'connected' | 'failed'- >('idle')- const requestedService = searchParams.get('service')- const requestedAlias = searchParams.get('alias') || 'default'- const connections = useQuery({- queryKey: ['managed-agent-connections'],- queryFn: getManagedAgentConnections,- })- const agents = useQuery({- queryKey: ['managed-agents'],- queryFn: getManagedAgents,- })- const agentNames = new Map(- (agents.data ?? []).map((agent) => [- agent.id,- displayManagedAgentName(agent),- ]),- )-- useEffect(() => {- const token = searchParams.get('channel_link')- if (!token || channelLinkStarted.current) return- channelLinkStarted.current = true- setChannelLinkState('linking')- void claimManagedAgentChannelIdentity(token)- .then(() => {- setChannelLinkState('linked')- const next = new URLSearchParams(searchParams)- next.delete('channel_link')- setSearchParams(next, { replace: true })- })- .catch(() => setChannelLinkState('failed'))- }, [searchParams, setSearchParams])-- useEffect(() => {- if (- searchParams.get('connect') !== '1' ||- !requestedService ||- connectionStarted.current ||- channelLinkState === 'linking'- ) {- return- }- connectionStarted.current = true- setConnectionRequestState('connecting')- void linkManagedAgentConnection(requestedService, requestedAlias)- .then((result) => {- if (result.authorizationUrl) {- window.location.assign(result.authorizationUrl)- return- }- setConnectionRequestState('connected')- void connections.refetch()- })- .catch(() => setConnectionRequestState('failed'))- }, [- channelLinkState,- connections,- requestedAlias,- requestedService,- searchParams,- ])-- return (- <div>- <PageHeader- title="Connections"- description="Connected accounts available to your agents."- />-- {channelLinkState !== 'idle' && (- <Panel className="mb-4">- <PanelContent className="text-sm">- {channelLinkState === 'linking' && 'Linking your channel identity…'}- {channelLinkState === 'linked' &&- 'Channel identity linked. This agent can now use your connections when you message it.'}- {channelLinkState === 'failed' &&- 'This channel link is invalid or expired. Ask the agent for a new link.'}- </PanelContent>- </Panel>- )}-- {requestedService && (- <Panel className="mb-4">- <PanelContent>- <p className="text-sm font-medium">- Connect {displayResourceName(requestedService)} as “- {requestedAlias}”- </p>- <p className="text-muted-foreground mt-1 text-sm">- {connectionRequestState === 'connecting'- ? 'Opening secure authorization…'- : connectionRequestState === 'connected'- ? 'This connection is ready for your sessions.'- : connectionRequestState === 'failed'- ? 'The connection could not be started. Reload this link to try again.'- : 'Continue to securely authorize this account.'}- </p>- </PanelContent>- </Panel>- )}-- {connections.isLoading ? (- <div className="flex min-h-48 items-center justify-center">- <Loader2 className="text-muted-foreground size-5 animate-spin" />- </div>- ) : connections.isError ? (- <Panel>- <PanelContent className="flex min-h-40 flex-col items-center justify-center gap-4 text-center">- <div>- <p className="text-sm font-medium">- Connections are temporarily unavailable- </p>- <p className="text-muted-foreground mt-1 text-sm">- Try loading this page again.- </p>- </div>- <Button- variant="outline"- onClick={() => void connections.refetch()}- >- Try again- </Button>- </PanelContent>- </Panel>- ) : connections.data?.length ? (- <div className="grid gap-3 md:grid-cols-2">- {connections.data.map((connection) => {- const agentName = agentNames.get(connection.agentId)- return (- <Panel key={connection.id}>- <PanelContent className="flex items-center gap-3">- <div className="bg-muted text-muted-foreground flex size-9 shrink-0 items-center justify-center rounded-md">- <Plug className="size-4" aria-hidden />- </div>- <div className="min-w-0 flex-1">- <p className="truncate text-sm font-medium">- {displayResourceName(- connection.label || connection.provider,- )}- </p>- <p className="text-muted-foreground truncate text-xs">- {connectionService(connection)}- {connection.displayName- ? ` · ${connection.displayName}`- : ''}- {agentName ? ` · ${agentName}` : ''}- </p>- </div>- <StatusBadge status={connection.status} />- </PanelContent>- </Panel>- )- })}- </div>- ) : (- <Panel>- <PanelContent className="flex min-h-40 flex-col items-center justify-center text-center">- <div className="bg-muted text-muted-foreground mb-3 flex size-10 items-center justify-center rounded-full">- <Plug className="size-4" aria-hidden />- </div>- <p className="text-sm font-medium">No connections yet</p>- <p className="text-muted-foreground mt-1 max-w-sm text-sm">- Connect an account with the OpenComputer CLI and it will appear- here.- </p>- </PanelContent>- </Panel>- )}- </div>- )-}diff --git a/web/src/managed-agents/Detail.tsx b/web/src/managed-agents/Detail.tsxdeleted file mode 100644index 5d4ae8b7..00000000--- a/web/src/managed-agents/Detail.tsx+++ /dev/null@@ -1,832 +0,0 @@-import { useLayoutEffect, useMemo, useRef, useState } from 'react'-import { useChat } from '@ai-sdk/react'-import { useQuery, useQueryClient } from '@tanstack/react-query'-import { isDynamicToolUIPart, type DynamicToolUIPart, type UIMessage } from 'ai'-import { Link, useParams } from 'react-router-dom'-import ReactMarkdown from 'react-markdown'-import remarkGfm from 'remark-gfm'-import {- ArrowLeft,- Bot,- ChevronRight,- Clock3,- GitCommitHorizontal,- Loader2,- Plus,- Send,- Square,- TerminalSquare,- Wrench,-} from 'lucide-react'-import { ChatTextarea } from '@/components/chat-textarea'-import { EmptyState } from '@/components/empty-state'-import { PageHeader } from '@/components/page-header'-import {- Panel,- PanelContent,- PanelDescription,- PanelHeader,- PanelTitle,-} from '@/components/panel'-import { ResourceTable, type Column } from '@/components/resource-table'-import { StatusBadge } from '@/components/status-badge'-import { Button } from '@/components/ui/button'-import { notifyError } from '@/lib/errors'-import { cn } from '@/lib/utils'-import {- displayManagedAgentName,- getManagedAgentDeployment,- getManagedAgentDeployments,- getManagedAgentChannels,- getManagedAgentSessionEvents,- getManagedAgents,- getManagedAgentSessions,- type ManagedAgentEvent,- type ManagedAgentSession,-} from './api'-import { ManagedAgentChatTransport } from './chat-transport'-import { isNearScrollEnd } from './scroll-follow'-import { ManagedSlackWizard } from './SlackWizard'--type DetailTab = 'playground' | 'deployments' | 'sessions' | 'channels'--function formatDate(value: string) {- return new Date(value).toLocaleString()-}--function eventText(event: ManagedAgentEvent) {- return typeof event.data.text === 'string' ? event.data.text : ''-}--function AgentMarkdown({ children }: { children: string }) {- return (- <div className="text-sm leading-6">- <ReactMarkdown- remarkPlugins={[remarkGfm]}- components={{- h1: (props) => (- <h1- className="mt-6 mb-3 text-xl font-semibold first:mt-0"- {...props}- />- ),- h2: (props) => (- <h2- className="mt-5 mb-2 text-lg font-semibold first:mt-0"- {...props}- />- ),- h3: (props) => (- <h3- className="mt-4 mb-2 text-base font-semibold first:mt-0"- {...props}- />- ),- p: (props) => <p className="mb-3 last:mb-0" {...props} />,- ul: (props) => (- <ul- className="mb-3 list-disc space-y-1 pl-5 last:mb-0"- {...props}- />- ),- ol: (props) => (- <ol- className="mb-3 list-decimal space-y-1 pl-5 last:mb-0"- {...props}- />- ),- li: (props) => <li className="pl-0.5" {...props} />,- blockquote: (props) => (- <blockquote- className="text-muted-foreground my-3 border-l-2 pl-4 italic"- {...props}- />- ),- a: (props) => (- <a- className="underline underline-offset-4"- target="_blank"- rel="noreferrer"- {...props}- />- ),- code: (props) => (- <code- className="bg-muted rounded px-1 py-0.5 font-mono text-[0.85em]"- {...props}- />- ),- pre: (props) => (- <pre- className="bg-muted my-3 overflow-x-auto rounded-md border p-3 text-xs leading-5 [&_code]:bg-transparent [&_code]:p-0"- {...props}- />- ),- hr: (props) => <hr className="my-5" {...props} />,- table: (props) => (- <div className="my-3 overflow-x-auto rounded-md border">- <table- className="w-full border-collapse text-left text-xs"- {...props}- />- </div>- ),- th: (props) => (- <th- className="bg-muted border-b px-3 py-2 font-medium"- {...props}- />- ),- td: (props) => <td className="border-b px-3 py-2" {...props} />,- }}- >- {children}- </ReactMarkdown>- </div>- )-}--function historicalMessages(- session: ManagedAgentSession | undefined,- events: ManagedAgentEvent[],-): UIMessage[] {- if (!session) return []- const completedByTurn = new Map<string, string>()- for (const event of events) {- if (event.type === 'message.completed' && event.turnId) {- completedByTurn.set(event.turnId, eventText(event))- }- }- return session.turns.flatMap((turn) => {- const messages: UIMessage[] = [- {- id: `${turn.id}:user`,- role: 'user',- parts: [{ type: 'text', text: turn.input }],- },- ]- const response = completedByTurn.get(turn.id)- if (response) {- messages.push({- id: `${turn.id}:assistant`,- role: 'assistant',- parts: [{ type: 'text', text: response }],- })- }- return messages- })-}--function toolStatus(tool: DynamicToolUIPart) {- if (tool.state === 'output-available') return 'Completed'- if (tool.state === 'output-error') return 'Failed'- return 'Running'-}--function MessageActivity({- message,- running,-}: {- message: UIMessage- running: boolean-}) {- const reasoning = message.parts- .filter((part) => part.type === 'reasoning')- .map((part) => part.text)- .join('')- const tools = message.parts.filter(isDynamicToolUIPart)- if (!reasoning && tools.length === 0) return null-- return (- <details- open={running}- className="group bg-muted/30 text-muted-foreground mb-3 rounded-md border"- >- <summary className="flex cursor-pointer list-none items-center gap-2 px-3 py-2 text-xs select-none [&::-webkit-details-marker]:hidden">- {running ? (- <Loader2 className="size-3.5 animate-spin" aria-hidden />- ) : (- <Wrench className="size-3.5" aria-hidden />- )}- <span>{running ? 'Agent is working' : 'Activity'}</span>- <span className="ml-auto text-[10px]">- {tools.length > 0- ? `${tools.length} tool ${tools.length === 1 ? 'call' : 'calls'}`- : 'Reasoning'}- </span>- <ChevronRight className="size-3.5 transition-transform group-open:rotate-90" />- </summary>- <div className="space-y-2 border-t px-3 py-2.5">- {reasoning ? (- <p className="line-clamp-5 text-xs leading-5 whitespace-pre-wrap opacity-75">- {reasoning}- </p>- ) : null}- {tools.map((tool) => (- <div- key={tool.toolCallId}- className="flex items-center gap-2 text-xs"- >- {toolStatus(tool) === 'Running' ? (- <Loader2 className="size-3 animate-spin" aria-hidden />- ) : (- <Wrench className="size-3" aria-hidden />- )}- <span className="font-mono">{tool.toolName}</span>- {tool.title ? <span className="truncate">{tool.title}</span> : null}- <span className="ml-auto">{toolStatus(tool)}</span>- </div>- ))}- </div>- </details>- )-}--function PlaygroundChat({- agentId,- session,- events,-}: {- agentId: string- session?: ManagedAgentSession- events: ManagedAgentEvent[]-}) {- const queryClient = useQueryClient()- const [prompt, setPrompt] = useState('')- const [liveSessionId, setLiveSessionId] = useState(session?.id)- const timelineRef = useRef<HTMLDivElement>(null)- const composerRef = useRef<HTMLDivElement>(null)- const followOutputRef = useRef(true)- const initializedScrollRef = useRef(false)- const initialMessages = useMemo(- () => historicalMessages(session, events),- [events, session],- )- const transport = useMemo(- () =>- new ManagedAgentChatTransport(agentId, session?.id, (sessionId) => {- setLiveSessionId(sessionId)- }),- [agentId, session?.id],- )- const { messages, sendMessage, status, stop, error } = useChat({- id: session?.id ?? `new-${agentId}`,- messages: initialMessages,- transport,- throttle: 30,- onError: (chatError) => notifyError("Couldn't run this agent.", chatError),- onFinish: () => {- void queryClient.invalidateQueries({- queryKey: ['managed-agent-sessions', agentId],- })- },- })- const running = status === 'submitted' || status === 'streaming'-- useLayoutEffect(() => {- const timeline = timelineRef.current- if (!timeline) return- if (!initializedScrollRef.current || followOutputRef.current) {- timeline.scrollTop = timeline.scrollHeight- followOutputRef.current = true- }- initializedScrollRef.current = true- }, [messages, status])-- const send = () => {- const input = prompt.trim()- if (!input || running) return- followOutputRef.current = true- setPrompt('')- void sendMessage({ text: input })- requestAnimationFrame(() =>- composerRef.current?.querySelector('textarea')?.focus(),- )- }-- return (- <div className="flex h-full min-h-0 min-w-0 flex-col overflow-hidden">- <div className="flex items-center justify-between border-b px-5 py-3">- <div>- <p className="text-sm font-medium">- {session?.turns[0]?.input || 'New playground session'}- </p>- <p className="text-muted-foreground mt-0.5 font-mono text-[10px]">- {liveSessionId ?? 'A session is created when you send a message'}- </p>- </div>- {running ? (- <div className="text-muted-foreground flex items-center gap-2 text-xs">- <span className="bg-foreground size-1.5 animate-pulse rounded-full" />- Agent is working- </div>- ) : null}- </div>-- <div- ref={timelineRef}- onScroll={(event) => {- followOutputRef.current = isNearScrollEnd(event.currentTarget)- }}- className="min-h-0 flex-1 space-y-6 overflow-y-auto overscroll-contain px-5 py-6"- >- {messages.length === 0 ? (- <div className="text-muted-foreground flex min-h-80 flex-col items-center justify-center text-center">- <Bot className="mb-3 size-7" aria-hidden />- <p className="text-foreground text-sm font-medium">- Start a conversation- </p>- <p className="mt-1 max-w-sm text-sm">- This runs the active deployment and keeps context across every- message in this playground session.- </p>- </div>- ) : (- messages.map((message, index) => {- const isLast = index === messages.length - 1- const messageRunning =- running && isLast && message.role === 'assistant'- const text = message.parts- .filter((part) => part.type === 'text')- .map((part) => part.text)- .join('')- return (- <div- key={message.id}- className={cn(- 'max-w-3xl',- message.role === 'user' && 'ml-auto max-w-2xl',- )}- >- <p className="text-muted-foreground mb-1.5 text-[10px] font-semibold tracking-wider uppercase">- {message.role === 'user' ? 'You' : 'Agent'}- </p>- {message.role === 'assistant' ? (- <MessageActivity message={message} running={messageRunning} />- ) : null}- {text ? (- message.role === 'user' ? (- <div className="bg-muted rounded-xl rounded-br-sm px-3.5 py-2.5 text-sm leading-6 whitespace-pre-wrap">- {text}- </div>- ) : (- <AgentMarkdown>{text}</AgentMarkdown>- )- ) : messageRunning ? (- <div className="text-muted-foreground flex items-center gap-2 text-sm">- <Loader2 className="size-4 animate-spin" />- Starting the agent…- </div>- ) : null}- </div>- )- })- )}- </div>-- <div className="bg-panel shrink-0 border-t p-4">- {error ? (- <p className="text-destructive mb-2 text-xs">{error.message}</p>- ) : null}- <div- ref={composerRef}- className="bg-background focus-within:border-ring/60 rounded-lg border p-2 transition-colors"- >- <ChatTextarea- value={prompt}- onChange={(event) => setPrompt(event.target.value)}- onSend={send}- placeholder="Message this agent…"- className="min-h-12 border-0 px-2 shadow-none focus-visible:border-transparent"- />- <div className="flex items-center justify-between gap-3 px-1 pt-1">- <p className="text-muted-foreground text-[10px]">- Enter to send · Shift + Enter for a new line- </p>- {running ? (- <Button variant="outline" size="sm" onClick={() => void stop()}>- <Square className="fill-current" /> Stop- </Button>- ) : (- <Button size="sm" disabled={!prompt.trim()} onClick={send}>- <Send /> Send- </Button>- )}- </div>- </div>- </div>- </div>- )-}--export default function ManagedAgentDetail() {- const { agentId = '' } = useParams()- const [activeTab, setActiveTab] = useState<DetailTab>('playground')- const [selectedPlaygroundId, setSelectedPlaygroundId] = useState<string>()- const [newSessionKey, setNewSessionKey] = useState(() => crypto.randomUUID())- const [expandedSessionId, setExpandedSessionId] = useState<string>()-- const agents = useQuery({- queryKey: ['managed-agents'],- queryFn: getManagedAgents,- })- const agent = agents.data?.find((candidate) => candidate.id === agentId)- const activeDeployment = useQuery({- queryKey: ['managed-agent-deployment', agent?.activeDeploymentId],- queryFn: () => getManagedAgentDeployment(agent!.activeDeploymentId!),- enabled: Boolean(agent?.activeDeploymentId),- })- const deployments = useQuery({- queryKey: ['managed-agent-deployments', agentId],- queryFn: () => getManagedAgentDeployments(agentId),- })- const sessions = useQuery({- queryKey: ['managed-agent-sessions', agentId],- queryFn: () => getManagedAgentSessions(agentId),- refetchInterval: 5_000,- })- const channels = useQuery({- queryKey: ['managed-agent-channels'],- queryFn: getManagedAgentChannels,- })- const selectedPlayground = sessions.data?.find(- (session) => session.id === selectedPlaygroundId,- )- const selectedPlaygroundEvents = useQuery({- queryKey: ['managed-agent-session-events', selectedPlaygroundId],- queryFn: () => getManagedAgentSessionEvents(selectedPlaygroundId!),- enabled: Boolean(selectedPlaygroundId),- })- const sessionEvents = useQuery({- queryKey: ['managed-agent-session-events', expandedSessionId],- queryFn: () => getManagedAgentSessionEvents(expandedSessionId!),- enabled: Boolean(expandedSessionId),- })-- const playgroundSessions = (sessions.data ?? []).filter(- (session) => session.source === 'playground',- )- const externalSessions = (sessions.data ?? []).filter(- (session) => session.source !== 'playground',- )- const activeAliasChannel = (channels.data ?? []).find(- (channel) =>- channel.agentId === agentId &&- channel.alias === (activeDeployment.data?.alias ?? agent?.activeAlias) &&- channel.status !== 'disconnected',- )-- const sessionColumns: Column<ManagedAgentSession>[] = [- {- key: 'session',- header: 'Session',- cell: (session) => (- <span className="font-mono text-xs">{session.id}</span>- ),- },- {- key: 'source',- header: 'Source',- cell: (session) => (- <span className="text-muted-foreground text-xs capitalize">- {session.source}- </span>- ),- },- {- key: 'status',- header: 'Status',- cell: (session) => <StatusBadge status={session.status} />,- },- {- key: 'turns',- header: 'Turns',- cell: (session) => (- <span className="text-muted-foreground text-xs">- {session.turns.length}- </span>- ),- },- {- key: 'updated',- header: 'Updated',- align: 'right',- cell: (session) => (- <time- className="text-muted-foreground text-xs"- dateTime={session.updatedAt}- >- {formatDate(session.updatedAt)}- </time>- ),- },- ]-- if (!agents.isLoading && !agent) {- return (- <Panel>- <EmptyState- icon={Bot}- title="Agent not found"- description="This agent is not available in your organization."- action={- <Button asChild variant="outline">- <Link to="/">Back to agents</Link>- </Button>- }- />- </Panel>- )- }-- const tabs: Array<{ id: DetailTab; label: string }> = [- { id: 'playground', label: 'Playground' },- { id: 'deployments', label: 'Deployments' },- { id: 'sessions', label: 'Sessions' },- { id: 'channels', label: 'Channels' },- ]-- return (- <div- className={cn(- activeTab === 'playground'- ? 'flex h-[calc(100dvh-7rem)] min-h-0 flex-col gap-5 overflow-hidden'- : 'space-y-5',- )}- >- <PageHeader- title={agent ? displayManagedAgentName(agent) : 'Agent'}- description={- activeDeployment.data- ? `Active deployment · ${activeDeployment.data.alias}`- : 'Loading active deployment…'- }- actions={- <Button asChild variant="outline" size="sm">- <Link to="/">- <ArrowLeft /> All agents- </Link>- </Button>- }- className={activeTab === 'playground' ? 'mb-0 shrink-0' : undefined}- />-- <div className="flex shrink-0 items-end justify-between gap-6 border-b">- <nav className="flex gap-5" aria-label="Agent details">- {tabs.map((tab) => (- <button- key={tab.id}- type="button"- onClick={() => setActiveTab(tab.id)}- className={cn(- '-mb-px border-b-2 px-0.5 pb-3 text-sm font-medium transition-colors',- activeTab === tab.id- ? 'border-foreground text-foreground'- : 'text-muted-foreground hover:text-foreground border-transparent',- )}- >- {tab.label}- </button>- ))}- </nav>- <div className="text-muted-foreground hidden gap-5 pb-3 text-xs lg:flex">- <span>{agent?.deploymentCount ?? 0} deployments</span>- <span>- {activeDeployment.data?.connections.length ?? 0} connections- </span>- <span>- {activeAliasChannel?.status === 'connected' ? 1 : 0} channels- </span>- </div>- </div>-- {activeTab === 'playground' ? (- <Panel className="min-h-0 flex-1 overflow-hidden">- <div className="grid h-full min-h-0 grid-rows-[auto_minmax(0,1fr)] lg:grid-cols-[17rem_minmax(0,1fr)] lg:grid-rows-1">- <aside className="bg-muted/15 flex min-h-0 flex-col overflow-hidden border-b lg:border-r lg:border-b-0">- <div className="flex items-center justify-between border-b px-4 py-3">- <p className="text-xs font-semibold tracking-wide uppercase">- Sessions- </p>- <Button- size="icon-sm"- variant="ghost"- aria-label="New playground session"- onClick={() => {- setSelectedPlaygroundId(undefined)- setNewSessionKey(crypto.randomUUID())- }}- >- <Plus />- </Button>- </div>- <div className="max-h-48 min-h-0 overflow-y-auto overscroll-contain p-2 lg:max-h-none lg:flex-1">- {!selectedPlaygroundId ? (- <button- type="button"- className="bg-muted text-foreground mb-1 w-full rounded-md px-3 py-2 text-left"- >- <span className="block truncate text-xs font-medium">- New session- </span>- <span className="text-muted-foreground mt-0.5 block text-[10px]">- Playground- </span>- </button>- ) : null}- {playgroundSessions.map((session) => (- <button- key={session.id}- type="button"- onClick={() => setSelectedPlaygroundId(session.id)}- className={cn(- 'hover:bg-muted/70 mb-1 w-full rounded-md px-3 py-2 text-left transition-colors',- selectedPlaygroundId === session.id && 'bg-muted',- )}- >- <span className="block truncate text-xs font-medium">- {session.turns[0]?.input || 'Playground session'}- </span>- <span className="text-muted-foreground mt-0.5 block text-[10px]">- {session.turns.length}{' '}- {session.turns.length === 1 ? 'turn' : 'turns'} ·{' '}- {formatDate(session.updatedAt)}- </span>- </button>- ))}- </div>- </aside>- {selectedPlaygroundId && selectedPlaygroundEvents.isLoading ? (- <div className="text-muted-foreground flex min-h-0 items-center justify-center gap-2 text-sm">- <Loader2 className="size-4 animate-spin" /> Loading session…- </div>- ) : (- <PlaygroundChat- key={selectedPlaygroundId ?? newSessionKey}- agentId={agentId}- session={selectedPlayground}- events={selectedPlaygroundEvents.data ?? []}- />- )}- </div>- </Panel>- ) : null}-- {activeTab === 'deployments' ? (- <Panel className="overflow-hidden">- <PanelHeader>- <div>- <PanelTitle>Deployments</PanelTitle>- <PanelDescription className="mt-1">- Immutable versions published from this agent's source.- </PanelDescription>- </div>- </PanelHeader>- {(deployments.data ?? []).length > 0 ? (- <div className="divide-y">- {(deployments.data ?? []).map((deployment) => (- <div- key={deployment.id}- className="grid gap-4 px-5 py-4 sm:grid-cols-[minmax(14rem,1fr)_1fr_1fr_auto]"- >- <div className="flex min-w-0 items-start gap-2">- <GitCommitHorizontal className="text-muted-foreground mt-0.5 size-4 shrink-0" />- <div className="min-w-0">- <p className="truncate font-mono text-xs">- {deployment.id}- </p>- {deployment.id === agent?.activeDeploymentId ? (- <span className="text-muted-foreground mt-1 block text-[10px] font-medium uppercase">- Active- </span>- ) : null}- </div>- </div>- <div>- <p className="text-muted-foreground text-xs">Alias</p>- <p className="mt-1 text-sm">{deployment.alias}</p>- </div>- <div>- <p className="text-muted-foreground text-xs">Created</p>- <p className="mt-1 text-sm">- {formatDate(deployment.createdAt)}- </p>- </div>- <StatusBadge- status={- deployment.id === agent?.activeDeploymentId- ? 'active'- : 'inactive'- }- />- </div>- ))}- </div>- ) : (- <PanelContent className="text-muted-foreground text-sm">- {deployments.isLoading- ? 'Loading deployments…'- : 'No deployments found.'}- </PanelContent>- )}- </Panel>- ) : null}-- {activeTab === 'sessions' ? (- <Panel className="overflow-hidden">- <PanelHeader>- <div>- <PanelTitle>Sessions</PanelTitle>- <PanelDescription className="mt-1">- Sessions started through channels and the API. Playground- sessions stay in the playground.- </PanelDescription>- </div>- <div className="text-muted-foreground flex items-center gap-1.5 text-xs">- <Clock3 className="size-3.5" /> Refreshes automatically- </div>- </PanelHeader>- <ResourceTable- columns={sessionColumns}- rows={externalSessions}- rowKey={(session) => session.id}- loading={sessions.isLoading}- onRowClick={(session) =>- setExpandedSessionId((current) =>- current === session.id ? undefined : session.id,- )- }- renderSubRow={(session) => {- if (expandedSessionId !== session.id) return null- const replies = (sessionEvents.data ?? []).filter(- (event) => event.type === 'message.completed',- )- return (- <div className="bg-muted/20 space-y-4 border-y px-5 py-4">- {session.turns.map((turn) => (- <div key={turn.id}>- <p className="text-muted-foreground mb-1 text-[10px] font-medium tracking-wider uppercase">- You · {turn.status}- </p>- <p className="text-sm whitespace-pre-wrap">- {turn.input}- </p>- </div>- ))}- {replies.map((event) => (- <div key={event.id ?? event.seq}>- <p className="text-muted-foreground mb-1 text-[10px] font-medium tracking-wider uppercase">- Agent- </p>- <p className="text-sm leading-6 whitespace-pre-wrap">- {eventText(event)}- </p>- </div>- ))}- {sessionEvents.isLoading ? (- <div className="text-muted-foreground flex items-center gap-2 text-xs">- <Loader2 className="size-3.5 animate-spin" /> Loading- session events…- </div>- ) : null}- </div>- )- }}- empty={- <EmptyState- icon={TerminalSquare}- title="No channel or API sessions yet"- description="Sessions created outside the playground will appear here."- />- }- />- </Panel>- ) : null}-- {activeTab === 'channels' ? (- <Panel className="overflow-hidden">- <PanelHeader>- <div>- <PanelTitle>Channels</PanelTitle>- <PanelDescription className="mt-1">- Messaging channels connected to this deployed agent.- </PanelDescription>- </div>- </PanelHeader>- {agent && activeDeployment.data ? (- <ManagedSlackWizard- agentId={agent.id}- alias={activeDeployment.data.alias}- agentName={displayManagedAgentName(agent)}- connection={activeAliasChannel}- />- ) : (- <PanelContent className="text-muted-foreground text-sm">- Loading channels…- </PanelContent>- )}- </Panel>- ) : null}- </div>- )-}diff --git a/web/src/managed-agents/Home.tsx b/web/src/managed-agents/Home.tsxdeleted file mode 100644index 44dad14e..00000000--- a/web/src/managed-agents/Home.tsx+++ /dev/null@@ -1,637 +0,0 @@-import { useMemo, useState } from 'react'-import { useQuery } from '@tanstack/react-query'-import { Link } from 'react-router-dom'-import {- Bot,- BriefcaseBusiness,- Check,- ChevronRight,- Clock3,- Clipboard,- ClipboardCheck,- Code2,- Lightbulb,- Loader2,- MessageSquareText,- Plus,- Sparkles,- TrendingUp,- Workflow,-} from 'lucide-react'-import { toast } from 'sonner'-import { EmptyState } from '@/components/empty-state'-import { PageHeader } from '@/components/page-header'-import {- Panel,- PanelContent,- PanelDescription,- PanelHeader,- PanelTitle,-} from '@/components/panel'-import { Button } from '@/components/ui/button'-import {- Dialog,- DialogContent,- DialogDescription,- DialogHeader,- DialogTitle,-} from '@/components/ui/dialog'-import { notifyError } from '@/lib/errors'-import { cn } from '@/lib/utils'-import {- displayManagedAgentName,- getManagedAgents,- getManagedAgentTemplates,- type ManagedAgentTemplate,-} from './api'--const categories = [- 'Comms',- 'Coding',- 'Operations',- 'Admin',- 'Growth',- 'Insights',-] as const--type Category = (typeof categories)[number]-type CliStep = {- title: string- commands: string[]-}--const availableTemplateIds = new Set([- 'email-triage',- 'pr-review-readiness',- 'pto-calendar',-])--function templateSetup(template: ManagedAgentTemplate) {- if (template.id === 'pr-review-readiness') {- return {- directory: 'pr-review-readiness',- connectionName: 'GitHub',- connectionCommand: 'connection add github --alias default',- toolCommand: '',- requiresConnection: true,- }- }- if (template.id === 'pto-calendar') {- return {- directory: 'pto-calendar',- connectionName: 'Google Calendar',- connectionCommand: 'connection add calendar --alias work-calendar',- toolCommand: 'tools add calendar',- requiresConnection: true,- }- }- return {- directory: 'gmail-triage',- connectionName: 'Gmail',- connectionCommand: 'connection add gmail --alias personal',- toolCommand: 'tools add gmail',- requiresConnection: true,- }-}--const starterCopy = [- {- title: 'Choose a job for your next agent.',- description:- 'Pick a starting point, copy its build prompt, and turn it into an agent you can develop and deploy from source.',- sectionTitle: 'Ideas to start with',- sectionDescription:- 'Each prompt creates an editable agent repository you can make your own.',- },- {- title: 'What should your agent take care of?',- description:- 'Start with a useful workflow, shape the source locally, and deploy it when it is ready.',- sectionTitle: 'Pick a starting point',- sectionDescription:- 'Copy an agent prompt, then adapt the generated source to your workflow.',- },- {- title: 'Start with a real task.',- description:- 'Choose a workflow below and use the generated source as the beginning of your next agent.',- sectionTitle: 'Agent ideas',- sectionDescription:- 'Explore a use case, copy its prompt, and keep building from the generated repository.',- },-] as const--const categoryIcons = {- Comms: MessageSquareText,- Coding: Code2,- Operations: Workflow,- Admin: BriefcaseBusiness,- Growth: TrendingUp,- Insights: Lightbulb,-} satisfies Record<Category, typeof Sparkles>--function shuffled<T>(values: readonly T[]) {- const result = [...values]- for (let index = result.length - 1; index > 0; index -= 1) {- const other = Math.floor(Math.random() * (index + 1))- ;[result[index], result[other]] = [result[other], result[index]]- }- return result-}--function cliCommand(origin: string, command: string) {- const apiOption =- origin === 'https://app.opencomputer.dev' ? '' : ` --api-url ${origin}`- return `opencomputer${apiOption} ${command}`-}--function buildSetupPrompt(template: ManagedAgentTemplate, origin: string) {- const setup = templateSetup(template)- const integrations = template.integrations.join(', ')- const firstPrompt =- template.suggestedPrompts[0] ?? `Help me configure ${template.name}.`- const connectionCommands = [setup.toolCommand, setup.connectionCommand]- .filter(Boolean)- .map((command) => `\`${cliCommand(origin, command)}\``)- .join(' and ')- return `Create a local "${template.name}" OpenComputer agent repository for me.--The agent's job:-${template.description}--Suggested integrations:-${integrations}--Use the OpenComputer CLI and keep the agent as editable source code in this workspace.--1. Check whether the \`opencomputer\` command is available. If it is missing, install the \`@opencomputer/cli\` package.-2. Authenticate interactively:- ${cliCommand(origin, 'login')}-3. Initialize the source template in the current repository:- ${cliCommand(origin, `init ${template.id} .`)}-4. Run \`npm install\` in the repository.-5. Inspect and tailor the checked-in source: \`opencomputer.toml\`, \`instructions.md\`, \`agent.ts\`, \`tools/\`, \`connections/\`, \`skills/\`, \`workspace/\`, and \`evals/\`.-6. Keep the stable \`id\` in \`opencomputer.toml\`; future deployments of this repository must create new versions of that same agent.-7. ${- setup.requiresConnection- ? `Add and authorize the ${setup.connectionName} connection with ${connectionCommands}.`- : 'Connect GitHub to review public or private pull requests. GitHub credentials stay in the control plane, and the agent can use only allowlisted read requests.'- }-8. Test the editable agent locally with the OpenComputer CLI:- \`opencomputer session "${firstPrompt.replace(/"/g, '\\"')}"\`-9. Make any necessary source changes and test again.-10. Commit the agent source, including \`opencomputer.toml\`, to Git.-11. Deploy from inside the repository:- ${cliCommand(origin, 'deploy')}--Connect only integrations that are actually available. Ask me for authorization when a connection requires it, never print credentials, and do not claim an integration or deployment succeeded unless the CLI confirms it.`-}--function buildCliSteps(- template: ManagedAgentTemplate,- origin: string,-): CliStep[] {- const setup = templateSetup(template)- const firstPrompt =- template.suggestedPrompts[0] ?? `Help me configure ${template.name}.`- return [- {- title: 'Install the OpenComputer CLI',- commands: ['npm install --global @opencomputer/cli'],- },- {- title: 'Log in',- commands: [cliCommand(origin, 'login')],- },- {- title: `Initialize the ${template.name} agent`,- commands: [- `mkdir ${setup.directory} && cd ${setup.directory}`,- cliCommand(origin, `init ${template.id} .`),- 'npm install',- ],- },- ...(setup.requiresConnection- ? [- {- title: `Connect your ${setup.connectionName} account`,- commands: [cliCommand(origin, setup.connectionCommand)],- },- ]- : []),- {- title: 'Test the agent locally',- commands: [- cliCommand(origin, `session "${firstPrompt.replace(/"/g, '\\"')}"`),- ],- },- {- title: 'Deploy it',- commands: [cliCommand(origin, 'deploy --alias production')],- },- ]-}--function TemplateCard({- template,- deployed,- promptCopied,- onCopyPrompt,- onShowCli,-}: {- template: ManagedAgentTemplate- deployed: boolean- promptCopied: boolean- onCopyPrompt: () => void- onShowCli: () => void-}) {- const Icon = categoryIcons[template.category as Category] ?? ClipboardCheck- const available = availableTemplateIds.has(template.id)- return (- <Panel- className={cn(- 'flex h-full flex-col overflow-hidden',- available- ? 'border-primary/30 bg-primary/[0.025] shadow-sm'- : 'bg-muted/15',- )}- >- <PanelHeader className="border-0 pb-2">- <div className="flex min-w-0 items-start gap-3">- <div className="bg-primary/8 text-primary flex size-9 shrink-0 items-center justify-center rounded-md">- <Icon className="size-4" strokeWidth={1.6} aria-hidden />- </div>- <div className="min-w-0">- <div className="flex flex-wrap items-center gap-2">- <PanelTitle className="text-base">{template.name}</PanelTitle>- {deployed ? (- <span className="bg-status-running-bg text-status-running rounded-full px-2 py-0.5 text-[10px] font-medium">- Deployed- </span>- ) : null}- {available && !deployed ? (- <span className="bg-status-running-bg text-status-running rounded-full px-2 py-0.5 text-[10px] font-medium">- Available now- </span>- ) : null}- {!available ? (- <span className="bg-muted text-muted-foreground inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-[10px] font-medium">- <Clock3 className="size-3" aria-hidden />- Coming soon- </span>- ) : null}- </div>- <p className="text-muted-foreground mt-0.5 text-xs">- {template.category}- </p>- </div>- </div>- </PanelHeader>- <PanelContent className="flex flex-1 flex-col pt-1">- <PanelDescription className="min-h-10">- {template.description}- </PanelDescription>- <div className="mt-4 flex flex-wrap gap-1.5">- {template.integrations.map((integration) => (- <span- key={integration}- className="bg-muted text-muted-foreground rounded-md border px-2 py-1 text-[10px] font-medium"- >- {integration}- </span>- ))}- </div>- <div className={cn('mt-5 space-y-2', !available && 'opacity-65')}>- <p className="text-muted-foreground text-[10px] font-medium tracking-wider uppercase">- First task- </p>- <p className="text-foreground/80 text-sm">- “{template.suggestedPrompts[0]}”- </p>- </div>- {available ? (- <div className="mt-6">- <div className="grid gap-2 sm:grid-cols-2">- <Button- variant={promptCopied ? 'secondary' : 'default'}- onClick={onCopyPrompt}- >- {promptCopied ? <Check /> : <Clipboard />}- {promptCopied ? 'Agent prompt copied' : 'Copy agent prompt'}- </Button>- <Button variant="outline" onClick={onShowCli}>- <Clipboard />- View CLI instructions- </Button>- </div>- </div>- ) : (- <Button className="mt-6 w-full" variant="outline" disabled>- <Clock3 />- Coming soon- </Button>- )}- </PanelContent>- </Panel>- )-}--export default function ManagedAgentsHome({- startersOnly = false,-}: {- startersOnly?: boolean-}) {- const [selectedCategory, setSelectedCategory] = useState<Category>('Comms')- const [copiedPromptId, setCopiedPromptId] = useState<string>()- const [copiedCliStep, setCopiedCliStep] = useState<string>()- const [cliTemplate, setCliTemplate] = useState<ManagedAgentTemplate>()- const [categoryOrder] = useState(() => shuffled(categories))- const [copy] = useState(- () => starterCopy[Math.floor(Math.random() * starterCopy.length)],- )- const agents = useQuery({- queryKey: ['managed-agents'],- queryFn: getManagedAgents,- })- const deployedAgents = agents.data ?? []- const firstRun =- !agents.isLoading && !agents.isError && deployedAgents.length === 0- const showStarters = startersOnly || firstRun- const templates = useQuery({- queryKey: ['managed-agent-templates'],- queryFn: getManagedAgentTemplates,- enabled: showStarters,- })- const randomizedTemplates = useMemo(- () => shuffled(templates.data ?? []),- [templates.data],- )- const visibleTemplates = useMemo(- () =>- randomizedTemplates- .filter((template) => template.category === selectedCategory)- .sort((left, right) => {- const leftAvailable = availableTemplateIds.has(left.id) ? 0 : 1- const rightAvailable = availableTemplateIds.has(right.id) ? 0 : 1- return leftAvailable - rightAvailable- }),- [randomizedTemplates, selectedCategory],- )-- async function copySetupPrompt(template: ManagedAgentTemplate) {- try {- await navigator.clipboard.writeText(- buildSetupPrompt(template, window.location.origin),- )- setCopiedPromptId(template.id)- toast.success(`${template.name} agent prompt copied`)- } catch (error) {- notifyError("Couldn't copy the agent prompt.", error)- }- }-- async function copyCliStep(template: ManagedAgentTemplate, step: CliStep) {- try {- await navigator.clipboard.writeText(step.commands.join('\n'))- setCopiedCliStep(`${template.id}:${step.title}`)- toast.success(`${step.title} copied`)- } catch (error) {- notifyError("Couldn't copy this command.", error)- }- }-- return (- <div className="space-y-8">- <PageHeader- title={startersOnly ? 'Deploy another agent' : 'Agents'}- description={- startersOnly- ? 'Choose a starting point for your next agent repository.'- : 'Develop locally, then deploy versioned agents with the OpenComputer CLI.'- }- actions={- !startersOnly && deployedAgents.length > 0 ? (- <Button asChild>- <Link to="/managed-agents/new">- <Plus />- Deploy another agent- </Link>- </Button>- ) : undefined- }- />-- {showStarters ? (- <div className="relative overflow-hidden rounded-xl border bg-[radial-gradient(circle_at_top_right,color-mix(in_oklch,var(--primary)_12%,transparent),transparent_45%)] px-6 py-8 sm:px-8">- <div className="max-w-2xl">- <div className="bg-primary/10 text-primary mb-4 inline-flex items-center gap-2 rounded-full px-3 py-1 text-xs font-medium">- <Sparkles className="size-3.5" />- {firstRun ? 'Your first agent' : 'Your next agent'}- </div>- <h2 className="text-2xl font-semibold tracking-tight sm:text-3xl">- {copy.title}- </h2>- <p className="text-muted-foreground mt-3 max-w-xl text-sm leading-6">- {copy.description}- </p>- </div>- </div>- ) : null}-- {!startersOnly && agents.isLoading ? (- <div className="flex min-h-48 items-center justify-center">- <Loader2 className="text-muted-foreground size-5 animate-spin" />- </div>- ) : !startersOnly && agents.isError ? (- <Panel>- <EmptyState- icon={Bot}- title="Your agents are temporarily unavailable"- description="Try loading the agents page again."- action={- <Button variant="outline" onClick={() => void agents.refetch()}>- Try again- </Button>- }- />- </Panel>- ) : !startersOnly && deployedAgents.length > 0 ? (- <section className="space-y-3">- <div>- <h2 className="text-base font-semibold">Your agents</h2>- <p className="text-muted-foreground text-sm">- Select an agent to view its deployment and sessions.- </p>- </div>- <div className="grid gap-3 sm:grid-cols-2 lg:grid-cols-3">- {deployedAgents.map((agent) => (- <Link- key={agent.id}- to={`/managed-agents/${encodeURIComponent(agent.id)}`}- className="group focus-visible:ring-ring/50 rounded-lg outline-none focus-visible:ring-3"- >- <Panel className="group-hover:border-foreground/20 group-hover:bg-muted/25 h-full transition-colors">- <PanelContent className="flex items-center gap-3">- <div className="bg-status-running-bg text-status-running flex size-9 shrink-0 items-center justify-center rounded-full">- <Bot className="size-4" aria-hidden />- </div>- <div className="min-w-0 flex-1">- <p className="truncate text-sm font-medium">- {displayManagedAgentName(agent)}- </p>- <p className="text-muted-foreground mt-0.5 text-xs">- {agent.activeAlias} · {agent.deploymentCount}{' '}- {agent.deploymentCount === 1- ? 'deployment'- : 'deployments'}- </p>- </div>- <ChevronRight className="text-muted-foreground size-4 shrink-0 transition-transform group-hover:translate-x-0.5" />- </PanelContent>- </Panel>- </Link>- ))}- </div>- </section>- ) : null}-- {showStarters ? (- <section className="space-y-4">- <div>- <h2 className="text-base font-semibold">{copy.sectionTitle}</h2>- <p className="text-muted-foreground text-sm">- {copy.sectionDescription}- </p>- </div>-- {templates.isLoading ? (- <div className="flex min-h-64 items-center justify-center">- <Loader2 className="text-muted-foreground size-5 animate-spin" />- </div>- ) : templates.isError ? (- <Panel>- <EmptyState- icon={Bot}- title="Agent templates are temporarily unavailable"- description="Check the managed-agent service configuration and try again."- action={- <Button- variant="outline"- onClick={() => {- void templates.refetch()- void agents.refetch()- }}- >- Try again- </Button>- }- />- </Panel>- ) : (- <>- <div- className="bg-muted/30 flex gap-1 overflow-x-auto rounded-lg border p-1"- role="tablist"- aria-label="Agent categories"- >- {categoryOrder.map((category) => {- const Icon = categoryIcons[category]- const count = (templates.data ?? []).filter(- (template) => template.category === category,- ).length- return (- <button- key={category}- type="button"- role="tab"- aria-selected={selectedCategory === category}- onClick={() => setSelectedCategory(category)}- className={cn(- 'flex min-w-max flex-1 items-center justify-center gap-2 rounded-md px-3 py-2 text-sm font-medium transition-colors',- selectedCategory === category- ? 'bg-background text-foreground shadow-sm'- : 'text-muted-foreground hover:text-foreground',- )}- >- <Icon className="size-3.5" aria-hidden />- {category}- <span className="text-[10px] opacity-60">{count}</span>- </button>- )- })}- </div>- <div- className="grid gap-4 md:grid-cols-2 xl:grid-cols-3"- role="tabpanel"- >- {visibleTemplates.map((template) => (- <TemplateCard- key={template.id}- template={template}- deployed={deployedAgents.some(- (agent) => agent.id === template.id,- )}- promptCopied={copiedPromptId === template.id}- onCopyPrompt={() => void copySetupPrompt(template)}- onShowCli={() => setCliTemplate(template)}- />- ))}- </div>- </>- )}- </section>- ) : null}-- <Dialog- open={cliTemplate !== undefined}- onOpenChange={(open) => !open && setCliTemplate(undefined)}- >- <DialogContent className="max-h-[min(48rem,calc(100vh-2rem))] overflow-hidden sm:max-w-2xl">- <DialogHeader>- <DialogTitle>Set up Gmail triage with the CLI</DialogTitle>- <DialogDescription>- Follow these commands in order to create, test, and deploy your- agent.- </DialogDescription>- </DialogHeader>- {cliTemplate ? (- <div className="min-h-0 space-y-4 overflow-y-auto pr-1">- {buildCliSteps(cliTemplate, window.location.origin).map(- (step, index) => (- <div key={step.title} className="flex gap-3">- <div className="bg-primary/10 text-primary flex size-7 shrink-0 items-center justify-center rounded-full text-xs font-semibold">- {index + 1}- </div>- <div className="min-w-0 flex-1 space-y-2">- <p className="font-medium">{step.title}</p>- <div className="relative">- <pre className="bg-muted overflow-x-auto rounded-md border py-2 pr-11 pl-3 text-xs leading-5">- <code>{step.commands.join('\n')}</code>- </pre>- <Button- type="button"- variant="ghost"- size="icon-sm"- className="bg-muted absolute top-1.5 right-1.5"- aria-label={`Copy ${step.title.toLowerCase()} commands`}- onClick={() => void copyCliStep(cliTemplate, step)}- >- {copiedCliStep ===- `${cliTemplate.id}:${step.title}` ? (- <Check />- ) : (- <Clipboard />- )}- </Button>- </div>- </div>- </div>- ),- )}- </div>- ) : null}- </DialogContent>- </Dialog>- </div>- )-}diff --git a/web/src/managed-agents/SlackWizard.tsx b/web/src/managed-agents/SlackWizard.tsxdeleted file mode 100644index ad10a2e0..00000000--- a/web/src/managed-agents/SlackWizard.tsx+++ /dev/null@@ -1,491 +0,0 @@-import { useEffect, useState } from 'react'-import { useMutation, useQueryClient } from '@tanstack/react-query'-import {- Check,- Copy,- ExternalLink,- LoaderCircle,- MessageSquare,- TriangleAlert,-} from 'lucide-react'-import { ConfirmDialog } from '@/components/confirm-dialog'-import { Field, Input } from '@/components/form'-import {- Dialog,- DialogContent,- DialogDescription,- DialogFooter,- DialogHeader,- DialogTitle,-} from '@/components/ui/dialog'-import { Button } from '@/components/ui/button'-import { StatusBadge } from '@/components/status-badge'-import { notifyError } from '@/lib/errors'-import { useTransientFlag } from '@/lib/use-transient-flag'-import { cn } from '@/lib/utils'-import {- completeManagedAgentSlack,- disconnectManagedAgentSlack,- startManagedAgentSlack,- type ManagedAgentChannel,- type ManagedSlackManifest,-} from './api'--type Step = 'create' | 'details' | 'install' | 'done'-const CREATE_STEPS = ['Create app', 'Details', 'Install', 'Verify']-const EDIT_STEPS = ['Credentials', 'Token', 'Verify']--function WizardSteps({ current, steps }: { current: number; steps: string[] }) {- return (- <ol className="flex items-center gap-2 pt-2">- {steps.map((label, index) => (- <li key={label} className="flex min-w-0 items-center gap-2">- <span- className={cn(- 'flex size-5 shrink-0 items-center justify-center rounded-full text-[11px] font-semibold',- index <= current- ? 'bg-foreground text-background'- : 'bg-secondary text-muted-foreground',- )}- >- {index < current ? <Check className="size-3" /> : index + 1}- </span>- <span- className={cn(- 'truncate text-xs',- index === current- ? 'text-foreground font-medium'- : 'text-muted-foreground',- )}- >- {label}- </span>- {index < steps.length - 1 ? (- <span className="bg-border h-px w-4 shrink-0" />- ) : null}- </li>- ))}- </ol>- )-}--export function ManagedSlackWizard({- agentId,- alias,- agentName,- connection,-}: {- agentId: string- alias: string- agentName: string- connection?: ManagedAgentChannel-}) {- const queryClient = useQueryClient()- const [open, setOpen] = useState(false)- const [step, setStep] = useState<Step>('create')- const [appName, setAppName] = useState(agentName)- const [manifest, setManifest] = useState<ManagedSlackManifest>()- const [appId, setAppId] = useState('')- const [signingSecret, setSigningSecret] = useState('')- const [botToken, setBotToken] = useState('')- const [editing, setEditing] = useState(false)- const [verificationBaseline, setVerificationBaseline] = useState<string>()- const [confirmDisconnect, setConfirmDisconnect] = useState(false)- const [copied, markCopied] = useTransientFlag(1500)-- const invalidate = () =>- queryClient.invalidateQueries({ queryKey: ['managed-agent-channels'] })-- const start = useMutation({- mutationFn: () =>- startManagedAgentSlack(`${agentId}@${alias}`, appName.trim(), false),- onSuccess: (result) => {- setManifest(result)- void invalidate()- },- onError: (error) => notifyError("Couldn't prepare the Slack app.", error),- })- const complete = useMutation({- mutationFn: () => {- const connectionId = manifest?.connection.id ?? connection?.id- if (!connectionId) throw new Error('Slack connection is unavailable')- return completeManagedAgentSlack(connectionId, {- appId: appId.trim(),- signingSecret: signingSecret.trim(),- botToken: botToken.trim(),- })- },- onSuccess: (updated) => {- setVerificationBaseline(updated.updatedAt)- setStep('done')- setSigningSecret('')- setBotToken('')- void invalidate()- },- onError: (error) =>- notifyError('Slack rejected those values. Double-check them.', error),- })- const disconnect = useMutation({- mutationFn: () => disconnectManagedAgentSlack(connection!.id),- onSuccess: () => {- setConfirmDisconnect(false)- void invalidate()- },- onError: (error) => notifyError("Couldn't disconnect Slack.", error),- })-- const reset = () => {- setStep('create')- setEditing(false)- setManifest(undefined)- setAppId('')- setSigningSecret('')- setBotToken('')- setVerificationBaseline(undefined)- }- const begin = () => {- reset()- setOpen(true)- }- const beginEdit = () => {- reset()- setEditing(true)- setAppId(connection?.appId || '')- setStep('details')- setOpen(true)- }- const steps = editing ? EDIT_STEPS : CREATE_STEPS- const stepIndex = editing- ? step === 'details'- ? 0- : step === 'install'- ? 1- : 2- : step === 'create'- ? 0- : step === 'details'- ? 1- : step === 'install'- ? 2- : 3- const verificationUpdated = Boolean(- verificationBaseline &&- connection?.updatedAt &&- connection.updatedAt > verificationBaseline,- )- const eventVerified = Boolean(- verificationUpdated &&- verificationBaseline &&- connection?.verifiedAt &&- connection.verifiedAt > verificationBaseline,- )- const verificationFailed = Boolean(- verificationUpdated && connection?.verificationError,- )-- useEffect(() => {- if (!open || step !== 'done' || eventVerified || verificationFailed) return- const interval = window.setInterval(() => {- void queryClient.invalidateQueries({- queryKey: ['managed-agent-channels'],- })- }, 2_000)- return () => window.clearInterval(interval)- }, [eventVerified, open, queryClient, step, verificationFailed])-- return (- <>- <div className="flex flex-wrap items-center justify-between gap-4 border-b px-5 py-4">- <div className="flex min-w-0 items-center gap-3">- <span className="bg-muted flex size-9 shrink-0 items-center justify-center rounded-md">- <MessageSquare className="size-4" />- </span>- <div className="min-w-0">- <p className="text-sm font-medium">- {connection?.appName || agentName}- </p>- <p className="text-muted-foreground truncate text-xs">- {connection?.status === 'connected'- ? `Slack · ${connection.teamName || 'Connected workspace'}`- : `Connect a dedicated Slack app to @${alias}`}- </p>- {connection?.status === 'connected' ? (- <p className="text-muted-foreground mt-1 text-xs">- {connection.verificationError- ? 'Slack events are being rejected. Edit the signing secret and test again.'- : connection.verifiedAt- ? 'Listening for Slack events.'- : 'Credentials saved. Send the app a message to verify event delivery.'}- </p>- ) : null}- </div>- {connection ? <StatusBadge status={connection.status} /> : null}- </div>- <div className="flex items-center gap-2">- {connection?.status === 'connected' ||- connection?.verificationError ? (- <Button variant="outline" size="sm" onClick={beginEdit}>- Edit credentials- </Button>- ) : null}- {connection?.status === 'connected' ? (- <Button- variant="ghost"- size="sm"- onClick={() => setConfirmDisconnect(true)}- >- Disconnect- </Button>- ) : null}- {connection?.status !== 'connected' &&- !connection?.verificationError ? (- <Button size="sm" variant="outline" onClick={begin}>- {connection ? 'Continue setup' : 'Connect Slack'}- </Button>- ) : null}- </div>- </div>-- <Dialog- open={open}- onOpenChange={(next) => {- setOpen(next)- if (!next) reset()- }}- >- <DialogContent className="sm:max-w-2xl">- <DialogHeader>- <DialogTitle>- {step === 'done'- ? 'Verify Slack events'- : editing- ? 'Edit Slack credentials'- : 'Connect Slack'}- </DialogTitle>- <DialogDescription>- This Slack app belongs only to {agentName} @{alias}.- </DialogDescription>- <WizardSteps current={stepIndex} steps={steps} />- </DialogHeader>-- {step === 'create' ? (- <div className="space-y-4">- <Field- label="Slack app name"- htmlFor="managed-slack-app-name"- description="This is the name people will see in Slack."- >- <Input- id="managed-slack-app-name"- value={appName}- maxLength={35}- onChange={(event) => {- setAppName(event.target.value)- setManifest(undefined)- }}- />- </Field>- {!manifest ? (- <Button- variant="outline"- onClick={() => start.mutate()}- disabled={!appName.trim() || start.isPending}- >- {start.isPending ? 'Preparing…' : 'Generate Slack manifest'}- </Button>- ) : (- <>- <p className="text-muted-foreground text-sm">- Copy this manifest, then create the app from it in Slack.- </p>- <div className="flex flex-wrap items-center gap-3">- <Button- variant="outline"- size="sm"- onClick={() => {- void navigator.clipboard- .writeText(JSON.stringify(manifest.manifest, null, 2))- .then(markCopied)- }}- >- {copied ? <Check /> : <Copy />}- {copied ? 'Copied' : 'Copy manifest'}- </Button>- <a- href={manifest.createUrl}- target="_blank"- rel="noreferrer"- className="inline-flex items-center gap-1.5 text-sm underline underline-offset-4"- >- Open Slack apps <ExternalLink className="size-3.5" />- </a>- </div>- <pre className="bg-muted/30 max-h-56 overflow-auto rounded-md border p-3 text-xs whitespace-pre-wrap">- {JSON.stringify(manifest.manifest, null, 2)}- </pre>- </>- )}- <DialogFooter>- <Button variant="ghost" onClick={() => setOpen(false)}>- Cancel- </Button>- <Button disabled={!manifest} onClick={() => setStep('details')}>- Next: app details- </Button>- </DialogFooter>- </div>- ) : step === 'details' ? (- <form- className="space-y-4"- onSubmit={(event) => {- event.preventDefault()- setStep('install')- }}- >- <p className="text-muted-foreground text-sm">- In Basic Information → App Credentials, copy these values.- </p>- <Field label="App ID" htmlFor="managed-slack-app-id">- <Input- id="managed-slack-app-id"- value={appId}- onChange={(event) => setAppId(event.target.value)}- placeholder="A01234ABCDE"- />- </Field>- <Field label="Signing Secret" htmlFor="managed-slack-secret">- <Input- id="managed-slack-secret"- type="password"- value={signingSecret}- onChange={(event) => setSigningSecret(event.target.value)}- placeholder="••••••••"- />- <p className="text-muted-foreground mt-1 text-xs">- Copy the field labeled Signing Secret, not Client Secret.- </p>- </Field>- <DialogFooter>- <Button- type="button"- variant="ghost"- onClick={() => (editing ? setOpen(false) : setStep('create'))}- >- Back- </Button>- <Button- type="submit"- disabled={!appId.trim() || !signingSecret.trim()}- >- Next: install- </Button>- </DialogFooter>- </form>- ) : step === 'install' ? (- <form- className="space-y-4"- onSubmit={(event) => {- event.preventDefault()- complete.mutate()- }}- >- <p className="text-muted-foreground text-sm">- Install the app to your workspace, then copy its Bot User OAuth- Token.- </p>- <Field label="Bot User OAuth Token" htmlFor="managed-slack-token">- <Input- id="managed-slack-token"- type="password"- value={botToken}- onChange={(event) => setBotToken(event.target.value)}- placeholder="xoxb-…"- />- </Field>- <DialogFooter>- <Button- type="button"- variant="ghost"- onClick={() => setStep('details')}- >- Back- </Button>- <Button- type="submit"- disabled={!botToken.trim() || complete.isPending}- >- {complete.isPending- ? 'Saving…'- : editing- ? 'Save credentials'- : 'Connect Slack'}- </Button>- </DialogFooter>- </form>- ) : (- <div className="space-y-4">- {eventVerified ? (- <div className="flex items-start gap-3">- <Check className="mt-0.5 size-5 text-emerald-600" />- <div>- <p className="text-sm font-medium">Event received</p>- <p className="text-muted-foreground text-sm">- The signing secret is correct and this agent is listening- for Slack messages.- </p>- </div>- </div>- ) : verificationFailed ? (- <div className="flex items-start gap-3">- <TriangleAlert className="text-destructive mt-0.5 size-5" />- <div>- <p className="text-sm font-medium">- Signing secret did not match- </p>- <p className="text-muted-foreground text-sm">- Copy Signing Secret from Slack Basic Information → App- Credentials, then save and test again.- </p>- </div>- </div>- ) : (- <div className="flex items-start gap-3">- <LoaderCircle className="mt-0.5 size-5 animate-spin" />- <div>- <p className="text-sm font-medium">- Listening for a Slack event…- </p>- <p className="text-muted-foreground text-sm">- In Slack, send @{connection?.appName || appName} ping in a- channel where the app is invited, or send it a direct- message.- </p>- </div>- </div>- )}- <DialogFooter>- {verificationFailed ? (- <Button variant="outline" onClick={() => setStep('details')}>- Edit credentials- </Button>- ) : null}- <Button onClick={() => setOpen(false)}>Done</Button>- </DialogFooter>- </div>- )}- </DialogContent>- </Dialog>-- <ConfirmDialog- open={confirmDisconnect}- onOpenChange={setConfirmDisconnect}- title="Disconnect Slack?"- description="This agent will stop receiving Slack messages. Its bot token and signing secret will be removed."- confirmLabel="Disconnect"- destructive- pending={disconnect.isPending}- onConfirm={() => disconnect.mutate()}- />- </>- )-}diff --git a/web/src/managed-agents/api.test.ts b/web/src/managed-agents/api.test.tsdeleted file mode 100644index d1a2014a..00000000--- a/web/src/managed-agents/api.test.ts+++ /dev/null@@ -1,19 +0,0 @@-import { describe, expect, it } from 'vitest'-import { displayManagedAgentName } from './api'--describe('displayManagedAgentName', () => {- it('hides UUID-shaped legacy names without hiding readable stable names', () => {- expect(- displayManagedAgentName({- id: '8d25ba55-d9de-4345-bedd-92ac5a3f1485',- name: '8d25ba55-d9de-4345-bedd-92ac5a3f1485',- }),- ).toBe('Untitled agent')- expect(- displayManagedAgentName({ id: 'email-triage', name: 'email-triage' }),- ).toBe('email-triage')- expect(- displayManagedAgentName({ id: 'stable-id', name: 'Gentle Falcon' }),- ).toBe('Gentle Falcon')- })-})diff --git a/web/src/managed-agents/api.ts b/web/src/managed-agents/api.tsdeleted file mode 100644index 2aad8eef..00000000--- a/web/src/managed-agents/api.ts+++ /dev/null@@ -1,551 +0,0 @@-import { z } from 'zod'-import { apiFetch } from '@/api/client'--const templateSchema = z.object({- id: z.string(),- name: z.string(),- description: z.string(),- category: z.string(),- integrations: z.array(z.string()),- suggestedPrompts: z.array(z.string()),-})--const agentSchema = z.object({- id: z.string(),- name: z.string(),- activeAlias: z.string(),- activeDeploymentId: z.string().nullish(),- deploymentCount: z.number(),- createdAt: z.string(),- updatedAt: z.string(),-})--const deploymentSchema = z.object({- id: z.string(),- agentId: z.string(),- alias: z.string(),- channels: z.array(z.string()),- connections: z.array(z.string()),- createdAt: z.string(),-})--const deploymentsResponseSchema = z.object({- deployments: z.array(deploymentSchema),-})--const templatesResponseSchema = z.object({- templates: z.array(templateSchema),-})--const agentsResponseSchema = z.object({- agents: z.array(agentSchema),-})--const connectionSchema = z.object({- id: z.string(),- kind: z.enum(['tool', 'channel']),- provider: z.string(),- label: z.string(),- agentId: z.string().optional().default(''),- alias: z.string().optional().default(''),- displayName: z.string().nullish(),- scopes: z.array(z.string()).optional().default([]),- status: z.string(),- createdAt: z.string(),- updatedAt: z.string(),-})--const channelSchema = z.object({- id: z.string(),- channel: z.string(),- agentId: z.string(),- alias: z.string(),- appName: z.string().nullish(),- teamName: z.string().nullish(),- appId: z.string().nullish(),- teamId: z.string().nullish(),- botUserId: z.string().nullish(),- verifiedAt: z.string().nullish(),- verificationError: z.enum(['signing_secret_mismatch']).nullish(),- status: z.string(),- createdAt: z.string(),- updatedAt: z.string(),-})--const connectionsResponseSchema = z.object({- connections: z.array(connectionSchema),-})--const channelIdentityLinkSchema = z.object({ linked: z.literal(true) })--const connectionLinkSchema = z.object({- connectionId: z.string(),- service: z.string(),- label: z.string(),- status: z.enum(['connected', 'pending']),- authorizationUrl: z.string().url().optional(),-})--const channelsResponseSchema = z.object({- channels: z.array(channelSchema),-})--const slackManifestResponseSchema = z.object({- connection: channelSchema,- manifest: z.record(z.string(), z.unknown()),- createUrl: z.string().url(),- steps: z.array(z.string()),-})--const sessionCreateSchema = z.object({- session: z.object({ id: z.string() }),- deployment: deploymentSchema.optional(),-})--const eventSchema = z.object({- id: z.string().optional(),- seq: z.number(),- timestamp: z.string().optional(),- sessionId: z.string().optional(),- turnId: z.string().optional(),- type: z.string(),- data: z.record(z.string(), z.unknown()),-})--const eventsResponseSchema = z.object({- events: z.array(eventSchema),-})--const turnSchema = z.object({- turnId: z.string(),- duplicate: z.boolean(),-})--const sessionSchema = z.object({- id: z.string(),- agentId: z.string(),- deploymentId: z.string(),- status: z.string(),- source: z.enum(['api', 'channel', 'playground']).optional().default('api'),- microvmState: z.string().optional(),- createdAt: z.string(),- updatedAt: z.string(),- turns: z- .array(- z.object({- id: z.string(),- input: z.string(),- status: z.string(),- createdAt: z.string(),- updatedAt: z.string(),- }),- )- .default([]),-})--const sessionsResponseSchema = z.object({ sessions: z.array(sessionSchema) })--export type ManagedAgentTemplate = z.infer<typeof templateSchema>-export type ManagedAgentSummary = z.infer<typeof agentSchema>-export type ManagedAgentDeployment = z.infer<typeof deploymentSchema>-export type ManagedAgentEvent = z.infer<typeof eventSchema>-export type ManagedAgentSession = z.infer<typeof sessionSchema>-export type ManagedAgentConnection = z.infer<typeof connectionSchema>-export type ManagedAgentChannel = z.infer<typeof channelSchema>-export type ManagedSlackManifest = z.infer<typeof slackManifestResponseSchema>--const UUID_NAME =- /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i--export function displayManagedAgentName(- agent: Pick<ManagedAgentSummary, 'id' | 'name'>,-) {- const name = agent.name.trim()- return !name || UUID_NAME.test(name) ? 'Untitled agent' : name-}--export async function getManagedAgentTemplates() {- return (- await apiFetch(- '/managed-agents/templates',- undefined,- templatesResponseSchema,- )- ).templates-}--export async function getManagedAgents() {- return (- await apiFetch('/managed-agents/agents', undefined, agentsResponseSchema)- ).agents-}--export async function getManagedAgentConnections() {- return (- await apiFetch(- '/managed-agents/connections',- undefined,- connectionsResponseSchema,- )- ).connections.filter((connection) => connection.kind === 'tool')-}--export async function claimManagedAgentChannelIdentity(token: string) {- return apiFetch(- '/managed-agents/connections/channel-identity/link',- {- method: 'POST',- body: JSON.stringify({ token }),- },- channelIdentityLinkSchema,- )-}--export async function linkManagedAgentConnection(- service: string,- label: string,-) {- return apiFetch(- '/managed-agents/connections/link',- {- method: 'POST',- body: JSON.stringify({ service, label }),- },- connectionLinkSchema,- )-}--export async function getManagedAgentChannels() {- return (- await apiFetch(- '/managed-agents/channels',- undefined,- channelsResponseSchema,- )- ).channels-}--export async function startManagedAgentSlack(- agentId: string,- name: string,- reconnect = false,-) {- return apiFetch(- '/managed-agents/channels/slack/connections',- {- method: 'POST',- body: JSON.stringify({ agentId, name, reconnect }),- },- slackManifestResponseSchema,- )-}--export async function completeManagedAgentSlack(- connectionId: string,- input: { appId: string; signingSecret: string; botToken: string },-) {- return apiFetch(- `/managed-agents/channels/slack/connections/${encodeURIComponent(connectionId)}`,- { method: 'PUT', body: JSON.stringify(input) },- channelSchema,- )-}--export async function disconnectManagedAgentSlack(connectionId: string) {- return apiFetch(- `/managed-agents/channels/slack/connections/${encodeURIComponent(connectionId)}`,- { method: 'DELETE' },- channelSchema,- )-}--export async function getManagedAgentDeployment(deploymentId: string) {- return apiFetch(- `/managed-agents/deployments/${encodeURIComponent(deploymentId)}`,- undefined,- deploymentSchema,- )-}--export async function getManagedAgentDeployments(agentId: string) {- return (- await apiFetch(- `/managed-agents/deployments?agentId=${encodeURIComponent(agentId)}`,- undefined,- deploymentsResponseSchema,- )- ).deployments-}--export async function getManagedAgentSessions(agentId?: string) {- const { sessions } = await apiFetch(- '/managed-agents/sessions',- undefined,- sessionsResponseSchema,- )- return agentId- ? sessions.filter((session) => session.agentId === agentId)- : sessions-}--export async function getManagedAgentSessionEvents(sessionId: string) {- return (- await apiFetch(- `/managed-agents/sessions/${encodeURIComponent(sessionId)}/events?after=0`,- undefined,- eventsResponseSchema,- )- ).events-}--export async function getManagedAgentSession(sessionId: string) {- return apiFetch(- `/managed-agents/sessions/${encodeURIComponent(sessionId)}`,- undefined,- sessionSchema,- )-}--async function sleep(milliseconds: number) {- await new Promise((resolve) => setTimeout(resolve, milliseconds))-}--async function waitForAgentEvent(- sessionId: string,- after: number,- terminal: (event: z.infer<typeof eventSchema>) => boolean,- onEvent: (event: z.infer<typeof eventSchema>) => void,- timeoutMs: number,- signal?: AbortSignal,-) {- const deadline = Date.now() + timeoutMs- let cursor = after- while (Date.now() < deadline) {- if (signal?.aborted) throw new DOMException('Aborted', 'AbortError')- const { events } = await apiFetch(- `/managed-agents/sessions/${encodeURIComponent(sessionId)}/events?after=${cursor}`,- { signal },- eventsResponseSchema,- )- for (const event of events) {- cursor = Math.max(cursor, event.seq)- onEvent(event)- if (- event.type === 'runtime.disconnected' ||- event.type === 'session.failed'- ) {- throw new Error(- typeof event.data.reason === 'string'- ? event.data.reason- : typeof event.data.message === 'string'- ? event.data.message- : 'The agent runtime disconnected.',- )- }- if (terminal(event)) return { event, cursor }- }- await sleep(600)- }- throw new Error('Timed out waiting for the agent.')-}--export async function runManagedAgent(- agentId: string,- input: string,- onEvent: (event: ManagedAgentEvent) => void,- options: {- onSession?: (sessionId: string) => void- signal?: AbortSignal- } = {},-) {- const created = await apiFetch(- '/managed-agents/sessions',- {- method: 'POST',- body: JSON.stringify({ agentId, source: 'playground' }),- signal: options.signal,- },- sessionCreateSchema,- )- const sessionId = created.session.id- options.onSession?.(sessionId)- try {- const connected = await waitForAgentEvent(- sessionId,- 0,- (event) => event.type === 'runtime.connected',- onEvent,- 90_000,- options.signal,- )- const turn = await apiFetch(- `/managed-agents/sessions/${encodeURIComponent(sessionId)}/turns`,- {- method: 'POST',- body: JSON.stringify({- input,- idempotencyKey: crypto.randomUUID(),- }),- signal: options.signal,- },- turnSchema,- )- const completed = await waitForAgentEvent(- sessionId,- connected.cursor,- (event) =>- event.type === 'turn.completed' || event.type === 'turn.failed',- onEvent,- 180_000,- options.signal,- )- if (completed.event.type === 'turn.failed') {- throw new Error(- typeof completed.event.data.message === 'string'- ? completed.event.data.message- : 'The agent could not complete this request.',- )- }- return { sessionId, turnId: turn.turnId }- } finally {- await apiFetch(- `/managed-agents/sessions/${encodeURIComponent(sessionId)}/suspend`,- { method: 'POST' },- ).catch(() => undefined)- }-}--export async function continueManagedAgentSession(- sessionId: string,- input: string,- onEvent: (event: ManagedAgentEvent) => void,- signal?: AbortSignal,-) {- const existing = await getManagedAgentSessionEvents(sessionId)- let cursor = existing[existing.length - 1]?.seq ?? 0- const session = await getManagedAgentSession(sessionId)- if (session.microvmState === 'terminated' || session.status === 'ended') {- throw new Error('This playground session has ended. Start a new session.')- }- if (session.microvmState === 'suspended') {- await apiFetch(- `/managed-agents/sessions/${encodeURIComponent(sessionId)}/resume`,- { method: 'POST', signal },- sessionSchema,- )- const connected = await waitForAgentEvent(- sessionId,- cursor,- (event) => event.type === 'runtime.connected',- onEvent,- 90_000,- signal,- )- cursor = connected.cursor- }- try {- const turn = await apiFetch(- `/managed-agents/sessions/${encodeURIComponent(sessionId)}/turns`,- {- method: 'POST',- body: JSON.stringify({- input,- idempotencyKey: crypto.randomUUID(),- }),- signal,- },- turnSchema,- )- const completed = await waitForAgentEvent(- sessionId,- cursor,- (event) =>- event.type === 'turn.completed' || event.type === 'turn.failed',- onEvent,- 180_000,- signal,- )- if (completed.event.type === 'turn.failed') {- throw new Error(- typeof completed.event.data.message === 'string'- ? completed.event.data.message- : 'The agent could not complete this request.',- )- }- return { sessionId, turnId: turn.turnId }- } finally {- await apiFetch(- `/managed-agents/sessions/${encodeURIComponent(sessionId)}/suspend`,- { method: 'POST' },- ).catch(() => undefined)- }-}--export async function invokeManagedAgent(agentId: string, input: string) {- const created = await apiFetch(- '/managed-agents/sessions',- {- method: 'POST',- body: JSON.stringify({ agentId }),- },- sessionCreateSchema,- )- const sessionId = created.session.id- try {- const connected = await waitForAgentEvent(- sessionId,- 0,- (event) => event.type === 'runtime.connected',- () => undefined,- 90_000,- )- const turn = await apiFetch(- `/managed-agents/sessions/${encodeURIComponent(sessionId)}/turns`,- {- method: 'POST',- body: JSON.stringify({- input,- idempotencyKey: crypto.randomUUID(),- }),- },- turnSchema,- )- let streamedText = ''- let completedText = ''- const completed = await waitForAgentEvent(- sessionId,- connected.cursor,- (event) =>- event.type === 'turn.completed' || event.type === 'turn.failed',- (event) => {- if (event.type === 'message.delta') {- streamedText +=- typeof event.data.text === 'string' ? event.data.text : ''- } else if (- event.type === 'message.completed' &&- typeof event.data.text === 'string'- ) {- completedText = event.data.text- }- },- 180_000,- )- if (completed.event.type === 'turn.failed') {- throw new Error(- typeof completed.event.data.message === 'string'- ? completed.event.data.message- : 'The agent could not complete this request.',- )- }- return {- sessionId,- turnId: turn.turnId,- output: streamedText || completedText || 'Done.',- }- } finally {- await apiFetch(- `/managed-agents/sessions/${encodeURIComponent(sessionId)}/suspend`,- { method: 'POST' },- ).catch(() => undefined)- }-}diff --git a/web/src/managed-agents/chat-transport.test.ts b/web/src/managed-agents/chat-transport.test.tsdeleted file mode 100644index 5e1d0cbd..00000000--- a/web/src/managed-agents/chat-transport.test.ts+++ /dev/null@@ -1,123 +0,0 @@-import { describe, expect, it, vi } from 'vitest'-import type { UIMessage, UIMessageChunk } from 'ai'--const { runManagedAgent, continueManagedAgentSession } = vi.hoisted(() => ({- runManagedAgent: vi.fn(),- continueManagedAgentSession: vi.fn(),-}))--vi.mock('./api', () => ({- runManagedAgent,- continueManagedAgentSession,-}))--import { ManagedAgentChatTransport } from './chat-transport'--async function readChunks(stream: ReadableStream<UIMessageChunk>) {- const chunks: UIMessageChunk[] = []- for await (const chunk of stream) chunks.push(chunk)- return chunks-}--function messages(text: string): UIMessage[] {- return [- {- id: crypto.randomUUID(),- role: 'user',- parts: [{ type: 'text', text }],- },- ]-}--describe('ManagedAgentChatTransport', () => {- it('translates Blue events and continues the assigned session', async () => {- runManagedAgent.mockImplementation(- async (- _agentId: string,- _input: string,- onEvent: (event: unknown) => void,- options: { onSession: (sessionId: string) => void },- ) => {- options.onSession('session-1')- onEvent({- seq: 1,- type: 'reasoning.delta',- data: { text: 'Checking' },- })- onEvent({- seq: 2,- type: 'tool.started',- data: { callId: 'call-1', tool: 'gmail_search', input: {} },- })- onEvent({- seq: 3,- type: 'tool.completed',- data: { callId: 'call-1', tool: 'gmail_search', output: ['email'] },- })- onEvent({- seq: 4,- type: 'message.delta',- data: { text: 'Done' },- })- onEvent({- seq: 5,- type: 'message.completed',- data: { text: 'Done' },- })- },- )- continueManagedAgentSession.mockResolvedValue({- sessionId: 'session-1',- turnId: 'turn-2',- })- const assigned: string[] = []- const transport = new ManagedAgentChatTransport(- 'agent-1',- undefined,- (sessionId) => assigned.push(sessionId),- )-- const first = await readChunks(- await transport.sendMessages({- trigger: 'submit-message',- chatId: 'chat-1',- messageId: undefined,- messages: messages('List my email'),- abortSignal: undefined,- }),- )-- expect(assigned).toEqual(['session-1'])- expect(first.map((chunk) => chunk.type)).toEqual([- 'start',- 'reasoning-start',- 'reasoning-delta',- 'tool-input-available',- 'tool-output-available',- 'text-start',- 'text-delta',- 'reasoning-end',- 'text-end',- 'finish',- ])- expect(first.filter((chunk) => chunk.type === 'text-delta')).toHaveLength(1)-- await readChunks(- await transport.sendMessages({- trigger: 'submit-message',- chatId: 'chat-1',- messageId: undefined,- messages: messages('And the next one?'),- abortSignal: undefined,- }),- )-- expect(continueManagedAgentSession).toHaveBeenCalledWith(- 'session-1',- 'And the next one?',- expect.any(Function),- undefined,- )- expect(runManagedAgent).toHaveBeenCalledTimes(1)- })-})diff --git a/web/src/managed-agents/chat-transport.ts b/web/src/managed-agents/chat-transport.tsdeleted file mode 100644index 652f10fc..00000000--- a/web/src/managed-agents/chat-transport.ts+++ /dev/null@@ -1,176 +0,0 @@-import type { ChatTransport, UIMessage, UIMessageChunk } from 'ai'-import {- continueManagedAgentSession,- runManagedAgent,- type ManagedAgentEvent,-} from './api'--function eventText(event: ManagedAgentEvent) {- return typeof event.data.text === 'string' ? event.data.text : ''-}--function eventError(event: ManagedAgentEvent) {- return typeof event.data.message === 'string'- ? event.data.message- : typeof event.data.reason === 'string'- ? event.data.reason- : 'The agent could not complete this request.'-}--function lastUserText(messages: UIMessage[]) {- const message = [...messages]- .reverse()- .find((candidate) => candidate.role === 'user')- return (- message?.parts- .filter((part) => part.type === 'text')- .map((part) => part.text)- .join('') ?? ''- )-}--export class ManagedAgentChatTransport implements ChatTransport<UIMessage> {- private sessionId?: string-- constructor(- private readonly agentId: string,- sessionId: string | undefined,- private readonly onSession: (sessionId: string) => void,- ) {- this.sessionId = sessionId- }-- async sendMessages({- messages,- abortSignal,- }: Parameters<ChatTransport<UIMessage>['sendMessages']>[0]) {- const input = lastUserText(messages).trim()- if (!input) throw new Error('Enter a message before sending.')-- const messageId = crypto.randomUUID()- const textId = `${messageId}:text`- const reasoningId = `${messageId}:reasoning`-- return new ReadableStream<UIMessageChunk>({- start: (controller) => {- let closed = false- let textStarted = false- let reasoningStarted = false- const startedTools = new Set<string>()-- const enqueue = (chunk: UIMessageChunk) => {- if (!closed && !abortSignal?.aborted) controller.enqueue(chunk)- }- const finishParts = () => {- if (reasoningStarted)- enqueue({ type: 'reasoning-end', id: reasoningId })- if (textStarted) enqueue({ type: 'text-end', id: textId })- }- const onEvent = (event: ManagedAgentEvent) => {- if (event.type === 'reasoning.delta') {- if (!reasoningStarted) {- enqueue({ type: 'reasoning-start', id: reasoningId })- reasoningStarted = true- }- enqueue({- type: 'reasoning-delta',- id: reasoningId,- delta: eventText(event),- })- return- }- if (event.type === 'message.delta') {- if (!textStarted) {- enqueue({ type: 'text-start', id: textId })- textStarted = true- }- enqueue({ type: 'text-delta', id: textId, delta: eventText(event) })- return- }- if (event.type === 'message.completed' && !textStarted) {- enqueue({ type: 'text-start', id: textId })- textStarted = true- enqueue({ type: 'text-delta', id: textId, delta: eventText(event) })- return- }- if (!event.type.startsWith('tool.')) return-- const toolCallId =- typeof event.data.callId === 'string'- ? event.data.callId- : `${event.type}:${event.seq}`- const toolName =- typeof event.data.tool === 'string' ? event.data.tool : 'tool'- if (!startedTools.has(toolCallId)) {- enqueue({- type: 'tool-input-available',- toolCallId,- toolName,- title:- typeof event.data.title === 'string'- ? event.data.title- : undefined,- input: event.data.input ?? {},- dynamic: true,- })- startedTools.add(toolCallId)- }- if (event.type === 'tool.completed') {- enqueue({- type: 'tool-output-available',- toolCallId,- output: event.data.output ?? null,- dynamic: true,- })- } else if (event.type === 'tool.failed') {- enqueue({- type: 'tool-output-error',- toolCallId,- errorText: eventError(event),- dynamic: true,- })- }- }-- enqueue({ type: 'start', messageId })- void (- this.sessionId- ? continueManagedAgentSession(- this.sessionId,- input,- onEvent,- abortSignal,- )- : runManagedAgent(this.agentId, input, onEvent, {- signal: abortSignal,- onSession: (sessionId) => {- this.sessionId = sessionId- this.onSession(sessionId)- },- })- )- .then(() => {- finishParts()- enqueue({ type: 'finish', finishReason: 'stop' })- })- .catch((error: unknown) => {- if (abortSignal?.aborted) enqueue({ type: 'abort' })- else- enqueue({- type: 'error',- errorText:- error instanceof Error ? error.message : String(error),- })- })- .finally(() => {- closed = true- controller.close()- })- },- })- }-- async reconnectToStream() {- return null- }-}diff --git a/web/src/managed-agents/feature.ts b/web/src/managed-agents/feature.tsdeleted file mode 100644index fccb0432..00000000--- a/web/src/managed-agents/feature.ts+++ /dev/null@@ -1,5 +0,0 @@-// The experiment is on by default for this launch. Set the build-time value to-// "0" to restore the existing dashboard and navigation without removing any-// legacy routes.-export const managedAgentsExperimentEnabled =- import.meta.env.VITE_MANAGED_AGENTS_EXPERIMENT !== '0'diff --git a/web/src/managed-agents/scroll-follow.test.ts b/web/src/managed-agents/scroll-follow.test.tsdeleted file mode 100644index dc4918d8..00000000--- a/web/src/managed-agents/scroll-follow.test.ts+++ /dev/null@@ -1,31 +0,0 @@-import { describe, expect, it } from 'vitest'-import { isNearScrollEnd } from './scroll-follow'--describe('isNearScrollEnd', () => {- it('follows when the reader is at or near the newest content', () => {- expect(- isNearScrollEnd({- scrollHeight: 1_000,- scrollTop: 600,- clientHeight: 400,- }),- ).toBe(true)- expect(- isNearScrollEnd({- scrollHeight: 1_000,- scrollTop: 510,- clientHeight: 400,- }),- ).toBe(true)- })-- it('preserves position after the reader scrolls away from the bottom', () => {- expect(- isNearScrollEnd({- scrollHeight: 1_000,- scrollTop: 400,- clientHeight: 400,- }),- ).toBe(false)- })-})diff --git a/web/src/managed-agents/scroll-follow.ts b/web/src/managed-agents/scroll-follow.tsdeleted file mode 100644index f6890208..00000000--- a/web/src/managed-agents/scroll-follow.ts+++ /dev/null@@ -1,15 +0,0 @@-export const SCROLL_FOLLOW_THRESHOLD = 96--type ScrollMetrics = Pick<- HTMLElement,- 'scrollHeight' | 'scrollTop' | 'clientHeight'->--export function isNearScrollEnd(- metrics: ScrollMetrics,- threshold = SCROLL_FOLLOW_THRESHOLD,-) {- return (- metrics.scrollHeight - metrics.scrollTop - metrics.clientHeight <= threshold- )-}diff --git a/web/src/pages/Settings.tsx b/web/src/pages/Settings.tsxindex b8c03e86..b2492fdf 100644--- a/web/src/pages/Settings.tsx+++ b/web/src/pages/Settings.tsx@@ -147,6 +147,16 @@ export default function Settings() {</PanelDescription></div><div className="divide-y">+ <NavigationToggle+ id="infrastructure-enabled"+ label="Enable infrastructure"+ description="Show sandboxes, checkpoints, templates, webhooks, and browsers."+ checked={user?.infrastructureEnabled ?? true}+ disabled={navigationMutation.isPending}+ onCheckedChange={(checked) =>+ navigationMutation.mutate({ infrastructureEnabled: checked })+ }+ /><NavigationToggleid="durable-sessions-enabled"label="Enable durable sessions"@@ -159,16 +169,6 @@ export default function Settings() {})}/>- <NavigationToggle- id="infrastructure-enabled"- label="Enable infrastructure"- description="Show sandboxes, checkpoints, templates, webhooks, and browsers."- checked={user?.infrastructureEnabled ?? false}- disabled={navigationMutation.isPending}- onCheckedChange={(checked) =>- navigationMutation.mutate({ infrastructureEnabled: checked })- }- /></div></Panel>